/* Proclaimers Digital visual system. Brand red: #ac3518. */
:root{
  color-scheme:light;
  --brand:#ac3518;--brand-hover:#8d2a13;--brand-soft:#f8eae5;
  --surface:#FFFFFF;--canvas:#f7f6f4;--surface-subtle:#fbf9f7;
  --text:#1D1D1F;--text-muted:#626267;--border:#E5E5EA;
  --shadow:none;--radius:10px;--sidebar-width:240px;
  --space-1:8px;--space-2:16px;--space-3:24px;--space-4:32px;--space-5:40px;
  --success:#277345;--danger:#ac3518;
}
html[data-theme=dark]{
  color-scheme:dark;
  --brand:#e68a70;--brand-hover:#f3a089;--brand-soft:#42251e;
  --surface:#222224;--canvas:#171719;--surface-subtle:#29292C;
  --text:#F5F5F7;--text-muted:#B6B6BB;--border:#3A3A3E;
  --shadow:none;--success:#65BD7F;--danger:#E47455;
}
html,body{background:var(--canvas);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue",Arial,sans-serif;font-size:14px;line-height:1.5}
body{font-weight:400}
h1,h2,h3,strong,b{font-family:inherit!important;font-weight:600!important;letter-spacing:-.025em}
button,input,select,textarea{font-family:inherit}
a,button,summary{transition:background-color .18s ease,color .18s ease,border-color .18s ease}
a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.app-shell{background:var(--canvas)}
.sidebar{width:240px;background:var(--surface);border-right:1px solid var(--border);color:var(--text-muted);box-shadow:none}
.brand{height:88px;padding:20px 24px;gap:12px;color:var(--text);letter-spacing:0}
.brand-logo{width:46px;height:46px;object-fit:cover;border-radius:8px;flex:none;background:#050505}
.brand-wordmark{display:flex;flex-direction:column;font-size:13px;font-weight:600;line-height:1.15;letter-spacing:.02em;white-space:nowrap;color:var(--text)}
.brand-wordmark small{font-size:10px;font-weight:500;color:var(--text-muted);letter-spacing:.11em;margin-top:5px}
.sidebar-label,.sidebar-help{display:none!important}
.sidebar nav{padding:8px 12px;gap:2px}
.sidebar nav a,.sidebar nav a.active{min-height:44px;padding:0 12px;border-radius:8px;border:0;gap:12px;font-size:14px;font-weight:500;color:var(--text-muted);background:transparent}
.sidebar nav a span,.sidebar nav a:not(.active) span{font-size:14px;font-weight:500;width:auto}
.sidebar nav a svg{width:18px;height:18px;color:#85858B;stroke-width:1.65}
.sidebar nav a:hover{background:var(--surface-subtle);color:var(--text)}
.sidebar nav a.active{background:var(--brand-soft);color:var(--brand);font-weight:600}
.sidebar nav a.active span{font-weight:600}
.sidebar nav a.active svg{color:var(--brand)}
.sidebar-footer{border-top:1px solid var(--border);padding:8px 12px 12px}
.sidebar-user-menu{position:relative}
.sidebar-profile{display:flex;align-items:center;gap:10px;list-style:none;cursor:pointer;padding:8px;border-radius:8px;margin:0}
.sidebar-profile:hover{background:var(--surface-subtle)}
.sidebar-profile::-webkit-details-marker{display:none}
.sidebar-profile>.profile{flex:1;min-width:0}
.sidebar-profile>.profile strong{font-size:13px;font-weight:500!important;color:var(--text)}
.sidebar-profile>.profile small{font-size:11px;color:var(--text-muted)}
.sidebar-profile>svg{color:var(--text-muted)}
.avatar{border-radius:50%;height:32px;width:32px;background:#EFEFED;color:var(--text);font-weight:600;box-shadow:none}
html[data-theme=dark] .avatar{background:#38383B}
.sidebar-user-menu .popover-panel{top:auto;bottom:calc(100% + 8px);left:0;right:auto;width:214px}
.main{width:100%;max-width:1280px;margin:0 auto;padding:32px 40px 64px}
.topbar{min-height:64px;padding:0 0 24px;margin-bottom:32px;border-bottom:1px solid var(--border);align-items:center}
.topbar-left{gap:16px}.topbar h1{font-size:26px;line-height:1.2;margin:0;color:var(--text);font-weight:600!important}
.topbar-right{gap:8px}
.global-search{height:40px;width:240px;border:1px solid var(--border);background:var(--surface);border-radius:10px;color:var(--text-muted);padding:0 12px}
.global-search svg,.notification-button svg{width:18px;height:18px;stroke-width:1.65;color:#85858B}
.global-search input{font-size:13px;color:var(--text);background:transparent}
.global-search kbd{font-size:11px;color:var(--text-muted);border-color:var(--border);background:var(--surface-subtle)}
.global-search:focus-within{border-color:var(--brand);box-shadow:0 0 0 2px var(--brand-soft)}
.icon-button{height:40px;width:40px;background:var(--surface);border:1px solid var(--border);border-radius:10px;color:var(--text-muted)}
.icon-button:hover{color:var(--brand);border-color:var(--border);background:var(--surface-subtle)}
.notification-dot{background:var(--brand);border-color:var(--surface)}
.popover-panel{border:1px solid var(--border);border-radius:10px;background:var(--surface);box-shadow:0 14px 36px rgba(0,0,0,.10);padding:8px}
.popover-title{font-size:13px;font-weight:600;color:var(--text);padding:8px 8px 12px}
.notification-panel a,.user-panel button{border-radius:8px;font-weight:500;color:var(--text)}
.notification-panel a:hover,.user-panel button:hover{background:var(--surface-subtle)}
.alert-icon{color:var(--text-muted)}
.topbar-new,.button{border-radius:8px;min-height:40px;padding:0 16px;font-size:13px;font-weight:600;box-shadow:none}
.topbar-new svg{width:18px;height:18px;stroke-width:1.65}
.button.primary{background:var(--brand);color:#fff;border:1px solid var(--brand);box-shadow:none}
.button.primary:hover{background:var(--brand-hover);border-color:var(--brand-hover)}
html[data-theme=dark] .button.primary{background:#B33414;border-color:#B33414;color:#fff}
html[data-theme=dark] .button.primary:hover{background:#9D2D12;border-color:#9D2D12}
.button.secondary{background:var(--surface);border:1px solid var(--border);color:var(--text)}
.panel,.stat-card,.metric-card,.auth-card{background:var(--surface);border:1px solid var(--border);border-radius:10px;box-shadow:none}
.stat-card:hover,.metric-card:hover{transform:none;border-color:var(--border);background:var(--surface-subtle)}
.welcome{background:var(--surface);color:var(--text);border:1px solid var(--border);box-shadow:none;border-radius:10px}
.welcome:after,.welcome-deco{display:none}
.welcome p:not(.eyebrow){color:var(--text-muted)}
.eyebrow,.welcome .eyebrow{font-size:11px!important;font-weight:500!important;letter-spacing:.06em!important;color:var(--text-muted)!important}
.pill,.pill.badge-neutral,.pill.badge-warning,.pill.badge-progress{background:var(--surface-subtle);border:1px solid var(--border);color:var(--text-muted);font-size:11px;font-weight:500;border-radius:999px;padding:3px 9px}
.pill.badge-success{background:var(--surface-subtle);border:1px solid var(--border);color:var(--text);font-size:11px;font-weight:500;border-radius:999px;padding:3px 9px}
.pill.badge-success:before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--success);margin-right:6px;vertical-align:middle}
.pill.badge-danger{background:var(--brand-soft);border:1px solid transparent;color:var(--brand);font-size:11px;font-weight:600;border-radius:999px;padding:3px 9px}
.alert{background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:10px;font-weight:500}
.alert.error{background:var(--brand-soft);color:var(--brand);border-color:var(--brand-soft)}
.row-icon,.check-icon,.empty-icon,.stat-icon,.deadline-date{color:var(--text-muted);background:var(--surface-subtle)}
.panel-head>a,.empty a,.table-link,.record-name:hover,.metric-foot,.search-arrow{color:var(--brand)}
.stat-card strong,.metric-card strong,.health-grid strong,.dashboard-heading h2{color:var(--text);font-weight:600!important}
.metric-danger strong,.metric-danger .metric-foot{color:var(--brand)}
th{background:var(--surface);color:var(--text-muted);font-size:11px;font-weight:500;position:sticky;top:0;z-index:1}
td{height:52px;border-top:1px solid var(--border);color:var(--text)}
tbody tr:hover{background:var(--surface-subtle)}
.count{background:var(--surface-subtle);color:var(--text-muted);border:1px solid var(--border);font-weight:500}
label{font-size:13px;font-weight:500;color:var(--text)}
input,select,textarea{min-height:44px;border-radius:10px;background:var(--surface);border:1px solid var(--border);color:var(--text);padding:10px 12px}
input:focus,select:focus,textarea:focus{border-color:var(--brand);box-shadow:0 0 0 2px var(--brand-soft)}
input:user-invalid,select:user-invalid,textarea:user-invalid{border-color:var(--brand)}
.empty-state{text-align:left}.empty-state .empty-icon{border-radius:10px}.empty-state h3{font-weight:600!important}
.auth-body{background:var(--canvas);min-height:100vh;display:grid;place-items:center;padding:24px}
.login-card{width:min(100%,420px);padding:40px;background:var(--surface);border:1px solid var(--border);border-radius:10px;box-shadow:none}
.login-brand{display:flex;align-items:center;gap:14px;color:var(--text)}
.login-brand img{width:58px;height:58px;object-fit:cover;border-radius:8px;background:#050505}
.login-brand>span{display:flex;flex-direction:column;font-size:15px;line-height:1.15;font-weight:600;letter-spacing:.01em}
.login-brand small{font-size:10px;font-weight:500;color:var(--text-muted);letter-spacing:.12em;margin-top:6px}
.login-title{margin:40px 0 32px}
.login-title h1,.auth-card h1{font-size:28px;font-weight:600!important;line-height:1.15;letter-spacing:-.035em;margin:0 0 8px;color:var(--text)}
.login-title p{margin:0;color:var(--text-muted);font-size:14px}
.login-card form{display:flex;flex-direction:column;gap:20px}
.login-card label{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:500}
.login-card input{height:44px;min-height:44px}
.login-card .button{height:44px;margin-top:4px}
.login-theme{position:fixed;right:24px;bottom:24px;display:flex;align-items:center;gap:8px;color:var(--text-muted);background:transparent;border:0;padding:8px;font-size:12px;font-weight:500;border-radius:8px}
.login-theme:hover{color:var(--brand);background:var(--surface)}
.login-theme svg{width:18px;height:18px;stroke-width:1.65}
.dashboard-intro{margin:0 0 24px}.dashboard-intro p{margin:0;color:var(--text-muted);font-size:13px}
.metric-grid{gap:16px;margin:0 0 24px}
.metric-card{min-height:152px;padding:24px;border-radius:10px;background:var(--surface);display:flex;flex-direction:column}
.metric-label{color:var(--text-muted);font-size:13px;font-weight:500}
.metric-card strong{font-size:32px;line-height:1.2;margin:20px 0 12px;letter-spacing:-.04em}
.metric-card.metric-untracked strong{font-size:16px;margin:27px 0 15px;color:var(--text-muted)}
.metric-foot{color:var(--text-muted);font-size:12px;font-weight:500}
.metric-card:hover .metric-foot{color:var(--brand)}
.metric-danger strong,.metric-danger .metric-foot{color:var(--brand)}
.dashboard-focus-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);gap:16px;align-items:stretch}
.dashboard-focus-grid>.panel{min-height:208px;padding:24px}
.dashboard-focus-grid .panel-head{margin-bottom:16px}
.dashboard-focus-grid .panel-head h2,.more-insights .panel-head h2{font-size:20px;font-weight:600!important}
.dashboard-focus-grid .panel-head a{font-size:12px;font-weight:500}
.dashboard-focus-grid .empty{padding:8px 0}
.deadline-row{min-height:60px;border-top:1px solid var(--border)}
.deadline-date{height:42px;width:44px;border-radius:8px;background:var(--surface-subtle);color:var(--text);border:1px solid var(--border)}
.deadline-date strong{font-size:15px;font-weight:600!important}.deadline-date small{font-size:10px;font-weight:500}
.workload-list{gap:16px}.workload-row .avatar{border-radius:50%}.workload-name{font-weight:500}.workload-row>strong{font-weight:500!important}
.workload-bar{background:var(--border)}.workload-bar span{background:#9B9BA0}.workload-bar span.overloaded{background:var(--brand)}
.more-insights{margin:32px 0 0}
.more-insights>summary{display:flex;align-items:center;gap:8px;color:var(--text-muted);font-size:13px;font-weight:500;cursor:pointer;list-style:none;width:max-content;padding:8px 0}
.more-insights>summary::-webkit-details-marker{display:none}.more-insights>summary:hover{color:var(--brand)}
.more-insights>summary svg{transition:transform .18s ease}.more-insights[open]>summary svg{transform:rotate(180deg)}
.more-insights>.dashboard-section-grid{margin:16px 0 0;gap:16px}
.more-insights .panel{padding:24px;min-height:220px}
.more-insights .health-grid>div{background:transparent;border:0;border-right:1px solid var(--border);border-radius:0;padding:4px 12px}
.more-insights .health-grid>div:first-child{padding-left:0}.more-insights .health-grid>div:last-child{border-right:0}
.health-dot.on-track,.health-dot.at-risk{background:#8E8E93}.health-dot.late{background:var(--brand)}
.health-label.health-on-track,.health-label.health-at-risk{background:var(--surface-subtle);color:var(--text-muted)}
.health-label.health-late{background:var(--brand-soft);color:var(--brand)}
.activity-dot{background:var(--text-muted)}
.mobile-scrim{background:rgba(0,0,0,.34)!important}
.list-panel{overflow:hidden}
.list-toolbar{padding:24px;gap:24px;border-bottom:1px solid var(--border)}
.list-toolbar h2{font-size:20px;line-height:1.3;font-weight:600!important;color:var(--text)}
.list-toolbar form{min-width:220px}
.list-toolbar input{height:40px;min-height:40px;width:240px;font-size:13px}
.page-tasks .list-toolbar{align-items:flex-end;flex-wrap:wrap}
.task-filters{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap}
.task-filters input[type=search]{width:180px}
.task-filters .filter-field{gap:5px;color:var(--text-muted);font-size:11px;font-weight:500}
.task-filters .filter-field select{height:40px;min-height:40px;width:164px;padding:8px 30px 8px 12px;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--text);font-size:13px}
.task-filters .filter-field select:focus-visible{border-color:var(--brand);outline:2px solid var(--brand-soft);outline-offset:1px}
.task-filters .button{height:40px;min-height:40px}
.task-filters .filter-clear{height:40px;display:inline-flex;align-items:center;padding:0 8px;color:var(--brand);font-size:13px}
.record-table{min-width:700px}
.record-table th{height:44px;padding:12px 24px;letter-spacing:.04em}
.record-table td{height:52px;padding:12px 24px;font-size:13px}
.record-table .record-name{font-weight:600;color:var(--text)}
.record-table .subline{font-size:11px;color:var(--text-muted)}
.record-table .actions{white-space:nowrap}
.record-table .table-link{color:var(--brand);font-weight:500}
.record-table .text-danger{color:var(--text-muted);font-weight:500}
.record-table .text-danger:hover{color:var(--brand)}
.record-table td.is-overdue{color:var(--brand);font-weight:600}
.team-avatar{display:inline-grid;place-items:center;width:28px;height:28px;margin-right:10px;border-radius:50%;background:var(--surface-subtle);border:1px solid var(--border);color:var(--text-muted);font-size:11px;font-weight:600;vertical-align:middle}
.page-users .record-table td:first-child{min-width:230px}
.page-users .record-table .subline{margin-left:38px}
.page-tasks .record-table td:first-child{min-width:230px}
.list-panel>.empty-state{padding:48px 32px 56px;min-height:190px}
.list-panel>.empty-state h3{margin:0 0 8px;font-size:18px;line-height:1.3;color:var(--text)}
.list-panel>.empty-state p{margin:0 0 16px;font-size:13px;color:var(--text-muted)}
.empty-action{display:inline-flex;align-items:center;min-height:36px;color:var(--brand);font-size:13px;font-weight:600}
.empty-action:hover{text-decoration:underline}
.form-panel{padding:32px;max-width:880px}
.form-panel .panel-head{align-items:flex-start;margin-bottom:32px}
.form-panel .panel-head h2{font-size:22px;font-weight:600!important;color:var(--text)}
.form-panel .panel-head>a{font-size:13px;font-weight:500}
.form-panel .form-grid{gap:24px}
.form-panel label{gap:8px}
.form-panel .form-actions{padding-top:24px;margin-top:32px;border-top:1px solid var(--border)}
@media(max-width:1100px){.main{padding:32px 24px 56px}.sidebar{width:240px}}
@media(max-width:1050px){.dashboard-focus-grid{grid-template-columns:1fr}.dashboard-focus-grid>.panel{min-height:200px}}
@media(max-width:800px){.sidebar{width:240px}.sidebar nav a,.sidebar nav a:not(.active){justify-content:flex-start;padding:0 12px!important;font-size:14px}.sidebar nav a span,.sidebar nav a:not(.active) span{font-size:14px}.sidebar .brand{padding:20px 24px}.sidebar .brand > .brand-wordmark:last-child{display:flex;font-size:13px}.sidebar .sidebar-footer{display:block}.sidebar-profile .profile{display:flex}.main{padding:24px 24px 48px;max-width:none}.mobile-menu{display:inline-grid}}
@media(max-width:650px){.main{padding:20px 16px 40px}.topbar{align-items:flex-start;gap:16px;margin-bottom:24px}.topbar h1{font-size:24px}.topbar-right{width:100%;gap:8px}.global-search{min-width:0;width:auto;flex:1;margin-right:0}.topbar-new{order:3;width:40px;padding:0}.topbar-new span{display:none}.notification-panel{right:-48px}.popover-panel{max-width:calc(100vw - 32px)}.brand-wordmark{font-size:13px}.stat-grid,.metric-grid{gap:8px}.panel{padding:16px}.login-card{padding:28px}.login-title{margin:32px 0 24px}.login-theme{right:16px;bottom:16px}.metric-grid{gap:8px}.metric-card{min-height:130px;padding:16px}.metric-card strong{font-size:28px;margin:16px 0 10px}.metric-card.metric-untracked strong{font-size:14px;margin:20px 0 16px}.dashboard-focus-grid>.panel,.more-insights .panel{padding:16px}.dashboard-focus-grid .panel-head h2{font-size:18px}}
@media(max-width:650px){.list-panel{padding:0}.list-toolbar{padding:20px 16px;display:flex;flex-direction:column;align-items:stretch;gap:16px}.list-toolbar form,.list-toolbar input{width:100%;min-width:0}.list-panel>.empty-state{padding:32px 20px;min-height:150px}.form-panel{padding:20px}.form-panel .panel-head{gap:16px;flex-direction:column;margin-bottom:24px}.form-panel .form-grid{gap:20px}.form-panel .form-actions{flex-wrap:wrap}.record-table,.record-table tbody,.record-table tr,.record-table td{display:block;width:100%;min-width:0}.record-table thead{display:none}.record-table tr{padding:12px 16px;border-top:1px solid var(--border)}.record-table tr:first-child{border-top:0}.record-table td{display:flex;justify-content:space-between;align-items:center;gap:16px;height:auto;min-height:40px;padding:8px 0;border:0;white-space:normal;text-align:right}.record-table td:first-child{justify-content:flex-start;text-align:left;font-size:14px}.record-table td:not(:first-child)::before{content:attr(data-label);flex:none;color:var(--text-muted);font-size:12px;text-align:left}.record-table td.actions{justify-content:flex-end;gap:16px}.record-table td.actions::before{margin-right:auto}.record-table .actions .table-link,.record-table .actions .text-danger{margin-left:0}}
@media(max-width:650px){.page-users .record-table .subline{margin-left:0}.page-users .record-table td:first-child,.page-tasks .record-table td:first-child{min-width:0}}
@media(max-width:650px){.task-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.task-filters input[type=search]{grid-column:1/-1;width:100%}.task-filters .filter-field select{width:100%}.task-filters .button,.task-filters .filter-clear{width:100%;justify-content:center}}
