/* SANA UI03 — compact editorial UI, overrides UI02 without editing app.css.
   No layout flags, role permissions, background requests or workflow mutation. */
:root{--sfe-ui03-blue:#1b466c;--sfe-ui03-line:#dbe4ed;--sfe-ui03-muted:#637a8e;--sfe-ui03-radius:12px}
body:not(.role-guest) :is(.page,.app-main){min-width:0}
/* A compact, consistent typographic scale throughout the workspace. */
body:not(.role-guest) .page-title h1,
body:not(.role-guest) .planning-hero-v17 h1{font-size:clamp(23px,2.1vw,30px);line-height:1.4;letter-spacing:0}
body:not(.role-guest) .page-title p,
body:not(.role-guest) .planning-hero-v17 p{font-size:12px;line-height:1.65}
body:not(.role-guest) :is(.section-head h2,.panel-title h2){font-size:17px;line-height:1.45}
body:not(.role-guest) .panel{padding:15px 16px;border-radius:13px;box-shadow:0 1px 7px rgba(20,39,59,.035)}
body:not(.role-guest) .btn{padding:8px 12px;border-radius:10px;font-size:12px;line-height:1.45}
body:not(.role-guest) .btn.small{font-size:11px;padding:7px 10px}
body:not(.role-guest) .pill{font-size:11px;padding:4px 8px}
body:not(.role-guest) :is(input,select,textarea){accent-color:var(--sfe-ui03-blue)}
body:not(.role-guest) :is(a,button,summary,input,select,textarea):focus-visible{outline:2px solid #287ab1;outline-offset:2px}
body:not(.role-guest) .topbar{min-height:58px;padding-top:9px;padding-bottom:9px;background:#fff;border-color:#e3e9f0}
/* Retain the ChatGPT-like center, the collapsible RTL side panel and the icon rail. */
@media(min-width:1100px){
  body:not(.role-guest) .app-sidebar>.side-scroll .side-group-title{font-size:10px;line-height:1.5;letter-spacing:0;padding:10px 12px 4px}
  body:not(.role-guest) .app-sidebar>.side-scroll .side-link{font-size:12px;font-weight:650;line-height:1.5;min-height:35px;padding:7px 10px;border-radius:9px;gap:9px}
  body:not(.role-guest) .app-sidebar>.side-scroll .side-icon{font-size:12px;width:20px;height:20px}
  body:not(.role-guest) .app-sidebar>.side-scroll .side-link.active{color:#fff;background:#285585;box-shadow:inset 3px 0 0 #83b7d6}
}
/* Current location in the top toolbar; no excessive badge or extra toolbar row. */
body:not(.role-guest) .sfe-ui03-location{display:flex;align-items:center;gap:7px;max-width:min(56%,420px);min-width:0;font-size:11px;line-height:1.5;color:#71839a;white-space:nowrap;overflow:hidden;margin-inline-end:auto}
body:not(.role-guest) .sfe-ui03-location strong{font-size:12px;color:#254765;font-weight:750;overflow:hidden;text-overflow:ellipsis}
body:not(.role-guest) .sfe-ui03-dot{width:6px;height:6px;border-radius:50%;background:#4eaa9b;flex:0 0 6px}
/* UI02 version test marker must not remain on user-facing screens. */
body:not(.role-guest) .sfe-home-eyebrow::after{content:none!important;display:none!important}
/* Restore original information density: search, priority tiles, and content rows. */
body:not(.role-guest) .sfe-home-v217{max-width:1070px;padding:4px 3px 26px;margin-inline:auto}
body:not(.role-guest) .sfe-home-hero{padding:clamp(20px,2.8vw,32px) 8px 9px}
body:not(.role-guest) .sfe-home-eyebrow{font-size:11px;margin-bottom:9px;line-height:1.5}
body:not(.role-guest) .sfe-home-hero h1{font-size:clamp(27px,2.65vw,39px);line-height:1.34;letter-spacing:0;font-weight:850}
body:not(.role-guest) .sfe-home-hero p{font-size:clamp(12px,1.1vw,14px);margin:7px 0 16px;line-height:1.6}
body:not(.role-guest) .sfe-home-search{max-width:720px;min-height:57px;padding:6px 13px;gap:11px;border-radius:17px;border:1px solid var(--sfe-ui03-line);box-shadow:0 7px 25px rgba(27,58,87,.045)}
body:not(.role-guest) .sfe-home-search input{font-size:14px}
body:not(.role-guest) .sfe-home-search button{min-width:0;min-height:37px;font-size:12px;padding:8px 13px;border-radius:10px}
body:not(.role-guest) .sfe-home-actions{margin-top:13px;gap:8px}
body:not(.role-guest) .sfe-home-actions a{min-height:36px;font-size:11px;padding:8px 12px;border-radius:999px;box-shadow:none;background:#f8fafc}
body:not(.role-guest) .sfe-home-priorities{margin:20px 0 25px;gap:10px;grid-template-columns:repeat(3,minmax(0,1fr))}
body:not(.role-guest) .sfe-home-stat{min-height:0;border:1px solid var(--sfe-ui03-line);border-inline-start:3px solid #80a9bf;border-radius:13px;padding:13px 16px;gap:4px;box-shadow:none}
body:not(.role-guest) .sfe-home-stat span{font-size:11px;font-weight:700}
body:not(.role-guest) .sfe-home-stat strong{font-size:30px;line-height:1.15}
body:not(.role-guest) .sfe-home-stat small{font-size:10px}
body:not(.role-guest) .sfe-home-section-head{margin-bottom:10px}
body:not(.role-guest) .sfe-home-section-head h2{font-size:18px}
body:not(.role-guest) .sfe-home-section-head p{font-size:11px}
body:not(.role-guest) :is(.sfe-home-rows,.sfe-home-mini-list){border-radius:13px;box-shadow:none}
body:not(.role-guest) .sfe-home-rows>a{min-height:0;padding:13px 15px;gap:11px}
body:not(.role-guest) .sfe-home-rows b{font-size:13px}
body:not(.role-guest) .sfe-home-rows small{font-size:11px}
body:not(.role-guest) .sfe-home-row-mark{width:33px;height:33px;border-radius:9px}
body:not(.role-guest) .sfe-home-mini-section{margin-top:24px}
/* The same visual grammar across planning, secretariat, and editorial analysis. */
body:not(.role-guest) :is(.file-column,.plan-lane-v17,.treatment-card,.review-plan-material,.input-unified-row){border-radius:12px;box-shadow:none}
body:not(.role-guest) :is(.file-column-title h2,.plan-lane-title-line h2,.review-plan-material h2){font-size:14px;line-height:1.55}
body:not(.role-guest) .plan-lane-head-v17{padding:10px 11px 9px;border-top-width:3px}
body:not(.role-guest) .plan-lane-kicker{font-size:10px}
body:not(.role-guest) .plan-lane-meta span{font-size:10px;padding:3px 6px}
body:not(.role-guest) .treatment-card{padding:10px}
body:not(.role-guest) .treatment-card h3{font-size:13px;line-height:1.55}
body:not(.role-guest) .treatment-type{font-size:10px}
body:not(.role-guest) .treatment-angle{font-size:12px;line-height:1.65}
body:not(.role-guest) .treatment-meta span{font-size:10px}
body:not(.role-guest) .review-plan-material>header{padding:12px 13px}
body:not(.role-guest) .review-plan-material header small{font-size:11px}
body:not(.role-guest) .review-plan-summary p{font-size:13px;line-height:1.7}
body:not(.role-guest) .review-angle p{font-size:13px;line-height:1.75}
body:not(.role-guest) .review-related{font-size:12px}
body:not(.role-guest) .review-material-decision>label:not(.field) span{font-size:12px;padding:8px 10px}
body:not(.role-guest) .review-material-decision .field{font-size:12px}
body:not(.role-guest) .desk-filter-strip a{min-height:33px;font-size:11px;padding:7px 10px}
/* Phase 2: front-load headlines and actions in the unified inputs feed. */
body:not(.role-guest) .sfe-ui03-sources{margin:3px 0 15px;border:1px solid var(--sfe-ui03-line);background:#fff;border-radius:12px;padding:0 12px}
body:not(.role-guest) .sfe-ui03-sources>summary{cursor:pointer;display:flex;align-items:center;gap:9px;min-height:42px;list-style:none}
body:not(.role-guest) .sfe-ui03-sources>summary::-webkit-details-marker{display:none}
body:not(.role-guest) .sfe-ui03-sources>summary strong{font-size:12px;color:#284968}
body:not(.role-guest) .sfe-ui03-sources>summary span{font-size:11px;color:#788da0}
body:not(.role-guest) .sfe-ui03-source-chevron{margin-inline-start:auto;transition:transform .15s}
body:not(.role-guest) .sfe-ui03-sources[open] .sfe-ui03-source-chevron{transform:rotate(180deg)}
body:not(.role-guest) .sfe-ui03-sources .input-gates-grid{margin:0;padding:10px 0 13px;gap:8px;grid-template-columns:repeat(4,minmax(0,1fr))}
body:not(.role-guest) .sfe-ui03-sources .input-gate-card{min-height:0;padding:11px;border-radius:10px;gap:6px;box-shadow:none;transform:none}
body:not(.role-guest) .sfe-ui03-sources .input-gate-copy b{font-size:12px}
body:not(.role-guest) .sfe-ui03-sources .input-gate-copy small{font-size:10px;line-height:1.5}
body:not(.role-guest) .input-filter-bar{gap:6px;padding:8px 0 10px}
body:not(.role-guest) .input-filter-bar a{font-size:11px;padding:7px 10px}
body:not(.role-guest) .input-unified-list{gap:7px}
body:not(.role-guest) .input-unified-row{padding:11px 13px;gap:10px;background:#fff;border-color:var(--sfe-ui03-line)}
body:not(.role-guest) .input-row-main h3{font-size:13px;line-height:1.6;margin:4px 0}
body:not(.role-guest) .input-row-tags{gap:5px;font-size:10px}
body:not(.role-guest) .input-row-tags .pill{font-size:10px;padding:3px 7px}
body:not(.role-guest) .input-row-actions{gap:6px;align-items:center}
body:not(.role-guest) .input-row-actions .btn{padding:7px 10px;border-radius:9px;font-size:11px;line-height:1.4}
body:not(.role-guest) .input-row-actions a[href*="input-decision.php"]{color:#fff;background:var(--sfe-ui03-blue);border-color:var(--sfe-ui03-blue);font-weight:750}
body:not(.role-guest) .sfe-ui03-brief-meta{display:block;margin:3px 0 0;font-size:10px;color:var(--sfe-ui03-muted)}
body:not(.role-guest) .sfe-ui03-row-more{margin:5px 0 0}
body:not(.role-guest) .sfe-ui03-row-more>summary{cursor:pointer;display:inline-flex;align-items:center;gap:5px;color:#34617f;font-size:11px;font-weight:700;padding:3px 0}
body:not(.role-guest) .sfe-ui03-row-more>summary::marker{font-size:9px}
body:not(.role-guest) .sfe-ui03-row-more>div{padding:7px 10px;margin:5px 0;border-inline-start:2px solid #bad1e0;background:#f8fafc;border-radius:7px;min-width:0}
body:not(.role-guest) .sfe-ui03-row-more p{max-height:none;overflow:visible;margin:0;white-space:pre-line;font-size:12px;line-height:1.7}
body:not(.role-guest) .sfe-ui03-row-more a{display:inline-block;font-size:11px;color:#255b82;margin-top:5px;overflow-wrap:anywhere}
@media(max-width:1099px){
 body:not(.role-guest) .topbar{min-height:54px}
 body:not(.role-guest) .sfe-ui03-location{margin-inline-end:auto}
 body:not(.role-guest) .sfe-ui03-sources .input-gates-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:720px){
 body:not(.role-guest) .sfe-ui03-location{max-width:48%;gap:5px}
 body:not(.role-guest) .sfe-ui03-location-prefix{display:none}
 body:not(.role-guest) .sfe-ui03-location strong{font-size:11px}
 body:not(.role-guest) .sfe-home-hero{padding:18px 4px 8px}
 body:not(.role-guest) .sfe-home-hero h1{font-size:clamp(24px,6vw,30px)}
 body:not(.role-guest) .sfe-home-hero p{font-size:12px;margin:7px 0 15px}
 body:not(.role-guest) .sfe-home-search{min-height:49px;padding:5px 9px;border-radius:13px}
 body:not(.role-guest) .sfe-home-search input{font-size:13px}
 body:not(.role-guest) .sfe-home-search button{min-height:36px;font-size:11px;padding:7px 11px}
 body:not(.role-guest) .sfe-home-actions{margin-top:12px;gap:6px}
 body:not(.role-guest) .sfe-home-actions a{min-height:34px;font-size:11px;padding:7px 9px}
 body:not(.role-guest) .sfe-home-priorities{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:16px 0 23px}
 body:not(.role-guest) .sfe-home-stat{grid-column:auto!important;min-height:0;padding:10px 7px;border-radius:11px;gap:4px;border-inline-start-width:2px}
 body:not(.role-guest) .sfe-home-stat span{font-size:10px}
 body:not(.role-guest) .sfe-home-stat strong{font-size:24px}
 body:not(.role-guest) .sfe-home-stat small{font-size:9px}
 body:not(.role-guest) .sfe-home-section-head h2{font-size:16px}
 body:not(.role-guest) .sfe-home-rows>a{padding:11px 10px;gap:9px;min-height:0}
 body:not(.role-guest) .sfe-home-rows b{font-size:12px}
 body:not(.role-guest) .input-unified-row{align-items:stretch;flex-direction:column;padding:11px}
 body:not(.role-guest) .input-row-actions{display:flex;flex-wrap:wrap}
 body:not(.role-guest) .input-row-actions .btn{min-height:38px;width:auto;flex:1 1 125px}
 body:not(.role-guest) .sfe-ui03-sources>summary span:not(.sfe-ui03-source-chevron){display:none}
}
@media(prefers-reduced-motion:reduce){body:not(.role-guest) .sfe-ui03-source-chevron{transition:none}}
