/* Book reader (reader/). Phone first: built for a Samsung S25 Ultra held in
   one hand with the S Pen in the other. Works on a computer too. */

@font-face { font-family: Inter; src: url(../assets/fonts/inter-latin.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Fraunces; src: url(../assets/fonts/fraunces-latin.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Mukta; src: url(../assets/fonts/mukta-devanagari-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Mukta; src: url(../assets/fonts/mukta-devanagari-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #1C1F2E; --ink-2: #464B5E; --ink-3: #5E637A; --ink-4: #9BA2BC;
  --line: #E8E9F0; --soft: #F3F4F8; --card: #fff; --bg: #fff;
  --brand: #CD0074; --brand-text: #A6005B; --brand-soft: #FFF0F7;
  --indigo: #5561C4; --indigo-soft: #E7ECFE;
  --paper-bg: #E9E9EE;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
body.theme-sepia { --paper-bg: #E7DFCC; }
body.theme-night {
  --ink: #ECEEF6; --ink-2: #C9CCDA; --ink-3: #A3A8BC; --ink-4: #6F7590;
  --line: #2C2F3D; --soft: #24273A; --card: #1B1D2A; --bg: #13141C;
  --brand-soft: #3A1029; --brand-text: #FF8CC6; --indigo-soft: #262C52;
  --paper-bg: #0B0C11;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: Inter, Mukta, system-ui, sans-serif; color: var(--ink); background: var(--bg);
  -webkit-tap-highlight-color: transparent; overscroll-behavior: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { width: 22px; height: 22px; display: block; }
.hidden { display: none !important; }
.hi { font-family: Mukta, Inter, sans-serif; }

.view { position: fixed; inset: 0; display: flex; flex-direction: column; background: var(--bg); }
.scroll { flex: 1; overflow-y: auto; padding: 0 16px; -webkit-overflow-scrolling: touch; }

/* ---------- bars and buttons ---------- */
.bar { display: flex; align-items: center; gap: 6px; padding: calc(env(safe-area-inset-top, 0px) + 10px) 12px 10px; background: var(--bg); }
.bar__title { flex: 1; font-size: 21px; font-weight: 700; margin: 0 4px; min-width: 0; }
.bar__title--small { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar--reader { border-bottom: 1px solid var(--line); padding-top: calc(env(safe-area-inset-top, 0px) + 6px); padding-bottom: 6px; z-index: 5; transition: transform .2s; }
.icon-btn {
  width: 40px; height: 40px; flex: none; border: 0; border-radius: 12px; background: var(--soft);
  display: grid; place-items: center; color: var(--ink); text-decoration: none;
}
.icon-btn:disabled { opacity: .35; }
.icon-btn.is-on { background: var(--brand); color: #fff; }
.icon-btn--dark { background: rgba(255,255,255,.12); color: #fff; width: 36px; height: 36px; }
.icon-btn svg { width: 21px; height: 21px; }
.aa { font-size: 16px; font-family: Fraunces, serif; }
.btn { border: 0; border-radius: 12px; padding: 11px 16px; font-weight: 600; font-size: 14px; background: var(--soft); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.btn-main { background: var(--brand); color: #fff; }
.btn-line { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-danger { background: #FDE8E8; color: #B42318; }
.btn svg { width: 18px; height: 18px; }
.fab {
  position: absolute; right: 18px; bottom: calc(22px + var(--safe-b)); z-index: 4;
  display: flex; align-items: center; gap: 8px; border: 0; cursor: pointer;
  background: var(--brand); color: #fff; border-radius: 18px; padding: 15px 20px; font-weight: 700; font-size: 15px;
  box-shadow: 0 8px 22px rgba(205,0,116,.35);
}
.fab--practice { background: linear-gradient(135deg, #CD0074, #5561C4); }

/* ---------- gate ---------- */
.gate { position: fixed; inset: 0; display: grid; place-items: center; padding: 24px; background: var(--bg); z-index: 50; }
.gate__box { max-width: 360px; text-align: center; }
.gate__logo { font-size: 54px; }
.gate h1 { margin: 6px 0; }
.gate p { color: var(--ink-3); line-height: 1.5; }

/* ---------- shelf ---------- */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 2px 0 14px; }
.quick button {
  border: 0; background: var(--brand-soft); border-radius: 14px; padding: 11px 4px 10px; text-align: center;
  font-size: 11.5px; color: var(--brand-text); font-weight: 600;
}
.quick b { display: block; font-size: 21px; color: var(--ink); }
.sec { font-size: 12.5px; font-weight: 700; color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; margin: 6px 0 10px; }
.cont { display: flex; gap: 14px; background: var(--soft); border-radius: 18px; padding: 12px; margin-bottom: 18px; border: 0; width: 100%; text-align: left; }
.cover {
  width: 76px; aspect-ratio: 3/4.2; flex: none; border-radius: 6px; overflow: hidden; background: #ccd center/cover no-repeat;
  box-shadow: 2px 3px 9px rgba(0,0,0,.22); position: relative;
}
.cover--blank { display: flex; align-items: flex-end; padding: 8px; color: #fff; font-family: Fraunces, serif; font-size: 12px; line-height: 1.2; }
.cont__t { font-weight: 700; font-size: 16px; line-height: 1.25; }
.cont__a { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.cont__p { font-size: 12.5px; color: var(--ink-3); margin-top: 12px; }
.meter { height: 6px; background: var(--line); border-radius: 4px; margin-top: 7px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--brand); border-radius: 4px; }
.cont__n { font-size: 11.5px; color: var(--ink-4); margin-top: 8px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 16px 12px; }
.book { border: 0; background: none; padding: 0; text-align: left; position: relative; }
.book .cover { width: 100%; }
.book__t { font-size: 12px; margin-top: 6px; line-height: 1.25; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.book__p { font-size: 11px; color: var(--ink-4); margin-top: 2px; }
.book--away .cover { opacity: .45; filter: grayscale(.6); }
.book__more { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; border-radius: 10px; border: 0; background: rgba(0,0,0,.45); color: #fff; display: grid; place-items: center; }
.book__more svg { width: 18px; height: 18px; }
.practice-card {
  display: flex; align-items: center; gap: 12px; width: 100%; border: 0; text-align: left; color: #fff;
  background: linear-gradient(135deg, #CD0074, #5561C4); border-radius: 18px; padding: 14px 16px; margin-bottom: 18px;
}
.practice-card b { font-size: 15px; display: block; }
.practice-card small { opacity: .85; font-size: 12px; }
.empty { text-align: center; color: var(--ink-3); padding: 30px 20px; line-height: 1.5; }
.empty__art { font-size: 48px; }
.empty strong { color: var(--ink); font-size: 17px; display: block; margin: 6px 0; }

/* ---------- the pages ---------- */
.pages {
  flex: 1; overflow: auto; background: var(--paper-bg); position: relative; outline: none;
  touch-action: pan-x pan-y; -webkit-overflow-scrolling: touch;
}
.pages__in { padding: 12px 0 140px; display: flex; flex-direction: column; align-items: center; gap: 12px; transform-origin: 0 0; min-width: 100%; width: max-content; }
.pg { position: relative; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.12); flex: none; }
body.theme-sepia .pg { background: #F6EEDC; }
body.theme-night .pg { background: #1A1B22; }
.pg canvas.pg__c { position: absolute; inset: 0; width: 100%; height: 100%; }
.pg__ph { position: absolute; inset: 0; display: grid; place-items: center; color: #B8BCCB; font-size: 13px; }
.pg__marks, .pg__flash { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
/* The blend sits on the layer, not on each mark: a mark blends only with what
   is inside its own layer, so on the mark it would cover the words. */
.pg__marks, .pg__flash { mix-blend-mode: multiply; }
body.theme-night .pg__marks, body.theme-night .pg__flash { mix-blend-mode: screen; }
.pg__ink { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.pg .textLayer { z-index: 1; }
.mk { position: absolute; border-radius: 2px; }
body.theme-night .mk { opacity: .55; }
.mk--ul { background: none !important; border-bottom: 2.5px solid; border-radius: 0; }
.mk-note { position: absolute; width: 20px; height: 20px; border-radius: 6px 6px 6px 0; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; z-index: 4; transform: translate(2px, -16px); box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.flash { position: absolute; background: rgba(85, 97, 196, .32); border-radius: 2px; animation: flash 2.2s ease-out forwards; }
.flash--tts { animation: none; background: rgba(255, 205, 0, .42); border-bottom: 3px solid #CD0074; border-radius: 3px; }
@keyframes flash { 0%,60% { opacity: 1 } 100% { opacity: 0 } }
.pg__bm { position: absolute; top: -3px; right: 18px; width: 18px; height: 30px; background: var(--brand); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 74%, 0 100%); z-index: 4; }
.pages.tool-draw .textLayer { cursor: crosshair; }
.pages.tool-draw .textLayer :is(span, br) { cursor: crosshair; }
.pages.finger-draws { touch-action: none; }
.pageno {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(128px + var(--safe-b)); z-index: 4;
  background: rgba(28,31,46,.78); color: #fff; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 5px 12px;
  pointer-events: none; transition: opacity .4s;
}
.pageno.is-quiet { opacity: 0; }

/* text layer from pdf.js (trimmed copy of its pdf_viewer.css) */
.textLayer { position: absolute; text-align: initial; inset: 0; overflow: clip; opacity: 1; line-height: 1; -webkit-text-size-adjust: none; text-size-adjust: none; forced-color-adjust: none; transform-origin: 0 0; caret-color: CanvasText; }
.textLayer :is(span, br) { color: transparent; position: absolute; white-space: pre; cursor: text; transform-origin: 0% 0%; user-select: text; -webkit-user-select: text; }
.textLayer { --min-font-size: 1; --text-scale-factor: calc(var(--total-scale-factor) * var(--min-font-size)); --min-font-size-inv: calc(1 / var(--min-font-size)); }
.textLayer > :not(.markedContent), .textLayer .markedContent span:not(.markedContent) {
  z-index: 1; --font-height: 0; font-size: calc(var(--text-scale-factor) * var(--font-height));
  --scale-x: 1; --rotate: 0deg; transform: rotate(var(--rotate)) scaleX(var(--scale-x)) scale(var(--min-font-size-inv));
}
.textLayer .markedContent { display: contents; }
.textLayer span[role="img"] { user-select: none; cursor: default; }
.textLayer ::selection { background: rgba(85, 97, 196, .35); color: transparent; }
.textLayer br::selection { background: transparent; }
.textLayer .endOfContent { display: block; position: absolute; inset: 100% 0 0; z-index: 0; cursor: default; user-select: none; }
.textLayer.selecting .endOfContent { top: 0; }

/* ---------- tools ---------- */
.tools { background: var(--bg); border-top: 1px solid var(--line); padding: 6px 6px calc(8px + var(--safe-b)); z-index: 5; }
.tools__row { display: flex; justify-content: space-around; }
.tool { border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; color: var(--ink-3); width: 52px; padding: 0; }
.tool span { width: 40px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--soft); color: var(--ink); }
.tool.is-on { color: var(--ink); font-weight: 700; }
.tool.is-on span { background: var(--ink); color: var(--bg); }
.tool:disabled { opacity: .35; }
.swatches { display: flex; justify-content: center; gap: 10px; padding: 2px 0 8px; }
.swatches:empty { display: none; }
.sw { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--line); padding: 0; }
.sw.is-on { box-shadow: 0 0 0 2.5px var(--ink); }
.sw-size { border: 0; background: var(--soft); border-radius: 999px; padding: 0 10px; font-size: 12px; font-weight: 600; height: 28px; }

/* ---------- read aloud ---------- */
.aloud {
  position: absolute; left: 10px; right: 10px; bottom: calc(96px + var(--safe-b)); z-index: 6;
  background: #1C1F2E; color: #fff; border-radius: 18px; padding: 9px 10px; display: flex; align-items: center; gap: 8px;
  box-shadow: 0 10px 26px rgba(0,0,0,.3);
}
.aloud__pp { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; }
.aloud__text { flex: 1; min-width: 0; font-size: 12px; border: 0; background: none; color: inherit; text-align: left; padding: 0; }
.aloud__text b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.aloud__text span { opacity: .65; }
.aloud__rate { border: 0; background: rgba(255,255,255,.12); color: #fff; border-radius: 10px; height: 36px; padding: 0 9px; font-weight: 700; font-size: 12px; }

/* ---------- sheet ---------- */
.scrim { position: fixed; inset: 0; background: rgba(15, 16, 26, .34); z-index: 20; }
.scrim--clear { background: transparent; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 21; max-height: 82vh; overflow-y: auto;
  background: var(--card); border-radius: 22px 22px 0 0; padding: 6px 18px calc(18px + var(--safe-b));
  box-shadow: 0 -10px 40px rgba(0,0,0,.22); animation: up .18s ease-out;
}
@media (min-width: 700px) { .sheet { left: 50%; right: auto; width: 560px; transform: translateX(-50%); bottom: 16px; border-radius: 22px; } }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
@media (min-width: 700px) { @keyframes up { from { opacity: 0; } } }
.sheet__grip { width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 4px auto 10px; }
.sheet h3 { margin: 4px 0 12px; font-size: 18px; }
.sheet .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.sheet label.lbl { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-3); margin: 14px 0 6px; }
.seg { display: flex; background: var(--soft); border-radius: 12px; padding: 3px; gap: 3px; }
.seg button { flex: 1; border: 0; background: none; border-radius: 10px; padding: 9px 6px; font-weight: 600; font-size: 13px; }
.seg button.is-on { background: var(--card); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.switch { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 14px; }
.switch input { width: 20px; height: 20px; accent-color: var(--brand); }
.input, .search, .select, textarea.input {
  width: 100%; border: 0; background: var(--soft); border-radius: 12px; padding: 11px 13px; font-size: 15px; outline: none;
}
textarea.input { min-height: 84px; resize: vertical; line-height: 1.45; }
.input:focus, .search:focus { box-shadow: 0 0 0 2px var(--indigo); }

/* meaning sheet */
.def__w { font-family: Fraunces, serif; font-size: 25px; font-weight: 600; line-height: 1.2; word-break: break-word; }
.def__w--phrase { font-size: 18px; font-weight: 500; }
.def__ipa { color: var(--ink-4); font-size: 13px; margin-left: 4px; font-family: Inter, sans-serif; font-weight: 400; }
.def__pos { display: inline-block; font-size: 11px; background: var(--indigo-soft); color: var(--indigo); border-radius: 6px; padding: 2px 7px; margin: 7px 0 6px; font-weight: 700; }
.def__m { font-size: 15px; line-height: 1.45; }
.def__hi { font-family: Mukta, sans-serif; font-size: 16px; color: var(--brand-text); margin-top: 6px; }
.def__ctx { font-size: 13.5px; color: var(--ink-2); font-style: italic; margin-top: 9px; border-left: 3px solid #FFC6DB; padding-left: 9px; line-height: 1.45; }
.def__ex { font-size: 13.5px; color: var(--ink-3); margin-top: 7px; line-height: 1.45; }
.def__load { color: var(--ink-4); font-size: 14px; padding: 8px 0; }
.dots::after { content: "…"; animation: dots 1s steps(3) infinite; }
.acts { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 14px; }
.acts .btn { padding: 9px 12px; font-size: 13px; }
.speak { border: 0; background: var(--soft); width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center; vertical-align: middle; margin-left: 4px; color: var(--ink); }
.speak svg { width: 18px; height: 18px; }

/* lists inside sheets */
.lst { list-style: none; margin: 0; padding: 0; }
.lst button { width: 100%; border: 0; background: none; text-align: left; padding: 11px 4px; border-bottom: 1px solid var(--line); display: flex; gap: 10px; font-size: 14px; align-items: baseline; }
.lst button em { margin-left: auto; font-style: normal; color: var(--ink-4); font-size: 12.5px; flex: none; }
.lst .lv1 { padding-left: 18px; } .lst .lv2 { padding-left: 32px; } .lst .lv3 { padding-left: 46px; }
.snip { color: var(--ink-2); line-height: 1.4; }
.snip mark { background: #FFE58A; color: #1C1F2E; border-radius: 2px; }

/* ---------- saved ---------- */
.tabs { display: flex; gap: 6px; padding: 0 14px 10px; overflow-x: auto; scrollbar-width: none; flex: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { border: 0; border-radius: 999px; padding: 8px 13px; font-size: 13px; font-weight: 600; background: var(--soft); white-space: nowrap; }
.tabs button.is-on { background: var(--ink); color: var(--bg); }
.tabs button i { font-style: normal; opacity: .65; margin-left: 4px; }
.sv-filters { display: flex; gap: 8px; padding: 0 14px 12px; flex: none; }
.sv-filters .select { width: 40%; flex: none; font-size: 13px; }
.card { border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; margin-bottom: 10px; position: relative; background: var(--card); }
.card__w { font-family: Fraunces, serif; font-size: 19px; font-weight: 600; padding-right: 64px; word-break: break-word; }
.card__q { font-family: Fraunces, serif; font-size: 16.5px; line-height: 1.42; padding-right: 64px; }
.card__m { font-size: 13.5px; color: var(--ink-2); margin-top: 4px; line-height: 1.4; }
.card__hi { font-family: Mukta, sans-serif; font-size: 14.5px; color: var(--brand-text); margin-top: 2px; }
.card__note { font-size: 13.5px; margin-top: 6px; background: var(--brand-soft); border-radius: 10px; padding: 7px 10px; line-height: 1.4; }
.card__src { font-size: 11.5px; color: var(--ink-4); margin-top: 7px; }
.card__src button { border: 0; background: none; color: var(--indigo); font-weight: 600; font-size: 11.5px; padding: 0; }
.card__tools { position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; }
.card__tools button { width: 32px; height: 32px; border-radius: 10px; border: 0; background: var(--soft); display: grid; place-items: center; }
.card__tools svg { width: 17px; height: 17px; }
.card__bar { display: inline-block; width: 4px; position: absolute; left: 0; top: 12px; bottom: 12px; border-radius: 0 4px 4px 0; }
.card__ink { width: 100%; max-height: 220px; object-fit: contain; background: #fff; border-radius: 10px; margin-top: 8px; border: 1px solid var(--line); }
.box-dots { display: inline-flex; gap: 3px; margin-left: 6px; vertical-align: middle; }
.box-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.box-dots i.on { background: #2E9E5B; }

/* ---------- practice ---------- */
.practice { flex: 1; display: flex; flex-direction: column; padding: 10px 18px calc(20px + var(--safe-b)); overflow-y: auto; }
.pr-count { font-size: 13px; color: var(--ink-3); font-weight: 600; padding-right: 6px; }
.flip {
  flex: 1; min-height: 300px; border-radius: 24px; padding: 26px 22px; display: flex; flex-direction: column; justify-content: center;
  text-align: center; background: var(--card); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.08);
}
.flip__kind { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-text); }
.flip__front { font-family: Fraunces, serif; font-size: 30px; font-weight: 600; margin: 12px 0; line-height: 1.25; word-break: break-word; }
.flip__front--phrase { font-size: 21px; font-weight: 500; }
.flip__back { border-top: 1px dashed var(--line); padding-top: 14px; margin-top: 10px; text-align: left; }
.pr-btns { display: flex; gap: 10px; margin-top: 16px; }
.pr-btns .btn { flex: 1; justify-content: center; padding: 15px; font-size: 15px; }
.btn-good { background: #2E9E5B; color: #fff; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(150px + var(--safe-b)); z-index: 40;
  background: #1C1F2E; color: #fff; border-radius: 12px; padding: 11px 16px; font-size: 14px; font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,.25); max-width: calc(100vw - 32px); text-align: center;
}
@keyframes dots { from { width: 0 } }

@media (min-width: 900px) {
  .scroll { padding: 0 max(16px, calc(50vw - 420px)); }
  .tabs, .sv-filters { padding-left: max(14px, calc(50vw - 420px)); padding-right: max(14px, calc(50vw - 420px)); }
}
@media (prefers-reduced-motion: reduce) { .sheet, .flash { animation: none; } }

/* "Jump to where it's reading": shows while that sentence is off screen. */
.jump {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(160px + var(--safe-b)); z-index: 7;
  border: 0; border-radius: 999px; padding: 11px 18px; font-weight: 700; font-size: 14px;
  background: #CD0074; color: #fff; box-shadow: 0 8px 22px rgba(205,0,116,.4); white-space: nowrap;
}
.aloud__where { font-size: 17px; }
@media (max-width: 380px) { #al-prev { display: none; } }

/* Natural voice box in the Aa sheet */
.ai-box { background: var(--brand-soft); border-radius: 14px; padding: 12px 12px 4px; }
.ai-head { font-weight: 700; font-size: 14.5px; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.ai-tag { font-size: 11px; font-weight: 700; background: var(--line); color: var(--ink-3); border-radius: 999px; padding: 2px 8px; }
.ai-tag--on { background: #2E9E5B; color: #fff; }
.ai-note { font-size: 12.5px; color: var(--ink-3); line-height: 1.45; margin: 4px 0 10px; }
.ai-err { font-size: 13px; color: #B42318; margin: 0 0 10px; line-height: 1.4; }
.linkish { border: 0; background: none; color: var(--indigo); font-weight: 600; padding: 0; font-size: 12.5px; }
