/* UB Tools Studio: light stone, shaped like clay.
   One raised slab holds a pressed-in well; everything else stays quiet.
   The book's own words are always set in Newsreader; our interface in Hanken Grotesk. */

:root {
  --ground: #E7E5E1;      /* limestone */
  --chalk: #F2F1EE;       /* raised surfaces */
  --basin: #E1DED9;       /* pressed-in surfaces */
  --ink: #2B2E33;         /* slate */
  --graphite: #5F6267;
  --faint: #64676D;
  --lapis: #46618A;       /* focus and selection only */
  --lapis-soft: rgba(70, 97, 138, .14);
  --pass: #4F6F5B;
  --fix: #8A5A1F;
  --lift-dark: rgba(150, 142, 131, .42);
  --lift-light: rgba(255, 255, 255, .95);
  --press-dark: rgba(150, 142, 131, .5);
  --press-light: rgba(255, 255, 255, .9);
  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --r-slab: 34px;
  --r-well: 22px;
  --r-control: 14px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font: 400 16px/1.55 var(--sans);
  color: var(--ink);
  background-color: var(--ground);
  /* fine grain, like honed limestone */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .40 0 0 0 0 .37 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(1200px 700px at 15% -10%, #F4F3F0 0%, transparent 60%),
    radial-gradient(900px 600px at 110% 110%, #DAD6D0 0%, transparent 55%);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--lapis); text-underline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--lapis); outline-offset: 3px; border-radius: 10px; }

/* ---------- bar ---------- */
.bar {
  max-width: 1180px; margin: 0 auto; padding: 22px 24px 8px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-weight: 600; letter-spacing: -.01em; font-size: 17px; }
.mark { width: 34px; height: 34px; filter: drop-shadow(3px 4px 5px var(--lift-dark)) drop-shadow(-2px -2px 3px var(--lift-light)); }
.status {
  margin: 0; font-size: 13.5px; color: var(--graphite);
  padding: 7px 14px; border-radius: 999px; background: var(--basin);
  box-shadow: inset 2px 2px 4px var(--press-dark), inset -2px -2px 4px var(--press-light);
}
.status.ready::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--pass); margin-right: 8px; vertical-align: 1px; }

main { max-width: 1180px; margin: 0 auto; padding: 18px 24px 56px; }

/* ---------- the slab ---------- */
.slab {
  position: relative;
  background: linear-gradient(155deg, #F6F5F2 0%, var(--chalk) 45%, #ECEAE6 100%);
  border-radius: var(--r-slab);
  padding: 22px 22px 18px;
  box-shadow:
    22px 26px 50px var(--lift-dark),
    -16px -16px 38px var(--lift-light),
    inset 1px 1px 0 rgba(255, 255, 255, .9),
    inset -1px -1px 0 rgba(160, 152, 141, .18);
  animation: rise .9s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes rise { from { transform: translateY(14px); box-shadow: 4px 6px 14px var(--lift-dark), -4px -4px 10px var(--lift-light); opacity: .6; } }

/* segmented control: a pressed track with a clay thumb */
.modes {
  position: relative; display: inline-grid; grid-template-columns: repeat(3, auto);
  padding: 5px; border-radius: 16px; background: var(--basin);
  box-shadow: inset 3px 3px 6px var(--press-dark), inset -3px -3px 6px var(--press-light);
}
.modes button {
  position: relative; z-index: 1; border: 0; background: none; cursor: pointer;
  font: 500 14.5px/1 var(--sans); color: var(--graphite); padding: 11px 18px; border-radius: 12px;
  transition: color .25s;
}
.modes button[aria-selected="true"] { color: var(--ink); }
.modes-thumb {
  position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 5px; width: 0; border-radius: 12px;
  background: linear-gradient(160deg, #FBFAF8, #EFEDE9);
  box-shadow: 4px 5px 10px var(--lift-dark), -3px -3px 7px var(--lift-light);
  transition: transform .35s cubic-bezier(.3, .9, .3, 1), width .35s cubic-bezier(.3, .9, .3, 1);
}

/* the well: the one deep thing on the page */
.well {
  margin-top: 16px; position: relative;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px;
  padding: 12px 12px 12px 26px; border-radius: var(--r-well);
  background: linear-gradient(160deg, #DCD8D2, #E6E3DE 60%, #E9E7E3);
  box-shadow:
    inset 9px 10px 18px var(--press-dark),
    inset -8px -8px 16px var(--press-light),
    inset 0 0 0 1px rgba(140, 132, 121, .08);
}
.well:has(textarea:not([hidden])) { grid-template-columns: 1fr; padding: 18px; }
.well input, .well textarea {
  width: 100%; border: 0; background: transparent; color: var(--ink); outline: none;
  font: 400 clamp(19px, 2.4vw, 24px)/1.35 var(--sans); letter-spacing: -.01em;
}
.well textarea { font: 400 17px/1.6 var(--serif); resize: vertical; min-height: 190px; }
.well input::placeholder, .well textarea::placeholder { color: var(--faint); }
.well input::-webkit-search-cancel-button { display: none; }
.well:focus-within { box-shadow: inset 9px 10px 18px var(--press-dark), inset -8px -8px 16px var(--press-light), 0 0 0 3px var(--lapis-soft); }

.go {
  border: 0; cursor: pointer; font: 600 15px/1 var(--sans); color: #F6F7F9;
  padding: 15px 24px; border-radius: 16px; justify-self: end;
  background: linear-gradient(160deg, #5A7399 0%, var(--lapis) 55%, #3B5377 100%);
  box-shadow: 6px 8px 16px rgba(58, 78, 110, .38), -4px -4px 10px var(--lift-light), inset 1px 1px 0 rgba(255, 255, 255, .25);
  transition: transform .12s, box-shadow .12s;
}
.go:active { transform: translateY(1px); box-shadow: inset 3px 3px 7px rgba(20, 30, 50, .45), -2px -2px 6px var(--lift-light); }
.go:disabled { cursor: default; background: #B8B5B0; box-shadow: 4px 5px 10px var(--lift-dark), -3px -3px 7px var(--lift-light); color: #F1F0EE; }

/* loading groove: the page's single orchestrated moment */
.groove { height: 6px; margin: 18px 6px 0; border-radius: 99px; background: var(--basin); box-shadow: inset 2px 2px 3px var(--press-dark), inset -1px -1px 2px var(--press-light); overflow: hidden; transition: opacity .6s .4s, height .6s .4s, margin .6s .4s; }
.groove span { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #7F95B5, var(--lapis)); transition: width .25s; }
.groove.done { opacity: 0; height: 0; margin-top: 0; }
.hint { margin: 12px 8px 0; font-size: 13.5px; color: var(--graphite); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 4px 2px; }
.chip {
  border: 0; cursor: pointer; font: 500 14px/1 var(--sans); color: var(--ink);
  padding: 10px 15px; border-radius: 999px; background: linear-gradient(160deg, #F8F7F5, #EDEBE7);
  box-shadow: 4px 5px 10px var(--lift-dark), -3px -3px 8px var(--lift-light);
}
.chip:active { box-shadow: inset 2px 2px 5px var(--press-dark), inset -2px -2px 5px var(--press-light); }

/* ---------- work area ---------- */
.work { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 30px; }
.work.reading { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.results { min-width: 0; }
.results:empty { display: none; }

.summary { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin: 0 6px 14px; flex-wrap: wrap; }
.summary h2 { margin: 0; font: 600 20px/1.3 var(--sans); letter-spacing: -.015em; }
.summary p { margin: 0; color: var(--graphite); font-size: 14px; }

/* results sit on one quiet surface; rows are separated by carved lines, not boxes */
.list { list-style: none; margin: 0; padding: 6px; border-radius: 26px; background: var(--chalk); box-shadow: 12px 14px 30px var(--lift-dark), -10px -10px 24px var(--lift-light); }
.row { position: relative; }
.row + .row::before { content: ""; position: absolute; left: 20px; right: 20px; top: 0; height: 2px; background: linear-gradient(var(--press-dark), var(--press-light)); opacity: .45; border-radius: 2px; }
.row > button {
  display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 14px; width: 100%; text-align: left;
  border: 0; background: none; cursor: pointer; color: inherit; padding: 16px 16px; border-radius: 20px; font: inherit;
}
.row > button:hover { background: rgba(255, 255, 255, .45); }
.row > button[aria-current="true"] { background: var(--basin); box-shadow: inset 3px 3px 7px var(--press-dark), inset -3px -3px 7px var(--press-light); }
.ref { font: 500 17px/1.3 var(--serif); font-variant-numeric: lining-nums tabular-nums; color: var(--lapis); padding-top: 1px; }
.row .where { display: block; font-size: 12.5px; color: var(--faint); margin-bottom: 3px; }
.row .txt { display: block; font: 400 16.5px/1.55 var(--serif); color: var(--ink); }
mark { background: linear-gradient(transparent 55%, rgba(70, 97, 138, .2) 55%); color: inherit; padding: 0 1px; }
.row .tick { position: absolute; right: 16px; top: 16px; }

.empty { margin: 8px 6px; padding: 26px; border-radius: 22px; background: var(--basin); box-shadow: inset 4px 4px 9px var(--press-dark), inset -4px -4px 9px var(--press-light); color: var(--graphite); }
.empty strong { color: var(--ink); font-weight: 600; }

/* read toggles (places) */
.read-toggle { appearance: none; -webkit-appearance: none; margin: 0; width: 24px; height: 24px; border-radius: 8px; cursor: pointer;
  background: var(--basin); box-shadow: inset 2px 2px 4px var(--press-dark), inset -2px -2px 4px var(--press-light); display: grid; place-items: center; }
.read-toggle:checked { background: linear-gradient(160deg, #6A87AE, var(--lapis)); box-shadow: 2px 3px 6px rgba(58, 78, 110, .35), -2px -2px 4px var(--lift-light); }
.read-toggle:checked::after { content: ""; width: 9px; height: 5px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); }
.progress { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--graphite); }
.ring { width: 30px; height: 30px; }

/* check results */
.verdict { display: flex; align-items: center; gap: 16px; margin: 0 6px 18px; }
.verdict .seal { width: 58px; height: 58px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 600 13px/1 var(--sans); color: #fff; }
.seal.ok { background: radial-gradient(circle at 35% 30%, #7C9B86, var(--pass)); box-shadow: 5px 6px 12px rgba(60, 90, 70, .35), -3px -3px 8px var(--lift-light), inset 1px 1px 0 rgba(255,255,255,.3); }
.seal.fix { background: radial-gradient(circle at 35% 30%, #B8864A, var(--fix)); box-shadow: 5px 6px 12px rgba(120, 80, 30, .35), -3px -3px 8px var(--lift-light), inset 1px 1px 0 rgba(255,255,255,.3); }
.verdict h2 { margin: 0; font: 600 21px/1.25 var(--sans); letter-spacing: -.015em; }
.verdict p { margin: 2px 0 0; color: var(--graphite); font-size: 14px; }
.section-title { margin: 26px 6px 10px; font: 600 16px/1.3 var(--sans); }
.finding { padding: 16px 18px; }
.finding .kind { font: 600 12.5px/1 var(--sans); color: var(--fix); margin-bottom: 6px; display: block; }
.finding .kind.ok { color: var(--pass); }
.finding p { margin: 0; }
.finding .said { font: 400 16px/1.55 var(--serif); margin-top: 6px; }
.finding .detail { color: var(--graphite); font-size: 14px; margin-top: 6px; }
.linkish { border: 0; background: none; padding: 0; color: var(--lapis); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.why { font-size: 13.5px; color: var(--graphite); margin: -4px 6px 12px; }

/* ---------- the tablet (one paragraph) ---------- */
.tablet { position: sticky; top: 18px; align-self: start; min-width: 0; }
.tablet-inner {
  position: relative; border-radius: 30px; padding: 30px 30px 24px;
  background: linear-gradient(165deg, #F8F7F4 0%, #F0EEEA 100%);
  box-shadow: 18px 22px 44px var(--lift-dark), -12px -12px 30px var(--lift-light), inset 1px 1px 0 rgba(255,255,255,.95);
  animation: settle .45s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes settle { from { transform: translateY(8px) scale(.985); opacity: 0; } }
.t-ref { margin: 0; font: 500 34px/1.1 var(--serif); letter-spacing: -.01em; font-variant-numeric: lining-nums; color: var(--ink); }
.t-where { margin: 8px 0 18px; font-size: 13.5px; color: var(--graphite); }
.t-text { margin: 0; padding: 22px 24px; border-radius: 20px; font: 400 19px/1.62 var(--serif); color: var(--ink);
  background: var(--basin); box-shadow: inset 5px 6px 12px var(--press-dark), inset -5px -5px 10px var(--press-light);
  max-height: 58vh; overflow: auto; }
.t-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.soft { border: 0; cursor: pointer; font: 500 14px/1 var(--sans); color: var(--ink); padding: 12px 15px; border-radius: var(--r-control);
  background: linear-gradient(160deg, #F9F8F6, #ECEAE6); box-shadow: 4px 5px 10px var(--lift-dark), -3px -3px 8px var(--lift-light); }
.soft:active { box-shadow: inset 2px 2px 5px var(--press-dark), inset -2px -2px 5px var(--press-light); }
.soft.strong { color: var(--lapis); font-weight: 600; }
.t-note { min-height: 1.4em; margin: 12px 2px 0; font-size: 13.5px; color: var(--pass); }
.close { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer; color: var(--graphite);
  background: linear-gradient(160deg, #F9F8F6, #ECEAE6); box-shadow: 3px 4px 8px var(--lift-dark), -2px -2px 6px var(--lift-light); display: grid; place-items: center; }
.close svg { width: 16px; height: 16px; }

.foot { max-width: 1180px; margin: 0 auto; padding: 0 30px 40px; font-size: 13px; color: var(--graphite); }
.foot p { margin: 0; max-width: 70ch; }

/* ---------- small screens: the tablet becomes a sheet ---------- */
@media (max-width: 860px) {
  .work.reading { grid-template-columns: minmax(0, 1fr); }
  .tablet { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 20; padding: 0 10px 10px; }
  .tablet-inner { max-height: 82vh; overflow: auto; border-radius: 28px 28px 22px 22px; padding: 24px 20px 18px; }
  .t-text { max-height: none; }
  .t-ref { font-size: 28px; }
}
@media (max-width: 560px) {
  .bar { padding: 16px 16px 4px; }
  .status { font-size: 12px; padding: 6px 11px; }
  main { padding: 12px 16px 48px; }
  .slab { padding: 14px 12px 14px; border-radius: 26px; }
  .modes { display: grid; width: 100%; }
  .modes button { padding: 11px 8px; font-size: 13.5px; }
  .well { grid-template-columns: 1fr; padding: 14px 14px 12px 18px; }
  .go { width: 100%; }
  .row > button { grid-template-columns: 1fr; gap: 4px; padding: 14px 12px; }
  .foot { padding: 0 18px 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- refinements after the first screenshots ---------- */
.row .txt { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.row > button[aria-current="true"] .txt { -webkit-line-clamp: 6; }
@media (max-width: 860px) {
  .tablet { top: 0; display: flex; align-items: flex-end; padding: 0 8px 8px;
    background: rgba(226, 223, 218, .55); -webkit-backdrop-filter: blur(10px) saturate(1.1); backdrop-filter: blur(10px) saturate(1.1); }
  .tablet-inner { width: 100%; box-shadow: 0 -18px 50px rgba(110, 102, 92, .28), inset 1px 1px 0 rgba(255,255,255,.95); }
}
@media (max-width: 560px) {
  .chips { gap: 8px; }
  .chip { font-size: 13px; padding: 9px 12px; }
}

/* ---------- Ask: made for older readers ---------- */
.modes { grid-template-columns: repeat(4, auto); }
.bar-right { display: flex; align-items: center; gap: 12px; }
.size { padding: 9px 14px; }
.size[aria-pressed="true"] { color: var(--lapis); font-weight: 600; }
.well-actions { display: flex; align-items: center; gap: 10px; justify-self: end; }
.mic { width: 52px; height: 52px; border: 0; border-radius: 50%; cursor: pointer; color: var(--lapis); display: grid; place-items: center;
  background: linear-gradient(160deg, #F9F8F6, #ECEAE6); box-shadow: 5px 6px 12px var(--lift-dark), -3px -3px 8px var(--lift-light); }
.mic svg { width: 24px; height: 24px; }
.mic.listening { color: #fff; background: radial-gradient(circle at 35% 30%, #B8864A, var(--fix)); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(138, 90, 31, .18), 5px 6px 12px var(--lift-dark); } }
.answer { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.answer li { padding: 26px 28px 22px; border-radius: 28px; background: var(--chalk); box-shadow: 14px 16px 34px var(--lift-dark), -10px -10px 24px var(--lift-light); }
.answer .a-ref { font: 500 24px/1.2 var(--serif); color: var(--lapis); margin: 0; }
.answer .a-where { font-size: 14px; color: var(--graphite); margin: 4px 0 14px; }
.answer .a-text { font: 400 21px/1.7 var(--serif); margin: 0; }
.answer .a-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
/* The book's answer: the clearest passage, presented as the answer. */
.answer li.featured { border: 3px solid var(--fix); padding: 30px 32px 26px; }
.a-eyebrow { font: 700 13px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--fix); margin: 0 0 12px; }
.answer li.featured .a-text { font-size: 24px; line-height: 1.65; }
.a-cite { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }
.a-cite .a-where { margin: 0; }
.cite-chip { display: inline-block; font: 700 15px/1 var(--sans); color: #fff; background: var(--fix); border-radius: 999px; padding: 7px 14px; white-space: nowrap; }
.more-head { font: 600 17px/1.3 var(--sans); color: var(--graphite); margin: 26px 6px 14px; }
.answer.supporting li { padding: 22px 24px 18px; }
.answer.supporting .a-text { font-size: 19px; }
.answer-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 6px 18px; }
.lang-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 6px 16px; font: 500 14px/1.4 var(--sans); color: var(--graphite); }
.lang-row .lang-pick { padding: 8px 12px; }
.answer-loading { margin: 24px 6px; font: 500 16px/1.5 var(--sans); color: var(--graphite); }
.answer-head h2 { margin: 0; font: 600 22px/1.3 var(--sans); }
html.big body { font-size: 19px; }
html.big .well input { font-size: 30px; }
html.big .answer .a-text { font-size: 25px; }
html.big .answer .a-ref { font-size: 28px; }
html.big .hint, html.big .answer .a-where { font-size: 17px; }
html.big .modes button, html.big .go, html.big .soft { font-size: 17px; }
@media (max-width: 560px) {
  .bar { flex-wrap: wrap; }
  .bar-right { flex-wrap: wrap; gap: 8px; }
  .modes { grid-template-columns: repeat(2, 1fr); }
  .well-actions { width: 100%; }
  .well-actions .go { flex: 1; }
  .answer li { padding: 20px 18px 16px; }
}
.voice-pick select { font: 500 14px/1 var(--sans); color: var(--ink); border: 0; padding: 10px 12px; border-radius: 12px; max-width: 220px; cursor: pointer;
  background: linear-gradient(160deg, #F9F8F6, #ECEAE6); box-shadow: 4px 5px 10px var(--lift-dark), -3px -3px 8px var(--lift-light); }
html.big .voice-pick select { font-size: 17px; }
@media (max-width: 560px) { .voice-pick select { max-width: 150px; } }

/* the phone sheet must stay gone while hidden (display:flex above would override [hidden]) */
[hidden] { display: none !important; }
/* one big, always-visible way to stop reading */
.stop-bar { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 40; display: inline-flex; align-items: center; gap: 12px;
  border: 0; cursor: pointer; padding: 18px 30px; border-radius: 999px; font: 600 19px/1 var(--sans); color: #fff;
  background: radial-gradient(circle at 35% 30%, #B8864A, var(--fix)); box-shadow: 8px 10px 22px rgba(120, 80, 30, .4), -4px -4px 10px var(--lift-light); }
.stop-bar svg { width: 22px; height: 22px; }
html.big .stop-bar { font-size: 22px; padding: 20px 34px; }
.soft.reading { color: var(--fix); font-weight: 700; box-shadow: inset 2px 2px 5px var(--press-dark), inset -2px -2px 5px var(--press-light); }
/* ---------- the reading player ---------- */
.stop-bar { display: none; }
.player { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 40; width: min(720px, calc(100% - 24px));
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 16px 14px 22px; border-radius: 26px;
  background: linear-gradient(160deg, #FAF9F7, #EEECE8); box-shadow: 12px 16px 36px rgba(120, 112, 100, .45), -6px -6px 16px var(--lift-light), inset 1px 1px 0 #fff; }
.p-now { font: 500 18px/1.3 var(--sans); color: var(--graphite); display: flex; align-items: center; gap: 10px; }
.p-now strong { font: 500 22px/1 var(--serif); color: var(--lapis); }
.p-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--fix); animation: pulse 1.2s ease-in-out infinite; }
.p-controls { display: flex; gap: 8px; flex-wrap: wrap; }
.p-controls button { border: 0; cursor: pointer; font: 600 17px/1 var(--sans); color: var(--ink); padding: 14px 16px; border-radius: 16px; min-width: 64px;
  background: linear-gradient(160deg, #FBFAF8, #ECEAE6); box-shadow: 4px 5px 10px var(--lift-dark), -3px -3px 8px var(--lift-light); }
.p-controls button:disabled { opacity: .4; cursor: default; }
.p-controls .p-stop { color: #fff; background: radial-gradient(circle at 35% 30%, #B8864A, var(--fix)); }
.answer li.now-reading { outline: 4px solid var(--fix); outline-offset: 4px; background: #FBF7F0; }
html.big .p-controls button { font-size: 20px; padding: 16px 18px; }
body:has(.player:not([hidden])) main { padding-bottom: 150px; }
@media (max-width: 560px) { .player { padding: 12px; } .p-controls { width: 100%; } .p-controls button { flex: 1; min-width: 0; padding: 14px 6px; } }
/* ---------- copy, share, print ---------- */
.head-actions { display: flex; flex-wrap: wrap; gap: 10px; }
a.soft { text-decoration: none; display: inline-flex; align-items: center; }
.a-note { min-height: 1.3em; margin: 10px 2px 0; color: var(--pass); font-size: 15px; }
.share-menu { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; padding: 14px; border-radius: 18px; background: var(--basin); box-shadow: inset 3px 3px 7px var(--press-dark), inset -3px -3px 7px var(--press-light); }
.share-menu .a-note { width: 100%; color: var(--graphite); margin: 0; }
.print-question, .print-foot { display: none; }
@media print {
  @page { margin: 18mm; }
  body { background: #fff !important; font-size: 13pt; }
  .bar, .slab, .tablet, .player, .foot, .a-actions, .head-actions, .a-note, .share-menu, .stop-bar { display: none !important; }
  main, .work, .results { padding: 0 !important; margin: 0 !important; display: block !important; }
  .answer-head h2 { font: 600 20pt/1.3 Georgia, serif; }
  .print-question { display: block; font: italic 14pt/1.4 Georgia, serif; margin: 0 0 14pt; }
  .answer li { box-shadow: none !important; background: none !important; outline: none !important; padding: 0 0 14pt; border-bottom: 1px solid #bbb; margin-bottom: 14pt; break-inside: avoid; border-radius: 0; }
  .answer .a-ref { font-size: 15pt; color: #000; }
  .answer .a-where { color: #444; font-size: 11pt; }
  .answer .a-text { font: 400 15pt/1.6 Georgia, "Newsreader", serif; color: #000; }
  .answer li.featured { border: 0; }
  .a-eyebrow { font-size: 11pt; letter-spacing: .1em; color: #000; }
  .cite-chip { background: none !important; color: #000; padding: 0; font-size: 14pt; }
  .more-head { font-size: 14pt; color: #000; margin: 14pt 0 8pt; }
  .print-foot { display: block; font-size: 10pt; color: #444; margin-top: 18pt; }
}
.t-share { margin-top: 10px; }
@media print {
  body.print-one .work > .results { display: none !important; }
  body.print-one .tablet, body.print-one .tablet-inner { display: block !important; position: static !important; box-shadow: none !important; background: none !important; padding: 0 !important; animation: none !important; }
  body.print-one .tablet .close, body.print-one .t-actions, body.print-one .t-note, body.print-one #t-menu { display: none !important; }
  body.print-one .t-ref { font: 500 22pt/1.2 Georgia, serif; color: #000; }
  body.print-one .t-where { color: #444; font-size: 11pt; }
  body.print-one .t-text { box-shadow: none !important; background: none !important; padding: 0 !important; max-height: none !important; overflow: visible !important; font: 400 15pt/1.6 Georgia, serif; color: #000; }
  body.print-one .tablet-inner::after { content: "From The Urantia Book, as found by UB Tools Studio: https://ubn606.github.io/ub-tools/app/  URANTIA BOOK NETWORK, urantiabooknetwork.com"; display: block; margin-top: 16pt; font: 10pt Arial, sans-serif; color: #444; }
}

/* ---------- named share buttons ---------- */
.share-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.share-btn { border: 0; cursor: pointer; font: 600 15px/1 var(--sans); padding: 12px 15px; border-radius: 14px; color: #fff; box-shadow: 4px 5px 10px var(--lift-dark), -3px -3px 8px var(--lift-light); }
.s-facebook { background: #3F63A8; } .s-email { background: #5B6B7D; } .s-text { background: #3E8A5B; } .s-whatsapp { background: #2E8F6A; }
.s-instagram { background: linear-gradient(135deg, #8B4FB0, #C24A6A 55%, #D08A3E); } .s-print, .s-copy { background: linear-gradient(160deg, #F9F8F6, #ECEAE6); color: var(--ink); }
html.big .share-btn { font-size: 18px; padding: 14px 17px; }
.sel-bar { position: absolute; z-index: 50; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px; border-radius: 16px; background: #2B2E33; box-shadow: 0 10px 28px rgba(0,0,0,.28); max-width: calc(100vw - 16px); }
.sel-bar button { border: 0; cursor: pointer; font: 600 15px/1 var(--sans); color: #fff; background: rgba(255,255,255,.12); padding: 11px 13px; border-radius: 11px; }
.sel-note { color: #CFE0CF; font-size: 13px; padding: 0 6px; }
@media print {
  .share-row, .sel-bar { display: none !important; }
  body.print-this-only .answer li:not(.print-this), body.print-this-only .answer-head, body.print-this-only .print-question { display: none !important; }
}
@media (max-width: 560px) {
  .modes-thumb { display: none; }
  .modes button[aria-selected="true"] { background: linear-gradient(160deg, #FBFAF8, #EFEDE9); box-shadow: 4px 5px 10px var(--lift-dark), -3px -3px 7px var(--lift-light); }
  html[data-theme="dark"] .modes button[aria-selected="true"] { background: linear-gradient(160deg, #3B3E45, #33363D); }
}

/* ---------- How to use ---------- */
.help-btn { color: var(--lapis); font-weight: 600; }
.help { width: min(760px, calc(100% - 24px)); max-height: calc(100vh - 40px); border: 0; border-radius: 30px; padding: 30px 32px 26px; color: var(--ink);
  background: linear-gradient(165deg, #F8F7F4, #EFEDE9); box-shadow: 20px 24px 50px rgba(110, 102, 92, .45), inset 1px 1px 0 #fff; }
.help::backdrop { background: rgba(226, 223, 218, .7); backdrop-filter: blur(6px); }
.help h2 { margin: 0 0 16px; font: 600 28px/1.2 var(--sans); }
.help-steps { margin: 0; padding-left: 26px; display: grid; gap: 14px; font-size: 19px; line-height: 1.55; }
.help-free { margin: 18px 0 0; color: var(--pass); font-size: 17px; }
.help-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.help-actions .soft { font-size: 18px; padding: 15px 22px; }
html.big .help-steps { font-size: 22px; }
@media (max-width: 560px) { .help { padding: 22px 18px; } .help-steps { font-size: 18px; } }

/* ---------- honest answers, index, more, missed, study list ---------- */
.silence { margin: 0 6px 18px; padding: 16px 20px; border-radius: 18px; background: #F6EFE3; color: #5A4520; font-size: 17px; line-height: 1.55; box-shadow: inset 2px 2px 5px rgba(160,130,80,.25); }
.index-hint { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 6px 18px; }
.a-why { margin: 10px 0 0; font-size: 14px; color: var(--faint); }
.more { display: block; margin: 22px auto 0; font-size: 17px; padding: 14px 24px; }
.missed { margin: 30px 6px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--graphite); font-size: 16px; }
.missed p { margin: 0; }
.study-items { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 14px; max-height: 55vh; overflow: auto; }
.study-items li { padding: 16px 18px; border-radius: 18px; background: var(--chalk); box-shadow: 6px 8px 16px var(--lift-dark), -4px -4px 10px var(--lift-light); }
.study-items .a-text { font-size: 18px; margin: 6px 0 10px; }
.study-add { margin-top: 10px; }
html.big .a-why { font-size: 16px; }
@media print {
  .silence, .index-hint, .a-why, .more, .missed { display: none !important; }
  body.print-study > *:not(#study) { display: none !important; }
  body.print-study #study { display: block !important; position: static !important; box-shadow: none !important; background: none !important; max-height: none !important; width: auto !important; padding: 0 !important; }
  body.print-study .help-actions, body.print-study .study-items button, body.print-study #study-note { display: none !important; }
  body.print-study .study-items { max-height: none; overflow: visible; }
  body.print-study .study-items li { box-shadow: none; background: none; border-bottom: 1px solid #bbb; border-radius: 0; break-inside: avoid; }
  body.print-study .study-items .a-text { font: 15pt/1.6 Georgia, serif; color: #000; }
  body.print-study #study::after { content: "From The Urantia Book, as found by UB Tools Studio: https://ubn606.github.io/ub-tools/app/  URANTIA BOOK NETWORK, urantiabooknetwork.com"; display: block; margin-top: 16pt; font: 10pt Arial, sans-serif; color: #444; }
}

.deeper { margin: 26px 6px 0; font-size: 16px; color: var(--graphite); }
@media print { .deeper { display: none !important; } }

/* ---------- top-level Studio nav: one clean view per feature ---------- */
.topnav {
  position: relative; display: inline-grid; grid-auto-flow: column; gap: 2px;
  padding: 5px; border-radius: 16px; background: var(--basin); margin: 2px 0 18px;
  box-shadow: inset 3px 3px 6px var(--press-dark), inset -3px -3px 6px var(--press-light);
}
.topnav button {
  position: relative; z-index: 1; border: 0; background: none; cursor: pointer;
  font: 600 14.5px/1 var(--sans); color: var(--graphite); padding: 11px 20px; border-radius: 12px;
  transition: color .25s;
}
.topnav button[aria-current="true"] { color: var(--ink); }
.topnav-thumb {
  position: absolute; z-index: 0; top: 5px; left: 5px; width: 0; height: 0; border-radius: 12px;
  background: linear-gradient(160deg, #FBFAF8, #EFEDE9);
  box-shadow: 4px 5px 10px var(--lift-dark), -3px -3px 7px var(--lift-light);
  transition: transform .35s cubic-bezier(.3, .9, .3, 1), width .35s cubic-bezier(.3, .9, .3, 1);
}
/* Phone: two rows of three full labels. This block MUST come after the base
   .topnav rules above — same specificity, so source order decides. */
@media (max-width: 560px) {
  .topnav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: row; width: 100%; }
  .topnav button { padding: 12px 8px; font-size: 14px; white-space: nowrap; }
}
.slab-title { margin: 2px 6px 14px; font: 600 20px/1.3 var(--sans); letter-spacing: -.015em; }

/* ---------- explore: visuals + quote cards ---------- */
.x-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin: 0 2px 8px; }
.x-card {
  display: block; padding: 18px; border-radius: 20px; text-decoration: none; color: var(--ink);
  background: var(--chalk); box-shadow: 8px 10px 20px var(--lift-dark), -5px -5px 12px var(--lift-light);
}
.x-card strong { display: block; font: 600 16px/1.3 var(--sans); margin-bottom: 6px; }
.x-card span { display: block; font-size: 13.5px; color: var(--graphite); }
.x-card .x-open { margin-top: 10px; color: var(--lapis); font-weight: 600; }
.x-card.x-soon { opacity: .65; }
.x-quote blockquote { margin: 0 0 10px; font: 400 17px/1.5 var(--serif); }
.x-quote figcaption { font-size: 13.5px; color: var(--lapis); font-weight: 600; margin-bottom: 10px; }
.x-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.chip.on { box-shadow: inset 2px 2px 5px var(--press-dark), inset -2px -2px 5px var(--press-light); color: var(--ink); }

/* ---------- read-along ---------- */
.ra-why { color: var(--graphite); font-size: 15px; margin: 0 0 4px; }
.ra-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0; }
.ra-label { display: inline-flex; align-items: center; gap: 8px; font: 600 14px/1 var(--sans); color: var(--ink); }
.ra-select, #ra-file { font: 500 15px/1.2 var(--sans); color: var(--ink); padding: 10px 12px; border-radius: var(--r-control); border: 0; background: linear-gradient(160deg, #FBFAF8, #ECEAE6); box-shadow: 3px 4px 8px var(--lift-dark), -2px -2px 6px var(--lift-light); }
.ra-select { max-width: 320px; }
.ra-status { min-height: 1.4em; color: var(--graphite); font-size: 15px; margin: 6px 0; }
.ra-audio { width: 100%; margin: 4px 0 8px; }
.ra-text { margin-top: 8px; }
.ra-para { margin: 18px 0; padding: 14px 16px; border-radius: 16px; }
.ra-para.ra-now-para { outline: 3px solid var(--fix); outline-offset: 5px; background: #FBF7F0; }
.ra-ref { font: 700 14px/1.4 var(--sans); color: var(--fix); margin: 0 0 8px; }
.ra-text-line { font: 400 19px/1.75 var(--serif); color: var(--ink); margin: 0; }
.ra-word { border-radius: 3px; padding: 0 1px; }
.ra-word.ra-now { background: #F6E7C1; box-shadow: inset 0 -3px 0 var(--fix); }
.ra-word[data-x="0"].ra-now { background: #F1EAD9; box-shadow: inset 0 -3px 0 rgba(138,90,31,.35); }
.ra-fallback p { color: var(--graphite); font-size: 16px; max-width: 60ch; }
.ra-own { margin: 14px 0 4px; }
.ra-own summary { cursor: pointer; font: 600 14px/1.4 var(--sans); color: var(--graphite); }
.ra-own .ra-label { margin: 10px 12px 10px 0; }
.ra-own #ra-builtin { margin-left: 8px; }
html.big .ra-text-line { font-size: 24px; }
html.big .ra-select, html.big .ra-label { font-size: 18px; }

/* ---------- plans & quiz ---------- */
.plan { padding: 20px; border-radius: 20px; background: var(--chalk); box-shadow: 8px 10px 20px var(--lift-dark), -5px -5px 12px var(--lift-light); margin-bottom: 18px; }
.plan h3 { margin: 0 0 6px; font: 600 17px/1.3 var(--sans); }
.plan-blurb { margin: 0 0 8px; font-size: 14px; color: var(--graphite); }
.plan-meta { display: flex; gap: 12px; font-size: 13.5px; color: var(--graphite); margin-bottom: 6px; }
.plan-bar { background: var(--basin); border-radius: 999px; height: 10px; margin: 8px 0; overflow: hidden; box-shadow: inset 2px 2px 4px var(--press-dark); }
.plan-fill { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--lapis), #6E8AB5); transition: width .3s; }
.plan-actions { display: flex; gap: 10px; margin: 10px 0 4px; }
.plan-days { margin-top: 10px; }
.plan-days .row { display: flex; align-items: center; gap: 8px; }
.plan-days .row > button { flex: 1; text-align: left; }
.resume-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 18px; background: var(--basin); box-shadow: inset 3px 3px 6px var(--press-dark), inset -3px -3px 6px var(--press-light); margin-bottom: 18px; font-size: 14.5px; }
.quiz-bar { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.quiz-body { max-width: 720px; }
.quiz-quote { font: 400 21px/1.6 var(--serif) !important; margin: 14px 2px 18px !important; }
.quiz-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 6px 0 4px; }
.quiz-typein { display: flex; gap: 10px; margin: 6px 0 4px; flex-wrap: wrap; }
.quiz-typein input { flex: 1; min-width: 200px; font: 500 16px/1.2 var(--sans); color: var(--ink); padding: 12px 14px; border-radius: var(--r-control); border: 0; background: var(--basin); box-shadow: inset 3px 3px 6px var(--press-dark), inset -3px -3px 6px var(--press-light); }
.quiz-actions { display: flex; gap: 10px; margin-top: 14px; }
.quiz .soft[data-pick].quiz-right { outline: 3px solid var(--pass); }
.quiz .soft[data-pick].quiz-wrong { outline: 3px solid #A4442F; }
html.big .quiz-quote { font-size: 25px !important; }
@media print { .topnav { display: none !important; } }

/* ---------- text size: compact (A−) and extra large (A+) ----------
   Level 2 reuses the existing html.big rules; level 1 is the default. */
html.compact body{font-size:15px}
html.compact .answer .a-text{font-size:19px}
html.compact .answer .a-ref{font-size:25px}
html.compact .t-text{font-size:17px}
html.compact .well input{font-size:26px}
html.compact .ra-text-line{font-size:20px}
html.bigger body{font-size:21px}
html.bigger .well input{font-size:34px}
html.bigger .answer .a-text{font-size:28px}
html.bigger .answer .a-ref{font-size:31px}
html.bigger .t-text{font-size:23px}
html.bigger .ra-text-line{font-size:27px}
html.bigger .quiz-quote{font-size:28px !important}
html.bigger .help-steps{font-size:24px}
html.bigger .help-steps li{padding-left:56px}
html.bigger .modes button,html.bigger .topnav button{font-size:19px}

/* ---------- dark mode (html[data-theme="dark"]) ---------- */
html[data-theme="dark"]{color-scheme:dark;--ground:#24262B;--chalk:#2E3138;--basin:#2A2C32;--ink:#ECE9E2;--graphite:#B9B5AA;--faint:#94918A;--lapis:#9DB6DC;--lapis-soft:rgba(157,182,220,.18);--pass:#93B89E;--fix:#D9A55C;--lift-dark:rgba(0,0,0,.55);--lift-light:rgba(255,255,255,.07);--press-dark:rgba(0,0,0,.5);--press-light:rgba(255,255,255,.06)}
html[data-theme="dark"] body{background:radial-gradient(1200px 700px at 15% -10%,#30333A 0%,transparent 60%),radial-gradient(900px 600px at 110% 110%,#1D1F24 0%,transparent 55%),var(--ground)}
html[data-theme="dark"] .slab{background:linear-gradient(155deg,#35383F,#2F3239 45%,#2B2E35)}
html[data-theme="dark"] .modes-thumb,html[data-theme="dark"] .topnav-thumb{background:linear-gradient(160deg,#3B3E45,#33363D)}
@media (max-width:680px){html[data-theme="dark"] .modes .soft[aria-selected="true"]{background:linear-gradient(160deg,#3B3E45,#33363D)}}
html[data-theme="dark"] .well{background:linear-gradient(160deg,#202227,#26282E 60%,#2A2C33)}
html[data-theme="dark"] .chip{background:linear-gradient(160deg,#3B3E45,#33363D)}
html[data-theme="dark"] .tablet-inner{background:linear-gradient(165deg,#34373D,#2D3036)}
html[data-theme="dark"] .player{background:linear-gradient(160deg,#36393F,#2E3138)}
html[data-theme="dark"] .player .p-wrap{box-shadow:12px 16px 36px rgba(0,0,0,.5)}
html[data-theme="dark"] .soft,html[data-theme="dark"] .close,html[data-theme="dark"] .mic,html[data-theme="dark"] .p-controls button,html[data-theme="dark"] .ra-select,html[data-theme="dark"] #ra-file,html[data-theme="dark"] .voice-pick select,html[data-theme="dark"] .s-print,html[data-theme="dark"] .s-copy{background:linear-gradient(160deg,#3B3E45,#32353C)}
html[data-theme="dark"] #ra-file::file-selector-button{background:linear-gradient(160deg,#43464D,#383B42);color:var(--ink);border:0;border-radius:10px;padding:8px 14px;margin-right:10px;cursor:pointer}
#ra-file::file-selector-button{background:linear-gradient(160deg,#F9F8F6,#ECEAE6);color:var(--ink);border:0;border-radius:10px;padding:8px 14px;margin-right:10px;cursor:pointer}
html[data-theme="dark"] .help{background:linear-gradient(165deg,#34373D,#2C2F35)}
html[data-theme="dark"] .help{box-shadow:20px 24px 50px rgba(0,0,0,.5)}
html[data-theme="dark"] .help::backdrop{background:rgba(8,9,12,.7)}
html[data-theme="dark"] .go{background:linear-gradient(160deg,#46586F 0%,#3B5377 55%,#2E4260 100%)}
html[data-theme="dark"] .tablet .tablet-inner{background:linear-gradient(165deg,#34373D,#2D3036)}
@media (max-width:820px){html[data-theme="dark"] .tablet.open .tablet-backdrop{background:rgba(10,11,14,.6)}}
html[data-theme="dark"] .answer li.now-reading,html[data-theme="dark"] .ra-para.ra-now-para{background:#33302A}
html[data-theme="dark"] .ra-word.ra-now{background:#4A3F28}
html[data-theme="dark"] .ra-word[data-x="0"].ra-now{background:#3A352B;box-shadow:inset 0 -3px 0 rgba(217,165,92,.6)}
html[data-theme="dark"] .silence{background:#35301F;color:#E3C98F}
html[data-theme="dark"] .row > button:hover{background:rgba(255,255,255,.07)}
html[data-theme="dark"] mark{background:linear-gradient(transparent 55%,rgba(157,182,220,.28) 55%)}
/* white text would fail on the lighter dark-mode button greens/ambers: use dark text */
html[data-theme="dark"] .verdict .seal{color:#23262B}
html[data-theme="dark"] .stop-bar,html[data-theme="dark"] .p-stop,html[data-theme="dark"] .mic.listening{color:#2A2013}

/* ---------- accessible tap targets (44px) ---------- */
.soft,.go,.chip,.topnav button,.modes button,.mic,.p-controls button,.share-btn,.quiz-typein input,.voice-pick select,.ra-select,.sel-bar button,.row > button{min-height:44px}
.close{width:44px;height:44px}
.quiz .soft[data-pick]{min-height:44px}
.read-toggle{position:relative}
.read-toggle::before{content:"";position:absolute;inset:-12px}
.soft:disabled{opacity:.45;cursor:default}
.a11y-btns{display:flex;gap:8px;align-items:center}
.size-group{display:flex;gap:6px;align-items:center}

/* Tools view: who's-who search, install steps, quiet footer */
.e-search { margin-top: 12px; }
#e-q { width: 100%; box-sizing: border-box; font: 400 16px/1.4 var(--sans); color: var(--ink);
  background: var(--paper); border: 0; border-radius: var(--r-control); padding: 12px 14px;
  box-shadow: inset 3px 3px 7px var(--press-dark), inset -3px -3px 7px var(--press-light); }
#e-q::placeholder { color: var(--graphite); opacity: .8; }
.e-results { margin-top: 10px; display: grid; gap: 10px; }
.e-row { padding: 10px 12px; border-radius: 14px; background: var(--paper);
  box-shadow: inset 2px 2px 5px var(--press-dark), inset -2px -2px 5px var(--press-light); }
.e-row p { margin: 0 0 6px; }
.e-browse { margin-top: 12px; }
.e-browse > summary { cursor: pointer; list-style: none; text-align: center; }
.e-browse > summary::-webkit-details-marker { display: none; }
.e-az { margin-top: 10px; display: grid; gap: 14px; max-height: 320px; overflow-y: auto; padding-right: 4px; }
.e-az-group h4 { margin: 0 0 6px; font: 700 15px/1.2 var(--sans); color: var(--lapis); }
.e-az-name { display: inline-block; margin: 0 6px 6px 0; padding: 8px 12px; border: 0; border-radius: 999px; cursor: pointer;
  font: 500 14px/1.2 var(--sans); color: var(--ink); background: var(--paper);
  box-shadow: 2px 3px 6px var(--lift-dark), -2px -2px 5px var(--lift-light); }
.e-kind { font-size: 12px; font-weight: 600; color: var(--lapis); text-transform: uppercase; letter-spacing: .04em; }
.x-details { margin-top: 12px; }
.x-details summary { list-style: none; display: inline-flex; }
.x-details summary::-webkit-details-marker { display: none; }
.x-steps { margin: 10px 0 0; padding-left: 22px; font-size: 14px; color: var(--ink); display: grid; gap: 8px; }
.x-steps code { font-size: 13px; }
.foot-dev { font-size: 12px; opacity: .7; }

/* Theme toggle icons */
.ticon { vertical-align: -1.5px; }

/* Primary actions (Plans "Start", Listen fallback voice): filled, unmistakable */
.soft.strong {
  color: #F6F7F9; font-weight: 700; border: 0;
  background: linear-gradient(160deg, #5A7399 0%, var(--lapis) 55%, #3B5377 100%);
  box-shadow: 6px 8px 16px rgba(58, 78, 110, .38), -4px -4px 10px var(--lift-light), inset 1px 1px 0 rgba(255, 255, 255, .25);
}
.soft.strong:active { transform: translateY(1px); box-shadow: inset 3px 3px 7px rgba(20, 30, 50, .45), -2px -2px 6px var(--lift-light); }

/* Topic chips: one scrollable row with a fade hinting there's more */
.chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px;
  -webkit-mask-image: linear-gradient(to right, #000 92%, transparent);
  mask-image: linear-gradient(to right, #000 92%, transparent); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; }
