:root{--man-bg:#f5f7fb;--man-card:#fff;--man-text:#142033;--man-muted:#6d7788;--man-line:#e5eaf1;--man-primary:#246bfe;--man-side:#10223c;--man-danger:#d93f4c;--man-ok:#198754;--man-warn:#c47a10}.man-shell{display:flex;min-height:820px;background:var(--man-bg);border:1px solid var(--man-line);border-radius:18px;overflow:hidden;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;color:var(--man-text)}.man-side{width:238px;background:var(--man-side);padding:24px 16px;color:#fff;flex:none}.man-brand{display:flex;gap:11px;align-items:center;padding:0 8px 22px}.man-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#fff;color:var(--man-primary);font-weight:900}.man-brand b{display:block;font-size:18px}.man-brand small{font-size:10px;letter-spacing:1.8px;opacity:.6}.man-side nav{display:flex;flex-direction:column;gap:3px}.man-side nav label{font-size:10px;letter-spacing:1.4px;opacity:.45;margin:20px 10px 6px}.man-side button{border:0;background:transparent;color:#cdd7e5;text-align:left;padding:10px 12px;border-radius:9px;cursor:pointer;font-weight:600}.man-side button:hover,.man-side button.active{background:rgba(255,255,255,.11);color:#fff}.man-safety{margin-top:28px;padding:12px;border:1px solid rgba(255,255,255,.13);border-radius:10px;font-size:11px}.man-safety span{opacity:.6}.man-main{flex:1;min-width:0;padding:26px 30px}.man-main>header{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}.man-main h1{font-size:27px;margin:0}.man-main header p{margin:4px 0 0;color:var(--man-muted)}.man-primary,.man-secondary{border:0;border-radius:9px;padding:11px 16px;font-weight:750;cursor:pointer}.man-primary{background:var(--man-primary);color:#fff}.man-secondary{background:#e9eef6;color:var(--man-text)}.man-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:13px}.man-kpis>div,.man-panel,.man-patient{background:var(--man-card);border:1px solid var(--man-line);border-radius:14px;box-shadow:0 2px 8px rgba(20,32,51,.035)}.man-kpis>div{padding:18px}.man-kpis b{display:block;font-size:27px}.man-kpis span{color:var(--man-muted);font-size:12px}.man-section-head{display:flex;justify-content:space-between;align-items:center;margin:28px 2px 14px}.man-section-head h2{font-size:17px;margin:0}.man-section-head span{color:var(--man-muted);font-size:12px}.man-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.man-patient{padding:16px;cursor:pointer;position:relative}.man-patient>div:first-child{display:flex;justify-content:space-between}.man-patient span{color:var(--man-muted);font-size:11px}.man-patient h3{font-size:14px;min-height:36px;margin:14px 0 8px}.man-patient small{color:var(--man-muted)}.man-patient button{display:block;margin-top:13px;border:0;background:none;color:var(--man-primary);font-weight:700;padding:0;cursor:pointer}.man-badge{display:inline-block;padding:4px 8px;border-radius:20px;font-size:10px!important;font-weight:800}.man-badge.critical{background:#fdebed;color:var(--man-danger)}.man-badge.surveillance{background:#fff4df;color:var(--man-warn)}.man-badge.stable{background:#e8f7ef;color:var(--man-ok)}.man-form{display:flex;flex-direction:column;gap:15px}.man-panel{padding:20px}.man-panel h2,.man-panel h3{margin-top:0}.man-fields{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.man-form label,.man-panel label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700;margin-bottom:12px}.man-form input,.man-form select,.man-form textarea,.man-panel input,.man-panel select,.man-panel textarea,#man-handover{border:1px solid #d9e0e9;border-radius:8px;padding:10px;background:#fff;color:var(--man-text);font:inherit;box-sizing:border-box;width:100%}.man-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}.man-chips label{margin:0}.man-chips input{display:none}.man-chips span{padding:8px 11px;border:1px solid var(--man-line);border-radius:20px;background:#fff;font-size:12px;cursor:pointer}.man-chips input:checked+span{background:#eaf1ff;border-color:#8cb0ff;color:#1859d9}.man-actions{display:flex;justify-content:flex-end;gap:8px}.man-patient-head{display:flex;justify-content:space-between;margin-bottom:12px}.man-patient-head h2{font-size:18px;margin:0 0 8px}.man-tabs{display:flex;gap:4px;border-bottom:1px solid var(--man-line);margin-bottom:16px;overflow:auto}.man-tabs button{border:0;background:none;padding:11px 12px;color:var(--man-muted);font-weight:700;white-space:nowrap;cursor:pointer}.man-tabs button.active{color:var(--man-primary);border-bottom:2px solid var(--man-primary)}.man-three{display:grid;grid-template-columns:1fr 1.4fr 1fr;gap:13px}.man-big{font-size:38px;font-weight:850}.man-panel dl{display:grid;grid-template-columns:1fr 1fr;font-size:12px}.man-panel dt{color:var(--man-muted)}.man-panel dd{text-align:right;margin:0;font-weight:700}.man-mini-event{display:flex;flex-direction:column;padding:8px 0;border-bottom:1px solid var(--man-line);font-size:12px}.man-mini-event span{color:var(--man-muted);font-size:10px}.man-score-grid{display:grid;grid-template-columns:repeat(3,1fr) .8fr;gap:12px}.man-radio{display:grid!important;grid-template-columns:auto 1fr auto;align-items:center;gap:8px!important;border-bottom:1px solid var(--man-line);padding:8px 0;margin:0!important}.man-radio input{width:auto}.man-radio b{background:#edf2f8;padding:3px 7px;border-radius:6px}.man-score{background:var(--man-side);color:#fff;border-radius:14px;padding:20px;display:flex;flex-direction:column;justify-content:center;text-align:center}.man-score span{font-size:10px;letter-spacing:1.4px;opacity:.6}.man-score b{font-size:29px;margin:8px 0}.man-score small{opacity:.6}.man-two{display:grid;grid-template-columns:1fr 1.2fr;gap:14px}.man-note{font-size:11px;color:var(--man-muted);line-height:1.5}.man-doc{padding:12px 0;border-bottom:1px solid var(--man-line)}.man-doc b,.man-doc span,.man-doc small{display:block}.man-doc span,.man-doc small{font-size:10px;color:var(--man-muted)}.man-doc p{font-size:12px}.man-filter{font-size:11px;color:var(--man-muted);margin-bottom:16px}.man-timeline>div{display:grid;grid-template-columns:120px 18px 1fr;min-height:72px}.man-timeline time{font-size:11px;color:var(--man-muted)}.man-timeline i{width:9px;height:9px;border-radius:50%;background:var(--man-primary);margin-top:4px;position:relative}.man-timeline i:after{content:'';position:absolute;left:4px;top:10px;width:1px;height:62px;background:var(--man-line)}.man-timeline section{display:flex;flex-direction:column}.man-timeline section small{font-size:9px;color:var(--man-primary);font-weight:800}.man-timeline section b{font-size:13px}.man-timeline section span{font-size:10px;color:var(--man-muted)}.man-analysis{display:grid;grid-template-columns:1fr 1fr;gap:13px}.man-analysis .man-panel:first-child,.man-analysis .man-panel:last-child{grid-column:1/-1}.man-eyebrow{font-size:9px;letter-spacing:1.3px;color:var(--man-primary);font-weight:850}.man-data-row{display:flex;justify-content:space-between;padding:9px 0;border-bottom:1px solid var(--man-line);font-size:12px}.man-missing{padding:9px;background:#fff7e9;border-radius:8px;font-size:12px}.man-empty{text-align:center;color:var(--man-muted);padding:40px}.man-loading{padding:50px;text-align:center;color:var(--man-muted)}.man-login{padding:20px;border:1px solid #ddd;border-radius:10px}.man-doc textarea,#man-handover{resize:vertical}@media(max-width:1000px){.man-side{width:190px}.man-grid{grid-template-columns:repeat(2,1fr)}.man-score-grid{grid-template-columns:1fr 1fr}.man-three{grid-template-columns:1fr}.man-two{grid-template-columns:1fr}}@media(max-width:720px){.man-shell{display:block}.man-side{width:auto}.man-side nav{display:grid;grid-template-columns:repeat(2,1fr)}.man-side nav label{grid-column:1/-1}.man-main{padding:18px}.man-main>header{align-items:flex-start;gap:12px}.man-kpis,.man-grid,.man-fields,.man-analysis,.man-score-grid{grid-template-columns:1fr 1fr}.man-analysis .man-panel{grid-column:1/-1}}@media(max-width:500px){.man-kpis,.man-grid,.man-fields,.man-score-grid{grid-template-columns:1fr}.man-main>header .man-primary{display:none}}

/* 0.1.1 — full-width application shell */
body.man-medassist-page .entry-title,
body.man-medassist-page .page-title,
body.man-medassist-page main > article > header.entry-header {display:none!important}
body.man-medassist-page .entry-content,
body.man-medassist-page .wp-block-post-content {max-width:none!important;width:100%!important}
body.man-medassist-page #man-app.man-shell{
  width:calc(100vw - 32px)!important;
  max-width:none!important;
  margin-left:calc(50% - 50vw + 16px)!important;
  margin-right:calc(50% - 50vw + 16px)!important;
  box-sizing:border-box;
  min-height:calc(100vh - 80px);
}
body.man-medassist-page .man-main{width:auto;max-width:none!important}
body.man-medassist-page .man-empty{max-width:none!important;white-space:normal;word-break:normal;overflow-wrap:normal}
@media(min-width:1200px){body.man-medassist-page .man-side{width:250px}.man-main{padding:30px 34px}.man-grid{grid-template-columns:repeat(3,minmax(240px,1fr))}}
@media(max-width:720px){body.man-medassist-page #man-app.man-shell{width:100vw!important;margin-left:calc(50% - 50vw)!important;margin-right:calc(50% - 50vw)!important;border-left:0;border-right:0;border-radius:0}.man-side{padding:16px}.man-brand{padding-bottom:12px}.man-side nav{grid-template-columns:repeat(2,minmax(0,1fr))}.man-safety{display:none}}
/* 0.1.4 documents & validation */
.man-patient-head h2{white-space:normal;overflow:visible;text-overflow:clip;max-width:100%;word-break:normal}
.man-doc-list{min-width:0}.man-doc{padding:18px 0;border-bottom:1px solid #dfe6ef}.man-doc:last-child{border-bottom:0}.man-doc-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.man-doc-head>div{display:flex;flex-direction:column}.man-file-link{display:inline-block;margin:10px 0;color:#1769ff;font-weight:700;text-decoration:none}.man-doc details{margin:10px 0}.man-doc summary{cursor:pointer;font-weight:700}.man-original{white-space:pre-wrap;word-break:break-word;line-height:1.55;max-height:260px;overflow:auto;background:#f7f9fc;padding:12px;border-radius:10px}.man-extraction{margin-top:16px}.man-extraction h4{margin:0 0 10px}.man-extract-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;padding:12px 0;border-top:1px solid #e6ebf2}.man-extract-row>div:first-child{display:flex;flex-direction:column;gap:4px}.man-extract-row small{opacity:.65}.man-extract-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.man-extract-actions button{border:1px solid #ccd7e6;background:#fff;border-radius:8px;padding:7px 10px;cursor:pointer;font-weight:700}.man-status{padding:6px 9px;border-radius:999px;font-size:12px;font-weight:800}.man-status.accepted,.man-status.corrected{background:#e9f8ef;color:#18753a}.man-status.ignored{background:#f0f2f5;color:#687386}.man-or{text-align:center;margin:8px 0;opacity:.55;font-size:12px;font-weight:700}
@media(max-width:800px){.man-extract-row{grid-template-columns:1fr}.man-doc-head{flex-direction:column}}
.man-analysis-hero{display:flex;align-items:center;justify-content:space-between;gap:24px}.man-analysis-hero .man-primary{flex:0 0 auto}.man-ai-panel{grid-column:1/-1}.man-ai-empty{padding:12px 0}.man-ai-empty p{margin:0 0 6px}.man-ai-empty small{opacity:.65}.man-ai-loading{display:flex;flex-direction:column;gap:6px;padding:16px 0}.man-ai-loading b{font-size:17px}.man-ai-loading span{opacity:.65}.man-ai-output>small{display:block;opacity:.6;margin-bottom:12px}.man-ai-output>h3{font-size:22px;line-height:1.4;margin:0 0 18px}.man-ai-output section{padding:14px 0;border-top:1px solid #e3e9f1}.man-ai-output section h4{margin:0 0 8px;font-size:14px;color:#1769ff}.man-ai-output section p{margin:6px 0;line-height:1.55}.man-ai-error{padding:12px 14px;border-radius:10px;background:#fff3f3;color:#a32121}.man-primary:disabled{opacity:.65;cursor:wait}@media(max-width:760px){.man-analysis-hero{align-items:flex-start;flex-direction:column}}
.man-validation-ok{margin:12px 0;padding:10px 12px;border-radius:8px;background:#e8f7ef;color:var(--man-ok);font-size:12px;font-weight:700}#man-handover{line-height:1.55}

.man-timeline section small{margin-bottom:3px;letter-spacing:.45px;text-transform:none}.man-timeline section b{display:block;margin-bottom:3px}.man-event-handover i{background:#198754}.man-event-validation i{background:#6f42c1}.man-event-analysis i{background:#0d6efd}.man-event-imaging i{background:#0aa2c0}.man-event-neuro i{background:#c47a10}.man-event-admission i{background:#64748b}
.man-clinical-scores{margin-top:16px}.man-score-boxes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.man-score-boxes>div,.man-score-boxes>label{display:flex;flex-direction:column;gap:8px;padding:16px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc}.man-score-boxes b{font-size:24px;color:#0f172a}.man-score-boxes select{min-height:42px}.man-score-boxes small{color:#64748b;line-height:1.45}@media(max-width:760px){.man-score-boxes{grid-template-columns:1fr}}
