/* Fluentbol web app. Material 3 surfaces and the purple primary of the Android app; the brand blue in the bar. */
/* Fonts are served from fluentbol.com itself (no third-party requests): Roboto latin + latin-ext, Noto Sans
   Devanagari for Hindi. Variable weights 400-700, OFL / Apache 2.0, from Google Fonts. */
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/roboto-v51-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/roboto-v51-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Noto Sans Devanagari"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/noto-sans-devanagari-v33.woff2) format("woff2");
  unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A; }
:root {
  --brand-1: #2179e3; --brand-2: #1446a0;
  --primary: #6750a4; --on-primary: #fff; --primary-soft: #eaddff;
  --surface: #fffbfe; --card: #e7e0ec; --outline: #79747e; --outline-soft: #cac4d0;
  --text: #1c1b1f; --muted: #49454f; --good: #2e7d32; --warn-bg: #fdecea; --warn: #8c1d18;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --primary: #d0bcff; --on-primary: #381e72; --primary-soft: #4f378b;
    --surface: #141218; --card: #2b2930; --outline: #938f99; --outline-soft: #49454f;
    --text: #e6e0e9; --muted: #cac4d0; --good: #81c784; --warn-bg: #3b1513; --warn: #f2b8b5;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--surface); color: var(--text); }
body { font: 16px/1.55 "Roboto", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
:lang(hi) body, body:lang(hi) { font-family: "Noto Sans Devanagari", "Roboto", system-ui, sans-serif; }
a { color: var(--primary); }

.top { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 12px; padding-top: env(safe-area-inset-top);
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2)); color: #fff; }
.top .brand { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 700; font-size: 18px; }
.top .brand img { border-radius: 8px; box-shadow: 0 0 0 1px rgba(255,255,255,.35); }
.top .title { font-weight: 500; opacity: .95; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.top .spacer { flex: 1; }
.top .b.text { color: #fff; }
@media (max-width: 420px) { .top:has(.title) .brand span { display: none; } }

.col { width: min(620px, 100%); margin: 0 auto; padding: 20px 16px 64px; display: flex; flex-direction: column; gap: 12px; }
h1 { font-size: 28px; line-height: 1.2; font-weight: 500; margin: 12px 0 0; }
h1.app-title { font-size: 34px; margin-top: 4px; }
h2.q { font-size: 18px; font-weight: 500; margin: 12px 0 0; }
h2.track-title { font-size: 24px; font-weight: 400; margin: 8px 0 0; }
p { margin: 0; }
.lead { font-size: 17px; }
.small { font-size: 14px; }
.muted { color: var(--muted); }
.label { font-size: 14px; font-weight: 500; letter-spacing: .1px; color: var(--muted); margin: 0; }
.title-m { font-size: 17px; font-weight: 500; }
.big { font-size: 22px; line-height: 1.35; }
.hint { color: var(--muted); }
.strong { font-weight: 600; }
.medium { font-weight: 500; }
.good { color: var(--good); font-weight: 500; }
.error { color: var(--warn); background: var(--warn-bg); padding: 10px 12px; border-radius: 12px; font-size: 15px; }
.msg { font-size: 15px; }
.note { background: var(--card); padding: 10px 12px; border-radius: 12px; font-size: 15px; }
.links { margin-top: 4px; }
.indent { padding-left: 14px; }
.marked mark { background: transparent; color: var(--warn); font-weight: 600; }
.marked mark.miss { opacity: .85; }

.card { background: var(--card); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.card.info { background: var(--primary-soft); }
.card.warn { background: var(--warn-bg); color: var(--warn); }
.card.partner { border-left: 4px solid var(--primary); }

.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.b { appearance: none; font: inherit; font-weight: 500; font-size: 15px; min-height: 40px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; line-height: 1.2; text-align: center; }
.b.full { width: 100%; min-height: 48px; }
.b.primary { background: var(--primary); color: var(--on-primary); }
.b.outline { background: transparent; color: var(--primary); border-color: var(--outline-soft); }
.b.text { background: transparent; color: var(--primary); padding: 0 12px; }
.b:disabled { opacity: .38; cursor: default; }
.b:not(:disabled):hover { filter: brightness(1.06); }
.b.mic { min-height: 48px; padding: 0 26px; font-size: 16px; }
.b.mic .dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; opacity: .7; }
.b.mic.on { background: #c62828; color: #fff; }
.b.mic.on .dot { animation: pulse 1s infinite; opacity: 1; }
@keyframes pulse { 50% { transform: scale(1.6); opacity: .4; } }
.link { appearance: none; background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: var(--primary); text-decoration: underline; cursor: pointer; align-self: flex-start; }

.speak { display: flex; flex-direction: column; gap: 8px; }
.partial { color: var(--muted); min-height: 1.2em; font-style: italic; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); }
.field input { font: inherit; font-size: 17px; color: var(--text); background: transparent; border: 1px solid var(--outline); border-radius: 8px; padding: 12px 14px; }
.field input:focus { outline: 2px solid var(--primary); border-color: transparent; }
.typed { display: flex; flex-direction: column; gap: 8px; }
.check { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 16px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--primary); }

.bar { height: 4px; background: var(--outline-soft); border-radius: 4px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--primary); transition: width .3s; }

.list { display: flex; flex-direction: column; gap: 10px; }
.row-card { background: var(--card); border-radius: 14px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.row-card:hover { filter: brightness(.98); }
.row-card > span:first-child { flex: 1; display: flex; flex-direction: column; }
.row-card .t { font-size: 17px; font-weight: 500; }
.row-card .s { font-size: 14px; color: var(--muted); }
.row-card .go { font-size: 22px; color: var(--muted); }
.switch-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
:focus-visible { outline: 3px solid var(--brand-1); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .b.mic.on .dot { animation: none; } .bar span { transition: none; } }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
