:root{
  --bg:#f5f7fa;--panel:#fff;--text:#172033;--muted:#6b7280;--line:#e5e7eb;
  --accent:#173b62;--accent2:#24598d;--danger:#b42318;--warning:#b54708;
  --success:#027a48;--shadow:0 1px 3px rgba(16,24,40,.08)
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
a{color:var(--accent2);text-decoration:none}
a:hover{text-decoration:underline}
.topbar{min-height:72px;background:#fff;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:12px 28px;gap:20px}
.brand{display:flex;align-items:center;gap:12px}.brand-mark{width:42px;height:42px;border-radius:10px;background:var(--accent);color:#fff;display:grid;place-items:center;font-weight:800;font-size:20px}
.brand strong,.brand small{display:block}.brand small{color:var(--muted);margin-top:2px}
.userbox{display:flex;align-items:center;gap:14px;font-size:14px}
.nav{display:flex;gap:4px;padding:0 28px;background:#fff;border-bottom:1px solid var(--line);overflow:auto}
.nav a,.nav-disabled{padding:13px 14px;white-space:nowrap;font-size:14px;border-bottom:3px solid transparent}
.nav a.active{border-bottom-color:var(--accent);font-weight:700;color:var(--accent)}
.nav-disabled{color:#a1a8b3;cursor:not-allowed}
.container{max-width:1280px;margin:0 auto;padding:28px}
.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:20px}
.page-head h1{margin:0;font-size:28px}.page-head p{margin:6px 0 0;color:var(--muted)}
.cards{display:grid;grid-template-columns:repeat(6,1fr);gap:12px;margin-bottom:22px}
.metric{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:16px;box-shadow:var(--shadow);color:var(--text)}
.metric:hover{text-decoration:none;border-color:#b8c5d3}.metric span{display:block;font-size:13px;color:var(--muted);min-height:34px}.metric strong{display:block;font-size:28px;margin-top:4px}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:18px}
.panel{background:var(--panel);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);padding:18px;margin-bottom:18px}
.panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.panel h2{font-size:18px;margin:0}
.agenda-row,.list-row{display:flex;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--line)}.agenda-row:first-child,.list-row:first-child{border-top:0}
.agenda-time{width:82px;font-weight:700;font-size:13px}.agenda-main,.list-row>div:first-child{flex:1}.agenda-main a,.list-row a{font-weight:700;color:var(--text)}
small{display:block;color:var(--muted);margin-top:4px}
.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;min-width:780px}th,td{text-align:left;padding:12px 10px;border-top:1px solid var(--line);vertical-align:top;font-size:14px}th{font-size:12px;text-transform:uppercase;letter-spacing:.03em;color:var(--muted);background:#fbfcfd}.activity-title{font-weight:700;color:var(--text)}
.badge{display:inline-block;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:700;white-space:nowrap}
.badge-critical{background:#fee4e2;color:#b42318}.badge-high{background:#ffead5;color:#b54708}.badge-normal{background:#e0f2fe;color:#075985}.badge-low{background:#f2f4f7;color:#475467}
.status-inbox{background:#f2f4f7;color:#475467}.status-planned{background:#e0f2fe;color:#075985}.status-in-progress{background:#fef0c7;color:#93370d}.status-waiting-delegated{background:#f4ebff;color:#6941c6}.status-completed{background:#d1fadf;color:#027a48}.status-deferred{background:#f2f4f7;color:#475467}.status-cancelled{background:#fee4e2;color:#b42318}
.btn{display:inline-flex;align-items:center;justify-content:center;border:1px solid #cfd5dc;background:#fff;color:var(--text);border-radius:8px;padding:10px 14px;font-weight:700;font-size:14px;cursor:pointer;text-decoration:none}.btn:hover{text-decoration:none;background:#f8fafc}
.btn-primary{background:var(--accent);border-color:var(--accent);color:#fff}.btn-primary:hover{background:var(--accent2)}.btn-small{padding:6px 9px;font-size:12px}.btn-large{padding:13px 18px;font-size:16px}
.filters{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:14px}.filters>a{padding:7px 10px;border-radius:7px;color:#475467}.filters>a.selected{background:#e8eef5;color:var(--accent);font-weight:700}.filter-form{margin-left:auto}
.stack{display:grid;gap:16px}label{display:grid;gap:7px;font-size:13px;font-weight:700;color:#344054}input,select,textarea{width:100%;font:inherit;color:var(--text);background:#fff;border:1px solid #cfd5dc;border-radius:8px;padding:10px 11px}textarea{resize:vertical}input:focus,select:focus,textarea:focus{outline:2px solid #b8d4ef;border-color:var(--accent2)}
.form-grid{display:grid;gap:14px}.form-grid.two{grid-template-columns:repeat(2,1fr)}.form-grid.three{grid-template-columns:repeat(3,1fr)}.form-grid.four{grid-template-columns:repeat(4,1fr)}
.actions{display:flex;gap:10px}.empty{padding:28px;text-align:center;color:var(--muted);background:#fbfcfd;border-radius:8px}
.flash{padding:12px 14px;border-radius:8px;margin-bottom:16px}.flash-success{background:#d1fadf;color:#05603a}.flash-error{background:#fee4e2;color:#912018}
.auth-card{max-width:460px;margin:50px auto;background:#fff;border:1px solid var(--line);border-radius:14px;padding:24px;box-shadow:var(--shadow)}.auth-card h1{margin-top:0}.auth-card p{color:var(--muted)}
.narrow{max-width:760px;margin:0 auto}.capture-card{padding:26px}.capture-label{font-size:17px}.capture-label textarea{font-size:18px;line-height:1.5}.muted{color:var(--muted);font-weight:400}
.footer{padding:28px;text-align:center;color:var(--muted);font-size:12px}
@media(max-width:1050px){.cards{grid-template-columns:repeat(3,1fr)}.form-grid.four{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.topbar{padding:10px 16px}.userbox span{display:none}.nav{padding:0 10px}.container{padding:18px 14px}.page-head{align-items:stretch;flex-direction:column}.page-head .btn{align-self:flex-start}.cards{grid-template-columns:repeat(2,1fr)}.two-col{grid-template-columns:1fr}.form-grid.two,.form-grid.three,.form-grid.four{grid-template-columns:1fr}.filter-form{width:100%;margin-left:0}.brand small{display:none}}

.calendar-toolbar{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-bottom:14px}.calendar-nav,.view-switch{display:flex;gap:7px;flex-wrap:wrap}.view-switch a{padding:9px 13px;border-radius:8px;color:#475467}.view-switch a.selected{background:var(--accent);color:#fff;font-weight:700}.calendar-panel{padding:0;overflow:hidden}.month-grid{display:grid;grid-template-columns:repeat(7,1fr)}.month-header{background:#f8fafc;border-bottom:1px solid var(--line)}.month-header>div{padding:10px;text-align:center;font-size:12px;font-weight:800;color:var(--muted)}.month-cell{min-height:132px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);padding:8px;background:#fff}.month-cell:nth-child(7n){border-right:0}.muted-cell{background:#fafbfc}.month-date{font-weight:800;margin-bottom:6px}.month-date a{color:var(--text)}.is-today{box-shadow:inset 0 0 0 2px #8fb5d8}.cal-items{display:grid;gap:5px}.cal-item{display:block;padding:5px 6px;border-radius:6px;background:#edf3f8;color:var(--accent);font-size:12px;line-height:1.25;overflow:hidden}.cal-item:hover{text-decoration:none;background:#e1ebf4}.cal-time{font-weight:800}.cal-done{text-decoration:line-through;opacity:.6}.cal-more{font-size:12px;font-weight:700}.week-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:8px}.week-day{padding:12px;min-height:300px}.week-day-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding-bottom:9px;margin-bottom:9px}.week-empty{font-size:12px;color:var(--muted)}.day-row{display:flex;gap:14px;align-items:center;padding:14px 0;border-top:1px solid var(--line)}.day-row:first-child{border-top:0}.day-time{width:86px;font-weight:800;font-size:13px}.day-main{flex:1}.day-main>a{font-weight:800;color:var(--text)}.review-cards{grid-template-columns:repeat(5,1fr)}.area-bars{display:grid;gap:14px}.area-bar-label{display:flex;justify-content:space-between;gap:10px;font-size:13px;margin-bottom:5px}.bar-track{height:9px;background:#eef1f4;border-radius:999px;overflow:hidden}.bar-fill{height:100%;background:var(--accent);border-radius:999px}
@media(max-width:1100px){.week-grid{grid-template-columns:repeat(2,1fr)}.review-cards{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.calendar-toolbar{align-items:stretch;flex-direction:column}.month-grid{min-width:840px}.calendar-panel{overflow:auto}.week-grid{grid-template-columns:1fr}.review-cards{grid-template-columns:repeat(2,1fr)}.day-row{align-items:flex-start;flex-wrap:wrap}.day-main{min-width:60%}}

.calendar-period-title{display:inline-block;margin-top:10px;padding:10px 18px;font-size:30px;line-height:1.15;font-weight:800;color:var(--accent);background:#eef4f9;border-left:5px solid var(--accent);border-radius:8px;letter-spacing:-.02em}

.weekly-period-title{display:inline-block;margin-top:10px;padding:9px 16px;font-size:22px;font-weight:800;color:#173b62;background:#dce9f5;border:1px solid #b7ccdf;border-left:5px solid #173b62;border-radius:8px}
.week-nav-active{background:#173b62!important;color:#fff!important;border-color:#173b62!important;box-shadow:0 2px 5px rgba(23,59,98,.18)}

/* PATC v0.2.3 — Dashboard Executive Visual Polish */
.cards .metric{
    position:relative;
    overflow:hidden;
    border-top-width:4px;
    transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease;
}
.cards .metric:hover{
    transform:translateY(-2px);
    box-shadow:0 5px 14px rgba(16,24,40,.10);
}
.cards .metric span{
    font-size:13px;
    font-weight:700;
    color:#475467;
    letter-spacing:.01em;
}
.cards .metric strong{
    font-size:34px;
    line-height:1;
    margin-top:9px;
    color:#172033;
}

.cards .metric:nth-child(1){
    border-top-color:#2563eb;
    background:linear-gradient(180deg,#f4f8ff 0%,#ffffff 70%);
}
.cards .metric:nth-child(2){
    border-top-color:#d97706;
    background:linear-gradient(180deg,#fff8ed 0%,#ffffff 70%);
}
.cards .metric:nth-child(3){
    border-top-color:#c92a2a;
    background:linear-gradient(180deg,#fff5f5 0%,#ffffff 70%);
}
.cards .metric:nth-child(4){
    border-top-color:#7c3aed;
    background:linear-gradient(180deg,#faf7ff 0%,#ffffff 70%);
}
.cards .metric:nth-child(5){
    border-top-color:#0891b2;
    background:linear-gradient(180deg,#f2fbfd 0%,#ffffff 70%);
}
.cards .metric:nth-child(6){
    border-top-color:#15803d;
    background:linear-gradient(180deg,#f3fbf5 0%,#ffffff 70%);
}

.cards .metric:nth-child(1) strong{color:#1d4ed8}
.cards .metric:nth-child(2) strong{color:#b45309}
.cards .metric:nth-child(3) strong{color:#b42318}
.cards .metric:nth-child(4) strong{color:#6941c6}
.cards .metric:nth-child(5) strong{color:#0e7490}
.cards .metric:nth-child(6) strong{color:#027a48}

.panel{
    border-color:#dbe2ea;
}
.panel-head{
    padding-bottom:10px;
    border-bottom:1px solid #edf0f3;
}
.panel-head h2{
    color:#172033;
    font-weight:800;
}
.panel-head a{
    font-weight:700;
}

.agenda-time{
    color:#173b62;
}
.empty{
    color:#667085;
    background:#f8fafc;
    border:1px dashed #d7dee7;
}


/* PATC v0.2.3 — Dashboard Livelier Executive Treatment */

/* Today / executive heading */
.page-head{
    padding:18px 20px;
    background:linear-gradient(135deg,#f8fbff 0%,#eef5fb 100%);
    border:1px solid #dbe7f1;
    border-radius:14px;
    box-shadow:0 2px 7px rgba(23,59,98,.05);
}
.page-head h1{
    color:#102f50;
    font-weight:850;
}
.page-head p{
    color:#5e6f82;
}

/* Main action button */
.page-head .btn-primary{
    box-shadow:0 3px 8px rgba(23,59,98,.18);
}
.page-head .btn-primary:hover{
    transform:translateY(-1px);
    box-shadow:0 5px 12px rgba(23,59,98,.22);
}

/* Executive metric cards */
.cards .metric{
    box-shadow:0 3px 9px rgba(16,24,40,.08);
}
.cards .metric:hover{
    transform:translateY(-3px);
    box-shadow:0 8px 18px rgba(16,24,40,.12);
}

/* Working panels */
.two-col .panel,
.two-col + .panel{
    position:relative;
    overflow:hidden;
}

.two-col .panel:first-child{
    border-left:4px solid #2563eb;
}
.two-col .panel:nth-child(2){
    border-left:4px solid #d97706;
}
.two-col + .panel{
    border-left:4px solid #7c3aed;
}

/* Slightly stronger section headers */
.panel-head h2{
    font-size:19px;
    letter-spacing:-.01em;
}

/* Activity rows */
.list-row,
.agenda-row{
    border-radius:8px;
    padding-left:8px;
    padding-right:8px;
    transition:background .15s ease;
}
.list-row:hover,
.agenda-row:hover{
    background:#f7fafc;
}

/* Stronger empty-state containers */
.empty{
    background:linear-gradient(180deg,#fbfcfd 0%,#f7f9fb 100%);
}

/* Navigation active state slightly stronger */
.nav a.active{
    color:#102f50;
    border-bottom-color:#173b62;
    background:linear-gradient(180deg,transparent 75%,#eef4f9 100%);
}

/* Footer softer */
.footer{
    color:#8491a1;
}


/* PATC v0.2.3 — Dashboard Toned Executive Palette */

/* Softer dashboard page atmosphere */
body{
    background:#eef1f5;
}

/* Executive heading area */
.page-head{
    background:linear-gradient(135deg,#f4f6f8 0%,#e9eef3 100%);
    border-color:#d3dbe4;
    box-shadow:0 2px 6px rgba(23,59,98,.04);
}
.page-head h1{
    color:#17324d;
}
.page-head p{
    color:#667585;
}

/* Tone down metric cards */
.cards .metric{
    box-shadow:0 2px 7px rgba(16,24,40,.07);
    background:#f8fafb;
}
.cards .metric:hover{
    transform:translateY(-2px);
    box-shadow:0 5px 12px rgba(16,24,40,.09);
}

/* Softer semantic card tones */
.cards .metric:nth-child(1){
    border-top-color:#4b6f96;
    background:linear-gradient(180deg,#f1f4f7 0%,#fafbfc 72%);
}
.cards .metric:nth-child(2){
    border-top-color:#9b7441;
    background:linear-gradient(180deg,#f7f3ed 0%,#fbfaf8 72%);
}
.cards .metric:nth-child(3){
    border-top-color:#9c5555;
    background:linear-gradient(180deg,#f8f1f1 0%,#fbf9f9 72%);
}
.cards .metric:nth-child(4){
    border-top-color:#75638f;
    background:linear-gradient(180deg,#f5f2f7 0%,#faf9fb 72%);
}
.cards .metric:nth-child(5){
    border-top-color:#557f87;
    background:linear-gradient(180deg,#eff5f5 0%,#f9fbfb 72%);
}
.cards .metric:nth-child(6){
    border-top-color:#5f8168;
    background:linear-gradient(180deg,#f1f5f2 0%,#fafbfa 72%);
}

/* Muted metric numbers */
.cards .metric:nth-child(1) strong{color:#3f6286}
.cards .metric:nth-child(2) strong{color:#856133}
.cards .metric:nth-child(3) strong{color:#8d4444}
.cards .metric:nth-child(4) strong{color:#66547e}
.cards .metric:nth-child(5) strong{color:#466f77}
.cards .metric:nth-child(6) strong{color:#4e7458}

/* Panels softer, still executive */
.panel{
    background:#fafbfc;
    border-color:#d9e0e7;
    box-shadow:0 2px 6px rgba(16,24,40,.05);
}

/* Tone down section accent bars */
.two-col .panel:first-child{
    border-left-color:#4b6f96;
}
.two-col .panel:nth-child(2){
    border-left-color:#9b7441;
}
.two-col + .panel{
    border-left-color:#75638f;
}

/* Softer empty-state treatment */
.empty{
    background:#f4f6f8;
    border-color:#d7dee5;
    color:#6d7986;
}

/* Keep actions authoritative, not bright */
.btn-primary{
    background:#173b62;
    border-color:#173b62;
}
.btn-primary:hover{
    background:#244d73;
}


/* PATC v0.2.3 — Low-Glare Executive Master Palette */

/* Main workspace */
body{
    background:#dfe5eb;
    color:#172033;
}

/* Header and primary navigation */
.topbar{
    background:#e9edf1;
    border-bottom-color:#cbd4dd;
}
.nav{
    background:#e6ebf0;
    border-bottom-color:#cbd4dd;
}
.nav a{
    color:#294a6b;
}
.nav a.active{
    color:#102f50;
    background:#dce4ec;
}

/* Primary working surfaces */
.panel{
    background:#eef2f5;
    border-color:#cfd8e1;
    box-shadow:0 2px 6px rgba(16,24,40,.06);
}

/* Executive heading blocks */
.page-head{
    background:linear-gradient(135deg,#e8edf2 0%,#dde4eb 100%);
    border-color:#c8d2dc;
}

/* Metric cards */
.cards .metric{
    background:#edf1f4;
    border-color:#ccd5de;
}

/* Tables */
table{
    background:#eef2f5;
}
th{
    background:#e3e8ed;
    color:#596777;
}
td{
    background:#f0f3f6;
    border-top-color:#d5dce4;
}

/* Form controls */
input,
select,
textarea{
    background:#f2f4f6;
    border-color:#bcc7d2;
    color:#172033;
}
input:focus,
select:focus,
textarea:focus{
    background:#f5f7f9;
}

/* Empty states */
.empty{
    background:#e8edf1;
    border-color:#cbd4dc;
    color:#697685;
}

/* Calendar surfaces */
.month-cell,
.week-day{
    background:#edf1f4;
}
.muted-cell{
    background:#e4e9ee;
}
.month-header{
    background:#dfe5ea;
}

/* Activity / list hover */
.list-row:hover,
.agenda-row:hover{
    background:#e5ebf0;
}

/* Footer */
.footer{
    color:#758290;
}

/* Keep executive controls authoritative */
.btn{
    background:#edf1f4;
    border-color:#bfc9d3;
}
.btn:hover{
    background:#e3e9ee;
}
.btn-primary{
    background:#173b62;
    border-color:#173b62;
    color:#fff;
}
.btn-primary:hover{
    background:#244d73;
}


/* PAT v0.3.1 — Official Branding Shell */
:root{
  --pat-navy:#173b62;
  --pat-navy-deep:#102f50;
  --pat-steel:#315d82;
  --pat-steel-soft:#4f789b;
  --pat-mist:#dfe6ec;
  --pat-surface:#e9eef2;
  --pat-surface-2:#f0f3f6;
  --pat-line:#c9d3dc;
}

/* Official branded masthead */
.topbar{
  min-height:86px;
  padding:12px 28px;
  background:linear-gradient(135deg,#102f50 0%,#173b62 58%,#28577c 100%)!important;
  border-bottom:1px solid #315d82!important;
  box-shadow:0 4px 14px rgba(16,47,80,.16);
}
.brand{
  gap:14px;
}
.brand-logo{
  width:58px;
  height:58px;
  object-fit:contain;
  flex:0 0 58px;
  border-radius:14px;
  filter:drop-shadow(0 3px 6px rgba(0,0,0,.18));
}
.brand strong{
  color:#f7fafc!important;
  font-size:18px;
  line-height:1.15;
  letter-spacing:.005em;
}
.brand small{
  color:#bfd0df!important;
  font-size:12.5px;
  margin-top:4px;
}
.userbox{
  color:#ecf3f8!important;
}
.userbox a{
  color:#c9deed!important;
  font-weight:700;
}
.userbox a:hover{
  color:#fff!important;
}

/* Concept-board inspired navigation */
.nav{
  padding:7px 28px!important;
  gap:7px!important;
  background:#244b6d!important;
  border-bottom:1px solid #315d82!important;
  box-shadow:0 2px 7px rgba(16,47,80,.10);
}
.nav a{
  padding:10px 13px!important;
  border:0!important;
  border-radius:8px;
  color:#dce8f1!important;
  font-weight:600;
}
.nav a:hover{
  background:#315d82!important;
  color:#fff!important;
  text-decoration:none;
}
.nav a.active{
  background:#dce6ee!important;
  color:#173b62!important;
  box-shadow:0 2px 5px rgba(0,0,0,.10);
  font-weight:800;
}

/* Low-glare executive workspace */
body{
  background:#dce3e9!important;
}
.container{
  padding-top:26px;
}
.panel,
.cards .metric,
.auth-card{
  border-color:#c7d1da!important;
}
.page-head{
  border-color:#c6d0da!important;
}

/* Login / setup official brand treatment */
.auth-card{
  background:#e9eef2!important;
  max-width:520px;
}
.auth-branding{
  display:flex;
  justify-content:center;
  padding:2px 0 18px;
  margin-bottom:16px;
  border-bottom:1px solid #c7d1da;
}
.auth-brand-logo{
  display:block;
  width:min(100%,410px);
  max-height:150px;
  object-fit:contain;
}

/* Polished responsive shell */
@media(max-width:760px){
  .topbar{padding:10px 14px;min-height:74px}
  .brand-logo{width:48px;height:48px;flex-basis:48px}
  .brand strong{font-size:16px}
  .brand small{display:block!important;font-size:11px}
  .nav{padding:7px 10px!important}
  .nav a{padding:9px 11px!important}
}

/* PAT v0.4 — Team Work & Assignment UI */
.form-section-title{
  margin:8px 0 -4px;
  padding:9px 12px;
  border-left:4px solid #315d82;
  border-radius:7px;
  background:#dfe7ee;
  color:#173b62;
  font-weight:850;
  letter-spacing:.01em;
}
.readout{
  min-height:42px;padding:10px 11px;border:1px solid #c2ccd5;border-radius:8px;
  background:#e7ecf0;color:#34495e;font-weight:700;
}
.checkbox-card{
  align-content:start;padding:10px 12px;border:1px solid #c6d0d9;border-radius:9px;background:#e7ecf0;
}
.checkbox-card span{display:flex;align-items:center;gap:9px}
.checkbox-card input{width:auto}
.progress-pill{
  position:relative;display:inline-flex;align-items:center;justify-content:center;overflow:hidden;
  min-width:82px;height:25px;border:1px solid #b8c6d2;border-radius:999px;background:#dce4eb;color:#173b62;
}
.progress-pill>span{position:absolute;inset:0 auto 0 0;background:#9fb8cc;opacity:.55}
.progress-pill strong{position:relative;z-index:1;font-size:12px}
.progress-preview{margin-top:6px}
.team-cards{grid-template-columns:repeat(5,1fr)}
.metric-danger{border-top-color:#9c5555!important}
.metric-attention{border-top-color:#9b7441!important}
.attention-flag{display:inline-block;padding:5px 8px;border-radius:999px;background:#efe1c9;color:#78521f;font-weight:800;font-size:12px}
.text-danger{color:#8d4444;font-weight:800}
.text-attention{color:#856133;font-weight:800}
.team-filter-form{display:flex;gap:8px;align-items:center;flex-wrap:wrap;width:100%}
.team-filter-form select{width:auto;min-width:155px}
.inline-check{display:flex;align-items:center;gap:7px;padding:9px 10px;border:1px solid #c8d1da;border-radius:8px;background:#e7ecf0}
.inline-check input{width:auto}
.people-layout{align-items:start}
.role-guide p{margin:0;padding:10px 0;border-top:1px solid #cfd8e0}
.role-guide p:first-child{border-top:0}
.user-actions{display:flex;gap:8px;align-items:flex-start;flex-wrap:wrap}
.user-actions form{margin:0}
.user-actions details{min-width:150px}
.user-actions summary{cursor:pointer;color:#173b62;font-weight:700}
.reset-form{display:flex;gap:6px;margin-top:7px!important}
.reset-form input{min-width:190px}
@media(max-width:1050px){.team-cards{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.team-cards{grid-template-columns:repeat(2,1fr)}.team-filter-form select{width:100%}.inline-check{width:100%}}
/* PAT v0.4.1 — Status-Controlled Workflow */
.workflow-stage-panel{border-left:5px solid #315d82}
.workflow-stage-head{display:flex;justify-content:space-between;gap:22px;align-items:flex-start;margin-bottom:12px}
.workflow-stage-head h2{margin:2px 0 4px;font-size:30px;color:#173b62}
.eyebrow{display:block;text-transform:uppercase;letter-spacing:.08em;font-size:11px;font-weight:850;color:#60788d}
.stage-meta{min-width:170px;padding:12px 14px;border:1px solid #c5d0da;border-radius:10px;background:#e8edf1;display:grid;gap:3px}
.stage-meta strong{font-size:12px;color:#4e6679;text-transform:uppercase;letter-spacing:.04em}
.stage-meta span{font-size:18px;font-weight:850;color:#173b62}
.workflow-trust-note{margin:12px 0 0;padding:10px 12px;border-radius:8px;background:#e3ebf1;color:#37546b}
.workflow-action-form{margin-top:16px;padding-top:14px;border-top:1px solid #c9d3dc}
.workflow-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.status-to-do{background:#e4e8ec;color:#334b5f}
.status-doing{background:#dce9f5;color:#174e79}
.status-for-review{background:#f1e8c9;color:#755918}
.status-presented{background:#e8ddf0;color:#68467f}
.status-approved{background:#dcebdc;color:#32613a}
.status-done{background:#d8eadf;color:#275f3a}
.status-waiting-blocked{background:#ece1d5;color:#745335}
.status-deferred{background:#e6e1e9;color:#61546a}
.status-cancelled{background:#eadada;color:#7b4040}
.metric-review{border-top-color:#8c743c!important}
.weekly-period-title,.calendar-period-title{
  margin:0 0 18px;padding:13px 17px;border-left:5px solid #173b62;border-radius:10px;
  background:#dce9f5;color:#173b62;font-size:19px;font-weight:850;
}
@media(max-width:760px){.workflow-stage-head{display:block}.stage-meta{margin-top:12px}.workflow-actions .btn{width:100%}}
/* PAT v0.4.2 — Workflow Review Workspace */
.notice-panel{border-left:5px solid #9b7441;background:#e8edf1}
.notification-count{display:inline-flex;min-width:25px;height:25px;align-items:center;justify-content:center;border-radius:999px;background:#173b62;color:#fff;font-size:12px}
.notification-list{display:grid;gap:8px}
.notification-row{display:grid;grid-template-columns:34px 1fr;gap:10px;padding:11px 12px;border:1px solid #c5d0d9;border-radius:9px;background:#f0f3f5;text-decoration:none;color:#263f54}
.notification-row:hover{background:#e6edf2}.notification-row.is-read{opacity:.68}
.notification-icon{width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#d5e2ec;color:#173b62;font-weight:900}
.notification-row p{margin:3px 0 4px}.notification-row small{color:#637789}.notification-full{gap:10px}
.files-panel{border-left:4px solid #607d94}.file-upload-form{padding:12px;border:1px solid #cad4dc;border-radius:10px;background:#e8edf1;margin-bottom:14px}
.approved-file{display:inline-block;padding:4px 8px;border-radius:999px;background:#d8eadf;color:#275f3a;font-weight:800;font-size:12px}
.review-submission-card{margin-top:14px;padding:13px 14px;border:1px solid #c4d0da;border-radius:10px;background:#e7edf2}.review-submission-card p{margin:5px 0}
.submitted-files{display:flex;gap:7px;flex-wrap:wrap;margin:8px 0}.submitted-files a{display:inline-block;padding:5px 8px;border-radius:7px;background:#d7e3ec}
.action-bar-panel{border-left:5px solid #173b62}.action-bar{display:flex;gap:8px;flex-wrap:wrap;padding-bottom:14px}.action-workflow{border-top:1px solid #c5d0d9;padding-top:14px}
.review-file-selector{margin-top:10px;padding:12px;border:1px solid #c5d0d9;border-radius:9px;background:#e8edf1}.review-file-selector p{margin:4px 0 8px}.review-file-selector label{display:block;margin:7px 0;font-weight:600}.review-file-selector input{width:auto;margin-right:6px}
@media(max-width:760px){.action-bar .btn,.workflow-actions .btn{width:100%}.notification-row{grid-template-columns:30px 1fr}}

/* PAT v0.4.2 — File Upload Field Alignment */
.file-upload-form .form-grid.three{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  align-items:start;
}
.file-upload-form .form-grid.three > label{
  display:flex;
  flex-direction:column;
  gap:7px;
  min-width:0;
}
.file-upload-form input[type="file"],
.file-upload-form select,
.file-upload-form input[type="text"]{
  width:100%;
  min-height:48px;
  box-sizing:border-box;
}
.file-upload-form input[type="file"]{
  padding:8px;
}
@media(max-width:900px){
  .file-upload-form .form-grid.three{grid-template-columns:1fr;}
}

/* PAT v0.4.2 three-column field alignment */
.form-grid.three>label{align-self:start}.form-grid.three>label>select,.form-grid.three>label>.readout{min-height:52px}

/* PAT v0.4.2 accountability warning */
.workflow-inline-warning{
    margin:12px 0;
    padding:12px 14px;
    border:1px solid #e1a39e;
    border-radius:8px;
    background:#fee4e2;
    color:#912018;
    font-weight:700;
}
/* PAT v0.4.2 upload UX guard */
.file-selection-status{
    margin-top:6px;
    min-height:18px;
    font-size:.9rem;
}
.file-selection-error{
    color:#912018;
    font-weight:700;
}
.upload-status{
    margin:8px 0;
    min-height:18px;
    font-weight:700;
}
.file-upload-form.is-uploading .form-grid{
    pointer-events:none;
    opacity:.72;
}
.file-upload-form.is-uploading button{
    cursor:wait;
}
/* PAT v0.4.2 notification readability */
.notification-message-main{
    margin-bottom:4px;
}
.notification-detail-line{
    display:block;
    margin:2px 0 5px;
    line-height:1.45;
}
.notification-detail-line strong{
    font-weight:700;
}

/* PAT v0.4.2 — Pre-live My Work dashboard refinement */
.my-calendar-quick{border-left:5px solid #24598d;padding:16px 18px}
.my-calendar-head{align-items:flex-start}
.my-calendar-head p{margin:4px 0 0;color:var(--muted);font-size:13px}
.my-calendar-links{white-space:nowrap;font-weight:700}
.my-calendar-strip{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin:12px 0}
.my-calendar-day{display:grid;gap:2px;min-width:0;padding:9px 7px;border:1px solid var(--line);border-radius:9px;background:#f8fafc;color:var(--text);text-align:center}
.my-calendar-day:hover{background:#eef4f8;text-decoration:none;border-color:#b8c5d3}
.my-calendar-day>span{font-size:11px;font-weight:800;color:var(--muted);letter-spacing:.04em}
.my-calendar-day>strong{font-size:19px;color:var(--accent)}
.my-calendar-day>small{margin:0;font-size:11px}
.my-calendar-day.is-today{box-shadow:inset 0 0 0 2px #8fb5d8;background:#edf5fb}
.my-calendar-day.has-items{border-color:#9fb7ca}
.my-calendar-upcoming{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px;border-top:1px solid var(--line);padding-top:10px}
.my-calendar-item{display:grid;grid-template-columns:70px minmax(0,1fr) auto;gap:10px;align-items:center;padding:8px 0;color:var(--text);min-width:0}
.my-calendar-item:hover{text-decoration:none}
.my-calendar-date{display:grid;gap:2px}
.my-calendar-date strong{font-size:13px;color:var(--accent)}
.my-calendar-date span{font-size:11px;color:var(--muted)}
.my-calendar-main{min-width:0}
.my-calendar-main>strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}
.my-calendar-main small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px}
.my-calendar-stage{justify-self:end}
.my-calendar-more{margin-top:8px;text-align:right;font-size:13px;font-weight:700}
.my-calendar-empty{padding:8px 0 0}
.my-work-action-cards{grid-template-columns:repeat(4,minmax(0,1fr))}
.my-work-focus-grid>.panel{margin-bottom:0}
.my-followup-list{display:grid}
.my-followup-item{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--line);color:var(--text)}
.my-followup-item:first-child{border-top:0}
.my-followup-item:hover{text-decoration:none}
.my-followup-item>div{min-width:0}
.my-followup-item>div>strong{display:block}
@media(max-width:1050px){
  .my-work-action-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .my-calendar-upcoming{grid-template-columns:1fr}
}
@media(max-width:760px){
  .my-calendar-strip{grid-template-columns:repeat(4,minmax(0,1fr))}
  .my-calendar-day:nth-child(n+5){display:none}
  .my-calendar-item{grid-template-columns:62px minmax(0,1fr)}
  .my-calendar-stage{grid-column:2;justify-self:start}
  .my-work-action-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
}


/* PAT v0.4.2 — Final pre-live My Work compact overview */
.my-work-overview-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:16px;
  margin-bottom:12px;
  align-items:stretch;
}
.my-work-overview-grid>.panel{
  margin-bottom:0;
  min-height:168px;
}
.my-work-hero-card{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  padding:18px 22px;
}
.my-work-hero-copy h1{
  margin:0;
  font-size:30px;
  color:var(--accent);
}
.my-work-hero-copy p{
  margin:8px 0 3px;
  color:var(--muted);
  font-size:15px;
}
.my-work-hero-copy small{
  display:block;
  color:var(--muted);
  font-size:13px;
}
.my-work-hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  margin-top:14px;
}
.my-work-hero-actions .btn{
  padding:9px 13px;
}
.my-calendar-compact{
  padding:14px 16px;
  border-left:4px solid #24598d;
}
.my-calendar-compact .panel-head{
  margin-bottom:8px;
}
.my-calendar-compact .panel-head h2{
  font-size:20px;
}
.my-calendar-compact .my-calendar-head p{
  font-size:12px;
}
.my-calendar-compact .my-calendar-links{
  font-size:13px;
}
.my-calendar-compact .my-calendar-strip{
  gap:5px;
  margin:7px 0 0;
}
.my-calendar-compact .my-calendar-day{
  padding:6px 3px;
  border-radius:8px;
}
.my-calendar-compact .my-calendar-day>span{
  font-size:9px;
}
.my-calendar-compact .my-calendar-day>strong{
  font-size:16px;
}
.my-calendar-compact .my-calendar-day>small{
  font-size:10px;
  min-height:12px;
}
.my-work-notice-panel{
  margin-bottom:12px;
}
.my-work-compact-metrics{
  gap:10px;
  margin-bottom:12px;
}
.my-work-compact-metrics .metric{
  padding:10px 14px;
  min-height:76px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.my-work-compact-metrics .metric span{
  min-height:0;
  font-size:12px;
  font-weight:700;
}
.my-work-compact-metrics .metric strong{
  margin-top:0;
  font-size:24px;
  line-height:1;
}
.my-work-primary-panels{
  gap:16px;
  margin-bottom:12px;
}
.my-work-primary-panels>.panel{
  padding:14px 16px;
  margin-bottom:0;
}
.my-work-primary-panels .panel-head{
  margin-bottom:8px;
}
.my-work-primary-panels .panel-head h2{
  font-size:20px;
}
.my-work-primary-panels .list-row{
  padding:9px 0;
}
.my-work-primary-panels .my-followup-item{
  padding:9px 0;
}
@media(max-width:1050px){
  .my-work-overview-grid{grid-template-columns:1fr;}
  .my-work-overview-grid>.panel{min-height:auto;}
  .my-calendar-compact .my-calendar-day>span{font-size:10px;}
  .my-calendar-compact .my-calendar-day>strong{font-size:18px;}
}
@media(max-width:760px){
  .my-work-compact-metrics .metric{
    min-height:68px;
    padding:9px 11px;
  }
  .my-work-hero-actions .btn{flex:1 1 auto;text-align:center;}
  .my-calendar-compact .my-calendar-strip{grid-template-columns:repeat(4,minmax(0,1fr));}
  .my-calendar-compact .my-calendar-day:nth-child(n+5){display:none;}
}


/* PAT v0.4.2 — Inline My Work notification summary */
.my-work-inline-notice{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:8px;
  margin-top:12px;
  padding:8px 10px;
  border:1px solid #e2a2a2;
  border-left:4px solid #b42318;
  border-radius:8px;
  background:#fff2f0;
  color:var(--text);
  font-size:12px;
}
.my-work-inline-notice:hover{
  background:#fde8e5;
  border-color:#d78b85;
  border-left-color:#9f1c13;
  text-decoration:none;
}
.my-work-inline-notice-count{
  display:inline-grid;
  place-items:center;
  min-width:24px;
  height:24px;
  padding:0 6px;
  border-radius:999px;
  background:#b42318;
  color:#fff;
  font-weight:800;
}
.my-work-inline-notice strong{
  color:#8f1d14;
}
.my-work-inline-notice-link{
  color:#9f1c13;
  font-weight:800;
  white-space:nowrap;
}
@media(max-width:760px){
  .my-work-inline-notice{
    grid-template-columns:auto 1fr;
  }
  .my-work-inline-notice-link{
    grid-column:2;
    justify-self:start;
  }
}

/* PAT_USER_ROLE_DISPLAY */
.userbox > span{
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    line-height:1.15;
}
.userbox .user-role{
    display:block;
    margin-top:3px;
    font-size:11px;
    font-weight:600;
    opacity:.78;
    letter-spacing:.02em;
}
