@import url("../tokens/brand.css");

:root {
  font-family: var(--font-body), "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--surface);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: var(--brand-black);
  --surface: var(--brand-grey-100);
  --card: var(--brand-white);
  --green: var(--brand-green-500);
  --green-dark: var(--brand-green-600);
  --green-soft: var(--brand-green-100);
  --green-pale: var(--brand-green-200);
  --orange: var(--brand-orange-500);
  --orange-soft: var(--brand-orange-100);
  --line: var(--brand-grey-300);
  --muted: var(--brand-grey-700);
  --font-heading: "Sora", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --sidebar-width: clamp(100px, 7.35vw, 150px);
  --main-inset: clamp(34px, 4.2vw, 86px);
  --content-max: 1500px;
  --radius: 20px;
  --shadow: 0 8px 18px rgb(22 22 22 / 5%);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: min(320px, 100%); min-height: 100vh; background: var(--surface); }
button, input, select { font: inherit; }
button { color: inherit; }
svg { display: block; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 10; inset: 0 auto 0 0; width: var(--sidebar-width); min-height: 100vh; background: var(--ink); color: #bcbcbc; display: flex; flex-direction: column; align-items: center; padding: 44px 0 48px; }
.brand-mark { display: grid; place-items: center; color: var(--green); text-decoration: none; font-size: 44px; line-height: 1; width: 56px; height: 56px; margin-bottom: clamp(48px, 8vh, 88px); }
.brand-mark span, .mobile-brand span { display: inline-block; animation: mark-glow 4s ease-in-out infinite; }
.side-nav { display: flex; flex-direction: column; gap: clamp(12px, 1.8vh, 18px); align-items: center; width: 100%; }
.nav-item, .settings-button { border: 0; background: transparent; color: #bcbcbc; cursor: pointer; display: grid; place-items: center; width: 64px; height: 48px; border-radius: 12px; transition: color .2s, background .2s, transform .2s; }
.nav-item:hover, .settings-button:hover { color: white; transform: translateY(-2px); }
.nav-item.active { color: var(--ink); background: var(--green); }
.nav-item svg, .settings-button svg { width: 27px; height: 27px; stroke-width: 1.9; }
.nav-label { position: absolute; left: calc(100% + 10px); padding: 7px 10px; border-radius: 8px; background: var(--ink); color: #fff; opacity: 0; pointer-events: none; font-size: 12px; transition: opacity .15s; white-space: nowrap; }
.nav-item:hover .nav-label { opacity: 1; }
.settings-button { margin-top: auto; background: #292929; width: 64px; height: 66px; border-radius: 18px; }
.main-area { min-height: 100vh; margin-left: var(--sidebar-width); padding: 0 var(--main-inset) 54px; position: relative; overflow: hidden; }
.main-area::before { content: ""; position: fixed; z-index: -1; pointer-events: none; top: -200px; left: 48%; width: 340px; height: 640px; transform: rotate(-20deg); background: linear-gradient(180deg, transparent, rgb(144 240 42 / 20%), transparent); filter: blur(24px); }
.topbar { max-width: var(--content-max); height: 104px; margin: 0 auto; display: flex; justify-content: flex-end; align-items: center; }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.top-action { position: relative; display: flex; gap: 8px; align-items: center; justify-content: center; border: 0; border-radius: 24px; background: #fff; height: 56px; padding: 0 16px; box-shadow: 0 4px 8px rgb(0 0 0 / 6%); cursor: pointer; transition: transform .18s, box-shadow .18s; }
.top-action:hover { transform: translateY(-2px); box-shadow: 0 8px 14px rgb(0 0 0 / 9%); }
.top-action svg { width: 25px; height: 25px; }
.unread-dot { width: 7px; height: 7px; background: var(--green-dark); border-radius: 50%; position: absolute; top: 9px; right: 10px; box-shadow: 0 0 0 3px white; }
.top-divider { width: 1px; height: 64px; background: #555; margin-left: -6px; }
.profile-button { display: flex; align-items: center; gap: 14px; border: 0; background: none; cursor: pointer; text-align: left; }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; font-style: normal; font-weight: 600; flex: 0 0 auto; }
.avatar-large { width: 56px; height: 56px; background: #dedede; }
.avatar-green { background: #d3f9aa; }
.avatar-orange { background: #fdc19b; }
.profile-copy { display: grid; line-height: 1.2; }
.profile-copy b { font-family: var(--font-heading); font-weight: 500; font-size: 18px; }
.profile-copy small { font-size: 14px; color: #555; }
.profile-chevron { display: none; }
.mobile-brand { display: none; }
.page { max-width: var(--content-max); margin: 14px auto 0; animation: page-in .45s cubic-bezier(.2,.75,.25,1) both; }
.page[hidden] { display: none; }
.page-heading { display: flex; gap: 28px; align-items: center; margin: 0 0 32px; }
h1, h2, p { margin-top: 0; }
h1 { font-family: var(--font-heading); font-size: clamp(32px, 2.25vw, 46px); line-height: 1.2; letter-spacing: -.045em; margin-bottom: 0; font-weight: 600; }
.select-wrap { min-width: 0; position: relative; height: 56px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-radius: 22px; background: white; box-shadow: 0 4px 10px rgb(0 0 0 / 5%); }
.select-wrap > svg:first-child { width: 26px; height: 26px; flex: none; }
.select-wrap > svg:last-child { width: 16px; height: 16px; flex: none; }
.select-wrap select { min-width: 0; flex: 1; appearance: none; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 15px; cursor: pointer; }
.overview-heading { margin-bottom: 40px; }
.overview-heading .date-select { width: 208px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.metric-card { min-width: 0; min-height: 160px; position: relative; overflow: hidden; display: flex; align-items: flex-start; gap: 28px; padding: 22px 22px 16px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); isolation: isolate; transition: transform .22s, box-shadow .22s; }
.metric-card:hover, .panel:hover { box-shadow: 0 13px 26px rgb(22 22 22 / 8%); }
.metric-card:hover { transform: translateY(-3px); }
.metric-icon { width: 58px; height: 58px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 20px; position: relative; z-index: 1; }
.metric-icon svg { width: 29px; height: 29px; }
.green-icon { background: var(--green-soft); color: #315b12; }
.orange-icon { background: var(--orange-soft); color: #171717; }
.metric-content { position: relative; z-index: 1; min-width: 0; }
.metric-content h2 { font: 600 clamp(17px, 1.15vw, 22px)/1.25 var(--font-heading); letter-spacing: -.025em; margin: 0 0 8px; white-space: nowrap; }
.metric-content strong { display: block; font: 600 clamp(32px, 2.25vw, 46px)/1.05 var(--font-heading); letter-spacing: -.045em; }
.metric-content p { margin: 17px 0 0; font-size: 15px; white-space: nowrap; }
.trend { position: absolute; z-index: 2; right: 22px; top: 61px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.trend svg { width: 27px; height: 27px; }
.trend-up { color: #355f16; background: var(--green-soft); }
.trend-down { color: #71350f; background: var(--orange-soft); }
.card-orb { position: absolute; z-index: 0; width: 116px; height: 84px; right: -5px; bottom: -47px; border-radius: 70px 70px 0 0; opacity: .8; }
.card-orb::after { content: ""; position: absolute; width: 57px; height: 40px; border-radius: 40px 40px 0 0; top: 29px; left: 30px; background: var(--card); }
.green-orb { background: linear-gradient(140deg, #d6ffad 10%, #f0ffe1 65%); }
.orange-orb { background: linear-gradient(140deg, #ffc7a8 10%, #fff3ec 65%); }
.overview-middle { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.panel { min-width: 0; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); padding: 20px 22px; transition: box-shadow .22s; }
.panel-title { font: 600 clamp(19px, 1.35vw, 26px)/1.3 var(--font-heading); letter-spacing: -.03em; margin: 0; }
.trend-panel { min-height: 394px; }
.trend-summary { display: flex; align-items: center; gap: 26px; margin-top: 24px; }
.change-pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 12px; background: var(--green-soft); color: #578b19; font-size: 14px; font-weight: 600; padding: 5px 13px; }
.change-pill svg { width: 14px; height: 14px; }
.muted-label { font-size: 16px; margin: 3px 0 8px; }
.chart-wrap { width: 100%; height: 208px; padding-top: 14px; }
.line-chart { width: 100%; height: 100%; overflow: visible; }
.chart-grid line { stroke: #e8e8e8; stroke-width: 1; }
.chart-y-labels text, .chart-x-labels text { fill: #999; font: 12px var(--font-body); }
.chart-line { fill: none; stroke: var(--green-dark); stroke-width: 3.3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw-line 1.5s .25s ease forwards; }
.chart-points circle { fill: white; stroke: var(--green); stroke-width: 3.5; animation: point-in .4s backwards; }
.chart-points circle:nth-child(1) { animation-delay: .2s; }.chart-points circle:nth-child(2) { animation-delay: .32s; }.chart-points circle:nth-child(3) { animation-delay: .44s; }.chart-points circle:nth-child(4) { animation-delay: .56s; }.chart-points circle:nth-child(5) { animation-delay: .68s; }.chart-points circle:nth-child(6) { animation-delay: .8s; }.chart-points circle:nth-child(7) { animation-delay: .92s; }
.chart-points .highlight-point { stroke-width: 3; }
.chart-callout rect { fill: var(--green-pale); }
.chart-callout text { fill: #263e12; font: 600 14px var(--font-body); }
.department-panel { min-height: 394px; padding: 20px 22px 16px; }
.department-list { margin-top: 19px; }
.department-row { min-height: 75px; display: grid; grid-template-columns: minmax(90px, 170px) 1fr 56px; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
.department-row b { font-weight: 500; }
.progress-track { height: 19px; background: #ebebeb; border-radius: 99px; overflow: hidden; }
.progress-track i, .table-progress i { display: block; width: var(--progress); height: 100%; border-radius: inherit; background: var(--green); animation: grow-bar .9s ease-out both; transform-origin: left; }
.overview-bottom { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 12px; margin-top: 14px; }
.overview-bottom .panel { min-height: 204px; }
.workforce-panel .panel-title, .status-panel .panel-title { font-size: 20px; }
.workforce-total { display: block; font: 600 34px/1.2 var(--font-heading); letter-spacing: -.045em; margin-top: 17px; }
.workforce-labels { display: flex; justify-content: space-between; color: #777; font-size: 13px; margin: 23px 0 16px; }
.workforce-track { height: 13px; }
.status-list { margin-top: 14px; }
.status-list > div { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 14px; min-height: 34px; border-bottom: 1px solid #f3f3f3; font-size: 15px; }
.status-list b { font-weight: 500; }
.status-dot { width: 15px; height: 15px; display: block; border-radius: 50%; }
.completed { background: var(--green-dark); }.in-progress { background: var(--green-pale); }.waiting { background: #cecece; }
.mini-metric { display: flex; align-items: center; gap: 22px; position: relative; padding: 22px; }
.plain-metric-icon { flex: 0 0 auto; align-self: flex-start; margin-top: 28px; }
.plain-metric-icon svg { width: 26px; height: 26px; }
.mini-metric h2 { font: 600 clamp(17px, 1.2vw, 21px)/1.3 var(--font-heading); letter-spacing: -.025em; margin: 14px 0 5px; white-space: nowrap; }
.mini-metric strong { display: block; font: 600 42px/1.1 var(--font-heading); letter-spacing: -.05em; }
.mini-metric p { font-size: 15px; margin: 16px 0 0; white-space: nowrap; }
.mini-metric .trend { top: 80px; right: 20px; }
.project-toolbar { display: flex; gap: 38px; align-items: center; margin-bottom: 38px; }
.search-field { min-width: 240px; flex: 1; height: 56px; padding: 0 16px; display: flex; align-items: center; gap: 12px; background: white; border-radius: 21px; box-shadow: 0 4px 10px rgb(0 0 0 / 5%); }
.search-field svg { width: 26px; height: 26px; }
.search-field input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 15px; }
.toolbar-filters { display: flex; align-items: center; gap: 14px; }
.filter-select { height: 56px; gap: 9px; padding: 0 14px; }
.filter-select > svg:first-child { width: 24px; height: 24px; }
.filter-select select { white-space: nowrap; font-size: 14px; }
.create-project-button { border: 0; height: 52px; padding: 0 31px; border-radius: 28px; background: #292929; color: white; cursor: pointer; white-space: nowrap; font-size: 16px; transition: background .2s, transform .2s; }
.create-project-button:hover { background: #111; transform: translateY(-2px); }
.project-metrics { max-width: 1190px; gap: 12px; margin-bottom: 30px; }
.project-metrics .metric-card { min-height: 150px; gap: 27px; padding: 20px; }
.project-metrics .metric-icon { width: 54px; height: 54px; }
.project-metrics .metric-content h2 { font-size: clamp(17px, 1.1vw, 21px); }
.project-metrics .metric-content strong { font-size: 42px; }
.project-metrics .metric-content p { margin-top: 15px; }
.section-title { font: 600 23px/1.3 var(--font-heading); letter-spacing: -.035em; margin: 0 0 20px; }
.table-shell { border-radius: 20px; background: white; box-shadow: var(--shadow); overflow: hidden; }
.project-table { border-collapse: collapse; width: 100%; table-layout: fixed; }
.project-table thead { background: #ebebeb; }
.project-table th { text-align: left; height: 43px; font-size: 13px; font-weight: 700; padding: 0 18px; white-space: nowrap; }
.project-table th:nth-child(1) { width: 16%; }.project-table th:nth-child(2) { width: 16%; }.project-table th:nth-child(3) { width: 16%; }.project-table th:nth-child(4) { width: 22%; }.project-table th:nth-child(5) { width: 15%; }.project-table th:nth-child(6) { width: 15%; }
.project-table td { height: 61px; border-bottom: 1px solid #ededed; padding: 0 18px; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.project-table tbody tr:last-child td { border-bottom: 0; }
.project-table td:first-child { display: flex; align-items: center; gap: 14px; }
.project-table td:first-child b { overflow: hidden; text-overflow: ellipsis; }
.project-symbol { width: 25px; font-size: 24px; line-height: 1; }
.manager { display: inline-flex; align-items: center; gap: 9px; }
.manager .avatar { width: 28px; height: 28px; }
.table-progress { display: inline-block; width: calc(100% - 43px); vertical-align: middle; height: 12px; background: #ebebeb; border-radius: 99px; margin-right: 9px; overflow: hidden; }
.table-progress i { background: var(--green-dark); }
.project-table tr:nth-child(2) .table-progress i, .project-table tr:nth-child(3) .table-progress i { background: var(--green); }
.progress-value { vertical-align: middle; }
.status-chip { display: inline-flex; align-items: center; gap: 9px; padding: 7px 12px; width: 100%; max-width: 150px; border-radius: 99px; font-size: 13px; }
.status-chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--green-dark); }
.status-green { background: var(--green-pale); }.status-orange { background: var(--orange-soft); }.status-orange i { background: var(--orange); }.status-pale { background: var(--green-soft); }
.deadline { display: inline-flex; align-items: center; gap: 10px; }.deadline svg { width: 15px; height: 15px; }
.empty-state { color: var(--muted); text-align: center; padding: 42px 18px; margin: 0; }
.project-bottom { display: grid; grid-template-columns: 1.55fr 1fr .95fr; align-items: start; gap: 12px; margin-top: 12px; }
.project-bottom .panel { min-height: 152px; }
.panel-heading-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.text-button { border: 0; background: none; font-size: 13px; cursor: pointer; white-space: nowrap; }.text-button span { font-size: 18px; vertical-align: -1px; }
.milestones-panel { padding: 18px 20px 4px; }
.milestones-panel .panel-title, .health-panel .panel-title { font-size: 23px; }
.milestone-list { margin-top: 8px; }
.milestone-row { min-height: 76px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #ededed; }
.milestone-row:last-child { border-bottom: 0; }
.milestone-date { width: 48px; height: 52px; flex: 0 0 auto; background: #f5f5f5; border-radius: 13px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.milestone-date small { font-size: 12px; font-weight: 600; }.milestone-date b { font: 600 21px var(--font-heading); }
.milestone-copy { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 2px; }.milestone-copy b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }.milestone-copy span { color: #888; font-size: 14px; }
.milestone-tag { min-width: 112px; text-align: center; border-radius: 99px; padding: 7px 10px; font-size: 13px; }.tag-green { background: var(--green-soft); }.tag-orange { background: var(--orange-soft); }
.health-panel { padding: 18px 20px; }
.health-content { display: flex; gap: 22px; align-items: center; margin-top: 24px; }
.donut { width: 188px; aspect-ratio: 1; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; background: conic-gradient(var(--green-dark) 0 100%); animation: donut-in .9s ease both; }
.donut::before { content: ""; position: absolute; width: 122px; aspect-ratio: 1; border-radius: 50%; background: white; }
.donut > div { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }.donut strong { font: 600 44px/1.1 var(--font-heading); letter-spacing: -.05em; }.donut span { font-size: 14px; }
.health-legend { display: grid; gap: 8px; font-size: 14px; white-space: nowrap; }.health-legend span { display: flex; align-items: center; gap: 9px; }.health-legend i { width: 20px; height: 20px; display: inline-block; border-radius: 6px; }.healthy { background: var(--green-dark); }.risk { background: var(--green-pale); }.delayed { background: var(--green-soft); }
.completion-card { min-height: 152px !important; }
.completion-card .plain-metric-icon { margin-top: 16px; }
.completion-card h2 { margin-top: 0; }
.toast { position: fixed; z-index: 30; left: 50%; bottom: 28px; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; background: #292929; color: white; padding: 12px 18px; border-radius: 12px; box-shadow: 0 8px 24px rgb(0 0 0 / 18%); transition: opacity .2s, transform .2s; font-size: 14px; }.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.popover { position: fixed; z-index: 25; top: 88px; right: 48px; width: min(340px, calc(100vw - 30px)); padding: 20px; border-radius: 16px; background: white; box-shadow: 0 12px 44px rgb(0 0 0 / 16%); animation: page-in .2s ease both; }.popover[hidden] { display: none; }.popover h3 { margin: 0 0 12px; font: 600 18px var(--font-heading); }.popover p { margin: 0; color: #666; font-size: 14px; line-height: 1.6; }.popover .popover-close { position: absolute; right: 12px; top: 10px; border: 0; background: none; cursor: pointer; font-size: 22px; }
.project-dialog { width: min(500px, calc(100vw - 28px)); border: 0; padding: 0; border-radius: 24px; box-shadow: 0 24px 90px rgb(0 0 0 / 22%); }.project-dialog::backdrop { background: rgb(22 22 22 / 42%); backdrop-filter: blur(4px); }.project-dialog form { position: relative; padding: 34px; display: grid; gap: 17px; }.dialog-close { position: absolute; right: 22px; top: 18px; border: 0; background: none; font-size: 27px; cursor: pointer; color: #777; }.dialog-kicker { color: #6a9e1e; font-size: 11px; font-weight: 700; letter-spacing: .12em; }.project-dialog h2 { margin: 0; font: 600 28px var(--font-heading); letter-spacing: -.04em; }.dialog-intro { color: #777; margin: -12px 0 0; font-size: 14px; }.project-dialog label { display: grid; gap: 7px; font-size: 13px; font-weight: 600; }.project-dialog input, .project-dialog select { width: 100%; height: 46px; border: 1px solid #e2e2e2; border-radius: 11px; padding: 0 12px; background: #fff; outline-color: var(--green-dark); }.dialog-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.dialog-submit { margin-top: 2px; }

@keyframes page-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes grow-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes draw-line { to { stroke-dashoffset: 0; } }
@keyframes point-in { from { opacity: 0; transform: scale(.4); transform-origin: center; } to { opacity: 1; transform: scale(1); transform-origin: center; } }
@keyframes donut-in { from { transform: rotate(-80deg) scale(.75); opacity: .4; } to { transform: rotate(0) scale(1); opacity: 1; } }
@keyframes mark-glow { 0%,100% { transform: rotate(0) scale(1); } 50% { transform: rotate(8deg) scale(1.08); } }

@media (max-width: 1500px) {
  :root { --sidebar-width: 104px; --main-inset: 36px; --radius: 16px; }
  .metric-card { gap: 16px; padding: 18px; min-height: 148px; }
  .metric-icon { width: 48px; height: 48px; border-radius: 16px; }
  .metric-icon svg { width: 25px; height: 25px; }
  .metric-content h2 { white-space: normal; }
  .trend { right: 16px; top: 56px; width: 34px; height: 34px; }
  .project-toolbar { gap: 20px; }
  .toolbar-filters { gap: 8px; }
  .filter-select { padding: 0 10px; }
  .health-content { gap: 12px; }.donut { width: 145px; }.donut::before { width: 95px; }
}
@media (max-width: 1150px) {
  .overview-metrics, .project-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); max-width: none; }
  .overview-bottom { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .project-toolbar { display: grid; gap: 14px; }.toolbar-filters { flex-wrap: wrap; }.search-field { width: 100%; }
  .project-bottom { grid-template-columns: 1.3fr 1fr; }.completion-card { grid-column: 1 / -1; }
  .health-content { justify-content: flex-start; }.donut { width: 170px; }.donut::before { width: 112px; }
  .project-table th, .project-table td { padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 760px) {
  :root { --sidebar-width: 0px; --main-inset: 18px; --radius: 16px; }
  .sidebar { inset: auto 0 0; width: 100%; min-height: auto; height: 68px; padding: 7px 10px max(7px, env(safe-area-inset-bottom)); flex-direction: row; justify-content: center; box-shadow: 0 -6px 18px rgb(0 0 0 / 7%); }
  .brand-mark, .settings-button { display: none; }.side-nav { flex-direction: row; justify-content: space-around; gap: 4px; height: 100%; }.nav-item { width: 52px; height: 48px; border-radius: 14px; }.nav-label { display: none; }
  .main-area { margin-left: 0; padding: 0 var(--main-inset) calc(84px + env(safe-area-inset-bottom)); }.main-area::before { left: 38%; width: 160px; height: 300px; top: -100px; }
  .topbar { height: 70px; justify-content: space-between; }.mobile-brand { display: flex; align-items: center; gap: 7px; color: var(--ink); font: 600 16px var(--font-heading); }.mobile-brand span { font-size: 26px; color: var(--green-dark); }
  .topbar-actions { gap: 8px; }.top-action { width: 42px; height: 42px; border-radius: 14px; padding: 0; box-shadow: none; }.top-action > span:last-of-type:not([data-icon]) { display: none; }.top-action svg { width: 21px; height: 21px; }.unread-dot { top: 5px; right: 5px; }.top-divider { height: 34px; margin-left: 0; }.avatar-large { width: 38px; height: 38px; }.profile-button { gap: 7px; }.profile-copy b { font: 600 13px var(--font-heading); }.profile-copy small { font-size: 11px; }.profile-chevron { display: block; width: 12px; height: 12px; }
  .page { margin-top: 12px; }.page-heading { margin-bottom: 22px; gap: 12px; align-items: flex-start; flex-direction: column; }.overview-heading { flex-direction: row; align-items: center; justify-content: space-between; margin-bottom: 18px; }.overview-heading h1 { max-width: 60%; font-size: clamp(20px, 6.5vw, var(--type-mobile-h3)); line-height: var(--type-mobile-h3-line); }.overview-heading .date-select { width: auto; height: 42px; padding: 0 10px; gap: 6px; border-radius: 14px; }.overview-heading .date-select > svg:first-child { width: 19px; height: 19px; }.overview-heading .date-select > svg:last-child { width: 12px; height: 12px; }.overview-heading .date-select select { font-size: var(--type-mobile-caption); }
  h1 { font-size: var(--type-mobile-h3); }.overview-metrics, .project-metrics { gap: 9px; }.metric-card, .project-metrics .metric-card { min-height: 140px; padding: 14px 12px; gap: 10px; border-radius: 15px; }.metric-icon, .project-metrics .metric-icon { width: 40px; height: 40px; border-radius: 13px; }.metric-icon svg { width: 22px; height: 22px; }.metric-content, .project-metrics .metric-content { flex: 1; }.metric-content h2, .project-metrics .metric-content h2 { font-size: var(--type-mobile-paragraph-small); line-height: var(--type-mobile-paragraph-small-line); margin-bottom: 7px; }.metric-content strong, .project-metrics .metric-content strong { font-size: var(--type-mobile-h6); line-height: var(--type-mobile-h6-line); }.metric-content p, .project-metrics .metric-content p { font-size: var(--type-mobile-caption); line-height: var(--type-mobile-caption-line); margin-top: 11px; white-space: normal; }.trend { right: 8px; top: 52px; width: 24px; height: 24px; border-radius: 8px; }.trend svg { width: 17px; height: 17px; }.card-orb { width: 70px; height: 55px; right: -4px; bottom: -34px; }.card-orb::after { width: 34px; height: 25px; left: 19px; top: 20px; }
  .overview-middle { grid-template-columns: 1fr; gap: 10px; margin-top: 10px; }.panel { padding: 16px; border-radius: 16px; }.panel-title { font-size: 18px; }.trend-panel { min-height: 340px; }.trend-summary { margin-top: 18px; }.muted-label { font-size: 14px; }.chart-wrap { height: 182px; padding-top: 7px; }.chart-x-labels text { font-size: 10px; }.chart-y-labels text { font-size: 10px; }.department-panel { min-height: 0; }.department-list { margin-top: 10px; }.department-row { min-height: 60px; grid-template-columns: 85px 1fr 42px; gap: 9px; font-size: 12px; }.progress-track { height: 13px; }
  .overview-bottom { grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 10px; }.overview-bottom .panel { min-height: 158px; padding: 14px 12px; }.workforce-panel .panel-title, .status-panel .panel-title { font-size: var(--type-mobile-paragraph-small); }.workforce-total { font-size: var(--type-mobile-h5); margin-top: 16px; }.workforce-labels { font-size: var(--type-mobile-caption); margin: 17px 0 11px; }.workforce-track { height: 10px; }.status-list { margin-top: 12px; }.status-list > div { grid-template-columns: 14px 1fr auto; gap: 7px; min-height: 29px; font-size: var(--type-mobile-caption); }.status-dot { width: 11px; height: 11px; }.mini-metric { gap: 10px; padding: 14px 10px !important; }.plain-metric-icon { margin-top: 25px; }.plain-metric-icon svg { width: 19px; height: 19px; }.mini-metric h2 { white-space: normal; font-size: var(--type-mobile-paragraph-small); margin: 8px 0 4px; }.mini-metric strong { font-size: var(--type-mobile-h5); }.mini-metric p { font-size: var(--type-mobile-caption); margin-top: 10px; }.mini-metric .trend { top: auto; bottom: 18px; right: 9px; width: 26px; height: 26px; }
  .project-toolbar { margin: 18px 0 18px; }.search-field { height: 48px; border-radius: 16px; }.toolbar-filters { display: grid; grid-template-columns: 1fr 1fr; }.filter-select { height: 46px; padding: 0 9px; gap: 6px; border-radius: 14px; }.filter-select > svg:first-child { width: 19px; height: 19px; }.filter-select > svg:last-child { width: 12px; height: 12px; }.filter-select select { font-size: 11px; }.date-filter { grid-column: 1; }.create-project-button { height: 46px; padding: 0 10px; font-size: 12px; }.project-metrics { margin-bottom: 22px; }.project-metrics .metric-card { min-height: 124px; }.section-title { font-size: 19px; margin-bottom: 12px; }
  .table-shell { background: transparent; box-shadow: none; overflow: visible; }.project-table, .project-table tbody { display: block; width: 100%; }.project-table thead { display: none; }.project-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 12px; padding: 14px; margin-bottom: 10px; border-radius: 16px; background: white; box-shadow: var(--shadow); }.project-table td { display: block; min-width: 0; height: auto; padding: 0; border: 0; font-size: 12px; white-space: normal; overflow: visible; }.project-table td:first-child { grid-column: 1 / -1; font-size: 14px; }.project-table td::before { content: attr(data-label); display: block; margin-bottom: 4px; color: #888; font-size: 10px; }.project-table td:first-child::before { display: none; }.project-table td:nth-child(4) { position: relative; }.project-table td:nth-child(4)::before { margin-bottom: 7px; }.table-progress { width: calc(100% - 39px); margin-right: 5px; height: 8px; }.progress-value { font-size: 11px; }.status-chip { padding: 5px 8px; gap: 6px; font-size: 10px; max-width: none; }.status-chip i { width: 7px; height: 7px; }.deadline { gap: 5px; }.project-symbol { width: 22px; }.manager { gap: 5px; }
  .project-bottom { grid-template-columns: 1fr; margin-top: 10px; }.project-bottom .panel { min-height: auto; }.milestones-panel { padding: 16px 14px 4px; }.milestones-panel .panel-title, .health-panel .panel-title { font-size: 18px; }.milestone-row { min-height: 67px; gap: 9px; }.milestone-date { width: 42px; height: 47px; }.milestone-copy b, .milestone-copy span { font-size: 12px; }.milestone-tag { min-width: 88px; font-size: 11px; padding: 6px 7px; }.health-content { margin-top: 18px; justify-content: center; }.donut { width: 155px; }.donut::before { width: 100px; }.donut strong { font-size: 38px; }.health-legend { font-size: 12px; }.health-legend i { width: 16px; height: 16px; }.completion-card { grid-column: auto; }.project-dialog form { padding: 28px 22px; }.popover { top: 68px; right: 12px; }
}
@media (max-width: 380px) {
  .overview-metrics, .project-metrics { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* Supporting product surfaces */
.eyebrow { display: block; color: #767676; font-size: 11px; font-weight: 700; letter-spacing: .1em; margin: 0 0 7px; }
.page-intro { color: #727272; margin: -18px 0 25px; font-size: 15px; }
.attention-panel { margin-top: 12px; padding: 22px 24px; }.attention-panel .muted-label { margin: 5px 0 0; color: #777; font-size: 13px; }
.attention-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }.attention-list button { display: flex; align-items: center; gap: 13px; min-width: 0; padding: 14px; text-align: left; border: 1px solid #eee; border-radius: 14px; background: #fffdfa; cursor: pointer; }.attention-list button:hover { border-color: #e7b292; background: #fff8f2; }.attention-list button > span:nth-child(2) { display: grid; gap: 4px; min-width: 0; flex: 1; }.attention-list small { color: #777; font-size: 12px; }.attention-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #fff0e6; color: #b65b20; font-weight: 700; }.risk-icon { background: #fff5d9; color: #9b7213; }.attention-action { color: #674121; font-size: 12px; white-space: nowrap; font-weight: 700; }
.directory-page .page-heading { justify-content: space-between; align-items: end; margin-bottom: 25px; }.directory-page .page-heading h1 { font-size: clamp(32px, 2.25vw, 46px); }.directory-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }.department-detail { padding: 24px; }.detail-head { display: flex; justify-content: space-between; align-items: center; }.detail-head h2 { margin: 0; font: 600 25px var(--font-heading); letter-spacing: -.03em; }.detail-score { font: 600 35px var(--font-heading); letter-spacing: -.05em; }.detail-bar, .report-track { height: 10px; margin: 20px 0; border-radius: 10px; background: #eee; overflow: hidden; }.detail-bar i, .report-track i { display: block; height: 100%; width: var(--progress); border-radius: inherit; background: var(--green-dark); }.needs-review .detail-bar i { background: #d98644; }.detail-stats { display: flex; gap: 36px; padding: 15px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; color: #777; font-size: 13px; }.detail-stats span { display: grid; gap: 5px; }.detail-stats b { color: var(--ink); font-size: 17px; }.detail-action { margin: 16px 0 10px; color: #565656; font-size: 13px; line-height: 1.55; }.department-detail .text-button { padding: 0; color: #477117; font-weight: 700; }
.workforce-metrics { margin: 8px 0 14px; }.allocation-panel { max-width: 900px; padding: 26px; }.capacity-legend { display: flex; align-items: center; gap: 8px; color: #777; font-size: 12px; }.capacity-legend i { width: 10px; height: 10px; border-radius: 50%; background: var(--green-dark); }.allocation-row { display: grid; grid-template-columns: 190px 1fr 50px; gap: 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid #eee; }.allocation-row > span { display: grid; gap: 4px; font-weight: 600; }.allocation-row small { color: #888; font-weight: 400; font-size: 12px; }.allocation-row .progress-track { margin: 0; height: 12px; }.progress-track i.capacity-high { background: #d98644; }
.report-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }.report-card { min-height: 245px; padding: 24px; }.report-card > strong { display: block; font: 600 42px var(--font-heading); letter-spacing: -.05em; }.report-card p { min-height: 40px; color: #777; font-size: 13px; line-height: 1.5; margin: 7px 0 12px; }.report-card small { color: #888; font-size: 11px; }.report-spark { display: flex; align-items: end; gap: 9px; height: 58px; margin: 12px 0 8px; }.report-spark i { flex: 1; height: var(--h); border-radius: 5px 5px 0 0; background: #a9df6c; }.report-spark i:last-child { background: var(--green-dark); }.report-card .report-track { margin: 20px 0 12px; }.report-note { margin-top: 14px; padding: 24px; }.report-note p { max-width: 900px; color: #666; font-size: 14px; line-height: 1.7; margin: 14px 0; }.health-definition { color: #777; font-size: 12px; margin: 8px 0 -11px; }
.role-select-label { display: grid; gap: 7px; margin-top: 16px; color: #666; font-size: 12px; font-weight: 600; }.role-select-label select { height: 40px; border: 1px solid #e5e5e5; border-radius: 9px; padding: 0 10px; background: white; color: #222; }
.task-list { padding: 4px 24px; }.task-row { display: grid; grid-template-columns: 22px minmax(200px,1fr) 170px 130px; align-items: center; gap: 16px; min-height: 76px; border-bottom: 1px solid #eee; }.task-row:last-child { border-bottom: 0; }.task-row > span:nth-child(2) { display: grid; gap: 5px; }.task-row small { color: #888; font-size: 12px; }.task-check { width: 20px; height: 20px; border: 1px solid #bbb; border-radius: 6px; background: white; cursor: pointer; }.task-check[aria-pressed="true"] { border-color: var(--green-dark); background: var(--green-dark); box-shadow: inset 0 0 0 4px white; }.task-due { color: #777; font-size: 12px; }.overdue-task .task-due { color: #b65b20; font-weight: 700; }.task-done > span:nth-child(2) { text-decoration: line-through; opacity: .55; }.task-done .status-chip { opacity: .55; }
@media (max-width: 760px) { .page-intro { font-size: 13px; margin: -10px 0 18px; }.attention-panel { padding: 16px; }.attention-panel .panel-heading-row { align-items: flex-start; }.attention-list { grid-template-columns: 1fr; gap: 8px; margin-top: 12px; }.attention-list button { padding: 11px; gap: 9px; }.attention-list small { font-size: 11px; }.attention-action { font-size: 11px; }.directory-page .page-heading { align-items: flex-start; }.directory-page .page-heading h1 { font-size: 25px; }.directory-page .page-heading .date-select { height: 42px; padding: 0 10px; border-radius: 14px; }.directory-page .page-heading .date-select select { font-size: 12px; }.directory-grid,.report-grid { grid-template-columns: 1fr; gap: 10px; }.department-detail,.report-card,.allocation-panel,.report-note { padding: 17px; }.detail-head h2 { font-size: 20px; }.detail-score { font-size: 30px; }.detail-stats { gap: 24px; }.workforce-metrics { grid-template-columns: 1fr 1fr; }.allocation-row { grid-template-columns: 100px 1fr 38px; gap: 8px; padding: 14px 0; font-size: 12px; }.allocation-row small { font-size: 10px; }.capacity-legend { font-size: 10px; }.report-card { min-height: 215px; }.task-list { padding: 2px 14px; }.task-row { grid-template-columns: 20px minmax(0,1fr) auto; gap: 9px; padding: 12px 0; }.task-row > span:nth-child(2) { grid-column: 2 / 4; }.task-row .task-due { grid-column: 2; }.task-row .status-chip { grid-column: 3; grid-row: 3; font-size: 10px; padding: 5px; } }

/* Added pages use the shared brand and typography tokens. */
.eyebrow, .attention-action, .capacity-legend, .task-row small, .task-due, .report-card small { font-family: var(--font-body); font-size: var(--type-desktop-caption); line-height: var(--type-desktop-caption-line); }
.page-intro, .attention-panel .muted-label, .attention-list small, .detail-action, .role-select-label, .report-note p { font-family: var(--font-body); font-size: var(--type-desktop-paragraph-small); line-height: var(--type-desktop-paragraph-small-line); }
.detail-head h2, .panel-title { font-family: var(--font-heading); }
.detail-head h2 { font-size: var(--type-desktop-h6); line-height: var(--type-desktop-h6-line); }
.detail-score, .report-card > strong { font-family: var(--font-heading); font-size: var(--type-desktop-h5); line-height: var(--type-desktop-h5-line); }
.detail-stats, .allocation-row, .report-card p, .role-select-label, .task-row { color: var(--brand-grey-800); }
.allocation-row, .task-row .status-chip { font-family: var(--font-body); font-size: var(--type-desktop-caption); line-height: var(--type-desktop-caption-line); }
.eyebrow, .page-intro, .attention-panel .muted-label, .attention-list small, .detail-stats, .detail-action, .capacity-legend, .allocation-row small, .report-card p, .report-card small, .report-note p, .task-row small, .task-due { color: var(--brand-grey-700); }
.attention-list button { border-color: var(--brand-grey-200); background: var(--brand-white); }
.attention-list button:hover { border-color: var(--brand-orange-200); background: var(--brand-orange-100); }
.attention-icon { background: var(--brand-orange-100); color: var(--brand-orange-700); }
.risk-icon { background: var(--brand-orange-100); color: var(--brand-orange-700); }
.attention-action, .department-detail .text-button { color: var(--brand-green-700); }
.detail-bar, .report-track { background: var(--brand-grey-200); }
.detail-bar i, .report-track i, .capacity-legend i { background: var(--brand-green-700); }
.needs-review .detail-bar i, .progress-track i.capacity-high { background: var(--brand-orange-500); }
.detail-stats { border-color: var(--brand-grey-200); }
.detail-stats b, .role-select-label, .role-select-label select { color: var(--brand-black); }
.report-spark i { background: var(--brand-green-300); }
.report-spark i:last-child { background: var(--brand-green-700); }
.role-select-label select { border-color: var(--brand-grey-300); background: var(--brand-white); }
.task-row { border-color: var(--brand-grey-200); }
.task-check { border-color: var(--brand-grey-500); background: var(--brand-white); }
.task-check[aria-pressed="true"] { border-color: var(--brand-green-700); background: var(--brand-green-700); }
.overdue-task .task-due { color: var(--brand-orange-700); }
@media (max-width: 760px) {
  .directory-page .page-heading h1 { font-size: var(--type-mobile-h3); line-height: var(--type-mobile-h3-line); }
  .eyebrow, .attention-action, .capacity-legend, .task-row small, .task-due, .report-card small { font-size: var(--type-mobile-caption); line-height: var(--type-mobile-caption-line); }
  .page-intro, .attention-panel .muted-label, .attention-list small, .detail-action, .report-note p { font-size: var(--type-mobile-paragraph-small); line-height: var(--type-mobile-paragraph-small-line); }
  .detail-head h2 { font-size: var(--type-mobile-h6); line-height: var(--type-mobile-h6-line); }
  .detail-score, .report-card > strong { font-size: var(--type-mobile-h5); line-height: var(--type-mobile-h5-line); }
  .allocation-row, .task-row .status-chip { font-size: var(--type-mobile-caption); line-height: var(--type-mobile-caption-line); }
}

.overview-title h1 { font-family: var(--font-heading); }
.overview-title .page-intro { margin: 8px 0 0; }
.overview-title .eyebrow { margin-bottom: 4px; }
.overview-heading { justify-content: space-between; align-items: center; }
.attention-panel { margin: 14px 0; box-shadow: var(--shadow); }
.attention-count { display: inline-block; margin-left: 8px; padding: 4px 8px; border-radius: 999px; background: var(--brand-orange-100); color: var(--brand-orange-800); font: 500 var(--type-desktop-caption)/var(--type-desktop-caption-line) var(--font-body); vertical-align: middle; }
.period-note { color: var(--brand-grey-700); font: 400 var(--type-desktop-paragraph-small)/var(--type-desktop-paragraph-small-line) var(--font-body); }
.department-panel > .muted-label { margin: 8px 0 0; }
.table-subtext { display: block; margin-top: 5px; color: var(--brand-grey-700); font: 400 var(--type-desktop-caption)/var(--type-desktop-caption-line) var(--font-body); white-space: normal; }
.project-table td { height: auto; min-height: 72px; padding-top: 10px; padding-bottom: 10px; white-space: normal; }
.table-shell { overflow-x: auto; }
.project-table { min-width: 1080px; }
.health-filter { display: flex; align-items: center; gap: 9px; border: 1px solid transparent; border-radius: 10px; padding: 4px; background: transparent; color: var(--brand-grey-800); font: 400 var(--type-desktop-paragraph-small)/var(--type-desktop-paragraph-small-line) var(--font-body); text-align: left; cursor: pointer; }
.health-filter:hover, .health-filter.selected { border-color: var(--brand-grey-300); background: var(--brand-grey-100); }
.health-filter i { width: 20px; height: 20px; display: inline-block; border-radius: 6px; }
.health-help { position: relative; color: var(--brand-green-800); font: 500 var(--type-desktop-caption)/var(--type-desktop-caption-line) var(--font-body); }
.health-help summary { cursor: pointer; }
.health-help p { position: absolute; z-index: 5; right: 0; width: 280px; padding: 12px; border: 1px solid var(--brand-grey-300); border-radius: 12px; background: var(--brand-white); box-shadow: var(--shadow); color: var(--brand-grey-800); font: 400 var(--type-desktop-caption)/var(--type-desktop-caption-line) var(--font-body); }
.report-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 0 0 16px; }
.report-controls label { display: grid; gap: 6px; color: var(--brand-grey-700); font: 500 var(--type-desktop-caption)/var(--type-desktop-caption-line) var(--font-body); }
.report-controls input, .report-controls select { min-height: 42px; padding: 0 10px; border: 1px solid var(--brand-grey-300); border-radius: 10px; background: var(--brand-white); color: var(--brand-black); font: 400 var(--type-desktop-paragraph-small)/var(--type-desktop-paragraph-small-line) var(--font-body); }
.report-controls .create-project-button { min-height: 42px; height: 42px; }
.report-drilldown { margin-top: 12px; padding: 0; color: var(--brand-green-800); font: 500 var(--type-desktop-caption)/var(--type-desktop-caption-line) var(--font-body); }
.employee-panel { max-width: 1100px; margin-top: 14px; padding: 24px; }
.employee-list > div { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr auto; align-items: center; gap: 16px; min-height: 64px; border-bottom: 1px solid var(--brand-grey-200); color: var(--brand-grey-700); font: 400 var(--type-desktop-paragraph-small)/var(--type-desktop-paragraph-small-line) var(--font-body); }
.employee-list > div:last-child { border-bottom: 0; }.employee-list b, .employee-list strong { color: var(--brand-black); font-weight: 600; }
.employee-list .text-button { padding: 0; color: var(--brand-green-800); font: 500 var(--type-desktop-caption)/var(--type-desktop-caption-line) var(--font-body); }
.task-row { grid-template-columns: 22px minmax(180px,1fr) 100px 76px 100px 130px 128px; }
.task-priority, .task-assignee { color: var(--brand-grey-700); font: 400 var(--type-desktop-caption)/var(--type-desktop-caption-line) var(--font-body); }
.task-priority { padding: 4px 7px; border-radius: 999px; background: var(--brand-grey-100); text-align: center; }
.task-state { min-width: 0; height: 34px; border: 1px solid var(--brand-grey-300); border-radius: 8px; background: var(--brand-white); color: var(--brand-grey-800); font: 400 var(--type-desktop-caption)/var(--type-desktop-caption-line) var(--font-body); }
@media (max-width: 760px) {
  .overview-heading { align-items: flex-start; }
  .overview-title { max-width: 60%; min-width: 0; }
  .overview-title h1 { font-size: var(--type-mobile-h4); line-height: var(--type-mobile-h4-line); }
  .attention-count { font-size: var(--type-mobile-caption); line-height: var(--type-mobile-caption-line); }
  .table-subtext { font-size: var(--type-mobile-caption); line-height: var(--type-mobile-caption-line); }
  .health-filter { font-size: var(--type-mobile-paragraph-small); line-height: var(--type-mobile-paragraph-small-line); }
  .health-help p { font-size: var(--type-mobile-caption); line-height: var(--type-mobile-caption-line); }
  .report-controls { display: grid; grid-template-columns: 1fr 1fr; }
  .report-controls label, .report-controls input, .report-controls select { min-width: 0; width: 100%; }
  .employee-panel { padding: 16px; }
  .employee-list > div { grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 0; }
  .employee-list .text-button { justify-self: start; }
  .task-row { grid-template-columns: 20px 1fr 1fr; }
  .task-row > span:nth-child(2) { grid-column: 2 / 4; grid-row: 1; }
  .task-row .task-due { grid-column: 2; grid-row: 2; }
  .task-priority { grid-column: 3; grid-row: 2; }
  .task-assignee { grid-column: 2; grid-row: 3; }
  .task-row .status-chip { grid-column: 3; grid-row: 3; }
  .task-state { grid-column: 2 / 4; grid-row: 4; }
  .project-table { min-width: 0; }
  .table-shell { overflow: visible; }
}

/* Shared controls and dense workspace patterns, using the supplied brand/type tokens. */
.topbar { position: sticky; top: 0; z-index: 15; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px); }
.topbar-actions { gap: 16px; }
.top-divider { margin-left: 0; }
.icon-action { width: 46px; min-width: 46px; padding: 0; border-radius: 14px; box-shadow: none; }
.icon-action svg { width: 22px; height: 22px; }
.count-badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px; border: 2px solid var(--surface); border-radius: 999px; background: var(--status-danger); color: var(--brand-white); font: 600 var(--type-desktop-caption)/1 var(--font-body); }
.search-launch { gap: 8px; height: 46px; padding: 0 12px; border: 1px solid var(--brand-grey-300); border-radius: 14px; box-shadow: none; color: var(--brand-grey-700); }
.search-launch kbd, .search-dialog kbd { padding: 2px 5px; border: 1px solid var(--brand-grey-300); border-radius: 5px; background: var(--brand-grey-100); color: var(--brand-grey-700); font: 400 var(--type-desktop-caption)/var(--type-desktop-caption-line) var(--font-body); }
.global-create { min-width: 132px; padding: 0 18px; }
.profile-button { padding: 5px 8px; border-radius: 14px; }.profile-button:hover { background: var(--brand-grey-200); }.profile-copy b { font: 600 var(--type-desktop-paragraph-medium)/var(--type-desktop-paragraph-medium-line) var(--font-heading); }
:focus-visible { outline: 3px solid var(--brand-blue-500); outline-offset: 3px; }
.nav-item.active { box-shadow: inset 4px 0 0 var(--brand-green-800); }
.metric-card[role="link"] { cursor: pointer; }
.overview-metrics .metric-content h2 { font: 500 var(--type-desktop-paragraph-small)/var(--type-desktop-paragraph-small-line) var(--font-heading); }
.overview-metrics .metric-content strong { font: 600 var(--type-desktop-h5)/var(--type-desktop-h5-line) var(--font-heading); }
.overview-metrics .hero-metric .metric-content strong { color: var(--brand-green-800); font: 600 var(--type-desktop-h4)/var(--type-desktop-h4-line) var(--font-heading); }
.hero-metric { border: 1px solid var(--brand-green-300); background: var(--brand-green-100); }
.metric-change { display: flex; align-items: center; gap: 5px; font: 500 var(--type-desktop-caption)/var(--type-desktop-caption-line) var(--font-body); }
.metric-change.positive { color: var(--status-success); }
.metric-spark { display: flex; align-items: end; gap: 3px; width: 92px; height: 21px; margin-top: 8px; }
.metric-spark i { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: var(--brand-green-500); }
.metric-spark i:nth-child(odd) { background: var(--brand-green-300); }
.metric-target { display: block; margin-top: 4px; color: var(--brand-grey-700); font: 400 var(--type-desktop-caption)/var(--type-desktop-caption-line) var(--font-body); }
.segmented-projects { position: relative; display: flex; height: 7px; overflow: hidden; margin-top: 9px; border-radius: 999px; background: var(--brand-grey-200); }
.segmented-projects .segment-active { width: 60%; background: var(--brand-green-700); }.segmented-projects .segment-complete { width: 40%; background: var(--brand-grey-500); }
.overview-metrics .metric-card { min-height: 192px; }
.attention-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
.attention-project { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--brand-grey-200); border-inline-start: 4px solid var(--status-danger); border-radius: 14px; background: var(--brand-white); text-align: left; }
.attention-project button { border: 0; background: transparent; box-shadow: none; }
.attention-project button:hover { border-color: transparent; background: transparent; transform: none; box-shadow: none; }
.attention-project.risk-project { border-inline-start-color: var(--status-warning); }
.attention-head, .attention-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.attention-project-name { border: 0; padding: 0; background: transparent; color: var(--brand-black); font: 600 var(--type-desktop-paragraph-medium)/var(--type-desktop-paragraph-medium-line) var(--font-heading); cursor: pointer; text-align: left; }
.attention-project-name:hover { text-decoration: underline; }
.attention-project .status-chip i { display: inline-grid; flex: 0 0 14px; width: 14px; height: 14px; place-items: center; border-radius: 50%; background: var(--brand-orange-700); color: #fff; font: 700 10px/1 var(--font-body); }
.attention-progress { height: 8px; overflow: hidden; border-radius: 999px; background: var(--brand-grey-200); }.attention-progress i { display: block; width: var(--progress); height: 100%; border-radius: inherit; background: var(--brand-orange-700); }
.attention-foot strong, .overdue-link { color: var(--brand-grey-800); font: 500 var(--type-desktop-paragraph-small)/var(--type-desktop-paragraph-small-line) var(--font-body); }
.attention-foot em { display: inline-grid; min-width: 28px; height: 28px; place-items: center; border-radius: 8px; background: var(--brand-orange-100); color: var(--brand-orange-800); font-style: normal; }
.attention-foot small { display: inline-flex; align-items: center; gap: 5px; color: var(--brand-grey-700); font: 400 var(--type-desktop-caption)/var(--type-desktop-caption-line) var(--font-body); }
.attention-foot .avatar { width: 24px; height: 24px; }.attention-reason { color: var(--brand-grey-700); font: 400 var(--type-desktop-caption)/var(--type-desktop-caption-line) var(--font-body); }
.overdue-link { display: inline-flex; align-items: center; gap: 7px; border: 0; padding: 0; background: transparent; cursor: pointer; }.overdue-link:hover { color: var(--status-danger); }
.segmented-filter, .view-switch, .project-filter-chips { display: inline-flex; align-items: center; gap: 6px; padding: 3px; border: 1px solid var(--brand-grey-300); border-radius: 11px; background: var(--brand-white); }
.segmented-filter button, .view-switch button, .project-filter-chips button { border: 0; border-radius: 8px; padding: 6px 9px; background: transparent; color: var(--brand-grey-700); font: 500 var(--type-desktop-caption)/var(--type-desktop-caption-line) var(--font-body); cursor: pointer; }
.segmented-filter button.active, .view-switch button.active, .project-filter-chips button.active { background: var(--brand-black); color: var(--brand-white); }
.trend-current-label { color: var(--brand-grey-700); font: 400 var(--type-desktop-paragraph-small)/var(--type-desktop-paragraph-small-line) var(--font-body); }
.chart-points circle { cursor: help; }.chart-points .highlight-point { fill: var(--brand-green-500); stroke: var(--brand-green-800); }
.department-row { grid-template-columns: minmax(118px,160px) 1fr 48px; }
.department-row span { display: grid; gap: 3px; }.department-row small { color: var(--brand-grey-700); font: 400 var(--type-desktop-caption)/var(--type-desktop-caption-line) var(--font-body); }
.department-panel .progress-track { position: relative; overflow: visible; }
.department-panel .progress-track::after { position: absolute; z-index: 2; top: -4px; bottom: -4px; left: 84%; border-left: 2px dashed var(--brand-black); content: ""; }
.department-panel .progress-track i { background: var(--brand-blue-500); }.department-row[data-score="92"] .progress-track i, .department-row[data-score="88"] .progress-track i { background: var(--status-success); }
.attention-count { white-space: nowrap; }
.project-view-controls, .task-view-tools, .department-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 16px; }
.project-filter-chips { margin-left: auto; }.project-filter-chips button { padding-inline: 10px; }
.saved-view, .department-tools label { display: flex; align-items: center; gap: 8px; color: var(--brand-grey-700); font: 400 var(--type-desktop-caption)/var(--type-desktop-caption-line) var(--font-body); }
.saved-view select, .department-tools select { height: 36px; border: 1px solid var(--brand-grey-300); border-radius: 9px; padding: 0 9px; background: var(--brand-white); color: var(--brand-black); font: 400 var(--type-desktop-caption)/var(--type-desktop-caption-line) var(--font-body); }
.select-all-projects { display: flex; align-items: center; gap: 6px; color: var(--brand-grey-700); font: 400 var(--type-desktop-caption)/var(--type-desktop-caption-line) var(--font-body); }
.project-table thead th { padding: 0 8px; }.sort-trigger { border: 0; padding: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }.sort-trigger:hover { color: var(--brand-green-800); }
.project-table { width: 100%; min-width: 0; table-layout: fixed; }
.project-table th { padding: 0 20px; white-space: normal; }
.project-table th:nth-child(1) { width: 21%; }
.project-table th:nth-child(2) { width: 13%; }
.project-table th:nth-child(3) { width: 15%; }
.project-table th:nth-child(4) { width: 20%; }
.project-table th:nth-child(5) { width: 17%; }
.project-table th:nth-child(6) { width: 14%; }
.project-table td { min-width: 0; padding: 16px 20px; overflow-wrap: anywhere; vertical-align: middle; }
.project-table td:first-child { display: table-cell; white-space: normal; }
.project-table td:first-child .project-select-checkbox { margin: 0 12px 0 0; vertical-align: middle; }
.project-table td:first-child .project-initial { margin-right: 12px; vertical-align: middle; }
.project-table td:first-child b { display: inline-block; width: calc(100% - 92px); min-width: 0; vertical-align: middle; white-space: normal; overflow-wrap: anywhere; }
.project-table .table-progress { width: min(58%, 180px); min-width: 72px; margin-right: 6px; }
.project-table .status-chip { max-width: 100%; }
.project-table .deadline { max-width: 100%; align-items: flex-start; gap: 8px; }
.project-table .deadline svg { flex: 0 0 15px; }
.project-table .row-menu { position: absolute; right: 10px; bottom: 4px; margin: 0; }
.project-table td:last-child { position: relative; padding: 14px 42px 30px 20px; }
.table-pagination { padding: 0 20px 14px; }
.portfolio-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.portfolio-heading .section-title { margin-bottom: 0; }
.table-shell { padding: 0 24px 12px; }
.portfolio-section .table-shell { background: linear-gradient(to bottom, #ebebeb 0 53px, var(--brand-white) 53px); }
.project-table thead th:first-child { border-top-left-radius: 12px; }
.project-table thead th:last-child { border-top-right-radius: 12px; }
.project-table .status-chip i { display: inline-grid; flex: 0 0 16px; width: 16px; height: 16px; place-items: center; border-radius: 50%; color: var(--brand-white); font: 700 10px/1 var(--font-body); text-align: center; }
.project-table .status-green i, .project-table .status-pale i { background: var(--status-success); }
.project-table .status-orange i, .project-table .status-delayed i { background: var(--status-danger); }
.project-initial { display: inline-grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border-radius: 10px; background: var(--brand-green-100); color: var(--brand-green-800); font: 600 var(--type-desktop-paragraph-small)/var(--type-desktop-paragraph-small-line) var(--font-heading); }
.project-table tr:nth-child(2) .project-initial { background: var(--brand-blue-100); color: var(--brand-blue-600); }.project-table tr:nth-child(3) .project-initial { background: var(--brand-orange-100); color: var(--brand-orange-800); }
.project-table .table-progress { width: 58%; margin-right: 6px; }.project-table .table-subtext { font: 400 var(--type-desktop-paragraph-small)/var(--type-desktop-paragraph-small-line) var(--font-body); }
.project-table tbody tr { cursor: pointer; }.project-table tbody tr:hover { background: var(--brand-grey-100); }.project-table tbody tr:focus-visible { outline: 3px solid var(--brand-blue-500); outline-offset: -3px; }
.project-select-checkbox, #select-all-projects { width: 16px; height: 16px; accent-color: var(--brand-green-700); }
.row-menu { position: relative; display: inline-block; margin-left: 8px; }.row-menu summary { cursor: pointer; list-style: none; color: var(--brand-grey-700); font-size: var(--type-desktop-paragraph-large); }.row-menu summary::-webkit-details-marker { display: none; }
.row-menu button { display: block; width: 150px; padding: 8px 10px; border: 0; background: var(--brand-white); color: var(--brand-grey-800); text-align: left; font: 400 var(--type-desktop-caption)/var(--type-desktop-caption-line) var(--font-body); cursor: pointer; }.row-menu button:hover { background: var(--brand-grey-100); }
.bulk-actions, .table-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 8px; color: var(--brand-grey-700); font: 400 var(--type-desktop-caption)/var(--type-desktop-caption-line) var(--font-body); }.bulk-actions button, .table-pagination button { border: 1px solid var(--brand-grey-300); border-radius: 8px; padding: 6px 9px; background: var(--brand-white); color: var(--brand-grey-800); font: inherit; cursor: pointer; }.table-pagination { justify-content: flex-start; margin-top: 12px; }
.project-board { display: grid; grid-template-columns: repeat(4,minmax(170px,1fr)); gap: 12px; overflow-x: auto; }.project-board > section { min-height: 170px; padding: 12px; border-radius: 12px; background: var(--brand-grey-100); }.project-board h3 { font: 600 var(--type-desktop-paragraph-small)/var(--type-desktop-paragraph-small-line) var(--font-heading); }
.board-project, .timeline-project { width: 100%; margin: 5px 0; padding: 11px; border: 1px solid var(--brand-grey-200); border-radius: 10px; background: var(--brand-white); color: var(--brand-black); text-align: left; font: 400 var(--type-desktop-paragraph-small)/var(--type-desktop-paragraph-small-line) var(--font-body); cursor: pointer; }
.project-timeline { display: grid; gap: 8px; }.project-timeline .timeline-project { border-inline-start: 4px solid var(--brand-blue-500); }.project-timeline .timeline-project:hover, .board-project:hover { border-color: var(--brand-green-600); }
.project-table[hidden], .project-board[hidden], .project-timeline[hidden] { display: none !important; }
.project-board { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); overflow: visible; }
.project-board-column { min-width: 0; padding: 14px; border-radius: 14px; background: var(--brand-grey-100); }
.project-board-column h3 { margin: 0 0 10px; }
.board-project { display: grid; gap: 10px; min-width: 0; margin: 0 0 8px; padding: 14px; border-radius: 12px; box-shadow: var(--shadow); }
.board-project-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; min-width: 0; }
.board-project-top > b { min-width: 0; overflow-wrap: anywhere; font: 600 var(--type-desktop-paragraph-small)/var(--type-desktop-paragraph-small-line) var(--font-heading); }
.board-project-status { flex: 0 0 auto; width: auto; max-width: 50%; padding: 4px 8px; font-size: 11px; }
.board-project-status i { display: inline-grid; flex: 0 0 14px; width: 14px; height: 14px; place-items: center; font: 700 9px/1 var(--font-body); }
.board-project-track { display: block; height: 7px; overflow: hidden; border-radius: 999px; background: var(--brand-grey-200); }
.board-project-track i { display: block; width: var(--progress); height: 100%; border-radius: inherit; background: var(--brand-green-600); }
.board-project > small { color: var(--brand-grey-700); font: 400 var(--type-desktop-caption)/var(--type-desktop-caption-line) var(--font-body); }
.board-empty-state { grid-column: 1 / -1; border-radius: 14px; background: var(--brand-grey-100); }
.project-drawer, .search-dialog, .report-preview, .task-dialog { width: min(560px, calc(100vw - 32px)); max-height: min(85vh, 760px); overflow: auto; border: 1px solid var(--brand-grey-300); border-radius: 20px; padding: 28px; background: var(--brand-white); color: var(--brand-black); box-shadow: 0 24px 90px rgb(22 22 22 / 22%); }
.project-drawer[open], .search-dialog[open], .report-preview[open], .task-dialog[open] { animation: page-in .2s ease both; }
.project-drawer::backdrop, .search-dialog::backdrop, .report-preview::backdrop, .task-dialog::backdrop { background: rgb(22 22 22 / 44%); backdrop-filter: blur(3px); }
.project-drawer h2, .report-preview h2 { font: 600 var(--type-desktop-h5)/var(--type-desktop-h5-line) var(--font-heading); }
.project-drawer p, .drawer-timeline { color: var(--brand-grey-800); font: 400 var(--type-desktop-paragraph-small)/var(--type-desktop-paragraph-small-line) var(--font-body); }
.drawer-timeline { margin-top: 18px; padding: 16px; border-radius: 12px; background: var(--brand-grey-100); }.drawer-timeline p { margin: 8px 0; }
.search-dialog { width: min(640px, calc(100vw - 30px)); padding: 18px; }.search-dialog form { display: grid; grid-template-columns: 1fr auto; gap: 9px; align-items: center; }.search-dialog form label { grid-column: 1 / -1; font: 600 var(--type-desktop-paragraph-medium)/var(--type-desktop-paragraph-medium-line) var(--font-heading); }.search-dialog input { grid-column: 1; height: 48px; border: 1px solid var(--brand-grey-300); border-radius: 10px; padding: 0 12px; font: 400 var(--type-desktop-paragraph-medium)/var(--type-desktop-paragraph-medium-line) var(--font-body); }.search-results { display: grid; gap: 4px; margin-top: 12px; }.search-results button { display: flex; justify-content: space-between; padding: 10px; border: 0; border-radius: 8px; background: var(--brand-white); color: var(--brand-black); text-align: left; font: 400 var(--type-desktop-paragraph-small)/var(--type-desktop-paragraph-small-line) var(--font-body); cursor: pointer; }.search-results button:hover, .search-results button:focus-visible { background: var(--brand-grey-100); }.search-results small, .search-hint { color: var(--brand-grey-700); font: 400 var(--type-desktop-caption)/var(--type-desktop-caption-line) var(--font-body); }.search-hint { margin: 12px 0 0; }
.project-dialog h2, .task-dialog h2 { font-family: var(--font-heading); }.project-dialog .dialog-intro, .task-dialog .dialog-intro { margin: 0; color: var(--brand-grey-700); font: 400 var(--type-desktop-paragraph-small)/var(--type-desktop-paragraph-small-line) var(--font-body); }.project-dialog label small { color: var(--brand-grey-700); font: 400 var(--type-desktop-caption)/var(--type-desktop-caption-line) var(--font-body); }.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }.secondary-button { min-height: 40px; border: 1px solid var(--brand-grey-300); border-radius: 10px; padding: 0 14px; background: var(--brand-white); color: var(--brand-grey-800); font: 500 var(--type-desktop-paragraph-small)/var(--type-desktop-paragraph-small-line) var(--font-body); cursor: pointer; }.form-error { color: var(--status-danger); font: 400 var(--type-desktop-paragraph-small)/var(--type-desktop-paragraph-small-line) var(--font-body); }
.department-tools { justify-content: flex-end; }.department-comparison { margin-top: 12px; padding: 20px; }.department-compare-row { display: grid; grid-template-columns: 160px 1fr 60px; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--brand-grey-200); font: 400 var(--type-desktop-paragraph-small)/var(--type-desktop-paragraph-small-line) var(--font-body); }.department-compare-row .progress-track { position: relative; }.department-compare-row .progress-track::after { position: absolute; top: -3px; bottom: -3px; left: 84%; border-left: 2px dashed var(--brand-black); content: ""; }
.employee-filters { display: grid; grid-template-columns: 1.3fr repeat(3,1fr); gap: 8px; margin: 12px 0; }.employee-filters input, .employee-filters select { min-width: 0; height: 40px; border: 1px solid var(--brand-grey-300); border-radius: 9px; padding: 0 9px; background: var(--brand-white); color: var(--brand-black); font: 400 var(--type-desktop-caption)/var(--type-desktop-caption-line) var(--font-body); }
.employee-list > div { position: relative; }.employee-avatar { width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--brand-blue-100); color: var(--brand-blue-600); font: 600 var(--type-desktop-caption)/var(--type-desktop-caption-line) var(--font-heading); }
.employee-row-meta { display: grid; gap: 5px; }.employee-mini-bar { width: 70px; height: 5px; overflow: hidden; border-radius: 999px; background: var(--brand-grey-200); }.employee-mini-bar i { display: block; height: 100%; width: var(--progress); background: var(--brand-orange-500); }
.available-team { margin-top: 18px; padding: 14px; border-radius: 12px; background: var(--brand-blue-100); }.available-team h3 { display: flex; justify-content: space-between; font: 600 var(--type-desktop-paragraph-small)/var(--type-desktop-paragraph-small-line) var(--font-heading); }.available-team > div { display: flex; gap: 10px; justify-content: space-between; padding: 8px 0; color: var(--brand-grey-800); font: 400 var(--type-desktop-caption)/var(--type-desktop-caption-line) var(--font-body); }.available-team span { color: var(--brand-grey-700); }
.allocation-row[data-utilization] .progress-track { background: var(--brand-blue-100); }.allocation-row[data-utilization] .progress-track i { background: var(--brand-green-700); }.allocation-row[data-utilization="94"] .progress-track i, .allocation-row[data-utilization="92"] .progress-track i { background: var(--status-danger); }
.utilization-callout { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; padding: 14px; border-inline-start: 4px solid var(--status-warning); border-radius: 10px; background: var(--brand-orange-100); }.utilization-callout p { flex: 1; margin: 0; color: var(--brand-grey-800); font: 400 var(--type-desktop-paragraph-small)/var(--type-desktop-paragraph-small-line) var(--font-body); }.callout-icon { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: var(--brand-orange-500); color: var(--brand-white); }
.heatmap-panel { margin-top: 14px; }.allocation-heatmap { display: grid; grid-template-columns: 110px 1fr; gap: 8px 10px; margin-top: 14px; }.heatmap-labels, .heatmap-week-labels { display: grid; grid-template-rows: repeat(4,22px); align-content: center; gap: 6px; color: var(--brand-grey-700); font: 400 var(--type-desktop-caption)/var(--type-desktop-caption-line) var(--font-body); }.heatmap-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 6px; }.heatmap-grid span { height: 22px; border-radius: 5px; background: color-mix(in srgb, var(--brand-orange-500) var(--load), var(--brand-green-100)); }.heatmap-week-labels { grid-column: 2; grid-template-columns: repeat(6,1fr); grid-template-rows: none; text-align: center; }
.report-exploration { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; margin: 14px 0; padding: 18px; }.report-templates, .report-recent, .schedule-report { display: grid; align-content: start; gap: 8px; }.report-templates { grid-template-columns: repeat(3,auto); }.report-templates > div { grid-column: 1 / -1; }.report-templates button, .report-recent button { border: 1px solid var(--brand-grey-300); border-radius: 9px; padding: 9px; background: var(--brand-white); color: var(--brand-grey-800); font: 400 var(--type-desktop-caption)/var(--type-desktop-caption-line) var(--font-body); text-align: left; cursor: pointer; }.report-recent h3 { margin: 0; font: 600 var(--type-desktop-paragraph-small)/var(--type-desktop-paragraph-small-line) var(--font-heading); }.report-recent button { display: flex; justify-content: space-between; gap: 8px; }.report-recent small { color: var(--brand-grey-700); }.schedule-report label { display: grid; gap: 6px; font: 500 var(--type-desktop-caption)/var(--type-desktop-caption-line) var(--font-body); }.schedule-report input, .schedule-report select { min-width: 0; height: 38px; border: 1px solid var(--brand-grey-300); border-radius: 8px; padding: 0 8px; font: 400 var(--type-desktop-caption)/var(--type-desktop-caption-line) var(--font-body); }.schedule-report .create-project-button { height: 38px; }
.preview-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }.preview-metrics b { display: grid; gap: 5px; padding: 12px; border-radius: 10px; background: var(--brand-grey-100); color: var(--brand-grey-700); font: 400 var(--type-desktop-caption)/var(--type-desktop-caption-line) var(--font-body); }.preview-metrics strong { color: var(--brand-black); font: 600 var(--type-desktop-h6)/var(--type-desktop-h6-line) var(--font-heading); }
.health-legend { gap: 6px; }.health-legend b { margin-left: auto; color: var(--brand-grey-700); font: 400 var(--type-desktop-caption)/var(--type-desktop-caption-line) var(--font-body); }.health-legend .healthy { display: grid; place-items: center; background: var(--status-success); color: var(--brand-white); font-size: var(--type-desktop-caption); }.health-legend .risk { display: grid; place-items: center; background: var(--status-warning); color: var(--brand-black); font-size: var(--type-desktop-caption); }.health-legend .delayed { display: grid; place-items: center; background: var(--status-danger); color: var(--brand-white); font-size: var(--type-desktop-caption); }
.status-delayed { background: var(--brand-orange-100); color: var(--brand-orange-900); }.status-delayed i { background: var(--brand-orange-700); color: var(--brand-white); }
.status-blue { background: var(--brand-blue-100); color: var(--brand-blue-600); }
.status-blue i { background: var(--brand-blue-600); }
.donut { background: conic-gradient(var(--status-success) 0 70%, var(--status-warning) 70% 90%, var(--status-danger) 90% 100%); }
.milestone-row { border-inline-start: 3px solid var(--brand-grey-300); padding-inline-start: 8px; }.milestone-row:has(.tag-orange) { border-inline-start-color: var(--status-danger); }.milestone-row:has(.tag-green) { border-inline-start-color: var(--status-success); }.milestone-owner { width: 24px; height: 24px; }
.table-pagination button:disabled { opacity: .5; cursor: default; }
@media (max-width: 760px) {
  .topbar { background: var(--surface); }.topbar-actions { gap: 5px; }.search-launch { width: 42px; min-width: 42px; padding: 0; justify-content: center; }.search-launch kbd { display: none; }.global-create { min-width: 42px; width: 42px; height: 42px; padding: 0; font-size: 0; }.global-create span { font-size: var(--type-mobile-h5); }.icon-action { width: 38px; min-width: 38px; height: 40px; }.profile-button { gap: 4px; }.profile-copy { display: none; }
  .overview-title { max-width: none; }.overview-title h1 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-size: var(--type-mobile-h4); line-height: var(--type-mobile-h4-line); }.heading-date { color: var(--brand-grey-700); font: 400 var(--type-mobile-paragraph-small)/var(--type-mobile-paragraph-small-line) var(--font-body); }
  .overview-metrics .metric-card { min-height: 160px; }.overview-metrics .metric-content strong { font-size: var(--type-mobile-h5); line-height: var(--type-mobile-h5-line); }.overview-metrics .hero-metric .metric-content strong { font-size: var(--type-mobile-h4); line-height: var(--type-mobile-h4-line); }.metric-change, .metric-target { font-size: var(--type-mobile-caption); line-height: var(--type-mobile-caption-line); }
  .attention-list { grid-template-columns: 1fr; }.attention-project-name { font-size: var(--type-mobile-paragraph-medium); line-height: var(--type-mobile-paragraph-medium-line); }.attention-foot strong, .overdue-link { font-size: var(--type-mobile-paragraph-small); line-height: var(--type-mobile-paragraph-small-line); }
  .project-filter-chips { margin-left: 0; overflow-x: auto; max-width: 100%; }.project-view-controls { align-items: flex-start; }.saved-view { flex-wrap: wrap; }.project-board { grid-template-columns: repeat(4,minmax(220px,1fr)); }.project-table tbody tr { min-height: 48px; }.project-table td { font-size: var(--type-mobile-paragraph-small); line-height: var(--type-mobile-paragraph-small-line); }.project-table .table-subtext { font-size: var(--type-mobile-paragraph-small); line-height: var(--type-mobile-paragraph-small-line); }.row-menu { float: right; }
  .report-exploration { grid-template-columns: 1fr; }.report-templates { grid-template-columns: repeat(3,1fr); }.report-controls { grid-template-columns: 1fr 1fr; }.employee-filters { grid-template-columns: 1fr 1fr; }.heatmap-panel { overflow: hidden; }.allocation-heatmap { grid-template-columns: 78px minmax(400px,1fr); overflow-x: auto; }.employee-list > div { grid-template-columns: 32px 1fr 1fr; }.employee-list > div > b { grid-column: 2 / 4; }.employee-avatar { grid-column: 1; grid-row: 1; }
  .project-drawer, .search-dialog, .report-preview, .task-dialog { padding: 20px; }.preview-metrics { grid-template-columns: 1fr 1fr; }
}
@media print { body > .app-shell, body > .project-dialog, body > .task-dialog, body > .search-dialog, body > .project-drawer { display: none !important; }.report-preview[open] { position: static; display: block; width: 100%; max-height: none; overflow: visible; border: 0; box-shadow: none; }.report-preview::backdrop, .report-preview .dialog-close { display: none; } }

/* Keep the project summary panels padded and contained at every column size. */
.project-bottom { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr) minmax(0, .95fr); }
.project-bottom > .panel { min-width: 0; padding-inline: 24px; }
.milestone-row { min-width: 0; gap: 10px; padding-right: 4px; }
.milestone-copy { min-width: 0; }
.milestone-tag { min-width: 0; flex: 0 0 auto; padding-inline: 12px; }
.health-content { min-width: 0; gap: 14px; }
.health-panel .donut { width: min(188px, 46%); }
.health-panel .health-legend { min-width: 0; flex: 1; white-space: normal; font-size: 13px; }
.health-panel .health-legend span { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 7px; min-width: 0; }
.health-panel .health-legend b { margin-left: 0; white-space: nowrap; font-size: 11px; }
.completion-card { gap: 14px; padding: 24px !important; }
.completion-card > div { flex: 1; min-width: 0; padding-right: 38px; }
.completion-card h2 { max-width: 100%; white-space: normal; overflow-wrap: anywhere; font-size: clamp(16px, 1.25vw, 21px); line-height: 1.25; }
.completion-card p { white-space: normal; overflow-wrap: anywhere; }

@media (max-width: 760px) {
  .project-board { grid-template-columns: minmax(0, 1fr); }
  .table-shell { padding: 0; }
  .portfolio-heading { flex-wrap: wrap; margin-bottom: 14px; }
  .project-bottom { grid-template-columns: minmax(0, 1fr); }
  .project-bottom > .panel { padding-inline: 16px; }
  .health-content { flex-wrap: wrap; justify-content: center; }
  .health-panel .donut { width: min(155px, 45%); }
  .health-panel .health-legend { flex-basis: 100%; }
  .completion-card > div { padding-right: 32px; }
}
@media (min-width: 761px) and (max-width: 1150px) {
  .project-bottom { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .completion-card { grid-column: 1 / -1; }
}

#task-board[hidden] { display: none !important; }
.task-board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; align-items: start; min-width: 0; }
.task-board-column { min-width: 0; min-height: 230px; padding: 16px; border: 1px solid var(--brand-grey-200); border-radius: 16px; background: var(--brand-grey-100); }
.task-board-column h3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 14px; font: 600 var(--type-desktop-paragraph-medium)/var(--type-desktop-paragraph-medium-line) var(--font-heading); }
.task-board-card { display: grid; gap: 9px; min-width: 0; margin-bottom: 10px; padding: 14px; border: 1px solid var(--brand-grey-200); border-radius: 12px; background: var(--brand-white); box-shadow: var(--shadow); }
.task-board-card > b { color: var(--brand-black); font: 600 var(--type-desktop-paragraph-small)/var(--type-desktop-paragraph-small-line) var(--font-heading); overflow-wrap: anywhere; }
.task-board-card > small, .task-board-card > span { color: var(--brand-grey-700); font: 400 var(--type-desktop-caption)/var(--type-desktop-caption-line) var(--font-body); overflow-wrap: anywhere; }
.task-board-card > button { justify-self: start; min-height: 32px; padding: 0 10px; border: 1px solid var(--brand-green-700); border-radius: 8px; background: var(--brand-green-100); color: var(--brand-green-800); font: 500 var(--type-desktop-caption)/var(--type-desktop-caption-line) var(--font-body); cursor: pointer; }
.task-board-card > button:hover { background: var(--brand-green-200); }
.task-board-card > button:disabled, .task-board-card > button:disabled:hover { border-color: var(--brand-grey-300); background: var(--brand-grey-100); color: var(--brand-grey-700); cursor: default; }
.task-board-empty { margin: 0; padding: 12px; border: 1px dashed var(--brand-grey-300); border-radius: 10px; color: var(--brand-grey-700); font: 400 var(--type-desktop-caption)/var(--type-desktop-caption-line) var(--font-body); }
@media (max-width: 1150px) and (min-width: 761px) { .task-board { grid-template-columns: repeat(5, minmax(205px, 1fr)); overflow-x: auto; padding-bottom: 8px; } }
@media (max-width: 760px) { .task-board { grid-template-columns: minmax(0, 1fr); gap: 10px; }.task-board-column { min-height: 0; padding: 12px; }.task-board-card { padding: 12px; } }
.task-dialog form { position: relative; display: grid; gap: 16px; padding: 6px 2px 2px; }
.task-dialog h2 { margin: 0; padding-right: 36px; font: 600 var(--type-desktop-h5)/var(--type-desktop-h5-line) var(--font-heading); letter-spacing: -.03em; }
.task-dialog .dialog-intro { margin: -8px 0 2px; color: var(--brand-grey-700); font: 400 var(--type-desktop-paragraph-small)/var(--type-desktop-paragraph-small-line) var(--font-body); }
.task-dialog form > label, .task-dialog .dialog-fields label { display: grid; gap: 7px; min-width: 0; color: var(--brand-grey-800); font: 500 var(--type-desktop-caption)/var(--type-desktop-caption-line) var(--font-body); }
.task-dialog input, .task-dialog select { width: 100%; min-width: 0; height: 44px; border: 1px solid var(--brand-grey-300); border-radius: 10px; padding: 0 12px; background: var(--brand-white); color: var(--brand-black); font: 400 var(--type-desktop-paragraph-small)/var(--type-desktop-paragraph-small-line) var(--font-body); }
.task-dialog input:focus, .task-dialog select:focus { border-color: var(--brand-blue-500); outline: 3px solid color-mix(in srgb, var(--brand-blue-500) 18%, transparent); }
.task-dialog .dialog-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.task-dialog .dialog-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 2px; }
.task-dialog .dialog-actions .create-project-button { min-height: 44px; height: 44px; padding-inline: 20px; }
.task-dialog .dialog-actions .secondary-button { min-height: 44px; }
.task-filter-select { gap: 12px; }
.task-filter-select select { min-width: 0; }
.task-filter-select > span { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; color: var(--brand-grey-700); }
.task-filter-select > span svg { width: 16px; height: 16px; }
@media (max-width: 480px) { .task-dialog .dialog-fields { grid-template-columns: 1fr; } }
.department-detail .text-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; margin: 3px 8px 0 0; padding: 0 12px; border: 1px solid var(--brand-grey-300); border-radius: 10px; background: var(--brand-white); color: var(--brand-green-800); font: 500 var(--type-desktop-caption)/1.2 var(--font-body); text-decoration: none; transition: border-color .18s, background .18s, transform .18s; }
.department-detail .text-button:hover { border-color: var(--brand-green-600); background: var(--brand-green-100); transform: translateY(-1px); }
.department-detail .text-button:focus-visible { outline: 3px solid var(--brand-blue-500); outline-offset: 2px; }
.directory-page .page-heading .date-select > span { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; color: var(--brand-grey-700); }
.directory-page .page-heading .date-select > span:first-child svg { width: 20px; height: 20px; }
.directory-page .page-heading .date-select > span:last-child svg { width: 16px; height: 16px; }
.report-drilldown { display: flex; align-items: center; gap: 8px; width: fit-content; min-height: 36px; margin: 12px 0 0; padding: 0 11px; border: 1px solid var(--brand-grey-300); border-radius: 9px; background: var(--brand-white); color: var(--brand-green-800); font: 500 var(--type-desktop-caption)/1.2 var(--font-body); }
.report-drilldown:hover { border-color: var(--brand-green-600); background: var(--brand-green-100); }
.report-drilldown:focus-visible { outline: 3px solid var(--brand-blue-500); outline-offset: 2px; }
.overview-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.overview-title-row h1 { margin: 0; }
.heading-date { display: inline-flex; align-items: center; padding: 6px 12px; border: 1px solid var(--brand-grey-300); border-radius: 999px; background: var(--brand-white); color: var(--brand-grey-700); font: 500 var(--type-desktop-caption)/var(--type-desktop-caption-line) var(--font-body); white-space: nowrap; }
@media (max-width: 760px) {
  .overview-title { max-width: none; }
  .overview-title-row { align-items: flex-start; gap: 8px; }
  .overview-title-row h1 { max-width: 100%; }
  .heading-date { padding: 4px 9px; font-size: var(--type-mobile-caption); line-height: var(--type-mobile-caption-line); }
}

/* Very narrow screens: drop the divider so the actions clear the logo. */
@media (max-width: 360px) { .top-divider { display: none; } .search-launch, .global-create { width: 38px; min-width: 38px; height: 40px; } .profile-button { padding: 0; } }

/* Team directory: keep the role apart from the department at every width. */
.employee-role::before { content: "·"; margin: 0 6px; }

/* Team directory on phones: one roomy card-like row per person. */
@media (max-width: 760px) {
  .employee-filters { margin: 16px 0 4px; }
  .employee-list > div { grid-template-columns: 36px minmax(0, 1fr) minmax(0, 1fr); align-items: start; column-gap: 12px; row-gap: 14px; padding: 24px 0; }
  .employee-list .employee-avatar { grid-area: 1 / 1 / 3 / 2; width: 36px; height: 36px; }
  .employee-list > div > b { grid-area: 1 / 2 / 2 / 4; line-height: 20px; }
  .employee-list > div > span:nth-of-type(1) { grid-area: 2 / 2 / 3 / 4; margin-top: -10px; line-height: 20px; }
  .employee-list > div > span:nth-of-type(2) { grid-area: 3 / 2; }
  .employee-list > div > span:nth-of-type(3) { grid-area: 3 / 3; }
  .employee-list > div > span:nth-of-type(n + 2) { display: grid; justify-items: start; gap: 6px; }
  .employee-list > div > span strong { font-size: var(--type-mobile-paragraph-medium); }
  .employee-list .employee-mini-bar { display: block; width: 100%; max-width: 96px; }
  .employee-list > div > .text-button { grid-area: 4 / 2 / 5 / 4; justify-self: start; min-height: 32px; }
}

/* Team directory on tablet and desktop: one aligned line per person. */
@media (min-width: 761px) {
  .employee-list { margin-top: 4px; }
  .employee-list > div { grid-template-columns: 36px minmax(0, 1.2fr) minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto; column-gap: 16px; padding: 16px 0; }
  .employee-list .employee-avatar { width: 36px; height: 36px; }
  .employee-list > div > span { display: grid; justify-items: start; gap: 4px; min-width: 0; }
  .employee-list .employee-role::before { content: none; }
  .employee-list .employee-mini-bar { display: block; width: 100%; max-width: 96px; }
  .employee-list > div > .text-button { justify-self: end; white-space: nowrap; }
}
