:root{
  --navy:#004E84;
  --blue:#0088C7;
  --slate:#26353E;
  --green:#70ad47;
  --orange:#ed7d31;
  --red:#c00000;
  --ink:#26353E;
  --muted:#66747d;
  --line:#d7e0e5;
  --bg:#f3f6f8;
  --card:#ffffff;
  --soft-blue:#eaf5fa;
  --soft-orange:#fff5ec;
  --soft-green:#f1f8ed;
  --soft-red:#fff1f1;
  --soft-gray:#f7f9fa;
}
*{box-sizing:border-box}
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;background:var(--bg);color:var(--ink)}
button,input,select,textarea{font:inherit}
.hidden{display:none!important}
.login-screen{min-height:100vh;display:grid;place-items:center;padding:20px;background:linear-gradient(145deg,#102947,#17365d 55%,#244e7c)}
.login-card{width:min(440px,100%);background:#fff;border-radius:16px;padding:28px;box-shadow:0 24px 80px rgba(0,0,0,.28)}
.login-card h1{margin:0 0 6px;font-size:25px;color:var(--navy)}.login-card p{margin:0 0 22px;color:var(--muted);font-size:13px}
.login-card .field{display:flex;flex-direction:column;gap:6px;margin-bottom:14px}
.login-card label{font-size:12px;font-weight:700;color:#465466}
.login-card select,.login-card input{border:1px solid var(--line);border-radius:8px;padding:11px 12px;background:#fff}
.login-card button{width:100%;border:0;border-radius:8px;background:var(--blue);color:#fff;padding:11px 12px;font-weight:700;cursor:pointer}
.demo-note{margin-top:16px;padding:10px 12px;border-radius:8px;background:var(--soft-blue);font-size:12px;color:#35516f}
.app{min-height:100vh}
.topbar{background:var(--navy);color:#fff;padding:18px 28px;display:flex;justify-content:space-between;align-items:flex-start}
.brand h1{margin:0;font-size:21px}.brand p{margin:5px 0 0;opacity:.85;font-size:13px}
.meta{text-align:right;font-size:12px;line-height:1.55;opacity:.9}
.userbar{display:flex;gap:8px;align-items:center;justify-content:flex-end;margin-top:7px}
.userbar button{border:1px solid rgba(255,255,255,.35);background:transparent;color:#fff;border-radius:7px;padding:6px 9px;cursor:pointer}
.nav{display:flex;gap:8px;padding:12px 28px;background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:5;overflow:auto}
.nav button{border:0;background:transparent;padding:9px 12px;border-radius:7px;color:var(--muted);cursor:pointer;font-weight:600;white-space:nowrap}
.nav button.active{background:var(--soft-blue);color:var(--navy)}
.container{max-width:1240px;margin:0 auto;padding:24px}
.toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:18px}
.toolbar h2{margin:0;font-size:22px}.toolbar .actions{display:flex;gap:8px;flex-wrap:wrap}
.btn{border:1px solid var(--line);background:#fff;padding:9px 12px;border-radius:7px;cursor:pointer;font-weight:600}
.btn.primary{background:var(--blue);border-color:var(--blue);color:#fff}
.btn.danger{
  color:#b42318;
  border-color:#e3aaa5;
  background:#fff;
}

.btn.danger:hover{
  color:#8f1d14;
  border-color:#b42318;
  background:#fff1f0;
}
.project-switcher{display:flex;align-items:center;gap:8px}
.project-switcher select{padding:8px 10px;border-radius:7px;border:1px solid var(--line);background:#fff;min-width:190px}
.project-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.project-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px;cursor:pointer;transition:.18s;box-shadow:0 1px 2px rgba(15,23,42,.03)}
.project-card:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(15,23,42,.08)}
.project-card h3{margin:0 0 5px}.project-card p{margin:0;color:var(--muted);font-size:13px}
.project-card .stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:16px}
.stat-mini{background:var(--soft-gray);border-radius:8px;padding:9px;text-align:center}
.stat-mini strong{display:block;font-size:18px}.stat-mini span{font-size:10px;color:var(--muted);font-weight:700}
.health{display:inline-flex;align-items:center;gap:6px;margin-top:12px;font-size:12px;font-weight:700}
.health .pulse{width:9px;height:9px;border-radius:50%;background:var(--green)}
.health-mode{display:block;margin-top:4px;font-size:10px;color:var(--muted);font-weight:650}
.health-note{margin-top:5px;font-size:11px;color:var(--muted);line-height:1.35}
.health-control-note{grid-column:1/-1;background:var(--soft-blue);border-radius:7px;padding:9px 10px;font-size:11px;color:#35516f}
.grid-kpi{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:16px}
.kpi{background:#fff;border:1px solid var(--line);border-top:4px solid var(--navy);border-radius:10px;padding:16px}
.kpi.blue{border-top-color:var(--blue)}.kpi.orange{border-top-color:var(--orange)}.kpi.green{border-top-color:var(--green)}
.kpi .num{font-size:30px;font-weight:750}.kpi .label{font-size:12px;color:var(--muted);font-weight:700;margin-top:3px}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.panel{background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.panel h3{margin:0;padding:12px 15px;color:#fff;font-size:13px;background:var(--blue)}
.panel.orange h3{background:var(--orange)}.panel.green h3{background:var(--green)}.panel.red h3{background:var(--red)}
.panel .body{padding:14px 16px;min-height:150px}
.item{display:flex;gap:10px;align-items:flex-start;padding:8px 0;border-bottom:1px solid #edf1f5}
.item:last-child{border-bottom:0}.dot{width:9px;height:9px;border-radius:50%;margin-top:6px;background:var(--blue);flex:0 0 auto}
.small{font-size:12px;color:var(--muted)}
.table-card{background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.table-tools{padding:12px;display:flex;gap:8px;flex-wrap:wrap;border-bottom:1px solid var(--line)}
.table-tools input,.table-tools select{padding:8px 10px;border:1px solid var(--line);border-radius:7px;background:#fff}
table{width:100%;border-collapse:collapse;font-size:13px}th,td{text-align:left;padding:11px 12px;border-bottom:1px solid #edf1f5;vertical-align:top}
th{background:#f7f9fb;color:#465466;font-size:12px;position:sticky;top:49px}
tr:hover td{background:#fafcff}
.badge{display:inline-block;padding:4px 7px;border-radius:999px;font-size:11px;font-weight:700}
.badge.inprogress{background:#dcecf8;color:#1f4e78}.badge.waiting{background:#fce6d8;color:#9e480e}
.badge.review{background:#fff2cc;color:#7f6000}.badge.complete{background:#e2f0d9;color:#385723}
.badge.pending{background:#eceff2;color:#59636e}.badge.blocked{background:#f4cccc;color:#a00000}
.linkbtn{background:none;border:0;color:var(--blue);cursor:pointer;padding:0;font-weight:700}
.view{display:none}.view.active{display:block}
.modal-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.48);display:none;align-items:center;justify-content:center;padding:20px;z-index:20}
.modal{background:#fff;width:min(860px,100%);max-height:90vh;overflow:auto;border-radius:12px;padding:20px;box-shadow:0 20px 60px rgba(0,0,0,.25)}
.modal h3{margin:0 0 16px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.field{display:flex;flex-direction:column;gap:6px}
.field.full{grid-column:1/-1}.field label{font-size:12px;font-weight:700;color:#465466}.field input,.field select,.field textarea{border:1px solid var(--line);border-radius:7px;padding:9px 10px}
.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}
.note{background:#fff;border:1px dashed var(--line);padding:12px;border-radius:8px;color:var(--muted);font-size:12px}
.timeline{background:#fff;border:1px solid var(--line);border-radius:10px;padding:18px}
.timeline-track{position:relative;margin-left:18px;padding-left:28px}
.timeline-track:before{content:"";position:absolute;left:4px;top:4px;bottom:4px;width:2px;background:#dbe4ed}
.timeline-entry{position:relative;padding:0 0 22px}.timeline-entry:last-child{padding-bottom:0}
.timeline-entry:before{content:"";position:absolute;left:-29px;top:5px;width:12px;height:12px;border-radius:50%;background:var(--blue);border:3px solid #fff;box-shadow:0 0 0 1px #b8c7d6}
.timeline-entry.complete:before{background:var(--green)}.timeline-entry.waiting:before{background:var(--orange)}.timeline-entry.blocked:before{background:var(--red)}
.timeline-entry h4{margin:0 0 3px;font-size:14px}.timeline-entry p{margin:0;color:var(--muted);font-size:12px}.timeline-edit{margin-left:8px;font-size:11px}.agenda-pill{display:flex;justify-content:space-between;gap:8px;align-items:center}.agenda-edit{font-size:10px;white-space:nowrap}
.agenda-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.calendar-card{background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.calendar-card h3{margin:0;padding:12px 15px;background:var(--navy);color:#fff;font-size:13px}
.agenda-day{display:grid;grid-template-columns:90px 1fr;gap:12px;padding:12px 15px;border-bottom:1px solid #edf1f5}
.agenda-date{font-weight:750;color:var(--navy)}.agenda-items{display:flex;flex-direction:column;gap:7px}
.agenda-pill{background:var(--soft-blue);padding:8px 10px;border-radius:7px;font-size:12px}
.agenda-pill.orange{background:var(--soft-orange)}.agenda-pill.green{background:var(--soft-green)}
.month-grid{display:grid;grid-template-columns:repeat(7,1fr);border-top:1px solid var(--line);border-left:1px solid var(--line)}
.day-head,.day-cell{min-height:82px;padding:8px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:#fff;font-size:12px}
.day-head{min-height:auto;background:#f7f9fb;font-weight:700;text-align:center;color:var(--muted)}
.day-num{font-weight:700}.event-dot{margin-top:7px;padding:4px 5px;border-radius:5px;background:var(--soft-blue);color:var(--navy);font-size:10px}
.event-dot.orange{background:var(--soft-orange);color:#8c4a13}.event-dot.green{background:var(--soft-green);color:#3d6e2c}
.mobile-cards{display:none}.permission-banner{margin-bottom:16px;background:#fff;border:1px solid var(--line);border-left:4px solid var(--blue);padding:11px 13px;border-radius:8px;font-size:12px;color:#465466}
.visibility{display:inline-block;padding:3px 7px;border-radius:999px;font-size:10px;font-weight:750;margin-left:6px}
.visibility.shared{background:#e8f2fb;color:#1f4e78}.visibility.internal{background:#fff2cc;color:#7f6000}.visibility.admin{background:#f4cccc;color:#9c0006}
.admin-panel{background:#fff;border:1px solid var(--line);border-radius:10px;padding:16px;margin-bottom:16px}
.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.admin-card{border:1px solid var(--line);border-radius:9px;padding:13px;background:#fafcff}
.admin-card h4{margin:0 0 8px}.admin-card label{display:block;font-size:12px;font-weight:700;margin-bottom:5px;color:#465466}
.admin-card select{width:100%;padding:8px;border:1px solid var(--line);border-radius:7px;background:#fff}
.audit-card{background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.audit-toolbar{padding:12px;display:flex;gap:8px;flex-wrap:wrap;border-bottom:1px solid var(--line)}
.audit-toolbar input,.audit-toolbar select{padding:8px 10px;border:1px solid var(--line);border-radius:7px;background:#fff}
.audit-meta{font-size:11px;color:var(--muted);margin-top:3px}
.audit-action{font-weight:750}
.audit-create{color:#2f6b2f}.audit-update{color:#1f4e78}.audit-delete{color:#9c0006}
@media(max-width:700px){.admin-grid{grid-template-columns:1fr}}
@media(max-width:900px){.grid-kpi{grid-template-columns:1fr 1fr}.grid-2,.agenda-grid{grid-template-columns:1fr}.topbar{flex-direction:column;gap:10px}.meta{text-align:left}.project-grid{grid-template-columns:1fr 1fr}}
@media(max-width:700px){.container{padding:14px}.nav{padding:10px 14px}.topbar{padding:16px}.project-grid{grid-template-columns:1fr}.toolbar{align-items:flex-start;flex-direction:column}.desktop-table{display:none}.mobile-cards{display:block}.mobile-record{background:#fff;border:1px solid var(--line);border-radius:10px;padding:13px;margin-bottom:10px}.mobile-record h4{margin:0 0 7px}.mobile-record .row{display:flex;justify-content:space-between;gap:10px;padding:5px 0;border-bottom:1px solid #edf1f5;font-size:12px}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.month-grid{grid-template-columns:repeat(2,1fr)}.day-head{display:none}}

.shell{display:grid;grid-template-columns:238px 1fr;min-height:100vh}
.sidebar{background:#102947;color:#fff;padding:22px 16px;display:flex;flex-direction:column;gap:18px;position:sticky;top:0;height:100vh}
.sidebar-brand{padding:4px 8px 16px;border-bottom:1px solid rgba(255,255,255,.12)}
.sidebar-brand .mark{font-weight:800;font-size:18px;letter-spacing:.4px}
.sidebar-brand .sub{font-size:11px;opacity:.7;margin-top:4px}
.sidebar-nav{display:flex;flex-direction:column;gap:6px}
.sidebar-nav button{width:100%;text-align:left;border:0;background:transparent;color:rgba(255,255,255,.78);padding:10px 12px;border-radius:8px;cursor:pointer;font-weight:650}
.sidebar-nav button.active{background:rgba(255,255,255,.12);color:#fff}
.sidebar-footer{margin-top:auto;padding:12px 8px;font-size:11px;opacity:.6;line-height:1.5}
.content-shell{min-width:0}
.topbar{padding:16px 26px;background:#fff;color:var(--ink);border-bottom:1px solid var(--line);align-items:center}
.brand h1{font-size:19px;color:var(--navy)}.brand p{color:var(--muted);opacity:1}
.meta{color:var(--muted);opacity:1}
.userbar button{border-color:var(--line);color:var(--navy);background:#fff}
.nav{display:none}
.container{padding:24px 28px}
.page-header{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:18px}
.page-header .eyebrow{font-size:11px;font-weight:750;color:var(--blue);letter-spacing:.08em;text-transform:uppercase}
.page-header h2{margin:3px 0 4px;font-size:25px}
.page-header p{margin:0;color:var(--muted);font-size:13px}
.project-card{position:relative;overflow:hidden}
.project-card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--blue)}
.project-card .progress-wrap{margin-top:14px}
.progress-bar{height:7px;background:#e8edf2;border-radius:999px;overflow:hidden}
.progress-bar span{display:block;height:100%;background:var(--blue);border-radius:999px}
.phase-progress{display:grid;grid-auto-rows:20px;gap:7px;margin-top:10px}
.phase-progress-row{display:grid;grid-template-columns:88px 1fr 44px;gap:8px;align-items:center;min-height:20px;font-size:11px;line-height:16px;color:var(--muted)}
.phase-progress-row strong{display:flex;align-items:center;justify-content:flex-end;gap:3px;height:20px;text-align:right;color:var(--text)}
.phase-progress-row .progress-bar{height:6px}
.phase-progress-note{font-size:10px;color:var(--muted);margin-top:6px}
.progress-control-section{margin-top:2px;padding:14px;border:1px solid var(--line);border-radius:9px;background:#fbfcfd}
.phase-control-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:12px}
.phase-control-card,.overall-progress-control{border:1px solid var(--line);border-radius:9px;background:#fff;padding:12px}
.phase-control-card .field{margin-top:9px}
.phase-control-title{font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--blue)}
.overall-progress-control{margin-top:12px}
.overall-progress-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:9px}
.auto-value-disabled{opacity:.58}
.auto-value-disabled input{background:#eef2f6;color:#6d7884;cursor:not-allowed}
@media(max-width:700px){.phase-control-cards,.overall-progress-grid{grid-template-columns:1fr}}
.profile-chip{display:flex;align-items:center;gap:9px}
.avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--navy);color:#fff;font-weight:800;font-size:12px}
.role-pill{display:inline-block;padding:3px 7px;border-radius:999px;background:var(--soft-blue);color:var(--navy);font-size:10px;font-weight:750}
.summary-ribbon{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:12px}
.last-activity{background:#fff;border:1px solid var(--line);border-left:4px solid var(--blue);border-radius:9px;padding:12px 14px;margin-bottom:16px;display:flex;gap:14px;align-items:flex-start}
.last-activity .activity-date{min-width:105px;font-size:12px;font-weight:750;color:var(--navy)}
.last-activity .activity-text{font-size:13px;color:#334155;line-height:1.45}
.last-activity .activity-label{display:block;font-size:10px;color:var(--muted);font-weight:750;text-transform:uppercase;letter-spacing:.05em;margin-bottom:3px}
@media(max-width:700px){.last-activity{display:block}.last-activity .activity-date{margin-bottom:8px}}
.summary-cell{background:#fff;border:1px solid var(--line);border-radius:9px;padding:11px 13px}
.summary-cell .label{font-size:10px;color:var(--muted);font-weight:750;text-transform:uppercase}
.summary-cell .value{font-size:13px;font-weight:750;margin-top:3px}
.table-card,.panel,.timeline,.calendar-card,.admin-panel,.audit-card{box-shadow:0 4px 18px rgba(15,23,42,.04)}
.toolbar{margin-bottom:14px}
.btn{transition:.15s ease}.btn:hover{transform:translateY(-1px)}
.status-dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:6px;background:var(--green)}
.login-screen{background:
radial-gradient(circle at 20% 20%,rgba(47,117,181,.25),transparent 34%),
linear-gradient(145deg,#102947,#17365d 58%,#244e7c)}
.login-card{padding:32px}.login-card h1{font-size:28px}.login-brand{font-size:11px;font-weight:800;letter-spacing:.12em;color:var(--blue);text-transform:uppercase;margin-bottom:8px}
.version-tag{font-size:11px;color:var(--muted);margin-top:4px}
@media(max-width:980px){
  .shell{grid-template-columns:1fr}
  .sidebar{position:static;height:auto;display:block;padding:12px 14px}
  .sidebar-brand{display:none}
  .sidebar-nav{flex-direction:row;overflow:auto}
  .sidebar-nav button{width:auto;white-space:nowrap}
  .sidebar-footer{display:none}
}
@media(max-width:700px){
  .summary-ribbon{grid-template-columns:1fr 1fr}
  .container{padding:16px}
  .topbar{padding:14px 16px}
  .page-header{flex-direction:column}
}


.admin-header-actions{display:flex;gap:8px;flex-wrap:wrap}
.project-admin-list{display:grid;gap:10px}
.project-admin-row{display:grid;grid-template-columns:1.4fr 1fr 1fr auto;gap:12px;align-items:center;border:1px solid var(--line);background:#fff;border-radius:9px;padding:12px}
.project-admin-row.archived{opacity:.62}
.project-admin-actions{display:flex;gap:7px;justify-content:flex-end}
.checkbox-list{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.checkbox-list label{font-size:13px}
@media(max-width:800px){
 .project-admin-row{grid-template-columns:1fr}
 .project-admin-actions{justify-content:flex-start}
 .checkbox-list{grid-template-columns:1fr}
}

.audit-table-scroll{max-height:520px;overflow:auto}
.audit-table-scroll th{top:0;z-index:2}
.audit-access{color:#7f6000}
#auditCount{font-weight:700;color:#465466}

.admin-card-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:8px}
.admin-card-heading h4{margin:0}
.admin-card input,.admin-card select{width:100%;padding:8px;border:1px solid var(--line);border-radius:7px;background:#fff}
.active-user-check{display:flex!important;align-items:center;gap:8px;margin-top:12px!important;font-weight:600!important}

.active-user-check input{width:auto}

/* Organization-wide user lifecycle controls must remain hidden for Project Admins. */
.organization-wide-user-control.hidden{
  display:none!important;
}

/* Keep Admin-only lifecycle checkboxes compact and left aligned. */
label.organization-wide-user-control{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:8px!important;
  width:max-content!important;
  max-width:100%;
  margin-top:12px!important;
  margin-bottom:5px!important;
}

label.organization-wide-user-control input{
  flex:0 0 auto;
  width:auto!important;
  margin:0;
}


/* AHT-ADMIN-USER-ACTION-PRIORITY-20261112: smaller secondary destructive action. */
#dashboardProfilePanel #archiveUserBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:auto;
  max-width:100%;
  min-width:0;
  min-height:30px;
  margin-top:12px;
  padding:6px 11px;
  border-radius:7px;
  font-size:11px;
  font-weight:600;
}
#archiveUserBtn:disabled{opacity:.45;cursor:not-allowed;transform:none}

.startup-status{position:fixed;inset:0;z-index:100;background:rgba(244,246,249,.96);display:grid;place-items:center;padding:20px}
.startup-card{width:min(420px,100%);background:#fff;border:1px solid var(--line);border-radius:14px;padding:28px;text-align:center;box-shadow:0 18px 50px rgba(15,23,42,.14)}
.startup-card h2{margin:14px 0 7px;color:var(--navy)}
.startup-card p{margin:0;color:var(--muted);font-size:13px;line-height:1.45}
.startup-card .btn{margin-top:18px}
.startup-spinner{width:34px;height:34px;margin:0 auto;border:4px solid #dce6ef;border-top-color:var(--blue);border-radius:50%;animation:startup-spin .8s linear infinite}
.startup-status.error .startup-spinner{display:none}
@keyframes startup-spin{to{transform:rotate(360deg)}}


/* Simple Gantt schedule overview */
.gantt-shell{min-width:820px}
.gantt-scroll{overflow:auto;border:1px solid var(--line);border-radius:9px;background:#fff}
.gantt-head,.gantt-row{display:grid;grid-template-columns:260px minmax(620px,1fr)}
.gantt-head{position:sticky;top:0;z-index:4;background:#edf3f7;border-bottom:1px solid var(--line);font-size:11px;font-weight:800;color:#44596d}
.gantt-head>div,.gantt-label{padding:10px 12px}
.gantt-scale,.gantt-lane{position:relative;background-image:linear-gradient(to right,rgba(202,214,224,.25) 1px,transparent 1px);background-size:var(--gantt-week,14.2857142857%) 100%}
.gantt-scale{height:30px;border-left:1px solid var(--line)}
.gantt-scale span{position:absolute;top:7px;transform:translateX(-50%);white-space:nowrap;font-weight:700}
.gantt-group{border-bottom:1px solid #dfe6ec}
.gantt-group:last-child{border-bottom:0}
.gantt-group-header{width:100%;height:35px;border:0;border-radius:0;background:#f1f5f8;color:#314b63;padding:0 12px;display:flex;align-items:center;gap:8px;text-align:left;cursor:pointer}
.gantt-group-header:hover{background:#e7eef4}
.gantt-group-arrow{width:13px;font-size:10px;color:#60778b}
.gantt-group-header strong{font-size:11px;letter-spacing:.055em;text-transform:uppercase}
.gantt-group-count{min-width:22px;height:20px;border-radius:999px;background:#dce6ee;color:#40576b;display:inline-grid;place-items:center;font-size:10px;font-weight:800}
.gantt-row{min-height:60px;border-top:1px solid #e6ebef}
.gantt-row:nth-child(odd){background:#fbfcfd}
.gantt-label{display:flex;flex-direction:column;justify-content:center;gap:5px;min-width:0}
.gantt-label[onclick]{cursor:pointer}
.gantt-label[onclick]:hover{background:#f0f5f8}
.gantt-label strong{font-size:12px;line-height:1.25;white-space:normal;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.gantt-label span{font-size:10px;color:var(--muted)}
.gantt-lane{border-left:1px solid var(--line);min-height:60px}
.gantt-bar{position:absolute;top:16px;height:28px;min-width:12px;border:0;border-radius:6px;padding:0 7px;display:flex;align-items:center;justify-content:flex-end;gap:5px;color:#fff;font-size:10px;font-weight:800;overflow:visible;box-shadow:0 2px 5px rgba(15,35,55,.14);cursor:default}
.gantt-bar.active{background:#2f79b9}
.gantt-bar.waiting{background:#d58a24}
.gantt-bar.blocked{background:#b8443c}
.gantt-bar.complete{background:#2f8a63}
.gantt-bar.pending{background:#7b8793}
.gantt-bar[onclick]{cursor:pointer}
.gantt-bar[onclick]:hover{filter:brightness(.94);transform:translateY(-1px)}
.gantt-today{position:absolute;top:0;bottom:0;width:2px;background:#d64045;z-index:2;pointer-events:none}
.gantt-today:before{content:none;display:none}
.gantt-today.head:before{
  content:"Today";
  display:block;
  position:absolute;
  top:2px;
  left:4px;
  background:#fff;
  color:#b52e33;
  font-size:9px;
  font-weight:800;
  padding:1px 3px;
  border-radius:3px;
  white-space:nowrap;
}
.gantt-legend{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:12px;font-size:11px;color:#536577}
.gantt-legend>span{display:flex;align-items:center;gap:5px}
.gantt-legend i{width:10px;height:10px;border-radius:3px}
.gantt-legend i.active{background:#2f79b9}
.gantt-legend i.waiting{background:#d58a24}
.gantt-legend i.blocked{background:#b8443c}
.gantt-legend i.complete{background:#2f8a63}
.gantt-legend .gantt-note{margin-left:auto;color:var(--muted);font-style:italic}
.gantt-unscheduled,.gantt-empty{margin-top:12px;padding:11px 12px;border-radius:8px;background:#f4f7f9;color:#5a6b7b;font-size:12px}
@media(max-width:760px){
 .timeline{overflow:auto;padding:12px}
 .gantt-shell{min-width:760px}
 .gantt-head,.gantt-row{grid-template-columns:225px minmax(535px,1fr)}
 .gantt-legend .gantt-note{width:100%;margin-left:0}
}

.schedule-health{
 display:inline-flex;
 align-items:center;
 gap:5px;
 border-radius:999px;
 padding:4px 8px;
 font-size:10px;
 font-weight:800;
 white-space:nowrap;
}
.schedule-health.healthy{background:#e8f5ee;color:#23704d}
.schedule-health.at-risk{background:#fff3d9;color:#8b5a00}
.schedule-health.overdue{background:#fde8e6;color:#a2352f}
.manual-health-mark{
 width:16px;
 height:16px;
 border-radius:50%;
 display:inline-grid;
 place-items:center;
 background:currentColor;
 color:#fff;
 font-size:9px;
 line-height:1;
}
.health-override-section{
 margin-top:4px;
 padding:14px;
 border:1px solid var(--line);
 border-radius:9px;
 background:#f7f9fb;
}
.health-override-grid{
 display:grid;
 grid-template-columns:repeat(3,minmax(0,1fr));
 gap:10px;
 margin-top:10px;
}
.automatic-health-preview{
 font-size:12px;
 color:#4d6072;
 margin-bottom:4px;
}
@media(max-width:760px){
 .health-override-grid{grid-template-columns:1fr}
}


/* Official AHT palette refinement */
body{background:var(--bg);color:var(--ink)}
.login-screen{
  background:
    radial-gradient(circle at 20% 18%,rgba(0,136,199,.22),transparent 34%),
    linear-gradient(145deg,#18303b 0%,var(--slate) 48%,var(--navy) 100%);
}
.login-card{
  border:1px solid rgba(255,255,255,.72);
  box-shadow:0 26px 80px rgba(23,41,49,.30);
}
.login-brand{
  color:var(--blue);
  font-weight:850;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.login-card h1{color:var(--navy);letter-spacing:-.02em}
.login-card button,.btn.primary{
  background:var(--navy);
  border-color:var(--navy);
}
.login-card button:hover,.btn.primary:hover{
  background:var(--blue);
  border-color:var(--blue);
}
.sidebar{
  background:var(--slate);
  box-shadow:10px 0 28px rgba(38,53,62,.08);
}
.sidebar-brand{border-bottom-color:rgba(255,255,255,.14)}
.sidebar-brand .mark{
  color:#fff;
  font-size:18px;
  font-weight:800;
  letter-spacing:.01em;
}
.sidebar-brand .sub{
  color:#b9d6e5;
  opacity:1;
  text-transform:uppercase;
  letter-spacing:.10em;
}
.sidebar-nav button{
  color:rgba(255,255,255,.80);
  border-left:3px solid transparent;
}
.sidebar-nav button:hover{
  background:rgba(255,255,255,.07);
  color:#fff;
}
.sidebar-nav button.active{
  background:rgba(0,136,199,.22);
  color:#fff;
  border-left-color:var(--blue);
}
.brand h1,.toolbar h2,.page-header h2{color:var(--navy)}
.userbar button:hover,.btn:hover,.nav button.active{
  background:var(--soft-blue);
  border-color:#acd6e8;
}
a,.linkbtn{color:var(--navy)}
.linkbtn:hover{color:var(--blue)}
input:focus,select:focus,textarea:focus{
  outline:3px solid rgba(0,136,199,.13);
  border-color:var(--blue);
}


/* Microsoft Entra administration */
.entra-access-panel{border:1px solid #d7e4ec;background:#fbfdff}
.entra-access-heading,.entra-table-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.entra-access-heading h3,.entra-table-heading h4{margin:0 0 4px}
.entra-access-status{margin:12px 0;padding:9px 11px;border-radius:7px;background:#eef4f7;font-size:13px;color:#405460}
.entra-access-status.success{background:#e9f6ef;color:#23613d}.entra-access-status.error{background:#fff0f0;color:#8a2929}
.entra-access-actions{margin-top:12px}.entra-access-actions .admin-card{min-height:0}
.entra-user-table-wrap{margin-top:16px;overflow:auto}.entra-user-table{width:100%;min-width:760px}
.entra-user-table td{vertical-align:middle}.entra-row-actions{white-space:nowrap;text-align:right}.entra-row-actions .btn{margin-left:5px}
.entra-type{display:inline-block;border-radius:999px;padding:3px 8px;font-size:11px;font-weight:700;background:#e8f1f7;color:#174e70}
.entra-type.external{background:#fff1df;color:#8a5000}.entra-type.internal{background:#e8f3fb;color:#135b84}
.invite-redeem{margin-top:12px;padding:10px;border-radius:7px;background:#fff8e8;border:1px solid #efd69b}
.redeem-row{display:flex;gap:7px;margin-top:7px}.redeem-row input{flex:1;min-width:0}

.invite-project-list{border:1px solid var(--line);border-radius:7px;padding:7px 9px;max-height:150px;overflow:auto;background:#fff}
.invite-project-list label{display:block;margin:5px 0;font-size:12px;line-height:1.25}
.invite-project-list input{margin-right:6px}

/* Login portal alignment refinement — 0.12.6 */
.login-card{
  text-align:center;
}
.login-logo-wrap{
  display:flex;
  justify-content:center;
  align-items:center;
  margin:0 auto 12px;
}
.login-logo{
  display:block;
  margin:0 auto;
  max-width:240px;
  width:72%;
  height:auto;
}
.login-card h1,
.login-card > p,
.login-card .version-tag{
  text-align:center;
}
.login-card .version-tag{
  margin:6px 0 10px;
}
.login-card .demo-note{
  text-align:center;
  line-height:1.4;
}
.login-card .field{
  text-align:left;
}

/* v0.14.4 — normalize phase rows across project cards */
.project-card .phase-progress{
  grid-template-rows:repeat(3,22px);
  grid-auto-rows:22px;
  gap:6px;
}
.project-card .phase-progress-row{
  height:22px;
  min-height:22px;
  line-height:16px;
  margin:0;
}
.project-card .phase-progress-row > strong{
  display:grid;
  grid-template-columns:32px 16px;
  column-gap:2px;
  width:50px;
  height:22px;
  align-items:center;
  justify-content:end;
  text-align:right;
}
.project-card .phase-progress-value{
  grid-column:1;
  justify-self:end;
  width:32px;
  text-align:right;
}
.project-card .phase-progress-row > strong .manual-health-mark{
  grid-column:2;
  justify-self:end;
  margin:0;
}
.project-card .phase-progress-row .progress-bar{
  align-self:center;
}

/* v0.14.7 — Deliverables / Information Required header actions */
.page-header > .actions{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:10px;
}

.page-header > .actions .project-switcher{
  justify-content:flex-end;
}

.page-header > .actions .btn{
  align-self:flex-end;
}

@media(max-width:700px){
  .page-header > .actions{
    width:100%;
    align-items:flex-start;
  }

  .page-header > .actions .project-switcher{
    justify-content:flex-start;
  }

  .page-header > .actions .btn{
    align-self:flex-start;
  }
}

/* v0.14.11 — bounded Microsoft access list */
.entra-user-table-wrap{
  max-height:430px;
  overflow:auto;
  padding:4px 2px 2px;
  border-radius:8px;
  scrollbar-gutter:stable;
}
.entra-user-table-wrap .entra-table-heading{
  position:sticky;
  top:0;
  z-index:3;
  background:#fbfdff;
  padding:5px 0 8px;
}
.entra-user-table thead th{
  position:sticky;
  top:48px;
  z-index:2;
  background:#f4f8fb;
}

/* v0.14.12 — reliable Current Dashboard Access scrolling */
.entra-user-table-wrap{
  position:relative;
  height:auto;
  max-height:none;
  overflow:visible;
  padding:0;
}

.entra-user-table-wrap .entra-table-heading{
  position:relative;
  top:auto;
  z-index:auto;
  background:transparent;
  padding:0 0 8px;
}

/* Make the actual table body area the scroll container. */
.entra-user-table-wrap .entra-user-table{
  display:block;
  width:100%;
  max-height:360px;
  overflow-y:auto;
  overflow-x:auto;
  border-collapse:separate;
  border-spacing:0;
  scrollbar-gutter:stable;
  -webkit-overflow-scrolling:touch;
}

.entra-user-table-wrap .entra-user-table thead,
.entra-user-table-wrap .entra-user-table tbody{
  display:table;
  width:100%;
  table-layout:fixed;
}

.entra-user-table-wrap .entra-user-table thead{
  position:sticky;
  top:0;
  z-index:3;
}

.entra-user-table-wrap .entra-user-table thead th{
  position:static;
  background:#f4f8fb;
}

/* Keep row geometry stable as names/projects grow. */
.entra-user-table-wrap .entra-user-table td,
.entra-user-table-wrap .entra-user-table th{
  box-sizing:border-box;
  vertical-align:top;
}

/* v0.14.13 — Current Dashboard Access wrapper scroll */
.entra-user-table-wrap{
  position:relative!important;
  display:block!important;
  width:100%!important;
  max-height:360px!important;
  overflow-y:auto!important;
  overflow-x:auto!important;
  overscroll-behavior:contain;
  scrollbar-gutter:stable both-edges;
  -webkit-overflow-scrolling:touch;
  padding:4px 4px 2px!important;
  box-sizing:border-box;
}

/* Put the table back into normal table layout. */
.entra-user-table-wrap .entra-user-table{
  display:table!important;
  width:100%!important;
  min-width:760px;
  max-height:none!important;
  overflow:visible!important;
  border-collapse:separate;
  border-spacing:0;
}

.entra-user-table-wrap .entra-user-table thead,
.entra-user-table-wrap .entra-user-table tbody{
  display:table-row-group!important;
  width:auto!important;
  min-width:0!important;
  table-layout:auto!important;
}

.entra-user-table-wrap .entra-user-table thead{
  display:table-header-group!important;
  position:static!important;
}

.entra-user-table-wrap .entra-table-heading{
  position:sticky!important;
  top:0!important;
  z-index:5!important;
  background:#fbfdff!important;
  padding:4px 0 8px!important;
}

.entra-user-table-wrap .entra-user-table thead th{
  position:sticky!important;
  top:45px!important;
  z-index:4!important;
  background:#f4f8fb!important;
}

/* v0.14.14 — compact Current Dashboard Access viewport */
.entra-user-table-wrap{
  height:260px!important;
  max-height:260px!important;
  overflow-y:scroll!important;
  overflow-x:auto!important;
  scrollbar-gutter:stable!important;
}

/* Keep the title visible while the user rows move beneath it. */
.entra-user-table-wrap .entra-table-heading{
  position:sticky!important;
  top:0!important;
  z-index:6!important;
  background:#fbfdff!important;
}

/* Keep column labels visible beneath the title. */
.entra-user-table-wrap .entra-user-table thead th{
  position:sticky!important;
  top:45px!important;
  z-index:5!important;
  background:#f4f8fb!important;
}


/* v0.14.39 dashboard usability */

/* Deliverables: prevent first row from hiding beneath header */
#deliverables .desktop-table thead,
#deliverables .desktop-table thead th{
  position:static!important;
  top:auto!important;
  z-index:auto!important;
}

/* Project Activity */
.last-activity .activity-label{
  color:var(--blue);
}

/* Calendar navigation */
.calendar-nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:12px;
}

.calendar-nav-center{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  flex:1;
}

.calendar-nav-center h3{margin:0}

.calendar-nav-actions{
  display:flex;
  align-items:center;
  gap:7px;
}

.calendar-nav-btn{
  min-width:38px;
  font-size:18px;
  color:var(--navy);
  border-color:#80b8d5;
}

.calendar-today-btn{
  color:var(--navy);
  border-color:#80b8d5;
}

.calendar-month-picker{
  width:auto;
  padding:6px 8px;
  border:1px solid var(--line);
  border-radius:7px;
  background:#fff;
  color:var(--navy);
  font:inherit;
  font-size:12px;
  font-weight:700;
}

.day-cell.today{
  background:#f1f8fc;
  box-shadow:inset 0 0 0 1px rgba(0,136,199,.22);
}

/* Change Log */
.audit-table-scroll{
  max-height:68vh!important;
  min-height:300px;
  overflow:auto!important;
  scrollbar-gutter:stable;
}

.audit-table-scroll table{
  min-width:900px;
}

.audit-table-scroll thead th{
  position:sticky!important;
  top:0!important;
  z-index:10!important;
  background:#f4f8fb!important;
}

/* Edit and Manage - blue outline */
.project-admin-actions .btn:first-child,
[data-manage-profile]{
  background:#fff!important;
  color:#006ea6!important;
  border-color:#5ca8cf!important;
}

/* Archive - orange/red outline */
.project-admin-actions button[onclick^="toggleArchive"]{
  background:#fff!important;
  color:#b84e24!important;
  border-color:#dc8b66!important;
}

/* Microsoft refresh - green outline */
#refreshEntraUsersBtn{
  background:#fff!important;
  color:#2b7a50!important;
  border-color:#70ad47!important;
}

/* Current Dashboard Access - one clean scroll model */
.entra-user-table-wrap{
  position:relative!important;
  height:auto!important;
  max-height:none!important;
  overflow:visible!important;
  padding:0!important;
}

.entra-user-table-wrap .entra-table-heading{
  position:relative!important;
  top:auto!important;
  z-index:auto!important;
  background:transparent!important;
  padding:0 0 8px!important;
}

.entra-user-table-wrap .entra-user-table{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  max-height:310px!important;
  overflow:auto!important;
  border-collapse:separate!important;
  border-spacing:0!important;
}

.entra-user-table-wrap .entra-user-table thead,
.entra-user-table-wrap .entra-user-table tbody{
  display:table!important;
  width:100%!important;
  min-width:760px!important;
  table-layout:fixed!important;
}

.entra-user-table-wrap .entra-user-table thead{
  position:sticky!important;
  top:0!important;
  z-index:20!important;
}

.entra-user-table-wrap .entra-user-table thead th{
  position:static!important;
  background:#f4f8fb!important;
}

.entra-user-table-wrap .entra-user-table td{
  background:#fff;
}


/* v0.14.40 — calendar, Information Required, and audit refinements */
#info .desktop-table thead,
#info .desktop-table thead th{position:static!important;top:auto!important;z-index:auto!important;}
.calendar-month-picker{height:34px!important;width:112px!important;max-width:112px!important;padding:0 26px 0 10px!important;border:1px solid #9fc5dc!important;border-radius:8px!important;background-color:#fff!important;color:var(--navy)!important;font-size:12px!important;font-weight:700!important;line-height:32px!important;box-sizing:border-box!important;}
.calendar-nav-btn,.calendar-today-btn{height:34px!important;min-height:34px!important;border-radius:8px!important;box-sizing:border-box!important;}
.calendar-nav-center{gap:8px!important;}

/* v0.14.42 calendar + audit cleanup */
.calendar-nav-center{justify-content:flex-start!important;flex:0 1 auto!important;}
.calendar-month-picker{height:34px!important;border-radius:8px!important;padding:5px 28px 5px 10px!important;font-size:12px!important;}
.calendar-today-label{font-size:11px;font-weight:700;color:var(--muted);white-space:nowrap;}
#information .desktop-table thead,#information .desktop-table thead th{position:static!important;top:auto!important;z-index:auto!important;}


/* v0.14.43 — unified calendar month/year navigation */
.calendar-nav{
  min-height:42px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:10px!important;
  margin-bottom:10px!important;
}
.calendar-month-stepper{
  display:inline-flex;
  align-items:center;
  height:34px;
  border:1px solid #9fc5dc;
  border-radius:8px;
  background:#fff;
  overflow:hidden;
}
.calendar-month-stepper .calendar-nav-btn{
  width:34px!important;
  min-width:34px!important;
  height:32px!important;
  min-height:32px!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:#fff!important;
  color:var(--navy)!important;
  display:grid!important;
  place-items:center!important;
  font-size:18px!important;
  line-height:1!important;
  transform:none!important;
}
.calendar-month-stepper .calendar-nav-btn:hover{background:var(--soft-blue)!important;}
.calendar-month-name{
  min-width:86px;
  padding:0 10px;
  text-align:center;
  color:var(--navy);
  font-size:12px;
  font-weight:800;
  line-height:32px;
  text-transform:uppercase;
  border-left:1px solid #d7e4ec;
  border-right:1px solid #d7e4ec;
}
.calendar-year-picker{
  width:82px!important;
  height:34px!important;
  min-height:34px!important;
  padding:0 26px 0 10px!important;
  border:1px solid #9fc5dc!important;
  border-radius:8px!important;
  background:#fff!important;
  color:var(--navy)!important;
  font-size:12px!important;
  font-weight:800!important;
  box-sizing:border-box!important;
}
.calendar-nav-spacer{flex:1 1 auto;min-width:8px;}
.calendar-today-label{
  display:inline-flex!important;
  align-items:center!important;
  height:34px!important;
  margin:0!important;
  padding:0 2px!important;
  color:var(--muted)!important;
  font-size:11px!important;
  font-weight:700!important;
  white-space:nowrap;
}
.calendar-today-btn{
  height:34px!important;
  min-height:34px!important;
  margin:0!important;
  padding:0 13px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:8px!important;
  transform:none!important;
}


/* v0.14.45 — Project Activity history + status badge alignment */
.badge{text-align:center;justify-content:center}

.last-activity{align-items:center}
.last-activity .activity-main{flex:1;min-width:0}
.last-activity .activity-actions{margin-left:auto;flex:0 0 auto}
.last-activity .activity-phase{display:inline-block;margin-bottom:4px;border-radius:999px;padding:3px 8px;background:#e8f3fb;color:#135b84;font-size:10px;font-weight:800}
.activity-add-btn{color:var(--navy);border-color:#80b8d5;background:#fff}
.activity-add-btn:hover{background:var(--soft-blue);border-color:var(--blue)}
.project-activity-modal{width:min(720px,calc(100vw - 32px));max-height:88vh;overflow:auto}
.project-activity-modal-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}
.project-activity-modal-heading h3{margin:2px 0 0;color:var(--navy)}
.project-activity-history-section{margin-top:18px;border-top:1px solid var(--line);padding-top:14px}
.project-activity-history-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.project-activity-history-heading h4{margin:0;color:var(--navy)}
.project-activity-history{display:grid;gap:8px;max-height:300px;overflow:auto;padding-right:3px}
.project-activity-history-item{border:1px solid var(--line);border-radius:8px;padding:10px 11px;background:#fbfdff;line-height:1.4}
.project-activity-history-meta{display:flex;align-items:center;gap:8px;margin-bottom:4px;font-size:11px;color:var(--navy)}
.activity-phase-badge{display:inline-flex;border-radius:999px;padding:2px 7px;background:#e8f3fb;color:#135b84;font-size:9px;font-weight:800}


/* v0.14.50 — record comments */
.record-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;white-space:nowrap}
.comment-link{color:var(--navy);font-weight:750}
.comment-link.has-comments{display:inline-flex;align-items:center;justify-content:center;min-width:38px;padding:3px 7px;border:1px solid #b6d7e8;border-radius:999px;background:#eef7fb;color:#075d89}
.comments-modal{width:min(680px,calc(100vw - 30px));max-height:86vh;overflow:hidden;display:flex;flex-direction:column}
.comments-modal-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:12px}
.comments-modal-heading h3{margin:2px 0 1px;color:var(--navy)}
.comments-list{overflow:auto;min-height:90px;max-height:390px;border:1px solid var(--line);border-radius:9px;background:#f8fafb;padding:8px}
.comment-item{background:#fff;border:1px solid #dfe7ed;border-radius:8px;padding:10px 11px;margin-bottom:8px}
.comment-item:last-child{margin-bottom:0}
.comment-item.resolved{opacity:.64;background:#f5f6f7}
.comment-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:11px;color:var(--muted);margin-bottom:5px}
.comment-meta strong{color:var(--navy)}
.comment-resolved-label{font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:#52705f;background:#eaf3ed;border-radius:999px;padding:2px 6px}
.comment-text{font-size:13px;line-height:1.45;color:#334155;white-space:pre-wrap}
.comment-actions{text-align:right;margin-top:6px}
.comments-empty{padding:18px;text-align:center;color:var(--muted);font-size:12px}
.comments-resolved-toggle{font-size:11px;color:var(--muted);padding:8px 2px 3px}
.comments-resolved-toggle label{display:flex;align-items:center;gap:6px}
.comment-form{border-top:1px solid var(--line);margin-top:8px;padding-top:10px}
.comment-form label{display:block;font-size:11px;font-weight:750;color:var(--navy);margin-bottom:5px}
.comment-form textarea{width:100%;resize:vertical;min-height:76px;padding:9px;border:1px solid var(--line);border-radius:8px;font:inherit;box-sizing:border-box}
.comment-permission-note{margin-top:5px}
#postCommentBtn:disabled{opacity:.45;cursor:not-allowed}


/* v0.14.51 — internal comments polish + mention picker */
.comment-link{
  display:inline-flex!important;align-items:center;justify-content:center;
  min-width:34px;min-height:28px;padding:3px 7px!important;
  border:1px solid #c9dbe6!important;border-radius:999px!important;
  background:#fff!important;color:#365c74!important;text-decoration:none!important;
  line-height:1!important;font-size:12px!important;
}
.comment-link:hover{background:#f1f7fa!important;border-color:#8fbdd3!important;color:#075d89!important}
.comment-link.has-comments{background:#eef7fb!important;border-color:#8fc6df!important;color:#075d89!important}
.record-actions{gap:12px!important}
.comment-mention-picker{margin-top:10px;border:1px solid var(--line);border-radius:8px;background:#f8fafc}
.comment-mention-picker summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:9px 10px;color:var(--navy);font-size:12px;font-weight:750}
.comment-mention-picker summary::-webkit-details-marker{display:none}
.comment-mention-count{font-size:11px;font-weight:650;color:var(--muted)}
.comment-mention-list{border-top:1px solid var(--line);padding:6px 9px;max-height:190px;overflow:auto;background:#fff}
.comment-mention-option{display:flex!important;align-items:center;gap:8px;padding:7px 3px;margin:0!important;cursor:pointer;font-weight:400!important}
.comment-mention-option input{width:auto!important;margin:0}
.comment-mention-option span{display:flex;flex-direction:column;min-width:0}
.comment-mention-option strong{font-size:12px;color:#263c4a}
.comment-mention-option small{font-size:10px;color:var(--muted)}
.comment-mentioned{margin-top:7px;font-size:10px;color:#587080;font-weight:650}


/* v0.14.52 — general project comments + modal close polish */
.project-comment-btn{
  color:var(--navy)!important;
  border-color:#80b8d5!important;
  background:#fff!important;
}
.project-comment-btn:hover{background:var(--soft-blue)!important;border-color:var(--blue)!important;color:var(--navy)!important}
.last-activity .activity-actions{display:flex;align-items:center;gap:8px}

/* v0.14.53 — notification queue + aligned project comment action */

/* v0.14.57 — seamless Summary drill-down */
.summary-drilldown,
.summary-kpi-drilldown{
  cursor:pointer;
}


/* Schedule source toggle: Project / Site / Combined */
.schedule-mode-toggle{display:inline-flex;gap:3px;margin-top:12px;padding:3px;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.03)}
.schedule-mode-toggle button{appearance:none;border:0;background:transparent;color:var(--muted);font:inherit;font-size:12px;font-weight:700;padding:7px 13px;border-radius:7px;cursor:pointer}
.schedule-mode-toggle button:hover{background:var(--soft)}
.schedule-mode-toggle button.active{background:var(--blue);color:#fff}
@media(max-width:700px){.schedule-mode-toggle{width:100%;box-sizing:border-box}.schedule-mode-toggle button{flex:1;padding:8px 6px}.page-header>div:first-child{min-width:0}}


/* v0.14.59 — schedule density cleanup */
.gantt-group-controls{
  display:inline-flex!important;
  align-items:center;
  gap:5px!important;
  margin-left:4px;
}
.gantt-group-controls .linkbtn{
  font-size:10px;
  font-weight:750;
  padding:0;
}
.gantt-bar{
  overflow:hidden;
  white-space:nowrap;
}
.gantt-bar span{
  display:block;
  width:100%;
  overflow:hidden;
  text-overflow:clip;
  white-space:nowrap;
}
#agendaList{
  max-height:520px;
  overflow-y:auto;
  overscroll-behavior:contain;
}
@media(max-width:900px){
  #agendaList{max-height:420px}
}


/* v0.14.59 — collapsed Gantt groups remain a real Gantt */
.gantt-group-summary{
  width:100%;
  min-height:42px;
  border:0;
  border-top:1px solid #e1e8ed;
  border-radius:0;
  padding:0;
  display:grid;
  grid-template-columns:260px minmax(620px,1fr);
  background:#f1f5f8;
  color:#314b63;
  text-align:left;
  cursor:pointer;
}
.gantt-group-summary:hover{background:#e7eef4}
.gantt-group-summary-label{
  min-width:0;
  padding:0 12px;
  display:flex;
  align-items:center;
  gap:8px;
}
.gantt-group-summary-label strong{
  min-width:0;
  font-size:11px;
  letter-spacing:.055em;
  text-transform:uppercase;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.gantt-group-summary-lane{
  position:relative;
  min-height:42px;
  border-left:1px solid var(--line);
  background-image:linear-gradient(to right,rgba(202,214,224,.25) 1px,transparent 1px);
  background-size:var(--gantt-week,14.2857142857%) 100%;
}
.gantt-group-summary-bar{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  height:12px;
  min-width:4px;
  border-radius:999px;
  background:#8b98a3;
  box-shadow:0 1px 3px rgba(24,45,62,.16);
}
.gantt-group-summary-bar.active{background:#3b83bd}
.gantt-group-summary-bar.waiting{background:#d99022}
.gantt-group-summary-bar.blocked{background:#b74747}
.gantt-group-summary-bar.complete{background:#2d8a68}
.gantt-group-summary-bar.pending{background:#8b98a3}

@media(max-width:900px){
  .gantt-group-summary{grid-template-columns:225px minmax(535px,1fr)}
}


/* v0.14.59 — Gantt time-axis readability */
.container:has(#timeline.active){
  max-width:none;
}

#timeline.view.active{
  width:100%;
}

#timeline .timeline{
  padding:14px;
}

.gantt-scroll{
  overflow-x:auto;
  overflow-y:visible;
  overscroll-behavior-x:contain;
  scrollbar-gutter:stable both-edges;
  padding-bottom:4px;
}

.gantt-shell{
  min-width:calc(220px + var(--gantt-chart-min,900px));
}

.gantt-head,
.gantt-row,
.gantt-group-summary{
  grid-template-columns:220px minmax(var(--gantt-chart-min,900px),1fr);
}

.gantt-scale{
  height:34px;
  overflow:hidden;
}

.gantt-scale .gantt-week-label{
  position:absolute;
  top:0;
  height:34px;
  padding-top:9px;
  transform:none;
  text-align:center;
  white-space:nowrap;
  font-size:10px;
  font-weight:800;
  color:#40566a;
  border-left:1px solid rgba(137,160,178,.42);
  box-sizing:border-box;
}

.gantt-scale .gantt-week-label:first-child{
  border-left:0;
}

.gantt-scale,
.gantt-lane,
.gantt-group-summary-lane{
  background-image:linear-gradient(to right,rgba(137,160,178,.30) 1px,transparent 1px);
}

.gantt-head>div:first-child{
  position:sticky;
  left:0;
  z-index:8;
  background:#edf3f7;
  box-shadow:1px 0 0 var(--line);
}

.gantt-label{
  position:sticky;
  left:0;
  z-index:4;
  box-shadow:1px 0 0 var(--line);
}

.gantt-row:nth-child(odd) .gantt-label{
  background:#fbfcfd;
}

.gantt-row:nth-child(even) .gantt-label{
  background:#fff;
}

.gantt-group-summary-label{
  position:sticky;
  left:0;
  z-index:4;
  background:#f1f5f8;
  box-shadow:1px 0 0 var(--line);
}

.gantt-group-summary:hover .gantt-group-summary-label{
  background:#e7eef4;
}

@media(max-width:900px){
  .gantt-shell{
    min-width:calc(190px + var(--gantt-chart-min,900px));
  }

  .gantt-head,
  .gantt-row,
  .gantt-group-summary{
    grid-template-columns:190px minmax(var(--gantt-chart-min,900px),1fr);
  }
}


/* v0.14.59 — correct Gantt horizontal scrolling */
.gantt-shell{
  width:100%;
  min-width:0!important;
}

.gantt-scroll{
  width:100%;
  max-width:100%;
  overflow-x:scroll!important;
  overflow-y:visible;
  -webkit-overflow-scrolling:touch;
  scrollbar-gutter:stable;
}

.gantt-scroll>.gantt-head,
.gantt-scroll>.gantt-group{
  min-width:calc(220px + var(--gantt-chart-min,820px));
}

.gantt-scroll>.gantt-group .gantt-row,
.gantt-scroll>.gantt-group .gantt-group-summary{
  min-width:calc(220px + var(--gantt-chart-min,820px));
}

.gantt-head,
.gantt-row,
.gantt-group-summary{
  grid-template-columns:220px minmax(var(--gantt-chart-min,820px),1fr);
}

.gantt-scroll-controls{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-left:8px;
}

.gantt-scroll-controls .linkbtn{
  font-size:10px;
  font-weight:800;
  padding:2px 4px;
}

/* Make the horizontal track visible where the browser permits custom scrollbars. */
.gantt-scroll::-webkit-scrollbar{
  height:12px;
}
.gantt-scroll::-webkit-scrollbar-track{
  background:#eef3f6;
  border-radius:999px;
}
.gantt-scroll::-webkit-scrollbar-thumb{
  background:#8a949d;
  border:2px solid #eef3f6;
  border-radius:999px;
}
.gantt-scroll::-webkit-scrollbar-thumb:hover{
  background:#66727c;
}

@media(max-width:900px){
  .gantt-scroll>.gantt-head,
  .gantt-scroll>.gantt-group,
  .gantt-scroll>.gantt-group .gantt-row,
  .gantt-scroll>.gantt-group .gantt-group-summary{
    min-width:calc(190px + var(--gantt-chart-min,820px));
  }

  .gantt-head,
  .gantt-row,
  .gantt-group-summary{
    grid-template-columns:190px minmax(var(--gantt-chart-min,820px),1fr);
  }
}


/* v0.14.59 — current-week Gantt viewport + persistent drag scrollbar */
.gantt-shell{
  width:100%;
  min-width:0!important;
}

.gantt-scroll{
  width:100%;
  max-width:100%;
  overflow-x:auto!important;
  overflow-y:visible;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none!important;
  padding-bottom:0!important;
}

.gantt-scroll::-webkit-scrollbar{
  display:none!important;
}

.gantt-scroll>.gantt-head,
.gantt-scroll>.gantt-group,
.gantt-scroll>.gantt-group .gantt-row,
.gantt-scroll>.gantt-group .gantt-group-summary{
  min-width:calc(220px + var(--gantt-chart-min,960px));
}

.gantt-head,
.gantt-row,
.gantt-group-summary{
  grid-template-columns:220px minmax(var(--gantt-chart-min,960px),1fr);
}

.gantt-bottom-scroll{
  display:block;
  width:100%;
  padding:8px 4px 5px;
  background:#fff;
  box-sizing:border-box;
}

.gantt-bottom-scroll-track{
  position:relative;
  width:100%;
  height:14px;
  border-radius:999px;
  background:#d9dee2;
  box-shadow:inset 0 0 0 1px rgba(79,94,106,.14);
  cursor:pointer;
}

.gantt-bottom-scroll-track.disabled{
  opacity:.32;
  cursor:default;
}

.gantt-bottom-scroll-thumb{
  position:absolute;
  left:0;
  top:2px;
  height:10px;
  min-width:72px;
  border-radius:999px;
  background:#858d94;
  cursor:grab;
  will-change:transform,width;
}

.gantt-bottom-scroll-thumb:hover{background:#69737b}
.gantt-bottom-scroll-thumb:active{cursor:grabbing;background:#56616a}

@media(max-width:900px){
  .gantt-scroll>.gantt-head,
  .gantt-scroll>.gantt-group,
  .gantt-scroll>.gantt-group .gantt-row,
  .gantt-scroll>.gantt-group .gantt-group-summary{
    min-width:calc(190px + var(--gantt-chart-min,960px));
  }

  .gantt-head,
  .gantt-row,
  .gantt-group-summary{
    grid-template-columns:190px minmax(var(--gantt-chart-min,960px),1fr);
  }
}


/* v0.14.59 WIP — Calendar visual cleanup */
#calendar .agenda-grid{
  grid-template-columns:minmax(300px,1fr) minmax(0,1.65fr);
  align-items:stretch;
}
#calendar .calendar-main-card,
#calendar .calendar-agenda-card{
  min-width:0;
}
#calendar .calendar-nav{
  padding:0 10px;
  margin-bottom:0!important;
  border-bottom:0;
}
#calendar .agenda-date{
  font-size:12px;
  line-height:1.2;
  font-weight:750;
}
#calendar .day-cell{
  min-width:0;
}
#calendar .event-dot{
  line-height:1.2;
  overflow-wrap:break-word;
}
@media(max-width:900px){
  #calendar .agenda-grid{grid-template-columns:1fr;}
  #calendar .calendar-agenda-card{order:1;}
  #calendar .calendar-main-card{order:2;}
}

/* v0.14.59 WIP — Calendar use available desktop width */
.container:has(#calendar.active){
  max-width:none;
}
#calendar.view.active{
  width:100%;
}
#calendar .agenda-grid{
  grid-template-columns:minmax(340px,.72fr) minmax(620px,1.35fr);
}
@media(max-width:1100px){
  #calendar .agenda-grid{
    grid-template-columns:minmax(300px,.8fr) minmax(520px,1.2fr);
  }
}
@media(max-width:900px){
  #calendar .agenda-grid{grid-template-columns:1fr;}
}


/* v0.14.59 WIP — Calendar Today marker matches Gantt */
#calendar .day-cell.today{position:relative;}
#calendar .calendar-today-marker{
  position:absolute;
  top:4px;
  left:26px;
  color:#d92d20;
  font-size:10px;
  font-weight:700;
  font-style:italic;
  line-height:1;
  background:transparent;
  border:0;
  padding:0;
  pointer-events:none;
}

/* v0.14.59 WIP — Calendar Today inline white bubble */
#calendar .calendar-today-marker{
  top:4px;
  left:26px;
  display:inline-flex;
  align-items:center;
  min-height:16px;
  padding:1px 6px;
  background:#fff;
  border:1px solid rgba(217,45,32,.18);
  border-radius:999px;
  box-shadow:0 1px 2px rgba(15,23,42,.08);
  line-height:1.1;
}

/* v0.14.59 Site Operations Pass 14 — balanced project navigation hierarchy */
.sidebar-nav .nav-root{
  font-weight:800;
}
.sidebar-nav .nav-child{
  padding-left:24px;
}
.sidebar-nav .nav-primary{
  font-weight:800;
  color:rgba(255,255,255,.92);
  font-size:14px;
}
.sidebar-nav .nav-group-label{
  padding:10px 12px 10px 24px;
  line-height:1.2;
  user-select:none;
}
.sidebar-nav .nav-subchild{
  padding-left:36px;
  font-weight:500;
  font-size:13px;
  white-space:nowrap;
}
.sidebar-nav .nav-root-secondary{
  margin-top:0;
}

@media (max-width:900px){
  .sidebar-nav .nav-child{
    padding-left:11px;
  }
  .sidebar-nav .nav-subchild{
    padding-left:22px;
  }
  .sidebar-nav .nav-group-label{
    display:block;
    padding-left:11px;
  }
}

/* v0.14.59 WIP — shared desktop content width normalization */
@media (min-width:981px){
  .container{
    width:100%;
    max-width:1480px;
    margin-left:auto;
    margin-right:auto;
  }

  /* Content-heavy views use the same centered application frame instead of full-bleed desktop width. */
  .container:has(#timeline.active),
  .container:has(#calendar.active){
    max-width:1480px;
  }

  #timeline.view.active,
  #calendar.view.active{
    width:100%;
  }
}

/* A wider Projects workspace can carry another card as the portfolio grows. */
@media (min-width:1320px){
  .project-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
}

/* v0.14.59 WIP — Pass 18: unify application workspace on white */
.content-shell{
  background:#fff;
}

/* Keep the centered application frame visually continuous with the workspace. */
main.container{
  background:#fff;
}

/* v0.14.59 WIP — Pass 19: restore soft application canvas while keeping normalized widths */
.content-shell{
  background:var(--bg);
}

main.container{
  background:transparent;
}


/* v0.14.59 Pass 26 — Project Controls summary cards + drill-down */
#deliverables .desktop-table,
#info .desktop-table{
  background:transparent;
  border:0;
  box-shadow:none;
  overflow:visible;
}
#deliverables .desktop-table > div[style*="overflow:auto"],
#info .desktop-table > div[style*="overflow:auto"]{
  display:none!important;
}
#deliverables .desktop-table .table-tools{
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
  margin-bottom:14px;
}
#deliverableCards,
#infoCards{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  gap:9px;
}
.project-control-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  padding:13px 14px 11px;
  box-shadow:0 2px 8px rgba(15,23,42,.035);
  cursor:pointer;
  transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease;
  min-width:0;
}
.project-control-card:hover,
.project-control-card:focus-visible{
  border-color:#9ec8e7;
  box-shadow:0 6px 18px rgba(15,23,42,.08);
  transform:translateY(-1px);
  outline:none;
}
.project-control-card-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:9px;
}
.project-control-card-top>div:first-child{min-width:0}
.project-control-card h3{
  margin:2px 0 0;
  font-size:15px;
  line-height:1.32;
  color:#173653;
}
.project-control-badges{
  display:flex;
  align-items:flex-start;
  justify-content:flex-end;
  gap:5px;
  flex-wrap:wrap;
  flex:0 0 auto;
  max-width:45%;
}
.project-control-card-meta{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:11px;
  padding-top:10px;
  border-top:1px solid #edf1f5;
}
.project-control-card-meta span,
.project-control-card-block{min-width:0}
.project-control-card-meta small,
.project-control-card-block small{
  display:block;
  color:var(--muted);
  font-size:10px;
  font-weight:750;
  text-transform:uppercase;
  letter-spacing:.045em;
  margin-bottom:3px;
}
.project-control-card-meta strong,
.project-control-card-block span{
  display:block;
  color:#2c3f52;
  font-size:12px;
  line-height:1.35;
  overflow-wrap:anywhere;
}
.project-control-card-block{
  margin-top:8px;
  padding:8px 9px;
  border-radius:8px;
  background:#f7f9fb;
}
.project-control-card-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:9px;
  padding-top:8px;
  border-top:1px solid #edf1f5;
  color:var(--blue);
  font-size:11px;
  font-weight:750;
}
.project-control-card-footer span:last-child{font-size:20px;line-height:12px}
.project-control-detail-modal{
  width:min(720px,calc(100vw - 30px));
  max-height:min(82vh,760px);
  overflow:auto;
}
.project-control-detail-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
}
.project-control-detail-head h3{
  margin:3px 0 8px;
  font-size:21px;
  color:#163954;
}
.project-control-detail-status{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}
.project-control-detail-close{
  appearance:none;
  border:0;
  background:transparent;
  color:#64748b;
  font-size:28px;
  line-height:1;
  cursor:pointer;
  padding:0 3px;
}
.project-control-detail-body{
  border:1px solid var(--line);
  border-radius:10px;
  overflow:hidden;
  background:#fff;
}
.project-control-detail-row{
  display:grid;
  grid-template-columns:145px minmax(0,1fr);
  gap:14px;
  padding:11px 13px;
  border-bottom:1px solid #edf1f5;
  font-size:12px;
  line-height:1.45;
}
.project-control-detail-row:last-child{border-bottom:0}
.project-control-detail-row>span{
  color:var(--muted);
  font-weight:750;
}
.project-control-detail-row>div{color:#263b4f;white-space:pre-wrap;overflow-wrap:anywhere}
.project-control-detail-actions{align-items:center}

@media(max-width:700px){
  #deliverableCards,#infoCards{display:grid!important;grid-template-columns:1fr;gap:10px}
  #info .desktop-table{display:none!important}
  .project-control-card{padding:14px}
  .project-control-badges{max-width:48%}
  .project-control-detail-row{grid-template-columns:1fr;gap:4px}
}

/* v0.14.59 WIP — Pass 28: Project Controls Cards/List view toggle + action alignment */
#deliverables .page-header>.actions,
#info .page-header>.actions{
  justify-content:flex-end;
}
#deliverables .page-header>.actions .btn.primary,
#info .page-header>.actions .btn.primary{
  order:3;
}
#deliverables .page-header>.actions .editor-only,
#info .page-header>.actions .editor-only{
  order:2;
}
#deliverables .page-header>.actions .project-switcher,
#info .page-header>.actions .project-switcher{
  order:1;
}
.project-control-tools{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.project-control-filters{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  min-width:0;
}
.project-control-filters-empty{flex:1 1 auto;min-height:34px}
.project-control-view-control{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:8px;
  flex:0 0 auto;
}
.project-control-view-label{
  color:var(--muted);
  font-size:11px;
  font-weight:750;
  text-transform:uppercase;
  letter-spacing:.045em;
}
.project-control-view-toggle{
  display:inline-flex;
  align-items:center;
  padding:2px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#f4f7fa;
}
.project-control-view-toggle button{
  appearance:none;
  border:0;
  background:transparent;
  color:#526578;
  min-width:58px;
  padding:6px 10px;
  border-radius:6px;
  font:inherit;
  font-size:11px;
  font-weight:750;
  cursor:pointer;
}
.project-control-view-toggle button.active{
  background:var(--blue);
  color:#fff;
  box-shadow:0 1px 3px rgba(15,23,42,.16);
}
.project-control-view-toggle button:focus-visible{
  outline:2px solid #8fc5e9;
  outline-offset:1px;
}

/* Keep the toolbar visible in both modes; only swap cards vs. table body. */
#deliverables[data-control-view="cards"] .project-control-list-wrap,
#info[data-control-view="cards"] .project-control-list-wrap{
  display:none!important;
}
#deliverables[data-control-view="cards"] #deliverableCards,
#info[data-control-view="cards"] #infoCards{
  display:grid!important;
}
#deliverables[data-control-view="list"] #deliverableCards,
#info[data-control-view="list"] #infoCards{
  display:none!important;
}
#deliverables[data-control-view="list"] .project-control-list-wrap,
#info[data-control-view="list"] .project-control-list-wrap{
  display:block!important;
}
#deliverables[data-control-view="list"] .desktop-table,
#info[data-control-view="list"] .desktop-table{
  background:#fff;
  border:1px solid var(--line);
  box-shadow:none;
  overflow:hidden;
}
#deliverables[data-control-view="list"] .desktop-table .table-tools,
#info[data-control-view="list"] .desktop-table .table-tools{
  margin-bottom:0;
  border:0;
  border-bottom:1px solid var(--line);
  border-radius:0;
}

@media(max-width:700px){
  .project-control-tools{align-items:stretch}
  .project-control-filters{width:100%}
  .project-control-filters input,
  .project-control-filters select{flex:1 1 150px;min-width:0}
  .project-control-filters-empty{display:none}
  .project-control-view-control{margin-left:auto}
  #deliverables[data-control-view="list"] .desktop-table,
  #info[data-control-view="list"] .desktop-table{display:block!important}
  #deliverables[data-control-view="list"] .project-control-list-wrap,
  #info[data-control-view="list"] .project-control-list-wrap{overflow:auto!important}
}

/* v0.14.59 WIP — Pass 30: Project Controls repair + cleaner summary cards */
/* Detail drill-down must override the shared modal backdrop's default display:none. */
.project-control-detail-backdrop{
  display:flex!important;
}

/* Keep the View toolbar shell visually identical in Cards and List modes. */
#deliverables .desktop-table .table-tools,
#info .desktop-table .table-tools{
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
  margin-bottom:14px;
}

/* Restore the original list body when List is selected. This intentionally
   outranks the older Pass 26 rule that hid the overflow wrapper. */
#deliverables[data-control-view="list"] .desktop-table > .project-control-list-wrap,
#info[data-control-view="list"] .desktop-table > .project-control-list-wrap{
  display:block!important;
}

/* In List mode the toolbar and table read as one report-like shell. */
#deliverables[data-control-view="list"] .desktop-table,
#info[data-control-view="list"] .desktop-table{
  background:#fff;
  border:1px solid var(--line);
  border-radius:10px;
  overflow:hidden;
}
#deliverables[data-control-view="list"] .desktop-table .table-tools,
#info[data-control-view="list"] .desktop-table .table-tools{
  margin-bottom:0;
  border:0;
  border-bottom:1px solid var(--line);
  border-radius:0;
}

/* Header actions: selector first; Add + blue PDF together on one row beneath it. */
#deliverables .page-header>.actions,
#info .page-header>.actions{
  display:grid;
  grid-template-columns:auto auto;
  justify-content:end;
  align-items:center;
  gap:8px;
}
#deliverables .page-header>.actions .project-switcher,
#info .page-header>.actions .project-switcher{
  grid-column:1 / -1;
  justify-self:end;
}
#deliverables .page-header>.actions .editor-only,
#info .page-header>.actions .editor-only{
  grid-column:1;
  grid-row:2;
  justify-self:end;
}
#deliverables .page-header>.actions .btn.primary,
#info .page-header>.actions .btn.primary{
  grid-column:2;
  grid-row:2;
  justify-self:end;
}

/* Summary cards intentionally show only one status system. Schedule Health and
   Visibility remain available in the full detail drill-down. */
.project-control-card-top{min-height:48px}
.project-control-badges{max-width:42%}

@media(max-width:700px){
  #deliverables .page-header>.actions,
  #info .page-header>.actions{
    width:100%;
    grid-template-columns:auto auto;
  }
  #deliverables .page-header>.actions .project-switcher,
  #info .page-header>.actions .project-switcher{
    width:100%;
  }
}

/* v0.14.59 WIP — Pass 31: Project Controls detail polish + card comments */
.project-control-detail-meta{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(145px,1fr));
  gap:8px;
  margin:0 0 12px;
  padding:10px;
  border:1px solid #d7e5ef;
  border-radius:10px;
  background:#f5f9fc;
}
.project-control-detail-meta-item{
  min-width:0;
  padding:2px 5px;
}
.project-control-detail-meta-item>span{
  display:block;
  margin-bottom:5px;
  color:var(--blue);
  font-size:10px;
  font-weight:800;
  letter-spacing:.055em;
  text-transform:uppercase;
}
.project-control-detail-meta-item>div{
  min-height:21px;
  display:flex;
  align-items:center;
  color:#263b4f;
  font-size:12px;
  font-weight:700;
}
.project-control-detail-row>span{
  color:var(--blue)!important;
  font-weight:800;
}
.project-control-card-footer{
  gap:10px;
}
.project-control-card-comment-wrap{
  display:flex;
  align-items:center;
  min-width:0;
}
.project-control-card-comment{
  display:inline-flex!important;
  align-items:center;
  gap:5px;
  padding:2px 5px!important;
  min-width:0!important;
  border:0!important;
  background:transparent!important;
  color:#1877b8!important;
  font-size:11px!important;
  font-weight:750!important;
}
.project-control-card-comment:hover{
  background:#eef7fb!important;
  border-radius:6px;
}
.project-control-comment-label{
  color:#1877b8;
}
.project-control-view-details{
  margin-left:auto;
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:var(--blue);
  white-space:nowrap;
}
.project-control-view-details>span:last-child{
  font-size:20px;
  line-height:12px;
}
.comment-actions{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:10px;
}
.comment-delete-btn{
  color:#b42318!important;
}
.comment-delete-btn:hover{
  color:#8f1d14!important;
  text-decoration:underline;
}

@media(max-width:700px){
  .project-control-detail-meta{grid-template-columns:1fr 1fr}
  .project-control-card-footer{align-items:center}
}

/* Pass 32 — keep quick-glance status pills to a single consistent line. */
.project-control-card .project-control-badges .badge{
  white-space:nowrap;
  max-width:none;
}

/* v0.14.59 WIP — Pass 33: Project Controls detail/card polish */
/* Keep card footer actions balanced and compact. */
.project-control-view-details{
  font-size:11px!important;
  font-weight:750!important;
  line-height:1.2!important;
}
.project-control-view-details>span:last-child{
  font-size:16px!important;
  line-height:1!important;
}

/* Center summary labels directly above their pills. */
.project-control-detail-meta-item{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  text-align:center;
}
.project-control-detail-meta-item>span{
  width:100%;
  text-align:center;
}
.project-control-detail-meta-item>div{
  width:100%;
  justify-content:center;
  text-align:center;
}

/* Give the detail body a clear label/value structure instead of a flat gray table. */
.project-control-detail-row{
  grid-template-columns:145px minmax(0,1fr);
  gap:0;
  padding:0;
  align-items:stretch;
}
.project-control-detail-row>span{
  display:flex;
  align-items:center;
  padding:11px 13px;
  background:#f5f9fc;
  border-right:1px solid #dbe7f0;
  color:var(--blue)!important;
  font-weight:800;
}
.project-control-detail-row>div{
  padding:11px 14px;
  display:flex;
  align-items:center;
  min-width:0;
}

/* Make Admin comment deletion unmistakable but still secondary. */
.comment-delete-btn{
  display:inline-flex!important;
  align-items:center;
  padding:4px 8px!important;
  border:1px solid #f0b8b3!important;
  border-radius:6px!important;
  background:#fff7f6!important;
  color:#b42318!important;
  font-size:11px!important;
  font-weight:800!important;
  text-decoration:none!important;
}
.comment-delete-btn:hover{
  background:#fff0ee!important;
  color:#8f1d14!important;
  text-decoration:none!important;
}

@media(max-width:700px){
  .project-control-detail-row{
    grid-template-columns:1fr;
  }
  .project-control-detail-row>span{
    border-right:0;
    border-bottom:1px solid #e4edf4;
    padding-bottom:7px;
  }
  .project-control-detail-row>div{
    padding-top:8px;
  }
}


/* v0.14.59 WIP — Pass 34: consistent comment pill */
.project-control-card-comment{
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  padding:4px 9px!important;
  border:1px solid #b9dff5!important;
  border-radius:999px!important;
  background:#eaf6fd!important;
  color:#0b72b9!important;
  font-size:11px!important;
  font-weight:800!important;
  line-height:1!important;
  white-space:nowrap!important;
}
.project-control-card-comment:hover{
  background:#dff1fb!important;
  border-color:#8fcbea!important;
}
.project-control-comment-label,
.project-control-comment-icon,
.project-control-comment-count{
  font-size:11px!important;
  line-height:1!important;
  font-weight:800!important;
}
.project-control-comment-icon{
  display:inline-flex;
  align-items:center;
  gap:3px;
}
.project-control-comment-count{
  display:inline-block;
  min-width:10px;
  text-align:center;
}
.project-control-view-details{
  font-size:11px!important;
  font-weight:750!important;
  line-height:1!important;
}
.project-control-view-details>span:last-child{
  font-size:14px!important;
  line-height:1!important;
}


/* Pass 35 — comment footer delete action */
.comment-footer-actions{align-items:center}
.comment-footer-delete{background:#fff!important;border:1px solid #cf4a4a!important;color:#b42318!important;font-weight:750!important}
.comment-footer-delete:hover{background:#fff5f5!important;border-color:#b42318!important;color:#8f1d16!important}
.comment-delete-btn{color:#b42318!important}

/* ==========================================================
   v0.14.59 — FINAL Gantt timeline width alignment
   Header, grid, group summaries and task lanes must all use
   the exact same calculated timeline width.
   ========================================================== */

.gantt-scroll > .gantt-head,
.gantt-scroll > .gantt-group{
  width:calc(220px + var(--gantt-chart-min,960px));
  min-width:calc(220px + var(--gantt-chart-min,960px));
  max-width:none;
  box-sizing:border-box;
}

.gantt-scroll > .gantt-group .gantt-row,
.gantt-scroll > .gantt-group .gantt-group-summary{
  width:100%;
  min-width:0;
  max-width:none;
  box-sizing:border-box;
}

.gantt-head,
.gantt-row,
.gantt-group-summary{
  grid-template-columns:220px var(--gantt-chart-min,960px);
}

.gantt-scale,
.gantt-lane,
.gantt-group-summary-lane{
  width:100%;
  min-width:0;
  box-sizing:border-box;
  overflow:hidden;
}

/* Task bars must remain contained by the full calculated lane. */
.gantt-lane,
.gantt-group-summary-lane{
  position:relative;
}

/* Keep the same geometry on smaller screens. */
@media(max-width:900px){
  .gantt-scroll > .gantt-head,
  .gantt-scroll > .gantt-group{
    width:calc(190px + var(--gantt-chart-min,960px));
    min-width:calc(190px + var(--gantt-chart-min,960px));
  }

  .gantt-head,
  .gantt-row,
  .gantt-group-summary{
    grid-template-columns:190px var(--gantt-chart-min,960px);
  }
}



/* v0.14.61 — Project Activity history button */
.activity-history-btn{
  color:#496779;
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.activity-history-btn::before{
  content:"↺";
  width:22px;
  height:22px;
  flex:0 0 22px;
  display:inline-grid;
  place-items:center;
  border:1.5px solid #1686c0;
  border-radius:50%;
  color:#0877b2;
  font-size:14px;
  font-weight:700;
  line-height:1;
}

.activity-history-btn:hover{
  color:#075f91;
}


/* v0.14.61b — activity history force style */
#viewProjectActivityHistoryBtn{
  color:#527080 !important;
  display:inline-flex !important;
  align-items:center !important;
  gap:8px !important;
}

#viewProjectActivityHistoryBtn::before{
  content:"↺" !important;
  width:22px !important;
  height:22px !important;
  display:inline-grid !important;
  place-items:center !important;
  border:2px solid #1686c0 !important;
  border-radius:50% !important;
  color:#0877b2 !important;
  font-size:14px !important;
  font-weight:700 !important;
  line-height:1 !important;
}

#viewProjectActivityHistoryBtn:hover{
  color:#075f91 !important;
}

/* v0.14.61d — final Activity History button treatment */
#viewProjectActivityHistoryBtn{
  color:#005b92 !important;
  border-color:#76b9df !important;
  font-size:inherit !important;
  font-weight:700 !important;
  display:inline-flex !important;
  align-items:center !important;
  gap:9px !important;
  position:relative !important;
}

#viewProjectActivityHistoryBtn::before{
  content:"" !important;
  width:24px !important;
  height:24px !important;
  flex:0 0 24px !important;
  box-sizing:border-box !important;
  border:2px solid #1686c0 !important;
  border-radius:50% !important;

  /* clock hands: one up, one toward 4 o'clock */
  background:
    linear-gradient(#1686c0,#1686c0) 50% 50% / 2px 7px no-repeat,
    linear-gradient(45deg, transparent 43%, #1686c0 44% 58%, transparent 59%) 56% 58% / 8px 8px no-repeat;

  position:relative !important;
}

/* small history arrow at upper-left of clock */
#viewProjectActivityHistoryBtn::after{
  content:"" !important;
  position:absolute !important;
  left:18px !important;
  top:11px !important;
  width:7px !important;
  height:7px !important;
  border-left:2px solid #1686c0 !important;
  border-top:2px solid #1686c0 !important;
  transform:rotate(-25deg) !important;
}

/* v0.14.61e — simplify Activity History icon + typography */
#viewProjectActivityHistoryBtn{
  color:#005b92 !important;
  border-color:#76b9df !important;
  font-size:inherit !important;
  font-weight:600 !important;
  display:inline-flex !important;
  align-items:center !important;
  gap:9px !important;
}

/* clean clock icon */
#viewProjectActivityHistoryBtn::before{
  content:"" !important;
  width:24px !important;
  height:24px !important;
  flex:0 0 24px !important;
  box-sizing:border-box !important;
  border:2px solid #1686c0 !important;
  border-radius:50% !important;

  background:
    /* minute hand */
    linear-gradient(#1686c0,#1686c0) 50% 35% / 2px 7px no-repeat,
    /* hour hand toward 4 o'clock */
    linear-gradient(45deg,
      transparent 41%,
      #1686c0 42% 58%,
      transparent 59%
    ) 57% 58% / 8px 8px no-repeat !important;
}

/* remove previous arrow decoration */
#viewProjectActivityHistoryBtn::after{
  content:none !important;
}

/* v0.14.61f — clean Activity History icon */
#viewProjectActivityHistoryBtn{
  color:#005b92 !important;
  font-size:inherit !important;
  font-weight:600 !important;
  display:inline-flex !important;
  align-items:center !important;
  gap:7px !important;
}

/* kill all previous generated icon attempts */
#viewProjectActivityHistoryBtn::before,
#viewProjectActivityHistoryBtn::after{
  content:none !important;
  display:none !important;
}

.activity-history-icon{
  width:20px;
  height:20px;
  flex:0 0 20px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.activity-history-icon svg{
  width:20px;
  height:20px;
  stroke:#1686c0;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

/* v0.14.61g — refine gap between history arrow and circle */
.activity-history-icon svg{
  width:20px;
  height:20px;
  stroke:#1686c0;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}

/* Project Plan hierarchy inside Gantt */

.gantt-project-plan-row .gantt-label{
  padding-left:calc(
    10px + (var(--gantt-task-depth, 0) * 18px)
  );
}

.gantt-task-label-main{
  display:flex;
  align-items:center;
  min-width:0;
  gap:5px;
}

.gantt-task-label-main strong{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.gantt-task-toggle{
  flex:0 0 18px;
  width:18px;
  height:18px;
  padding:0;
  border:0;
  background:transparent;
  color:inherit;
  font-size:10px;
  line-height:18px;
  cursor:pointer;
}

.gantt-task-toggle-spacer{
  flex:0 0 18px;
  width:18px;
}

/* v0.15.14 — Gantt hierarchy usability */

/*
 * Expanded Workstream headings must remain visible while the
 * timeline scrolls horizontally, just like Task labels.
 */
.gantt-group-header{
  position:sticky;
  left:0;
  z-index:6;
  width:220px;
  min-width:220px;
  max-width:220px;
  box-sizing:border-box;
  background:#f1f5f8;
  box-shadow:1px 0 0 var(--line);
}

.gantt-group-header:hover{
  background:#e7eef4;
}

/* Make expandable Project Plan Tasks visibly expandable. */
.gantt-task-toggle{
  display:inline-grid;
  place-items:center;
  flex:0 0 20px;
  width:20px;
  height:20px;
  border-radius:4px;
  color:#48677d;
  font-size:11px;
  font-weight:900;
}

.gantt-task-toggle:hover{
  background:#e4edf3;
  color:#075f91;
}

.gantt-task-child-count{
  flex:0 0 auto;
  margin-left:3px;
  padding:2px 6px;
  border-radius:999px;
  background:#e8eef3;
  color:#53697b!important;
  font-size:9px!important;
  font-weight:750;
  white-space:nowrap;
}

/*
 * Parent task labels are hierarchy controls in the Gantt.
 * Cursor should communicate that they expand rather than navigate away.
 */
.gantt-project-plan-row .gantt-label{
  cursor:pointer;
}

@media(max-width:900px){
  .gantt-group-header{
    width:190px;
    min-width:190px;
    max-width:190px;
  }
}

/* ==========================================================
   v0.15.17 — wider pinned Gantt hierarchy column
   ========================================================== */

/*
 * More room for nested Project Plan task names.
 * Timeline remains horizontally scrollable independently.
 */
.gantt-head,
.gantt-row,
.gantt-group-summary{
  grid-template-columns:300px var(--gantt-chart-min,960px);
}

.gantt-scroll > .gantt-head,
.gantt-scroll > .gantt-group{
  width:calc(300px + var(--gantt-chart-min,960px));
  min-width:calc(300px + var(--gantt-chart-min,960px));
}

.gantt-group-header{
  width:300px;
  min-width:300px;
  max-width:300px;
}

/*
 * Keep pinned hierarchy cells above the moving timeline.
 */
.gantt-head > div:first-child,
.gantt-label,
.gantt-group-summary-label,
.gantt-group-header{
  position:sticky;
  left:0;
}

/* Slightly more room for nested labels before truncation. */
.gantt-project-plan-row .gantt-task-label-main strong{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

@media(max-width:900px){
  .gantt-head,
  .gantt-row,
  .gantt-group-summary{
    grid-template-columns:240px var(--gantt-chart-min,960px);
  }

  .gantt-scroll > .gantt-head,
  .gantt-scroll > .gantt-group{
    width:calc(240px + var(--gantt-chart-min,960px));
    min-width:calc(240px + var(--gantt-chart-min,960px));
  }

  .gantt-group-header{
    width:240px;
    min-width:240px;
    max-width:240px;
  }
}

/* v0.15.19 — refine Project Plan Gantt hierarchy alignment */

.gantt-project-plan-row .gantt-label{
  gap:4px;
}

.gantt-task-toggle,
.gantt-task-toggle-spacer{
  flex:0 0 16px;
  width:16px;
}

.gantt-task-toggle{
  height:18px;
  line-height:18px;
}

/* Keep leaf rows stable, but reduce the visual dead space. */
.gantt-task-toggle-spacer{
  display:inline-block;
}

/* Align status badge under the task name rather than under the chevron slot. */
.gantt-project-plan-row .gantt-label > span:last-child{
  margin-left:21px;
}

/* Nested rows retain hierarchy indentation while staying compact. */
.gantt-project-plan-row .gantt-task-label-main{
  gap:4px;
}

.gantt-task-child-count{
  margin-left:2px;
}

/* ==========================================================
   v0.15.20 — Project Plan hierarchy in Calendar / Agenda
   ========================================================== */

.calendar-project-event{
  padding-left:calc(
    10px + (var(--calendar-task-depth, 0) * 16px)
  );
  cursor:pointer;
}

.calendar-project-event:hover{
  filter:brightness(.97);
}

.calendar-event-title{
  display:flex;
  align-items:center;
  min-width:0;
  gap:4px;
}

.calendar-hierarchy-mark{
  flex:0 0 auto;
  color:#71879a;
  font-size:11px;
  font-weight:800;
}

.calendar-project-event .agenda-edit{
  flex:0 0 auto;
  color:#075f91;
  font-weight:700;
  white-space:nowrap;
}

.calendar-dot-hierarchy{
  margin-right:3px;
  color:inherit;
  opacity:.72;
  font-weight:800;
}

/* v0.15.25 — Project Plan hierarchy in Calendar Agenda */

.calendar-project-event{
  padding-left:calc(
    10px + (var(--calendar-task-depth, 0) * 14px)
  );
  cursor:pointer;
}

.calendar-event-title{
  display:flex;
  align-items:center;
  gap:4px;
  min-width:0;
}

.calendar-hierarchy-mark{
  flex:0 0 auto;
  opacity:.7;
  font-weight:800;
}

.calendar-project-event .agenda-edit{
  flex:0 0 auto;
  white-space:nowrap;
  color:#075f91;
  font-weight:700;
}

/* v0.15.28 — expandable Calendar Agenda hierarchy */

.calendar-project-event{
  padding-left:calc(
    10px + (var(--calendar-task-depth, 0) * 16px)
  );
}

.calendar-event-title{
  flex:1 1 auto;
  min-width:0;
}

.calendar-agenda-expandable{
  cursor:pointer;
}

.calendar-agenda-toggle,
.calendar-agenda-toggle-spacer{
  flex:0 0 14px;
  width:14px;
  display:inline-grid;
  place-items:center;
}

.calendar-agenda-toggle{
  color:#526d80;
  font-size:9px;
  font-weight:900;
}

.calendar-agenda-title-text{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.calendar-agenda-child-count{
  flex:0 0 auto;
  margin-left:4px;
  padding:2px 5px;
  border-radius:999px;
  background:#dfe9ef;
  color:#526879;
  font-size:9px;
  font-weight:800;
  white-space:nowrap;
}

.calendar-project-event > .agenda-edit{
  flex:0 0 auto;
}

/* Calendar day overflow control */
#calendar .calendar-more-btn{
  border:0;
  background:transparent;
  padding:2px 0 0;
  color:var(--navy);
  font-size:10px;
  font-weight:700;
  cursor:pointer;
  text-align:left;
}
#calendar .calendar-more-btn:hover{
  text-decoration:underline;
}

/* Calendar day overflow control — polished label */
#calendar .calendar-more-btn{
  display:inline-flex;
  align-items:center;
  gap:4px;
  margin-top:3px;
  line-height:1.1;
}

#calendar .calendar-more-label{
  color:var(--navy);
}

#calendar .calendar-more-sep{
  color:var(--muted);
  font-weight:600;
}

#calendar .calendar-more-count{
  color:var(--muted);
  font-weight:800;
}


/* Project Plan header Task actions */
.project-plan-task-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
}

.project-plan-task-actions .btn {
  flex: 0 0 auto;
}


/* Project Plan predecessor multi-select */
.pte-predecessor-list {
  min-height: 42px;
  max-height: 180px;
  overflow-y: auto;
  border: 1px solid #cfd9e2;
  border-radius: 6px;
  background: #fff;
  padding: 6px;
}

.pte-predecessor-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.pte-predecessor-option:hover {
  background: #f4f7f9;
}

.pte-predecessor-option input {
  margin-top: 2px;
  flex: 0 0 auto;
}

.pte-predecessor-option span {
  line-height: 1.3;
}

.pte-predecessor-empty {
  padding: 8px;
  font-size: 12px;
  opacity: 0.7;
}

/* Fix Project Plan predecessor checkbox layout */
.pte-predecessor-list {
  overflow-x: hidden;
}

.pte-predecessor-option {
  width: 100%;
  box-sizing: border-box;
}

.pte-predecessor-option input[type="checkbox"] {
  width: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  height: 16px !important;
  padding: 0 !important;
  margin: 2px 0 0 0 !important;
  flex: 0 0 16px !important;
}

.pte-predecessor-option span {
  display: block;
  width: auto !important;
  min-width: 0;
  flex: 1 1 auto;
  white-space: normal;
  overflow-wrap: anywhere;
}


/* ==========================================================
   Executive Summary source language
   ========================================================== */

.exec-summary-item {
  position: relative;
  margin: 0 -7px;
  padding: 9px 8px;
  border-radius: 6px;
  transition: background .15s ease, box-shadow .15s ease;
}

.exec-summary-item[role="button"] {
  cursor: pointer;
}

.exec-summary-item[role="button"]:hover {
  box-shadow: inset 0 0 0 1px rgba(61, 86, 108, .10);
}

.exec-summary-content {
  min-width: 0;
  flex: 1 1 auto;
}

.exec-summary-title-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px 7px;
}

.exec-source-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 8px;
  line-height: 1.25;
  letter-spacing: .055em;
  text-transform: uppercase;
  font-weight: 800;
  white-space: nowrap;
  background: #eef2f5;
  color: #65717d;
}

/* Deliverables — neutral gray source language. */
.exec-source-deliverable {
  background: rgba(92, 101, 110, .075);
  box-shadow: inset 3px 0 0 rgba(92, 101, 110, .38);
}

.exec-source-deliverable .exec-source-tag {
  background: #e9edef;
  color: #5f6972;
}


/* Information Required — dependency/orange language. */
.exec-source-info {
  background: rgba(169, 101, 24, .045);
  box-shadow: inset 3px 0 0 rgba(169, 101, 24, .34);
}

.exec-source-info .exec-source-tag {
  background: #fff1e3;
  color: #95601f;
}

/* Project Plan — subtle planning/blue language. */
.exec-source-project {
  background: rgba(20, 95, 138, .085);
  box-shadow: inset 3px 0 0 rgba(20, 95, 138, .68);
}

.exec-source-project .exec-source-tag {
  background: #dcecf5;
  color: #285f82;
}

/*
 * Reserved for Site Operations when Site intelligence is added
 * to the Executive Summary.
 */
.exec-source-site {
  background: rgba(39, 113, 73, .045);
  box-shadow: inset 3px 0 0 rgba(39, 113, 73, .28);
}

.exec-source-site .exec-source-tag {
  background: #e9f4ee;
  color: #3f7358;
}


/* Executive Summary live row limit / expansion */
.exec-summary-more-wrap {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  padding:9px 3px 1px;
  font-size:10px;
  color:var(--muted);
}

.exec-summary-more {
  appearance:none;
  border:0;
  background:transparent;
  padding:2px 0;
  color:var(--blue);
  font-size:11px;
  font-weight:750;
  cursor:pointer;
}

.exec-summary-more:hover {
  text-decoration:underline;
}


/* Executive Summary row consistency */
.exec-summary-title-line > strong {
  font-size: inherit;
  line-height: 1.25;
}

.exec-summary-item .small {
  line-height: 1.3;
}

/*
 * Keep the Executive Summary compact. Full text remains
 * available by opening the underlying record.
 */
#currentWork .exec-summary-item .small {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}


/* ==========================================================
   EXECUTIVE SUMMARY — PROJECT HEALTH STRIP
   Keep overall health and its drivers visible at first glance
   without increasing Executive Summary vertical height.
   ========================================================== */

.project-health-strip{
  display:flex;
  align-items:center;
  gap:18px;
  width:100%;
  box-sizing:border-box;
  margin-bottom:8px;
  padding:10px 13px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:9px;
  box-shadow:0 4px 18px rgba(15,23,42,.04);
}

.project-health-primary{
  flex:0 0 auto;
  min-width:125px;
  padding-right:17px;
  border-right:1px solid var(--line);
}

.project-health-label{
  font-size:10px;
  color:var(--muted);
  font-weight:750;
  text-transform:uppercase;
  letter-spacing:.02em;
}

.project-health-value{
  display:flex;
  align-items:center;
  margin-top:3px;
  font-size:13px;
  font-weight:750;
  white-space:nowrap;
}

.project-health-value .health-mode{
  display:inline-block;
  margin:0 0 0 8px;
  padding:2px 6px;
  border-radius:999px;
  background:#eef2f6;
  font-size:9px;
  line-height:1.3;
  white-space:nowrap;
}

.project-health-value .health-mode.hidden{
  display:none;
}

.project-health-drivers{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px 8px;
  min-width:0;
  flex:1 1 auto;
}

.project-health-driver{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  box-sizing:border-box;
  padding:4px 9px;
  border:1px solid #e1e7ed;
  border-radius:999px;
  background:#f7f9fb;
  color:#465466;
  font-size:11px;
  font-weight:700;
  line-height:1.2;
  white-space:nowrap;
}

.project-health-driver-manual{
  white-space:normal;
}

.project-health-driver-clear{
  color:#49705a;
  background:#f3f8f4;
}

/*
 * With Project Health removed from this grid, the three
 * leadership fields form the first row naturally.
 */
#dashboard .summary-ribbon{
  grid-template-columns:repeat(3,minmax(0,1fr));
  margin-bottom:8px;
}

@media(max-width:900px){
  .project-health-strip{
    align-items:flex-start;
  }

  .project-health-primary{
    min-width:115px;
  }

  #dashboard .summary-ribbon{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:700px){
  .project-health-strip{
    display:block;
  }

  .project-health-primary{
    min-width:0;
    padding-right:0;
    padding-bottom:8px;
    margin-bottom:8px;
    border-right:0;
    border-bottom:1px solid var(--line);
  }

  .project-health-drivers{
    gap:6px;
  }

  .project-health-driver{
    white-space:normal;
  }

  #dashboard .summary-ribbon{
    grid-template-columns:1fr 1fr;
  }
}


/* Project Health driver source / severity colors */
.project-health-driver-project{
  background:#eef5fb;
  border-color:#d8e7f3;
  color:#355f7d;
}

.project-health-driver-overdue{
  background:#fdf0f0;
  border-color:#f2d8d8;
  color:#9a4b4b;
}

.project-health-driver-soon{
  background:#fff5e8;
  border-color:#f4e2c8;
  color:#95621f;
}

.project-health-driver-site{
  background:#edf7f1;
  border-color:#d7eadf;
  color:#4c755d;
}

.project-health-driver-manual{
  background:#f2f0f8;
  border-color:#e1ddee;
  color:#665a84;
}


/* ==========================================================
   EXECUTIVE SUMMARY — HEADER CONTEXT + PHASE PROGRESS
   ========================================================== */

.executive-header-actions{
  align-items:flex-end;
  gap:12px;
}

.executive-header-meta{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  justify-content:center;
  min-width:220px;
  padding-bottom:1px;
}

.executive-header-meta .small{
  margin-bottom:3px;
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.03em;
}

.executive-header-meta strong{
  font-size:11px;
  line-height:1.25;
  color:#334155;
  white-space:nowrap;
}

#dashboard .summary-ribbon{
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.executive-progress-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-bottom:8px;
}

.executive-progress-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:9px;
  padding:9px 11px 10px;
  box-shadow:0 4px 18px rgba(15,23,42,.04);
}

.executive-progress-label{
  font-size:10px;
  color:var(--muted);
  font-weight:750;
  text-transform:uppercase;
  letter-spacing:.02em;
}

.executive-progress-value{
  margin-top:2px;
  font-size:18px;
  line-height:1.15;
  font-weight:760;
  color:var(--navy);
}

.executive-progress-bar{
  height:4px;
  margin-top:7px;
  overflow:hidden;
  border-radius:999px;
  background:#e8edf2;
}

.executive-progress-bar span{
  display:block;
  width:0;
  height:100%;
  border-radius:999px;
  background:var(--blue);
  transition:width .18s ease;
}

@media(max-width:980px){
  .executive-header-actions{
    align-items:flex-start;
  }

  .executive-header-meta{
    align-items:flex-start;
    min-width:0;
  }
}

@media(max-width:700px){
  .executive-progress-grid{
    grid-template-columns:1fr 1fr;
  }

  .executive-header-actions{
    width:100%;
  }

  .executive-header-meta{
    width:100%;
  }
}


/* PROJECT PLAN MILESTONE DIRECT FIX */

.gantt-milestone{
  position:absolute;
  top:50%;
  width:14px !important;
  height:14px;
  padding:0;
  border:0;
  border-radius:2px;
  background:currentColor;
  transform:translate(-50%,-50%) rotate(45deg);
  cursor:pointer;
  z-index:5;
  font-size:0;
}

.gantt-milestone.complete{color:#4f8b67;}
.gantt-milestone.active{color:#3b78aa;}
.gantt-milestone.waiting{color:#c98a32;}
.gantt-milestone.blocked{color:#b95d56;}
.gantt-milestone.pending{color:#60798d;}


/* CALENDAR MILESTONE DIRECT FIX */

.calendar-milestone-label{
  display:inline-flex;
  align-items:center;
  margin-right:6px;
  padding:1px 6px;
  border-radius:999px;
  font-size:9px;
  font-weight:700;
  line-height:1.5;
  letter-spacing:.04em;
  text-transform:uppercase;
  background:rgba(64,99,126,.10);
  color:#49697f;
}


/* SIDEBAR INFORMATION ARCHITECTURE */

.sidebar-nav{
  gap:3px;
}

.sidebar-nav .nav-projects-link{
  margin-bottom:5px;
  font-weight:800;
}

.sidebar-nav .nav-section-label{
  margin:13px 10px 4px;
  padding-top:8px;
  border-top:1px solid rgba(255,255,255,.10);
  color:rgba(255,255,255,.48);
  font-size:9px;
  line-height:1;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  user-select:none;
}

.sidebar-nav .nav-section-label:first-of-type{
  margin-top:4px;
}

.sidebar-nav .nav-section-item{
  padding-left:15px;
}

.sidebar-nav .nav-section-admin{
  margin-top:15px;
}

/*
 * Mobile sidebar becomes a horizontal scroller.
 * Section labels remain compact so they do not dominate the row.
 */
@media(max-width:980px){
  .sidebar-nav .nav-section-label{
    flex:0 0 auto;
    display:flex;
    align-items:center;
    margin:0 3px;
    padding:0 7px;
    border-top:0;
    border-left:1px solid rgba(255,255,255,.12);
    font-size:8px;
    white-space:nowrap;
  }

  .sidebar-nav .nav-projects-link{
    margin-bottom:0;
  }

  .sidebar-nav .nav-section-item{
    padding-left:12px;
  }
}


/* PROJECT PLAN DELIVERY PHASE FILTER */

.pw-section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
}

.pw-phase-filter{
  min-width:180px;
  display:flex;
  flex-direction:column;
  gap:5px;
}

.pw-phase-filter > span{
  font-size:10px;
  font-weight:800;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.06em;
}

.pw-phase-filter select{
  width:100%;
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:7px;
  background:#fff;
  color:var(--text);
  font-size:12px;
}

@media(max-width:700px){
  .pw-section-head{
    align-items:stretch;
    flex-direction:column;
  }

  .pw-phase-filter{
    width:100%;
    min-width:0;
  }
}


/* ==========================================================
   ADMIN PROJECT ACCESS
   ========================================================== */

.admin-project-access-table-wrap{
  max-height:320px;
  overflow:auto;
  border:1px solid #dbe4ec;
  border-radius:8px;
  background:#fff;
}

.admin-project-access-table{
  width:100%;
  border-collapse:collapse;
  font-size:12px;
}

.admin-project-access-table th,
.admin-project-access-table td{
  padding:9px 10px;
  border-bottom:1px solid #e6edf2;
  text-align:left;
  vertical-align:middle;
}

.admin-project-access-table th{
  position:sticky;
  top:0;
  z-index:1;
  background:#f7f9fb;
  color:#51606f;
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.admin-project-access-table th:nth-child(2),
.admin-project-access-table th:nth-child(3),
.admin-project-access-table td:nth-child(2),
.admin-project-access-table td:nth-child(3){
  width:120px;
  text-align:center;
}

.admin-project-access-table tr:last-child td{
  border-bottom:0;
}


/* Admin project assignment / capability alignment */
.admin-project-assignment-option{
  display:flex;
  align-items:center;
  gap:10px;
  margin:7px 0;
  font-size:13px;
  line-height:1.25;
  cursor:pointer;
}

.admin-project-assignment-option input[type="checkbox"]{
  flex:0 0 auto;
  width:auto;
  margin:0;
}

.admin-project-assignment-option span{
  display:inline-block;
}

.admin-project-access-table th:nth-child(2),
.admin-project-access-table th:nth-child(3),
.admin-project-access-table td:nth-child(2),
.admin-project-access-table td:nth-child(3){
  text-align:center;
}

.admin-project-access-table td:nth-child(2) input[type="checkbox"],
.admin-project-access-table td:nth-child(3) input[type="checkbox"]{
  display:block;
  width:auto;
  margin:0 auto;
}

/* Force spacing between Project Assignment checkbox and project name */
.admin-project-assignment-option input[type="checkbox"]{
  margin:0 8px 0 0 !important;
}


/* Capability-gated administration */
.management-only.hidden,
.manage-projects-only.hidden,
.manage-access-only.hidden,
.system-owner-only.hidden{
  display:none !important;
}


/* Read-only record detail access */
.project-control-clickable-row{
  cursor:pointer;
}

.project-control-clickable-row:hover{
  background:rgba(0,0,0,.025);
}


/* === ADMIN USER MANAGEMENT LAYOUT === */

#dashboardProfilePanel{
  display:block;
}

#dashboardProfilePanel > .admin-card-heading{
  margin:22px 0 10px !important;
  padding-top:18px;
  border-top:1px solid var(--line);
}

#dashboardProfilePanel > .admin-card-heading h4,
#addAhtUserCard h4{
  margin:0;
}

#addAhtUserCard{
  padding:18px 20px;
  margin-bottom:0 !important;
}

#dashboardProfilePanel > .admin-grid{
  align-items:start;
  gap:16px;
}

#dashboardProfilePanel > .admin-grid > .admin-card{
  height:auto;
  padding:18px 20px;
}

#dashboardProfilePanel input,
#dashboardProfilePanel select{
  width:100%;
  box-sizing:border-box;
}

.admin-scope-note{
  margin:5px 0 7px;
}

.admin-picker-toolbar{
  display:flex;
  align-items:center;
  gap:10px;
  margin:6px 0 7px;
}

.admin-picker-search{
  min-width:0;
  flex:1 1 auto;
}

.admin-picker-count{
  flex:0 0 auto;
  white-space:nowrap;
}

.admin-scroll-picker{
  min-height:0;
  max-height:280px;
  overflow-y:auto;
  overscroll-behavior:contain;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  padding:6px;
}

.admin-scroll-picker .admin-project-assignment-option{
  display:flex;
  align-items:flex-start;
  gap:9px;
  width:100%;
  margin:0;
  padding:9px 8px;
  border-radius:6px;
  box-sizing:border-box;
}

.admin-scroll-picker .admin-project-assignment-option:hover{
  background:var(--soft);
}

.admin-scroll-picker .admin-project-assignment-option + .admin-project-assignment-option{
  border-top:1px solid var(--line);
}

.admin-scroll-picker .admin-project-assignment-option input{
  width:auto !important;
  flex:0 0 auto;
  margin-top:2px;
}

.admin-scroll-picker .admin-project-assignment-option span{
  min-width:0;
  line-height:1.3;
}

#adminProjectCapabilityList{
  max-height:320px;
  overflow:auto;
}

.external-project-capabilities{
  margin-top:12px !important;
  padding-top:12px;
  border-top:1px solid var(--line);
}

#dashboardProfilePanel > .admin-grid > .admin-card > h4:first-child{
  margin:0 0 10px;
}

#addAhtUserProjects:empty,
#projectAssignmentList:empty{
  display:none;
}

#addAhtUserProjects,
#projectAssignmentList{
  height:auto;
}

/* Save User is the primary, easier-to-hit action. */
#dashboardProfilePanel #saveAccessBtn{
  min-width:170px;
  min-height:44px;
  padding:11px 20px;
  border-radius:8px;
  font-size:14px;
  font-weight:700;
}

@media (max-width:900px){
  #dashboardProfilePanel > .admin-grid{
    grid-template-columns:1fr;
  }

  .admin-scroll-picker{
    max-height:230px;
  }
}


/* === AHT EMPLOYEE DIRECTORY PICKER === */

.employee-picker-toolbar{
  display:flex;
  align-items:center;
  gap:10px;
  margin:6px 0 7px;
}

.employee-picker-toolbar .admin-picker-search{
  flex:1 1 auto;
  min-width:0;
}

.employee-directory-picker{
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  max-height:340px;
  overflow:auto;
  overscroll-behavior:contain;
}

.employee-directory-group + .employee-directory-group{
  border-top:1px solid var(--line);
}

.employee-directory-division{
  position:sticky;
  top:0;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:8px 10px;
  background:var(--soft);
  border-bottom:1px solid var(--line);
  font-size:12px;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.employee-directory-division span:last-child{
  font-weight:600;
  letter-spacing:0;
  opacity:.65;
}

.employee-directory-header{
  display:grid;
  grid-template-columns:minmax(160px, .9fr) minmax(180px, 1.15fr);
  gap:16px;
  padding:7px 10px;
  border-bottom:1px solid var(--line);
  font-size:11px;
  font-weight:700;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.04em;
}

.employee-directory-row{
  appearance:none;
  -webkit-appearance:none;
  display:grid;
  grid-template-columns:minmax(160px, .9fr) minmax(180px, 1.15fr);
  gap:16px;
  align-items:start;
  width:100%;
  margin:0;
  padding:9px 10px;
  border:0;
  border-bottom:1px solid var(--line);
  border-radius:0;
  background:#fff;
  color:inherit;
  text-align:left;
  font:inherit;
  cursor:pointer;
}

.employee-directory-row:last-child{
  border-bottom:0;
}

.employee-directory-row:hover{
  background:var(--soft);
}

.employee-directory-row.selected{
  background:rgba(0,0,0,.055);
}

.employee-directory-name,
.employee-directory-title{
  min-width:0;
}

.employee-directory-name{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.employee-directory-name strong{
  font-size:13px;
  line-height:1.25;
}

.employee-directory-name small{
  color:var(--muted);
  font-size:11px;
  line-height:1.2;
}

.employee-directory-title{
  font-size:12px;
  line-height:1.3;
}

.employee-directory-empty{
  padding:18px 12px;
  color:var(--muted);
  font-size:12px;
  text-align:center;
}

@media (max-width:700px){
  .employee-directory-header{
    display:none;
  }

  .employee-directory-row{
    grid-template-columns:1fr;
    gap:4px;
  }

  .employee-directory-title{
    color:var(--muted);
  }
}

/* Keep employee rows from showing through pinned Division headers */
.employee-directory-division{
  background:#f4f7f9;
  isolation:isolate;
}



/* === UNIFIED USER ONBOARDING === */

.employee-directory-division{
  background:#f4f7f9 !important;
  isolation:isolate;
}

.entra-access-actions #addAhtUserCard > .admin-grid{
  grid-template-columns:1fr;
  gap:14px;
}

.entra-access-actions #addAhtUserCard{
  min-width:0;
}

.entra-access-actions #addAhtUserCard .employee-directory-picker{
  max-height:250px;
}

.entra-access-actions #addAhtUserCard .admin-scroll-picker{
  max-height:180px;
}

@media (max-width:900px){
  .entra-access-actions{
    grid-template-columns:1fr;
  }
}


/* === USER ACCESS CARD ACTION ALIGNMENT === */

.entra-access-actions{
  align-items:stretch;
}

.entra-access-actions > .admin-card{
  display:flex;
  flex-direction:column;
  min-width:0;
}

/* Let both card action rows settle at the same bottom edge */
.access-card-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:auto;
  padding-top:14px;
}

/* Use more of the available space in External User card */
#externalInviteProjects{
  min-height:260px;
  max-height:260px;
  overflow-y:auto;
}

/* Keep button text from wrapping awkwardly */
.access-card-actions .btn{
  white-space:nowrap;
}

@media (max-width:900px){
  .access-card-actions{
    flex-wrap:wrap;
  }

  #externalInviteProjects{
    min-height:180px;
    max-height:220px;
  }
}

/* Match Employee Directory refresh to Microsoft refresh */
#refreshEmployeeDirectoryBtn{
  border-color:#71b65b;
  color:#247a37;
  background:#fff;
}

#refreshEmployeeDirectoryBtn:hover{
  background:#f4fbf2;
}


/* === GANTT PREDECESSOR / DEPENDENCY VISUALS === */

.gantt-row:has(.gantt-dependency-meta){
  min-height:68px;
}

.gantt-dependency-meta{
  display:flex;
  align-items:flex-start;
  gap:4px;
  padding-left:24px;
  min-width:0;
  font-size:9px;
  line-height:1.25;
  color:#607487;
}

.gantt-dependency-meta.blocked{
  color:#9a3e38;
}

.gantt-dependency-caption{
  flex:0 0 auto;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.025em;
}

.gantt-dependency-links{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:3px;
  min-width:0;
}

.gantt-dependency-link{
  border:0;
  background:transparent;
  padding:0;
  color:inherit;
  font:inherit;
  font-weight:750;
  text-decoration:underline;
  text-decoration-style:dotted;
  text-underline-offset:2px;
  cursor:pointer;
  max-width:150px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.gantt-dependency-link:hover{
  color:var(--blue);
}

.gantt-dependency-separator{
  opacity:.65;
}

.gantt-dependency-anchor{
  position:absolute;
  top:8px;
  width:8px;
  height:8px;
  margin-left:-4px;
  border:2px solid #6f8798;
  border-radius:50%;
  background:#fff;
  z-index:3;
  pointer-events:none;
}

.gantt-dependency-anchor:after{
  content:"";
  position:absolute;
  left:2px;
  top:6px;
  width:1px;
  height:9px;
  border-left:1px dashed #8fa0ad;
}

.gantt-dependency-anchor.blocked{
  border-color:#b8443c;
  background:#fff3f2;
}

.gantt-dependency-anchor.blocked:after{
  border-left-color:#b8443c;
}

.gantt-has-incomplete-predecessor{
  box-shadow:
    0 0 0 2px rgba(184,68,60,.24),
    0 2px 5px rgba(15,35,55,.14);
}

.gantt-lane-dependency-blocked{
  background-color:rgba(184,68,60,.018);
}


/* === DEPENDENCY SCHEDULE CONFLICTS === */

.gantt-schedule-conflict{
  display:flex;
  flex-direction:column;
  gap:1px;
  margin-left:24px;
  padding:4px 6px;
  max-width:220px;
  border-left:3px solid #b8443c;
  background:#fff3f2;
  color:#8f342f;
  border-radius:3px;
  font-size:9px;
  line-height:1.25;
}

.gantt-schedule-conflict strong{
  font-size:9px;
  text-transform:uppercase;
  letter-spacing:.035em;
}

.gantt-schedule-conflict span{
  color:#7d4642;
}

.gantt-milestone-risk{
  margin-left:24px;
  font-size:9px;
  font-weight:800;
  color:#9a3e38;
}

.gantt-lane-schedule-conflict{
  background-color:rgba(184,68,60,.035);
}

.gantt-has-schedule-conflict{
  box-shadow:
    0 0 0 3px rgba(184,68,60,.35),
    0 2px 5px rgba(15,35,55,.14);
}

.gantt-row:has(.gantt-schedule-conflict){
  min-height:86px;
}


/* === EXECUTIVE SUMMARY DEPENDENCY CONFLICT BADGE === */

.exec-dependency-conflict-badge{
  display:inline-flex;
  align-items:center;
  margin-left:6px;
  padding:2px 6px;
  border-radius:999px;
  background:#c00000;
  color:#fff;
  font-size:8px;
  font-weight:850;
  line-height:1.3;
  letter-spacing:.045em;
  text-transform:uppercase;
  white-space:nowrap;
  vertical-align:middle;
}

.exec-blocked-label{
  margin-left:4px;
  color:#415365;
  font-size:11px;
  font-weight:750;
}


/* === EXECUTIVE SUMMARY MILESTONE RISK === */

.exec-milestone-risk-badge{
  display:inline-flex;
  align-items:center;
  margin-left:6px;
  padding:2px 6px;
  border-radius:999px;
  background:#8f1b17;
  color:#fff;
  font-size:8px;
  font-weight:850;
  line-height:1.3;
  letter-spacing:.045em;
  text-transform:uppercase;
  white-space:nowrap;
  vertical-align:middle;
}

.exec-milestone-risk{
  box-shadow:
    inset 3px 0 0 rgba(143,27,23,.55);
}


/* === GANTT TODAY HEADER POSITION ===
   Keep the Today text in the header, but start the red line
   at the first Gantt row instead of running through the dates.
*/
.gantt-today.head{
  top:0 !important;
  bottom:-2px !important;
  height:auto !important;
  width:0 !important;
  background:transparent !important;
  overflow:visible !important;
  z-index:10 !important;
}

.gantt-today.head::before{
  content:"Today" !important;
  display:block !important;
  position:absolute !important;
  left:50% !important;
  top:auto !important;
  bottom:0 !important;
  transform:translateX(-50%) !important;
  margin:0 !important;
  padding:1px 3px !important;
  background:#fff !important;
  color:#b52e33 !important;
  font-size:9px !important;
  font-weight:800 !important;
  line-height:1 !important;
  border-radius:3px !important;
  white-space:nowrap !important;
  z-index:11 !important;
}

/* === GANTT TODAY PILL FORWARD === */
.gantt-scale{
  overflow:visible !important;
}

.gantt-today.head{
  z-index:30 !important;
  overflow:visible !important;
}

.gantt-today.head::before{
  z-index:100 !important;
  position:absolute !important;
  background:#fff !important;
  box-shadow:0 0 0 2px #fff !important;
}

/* === SITE OPERATIONS STRUCTURED SCHEDULE === */

.so-schedule-divider{
  margin-top:4px;
}

.so-schedule-choice-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:6px 10px;
  max-height:180px;
  overflow:auto;
  padding:8px;
  border:1px solid #d8e0e7;
  border-radius:7px;
  background:#f8fafb;
}

.so-schedule-choice{
  display:flex;
  align-items:flex-start;
  gap:7px;
  min-width:0;
  font-size:11px;
  line-height:1.3;
  cursor:pointer;
}

.so-schedule-choice input{
  flex:0 0 auto;
  margin-top:2px;
}

.so-schedule-choice span{
  min-width:0;
}

.so-schedule-help{
  margin-top:5px;
}

@media(max-width:760px){
  .so-schedule-choice-list{
    grid-template-columns:1fr;
  }
}

/* === SITE OPERATIONS TASK / SUBTASK HIERARCHY === */

.so-operation-row-main{
  padding-left:
    calc(var(--so-task-level,0) * 18px);
}

.so-operation-row-title-line{
  display:flex;
  align-items:center;
  gap:5px;
  min-width:0;
}

.so-operation-row-title-line strong{
  min-width:0;
}

.so-operation-hierarchy-toggle,
.so-operation-hierarchy-spacer{
  flex:0 0 14px;
  width:14px;
}

.so-operation-hierarchy-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#52697d;
  font-size:12px;
  font-weight:900;
  cursor:pointer;
  user-select:none;
}

.so-operation-hierarchy-toggle:hover{
  color:#1f5f8f;
}

.so-operation-itemtype{
  display:inline-flex;
  align-items:center;
  padding:1px 5px;
  border-radius:999px;
  background:#eef3f7;
  color:#506678;
  font-size:8px;
  font-weight:800;
  line-height:1.3;
  letter-spacing:.04em;
  text-transform:uppercase;
  white-space:nowrap;
}

/* === SITE PREDECESSOR CONTROLLED TOGGLE === */

.so-schedule-choice{
  appearance:none;
  -webkit-appearance:none;
  width:100%;
  border:1px solid transparent;
  border-radius:6px;
  background:transparent;
  padding:6px 7px;
  color:inherit;
  text-align:left;
}

.so-schedule-choice:hover{
  background:#eef4f8;
}

.so-schedule-choice.selected{
  border-color:#91b9d8;
  background:#edf6fc;
}

.so-schedule-choice input[type="checkbox"]{
  position:absolute !important;
  opacity:0 !important;
  width:1px !important;
  height:1px !important;
  pointer-events:none !important;
}

.so-schedule-choice-marker{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 16px;
  width:16px;
  height:16px;
  border:1px solid #8fa0ad;
  border-radius:4px;
  background:#fff;
  color:#176fa8;
  font-size:11px;
  font-weight:900;
  line-height:1;
}

.so-schedule-choice.selected .so-schedule-choice-marker{
  border-color:#2d8bc5;
  background:#e2f2fc;
}

.so-schedule-choice-label{
  min-width:0;
  font-weight:650;
}

/* === SITE PREDECESSOR POINTER FIX === */

.so-schedule-choice{
  position:relative !important;
  z-index:5 !important;
  pointer-events:auto !important;
  cursor:pointer !important;
}

.so-schedule-choice > *{
  pointer-events:none !important;
}

.so-schedule-choice-list{
  position:relative !important;
  z-index:4 !important;
}

/* === CALENDAR SITE SCHEDULE PARITY === */

.calendar-dependency-conflict-label{
  display:inline-flex;
  align-items:center;
  margin-left:5px;
  padding:1px 5px;
  border-radius:999px;
  background:#fff3f2;
  color:#9a3e38;
  font-size:8px;
  font-weight:800;
  line-height:1.3;
  text-transform:uppercase;
  letter-spacing:.025em;
}

.calendar-source-label{
  display:inline-flex;
  align-items:center;
  margin-left:5px;
  font-size:8px;
  font-weight:700;
  color:#607487;
}

.calendar-site-event{
  --calendar-source-accent:#607487;
}

/* === HELP CENTER === */

.topbar-help-btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-right:6px;
}

.topbar-help-btn > span:first-child{
  display:inline-grid;
  place-items:center;
  width:20px;
  height:20px;
  border-radius:50%;
  border:1px solid currentColor;
  font-weight:850;
  line-height:1;
}

.context-help-btn{
  display:inline-grid;
  place-items:center;
  width:20px;
  height:20px;
  margin-left:5px;
  padding:0;
  border:1px solid #b9c7d3;
  border-radius:50%;
  background:#fff;
  color:#52697d;
  font-size:12px;
  font-weight:850;
  line-height:1;
  vertical-align:2px;
  cursor:pointer;
}

.context-help-btn:hover{
  background:#f4f8fb;
  border-color:#7f96a8;
  color:#263f54;
}

.help-center-modal{
  width:min(920px,94vw);
  max-height:88vh;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

.help-topic-modal{
  width:min(680px,92vw);
  max-height:82vh;
  overflow:auto;
}

.help-center-heading{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding-bottom:14px;
  border-bottom:1px solid #e1e7ec;
}

.help-center-heading h3{
  margin:2px 0 3px;
}

.help-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  padding:14px 0 10px;
}

.help-tabs button{
  appearance:none;
  border:1px solid #cbd6df;
  border-radius:999px;
  background:#fff;
  color:#43596c;
  padding:7px 12px;
  font:inherit;
  font-size:12px;
  font-weight:750;
  cursor:pointer;
}

.help-tabs button.active{
  background:#173f5f;
  border-color:#173f5f;
  color:#fff;
}

.help-center-content{
  overflow:auto;
  padding:8px 2px 4px;
}

.help-section-head{
  margin-bottom:14px;
}

.help-section-head h3{
  margin:0 0 3px;
}

.help-section-head p{
  margin:0;
  color:#65798a;
}

.help-role-current{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:10px 12px;
  margin-bottom:10px;
  border:1px solid #dce5eb;
  border-radius:8px;
  background:#f7fafc;
}

.help-role-current span{
  color:#627586;
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.help-guide-card{
  padding:12px 14px;
  margin-bottom:16px;
  border-left:4px solid #173f5f;
  border-radius:5px;
  background:#f8fafc;
}

.help-guide-card p,
.help-topic-body p{
  margin:0 0 10px;
  line-height:1.5;
}

.help-topic-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.help-topic-card{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:4px;
  padding:13px;
  border:1px solid #d7e0e7;
  border-radius:8px;
  background:#fff;
  text-align:left;
  cursor:pointer;
}

.help-topic-card:hover{
  background:#f7fafc;
  border-color:#afbfcb;
}

.help-topic-card strong{
  font-size:13px;
}

.help-topic-card span{
  color:#637788;
  font-size:11px;
  line-height:1.4;
}

.help-role-grid,
.help-faq-list{
  display:grid;
  gap:8px;
}

.help-role-details,
.help-faq-item{
  border:1px solid #dce4ea;
  border-radius:7px;
  background:#fff;
}

.help-role-details summary,
.help-faq-item summary{
  padding:10px 12px;
  font-weight:750;
  cursor:pointer;
}

.help-role-details > div,
.help-faq-item p{
  padding:0 12px 11px;
  margin:0;
  color:#52697c;
  line-height:1.45;
}

.help-request-form{
  display:grid;
  gap:14px;
}

.help-form-note{
  padding:10px 12px;
  border-radius:7px;
  background:#f5f8fa;
  color:#536a7d;
  font-size:12px;
  line-height:1.45;
}

.help-routing-pending{
  padding:9px 11px;
  border:1px dashed #c6d1da;
  border-radius:6px;
  color:#6c7d8a;
  font-size:11px;
}

.help-topic-body{
  padding:18px 2px 6px;
}

@media(max-width:720px){
  .topbar-help-label{
    display:none;
  }

  .help-topic-grid{
    grid-template-columns:1fr;
  }

  .help-center-modal{
    width:96vw;
    max-height:92vh;
  }
}


/* === HELP TICKET STEP LAYOUT === */

#dashboardHelpTicketForm .help-ticket-step{
  border:1px solid #d5dce3;
  border-radius:9px;
  margin-bottom:12px;
  background:#fff;
  overflow:hidden;
}

#dashboardHelpTicketForm .help-ticket-step-heading{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:10px 13px 8px;
}

#dashboardHelpTicketForm .help-ticket-step-number{
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 24px;
  width:24px;
  height:24px;
  border:1px solid #aeb8c2;
  border-radius:50%;
  box-sizing:border-box;
  background:#fff;
  color:#344454;
  font-size:12px;
  font-weight:600;
  line-height:1;
}

#dashboardHelpTicketForm .help-ticket-step-title{
  font-size:14px;
  font-weight:700;
  line-height:18px;
  color:#2f3d4a;
  white-space:nowrap;
}

#dashboardHelpTicketForm .help-ticket-step-subtitle{
  margin-top:1px;
  font-size:11px;
  font-weight:400;
  line-height:15px;
  color:#617285;
}

#dashboardHelpTicketForm .help-ticket-step-content{
  padding:0 13px 13px;
}

#dashboardHelpTicketForm .help-ticket-step[hidden]{
  display:none !important;
}

#dashboardHelpTicketForm #helpRequestCategory{
  width:100%;
}

#dashboardHelpTicketForm .help-request-actions{
  border-top:1px solid #d9e0e6;
  margin-top:2px;
  padding-top:12px;
}
/* === SIDEBAR HELP ENTRY === */

#sidebarHelpBtn{
  position:relative;
}

#sidebarHelpBtn::before{
  content:"?";
  display:inline-grid;
  place-items:center;
  width:18px;
  height:18px;
  margin-right:8px;
  border:1px solid currentColor;
  border-radius:50%;
  font-size:11px;
  font-weight:850;
  line-height:1;
  vertical-align:-2px;
}

/* === SIDEBAR HELP ICON ALIGNMENT === */

#sidebarHelpBtn{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

#sidebarHelpBtn::before{
  content:none;
}

#sidebarHelpBtn::after{
  content:"?";
  display:inline-grid;
  place-items:center;
  flex:0 0 18px;
  width:18px;
  height:18px;
  border:1px solid currentColor;
  border-radius:50%;
  font-size:11px;
  font-weight:850;
  line-height:1;
  opacity:.9;
}

/* === HELP CENTER VISUAL POLISH === */

.help-guide-shell{
  display:grid;
  gap:20px;
}

.help-hero{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  padding:20px 22px;
  border-radius:12px;
  background:
    linear-gradient(
      135deg,
      rgba(23,63,95,.96),
      rgba(31,83,122,.90)
    );
  color:#fff;
  box-shadow:0 8px 24px rgba(20,45,65,.14);
}

.help-hero-copy{
  min-width:0;
}

.help-hero-kicker,
.help-section-kicker{
  margin-bottom:4px;
  font-size:10px;
  font-weight:850;
  letter-spacing:.09em;
  text-transform:uppercase;
}

.help-hero-kicker{
  color:rgba(255,255,255,.72);
}

.help-hero h3{
  margin:0 0 5px;
  font-size:22px;
  color:#fff;
}

.help-hero p{
  max-width:620px;
  margin:0;
  color:rgba(255,255,255,.86);
  font-size:12px;
  line-height:1.5;
}

.help-hero-role{
  flex:0 0 auto;
  min-width:150px;
  padding:12px 14px;
  border:1px solid rgba(255,255,255,.20);
  border-radius:10px;
  background:rgba(255,255,255,.10);
  text-align:right;
}

.help-hero-role span{
  display:block;
  margin-bottom:2px;
  color:rgba(255,255,255,.68);
  font-size:9px;
  font-weight:750;
  text-transform:uppercase;
  letter-spacing:.06em;
}

.help-hero-role strong{
  display:block;
  font-size:14px;
  color:#fff;
}

.help-section-title-row{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}

.help-section-title-row h4{
  margin:0;
  font-size:15px;
  color:#263f54;
}

.help-section-kicker{
  color:#758896;
}

.help-common-task-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.help-common-task-card{
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:14px;
  border:1px solid #d7e0e7;
  border-radius:10px;
  background:#fff;
  text-align:left;
  cursor:pointer;
  transition:
    transform .12s ease,
    border-color .12s ease,
    box-shadow .12s ease,
    background .12s ease;
}

.help-common-task-card:hover{
  transform:translateY(-1px);
  border-color:#aebfcb;
  background:#fbfdfe;
  box-shadow:0 5px 14px rgba(20,45,65,.07);
}

.help-common-task-icon{
  display:grid;
  place-items:center;
  flex:0 0 34px;
  width:34px;
  height:34px;
  border-radius:9px;
  background:#edf4f8;
  color:#173f5f;
  font-size:11px;
  font-weight:900;
}

.help-common-task-card strong{
  display:block;
  margin-bottom:3px;
  color:#29445a;
  font-size:12px;
}

.help-common-task-card small{
  display:block;
  color:#6b7f8f;
  font-size:10px;
  line-height:1.4;
}

.help-role-section,
.help-dashboard-areas,
.help-common-tasks{
  padding:16px;
  border:1px solid #e1e7ec;
  border-radius:12px;
  background:#fdfefe;
}

.help-role-current{
  margin-top:2px;
  border:none;
  background:#f3f7fa;
}

.help-guide-card{
  margin-bottom:12px;
  border-left-color:#2f6f9e;
  background:#f7fafc;
}

.help-role-guide-sections{
  display:grid;
  gap:8px;
}

.help-role-details{
  overflow:hidden;
  border-color:#d7e0e7;
  background:#fff;
}

.help-role-details summary{
  position:relative;
  padding:11px 13px;
  color:#304c63;
  background:#fbfcfd;
}

.help-role-details[open] summary{
  border-bottom:1px solid #e5ebef;
  background:#f6f9fb;
}

.help-role-details > div{
  padding:12px 14px 13px;
}

.help-role-details > div p:last-child{
  margin-bottom:0;
}

.help-topic-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.help-topic-card{
  min-height:92px;
  padding:14px;
  border-radius:10px;
  transition:
    transform .12s ease,
    box-shadow .12s ease,
    border-color .12s ease;
}

.help-topic-card:hover{
  transform:translateY(-1px);
  box-shadow:0 5px 14px rgba(20,45,65,.06);
}

.help-faq-item{
  overflow:hidden;
}

.help-faq-item summary{
  background:#fbfcfd;
}

.help-faq-item[open] summary{
  border-bottom:1px solid #e5ebef;
  background:#f6f9fb;
}

@media(max-width:760px){
  .help-hero{
    align-items:flex-start;
    flex-direction:column;
  }

  .help-hero-role{
    width:100%;
    text-align:left;
  }

  .help-common-task-grid,
  .help-topic-grid{
    grid-template-columns:1fr;
  }
}

/* === DEEP HELP ARTICLE CONTENT === */

.help-article{
  display:grid;
  gap:12px;
}

.help-article-intro{
  padding:13px 15px;
  border-left:3px solid #2f6f9e;
  border-radius:7px;
  background:#f5f9fc;
  color:#334e63;
  font-size:12px;
  line-height:1.55;
}

.help-article-intro p{
  margin:0 0 8px;
}

.help-article-intro p:last-child{
  margin-bottom:0;
}

.help-article-section{
  padding:14px 15px;
  border:1px solid #dce4ea;
  border-radius:9px;
  background:#fff;
}

.help-article-section h4{
  margin:0 0 9px;
  color:#263f54;
  font-size:13px;
}

.help-article-section p{
  margin:0 0 9px;
  color:#405c72;
  font-size:12px;
  line-height:1.55;
}

.help-article-section p:last-child{
  margin-bottom:0;
}

.help-howto-steps{
  margin:0;
  padding:0;
  list-style:none;
  counter-reset:help-step;
}

.help-howto-steps li{
  position:relative;
  min-height:28px;
  margin:0;
  padding:7px 8px 7px 38px;
  color:#405c72;
  font-size:12px;
  line-height:1.45;
  counter-increment:help-step;
}

.help-howto-steps li+li{
  border-top:1px solid #edf1f4;
}

.help-howto-steps li::before{
  content:counter(help-step);
  position:absolute;
  left:3px;
  top:6px;
  display:grid;
  place-items:center;
  width:23px;
  height:23px;
  border-radius:50%;
  background:#edf4f8;
  color:#173f5f;
  font-size:10px;
  font-weight:900;
}

.help-topic-modal{
  width:min(760px,calc(100vw - 32px));
}

.help-topic-body{
  overflow:auto;
  max-height:min(64vh,680px);
  padding-right:5px;
}

/* === HELP DEEP-DIVE KNOWLEDGE === */

.help-deep-dive{
  display:grid;
  gap:12px;
  margin-top:4px;
}

.help-deep-divider{
  display:flex;
  align-items:center;
  gap:10px;
  margin:5px 0 1px;
  color:#657b8c;
  font-size:10px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.help-deep-divider::before,
.help-deep-divider::after{
  content:"";
  height:1px;
  flex:1;
  background:#dce5eb;
}

.help-deep-section{
  padding:15px;
  border:1px solid #dbe4ea;
  border-radius:10px;
  background:#fff;
}

.help-deep-section h4{
  margin:0 0 11px;
  color:#263f54;
  font-size:14px;
}

.help-deep-section > p{
  color:#405c72;
  font-size:12px;
  line-height:1.55;
}

.help-deep-kicker{
  margin-bottom:3px;
  color:#748b9c;
  font-size:9px;
  font-weight:900;
  letter-spacing:.09em;
  text-transform:uppercase;
}

.help-field-list{
  display:grid;
  gap:0;
  border:1px solid #e1e7ec;
  border-radius:8px;
  overflow:hidden;
}

.help-field-row{
  display:grid;
  grid-template-columns:150px 1fr;
  gap:15px;
  padding:10px 12px;
  background:#fff;
}

.help-field-row:nth-child(even){
  background:#f8fafb;
}

.help-field-row+.help-field-row{
  border-top:1px solid #e8edf1;
}

.help-field-row strong{
  color:#304d64;
  font-size:11px;
}

.help-field-row span{
  color:#526b7e;
  font-size:11px;
  line-height:1.45;
}

.help-concept-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.help-concept-card{
  padding:13px;
  border:1px solid #dbe4ea;
  border-radius:9px;
  background:#f9fbfc;
}

.help-concept-card strong{
  color:#29485f;
  font-size:12px;
}

.help-concept-card p{
  margin:7px 0;
  color:#536d80;
  font-size:11px;
  line-height:1.45;
}

.help-concept-card blockquote{
  margin:7px 0;
  padding:8px 10px;
  border-left:3px solid #8daabd;
  background:#fff;
  color:#29485f;
  font-size:11px;
  font-weight:700;
}

.help-callout,
.help-note{
  margin-top:11px;
  padding:10px 12px;
  border-radius:8px;
  font-size:11px;
  line-height:1.5;
}

.help-callout{
  border-left:3px solid #2f6f9e;
  background:#f1f7fb;
  color:#3b5c72;
}

.help-note{
  border:1px solid #dde6ec;
  background:#fafcfd;
  color:#4d677a;
}

.help-status-explain{
  display:grid;
  gap:8px;
}

.help-status-explain > div{
  padding:10px 12px;
  border:1px solid #e0e7ec;
  border-radius:8px;
  background:#fafcfd;
}

.help-status-explain strong{
  color:#304d64;
  font-size:11px;
}

.help-status-explain p{
  margin:3px 0 0;
  color:#526b7e;
  font-size:11px;
  line-height:1.45;
}

.help-flow-list{
  display:grid;
  gap:8px;
}

.help-flow-list > div{
  display:grid;
  grid-template-columns:130px 1fr;
  gap:12px;
  padding:10px 12px;
  border:1px solid #e1e7ec;
  border-radius:8px;
}

.help-flow-list strong{
  color:#304d64;
  font-size:11px;
}

.help-flow-list span{
  color:#526b7e;
  font-size:11px;
  line-height:1.45;
}

.help-editor-deep{
  border-left:3px solid #2f6f9e;
}

.help-checklist{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px;
}

.help-checklist > div{
  padding:8px 10px;
  border-radius:7px;
  background:#f5f9fb;
  color:#405d72;
  font-size:11px;
  line-height:1.4;
}

.help-warning-list{
  display:grid;
  gap:7px;
}

.help-warning-list > div{
  padding:9px 11px;
  border-left:3px solid #d2a348;
  border-radius:6px;
  background:#fcfaf4;
  color:#536878;
  font-size:11px;
  line-height:1.45;
}

.help-example{
  margin:11px 0;
  padding:12px;
  border:1px solid #dce5eb;
  border-radius:8px;
  background:#f8fafb;
  color:#36536a;
  text-align:center;
  font-size:11px;
  font-weight:700;
}

.help-example-arrow{
  margin:3px 0;
  color:#7992a4;
}

@media(max-width:760px){
  .help-field-row,
  .help-flow-list > div{
    grid-template-columns:1fr;
    gap:4px;
  }

  .help-concept-grid,
  .help-checklist{
    grid-template-columns:1fr;
  }
}

/* === HELP HOW-TO SECTION === */

.help-howto-page{
  display:grid;
  gap:16px;
}

.help-howto-intro{
  padding:16px 18px;
  border-left:3px solid #2f6f9e;
  border-radius:9px;
  background:#f5f9fc;
}

.help-howto-intro h3{
  margin:2px 0 5px;
  color:#263f54;
  font-size:18px;
}

.help-howto-intro p{
  margin:0;
  color:#587184;
  font-size:11px;
  line-height:1.5;
}

.help-howto-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.help-howto-card{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  min-height:128px;
  padding:14px;
  border:1px solid #dbe4ea;
  border-radius:10px;
  background:#fff;
  text-align:left;
  cursor:pointer;
  transition:
    transform .12s ease,
    box-shadow .12s ease,
    border-color .12s ease;
}

.help-howto-card:hover{
  transform:translateY(-1px);
  border-color:#aec0cc;
  box-shadow:0 5px 14px rgba(20,45,65,.07);
}

.help-howto-area{
  margin-bottom:8px;
  color:#7b8f9e;
  font-size:9px;
  font-weight:900;
  letter-spacing:.07em;
  text-transform:uppercase;
}

.help-howto-card strong{
  margin-bottom:5px;
  color:#29475e;
  font-size:12px;
}

.help-howto-card small{
  color:#647b8c;
  font-size:10px;
  line-height:1.45;
}

.help-howto-open{
  margin-top:auto;
  padding-top:10px;
  color:#2f6f9e;
  font-size:10px;
  font-weight:800;
}

.help-note-list{
  display:grid;
  gap:7px;
}

.help-note-list > div{
  padding:9px 11px;
  border-left:3px solid #88a8bd;
  border-radius:6px;
  background:#f6fafc;
  color:#4e687b;
  font-size:11px;
  line-height:1.45;
}

@media(max-width:760px){
  .help-howto-grid{
    grid-template-columns:1fr;
  }
}

/* === DETAILED HOW-TO ARTICLES === */

.help-howto-detail{
  gap:14px;
}

.help-before-start{
  border-left:3px solid #8fa7b7;
  background:#fbfcfd;
}

.help-expected-result{
  border-left:3px solid #6f9d7d;
  background:#f8fbf8;
}

.help-preflight-list,
.help-verify-list{
  margin:0;
  padding:0;
  list-style:none;
}

.help-preflight-list li,
.help-verify-list li{
  position:relative;
  padding:7px 8px 7px 28px;
  color:#4c6578;
  font-size:11px;
  line-height:1.45;
}

.help-preflight-list li+li,
.help-verify-list li+li{
  border-top:1px solid #e9eef1;
}

.help-preflight-list li::before{
  content:"•";
  position:absolute;
  left:8px;
  top:5px;
  color:#7891a3;
  font-size:16px;
  font-weight:900;
}

.help-verify-list li::before{
  content:"✓";
  position:absolute;
  left:7px;
  top:7px;
  color:#547e62;
  font-size:11px;
  font-weight:900;
}

.help-troubleshooting-list{
  display:grid;
  gap:7px;
}

.help-troubleshooting-list details{
  overflow:hidden;
  border:1px solid #dce4ea;
  border-radius:8px;
  background:#fff;
}

.help-troubleshooting-list summary{
  padding:10px 12px;
  color:#334f64;
  background:#fafcfd;
  cursor:pointer;
  font-size:11px;
  font-weight:800;
}

.help-troubleshooting-list details[open] summary{
  border-bottom:1px solid #e5ebef;
  background:#f5f8fa;
}

.help-troubleshooting-list p{
  margin:0;
  padding:10px 12px;
  color:#526b7e;
  font-size:11px;
  line-height:1.5;
}

.help-related-guides{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}

.help-related-guides button{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  padding:10px 11px;
  border:1px solid #dce4ea;
  border-radius:8px;
  background:#fafcfd;
  text-align:left;
  cursor:pointer;
}

.help-related-guides button:hover{
  border-color:#aec0cc;
  background:#f5f9fb;
}

.help-related-guides strong{
  margin-bottom:3px;
  color:#304d64;
  font-size:11px;
}

.help-related-guides span{
  color:#687e8e;
  font-size:9px;
  line-height:1.4;
}

@media(max-width:760px){
  .help-related-guides{
    grid-template-columns:1fr;
  }
}

/* === HELP REQUEST SUBMISSION === */

.help-request-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid #e3e9ed;
}

.help-request-status{
  min-height:18px;
  color:#667d8d;
  font-size:10px;
  font-weight:700;
}

.help-request-status.working{
  color:#526f84;
}

.help-request-status.success{
  color:#3f7252;
}

.help-request-status.error{
  color:#a44444;
}

.help-request-actions .btn{
  flex:0 0 auto;
}

@media(max-width:700px){
  .help-request-actions{
    align-items:stretch;
    flex-direction:column;
  }

  .help-request-actions .btn{
    width:100%;
  }
}


/* === ADMIN SUPPORT REQUEST QUEUES === */

.support-request-admin-panel{
  overflow:hidden;
}

.support-request-panel-heading{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  margin-bottom:12px;
}

.support-request-panel-heading h3{
  margin:3px 0 4px;
}

.support-request-heading-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex:0 0 auto;
}

.support-request-count{
  padding:5px 9px;
  border-radius:999px;
  background:#eef3f7;
  color:#425d72;
  font-size:10px;
  font-weight:800;
  white-space:nowrap;
}

.support-request-toolbar{
  display:grid;
  grid-template-columns:190px minmax(220px,1fr);
  gap:10px;
  margin-bottom:10px;
}

.support-request-toolbar input,
.support-request-toolbar select{
  width:100%;
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:7px;
  background:#fff;
}

.support-request-queue{
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:9px;
  background:#fff;
}

.support-request-row{
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  padding:11px 13px;
  border:0;
  border-bottom:1px solid #edf1f5;
  background:#fff;
  text-align:left;
  cursor:pointer;
}

.support-request-row:last-child{
  border-bottom:0;
}

.support-request-row:hover{
  background:#f8fafc;
}

.support-request-row-main{
  min-width:0;
}

.support-request-row-title{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  color:#243b4c;
  font-size:12px;
}

.support-request-row-meta{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:5px;
  margin-top:4px;
  color:var(--muted);
  font-size:10px;
}

.support-request-row-side{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:4px;
  flex:0 0 auto;
}

.support-request-open-label{
  color:var(--blue);
  font-size:10px;
  font-weight:800;
}

.support-request-status{
  padding:3px 7px;
  border-radius:999px;
  background:#eef2f6;
  color:#526271;
  font-size:9px;
  font-weight:800;
  white-space:nowrap;
}

.support-request-status.status-open{
  background:#fff1d6;
  color:#8a5a12;
}

.support-request-status.status-in-progress{
  background:#e7f1fa;
  color:#315f88;
}

.support-request-status.status-waiting{
  background:#f7e9d9;
  color:#89501c;
}

.support-request-status.status-resolved,
.support-request-status.status-completed,
.support-request-status.status-approved{
  background:#e6f3e9;
  color:#3f6d49;
}

.support-request-status.status-closed,
.support-request-status.status-denied{
  background:#edf0f2;
  color:#64717d;
}

.support-request-empty,
.support-request-error{
  padding:18px;
  color:var(--muted);
  font-size:11px;
}

.support-request-error{
  color:#9b3f3f;
}

.support-request-detail-modal{
  width:min(820px,94vw);
  max-height:88vh;
  overflow:auto;
}

.support-request-detail-heading{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  margin-bottom:16px;
}

.support-request-detail-heading h3{
  margin:3px 0 4px;
}

.support-request-detail-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.support-request-detail-field{
  padding:10px 11px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fbfcfd;
}

.support-request-detail-field.full{
  grid-column:1 / -1;
}

.support-request-detail-label{
  margin-bottom:4px;
  color:var(--muted);
  font-size:9px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.support-request-detail-value{
  color:#334b5c;
  font-size:11px;
  line-height:1.45;
  word-break:break-word;
}

.support-request-detail-footer{
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  gap:10px;
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid var(--line);
}

.support-request-detail-footer .field{
  width:220px;
}

.support-request-detail-footer select{
  width:100%;
}

.support-request-detail-message{
  min-height:17px;
  margin-top:7px;
  text-align:right;
  color:var(--muted);
  font-size:10px;
  font-weight:700;
}

.support-request-detail-message.success{
  color:#3f7252;
}

.support-request-detail-message.error{
  color:#a44444;
}

@media(max-width:700px){
  .support-request-panel-heading,
  .support-request-row,
  .support-request-detail-footer{
    align-items:stretch;
    flex-direction:column;
  }

  .support-request-heading-actions{
    justify-content:space-between;
  }

  .support-request-toolbar,
  .support-request-detail-grid{
    grid-template-columns:1fr;
  }

  .support-request-detail-field.full{
    grid-column:auto;
  }

  .support-request-row-side{
    align-items:flex-start;
  }

  .support-request-detail-footer .field{
    width:100%;
  }
}



/* === SUPPORT REQUEST DETAIL POLISH === */

.support-request-detail-modal{
  width:min(760px,94vw);
  padding:0;
  overflow:hidden;
  background:#fff;
}

.support-request-detail-heading{
  margin:0;
  padding:20px 22px 17px;
  border-bottom:1px solid var(--line);
  background:
    linear-gradient(
      180deg,
      #fbfdff 0%,
      #f7fafc 100%
    );
}

.support-request-detail-heading > div:first-child{
  min-width:0;
}

.support-request-detail-heading .eyebrow{
  display:inline-flex;
  align-items:center;
  min-height:22px;
  padding:3px 8px;
  margin-bottom:7px;
  border-radius:6px;
  background:#e8f1f8;
  color:#23577f;
  font-size:9px;
  font-weight:850;
  letter-spacing:.07em;
}

#supportRequestDetailTitle{
  margin:0;
  color:#21384a;
  font-size:21px;
  line-height:1.18;
}

#supportRequestDetailMeta{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:7px 11px;
  margin-top:8px;
  color:#687b89;
  font-size:10px;
}

#supportRequestDetailMeta > span:not(.support-request-status){
  position:relative;
}

#supportRequestDetailMeta > span:not(.support-request-status) + span:not(.support-request-status){
  padding-left:11px;
}

#supportRequestDetailMeta > span:not(.support-request-status) + span:not(.support-request-status)::before{
  content:"";
  position:absolute;
  left:0;
  top:50%;
  width:3px;
  height:3px;
  border-radius:50%;
  background:#a8b5bf;
  transform:translateY(-50%);
}

.support-request-detail-body{
  padding:18px 22px 6px;
}

.support-detail-layout{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.support-detail-section{
  overflow:hidden;
  border:1px solid #dce5eb;
  border-radius:9px;
  background:#fff;
}

.support-detail-section.primary{
  grid-column:1 / -1;
  border-color:#cbdbe7;
  background:#fbfdff;
}

.support-detail-section-title{
  padding:8px 11px;
  border-bottom:1px solid #e4ebf0;
  background:#f6f9fb;
  color:#5b6e7c;
  font-size:9px;
  font-weight:850;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.support-detail-section.primary .support-detail-section-title{
  background:#eef5fa;
  color:#315e7e;
}

.support-detail-section-body{
  padding:2px 11px;
}

.support-detail-row{
  display:grid;
  grid-template-columns:120px minmax(0,1fr);
  gap:13px;
  padding:9px 0;
  border-bottom:1px solid #edf2f5;
}

.support-detail-row:last-child{
  border-bottom:0;
}

.support-detail-row-label{
  color:#7a8995;
  font-size:9px;
  font-weight:750;
  text-transform:uppercase;
  letter-spacing:.035em;
}

.support-detail-row-value{
  min-width:0;
  color:#2f4657;
  font-size:11px;
  font-weight:600;
  line-height:1.45;
  word-break:break-word;
}

.support-detail-section.primary .support-detail-row{
  display:block;
  min-height:60px;
  padding:12px 1px;
}

.support-detail-section.primary .support-detail-row-label{
  margin-bottom:7px;
}

.support-detail-section.primary .support-detail-row-value{
  font-size:12px;
  font-weight:500;
  line-height:1.55;
}

.support-detail-source{
  grid-column:1 / -1;
  padding:3px 2px 0;
}

.support-detail-source .support-detail-row{
  display:flex;
  gap:8px;
  padding:5px 0;
  border:0;
}

.support-detail-source .support-detail-row-label{
  flex:0 0 auto;
}

.support-detail-source .support-detail-row-value{
  color:#7c8c98;
  font-size:9px;
  font-weight:500;
}

.support-request-detail-footer{
  margin-top:14px;
  padding:14px 22px;
  border-top:1px solid var(--line);
  background:#f8fafc;
}

.support-request-detail-footer .field{
  width:210px;
  margin:0;
}

.support-request-detail-footer .field label{
  margin-bottom:5px;
  color:#627583;
  font-size:9px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.support-request-detail-footer select{
  height:35px;
  padding:6px 9px;
  border:1px solid #cfdbe4;
  border-radius:7px;
  background:#fff;
}

#saveSupportRequestStatusBtn{
  min-width:118px;
  min-height:35px;
}

.support-request-detail-message{
  margin:0;
  padding:0 22px 13px;
  background:#f8fafc;
}

@media(max-width:700px){
  .support-request-detail-heading{
    padding:17px;
  }

  #supportRequestDetailTitle{
    font-size:19px;
  }

  .support-request-detail-body{
    padding:14px 17px 4px;
  }

  .support-detail-layout{
    grid-template-columns:1fr;
  }

  .support-detail-section.primary,
  .support-detail-source{
    grid-column:auto;
  }

  .support-detail-row{
    grid-template-columns:105px minmax(0,1fr);
  }

  .support-request-detail-footer{
    padding:13px 17px;
  }
}



/* === SUPPORT REQUEST INTERNAL WORKFLOW === */

.support-request-workflow{
  margin-top:16px;
  padding:16px 22px 15px;
  border-top:1px solid var(--line);
  background:#f7f9fb;
}

.support-request-workflow-grid{
  display:grid;
  grid-template-columns:1fr 220px;
  gap:12px;
}

.support-request-workflow-grid .field{
  margin:0;
}

.support-request-workflow-grid .field.full{
  grid-column:1 / -1;
}

.support-request-workflow label{
  display:block;
  margin-bottom:5px;
  color:#607483;
  font-size:9px;
  font-weight:850;
  letter-spacing:.045em;
  text-transform:uppercase;
}

.support-request-workflow input,
.support-request-workflow select,
.support-request-workflow textarea{
  width:100%;
  border:1px solid #ccd8e1;
  border-radius:7px;
  background:#fff;
  color:#304858;
}

.support-request-workflow input,
.support-request-workflow select{
  min-height:36px;
  padding:7px 9px;
}

.support-request-workflow textarea{
  resize:vertical;
  min-height:88px;
  padding:9px 10px;
  line-height:1.45;
}

.support-request-workflow-actions{
  display:flex;
  justify-content:flex-end;
  margin-top:12px;
}

.support-request-resolution-meta{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:7px 12px;
  margin-top:11px;
  padding:9px 11px;
  border:1px solid #d8e4dc;
  border-radius:7px;
  background:#f3f8f4;
  color:#52685a;
  font-size:10px;
}

.support-resolution-label{
  color:#40714d;
  font-size:9px;
  font-weight:850;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.support-request-resolution-meta.hidden{
  display:none!important;
}

.support-request-detail-message{
  padding:0 22px 13px;
  background:#f7f9fb;
}

@media(max-width:700px){
  .support-request-workflow{
    padding:14px 17px;
  }

  .support-request-workflow-grid{
    grid-template-columns:1fr;
  }

  .support-request-workflow-grid .field.full{
    grid-column:auto;
  }

  .support-request-workflow-actions .btn{
    width:100%;
  }
}



/* === SUPPORT REQUEST AHT ASSIGNEE PICKER === */

.support-assignee-field{
  position:relative;
}

.support-assignee-picker{
  position:relative;
}

.support-assignee-results{
  position:absolute;
  z-index:30;
  left:0;
  right:0;
  top:40px;
  max-height:290px;
  overflow:auto;
  border:1px solid #cbd7e0;
  border-radius:8px;
  background:#fff;
  box-shadow:0 12px 30px rgba(15,23,42,.14);
}

.support-assignee-results.hidden{
  display:none!important;
}

.support-assignee-result{
  width:100%;
  display:flex;
  flex-direction:column;
  gap:2px;
  padding:9px 11px;
  border:0;
  border-bottom:1px solid #edf1f4;
  background:#fff;
  text-align:left;
  cursor:pointer;
}

.support-assignee-result:last-child{
  border-bottom:0;
}

.support-assignee-result:hover{
  background:#f4f8fb;
}

.support-assignee-result strong{
  color:#2c4455;
  font-size:11px;
}

.support-assignee-result span{
  color:#657986;
  font-size:9px;
}

.support-assignee-result small{
  color:#80909b;
  font-size:9px;
}

.support-assignee-empty{
  padding:12px;
  color:#758793;
  font-size:10px;
}

.support-assignee-selected{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:7px;
  padding:8px 10px;
  border:1px solid #dce5eb;
  border-radius:7px;
  background:#fff;
}

.support-assignee-selected > div{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:2px;
}

.support-assignee-selected strong{
  color:#334b5c;
  font-size:10px;
}

.support-assignee-selected span{
  overflow:hidden;
  color:#7a8a95;
  font-size:9px;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.support-assignee-clear{
  flex:0 0 auto;
  padding:5px 8px!important;
  min-height:auto!important;
  font-size:9px;
}



/* === CONTEXTUAL EDIT-FIELD HELP === */

.field-help-label-wrap{
  display:inline-flex;
  align-items:center;
  gap:5px;
}

.field-help-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:16px;
  height:16px;
  min-width:16px;
  padding:0;
  border:1px solid #aebdc7;
  border-radius:50%;
  background:#fff;
  color:#627785;
  font-size:10px;
  font-weight:700;
  line-height:1;
  cursor:pointer;
  vertical-align:middle;
}

.field-help-button:hover{
  border-color:#718a9a;
  background:#f3f7f9;
  color:#334d5d;
}

.field-help-button:focus-visible{
  outline:2px solid currentColor;
  outline-offset:2px;
}

.field-help-popover{
  position:absolute;
  z-index:10050;
  width:min(300px,calc(100vw - 24px));
  padding:12px 13px;
  border:1px solid #d7e1e7;
  border-radius:9px;
  background:#fff;
  box-shadow:
    0 12px 32px rgba(15,23,42,.16);
}

.field-help-popover-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:6px;
}

.field-help-popover-head strong{
  color:#304958;
  font-size:11px;
}

.field-help-popover-close{
  display:flex;
  align-items:center;
  justify-content:center;
  width:22px;
  height:22px;
  padding:0;
  border:0;
  background:transparent;
  color:#6b7d88;
  font-size:18px;
  line-height:1;
  cursor:pointer;
}

.field-help-popover-text{
  color:#5f727e;
  font-size:10px;
  line-height:1.5;
}

.field-help-learn-more{
  margin-top:9px;
  padding:0;
  border:0;
  background:transparent;
  color:#315f78;
  font-size:10px;
  font-weight:700;
  cursor:pointer;
}

.field-help-learn-more:hover{
  text-decoration:underline;
}


/* === CONTEXTUAL FIELD HELP OPTION DETAILS === */

.field-help-options{
  margin:9px 0 0;
  padding-left:17px;
  color:#5f727e;
  font-size:10px;
  line-height:1.45;
}

.field-help-options li{
  margin:0 0 5px;
}

.field-help-options li:last-child{
  margin-bottom:0;
}

/* === SUPPORT REQUEST MODAL VIEWPORT / SCROLL FIX === */

.support-request-detail-modal{
  display:flex;
  flex-direction:column;
  max-height:88vh;
  overflow:hidden;
}

.support-request-detail-heading{
  flex:0 0 auto;
}

.support-request-detail-body{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  overscroll-behavior:contain;
}

.support-request-detail-footer{
  flex:0 0 auto;
  position:sticky;
  bottom:0;
  z-index:2;
  margin-top:0;
  padding:14px 22px 18px;
  background:#fff;
  border-top:1px solid var(--line);
}

.support-request-detail-message{
  flex:0 0 auto;
  margin:0;
  padding:0 22px 10px;
  background:#fff;
}

@media(max-height:760px){
  .support-request-detail-modal{
    max-height:94vh;
  }

  .support-request-detail-heading{
    padding-top:14px;
    padding-bottom:12px;
  }

  .support-request-detail-body{
    padding-top:14px;
  }
}

/* === PREDECESSOR FIELD HELP ICON POSITION FIX === */

.field-help-label-wrap{
  position:relative;
  z-index:3;
}

.field-help-button{
  position:relative;
  z-index:4;
  flex:0 0 auto;
}

#ptePredecessor{
  position:relative;
  z-index:1;
}

#ptePredecessor .field-help-button,
#ptePredecessor .field-help-popover{
  position:relative;
}


/* === PROJECT HEALTH DRIVER DRILLDOWN === */

.project-health-driver-wrap{
  position:relative;
  display:inline-flex;
}

.project-health-driver-action{
  cursor:pointer;
  user-select:none;
}

.project-health-driver-action:focus-visible{
  outline:2px solid currentColor;
  outline-offset:2px;
}

.project-health-driver-chevron{
  display:inline-block;
  margin-left:5px;
  font-size:.68em;
  line-height:1;
  vertical-align:middle;
  opacity:.72;
  transform:translateY(-1px);
}

.project-health-driver-menu{
  display:none;
  position:absolute;
  z-index:500;
  top:calc(100% + 7px);
  left:0;
  width:max-content;
  min-width:270px;
  max-width:min(420px,calc(100vw - 32px));
  padding:6px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:9px;
  box-shadow:0 10px 28px rgba(15,23,42,.16);
}

.project-health-driver-menu.is-open{
  display:flex;
  flex-direction:column;
}

.project-health-driver-menu-item{
  appearance:none;
  width:100%;
  border:0;
  background:transparent;
  text-align:left;
  padding:9px 10px;
  border-radius:6px;
  cursor:pointer;
  font:inherit;
}

.project-health-driver-menu-item:hover,
.project-health-driver-menu-item:focus-visible{
  background:var(--soft);
  outline:none;
}

.project-health-driver-menu-title{
  display:block;
  font-size:13px;
  font-weight:650;
  line-height:1.3;
}

.project-health-driver-menu-meta{
  display:block;
  margin-top:3px;
  font-size:11px;
  line-height:1.3;
  color:var(--muted);
}

@media(max-width:700px){
  .project-health-driver-menu{
    position:fixed;
    left:16px;
    right:16px;
    top:auto;
    width:auto;
    max-width:none;
  }
}


/* ==========================================================
   Project Plan — searchable Owner / Responsible picker
   ========================================================== */

.pte-owner-native {
  display: none !important;
}

.pte-owner-picker {
  position: relative;
  width: 100%;
}

.pte-owner-trigger {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 11px;
  border: 1px solid #cfd9e2;
  border-radius: 6px;
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.pte-owner-trigger:hover {
  border-color: #aebdca;
}

.pte-owner-trigger:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.pte-owner-trigger-chevron {
  flex: 0 0 auto;
  font-size: 9px;
  opacity: .65;
}

.pte-owner-menu {
  display: none;
  position: absolute;
  z-index: 900;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  min-width: 330px;
  max-height: 390px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #cfd9e2;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(15,23,42,.18);
}

.pte-owner-menu.is-open {
  display: flex;
  flex-direction: column;
}

.pte-owner-picker-toolbar {
  position: sticky;
  top: 0;
  z-index: 2;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0,1fr) 150px;
  gap: 7px;
  padding: 8px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.pte-owner-search,
.pte-owner-division {
  width: 100%;
  min-width: 0;
  height: 34px;
  box-sizing: border-box;
  margin: 0 !important;
  padding: 6px 8px !important;
  font-size: 12px !important;
}

.pte-owner-results {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 325px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 5px;
}

.pte-owner-pinned {
  padding-bottom: 5px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.pte-owner-group + .pte-owner-group {
  margin-top: 5px;
}

.pte-owner-group-title {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 6px 8px 4px;
  background: #fff;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.pte-owner-option {
  appearance: none;
  display: block;
  width: 100%;
  border: 0;
  border-radius: 5px;
  background: transparent;
  padding: 7px 9px;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.pte-owner-option:hover,
.pte-owner-option:focus-visible {
  background: var(--soft);
  outline: none;
}

.pte-owner-option.is-selected {
  background: rgba(36,72,100,.08);
}

.pte-owner-option-main {
  display: block;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
}

.pte-owner-option-meta {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
}

.pte-owner-empty {
  padding: 18px 10px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

@media(max-width:700px) {
  .pte-owner-menu {
    min-width: 0;
  }

  .pte-owner-picker-toolbar {
    grid-template-columns: 1fr;
  }
}

/* === HELP TICKET STEP VISUAL HIERARCHY === */

#dashboardHelpTicketForm .help-ticket-step{
  border-color:#cbd8e3;
  box-shadow:0 1px 2px rgba(26,55,78,.04);
}

#dashboardHelpTicketForm .help-ticket-step-heading{
  background:#f3f7fa;
  border-bottom:1px solid #dce6ee;
  padding:10px 12px 9px;
}

#dashboardHelpTicketForm .help-ticket-step-number{
  border-color:#9fb5c7;
  background:#f9fcfe;
  color:#225f88;
  font-weight:700;
}

#dashboardHelpTicketForm .help-ticket-step-title{
  color:#243746;
  font-weight:750;
}

#dashboardHelpTicketForm .help-ticket-step-subtitle{
  color:#647b8e;
}

#dashboardHelpTicketForm .help-ticket-step-content{
  background:#fff;
  padding-top:11px;
}

#dashboardHelpTicketForm .help-ticket-step-primary{
  border-color:#b9cedd;
}

#dashboardHelpTicketForm .help-ticket-step-primary
.help-ticket-step-heading{
  background:#edf4f8;
}

/* ==========================================================
   ADMIN SUPPORT QUEUE SCROLLING
   ========================================================== */

#helpTicketQueue,
#accessRequestQueue{
  max-height:420px;
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
}

#helpTicketQueue{
  min-height:120px;
}

#accessRequestQueue{
  min-height:120px;
}

/* ==========================================================
   SUPPORT REQUEST DESTRUCTIVE ACTIONS
   ========================================================== */

.support-request-workflow-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.support-request-destructive-actions{
  display:flex;
  align-items:center;
  gap:8px;
  margin-right:auto;
}

.support-archive-btn{
  border:1px solid #c94343 !important;
  background:#fff !important;
  color:#b52f2f !important;
}

.support-archive-btn:hover{
  background:#fff5f5 !important;
  border-color:#b52f2f !important;
  color:#9f2525 !important;
}

.support-delete-btn{
  border:1px solid #b52f2f !important;
  background:#b52f2f !important;
  color:#fff !important;
}

.support-delete-btn:hover:not(:disabled){
  background:#982323 !important;
  border-color:#982323 !important;
  color:#fff !important;
}

.support-delete-btn:disabled{
  opacity:.55;
  cursor:not-allowed;
}

@media(max-width:700px){
  .support-request-workflow-actions{
    align-items:stretch;
    flex-direction:column;
  }

  .support-request-destructive-actions{
    width:100%;
  }

  .support-request-destructive-actions .btn,
  .support-request-workflow-actions >
  #saveSupportRequestStatusBtn{
    flex:1;
  }
}

/* ==========================================================
   ADMINISTRATION LANDING PAGE
   ========================================================== */

.admin-section-hidden{
  display:none !important;
}

.admin-cover{
  margin-bottom:18px;
}

.admin-cover-heading{
  margin-bottom:14px;
}

.admin-cover-heading h3{
  margin:2px 0 4px;
  color:#263f52;
  font-size:18px;
}

.admin-cover-heading p{
  margin:0;
  color:#6c7f8f;
  font-size:13px;
}

.admin-cover-grid{
  display:grid;
  grid-template-columns:
    repeat(2,minmax(0,1fr));
  gap:14px;
}

.admin-cover-card{
  width:100%;
  min-height:138px;
  padding:0;
  overflow:hidden;

  border:1px solid #cad8e3;
  border-radius:10px;

  background:#fff;
  text-align:left;

  box-shadow:
    0 3px 13px rgba(30,55,75,.05);

  cursor:pointer;

  transition:
    border-color .15s ease,
    box-shadow .15s ease,
    transform .15s ease;
}

.admin-cover-card:hover{
  border-color:#9fb7c8;

  box-shadow:
    0 6px 18px rgba(30,55,75,.09);

  transform:translateY(-1px);
}

.admin-cover-card-head{
  display:block;

  padding:11px 14px;

  border-bottom:
    1px solid #d5e0e8;

  background:#eef4f8;

  color:#284b63;

  font-size:14px;
  font-weight:750;
}

.admin-cover-card-text{
  display:block;

  padding:14px 14px 4px;

  min-height:48px;

  color:#607587;

  font-size:12px;
  line-height:1.45;
}

.admin-cover-card-open{
  display:block;

  padding:
    8px 14px 14px;

  color:#32709b;

  font-size:12px;
  font-weight:700;
}

.admin-section-toolbar{
  display:flex;
  align-items:center;
  gap:16px;

  margin-bottom:14px;
  padding:11px 13px;

  border:
    1px solid #cddae4;

  border-radius:9px;

  background:#f3f7fa;
}

.admin-section-toolbar h3{
  margin:1px 0 0;
  color:#29485e;
  font-size:16px;
}

.admin-section-toolbar .eyebrow{
  margin:0;
}

@media(max-width:760px){

  .admin-cover-grid{
    grid-template-columns:1fr;
  }

  .admin-section-toolbar{
    align-items:flex-start;
    flex-direction:column;
  }
}

/* ==========================================================
   ROOM BUILDER FILE UPLOAD WIDTH
   ========================================================== */

#roomBuilderPanel input[type="file"]{
  width:100%;
  min-width:0;
  font-size:12px;
}

#roomBuilderPanel input[type="file"]::file-selector-button{
  margin-right:8px;
}

#roomBuilderPanel .room-builder-upload,
#roomBuilderPanel .room-upload-card,
#roomBuilderPanel .upload-from-computer{
  min-width:220px;
}

/* ==========================================================
   PROJECT ADMIN USER ACCESS LAYOUT
   Full Admin remains unchanged.
   ========================================================== */

#entraAccessPanel.project-admin-access-layout
.entra-access-actions{
  grid-template-columns:minmax(0,720px);
  justify-content:start;
}

#entraAccessPanel.project-admin-access-layout
#addAhtUserCard{
  width:100%;
  max-width:720px;
}

#entraAccessPanel.project-admin-access-layout
#addAhtUserCard > .admin-grid{
  grid-template-columns:1fr 1fr;
}

@media(max-width:800px){

  #entraAccessPanel.project-admin-access-layout
  .entra-access-actions{
    grid-template-columns:1fr;
  }

  #entraAccessPanel.project-admin-access-layout
  #addAhtUserCard{
    max-width:none;
  }

  #entraAccessPanel.project-admin-access-layout
  #addAhtUserCard > .admin-grid{
    grid-template-columns:1fr;
  }
}

/* ==========================================================
   PROJECT ADMIN USER ACCESS - WIDE LAYOUT
   Full Admin layout remains unchanged.
   ========================================================== */

#entraAccessPanel.project-admin-access-layout
.entra-access-actions{
  grid-template-columns:1fr;
  width:100%;
}

#entraAccessPanel.project-admin-access-layout
#addAhtUserCard{
  width:100%;
  max-width:none;
}

#entraAccessPanel.project-admin-access-layout
#addAhtUserCard > .admin-grid{
  grid-template-columns:
    minmax(360px,1.35fr)
    minmax(280px,.85fr);
  gap:16px;
}

@media(max-width:900px){

  #entraAccessPanel.project-admin-access-layout
  #addAhtUserCard > .admin-grid{
    grid-template-columns:1fr;
  }
}

/* ==========================================================
   HELP CENTER LANDING PAGE
   ========================================================== */

.help-center-section-toolbar{
  display:flex;
  align-items:center;
  margin:10px 0 8px;
}

.help-home{
  padding:2px 0 8px;
}

.help-home-heading{
  margin-bottom:14px;
}

.help-home-heading h3{
  margin:3px 0 4px;
  color:#263f52;
  font-size:19px;
}

.help-home-heading p{
  margin:0;
  color:#687d8e;
  font-size:13px;
}

.help-home-grid{
  display:grid;
  grid-template-columns:
    repeat(2,minmax(0,1fr));
  gap:12px;
}

.help-home-card{
  width:100%;
  min-height:132px;
  padding:0;
  overflow:hidden;

  border:1px solid #cad8e3;
  border-radius:10px;

  background:#fff;

  text-align:left;
  cursor:pointer;

  box-shadow:
    0 3px 12px rgba(30,55,75,.045);

  transition:
    border-color .15s ease,
    box-shadow .15s ease,
    transform .15s ease;
}

.help-home-card:hover{
  border-color:#9db7ca;

  box-shadow:
    0 6px 18px rgba(30,55,75,.09);

  transform:translateY(-1px);
}

.help-home-card-head{
  display:block;

  padding:11px 14px;

  border-bottom:
    1px solid #d5e1e9;

  background:#eef4f8;

  color:#294c64;

  font-size:14px;
  font-weight:750;
}

.help-home-card-text{
  display:block;

  min-height:48px;

  padding:
    13px 14px 4px;

  color:#607587;

  font-size:12px;
  line-height:1.45;
}

.help-home-card-open{
  display:block;

  padding:
    8px 14px 14px;

  color:#32709b;

  font-size:12px;
  font-weight:700;
}

.help-home-card-action
.help-home-card-head{
  background:#e8f2f8;
  color:#1f5b80;
}

@media(max-width:700px){

  .help-home-grid{
    grid-template-columns:1fr;
  }
}
/* ==========================================================
   HELP CENTER FULL PAGE
   ========================================================== */

#help.view{
  padding-bottom:32px;
}

.help-page-header{
  margin-bottom:18px;
}

.help-page-shell{
  width:100%;
  max-width:none;
}

#help .help-center-content{
  width:100%;
  max-width:none;
  overflow:visible;
  padding:0;
}

#help .help-home{
  width:100%;
}

#help .help-home-grid{
  grid-template-columns:
    repeat(2,minmax(0,1fr));
}

#help .help-home-card{
  min-height:145px;
}

#help .help-center-section-toolbar{
  margin:0 0 14px;
}

#help .help-guide-shell,
#help .help-section{
  width:100%;
  max-width:none;
}

@media(max-width:800px){

  #help .help-home-grid{
    grid-template-columns:1fr;
  }

}
/* ==========================================================
   HELP CENTER - CONSISTENT CARD LANGUAGE
   ========================================================== */

/* FAQ ----------------------------------------------------- */

#help .help-faq-list{
  display:grid;
  grid-template-columns:
    repeat(2,minmax(0,1fr));
  gap:10px;
}

#help .help-faq-item{
  margin:0;
  align-self:start;
  overflow:hidden;

  border:1px solid #cfdae3;
  border-radius:9px;

  background:#fff;

  box-shadow:
    0 2px 8px rgba(31,55,75,.035);
}

#help .help-faq-item summary{
  min-height:54px;
  box-sizing:border-box;

  padding:14px 15px;

  background:#fff;

  color:#31495d;
  font-size:13px;
  font-weight:750;
  line-height:1.35;

  cursor:pointer;
}

#help .help-faq-item:hover{
  border-color:#afc3d2;
  box-shadow:
    0 5px 14px rgba(31,55,75,.065);
}

#help .help-faq-item[open] summary{
  background:#f5f9fc;
  border-bottom:1px solid #d8e2e9;
}

#help .help-faq-item p{
  margin:0;
  padding:14px 15px 16px;

  color:#566d7f;
  font-size:12px;
  line-height:1.55;
}


/* WHAT YOU CAN DO ---------------------------------------- */

#help .help-role-guide-sections{
  display:grid;
  grid-template-columns:
    repeat(2,minmax(0,1fr));
  gap:10px;
}

#help .help-role-details{
  margin:0;
  align-self:start;
  overflow:hidden;

  border:1px solid #cfdae3;
  border-radius:9px;

  background:#fff;

  box-shadow:
    0 2px 8px rgba(31,55,75,.035);
}

#help .help-role-details summary{
  min-height:54px;
  box-sizing:border-box;

  padding:14px 15px;

  background:#fff;

  color:#31495d;
  font-size:13px;
  font-weight:750;
  line-height:1.35;

  cursor:pointer;
}

#help .help-role-details:hover{
  border-color:#afc3d2;
  box-shadow:
    0 5px 14px rgba(31,55,75,.065);
}

#help .help-role-details[open] summary{
  background:#f5f9fc;
  border-bottom:1px solid #d8e2e9;
}

#help .help-role-details > div{
  padding:14px 15px 16px;

  color:#566d7f;
  font-size:12px;
  line-height:1.55;
}


/* DASHBOARD AREAS ---------------------------------------- */

#help .help-topic-grid{
  display:grid;
  grid-template-columns:
    repeat(2,minmax(0,1fr));
  gap:10px;
}

#help .help-topic-card{
  min-height:96px;
  box-sizing:border-box;

  padding:14px 15px;

  border:1px solid #cfdae3;
  border-radius:9px;

  background:#fff;

  text-align:left;
  cursor:pointer;

  box-shadow:
    0 2px 8px rgba(31,55,75,.035);

  transition:
    border-color .15s ease,
    box-shadow .15s ease,
    transform .15s ease;
}

#help .help-topic-card:hover{
  border-color:#afc3d2;

  box-shadow:
    0 5px 14px rgba(31,55,75,.065);

  transform:translateY(-1px);
}

#help .help-topic-card strong{
  display:block;

  margin-bottom:5px;

  color:#31495d;
  font-size:13px;
  font-weight:750;
  line-height:1.35;
}

#help .help-topic-card small{
  display:block;

  color:#607587;
  font-size:12px;
  line-height:1.45;
}


/* RESPONSIVE --------------------------------------------- */

@media(max-width:800px){

  #help .help-faq-list,
  #help .help-role-guide-sections,
  #help .help-topic-grid{
    grid-template-columns:1fr;
  }

}

/* ==========================================================
   MOBILE PROJECT CONTACTS
   ========================================================== */

@media(max-width:700px){

  #projectContacts .page-header{
    gap:12px;
  }

  #projectContacts .page-header .actions{
    width:100%;
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:8px;
  }

  #projectContacts .project-switcher{
    width:100%;
  }

  #projectContacts .project-switcher select{
    width:100%;
  }

  #projectContactsContent{
    width:100%;
    min-width:0;
  }

  #projectContactsContent .pc-toolbar{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:12px;
  }

  #projectContactsContent .pc-toolbar-right{
    width:100%;
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    justify-content:space-between;
    gap:10px;
  }

  #projectContactsContent .pc-card-grid{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:10px;
    width:100%;
  }

  #projectContactsContent .pc-contact-card{
    width:100%;
    min-width:0;
    box-sizing:border-box;
  }

  #projectContactsContent .pc-contact-details{
    overflow-wrap:anywhere;
    word-break:break-word;
  }

  #projectContactsContent .pc-list{
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }

}

/* Prevent the dashboard behind Project Control detail from scrolling. */
body.project-control-detail-open{
  overflow:hidden;
  touch-action:none;
}

body.project-control-detail-open
.project-control-detail-backdrop{
  overscroll-behavior:contain;
}

body.project-control-detail-open
.project-control-detail-modal{
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
}

/* AHT-SITE-EDIT-PHASE-ALIGN-V1
   Visual-only: keep progress percentages in one column, like Location overrides.
   No JavaScript, data, or form-submission changes.
*/
.so-modal .form-grid > .field:has(> input[name="roughInPercent"]),
.so-modal .form-grid > .field:has(> input[name="trimPercent"]),
.so-modal .form-grid > .field:has(> input[name="finalPercent"]),
.so-modal .form-grid > .so-legacy-percent-field {
  grid-column: 1;
  min-width: 0;
}
.so-modal .form-grid > .field:has(> input[name="roughInPercent"]) input,
.so-modal .form-grid > .field:has(> input[name="trimPercent"]) input,
.so-modal .form-grid > .field:has(> input[name="finalPercent"]) input {
  background: #f6f8fb;
  border-color: #d9e2ed;
  color: #40536a;
  min-height: 39px;
  width: 100%;
  box-sizing: border-box;
}
.so-modal .form-grid > .field:has(> input[name="roughInPercent"]) label,
.so-modal .form-grid > .field:has(> input[name="trimPercent"]) label,
.so-modal .form-grid > .field:has(> input[name="finalPercent"]) label {
  color: #566779;
}
@media (max-width: 680px) {
  .so-modal .form-grid > .field:has(> input[name="roughInPercent"]),
  .so-modal .form-grid > .field:has(> input[name="trimPercent"]),
  .so-modal .form-grid > .field:has(> input[name="finalPercent"]),
  .so-modal .form-grid > .so-legacy-percent-field { grid-column: 1 / -1; }
}
/* END AHT-SITE-EDIT-PHASE-ALIGN-V1 */

/* AHT-SITE-PARENT-PICKER-V3-CSS
   Compact tree, collapsed building/floor branches and extra space above search.
   Display-only: the saved ParentLocationLookupId remains unchanged.
*/
.so-modal .so-parent-picker {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
}
.so-modal .so-parent-picker .so-parent-search {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 38px;
}
.so-modal .so-parent-picker-open {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  padding: 7px 10px;
  border: 1px solid #d9e2ed;
  border-radius: 6px;
  background: #fff;
  color: #30435b;
  text-align: left;
  font: inherit;
  cursor: pointer;
  box-sizing: border-box;
}
.so-modal .so-parent-picker-open .so-parent-current-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.so-modal .so-parent-tree {
  overflow-y: auto;
  max-height: 320px;
  border: 1px solid #d9e2ed;
  border-radius: 7px;
  background: #fff;
  padding: 5px;
  box-sizing: border-box;
}
.so-modal .so-parent-tree[hidden],
.so-modal .so-parent-children[hidden] { display: none !important; }
.so-modal .so-parent-node-row {
  display: flex;
  align-items: center;
  min-height: 32px;
  padding-left: calc(var(--so-parent-depth, 0) * 11px);
  gap: 3px;
}
.so-modal .so-parent-branch,
.so-modal .so-parent-branch-placeholder {
  flex: 0 0 23px;
  width: 23px;
  height: 29px;
  border: 0;
  padding: 0;
  text-align: center;
  background: transparent;
  color: #48647d;
  font-size: 15px;
  cursor: pointer;
}
.so-modal .so-parent-choice,
.so-modal .so-parent-top-choice {
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #30435b;
  text-align: left;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  padding: 7px;
  min-width: 0;
}
.so-modal .so-parent-choice {
  flex: 1 1 auto;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.so-modal .so-parent-top-choice { display: block; width: 100%; }
.so-modal .so-parent-root > .so-parent-node-row > .so-parent-choice { font-weight: 650; }
.so-modal .so-parent-choice:hover,
.so-modal .so-parent-top-choice:hover { background: #f1f6fb; }
.so-modal .so-parent-choice.is-selected,
.so-modal .so-parent-top-choice.is-selected { background: #eaf3fb; color: #145a8e; font-weight: 700; }
.so-modal .so-parent-no-results { color: #66788a; padding: 10px; font-size: 13px; }
.so-modal .so-parent-filter-note { line-height: 1.35; }
/* END AHT-SITE-PARENT-PICKER-V3-CSS */
