.logo {
  font-size: 18px;
}

.logo small {
  margin-top: 4px;
  font-size: 13px;
  letter-spacing: 1px;
}

.logo > img {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  object-fit: contain;
}

.sidebar nav > b {
  margin: 14px 2px 7px;
  padding: 8px 11px;
  border-left: 4px solid #20a9e5;
  border-radius: 3px;
  background: #dff4ff;
  color: #087cb8;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.sidebar {
  border-right: 1px solid #b9dceb;
  background: linear-gradient(180deg, #f7fcff 0%, #eaf7fd 100%);
  color: #315d75;
  box-shadow: 3px 0 12px rgba(40, 112, 148, 0.16);
}

.logo {
  border-bottom: 1px solid #c5e3f1;
  background: linear-gradient(180deg, #ffffff 0%, #eaf7fd 100%);
  color: #155b82;
  text-shadow: none;
}

.logo small {
  color: #4f89a7;
}

.sidebar nav button {
  color: #315d75;
}

.sidebar nav button i {
  display: inline-flex;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  align-items: center;
  justify-content: center;
  color: #159ed9;
}

.sidebar nav button i img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.sidebar nav button:hover {
  border-color: #9ed8ef;
  background: #d9f1fc;
  color: #155b82;
}

.sidebar nav button.active {
  position: relative;
  border-color: #b8ddeb;
  background: #ffffff;
  color: #096f9f;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(32, 112, 148, 0.1);
}

.sidebar nav button.active::before {
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: -1px;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: #18a7df;
  content: "";
}

.sidebar nav button.active i {
  color: #0b94cf;
}

.schedule-toolbar {
  gap: 7px;
}

.schedule-toolbar .mode-label {
  margin-left: 14px;
  color: #5a7180;
  font-weight: 600;
}

.schedule-toolbar .mode-active {
  border-color: #1599d4;
  background: #e1f4fc;
  color: #087ab5;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px #b8e1f1;
}

.subject-workspace {
  display: grid;
  grid-template-rows: minmax(210px, 42vh) minmax(260px, auto);
  gap: 14px;
  padding: 14px;
  background: #eef4f7;
}

.subject-master,
.subject-detail {
  min-width: 0;
  overflow: auto;
  border: 1px solid #cbd9e1;
  background: #fff;
}

.subject-master > h4,
.subject-detail > h4 {
  position: sticky;
  top: 0;
  z-index: 3;
  margin: 0;
  padding: 10px 13px;
  border-bottom: 1px solid #d5e0e6;
  background: #f7fafb;
  color: #25546f;
  font-size: 15px;
}

.subject-master > h4 small {
  margin-left: 10px;
  color: #81929e;
  font-size: 12px;
  font-weight: normal;
}

.subject-list {
  max-height: calc(42vh - 42px);
}

.subject-list tbody tr {
  cursor: pointer;
}

.subject-list tbody tr:not(.selected-row):hover td {
  background: #f3f9fc;
}

.subject-list .subject-actions {
  cursor: default;
}

.subject-list .selected-row td {
  background: rgb(220, 239, 249);
}

.subject-list .selected-row td:first-child {
  box-shadow: inset 4px 0 #1ba5df;
}

.subject-link {
  border: 0;
  background: transparent;
  color: #087db8;
  font-weight: 700;
  text-align: left;
}

.subject-link:hover {
  text-decoration: underline;
}

a.btn,
a.btn:hover,
a.btn:focus,
a.btn:active {
  text-decoration: none;
}

.instruction-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 13px;
  border-bottom: 1px solid #dce5ea;
  background: #fbfdfe;
}

.instruction-head b {
  margin-right: 12px;
  color: #167daf;
  font-size: 15px;
}

.instruction-head span {
  color: #687f8e;
}

.instruction-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.instruction-shift-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  color: #405b6d;
  cursor: pointer;
}

.instruction-shift-check input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.table-wrap tbody tr.new-entry-row > td,
.table-wrap tbody tr.new-entry-row:hover > td {
  background: rgb(220, 239, 249) !important;
}

.table-wrap tbody tr.checked-selected-row > td,
.table-wrap tbody tr.checked-selected-row:hover > td {
  background: rgb(220, 239, 249) !important;
}

.table-wrap tbody tr.action-selected-row > td,
.table-wrap tbody tr.action-selected-row:hover > td {
  background: rgb(220, 239, 249) !important;
}

.library-text {
  min-height: 260px;
  max-height: 55vh;
  overflow: auto;
  margin: 0;
  padding: 16px;
  border: 1px solid #cbd7de;
  background: #fff;
  color: #263d4b;
  white-space: pre-wrap;
  word-break: break-word;
  font: 14px/1.8 "Microsoft YaHei", sans-serif;
}

.login-card .brand-mark {
  width: 64px;
  height: 64px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.login-card .brand-mark img {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.audio-preview-card{display:flex;align-items:center;gap:14px;padding:14px 16px;margin-bottom:14px;border:1px solid #cbdbe5;border-radius:8px;background:linear-gradient(135deg,#f5fbff,#eaf5fb)}
.audio-preview-note{display:grid;place-items:center;width:46px;height:46px;flex:0 0 46px;color:#159bd8;font-size:36px;line-height:1;font-family:"Segoe UI Symbol","Microsoft YaHei",sans-serif}
.audio-preview-info{display:grid;gap:3px;min-width:0}.audio-preview-info strong{color:#176f9f;font-size:16px}.audio-preview-info span,.audio-preview-info small{color:#718491;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.audio-preview-player{display:block;width:100%;height:46px;accent-color:#199bd8}

.software-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  padding: 18px 20px;
  border-left: 4px solid #24a4df;
  background: linear-gradient(100deg, #fff, #f3faff);
}

.software-download-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.software-download-icon {
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #e3f4fc;
  color: #168fce;
  font-size: 28px;
  font-weight: bold;
}

.software-download h3 {
  margin: 0 0 5px;
  color: #174b6f;
  font-size: 17px;
}

.software-download p {
  margin: 0;
  color: #718291;
}

.software-download-button {
  flex: 0 0 auto;
  padding: 9px 20px;
  text-decoration: none;
}

@media (max-width: 760px) {
  .software-download {
    align-items: stretch;
    flex-direction: column;
  }

  .software-download-button {
    text-align: center;
  }
}
