/* Family Care caregiver app — the "new phone look" (AIQuity, Nov 2026: artifact "New Phone Look v2"):
   slate greys and ink, colour only for state (blue dot = needs you, green = fine, amber/red = attention), big titles,
   grouped cards on a grey floor, a floating glass tab bar, pill controls, Google Sans Flex.
   The status hero, lock and login use an indigo ground with sashiko embroidery and Family Care's heart mark.
   (No AIQuity marks: the Juggernaut flash and AIQuity product icons are AIQuity Life's own.) Theme: Settings → Appearance sets <html data-theme="light|dark">; no attribute = follow the phone. */

@font-face { font-family: "Google Sans Flex"; src: url("fonts/google-sans-flex.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "Noto Sans Telugu"; src: url("fonts/noto-sans-telugu.woff2") format("woff2"); font-weight: 400 600; font-display: swap; unicode-range: U+0C00-0C7F, U+200C-200D, U+25CC; }

:root {
  --canvas: #F4F5F7; --card: #FFFFFF; --raise: #F4F5F7; --raise2: #ECEEF1; --quiet: #F4F5F7;
  --hairline: rgba(15, 23, 42, .08); --tint: rgba(15, 23, 42, .055);
  --ink: #0D1117; --ink-soft: #3B4350; --ink-mute: #6A7380; --faint: #A3AAB4; --inv: #FFFFFF;
  --accent-wash: #ECEEF1; --accent-line: rgba(15, 23, 42, .10); --accent-ink: #0D1117; --focus: #0D1117;
  --dot: hsl(221 83% 53%);
  --good-wash: #E8F6EE; --good: #15803D; --warn-wash: #FFF3E0; --warn: #B45309;
  --danger-wash: #FDECEE; --danger: #B4232F; --violet-wash: #ECEEF1; --violet: #0D1117;
  --glass: rgba(255, 255, 255, .78); --glass-line: rgba(15, 23, 42, .08); --glass-on: rgba(255, 255, 255, .98);
  --shadow-panel: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow-raised: 0 12px 32px -10px rgba(15, 23, 42, .20), 0 2px 6px rgba(15, 23, 42, .06);
  --radius: 22px; --radius-s: 14px; --scrim: rgba(13, 17, 23, .28);
  --indigo: #0A1433; --indigo-2: #13214D; --indigo-text: #F3F6FF; --indigo-mute: #9AA8D1; --swarm: #EEF3FF;
  --font: "Google Sans Flex", "Noto Sans Telugu", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* names family.js uses */
  --bg: var(--canvas); --text: var(--ink); --muted: var(--ink-mute); --line: var(--hairline);
  --brand: var(--ink); --brand-ink: var(--inv);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #0B0C0F; --card: #16181C; --raise: #1E2125; --raise2: #2A2D33; --quiet: #1E2125;
    --hairline: rgba(255, 255, 255, .08); --tint: rgba(255, 255, 255, .07);
    --ink: #F2F4F7; --ink-soft: #C3C9D2; --ink-mute: #8D95A1; --faint: #5C636D; --inv: #0B0C0F;
    --accent-wash: #2A2D33; --accent-line: rgba(255, 255, 255, .12); --accent-ink: #F2F4F7; --focus: #F2F4F7;
    --dot: hsl(217 91% 64%);
    --good-wash: #10291B; --good: #4ADE80; --warn-wash: #2E2210; --warn: #F5B65A;
    --danger-wash: #371016; --danger: #F67A87; --violet-wash: #2A2D33; --violet: #F2F4F7;
    --glass: rgba(32, 34, 39, .76); --glass-line: rgba(255, 255, 255, .09); --glass-on: rgba(255, 255, 255, .14);
    --shadow-panel: none; --shadow-raised: 0 12px 32px -10px rgba(0, 0, 0, .7), 0 2px 6px rgba(0, 0, 0, .3); --scrim: rgba(0, 0, 0, .55);
    --indigo: #0A1433; --indigo-2: #16255A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --canvas: #0B0C0F; --card: #16181C; --raise: #1E2125; --raise2: #2A2D33; --quiet: #1E2125;
  --hairline: rgba(255, 255, 255, .08); --tint: rgba(255, 255, 255, .07);
  --ink: #F2F4F7; --ink-soft: #C3C9D2; --ink-mute: #8D95A1; --faint: #5C636D; --inv: #0B0C0F;
  --accent-wash: #2A2D33; --accent-line: rgba(255, 255, 255, .12); --accent-ink: #F2F4F7; --focus: #F2F4F7;
  --dot: hsl(217 91% 64%);
  --good-wash: #10291B; --good: #4ADE80; --warn-wash: #2E2210; --warn: #F5B65A;
  --danger-wash: #371016; --danger: #F67A87; --violet-wash: #2A2D33; --violet: #F2F4F7;
  --glass: rgba(32, 34, 39, .76); --glass-line: rgba(255, 255, 255, .09); --glass-on: rgba(255, 255, 255, .14);
  --shadow-panel: none; --shadow-raised: 0 12px 32px -10px rgba(0, 0, 0, .7), 0 2px 6px rgba(0, 0, 0, .3); --scrim: rgba(0, 0, 0, .55);
  --indigo: #0A1433; --indigo-2: #16255A;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--canvas); color: var(--ink); font: 400 15px/1.5 var(--font); letter-spacing: -.003em;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(92px + env(safe-area-inset-bottom));
}
body.has-player { padding-bottom: calc(92px + 76px + env(safe-area-inset-bottom)); }
body.locked > :not(.lock):not(#toast) { visibility: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
.te, .transcript, .seg-text { font-family: "Noto Sans Telugu", var(--font); }
.muted { color: var(--ink-mute); }
.hint { font-size: 13px; line-height: 18px; color: var(--ink-mute); margin: 10px 0 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- shell: big title, round buttons, floating glass tab bar ---------- */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 8px; background: color-mix(in srgb, var(--canvas) 86%, transparent);
  backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand img { display: none; }
#page-title { font-size: 30px; line-height: 38px; font-weight: 700; letter-spacing: -.035em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .grow { flex: 1; }
.iconbtn {
  position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--card);
  color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-panel);
}
.iconbtn svg { width: 20px; height: 20px; }
.bell-n {
  position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--dot); color: #fff; font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--canvas);
}
.status-pill {
  display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px 0 12px; border-radius: 20px;
  font-size: 14px; font-weight: 600; border: 0; background: var(--card); color: var(--ink); cursor: pointer; box-shadow: var(--shadow-panel); white-space: nowrap;
}
.status-pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); }
.status-pill.ok .dot { background: var(--good); }
.status-pill.attention .dot { background: var(--warn); }
.status-pill.urgent .dot { background: var(--danger); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
@media (max-width: 400px) { .status-pill #status-text { max-width: 104px; overflow: hidden; text-overflow: ellipsis; } }
.offline { font-size: 12px; font-weight: 600; padding: 0 10px; height: 26px; line-height: 26px; border-radius: 13px; background: var(--warn-wash); color: var(--warn); }

main { max-width: 760px; margin: 0 auto; padding: 6px 16px 24px; }

.tabs {
  position: fixed; left: 14px; right: 14px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 30;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; padding: 6px; border-radius: 999px;
  max-width: 520px; margin: 0 auto;
  background: var(--glass); backdrop-filter: blur(24px) saturate(1.8); -webkit-backdrop-filter: blur(24px) saturate(1.8);
  box-shadow: var(--shadow-raised), inset 0 0 0 .5px var(--glass-line);
}
.tabs button {
  background: none; border: 0; height: 52px; border-radius: 999px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: 10.5px; font-weight: 600; color: var(--ink-mute); cursor: pointer; min-width: 0;
}
.tabs svg { width: 22px; height: 22px; }
.tabs .ico { display: grid; place-items: center; }
.tabs button[aria-current="page"] { color: var(--ink); background: var(--glass-on); box-shadow: 0 1px 4px rgba(15, 23, 42, .10); }

@media (min-width: 1024px) {
  body, body.has-player { padding-bottom: 24px; padding-left: 244px; }
  body.has-player main { padding-bottom: 100px; }
  .tabs {
    top: 0; bottom: 0; left: 0; right: auto; width: 244px; max-width: none; margin: 0; grid-template-columns: 1fr; align-content: start; gap: 2px;
    padding: calc(84px + env(safe-area-inset-top)) 14px 14px; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .tabs button { flex-direction: row; justify-content: flex-start; height: 44px; gap: 12px; padding: 0 14px; font-size: 15px; border-radius: 14px; }
  .tabs button:hover { background: var(--tint); }
  .tabs button[aria-current="page"] { background: var(--card); box-shadow: var(--shadow-panel); }
  .top { position: fixed; left: 0; right: 0; padding-left: 30px; }
  main { padding-top: 84px; }
}

/* ---------- building blocks ---------- */
.card { background: var(--card); border: 0; border-radius: var(--radius); box-shadow: var(--shadow-panel); padding: 16px; margin-bottom: 12px; }
.card h2, .section-label { font-size: 13px; line-height: 18px; letter-spacing: 0; text-transform: none; font-weight: 600; color: var(--ink-mute); margin: 0 0 10px; }
.card h3 { font-size: 17px; line-height: 24px; font-weight: 650; letter-spacing: -.012em; margin: 0 0 4px; }
.cardhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.cardhead h2 { margin: 0; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.field { display: flex; gap: 8px; margin-top: 12px; }
.field input, .field select, input.input, select.input, textarea.input {
  flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: var(--radius-s); border: 0;
  background: var(--raise); font-size: 16px; outline: 0;
}
.field input:focus, input.input:focus, select.input:focus, textarea.input:focus { box-shadow: 0 0 0 2px var(--ink) inset; }
textarea.input { height: auto; padding: 10px 14px; resize: none; }
.empty { color: var(--ink-mute); font-size: 14px; text-align: center; padding: 22px 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 44px; padding: 0 18px; border-radius: 22px;
  border: 0; background: var(--ink); color: var(--inv); font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none;
}
.btn:hover { opacity: .92; text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .4; cursor: default; }
.btn.secondary { background: var(--tint); color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink-soft); }
.btn.danger { background: var(--danger-wash); color: var(--danger); }
.btn.solid { background: var(--ink); color: var(--inv); }
.btn.small { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 18px; }
.btn.icon { width: 44px; padding: 0; }
.btn.small.icon { width: 36px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; }

.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 18px;
  border: 0; background: var(--tint); color: var(--ink-soft); font-size: 14px; font-weight: 600; cursor: pointer;
}
main > .chips .chip, .calls-tools .chip { background: var(--card); box-shadow: var(--shadow-panel); }
.chip[aria-pressed="true"], main > .chips .chip[aria-pressed="true"], .calls-tools .chip[aria-pressed="true"] { background: var(--ink); color: var(--inv); box-shadow: none; }
.chip .x { font-size: 15px; line-height: 1; opacity: .7; }
.chip .n { font-size: 12px; opacity: .6; }
.sep { flex: none; width: 1px; background: var(--hairline); margin: 6px 2px; }

.badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 9px; border-radius: 11px; font-size: 12px; font-weight: 600; background: var(--tint); color: var(--ink-soft); white-space: nowrap; vertical-align: 1px; }
.badge.good { background: var(--good-wash); color: var(--good); }
.badge.warn { background: var(--warn-wash); color: var(--warn); }
.badge.bad { background: var(--danger-wash); color: var(--danger); }
.badge.info { background: var(--tint); color: var(--ink); }
.badge.violet { background: var(--tint); color: var(--ink); }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile { background: var(--raise); border-radius: var(--radius-s); padding: 11px 12px; min-width: 0; }
.tile .k { font-size: 12px; color: var(--ink-mute); font-weight: 600; }
.tile .v { font-size: 17px; font-weight: 650; letter-spacing: -.012em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .v small { font-size: 12px; font-weight: 500; color: var(--ink-mute); }
.tile .v.good { color: var(--good); } .tile .v.warn { color: var(--warn); } .tile .v.bad { color: var(--danger); }

.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; gap: 12px; padding: 11px 2px; align-items: flex-start; position: relative; }
.list > li + li::before { content: ""; position: absolute; top: 0; left: 50px; right: 0; height: 1px; transform: scaleY(.5); transform-origin: 0 0; background: var(--hairline); box-shadow: 0 0 0 .5px var(--hairline); }
.list .main { flex: 1; min-width: 0; }
.list .name { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list .sub { font-size: 13px; line-height: 18px; color: var(--ink-mute); }
.list .end { font-size: 13px; color: var(--ink-mute); text-align: right; white-space: nowrap; }
.day { font-size: 13px; letter-spacing: 0; text-transform: none; font-weight: 600; color: var(--ink-mute); margin: 18px 6px 6px; }
.day:first-child { margin-top: 2px; }
.ic { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--raise); color: var(--ink); font-size: 15px; }
.ic svg { width: 18px; height: 18px; }
.ic.in, .ic.out { background: var(--raise); color: var(--ink); }
.ic.missed, .ic.bad { background: var(--danger-wash); color: var(--danger); }
.ic.warn { background: var(--warn-wash); color: var(--warn); }
.ic.violet { background: var(--raise); color: var(--ink); }

/* the status hero: indigo with sashiko stitching; colour only in the state dot */
.sashiko {
  background-color: var(--indigo); color: var(--indigo-text);
  background-image: radial-gradient(ellipse 90% 80% at 22% 30%, rgba(10, 20, 51, .94) 25%, rgba(10, 20, 51, .45) 75%), url("sashiko.svg");
  background-size: auto, 62px 31px;
}
.banner {
  position: relative; overflow: hidden; border-radius: 26px; padding: 20px 18px; margin-bottom: 12px; display: flex; gap: 14px; align-items: center;
  background-color: var(--indigo); background-image: linear-gradient(100deg, var(--indigo) 30%, rgba(10, 20, 51, .55)), url("sashiko.svg"); background-size: auto, 62px 31px;
  color: var(--indigo-text); box-shadow: 0 14px 30px -18px rgba(10, 20, 51, .7);
}
.banner .big { font-size: 24px; line-height: 30px; font-weight: 700; letter-spacing: -.025em; color: var(--indigo-text); }
.banner .sub { font-size: 14px; color: var(--indigo-mute); margin-top: 2px; }
.banner .big::before { content: ""; display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 10px; vertical-align: 3px; background: var(--indigo-mute); }
.banner.ok .big::before { background: #4ADE80; }
.banner.attention .big::before { background: #F5B65A; }
.banner.urgent .big::before { background: #F67A87; animation: pulse 1.4s infinite; }
.banner .btn { background: var(--indigo-text); color: var(--indigo); }
.banner .btn.secondary { background: rgba(255, 255, 255, .14); color: var(--indigo-text); }
.banner a, .banner .linkbtn { color: var(--indigo-text); }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border-radius: 18px; background: var(--raise); margin-top: 8px; }
.alert:first-of-type { margin-top: 0; }
.alert.urgent { background: var(--danger-wash); } .alert.warning { background: var(--warn-wash); } .alert.info { background: var(--raise); }
.alert .grow { flex: 1; min-width: 0; }
.alert .t { font-weight: 650; }
.alert .b { font-size: 14px; line-height: 20px; color: var(--ink-soft); white-space: pre-line; }
.alert .meta { font-size: 12px; color: var(--ink-mute); margin-top: 3px; }

#map, .mini-map { height: 210px; border-radius: 18px; overflow: hidden; z-index: 0; }
.mapnote { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--ink-mute); margin-top: 8px; }
.linkbox { font-size: 13px; word-break: break-all; padding: 10px 12px; background: var(--raise); border-radius: 12px; margin-top: 8px; }
.steps { margin: 6px 0 8px; padding-left: 20px; }
.center { text-align: center; padding: 48px 12px; }
.center h1 { font-size: 26px; font-weight: 700; letter-spacing: -.025em; }
.progress { height: 6px; border-radius: 3px; background: var(--raise2); overflow: hidden; margin-top: 8px; }
.progress > i { display: block; height: 100%; background: var(--ink); border-radius: 3px; transition: width .4s; }
.skeleton { background: linear-gradient(90deg, var(--raise), var(--raise2), var(--raise)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 8px; height: 14px; margin: 8px 0; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* iOS-style switch for settings toggles: <input type="checkbox" class="switch"> */
input.switch { appearance: none; -webkit-appearance: none; flex: none; width: 51px; height: 31px; border-radius: 16px; background: var(--raise2); position: relative; cursor: pointer; margin: 0; transition: background .2s; }
input.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); transition: transform .2s; }
input.switch:checked { background: var(--ink); }
input.switch:checked::after { transform: translateX(20px); background: var(--inv); }
:root:not([data-theme="dark"]) input.switch:checked::after { background: #fff; }
.toggle-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin: 4px 0 6px; color: var(--ink-soft); font-size: 14px; line-height: 1.45; cursor: pointer; }
.toggle-row input:not(.switch) { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }
.setrow { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 0; position: relative; }
.setrow + .setrow::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; transform: scaleY(.5); background: var(--hairline); box-shadow: 0 0 0 .5px var(--hairline); }
.setrow .grow { flex: 1; min-width: 0; }
.setrow b { display: block; font-size: 15px; font-weight: 600; }
.setrow span { display: block; font-size: 13px; line-height: 18px; color: var(--ink-mute); }

/* segmented control */
.seg { display: inline-flex; background: var(--tint); border-radius: 13px; padding: 3px; gap: 2px; flex: none; }
.seg button { border: 0; background: none; height: 32px; padding: 0 12px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--ink-mute); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(15, 23, 42, .14), 0 0 0 .5px var(--hairline); }
.seg.wide { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; width: 100%; }

/* ---------- Calls ---------- */
.searchbar { display: flex; gap: 8px; align-items: center; position: relative; }
.search {
  flex: 1; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 6px 0 14px; border-radius: 16px;
  background: var(--card); border: 0; box-shadow: var(--shadow-panel);
}
.search:focus-within { box-shadow: 0 0 0 2px var(--ink); }
.search svg { width: 18px; height: 18px; color: var(--ink-mute); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; height: 42px; }
.searchbar > .btn.icon { background: var(--card); color: var(--ink); box-shadow: var(--shadow-panel); height: 46px; width: 46px; border-radius: 16px; }
.filter-btn { position: relative; }
.filter-btn .count { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--dot); color: #fff; font-size: 11px; font-weight: 600; display: grid; place-items: center; padding: 0 4px; }
.suggest { position: absolute; top: 52px; left: 0; right: 54px; z-index: 15; background: var(--card); border: 0; border-radius: 18px; box-shadow: var(--shadow-raised); padding: 6px; max-height: 50vh; overflow: auto; }
.suggest button { display: flex; width: 100%; gap: 10px; align-items: center; text-align: left; background: none; border: 0; padding: 10px 12px; border-radius: 12px; cursor: pointer; font-size: 15px; }
.suggest button:hover, .suggest button.on { background: var(--raise); }
.suggest .k { font-size: 12px; color: var(--ink-mute); margin-left: auto; }
.calls-tools { margin: 10px 0 8px; }
.statbar { display: flex; align-items: center; gap: 10px; justify-content: space-between; margin: 12px 4px 8px; font-size: 13px; color: var(--ink-mute); }
.statbar b { color: var(--ink); font-weight: 650; }
.offer { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 18px; background: var(--card); color: var(--ink-soft); font-size: 14px; margin-bottom: 10px; box-shadow: var(--shadow-panel); }
.offer .grow { flex: 1; }
.offer > svg { width: 20px; height: 20px; flex: none; color: var(--ink); }
.suggest svg { width: 16px; height: 16px; flex: none; color: var(--ink-mute); }
.jobbar { padding: 12px 14px; border-radius: 18px; background: var(--card); color: var(--ink); font-size: 14px; margin-bottom: 10px; cursor: pointer; box-shadow: var(--shadow-panel); }
.jobbar .progress { background: var(--raise2); }

.calls { background: var(--card); border: 0; border-radius: var(--radius); box-shadow: var(--shadow-panel); padding: 4px 14px; }
.call { display: flex; gap: 12px; padding: 12px 0; cursor: pointer; align-items: flex-start; position: relative; }
.call + .call::before { content: ""; position: absolute; top: 0; left: 50px; right: 0; height: 1px; transform: scaleY(.5); background: var(--hairline); box-shadow: 0 0 0 .5px var(--hairline); }
.call:active { opacity: .7; }
.call.flag-high .who::after, .call.flag-medium .who::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-left: 7px; vertical-align: 2px; }
.call.flag-high .who::after { background: var(--danger); }
.call.flag-medium .who::after { background: var(--warn); }
.call .main { flex: 1; min-width: 0; }
.call .top-line { display: flex; gap: 8px; align-items: baseline; }
.call .who { font-weight: 600; font-size: 15.5px; letter-spacing: -.008em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.call .when { margin-left: auto; font-size: 13px; color: var(--faint); white-space: nowrap; }
.call .meta { font-size: 13px; line-height: 18px; color: var(--ink-mute); }
.call .about { font-size: 14px; line-height: 20px; color: var(--ink-soft); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.call .snip { font-size: 13px; line-height: 18px; color: var(--ink-soft); margin-top: 5px; padding: 6px 10px; border-radius: 10px; background: var(--raise); }
.call .badges { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
mark { background: color-mix(in srgb, #facc15 45%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.play {
  flex: none; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--raise2);
  color: var(--ink); display: grid; place-items: center; cursor: pointer; align-self: center;
}
.play svg { width: 16px; height: 16px; }
.play.on { background: var(--ink); color: var(--inv); }
.more { display: flex; justify-content: center; padding: 12px; }
.person-row .bar { height: 4px; border-radius: 2px; background: var(--ink); opacity: .18; margin-top: 6px; }

/* ---------- sheets ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; background: var(--scrim); animation: fade .18s; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  width: 100%; max-width: 760px; max-height: 93vh; display: flex; flex-direction: column; background: var(--card);
  border-radius: 30px 30px 0 0; box-shadow: 0 -8px 40px -12px rgba(0, 0, 0, .28); animation: up .32s cubic-bezier(.2, .8, .2, 1); padding-bottom: env(safe-area-inset-bottom);
  transition: transform .2s;
}
@keyframes up { from { transform: translateY(60px); opacity: .4; } }
.sheet-head { display: flex; align-items: flex-start; gap: 12px; padding: 8px 18px 10px; border-bottom: 0; }
.sheet-head .grow { flex: 1; min-width: 0; }
.sheet-head h3 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.02em; line-height: 28px; overflow: hidden; text-overflow: ellipsis; }
.sheet-head .sub { font-size: 13px; color: var(--ink-mute); }
.sheet-head [data-close] { background: var(--tint); border-radius: 50%; width: 36px; height: 36px; }
.sheet-body { overflow: auto; padding: 6px 18px 22px; -webkit-overflow-scrolling: touch; }
.sheet-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 10px 18px 12px; border-top: 1px solid var(--hairline); }
.grip { width: 36px; height: 5px; border-radius: 3px; background: var(--faint); opacity: .55; margin: 8px auto 4px; }
@media (min-width: 1024px) {
  .sheet-wrap { justify-content: flex-end; align-items: stretch; }
  .sheet { max-width: 520px; max-height: none; height: 100%; border-radius: 0; animation: left .26s cubic-bezier(.2, .8, .2, 1); }
  @keyframes left { from { transform: translateX(40px); opacity: .5; } }
  .grip { display: none; }
  .sheet-head { padding-top: 18px; }
}
.sec { margin-top: 20px; }
.sec:first-child { margin-top: 0; }
.sec > .section-label { margin-bottom: 8px; }
.kv { display: flex; flex-wrap: wrap; gap: 6px; }
.points { margin: 4px 0 0; padding-left: 18px; }
.points li { margin: 3px 0; }
.avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 650; background: var(--raise2); color: var(--ink); }
.avatar.unknown { background: var(--raise); color: var(--ink-mute); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 0; }

.transcript { margin-top: 6px; }
.tsearch { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; position: sticky; top: -6px; background: var(--card); padding: 6px 0; z-index: 2; }
.tsearch .input { height: 38px; font-size: 15px; }
.tsearch .n { font-size: 13px; color: var(--ink-mute); white-space: nowrap; }
.seg-line { display: flex; gap: 10px; padding: 7px 10px; border-radius: 12px; }
.seg-line.timed { cursor: pointer; }
.seg-line.timed:hover { background: var(--raise); }
.seg-line.now { background: var(--raise2); }
.seg-who { flex: none; width: 64px; font-size: 12px; font-weight: 600; color: var(--ink-mute); padding-top: 3px; }
.seg-who.mom { color: var(--ink); }
.seg-who .t { display: block; font-weight: 400; font-size: 11px; color: var(--faint); }
.seg-text { font-size: 15px; line-height: 23px; color: var(--ink-soft); }
.form-grid { display: grid; gap: 14px; }
.form-grid label.k { display: block; font-size: 13px; font-weight: 600; color: var(--ink-mute); margin-bottom: 6px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pick-list { max-height: 240px; overflow: auto; background: var(--raise); border-radius: 16px; margin-top: 6px; }
.pick-list button { display: flex; width: 100%; justify-content: space-between; gap: 8px; padding: 11px 14px; border: 0; background: none; cursor: pointer; text-align: left; font-size: 15px; }
.pick-list button + button { border-top: 1px solid var(--hairline); }
.pick-list button[aria-pressed="true"] { background: var(--ink); color: var(--inv); }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 52px; margin-top: 6px; }
.bars i { flex: 1; background: var(--ink); opacity: .22; border-radius: 3px 3px 0 0; min-height: 2px; }

/* ---------- player (floats above the tab bar) ---------- */
.player-bar {
  position: fixed; left: 14px; right: 14px; z-index: 40; bottom: calc(82px + env(safe-area-inset-bottom)); max-width: 520px; margin: 0 auto;
  background: var(--glass); backdrop-filter: blur(24px) saturate(1.8); -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border: 0; border-radius: 22px; box-shadow: var(--shadow-raised), inset 0 0 0 .5px var(--glass-line);
  padding: 8px 12px 6px; display: grid; grid-template-columns: auto 1fr auto; gap: 4px 10px; align-items: center;
}
@media (min-width: 1024px) { .player-bar { left: 260px; right: 16px; bottom: 16px; max-width: 760px; } }
.player-bar .pp { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--ink); color: var(--inv); display: grid; place-items: center; cursor: pointer; }
.player-bar .pp svg { width: 18px; height: 18px; }
.player-bar .title { min-width: 0; cursor: pointer; }
.player-bar .title b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 19px; }
.player-bar .title span { font-size: 12px; color: var(--ink-mute); line-height: 16px; }
.player-bar .ctl { display: flex; gap: 2px; align-items: center; }
.player-bar .ctl button { height: 34px; min-width: 34px; padding: 0 6px; border: 0; background: none; border-radius: 17px; cursor: pointer; font-size: 13px; font-weight: 650; color: var(--ink-soft); }
.player-bar .ctl button:hover { background: var(--tint); }
.player-bar .ctl svg { width: 18px; height: 18px; }
.player-bar .scrub { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.player-bar input[type=range] { flex: 1; accent-color: var(--ink); height: 16px; }

/* ---------- Ask ---------- */
.ask { display: flex; flex-direction: column; min-height: calc(100vh - 190px); }
.ask-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ask-head .grow { flex: 1; font-size: 13px; color: var(--ink-mute); text-align: right; }
.ask-head .btn.secondary { background: var(--card); box-shadow: var(--shadow-panel); }
.msgs { flex: 1; }
.ask-empty { text-align: center; padding: 22px 4px 12px; }
.ask-empty h2 { font-size: 24px; line-height: 30px; font-weight: 700; margin: 12px 0 4px; letter-spacing: -.025em; }
.ask-empty p { color: var(--ink-mute); margin: 0 0 18px; }
.ask-empty .mark { display: block; width: 54px; height: 50px; margin: 0 auto; color: var(--ink); --mark-cut: var(--canvas); }
.skill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; text-align: left; }
.skill { border: 0; background: var(--card); border-radius: 20px; padding: 13px 14px; cursor: pointer; box-shadow: var(--shadow-panel); min-height: 92px; }
.skill:active { transform: scale(.98); }
.skill b { display: block; font-size: 15px; font-weight: 600; line-height: 20px; letter-spacing: -.01em; }
.skill span { font-size: 13px; line-height: 17px; color: var(--ink-mute); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; }
.msg-user { display: flex; justify-content: flex-end; margin: 14px 0; }
.msg-user div { max-width: 82%; background: var(--card); box-shadow: var(--shadow-panel); border-radius: 20px 20px 6px 20px; padding: 10px 14px; white-space: pre-wrap; font-size: 16px; line-height: 22px; }
.msg-ai { margin: 8px 0 26px; animation: fade .3s; font-size: 16px; line-height: 25px; }
.msg-ai .txt p { margin: 0 0 9px; }
.msg-ai .txt ul { margin: 0 0 10px; padding-left: 20px; }
.msg-ai .txt li { margin: 3px 0; }
.msg-ai.err .txt { color: var(--danger); }
.tools-line { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink-mute); background: none; border: 0; padding: 2px 0; cursor: pointer; margin-bottom: 6px; }
.tools-line svg { width: 14px; height: 14px; transition: transform .15s; }
.tools-line[aria-expanded="true"] svg { transform: rotate(90deg); }
.tool-steps { border-left: 2px solid var(--hairline); margin: 0 0 8px 6px; padding: 2px 0 2px 12px; display: grid; gap: 4px; }
.tool-steps span { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 3px 10px; border-radius: 10px; font-size: 12px; background: var(--card); }
.thinking { display: inline-flex; gap: 8px; align-items: center; color: var(--ink-mute); font-size: 14px; }
.thinking i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); animation: pulse 1s infinite; }
.composer-wrap { position: sticky; bottom: calc(82px + env(safe-area-inset-bottom)); padding: 10px 0 4px; background: linear-gradient(transparent, var(--canvas) 35%); }
body.has-player .composer-wrap { bottom: calc(82px + 76px + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) { .composer-wrap, body.has-player .composer-wrap { bottom: 0; } body.has-player .composer-wrap { bottom: 84px; } }
.composer {
  display: flex; align-items: flex-end; gap: 6px; border: 0; border-radius: 28px; padding: 6px 6px 6px 18px;
  background: var(--glass); backdrop-filter: blur(24px) saturate(1.8); -webkit-backdrop-filter: blur(24px) saturate(1.8);
  box-shadow: var(--shadow-raised), inset 0 0 0 .5px var(--glass-line);
}
.composer:focus-within { box-shadow: var(--shadow-raised), inset 0 0 0 1.5px var(--ink); }
.composer textarea { flex: 1; border: 0; outline: 0; resize: none; background: transparent; font-size: 16px; line-height: 24px; max-height: 140px; padding: 8px 0; }
.composer .send { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--ink); color: var(--inv); display: grid; place-items: center; cursor: pointer; }
.composer .send:disabled { background: var(--raise2); color: var(--faint); }
.composer .send svg { width: 18px; height: 18px; }

/* embed cards inside answers */
.embed { border: 0; border-radius: 20px; background: var(--card); box-shadow: var(--shadow-panel); margin: 10px 0; overflow: hidden; transition: transform .15s; }
.embed:active { transform: scale(.99); }
.embed-head { display: flex; gap: 12px; align-items: center; padding: 13px 14px 8px; }
.embed-head .grow { flex: 1; min-width: 0; }
.embed-head b { display: block; font-size: 15px; font-weight: 600; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.embed-head span { font-size: 13px; color: var(--ink-mute); line-height: 17px; }
.embed-body { padding: 0 14px 12px; font-size: 14px; line-height: 21px; color: var(--ink-soft); }
.embed-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid var(--hairline); background: transparent; padding: 8px 14px; font-size: 12px; color: var(--ink-mute); }
.embed-foot button, .embed-foot a { font-size: 13px; font-weight: 600; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 2px 0; text-decoration: none; }
.embed .mini { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--hairline); cursor: pointer; }
.embed .mini:first-child { border-top: 0; }
.embed .mini .grow { flex: 1; min-width: 0; font-size: 14px; }
.embed .mini .grow b { font-weight: 600; }
.embed.confirm { box-shadow: 0 0 0 1.5px var(--ink); }
.embed.confirm .embed-foot { background: var(--raise); }

#toast {
  position: fixed; left: 50%; top: calc(62px + env(safe-area-inset-top)); transform: translateX(-50%) translateY(-12px); z-index: 120;
  background: var(--ink); color: var(--inv); padding: 11px 18px; border-radius: 22px; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none;
  transition: .22s cubic-bezier(.2, .8, .2, 1); max-width: calc(100vw - 32px); box-shadow: var(--shadow-raised);
}
#toast.show { opacity: 1; transform: translateX(-50%); }

/* pull to refresh (phones) */
.ptr { position: fixed; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 60px); transform: translate(-50%, 0); z-index: 60;
  padding: 7px 14px; border-radius: 18px; background: var(--card); color: var(--ink-soft);
  box-shadow: var(--shadow-raised); font-size: 13px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .15s; }

/* ---------- notifications ---------- */
.notif { display: flex; gap: 12px; padding: 12px 0; position: relative; cursor: pointer; }
.notif + .notif::before { content: ""; position: absolute; top: 0; left: 50px; right: 0; height: 1px; transform: scaleY(.5); background: var(--hairline); box-shadow: 0 0 0 .5px var(--hairline); }
.notif .grow { flex: 1; min-width: 0; }
.notif b { display: block; font-size: 15px; font-weight: 600; line-height: 20px; }
.notif p { margin: 2px 0 0; font-size: 14px; line-height: 20px; color: var(--ink-soft); white-space: pre-line; }
.notif .meta { font-size: 12px; color: var(--faint); margin-top: 3px; }
.notif .ndot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--dot); margin-top: 6px; }
.notif:not(.unread) .ndot { visibility: hidden; }

/* ---------- cost book ---------- */
.book-hero { border-radius: 26px; padding: 18px; margin-bottom: 12px; }
.book-hero .k { font-size: 13px; font-weight: 600; color: var(--indigo-mute); }
.book-hero .v { font-size: 40px; line-height: 46px; font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.book-hero .v small { font-size: 18px; font-weight: 600; letter-spacing: -.01em; color: var(--indigo-mute); }
.book-hero .row2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.book-hero .row2 div { background: rgba(10, 20, 51, .82); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .16); border-radius: 14px; padding: 9px 10px; }
.book-hero .row2 span { display: block; font-size: 12px; color: var(--indigo-mute); font-weight: 600; }
.book-hero .row2 b { font-size: 16px; font-variant-numeric: tabular-nums; }
.daybars { display: flex; align-items: flex-end; gap: 3px; height: 84px; margin: 6px 0 4px; }
.daybars .d { flex: 1; display: flex; flex-direction: column-reverse; min-width: 0; height: 100%; cursor: pointer; border-radius: 4px; }
.daybars .d i { display: block; width: 100%; }
.daybars .d i.s { background: var(--ink); }
.daybars .d i.c { background: var(--ink); opacity: .35; }
.daybars .d i:last-child { border-radius: 4px 4px 0 0; }
.daybars .d.on { outline: 2px solid var(--dot); outline-offset: 1px; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--ink-mute); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--ink); margin-right: 5px; vertical-align: -1px; }
.legend i.c { opacity: .35; }
.brk { display: flex; align-items: center; gap: 12px; padding: 10px 0; position: relative; }
.brk + .brk::before { content: ""; position: absolute; top: 0; left: 50px; right: 0; height: 1px; transform: scaleY(.5); background: var(--hairline); box-shadow: 0 0 0 .5px var(--hairline); }
.brk .grow { flex: 1; min-width: 0; }
.brk b { display: block; font-size: 15px; font-weight: 600; }
.brk span { font-size: 13px; color: var(--ink-mute); }
.brk .amt { font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; }
.brk .amt small { display: block; font-size: 12px; font-weight: 500; color: var(--ink-mute); }
.ledger { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-panel); padding: 2px 14px; }
.lrow { display: flex; gap: 12px; padding: 11px 0; align-items: flex-start; position: relative; }
.lrow + .lrow::before { content: ""; position: absolute; top: 0; left: 50px; right: 0; height: 1px; transform: scaleY(.5); background: var(--hairline); box-shadow: 0 0 0 .5px var(--hairline); }
.lrow.link { cursor: pointer; }
.lrow .grow { flex: 1; min-width: 0; }
.lrow b { display: block; font-size: 15px; font-weight: 600; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrow .sub { font-size: 13px; line-height: 18px; color: var(--ink-mute); }
.lrow .amt { flex: none; text-align: right; font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; }
.lrow .amt small { display: block; font-size: 12px; font-weight: 500; color: var(--faint); }
.rates { font-size: 12px; line-height: 18px; color: var(--ink-mute); margin: 12px 6px 0; }

/* ---------- lock screen, login: indigo, sashiko, the heart mark ---------- */
.lock {
  position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(24px + env(safe-area-inset-top)) 24px calc(24px + env(safe-area-inset-bottom)); text-align: center;
  background-color: var(--indigo); background-image: radial-gradient(ellipse at 50% 38%, rgba(10, 20, 51, .2), var(--indigo) 72%), url("sashiko.svg"); background-size: auto, 62px 31px;
  color: var(--indigo-text);
}
.lock .mark, .login .mark { width: 88px; height: 82px; color: var(--swarm); --mark-cut: var(--indigo); }
.lock h1, .login h1 { margin: 18px 0 4px; font-size: 26px; line-height: 32px; font-weight: 700; letter-spacing: -.025em; }
.lock p, .login p { margin: 0; font-size: 15px; color: var(--indigo-mute); }
.pin-dots { display: flex; gap: 16px; margin: 26px 0 8px; }
.pin-dots i { width: 14px; height: 14px; border-radius: 50%; border: 1.6px solid var(--indigo-mute); }
.pin-dots i.on { background: var(--indigo-text); border-color: var(--indigo-text); }
.pin-dots.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-10px); } 40%, 80% { transform: translateX(10px); } }
.lock .msg { min-height: 22px; font-size: 14px; color: #F5B65A; margin-bottom: 8px; }
.keypad { display: grid; grid-template-columns: repeat(3, 76px); gap: 14px 22px; }
.keypad button {
  width: 76px; height: 76px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .10); color: var(--indigo-text);
  font-size: 30px; font-weight: 400; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.keypad button:active { background: rgba(255, 255, 255, .28); }
.keypad button.txt { background: none; font-size: 15px; font-weight: 600; }
.keypad button svg { width: 30px; height: 30px; }
.lock .under { margin-top: 22px; display: flex; gap: 18px; }
.lock .under button { background: none; border: 0; color: var(--indigo-mute); font-size: 14px; font-weight: 600; cursor: pointer; }
.lock.setup { z-index: 110; }
.login { margin: -6px -16px 0; min-height: calc(100vh - 80px); border-radius: 0 0 30px 30px; padding: 48px 22px 30px; text-align: center; }
.login .card { text-align: left; margin-top: 26px; }
.login .card, .login .card .muted { color: var(--ink); }

/* icons: the open tab's icon is fuller */
.tabs button[aria-current="page"] svg [fill-opacity] { fill-opacity: .3; }
.ic svg [fill-opacity] { fill-opacity: .14; }

/* Sarvam credits card (cost book) */
.sv-left { font-size: 34px; line-height: 40px; font-weight: 700; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.sv-left span { font-size: 15px; font-weight: 600; color: var(--ink-mute); letter-spacing: 0; }
