
    :root {
      color-scheme: light;
      --ink: #17211d;
      --muted: #5f6b64;
      --line: #e8ebe8;
      --surface: #fff;
      --canvas: #f6f7f5;
      --green: #256b4b;
      --green-dark: #1d573c;
      --green-light: #eaf4ee;
      --amber: #9a6616;
      --amber-light: #fff4df;
      --blue: #4168a3;
      --blue-light: #edf2fb;
      --red: #b44e48;
      --red-light: #fbefed;
      --shadow: 0 16px 48px rgb(25 44 34 / 12%);
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      font-synthesis: none;
      text-rendering: optimizeLegibility;
      -webkit-font-smoothing: antialiased;
    }
    :root[data-theme="dark"] {
      color-scheme: dark;
      --ink: #eceef1;
      --muted: #afb5be;
      --line: #363a43;
      --surface: #1b1e24;
      --canvas: #111318;
      --green: #6f9fe8;
      --green-dark: #a8c7fa;
      --green-light: #273142;
      --amber: #efc36c;
      --amber-light: #40351f;
      --blue: #8aafe8;
      --blue-light: #26344a;
      --red: #ee8a80;
      --red-light: #422b29;
      --shadow: 0 16px 48px rgb(0 0 0 / 45%);
      --time-color-lightness: 65%;
    }

    * { box-sizing: border-box; }
    html { scrollbar-gutter: stable; }
    body { margin: 0; min-height: 100vh; background: var(--canvas); color: var(--ink); transition: background-color .24s ease; }
    body.hot-project-active { background: #ffefed; }
    button, input, select, textarea { font: inherit; }
    button { cursor: pointer; font-size: 13px; }
    .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }

    .app { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: 100vh; }
    .sidebar { position: sticky; top: 0; display: flex; align-self: start; height: 100vh; height: 100dvh; min-height: 0; flex-direction: column; gap: clamp(12px, 3vh, 28px); padding: clamp(12px, 2.5vh, 22px) 14px; border-right: 1px solid var(--line); background: #fbfcfa; }
    .sidebar-nav { display: flex; flex-direction: column; gap: clamp(5px, 1.3vh, 10px); }
    .sidebar-nav-section { display: grid; gap: clamp(5px, 1.3vh, 10px); }
    .sidebar-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding: 12px 9px 2px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
    .sidebar-footer a { color: inherit; text-decoration: none; }
    .sidebar-footer a:hover { color: var(--green-dark); }
    .sidebar-footer a:focus-visible { border-radius: 2px; outline: 2px solid #9bc9aa; outline-offset: 3px; }
    .nav-item { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border: 0; border-radius: 8px; background: transparent; color: #55625a; font-size: 13px; font-weight: 600; text-align: left; }
    .nav-item[hidden] { display: none; }
    .nav-item svg, .nav-item span { transform: translateY(0); transition: transform .16s ease-out; }
    .nav-item svg { transform-origin: center; }
    .nav-item:hover svg { transform: translateY(-2px) scale(1.05); }
    .nav-item:hover span, .nav-item:focus-visible span { transform: translateY(-2px); }
    .nav-item:focus-visible svg { transform: translateY(-2px) scale(1.05); }
    .nav-item:hover { background: #eef3ee; color: var(--ink); }
    .nav-item.active { background: #e3eee6; color: var(--green-dark); }
    .nav-item-sub { margin-left: 16px; padding-left: 11px; border-left: 1px solid var(--line); border-radius: 0 8px 8px 0; }
    .nav-item:focus-visible { outline: 3px solid #9bc9aa; outline-offset: 2px; }
    @media (max-height: 700px) and (min-width: 821px) {
      .sidebar { gap: 10px; padding-top: 10px; padding-bottom: 10px; }
      .nav-item { padding-top: 6px; padding-bottom: 6px; }
      .sidebar-footer { padding-top: 6px; }
    }
    @media (max-height: 480px) and (min-width: 821px) {
      .sidebar { gap: 6px; padding-top: 6px; padding-bottom: 6px; }
      .nav-item { padding-top: 4px; padding-bottom: 4px; }
      .sidebar-footer { padding-top: 4px; }
    }
    .brand { display: flex; align-items: center; padding: 0 9px; }
    a.brand { color: inherit; text-decoration: none; }
    a.brand:focus-visible { border-radius: 8px; outline: 3px solid #9bc9aa; outline-offset: 4px; }
    .brand-name { font-size: 20px; font-weight: 600; letter-spacing: -.45px; }
    .brand-name span { color: var(--green); }

    .main { width: 100%; max-width: 1440px; min-width: 0; margin: 0 auto; padding: 0 48px 60px; }
    .main:has(.team-list-view:not([hidden])) { display: flex; min-height: 100vh; min-height: 100dvh; flex-direction: column; }
    .main:has(.team-list-view:not([hidden])) .content { display: flex; min-height: 0; flex: 1 1 auto; flex-direction: column; }
    .main.proofing-active { display: flex; height: 100vh; height: 100dvh; flex-direction: column; overflow: hidden; padding-bottom: 0; }
    .topbar { display: flex; height: 72px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
    .main.proofing-active .topbar { flex: 0 0 auto; }
    .topbar-actions { display: flex; align-items: center; gap: 10px; }
    .theme-toggle { display: inline-grid; width: 34px; height: 34px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--ink); }
    :root:not([data-theme="dark"]) .theme-toggle { border: 0; background: transparent; }
    :root[data-theme="dark"] .theme-toggle { border: 0; background: transparent; }
    .theme-toggle .theme-icon-sun { display: none; }
    :root[data-theme="dark"] .theme-toggle .theme-icon-moon { display: none; }
    :root[data-theme="dark"] .theme-toggle .theme-icon-sun { display: block; }
    :root[data-theme="dark"] .theme-toggle:hover { color: var(--green-dark); }
    .theme-toggle:hover { background: var(--green-light); color: var(--green-dark); }
    :root:not([data-theme="dark"]) .theme-toggle:hover { background: transparent; }
    :root[data-theme="dark"] .theme-toggle:hover { background: transparent; }
    .theme-toggle:focus-visible { outline: 3px solid #9bc9aa; outline-offset: 2px; }
    .notification-button { position: relative; display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #66736b; }
    .notification-button:hover { border-color: var(--line); background: #fff; color: var(--green-dark); }
    .notification-button:focus-visible { outline: 3px solid #9bc9aa; outline-offset: 2px; }
    .notification-count { position: absolute; top: -4px; right: -4px; display: grid; min-width: 17px; height: 17px; place-items: center; padding: 0 4px; border: 2px solid var(--canvas); border-radius: 10px; background: var(--red); color: #fff; font-size: 13px; font-weight: 700; }
    .notification-count[hidden] { display: none; }
    .breadcrumb { color: #87908b; font-size: 13px; }
    .breadcrumb strong { color: #39443e; font-weight: 620; }
    .user { display: flex; align-items: center; gap: 10px; }
    .user-avatar { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 50%; background: #e7eee8; color: var(--green-dark); font-size: 13px; font-weight: 700; }
    .user-name { font-size: 13px; font-weight: 620; }
    .profile-button { padding: 5px 8px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); }
    .profile-button:hover { background: #f0f4f0; }
    .permission-preview-control { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }
    .permission-preview-control select { min-height: 36px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--ink); font-size: 13px; }
    .permission-preview-control[hidden], .permission-preview-banner[hidden] { display: none; }
    .permission-preview-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0 0; padding: 9px 12px; border: 1px solid #e5c780; border-radius: 7px; background: #fff8e8; color: #70531a; font-size: 13px; }
    .permission-preview-banner button { padding: 3px 7px; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 650; text-decoration: underline; }
    .profile-button:focus-visible { outline: 3px solid #9bc9aa; outline-offset: 2px; }

    .content { width: 100%; }
    .main.proofing-active .content { display: flex; min-height: 0; flex: 1 1 auto; flex-direction: column; }
    .page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 39px 0 27px; }
    .page-heading[hidden], .view-tabs[hidden] { display: none; }
    .eyebrow { margin-bottom: 8px; color: var(--green); font-size: 13px; font-weight: 750; letter-spacing: 1.4px; text-transform: uppercase; }
    h1 { margin: 0; font-size: clamp(25px, 3vw, 32px); font-weight: 690; letter-spacing: -1.2px; }
    .subtitle { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
    .primary-button {
      display: inline-flex;
      min-height: 40px;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 0 15px;
      border: 0;
      border-radius: 8px;
      background: var(--green);
      color: #fff;
      font-size: 13px;
      font-weight: 650;
      box-shadow: 0 2px 4px rgb(31 92 62 / 13%);
      transition: background .15s, transform .15s;
    }
    .primary-button:hover { transform: translateY(-1px); background: var(--green-dark); }
    .outline-button { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 8px; padding: 0 15px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--green-dark); font-size: 13px; font-weight: 650; text-decoration: none; transition: background .15s, border-color .15s; }
    .outline-button[hidden] { display: none; }
    .outline-button:hover { border-color: #cbd9ce; background: #f8faf8; }
    .primary-button:focus-visible, .outline-button:focus-visible, .icon-button:focus-visible, .filter-control:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #9bc9aa; outline-offset: 2px; }

    .stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 24px; }
    .stat-card { padding: 17px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
    .stat-label { display: flex; align-items: center; gap: 7px; color: #7d8781; font-size: 13px; font-weight: 550; }
    .stat-dot { width: 7px; height: 7px; border-radius: 50%; background: #9ca69f; }
    .stat-dot.green { background: #4f9b6d; }
    .stat-dot.amber { background: #dfa33c; }
    .stat-dot.blue { background: #6589c0; }
    .stat-value { margin-top: 12px; font-size: 25px; font-weight: 690; letter-spacing: -.8px; }

    .project-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
    .panel-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
    .panel-title { font-size: 13px; font-weight: 680; }
    .panel-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
    .project-view-toolbar { display: flex; min-height: 54px; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; padding: 9px 18px; border-bottom: 1px solid var(--line); background: #fafbfa; color: var(--muted); font-size: 13px; }
    .project-view-toolbar-actions { display: inline-flex; min-width: 0; align-items: center; flex-wrap: wrap; gap: 8px; }
    .project-view-toolbar select { min-height: 34px; max-width: 210px; padding: 4px 30px 4px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--ink); font-size: 13px; }
    .project-view-toolbar-actions .outline-button, .project-bulk-actions .outline-button { min-height: 34px; padding: 0 11px; font-size: 13px; }
    .project-view-toolbar-actions .outline-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
    .project-bulk-actions { display: inline-flex; align-items: center; gap: 7px; }
    .project-view-toolbar-actions { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
    .project-bulk-actions[hidden] { display: none; }
    [data-select-project], [data-select-all-projects] { width: 15px; height: 15px; accent-color: var(--green); cursor: pointer; }
    .project-search-combo { display: flex; width: 300px; min-width: 230px; height: 34px; align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
    .project-search-combo:focus-within { outline: 3px solid #9bc9aa; outline-offset: 2px; }
    .project-search-combo .search-wrap { min-width: 0; flex: 1 1 auto; }
    .project-search-combo .search { width: 100%; height: 32px; border: 0; border-radius: 0; background: transparent; }
    .project-search-combo .search:focus-visible { outline: 0; }
    .saved-views-control { position: relative; display: flex; width: 42px; min-width: 42px; height: 32px; flex: 0 0 42px; align-items: center; justify-content: center; border-left: 1px solid var(--line); color: #7b8780; }
    .saved-views-icon { width: 14px; height: 14px; flex: 0 0 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
    .project-search-combo .saved-views-control select { position: absolute; inset: 0; width: 100%; min-width: 0; height: 100%; padding: 0; appearance: none; opacity: 0; cursor: pointer; }
    .project-search-combo select:focus-visible { outline: 0; }
    .search-saved-delete { display: inline-grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; padding: 0; border: 0; border-radius: 5px; background: transparent; color: var(--muted); }
    .search-saved-delete:hover { background: var(--red-light); color: var(--red); }
    .search-saved-delete:focus-visible { outline: 2px solid #9bc9aa; outline-offset: -2px; }
    .search-saved-delete[hidden] { display: none; }
    .search-saved-delete svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
    .search-wrap { position: relative; }
    .search-icon { position: absolute; top: 50%; left: 10px; color: #8c9690; transform: translateY(-50%); pointer-events: none; }
    .search {
      width: 214px;
      height: 34px;
      padding: 0 10px 0 32px;
      border: 1px solid var(--line);
      border-radius: 7px;
      background: #fff;
      color: var(--ink);
      font-size: 13px;
    }
    .search::placeholder { color: #9aa29d; }
    .filter-control { height: 34px; padding: 0 28px 0 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: #56615b; font-size: 13px; }
    .filter-control option, .saved-views-control select option { max-width: 180px; font-size: 13px; }
    .table-scroll { overflow-x: auto; }
    table { width: 100%; border-collapse: collapse; text-align: left; }
    thead { background: #fafbfa; }
    .sort-button { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; font: inherit; letter-spacing: inherit; text-transform: inherit; }
    .sort-button:hover, th[aria-sort="ascending"] .sort-button, th[aria-sort="descending"] .sort-button { color: var(--green-dark); }
    .sort-button:focus-visible { outline: 3px solid #9bc9aa; outline-offset: 3px; border-radius: 3px; }
    .sort-indicator { font-size: 13px; }
    th { height: 39px; padding: 0 17px; color: #89928d; font-size: 13px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; white-space: nowrap; }
    td { height: 67px; padding: 0 17px; border-top: 1px solid #eef0ee; color: #56615b; font-size: 13px; white-space: nowrap; }
    tbody tr { transition: background-color .12s; }
    tbody tr > td { transition: background-color .22s ease, box-shadow .22s ease; }
    tbody tr[data-project-row] { cursor: pointer; }
    tbody tr[data-project-row]:focus-visible { outline: 2px solid #9bc9aa; outline-offset: -2px; }
    tbody tr:hover { background: #fcfdfc; }
    tbody tr.project-row-working > td { background: #f1f7f2; }
    tbody tr.project-row-working > td:first-child { box-shadow: inset 3px 0 var(--green); }
    .active-work-indicator { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; color: var(--green-dark); vertical-align: middle; }
    .active-work-avatar { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid #fff; border-radius: 50%; background: #dcebe0; color: #31583e; font-size: 13px; font-weight: 750; }
    .active-work-more { font-size: 13px; font-weight: 700; }
    .project-name { max-width: 250px; overflow: hidden; color: #27332c; font-size: 13px; font-weight: 650; text-overflow: ellipsis; }
    .project-name-button { max-width: 250px; overflow: hidden; padding: 0; border: 0; background: transparent; color: #27332c; font-size: 13px; font-weight: 650; text-align: left; text-overflow: ellipsis; }
    .project-name-button:hover { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
    .route-proof-button { display: inline-grid; width: 30px; height: 30px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: #59675e; cursor: pointer; }
    .route-proof-button svg { width: 16px; height: 16px; }
    .route-proof-button:hover { border-color: #b6c9bc; background: #f3f7f3; color: var(--green-dark); }
    .route-proof-button.has-active-comments { border-color: #78a887; background: #edf6ef; color: #287344; }
    .route-proof-button.has-active-comments:hover { border-color: #4e8b60; background: #e2f0e5; }
    .project-name-line { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
    .hot-job-flame { display: inline-flex; width: 14px; height: 16px; flex: 0 0 14px; align-items: center; color: #df493d; vertical-align: middle; transition: color .22s ease; }
    .hot-job-flame[hidden] { display: none; }
    .hot-job-flame svg { display: block; width: 14px; height: 16px; transition: fill .22s ease; }
    .hot-job-flame svg,
    .project-hot-toggle-button.is-hot svg { transform-origin: 50% 85%; animation: hot-flame-flicker 1.1s ease-in-out infinite alternate; }
    @keyframes hot-flame-flicker {
      0% { transform: rotate(-5deg) scale(.96); }
      100% { transform: rotate(5deg) scale(1.04); }
    }
    @media (prefers-reduced-motion: reduce) {
      .hot-job-flame svg,
      .project-hot-toggle-button.is-hot svg { animation: none; }
      .nav-item svg, .nav-item span { transition: none; }
      .nav-item:hover svg, .nav-item:hover span, .nav-item:focus-visible svg, .nav-item:focus-visible span { transform: none; }
    }
    .project-hot-toggle-button { display: inline-grid; width: 28px; height: 28px; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #9b756f; transition: color .22s ease, background-color .22s ease, border-color .22s ease; }
    .project-hot-toggle-button svg { width: 19px; height: 20px; transition: fill .22s ease; }
    .project-hot-toggle-button.is-hot svg { fill: currentColor; stroke: none; }
    .project-hot-toggle-button:hover { border-color: #ecc9c4; background: #fff7f5; color: #b9453b; }
    .project-hot-toggle-button.is-hot { border-color: #e7b4ae; background: #fcecea; color: #c33c31; }
    #detailsHotIndicator { width: 28px; height: 28px; flex-basis: 28px; justify-content: center; border: 1px solid #e7b4ae; border-radius: 6px; background: #fcecea; }
    .project-hot-toggle-button[hidden] { display: none; }
    tbody tr.project-row-hot > td { background: #fff8f6; }
    tbody tr.project-row-hot.project-row-working > td { background: #fff4f1; }
    tbody tr.project-row-hot > td:first-child { box-shadow: inset 3px 0 #e46a5f; }
    .project-description { max-width: 245px; overflow: hidden; margin-top: 4px; color: #919a95; font-size: 13px; text-overflow: ellipsis; }
    .category-badge { display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 6px; background: #f0f3f0; color: #56635b; font-size: 13px; font-weight: 600; }
    .billing-type-badge { display: inline-flex; align-items: center; padding: 3px 7px; border: 1px solid #cfe4d5; border-radius: 999px; background: #edf6ef; color: #286443; font-size: 13px; font-weight: 650; white-space: nowrap; }
    .billing-type-badge.non-billable { border-color: #dce1e6; background: #f1f3f5; color: #5e6874; }
    .owner-cell { display: flex; align-items: center; gap: 8px; }
    .owner-avatar { display: grid; width: 25px; height: 25px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #edf0f4; color: #67758a; font-size: 13px; font-weight: 700; }
    .status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 20px; font-size: 13px; font-weight: 620; }
    .status::before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ""; }
    #detailsStatus::before { display: none; }
    #detailsStatus { padding: 6px 12px; font-size: 13px; }
    .status.planning { background: #f8edf2; color: #a34e72; }
    .status.in-progress { background: var(--green-light); color: var(--green); }
    .status.in-development { background: #f1edfb; color: #7156a4; }
    .status.routing { background: #eaf2f8; color: #346b8d; }
    .status.on-hold { background: var(--amber-light); color: var(--amber); }
    .status.completed { background: #eff1ef; color: #6c756f; }
    .status.hot { background: #fff0e8; color: #ba4c1c; }
    .status-select { min-height: 29px; max-width: 150px; padding: 4px 8px; border: 1px solid currentColor; background-color: #fff; cursor: pointer; text-align: center; }
    .status-select option { text-align: center; }
    .status-select.planning { background-color: #f8edf2; }
    .status-select.in-progress { background-color: var(--green-light); }
    .status-select.in-development { background-color: #f1edfb; }
    .status-select.routing { background-color: #eaf2f8; }
    .status-select.on-hold { background-color: var(--amber-light); }
    .status-select.completed { background-color: #eff1ef; }
    .status-select:focus-visible { outline: 3px solid #9bc9aa; outline-offset: 2px; }
    .priority { display: flex; align-items: center; gap: 5px; color: #68736d; font-size: 13px; }
    .priority-mark { width: 6px; height: 6px; border-radius: 2px; background: #a6aea8; }
    .priority.high .priority-mark { background: #d16a59; }
    .priority.medium .priority-mark { background: #d8a242; }
    .row-actions { display: flex; justify-content: flex-end; gap: 4px; }
    .work-button { min-height: 28px; padding: 0 9px; border: 1px solid #dce8df; border-radius: 6px; background: #f5faf6; color: var(--green-dark); font-size: 13px; font-weight: 650; }
    .work-button[hidden] { display: none; }
    .work-button:hover { background: var(--green-light); }
    .work-button.active { border-color: var(--blue); background: var(--blue); color: #fff; }
    .work-button.active:hover { border-color: #345584; background: #345584; }
    .detail-work-button { min-height: 40px; padding: 0 12px; font-size: 13px; }
    .detail-work-timer { font: inherit; font-variant-numeric: tabular-nums; }
    .detail-work-timer[hidden] { display: none; }
    .icon-button { display: grid; width: 29px; height: 29px; place-items: center; border: 0; border-radius: 6px; background: transparent; color: #89928d; }
    .icon-button:hover { background: #f0f3f0; color: var(--green-dark); }
    .icon-button.delete:hover { background: var(--red-light); color: var(--red); }
    .empty-state { padding: 56px 20px 60px; text-align: center; }
    .empty-icon { display: grid; width: 42px; height: 42px; margin: 0 auto 13px; place-items: center; border-radius: 12px; background: var(--green-light); color: var(--green); }
    .empty-title { font-size: 14px; font-weight: 680; }
    .empty-copy { margin: 7px auto 16px; color: var(--muted); font-size: 13px; }
    .table-footer { display: flex; justify-content: space-between; padding: 12px 17px; border-top: 1px solid var(--line); color: #5b6760; font-size: 13px; }
    .table-secure-status { display: inline-flex; align-items: center; gap: 5px; }
    .table-secure-status svg { color: #2f8f58; }
    :root[data-theme="dark"] .table-secure-status svg { color: #73c98d; }

    dialog { width: min(480px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; overflow: auto; border: 1px solid #e7ebe7; border-radius: 13px; background: #fff; box-shadow: var(--shadow); color: var(--ink); }
    #profileDialog[open] { position: fixed; display: flex; width: min(360px, calc(100vw - 24px)); max-width: calc(100vw - 24px); max-height: min(70vh, 560px); margin: 0; flex-direction: column; overflow: hidden; border-radius: 11px; }
    #profileForm { display: flex; min-height: 0; max-height: inherit; flex: 1 1 auto; flex-direction: column; }
    #profileForm .dialog-header, #profileForm .dialog-footer { flex: 0 0 auto; }
    #profileForm .form-body { min-height: 0; flex: 1 1 auto; overflow-y: auto; }
    #proofNotificationsDialog[open] { position: fixed; display: flex; width: min(360px, calc(100vw - 24px)); max-width: calc(100vw - 24px); max-height: min(70vh, 560px); margin: 0; flex-direction: column; overflow: hidden; border-radius: 11px; }
    #proofNotificationsDialog .dialog-header { flex: 0 0 auto; padding: 14px 15px 12px; }
    #proofNotificationsDialog .dialog-footer { flex: 0 0 auto; padding: 10px 15px; }
    #proofNotificationsDialog .proof-notification-list { min-height: 50px; flex: 1 1 auto; overflow-y: auto; }
    dialog::backdrop { background: rgb(22 32 26 / 36%); backdrop-filter: blur(2px); }
    .push-confirm-dialog { width: min(420px, calc(100% - 32px)); overflow: hidden; }
    .push-confirm-heading { align-items: center; }
    .push-confirm-title-wrap { display: flex; align-items: center; gap: 12px; }
    .push-confirm-icon { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 11px; background: var(--green-light); color: var(--green); }
    .push-confirm-body { display: grid; gap: 17px; padding: 20px 23px; }
    .push-confirm-copy { margin: 0; color: #647169; font-size: 13px; line-height: 1.55; }
    .push-confirm-summary { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: #fafbfa; }
    .push-confirm-summary > div { min-width: 0; }
    .push-confirm-label { display: block; margin-bottom: 5px; color: #89928d; font-size: 13px; font-weight: 750; letter-spacing: .7px; text-transform: uppercase; }
    .push-confirm-value { display: block; overflow: hidden; color: #354139; font-size: 13px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
    .push-confirm-arrow { color: #9aa39d; font-size: 15px; }
    .push-confirm-dialog .dialog-footer { justify-content: flex-end; }
    .push-confirm-dialog .primary-button { min-height: 36px; font-size: 13px; }
    .app-message-dialog { width: min(420px, calc(100% - 32px)); overflow: hidden; }
    .app-message-copy { margin: 0; color: #647169; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
    .app-message-dialog:has(.type-delete-confirm) .app-message-copy { font-size: 13px; }
    .app-message-dialog.large-copy .app-message-copy { font-size: 14px; }
    .app-message-dialog .dialog-footer { justify-content: flex-end; }
    .app-message-dialog .primary-button { min-height: 36px; font-size: 13px; }
    .app-message-dialog.large-copy .primary-button,
    .app-message-dialog.large-copy .secondary-button { font-size: 14px; }
    .app-message-dialog .primary-button.destructive { background: #b3483f; }
    .app-message-dialog .primary-button.destructive:hover { background: #963a32; }
    .app-message-dialog .secondary-button[hidden] { display: none; }
    .invitation-created-dialog { width: min(520px, calc(100% - 32px)); }
    .invitation-created-link-field { margin: 0; }
    .invitation-created-link-field input { min-height: 42px; font-size: 13px; }
    .invitation-created-status { min-height: 16px; margin: -9px 0 0; }
    .dialog-header { display: flex; align-items: flex-start; justify-content: space-between; padding: 21px 23px 17px; border-bottom: 1px solid var(--line); }
    .dialog-title { margin: 0; font-size: 17px; font-weight: 680; letter-spacing: -.4px; }
    .notification-dialog-title { display: flex; align-items: center; gap: 8px; }
    .notification-dialog-title svg { flex: 0 0 auto; color: var(--green); }
    .dialog-subtitle { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
    .close-button { display: grid; width: 28px; height: 28px; place-items: center; border: 0; border-radius: 6px; background: transparent; color: #7f8983; }
    .close-button:hover { background: #f2f4f2; }
    .form-body { display: grid; gap: 14px; padding: 19px 23px; }
    .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    #newProjectPage { width: 100%; max-width: 920px; margin-inline: auto; }
    .new-project-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 39px 0 27px; }
    .new-project-form { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
    .new-project-form .dialog-header { display: none; }
    .new-project-form .form-body { gap: 24px; padding: 28px; }
    .project-form-section { display: grid; gap: 16px; padding: 0 0 24px; border-bottom: 1px solid var(--line); }
    .project-form-section:last-child { padding-bottom: 0; border-bottom: 0; }
    .project-form-section-title { margin: 0; color: var(--ink); font-size: 14px; font-weight: 700; letter-spacing: -.15px; }
    .project-form-section .field-row { gap: 16px; }
    .field label, .field-label { display: block; margin-bottom: 6px; color: #55615a; font-size: 13px; font-weight: 650; }
    .field.type-delete-confirm label { margin-bottom: 16px; }
    .field input, .field select, .field textarea { width: 100%; min-height: 36px; padding: 8px 10px; border: 1px solid #e3e8e3; border-radius: 7px; background: #fff; color: var(--ink); font-size: 13px; }
    .field input[type="file"] { min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; appearance: auto; }
    .field label.cover-image-field-label { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
    .cover-image-field-label svg { width: 16px; height: 16px; color: var(--green); }
    #customTeamCoverInput:focus-visible + .cover-image-field-label { outline: 3px solid #9bc9aa; outline-offset: 2px; }
    #projectBrandImageInput:focus-visible + .cover-image-field-label { outline: 3px solid #9bc9aa; outline-offset: 2px; }
    .project-brand-image-preview { display: block; width: auto; max-width: 250px; max-height: 250px; margin-top: 8px; object-fit: contain; }
    .project-brand-image-preview[hidden] { display: none; }
    .cover-image-filename { display: inline-block; max-width: 260px; overflow: hidden; color: var(--muted); font-size: 13px; text-overflow: ellipsis; vertical-align: middle; white-space: nowrap; }
    .field textarea { min-height: 67px; resize: vertical; }
    .field input::placeholder, .field textarea::placeholder { color: #a0a8a3; }
    .field-hint { margin: 5px 0 0; color: #919a95; font-size: 13px; }
    .share-duration-field { display: grid; gap: 8px; }
    .share-member-picker { position: relative; }
    .share-member-results { position: absolute; inset: calc(100% + 4px) 0 auto; z-index: 20; display: grid; max-height: 190px; overflow-y: auto; padding: 4px; border: 1px solid var(--line); border-radius: 7px; background: #fff; box-shadow: 0 8px 22px rgba(0,0,0,.14); }
    .share-member-results[hidden] { display: none; }
    .share-member-option { width: 100%; padding: 8px 10px; border: 0; border-radius: 5px; background: transparent; color: var(--ink); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
    .share-member-option:hover, .share-member-option:focus-visible { background: #eef3ef; outline: none; }
    .share-member-empty { padding: 8px 10px; color: var(--muted); font-size: 13px; }
    .share-duration-toggle { display: flex !important; align-items: center; gap: 8px; margin: 0 !important; cursor: pointer; }
    .share-duration-toggle input { width: 15px !important; min-height: 15px !important; margin: 0; padding: 0 !important; accent-color: var(--green); }
    #shareJobDurationOptions[hidden] { display: none; }
    #projectDeleteProofButton { margin-top: 12px; border-color: #b3483f; background: #b3483f; color: #fff; }
    #projectDeleteProofButton:hover { border-color: #963a32; background: #963a32; }
    .profile-permission-level { min-height: 38px; display: flex; align-items: center; padding: 0 11px; border: 1px solid var(--line); border-radius: 7px; background: #f7f8f7; color: #526057; font-size: 13px; }
    #profileForm .field input:disabled, #profileForm .field select:disabled { border-color: #e2e7e3; background: #f5f7f6; color: #68746d; opacity: 1; cursor: default; }
    #profileForm .field select:disabled { appearance: none; background-image: none; }
    .team-editor { display: grid; gap: 8px; }
    .team-editor-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, .65fr) minmax(100px, .55fr) auto; gap: 7px; align-items: center; }
    .team-editor-row input, .team-editor-row select { width: 100%; min-height: 36px; padding: 8px 10px; border: 1px solid #e3e8e3; border-radius: 7px; background: #fff; color: var(--ink); font-size: 13px; }
    .team-editor-rate { display: grid; gap: 4px; color: #55615a; font-size: 13px; font-weight: 650; }
    .team-remove-button { min-height: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: #68736d; font-size: 13px; }
    .team-add-button { justify-self: start; min-height: 31px; padding: 0 9px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--green-dark); font-size: 13px; font-weight: 620; }
    .team-department { display: inline-block; margin-left: 5px; padding: 3px 6px; border-radius: 5px; background: #f0f3f0; color: #69756d; font-size: 13px; font-weight: 600; }
    .dialog-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 13px 23px 18px; border-top: 1px solid var(--line); }
    .secondary-button { min-height: 36px; padding: 0 13px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: #55615a; font-size: 13px; font-weight: 600; }
    .secondary-button:hover { background: #f8faf8; }
    .dialog-footer .primary-button { min-height: 36px; font-size: 13px; }
    .primary-button[hidden] { display: none; }
    .detail-body { display: grid; gap: 18px; padding: 21px 23px; }
    .lifecycle-panel { display: block; padding: 0 !important; }
    .lifecycle-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
    .lifecycle-toolbar-title { color: #354139; font-size: 13px; font-weight: 680; }
    .lifecycle-toolbar-copy { margin-top: 3px; color: #89928d; font-size: 13px; }
    .page-action svg { width: 19px; height: 19px; }
    .lifecycle-add-button { flex: 0 0 auto; width: 36px; height: 36px; min-width: 36px; min-height: 36px; aspect-ratio: 1; padding: 0; border-radius: 50%; display: inline-grid; place-items: center; font-size: 26px; line-height: 1; }
    .lifecycle-table-wrap { overflow-x: auto; }
    .lifecycle-table { min-width: 820px; }
    .lifecycle-table .lifecycle-cell-number { width: 42px; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
    .lifecycle-table th { padding: 9px 18px; background: #f7f9f7; border-bottom: 1px solid var(--line); color: #68736d; font-size: 13px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
    .lifecycle-table td { padding: 12px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
    .lifecycle-table tbody tr:last-child td { border-bottom: 0; }
    .lifecycle-table tbody tr:hover { background: #fafcfb; }
    .lifecycle-table tbody tr[data-editable] { cursor: pointer; }
    .lifecycle-table tr.flash { animation: lifecycleFlash 1.4s ease; }
    .lifecycle-cell-task-inner { display: flex; gap: 10px; align-items: center; }
    .lifecycle-cell-description { min-width: 200px; }
    .lifecycle-description-input { width: 100%; min-height: 62px; padding: 7px 9px; border: 1px solid #cbd9ce; border-radius: 7px; color: var(--ink); font: inherit; font-size: 13px; line-height: 1.5; resize: vertical; }
    .lifecycle-table tbody tr[data-editable] .lifecycle-cell-description { cursor: text; }
    .lifecycle-cell-description .lifecycle-task-notes { margin-top: 0; }
    .lifecycle-cell-duration { color: #526057; font-size: 13px; white-space: nowrap; }
    .lifecycle-cell-dates { color: #526057; font-size: 13px; white-space: nowrap; }
    .lifecycle-cell-actions { width: 1%; white-space: nowrap; }
    .lifecycle-unassigned { color: #9aa39e; font-size: 13px; }
    .lifecycle-task-marker { flex: none; width: 10px; height: 10px; border-radius: 3px; }
    .lifecycle-task-title { margin-top: 0; color: #354139; font-size: 13px; font-weight: 680; overflow-wrap: anywhere; }
    .lifecycle-task-notes { margin-top: 4px; color: #68736d; font-size: 13px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
    .lifecycle-task-assignees { display: flex; flex-wrap: wrap; gap: 6px; }
    .lifecycle-task-assignee { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px 3px 3px; border-radius: 12px; background: #f0f4f1; color: #526057; font-size: 13px; font-weight: 600; }
    .lifecycle-task-assignee .owner-avatar { width: 19px; height: 19px; font-size: 13px; }
    .lifecycle-task-actions { display: flex; gap: 12px; }
    .lifecycle-task-actions button { padding: 0; border: 0; background: transparent; color: var(--green-dark); font-size: 13px; font-weight: 620; }
    .lifecycle-task-actions button.delete { color: var(--red); }
    .lifecycle-empty { padding: 32px 20px; color: #89928d; font-size: 13px; line-height: 1.5; text-align: center; }
    #lifecycleTaskDialog { width: min(920px, calc(100% - 32px)); }
    .lifecycle-calendar { margin-bottom: 18px; border: 1px solid var(--line); border-radius: 0; overflow: hidden; background: #fff; }
    .lifecycle-cal-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid var(--line); }
    .lifecycle-cal-title { font-size: 13px; font-weight: 680; }
    .lifecycle-cal-nav { display: flex; gap: 4px; }
    .lifecycle-cal-nav button { min-width: 28px; height: 26px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: #526057; font-size: 13px; cursor: pointer; }
    .lifecycle-cal-nav button:hover, .lifecycle-cal-nav button:focus-visible { background: #f2f6f3; }
    .lifecycle-cal-weekdays, .lifecycle-cal-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
    .lifecycle-cal-weekdays div { padding: 6px 8px; background: #f7f9f7; border-bottom: 1px solid var(--line); color: #68736d; font-size: 13px; font-weight: 650; text-transform: uppercase; }
    .lifecycle-cal-week { grid-auto-rows: 20px; grid-template-rows: 22px; min-height: 64px; padding-bottom: 6px; border-bottom: 1px solid var(--line); row-gap: 2px; }
    .lifecycle-cal-week:last-child { border-bottom: 0; }
    .lifecycle-cal-day { border-left: 1px solid var(--line); padding: 4px 6px; color: #526057; font-size: 13px; }
    .lifecycle-cal-day:first-child { border-left: 0; }
    .lifecycle-cal-day.outside { background: #fafbfa; color: #b4bcb7; }
    .lifecycle-cal-day.today span { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin: -2px 0 0 -3px; border-radius: 9px; background: var(--green); color: #fff; font-weight: 650; }
    .lifecycle-cal-bar { z-index: 1; border: 0; text-align: left; cursor: pointer; font-family: inherit; margin: 0 3px; padding: 0 7px; overflow: hidden; border-radius: 5px; background: var(--lifecycle-task-color); color: #fff; font-size: 13px; font-weight: 600; line-height: 20px; text-overflow: ellipsis; white-space: nowrap; }
    .lifecycle-cal-bar:hover, .lifecycle-cal-bar:focus-visible { filter: brightness(1.12); outline: 2px solid var(--ink); outline-offset: 1px; }
    @keyframes lifecycleFlash { 0%, 60% { background: #eef6f1; } 100% { background: transparent; } }
    .lifecycle-cal-bar.continues-before { margin-left: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; }
    .lifecycle-cal-bar.continues-after { margin-right: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
    .lifecycle-entry-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
    .lifecycle-entry-table { width: 100%; min-width: 720px; border-collapse: collapse; }
    .lifecycle-entry-table th { padding: 8px 10px; background: #f7f9f7; border-bottom: 1px solid var(--line); color: #68736d; font-size: 13px; font-weight: 650; letter-spacing: .04em; text-align: left; text-transform: uppercase; }
    .lifecycle-entry-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
    .lifecycle-entry-table tr:last-child td { border-bottom: 0; }
    .lifecycle-entry-table input, .lifecycle-entry-table select, .lifecycle-entry-table textarea { width: 100%; min-width: 0; }
    .lifecycle-entry-table textarea { min-height: 62px; resize: vertical; }
    .lifecycle-assign summary { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-size: 13px; cursor: pointer; list-style: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .lifecycle-assign summary::-webkit-details-marker { display: none; }
    .lifecycle-assign summary::after { content: ""; flex: none; width: 6px; height: 6px; border-right: 1.5px solid #68736d; border-bottom: 1.5px solid #68736d; transform: rotate(45deg) translateY(-2px); }
    .lifecycle-assign summary:focus-visible, .lifecycle-assign[open] summary { border-color: var(--green); outline: 0; }
    .lifecycle-assign-menu { position: fixed; z-index: 20; display: grid; max-height: 40vh; padding: 4px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
    .lifecycle-assign-menu label { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 6px; font-size: 13px; cursor: pointer; }
    .lifecycle-assign-menu label:hover { background: #f2f6f3; }
    .lifecycle-assign-hint { padding: 6px 8px 4px; color: #89928d; font-size: 13px; }
    .lifecycle-assign-menu input { width: auto; margin: 0; }
    .lifecycle-assign-empty { padding: 7px 8px; color: #89928d; font-size: 13px; }
    .lifecycle-entry-num { width: 28px; padding-top: 14px !important; color: #89928d; font-size: 13px; }
    .lifecycle-entry-table .col-step { width: 24%; } .lifecycle-entry-table .col-date { width: 20%; }
    .lifecycle-date-range { display: grid; gap: 6px; }
    .lifecycle-date-range label { display: grid; gap: 2px; color: #68736d; font-size: 13px; }
    .lifecycle-date-range label span { color: #9aa39e; } .lifecycle-entry-table .col-who { width: 25%; } .lifecycle-entry-table .col-act { width: 36px; }
    .lifecycle-task-entry-remove { display: grid; place-items: center; width: 26px; height: 26px; margin-top: 4px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--red); cursor: pointer; }
    .lifecycle-task-entry-remove:hover, .lifecycle-task-entry-remove:focus-visible { background: #f8ecea; }
    .lifecycle-remove-task { margin-right: auto; border-color: #e6c9c6; color: var(--red); }
    .lifecycle-remove-task:hover { background: #f8ecea; }
    .lifecycle-add-entry { justify-self: start; }
    .detail-status-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
    .detail-priority { color: #68736d; font-size: 13px; }
    .detail-label { margin-bottom: 7px; color: #89928d; font-size: 13px; font-weight: 750; letter-spacing: .8px; text-transform: uppercase; }
    .version-name-label { display: flex; align-items: center; gap: 5px; }
    .version-name-tooltip { display: inline-grid; width: 14px; height: 14px; place-items: center; color: #8b9690; cursor: help; }
    .version-name-tooltip svg { width: 13px; height: 13px; }
    .version-name-tooltip:focus-visible { border-radius: 50%; outline: 2px solid #9bc9aa; outline-offset: 2px; }
    .detail-description { color: #435047; font-size: 13px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
    .project-notes-list { display: grid; gap: 10px; max-width: 760px; margin-bottom: 20px; }
    .project-note-post { position: relative; padding: 12px 42px 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfb; }
    .project-note-post.pinned { border-color: #a9c8b2; background: #f7faf7; }
    .project-note-pin-button { position: absolute; top: 9px; right: 10px; display: grid; width: 26px; height: 26px; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #87928b; }
    .project-note-pin-button:hover, .project-note-pin-button[aria-pressed="true"] { border-color: #c7dbcB; background: #edf5ef; color: var(--green-dark); }
    .project-note-pin-button svg { width: 15px; height: 15px; }
    .project-note-post-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 9px; margin-bottom: 6px; color: var(--muted); font-size: 13px; }
    .project-note-post-author { color: #354139; font-size: 13px; font-weight: 680; }
    .project-note-post-copy { margin: 0; color: #435047; font-size: 13px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
    .project-note-post-copy p { margin: 0; }
    .project-note-post-copy p + p { margin-top: 6px; }
    #overviewPinnedNote { display: flex; }
    .overview-pinned-note { width: 100%; padding: 10px 12px; border: 1px solid #a9c8b2; border-radius: 0; background: #f7faf7; }
    .overview-pinned-note-empty { border-color: var(--line); background: var(--surface); }
    .overview-pinned-note-heading { display: flex; align-items: center; justify-content: flex-start; gap: 8px; margin-bottom: 5px; }
    .overview-pinned-note-heading .detail-label { margin: 0; }
    .overview-pinned-note-icon { width: 14px; height: 14px; flex: 0 0 14px; color: var(--green-dark); }
    .overview-notes-link { margin-left: auto; }
    .overview-notes-link { min-height: auto; padding: 2px 0; border: 0; color: var(--green-dark); font-size: 13px; }
    :root[data-theme="dark"] .overview-pinned-note { border-color: #45624c; background: #202a22; }
    :root[data-theme="dark"] .overview-pinned-note-empty { border-color: var(--line); background: var(--surface); }
    .project-note-post-copy ul, .project-note-post-copy ol { margin: 5px 0 0; padding-left: 20px; }
    .project-note-post-actions { display: flex; gap: 10px; margin-top: 8px; }
    .project-note-post-action { padding: 0; border: 0; background: transparent; color: var(--green-dark); font-size: 13px; font-weight: 650; }
    .project-note-post-action.delete { color: var(--red); }
    .project-notes-form { display: grid; gap: 8px; max-width: 760px; }
    .project-notes-formatting { display: flex; flex-wrap: wrap; gap: 5px; }
    .project-notes-formatting button, .project-notes-formatting select { min-height: 28px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: #435047; font-size: 13px; font-weight: 650; }
    .project-notes-formatting select[data-note-list-format] { width: 48px; min-height: 26px; padding: 2px 5px; font-size: 13px; }
    .project-notes-formatting button:hover, .project-notes-formatting select:hover { border-color: #a9c8b2; background: #f7faf7; }
    .project-notes-formatting button:disabled, .project-notes-formatting select:disabled { cursor: not-allowed; opacity: .5; }
    .project-notes-formatting-separator { width: 1px; margin: 3px 2px; background: var(--line); }
    .project-notes-editor { width: 100%; min-height: 88px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; overflow-y: auto; }
    .project-notes-editor:focus { border-color: #91b99c; outline: 2px solid #dcebe0; }
    .project-notes-editor:empty::before { color: #89928d; content: attr(data-placeholder); pointer-events: none; }
    .project-notes-mention-wrap { position: relative; }
    .project-note-mention { padding: 1px 3px; border-radius: 4px; background: #e8f2ea; color: #28613c; font-weight: 650; }
    .project-notes-editor p { margin: 0; }
    .project-notes-editor ul, .project-notes-editor ol { margin: 4px 0; padding-left: 22px; }
    .project-notes-actions { display: flex; align-items: center; gap: 10px; }
    .project-notes-save-state { color: var(--muted); font-size: 13px; }
    .detail-value { color: #435047; font-size: 13px; overflow-wrap: anywhere; }
    .copy-job-number { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: transparent; color: var(--green-dark); font: inherit; text-align: left; }
    .copy-job-number:hover { text-decoration: underline; text-underline-offset: 2px; }
    .copy-job-number:focus-visible { border-radius: 2px; outline: 2px solid #9bc9aa; outline-offset: 2px; }
    .copy-job-number-status { margin-left: 7px; color: #68736d; font-size: 13px; }
    .work-log-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
    .work-log-pagination { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
    .work-log-pagination button { display: grid; width: 26px; height: 26px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--ink); font-size: 14px; line-height: 1; }
    .work-log-pagination button:hover:not(:disabled) { border-color: #b8cbbb; background: #f2f7f3; }
    .work-log-pagination button:focus-visible { outline: 2px solid #9bc9aa; outline-offset: 2px; }
    .work-log-pagination button:disabled { cursor: not-allowed; opacity: .45; }
    .work-log { display: grid; gap: 9px; }
    .work-log-entry { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 14px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 7px; color: #59655e; font-size: 13px; }
    .week-time-chart { padding: 15px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
    .week-time-chart-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; margin-bottom: 17px; }
    .week-time-chart-title { color: #354139; font-size: 13px; font-weight: 680; }
    .week-time-chart-range { margin-left: 7px; color: #89928d; font-size: 13px; font-weight: 500; }
    .week-time-chart-total { color: var(--green-dark); font-size: 13px; font-weight: 680; font-variant-numeric: tabular-nums; }
    .week-time-chart-bars { display: grid; grid-template-columns: 28px repeat(5, minmax(0, 1fr)); gap: 10px; align-items: end; min-height: 128px; }
    .week-time-chart-axis { display: grid; grid-template-rows: 16px 78px auto; gap: 6px; justify-items: end; min-width: 0; }
    .week-time-chart-axis-track { position: relative; width: 100%; height: 78px; color: #89928d; font-size: 13px; font-variant-numeric: tabular-nums; }
    .week-time-chart-scale-label { position: absolute; right: 0; white-space: nowrap; }
    .week-time-chart-scale-label.top { transform: translateY(0); }
    .week-time-chart-scale-label.middle { transform: translateY(-50%); }
    .week-time-chart-scale-label.bottom { transform: translateY(-100%); }
    .week-time-chart-day { display: grid; grid-template-rows: 16px 78px auto; gap: 6px; justify-items: center; min-width: 0; }
    .week-time-chart-value { color: #68736d; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
    .week-time-chart-track { display: flex; width: min(100%, 40px); height: 78px; align-items: flex-end; overflow: hidden; border-radius: 6px 6px 3px 3px; background: #f1f4f1; }
    .week-time-chart-bar { width: 100%; min-height: 0; border-radius: 0; background: #5b9671; transition: height .2s ease; }
    .week-time-chart-bar.has-time { min-height: 3px; }
    .week-time-chart-label { color: #78817c; font-size: 13px; }
    .week-time-chart-empty { padding: 18px 0 4px; color: #89928d; font-size: 13px; text-align: center; }
    .week-time-chart-empty[hidden] { display: none; }
    .project-time-chart { width: 100%; min-width: 0; padding: 17px 18px; }
    .project-time-chart-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; margin-bottom: 17px; }
    .project-time-chart-title { color: #354139; font-size: 13px; font-weight: 680; }
    .project-time-chart-total { color: var(--green-dark); font-size: 13px; font-weight: 680; font-variant-numeric: tabular-nums; }
    .project-time-chart-scroll { overflow-x: auto; }
    .project-time-chart-bars { display: grid; grid-template-columns: 36px repeat(var(--day-count), 48px); gap: 60px; align-items: end; min-width: max-content; }
    .project-time-chart-bars { position: relative; }
    .project-time-chart-bars::before { content: ""; position: absolute; z-index: 0; left: 35px; right: 0; top: 26px; height: 121px; box-sizing: border-box; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 40px); pointer-events: none; }
    .project-time-chart-axis { align-self: start; }
    .project-time-chart-axis-track .week-time-chart-scale-label { right: 8px; }
    .project-time-chart-axis { display: grid; grid-template-rows: 20px 120px auto; gap: 6px; justify-items: end; min-width: 0; }
    .project-time-chart-axis-track { position: relative; width: 100%; height: 120px; color: #89928d; font-size: 13px; font-variant-numeric: tabular-nums; }
    .project-time-chart-day { position: relative; z-index: 1; display: grid; grid-template-rows: 20px 120px auto; gap: 6px; justify-items: center; min-width: 0; }
    .project-time-chart-value { color: #68736d; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
    .project-time-chart-track { display: flex; width: min(100%, 32px); height: 120px; align-items: flex-end; overflow: visible; background: transparent; }
    .project-time-chart-bar { display: flex; flex-direction: column-reverse; width: 100%; min-height: 0; overflow: hidden; border-radius: 7px 7px 0 0; transition: height .2s ease; }
    .project-time-chart-segment { flex: none; width: 100%; }
    .project-time-chart-bar.has-time { min-height: 3px; }
    .project-time-chart-day-label { max-width: 100%; overflow: hidden; color: #78817c; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
    .project-time-chart-day:focus-visible { outline: 2px solid var(--green-dark); outline-offset: 2px; }
    .project-time-tooltip { position: fixed; z-index: 1000; min-width: 180px; max-width: 280px; padding: 9px 11px; border: 1px solid #d9dfda; border-radius: 8px; background: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.14); color: #354139; font-size: 13px; pointer-events: none; }
    .project-time-tooltip[hidden] { display: none; }
    .project-time-tooltip strong { display: block; margin-bottom: 6px; font-size: 13px; }
    .project-time-tooltip-row { display: flex; justify-content: space-between; gap: 14px; padding: 2px 0; font-variant-numeric: tabular-nums; }
    .project-time-tooltip-row span:first-child { min-width: 0; overflow-wrap: anywhere; }
    .project-time-tooltip-name { display: flex; align-items: baseline; gap: 6px; }
    .project-time-tooltip-swatch { flex: none; width: 8px; height: 8px; border-radius: 50%; }
    .project-time-tooltip-total { margin-top: 4px; padding-top: 5px; border-top: 1px solid #e5e9e5; font-weight: 680; }
    .project-time-job-list { display: grid; gap: 8px; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid #e5e9e5; list-style: none; }
    .project-time-job-list li { display: flex; justify-content: space-between; gap: 14px; padding: 3px 0; color: #354139; font-size: 13px; font-variant-numeric: tabular-nums; }
    .project-time-chart-empty { padding: 48px 20px; color: var(--muted); font-size: 13px; text-align: center; }
    .project-time-chart-empty strong { display: block; margin-bottom: 6px; color: #354139; font-size: 13px; }
    .team-work-member { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: #536059; font-size: 13px; }
    .team-member-rate-toggle { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 680; }
    .team-member-rate-toggle:hover { color: var(--green-dark); text-decoration: underline; text-underline-offset: 2px; }
    .team-member-rate-toggle:focus-visible { border-radius: 2px; outline: 2px solid #9bc9aa; outline-offset: 2px; }
    .team-member-rate[hidden] { display: none; }
    .team-list { display: flex; flex-wrap: wrap; gap: 8px; }
    .project-files-heading { display: flex; align-items: center; justify-content: flex-start; gap: 6px; margin-bottom: 8px; }
    .project-files-heading .detail-label { margin: 0; }
    .attach-files-rows { display: grid; gap: 10px; }
    .attach-files-rows .field { margin: 0; }
    .attach-files-size { color: var(--muted); font-size: 13px; font-weight: 400; }
    .project-file-upload { padding: 0; border: 0; background: none; display: inline-grid; width: 26px; height: 26px; place-items: center; border-radius: 6px; color: #354139; cursor: pointer; }
    .project-file-upload:hover { background: #eef1ee; color: var(--green-dark); }
    .project-file-upload[hidden] { display: none; }
    .visually-hidden-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .project-files-heading:has(.visually-hidden-input:focus-visible) .project-file-upload { outline: 2px solid var(--green-dark); outline-offset: 2px; }
    .project-file-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
    .project-file-item { display: flex; gap: 12px; align-items: flex-start; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #354139; }
    .project-file-main { display: flex; flex: 1 1 auto; flex-wrap: wrap; gap: 6px 16px; align-items: center; min-width: 0; }
    .project-file-name { max-width: 100%; min-width: 0; flex: 0 1 auto; overflow: hidden; font-size: 13px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
    .project-file-meta { flex: none; white-space: nowrap; color: #5b6760; font-size: 13px; }
    .project-file-actions { display: flex; flex: none; gap: 6px; }
    .project-file-remove { display: inline-grid; flex: none; width: 26px; height: 26px; margin-left: auto; padding: 0; place-items: center; border: 0; border-radius: 6px; background: none; color: #354139; cursor: pointer; }
    .project-file-remove:hover { background: #eef1ee; color: #b42318; }
    .project-file-actions .outline-button { min-height: 28px; padding: 0 10px; font-size: 13px; }
    .team-member { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px 5px 5px; border: 0; border-radius: 0; color: #536059; font-size: 13px; }
    .work-access-requests { display: grid; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
    .work-access-overview-banner { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 18px; padding: 11px 14px; border: 1px solid #e8cc82; border-radius: 9px; background: #fff7df; color: #604914; }
    .work-access-overview-banner[hidden] { display: none; }
    .work-access-overview-copy { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 9px; font-size: 13px; }
    .work-access-overview-copy svg { width: 18px; height: 18px; color: #946b1b; }
    .work-access-overview-copy strong { font-weight: 720; }
    .work-access-overview-items { display: flex; min-width: 0; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
    .work-access-overview-item { display: inline-flex; min-height: 30px; align-items: center; gap: 7px; padding: 4px 9px; border: 0; border-radius: 6px; background: transparent; color: #604914; font: inherit; font-size: 13px; cursor: pointer; }
    .work-access-overview-item:hover { background: rgb(255 255 255 / 38%); }
    .work-access-overview-item > span:not(.work-access-overview-review) { color: #78653c; }
    .work-access-overview-review { padding: 0; border: 0; background: transparent; color: #246b49; font: inherit; font-weight: 700; cursor: pointer; }
    .work-access-overview-review:hover { text-decoration: underline; text-underline-offset: 2px; }
    .work-access-overview-review:focus-visible { border-radius: 2px; outline: 2px solid currentColor; outline-offset: 2px; }
    .work-access-overview-item:focus-visible { outline: 3px solid #d5b75f; outline-offset: 2px; }
    .work-access-requester-profile { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
    .work-access-requester-profile:hover { text-decoration: underline; text-underline-offset: 2px; }
    .work-access-requester-profile:focus-visible { border-radius: 2px; outline: 2px solid currentColor; outline-offset: 2px; }
    .project-work-access-banner .work-access-overview-items { flex: 1 1 420px; justify-content: flex-start; }
    .project-work-access-banner .work-access-overview-item { width: 100%; justify-content: space-between; cursor: default; }
    .project-work-access-banner .work-access-request-actions { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; }
    .project-work-access-banner .work-access-request-actions .outline-button,
    .project-work-access-banner .work-access-request-actions .primary-button { min-height: 30px; padding: 0 10px; font-size: 13px; }
    .work-access-request { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 9px; padding: 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
    .work-access-request > div:first-child { display: grid; gap: 4px; }
    .work-access-request strong { color: var(--ink); font-size: 13px; }
    .work-access-request span { color: var(--muted); font-size: 13px; }
    .work-access-request-actions { display: flex; gap: 6px; }
    .work-access-request-actions .outline-button, .work-access-request-actions .primary-button { min-height: 30px; padding: 0 10px; font-size: 13px; }
    @media (max-width: 760px) {
      .work-access-overview-banner { align-items: flex-start; flex-direction: column; }
      .work-access-overview-items { justify-content: flex-start; }
    }
    .team-member .owner-avatar { width: 23px; height: 23px; }
    .team-list-view[hidden] { display: none; }
    .team-list-view:not([hidden]) { display: flex; min-height: 0; flex: 1 1 auto; flex-direction: column; }
    .workspace-tables-view[hidden] { display: none; }
    .workspace-tables-view { overflow: visible; }
    .workspace-table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
    .workspace-table-name-wrap { min-width: 0; flex: 1; }
    .workspace-table-name { width: min(100%, 420px); min-height: 36px; padding: 4px 7px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--ink); font-size: 17px; font-weight: 680; }
    .workspace-table-name:hover, .workspace-table-name:focus { border-color: var(--line); background: var(--surface); }
    .workspace-table-actions { display: flex; flex: 0 0 auto; gap: 8px; }
    .workspace-table { width: 100%; min-width: 720px; table-layout: fixed; }
    .workspace-table thead { background: #f6f7f5; }
    .workspace-table th { box-sizing: border-box; height: 44px; padding: 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 650; line-height: normal; text-align: left; vertical-align: middle; }
    .workspace-table th:not(:last-child), .workspace-table td:not(:last-child) { border-right: 1px solid var(--line); }
    .workspace-table th:first-child, .workspace-table td:first-child { width: 42px; text-align: center; }
    .workspace-table th:last-child, .workspace-table td:last-child { width: 38px; padding: 0; text-align: center; }
    .workspace-table td { height: 44px; padding: 0; border-top: 1px solid var(--line); }
    .workspace-table-cell-wrap { position: relative; width: 100%; min-height: 43px; }
    .workspace-table-column { display: flex; align-items: center; gap: 4px; padding: 0 6px; }
    .workspace-table-column input { width: 100%; min-width: 35px; height: 28px; flex: 1 1 0; padding: 0 4px; border: 1px solid transparent; border-radius: 0; background: transparent; color: var(--ink); font-size: 13px; font-weight: 680; }
    .workspace-table-column input:hover, .workspace-table-column input:focus { border-color: var(--line); background: var(--surface); }
    .workspace-table-column-controls { display: flex; min-width: 0; flex: 0 0 auto; align-items: center; gap: 3px; }
    .workspace-table-column-controls select { width: 72px; min-width: 0; height: 23px; padding: 0 3px; border: 1px solid var(--line); border-radius: 0; background: var(--surface); color: var(--muted); font: inherit; font-size: 13px; }
    .workspace-table-sort { display: inline-grid; width: 22px; height: 23px; flex: 0 0 22px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 0; background: var(--surface); color: var(--muted); font-size: 13px; cursor: pointer; }
    .workspace-table-sort:hover { border-color: #83aaf4; color: var(--ink); }
    .workspace-table-column > .workspace-table-remove { width: 22px; flex: 0 0 22px; border-radius: 0; }
    .workspace-table-cell { width: 100%; height: 43px; padding: 0 11px; border: 1px solid transparent; border-radius: 0; background: transparent; color: var(--ink); font-size: 13px; }
    .workspace-table-cell:hover { background: #f8faf8; }
    .workspace-table-cell:focus { position: relative; z-index: 1; border-color: #83aaf4; outline: 1px solid #83aaf4; background: var(--surface); }
    .workspace-table-checkbox-cell { text-align: center; }
    .workspace-table-checkbox { width: 15px; height: 15px; accent-color: #527bd0; }
    .workspace-table-row-number { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
    .workspace-table-remove { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: var(--muted); font-size: 16px; }
    .workspace-table-remove:hover { background: var(--red-light); color: var(--red); }
    .workspace-table [data-workspace-remove-row] { opacity: 0; }
    .workspace-table tbody tr:hover [data-workspace-remove-row],
    .workspace-table [data-workspace-remove-row]:focus-visible { opacity: 1; }
    .workspace-table-empty { padding: 26px; color: var(--muted); font-size: 13px; text-align: center; }
    .workspace-table-edge-wrap { position: relative; }
    .workspace-table-edge-wrap .table-scroll { border-radius: 0; }
    .workspace-table-edge-add { position: absolute; z-index: 2; display: inline-grid; width: 24px; height: 24px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--muted); font-size: 17px; line-height: 1; opacity: 0; cursor: pointer; }
    .workspace-table-edge-wrap:hover .workspace-table-edge-add,
    .workspace-table-edge-add:focus-visible { opacity: 1; }
    .workspace-table-edge-add-row { bottom: -12px; left: 10px; }
    .workspace-table-edge-add-column { top: 10px; right: -12px; }
    .billing-overview-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 20px; }
    .billing-setup-card { display: flex; align-items: flex-start; gap: 14px; min-width: 0; margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
    .billing-organization-settings { display: grid; min-width: 0; gap: 12px; margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
    .billing-organization-controls { display: flex; gap: 10px; }
    .billing-organization-controls input { min-height: 36px; flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid #e3e8e3; border-radius: 7px; background: #fff; color: var(--ink); font-size: 13px; }
    #billingOrganizationName:disabled { border-color: #e2e7e3; background: #f5f7f6; color: #68746d; opacity: 1; cursor: default; }
    .billing-organization-id input:read-only { border-color: #e2e7e3; background: #f5f7f6; color: #68746d; cursor: text; }
    .billing-organization-id .field-hint { margin: 0; }
    .billing-organization-settings > .field-hint { margin: 0; }
    .billing-seat-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 20px 16px; }
    .billing-seat-controls { display: flex; gap: 8px; margin-top: 10px; }
    .billing-seat-controls .outline-button { display: grid; width: 32px; min-height: 30px; padding: 0; place-items: center; font-size: 18px; }
    .billing-seat-controls button:disabled { cursor: not-allowed; opacity: .45; }
    #billingSeatNote { margin: 0 20px 20px; }
    .billing-setup-icon { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; color: var(--green); }
    .billing-setup-card h2 { margin: 2px 0 5px; font-size: 14px; }
    .billing-setup-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
    .team-panel-intro { padding: 15px 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.5; }
    .team-roster { display: grid; }
    .team-roster-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, 200px); align-items: center; gap: 12px; min-height: 68px; padding: 12px 18px; border-top: 1px solid #eef0ee; }
    .team-roster-row:first-child { border-top: 0; }
    .team-roster-person { display: flex; align-items: center; gap: 9px; min-width: 0; color: #354139; font-size: 13px; font-weight: 650; }
    .team-roster-person > span:last-child { display: grid; gap: 2px; overflow-wrap: anywhere; }
    .team-roster-organization { color: #828c85; font-size: 13px; font-weight: 450; }
    .team-role-select { width: 100%; min-height: 34px; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: #526057; font-size: 13px; }
    .team-role-select:disabled { background: #f7f8f7; color: #8b948e; }
    .team-role-guide { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: #fafbfa; }
    .team-role-guide div { color: #5b6760; font-size: 13px; line-height: 1.45; }
    .team-role-guide strong { display: block; margin-bottom: 3px; color: #405047; font-size: 13px; }
    .team-mobile-label { display: none; color: #929b95; font-size: 13px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
    .team-workspace-tabs { display: flex; gap: 4px; padding: 12px 18px 0; border-bottom: 1px solid var(--line); }
    .team-workspace-tab { padding: 8px 11px 10px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #68736d; font-size: 13px; font-weight: 620; }
    .team-workspace-tab[aria-selected="true"] { border-bottom-color: var(--green); color: var(--green-dark); }
    .team-tab-panel[hidden] { display: none; }
    .team-main-tabs { display: flex; gap: 4px; padding: 0 18px; border-bottom: 1px solid var(--line); }
    .team-main-tabs button { padding: 9px 12px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 13px; font-weight: 650; cursor: pointer; }
    .team-main-tabs button[aria-pressed="true"] { border-bottom-color: var(--green); color: var(--green-dark); }
    .team-people-panel[hidden] { display: none; }
    .team-people-panel:not([hidden]) { display: flex; min-height: 0; flex: 1 1 auto; flex-direction: column; }
    .team-directory-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 18px; }
    .team-directory-toolbar .field-hint { margin: 0; }
    .team-directory-filters { display: flex; gap: 8px; flex-wrap: wrap; }
    .team-directory-filters input, .team-directory-filters select { min-height: 32px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: #354139; font: inherit; font-size: 13px; }
    .team-people-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 13px; }
    .team-people-table th, .team-people-table td { padding: 10px 12px; border-bottom: 1px solid #eef0ee; color: #354139; text-align: left; white-space: nowrap; }
    .team-people-table thead th { background: #fafbfa; color: #68736d; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
    .team-people-table tbody td:nth-child(n+3) { font-variant-numeric: tabular-nums; }
    .team-directory-person { display: flex; align-items: center; gap: 8px; }
    .team-directory-admin-actions-cell { width: 1%; }
    .team-directory-admin-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
    .team-directory-admin-actions > button { flex: 0 0 auto; white-space: nowrap; }
    .team-directory-admin-actions .team-directory-edit-button { border: 0; }
    .team-directory-person small { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; font-weight: 500; }
    .team-directory-work-status { color: var(--muted); font-size: 13px; }
    .team-directory-work-status.is-working { color: var(--green-dark); font-weight: 650; }
    #teamPeopleTable { min-height: 0; flex: 1 1 auto; overflow: auto; }
    .team-member-profile[hidden] { display: none; }
    .team-member-profile { padding: 16px 18px 22px; }
    .team-profile-back { margin: 0 0 16px; padding: 0; border: 0; background: transparent; color: var(--green-dark); font-size: 13px; font-weight: 650; cursor: pointer; }
    .team-profile-header { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
    .team-profile-header > .owner-avatar { width: 48px; height: 48px; font-size: 15px; }
    .team-profile-header h2 { margin: 0; font-size: 18px; }
    .team-profile-header p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
    .profile-capacity-field { position: relative; display: flex; align-items: center; }
    .profile-capacity-field select { flex: 1; padding-left: 28px; }
    .profile-capacity-field .work-capacity-indicator { position: absolute; left: 11px; pointer-events: none; }
    .work-capacity-indicator { display: inline-block; width: 10px; height: 10px; flex: 0 0 10px; border-radius: 50%; background: #d1d5db; vertical-align: middle; }
    .work-capacity-light { background: #eab308; }
    .work-capacity-medium { background: #22a447; }
    .work-capacity-heavy { background: #dc3545; }
    .team-profile-header .outline-button { margin-left: auto; }
    .team-profile-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 14px; }
    .team-profile-stats > div { display: grid; gap: 7px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
    .team-profile-stats span { color: var(--muted); font-size: 13px; }
    .team-profile-stats strong { color: var(--ink); font-size: 14px; }
    .team-profile-project-link { padding: 0; border: 0; background: transparent; color: var(--green-dark); font: inherit; font-weight: 650; text-align: left; cursor: pointer; }
    .team-profile-project-link:hover, .team-profile-project-link:focus-visible { text-decoration: underline; }
    .team-directory-profile-link { padding: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 650; text-align: left; cursor: pointer; }
    .team-directory-profile-link:hover { color: var(--green-dark); text-decoration: underline; text-underline-offset: 3px; }
    @media (max-width: 600px) {
      .team-profile-header { align-items: flex-start; flex-wrap: wrap; }
      .team-profile-header .outline-button { margin-left: 0; }
    }
    .team-panel-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; }
    .team-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; padding: 0 18px 18px; }
    #customTeamGrid > .project-notes-empty { grid-column: 1 / -1; width: 100%; margin: 0; }
    .custom-team-card { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
    .custom-team-card:hover { border-color: #a9b9ac; }
    .custom-team-card:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
    .custom-team-cover { display: grid; height: 112px; place-items: center; overflow: hidden; background: linear-gradient(135deg, #e8efe9, #f6f7f3 48%, #dce8df); color: #819087; }
    .custom-team-cover img { width: 100%; height: 100%; object-fit: cover; }
    .custom-team-cover svg { width: 29px; height: 29px; opacity: .7; }
    .custom-team-card-body { padding: 12px; }
    .custom-team-card-title { margin: 0; color: #354139; font-size: 13px; font-weight: 680; }
    .custom-team-card-members { min-height: 18px; margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.5; }
    .custom-team-card-actions { display: flex; gap: 12px; margin-top: 10px; }
    .custom-team-list-view[hidden], .custom-team-detail-view[hidden] { display: none; }
    .custom-team-detail-view { padding: 16px 18px 20px; }
    .custom-team-detail-tabs { display: flex; gap: 4px; margin: 16px 0 0; border-bottom: 1px solid var(--line); }
    .custom-team-detail-tab { padding: 9px 12px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #68736d; font-size: 13px; font-weight: 620; cursor: pointer; }
    .custom-team-detail-tab[aria-selected="true"] { border-bottom-color: var(--green); color: var(--green-dark); }
    .custom-team-detail-panel[hidden] { display: none; }
    .custom-team-detail-back { margin-bottom: 12px; padding: 0; border: 0; background: transparent; color: var(--green-dark); font-size: 13px; font-weight: 650; cursor: pointer; }
    .custom-team-detail-hero { position: relative; display: flex; min-height: 190px; align-items: flex-end; overflow: hidden; padding: 18px; border-radius: 10px; background: linear-gradient(135deg, #e8efe9, #f6f7f3 48%, #dce8df); }
    .custom-team-detail-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
    .custom-team-detail-hero.has-cover::after { position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgb(15 28 19 / 70%)); content: ""; }
    .custom-team-detail-hero-copy { position: relative; z-index: 1; color: #fff; }
    .custom-team-detail-hero:not(.has-cover) .custom-team-detail-hero-copy { color: #354139; }
    .custom-team-detail-hero-copy h2 { margin: 0; font-size: 22px; text-shadow: 0 1px 5px rgb(0 0 0 / 35%); }
    .custom-team-detail-hero:not(.has-cover) .custom-team-detail-hero-copy h2 { text-shadow: none; }
    .custom-team-detail-hero-copy p { margin: 4px 0 0; font-size: 13px; text-shadow: 0 1px 4px rgb(0 0 0 / 45%); }
    .custom-team-detail-hero:not(.has-cover) .custom-team-detail-hero-copy p { text-shadow: none; }
    .custom-team-detail-hero .outline-button { position: absolute; z-index: 2; top: 12px; right: 12px; background: rgb(255 255 255 / 92%); }
    .custom-team-members-heading { margin: 18px 0 9px; color: #354139; font-size: 13px; font-weight: 680; }
    .custom-team-members-table { width: 100%; max-width: 100%; border-collapse: collapse; }
    .custom-team-members-table th, .custom-team-members-table td { padding: 10px 12px; border-bottom: 1px solid #eef0ee; color: #354139; font-size: 13px; text-align: left; }
    .custom-team-members-table thead th { background: #fafbfa; color: #68736d; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
    .custom-team-members-table th:last-child, .custom-team-members-table td:last-child { width: 1%; white-space: nowrap; text-align: left; font-variant-numeric: tabular-nums; }
    .team-member-picker { display: grid; max-height: 220px; gap: 2px; overflow-y: auto; padding: 5px; border: 0; border-radius: 0; }
    .team-member-picker[hidden] { display: none; }
    .team-member-search-heading { display: flex; align-items: baseline; gap: 10px; }
    .team-member-search-heading label { margin-bottom: 6px; }
    .team-member-option { display: flex; align-items: center; column-gap: 0 !important; padding: 6px; border-radius: 5px; color: #46534b; font-size: 13px; }
    .team-member-option > span { line-height: 14px; }
    .team-member-option input[data-custom-team-member] { display: inline-grid; width: 14px; height: 14px; min-height: 14px; flex: 0 0 14px; place-items: center; align-self: center; margin: 0 16px 0 0 !important; padding: 0; appearance: none; border: 0; border-radius: 0; background: #e7ece8; cursor: pointer; }
    .team-member-option input[data-custom-team-member]:checked { background: var(--green); }
    .team-member-option input[data-custom-team-member]:checked::after { width: 4px; height: 7px; border: solid #fff; border-width: 0 1.5px 1.5px 0; content: ""; transform: rotate(45deg) translateY(-1px); }
    .team-member-option input[data-custom-team-member]:focus-visible { outline: 2px solid #9bc9aa; outline-offset: 2px; }
    .team-member-option:hover { background: #f5f8f5; }
    .team-member-search { margin-bottom: 8px; }
    .team-selected-members { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
    .team-selected-members:empty { display: none; }
    .team-selected-member { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 14px; background: #eef5ef; color: #355b40; font-size: 13px; }
    .team-selected-member button { display: inline-grid; width: 15px; height: 15px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 13px; line-height: 1; }
    .team-member-search-prompt { color: #b42318; font-size: 13px; }
    .team-cover-preview { width: 100%; max-height: 150px; border-radius: 7px; object-fit: cover; }
    .team-cover-preview[hidden] { display: none; }
    .budget-chart { padding: 14px 16px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
    .budget-chart-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 13px; }
    .budget-chart-title { color: #354139; font-size: 13px; font-weight: 680; }
    .budget-chart-over { color: #b3483f; }
    .budget-chart-svg { display: block; width: 100%; height: auto; }
    .budget-chart-grid { stroke: #eef0ee; stroke-width: 1; }
    .budget-chart-zero { stroke: #b3483f; stroke-dasharray: 4 3; stroke-width: 1; }
    .budget-chart-axis { fill: #89928d; font-size: 13px; }
    .budget-chart-area { fill: var(--green-light); opacity: .7; }
    .budget-chart-line { stroke: var(--green); stroke-width: 2; stroke-linejoin: round; }
    .budget-chart-line.over, .budget-chart-dot.over { stroke: #b3483f; }
    .budget-chart-dot { fill: #fff; stroke: var(--green); stroke-width: 2; }
    .budget-chart-empty { padding: 4px 0 6px; color: #89928d; font-size: 13px; }
    .projected-hours-card { margin-top: 8px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
    .projected-hours-table th { height: 39px; padding: 0 17px; background: #fafbfa; border-bottom: 1px solid var(--line); text-align: left; }
    .projected-hours-table td { height: 52px; padding: 0 17px; border-top: 1px solid #eef0ee; }
    .projected-hours-table tbody tr:first-child td { border-top: 0; }
    .projected-hours-table .projected-hours-department { width: 210px; }
    .projected-hours-table .projected-hours-department select { width: 100%; }
    .projected-hours-table .projected-hours-cell { width: 170px; }
    .projected-hours-table .projected-hours-action { width: 1%; text-align: right; }
    .projected-hours-table tfoot th, .projected-hours-table tfoot td { height: 44px; border-top: 1px solid var(--line); border-bottom: 0; background: #fafbfa; color: #354139; font-size: 13px; }
    .projected-hours-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
    .projected-hours-edit-button { min-height: 30px; padding: 0 14px; font-size: 13px; }
    .department-badge { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 13px; font-weight: 650; }
    .department-select { font-weight: 650; }
    .rate-heading { display: inline-flex; align-items: center; gap: 6px; }
    .rate-visibility-toggle { display: grid; width: 22px; height: 22px; place-items: center; padding: 0; border: 0; border-radius: 5px; background: transparent; color: #89928d; cursor: pointer; }
    .rate-visibility-toggle:hover, .rate-visibility-toggle[aria-pressed="true"] { background: #eef2ee; color: var(--green-dark); }
    .rate-visibility-toggle:focus-visible { outline: 3px solid #9bc9aa; outline-offset: 2px; }
    .projected-hours-table .projected-hours-rate { width: 150px; }
    .projected-hours-table .rate-input, .projected-hours-table .rate-value { display: none; }
    .projected-hours-table .rate-input { width: 110px; }
    .projected-hours-table .rate-mask { color: #89928d; letter-spacing: 2px; }
    .projected-hours-table.rates-visible .rate-input { display: inline-block; }
    .projected-hours-table.rates-visible .rate-value { display: inline; }
    .projected-hours-table.rates-visible .rate-mask { display: none; }
    .projected-hours-add-row { background: #fcfdfc; }
    .projected-hours-add-row input[name="memberName"] { width: 100%; }
    .projected-hours-input, .projected-hours-add-row input { min-height: 34px; padding: 6px 9px; border: 1px solid #e3e8e3; border-radius: 7px; background: #fff; color: var(--ink); font: inherit; font-size: 13px; }
    .projected-hours-input { width: 110px; }
    .projected-hours-add-row .primary-button { min-height: 34px; padding: 0 16px; font-size: 13px; }
    .budget-cost-summary { margin-top: 5px; color: #5b6760; font-size: 13px; }
    .project-link { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-size: 13px; font-weight: 650; text-decoration: none; overflow-wrap: anywhere; }
    .project-link:hover { color: var(--green-dark); text-decoration: underline; text-underline-offset: 3px; }
    .detail-footer { justify-content: space-between; }
    .detail-footer-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
    .view-tabs { overflow-x: auto; display: flex; gap: 5px; margin: -8px 0 22px; border-bottom: 1px solid var(--line); }
    .view-tab { position: relative; min-height: 39px; padding: 0 13px; border: 0; background: transparent; color: #748078; font-size: 13px; font-weight: 620; }
    .view-tab:hover { color: var(--green-dark); }
    .view-tab[aria-selected="true"] { color: var(--green-dark); }
    .view-tab[aria-selected="true"]::after { position: absolute; right: 10px; bottom: -1px; left: 10px; height: 2px; border-radius: 2px; background: var(--green); content: ""; }
    .project-time-view { width: 100%; }
    .project-time-week-view { width: 100%; margin-top: 16px; padding: 18px; }
    .project-time-week-view[hidden] { display: none; }
    .project-time-week-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 13px; }
    .project-time-week-table th, .project-time-week-table td { padding: 9px 12px; border-bottom: 1px solid #eef0ee; color: #354139; text-align: left; }
    .project-time-week-table thead th { background: #fafbfa; border-bottom: 1px solid var(--line); color: #5b6760; font-size: 13px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; }
    .project-time-week-table thead th span { display: block; font-weight: 400; text-transform: none; letter-spacing: 0; }
    .project-time-chart-heading:has(.project-time-week-actions) { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
    #weekCustomError:empty { display: none; }
    #weekCustomError { color: #b42318; font-size: 13px; margin: 8px 0 0; }
    .project-time-week-remove { margin-left: 8px; border: 0; background: none; color: var(--muted); font-size: 16px; line-height: 1; cursor: pointer; }
    .project-time-week-remove:hover { border-radius: 4px; background: #fdecea; color: #b42318; }
    .project-time-week-remove:focus-visible, .project-time-week-export-menu button:focus-visible { outline: 2px solid var(--green-dark); outline-offset: 2px; }
    .project-time-week-actions { display: inline-flex; gap: 8px; flex-wrap: wrap; }
    .project-time-week-navigation { display: inline-flex; align-items: center; gap: 5px; }
    .project-time-week-picker { position: relative; display: inline-flex; }
    .project-time-week-range-button { white-space: nowrap; }
    .project-time-week-date-input { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
    .project-time-week-export { position: relative; }
    .project-time-week-export summary { list-style: none; display: inline-flex; align-items: center; }
    .project-time-week-export summary::-webkit-details-marker { display: none; }
    .project-time-week-export-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 5; display: grid; min-width: 160px; padding: 4px; border: 1px solid var(--line); border-radius: 7px; background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
    .project-time-week-export-menu button { padding: 7px 10px; border: 0; border-radius: 5px; background: none; color: #354139; font-size: 13px; text-align: left; cursor: pointer; }
    .project-time-week-export-menu button:hover { background: #eef2ee; }
    .project-time-week-table tfoot td.project-time-week-under { color: #c62828; }
    body.auth-locked > *:not(.auth-screen) { display: none !important; }
    .auth-screen { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 20px; background: var(--canvas); overflow: auto; }
    .auth-card { display: grid; gap: 14px; width: min(100%, 380px); padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 8px 30px rgba(0,0,0,.06); }
    .auth-brand { color: var(--green-dark); font-size: 20px; font-weight: 750; }
    .auth-card h1 { margin: 0; font-size: 20px; }
    .auth-sub { margin: -6px 0 2px; color: #68736d; font-size: 13px; }
    .auth-card label { display: grid; gap: 5px; color: #354139; font-size: 13px; font-weight: 600; }
    .auth-card input[type="text"], .auth-card input[type="password"], .auth-card input[type="email"], .auth-card select { min-height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-size: 13px; }
    .auth-card .auth-remember { display: flex; align-items: center; gap: 8px; font-weight: 500; }
    .auth-error { min-height: 16px; color: #c62828; font-size: 13px; }
    .auth-submit { width: 100%; }
    .profile-password-section { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
    .profile-password-section[hidden] { display: none; }
    .profile-password-section > summary { color: var(--ink); font-size: 14px; font-weight: 650; cursor: pointer; }
    .profile-password-message { min-height: 0; margin: 0; color: var(--muted); font-size: 13px; }
    .profile-password-message:empty { display: none; }
    .profile-password-section button { justify-self: start; margin-top: 16px; }
    .auth-switch { border: 0; background: none; color: var(--green-dark); font-size: 13px; font-weight: 600; cursor: pointer; }
    .auth-switch:empty { display: none; }
    .sign-out-button { min-height: 32px; padding: 0 12px; }
    .sign-out-button[hidden] { display: none; }
    .risk-badges { display: inline-flex; gap: 4px; flex-wrap: wrap; margin-left: 8px; vertical-align: middle; }
    .board-card .risk-badges { margin-left: 0; }
    .risk-badge { display: inline-block; padding: 2px 7px; border-radius: 10px; font-size: 13px; font-weight: 650; white-space: nowrap; }
    .risk-badge.overdue, .risk-badge.budget { background: #fdecea; color: #c62828; }
    .risk-badge.soon { background: #fff4e0; color: #b26a00; }
    .layout-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
    .layout-toggle button { min-height: 32px; padding: 0 12px; border: 0; background: #fff; color: #5b6760; font-size: 13px; font-weight: 600; cursor: pointer; }
    .layout-toggle button[aria-pressed="true"] { background: var(--green-dark); color: #fff; }
    .board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 12px; padding: 14px; overflow-x: auto; align-items: start; }
    .board-column { display: grid; gap: 8px; align-content: start; min-height: 140px; padding: 10px; border-radius: 10px; background: #f4f6f4; transition: background-color .22s ease; }
    .board-column.drag-over { outline: 2px dashed var(--green-dark); outline-offset: -2px; }
    .board-column-title { display: flex; justify-content: space-between; color: #354139; font-size: 13px; font-weight: 700; }
    .board-column-title span { color: #78817c; font-weight: 600; }
    .board-card { display: grid; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-align: left; font: inherit; color: inherit; cursor: pointer; transition: border-color .22s ease, background-color .22s ease; }
    .board-card.is-being-worked { border-color: #a9c8b2; background: #f4f9f5; box-shadow: inset 3px 0 var(--green); }
    .board-card .active-work-indicator { margin: 0; }
    .board-card[draggable="true"] { cursor: grab; }
    .board-card.dragging { opacity: .45; }
    .board-card:hover { border-color: var(--green-dark); }
    .board-card-job { color: #78817c; font-size: 13px; }
    .board-card-name { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 650; }
    .board-card.is-hot { border-color: #efd2cd; background: #fff9f7; }
    .board-card-meta { display: flex; justify-content: space-between; align-items: center; gap: 6px; color: #68736d; font-size: 13px; }
    .board-card .billing-type-badge { justify-self: start; }
    .board-empty { padding: 14px 6px; color: #9aa39e; font-size: 13px; text-align: center; }
    .workload-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; }
    .workload-capacity { display: inline-flex; align-items: center; gap: 8px; color: #354139; font-size: 13px; font-weight: 600; }
    .workload-capacity input { width: 64px; min-height: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; font: inherit; }
    .workload-table td, .workload-table th { text-align: right; font-variant-numeric: tabular-nums; }
    .workload-table td:first-child, .workload-table th:first-child { text-align: left; }
    .workload-cell { font-weight: 600; }
    .workload-cell.warn { background: #fff4e0; color: #b26a00; }
    .workload-cell.over { background: #fdecea; color: #c62828; }
    .workload-note { padding: 12px 16px 16px; color: #78817c; font-size: 13px; }
    .project-time-week-add { cursor: pointer; font-weight: 600; }
    .project-time-week-add { min-height: 30px; max-width: 220px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: #354139; font-size: 13px; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
    .project-time-week-add:hover { background: #f0f5f1; border-color: #9db7a4; color: #1f5b3b; }
    .project-time-week-add:focus-visible, .project-time-week-export summary:focus-visible { outline: 2px solid var(--green-dark); outline-offset: 2px; }
    .project-time-week-add-entry { display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
    .project-time-week-input { width: 56px; padding: 4px 6px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #354139; font: inherit; text-align: right; font-variant-numeric: tabular-nums; }
    .project-time-week-input:hover { border-color: #d5dbd6; }
    .project-time-week-input:focus { border-color: var(--green-dark); background: #fff; outline: none; }
    .project-time-week-input::placeholder { color: #5b6760; opacity: 1; }
    .project-time-week-jobnumber { white-space: nowrap; }
    .project-time-week-table tbody th { font-weight: 600; }
    .project-time-week-table .project-time-week-hours { text-align: right; font-variant-numeric: tabular-nums; }
    .project-time-week-table .project-time-week-total, .project-time-week-table tfoot th, .project-time-week-table tfoot td { font-weight: 700; }
    .project-time-week-table tfoot th, .project-time-week-table tfoot td { border-top: 1px solid var(--line); border-bottom: 0; background: #fafbfa; }
    .projects-view[hidden], .project-time-view[hidden], .page-action[hidden] { display: none; }
    .team-list-view[hidden] { display: none; }
    .project-detail-screen[hidden] { display: none; }
    .project-detail-screen { padding-bottom: 24px; }
    .main.proofing-active .project-detail-screen { display: flex; min-height: 0; flex: 1 1 auto; flex-direction: column; padding-bottom: 0; }
    .detail-back-button { display: inline-flex; align-items: center; gap: 7px; margin: 16px 0 22px; padding: 5px 0; border: 0; background: transparent; color: #718078; font-size: 13px; font-weight: 620; }
    .main.proofing-active .detail-back-button { flex: 0 0 auto; }
    .detail-back-button[hidden], .project-detail-heading[hidden] { display: none; }
    .detail-back-button:hover { color: var(--green-dark); }
    .project-detail-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 19px; }
    .project-detail-title-group { min-width: 0; }
    .project-detail-title-group { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
    .project-detail-title-group h2 { margin: 0; }
    .project-detail-title-group .project-detail-subtitle { flex-basis: 100%; }
    .project-detail-active-workers { display: inline-flex; align-items: center; }
    #projectActiveWorkIndicators[hidden] { display: none; }
    .project-detail-active-workers .active-work-indicator { margin-left: 0; }
    .project-detail-active-workers .active-work-avatar { width: 32px; height: 32px; font-size: 13px; }
    .project-detail-heading h2 { margin: 0; color: #253129; font-size: 22px; font-weight: 690; letter-spacing: -.65px; overflow-wrap: anywhere; }
    .project-detail-subtitle { margin: 5px 0 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
    .project-detail-subtitle:empty { display: none; }
    .project-detail-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
    .project-detail-actions .primary-button, .project-detail-actions .route-link-menu summary { font-size: 13px; }
    .project-detail-heading.is-hot .project-detail-actions > .primary-button { background: #a52d26; color: #fff; box-shadow: 0 2px 4px rgb(124 35 29 / 20%); transition: background .22s ease, color .22s ease, transform .15s; }
    .project-detail-heading.is-hot .project-detail-actions > .primary-button:hover { background: #84251f; }
    .project-detail-heading.is-hot .project-detail-actions > .outline-button,
    .project-detail-heading.is-hot .project-detail-actions > .detail-work-button,
    .project-detail-heading.is-hot .project-detail-actions > .route-link-menu summary,
    .project-detail-heading.is-hot .project-detail-actions > .project-menu summary { border-color: #e5aaa4; background: #fff1ef; color: #812820; transition: background-color .22s ease, border-color .22s ease, color .22s ease; }
    .project-detail-heading.is-hot .project-detail-actions > .outline-button:hover,
    .project-detail-heading.is-hot .project-detail-actions > .detail-work-button:hover,
    .project-detail-heading.is-hot .project-detail-actions > .route-link-menu summary:hover,
    .project-detail-heading.is-hot .project-detail-actions > .project-menu summary:hover,
    .project-detail-heading.is-hot .project-detail-actions > .project-menu[open] summary { border-color: #d98179; background: #fce2df; color: #71221c; }
    .project-detail-heading.is-hot .project-detail-actions :is(.primary-button, .outline-button, .detail-work-button, .route-link-menu summary, .project-menu summary):focus-visible { outline: 3px solid #d84a40; outline-offset: 2px; }
    .route-link-menu { position: relative; }
    .route-link-menu[hidden] { display: none; }
    .route-link-menu summary { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 8px; padding: 0 12px 0 15px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--green-dark); cursor: pointer; font-size: 13px; font-weight: 650; list-style: none; }
    .route-link-menu summary::-webkit-details-marker { display: none; }
    .route-link-menu summary::marker { content: none; }
    .route-link-menu summary:hover, .route-link-menu[open] summary { border-color: #cbd9ce; background: #f8faf8; }
    .route-link-menu summary:focus-visible, .route-link-menu-item:focus-visible { outline: 3px solid #9bc9aa; outline-offset: 2px; }
    .route-link-menu-popover { position: absolute; z-index: 3; top: calc(100% + 6px); right: 0; display: grid; min-width: 160px; padding: 5px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 8px 24px rgb(25 44 34 / 13%); }
    .route-link-menu-item { display: flex; min-height: 34px; align-items: center; justify-content: space-between; gap: 12px; padding: 0 9px; border-radius: 5px; color: #46534b; font-size: 13px; text-decoration: none; }
    .route-link-menu-item[hidden] { display: none; }
    .route-link-menu-item:hover { background: #f3f6f3; }
    .project-menu { position: relative; }
    .project-menu summary { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: #647169; cursor: pointer; list-style: none; }
    .project-menu summary::-webkit-details-marker { display: none; }
    .project-menu summary:hover, .project-menu[open] summary { background: #f5f8f5; color: var(--green-dark); }
    .project-menu summary:focus-visible, .project-menu-item:focus-visible { outline: 3px solid #9bc9aa; outline-offset: 2px; }
    .project-menu-popover { position: fixed; z-index: 1000; display: grid; min-width: 156px; padding: 5px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 8px 24px rgb(25 44 34 / 13%); }
    .project-menu[open]:not(#projectActionsMenu) .project-menu-popover { visibility: hidden; }
    #projectActionsMenu .project-menu-popover { position: absolute; top: calc(100% + 6px); right: 0; left: auto; max-height: calc(100vh - 16px); overflow-y: auto; }
    .project-menu-item { display: flex; width: 100%; min-height: 34px; align-items: center; gap: 9px; padding: 0 9px; border: 0; border-radius: 5px; background: transparent; color: #46534b; font-size: 13px; text-align: left; }
    .project-menu-item svg { width: 15px; height: 15px; flex: 0 0 auto; }
    .project-menu-item:hover { background: #f3f6f3; }
    .project-menu-item.delete { color: var(--red); }
    .project-menu-item.delete:hover { background: var(--red-light); }
    .project-menu-item:disabled { cursor: not-allowed; opacity: .58; }
    .project-menu-item:disabled:hover { background: transparent; }
    .project-detail-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
    .project-detail-navigation { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); }
    .project-detail-tabs { display: flex; gap: 12px; min-width: 0; padding: 0 16px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
    .project-detail-tabs::-webkit-scrollbar { display: none; }
    .project-detail-tab { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 11px; border: 0; background: transparent; color: #748078; font-size: 14px; font-weight: 620; white-space: nowrap; }
    .project-detail-tab[hidden] { display: none; }
    .project-detail-tab > svg { width: 15px; height: 15px; flex: 0 0 15px; }
    .project-detail-tab:hover, .project-detail-tab[aria-selected="true"] { color: var(--green-dark); }
    .project-detail-tab[aria-selected="true"]::after { position: absolute; right: 8px; bottom: -1px; left: 8px; height: 2px; border-radius: 2px; background: var(--green); content: ""; }
    .project-detail-panel.is-hot .project-detail-navigation { border-bottom-color: #e7c8c4; }
    .project-detail-panel.is-hot .project-detail-tab:hover,
    .project-detail-panel.is-hot .project-detail-tab[aria-selected="true"] { color: #c43c32; }
    .project-detail-panel.is-hot .project-detail-tab[aria-selected="true"]::after { background: #d84a40; }
    .project-workflow { max-width: 900px; padding: 18px; }
    .project-workflow-heading { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
    .project-workflow-heading h3 { margin: 0; color: #354139; font-size: 15px; }
    .project-workflow-heading p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
    .workflow-open-proof-icon { display: grid; width: 36px; min-height: 36px; flex: 0 0 36px; place-items: center; padding: 0; }
    .workflow-open-proof-icon svg { width: 18px; height: 18px; }
    .workflow-proof-select { display: grid; max-width: 420px; gap: 5px; margin-bottom: 14px; color: #56615b; font-size: 13px; font-weight: 650; }
    .workflow-proof-select select { min-height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); font: inherit; }
    .workflow-proof-summary { margin-bottom: 14px; padding: 0; border: 0; background: transparent; color: inherit; font-size: 13px; }
    .workflow-proof-layout { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
    .workflow-proof-preview { display: flex; width: fit-content; align-items: center; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: #fafbfa; }
    .workflow-proof-thumbnail { display: block; width: 80px; height: 80px; flex: 0 0 80px; object-fit: contain; border: 1px solid #e3e8e4; border-radius: 5px; background: #fff; }
    .workflow-proof-thumbnail-fallback { display: grid; place-items: center; color: #69766d; font-size: 13px; font-weight: 700; }
    .workflow-proof-status { display: grid; min-width: 0; gap: 5px; color: #56615b; font-size: 13px; }
    .workflow-proof-status strong { color: #354139; font-size: 13px; }
    .workflow-route { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
    .workflow-route-step { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding-bottom: 14px; }
    .workflow-route-step:not(:last-child)::before { position: absolute; top: 32px; bottom: 0; left: 16px; width: 2px; background: #dfe7e1; content: ""; }
    .workflow-route-avatar { position: relative; z-index: 1; display: grid; width: 32px; height: 32px; align-self: start; justify-self: center; place-items: center; box-sizing: border-box; padding: 0; border: 1px solid #d8e3da; border-radius: 50%; background: #f2f6f3; color: #52665a; font-size: 13px; font-weight: 700; line-height: 1; text-align: center; }
    .workflow-route-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 54px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
    .workflow-route-step.is-current .workflow-route-card { border-color: #a9c8b2; background: #f6faf7; }
    .workflow-route-person { color: #354139; font-size: 13px; font-weight: 680; }
    .workflow-route-status { display: block; margin-top: 3px; color: #748078; font-size: 13px; }
    .workflow-route-status.is-approved { color: #287344; }
    .workflow-route-status.is-changes { color: #a45b18; }
    .workflow-route-actions { display: flex; flex-wrap: wrap; gap: 6px; }
    .workflow-route-actions button { min-height: 30px; padding: 0 9px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: #435047; font-size: 13px; font-weight: 650; cursor: pointer; }
    .workflow-route-actions button:first-child { border-color: #b8d0be; background: #f4f9f5; color: #31583e; }
    .workflow-empty { padding: 16px 0; color: var(--muted); font-size: 13px; }
    .workflow-empty p { margin: 5px 0 12px; }
    .proof-workspace-link { margin-right: 16px; color: var(--green-dark); }
    .proof-workspace-link:hover { text-decoration: underline; text-underline-offset: 3px; }
    .proof-panel { display: block; }
    .main.proofing-active .proof-panel { display: flex; min-height: 0; flex: 1 1 auto; flex-direction: column; }
    .project-detail-panel .proof-panel[hidden] { display: none; }
    .proofs-workspace[hidden] { display: none; }
    .proofs-workspace { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
    .main.proofing-active .proofs-workspace { display: flex; min-height: 0; flex: 1 1 auto; flex-direction: column; }
    .proofs-workspace-heading { padding: 18px 18px 14px; }
    .proofs-workspace-heading h2 { margin: 0; color: #253129; font-size: 17px; font-weight: 680; }
    .proofs-workspace-heading p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
    .proof-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
    .proof-toolbar .filter-control { width: auto; min-width: 0; max-width: min(260px, 100%); }
    .proof-toolbar .secondary-button { min-height: 34px; }
    .proof-toolbar > label.secondary-button, .proof-toolbar > button.secondary-button { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; white-space: nowrap; }
    .proof-toolbar .secondary-button[hidden] { display: none; }
    .proof-approval-actions { display: flex; flex: 0 0 auto; gap: 6px; }
    .proof-approval-actions[hidden] { display: none; }
    .proof-approval-button { min-height: 34px; padding: 0 10px; border: 1px solid #b8d0be; border-radius: 7px; background: #f4f9f5; color: #31583e; font-size: 13px; font-weight: 650; cursor: pointer; white-space: nowrap; }
    .proof-approval-button.needs-changes { border-color: #e2c69c; background: #fff8ed; color: #8a5519; }
    .proof-approval-button:hover:not(:disabled) { border-color: #7da88a; background: #e5f1e8; }
    .proof-approval-button.needs-changes:hover:not(:disabled) { border-color: #c69c62; background: #f8edda; }
    .proof-approval-button[aria-pressed="true"] { border-color: #438455; background: #dcecdf; box-shadow: inset 0 0 0 1px currentColor; }
    .proof-approval-button.needs-changes[aria-pressed="true"] { border-color: #b4782d; background: #f3e4c9; color: #70420f; }
    .proof-approval-button:active:not(:disabled) { transform: translateY(1px); }
    .proof-approval-button:disabled { cursor: not-allowed; opacity: .5; }
    .proof-tool-button { display: grid; width: 36px; height: 34px; place-items: center; padding: 0; }
    .proof-canvas-controls { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 5px; border-right: 1px solid var(--line); background: #f8faf8; }
    #proofCanvasControls[hidden] { display: none; }
    #proofCanvasControls[hidden] + .proof-stage { grid-column: 1 / 3; }
    .proof-canvas-tool-separator { width: 24px; height: 1px; margin: 2px 0; background: #dfe5e0; }
    .proof-tool-button[aria-pressed="true"] { border-color: #b9d2c0; background: #eef6f0; color: var(--green-dark); }
    .proof-tool-button:focus-visible { outline: 3px solid #9bc9aa; outline-offset: 2px; }
    .proof-tool-button:disabled { cursor: not-allowed; opacity: .5; }
    .proof-toolbar-spacer { flex: 1 1 auto; }
    .proof-local-note { width: 100%; margin: 0; color: var(--muted); font-size: 13px; }
    .proof-canvas-shell { display: grid; grid-template-columns: 48px minmax(0, 1fr) minmax(240px, 310px); min-height: 420px; }
    .main.proofing-active .proof-canvas-shell { min-height: 0; flex: 1 1 auto; grid-template-rows: minmax(0, 1fr); }
    .proof-stage { display: grid; min-width: 0; min-height: 420px; place-items: center; padding: 22px; overflow: auto; background: #f0f2f0; }
    .main.proofing-active .proof-stage { min-height: 0; }
    .proof-viewer { position: relative; width: max-content; max-width: 100%; line-height: 0; box-shadow: 0 5px 22px rgb(24 39 30 / 16%); }
    .proof-viewer img, .proof-viewer canvas { display: block; max-width: 100%; height: auto; background: #fff; }
    .proof-overlay { position: absolute; inset: 0; overflow: hidden; }
    .proof-overlay[data-mode="pin"] { cursor: crosshair; }
    .proof-overlay[data-mode="draw"], .proof-overlay[data-mode="line"] { cursor: crosshair; touch-action: none; }
    .proof-overlay svg { display: block; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
    .proof-marker { position: absolute; z-index: 1; display: grid; width: 28px; height: 28px; place-items: center; padding: 0; transform: translate(-50%, -50%); border: 2px solid #fff; border-radius: 50%; background: #b3483f; color: #fff; font-size: 13px; font-weight: 700; line-height: 24px; cursor: pointer; }
    .proof-marker.resolved { background: #748078; }
    .proof-marker.selected { z-index: 2; transform: translate(-50%, -50%) scale(1.15); border-color: #fff; background: #d29132; box-shadow: 0 0 0 3px rgb(210 145 50 / 30%); }
    .proof-markup-number { position: absolute; z-index: 1; display: grid; width: 21px; height: 21px; place-items: center; border: 2px solid #fff; border-radius: 50%; background: #b3483f; box-shadow: 0 1px 4px rgb(24 39 30 / 28%); color: #fff; font: 700 13px/1 Inter, ui-sans-serif, system-ui, sans-serif; transform: translate(-50%, -50%); }
    .proof-markup-number.selected { z-index: 2; background: #d29132; box-shadow: 0 0 0 3px rgb(210 145 50 / 30%); }
    .proof-stroke { fill: none; stroke: #d3463d; stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; pointer-events: none; }
    .proof-stroke.selected { stroke: #d29132; stroke-width: 10; }
    .proof-stroke-thin { stroke-width: 4; }
    .proof-stroke-thin.selected { stroke-width: 5; }
    .proof-annotations-panel { position: relative; display: flex; min-height: 0; max-height: 680px; flex-direction: column; border-left: 1px solid var(--line); background: #fff; }
    .main.proofing-active .proof-annotations-panel { height: 100%; max-height: none; overscroll-behavior: contain; }
    .proof-annotations-heading { display: flex; min-height: 42px; flex: 0 0 auto; align-items: center; justify-content: flex-start; gap: 6px; padding: 6px 14px 0; color: #354139; font-size: 13px; font-weight: 680; }
    .proof-annotations-heading > span { display: inline-flex; align-items: center; gap: 4px; }
    .proof-comment-filter-toggle { width: 30px; height: 30px; color: #657169; }
    .proof-comment-filter-toggle[aria-expanded="true"] { background: #eef6f0; color: var(--green-dark); }
    .proof-comment-filters { position: absolute; z-index: 5; top: 42px; right: 10px; display: grid; width: min(260px, calc(100% - 20px)); max-height: calc(100% - 52px); gap: 8px; padding: 10px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 8px 24px rgb(25 44 34 / 16%); }
    .proof-comment-filters[hidden] { display: none; }
    .proof-comment-filters .filter-control { width: 100%; min-width: 0; max-width: 100%; }
    .proof-comment-composer { display: grid; flex: 0 0 auto; gap: 7px; max-height: min(55vh, 390px); margin: 8px 14px 0; padding: 10px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
    .proof-comment-composer[hidden] { display: none; }
    .proof-comment-composer-label, .proof-comment-composer > .field-label { display: block; margin: 0; color: #55615a; font-size: 13px; font-weight: 650; }
    .proof-comment-composer textarea { width: 100%; min-height: 58px; padding: 8px 9px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); font: inherit; font-size: 13px; resize: vertical; }
    .proof-comment-composer .proof-tag-picker-menu { width: 100%; }
    .proof-comment-composer .field-hint { margin: 0; }
    .proof-comment-composer-attachments { display: grid; justify-items: start; gap: 4px; }
    .proof-comment-composer-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; padding-top: 3px; }
    .proof-comment-composer-actions .proof-attachment-icon { flex: 0 0 34px; margin: 0 auto 0 0 !important; }
    .proof-comment-composer-actions button { min-height: 30px; padding: 0 10px; font-size: 13px; }
    .proof-annotations { display: grid; min-height: 0; flex: 1 1 auto; align-content: start; gap: 10px; padding: 12px 14px 14px; overflow: auto; }
    .proof-approval-summary { margin: 0 14px 2px; color: #5b6760; font-size: 13px; line-height: 1.45; }
    .proof-approval-summary[hidden] { display: none; }
    .proof-comment { position: relative; padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
    .proof-comment[data-proof-select-annotation] { cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
    .proof-comment[data-proof-select-annotation]:hover { border-color: #cbd9ce; }
    .proof-comment.active { border-color: #b7d1be; background: #f1f7f2; }
    .proof-comment:focus-visible { outline: 2px solid #9bc9aa; outline-offset: 2px; }
    .proof-comment.resolved { background: #f7f9f7; opacity: .75; }
    .proof-comment.resolved.active { background: #eff5f0; opacity: .9; }
    .proof-comment-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 8px; }
    .proof-comment-heading.has-comment-controls { padding-right: 50px; }
    .proof-comment-heading strong { color: #354139; font-size: 13px; }
    .proof-comment-number { display: inline-flex; align-items: center; margin-left: 5px; padding: 2px 5px; border-radius: 8px; background: #eef3ef; color: #68756c; font-size: 13px; font-weight: 650; vertical-align: 1px; }
    .proof-comment-heading time { color: #5b6760; font-size: 13px; }
    .proof-comment-location { margin-top: 4px; color: var(--green-dark); font-size: 13px; font-weight: 650; }
    .proof-comment-body { margin: 7px 0 0; color: #56615b; font-size: 13px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
    .proof-comment-attachments { display: grid; gap: 4px; margin-top: 8px; }
    .proof-attachment-icon { display: inline-grid !important; width: 34px; height: 34px; place-items: center; margin: 6px 0 0 !important; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--muted); cursor: pointer; }
    .proof-attachment-icon:hover { border-color: #b6c9bc; background: #f8faf8; color: var(--green-dark); }
    .proof-comment-composer:has(#proofCommentAttachmentInput:focus-visible) .proof-attachment-icon { outline: 3px solid #9bc9aa; outline-offset: 2px; }
    .proof-comment-attachment { display: inline-flex; width: fit-content; max-width: 100%; align-items: center; gap: 5px; padding: 4px 7px; border: 1px solid #d9e4db; border-radius: 5px; background: #f6faf7; color: var(--green-dark); font-size: 13px; text-align: left; overflow-wrap: anywhere; }
    .proof-comment-attachment:hover { border-color: #b7d1be; background: #eef6f0; }
    .proof-comment-mention { display: inline-block; margin: 0 1px; vertical-align: baseline; white-space: normal; }
    .proof-comment-actions { display: flex; gap: 10px; margin-top: 8px; }
    .proof-comment-actions button { padding: 0; border: 0; background: transparent; color: var(--green-dark); font-size: 13px; font-weight: 620; }
    .proof-comment-delete { position: absolute; top: 6px; right: 6px; display: grid; width: 23px; height: 23px; place-items: center; padding: 0; border: 0; border-radius: 5px; background: transparent; color: var(--red); font-size: 17px; line-height: 1; cursor: pointer; }
    .proof-comment-delete:hover { background: #faeeee; }
    .proof-comment-edit-icon { position: absolute; top: 6px; right: 32px; display: grid; width: 23px; height: 23px; place-items: center; padding: 0; border: 0; border-radius: 5px; background: transparent; color: var(--green-dark); cursor: pointer; }
    .proof-comment-edit-icon:hover { background: #e8f0ea; }
    .proof-comment-edit-icon svg { width: 13px; height: 13px; }
    .proof-comment-toggle { display: inline-grid; width: 20px; height: 20px; place-items: center; padding: 0; border: 1px solid #cbd9ce !important; border-radius: 50%; font-size: 13px !important; line-height: 1; transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease; }
    .proof-comment-toggle:hover, .proof-comment-toggle:focus-visible { border-color: #91b39a !important; background: #e8f0ea; color: #355d43; box-shadow: 0 0 0 2px rgb(145 179 154 / 22%); }
    .proof-comment-toggle[aria-pressed="true"] { background: #e8f0ea; }
    .proof-comment-edit-form { display: grid; gap: 7px; margin-top: 8px; }
    .proof-comment-edit-form textarea { min-height: 72px; padding: 7px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 13px; line-height: 1.45; resize: vertical; }
    .proof-comment-edit-actions { display: flex; gap: 7px; }
    .proof-comment-edit-actions button { min-height: 28px; padding: 0 9px; border: 0; border-radius: 6px; background: #e8f0ea; color: #466152; font-size: 13px; font-weight: 620; }
    .proof-comment-edit-actions button[type="button"] { background: transparent; color: #68736d; }
    .proof-replies { display: grid; gap: 7px; margin: 9px 0 0 9px; padding-left: 9px; border-left: 2px solid #e9eeea; }
    .proof-reply { color: #68736d; font-size: 13px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
    .proof-reply strong { color: #435047; }
    .proof-reply-form { display: flex; gap: 6px; margin-top: 9px; }
    .proof-reply-form input { min-width: 0; min-height: 31px; flex: 1; padding: 5px 7px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; }
    .proof-reply-attachment-button { display: grid; width: 31px; height: 31px; flex: 0 0 31px; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--green-dark); cursor: pointer; }
    .proof-reply-attachment-button:hover { border-color: #b6c9bc; background: #f3f7f3; }
    .proof-reply-attachment-button:focus-within { outline: 2px solid #9bc9aa; outline-offset: 2px; }
    .proof-reply-attachment-button svg { width: 15px; height: 15px; }
    .proof-reply-attachment-input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
    .proof-reply-form button { padding: 0 8px; border: 0; border-radius: 6px; background: #e8f0ea; color: #466152; font-size: 13px; font-weight: 620; }
    .proof-reply-form button:hover { background: #dce9df; }
    .proof-mention-input-wrap { position: relative; min-width: 0; flex: 1 1 100%; }
    .proof-mention-input-wrap textarea, .proof-mention-input-wrap input { width: 100%; }
    .proof-mention-suggestions { position: absolute; z-index: 10; right: 0; bottom: calc(100% + 4px); left: 0; display: grid; max-height: 180px; overflow: auto; padding: 4px; border: 1px solid var(--line); border-radius: 7px; background: #fff; box-shadow: 0 6px 18px rgb(25 44 34 / 12%); }
    .workspace-table-cell-wrap .proof-mention-suggestions { position: fixed; z-index: 1000; right: auto; bottom: auto; left: 0; width: max-content; }
    .proof-mention-suggestions[hidden] { display: none; }
    .proof-mention-option { display: flex; min-height: 32px; align-items: center; padding: 0 8px; border: 0; border-radius: 5px; background: transparent; color: #46534b; font-size: 13px; text-align: left; }
    .proof-mention-option:hover, .proof-mention-option[aria-selected="true"] { background: #eef6f0; color: var(--green-dark); }
    .proof-comment-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
    .proof-comment-tag { padding: 3px 7px; border-radius: 10px; background: #eef3ef; color: #52645a; font-size: 13px; font-weight: 650; }
    .proof-tag-picker-menu { display: flex; width: 100%; flex-wrap: wrap; align-items: center; gap: 2px 6px; padding: 2px 0; overflow: visible; }
    .proof-tag-picker-option { display: inline-flex; flex: 0 0 auto; min-height: 30px; align-items: center; gap: 3px; padding: 3px 0; border: 0; border-radius: 0; background: transparent; color: #46534b; font-size: 13px; white-space: nowrap; }
    .field .proof-tag-picker-option { display: inline-flex; align-items: center; margin: 0; }
    .proof-tag-picker-option:hover { background: transparent; }
    .field .proof-tag-picker-option input { flex: 0 0 14px; width: 14px; min-height: 14px; height: 14px; margin: 0; padding: 0; border: 0; accent-color: var(--green); }
    .proof-notification-list { display: grid; gap: 0; padding: 10px 20px; border: 0; outline: 0; }
    .proof-notification-tabs { display: flex; gap: 4px; padding: 8px 20px 0; border-bottom: 1px solid var(--line); }
    .proof-notification-tabs button { padding: 7px 10px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 13px; font-weight: 650; }
    .proof-notification-tabs button[aria-pressed="true"] { border-bottom-color: var(--green); color: var(--green-dark); }
    .proof-notification-row { display: grid; gap: 5px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
    .proof-notification-row:last-child { border-bottom: 0; }
    .proof-notification-item { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: start; gap: 10px; width: 100%; padding: 0; border: 0; background: transparent; color: #536057; text-align: left; }
    .proof-notification-copy { display: grid; min-width: 0; gap: 4px; text-align: left; }
    .proof-notification-type-icon { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border-radius: 9px; background: #eef3ef; color: #5c7162; }
    .proof-notification-type-icon svg { width: 15px; height: 15px; }
    .proof-notification-type-icon.is-review { background: #eaf4ec; color: #34724b; }
    .proof-notification-type-icon.is-tag { background: #eef3ef; color: #58745f; }
    .proof-notification-type-icon.is-mention { background: #f1edfb; color: #7156a4; }
    .proof-notification-type-icon.is-hot { background: #fff0e8; color: #ba4c1c; }
    .proof-notification-type-icon.is-hours { background: #eaf2f8; color: #346b8d; }
    .proof-notification-type-icon.is-note { background: #edf1fb; color: #526b9c; }
    .proof-notification-type-icon.is-access { background: #fff5df; color: #91631c; }
    .proof-notification-actions { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; margin-left: 40px; }
    .proof-notification-actions time { color: var(--muted); font-size: 13px; line-height: 1.4; }
    .proof-notification-mark-read, .proof-notification-clear { min-height: 22px; padding: 0; border: 0; background: transparent; color: var(--green-dark); font-size: 13px; font-weight: 650; white-space: nowrap; }
    .proof-notification-mark-read:hover, .proof-notification-clear:hover { color: var(--green); text-decoration: underline; }
    .proof-notification-footer { justify-content: space-between; }
    .proof-notification-item:hover strong { text-decoration: underline; }
    .proof-notification-item strong { color: #354139; font-size: 13px; }
    .proof-notification-item span, .proof-notification-item time { font-size: 13px; line-height: 1.45; }
    .proof-notification-empty { margin: 0; padding: 25px 10px; color: var(--muted); font-size: 13px; text-align: center; }
    .proof-empty { grid-column: 1 / -1; display: grid; min-height: 300px; place-content: center; padding: 30px; color: var(--muted); text-align: center; }
    .proof-empty strong { color: #354139; font-size: 14px; }
    .proof-empty p { max-width: 420px; margin: 7px 0 14px; font-size: 13px; line-height: 1.5; }
    .proof-empty .secondary-button { justify-self: center; }
    .proof-status { min-height: 32px; padding: 8px 18px 12px; color: var(--muted); font-size: 13px; }
    .proof-toolbar input[type="file"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
    .proof-toolbar label[for="proofFileInput"] { cursor: pointer; }
    .proof-toolbar label[for="proofFileInput"][aria-disabled="true"] { opacity: .5; pointer-events: none; }
    @media (max-width: 700px) {
      .proof-canvas-shell { grid-template-columns: 48px minmax(0, 1fr); grid-template-rows: minmax(240px, auto) auto; }
      .proof-stage { min-height: 240px; padding: 12px; }
      #proofCanvasControls[hidden] + .proof-stage { grid-column: 1 / -1; }
      .proof-annotations-panel { grid-column: 1 / -1; }
      .proof-annotations-panel { max-height: 360px; border-top: 1px solid var(--line); border-left: 0; }
      .main.proofing-active .proof-toolbar { flex: 0 0 auto; flex-wrap: nowrap; overflow-x: auto; padding: 8px 10px; }
      .main.proofing-active .proof-toolbar .filter-control { flex: 0 0 auto; }
      .main.proofing-active .proof-local-note { display: none; }
      .main.proofing-active .proof-canvas-shell { grid-template-columns: 48px minmax(0, 1fr); grid-template-rows: minmax(120px, 34%) minmax(0, 1fr); }
      .main.proofing-active .proof-stage { min-height: 0; }
      .main.proofing-active .proof-annotations-panel { height: auto; max-height: none; border-top: 1px solid var(--line); border-left: 0; }
      .proof-annotations-heading { min-height: 38px; padding: 4px 12px 0; }
      .proof-comment-filters { top: 38px; right: 8px; width: min(260px, calc(100% - 16px)); max-height: calc(100% - 46px); }
      .proof-annotations { padding: 10px 12px 12px; }
      .proof-toolbar { gap: 7px; padding: 12px; }
      .proof-toolbar .filter-control { flex: 1 1 140px; }
      .proof-toolbar-spacer { display: none; }
    }
    .project-detail-panel .detail-body { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
    #projectOverviewPanel { grid-template-columns: minmax(0, 1fr); }
    .overview-details-grid { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(240px, 0.85fr); gap: 20px 24px; }
    .overview-details-grid > #overviewPinnedNote { grid-column: 3; grid-row: 1 / span 4; align-items: flex-start; }
    .overview-details-grid > .detail-wide { grid-column: 1 / -1; }
    .overview-details-grid > section { min-width: 0; }
    .deployment-links { margin: 0; padding: 0; }
    .deployment-links-edit { min-height: 32px; padding: 5px 10px; font-size: 13px; }
    .deployment-link-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
    .deployment-link-row { display: grid; min-width: 0; gap: 5px; }
    .deployment-link-label { color: var(--muted); font-size: 13px; font-weight: 650; }
    .deployment-link-row a { overflow-wrap: anywhere; color: var(--green-dark); font-size: 13px; }
    .deployment-link-empty { color: var(--muted); font-size: 13px; }
    .brand-overview-image { display: flex; align-items: flex-start; margin: 0; }
    .brand-overview-image img { display: block; width: 100%; max-width: 250px; height: auto; object-fit: contain; }
    .project-detail-panel .detail-body[hidden] { display: none; }
    .project-detail-panel .detail-body > .detail-status-row,
    .project-detail-panel .detail-body > .detail-wide { grid-column: 1 / -1; }
    .project-detail-panel .detail-body > section { min-width: 0; }
    .project-detail-panel .detail-footer { border-top: 1px solid var(--line); }
    .project-detail-footer-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
    .activity-highlight { padding: 15px; border: 1px solid var(--line); border-radius: 9px; background: #fbfcfb; }
    .activity-highlight .detail-value { margin-top: 7px; font-weight: 650; overflow-wrap: anywhere; }
    .activity-highlight-note { margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.5; }
    .activity-contributors { display: grid; gap: 7px; margin-top: 8px; }
    .activity-contributor { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; color: var(--ink); font-size: 13px; font-weight: 620; }
    .activity-contributor-meta { flex: none; color: var(--muted); font-size: 13px; font-weight: 400; }
    .activity-feed { display: grid; gap: 0; }
    .activity-feed-item { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 11px; padding: 13px 0; border-bottom: 1px solid var(--line); }
    .activity-feed-item:last-child { border-bottom: 0; }
    .activity-feed-marker { display: block; width: 8px; min-width: 8px; height: 8px; min-height: 8px; margin-top: 5px; border-radius: 50%; background: #5d9b72; }
    .activity-feed-marker.activity-status { background: #6589c0; }
    .activity-feed-marker.activity-work { background: #dfa33c; }
    .activity-feed-title { color: var(--ink); font-size: 13px; font-weight: 620; line-height: 1.5; overflow-wrap: anywhere; }
    .activity-feed-meta { margin-top: 3px; color: #8a948e; font-size: 13px; }
    .activity-feed-notes { margin-top: 5px; color: #78837c; font-size: 13px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
    .activity-empty { padding: 22px 0; color: var(--muted); font-size: 13px; }

    @media (max-width: 950px) {
      .main { padding-right: 26px; padding-left: 26px; }
      .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      th, td { padding-right: 12px; padding-left: 12px; }
    }
    @media (max-width: 700px) {
      @media (max-width: 480px) {
        .team-editor-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
      }
      .main { padding: 0 17px 36px; }
      .breadcrumb { display: none; }
      .topbar { height: 54px; }
      .page-heading { align-items: flex-start; padding-top: 28px; }
      .new-project-heading { align-items: flex-start; flex-direction: column; padding-top: 28px; }
      .page-heading .primary-button { min-height: 36px; padding: 0 10px; font-size: 13px; white-space: nowrap; }
      .user-name { display: none; }
      .stats { gap: 9px; }
      .billing-overview-cards { grid-template-columns: 1fr; }
      .stat-card { padding: 13px; }
      .stat-value { margin-top: 8px; font-size: 21px; }
      .panel-toolbar { align-items: flex-start; flex-direction: column; }
      .project-view-toolbar { align-items: flex-start; }
      .project-view-toolbar-main, .project-view-toolbar-actions { width: 100%; }
      .project-view-toolbar-actions { justify-content: flex-end; }
      .project-view-toolbar select { max-width: min(210px, 48vw); }
      .workspace-table-toolbar { align-items: flex-start; flex-direction: column; }
      .workspace-table-actions { width: 100%; justify-content: flex-end; }
      .panel-tools { width: 100%; flex-wrap: wrap; }
      .project-search-combo { width: 100%; min-width: 0; }
      .project-search-combo .search-wrap { flex: 1 1 auto; }
      .search-wrap { min-width: 0; flex: 1 1 100%; }
      .search { width: 100%; }
      .filter-control { min-width: 0; max-width: 145px; flex: 1 1 0; }
      .table-scroll { margin-right: -1px; }
    }
    @media (max-width: 430px) {
      .main { padding-right: 12px; padding-left: 12px; }
      .page-heading { flex-wrap: wrap; gap: 10px; }
      .subtitle { max-width: 220px; line-height: 1.5; }
      .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .field-row { grid-template-columns: 1fr; }
      .form-body { gap: 12px; }
      .project-detail-heading { flex-wrap: wrap; }
      .project-detail-actions { justify-content: flex-start; }
      .project-detail-panel .detail-body { grid-template-columns: minmax(0, 1fr); }
      .overview-details-grid { grid-template-columns: minmax(0, 1fr); }
      .overview-details-grid > #overviewPinnedNote { grid-column: 1; grid-row: auto; }
      .deployment-link-list { grid-template-columns: minmax(0, 1fr); }
      .team-role-guide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .team-roster-row { grid-template-columns: minmax(0, 1fr) minmax(110px, .8fr); }
      .team-mobile-label { display: block; margin-bottom: 4px; }
    }
    @media (min-width: 1200px) {
      .brand-name { font-size: 20px; }
      .breadcrumb, .user-name { font-size: 13px; }
      h1 { font-size: clamp(30px, 3vw, 36px); }
      .subtitle { font-size: 14px; }
      .eyebrow { font-size: 13px; }
      .primary-button { font-size: 13px; }
      .stat-label { font-size: 13px; }
      .stat-value { font-size: 27px; }
      .panel-title { font-size: 14px; }
      .search, .filter-control { font-size: 13px; }
      th { font-size: 13px; }
      td { font-size: 13px; }
      .project-name-button { font-size: 13px; }
      .project-description { font-size: 13px; }
      .category-badge, .status, .priority { font-size: 13px; }
      .owner-avatar { font-size: 13px; }
      .table-footer { font-size: 13px; }
      .dialog-title { font-size: 18px; }
      .dialog-subtitle { font-size: 13px; }
      .field label, .field-label { font-size: 13px; }
      .field input, .field select, .field textarea { font-size: 13px; }
      .field-hint { font-size: 13px; }
      .detail-description, .detail-value { font-size: 13px; }
      .detail-label { font-size: 13px; }
      .team-member, .project-link, .work-log-entry { font-size: 13px; }
      .team-role-guide div, .team-role-guide strong { font-size: 13px; }
      .view-tab { font-size: 13px; }
      .project-detail-heading h2 { font-size: 25px; }
      .detail-back-button { font-size: 13px; }
    }
    .breadcrumb, .breadcrumb span, .view-tab, .stat-label, .sort-button, .field-hint, .team-panel-intro, .team-mobile-label,
    .detail-back-button, .detail-back-button span, .project-detail-subtitle, .project-detail-tab, .detail-label, .week-time-chart-scale-label,
    .week-time-chart-range, .week-time-chart-label, .week-time-chart-empty, .project-time-chart-day-label, .project-time-chart-value,
    .activity-highlight-note, .activity-feed-meta, .activity-feed-notes, .lifecycle-toolbar-copy, .lifecycle-empty, .budget-chart-empty,
    .rate-heading, th, .project-time-chart-axis-track { color: #5b6760; }
    .view-tab.active, .project-detail-tab.active, .view-tab[aria-selected="true"], .project-detail-tab[aria-selected="true"] { color: var(--green-dark); }
    .owner-avatar { color: #4a5a72; }

    :root[data-theme="dark"] body { background: var(--canvas); color: var(--ink); }
    :root[data-theme="dark"] .sidebar,
    :root[data-theme="dark"] .project-panel,
    :root[data-theme="dark"] .stat-card,
    :root[data-theme="dark"] .project-detail-panel,
    :root[data-theme="dark"] .proofs-workspace,
    :root[data-theme="dark"] .proof-annotations-panel,
    :root[data-theme="dark"] .custom-team-card,
    :root[data-theme="dark"] .custom-team-members-panel,
    :root[data-theme="dark"] .budget-chart,
    :root[data-theme="dark"] .projected-hours-card,
    :root[data-theme="dark"] .auth-card,
    :root[data-theme="dark"] .board-card,
    :root[data-theme="dark"] .workflow-route-card,
    :root[data-theme="dark"] .proof-comment,
    :root[data-theme="dark"] .proof-comment-composer,
    :root[data-theme="dark"] .proof-comment-filters,
    :root[data-theme="dark"] .proof-tag-picker-menu,
    :root[data-theme="dark"] .proof-mention-suggestions,
    :root[data-theme="dark"] .proof-notification-item,
    :root[data-theme="dark"] .route-link-menu-popover,
    :root[data-theme="dark"] .project-menu-popover,
    :root[data-theme="dark"] .project-time-week-export-menu,
    :root[data-theme="dark"] .share-member-results,
    :root[data-theme="dark"] .push-confirm-summary,
    :root[data-theme="dark"] .app-message-dialog,
    :root[data-theme="dark"] .push-confirm-dialog,
    :root[data-theme="dark"] dialog { background-color: var(--surface); border-color: var(--line); color: var(--ink); }
    :root[data-theme="dark"] .sidebar { background-color: #15181d; }
    :root[data-theme="dark"] .board-column { background-color: #252932; }
    :root[data-theme="dark"] .share-member-option:hover,
    :root[data-theme="dark"] .share-member-option:focus-visible { background: #252d3a; color: var(--ink); }
    :root[data-theme="dark"] .topbar,
    :root[data-theme="dark"] .panel-toolbar,
    :root[data-theme="dark"] .project-view-toolbar,
    :root[data-theme="dark"] .dialog-header,
    :root[data-theme="dark"] .dialog-footer,
    :root[data-theme="dark"] .project-detail-tabs,
    :root[data-theme="dark"] .proofs-workspace-heading,
    :root[data-theme="dark"] .proof-annotations-heading,
    :root[data-theme="dark"] .table-footer { border-color: var(--line); }
    :root[data-theme="dark"] .project-view-toolbar { background-color: var(--surface); }
    :root[data-theme="dark"] .auth-card label:not(.auth-remember) { color: var(--ink); }
    :root[data-theme="dark"] .breadcrumb strong,
    :root[data-theme="dark"] h1,
    :root[data-theme="dark"] h2,
    :root[data-theme="dark"] h3,
    :root[data-theme="dark"] .panel-title,
    :root[data-theme="dark"] .project-name,
    :root[data-theme="dark"] .project-name-button,
    :root[data-theme="dark"] .route-proof-button,
    :root[data-theme="dark"] .project-detail-heading h2,
    :root[data-theme="dark"] .custom-team-card-title,
    :root[data-theme="dark"] .custom-team-members-heading,
    :root[data-theme="dark"] .project-workflow-heading h3,
    :root[data-theme="dark"] .proofs-workspace-heading h2,
    :root[data-theme="dark"] .proof-comment-heading strong,
    :root[data-theme="dark"] .proof-notification-item strong,
    :root[data-theme="dark"] .board-column-title,
    :root[data-theme="dark"] .workflow-route-person,
    :root[data-theme="dark"] .budget-chart-title,
    :root[data-theme="dark"] .workload-capacity,
    :root[data-theme="dark"] .push-confirm-value { color: var(--ink); }
    :root[data-theme="dark"] .route-proof-button.has-active-comments { border-color: #536a91; background: #273142; color: #a9c7fb; }
    :root[data-theme="dark"] tbody tr.project-row-hot > td { background: #302321; }
    :root[data-theme="dark"] tbody tr.project-row-hot.project-row-working > td { background: #382624; }
    :root[data-theme="dark"] tbody tr.project-row-working > td { background: #202938; }
    :root[data-theme="dark"] tbody tr.project-row-working > td:first-child { box-shadow: inset 3px 0 #83aaf4; }
    :root[data-theme="dark"] .board-card.is-hot { border-color: #64403c; background: #28201f; }
    :root[data-theme="dark"] .project-hot-toggle-button { border-color: transparent; background: transparent; color: #ff9a91; }
    :root[data-theme="dark"] .project-hot-toggle-button.is-hot,
    :root[data-theme="dark"] #detailsHotIndicator { border-color: #64403c; background: #3a2522; color: #ff766c; }
    :root[data-theme="dark"] body.hot-project-active { background: #211c1c; }
    :root[data-theme="dark"] .project-detail-panel.is-hot .project-detail-navigation { border-bottom-color: #68413d; }
    :root[data-theme="dark"] .project-detail-panel.is-hot .project-detail-tab:hover,
    :root[data-theme="dark"] .project-detail-panel.is-hot .project-detail-tab[aria-selected="true"] { color: #ff8c82; }
    :root[data-theme="dark"] .project-detail-panel.is-hot .project-detail-tab[aria-selected="true"]::after { background: #f07167; }
    :root[data-theme="dark"] .project-detail-heading.is-hot .project-detail-actions > .primary-button { border: 1px solid #e36b62; background: #a52d26; color: #fff; }
    :root[data-theme="dark"] .project-detail-heading.is-hot .project-detail-actions > .primary-button:hover { background: #bd3a32; }
    :root[data-theme="dark"] .project-detail-heading.is-hot .project-detail-actions > .outline-button,
    :root[data-theme="dark"] .project-detail-heading.is-hot .project-detail-actions > .detail-work-button,
    :root[data-theme="dark"] .project-detail-heading.is-hot .project-detail-actions > .route-link-menu summary,
    :root[data-theme="dark"] .project-detail-heading.is-hot .project-detail-actions > .project-menu summary { border-color: #75443f; background: #382321; color: #ffb0a8; }
    :root[data-theme="dark"] .project-detail-heading.is-hot .project-detail-actions > .outline-button:hover,
    :root[data-theme="dark"] .project-detail-heading.is-hot .project-detail-actions > .detail-work-button:hover,
    :root[data-theme="dark"] .project-detail-heading.is-hot .project-detail-actions > .route-link-menu summary:hover,
    :root[data-theme="dark"] .project-detail-heading.is-hot .project-detail-actions > .project-menu summary:hover,
    :root[data-theme="dark"] .project-detail-heading.is-hot .project-detail-actions > .project-menu[open] summary { border-color: #a85850; background: #4a2926; color: #ffd0cb; }
    :root[data-theme="dark"] .project-detail-heading.is-hot .project-detail-actions :is(.primary-button, .outline-button, .detail-work-button, .route-link-menu summary, .project-menu summary):focus-visible { outline-color: #ff8c82; }
    :root[data-theme="dark"] .subtitle,
    :root[data-theme="dark"] .breadcrumb,
    :root[data-theme="dark"] .breadcrumb span,
    :root[data-theme="dark"] .field-hint,
    :root[data-theme="dark"] .dialog-subtitle,
    :root[data-theme="dark"] .dialog-copy,
    :root[data-theme="dark"] .push-confirm-copy,
    :root[data-theme="dark"] .app-message-copy,
    :root[data-theme="dark"] .detail-label,
    :root[data-theme="dark"] .detail-back-button,
    :root[data-theme="dark"] .workload-note,
    :root[data-theme="dark"] .project-description,
    :root[data-theme="dark"] .project-detail-subtitle,
    :root[data-theme="dark"] .activity-feed-meta,
    :root[data-theme="dark"] .activity-feed-notes,
    :root[data-theme="dark"] .board-card-meta,
    :root[data-theme="dark"] .proof-comment-heading time,
    :root[data-theme="dark"] .proof-reply,
    :root[data-theme="dark"] .budget-cost-summary,
    :root[data-theme="dark"] .auth-sub { color: var(--muted); }
    :root[data-theme="dark"] .detail-description,
    :root[data-theme="dark"] .detail-value,
    :root[data-theme="dark"] .project-note-post-author,
    :root[data-theme="dark"] .project-note-post-copy,
    :root[data-theme="dark"] .project-time-job-list li,
    :root[data-theme="dark"] .team-work-member,
    :root[data-theme="dark"] .project-file-item,
    :root[data-theme="dark"] .team-roster-person,
    :root[data-theme="dark"] .team-role-guide div,
    :root[data-theme="dark"] .team-role-guide strong,
    :root[data-theme="dark"] .team-member-option,
    :root[data-theme="dark"] .proof-comment-body,
    :root[data-theme="dark"] .proof-reply strong,
    :root[data-theme="dark"] .project-time-tooltip,
    :root[data-theme="dark"] .project-time-chart-empty strong,
    :root[data-theme="dark"] .field label,
    :root[data-theme="dark"] .field-label,
    :root[data-theme="dark"] .team-editor-rate,
    :root[data-theme="dark"] .lifecycle-task-title,
    :root[data-theme="dark"] .lifecycle-cell-duration,
    :root[data-theme="dark"] .lifecycle-cell-dates,
    :root[data-theme="dark"] .lifecycle-cal-day,
    :root[data-theme="dark"] .lifecycle-date-range label,
    :root[data-theme="dark"] .lifecycle-toolbar-title,
    :root[data-theme="dark"] .project-time-chart-title,
    :root[data-theme="dark"] .week-time-chart-title,
    :root[data-theme="dark"] .project-time-week-table tbody th,
    :root[data-theme="dark"] .project-time-week-table tbody td { color: var(--ink); }
    :root[data-theme="dark"] .team-member-option input[data-custom-team-member] { background: #414650; }
    :root[data-theme="dark"] .project-file-meta,
    :root[data-theme="dark"] .team-roster-organization,
    :root[data-theme="dark"] .team-member-search-prompt,
    :root[data-theme="dark"] .team-mobile-label,
    :root[data-theme="dark"] .team-role-select:disabled,
    :root[data-theme="dark"] .project-time-chart-value,
    :root[data-theme="dark"] .project-time-chart-day-label,
    :root[data-theme="dark"] .week-time-chart-value,
    :root[data-theme="dark"] .week-time-chart-label,
    :root[data-theme="dark"] .week-time-chart-empty,
    :root[data-theme="dark"] .week-time-chart-range,
    :root[data-theme="dark"] .lifecycle-toolbar-copy,
    :root[data-theme="dark"] .lifecycle-task-notes,
    :root[data-theme="dark"] .lifecycle-unassigned,
    :root[data-theme="dark"] .lifecycle-assign-empty,
    :root[data-theme="dark"] .lifecycle-entry-num,
    :root[data-theme="dark"] .lifecycle-date-range label span,
    :root[data-theme="dark"] .detail-priority,
    :root[data-theme="dark"] .copy-job-number-status,
    :root[data-theme="dark"] .rate-mask,
    :root[data-theme="dark"] .proof-comment-number,
    :root[data-theme="dark"] .push-confirm-label,
    :root[data-theme="dark"] .push-confirm-arrow { color: var(--muted); }
    :root[data-theme="dark"] .team-member-search-prompt { color: #ff8a80; }
    :root[data-theme="dark"] .project-time-tooltip,
    :root[data-theme="dark"] .project-file-item,
    :root[data-theme="dark"] .project-notes-formatting button,
    :root[data-theme="dark"] .project-notes-formatting select,
    :root[data-theme="dark"] .project-notes-editor,
    :root[data-theme="dark"] .team-role-select,
    :root[data-theme="dark"] .profile-permission-level,
    :root[data-theme="dark"] .team-remove-button { background: var(--surface); border-color: #6b7280; color: var(--ink); }
    :root[data-theme="dark"] .project-detail-tab,
    :root[data-theme="dark"] .view-tab,
    :root[data-theme="dark"] .priority,
    :root[data-theme="dark"] .stat-label,
    :root[data-theme="dark"] .rate-heading,
    :root[data-theme="dark"] .project-detail-heading .detail-priority,
    :root[data-theme="dark"] .close-button,
    :root[data-theme="dark"] .project-time-chart-axis-track,
    :root[data-theme="dark"] .week-time-chart-axis-track { color: var(--muted); }
    :root[data-theme="dark"] .project-detail-tab[aria-selected="true"],
    :root[data-theme="dark"] .view-tab[aria-selected="true"] { color: var(--green-dark); }
    :root[data-theme="dark"] .proof-empty strong,
    :root[data-theme="dark"] .work-log-entry,
    :root[data-theme="dark"] .custom-team-detail-hero:not(.has-cover) .custom-team-detail-hero-copy { color: var(--ink); }
    :root[data-theme="dark"] .budget-chart-over,
    :root[data-theme="dark"] .auth-error,
    :root[data-theme="dark"] #weekCustomError { color: #ffaaa2; }
    :root[data-theme="dark"] .workflow-route-status.is-approved { color: #a8dfb6; }
    :root[data-theme="dark"] .workflow-route-status.is-changes { color: #f4cb7f; }
    :root[data-theme="dark"] .week-time-chart-track { background: #292d2b; }
    :root[data-theme="dark"] .week-time-chart,
    :root[data-theme="dark"] .budget-chart { background: #171a20; }
    :root[data-theme="dark"] .budget-chart-grid { stroke: #363a43; }
    :root[data-theme="dark"] .budget-chart-zero { stroke: #ff8a80; }
    :root[data-theme="dark"] .budget-chart-axis { fill: #afb5be; }
    :root[data-theme="dark"] .budget-chart-dot { fill: #171a20; }
    :root[data-theme="dark"] .project-note-post.pinned,
    :root[data-theme="dark"] .team-role-select:disabled { background: #292d2b; }
    :root[data-theme="dark"] #profileForm .field input:disabled,
    :root[data-theme="dark"] #profileForm .field select:disabled { border-color: #484f4a; background: #292d2b; color: #aeb8b1; }
    :root[data-theme="dark"] #billingOrganizationName:disabled { border-color: #484f4a; background: #292d2b; color: #aeb8b1; }
    :root[data-theme="dark"] .permission-preview-banner { border-color: #806b39; background: #3b3320; color: #f0d38f; }
    :root[data-theme="dark"] .project-notes-editor:focus { outline-color: #405b48; }
    :root[data-theme="dark"] .proof-comment.resolved { background: #1d2025; opacity: 1; }
    :root[data-theme="dark"] .proof-comment.resolved.active { background: #292d2b; }
    :root[data-theme="dark"] .category-badge,
    :root[data-theme="dark"] .team-department,
    :root[data-theme="dark"] .lifecycle-task-assignee { background: #2c3036; color: #d1d8e0; }
    :root[data-theme="dark"] .billing-type-badge { border-color: #355d45; background: #20372a; color: #b8e0c4; }
    :root[data-theme="dark"] .billing-type-badge.non-billable { border-color: #424852; background: #292d34; color: #c5cad2; }
    :root[data-theme="dark"] .risk-badge.overdue,
    :root[data-theme="dark"] .risk-badge.budget { background: #422b29; color: #ffc0b8; }
    :root[data-theme="dark"] .risk-badge.soon { background: #40351f; color: #f5d489; }
    :root[data-theme="dark"] .nav-item { color: #b5c0b8; }
    :root[data-theme="dark"] .nav-item:hover,
    :root[data-theme="dark"] .nav-item.active { background: #292d2b; color: #b4e1c1; }
    :root[data-theme="dark"] .notification-button,
    :root[data-theme="dark"] .profile-button,
    :root[data-theme="dark"] .icon-button { color: #aab7ae; }
    :root[data-theme="dark"] .notification-button:hover,
    :root[data-theme="dark"] .profile-button:hover,
    :root[data-theme="dark"] .icon-button:hover { background: #2a352e; color: var(--green-dark); }
    :root[data-theme="dark"] .user-avatar,
    :root[data-theme="dark"] .owner-avatar,
    :root[data-theme="dark"] .active-work-avatar { background: #303d34; color: #c0d2c6; }
    :root[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]),
    :root[data-theme="dark"] select,
    :root[data-theme="dark"] textarea,
    :root[data-theme="dark"] .search,
    :root[data-theme="dark"] .filter-control,
    :root[data-theme="dark"] .workflow-proof-select select,
    :root[data-theme="dark"] .project-time-week-add,
    :root[data-theme="dark"] .projected-hours-input,
    :root[data-theme="dark"] .projected-hours-add-row input { background-color: #13161b; border-color: #484c55; color: var(--ink); }
    :root[data-theme="dark"] :is(input, select, textarea):autofill,
    :root[data-theme="dark"] :is(input, select, textarea):-webkit-autofill,
    :root[data-theme="dark"] :is(input, select, textarea):-webkit-autofill:hover,
    :root[data-theme="dark"] :is(input, select, textarea):-webkit-autofill:focus,
    :root[data-theme="dark"] :is(input, select, textarea):-webkit-autofill:active { background-color: #13161b !important; color: var(--ink) !important; -webkit-text-fill-color: var(--ink) !important; box-shadow: 0 0 0 1000px #13161b inset !important; caret-color: var(--ink); }
    :root[data-theme="dark"] .project-search-combo { border-color: #484c55; background: #13161b; }
    :root[data-theme="dark"] .project-search-combo .search,
    :root[data-theme="dark"] .project-search-combo select { border-color: transparent; background-color: transparent; color: var(--ink); }
    :root[data-theme="dark"] .saved-views-control { border-left-color: #484c55; color: #a0a6b0; }
    :root[data-theme="dark"] .workspace-table-column input { background-color: transparent; border-color: transparent; color: var(--ink); }
    :root[data-theme="dark"] .workspace-table-column input:hover,
    :root[data-theme="dark"] .workspace-table-column input:focus { background-color: var(--surface); border-color: var(--line); }
    :root[data-theme="dark"] input::placeholder,
    :root[data-theme="dark"] textarea::placeholder,
    :root[data-theme="dark"] .project-time-week-input::placeholder { color: #abb1bb; }
    :root[data-theme="dark"] .field input[type="file"] { background: transparent; border: 0; }
    :root[data-theme="dark"] thead,
    :root[data-theme="dark"] .projected-hours-table tfoot th,
    :root[data-theme="dark"] .projected-hours-table tfoot td,
    :root[data-theme="dark"] .project-time-week-table tfoot th,
    :root[data-theme="dark"] .project-time-week-table tfoot td { background: #292d34; }
    :root[data-theme="dark"] th,
    :root[data-theme="dark"] td,
    :root[data-theme="dark"] .project-time-week-table th,
    :root[data-theme="dark"] .project-time-week-table td,
    :root[data-theme="dark"] .custom-team-members-table th,
    :root[data-theme="dark"] .custom-team-members-table td,
    :root[data-theme="dark"] .projected-hours-table th,
    :root[data-theme="dark"] .projected-hours-table td { border-color: var(--line); color: var(--ink); }
    :root[data-theme="dark"] th,
    :root[data-theme="dark"] .project-time-week-table thead th,
    :root[data-theme="dark"] .custom-team-members-table thead th,
    :root[data-theme="dark"] .projected-hours-table thead th { background: #292d34; color: #c6cad2; }
    :root[data-theme="dark"] .project-time-week-table tbody th { background: #1b1e24; }
    :root[data-theme="dark"] .custom-team-members-table tbody th { background: var(--surface); }
    :root[data-theme="dark"] .projects-view .sort-button:hover,
    :root[data-theme="dark"] .projects-view th[aria-sort="ascending"] .sort-button,
    :root[data-theme="dark"] .projects-view th[aria-sort="descending"] .sort-button { color: #c6cad2; }
    :root[data-theme="dark"] .projected-hours-add-row { background: #171a20; }
    :root[data-theme="dark"] .project-time-week-input:focus { background: var(--surface); }
    :root[data-theme="dark"] .project-time-week-export-menu button,
    :root[data-theme="dark"] .project-menu-item,
    :root[data-theme="dark"] .route-link-menu-item,
    :root[data-theme="dark"] .proof-mention-option { color: var(--ink); }
    :root[data-theme="dark"] .project-time-week-export-menu button:hover,
    :root[data-theme="dark"] .project-menu-item:hover,
    :root[data-theme="dark"] .route-link-menu-item:hover,
    :root[data-theme="dark"] .proof-mention-option:hover,
    :root[data-theme="dark"] .proof-mention-option[aria-selected="true"] { background: #2a302c; color: #c2e3cb; }
    :root[data-theme="dark"] .layout-toggle button,
    :root[data-theme="dark"] .route-link-menu summary,
    :root[data-theme="dark"] .project-menu summary,
    :root[data-theme="dark"] .proof-reply-attachment-button,
    :root[data-theme="dark"] .workflow-route-actions button,
    :root[data-theme="dark"] .outline-button,
    :root[data-theme="dark"] .secondary-button,
    :root[data-theme="dark"] .team-add-button,
    :root[data-theme="dark"] .team-remove-button,
    :root[data-theme="dark"] .work-button,
    :root[data-theme="dark"] .project-time-week-add { background: var(--surface); border-color: #6b7280; color: var(--ink); }
    :root[data-theme="dark"] .primary-button { background: #4168a3; color: #fff; }
    :root[data-theme="dark"] .primary-button:hover { background: #345584; }
    :root[data-theme="dark"] .outline-button:hover,
    :root[data-theme="dark"] .secondary-button:hover,
    :root[data-theme="dark"] .team-add-button:hover,
    :root[data-theme="dark"] .work-button:hover,
    :root[data-theme="dark"] .project-time-week-add:hover { background: #273142; border-color: #789be0; color: #e3edff; }
    :root[data-theme="dark"] .project-time-week-remove:hover { background: #3a292b; color: #ffb4ad; }
    :root[data-theme="dark"] .project-time-week-add:focus-visible,
    :root[data-theme="dark"] .project-time-week-remove:focus-visible,
    :root[data-theme="dark"] .project-time-week-export summary:focus-visible,
    :root[data-theme="dark"] .project-time-week-export-menu button:focus-visible { outline-color: #9dbcf2; }
    :root[data-theme="dark"] .layout-toggle button[aria-pressed="true"] { background: #345584; color: #fff; }
    :root[data-theme="dark"] .work-button.active { border-color: #4168a3; background: #4168a3; color: #fff; }
    :root[data-theme="dark"] .work-button.active:hover { border-color: #345584; background: #345584; }
    :root[data-theme="dark"] .proof-stage { background: #0d0f13; }
    :root[data-theme="dark"] .proof-canvas-controls { background: #1a1d23; }
    :root[data-theme="dark"] .proof-comment.active,
    :root[data-theme="dark"] .workflow-route-step.is-current .workflow-route-card,
    :root[data-theme="dark"] .board-card.is-being-worked { background: #292d2b; }
    :root[data-theme="dark"] .proof-comment-number,
    :root[data-theme="dark"] .proof-comment-tag,
    :root[data-theme="dark"] .team-selected-member { background: #2c3036; color: #d1d8e0; }
    :root[data-theme="dark"] .proof-comment-attachment,
    :root[data-theme="dark"] .proof-reply-form button,
    :root[data-theme="dark"] .proof-comment-edit-actions button { background: #292d2b; color: #c1e2ca; }
    :root[data-theme="dark"] .activity-highlight,
    :root[data-theme="dark"] .project-time-week-export-menu { background-color: #252f28; color: var(--ink); }
    :root[data-theme="dark"] .project-time-week-table tbody tr:hover,
    :root[data-theme="dark"] tbody tr:hover { background: #252830; }
    :root[data-theme="dark"] .table-footer { color: var(--muted); }
    :root[data-theme="dark"] .project-time-week-table tbody tr:hover td,
    :root[data-theme="dark"] tbody tr:hover td { background: transparent; }
    :root[data-theme="dark"] .project-time-week-table tbody tr:hover th { background: transparent; }
    :root[data-theme="dark"] dialog::backdrop { background: rgb(0 0 0 / 68%); }
    :root[data-theme="dark"] :focus-visible { outline-color: #83aaf4; }
    :root[data-theme="dark"] .status.planning,
    :root[data-theme="dark"] .status-select.planning { background: #402c3b; background-color: #402c3b; color: #f3c7e4; }
    :root[data-theme="dark"] .status.in-progress,
    :root[data-theme="dark"] .status-select.in-progress { background: #253a58; background-color: #253a58; color: #c5dcff; }
    :root[data-theme="dark"] .status.in-development,
    :root[data-theme="dark"] .status-select.in-development { background: #352b50; background-color: #352b50; color: #d7c9ff; }
    :root[data-theme="dark"] .status.routing,
    :root[data-theme="dark"] .status-select.routing { background: #203c48; background-color: #203c48; color: #beeaf4; }
    :root[data-theme="dark"] .status.on-hold,
    :root[data-theme="dark"] .status-select.on-hold { background: #463619; background-color: #463619; color: #ffde9a; }
    :root[data-theme="dark"] .status.completed,
    :root[data-theme="dark"] .status-select.completed { background: #30343a; background-color: #30343a; color: #d7dbe2; }
    :root[data-theme="dark"] .status.hot,
    :root[data-theme="dark"] .status-select.hot { background: #4a2e27; background-color: #4a2e27; color: #ffc4a6; }
    :root[data-theme="dark"] .nav-item:hover,
    :root[data-theme="dark"] .nav-item.active { background: #273142; color: #fff; }
    :root[data-theme="dark"] .nav-item { color: #fff; }
    :root[data-theme="dark"] .activity-feed-title { color: #fff; }
    :root[data-theme="dark"] .work-log-pagination button:hover:not(:disabled) { border-color: #64766a; background: #2a302c; }
    :root[data-theme="dark"] .projects-view thead th,
    :root[data-theme="dark"] .projects-view thead .sort-button,
    :root[data-theme="dark"] .projects-view th[aria-sort="ascending"] .sort-button,
    :root[data-theme="dark"] .projects-view th[aria-sort="descending"] .sort-button,
    :root[data-theme="dark"] .projects-view .sort-button:hover { color: #fff; }
    :root[data-theme="dark"] .team-work-member { color: #fff; }
    :root[data-theme="dark"] .project-overview .team-member,
    :root[data-theme="dark"] .team-list .team-member { color: #fff; }
    :root[data-theme="dark"] .active-work-avatar { background: #293448; color: #c7d9fa; }
    :root[data-theme="dark"] .notification-button:hover,
    :root[data-theme="dark"] .profile-button:hover,
    :root[data-theme="dark"] .icon-button:hover { background: #292d34; color: var(--green-dark); }
    :root[data-theme="dark"] .proof-tool-button[aria-pressed="true"] { border-color: #789be0; background: #273142; color: var(--green-dark); }
    :root[data-theme="dark"] .proof-comment-toggle,
    :root[data-theme="dark"] .proof-comment-toggle:hover,
    :root[data-theme="dark"] .proof-comment-toggle:focus-visible { border-color: #789be0 !important; background: #273142; color: #c7d9fa; }
    :root[data-theme="dark"] .project-note-post.pinned,
    :root[data-theme="dark"] .board-card.is-being-worked,
    :root[data-theme="dark"] .workflow-route-step.is-current .workflow-route-card,
    :root[data-theme="dark"] .proof-notification-item.unread { border-color: #789be0; }
    :root[data-theme="dark"] .project-note-post.pinned,
    :root[data-theme="dark"] .board-card.is-being-worked,
    :root[data-theme="dark"] .workflow-route-step.is-current .workflow-route-card,
    :root[data-theme="dark"] .proof-notification-item.unread { background: #202938; }
    :root[data-theme="dark"] .workflow-route-actions button:first-child { border-color: #789be0; background: #273142; color: #c7d9fa; }
    :root[data-theme="dark"] .proof-comment-attachment,
    :root[data-theme="dark"] .proof-reply-form button,
    :root[data-theme="dark"] .proof-comment-edit-actions button,
    :root[data-theme="dark"] .team-selected-member,
    :root[data-theme="dark"] .proof-mention-option[aria-selected="true"] { color: #c7d9fa; }
    :root[data-theme="dark"] .proof-mention-option:hover,
    :root[data-theme="dark"] .proof-mention-option[aria-selected="true"] { background: #273142; }
    :root[data-theme="dark"] .project-notes-editor:focus { border-color: #789be0; outline-color: #344b72; }
    :root[data-theme="dark"] .proof-comment-attachment:hover,
    :root[data-theme="dark"] .proof-reply-attachment-button:hover,
    :root[data-theme="dark"] .activity-feed-marker { background: #83aaf4; }
    :root[data-theme="dark"] .lifecycle-calendar { background: #171a20; border-color: var(--line); }
    :root[data-theme="dark"] .lifecycle-cal-header { background: #1b1e24; border-color: var(--line); }
    :root[data-theme="dark"] .lifecycle-cal-title { color: var(--ink); }
    :root[data-theme="dark"] .lifecycle-cal-nav button { background: #232730; border-color: #555b66; color: var(--ink); }
    :root[data-theme="dark"] .lifecycle-cal-nav button:hover,
    :root[data-theme="dark"] .lifecycle-cal-nav button:focus-visible { background: #303641; border-color: #7b8492; }
    :root[data-theme="dark"] .lifecycle-cal-weekdays div { background: #22262e; border-color: var(--line); color: #c1c6cf; }
    :root[data-theme="dark"] .lifecycle-cal-week { border-color: var(--line); }
    :root[data-theme="dark"] .lifecycle-cal-day { border-color: var(--line); color: var(--ink); }
    :root[data-theme="dark"] .lifecycle-cal-day.outside { background: #1d2026; color: #858c98; }
    :root[data-theme="dark"] .lifecycle-cal-day.today span { background: #4168a3; color: #fff; }
    :root[data-theme="dark"] .lifecycle-cal-bar:hover,
    :root[data-theme="dark"] .lifecycle-cal-bar:focus-visible { outline-color: #e6e9ef; }
    :root[data-theme="dark"] .lifecycle-cal-bar { background: color-mix(in srgb, var(--lifecycle-task-color) 72%, #101318) !important; }
    :root[data-theme="dark"] .project-note-post { background: #1b1e24; border-color: #414650; }
    :root[data-theme="dark"] .project-note-post.pinned { background: #202a22; border-color: #55765d; }
    :root[data-theme="dark"] .project-note-post-meta { color: var(--muted); }
    :root[data-theme="dark"] .project-note-post-author,
    :root[data-theme="dark"] .project-note-post-copy { color: var(--ink); }
    :root[data-theme="dark"] .project-note-pin-button { color: #aab3bf; }
    :root[data-theme="dark"] .project-note-pin-button:hover,
    :root[data-theme="dark"] .project-note-pin-button[aria-pressed="true"] { border-color: #55765d; background: #293a2d; color: #b4e1c1; }
    :root[data-theme="dark"] .project-note-post-action { color: #b4e1c1; }
    :root[data-theme="dark"] .project-note-post-action.delete { color: #ff9b92; }
    :root[data-theme="dark"] .overview-pinned-note { background: #202a22; border-color: #55765d; }
    :root[data-theme="dark"] .overview-pinned-note-empty { background: var(--surface); border-color: var(--line); }
    :root[data-theme="dark"] .overview-pinned-note-icon { color: #b4e1c1; }
    :root[data-theme="dark"] .overview-notes-link { color: #b4e1c1; }
    :root[data-theme="dark"] .project-notes-formatting button,
    :root[data-theme="dark"] .project-notes-formatting select { background: #232730; border-color: #555b66; color: var(--ink); }
    :root[data-theme="dark"] .project-notes-formatting button:hover,
    :root[data-theme="dark"] .project-notes-formatting select:hover { background: #293a2d; border-color: #55765d; }
    :root[data-theme="dark"] .project-notes-editor { background: #13161b; border-color: #555b66; color: var(--ink); }
    :root[data-theme="dark"] .project-notes-editor:empty::before { color: #aab1bb; }
    :root[data-theme="dark"] .project-note-mention { background: #294432; color: #c1e6cb; }
    :root[data-theme="dark"] .project-notes-save-state { color: var(--muted); }
    :root[data-theme="dark"] .nav-item:hover,
    :root[data-theme="dark"] .nav-item.active { background: #273142; color: #c7d9fa; }
    :root[data-theme="dark"] .workflow-route-status.is-approved { color: #a9c7fb; }
    :root[data-theme="dark"] .proof-mention-option:hover,
    :root[data-theme="dark"] .proof-mention-option[aria-selected="true"] { background: #273142; color: #c7d9fa; }
    :root[data-theme="dark"] .proof-comment-attachment,
    :root[data-theme="dark"] .proof-reply-form button,
    :root[data-theme="dark"] .proof-comment-edit-actions button { background: #273142; color: #c7d9fa; }
    :root[data-theme="dark"] .proof-tool-button[aria-pressed="true"] { border-color: #789be0; background: #273142; color: #c7d9fa; }
    :root[data-theme="dark"] .proof-approval-button { border-color: #536a91; background: #273142; color: #c7d9fa; }
    :root[data-theme="dark"] .proof-approval-button.needs-changes { border-color: #816343; background: #332b22; color: #f4cb7f; }
    :root[data-theme="dark"] .proof-approval-button:hover:not(:disabled) { border-color: #789be0; background: #344968; }
    :root[data-theme="dark"] .proof-approval-button.needs-changes:hover:not(:disabled) { border-color: #b98b50; background: #493a28; }
    :root[data-theme="dark"] .proof-approval-button[aria-pressed="true"] { border-color: #789be0; background: #344968; color: #d5e2fa; }
    :root[data-theme="dark"] .proof-approval-button.needs-changes[aria-pressed="true"] { border-color: #b98b50; background: #493a28; color: #f4cb7f; }
    :root[data-theme="dark"] .work-access-overview-banner { border-color: #715b2b; background: #332b1d; color: #f1d48a; }
    :root[data-theme="dark"] .work-access-overview-copy svg { color: #f1d48a; }
    :root[data-theme="dark"] .work-access-overview-item { border: 0; background: transparent; color: #f3e3b6; }
    :root[data-theme="dark"] .work-access-overview-item:hover { background: rgb(255 255 255 / 6%); }
    :root[data-theme="dark"] .work-access-overview-item > span:not(.work-access-overview-review) { color: #d2c394; }
    :root[data-theme="dark"] .work-access-overview-review { color: #a8dfb6; }
    :root[data-theme="dark"] .project-note-pin-button:hover,
    :root[data-theme="dark"] .project-note-pin-button[aria-pressed="true"] { border-color: #536a91; background: #273142; color: #c7d9fa; }
    :root[data-theme="dark"] .project-note-post-action,
    :root[data-theme="dark"] .overview-pinned-note-icon,
    :root[data-theme="dark"] .overview-notes-link { color: #c7d9fa; }
    :root[data-theme="dark"] .project-note-post.pinned,
    :root[data-theme="dark"] .overview-pinned-note { border-color: #536a91; background: #202938; }
    :root[data-theme="dark"] .project-note-mention { background: #273142; color: #c7d9fa; }
    :root[data-theme="dark"] .proof-notification-row { border-bottom-color: var(--line); }
    :root[data-theme="dark"] .proof-notification-item { border: 0; background: transparent; }
    :root[data-theme="dark"] .proof-notification-type-icon { background: #303a43; color: #d0d8e1; }
    :root[data-theme="dark"] .proof-notification-type-icon.is-review { background: #233a30; color: #a8dfb6; }
    :root[data-theme="dark"] .proof-notification-type-icon.is-tag { background: #2b3932; color: #b4d6bd; }
    :root[data-theme="dark"] .proof-notification-type-icon.is-mention { background: #352b50; color: #d7c9ff; }
    :root[data-theme="dark"] .proof-notification-type-icon.is-hot { background: #4a2e27; color: #ffc4a6; }
    :root[data-theme="dark"] .proof-notification-type-icon.is-hours { background: #203c48; color: #beeaf4; }
    :root[data-theme="dark"] .proof-notification-type-icon.is-note { background: #273142; color: #c7d9fa; }
    :root[data-theme="dark"] .proof-notification-type-icon.is-access { background: #463619; color: #ffde9a; }
    :root[data-theme="dark"] .proof-notification-mark-read,
    :root[data-theme="dark"] .proof-notification-clear { border: 0; background: transparent; color: #c7d9fa; }
    :root[data-theme="dark"] .proof-notification-mark-read:hover,
    :root[data-theme="dark"] .proof-notification-clear:hover { background: transparent; color: #fff; }
    .activity-feed-item { padding: 9px 0; }
    .activity-feed-title { font-size: 13px; }
    @media (max-width: 820px) {
      .app { display: block; }
      .sidebar-footer { display: none; }
      .sidebar { position: sticky; z-index: 20; top: 0; height: auto; flex-direction: row; align-items: center; gap: 12px; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: hidden; }
      .sidebar .brand { flex: 0 0 auto; }
      .sidebar-nav { min-width: 0; flex: 1 1 auto; flex-direction: row; justify-content: flex-end; gap: 3px; }
      .sidebar-nav .nav-item { min-width: 0; flex: 1 1 0; justify-content: center; padding-right: 5px; padding-left: 5px; }
      .sidebar-nav-section { display: contents; }
      .nav-item { white-space: nowrap; }
      .nav-item-sub { margin-left: 0; border-left: 0; }
    }
    @media (max-width: 600px) {
      body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
      .sidebar { position: fixed; top: auto; right: 0; bottom: 0; left: 0; height: calc(62px + env(safe-area-inset-bottom)); justify-content: center; padding: 5px 10px calc(5px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); border-bottom: 0; background: var(--surface); box-shadow: 0 -5px 18px rgb(25 44 34 / 8%); overflow: visible; }
      .sidebar .brand { display: none; }
      .sidebar-nav { display: flex; width: min(100%, 520px); flex: 1 1 auto; gap: 2px; }
      .nav-item { min-width: 0; min-height: 48px; flex: 1 1 0 !important; flex-direction: column; justify-content: center; gap: 3px; padding: 4px 1px; border-radius: 9px; font-size: 13px; }
      .nav-item svg { width: 19px; height: 19px; }
      .main { padding-right: 16px; padding-left: 16px; }
      .main.proofing-active { height: calc(100dvh - 66px - env(safe-area-inset-bottom)); }
    }

    @media (min-width: 1600px) and (max-width: 1999px) {
      .app { zoom: 1.08; min-height: calc(100vh / 1.08); }
      .sidebar { height: calc(100vh / 1.08); height: calc(100dvh / 1.08); }
      .main { max-width: 1640px; padding-right: clamp(48px, 3vw, 72px); padding-left: clamp(48px, 3vw, 72px); }
      body > .project-menu-popover .project-menu-item { font-size: 13px; }
    }
    @media (min-width: 2000px) {
      .app { zoom: 1.14; min-height: calc(100vh / 1.14); }
      .sidebar { height: calc(100vh / 1.14); height: calc(100dvh / 1.14); }
      .main { max-width: 1840px; padding-right: clamp(56px, 3vw, 88px); padding-left: clamp(56px, 3vw, 88px); }
      body > .project-menu-popover .project-menu-item { font-size: 13.68px; }
    }
  
