/* AYOOB Capture v8. Existing auth and clinical semantics are retained. */
:root{--bg:#f6f4ed;--surface:#fffefb;--ink:#252824;--muted:#686b63;--plum:#313a32;--plum2:#555f50;--rose:#e7e8dc;--rose2:#f0f0e8;--gold:#ab905d;--line:#deded1;--green:#3d6551;--dark:#202721;--shadow:0 12px 35px rgba(38,47,38,.045)}
body{-webkit-font-smoothing:antialiased}.app-shell{grid-template-columns:236px 1fr}.sidebar{background:#202721;color:#faf8ef;padding:24px 15px 18px;overflow-y:auto}.app-brand{padding:0 8px 26px}.app-brand b{font-size:19px;letter-spacing:-.02em}.brand-mark{border-radius:0;background:transparent;border:1px solid #ad986b;color:#decba7;height:39px;width:39px}.app-brand small{color:#b7b8a5;font-size:8px;letter-spacing:.21em;margin-top:6px}.sidebar nav{gap:2px}.sidebar button,.sidebar .module-link,.side-bottom button{min-height:42px;border-radius:5px;color:#d0d4c5;font-size:12px;padding:10px 12px}.sidebar button:hover,.sidebar button.active,.side-bottom button:hover,.sidebar .module-link:hover{background:#384436;color:#fff}.sidebar button.active{box-shadow:inset 2px 0 #c2aa78}.sidebar button i,.sidebar .module-link i{color:#c6b587}.side-bottom{margin-top:22px}.side-bottom a{color:#c0c3b6;font-size:11px}.version{color:#a5ad9e;line-height:1.6;font-size:9px}.topbar{background:#fffefaf2;border-color:var(--line);padding:0 32px;height:74px}.workspace-name{font-size:18px}.demo-chip{font-size:9px;border:1px solid #deded1;background:#f1f0e5;color:#48533c;border-radius:4px}.top-btn{border-radius:4px;font-size:11px;min-height:38px}.avatar{background:#e9e7db;color:#374232}.view{padding:30px 32px 48px}.page-head{align-items:center;margin-bottom:26px}.page-head h1{font-size:clamp(32px,3.6vw,48px);line-height:1.08;letter-spacing:-.04em}.page-head p{font-size:13px;line-height:1.65}.page-actions{flex-wrap:wrap}.btn{border-radius:4px;min-height:42px;font-size:11px;padding:9px 15px;line-height:1.4}.btn.primary,.top-btn{background:#313d30}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #ad9058;outline-offset:3px}.panel,.metric-band,.workflow-readiness{border-radius:7px;box-shadow:var(--shadow);background:#fffefb}.panel-head h2,.workflow-heading h2{font-family:Georgia,serif;font-weight:400}.panel-head h2{font-size:23px}.panel-head>span{font-size:11px}.table th,.table td{font-size:12px;line-height:1.55;padding:15px}.table th{font-size:10px;letter-spacing:.08em;background:#f6f5ed}.metric b{font-size:31px}.metric span{font-size:10px;line-height:1.55}.metric .trend{font-size:10px}.workflow-heading p,.workflow-foot,.workflow-source,.workflow-checks,.workflow-storage,.workflow-session-controls label{font-size:12px;line-height:1.65}.workflow-storage{border-radius:4px}.workflow-view{border-radius:4px;min-height:68px}.workflow-view span{font-size:12px}.workflow-view b{font-size:11px}.workflow-filters input,.workflow-filters select,.workflow-session-controls select{min-height:44px;font-size:13px;border-radius:4px}.workflow-checks label{min-height:36px;align-items:center}.workflow-checks input{width:17px;height:17px;accent-color:#41543b}.workflow-table-wrap{border-radius:4px}.capture-eyebrow{display:block;font-size:9px;font-weight:700;letter-spacing:.19em;color:#777449;line-height:1.6}.capture-context-v8{display:flex;align-items:center;gap:22px;justify-content:space-between;padding:16px 32px;border-bottom:1px solid var(--line);background:#eeeee3;min-height:81px}.capture-context-copy{min-width:0}.capture-context-copy p{margin:4px 0 0;display:flex;flex-wrap:wrap;gap:5px 13px;font-size:12px;line-height:1.6}.capture-context-copy p b{font-weight:650}.capture-context-copy p span{color:#606757}.capture-context-v8 .btn{flex-shrink:0;background:#fffdf6}.capture-session-summary{display:flex;flex-wrap:wrap;gap:7px 15px;font-size:11px;line-height:1.6;margin-left:auto}.capture-session-summary span{color:#4e5c45}.capture-session-summary .capture-unsaved{color:#775a1e;font-weight:650}.capture-intro-v8{display:grid;grid-template-columns:1.1fr 1fr;gap:45px;padding:34px 38px;background:#e9eadf;border:1px solid #d5d8c7;border-radius:7px;margin-bottom:22px}.capture-intro-v8 h2{font:400 clamp(30px,3vw,45px)/1.1 Georgia,serif;letter-spacing:-.03em;margin:13px 0 17px}.capture-intro-v8>div>p{font-size:13px;line-height:1.75;color:#58614e;max-width:430px}.capture-intro-v8 .btn{margin-top:6px}.capture-workflow-steps{list-style:none;margin:0;padding:0;display:grid;align-content:center}.capture-workflow-steps li{display:flex;gap:18px;padding:18px 0;border-bottom:1px solid #cfd3c1}.capture-workflow-steps li:last-child{border:0}.capture-workflow-steps li>span{font:400 23px Georgia,serif;color:#83845c}.capture-workflow-steps b{font-size:13px}.capture-workflow-steps p{font-size:12px;line-height:1.6;margin:6px 0 0;color:#606752}.capture-local-metrics{display:grid;grid-template-columns:repeat(4,1fr);margin:0 0 26px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.capture-local-metrics>div{padding:22px 18px;border-right:1px solid var(--line)}.capture-local-metrics>div:last-child{border:0}.capture-local-metrics b{display:block;font:400 30px Georgia,serif}.capture-local-metrics span{font-size:11px;line-height:1.6;display:block;color:#666c5d;margin-top:6px}.capture-shortcuts-v8{padding:25px}.capture-shortcuts-v8 h2{font:400 27px/1.15 Georgia,serif;margin:14px 0 22px}.capture-shortcut{display:flex;gap:16px;align-items:center;justify-content:space-between;width:100%;text-align:left;border:0;border-top:1px solid var(--line);background:transparent;padding:19px 0;cursor:pointer;color:var(--ink)}.capture-shortcut b{display:block;font-size:12px}.capture-shortcut small{display:block;font-size:11px;line-height:1.55;color:#68705f;margin-top:6px}.capture-shortcut>span:last-child{font-size:22px;color:#777449}.capture-menu-backdrop{display:none}.capture-skip-link{position:fixed;top:-80px;left:15px;z-index:250;background:#fff;padding:12px;color:#252824;border:2px solid #ad9058}.capture-skip-link:focus{top:12px}
@media(min-width:901px){.sidebar{z-index:40}.sidebar .module-link{font-size:12px}}@media(max-width:1100px){.capture-context-v8{flex-wrap:wrap;gap:12px}.capture-session-summary{margin-left:0}.capture-intro-v8{padding:28px;gap:25px}.view{padding:25px}.topbar{padding:0 25px}.capture-context-v8{padding:16px 25px}}@media(max-width:900px){.app-shell{display:block}.sidebar{position:fixed;z-index:100;left:0;top:0;bottom:0;width:252px;transform:translateX(-105%);transition:transform .18s ease;height:100dvh}.sidebar.open{transform:translateX(0)}.mobile-menu{display:inline-flex;align-items:center;justify-content:center;width:40px;height:44px;margin-right:4px;cursor:pointer}.capture-menu-backdrop:not([hidden]){display:block;position:fixed;inset:0;background:#101a126b;border:0;z-index:90;cursor:pointer}.topbar{padding:0 16px;gap:8px}.topbar>div:first-child{display:flex;align-items:center;min-width:0}.workspace-name{font-size:16px;max-width:36vw;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.capture-context-v8{padding:15px 20px}.capture-intro-v8{grid-template-columns:1fr 1fr}.capture-session-summary{order:3;width:100%}.workflow-table-wrap{overflow:visible}.workflow-table-wrap table{min-width:0;width:100%}.workflow-table-wrap thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.workflow-table-wrap tbody,.workflow-table-wrap tr,.workflow-table-wrap td{display:block}.workflow-table-wrap tr{padding:14px 16px;border-bottom:1px solid var(--line)}.workflow-table-wrap td{padding:7px 0;border:0;min-width:0}.workflow-table-wrap td[data-label]::before{content:attr(data-label);display:block;font-size:9px;letter-spacing:.07em;text-transform:uppercase;color:#737965;margin-bottom:3px}.workflow-row-actions{margin-top:2px}.workflow-row-actions .btn{min-width:100px}.workflow-table-wrap td:first-child{font-size:14px}.page-actions{gap:7px}}
@media(max-width:600px){.topbar{height:66px;padding:0 10px}.top-actions{gap:5px}.demo-chip{display:none}.top-btn{padding:8px;font-size:10px}.avatar{width:32px;height:32px;flex-shrink:0}.view{padding:25px 16px 40px}.capture-context-v8{padding:14px 16px}.capture-context-v8 .btn{min-height:38px;padding:8px 11px;font-size:10px}.capture-context-copy p{font-size:11px}.capture-context-copy{flex-basis:100%}.capture-eyebrow{font-size:8px}.capture-intro-v8{grid-template-columns:1fr;padding:24px;gap:16px}.capture-intro-v8 h2{font-size:36px}.capture-workflow-steps li{padding:13px 0}.capture-local-metrics{grid-template-columns:1fr 1fr}.capture-local-metrics>div{padding:17px 12px}.capture-local-metrics>div:nth-child(2){border-right:0}.capture-local-metrics>div:nth-child(-n+2){border-bottom:1px solid var(--line)}.capture-local-metrics b{font-size:28px}.page-head{align-items:start;gap:16px;flex-direction:column}.page-head p{font-size:12px}.page-head h1{font-size:35px}.page-actions{width:100%}.page-actions .btn{flex:1}.workflow-session-controls{align-items:stretch}.workflow-session-controls .btn{min-height:44px}.workflow-checks label{line-height:1.55}.workflow-view{padding:12px 8px}.table th,.table td{font-size:11px;padding:11px 8px}.capture-inspector .capture-note{font-size:11px}.capture-workspace{overflow:hidden}.capture-toolbar{flex-wrap:wrap;gap:8px}.capture-controls .icon-btn{min-height:44px}.capture-protocol .protocol-view{min-height:44px}.capture-context-v8 .capture-session-summary{font-size:10px;gap:6px 13px}}
@media(prefers-reduced-motion:reduce){.sidebar{transition:none}*{scroll-behavior:auto!important}}

.patient-table th,.patient-table td{font-size:12px;line-height:1.55}.patient-table th{font-size:10px}.patient-table td small{font-size:10px}.sidebar nav a.module-link{font-size:12px;padding:10px 12px;border-radius:5px}.sidebar nav a.module-link:hover{background:#384436}
