
:root {
      --ink: #172033;
      --muted: #667085;
      --canvas: #f6f7fa;
      --surface: #ffffff;
      --soft: #f9fafb;
      --line: #e4e7ec;
      --line-strong: #d0d5dd;
      --accent: #ff6b1a;
      --accent-hover: #e95a0a;
      --accent-soft: #fff1e8;
      --success: #27845d;
      --success-soft: #eaf7f0;
      --warning: #b77a13;
      --warning-soft: #fff7e5;
      --phone: #397fe8;
      --away: #8067c4;
      --off: #98a2b3;
      --danger: #b83f45;
      --danger-soft: #fff0f1;
      --blue-soft: #eef5ff;
      --shadow: 0 14px 36px rgba(23, 32, 51, .1);
      --shadow-small: 0 5px 16px rgba(23, 32, 51, .07);
      color-scheme: light;
    }
    * { box-sizing: border-box; }
    html { min-width: 320px; background: var(--canvas); }
    body {
      min-height: 100vh;
      margin: 0;
      background: var(--canvas);
      color: var(--ink);
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      font-size: 15px;
      line-height: 1.45;
    }
    button, input, select { font: inherit; }
    button, a, summary { -webkit-tap-highlight-color: transparent; }
    button { color: inherit; }
    a { color: inherit; }
    [hidden] { display: none !important; }
    :focus-visible { outline: 3px solid rgba(255, 107, 26, .28); outline-offset: 3px; }
    .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; padding: 0; border: 0; margin: -1px; clip: rect(0,0,0,0); white-space: nowrap; }
    .skip-link {
      position: fixed; z-index: 1000; top: 8px; left: 8px; padding: 9px 12px;
      border-radius: 9px; transform: translateY(-150%); background: var(--ink); color: white;
    }
    .skip-link:focus { transform: translateY(0); }

    

.runtime-boundary {
  display: grid; gap: 5px; min-height: 42px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: white;
  color: var(--danger); box-shadow: var(--shadow-small);
}
.runtime-boundary strong { color: var(--ink); }
.runtime-boundary.compact { min-width: 150px; padding: 8px 10px; font-size: 12px; }
[data-runtime-failed="true"] { isolation: isolate; }
.app-header {
      position: sticky; z-index: 100; top: 0; border-bottom: 1px solid var(--line);
      background: rgba(255,255,255,.96); backdrop-filter: blur(16px);
    }
    .header-row {
      display: flex; width: 100%; min-height: 68px; padding: 0 28px;
      align-items: center; gap: 12px;
    }
    .brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 10px; text-decoration: none; }
    .brand-mark {
      display: block; width: 38px; height: 38px; flex: 0 0 auto; overflow: hidden;
      border-radius: 11px; background: white url("./cs-console-icon.png") center/130% 130% no-repeat;
      box-shadow: var(--shadow-small);
    }
    .brand-mark::after { display: none; }
    .brand-mark span { display: none; }
    .brand-name { font-weight: 820; letter-spacing: -.025em; white-space: nowrap; }
    .desktop-nav {
      display: flex; min-width: 0; align-items: center; gap: 4px;
      overflow-x: auto; scrollbar-width: none;
    }
    .desktop-nav::-webkit-scrollbar { display: none; }
    .nav-link {
      display: inline-flex; min-height: 38px; align-items: center; padding: 8px 13px;
      border-radius: 10px; color: #536071; font-size: 14px; font-weight: 720;
      text-decoration: none; white-space: nowrap;
    }
    .nav-link:hover { background: var(--soft); color: var(--ink); }
    .nav-link[aria-current="page"] { background: var(--accent-soft); color: var(--accent-hover); }
    .header-space { min-width: 18px; flex: 1 1 auto; }
    .widget-bar { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }

    .status-widget, .account { position: relative; }
    .next-shift-widget {
      display: flex; min-width: 208px; min-height: 46px; align-items: center; gap: 9px;
      padding: 5px 11px 5px 6px; border: 1px solid #cfe0f7; border-radius: 13px;
      background: linear-gradient(135deg,#fff 0%,#f4f8ff 100%);
      box-shadow: 0 2px 7px rgba(23,32,51,.04);
    }
    .next-shift-avatar-host { display: grid; flex: 0 0 auto; place-items: center; }
    .next-shift-avatar {
      display: grid; width: 34px; height: 34px; overflow: hidden; place-items: center;
      border: 2px solid white; border-radius: 10px; background: #e8f0ff; color: #315d9e;
      font-size: 10px; font-weight: 850; box-shadow: 0 4px 11px rgba(49,93,158,.15);
    }
    .next-shift-avatar img { width: 100%; height: 100%; object-fit: cover; }
    .next-shift-copy { display: grid; min-width: 0; line-height: 1.15; }
    .next-shift-copy small { overflow: hidden; color: var(--muted); font-size: 9px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
    .next-shift-copy strong { margin-top: 3px; color: var(--ink); font-size: 11px; font-weight: 820; white-space: nowrap; }
    .next-shift-empty-mark { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: var(--success-soft); color: var(--success); font-size: 14px; font-weight: 900; }
    .next-shift-widget.empty { border-color: var(--line); background: white; }
    .status-trigger, .account-trigger {
      display: inline-flex; min-height: 46px; align-items: center; border: 1px solid var(--line);
      border-radius: 13px; background: white; cursor: pointer;
      box-shadow: 0 2px 7px rgba(23, 32, 51, .03);
    }
    .status-trigger:hover, .account-trigger:hover,
    .status-trigger[aria-expanded="true"], .account-trigger[aria-expanded="true"] {
      border-color: var(--line-strong); box-shadow: var(--shadow-small);
    }
    .status-trigger { min-width: 144px; padding: 6px 10px; gap: 9px; }
    .status-dot {
      width: 9px; height: 9px; flex: 0 0 auto; border: 2px solid white; border-radius: 50%;
      box-shadow: 0 0 0 1px rgba(23,32,51,.12); background: var(--off);
    }
    .status-dot.live { background: var(--success); }
    .status-dot.break { background: #e5a124; }
    .status-dot.phone { background: var(--phone); }
    .status-dot.away { background: var(--away); }
    .status-dot.off { background: var(--off); }
    .status-copy, .account-copy { display: grid; min-width: 0; flex: 1; text-align: left; }
    .status-copy small, .account-copy small { color: var(--muted); font-size: 10px; font-weight: 650; line-height: 1.1; }
    .status-copy strong { font-size: 13px; line-height: 1.25; }
    .chevron { width: 16px; height: 16px; color: #788395; transition: transform 130ms ease; }
    [aria-expanded="true"] .chevron { transform: rotate(180deg); }

    .account-trigger { min-width: 206px; padding: 6px 9px; gap: 9px; }
    .avatar {
      display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center;
      border-radius: 10px; background: var(--accent); color: white; font-size: 11px;
      font-weight: 850; box-shadow: 0 5px 12px rgba(255,107,26,.18);
    }
    .account-copy strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }

    .popover {
      position: absolute; z-index: 200; top: calc(100% + 8px); right: 0; width: 260px;
      padding: 8px; border: 1px solid var(--line); border-radius: 15px;
      background: white; box-shadow: var(--shadow);
    }
    .status-popover { width: 236px; }
    .popover-title { padding: 8px 9px 6px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
    .menu-item {
      display: flex; width: 100%; min-height: 42px; align-items: center; gap: 10px;
      padding: 8px 10px; border: 0; border-radius: 10px; background: transparent;
      cursor: pointer; font-weight: 680; text-align: left; text-decoration: none;
    }
    .menu-item:hover { background: var(--soft); }
    .menu-item.selected { background: var(--accent-soft); color: var(--accent-hover); }
    .menu-item .check { width: 17px; height: 17px; margin-left: auto; }
    .menu-icon { width: 19px; height: 19px; color: #667085; }
    .menu-divider { height: 1px; margin: 6px 4px; background: var(--line); }
    .identity-block { display: grid; gap: 2px; padding: 8px 10px 11px; }
    .identity-block span { color: var(--muted); font-size: 12px; }
    .identity-block .impersonating-label { color: var(--accent-hover); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
    .signout { color: var(--danger); }
    .status-error { margin: 6px 7px 3px; color: var(--danger); font-size: 12px; }

    .mobile-nav-trigger { display: none; }
    .mobile-panel {
      display: none; padding: 10px 16px 16px; border-top: 1px solid var(--line); background: white;
    }
    .mobile-panel nav { display: grid; gap: 4px; }
.page { width: 100%; max-width: none; margin: 0; padding: 48px clamp(20px, 2vw, 38px) 80px; }
    .page-heading { margin-bottom: 26px; }
    .page-heading.split { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
    .eyebrow { margin: 0 0 6px; color: var(--accent-hover); font-size: 11px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
    h1, h2, h3, p { margin-top: 0; }
    h1 { margin-bottom: 7px; font-size: clamp(32px, 4vw, 48px); line-height: 1.05; letter-spacing: -.045em; }
    h2 { letter-spacing: -.025em; }
    .page-heading > div > p:last-child, .page-heading > p:last-child { max-width: 680px; margin-bottom: 0; color: var(--muted); font-size: 16px; }

    .home-panel {
      min-height: 410px; padding: 34px; border: 1px solid var(--line); border-radius: 20px;
      background: white; box-shadow: 0 10px 28px rgba(23,32,51,.05);
    }
    .home-panel-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
    .ready-pill {
      display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px;
      border-radius: 999px; background: var(--success-soft); color: var(--success);
      font-size: 12px; font-weight: 750;
    }
    .ready-pill::before { width: 7px; height: 7px; border-radius: 50%; background: var(--success); content: ""; }
    .home-panel h2 { margin: 64px 0 8px; font-size: 28px; }
    .home-panel p { max-width: 580px; color: var(--muted); }

    .settings-tabs { display: flex; gap: 6px; margin-bottom: 22px; overflow-x: auto; border-bottom: 1px solid var(--line); }
    .settings-tab { display: inline-flex; flex: 0 0 auto; padding: 10px 13px 12px; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 760; text-decoration: none; }
    .settings-tab:hover { color: var(--ink); }
    .settings-tab[aria-selected="true"] { border-bottom-color: var(--accent); color: var(--accent-hover); }
    .settings-tab:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; border-radius: 6px 6px 0 0; }
    .settings-grid { display: grid; gap: 18px; }
    .settings-card, .users-card {
      overflow: hidden; border: 1px solid var(--line); border-radius: 18px;
      background: white; box-shadow: 0 8px 24px rgba(23,32,51,.045);
    }
    .settings-card-head, .users-card-head {
      display: flex; justify-content: space-between; gap: 20px; padding: 22px 24px 18px;
      border-bottom: 1px solid var(--line);
    }
    .settings-card-head h2, .users-card-head h2 { margin-bottom: 4px; font-size: 21px; }
    .settings-card-head p, .users-card-head p { margin-bottom: 0; color: var(--muted); }
    .themes-foundation-hero { background: linear-gradient(135deg,#fff 0%,#fffaf7 58%,#fff2ea 100%); }
    .themes-foundation-body { display: flex; align-items: center; gap: 18px; padding: 24px; }
    .themes-foundation-body strong { display: block; margin-bottom: 5px; font-size: 16px; }
    .themes-foundation-body p { max-width: 680px; margin: 0; color: var(--muted); line-height: 1.55; }
    .themes-foundation-body small { display: block; margin-top: 10px; color: #667085; font-size: 10px; font-weight: 750; letter-spacing: .02em; }
    .themes-foundation-mark { display: flex; width: 70px; height: 70px; flex: 0 0 70px; align-items: flex-end; justify-content: center; gap: 5px; padding: 17px; border: 1px solid #ffd8c5; border-radius: 20px; background: #fff; box-shadow: 0 10px 24px rgba(255,95,31,.10); }
    .themes-foundation-mark i { width: 9px; border-radius: 999px; background: var(--accent); }
    .themes-foundation-mark i:nth-child(1) { height: 22px; opacity: .38; }
    .themes-foundation-mark i:nth-child(2) { height: 36px; opacity: .72; }
    .themes-foundation-mark i:nth-child(3) { height: 28px; }
    .themes-message { margin: 0; padding: 12px 14px; border: 1px solid #b7ebcd; border-radius: 12px; background: #ecfdf3; color: #067647; font-size: 13px; font-weight: 700; }
    .themes-message.error { border-color: #fecaca; background: #fff1f2; color: #b42318; }
    .theme-catalog { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
    .theme-catalog-card { display: grid; min-height: 276px; grid-template-rows: auto 1fr auto; }
    .theme-catalog-card.current { border-color: #ffb28d; box-shadow: 0 12px 30px rgba(255,95,31,.09); }
    .theme-catalog-card > header { display: flex; justify-content: space-between; gap: 18px; padding: 22px 22px 16px; border-bottom: 1px solid var(--line); }
    .theme-catalog-card h3 { margin: 10px 0 5px; font-size: 21px; }
    .theme-catalog-card p { margin: 0; color: var(--muted); line-height: 1.5; }
    .theme-status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 999px; background: #ecfdf3; color: #067647; font-size: 10px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
    .theme-status.pending { background: #fff7ed; color: #c2410c; }
    .theme-status::before { width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: ""; }
    .theme-version { color: var(--muted); font-size: 11px; font-weight: 800; }
    .theme-capabilities { padding: 18px 22px; }
    .theme-capabilities strong { font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
    .theme-capabilities ul { display: flex; flex-wrap: wrap; gap: 7px; margin: 11px 0 0; padding: 0; list-style: none; }
    .theme-capabilities li { padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); color: #475467; font-size: 11px; font-weight: 700; text-transform: capitalize; }
    .theme-catalog-card > footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 22px; border-top: 1px solid var(--line); }
    .theme-catalog-card > footer span { color: var(--muted); font-size: 11px; font-weight: 700; }
    .theme-catalog-loading { grid-column: 1/-1; display: grid; gap: 5px; padding: 28px; color: var(--muted); }
    .theme-catalog-loading strong { color: var(--ink); }
    @media(max-width:760px){.theme-catalog{grid-template-columns:1fr}.themes-foundation-body{align-items:flex-start;flex-direction:column}.themes-foundation-mark{width:58px;height:58px;flex-basis:58px;padding:13px}.theme-catalog-card>footer{align-items:flex-start;flex-direction:column}.theme-catalog-card>footer .button{width:100%}}
    .side-label, .summary-pill {
      height: fit-content; padding: 5px 8px; border-radius: 999px; background: var(--soft);
      color: var(--muted); font-size: 11px; font-weight: 750;
    }
    .layout-list { display: grid; }
    .layout-row {
      display: grid; min-height: 78px; padding: 14px 20px;
      grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 14px;
    }
    .layout-row + .layout-row { border-top: 1px solid var(--line); }
    .row-copy { display: grid; gap: 2px; }
    .row-copy strong { font-size: 14px; }
    .row-copy span { color: var(--muted); font-size: 12px; }
    .toggle { position: relative; display: inline-flex; }
    .toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; }
    .toggle-ui { position: relative; display: block; width: 42px; height: 24px; border-radius: 999px; background: #d0d5dd; cursor: pointer; transition: background 130ms ease; }
    .toggle-ui::after { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: white; box-shadow: 0 2px 5px rgba(23,32,51,.2); content: ""; transition: transform 130ms ease; }
    .toggle input:checked + .toggle-ui { background: var(--accent); }
    .toggle input:checked + .toggle-ui::after { transform: translateX(18px); }
    .move-controls { display: inline-flex; gap: 6px; }
    .move-button { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: white; cursor: pointer; }
    .move-button:hover:not(:disabled) { border-color: var(--line-strong); background: var(--soft); }
    .move-button:disabled { cursor: not-allowed; opacity: .38; }
    .move-button svg { width: 15px; height: 15px; }
    .settings-actions {
      display: flex; align-items: center; justify-content: space-between; gap: 16px;
      padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px;
      background: white; box-shadow: 0 8px 24px rgba(23,32,51,.045);
    }
    .save-message { margin: 0; color: var(--success); font-size: 13px; font-weight: 700; }
    .action-buttons { display: flex; margin-left: auto; gap: 8px; }
    .button {
      display: inline-flex; min-height: 42px; align-items: center; justify-content: center;
      padding: 9px 15px; border-radius: 10px; cursor: pointer; font-weight: 760;
      text-decoration: none;
    }
    .button:disabled { cursor: not-allowed; opacity: .45; }
    .button-secondary { border: 1px solid var(--line); background: white; }
    .button-secondary:hover:not(:disabled) { background: var(--soft); }
    .button-primary { border: 1px solid var(--accent); background: var(--accent); color: white; box-shadow: 0 7px 14px rgba(255,107,26,.18); }
    .button-primary:hover:not(:disabled) { background: var(--accent-hover); }

.system-access-state {
  display: grid;
  min-height: 55vh;
  place-content: center;
  justify-items: start;
  max-width: 560px;
}
.system-access-state h1 { margin: 0; font-size: clamp(32px, 5vw, 52px); letter-spacing: -.045em; }
.system-access-state > p:last-child { margin: 10px 0 0; color: var(--muted); }
.impersonation-banner {
      display: flex; align-items: center; justify-content: space-between; gap: 16px;
      margin-bottom: 18px; padding: 13px 16px; border: 1px solid #ffd0b5;
      border-radius: 13px; background: var(--accent-soft); color: #8d3f12;
    }
    .impersonation-banner strong { color: var(--accent-hover); }
    .impersonation-banner .button { min-height: 36px; padding: 7px 11px; background: white; }

    .users-summary { display: flex; flex-wrap: wrap; gap: 8px; }
    .summary-pill.active { background: var(--success-soft); color: var(--success); }
    .summary-pill.removed { background: var(--danger-soft); color: var(--danger); }
    .table-scroll { overflow-x: auto; }
    .users-table { width: 100%; min-width: 980px; border-collapse: collapse; }
    .users-table th, .users-table td { padding: 15px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
    .users-table th { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
    .users-table tbody tr:last-child td { border-bottom: 0; }
    .users-table tbody tr:hover { background: #fcfcfd; }
    .users-table tbody tr.removed-row { background: #fafafa; color: #7b8492; }
    .user-cell { display: flex; min-width: 230px; align-items: center; gap: 11px; }
    .user-avatar {
      display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center;
      border-radius: 11px; background: #eff2f7; color: #465166; font-size: 11px; font-weight: 850;
    }
    .user-identity { display: grid; gap: 2px; min-width: 0; }
    .user-identity strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .primary-email { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
    .canonical-pill {
      padding: 2px 5px; border-radius: 999px; background: var(--blue-soft);
      color: #3168b5; font-size: 9px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase;
    }
    .stacked-cell { display: grid; gap: 2px; min-width: 130px; }
    .stacked-cell span { color: var(--muted); font-size: 12px; }
    .account-state {
      display: inline-flex; width: fit-content; align-items: center; gap: 6px; padding: 5px 8px;
      border-radius: 999px; background: var(--success-soft); color: var(--success);
      font-size: 11px; font-weight: 780;
    }
    .account-state::before { width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: ""; }
    .account-state.removed { background: var(--danger-soft); color: var(--danger); }
    .user-actions { display: flex; min-width: 230px; justify-content: flex-end; gap: 7px; }
    .small-button {
      min-height: 34px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px;
      background: white; cursor: pointer; font-size: 12px; font-weight: 740;
    }
    .small-button:hover:not(:disabled) { border-color: var(--line-strong); background: var(--soft); }
    .small-button:disabled { cursor: not-allowed; opacity: .38; }
    .small-button.danger { color: var(--danger); }
    .small-button.restore { border-color: #b9dfcd; background: var(--success-soft); color: var(--success); }
    .empty-users { padding: 45px 24px; color: var(--muted); text-align: center; }

    .modal-backdrop {
      position: fixed; z-index: 500; inset: 0; display: grid; place-items: center;
      padding: 24px; background: rgba(18, 25, 38, .52); backdrop-filter: blur(4px);
    }
    .modal {
      width: min(100%, 860px); max-height: calc(100vh - 48px); overflow: auto;
      border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: 0 24px 70px rgba(12, 18, 30, .28);
    }
    .modal-header {
      position: sticky; z-index: 2; top: 0; display: flex; align-items: flex-start;
      justify-content: space-between; gap: 20px; padding: 22px 24px 18px;
      border-bottom: 1px solid var(--line); background: white;
    }
    .modal-header h2 { margin-bottom: 3px; font-size: 24px; }
    .modal-header p { margin-bottom: 0; color: var(--muted); }
    .icon-button {
      display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center;
      border: 1px solid var(--line); border-radius: 10px; background: white; cursor: pointer;
    }
    .icon-button:hover { background: var(--soft); }
    .icon-button svg { width: 18px; height: 18px; }
    .modal-body { display: grid; gap: 22px; padding: 22px 24px; }
    .form-section { display: grid; gap: 14px; }
    .form-section + .form-section { padding-top: 20px; border-top: 1px solid var(--line); }
    .form-section-title h3 { margin-bottom: 2px; font-size: 16px; }
    .form-section-title p { margin-bottom: 0; color: var(--muted); font-size: 12px; }
    .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
    .field { display: grid; align-content: start; gap: 6px; }
    .field.full { grid-column: 1 / -1; }
    .field label, .group-label { font-size: 12px; font-weight: 780; }
    .field input, .field select {
      width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid var(--line-strong);
      border-radius: 10px; background: white; color: var(--ink);
    }
    .field input:focus, .field select:focus { border-color: var(--accent); outline: 3px solid rgba(255,107,26,.12); }
    .field-help { color: var(--muted); font-size: 11px; }
    .linked-email-identities { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
    .linked-email-identities > .field-label { color: var(--text); font-size: 12px; font-weight: 800; }
    .linked-email-list { display: grid; gap: 7px; }
    .linked-email-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: white; }
    .linked-email-item > span:first-child { display: grid; min-width: 0; gap: 2px; }
    .linked-email-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
    .linked-email-item small { color: var(--muted); font-size: 10px; }
    .linked-email-state { flex: 0 0 auto; padding: 4px 7px; border-radius: 999px; font-size: 9px; font-weight: 800; }
    .linked-email-state.primary { background: var(--success-soft); color: var(--success); }
    .linked-email-state.history { background: #eef2f7; color: #5f6b7c; }
    .field-error { color: var(--danger); font-size: 11px; }
    .days-grid { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 7px; }
    .day-check { position: relative; }
    .day-check input { position: absolute; opacity: 0; }
    .day-check span {
      display: grid; min-height: 40px; place-items: center; border: 1px solid var(--line);
      border-radius: 9px; background: white; cursor: pointer; font-size: 11px; font-weight: 760;
    }
    .day-check input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-hover); }
    .day-check input:focus-visible + span { outline: 3px solid rgba(255,107,26,.28); outline-offset: 2px; }
    .day-check input:disabled + span { cursor: not-allowed; opacity: .56; background: #f5f7fa; color: var(--muted); }
    .user-schedule-effective-date { max-width: 360px; margin: 12px 0 14px; }
    .password-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
    .sso-row {
      display: flex; align-items: flex-start; gap: 10px; padding: 12px;
      border: 1px solid var(--line); border-radius: 11px; background: var(--soft);
    }
    .sso-row input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--accent); }
    .sso-copy { display: grid; gap: 1px; }
    .sso-copy strong { font-size: 13px; }
    .sso-copy span { color: var(--muted); font-size: 11px; }
    .unlock-account-row {
      grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px 16px;
      padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--soft);
    }
    .unlock-account-copy { display: grid; gap: 2px; }
    .unlock-account-copy strong { font-size: 13px; }
    .unlock-account-copy span { color: var(--muted); font-size: 11px; }
    .unlock-account-status { grid-column: 1 / -1; color: var(--success); font-size: 11px; font-weight: 760; }
    .unlock-account-status.error { color: var(--danger); }
    .modal-footer {
      position: sticky; z-index: 2; bottom: 0; display: flex; align-items: center;
      justify-content: space-between; gap: 14px; padding: 16px 24px;
      border-top: 1px solid var(--line); background: white;
    }
    .modal-message { margin: 0; color: var(--danger); font-size: 12px; font-weight: 680; }
    .modal-actions { display: flex; margin-left: auto; gap: 8px; }
    .user-save-feedback { display: grid; min-width: min(420px, 50vw); gap: 7px; }
    .user-save-progress { display: grid; gap: 7px; }
    .user-save-progress-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; color: #475467; font-size: 11px; }
    .user-save-progress-head strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .user-save-progress-head span { flex: 0 0 auto; color: var(--accent-hover); font-weight: 850; }
    .user-save-progress-track { height: 9px; overflow: hidden; border-radius: 999px; background: #edf0f4; }
    .user-save-progress-bar { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--accent),#ff9358); transition: width .24s ease; }
.permissions-layout {
  display: grid;
  grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}
.roles-card,
.role-editor-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  box-shadow: var(--shadow);
}
.roles-card { overflow: hidden; }
.roles-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}
.roles-card-head h2,
.role-editor-head h2 { margin: 0; font-size: 18px; }
.roles-card-head p,
.role-editor-head p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.compact-button { min-height: 36px; padding: 7px 11px; font-size: 12px; white-space: nowrap; }
.role-list { display: grid; padding: 8px; gap: 4px; }
.role-list-item {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
.role-list-item:hover { background: var(--soft); }
.role-list-item.selected { border-color: #ffd3bb; background: var(--accent-soft); }
.role-list-copy { display: grid; min-width: 0; gap: 2px; }
.role-list-copy strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.role-list-copy small { color: var(--muted); font-size: 11px; }
.role-kind {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}
.role-kind.custom { background: #eaf7f0; color: #2f7d5b; }
.role-editor-card { min-height: 460px; overflow: hidden; }
.role-editor-empty {
  display: grid;
  min-height: 460px;
  place-content: center;
  justify-items: center;
  padding: 40px;
  text-align: center;
}
.role-editor-empty h2 { margin-bottom: 4px; }
.role-editor-empty p { margin: 0; color: var(--muted); }
.role-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--line);
}
.permission-count {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}
.role-editor-body { display: grid; gap: 20px; padding: 20px 22px 22px; }
.role-readonly-note,
.page-message {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #ead49f;
  border-radius: 10px;
  background: var(--warning-soft);
  color: var(--warning);
  font-size: 12px;
}
.page-message { border-color: #efbebe; background: var(--danger-soft); color: var(--danger); }
.role-fields { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(260px, 1.4fr); gap: 14px; }
.role-fields textarea {
  width: 100%;
  padding: 10px 11px;
  resize: vertical;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  font: inherit;
}
.role-fields textarea:focus { border-color: var(--accent); outline: 3px solid rgba(255,107,26,.12); }
.permission-groups { display: grid; gap: 14px; }
.permission-group {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
}
.permission-group > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}
.permission-group h3 { margin: 0; font-size: 13px; }
.permission-group header span { color: var(--muted); font-size: 10px; font-weight: 750; }
.permission-options { display: grid; }
.permission-option {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0,1fr);
  align-items: start;
  gap: 10px;
  padding: 12px 13px;
  cursor: pointer;
}
.permission-option + .permission-option { border-top: 1px solid var(--line); }
.permission-option:hover { background: #fcfcfd; }
.permission-option input { position: absolute; opacity: 0; }
.permission-check-ui {
  display: grid;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: white;
}
.permission-option input:checked + .permission-check-ui { border-color: var(--accent); background: var(--accent); }
.permission-option input:checked + .permission-check-ui::after {
  width: 8px;
  height: 4px;
  transform: translateY(-1px) rotate(-45deg);
  border-bottom: 2px solid white;
  border-left: 2px solid white;
  content: '';
}
.permission-option input:focus-visible + .permission-check-ui { outline: 3px solid rgba(255,107,26,.25); outline-offset: 2px; }
.permission-option input:disabled ~ * { cursor: not-allowed; opacity: .62; }
.permission-copy { display: grid; gap: 2px; }
.permission-copy strong { font-size: 12px; }
.permission-copy small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.role-editor-footer {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding: 13px 22px;
  border-top: 1px solid var(--line);
  background: white;
}
.role-save-message { margin: 0 auto 0 0; font-size: 12px; font-weight: 700; }
.role-save-message.success { color: var(--success); }
.role-save-message.error { color: var(--danger); }
.edit-permission-note { margin: 4px 0 0; color: var(--warning); font-size: 11px; }

@media (max-width: 840px) {
  .permissions-layout { grid-template-columns: 1fr; }
  .role-fields { grid-template-columns: 1fr; }
  .role-editor-card { min-height: 0; }
  .role-editor-empty { min-height: 260px; }
}
@media (max-width: 560px) {
  .roles-card-head { align-items: center; }
  .role-editor-head { display: grid; }
  .permission-count { width: fit-content; }
  .permission-option { padding: 11px; }
}
.planning-tabs {
  display: flex;
  width: fit-content;
  gap: 4px;
  margin: -4px 0 20px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  box-shadow: var(--shadow);
}
.planning-tab {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.planning-tab[aria-selected="true"] { background: var(--accent); color: white; }
.planning-tab:disabled { cursor: not-allowed; opacity: .58; }
.tab-next { padding: 2px 5px; border-radius: 999px; background: var(--soft); color: var(--muted); font-size: 8px; text-transform: uppercase; }
.planning-tab[aria-selected="true"] .tab-next { background: rgba(255,255,255,.18); color: white; }
.forecast-stack { display: grid; gap: 18px; }
.projection-control-card { border-color: #cbdcf7; background: linear-gradient(135deg,#fff 0%,#f7faff 100%); }
.projection-control-card .forecast-card-head { align-items: center; }
.projection-control-card .eyebrow { margin: 0 0 5px; color: #3168b5; }
.projection-toggle { display: flex; min-width: 310px; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid #cbdcf7; border-radius: 12px; background: #fff; cursor: pointer; }
.projection-toggle input { width: 18px; height: 18px; flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--accent); }
.projection-toggle span { display: grid; gap: 2px; }
.projection-toggle strong { font-size: 12px; }
.projection-toggle small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.projection-control-body { display: grid; grid-template-columns: repeat(3,minmax(150px,1fr)) auto; align-items: stretch; gap: 10px; padding: 16px 20px 18px; }
.projection-health { display: grid; align-content: center; min-height: 74px; gap: 4px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.86); }
.projection-health > span { color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.projection-health strong { font-size: 16px; }
.projection-health small { color: var(--muted); font-size: 9px; line-height: 1.35; }
.projection-health.active { border-color: #b9dfcd; background: var(--success-soft); }
.projection-health.active strong { color: var(--success); }
.projection-actions { display: grid; align-content: center; gap: 8px; min-width: 185px; }
.projection-modal { width: min(960px,100%); }
.projection-results-modal { width: min(1320px,100%); }
.projection-method-note { padding: 13px 14px; border: 1px solid #cbdcf7; border-radius: 11px; background: #f7faff; }
.projection-method-note strong { font-size: 12px; }
.projection-method-note p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.projection-results-body { gap: 16px; }
.projection-results-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.projection-results-summary article { display: grid; gap: 3px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.projection-results-summary span { color: var(--muted); font-size: 8px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.projection-results-summary strong { font-size: 15px; }
.projection-table-scroll { max-height: min(52vh,560px); border: 1px solid var(--line); border-radius: 12px; }
.projection-table { width: 100%; min-width: 1020px; border-collapse: collapse; }
.projection-table th,.projection-table td { padding: 10px 11px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 10px; }
.projection-table thead th { position: sticky; z-index: 1; top: 0; background: var(--soft); color: var(--muted); font-size: 8px; letter-spacing: .04em; text-transform: uppercase; }
.projection-table tbody tr:last-child td { border-bottom: 0; }
.projection-table strong,.projection-table small { display: block; }
.projection-table small { margin-top: 2px; color: var(--muted); line-height: 1.35; }
.projection-table .projection-review-row { background: #fffaf0; }
.projection-table .projection-holiday-row .projection-final-cell strong { color: var(--accent); }
.projection-status-pill { display: inline-flex; width: fit-content; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 999px; background: var(--success-soft); color: var(--success); font-size: 8px; font-weight: 850; }
.projection-status-pill.review { background: var(--warning-soft); color: var(--warning); }
.projection-status-pill.manual { background: #eef2f7; color: #516071; }
.projection-week-editor { display: grid; gap: 14px; padding: 15px; border: 1px solid #cbdcf7; border-radius: 13px; background: #f8faff; }
.projection-week-editor > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.projection-week-editor h3 { margin: 0; font-size: 15px; }
.projection-week-editor header p:last-child { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.projection-week-editor > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.forecast-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  box-shadow: var(--shadow);
}
.forecast-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.forecast-card-head h2 { margin: 0; font-size: 17px; }
.forecast-card-head p { max-width: 720px; margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.forecast-card-body { padding: 18px 20px 20px; }
.forecast-input-grid { display: grid; grid-template-columns: 1.25fr repeat(4,minmax(135px,.75fr)); gap: 14px; }
.forecast-input-grid .field input { font-variant-numeric: tabular-nums; }
.forecast-readonly-note { margin: 0 20px 18px; padding: 10px 12px; border: 1px solid #ead49f; border-radius: 10px; background: var(--warning-soft); color: var(--warning); font-size: 12px; }
.formula-strip {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 1px;
  border-top: 1px solid var(--line);
  background: var(--line);
}
.formula-step { min-height: 86px; padding: 14px 16px; background: var(--soft); }
.formula-step span { color: var(--accent); font-size: 10px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.formula-step strong { display: block; margin-top: 5px; font-size: 12px; }
.formula-step small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.distribution-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.distribution-total { flex: 0 0 auto; padding: 5px 9px; border-radius: 999px; font-size: 10px; font-weight: 850; }
.distribution-total.valid, .hourly-distribution-table .valid { background: var(--success-soft); color: var(--success); }
.distribution-total.invalid, .hourly-distribution-table .invalid { background: var(--danger-soft); color: var(--danger); }
.day-distribution-grid { display: grid; grid-template-columns: repeat(7,minmax(100px,1fr)); gap: 10px; }
.day-percentage-field { display: grid; gap: 6px; }
.day-percentage-field > span { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.percentage-input, .matrix-percentage { position: relative; }
.percentage-input input, .matrix-percentage input {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: white;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.percentage-input input { min-height: 40px; padding: 8px 27px 8px 10px; }
.matrix-percentage input { min-height: 32px; padding: 5px 22px 5px 7px; font-size: 11px; }
.percentage-input span, .matrix-percentage span { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); color: var(--muted); font-size: 10px; pointer-events: none; }
.percentage-input input:focus, .matrix-percentage input:focus { border-color: var(--accent); outline: 3px solid rgba(255,107,26,.12); }
.matrix-scroll { overflow: auto; max-height: 610px; }
.hourly-distribution-table, .forecast-results-table { width: 100%; min-width: 900px; border-collapse: separate; border-spacing: 0; }
.hourly-distribution-table th, .hourly-distribution-table td, .forecast-results-table th, .forecast-results-table td { padding: 7px 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.hourly-distribution-table thead th, .forecast-results-table thead th { position: sticky; z-index: 3; top: 0; background: var(--soft); color: var(--muted); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.hourly-distribution-table tfoot th, .hourly-distribution-table tfoot td, .forecast-results-table tfoot th, .forecast-results-table tfoot td { position: sticky; z-index: 2; bottom: 0; background: var(--soft); font-size: 10px; }
.hour-column { position: sticky !important; z-index: 4 !important; left: 0; min-width: 92px; background: var(--soft) !important; text-align: left !important; }
.hour-column strong, .hour-column small { display: block; }
.hour-column small { color: var(--muted); font-size: 9px; font-weight: 600; }
.forecast-controls-footer { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line); background: white; }
.forecast-message { margin: 0 auto 0 0; font-size: 12px; font-weight: 750; }
.forecast-message.success { color: var(--success); }
.forecast-message.error { color: var(--danger); }
.forecast-results-empty { display: grid; min-height: 220px; place-content: center; justify-items: center; padding: 34px; text-align: center; }
.forecast-results-empty h3 { margin: 0; }
.forecast-results-empty p { max-width: 520px; margin: 5px 0 0; color: var(--muted); }
.forecast-summary-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.forecast-summary-card { padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.forecast-summary-card span { display: block; color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.forecast-summary-card strong { display: block; margin-top: 5px; font-size: 19px; }
.results-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.results-toolbar strong { font-size: 12px; }
.metric-switcher { display: flex; flex-wrap: wrap; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.metric-switcher button { min-height: 30px; padding: 5px 9px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; font-size: 10px; font-weight: 800; }
.metric-switcher button[aria-pressed="true"] { background: white; color: var(--ink); box-shadow: 0 2px 7px rgba(21,32,51,.08); }
.forecast-results-table td { font-size: 11px; font-variant-numeric: tabular-nums; }
.complete-forecast-export { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px; border-top: 1px solid var(--line); background: var(--soft); }
.complete-forecast-export strong { display: block; font-size: 13px; }
.complete-forecast-export p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.complete-forecast-export .button { flex: 0 0 auto; }
.csv-format-note { margin: 0; padding: 11px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
@media (max-width: 1000px) {
  .projection-control-body { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .projection-actions { grid-template-columns: 1fr 1fr; grid-column: 1 / -1; }
  .projection-results-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .forecast-input-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .forecast-input-grid .field:first-child { grid-column: 1 / -1; }
  .day-distribution-grid { grid-template-columns: repeat(4,minmax(100px,1fr)); }
  .formula-strip, .forecast-summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .planning-tabs { width: 100%; }
  .planning-tab { flex: 1; justify-content: center; }
  .forecast-card-head { display: grid; }
  .projection-toggle { min-width: 0; width: 100%; }
  .projection-control-body,.projection-results-summary { grid-template-columns: 1fr; }
  .projection-actions { grid-template-columns: 1fr; }
  .projection-week-editor > footer { align-items: stretch; flex-direction: column; }
  .projection-table-scroll { max-height: 58vh; border: 0; border-radius: 0; overflow: auto; }
  .projection-table { display: block; min-width: 0; }
  .projection-table thead { display: none; }
  .projection-table tbody { display: grid; gap: 10px; }
  .projection-table tr { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: white; }
  .projection-table th,.projection-table td { display: block; min-width: 0; padding: 8px; border: 0; }
  .projection-table td::before { display: block; margin-bottom: 4px; color: var(--muted); content: attr(data-label); font-size: 8px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
  .projection-table td:nth-child(1) { grid-column: 1 / -1; order: 1; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
  .projection-table td:nth-child(5) { grid-column: 1 / -1; order: 2; margin-top: 6px; border-radius: 9px; background: var(--soft); }
  .projection-table td:nth-child(6) { grid-column: 1 / -1; order: 3; padding: 11px 9px; }
  .projection-table td:nth-child(6) strong { font-size: 20px; }
  .projection-table td:nth-child(4) { order: 4; }
  .projection-table td:nth-child(7) { order: 5; }
  .projection-table td:nth-child(2) { order: 6; }
  .projection-table td:nth-child(3) { order: 7; }
  .projection-table td:nth-child(8) { grid-column: 1 / -1; order: 8; }
  .projection-table td:nth-child(8) .small-button { width: 100%; }
  .projection-table .projection-holiday-row { border-color: #ffd0b5; box-shadow: inset 3px 0 0 var(--accent); }
  .projection-table .projection-holiday-row td:nth-child(5) { background: var(--accent-soft); }
  .forecast-input-grid, .day-distribution-grid, .formula-strip, .forecast-summary-grid { grid-template-columns: 1fr; }
  .forecast-controls-footer, .results-toolbar, .complete-forecast-export { align-items: stretch; flex-direction: column; }
  .complete-forecast-export .button { width: 100%; }
  .forecast-message { margin: 0; }
  .distribution-actions .button { flex: 1; }
  .metric-switcher { width: 100%; }
  .metric-switcher button { flex: 1; }
}
.day-planner-stack { display: grid; gap: 18px; }
.day-plan-card { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: var(--shadow); }
.day-plan-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.day-plan-card-head h2 { margin: 0; font-size: 17px; }
.day-plan-card-head p { max-width: 760px; margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.day-plan-context-grid { display: grid; grid-template-columns: minmax(250px,300px) minmax(220px,1fr) repeat(2,minmax(190px,1fr)); align-items: start; gap: 14px; padding: 18px 20px; }
.day-plan-mini-calendar { padding: 9px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 3px 10px rgba(21,32,51,.05); }
.mini-calendar-header { display: grid; grid-template-columns: 30px minmax(0,1fr) 30px; align-items: center; gap: 5px; }
.mini-calendar-title { display: flex; min-width: 0; align-items: center; justify-content: center; gap: 6px; }
.mini-calendar-header strong { text-align: center; font-size: 12px; }
.mini-calendar-loading { display: inline-grid; width: 12px; height: 12px; flex: 0 0 12px; place-items: center; }
.mini-calendar-loading[hidden] { display: none; }
.mini-calendar-spinner { width: 10px; height: 10px; border: 2px solid rgba(255,102,26,.2); border-top-color: var(--accent); border-radius: 50%; animation: mini-calendar-spin .7s linear infinite; }
@keyframes mini-calendar-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .mini-calendar-spinner { animation-duration: 1.4s; } }
.mini-calendar-month-button { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); cursor: pointer; font-size: 20px; line-height: 1; }
.mini-calendar-month-button:hover { border-color: #b9d8ff; background: var(--accent-soft); color: var(--accent); }
.mini-calendar-weekdays,.mini-calendar-days { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); }
.mini-calendar-weekdays { margin-top: 7px; color: var(--muted); font-size: 7px; font-weight: 850; text-align: center; text-transform: uppercase; }
.mini-calendar-days { gap: 2px; margin-top: 3px; }
.mini-calendar-day { display: grid; min-width: 0; height: 27px; place-items: center; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--ink); cursor: pointer; font-size: 9px; font-weight: 750; }
.mini-calendar-day:hover { border-color: #b9d8ff; background: var(--accent-soft); color: var(--accent); }
.mini-calendar-day.outside-month { color: #a6afbd; }
.mini-calendar-day.today { border-color: #bfd3ec; }
.mini-calendar-day.has-gap:not(.selected) { border-color: rgba(201,52,58,.1); background: rgba(236,92,98,.14); color: #a62d35; }
.mini-calendar-day.has-gap:not(.selected):hover { border-color: rgba(201,52,58,.28); background: rgba(236,92,98,.2); color: #8f242b; }
.mini-calendar-day.coverage-unavailable:not(.selected) { border-color: #c8ced8; border-style: dashed; background: #f1f3f6; color: #667085; }
.mini-calendar-day.selected { border-color: var(--accent); background: var(--accent); color: white; box-shadow: 0 3px 8px rgba(255,102,26,.2); }
.mini-calendar-day.selected.has-gap { box-shadow: 0 0 0 2px rgba(201,52,58,.2),0 3px 8px rgba(255,102,26,.2); }
.mini-calendar-day.selected.coverage-unavailable { box-shadow: 0 0 0 2px rgba(102,112,133,.24),0 3px 8px rgba(255,102,26,.2); }
.day-plan-date-navigation { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin-top: 7px; }
.day-plan-date-navigation .button { width: 100%; white-space: nowrap; }
.day-plan-source { display: grid; align-content: center; min-height: 66px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--soft); }
.day-plan-source span { color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.day-plan-source strong { margin-top: 3px; font-size: 12px; }
.day-plan-source small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.day-plan-readonly,.forecast-missing-note { margin: 0 20px 18px; padding: 10px 12px; border-radius: 10px; font-size: 12px; }
.day-plan-readonly { border: 1px solid #ead49f; background: var(--warning-soft); color: var(--warning); }
.forecast-missing-note { border: 1px solid #bed3f3; background: #eef5ff; color: #315c99; }
.absence-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; padding: 16px 20px 20px; }
.absence-person { display: grid; min-width: 0; grid-template-columns: auto auto minmax(0,1fr); align-items: center; gap: 9px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 11px; background: white; cursor: pointer; }
.absence-person:hover { background: var(--soft); }
.absence-person.absent { border-color: #efbebe; background: var(--danger-soft); }
.absence-person input { width: 16px; height: 16px; accent-color: var(--accent); }
.absence-avatar,.timeline-person-avatar { display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 9px; font-weight: 850; }
.absence-avatar { width: 30px; height: 30px; }
.absence-person > span:last-child { display: grid; min-width: 0; }
.absence-person strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.absence-person small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.timeline-card { overflow: visible; }
.timeline-card-heading { border-radius: 16px 16px 0 0; }
.timeline-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 20px; border-bottom: 1px solid var(--line); background: var(--soft); }
.timeline-control-group { display: flex; flex-wrap: wrap; gap: 7px; }
.timeline-action-group { display: flex; align-items: center; gap: 10px; }
.overlap-lock-toggle { display: inline-flex; min-height: 34px; align-items: center; gap: 7px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); cursor: pointer; font-size: 10px; font-weight: 780; white-space: nowrap; }
.overlap-lock-toggle:hover { background: var(--accent-soft); }
.overlap-lock-toggle input { width: 14px; height: 14px; margin: 0; accent-color: var(--accent); }
.overlap-lock-toggle:has(input:checked) { border-color: #b9d8ff; background: #eef5ff; color: #245eaa; }
.overlap-lock-toggle:has(input:disabled) { cursor: default; opacity: .58; }
.timeline-legend { display: flex; flex-wrap: wrap; gap: 15px; padding: 10px 20px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 750; }
.timeline-legend span { display: inline-flex; align-items: center; gap: 6px; }
.timeline-legend i { width: 11px; height: 11px; border-radius: 3px; }
.timeline-legend i.shift { background: #4c8bea; }.timeline-legend i.lunch { background: #e9c94c; }.timeline-legend i.break { background: #ee8c3a; }.timeline-legend i.coverage { background: #48a979; }
.day-plan-summary-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; padding: 13px 20px; border-bottom: 1px solid var(--line); }
.day-plan-summary-grid > div { padding: 10px 11px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.day-plan-summary-grid span { display: block; color: var(--muted); font-size: 8px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.day-plan-summary-grid strong { display: block; margin-top: 3px; font-size: 15px; }
.day-plan-message { margin: 0; padding: 10px 20px; border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 750; }
.day-plan-message.success { background: var(--success-soft); color: var(--success); }.day-plan-message.updating { background: var(--warning-soft); color: var(--warning); }.day-plan-message.error { background: var(--danger-soft); color: var(--danger); }
.timeline-scroll { overflow: auto; max-height: 720px; border-radius: 0 0 16px 16px; scrollbar-gutter: stable; }
.timeline-canvas { width: 100%; min-width: 0; min-height: 300px; background: white; }
.timeline-head { position: sticky; z-index: 8; top: 0; display: grid; grid-template-columns: 200px minmax(0,1fr); grid-template-rows: 78px 30px; width: 100%; min-width: 0; border-bottom: 1px solid var(--line-strong); background: white; box-shadow: 0 5px 14px rgba(21,32,51,.06); }
.timeline-capacity-label,.timeline-ruler-label { position: sticky; z-index: 10; left: 0; display: grid; min-width: 0; align-content: center; padding: 0 10px; border-right: 1px solid var(--line); background: var(--soft); }
.timeline-capacity-label strong { font-size: 11px; }.timeline-capacity-label span { color: var(--muted); font-size: 9px; }
.timeline-ruler-label { color: var(--muted); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.timeline-capacity-grid { display: grid; min-width: 0; grid-template-columns: repeat(24,minmax(0,1fr)); }
.capacity-hour { display: grid; min-width: 0; place-content: center; gap: 1px; overflow: hidden; border-right: 1px solid var(--line); text-align: center; }
.capacity-hour strong { font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }.capacity-hour span { color: var(--muted); font-size: 9px; white-space: nowrap; }
.capacity-variance { font-size: 11px; font-style: normal; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1.1; white-space: nowrap; }
.capacity-variance.negative { color: var(--danger); }.capacity-variance.balanced { color: var(--success); }.capacity-variance.positive { color: #245eaa; }
.capacity-hour.under { background: var(--danger-soft); color: var(--danger); }.capacity-hour.met { background: var(--success-soft); color: var(--success); }.capacity-hour.over { background: #eef5ff; color: #315c99; }.capacity-hour.dst-skipped { background: repeating-linear-gradient(135deg,#f2f3f6,#f2f3f6 5px,#e5e8ee 5px,#e5e8ee 10px); color: var(--muted); }
.timeline-ruler { position: relative; background: var(--soft); }
.timeline-ruler span { position: absolute; top: 6px; transform: translateX(-50%); color: var(--muted); font-size: 7px; font-variant-numeric: tabular-nums; }
.timeline-ruler span:first-child { transform: none; }.timeline-ruler span:last-child { transform: translateX(-100%); }
.timeline-body { display: grid; }
.timeline-group-row { position: sticky; z-index: 6; left: 0; display: flex; width: 100%; min-height: 29px; align-items: center; justify-content: space-between; padding: 5px 10px; border-bottom: 1px solid var(--line); background: #f0f3f8; }
.timeline-group-row.secondary { border-top: 5px solid var(--canvas); background: #f7f8fb; }
.timeline-group-row strong { font-size: 10px; }.timeline-group-row span { color: var(--muted); font-size: 9px; }
.timeline-person-row { display: grid; min-height: 54px; width: 100%; min-width: 0; grid-template-columns: 200px minmax(0,1fr); border-bottom: 1px solid var(--line); }
.timeline-person-cell { position: sticky; z-index: 5; left: 0; display: flex; min-width: 0; align-items: center; gap: 7px; padding: 5px 7px 5px 9px; border-right: 1px solid var(--line); background: white; }
.timeline-person-avatar { width: 27px; height: 27px; }
.timeline-person-copy { display: grid; min-width: 0; flex: 1; }
.timeline-person-copy strong,.timeline-person-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timeline-person-copy strong { font-size: 9px; }.timeline-person-copy small { color: var(--muted); font-size: 7px; }
.work-state { width: fit-content; margin-top: 1px; font-size: 7px; font-style: normal; font-weight: 800; }.work-state.working { color: var(--success); }.work-state.absent { color: var(--danger); }.work-state.off { color: var(--muted); }
.row-add-block { display: grid; width: 22px; height: 22px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--accent); cursor: pointer; font-size: 12px; font-weight: 850; }.row-add-block:hover { background: var(--accent-soft); }
.timeline-lane { position: relative; min-width: 0; min-height: 54px; overflow: hidden; background: white; }
.timeline-grid-lines { position: absolute; inset: 0; background-image: linear-gradient(to right,transparent calc(100% - 1px),var(--line) calc(100% - 1px)),linear-gradient(to right,transparent calc(100% - 1px),var(--line-strong) calc(100% - 1px)); background-repeat: repeat-x; background-size: 2.083333% 100%,4.166667% 100%; pointer-events: none; }
.timeline-original-position { position: absolute; z-index: 1; top: 6px; height: 42px; min-width: 8px; border: 2px dashed rgba(36,94,170,.32); border-radius: 6px; background: rgba(220,234,255,.2); pointer-events: none; }
.timeline-block { position: absolute; z-index: 2; top: 6px; display: grid; min-width: 8px; height: 42px; align-content: center; overflow: hidden; padding: 4px 7px; border: 1px solid rgba(21,32,51,.12); border-radius: 6px; cursor: pointer; text-align: left; box-shadow: 0 2px 6px rgba(21,32,51,.08); }
.timeline-block:disabled { cursor: default; opacity: 1; }.timeline-block span,.timeline-block small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.timeline-block span { font-size: 10px; font-weight: 850; }.timeline-block small { font-size: 9px; opacity: .82; }
.timeline-block.shift { background: #dceaff; color: #245eaa; }.timeline-block.lunch { z-index: 4; background: #fff5bd; color: #806915; }.timeline-block.break { z-index: 5; background: #ffe3cb; color: #a34f11; }.timeline-block.coverage { z-index: 3; background: #dff5e9; color: #24724d; }.timeline-block.pto { z-index: 6; background: #ffe4e8; color: #a92f42; border-color: #ef9ead; }.timeline-block.holiday { z-index: 6; background: #efe9ff; color: #5e43a5; border-color: #bca8ed; }.timeline-block.canonical-pto,.timeline-block.canonical-holiday { cursor: default; box-shadow: none; }
.empty-lane-label { position: absolute; top: 15px; left: 9px; color: var(--muted); font-size: 8px; }
.compact-modal { width: min(650px,calc(100vw - 28px)); }.block-modal-body { padding-bottom: 16px; }.block-timezone-note { margin: 12px 0 0; padding: 9px 10px; border-radius: 9px; background: var(--soft); color: var(--muted); font-size: 10px; }
.button-danger { border: 1px solid #efbebe; background: var(--danger-soft); color: var(--danger); }.button-danger:hover:not(:disabled) { background: #f9dddd; }
@media (max-width: 1000px) {
  .day-plan-context-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .day-plan-mini-calendar { grid-row: span 2; }
  .absence-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .day-plan-card-head,.timeline-controls { align-items: stretch; flex-direction: column; }
  .day-plan-context-grid,.absence-list,.day-plan-summary-grid { grid-template-columns: 1fr; }
  .day-plan-mini-calendar { grid-row: auto; }
  .timeline-control-group { display: grid; grid-template-columns: repeat(2,1fr); }
  .timeline-action-group { display: grid; grid-template-columns: 1fr; }
  .timeline-action-group .button,.overlap-lock-toggle { width: 100%; }
  .timeline-legend { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .day-plan-date-navigation { grid-template-columns: 1fr; }
}
/* Keep the 24-hour canvas inside its own scroller instead of widening the page. */
.day-planner-stack,.day-plan-card,.timeline-scroll { min-width: 0; width: 100%; max-width: 100%; }
.timeline-card { overflow: hidden; }

/* Fit all 24 desktop hours inside the planner while preserving the larger rows and labels. */
@media (min-width: 761px) {
  .timeline-scroll { overflow-x: hidden; }
  .timeline-canvas { width: 100%; min-width: 0; }
  .timeline-head,.timeline-person-row { grid-template-columns: 200px minmax(0,1fr); }
}

/* On narrow touch screens, preserve usable hit targets rather than compressing 48 half-hours into a few pixels. */
@media (max-width: 760px) {
  .timeline-scroll { overflow-x: auto; }
  .timeline-canvas { width: 1040px; min-width: 1040px; }
  .timeline-head,.timeline-person-row { grid-template-columns: 170px 870px; }
}

/* Direct timeline manipulation */
.timeline-block { touch-action: none; user-select: none; cursor: grab; }
.timeline-block:active,.timeline-block.is-interacting { cursor: grabbing; }
.timeline-block.is-interacting,.timeline-block.is-linked-interaction { opacity: .94; box-shadow: 0 8px 18px rgba(21,32,51,.2); }
.timeline-block.is-interacting,.timeline-block.is-linked-interaction { will-change: transform; }
.timeline-block.is-interacting { outline: 2px solid rgba(36,94,170,.28); outline-offset: 1px; }
.timeline-block.is-linked-interaction { box-shadow: 0 7px 17px rgba(36,94,170,.24); }
/* Elevate the whole linked drag cluster while preserving its internal semantic stack. */
.timeline-block.shift:is(.is-interacting,.is-linked-interaction) { z-index: 100; }
.timeline-block.coverage:is(.is-interacting,.is-linked-interaction) { z-index: 101; }
.timeline-block.lunch:is(.is-interacting,.is-linked-interaction) { z-index: 102; }
.timeline-block.break:is(.is-interacting,.is-linked-interaction) { z-index: 103; }
.timeline-block.is-resizing { cursor: ew-resize; }
.timeline-block-copy { display: grid; min-width: 0; pointer-events: none; }
.block-resize-handle { position: absolute; z-index: 3; top: 0; bottom: 0; width: 9px; cursor: ew-resize; touch-action: none; }
.block-resize-handle::after { position: absolute; top: 8px; bottom: 8px; width: 2px; border-radius: 999px; background: currentColor; content: ''; opacity: 0; transition: opacity 100ms ease; }
.block-resize-handle.start { left: 0; }
.block-resize-handle.start::after { left: 3px; }
.block-resize-handle.end { right: 0; }
.block-resize-handle.end::after { right: 3px; }
.timeline-block:hover .block-resize-handle::after,.timeline-block:focus-visible .block-resize-handle::after,.timeline-block.is-resizing .block-resize-handle::after { opacity: .55; }
.timeline-block:focus-visible { outline: 3px solid rgb(255 107 26 / 30%); outline-offset: 2px; }

/* Internal right-click menu */
.timeline-context-menu { position: fixed; z-index: 90; display: grid; min-width: 190px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 16px 38px rgba(21,32,51,.18); }
.timeline-context-menu[hidden] { display: none; }
.context-menu-item,.context-submenu button { display: flex; width: 100%; min-height: 34px; align-items: center; justify-content: space-between; gap: 14px; padding: 7px 9px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); cursor: pointer; font-size: 11px; font-weight: 750; text-align: left; }
.context-menu-item:hover,.context-menu-item:focus-visible,.context-submenu button:hover,.context-submenu button:focus-visible { background: var(--soft); outline: none; }
.context-menu-danger { color: var(--danger); }
.context-menu-danger:hover,.context-menu-danger:focus-visible { background: var(--danger-soft); }
.context-submenu-host { position: relative; }
.context-submenu { position: absolute; top: -6px; left: calc(100% + 5px); display: none; min-width: 156px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 16px 38px rgba(21,32,51,.18); }
.context-submenu-host:hover .context-submenu,.context-submenu-host:focus-within .context-submenu,.timeline-context-menu.submenu-open .context-submenu { display: grid; }
.timeline-context-menu.open-left .context-submenu { right: calc(100% + 5px); left: auto; }
.context-submenu button { justify-content: flex-start; }
.context-submenu i { width: 11px; height: 11px; flex: 0 0 auto; border-radius: 3px; }
.context-submenu i.shift { background: #4c8bea; }.context-submenu i.lunch { background: #e9c94c; }.context-submenu i.break { background: #ee8c3a; }.context-submenu i.coverage { background: #48a979; }
@media (max-width: 620px) {
  .timeline-context-menu { min-width: 176px; }
  .context-submenu { top: calc(100% + 4px); right: 0; left: auto; }
}
.workforce-calendar-page{width:100%}
.calendar-page-heading{align-items:center!important}
.calendar-month-controls{display:flex;align-items:center;gap:8px;padding:6px;border:1px solid var(--line);border-radius:13px;background:white;box-shadow:0 8px 22px rgba(23,32,51,.04)}
.calendar-month-controls strong{min-width:150px;text-align:center;font-size:14px}
.calendar-month-controls .button{min-width:38px;min-height:36px;padding:6px 10px}
.calendar-page-message,.requests-page-message{margin:0 0 14px;padding:11px 13px;border:1px solid #b9dfcd;border-radius:11px;background:var(--success-soft);color:var(--success);font-size:12px;font-weight:720}
.calendar-page-message.error,.requests-page-message.error{border-color:#f0c3c3;background:var(--danger-soft);color:var(--danger)}
.calendar-workspace{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(340px,.85fr);align-items:start;gap:18px}
.calendar-month-card,.calendar-day-panel{border:1px solid var(--line);border-radius:18px;background:white;box-shadow:0 9px 26px rgba(23,32,51,.05)}
.calendar-month-card{overflow:hidden}
.calendar-weekday-row,.calendar-month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.calendar-weekday-row{border-bottom:1px solid var(--line);background:var(--soft)}
.calendar-weekday-row span{padding:11px 10px;color:var(--muted);font-size:10px;font-weight:850;letter-spacing:.055em;text-align:center;text-transform:uppercase}
.calendar-month-grid{background:var(--line);gap:1px}
.calendar-day-cell{position:relative;min-height:128px;padding:10px;border:0;background:white;cursor:pointer;text-align:left;vertical-align:top}
.calendar-day-cell:hover{z-index:1;background:#fffaf7;box-shadow:inset 0 0 0 1px #ffcdb0}
.calendar-day-cell.selected{z-index:2;background:var(--accent-soft);box-shadow:inset 0 0 0 2px var(--accent)}
.calendar-day-cell.outside{background:#fafbfc;cursor:default}
.calendar-day-number-row{display:flex;align-items:center;justify-content:space-between;gap:8px}
.calendar-day-number{display:grid;width:26px;height:26px;place-items:center;border-radius:8px;font-size:12px;font-weight:850}
.calendar-day-cell.today .calendar-day-number{background:var(--ink);color:white}
.calendar-health-dot{width:8px;height:8px;border-radius:50%;background:var(--success)}
.calendar-health-dot.gaps{background:#d69b22}
.calendar-health-dot.unavailable{background:#98a2b3}
.calendar-day-counts{display:flex;flex-wrap:wrap;gap:4px;margin-top:7px}
.calendar-day-counts span{padding:3px 5px;border-radius:999px;background:var(--soft);color:var(--muted);font-size:9px;font-weight:780}
.calendar-day-counts .pto{background:var(--blue-soft);color:#3168b5}
.calendar-day-counts .pending{background:#fff5dd;color:#9a6814}
.calendar-day-counts .cover{background:var(--success-soft);color:var(--success)}
.calendar-day-pto-list{display:grid;gap:4px;margin-top:8px}
.calendar-day-pto-block{overflow:hidden;padding:5px 6px;border-left:3px solid #4a86e8;border-radius:7px;background:#edf4ff;color:#2f5f9f;font-size:9px;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}
.calendar-day-pto-block strong{font-weight:820}
.calendar-day-more{margin-top:4px;color:var(--muted);font-size:9px;font-weight:740}
.calendar-day-panel{position:sticky;top:86px;overflow:hidden}
.calendar-day-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:20px;border-bottom:1px solid var(--line)}
.calendar-day-panel-head h2{margin:0;font-size:24px}
.calendar-health-pill{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border-radius:999px;background:var(--success-soft);color:var(--success);font-size:11px;font-weight:820}
.calendar-health-pill::before{width:7px;height:7px;border-radius:50%;background:currentColor;content:""}
.calendar-health-pill.gaps{background:#fff5dd;color:#9a6814}
.calendar-health-pill.unavailable{background:#f2f4f7;color:#667085}
.calendar-detail-section{padding:18px 20px;border-bottom:1px solid var(--line)}
.calendar-detail-section>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
.calendar-detail-section h3,.coverage-simulation-card h3{margin:0 0 2px;font-size:15px}
.calendar-detail-section header p,.coverage-simulation-card header p{margin:0;color:var(--muted);font-size:11px;line-height:1.45}
.section-count{display:grid;min-width:27px;height:27px;place-items:center;border-radius:999px;background:var(--blue-soft);color:#3168b5;font-size:11px;font-weight:850}
.section-count.pending{background:#fff5dd;color:#9a6814}
.calendar-detail-list{display:grid;gap:9px}
.calendar-empty{padding:14px;border:1px dashed var(--line-strong);border-radius:11px;color:var(--muted);font-size:11px;text-align:center}
.calendar-item-card{display:grid;gap:9px;padding:12px;border:1px solid var(--line);border-radius:12px;background:#fcfcfd}
.calendar-item-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.calendar-item-person{display:grid;gap:1px}
.calendar-item-person strong{font-size:12px}
.calendar-item-person span{color:var(--muted);font-size:10px}
.calendar-item-time{display:inline-flex;width:fit-content;padding:4px 6px;border-radius:7px;background:white;color:#465166;font-size:10px;font-weight:720}
.calendar-item-reason{margin:0;color:var(--muted);font-size:10px}
.calendar-item-actions{display:flex;flex-wrap:wrap;gap:6px}
.calendar-item-actions .small-button{min-height:30px;padding:5px 8px;font-size:10px}
.calendar-item-actions .approve{border-color:#b9dfcd;background:var(--success-soft);color:var(--success)}
.calendar-item-actions .deny,.calendar-item-actions .revoke{color:var(--danger)}
.calendar-request-operation{display:grid;gap:6px;padding-top:2px}
.calendar-request-operation[hidden]{display:none}
.calendar-request-operation-head{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#667085;font-size:9px;font-weight:780}
.calendar-request-operation-head strong{color:var(--accent-hover)}
.calendar-request-operation-track{height:7px;overflow:hidden;border-radius:999px;background:#e9edf2}
.calendar-request-operation-track i{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--accent),#ff9358);transition:width .22s ease}
.calendar-request-operation.error .calendar-request-operation-head,.calendar-request-operation.error .calendar-request-operation-head strong{color:var(--danger)}
.calendar-request-operation.error .calendar-request-operation-track i{background:var(--danger)}
.cover-assignment-arrow{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:10px}
.cover-assignment-arrow strong{color:var(--ink)}
.coverage-simulation-card{display:grid;gap:14px;padding:18px 20px;background:#fafbfd}
.coverage-simulation-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.coverage-simulation-grid>div{display:grid;gap:3px;padding:10px;border:1px solid var(--line);border-radius:10px;background:white}
.coverage-simulation-grid span{color:var(--muted);font-size:9px;font-weight:800;letter-spacing:.045em;text-transform:uppercase}
.coverage-simulation-grid strong{font-size:21px}
.coverage-simulation-grid .gap strong{color:var(--danger)}
.coverage-simulation-grid .watch strong{color:#a66d15}
.coverage-simulation-grid .clear strong{color:var(--success)}
.field textarea{width:100%;padding:9px 11px;border:1px solid var(--line-strong);border-radius:10px;background:white;color:var(--ink);font:inherit;resize:vertical}
.field textarea:focus{border-color:var(--accent);outline:3px solid rgba(255,107,26,.12)}
.button-danger{border:1px solid #e6b4b4;background:var(--danger-soft);color:var(--danger)}
.button-danger:hover:not(:disabled){background:#f9dddd}
@media(max-width:1120px){.calendar-workspace{grid-template-columns:1fr}.calendar-day-panel{position:relative;top:auto}}
@media(max-width:760px){.calendar-month-card{overflow-x:auto}.calendar-weekday-row,.calendar-month-grid{min-width:720px}.calendar-page-heading{align-items:flex-start!important}.calendar-month-controls{width:100%;justify-content:space-between}.calendar-month-controls strong{min-width:0}.calendar-day-panel-head,.calendar-detail-section,.coverage-simulation-card{padding-left:16px;padding-right:16px}}
.requests-page{max-width:none}
.requests-page .page-heading{align-items:center;margin-bottom:24px}
.requests-page .page-heading h1{font-size:42px;letter-spacing:-.045em}
.requests-heading-actions{display:flex;align-items:center;gap:12px}
.requests-heading-actions .button{min-height:42px}
.requests-scope-button{border:1px solid var(--line);background:white;color:#344054;box-shadow:0 2px 7px rgba(23,32,51,.05)}
.requests-scope-button::before{width:7px;height:7px;border-radius:50%;background:#36a36f;content:""}
.requests-page-message{margin:0 0 16px;padding:11px 14px;border:1px solid #b9dfcd;border-radius:11px;background:var(--success-soft);color:var(--success);font-size:11px;font-weight:750}
.requests-page-message.error{border-color:#e6b4b4;background:var(--danger-soft);color:var(--danger)}
.requests-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}
.request-summary-card{display:grid;min-width:0;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px;min-height:106px;padding:18px;border:1px solid var(--line);border-radius:14px;background:white;color:var(--ink);box-shadow:0 5px 16px rgba(23,32,51,.04);text-align:left}
button.request-summary-card{font:inherit;cursor:pointer}.request-summary-card:hover{border-color:#c9d3df;box-shadow:0 7px 20px rgba(23,32,51,.065)}
.request-summary-icon{display:grid;width:50px;height:50px;place-items:center;border-radius:13px}
.request-summary-icon svg{width:27px;height:27px}.request-summary-card.pending .request-summary-icon{background:#fff3de;color:#f79009}.request-summary-card.approved .request-summary-icon{background:#e9f8f0;color:#12a05c}.request-summary-card.away .request-summary-icon{background:#eaf2ff;color:#2970ff}.request-summary-card.response .request-summary-icon{background:#f3ebff;color:#7f56d9}
.request-summary-copy{display:grid;gap:3px;min-width:0}.request-summary-copy>span{color:#526078;font-size:11px;font-weight:720}.request-summary-copy strong{font-size:24px;line-height:1.05;letter-spacing:-.025em}.request-summary-copy small{overflow:hidden;color:var(--muted);font-size:10px;text-overflow:ellipsis;white-space:nowrap}
.request-summary-card.pending .request-summary-copy small{color:#f05a1b}.request-summary-arrow{color:#718096;font-size:25px}
.requests-card{overflow:visible;margin-bottom:18px;border:1px solid var(--line);border-radius:16px;background:white;box-shadow:0 6px 20px rgba(23,32,51,.04)}
.requests-card-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px;border-bottom:1px solid var(--line)}
.requests-card-head h2{margin:0;font-size:18px}.requests-card-head p{margin:3px 0 0;color:var(--muted);font-size:11px}
.requests-card-title{display:grid;grid-template-columns:auto auto;align-items:center;justify-content:start;gap:0 8px}.requests-card-title p{grid-column:1/-1}
.requests-text-button,.requests-list-more{display:inline-flex;align-items:center;gap:7px;border:0;background:none;color:#2767c8;font:inherit;font-size:11px;font-weight:800;cursor:pointer}.requests-text-button svg{width:16px;height:16px}.requests-text-button:hover,.requests-list-more:hover{text-decoration:underline}
.personal-pending-list,.request-history-list{display:grid}
.request-pending-item{border-bottom:1px solid var(--line)}.request-pending-item:last-child{border-bottom:0}
.request-linked{position:relative;outline:3px solid rgba(46,115,218,.22);outline-offset:-3px;background:#f5f9ff}
.request-pending-row{display:grid;grid-template-columns:minmax(150px,1.15fr) minmax(150px,1fr) minmax(145px,1fr) minmax(150px,1.25fr) auto auto;align-items:center;gap:16px;padding:14px 20px}
.request-person-cell{display:flex;min-width:0;align-items:center;gap:10px}.request-person-cell>span:last-child{display:grid;min-width:0;gap:2px}.request-person-cell strong,.request-data-cell strong,.request-history-cell strong{overflow:hidden;font-size:11px;text-overflow:ellipsis}.request-person-cell small,.request-data-cell small,.request-history-cell small{color:var(--muted);font-size:9px}
.request-person-avatar{display:grid;flex:0 0 auto;width:34px;height:34px;place-items:center;overflow:hidden;border:1px solid #e2e7ee;border-radius:50%;background:#fff4eb;color:#344054;font-size:9px;font-weight:850;box-shadow:0 2px 5px rgba(23,32,51,.08)}.request-person-avatar img{width:100%;height:100%;object-fit:cover}
.request-data-cell{display:flex;min-width:0;align-items:flex-start;gap:8px}.request-data-cell>span:last-child{display:grid;min-width:0;gap:2px}.request-data-cell.reason strong{white-space:normal}.request-cell-icon{color:#738198;font-size:12px}
.request-submitted-pill{display:inline-flex;width:max-content;padding:5px 8px;border-radius:999px;background:#fff5dd;color:#9a6814;font-size:9px;font-weight:760;white-space:nowrap}
.request-pending-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px}.request-pending-actions .button{min-height:32px;padding:6px 10px;font-size:10px}.request-pending-actions .approve{border-color:#8fd4b1;background:#12a05c;color:white}.request-pending-actions .approve:hover{background:#0b8a4e}.request-pending-actions .deny,.request-pending-actions .recall{border-color:#efb0b0;background:#fff7f7;color:#c72b2b}.request-pending-actions .edit,.request-pending-actions .details{border-color:#d5dce5;background:white;color:#344054}
.request-pending-detail{display:grid;grid-template-columns:minmax(0,2fr) minmax(130px,.5fr);gap:12px;padding:14px 20px 16px;background:#fafbfd;border-top:1px solid var(--line)}.request-pending-detail>div:not(.request-event-list){display:grid;gap:3px}.request-pending-detail>div>span{color:var(--muted);font-size:9px;font-weight:800;text-transform:uppercase}.request-pending-detail>div>strong{font-size:11px}.request-pending-detail .request-event-list{grid-column:1/-1}
.request-pending-plan{grid-column:1/-1;display:flex!important;align-items:center;justify-content:space-between;gap:16px;padding:11px 12px;border:1px solid #cfe0fa;border-radius:10px;background:#f4f8ff}.request-pending-plan>span{display:grid;gap:3px}.request-pending-plan small{color:#4d6380;font-size:9px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}.request-pending-plan strong{color:#172b4d;font-size:11px}.request-pending-plan .plan{min-width:82px;border-color:#a9c7f5;background:#fff;color:#075dcc;font-weight:800}.request-pending-plan .plan:hover{border-color:#75a7ef;background:#eaf2ff}
.request-impact-strip{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;margin:0 20px 14px;padding:10px 12px;border:1px solid;border-radius:11px}.request-impact-strip.safe{border-color:#a9dec2;background:#effaf4;color:#087443}.request-impact-strip.risk{border-color:#efb0b0;background:#fff3f2;color:#b42318}.request-impact-strip.conflict{border-color:#e9c46a;background:var(--warning-soft);color:#8a5a08}.request-impact-strip.unavailable{border-color:#f1cc88;background:#fff9eb;color:#8a5a08}.request-impact-dot{display:grid;width:22px;height:22px;place-items:center;border-radius:50%;background:currentColor;color:white;font-size:11px;font-style:normal;font-weight:900}.request-impact-copy{display:grid;min-width:0;gap:2px}.request-impact-copy small{font-size:8px;font-weight:850;letter-spacing:.065em;text-transform:uppercase}.request-impact-copy strong{color:var(--ink);font-size:12px}.request-impact-copy em{overflow:hidden;color:currentColor;font-size:9px;font-style:normal;text-overflow:ellipsis;white-space:nowrap}.request-impact-button{min-height:30px;padding:5px 9px;border:1px solid currentColor;border-radius:8px;background:white;color:inherit;font:inherit;font-size:9px;font-weight:850;cursor:pointer}.request-impact-button:hover{box-shadow:0 2px 7px rgba(23,32,51,.09)}.request-pending-actions .approve.with-gaps{border-color:#d92d20;background:#d92d20}.request-pending-actions .approve.with-gaps:hover{background:#b42318}.request-pending-actions .approve.with-conflicts{border-color:#b7791f;background:#b7791f}.request-pending-actions .approve.with-conflicts:hover{background:#8a5a08}.request-pending-actions .approve.coverage-unknown{border-color:#b7791f;background:#b7791f}.request-pending-actions .approve.coverage-unknown:hover{background:#8a5a08}
.request-impact-detail{grid-column:1/-1;display:grid;gap:10px;padding:12px;border:1px solid var(--line);border-radius:11px;background:white}.request-impact-detail>header{display:flex;align-items:center;justify-content:space-between;gap:12px}.request-impact-detail>header span{color:var(--muted);font-size:9px;font-weight:850;letter-spacing:.06em;text-transform:uppercase}.request-impact-detail>header strong{font-size:12px}.request-impact-detail>p{margin:0;color:#526078;font-size:10px;line-height:1.5}.request-impact-detail.safe{border-color:#b9dfcd;background:#f7fcf9}.request-impact-detail.conflict{border-color:#e9c46a;background:#fffdf7}.request-impact-detail.risk{border-color:#efc3c0;background:#fffafa}.request-impact-detail.unavailable{border-color:#edd5a6;background:#fffdf7}.request-impact-unknown{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 10px;border:1px dashed #d8ad62;border-radius:8px;background:#fff9eb;color:#7a4d05;font-size:9px}.request-impact-unknown strong{font-size:9px;text-transform:uppercase}.request-impact-days{display:grid;gap:8px}.request-impact-day{display:grid;gap:8px;padding:10px;border:1px solid #edd1cf;border-radius:9px;background:white}.request-impact-day>header{display:flex;align-items:center;justify-content:space-between;gap:10px}.request-impact-day>header>span{display:grid;gap:2px}.request-impact-day>header strong{font-size:11px}.request-impact-day>header small{color:#b42318;font-size:9px;font-weight:750}.request-impact-day .button{min-height:30px;padding:5px 9px;font-size:9px}.request-impact-period{display:grid;grid-template-columns:minmax(130px,.45fr) minmax(0,1fr);align-items:center;gap:12px;padding:8px 10px;border-radius:8px;background:#fff3f2}.request-impact-period>span{display:grid;gap:2px}.request-impact-period strong{font-size:10px}.request-impact-period span small{color:#b42318;font-size:8px;font-weight:800;text-transform:uppercase}.request-impact-period>em{color:#526078;font-size:9px;font-style:normal}.request-impact-period>em small{color:var(--muted)}.request-impact-detail>footer{color:var(--muted);font-size:9px}.request-impact-conflicts{display:grid;gap:8px;padding:10px;border:1px solid #e9c46a;border-radius:9px;background:var(--warning-soft)}.request-impact-conflicts>header{display:flex;align-items:center;justify-content:space-between;gap:10px}.request-impact-conflicts>header span{color:#8a5a08;font-size:9px;font-weight:850;letter-spacing:.06em;text-transform:uppercase}.request-impact-conflicts>header strong{font-size:11px}.request-impact-conflicts>p{margin:0;color:#72520e;font-size:9px;line-height:1.45}.request-impact-conflicts>div{display:grid;gap:7px}.request-impact-conflict{display:grid;gap:7px;padding:9px;border:1px solid #ead9ad;border-radius:8px;background:white}.request-impact-conflict>header{display:flex;align-items:center;justify-content:space-between;gap:10px}.request-impact-conflict>header>span{display:grid;gap:2px}.request-impact-conflict>header strong{font-size:10px}.request-impact-conflict>header small{color:var(--muted);font-size:8px}
.requests-list-more{width:100%;justify-content:flex-start;padding:13px 20px;border-top:1px solid var(--line)}
.request-status-pill{display:inline-flex;width:fit-content;padding:5px 8px;border-radius:999px;font-size:9px;font-weight:830;text-transform:capitalize;white-space:nowrap}
.request-status-pill.pending{background:#fff5dd;color:#9a6814}.request-status-pill.approved{background:var(--success-soft);color:var(--success)}.request-status-pill.denied{background:var(--danger-soft);color:var(--danger)}.request-status-pill.revoked,.request-status-pill.recalled{background:#eef0f4;color:#5b6575}
.request-history-tools{display:flex;align-items:center;gap:9px}.request-history-search{display:flex;width:min(290px,32vw);min-height:38px;align-items:center;gap:8px;padding:0 11px;border:1px solid var(--line);border-radius:10px;background:white}.request-history-search svg{flex:0 0 auto;width:16px;height:16px;color:#718096}.request-history-search input{width:100%;border:0;outline:0;color:var(--ink);font:inherit;font-size:11px}.request-history-search input::placeholder{color:#98a2b3}
.request-filter-button{gap:7px;min-height:38px}.request-filter-button svg{width:16px;height:16px}
.request-history-filter-wrap{position:relative}.request-history-filter-menu{position:absolute;z-index:30;top:calc(100% + 7px);right:0;width:160px;padding:6px;border:1px solid var(--line);border-radius:11px;background:white;box-shadow:0 12px 30px rgba(23,32,51,.14)}.request-history-filter-menu button{width:100%;padding:9px 10px;border:0;border-radius:7px;background:transparent;color:#344054;font:inherit;font-size:10px;font-weight:720;text-align:left;cursor:pointer}.request-history-filter-menu button:hover,.request-history-filter-menu button.active{background:var(--accent-soft);color:#c94b10}
.request-history-columns,.request-history-summary{display:grid;grid-template-columns:minmax(145px,1.35fr) minmax(105px,.95fr) minmax(115px,1fr) minmax(60px,.58fr) minmax(120px,1.2fr) minmax(70px,.65fr) minmax(105px,.9fr) minmax(105px,.9fr) minmax(105px,.9fr) minmax(28px,auto);align-items:center;gap:12px;padding-left:20px;padding-right:20px}
.request-history-columns{min-height:36px;border-bottom:1px solid var(--line);background:#fbfcfd;color:#526078;font-size:9px;font-weight:800}
.request-history-item{border-bottom:1px solid var(--line)}.request-history-item:last-child{border-bottom:0}
.request-history-summary{min-height:58px;padding-top:10px;padding-bottom:10px;background:white}.request-history-summary:hover{background:#fcfcfd}
.request-history-cell{display:grid;min-width:0;gap:2px}.request-history-cell strong{font-weight:650;white-space:normal}.request-history-toggle{display:grid;width:28px;height:30px;place-items:center;border:0;border-radius:7px;background:transparent;color:#3b4b64;font-size:18px;cursor:pointer}.request-history-toggle:hover,.request-history-toggle[aria-expanded="true"]{background:#edf2f7}
.request-history-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px}.request-history-actions .button{min-height:30px;padding:5px 9px;font-size:9px}.request-history-actions .edit{border-color:#d5dce5;background:white;color:#344054}.request-history-actions .revoke{border-color:#efb0b0;background:#fff7f7;color:#c72b2b}
.request-history-detail{display:grid;gap:14px;padding:16px 20px 18px;background:#fafbfd;border-top:1px solid var(--line)}
.request-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.request-detail-grid>div{display:grid;gap:3px;padding:10px;border:1px solid var(--line);border-radius:10px;background:white}.request-detail-grid span{color:var(--muted);font-size:9px;font-weight:800;letter-spacing:.04em;text-transform:uppercase}.request-detail-grid strong{font-size:11px}
.request-event-list{display:grid;gap:7px}.request-event-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:9px}.request-event-dot{width:8px;height:8px;margin-top:4px;border-radius:50%;background:var(--accent)}.request-event-copy{display:grid;gap:1px}.request-event-copy strong{font-size:10px;text-transform:capitalize}.request-event-copy span{color:var(--muted);font-size:10px}.request-event-row time{color:var(--muted);font-size:9px}
.history-page-size{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:10px;font-weight:760}.history-page-size select{min-height:34px;padding:6px 28px 6px 9px;border:1px solid var(--line);border-radius:9px;background:white}
.request-history-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 18px;background:#fafbfd;color:var(--muted);font-size:10px}.request-history-pagination-controls{display:flex;align-items:center;gap:9px}.request-history-pagination .button{width:34px;min-height:34px;padding:0}
.requests-empty{padding:28px 20px;color:var(--muted);font-size:12px;text-align:center}
.request-time-off-modal{width:min(100%,720px)}
.request-kind-field{display:grid;gap:8px}.field-label{color:#344054;font-size:11px;font-weight:800}
.request-kind-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.request-kind-grid label{position:relative;cursor:pointer}.request-kind-grid input{position:absolute;opacity:0;pointer-events:none}.request-kind-grid label>span{display:grid;gap:2px;min-height:62px;padding:12px;border:1px solid var(--line-strong);border-radius:11px;background:white}.request-kind-grid strong{font-size:12px}.request-kind-grid small{color:var(--muted);font-size:10px}.request-kind-grid input:checked+span{border-color:var(--accent);background:var(--accent-soft);box-shadow:0 0 0 2px rgba(255,107,26,.11)}.request-kind-grid input:focus-visible+span{outline:3px solid rgba(255,107,26,.18)}
.request-time-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.request-shift-autofill{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 10px;align-items:end;padding:12px;border:1px solid #cfe0f7;border-radius:12px;background:#f4f8ff}.request-shift-autofill .button{min-height:42px}.request-shift-autofill small{grid-column:1/-1;color:var(--muted);font-size:10px}
@media(max-width:1280px){.requests-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.request-pending-row{grid-template-columns:minmax(155px,1.1fr) minmax(145px,1fr) minmax(145px,1fr) minmax(170px,1.2fr)}.request-submitted-pill{grid-column:2}.request-pending-actions{grid-column:3/-1}.request-history-columns{display:none}.request-history-summary{grid-template-columns:minmax(150px,1.4fr) minmax(115px,1fr) minmax(120px,1fr) minmax(70px,.7fr) minmax(130px,1.2fr) minmax(70px,.7fr) auto}.request-history-summary>.request-history-cell:nth-of-type(7),.request-history-summary>.request-history-cell:nth-of-type(8),.request-history-summary>.request-history-cell:nth-of-type(9){display:none}}
@media(max-width:880px){.request-pending-row{grid-template-columns:repeat(2,minmax(0,1fr))}.request-submitted-pill{grid-column:1}.request-pending-actions{grid-column:2}.request-history-summary{grid-template-columns:minmax(150px,1.4fr) minmax(110px,1fr) minmax(100px,1fr) minmax(70px,.7fr) auto}.request-history-summary>.request-history-cell:nth-of-type(4),.request-history-summary>.request-history-cell:nth-of-type(5){display:none}.request-history-tools{width:100%}.request-history-search{flex:1;width:auto}}
@media(max-width:760px){.requests-page .page-heading{align-items:flex-start}.requests-page .page-heading h1{font-size:36px}.requests-heading-actions{width:100%;justify-content:space-between}.requests-summary-grid{grid-template-columns:1fr}.request-summary-card{min-height:92px}.requests-card-head{align-items:flex-start}.requests-card-head.history-head{flex-direction:column}.request-history-tools{align-items:stretch;flex-direction:column}.request-history-search{width:100%}.request-filter-button{width:100%;justify-content:center}.request-history-filter-menu{left:0;right:auto;width:100%}.request-pending-row{grid-template-columns:1fr;padding:16px}.request-submitted-pill,.request-pending-actions{grid-column:1}.request-pending-actions{justify-content:flex-start;flex-wrap:wrap}.request-impact-strip{grid-template-columns:auto minmax(0,1fr);margin:0 16px 14px}.request-impact-button{grid-column:1/-1;width:100%}.request-impact-copy em{white-space:normal}.request-pending-detail{grid-template-columns:1fr;padding-left:16px;padding-right:16px}.request-pending-plan{align-items:flex-start;flex-direction:column}.request-pending-plan .plan{width:100%}.request-impact-day>header{align-items:flex-start;flex-direction:column}.request-impact-day>header .button{width:100%}.request-impact-period{grid-template-columns:1fr}.request-history-summary{grid-template-columns:minmax(0,1fr) auto;padding:14px 16px}.request-history-summary>.request-history-cell{display:none!important}.request-history-summary>.request-history-cell:nth-of-type(2),.request-history-summary>.request-history-cell:nth-of-type(6){display:grid!important}.request-history-summary>.request-history-cell:nth-of-type(2){grid-column:1;grid-row:2}.request-history-summary>.request-history-cell:nth-of-type(6){grid-column:2;grid-row:2}.request-history-actions{grid-column:2;grid-row:1/3;flex-wrap:wrap}.request-history-toggle{grid-column:2;grid-row:1}.request-detail-grid{grid-template-columns:1fr}.request-history-pagination{align-items:flex-start;flex-direction:column}.request-history-pagination-controls{width:100%;flex-wrap:wrap}.history-page-size{margin-right:auto}.request-kind-grid,.request-time-fields,.request-shift-autofill{grid-template-columns:1fr}.request-shift-autofill small{grid-column:1}}
.signed-out { display: grid; min-height: 100vh; place-items: center; padding: 24px; }
    .signed-out-card { width: min(100%, 430px); padding: 34px; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: var(--shadow); text-align: center; }
    .signed-out-card .brand-mark { margin: 0 auto 20px; }
.signed-out-card p { color: var(--muted); }
    .auth-card { text-align: left; }
    .auth-card > .brand-mark { display: grid; }
    .auth-card > .eyebrow, .auth-card > h1, .auth-card > p { text-align: center; }
    .auth-form { display: grid; gap: 14px; margin-top: 22px; }
    .auth-form label { display: grid; gap: 6px; color: #344054; font-size: 11px; font-weight: 800; }
    .auth-form input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 11px; background: white; color: var(--ink); font: inherit; font-size: 13px; outline: none; }
    .auth-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,107,26,.12); }
    .auth-form .button { width: 100%; min-height: 44px; }
    .auth-message { margin: 0; padding: 10px 12px; border: 1px solid #efbebe; border-radius: 10px; background: var(--danger-soft); color: var(--danger)!important; font-size: 11px; font-weight: 700; text-align: left!important; }
    .google-signin { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; border: 1px solid var(--line-strong); border-radius: 11px; background: white; color: var(--ink); font-size: 13px; font-weight: 800; text-decoration: none; box-shadow: 0 1px 2px rgba(16,24,40,.05); }
    .google-signin:hover { border-color: #98a2b3; background: #f9fafb; }
    .google-mark { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #4285f4; font-size: 17px; font-weight: 900; }
    .auth-divider { display: flex; align-items: center; gap: 10px; color: #667085; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
    .auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
    .auth-divider span { white-space: nowrap; }
    .auth-help { margin-top: -6px; color: var(--muted); font-size: 10px; line-height: 1.45; }
@media (max-width: 950px) {
      .users-table { min-width: 0; }
      .users-table thead { display: none; }
      .users-table, .users-table tbody, .users-table tr, .users-table td { display: block; width: 100%; }
      .users-table tbody { display: grid; gap: 12px; padding: 14px; }
      .users-table tr { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: white; }
      .users-table td { display: grid; grid-template-columns: 120px minmax(0,1fr); gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
      .users-table td::before { color: var(--muted); content: attr(data-label); font-size: 10px; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
      .users-table td:last-child { border-bottom: 0; }
      .users-table td.user-column { display: block; padding: 15px 14px; }
      .users-table td.user-column::before { display: none; }
      .user-actions { min-width: 0; justify-content: flex-start; flex-wrap: wrap; }
    }
    @media (max-width: 850px) {
      .header-row { min-height: 64px; padding: 0 14px; gap: 8px; }
      .brand-name, .desktop-nav, .account-copy, .account-trigger .chevron { display: none; }
      .mobile-nav-trigger { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: white; cursor: pointer; }
      .mobile-nav-trigger svg { width: 20px; height: 20px; }
      .header-space { min-width: 6px; }
      .status-trigger { min-width: 0; width: 44px; padding: 0; justify-content: center; }
      [data-widget-id="next-shift"] { display: none; }
      .status-trigger .status-copy, .status-trigger .chevron { display: none; }
      .account-trigger { min-width: 0; padding: 5px; border: 0; box-shadow: none; }
      .account-trigger:hover, .account-trigger[aria-expanded="true"] { border-color: transparent; box-shadow: none; }
      .mobile-panel { display: block; }
      .popover { position: fixed; top: 72px; right: 12px; left: auto; }
      .page { padding: 38px 18px 64px; }
      .page-heading.split { align-items: flex-start; flex-direction: column; }
      .home-panel { min-height: 360px; padding: 24px; }
      .home-panel h2 { margin-top: 52px; }
      .settings-card-head, .users-card-head { padding: 19px 18px 16px; }
      .layout-row { padding: 13px 16px; }
      .settings-actions { align-items: flex-start; flex-direction: column; }
      .action-buttons { width: 100%; margin-left: 0; }
      .action-buttons .button { flex: 1; }
      .modal-backdrop { padding: 0; place-items: stretch; }
      .modal { width: 100%; max-height: 100vh; min-height: 100vh; border: 0; border-radius: 0; }
      .form-grid { grid-template-columns: 1fr; }
      .field.full { grid-column: auto; }
    }
    @media (max-width: 520px) {
      .header-row { gap: 6px; }
      .widget-bar { margin-left: auto; }
      .page-heading { margin-bottom: 22px; }
      h1 { font-size: 36px; }
      .settings-card-head, .users-card-head { display: grid; }
      .side-label { display: none; }
      .layout-row { grid-template-columns: auto minmax(0,1fr); }
      .move-controls { grid-column: 2; justify-self: start; }
      .days-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
      .password-row { grid-template-columns: 1fr; }
      .modal-header, .modal-body, .modal-footer { padding-left: 16px; padding-right: 16px; }
      .modal-footer { align-items: stretch; flex-direction: column; }
      .user-save-feedback { width: 100%; min-width: 0; }
      .modal-actions { width: 100%; margin-left: 0; }
      .modal-actions .button { flex: 1; }
      .users-table td { grid-template-columns: 95px minmax(0,1fr); }
    }



/* Live Status module */
.live-status-page{display:grid;width:100%;max-width:none;grid-template-columns:minmax(0,1fr) clamp(390px,23vw,450px);align-items:start;gap:20px;padding:0 clamp(18px,2vw,38px) 72px}
.live-status-primary{position:relative;min-width:0;padding-top:34px}
.live-status-page .page-heading{margin-bottom:22px}
.live-status-heading{display:flex;align-items:center!important;justify-content:space-between;flex-wrap:wrap;gap:16px}
.live-status-heading-actions{position:static;display:flex;flex-wrap:wrap;max-width:100%;align-items:center;justify-content:flex-end;gap:10px}
.facebawk-customize-view{display:none}
.live-status-sync{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border:1px solid var(--line);border-radius:999px;background:white;color:var(--muted);font-size:10px;font-weight:760;white-space:nowrap}
.live-status-sync-dot{width:7px;height:7px;border-radius:50%;background:var(--success);box-shadow:0 0 0 4px var(--success-soft)}
.live-status-gear{display:grid;width:40px;height:40px;place-items:center;border:1px solid var(--line);border-radius:12px;background:white;color:var(--ink);cursor:pointer;box-shadow:0 7px 18px rgba(23,32,51,.05)}
.live-status-gear:hover{border-color:#ffc7a5;background:var(--accent-soft);color:var(--accent-strong)}
.live-status-gear svg{width:18px;height:18px}
.live-status-message{margin:0 0 14px;padding:11px 13px;border:1px solid #b9dfcd;border-radius:11px;background:var(--success-soft);color:var(--success);font-size:12px;font-weight:720}
.live-status-message.error{border-color:#f0c3c3;background:var(--danger-soft);color:var(--danger)}
.live-status-board-card,.live-status-activity-card{border:1px solid var(--line);border-radius:18px;background:white;box-shadow:0 9px 26px rgba(23,32,51,.05)}
.live-status-board-card{min-width:0;padding:16px}
.live-status-board-scroll{overflow-x:auto;padding-bottom:3px}
.live-status-columns{display:grid;gap:13px;align-items:start}
.live-status-column{overflow:hidden;min-height:max(610px,calc(100vh - 285px));border:1px solid var(--line);border-top:4px solid var(--column-color,#a8b0bf);border-radius:16px;background:#f8f9fc}
.live-status-column[data-tone="green"]{--column-color:#43aa79;background:#f1fbf6}
.live-status-column[data-tone="yellow"]{--column-color:#e4b12f;background:#fffaf0}
.live-status-column[data-tone="blue"]{--column-color:#4a86e8;background:#f3f7ff}
.live-status-column[data-tone="orange"]{--column-color:#ee8a2c;background:#fff7ef}
.live-status-column[data-tone="red"]{--column-color:#e46868;background:#fff5f5}
.live-status-column[data-tone="purple"]{--column-color:#8665d9;background:#f8f5ff}
.live-status-column-head{display:grid;gap:8px;min-height:86px;padding:15px 14px 13px;border-bottom:1px solid rgba(180,189,204,.55);background:rgba(255,255,255,.72)}
.live-status-column-title-row{display:flex;align-items:center;justify-content:space-between;gap:8px}
.live-status-column-title-row h2{margin:0;font-size:16px;line-height:1.2}
.live-status-column-count{display:grid;min-width:29px;height:29px;padding:0 8px;place-items:center;border-radius:999px;background:white;color:var(--ink);font-size:11px;font-weight:850;box-shadow:0 2px 8px rgba(23,32,51,.07)}
.live-status-column-head p{margin:0;color:var(--muted);font-size:11px;line-height:1.4}
.live-status-card-list{display:grid;gap:11px;padding:12px}
.live-status-person-card{display:grid;grid-template-columns:42px minmax(0,1fr);gap:11px;padding:13px;border:1px solid var(--line);border-radius:14px;background:white;box-shadow:0 4px 13px rgba(23,32,51,.05);transition:transform 150ms ease,box-shadow 150ms ease}
.live-status-person-card.updated{animation:live-status-pulse 700ms ease}
.live-status-person-avatar{display:grid;width:42px;height:42px;place-items:center;border-radius:50%;background:var(--accent-soft);color:var(--accent-strong);font-size:10px;font-weight:850}
.live-status-person-main{display:grid;min-width:0;gap:4px}
.live-status-person-top{display:flex;align-items:flex-start;justify-content:space-between;gap:6px}
.live-status-person-top strong{overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}
.live-status-chip{padding:4px 7px;border-radius:999px;background:var(--soft);color:var(--muted);font-size:9px;font-weight:820;white-space:nowrap}
.live-status-person-meta{color:var(--muted);font-size:10px;line-height:1.4}
.live-status-person-schedule{color:#48556c;font-size:10px;font-weight:680;line-height:1.4}
.live-status-duration{width:fit-content;margin-top:3px;padding:4px 7px;border:1px solid var(--line);border-radius:999px;background:#fbfcfe;color:#435069;font-size:9px;font-weight:800}
.live-status-empty{padding:22px 12px;border:1px dashed var(--line-strong);border-radius:12px;background:rgba(255,255,255,.62);color:var(--muted);font-size:11px;text-align:center}
.live-status-activity-card{position:sticky;top:84px;max-height:calc(100vh - 84px);margin-top:16px;overflow:hidden;border-radius:18px}
.live-status-activity-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:19px 20px;border-bottom:1px solid var(--line)}
.live-status-activity-head h2{margin:0 0 3px;font-size:18px}
.live-status-activity-head p{margin:0;color:var(--muted);font-size:11px}
.live-status-poll-pill{padding:6px 9px;border-radius:999px;background:var(--success-soft);color:var(--success);font-size:9px;font-weight:820;white-space:nowrap}
.live-status-activity-list{display:grid;max-height:calc(100vh - 167px);overflow:auto;padding:14px}
.live-status-activity-item{display:grid;grid-template-columns:30px minmax(0,1fr);gap:9px;padding:10px 4px;border-bottom:1px solid var(--line)}
.live-status-activity-item:last-child{border-bottom:0}
.live-status-activity-avatar{display:grid;width:30px;height:30px;place-items:center;border-radius:50%;background:var(--soft);color:var(--ink);font-size:8px;font-weight:850}
.live-status-activity-copy{display:grid;gap:2px}
.live-status-activity-copy strong{font-size:10px;line-height:1.35}
.live-status-activity-copy span,.live-status-activity-copy time{color:var(--muted);font-size:8px}
.live-status-settings-modal{width:min(720px,calc(100vw - 32px))}
.live-status-settings-list{display:grid;gap:8px}
.live-status-setting-row{display:grid;grid-template-columns:auto minmax(0,1fr) 120px;align-items:center;gap:9px;padding:10px;border:1px solid var(--line);border-radius:12px;background:#fcfcfd}
.live-status-order-buttons{display:flex;gap:4px}
.live-status-order-buttons button{display:grid;width:28px;height:28px;place-items:center;border:1px solid var(--line);border-radius:8px;background:white;cursor:pointer}
.live-status-setting-row input{width:100%;min-height:36px;padding:7px 9px;border:1px solid var(--line-strong);border-radius:9px;background:white}
.live-status-status-map{display:grid;gap:2px;color:var(--muted);font-size:8px;text-align:right}
.live-status-status-map strong{color:var(--ink);font-size:9px}
.live-status-add-card{display:grid;grid-template-columns:minmax(0,1fr) 150px auto;align-items:end;gap:10px;margin-top:14px;padding:13px;border:1px dashed #f2b991;border-radius:12px;background:var(--accent-soft)}
.live-status-add-card .field{gap:4px}
.live-status-settings-note{margin:0;color:var(--muted);font-size:10px;line-height:1.45}



/* LIVE_STATUS_ACTIVITY_FEED_COLOR_CARDS */
.live-status-activity-list{
  display:grid;
  gap:12px;
  max-height:calc(100vh - 230px);
  overflow:auto;
  padding:14px;
}
.live-status-activity-item{
  --activity-color:#94a0b2;
  --activity-bg:#f2f4f7;
  --activity-border:#cfd5df;
  display:grid;
  grid-template-columns:40px minmax(0,1fr);
  column-gap:12px;
  row-gap:6px;
  padding:14px;
  border:1px solid var(--activity-border);
  border-left:5px solid var(--activity-color);
  border-radius:13px;
  background:var(--activity-bg);
  box-shadow:0 4px 12px rgba(23,32,51,.05);
}
.live-status-activity-item:last-child{
  border-bottom:1px solid var(--activity-border);
}
.live-status-activity-item[data-tone="neutral"]{
  --activity-color:#94a0b2;
  --activity-bg:#f2f4f7;
  --activity-border:#cfd5df;
}
.live-status-activity-item[data-tone="green"]{
  --activity-color:#38a96b;
  --activity-bg:#eaf8f0;
  --activity-border:#a9ddbf;
}
.live-status-activity-item[data-tone="yellow"]{
  --activity-color:#dba514;
  --activity-bg:#fff7dc;
  --activity-border:#ead28a;
}
.live-status-activity-item[data-tone="blue"]{
  --activity-color:#3f7fe5;
  --activity-bg:#edf4ff;
  --activity-border:#a9c7f8;
}
.live-status-activity-item[data-tone="orange"]{
  --activity-color:#eb8423;
  --activity-bg:#fff2e6;
  --activity-border:#f0bf91;
}
.live-status-activity-item[data-tone="red"]{
  --activity-color:#df5c64;
  --activity-bg:#fff0f1;
  --activity-border:#eeadb1;
}
.live-status-activity-item[data-tone="purple"]{
  --activity-color:#805dcc;
  --activity-bg:#f4efff;
  --activity-border:#cbb9ef;
}
.live-status-activity-avatar{
  display:grid;
  width:40px;
  height:40px;
  place-items:center;
  border:2px solid var(--activity-color);
  border-radius:50%;
  background:#fff;
  color:var(--activity-color);
  font-size:9px;
  font-weight:900;
}
.live-status-activity-copy{
  display:contents;
}
.live-status-activity-title-row{
  display:block;
  grid-column:2;
  align-self:center;
  min-width:0;
}
.live-status-activity-title-row strong{
  display:block;
  min-width:0;
  color:var(--ink);
  font-size:14px;
  line-height:1.4;
  overflow-wrap:anywhere;
}
.live-status-activity-copy > span,
.live-status-activity-copy > time{
  grid-column:1 / -1;
  color:var(--muted);
  font-size:10px;
}

/* LIVE_STATUS_CARD_WRAP_FIX */
.live-status-person-main{
  min-width:0;
  overflow:hidden;
}
.live-status-person-top{
  min-width:0;
}
.live-status-person-top strong{
  min-width:0;
  flex:1 1 auto;
  overflow:visible;
  text-overflow:clip;
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:break-word;
  line-height:1.25;
}
.live-status-chip{
  min-width:0;
  max-width:48%;
  flex:0 1 auto;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.live-status-person-meta,
.live-status-person-schedule{
  display:block;
  min-width:0;
  max-width:100%;
  overflow-wrap:anywhere;
  word-break:break-word;
}
.live-status-duration{
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* LIVE_STATUS_DIMENSIONAL_SURFACES */
.live-status-page{
  position:relative;
  isolation:isolate;
  background:linear-gradient(180deg,#f7f8fb 0%,#f3f5f8 100%);
}
.live-status-heading h1{
  text-shadow:0 1px 0 rgba(255,255,255,.9);
}
.live-status-sync,
.live-status-gear{
  border-color:rgba(206,214,226,.82);
  background:#fff;
  box-shadow:0 3px 9px rgba(22,34,55,.055);
}
.live-status-board-card{
  position:relative;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.live-status-activity-card{
  border-color:rgba(205,214,228,.8);
  background:#fff;
  box-shadow:0 8px 22px rgba(29,43,69,.075);
}
.live-status-board-card::before{
  display:none;
}
.live-status-board-scroll{
  position:relative;
}
.live-status-column{
  position:relative;
  border-color:rgba(183,195,213,.82);
  box-shadow:0 4px 12px rgba(28,42,67,.055);
  transition:transform .18s ease,box-shadow .18s ease;
}
.live-status-column:hover{
  transform:translateY(-1px);
  box-shadow:0 7px 16px rgba(28,42,67,.075);
}
.live-status-column[data-tone="green"]{
  background:linear-gradient(180deg,#eefaf4 0%,#dff4e8 100%);
}
.live-status-column[data-tone="yellow"]{
  background:linear-gradient(180deg,#fff9e9 0%,#ffefc8 100%);
}
.live-status-column[data-tone="blue"]{
  background:linear-gradient(180deg,#eef5ff 0%,#dce9ff 100%);
}
.live-status-column[data-tone="orange"]{
  background:linear-gradient(180deg,#fff5e9 0%,#ffe6ca 100%);
}
.live-status-column[data-tone="red"]{
  background:linear-gradient(180deg,#fff1f2 0%,#ffdee1 100%);
}
.live-status-column[data-tone="purple"]{
  background:linear-gradient(180deg,#f5f1ff 0%,#e9e0ff 100%);
}
.live-status-column:not([data-tone]),
.live-status-column[data-tone="neutral"]{
  background:linear-gradient(180deg,#f5f7fa 0%,#e9eef5 100%);
}
.live-status-column-head{
  border-bottom-color:rgba(183,194,211,.58);
  background:linear-gradient(180deg,#fff 0%,#f8fafc 100%);
  box-shadow:none;
}
.live-status-column-count{
  border:1px solid rgba(211,218,229,.72);
  background:#fff;
  box-shadow:0 2px 6px rgba(28,42,67,.06);
}
.live-status-person-card{
  border-color:rgba(203,212,225,.82);
  background:#fff;
  box-shadow:0 3px 9px rgba(25,40,65,.06);
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;
}
.live-status-person-card:hover{
  z-index:1;
  transform:translateY(-1px);
  border-color:rgba(169,181,200,.9);
  box-shadow:0 6px 14px rgba(25,40,65,.09);
}
.live-status-person-avatar{
  border:2px solid rgba(255,255,255,.98);
  box-shadow:0 3px 8px rgba(28,42,67,.1),0 0 0 1px rgba(200,209,222,.62);
}
.live-status-chip,
.live-status-duration{
  background:#fff;
  box-shadow:0 1px 4px rgba(25,40,65,.04);
}
.live-status-empty{
  border-color:rgba(168,181,201,.58);
  background:rgba(255,255,255,.74);
  box-shadow:none;
}
.live-status-activity-head{
  background:#fff;
  box-shadow:0 1px 0 rgba(29,43,69,.04);
}
.live-status-activity-list{
  background:#f7f9fc;
  scrollbar-color:#aab5c6 transparent;
  scrollbar-width:thin;
}
.live-status-activity-item{
  position:relative;
  overflow:hidden;
  background:var(--activity-bg);
  box-shadow:0 4px 12px rgba(27,42,67,.065);
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;
}
.live-status-activity-item::after{
  display:none;
}
.live-status-activity-item:hover{
  transform:translateY(-1px);
  box-shadow:0 7px 16px rgba(27,42,67,.09);
}
.live-status-activity-item > *,
.live-status-activity-title-row,
.live-status-activity-copy > span,
.live-status-activity-copy > time{
  position:relative;
  z-index:1;
}
.live-status-activity-avatar{
  box-shadow:0 3px 8px rgba(27,42,67,.11),0 0 0 2px rgba(255,255,255,.82);
}
.live-status-poll-pill{
  border:1px solid rgba(76,174,119,.16);
  background:#e9f8ef;
  box-shadow:0 2px 6px rgba(46,139,86,.055);
}

@keyframes live-status-pulse{0%{transform:translateY(-2px);box-shadow:0 0 0 4px rgba(255,107,26,.14)}100%{transform:none;box-shadow:0 3px 11px rgba(23,32,51,.04)}}
@media(max-width:1540px){.live-status-page{grid-template-columns:1fr;padding-top:34px}.live-status-primary{padding-top:0}.live-status-activity-card{position:relative;top:auto;max-height:none;margin-top:20px;border-top:1px solid var(--line);border-radius:18px}.live-status-activity-list{max-height:520px}}
@media(max-width:760px){.live-status-page{padding:30px 14px 60px}.live-status-heading{align-items:flex-start!important}.live-status-heading-actions{position:static;width:100%;margin-bottom:12px;justify-content:space-between}.live-status-board-card{padding:0}.live-status-column{min-height:480px}.live-status-setting-row{grid-template-columns:auto minmax(0,1fr)}.live-status-status-map{grid-column:2;text-align:left}.live-status-add-card{grid-template-columns:1fr}.live-status-activity-card{border-radius:15px}.live-status-activity-list{max-height:440px}}
@media(prefers-reduced-motion:reduce){.live-status-column,.live-status-person-card,.live-status-activity-item{transition:none}.live-status-column:hover,.live-status-person-card:hover,.live-status-activity-item:hover{transform:none}}

/* Shell-owned route loading surface. It mounts before any page runtime. */
.shell-route-loader {
  position: fixed;
  z-index: 90;
  inset: 68px 0 0;
  display: grid;
  place-items: center;
  padding: 28px;
  background: #fff;
}
.shell-boot-loading .shell-route-loader { inset: 0; }
.shell-route-loader[hidden] { display: none !important; }
.shell-route-loader-card {
  display: grid;
  width: min(520px, 100%);
  justify-items: center;
  gap: 14px;
  text-align: center;
}
.shell-route-loader-orbit {
  position: relative;
  display: grid;
  width: 68px;
  height: 68px;
  margin-bottom: 2px;
  place-items: center;
}
.shell-route-loader-orbit::before,
.shell-route-loader-orbit::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}
.shell-route-loader-orbit::before {
  inset: 0;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  animation: shell-route-orbit 1.15s linear infinite;
}
.shell-route-loader-orbit::after {
  inset: 7px;
  border: 1px solid rgba(23,32,51,.08);
  background: white;
  box-shadow: 0 5px 16px rgba(23,32,51,.1);
}
.shell-route-loader-emblem {
  position: relative;
  z-index: 1;
  display: block;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
}
.shell-route-loader-card h2 {
  margin: 0;
  font-size: 27px;
  letter-spacing: -.035em;
}
.shell-route-loader-message {
  min-height: 44px;
  max-width: 440px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.shell-route-loader-progress {
  display: grid;
  width: 100%;
  gap: 8px;
  margin-top: 4px;
}
.shell-route-loader-track {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
}
.shell-route-loader-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: var(--accent);
  transition: width .28s cubic-bezier(.22,.8,.28,1);
}
.shell-route-loader-bar::after {
  position: absolute;
  inset: 0;
  width: 34%;
  background: rgba(255,255,255,.4);
  content: "";
  animation: shell-route-shine 1.25s ease-in-out infinite;
}
.shell-route-loader-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
}
.shell-route-loader-tip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
}
.shell-route-loader-tip::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}
body.shell-route-loading { overflow: hidden; }
@keyframes shell-route-orbit { to { transform: rotate(360deg); } }
@keyframes shell-route-shine { from { transform: translateX(-120%); } to { transform: translateX(310%); } }
@media (max-width: 850px) {
  .shell-route-loader { inset: 64px 0 0; padding: 20px; }
  .shell-route-loader-card h2 { font-size: 24px; }
  .shell-route-loader-message { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .shell-route-loader-orbit::before,
  .shell-route-loader-bar::after { animation: none; }
  .shell-route-loader-bar { transition: none; }
}

  
/* ACCOUNT_PROFILE_MODULE */
.avatar,
.user-avatar,
.absence-avatar,
.timeline-person-avatar,
.live-status-person-avatar,
.live-status-activity-avatar,
.account-photo-preview{
  overflow:hidden;
}
.avatar img,
.user-avatar img,
.absence-avatar img,
.timeline-person-avatar img,
.live-status-person-avatar img,
.live-status-activity-avatar img,
.account-photo-preview img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:inherit;
}
.account-page-grid{
  display:grid;
  grid-template-columns:minmax(280px,360px) minmax(0,1fr);
  align-items:start;
  gap:18px;
}
.account-card{
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:20px;
  background:white;
  box-shadow:0 10px 28px rgba(23,32,51,.055);
}
.account-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding:18px 20px;
  border-bottom:1px solid var(--line);
}
.account-card-head h2{margin:0 0 4px;font-size:17px}
.account-card-head p{margin:0;color:var(--muted);font-size:12px}
.account-photo-body{
  display:grid;
  justify-items:center;
  gap:16px;
  padding:26px 20px 22px;
  text-align:center;
}
.account-photo-preview{
  display:grid;
  width:132px;
  height:132px;
  place-items:center;
  border:4px solid #fff;
  border-radius:50%;
  background:var(--accent-soft);
  color:var(--accent);
  box-shadow:0 0 0 1px var(--line),0 12px 26px rgba(23,32,51,.12);
  font-size:32px;
  font-weight:900;
}
.account-photo-copy{display:grid;gap:4px}
.account-photo-copy strong{font-size:14px}
.account-photo-copy span{max-width:290px;color:var(--muted);font-size:11px;line-height:1.5}
.account-photo-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px;
}
.account-photo-note{
  margin:0;
  color:var(--muted);
  font-size:10px;
  line-height:1.45;
}
.account-facts{
  display:grid;
  margin:0;
  padding:4px 20px 12px;
}
.account-fact{
  display:grid;
  grid-template-columns:minmax(120px,.72fr) minmax(0,1fr);
  gap:14px;
  padding:14px 0;
  border-bottom:1px solid var(--line);
}
.account-fact:last-child{border-bottom:0}
.account-fact dt{color:var(--muted);font-size:11px;font-weight:750}
.account-fact dd{min-width:0;margin:0;font-size:12px;font-weight:760;overflow-wrap:anywhere}
.account-security-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:16px 20px 20px;
  border-top:1px solid var(--line);
}
.account-security-copy{display:grid;gap:3px}
.account-security-copy strong{font-size:12px}
.account-security-copy span{color:var(--muted);font-size:10px}
.account-page-message{
  margin:0 0 14px;
  padding:11px 13px;
  border:1px solid var(--line);
  border-radius:12px;
  background:white;
  font-size:11px;
  font-weight:720;
}
.account-page-message.success{border-color:#b7dfca;background:#eef9f3;color:#22734c}
.account-page-message.error{border-color:#efb9bd;background:#fff1f2;color:#a33b43}
.account-impersonation-note{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin:0 0 14px;
  padding:12px 14px;
  border:1px solid #f0cc99;
  border-radius:13px;
  background:#fff8ed;
  color:#82530c;
  font-size:11px;
}
.account-password-strength{
  display:grid;
  gap:5px;
  margin-top:6px;
}
.account-password-strength-track{
  height:6px;
  overflow:hidden;
  border-radius:999px;
  background:#e9edf3;
}
.account-password-strength-bar{
  display:block;
  width:0;
  height:100%;
  border-radius:inherit;
  background:var(--accent);
  transition:width 150ms ease,background 150ms ease;
}
.account-password-strength span{color:var(--muted);font-size:10px}
.account-storage-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  width:max-content;
  padding:5px 8px;
  border-radius:999px;
  background:#edf7f1;
  color:#26764f;
  font-size:9px;
  font-weight:850;
}
.account-storage-badge::before{
  width:6px;
  height:6px;
  border-radius:50%;
  background:#43aa79;
  content:"";
}
@media(max-width:820px){
  .account-page-grid{grid-template-columns:1fr}
  .account-fact{grid-template-columns:1fr;gap:4px}
  .account-security-actions{align-items:flex-start;flex-direction:column}
}


/* SCHEDULE_MODULE */
.schedule-heading{align-items:flex-end}
.schedule-heading-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px}
.schedule-tabs{display:flex;padding:4px;border:1px solid var(--line);border-radius:13px;background:#f5f7fa}
.schedule-tab{min-height:34px;padding:7px 13px;border:0;border-radius:9px;background:transparent;color:var(--muted);cursor:pointer;font-size:11px;font-weight:820}
.schedule-tab[aria-selected="true"]{background:#fff;color:var(--ink);box-shadow:0 2px 8px rgba(23,32,51,.08)}
.schedule-toolbar{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:14px;padding:14px;border:1px solid var(--line);border-radius:17px;background:#fff;box-shadow:0 7px 20px rgba(23,32,51,.045)}
.schedule-toolbar-side,.schedule-date-nav{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px}.schedule-toolbar .field{min-width:150px}.schedule-range{min-width:190px;text-align:center;font-size:12px;font-weight:850}
.schedule-view-timezone{display:block;width:100%;color:var(--muted);font-size:9px}.schedule-view-timezone strong{color:var(--ink)}
.schedule-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}.schedule-summary-card{padding:14px 15px;border:1px solid var(--line);border-radius:16px;background:#fff}.schedule-summary-card span{display:block;color:var(--muted);font-size:9px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}.schedule-summary-card strong{display:block;margin-top:5px;font-size:21px;line-height:1}
.schedule-board{overflow:hidden;border:1px solid var(--line);border-radius:19px;background:#fff;box-shadow:0 10px 28px rgba(23,32,51,.055)}.schedule-scroll{overflow:auto}
.schedule-week-grid{display:grid;min-width:980px;grid-template-columns:210px repeat(7,minmax(105px,1fr))}.schedule-corner,.schedule-day-head,.schedule-person,.schedule-cell{min-width:0;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}
.schedule-corner{position:sticky;z-index:4;left:0;display:flex;align-items:flex-end;padding:12px 14px;background:#f7f8fa;color:var(--muted);font-size:9px;font-weight:850;letter-spacing:.05em;text-transform:uppercase}.schedule-day-head{display:grid;justify-items:center;gap:2px;padding:10px 6px;background:#f7f8fa;text-align:center}.schedule-day-head strong{font-size:11px}.schedule-day-head span{color:var(--muted);font-size:9px}.schedule-day-head.today{background:#fff4eb;color:var(--accent)}
.schedule-person{position:sticky;z-index:3;left:0;display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:9px;min-height:82px;padding:10px 11px;background:#fff}.schedule-person-copy{display:grid;min-width:0;gap:2px}.schedule-person-copy strong{font-size:11px;overflow-wrap:anywhere}.schedule-person-copy span{color:var(--muted);font-size:8px;overflow-wrap:anywhere}.schedule-edit-icon{display:grid;width:27px;height:27px;place-items:center;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--accent);cursor:pointer}
.schedule-cell{min-height:82px;padding:7px;background:#fff}.schedule-cell.off{background:#fafbfc}.schedule-cell.pto{background:#fff7ed}.schedule-cell.partial-pto{background:#fff}.schedule-cell.adjusted{background:#fff}.schedule-shift{display:grid;gap:4px;padding:8px;border:1px solid #b8cff4;border-radius:10px;background:#eaf2ff;color:#225aaf}.schedule-shift.has-partial-pto{box-shadow:inset 3px 0 0 #e7a33b}.schedule-shift.is-adjusted{border-color:#9fc4f4;background:#eaf2ff;color:#225aaf;box-shadow:inset 3px 0 0 #84cc16}.schedule-shift strong{font-size:9px}.schedule-shift span{font-size:8px;line-height:1.35}.schedule-adjusted-tag{display:inline-flex;width:max-content;max-width:100%;align-items:center;padding:2px 6px;border:1px solid #a3e635;border-radius:999px;background:#f1fbdc;color:#4d7c0f;font-size:7px!important;font-weight:850;line-height:1.25;text-transform:none}.schedule-partial-pto{width:max-content;max-width:100%;overflow:hidden;padding:3px 5px;border:1px solid #efc475;border-radius:7px;background:#fff2d8;color:#9a590d;font-size:7px!important;font-weight:850;text-overflow:ellipsis;white-space:nowrap}.schedule-lunch{width:max-content;max-width:100%;overflow:hidden;padding:3px 5px;border:1px solid #e7cf7f;border-radius:7px;background:#fff5c9;color:#8a6900;font-size:7px;font-weight:850;text-overflow:ellipsis;white-space:nowrap}.schedule-off{display:grid;min-height:64px;place-items:center;gap:6px;color:#9aa4b2;font-size:9px;font-weight:760}.schedule-cell.adjusted .schedule-off{color:#667085}.schedule-pto{display:grid;gap:3px;padding:8px;border:1px solid #f0c184;border-radius:10px;background:#fff2df;color:#9a590d}.schedule-pto.partial{border-color:#e5b765;background:#fff8e8}.schedule-pto strong{font-size:9px}.schedule-pto span{font-size:8px}
.schedule-day-list{display:grid;gap:10px;padding:14px}.schedule-day-row{display:grid;grid-template-columns:minmax(190px,1fr) minmax(0,2fr) auto;align-items:center;gap:14px;padding:13px;border:1px solid var(--line);border-radius:14px;background:#fff}.schedule-day-row.adjusted{border-color:var(--line);background:#fff}.schedule-day-status{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.schedule-day-status .schedule-shift{min-width:230px}
.schedule-month{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.schedule-month-head{padding:9px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:#f7f8fa;color:var(--muted);font-size:9px;font-weight:850;text-align:center;text-transform:uppercase}.schedule-month-day{min-height:112px;padding:8px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:#fff}.schedule-month-day.outside{background:#fafbfc;color:#a4acb8}.schedule-month-day.adjusted{background:#fff;box-shadow:inset 0 -3px 0 #84cc16}.schedule-month-day.today{box-shadow:inset 0 0 0 2px #ff9b5f}.schedule-month-day.today.adjusted{box-shadow:inset 0 0 0 2px #ff9b5f,inset 0 -3px 0 #84cc16}.schedule-month-day button{display:grid;width:100%;height:100%;padding:0;border:0;background:transparent;cursor:pointer;text-align:left}.schedule-month-number{font-size:10px;font-weight:850}.schedule-month-metrics{display:grid;gap:4px;margin-top:10px}.schedule-month-metric{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:4px 6px;border-radius:7px;background:#f5f7fa;color:var(--muted);font-size:8px}.schedule-month-metric strong{color:var(--ink)}.schedule-month-adjusted{border:1px solid #c7e990;background:#f1fbdc;color:#4d7c0f;font-weight:850}.schedule-month-adjusted strong{color:#4d7c0f}
.schedule-message{margin:0 0 12px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:#fff;font-size:10px;font-weight:750}.schedule-message.success{border-color:#b7dfca;background:#eef9f3;color:#22734c}.schedule-message.error{border-color:#efb9bd;background:#fff1f2;color:#a33b43}.schedule-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px}.schedule-day-check{display:grid;justify-items:center;gap:4px;padding:8px 4px;border:1px solid var(--line);border-radius:10px;background:#fafbfc;font-size:9px;font-weight:800}.schedule-note{margin:10px 0 0;padding:9px 11px;border-radius:10px;background:#f5f7fa;color:var(--muted);font-size:9px;line-height:1.45}
.schedule-rule-mode{margin:0;padding:0;border:0}.schedule-rule-mode-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.schedule-rule-mode-options label{display:flex;align-items:flex-start;gap:9px;padding:12px;border:1px solid var(--line);border-radius:11px;background:#fafbfc;cursor:pointer}.schedule-rule-mode-options label:has(input:checked){border-color:#ff9b61;background:#fff5ee;box-shadow:0 0 0 1px rgba(255,106,20,.12)}.schedule-rule-mode-options input{margin-top:2px}.schedule-rule-mode-options span{display:grid;gap:3px}.schedule-rule-mode-options strong{color:#182230;font-size:11px}.schedule-rule-mode-options small{color:#667085;font-size:9px;line-height:1.4}.schedule-working-field.is-disabled,#schedule-working-days-field.is-disabled{opacity:.48}.schedule-working-field.is-disabled input,#schedule-working-days-field.is-disabled input{cursor:not-allowed}
@media(max-width:960px){.schedule-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.schedule-day-row{grid-template-columns:1fr}.schedule-heading{align-items:flex-start!important}.schedule-heading-actions{width:100%;justify-content:flex-start}}
@media(max-width:620px){.schedule-summary{grid-template-columns:1fr 1fr}.schedule-toolbar,.schedule-toolbar-side{align-items:stretch;flex-direction:column}.schedule-date-nav{justify-content:space-between}.schedule-range{min-width:0}.schedule-month-day{min-height:88px}.schedule-month-metric{padding:3px;font-size:7px}}

/* Schedule redesign based on the approved week-grid mockup. */
[data-view="schedule"] {
  --schedule-line: #e2e8f0;
  --schedule-blue: #246fd8;
  --schedule-blue-soft: #edf5ff;
  --schedule-orange: #ff641f;
  --schedule-orange-soft: #fff4e8;
  --schedule-green: #31a86a;
  padding-top: 36px;
  background: linear-gradient(180deg, #f8fbff 0, #fff 370px);
}

[data-view="schedule"] .schedule-heading { margin-bottom: 24px; align-items: center; }
[data-view="schedule"] .schedule-heading .eyebrow { color: var(--schedule-orange); }
[data-view="schedule"] .schedule-heading h1 { margin-top: 7px; font-size: clamp(32px, 3vw, 44px); letter-spacing: -.045em; }
[data-view="schedule"] .schedule-heading-actions { gap: 14px; }
[data-view="schedule"] .schedule-tabs { padding: 4px; border: 0; background: #f1f4f8; }
[data-view="schedule"] .schedule-tab { min-height: 38px; padding: 8px 16px; font-size: 12px; }
[data-view="schedule"] .schedule-tab[aria-selected="true"] { color: #101828; box-shadow: 0 2px 7px rgba(16,24,40,.1); }
[data-view="schedule"] #schedule-edit-button { min-height: 46px; padding: 10px 18px; border-color: var(--schedule-orange); border-radius: 11px; background: var(--schedule-orange); box-shadow: 0 7px 16px rgba(255,100,31,.2); }

.schedule-navigation { display: grid; justify-items: start; gap: 6px; margin-bottom: 12px; }
.schedule-navigation .schedule-date-nav { display: grid; grid-template-columns: 38px 66px minmax(190px, auto) 38px; gap: 9px; align-items: center; }
.schedule-navigation .button { min-height: 39px; border-radius: 9px; background: #fff; }
.schedule-navigation .schedule-range { display: grid; min-height: 39px; min-width: 210px; place-items: center; padding: 0 14px; border: 1px solid var(--schedule-line); border-radius: 9px; background: #fff; color: #182230; font-size: 12px; box-shadow: 0 2px 7px rgba(16,24,40,.03); }
.schedule-navigation .schedule-view-timezone { color: #667085; font-size: 10px; }
.schedule-navigation .schedule-view-timezone strong { color: #475467; font-weight: 650; }

[data-view="schedule"] .schedule-toolbar { min-height: 92px; margin-bottom: 12px; padding: 16px; border-color: var(--schedule-line); border-radius: 14px; box-shadow: 0 7px 22px rgba(16,24,40,.04); }
[data-view="schedule"] .schedule-toolbar-side:last-child { margin-left: auto; }
[data-view="schedule"] .schedule-toolbar .field { min-width: 170px; }
[data-view="schedule"] .schedule-toolbar-side:last-child .field { min-width: 220px; }
[data-view="schedule"] .schedule-toolbar label { margin-bottom: 6px; color: #344054; font-size: 12px; font-weight: 750; }
[data-view="schedule"] .schedule-toolbar input,
[data-view="schedule"] .schedule-toolbar select { min-height: 43px; border-color: #d7dee8; border-radius: 9px; font-size: 14px; box-shadow: 0 1px 3px rgba(16,24,40,.03); }

[data-view="schedule"] .schedule-summary { gap: 10px; margin-bottom: 12px; }
[data-view="schedule"] .schedule-summary-card { min-height: 72px; padding: 15px 18px; border-color: #edf0f4; border-radius: 14px; box-shadow: 0 7px 20px rgba(16,24,40,.035); }
[data-view="schedule"] .schedule-summary-card span { color: #667085; font-size: 11px; }
[data-view="schedule"] .schedule-summary-card strong { margin-top: 6px; color: #101828; font-size: 24px; }

[data-view="schedule"] .schedule-board { border-color: var(--schedule-line); border-radius: 15px; box-shadow: 0 10px 30px rgba(16,24,40,.045); }
[data-view="schedule"] .schedule-week-grid { min-width: 1240px; grid-template-columns: 220px repeat(7,minmax(142px,1fr)); }
[data-view="schedule"] .schedule-corner,
[data-view="schedule"] .schedule-day-head,
[data-view="schedule"] .schedule-person,
[data-view="schedule"] .schedule-cell { border-color: var(--schedule-line); }
[data-view="schedule"] .schedule-corner { padding: 14px 16px; background: #fafbfc; color: #667085; font-size: 11px; }
[data-view="schedule"] .schedule-day-head { min-height: 62px; align-content: center; padding: 9px 7px; background: #fafbfc; }
[data-view="schedule"] .schedule-day-head strong { color: #182230; font-size: 13px; }
[data-view="schedule"] .schedule-day-head span { color: #667085; font-size: 10px; }
[data-view="schedule"] .schedule-day-head.weekend strong,
[data-view="schedule"] .schedule-day-head.weekend span { color: var(--schedule-orange); }
[data-view="schedule"] .schedule-day-head.today { background: #fff6ef; }

[data-view="schedule"] .schedule-person { grid-template-columns: 38px minmax(0,1fr) 27px; gap: 9px; min-height: 82px; padding: 10px 11px; }
[data-view="schedule"] .schedule-person .user-avatar { width: 38px; height: 38px; }
[data-view="schedule"] .schedule-person-copy { gap: 2px; }
[data-view="schedule"] .schedule-person-copy strong { color: #182230; font-size: 12px; line-height: 1.25; }
[data-view="schedule"] .schedule-person-copy span { color: #667085; font-size: 9px; line-height: 1.35; }
[data-view="schedule"] .schedule-edit-icon { width: 27px; height: 27px; border-color: #f0e1d7; border-radius: 8px; color: var(--schedule-orange); font-size: 12px; }

[data-view="schedule"] .schedule-cell { min-height: 82px; padding: 7px; }
[data-view="schedule"] .schedule-cell.off { background: #fff; }
[data-view="schedule"] .schedule-off { min-height: 66px; color: #98a2b3; font-size: 10px; font-weight: 650; text-transform: uppercase; }
[data-view="schedule"] .schedule-shift,
[data-view="schedule"] .schedule-pto { gap: 3px; min-height: 66px; align-content: start; padding: 8px 9px; border-radius: 8px; }
[data-view="schedule"] .schedule-shift { border-color: #c7daf7; background: var(--schedule-blue-soft); color: #225aaf; }
[data-view="schedule"] .schedule-shift strong,
[data-view="schedule"] .schedule-pto strong { font-size: 11px; line-height: 1.3; }
[data-view="schedule"] .schedule-shift > span:not(.schedule-lunch):not(.schedule-adjusted-tag):not(.schedule-partial-pto),
[data-view="schedule"] .schedule-pto > span:not(.schedule-adjusted-tag) { color: #6b91c9; font-size: 9px; }
[data-view="schedule"] .schedule-lunch,
[data-view="schedule"] .schedule-partial-pto { width: max-content; max-width: 100%; padding: 2px 6px; border-radius: 999px; font-size: 8.5px!important; line-height: 1.3; }
[data-view="schedule"] .schedule-lunch { border-color: #efd46d; background: #fff8c9; color: #745600; }
[data-view="schedule"] .schedule-partial-pto { border-color: #f2bc77; background: #fff0da; color: #9a590d; }
[data-view="schedule"] .schedule-pto { border-color: #f0ba74; background: var(--schedule-orange-soft); color: #a14d08; }
[data-view="schedule"] .schedule-shift.is-adjusted { border-color: #8fd2ad; background: #edf9f2; color: #207a4d; box-shadow: inset 3px 0 0 var(--schedule-green); }
[data-view="schedule"] .schedule-adjusted-tag { border-color: #9cdbb9; background: #e9f8f0; color: #207a4d; font-size: 8.5px!important; }

.schedule-legend { display: flex; justify-content: space-between; gap: 14px; padding: 14px 8px 0; color: #667085; font-size: 12px; }
.schedule-legend > div { display: flex; flex-wrap: wrap; gap: 16px; }
.schedule-legend > div span { display: inline-flex; align-items: center; gap: 7px; }
.schedule-legend i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }
.schedule-legend i.scheduled { background: var(--schedule-blue); }
.schedule-legend i.pto { background: var(--schedule-orange); }
.schedule-legend i.modified { background: var(--schedule-green); }

@media(max-width:960px){
  [data-view="schedule"] { padding-top: 24px; }
  .schedule-navigation { margin-top: -4px; }
  [data-view="schedule"] .schedule-toolbar-side:last-child { width: 100%; margin-left: 0; }
  [data-view="schedule"] .schedule-toolbar-side:last-child .field { flex: 1; }
}

@media(max-width:620px){
  [data-view="schedule"] .schedule-heading-actions { display: grid; grid-template-columns: 1fr; }
  [data-view="schedule"] .schedule-tabs { width: 100%; }
  [data-view="schedule"] .schedule-tab { flex: 1; }
  .schedule-navigation .schedule-date-nav { width: 100%; grid-template-columns: 38px 58px minmax(0,1fr) 38px; }
  .schedule-navigation .schedule-range { min-width: 0; padding: 0 7px; font-size: 10px; }
  .schedule-legend { align-items: flex-start; flex-direction: column; }
}

/* Effective-dated schedule change center. */
.schedule-changes-button{display:inline-flex;align-items:center;gap:8px}.schedule-changes-button .section-count{min-width:22px;height:22px;padding:0 7px;font-size:10px}
.schedule-change-surface{display:grid;gap:16px}.schedule-change-surface[hidden]{display:none}.schedule-change-surface-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:22px;border:1px solid var(--schedule-line);border-radius:16px;background:#fff;box-shadow:0 8px 24px rgba(16,24,40,.045)}.schedule-change-surface-head h2{margin:4px 0 6px;font-size:24px;letter-spacing:-.025em}.schedule-change-surface-head p:last-child{margin:0;max-width:720px;color:#667085;font-size:12px;line-height:1.55}
.schedule-change-tabs{width:max-content;margin:0}.schedule-change-list{display:grid;gap:10px}.schedule-change-empty{display:grid;min-height:220px;place-items:center;padding:34px;border:1px dashed #cfd7e3;border-radius:16px;background:#fff;text-align:center}.schedule-change-empty div{display:grid;gap:8px;max-width:430px}.schedule-change-empty h3{margin:0;font-size:17px}.schedule-change-empty p{margin:0;color:#667085;font-size:12px;line-height:1.55}
.schedule-change-row{display:grid;grid-template-columns:minmax(220px,1.6fr) minmax(120px,.7fr) minmax(130px,.7fr) minmax(150px,.8fr) auto;align-items:center;gap:16px;padding:16px 18px;border:1px solid var(--schedule-line);border-radius:14px;background:#fff;box-shadow:0 6px 18px rgba(16,24,40,.035)}.schedule-change-row-copy{display:grid;gap:3px;min-width:0}.schedule-change-row-copy strong{overflow:hidden;color:#182230;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.schedule-change-row-copy span,.schedule-change-row-meta span{color:#667085;font-size:10px;line-height:1.4}.schedule-change-row-meta{display:grid;gap:3px}.schedule-change-row-meta strong{font-size:11px}.schedule-change-row-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px}
.schedule-change-status{display:inline-flex;width:max-content;align-items:center;padding:5px 9px;border:1px solid #d0d5dd;border-radius:999px;background:#f8fafc;color:#475467;font-size:9px;font-weight:850;text-transform:uppercase}.schedule-change-status.draft{border-color:#b9cff3;background:#eef5ff;color:#245ca9}.schedule-change-status.scheduled{border-color:#a8dabf;background:#ecf9f2;color:#22734c}.schedule-change-status.activating{border-color:#c4b5fd;background:#f5f3ff;color:#6d28d9}.schedule-change-status.active{border-color:#93c5fd;background:#eff6ff;color:#1d4ed8}.schedule-change-status.reversal-drafted{border-color:#f2c06b;background:#fff8e8;color:#8a4d0f}.schedule-change-status.reversal-scheduled{border-color:#c4b5fd;background:#f5f3ff;color:#6d28d9}.schedule-change-status.superseded,.schedule-change-status.cancelled,.schedule-change-status.rolled-back{border-color:#d0d5dd;background:#f2f4f7;color:#667085}
.schedule-change-action-note{max-width:180px;color:#667085;font-size:10px;line-height:1.35}.schedule-impact-range{margin:0 0 12px;color:#667085;font-size:11px;line-height:1.45}
.schedule-change-warning{display:flex;align-items:center;gap:12px;padding:12px 15px;border:1px solid #f2c06b;border-radius:12px;background:#fff8e8;color:#8a4d0f}.schedule-change-warning strong{font-size:11px;white-space:nowrap}.schedule-change-warning span{font-size:10px;line-height:1.45}.schedule-change-card{overflow:hidden;border:1px solid var(--schedule-line);border-radius:16px;background:#fff;box-shadow:0 8px 24px rgba(16,24,40,.04)}.schedule-change-card>.form-grid{padding:18px}.schedule-change-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:17px 18px;border-bottom:1px solid var(--schedule-line)}.schedule-change-card-head h3{margin:0 0 4px;font-size:15px}.schedule-change-card-head p{margin:0;color:#667085;font-size:10px;line-height:1.5}
.schedule-change-roster-toolbar{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px;padding:14px 16px;border-bottom:1px solid var(--schedule-line);background:#fafbfc}.schedule-change-roster-toolbar .field{min-width:180px}.schedule-change-select-all{display:flex;min-height:42px;align-items:center;gap:8px;padding:0 11px;border:1px solid #d0d5dd;border-radius:9px;background:#fff;font-size:10px;font-weight:800}.schedule-change-selected{display:inline-flex;min-height:42px;align-items:center;gap:4px;margin-left:auto;color:#667085;font-size:10px}.schedule-change-selected strong{color:#182230;font-size:14px}
.schedule-change-person-row{display:grid;grid-template-columns:28px minmax(190px,1.2fr) minmax(180px,1fr) 24px minmax(180px,1fr) auto;align-items:center;gap:12px;padding:13px 16px;border-bottom:1px solid #eef1f5}.schedule-change-person-row:last-child{border-bottom:0}.schedule-change-person-row.is-selected{background:#fbfdff}.schedule-change-person{display:grid;grid-template-columns:36px minmax(0,1fr);align-items:center;gap:9px;min-width:0}.schedule-change-person-copy{display:grid;gap:2px;min-width:0}.schedule-change-person-copy strong{overflow:hidden;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.schedule-change-person-copy span{overflow:hidden;color:#667085;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.schedule-change-rule{display:grid;gap:3px;padding:9px 10px;border:1px solid #e3e8ef;border-radius:10px;background:#f8fafc}.schedule-change-rule.future{border-color:#a9c8f4;background:#eff6ff;color:#245ca9}.schedule-change-rule strong{font-size:10px}.schedule-change-rule span{color:#667085;font-size:8.5px;line-height:1.35}.schedule-change-arrow{color:#98a2b3;font-size:18px;text-align:center}.schedule-change-person-actions{display:flex;justify-content:flex-end}.schedule-change-actions{position:sticky;z-index:2;bottom:12px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 15px;border:1px solid var(--schedule-line);border-radius:14px;background:rgba(255,255,255,.96);box-shadow:0 12px 34px rgba(16,24,40,.12);backdrop-filter:blur(10px)}.schedule-change-actions>div{display:flex;gap:8px}
.schedule-change-review-summary{margin:0}.schedule-impact-state{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;background:#f2f4f7;color:#475467;font-size:9px;font-weight:850}.schedule-impact-state.safe{background:#eaf8f0;color:#22734c}.schedule-impact-state.risk{background:#fff0f0;color:#a1373f}.schedule-impact-state.unavailable{background:#fff8e8;color:#8a4d0f}.schedule-change-impact-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:16px}.schedule-change-impact-metric{display:grid;gap:4px;padding:12px;border:1px solid #e7ebf0;border-radius:11px;background:#fafbfc}.schedule-change-impact-metric span{color:#667085;font-size:9px}.schedule-change-impact-metric strong{font-size:18px}.schedule-change-impact-days{display:grid;gap:8px;padding:0 16px 16px}.schedule-change-impact-day{display:grid;grid-template-columns:110px 1fr auto;align-items:center;gap:12px;padding:10px 12px;border:1px solid #f0c3c6;border-radius:10px;background:#fff5f5}.schedule-change-impact-day strong{font-size:10px}.schedule-change-impact-day span{color:#7f1d1d;font-size:9px}.schedule-change-confirm{display:flex;align-items:flex-start;gap:9px;padding:13px 15px;border:1px solid #c8d7ec;border-radius:12px;background:#f4f8fe;color:#344054;font-size:10px;font-weight:750;line-height:1.5}
@media(max-width:1050px){.schedule-change-row{grid-template-columns:1fr 1fr}.schedule-change-row-actions{grid-column:1/-1;justify-content:flex-start}.schedule-change-person-row{grid-template-columns:28px minmax(160px,1fr) minmax(150px,1fr) 20px minmax(150px,1fr) auto}.schedule-change-impact-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.schedule-change-surface-head{align-items:stretch;flex-direction:column}.schedule-change-row{grid-template-columns:1fr}.schedule-change-person-row{grid-template-columns:28px 1fr auto}.schedule-change-person-row>.schedule-change-rule,.schedule-change-person-row>.schedule-change-arrow{grid-column:2/-1}.schedule-change-person-actions{grid-column:2/-1;justify-content:flex-start}.schedule-change-roster-toolbar .field{width:100%}.schedule-change-selected{margin-left:0}.schedule-change-actions{align-items:stretch;flex-direction:column}.schedule-change-actions>div,.schedule-change-actions .button{width:100%}.schedule-change-impact-summary{grid-template-columns:1fr 1fr}.schedule-rule-mode-options{grid-template-columns:1fr}}


/* INTERCOM_AVATAR_IMPORTER_COMPACT */
.account-page-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  width:100%;
  gap:18px;
}
.account-details-card{overflow:visible}
.account-profile-setting{
  display:grid;
  grid-template-columns:64px minmax(0,1fr) auto;
  align-items:center;
  gap:15px;
  padding:16px 20px;
  border-bottom:1px solid var(--line);
  background:linear-gradient(90deg,#fff 0%,#fff 72%,#fffaf7 100%);
}
.account-profile-setting .account-photo-preview{
  width:64px;
  height:64px;
  border-width:3px;
  font-size:18px;
  box-shadow:0 0 0 1px var(--line),0 7px 16px rgba(23,32,51,.09);
}
.account-profile-summary{display:grid;min-width:0;gap:3px}
.account-setting-label{
  color:var(--muted);
  font-size:10px;
  font-weight:820;
  letter-spacing:.055em;
  text-transform:uppercase;
}
.account-profile-summary strong{font-size:14px}
.account-profile-summary span:last-child{color:var(--muted);font-size:10px;line-height:1.45}
.account-profile-controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px}
.account-active-source{
  display:inline-flex;
  align-items:center;
  gap:6px;
  width:max-content;
  min-height:30px;
  padding:5px 9px;
  border:1px solid #cbe8d9;
  border-radius:999px;
  background:var(--success-soft);
  color:var(--success);
  font-size:9px!important;
  font-weight:820;
  white-space:nowrap;
}
.account-active-source::before{width:6px;height:6px;border-radius:50%;background:currentColor;content:""}
.account-profile-controls .button{min-height:36px;padding:7px 11px;font-size:10px}
.account-avatar-modal{width:min(760px,calc(100vw - 32px));max-height:min(720px,calc(100vh - 32px));overflow:auto}
.account-avatar-modal .modal-header{position:sticky;z-index:2;top:0;background:#fff}
.account-avatar-modal-body{display:grid;gap:14px;padding:18px 20px 20px}
.account-avatar-modal-intro{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:13px;
  background:var(--soft);
}
.account-avatar-modal-intro div{display:grid;gap:2px}
.account-avatar-modal-intro strong{font-size:11px}
.account-avatar-modal-intro span{color:var(--muted);font-size:9px;line-height:1.45}
.account-storage-badge{flex:0 0 auto}
.account-avatar-source-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.account-avatar-source-card{
  display:grid;
  grid-template-columns:54px minmax(0,1fr);
  align-content:start;
  gap:11px;
  min-width:0;
  padding:13px;
  border:1px solid var(--line);
  border-radius:15px;
  background:#fff;
  transition:border-color 140ms ease,box-shadow 140ms ease,background 140ms ease;
}
.account-avatar-source-card.active{
  border-color:#efaf88;
  background:#fffaf7;
  box-shadow:0 5px 14px rgba(255,107,26,.07);
}
.account-avatar-source-card.unavailable{background:#fbfcfd}
.account-source-preview{
  display:grid;
  width:54px;
  height:54px;
  place-items:center;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:15px;
  background:var(--soft);
  color:var(--muted);
  font-size:13px;
  font-weight:900;
}
.account-source-preview img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
.account-source-preview.intercom-empty{background:#111827;color:#fff}
.account-source-main{display:grid;min-width:0;gap:8px}
.account-source-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.account-source-heading strong{font-size:12px}
.account-source-heading p{margin:2px 0 0;color:var(--muted);font-size:9px;line-height:1.4}
.account-source-state{
  display:inline-flex;
  flex:0 0 auto;
  align-items:center;
  min-height:22px;
  padding:3px 6px;
  border-radius:999px;
  background:var(--soft);
  color:var(--muted);
  font-size:8px;
  font-weight:820;
  white-space:nowrap;
}
.account-avatar-source-card.active .account-source-state{background:var(--accent-soft);color:var(--accent-hover)}
.account-source-meta{display:grid;gap:2px;color:var(--muted);font-size:8px;line-height:1.42}
.account-source-actions{display:flex;flex-wrap:wrap;gap:6px}
.account-source-actions .button{min-height:32px;padding:6px 9px;font-size:9px}
.account-intercom-mark{
  display:grid;
  width:26px;
  height:26px;
  place-items:center;
  border-radius:8px;
  background:#111827;
  color:#fff;
  font-size:12px;
  font-weight:900;
}
.account-source-disclaimer{
  display:flex;
  gap:8px;
  margin:0;
  padding:9px 11px;
  border-radius:11px;
  background:var(--blue-soft);
  color:#315d9e;
  font-size:8px;
  line-height:1.45;
}
.account-source-disclaimer strong{color:#264c84;white-space:nowrap}
.button-loading{position:relative;pointer-events:none}
.button-loading::before{
  width:12px;height:12px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;content:"";animation:account-avatar-spin .7s linear infinite;
}
@keyframes account-avatar-spin{to{transform:rotate(360deg)}}
@media(max-width:720px){
  .account-profile-setting{grid-template-columns:54px minmax(0,1fr)}
  .account-profile-setting .account-photo-preview{width:54px;height:54px;font-size:15px}
  .account-profile-controls{grid-column:1/-1;justify-content:flex-start;padding-left:69px}
  .account-avatar-source-list{grid-template-columns:1fr}
}
@media(max-width:480px){
  .account-profile-setting{grid-template-columns:46px minmax(0,1fr);gap:11px;padding:14px 15px}
  .account-profile-setting .account-photo-preview{width:46px;height:46px;border-width:2px;font-size:13px}
  .account-profile-controls{padding-left:57px}
  .account-profile-controls .button{width:100%}
  .account-active-source{white-space:normal}
  .account-avatar-modal-body{padding:14px}
  .account-avatar-modal-intro{align-items:flex-start;flex-direction:column}
  .account-avatar-source-card{grid-template-columns:46px minmax(0,1fr);padding:11px}
  .account-source-preview{width:46px;height:46px;border-radius:13px}
  .account-source-actions .button{flex:1 1 auto}
  .account-source-disclaimer{display:grid}
}


/* Specialist performance hub */
.performance-page{width:100%}
.performance-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px}
.performance-heading-copy{min-width:0}
.performance-publication-state{display:grid;justify-items:end;gap:5px;flex:0 0 auto}
.performance-publication-state small{color:var(--muted);font-size:11px}
.performance-coverage-pill{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border-radius:999px;background:var(--success-soft);color:var(--success);font-size:12px;font-weight:800}
.performance-coverage-pill::before{width:7px;height:7px;border-radius:50%;background:currentColor;content:""}
.performance-controls{
  display:grid;grid-template-columns:minmax(330px,1.15fr) minmax(280px,.85fr) auto;
  align-items:end;gap:16px;margin-bottom:24px;padding:17px 18px;border:1px solid var(--line);
  border-radius:17px;background:white;box-shadow:0 8px 24px rgba(23,32,51,.045)
}
.performance-control-group{display:grid;gap:7px}
.performance-control-group>label{color:#475467;font-size:12px;font-weight:800}
.performance-range-inputs,.performance-trend-inputs{display:flex;align-items:center;gap:8px}
.performance-range-inputs input,.performance-trend-inputs input,.performance-trend-inputs select{
  min-height:42px;border:1px solid var(--line-strong);border-radius:10px;background:white;color:var(--ink)
}
.performance-range-inputs input{min-width:0;width:100%;padding:8px 10px}
.performance-range-arrow{color:var(--muted);font-weight:800}
.performance-trend-inputs input{width:86px;padding:8px 10px}
.performance-trend-inputs select{min-width:120px;padding:8px 30px 8px 10px}
.performance-control-hint{color:var(--muted);font-size:11px}
.performance-apply{min-width:112px}
.performance-section{margin-top:24px}
.performance-section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:12px}
.performance-section-heading h2{margin:0;font-size:20px}
.performance-section-heading p{margin:3px 0 0;color:var(--muted);font-size:12px}
.performance-range-label{color:#475467;font-size:12px;font-weight:750}
.performance-snapshot-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.performance-snapshot-card{
  position:relative;overflow:hidden;min-height:144px;padding:18px;border:1px solid var(--line);
  border-radius:17px;background:white;box-shadow:0 8px 24px rgba(23,32,51,.045)
}
.performance-snapshot-card::before{position:absolute;inset:0 auto 0 0;width:4px;background:var(--line-strong);content:""}
.performance-snapshot-card.healthy::before{background:var(--success)}
.performance-snapshot-card.watch::before{background:#d89a22}
.performance-snapshot-card.at-risk::before{background:var(--danger)}
.performance-snapshot-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.performance-snapshot-label{color:#475467;font-size:12px;font-weight:800}
.performance-info-button{display:grid;width:24px;height:24px;place-items:center;border:1px solid var(--line);border-radius:8px;background:white;color:var(--muted);cursor:help;font-size:11px;font-weight:900}
.performance-snapshot-value{margin:17px 0 4px;font-size:32px;line-height:1;font-weight:850;letter-spacing:-.045em}
.performance-snapshot-meta{display:flex;align-items:center;justify-content:space-between;gap:8px}
.performance-snapshot-meta small{color:var(--muted);font-size:11px}
.performance-delta{font-size:11px;font-weight:800}
.performance-delta.positive{color:var(--success)}
.performance-delta.negative{color:var(--danger)}
.performance-delta.neutral{color:var(--muted)}
.performance-main-grid{display:grid;grid-template-columns:280px minmax(0,1fr);align-items:start;gap:16px;margin-top:24px}
.performance-profile-card,.performance-table-card{
  overflow:hidden;border:1px solid var(--line);border-radius:18px;background:white;
  box-shadow:0 8px 24px rgba(23,32,51,.045)
}
.performance-profile-card{padding:22px}
.performance-profile-top{display:flex;align-items:center;gap:14px}
.performance-profile-avatar{
  display:grid;width:70px;height:70px;flex:0 0 auto;place-items:center;overflow:hidden;
  border:4px solid white;border-radius:22px;background:var(--accent-soft);color:var(--accent-hover);
  box-shadow:0 0 0 1px var(--line),0 9px 20px rgba(23,32,51,.10);font-size:20px;font-weight:850
}
.performance-profile-avatar img{width:100%;height:100%;object-fit:cover}
.performance-profile-name{margin:0 0 3px;font-size:20px;line-height:1.15}
.performance-profile-team{color:var(--accent-hover);font-size:12px;font-weight:800}
.performance-profile-details{display:grid;margin-top:20px}
.performance-profile-row{display:grid;gap:2px;padding:11px 0;border-top:1px solid var(--line)}
.performance-profile-row span{color:var(--muted);font-size:10px;font-weight:800;letter-spacing:.05em;text-transform:uppercase}
.performance-profile-row strong{overflow-wrap:anywhere;font-size:13px}
.performance-model-note{margin-top:14px;padding:11px 12px;border-radius:12px;background:var(--blue-soft);color:#365f93;font-size:11px;line-height:1.45}
.performance-card-head{
  display:flex;align-items:center;justify-content:space-between;gap:16px;padding:19px 20px 15px;
  border-bottom:1px solid var(--line)
}
.performance-card-head h2{margin:0 0 3px;font-size:19px}
.performance-card-head p{margin:0;color:var(--muted);font-size:12px}
.performance-head-actions{display:flex;align-items:center;gap:8px}
.performance-target-button{
  display:grid;width:38px;height:38px;place-items:center;border:1px solid var(--line);
  border-radius:10px;background:white;cursor:pointer
}
.performance-target-button:hover{border-color:var(--line-strong);background:var(--soft)}
.performance-target-button svg{width:18px;height:18px}
.performance-table-scroll{overflow:auto}
.performance-kpi-table,.performance-trend-table{width:100%;border-collapse:separate;border-spacing:0}
.performance-kpi-table{min-width:760px}
.performance-kpi-table th,.performance-kpi-table td{
  padding:13px 14px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle
}
.performance-kpi-table th{background:#fbfcfd;color:var(--muted);font-size:10px;font-weight:850;letter-spacing:.055em;text-transform:uppercase}
.performance-kpi-table tbody tr:last-child td{border-bottom:0}
.performance-metric-cell{display:grid;gap:2px}
.performance-metric-cell strong{font-size:13px}
.performance-metric-cell span{color:var(--muted);font-size:10px}
.performance-value-cell{font-variant-numeric:tabular-nums;font-weight:800;white-space:nowrap}
.performance-target-cell{color:#475467;font-variant-numeric:tabular-nums;font-weight:700;white-space:nowrap}
.performance-status{
  display:inline-flex;align-items:center;gap:6px;padding:5px 8px;border-radius:999px;
  font-size:10px;font-weight:850;white-space:nowrap
}
.performance-status::before{width:6px;height:6px;border-radius:50%;background:currentColor;content:""}
.performance-status.healthy{background:var(--success-soft);color:var(--success)}
.performance-status.watch{background:var(--warning-soft);color:#a56a0a}
.performance-status.at-risk{background:var(--danger-soft);color:var(--danger)}
.performance-status.tracking{background:var(--blue-soft);color:#3970b7}
.performance-status.no-data{background:var(--soft);color:var(--muted)}
.performance-status.no-activity{background:var(--soft);color:var(--muted)}
.performance-sparkline-wrap{display:flex;align-items:center;gap:9px;min-width:150px}
.performance-sparkline{display:block;width:108px;height:34px;overflow:visible;color:#4a74a8}
.performance-sparkline .spark-area{fill:rgba(57,127,232,.08)}
.performance-sparkline .spark-line{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.performance-sparkline .spark-dot{fill:white;stroke:currentColor;stroke-width:2}
[data-performance-trend]{cursor:crosshair;outline:none}
[data-performance-trend]:focus-visible{filter:drop-shadow(0 0 3px rgba(57,127,232,.38))}
.performance-trend-guide,.performance-trend-hover-dot{opacity:0;pointer-events:none;transition:opacity 90ms ease}
.performance-trend-guide{stroke:currentColor;stroke-width:1;stroke-dasharray:3 3}
.performance-trend-hover-dot{fill:white;stroke:currentColor;stroke-width:2.5}
[data-performance-trend].is-inspecting .performance-trend-guide{opacity:.42}
[data-performance-trend].is-inspecting .performance-trend-hover-dot{opacity:1}
.performance-trend-tooltip{position:fixed;z-index:900;display:grid;min-width:150px;gap:2px;padding:10px 12px;border:1px solid rgba(255,255,255,.12);border-radius:11px;background:#172033;color:white;box-shadow:0 12px 30px rgba(17,24,39,.24);pointer-events:none;transform:translateZ(0)}
.performance-trend-tooltip[hidden]{display:none}
.performance-trend-tooltip-label{max-width:220px;overflow:hidden;color:#cfd7e5;font-size:10px;font-weight:780;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}
.performance-trend-tooltip-value{font-size:16px;font-weight:850;letter-spacing:-.02em;line-height:1.25;font-variant-numeric:tabular-nums}
.performance-trend-tooltip-date{color:#aeb9cb;font-size:10px;font-weight:680;line-height:1.35}
.performance-trend-delta{min-width:36px;font-size:10px;font-weight:800}
.performance-trend-card{margin-top:16px}
.performance-trend-summary{display:flex;flex-wrap:wrap;gap:7px}
.performance-summary-chip{padding:5px 8px;border-radius:999px;background:var(--soft);color:#475467;font-size:10px;font-weight:800}
.performance-trend-table{min-width:1180px}
.performance-trend-table th,.performance-trend-table td{
  padding:11px 10px;border-right:1px solid #eef0f3;border-bottom:1px solid var(--line);
  text-align:center;vertical-align:middle;font-size:11px;white-space:nowrap
}
.performance-trend-table th{position:sticky;top:0;z-index:2;background:#fbfcfd;color:var(--muted);font-size:9px;font-weight:850;letter-spacing:.045em;text-transform:uppercase}
.performance-trend-table th:first-child,.performance-trend-table td:first-child{
  position:sticky;left:0;z-index:3;min-width:150px;background:white;text-align:left
}
.performance-trend-table thead th:first-child{z-index:4;background:#fbfcfd}
.performance-trend-table tbody tr:last-child td{border-bottom:0}
.performance-trend-table td:last-child,.performance-trend-table th:last-child{border-right:0}
.performance-trend-metric{display:grid;gap:2px}
.performance-trend-metric strong{font-size:12px}
.performance-trend-metric span{color:var(--muted);font-size:9px}
.performance-readout{max-width:220px;white-space:normal;text-align:left!important;color:#475467;line-height:1.35}
.performance-cell-good{background:rgba(39,132,93,.055)}
.performance-cell-watch{background:rgba(216,154,34,.06)}
.performance-cell-risk{background:rgba(184,63,69,.05)}
.performance-empty{padding:46px 24px;text-align:center;color:var(--muted)}
.performance-page-message{margin:0 0 14px;padding:10px 12px;border-radius:11px;background:var(--success-soft);color:var(--success);font-size:12px;font-weight:750}
.performance-page-message.error{background:var(--danger-soft);color:var(--danger)}
.performance-target-modal{
  position:fixed;z-index:600;inset:0;display:grid;place-items:center;padding:20px;background:rgba(17,24,39,.48)
}
.performance-target-dialog{
  width:min(680px,100%);max-height:min(780px,calc(100vh - 40px));overflow:auto;
  border:1px solid var(--line);border-radius:20px;background:white;box-shadow:0 26px 70px rgba(17,24,39,.28)
}
.performance-target-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:20px 22px 16px;border-bottom:1px solid var(--line)}
.performance-target-dialog-head h2{margin:0 0 4px;font-size:21px}
.performance-target-dialog-head p{margin:0;color:var(--muted);font-size:12px}
.performance-close-button{display:grid;width:36px;height:36px;place-items:center;border:1px solid var(--line);border-radius:10px;background:white;cursor:pointer;font-size:20px}
.performance-target-scope{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 20px 0;padding:11px 12px;border-radius:12px;background:var(--soft)}
.performance-target-scope strong{font-size:12px}
.performance-target-scope span{color:var(--muted);font-size:11px}
.performance-target-list{display:grid;padding:10px 20px 4px}
.performance-target-row{display:grid;grid-template-columns:minmax(0,1fr) 150px 100px;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid var(--line)}
.performance-target-row:last-child{border-bottom:0}
.performance-target-row label{display:grid;gap:2px}
.performance-target-row label strong{font-size:13px}
.performance-target-row label span{color:var(--muted);font-size:10px}
.performance-target-input{min-height:40px;width:100%;padding:8px 10px;border:1px solid var(--line-strong);border-radius:10px}
.performance-target-direction{color:var(--muted);font-size:10px;font-weight:800;text-align:right;text-transform:uppercase}
.performance-target-note{margin:6px 20px 0;padding:11px 12px;border-radius:12px;background:var(--warning-soft);color:#855d16;font-size:11px}
.performance-target-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:17px 20px 20px;border-top:1px solid var(--line)}
.performance-target-actions-right{display:flex;gap:8px}
body.performance-modal-open{overflow:hidden}
@media(max-width:1050px){
  .performance-controls{grid-template-columns:1fr 1fr}.performance-apply{grid-column:1/-1;justify-self:end}
  .performance-snapshot-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .performance-main-grid{grid-template-columns:1fr}
  .performance-profile-card{display:grid;grid-template-columns:260px minmax(0,1fr);gap:20px}
  .performance-profile-details{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:0}
  .performance-profile-row{border-top:0;border-left:1px solid var(--line);padding:6px 0 6px 12px}
  .performance-model-note{grid-column:1/-1;margin-top:0}
}
@media(max-width:760px){
  .performance-heading{align-items:flex-start;flex-direction:column}
  .performance-publication-state{justify-items:start}
  .performance-controls{grid-template-columns:1fr}
  .performance-apply{grid-column:auto;width:100%}
  .performance-profile-card{display:block}
  .performance-profile-details{display:grid;grid-template-columns:1fr;margin-top:18px}
  .performance-profile-row{border-top:1px solid var(--line);border-left:0;padding:10px 0}
  .performance-model-note{margin-top:13px}
  .performance-section-heading{align-items:flex-start;flex-direction:column}
}
@media(max-width:560px){
  .performance-snapshot-grid{grid-template-columns:1fr}
  .performance-range-inputs{align-items:stretch;flex-direction:column}
  .performance-range-arrow{display:none}
  .performance-trend-inputs input{width:92px}
  .performance-target-row{grid-template-columns:minmax(0,1fr) 120px}
  .performance-target-direction{display:none}
  .performance-target-actions{align-items:stretch;flex-direction:column}
  .performance-target-actions-right{display:grid;grid-template-columns:1fr 1fr}
}


/* Manager Master Book */
.masterbook-page{width:100%}
.masterbook-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px}
.masterbook-heading-copy{min-width:0}
.masterbook-publication-state{display:grid;justify-items:end;gap:5px;flex:0 0 auto}
.masterbook-publication-state small{color:var(--muted);font-size:11px}
.masterbook-coverage-pill{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border-radius:999px;background:var(--success-soft);color:var(--success);font-size:12px;font-weight:800}
.masterbook-coverage-pill::before{width:7px;height:7px;border-radius:50%;background:currentColor;content:""}
.masterbook-controls{display:grid;grid-template-columns:minmax(320px,1.4fr) minmax(170px,.7fr) minmax(250px,1fr) auto;align-items:end;gap:14px;padding:18px;border:1px solid var(--line);border-radius:18px;background:white;box-shadow:var(--shadow-small)}
.masterbook-control-group{display:grid;gap:7px;min-width:0}
.masterbook-control-group>label{color:#475467;font-size:12px;font-weight:800}
.masterbook-range-inputs,.masterbook-trend-inputs{display:flex;align-items:center;gap:8px}
.masterbook-range-inputs input,.masterbook-control-group select,.masterbook-trend-inputs input{min-height:42px;border:1px solid var(--line-strong);border-radius:10px;background:white;color:var(--ink)}
.masterbook-range-inputs input{min-width:0;width:100%;padding:8px 10px}
.masterbook-range-arrow{color:var(--muted);font-size:12px;font-weight:800}
.masterbook-control-group>select{width:100%;padding:8px 32px 8px 10px}
.masterbook-trend-inputs input{width:82px;padding:8px 10px}
.masterbook-trend-inputs select{min-width:116px;padding:8px 30px 8px 10px}
.masterbook-control-hint{min-height:16px;color:var(--muted);font-size:10px}
.masterbook-apply{min-width:106px}
.masterbook-message{margin:0 0 14px;padding:10px 12px;border-radius:11px;background:var(--success-soft);color:var(--success);font-size:12px;font-weight:750}
.masterbook-message.error{background:var(--danger-soft);color:var(--danger)}
.masterbook-tabs{display:flex;gap:4px;margin-top:22px;padding:0 2px;border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:none}
.masterbook-tabs::-webkit-scrollbar{display:none}
.masterbook-tab{position:relative;display:inline-flex;min-height:45px;align-items:center;padding:10px 13px;border:0;background:transparent;color:#667085;cursor:pointer;font-size:13px;font-weight:760;white-space:nowrap}
.masterbook-tab:hover{color:var(--ink)}
.masterbook-tab[aria-selected="true"]{color:var(--accent-hover)}
.masterbook-tab[aria-selected="true"]::after{position:absolute;right:10px;bottom:-1px;left:10px;height:2px;border-radius:999px;background:var(--accent);content:""}
.masterbook-panel{padding-top:22px}
.masterbook-command-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:13px}
.masterbook-command-head h2{margin:0 0 3px;font-size:21px}
.masterbook-command-head p{margin:0;color:var(--muted);font-size:12px}
.masterbook-range-summary{display:grid;justify-items:end;gap:2px;color:#475467;font-size:11px;font-weight:750;text-align:right}
.masterbook-range-summary span:last-child{color:var(--muted);font-weight:650}
.masterbook-command-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.masterbook-metric-card{position:relative;display:grid;min-height:194px;padding:17px 17px 15px;overflow:hidden;border:1px solid var(--line);border-radius:17px;background:white;box-shadow:0 8px 24px rgba(23,32,51,.045);transition:transform 140ms ease,box-shadow 140ms ease,border-color 140ms ease}
.masterbook-metric-card:hover{transform:translateY(-2px);border-color:#d7dce4;box-shadow:0 13px 30px rgba(23,32,51,.075)}
.masterbook-metric-card::before{position:absolute;inset:0 0 auto;height:3px;background:var(--line-strong);content:""}
.masterbook-metric-card.positive::before{background:var(--success)}
.masterbook-metric-card.negative::before{background:#d89a22}
.masterbook-metric-card.context::before{background:#397fe8}
.masterbook-metric-card.no-data::before{background:var(--off)}
.masterbook-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.masterbook-card-title{display:grid;gap:2px}
.masterbook-card-title strong{font-size:13px;line-height:1.25}
.masterbook-card-title span{color:var(--muted);font-size:10px}
.masterbook-info{display:grid;width:23px;height:23px;place-items:center;border:1px solid var(--line);border-radius:8px;background:white;color:var(--muted);font-size:10px;font-weight:900;cursor:help}
.masterbook-card-value{margin:15px 0 4px;font-size:30px;line-height:1;font-weight:860;letter-spacing:-.045em;font-variant-numeric:tabular-nums}
.masterbook-card-target{color:var(--muted);font-size:10px;font-weight:700}
.masterbook-card-footer{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px;margin-top:auto;padding-top:14px}
.masterbook-card-status{display:inline-flex;width:max-content;max-width:100%;align-items:center;gap:6px;padding:5px 8px;border-radius:999px;font-size:10px;font-weight:820;white-space:nowrap}
.masterbook-card-status::before{width:6px;height:6px;flex:0 0 auto;border-radius:50%;background:currentColor;content:""}
.masterbook-card-status.positive{background:var(--success-soft);color:var(--success)}
.masterbook-card-status.negative{background:var(--warning-soft);color:#a56a0a}
.masterbook-card-status.context{background:var(--blue-soft);color:#3970b7}
.masterbook-card-status.no-data{background:var(--soft);color:var(--muted)}
.masterbook-card-delta{margin-top:5px;color:#475467;font-size:10px;font-weight:700;line-height:1.35}
.masterbook-spark-wrap{display:grid;justify-items:end;gap:2px}
.masterbook-sparkline{display:block;width:112px;height:42px;overflow:visible;color:#6f7c90}
.masterbook-metric-card.positive .masterbook-sparkline{color:var(--success)}
.masterbook-metric-card.negative .masterbook-sparkline{color:#c28618}
.masterbook-metric-card.context .masterbook-sparkline{color:#397fe8}
.masterbook-sparkline .spark-area{fill:currentColor;opacity:.08}
.masterbook-sparkline .spark-line{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.masterbook-sparkline .spark-dot{fill:white;stroke:currentColor;stroke-width:2}
[data-masterbook-trend]{cursor:crosshair;outline:none}
[data-masterbook-trend]:focus-visible{filter:drop-shadow(0 0 3px rgba(57,127,232,.38))}
.masterbook-trend-guide,.masterbook-trend-hover-dot{opacity:0;pointer-events:none;transition:opacity 90ms ease}
.masterbook-trend-guide{stroke:currentColor;stroke-width:1;stroke-dasharray:3 3}
.masterbook-trend-hover-dot{fill:white;stroke:currentColor;stroke-width:2.5}
[data-masterbook-trend].is-inspecting .masterbook-trend-guide{opacity:.42}
[data-masterbook-trend].is-inspecting .masterbook-trend-hover-dot{opacity:1}
.masterbook-trend-tooltip{position:fixed;z-index:900;display:grid;min-width:150px;gap:2px;padding:10px 12px;border:1px solid rgba(255,255,255,.12);border-radius:11px;background:#172033;color:white;box-shadow:0 12px 30px rgba(17,24,39,.24);pointer-events:none;transform:translateZ(0)}
.masterbook-trend-tooltip[hidden]{display:none}
.masterbook-trend-tooltip-label{max-width:220px;overflow:hidden;color:#cfd7e5;font-size:10px;font-weight:780;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}
.masterbook-trend-tooltip-value{font-size:16px;font-weight:850;letter-spacing:-.02em;line-height:1.25;font-variant-numeric:tabular-nums}
.masterbook-trend-tooltip-date{color:#aeb9cb;font-size:10px;font-weight:680;line-height:1.35}
.masterbook-spark-label{color:var(--muted);font-size:8px;font-weight:750;white-space:nowrap}
.masterbook-placeholder{display:grid;min-height:380px;place-content:center;justify-items:center;padding:42px;border:1px dashed var(--line-strong);border-radius:18px;background:rgba(255,255,255,.65);text-align:center}
.masterbook-placeholder-icon{display:grid;width:54px;height:54px;place-items:center;margin-bottom:14px;border-radius:16px;background:var(--accent-soft);color:var(--accent-hover);font-size:22px;font-weight:850}
.masterbook-placeholder h2{margin:0 0 7px;font-size:22px}
.masterbook-placeholder p{max-width:480px;margin:0;color:var(--muted)}
@media(max-width:1180px){.masterbook-controls{grid-template-columns:1fr 1fr}.masterbook-apply{grid-column:1/-1;justify-self:end}.masterbook-command-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.masterbook-heading{align-items:flex-start;flex-direction:column}.masterbook-publication-state{justify-items:start}.masterbook-controls{grid-template-columns:1fr}.masterbook-apply{grid-column:auto;width:100%}.masterbook-command-head{align-items:flex-start;flex-direction:column}.masterbook-range-summary{justify-items:start;text-align:left}}
@media(max-width:560px){.masterbook-command-grid{grid-template-columns:1fr}.masterbook-range-inputs{align-items:stretch;flex-direction:column}.masterbook-range-arrow{display:none}.masterbook-tabs{margin-right:-20px;padding-right:20px}.masterbook-metric-card{min-height:184px}}


/* Master Book Org Health */
.masterbook-org-stack{display:grid;gap:18px}
.masterbook-org-hero{position:relative;display:grid;grid-template-columns:minmax(250px,.72fr) minmax(420px,1.28fr);min-height:300px;overflow:hidden;border:1px solid var(--line);border-radius:22px;background:white;box-shadow:0 14px 34px rgba(23,32,51,.065)}
.masterbook-org-hero::before{position:absolute;inset:0 0 auto;height:4px;background:var(--line-strong);content:""}
.masterbook-org-hero.positive::before{background:var(--success)}
.masterbook-org-hero.negative::before{background:#d89a22}
.masterbook-org-hero.no-data::before{background:var(--off)}
.masterbook-org-hero-copy{display:grid;align-content:center;padding:30px 30px 28px;border-right:1px solid var(--line)}
.masterbook-org-kicker{margin:0 0 8px;color:var(--accent-hover);font-size:11px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}
.masterbook-org-hero-copy h2{margin:0 0 7px;font-size:25px}
.masterbook-org-hero-description{max-width:370px;margin:0;color:var(--muted);font-size:12px}
.masterbook-org-hero-value{margin:26px 0 6px;font-size:58px;line-height:.94;font-weight:880;letter-spacing:-.06em;font-variant-numeric:tabular-nums}
.masterbook-org-hero-target{color:#667085;font-size:12px;font-weight:750}
.masterbook-org-hero-status{display:inline-flex;width:max-content;align-items:center;gap:7px;margin-top:17px;padding:7px 10px;border-radius:999px;font-size:11px;font-weight:830}
.masterbook-org-hero-status::before{width:7px;height:7px;border-radius:50%;background:currentColor;content:""}
.masterbook-org-hero-status.positive{background:var(--success-soft);color:var(--success)}
.masterbook-org-hero-status.negative{background:var(--warning-soft);color:#a56a0a}
.masterbook-org-hero-status.no-data{background:var(--soft);color:var(--muted)}
.masterbook-org-hero-delta{margin:8px 0 0;color:#475467;font-size:11px;font-weight:700}
.masterbook-org-chart-panel{display:grid;align-content:center;min-width:0;padding:26px 28px 22px}
.masterbook-org-chart-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:10px}
.masterbook-org-chart-head strong{font-size:13px}
.masterbook-org-chart-head span{color:var(--muted);font-size:10px;font-weight:700;text-align:right}
.masterbook-org-chart{display:block;width:100%;height:214px;overflow:visible;color:#6f7c90}
.masterbook-org-hero.positive .masterbook-org-chart{color:var(--success)}
.masterbook-org-hero.negative .masterbook-org-chart{color:#c28618}
.masterbook-org-chart .chart-grid{stroke:#e9ecf1;stroke-width:1}
.masterbook-org-chart .chart-area{fill:currentColor;opacity:.075}
.masterbook-org-chart .chart-line{fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.masterbook-org-chart .chart-dot{fill:white;stroke:currentColor;stroke-width:3}
.masterbook-org-chart .chart-target{stroke:#98a2b3;stroke-width:1.5;stroke-dasharray:5 5}
.masterbook-org-chart .chart-target-label{fill:#667085;font-size:10px;font-weight:750}
.masterbook-org-section{overflow:hidden;border:1px solid var(--line);border-radius:19px;background:white;box-shadow:0 8px 24px rgba(23,32,51,.045)}
.masterbook-org-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;padding:21px 23px 17px;border-bottom:1px solid var(--line)}
.masterbook-org-section-head h2{margin:0 0 3px;font-size:20px}
.masterbook-org-section-head p{margin:0;color:var(--muted);font-size:12px}
.masterbook-org-section-head span{color:var(--muted);font-size:10px;font-weight:700;text-align:right}
.masterbook-org-table-wrap{overflow:auto}
.masterbook-org-table{width:100%;min-width:870px;border-collapse:collapse}
.masterbook-org-table th{padding:11px 16px;background:#fafbfc;color:#667085;font-size:10px;font-weight:850;letter-spacing:.055em;text-align:left;text-transform:uppercase}
.masterbook-org-table td{padding:14px 16px;border-top:1px solid var(--line);vertical-align:middle}
.masterbook-org-table tbody tr:first-child td{border-top:0}
.masterbook-org-table tbody tr:hover{background:#fcfcfd}
.masterbook-org-metric-name{display:grid;gap:2px}
.masterbook-org-metric-name strong{font-size:13px}
.masterbook-org-metric-name span{color:var(--muted);font-size:10px}
.masterbook-org-number{font-size:13px;font-weight:820;font-variant-numeric:tabular-nums;white-space:nowrap}
.masterbook-org-target{color:#475467;font-size:11px;font-weight:730;white-space:nowrap}
.masterbook-org-status{display:inline-flex;align-items:center;gap:6px;padding:5px 8px;border-radius:999px;font-size:10px;font-weight:820;white-space:nowrap}
.masterbook-org-status::before{width:6px;height:6px;border-radius:50%;background:currentColor;content:""}
.masterbook-org-status.positive{background:var(--success-soft);color:var(--success)}
.masterbook-org-status.negative{background:var(--warning-soft);color:#a56a0a}
.masterbook-org-status.context{background:var(--blue-soft);color:#3970b7}
.masterbook-org-status.no-data{background:var(--soft);color:var(--muted)}
.masterbook-org-table .masterbook-sparkline{width:134px;height:45px}
.masterbook-org-trend-cell{display:flex;align-items:center;justify-content:flex-end;color:#6f7c90}
.masterbook-org-trend-cell.positive{color:var(--success)}
.masterbook-org-trend-cell.negative{color:#c28618}
.masterbook-org-trend-cell.context{color:#397fe8}
.masterbook-driver-table{min-width:900px}
.masterbook-driver-name{display:grid;gap:3px}
.masterbook-driver-name strong{font-size:13px}
.masterbook-driver-name span{max-width:300px;color:var(--muted);font-size:10px}
.masterbook-driver-score{display:inline-flex;min-width:86px;align-items:baseline;gap:3px;font-size:22px;font-weight:860;letter-spacing:-.035em;font-variant-numeric:tabular-nums}
.masterbook-driver-score small{color:var(--muted);font-size:10px;font-weight:750;letter-spacing:0}
.masterbook-component-list{display:flex;flex-wrap:wrap;gap:7px}
.masterbook-component-chip{display:inline-flex;align-items:center;gap:6px;padding:7px 9px;border:1px solid var(--line);border-radius:10px;background:#fbfcfd;color:#475467;font-size:10px;font-weight:730}
.masterbook-component-chip strong{color:var(--ink);font-size:11px}
.masterbook-driver-readout{max-width:280px;color:#667085;font-size:10px;line-height:1.45}
@media(max-width:980px){.masterbook-org-hero{grid-template-columns:1fr}.masterbook-org-hero-copy{border-right:0;border-bottom:1px solid var(--line)}}
@media(max-width:620px){.masterbook-org-hero-copy,.masterbook-org-chart-panel{padding:22px 20px}.masterbook-org-hero-value{font-size:48px}.masterbook-org-chart{height:180px}.masterbook-org-section-head{align-items:flex-start;flex-direction:column}.masterbook-org-section-head span{text-align:left}}


/* Master Book Specialist Leaderboard */
.masterbook-leaderboard-stack{display:grid;gap:16px}
.masterbook-leaderboard-controls{display:grid;grid-template-columns:minmax(210px,1.2fr) minmax(230px,1fr) minmax(170px,.75fr) minmax(220px,1fr);gap:14px;align-items:end;padding:18px;border:1px solid var(--line);border-radius:18px;background:white;box-shadow:0 8px 22px rgba(23,32,51,.045)}
.masterbook-leaderboard-control{display:grid;gap:7px;min-width:0}
.masterbook-leaderboard-control>label,.masterbook-leaderboard-control-label{color:#344054;font-size:11px;font-weight:830}
.masterbook-leaderboard-control select,.masterbook-leaderboard-control input{width:100%;min-width:0;height:42px;padding:0 11px;border:1px solid var(--line);border-radius:11px;background:white;color:var(--ink);font:inherit;font-size:12px;outline:none}
.masterbook-leaderboard-control select:focus,.masterbook-leaderboard-control input:focus{border-color:#8292a9;box-shadow:0 0 0 3px rgba(89,109,136,.12)}
.masterbook-sort-toggle{display:grid;grid-template-columns:1fr 1fr;padding:3px;border:1px solid var(--line);border-radius:11px;background:#f6f8fa}
.masterbook-sort-button{min-height:34px;padding:6px 10px;border:0;border-radius:8px;background:transparent;color:#667085;font:inherit;font-size:11px;font-weight:780;cursor:pointer}
.masterbook-sort-button[aria-pressed="true"]{background:white;color:var(--ink);box-shadow:0 2px 7px rgba(23,32,51,.1)}
.masterbook-leaderboard-note{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:-2px;padding:0 3px;color:var(--muted);font-size:10px}
.masterbook-leaderboard-summary{font-weight:760;color:#475467}
.masterbook-leaderboard-table-card{overflow:hidden;border:1px solid var(--line);border-radius:19px;background:white;box-shadow:0 8px 24px rgba(23,32,51,.045)}
.masterbook-leaderboard-table-wrap{overflow:auto;max-width:100%}
.masterbook-leaderboard-table{width:100%;min-width:1380px;border-collapse:separate;border-spacing:0}
.masterbook-leaderboard-table th{position:relative;padding:12px 13px;border-bottom:1px solid var(--line);background:#fafbfc;color:#667085;font-size:9.5px;font-weight:850;letter-spacing:.055em;text-align:left;text-transform:uppercase;white-space:nowrap}
.masterbook-leaderboard-table td{padding:13px;border-bottom:1px solid var(--line);background:white;vertical-align:middle;font-size:11px}
.masterbook-leaderboard-table tbody tr:last-child td{border-bottom:0}
.masterbook-leaderboard-table tbody tr:hover td{background:#fcfcfd}
.masterbook-leaderboard-table th:nth-child(1),.masterbook-leaderboard-table td:nth-child(1){position:sticky;left:0;z-index:4;width:68px;min-width:68px;text-align:center}
.masterbook-leaderboard-table th:nth-child(2),.masterbook-leaderboard-table td:nth-child(2){position:sticky;left:68px;z-index:3;min-width:235px}
.masterbook-leaderboard-table th:nth-child(1),.masterbook-leaderboard-table th:nth-child(2){z-index:6;background:#f7f9fb}
.masterbook-leaderboard-table td:nth-child(1),.masterbook-leaderboard-table td:nth-child(2){background:white}
.masterbook-leaderboard-table tbody tr:hover td:nth-child(1),.masterbook-leaderboard-table tbody tr:hover td:nth-child(2){background:#fcfcfd}
.masterbook-leaderboard-table th.selected-metric{background:#eef5ff;color:#356cac}
.masterbook-leaderboard-table td.selected-metric{background:#f7fbff;font-weight:840;color:#245d9d}
.masterbook-leaderboard-table tbody tr:hover td.selected-metric{background:#eef6ff}
.masterbook-rank{display:inline-flex;width:31px;height:31px;align-items:center;justify-content:center;border-radius:50%;background:#f2f4f7;color:#475467;font-size:11px;font-weight:860;font-variant-numeric:tabular-nums}
.masterbook-rank.top-1{background:#fff2bf;color:#8a5d00;box-shadow:inset 0 0 0 1px #efd783}
.masterbook-rank.top-2{background:#edf0f4;color:#596273;box-shadow:inset 0 0 0 1px #d3d8df}
.masterbook-rank.top-3{background:#f5e3d6;color:#8b5535;box-shadow:inset 0 0 0 1px #e6c4ab}
.masterbook-specialist-cell{display:flex;align-items:center;gap:10px;min-width:0}
.masterbook-leaderboard-avatar{display:inline-flex;width:38px;height:38px;flex:0 0 38px;align-items:center;justify-content:center;overflow:hidden;border-radius:50%;background:#edf1f5;color:#435168;font-size:11px;font-weight:850}
.masterbook-leaderboard-avatar img{width:100%;height:100%;object-fit:cover}
.masterbook-specialist-copy{display:grid;gap:2px;min-width:0}
.masterbook-specialist-copy strong{overflow:hidden;color:var(--ink);font-size:12px;text-overflow:ellipsis;white-space:nowrap}
.masterbook-specialist-copy span{overflow:hidden;color:var(--muted);font-size:9.5px;text-overflow:ellipsis;white-space:nowrap}
.masterbook-team-chip{display:inline-flex;align-items:center;padding:5px 8px;border:1px solid var(--line);border-radius:999px;background:#fbfcfd;color:#475467;font-size:9.5px;font-weight:790;white-space:nowrap}
.masterbook-score-cell{font-size:13px;font-weight:860;font-variant-numeric:tabular-nums;white-space:nowrap}
.masterbook-score-cell small{color:var(--muted);font-size:9px;font-weight:720}
.masterbook-leaderboard-status{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border-radius:999px;font-size:9.5px;font-weight:840;white-space:nowrap}
.masterbook-leaderboard-status::before{width:6px;height:6px;border-radius:50%;background:currentColor;content:""}
.masterbook-leaderboard-status.excellent{background:#dcf8e7;color:#177a45}
.masterbook-leaderboard-status.healthy{background:#eaf8ef;color:#2c8554}
.masterbook-leaderboard-status.watch{background:var(--warning-soft);color:#a56a0a}
.masterbook-leaderboard-status.at-risk{background:#fde8e8;color:#ba3636}
.masterbook-leaderboard-status.low-sample{background:#edf2f8;color:#5a6d85}
.masterbook-leaderboard-status.no-data{background:#f2f4f7;color:#667085}
.masterbook-signal-cell{display:grid;gap:3px;min-width:130px}
.masterbook-signal-cell strong{font-size:10.5px}
.masterbook-signal-cell span{color:var(--muted);font-size:9px;line-height:1.3}
.masterbook-signal-cell.strength strong{color:#23764a}
.masterbook-signal-cell.watchout strong{color:#a56709}
.masterbook-metric-number{font-weight:790;font-variant-numeric:tabular-nums;white-space:nowrap}
.masterbook-low-sample-mark{display:block;margin-top:2px;color:#7a8ba1;font-size:8.5px;font-weight:760}
.masterbook-leaderboard-empty{padding:52px 24px;color:var(--muted);text-align:center}
.masterbook-leaderboard-empty strong{display:block;margin-bottom:5px;color:var(--ink);font-size:14px}
@media(max-width:1120px){.masterbook-leaderboard-controls{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:660px){.masterbook-leaderboard-controls{grid-template-columns:1fr}.masterbook-leaderboard-note{align-items:flex-start;flex-direction:column;gap:4px}}


/* Master Book Specialist Explorer */
.masterbook-explorer-stack{display:grid;gap:18px}
.masterbook-explorer-selector{
  display:grid;grid-template-columns:minmax(290px,1.1fr) minmax(260px,.9fr);gap:18px;align-items:center;
  padding:17px 19px;border:1px solid var(--line);border-radius:18px;background:white;box-shadow:0 8px 22px rgba(23,32,51,.045)
}
.masterbook-explorer-selector-control{display:grid;grid-template-columns:46px minmax(0,1fr);gap:12px;align-items:center}
.masterbook-explorer-selector-avatar{display:grid;width:46px;height:46px;place-items:center;overflow:hidden;border-radius:50%;background:#edf1f5;color:#435168;font-size:12px;font-weight:850}
.masterbook-explorer-selector-avatar img{width:100%;height:100%;object-fit:cover}
.masterbook-explorer-select-copy{display:grid;gap:6px;min-width:0}
.masterbook-explorer-select-copy label{color:#344054;font-size:11px;font-weight:830}
.masterbook-explorer-select-copy select{width:100%;height:42px;padding:0 34px 0 11px;border:1px solid var(--line);border-radius:11px;background:white;color:var(--ink);font:inherit;font-size:12px;outline:none}
.masterbook-explorer-select-copy select:focus{border-color:#8292a9;box-shadow:0 0 0 3px rgba(89,109,136,.12)}
.masterbook-explorer-selector-summary{display:grid;justify-items:end;gap:4px;text-align:right}
.masterbook-explorer-selector-summary strong{font-size:13px}
.masterbook-explorer-selector-summary span{color:var(--muted);font-size:10px}
.masterbook-explorer-demo-pill{display:inline-flex;align-items:center;gap:6px;width:max-content;padding:5px 8px;border-radius:999px;background:var(--blue-soft);color:#3970b7;font-size:9.5px;font-weight:820}
.masterbook-explorer-demo-pill::before{width:6px;height:6px;border-radius:50%;background:currentColor;content:""}
.masterbook-explorer .performance-section{margin-top:0}
.masterbook-explorer .performance-main-grid{margin-top:0}
.masterbook-explorer .performance-trend-card{margin-top:0}
.masterbook-explorer .performance-profile-card{position:sticky;top:88px}
.masterbook-explorer .performance-coverage-pill.demo{background:var(--blue-soft)!important;color:#3970b7!important}
@media(max-width:820px){
  .masterbook-explorer-selector{grid-template-columns:1fr}
  .masterbook-explorer-selector-summary{justify-items:start;text-align:left}
  .masterbook-explorer .performance-profile-card{position:static}
}
@media(max-width:560px){
  .masterbook-explorer-selector-control{grid-template-columns:40px minmax(0,1fr)}
  .masterbook-explorer-selector-avatar{width:40px;height:40px}
}


/* Master Book weekly history and glossary */
.masterbook-weekly-stack,.masterbook-glossary-stack{display:grid;gap:16px}
.masterbook-weekly-toolbar{display:flex;align-items:end;justify-content:space-between;gap:16px;padding:16px 18px;border:1px solid var(--line);border-radius:17px;background:white;box-shadow:0 8px 22px rgba(23,32,51,.045)}
.masterbook-weekly-toolbar-copy{display:grid;gap:3px}.masterbook-weekly-toolbar-copy strong{font-size:12px}.masterbook-weekly-toolbar-copy span{color:var(--muted);font-size:10px}
.masterbook-weekly-size{display:grid;gap:6px;min-width:130px}.masterbook-weekly-size label{font-size:10px;font-weight:820}.masterbook-weekly-size select{height:39px;padding:0 10px;border:1px solid var(--line);border-radius:10px;background:white;color:var(--ink);font:inherit;font-size:11px}
.masterbook-history-card,.masterbook-glossary-card{overflow:hidden;border:1px solid var(--line);border-radius:19px;background:white;box-shadow:0 8px 24px rgba(23,32,51,.045)}
.masterbook-history-wrap,.masterbook-glossary-wrap{overflow:auto}
.masterbook-history-table{width:100%;min-width:1120px;border-collapse:separate;border-spacing:0}.masterbook-glossary-table{width:100%;min-width:980px;border-collapse:collapse}
.masterbook-history-table th,.masterbook-glossary-table th{padding:11px 13px;border-bottom:1px solid var(--line);background:#fafbfc;color:#667085;font-size:9.5px;font-weight:850;letter-spacing:.055em;text-align:left;text-transform:uppercase;white-space:nowrap}
.masterbook-history-table td,.masterbook-glossary-table td{padding:13px;border-bottom:1px solid var(--line);background:white;vertical-align:middle;font-size:10.5px}
.masterbook-history-table tbody tr:last-child td,.masterbook-glossary-table tbody tr:last-child td{border-bottom:0}
.masterbook-history-table tbody tr:hover td,.masterbook-glossary-table tbody tr:hover td{background:#fcfcfd}
.masterbook-history-table th:first-child,.masterbook-history-table td:first-child{position:sticky;left:0;z-index:3;min-width:162px;background:white}.masterbook-history-table th:first-child{z-index:5;background:#f7f9fb}.masterbook-history-table tbody tr:hover td:first-child{background:#fcfcfd}
.masterbook-week-cell{display:grid;gap:2px}.masterbook-week-cell strong{font-size:11.5px}.masterbook-week-cell span{color:var(--muted);font-size:9px}.masterbook-history-number{font-weight:790;font-variant-numeric:tabular-nums;white-space:nowrap}
.masterbook-weekly-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;border-top:1px solid var(--line)}
.masterbook-weekly-page-summary{color:#667085;font-size:10px;font-weight:720}.masterbook-weekly-pagination{display:flex;align-items:center;gap:8px}.masterbook-weekly-pagination button{min-height:34px;padding:0 11px;border:1px solid var(--line);border-radius:9px;background:white;color:#344054;font:inherit;font-size:10px;font-weight:780;cursor:pointer}.masterbook-weekly-pagination button:disabled{cursor:not-allowed;opacity:.45}.masterbook-weekly-page-label{min-width:82px;color:#475467;font-size:10px;font-weight:780;text-align:center}
.masterbook-glossary-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.masterbook-glossary-gear{display:inline-flex;width:38px;height:38px;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:11px;background:white;color:#475467;font-size:17px;cursor:pointer}.masterbook-glossary-gear:hover{background:#f7f9fb;color:var(--ink)}
.masterbook-glossary-metric{display:grid;gap:2px}.masterbook-glossary-metric strong{font-size:11.5px}.masterbook-glossary-metric span{color:var(--muted);font-size:9px}.masterbook-glossary-definition{max-width:320px;color:#344054;line-height:1.45}.masterbook-glossary-target{font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}.masterbook-glossary-direction{display:inline-flex;padding:5px 8px;border-radius:999px;background:#eef4fb;color:#4b6789;font-size:9px;font-weight:820;white-space:nowrap}.masterbook-glossary-direction.higher{background:#eaf8ef;color:#2b8052}.masterbook-glossary-direction.lower{background:#fff4dc;color:#9a650c}.masterbook-glossary-caveat{max-width:330px;color:#667085;line-height:1.45}
.masterbook-target-choice{display:grid;grid-template-columns:minmax(210px,1fr) minmax(150px,.56fr) minmax(125px,.38fr);gap:12px;align-items:center;padding:13px 0;border-bottom:1px solid var(--line)}.masterbook-target-choice:last-child{border-bottom:0}.masterbook-target-choice-label{display:grid;gap:2px}.masterbook-target-choice-label strong{font-size:11px}.masterbook-target-choice-label span{color:var(--muted);font-size:9px}.masterbook-target-input-wrap{display:flex;align-items:center;gap:7px}.masterbook-target-input-wrap input[type=number]{width:100%;height:38px;padding:0 9px;border:1px solid var(--line);border-radius:9px;font:inherit;font-size:11px}.masterbook-target-input-wrap input:disabled{background:#f2f4f7;color:#98a2b3}.masterbook-target-unit{min-width:45px;color:#667085;font-size:9px;font-weight:750}.masterbook-target-none{display:flex;align-items:center;gap:7px;color:#475467;font-size:9.5px;font-weight:740;white-space:nowrap}.masterbook-target-none input{width:16px;height:16px}
@media(max-width:760px){.masterbook-weekly-toolbar,.masterbook-weekly-footer,.masterbook-glossary-head{align-items:flex-start;flex-direction:column}.masterbook-weekly-size{width:100%}.masterbook-weekly-pagination{width:100%;justify-content:space-between}.masterbook-target-choice{grid-template-columns:1fr}.masterbook-target-none{padding-bottom:4px}}

.masterbook-head-tools{display:flex;align-items:center;gap:10px}.masterbook-head-tools .masterbook-range-summary{min-width:0}@media(max-width:700px){.masterbook-head-tools{align-items:flex-end;flex-direction:column}}

/* Apps and integration shell */
.apps-page{display:grid;gap:22px}.apps-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px}.apps-page-head h1{margin:0;font-size:46px;letter-spacing:-.045em}.apps-page-head p{max-width:670px;margin:5px 0 0;color:var(--muted);font-size:15px}.apps-message{padding:11px 14px;border:1px solid #cfe3d8;border-radius:12px;background:var(--success-soft);color:var(--success);font-size:12px;font-weight:760}.apps-message.error{border-color:#f2c7c7;background:#fff3f3;color:#b63a3a}.apps-message.warning{border-color:#efd79f;background:var(--warning-soft);color:#93610d}.apps-catalog-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.apps-catalog-head h2{margin:0;font-size:20px}.apps-catalog-head span{color:var(--muted);font-size:11px}.apps-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.apps-tile{display:grid;grid-template-columns:auto 1fr auto auto;gap:13px;align-items:center;min-height:118px;padding:18px;border:1px solid var(--line);border-radius:18px;background:white;color:var(--ink);text-align:left;cursor:pointer;box-shadow:0 7px 20px rgba(23,32,51,.045)}.apps-tile:hover{border-color:#c6ccd5;transform:translateY(-1px);box-shadow:0 11px 26px rgba(23,32,51,.075)}.apps-tile>svg{width:18px;color:#98a2b3}.apps-tile-icon{display:grid;width:54px;height:54px;place-items:center;border-radius:15px;background:#eef3ff}.apps-intercom-mark{display:flex;height:30px;align-items:flex-end;gap:3px}.apps-intercom-mark i{display:block;width:3px;border-radius:2px;background:#1f6ce2}.apps-intercom-mark i:nth-child(1),.apps-intercom-mark i:nth-child(6){height:18px}.apps-intercom-mark i:nth-child(2),.apps-intercom-mark i:nth-child(5){height:23px}.apps-intercom-mark i:nth-child(3),.apps-intercom-mark i:nth-child(4){height:29px}.apps-tile-copy{display:grid;gap:4px;min-width:0}.apps-tile-copy strong{font-size:15px}.apps-tile-copy span{color:var(--muted);font-size:11px;line-height:1.45}.apps-tile-status{padding:5px 8px;border-radius:999px;font-size:9px;font-weight:850;text-transform:uppercase}.apps-tile-status.connected{background:var(--success-soft);color:var(--success)}.apps-tile-status.available{background:var(--blue-soft);color:#3d70b5}.apps-integration-top{display:flex;align-items:center;gap:12px;margin-bottom:14px}.apps-back{display:inline-flex;align-items:center;gap:7px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:white;color:#536071;font:inherit;font-size:11px;font-weight:780;cursor:pointer}.apps-back svg{width:15px}.apps-integration-top h2{margin:0;font-size:22px}.apps-loading-card{display:flex;min-height:180px;align-items:center;justify-content:center;gap:10px;border:1px solid var(--line);border-radius:18px;background:white}.apps-loading-card span{width:16px;height:16px;border:2px solid #d5dae2;border-top-color:var(--accent);border-radius:50%;animation:appspin .7s linear infinite}@keyframes appspin{to{transform:rotate(360deg)}}
.intercom-page{display:grid;gap:16px}.intercom-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px;border:1px solid var(--line);border-radius:18px;background:white}.intercom-identity{display:flex;align-items:center;gap:14px}.intercom-icon{display:grid;width:55px;height:55px;place-items:center;border-radius:15px;background:#eef3ff}.intercom-identity h3{margin:0 0 4px;font-size:19px}.intercom-identity p{margin:0;color:var(--muted);font-size:11px}.intercom-connection{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border-radius:999px;background:var(--success-soft);color:var(--success);font-size:10px;font-weight:820}.intercom-connection:before{width:7px;height:7px;border-radius:50%;background:currentColor;content:""}.intercom-control-card,.intercom-status-card,.intercom-table-card,.intercom-applied-card{border:1px solid var(--line);border-radius:18px;background:white;overflow:hidden}.intercom-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:15px;padding:18px 19px 14px;border-bottom:1px solid var(--line)}.intercom-section-head h3{margin:0 0 3px;font-size:17px}.intercom-section-head p{margin:0;color:var(--muted);font-size:10px}.intercom-range-controls{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:18px 19px}.intercom-field{display:grid;gap:6px}.intercom-field label{font-size:10px;font-weight:820;color:#475467}.intercom-field input{height:42px;padding:0 11px;border:1px solid var(--line);border-radius:10px;background:white;font:inherit;font-size:12px}.intercom-actions{display:flex;flex-wrap:wrap;gap:9px;padding:0 19px 19px}.intercom-button{min-height:40px;padding:9px 13px;border:1px solid var(--line);border-radius:10px;background:white;color:#475467;font:inherit;font-size:11px;font-weight:800;cursor:pointer}.intercom-button.primary{border-color:var(--accent);background:var(--accent);color:white}.intercom-button.danger{border-color:#efc9c9;color:#b83b3b}.intercom-button.apply{border-color:#b8dfc6;background:var(--success-soft);color:var(--success)}.intercom-button:disabled{opacity:.45;cursor:not-allowed}.intercom-status-grid{display:grid;grid-template-columns:1.2fr 1fr 1fr 1fr;gap:12px;padding:18px 19px}.intercom-status-item{display:grid;gap:4px;padding:11px;border-radius:12px;background:#f8fafc}.intercom-status-item span{color:var(--muted);font-size:9px;font-weight:800;text-transform:uppercase}.intercom-status-item strong{font-size:12px}.intercom-status-pill,.intercom-mini-status{display:inline-flex;width:max-content;align-items:center;gap:6px;padding:5px 8px;border-radius:999px;font-size:9px;font-weight:850}.intercom-status-pill:before,.intercom-mini-status:before{width:6px;height:6px;border-radius:50%;background:currentColor;content:""}.intercom-status-pill.success,.intercom-mini-status.success{background:var(--success-soft);color:var(--success)}.intercom-status-pill.active,.intercom-mini-status.active{background:var(--blue-soft);color:#3673bb}.intercom-status-pill.warning,.intercom-mini-status.warning{background:var(--warning-soft);color:#96620c}.intercom-status-pill.error,.intercom-mini-status.error{background:#fff0f0;color:#bb3535}.intercom-status-pill.neutral,.intercom-mini-status.neutral{background:#f0f2f5;color:#667085}.intercom-progress{padding:0 19px 18px}.intercom-progress-head{display:flex;justify-content:space-between;margin-bottom:7px;color:#667085;font-size:10px;font-weight:780}.intercom-progress-track{height:10px;overflow:hidden;border-radius:999px;background:#edf0f4}.intercom-progress-bar{height:100%;width:0;border-radius:inherit;background:var(--accent);transition:width .25s ease}.intercom-error{margin:0 19px 18px;padding:10px 12px;border-radius:10px;background:#fff0f0;color:#b83b3b;font-size:11px}.intercom-stats{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;padding:0 19px 18px}.intercom-stat{padding:12px;border:1px solid var(--line);border-radius:12px}.intercom-stat span{display:block;color:var(--muted);font-size:9px;font-weight:800;text-transform:uppercase}.intercom-stat strong{display:block;margin-top:4px;font-size:20px}.intercom-table-wrap{overflow:auto}.intercom-table{width:100%;min-width:680px;border-collapse:collapse}.intercom-table th{padding:10px 14px;background:#fafbfc;color:#667085;font-size:9px;text-align:left;text-transform:uppercase}.intercom-table td{padding:11px 14px;border-top:1px solid var(--line);font-size:10px}.intercom-history-empty{padding:26px;color:var(--muted);font-size:11px;text-align:center}.intercom-applied-content{padding:16px 19px}.intercom-applied-chips{display:flex;flex-wrap:wrap;gap:8px}.intercom-applied-chip{padding:7px 9px;border:1px solid #cde0f7;border-radius:999px;background:#f4f8fe;color:#3d70b5;font-size:10px;font-weight:760}.intercom-applied-empty{color:var(--muted);font-size:11px}.intercom-pipeline-note{padding:13px 15px;border:1px solid #d7e4f7;border-radius:13px;background:#f7faff;color:#48627f;font-size:10px;line-height:1.5}
.intercom-button.download{margin-left:auto}
.intercom-action-note{margin:-9px 19px 18px;color:var(--muted);font-size:10px;line-height:1.45}
.intercom-jobs-head{align-items:center}.intercom-job-filters{display:flex;align-items:end;gap:9px}.intercom-job-filters label{display:grid;gap:4px;color:var(--muted);font-size:9px;font-weight:800}.intercom-job-filters select{min-height:36px;padding:6px 30px 6px 9px;border:1px solid var(--line);border-radius:9px;background:white;color:var(--ink);font-size:10px}.intercom-jobs-table{min-width:1180px}.intercom-job-command-cell{display:flex;min-width:350px;align-items:center;gap:10px}.intercom-job-actions{display:flex;flex:0 0 auto;flex-wrap:wrap;gap:5px}.intercom-job-actions button,.intercom-jobs-footer button{min-height:30px;padding:5px 8px;border:1px solid var(--line);border-radius:8px;background:white;color:#475467;font:inherit;font-size:9px;font-weight:800;cursor:pointer}.intercom-job-actions button:hover:not(:disabled),.intercom-jobs-footer button:hover:not(:disabled){border-color:#f1a77d;color:var(--accent)}.intercom-job-actions button:disabled{cursor:wait;opacity:.48}.intercom-job-actions button.danger{border-color:#efc9c9;color:#b83b3b}.intercom-job-actions button.apply{border-color:#b8dfc6;background:var(--success-soft);color:var(--success)}.intercom-job-operation{display:grid;width:190px;min-width:190px;gap:4px}.intercom-job-operation-head{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#3673bb;font-size:8px;font-weight:800}.intercom-job-operation-head span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.intercom-job-operation-track{height:6px;overflow:hidden;border-radius:999px;background:#e8eef7}.intercom-job-operation-track i{display:block;height:100%;border-radius:inherit;background:#4d86cc;transition:width .25s ease}.intercom-job-operation.success .intercom-job-operation-head{color:var(--success)}.intercom-job-operation.success .intercom-job-operation-track{background:#e1f1e8}.intercom-job-operation.success .intercom-job-operation-track i{background:var(--success)}.intercom-job-operation.error .intercom-job-operation-head,.intercom-job-operation.error small{color:var(--danger)}.intercom-job-operation.error .intercom-job-operation-track{background:#f9dfe1}.intercom-job-operation.error .intercom-job-operation-track i{background:var(--danger)}.intercom-job-operation small{font-size:8px;line-height:1.35}.intercom-jobs-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 16px;border-top:1px solid var(--line);color:var(--muted);font-size:10px}.intercom-jobs-footer>div{display:flex;align-items:center;gap:8px}.intercom-jobs-footer strong{min-width:80px;color:#475467;text-align:center}.intercom-jobs-footer button:disabled{cursor:not-allowed;opacity:.45}
.intercom-job-modal{width:min(100%,980px)}.intercom-job-detail-loading{display:flex;min-height:150px;align-items:center;justify-content:center;gap:10px;color:#475467}.intercom-job-detail-loading span{width:18px;height:18px;border:2px solid #d8dde5;border-top-color:var(--accent);border-radius:50%;animation:appspin .7s linear infinite}.intercom-job-detail-error,.intercom-job-detail-job-error{margin:0}.intercom-job-detail-content{display:grid;gap:18px}.intercom-job-detail-activity{display:flex;align-items:center;gap:11px;padding:12px 14px;border:1px solid #cbdcf3;border-radius:13px;background:#f4f8fe;color:#3673bb}.intercom-job-detail-activity>span{width:9px;height:9px;flex:0 0 auto;border-radius:50%;background:currentColor;box-shadow:0 0 0 4px rgba(77,134,204,.13)}.intercom-job-detail-activity>div{display:grid;gap:2px}.intercom-job-detail-activity strong{font-size:11px}.intercom-job-detail-activity p{margin:0;color:#5f6f83;font-size:9px}.intercom-job-detail-activity.success{border-color:#bfe2cc;background:#f0faf4;color:var(--success)}.intercom-job-detail-activity.warning{border-color:#edd79e;background:#fff9eb;color:#96620c}.intercom-job-detail-activity.error{border-color:#efc5c8;background:#fff4f4;color:#b83b3b}.intercom-job-detail-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,.65fr);gap:22px;padding:16px;border:1px solid var(--line);border-radius:15px;background:#f8fafc}.intercom-job-detail-hero>div:first-child{display:flex;min-width:0;align-items:center;gap:11px}.intercom-job-detail-hero>div:first-child>strong{overflow:hidden;color:#344054;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.intercom-job-detail-progress{display:grid;align-content:center;gap:7px}.intercom-job-detail-progress>div:first-child{display:flex;align-items:center;justify-content:space-between;color:#667085;font-size:10px;font-weight:780}.intercom-job-detail-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:0}.intercom-job-detail-grid>div{min-width:0;padding:11px;border:1px solid var(--line);border-radius:11px;background:white}.intercom-job-detail-grid dt{margin:0 0 5px;color:#667085;font-size:8px;font-weight:850;letter-spacing:.04em;text-transform:uppercase}.intercom-job-detail-grid dd{overflow-wrap:anywhere;margin:0;color:#263244;font-size:10px;font-weight:760}.intercom-job-detail-section{overflow:hidden;border:1px solid var(--line);border-radius:15px;background:white}.intercom-job-detail-section>header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 15px;border-bottom:1px solid var(--line);background:#fbfcfd}.intercom-job-detail-section>header h3{margin:0 0 2px;font-size:14px}.intercom-job-detail-section>header p{margin:0;color:var(--muted);font-size:9px}.intercom-job-detail-section>header>span{flex:0 0 auto;padding:5px 8px;border-radius:999px;background:#eef3f8;color:#536071;font-size:8px;font-weight:820}.intercom-job-detail-table-wrap{max-height:300px;overflow:auto}.intercom-job-detail-table{width:100%;border-collapse:collapse}.intercom-job-detail-table th{position:sticky;z-index:1;top:0;padding:9px 12px;border-bottom:1px solid var(--line);background:#f7f9fb;color:#667085;font-size:8px;text-align:left;text-transform:uppercase}.intercom-job-detail-table td{padding:10px 12px;border-bottom:1px solid #edf0f4;color:#344054;font-size:9px}.intercom-job-detail-table tbody tr:last-child td{border-bottom:0}.intercom-job-day-action{display:inline-flex;padding:4px 7px;border-radius:999px;background:#eef3f8;color:#536071;font-size:8px;font-weight:820;text-transform:capitalize}.intercom-job-day-action.fetch{background:#edf4ff;color:#3673bb}.intercom-job-day-action.reuse{background:var(--success-soft);color:var(--success)}.intercom-job-day-action.wait{background:var(--warning-soft);color:#96620c}.intercom-job-detail-events{display:grid;max-height:360px;overflow:auto;padding:5px 15px}.intercom-job-detail-events article{display:grid;grid-template-columns:12px minmax(0,1fr);gap:10px;padding:13px 0;border-bottom:1px solid #edf0f4}.intercom-job-detail-events article:last-child{border-bottom:0}.intercom-job-event-marker{width:9px;height:9px;margin-top:4px;border:2px solid white;border-radius:50%;background:#4d86cc;box-shadow:0 0 0 1px #b8c9df}.intercom-job-detail-events article>div:last-child{display:grid;gap:5px;min-width:0}.intercom-job-detail-events article header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.intercom-job-detail-events article header strong{font-size:10px;text-transform:capitalize}.intercom-job-detail-events time,.intercom-job-detail-events small{color:#7a8494;font-size:8px}.intercom-job-detail-events p{margin:0;color:#475467;font-size:9px;line-height:1.5}.intercom-job-detail-events details{margin-top:3px}.intercom-job-detail-events summary{width:max-content;color:#3673bb;font-size:8px;font-weight:780;cursor:pointer}.intercom-job-detail-events pre{max-height:190px;overflow:auto;margin:7px 0 0;padding:9px;border-radius:9px;background:#f5f7fa;color:#475467;font:8px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre-wrap}.intercom-job-detail-empty{margin:0;padding:22px;color:var(--muted);font-size:9px;text-align:center}
@media(max-width:1000px){.apps-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.intercom-status-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:640px){.apps-page-head,.intercom-hero,.intercom-section-head{align-items:flex-start;flex-direction:column}.apps-page-head h1{font-size:38px}.apps-grid{grid-template-columns:1fr}.apps-tile{grid-template-columns:auto 1fr auto}.apps-tile>svg{display:none}.intercom-range-controls,.intercom-status-grid,.intercom-stats{grid-template-columns:1fr}.intercom-actions{display:grid}.intercom-button,.intercom-button.download{width:100%;margin-left:0}}
.automated-imports-page{display:grid;gap:18px}.automated-imports-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:22px 24px;border:1px solid var(--line);border-radius:18px;background:white}.automated-imports-eyebrow{display:block;margin-bottom:5px;color:var(--accent);font-size:10px;font-weight:850;letter-spacing:.1em;text-transform:uppercase}.automated-imports-hero h3{margin:0;font-size:25px;letter-spacing:-.025em}.automated-imports-hero p{max-width:680px;margin:6px 0 0;color:var(--muted);font-size:12px;line-height:1.55}.automated-imports-access{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border-radius:999px;background:var(--blue-soft);color:#3d70b5;font-size:10px;font-weight:800;white-space:nowrap}.automated-imports-access i{width:7px;height:7px;border-radius:50%;background:#4e8dea}.automated-imports-message{padding:11px 14px;border:1px solid #cfe3d8;border-radius:12px;background:var(--success-soft);color:var(--success);font-size:12px;font-weight:760}.automated-imports-message.error{border-color:#f2c7c7;background:#fff3f3;color:#b63a3a}.automated-imports-message.loading{border-color:#cdddf4;background:#f4f8ff;color:#3d70b5}.automated-imports-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}.automated-imports-card{padding:20px;border:1px solid var(--line);border-radius:18px;background:white;box-shadow:0 7px 20px rgba(23,32,51,.04)}.automated-imports-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.automated-imports-card h4{margin:0;font-size:18px}.automated-imports-card header p{margin:4px 0 0;color:var(--muted);font-size:11px;line-height:1.45}.automated-imports-card header>span{padding:5px 8px;border-radius:999px;background:var(--success-soft);color:var(--success);font-size:9px;font-weight:850;text-transform:uppercase}.automated-imports-schedule{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0}.automated-imports-schedule>div{display:grid;gap:4px;padding:12px;border:1px solid var(--line);border-radius:12px;background:#fafbfc}.automated-imports-schedule small{color:var(--muted);font-size:9px;font-weight:750;text-transform:uppercase}.automated-imports-schedule strong{font-size:12px}.automated-imports-toggle{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid var(--line);border-radius:13px;cursor:pointer}.automated-imports-toggle>input{position:absolute;opacity:0;pointer-events:none}.automated-imports-toggle>span{position:relative;width:38px;height:22px;border-radius:999px;background:#c9d0db;transition:.2s}.automated-imports-toggle>span:after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:white;box-shadow:0 1px 3px rgba(0,0,0,.18);transition:.2s}.automated-imports-toggle>input:checked+span{background:var(--accent)}.automated-imports-toggle>input:checked+span:after{transform:translateX(16px)}.automated-imports-toggle>div{display:grid;gap:2px}.automated-imports-toggle strong{font-size:12px}.automated-imports-toggle small{color:var(--muted);font-size:10px;line-height:1.4}.automated-imports-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:16px}.automated-imports-run-status.complete{background:var(--success-soft)!important;color:var(--success)!important}.automated-imports-run-status.failed{background:#fff1f1!important;color:#b63a3a!important}.automated-imports-run-status.running{background:var(--warning-soft)!important;color:#93610d!important}.automated-imports-run-date{display:block;margin:18px 0 10px;font-size:16px}.automated-imports-jobs{display:grid;border:1px solid var(--line);border-radius:13px;overflow:hidden}.automated-import-job{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;padding:12px}.automated-import-job+article{border-top:1px solid var(--line)}.automated-import-job-dot{width:9px;height:9px;border-radius:50%;background:#aab3c0}.automated-import-job-dot.running,.automated-import-job-dot.waiting,.automated-import-job-dot.retry{background:#f2b63f}.automated-import-job-dot.complete{background:#32ad70}.automated-import-job-dot.failed{background:#e45d65}.automated-import-job>div{display:grid;gap:2px;min-width:0}.automated-import-job strong{font-size:12px}.automated-import-job small{overflow:hidden;color:var(--muted);font-size:10px;text-overflow:ellipsis;white-space:nowrap}.automated-import-job-state{color:var(--muted);font-size:9px;font-weight:800;text-transform:uppercase}.automated-imports-refresh{width:100%;margin-top:12px;padding:9px;border:1px solid var(--line);border-radius:10px;background:#fafbfc;color:#536071;font:inherit;font-size:10px;font-weight:800;cursor:pointer}.automated-imports-note{margin:0;padding:12px 14px;border:1px solid #dce4ef;border-radius:12px;background:#f7f9fc;color:#59677a;font-size:11px;line-height:1.55}@media(max-width:850px){.automated-imports-grid{grid-template-columns:1fr}}@media(max-width:560px){.automated-imports-hero{flex-direction:column}.automated-imports-schedule{grid-template-columns:1fr}.automated-imports-actions{display:grid}.automated-imports-actions .button{width:100%}}

.automated-analysis-config-card,.automated-analysis-latest-card,.automated-analysis-history-card{min-width:0}.automated-analysis-provider-state.ready{background:var(--success-soft)!important;color:var(--success)!important}.automated-analysis-provider-state.missing{background:var(--warning-soft)!important;color:#93610d!important}.automated-analysis-config-grid{display:grid;grid-template-columns:minmax(230px,1.5fr) repeat(3,minmax(150px,.8fr));gap:12px;margin-top:18px}.automated-analysis-field{display:grid;align-content:start;gap:6px}.automated-analysis-field>span{color:#39465a;font-size:10px;font-weight:820}.automated-analysis-field input,.automated-analysis-field select{width:100%;min-height:42px;padding:9px 11px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);font:inherit;font-size:11px}.automated-analysis-field input:focus,.automated-analysis-field select:focus{outline:2px solid color-mix(in srgb,var(--accent) 22%,transparent);border-color:var(--accent)}.automated-analysis-field small{color:var(--muted);font-size:9px;line-height:1.4}.automated-analysis-config-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:18px}.automated-analysis-toggle{flex:1;max-width:640px}.automated-analysis-toggle.disabled{cursor:not-allowed;opacity:.68}.automated-analysis-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:18px}.automated-analysis-summary>div{display:grid;gap:4px;padding:13px;border:1px solid var(--line);border-radius:12px;background:#fafbfc}.automated-analysis-summary span{color:var(--muted);font-size:9px;font-weight:800;text-transform:uppercase}.automated-analysis-summary strong{overflow:hidden;font-size:16px;text-overflow:ellipsis;white-space:nowrap}.automated-analysis-summary small{color:var(--muted);font-size:9px;line-height:1.35}.automated-analysis-audit-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:14px}.automated-analysis-audit-note{margin:14px 0 0;padding:11px 13px;border-radius:10px;background:#f5f8fc;color:#59677a;font-size:10px;line-height:1.5}.automated-analysis-table-wrap{margin:16px -20px -20px;overflow:auto;border-top:1px solid var(--line);border-radius:0 0 18px 18px}.automated-analysis-table{width:100%;min-width:980px;border-collapse:collapse}.automated-analysis-table th,.automated-analysis-table td{padding:11px 14px;border-bottom:1px solid var(--line);vertical-align:middle;text-align:left}.automated-analysis-table th{background:#f8fafc;color:var(--muted);font-size:8px;font-weight:850;letter-spacing:.045em;text-transform:uppercase}.automated-analysis-table td{color:#475469;font-size:10px}.automated-analysis-table tbody tr:last-child td{border-bottom:0}.automated-analysis-table td strong{display:block;color:var(--ink);font-size:11px}.automated-analysis-table td small{display:block;margin-top:3px;color:var(--muted);font-size:8px}.automated-analysis-status{display:inline-flex;padding:5px 8px;border-radius:999px;background:#eef1f5;color:#617084;font-size:8px;font-weight:850;text-transform:uppercase}.automated-analysis-status.imported{background:var(--success-soft);color:var(--success)}.automated-analysis-status.failed{background:#fff1f1;color:#b63a3a}.automated-analysis-status.processing,.automated-analysis-status.validating,.automated-analysis-status.queued{background:var(--warning-soft);color:#93610d}.automated-analysis-table button{padding:7px 9px;border:1px solid var(--line);border-radius:8px;background:#fff;color:#3f4c5f;font:inherit;font-size:9px;font-weight:800;cursor:pointer}.automated-analysis-empty{padding:34px!important;color:var(--muted)!important;text-align:center!important}.automated-analysis-log-modal{width:min(880px,calc(100vw - 28px));max-height:min(820px,calc(100vh - 36px));overflow:hidden}.automated-analysis-log-body{display:grid;gap:20px;overflow:auto}.automated-analysis-log-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.automated-analysis-log-summary>div{display:grid;gap:3px;padding:11px;border:1px solid var(--line);border-radius:10px;background:#fafbfc}.automated-analysis-log-summary span{color:var(--muted);font-size:8px;font-weight:820;text-transform:uppercase}.automated-analysis-log-summary strong{font-size:12px}.automated-analysis-log-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}.automated-analysis-log-heading h3{margin:0;font-size:13px}.automated-analysis-log-heading span{color:var(--muted);font-size:9px}.automated-analysis-artifacts{display:grid;gap:7px}.automated-analysis-artifact{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:10px 11px;border:1px solid var(--line);border-radius:10px}.automated-analysis-artifact>div{display:grid;gap:2px;min-width:0}.automated-analysis-artifact strong{overflow:hidden;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.automated-analysis-artifact small{color:var(--muted);font-size:8px}.automated-analysis-artifact a{padding:7px 9px;border:1px solid var(--line);border-radius:8px;color:#3f4c5f;font-size:9px;font-weight:800;text-decoration:none}.automated-analysis-events{display:grid;gap:8px;margin:0;padding:0;list-style:none}.automated-analysis-event{display:grid;grid-template-columns:110px 10px minmax(0,1fr);align-items:start;gap:9px}.automated-analysis-event time{color:var(--muted);font-size:8px}.automated-analysis-event i{width:8px;height:8px;margin-top:2px;border-radius:50%;background:#7f8b9c}.automated-analysis-event.warning i{background:#f2b63f}.automated-analysis-event.error i{background:#e45d65}.automated-analysis-event div{display:grid;gap:2px}.automated-analysis-event strong{font-size:10px}.automated-analysis-event small{color:var(--muted);font-size:8px;line-height:1.45}

@media(max-width:1050px){.automated-analysis-config-grid{grid-template-columns:1fr 1fr}.automated-analysis-field-wide{grid-column:1/-1}.automated-analysis-summary{grid-template-columns:1fr 1fr}}@media(max-width:650px){.automated-analysis-config-grid,.automated-analysis-summary,.automated-analysis-log-summary{grid-template-columns:1fr}.automated-analysis-field-wide{grid-column:auto}.automated-analysis-config-footer{align-items:stretch;flex-direction:column}.automated-analysis-toggle{max-width:none}.automated-analysis-config-footer>.button{width:100%}.automated-analysis-audit-actions{display:grid}.automated-analysis-audit-actions .button{width:100%}.automated-analysis-event{grid-template-columns:80px 10px minmax(0,1fr)}}
.automated-analysis-config-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px}.automated-analysis-validation-feedback{display:flex;align-items:center;gap:10px;margin-top:14px}.automated-analysis-validation-result{flex:1;margin:0;padding:11px 13px;border:1px solid #cfe3d8;border-radius:11px;background:var(--success-soft);color:var(--success);font-size:11px;font-weight:760;line-height:1.45}.automated-analysis-validation-result.loading{border-color:#cdddf4;background:#f4f8ff;color:#3d70b5}.automated-analysis-validation-result.error{border-color:#f2c7c7;background:#fff3f3;color:#b63a3a}.automated-analysis-validation-modal{width:min(1080px,calc(100vw - 28px));max-height:min(900px,calc(100vh - 36px));overflow:hidden}.automated-analysis-validation-body{display:grid;gap:14px;overflow:auto}.automated-analysis-validation-note{margin:0;padding:11px 13px;border:1px solid #dce4ef;border-radius:10px;background:#f7f9fc;color:#59677a;font-size:10px;line-height:1.5}.automated-analysis-validation-payload{overflow:hidden;border:1px solid var(--line);border-radius:12px;background:#fff}.automated-analysis-validation-payload>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 13px;border-bottom:1px solid var(--line);background:#fbfcfd}.automated-analysis-validation-payload h3{margin:0;font-size:12px}.automated-analysis-validation-payload header span{overflow:hidden;color:var(--muted);font-size:8px;text-overflow:ellipsis;white-space:nowrap}.automated-analysis-validation-payload pre{max-height:310px;overflow:auto;margin:0;padding:13px;background:#101828;color:#e6edf7;font:9px/1.55 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere}@media(max-width:700px){.automated-analysis-config-actions,.automated-analysis-validation-feedback{display:grid;width:100%}.automated-analysis-config-actions .button,.automated-analysis-validation-feedback .button{width:100%}.automated-analysis-validation-payload>header{align-items:flex-start;flex-direction:column}.automated-analysis-validation-payload header span{width:100%}}
@media(max-width:760px){.intercom-job-detail-hero{grid-template-columns:1fr}.intercom-job-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.intercom-job-filters{width:100%}.intercom-job-filters label:first-child{flex:1}.intercom-job-filters select{width:100%}.intercom-jobs-footer{align-items:flex-start;flex-direction:column}.intercom-jobs-footer>div{width:100%;justify-content:space-between}.intercom-job-detail-grid{grid-template-columns:1fr}.intercom-job-detail-section>header,.intercom-job-detail-events article header{align-items:flex-start;flex-direction:column}.intercom-job-detail-table{min-width:600px}}

.intercom-range-calendar{margin:0 19px 18px;border:1px solid var(--line);border-radius:14px;background:#fff;overflow:hidden;user-select:none}.intercom-calendar-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 14px;border-bottom:1px solid var(--line);background:#fbfcfd}.intercom-calendar-toolbar>div:first-child{display:grid;gap:2px}.intercom-calendar-toolbar strong{font-size:13px}.intercom-calendar-toolbar span{color:var(--muted);font-size:9px}.intercom-calendar-nav{display:flex;align-items:center;gap:6px}.intercom-calendar-nav button{height:30px;min-width:30px;padding:0 8px;border:1px solid var(--line);border-radius:8px;background:#fff;color:#475467;font:inherit;font-size:11px;font-weight:780;cursor:pointer}.intercom-calendar-nav button:hover{border-color:#f1a77d;color:var(--accent)}.intercom-calendar-weekdays,.intercom-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.intercom-calendar-weekdays{border-bottom:1px solid var(--line);background:#fff}.intercom-calendar-weekdays span{padding:8px 6px;color:#8a94a6;font-size:8px;font-weight:850;text-align:center;text-transform:uppercase}.intercom-calendar-day{position:relative;display:grid;min-height:67px;align-content:space-between;gap:7px;padding:8px;border:0;border-right:1px solid #edf0f4;border-bottom:1px solid #edf0f4;background:#fff;color:#344054;font:inherit;text-align:left;cursor:pointer;touch-action:pan-y}.intercom-calendar-day:nth-child(7n){border-right:0}.intercom-calendar-day:hover{background:#fff8f3}.intercom-calendar-day.outside{background:#fafbfc;color:#a3aab7}.intercom-calendar-day.future{color:#a3aab7}.intercom-calendar-day.in-range{background:#fff1e8}.intercom-calendar-day.range-start,.intercom-calendar-day.range-end{z-index:1;background:#f47732;color:#fff;box-shadow:inset 0 0 0 1px #df6827}.intercom-calendar-day.range-start .intercom-calendar-state,.intercom-calendar-day.range-end .intercom-calendar-state{background:rgba(255,255,255,.18);color:#fff}.intercom-calendar-date{font-size:11px;font-weight:850}.intercom-calendar-state{display:inline-flex;width:max-content;max-width:100%;align-items:center;gap:5px;padding:4px 6px;border-radius:999px;font-size:8px;font-weight:820;white-space:nowrap}.intercom-calendar-state:before,.intercom-calendar-legend i{width:6px;height:6px;border-radius:50%;background:currentColor;content:""}.intercom-calendar-state.pulled{background:#eaf8ef;color:#21864c}.intercom-calendar-state.partial{background:#fff6df;color:#946200}.intercom-calendar-state.pulling{background:#edf4ff;color:#3673bb}.intercom-calendar-state.missing{background:#f2f4f7;color:#7a8494}.intercom-calendar-legend{display:flex;flex-wrap:wrap;gap:12px;padding:10px 14px;background:#fbfcfd}.intercom-calendar-legend span{display:inline-flex;align-items:center;gap:5px;color:#667085;font-size:8px;font-weight:760}.intercom-calendar-legend i.pulled{color:#2da562;background:#2da562}.intercom-calendar-legend i.partial{color:#d89a19;background:#d89a19}.intercom-calendar-legend i.pulling{color:#4d86cc;background:#4d86cc}.intercom-calendar-legend i.missing{color:#a9b0bb;background:#a9b0bb}
@media(max-width:640px){.intercom-range-calendar{margin:0 12px 16px}.intercom-calendar-toolbar{align-items:flex-start;flex-direction:column}.intercom-calendar-nav{width:100%;justify-content:space-between}.intercom-calendar-nav button:nth-child(2){flex:1}.intercom-calendar-weekdays span{padding:7px 2px;font-size:7px}.intercom-calendar-day{min-height:54px;padding:6px}.intercom-calendar-date{font-size:10px}.intercom-calendar-state{width:6px;height:6px;padding:0;overflow:hidden;color:transparent}.intercom-calendar-state:before{width:6px;height:6px}.intercom-calendar-day.range-start .intercom-calendar-state,.intercom-calendar-day.range-end .intercom-calendar-state{background:#fff}.intercom-calendar-legend{gap:8px}}

/* Workspace feature flags */
.feature-flags-page{display:grid;gap:18px}
.feature-flags-admin-note{display:flex;align-items:flex-start;gap:12px;padding:14px 16px;border:1px solid #cfe0f4;border-radius:14px;background:#f4f8fe;color:#385d89}
.feature-flags-admin-note>span{display:grid;width:24px;height:24px;flex:0 0 24px;place-items:center;border-radius:50%;background:#dceafe;font-size:12px;font-weight:900}
.feature-flags-admin-note div{display:grid;gap:3px}.feature-flags-admin-note strong{font-size:12px}.feature-flags-admin-note p{margin:0;color:#5e7188;font-size:10px;line-height:1.5}
.feature-flags-message{margin:0;padding:11px 14px;border:1px solid #d7e4f7;border-radius:12px;background:#f7faff;color:#48627f;font-size:11px;font-weight:760}
.feature-flags-message.success{border-color:#c9e7d5;background:#f1faf5;color:var(--success)}.feature-flags-message.error{border-color:#efc9c9;background:#fff3f3;color:#b83b3b}
.feature-flags-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.feature-flags-card{overflow:hidden;border:1px solid var(--line);border-radius:18px;background:white;box-shadow:0 7px 22px rgba(23,32,51,.04)}
.feature-flags-card>header{display:flex;align-items:center;justify-content:space-between;padding:15px 17px;border-bottom:1px solid var(--line);background:#fbfcfd}
.feature-flags-card h2{margin:0;font-size:15px}.feature-flags-card header p{margin:3px 0 0;color:var(--muted);font-size:9px}
.feature-flags-list{display:grid}
.feature-flag-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:14px;align-items:center;min-height:74px;padding:13px 17px;border-bottom:1px solid #edf0f4;cursor:pointer}
.feature-flag-row:last-child{border-bottom:0}.feature-flag-row:hover{background:#fcfcfd}.feature-flag-row.saving{opacity:.62}
.feature-flag-copy{display:grid;gap:3px;min-width:0}.feature-flag-copy strong{font-size:11.5px}.feature-flag-copy span{color:var(--muted);font-size:9.5px;line-height:1.45}
.feature-flag-state{display:inline-flex;align-items:center;gap:6px;padding:5px 8px;border-radius:999px;font-size:8.5px;font-weight:850}
.feature-flag-state:before{width:6px;height:6px;border-radius:50%;background:currentColor;content:""}.feature-flag-state.enabled{background:var(--success-soft);color:var(--success)}.feature-flag-state.disabled{background:#f0f2f5;color:#667085}
.feature-flag-row .toggle input:disabled+.toggle-ui{cursor:wait;opacity:.7}
@media(max-width:850px){.feature-flags-groups{grid-template-columns:1fr}}
@media(max-width:520px){.feature-flag-row{grid-template-columns:minmax(0,1fr) auto}.feature-flag-state{display:none}}

.qa-importer-page{display:grid;gap:20px}
.qa-importer-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px}
.qa-importer-integration-head{justify-content:flex-end}
.qa-importer-page-head .eyebrow{margin:0 0 8px;color:#ff5a1f;font-size:11px}.qa-importer-page-head h1{margin:0}
.qa-importer-visibility{display:inline-flex;align-items:center;min-height:36px;padding:7px 14px;border-radius:999px;background:#e7f7ef;color:#087443;font-size:12px;font-weight:800}
.qa-importer-visibility:before{width:7px;height:7px;margin-right:7px;border-radius:50%;background:currentColor;content:""}
.qa-importer-visibility.test-mode{background:#fff4da;color:#8b5a00}
.qa-importer-message{margin:0;padding:13px 16px;border:1px solid #c7e4d3;border-radius:12px;background:#f0faf4;color:#087443;font-size:13px;font-weight:760}
.qa-importer-message.error{border-color:#efc9c9;background:#fff3f3;color:#b42318}.qa-importer-message.success{border-color:#b6ddc6;background:#ebf8f0;color:#087443}
.qa-tabs{display:flex;gap:4px;border-bottom:1px solid var(--line)}
.qa-tab{padding:12px 16px;border:0;border-bottom:2px solid transparent;background:transparent;color:#566276;cursor:pointer;font-weight:780}
.qa-tab.active{border-bottom-color:var(--accent);color:var(--accent-hover)}
.qa-panel{min-width:0}.qa-pipeline-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(310px,1fr);gap:20px;align-items:start}
.qa-calendar-card,.qa-pipeline-actions,.qa-results-card,.qa-prompt-layout{border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:0 8px 24px rgba(23,32,51,.045)}
.qa-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:21px 22px;border-bottom:1px solid var(--line)}
.qa-card-head h2,.qa-pipeline-actions h2,.qa-prompt-toolbar h2,.qa-editor-head h2{margin:0 0 4px;font-size:21px}.qa-card-head p,.qa-prompt-toolbar p{margin:0;color:var(--muted);font-size:13px}
.qa-calendar-nav{display:flex;gap:6px}.qa-calendar-nav button,.qa-results-footer button{min-width:36px;min-height:36px;padding:7px 11px;border:1px solid var(--line);border-radius:9px;background:#fff;cursor:pointer;font-weight:720}
.qa-calendar-month{padding:16px 20px 9px;font-size:16px;font-weight:820}.qa-calendar-weekdays,.qa-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.qa-calendar-weekdays span{padding:8px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);color:#6a7689;font-size:10px;font-weight:850;text-align:center;text-transform:uppercase}
.qa-calendar-day{display:grid;min-height:92px;align-content:space-between;gap:12px;padding:10px;border:0;border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:#fff;cursor:crosshair;text-align:left;user-select:none}
.qa-calendar-day:nth-child(7n){border-right:0}.qa-calendar-day.outside{background:#fafbfc;color:#a8b0bd}.qa-calendar-day:hover{background:#fff7f1}
.qa-calendar-day.selected{background:#fff0e6;box-shadow:inset 0 2px 0 #ffb181,inset 0 -2px 0 #ffb181}.qa-calendar-day.range-start,.qa-calendar-day.range-end{background:var(--accent);color:#fff}
.qa-calendar-day>span{font-weight:840}.qa-calendar-day small{display:inline-flex;width:max-content;max-width:100%;align-items:center;gap:5px;padding:4px 7px;border-radius:999px;background:#f0f2f5;color:#657184;font-size:9px;font-weight:780}
.qa-calendar-day small i,.qa-calendar-legend i{width:7px;height:7px;border-radius:50%;background:#98a2b3}.qa-calendar-day small.ready,.qa-calendar-legend .ready{background:#e8f6ef;color:#087443}.qa-calendar-day small.ready i,.qa-calendar-legend i.ready{background:#1d9b68}
.qa-calendar-day small.analyzed,.qa-calendar-legend .analyzed{background:#eaf2ff;color:#1e5eb5}.qa-calendar-day small.analyzed i,.qa-calendar-legend i.analyzed{background:#397fe8}
.qa-calendar-day small.working{background:#fff4da;color:#8b5a00}.qa-calendar-day small.working i{background:#e6a41f}.qa-calendar-day small.partial,.qa-calendar-legend .partial{background:#fff4da;color:#8b5a00}.qa-calendar-day small.partial i,.qa-calendar-legend i.partial{background:#e6a41f}
.qa-calendar-day.range-start small,.qa-calendar-day.range-end small{background:rgba(255,255,255,.22);color:#fff}.qa-calendar-day.range-start small i,.qa-calendar-day.range-end small i{background:#fff}
.qa-calendar-legend{display:flex;flex-wrap:wrap;gap:14px;padding:13px 18px;color:var(--muted);font-size:11px}.qa-calendar-legend span{display:inline-flex;align-items:center;gap:6px}.qa-calendar-legend i{display:inline-block}
.qa-pipeline-actions{position:sticky;top:88px;display:grid;gap:18px;padding:23px}.qa-pipeline-actions header{padding-bottom:16px;border-bottom:1px solid var(--line)}.qa-pipeline-actions header>p:last-child{margin:6px 0 0;color:var(--muted);font-size:13px;line-height:1.5}
.qa-field{display:grid;gap:7px}.qa-field>span,.qa-status-filter>span{color:#5d687a;font-size:10px;font-weight:850;letter-spacing:.025em;text-transform:uppercase}
.qa-field input,.qa-field select,.qa-field textarea,.qa-status-filter select{width:100%;min-height:42px;padding:10px 12px;border:1px solid var(--line-strong);border-radius:10px;background:#fff;color:var(--ink)}
.qa-field textarea{resize:vertical;line-height:1.55}.qa-action-stack{display:grid;gap:9px}.qa-action-stack .button{width:100%}
.button-danger{border:1px solid #efb9bd;background:#fff;color:var(--danger)}.button-danger:hover:not(:disabled){background:var(--danger-soft)}
.qa-force-refresh{display:flex;align-items:center;gap:9px;padding:11px 12px;border:1px solid var(--line);border-radius:10px;background:#fbfcfd;color:#4d596b;font-size:12px;font-weight:720}.qa-force-refresh input{width:16px;height:16px;margin:0;accent-color:var(--accent)}
.qa-action-pair{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.qa-job-progress{display:grid;gap:8px;padding:14px;border:1px solid #cbdcf6;border-radius:12px;background:#f5f9ff}.qa-job-progress.failed{border-color:#efc9c9;background:#fff5f5}
.qa-job-progress>div{display:flex;justify-content:space-between;gap:12px;font-size:12px}.qa-job-progress progress{width:100%;height:9px;accent-color:var(--accent)}.qa-job-progress p{margin:0;color:var(--muted);font-size:11px}
.qa-contract-note{margin:0;padding-top:15px;border-top:1px solid var(--line);color:var(--muted);font-size:11px;line-height:1.55}
.qa-prompt-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:16px}.qa-prompt-toolbar>div:last-child{display:flex;gap:8px}
.qa-prompt-layout{display:grid;min-height:650px;grid-template-columns:310px minmax(0,1fr);overflow:hidden}.qa-prompt-tree{padding:14px;border-right:1px solid var(--line);background:#fbfcfd}
.qa-tree-folder-name{display:flex;align-items:center;gap:7px;padding:9px 10px 6px calc(10px + var(--depth)*15px);font-size:13px}.qa-tree-prompt{display:flex;width:100%;align-items:flex-start;gap:9px;padding:10px 11px 10px calc(11px + var(--depth)*15px);border:0;border-radius:9px;background:transparent;cursor:pointer;text-align:left}
.qa-tree-prompt:hover,.qa-tree-prompt.active{background:#fff1e8;color:#c94c0f}.qa-tree-prompt>span:last-child{display:grid;gap:2px;font-weight:730}.qa-tree-prompt small{color:var(--muted);font-size:10px;font-weight:620}
.qa-prompt-editor{min-width:0;padding:24px}.qa-prompt-empty{display:grid;min-height:500px;place-items:center;align-content:center;gap:8px;text-align:center}.qa-prompt-empty>span{display:grid;width:46px;height:46px;place-items:center;border-radius:14px;background:#fff1e8;color:#da4d0c;font-size:22px}.qa-prompt-empty p,.qa-empty-copy{color:var(--muted);font-size:12px}
.qa-editor-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:20px}.qa-editor-head p{margin:0 0 4px;color:var(--muted);font-size:11px}
.qa-prompt-text textarea{min-height:360px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:13px}.qa-editor-actions{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:14px}.qa-editor-actions span{color:var(--muted);font-size:11px}
.qa-version-history{display:grid;gap:9px;margin-top:28px;padding-top:22px;border-top:1px solid var(--line)}.qa-version-history h3{margin:0 0 4px}.qa-version-history details{border:1px solid var(--line);border-radius:11px;background:#fbfcfd}.qa-version-history summary{display:flex;justify-content:space-between;gap:14px;padding:12px;cursor:pointer;font-weight:750}.qa-version-history summary small{color:var(--muted);font-weight:600}.qa-version-history pre{max-height:260px;margin:0;padding:14px;overflow:auto;border-top:1px solid var(--line);white-space:pre-wrap}
.qa-results-card{overflow:hidden}.qa-status-filter{display:grid;gap:4px;min-width:170px}.qa-results-table-wrap{overflow-x:auto}.qa-results-table{width:100%;border-collapse:collapse}.qa-results-table th{padding:11px 15px;background:#f8fafc;color:#59667a;font-size:10px;text-align:left;text-transform:uppercase}.qa-results-table td{padding:15px;border-top:1px solid var(--line);font-size:13px;vertical-align:top}.qa-results-table td:first-child{display:grid;gap:3px}.qa-results-table td small{display:block;color:var(--muted);font-size:10px}
.qa-pull-jobs-card{margin-top:20px}.qa-pulls-table{min-width:1160px}.qa-pulls-table td:nth-child(3){min-width:240px}.qa-pulls-table td:last-child{min-width:250px}
.qa-status{display:inline-flex;padding:5px 8px;border-radius:999px;background:#f0f2f5;color:#5c687a;font-size:10px;font-weight:800}.qa-status.completed,.qa-status.ready{background:#e7f7ef;color:#087443}.qa-status.ready_for_upload,.qa-status.searching,.qa-status.hydrating{background:#eaf2ff;color:#1e5eb5}.qa-status.failed{background:#fff0f1;color:#b42318}.qa-status.exporting,.qa-status.queued,.qa-status.canceling{background:#fff4da;color:#8b5a00}.qa-status.canceled,.qa-status.cleared{background:#f0f2f5;color:#5c687a}.qa-result-error{max-width:260px;margin-top:6px;color:#b42318!important}.qa-empty-cell{padding:50px!important;color:var(--muted);text-align:center!important}
.qa-inline-progress{display:grid;min-width:115px;grid-template-columns:minmax(72px,1fr) auto;align-items:center;gap:8px}.qa-inline-progress progress{width:100%;height:7px;accent-color:var(--accent)}.qa-inline-progress span{font-size:11px;font-weight:780}
.qa-row-actions{display:flex;flex-wrap:wrap;gap:6px}.qa-small-action{min-height:32px!important;padding:6px 9px!important;font-size:11px!important;text-decoration:none}
.qa-results-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px;border-top:1px solid var(--line);color:var(--muted);font-size:12px}.qa-results-footer>div{display:flex;align-items:center;gap:9px}
.qa-dialog{width:min(720px,calc(100vw - 32px));padding:0;border:1px solid var(--line);border-radius:18px;box-shadow:0 24px 70px rgba(23,32,51,.25)}.qa-dialog::backdrop{background:rgba(23,32,51,.45);backdrop-filter:blur(4px)}.qa-dialog form{display:grid;gap:18px;padding:22px}
.qa-dialog header,.qa-dialog footer{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.qa-dialog header{padding-bottom:15px;border-bottom:1px solid var(--line)}.qa-dialog header h2{margin:0}.qa-dialog header>button{display:grid;width:38px;height:38px;place-items:center;border:1px solid #efb9bd;border-radius:10px;background:#fff5f5;color:#b42318;cursor:pointer;font-size:20px}.qa-dialog footer{align-items:center;justify-content:flex-end;padding-top:15px;border-top:1px solid var(--line)}.qa-confirm-dialog{width:min(560px,calc(100vw - 32px))}
.qa-job-dialog{width:min(980px,calc(100vw - 32px))}.qa-job-detail-progress{display:grid;gap:8px;padding:14px;border:1px solid #cbdcf6;border-radius:12px;background:#f5f9ff}.qa-job-detail-progress>div{display:grid;grid-template-columns:auto minmax(160px,1fr) auto;align-items:center;gap:12px}.qa-job-detail-progress progress{width:100%;height:9px;accent-color:var(--accent)}.qa-job-detail-progress p{margin:0;color:var(--muted);font-size:12px}
.qa-job-detail-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.qa-job-detail-grid>div{display:grid;gap:5px;min-width:0;padding:12px;border:1px solid var(--line);border-radius:11px;background:#fbfcfd}.qa-job-detail-grid small{color:#677386;font-size:9px;font-weight:820;text-transform:uppercase}.qa-job-detail-grid strong{overflow-wrap:anywhere;font-size:12px}
.qa-job-conversations{max-height:330px;overflow:auto;border:1px solid var(--line);border-radius:12px}.qa-job-conversations>div{display:grid;grid-template-columns:100px minmax(0,1fr) auto;align-items:center;gap:12px;padding:10px 12px;border-top:1px solid var(--line);font-size:12px}.qa-job-conversations>div:first-child{border-top:0}.qa-job-conversations em{padding:4px 7px;border-radius:999px;background:#f0f2f5;color:#5c687a;font-size:9px;font-style:normal;font-weight:800}.qa-job-conversations em.ready{background:#e7f7ef;color:#087443}.qa-job-conversations em.failed{background:#fff0f1;color:#b42318}.qa-job-conversations small.qa-result-error{grid-column:2/-1;line-height:1.4}
@media(max-width:980px){.qa-pipeline-grid{grid-template-columns:1fr}.qa-pipeline-actions{position:static}.qa-prompt-layout{grid-template-columns:250px minmax(0,1fr)}}
@media(max-width:720px){.qa-importer-page-head,.qa-prompt-toolbar,.qa-card-head,.qa-editor-actions{align-items:flex-start;flex-direction:column}.qa-prompt-layout{grid-template-columns:1fr}.qa-prompt-tree{border-right:0;border-bottom:1px solid var(--line)}.qa-calendar-day{min-height:70px;padding:6px}.qa-calendar-day small{width:7px;height:7px;overflow:hidden;padding:0}.qa-calendar-day small i{min-width:7px}.qa-results-table{min-width:900px}.qa-action-pair{grid-template-columns:1fr}.qa-job-detail-grid{grid-template-columns:1fr 1fr}.qa-job-detail-progress>div{grid-template-columns:1fr}.qa-job-conversations>div{grid-template-columns:1fr}}

.tasks-page{display:grid;gap:20px}
.tasks-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px}
.tasks-page-head .eyebrow{margin:0 0 8px;color:#ff5a1f;font-size:11px}
.tasks-page-head h1{margin:0}
.tasks-page-actions{display:flex;align-items:center;gap:10px}
.tasks-foundation-state{display:inline-flex;align-items:center;min-height:36px;padding:7px 14px;border-radius:999px;font-size:12px;font-weight:800}
.tasks-foundation-state.hidden{color:#8b5a00;background:#fff4da}
.tasks-foundation-state.enabled{color:#087443;background:#e7f7ef}
.tasks-foundation-state.error{color:#b42318;background:#fff0ef}
.tasks-message{margin:0;padding:13px 16px;border:1px solid #c7e4d3;border-radius:12px;background:#f0faf4;color:#087443;font-size:13px;font-weight:760}
.tasks-message.error{border-color:#efc9c9;background:#fff3f3;color:#b42318}
.tasks-toolbar-card{display:flex;align-items:end;gap:14px;padding:17px 18px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 5px 18px rgba(23,32,51,.035)}
.tasks-search{position:relative;display:flex;min-width:240px;flex:1;align-items:center}
.tasks-search svg{position:absolute;left:14px;width:18px;height:18px;fill:none;stroke:#7a8494;stroke-width:1.6}
.tasks-search input{width:100%;min-height:48px;padding:10px 14px 10px 44px;border:1px solid var(--line);border-radius:11px;background:#fbfcfd;color:var(--ink);font:inherit;font-size:13px}
.tasks-admin-assignee-filter{display:grid;gap:5px;color:#667085;font-size:10px;font-weight:850;text-transform:uppercase}.tasks-admin-assignee-filter select{min-width:210px;min-height:48px;padding:9px 34px 9px 12px;border:1px solid var(--line);border-radius:11px;background:#fff;color:#344054;font:inherit;font-size:13px;font-weight:750;text-transform:none}
.tasks-completed-toggle{display:flex;min-height:48px;align-items:center;gap:9px;padding:0 13px;border:1px solid var(--line);border-radius:11px;color:#475467;font-size:13px;font-weight:780;white-space:nowrap}
.tasks-completed-toggle input{position:absolute;opacity:0;pointer-events:none}
.tasks-completed-toggle .toggle-ui{position:relative;width:31px;height:18px;border-radius:999px;background:#d7dce3;transition:.18s}
.tasks-completed-toggle .toggle-ui:after{position:absolute;top:3px;left:3px;width:12px;height:12px;border-radius:50%;background:white;box-shadow:0 1px 3px rgba(0,0,0,.2);content:"";transition:.18s}
.tasks-completed-toggle input:checked+.toggle-ui{background:#1c9b5f}
.tasks-completed-toggle input:checked+.toggle-ui:after{transform:translateX(13px)}
.tasks-sort-control{display:grid;gap:5px;color:#667085;font-size:10px;font-weight:850;text-transform:uppercase}
.tasks-sort-control select{min-width:160px;min-height:48px;padding:9px 34px 9px 12px;border:1px solid var(--line);border-radius:11px;background:#fff;color:#344054;font:inherit;font-size:13px;font-weight:750;text-transform:none}
.tasks-sort-direction{min-height:48px;padding:9px 14px;border:1px solid var(--line);border-radius:11px;background:white;color:#475467;font:inherit;font-size:13px;font-weight:780;cursor:pointer}
.tasks-list-card{overflow:hidden;border:1px solid var(--line);border-radius:17px;background:white;box-shadow:0 8px 26px rgba(23,32,51,.045)}
.tasks-list-card>header{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid var(--line);background:#fbfcfd}
.tasks-list-card h2{margin:0 0 4px;font-size:18px}.tasks-list-card header p{margin:0;color:var(--muted);font-size:12px}
.tasks-table-wrap{overflow:auto}.tasks-table{width:100%;min-width:1180px;border-collapse:collapse}
.tasks-table th{padding:12px 11px;border-bottom:1px solid var(--line);background:#f7f9fb;color:#667085;font-size:10px;font-weight:850;text-align:left;text-transform:uppercase;white-space:nowrap}
.tasks-table td{height:64px;padding:10px 11px;border-bottom:1px solid #edf0f4;color:#344054;font-size:13px;vertical-align:middle}
.tasks-table tbody tr:last-child td{border-bottom:0}.tasks-table tbody tr:hover{background:#fcfcfd}
.tasks-table tbody tr.completed{background:#f8f9fa;color:#8a94a6}.tasks-table tbody tr.completed .tasks-inline-title{text-decoration:line-through;color:#8a94a6}
.tasks-check-column{width:52px}.tasks-actions-column{width:126px}
.tasks-check,.tasks-complete-button{display:grid;width:30px;height:30px;padding:0;place-items:center;border:2px solid #aeb7c4;border-radius:50%;background:white;color:transparent;font:inherit;font-size:15px;font-weight:900;cursor:pointer;transition:background .14s,border-color .14s,transform .14s}
.tasks-check:hover,.tasks-complete-button:hover{border-color:#1c9b5f;transform:scale(1.05)}
.tasks-check.checked,.tasks-complete-button.checked{border-color:#1c9b5f;background:#1c9b5f;color:white}
.tasks-check:disabled,.tasks-complete-button:disabled{cursor:not-allowed;opacity:.48;transform:none}
.tasks-name-cell>div{display:grid;min-width:240px;gap:4px;padding-left:calc(var(--task-depth) * 24px)}
.tasks-name-cell>div:before{position:absolute}.tasks-inline-title{width:100%;max-width:400px;min-height:40px;padding:7px 9px;border:1px solid transparent;border-radius:9px;background:transparent;color:#14213a;font:inherit;font-size:14px;font-weight:400;text-align:left}.tasks-table .tasks-inline-title{font-weight:400;font-synthesis:none}
.tasks-inline-title:hover:not(:disabled){border-color:var(--line);background:#fff}.tasks-inline-title:focus{border-color:#f1a77d;background:#fff;outline:none;box-shadow:0 0 0 3px rgba(255,90,31,.08)}.tasks-inline-title:disabled{opacity:1}.tasks-child-count{color:#8a94a6;font-size:11px}
.tasks-assignee-cell{min-width:210px}.tasks-assignee{display:flex;min-width:180px;align-items:center;gap:9px}.tasks-assignee-avatar{display:grid;width:34px;height:34px;flex:0 0 34px;place-items:center;overflow:hidden;border-radius:50%;background:#fff0e8;color:#d94e12;font-size:10px;font-weight:850}.tasks-assignee-avatar img{display:block;width:100%;height:100%;object-fit:cover}.tasks-assignee span{overflow:hidden;max-width:150px;text-overflow:ellipsis;white-space:nowrap}.tasks-assignee-trigger{width:100%;min-height:44px;padding:5px 8px;border:1px solid transparent;border-radius:10px;background:transparent;color:#344054;font:inherit;font-size:13px;text-align:left;cursor:pointer}.tasks-assignee-trigger:hover,.tasks-assignee-trigger[aria-expanded=true]{border-color:var(--line);background:#fff}.tasks-assignee-trigger:focus-visible{border-color:#f1a77d;outline:3px solid rgba(255,90,31,.1)}.tasks-assignee-trigger>b{margin-left:auto;color:#7a8494;font-size:15px}
.tasks-assignee-menu{position:fixed;z-index:80;max-height:min(430px,calc(100vh - 24px));overflow:hidden;border:1px solid var(--line);border-radius:13px;background:#fff;box-shadow:0 18px 44px rgba(23,32,51,.18)}.tasks-assignee-search{position:relative;display:flex;align-items:center;padding:11px;border-bottom:1px solid var(--line);background:#fbfcfd}.tasks-assignee-search svg{position:absolute;left:23px;width:17px;height:17px;fill:none;stroke:#7a8494;stroke-width:1.7}.tasks-assignee-search input{width:100%;min-height:42px;padding:8px 12px 8px 38px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);font:inherit;font-size:13px}.tasks-assignee-search input:focus{border-color:#f1a77d;outline:3px solid rgba(255,90,31,.08)}.tasks-assignee-options{max-height:330px;overflow:auto;padding:6px}.tasks-assignee-option{display:grid;width:100%;grid-template-columns:38px minmax(0,1fr) 24px;align-items:center;gap:10px;padding:9px;border:0;border-radius:9px;background:#fff;color:#344054;font:inherit;text-align:left;cursor:pointer}.tasks-assignee-option:hover,.tasks-assignee-option:focus-visible{background:#f7f9fb;outline:none}.tasks-assignee-option.selected{background:#fff7f2}.tasks-assignee-option-avatar{display:grid;width:38px;height:38px;place-items:center;overflow:hidden;border-radius:50%;background:#fff0e8;color:#d94e12;font-size:11px;font-weight:850}.tasks-assignee-option-avatar img{display:block;width:100%;height:100%;object-fit:cover}.tasks-assignee-option>span{display:grid;min-width:0;gap:2px}.tasks-assignee-option strong,.tasks-assignee-option small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tasks-assignee-option strong{font-size:13px}.tasks-assignee-option small{color:#7a8494;font-size:11px}.tasks-assignee-option>b{color:#1c9b5f;font-size:15px;text-align:center}.tasks-assignee-no-results{margin:0;padding:24px 14px;color:#7a8494;font-size:12px;text-align:center}.tasks-assignee-menu.saving{cursor:wait;opacity:.7}
.tasks-context-menu{z-index:95;min-width:210px}.tasks-detail-destructive-actions{display:flex;align-items:center;gap:10px}.tasks-sharing-attention{border-color:#f97316!important;box-shadow:0 0 0 4px rgba(249,115,22,.14)}
.tasks-inline-date,.tasks-inline-field,.tasks-priority,.tasks-status{min-height:40px;max-width:200px;padding:7px 10px;border:1px solid transparent;border-radius:9px;background:transparent;color:#475467;font:inherit;font-size:12px;font-weight:730}
.tasks-inline-date:hover:not(:disabled),.tasks-inline-field:hover:not(:disabled),.tasks-priority:hover:not(:disabled),.tasks-status:hover:not(:disabled){border-color:var(--line);background:white}
.tasks-inline-date:focus,.tasks-inline-field:focus,.tasks-priority:focus,.tasks-status:focus{border-color:#f1a77d;background:#fff;outline:none;box-shadow:0 0 0 3px rgba(255,90,31,.08)}
.tasks-priority,.tasks-status{padding-right:25px;font-weight:820}.tasks-priority.urgent{color:#b42318;background:#fff0ef}.tasks-priority.high{color:#b54708;background:#fff4e5}.tasks-priority.medium{color:#175cd3;background:#eff5ff}.tasks-priority.low{color:#667085;background:#f2f4f7}
.tasks-status.working_on_it{color:#175cd3;background:#edf4ff}.tasks-status.in_review{color:#6941c6;background:#f4f0ff}.tasks-status.waiting_on_customer{color:#96620c;background:#fff7df}.tasks-status.stuck{color:#b42318;background:#fff0ef}.tasks-status.postponed{color:#667085;background:#f2f4f7}
.tasks-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px}.tasks-row-open{min-height:36px;padding:7px 13px;border:1px solid var(--line);border-radius:9px;background:white;color:#344054;font:inherit;font-size:12px;font-weight:820;cursor:pointer}.tasks-row-open:hover{border-color:#f1a77d;background:#fff8f4;color:var(--accent)}.tasks-row-add{display:grid;width:36px;height:36px;padding:0;place-items:center;border:1px solid var(--line);border-radius:9px;background:white;color:var(--accent);font:inherit;font-size:18px;font-weight:700;cursor:pointer}.tasks-row-add:disabled{color:#aeb7c4;cursor:not-allowed}
.tasks-empty{display:grid;min-height:240px;place-items:center;align-content:center;gap:8px;padding:34px;text-align:center}.tasks-empty>span{display:grid;width:48px;height:48px;place-items:center;border-radius:50%;background:#e7f7ef;color:#087443;font-size:22px;font-weight:900}.tasks-empty strong{font-size:17px}.tasks-empty p{margin:0;color:var(--muted);font-size:13px}
.tasks-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.tasks-form-grid .full{grid-column:1/-1}
.tasks-detail-drawer-shell{position:fixed;z-index:45;top:68px;right:0;bottom:0;width:min(920px,calc(100vw - 420px));pointer-events:none}.tasks-detail-drawer{display:grid;width:100%;height:100%;grid-template-rows:auto auto minmax(0,1fr) auto;overflow:hidden;border-left:1px solid var(--line);background:#fff;box-shadow:-18px 0 44px rgba(23,32,51,.15);pointer-events:auto;animation:tasks-drawer-in .18s ease-out}.tasks-detail-drawer>.modal-header,.tasks-detail-drawer>.modal-footer{background:#fff}@keyframes tasks-drawer-in{from{transform:translateX(34px);opacity:.65}to{transform:translateX(0);opacity:1}}.tasks-detail-header{align-items:center}
.tasks-standalone-back{display:inline-flex;width:max-content;align-items:center;gap:7px;color:#475467;font-size:13px;font-weight:820;text-decoration:none}.tasks-standalone-back:hover{color:var(--accent)}
.tasks-standalone-page{display:block}.tasks-standalone-page>.tasks-page-head,.tasks-standalone-page>.tasks-toolbar-card,.tasks-standalone-page>.tasks-list-card,.tasks-standalone-page>.tasks-empty,.tasks-standalone-page>.tasks-assignee-menu,.tasks-standalone-page>.tasks-context-menu{display:none}
.tasks-standalone-page>.tasks-message{margin-bottom:14px}.tasks-standalone-page .tasks-detail-drawer-shell{position:static;width:100%;height:auto;min-height:calc(100vh - 118px);pointer-events:auto}.tasks-standalone-page .tasks-detail-drawer{height:auto;min-height:calc(100vh - 118px);grid-template-rows:auto auto minmax(420px,1fr) auto;overflow:visible;border:1px solid var(--line);border-radius:18px;box-shadow:0 10px 30px rgba(23,32,51,.06);animation:none}.tasks-standalone-page .tasks-detail-header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:17px 24px;padding:24px 28px}.tasks-standalone-page .tasks-standalone-back{grid-column:1/-1}.tasks-standalone-page .tasks-detail-title-input{font-size:32px}.tasks-standalone-page .tasks-detail-body{overflow:visible}.tasks-standalone-page .tasks-detail-tab-panel{height:auto;overflow:visible}.tasks-standalone-page .tasks-detail-main{max-width:1280px;padding:32px 34px}.tasks-standalone-page .tasks-detail-tabs{padding:0 28px}.tasks-standalone-page .tasks-detail-drawer>.modal-footer{border-radius:0 0 18px 18px}
.tasks-detail-title-wrap{display:flex;min-width:0;flex:1;align-items:center;gap:15px}.tasks-complete-button{flex:0 0 34px;width:34px;height:34px}
.tasks-detail-title-input{width:100%;padding:5px 8px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--ink);font:inherit;font-size:25px;font-weight:850}.tasks-detail-title-input:hover:not(:disabled),.tasks-detail-title-input:focus{border-color:var(--line);background:#fff;outline:none}.tasks-detail-title-input:disabled{opacity:1}
.tasks-detail-header-actions{display:flex;align-items:center;gap:8px}.tasks-detail-close{border-color:#f0b5b2;background:#fff0ef;color:#c4322d;font-size:20px;font-weight:800}.tasks-detail-close:hover{border-color:#e66b65;background:#ffe1df;color:#9f231f}.tasks-detail-close:focus-visible{outline:3px solid rgba(196,50,45,.2);outline-offset:2px}.tasks-detail-tabs{display:flex;min-height:53px;align-items:end;gap:6px;padding:0 26px;border-bottom:1px solid var(--line);background:#fff}.tasks-detail-tabs button{position:relative;min-height:52px;padding:0 16px;border:0;background:transparent;color:#667085;font:inherit;font-size:13px;font-weight:820;cursor:pointer}.tasks-detail-tabs button:after{position:absolute;right:10px;bottom:-1px;left:10px;height:2px;border-radius:2px;background:transparent;content:""}.tasks-detail-tabs button:hover{color:#344054}.tasks-detail-tabs button.active{color:var(--accent)}.tasks-detail-tabs button.active:after{background:var(--accent)}.tasks-detail-tabs button:focus-visible{border-radius:8px;outline:3px solid rgba(255,90,31,.16);outline-offset:-4px}.tasks-detail-tabs button span{display:inline-grid;min-width:22px;height:22px;margin-left:6px;place-items:center;border-radius:999px;background:#f2f4f7;color:#667085;font-size:10px}.tasks-detail-tabs button.active span{background:#fff0e8;color:#d94e12}.tasks-detail-body{min-height:0;overflow:hidden}.tasks-detail-tab-panel{height:100%;overflow:auto}.tasks-detail-tab-panel[hidden]{display:none}.tasks-detail-main{display:grid;min-height:100%;align-content:start;gap:24px;padding:26px}.tasks-detail-tab-heading{display:grid;gap:4px;padding-bottom:15px;border-bottom:1px solid var(--line)}.tasks-detail-tab-heading h3{margin:0;font-size:18px}.tasks-detail-tab-heading p{margin:0;color:var(--muted);font-size:12px}.tasks-detail-discussion,.tasks-detail-activity-log{background:#fbfcfd}.tasks-detail-discussion .tasks-comments,.tasks-detail-activity-log .tasks-activity{align-self:start}
.tasks-properties{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.tasks-properties label,.tasks-custom-values label{display:grid;gap:7px}.tasks-properties label>span,.tasks-custom-values label>span{color:#667085;font-size:11px;font-weight:850;text-transform:uppercase}
.tasks-properties select,.tasks-properties input,.tasks-custom-values select,.tasks-custom-values input{width:100%;min-height:46px;padding:9px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;color:#344054;font:inherit;font-size:13px;font-weight:730}
.tasks-detail-section{display:grid;gap:12px}.tasks-detail-section h3{margin:0;font-size:16px}.tasks-detail-section textarea{width:100%;resize:vertical;padding:14px;border:1px solid var(--line);border-radius:11px;background:#fff;color:#344054;font:inherit;font-size:13px;line-height:1.55}.tasks-detail-section textarea:focus{border-color:#f1a77d;outline:none;box-shadow:0 0 0 3px rgba(255,90,31,.08)}
.tasks-section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.tasks-section-heading>button{padding:0;border:0;background:none;color:#175cd3;font:inherit;font-size:12px;font-weight:800;cursor:pointer}.tasks-section-heading>span{padding:5px 8px;border-radius:999px;background:#eef2f6;color:#536071;font-size:11px;font-weight:820}
.tasks-custom-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;padding:16px;border:1px solid var(--line);border-radius:12px;background:#fbfcfd}
.tasks-subtasks{display:grid;border:1px solid var(--line);border-radius:11px;overflow:hidden}.tasks-subtasks article{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:11px;padding:13px 14px;border-bottom:1px solid #edf0f4}.tasks-subtasks article:last-child{border-bottom:0}.tasks-subtasks article.completed>button:nth-child(2){color:#8a94a6;text-decoration:line-through}.tasks-subtasks article>button:nth-child(2){padding:0;border:0;background:none;color:#14213a;font:inherit;font-size:13px;font-weight:780;text-align:left;cursor:pointer}.tasks-subtasks article>span{color:#7a8494;font-size:11px}
.tasks-subtask-form{display:flex;gap:9px}.tasks-subtask-form input{min-height:46px;flex:1;padding:9px 12px;border:1px solid var(--line);border-radius:9px;font:inherit;font-size:13px}.tasks-subtask-form button{min-width:68px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--accent);font:inherit;font-size:12px;font-weight:820;cursor:pointer}
.tasks-discussion-column{display:grid;width:min(100%,900px);margin:0 auto;align-content:start;gap:22px}.tasks-discussion-intro{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-bottom:20px;border-bottom:1px solid var(--line)}.tasks-discussion-intro>div{display:flex;align-items:center;gap:13px}.tasks-discussion-icon{display:grid;width:42px;height:42px;flex:0 0 42px;place-items:center;border-radius:12px;background:#fff0e8;color:#e35216;font-size:18px;font-weight:900}.tasks-discussion-intro h3{margin:0;color:#14213a;font-size:20px}.tasks-discussion-intro p{margin:4px 0 0;color:#667085;font-size:13px}.tasks-discussion-total{padding:6px 10px;border-radius:999px;background:#eef2f6;color:#536071;font-size:11px;font-weight:820}
.tasks-comment-form{position:relative;display:grid;gap:13px;padding:18px;border:1px solid #d9dee7;border-radius:15px;background:#fff;box-shadow:0 4px 14px rgba(23,32,51,.045)}.tasks-comment-author{display:flex;align-items:center;gap:11px}.tasks-comment-author>div{display:grid;gap:2px}.tasks-comment-author strong{color:#14213a;font-size:14px}.tasks-comment-author span{color:#7a8494;font-size:11px}.tasks-comment-avatar{display:grid;width:42px;height:42px;flex:0 0 42px;place-items:center;overflow:hidden;border-radius:50%;background:#fff0e8;color:#d94e12;font-size:11px;font-style:normal;font-weight:850}.tasks-comment-avatar img{display:block;width:100%;height:100%;object-fit:cover}.tasks-comment-form textarea{width:100%;min-height:112px;resize:vertical;padding:14px 15px;border:1px solid #ccd3dd;border-radius:11px;background:#fbfcfd;color:#26334d;font:inherit;font-size:14px;line-height:1.6}.tasks-comment-form textarea::placeholder{color:#98a2b3}.tasks-comment-form textarea:focus{border-color:#f19a6e;background:#fff;outline:0;box-shadow:0 0 0 3px rgba(255,90,31,.09)}.tasks-comment-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.tasks-comment-form small{color:#7a8494;font-size:11px}
.tasks-comments{display:grid;gap:16px}.tasks-comment-thread{display:grid;gap:10px}.tasks-comments article{display:grid;grid-template-columns:42px minmax(0,1fr);gap:13px;padding:18px;border:1px solid var(--line);border-radius:14px;background:#fff}.tasks-comments article.tasks-comment-linked{outline:3px solid rgba(46,115,218,.22);outline-offset:2px;background:#f5f9ff}.tasks-comments .tasks-comment-reply{position:relative;margin-left:48px;background:#fcfcfd}.tasks-comments .tasks-comment-reply:before{position:absolute;top:-11px;bottom:50%;left:-28px;width:22px;border-bottom:2px solid #d8dee8;border-left:2px solid #d8dee8;border-radius:0 0 0 10px;content:""}.tasks-comment-content{min-width:0}.tasks-comments header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.tasks-comments header>div{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px}.tasks-comments strong{color:#14213a;font-size:14px}.tasks-comments header span{color:#8a94a6;font-size:11px}.tasks-comments time{color:#8a94a6;font-size:11px;white-space:nowrap}.tasks-comments p{margin:9px 0 0;color:#344054;font-size:14px;line-height:1.65;white-space:pre-wrap}.tasks-comments mark{border-radius:4px;background:#edf4ff;color:#175cd3}.tasks-comment-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:13px}.tasks-comment-reactions,.tasks-comment-actions-inline,.tasks-reaction-picker{display:flex;align-items:center;flex-wrap:wrap;gap:6px}.tasks-reaction,.tasks-reaction-picker button,.tasks-comment-actions-inline button{min-height:29px;border:1px solid #d9dee7;border-radius:999px;background:#fff;color:#667085;font:inherit;font-size:11px;font-weight:760;cursor:pointer}.tasks-reaction{display:inline-flex;align-items:center;gap:4px;padding:3px 9px}.tasks-reaction b{font-size:10px}.tasks-reaction.active{border-color:#ff9d74;background:#fff0e8;color:#c8440e}.tasks-reaction-picker{padding-left:2px}.tasks-reaction-picker button{display:grid;width:29px;padding:0;place-items:center;opacity:.62}.tasks-reaction-picker button:hover{border-color:#ff9d74;opacity:1;transform:translateY(-1px)}.tasks-comment-actions-inline button{padding:4px 10px;border-color:transparent;background:transparent}.tasks-comment-actions-inline button:hover{background:#f2f4f7;color:#344054}.tasks-comment-actions-inline button.danger:hover{background:#fff1f1;color:#c52222}.tasks-inline-comment-form{display:grid;gap:9px;margin-top:13px;padding:12px;border:1px solid #d9dee7;border-radius:12px;background:#f8fafc}.tasks-inline-comment-form textarea{min-height:88px;padding:11px 12px;resize:vertical;border:1px solid #cbd3df;border-radius:9px;background:#fff;color:#26334d;font:inherit;font-size:14px;line-height:1.5}.tasks-inline-comment-form textarea:focus{border-color:#f19a6e;outline:0;box-shadow:0 0 0 3px rgba(255,90,31,.09)}.tasks-inline-comment-form>div{display:flex;justify-content:flex-end;gap:8px}.tasks-comments .tasks-comment-deleted{margin:8px 0 0;color:#98a2b3;font-style:italic}.tasks-comments article.deleted{border-style:dashed;background:#f8fafc}.tasks-discussion-empty{display:grid;min-height:180px;place-items:center;align-content:center;gap:7px;padding:28px;border:1px dashed #cfd6e0;border-radius:14px;background:rgba(255,255,255,.62);text-align:center}.tasks-discussion-empty>span{display:grid;width:42px;height:42px;place-items:center;border-radius:50%;background:#eef2f6;color:#667085;font-size:21px}.tasks-discussion-empty strong{color:#344054;font-size:15px}.tasks-discussion-empty p{margin:0;color:#7a8494;font-size:12px}
.tasks-mention-suggestions{position:absolute;z-index:3;right:18px;bottom:72px;left:18px;max-width:440px;overflow:hidden;border:1px solid var(--line);border-radius:11px;background:#fff;box-shadow:0 12px 30px rgba(23,32,51,.13)}.tasks-mention-suggestions button{display:flex;width:100%;align-items:center;gap:11px;padding:11px 13px;border:0;border-bottom:1px solid #edf0f4;background:white;text-align:left;cursor:pointer}.tasks-mention-suggestions button:hover{background:#f7f9fb}.tasks-mention-avatar{display:grid;width:38px;height:38px;flex:0 0 38px;place-items:center;overflow:hidden;border-radius:50%;background:#fff0e8;color:#d94e12;font-size:11px;font-weight:850}.tasks-mention-avatar img{display:block;width:100%;height:100%;object-fit:cover}.tasks-mention-suggestions span{display:grid}.tasks-mention-suggestions strong{font-size:13px}.tasks-mention-suggestions small{font-size:11px}
.tasks-activity{display:grid;gap:0}.tasks-activity article{position:relative;display:grid;grid-template-columns:16px minmax(0,1fr);gap:11px;padding:0 0 21px}.tasks-activity article:not(:last-child):before{position:absolute;top:12px;bottom:0;left:6px;width:1px;background:#d9dee6;content:""}.tasks-activity article>i{z-index:1;width:12px;height:12px;margin-top:3px;border:2px solid #fff;border-radius:50%;background:#4d86cc;box-shadow:0 0 0 1px #b8c9df}.tasks-activity article>div{display:grid;gap:3px}.tasks-activity strong{font-size:13px}.tasks-activity p,.tasks-activity time{margin:0;color:#7a8494;font-size:11px}
.tasks-detail-empty-copy{margin:0;padding:22px;color:#7a8494;font-size:12px;text-align:center}
.tasks-save-state{align-self:center;color:#667085;font-size:11px;font-weight:760}
.tasks-fields-modal{width:min(96vw,980px);max-height:min(90vh,820px);overflow:hidden}.tasks-fields-body{display:grid;min-height:420px;grid-template-columns:minmax(0,1fr) 330px;gap:20px;overflow:auto}
.tasks-field-bank h3,.tasks-field-create h3{margin:0 0 13px;font-size:17px}.tasks-field-bank>div{display:grid;gap:11px}.tasks-field-bank article{padding:14px;border:1px solid var(--line);border-radius:11px;background:#fbfcfd}.tasks-field-bank label{display:flex;align-items:center;gap:11px}.tasks-field-bank label>span{display:grid;gap:3px}.tasks-field-bank strong{font-size:13px}.tasks-field-bank small{color:#7a8494;font-size:11px}.tasks-field-bank ol{display:flex;flex-wrap:wrap;gap:6px;margin:11px 0 0;padding:0;list-style:none}.tasks-field-bank li{display:flex;align-items:center;gap:5px;padding:5px 8px;border-radius:999px;background:white;color:#536071;font-size:11px}.tasks-field-bank li i{width:7px;height:7px;border-radius:50%;background:var(--option-color)}
.tasks-field-create{display:grid;align-content:start;gap:13px;padding:18px;border:1px solid var(--line);border-radius:13px;background:#fbfcfd}.tasks-field-create .field{display:grid;gap:7px}.tasks-field-create .field>span{color:#667085;font-size:11px;font-weight:850;text-transform:uppercase}.tasks-field-create input,.tasks-field-create select{width:100%;min-height:44px;padding:9px 11px;border:1px solid var(--line);border-radius:9px;background:#fff;font:inherit;font-size:13px}
.tasks-options-editor{display:grid;gap:9px;padding:13px;border:1px solid var(--line);border-radius:10px;background:#fff}.tasks-options-editor h4{margin:0;font-size:14px}.tasks-options-editor>p{margin:0;color:#7a8494;font-size:11px}.tasks-option-row{display:grid;grid-template-columns:36px minmax(0,1fr) 34px 34px 34px;gap:6px;align-items:center}.tasks-option-row input[type="color"]{min-height:34px;padding:2px}.tasks-option-row input{min-height:38px}.tasks-option-row button{height:34px;padding:0;border:1px solid var(--line);border-radius:7px;background:#fff;color:#536071;font-size:13px;cursor:pointer}
.tasks-page .button,.tasks-detail-drawer .button,.tasks-create-modal .button,.tasks-fields-modal .button{min-height:42px;font-size:13px}.tasks-create-modal .field>span{font-size:11px}.tasks-create-modal .field input,.tasks-create-modal .field select{min-height:46px;font-size:13px}
@media(max-width:1050px){.tasks-toolbar-card{flex-wrap:wrap}.tasks-search{min-width:100%;flex-basis:100%}.tasks-detail-drawer-shell{width:min(800px,calc(100vw - 260px))}.tasks-properties{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.tasks-page-head{align-items:flex-start;flex-direction:column}.tasks-page-actions{width:100%;justify-content:space-between}.tasks-toolbar-card{align-items:stretch}.tasks-completed-toggle,.tasks-sort-control,.tasks-sort-direction,.tasks-toolbar-card>.button{flex:1}.tasks-detail-drawer-shell{top:68px;width:100vw}.tasks-detail-header{align-items:flex-start;flex-direction:column}.tasks-detail-header-actions{width:100%;justify-content:flex-end}.tasks-detail-tabs{padding:0 10px}.tasks-detail-tabs button{flex:1;padding:0 5px}.tasks-properties,.tasks-custom-values{grid-template-columns:1fr}.tasks-fields-body{grid-template-columns:1fr}.tasks-form-grid{grid-template-columns:1fr}.tasks-form-grid .full{grid-column:auto}.tasks-standalone-page .tasks-detail-drawer{border-radius:14px}.tasks-standalone-page .tasks-detail-header{display:flex;padding:20px}.tasks-standalone-page .tasks-standalone-back{order:-1}.tasks-standalone-page .tasks-detail-title-input{font-size:25px}.tasks-standalone-page .tasks-detail-main{padding:22px 18px}.tasks-standalone-page .tasks-detail-tabs{padding:0 8px}.tasks-discussion-intro{align-items:flex-start}.tasks-discussion-total{display:none}.tasks-comment-form{padding:14px}.tasks-comment-actions{align-items:stretch;flex-direction:column}.tasks-comment-actions .button{width:100%}.tasks-comments article{grid-template-columns:36px minmax(0,1fr);padding:14px}.tasks-comments .tasks-comment-avatar{width:36px;height:36px;flex-basis:36px}.tasks-comments .tasks-comment-reply{margin-left:22px}.tasks-comments .tasks-comment-reply:before{left:-13px;width:9px}.tasks-comments header{align-items:flex-start;flex-direction:column;gap:3px}.tasks-comment-toolbar{align-items:flex-start;flex-direction:column}.tasks-reaction-picker{display:none}}

/* QA Exporter */
.qa-exporter-page{display:grid;gap:16px}
.qa-exporter-hero,.qa-exporter-card{border:1px solid var(--line);background:#fff;box-shadow:0 8px 24px rgba(23,32,51,.045)}
.qa-exporter-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 22px;border-radius:18px}
.qa-exporter-identity{display:flex;align-items:center;gap:14px}.qa-exporter-icon{display:grid;width:58px;height:58px;flex:0 0 auto;place-items:center;border-radius:17px;background:linear-gradient(145deg,#e9f1ff,#f7faff);color:#1768d5}.qa-exporter-icon svg{width:31px;height:31px}
.qa-exporter-eyebrow{display:block;margin-bottom:3px;color:#1768d5;font-size:9px;font-weight:880;letter-spacing:.13em;text-transform:uppercase}.qa-exporter-identity h3{margin:0 0 4px;font-size:21px;letter-spacing:-.025em}.qa-exporter-identity p{margin:0;color:var(--muted);font-size:11px;line-height:1.5}
.qa-exporter-access{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border-radius:999px;background:#eef4ff;color:#356baa;font-size:9px;font-weight:850;text-transform:uppercase}.qa-exporter-access i{width:7px;height:7px;border-radius:50%;background:currentColor}
.qa-exporter-message{margin:0;padding:11px 14px;border:1px solid #cfe3d8;border-radius:12px;background:var(--success-soft);color:var(--success);font-size:11px;font-weight:740}.qa-exporter-message.error{border-color:#f0caca;background:#fff2f2;color:#b43b3b}
.qa-exporter-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(340px,.75fr);gap:16px;align-items:start}.qa-exporter-card{border-radius:18px;overflow:hidden}.qa-exporter-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:18px 19px 15px;border-bottom:1px solid var(--line)}.qa-exporter-card-head h4{margin:0 0 4px;font-size:17px;letter-spacing:-.02em}.qa-exporter-card-head p{margin:0;color:var(--muted);font-size:10px;line-height:1.45}.qa-exporter-card-head>span{flex:0 0 auto;padding:5px 8px;border-radius:999px;background:#f3f5f8;color:#667085;font-size:9px;font-weight:780}
.qa-exporter-date-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:17px 19px}.qa-exporter-date-grid label{display:grid;gap:6px}.qa-exporter-date-grid label span{color:#475467;font-size:10px;font-weight:820}.qa-exporter-date-grid input{height:42px;padding:0 11px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);font:inherit;font-size:12px}.qa-exporter-date-grid input:focus,.qa-exporter-search:focus-within{border-color:#8bb5ee;box-shadow:0 0 0 3px rgba(31,108,226,.1);outline:0}
.qa-exporter-mode-filter{display:grid;gap:9px;margin:0 19px 17px}.qa-exporter-mode-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.qa-exporter-mode-head strong{font-size:11px}.qa-exporter-mode-head span{color:var(--muted);font-size:9px}.qa-exporter-mode-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.qa-exporter-mode-options label{display:flex;min-height:42px;align-items:center;gap:8px;padding:9px 10px;border:1px solid #dfe5ed;border-radius:10px;background:#fbfcfe;color:#4b586a;font-size:9px;font-weight:800;cursor:pointer}.qa-exporter-mode-options label:hover{border-color:#b7c9e1;background:#f5f8fc}.qa-exporter-mode-options label:has(input:checked){border-color:#9ebfe9;background:#f3f7fd;color:#203d63;box-shadow:0 0 0 2px rgba(31,108,226,.05)}.qa-exporter-mode-options input{width:15px;height:15px;flex:0 0 auto;margin:0;accent-color:#1f6ce2}.qa-exporter-mode-options i{width:7px;height:7px;flex:0 0 auto;border-radius:50%;background:#6b7b91}.qa-exporter-mode-options .win i{background:#28a66f}.qa-exporter-mode-options .risk i{background:#d85b55}.qa-exporter-mode-options .communication i{background:#3180df}
.qa-exporter-team-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 19px 10px}.qa-exporter-team-head>div:first-child{display:grid;gap:2px}.qa-exporter-team-head strong{font-size:11px}.qa-exporter-team-head span{color:var(--muted);font-size:9px}.qa-exporter-team-head>div:last-child{display:flex;gap:6px}.qa-exporter-team-head button{padding:5px 8px;border:0;border-radius:8px;background:#f1f5fb;color:#416995;font:inherit;font-size:9px;font-weight:800;cursor:pointer}.qa-exporter-team-head button:hover{background:#e7eff9}
.qa-exporter-search{display:flex;height:40px;align-items:center;gap:8px;margin:0 19px 10px;padding:0 11px;border:1px solid var(--line);border-radius:10px;background:#fff}.qa-exporter-search svg{width:16px;flex:0 0 auto;color:#8993a3}.qa-exporter-search input{width:100%;border:0;outline:0;background:transparent;color:var(--ink);font:inherit;font-size:11px}
.qa-exporter-team-list{display:grid;max-height:360px;overflow:auto;margin:0 19px;border:1px solid var(--line);border-radius:12px;background:#fbfcfe}.qa-exporter-team-option{display:grid;grid-template-columns:auto auto minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 11px;border-bottom:1px solid #e9edf2;cursor:pointer}.qa-exporter-team-option:last-child{border-bottom:0}.qa-exporter-team-option:hover{background:#f3f7fc}.qa-exporter-team-option input{width:15px;height:15px;margin:0;accent-color:#1f6ce2}.qa-exporter-avatar{display:grid;width:32px;height:32px;place-items:center;border-radius:10px;background:#e8f0fc;color:#356cae;font-size:9px;font-weight:900}.qa-exporter-member-copy{display:grid;gap:2px;min-width:0}.qa-exporter-member-copy strong,.qa-exporter-member-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.qa-exporter-member-copy strong{font-size:10px}.qa-exporter-member-copy small{color:var(--muted);font-size:8px}.qa-exporter-member-count{color:#687487;font-size:8px;font-weight:780;white-space:nowrap}.qa-exporter-team-empty{margin:0;padding:28px 14px;color:var(--muted);font-size:10px;text-align:center}
.qa-exporter-filter-note{display:flex;align-items:flex-start;gap:9px;margin:14px 19px 18px;padding:11px 12px;border:1px solid #d7e5f7;border-radius:11px;background:#f7faff;color:#526b87;font-size:9px;line-height:1.5}.qa-exporter-filter-note svg{width:17px;flex:0 0 auto;color:#3974b9}
.qa-exporter-preview{position:sticky;top:18px}.qa-exporter-preview-state{display:inline-flex!important;align-items:center;gap:6px}.qa-exporter-preview-state i{width:6px;height:6px;border-radius:50%;background:currentColor}.qa-exporter-preview-state.ready{background:var(--success-soft);color:var(--success)}.qa-exporter-preview-state.loading{background:#eef4ff;color:#3673bb}.qa-exporter-preview-state.loading i{width:9px;height:9px;border:1.5px solid currentColor;border-top-color:transparent;animation:appspin .7s linear infinite}.qa-exporter-preview-state.error{background:#fff0f0;color:#b83b3b}.qa-exporter-preview-state.neutral{background:#f0f2f5;color:#667085}
.qa-exporter-stats{display:grid;grid-template-columns:1fr 1fr;gap:9px;padding:17px 19px 12px}.qa-exporter-stats>div{display:grid;gap:4px;padding:12px;border:1px solid #e5eaf0;border-radius:12px;background:#fafbfd}.qa-exporter-stats span{color:#697586;font-size:8px;font-weight:820;text-transform:uppercase}.qa-exporter-stats strong{font-size:22px;letter-spacing:-.04em}.qa-exporter-mode-breakdown{display:flex;flex-wrap:wrap;gap:7px;padding:0 19px 15px}.qa-exporter-mode-breakdown>span{display:inline-flex;align-items:center;gap:6px;padding:6px 8px;border:1px solid #e2e7ed;border-radius:999px;color:#536071;font-size:8px;font-weight:760}.qa-exporter-mode-breakdown span i{width:6px;height:6px;border-radius:50%;background:#6b7b91}.qa-exporter-mode-breakdown span.win i{background:#28a66f}.qa-exporter-mode-breakdown span.risk i{background:#d85b55}.qa-exporter-mode-breakdown span.communication i{background:#3180df}.qa-exporter-mode-breakdown span strong{color:var(--ink);font-size:9px}
.qa-exporter-linkage{display:flex;gap:10px;margin:0 19px 15px;padding:12px;border-radius:12px;background:#f5f8fc}.qa-exporter-linkage>span{display:grid;width:32px;height:32px;flex:0 0 auto;place-items:center;border-radius:9px;background:#fff;color:#3d72af}.qa-exporter-linkage svg{width:18px}.qa-exporter-linkage strong{display:block;margin-bottom:3px;font-size:10px}.qa-exporter-linkage p{margin:0;color:#667085;font-size:8px;line-height:1.5}
.qa-exporter-download{display:flex;width:calc(100% - 38px);min-height:52px;align-items:center;gap:11px;margin:0 19px 12px;padding:10px 13px;border:1px solid #1f6ce2;border-radius:12px;background:#1f6ce2;color:#fff;font:inherit;text-align:left;cursor:pointer;box-shadow:0 7px 16px rgba(31,108,226,.2)}.qa-exporter-download:disabled{border-color:#d5dbe4;background:#e8ebf0;color:#8b95a5;box-shadow:none;cursor:not-allowed}.qa-exporter-download-icon{display:grid;width:31px;height:31px;flex:0 0 auto;place-items:center;border-radius:9px;background:rgba(255,255,255,.16)}.qa-exporter-download-icon svg{width:18px}.qa-exporter-download>span:nth-child(2){display:grid;gap:2px}.qa-exporter-download strong{font-size:11px}.qa-exporter-download small{font-size:8px;opacity:.84}.qa-exporter-spinner{display:none;width:15px;height:15px;margin-left:auto;border:2px solid rgba(255,255,255,.45);border-top-color:currentColor;border-radius:50%;animation:appspin .7s linear infinite}.qa-exporter-download.is-busy .qa-exporter-spinner{display:block}.qa-exporter-privacy{margin:0;padding:0 19px 18px;color:#7a5d31;font-size:8px;line-height:1.5}.qa-exporter-privacy strong{color:#694d24}
@media(max-width:1000px){.qa-exporter-layout{grid-template-columns:1fr}.qa-exporter-preview{position:static}}
@media(max-width:640px){.qa-exporter-hero,.qa-exporter-card-head{align-items:flex-start;flex-direction:column}.qa-exporter-access{align-self:flex-start}.qa-exporter-date-grid,.qa-exporter-mode-options{grid-template-columns:1fr}.qa-exporter-team-head{align-items:flex-start;flex-direction:column}.qa-exporter-team-option{grid-template-columns:auto auto minmax(0,1fr)}.qa-exporter-member-count{display:none}.qa-exporter-stats{grid-template-columns:1fr 1fr}}

/* Schedule I/E */
.schedule-io-page{display:grid;gap:16px}.schedule-io-hero,.schedule-io-action-card,.schedule-io-import-card{border:1px solid var(--line);background:#fff;box-shadow:0 8px 24px rgba(23,32,51,.045)}
.schedule-io-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 22px;border-radius:18px}.schedule-io-identity{display:flex;align-items:center;gap:14px}.schedule-io-icon{display:grid;width:58px;height:58px;flex:0 0 auto;place-items:center;border-radius:17px;background:linear-gradient(145deg,#e8f5f1,#f6fbf9);color:#177c62;font-size:17px;font-weight:950;letter-spacing:-.04em}.schedule-io-eyebrow{display:block;margin-bottom:3px;color:#177c62;font-size:9px;font-weight:880;letter-spacing:.13em;text-transform:uppercase}.schedule-io-identity h3{margin:0 0 4px;font-size:21px;letter-spacing:-.025em}.schedule-io-identity p{margin:0;color:var(--muted);font-size:11px;line-height:1.5}.schedule-io-access{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border-radius:999px;background:#eaf7f2;color:#177c62;font-size:9px;font-weight:850;text-transform:uppercase}.schedule-io-access i{width:7px;height:7px;border-radius:50%;background:currentColor}
.schedule-io-message,.schedule-io-authoring-warning{margin:0;padding:11px 14px;border:1px solid #cfe3d8;border-radius:12px;background:var(--success-soft);color:var(--success);font-size:11px;font-weight:740}.schedule-io-message.error{border-color:#f0caca;background:#fff2f2;color:#b43b3b}.schedule-io-authoring-warning{display:flex;align-items:center;gap:9px;border-color:#f0d59f;background:#fff8e8;color:#815e16}.schedule-io-authoring-warning span{font-weight:600}
.schedule-io-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.schedule-io-action-card{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:1fr auto;gap:12px 13px;min-height:190px;padding:18px;border-radius:17px}.schedule-io-action-mark{display:grid;width:42px;height:42px;place-items:center;border-radius:12px;background:#eef4ff;color:#286ac1;font-size:10px;font-weight:900}.schedule-io-action-mark.contract{background:#f1edff;color:#7144c4;font-size:13px}.schedule-io-action-mark.import{background:#eaf7f2;color:#177c62;font-size:22px}.schedule-io-action-card>div{min-width:0}.schedule-io-action-card h4{margin:1px 0 5px;font-size:14px}.schedule-io-action-card p{margin:0;color:#667085;font-size:10px;line-height:1.5}.schedule-io-action-card>div>span{display:block;margin-top:9px;color:#8791a2;font-size:8px;font-weight:720}.schedule-io-action-card button,.schedule-io-file-button{grid-column:1/-1;display:grid;min-height:40px;place-items:center;padding:9px 12px;border:1px solid #d6dde7;border-radius:10px;background:#fff;color:#344054;font:inherit;font-size:10px;font-weight:850;cursor:pointer}.schedule-io-action-card button:hover,.schedule-io-file-button:hover{border-color:#8fbcae;background:#f4faf8;color:#146b56}.schedule-io-action-card button:disabled,.schedule-io-file-button[aria-disabled="true"]{cursor:not-allowed;opacity:.55}
.schedule-io-import-card{overflow:hidden;border-radius:18px}.schedule-io-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:22px;padding:20px 22px;border-bottom:1px solid var(--line)}.schedule-io-card-head h4{margin:0 0 4px;font-size:17px}.schedule-io-card-head p{max-width:690px;margin:0;color:#667085;font-size:10px;line-height:1.5}.schedule-io-steps{display:flex;gap:5px;margin:0;padding:0;list-style:none}.schedule-io-steps li{display:flex;align-items:center;gap:5px;padding:6px 8px;border-radius:999px;color:#7e8999;font-size:8px;font-weight:800;white-space:nowrap}.schedule-io-steps li strong{display:grid;width:17px;height:17px;place-items:center;border-radius:50%;background:#eaedf2;color:#667085}.schedule-io-steps li.active{background:#eaf7f2;color:#176f59}.schedule-io-steps li.active strong{background:#177c62;color:#fff}
.schedule-io-drop{display:flex;align-items:center;justify-content:center;gap:6px;margin:18px 22px 0;padding:14px;border:1px dashed #b7c4d4;border-radius:12px;background:#fafbfd;color:#647084;font-size:9px}.schedule-io-drop strong{color:#35435a;font-size:10px}.schedule-io-drop.is-dragging{border-color:#177c62;background:#eff9f5;color:#177c62}.schedule-io-empty{display:flex;min-height:170px;align-items:center;justify-content:center;gap:13px;padding:30px}.schedule-io-empty>span{display:grid;width:44px;height:44px;place-items:center;border-radius:13px;background:#f1f4f8;color:#7a8798;font-size:13px;font-weight:900}.schedule-io-empty>div{max-width:560px}.schedule-io-empty strong{font-size:13px}.schedule-io-empty p{margin:4px 0 0;color:#7a8494;font-size:10px;line-height:1.55}
.schedule-io-review{display:grid;gap:14px;padding:18px 22px 22px}.schedule-io-review-head{display:flex;align-items:center;justify-content:space-between;gap:18px}.schedule-io-review-head>div{display:grid;gap:2px}.schedule-io-review-head span,.schedule-io-column-label{color:#7b8798;font-size:8px;font-weight:800;text-transform:uppercase}.schedule-io-review-head strong{font-size:12px}.schedule-io-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.schedule-io-stats>div{display:grid;gap:4px;padding:11px 12px;border:1px solid #e3e8ef;border-radius:11px;background:#fafbfd}.schedule-io-stats span{color:#778395;font-size:8px;font-weight:800;text-transform:uppercase}.schedule-io-stats strong{font-size:20px;letter-spacing:-.035em}.schedule-io-issues{display:grid;gap:7px}.schedule-io-issue{display:grid;grid-template-columns:42px minmax(0,1fr);gap:9px;padding:9px 11px;border-radius:10px;font-size:9px;line-height:1.45}.schedule-io-issue strong{font-size:8px;text-transform:uppercase}.schedule-io-issue.error{border:1px solid #f0caca;background:#fff3f3;color:#9f3030}.schedule-io-issue.warning{border:1px solid #efdba9;background:#fff9eb;color:#785a1d}
.schedule-io-preview-heading,.schedule-io-preview-row{display:grid;grid-template-columns:minmax(180px,1.05fr) minmax(210px,1.35fr) 24px minmax(210px,1.35fr) 92px;gap:10px;align-items:center}.schedule-io-preview-heading{padding:0 12px;color:#7a8494;font-size:8px;font-weight:820;text-transform:uppercase}.schedule-io-preview-rows{overflow:hidden;border:1px solid #dfe5ed;border-radius:12px}.schedule-io-preview-row{padding:12px;border-bottom:1px solid #e8ecf1;background:#fff}.schedule-io-preview-row:last-child{border-bottom:0}.schedule-io-preview-row.changed{background:#f7fbfa}.schedule-io-preview-row.error{background:#fffafa}.schedule-io-person{display:grid;gap:2px;min-width:0}.schedule-io-person strong,.schedule-io-person span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.schedule-io-person strong{font-size:10px}.schedule-io-person span{color:#7d8797;font-size:8px}.schedule-io-preview-row p{margin:3px 0 0;color:#4d596a;font-size:8px;line-height:1.5}.schedule-io-arrow{color:#94a0b0;text-align:center}.schedule-io-row-status{justify-self:end;padding:5px 7px;border-radius:999px;font-size:8px;font-weight:840}.schedule-io-row-status.changed{background:#e4f6ef;color:#16745c}.schedule-io-row-status.unchanged{background:#eef1f5;color:#697586}.schedule-io-row-status.error{background:#ffeded;color:#a93636}
.schedule-io-import-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:3px}.schedule-io-import-footer>div{display:grid;gap:3px}.schedule-io-import-footer strong{font-size:10px}.schedule-io-import-footer span{color:#748092;font-size:8px}.schedule-io-create{display:flex;min-width:230px;min-height:44px;align-items:center;justify-content:center;gap:10px;padding:10px 14px;border:1px solid #177c62;border-radius:11px;background:#177c62;color:#fff;font:inherit;font-size:10px;font-weight:860;cursor:pointer;box-shadow:0 7px 16px rgba(23,124,98,.18)}.schedule-io-create:disabled{border-color:#d5dbe4;background:#e8ebf0;color:#8b95a5;box-shadow:none;cursor:not-allowed}.schedule-io-create i{display:none;width:13px;height:13px;border:2px solid rgba(255,255,255,.45);border-top-color:currentColor;border-radius:50%;animation:appspin .7s linear infinite}.schedule-io-create.is-busy i{display:block}
@media(max-width:1050px){.schedule-io-actions{grid-template-columns:1fr}.schedule-io-action-card{min-height:0}.schedule-io-card-head{align-items:flex-start;flex-direction:column}.schedule-io-preview-heading{display:none}.schedule-io-preview-row{grid-template-columns:minmax(170px,1fr) minmax(0,1fr) 18px minmax(0,1fr);}.schedule-io-row-status{grid-column:1/-1;justify-self:start}.schedule-io-column-label{display:block}}
@media(max-width:680px){.schedule-io-hero{align-items:flex-start;flex-direction:column}.schedule-io-access{align-self:flex-start}.schedule-io-steps{width:100%;overflow:auto}.schedule-io-stats{grid-template-columns:1fr 1fr}.schedule-io-review-head,.schedule-io-import-footer{align-items:stretch;flex-direction:column}.schedule-io-preview-row{grid-template-columns:1fr}.schedule-io-arrow{transform:rotate(90deg)}.schedule-io-create{width:100%}}

/* Holiday-aware workforce planning */
.holiday-planning-stack{display:grid;gap:18px}.holiday-hero-card{background:linear-gradient(135deg,#fff 0%,#fbfdff 62%,#f2f7ff 100%)}.holiday-mode-pills{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px}.holiday-mode-pill,.holiday-state-pill{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border-radius:999px;background:#eef2f7;color:#596579;font-size:9px;font-weight:850;white-space:nowrap}.holiday-mode-pill:before,.holiday-state-pill:before{width:6px;height:6px;border-radius:50%;background:currentColor;content:""}.holiday-mode-pill.active,.holiday-state-pill.ready{background:#e8f7ef;color:#15724f}.holiday-mode-pill.preview,.holiday-state-pill.needs_review{background:#fff4dc;color:#8a5c09}.holiday-state-pill.blocked{background:#fff0ef;color:#b23a35}.holiday-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(130px,.7fr)) minmax(210px,1.25fr) auto;align-items:end;gap:12px}.holiday-search-field{min-width:0}.holiday-filter-action{min-height:42px}.holiday-summary-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.holiday-summary-card{display:grid;gap:5px;padding:15px 16px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:var(--shadow)}.holiday-summary-card span{color:var(--muted);font-size:9px;font-weight:850;letter-spacing:.04em;text-transform:uppercase}.holiday-summary-card strong{font-size:24px;letter-spacing:-.035em}.holiday-summary-card small{color:var(--muted);font-size:9px}.holiday-table-wrap{overflow:auto}.holiday-table{width:100%;min-width:1120px;border-collapse:collapse}.holiday-table th,.holiday-table td{padding:12px 13px;border-bottom:1px solid var(--line);vertical-align:middle;text-align:left}.holiday-table th{background:#f8fafc;color:#657185;font-size:9px;font-weight:850;letter-spacing:.035em;text-transform:uppercase}.holiday-table td{color:#3d495d;font-size:10px}.holiday-table td strong{display:block;color:var(--ink);font-size:11px}.holiday-table td small{display:block;margin-top:3px;color:var(--muted);font-size:8px;line-height:1.45}.holiday-table tr:hover td{background:#fbfdff}.holiday-date-stack{display:grid;gap:2px}.holiday-date-stack span{white-space:nowrap}.holiday-metric-primary{font-size:13px!important;font-variant-numeric:tabular-nums}.holiday-delta.positive{color:#b04436}.holiday-delta.negative{color:#147256}.holiday-detail-card{scroll-margin-top:90px}.holiday-detail-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:20px;border-bottom:1px solid var(--line)}.holiday-detail-header h2{margin:2px 0 5px;font-size:22px}.holiday-detail-header p{margin:0;color:var(--muted);font-size:11px}.holiday-detail-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.holiday-detail-grid{display:grid;grid-template-columns:1fr 1.35fr;gap:14px;padding:18px 20px}.holiday-evidence-card{overflow:hidden;border:1px solid var(--line);border-radius:14px;background:#fbfcfe}.holiday-evidence-card>header{padding:14px 15px;border-bottom:1px solid var(--line);background:#fff}.holiday-evidence-card h3{margin:0;font-size:13px}.holiday-evidence-card header p{margin:4px 0 0;color:var(--muted);font-size:9px}.holiday-evidence-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:13px}.holiday-evidence-stats>div{display:grid;gap:3px;padding:10px;border:1px solid #e4e9f0;border-radius:10px;background:#fff}.holiday-evidence-stats span{color:var(--muted);font-size:8px;font-weight:800;text-transform:uppercase}.holiday-evidence-stats strong{font-size:17px}.holiday-week-days{display:grid;gap:1px;background:var(--line)}.holiday-week-day{display:grid;grid-template-columns:minmax(90px,.8fr) repeat(3,minmax(70px,.65fr)) minmax(85px,.75fr);align-items:center;gap:9px;padding:10px 12px;background:#fff;font-size:9px}.holiday-week-day strong{font-size:10px}.holiday-week-day span{color:#647084;font-variant-numeric:tabular-nums}.holiday-week-day.holiday{box-shadow:inset 3px 0 0 var(--accent);background:#fff9f5}.holiday-explanation{margin:0;padding:13px 15px;border-top:1px solid var(--line);color:#687487;font-size:9px;line-height:1.55}.holiday-team-toolbar{display:grid;grid-template-columns:minmax(150px,.7fr) minmax(220px,1.2fr) auto auto auto;align-items:end;gap:12px}.team-holiday-roster{display:grid}.team-holiday-row{display:grid;grid-template-columns:minmax(240px,1.2fr) minmax(220px,.9fr) minmax(250px,1fr);align-items:center;gap:14px;padding:12px 20px;border-bottom:1px solid var(--line)}.team-holiday-row:last-child{border-bottom:0}.team-holiday-person{display:grid;gap:2px}.team-holiday-person strong{font-size:11px}.team-holiday-person span{color:var(--muted);font-size:9px}.team-holiday-set-select{min-height:40px;padding:8px 10px;border:1px solid var(--line);border-radius:9px;background:#fff;font:inherit;font-size:10px}.team-holiday-current{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--muted);font-size:9px}.team-holiday-current b{color:var(--ink)}.team-holiday-row-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}.holiday-impact-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;border-bottom:1px solid var(--line)}.holiday-impact-head h2{margin:0;font-size:17px}.holiday-impact-head p{margin:4px 0 0;color:var(--muted);font-size:10px}.holiday-impact-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:16px 20px}.holiday-impact-grid>div{padding:12px;border:1px solid var(--line);border-radius:11px;background:#fafbfd}.holiday-impact-grid span{display:block;color:var(--muted);font-size:8px;font-weight:820;text-transform:uppercase}.holiday-impact-grid strong{display:block;margin-top:4px;font-size:19px}.holiday-risk-list{display:grid;gap:6px;padding:0 20px 18px}.holiday-risk-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 11px;border-radius:9px;background:#fff3f1;color:#9b3b34;font-size:9px}.holiday-settings-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:18px}.holiday-activation-grid{display:grid;grid-template-columns:minmax(150px,.7fr) minmax(150px,.7fr) auto minmax(260px,1.3fr) auto;align-items:end;gap:12px}.holiday-settings-list{display:grid;max-height:620px;overflow:auto}.holiday-settings-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:13px 16px;border-bottom:1px solid var(--line)}.holiday-settings-item:last-child{border-bottom:0}.holiday-settings-item strong{display:block;font-size:11px}.holiday-settings-item p{margin:3px 0 0;color:var(--muted);font-size:9px;line-height:1.5}.holiday-settings-meta{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px}.holiday-settings-meta span{padding:4px 7px;border-radius:999px;background:#f0f3f7;color:#637084;font-size:8px;font-weight:760}.holiday-settings-actions{display:flex;align-items:center;gap:7px}.holiday-audit-list{display:grid;max-height:360px;overflow:auto}.holiday-audit-item{display:grid;grid-template-columns:150px minmax(180px,.7fr) minmax(0,1fr);gap:12px;padding:11px 16px;border-bottom:1px solid var(--line);font-size:9px}.holiday-audit-item time,.holiday-audit-item span{color:var(--muted)}.holiday-empty-inline{margin:0;padding:28px;color:var(--muted);font-size:10px;text-align:center}.holiday-inline-form{display:grid;grid-template-columns:1fr 1fr;gap:9px;padding:13px;border-top:1px solid var(--line);background:#fafbfd}.holiday-inline-form .full{grid-column:1/-1}.holiday-inline-form-actions{display:flex;grid-column:1/-1;justify-content:flex-end;gap:8px}.holiday-busy{cursor:wait;opacity:.62}
.holiday-settings-item>.holiday-inline-form{grid-column:1/-1;margin:0 -16px -13px}.holiday-settings-operations{display:grid;grid-template-columns:1fr 1.35fr}.holiday-settings-operations .holiday-inline-form{border-right:1px solid var(--line)}.holiday-membership-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-height:230px;overflow:auto;padding:9px;border:1px solid var(--line);border-radius:10px;background:#fff}.holiday-membership-checks label{display:flex;align-items:flex-start;gap:7px;padding:5px;color:#4c596d;font-size:9px}.holiday-inline-form textarea{width:100%;resize:vertical;border:1px solid var(--line);border-radius:9px;background:#fff;padding:9px;font:9px/1.45 ui-monospace,SFMono-Regular,Consolas,monospace}
.holiday-inline-form fieldset.field{min-width:0;margin:0;padding:0;border:0}.holiday-inline-form fieldset.field legend{margin:0 0 6px;padding:0;font-size:12px;font-weight:780}.holiday-state-impact-review{display:grid;grid-column:1/-1;gap:5px;padding:12px 14px;border:1px solid #b9dcc9;border-radius:11px;background:#eef9f3;color:#175f45}.holiday-state-impact-review>div{display:flex;align-items:center;justify-content:space-between;gap:12px}.holiday-state-impact-review strong{font-size:11px}.holiday-state-impact-review span,.holiday-state-impact-review small{font-size:9px;line-height:1.45}.holiday-state-impact-review small{color:#3e705e}
@media(max-width:1180px){.holiday-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.holiday-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.holiday-team-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}.holiday-team-toolbar .overlap-lock-toggle{align-self:center}.holiday-activation-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.holiday-reason-field{grid-column:1/-1}.holiday-detail-grid,.holiday-settings-grid{grid-template-columns:1fr}.holiday-settings-operations{grid-template-columns:1fr}}
@media(max-width:700px){.planning-tabs{max-width:100%;overflow-x:auto;scrollbar-width:thin}.planning-tab{flex:0 0 auto;white-space:nowrap}.holiday-filter-grid,.holiday-summary-grid,.holiday-team-toolbar,.holiday-impact-grid,.holiday-activation-grid{grid-template-columns:1fr}.holiday-detail-header,.holiday-impact-head{align-items:stretch;flex-direction:column}.holiday-detail-actions{justify-content:flex-start}.holiday-detail-grid{padding:12px}.team-holiday-row{grid-template-columns:1fr;padding:14px 16px}.holiday-week-day{grid-template-columns:1fr 1fr}.holiday-week-day span:nth-child(4){display:none}.holiday-audit-item{grid-template-columns:1fr;gap:3px}.holiday-mode-pills{justify-content:flex-start}}
.holiday-table{min-width:1180px}.holiday-state-pill.not_applicable{background:#f0f3f7;color:#677386}.holiday-group-row td{background:#fff}.holiday-region-badges{display:flex;flex-wrap:wrap;gap:4px;margin-top:5px}.holiday-region-badge{display:inline-flex;padding:3px 6px;border:1px solid #d9e2ed;border-radius:999px;background:#f5f8fc;color:#536176;font-size:8px;font-weight:820;white-space:nowrap}.holiday-status-stack{display:grid;gap:6px}.holiday-status-stack>span,.holiday-region-statuses>span{display:flex;align-items:center;justify-content:space-between;gap:7px}.holiday-status-stack b{color:#667287;font-size:8px}.holiday-region-detail-row>td{padding:0!important;background:#f7f9fc!important}.holiday-region-breakdown{display:grid;gap:1px;padding:8px 12px 12px}.holiday-region-occurrence{display:grid;grid-template-columns:minmax(230px,1.3fr) minmax(120px,.65fr) minmax(210px,.9fr) auto;align-items:center;gap:14px;padding:11px 12px;border:1px solid #e0e6ef;border-radius:10px;background:#fff}.holiday-region-occurrence>div:first-child{display:grid;justify-items:start;gap:3px}.holiday-region-occurrence small{color:var(--muted);font-size:8px}.holiday-region-statuses{display:grid;gap:5px;color:#667287;font-size:8px}
@media(max-width:1180px){.holiday-region-occurrence{grid-template-columns:1fr 1fr}.holiday-region-occurrence>button{justify-self:start}}
@media(max-width:700px){.holiday-region-occurrence{grid-template-columns:1fr}}
.team-holiday-exception-editor{display:grid;margin:14px 20px 20px;overflow:hidden;border:1px solid #cfdced;border-radius:14px;background:#f8fbff}.team-holiday-exception-editor>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid #dce6f2;background:#fff}.team-holiday-exception-editor h3{margin:0;font-size:14px}.team-holiday-exception-editor header p{margin:4px 0 0;color:var(--muted);font-size:9px}.team-holiday-exception-forms{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:14px}.team-holiday-exception-forms form{display:grid;grid-template-columns:1fr 1fr;align-content:start;gap:9px;padding:13px;border:1px solid var(--line);border-radius:11px;background:#fff}.team-holiday-exception-forms h4{grid-column:1/-1;margin:0 0 2px;font-size:12px}.team-holiday-exception-forms button{grid-column:1/-1;justify-self:end}
@media(max-width:700px){.team-holiday-exception-forms,.team-holiday-exception-forms form{grid-template-columns:1fr}.team-holiday-exception-forms h4,.team-holiday-exception-forms button{grid-column:auto}}

.holiday-calendar-editor{display:grid;grid-template-columns:1fr 1fr;gap:8px}.holiday-calendar-row{display:grid;grid-template-columns:minmax(0,1fr) 100px;gap:8px;padding:9px 10px;border:1px solid #e4e8ee;border-radius:10px;background:#fafbfd}.holiday-calendar-row label{display:grid;gap:5px}.holiday-calendar-row label>span{color:#697586;font-size:8px;font-weight:820}.holiday-calendar-row input{width:100%;min-height:37px;padding:7px 9px;border:1px solid var(--line);border-radius:8px;background:#fff;color:#344054;font:inherit;font-size:9px}
@media(max-width:1100px){.holiday-calendar-editor{grid-template-columns:1fr}}
@media(max-width:760px){.holiday-calendar-row{grid-template-columns:1fr}}

.holiday-staffing-shell{display:grid;gap:18px;min-width:0}.holiday-staffing-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:22px;padding:20px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:var(--shadow)}.holiday-staffing-heading>div:first-child{min-width:0}.holiday-staffing-heading .eyebrow{margin:0 0 5px}.holiday-staffing-heading h2{margin:0;font-size:20px;letter-spacing:-.025em}.holiday-staffing-heading p:last-child{max-width:780px;margin:5px 0 0;color:var(--muted);font-size:12px}.holiday-heading-actions{display:flex;flex:0 0 auto;align-items:flex-end;gap:10px}.holiday-year-label{display:grid;gap:5px}.holiday-year-label>span{color:var(--muted);font-size:9px;font-weight:850;letter-spacing:.045em;text-transform:uppercase}.holiday-year-label select{min-width:100px;min-height:42px;padding:8px 30px 8px 11px;border:1px solid var(--line-strong);border-radius:10px;background:#fff;color:var(--ink);font-weight:750}.holiday-year-label select:focus{border-color:var(--accent);outline:3px solid rgba(255,107,26,.12)}
.holiday-staffing-shell .holiday-summary-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.holiday-staffing-shell .holiday-summary-grid article{display:grid;gap:4px;min-height:88px;padding:15px 16px;border:1px solid var(--line);border-radius:13px;background:#fff;box-shadow:var(--shadow-small)}.holiday-staffing-shell .holiday-summary-grid article small{color:var(--muted);font-size:9px;font-weight:850;letter-spacing:.045em;text-transform:uppercase}.holiday-staffing-shell .holiday-summary-grid article strong{align-self:end;font-size:25px;line-height:1;letter-spacing:-.04em;font-variant-numeric:tabular-nums}.holiday-staffing-shell .holiday-summary-grid article.risk{border-color:#f1c8cb;background:var(--danger-soft)}.holiday-staffing-shell .holiday-summary-grid article.risk strong{color:var(--danger)}
.holiday-list-card,.holiday-detail-card{overflow:hidden;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:var(--shadow)}.holiday-list-card>header,.holiday-detail-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:18px 20px;border-bottom:1px solid var(--line)}.holiday-list-card>header h3,.holiday-detail-card>header h3{margin:0;font-size:16px}.holiday-list-card>header p,.holiday-detail-card>header p{margin:4px 0 0;color:var(--muted);font-size:11px}.holiday-list-card>header>span{display:inline-flex;flex:0 0 auto;padding:5px 9px;border-radius:999px;background:var(--soft);color:var(--muted);font-size:9px;font-weight:850}.holiday-date-list{overflow-x:auto}.holiday-date-row{border-bottom:1px solid var(--line)}.holiday-date-row:last-child{border-bottom:0}.holiday-date-row>a{display:grid;width:100%;min-width:1080px;grid-template-columns:160px minmax(250px,1.5fr) 90px 118px 85px 132px 68px;align-items:center;gap:14px;padding:13px 20px;border:0;background:#fff;color:var(--ink);text-align:left;text-decoration:none;cursor:pointer}.holiday-date-row>a:hover{background:#fbfcfe}.holiday-date-row>a:focus-visible{position:relative;z-index:1;outline-offset:-3px}.holiday-date-row>a>span{min-width:0}.holiday-date-row>a>span>strong,.holiday-date-row>a>span>small{display:block}.holiday-date-row>a>span>strong{overflow:hidden;font-size:11px;font-weight:820;text-overflow:ellipsis;white-space:nowrap}.holiday-date-row>a>span>small{margin-top:3px;color:var(--muted);font-size:8px}.holiday-date-cell small{display:flex!important;flex-wrap:wrap;gap:4px}.holiday-name-cell strong{font-size:12px!important}.holiday-row-open{justify-self:end;color:#4f5d70;font-size:10px;font-weight:820;white-space:nowrap}.holiday-state{display:inline-flex!important;width:fit-content;align-items:center;gap:6px;padding:6px 9px;border-radius:999px;font-size:9px!important;font-weight:850;white-space:nowrap}.holiday-state::before{width:6px;height:6px;flex:0 0 auto;border-radius:50%;background:currentColor;content:""}.holiday-state.safe{background:var(--success-soft);color:var(--success)}.holiday-state.risk{background:var(--danger-soft);color:var(--danger)}.holiday-state.pending{background:var(--warning-soft);color:var(--warning)}
.holiday-list-controls{display:flex;flex:0 0 auto;align-items:center;gap:10px}.holiday-list-controls>span{display:inline-flex;padding:5px 9px;border-radius:999px;background:var(--soft);color:var(--muted);font-size:9px;font-weight:850;white-space:nowrap}.holiday-past-toggle{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border:1px solid var(--line);border-radius:9px;background:#fff;cursor:pointer}.holiday-past-toggle:hover{border-color:var(--line-strong);background:var(--soft)}.holiday-past-toggle input{width:15px;height:15px;margin:0;accent-color:var(--accent)}.holiday-past-toggle span{font-size:9px;font-weight:800;white-space:nowrap}
.holiday-message,.holiday-warning{display:flex;align-items:flex-start;gap:10px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#fff;font-size:11px;font-weight:700}.holiday-message.success{border-color:#b9dfcd;background:var(--success-soft);color:var(--success)}.holiday-message.error{border-color:#efc4c7;background:var(--danger-soft);color:var(--danger)}.holiday-warning{border-color:#ead49f;background:var(--warning-soft);color:var(--warning)}.holiday-warning{display:grid;gap:2px}.holiday-warning span{font-weight:600}.holiday-empty,.holiday-loading-state{display:grid;min-height:220px;place-content:center;justify-items:center;padding:30px;text-align:center}.holiday-empty p,.holiday-loading-state p{max-width:520px;margin:5px 0 0;color:var(--muted);font-size:11px}.holiday-spinner{width:28px;height:28px;margin-bottom:11px;border:3px solid #f2d8c8;border-top-color:var(--accent);border-radius:50%;animation:holiday-spin .8s linear infinite}@keyframes holiday-spin{to{transform:rotate(360deg)}}
.holiday-detail-card{scroll-margin-top:88px}.holiday-detail-card>header .eyebrow{display:flex;flex-wrap:wrap;gap:4px;margin:0 0 6px}.holiday-detail-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:16px 20px;background:var(--soft)}.holiday-detail-summary>div{display:grid;gap:4px;padding:12px;border:1px solid var(--line);border-radius:11px;background:#fff}.holiday-detail-summary small{color:var(--muted);font-size:8px;font-weight:850;text-transform:uppercase}.holiday-detail-summary strong{overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.holiday-detail-summary.safe>div:first-child{border-color:#b9dfcd;background:var(--success-soft);color:var(--success)}.holiday-detail-summary.risk>div:first-child{border-color:#efc4c7;background:var(--danger-soft);color:var(--danger)}.holiday-red-periods,.holiday-safe-callout{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin:0 20px 16px;padding:11px 13px;border-radius:11px;font-size:10px}.holiday-red-periods{border:1px solid #efc4c7;background:var(--danger-soft);color:var(--danger)}.holiday-red-periods span{padding:4px 7px;border-radius:7px;background:#fff}.holiday-safe-callout{border:1px solid #b9dfcd;background:var(--success-soft);color:var(--success)}.holiday-safe-callout span{color:#476c5b}.holiday-person-table{overflow-x:auto;border-top:1px solid var(--line)}.holiday-person-head,.holiday-person-row{display:grid;min-width:900px;grid-template-columns:minmax(210px,1fr) minmax(220px,1fr) minmax(290px,1.35fr) 150px;align-items:center;gap:14px;padding:12px 20px}.holiday-person-head{background:#f8fafc;color:var(--muted);font-size:8px;font-weight:850;letter-spacing:.045em;text-transform:uppercase}.holiday-person-row{border-top:1px solid var(--line)}.holiday-person-row:first-of-type{border-top:0}.holiday-person-row.working{background:#fbfefc}.holiday-person-row.off{background:#fffdfc}.holiday-person-row>span{display:grid;gap:3px;min-width:0}.holiday-person-row strong{overflow:hidden;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.holiday-person-row small{color:var(--muted);font-size:8px;line-height:1.45}.holiday-person-row small.warning{color:var(--warning);font-weight:750}.holiday-working-toggle{display:inline-flex;width:fit-content;align-items:center;gap:8px;cursor:pointer}.holiday-working-toggle input{width:17px;height:17px;margin:0;accent-color:var(--accent)}.holiday-working-toggle span{font-size:10px;font-weight:800}.holiday-detail-card>footer{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:14px 20px;border-top:1px solid var(--line);background:#fff}
.holiday-drawer-backdrop{position:fixed;z-index:620;inset:0;background:rgba(18,25,38,.45);backdrop-filter:blur(3px)}.holiday-config-drawer{position:fixed;z-index:630;top:0;right:0;display:grid;width:min(820px,94vw);height:100vh;grid-template-rows:auto minmax(0,1fr) auto;border-left:1px solid var(--line);background:#fff;box-shadow:-24px 0 64px rgba(12,18,30,.22)}.holiday-config-drawer>header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:20px 22px;border-bottom:1px solid var(--line)}.holiday-config-drawer>header .eyebrow{margin:0 0 5px}.holiday-config-drawer>header h3{margin:0;font-size:18px}.holiday-config-drawer>header p:last-child{margin:4px 0 0;color:var(--muted);font-size:11px}.holiday-drawer-body{display:grid;align-content:start;gap:22px;overflow-y:auto;padding:20px 22px}.holiday-drawer-body>section{display:grid;gap:12px}.holiday-drawer-body>section+section{padding-top:20px;border-top:1px solid var(--line)}.holiday-section-title{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.holiday-section-title h4{margin:0;font-size:13px}.holiday-section-title p{margin:3px 0 0;color:var(--muted);font-size:9px}.holiday-section-title>span{color:var(--muted);font-size:9px;font-weight:800}.holiday-assignment-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.holiday-assignment-grid label{display:grid;grid-template-columns:minmax(130px,1fr) minmax(170px,1.25fr);align-items:center;gap:9px;padding:9px 10px;border:1px solid var(--line);border-radius:10px;background:var(--soft)}.holiday-assignment-grid label>span{overflow:hidden;font-size:9px;font-weight:800;text-overflow:ellipsis;white-space:nowrap}.holiday-assignment-grid select,.holiday-occurrence-row input,.holiday-occurrence-row select{width:100%;min-height:37px;padding:7px 9px;border:1px solid var(--line-strong);border-radius:8px;background:#fff;color:var(--ink);font-size:9px}.holiday-occurrence-editor{display:grid;gap:8px}.holiday-occurrence-row{display:grid;grid-template-columns:minmax(130px,1.2fr) minmax(130px,1fr) 120px 120px 36px;align-items:end;gap:8px;padding:10px;border:1px solid var(--line);border-radius:10px;background:var(--soft)}.holiday-occurrence-row label{display:grid;gap:5px}.holiday-occurrence-row label>span{color:var(--muted);font-size:8px;font-weight:820}.holiday-occurrence-row .icon-button.danger{color:var(--danger)}.holiday-config-drawer>footer{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:14px 20px;border-top:1px solid var(--line);background:#fff}
@media(max-width:1180px){.holiday-staffing-shell .holiday-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.holiday-staffing-heading{align-items:stretch;flex-direction:column}.holiday-heading-actions{justify-content:flex-end}.holiday-detail-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.holiday-staffing-shell{gap:14px}.holiday-staffing-heading{padding:16px}.holiday-heading-actions{display:grid;grid-template-columns:110px 1fr}.holiday-heading-actions .button{width:100%}.holiday-staffing-shell .holiday-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.holiday-staffing-shell .holiday-summary-grid article{min-height:76px;padding:12px}.holiday-list-card>header,.holiday-detail-card>header{align-items:stretch;flex-direction:column;padding:15px 16px}.holiday-list-controls{justify-content:space-between}.holiday-date-row>a{min-width:0;grid-template-columns:1fr 1fr;gap:11px;padding:13px 16px}.holiday-name-cell{grid-column:1/-1;grid-row:1}.holiday-date-cell{grid-column:1/-1}.holiday-state{justify-self:start}.holiday-row-open{align-self:center}.holiday-detail-summary{grid-template-columns:1fr 1fr;padding:12px 16px}.holiday-red-periods,.holiday-safe-callout{margin:0 16px 14px}.holiday-detail-card>footer{align-items:stretch;flex-direction:column;padding:12px 16px}.holiday-detail-card>footer .button{width:100%}.holiday-config-drawer{width:100vw}.holiday-drawer-body{padding:16px}.holiday-assignment-grid{grid-template-columns:1fr}.holiday-assignment-grid label{grid-template-columns:1fr}.holiday-occurrence-row{grid-template-columns:1fr}.holiday-config-drawer>footer{padding:12px 16px}.holiday-config-drawer>footer .button{flex:1}}
.automated-imports-runner-state{margin:12px 0;padding:9px 11px;border:1px solid #dce4ef;border-radius:10px;background:#f7f9fc;color:#59677a;font-size:10px;font-weight:750}.automated-imports-runner-state.healthy{border-color:#cfe3d8;background:var(--success-soft);color:var(--success)}.automated-imports-runner-state.attention{border-color:#f2c7c7;background:#fff3f3;color:#b63a3a}.automated-imports-status-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.automated-imports-status-actions .automated-imports-refresh{margin-top:0}.automated-import-job-dot.not_due{background:#aab3c0}
/* Projections Exporter */
.projections-exporter-page{display:grid;gap:18px;color:#0b1b38}.projections-exporter-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:4px 2px 0}.projections-exporter-identity{display:flex;align-items:center;gap:16px}.projections-exporter-icon{width:54px;height:54px;display:grid;place-items:center;border-radius:16px;color:#fff;background:linear-gradient(145deg,#10264a,#2466df);box-shadow:0 12px 30px rgba(28,83,173,.2)}.projections-exporter-icon svg{width:28px;height:28px}.projections-exporter-eyebrow{display:block;margin-bottom:3px;color:#2b66d9;font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}.projections-exporter-identity h3{margin:0;font-size:26px;line-height:1.1}.projections-exporter-identity p{margin:6px 0 0;max-width:760px;color:#5e6c83;font-size:14px}.projections-exporter-access,.projections-exporter-ready{display:inline-flex;align-items:center;gap:7px;padding:8px 11px;border:1px solid #dbe4f1;border-radius:999px;background:#fff;color:#4b5c76;font-size:12px;font-weight:700;white-space:nowrap}.projections-exporter-access i,.projections-exporter-ready i{width:7px;height:7px;border-radius:50%;background:#2bb673}.projections-exporter-message{margin:0;padding:12px 14px;border:1px solid #dbe4f1;border-radius:12px;background:#f7faff;color:#34445e;font-size:13px}.projections-exporter-message.success{border-color:#b9e8d2;background:#effbf5;color:#147447}.projections-exporter-message.error{border-color:#ffc7c7;background:#fff4f4;color:#b42318}.projections-exporter-message.loading{border-color:#bed2f8;background:#f2f7ff;color:#2658a6}.projections-exporter-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(330px,.65fr);gap:18px;align-items:start}.projections-exporter-card{overflow:hidden;border:1px solid #dbe4f1;border-radius:18px;background:#fff;box-shadow:0 14px 34px rgba(31,51,81,.08)}.projections-exporter-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:20px 22px;border-bottom:1px solid #e4eaf3}.projections-exporter-card-head h4{margin:0;color:#0b1b38;font-size:17px}.projections-exporter-card-head p{margin:5px 0 0;color:#68778e;font-size:12px}.projections-exporter-card-head>span{padding:6px 9px;border-radius:8px;background:#f3f6fb;color:#52647f;font-size:11px;font-weight:700}.projections-exporter-date-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:18px 22px 8px}.projections-exporter-date-grid label{display:grid;gap:6px;color:#44546c;font-size:12px;font-weight:700}.projections-exporter-date-grid input,.projections-exporter-search input{width:100%;border:1px solid #ccd7e6;border-radius:11px;background:#fff;color:#10203a;font:inherit}.projections-exporter-date-grid input{height:44px;padding:0 12px}.projections-exporter-team-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 22px 10px}.projections-exporter-team-head>div:first-child{display:grid;gap:2px}.projections-exporter-team-head strong{font-size:13px}.projections-exporter-team-head span{color:#718096;font-size:11px}.projections-exporter-team-head>div:last-child{display:flex;gap:6px}.projections-exporter-team-head button{border:0;background:transparent;color:#2e63c7;font-size:11px;font-weight:800;cursor:pointer}.projections-exporter-search{position:relative;display:block;margin:0 22px 10px}.projections-exporter-search svg{position:absolute;left:12px;top:11px;width:18px;height:18px;color:#6b7b91}.projections-exporter-search input{height:40px;padding:0 12px 0 38px}.projections-exporter-team-list{max-height:390px;overflow:auto;border-top:1px solid #edf1f6}.projections-exporter-team-option{display:grid;grid-template-columns:auto auto minmax(0,1fr);align-items:center;gap:11px;padding:11px 22px;border-bottom:1px solid #edf1f6;cursor:pointer}.projections-exporter-team-option:hover{background:#f8faff}.projections-exporter-team-option input{width:16px;height:16px;accent-color:#2466df}.projections-exporter-avatar{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#eaf1ff;color:#285cb4;font-size:11px;font-weight:800}.projections-exporter-team-option>span:last-child{display:grid;min-width:0}.projections-exporter-team-option strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.projections-exporter-team-option small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#748299;font-size:10px}.projections-exporter-team-empty{padding:24px;text-align:center;color:#78869a;font-size:12px}.projections-exporter-preview{position:sticky;top:16px}.projections-exporter-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:18px 18px 12px}.projections-exporter-stats div{padding:13px 10px;border:1px solid #e2e8f1;border-radius:12px;background:#f8faff}.projections-exporter-stats span{display:block;color:#718096;font-size:10px}.projections-exporter-stats strong{display:block;margin-top:3px;font-size:22px}.projections-exporter-includes{margin:4px 18px 16px;padding:15px;border-radius:13px;background:#f4f7fc}.projections-exporter-includes>strong{font-size:12px}.projections-exporter-includes ul{display:grid;gap:7px;margin:10px 0 0;padding-left:18px;color:#56667d;font-size:11px;line-height:1.35}.projections-exporter-download{position:relative;width:calc(100% - 36px);min-height:62px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;margin:0 18px;padding:12px 14px;border:0;border-radius:13px;background:#ff641e;color:#fff;text-align:left;cursor:pointer;box-shadow:0 10px 22px rgba(255,100,30,.22)}.projections-exporter-download:disabled{cursor:not-allowed;box-shadow:none;opacity:.55}.projections-exporter-download>span:first-child{width:36px;height:36px;display:grid;place-items:center;border-radius:10px;background:rgba(255,255,255,.16)}.projections-exporter-download svg{width:20px;height:20px}.projections-exporter-download>span:nth-child(2){display:grid}.projections-exporter-download strong{font-size:13px}.projections-exporter-download small{margin-top:2px;color:rgba(255,255,255,.83);font-size:10px}.projections-exporter-spinner{display:none;width:18px;height:18px;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;animation:projections-exporter-spin .75s linear infinite}.projections-exporter-download.is-busy .projections-exporter-spinner{display:block}@keyframes projections-exporter-spin{to{transform:rotate(360deg)}}.projections-exporter-note{margin:14px 18px 18px;color:#6c7a90;font-size:10px;line-height:1.45}.projections-exporter-note strong{color:#41516a}@media(max-width:900px){.projections-exporter-layout{grid-template-columns:1fr}.projections-exporter-preview{position:static}}@media(max-width:600px){.projections-exporter-hero{align-items:flex-start}.projections-exporter-access{display:none}.projections-exporter-identity{align-items:flex-start}.projections-exporter-icon{width:46px;height:46px;border-radius:13px}.projections-exporter-identity h3{font-size:22px}.projections-exporter-date-grid{grid-template-columns:1fr}.projections-exporter-team-head{align-items:flex-start}.projections-exporter-stats{grid-template-columns:1fr}.projections-exporter-stats div{display:flex;align-items:center;justify-content:space-between}.projections-exporter-stats strong{margin:0;font-size:18px}}

/* Routing Auditor */
.routing-auditor-page{display:grid;gap:18px;color:var(--ink)}.routing-auditor-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:22px 24px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:var(--shadow)}.routing-auditor-eyebrow{display:block;margin-bottom:5px;color:var(--accent);font-size:10px;font-weight:850;letter-spacing:.1em;text-transform:uppercase}.routing-auditor-hero h3{margin:0;font-size:25px;letter-spacing:-.025em}.routing-auditor-hero p{max-width:760px;margin:6px 0 0;color:var(--muted);font-size:12px;line-height:1.55}.routing-auditor-mode{display:inline-flex;padding:7px 10px;border-radius:999px;font-size:10px;font-weight:850;white-space:nowrap}.routing-auditor-mode.safe{background:var(--success-soft);color:var(--success)}.routing-auditor-mode.enabled{background:var(--warning-soft);color:var(--warning)}.routing-auditor-error{margin:0;padding:12px 14px;border:1px solid #f2c7c7;border-radius:12px;background:#fff3f3;color:#b63a3a;font-size:12px;font-weight:700}.routing-auditor-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.routing-auditor-summary article{display:grid;gap:5px;padding:15px 16px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:var(--shadow-small)}.routing-auditor-summary span,.routing-auditor-summary small{color:var(--muted);font-size:9px}.routing-auditor-summary span{font-weight:850;letter-spacing:.04em;text-transform:uppercase}.routing-auditor-summary strong{overflow:hidden;font-size:18px;text-overflow:ellipsis;white-space:nowrap}.routing-auditor-status.healthy{color:var(--success)}.routing-auditor-status.attention{color:var(--danger)}.routing-auditor-card{overflow:hidden;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:var(--shadow)}.routing-auditor-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:18px 20px;border-bottom:1px solid var(--line)}.routing-auditor-card h4{margin:0;font-size:17px}.routing-auditor-card header p{margin:4px 0 0;color:var(--muted);font-size:10px}.routing-auditor-card header>div:last-child{display:flex;align-items:center;gap:9px}.routing-auditor-card header span{color:var(--muted);font-size:10px;font-weight:750}.routing-auditor-card button{padding:8px 11px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);font:inherit;font-size:10px;font-weight:800;cursor:pointer}.routing-auditor-card button:disabled{cursor:wait;opacity:.55}.routing-auditor-table-wrap{overflow:auto}.routing-auditor-table{width:100%;min-width:1120px;border-collapse:collapse}.routing-auditor-table th,.routing-auditor-table td{padding:12px 14px;border-bottom:1px solid var(--line);vertical-align:top;text-align:left}.routing-auditor-table th{background:#f8fafc;color:var(--muted);font-size:8px;font-weight:850;letter-spacing:.04em;text-transform:uppercase}.routing-auditor-table td{font-size:10px}.routing-auditor-table td>strong,.routing-auditor-table td>small,.routing-auditor-person strong,.routing-auditor-person small{display:block}.routing-auditor-table td>small,.routing-auditor-person small{margin-top:3px;color:var(--muted);font-size:8px}.routing-auditor-table a{color:#2866c7;font-weight:800;text-decoration:none}.routing-auditor-table a:hover{text-decoration:underline}.routing-auditor-person{display:grid;min-width:150px}.routing-auditor-availability{display:inline-flex;padding:5px 8px;border-radius:999px;font-size:9px;font-weight:800}.routing-auditor-availability.available{background:var(--success-soft);color:var(--success)}.routing-auditor-availability.unavailable{background:var(--danger-soft);color:var(--danger)}.routing-auditor-availability.unknown{background:var(--soft);color:var(--muted)}.routing-auditor-muted{color:var(--muted)}.routing-auditor-empty{margin:0;padding:42px 20px;color:var(--muted);font-size:11px;text-align:center}.routing-auditor-safety{display:flex;align-items:center;gap:7px;margin:0;padding:12px 14px;border:1px solid #b9dfcd;border-radius:12px;background:var(--success-soft);color:var(--success);font-size:10px}.routing-auditor-safety span{color:#47705e}@media(max-width:900px){.routing-auditor-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.routing-auditor-hero,.routing-auditor-card>header{align-items:stretch;flex-direction:column}.routing-auditor-summary{grid-template-columns:1fr}.routing-auditor-safety{align-items:flex-start;flex-direction:column}}

/* User lifecycle controls */
.users-card-head .user-actions{align-items:center;flex-wrap:wrap}.users-card-head #user-status-filter{border:1px solid var(--border);border-radius:8px;padding:9px 12px;background:var(--surface,#fff);color:inherit}#user-deactivate{color:#a63232}

/* Keep account lifecycle separate from the paired form actions. */
#edit-user-modal .modal-footer{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
#edit-user-modal .user-save-feedback{min-width:0;width:100%}
#edit-user-modal .user-save-feedback:not(:has(> :not([hidden]))){display:none}
#edit-user-modal .modal-actions{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;width:100%;margin:0;gap:8px}
#edit-user-modal .modal-actions .button{min-height:42px;white-space:nowrap}
#edit-user-modal #user-deactivate{grid-column:1;justify-self:start}
#edit-user-modal #cancel-user-edit{grid-column:2}
#edit-user-modal #edit-user-submit{grid-column:3}
@media(max-width:480px){
 #edit-user-modal .modal-actions{grid-template-columns:1fr 1fr}
 #edit-user-modal #user-deactivate{grid-column:1/-1;justify-self:stretch;margin-bottom:4px}
 #edit-user-modal #cancel-user-edit{grid-column:1}
 #edit-user-modal #edit-user-submit{grid-column:2}
}
/* Capacity Insights: scoped historical workload dashboard. */
.ci{color:#17304e;display:grid;gap:18px}.ci-head{display:flex;align-items:center;gap:16px}.ci-head>div{flex:1}.ci h2{font-size:28px;margin:5px 0}.ci h3{font-size:17px;margin:0 0 10px}.ci p{color:#60738b;line-height:1.6;margin:8px 0;font-size:13px}.ci-eyebrow{font-size:10px;letter-spacing:1.5px;color:#db6929;font-weight:700}.ci select{display:block;padding:10px;border:1px solid #dce4ee;border-radius:8px;background:white;color:inherit}.ci-head label{font-size:11px;color:#60738b}.ci-card{background:#fff;border:1px solid #dfe7ef;border-radius:14px;padding:22px;box-shadow:0 4px 18px #17304e05}.ci-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.ci-cards span{font-size:12px;color:#60738b}.ci-cards strong,.ci-big{display:block;font-size:32px;margin-top:12px}.ci small{font-size:13px;font-weight:400;color:#60738b}.ci-columns{display:grid;grid-template-columns:1fr 1fr;gap:16px}.ci-quality{padding:12px 16px;background:#eef4f9;border-radius:9px}.ci-scroll{overflow:auto}.ci-heat{display:grid;grid-template-columns:42px repeat(24,minmax(34px,1fr));gap:4px;min-width:960px;margin:20px 0;font-size:10px;align-items:center;text-align:center}.ci-cell{height:31px;border:0;border-radius:4px;font:inherit;color:#294355;cursor:pointer}.ci-cell:focus-visible{outline:2px solid #2765c7}.ci table{border-collapse:collapse;width:100%;font-size:12px;white-space:nowrap}.ci th,.ci td{text-align:right;border-bottom:1px solid #edf1f6;padding:12px}.ci th:first-child,.ci td:first-child{text-align:left}.ci th{font-size:11px;color:#60738b}.ci li{padding:8px 0;font-size:13px}.ci-empty{padding:50px;text-align:center}.ci summary{cursor:pointer;font-weight:600}@media(max-width:800px){.ci-cards,.ci-columns{grid-template-columns:1fr}.ci-head{flex-wrap:wrap}.ci-head>div{flex-basis:100%}}
.ci #ci-content{display:grid;gap:18px;min-width:0}.ci .ci-card{min-width:0}

.day-plan-message.loading { display:flex; align-items:center; gap:10px; padding:14px 20px; background:var(--warning-soft); color:var(--ink); font-size:13px; }
.day-plan-message.loading::before { content:''; width:16px; height:16px; border:2px solid currentColor; border-right-color:transparent; border-radius:50%; animation:day-load-spin .8s linear infinite; flex:none; }
.timeline-scroll[aria-busy="true"] { opacity:.4; pointer-events:none; }
@keyframes day-load-spin { to { transform:rotate(360deg); } }
@media(prefers-reduced-motion:reduce) { .day-plan-message.loading::before { animation:none; } }

/* Performance's shared shell; the scorecard retains its existing content layout. */
.performance-module{padding-top:24px}
.performance-module .performance-page{padding:12px 0 0}
.performance-tabs{max-width:100%;overflow-x:auto}
.performance-tabs .planning-tab{flex:0 0 auto}
.performance-foundation{padding-top:12px}
.performance-foundation-empty{padding:32px;border:1px solid var(--line);border-radius:16px;background:var(--surface,#fff)}
.performance-foundation-empty h2{margin:0 0 8px;font-size:18px}
.performance-foundation-empty p{margin:0;color:var(--muted)}
