:root {
  --brand: #1c4f8c; --brand-dark: #133a69; --brand-soft: #e8f0fa; --accent: #d97328;
  --ink: #17212f; --text: #2f3b4c; --mute: #64707f; --line: #e1e6ed; --bg: #f5f7fa; --card: #fff;
  --ok: #1f7a4d; --ok-soft: #e4f4ea; --warn: #9a5b00; --warn-soft: #fff4dc; --bad: #b42318; --bad-soft: #fde8e6;
  --info: #2f5fb3; --info-soft: #e8effc;
  --radius: 12px; --shadow: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text); background: var(--bg); line-height: 1.5;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
a { color: var(--brand); }
h1, h2, h3 { color: var(--ink); line-height: 1.25; margin: 0 0 .5rem; }
h1 { font-size: 1.55rem; } h2 { font-size: 1.15rem; } h3 { font-size: 1rem; }
p { margin: 0 0 .75rem; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #8fb3e6; outline-offset: 2px; }
.boot { display: grid; place-items: center; height: 100vh; color: var(--mute); }
.muted { color: var(--mute); } .small { font-size: .88rem; }
.hidden { display: none !important; }

/* layout */
.shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 100vh; }
/* Left menu: deep blue with a soft glow, grouped sections, a color for each item. */
.side {
  color: #dbe6f5; padding: 16px 12px 12px; position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column;
  background: radial-gradient(120% 50% at 0% 0%, rgba(96,165,250,.28), transparent 60%),
    radial-gradient(90% 40% at 100% 100%, rgba(217,115,40,.20), transparent 65%), linear-gradient(180deg, #0e2a50 0%, #133a69 55%, #17457a 100%);
  border-right: 1px solid rgba(255,255,255,.06);
}
.brand { display: flex; gap: 11px; align-items: center; padding: 2px 8px 12px; margin-bottom: 2px; color: #fff; text-decoration: none; font-weight: 700; line-height: 1.2;
  letter-spacing: .01em; border-bottom: 1px solid rgba(255,255,255,.10); }
.brand-logo { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: linear-gradient(145deg, #ffffff, #dbe8f8); box-shadow: 0 6px 18px rgba(0,0,0,.25), 0 0 0 3px rgba(255,255,255,.08); }
.brand img { width: 28px; height: 28px; }
.brand small { display: block; font-weight: 500; color: #a9c3e6; font-size: .78rem; margin-top: 2px; }
.nav { flex: 1; min-height: 0; overflow-y: auto; margin: 0 -12px; padding: 0 12px 6px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent; }
.navgroup { margin-top: 10px; }
.navhead { font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(219,230,245,.55); padding: 0 12px 4px; }
.nav a { position: relative; display: flex; align-items: center; gap: 11px; color: #dbe6f5; text-decoration: none; padding: 5px 10px; border-radius: 10px; margin-bottom: 1px;
  font-weight: 500; transition: background .15s ease, transform .15s ease, color .15s ease; }
.navicon { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; flex: none; color: var(--ic);
  background: color-mix(in srgb, var(--ic) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ic) 28%, transparent); transition: all .15s ease; }
.ico { width: 18px; height: 18px; display: block; }
.nav a:hover { background: rgba(255,255,255,.08); color: #fff; transform: translateX(2px); }
.nav a:hover .navicon { background: color-mix(in srgb, var(--ic) 26%, transparent); }
.nav a:focus-visible { outline: 2px solid var(--ic); outline-offset: 1px; }
.nav a.on { background: #fff; color: var(--brand-dark); font-weight: 700; box-shadow: 0 8px 22px rgba(0,0,0,.22); transform: none; }
.nav a.on::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--ic); box-shadow: 0 0 12px var(--ic); }
.nav a.on .navicon { color: #fff; background: linear-gradient(145deg, var(--ic), color-mix(in srgb, var(--ic) 70%, #000)); box-shadow: 0 4px 10px color-mix(in srgb, var(--ic) 45%, transparent); }
.ic-today { --ic: #f59e0b; } .ic-assistant { --ic: #a78bfa; } .ic-schedule { --ic: #38bdf8; } .ic-clients { --ic: #f472b6; } .ic-people { --ic: #2dd4bf; }
.ic-visits { --ic: #818cf8; } .ic-incidents { --ic: #f87171; } .ic-evv { --ic: #34d399; } .ic-billing { --ic: #4ade80; } .ic-payroll { --ic: #facc15; }
.ic-services { --ic: #22d3ee; } .ic-audit { --ic: #94a3b8; } .ic-account { --ic: #fb923c; }
.side .who { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex: none; padding: 10px; border-radius: 12px; font-size: .9rem;
  background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 700; font-size: .85rem; color: #fff;
  background: linear-gradient(145deg, var(--accent), #b4531a); box-shadow: 0 0 0 2px rgba(255,255,255,.25); }
.whoname { flex: 1; min-width: 0; color: #fff; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.whoname .small { color: #a9c3e6; font-weight: 500; }
.signout { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; cursor: pointer; color: #dbe6f5;
  background: transparent; border: 1px solid rgba(255,255,255,.22); transition: all .15s ease; }
.signout:hover { background: rgba(248,113,113,.18); border-color: rgba(248,113,113,.6); color: #fff; }
@media (prefers-reduced-motion: reduce) { .nav a, .navicon, .signout { transition: none; } .nav a:hover { transform: none; } }
main { padding: 24px 28px 60px; max-width: 1200px; width: 100%; min-width: 0; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.top h1 { margin: 0; }
.mobile-bar { display: none; }

@media (max-width: 820px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .side { position: static; height: auto; padding: 10px; overflow: visible; }
  .side .nav { display: flex; gap: 6px; overflow-x: auto; overflow-y: visible; margin: 0; padding: 4px 2px 8px; scrollbar-width: none; }
  .side .nav::-webkit-scrollbar { display: none; }
  .navgroup { display: contents; }
  .navhead { display: none; }
  .nav a { flex: none; padding: 6px 12px 6px 6px; margin: 0; background: rgba(255,255,255,.06); white-space: nowrap; }
  .nav a:hover { transform: none; }
  .nav a.on::before { display: none; }
  .navicon { width: 26px; height: 26px; }
  .side .who { margin-top: 6px; padding: 8px; }
  .brand { padding-bottom: 10px; }
  main { padding: 16px; }
}

/* cards & tables */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 16px; }
.card > h2:first-child { margin-bottom: 12px; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.tile b { display: block; font-size: 1.7rem; color: var(--ink); }
.tile.warn { background: var(--warn-soft); border-color: #f1d9a6; }
.tile.bad { background: var(--bad-soft); border-color: #f5c2bd; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; color: var(--mute); font-weight: 600; }
tr.click { cursor: pointer; } tr.click:hover { background: var(--brand-soft); }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
dl.facts dt { color: var(--mute); } dl.facts dd { margin: 0; white-space: pre-wrap; }
.empty { color: var(--mute); padding: 12px 0; }

/* badges */
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--line); color: var(--text); white-space: nowrap; margin: 1px 2px 1px 0; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.info { background: var(--info-soft); color: var(--info); }

/* forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: #fff; padding: 8px 14px; border-radius: 8px; cursor: pointer; font-weight: 600; text-decoration: none; color: var(--ink); }
.btn:hover { background: var(--bg); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-dark); }
.btn.danger { color: var(--bad); border-color: #f5c2bd; }
.btn.big { width: 100%; padding: 16px; font-size: 1.15rem; border-radius: 12px; }
.btn.go { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.stop { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.light { background: transparent; color: #dbe6f5; border-color: rgba(255,255,255,.3); }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row.end { justify-content: flex-end; }
form .fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 16px; margin-bottom: 14px; }
label { display: block; font-weight: 600; font-size: .92rem; color: var(--ink); }
label .hint { display: block; font-weight: 400; color: var(--mute); font-size: .82rem; }
input, select, textarea { width: 100%; margin-top: 4px; padding: 9px 11px; border: 1px solid #c9d2de; border-radius: 8px; background: #fff; }
textarea { min-height: 80px; resize: vertical; }
label.wide, .fields > div.wide { grid-column: 1 / -1; }
label.check { display: flex; gap: 8px; align-items: center; font-weight: 400; }
label.check input { width: auto; margin: 0; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 14px; }
.filters label { min-width: 160px; }
.error { background: var(--bad-soft); color: var(--bad); border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; }
.notice { background: var(--warn-soft); color: var(--warn); border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; }
.linkbox { display: flex; gap: 8px; } .linkbox input { margin: 0; font-family: Consolas, monospace; font-size: .85rem; }

/* sign-in */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.auth .card { width: 100%; max-width: 420px; }
.auth .logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.auth .logo img { width: 40px; height: 40px; }
.auth form label { margin-bottom: 12px; }

/* schedule */
.day { margin-bottom: 14px; }
.day h3 { padding: 6px 0; border-bottom: 2px solid var(--line); }
.day.today h3 { color: var(--brand); border-color: var(--brand); }
.visit { display: grid; grid-template-columns: 150px 1fr auto; gap: 10px; padding: 9px 8px; border-bottom: 1px solid var(--line); cursor: pointer; align-items: center; }
.visit:hover { background: var(--brand-soft); }
.visit .when { font-weight: 600; color: var(--ink); }
@media (max-width: 600px) { .visit { grid-template-columns: 1fr; gap: 2px; } }

/* caregiver phone view */
.phone { max-width: 560px; margin: 0 auto; padding: 14px; }
.phone header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.phone header .btn { padding: 6px 10px; }
.phone header .row { flex-wrap: nowrap; }
.phone header .btn { white-space: nowrap; }
.vcard { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow); }
.vcard.now { border: 2px solid var(--ok); }
.vcard h2 { font-size: 1.25rem; margin-bottom: 2px; }
.vcard .time { font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.vcard .care { background: var(--bg); border-radius: 8px; padding: 10px; margin: 10px 0; white-space: pre-wrap; font-size: .95rem; }
.vcard .status { margin: 10px 0; }

/* dialog & toast */
dialog { border: none; border-radius: 14px; padding: 0; width: min(640px, calc(100vw - 24px)); box-shadow: 0 20px 50px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(15,23,42,.45); }
dialog .dlg { padding: 20px; max-height: calc(100vh - 40px); overflow-y: auto; }
dialog .dlg h2 { margin-bottom: 14px; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 10px; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 50; max-width: calc(100vw - 32px); }
#toast.show { opacity: 1; }

/* assistant */
.finding { display: grid; grid-template-columns: 70px 1fr auto; gap: 12px; align-items: start; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.finding:last-child { border-bottom: none; }
.finding .badge { justify-self: start; }
.card.assist { border-left: 4px solid var(--accent); }
ul.reasons { margin: 4px 0 0; padding-left: 18px; color: var(--mute); }
@media (max-width: 600px) { .finding { grid-template-columns: 1fr; gap: 6px; } }

/* EVV */
ol.steps { margin: 0 0 14px; padding-left: 20px; }
ol.steps li { margin-bottom: 4px; }
.card h3 { margin-top: 6px; }
input:disabled, select:disabled { background: var(--bg); color: var(--mute); }

/* billing */
.tabs { margin-bottom: 16px; }
.pre { white-space: pre-wrap; }
.invoice { max-width: 860px; padding: 32px; }
.invoice .inv-head { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.invoice .inv-meta h2 { letter-spacing: .12em; color: var(--brand); }
.invoice .bill-to { margin-bottom: 20px; }
.invoice td.num, .invoice th:last-child { text-align: right; }
.invoice tfoot td { font-weight: 600; border-bottom: none; }
.invoice tfoot tr.due td { font-size: 1.1rem; color: var(--ink); border-top: 2px solid var(--ink); }
.invoice .remit { margin: 20px 0 10px; padding: 12px; background: var(--bg); border-radius: 8px; }
@media print {
  body, .card { background: #fff; }
  .side, .no-print, #toast { display: none !important; }
  .shell { display: block; }
  main { padding: 0; max-width: none; }
  .card { border: none; box-shadow: none; }
  .invoice { padding: 0; }
}

/* Agent workflows */
.wf-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 12px 0; }
.wf-pick { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); cursor: pointer; font: inherit; color: inherit; min-width: 0; }
.wf-pick:hover, .wf-pick:focus-visible { border-color: var(--accent); }
.wf-step { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.wf-step input[type=checkbox] { width: 22px; height: 22px; margin-top: 2px; }
.wf-step.manual { opacity: .85; }
.wf-plan h3 { margin-top: 14px; }

/* Care records */
.pre { white-space: pre-wrap; }
.tasks { margin: 12px 0; }
.tasks h3 { margin-bottom: 6px; }
.task { border-top: 1px solid var(--line); padding: 10px 0; display: grid; gap: 8px; }
.task .row .btn { flex: 1; padding: 10px; }
.task select { width: 100%; }
.btn.warn-btn { background: var(--warn-soft); border-color: #f1d9a6; color: var(--warn); font-weight: 600; }
.btn.report { width: 100%; margin-top: 10px; }
.care ul { margin: 6px 0 0 18px; }
.taskgroup + .taskgroup { margin-top: 10px; }
.taskcat { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--mute); margin: 8px 0 4px; }
.care .taskline { padding: 2px 0 2px 14px; position: relative; white-space: normal; }
.care .taskline::before { content: ""; position: absolute; left: 2px; top: .65em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.carelog { border-bottom: 1px solid var(--line); padding: 10px 0; }
.carelog:last-child { border-bottom: none; }
.carelog p { margin: 6px 0 0; }

/* Install on the home screen */
.vcard.install { border-color: var(--accent); }
.vcard.install h2 { font-size: 1.1rem; }
.vcard.install .steps { margin: 8px 0 8px 20px; }
.howto { border: 1px solid var(--line, #dde3ea); border-radius: 8px; margin: 6px 0; padding: 0 10px; }
.howto summary { cursor: pointer; font-weight: 600; padding: 10px 0; min-height: 24px; }
.howto[open] summary { border-bottom: 1px solid var(--line, #dde3ea); }

/* Saved with no signal */
.vcard.pending { border: 2px dashed var(--warn); background: var(--warn-soft); }
.vcard.pending ul { margin: 6px 0 6px 20px; }

/* Client record tabs */
.tabbar { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 2px solid var(--line); margin: 8px 0 16px; }
.tabbar .tab { background: none; border: none; border-bottom: 3px solid transparent; margin-bottom: -2px; padding: 9px 12px; font: inherit; font-weight: 600; color: var(--mute); cursor: pointer; border-radius: 6px 6px 0 0; }
.tabbar .tab:hover { color: var(--ink); background: var(--brand-soft); }
.tabbar .tab.on { color: var(--brand); border-bottom-color: var(--brand); }
.tabbar .count { display: inline-block; min-width: 18px; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: var(--line); color: var(--text); font-size: .75rem; }
.alertstrip { background: var(--bad-soft); border: 1px solid #f3c1bb; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.alertstrip .badge { white-space: normal; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px 16px; margin-top: 6px; }
table.adl select, table.adl input { min-width: 150px; }
table.adl tr.group td { background: var(--bg); font-weight: 700; color: var(--ink); }
.stat .big { font-size: 1.6rem; font-weight: 700; color: var(--ink); }
/* ---------- Client calendar ---------- */
/* Caregiver colors: strong enough for the bar and avatar, softened for backgrounds. */
.cg0 { --cg: #2563eb; } .cg1 { --cg: #ea580c; } .cg2 { --cg: #7c3aed; } .cg3 { --cg: #0d9488; }
.cg4 { --cg: #db2777; } .cg5 { --cg: #4d7c0f; } .cg6 { --cg: #b45309; } .cg7 { --cg: #0e7490; }
.kc { --kc-line: #e6eaf0; padding-bottom: 14px; }
.kc-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.kc-title { display: flex; align-items: baseline; gap: 10px; }
.kc-title h2 { margin: 0; font-size: 1.35rem; letter-spacing: -.01em; }
.seg { display: inline-flex; }
.seg .btn { border-radius: 0; }
.seg .btn:first-child { border-radius: 8px 0 0 8px; }
.seg .btn:last-child { border-radius: 0 8px 8px 0; margin-left: -1px; }

/* Summary tiles */
.kc-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.kc-tile { border-radius: 12px; padding: 10px 14px; background: var(--bg); border: 1px solid var(--kc-line); position: relative; overflow: hidden; }
.kc-tile::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--tc, var(--brand)); }
.kc-tv { font-size: 1.45rem; font-weight: 700; color: var(--ink); line-height: 1.2; }
.kc-tl2 { font-size: .85rem; color: var(--text); font-weight: 600; }
.kc-ts { font-size: .78rem; color: var(--mute); }
.t-brand { --tc: var(--brand); } .t-info { --tc: #2563eb; } .t-ok { --tc: var(--ok); } .t-bad { --tc: var(--bad); } .t-mute { --tc: #9aa4b2; }

/* Month grid */
.kc-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.kc-head { text-align: center; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); padding: 2px 0 4px; }
.kc-head.wknd { color: #8a94a6; }
.kc-day { position: relative; min-height: 112px; padding: 6px 6px 10px; border-radius: 12px; background: var(--card); border: 1px solid var(--kc-line);
  display: flex; flex-direction: column; gap: 3px; transition: box-shadow .15s, border-color .15s; }
.kc-day:hover { border-color: #c9d3e0; box-shadow: 0 4px 14px rgba(16, 24, 40, .08); }
.kc-day.blank { background: none; border: none; box-shadow: none; }
.kc-day.wknd { background: #fafbfd; }
.kc-day.past { background: #f7f8fa; }
.kc-day.past .kc-chip { opacity: .9; }
.kc-day.today { border: 2px solid var(--brand); padding: 5px 5px 9px; background: linear-gradient(180deg, var(--brand-soft), #fff 40%); }
.kc-top { display: flex; align-items: center; gap: 6px; }
.kc-num { font-size: .85rem; font-weight: 700; color: var(--ink); min-width: 24px; height: 24px; display: inline-grid; place-items: center; border-radius: 999px; }
.today .kc-num { background: var(--brand); color: #fff; }
.past .kc-num { color: var(--mute); }
.kc-hrs { font-size: .7rem; font-weight: 700; color: var(--brand); background: var(--brand-soft); border-radius: 999px; padding: 1px 7px; }
.kc-add { margin-left: auto; border: 1px solid var(--kc-line); background: #fff; color: var(--brand); border-radius: 8px; width: 24px; height: 24px; line-height: 20px;
  padding: 0; font: inherit; font-weight: 700; cursor: pointer; opacity: 0; transition: opacity .15s; }
.kc-day:hover .kc-add, .kc-whead:hover .kc-add, .kc-lday .kc-add, .kc-add:focus-visible { opacity: 1; }
@media (hover: none) { .kc-add { opacity: 1; } }
.kc-load { position: absolute; left: 8px; right: 8px; bottom: 4px; height: 3px; border-radius: 3px; background: #eef1f5; overflow: hidden; }
.kc-load span { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #60a5fa, var(--brand)); }
.kc-more { border: none; background: none; color: var(--brand); font: inherit; font-size: .75rem; font-weight: 600; text-align: left; padding: 0 2px; cursor: pointer; }

/* Visit chip (month) and block (week): caregiver color, status style */
.kc-chip, .kc-block { --soft: color-mix(in srgb, var(--cg) 13%, #fff); --deep: color-mix(in srgb, var(--cg) 78%, #000);
  font: inherit; text-align: left; cursor: pointer; color: var(--deep); background: var(--soft); border: 1px solid color-mix(in srgb, var(--cg) 28%, #fff);
  border-left: 4px solid var(--cg); border-radius: 8px; transition: transform .12s, box-shadow .12s, opacity .15s; }
.kc-chip:hover, .kc-block:hover { transform: translateY(-1px); box-shadow: 0 4px 10px color-mix(in srgb, var(--cg) 25%, transparent); }
.kc-chip:focus-visible, .kc-block:focus-visible { outline: 2px solid var(--cg); outline-offset: 2px; }
.kc-chip { display: flex; align-items: center; gap: 4px; width: 100%; padding: 2px 6px 2px 3px; font-size: .74rem; white-space: nowrap; overflow: hidden; }
.kc-t { font-weight: 700; }
.kc-n { overflow: hidden; text-overflow: ellipsis; }
.kc-mk { margin-left: auto; font-weight: 800; }
.kc-av { flex: none; width: 18px; height: 18px; border-radius: 999px; background: var(--cg); color: #fff; font-size: .58rem; font-weight: 800; display: inline-grid; place-items: center; letter-spacing: .02em; }
.kc-flag { flex: none; width: 14px; height: 14px; border-radius: 999px; background: #f59e0b; color: #fff; font-size: .62rem; font-weight: 800; display: inline-grid; place-items: center; }
/* Scheduled: light and outlined. Checked in: glowing. Done: filled. Missed: red stripes. Cancelled: faded. */
.kc-chip.scheduled, .kc-block.scheduled { background: #fff; border-style: dashed; border-left-style: solid; }
.kc-chip.completed, .kc-block.completed { background: color-mix(in srgb, var(--cg) 20%, #fff); }
.kc-chip.in_progress, .kc-block.in_progress { background: color-mix(in srgb, var(--cg) 24%, #fff); animation: kc-pulse 2s ease-in-out infinite; }
.kc-chip.missed, .kc-block.missed { --cg: var(--bad); color: var(--bad); border-color: #f3b6af; border-left-color: var(--bad);
  background: repeating-linear-gradient(135deg, #fdecea 0 6px, #fff 6px 12px); }
.kc-chip.cancelled, .kc-block.cancelled { opacity: .5; text-decoration: line-through; background: #f3f4f6; border-color: #e5e7eb; border-left-color: #9ca3af; color: #6b7280; }
.kc-chip.cancelled .kc-av, .kc-block.cancelled .kc-av { background: #9ca3af; }
@keyframes kc-pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--cg) 45%, transparent); } 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--cg) 0%, transparent); } }
@media (prefers-reduced-motion: reduce) { .kc-chip.in_progress, .kc-block.in_progress { animation: none; } .kc-chip, .kc-block { transition: none; } }
.dim { opacity: .22 !important; filter: saturate(.3); }

/* Week time grid */
.kc-week { display: grid; grid-template-columns: 52px repeat(7, minmax(0, 1fr)); gap: 0 6px; }
.kc-whead { height: 52px; display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 10px; }
.kc-whead.today { background: var(--brand-soft); }
.kc-whead.today .kc-num { background: var(--brand); color: #fff; }
.kc-dow { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); }
.kc-times { position: relative; }
.kc-tl { position: absolute; right: 6px; transform: translateY(-50%); font-size: .7rem; color: var(--mute); white-space: nowrap; }
.kc-col { position: relative; border-radius: 10px; background: var(--card); border: 1px solid var(--kc-line);
  background-image: repeating-linear-gradient(180deg, transparent 0 43px, #eef1f5 43px 44px); }
.kc-col.wknd { background-color: #fafbfd; }
.kc-col.past { background-color: #f7f8fa; }
.kc-col.today { border: 2px solid var(--brand); }
.kc-hline { display: none; }
.kc-block { position: absolute; padding: 4px 6px; font-size: .74rem; overflow: hidden; display: flex; flex-direction: column; gap: 1px; line-height: 1.25; }
.kc-block .kc-bt { display: flex; align-items: center; gap: 4px; }
.kc-block .kc-svc { opacity: .8; font-size: .7rem; }
.kc-block.inline { position: static; width: 100%; margin-top: 6px; }
.kc-now { position: absolute; left: -4px; right: 0; height: 2px; background: #ef4444; z-index: 2; }
.kc-now::before { content: ""; position: absolute; left: 0; top: -4px; width: 10px; height: 10px; border-radius: 999px; background: #ef4444; }
.kc-wlist { display: none; }
.kc-lday { border: 1px solid var(--kc-line); border-radius: 12px; padding: 8px 10px; margin-bottom: 8px; background: var(--card); }
.kc-lday.today { border: 2px solid var(--brand); }

/* Legend */
.kc-empty { margin: 10px 0 0; }
.kc-legend { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--kc-line); display: grid; gap: 8px; }
.kc-lrow { display: flex; align-items: baseline; gap: 10px; }
.kc-share { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: #eef1f5; }
.kc-share span { background: var(--cg); transition: opacity .15s; }
.kc-share span + span { border-left: 2px solid #fff; }
.kc-keys { display: flex; flex-wrap: wrap; gap: 6px; }
.kc-key { display: inline-flex; align-items: center; gap: 6px; border: 1px solid color-mix(in srgb, var(--cg) 35%, #fff); background: color-mix(in srgb, var(--cg) 9%, #fff);
  color: var(--ink); border-radius: 999px; padding: 3px 10px 3px 3px; font: inherit; font-size: .85rem; cursor: pointer; }
.kc-key.on { background: var(--cg); color: #fff; border-color: var(--cg); }
.kc-key.on .kc-av { background: #fff; color: var(--cg); }
.kc-key.on .muted { color: rgba(255, 255, 255, .85); }
.kc-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: .82rem; }
.kc-sw { display: inline-flex; align-items: center; gap: 5px; color: var(--text); }
.kc-sw i { width: 18px; height: 12px; border-radius: 4px; border: 1px solid #9db4d8; border-left: 4px solid #2563eb; background: #fff; }
.kc-sw.scheduled i { border-style: dashed; border-left-style: solid; }
.kc-sw.in_progress i { background: #c9d9fb; }
.kc-sw.completed i { background: #d5e2fc; }
.kc-sw.missed i { border-color: #f3b6af; border-left-color: var(--bad); background: repeating-linear-gradient(135deg, #fdecea 0 3px, #fff 3px 6px); }
.kc-sw.cancelled i { background: #f3f4f6; border-color: #e5e7eb; border-left-color: #9ca3af; opacity: .7; }

/* Authorized hours meters */
.kc-mcell { min-width: 180px; }
.kc-meter { height: 8px; border-radius: 999px; background: #eef1f5; overflow: hidden; margin: 4px 0 3px; }
.kc-meter span { display: block; height: 100%; border-radius: 999px; }
.kc-meter.info span { background: linear-gradient(90deg, #93c5fd, #2563eb); }
.kc-meter.ok span { background: linear-gradient(90deg, #86efac, var(--ok)); }
.kc-meter.bad span { background: linear-gradient(90deg, #fca5a5, var(--bad)); }

@media (max-width: 800px) {
  .kc-week { display: none; }
  .kc-wlist { display: block; }
  .kc-month { gap: 3px; }
  .kc-day { min-height: 74px; padding: 4px 3px 8px; border-radius: 8px; }
  .kc-day.today { padding: 3px 2px 7px; }
  .kc-hrs, .kc-n, .kc-mk, .kc-flag { display: none; }
  .kc-chip { padding: 1px 2px; gap: 2px; font-size: .62rem; border-left-width: 3px; }
  .kc-av { width: 15px; height: 15px; font-size: .5rem; }
  .kc-head { font-size: .65rem; letter-spacing: .02em; }
}
@media print {
  .tabbar, .alertstrip, .kc-add, .kc-legend .linkish { display: none !important; }
  .kc-day, .kc-col { break-inside: avoid; box-shadow: none; }
  .kc-chip, .kc-block { animation: none; box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media (max-width: 600px) { .tabbar .tab { padding: 8px; } }
.vcard .safety { background: var(--bad-soft); color: var(--ink); border-radius: 8px; padding: 8px 10px; margin: 8px 0; }

/* Signatures at check-out */
.signs { border-top: 2px solid var(--line); margin-top: 12px; padding-top: 6px; }
.signs h3 { margin-top: 12px; }
.sigbox { border: 1px solid var(--line); border-radius: 10px; padding: 8px; background: #fff; margin: 6px 0 10px; }
.sighead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.sighead .btn { padding: 4px 10px; }
.sigpad { display: block; width: 100%; aspect-ratio: 3 / 1; height: auto; touch-action: none; background: #fff; border-bottom: 2px solid #9ca3af; cursor: crosshair; }
.sigline { font-size: .75rem; color: var(--mute); margin-top: 2px; }
.sigwho { gap: 6px; } .sigwho .btn { flex: 1 1 140px; padding: 10px; }
.signs label { display: block; margin: 8px 0; }
.signs input, .signs select, .signs textarea { width: 100%; }
.sigpair { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.sigimg { display: block; width: 100%; max-width: 300px; background: #fff; border: 1px solid var(--line); border-radius: 8px; margin-top: 4px; }

/* EVV location: far-from-home question on the phone, and the office's visit map */
.warnbox label { display: block; margin-top: 8px; color: var(--ink); }
.warnbox select, .warnbox input { width: 100%; margin-top: 4px; }
.geo-find { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mapwrap { max-width: 420px; }
.mapwrap svg { width: 100%; height: auto; display: block; }
.mapbg { fill: #eef3f7; stroke: var(--line); }
.fence { fill: rgba(31, 157, 138, .12); stroke: #1f9d8a; stroke-dasharray: 4 3; }
.acc { stroke: none; opacity: .18; } .acc.in { fill: #2f6fdb; } .acc.out { fill: #d9822b; }
.pin { stroke: #fff; stroke-width: 2; } .pin.home { fill: #374151; } .pin.in { fill: #2f6fdb; } .pin.out { fill: #d9822b; }
.lbl { font: 600 12px system-ui, sans-serif; fill: #1f2937; } .lbl.small { font-size: 10px; font-weight: 500; }
.scale { stroke: #1f2937; stroke-width: 2; }
.maplist { margin: 6px 0 0 18px; }

/* Care plan task picker */
.pickgroup { border-top: 1px solid var(--line); padding-top: 6px; margin-top: 10px; }
.pickrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.pickrow .check { flex: 1 1 260px; }
.pickrow .days { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.daychip { display: inline-flex; align-items: center; gap: 3px; border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; font-size: .85rem; }
.linkish { background: none; border: none; color: var(--brand); font: inherit; font-size: .9rem; cursor: pointer; padding: 2px 4px; }
.linkish:disabled { color: var(--mute); cursor: default; }

/* Caregiver phone: breaks, mileage and expenses */
.breakbar { display: flex; gap: 10px; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 10px 0; background: var(--card); }
.breakbar.on { border-color: var(--warn); background: var(--warn-soft); }
.breakbar .breakinfo { flex: 1; min-width: 0; }
.breakbar .btn { flex: none; }
.howto.costs { margin: 12px 0; }
.costrow { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.costrow:last-of-type { border-bottom: 0; }
.costact { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.costform { display: grid; gap: 8px; padding: 8px 0 4px; }
.costform label { display: grid; gap: 4px; font-weight: 600; font-size: .92rem; }
.howto.costs > .row, .howto.costs > p { margin: 8px 0; }

/* Today dashboard */
.dtiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.dtile { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow);
  position: relative; overflow: hidden; }
.dtile::after { content: ""; position: absolute; inset: auto -30px -30px auto; width: 90px; height: 90px; border-radius: 50%; background: color-mix(in srgb, var(--ic) 10%, transparent); }
.dtile-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; color: #fff;
  background: linear-gradient(145deg, var(--ic), color-mix(in srgb, var(--ic) 65%, #000)); box-shadow: 0 6px 14px color-mix(in srgb, var(--ic) 35%, transparent); }
.dtile-ic .ico { width: 20px; height: 20px; }
.dtile-body { min-width: 0; flex: 1; position: relative; z-index: 1; }
.dtile b { display: block; font-size: 1.55rem; line-height: 1.1; color: var(--ink); }
.dtile span { font-size: .85rem; color: var(--mute); }
.dtile.alert { border-color: var(--bad); background: linear-gradient(180deg, var(--bad-soft), var(--card) 70%); }
.dtile.alert b { color: var(--bad); }
.dbar { height: 6px; border-radius: 3px; background: var(--line); margin-top: 6px; overflow: hidden; }
.dbar span { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #fbbf24, var(--accent)); }
.dgrid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.dgrid > .card { margin-bottom: 16px; }
.dgrid > .card:only-child { grid-column: 1 / -1; }
.card.live h2 { display: flex; align-items: center; gap: 10px; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: livepulse 1.8s infinite; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); } 70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.livelist { display: grid; gap: 8px; }
.liverow { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--lc, var(--line)); border-radius: 10px; padding: 10px 12px; transition: background .15s, transform .15s; }
.liverow:hover { background: var(--brand-soft); transform: translateX(2px); }
.liverow.static { cursor: default; } .liverow.static:hover { background: var(--card); transform: none; }
.liverow.s-late { --lc: var(--bad); } .liverow.s-with { --lc: #22c55e; } .liverow.s-break { --lc: #f59e0b; } .liverow.s-next { --lc: #3b82f6; }
.livemain { flex: 1; min-width: 0; }
.livewhen { display: block; }
.avatar.sm { width: 34px; height: 34px; font-size: .8rem; box-shadow: none; background: linear-gradient(145deg, var(--lc, var(--brand)), color-mix(in srgb, var(--lc, var(--brand)) 60%, #000)); }
.wstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.wstat { background: var(--bg); border-radius: 10px; padding: 8px 10px; }
.wstat b { display: block; font-size: 1.25rem; color: var(--ink); }
.wstat span { font-size: .78rem; color: var(--mute); }
.wstat.warn b { color: var(--warn); } .wstat.bad b { color: var(--bad); }
.wchart svg { width: 100%; height: auto; display: block; }
.wchart .axis { stroke: var(--line); }
.wchart .sch { fill: #dbe7f6; } .wchart .sch.cur { fill: #fde3c8; }
.wchart .done { fill: var(--brand); } .wchart .done.cur { fill: var(--accent); }
.wchart g:hover .sch { fill: #c7daf2; }
.wchart .lbl { font-size: 9px; fill: var(--mute); } .wchart .lbl.cur { fill: var(--accent); font-weight: 700; }
.wkey { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.wkey .k { width: 12px; height: 12px; border-radius: 3px; display: inline-block; } .wkey .k.sch { background: #dbe7f6; } .wkey .k.done { background: var(--brand); margin-left: 8px; }
.uplist { display: grid; gap: 6px; margin-bottom: 8px; }
.uprow { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--text); text-decoration: none; border: 1px solid var(--line); }
.uprow:hover { background: var(--brand-soft); }
.upicon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; color: var(--ic); background: color-mix(in srgb, var(--ic) 14%, transparent); }
.upicon .ico { width: 17px; height: 17px; }
.upmain { flex: 1; min-width: 0; } .upmain .small { display: block; }
.card.replace { border-left: 4px solid var(--bad); }
.mgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mbox { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; background: var(--bg); }
.mbox b { display: block; font-size: 1.3rem; color: var(--ink); }
.mbox span { display: block; font-size: .85rem; color: var(--mute); }
@media (max-width: 1100px) { .dtiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } .mgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .dgrid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .dtiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wstats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mgrid { grid-template-columns: minmax(0, 1fr); }
  .liverow .badge { display: none; } .replace .liverow { flex-wrap: wrap; } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } .liverow { transition: none; } .liverow:hover { transform: none; } }

/* Visit check */
.ic-verify { --ic: #60a5fa; }
.pipe { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: 6px 0 16px; }
.pipestep { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; font: inherit; color: var(--text); cursor: pointer;
  background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--pc); border-radius: 12px; padding: 12px; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.pipestep:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(16,24,40,.10); }
.pipestep.on { background: color-mix(in srgb, var(--pc) 9%, var(--card)); box-shadow: 0 0 0 2px var(--pc), 0 8px 20px rgba(16,24,40,.10); }
.pipestep b { font-size: 1.6rem; line-height: 1.1; color: var(--ink); }
.pipestep > span:not(.pipe-ic):not(.pipe-arrow) { font-size: .85rem; color: var(--mute); font-weight: 600; }
.pipe-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; margin-bottom: 4px;
  background: linear-gradient(145deg, var(--pc), color-mix(in srgb, var(--pc) 65%, #000)); }
.pipe-ic .ico { width: 17px; height: 17px; }
.pipe-arrow { position: absolute; right: -11px; top: 50%; transform: translateY(-50%); z-index: 1; width: 14px; text-align: center; color: var(--mute); font-size: 1.3rem; font-weight: 700; }
.p-bad { --pc: #dc2626; } .p-info { --pc: #2563eb; } .p-mute { --pc: #64748b; } .p-ok { --pc: #16a34a; } .p-brand { --pc: #4f46e5; }
.reviewgrid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.card.mini h3 { margin: 0 0 6px; font-size: 1rem; }
.card.mini p { margin: 0 0 10px; }
.card.mini.warnc { border-left: 4px solid var(--accent); }
ul.issues { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 3px; }
ul.issues li { font-size: .88rem; padding-left: 18px; position: relative; }
ul.issues li::before { content: ""; position: absolute; left: 4px; top: .5em; width: 7px; height: 7px; border-radius: 50%; }
ul.issues li.block::before { background: var(--bad); } ul.issues li.warn::before { background: #f59e0b; }
ul.issues li.block { color: var(--bad); font-weight: 600; }
div.issues { margin-bottom: 4px; font-size: .88rem; }
label.inline { display: flex; align-items: center; gap: 6px; font-weight: 600; }
@media (max-width: 1100px) { .pipe { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pipe-arrow { display: none; } .reviewgrid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .pipe { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .pipestep { transition: none; } .pipestep:hover { transform: none; } }

/* ---------- agencies: sign-up, subscription, getting started ---------- */
.center { text-align: center; }
.auth .card:has(.planpick) { max-width: 560px; }
.planpick { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: 4px 0 16px; }
.plan { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; background: var(--bg); }
.plan b { color: var(--ink); }
.plan .price { font-size: 1.3rem; font-weight: 700; color: var(--brand); }
.plan .price small { font-size: .8rem; font-weight: 400; color: var(--mute); }
.plan.on { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 2px var(--brand-soft); }
.baa { background: var(--info-soft); border-radius: 10px; padding: 10px 12px; margin-top: 4px; }
.baa label.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; color: var(--ink); }
.baa input[type=checkbox] { margin-top: 4px; }
.mainwrap { min-width: 0; display: flex; flex-direction: column; }
.subbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 10px 24px;
  background: var(--info-soft); color: var(--info); border-bottom: 1px solid var(--line); font-weight: 600; }
.subbar.warn { background: var(--warn-soft); color: var(--warn); }
.subbar.bad { background: var(--bad-soft); color: var(--bad); }
.phone .subbar { padding: 10px 14px; margin: 0 0 8px; border-radius: 10px; }
.setupnudge { display: grid; gap: 4px; text-decoration: none; color: inherit; border-left: 4px solid var(--accent); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.steps li { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.steps li.done { background: var(--ok-soft); border-color: #bfe3cc; }
.steps .tick { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--line); color: var(--mute); }
.steps li.done .tick { background: var(--ok); color: #fff; }
.steps .what { flex: 1; min-width: 0; }
.steps .what b { display: block; color: var(--ink); }
.plans3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.plans3 .plan { background: var(--card); padding: 16px; gap: 6px; }
.plans3 .plan .btn { margin-top: 8px; }
.meter { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.meter.full span { background: var(--bad); }
/* owner console */
.owner main { max-width: 1280px; margin: 0 auto; padding: 20px 16px 40px; }
.ownerbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 20px; color: #dbe6f5;
  background: linear-gradient(90deg, #0e2a50 0%, #133a69 60%, #17457a 100%); }
.ownerbar strong { color: #fff; }
.ownerlogo { width: 32px; height: 32px; }
