@charset "UTF-8";

:root {
  color-scheme: light;
  --paper: #f7f3eb;
  --sheet: #fdfaf4;
  --sidebar: #f1ede4;
  --ink: #373c34;
  --muted: #797b6e;
  --faint: #97978a;
  --line: #ded8ca;
  --soft-line: #eae4d8;
  --copper: #9a613f;
  --copper-soft: #efe3d6;
  --green: #54634a;
  --green-soft: #e8ecdf;
  --warning: #98684f;
  --shadow: 0 10px 40px rgb(64 48 25 / 4%);
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --header-height: 84px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #242620;
  --sheet: #2c2e27;
  --sidebar: #21231e;
  --ink: #e7e1d3;
  --muted: #b1af9e;
  --faint: #939483;
  --line: #48493e;
  --soft-line: #3b3e33;
  --copper: #d0a07b;
  --copper-soft: #443a2e;
  --green: #b3c09e;
  --green-soft: #394332;
  --warning: #d1a58c;
  --shadow: 0 10px 40px rgb(0 0 0 / 9%);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 20px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 14px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
button, summary, select, input[type="range"] { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
button { border: 0; background: none; }
button:disabled { opacity: .35; cursor: default; }
a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { color: var(--copper); }
button, a, input, select, summary { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 4px; }
::selection { color: var(--ink); background: var(--copper-soft); }
h1, h2, h3, p { margin: 0; }
svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon { width: 20px; height: 20px; flex: 0 0 20px; }
.small-icon { width: 13px; height: 13px; flex-basis: 13px; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 10px; left: 12px; transform: translateY(-180%); padding: 10px 18px; z-index: 120; background: var(--sheet); border: 1px solid var(--copper); border-radius: 4px; }
.skip-link:focus { transform: translateY(0); }
.mobile-only { display: none !important; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; color: var(--muted); transition: background .16s, color .16s; }
.icon-button:hover:not(:disabled) { background: var(--copper-soft); color: var(--copper); }
.text-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 0; font-size: 12px; font-weight: 500; color: var(--muted); }
.text-button:hover:not(:disabled) { color: var(--copper); }
.text-button .icon { width: 17px; height: 17px; flex-basis: 17px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--copper); font-size: 10px; line-height: 1.5; letter-spacing: 1.7px; font-weight: 600; text-transform: uppercase; }
.eyebrow-line { width: 24px; height: 1px; background: var(--copper); }
kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 21px; padding: 0 4px; border: 1px solid var(--line); border-radius: 3px; font: 10px var(--sans); color: var(--faint); }

.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-height); padding: 0 36px 0 28px; background: var(--paper); border-bottom: 1px solid var(--line); }
.brand-wrap, .brand, .header-actions { display: flex; align-items: center; }
.brand { gap: 13px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-lotus { width: 41px; height: 45px; color: var(--copper); stroke-width: 1.25; }
.brand-name { display: block; font: 26px/1.15 var(--serif); letter-spacing: -.5px; }
.brand-caption { display: block; margin-top: 5px; color: var(--muted); font-size: 8px; letter-spacing: 2.1px; }
.header-actions { gap: 11px; }
.header-divider { height: 18px; width: 1px; background: var(--line); margin: 0 3px; }
.language-switch { display: flex; gap: 3px; }
.language-switch button { min-width: 33px; min-height: 34px; padding: 5px; border-radius: 4px; font-size: 11px; letter-spacing: .5px; color: var(--muted); }
.language-switch button[aria-pressed="true"] { color: var(--ink); background: var(--copper-soft); font-weight: 650; }
.offline-indicator { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11px; }
.offline-indicator .icon { width: 15px; height: 15px; flex-basis: 15px; }
.download-menu { position: relative; margin-left: 7px; }
.download-trigger { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 39px; padding: 6px 13px; border: 1px solid var(--line); border-radius: 5px; font-size: 12px; list-style: none; }
summary::-webkit-details-marker { display: none; }
.download-trigger:hover, .download-menu[open] .download-trigger { background: var(--sheet); border-color: var(--copper); }
.download-trigger > .icon:first-child { width: 16px; height: 16px; flex-basis: 16px; }
.download-popover { position: absolute; top: calc(100% + 13px); right: 0; z-index: 50; width: 297px; padding: 20px; border: 1px solid var(--line); border-radius: 7px; background: var(--sheet); box-shadow: 0 12px 35px rgb(0 0 0 / 12%); }
.download-popover > .eyebrow { font-size: 9px; margin-bottom: 11px; }
.download-popover > a { display: grid; grid-template-columns: 43px 1fr 16px; align-items: center; gap: 10px; padding: 13px 0; text-decoration: none; border-bottom: 1px solid var(--soft-line); font-size: 11px; color: var(--muted); }
.download-popover > a:hover { color: var(--copper); }
.download-popover .icon { width: 14px; height: 14px; }
.file-type { font-size: 10px; font-weight: 650; letter-spacing: .5px; color: var(--ink); }
.download-note { font-size: 10px; line-height: 1.65; color: var(--muted); margin-top: 13px; }

.app-shell { display: grid; grid-template-columns: 298px minmax(0, 1fr); align-items: start; }
.sidebar { position: sticky; top: var(--header-height); display: flex; flex-direction: column; height: calc(100vh - var(--header-height)); height: calc(100dvh - var(--header-height)); min-height: 340px; padding: 25px 18px 0; background: var(--sidebar); border-right: 1px solid var(--line); }
.sidebar-heading { display: flex; align-items: center; gap: 12px; padding: 0 7px; margin-bottom: 21px; }
.sidebar-heading h2 { font: 23px/1.3 var(--serif); }
.collection-total { margin-left: auto; color: var(--muted); font-size: 10px; letter-spacing: .5px; white-space: nowrap; }
.search-field { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 5px; }
.search-field:focus-within { border-color: var(--copper); }
.search-field > .icon { width: 16px; height: 16px; flex-basis: 16px; color: var(--muted); }
.search-field input { width: 100%; min-width: 0; padding: 10px 0; border: none; background: none; font-size: 11px; outline: 0; }
.search-field input::placeholder { color: var(--muted); opacity: 1; }
.search-field kbd { min-width: 16px; height: 18px; font-size: 10px; }
.group-filters { display: flex; flex-wrap: wrap; gap: 3px; margin: 17px 0 14px; }
.group-filters button { padding: 5px 7px; min-height: 32px; font-size: 10px; border: 1px solid transparent; border-radius: 4px; color: var(--muted); }
.group-filters button:hover { color: var(--ink); }
.group-filters button[aria-pressed="true"] { background: var(--sheet); border-color: var(--line); color: var(--copper); }
.chapter-filter { margin: 17px 0 14px; min-width: 0; }
.chapter-filter label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 10px; }
.chapter-filter select { width: 100%; min-height: 42px; padding: 8px 7px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); color: var(--ink); font-size: 11px; cursor: pointer; text-overflow: ellipsis; }
.status-filter-wrap { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; padding: 0 6px 11px; border-bottom: 1px solid var(--line); }
.status-filter-wrap select { width: 185px; max-width: 85%; border: 0; padding: 4px 16px 4px 0; background-color: var(--sidebar); color: var(--muted); font-size: 11px; cursor: pointer; }
.result-count { color: var(--faint); font-size: 10px; }
.unit-list { flex: 1; overflow-y: auto; overscroll-behavior: contain; min-height: 0; margin: 0 -6px 0 -4px; padding: 0 6px 16px 4px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.list-group { margin: 0 0 14px; }
.list-group-heading { display: flex; align-items: center; justify-content: space-between; padding: 14px 9px 8px; font-size: 9px; font-weight: 500; color: var(--muted); letter-spacing: 1.05px; text-transform: uppercase; }
.list-group-heading span { color: var(--faint); font-size: 9px; }
.unit-row { display: flex; align-items: center; gap: 10px; text-align: left; width: 100%; min-height: 67px; padding: 11px 9px; border: 1px solid transparent; border-radius: 5px; margin: 3px 0; transition: background .15s; }
.unit-row:hover { background: var(--paper); }
.unit-row[aria-current="page"] { background: var(--sheet); border-color: var(--line); box-shadow: 0 2px 6px rgb(40 30 20 / 3%); }
.row-number { align-self: flex-start; flex: 0 0 22px; padding-top: 1px; font: 16px/1.5 var(--serif); color: var(--faint); }
[data-collection="kanthahara"] .row-number { flex-basis: 27px; font-size: 14px; }
.unit-row[aria-current="page"] .row-number { color: var(--copper); }
.row-content { display: block; min-width: 0; flex: 1; }
.row-reference { display: block; color: var(--ink); font-size: 11px; font-weight: 550; line-height: 1.5; }
.row-opening { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font: italic 12px/1.5 var(--serif); margin-top: 4px; }
.row-markers { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 13px; color: var(--copper); }
.row-markers .icon { width: 12px; height: 12px; flex-basis: 12px; }
.row-markers .is-favourite { fill: var(--copper); }
.row-markers .is-learned { color: var(--green); }
.row-markers .is-due { color: var(--muted); }
.list-empty { padding: 35px 16px; color: var(--muted); text-align: center; font-size: 12px; }
.list-empty .icon { width: 28px; height: 28px; margin: 0 auto 15px; color: var(--faint); }
.list-empty .text-button { color: var(--copper); margin-top: 8px; }
.sidebar-footer { display: flex; align-items: center; gap: 9px; padding: 17px 3px 19px; border-top: 1px solid var(--line); color: var(--muted); }
.sidebar-footer > .icon { width: 17px; height: 17px; flex-basis: 17px; color: var(--green); }
.sidebar-footer p { white-space: pre-line; flex: 1; font-size: 10px; line-height: 1.6; }
.sidebar-footer > button { width: 30px; height: 30px; flex-basis: 30px; }
.sidebar-footer > button .icon { width: 16px; height: 16px; }

.main { width: 100%; max-width: 1230px; padding: 40px 52px 25px; margin: 0 auto; min-width: 0; }
.main:focus { outline: none; }
.collection-switcher { display: grid; grid-template-columns: auto minmax(180px, 310px) 1fr; align-items: center; gap: 14px; margin-bottom: 29px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.collection-switcher > label { color: var(--muted); font-size: 10px; }
.collection-select-wrap { position: relative; min-width: 0; background: var(--sheet); border-radius: 5px; }
.collection-select-wrap select { appearance: none; width: 100%; min-height: 44px; padding: 9px 33px 9px 36px; border: 1px solid var(--line); border-radius: 5px; background: transparent; color: var(--ink); font: 17px/1.4 var(--serif); cursor: pointer; text-overflow: ellipsis; }
.collection-select-wrap > .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--copper); pointer-events: none; }
.collection-select-wrap > .collection-select-chevron { left: auto; right: 11px; width: 12px; height: 12px; color: var(--muted); }
.collection-scope { justify-self: end; max-width: 155px; color: var(--muted); font-size: 10px; line-height: 1.65; text-align: right; }
.introduction { display: flex; justify-content: space-between; align-items: center; gap: 30px; margin-bottom: 34px; }
.intro-copy { min-width: 0; max-width: 550px; }
h1 { font: 43px/1.15 var(--serif); letter-spacing: -1.2px; margin: 15px 0 14px; white-space: pre-line; }
.intro-description { color: var(--muted); max-width: 475px; font-size: 12px; line-height: 1.85; }
.intro-dedication { color: var(--muted); max-width: 530px; margin-top: 10px; font: 13px/1.65 var(--serif); }
.daily-goal { display: flex; align-items: center; position: relative; gap: 13px; flex: 0 0 auto; padding: 18px 20px 18px 17px; border: 1px solid var(--line); border-radius: 6px; text-align: left; }
.daily-goal:hover { background: var(--sheet); border-color: var(--copper); }
.goal-ring { position: relative; width: 48px; height: 48px; flex: 0 0 48px; }
.goal-ring > svg { width: 48px; height: 48px; transform: rotate(-90deg); stroke-width: 2; }
.ring-track { stroke: var(--line); }
.ring-value { stroke: var(--copper); stroke-dasharray: 125.664; stroke-dashoffset: 125.664; transition: stroke-dashoffset .6s ease; }
.goal-ring > span { position: absolute; inset: 0; display: grid; place-items: center; font: 20px var(--serif); color: var(--copper); }
.goal-copy { display: flex; flex-direction: column; }
.goal-title { font-size: 11px; color: var(--muted); }
.goal-copy strong { font: 24px/1.2 var(--serif); margin: 3px 0 4px; letter-spacing: .5px; }
.goal-caption { max-width: 125px; font-size: 9px; color: var(--muted); line-height: 1.5; }
.goal-edit { position: absolute; right: 8px; top: 8px; width: 11px; height: 11px; color: var(--faint); }
.study-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 0 17px; }
.mode-switch { display: inline-flex; align-items: center; gap: 3px; padding: 4px; background: var(--sidebar); border: 1px solid var(--line); border-radius: 6px; }
.mode-switch button { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 13px; min-height: 37px; border-radius: 3px; color: var(--muted); font-size: 11px; }
.mode-switch .icon { width: 16px; height: 16px; flex-basis: 16px; }
.mode-switch button[aria-pressed="true"] { background: var(--sheet); color: var(--ink); box-shadow: 0 1px 4px rgb(0 0 0 / 5%); }
.toolbar-navigation { display: flex; align-items: center; gap: 3px; }
.position-label { font-size: 11px; color: var(--muted); white-space: nowrap; margin-right: 10px; font-variant-numeric: tabular-nums; }
.toolbar-navigation .icon-button { width: 30px; height: 33px; flex-basis: 30px; }
.toolbar-navigation .icon { width: 16px; height: 16px; }
.previous-icon { transform: rotate(180deg); }
.study-page { padding: 31px 36px 0; background: var(--sheet); border: 1px solid var(--line); border-radius: 7px; box-shadow: var(--shadow); }
.page-heading { display: flex; align-items: flex-start; gap: 18px; }
.unit-index { color: var(--copper); font: 43px/1.1 var(--serif); padding-top: 0; min-width: 47px; }
.reference-block { flex: 1; min-width: 0; padding-top: 1px; }
.reference-block .eyebrow { font-size: 8px; letter-spacing: 1.2px; }
.reference-block h2 { font: 23px/1.35 var(--serif); margin-top: 6px; overflow-wrap: anywhere; }
.source-author { color: var(--muted); font-size: 10px; margin-top: 6px; }
.favourite-button { margin-top: 1px; }
.favourite-button[aria-pressed="true"] { color: var(--copper); background: var(--copper-soft); }
.favourite-button[aria-pressed="true"] svg { fill: var(--copper); stroke-width: 1.2; }
.script-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 22px 0 0; margin-top: 19px; border-top: 1px solid var(--soft-line); }
.script-switch { display: flex; gap: 17px; }
.script-switch button { position: relative; padding: 5px 0 8px; font-size: 10px; color: var(--muted); }
.script-switch button[aria-pressed="true"] { color: var(--copper); }
.script-switch button[aria-pressed="true"]::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; bottom: 2px; background: var(--copper); }
.review-status { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 9px; }
.review-status.is-due { color: var(--copper); }
.verse { padding: 38px 0 28px; font: 26px/1.8 var(--serif); letter-spacing: .1px; }
.verse.is-iast { font-style: italic; }
.verse.is-original { font-family: "Bengali MN", "Kohinoor Devanagari", "Noto Serif Bengali", "Noto Serif Devanagari", var(--serif); font-size: 28px; line-height: 2; }
.verse-line { display: grid; grid-template-columns: 0 minmax(0, 1fr) 0; align-items: start; gap: 0; min-height: 1.8em; }
.line-text { grid-column: 2; grid-row: 1; min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; text-align: center; }
.line-number { grid-column: 1; grid-row: 1; color: var(--faint); font: 9px/2.4 var(--sans); padding-top: 10px; text-align: left; }
.verse.is-recall .verse-line { grid-template-columns: 19px minmax(0, 1fr) 27px; gap: 4px; }
.line-reveal { grid-column: 3; grid-row: 1; width: 27px; height: 34px; margin-top: 7px; padding: 5px; border-radius: 4px; color: var(--faint); }
.line-reveal .icon { width: 15px; height: 15px; }
.line-reveal:hover, .line-reveal[aria-pressed="true"] { background: var(--copper-soft); color: var(--copper); }
.word-mask { color: var(--faint); font-style: normal; letter-spacing: 1.2px; }
.verse-ornament { display: flex; justify-content: center; align-items: center; gap: 14px; margin-bottom: 30px; }
.verse-ornament > span { width: 53px; height: 1px; background: var(--line); }
.verse-ornament svg { width: 22px; height: 24px; color: var(--copper); stroke-width: 1.1; }
.recall-controls { margin-top: 19px; padding: 13px 16px 11px; background: var(--paper); border: 1px solid var(--soft-line); border-radius: 5px; }
.reading-note { margin-top: 20px; padding: 12px 15px; border-left: 2px solid var(--copper); background: var(--paper); }
.reading-note .small-label { color: var(--copper); }
.reading-note p { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.8; white-space: pre-line; }
.mask-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 10px; }
.mask-heading label { color: var(--ink); }
.mask-heading output { color: var(--copper); }
input[type="range"] { display: block; width: 100%; margin: 12px 0 8px; accent-color: var(--copper); height: 16px; }
.mask-scale { display: flex; justify-content: space-between; font-size: 9px; color: var(--muted); }
.recall-reveal { display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid var(--soft-line); padding: 11px 0 18px; }
.recall-reveal p { max-width: 65%; color: var(--muted); font-size: 10px; }
.recall-reveal .text-button { font-size: 10px; color: var(--copper); white-space: nowrap; }
.plate-note { border-left: 2px solid var(--copper); padding: 8px 14px; margin: 0 0 25px; color: var(--muted); background: var(--paper); border-radius: 0 3px 3px 0; font-size: 11px; }
.small-label { display: block; text-transform: uppercase; letter-spacing: 1px; font-size: 8px; font-weight: 600; color: var(--copper); margin-bottom: 5px; }
.meaning-section { margin-bottom: 26px; }
.section-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px 12px; margin-bottom: 12px; }
.study-page h3 { font-size: 10px; line-height: 1.5; letter-spacing: 1.3px; font-weight: 600; text-transform: uppercase; }
.editorial-label { font-size: 9px; font-weight: 400; color: var(--muted); }
.meaning-text { font: 18px/1.8 var(--serif); white-space: pre-line; }
.source-invitation { color: var(--muted); font-size: 10px; line-height: 1.7; margin-top: 12px; }
.translation-section { border-left: 2px solid var(--line); padding: 3px 0 3px 18px; margin: 0 0 26px; }
.translation-section blockquote { margin: 12px 0 10px; font: 17px/1.8 var(--serif); white-space: pre-line; }
.attribution { color: var(--muted); font-size: 10px; white-space: pre-line; }
.license-note { font-size: 9px; color: var(--muted); margin-top: 5px; }
.variant-section { margin: 0 0 25px; padding: 17px; border: 1px solid var(--soft-line); border-radius: 4px; }
.variant-section h3 { color: var(--copper); font-size: 9px; }
.variant-item { margin-top: 14px; }
.variant-language { color: var(--muted); font-size: 9px; letter-spacing: 1px; text-transform: uppercase; }
.variant-text { margin-top: 5px; font: 16px/1.8 var(--serif); white-space: pre-line; }
.variant-note { font-size: 10px; line-height: 1.7; color: var(--muted); margin-top: 8px; white-space: pre-line; }
.variant-item .attribution { margin-top: 7px; }
.commentary { border-top: 1px solid var(--soft-line); }
.commentary > summary { display: flex; align-items: center; gap: 8px; min-height: 57px; list-style: none; font-size: 11px; color: var(--muted); }
.commentary > summary > .icon { width: 15px; height: 15px; flex-basis: 15px; }
.commentary > summary .commentary-chevron { margin-left: auto; width: 13px; height: 13px; transition: transform .2s; }
.commentary[open] .commentary-chevron { transform: rotate(180deg); }
.commentary > summary:hover { color: var(--copper); }
.commentary-body { padding: 1px 0 22px 23px; color: var(--muted); }
.commentary-body > p { font-size: 12px; line-height: 1.95; white-space: pre-line; margin-bottom: 12px; }
.source-link { display: inline-flex; align-items: center; gap: 5px; color: var(--copper); font-size: 10px; text-decoration: none; }
.source-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.source-link .icon { width: 12px; height: 12px; flex-basis: 12px; }
.page-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 0; border-top: 1px solid var(--soft-line); }
.source-details { flex: 1; min-width: min(100%, 180px); }
.source-citation { margin-bottom: 7px; color: var(--muted); font: 13px/1.7 var(--serif); white-space: pre-line; overflow-wrap: anywhere; }
.source-links { display: flex; align-items: center; gap: 12px; }
.source-language-links { display: flex; align-items: center; gap: 7px; border-left: 1px solid var(--line); padding-left: 11px; }
.source-language-links:empty { display: none; }
.source-language-links a { color: var(--muted); font-size: 9px; text-decoration: none; }
.source-language-links a[aria-current="true"] { color: var(--copper); }
.learned-toggle { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; font-size: 10px; color: var(--muted); padding: 4px 8px; border-radius: 4px; }
.learned-toggle .icon { width: 14px; height: 14px; flex-basis: 14px; }
.learned-toggle:hover, .learned-toggle[aria-pressed="true"] { color: var(--green); background: var(--green-soft); }
.rating-panel { margin-top: 23px; padding: 21px 24px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--sidebar); }
.rating-intro { text-align: center; }
.rating-intro h2 { font: 20px/1.4 var(--serif); }
.rating-intro p { margin-top: 5px; font-size: 10px; color: var(--muted); }
.rating-buttons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-top: 18px; }
.rating-buttons button { position: relative; display: flex; flex-direction: column; align-items: center; padding: 11px 16px; min-height: 67px; background: var(--sheet); border: 1px solid var(--line); border-radius: 4px; }
.rating-buttons button:hover { border-color: var(--copper); transform: translateY(-1px); }
.rating-buttons button > span { font-size: 12px; }
.rating-buttons button > small { color: var(--muted); font-size: 9px; margin-top: 4px; }
.rating-buttons button > kbd { position: absolute; right: 5px; top: 5px; height: 14px; min-width: 13px; font-size: 8px; border: 0; opacity: .8; }
.rating-buttons .rating-good { background: var(--green-soft); border-color: var(--green); }
.rating-buttons .rating-good > span { color: var(--green); }
.rating-buttons .rating-again > span { color: var(--warning); }
.rating-feedback { color: var(--green); font-size: 10px; text-align: center; margin-top: 10px; min-height: 16px; }
.bottom-navigation { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px 0 10px; }
.bottom-navigation .text-button { font-size: 11px; }
.bottom-navigation .next-button { color: var(--copper); }
.keyboard-hint { display: flex; align-items: center; gap: 4px; color: var(--faint); font-size: 9px; }
.keyboard-hint > span { margin-left: 4px; }
.edition-footer { margin: 21px 0 0; border-top: 1px solid var(--line); padding-top: 19px; }
.edition-note { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); }
.edition-note > .icon { width: 13px; height: 13px; flex-basis: 13px; margin-top: 2px; }
.edition-note p { font-size: 10px; line-height: 1.8; }
.edition-about { margin-top: 9px; color: var(--muted); }
.edition-about > summary { width: fit-content; padding: 5px 0; color: var(--copper); font-size: 10px; cursor: pointer; }
.edition-about > p { margin: 5px 0 11px; font-size: 11px; line-height: 1.9; white-space: pre-line; overflow-wrap: anywhere; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; color: var(--muted); font-size: 9px; }
.footer-bottom .text-button { font-size: 10px; }
.footer-bottom .icon { width: 13px; height: 13px; }
.loading-state, .error-state { padding: 70px 25px; border: 1px solid var(--line); border-radius: 7px; text-align: center; background: var(--sheet); }
.loading-lotus { width: 48px; height: 48px; color: var(--copper); margin: 0 auto 20px; animation: breathe 2s ease-in-out infinite; }
.loading-state p { color: var(--muted); font: 19px var(--serif); }
.error-state > .icon { margin: 0 auto 15px; color: var(--copper); width: 28px; height: 28px; }
.error-state h2 { font: 25px/1.4 var(--serif); }
.error-state p { max-width: 390px; margin: 14px auto 22px; color: var(--muted); font-size: 12px; }
.primary-button, .secondary-button { min-height: 42px; border-radius: 4px; padding: 10px 18px; font-size: 12px; }
.primary-button { color: var(--sheet); background: var(--ink); border: 1px solid var(--ink); }
.primary-button:hover { background: var(--green); border-color: var(--green); }
.secondary-button { color: var(--muted); background: none; border: 1px solid var(--line); }
.secondary-button:hover { color: var(--ink); border-color: var(--muted); }
.drawer-backdrop { position: fixed; inset: 0; z-index: 70; background: rgb(20 22 16 / 40%); }
.drawer-open, .modal-open { overflow: hidden; }
.app-dialog { position: fixed; width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 40px); overflow-y: auto; padding: 30px; border: 1px solid var(--line); border-radius: 8px; background: var(--sheet); color: var(--ink); box-shadow: 0 20px 80px rgb(0 0 0 / 20%); }
.app-dialog::backdrop { background: rgb(22 24 18 / 48%); }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.dialog-lotus { width: 38px; height: 41px; color: var(--copper); stroke-width: 1.2; }
.dialog-close { align-self: flex-start; margin: -10px -10px 0 0; }
.app-dialog h2 { font: 29px/1.25 var(--serif); margin: 9px 0 16px; }
.app-dialog p:not(.eyebrow) { color: var(--muted); font-size: 12px; line-height: 1.85; }
#goal-form > label { display: block; margin: 22px 0 8px; font-size: 11px; }
#goal-input { width: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 11px 14px; font: 23px var(--serif); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 25px; }
.practice-steps { padding-left: 20px; margin: 20px 0 25px; }
.practice-steps li { padding-left: 7px; margin: 18px 0; color: var(--copper); font: 17px var(--serif); }
.practice-steps strong { font: 18px var(--serif); color: var(--ink); }
.practice-steps p { margin-top: 6px; font-family: var(--sans); }
.shortcut-list { border-top: 1px solid var(--line); padding-top: 17px; }
.shortcut-list h3 { font: 19px var(--serif); margin-bottom: 14px; }
.shortcut-list > div { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 10px 0; font-size: 11px; color: var(--muted); }
.shortcut-list kbd { min-width: 42px; }
.help-privacy { margin-top: 23px; padding-top: 17px; border-top: 1px solid var(--line); font-size: 10px !important; }
.toast { position: fixed; bottom: 23px; left: 50%; transform: translateX(-50%); z-index: 110; width: max-content; max-width: calc(100% - 32px); padding: 12px 20px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: var(--sheet); box-shadow: 0 5px 24px rgb(0 0 0 / 12%); font-size: 12px; text-align: center; }
.noscript-note { position: fixed; inset: auto 16px 16px; padding: 25px; background: var(--sheet); border: 1px solid var(--copper); text-align: center; z-index: 100; }
@keyframes breathe { 50% { opacity: .45; } }

@media (min-width: 1550px) {
  .app-shell { grid-template-columns: 320px minmax(0, 1fr); }
  .sidebar { padding-right: 24px; padding-left: 24px; }
  .main { padding-top: 53px; }
  .introduction { margin-bottom: 43px; }
  h1 { font-size: 49px; }
  .verse { padding-top: 45px; padding-bottom: 34px; font-size: 29px; }
  .study-page { padding: 35px 45px 0; }
}
@media (max-width: 1190px) {
  .app-shell { grid-template-columns: 268px minmax(0, 1fr); }
  .sidebar { padding-left: 14px; padding-right: 14px; }
  .group-filters button { padding: 5px 5px; font-size: 9px; }
  .main { padding: 33px 30px 22px; }
  .introduction { gap: 15px; }
  h1 { font-size: 36px; }
  .daily-goal { padding: 17px 14px; gap: 9px; }
  .goal-caption { max-width: 103px; }
  .study-page { padding: 27px 27px 0; }
  .reference-block h2 { font-size: 21px; }
  .verse { font-size: 24px; }
}
@media (max-width: 960px) {
  :root { --header-height: 75px; }
  .topbar { padding: 0 25px 0 15px; }
  .mobile-only { display: inline-flex !important; }
  .brand-wrap { gap: 9px; }
  .brand-name { font-size: 24px; }
  .brand-lotus { width: 34px; height: 39px; }
  .brand-caption { font-size: 7px; }
  .app-shell { display: block; }
  .main { max-width: 850px; padding: 33px 33px 22px; }
  .sidebar { position: fixed; z-index: 80; top: 0; bottom: 0; left: 0; width: min(340px, 90vw); height: 100vh; height: 100dvh; padding-top: 23px; transform: translateX(-105%); visibility: hidden; transition: transform .22s ease, visibility .22s; box-shadow: 8px 0 40px rgb(0 0 0 / 10%); }
  .sidebar.is-open { transform: translateX(0); visibility: visible; }
  .sidebar-heading { margin-bottom: 18px; }
  .sidebar-heading .collection-total { margin-left: auto; }
  .sidebar-heading .icon-button { margin-left: 1px; }
  .group-filters { gap: 7px; }
  .group-filters button { padding: 5px 9px; font-size: 10px; }
  .search-field input { font-size: 13px; }
  .search-field kbd { display: none; }
  .unit-row { min-height: 70px; }
  .row-reference { font-size: 12px; }
  .row-opening { font-size: 13px; }
  .introduction { margin-bottom: 29px; }
  h1 { font-size: 41px; }
  .daily-goal { padding: 19px; gap: 13px; }
  .goal-caption { max-width: 118px; }
  .study-page { padding: 31px 34px 0; }
  .verse { font-size: 27px; }
}
@media (max-width: 600px) {
  :root { --header-height: 68px; }
  .topbar { padding: 0 13px 0 7px; gap: 5px; }
  .brand-wrap { gap: 1px; }
  .brand { gap: 6px; }
  .brand-name { font-size: 21px; }
  .brand-lotus { width: 28px; height: 33px; }
  .brand-caption { font-size: 6px; letter-spacing: 1.3px; margin-top: 4px; }
  .header-actions { gap: 2px; }
  .header-divider { display: none; }
  .header-actions .icon-button { width: 31px; height: 35px; flex-basis: 31px; }
  .language-switch { gap: 0; }
  .language-switch button { min-width: 27px; min-height: 33px; font-size: 10px; padding: 4px; }
  .download-menu { margin-left: 3px; }
  .download-trigger { min-width: 34px; min-height: 35px; padding: 7px; }
  .download-trigger > span, .download-trigger > .small-icon { display: none; }
  .download-popover { width: min(297px, calc(100vw - 26px)); top: calc(100% + 12px); }
  .offline-indicator { display: none; }
  .main { padding: 27px 16px 18px; }
  .collection-switcher { grid-template-columns: 1fr auto; gap: 8px 12px; margin-bottom: 25px; padding-bottom: 17px; }
  .collection-select-wrap { grid-column: 1 / -1; grid-row: 2; }
  .collection-select-wrap select { font-size: 17px; min-height: 45px; }
  .collection-scope { grid-column: 2; grid-row: 1; max-width: 175px; font-size: 9px; }
  .introduction { display: block; margin-bottom: 24px; }
  .eyebrow { font-size: 8px; letter-spacing: 1.4px; }
  h1 { font-size: 37px; margin: 13px 0 11px; letter-spacing: -.8px; }
  .intro-description { font-size: 11px; max-width: 350px; line-height: 1.8; }
  .daily-goal { width: 100%; padding: 11px 15px; gap: 12px; margin-top: 20px; }
  .goal-ring { width: 39px; height: 39px; flex-basis: 39px; }
  .goal-ring > svg { width: 39px; height: 39px; }
  .goal-ring > span { font-size: 17px; }
  .goal-copy { display: grid; grid-template-columns: auto auto; align-items: baseline; column-gap: 11px; flex: 1; }
  .goal-title { font-size: 10px; }
  .goal-copy strong { font-size: 20px; margin: 0; }
  .goal-caption { max-width: none; font-size: 9px; grid-column: 1 / -1; margin-top: 2px; }
  .goal-edit { right: 14px; top: 50%; transform: translateY(-50%); width: 13px; height: 13px; }
  .study-toolbar { gap: 6px; padding-bottom: 13px; }
  .mode-switch { padding: 3px; gap: 1px; }
  .mode-switch button { min-height: 35px; padding: 6px 9px; font-size: 10px; gap: 6px; }
  .mode-switch .icon { width: 14px; height: 14px; flex-basis: 14px; }
  .position-label { font-size: 9px; margin-right: 0; }
  .toolbar-navigation { gap: 0; }
  .toolbar-navigation .icon-button { width: 26px; flex-basis: 26px; }
  .toolbar-navigation .icon { width: 15px; height: 15px; }
  .study-page { padding: 24px 20px 0; border-radius: 5px; }
  .page-heading { gap: 12px; }
  .unit-index { font-size: 37px; min-width: 40px; }
  .reference-block .eyebrow { font-size: 7px; letter-spacing: 1px; }
  .reference-block h2 { font-size: 21px; margin-top: 5px; }
  .source-author { font-size: 9px; line-height: 1.7; }
  .favourite-button { width: 31px; height: 33px; flex-basis: 31px; margin-right: -7px; }
  .favourite-button .icon { width: 18px; height: 18px; }
  .script-bar { margin-top: 17px; padding-top: 13px; gap: 5px; }
  .script-switch { gap: 17px; }
  .script-switch button { font-size: 10px; }
  .review-status { font-size: 8px; }
  .verse { font-size: 23px; line-height: 1.85; padding: 31px 0 26px; letter-spacing: 0; }
  .verse.is-original { font-size: 25px; }
  .verse.is-recall .verse-line { grid-template-columns: 11px minmax(0, 1fr) 23px; gap: 2px; }
  .line-number { font-size: 8px; padding-top: 9px; }
  .line-reveal { width: 24px; height: 33px; padding: 5px; margin-top: 4px; }
  .line-reveal .icon { width: 14px; height: 14px; }
  .verse-ornament { margin-bottom: 26px; }
  .recall-controls { margin-top: 15px; padding: 12px; }
  .recall-reveal { align-items: flex-start; gap: 8px; }
  .recall-reveal p { max-width: 60%; font-size: 9px; }
  .recall-reveal .text-button { font-size: 9px; padding-top: 1px; }
  .section-heading { gap: 5px 9px; }
  .study-page h3 { font-size: 9px; }
  .editorial-label { font-size: 8px; }
  .meaning-text { font-size: 17px; line-height: 1.85; }
  .translation-section blockquote { font-size: 16px; }
  .commentary-body { padding-left: 0; }
  .commentary-body > p { font-size: 11px; }
  .page-footer { gap: 6px; padding: 12px 0; }
  .learned-toggle { font-size: 9px; padding: 4px; }
  .source-links { gap: 7px; }
  .source-language-links { padding-left: 7px; gap: 5px; }
  .source-link { font-size: 9px; }
  .rating-panel { padding: 19px 15px 13px; margin-top: 17px; }
  .rating-intro h2 { font-size: 20px; }
  .rating-intro p { font-size: 9px; }
  .rating-buttons { gap: 6px; margin-top: 15px; }
  .rating-buttons button { padding: 13px 5px 10px; min-height: 63px; }
  .rating-buttons button > span { font-size: 11px; }
  .rating-buttons button > small { font-size: 8px; }
  .rating-buttons button > kbd { display: none; }
  .rating-feedback { font-size: 9px; }
  .bottom-navigation { padding-top: 14px; gap: 8px; }
  .bottom-navigation .text-button { font-size: 10px; gap: 5px; }
  .keyboard-hint { display: none; }
  .edition-footer { margin-top: 15px; padding-top: 17px; }
  .edition-note p { font-size: 9px; line-height: 1.85; }
  .footer-bottom { margin-top: 8px; }
  .app-dialog { padding: 25px; }
  .app-dialog h2 { font-size: 27px; }
  .shortcut-list > div { gap: 12px; font-size: 10px; }
}
@media (max-width: 360px) {
  .brand-lotus { display: none; }
  .main { padding-left: 12px; padding-right: 12px; }
  .study-page { padding-left: 16px; padding-right: 16px; }
  h1 { font-size: 34px; }
  .verse { font-size: 21px; }
  .mode-switch button { padding-left: 7px; padding-right: 7px; }
  .mode-switch .icon { display: none; }
  .position-label { font-size: 8px; }
  .page-footer { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
@media print {
  :root { color-scheme: light; --paper: #fff; --sheet: #fff; --ink: #222; --muted: #666; --line: #ccc; --soft-line: #ddd; --copper: #77523a; }
  .topbar, .sidebar, .collection-switcher, .introduction, .study-toolbar, .recall-controls, .recall-reveal, .favourite-button, .script-bar, .rating-panel, .bottom-navigation, .learned-toggle, .footer-bottom, .line-reveal, .toast, dialog { display: none !important; }
  .app-shell { display: block; }
  .main { max-width: none; padding: 0; }
  .study-page { border: 0; box-shadow: none; padding: 15px; }
  .verse { font-size: 22px; }
  .verse.is-recall .verse-line { display: block; }
  .line-number { display: none; }
  .edition-footer { margin: 20px 15px; }
}
