:root {
  color-scheme: light;
  --bg: #f5f6f2;
  --surface: #fff;
  --surface-subtle: #fafbf8;
  --ink: #22372f;
  --muted: #819087;
  --primary: #163c32;
  --primary-hover: #245346;
  --lime: #d8edaa;
  --line: #e7ebe3;
  --line-strong: #d7dfd4;
  --good: #387653;
  --warning: #a47729;
  --danger: #b35b4f;
  --radius: 16px;
  --shadow: 0 3px 14px rgb(30 58 41 / 3%);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; color: var(--ink); background: var(--bg); font-size: 14px; line-height: 1.6; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:disabled { cursor: not-allowed; opacity: .5; }
a { color: var(--primary); }
button, a, input, select, textarea { outline: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #9ac281; outline-offset: 3px; }
svg { display: block; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { color: var(--ink); }
h1 { margin-bottom: 8px; font-size: 28px; font-weight: 700; line-height: 1.4; letter-spacing: -.7px; }
h2 { margin-bottom: 0; font-size: 17px; font-weight: 600; line-height: 1.5; letter-spacing: -.25px; }
h3 { margin-bottom: 6px; font-size: 15px; font-weight: 600; }
p { margin-bottom: 12px; }
button { transition: color .15s, background .15s, border-color .15s, box-shadow .15s, transform .15s; }
.hidden { display: none !important; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 25; inset: 0 auto 0 0; width: 224px; display: flex; flex-direction: column; padding: 28px 16px 20px; background: #fff; border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 14px 35px; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 38px; color: var(--lime); background: var(--primary); border-radius: 11px; font-size: 22px; font-weight: 700; }
.brand-name { font-size: 17px; line-height: 1.4; font-weight: 700; letter-spacing: .3px; color: var(--primary); }
.brand-caption { margin-top: 3px; color: #93a094; font-size: 10px; letter-spacing: 1.8px; text-transform: uppercase; }
.nav-list { display: grid; gap: 7px; }
.nav-item { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 47px; padding: 11px 16px; border: 0; border-radius: 9px; background: transparent; color: #849087; text-align: left; font-weight: 500; }
.nav-item:hover { background: #f7f9f4; color: var(--primary); }
.nav-item.active, .nav-item.is-active { background: var(--primary); color: #fff; box-shadow: 0 3px 8px rgb(22 60 50 / 9%); }
.nav-item.active .icon, .nav-item.is-active .icon { color: var(--lime); }
.icon { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; flex: 0 0 20px; line-height: 1; }
.icon svg { width: 20px; height: 20px; }
.nav-label { font-size: 14px; letter-spacing: .1px; }
.nav-item .nav-count { margin-left: auto; min-width: 20px; padding: 0 5px; background: #ecf1e6; color: #658155; border-radius: 5px; font-size: 11px; text-align: center; }
.nav-item.active .nav-count { background: #356044; color: var(--lime); }
.sidebar-bottom { margin-top: auto; padding: 24px 12px 0; }
.demo-note { padding: 15px 13px; border-radius: 10px; background: #f5f7f0; color: #83907f; font-size: 11px; line-height: 1.85; }
.demo-note strong { display: block; margin-bottom: 4px; color: #566c53; font-size: 12px; font-weight: 500; }
.sidebar-bottom .sidebar-account { display: flex; align-items: center; gap: 9px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; }
.main-shell { min-width: 0; margin-left: 224px; }
.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 38px; background: rgb(255 255 255 / 72%); border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; gap: 10px; align-items: center; color: #8c978f; font-size: 12px; }
.breadcrumb strong, .breadcrumb b { color: #415848; font-weight: 500; }
.topbar-actions { display: flex; align-items: center; gap: 17px; }
.demo-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; color: #8e996f; background: #f1f4e8; border: 1px solid #e3ead6; border-radius: 5px; font-size: 10px; white-space: nowrap; }
.demo-pill::before { content: ''; width: 5px; height: 5px; background: #9fb670; border-radius: 50%; }
.avatar, .person-avatar { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 34px; height: 34px; color: #405e3b; background: #e8efdf; border-radius: 50%; font-size: 12px; font-weight: 600; }
.avatar { border: 3px solid #fff; box-shadow: 0 0 0 1px #e1e8da; }
#app { max-width: 1600px; margin: 0 auto; padding: 30px 38px 46px; }
.page-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 25px; }
.eyebrow { margin-bottom: 5px; color: #8e9c88; font-size: 10px; font-weight: 500; letter-spacing: 1.7px; line-height: 1.6; text-transform: uppercase; }
.page-description { margin: 0; color: #89958b; font-size: 13px; line-height: 1.8; }
.page-actions { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 8px 15px; border: 1px solid transparent; border-radius: 7px; background: #fff; font-size: 13px; font-weight: 500; line-height: 1.5; white-space: nowrap; text-decoration: none; }
.button .icon, .button svg { width: 15px; height: 15px; flex-basis: 15px; }
.button.primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 2px 3px rgb(24 60 40 / 5%); }
.button.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.button.secondary { background: #fff; border-color: #dfe5d9; color: #55684c; }
.button.secondary:hover { background: #f8faf5; border-color: #c5d3ba; }
.button.ghost { background: transparent; color: #788a71; }
.button.ghost:hover { background: #eef3e8; color: var(--primary); }
.button.small { min-height: 30px; padding: 5px 10px; font-size: 11px; }
.button.danger { color: var(--danger); background: #fcf1ed; border-color: #efd8d0; }
.link-button { display: inline-flex; align-items: center; gap: 4px; border: 0; padding: 0; background: transparent; color: #5b784a; font-size: 12px; font-weight: 500; text-decoration: none; }
.link-button:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 4px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 23px; }
.metric-card { position: relative; min-width: 0; min-height: 131px; padding: 20px 22px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.metric-card.featured { background: var(--primary); border-color: var(--primary); color: #fff; }
.metric-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; color: #879484; font-size: 13px; }
.metric-label .icon { color: #9eae91; width: 17px; height: 17px; }
.metric-value { display: flex; align-items: baseline; gap: 6px; color: #2e4934; font-size: 32px; font-weight: 600; line-height: 1.35; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.metric-value small { color: #9aa38f; font-size: 11px; font-weight: 400; letter-spacing: 0; }
.metric-foot { display: flex; align-items: center; gap: 6px; margin-top: 8px; color: #9da694; font-size: 10px; }
.metric-foot strong { color: #5e8356; font-weight: 500; }
.metric-card.featured .metric-label { color: #a6bdb1; }
.metric-card.featured .metric-value { color: #fff; }
.metric-card.featured .metric-value small, .metric-card.featured .metric-foot { color: #a6bdb1; }
.metric-card.featured .metric-foot strong { color: var(--lime); }
.metric-card .metric-icon { position: absolute; right: 20px; top: 22px; color: #98ad85; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); gap: 22px; align-items: start; margin-bottom: 23px; }
.content-grid.equal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel + .panel { margin-top: 22px; }
.content-grid > .panel + .panel, .two-column > .panel + .panel { margin-top: 0; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 73px; padding: 20px 23px 17px; border-bottom: 1px solid #eff1eb; }
.panel-header.no-border { border-bottom: 0; }
.panel-caption { margin-top: 4px; color: #9aa48f; font-size: 11px; }
.panel-body { padding: 22px 23px; }
.panel-body .toolbar:first-child { margin-top: 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 28px 0 16px; }
.section-heading h2 { font-size: 17px; }
.section-heading p { margin: 3px 0 0; color: #8d9a84; font-size: 11px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.filter-group input, .filter-group select, .toolbar input, .toolbar select { min-height: 35px; padding: 7px 30px 7px 11px; border: 1px solid #e0e6d8; border-radius: 6px; background-color: #fff; color: #72806b; font-size: 12px; }
.toolbar input[type=search] { width: 220px; padding-right: 12px; }
.segmented { display: inline-flex; align-items: center; gap: 2px; padding: 4px; border: 1px solid #e4e9df; border-radius: 7px; background: #f2f5ef; }
.segmented button { display: inline-flex; align-items: center; justify-content: center; min-height: 29px; padding: 5px 13px; border: 0; border-radius: 5px; background: transparent; color: #8c9885; font-size: 12px; line-height: 1.5; }
.segmented button:hover { color: #496a3e; }
.segmented button.is-active { background: #fff; color: #395d2f; box-shadow: 0 1px 5px rgb(56 79 36 / 8%); font-weight: 500; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.project-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; padding: 21px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s, transform .15s; }
.project-card:hover { border-color: #cdd9c5; box-shadow: 0 6px 20px rgb(30 58 41 / 5%); transform: translateY(-2px); }
.project-card-top { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 15px; }
.hospital-mark { display: grid; place-items: center; flex: 0 0 39px; width: 39px; height: 39px; border-radius: 10px; color: var(--project-color, #648554); background: color-mix(in srgb, var(--project-color, #648554) 11%, white); font-size: 15px; font-weight: 600; }
.project-card-title { min-width: 0; flex: 1; }
.project-card-title h3 { margin: 0 0 3px; font-size: 14px; }
.project-meta { color: #96a18c; font-size: 10px; }
.project-card-top > .status-badge { padding: 2px 7px; font-size: 9px; }
.phase-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #819074; font-size: 11px; }
.phase-label strong { color: #597846; font-weight: 500; }
.milestone-track { display: flex; align-items: center; gap: 4px; margin: 12px 0 16px; }
.milestone-dot { position: relative; flex: 1; height: 5px; border-radius: 3px; background: #edf1e8; }
.milestone-dot.is-done { background: #a5be81; }
.milestone-dot.is-active { background: var(--project-color, #527c43); }
.next-milestone { flex: 1; padding: 12px 13px; border-radius: 7px; background: #f8faf5; color: #789068; font-size: 11px; line-height: 1.7; }
.next-milestone .text-small, .next-milestone small { display: block; margin-bottom: 3px; color: #9aa78e; font-size: 10px; }
.next-milestone strong { color: #637653; font-weight: 500; }
.next-milestone p { margin: 0; }
.project-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 16px; margin-top: 15px; border-top: 1px solid #eff2eb; color: #9aa48e; font-size: 10px; }
.avatars { display: inline-flex; align-items: center; padding-left: 3px; }
.person-dot { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-left: -3px; border: 2px solid #fff; border-radius: 50%; background: #e5ecdc; color: #718565; font-size: 9px; }
.person-dot:nth-child(2n) { background: #ece7dc; color: #93836e; }
.person-dot:nth-child(3n) { background: #e0e9ed; color: #708893; }
.status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border: 1px solid transparent; border-radius: 5px; font-size: 10px; font-weight: 500; line-height: 1.6; white-space: nowrap; }
.status-badge::before { content: ''; width: 4px; height: 4px; flex: 0 0 4px; border-radius: 50%; background: currentColor; }
.is-good, .status-badge.is-good { color: #598144; background: #f0f5e9; }
.is-warn, .status-badge.is-warn { color: #ae863d; background: #fbf5e7; }
.is-danger, .status-badge.is-danger { color: #b77059; background: #fbefea; }
.is-neutral, .status-badge.is-neutral { color: #8a9880; background: #f1f4ed; }
.risk-list { display: grid; gap: 0; }
.risk-row { display: flex; align-items: flex-start; gap: 11px; padding: 15px 0; border-bottom: 1px solid #eff2ea; }
.risk-row:first-child { padding-top: 0; }
.risk-row:last-child { border-bottom: 0; padding-bottom: 0; }
.risk-dot { flex: 0 0 7px; width: 7px; height: 7px; margin-top: 7px; border-radius: 50%; background: #c5a068; box-shadow: 0 0 0 4px #faf4e9; }
.risk-dot.is-danger { background: #c98c73; box-shadow: 0 0 0 4px #fbf0eb; }
.risk-dot.is-good { background: #8eaf70; box-shadow: 0 0 0 4px #f2f7ec; }
.risk-info { flex: 1; min-width: 0; }
.risk-title { margin-bottom: 4px; color: #546b47; font-size: 12px; font-weight: 500; }
.risk-description { margin-bottom: 7px; color: #94a086; font-size: 11px; line-height: 1.8; }
.risk-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: #a2ad96; font-size: 10px; }
.risk-meta .status-badge { padding: 1px 6px; font-size: 9px; }
.table-wrap { width: 100%; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #dce4d3 transparent; }
table.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
.data-table th { height: 44px; padding: 10px 15px; color: #829272; background: #fbfcf9; border-bottom: 1px solid #edf1e7; font-size: 12px; font-weight: 500; white-space: nowrap; }
.data-table td { height: 60px; padding: 12px 15px; border-bottom: 1px solid #eff2eb; color: #697e59; vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: #fcfdf9; }
.data-table th:first-child, .data-table td:first-child { padding-left: 23px; }
.data-table th:last-child, .data-table td:last-child { padding-right: 23px; }
.data-table .numeric { text-align: right; font-variant-numeric: tabular-nums; }
.data-table .center { text-align: center; }
.data-table strong { font-weight: 500; color: #506b3e; }
.person-cell { display: flex; align-items: center; gap: 9px; min-width: 112px; }
.person-avatar { width: 31px; height: 31px; font-size: 10px; color: #657b4e; background: #eaf0e1; }
.person-cell:nth-child(2n) .person-avatar { background: #eeeade; color: #8d8064; }
.person-name { color: #536d43; font-size: 13px; font-weight: 500; line-height: 1.5; }
.person-role { margin-top: 2px; color: #94a085; font-size: 11px; line-height: 1.5; }
.hours-value { color: #526d41; font-weight: 500; font-variant-numeric: tabular-nums; }
.hours-muted { color: #a7af9c; font-size: 10px; font-weight: 400; }
.allocation-bar { display: flex; width: 100%; height: 8px; overflow: hidden; gap: 2px; border-radius: 4px; background: #f0f3eb; }
.allocation-segment { height: 100%; min-width: 0; background: var(--segment-color, #809b64); }
.allocation-labels { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 7px; color: #9aa58c; font-size: 9px; }
.allocation-labels strong { color: #6b8455; font-weight: 400; }
.summary-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 15px; margin: 0 0 20px; padding: 13px 17px; border: 1px solid #e7ecdf; border-radius: 9px; background: #f9fbf5; color: #8a9b7a; font-size: 11px; }
.summary-strip strong { color: #597745; font-weight: 500; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 17px; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; color: #879b75; font-size: 10px; white-space: nowrap; }
.legend-dot { width: 7px; height: 7px; border-radius: 2px; background: var(--project-color, var(--segment-color, #93ad78)); }
.tabs { display: flex; gap: 27px; margin: 0 0 22px; border-bottom: 1px solid #dfe6d7; }
.tab { position: relative; min-height: 43px; padding: 0 1px 13px; background: transparent; border: 0; color: #97a18c; font-size: 12px; }
.tab.is-active { color: #456936; font-weight: 500; }
.tab.is-active::after { position: absolute; content: ''; right: 0; bottom: -1px; left: 0; height: 2px; border-radius: 1px; background: #6a9054; }
.report-list { display: grid; gap: 15px; }
.report-card { border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.report-card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid #eef2e8; }
.report-card-header .person-cell { gap: 10px; }
.report-card-header .person-role { font-size: 10px; }
.report-entry { display: grid; grid-template-columns: 130px minmax(0, 1fr) 60px; align-items: start; gap: 17px; padding: 15px 20px; border-bottom: 1px solid #f0f3eb; }
.report-entry:last-child { border-bottom: 0; }
.report-entry .report-project, .report-entry > strong { color: #637c4f; font-size: 11px; font-weight: 500; }
.report-result { color: #7e8f6d; font-size: 12px; line-height: 1.85; }
.report-result p { margin: 0 0 5px; }
.report-result small { display: block; color: #a0aa91; font-size: 10px; }
.report-footer { display: flex; align-items: flex-start; gap: 8px; padding: 13px 20px; border-radius: 0 0 11px 11px; background: #fafcf6; color: #95a282; font-size: 11px; }
.report-footer strong { color: #6d8557; font-weight: 500; white-space: nowrap; }
.coverage-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.coverage-person { display: flex; align-items: center; gap: 9px; padding: 13px 12px; border: 1px solid #e7eddd; border-radius: 8px; background: #fbfcf8; color: #71855e; font-size: 12px; }
.coverage-person .person-avatar { width: 28px; height: 28px; font-size: 9px; }
.coverage-person .coverage-status { display: block; margin-top: 2px; font-size: 9px; color: #92a57e; }
.coverage-person.is-missing { border-color: #efe3cb; background: #fdfaf3; color: #ab8b4c; }
.coverage-person.is-missing .coverage-status { color: #c5a164; }
.coverage-person.is-leave { border-color: #e7e9e1; background: #f7f9f4; color: #a1ab94; }
.coverage-person.is-leave .person-avatar { color: #a0ab91; background: #edf0e7; }
.coverage-person.is-leave .coverage-status { color: #aab39e; }
.coverage-person.is-submitted { border-color: #e2ead8; }
.notice { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 18px; padding: 12px 15px; border: 1px solid #e1e9d7; border-radius: 8px; background: #f4f8ee; color: #8a9b75; font-size: 11px; line-height: 1.85; }
.notice p { margin: 0; }
.notice strong { color: #6b8454; font-weight: 500; }
.notice.warning { background: #fcf7ed; border-color: #f1e4c8; color: #ae955e; }
.notice.warning strong { color: #9e8040; }
.notice.success { background: #f0f7ea; border-color: #d9e9ce; color: #7b9664; }
.notice.success strong { color: #557b3e; }
.notice .icon { margin-top: 2px; width: 15px; height: 15px; flex-basis: 15px; }
.export-preview { overflow: hidden; border: 1px solid #e3eadb; border-radius: 8px; background: #f8faf4; }
.export-preview pre { max-height: 390px; overflow: auto; margin: 0; padding: 18px; color: #6d815b; font: 11px/1.8 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.summary-list { display: grid; gap: 14px; }
.summary-item { padding-bottom: 14px; border-bottom: 1px solid #edf1e6; color: #819371; font-size: 12px; line-height: 1.9; }
.summary-item:last-child { padding-bottom: 0; border-bottom: 0; }
.summary-item strong { color: #5b7945; font-weight: 500; }
.summary-item h3 { margin-bottom: 5px; color: #5e7b49; font-size: 13px; }
.summary-item p { margin: 0; }
.summary-item ul { margin: 6px 0 0; padding-left: 18px; }
.summary-item li + li { margin-top: 5px; }
.two-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label { display: block; color: #6a8056; font-size: 13px; font-weight: 500; }
.field label .required { margin-left: 3px; color: #bc8c67; }
.field input, .field select, .field textarea { display: block; width: 100%; min-width: 0; min-height: 40px; padding: 9px 11px; border: 1px solid #dfe7d5; border-radius: 6px; background: #fff; color: #5f7650; font-size: 13px; line-height: 1.6; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #bdcfae; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #91ae77; }
.field input::placeholder, .field textarea::placeholder { color: #b2bca5; }
.field textarea { min-height: 93px; resize: vertical; }
.field-help { color: #a4ae97; font-size: 10px; line-height: 1.7; }
.span-two { grid-column: 1 / -1; }
.report-form { max-width: 1100px; }
.report-form .form-section { padding: 22px 24px; border-bottom: 1px solid #edf1e5; }
.report-form .form-section:last-child { border-bottom: 0; }
.report-form .section-heading { margin-top: 0; }
.report-form .section-heading h2 { font-size: 14px; }
.work-entry { padding: 18px; margin-bottom: 14px; border: 1px solid #e3e9db; border-radius: 10px; background: #fafcf7; }
.work-entry:last-child { margin-bottom: 0; }
.work-entry-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 17px; }
.entry-number { display: flex; align-items: center; gap: 7px; color: #7d9566; font-size: 11px; font-weight: 500; }
.entry-number::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #a4bc8c; }
.remove-entry { display: inline-flex; align-items: center; justify-content: center; min-height: 28px; padding: 3px 7px; border: 0; border-radius: 5px; background: transparent; color: #b5bea8; font-size: 11px; }
.remove-entry:hover { background: #f7ebe4; color: #b57f62; }
.entry-fields { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.5fr) 100px 130px; gap: 15px; }
.entry-fields .field textarea { background: #fff; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 24px; border-top: 1px solid #e8eedf; background: #fcfdf9; border-radius: 0 0 var(--radius) var(--radius); }
.form-totals { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; color: #96a485; font-size: 11px; }
.form-totals strong { color: #557741; font-size: 24px; line-height: 1.3; font-weight: 600; letter-spacing: -.5px; }
.form-totals .overtime { padding: 2px 7px; background: #fcf1dd; color: #bc9652; border-radius: 4px; font-size: 10px; }
.checkbox-field { display: inline-flex; align-items: center; gap: 8px; color: #879b72; font-size: 12px; }
.checkbox-field input { width: 15px; height: 15px; accent-color: #5e8346; }
.detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 22px; margin-bottom: 23px; }
.detail-item { min-width: 0; }
.detail-item > span, .detail-item > label, .detail-item dt { display: block; margin-bottom: 5px; color: #9ba78b; font-size: 11px; }
.detail-item > strong, .detail-item > div, .detail-item dd { margin: 0; color: #647e50; font-size: 12px; font-weight: 500; }
.milestone-list { display: grid; gap: 0; }
.milestone-item { position: relative; display: flex; gap: 13px; padding: 0 0 22px; }
.milestone-item:last-child { padding-bottom: 0; }
.milestone-item:not(:last-child)::after { content: ''; position: absolute; top: 19px; bottom: 0; left: 8px; width: 1px; background: #e3ebd8; }
.milestone-state { z-index: 1; display: grid; place-items: center; flex: 0 0 17px; width: 17px; height: 17px; margin-top: 2px; border: 1px solid #dfe8d1; border-radius: 50%; background: #fff; color: #a6b692; font-size: 9px; }
.milestone-item.is-done .milestone-state { background: #edf5e3; border-color: #c6d9b4; color: #749952; }
.milestone-item.is-active .milestone-state { border: 5px solid #6e9255; background: #fff; }
.milestone-info { min-width: 0; flex: 1; color: #99a889; font-size: 11px; }
.milestone-info strong { display: block; margin-bottom: 4px; color: #6b8557; font-size: 12px; font-weight: 500; }
.milestone-info p { margin: 0; }
.task-row { display: flex; align-items: center; gap: 13px; padding: 13px 0; border-bottom: 1px solid #edf1e6; color: #80976d; font-size: 12px; }
.task-row:last-child { border-bottom: 0; }
.task-row .task-name { flex: 1; min-width: 0; }
.task-row .task-meta { display: block; margin-top: 4px; color: #a4af96; font-size: 10px; }
.planning-table { min-width: 760px; }
.planning-table input.hours-input { width: 51px; height: 33px; padding: 5px; border: 1px solid #e2ead7; border-radius: 5px; background: #fff; text-align: center; color: #6a8455; font-size: 12px; font-variant-numeric: tabular-nums; }
.planning-table input.hours-input:focus { border-color: #9bb582; }
.planning-table .is-over { background: #fff9ef; color: #b7965c; }
.pill-row { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.pill-row .pill, .project-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; color: var(--project-color, #6d8756); background: color-mix(in srgb, var(--project-color, #6d8756) 10%, white); border-radius: 5px; font-size: 10px; white-space: nowrap; }
.empty-state { display: grid; place-items: center; min-height: 220px; padding: 35px 20px; text-align: center; color: #a4b097; font-size: 12px; line-height: 1.9; }
.empty-state .icon { width: 32px; height: 32px; margin-bottom: 10px; color: #becbb1; }
.empty-state strong { display: block; margin-bottom: 5px; color: #7c9468; font-size: 14px; font-weight: 500; }
.text-muted { color: #9ba88c !important; }
.text-small { font-size: 11px !important; }
.text-danger { color: #b57d63 !important; }
.text-warning { color: #ae9154 !important; }
.text-good { color: #739553 !important; }
.nowrap { white-space: nowrap; }
.spacer { flex: 1; }
.modal { width: min(760px, calc(100vw - 40px)); max-height: calc(100vh - 50px); padding: 0; border: 1px solid #dfe7d7; border-radius: 17px; color: var(--ink); background: #fff; box-shadow: 0 30px 90px rgb(20 46 30 / 22%); overflow: auto; }
.modal.wide { width: min(900px, calc(100vw - 40px)); }
.modal::backdrop { background: rgb(21 42 30 / 33%); backdrop-filter: blur(3px); }
.modal-header { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 20px 25px; border-bottom: 1px solid #eaf0e2; background: rgb(255 255 255 / 97%); }
.modal-header h2 { font-size: 18px; }
.modal-body { padding: 25px; }
.modal-body > :last-child { margin-bottom: 0; }
.modal-footer { position: sticky; bottom: 0; z-index: 2; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 9px; padding: 17px 25px; border-top: 1px solid #eaf0e2; background: #fbfdf7; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex: 0 0 30px; padding: 5px; border: 0; border-radius: 7px; background: transparent; color: #91a480; font-size: 22px; line-height: 1; }
.icon-button:hover { background: #f1f6e9; color: #536e3e; }
.icon-button svg { width: 17px; height: 17px; }
.toast { position: fixed; bottom: 28px; left: calc(50% + 112px); z-index: 100; display: flex; align-items: center; gap: 9px; max-width: calc(100vw - 48px); padding: 13px 20px; border: 1px solid #527342; border-radius: 10px; background: #254e35; box-shadow: 0 6px 26px rgb(24 57 32 / 20%); color: #edf5e5; font-size: 12px; transform: translateX(-50%); opacity: 0; pointer-events: none; transition: opacity .2s, bottom .2s; }
.toast.visible, .toast.is-visible, .toast.show { bottom: 34px; opacity: 1; }

@media (min-width: 1500px) {
  .sidebar { width: 240px; padding-right: 20px; padding-left: 20px; }
  .main-shell { margin-left: 240px; }
  .topbar { padding-right: 46px; padding-left: 46px; }
  #app { padding-right: 46px; padding-left: 46px; }
  .toast { left: calc(50% + 120px); }
  .metric-card { padding: 22px 25px 19px; }
}
@media (max-width: 1200px) {
  .sidebar { width: 202px; padding-right: 12px; padding-left: 12px; }
  .main-shell { margin-left: 202px; }
  .brand { padding-left: 10px; gap: 9px; }
  .brand-name { font-size: 16px; }
  .brand-caption { font-size: 9px; letter-spacing: 1.3px; }
  .nav-item { padding-left: 14px; padding-right: 14px; }
  .topbar { padding-right: 26px; padding-left: 26px; }
  #app { padding-right: 26px; padding-left: 26px; }
  .metric-grid { gap: 12px; }
  .metric-card { padding: 18px 17px 15px; }
  .content-grid { grid-template-columns: minmax(0, 1.5fr) minmax(270px, 1fr); gap: 17px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-card { padding: 18px; }
  .coverage-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
  .coverage-person { gap: 6px; padding: 10px 8px; font-size: 11px; }
  .coverage-person .person-avatar { width: 24px; height: 24px; }
  .entry-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) 80px 110px; gap: 11px; }
  .toast { left: calc(50% + 101px); }
}
@media (max-width: 1050px) {
  .content-grid { grid-template-columns: 1fr; }
  .content-grid.equal { grid-template-columns: 1fr; }
  .content-grid > .panel + .panel { margin-top: 0; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-card { min-height: 120px; }
  .two-column { grid-template-columns: 1fr; }
  .coverage-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .entry-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-entry { grid-template-columns: 110px minmax(0, 1fr) 50px; gap: 13px; }
}
@media (max-width: 760px) {
  .sidebar { position: sticky; inset: auto; top: 0; width: 100%; padding: 0; border-right: 0; border-bottom: 1px solid var(--line); background: rgb(255 255 255 / 98%); }
  .brand { padding: 12px 18px 10px; gap: 9px; }
  .brand-mark { width: 30px; height: 30px; flex-basis: 30px; border-radius: 8px; font-size: 18px; }
  .brand-name { font-size: 15px; }
  .brand-caption { display: none; }
  .nav-list { display: flex; gap: 0; overflow-x: auto; padding: 0 8px; scrollbar-width: none; }
  .nav-list::-webkit-scrollbar { display: none; }
  .nav-item { justify-content: center; flex: 1 0 auto; width: auto; min-height: 44px; padding: 10px 13px; gap: 7px; border-radius: 0; }
  .nav-item.active, .nav-item.is-active { color: var(--primary); background: transparent; box-shadow: none; }
  .nav-item.active::after, .nav-item.is-active::after { content: ''; position: absolute; right: 15px; bottom: 0; left: 15px; height: 2px; border-radius: 2px; background: var(--primary); }
  .nav-item.active .icon, .nav-item.is-active .icon { color: var(--primary); }
  .nav-label { font-size: 12px; }
  .nav-item .icon, .nav-item .icon svg { width: 16px; height: 16px; flex-basis: 16px; }
  .nav-item .nav-count, .sidebar-bottom { display: none; }
  .main-shell { margin-left: 0; }
  .topbar { height: 53px; padding: 0 20px; }
  .topbar-actions { gap: 12px; }
  .topbar-actions .topbar-date { display: none; }
  .avatar { width: 28px; height: 28px; font-size: 10px; border-width: 2px; }
  .demo-pill { padding: 3px 7px; font-size: 9px; }
  .breadcrumb { font-size: 10px; gap: 7px; }
  #app { padding: 23px 20px 38px; }
  h1 { font-size: 25px; margin-bottom: 7px; }
  h2 { font-size: 16px; }
  .page-header { align-items: flex-start; gap: 16px; margin-bottom: 22px; }
  .eyebrow { font-size: 9px; }
  .page-description { font-size: 11px; }
  .page-actions { flex-wrap: wrap; justify-content: flex-end; gap: 7px; padding-top: 7px; }
  .button { min-height: 40px; padding: 9px 12px; font-size: 11px; }
  .button.small { min-height: 35px; padding: 7px 9px; }
  .metric-grid { gap: 12px; margin-bottom: 20px; }
  .metric-card { min-height: 119px; padding: 17px 18px 14px; border-radius: 12px; }
  .metric-label { margin-bottom: 7px; font-size: 11px; }
  .metric-value { font-size: 28px; }
  .metric-foot { margin-top: 7px; font-size: 9px; }
  .metric-value small { font-size: 10px; }
  .panel { border-radius: 12px; }
  .panel-header { min-height: 65px; padding: 17px 18px 15px; }
  .panel-body { padding: 18px; }
  .content-grid { gap: 18px; margin-bottom: 20px; }
  .section-heading { margin: 23px 0 14px; }
  .project-grid { gap: 13px; }
  .project-card { padding: 17px; border-radius: 12px; }
  .project-card:hover { transform: none; }
  .project-card-top { gap: 9px; }
  .hospital-mark { width: 33px; height: 33px; flex-basis: 33px; font-size: 13px; border-radius: 8px; }
  .project-card-title h3 { font-size: 12px; }
  .project-card-top > .status-badge { font-size: 8px; padding-right: 5px; padding-left: 5px; }
  .project-meta { font-size: 9px; }
  .phase-label { font-size: 10px; }
  .next-milestone { padding: 10px; font-size: 10px; }
  .project-card-footer { font-size: 9px; }
  .toolbar { flex-wrap: wrap; align-items: flex-start; gap: 12px; margin-bottom: 17px; }
  .filter-group { gap: 7px; }
  .filter-group input, .filter-group select, .toolbar input, .toolbar select { min-height: 39px; font-size: 11px; }
  .segmented button { min-height: 32px; padding-right: 11px; padding-left: 11px; font-size: 11px; }
  .summary-strip { padding: 11px 13px; gap: 10px; margin-bottom: 17px; font-size: 10px; }
  .legend { gap: 8px 13px; }
  .legend-item { font-size: 9px; }
  .data-table { min-width: 570px; }
  .data-table th { font-size: 12px; }
  .data-table td { font-size: 13px; }
  .data-table th:first-child, .data-table td:first-child { padding-left: 18px; }
  .data-table th:last-child, .data-table td:last-child { padding-right: 18px; }
  .coverage-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .coverage-person { padding: 11px 10px; font-size: 11px; }
  .tabs { gap: 23px; margin-bottom: 18px; }
  .tab { min-height: 42px; padding-bottom: 12px; font-size: 11px; }
  .report-entry { grid-template-columns: 100px minmax(0, 1fr) 45px; gap: 10px; padding: 14px 17px; }
  .report-card-header { padding: 14px 17px; }
  .report-entry .report-project { font-size: 10px; }
  .report-result { font-size: 11px; }
  .report-footer { padding: 12px 17px; font-size: 10px; }
  .notice { padding: 11px 13px; font-size: 10px; }
  .form-grid { gap: 16px; }
  .field { gap: 7px; }
  .field label { font-size: 13px; }
  .field input, .field select, .field textarea { min-height: 44px; padding: 10px 11px; font-size: 13px; }
  .field-help { font-size: 10px; }
  .report-form .form-section { padding: 20px 18px; }
  .work-entry { padding: 15px; }
  .entry-fields { gap: 15px 12px; }
  .form-footer { padding: 18px; }
  .form-totals strong { font-size: 22px; }
  .detail-grid { gap: 17px; }
  .detail-item > span, .detail-item > label, .detail-item dt { font-size: 10px; }
  .detail-item > strong, .detail-item > div, .detail-item dd { font-size: 11px; }
  .toast { bottom: 20px; left: 50%; padding: 12px 17px; font-size: 11px; }
  .toast.visible, .toast.is-visible, .toast.show { bottom: 26px; }
  .modal { width: calc(100vw - 24px); max-height: calc(100dvh - 26px); border-radius: 13px; }
  .modal.wide { width: calc(100vw - 24px); }
  .modal-header { padding: 17px 19px; }
  .modal-header h2 { font-size: 16px; }
  .modal-body { padding: 20px 19px; }
  .modal-footer { padding: 15px 19px; }
  .icon-button { width: 37px; height: 37px; flex-basis: 37px; }
}
@media (max-width: 480px) {
  .brand { padding: 12px 16px 8px; }
  .nav-item { gap: 0; padding: 9px 12px; min-height: 44px; }
  .nav-item .icon { display: none; }
  .nav-label { font-size: 11px; }
  .topbar { padding-right: 16px; padding-left: 16px; }
  #app { padding: 21px 16px 32px; }
  h1 { font-size: 23px; }
  .page-header { flex-direction: column; gap: 14px; }
  .page-actions { width: 100%; justify-content: flex-start; padding-top: 0; }
  .page-actions .button { flex: 1; }
  .page-description { max-width: 320px; line-height: 1.8; }
  .metric-grid { gap: 10px; }
  .metric-card { min-height: 115px; padding: 15px 14px 13px; }
  .metric-value { font-size: 27px; }
  .metric-foot { gap: 4px; line-height: 1.7; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { padding: 19px; }
  .project-card-title h3 { font-size: 14px; }
  .project-meta { font-size: 10px; }
  .project-card-top > .status-badge { font-size: 9px; padding: 3px 7px; }
  .hospital-mark { width: 37px; height: 37px; flex-basis: 37px; font-size: 14px; }
  .phase-label, .next-milestone { font-size: 11px; }
  .project-card-footer { font-size: 10px; }
  .next-milestone { padding: 12px; }
  .section-heading { gap: 10px; }
  .section-heading h2 { font-size: 15px; }
  .section-heading .link-button { font-size: 11px; }
  .toolbar { gap: 11px; }
  .toolbar .filter-group { width: 100%; }
  .toolbar input[type=search] { width: 100%; }
  .filter-group select { flex: 1; max-width: 100%; }
  .segmented { max-width: 100%; }
  .segmented button { flex: 1; }
  .coverage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-card-header { gap: 8px; }
  .report-entry { grid-template-columns: minmax(0, 1fr) 44px; gap: 5px 10px; }
  .report-entry .report-project, .report-entry > strong { grid-column: 1; }
  .report-entry .report-result { grid-column: 1; }
  .report-entry > .hours-value { grid-column: 2; grid-row: 1 / 3; text-align: right; padding-top: 2px; }
  .report-footer { display: block; line-height: 1.9; }
  .report-footer strong { margin-right: 5px; }
  .form-grid { grid-template-columns: 1fr; }
  .entry-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entry-fields .field:first-child, .entry-fields .field:nth-child(2) { grid-column: 1 / -1; }
  .form-footer { align-items: stretch; flex-direction: column; gap: 15px; }
  .form-footer .page-actions { width: 100%; }
  .form-footer .button { flex: 1; }
  .form-totals { align-self: flex-start; }
  .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-item.span-two { grid-column: 1 / -1; }
  .modal-footer .button { flex: 1; }
  .summary-item { font-size: 11px; }
  .task-row { flex-wrap: wrap; gap: 8px; }
  .task-row .task-name { flex-basis: calc(100% - 45px); }
  .task-row > .status-badge { margin-left: 0; }
  .toast { width: max-content; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
@media print {
  body { background: #fff; }
  .sidebar, .topbar-actions, .page-actions, .button, .toast { display: none !important; }
  .main-shell { margin-left: 0; }
  .topbar { height: 40px; padding: 0; background: #fff; }
  #app { max-width: none; padding: 20px 0; }
  .panel, .project-card, .metric-card, .report-card { break-inside: avoid; box-shadow: none; }
  .table-wrap { overflow: visible; }
  .data-table { min-width: 0; }
}

/* Bind the shared component styles to the working prototype's markup. */
[hidden] { display: none !important; }
.brand { text-decoration: none; }
.brand-name, .brand-caption, .person-name, .person-role { display: block; }
.brand-caption { font-size: 10px; }
.demo-note { color: #718068; font-size: 11px; }
.page-description { color: #72816c; }
.eyebrow { color: #7a8d6c; font-size: 11px; }
.metric-label { color: #6f8161; }
.metric-foot { color: #7d8d6c; font-size: 11px; line-height: 1.75; }
.metric-value small { color: #7a8d69; font-size: 12px; }
.metric-card.featured .metric-label, .metric-card.featured .metric-foot, .metric-card.featured .metric-value small { color: #c0d1c3; }
.panel-caption { display: block; color: #80936e; font-size: 11px; line-height: 1.8; }
.text-muted { color: #80936e !important; }
.text-small { font-size: 11px !important; }
.hours-muted { color: #92a080; font-size: 12px; }
.status-badge { font-size: 11px; }
.status-badge.is-good { color: #507338; }
.status-badge.is-warn { color: #98712a; }
.status-badge.is-danger { color: #a96149; }
.status-badge.is-neutral { color: #74865f; }
.project-overview-row { display: flex; align-items: center; gap: 13px; width: 100%; min-width: 0; min-height: 78px; padding: 16px 0; border: 0; border-bottom: 1px solid #edf1e7; background: transparent; text-align: left; }
.project-overview-row:first-child { padding-top: 2px; }
.project-overview-row:last-child { border-bottom: 0; padding-bottom: 2px; }
.project-overview-row:hover .project-overview-info strong { color: #1f5135; }
.project-overview-row:hover .hospital-mark { box-shadow: 0 0 0 3px #f2f7eb; }
.project-overview-info { min-width: 0; flex: 1; }
.project-overview-info strong { display: block; margin-bottom: 5px; color: #45613b; font-size: 13px; font-weight: 600; }
.project-overview-info > span { display: block; color: #879775; font-size: 11px; line-height: 1.7; }
.project-overview-row > .phase-label { justify-content: center; padding: 3px 7px; border-radius: 5px; color: #6c8554; background: #f2f6ec; font-size: 11px; white-space: nowrap; }
.project-overview-row > .text-small { font-size: 11px; white-space: nowrap; }
.project-overview-row > [aria-hidden] { color: #99ad85; font-size: 17px; }
.risk-row { width: 100%; border: 0; border-bottom: 1px solid #edf1e7; background: transparent; text-align: left; }
.risk-row:hover .risk-title { color: #345e31; }
.risk-title, .risk-description { display: block; }
.risk-title { color: #536e43; font-size: 13px; }
.risk-description { color: #879975; font-size: 12px; }
.risk-meta { color: #8e9f7c; font-size: 11px; }
.risk-row > [aria-hidden] { color: #9cae8c; }
.coverage-person { display: grid; position: relative; grid-template-columns: 31px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 9px; row-gap: 1px; min-width: 0; min-height: 73px; text-align: left; }
.coverage-person > .person-avatar { grid-column: 1; grid-row: 1 / 3; width: 31px; height: 31px; color: #60794a; font-size: 11px; background: var(--avatar-color, #e8efdf); }
.coverage-person > strong { grid-column: 2; grid-row: 1; align-self: end; color: #5c7547; font-size: 12px; font-weight: 500; }
.coverage-person > span:not(.person-avatar) { grid-column: 2; grid-row: 2; align-self: start; color: #8c9d7a; font-size: 11px; line-height: 1.6; }
.coverage-person > small { grid-column: 3; grid-row: 1 / 3; align-self: center; color: #64854c; font-size: 11px; font-variant-numeric: tabular-nums; }
.coverage-person.is-missing > strong { color: #9a7e3f; }
.coverage-person.is-missing > span:not(.person-avatar) { color: #ac8b4a; }
.coverage-person.is-leave > strong, .coverage-person.is-leave > span:not(.person-avatar) { color: #89967b; }
.coverage-person:hover { border-color: #b7cba4; background: #f7fbef; box-shadow: 0 2px 6px rgb(75 104 45 / 4%); }
.person-link { display: block; padding: 2px; border: 0; border-radius: 6px; background: transparent; text-align: left; }
.person-link:hover .person-name { color: #244f30; }
.person-avatar { background: var(--avatar-color, #e8efdf); }
.person-role { color: #8b9a7a; font-size: 11px; }
.report-list { margin-top: 21px; }
.report-entry { display: block; }
.report-entry > div:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 10px; }
.entry-hours { margin-left: auto; color: #6a8553; font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.report-result { margin: 9px 0 0; color: #6f855b; font-size: 13px; line-height: 1.9; overflow-wrap: anywhere; }
.report-footer { align-items: center; justify-content: space-between; color: #80966c; font-size: 12px; }
.report-footer > span { min-width: 0; }
.report-footer > .link-button { flex: 0 0 auto; }
.report-card > .notice { display: block; margin: 0; padding: 11px 20px; border: 0; border-top: 1px solid #f0e3c8; border-radius: 0 0 10px 10px; font-size: 11px; }
.allocation-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) 90px; align-items: center; gap: 15px; margin-bottom: 17px; }
.allocation-row > .link-button { justify-self: start; color: #6f865a; font-size: 12px; }
.allocation-row > .text-small { color: #849873; text-align: right; font-variant-numeric: tabular-nums; }
.allocation-row .allocation-bar { height: 22px; gap: 2px; border-radius: 5px; background: #f1f5ea; }
.allocation-row .allocation-segment { display: flex; align-items: center; justify-content: center; overflow: hidden; color: #fff; font-size: 11px; line-height: 22px; white-space: nowrap; text-shadow: 0 1px 2px rgb(0 0 0 / 13%); }
.allocation-row + .legend { margin-top: 23px; padding-top: 16px; border-top: 1px solid #edf1e6; }
.legend-item { color: #768c62; font-size: 11px; }
.app-footer { max-width: 1600px; margin: 0 auto; padding: 0 38px 25px; color: #93a184; font-size: 11px; text-align: center; line-height: 1.9; }
.panel-footnote { padding: 14px 23px; border-top: 1px solid #edf1e7; border-radius: 0 0 var(--radius) var(--radius); background: #fcfdf9; color: #8b9c79; font-size: 11px; line-height: 1.8; }
.milestone-count { margin: -6px 0 15px; color: #869c71; font-size: 11px; }
.milestone-dot > span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.project-card-top { justify-content: space-between; }
.project-card > .project-card-title { margin: 0 0 7px; color: #45613a; font-size: 16px; font-weight: 600; }
.project-card > .project-meta { min-height: 34px; margin-bottom: 15px; color: #8b9d78; font-size: 11px; line-height: 1.7; }
.project-card .phase-label { color: #66824e; font-size: 11px; }
.project-card .next-milestone > span, .project-card .next-milestone > strong { display: block; }
.project-card .next-milestone > span { color: #94a680; font-size: 11px; }
.project-card .next-milestone > strong { margin: 5px 0; color: #68834f; font-size: 12px; line-height: 1.7; }
.project-card-footer .avatars > .text-small { margin-left: 8px; }
.project-card-footer .person-dot { font-size: 11px; }
.project-chip { padding: 3px 7px; font-size: 11px; }
.export-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin-bottom: 20px; }
.export-fields > span { color: #789263; font-size: 12px; }
.summary-item { display: flex; align-items: flex-start; gap: 14px; color: #81966d; font-size: 12px; }
.summary-item > div { min-width: 0; }
.summary-number { flex: 0 0 auto; margin-top: 2px; color: #a0b88a; font-size: 18px; font-weight: 500; font-variant-numeric: tabular-nums; line-height: 1.5; letter-spacing: -.5px; }
.summary-item strong { color: #5f7b49; font-size: 13px; }
.summary-item p { margin-top: 5px; }
.next-plan-field { margin: 21px 0 18px; }
.revision-history { margin-top: 20px; padding: 15px 17px; border: 1px solid #e4ebd9; border-radius: 8px; background: #f9fcf4; color: #7c9467; font-size: 12px; }
.revision-history summary { cursor: pointer; font-weight: 500; }
.revision-history .task-row:last-child { padding-bottom: 0; }
.copy-area { display: block; width: 100%; min-height: 250px; padding: 14px; border: 1px solid #dce7d1; border-radius: 7px; background: #f9fcf5; color: #6f875c; font: 12px/1.9 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; resize: vertical; }
.text-end { text-align: right !important; }
.task-row { display: block; color: #738c5e; font-size: 13px; line-height: 1.9; }
.task-row p { margin: 6px 0; overflow-wrap: anywhere; }
.task-row p:last-child { margin-bottom: 0; }
.toast:not([hidden]) { opacity: 1; bottom: 34px; }
.modal-body > h3 { margin-top: 25px; margin-bottom: 15px; color: #5d7a46; font-size: 14px; }
.modal-body > h3:first-child { margin-top: 0; }
.milestone-state.done { color: #6e9450; border-color: #c0d5aa; background: #eef6e3; }
.milestone-item > .status-badge { align-self: start; }
.milestone-info > span { display: block; color: #8b9f78; font-size: 11px; }
.milestone-list { margin-bottom: 25px; }
.field label input, .field label select, .field label textarea { margin-top: 8px; }
.field-help { color: #8a9f76; font-size: 11px; }
.report-form > .form-grid { margin: 0 0 23px; }
#work-entries { margin-top: 18px; }
#blocker-fields { margin-top: 16px; padding: 17px; border: 1px solid #ecdfc1; border-radius: 9px; background: #fcf9f0; }
.report-form > .form-footer, #planning-form > .form-footer { margin: 22px -25px -25px; border-radius: 0; }
.report-form > .revision-history { margin-top: 45px; }
.form-totals { color: #7d9567; }
.checkbox-field { color: #758e60; line-height: 1.85; }
.notice { font-size: 12px; color: #789462; }
.notice.warning { color: #9b814a; }
.notice.success { color: #64894a; }
.notice br { display: block; }
.detail-item > span, .detail-item > label, .detail-item dt { color: #8c9f78; font-size: 11px; }
.detail-item > strong, .detail-item > div, .detail-item dd { color: #607f49; font-size: 13px; }
.export-preview pre { color: #71895d; font-size: 12px; }

@media (min-width: 1500px) {
  .app-footer { padding-right: 46px; padding-left: 46px; }
}
@media (max-width: 1200px) {
  .coverage-person { grid-template-columns: 28px minmax(0, 1fr); column-gap: 7px; row-gap: 1px; min-height: 78px; }
  .coverage-person > .person-avatar { grid-row: 1 / 4; width: 28px; height: 28px; }
  .coverage-person > small { grid-column: 2; grid-row: 3; margin-top: 2px; }
  .coverage-person > strong { align-self: end; }
  .app-footer { padding-right: 26px; padding-left: 26px; }
}
@media (max-width: 760px) {
  .eyebrow { font-size: 11px; }
  .page-description { font-size: 12px; }
  .metric-label { font-size: 12px; }
  .metric-value small { font-size: 11px; }
  .metric-foot { font-size: 11px; }
  .panel-caption { font-size: 11px; }
  .project-overview-row { gap: 11px; min-height: 77px; }
  .project-overview-info strong { font-size: 13px; }
  .risk-description { font-size: 12px; }
  .coverage-person { grid-template-columns: 28px minmax(0, 1fr) auto; grid-template-rows: auto auto; min-height: 72px; }
  .coverage-person > .person-avatar { grid-row: 1 / 3; }
  .coverage-person > small { grid-column: 3; grid-row: 1 / 3; margin-top: 0; }
  .person-name { font-size: 13px; }
  .person-role { font-size: 11px; }
  .notice { font-size: 11px; }
  .report-result { font-size: 13px; }
  .report-footer { font-size: 11px; }
  .allocation-row { grid-template-columns: 52px minmax(0, 1fr) 74px; gap: 10px; }
  .allocation-row > .link-button { font-size: 12px; }
  .app-footer { padding-right: 20px; padding-left: 20px; font-size: 11px; }
  .panel-footnote { padding: 13px 18px; }
  .form-totals { font-size: 11px; }
  .checkbox-field { font-size: 12px; }
  .report-form > .form-footer, #planning-form > .form-footer { margin: 22px -19px -20px; }
  .summary-item { font-size: 12px; }
  .detail-item > strong, .detail-item > div, .detail-item dd { font-size: 12px; }
  .toast:not([hidden]) { bottom: 26px; }
  .project-card-footer .button.small { min-height: 38px; }
}
@media (max-width: 480px) {
  .page-actions:empty { display: none; }
  .project-overview-row { display: grid; grid-template-columns: 33px minmax(0, 1fr) 13px; column-gap: 10px; row-gap: 7px; padding: 17px 0; }
  .project-overview-row > .hospital-mark { grid-column: 1; grid-row: 1 / 3; width: 33px; height: 33px; }
  .project-overview-info { grid-column: 2; grid-row: 1; }
  .project-overview-info strong { margin-bottom: 3px; }
  .project-overview-info > span { overflow-wrap: anywhere; }
  .project-overview-row > .phase-label { grid-column: 2; grid-row: 2; justify-self: start; max-width: 100%; padding: 2px 7px; }
  .project-overview-row > .text-small { grid-column: 2; grid-row: 3; color: #8c9f78; }
  .project-overview-row > [aria-hidden] { grid-column: 3; grid-row: 1 / 4; align-self: center; }
  .coverage-person { grid-template-columns: 27px minmax(0, 1fr); min-height: 87px; padding: 11px 9px; column-gap: 7px; }
  .coverage-person > .person-avatar { grid-row: 1 / 4; width: 27px; height: 27px; font-size: 11px; }
  .coverage-person > strong { font-size: 12px; }
  .coverage-person > small { grid-column: 2; grid-row: 3; margin-top: 2px; }
  .coverage-person > span:not(.person-avatar) { font-size: 11px; }
  .report-entry > div:first-child { column-gap: 7px; row-gap: 7px; }
  .report-entry > div:first-child > .text-small { flex-basis: calc(100% - 1px); order: 3; }
  .entry-hours { margin-left: auto; }
  .report-footer { display: flex; flex-wrap: wrap; gap: 8px; }
  .report-footer > span { flex-basis: 100%; }
  .report-card-header { align-items: flex-start; }
  .report-card-header > .pill-row { justify-content: flex-end; gap: 5px; max-width: 125px; }
  .allocation-row { grid-template-columns: 46px minmax(0, 1fr) 64px; gap: 7px; margin-bottom: 16px; }
  .allocation-row .allocation-segment { color: transparent; text-shadow: none; }
  .allocation-row .allocation-bar { height: 19px; }
  .allocation-row > .text-small { font-size: 11px !important; }
  .app-footer { padding-right: 16px; padding-left: 16px; }
  .export-fields { column-gap: 9px; row-gap: 11px; }
  .export-fields > span { font-size: 11px; }
  .summary-number { font-size: 17px; }
  .summary-item { gap: 10px; }
  .summary-item strong { font-size: 13px; }
  .project-card .project-card-title { font-size: 16px; }
  .project-card-top > .status-badge { font-size: 11px; }
  .form-footer .page-actions { flex-wrap: nowrap; }
  .modal-body { overflow-wrap: anywhere; }
  .field input, .field select, .field textarea { font-size: 13px; }
  .entry-fields > .field { min-width: 0; }
  .entry-fields > .field label { font-size: 12px; }
  .field input[type=date] { max-width: 100%; }
  .task-row { display: block; }
}
@media (max-width: 360px) {
  .panel-header { flex-wrap: wrap; gap: 9px; }
  .panel-header > .link-button { font-size: 11px; }
  .coverage-grid { gap: 7px; }
  .coverage-person { padding: 10px 7px; column-gap: 5px; }
  .metric-card { padding: 14px 12px; }
  .metric-value { gap: 4px; font-size: 26px; }
  .metric-value small { font-size: 11px; }
  .entry-fields { grid-template-columns: 1fr; }
  .entry-fields > .field { grid-column: 1 / -1; }
  .work-entry { padding: 13px; }
  .export-fields { grid-template-columns: 1fr; }
  .report-card-header { flex-wrap: wrap; }
  .report-card-header > .pill-row { max-width: none; }
  .allocation-row { grid-template-columns: 43px minmax(0, 1fr) 59px; gap: 6px; }
}
@media print {
  .app-footer { padding-bottom: 0; }
  .toast:not([hidden]) { display: none !important; }
}

/* Keep supporting information readable on the light surfaces. */
.person-avatar { background: color-mix(in srgb, var(--avatar-color, #728864) 15%, white); color: #304936; }
.page-description, .metric-foot, .panel-caption, .project-overview-info > span,
.risk-description, .risk-meta, .person-role, .report-footer,
.allocation-row > .text-small, .legend-item, .panel-footnote,
.milestone-count, .project-card > .project-meta, .summary-item,
.milestone-info > span, .field-help, .detail-item > span,
.detail-item > label, .detail-item dt, .form-totals, .checkbox-field,
.project-card .next-milestone > span { color: #6e7f5f; }
.text-muted { color: #71815f !important; }
.nav-item { color: #71806b; }
.metric-label, .eyebrow { color: #6e805f; }
.coverage-person > span:not(.person-avatar) { color: #748460; }
.coverage-person.is-leave > strong, .coverage-person.is-leave > span:not(.person-avatar) { color: #7a856e; }
.app-footer, .demo-note { color: #78866d; }
.project-overview-row > .text-small { color: #71815f; }
.metric-card.featured .metric-foot, .metric-card.featured .metric-label { color: #c0d1c3; }
.brand-caption, .demo-pill, .breadcrumb, .sidebar-bottom .sidebar-account,
.button.small, .project-card-top > .status-badge, .project-meta,
.project-card-footer, .person-dot, .risk-meta .status-badge,
.allocation-labels, .legend-item, .report-card-header .person-role,
.next-milestone .text-small, .next-milestone small,
.detail-item > span, .milestone-state { font-size: 11px; }
@media (max-width: 760px) {
  .button { min-height: 44px; font-size: 12px; }
  .button.small { min-height: 40px; }
  .nav-label { font-size: 12px; }
  .filter-group input, .filter-group select, .toolbar input, .toolbar select { font-size: 12px; }
  .link-button { min-height: 30px; }
}

/* Project, member and task management forms. */
.entity-form > .form-grid { margin-bottom: 23px; }
.entity-form > .notice { display: block; color: #617955; background: #f4f7ef; }
.entity-form .field input:disabled, .entity-form .field select:disabled { background: #f0f3ed; color: #71816b; cursor: not-allowed; }
.entity-form .field textarea { min-height: 92px; }
.entity-form > .form-footer { position: sticky; bottom: -25px; z-index: 1; margin: 23px -25px -25px; border-radius: 0; background: rgb(249 251 245 / 97%); }
.entity-form #entity-message:not(:empty) { margin-top: 20px; }
.entity-form #entity-message .notice { display: block; margin-bottom: 12px; }
.entity-warning-confirm { display: flex; margin: 16px 0 0; padding: 12px 14px; border: 1px solid #e9dfc5; border-radius: 8px; background: #fcf9f0; color: #8b7345; }
.entity-warning-confirm input { flex: 0 0 16px; }
.entity-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 28px 0 14px; padding-top: 23px; border-top: 1px solid #e6ebdf; }
.entity-section-heading h3 { margin: 0 0 5px; color: #3d5c37; font-size: 14px; }
.entity-section-heading p { margin: 0; color: #71816a; font-size: 11px; line-height: 1.8; }
.entity-empty-milestones { padding: 23px 18px; border: 1px dashed #d3dfca; border-radius: 9px; background: #fafcf7; color: #7c8d72; font-size: 12px; text-align: center; }
.entity-milestone-row { background: #f8faf4; border-color: #e2e9d9; }
.entity-milestone-row:last-child { margin-bottom: 0; }
.entity-milestone-row .form-grid { gap: 14px 17px; }
.entity-milestone-row .entry-number { color: #517345; font-size: 12px; }
.entity-row-preserved { color: #839079; font-size: 11px; }
.entity-color-field, .entity-collaborator-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.entity-color-field legend, .entity-collaborator-field legend { padding: 0; margin-bottom: 10px; color: #5b7650; font-size: 13px; font-weight: 500; }
.entity-color-options { display: flex; flex-wrap: wrap; gap: 7px; }
.entity-form .entity-color-choice { position: relative; display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 5px 9px; border: 1px solid #e2e8dc; border-radius: 6px; background: #fff; cursor: pointer; }
.entity-color-choice:hover { border-color: #b0c59c; }
.entity-color-choice:has(input:checked) { border-color: #426639; background: #f2f7eb; box-shadow: 0 0 0 1px #426639; }
.entity-color-choice:has(input:focus-visible) { outline: 3px solid #9ac281; outline-offset: 3px; }
.entity-form .entity-color-choice input { position: absolute; width: 1px; height: 1px; min-height: 0; margin: 0; padding: 0; overflow: hidden; opacity: 0; }
.entity-color-swatch { flex: 0 0 14px; width: 14px; height: 14px; border: 1px solid rgb(0 0 0 / 6%); border-radius: 50%; background: var(--choice-color); }
.entity-color-name { color: #677b5d; font-size: 11px; font-weight: 400; }
.checkbox-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.entity-form .entity-person-option { display: flex; align-items: center; gap: 9px; min-width: 0; min-height: 62px; padding: 10px 11px; border: 1px solid #e2e8dc; border-radius: 7px; background: #fff; cursor: pointer; }
.entity-person-option:hover { border-color: #b2c79f; background: #fafcf6; }
.entity-person-option:has(input:checked) { border-color: #9dbd85; background: #f4f8ee; }
.entity-person-option.is-owner { background: #f0f3ed; cursor: default; }
.entity-form .entity-person-option input { flex: 0 0 15px; width: 15px; min-height: 15px; height: 15px; margin: 0; padding: 0; accent-color: #4b7440; }
.entity-person-option > span:first-of-type { display: block; min-width: 0; }
.entity-person-option strong { display: block; color: #4c6742; font-size: 12px; font-weight: 500; overflow-wrap: anywhere; }
.entity-person-option small { display: block; margin-top: 2px; color: #7d8c72; font-size: 10px; font-weight: 400; line-height: 1.5; overflow-wrap: anywhere; }
.entity-owner-tag { flex: 0 0 auto; margin-left: auto; padding: 2px 5px; border-radius: 4px; background: #e5ecdd; color: #698357; font-size: 9px; font-weight: 400; }
@media (max-width: 760px) {
  .entity-form > .form-footer { bottom: -20px; margin: 22px -19px -20px; }
  .checkbox-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entity-section-heading { gap: 12px; }
  .entity-section-heading > .button { white-space: nowrap; flex: 0 0 auto; }
  .entity-form .entity-color-choice { min-height: 38px; }
}
@media (max-width: 480px) {
  .entity-form > .form-footer { position: static; }
  .entity-section-heading { align-items: flex-start; flex-direction: column; }
  .entity-section-heading > .button { align-self: flex-end; }
  .checkbox-grid { grid-template-columns: 1fr; }
  .entity-owner-tag { font-size: 10px; }
}

/* Shared-team login and account chrome. */
[hidden] { display: none !important; }
.login-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); background: #f5f4ee; }
.login-story { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(36px, 7vw, 112px); color: #f5f4ee; background: #163c32; position: relative; overflow: hidden; }
.login-story::after { content: ''; position: absolute; width: 380px; height: 380px; border: 1px solid #ffffff15; border-radius: 50%; right: -180px; bottom: -100px; box-shadow: 0 0 0 65px #ffffff05, 0 0 0 130px #ffffff04; }
.login-story .brand-mark { background: #d7e5bd; color: #163c32; margin-bottom: 54px; }
.login-story .eyebrow { color: #b8c9a8; }
.login-story h1 { font-size: clamp(32px, 3.3vw, 54px); line-height: 1.45; letter-spacing: -.04em; margin: 16px 0 24px; }
.login-story p { color: #cfdbd0; font-size: 16px; line-height: 1.9; }
.login-tag { margin-top: 34px; padding: 8px 14px; border-radius: 24px; border: 1px solid #ffffff30; font-size: 12px; letter-spacing: .04em; }
.login-card { width: min(420px, calc(100% - 56px)); justify-self: center; align-self: center; padding: 38px; border: 1px solid #dfe3d7; background: #fffef9; border-radius: 16px; box-shadow: 0 16px 48px #163c3208; }
.login-card h2 { margin: 12px 0 10px; font-size: 27px; letter-spacing: -.025em; }
.login-card .field { margin-top: 22px; }
.login-card .button { width: 100%; justify-content: center; margin-top: 24px; }
.login-footnote { color: #7b8578; font-size: 12px; line-height: 1.8; margin: 24px 0 0; }
#login-message { margin-top: 18px; color: #a13a34; font-size: 13px; line-height: 1.7; }
.current-account { font-size: 12px; color: #526453; white-space: nowrap; }
.sync-status { font-size: 11px; color: #b6c8b7; line-height: 1.7; margin-top: 20px; max-width: 186px; }
.topbar-actions { flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.topbar-actions .button { padding: 6px 8px; }
.notice code { font-size: 12px; word-break: break-all; }
#account-form { margin-top: 20px; }
#account-message, #password-message { color: #a13a34; margin-top: 16px; font-size: 13px; line-height: 1.7; }
#password-form .field { margin-top: 20px; }
@media (max-width: 1000px) {
  .topbar { align-items: flex-start; gap: 14px; }
  .topbar .breadcrumb { padding-top: 7px; white-space: nowrap; }
  .topbar-actions .demo-pill { display: none; }
}
@media (max-width: 700px) {
  .login-screen { grid-template-columns: 1fr; }
  .login-story { min-height: auto; padding: 30px 28px; }
  .login-story .brand-mark { margin-bottom: 20px; }
  .login-story h1 { font-size: 29px; margin: 12px 0 8px; }
  .login-story h1 br { display: none; }
  .login-story p { font-size: 13px; margin: 4px 0; }
  .login-tag { margin-top: 15px; }
  .login-card { width: calc(100% - 40px); margin: 24px 0; padding: 28px; }
  .topbar { flex-direction: column; gap: 8px; }
  .topbar-actions { justify-content: flex-start; }
}
