/* iNdex Voice design system — tokens, primitives, layouts. Shared by the website, portal and Android app. */
:root {
  --navy-900: #0b1f4d; --navy-800: #13286a; --navy-700: #1b3486;
  --blue-600: #1d4ed8; --blue-500: #2563eb; --blue-100: #dbeafe; --blue-50: #eff6ff;
  --mint-500: #14b8a6; --mint-400: #22d3a6; --mint-50: #ecfdf8;
  --sun-400: #f5b700;
  --red-600: #dc2626; --red-50: #fef2f2; --amber-600: #d97706; --amber-50: #fffbeb; --green-600: #16a34a; --green-50: #f0fdf4;
  --ink: #0f172a; --ink-2: #334155; --muted: #64748b; --line: #e2e8f0; --line-2: #eef2f7;
  --bg: #f6f8fc; --surface: #ffffff;
  --radius: 14px; --radius-sm: 10px; --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 6px 24px rgba(15, 23, 42, .08);
  --shadow-lg: 0 24px 60px rgba(11, 31, 77, .18);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 15px; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; color: var(--navy-900); }
h1 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.85rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid rgba(37, 99, 235, .45); outline-offset: 2px; border-radius: 6px; }

/* Layout helpers */
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 760px; }
.pad-xl { padding-top: 72px; padding-bottom: 72px; }
.stack > * + * { margin-top: 14px; }
.stack > a { display: block; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.end { justify-content: flex-end; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.spacer { flex: 1; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; padding: 10px 18px; font: 600 .95rem var(--font); cursor: pointer; text-decoration: none !important; transition: background .15s, box-shadow .15s, transform .05s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--blue-600); color: #fff; box-shadow: 0 6px 16px rgba(29, 78, 216, .28); }
.btn-primary:hover { background: var(--blue-500); }
.btn-accent { background: var(--mint-400); color: var(--navy-900); }
.btn-accent:hover { background: #3ee0b6; }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); border-color: #cbd5e1; }
.btn-light { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn-light:hover { background: rgba(255, 255, 255, .2); }
.btn-danger { background: var(--red-600); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: .85rem; }
.btn-lg { padding: 14px 26px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--blue-600); font: inherit; cursor: pointer; }
.link-btn.danger { color: var(--red-600); }

/* Cards & surfaces */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.card.flush { padding: 0; overflow: hidden; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-header h3 { margin: 0; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat .value { font-size: 1.8rem; font-weight: 800; color: var(--navy-900); letter-spacing: -.03em; }
.stat .label { color: var(--muted); font-size: .86rem; }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty .icon { font-size: 2rem; margin-bottom: 6px; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--line-2); color: var(--ink-2); }
.badge.green { background: var(--green-50); color: var(--green-600); }
.badge.red { background: var(--red-50); color: var(--red-600); }
.badge.amber { background: var(--amber-50); color: var(--amber-600); }
.badge.blue { background: var(--blue-50); color: var(--blue-600); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: #94a3b8; }
.dot.green { background: #22c55e; } .dot.red { background: #ef4444; } .dot.amber { background: #f59e0b; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label, .label { font-weight: 600; font-size: .88rem; color: var(--ink-2); }
.field .hint { font-size: .8rem; color: var(--muted); }
.input, select.input, textarea.input { width: 100%; border: 1px solid #cbd5e1; border-radius: var(--radius-sm); padding: 10px 12px; font: 400 .95rem var(--font); background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.input:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(37, 99, 235, .15); }
textarea.input { min-height: 90px; resize: vertical; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: .92rem; margin-bottom: 10px; cursor: pointer; }
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--blue-600); }
.alert { border-radius: var(--radius-sm); padding: 12px 14px; font-size: .92rem; margin-bottom: 14px; border: 1px solid; }
.alert.error { background: var(--red-50); color: #991b1b; border-color: #fecaca; }
.alert.info { background: var(--blue-50); color: #1e3a8a; border-color: var(--blue-100); }
.alert.success { background: var(--green-50); color: #166534; border-color: #bbf7d0; }
.alert.warn { background: var(--amber-50); color: #92400e; border-color: #fde68a; }
.validation-message { color: var(--red-600); font-size: .82rem; }

/* Tables */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fafbfe; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
/* Phones: a table marked .cards-on-phone becomes one card per row; each cell shows its data-label. */
@media (max-width: 620px) {
  .table.cards-on-phone thead { display: none; }
  .table.cards-on-phone, .table.cards-on-phone tbody, .table.cards-on-phone tr, .table.cards-on-phone td { display: block; width: 100%; }
  .table.cards-on-phone tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .table.cards-on-phone tr:last-child { border-bottom: 0; }
  .table.cards-on-phone td { border: 0; padding: 4px 16px; }
  .table.cards-on-phone td[data-label]::before { content: attr(data-label); display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
  .table.cards-on-phone td.row-action { padding-top: 6px; }
  .table.cards-on-phone td.row-action .link-btn { min-height: 44px; }
}
.table tr.clickable { cursor: pointer; } .table tr.clickable:hover td { background: #fafcff; }

/* ---------- Website ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: 22px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--navy-900); text-decoration: none !important; letter-spacing: -.02em; }
.brand img { width: 34px; height: 34px; }
.brand .v { color: var(--mint-500); font-weight: 700; }
.site-nav { display: flex; gap: 20px; }
.site-nav a { color: var(--ink-2); font-weight: 500; font-size: .95rem; }
.site-nav a:hover { color: var(--blue-600); text-decoration: none; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; font-size: 1.5rem; cursor: pointer; }
@media (max-width: 900px) {
  .site-nav, .site-header .header-cta { display: none; }
  .nav-toggle { display: block; }
  .site-header.open .site-nav { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: #fff; padding: 16px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-header.open .header-cta { display: flex; position: absolute; top: calc(68px + 260px); left: 20px; right: 20px; }
}
.hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(34, 211, 166, .25), transparent 60%), linear-gradient(160deg, var(--navy-900) 0%, var(--navy-700) 55%, var(--blue-600) 100%); color: #fff; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.4rem); }
.hero p.lead { color: #d6e2ff; font-size: 1.15rem; max-width: 560px; }
.hero .eyebrow { display: inline-flex; gap: 8px; align-items: center; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); padding: 6px 12px; border-radius: 999px; font-size: .85rem; margin-bottom: 18px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 18px; }
.hero .trust { display: flex; gap: 18px; flex-wrap: wrap; color: #bcd0ff; font-size: .9rem; }
@media (max-width: 900px) { .hero .container { grid-template-columns: 1fr; padding-top: 48px; } .hero .device { display: none; } }
.device { justify-self: center; width: 290px; height: 590px; border-radius: 44px; background: #0a1430; padding: 12px; box-shadow: var(--shadow-lg), 0 0 0 2px rgba(255, 255, 255, .08) inset; }
.device .screen { width: 100%; height: 100%; border-radius: 34px; background: linear-gradient(180deg, #0f2a66, #0b1f4d); color: #fff; display: flex; flex-direction: column; align-items: center; padding: 48px 22px 34px; text-align: center; }
.device .avatar { width: 92px; height: 92px; border-radius: 50%; background: linear-gradient(135deg, var(--mint-400), var(--blue-500)); display: grid; place-items: center; font-size: 2rem; font-weight: 800; margin: 26px 0 16px; }
.device .who { font-size: 1.35rem; font-weight: 700; }
.device .via { color: #9fb4e6; font-size: .9rem; margin-top: 4px; }
.device .call-actions { margin-top: auto; display: flex; gap: 60px; }
.round { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; border: 0; color: #fff; cursor: pointer; }
.round.green { background: #22c55e; } .round.red { background: #ef4444; } .round.grey { background: rgba(255, 255, 255, .14); }
.section { padding: 76px 0; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 42px; }
.section-head .kicker { color: var(--mint-500); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-600); font-size: 1.3rem; margin-bottom: 14px; }
.steps { counter-reset: step; }
.step { position: relative; padding-left: 58px; margin-bottom: 26px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 12px; background: var(--navy-900); color: #fff; display: grid; place-items: center; font-weight: 800; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--blue-600); box-shadow: var(--shadow); position: relative; }
.price-card.featured::before { content: "Most popular"; position: absolute; top: -13px; left: 28px; background: var(--blue-600); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.price { font-size: 2.4rem; font-weight: 800; color: var(--navy-900); letter-spacing: -.03em; }
.price small { font-size: .95rem; color: var(--muted); font-weight: 500; }
.ticks { list-style: none; padding: 0; margin: 18px 0 24px; }
.ticks li { padding-left: 26px; position: relative; margin-bottom: 9px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--mint-500); font-weight: 800; }
.cta-band { background: linear-gradient(120deg, var(--navy-900), var(--blue-600)); color: #fff; border-radius: var(--radius-lg); padding: 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 10px; }
.faq summary { font-weight: 600; cursor: pointer; color: var(--navy-900); }
.faq details p { margin: 10px 0 0; color: var(--ink-2); }
.prose h2 { margin-top: 1.8em; } .prose h3 { margin-top: 1.4em; } .prose li { margin-bottom: 6px; }
.site-footer { background: var(--navy-900); color: #b6c4e6; padding: 52px 0 28px; margin-top: 0; }
.site-footer a { color: #dbe5ff; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.site-footer h4 { color: #fff; font-size: .9rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; } .site-footer li { margin-bottom: 8px; }
.site-footer .legal { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 32px; padding-top: 18px; font-size: .84rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
.auth-shell { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 40px 16px; background: radial-gradient(800px 400px at 100% 0, rgba(34, 211, 166, .12), transparent 60%), var(--bg); }
.auth-card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.6rem; }

/* ---------- App shell ---------- */
.app { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.sidebar { background: var(--navy-900); color: #c7d4f5; padding: 18px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.sidebar .brand { color: #fff; padding: 4px 8px 18px; }
.org-switch { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; padding: 10px 12px; margin-bottom: 14px; font-size: .88rem; color: #fff; }
.org-switch .muted { color: #9fb0d9; font-size: .78rem; }
.nav-group { margin: 10px 0 4px; padding: 0 10px; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: #7f93c4; font-weight: 700; }
.nav-link { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: #c7d4f5; font-weight: 500; font-size: .93rem; text-decoration: none !important; }
.nav-link:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav-link.active { background: rgba(34, 211, 166, .14); color: #fff; box-shadow: inset 3px 0 0 var(--mint-400); }
.nav-link .ico { width: 20px; text-align: center; opacity: .9; }
.nav-link .count { margin-left: auto; background: var(--mint-400); color: var(--navy-900); border-radius: 999px; font-size: .72rem; font-weight: 800; padding: 1px 8px; }
.sidebar .me { margin-top: auto; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 12px; font-size: .86rem; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 64px; display: flex; align-items: center; gap: 14px; padding: 0 28px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar h1 { font-size: 1.15rem; margin: 0; }
.content { padding: 26px 28px 40px; max-width: 1240px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { margin: 0; font-size: 1.6rem; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.status-pill { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--ink-2); background: var(--line-2); padding: 6px 12px; border-radius: 999px; }
.bottom-nav { display: none; }
@media (max-width: 920px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .sidebar.open { display: flex; position: fixed; inset: 0 20% 0 0; z-index: 60; height: 100%; box-shadow: var(--shadow-lg); }
  .scrim { position: fixed; inset: 0; background: rgba(15, 23, 42, .4); z-index: 55; }
  .topbar { padding: 0 16px; }
  .content { padding: 18px 16px calc(96px + var(--safe-bottom)); }
  .bottom-nav { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--line); padding: 6px 4px calc(6px + var(--safe-bottom)); z-index: 40; }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .72rem; color: var(--muted); padding: 6px 0; text-decoration: none; font-weight: 600; }
  .bottom-nav a .ico { font-size: 1.25rem; }
  .bottom-nav a.active { color: var(--blue-600); }
}
.menu-btn { display: none; background: none; border: 0; font-size: 1.4rem; cursor: pointer; }
@media (max-width: 920px) { .menu-btn { display: block; } }

/* ---------- Phone ---------- */
.phone-wrap { display: grid; grid-template-columns: 380px 1fr; gap: 22px; align-items: start; }
@media (max-width: 920px) { .phone-wrap { grid-template-columns: 1fr; } }
.dialer { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm); max-width: 420px; margin: 0 auto; width: 100%; }
.dial-display { font-size: 1.9rem; font-weight: 700; text-align: center; min-height: 52px; letter-spacing: .02em; color: var(--navy-900); border: 0; width: 100%; background: transparent; }
.dial-display:focus { outline: none; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0 18px; }
.key { height: 66px; border-radius: 18px; border: 1px solid var(--line); background: #fafbff; font: 600 1.45rem var(--font); color: var(--navy-900); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.key small { font-size: .62rem; letter-spacing: .14em; color: var(--muted); margin-top: 4px; font-weight: 600; }
.key:hover { background: var(--blue-50); border-color: var(--blue-100); }
.key:active { transform: scale(.97); }
.call-btn { width: 72px; height: 72px; border-radius: 50%; border: 0; background: #22c55e; color: #fff; font-size: 1.7rem; cursor: pointer; display: grid; place-items: center; margin: 0 auto; box-shadow: 0 10px 22px rgba(34, 197, 94, .35); }
.call-btn.end { background: #ef4444; box-shadow: 0 10px 22px rgba(239, 68, 68, .35); }
.call-btn[disabled] { background: #94a3b8; box-shadow: none; }
.in-call { text-align: center; padding: 10px 0; }
.in-call .avatar { width: 84px; height: 84px; border-radius: 50%; margin: 6px auto 12px; background: linear-gradient(135deg, var(--mint-400), var(--blue-500)); color: #fff; display: grid; place-items: center; font-size: 1.8rem; font-weight: 800; }
.in-call .timer { font-variant-numeric: tabular-nums; color: var(--muted); margin-top: 2px; }
.call-controls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0; }
.ctrl { display: flex; flex-direction: column; align-items: center; gap: 6px; background: #f4f6fb; border: 1px solid var(--line); border-radius: 16px; padding: 12px 6px; cursor: pointer; font: 600 .8rem var(--font); color: var(--ink-2); }
.ctrl .ico { font-size: 1.3rem; }
.ctrl.on { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.incoming-banner { position: fixed; left: 50%; transform: translateX(-50%); top: 14px; z-index: 80; width: min(420px, calc(100% - 24px)); background: var(--navy-900); color: #fff; border-radius: 20px; padding: 16px 18px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 14px; animation: drop .25s ease-out; }
.incoming-banner .who { font-weight: 700; } .incoming-banner .sub { color: #a9bbe8; font-size: .84rem; }
@keyframes drop { from { transform: translate(-50%, -20px); opacity: 0; } }
.pulse { animation: pulse 1.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); } 70% { box-shadow: 0 0 0 16px rgba(34, 197, 94, 0); } }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.list-item:last-child { border-bottom: 0; }
.list-item .meta { flex: 1; min-width: 0; }
.list-item .title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item .sub { color: var(--muted); font-size: .84rem; }
.dir { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--line-2); font-size: 1rem; flex-shrink: 0; }
.dir.in { background: var(--blue-50); color: var(--blue-600); } .dir.out { background: var(--mint-50); color: var(--mint-500); } .dir.missed { background: var(--red-50); color: var(--red-600); }
.tabs { display: flex; gap: 6px; background: #eef1f8; padding: 4px; border-radius: 12px; width: fit-content; margin-bottom: 14px; flex-wrap: wrap; }
.tabs button { border: 0; background: transparent; padding: 7px 14px; border-radius: 9px; font: 600 .88rem var(--font); color: var(--ink-2); cursor: pointer; }
.tabs button.active { background: #fff; color: var(--navy-900); box-shadow: var(--shadow-sm); }

/* Modal & toasts */
.modal-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 90; display: grid; place-items: center; padding: 16px; }
.modal { background: #fff; border-radius: var(--radius-lg); width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow-y: auto; box-shadow: var(--shadow-lg); }
.modal header { padding: 20px 24px 0; display: flex; justify-content: space-between; align-items: center; }
.modal header h3 { margin: 0; }
.modal .body { padding: 18px 24px; }
.modal footer { padding: 0 24px 22px; display: flex; justify-content: flex-end; gap: 10px; }
.close-x { background: none; border: 0; font-size: 1.4rem; cursor: pointer; color: var(--muted); }
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 100; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100% - 36px)); }
@media (max-width: 920px) { .toasts { bottom: calc(84px + var(--safe-bottom)); left: 18px; } }
.toast { background: var(--navy-900); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow); font-size: .92rem; }
.toast.error { background: var(--red-600); }
.spinner { width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--blue-600); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { display: grid; place-items: center; padding: 60px; }
.target-picker { display: grid; grid-template-columns: 170px 1fr; gap: 8px; }
@media (max-width: 520px) { .target-picker { grid-template-columns: 1fr; } }
.days { display: grid; gap: 8px; }
.day-row { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.period { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.period input { width: 120px; }
audio { width: 100%; height: 40px; }
.grid-main { grid-template-columns: 2fr 1fr; }
@media (max-width: 900px) { .grid-main { grid-template-columns: 1fr; } }

/* FocusOnNavigate moves focus to the page heading for screen readers; it is not interactive, so no focus ring. */
h1:focus, h1:focus-visible, [tabindex="-1"]:focus { outline: none; }
