:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#15303c;background:#f5f9fa;--deep:#0c1b2a;--teal:#1a9aa6;--gold:#b9914a;--border:#d9e6e9;--muted:#607987}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select{font:inherit}button{cursor:pointer}a{color:inherit}.appbar{background:#0c1b2a;color:white;padding:15px max(24px,calc((100vw - 1470px)/2));display:flex;justify-content:space-between;align-items:center;gap:15px}.logo{display:flex;gap:10px;text-decoration:none;align-items:center}.logo b{letter-spacing:.1em}.logo small{display:block;letter-spacing:.13em;font-size:9px;color:#b6d0d9;margin-top:3px}.symbol{width:42px;height:42px;text-align:center;border:1px solid #239ba6;font-size:30px}.appnav{display:flex;gap:17px;align-items:center}.appnav a{font-size:11px;text-decoration:none}.tag{font-size:10px;letter-spacing:.08em;color:#65bec2;border:1px solid #37737a;padding:7px 10px;border-radius:12px}main{max-width:1500px;margin:auto;padding:25px 25px 0}.welcome{display:grid;grid-template-columns:1.7fr .65fr;gap:20px;margin:8px 0 28px}.welcome h1{font-size:clamp(38px,4.4vw,66px);letter-spacing:-.055em;line-height:1.03;margin:14px 0}.welcome h1 span{color:#6b8993}.welcome p{max-width:720px;color:#54717f;font-size:15px;line-height:1.7}.welcome small{font-size:12px;color:#5b7885}.eyebrow{font-size:10px;font-weight:850;letter-spacing:.16em;color:#138592}.health-card{background:#e9f5f4;border:1px solid #b9d7d9;padding:23px;border-radius:8px;align-self:stretch}.health-card>span,.health-card b{display:block;letter-spacing:.1em;font-size:10px}.health-card b{font-size:18px;letter-spacing:0;margin:15px 0;color:#115a64}.health-card p{font-size:12px;line-height:1.7}.health-card div{font-size:11px;color:#336974}.health-card i{display:inline-block;background:#1a9aa6;width:8px;height:8px;border-radius:50%;margin-right:5px}.auth-shell{display:grid;grid-template-columns:1fr 1.1fr;border:1px solid var(--border);background:white;border-radius:10px;overflow:hidden;min-height:500px;box-shadow:0 13px 40px #3b6b7912}.auth-illustration{background:linear-gradient(135deg,#0c2837,#1d5360);color:white;padding:45px}.auth-illustration .eyebrow{color:#79d6d9}.auth-illustration h2{font-size:43px;letter-spacing:-.05em;line-height:1.15;margin:18px 0}.auth-illustration p{font-size:14px;line-height:1.8;color:#c6dce2;max-width:390px}.auth-points{display:flex;flex-direction:column;gap:8px;margin-top:28px}.auth-points span{font-size:9px;letter-spacing:.15em;color:#85bec5}.orbit{display:flex;margin:34px 0}.orbit span{display:grid;place-items:center;border:1px solid #4b8390;width:58px;height:58px;border-radius:50%;margin-right:-8px;color:#cce6e8;font-weight:700}.orbit span:nth-child(2){background:#1a9aa6;border-color:#1a9aa6}.auth-panel{max-width:570px;padding:34px 42px}.tabs{display:flex;gap:3px;flex-wrap:wrap;border-bottom:1px solid #d6e5e7;margin-bottom:25px}.tabs button{border:0;border-bottom:3px solid transparent;background:#fff;padding:10px;color:#637f89;font-size:11px;font-weight:700}.tabs .current{border-color:var(--teal);color:#0c1b2a}.auth-panel h2{font-size:26px;margin:0 0 8px}.auth-panel>p{color:#67808b;font-size:12px;line-height:1.65}.auth-panel form{margin:28px 0 8px}.auth-panel label,.tile label{font-size:11px;font-weight:800;color:#4d6570;display:block;margin:12px 0 7px}.auth-panel input,.tile input,.tile select{width:100%;border:1px solid #cbdce2;border-radius:5px;background:white;padding:13px 12px;min-height:43px;color:#14323f}.auth-panel input:focus,.tile input:focus,.tile select:focus{outline:2px solid #1a9aa6;outline-offset:1px}.btn{border:1px solid #c6d8df;border-radius:5px;background:white;color:#214452;padding:12px 15px;font-weight:750;font-size:12px}.btn.primary{background:var(--deep);color:white;border-color:var(--deep)}.btn.gold{background:#b9914a;color:white;border-color:#b9914a}.btn.ghost{background:transparent}.btn:disabled{opacity:.4;cursor:not-allowed}.auth-panel .btn.primary{width:100%;margin-top:20px}.message{font-size:12px;line-height:1.6;color:#207d86;min-height:18px}.message.error{color:#9f4e37}.helptext{border-top:1px solid #e7eff0;padding-top:17px;margin-top:20px}.dashboard{padding:15px 0}.dash-head{display:flex;align-items:start;justify-content:space-between;gap:14px;margin-bottom:20px}.dash-head>div:last-child{display:flex;gap:12px;align-items:center}.dash-head h2,.sectionhead h2{font-size:30px;letter-spacing:-.04em;margin:5px 0}.dash-head p,.sectionhead p{font-size:12px;color:#72848f}.badge,.pill{font-size:9px;letter-spacing:.08em;border:1px solid #badadc;border-radius:20px;padding:8px 10px;color:#176975;font-weight:800}.notice{border-left:4px solid var(--gold);background:#fcf5e8;padding:24px;margin:20px 0}.notice b{font-size:17px}.notice p{font-size:12px;line-height:1.6;color:#826e4c}.workspace-grid,.owner-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:18px}.tile{border:1px solid var(--border);background:#fff;border-radius:8px;padding:25px;margin:0 0 19px}.tilehead{display:flex;justify-content:space-between;gap:15px;align-items:center}.tile h3{font-size:22px;letter-spacing:-.03em;margin:15px 0 7px}.tile p{color:#66818a;font-size:12px;line-height:1.65}.pill{padding:7px 10px}.pill.muted{color:#9c7135;border-color:#dec79b}.tile h4{font-size:13px;margin:23px 0 12px}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.stopwatch{margin-top:22px;border-radius:7px;background:#eaf5f5;padding:20px;display:flex;flex-direction:column;gap:10px}.stopwatch small{font-size:10px;letter-spacing:.12em;color:#4f8188;font-weight:750}.stopwatch strong{font-variant-numeric:tabular-nums;font-size:39px;letter-spacing:-.04em;color:#1a535e}.stopwatch span{font-size:11px;color:#5c777e}.row-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:15px}.integration{padding:15px 0;border-bottom:1px solid #e3ecee;display:flex;justify-content:space-between;align-items:center;gap:12px}.integration b{font-size:12px;display:block}.integration small{display:block;color:#8aa0aa;font-size:10px;margin-top:5px}.integration>span,.integration a{font-size:9px;text-decoration:none;font-weight:850;color:#9f7a44;white-space:nowrap}.patient-mock{margin-top:14px;border:1px dashed #bacdd1;border-radius:5px;background:#f8fbfb;padding:14px}.patient-mock>span{font-size:9px;letter-spacing:.1em;color:#7b8e96}.patient-mock div{display:flex;justify-content:space-between;border-bottom:1px solid #e8f0f1;padding:9px 0;gap:12px;font-size:11px}.patient-mock i{font-style:normal;color:#aa9066}.entries{font-size:12px;color:#687e89}.entry{padding:12px 4px;border-bottom:1px solid #e4ecee;display:flex;justify-content:space-between;gap:10px;align-items:center}.entry b{display:block;font-size:12px;color:#284a58}.entry small{display:block;color:#8a9fa8;margin-top:4px}.entry button{border:1px solid #d3dfdf;background:#f8fbfb;border-radius:4px;padding:8px 12px;font-size:10px;color:#137b83;font-weight:800}.owner-area{margin:20px 0}.sectionhead{display:flex;justify-content:space-between;gap:16px;align-items:center;border-top:1px solid #d9e6e9;padding:29px 0}.owner-label{white-space:nowrap;background:#0c1b2a;color:#dfc69a;border-radius:4px;font-size:10px;letter-spacing:.12em;padding:12px}.owner-grid{grid-template-columns:.75fr 1.25fr}.costgrid{display:grid;grid-template-columns:repeat(2,1fr);gap:9px 15px}.costgrid label{font-weight:700}.costgrid input{margin-top:6px}.calc{border-radius:4px;background:#f0f6f5;margin-top:20px;padding:18px;font-size:12px}.calc .line{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid #cddfdf}.calc .total{font-size:17px;font-weight:800;color:#0d5c65}.cost-note{font-size:10px!important;color:#82969a!important}.helptext,.legal{font-size:11px!important}footer{display:flex;justify-content:space-between;gap:12px;border-top:1px solid #d7e2e6;padding:24px 0;margin-top:35px;color:#76909a;font-size:9px;letter-spacing:.1em}@media(max-width:950px){.welcome,.auth-shell,.workspace-grid,.owner-grid{grid-template-columns:1fr}.auth-panel{max-width:none}.health-card{max-width:none}.appnav .tag{display:none}}@media(max-width:600px){main{padding:18px 12px}.appbar{padding:13px}.appnav a:first-of-type{display:none}.welcome h1{font-size:39px}.auth-illustration{padding:27px}.auth-illustration h2{font-size:30px}.auth-panel{padding:25px 17px}.dash-head,.sectionhead{display:block}.dash-head>div:last-child{margin-top:12px}.two-fields,.costgrid{grid-template-columns:1fr}.tile{padding:16px}.integration{align-items:start}.integration>span{max-width:92px;white-space:normal;text-align:right}footer{display:block}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
/* v0.6 – calm clinic workspace, adaptive dashboards and secure owner handover view */
:root{--surface:#fff;--mist:#e9f7f7;--shadow:0 8px 32px rgba(12,27,42,.07)}
main{max-width:1720px}
.appbar{position:sticky;top:0;z-index:8;box-shadow:0 8px 22px rgba(12,27,42,.09)}
.welcome{grid-template-columns:minmax(0,1.8fr) minmax(270px,.55fr)}
.health-card{border-radius:14px;background:linear-gradient(145deg,#e9f7f4,#f7fcfb)}
.tile{border-radius:14px;box-shadow:var(--shadow)}
.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 20px}
.kpi-card{border:1px solid #d4e8e8;background:#fff;border-radius:12px;padding:20px;box-shadow:0 4px 16px rgba(12,27,42,.035);min-height:130px;display:flex;flex-direction:column;gap:10px}
.kpi-card small{font-size:10px;color:#57838b;letter-spacing:.12em;font-weight:800}
.kpi-card strong{font-size:clamp(18px,2.3vw,30px);font-variant-numeric:tabular-nums;letter-spacing:-.035em;color:#163843;overflow-wrap:anywhere}
.kpi-card span{font-size:10px;color:#81939c;line-height:1.5}
.kpi-card.accent{background:linear-gradient(145deg,#123343,#195564);border-color:#2f6570}
.kpi-card.accent small,.kpi-card.accent span{color:#a1c6cc}
.kpi-card.accent strong{color:white}
.employee-id,.mini-code{display:inline-flex;align-items:center;background:#e9f4f5;color:#116b75;border:1px solid #bddcde;border-radius:6px;padding:8px 10px;font-size:11px;font-weight:850;letter-spacing:.04em;font-variant-numeric:tabular-nums}
.mini-code{font-size:10px;padding:4px 8px;vertical-align:middle}
.note-inline{font-size:11px;color:#7d9197;line-height:1.65}
.timeline-card{border:1px solid var(--border);border-radius:16px;background:linear-gradient(125deg,#fff,#f9fcfc);padding:28px;margin:7px 0 20px;box-shadow:var(--shadow)}
.timeline-head{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;padding-bottom:19px;border-bottom:1px solid #e3edef}
.timeline-head h3{font-size:clamp(19px,2.1vw,27px);letter-spacing:-.04em;margin:9px 0}
.timeline-head p{font-size:12px;color:#718994;line-height:1.6}
.timeline-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-width:320px}
.timeline-actions label{grid-column:1/-1;font-size:11px;font-weight:800;color:#587582}
.timeline-actions input{grid-column:1/-1;width:100%;font:inherit;font-size:13px;border:1px solid #cbdfe4;border-radius:5px;padding:11px;min-width:0}
.trace-summary{font-size:12px;color:#2a6f78;font-weight:750;padding:18px 0}
.trace-list{border-left:2px solid #b9dbdb;margin:0 0 15px 8px;padding:1px 0 1px 15px;max-height:490px;overflow:auto}
.trace-entry{display:flex;align-items:center;gap:14px;padding:13px 10px;border-bottom:1px solid #edf1f2;min-width:0}
.trace-entry:hover{background:#f2faf9}
.trace-marker{display:grid;place-items:center;flex:0 0 27px;width:27px;height:27px;border-radius:50%;font-size:10px;color:#fff;background:#138995}
.trace-end .trace-marker{background:#b9914a}
.trace-entry-main{flex:1;min-width:0}
.trace-entry-main b{font-size:12px;color:#254852;display:block}
.trace-entry-main small{font-size:10px;color:#8599a1;display:block;margin-top:5px}
.trace-entry time{font-size:11px;font-variant-numeric:tabular-nums;color:#69838b;white-space:nowrap}
@media(max-width:1100px){.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.timeline-head{flex-direction:column}.timeline-actions{width:100%;max-width:570px}.welcome{grid-template-columns:1fr}}
@media(max-width:600px){.kpi-grid{gap:9px}.kpi-card{padding:14px;min-height:128px}.kpi-card strong{font-size:19px}.timeline-card{padding:17px 12px}.timeline-actions{min-width:0}.trace-entry{flex-wrap:wrap;gap:8px}.trace-entry time{margin-left:35px}.employee-id{padding:6px 8px;font-size:10px}}

.interval-board{margin:4px 0 20px;display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px}
.interval-header{grid-column:1/-1;font-size:11px;font-weight:850;letter-spacing:.08em;color:#416c76;padding:6px}
.interval-row{border:1px solid #d8e6e9;border-left:3px solid #1a9aa6;background:#fff;border-radius:7px;padding:13px;display:flex;gap:15px;align-items:center;justify-content:space-between}
.interval-row b{display:block;font-size:12px;color:#214755}
.interval-row small{display:block;font-size:10px;margin-top:5px;color:#85959b;line-height:1.45}
.interval-row strong{font-size:15px;font-variant-numeric:tabular-nums;color:#167781;white-space:nowrap}
