:root {
  color-scheme: light;
  --ink: #17211f;
  --muted: #66716d;
  --line: #dfe5e1;
  --surface: #ffffff;
  --surface-soft: #f5f7f5;
  --surface-teal: #eef8f6;
  --teal: #0f766e;
  --teal-dark: #0a5a54;
  --gold: #a7762b;
  --shadow: 0 18px 45px rgba(22, 37, 33, 0.09);
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fafbf9; color: var(--ink); }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.library-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid rgba(218, 225, 221, 0.92);
  background: rgba(250, 251, 249, 0.94);
  backdrop-filter: blur(15px);
}

.library-brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.library-brand__mark { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 10px; background: var(--ink); }
.library-brand__mark img { width: 24px; height: 24px; }
.library-brand strong, .library-brand small { display: block; }
.library-brand strong { font-size: 15px; }
.library-brand small { margin-top: 2px; color: var(--muted); font-size: 10px; }

.library-nav { display: flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.library-nav a { padding: 8px 13px; border-radius: 7px; color: #59645f; font-size: 12px; font-weight: 700; text-decoration: none; }
.library-nav a:hover, .library-nav a:focus-visible { color: var(--teal-dark); outline: none; background: var(--surface-teal); }
.library-nav a.is-active { color: #fff; background: var(--ink); }

.catalog-view { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: clamp(48px, 7vw, 88px) 0 80px; }
.catalog-intro { display: flex; align-items: end; justify-content: space-between; gap: 44px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.section-label { margin: 0 0 12px; color: var(--teal); font-size: 12px; font-weight: 850; letter-spacing: .08em; }
.catalog-intro h1 { margin: 0; font-family: Georgia, "Noto Serif SC", serif; font-size: clamp(40px, 6vw, 64px); font-weight: 600; letter-spacing: -.035em; }
.catalog-intro > div > p:last-child { margin: 16px 0 0; color: var(--muted); font-size: 16px; }
.catalog-counts { display: flex; margin: 0; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.catalog-counts div { min-width: 90px; padding: 14px 20px; text-align: center; }
.catalog-counts div + div { border-left: 1px solid var(--line); }
.catalog-counts dt { color: var(--muted); font-size: 11px; }
.catalog-counts dd { margin: 4px 0 0; color: var(--teal-dark); font-family: Georgia, serif; font-size: 25px; font-weight: 700; }

.catalog-section { padding-top: 54px; }
.catalog-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.catalog-heading h2 { margin: 0; font-size: 28px; }
.catalog-heading p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.catalog-search { display: flex; width: min(100%, 370px); min-height: 46px; align-items: center; gap: 9px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--muted); }
.catalog-search:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15, 118, 110, .1); }
.catalog-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.catalog-filter { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding: 12px 0; border-block: 1px solid var(--line); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-chip { min-height: 34px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: #52605b; font-size: 12px; font-weight: 750; }
.filter-chip span { margin-left: 5px; color: #88918d; }
.filter-chip.is-active { border-color: var(--teal); background: var(--surface-teal); color: var(--teal-dark); }
.catalog-result-count { margin: 0; color: var(--muted); font-size: 12px; white-space: nowrap; }
.resource-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 25px; }
.resource-card { display: flex; min-height: 260px; flex-direction: column; padding: 26px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 8px 25px rgba(22, 37, 33, .04); }
.resource-card:hover { border-color: rgba(15, 118, 110, .42); box-shadow: var(--shadow); }
.resource-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.resource-card__folder { display: grid; width: 48px; height: 42px; place-items: center; border-radius: 9px; background: var(--surface-teal); color: var(--teal-dark); }
.resource-card__folder svg { width: 25px; }
.resource-card__status { padding: 5px 8px; border-radius: 999px; background: var(--surface-soft); color: var(--muted); font-size: 10px; font-weight: 750; }
.resource-card__overline { margin-top: 23px; color: var(--teal); font-size: 11px; font-weight: 800; }
.resource-card h3 { margin: 7px 0 0; font-size: 24px; }
.resource-card__subtitle { margin: 7px 0 0; color: #43504b; font-size: 13px; font-weight: 650; }
.resource-card__description { margin: 15px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.resource-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 22px; }
.resource-card__counts { color: var(--muted); font-size: 11px; }
.open-exam, .open-document { display: inline-flex; min-height: 40px; align-items: center; gap: 7px; padding: 8px 14px; border: 0; border-radius: 8px; background: var(--teal); color: #fff; font-size: 12px; font-weight: 800; }
.open-exam:hover, .open-exam:focus-visible, .open-document:hover, .open-document:focus-visible { outline: none; background: var(--teal-dark); }
.external-document { text-decoration: none; }
.catalog-empty { grid-column: 1 / -1; padding: 55px 24px; border: 1px dashed #bdc7c1; border-radius: 14px; background: #fff; text-align: center; }
.catalog-empty h3 { margin: 0; }
.catalog-empty p { margin: 8px 0 0; color: var(--muted); }

.exam-view { width: min(1320px, calc(100% - 40px)); margin: 0 auto; padding: 24px 0 90px; }
.exam-topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 46px; margin-bottom: 18px; color: var(--muted); font-size: 11px; }
.back-button { display: inline-flex; min-height: 40px; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 750; }
.back-button:hover, .back-button:focus-visible { border-color: var(--teal); color: var(--teal-dark); outline: none; }
.docs-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(34px, 5vw, 76px); align-items: start; }
.docs-sidebar { position: sticky; top: 94px; padding: 18px 0; border-top: 2px solid var(--ink); }
.docs-sidebar__title span, .docs-sidebar__title strong { display: block; }
.docs-sidebar__title span { color: var(--teal); font-size: 11px; font-weight: 800; }
.docs-sidebar__title strong { margin-top: 5px; font-size: 17px; }
.docs-sidebar nav { display: grid; gap: 2px; margin-top: 17px; }
.docs-sidebar a { position: relative; padding: 9px 10px 9px 14px; border-left: 2px solid var(--line); color: #65706b; font-size: 12px; font-weight: 650; line-height: 1.4; text-decoration: none; }
.docs-sidebar a:hover, .docs-sidebar a:focus-visible, .docs-sidebar a.is-active { border-left-color: var(--teal); color: var(--teal-dark); outline: none; background: linear-gradient(90deg, var(--surface-teal), transparent); }
.exam-document { min-width: 0; max-width: 940px; padding: clamp(34px, 5vw, 66px); border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: 0 12px 35px rgba(23, 33, 31, .05); }
.exam-header { padding-bottom: 44px; border-bottom: 1px solid var(--line); }
.exam-header h1 { margin: 0; font-family: Georgia, "Noto Serif SC", serif; font-size: clamp(38px, 5vw, 58px); font-weight: 600; letter-spacing: -.035em; }
.exam-header > p:not(.section-label) { max-width: 760px; margin: 17px 0 0; color: var(--muted); line-height: 1.8; }
.exam-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.exam-tags span { padding: 6px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-soft); color: #58645f; font-size: 11px; font-weight: 700; }
.document-section { scroll-margin-top: 94px; padding: 48px 0; border-bottom: 1px solid var(--line); }
.document-section:last-child { border-bottom: 0; padding-bottom: 0; }
.section-heading { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-items: start; margin-bottom: 25px; }
.section-heading > span { padding-top: 4px; color: var(--teal); font-family: Georgia, serif; font-size: 15px; font-weight: 700; }
.section-heading h2 { margin: 0; font-size: 25px; }
.section-heading p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.overview-grid div { min-height: 104px; padding: 17px 19px; border-bottom: 1px solid var(--line); }
.overview-grid div:nth-child(odd) { border-right: 1px solid var(--line); }
.overview-grid div:last-child:nth-child(even), .overview-grid div:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
.overview-grid div:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
.overview-grid dt { color: var(--muted); font-size: 11px; font-weight: 700; }
.overview-grid dd { margin: 7px 0 0; color: #293633; font-size: 13px; font-weight: 650; line-height: 1.65; }
.inline-links, .section-links { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-left: 8px; vertical-align: baseline; }
.inline-links a, .section-links a { display: inline-flex; align-items: center; gap: 3px; color: var(--teal-dark); font-size: 12px; font-weight: 750; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.inline-links a span, .section-links a span { font-size: 10px; text-decoration: none; }
.section-links { display: flex; margin: 0 0 14px; }
.section-content { margin-left: 48px; }
.section-content p { margin: 0; color: #4f5c57; font-size: 14px; line-height: 1.85; }
.section-content p + p { margin-top: 15px; }
.section-content ul, .section-content ol { margin: 0; padding-left: 21px; color: #4f5c57; font-size: 14px; line-height: 1.85; }
.section-content li + li { margin-top: 8px; }
.section-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.section-table th, .section-table td { padding: 13px 14px; border: 1px solid var(--line); vertical-align: top; line-height: 1.6; text-align: left; }
.section-table th { width: 23%; background: var(--surface-soft); color: #42504b; }
.section-table td { color: #52605b; }

.qualification-common, .qualification-subjects { background: linear-gradient(180deg, rgba(238, 248, 246, .55), transparent 150px); }
.overview-grid--shared { margin-left: 48px; }
.qualification-link { display: inline-flex; min-height: 40px; align-items: center; gap: 8px; margin: 18px 0 0 48px; padding: 8px 14px; border: 1px solid var(--teal); border-radius: 8px; background: #fff; color: var(--teal-dark); font-size: 12px; font-weight: 800; }
.qualification-link:hover, .qualification-link:focus-visible { outline: none; background: var(--surface-teal); }
.subject-directory-search { display: flex; min-height: 42px; align-items: center; gap: 8px; margin: 0 0 18px 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--muted); }
.subject-directory-search:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15, 118, 110, .1); }
.subject-directory-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.subject-directory { display: grid; gap: 25px; margin-left: 48px; }
.subject-group { scroll-margin-top: 100px; }
.subject-group h3 { margin: 0 0 10px; color: #44514c; font-size: 13px; }
.subject-group-nav { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 3px; }
.subject-group-nav a { padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--teal-dark); font-size: 11px; font-weight: 750; text-decoration: none; }
.subject-group-nav a:hover, .subject-group-nav a:focus-visible { border-color: var(--teal); outline: none; background: var(--surface-teal); }
.subject-group-nav span { color: var(--muted); }
.subject-group__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.subject-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 76px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 9px; background: #fff; text-align: left; text-decoration: none; }
.subject-card:hover, .subject-card:focus-visible { border-color: var(--teal); outline: none; box-shadow: 0 7px 18px rgba(15, 118, 110, .08); }
.subject-card strong, .subject-card small { display: block; }
.subject-card strong { color: var(--ink); font-size: 13px; line-height: 1.45; }
.subject-card small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.subject-card__code { color: var(--teal-dark); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; font-weight: 800; }
.subject-directory-empty { padding: 28px 20px; border: 1px dashed var(--line); border-radius: 9px; color: var(--muted); text-align: center; }

.folder-browser { margin-left: 48px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.folder-root { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--surface-soft); font-size: 13px; font-weight: 800; }
.folder-root svg, .folder-row__icon svg { width: 21px; color: var(--teal); }
.folder-group + .folder-group { border-top: 1px solid var(--line); }
.folder-group__heading { display: flex; align-items: center; gap: 9px; padding: 12px 16px 12px 30px; background: #fbfcfb; color: #53605b; font-size: 12px; font-weight: 750; }
.folder-group__heading::before { content: "▸"; color: #919a96; }
.folder-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 15px 16px 15px 48px; border-top: 1px solid #edf0ee; }
.folder-row__icon { display: grid; width: 32px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.folder-row__copy { min-width: 0; }
.folder-row__copy strong, .folder-row__copy span { display: block; }
.folder-row__copy strong { font-size: 13px; }
.folder-row__copy span { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.folder-empty { padding: 32px 20px; color: var(--muted); font-size: 13px; text-align: center; }
.source-list { display: grid; gap: 11px; margin: 0 0 0 48px; padding-left: 20px; }
.source-list li { padding-left: 5px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.source-list a { color: var(--teal-dark); font-weight: 700; text-underline-offset: 3px; }
.source-list small { display: block; margin-top: 2px; }

.reader-view { width: min(1480px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0 50px; }
.reader-header { display: grid; grid-template-columns: minmax(150px, .55fr) minmax(0, 1fr) minmax(150px, .55fr); gap: 20px; align-items: center; margin-bottom: 18px; }
.reader-header__title { min-width: 0; text-align: center; }
.reader-header__title p, .reader-header__title h1 { overflow: hidden; margin: 0; text-overflow: ellipsis; white-space: nowrap; }
.reader-header__title p { color: var(--teal); font-size: 10px; font-weight: 800; }
.reader-header__title h1 { margin-top: 4px; font-size: 20px; }
.reader-mode-badge { justify-self: end; padding: 7px 10px; border: 1px solid rgba(15,118,110,.28); border-radius: 999px; background: var(--surface-teal); color: var(--teal-dark); font-size: 10px; font-weight: 800; }
.reader-layout { display: grid; grid-template-columns: minmax(235px, 290px) minmax(0, 1fr); gap: 17px; min-height: calc(100vh - 140px); }
.reader-details, .reader-document { border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: 0 8px 24px rgba(23,33,31,.05); }
.reader-details { align-self: start; padding: 16px; }
.reader-cover { aspect-ratio: .71; border: 1px solid var(--line); border-radius: 8px; background: #e7ebe8 center top / cover; }
.reader-details__type { margin: 18px 0 0; color: var(--teal); font-size: 10px; font-weight: 800; }
.reader-details h2 { margin: 7px 0 0; font-size: 20px; line-height: 1.3; }
.reader-details__description { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.reader-meta { display: grid; margin: 17px 0 0; border-top: 1px solid var(--line); }
.reader-meta div { display: grid; grid-template-columns: 68px 1fr; gap: 8px; padding: 9px 0; border-bottom: 1px solid #e9edea; font-size: 10px; line-height: 1.5; }
.reader-meta dt { color: var(--muted); }
.reader-meta dd { margin: 0; font-weight: 700; }
.reader-notice { margin: 16px 0 0; padding: 11px; border-left: 3px solid var(--gold); background: #faf6ef; color: #6b5b45; font-size: 10px; line-height: 1.6; }
.reader-document { display: flex; min-width: 0; min-height: 720px; flex-direction: column; overflow: hidden; }
.reader-toolbar { display: flex; min-height: 56px; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 13px; border-bottom: 1px solid var(--line); background: #fbfcfb; }
.reader-toolbar__group { display: flex; align-items: center; gap: 7px; }
.reader-toolbar button { display: inline-grid; min-width: 34px; height: 34px; place-items: center; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); font-weight: 750; }
.reader-toolbar button:hover:not(:disabled), .reader-toolbar button:focus-visible:not(:disabled) { border-color: var(--teal); color: var(--teal-dark); outline: none; }
.reader-toolbar button:disabled { cursor: not-allowed; opacity: .4; }
.page-jump { display: flex; height: 34px; align-items: center; gap: 5px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--muted); font-size: 11px; }
.page-jump input { width: 38px; border: 0; outline: 0; background: transparent; color: var(--ink); font-weight: 800; text-align: right; appearance: textfield; }
.reader-zoom output { width: 45px; color: var(--muted); font-size: 10px; font-weight: 800; text-align: center; }
.reader-toolbar .fit-button { width: auto; font-size: 10px; }
.reader-progress { height: 3px; background: #e8ece9; }
.reader-progress span { display: block; width: 0; height: 100%; background: var(--teal); transition: width .18s; }
.reader-stage { position: relative; display: block; flex: 1; min-height: 610px; padding: clamp(16px,3vw,38px); overflow: auto; background: #29312f; outline: none; overscroll-behavior: contain; }
.reader-stage:focus-visible { box-shadow: inset 0 0 0 3px #75cec4; }
.reader-sheet { --reader-zoom: 1; position: relative; width: min(calc(100% * var(--reader-zoom)), calc(960px * var(--reader-zoom))); min-width: min(calc(100% * var(--reader-zoom)), calc(960px * var(--reader-zoom))); margin: 0 auto; overflow: hidden; background: #fff; box-shadow: 0 18px 55px rgba(0,0,0,.28); transition: opacity .12s; }
.reader-sheet.is-loading { opacity: .35; }
#readerPage { display: block; width: 100%; height: auto; user-select: none; }
.reader-watermark { position: absolute; right: 16px; bottom: 15px; padding: 4px 7px; border-radius: 4px; background: rgba(255,255,255,.78); color: rgba(23,33,31,.45); font-size: 7px; font-weight: 900; letter-spacing: .1em; pointer-events: none; }
.reader-loading { position: absolute; top: 50%; left: 50%; z-index: 2; min-width: 170px; padding: 12px 14px; border-radius: 8px; background: rgba(23,33,31,.9); color: #fff; font-size: 11px; font-weight: 700; text-align: center; transform: translate(-50%,-50%); }
.reader-help { margin: 0; padding: 9px 12px; border-top: 1px solid var(--line); background: #fbfcfb; color: var(--muted); font-size: 10px; text-align: center; }
.library-toast { position: fixed; right: 20px; bottom: 20px; z-index: 80; max-width: min(360px, calc(100vw - 40px)); padding: 11px 14px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 12px; opacity: 0; pointer-events: none; transform: translateY(10px); transition: .18s; }
.library-toast.is-visible { opacity: 1; transform: none; }

@media (max-width: 920px) {
  .library-header { position: static; align-items: flex-start; flex-direction: column; gap: 10px; }
  .library-nav { display: grid; width: 100%; grid-template-columns: repeat(4, 1fr); }
  .library-nav a { text-align: center; }
  .catalog-intro { align-items: flex-start; flex-direction: column; }
  .resource-grid { grid-template-columns: 1fr; }
  .docs-layout { display: block; }
  .docs-sidebar { position: static; overflow: hidden; margin-bottom: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
  .docs-sidebar__title { display: none; }
  .docs-sidebar nav { display: flex; margin: 0; overflow-x: auto; gap: 5px; scrollbar-width: thin; }
  .docs-sidebar a { flex: 0 0 auto; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; white-space: nowrap; }
  .docs-sidebar a.is-active { border-color: var(--teal); background: var(--surface-teal); }
  .exam-document { padding: 38px; }
  .section-content, .folder-browser, .source-list, .overview-grid--shared, .subject-directory, .subject-directory-search { margin-left: 0; }
  .reader-layout { grid-template-columns: 220px minmax(0,1fr); }
}

@media (max-width: 700px) {
  .library-header { padding-inline: 14px; }
  .library-brand small { display: none; }
  .library-nav { grid-template-columns: repeat(2, 1fr); }
  .catalog-view, .exam-view { width: min(100% - 24px, 1180px); }
  .catalog-view { padding-top: 34px; }
  .catalog-counts { width: 100%; }
  .catalog-counts div { min-width: 0; flex: 1; padding-inline: 10px; }
  .catalog-heading, .catalog-filter { align-items: stretch; flex-direction: column; }
  .catalog-search { width: 100%; }
  .docs-layout { display: block; }
  .exam-document { padding: 28px 20px; }
  .overview-grid { grid-template-columns: 1fr; }
  .overview-grid div, .overview-grid div:nth-child(odd), .overview-grid div:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .overview-grid div:last-child { border-bottom: 0; }
  .section-content, .folder-browser, .source-list, .overview-grid--shared, .subject-directory, .subject-directory-search { margin-left: 0; }
  .qualification-link { width: 100%; justify-content: center; margin-left: 0; }
  .subject-group__grid { grid-template-columns: 1fr; }
  .folder-row { grid-template-columns: 30px minmax(0,1fr); padding-left: 22px; }
  .folder-row .open-document { grid-column: 1 / -1; width: 100%; justify-content: center; }
  .reader-view { width: 100%; padding-top: 13px; }
  .reader-header { grid-template-columns: 1fr auto; padding-inline: 12px; }
  .reader-header__title { grid-column: 1 / -1; grid-row: 1; text-align: left; }
  .reader-header .back-button, .reader-mode-badge { grid-row: 2; }
  .reader-layout { grid-template-columns: 1fr; }
  .reader-details, .reader-document { border-inline: 0; border-radius: 0; }
  .reader-details { display: none; }
  .reader-toolbar { align-items: stretch; flex-direction: column; }
  .reader-toolbar__group { justify-content: center; }
  .reader-zoom { display: none; }
  .reader-stage { min-height: 520px; padding: 10px; }
  .reader-sheet { width: 100%; min-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
