/* Sanabot — système de design commun */
:root {
  --navy: #1e3a8a; --navy-2: #1e40af; --green: #047857; --green-2: #059669; --green-soft: #ecfdf5;
  --gold: #eab308; --ink: #0f172a; --ink-2: #334155; --muted: #64748b; --line: #e2e8f0; --bg: #f1f5f9; --card: #fff;
  --urgent: #b91c1c; --urgent-bg: #fef2f2; --alerte: #c2410c; --alerte-bg: #fff7ed; --attention: #a16207; --attention-bg: #fefce8;
  --info: #1d4ed8; --info-bg: #eff6ff; --normal: #047857; --normal-bg: #ecfdf5;
  --radius: 14px; --shadow: 0 1px 2px rgba(15,23,42,.06), 0 4px 16px rgba(15,23,42,.06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Ubuntu, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: var(--navy-2); }
h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.25; }
h1 { font-size: 1.5rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1.05rem; }
p { margin: 0 0 .75rem; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .tiny { font-size: .75rem; }
.hidden { display: none !important; }
.row { display: flex; gap: .75rem; align-items: center; } .row.wrap { flex-wrap: wrap; } .row.between { justify-content: space-between; }
.col { display: flex; flex-direction: column; gap: .75rem; }
.grow { flex: 1; min-width: 0; }
.grid { display: grid; gap: .75rem; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.grid.tiles { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.center { text-align: center; }
.mt { margin-top: 1rem; } .mb { margin-bottom: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Barre d'application */
.appbar { position: sticky; top: 0; z-index: 20; background: var(--navy); color: #fff; padding: .7rem 1rem; display: flex; align-items: center; gap: .75rem; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.appbar .title { font-weight: 700; font-size: 1.05rem; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appbar .sub { font-weight: 400; opacity: .8; font-size: .8rem; display: block; }
.appbar button, .appbar a { color: #fff; background: transparent; border: 0; font-size: 1.25rem; padding: .25rem .4rem; border-radius: 8px; cursor: pointer; text-decoration: none; position: relative; }
.appbar button:hover { background: rgba(255,255,255,.12); }
.badge-dot { position: absolute; top: -2px; right: -2px; background: var(--gold); color: var(--ink); font-size: .65rem; font-weight: 700; border-radius: 99px; padding: 0 .35rem; min-width: 1.1rem; text-align: center; }
.netbar { font-size: .8rem; padding: .35rem 1rem; text-align: center; background: var(--attention-bg); color: var(--attention); border-bottom: 1px solid #fde68a; }
.netbar.ok { background: var(--green-soft); color: var(--green); border-color: #a7f3d0; }
.demobar { font-size: .78rem; padding: .3rem 1rem; text-align: center; background: #fef9c3; color: #713f12; }

main.page { max-width: 880px; margin: 0 auto; padding: 1rem 1rem 6rem; }
main.page.wide { max-width: 1280px; }

/* Cartes */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem; border: 1px solid rgba(226,232,240,.7); }
.card + .card { margin-top: .75rem; }
.card.flat { box-shadow: none; }
.card h3 { margin-bottom: .35rem; }
.card.link { cursor: pointer; transition: transform .08s, box-shadow .12s; display: block; color: inherit; text-decoration: none; }
.card.link:hover { box-shadow: 0 6px 20px rgba(15,23,42,.1); }
.card.link:active { transform: scale(.99); }
.hero { background: linear-gradient(135deg, var(--green) 0%, #065f46 55%, #a16207 130%); color: #fff; border-radius: 18px; padding: 1.25rem; }
.hero h1, .hero h2 { color: #fff; }
.tile { background: var(--card); border-radius: var(--radius); padding: .9rem; box-shadow: var(--shadow); border: 1px solid var(--line); text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: .35rem; font: inherit; color: inherit; text-decoration: none; }
.tile .ico { font-size: 1.6rem; }
.tile b { font-size: .95rem; }
.tile:hover { border-color: var(--green-2); }
.kpi { background: var(--card); border-radius: var(--radius); padding: .9rem 1rem; box-shadow: var(--shadow); border: 1px solid var(--line); }
.kpi .v { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.kpi .l { color: var(--muted); font-size: .82rem; }
.kpi .d { font-size: .78rem; font-weight: 600; }
.kpi.urgent { border-left: 4px solid var(--urgent); } .kpi.alerte { border-left: 4px solid var(--alerte); } .kpi.ok { border-left: 4px solid var(--green); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-weight: 600; padding: .7rem 1rem; border-radius: 12px; cursor: pointer; min-height: 46px; text-decoration: none; }
.btn:hover { border-color: #94a3b8; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn.primary:hover { background: #065f46; }
.btn.navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.danger { background: var(--urgent); border-color: var(--urgent); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--navy-2); }
.btn.small { min-height: 36px; padding: .4rem .7rem; font-size: .88rem; border-radius: 10px; }
.btn.block { width: 100%; }
.btn.big { min-height: 58px; font-size: 1.05rem; }
.btn-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.sticky-actions { position: fixed; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-top: 1px solid var(--line); padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom)); z-index: 15; }
.sticky-actions .inner { max-width: 880px; margin: 0 auto; display: flex; gap: .5rem; }

/* Niveaux */
.lvl { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; font-weight: 700; padding: .18rem .55rem; border-radius: 99px; white-space: nowrap; }
.lvl.urgent { background: var(--urgent-bg); color: var(--urgent); } .lvl.alerte { background: var(--alerte-bg); color: var(--alerte); }
.lvl.attention { background: var(--attention-bg); color: var(--attention); } .lvl.info { background: var(--info-bg); color: var(--info); }
.lvl.normal { background: var(--normal-bg); color: var(--normal); }
.chip { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .6rem; border-radius: 99px; background: #f1f5f9; color: var(--ink-2); font-size: .8rem; font-weight: 600; }
.chip.green { background: var(--green-soft); color: var(--green); } .chip.navy { background: #e0e7ff; color: var(--navy); } .chip.gold { background: #fef3c7; color: #92400e; } .chip.red { background: var(--urgent-bg); color: var(--urgent); }
.result { border-radius: 16px; padding: 1.1rem; border: 2px solid; }
.result.urgent { border-color: var(--urgent); background: var(--urgent-bg); } .result.alerte { border-color: var(--alerte); background: var(--alerte-bg); }
.result.attention { border-color: #eab308; background: var(--attention-bg); } .result.info { border-color: #93c5fd; background: var(--info-bg); } .result.normal { border-color: #6ee7b7; background: var(--normal-bg); }
.result .cls { font-size: 1.25rem; font-weight: 800; }

/* Formulaires */
label.lbl, .lbl { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .95rem; }
.req::after { content: " *"; color: var(--urgent); }
.help { font-size: .8rem; color: var(--muted); margin-top: .25rem; }
input:not([type]), input[type=text], input[type=number], input[type=tel], input[type=date], input[type=password], input[type=search], input[type=email], input[type=time], select, textarea {
  width: 100%; font: inherit; padding: .7rem .8rem; border: 1px solid #cbd5e1; border-radius: 12px; background: #fff; color: var(--ink); min-height: 46px; }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, .opt:focus-visible { outline: 3px solid rgba(5,150,105,.35); border-color: var(--green-2); }
.field { margin-bottom: 1rem; }
.field.error input, .field.error select, .field.error .opts { border-color: var(--urgent) !important; }
.field .err { color: var(--urgent); font-size: .82rem; margin-top: .25rem; display: none; }
.field.error .err { display: block; }
.input-unit { display: flex; align-items: stretch; }
.input-unit input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-unit span { display: flex; align-items: center; padding: 0 .8rem; border: 1px solid #cbd5e1; border-left: 0; border-radius: 0 12px 12px 0; background: #f8fafc; color: var(--muted); font-size: .9rem; }
.opts { display: flex; flex-wrap: wrap; gap: .45rem; border: 1px solid transparent; border-radius: 12px; }
.opt { border: 1.5px solid #cbd5e1; background: #fff; border-radius: 12px; padding: .6rem .85rem; font: inherit; font-size: .93rem; cursor: pointer; min-height: 44px; text-align: left; color: var(--ink); }
.opt.on { border-color: var(--green); background: var(--green-soft); color: #064e3b; font-weight: 700; }
.opt.yes.on { border-color: var(--urgent); background: var(--urgent-bg); color: var(--urgent); }
.opts.yn .opt { flex: 1; text-align: center; font-weight: 700; }
.opts.scale .opt { min-width: 42px; text-align: center; padding: .55rem .3rem; flex: 1; }
.form-section { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--navy); font-weight: 800; margin: 1.5rem 0 .75rem; padding-bottom: .35rem; border-bottom: 2px solid #e0e7ff; }
.callout { background: var(--info-bg); color: #1e3a8a; border-radius: 12px; padding: .75rem .9rem; font-size: .92rem; margin-bottom: 1rem; }
.callout.warn { background: var(--alerte-bg); color: #7c2d12; } .callout.danger { background: var(--urgent-bg); color: #7f1d1d; } .callout.ok { background: var(--green-soft); color: #064e3b; }
.score-box { background: #f8fafc; border: 1px dashed #94a3b8; border-radius: 12px; padding: .7rem .9rem; font-weight: 700; }
.photo-prev { max-width: 160px; border-radius: 10px; margin-top: .5rem; display: block; }

/* Listes */
.list { display: flex; flex-direction: column; }
.item { display: flex; gap: .75rem; align-items: center; padding: .8rem .2rem; border-bottom: 1px solid var(--line); cursor: pointer; color: inherit; text-decoration: none; }
.item:last-child { border-bottom: 0; }
.item .ico { font-size: 1.4rem; width: 2rem; text-align: center; flex-shrink: 0; }
.item .t { font-weight: 600; }
.item .s { font-size: .82rem; color: var(--muted); }
.timeline { position: relative; padding-left: 1.4rem; }
.timeline::before { content: ""; position: absolute; left: .45rem; top: .3rem; bottom: .3rem; width: 2px; background: var(--line); }
.tl { position: relative; padding-bottom: .9rem; }
.tl::before { content: ""; position: absolute; left: -1.15rem; top: .35rem; width: .7rem; height: .7rem; border-radius: 50%; background: var(--green-2); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--green-2); }
.tl.urgent::before { background: var(--urgent); box-shadow: 0 0 0 1px var(--urgent); }
.tl .when { font-size: .75rem; color: var(--muted); }

/* Onglets */
.tabs { display: flex; gap: .25rem; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 1rem; scrollbar-width: none; }
.tabs button { background: none; border: 0; font: inherit; font-weight: 600; color: var(--muted); padding: .7rem .9rem; border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs button.on { color: var(--green); border-bottom-color: var(--green); }

/* Navigation basse */
.bottomnav { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--line); display: flex; justify-content: space-around; padding: .35rem 0 calc(.35rem + env(safe-area-inset-bottom)); z-index: 14; }
.bottomnav a { flex: 1; text-align: center; color: var(--muted); text-decoration: none; font-size: .72rem; font-weight: 600; padding: .25rem 0; position: relative; }
.bottomnav a .i { display: block; font-size: 1.35rem; line-height: 1.2; }
.bottomnav a.on { color: var(--green); }

/* Tables */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.t th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: .55rem .6rem; border-bottom: 2px solid var(--line); white-space: nowrap; }
table.t td { padding: .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t tr.click { cursor: pointer; } table.t tr.click:hover td { background: #f8fafc; }

/* Toast & modale */
#toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: .5rem; align-items: center; pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: .7rem 1rem; border-radius: 12px; box-shadow: var(--shadow); font-size: .92rem; max-width: 90vw; animation: pop .2s ease-out; }
.toast.err { background: var(--urgent); } .toast.ok { background: var(--green); }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-bg { position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 90; display: flex; align-items: flex-end; justify-content: center; }
.modal { background: #fff; width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; border-radius: 20px 20px 0 0; padding: 1.25rem; animation: up .2s ease-out; }
@media (min-width: 700px) { .modal-bg { align-items: center; } .modal { border-radius: 20px; } }
@keyframes up { from { transform: translateY(30px); opacity: .5; } to { transform: none; opacity: 1; } }

/* SOS */
.sos-btn { width: 100%; border: 0; border-radius: 22px; padding: 1.1rem; background: linear-gradient(135deg, #dc2626, #991b1b); color: #fff; font: inherit; font-size: 1.35rem; font-weight: 900; letter-spacing: .04em; box-shadow: 0 8px 24px rgba(185,28,28,.35); cursor: pointer; position: relative; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.sos-btn small { display: block; font-size: .8rem; font-weight: 600; letter-spacing: 0; opacity: .9; }
.sos-btn .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(255,255,255,.25); }
.sos-ring { width: 140px; height: 140px; border-radius: 50%; background: var(--urgent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; font-weight: 900; margin: 1rem auto; animation: pulse 1.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(185,28,28,.5); } 70% { box-shadow: 0 0 0 26px rgba(185,28,28,0); } 100% { box-shadow: 0 0 0 0 rgba(185,28,28,0); } }
.steps { display: flex; gap: .3rem; }
.steps span { flex: 1; height: 6px; border-radius: 4px; background: var(--line); }
.steps span.on { background: var(--green); }

/* Graphiques simples */
.spark { width: 100%; height: 60px; }
.bar { height: 8px; border-radius: 6px; background: var(--line); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--green-2); }
.bar.red > i { background: var(--urgent); }
.map { height: 380px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #e2e8f0; }

.empty { text-align: center; color: var(--muted); padding: 2rem 1rem; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; margin: 2rem auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.article-body { white-space: pre-line; font-size: 1.02rem; line-height: 1.6; }
.code-big { font-size: 2rem; font-weight: 800; letter-spacing: .3em; text-align: center; }
details.def { background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; padding: .7rem .9rem; margin-bottom: 1rem; }
details.def summary { font-weight: 700; cursor: pointer; color: var(--navy); }
details.def p { margin: .5rem 0 0; font-size: .9rem; }

/* Vignettes photos / preuves */
.thumbs { gap: .4rem; }
.thumb { position: relative; display: inline-block; width: 84px; height: 84px; border-radius: 10px; overflow: hidden; background: #e2e8f0; cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb button { position: absolute; top: 3px; right: 3px; background: rgba(15,23,42,.75); color: #fff; border: 0; border-radius: 50%; width: 22px; height: 22px; font-size: .75rem; cursor: pointer; }
.viewer { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 120; display: flex; align-items: center; justify-content: center; }
.viewer img { max-width: 96vw; max-height: 92vh; }
/* Messagerie */
.msg-wrap { display: flex; flex-direction: column; height: calc(100vh - 210px); min-height: 360px; }
.msg-list { flex: 1; overflow-y: auto; padding: .5rem; display: flex; flex-direction: column; gap: .45rem; }
.bubble { max-width: 82%; padding: .55rem .75rem; border-radius: 14px; background: #fff; border: 1px solid var(--line); align-self: flex-start; white-space: pre-wrap; word-wrap: break-word; }
.bubble.me { align-self: flex-end; background: #dcfce7; border-color: #bbf7d0; }
.bubble .who { font-size: .72rem; font-weight: 700; color: var(--navy-2); }
.bubble .at { font-size: .68rem; color: var(--muted); text-align: right; }
.msg-input { display: flex; gap: .4rem; align-items: flex-end; padding: .5rem; border-top: 1px solid var(--line); background: #fff; }
.msg-input textarea { min-height: 44px; max-height: 140px; }
.unread { background: var(--green); color: #fff; border-radius: 99px; font-size: .72rem; font-weight: 700; padding: .05rem .45rem; }

/* Sélecteur segmenté (périmètres d'accès) */
.seg{display:flex;gap:.4rem;flex-wrap:wrap}.seg .btn{flex:1}
.scope-chip{display:inline-flex;align-items:center;gap:.25rem}
.grid.four{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.8rem}@media(max-width:900px){.grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}}
label.item .t,label.item .s{display:block}label.item{align-items:flex-start}label.item input{margin-top:.35rem}

/* ---------- Phase 2 citoyen : profils, carnet, rendez-vous ---------- */
.who{display:flex;gap:.5rem;overflow-x:auto;padding-bottom:.25rem;scrollbar-width:none}.who::-webkit-scrollbar{display:none}
.who-b{display:flex;align-items:center;gap:.5rem;flex:0 0 auto;background:var(--card);border:1.5px solid var(--line);border-radius:999px;padding:.35rem .9rem .35rem .35rem;font:inherit;color:inherit;cursor:pointer;text-align:left;min-height:48px}
.who-b small{display:block;font-size:.72rem;color:var(--muted);line-height:1.1}.who-b b{font-size:.9rem;line-height:1.15}
.who-b.on{border-color:var(--navy);background:var(--info-bg)}.who-b.add{border-style:dashed}
.av{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;background:var(--navy);color:#fff;font-weight:700;flex:0 0 auto}
.who-b.add .av{background:var(--bg);color:var(--navy)}.av.lg{width:52px;height:52px;font-size:1.3rem}
.kv{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:.7rem}.kv>div{display:flex;flex-direction:column;gap:.1rem}
.days{display:flex;gap:.45rem;overflow-x:auto;padding:.1rem 0 .35rem;scrollbar-width:none}.days::-webkit-scrollbar{display:none}
.day{flex:0 0 64px;display:flex;flex-direction:column;align-items:center;padding:.45rem .2rem;border:1.5px solid var(--line);border-radius:12px;background:var(--card);font:inherit;color:inherit;cursor:pointer}
.day b{font-size:1.25rem}.day small{font-size:.72rem;color:var(--muted);text-transform:capitalize}.day.on{border-color:var(--navy);background:var(--navy);color:#fff}.day.on small{color:#dbeafe}
.slots{display:grid;grid-template-columns:repeat(auto-fill,minmax(82px,1fr));gap:.5rem}
.slot{min-height:46px;border:1.5px solid var(--navy);color:var(--navy);background:var(--info-bg);border-radius:10px;font:inherit;font-weight:700;cursor:pointer}.slot:hover,.slot:focus-visible{background:var(--navy);color:#fff}
.datebox{display:flex;flex-direction:column;align-items:center;justify-content:center;width:54px;min-width:54px;height:58px;border-radius:12px;background:var(--info-bg);color:var(--navy)}
.datebox b{font-size:1.35rem;line-height:1}.datebox small{text-transform:uppercase;font-size:.7rem;font-weight:700}
.appt-next{border-left:4px solid var(--green)}
details>summary::-webkit-details-marker{display:none}details[open] summary .ic[data-i="chevron-down"]{transform:rotate(180deg)}

/* ---------- Assistant santé ---------- */
.chat{display:flex;flex-direction:column;gap:.5rem;padding-bottom:.5rem}
.msg{display:flex}.msg .b{max-width:86%;padding:.6rem .85rem;border-radius:16px;background:var(--card);box-shadow:var(--shadow);line-height:1.4}
.msg.bot .b{border-bottom-left-radius:4px}.msg.me{justify-content:flex-end}.msg.me .b{background:var(--navy);color:#fff;border-bottom-right-radius:4px}
.msg.warn .b{background:var(--alerte-bg);color:var(--alerte)}.msg.urgent .b{background:var(--urgent-bg);color:var(--urgent);font-weight:600}.msg.small .b{font-size:.82rem;color:var(--muted);box-shadow:none;background:transparent;padding:.1rem .2rem}
.triage{width:100%;border-radius:16px;padding:.85rem 1rem;border:2px solid}.triage .ti{font-size:1.8rem;margin-right:.6rem}
.triage.urgent{background:var(--urgent-bg);border-color:var(--urgent);color:var(--urgent)}.triage.alerte{background:var(--alerte-bg);border-color:var(--alerte);color:var(--alerte)}
.triage.attention{background:var(--attention-bg);border-color:var(--attention);color:var(--attention)}.triage.normal{background:var(--normal-bg);border-color:var(--normal);color:var(--normal)}
.triage ul{color:var(--ink-2)}
.prompt{position:sticky;bottom:calc(64px + env(safe-area-inset-bottom));background:linear-gradient(to top,var(--bg) 85%,transparent);padding:.75rem 0 .5rem}
.chips{display:flex;flex-wrap:wrap;gap:.4rem}
.chipbtn{border:1.5px solid var(--navy);background:var(--card);color:var(--navy);border-radius:999px;padding:.5rem .85rem;font:inherit;font-weight:600;font-size:.9rem;cursor:pointer;min-height:42px}
.chipbtn.on{background:var(--navy);color:#fff}.chipbtn.danger{border-color:var(--urgent);background:var(--urgent);color:#fff}
.composer{display:flex;gap:.45rem}.composer input{flex:1}
.typing{display:flex;gap:.3rem;padding:.6rem}.typing span{width:8px;height:8px;border-radius:50%;background:var(--muted);animation:tp 1s infinite}.typing span:nth-child(2){animation-delay:.15s}.typing span:nth-child(3){animation-delay:.3s}
@keyframes tp{0%,80%,100%{opacity:.25}40%{opacity:1}}
.assist-card{display:flex;gap:.8rem;align-items:center;background:linear-gradient(135deg,var(--green),var(--green-2));color:#fff;border-radius:18px;padding:1rem 1.1rem;text-decoration:none;box-shadow:var(--shadow)}
.assist-card .ai{font-size:2.2rem}.assist-card b{font-size:1.1rem}.assist-card small{opacity:.9;display:block}
.bar>span{display:block;height:100%}.dot{display:inline-block;width:10px;height:10px;border-radius:50%;vertical-align:middle}.two-col{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:1rem;align-items:start}@media(max-width:1000px){.two-col{grid-template-columns:1fr}}
