
  :root {
    color-scheme: light;
    --asi-blue: #009FDA;
    --asi-navy: #06021F;
    --asi-deep: #002B45;
    --asi-gray: #F4F4F4;
    --asi-line: #E2E5E9;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body {
    font-family: "Roboto", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
    background: #fff;
    color: var(--asi-navy);
    line-height: 1.5;
  }

  /* ── Hamburger drawer (designs/hamburger-navigation.md) ── */
  .menu-btn {
    width: 42px; height: 38px; flex: 0 0 auto;
    background: transparent; border: 1px solid rgba(255,255,255,.35); border-radius: 8px;
    cursor: pointer; display: flex; flex-direction: column; justify-content: center;
    align-items: center; gap: 5px; padding: 0;
  }
  .menu-btn span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 1px; }
  .menu-btn:hover, .menu-btn:focus-visible {
    border-color: var(--asi-blue); outline: none; box-shadow: 0 0 0 2px rgba(0,159,218,.4);
  }
  #drawer[hidden] { display: none; }
  .layout { display: flex; align-items: flex-start; }
  #drawer {
    flex: 0 0 300px; position: sticky; top: 0; max-height: 100vh;
    background: #fff; border-right: 1px solid var(--asi-line);
    padding: 18px 12px; overflow-y: auto;
  }
  #drawer .nav-item {
    display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px;
    background: none; border: none; text-align: left; font: inherit; font-size: 14.5px;
    font-weight: 500; color: var(--asi-navy); padding: 10px 12px; border-radius: 8px; cursor: pointer;
  }
  #drawer .nav-item:hover, #drawer .nav-item:focus-visible { background: var(--asi-gray); outline: none; }
  #drawer .nav-item.active { background: #E6F6FC; color: #007FB0; }

  /* ── Section navigator (designs/section-navigator.md N2/N3) ──
     The drawer picks the section; this bar picks the view within it. */
  #navigator[hidden] { display: none; }
  /* the section name heads the page; the menu bar is a band beneath it, so
     it reads as a toolbar rather than as loose text (per Trevor, Aug 20 2026) */
  .nav-bar {
    display: flex; flex-direction: column; align-items: stretch; gap: 10px;
    padding: 14px 0 16px; margin-bottom: 18px; border-bottom: 1px solid var(--asi-line);
  }
  /* the open team manager's stamp, under the heading it belongs to (D14) */
  .nav-stamp {
    display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
    margin: -4px 0 2px; font-size: 12px; color: #5A5A66;
  }
  /* the stamp brings its own margin for slot rows — the flex gap is enough */
  .nav-stamp .stamp { margin-left: 0; }
  /* the unconfirmed reason: readable, but never louder than the value */
  .nav-stamp .nav-why { font-size: 12px; color: #6B6B76; font-style: italic; }
  .nav-bar .nav-menus {
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
    background: var(--asi-gray); border: 1px solid var(--asi-line);
    border-radius: 10px; padding: 7px 8px;
  }
  .nav-menu-wrap { position: relative; }
  /* each menu is visibly a button: its own surface, edge, and caret */
  .nav-bar .nav-menu {
    display: flex; align-items: center; gap: 7px;
    background: #fff; border: 1px solid #D4D9E0; border-radius: 7px;
    box-shadow: 0 1px 1px rgba(6,2,31,.05);
    font: inherit; font-size: 13.5px; font-weight: 500; color: var(--asi-navy);
    padding: 7px 12px; cursor: pointer;
    transition: border-color .12s, background .12s, box-shadow .12s;
  }
  .nav-bar .nav-menu::after {
    content: "▾"; color: var(--asi-blue); font-size: 10px; line-height: 1;
  }
  .nav-bar .nav-menu:hover {
    border-color: var(--asi-blue); box-shadow: 0 2px 5px rgba(6,2,31,.10);
  }
  .nav-bar .nav-menu:focus-visible {
    outline: none; border-color: var(--asi-blue); box-shadow: 0 0 0 3px rgba(0,159,218,.30);
  }
  .nav-bar .nav-menu:active { box-shadow: inset 0 1px 2px rgba(6,2,31,.12); }
  /* the open menu is pressed in, and its caret has flipped */
  .nav-bar .nav-menu.open {
    background: #E6F6FC; border-color: var(--asi-blue); color: #007FB0;
    box-shadow: inset 0 1px 2px rgba(0,159,218,.18);
  }
  .nav-bar .nav-menu.open::after { content: "▴"; }
  /* a menu is a raised button; a tab is a flat destination with an underline
     when you are on it — the two must not look alike (N16) */
  .nav-bar .nav-tab {
    background: none; border: 1px solid transparent; border-bottom: 2px solid transparent;
    border-radius: 6px 6px 0 0;
    font: inherit; font-size: 13.5px; font-weight: 500; color: #4a5163;
    padding: 7px 11px; cursor: pointer;
  }
  .nav-bar .nav-tab:hover { color: var(--asi-navy); border-bottom-color: #C4CBD4; }
  .nav-bar .nav-tab:focus-visible {
    outline: none; border-color: var(--asi-blue); border-radius: 6px;
  }
  .nav-bar .nav-tab.selected {
    color: #007FB0; border-bottom-color: var(--asi-blue); background: #fff;
  }
  /* the menu and the tabs are different kinds of thing — space them apart */
  .nav-bar .nav-menu-wrap { margin-right: 8px; }

  /* an area that is named but not built says so where its content would be
     (N18) — the page-level twin of a red "not recorded" slot */
  .area-note {
    border-left: 3px solid #C8102E; background: #FFF5F6;
    border-radius: 0 8px 8px 0; padding: 16px 18px;
    display: flex; flex-direction: column; gap: 10px;
    font-size: 14px; line-height: 1.5; color: #4a5163; max-width: 70ch;
  }
  .nav-menu-panel {
    position: absolute; top: calc(100% + 4px); left: 0; z-index: 20;
    min-width: 210px; max-width: 320px;
    background: #fff; border: 1px solid var(--asi-line); border-radius: 8px;
    box-shadow: 0 6px 20px rgba(6,2,31,.12); padding: 6px;
    display: flex; flex-direction: column;
  }
  .nav-menu-item {
    background: none; border: none; text-align: left; font: inherit; font-size: 14px;
    color: var(--asi-navy); padding: 8px 10px; border-radius: 6px; cursor: pointer;
    white-space: nowrap;
  }
  .nav-menu-item:hover, .nav-menu-item:focus-visible { background: var(--asi-gray); outline: none; }
  /* a planned area says so plainly — the navigation equivalent of a red
     "not recorded" slot (N14) */
  .nav-menu-note {
    padding: 10px; font-size: 12.5px; line-height: 1.45; color: #6b7280;
    border-left: 3px solid #C8102E; background: #FFF5F6; border-radius: 0 6px 6px 0;
  }

  /* ── Team Allocations grid (designs/proposed-allocations.md P10/P11) ──
     committed reads solid, proposed reads as an addition you can ignore. */
  .include-review {
    display: flex; align-items: center; gap: 8px; font-size: 13px;
    color: var(--asi-navy); margin-bottom: 12px;
  }
  .breach-list { list-style: none; padding: 0; margin: 0 0 14px; font-size: 13px; }
  .breach-list li { margin-bottom: 4px; }
  .breach-list.none { color: #5A5A66; }
  .alloc-grid { border-collapse: collapse; font-size: 13px; }
  .alloc-grid th, .alloc-grid td {
    border-bottom: 1px solid var(--asi-line); padding: 7px 12px; text-align: left;
  }
  .alloc-grid th.alloc-month {
    font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: var(--asi-deep); white-space: nowrap;
  }
  .alloc-grid th.alloc-person { font-weight: 500; color: var(--asi-navy); white-space: nowrap; }
  .alloc-cell.empty { color: #B3B3BB; }
  .alloc-cell .committed { font-weight: 500; color: var(--asi-navy); }
  .alloc-cell .proposed { color: #8A6A00; }
  .alloc-cell.over { background: #FDF3F3; }
  /* "over" is its own badge: .state.missing means "not recorded" everywhere
     else in the app, and red must not mean two things on one screen */
  .state.over { background: #FBE9E9; color: #A32020; }

  /* ── Open picker (designs/section-navigator.md N10) ──
     A modal that reads like a file explorer: one folder row per view. */
  #picker[hidden] { display: none; }
  #picker { position: fixed; inset: 0; z-index: 100; display: flex;
    align-items: center; justify-content: center; padding: 24px; }
  .picker-backdrop { position: absolute; inset: 0; background: rgba(6,2,31,.45); }
  .picker-panel {
    position: relative; z-index: 1; width: min(460px, 100%);
    background: #fff; border-radius: 12px; box-shadow: 0 18px 50px rgba(6,2,31,.32);
    padding: 20px; display: flex; flex-direction: column; gap: 14px;
  }
  .picker-title { font-size: 16px; font-weight: 500; color: var(--asi-deep); }
  /* the search box (N31) — same input treatment as the form fields, so the
     picker doesn't grow its own idiom */
  .picker-find { display: block; }
  .picker-search {
    width: 100%; font: inherit; font-size: 14px; color: var(--asi-navy);
    padding: 9px 12px; border: 1px solid var(--asi-line); border-radius: 8px;
    background: #fff;
  }
  .picker-search:focus-visible {
    border-color: var(--asi-blue); outline: none; box-shadow: 0 0 0 3px rgba(0,159,218,.18);
  }
  /* a label the screen reader reads and the eye never sees — the placeholder
     alone is not an accessible name */
  .sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  /* the tree (N22): folders stay put, records nest under them. Flat rows —
     a tree is a list you can read, not a grid of raised buttons. */
  .picker-tree {
    display: flex; flex-direction: column; gap: 1px;
    max-height: 52vh; overflow-y: auto; margin: 2px 0;
  }
  .folder, .file {
    display: flex; align-items: center; gap: 9px; width: 100%;
    background: none; border: none; border-radius: 6px;
    font: inherit; color: var(--asi-navy);
    padding: 7px 10px; cursor: pointer; text-align: left;
  }
  .folder { font-size: 14px; font-weight: 500; }
  .file { font-size: 14px; }
  .folder:hover, .file:hover { background: var(--asi-gray); }
  .folder:focus-visible, .file:focus-visible {
    outline: none; background: var(--asi-gray); box-shadow: inset 0 0 0 1.5px var(--asi-blue);
  }
  .twisty {
    flex: 0 0 auto; width: 13px; text-align: center;
    color: #5c6373; font-size: 11px; line-height: 1;
  }
  /* a folder, drawn in CSS — no icon font, no external asset */
  .folder-icon {
    flex: 0 0 auto; width: 17px; height: 13px; border-radius: 1.5px 2.5px 2.5px 2.5px;
    background: #F0B429; position: relative;
  }
  .folder-icon::before {
    content: ""; position: absolute; top: -3px; left: 0; width: 7px; height: 3px;
    border-radius: 1.5px 1.5px 0 0; background: #F0B429;
  }
  .folder-name { flex: 1 1 auto; }
  /* the count is a plain fact — 0 is said out loud, never hidden */
  .folder-count { flex: 0 0 auto; font-size: 12px; color: #8a90a0; font-weight: 400; }
  .folder.current .folder-name { color: #007FB0; }

  /* the records inside, indented with a guide line like an explorer tree */
  .tree-children {
    display: flex; flex-direction: column; gap: 1px;
    margin: 1px 0 3px 20px; padding-left: 12px; border-left: 1px solid var(--asi-line);
  }
  /* a document, drawn in CSS */
  .file-icon {
    flex: 0 0 auto; width: 12px; height: 15px; border-radius: 1.5px;
    background: #fff; border: 1.5px solid #a8aeba; position: relative;
  }
  .file-icon::before {
    content: ""; position: absolute; top: 2.5px; left: 2px; right: 2px; height: 1.5px;
    background: #ccd1da; box-shadow: 0 3.5px 0 #ccd1da, 0 7px 0 #ccd1da;
  }
  .file-name { flex: 1 1 auto; }
  /* the record already open */
  .file.current .file-name { color: #007FB0; font-weight: 500; }
  .file.current::after { content: "open"; font-size: 11px; color: #007FB0; }
  .picker-empty {
    padding: 6px 10px; font-size: 12.5px; color: #8a90a0; font-style: italic;
  }
  .picker-actions { display: flex; justify-content: flex-end; }

  /* one open record's area page (N21) — a panel, not a record card */
  .area-panel {
    border: 1px solid var(--asi-line); border-radius: 10px; padding: 16px 18px;
    display: flex; flex-direction: column; gap: 10px;
  }

  /* ── Header band, navy like the site ── */
  .hero {
    background: var(--asi-navy);
    color: #fff;
    padding: 26px 24px 22px;
  }
  .brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
  .brand svg { display: block; }
  .brand .wordmark { font-weight: 900; font-size: 20px; letter-spacing: .12em; }
  .brand .wordmark .accent { color: var(--asi-blue); }
  .hero h1 { font-size: 24px; font-weight: 700; letter-spacing: .01em; }
  .hero .sub { color: rgba(255,255,255,.6); font-size: 13.5px; margin-top: 4px; font-weight: 300; }
  .hero .rule { height: 3px; width: 64px; background: var(--asi-blue); border-radius: 2px; margin-top: 14px; }

  .wrap { flex: 1; min-width: 0; max-width: 1100px; margin: 0; padding: 24px 24px 64px; }

  /* ── Phone: the drawer overlays instead of pushing (designs/left-justified-layout.md) ── */
  @media (max-width: 700px) {
    #drawer {
      position: fixed; left: 0; top: 0; bottom: 0; width: min(300px, 85vw);
      max-height: none; z-index: 20; box-shadow: 4px 0 18px rgba(6,2,31,.18);
    }
    .hero { padding: 18px 16px 16px; }
    .hero h1 { font-size: 20px; }
    .wrap { padding: 16px 16px 48px; }
  }

  /* ── Legend ── */
  .legend {
    display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
    background: var(--asi-gray); border-radius: 10px;
    padding: 12px 16px; margin-bottom: 24px; font-size: 12.5px;
  }
  .legend .lead { font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: .08em; color: var(--asi-deep); }
  .legend .item { display: flex; align-items: center; gap: 6px; color: #55596b; }
  .tag {
    display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .06em;
    padding: 2px 8px; border-radius: 4px; text-transform: uppercase;
  }
  .tag.def  { background: #E6F6FC; color: #007FB0; }
  .tag.std  { background: #06021F; color: #fff; }
  .tag.fact { background: #009FDA; color: #fff; }

  /* ── Section cards ── */
  section.card {
    border: 1px solid var(--asi-line); border-radius: 12px;
    margin-bottom: 18px; overflow: hidden; background: #fff;
  }
  .card.draft { opacity: .72; }
  .card-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px;
    background: linear-gradient(to right, var(--asi-gray), #fff);
    border-bottom: 1px solid var(--asi-line);
  }
  .card-head .title { font-size: 15px; font-weight: 700; color: var(--asi-deep); display: flex; align-items: center; gap: 10px; }
  .status {
    font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    padding: 3px 10px; border-radius: 20px;
  }
  .status.confirmed { background: var(--asi-blue); color: #fff; }
  .status.draft { background: #E2E5E9; color: #6b7183; }

  ul.slots { list-style: none; padding: 4px 0; }
  ul.slots li {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 11px 20px; border-bottom: 1px solid #F4F5F7;
  }
  ul.slots li:last-child { border-bottom: none; }
  .slot-main { flex: 1; }
  .slot-name { font-size: 14px; font-weight: 500; }
  .slot-note { font-size: 12.5px; color: #6b7183; margin-top: 2px; font-weight: 300; }

  /* charge code for SAP time entry (charge-codes C5) */
  .charge-code {
    padding: 11px 20px; border-bottom: 1px solid #F4F5F7; background: #FAFBFC;
  }
  .charge-code a { color: var(--asi-blue); font-weight: 500; }
  .charge-unconfirmed-row {
    display: flex; gap: 8px; align-items: center; font-size: 13px;
    color: #6b7183; margin: -6px 0 4px;
  }

  .footer-note {
    margin-top: 28px; font-size: 12.5px; color: #6b7183; font-weight: 300;
    border-top: 3px solid var(--asi-blue); padding-top: 14px;
  }
  .footer-note b { color: var(--asi-deep); }

  /* ── Banner, values ── */
  .banner {
    display:flex; gap:10px; align-items:baseline; flex-wrap:wrap;
    background:#E6F6FC; border:1px solid #BFE8F7; border-radius:10px;
    padding:10px 16px; margin-bottom:18px; font-size:12.5px; color:#00587A;
  }
  .banner b { color:#003B53; }
  .val { font-size:13.5px; margin-top:3px; }
  .val ul { margin:4px 0 0 18px; }
  .val li { padding:1px 0; border:none; display:list-item; }
  .stamp {
    display:inline-block; margin-left:8px; font-size:10.5px; color:#6b7183; font-weight:400;
    white-space:nowrap;
  }
  .state {
    display:inline-block; font-size:10px; font-weight:700; letter-spacing:.05em;
    padding:2px 8px; border-radius:4px; text-transform:uppercase; margin-left:8px;
  }
  .state.missing { background:#FDECEC; color:#B42318; }
  .state.unconfirmed { background:#FFF4E5; color:#B54708; }
  /* draft badge — informational, not a gap (project-record-states R2) */
  .state.record-state { background:#E6F6FC; color:#007FB0; }
  .graph-card { padding:18px; overflow-x:auto; }

  /* ── Team page assign controls (designs/resources-teams.md) ── */
  .assign { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-top:8px; }
  .assign select, .assign input {
    font:inherit; font-size:12.5px; padding:4px 8px;
    border:1px solid var(--asi-line); border-radius:6px; background:#fff;
  }
  .assign input { width:70px; }
  .assign button {
    font:inherit; font-size:12.5px; font-weight:600; color:#fff;
    background:var(--asi-blue); border:none; border-radius:6px; padding:5px 14px; cursor:pointer;
  }
  .assign button:hover, .assign button:focus-visible { background:#007FB0; outline:none; }
  .assign-err { font-size:12px; color:#B42318; }


  /* ── Buttons (designs/projects-page.md D10) ── */
  .btn {
    font: inherit; font-size: 13px; font-weight: 600; letter-spacing: .01em;
    border-radius: 8px; padding: 9px 18px; cursor: pointer; border: 1px solid transparent;
  }
  .btn.primary { background: var(--asi-blue); color: #fff; }
  .btn.primary:hover, .btn.primary:focus-visible {
    background: #007FB0; outline: none; box-shadow: 0 0 0 2px rgba(0,159,218,.35);
  }
  .btn.ghost { background: #fff; color: var(--asi-deep); border-color: var(--asi-line); }
  .btn.ghost:hover, .btn.ghost:focus-visible {
    border-color: var(--asi-blue); color: #007FB0; outline: none;
  }
  .btn.small { font-size: 12px; padding: 4px 12px; }

  /* ── Project add/edit form — its own page, no card box ── */
  .project-form { max-width: 900px; }
  .field-label {
    display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: var(--asi-deep); margin-bottom: 6px;
  }
  .roles-label { margin-top: 20px; }
  .field input[type="text"] {
    width: 100%; max-width: 480px; font: inherit; font-size: 14px; color: var(--asi-navy);
    padding: 10px 12px; border: 1px solid var(--asi-line); border-radius: 8px; background: #fff;
  }
  .field input[type="text"]:focus-visible {
    border-color: var(--asi-blue); outline: none; box-shadow: 0 0 0 3px rgba(0,159,218,.18);
  }
  .role-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px; margin-top: 2px;
  }
  .role-row {
    border: 1px solid var(--asi-line); border-radius: 10px; background: #fff;
    transition: border-color .12s ease;
  }
  .role-row:hover, .role-row:focus-within {
    border-color: var(--asi-blue); box-shadow: 0 0 0 3px rgba(0,159,218,.10);
  }
  .role-row label {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 14px; cursor: pointer;
  }
  .role-row .role-name { font-size: 13.5px; font-weight: 500; display: block; }
  .role-row .role-hint { display: block; font-size: 11px; color: #6b7183; font-weight: 300; }
  .role-row input[type="checkbox"] {
    width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--asi-blue); cursor: pointer;
  }
  .role-row input[type="number"] {
    width: 64px; flex: 0 0 auto; font: inherit; font-size: 13px; text-align: center;
    padding: 6px 8px; border: 1px solid var(--asi-line); border-radius: 6px; background: #fff;
  }
  .role-row input[type="number"]:focus-visible {
    border-color: var(--asi-blue); outline: none; box-shadow: 0 0 0 3px rgba(0,159,218,.18);
  }
  .form-error { color: #B42318; font-size: 12.5px; min-height: 18px; margin-top: 14px; }
  .form-actions { display: flex; gap: 10px; margin-top: 6px; }
  .empty-state {
    border: 1px dashed var(--asi-line); border-radius: 12px; padding: 28px 20px;
    text-align: center; color: #6b7183; font-size: 13.5px; margin-bottom: 18px;
  }
  .card-actions { display: flex; gap: 8px; flex: 0 0 auto; align-items: center; }
  .btn.danger { background: #fff; color: #B42318; border-color: #F0C4C0; }
  .btn.danger:hover, .btn.danger:focus-visible {
    background: #B42318; color: #fff; border-color: #B42318; outline: none;
  }

  /* Permissions page (designs/organizer-roles.md R7) */
  .card .form-actions { padding: 0 18px 14px; }
  select.grant-role {
    font: inherit; font-size: 13px; padding: 6px 10px; background: #fff;
    border: 1px solid var(--asi-line); border-radius: 6px; color: var(--asi-deep);
  }
  select.grant-role:focus-visible {
    border-color: var(--asi-blue); outline: none; box-shadow: 0 0 0 3px rgba(0,159,218,.18);
  }
  .revoke-grant { margin-left: 10px; }
  .gated-actions {
    border: 1px solid var(--asi-line); border-radius: 12px; padding: 14px 18px;
    background: #fff; font-size: 13.5px; margin-top: 4px;
  }
  .gated-actions ul { margin: 8px 0 0; padding-left: 18px; }
  .gated-actions li { margin: 4px 0; }

/* Allocations (designs/allocations.md A6/A9/A10) */
.alloc-line {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: #3d4356; margin-top: 4px; font-weight: 300;
}
.alloc-total { font-size: 12.5px; color: #06021F; margin-top: 4px; font-weight: 500; }
.allocate-member { margin-top: 6px; }
.fill-bar {
  height: 6px; border-radius: 3px; background: #E4E7EE;
  margin: 6px 0 2px; overflow: hidden; max-width: 420px;
}
.fill-bar .fill { display: block; height: 100%; background: #009FDA; border-radius: 3px; }

/* Portfolio mapping tree (portfolio-mapping P9, amended): item card body is
   a connector-line tree — project branches, people leaves. */
.tree, .tree-children { list-style: none; margin: 4px 0 4px 6px; padding: 0; }
.tree-node { position: relative; padding: 3px 0 3px 18px; font-size: 14px; }
.tree-node::before {
  content: ""; position: absolute; left: 4px; top: -6px; bottom: 50%;
  width: 10px; border-left: 1px solid #C9CFD6; border-bottom: 1px solid #C9CFD6;
  border-bottom-left-radius: 4px;
}
.tree-node:last-child::after {
  content: ""; position: absolute; left: 4px; top: 50%; bottom: 0; border-left: 1px solid #fff;
}
.tree-label { font-weight: 500; }
.tree-person { color: #3A4656; }
.resources { border-top: 1px solid var(--asi-line); margin-top: 8px; padding-top: 6px; }
.resources .field-label { display: block; margin-bottom: 2px; }

/* Demand vs assigned trend graph (designs/monthly-allocations.md M5).
   Assigned #007FB0 (validated: chroma, CVD, 3:1 contrast on white);
   demand is a dashed neutral reference line — identity also carried by
   the legend and direct labels, never color alone. */
.trend-wrap { margin: 10px 0 4px; max-width: 560px; }
.trend { display: block; width: 100%; height: auto; }
.trend-legend {
  display: flex; gap: 16px; font-size: 12px; color: #3d4356; margin-bottom: 2px;
}
.trend-legend .legend-item { display: inline-flex; align-items: center; gap: 6px; }
.trend-legend .swatch { width: 14px; height: 0; display: inline-block; }
.trend-legend .swatch-demand { border-top: 2px dashed #5B6470; }
.trend-legend .swatch-assigned { border-top: 2px solid #007FB0; }
/* proposed: dashed and warmer, so it never reads as a commitment (P9) */
.trend-legend .swatch-proposed { border-top: 2px dashed #B58900; }
.trend-grid { stroke: #E4E7EE; stroke-width: 1; }
.trend-now { stroke: #C9CFD6; stroke-width: 1; stroke-dasharray: 2 3; }
.trend-demand { stroke: #5B6470; stroke-width: 2; stroke-dasharray: 6 4; fill: none; }
.trend-assigned { stroke: #007FB0; stroke-width: 2; fill: none; }
.trend-proposed { stroke: #B58900; stroke-width: 2; stroke-dasharray: 5 3; fill: none; }
.trend-pt circle { fill: #007FB0; stroke: #fff; stroke-width: 2; }
.trend-pt .trend-hit { fill: transparent; stroke: none; }
.trend-pt:hover circle:not(.trend-hit) { r: 5; }
.trend-label, .trend-axis { font-size: 11px; fill: #3d4356; }

/* Per-project allocation bar graph on Teams rows (M8) — same assigned
   blue as the trend; each bar is a click target that edits its month. */
.alloc-line svg.spark { flex: 0 0 auto; }
.spark-base { stroke: #E4E7EE; stroke-width: 1; }
.spark-bar rect { fill: #007FB0; }
.spark-bar { cursor: pointer; }
.spark-bar:hover rect:not(.spark-hit) { fill: #06021F; }
.spark-bar .spark-hit { fill: transparent; }
.spark-now { fill: #F4F4F4; }
.spark-axis { font-size: 9px; fill: #6b7183; }
