/* Proclaimers design system: shared layout, colors, and responsive states. */
:root{
  --brand:#ac3518;--brand-hover:#8d2a13;--brand-soft:#f8eae5;
  --surface:#fff;--canvas:#f7f8fb;--surface-subtle:#fbfcfe;
  --text:#202539;--text-muted:#737b8c;--border:#e8eaf1;
  --shadow:0 2px 10px rgba(25,32,59,.035),0 14px 36px rgba(25,32,59,.025);
  --radius:14px;--sidebar-width:248px;
}
html[data-theme=dark]{
  color-scheme:dark;--brand:#e68a70;--brand-hover:#f3a089;--brand-soft:#42251e;
  --surface:#1a2030;--canvas:#111625;--surface-subtle:#202638;
  --text:#eef0f7;--text-muted:#a4adbd;--border:#333b4d;
  --shadow:0 10px 26px rgba(0,0,0,.12);
}
html,body{background:var(--canvas);color:var(--text)}
body{font-family:'DM Sans',Inter,Arial,sans-serif;font-size:14px}
button,input,select,textarea{font:inherit}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--brand);outline-offset:2px}
.app-shell{background:var(--canvas);min-height:100vh}
.sidebar{width:var(--sidebar-width);background:var(--surface);color:var(--text-muted);border-right:1px solid var(--border);box-shadow:none;z-index:20}
.brand{padding:28px 22px 31px;gap:12px;color:var(--text);font-size:13px;letter-spacing:.055em}
.brand:hover{color:var(--text)}
.brand-mark,.brand-mark.small{width:37px;height:37px;background:var(--brand);color:#fff;border-radius:11px;font-size:22px;box-shadow:none}
.brand-copy{display:flex;flex-direction:column;line-height:1.25;white-space:nowrap}
.brand-copy small{font-size:9px;color:var(--text-muted);letter-spacing:.11em;margin-top:4px}
.sidebar-label{font-size:10px;letter-spacing:.13em;font-weight:800;color:#9ca3b2;padding:0 23px 10px}
.sidebar nav{padding:0 11px;gap:3px}
.sidebar nav a{padding:11px 13px;border-radius:9px;gap:12px;font-size:13px;font-weight:700;color:var(--text-muted);border:0}
.sidebar nav a svg{flex:none;color:#8991a1}
.sidebar nav a span{width:auto;text-align:left;font-size:13px;font-weight:700}
.sidebar nav a:hover{background:var(--surface-subtle);color:var(--text)}
.sidebar nav a.active{background:var(--brand-soft);color:var(--brand);border:0;padding:11px 13px}
.sidebar nav a.active svg{color:var(--brand)}
.sidebar-footer{margin-top:auto;padding:18px 13px 17px}
.sidebar-help{display:flex;flex-direction:column;gap:5px;background:var(--surface-subtle);border:1px solid var(--border);border-radius:11px;padding:13px;color:var(--text-muted);font-size:11px;line-height:1.45}
.sidebar-help strong{font-size:12px;color:var(--text)}
.sidebar-profile{display:flex;align-items:center;gap:10px;padding:17px 8px 0}
.avatar{background:var(--brand-soft);color:var(--brand);height:34px;width:34px;border-radius:10px}
.profile strong{color:var(--text);font-size:12px}
.profile small{color:var(--text-muted);font-size:11px}
.main{padding:30px clamp(22px,3vw,52px) 70px;max-width:none}
.topbar{padding:0 0 26px;border-bottom:1px solid var(--border);margin-bottom:28px}
.topbar-left{display:flex;align-items:center;gap:14px;min-width:0}
.topbar h1{font-size:27px;color:var(--text);letter-spacing:-.045em}
.topbar .eyebrow{color:var(--text-muted)!important;font-size:10px!important;letter-spacing:.12em}
.topbar-right{gap:11px}
.global-search{display:flex;align-items:center;gap:9px;width:230px;height:38px;background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:0 11px;color:var(--text-muted)}
.global-search:focus-within{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-soft)}
.global-search input{background:transparent;border:0;box-shadow:none;padding:0;height:100%;min-width:0;font-size:12px;color:var(--text)}
.global-search input:focus{border:0;box-shadow:none;outline:0}
.global-search input::placeholder{color:#a3a9b5}
.global-search kbd{border:1px solid var(--border);border-radius:4px;padding:1px 5px;font-size:10px;color:var(--text-muted);font-family:inherit}
.icon-button{display:inline-grid;place-items:center;width:38px;height:38px;background:var(--surface);border:1px solid var(--border);border-radius:10px;color:var(--text-muted);list-style:none;cursor:pointer}
.icon-button:hover{color:var(--brand);border-color:var(--brand)}
.icon-button::-webkit-details-marker,.user-trigger::-webkit-details-marker{display:none}
.mobile-menu{display:none}
.popover{position:relative}
.notification-button{position:relative}
.notification-dot{position:absolute;width:7px;height:7px;background:#e65e61;border:2px solid var(--surface);border-radius:50%;right:8px;top:7px}
.notification-dot[hidden]{display:none}
.popover-panel{position:absolute;top:calc(100% + 9px);right:0;width:310px;background:var(--surface);border:1px solid var(--border);border-radius:12px;box-shadow:0 18px 42px rgba(25,32,59,.14);z-index:50;padding:8px;color:var(--text)}
.popover-title{font-size:13px;font-weight:800;padding:10px 10px 13px;border-bottom:1px solid var(--border)}
.notification-panel a{display:flex;gap:10px;align-items:center;padding:10px;border-radius:7px}
.notification-panel a:hover,.user-panel button:hover{background:var(--surface-subtle)}
.notification-panel a strong,.notification-panel a small{display:block}
.notification-panel a small{color:var(--text-muted);font-size:11px;margin-top:3px}
.alert-icon{color:var(--brand);display:grid;place-items:center}
.popover-empty{padding:12px;color:var(--text-muted);margin:0}
.user-trigger{display:flex;align-items:center;gap:8px;list-style:none;cursor:pointer;padding:2px 4px 2px 2px;border-radius:9px}
.user-trigger:hover{background:var(--surface)}
.user-trigger-name{max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700;font-size:12px}
.user-trigger svg{color:var(--text-muted)}
.user-panel{width:230px}
.user-panel-head{padding:10px 10px 13px;border-bottom:1px solid var(--border)}
.user-panel-head strong,.user-panel-head small{display:block;overflow:hidden;text-overflow:ellipsis}
.user-panel-head small{color:var(--text-muted);margin-top:3px}
.user-panel button{width:100%;display:flex;align-items:center;gap:10px;text-align:left;border:0;background:transparent;color:var(--text);font-size:12px;font-weight:700;padding:11px;border-radius:7px}
.topbar-new{height:38px;padding:0 13px;font-size:12px}
.button.primary{background:var(--brand);color:#fff;box-shadow:none}
.button.primary:hover{background:var(--brand-hover)}
.button.secondary{background:var(--surface-subtle);color:var(--text);border:1px solid var(--border)}
.panel,.stat-card{background:var(--surface);border-color:var(--border);box-shadow:var(--shadow);border-radius:var(--radius)}
.welcome{background:linear-gradient(110deg,#682316,#ac3518);border-radius:var(--radius);box-shadow:var(--shadow)}
.welcome .eyebrow{color:#ffe0d6!important}
.welcome h2{letter-spacing:-.045em}
.welcome-deco{color:#ffe0d6}
.stat-card{transition:transform .15s ease,border-color .15s ease}
.stat-card:hover{border-color:var(--brand)}
.stat-icon{color:var(--brand)}
.stat-card strong,.panel-head h2,.list-toolbar h2{color:var(--text)}
.stat-card>span:last-child,.row-main small,.stack-row>small,.empty,.empty-state p,.muted{color:var(--text-muted)}
.panel-head>a,.empty a,.record-name:hover,.table-link{color:var(--brand)}
.stack-row,td{border-top-color:var(--border)}
.row-icon,.check-icon{background:var(--brand-soft);color:var(--brand)}
.pill{background:var(--brand-soft);color:var(--brand)}
.pill.badge-success{background:#e8f7ef;color:#17764c}.pill.badge-danger{background:#fdebed;color:#b63846}.pill.badge-warning{background:#fff3db;color:#986615}.pill.badge-progress{background:#f8eae5;color:#ac3518}.pill.badge-neutral{background:#f1efec;color:#66615e}
html[data-theme=dark] .pill.badge-success{background:#1e3b32;color:#70d6a3}html[data-theme=dark] .pill.badge-danger{background:#442a35;color:#ff929f}html[data-theme=dark] .pill.badge-warning{background:#473a27;color:#f4ca77}html[data-theme=dark] .pill.badge-progress{background:#42251e;color:#e68a70}html[data-theme=dark] .pill.badge-neutral{background:#34302e;color:#c6beba}
th{background:var(--surface-subtle);color:var(--text-muted)}
td{color:var(--text)}
.count{background:var(--brand-soft);color:var(--brand)}
.form-panel{max-width:980px}
label{color:var(--text-muted)}
input,select,textarea{background:var(--surface);color:var(--text);border-color:var(--border)}
input:focus,select:focus,textarea:focus{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-soft)}
.alert{border-radius:10px}
.search-results{max-width:850px}
.search-results h2{font:800 20px Manrope,sans-serif;margin:0 0 16px}
.search-arrow{color:var(--text-muted)}
.dashboard-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:0 0 23px}
.dashboard-heading h2{font:800 27px Manrope,sans-serif;letter-spacing:-.045em;margin:0 0 5px;color:var(--text)}
.dashboard-heading p:not(.eyebrow){color:var(--text-muted);margin:0}
.date-chip{background:var(--surface);border:1px solid var(--border);color:var(--text-muted);padding:9px 12px;border-radius:8px;font-size:11px;font-weight:700;white-space:nowrap}
.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:0 0 22px}
.metric-card{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow);border-radius:var(--radius);padding:20px 22px;min-height:148px;transition:transform .15s,border-color .15s}
.metric-card:hover{transform:translateY(-2px);border-color:var(--brand)}
.metric-label{color:var(--text-muted);font-size:12px;font-weight:700}
.metric-card strong{font:800 36px Manrope,sans-serif;letter-spacing:-.06em;line-height:1.25;margin:12px 0 6px;color:var(--text)}
.metric-foot{font-size:11px;color:var(--brand);font-weight:700;margin-top:auto}
.metric-danger strong,.metric-danger .metric-foot{color:#ce4855}
.dashboard-section-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(320px,.9fr);gap:20px;margin:0 0 20px}
.dashboard-section-grid.lower-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.health-panel,.deadline-panel,.workload-panel,.activity-panel{min-width:0;min-height:260px}
.health-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:10px 0 20px}
.health-grid>div{display:grid;grid-template-columns:12px 1fr;column-gap:7px;align-items:center;background:var(--surface-subtle);border:1px solid var(--border);border-radius:9px;padding:11px 12px}
.health-grid strong{font:800 19px Manrope,sans-serif;color:var(--text);line-height:1.1}
.health-grid small{grid-column:2;color:var(--text-muted);font-size:11px;margin-top:3px}
.health-dot{height:8px;width:8px;border-radius:50%;background:#23a46a}.health-dot.at-risk{background:#e2a03d}.health-dot.late{background:#dc5b68}
.project-health-row{display:grid;grid-template-columns:1fr auto;gap:6px 12px;border-top:1px solid var(--border);padding:12px 0}
.project-health-row>div:first-child{display:flex;flex-direction:column;gap:3px;min-width:0}
.project-health-row strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.project-health-row small{color:var(--text-muted)}
.health-label{font-size:10px;font-weight:800;padding:5px 9px;border-radius:99px;align-self:start;white-space:nowrap}
.health-on-track{color:#16845a;background:#e9f8ef}.health-at-risk{color:#a57215;background:#fff4de}.health-late{color:#c64454;background:#ffebee}
.progress-track{grid-column:1/-1;height:5px;border-radius:99px;background:var(--border);overflow:hidden}
.progress-track span{display:block;height:100%;border-radius:99px;background:var(--brand)}
.deadline-row{display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid var(--border)}
.deadline-date{width:40px;height:42px;border-radius:8px;background:var(--brand-soft);color:var(--brand);display:flex;align-items:center;justify-content:center;flex-direction:column;flex:none}
.deadline-date strong{font:800 15px Manrope,sans-serif;line-height:1}.deadline-date small{font-size:10px;text-transform:uppercase;font-weight:700;margin-top:3px}
.empty-state.compact{padding:28px 10px 30px}.empty-state.compact .empty-icon{display:inline-grid;place-items:center;color:var(--brand);background:var(--brand-soft);height:44px;width:44px;border-radius:12px}.empty-state.compact h3{font-size:15px}
.workload-list{display:flex;flex-direction:column;gap:14px;margin-top:6px}
.workload-row{display:flex;align-items:center;gap:11px}.workload-row .avatar{height:30px;width:30px;font-size:11px;flex:none}.workload-name{font-size:12px;font-weight:700;width:108px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.workload-bar{height:8px;background:var(--border);border-radius:99px;overflow:hidden;flex:1}.workload-bar span{display:block;height:100%;border-radius:99px;background:var(--brand)}.workload-bar span.overloaded{background:#e56973}.workload-row>strong{font-size:12px;width:14px;text-align:right}
.panel-note{color:var(--text-muted);font-size:11px;margin:17px 0 0}
.activity-list{display:flex;flex-direction:column}.activity-row{display:flex;gap:10px;padding:12px 0;border-top:1px solid var(--border);font-size:12px;color:var(--text-muted)}.activity-row strong{color:var(--text)}.activity-row small{display:block;margin-top:5px;color:var(--text-muted)}.activity-dot{width:8px;height:8px;background:var(--brand);border-radius:50%;flex:none;margin-top:4px}
html[data-theme=dark] .health-on-track{background:#1e3b32;color:#70d6a3}html[data-theme=dark] .health-at-risk{background:#473a27;color:#f4ca77}html[data-theme=dark] .health-late{background:#442a35;color:#ff929f}
.mobile-scrim{display:none}
.auth-body{background:var(--canvas)}
.auth-card{background:var(--surface);border-color:var(--border);box-shadow:var(--shadow)}
@media(max-width:1100px){.global-search{width:180px}.sidebar{width:225px}.brand{padding-left:17px}.sidebar-label{padding-left:17px}}
@media(max-width:1150px){.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-section-grid,.dashboard-section-grid.lower-grid{grid-template-columns:1fr}}
@media(max-width:800px){.sidebar{width:225px;transform:translateX(-100%);transition:transform .2s ease;position:fixed;left:0;top:0}.sidebar nav a,.sidebar nav a:not(.active){font-size:13px;justify-content:flex-start;padding:11px 13px!important}.sidebar nav a span,.sidebar nav a:not(.active) span{font-size:13px}.sidebar nav a.active{padding:11px 13px!important}.sidebar .brand-copy,.sidebar .sidebar-help,.sidebar .profile{display:flex}.sidebar .brand > .brand-copy:last-child{font-size:13px}.sidebar .brand{padding:24px 17px}.sidebar .sidebar-footer{display:block}.sidebar-profile .profile{display:flex}.mobile-menu{display:grid}.app-shell.sidebar-open .sidebar{transform:none}.app-shell.sidebar-open .mobile-scrim{display:block;position:fixed;inset:0;background:rgba(10,16,28,.45);z-index:19}.main{width:100%;padding:25px 22px 60px}.dashboard-grid{grid-template-columns:1fr}}
@media(max-width:650px){.topbar{align-items:flex-start;gap:14px;flex-wrap:wrap}.topbar-right{width:100%;justify-content:flex-end}.global-search{margin-right:auto;flex:1;width:auto;max-width:none}.user-trigger-name,.user-trigger>svg{display:none}.topbar-new{order:4}.topbar-new span{display:none}.topbar-new{width:38px;padding:0}.main{padding:19px 14px 50px}.welcome{padding:23px}.welcome-deco{display:none}.stat-grid{grid-template-columns:repeat(2,1fr)}.popover-panel{right:0;max-width:calc(100vw - 28px)}.notification-panel{right:-45px}.form-grid{grid-template-columns:1fr}.form-grid .span-two{grid-column:auto}.dashboard-heading{align-items:flex-start;flex-direction:column;gap:12px}.dashboard-heading h2{font-size:23px}.date-chip{font-size:10px}.metric-grid{gap:10px}.metric-card{padding:16px;min-height:130px}.metric-card strong{font-size:30px}.health-grid{gap:6px}.health-grid>div{padding:8px}.health-grid strong{font-size:16px}.dashboard-section-grid{gap:14px}.workload-name{width:75px}}
