@import url("icon-collection.css");

/* Adapted from the user-owned JINIUS Office local index.html. */

    :root {
      --navy: #12346B;
      --deep: #0E2A57;
      --ink: #111827;
      --body: #334155;
      --muted: #64748B;
      --line: #E5EAF1;
      --line-strong: #CBD5E1;
      --base: #F5F7FA;
      --mist: #F8FAFC;
      --mist-strong: #EEF2F7;
      --white: #FFFFFF;
      --blue: #12346B;
      --blue-soft: #E8EEF7;
      --sky: #4B78B5;
      --orange: #D97706;
      --orange-soft: #FFF7ED;
      --green: #059669;
      --green-soft: #ECFDF5;
      --yellow: #D97706;
      --red: #DC2626;
      --red-soft: #FEF2F2;
      --violet: #8E5DD8;
      --shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
      --soft-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
      --radius: 8px;
      --radius-sm: 6px;
      --radius-pill: 999px;
      --ease: cubic-bezier(.2, 0, 0, 1);
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: auto; }
    body {
      margin: 0;
      font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Apple SD Gothic Neo", "Segoe UI", sans-serif;
      background:
        radial-gradient(circle at 20% 0%, rgba(18, 52, 107, 0.055), transparent 32%),
        linear-gradient(180deg, #F7F9FC 0%, #F3F6FA 100%);
      color: var(--body);
      font-size: 14px;
      line-height: 1.55;
      -webkit-font-smoothing: antialiased;
    }
    button, input, select, textarea { font: inherit; }
    button { cursor: pointer; border: 1px solid transparent; -webkit-tap-highlight-color: transparent; }
    button:focus { outline: none; }
    button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
      outline: 3px solid rgba(18, 52, 107, 0.18);
      outline-offset: 2px;
    }
    .app { min-height: 100vh; }
    .shell { width: min(1240px, calc(100% - 48px)); margin: 0 auto; }
    .status-pill {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 8px 12px; border-radius: var(--radius-pill);
      background: var(--green-soft);
      color: var(--green); font-size: 13px; font-weight: 800;
    }
    .status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
    .btn {
      border: 0; border-radius: 8px; padding: 12px 16px; font-weight: 760;
      background: var(--blue); color: white; box-shadow: 0 8px 18px rgba(18,52,107,0.18);
    }
    .btn.secondary { background: rgba(255,255,255,0.12); color: white; box-shadow: none; }
    .btn.light { background: var(--blue-soft); color: var(--blue); box-shadow: none; }
    .btn.good { background: var(--green); }
    .btn.warn { background: var(--yellow); color: #302615; }
    .btn.danger { background: var(--red); }
    .btn.ghost { background: transparent; color: var(--blue); border: 1px solid #CFE0FA; box-shadow: none; }

    main { padding: 22px 0 70px; }
    body.has-approval-dock main { padding-bottom: 142px; }
    main[data-page-router="true"] > section { display: none; }
    main[data-page-router="true"] > section.is-active-page { display: block; }
    section { scroll-margin-top: 76px; margin-bottom: 26px; }
    .section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 14px; }
    .section-head h2 { margin: 0; font-size: 25px; letter-spacing: 0; color: var(--navy); }
    .section-head p { margin: 5px 0 0; color: var(--body); }
    .grid { display: grid; gap: 16px; }
    .grid > *, .split > * { min-width: 0; }
    .grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
    .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
    .grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
    .card {
      background: white; border: 1px solid var(--line); border-radius: var(--radius);
      padding: 18px; box-shadow: var(--soft-shadow); min-width: 0;
    }
    .metric { display: flex; flex-direction: column; gap: 8px; min-height: 126px; }
    .metric .label { color: var(--muted); font-weight: 720; font-size: 13px; }
    .metric .value { font-size: 30px; font-weight: 850; letter-spacing: 0; color: var(--navy); }
    .metric .sub { color: var(--body); font-size: 13px; }
    .badge { display: inline-flex; padding: 5px 9px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 780; background: var(--blue-soft); color: var(--blue); }
    .badge.green { background: var(--green-soft); color: var(--green); }
    .badge.yellow { background: var(--orange-soft); color: var(--orange); }
    .badge.red { background: var(--red-soft); color: var(--red); }
    .badge.violet { background: var(--mist-strong); color: var(--blue); }
    .flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
    .flow-step { background: #F8FAFD; border-radius: 16px; padding: 15px; border: 1px solid var(--line); }
    .flow-step strong { display: block; color: var(--navy); margin-bottom: 6px; }
    .flow-step span { color: var(--body); font-size: 13px; }
    .tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
    .tab { border: 1px solid var(--line); background: white; color: var(--body); border-radius: 999px; padding: 8px 12px; font-weight: 780; }
    .tab.active { background: var(--navy); color: white; border-color: var(--navy); }
    .phone-wrap { display: grid; grid-template-columns: 360px 1fr; gap: 18px; align-items: start; }
    .phone {
      border-radius: 34px; background: #101B37; padding: 14px; box-shadow: var(--shadow);
      max-width: 360px; margin: 0 auto;
    }
    .phone-screen { background: #F6F8FC; min-height: 650px; border-radius: 24px; overflow: hidden; }
    .phone-top { padding: 18px; background: white; border-bottom: 1px solid var(--line); }
    .phone-top .small { color: var(--muted); font-size: 12px; }
    .phone-top h3 { margin: 5px 0 0; font-size: 21px; color: var(--navy); }
    .checkin-panel { padding: 16px; }
    .checkin-card { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 15px; margin-bottom: 12px; }
    .checkin-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .checkin-actions button { min-height: 48px; }
    .field { margin-bottom: 10px; }
    .field label { display: block; font-weight: 760; font-size: 13px; color: var(--ink); margin-bottom: 6px; }
    .field input, .field select, .field textarea {
      width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; background: #FBFCFE; color: var(--ink);
    }
    .field textarea { resize: vertical; min-height: 72px; }
    .check-consent { display: flex; gap: 8px; align-items: flex-start; color: var(--body); font-size: 12.5px; line-height: 1.45; }
    .check-consent input { width: auto; margin-top: 3px; }
    .location-box { background: var(--blue-soft); color: var(--ink); border-radius: 8px; padding: 12px; font-size: 13px; }
    .split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
    table { width: 100%; border-collapse: collapse; font-size: 14px; }
    th, td { text-align: left; padding: 13px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
    th { color: var(--muted); font-size: 12px; font-weight: 820; background: #FAFBFE; }
    tbody tr:hover { background: #FAFCFF; }
    .map-box {
      min-height: 276px; border-radius: var(--radius); background:
        linear-gradient(135deg, rgba(111,182,255,0.18), rgba(13,27,61,0.06)),
        repeating-linear-gradient(90deg, rgba(13,27,61,0.05) 0 1px, transparent 1px 54px),
        repeating-linear-gradient(0deg, rgba(13,27,61,0.05) 0 1px, transparent 1px 54px);
      position: relative; overflow: hidden; border: 1px solid var(--line);
    }
    .pin { position: absolute; transform: translate(-50%, -50%); }
    .pin .dot { width: 16px; height: 16px; border-radius: 50%; background: var(--blue); border: 3px solid white; box-shadow: 0 4px 12px rgba(0,0,0,0.16); }
    .pin small { display: block; margin-top: 5px; background: white; border-radius: 999px; padding: 4px 8px; white-space: nowrap; box-shadow: var(--soft-shadow); color: var(--body); }
    .timeline { display: grid; gap: 10px; }
    .timeline-item { display: grid; grid-template-columns: 120px 1fr auto; gap: 12px; align-items: center; background: #FAFBFE; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
    .time { font-weight: 850; color: var(--navy); }
    .desc { color: var(--body); }
    .policy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .policy { background: #F8FAFD; border: 1px solid var(--line); border-radius: 14px; padding: 13px; }
    .policy strong { color: var(--navy); }
    .code {
      background: #0F1A33; color: #DDEBFF; border-radius: 16px; padding: 16px; overflow: auto;
      font-family: "SFMono-Regular", Consolas, monospace; font-size: 12.5px; line-height: 1.65;
      max-width: 100%;
    }
    .notice { background: var(--orange-soft); border: 1px solid rgba(217,119,6,0.25); border-radius: 8px; padding: 14px; color: #8A5A08; }
    .footer-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
    .token-input {
      width: 176px; border: 1px solid var(--line); border-radius: 12px;
      padding: 11px 12px; background: white; color: var(--ink);
    }
    .toast { position: fixed; right: 18px; bottom: 18px; background: var(--navy); color: white; border-radius: 14px; padding: 13px 15px; box-shadow: var(--shadow); opacity: 0; transform: translateY(8px); pointer-events: none; transition: 0.2s ease; z-index: 20; max-width: min(420px, calc(100vw - 32px)); }
    body.has-approval-dock .toast { bottom: 104px; }
    .toast.show { opacity: 1; transform: translateY(0); }
    .modal-backdrop { position: fixed; inset: 0; background: rgba(8,20,47,0.54); display: none; align-items: center; justify-content: center; padding: 18px; z-index: 30; }
    .modal-backdrop.show { display: flex; }
    .modal { width: min(680px, 100%); background: white; border-radius: 22px; padding: 20px; box-shadow: var(--shadow); }
    .modal h3 { margin: 0 0 8px; color: var(--navy); }
    .modal .close { float: right; background: #F2F5FA; color: var(--ink); box-shadow: none; }
    .attendance-modal { width: min(760px, 100%); }
    .attendance-modal h3 { color: var(--ink); font-size: 24px; letter-spacing: 0; }
    .attendance-modal p { color: var(--muted); margin: 0 0 16px; }
    .attendance-mode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
    .attendance-mode-card {
      display: grid; gap: 6px; text-align: left; min-height: 112px; padding: 16px;
      border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--body);
      box-shadow: none;
    }
    .attendance-mode-card strong { color: var(--ink); font-size: 16px; }
    .attendance-mode-card span { color: var(--muted); font-size: 13px; line-height: 1.45; }
    .attendance-mode-card.is-active { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); }
    .attendance-extra { display: none; gap: 10px; margin-top: 12px; }
    .attendance-extra.is-visible { display: grid; }
    .attendance-confirm-panel {
      display: grid; gap: 8px; margin-top: 12px; padding: 12px; border: 1px solid var(--line);
      border-radius: 8px; background: var(--mist); color: var(--body); font-size: 13px;
    }
    .attendance-confirm-panel strong { color: var(--ink); }
    .attendance-location-status { color: var(--muted); font-size: 12.5px; }

    .office-header {
      position: sticky; top: 0; z-index: 18;
      background: #FFFFFF;
      border-bottom: 1px solid var(--line);
    }
    .office-header .shell {
      display: flex; align-items: center; justify-content: space-between;
      min-height: 64px; gap: 22px; padding: 12px 0;
    }
    .office-brand { display: flex; align-items: center; gap: 11px; min-width: 166px; color: var(--ink); font-size: 19px; line-height: 1.1; font-weight: 900; white-space: nowrap; }
    .office-brand-mark {
      width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
      background: var(--blue); color: white; font-size: 13px; font-weight: 900;
    }
    .office-menu {
      display: flex; align-items: center; gap: 5px; flex: 1; min-width: 0;
      overflow: visible;
    }
    .office-menu-button {
      width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto;
      border: 1px solid var(--line); border-radius: var(--radius); background: white; color: var(--ink);
      font-size: 19px; line-height: 1; box-shadow: none;
      transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
    }
    .office-menu-button:hover, .office-menu-button[aria-expanded="true"] {
      border-color: var(--line-strong); background: var(--mist-strong); color: var(--blue);
    }
    .office-menu a {
      display: flex; align-items: center; min-height: 38px; padding: 0 16px;
      color: var(--muted); text-decoration: none; font-size: 13.5px; font-weight: 800; white-space: nowrap;
      border-radius: var(--radius-pill); border-bottom: 0;
      transition: background .18s var(--ease), color .18s var(--ease);
    }
    .office-menu a:hover, .office-menu a.is-active {
      color: var(--ink); background: var(--mist-strong);
    }
    .office-menu a.is-active {
      color: #FFFFFF; background: var(--blue);
    }
    .global-menu-panel {
      position: absolute; left: 0; right: 0; top: 100%;
      border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
      background: rgba(255, 255, 255, 0.98); box-shadow: 0 26px 42px rgba(15, 23, 42, 0.08);
      opacity: 0; visibility: hidden; pointer-events: none;
      transform: translateY(-10px); max-height: 0; overflow: hidden;
      transition: opacity .24s var(--ease), transform .24s var(--ease), max-height .32s var(--ease), visibility .24s var(--ease);
    }
    .global-menu-panel.is-open {
      opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); max-height: 420px;
    }
    @media (hover: hover) and (pointer: fine) {
      .office-header:has(.office-menu-button:hover) .global-menu-panel,
      .office-header:has(.office-menu a:hover) .global-menu-panel,
      .office-header:has(.global-menu-panel:hover) .global-menu-panel {
        opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); max-height: 420px;
      }
    }
    .global-menu-grid {
      display: grid; grid-template-columns: 1fr 1fr 1fr 1.16fr 1fr; gap: 42px; padding: 34px 0 32px;
    }
    .global-menu-section {
      display: grid; align-content: start; gap: 20px; min-width: 0; padding: 0 2px;
      border: 0; border-radius: 0; background: transparent;
    }
    .global-menu-section.is-action {
      margin-top: -10px; padding: 22px 28px; background: var(--mist); border-radius: 0;
    }
    .global-menu-section strong { color: #05070A; font-size: 26px; line-height: 1.15; letter-spacing: 0; margin-bottom: 18px; }
    .global-menu-section.is-active strong { color: #05BDA8; }
    .global-menu-section a {
      display: flex; align-items: center; min-height: 35px; padding: 0; border-radius: 0;
      color: #101820; text-decoration: none; font-size: 20px; line-height: 1.2; font-weight: 830;
      transition: color .18s var(--ease), transform .18s var(--ease);
    }
    .global-menu-section a:hover, .global-menu-section a.is-active {
      background: transparent; color: var(--blue); transform: translateX(3px);
    }
    .office-tools { display: flex; align-items: center; gap: 8px; min-width: 0; }
    .icon-button {
      width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px;
      border: 1px solid var(--line); background: white; color: var(--ink); box-shadow: none;
      font-size: 18px; line-height: 1;
    }
    .icon-button:hover { border-color: var(--line-strong); background: var(--mist); }
    .office-auth { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; min-width: 0; }
    .office-auth .btn { padding: 9px 12px; border-radius: 8px; font-size: 13px; box-shadow: none; }
    .office-auth .btn.secondary { background: var(--mist); color: var(--ink); border: 1px solid var(--line); }
    .office-auth .status-pill { background: var(--green-soft); color: var(--green); border: 1px solid rgba(5,150,105,0.2); border-radius: 8px; }

    .office-home {
      display: grid; grid-template-columns: 306px minmax(0, 1fr); gap: 18px; align-items: start;
      margin-bottom: 24px; min-width: 0;
    }
    .office-rail, .office-content { display: grid; gap: 12px; min-width: 0; }
    .office-card {
      background: white; border: 1px solid var(--line); border-radius: var(--radius);
      padding: 16px; box-shadow: var(--soft-shadow); min-width: 0;
    }
    .office-card h3 { margin: 0 0 12px; font-size: 16px; color: var(--ink); }
    .profile-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
    .avatar {
      width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
      background: var(--blue-soft); color: var(--blue); font-weight: 900; border: 1px solid rgba(18,52,107,0.14);
    }
    .profile-meta strong { display: block; color: var(--ink); }
    .profile-meta span { color: var(--muted); font-size: 12px; }
    .mini-agenda { margin-top: 14px; background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; color: var(--body); font-size: 13px; min-width: 0; }
    .agenda-line { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
    .work-clock { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-top: 12px; min-width: 0; }
    .clock-tile {
      background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; min-height: 74px;
      display: flex; flex-direction: column; justify-content: center;
    }
    .clock-tile strong { color: var(--ink); font-size: 25px; line-height: 1; }
    .clock-tile span { color: var(--muted); font-size: 12px; margin-top: 6px; }
    .work-start {
      width: 100%; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 8px;
      background: var(--blue); box-shadow: none;
    }
    .empathy-card { background: white; border-color: var(--line); }
    .office-card .panel-head { margin-bottom: 10px; }
    .bot-note {
      display: grid; gap: 5px; border-left: 3px solid var(--blue); padding: 6px 0 6px 12px;
      color: var(--body); font-size: 13px; line-height: 1.45;
    }
    .bot-note strong { color: var(--ink); font-size: 14px; }
    .soft-action-row { display: grid; gap: 8px; margin-top: 12px; }
    .soft-action {
      display: flex; align-items: center; justify-content: space-between; gap: 12px;
      border-top: 1px solid var(--line); padding-top: 9px; color: var(--body); font-size: 13px;
    }
    .soft-action strong { color: var(--ink); }
    .simple-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
    .simple-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--body); font-size: 13px; }
    .simple-list strong { color: var(--ink); }
    .search-box {
      display: flex; align-items: center; gap: 8px; height: 42px; border: 1px solid var(--line);
      border-radius: 8px; padding: 0 12px; color: var(--muted); font-size: 13px;
      min-width: 0;
    }

    .quick-menu {
      display: flex; align-items: center; gap: 8px; background: white; border: 1px solid var(--line);
      border-radius: 8px; padding: 10px 12px;
      min-width: 0;
    }
    .quick-menu strong { margin-right: 6px; color: var(--ink); font-size: 14px; }
    .quick-chip {
      border: 1px solid var(--line); color: var(--blue); background: var(--mist); border-radius: 6px;
      padding: 5px 9px; font-size: 12px; font-weight: 820; text-decoration: none;
    }
    .quick-chip:hover { border-color: var(--line-strong); background: var(--blue-soft); }
    .office-banner {
      min-height: 164px; display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 18px;
      align-items: center;
      background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 55%, #E8EEF7 100%);
      border: 1px solid var(--line); border-radius: var(--radius);
      padding: 26px 32px; overflow: hidden; min-width: 0; position: relative;
      box-shadow: var(--soft-shadow);
    }
    .office-banner small { display: block; color: var(--blue); font-weight: 850; margin-bottom: 8px; }
    .office-banner h1 { margin: 0; font-size: 34px; line-height: 1.16; color: var(--ink); }
    .office-banner p { margin: 10px 0 0; color: var(--body); }
    .banner-art { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; align-items: end; }
    .art-card { height: 58px; border-radius: 8px; background: white; border: 1px solid var(--line); box-shadow: var(--soft-shadow); }
    .art-card:nth-child(2) { height: 96px; background: var(--blue-soft); border-color: rgba(18,52,107,0.18); }
    .art-card:nth-child(3) { height: 76px; background: var(--blue); }
    .office-alert {
      display: flex; align-items: center; justify-content: space-between; gap: 14px;
      background: white; border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px;
      font-size: 13px; color: var(--body);
    }
    .office-alert strong { color: var(--ink); }
    .approval-dock {
      position: fixed; left: 50%; bottom: 16px; z-index: 19;
      width: min(1240px, calc(100% - 48px)); transform: translateX(-50%);
      display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) auto auto; gap: 10px;
      align-items: center; padding: 10px; background: rgba(255,255,255,0.98);
      border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
    }
    .approval-dock[hidden], .approval-dock-item[hidden] { display: none; }
    .approval-dock-title {
      display: grid; gap: 2px; min-width: 118px; padding: 0 6px;
    }
    .approval-dock-title strong { color: var(--ink); font-size: 14px; }
    .approval-dock-title span { color: var(--muted); font-size: 12px; }
    .approval-dock-item {
      display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center;
      min-width: 0; padding: 10px 12px; background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius);
      color: inherit; text-decoration: none;
    }
    .approval-dock-item:hover { border-color: var(--line-strong); background: var(--blue-soft); }
    .dock-mark {
      width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center;
      background: var(--blue-soft); color: var(--blue); font-size: 12px; font-weight: 900;
    }
    .dock-mark.coral { background: var(--orange-soft); color: var(--orange); }
    .dock-copy { min-width: 0; }
    .dock-copy strong {
      display: block; color: var(--ink); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    }
    .dock-copy span {
      display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    }
    .dock-count {
      min-width: 28px; height: 28px; display: grid; place-items: center; border-radius: 999px;
      background: var(--blue); color: white; font-size: 12px; font-weight: 900;
    }
    .approval-dock-more {
      height: 44px; display: inline-flex; align-items: center; justify-content: center;
      padding: 0 14px; border-radius: 8px; background: var(--blue); color: white;
      text-decoration: none; font-size: 13px; font-weight: 860; white-space: nowrap;
    }
    .approval-dock-collapse {
      height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center;
      border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--muted);
      font-size: 13px; font-weight: 860; white-space: nowrap;
    }
    .approval-dock-collapse:hover { border-color: var(--line-strong); background: var(--mist); color: var(--ink); }
    .daily-split {
      display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; min-width: 0;
    }
    .daily-lane { min-height: 188px; }
    .daylane-list { display: grid; gap: 0; }
    .daylane-row {
      display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center;
      padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--body); font-size: 13px;
    }
    .daylane-row:last-child { border-bottom: 0; }
    .daylane-row strong { color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .lane-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }
    .lane-dot.blue { background: var(--sky); }
    .lane-dot.coral { background: var(--orange); }
    .lane-dot.violet { background: var(--line-strong); }
    .lane-dot.green { background: var(--green); }
    .portal-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; min-width: 0; }
    .portal-panel {
      background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px;
      min-height: 164px; min-width: 0; box-shadow: var(--soft-shadow);
    }
    .panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
    .panel-head h3 { margin: 0; font-size: 16px; color: var(--ink); }
    .panel-head a { color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 760; }
    .panel-head-link { color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 760; }
    .approval-row, .notice-row {
      display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center;
      padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--body); font-size: 13px;
    }
    .approval-row:last-child, .notice-row:last-child { border-bottom: 0; }
    .people-row { display: flex; gap: 18px; overflow-x: auto; padding: 2px 0 4px; }
    .person { min-width: 72px; text-align: center; color: var(--body); font-size: 12px; }
    .person .avatar { margin: 0 auto 7px; width: 50px; height: 50px; }
    .today-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; min-width: 0; }
    .today-card {
      border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: white;
      min-width: 0;
    }
    .today-thumb { height: 74px; background: var(--blue-soft); display: grid; place-items: center; color: var(--blue); font-weight: 900; }
    .today-card:nth-child(2) .today-thumb { background: var(--green-soft); color: var(--green); }
    .today-card:nth-child(3) .today-thumb { background: var(--mist-strong); color: var(--body); }
    .today-card:nth-child(4) .today-thumb { background: var(--orange-soft); color: var(--orange); }
    .today-card strong { display: block; padding: 9px 10px 2px; color: var(--ink); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .today-card span { display: block; padding: 0 10px 10px; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .impact-meter { display: grid; gap: 12px; }
    .meter-row { display: grid; gap: 6px; }
    .meter-copy { display: flex; justify-content: space-between; gap: 12px; color: var(--body); font-size: 13px; }
    .meter-copy strong { color: var(--ink); }
    .meter-line { height: 8px; border-radius: 999px; background: #EEF1F5; overflow: hidden; }
    .meter-line span { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
    .meter-line.coral span { background: var(--orange); }
    .culture-list { display: grid; gap: 0; }
    .culture-item {
      display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 10px 0;
      border-bottom: 1px solid var(--line); color: var(--body); font-size: 13px;
    }
    .culture-item:last-child { border-bottom: 0; }
    .culture-item strong { display: block; color: var(--ink); margin-bottom: 3px; }
    .culture-mark {
      width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
      background: var(--blue-soft); color: var(--blue); font-weight: 900; font-size: 12px;
    }
    .module-page-panel {
      display: grid; grid-template-columns: minmax(0, 1fr);
      gap: 14px; margin-bottom: 16px;
    }
    .module-page-panel[hidden] { display: none; }
    .module-page-panel .portal-panel { min-height: 154px; }
    .module-page-kicker { margin: 0 0 6px; color: var(--muted); font-size: 12px; font-weight: 820; }
    .module-page-panel h3 { margin: 0 0 8px; color: var(--navy); font-size: 22px; }
    .module-page-panel p { margin: 0; color: var(--body); }
    .ops-page { display: grid; gap: 18px; min-width: 0; }
    .ops-hero {
      display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: end;
      padding: 12px 0 4px;
    }
    .ops-title { display: grid; gap: 8px; min-width: 0; }
    .ops-title h3 { margin: 0; color: var(--ink); font-size: 31px; letter-spacing: 0; }
    .ops-title p { color: var(--muted); font-size: 15px; font-weight: 680; }
    .ops-primary-action {
      min-height: 46px; border-radius: 8px; padding: 0 18px; background: var(--blue); color: white;
      box-shadow: 0 12px 24px rgba(18,52,107,0.16); font-weight: 860; white-space: nowrap;
    }
    .ops-toolbar { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; min-width: 0; }
    .ops-search {
      width: min(320px, 100%); border: 1px solid var(--line-strong); border-radius: 8px;
      padding: 12px 14px; background: white; color: var(--ink); font-weight: 720;
      box-shadow: 0 8px 18px rgba(15,23,42,0.04);
    }
    .ops-search::placeholder { color: #94A3B8; }
    .ops-chip-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
    .ops-chip-row strong { color: var(--muted); font-size: 13px; }
    .ops-chip {
      border: 1px solid var(--line); background: white; color: var(--body); border-radius: var(--radius-pill);
      padding: 8px 13px; font-weight: 820; box-shadow: 0 5px 12px rgba(15,23,42,0.035);
    }
    .ops-chip.is-active { background: var(--blue); border-color: var(--blue); color: white; }
    .ops-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
    .ops-kpi {
      background: white; border: 1px solid var(--line); border-radius: 8px; padding: 18px;
      min-height: 122px; box-shadow: var(--soft-shadow);
    }
    .ops-kpi span { display: block; color: var(--muted); font-weight: 800; margin-bottom: 10px; }
    .ops-kpi strong { display: block; color: var(--ink); font-size: 32px; line-height: 1; letter-spacing: 0; }
    .ops-kpi small { display: block; color: var(--muted); font-weight: 720; margin-top: 12px; }
    .ops-table-card {
      background: white; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--soft-shadow);
      overflow: hidden; min-width: 0;
    }
    .ops-table-wrap { overflow-x: auto; min-width: 0; }
    .ops-table th, .ops-table td { padding: 15px 16px; }
    .ops-table th { background: white; color: var(--muted); font-size: 13px; border-bottom: 1px solid var(--line); }
    .ops-table td { color: var(--body); font-weight: 680; }
    .ops-main-text { display: block; color: var(--ink); font-weight: 880; }
    .ops-sub-text { display: block; color: var(--muted); font-size: 12.5px; font-weight: 680; margin-top: 3px; }
    .ops-empty { color: var(--muted); padding: 24px 16px; font-weight: 760; }
    .ops-alert {
      border: 1px solid rgba(217,119,6,0.28); background: var(--orange-soft); color: #8A5A08;
      border-radius: 8px; padding: 13px 16px; font-weight: 780;
    }
    .ops-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
    .ops-record-card {
      background: white; border: 1px solid var(--line); border-radius: 8px; padding: 18px;
      min-height: 258px; box-shadow: var(--soft-shadow); display: grid; gap: 14px; align-content: start;
    }
    .ops-record-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
    .ops-record-head h4 { margin: 0; color: var(--ink); font-size: 18px; letter-spacing: 0; }
    .ops-record-meta { color: var(--muted); font-weight: 760; font-size: 13px; }
    .ops-record-desc { color: var(--body); min-height: 44px; }
    .ops-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
    .ops-info-block { display: grid; gap: 5px; min-width: 0; }
    .ops-info-block span { color: var(--muted); font-size: 12px; font-weight: 820; }
    .ops-info-block strong { color: var(--body); font-size: 13px; line-height: 1.45; }
    .ops-link-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
    .ops-link-chip {
      display: inline-flex; align-items: center; gap: 6px; min-height: 34px;
      border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px;
      color: var(--body); background: white; text-decoration: none; font-weight: 820; font-size: 12px;
    }
    .ops-link-chip strong { color: var(--muted); }
    .ops-link-chip.is-missing { border-style: dashed; color: var(--muted); background: var(--mist); }
    .ops-row-actions { display: inline-flex; align-items: center; gap: 6px; justify-content: flex-end; }
    .ops-icon-action {
      width: 34px; height: 34px; display: inline-grid; place-items: center; border: 1px solid var(--line);
      border-radius: 8px; background: white; color: var(--body); box-shadow: none; font-weight: 900;
    }
    .ops-icon-action:hover { background: var(--mist); border-color: var(--line-strong); color: var(--ink); }
    .ops-icon-action.danger { color: var(--red); }
    .ops-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
    .ops-form-grid .field { margin-bottom: 0; }
    .ops-form-grid .field.full { grid-column: 1 / -1; }
    .ops-modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
    .project-workspace {
      display: grid; grid-template-columns: 252px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 0; min-width: 0;
      background: white; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
      min-height: min(760px, calc(100vh - 190px)); font-size: 13px; box-shadow: var(--soft-shadow);
    }
    .project-workspace[hidden] { display: none; }
    .project-sidebar, .project-main {
      background: white; border: 0; border-radius: 0; min-width: 0; box-shadow: none;
    }
    .project-sidebar {
      grid-column: 1; grid-row: 2; padding: 14px 10px; display: grid; gap: 12px; align-content: start;
      background: var(--mist); border-right: 1px solid var(--line);
    }
    .project-side-title { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--ink); font-weight: 860; }
    .project-mini-add {
      border: 0; background: transparent; color: inherit; font-size: 18px; line-height: 1; border-radius: 6px;
      width: 26px; height: 26px;
    }
    .project-mini-add:hover { background: rgba(255,255,255,0.10); }
    .project-side-section { display: grid; gap: 4px; }
    .project-side-label { color: var(--muted); font-size: 11px; font-weight: 820; padding: 8px 10px 2px; text-transform: uppercase; }
    .asana-nav-item {
      display: flex; align-items: center; gap: 8px; border: 0; background: transparent; border-radius: 6px;
      padding: 8px 10px; color: var(--body); text-align: left; font-weight: 720;
    }
    .asana-nav-item:hover, .asana-nav-item.is-active { background: var(--blue-soft); color: var(--blue); }
    .asana-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); display: inline-block; }
    .asana-dot.green { background: var(--green); }
    .asana-dot.blue { background: var(--sky); }
    .asana-dot.violet { background: var(--line-strong); }
    .project-list { display: grid; gap: 5px; }
    .project-link {
      border: 0; background: transparent; border-radius: 8px; padding: 9px 10px; color: var(--body);
      text-align: left; display: grid; gap: 2px;
    }
    .project-link strong { color: var(--ink); font-size: 13px; }
    .project-link span { color: var(--muted); font-size: 12px; }
    .project-link.is-active { background: var(--blue-soft); color: var(--blue); }
    .project-sidebar .simple-list { border-top: 1px solid var(--line); padding-top: 12px; }
    .project-main { grid-column: 2; grid-row: 2; padding: 0; overflow: hidden; position: relative; }
    .project-topbar {
      padding: 22px 28px 0; border-bottom: 1px solid var(--line);
      display: grid; gap: 18px;
    }
    .project-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
    .project-heading { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
    .project-icon {
      width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
      background: var(--blue); color: white; font-weight: 900; flex: 0 0 auto;
    }
    .project-eyebrow { margin: 0 0 4px; color: var(--muted); font-size: 12px; font-weight: 820; }
    .project-title-row h3 { margin: 0; color: var(--ink); font-size: 26px; letter-spacing: 0; }
    .project-title-row p { margin: 5px 0 0; color: var(--body); }
    .project-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
    .project-avatar-row { display: flex; align-items: center; }
    .project-avatar {
      width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
      background: var(--blue-soft); color: var(--blue); border: 2px solid white; font-size: 12px; font-weight: 900;
      margin-left: -6px;
    }
    .project-avatar:first-child { margin-left: 0; }
    .project-view-tabs { display: flex; gap: 2px; flex-wrap: wrap; }
    .project-view-tabs button {
      border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted);
      border-radius: 0; padding: 10px 12px 12px; font-weight: 780;
    }
    .project-view-tabs button:focus { outline: none; }
    .project-view-tabs button:focus-visible { outline: 2px solid #9CB9FF; outline-offset: 2px; border-radius: 6px; }
    .project-view-tabs button.is-active { background: transparent; border-bottom-color: var(--blue); color: var(--ink); }
    .project-toolbar {
      display: flex; align-items: center; justify-content: space-between; gap: 12px;
      padding: 10px 28px; border-bottom: 1px solid var(--line); background: white;
    }
    .project-toolbar-left, .project-toolbar-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
    .project-tool-button {
      border: 1px solid var(--line); background: white; color: var(--body); border-radius: 6px;
      padding: 7px 10px; font-weight: 780;
    }
    .project-tool-button.primary { background: var(--blue); color: white; border-color: var(--blue); }
    .project-tool-button:hover { background: var(--mist); border-color: var(--line-strong); }
    .project-tool-button.primary:hover { background: var(--deep); }
    .project-composer {
      display: grid; grid-template-columns: minmax(180px, 1fr) 132px 132px 116px auto; gap: 8px;
      padding: 10px 28px; border-bottom: 1px solid var(--line); background: var(--mist);
    }
    .project-composer input, .project-composer select {
      border: 1px solid var(--line); border-radius: 8px; padding: 10px 11px; background: white; color: var(--ink);
      min-width: 0;
    }
    .project-view { padding: 0; }
    .project-view[hidden] { display: none; }
    .asana-overview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 20px 28px; }
    .asana-overview-card { border: 1px solid var(--line); border-radius: 8px; padding: 16px; background: white; box-shadow: var(--soft-shadow); }
    .asana-overview-card strong { display: block; color: var(--ink); margin-bottom: 6px; }
    .asana-overview-card span { color: var(--body); font-size: 13px; }
    .asana-list { display: grid; }
    .asana-list-header {
      display: grid; grid-template-columns: 28px minmax(280px, 1fr) 110px 118px 118px 110px;
      gap: 10px; align-items: center; padding: 9px 28px; color: var(--muted); font-size: 12px;
      border-bottom: 1px solid var(--line); background: var(--mist); font-weight: 760;
    }
    .asana-section { border-bottom: 1px solid var(--line); }
    .asana-section-head {
      display: grid; grid-template-columns: 28px minmax(280px, 1fr) 110px 118px 118px 110px;
      gap: 10px; align-items: center; padding: 11px 28px; color: var(--body); font-size: 12px; font-weight: 820;
      background: white; border-bottom: 1px solid var(--line);
    }
    .asana-section-toggle { color: var(--muted); font-size: 12px; }
    .asana-task-row {
      width: 100%; border: 0; background: white; display: grid;
      grid-template-columns: 28px minmax(280px, 1fr) 110px 118px 118px 110px;
      gap: 10px; align-items: center; padding: 10px 28px; color: var(--body); text-align: left;
      border-bottom: 1px solid var(--line);
    }
    .asana-task-row:hover { background: var(--mist); }
    .asana-task-row.is-selected { background: var(--blue-soft); box-shadow: inset 3px 0 0 var(--blue); }
    .asana-task-row:last-child { border-bottom: 0; }
    .task-check { width: 16px; height: 16px; border: 1px solid var(--line-strong); border-radius: 50%; display: inline-block; background: white; }
    .asana-task-row.done .task-check { background: var(--green); border-color: var(--green); }
    .asana-task-title { color: var(--ink); font-weight: 720; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .asana-cell { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
    .asana-due.overdue { color: var(--red); font-weight: 820; }
    .asana-status-pill { border-radius: 6px; padding: 5px 7px; background: #F1F5F9; color: #475569; font-weight: 760; }
    .asana-status-pill.todo { background: #F1F5F9; color: #475569; }
    .asana-status-pill.doing { background: var(--blue-soft); color: var(--blue); }
    .asana-status-pill.review { background: var(--orange-soft); color: var(--orange); }
    .asana-status-pill.done { background: var(--green-soft); color: var(--green); }
    .asana-priority-pill { border-radius: 6px; padding: 5px 7px; background: #F1F5F9; color: #475569; font-weight: 760; }
    .asana-priority-pill.high { background: var(--red-soft); color: var(--red); }
    .asana-priority-pill.medium { background: var(--orange-soft); color: var(--orange); }
    .asana-priority-pill.low { background: var(--blue-soft); color: var(--blue); }
    .project-board {
      display: grid; grid-template-columns: repeat(4, minmax(214px, 1fr)); gap: 12px; overflow-x: auto; padding: 16px 20px 20px;
    }
    .project-column {
      background: var(--mist); border: 1px solid var(--line); border-radius: 8px; padding: 10px; min-width: 214px;
    }
    .project-column-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--ink); font-weight: 860; }
    .project-column-head span { color: var(--muted); font-size: 12px; }
    .task-stack { display: grid; gap: 8px; }
    .task-card {
      border: 1px solid var(--line); background: white; border-radius: 8px; padding: 12px;
      text-align: left; color: var(--ink); box-shadow: 0 4px 12px rgba(17,24,39,0.04);
    }
    .task-card:hover { border-color: var(--line-strong); box-shadow: 0 8px 20px rgba(18,52,107,0.10); }
    .task-card strong { display: block; color: var(--ink); margin-bottom: 8px; line-height: 1.35; }
    .task-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 10px; }
    .task-tag { display: inline-flex; border-radius: var(--radius-pill); padding: 4px 7px; background: var(--blue-soft); color: var(--blue); font-size: 11px; font-weight: 820; }
    .task-tag.orange { background: var(--orange-soft); color: var(--orange); }
    .task-tag.green { background: var(--green-soft); color: var(--green); }
    .task-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
    .task-assignee { display: flex; align-items: center; gap: 6px; }
    .mini-avatar {
      width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
      background: var(--blue-soft); color: var(--blue); font-size: 11px; font-weight: 900;
    }
    .project-list-table td, .project-list-table th { white-space: nowrap; }
    .task-name-cell { min-width: 280px; }
    .timeline-board { display: grid; gap: 10px; }
    .timeline-row { display: grid; grid-template-columns: 220px minmax(0, 1fr) 90px; gap: 12px; align-items: center; padding: 0 28px; }
    .timeline-row:first-child { padding-top: 18px; }
    .timeline-name { color: var(--ink); font-weight: 820; font-size: 13px; }
    .timeline-track { height: 34px; border-radius: 999px; background: #F0F3F8; position: relative; overflow: hidden; }
    .timeline-bar { position: absolute; top: 6px; bottom: 6px; border-radius: 999px; background: var(--blue); }
    .timeline-bar.green { background: var(--green); }
    .timeline-bar.orange { background: var(--orange); }
    .timeline-date { color: var(--muted); font-size: 12px; text-align: right; }
    .asana-calendar { display: grid; grid-template-columns: repeat(7, minmax(120px, 1fr)); border-top: 1px solid var(--line); overflow-x: auto; }
    .asana-calendar-day { min-height: 180px; border-right: 1px solid var(--line); padding: 10px; background: white; }
    .asana-calendar-day:last-child { border-right: 0; }
    .asana-calendar-date { color: var(--muted); font-size: 12px; font-weight: 820; margin-bottom: 10px; }
    .asana-calendar-task { border: 1px solid var(--line); border-radius: 6px; padding: 7px; margin-bottom: 6px; color: var(--ink); font-size: 12px; background: var(--mist); }
    .project-detail-pane {
      position: absolute; top: 0; right: 0; width: min(480px, 46vw); height: 100%;
      background: white; border-left: 1px solid var(--line); z-index: 6;
      box-shadow: -18px 0 40px rgba(17,24,39,0.12); display: grid; grid-template-rows: auto 1fr;
    }
    .project-detail-pane[hidden] { display: none; }
    .task-detail-head {
      display: flex; justify-content: space-between; align-items: center; gap: 12px;
      padding: 14px 18px; border-bottom: 1px solid var(--line);
    }
    .task-detail-head strong { color: var(--ink); }
    .task-detail-body { padding: 20px; overflow: auto; }
    .task-detail-title {
      width: 100%; border: 0; border-bottom: 1px solid var(--line); padding: 0 0 14px;
      font-size: 23px; font-weight: 780; color: var(--ink); outline: none;
    }
    .task-detail-fields { display: grid; gap: 10px; margin: 18px 0; }
    .task-detail-field { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 12px; align-items: center; }
    .task-detail-field span:first-child { color: var(--muted); font-size: 12px; font-weight: 780; }
    .task-detail-note {
      border: 1px solid var(--line); border-radius: 8px; padding: 14px; color: var(--body);
      background: var(--mist); min-height: 116px;
    }
    .task-detail-subsection { margin-top: 18px; display: grid; gap: 8px; }
    .task-detail-subsection strong { color: var(--ink); }
    .task-detail-mini-row {
      display: flex; justify-content: space-between; align-items: center; gap: 10px;
      border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; color: var(--body);
    }
    .task-comment-box {
      width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px;
      color: var(--ink); resize: vertical; min-height: 74px;
    }
    .project-app-topbar {
      grid-column: 1 / -1; grid-row: 1; display: grid; grid-template-columns: auto minmax(220px, 520px) auto;
      align-items: center; gap: 12px; padding: 12px 14px; background: var(--mist); color: var(--ink);
      border-bottom: 1px solid var(--line);
    }
    .project-create-button {
      display: inline-flex; align-items: center; gap: 6px; width: fit-content; border: 1px solid var(--line);
      border-radius: 8px; padding: 8px 12px; background: var(--blue-soft); color: var(--blue); font-weight: 820;
    }
    .project-create-button strong {
      width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; background: var(--blue); color: white;
      line-height: 1; font-size: 16px;
    }
    .project-app-search {
      width: 100%; max-width: 520px; justify-self: center; border: 1px solid var(--line); border-radius: 8px;
      background: white; color: var(--ink); padding: 9px 12px; outline: none;
    }
    .project-app-search::placeholder { color: var(--muted); }
    .project-top-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
    .project-round-action {
      width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: white;
      color: var(--body); display: grid; place-items: center; font-weight: 840;
    }
    .project-app-rail { display: none; }
    .project-rail-item {
      border: 0; background: transparent; color: var(--muted); display: grid; justify-items: center; gap: 5px;
      padding: 8px 4px; border-radius: 8px; font-size: 11px;
    }
    .project-rail-item strong {
      width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; border: 1px solid var(--line-strong);
      font-size: 15px;
    }
    .project-rail-item.is-active strong, .project-rail-item:hover strong { background: var(--blue-soft); color: var(--blue); }
    .project-trial-card {
      margin-top: auto; border: 1px solid var(--line); border-radius: 8px; padding: 12px; display: grid; gap: 9px;
      color: var(--body); background: white;
    }
    .project-trial-meter {
      width: 34px; height: 34px; border-radius: 50%; border: 5px solid var(--blue); border-left-color: var(--line);
    }
    .project-trial-card button {
      border: 0; border-radius: 6px; background: var(--blue-soft); color: var(--blue); padding: 9px 10px; font-weight: 840;
    }
    .project-main { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto 1fr; }
    .project-heading { align-items: center; }
    .project-icon { background: var(--blue-soft); color: var(--blue); border: 1px solid rgba(18,52,107,0.14); }
    .project-caret { border: 0; background: transparent; color: var(--muted); font-size: 18px; padding: 4px; }
    .project-toolbar, .project-composer, .project-view { grid-column: 1; }
    .project-composer[hidden] { display: none; }
    .project-view { overflow: auto; min-height: 0; }
    .project-tool-button.blue { background: var(--blue); color: white; border-color: var(--blue); }
    .project-tool-button.blue:hover { background: var(--deep); border-color: var(--deep); }
    .asana-overview-card .metric-number { display: block; margin-top: 22px; text-align: center; color: var(--ink); font-size: 42px; font-weight: 520; }
    .asana-overview-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .dashboard-chart-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .dashboard-chart {
      border: 1px solid var(--line); border-radius: 8px; min-height: 250px; padding: 16px; background: white; box-shadow: var(--soft-shadow);
      display: grid; align-content: space-between; gap: 16px;
    }
    .mini-bars { display: flex; align-items: end; gap: 18px; min-height: 135px; border-bottom: 1px solid #D1D5DB; padding: 0 18px; }
    .mini-bars span { width: 58px; border-radius: 6px 6px 0 0; background: var(--blue); display: block; position: relative; }
    .mini-bars span::after { content: attr(data-label); position: absolute; left: 50%; bottom: -26px; transform: translateX(-50%); color: var(--muted); font-size: 11px; white-space: nowrap; }
    .donut {
      width: 184px; height: 184px; border-radius: 50%; place-self: center; display: grid; place-items: center;
      background: conic-gradient(var(--blue) 0 78%, var(--blue-soft) 78% 100%);
    }
    .donut strong { width: 96px; height: 96px; border-radius: 50%; background: white; display: grid; place-items: center; font-size: 28px; }
    .asana-list-header,
    .asana-section-head,
    .asana-task-row {
      grid-template-columns: 28px minmax(280px, 1fr) 126px 136px 150px;
    }
    .asana-project-chip {
      width: fit-content; display: inline-flex; align-items: center; gap: 5px; border-radius: 5px; padding: 4px 7px;
      background: var(--mist-strong); color: var(--body); font-weight: 760;
    }
    .asana-project-chip::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--sky); }
    .asana-add-row { color: var(--muted); padding-left: 64px; background: white; cursor: text; }
    .project-onboarding {
      margin: 28px auto 36px; max-width: 900px; display: grid; justify-items: center; gap: 18px; color: var(--ink);
    }
    .project-onboarding[hidden] { display: none; }
    .project-onboarding-head { display: flex; align-items: center; justify-content: center; gap: 16px; width: 100%; }
    .project-onboarding-head h3 { margin: 0; font-size: 20px; }
    .project-onboarding-close { border: 0; background: transparent; color: var(--muted); font-size: 24px; }
    .project-template-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; width: 100%; }
    .project-template-card {
      border: 1px solid var(--line); border-radius: 8px; background: var(--mist); padding: 20px; min-height: 150px;
      display: grid; gap: 10px; align-content: start;
    }
    .project-template-icon { width: 32px; height: 32px; border-radius: 7px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-weight: 900; }
    .project-template-card strong { color: var(--ink); font-size: 15px; }
    .project-template-card span { color: var(--muted); line-height: 1.45; }
    .project-board { grid-template-columns: repeat(4, minmax(250px, 1fr)); gap: 18px; padding: 20px 24px 32px; }
    .project-column { background: var(--mist); border: 1px solid var(--line); border-radius: 8px; padding: 12px; min-width: 250px; min-height: 430px; }
    .asana-calendar-toolbar {
      display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 28px;
      border-bottom: 1px solid var(--line); color: var(--body);
    }
    .asana-calendar {
      display: grid; grid-template-columns: repeat(7, minmax(132px, 1fr)); border-top: 1px solid var(--line);
      overflow-x: auto; min-width: 920px;
    }
    .asana-calendar-day { min-height: 156px; border-bottom: 1px solid var(--line); }
    .asana-calendar-day:nth-child(7n) { border-right: 0; }
    .asana-calendar-day.is-today .asana-calendar-date { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--blue); color: white; }
    .asana-calendar-task { border: 0; background: var(--blue-soft); color: var(--blue); width: 100%; text-align: left; }
    .project-files-empty {
      display: grid; place-items: center; min-height: 520px; text-align: center; color: var(--ink); gap: 20px;
    }
    .project-empty-illustration { width: 150px; height: 116px; position: relative; }
    .project-empty-illustration::before, .project-empty-illustration::after {
      content: ""; position: absolute; border: 3px solid var(--blue); border-radius: 10px; background: var(--blue-soft);
    }
    .project-empty-illustration::before { width: 90px; height: 58px; left: 22px; top: 4px; transform: rotate(-19deg); }
    .project-empty-illustration::after { width: 58px; height: 68px; right: 16px; bottom: 5px; transform: rotate(22deg); }
    .project-detail-pane { display: grid; grid-template-rows: auto auto 1fr auto; }
    .task-detail-actions { display: flex; align-items: center; gap: 8px; }
    .task-mini-button { border: 0; background: transparent; color: var(--body); font-size: 18px; padding: 5px; border-radius: 6px; }
    .task-mini-button:hover { background: var(--mist); }
    .task-more-menu {
      position: absolute; top: 48px; right: 18px; width: 280px; border: 1px solid var(--line-strong); border-radius: 8px;
      background: white; box-shadow: var(--shadow); z-index: 9; padding: 8px 0;
    }
    .task-more-menu[hidden] { display: none; }
    .task-more-menu button {
      width: 100%; border: 0; background: white; text-align: left; padding: 11px 18px; color: var(--ink); font-weight: 760;
      display: flex; justify-content: space-between; gap: 10px;
    }
    .task-more-menu button:hover { background: var(--mist); }
    .task-detail-context { padding: 12px 28px; color: var(--body); border-bottom: 1px solid var(--line); }
    .task-detail-body { padding: 24px 28px; }
    .task-detail-title { font-size: 28px; font-weight: 820; }
    .task-detail-fields { gap: 0; margin: 22px 0 28px; }
    .task-detail-field {
      grid-template-columns: 120px minmax(0, 1fr); padding: 10px 0; border-bottom: 1px solid var(--line);
    }
    .task-detail-activity {
      border-top: 1px solid var(--line); background: var(--mist); padding: 18px 28px; display: grid; gap: 14px;
    }
    .task-detail-activity-row { display: flex; gap: 10px; align-items: center; color: var(--body); }

    @media (max-width: 980px) {
      main { padding-bottom: 70px; }
      body.has-approval-dock main { padding-bottom: 280px; }
      .phone-wrap, .split, .office-home, .office-banner, .module-page-panel, .project-workspace, .project-composer { grid-template-columns: 1fr; }
      .project-app-topbar, .project-sidebar, .project-main { grid-column: 1; }
      .project-app-topbar { grid-row: 1; }
      .project-sidebar { grid-row: 2; }
      .project-main { grid-row: 3; }
      .asana-overview-grid { grid-template-columns: 1fr; }
      .project-sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
      .project-toolbar { align-items: stretch; flex-direction: column; }
      .project-detail-pane { position: fixed; inset: 0; width: auto; height: auto; }
      .grid.cols-4, .grid.cols-3, .grid.cols-2, .flow, .policy-grid, .portal-grid, .ops-kpi-grid, .ops-grid { grid-template-columns: 1fr 1fr; }
      .ops-hero { align-items: stretch; grid-template-columns: 1fr; }
      .phone { max-width: 390px; }
      .office-header .shell { align-items: flex-start; flex-direction: column; padding: 14px 0; }
      .office-menu { width: 100%; flex-wrap: wrap; gap: 6px 16px; }
      .office-menu a { height: 38px; }
      .global-menu-panel.is-open { max-height: 72vh; overflow-y: auto; }
      .global-menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: 24px 0; }
      .global-menu-section strong { font-size: 22px; }
      .global-menu-section a { font-size: 17px; }
      .global-menu-section.is-action { margin-top: 0; padding: 18px; }
      .office-tools { width: 100%; justify-content: space-between; }
      .approval-dock {
        grid-template-columns: 1fr; align-items: stretch; bottom: 10px; width: calc(100% - 20px);
      }
      .approval-dock-title { grid-template-columns: auto auto; justify-content: space-between; align-items: center; }
      .approval-dock-more { width: 100%; }
      .approval-dock-collapse { width: 100%; }
      .toast { right: 10px; bottom: 18px; max-width: calc(100vw - 20px); }
      body.has-approval-dock .toast { bottom: 230px; }
    }
    @media (max-width: 640px) {
      .shell { width: min(100% - 22px, 1180px); }
      .grid.cols-4, .grid.cols-3, .grid.cols-2, .flow, .policy-grid, .portal-grid, .today-grid, .daily-split, .ops-kpi-grid, .ops-grid, .ops-form-grid, .ops-info-grid { grid-template-columns: 1fr; }
      .attendance-mode-grid { grid-template-columns: 1fr; }
      .ops-title h3 { font-size: 27px; }
      .global-menu-grid { grid-template-columns: 1fr; }
      .section-head, .timeline-item { align-items: stretch; flex-direction: column; display: flex; }
      .office-banner { padding: 20px; }
      .office-banner h1 { font-size: 28px; }
      .quick-menu { align-items: flex-start; flex-direction: column; }
      .project-app-topbar { grid-template-columns: 1fr; align-items: stretch; }
      .project-app-search { justify-self: stretch; max-width: none; }
      .phone { padding: 10px; border-radius: 26px; }
      .phone-screen { border-radius: 20px; }
      .checkin-actions { grid-template-columns: 1fr; }
      .project-title-row { flex-direction: column; }
      .asana-list-header, .asana-section-head, .asana-task-row { grid-template-columns: 24px minmax(180px, 1fr) 82px; overflow-x: auto; }
      .asana-list-header span:nth-child(n+4),
      .asana-section-head span:nth-child(n+4), .asana-task-row span:nth-child(n+4) { display: none; }
      .timeline-row { grid-template-columns: 1fr; gap: 6px; }
      .timeline-date { text-align: left; }
      th:nth-child(5), td:nth-child(5) { display: none; }
      .project-list-table th:nth-child(5), .project-list-table td:nth-child(5) { display: table-cell; }
    }

