:root{--accent: #1f6f50;--accent-ink: #165a40;--accent-soft: #e3f1ea;--accent-2: #2f9b70;--base: 16px;--bg: #f4f6f5;--card: #fff;--ink: #17201c;--muted: #5d6a64;--line: #e2e7e4;--warn: #a35a00;--warn-soft: #fff3df;--ok: #23784c;--ok-soft: #e4f4ea;--ko: #b3261e;--ko-soft: #fdeceb;--radius: 16px;--shadow: 0 1px 2px rgba(20, 40, 30, .06), 0 2px 10px rgba(20, 40, 30, .05);font-family:system-ui,-apple-system,Segoe UI,Roboto,Noto Sans,sans-serif;font-size:var(--base);line-height:1.45;color:var(--ink);background:var(--bg);-webkit-tap-highlight-color:transparent}*{box-sizing:border-box}body{margin:0;background:#dfe5e2}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}h1,h2,h3{margin:0;line-height:1.2}h1{font-size:1.6rem;letter-spacing:-.01em}.h3{font-size:1.15rem;display:block}.muted{color:var(--muted)}.small{font-size:.875rem}.tiny{font-size:.78rem}.grow{flex:1;min-width:0}.error{color:var(--ko);background:var(--ko-soft);padding:10px 12px;border-radius:12px;margin:0}.icon{flex:none}.phone{max-width:480px;margin:0 auto;min-height:100vh;background:var(--bg);position:relative;display:flex;flex-direction:column}@media (min-width: 560px){.phone{box-shadow:0 0 0 1px var(--line),0 10px 40px #00000014}}.page{padding:16px 16px 110px;display:flex;flex-direction:column;gap:18px}.topbar{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:8px;min-height:60px;padding:8px 12px 8px 16px;background:#fffffff0;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}.topbar-title{display:flex;flex-direction:column}.topbar-title strong{font-size:1.08rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topbar-title span{font-size:.8rem;color:var(--muted)}.icon-btn{width:44px;height:44px;border-radius:50%;border:0;background:transparent;display:grid;place-items:center;color:var(--ink);flex:none}.icon-btn:hover{background:var(--bg)}.me-btn{border:0;background:none;padding:0;border-radius:50%}.bottomnav{position:fixed;bottom:0;left:50%;transform:translate(-50%);width:100%;max-width:480px;z-index:6;display:flex;background:#fff;border-top:1px solid var(--line);padding:6px 4px calc(6px + env(safe-area-inset-bottom))}.bottomnav button{flex:1;border:0;background:none;display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 2px;min-height:54px;color:var(--muted);font-size:.74rem;font-weight:600;border-radius:12px;position:relative}.bottomnav button[aria-current]{color:var(--accent)}.bottomnav button[aria-current] .icon{background:var(--accent-soft);border-radius:14px;padding:3px 14px;width:52px;height:30px}.bottomnav button:not([aria-current]) .icon{padding:3px 0;height:30px;width:30px}.dot-badge{position:absolute;top:2px;left:calc(50% + 8px);background:var(--ko);color:#fff;font-style:normal;font-size:.68rem;min-width:18px;height:18px;border-radius:9px;display:grid;place-items:center;padding:0 4px}.section{display:flex;flex-direction:column;gap:10px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.section h2{font-size:.8rem;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:700}.hint{margin:-4px 0 0}.label{font-size:.8rem;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}.card{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);padding:14px 16px;display:flex;flex-direction:column;gap:6px}.cards{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}.cards>li{margin:0}.row-card{width:100%;text-align:left;border:0;background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);padding:14px;display:flex;align-items:center;gap:12px}.row-card strong,.row-card .muted{display:block}.scopes{margin:0;padding-left:18px;font-size:.85rem;color:var(--muted)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 18px;border-radius:14px;border:1px solid transparent;font-weight:650}.btn.wide{width:100%}.btn.primary{background:var(--accent);color:#fff}.btn.primary:disabled{opacity:.45}.btn.secondary{background:#fff;border-color:var(--line);color:var(--ink)}.btn.tonal{background:var(--accent-soft);color:var(--accent-ink)}.btn.danger{background:var(--ko);color:#fff}.btn.danger-ghost{background:#fff;border-color:#efc6c3;color:var(--ko)}.btn.small{min-height:40px;padding:0 14px;font-size:.9rem}.row-actions{display:flex;gap:10px}.row-actions>*{flex:1}.link{background:none;border:0;color:var(--accent);font-weight:650;padding:6px 0}.chips{display:flex;flex-wrap:wrap;gap:8px}.pick{min-height:40px;padding:0 14px;border-radius:20px;border:1px solid var(--line);background:#fff;font-weight:600}.pick[aria-pressed=true]{background:var(--accent);border-color:var(--accent);color:#fff}.avatar{width:42px;height:42px;border-radius:50%;background:var(--accent-soft);color:var(--accent-ink);display:grid;place-items:center;font-weight:750;flex:none;font-size:.95rem}.avatar.big{width:60px;height:60px;font-size:1.25rem}.avatar.alt{background:#ece8f6;color:#4b3d84}.avatar.warm{background:#fbeadf;color:#8a4b1c}.login{min-height:100vh;display:flex;flex-direction:column}.login-hero{background:linear-gradient(160deg,var(--accent) 0%,var(--accent-2) 100%);color:#fff;padding:44px 24px 34px;display:flex;flex-direction:column;gap:8px}.login-hero h1{font-size:2rem}.login-hero p{margin:0;opacity:.92;font-size:1.05rem}.logo{width:54px;height:54px;border-radius:16px;background:#ffffff2e;display:grid;place-items:center;margin-bottom:8px}.badge{align-self:flex-start;margin-top:8px;font-size:.78rem;font-weight:650;padding:4px 10px;border-radius:20px;background:#fff3}.login-body{padding:22px 16px 40px;display:flex;flex-direction:column;gap:12px}.persona{width:100%;display:flex;align-items:center;gap:12px;text-align:left;border:0;background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);padding:12px 14px;min-height:64px}.persona strong{display:block}.persona .muted{display:block;font-size:.88rem}.persona:hover{outline:2px solid var(--accent-soft)}details.fine{color:var(--muted)}details.fine summary{cursor:pointer;font-size:.88rem;padding:8px 0;display:flex;align-items:center;gap:6px}details.fine input{width:100%;min-height:44px;padding:0 12px;border:1px solid var(--line);border-radius:12px;background:#fff}.demo-zone{margin-top:18px;border-top:1px dashed var(--line);padding-top:6px;display:flex;flex-direction:column;gap:10px}.demo-zone[open]{display:flex}.demo-zone>*+*{margin-top:8px}.field{display:flex;flex-direction:column;gap:6px;font-weight:600}.field>span:first-child{font-size:.9rem}.field input,.field select{min-height:50px;padding:0 14px;border:1px solid #cfd8d3;border-radius:12px;background:#fff;font-weight:500}.field input:focus,.vital-row input:focus,.code-input:focus{outline:3px solid var(--accent-soft);border-color:var(--accent)}.dropzone{position:relative;border:2px dashed #cfd8d3;border-radius:var(--radius);background:#fff;padding:22px;display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;color:var(--accent-ink)}.dropzone input{position:absolute;top:0;right:0;bottom:0;left:0;opacity:0;cursor:pointer}.sheet{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;background:var(--bg);display:flex;flex-direction:column;max-width:480px;margin:0 auto;animation:up .18s ease-out}@keyframes up{0%{transform:translateY(24px);opacity:0}to{transform:none;opacity:1}}.sheet-body{flex:1;overflow:auto;padding:16px;display:flex;flex-direction:column;gap:14px}.sheet-foot{padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--line);display:flex;gap:10px}.viewer{width:100%;min-height:70vh;border:0;border-radius:12px;background:#fff;object-fit:contain}.notice{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border-radius:14px;font-size:.92rem}.notice.ko{background:var(--ko-soft);color:#7d1c16}.notice.warn{background:var(--warn-soft);color:#6b3d00}.notice.info{background:var(--accent-soft);color:var(--accent-ink)}.empty{background:#fff;border-radius:var(--radius);padding:26px 20px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;box-shadow:var(--shadow)}.empty p{margin:0;color:var(--muted)}.empty-icon{width:56px;height:56px;border-radius:50%;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center}.toasts{position:fixed;top:10px;left:50%;transform:translate(-50%);width:calc(100% - 24px);max-width:456px;z-index:30;display:flex;flex-direction:column;gap:8px}.toast{display:flex;gap:10px;align-items:flex-start;background:#1d2a24;color:#fff;padding:12px 14px;border-radius:14px;box-shadow:0 8px 24px #0003;font-size:.93rem;animation:up .2s ease-out;cursor:pointer}.segments{display:flex;background:#e6ebe8;border-radius:14px;padding:4px;gap:2px}.segments button{flex:1;border:0;background:none;min-height:40px;border-radius:11px;font-weight:650;font-size:.9rem;color:var(--muted);padding:0 4px}.segments button[aria-selected=true]{background:#fff;color:var(--ink);box-shadow:0 1px 3px #0000001a}.tiles{display:grid;grid-template-columns:1fr 1fr;gap:10px}.tile{border:0;background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);padding:12px 12px 10px;text-align:left;display:flex;flex-direction:column;gap:2px;border-left:4px solid var(--line);min-height:120px}.tile.ok{border-left-color:#8fd0ab}.tile.warn{border-left-color:#f0a93b;background:#fffbf3}.tile-label{font-size:.85rem;color:var(--muted);font-weight:650}.tile-value{font-size:1.45rem;font-weight:750;letter-spacing:-.01em}.tile-value small{font-size:.8rem;font-weight:600;color:var(--muted)}.tile-foot{display:flex;flex-direction:column;gap:2px;margin-top:auto}.status{display:inline-flex;align-items:center;gap:4px;font-size:.78rem;font-weight:700}.status.ok{color:var(--ok)}.status.warn{color:var(--warn)}.spark{width:100%;height:34px}.spark polyline{fill:none;stroke:var(--accent-2);stroke-width:2;stroke-linejoin:round}.spark polyline.b{stroke:#9aa9a2}.spark-empty{height:34px}.chart{margin:0;background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);padding:10px 8px 8px}.chart svg{width:100%;height:auto;display:block}.chart .grid{stroke:#eef1ef}.chart .axis{font-size:10px;fill:var(--muted)}.chart .band{fill:#e3f3e9}.chart .band.b{fill:#edf6f1}.chart .serie polyline{stroke:var(--accent);stroke-width:2.2;stroke-linejoin:round}.chart .serie circle{fill:var(--accent)}.chart .serie.b polyline{stroke:#8a9a93}.chart .serie.b circle{fill:#8a9a93}.chart circle.warn{fill:#e08a00!important;r:4.2}.chart figcaption{padding:4px 6px 0;display:flex;align-items:center;gap:4px;flex-wrap:wrap}.dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:var(--accent)}.dot.b{background:#8a9a93}.swatch{display:inline-block;width:14px;height:10px;background:#e3f3e9;border-radius:3px}.history{list-style:none;margin:0;padding:0;background:#fff;border-radius:var(--radius);box-shadow:var(--shadow)}.history li{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid var(--line)}.history li:last-child{border-bottom:0}.hval{font-weight:750;white-space:nowrap;display:inline-flex;align-items:center;gap:4px}.hval small{color:var(--muted);font-weight:600}.hval.warn{color:var(--warn)}.doc{padding:0;overflow:hidden}.doc-main{width:100%;display:flex;align-items:center;gap:12px;text-align:left;border:0;background:none;padding:12px 14px}.doc-main strong,.doc-main .muted{display:block}.doc-icon{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:#eef1ef;color:#4d5a54;flex:none}.doc-icon.cat-ordonnance{background:#e5eefc;color:#2b5cb8}.doc-icon.cat-courrier{background:#f1e9fb;color:#6a3fb0}.doc-icon.cat-vie-quotidienne{background:#fdf0de;color:#94590d}.doc-icon.cat-administratif{background:#eef1ef;color:#4d5a54}.rights{background:#fff;border-radius:var(--radius);padding:4px 14px;box-shadow:var(--shadow)}.rights[open]{padding-bottom:12px}.layers{padding-left:18px;margin:6px 0;display:flex;flex-direction:column;gap:6px}.profile-card{flex-direction:row;align-items:center;gap:14px}.profile-card .muted{display:block}.summary{display:grid;grid-template-columns:1fr 1fr;gap:10px}.summary div{background:var(--accent);color:#fff;border-radius:var(--radius);padding:14px 16px;display:flex;flex-direction:column}.summary div+div{background:#fff;color:var(--ink);box-shadow:var(--shadow)}.summary strong{font-size:1.8rem;line-height:1.1}.summary span{font-size:.85rem;opacity:.9}.timeline{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}.timeline li{display:grid;grid-template-columns:52px 1fr;gap:8px;align-items:center}.tl-time{font-weight:800;font-size:1.05rem;color:var(--accent-ink)}.row-card .tiny{display:block}.join-card{gap:12px;padding:20px 16px}.code-input{width:100%;font-size:2rem;font-weight:800;letter-spacing:.18em;text-align:center;text-transform:uppercase;min-height:72px;border:2px solid #cfd8d3;border-radius:14px;background:#fafcfb;font-family:ui-monospace,SF Mono,Menlo,monospace}.code-input::placeholder{color:#c3ccc7}.steps{list-style:none;counter-reset:s;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}.steps li{counter-increment:s;background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);padding:12px 14px 12px 54px;position:relative;display:flex;flex-direction:column}.steps li:before{content:counter(s);position:absolute;left:14px;top:12px;width:28px;height:28px;border-radius:50%;background:var(--accent-soft);color:var(--accent-ink);font-weight:800;display:grid;place-items:center}.patient-card{gap:12px}.patient-id{display:flex;gap:14px;align-items:center}.patient-id .muted{display:block}.quick{display:flex;gap:8px}.quick .btn{flex:1;text-decoration:none}.med{flex-direction:row;align-items:flex-start;gap:12px}.med .grow>*{display:block}.med-icon{width:40px;height:40px;border-radius:12px;background:#e5eefc;color:#2b5cb8;display:grid;place-items:center;flex:none}.appt{flex-direction:row;align-items:center;gap:14px}.appt .grow>*{display:block}.appt-date{display:flex;flex-direction:column;align-items:center;min-width:76px;padding:6px 8px;border-radius:12px;background:var(--accent-soft);color:var(--accent-ink)}.appt-date span{font-size:.72rem;font-weight:650;text-align:center}.with-cta{padding-bottom:180px}.cta{position:fixed;left:50%;transform:translate(-50%);bottom:calc(68px + env(safe-area-inset-bottom));width:100%;max-width:480px;padding:10px 16px;z-index:5;background:linear-gradient(to top,var(--bg) 70%,transparent)}.cta .btn{min-height:56px;font-size:1.05rem;box-shadow:0 6px 18px #1f6f504d}.vital-list{display:flex;flex-direction:column;gap:10px}.vital-row{background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);padding:12px 14px;display:flex;flex-direction:column;gap:8px}.vital-head{display:flex;justify-content:space-between;align-items:baseline;gap:8px}.ta{display:grid;grid-template-columns:1fr auto 1fr;gap:8px;align-items:center}.ta input,.unit-input input{width:100%;min-height:54px;border:1px solid #cfd8d3;border-radius:12px;padding:0 14px;font-size:1.35rem;font-weight:700;background:#fafcfb}.ta input::placeholder{font-size:.95rem;font-weight:500}.slash{font-size:1.6rem;color:var(--muted)}.unit-input{display:flex;align-items:center;gap:10px}.unit-input span{color:var(--muted);font-weight:650;min-width:44px}.prev{font-size:.8rem;color:#87938d}.warn-line{font-size:.85rem;color:var(--warn);font-weight:650;display:flex;align-items:center;gap:6px;background:var(--warn-soft);padding:6px 10px;border-radius:10px}.scale{display:grid;grid-template-columns:repeat(11,1fr);gap:3px}.lvl{min-height:46px;border:0;border-radius:8px;font-weight:750;padding:0;background:#eef1ef}.lvl.l0,.lvl.l1,.lvl.l2,.lvl.l3{background:#e4f4ea}.lvl.l4,.lvl.l5,.lvl.l6{background:#fff1d9}.lvl.l7,.lvl.l8,.lvl.l9,.lvl.l10{background:#fde4e1}.lvl[aria-pressed=true]{background:var(--accent);color:#fff;transform:scale(1.06)}.timeline li.past .row-card{opacity:.62;box-shadow:none}.tl-time{display:flex;flex-direction:column}.tl-done{font-size:.68rem;font-weight:700;color:var(--ok);display:flex;align-items:center;gap:2px}
