@import url("https://fonts.googleapis.com/css2?family=Golos+Text:wght@400;450;500;550;600;650;700;750&display=swap");
:root {
  font-family: "Golos Text", sans-serif;
  color: #243147;
  background: #f5f7fb;
  font-synthesis: none;
  font-size: 16px;
  --blue: #2758ce;
  --muted: #768194;
  --line: #e8ecf2;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #86a6ff;
  outline-offset: 4px;
}
svg {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sidebar {
  width: 258px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 35px 20px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 12px 39px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.6px;
}
.brand img {
  width: 39px;
  height: 39px;
}
.brand small {
  display: block;
  font-size: 12px;
  font-weight: 450;
  color: var(--muted);
  letter-spacing: 0;
  margin-top: 5px;
}
.nav-label {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #929bad;
  font-weight: 600;
  padding: 0 16px;
  margin: 20px 0 12px;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 15px;
  margin-bottom: 5px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  color: #657185;
}
.nav a.active {
  background: #edf2ff;
  color: var(--blue);
}
.nav a:hover {
  background: #f3f6fb;
}
.nav a.active:before {
  content: "";
  position: absolute;
  left: 0;
  width: 3px;
  height: 27px;
  background: var(--blue);
  border-radius: 0 3px 3px 0;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 32px;
}
.install {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  color: #53637b;
  font-size: 14px;
}
.install small {
  font-size: 12px;
  display: block;
  color: var(--muted);
  margin-top: 4px;
  text-align: left;
}
.uni {
  font-size: 12px;
  color: #8c95a6;
  margin: 22px 12px 0;
  line-height: 1.6;
}
.main {
  margin-left: 258px;
}
.topbar {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 44px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  gap: 14px;
  font-size: 14px;
}
.breadcrumb {
  color: #8690a1;
}
.breadcrumb b {
  font-weight: 500;
  color: #3e4c61;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 25px;
  color: #7b8697;
}
.top-actions .date {
  font-size: 13px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--blue);
  color: #fff;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 11px 17px;
  font-size: 14px;
  font-weight: 500;
}
.button.secondary {
  background: white;
  border-color: #dce2ec;
  color: #495971;
}
.button.ghost {
  background: transparent;
  color: var(--blue);
  padding: 5px 0;
}
.button.danger {
  background: #b93f4b;
}
.menu-button {
  display: none;
  border: 0;
  background: none;
  color: #334159;
  padding: 7px;
}
.content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 37px 44px 24px;
}
.page-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 26px;
}
h1 {
  font-size: 28px;
  line-height: 1.3;
  letter-spacing: -0.8px;
  margin: 0 0 8px;
  font-weight: 650;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.3px;
  margin: 0;
  font-weight: 600;
}
h3 {
  font-size: 16px;
  margin: 0 0 10px;
  line-height: 1.5;
  font-weight: 550;
}
p {
  line-height: 1.65;
}
.muted {
  color: var(--muted);
}
.subtitle {
  font-size: 14px;
  margin: 0;
  color: var(--muted);
}
.term {
  font-size: 12px;
  color: #768397;
  border: 1px solid #e0e6ee;
  background: white;
  border-radius: 6px;
  padding: 7px 10px;
  white-space: nowrap;
}
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #eaf0ff;
  min-height: 174px;
  padding: 29px 32px;
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 1.6px;
  font-weight: 600;
  color: #607bad;
  margin-bottom: 13px;
}
.hero h2 {
  font-size: 30px;
  letter-spacing: -0.6px;
  color: #244588;
  line-height: 1.3;
}
.hero p {
  color: #6e82aa;
  font-size: 14px;
  margin: 11px 0 0;
}
.hero .button {
  z-index: 1;
  white-space: nowrap;
}
.quick-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0 0 32px;
}
.quick {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 19px 16px;
  transition:
    transform 0.15s,
    border-color 0.15s;
}
.quick:hover {
  transform: translateY(-2px);
  border-color: #b9caed;
}
.tile-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f0f4fc;
  color: #5873ae;
  flex-shrink: 0;
}
.quick:nth-child(2) .tile-icon {
  background: #f0edfc;
  color: #8574b0;
}
.quick:nth-child(3) .tile-icon {
  background: #fff4e9;
  color: #c18c4c;
}
.quick:nth-child(4) .tile-icon {
  background: #edf6f3;
  color: #5c9885;
}
.quick strong {
  font-size: 14px;
  display: block;
  font-weight: 550;
}
.quick small {
  font-size: 12px;
  display: block;
  color: #8993a3;
  margin-top: 6px;
}
.quick > .arrow {
  width: 15px;
  margin-left: auto;
  color: #a6afbd;
}
.columns {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(285px, 1fr);
  gap: 26px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 17px;
}
.section-head a {
  font-size: 13px;
  color: #7b879a;
  display: flex;
  align-items: center;
  gap: 7px;
}
.section-head a svg {
  width: 15px;
}
.panel,
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.card {
  padding: 23px;
  margin-bottom: 14px;
}
.card.pinned {
  border-left: 3px solid #dba950;
  padding-left: 21px;
}
.metadata {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #8a94a3;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 12px;
  background: #f1f4fa;
  color: #6c7d9b;
}
.tag svg {
  width: 13px;
  height: 13px;
}
.tag.gold {
  background: #fff5e5;
  color: #ac853b;
}
.card p {
  font-size: 14px;
  color: #718096;
  margin: 0 0 17px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.card .body-copy {
  font-size: 16px;
  color: #5d6b7f;
}
.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f0f2f6;
  padding-top: 15px;
  color: #8e98a8;
  font-size: 12px;
}
.avatar {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  background: #eef2fa;
  border-radius: 50%;
  color: #7184a5;
  font-size: 10px;
  margin-right: 7px;
}
.empty {
  padding: 30px 24px;
  text-align: center;
  color: #8993a3;
}
.empty .tile-icon {
  margin: 0 auto 14px;
  width: 45px;
  height: 45px;
  background: #f4f6fa;
  color: #98a6bc;
}
.empty h3 {
  color: #65748b;
  font-size: 14px;
}
.empty p {
  font-size: 13px;
  line-height: 1.65;
  max-width: 330px;
  margin: 0 auto;
}
.deadline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.deadline-head span {
  font-size: 12px;
  color: #8e97a7;
}
.right-note {
  margin-top: 18px;
  padding: 21px;
  background: #edf2fb;
  border-radius: 11px;
}
.right-note h3 {
  font-size: 14px;
  display: flex;
  gap: 9px;
  align-items: center;
  color: #4e6590;
}
.right-note p {
  font-size: 13px;
  line-height: 1.7;
  margin: 8px 0 14px;
  color: #7d8ba3;
}
.right-note a {
  font-size: 13px;
  color: #496daf;
}
.subjects-section {
  margin-top: 30px;
}
.subject-grid,
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}
.subject-card {
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 15px;
}
.subject-card strong {
  display: block;
  font-size: 15px;
}
.subject-card small {
  display: block;
  color: #8a95a7;
  margin-top: 7px;
  font-size: 12px;
}
.subject-card > .arrow {
  margin-left: auto;
  color: #9aa7bb;
}
.footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: #96a0ae;
  margin-top: 42px;
  padding-top: 20px;
}
.full-empty {
  padding: 46px 24px;
}
.info-card {
  padding: 25px;
  margin: 0;
}
.info-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.info-card p {
  font-size: 14px;
  margin: 10px 0;
}
.info-card a {
  color: var(--blue);
}
.info-card dl {
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
}
.info-card dt {
  color: #929bab;
  font-size: 12px;
  margin-top: 15px;
}
.info-card dd {
  margin: 0;
  color: #52627a;
}
.info-card.wide {
  grid-column: 1/-1;
}
.hours {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}
.filters {
  display: flex;
  gap: 8px;
  margin: 0 0 22px;
  flex-wrap: wrap;
}
.filter {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  padding: 9px 14px;
  color: #788599;
  font-size: 14px;
}
.filter.active {
  background: #eaf0ff;
  border-color: #d6e2fc;
  color: var(--blue);
}
.due-row {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
}
.date-block {
  background: #f0f4fb;
  border-radius: 7px;
  padding: 9px;
  min-width: 48px;
  text-align: center;
  color: #6880ac;
  font-size: 12px;
}
.date-block b {
  font-size: 20px;
  display: block;
}
.due-row strong {
  font-size: 14px;
  font-weight: 500;
}
.due-row small {
  display: block;
  color: #909bab;
  margin-top: 6px;
  font-size: 12px;
}
.overdue {
  color: #b15454;
}
.attachments {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 15px 0;
}
.attachment {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid #e3e9f3;
  border-radius: 7px;
  color: #58739b;
  font-size: 13px;
}
.attachment svg {
  width: 17px;
}
.poll-option {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}
.poll-option .bar {
  position: absolute;
  inset: 0 auto 0 0;
  background: #eef3ff;
  z-index: 0;
}
.poll-option span,
.poll-option input {
  position: relative;
  z-index: 1;
}
.poll-option b {
  margin-left: auto;
  font-size: 14px;
  z-index: 1;
}
.admin-actions {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}
.text-button {
  border: 0;
  background: none;
  color: #6882ab;
  font-size: 13px;
  padding: 0;
}
.text-button.red {
  color: #ac5862;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  width: 580px;
  max-width: calc(100% - 30px);
  max-height: 90dvh;
  color: #263751;
  box-shadow: 0 25px 90px #1c31532b;
}
dialog::backdrop {
  background: #1d304866;
  backdrop-filter: blur(3px);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.close {
  border: 0;
  background: #f3f5f9;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  color: #7f8ca2;
}
label.field {
  display: block;
  font-size: 14px;
  color: #53647c;
  margin: 15px 0;
}
.field input,
.field textarea,
.field select {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: 1px solid #dce3ee;
  border-radius: 7px;
  padding: 11px 12px;
  background: #fff;
  color: #253b59;
}
.field textarea {
  min-height: 110px;
  resize: vertical;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 2px solid #c6d7ff;
  border-color: #82a3eb;
}
.form-error {
  color: #ac4754;
  font-size: 14px;
}
.hint {
  font-size: 13px;
  color: #8491a4;
  line-height: 1.7;
}
.check {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  margin: 17px 0;
}
.form-buttons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #293c59;
  color: #fff;
  padding: 13px 22px;
  border-radius: 9px;
  z-index: 100;
  font-size: 14px;
  display: none;
}
.notice {
  padding: 12px 18px;
  background: #fff6e8;
  border: 1px solid #f1dfc3;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 20px;
  color: #956e32;
}
.mail-steps {
  counter-reset: step;
}
.mail-step {
  display: flex;
  gap: 20px;
  padding: 25px;
  border-bottom: 1px solid var(--line);
}
.mail-step:before {
  counter-increment: step;
  content: "0" counter(step);
  font-size: 18px;
  color: #7a92be;
}
.mail-step p {
  margin: 8px 0 0;
  color: #77869c;
  font-size: 14px;
}
.mail-step a {
  color: var(--blue);
}
@media (min-width: 1450px) {
  .content {
    padding-top: 42px;
  }
  .hero {
    min-height: 190px;
  }
  .card {
    padding: 27px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 225px;
    padding: 30px 14px;
  }
  .main {
    margin-left: 225px;
  }
  .content {
    padding: 28px;
  }
  .topbar {
    padding: 0 28px;
  }
  .quick-links {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero h2 {
    font-size: 26px;
  }
  .hero {
    padding: 26px;
  }
  .hero .button {
    font-size: 13px;
  }
  .columns {
    grid-template-columns: minmax(0, 1.3fr) minmax(260px, 1fr);
    gap: 18px;
  }
  .top-actions .date {
    display: none;
  }
}
@media (max-width: 1000px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 258px;
    box-shadow: 15px 0 40px #20325322;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main {
    margin: 0;
  }
  .menu-button {
    display: block;
  }
  .topbar {
    height: 68px;
    padding: 0 20px;
  }
  .breadcrumb {
    margin-right: auto;
    font-size: 12px;
  }
  .breadcrumb > span {
    display: none;
  }
  .top-actions {
    gap: 0;
  }
  .content {
    padding: 25px 20px;
  }
  .columns {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 24px;
    display: block;
  }
  .hero .button {
    margin-top: 22px;
  }
  .hero h2 {
    font-size: 25px;
    overflow-wrap: anywhere;
  }
  .hero p {
    max-width: 270px;
  }
  .page-title h1 {
    font-size: 25px;
  }
  .term {
    display: none;
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
  .hours {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .subject-grid {
    grid-template-columns: 1fr;
  }
  .footer {
    flex-wrap: wrap;
  }
  .nav-label {
    margin-top: 14px;
  }
  .sidebar .nav a {
    padding: 11px 15px;
  }
  .sidebar-bottom {
    padding-top: 15px;
  }
}
@media (max-width: 420px) {
  .quick-links {
    gap: 9px;
  }
  .quick {
    padding: 14px 10px;
    gap: 8px;
  }
  .quick .tile-icon {
    width: 31px;
    height: 34px;
  }
  .quick strong {
    font-size: 12px;
  }
  .quick small {
    font-size: 11px;
  }
  .quick > .arrow {
    display: none;
  }
  .content {
    padding: 24px 15px;
  }
  .hero {
    padding: 22px;
  }
  .hero h2 {
    font-size: 23px;
  }
  .button {
    padding: 10px 12px;
  }
  .card {
    padding: 20px;
  }
  .hero p {
    font-size: 13px;
  }
  .topbar {
    padding: 0 12px;
  }
  .section-head a {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.subject-card > div:nth-child(2) {
  min-width: 0;
}
.subject-card strong {
  overflow-wrap: anywhere;
}
.sidebar {
  overflow-y: auto;
}
.section-head a {
  flex-shrink: 0;
}
@media (min-width: 1001px) and (max-width: 1300px) {
  .columns .subject-grid {
    grid-template-columns: 1fr;
  }
}

.hero > div,
.hero > .button {
  position: relative;
  z-index: 1;
}

.subject-card {
  min-width: 0;
}
@media (min-width: 1301px) {
  .subject-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Updated navigation, publication types and installation control. */
.install {
  display: grid;
  grid-template-columns: 21px minmax(0, 1fr);
  text-align: left;
  align-items: center;
  gap: 11px;
  padding: 14px 12px;
}
.install-copy {
  display: block;
  min-width: 0;
}
.install-title {
  display: block;
  font-size: 14px;
  line-height: 1.45;
}
.install small {
  text-align: left;
  line-height: 1.5;
}
.management {
  margin: 0 0 18px;
  font-size: 13px;
  color: #7b8799;
}
.management summary {
  cursor: pointer;
  padding: 8px 4px;
}
.management-login {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 4px;
  background: none;
  border: 0;
  color: #66758a;
  font-size: 13px;
}
.post-task {
  background: #fffdf8;
  border-color: #e8dbbb;
  border-left: 3px solid #c89a41;
}
.post-resource {
  background: #f8fbff;
  border-color: #d7e3f3;
  border-left: 3px solid #789bc9;
}
.post-task .type-tag {
  background: #f9edcf;
  color: #806021;
}
.post-resource .type-tag {
  background: #e7effc;
  color: #456998;
}
.nav a[href="#tasks"] svg {
  color: #a98031;
}
.nav a[href="#resources"] svg {
  color: #6489b9;
}
.deadline-head h3 {
  margin: 0;
  font-size: 14px;
}
.due-row.overdue .date-block {
  background: #fff0ed;
  color: #b1685c;
}
.field[hidden] {
  display: none;
}

/* Theme and compact dashboard, September update. */
.hero h1 {
  font-size: 30px;
  letter-spacing: -0.6px;
  line-height: 1.3;
  color: #244588;
  margin: 0;
  overflow-wrap: anywhere;
}
.top-actions .date {
  display: block;
  white-space: nowrap;
  font-size: 14px;
}
.top-actions {
  gap: 16px;
  flex-shrink: 0;
}
.theme-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #f5f7fb;
  color: #52657f;
  cursor: pointer;
}
.quick-account strong,
.quick-account small {
  white-space: nowrap;
}
.quick-account > span:nth-child(2) {
  min-width: 0;
}
.deadline-toggle {
  display: block;
  width: 100%;
  padding: 12px 18px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0 0 10px 10px;
  background: transparent;
  color: #3867a1;
  font-size: 14px;
  text-align: center;
}
.deadline-toggle:hover {
  background: #edf2fb;
}
.due-row {
  padding: 12px 16px;
  gap: 12px;
}
.deadline-head {
  padding: 14px 16px;
  gap: 12px;
}
.deadline-head span {
  white-space: nowrap;
}
.right-note {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
  padding: 20px 24px;
}
.right-note h3,
.right-note p {
  margin: 0;
}
.right-note a {
  white-space: nowrap;
}
.post-task {
  background: #f6fbfa;
  border-color: #cfe2df;
  border-left-color: #619c94;
}
.post-task .type-tag {
  background: #e1f0ed;
  color: #356f65;
}
.nav a[href="#tasks"] svg {
  color: #50877d;
}
.status-tag {
  background: #e6eef0;
  color: #506c74;
}
.card p.overdue {
  color: #aa5259;
}
.admin-actions {
  flex-wrap: wrap;
  row-gap: 12px;
}
@media (max-width: 1000px) {
  .hero h1 {
    font-size: 25px;
  }
  .right-note {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .top-actions {
    gap: 10px;
  }
}
@media (max-width: 600px) {
  .topbar .breadcrumb {
    display: none;
  }
  .top-actions {
    margin-left: auto;
  }
  .hero h1 {
    font-size: 23px;
  }
  .top-actions .date {
    font-size: 13px;
  }
  .quick-account {
    gap: 7px;
  }
}
/* Explicit dark surfaces preserve hierarchy and status contrast. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --blue: #8db1ff;
  --muted: #a2aec1;
  --line: #334159;
  color: #e1e8f3;
  background: #111925;
}
[data-theme="dark"] .sidebar,
[data-theme="dark"] .topbar,
[data-theme="dark"] .panel,
[data-theme="dark"] .card,
[data-theme="dark"] .quick,
[data-theme="dark"] dialog {
  background: #1a2535;
  border-color: var(--line);
  color: #e1e8f3;
}
[data-theme="dark"] .nav a,
[data-theme="dark"] .management,
[data-theme="dark"] .management-login,
[data-theme="dark"] .breadcrumb b,
[data-theme="dark"] .menu-button {
  color: #b7c4d7;
}
[data-theme="dark"] .nav a:hover,
[data-theme="dark"] .nav a.active,
[data-theme="dark"] .filter.active {
  background: #263b5b;
  color: #bad0ff;
}
[data-theme="dark"] .hero {
  background: #233754;
}
[data-theme="dark"] .hero h1 {
  color: #d2e1ff;
}
[data-theme="dark"] .eyebrow {
  color: #a5bce2;
}
[data-theme="dark"] .button {
  background: #3264d8;
  color: #fff;
}
[data-theme="dark"] .button.secondary,
[data-theme="dark"] .filter,
[data-theme="dark"] .theme-toggle,
[data-theme="dark"] .install {
  background: #202e42;
  border-color: #3b4c66;
  color: #c9d5e7;
}
[data-theme="dark"] .button.ghost {
  background: transparent;
  color: #a8c4ff;
}
[data-theme="dark"] .button.danger {
  background: #a73e50;
}
[data-theme="dark"] .tile-icon,
[data-theme="dark"] .date-block,
[data-theme="dark"] .avatar,
[data-theme="dark"] .tag {
  background: #2a3b55;
  color: #b3c7e8;
}
[data-theme="dark"] .quick:nth-child(2) .tile-icon {
  background: #38354c;
  color: #cbc2ed;
}
[data-theme="dark"] .quick:nth-child(3) .tile-icon {
  background: #423a30;
  color: #dac39a;
}
[data-theme="dark"] .quick:nth-child(4) .tile-icon {
  background: #25433f;
  color: #a4d2c5;
}
[data-theme="dark"] .card p,
[data-theme="dark"] .card .body-copy,
[data-theme="dark"] .info-card dd,
[data-theme="dark"] .field {
  color: #bac8db;
}
[data-theme="dark"] .card-foot {
  border-color: var(--line);
  color: #a7b5c9;
}
[data-theme="dark"] .metadata,
[data-theme="dark"] .quick small,
[data-theme="dark"] .subject-card small,
[data-theme="dark"] .due-row small,
[data-theme="dark"] .deadline-head span,
[data-theme="dark"] .section-head a,
[data-theme="dark"] .top-actions,
[data-theme="dark"] .footer,
[data-theme="dark"] .uni,
[data-theme="dark"] .hint,
[data-theme="dark"] .info-card dt {
  color: #a0afc4;
}
[data-theme="dark"] .right-note {
  background: #20314a;
}
[data-theme="dark"] .right-note h3,
[data-theme="dark"] .right-note a {
  color: #b2cbef;
}
[data-theme="dark"] .right-note p {
  color: #a8bad3;
}
[data-theme="dark"] .empty,
[data-theme="dark"] .empty h3 {
  color: #afbed2;
}
[data-theme="dark"] .post-task {
  background: #1b302f;
  border-color: #395853;
  border-left-color: #76a99f;
}
[data-theme="dark"] .post-task .type-tag {
  background: #294740;
  color: #b0dace;
}
[data-theme="dark"] .post-resource {
  background: #1b2b43;
  border-color: #3a5072;
  border-left-color: #8aaade;
}
[data-theme="dark"] .post-resource .type-tag {
  background: #2d4162;
  color: #bed2fa;
}
[data-theme="dark"] .nav a[href="#tasks"] svg {
  color: #9fcfc2;
}
[data-theme="dark"] .nav a[href="#resources"] svg {
  color: #a8c5ed;
}
[data-theme="dark"] .status-tag {
  background: #314449;
  color: #c0d9dd;
}
[data-theme="dark"] .tag.gold {
  background: #443c2d;
  color: #e0c793;
}
[data-theme="dark"] .overdue,
[data-theme="dark"] .card p.overdue,
[data-theme="dark"] .text-button.red,
[data-theme="dark"] .form-error {
  color: #efa5ab;
}
[data-theme="dark"] .due-row.overdue .date-block {
  background: #452f38;
  color: #f0adb5;
}
[data-theme="dark"] .field input,
[data-theme="dark"] .field textarea,
[data-theme="dark"] .field select {
  background: #121e2e;
  color: #e1e8f3;
  border-color: #465775;
}
[data-theme="dark"] .attachment {
  border-color: #445977;
  color: #b4cdf2;
}
[data-theme="dark"] .close {
  background: #2a3b52;
  color: #c5d1e2;
}
[data-theme="dark"] .poll-option .bar {
  background: #2b4265;
}
[data-theme="dark"] .text-button,
[data-theme="dark"] .deadline-toggle {
  color: #afcaff;
}
[data-theme="dark"] .deadline-toggle:hover {
  background: #293b57;
}
[data-theme="dark"] .notice {
  background: #3d3424;
  border-color: #675637;
  color: #e6cf9f;
}

@media (max-width: 420px) {
  .quick-account .tile-icon {
    width: 26px;
  }
  .quick-account {
    gap: 6px;
  }
}

/* Keep standalone resource links clear of the author divider. */
.card > .attachment {
  margin-bottom: 20px;
}
.theme-toggle > svg {
  display: block;
  width: 20px;
  height: 20px;
}

.subject-item {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.subject-item .subject-card {
  flex: 1;
}
.subject-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
}
.subject-actions button {
  text-align: left;
  line-height: 1.5;
}

/* Subject navigation and structured student work. */
.subject-tabs {display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 20px;}
.subject-tabs .filter {font-size:13px;padding:9px 13px;white-space:nowrap;}
.subject-all {margin-right:12px;flex-shrink:0;}
[data-theme] .subject-tabs .all-materials {border:0;background:transparent;box-shadow:none;color:var(--blue);font-weight:650;}
[data-theme="dark"] .subject-tabs .all-materials {color:#bad0ff;}
.subject-tabs .all-materials.active {text-decoration:underline;text-underline-offset:6px;text-decoration-thickness:2px;}
.subject-tabs .all-materials:hover {text-decoration:underline;text-underline-offset:6px;}
.subject-tabs .all-materials:focus-visible {outline:2px solid var(--blue);outline-offset:3px;}
.creative-card > .tag {display:table;margin-bottom:16px;}
.creative-card > h3 {margin-top:0;line-height:1.4;}
.due-row:last-child {border-bottom:0;}
.subject-settings {margin:-6px 0 20px;text-align:right;}
.topic-list {list-style:decimal;margin:22px 0 0;padding-left:25px;}
.topic-list li {padding:16px 0;border-top:1px solid var(--line);}
.topic-list li > div {display:inline-block;width:calc(100% - 170px);vertical-align:middle;padding-right:16px;overflow-wrap:anywhere;}
.topic-list li > button {vertical-align:middle;max-width:160px;}
.topic-student,.topic-free {display:block;margin-top:7px;font-size:13px;}
.topic-student {color:inherit;font-weight:600;font-size:16px;line-height:1.5;margin-top:18px;padding:6px 0 6px 12px;border-left:3px solid var(--line);}
.topic-free {color:var(--muted);}
.button.compact {padding:8px 12px;font-size:13px;}
.question-list {padding-left:24px;line-height:1.7;}
.question-list li {padding:10px 0 10px 5px;border-bottom:1px solid var(--line);overflow-wrap:anywhere;}
.list-preview {margin:10px 0 20px;max-height:240px;overflow:auto;line-height:1.6;}
.list-preview summary {cursor:pointer;}
.topic-edit-row {padding:12px 0;border-top:1px solid var(--line);}
.topic-edit-row textarea {min-height:70px;}
[hidden] {display:none!important;}
@media (max-width:600px) {
  .subject-tabs {gap:6px;}
  .subject-tabs .filter {padding:8px 10px;font-size:12px;}
  .subject-all {flex-basis:100%;margin:0 0 6px;}
  .subject-tabs .all-materials {width:auto;padding:9px 10px;text-align:left;font-size:14px;}
  .topic-list li > div {width:100%;padding:0 0 10px;}

}
