  * { margin: 0; padding: 0; box-sizing: border-box; }
  html.staging-env body::before {
    content: 'STAGING';
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    background: #b45309;
    color: #fff;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
  }
  :root {
    --bg: #F4F7FB; --card: #ffffff; --hover: #EDF1F7; --border: #E2E8F0;
    --text: #0E1720; --text2: #24313D; --muted: #4C5A66;
    --blue: #3b82f6; --green: #22c55e; --yellow: #eab308; --red: #ef4444;
    --brand-500: #1B4F8A; --brand-600: #164273; --brand-700: #0f2f54;
    --brand-400: #3a6fab; --brand-100: #e6eef7; --brand-50: #f4f7fb;
    --gold: #C9A845; --gold-light: #F5E8C0;
    --purple: #a855f7; --orange: #f97316; --cyan: #06b6d4; --pink: #ec4899;
    --font-app: 'General Sans', system-ui, -apple-system, sans-serif;
    --font-number: 'General Sans', system-ui, -apple-system, sans-serif;
    --type-label: 12px;
    --type-meta: 13px;
    --type-table: 14px;
    --type-small: 15px;
    --type-body: 16px;
    --type-control: 16px;
    --type-title: 22px;
    --type-section: 24px;
    --type-kpi: 28px;
  }
  /* MOBILE PATTERN LIBRARY */
  /* .r-table: desktop table that pairs with .r-table-cards on phones */
  .r-table { width: 100%; max-width: 100%; }
  /* .r-table-cards: mobile card list paired with a hidden desktop table */
  .r-table-cards { display: none; gap: 10px; }
  /* .r-table-card: compact phone row for table records */
  .r-table-card { border: 1px solid var(--border); border-radius: 12px; background: var(--card); padding: 14px; display: grid; gap: 10px; }
  .r-table-card-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
  .r-table-card-title { color: var(--text); font-size: 18px; font-weight: 700; line-height: 1.25; }
  .r-table-card-sub { color: var(--muted); font-size: 13px; margin-top: 3px; }
  .r-table-card-pills { display: flex; gap: 6px; flex-wrap: wrap; }
  .r-table-card-pill { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px; background: var(--hover); color: var(--text2); border: 1px solid var(--border); font-size: 12px; font-weight: 700; }
  .r-table-card-actions { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 2px; }
  /* .r-form: viewport-safe form card and fields */
  .r-form { max-width: 100%; overflow: hidden; }
  .r-form input, .r-form select, .r-form textarea { max-width: 100%; }
  /* .r-grid-1-2-3: 1 column phone, 2 tablet, 3 desktop */
  .r-grid-1-2-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  /* .r-grid-1-2-4: 1 column phone, 2 tablet, 4 desktop */
  .r-grid-1-2-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  /* .r-tabs: horizontal tab strip with phone snap */
  .r-tabs { display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: rgba(27,79,138,0.35) transparent; padding-bottom: 4px; }
  .r-tabs::-webkit-scrollbar { height: 4px; }
  .r-tabs::-webkit-scrollbar-thumb { background: rgba(27,79,138,0.35); border-radius: 999px; }
  .r-tabs > * { flex-shrink: 0; white-space: nowrap; }
  /* .r-topbar: phone-safe title and action header */
  .r-topbar { min-width: 0; }
  .r-topbar > * { min-width: 0; }
  /* .r-pill-row: horizontal scroll-snap pill row */
  .r-pill-row { display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: rgba(27,79,138,0.35) transparent; scroll-snap-type: x proximity; padding-bottom: 4px; }
  .r-pill-row::-webkit-scrollbar { height: 4px; }
  .r-pill-row::-webkit-scrollbar-thumb { background: rgba(27,79,138,0.35); border-radius: 999px; }
  .r-pill-row > * { flex-shrink: 0; white-space: nowrap; scroll-snap-align: start; }
  @media (max-width: 768px) {
    .r-grid-1-2-3, .r-grid-1-2-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .r-tabs { scroll-snap-type: x proximity; }
    .r-tabs > * { scroll-snap-align: start; }
  }
  @media (max-width: 480px) {
    .r-table-wrap .r-table { display: none; }
    .r-table-cards { display: grid; }
    .r-grid-1-2-3, .r-grid-1-2-4 { grid-template-columns: 1fr; }
    .r-tabs { background: var(--card); border-bottom: 1px solid var(--border); }
    .r-topbar { gap: 8px; }
    .r-topbar h1, .r-topbar h2, .r-topbar h3 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .r-topbar-actions { flex-shrink: 0; }
    .r-pill-row { padding-bottom: 4px; }
  }
  body { font-family: var(--font-app); background: var(--bg); color: var(--text2); padding: 0; margin: 0; font-size: 16px; }

  .nav-tab { flex-shrink: 0; padding: 8px 16px; border-radius: 8px; background: transparent; color: var(--muted); border: 1px solid transparent; cursor: pointer; font-size: 15px; font-weight: 600; white-space: nowrap; font-family: inherit; }
  .nav-tab.active { background: var(--brand-500); color: #fff; border-color: var(--brand-500); box-shadow: inset 0 -3px 0 var(--gold); }
  .nav-tab:not(.active):hover { background: var(--hover); color: var(--text); }
  .bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; height: 60px; background: var(--card); border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-around; z-index: 1000; padding-bottom: env(safe-area-inset-bottom); }
  .bottom-nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px 12px; border-radius: 8px; background: transparent; border: none; color: var(--muted); font-size: 11px; font-weight: 600; cursor: pointer; min-width: 64px; min-height: 48px; }
  .bottom-nav-item.active { background: var(--brand-500); color: #fff; border-top: 2px solid var(--gold); }
  .bottom-nav-item .nav-icon { font-size: 20px; line-height: 1; }
  .subview-pills { display: flex; gap: 8px; padding: 12px 0 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: rgba(27,79,138,0.35) transparent; }
  .subview-pills::-webkit-scrollbar { height: 4px; }
  .subview-pills::-webkit-scrollbar-thumb { background: rgba(27,79,138,0.35); border-radius: 999px; }
  .subview-pill { flex-shrink: 0; padding: 6px 14px; border-radius: 20px; border: 1px solid var(--border); background: var(--hover); color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
  .subview-pill.active { background: var(--brand-500); color: #fff; border-color: var(--brand-500); }

  /* VIEWS */
  .view { display: none; padding: 20px; }
  .view.active { display: block; }

  /* CARDS */
  .card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 20px; box-shadow: 0 3px 12px rgba(14,23,32,0.05); }

  /* KPIs */
  .kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 32px; }
  .kpi-card { background: var(--card); border-radius: 18px; padding: 20px; text-align: center; border: 1px solid var(--border); box-shadow: 0 3px 12px rgba(14,23,32,0.05); }
  .kpi-card.green { border-left: 4px solid var(--green); }
  .kpi-card.red { border-left: 4px solid var(--red); }
  .kpi-card.blue { border-left: 4px solid var(--gold); }
  .kpi-card.yellow { border-left: 4px solid var(--yellow); }
  .kpi-card.purple { border-left: 4px solid var(--purple); }
  .kpi-card.orange { border-left: 4px solid var(--orange); }
  .kpi-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; font-weight: 700; }
  .kpi-value { font-size: var(--type-kpi); font-weight: 800; color: var(--text); font-family: var(--font-number); line-height: 1.1; }
  .kpi-val { font-size: var(--type-kpi); font-weight: 800; color: var(--text); font-family: var(--font-number); line-height: 1.1; }
  .kpi-sub { font-size: 14px; color: var(--muted); margin-top: 4px; }
  .kpi-trend { font-size: 14px; margin-top: 6px; font-weight: 600; }
  .kpi-trend.up { color: var(--green); }
  .kpi-trend.down { color: var(--red); }
  .kpi-trend.neutral { color: #64748b; }

  /* OVERVIEW */
  .overview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 24px; }
  .overview-data-coverage { margin: 0 0 14px; padding: 12px 14px; border: 1px solid #fed7aa; background: #fff7ed; color: #9a3412; border-radius: 10px; font-size: 13px; line-height: 1.45; }
  .overview-data-coverage strong { color: #7c2d12; }
  .overview-data-coverage .coverage-pill { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 999px; background: #ffedd5; color: #9a3412; font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; margin-right: 8px; }
  .month-card { background: var(--card); border-radius: 12px; padding: 18px; border: 1px solid var(--border); cursor: pointer; transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s; position: relative; overflow: hidden; box-shadow: 0 3px 12px rgba(14,23,32,0.05); }
  .month-card.provisional { border-color: #fed7aa; background: linear-gradient(180deg, #fffaf4 0%, #fff 58%); }
  .month-card.provisional::before { content: 'PROVISIONAL'; position: absolute; top: 14px; right: 14px; padding: 4px 8px; border-radius: 999px; background: #ffedd5; color: #9a3412; font-size: 10px; font-weight: 800; letter-spacing: 0.06em; }
  .month-card:hover { border-color: var(--brand-500); transform: translateY(-4px); box-shadow: 0 10px 30px rgba(27,79,138,0.15); }
  .month-card h3 { font-size: 20px; color: var(--text); margin-bottom: 16px; font-family: 'Gambarino', Georgia, serif; font-weight: 400; }
  .month-card .mc-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--card); font-size: 14px; }
  .month-card .mc-row:last-child { border-bottom: none; }
  .month-card .mc-label { color: var(--muted); }
  .month-card .mc-val { color: var(--text); font-weight: 600; }
  .month-card .mc-val.green { color: var(--green); }
  .month-card .mc-val.red { color: var(--red); }
  .month-card .mc-val.blue { color: var(--brand-500); }
  .month-card .mc-val.yellow { color: var(--yellow); }
  .month-card .mc-bar { height: 6px; border-radius: 3px; background: var(--border); margin-top: 16px; overflow: hidden; }
  .month-card .mc-bar-fill { height: 100%; border-radius: 3px; }
  .month-card .mc-click { display: inline-flex; align-items: center; margin-top: 12px; color: var(--brand-500); font-size: 13px; font-weight: 700; }
  .overview-block { margin-bottom: 24px; }
  .overview-block-title { font-size: 28px; color: var(--text); margin-bottom: 14px; }
  .overview-block-sub { color: var(--muted); font-size: 18px; margin-bottom: 14px; }
  .overview-alert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-bottom: 24px; }
  .overview-alert-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
  .overview-alert-card.red { border-left: 4px solid var(--red); background: rgba(239,68,68,0.06); }
  .overview-alert-card.amber { border-left: 4px solid #f59e0b; background: rgba(245,158,11,0.08); }
  .overview-alert-card.yellow { border-left: 4px solid var(--yellow); background: rgba(234,179,8,0.10); }
  .overview-alert-card.green { border-left: 4px solid var(--green); background: rgba(34,197,94,0.08); }
  .overview-alert-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
  .overview-alert-type { font-size: var(--type-meta); font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); }
  .overview-alert-severity { font-size: 18px; font-weight: 800; color: var(--text); text-align: right; }
  .overview-alert-title { color: var(--text); font-size: 18px; font-weight: 700; margin-bottom: 6px; }
  .overview-alert-desc { color: var(--muted); font-size: var(--type-body); line-height: 1.45; }
  .overview-alert-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
  .overview-meta-pill { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; background: rgba(15,23,42,0.06); color: var(--text2); font-size: var(--type-meta); font-weight: 700; }
  .overview-meta-pill.ok { background: rgba(34,197,94,0.12); color: #15803d; }
  .overview-meta-pill.red { background: rgba(239,68,68,0.12); color: #b91c1c; }
  .overview-ratio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-bottom: 24px; }
  .overview-ratio-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
  .overview-ratio-card.red { border-left: 4px solid var(--red); }
  .overview-ratio-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
  .overview-ratio-head h3 { margin: 0; color: var(--text); font-size: var(--type-title); }
  .overview-ratio-tag { font-size: var(--type-meta); font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
  .overview-ratio-months { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .overview-ratio-month { background: var(--hover); border: 1px solid var(--border); border-radius: 10px; padding: 10px; }
  .overview-ratio-month .m { font-size: var(--type-meta); color: var(--muted); margin-bottom: 4px; }
  .overview-ratio-month .v { font-size: 18px; font-weight: 800; color: var(--text); }
  .overview-ratio-drops { margin-top: 12px; display: grid; gap: 8px; }
  .overview-ratio-drop { border-radius: 10px; padding: 10px 12px; font-size: var(--type-body); font-weight: 600; }
  .overview-ratio-drop.red { background: rgba(239,68,68,0.10); color: #b91c1c; }
  .overview-ratio-drop.neutral { background: rgba(34,197,94,0.08); color: #15803d; }
  .overview-comp-card { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.22); border-left: 4px solid var(--red); border-radius: 14px; padding: 20px; margin-bottom: 24px; }
  .overview-comp-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 14px; }
  .overview-comp-top h3 { margin: 0; color: var(--text); font-size: var(--type-section); }
  .overview-comp-big { color: var(--red); font-size: 30px; font-weight: 800; line-height: 1; text-align: right; }
  .overview-comp-sub { color: var(--muted); font-size: var(--type-small); margin-top: 6px; text-align: right; }
  .overview-comp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-bottom: 14px; }
  .overview-comp-stat { background: rgba(255,255,255,0.55); border: 1px solid rgba(239,68,68,0.15); border-radius: 12px; padding: 12px; }
  .overview-comp-stat .k { color: var(--muted); font-size: var(--type-meta); margin-bottom: 4px; }
  .overview-comp-stat .v { color: var(--text); font-size: 18px; font-weight: 800; }
  .overview-room-list { display: flex; gap: 8px; flex-wrap: wrap; }
  .overview-room-chip { background: rgba(239,68,68,0.10); color: #b91c1c; border: 1px solid rgba(239,68,68,0.2); padding: 6px 12px; border-radius: 999px; font-size: var(--type-small); font-weight: 700; }
  .overview-empty { background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.18); border-radius: 12px; padding: 16px; color: #15803d; font-size: var(--type-body); font-weight: 600; }

  .back-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 8px; background: var(--card); color: var(--muted); border: 1px solid var(--border); cursor: pointer; font-size: var(--type-control); font-weight: 700; margin-bottom: 20px; }
  .back-btn:hover { background: var(--hover); color: var(--text); }

  /* CHARTS */
  .chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); gap: 24px; margin-bottom: 32px; }
  .chart-card { background: var(--card); border-radius: 18px; padding: 24px; border: 1px solid var(--border); box-shadow: 0 3px 12px rgba(14,23,32,0.05); min-width: 0; overflow: hidden; }
  .chart-card h3 { font-size: 16px; color: var(--text2); margin-bottom: 16px; font-family: 'Gambarino', Georgia, serif; font-weight: 400; }
  .chart-card canvas { width: 100% !important; height: 320px !important; max-height: 320px; display: block; }
  .chart-card.full-width canvas { height: 300px !important; max-height: 300px; }
  .full-width { grid-column: 1 / -1; }

  /* MISSING DATA */
  .missing-summary { background: var(--card); border: 1px solid #7f1d1d; border-left: 4px solid var(--red); border-radius: 10px; padding: 16px 20px; margin-bottom: 24px; }
  .missing-summary h3 { color: #fca5a5; font-size: var(--type-title); margin-bottom: 8px; }
  .missing-summary .missing-list { font-size: var(--type-body); color: #f87171; line-height: 1.6; }
  .missing-tag { display: inline-block; background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; padding: 2px 10px; border-radius: 20px; margin: 2px 4px; font-size: var(--type-meta); }

  /* FLAGS */
  .flags-section { margin-bottom: 32px; }
  .flags-section h2 { font-size: 22px; color: var(--text); margin-bottom: 16px; font-family: 'Gambarino', Georgia, serif; font-weight: 400; }
  .flag { background: var(--card); border-radius: 10px; padding: 16px 20px; margin-bottom: 12px; border: 1px solid var(--border); display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
  .flag:active { border-color: var(--brand-500); }
  .flag.critical { border-left: 4px solid var(--red); }
  .flag.warning { border-left: 4px solid #f59e0b; }
  .flag-icon { font-size: 28px; flex-shrink: 0; }
  .flag-title { font-weight: 600; color: var(--text); margin-bottom: 4px; }
  .flag-desc { font-size: var(--type-body); color: var(--muted); line-height: 1.5; }

  /* TABLES */
  .detail-section { margin-bottom: 32px; }
  .detail-section h2 { font-size: var(--type-section); color: var(--text); margin-bottom: 16px; }
  .detail-table-wrap { overflow-x: auto; }
  .collapse-section { margin-bottom: 24px; }
  .collapse-toggle { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--card); color: var(--text); cursor: pointer; text-align: left; font-size: var(--type-body); font-weight: 800; }
  .collapse-toggle:hover { background: var(--hover); }
  .collapse-toggle .collapse-title { flex: 1; min-width: 0; }
  .collapse-toggle .collapse-meta { color: var(--muted); font-size: var(--type-meta); font-weight: 700; }
  .collapse-toggle .collapse-indicator { color: var(--muted); font-size: 16px; flex-shrink: 0; }
  .mobile-disclosure { border: 1px solid var(--ink-200); border-radius: 18px; background: var(--paper); overflow: hidden; margin: 12px 0; box-shadow: var(--soft-shadow); }
  .mobile-disclosure summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; cursor: pointer; color: var(--ink-900); font-size: 15px; font-weight: 800; }
  .mobile-disclosure summary::-webkit-details-marker { display: none; }
  .mobile-disclosure-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-disclosure-meta { color: var(--ink-500); font-size: 12px; font-weight: 700; white-space: nowrap; }
  .mobile-disclosure summary:after { content: '▸'; color: var(--ink-500); font-size: 16px; }
  .mobile-disclosure[open] summary:after { content: '▾'; }
  .mobile-disclosure-body { border-top: 1px solid var(--ink-200); padding: 12px; }
  .mobile-disclosure-body > .mobile-section-card:first-child { margin-top: 0; }
  .mobile-disclosure-body > .mobile-section-card:last-child { margin-bottom: 0; }
  .collapse-content { padding-top: 14px; }
  table { width: 100%; border-collapse: collapse; font-size: var(--type-table); }
  th { background: var(--hover); color: var(--text2); padding: 10px 8px; text-align: right; position: sticky; top: 0; white-space: nowrap; }
  th:first-child { text-align: left; }
  td { padding: 8px; text-align: right; border-bottom: 1px solid var(--card); white-space: nowrap; }
  td:first-child { text-align: left; font-weight: 600; }
  td.missing { background: rgba(239, 68, 68, 0.15); color: #f87171; font-style: italic; text-align: center; }
  tr.hot td { background: rgba(34, 197, 94, 0.08); }
  tr.warm td { background: rgba(234, 179, 8, 0.05); }
  tr.cold td { background: rgba(239, 68, 68, 0.06); }
  tr.total-row td { background: var(--hover); font-weight: 700; color: var(--text); border-top: 2px solid #94a3b8; }
  .legend-bar { display: flex; gap: 16px; margin-bottom: 12px; font-size: var(--type-small); color: var(--muted); flex-wrap: wrap; }
  .legend-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 4px; vertical-align: middle; }

  /* ROOM STATUS */
  .room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; }
  .room-chip { padding: 10px 6px; border-radius: 8px; text-align: center; font-size: var(--type-small); font-weight: 600; border: 1px solid var(--border); background: var(--card); }
  .room-chip.ok { border-color: rgba(34,197,94,0.4); color: var(--green); }
  .room-chip.issues { border-color: rgba(234,179,8,0.4); color: var(--yellow); }
  .room-chip.bad { border-color: rgba(239,68,68,0.4); color: var(--red); }
  .room-chip .room-id { font-size: 17px; font-weight: 800; }
  .room-chip .room-type { font-size: var(--type-meta); color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .room-chip .room-issues { font-size: var(--type-meta); margin-top: 4px; opacity: 0.8; }
  .issue-row { background: var(--card); border-radius: 10px; padding: 12px 16px; margin-bottom: 8px; border: 1px solid var(--border); display: flex; align-items: center; gap: 10px; font-size: var(--type-body); }
  .issue-row .issue-room { font-weight: 700; color: var(--red); min-width: 40px; }
  .issue-row .issue-list { color: var(--muted); }

  /* DAILY SALES */
  .sales-filters { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
  .sales-filters input[type="date"] { padding: 8px 12px; background: var(--card); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: var(--type-control); color-scheme: light; }
  .filter-chip { padding: 7px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--card); color: var(--muted); font-size: var(--type-control); font-weight: 700; cursor: pointer; white-space: nowrap; }
  .filter-chip.active { border-color: var(--brand-500); color: var(--brand-500); background: var(--brand-100); }
  .summary-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-bottom: 20px; }
  .summary-card { background: var(--card); border-radius: 12px; padding: 14px; border: 1px solid var(--border); }
  .summary-label { font-size: var(--type-label); color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; font-weight: 800; }
  .summary-val { font-size: 24px; font-weight: 800; color: var(--text); font-family: var(--font-number); line-height: 1.12; }
  .summary-val.green { color: var(--green); }
  .summary-val.red { color: var(--red); }
  .summary-val.blue { color: var(--brand-500); }
  .summary-sub { font-size: var(--type-meta); color: var(--muted); margin-top: 2px; }
  .poolbar-note { color: var(--muted); font-size: var(--type-body); margin-bottom: 18px; }
  .poolbar-table th, .poolbar-table td { font-size: var(--type-table); }
  .poolbar-table tr:hover td { background: transparent; }
  .poolbar-table tr.total-row:hover td { background: var(--hover); }
  .expense-review-card { background: var(--card); border-radius: 14px; padding: 16px; border: 1px solid var(--border); margin-bottom: 18px; }
  .expense-review-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 12px; }
  .expense-review-head h3 { margin: 0; color: var(--text); font-size: var(--type-title); }
  .expense-review-head p { margin: 6px 0 0; color: var(--muted); font-size: var(--type-small); }
  .expense-review-total { min-width: 180px; text-align: right; }
  .expense-review-total .label { color: var(--muted); font-size: var(--type-meta); }
  .expense-review-total .val { color: var(--text); font-size: 26px; font-weight: 800; margin-top: 4px; }
  .expense-review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 14px 0 18px; }
  .expense-review-stat { background: var(--hover); border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
  .expense-review-stat .k { color: var(--muted); font-size: var(--type-meta); margin-bottom: 4px; }
  .expense-review-stat .v { color: var(--text); font-size: 18px; font-weight: 800; }
  .expense-review-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
  .expense-review-table th, .expense-review-table td { padding: 10px 8px; border-top: 1px solid var(--border); text-align: left; font-size: var(--type-table); }
  .expense-review-table th:last-child, .expense-review-table td:last-child { text-align: right; }
  .expense-review-note { margin-top: 12px; color: var(--muted); font-size: var(--type-small); }
  .expense-link { color: var(--brand-500); text-decoration: none; font-weight: 600; }
  .expense-link:hover { text-decoration: underline; }
  .expense-flag-row { background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--red); border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; }
  .expense-flag-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
  .expense-flag-title { color: var(--text); font-size: var(--type-body); font-weight: 800; }
  .expense-flag-meta { color: var(--muted); font-size: var(--type-small); margin-top: 4px; }
  .expense-flag-amount { color: var(--red); font-size: 18px; font-weight: 800; white-space: nowrap; }
  .expense-line-table th, .expense-line-table td { font-size: var(--type-table); }
  .expense-line-table th:nth-child(1), .expense-line-table td:nth-child(1) { width: 72px; }
  .expense-line-table th:nth-child(2), .expense-line-table td:nth-child(2) { width: 140px; }
  .expense-line-table th:nth-child(4), .expense-line-table td:nth-child(4) { width: 190px; }
  .expense-line-table th:nth-child(5), .expense-line-table td:nth-child(5) { width: 150px; }
  .expense-line-table td { white-space: normal; vertical-align: top; }
  .expense-line-table tr.expense-line-flag td { background: rgba(239,68,68,0.06); }
  .expense-line-table tr:hover td { background: transparent; }
  .expense-line-table tr.expense-line-flag:hover td { background: rgba(239,68,68,0.06); }
  .proc-request-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-top: 14px; }
  .proc-request-group { border: 1px solid var(--border); border-radius: 8px; padding: 10px; background: var(--card); }
  .proc-request-group h5 { margin: 0 0 8px; color: var(--text); font-size: var(--type-small); }
  .proc-request-item { display: grid; grid-template-columns: 22px minmax(0, 1fr) 96px; gap: 8px; align-items: center; min-height: 38px; color: var(--text); font-size: var(--type-small); }
  .proc-request-name { min-width: 0; }
  .proc-request-name small { display: block; color: var(--muted); font-size: var(--type-meta); line-height: 1.2; }
  .proc-request-item input[type="number"] { width: 96px; min-width: 0; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); color: var(--text); padding: 7px 8px; font-size: var(--type-small); }
  .proc-request-selected { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
  .proc-request-selected span { border: 1px solid var(--border); border-radius: 6px; padding: 5px 7px; color: var(--text); background: var(--hover); font-size: var(--type-meta); }

  /* TASKS */
  .task-filter-row { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
  .task-filter-select { padding: 8px 12px; background: var(--card); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 18px; min-width: 150px; }
  .task-filter-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .task-btn { border: 1px solid var(--border); border-radius: 10px; padding: 9px 14px; background: var(--card); color: var(--text); font-size: 16px; font-weight: 700; }
  .task-btn.primary { background: var(--brand-500); border-color: var(--brand-500); color: #fff; }
  .task-btn.danger { background: rgba(239,68,68,0.12); border-color: rgba(239,68,68,0.2); color: var(--red); }
  .task-readonly-note { color: var(--muted); font-size: 15px; }
  .task-board { display: grid; grid-template-columns: repeat(3, minmax(260px, 1fr)); gap: 12px; overflow-x: auto; align-items: start; padding-bottom: 4px; }
  .task-column { min-width: 260px; background: rgba(255,255,255,0.45); border: 1px solid var(--border); border-radius: 14px; padding: 10px; }
  .task-column-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 10px; margin-bottom: 10px; font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }
  .task-column-head-right { display: flex; align-items: center; gap: 8px; }
  .task-column-add { width: 26px; height: 26px; border-radius: 50%; border: 1px solid currentColor; background: rgba(255,255,255,0.6); color: inherit; font-size: 18px; font-weight: 700; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; transition: background 120ms ease; }
  .task-column-add:hover { background: rgba(255,255,255,0.95); }
  .task-column-head.grey { background: rgba(148,163,184,0.16); color: var(--muted); }
  .task-column-head.blue { background: var(--brand-100); color: var(--brand-500); }
  .task-column-head.green { background: rgba(34,197,94,0.12); color: var(--green); }
  .task-column-list { display: grid; gap: 10px; min-height: 60px; }
  .task-column-list.drop-target { background: rgba(27,79,138,0.08); border-radius: 12px; }
  .task-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
  .task-card.editable { cursor: pointer; }
  .task-card.editable:hover { border-color: rgba(27,79,138,0.35); }
  .task-card.draggable { cursor: grab; }
  .task-card.dragging { opacity: 0.55; }
  .task-card-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
  .task-card-head h3 { margin: 0; color: var(--text); font-size: 18px; line-height: 1.35; font-weight: 700; }
  .task-card-head p { margin: 5px 0 0; color: var(--muted); font-size: 14px; }
  .task-pill-row { display: flex; gap: 8px; flex-wrap: wrap; }
  .task-pill { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--border); background: var(--hover); color: var(--text); font-size: 13px; font-weight: 700; white-space: nowrap; }
  .task-pill.status-not-started { color: var(--muted); background: rgba(148,163,184,0.12); }
  .task-pill.status-in-progress { color: var(--brand-500); background: var(--brand-100); }
  .task-pill.status-done { color: var(--green); background: rgba(34,197,94,0.12); }
  .task-pill.priority-high { color: var(--red); background: rgba(239,68,68,0.12); }
  .task-pill.priority-medium { color: #b45309; background: rgba(234,179,8,0.18); }
  .task-pill.priority-low { color: var(--green); background: rgba(34,197,94,0.12); }
  .task-card-meta { display: flex; gap: 8px; flex-wrap: wrap; }
  .task-meta-box { background: var(--hover); border: 1px solid var(--border); border-radius: 10px; padding: 9px 10px; min-width: 0; flex: 1 1 120px; }
  .task-meta-box .k { color: var(--muted); font-size: 12px; margin-bottom: 2px; text-transform: uppercase; letter-spacing: 0.4px; }
  .task-meta-box .v { color: var(--text); font-size: 15px; font-weight: 700; }
  .task-meta-box .v.pills { display: flex; gap: 6px; flex-wrap: wrap; }
  .task-card-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
  .task-retire-btn { border: 1px solid var(--border); border-radius: 999px; background: var(--card); color: var(--muted); padding: 5px 10px; font-size: 12px; font-weight: 800; cursor: pointer; }
  .task-retire-btn:hover { border-color: rgba(239,68,68,0.35); color: var(--red); }
  .task-column-empty { border: 1px dashed var(--border); border-radius: 10px; padding: 14px 12px; color: var(--muted); font-size: 15px; text-align: center; background: rgba(255,255,255,0.35); }
  .task-modal-grid { display: grid; gap: 12px; }
  .task-modal-grid.two { grid-template-columns: 1fr 1fr; }
  .task-modal-grid label { display: block; color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 6px; }
  .task-modal-grid input, .task-modal-grid select, .task-modal-grid textarea { width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: 16px; font-family: inherit; }
  .task-modal-grid textarea { min-height: 110px; resize: vertical; }
  .task-assignee-list { display: grid; gap: 8px; }
  .task-assignee-option { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--hover); font-size: 16px; color: var(--text); }
  .task-assignee-option input { width: 18px; height: 18px; margin: 0; }
  .task-modal-actions { display: flex; gap: 10px; margin-top: 16px; }
  .task-modal-actions .task-btn { flex: 1; }

  /* ASSETS */
  .asset-filter-row { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
  .asset-filter-select { padding: 8px 12px; background: var(--card); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 18px; min-width: 180px; }
  .asset-table th, .asset-table td { font-size: 19px; }
  .asset-table th:nth-child(3), .asset-table td:nth-child(3) { text-align: right; }
  .asset-table tr.asset-row-warning td { background: rgba(234,179,8,0.12); }
  .asset-table tr.asset-row-overdue td { background: rgba(239,68,68,0.12); }
  .asset-status-pill { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; font-size: 14px; font-weight: 700; border: 1px solid var(--border); }
  .asset-status-pill.open { color: var(--muted); background: rgba(148,163,184,0.14); }
  .asset-status-pill.active { color: var(--brand-500); background: var(--brand-100); }
  .asset-status-pill.done { color: var(--green); background: rgba(34,197,94,0.12); }
  .asset-status-pill.flagged { color: var(--red); background: rgba(239,68,68,0.12); }
  .redeploy-filter-row { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
  .redeploy-filter-select { padding: 8px 12px; background: var(--card); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 18px; min-width: 170px; }
  .redeploy-decision-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
  .redeploy-decision-lane { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px; min-width: 0; }
  .redeploy-decision-lane h4 { color: var(--text); margin: 0 0 3px; font-size: 18px; }
  .redeploy-decision-lane p { color: var(--muted); margin: 0 0 10px; font-size: 13px; }
  .redeploy-decision-list { display: grid; gap: 8px; }
  .redeploy-mini-card { border: 1px solid var(--border); border-radius: 10px; background: var(--bg); padding: 9px; }
  .redeploy-mini-card h5 { margin: 0 0 3px; color: var(--text); font-size: 16px; }
  .redeploy-mini-card p { margin: 0; color: var(--muted); font-size: 13px; }
  .redeploy-area-map { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
  .redeploy-area-map-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
  .redeploy-area-map-card h4 { color: var(--text); font-size: 17px; margin: 0 0 8px; }
  .redeploy-area-map-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
  .redeploy-area-map-stat { border: 1px solid var(--border); border-radius: 8px; background: var(--bg); padding: 7px 6px; }
  .redeploy-area-map-stat .k { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.3px; }
  .redeploy-area-map-stat .v { color: var(--text); font-size: 18px; font-weight: 800; margin-top: 2px; }
  .redeploy-area-map-card button { width: 100%; border: 1px solid var(--border); border-radius: 9px; background: var(--brand-100); color: var(--brand-500); padding: 8px 10px; font-size: 13px; font-weight: 800; }
  .redeploy-board { display: grid; gap: 16px; }
  .redeploy-area { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
  .redeploy-area-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
  .redeploy-area-head h4 { color: var(--text); font-size: 20px; margin: 0 0 2px; }
  .redeploy-area-head p { color: var(--muted); font-size: 14px; margin: 0; }
  .redeploy-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .redeploy-column { border: 1px solid var(--border); border-radius: 10px; background: var(--bg); padding: 10px; min-width: 0; }
  .redeploy-column-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 8px; font-size: 13px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; }
  .redeploy-card-list { display: grid; gap: 8px; }
  .redeploy-card { border: 1px solid var(--border); border-radius: 10px; padding: 10px; background: var(--card); min-width: 0; }
  .redeploy-card h5 { margin: 0 0 4px; color: var(--text); font-size: 17px; }
  .redeploy-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.35; }
  .redeploy-card-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
  .redeploy-empty { color: var(--muted); font-size: 14px; border: 1px dashed var(--border); border-radius: 10px; padding: 10px; text-align: center; }
  .redeploy-pill { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px; border: 1px solid var(--border); font-size: 13px; font-weight: 800; }
  .redeploy-pill.working { color: var(--green); background: rgba(34,197,94,0.12); }
  .redeploy-pill.repair { color: var(--yellow); background: rgba(234,179,8,0.12); }
  .redeploy-pill.replace { color: var(--red); background: rgba(239,68,68,0.12); }
  .redeploy-pill.focus { color: var(--brand-500); background: var(--brand-100); }
  @media (max-width: 767px) {
    .redeploy-decision-grid,
    .redeploy-area-map {
      grid-template-columns: 1fr;
    }
    .redeploy-columns { grid-template-columns: 1fr; }
  }

  /* WATCHLIST */
  .watch-filter-row { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
  .watch-filter-select { padding: 8px 12px; background: var(--card); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 18px; min-width: 150px; }
  .watch-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 16px; margin-bottom: 18px; }
  .watch-list { display: grid; gap: 10px; }
  .watch-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
  .watch-card.red { border-left: 4px solid var(--red); }
  .watch-card.yellow { border-left: 4px solid var(--yellow); }
  .watch-card.blue { border-left: 4px solid var(--brand-500); }
  .watch-card.green { border-left: 4px solid var(--green); }
  .watch-card-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
  .watch-card-title { color: var(--text); font-size: 18px; font-weight: 700; line-height: 1.35; }
  .watch-card-meta { color: var(--muted); font-size: 14px; margin-top: 4px; }
  .watch-card-amount { color: var(--text); font-size: 18px; font-weight: 800; white-space: nowrap; }
  .watch-chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
  .watch-chip { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--hover); color: var(--text); font-size: 13px; font-weight: 700; }
  .watch-chip.red { background: rgba(239,68,68,0.12); color: var(--red); border-color: rgba(239,68,68,0.2); }
  .watch-chip.yellow { background: rgba(234,179,8,0.16); color: #a16207; border-color: rgba(234,179,8,0.25); }
  .watch-chip.blue { background: var(--brand-100); color: var(--brand-500); border-color: rgba(27,79,138,0.2); }
  .watch-chip.green { background: rgba(34,197,94,0.12); color: var(--green); border-color: rgba(34,197,94,0.2); }
  .watch-chip.grey { background: rgba(148,163,184,0.12); color: var(--muted); border-color: rgba(148,163,184,0.2); }
  .watch-note { color: var(--muted); font-size: 15px; margin-top: 10px; }
  .watch-table td, .watch-table th { font-size: var(--type-table); }
  .watch-table td:last-child, .watch-table th:last-child { text-align: right; }
  .watch-table td:nth-child(2), .watch-table th:nth-child(2) { text-align: right; }
  .watch-table td:nth-child(5), .watch-table th:nth-child(5) { text-align: center; }
  .watch-table tr:hover td { background: transparent; }
  .watch-kicker { color: var(--muted); font-size: var(--type-small); margin-bottom: 14px; }
  .watch-status-pill { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; border: 1px solid var(--border); }
  .watch-status-pill.open { background: rgba(239,68,68,0.12); color: var(--red); border-color: rgba(239,68,68,0.2); }
  .watch-status-pill.investigating { background: var(--brand-100); color: var(--brand-500); border-color: rgba(27,79,138,0.2); }
  .watch-status-pill.resolved { background: rgba(34,197,94,0.12); color: var(--green); border-color: rgba(34,197,94,0.2); }
  .watch-status-pill.escalated { background: rgba(168,85,247,0.12); color: var(--purple); border-color: rgba(168,85,247,0.2); }
  .watch-status-pill.unauthorized { background: rgba(239,68,68,0.12); color: var(--red); border-color: rgba(239,68,68,0.2); }
  .watch-status-pill.authorized { background: rgba(34,197,94,0.12); color: var(--green); border-color: rgba(34,197,94,0.2); }
  .watch-status-pill.outstanding { background: rgba(239,68,68,0.12); color: var(--red); border-color: rgba(239,68,68,0.2); }
  .watch-status-pill.paid { background: rgba(34,197,94,0.12); color: var(--green); border-color: rgba(34,197,94,0.2); }
  .watch-status-pill.written-off { background: rgba(148,163,184,0.12); color: var(--muted); border-color: rgba(148,163,184,0.2); }
  .overview-recon-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
  .overview-recon-top { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
  .overview-recon-top h3 { margin: 0; color: var(--text); font-size: var(--type-title); }
  .overview-recon-big { color: var(--green); font-size: 30px; font-weight: 800; text-align: right; }
  .overview-recon-sub { color: var(--muted); font-size: var(--type-small); margin-top: 4px; text-align: right; }
  .overview-recon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-bottom: 12px; }
  .overview-recon-stat { background: var(--hover); border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
  .overview-recon-stat .k { color: var(--muted); font-size: var(--type-meta); margin-bottom: 4px; }
  .overview-recon-stat .v { color: var(--text); font-size: 18px; font-weight: 800; }
  .revenue-analysis-tools { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
  .revenue-analysis-tools label { display: grid; gap: 6px; color: var(--muted); font-size: var(--type-meta); font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }
  .revenue-analysis-tools select { min-width: 190px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); color: var(--text); padding: 9px 10px; font-size: var(--type-control); font-weight: 700; text-transform: none; letter-spacing: 0; }
  .revenue-analysis-chip-row { display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: rgba(27,79,138,0.35) transparent; padding-bottom: 4px; margin-bottom: 10px; }
  .revenue-analysis-chip-row::-webkit-scrollbar { height: 4px; }
  .revenue-analysis-chip-row::-webkit-scrollbar-thumb { background: rgba(27,79,138,0.35); border-radius: 999px; }
  .revenue-analysis-chip { min-height: 32px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); color: var(--text2); padding: 7px 11px; font-size: var(--type-small); font-weight: 800; white-space: nowrap; }
  .revenue-analysis-chip.active { background: var(--director-blue); border-color: var(--director-blue); color: #fff; }
  .revenue-analysis-hero { display: grid; grid-template-columns: minmax(220px, 1.3fr) repeat(3, minmax(150px, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: var(--border); margin: 14px 0 16px; }
  .revenue-analysis-hero > div { background: var(--card); padding: 16px; min-width: 0; }
  .revenue-analysis-hero h3 { margin: 3px 0 4px; color: var(--text); font-size: 30px; line-height: 1; font-family: var(--director-display); font-weight: 400; letter-spacing: 0; }
  .revenue-analysis-hero p { margin: 0; color: var(--muted); font-size: var(--type-small); }
  .revenue-analysis-hero-metric span { display: block; color: var(--muted); font-size: var(--type-meta); font-weight: 850; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
  .revenue-analysis-hero-metric strong { display: block; color: var(--text); font-size: 23px; line-height: 1.1; font-weight: 850; overflow-wrap: anywhere; }
  .revenue-analysis-hero-metric em { display: block; margin-top: 6px; color: var(--muted); font-size: var(--type-small); font-style: normal; }
  .revenue-analysis-chart-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 16px; margin-bottom: 16px; }
  body.surface-director .revenue-record-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .revenue-analysis-chart-card { border-radius: 10px; padding: 16px; box-shadow: var(--ui-soft-shadow); }
  .revenue-analysis-chart-card canvas { height: 270px !important; max-height: 270px; }
  .revenue-analysis-lower { margin-bottom: 16px; }
  .revenue-analysis-bars { display: grid; gap: 10px; }
  .revenue-analysis-row { display: grid; grid-template-columns: 86px minmax(120px, 1fr) 116px; gap: 10px; align-items: center; }
  .revenue-analysis-label { color: var(--text); font-size: var(--type-small); font-weight: 800; }
  .revenue-analysis-value { color: var(--text); font-size: var(--type-small); font-weight: 800; text-align: right; font-family: var(--font-number); }
  .revenue-analysis-track { height: 16px; border-radius: 999px; background: var(--hover); border: 1px solid var(--border); overflow: hidden; }
  .revenue-analysis-fill { height: 100%; border-radius: 999px; }
  .revenue-analysis-stack { height: 100%; display: flex; border-radius: 999px; overflow: hidden; }
  .revenue-analysis-segment { display: block; height: 100%; }
  .revenue-analysis-recs { display: grid; gap: 10px; }
  .revenue-analysis-heatmap { display: grid; grid-template-columns: repeat(auto-fit, minmax(74px, 1fr)); gap: 8px; }
  .revenue-analysis-day { min-height: 62px; border: 1px solid var(--border); border-radius: 8px; padding: 8px; color: var(--text); background: var(--hover); display: flex; flex-direction: column; justify-content: space-between; }
  .revenue-analysis-day span { font-size: var(--type-meta); font-weight: 850; }
  .revenue-analysis-day strong { font-size: var(--type-small); line-height: 1.2; overflow-wrap: anywhere; }
  @media (max-width: 520px) {
    .revenue-analysis-tools { display: grid; }
    .revenue-analysis-tools select { width: 100%; min-width: 0; }
    .revenue-analysis-hero { grid-template-columns: 1fr; }
    .revenue-analysis-hero h3 { font-size: 25px; }
    .revenue-analysis-chart-grid { grid-template-columns: 1fr; }
    .revenue-analysis-chart-card canvas { height: 250px !important; max-height: 250px; }
    .revenue-analysis-row { grid-template-columns: 66px minmax(0, 1fr); gap: 6px 8px; }
    .revenue-analysis-value { grid-column: 2; text-align: left; }
    .revenue-analysis-heatmap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }

  /* SVG DONUTS */
  .donut-wrap { display: flex; gap: 10px; margin-bottom: 20px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: rgba(27,79,138,0.35) transparent; padding-bottom: 4px; }
  .donut-wrap::-webkit-scrollbar { height: 4px; }
  .donut-wrap::-webkit-scrollbar-thumb { background: rgba(27,79,138,0.35); border-radius: 999px; }
  .donut-card { flex-shrink: 0; flex: 1; min-width: 140px; background: var(--card); border-radius: 12px; padding: 16px; border: 1px solid var(--border); text-align: center; }
  .donut-card h4 { font-size: var(--type-label); color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
  .donut-svg { width: 110px; height: 110px; margin: 0 auto; display: block; }
  .donut-amount { font-size: 24px; font-weight: 800; color: var(--text); margin-top: 8px; }
  .donut-legend { margin-top: 10px; text-align: left; }
  .donut-legend-item { display: flex; align-items: center; gap: 6px; font-size: var(--type-small); color: var(--muted); margin-bottom: 4px; }
  .donut-legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
  .donut-legend-val { margin-left: auto; color: var(--text); font-weight: 600; }

  /* ENTRY ROWS (read-only daily sales) */
  .entry-row { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; }
  .entry-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
  .entry-item { font-size: var(--type-body); font-weight: 700; color: var(--text); flex: 1; margin-right: 8px; }
  .entry-amount { font-size: var(--type-body); font-weight: 800; white-space: nowrap; }
  .entry-amount.income { color: var(--green); }
  .entry-amount.outgoing { color: var(--red); }
  .entry-amount.neutral { color: var(--brand-500); }
  .entry-bottom { display: flex; justify-content: space-between; align-items: center; }
  .entry-meta { font-size: var(--type-meta); color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
  .entry-type-badge { padding: 2px 6px; border-radius: 4px; font-size: var(--type-meta); font-weight: 800; text-transform: uppercase; }
  .badge-sale { background: rgba(34,197,94,0.15); color: var(--green); }
  .badge-expense { background: rgba(239,68,68,0.15); color: var(--red); }
  .badge-comp { background: rgba(249,115,22,0.15); color: var(--orange); }
  .badge-handover { background: rgba(27,79,138,0.15); color: var(--brand-500); }
  .badge-deposit { background: rgba(168,85,247,0.15); color: var(--purple); }
  .badge-debt { background: rgba(6,182,212,0.15); color: var(--cyan); }
  .badge-refund { background: rgba(236,72,153,0.15); color: var(--pink); }
  .badge-stock { background: rgba(234,179,8,0.15); color: var(--yellow); }
  .badge-stockcount { background: rgba(27,79,138,0.15); color: var(--brand-500); }
  .badge-cash { background: rgba(34,197,94,0.15); color: var(--green); }
  .badge-transfer { background: rgba(168,85,247,0.15); color: var(--purple); }
  .badge-pos { background: rgba(234,179,8,0.15); color: var(--yellow); }
  .dept-badge { padding: 3px 8px; border-radius: 6px; font-size: var(--type-meta); font-weight: 800; text-transform: uppercase; }
  .dept-kitchen { background: rgba(249,115,22,0.15); color: var(--orange); }
  .dept-bar { background: rgba(139,92,246,0.15); color: var(--purple); }
  .dept-reception { background: rgba(6,182,212,0.15); color: var(--cyan); }
  .dept-restaurant { background: rgba(234,179,8,0.15); color: var(--yellow); }
  .dept-housekeeping { background: rgba(27,79,138,0.15); color: var(--brand-500); }
  .dept-porter { background: rgba(34,197,94,0.15); color: var(--green); }
  .dept-laundry { background: rgba(168,85,247,0.15); color: #c084fc; }
  .dept-security { background: rgba(239,68,68,0.15); color: var(--red); }
  .dept-maintenance { background: rgba(148,163,184,0.15); color: var(--muted); }
  .dept-store { background: rgba(34,197,94,0.15); color: var(--green); }
  .dept-pool { background: rgba(56,189,248,0.15); color: #38bdf8; }
  .dept-management { background: rgba(251,191,36,0.15); color: #fbbf24; }
  .dept-admin { background: rgba(27,79,138,0.15); color: var(--brand-500); }

  /* RECONCILIATION */
  .recon-month { margin-bottom: 32px; }
  .recon-month h3 { font-size: var(--type-title); color: var(--text); margin-bottom: 12px; }
  .recon-table { width: 100%; border-collapse: collapse; font-size: var(--type-table); margin-bottom: 16px; }
  .recon-table th { background: var(--hover); color: var(--text2); padding: 10px 12px; text-align: left; }
  .recon-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); }
  .recon-match { color: var(--green); }
  .recon-warn { color: var(--yellow); }
  .recon-bad { color: var(--red); }
  .recon-badge { padding: 3px 8px; border-radius: 4px; font-size: var(--type-meta); font-weight: 700; }
  .recon-badge.match { background: rgba(34,197,94,0.15); color: var(--green); }
  .recon-badge.warn { background: rgba(234,179,8,0.15); color: var(--yellow); }
  .recon-badge.bad { background: rgba(239,68,68,0.15); color: var(--red); }
  .recon-status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; font-size: 16px; font-weight: 700; border: 1px solid var(--border); background: var(--card); color: var(--text); }
  .recon-status-badge.good { border-color: rgba(34,197,94,0.25); background: rgba(34,197,94,0.08); color: var(--green); }
  .recon-status-badge.bad { border-color: rgba(239,68,68,0.25); background: rgba(239,68,68,0.08); color: var(--red); }

  /* CONNECTION STATUS */
  .conn-status { position: fixed; bottom: 10px; right: 10px; padding: 3px 8px; border-radius: 12px; font-size: 11px; font-weight: 600; z-index: 300; opacity: 0.75; }
  .sync-status { bottom: 34px; }
  .conn-online { background: rgba(34,197,94,0.2); color: var(--green); }
  .conn-warn { background: rgba(234,179,8,0.2); color: var(--yellow); }
  .conn-offline { background: rgba(239,68,68,0.3); color: var(--red); animation: pulse 1.5s infinite; }
  @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

  .empty-state { text-align: center; padding: 40px 20px; color: var(--muted); font-size: var(--type-body); }
  .footer { text-align: center; color: #94a3b8; font-size: var(--type-small); margin-top: 40px; padding: 20px; border-top: 1px solid var(--card); }

  /* ============================================================
     STAFF ENTRY TAB — scoped styles
     ============================================================ */

  /* login */
  .se-login-wrap { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 22px; background: #0A1628; }
  .se-login-card { background: #fff; border: 1px solid rgba(15,23,42,0.12); border-radius: 18px; padding: 0; width: 100%; max-width: 460px; overflow: hidden; box-shadow: 0 28px 80px rgba(0,0,0,0.5); }
  .se-login-hero { display: grid; gap: 6px; text-align: center; margin-bottom: 0; background: var(--brand-500); padding: 32px 34px 28px; border-bottom: 3px solid var(--gold); }
  .se-login-hero h1 { font-size: 34px; color: #fff; margin: 0; line-height: 1.05; }
  .se-login-hero p { color: rgba(255,255,255,0.72); font-size: 16px; line-height: 1.45; margin: 0; }
  .se-login-eyebrow { color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
  .se-login-card .se-logo { font-size: 42px; margin: 0 0 6px; }
  .se-login-card .se-logo img { width: 74px; height: 74px; object-fit: contain; display: inline-block; background: rgba(255,255,255,0.12); border: 1.5px solid rgba(255,255,255,0.28); border-radius: 16px; padding: 8px; }
  .se-login-panel { padding: 28px 34px 34px; }
  .se-login-panel h2 { color: var(--text); font-size: 30px; line-height: 1.1; margin: 0 0 8px; }
  .se-login-panel p { color: var(--muted); font-size: 16px; line-height: 1.45; margin: 0 0 22px; }
  .se-login-panel .se-field label { font-size: 14px; }
  .se-login-panel .se-field input { font-size: 16px; }
  .se-login-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
  .se-login-hint { color: var(--muted); font-size: 15px; text-align: center; margin-top: 4px; }
  .se-pin-dots { display: flex; justify-content: center; gap: 12px; margin: 16px 0 20px; }
  .se-pin-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border); background: transparent; transition: all 0.2s; }
  .se-pin-dot.filled { background: var(--brand-500); border-color: var(--brand-500); }
  .se-pin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
  .se-pin-btn { padding: 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: 32px; font-weight: 600; cursor: pointer; transition: all 0.15s; text-align: center; -webkit-tap-highlight-color: transparent; user-select: none; }
  .se-pin-btn:active { background: var(--brand-700); border-color: var(--brand-700); transform: scale(0.95); }
  .se-pin-btn.se-pin-clear { font-size: 21px; color: var(--muted); font-weight: 500; }
  .se-pin-btn.se-pin-back { font-size: 32px; color: var(--muted); }
  .se-field { margin-bottom: 16px; }
  .se-field label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 6px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-family: inherit; }
  .se-field input, .se-field select, .se-field textarea { width: 100%; padding: 12px 14px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-size: 15px; outline: none; transition: border 0.2s; font-family: inherit; }
  .se-field input:focus, .se-field select:focus, .se-field textarea:focus { border-color: var(--brand-500); }
  .se-field input::placeholder, .se-field textarea::placeholder { color: #94a3b8; font-weight: 400; font-style: italic; opacity: 0.7; }
  .se-field textarea { resize: vertical; min-height: 120px; line-height: 1.45; }
  .se-error-msg { color: var(--red); font-size: var(--type-small); text-align: center; margin-top: 12px; min-height: 20px; }

  /* se buttons */
  .se-btn { width: 100%; padding: 13px; border: none; border-radius: 10px; font-size: var(--type-control); font-weight: 700; cursor: pointer; transition: all 0.2s; }
  .se-btn-primary { background: var(--brand-500); color: #fff; }
  .se-btn-primary:hover { background: var(--brand-600); }
  .se-btn-primary:active { background: var(--brand-700); }
  .se-btn-primary:active { transform: scale(0.98); }
  .se-btn-green { background: var(--green); color: #fff; }
  .se-btn-red { background: var(--red); color: #fff; }
  .se-btn-orange { background: var(--orange); color: #fff; }
  .se-btn-purple { background: var(--purple); color: #fff; }
  .se-btn-cyan { background: var(--cyan); color: #fff; }
  .se-btn-outline { background: transparent; border: 1px solid var(--border); color: var(--muted); }
  .se-btn-outline:active { background: var(--hover); }
  .se-btn-sm { width: auto; padding: 8px 16px; font-size: var(--type-meta); border-radius: 8px; }

  /* se app shell */
  .se-app { display: none; }
  .se-app.active { display: block; }
  .se-topbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--hover); border-bottom: 1px solid var(--border); border-radius: 10px; margin-bottom: 16px; }
  .se-topbar-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
  .se-topbar h2 { font-size: var(--type-title); color: var(--text); }
  .se-topbar-right { display: flex; align-items: center; gap: 10px; }
  .se-logout-btn { background: none; border: 1px solid var(--border); color: var(--muted); padding: 6px 12px; border-radius: 8px; font-size: var(--type-meta); cursor: pointer; font-weight: 700; }
  .se-logout-btn:active { background: var(--hover); }
  .se-help-btn { background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.3); border-radius: 8px; padding: 6px 10px; font-size: 14px; font-weight: 700; cursor: pointer; }
  .se-help-btn:active { background: rgba(255,255,255,0.24); }
  .se-onboarding { display: none; position: fixed; inset: 0; z-index: 1800; background: rgba(10,22,40,0.54); align-items: flex-end; justify-content: center; padding: 14px; }
  .se-onboarding.show { display: flex; }
  .se-onboarding-card { width: 100%; max-width: 440px; background: var(--card); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 24px 80px rgba(15,23,42,0.28); overflow: hidden; }
  .se-onboarding-head { padding: 18px 18px 14px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
  .se-onboarding-head h3 { margin: 0 0 4px; color: var(--text); font-size: 22px; line-height: 1.12; }
  .se-onboarding-head p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.35; }
  .se-onboarding-x { border: 1px solid var(--border); background: var(--hover); color: var(--muted); border-radius: 999px; width: 32px; height: 32px; cursor: pointer; font-size: 16px; font-weight: 800; }
  .se-onboarding-body { padding: 18px; display: grid; gap: 12px; }
  .se-onboarding-step { color: var(--gold); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; }
  .se-onboarding-title { color: var(--text); font-size: 20px; font-weight: 800; line-height: 1.18; }
  .se-onboarding-copy { color: var(--text2); font-size: 15px; line-height: 1.45; }
  .se-onboarding-list { display: grid; gap: 8px; margin: 2px 0 0; padding: 0; list-style: none; }
  .se-onboarding-list li { color: var(--muted); font-size: 13px; line-height: 1.35; padding-left: 16px; position: relative; }
  .se-onboarding-list li:before { content: ''; width: 6px; height: 6px; border-radius: 999px; background: var(--brand-500); position: absolute; left: 0; top: 7px; }
  .se-onboarding-actions { display: flex; gap: 8px; justify-content: space-between; align-items: center; padding: 0 18px 18px; }
  .se-onboarding-actions button { border-radius: 10px; border: 1px solid var(--border); padding: 10px 12px; font-family: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
  .se-onboarding-secondary { background: var(--card); color: var(--muted); }
  .se-onboarding-primary { background: var(--brand-500); color: #fff; border-color: var(--brand-500) !important; }
  .se-onboarding-dots { display: flex; gap: 5px; align-items: center; justify-content: center; }
  .se-onboarding-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--border); }
  .se-onboarding-dot.active { background: var(--brand-500); }

  /* se summary */
  .se-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
  .se-summary-card { background: var(--card); border-radius: 12px; padding: 14px; border: 1px solid var(--border); }
  .se-summary-card.full { grid-column: 1 / -1; }
  .se-summary-card.wide { grid-column: span 2; }
  .se-tool-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 16px; }
  .se-tool-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
  .se-tool-card label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; }
  .se-tool-card input { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); font-size: 14px; }
  .folio-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
  .folio-card-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
  .folio-card-head h4 { font-size: 18px; color: var(--text); margin-bottom: 4px; }
  .folio-card-head p { font-size: 13px; color: var(--muted); }
  .folio-meta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; color: var(--text2); }
  .folio-meta-row span { background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 6px 10px; }
  .folio-line-list { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 10px; }
  .folio-line-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(203,213,225,0.6); font-size: 13px; }
  .folio-line-row:last-child { border-bottom: none; }
  .folio-line-row strong { color: var(--text); }
  .folio-kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 14px; }
  .folio-kpi { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
  .folio-kpi .k { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 6px; }
  .folio-kpi .v { font-size: 18px; font-weight: 700; color: var(--text); }
  .folio-kpi .v.red { color: var(--red); }
  .occupied-folio-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .occupied-folio-grid .collapse-section { grid-column: 1 / -1; }
  .occupied-folio-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
  .occupied-folio-card h4 { color: var(--text); font-size: 17px; margin-bottom: 4px; }
  .occupied-folio-card p { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
  .occupied-folio-card .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
  .occupied-folio-card .meta span { background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 5px 10px; font-size: 12px; color: var(--text2); }
  .folio-proof-chip { appearance: none; border: 1px solid rgba(245,158,11,0.45); background: #fff7ed; color: #92400e; border-radius: 999px; padding: 5px 10px; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
  .folio-proof-chip.open { border-color: rgba(239,68,68,0.45); background: #fff1f2; color: #991b1b; }
  .folio-proof-list { display: grid; gap: 10px; margin-top: 14px; }
  .folio-proof-row { border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: var(--bg); }
  .folio-proof-row h4 { color: var(--text); font-size: 15px; margin-bottom: 6px; }
  .folio-proof-row p { color: var(--muted); font-size: 12px; margin: 3px 0; }
  .folio-proof-allocation { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin-top: 14px; }
  .folio-proof-allocation div { border: 1px solid var(--border); border-radius: 12px; padding: 10px; background: var(--card); }
  .folio-proof-allocation .k { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
  .folio-proof-allocation .v { color: var(--text); font-size: 17px; font-weight: 800; margin-top: 4px; }
  .folio-proof-allocation .ok { color: var(--green); }
  .folio-proof-allocation .flag { color: var(--red); }
  .occupied-folio-card .actions { display: flex; gap: 8px; }
  .occupied-folio-card .actions .se-btn { flex: 1; }
  .ledger-toggle-row { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
  .ledger-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
  .ledger-table { width: 100%; border-collapse: collapse; min-width: 980px; font-family: Arial, sans-serif; font-size: 12px; }
  .ledger-table th, .ledger-table td { border: 1px solid #bbbbbb; padding: 6px 8px; vertical-align: middle; }
  .ledger-table th { background: #efefef; color: #0f172a; font-weight: 700; text-align: center; }
  .ledger-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
  .ledger-table td.center { text-align: center; }
  .daily-book-ledger { min-width: 1680px; }
  .accommodation-book-ledger { min-width: 1320px; }
  .ledger-title { background: #1B4F8A; color: #fff; font-family: Arial, sans-serif; font-size: 14px; font-weight: 700; text-align: center; padding: 12px 10px; }
  .ledger-subtitle { font-family: Arial, sans-serif; font-size: 12px; font-style: italic; text-align: right; padding: 8px 10px; color: #444; background: var(--card); border-left: 1px solid #bbbbbb; border-right: 1px solid #bbbbbb; }
  .ledger-summary-label { font-weight: 700; }
  .ledger-summary-total { background: #fff3cd; font-weight: 700; }
  .ledger-balance { font-style: italic; font-size: 11px; }
  .ledger-note { font-size: 12px; color: var(--muted); margin-top: 8px; }

  /* se type pills */
  .se-type-scroll { display: flex; gap: 6px; padding: 4px 0 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: rgba(27,79,138,0.35) transparent; margin-bottom: 12px; background: var(--ink-50); }
  .se-type-scroll::-webkit-scrollbar { height: 4px; }
  .se-type-scroll::-webkit-scrollbar-thumb { background: rgba(27,79,138,0.35); border-radius: 999px; }
  .se-type-pill { flex-shrink: 0; padding: 8px 14px; border-radius: 20px; border: 1px solid var(--border); background: var(--card); color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
  .se-type-pill.active { background: var(--brand-500); color: #fff; border-color: transparent; }
  .se-type-pill[data-type="sale"].active { background: var(--green); }
  .se-type-pill[data-type="expense"].active { background: var(--red); }
  .se-type-pill[data-type="comp"].active { background: var(--orange); }
  .se-type-pill[data-type="handover"].active { background: var(--brand-500); }
  .se-type-pill[data-type="deposit"].active { background: var(--purple); }
  .se-type-pill[data-type="debt"].active { background: var(--cyan); }
  .se-type-pill[data-type="refund"].active { background: var(--pink); }
  .se-type-pill[data-type="stock"].active { background: var(--yellow); }
  .se-type-pill[data-type="stockcount"].active { background: var(--brand-500); }
  .se-mode-pill.active { background: var(--brand-500); color: #fff; border-color: transparent; }
  .se-mode-pill.secondary.active { background: var(--green); }
  .se-mode-pill.ghost.active { background: var(--text); color: var(--bg); }

  /* se form */
  .se-form-card { background: var(--card); border-radius: 14px; padding: 18px; border: 1px solid var(--border); margin-bottom: 16px; }
  .se-form-card h3 { font-size: var(--type-title); color: var(--text); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
  .se-payment-btns { display: flex; gap: 8px; }
  .se-pay-btn { flex: 1; min-height: 42px; padding: 10px 8px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); color: var(--muted); font-size: var(--type-control); font-weight: 700; cursor: pointer; text-align: center; transition: all 0.15s; }
  .se-pay-btn.active { border-color: var(--green); color: var(--green); background: rgba(34,197,94,0.1); }
  .se-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .se-form-actions { display: flex; gap: 10px; margin-top: 14px; }
  .se-form-actions .se-btn { flex: 1; }
  .se-cat-btns { display: flex; flex-wrap: wrap; gap: 6px; }
  .se-cat-btn { min-height: 42px; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); color: var(--muted); font-size: var(--type-control); font-weight: 700; cursor: pointer; transition: all 0.15s; }
  .se-cat-btn.active { border-color: var(--brand-500); color: var(--brand-500); background: var(--brand-100); }
  .se-catalog-wrap { margin-top: 8px; }
  .se-catalog-list { display: grid; gap: 6px; max-height: 220px; overflow-y: auto; margin-top: 8px; }
  .se-catalog-item { width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: 17px; text-align: left; cursor: pointer; }
  .se-catalog-item:active { background: var(--hover); }
  .se-catalog-meta { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 15px; margin-top: 4px; }
  .se-catalog-picked { margin-top: 8px; padding: 10px 12px; border-radius: 8px; background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.2); }
  .se-catalog-picked.offmenu { background: rgba(234,179,8,0.08); border-color: rgba(234,179,8,0.2); }
  .se-catalog-picked strong { display: block; font-size: 17px; color: var(--text); }
  .se-catalog-picked span { display: block; font-size: 15px; color: var(--muted); margin-top: 4px; }
  .se-price-check { margin-top: 8px; padding: 10px 12px; border-radius: 8px; font-size: 15px; }
  .se-price-check.warn { background: rgba(234,179,8,0.12); border: 1px solid rgba(234,179,8,0.25); color: #b45309; }
  .se-price-check.ok { background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.2); color: var(--green); }
  .se-qty-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
  .se-qty-row label { min-width: 52px; margin: 0; }
  .se-qty-stepper { display: flex; align-items: center; gap: 8px; }
  .se-qty-stepper button { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border); background: var(--hover); color: var(--text); cursor: pointer; font-size: 24px; font-weight: 700; }
  .se-qty-stepper input { width: 80px; text-align: center; }
  .se-stockcount-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
  .se-stockcount-head p { margin: 6px 0 0; font-size: var(--type-small); color: var(--muted); }
  .se-stockcount-progress { margin-top: 12px; font-size: var(--type-small); color: var(--muted); }
  .se-stockcount-list { max-height: 52vh; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; margin: 16px 0; padding-right: 2px; }
  .se-stockcount-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto 88px auto auto; gap: 8px; align-items: center; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); }
  .se-stockcount-row.done { border-color: rgba(34,197,94,0.35); background: rgba(34,197,94,0.08); }
  .se-stockcount-name { font-size: 18px; font-weight: 600; color: var(--text); }
  .se-stockcount-check { font-size: 18px; color: var(--green); min-width: 20px; text-align: center; }
  .se-stockcount-row button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--card); color: var(--text); cursor: pointer; font-size: 22px; font-weight: 700; }
  .se-stockcount-row input { text-align: center; }
  .se-stockcount-unit { font-size: 15px; color: var(--muted); min-width: 56px; text-align: right; }
  .se-stockcount-actions { display: flex; gap: 10px; margin-top: 14px; }
  .se-stockcount-actions button { flex: 1; }
  .se-mode-copy { color: var(--muted); font-size: var(--type-small); margin: -6px 0 14px; }
  .se-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
  .se-mini-stat { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
  .se-mini-stat .k { color: var(--muted); font-size: var(--type-meta); margin-bottom: 4px; }
  .se-mini-stat .v { color: var(--text); font-size: 18px; font-weight: 800; }
  .se-room-other { margin-top: 8px; }
  .se-split-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .se-line-grid { display: grid; gap: 10px; margin-top: 10px; }
  .se-line-row { padding: 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); }
  .se-line-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 8px; }
  .se-line-title { font-size: 18px; font-weight: 700; color: var(--text); }
  .se-line-sub { color: var(--muted); font-size: 14px; margin-top: 3px; }
  .se-line-row select { margin-top: 8px; }
  .se-line-total { font-size: 14px; color: var(--muted); margin-top: 6px; }
  .se-docket-line { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); margin-bottom: 10px; }
  .se-docket-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
  .se-docket-head strong { color: var(--text); font-size: 17px; }
  .se-docket-remove { border: 1px solid var(--border); background: var(--card); color: var(--muted); border-radius: 8px; padding: 6px 10px; cursor: pointer; }
  .se-docket-grid { display: grid; grid-template-columns: 1fr 92px; gap: 8px; }
  .se-docket-total { border: 1px solid rgba(34,197,94,0.25); background: rgba(34,197,94,0.08); border-radius: 12px; padding: 14px; display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: 10px; }
  .se-docket-total .k { color: var(--muted); font-size: 14px; }
  .se-docket-total .v { color: var(--green); font-size: 20px; font-weight: 800; }
  .se-docket-note { color: var(--muted); font-size: 14px; }
  .se-docket-flag { color: #b45309; font-size: 14px; font-weight: 700; }
  .se-summary-wide { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
  .se-summary-wide .wide { grid-column: 1 / -1; }
  .se-summary-note { color: var(--muted); font-size: 14px; margin-top: 8px; }

  /* se entries */
  .se-entries-section h3 { font-size: var(--type-title); color: var(--text); margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
  .se-entry-row { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; cursor: pointer; transition: all 0.15s; }
  .se-entry-row:active { background: var(--hover); }
  .se-entry-row.deleted { opacity: 0.5; border-left: 3px solid var(--red); }
  .se-entry-row.edited { border-left: 3px solid var(--yellow); }
  .se-price-flag { margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: rgba(234,179,8,0.12); color: #b45309; font-size: 15px; font-weight: 600; }

  /* se modals */
  .se-modal-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.7); z-index: 200; align-items: flex-end; justify-content: center; }
  .se-modal-overlay.show { display: flex; }
  .se-modal { background: var(--card); border-radius: 16px 16px 0 0; width: 100%; max-width: 500px; max-height: 85vh; overflow-y: auto; padding: 24px 20px; }
  .se-modal-handle { width: 40px; height: 4px; background: var(--border); border-radius: 2px; margin: 0 auto 16px; }
  .se-modal h3 { font-size: var(--type-title); color: var(--text); margin-bottom: 16px; }
  .se-audit-entry { padding: 10px 12px; background: var(--bg); border-radius: 8px; margin-bottom: 8px; font-size: var(--type-small); }
  .se-audit-action { font-weight: 700; text-transform: uppercase; margin-bottom: 4px; }
  .se-audit-action.create { color: var(--green); }
  .se-audit-action.edit { color: var(--yellow); }
  .se-audit-action.delete { color: var(--red); }
  .se-audit-detail { color: var(--muted); margin-bottom: 2px; }
  .se-audit-who { color: var(--muted); font-style: italic; }
  .se-modal-actions { display: flex; gap: 10px; margin-top: 16px; }
  .se-modal-actions .se-btn { flex: 1; }

  /* se confirm modal */
  .se-confirm-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.75); z-index: 5000; align-items: center; justify-content: center; padding: 20px; }
  .se-confirm-overlay.show { display: flex; }
  .se-confirm-card { background: var(--card); border-radius: 16px; width: 100%; max-width: 380px; max-height: calc(100vh - 40px); overflow: hidden; animation: seConfirmSlide 0.2s ease-out; display: flex; flex-direction: column; }
  @keyframes seConfirmSlide { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
  .se-confirm-header { padding: 20px 20px 12px; text-align: center; }
  .se-confirm-icon { font-size: 46px; margin-bottom: 8px; }
  .se-confirm-title { font-size: var(--type-title); font-weight: 800; color: var(--text); }
  .se-confirm-body { padding: 0 20px 16px; overflow-y: auto; }
  .se-confirm-row { display: flex; justify-content: space-between; padding: 8px 12px; background: var(--bg); border-radius: 8px; margin-bottom: 6px; font-size: var(--type-small); }
  .se-confirm-row-label { color: var(--muted); }
  .se-confirm-row-val { color: var(--text); font-weight: 600; overflow-wrap: anywhere; white-space: pre-wrap; }
  .se-confirm-amount { text-align: center; padding: 12px; margin: 0 20px 12px; border-radius: 12px; }
  .se-confirm-amount-val { font-size: 28px; font-weight: 800; }
  .se-confirm-actions { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--border); }
  .se-confirm-actions button { padding: 16px; border: none; font-size: var(--type-control); font-weight: 800; cursor: pointer; transition: background 0.15s; }
  .se-confirm-actions button:first-child { background: var(--card); color: var(--muted); border-right: 1px solid var(--border); }
  .se-confirm-actions button:first-child:active { background: var(--hover); }
  .se-confirm-actions button:last-child { color: #fff; }
  .se-confirm-actions button:last-child:active { filter: brightness(0.9); }
  .se-pin-input { width: 100%; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); color: var(--text); padding: 14px 16px; font-size: 28px; text-align: center; letter-spacing: 0.2em; outline: none; }
  .se-pin-input:focus { border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(27,79,138,0.12); }

  /* se admin */
  .se-filters { display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: rgba(27,79,138,0.35) transparent; margin-bottom: 12px; padding-bottom: 4px; }
  .se-filters::-webkit-scrollbar { height: 4px; }
  .se-filters::-webkit-scrollbar-thumb { background: rgba(27,79,138,0.35); border-radius: 999px; }
  .se-filter-chip { flex-shrink: 0; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--card); color: var(--muted); font-size: var(--type-control); font-weight: 700; cursor: pointer; white-space: nowrap; }
  .se-filter-chip.active { border-color: var(--brand-500); color: var(--brand-500); background: var(--brand-100); }
  .se-filter-chip select, .se-filter-chip input { background: transparent; border: none; color: var(--text); font-size: var(--type-control); outline: none; font-family: inherit; }
  .se-filter-chip input[type="date"] { color-scheme: light; }
  .se-admin-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
  .se-tab-bar { display: flex; gap: 0; border-radius: 10px; border: 1px solid var(--border); margin-bottom: 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: rgba(27,79,138,0.35) transparent; padding-bottom: 4px; }
  .se-tab-bar::-webkit-scrollbar { height: 4px; }
  .se-tab-bar::-webkit-scrollbar-thumb { background: rgba(27,79,138,0.35); border-radius: 999px; }
  .se-tab-btn { flex-shrink: 0; padding: 10px 14px; text-align: center; font-size: 14px; font-weight: 600; cursor: pointer; background: var(--card); color: var(--muted); border: none; transition: all 0.2s; white-space: nowrap; }
  .se-tab-btn.active { background: var(--brand-500); color: #fff; }

  /* se handover */
  .se-handover-card { background: var(--card); border-radius: 14px; padding: 18px; border: 1px solid var(--brand-500); margin-bottom: 16px; }
  .se-handover-card h3 { font-size: var(--type-title); color: var(--brand-500); margin-bottom: 12px; }
  .se-handover-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: var(--type-body); }
  .se-handover-row:last-child { border-bottom: none; }

  /* se toast */
  .se-toast { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); padding: 10px 20px; border-radius: 10px; font-size: var(--type-small); font-weight: 700; z-index: 400; opacity: 0; transition: opacity 0.3s; pointer-events: none; display:flex; align-items:center; gap:12px; }
  .se-toast.show { opacity: 1; }
  .se-toast-success { background: var(--green); color: #fff; }
  .se-toast-error { background: var(--red); color: #fff; }
  .se-toast.with-action { pointer-events: auto; }
  .se-toast-btn { border: 0; border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 700; background: rgba(255,255,255,0.22); color: inherit; cursor: pointer; }
  .se-toast-btn:active { transform: translateY(1px); }

  /* se closeout */
  .se-closed-banner { margin-bottom: 16px; padding: 16px; background: rgba(234,179,8,0.1); border: 1px solid rgba(234,179,8,0.3); border-radius: 12px; text-align: center; }
  .se-closed-icon { font-size: 34px; margin-bottom: 6px; }
  .se-closed-title { font-size: var(--type-title); font-weight: 800; color: var(--yellow); margin-bottom: 4px; }
  .se-closed-meta { font-size: var(--type-small); color: var(--muted); }
  .se-closeout-btn { margin-bottom: 20px; padding: 14px; border: 2px dashed var(--border); border-radius: 12px; background: transparent; color: var(--muted); font-size: var(--type-control); font-weight: 700; cursor: pointer; width: 100%; transition: all 0.2s; }
  .se-closeout-btn:active { border-color: var(--yellow); color: var(--yellow); }

  .se-donut-wrap { display: flex; gap: 10px; margin-bottom: 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: rgba(27,79,138,0.35) transparent; padding-bottom: 4px; }
  .se-donut-wrap::-webkit-scrollbar { height: 4px; }
  .se-donut-wrap::-webkit-scrollbar-thumb { background: rgba(27,79,138,0.35); border-radius: 999px; }

  /* payroll */
  .pay-gate-overlay { display: none; position: fixed; inset: 0; background: rgba(15,23,42,0.78); z-index: 450; align-items: center; justify-content: center; padding: 20px; }
  .pay-gate-overlay.show { display: flex; }
  .pay-gate-card { width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 28px 22px 22px; text-align: center; }
  .pay-gate-card.shake { animation: payShake 0.35s linear; }
  @keyframes payShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    50% { transform: translateX(8px); }
    75% { transform: translateX(-6px); }
  }
  .pay-gate-card h2 { font-size: var(--type-section); color: var(--text); margin-bottom: 6px; }
  .pay-gate-card p { color: var(--muted); font-size: var(--type-body); margin-bottom: 20px; }
  .pay-pin-dots { display: flex; justify-content: center; gap: 12px; margin: 10px 0 18px; }
  .pay-pin-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border); background: transparent; }
  .pay-pin-dot.filled { background: var(--brand-500); border-color: var(--brand-500); }
  .pay-pin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .pay-pin-btn { padding: 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: 32px; font-weight: 600; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .pay-pin-btn:active { background: var(--brand-700); border-color: var(--brand-700); color: #fff; transform: scale(0.97); }
  .pay-pin-btn.pay-pin-clear { font-size: 21px; color: var(--muted); }
  .pay-pin-btn.pay-pin-back { font-size: 32px; color: var(--muted); }
  .pay-gate-error { color: var(--red); font-size: var(--type-small); min-height: 22px; margin-top: 12px; }
  .pay-search-bar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
  .pay-search-input { flex: 1; min-width: 220px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: var(--type-control); outline: none; }
  .pay-search-meta { color: var(--muted); font-size: var(--type-small); }
  .pay-flag-groups { display: grid; gap: 16px; }
  .pay-flag-group { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
  .pay-flag-group h3 { font-size: var(--type-title); color: var(--text); margin-bottom: 12px; }
  .pay-flag-list { display: grid; gap: 10px; }
  .pay-flag-card { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 14px; }
  .pay-flag-card.red { border-left: 4px solid var(--red); }
  .pay-flag-card.yellow { border-left: 4px solid var(--yellow); }
  .pay-flag-name { font-size: var(--type-body); font-weight: 800; color: var(--text); margin-bottom: 6px; }
  .pay-flag-line { font-size: var(--type-small); color: var(--muted); margin-bottom: 4px; }
  .pay-flag-why { font-size: var(--type-small); color: var(--text2); }
  .pay-table-wrap { display: block; }
  .pay-table th { cursor: pointer; }
  .pay-table th:first-child, .pay-table td:first-child { text-align: left; }
  .pay-row-stable td { background: rgba(34,197,94,0.06); }
  .pay-row-warn td { background: rgba(234,179,8,0.08); }
  .pay-row-bad td { background: rgba(239,68,68,0.08); }
  .pay-flag-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 999px; font-size: var(--type-meta); font-weight: 700; white-space: nowrap; }
  .pay-flag-badge.red { background: rgba(239,68,68,0.14); color: var(--red); }
  .pay-flag-badge.yellow { background: rgba(234,179,8,0.16); color: #a16207; }
  .pay-mobile-list { display: none; gap: 10px; }
  .pay-staff-card { border: 1px solid var(--border); border-radius: 12px; background: var(--card); padding: 14px; }
  .pay-staff-card.pay-row-stable { border-left: 4px solid var(--green); }
  .pay-staff-card.pay-row-warn { border-left: 4px solid var(--yellow); }
  .pay-staff-card.pay-row-bad { border-left: 4px solid var(--red); }
  .pay-staff-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
  .pay-staff-name { font-size: var(--type-body); font-weight: 800; color: var(--text); }
  .pay-staff-role { font-size: var(--type-meta); color: var(--muted); margin-top: 3px; }
  .pay-staff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
  .pay-staff-stat { background: var(--bg); border-radius: 8px; padding: 8px 10px; }
  .pay-staff-stat .k { font-size: 15px; color: var(--muted); margin-bottom: 3px; }
  .pay-staff-stat .v { font-size: 18px; color: var(--text); font-weight: 700; }
  .pay-voucher-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin-bottom: 12px; }
  .pay-voucher-tools > div { min-width: 170px; }
  .pay-voucher-tools label { display: block; color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; margin-bottom: 6px; letter-spacing: 0.4px; }
  .pay-voucher-tools input { width: 100%; box-sizing: border-box; padding: 11px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-size: 16px; outline: none; }
  .pay-voucher-table { min-width: 1120px; }
  .pay-voucher-table thead th { position: sticky; top: 0; z-index: 2; background: var(--card); }
  .pay-voucher-table input { width: 100%; min-width: 72px; padding: 8px 9px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); font-size: 14px; box-sizing: border-box; }
  .pay-voucher-table input[type="text"] { min-width: 130px; }
  .pay-voucher-total { font-weight: 800; color: var(--text); }
  .pay-voucher-note { color: var(--muted); font-size: 13px; margin-top: 8px; }
  .pay-missing-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
  .pay-missing-list span { border: 1px solid var(--border); border-radius: 999px; padding: 7px 10px; background: var(--bg); font-size: 13px; font-weight: 700; color: var(--text); }
  .staff-users-layout { display: grid; gap: 16px; }
  .staff-admin-shell { display: grid; gap: 14px; }
  .staff-admin-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .staff-admin-stat { border: 1px solid var(--border); border-radius: 12px; background: var(--card); padding: 14px; min-width: 0; }
  .staff-admin-stat span { display: block; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
  .staff-admin-stat strong { display: block; color: var(--text); font-size: 26px; line-height: 1.1; margin-top: 6px; }
  .staff-admin-stat small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
  .staff-admin-policy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .staff-admin-policy-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; }
  .staff-admin-policy-card .staff-users-msg { grid-column: 1 / -1; margin-top: 0; }
  .staff-admin-main-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr); gap: 12px; align-items: stretch; }
  .staff-admin-register-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 12px; }
  .staff-admin-register-head h3 { margin-bottom: 0; }
  .staff-admin-list-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-left: auto; }
  .staff-admin-list-tools input { min-width: min(320px, 100%); height: 40px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--text); font-size: 14px; }
  .staff-admin-settings .collapse-content { padding-top: 12px; }
  .staff-admin-settings-grid { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 12px; }
  .staff-users-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px; max-width: 100%; overflow: hidden; }
  .staff-users-card h3 { color: var(--text); font-size: 22px; margin-bottom: 12px; }
  .staff-users-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
  .staff-users-grid.two { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
  .staff-users-grid > div { min-width: 0; }
  .staff-users-grid textarea,
  .staff-users-grid input,
  .staff-users-grid select,
  .staff-users-card > select,
  .staff-users-card > textarea { width: 100%; max-width: 100%; box-sizing: border-box; padding: 12px 14px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-size: 16px; outline: none; }
  .staff-users-grid label { display: block; color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; margin-bottom: 6px; letter-spacing: 0.4px; }
  .staff-users-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
  .staff-users-btn { border: none; border-radius: 10px; padding: 12px 16px; font-size: 15px; font-weight: 700; cursor: pointer; }
  .staff-users-btn.primary { background: var(--brand-500); color: #fff; }
  .staff-users-btn.secondary { background: var(--hover); color: var(--text); border: 1px solid var(--border); }
  .staff-users-btn.warn { background: rgba(239,68,68,0.12); color: var(--red); border: 1px solid rgba(239,68,68,0.2); }
  .staff-users-hint { color: var(--muted); font-size: 13px; margin-top: 8px; }
  .staff-users-msg { min-height: 20px; font-size: 13px; margin-top: 10px; }
  .staff-users-msg.error { color: var(--red); }
  .staff-users-msg.success { color: var(--green); }
  .staff-users-table-wrap { max-width: 100%; max-height: 62vh; overflow: auto; -webkit-overflow-scrolling: touch; }
  .staff-users-mobile-list { margin-top: 12px; }
  .staff-users-table { width: 100%; border-collapse: collapse; min-width: 760px; }
  .staff-users-table th, .staff-users-table td { padding: 10px 8px; border-bottom: 1px solid var(--border); text-align: left; font-size: 14px; vertical-align: top; }
  .staff-users-table th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; position: sticky; top: 0; z-index: 2; background: var(--card); }
  .staff-users-row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
  .staff-users-row-actions button { border: 1px solid var(--border); background: var(--bg); color: var(--text); border-radius: 8px; padding: 8px 10px; font-size: 12px; font-weight: 700; cursor: pointer; }
  .staff-status { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 700; border: 1px solid rgba(34,197,94,0.2); background: rgba(34,197,94,0.12); color: var(--green); }
  .staff-status.disabled { border-color: rgba(239,68,68,0.2); background: rgba(239,68,68,0.12); color: var(--red); }
  .staff-users-print { background: var(--bg); border: 1px dashed var(--border); border-radius: 12px; padding: 14px; margin-top: 14px; }
  .staff-users-print-note { color: var(--text); font-size: 15px; font-weight: 700; margin-bottom: 10px; }
  .staff-users-print-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
  .staff-users-print-row:last-child { border-bottom: none; }
  .staff-users-print-code { color: var(--text); font-weight: 700; }
  .staff-users-empty { color: var(--muted); font-size: 14px; padding: 14px 0; }
  .attendance-hero { background: linear-gradient(135deg, rgba(27,79,138,0.12), rgba(6,182,212,0.10)); border: 1px solid rgba(27,79,138,0.18); border-radius: 16px; padding: 16px; margin-bottom: 14px; }
  .attendance-hero-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
  .attendance-hero h3 { margin: 0; font-size: 22px; color: var(--text); }
  .attendance-hero p { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
  .attendance-shift-tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: rgba(15,23,42,0.06); color: var(--text); font-size: 12px; font-weight: 700; }
  .attendance-action-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
  .attendance-big-btn { border: none; border-radius: 14px; padding: 18px 16px; font-size: 18px; font-weight: 800; cursor: pointer; }
  .attendance-big-btn.clock-in { background: var(--green); color: #fff; }
  .attendance-big-btn.clock-out { background: var(--brand-500); color: #fff; }
  .attendance-big-btn:disabled { opacity: 0.5; cursor: not-allowed; }
  .attendance-mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .attendance-mini-card { background: rgba(255,255,255,0.72); border: 1px solid rgba(148,163,184,0.25); border-radius: 12px; padding: 12px; }
  .attendance-mini-card .k { color: var(--muted); font-size: 12px; text-transform: uppercase; font-weight: 700; letter-spacing: 0.5px; margin-bottom: 6px; }
  .attendance-mini-card .v { color: var(--text); font-size: 16px; font-weight: 700; }
  .attendance-flag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
  .attendance-flag-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
  .attendance-flag-pill.warn { background: rgba(234,179,8,0.15); color: #a16207; }
  .attendance-flag-pill.bad { background: rgba(239,68,68,0.12); color: var(--red); }
  .attendance-note { color: var(--muted); font-size: 13px; margin-top: 10px; }
  .attendance-note.error { color: var(--red); }
  .attendance-note.success { color: var(--green); }
  .attendance-register-btn { margin-top: 12px; border: 1px solid var(--border); background: var(--card); color: var(--text); border-radius: 10px; padding: 12px 14px; font-size: 14px; font-weight: 700; cursor: pointer; }
  .attendance-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
  .attendance-filters input,
  .attendance-filters select,
  .attendance-form input,
  .attendance-form select,
  .attendance-form textarea { width: 100%; padding: 12px 14px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-size: 15px; outline: none; }
  .attendance-form { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px; margin-bottom: 16px; }
  .attendance-form h3 { color: var(--text); font-size: 20px; margin-bottom: 12px; }
  .attendance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
  .attendance-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
  .attendance-btn { border: none; border-radius: 10px; padding: 12px 16px; font-size: 14px; font-weight: 700; cursor: pointer; }
  .attendance-btn.primary { background: var(--brand-500); color: #fff; }
  .attendance-btn.warn { background: rgba(239,68,68,0.12); color: var(--red); border: 1px solid rgba(239,68,68,0.2); }
  .attendance-btn.soft { background: var(--hover); color: var(--text); border: 1px solid var(--border); }
  .attendance-day-grid { display: grid; gap: 12px; }
  .attendance-day-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 14px; }
  .attendance-day-card.locked { border-left: 4px solid var(--yellow); }
  .attendance-day-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
  .attendance-day-head h4 { margin: 0; color: var(--text); font-size: 18px; }
  .attendance-day-meta { color: var(--muted); font-size: 13px; }
  .attendance-day-list { display: grid; gap: 8px; }
  .attendance-day-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; border: 1px solid var(--border); background: var(--bg); border-radius: 10px; padding: 10px 12px; }
  .attendance-day-row strong { color: var(--text); font-size: 14px; display: block; }
  .attendance-day-row span { color: var(--muted); font-size: 12px; display: block; margin-top: 3px; }
  .attendance-day-row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
  .attendance-day-row-actions button { border: 1px solid var(--border); background: #fff; color: var(--text); border-radius: 8px; padding: 8px 10px; font-size: 12px; font-weight: 700; cursor: pointer; }
  .roster-transition-panel { margin-top: 14px; }
  .roster-transition-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
  .roster-transition-head h3 { margin: 0 0 4px; color: var(--text); }
  .roster-transition-head p { margin: 0; color: var(--muted); font-size: 13px; }
  .roster-transition-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; margin-bottom: 10px; }
  .roster-transition-step { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: #fff; color: var(--text); font-size: 13px; font-weight: 700; }
  .attendance-queue-list { display: grid; gap: 12px; }
  .attendance-queue-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 14px; }
  .attendance-queue-card.overdue { border-left: 4px solid var(--red); background: rgba(239,68,68,0.04); }
  .attendance-queue-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
  .attendance-queue-name { color: var(--text); font-size: 18px; font-weight: 800; }
  .attendance-queue-meta { color: var(--muted); font-size: 13px; margin-top: 4px; }
  .attendance-queue-body { display: grid; grid-template-columns: 96px 1fr; gap: 12px; }
  .attendance-thumb { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; background: var(--bg); border: 1px solid var(--border); }
  .attendance-punch-thumb { width: 54px; height: 54px; border-radius: 8px; object-fit: cover; background: var(--bg); border: 1px solid var(--border); display: block; margin-top: 8px; }
  .attendance-queue-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
  .attendance-queue-actions button { border: none; border-radius: 10px; padding: 10px 14px; font-size: 13px; font-weight: 700; cursor: pointer; }
  .attendance-queue-actions .approve { background: var(--green); color: #fff; }
  .attendance-queue-actions .reject { background: rgba(239,68,68,0.12); color: var(--red); border: 1px solid rgba(239,68,68,0.2); }
  .attendance-queue-actions .soft { background: var(--hover); color: var(--text); border: 1px solid var(--border); }
  .attendance-table { width: 100%; border-collapse: collapse; min-width: 980px; }
  .attendance-table th, .attendance-table td { padding: 10px 8px; border-bottom: 1px solid var(--border); text-align: left; font-size: 14px; vertical-align: top; }
  .attendance-table th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
  .attendance-month-wrap { max-height: 68vh; overflow: auto; }
  .attendance-month-table { min-width: 2100px; }
  .attendance-month-table thead th { position: sticky; top: 0; background: var(--card); z-index: 3; }
  .attendance-month-table th:first-child,
  .attendance-month-table td:first-child { position: sticky; left: 0; background: var(--card); z-index: 2; min-width: 180px; }
  .attendance-month-table thead th:first-child { z-index: 4; }
  .attendance-month-cell { width: 128px; min-height: 72px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text); font-size: 11px; font-weight: 800; display: grid; gap: 6px; padding: 6px; }
  .attendance-month-cell-times { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
  .attendance-month-cell-times input { width: 100%; min-width: 0; border: 1px solid var(--border); border-radius: 6px; padding: 4px 3px; font-size: 11px; color: var(--text); background: #fff; }
  .attendance-month-cell-actions { display: flex; gap: 4px; }
  .attendance-month-cell-actions button { flex: 1; border: 1px solid rgba(34,197,94,0.35); background: rgba(34,197,94,0.12); color: #166534; border-radius: 6px; padding: 5px 4px; font-size: 11px; font-weight: 800; cursor: pointer; }
  .attendance-month-cell-actions button.clear { border-color: rgba(239,68,68,0.28); background: rgba(239,68,68,0.08); color: #991b1b; }
  .attendance-month-cell.worked { background: rgba(34,197,94,0.12); border-color: rgba(34,197,94,0.4); color: #166534; }
  .attendance-month-cell.absent { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.35); color: #991b1b; }
  .attendance-month-cell.planned { background: rgba(245,158,11,0.12); border-color: rgba(245,158,11,0.35); color: #92400e; }
  .attendance-month-cell input:disabled, .attendance-month-cell button:disabled { cursor: not-allowed; opacity: 0.6; }
  .attendance-status { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
  .attendance-status.auto_approved, .attendance-status.approved { background: rgba(34,197,94,0.12); color: var(--green); }
  .attendance-status.pending_review { background: rgba(234,179,8,0.16); color: #a16207; }
  .attendance-status.rejected { background: rgba(239,68,68,0.12); color: var(--red); }
  .attendance-status.present, .attendance-status.present_now { background: rgba(34,197,94,0.12); color: var(--green); }
  .attendance-status.late, .attendance-status.early_leave { background: rgba(234,179,8,0.16); color: #a16207; }
  .attendance-status.absent { background: rgba(239,68,68,0.12); color: var(--red); }
  .attendance-status.checked_in { background: rgba(34,197,94,0.12); color: var(--green); }
  .attendance-status.checked_out { background: rgba(15,23,42,0.08); color: var(--muted); }
  .attendance-status.not_synced_yet, .attendance-status.not_due { background: rgba(15,23,42,0.08); color: var(--muted); }
  .attendance-empty { color: var(--muted); font-size: 14px; padding: 14px 0; }
  .attendance-capture { position: fixed; inset: 0; background: rgba(15,23,42,0.96); z-index: 4000; display: none; flex-direction: column; }
  .attendance-capture.show { display: flex; }
  .attendance-capture-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; color: #fff; }
  .attendance-capture-head h3 { margin: 0; font-size: 20px; }
  .attendance-capture-close { border: 1px solid rgba(255,255,255,0.2); background: transparent; color: #fff; border-radius: 999px; width: 38px; height: 38px; font-size: 20px; cursor: pointer; }
  .attendance-capture-stage { flex: 1; display: flex; align-items: center; justify-content: center; padding: 16px; }
  .attendance-capture-frame { position: relative; width: min(100%, 440px); aspect-ratio: 3 / 4; border-radius: 20px; overflow: hidden; background: #000; }
  .attendance-capture-video,
  .attendance-capture-canvas { width: 100%; height: 100%; object-fit: cover; }
  .attendance-capture-foot { padding: 16px; color: #fff; }
  .attendance-capture-msg { min-height: 20px; font-size: 14px; margin-bottom: 14px; text-align: center; }
  .attendance-capture-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
  .attendance-capture-actions button { border: none; border-radius: 999px; padding: 14px 20px; font-size: 15px; font-weight: 800; cursor: pointer; }
  .attendance-capture-actions .capture { background: var(--green); color: #fff; }
  .attendance-capture-actions .retry { background: #fff; color: var(--text); }
  .attendance-capture-actions .submit { background: var(--brand-500); color: #fff; }
  .attendance-capture-actions .cancel { background: rgba(255,255,255,0.14); color: #fff; border: 1px solid rgba(255,255,255,0.2); }

  @media (max-width: 768px) {
    .se-login-wrap { align-items: flex-start; padding: 14px; background: #f7f5ef; }
    .se-login-card { padding: 24px; }
    .se-login-hero h1 { font-size: 30px; }
    .se-login-hero p { font-size: 15px; }
    .se-login-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .chart-grid { grid-template-columns: 1fr; }
    .kpi-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .kpi-value { font-size: var(--type-kpi); }
    .view { padding: 10px; }
    .overview-grid { grid-template-columns: 1fr; gap: 12px; }
    .month-card { padding: 16px; }
    .month-card h3 { font-size: var(--type-title); }
    .flag { padding: 12px; }
    .flag-icon { font-size: 28px; min-width: 28px; }
    .flag-title { font-size: var(--type-body); }
    .flag-desc { font-size: var(--type-small); }
    .chart-card { padding: 14px; }
    .chart-card h3 { font-size: var(--type-title); }
    .back-btn { font-size: var(--type-control); padding: 6px 12px; }
    h2 { font-size: var(--type-section); }
    .se-form-row { grid-template-columns: 1fr; }
    .se-admin-summary { grid-template-columns: 1fr; }
    .se-split-grid { grid-template-columns: 1fr; }
    .pay-table-wrap { display: none; }
    .pay-mobile-list { display: grid; }
    .staff-users-grid,
    .staff-users-grid.two { grid-template-columns: 1fr; }
    .attendance-queue-body { grid-template-columns: 1fr; }
    .attendance-thumb { width: 100%; height: 220px; }
  }
  @media (max-width: 480px) {
    .se-topbar { align-items: flex-start; gap: 8px; padding: 12px; }
    .se-topbar h2 { font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .se-topbar-right { gap: 6px; flex-wrap: nowrap; }
    .se-topbar-right .se-logout-btn { padding: 6px 9px; font-size: 13px; }
    .se-topbar-right #seCorrBtn { width: 38px; overflow: hidden; font-size: 0; }
    .se-topbar-right #seCorrBtn::before { content: "✏️"; font-size: 14px; }
    .kpi-row { grid-template-columns: 1fr 1fr; gap: 8px; }
    .kpi-card { padding: 12px; }
    .kpi-label { font-size: var(--type-label); }
    .kpi-value { font-size: 22px; }
    .kpi-sub { font-size: var(--type-meta); }
    .summary-cards { grid-template-columns: 1fr 1fr; }
    .summary-val { font-size: 21px; }
    .se-summary { grid-template-columns: 1fr 1fr; gap: 8px; }
    .pay-search-input { min-width: 100%; }
    .pay-staff-grid { grid-template-columns: 1fr; }
    .staff-admin-overview,
    .staff-admin-policy-grid,
    .staff-admin-main-grid,
    .staff-admin-settings-grid { grid-template-columns: 1fr; }
    .staff-admin-policy-card { grid-template-columns: 1fr; }
    .staff-admin-list-tools { width: 100%; margin-left: 0; }
    .staff-admin-list-tools input { width: 100%; min-width: 0; }
    .staff-users-card { max-width: calc(100vw - 32px); padding: 14px; }
    .staff-users-layout,
    .staff-users-grid,
    .staff-users-grid.two { width: 100%; max-width: 100%; }
    .staff-users-table-wrap { margin-left: -2px; margin-right: -2px; padding-bottom: 8px; }
    .attendance-action-row,
    .attendance-mini-grid { grid-template-columns: 1fr; }
  }
  .role-chairman .kpi-card { font-size: 18px; }
  .role-chairman .kpi-card h3 { font-size: 28px; }
  .role-chairman .bottom-nav-item { font-size: 13px; min-width: 80px; }
  .role-chairman .bottom-nav-item .nav-icon { font-size: 24px; }

  /* ===== MOBILE SURFACE ===== */
  :root {
    --brand-500: #1B4F8A;
    --brand-600: #164273;
    --brand-700: #0f2f54;
    --brand-400: #3a6fab;
    --brand-100: #e6eef7;
    --brand-50: #f4f7fb;
    --ink-900: #0f141a;
    --ink-800: #1f2a35;
    --ink-700: #384655;
    --ink-600: #5b6b7a;
    --ink-500: #7a8a99;
    --ink-400: #a0adb8;
    --ink-300: #c8d0d8;
    --ink-200: #e3e8ed;
    --ink-100: #eff2f5;
    --ink-50: #f7f9fb;
    --paper: #ffffff;
    --ok-500: #1f9d55;
    --ok-100: #e4f5ea;
    --warn-500: #d99017;
    --warn-100: #fbefd6;
    --flag-500: #c6302b;
    --flag-100: #fbe3e1;
    --info-500: #2778c4;
    --info-100: #dfecf7;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --type-display: 30px;
    --type-title: 22px;
    --type-body: 16px;
    --type-sm: 15px;
    --type-xs: 13px;
    --fs-sans: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --fs-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
    --shadow-sm: 0 1px 2px rgba(15,20,26,0.06), 0 1px 1px rgba(15,20,26,0.04);
    --shadow-md: 0 6px 20px rgba(15,20,26,0.08), 0 2px 6px rgba(15,20,26,0.05);
    --shadow-lg: 0 20px 50px rgba(15,20,26,0.18);
  }
  body.mobile-os {
    font-family: var(--fs-sans);
    background: var(--ink-50);
    color: var(--ink-900);
  }
  body.mobile-os .mono,
  body.mobile-os .tnum,
  body.mobile-os .summary-val,
  body.mobile-os .entry-amount,
  body.mobile-os .kpi-val,
  body.mobile-os .overview-comp-big,
  body.mobile-os .watch-card-amount,
  body.mobile-os .room-id {
    font-family: var(--fs-mono);
    font-variant-numeric: tabular-nums;
  }
  body.mobile-os .nav-tab,
  body.mobile-os .bottom-nav,
  body.mobile-os #topHeader,
  body.mobile-os .footer,
  body.mobile-os #subviewPills,
  body.mobile-os #connStatus,
  body.mobile-os #syncStatus {
    display: none !important;
  }
  body.mobile-os .view {
    padding: 0;
  }
  .mobile-shell {
    min-height: 100dvh;
    max-width: 820px;
    margin: 0 auto;
    background: var(--ink-50);
    color: var(--ink-900);
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }
  .mobile-shell.mobile-shell-no-nav {
    padding-bottom: 20px;
  }
  .mobile-topbar {
    position: sticky;
    top: 0;
    z-index: 25;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: calc(12px + env(safe-area-inset-top)) 16px 14px;
    background: rgba(255,255,255,0.92);
    border-bottom: 1px solid var(--ink-200);
    backdrop-filter: blur(18px);
  }
  .mobile-topbar-brand {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--ink-200);
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .mobile-topbar-brand img { width: 100%; height: 100%; object-fit: contain; display: block; }
  .mobile-topbar-copy {
    min-width: 0;
    flex: 1;
  }
  .mobile-topbar-copy .eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-500);
  }
  .mobile-topbar-copy h2 {
    font-size: 20px;
    line-height: 1.15;
    color: var(--ink-900);
    margin: 3px 0 0;
  }
  .mobile-topbar-copy p {
    font-size: 12px;
    color: var(--ink-600);
    margin: 4px 0 0;
  }
  .mobile-topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }
  .mobile-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--ink-200);
    background: var(--paper);
    color: var(--ink-700);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
  .mobile-offline-bar {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--warn-100);
    color: var(--warn-500);
    font-size: 13px;
    font-weight: 700;
    border-bottom: 1px solid rgba(0,0,0,0.04);
  }
  .mobile-offline-bar.syncing {
    background: var(--info-100);
    color: var(--info-500);
  }
  .mobile-offline-bar.show {
    display: flex;
  }
  .mobile-shell-body {
    padding: 12px 12px calc(92px + env(safe-area-inset-bottom));
  }
  .mobile-eyebrow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-500);
    margin-bottom: 8px;
  }
  .mobile-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--ink-100);
    border-radius: 14px;
    padding: 12px 14px;
  }
  .mobile-search input {
    flex: 1;
    border: 0;
    background: transparent;
    color: var(--ink-900);
    font-size: 15px;
    outline: none;
    font-family: inherit;
  }
  .mobile-chip-row,
  .mobile-segment-row {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(27,79,138,0.35) transparent;
    padding-bottom: 4px;
  }
  .mobile-chip-row::-webkit-scrollbar,
  .mobile-segment-row::-webkit-scrollbar {
    height: 4px;
  }
  .mobile-chip-row::-webkit-scrollbar-thumb,
  .mobile-segment-row::-webkit-scrollbar-thumb {
    background: rgba(27,79,138,0.35);
    border-radius: 999px;
  }
  .mobile-chip,
  .mobile-filter-btn,
  .mobile-segment-btn {
    border: 1px solid var(--ink-200);
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink-700);
    min-height: 38px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
  }
  .mobile-chip.active,
  .mobile-filter-btn.active,
  .mobile-segment-btn.active {
    background: var(--brand-500);
    color: #fff;
    border-color: var(--brand-500);
  }
  .mobile-chip-count {
    margin-left: 6px;
    opacity: 0.72;
  }
  .mobile-primary-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
  }
  .mobile-primary-actions.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .mobile-primary-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 13px 12px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    box-shadow: var(--shadow-md);
    transition: transform 0.08s;
    min-height: 78px;
  }
  .mobile-primary-btn:active { transform: scale(0.97); }
  .mobile-primary-btn.ci { background: var(--brand-500); color: #fff; }
  .mobile-primary-btn.co { background: var(--ink-900); color: #fff; }
  .mobile-primary-icon { font-size: 20px; line-height: 1; }
  .mobile-primary-label { font-size: 16px; font-weight: 700; letter-spacing: 0; }
  .mobile-primary-sub { font-size: 11px; opacity: 0.85; }
  @media (max-width: 720px) {
    .mobile-primary-actions.four { grid-template-columns: 1fr 1fr; }
  }
  .se-list-btn {
    display: block; text-align: left; width: 100%;
    padding: 14px 16px; border-radius: 12px;
    background: var(--paper); border: 1px solid var(--ink-200);
    font-family: inherit; font-size: 15px; color: var(--ink-900);
    cursor: pointer;
  }
  .se-list-btn:active { background: var(--ink-100); }
  .mobile-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 12px;
  }
  .mobile-stat-card {
    background: var(--paper);
    border: 1px solid var(--ink-200);
    border-radius: 12px;
    padding: 10px;
    box-shadow: var(--shadow-sm);
  }
  .mobile-stat-card .k {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-500);
    margin-bottom: 4px;
  }
  .mobile-stat-card .v {
    font-size: 20px;
    line-height: 1.1;
    font-weight: 800;
    color: var(--ink-900);
  }
  .mobile-stat-card .s {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    margin-top: 6px;
    padding: 3px 8px;
    border-radius: 999px;
  }
  .mobile-stat-card .s.ok {
    background: var(--ok-100);
    color: var(--ok-500);
  }
  .mobile-stat-card .s.brand {
    background: var(--brand-100);
    color: var(--brand-500);
  }
  .mobile-stat-card .s.warn {
    background: var(--warn-100);
    color: var(--warn-500);
  }
  .mobile-stat-card .s.flag {
    background: var(--flag-100);
    color: var(--flag-500);
  }
  .mobile-section-card {
    background: var(--paper);
    border: 1px solid var(--ink-200);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 12px;
  }
  .mobile-list-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 12px;
    border-bottom: 1px solid var(--ink-100);
  }
  .mobile-list-row:last-child {
    border-bottom: 0;
  }
  .mobile-list-row .accent {
    width: 4px;
    align-self: stretch;
    border-radius: 999px;
    background: var(--brand-500);
    flex-shrink: 0;
  }
  .mobile-list-row .accent.flag { background: var(--flag-500); }
  .mobile-list-row .accent.warn { background: var(--warn-500); }
  .mobile-list-row .accent.ok { background: var(--green); }
  .mobile-list-copy {
    min-width: 0;
    flex: 1;
  }
  .mobile-list-copy h4 {
    font-size: 13px;
    color: var(--ink-900);
    margin: 0;
  }
  .mobile-list-copy p {
    font-size: 11px;
    color: var(--ink-600);
    margin: 4px 0 0;
    line-height: 1.35;
  }
  .mobile-right-note {
    font-size: 12px;
    font-weight: 700;
    color: var(--ink-900);
    white-space: nowrap;
    flex-shrink: 0;
  }
  .mobile-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
  }
  .mobile-badge.brand { background: var(--brand-100); color: var(--brand-500); }
  .mobile-badge.ok { background: var(--ok-100); color: var(--ok-500); }
  .mobile-badge.warn { background: var(--warn-100); color: var(--warn-500); }
  .mobile-badge.flag { background: var(--flag-100); color: var(--flag-500); }
  .mobile-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: currentColor;
  }
  .mobile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
  }
  .mobile-mini-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    background: var(--ink-100);
    color: var(--ink-700);
  }
  .mobile-room-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    margin-top: 6px;
  }
  .mobile-room-tile {
    border: 0;
    border-radius: 10px;
    padding: 8px 4px;
    text-align: center;
    cursor: pointer;
    font-family: inherit;
    position: relative;
  }
  .mobile-room-tile .num {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.1;
  }
  .mobile-room-tile .label {
    font-size: 9px;
    opacity: 0.8;
    margin-top: 2px;
  }
  .mobile-room-tile.has-issue::after {
    content: '';
    position: absolute;
    top: 5px;
    right: 5px;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--warn-500);
  }
  .porter-check-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--ink-100);
  }
  .porter-check-row:last-child { border-bottom: 0; }
  .porter-check-row label { font-size: 14px; font-weight: 700; color: var(--ink-800); }
  .porter-check-row button {
    border: 1px solid var(--ink-200);
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink-600);
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
  }
  .porter-check-row button.active.ok { background: var(--ok-100); color: var(--ok-500); border-color: rgba(34,197,94,0.25); }
  .porter-check-row button.active.bad { background: var(--flag-100); color: var(--flag-500); border-color: rgba(239,68,68,0.25); }
  .readiness-pill { display:inline-flex;align-items:center;border-radius:999px;padding:3px 8px;font-size:11px;font-weight:800;border:1px solid var(--ink-200); }
  .readiness-pill.dirty { background:var(--ink-100);color:var(--ink-600); }
  .readiness-pill.ready { background:var(--ok-100);color:var(--ok-500); }
  .readiness-pill.blocked { background:var(--flag-100);color:var(--flag-500); }
  .readiness-pill.needs_check { background:var(--warn-100);color:var(--warn-500); }
  .readiness-pill.occupied { background:rgba(59,130,246,.12);color:#2563eb;border-color:rgba(59,130,246,.24); }
  .mobile-room-floor {
    margin-bottom: 12px;
  }
  .mobile-room-floor-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    padding: 0 2px;
  }
  .mobile-room-floor-head h4 {
    font-size: 13px;
    color: var(--ink-800);
    margin: 0;
  }
  .mobile-room-floor-head span {
    font-size: 11px;
    color: var(--ink-500);
  }
  .mobile-form-card {
    background: var(--paper);
    border: 1px solid var(--ink-200);
    border-radius: 12px;
    padding: 12px;
    box-shadow: var(--shadow-sm);
  }
  .mobile-form-head {
    margin-bottom: 10px;
  }
  .mobile-form-head h3 {
    font-size: 18px;
    color: var(--ink-900);
    margin: 0;
  }
  .mobile-form-head p {
    font-size: 12px;
    color: var(--ink-600);
    margin: 5px 0 0;
  }
  .mobile-primary-btn.submit {
    width: 100%;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px 12px;
    gap: 2px;
  }
  .mobile-primary-btn.submit .mobile-primary-label {
    width: 100%;
    text-align: center;
  }
  .mobile-primary-btn.submit .mobile-primary-sub {
    width: 100%;
    text-align: center;
    line-height: 1.15;
  }
  .mobile-field {
    margin-bottom: 10px;
  }
  .mobile-field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--ink-700);
    margin-bottom: 6px;
  }
  .mobile-field input,
  .mobile-field select,
  .mobile-field textarea,
  .mobile-search-select {
    width: 100%;
    border: 1px solid var(--ink-200);
    border-radius: 12px;
    background: var(--paper);
    color: var(--ink-900);
    padding: 11px 12px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
  }
  .mobile-field textarea {
    min-height: 120px;
    line-height: 1.45;
    resize: vertical;
  }
  .mobile-field input::placeholder,
  .mobile-field textarea::placeholder,
  .mobile-search-select::placeholder {
    color: #94a3b8;
    font-weight: 400;
    font-style: italic;
    opacity: 0.7;
  }
  .reception-entry-shell {
    display: grid;
    gap: 16px;
  }
  .reception-console-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
    gap: 12px;
    align-items: start;
  }
  .reception-console-main,
  .reception-console-side {
    min-width: 0;
  }
  .reception-queue-card .mobile-list-row {
    min-height: 74px;
  }
  .reception-queue-btn {
    display: block;
  }
  .reception-money-note {
    font-size: 12px;
    line-height: 1.4;
    color: var(--ink-600);
    background: var(--ink-100);
    border: 1px solid var(--ink-200);
    border-radius: 12px;
    padding: 10px 12px;
    margin: -4px 0 12px;
  }
  .reception-section-card {
    background: var(--paper);
    border: 1px solid var(--ink-200);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
  }
  .reception-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px 0;
  }
  .reception-section-head h4 {
    margin: 0;
    font-size: 14px;
    color: var(--ink-900);
  }
  .reception-section-head p {
    margin: 0;
    font-size: 12px;
    color: var(--ink-500);
  }
  .reception-section-body {
    padding: 10px 12px 12px;
  }
  .reception-section-card .mobile-field:last-child {
    margin-bottom: 0;
  }
  .reception-section-card .se-field {
    margin-bottom: 10px;
  }
  .reception-section-card .se-field:last-child {
    margin-bottom: 0;
  }
  .reception-section-card .se-field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--ink-700);
    margin-bottom: 6px;
  }
  .reception-section-card .se-field input,
  .reception-section-card .se-field select,
  .reception-section-card .se-field textarea {
    width: 100%;
    border: 1px solid var(--ink-200);
    border-radius: 12px;
    background: var(--paper);
    color: var(--ink-900);
    padding: 11px 12px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
  }
  .reception-section-card .se-field textarea {
    min-height: 120px;
    line-height: 1.45;
    resize: vertical;
  }
  .reception-section-body > input,
  .reception-section-body > textarea {
    width: 100%;
    border: 1px solid var(--ink-200);
    border-radius: 12px;
    background: var(--paper);
    color: var(--ink-900);
    padding: 11px 12px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
  }
  .reception-section-body > textarea {
    min-height: 140px;
    line-height: 1.45;
    resize: vertical;
  }
  .reception-section-body > input::placeholder,
  .reception-section-body > textarea::placeholder {
    color: #94a3b8;
    font-weight: 400;
    font-style: italic;
    opacity: 0.7;
  }
  .reception-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .reception-form-grid.single {
    grid-template-columns: 1fr;
  }
  .reception-payment-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .reception-balance-card {
    margin-top: 8px;
  }
  .reception-balance-card .v {
    font-size: 22px;
  }
  .reception-balance-card.ok {
    background: var(--ok-100);
    border-color: rgba(31,157,85,0.2);
  }
  .reception-balance-card.flag {
    background: var(--flag-100);
    border-color: rgba(198,48,43,0.18);
  }
  .reception-line-stack {
    display: grid;
    gap: 8px;
  }
  .reception-line-stack .mobile-list-row {
    padding-left: 0;
    padding-right: 0;
  }
  .reception-line-stack .mobile-list-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }
  .reception-line-stack .mobile-list-row:first-child {
    padding-top: 0;
  }
  .reception-line-input {
    width: 108px;
    flex-shrink: 0;
  }
  .reception-line-input input {
    width: 100%;
    border: 1px solid var(--ink-200);
    border-radius: 12px;
    background: var(--paper);
    color: var(--ink-900);
    padding: 11px 12px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    text-align: right;
  }
  .reception-inline-note {
    margin-top: 8px;
    font-size: 12px;
    color: var(--ink-500);
  }
  .reception-inline-note input,
  .reception-inline-note select {
    width: 100%;
    border: 1px solid var(--ink-200);
    border-radius: 12px;
    background: var(--paper);
    color: var(--ink-900);
    padding: 13px 12px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
  }
  .reception-form-actions {
    display: grid;
    gap: 10px;
  }
  .reception-form-actions .se-btn {
    width: 100%;
  }
  .reception-modal-list {
    background: var(--paper);
    border: 1px solid var(--ink-200);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-top: 14px;
  }
  .reception-list-btn {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 0;
    text-align: left;
    font-family: inherit;
    cursor: pointer;
  }
  .reception-list-btn .mobile-list-row {
    min-height: 72px;
  }
  .reception-list-btn .mobile-right-note {
    white-space: normal;
    text-align: right;
  }
  .reception-modal-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
  }
  .reception-modal-actions {
    display: grid;
    gap: 10px;
    margin-top: 14px;
  }
  .reception-modal-actions .se-btn,
  .reception-modal-actions .mobile-primary-btn {
    width: 100%;
  }
  .reception-muted-copy {
    font-size: 12px;
    color: var(--ink-600);
    margin-top: 4px;
  }
  .reception-room-select-note {
    margin-top: 8px;
    font-size: 12px;
    color: var(--ink-500);
  }
  .reception-kpi-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    background: var(--ink-100);
    color: var(--ink-700);
  }
  @media (max-width: 480px) {
    .reception-console-layout {
      grid-template-columns: 1fr;
    }
    .reception-section-head {
      display: grid;
      gap: 5px;
      padding: 16px 16px 0;
    }
    .reception-section-head h4 {
      font-size: 18px;
      line-height: 1.15;
    }
    .reception-section-head p {
      font-size: 13px;
      line-height: 1.35;
    }
    .reception-form-grid,
    .reception-payment-grid {
      grid-template-columns: 1fr;
    }
    .reception-line-input {
      width: 100%;
    }
  }
  .mobile-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .mobile-pay-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .mobile-pay-card {
    border: 1px solid var(--ink-200);
    border-radius: 12px;
    background: var(--paper);
    padding: 10px;
  }
  .mobile-pay-card label {
    font-size: 11px;
    font-weight: 700;
    color: var(--ink-700);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 5px;
  }
  .mobile-pay-card input {
    width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    font-size: 18px;
    font-weight: 800;
    color: var(--ink-900);
    outline: none;
    font-family: var(--fs-mono);
  }
  .mobile-pay-summary {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--ink-100);
    color: var(--ink-700);
    font-size: 12px;
    font-weight: 700;
  }
  .mobile-pay-summary.ok {
    background: var(--ok-100);
    color: var(--ok-500);
  }
  .mobile-pay-summary.warn {
    background: var(--warn-100);
    color: var(--warn-500);
  }
  .mobile-pay-summary.flag {
    background: var(--flag-100);
    color: var(--flag-500);
  }
  .mobile-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
  }
  .mobile-btn {
    border: 1px solid var(--brand-500);
    background: var(--brand-500);
    color: #fff;
    border-radius: 14px;
    padding: 13px 16px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
  .mobile-btn.full {
    width: 100%;
  }
  .mobile-btn.secondary {
    background: var(--paper);
    color: var(--ink-700);
    border-color: var(--ink-200);
  }
  .mobile-btn.warn {
    background: var(--flag-500);
    border-color: var(--flag-500);
  }
  .mobile-btn:disabled {
    opacity: 0.45;
    cursor: default;
  }
  .mobile-empty {
    padding: 34px 20px;
    text-align: center;
    background: var(--paper);
    border: 1px solid var(--ink-200);
    border-radius: 16px;
    color: var(--ink-600);
    font-size: 14px;
  }
  .mobile-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 820px;
    margin: 0 auto;
    z-index: 30;
    display: flex;
    gap: 4px;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--ink-200);
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(18px);
  }
  .mobile-tabbar button {
    flex: 1;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--ink-500);
    padding: 10px 4px;
    min-height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
  }
  .mobile-tabbar button.active {
    background: var(--brand-100);
    color: var(--brand-500);
  }
  .mobile-approval-card {
    background: var(--paper);
    border: 1px solid var(--ink-200);
    border-radius: 16px;
    padding: 14px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 12px;
  }
  .mobile-approval-card h4 {
    font-size: 15px;
    color: var(--ink-900);
    margin: 0;
  }
  .mobile-approval-card p {
    font-size: 12px;
    color: var(--ink-600);
    line-height: 1.45;
    margin: 7px 0 0;
  }
  .mobile-shortcuts {
    display: grid;
    gap: 10px;
  }
  .mobile-shortcut {
    background: var(--paper);
    border: 1px solid var(--ink-200);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
  }
  .mobile-shortcut-copy h4 {
    font-size: 15px;
    color: var(--ink-900);
    margin: 0;
  }
  .mobile-shortcut-copy p {
    font-size: 12px;
    color: var(--ink-600);
    margin: 5px 0 0;
  }
  .mobile-kicker {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-500);
    margin-bottom: 8px;
  }
  .mobile-desktop-card {
    display: none;
  }
  @media (max-width: 1023px) {
    body.mobile-os {
      font-size: 16px;
    }
    body.mobile-os .view#view-rooms,
    body.mobile-os .view#view-auditflags,
    body.mobile-os .view#view-staffusers {
      padding: 14px;
      background: var(--ink-50);
    }
    body.mobile-os .view#view-rooms h2,
    body.mobile-os .view#view-auditflags h2,
    body.mobile-os .view#view-staffusers h2 {
      font-size: 22px !important;
      margin-bottom: 12px !important;
      color: var(--ink-900) !important;
    }
    body.mobile-os .summary-cards {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
    }
    body.mobile-os .summary-card,
    body.mobile-os .staff-users-card,
    body.mobile-os .chart-card,
    body.mobile-os .card,
    body.mobile-os .task-column,
    body.mobile-os .watch-card {
      border-radius: 16px;
      box-shadow: var(--shadow-sm);
      border-color: var(--ink-200);
    }
    body.mobile-os .staff-users-grid,
    body.mobile-os .staff-users-grid.two,
    body.mobile-os .staff-users-actions,
    body.mobile-os .task-filter-row {
      gap: 8px;
    }
    body.mobile-os .staff-users-table {
      min-width: 640px;
    }
    body.mobile-os .room-grid {
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 6px;
    }
    body.mobile-os .room-chip {
      padding: 10px 4px;
      border-radius: 12px;
    }
    body.mobile-os .room-chip .room-id {
      font-size: 15px;
    }
    body.mobile-os .room-chip .room-type,
    body.mobile-os .room-chip .room-issues,
    body.mobile-os .watch-note,
    body.mobile-os .watch-card-meta {
      font-size: 11px;
    }
    body.mobile-os .watch-card-title {
      font-size: 14px;
    }
    body.mobile-os .watch-card-amount {
      font-size: 18px;
    }
  }
  @media (max-width: 480px) {
    .mobile-row,
    .mobile-stat-grid,
    body.mobile-os .summary-cards {
      grid-template-columns: 1fr;
    }
    .mobile-room-grid,
    body.mobile-os .room-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }

  /* ===== DIRECTOR CONSOLE SURFACE ===== */
  :root {
    --director-bg: #F6F8FB;
    --director-paper: #FFFFFF;
    --director-ink-900: #0E1720;
    --director-ink-800: #1A2633;
    --director-ink-700: #24313D;
    --director-ink-600: #3A4754;
    --director-ink-500: #4C5A66;
    --director-ink-400: #6B7785;
    --director-line: #E2E8F0;
    --director-border: #E2E8F0;
    --director-accent: #2254A3;
    --director-blue: #2254A3;
    --director-brass: #B15E24;
    --director-ok: #2A6F3F;
    --director-ok-bg: #E6EEE4;
    --director-warn: #B87333;
    --director-warn-bg: #FEF3E5;
    --director-flag: #C6302B;
    --director-flag-bg: #FBE3E1;
    --director-info: #1E40AF;
    --director-info-bg: #DCE6F0;
    --director-shadow: 0 16px 44px rgba(14, 23, 32, 0.08);
    --director-shadow-soft: 0 8px 24px rgba(14, 23, 32, 0.06);
    --soft-shadow: 0 8px 24px rgba(14, 23, 32, 0.06);
    --director-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'General Sans', sans-serif;
    --director-display: 'Gambarino', Georgia, serif;
  }

  body.surface-director {
    background:
      linear-gradient(90deg, rgba(34,84,163,0.035) 1px, transparent 1px),
      linear-gradient(180deg, rgba(34,84,163,0.035) 1px, transparent 1px),
      linear-gradient(180deg, #f9fbff 0%, var(--director-bg) 42%, #eef3f8 100%);
    background-size: 36px 36px, 36px 36px, auto;
    color: var(--director-ink-700);
    font-family: var(--director-sans);
    font-size: 16px;
    padding: 0;
  }
  body.surface-director .view {
    display: none;
    padding: 116px 28px 36px 272px;
  }
  body.surface-director #view-recon,
  body.surface-director #view-sales,
  body.surface-director #view-cashpos,
  body.surface-director #view-auditflags,
  body.surface-director #view-discounts,
  body.surface-director #view-credits,
  body.surface-director #view-expenses,
  body.surface-director #view-procurement,
  body.surface-director #view-command,
  body.surface-director #view-rooms,
  body.surface-director #view-folios,
  body.surface-director #view-shifts,
  body.surface-director #view-deposits,
  body.surface-director #view-laundry,
  body.surface-director #view-maintenance,
  body.surface-director #view-resources,
  body.surface-director #view-tasks,
  body.surface-director #view-assets,
  body.surface-director #view-dailyreports,
  body.surface-director #view-attendancequeue,
  body.surface-director #view-attendancedash,
  body.surface-director #view-staffentry,
  body.surface-director #view-barrecon,
  body.surface-director #view-staffusers,
  body.surface-director #view-rosters,
  body.surface-director #view-website,
  body.surface-director #view-devices {
    padding-top: 164px;
  }
  body.surface-director #view-folios {
    overflow-x: hidden;
  }
  body.surface-director #view-folios .director-ops-shell,
  body.surface-director #folioList,
  body.surface-director #folioSecondary {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  body.surface-director .view.active {
    display: block;
  }
  body.surface-director #topHeader,
  body.surface-director #subviewPills,
  body.surface-director #bottomNav,
  body.surface-director #connStatus,
  body.surface-director #syncStatus,
  body.surface-director #pageFooter {
    display: none !important;
  }
  body.surface-director .card,
  body.surface-director .chart-card,
  body.surface-director .kpi-card,
  body.surface-director .summary-card,
  body.surface-director .overview-alert-card,
  body.surface-director .overview-ratio-card,
  body.surface-director .expense-review-card,
  body.surface-director .task-column,
  body.surface-director .task-card,
  body.surface-director .watch-grid .card,
  body.surface-director .watch-grid .chart-card,
  body.surface-director .attendance-queue-card,
  body.surface-director .attendance-punch-card,
  body.surface-director .staff-users-card,
  body.surface-director .attendance-form,
  body.surface-director .attendance-panel,
  body.surface-director .attendance-empty,
  body.surface-director .pay-flag-card,
  body.surface-director .director-paper {
    background: var(--director-paper);
    border: 1px solid var(--director-line);
    border-radius: 18px;
    box-shadow: var(--director-shadow-soft);
  }
  body.surface-director h2,
  body.surface-director h3,
  body.surface-director .overview-block-title,
  body.surface-director .detail-section h2,
  body.surface-director .flags-section h2 {
    color: var(--director-ink-900);
  }
  body.surface-director .director-shell {
    display: block;
  }
  .director-shell {
    display: none;
  }
  .director-backdrop {
    display: none;
  }
  .director-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 240px;
    background:
      linear-gradient(180deg, #0E1720 0%, #16283A 48%, #101722 100%);
    color: rgba(255,255,255,0.9);
    z-index: 70;
    display: flex;
    flex-direction: column;
    box-shadow: 24px 0 44px rgba(14, 23, 32, 0.18);
  }
  .director-sidebar-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 18px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .director-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .director-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }
  .director-brand-copy {
    min-width: 0;
    flex: 1;
  }
  .director-brand-kicker,
  .director-kicker,
  .director-section-kicker {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 12px;
    font-weight: 700;
  }
  .director-brand-kicker {
    color: rgba(255,255,255,0.58);
    margin-bottom: 4px;
  }
  .director-brand-copy h1,
  .director-heading h2,
  .director-view-head h3,
  .director-hero-card h3 {
    font-family: var(--director-display);
    font-weight: 400;
    letter-spacing: 0.01em;
  }
  .director-brand-copy h1 {
    font-size: 27px;
    line-height: 1;
    color: #fff;
  }
  .director-sidebar-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 14px 12px 18px;
  }
  .director-nav-group {
    display: grid;
    gap: 6px;
  }
  .director-nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(255,255,255,0.72);
    border-radius: 16px;
    padding: 12px 14px 12px 18px;
    text-align: left;
    font: inherit;
    cursor: pointer;
  }
  .director-nav-item::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 999px;
    background: transparent;
  }
  .director-nav-item.active {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-color: rgba(30,64,175,0.2);
  }
  .director-nav-item.active::before {
    background: var(--director-brass);
  }
  .director-nav-icon {
    width: 26px;
    text-align: center;
    flex-shrink: 0;
    font-size: 20px;
    line-height: 1;
  }
  .director-nav-copy {
    min-width: 0;
    flex: 1;
  }
  .director-nav-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
  }
  .director-nav-note {
    display: block;
    color: rgba(255,255,255,0.6);
    font-size: 12px;
    margin-top: 3px;
  }
  .director-sidebar-foot {
    margin-top: 14px;
  }
  .director-drawer-tools {
    display: grid;
    gap: 10px;
    margin-top: 12px;
  }
  .director-foot-card {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 14px;
    background: rgba(255,255,255,0.05);
  }
  .director-foot-label {
    color: rgba(255,255,255,0.45);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 6px;
  }
  .director-foot-value {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
  }
  .director-topbar {
    position: fixed;
    top: 0;
    left: 240px;
    right: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 24px;
    background: rgba(249,251,255,0.96);
    border-bottom: 1px solid var(--director-line);
    backdrop-filter: blur(18px);
  }
  .director-topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
  }
  /* LIVE badge */
  .director-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(34,197,94,.12);
    border: 1px solid rgba(34,197,94,.25);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    color: #15803d;
    flex-shrink: 0;
  }
  .director-live-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #22c55e;
    animation: livePulse 2s ease-in-out infinite;
    flex-shrink: 0;
  }
  @keyframes livePulse {
    0%,100% { opacity: 1; transform: scale(1); }
    50% { opacity: .5; transform: scale(.8); }
  }
  .director-topbar-title {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--director-ink-900);
    white-space: nowrap;
  }
  .director-topbar-datetime {
    font-size: 12px;
    color: var(--director-ink-500);
    white-space: nowrap;
  }
  /* topbar search */
  .director-topbar-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid var(--director-line);
    border-radius: 999px;
    background: var(--director-bg);
    font-size: 13px;
    color: var(--director-ink-500);
    cursor: pointer;
    min-width: 180px;
    flex-shrink: 0;
    font: inherit;
    text-align: left;
  }
  .director-topbar-search kbd {
    font-size: 10px;
    background: var(--director-line);
    padding: 1px 5px;
    border-radius: 4px;
    margin-left: auto;
    color: var(--director-ink-600);
  }
  /* topbar icon btn */
  .director-topbar-icon {
    position: relative;
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--director-line);
    background: var(--director-paper);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    font-family: inherit;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    color: var(--director-ink-700);
  }
  .director-topbar-icon-badge {
    position: absolute;
    top: -2px; right: -2px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    border: 1.5px solid #fff;
  }
  /* Current shift card in sidebar */
  .director-shift-card {
    margin: 12px 10px 0;
    padding: 12px 14px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    flex-shrink: 0;
  }
  .director-shift-card-head {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px;
  }
  .director-shift-label {
    font-size: 10px; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; color: rgba(255,255,255,.5);
  }
  .director-shift-dot {
    width: 7px; height: 7px; border-radius: 50%; background: #22c55e;
    animation: livePulse 2s ease-in-out infinite;
  }
  .director-shift-name {
    font-size: 13px; font-weight: 700; color: #fff; line-height: 1.2;
  }
  .director-shift-role {
    font-size: 11px; color: rgba(255,255,255,.55); margin-top: 2px;
  }
  .director-shift-time {
    font-size: 11px; color: rgba(255,255,255,.4); margin-top: 6px;
  }
  /* Action queue right rail */
  .cs-action-queue {
    position: fixed;
    top: 57px; right: 0; bottom: 0;
    width: 260px;
    background: var(--director-paper);
    border-left: 1px solid var(--director-line);
    display: flex; flex-direction: column;
    z-index: 40;
    overflow: hidden;
  }
  .cs-action-queue-head {
    padding: 14px 16px;
    border-bottom: 1px solid var(--director-line);
    display: flex; align-items: center; justify-content: space-between;
  }
  .cs-action-queue-head h4 { margin: 0; font-size: 13px; font-weight: 700; }
  .cs-action-queue-badge {
    background: #ef4444; color: #fff;
    font-size: 10px; font-weight: 800;
    padding: 2px 6px; border-radius: 999px;
  }
  .cs-action-queue-body { flex: 1; overflow-y: auto; padding: 8px 0; }
  .cs-action-item {
    padding: 10px 16px;
    border-bottom: 1px solid var(--director-line);
    cursor: pointer;
  }
  .cs-action-item:last-child { border-bottom: 0; }
  .cs-action-item-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
  .cs-action-item-title { font-size: 13px; font-weight: 600; color: var(--director-ink-800); line-height: 1.3; flex: 1; }
  .cs-action-item-time { font-size: 11px; color: var(--director-ink-400); white-space: nowrap; flex-shrink: 0; }
  .cs-action-item-meta { font-size: 12px; color: var(--director-ink-500); margin-top: 3px; }
  .cs-action-priority { display: inline-block; padding: 1px 7px; border-radius: 999px; font-size: 10px; font-weight: 700; margin-top: 4px; }
  .cs-action-priority.high { background: rgba(239,68,68,.1); color: #b91c1c; }
  .cs-action-priority.medium { background: rgba(234,179,8,.1); color: #92400e; }
  .cs-action-priority.low { background: rgba(34,197,94,.1); color: #15803d; }
  .cs-handover-widget {
    padding: 12px 16px;
    border-top: 1px solid var(--director-line);
    background: rgba(37,99,235,.04);
  }
  .cs-handover-title { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--director-ink-500); margin-bottom: 4px; }
  .cs-handover-window { font-size: 13px; font-weight: 700; color: var(--director-blue); }
  .cs-handover-timer { font-size: 22px; font-weight: 800; color: var(--director-ink-900); font-variant-numeric: tabular-nums; margin: 4px 0; }
  .cs-handover-meta { font-size: 11px; color: var(--director-ink-400); }
  /* Adjust main content when action queue visible */
  body.surface-director.show-action-queue .director-topbar { right: 260px; }
  body.surface-director.show-action-queue .director-subnav { right: 260px; }
  body.surface-director.show-action-queue .view.active { margin-right: 260px; }
  @media (max-width: 1200px) {
    .cs-action-queue { display: none !important; }
    body.surface-director.show-action-queue .director-topbar,
    body.surface-director.show-action-queue .director-subnav { right: 0; }
    body.surface-director.show-action-queue .view.active { margin-right: 0 !important; }
  }
  .director-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 10px 4px 4px;
    border-radius: 999px;
    background: var(--director-paper);
    border: 1px solid var(--director-line);
    min-height: 42px;
    font: inherit;
    cursor: pointer;
    color: inherit;
  }
  button.director-user { appearance: none; }
  .director-heading { min-width: 0; }
  .director-heading h2 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .director-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--director-accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
  }
  .director-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
  }
  .director-user-copy { line-height: 1.1; min-width: 0; }
  .director-user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--director-ink-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
  }
  .director-user-role {
    font-size: 11px;
    color: var(--director-ink-500);
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }
  .director-profile-panel {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: flex;
    justify-content: flex-end;
    background: rgba(15, 23, 42, .22);
  }
  .director-profile-card {
    width: min(420px, calc(100vw - 24px));
    height: 100%;
    background: var(--director-paper);
    border-left: 1px solid var(--director-line);
    box-shadow: -18px 0 40px rgba(15, 23, 42, .16);
    padding: 22px;
    overflow-y: auto;
  }
  .director-profile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
  }
  .director-profile-head h3 { margin: 0; font-size: 24px; }
  .director-profile-avatar {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: var(--director-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 24px;
    overflow: hidden;
    margin-bottom: 12px;
  }
  .director-profile-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
  .director-profile-card label { display:block; margin: 14px 0 6px; color: var(--director-ink-500); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
  .director-profile-card input,
  .director-profile-card textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--director-line);
    border-radius: 10px;
    padding: 11px 12px;
    background: rgba(255,255,255,.75);
    color: var(--director-ink-900);
    font: inherit;
  }
  .director-profile-card textarea { min-height: 92px; resize: vertical; }
  .director-profile-meta { color: var(--director-ink-500); line-height: 1.45; font-size: 14px; margin-bottom: 10px; }
  .director-search-panel {
    position: fixed;
    inset: 0;
    z-index: 1450;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 86px 18px 18px;
    background: rgba(15, 23, 42, .24);
  }
  .director-search-card {
    width: min(760px, 100%);
    max-height: min(720px, calc(100vh - 120px));
    background: var(--director-paper);
    border: 1px solid var(--director-line);
    border-radius: 14px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .22);
    overflow: hidden;
  }
  .director-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    border-bottom: 1px solid var(--director-line);
  }
  .director-search-box input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    font: inherit;
    font-size: 17px;
    color: var(--director-ink-900);
    background: transparent;
  }
  .director-search-results {
    padding: 10px;
    overflow-y: auto;
    max-height: calc(min(720px, 100vh - 120px) - 62px);
  }
  .director-search-row {
    width: 100%;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    padding: 10px 12px;
    display: grid;
    grid-template-columns: 86px 1fr auto;
    gap: 12px;
    align-items: center;
    text-align: left;
    font: inherit;
    color: var(--director-ink-900);
    cursor: pointer;
  }
  .director-search-row:hover {
    background: rgba(37, 99, 235, .06);
    border-color: rgba(37, 99, 235, .18);
  }
  .director-search-kind {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--director-ink-500);
  }
  .director-search-title {
    font-weight: 800;
    line-height: 1.25;
  }
  .director-search-meta {
    color: var(--director-ink-500);
    font-size: 12px;
    margin-top: 2px;
  }
  .director-search-empty {
    padding: 24px 14px;
    color: var(--director-ink-500);
    text-align: center;
  }
  @media (max-width: 768px) {
    .director-user-copy { display: none; }
    .director-search-panel { padding-top: 72px; }
    .director-search-row {
      grid-template-columns: 1fr;
      gap: 4px;
    }
  }
  .director-topbar-right,
  .director-inline-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
  }
  .app-date-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid var(--director-line, var(--border));
    border-radius: 999px;
    background: var(--director-paper, var(--card));
    color: var(--director-ink-700, var(--text2));
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
  }
  .director-heading h2 {
    font-size: 38px;
    line-height: 0.95;
    color: var(--director-ink-900);
    margin: 2px 0 6px;
  }
  .director-heading p,
  .director-view-head p,
  .director-hero-card p {
    color: var(--director-ink-600);
    font-size: 15px;
    margin: 0;
  }
  .director-kicker,
  .director-section-kicker {
    color: var(--director-accent);
  }
  .director-sync-pill,
  .director-action-btn,
  .director-preview-select,
  .director-date-input {
    border-radius: 999px;
    border: 1px solid var(--director-line);
    background: var(--director-paper);
    color: var(--director-ink-700);
    font: inherit;
    font-size: 15px;
    padding: 12px 18px;
  }
  .director-sync-pill {
    background: var(--director-info-bg);
    color: var(--director-info);
    border-color: rgba(27,79,138,0.18);
    font-weight: 600;
  }
  .director-action-btn {
    cursor: pointer;
    font-weight: 600;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: normal;
    line-height: 1.15;
    text-align: center;
  }
  .director-action-primary {
    background: var(--director-accent);
    border-color: var(--director-accent);
    color: #fff;
  }
  .director-preview-select {
    min-width: 160px;
  }
  .director-subnav {
    position: fixed;
    top: 104px;
    left: 240px;
    right: 0;
    z-index: 55;
    padding: 0 18px 10px;
    background: linear-gradient(to bottom, rgba(249,251,255,0.96), rgba(249,251,255,0.72), rgba(249,251,255,0));
  }
  .director-subnav-scroll {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    max-width: 100%;
    padding-bottom: 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(27,79,138,0.35) transparent;
  }
  .director-subnav-scroll::-webkit-scrollbar {
    height: 4px;
  }
  .director-subnav-scroll::-webkit-scrollbar-thumb {
    background: rgba(27,79,138,0.35);
    border-radius: 999px;
  }
  .director-subnav-btn,
  .director-text-btn,
  .director-icon-btn {
    font: inherit;
  }
  .director-subnav-btn {
    border: 1px solid var(--director-line);
    background: rgba(255,255,255,0.78);
    color: var(--director-ink-600);
    border-radius: 999px;
    padding: 8px 10px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
  }
  .director-subnav-btn.active {
    border-color: rgba(30,64,175,0.22);
    background: rgba(30,64,175,0.1);
    color: var(--director-accent);
  }
  .director-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid var(--director-line);
    background: var(--director-paper);
    color: var(--director-ink-700);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
  .director-sidebar-close,
  .director-menu-btn {
    display: none;
  }
  .director-view-head,
  .director-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    flex-wrap: wrap;
  }
  .director-hero-grid,
  .director-two-col {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 18px;
    margin-bottom: 18px;
  }
  .director-kpi-grid,
  .director-mini-kpis {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .director-hero-card,
  .director-paper,
  .director-team-card,
  .director-stream-card {
    padding: 20px;
  }
  .director-filter-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
  }
  .director-filter-row select,
  .director-filter-row input,
  .director-filter-row button {
    border-radius: 999px;
    border: 1px solid var(--director-line);
    background: var(--director-paper);
    color: var(--director-ink-700);
    padding: 10px 14px;
    font: inherit;
  }
  .director-stream {
    display: grid;
    gap: 12px;
  }
  .director-stream-card {
    display: grid;
    gap: 10px;
    border-left: 4px solid var(--director-line);
  }
  .director-stream-card.ok { border-left-color: var(--director-ok); background: var(--director-ok-bg); }
  .director-stream-card.warn { border-left-color: var(--director-warn); background: var(--director-warn-bg); }
  .director-stream-card.flag { border-left-color: var(--director-flag); background: var(--director-flag-bg); }
  .director-stream-card.info { border-left-color: var(--director-info); background: var(--director-info-bg); }
  /* today control surface */
  .cs-kpi-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 16px; }
  .cs-kpi-cell { background: var(--director-paper); border: 1px solid var(--director-line); border-radius: 12px; padding: 12px 14px; }
  .cs-kpi-cell .k { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--director-ink-500); margin-bottom: 4px; }
  .cs-kpi-cell .v { font-size: 20px; font-weight: 800; color: var(--director-ink-900); font-variant-numeric: tabular-nums; }
  .cs-kpi-cell .d { font-size: 11px; color: var(--director-ink-400); margin-top: 2px; }
  .cs-kpi-cell.highlight { border-color: rgba(37,99,235,.25); background: rgba(37,99,235,.04); }
  .cs-kpi-cell.warn { border-color: rgba(239,68,68,.25); background: rgba(239,68,68,.04); }
  .cs-three-col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 16px; }
  .cs-panel { background: var(--director-paper); border: 1px solid var(--director-line); border-radius: 14px; overflow: hidden; }
  .cs-panel-head { padding: 12px 16px; border-bottom: 1px solid var(--director-line); display: flex; justify-content: space-between; align-items: center; }
  .cs-panel-head h4 { margin: 0; font-size: 13px; font-weight: 700; color: var(--director-ink-800); }
  .cs-panel-head a { font-size: 12px; color: var(--director-blue); text-decoration: none; }
  .cs-panel-body { padding: 12px 16px; }
  .cs-audit-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--director-line); font-size: 13px; }
  .cs-audit-row:last-child { border-bottom: 0; }
  .cs-audit-label { color: var(--director-ink-600); }
  .cs-audit-value { font-weight: 700; color: var(--director-ink-900); font-variant-numeric: tabular-nums; }
  .cs-audit-value.red { color: var(--director-flag); }
  .cs-audit-value.green { color: var(--director-ok); }
  .cs-audit-meta { font-size: 11px; color: var(--director-ink-400); margin-top: 8px; }
  .cs-proof-banner { border: 1px solid rgba(180,138,60,.25); background: rgba(180,138,60,.08); color: var(--director-ink-700); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; font-size: 12px; line-height: 1.35; }
  .cs-ledger-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--director-line); overflow-x: auto; margin-bottom: 0; }
  .cs-ledger-tab { padding: 8px 14px; font-size: 12px; font-weight: 600; color: var(--director-ink-500); border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
  .cs-ledger-tab.active { color: var(--director-blue); border-bottom-color: var(--director-blue); }
  .cs-ledger-table { width: 100%; border-collapse: collapse; font-size: 13px; }
  .cs-ledger-table th { text-align: left; padding: 7px 10px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--director-ink-500); border-bottom: 1px solid var(--director-line); background: var(--director-bg); }
  .cs-ledger-table td { padding: 7px 10px; border-bottom: 1px solid var(--director-line); color: var(--director-ink-800); vertical-align: middle; }
  .cs-ledger-table tr:last-child td { border-bottom: 0; }
  .cs-ledger-table td.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
  .cs-ledger-cards { display: none; padding: 10px; gap: 8px; }
  .cs-ledger-card { border: 1px solid var(--director-line); border-radius: 10px; padding: 10px; background: var(--director-paper); }
  .cs-ledger-card-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
  .cs-ledger-card-title { font-size: 13px; font-weight: 700; color: var(--director-ink-900); line-height: 1.25; }
  .cs-ledger-card-meta { font-size: 11px; color: var(--director-ink-500); margin-top: 4px; }
  .cs-ledger-card-amount { font-weight: 700; color: var(--director-ink-900); white-space: nowrap; }
  .cs-type-badge { display: inline-block; padding: 2px 7px; border-radius: 99px; font-size: 10px; font-weight: 700; text-transform: uppercase; }
  .cs-type-badge.sale { background: rgba(34,197,94,.12); color: #15803d; }
  .cs-type-badge.comp { background: rgba(249,115,22,.12); color: #c2410c; }
  .cs-type-badge.expense { background: rgba(239,68,68,.12); color: #b91c1c; }
  .cs-type-badge.deposit { background: rgba(37,99,235,.12); color: #1d4ed8; }
  .cs-type-badge.debt { background: rgba(234,179,8,.12); color: #92400e; }
  .cs-type-badge.other { background: rgba(148,163,184,.12); color: var(--director-ink-500); }
  @media (max-width: 1100px) { .cs-kpi-strip { grid-template-columns: repeat(4, 1fr); } .cs-three-col { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 700px) {
    .cs-kpi-strip { grid-template-columns: repeat(2, 1fr); }
    .cs-three-col { grid-template-columns: 1fr; }
    .cs-ledger-table { display: none; }
    .cs-ledger-cards { display: grid; }
  }
  /* 9-check scorecard */
  .audit-scorecard { border: 1px solid var(--director-border); border-radius: 12px; overflow: hidden; margin: 14px 0; }
  .audit-scorecard-head { padding: 12px 16px; background: var(--director-bg); font-weight: 700; font-size: 13px; color: var(--director-ink-600); display: flex; justify-content: space-between; align-items: center; }
  .audit-check-row { display: flex; align-items: center; gap: 10px; padding: 9px 16px; border-top: 1px solid var(--director-border); font-size: 14px; }
  .audit-check-icon { font-size: 16px; min-width: 20px; text-align: center; }
  .audit-check-label { flex: 1; color: var(--director-ink-800); }
  .audit-check-detail { font-size: 12px; color: var(--director-ink-500); }
  .audit-check-badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
  .audit-check-badge.pass { background: rgba(34,197,94,.12); color: #15803d; }
  .audit-check-badge.warn { background: rgba(234,179,8,.14); color: #92400e; }
  .audit-check-badge.fail { background: rgba(239,68,68,.12); color: #b91c1c; }
  .audit-check-badge.skip { background: rgba(148,163,184,.12); color: var(--director-ink-500); }
  .director-stream-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
  }
  .director-stream-title {
    color: var(--director-ink-900);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
  }
  .director-stream-meta,
  .director-meta-pill,
  .director-muted {
    color: var(--director-ink-500);
    font-size: 13px;
  }
  .director-stream-amount {
    font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, 'JetBrains Mono', monospace;
    font-variant-numeric: tabular-nums;
    color: var(--director-ink-900);
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
  }
  .director-meta-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }
  .director-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    background: rgba(14,23,32,0.05);
    padding: 6px 10px;
  }
  .director-kpi-card {
    border: 1px solid var(--director-line);
    border-radius: 18px;
    background: var(--director-paper);
    padding: 18px;
    box-shadow: var(--director-shadow-soft);
  }
  .director-kpi-label {
    color: var(--director-ink-600);
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 10px;
  }
  .director-kpi-value {
    color: var(--director-ink-900);
    font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, 'JetBrains Mono', monospace;
    font-variant-numeric: tabular-nums;
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
  }
  .director-kpi-value-action {
    border: 0;
    background: transparent;
    padding: 0;
    text-align: left;
    cursor: pointer;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .director-kpi-note {
    color: var(--director-ink-600);
    font-size: 14px;
    margin-top: 8px;
  }
  .director-proof-banner {
    border: 1px solid rgba(180,138,60,0.24);
    background: rgba(180,138,60,0.08);
    color: var(--director-ink-700);
    border-radius: 18px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.45;
  }
  .director-composer {
    width: 100%;
    min-height: 380px;
    border: 1px solid var(--director-line);
    border-radius: 18px;
    background: #fff;
    color: var(--director-ink-700);
    padding: 18px;
    font: inherit;
    line-height: 1.6;
    resize: vertical;
    margin-top: 12px;
  }
  .director-log-list,
  .director-team-grid {
    display: grid;
    gap: 12px;
  }
  .director-team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .director-team-card {
    display: grid;
    gap: 12px;
    align-content: start;
  }
  .director-team-photo,
  .director-team-initials {
    width: 116px;
    height: 116px;
    border-radius: 50%;
    border: 1px solid rgba(14,23,32,0.08);
    box-shadow: 0 14px 34px rgba(14,23,32,0.12);
  }
  .director-team-photo {
    object-fit: cover;
    object-position: center 22%;
  }
  .director-team-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--director-accent);
    color: #fff;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 0.04em;
  }
  .director-team-card h4 {
    color: var(--director-ink-900);
    font-size: 22px;
    margin-bottom: 4px;
  }
  .director-team-card .director-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 14px;
    border: 1px solid rgba(14,23,32,0.08);
  }
  .director-role-badge.owner { background: rgba(30,64,175,0.2); color: #6e5515; }
  .director-role-badge.admin { background: rgba(27,79,138,0.12); color: var(--director-info); }
  .director-role-badge.chairman { background: rgba(42,111,63,0.12); color: var(--director-ok); }
  .director-role-badge.auditor { background: rgba(30,64,175,0.12); color: var(--director-accent); }
  .director-text-btn {
    border: 0;
    background: transparent;
    color: var(--director-accent);
    cursor: pointer;
    padding: 0;
    font-weight: 600;
  }
  .director-table-cards {
    display: none;
  }
  .director-table-card {
    border: 1px solid var(--director-line);
    border-radius: 18px;
    background: var(--director-paper);
    padding: 16px;
    display: grid;
    gap: 10px;
    box-shadow: var(--director-shadow-soft);
  }
  .director-table-card-row {
    display: grid;
    gap: 4px;
  }
  .director-table-card-key {
    color: var(--director-ink-500);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  .director-table-card-value {
    color: var(--director-ink-900);
    font-size: 14px;
    line-height: 1.45;
  }
  .director-ops-shell {
    display: grid;
    gap: 18px;
    min-width: 0;
  }
  .director-ops-shell > * {
    min-width: 0;
  }
  .director-ops-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
  }
  .director-ops-head h2 {
    margin: 0;
  }
  .director-ops-note {
    color: var(--director-ink-600);
    font-size: 16px;
    margin: 6px 0 0;
  }
  .director-ops-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(14,23,32,0.04);
    color: var(--director-ink-600);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .director-ops-section {
    display: grid;
    gap: 12px;
    min-width: 0;
  }
  .director-ops-story {
    border: 1px solid rgba(34,84,163,0.12);
    border-radius: 24px;
    background: linear-gradient(135deg, #fff 0%, #F8FAFF 56%, #F2F6FA 100%);
    box-shadow: var(--director-shadow);
    padding: 22px;
    display: grid;
    gap: 16px;
  }
  .director-ops-story-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
  }
  .director-ops-story h3 {
    margin: 0;
    color: var(--director-ink-900);
    font-family: var(--director-display);
    font-size: 32px;
    font-weight: 400;
    line-height: 1;
  }
  .director-ops-story p {
    margin: 7px 0 0;
    color: var(--director-ink-600);
    font-size: 15px;
    max-width: 720px;
    line-height: 1.5;
  }
  .director-ops-story-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }
  .director-ops-story-card {
    border-radius: 18px;
    border: 1px solid rgba(14,23,32,0.07);
    background: rgba(255,255,255,0.82);
    padding: 16px;
  }
  .director-ops-story-label {
    color: var(--director-ink-500);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 8px;
  }
  .director-ops-story-value {
    color: var(--director-ink-900);
    font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, 'JetBrains Mono', monospace;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
  }
  .director-ops-story-note {
    color: var(--director-ink-600);
    font-size: 13px;
    margin-top: 8px;
    line-height: 1.35;
  }
  .director-ops-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
  }
  .director-ops-section-head h3 {
    margin: 0;
    font-size: 24px;
  }
  .director-ops-section-head p {
    margin: 4px 0 0;
    color: var(--director-ink-500);
    font-size: 14px;
  }
  .director-ops-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .director-ops-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 8px 12px;
    min-height: 32px;
    max-width: 100%;
    background: rgba(14,23,32,0.05);
    color: var(--director-ink-600);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.15;
    white-space: normal;
    overflow-wrap: anywhere;
    cursor: default;
  }
  a.director-ops-chip,
  button.director-ops-chip {
    cursor: pointer;
  }
  .director-ops-chip.flag {
    background: rgba(163,46,46,0.12);
    color: var(--director-flag);
  }
  .director-ops-chip.warn {
    background: rgba(184,115,51,0.12);
    color: var(--director-warn);
  }
  .director-ops-chip.ok {
    background: rgba(42,111,63,0.12);
    color: var(--director-ok);
  }
  .director-ops-chip.brass {
    background: rgba(30,64,175,0.16);
    color: #7a5c15;
  }
  .director-ops-grid {
    display: grid;
    gap: 12px;
  }
  .director-ops-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .director-ops-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .folio-stay-control-grid {
    grid-template-columns: 1fr;
  }
  .folio-stay-control .director-line-list {
    border: 1px solid var(--director-line);
    border-radius: 14px;
    background: var(--director-paper);
    overflow: hidden;
  }
  .folio-stay-control .director-line-row {
    padding: 11px 12px;
  }
  .director-ops-list {
    display: grid;
    gap: 12px;
  }
  .director-ops-list.compact-list {
    max-height: 560px;
    overflow: auto;
    padding-right: 2px;
  }
  .director-ops-empty {
    border: 1px dashed var(--director-line);
    border-radius: 18px;
    padding: 18px;
    background: rgba(247,245,239,0.78);
    color: var(--director-ink-500);
    text-align: center;
  }
  .director-pager {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
  }
  .director-pager-meta {
    color: var(--director-ink-500);
    font-size: 12px;
    margin-right: auto;
  }
  .director-pager button {
    border: 1px solid var(--director-line);
    border-radius: 999px;
    background: var(--director-paper);
    color: var(--director-ink-700);
    padding: 7px 12px;
    font: inherit;
    cursor: pointer;
  }
  .director-pager button[disabled] {
    opacity: 0.45;
    cursor: default;
  }
  .director-room-block {
    display: grid;
    gap: 10px;
  }
  .director-room-block-list {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
  }
  .director-room-block-list .collapse-toggle {
    min-height: 46px;
  }
  .director-room-block-summary {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
  }
  .director-room-mini-tile {
    border: 1px solid var(--director-line);
    border-radius: 10px;
    background: var(--director-paper);
    padding: 8px;
    display: grid;
    gap: 4px;
    min-height: 82px;
  }
  .director-room-mini-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
  }
  .director-room-mini-id {
    color: var(--director-ink-900);
    font-size: 18px;
    line-height: 1;
    font-weight: 850;
  }
  .director-room-mini-state {
    border-radius: 999px;
    padding: 3px 6px;
    font-size: 9px;
    font-weight: 850;
    text-transform: uppercase;
    color: var(--director-ink-600);
    background: rgba(148,163,184,.16);
    white-space: nowrap;
  }
  .director-room-mini-title {
    color: var(--director-ink-900);
    font-size: 12px;
    line-height: 1.25;
    font-weight: 750;
  }
  .director-room-mini-meta {
    color: var(--director-ink-500);
    font-size: 11px;
    line-height: 1.25;
  }
  .director-room-mini-tile.ok { background: var(--director-ok-bg); border-color: rgba(42,111,63,0.18); }
  .director-room-mini-tile.warn { background: var(--director-warn-bg); border-color: rgba(184,115,51,0.22); }
  .director-room-mini-tile.flag { background: var(--director-flag-bg); border-color: rgba(163,46,46,0.22); }
  .director-room-mini-tile.brass { background: rgba(30,64,175,0.12); border-color: rgba(30,64,175,0.24); }
  .director-room-mini-tile.flag .director-room-mini-state { background: rgba(163,46,46,0.12); color: var(--director-flag); }
  .director-room-mini-tile.ok .director-room-mini-state { background: rgba(42,111,63,0.12); color: var(--director-ok); }
  .director-room-mini-tile.warn .director-room-mini-state { background: rgba(184,115,51,0.12); color: var(--director-warn); }
  .director-room-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
  }
  .director-room-block-head h4 {
    margin: 0;
    color: var(--director-ink-900);
    font-size: 18px;
  }
  .director-room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(166px, 1fr));
    gap: 12px;
  }
  .director-room-tile {
    border: 1px solid var(--director-line);
    border-left-width: 5px;
    border-radius: 12px;
    background: var(--director-paper);
    padding: 14px 12px;
    display: grid;
    gap: 8px;
    min-height: 144px;
  }
  .director-room-tile.ok {
    background: var(--director-ok-bg);
    border-color: rgba(42,111,63,0.16);
    border-left-color: var(--ok-500);
  }
  .director-room-tile.warn {
    background: var(--director-warn-bg);
    border-color: rgba(184,115,51,0.16);
    border-left-color: var(--warn-500);
  }
  .director-room-tile.flag {
    background: var(--director-flag-bg);
    border-color: rgba(163,46,46,0.18);
    border-left-color: var(--flag-500);
  }
  .director-room-tile.brass {
    background: rgba(30,64,175,0.14);
    border-color: rgba(30,64,175,0.38);
    border-left-color: var(--director-blue);
  }
  .director-room-tile.unavailable {
    border-width: 1px 1px 1px 5px;
    border-color: rgba(184,115,51,0.44);
  }
  .director-room-type {
    color: var(--director-ink-500);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.25;
  }
  .director-room-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
  }
  .director-room-id {
    color: var(--director-ink-900);
    font-size: 28px;
    line-height: 1;
    font-weight: 850;
  }
  .director-room-state {
    color: var(--director-ink-700);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }
  .director-room-note {
    color: var(--director-ink-600);
    font-size: 13px;
    line-height: 1.35;
  }
  .director-room-meta {
    color: var(--director-ink-500);
    font-size: 12px;
    line-height: 1.35;
  }
  .director-room-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: auto;
  }
  .director-room-action-btn {
    border: 1px solid rgba(37,99,235,0.25);
    background: rgba(37,99,235,0.09);
    color: var(--director-blue);
    border-radius: 7px;
    padding: 7px 10px;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
  }
  .director-room-action-btn:hover {
    background: rgba(37,99,235,0.14);
  }
  .director-room-command {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 12px;
  }
  .director-room-lane {
    border: 1px solid var(--director-line);
    border-radius: 12px;
    background: var(--director-paper);
    overflow: hidden;
  }
  .director-room-lane-head {
    padding: 10px 12px;
    border-bottom: 1px solid var(--director-line);
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
  }
  .director-room-lane-head h4 {
    margin: 0 0 4px;
    color: var(--director-ink-900);
    font-size: 15px;
  }
  .director-room-lane-head p {
    margin: 0;
    color: var(--director-ink-500);
    font-size: 12px;
    line-height: 1.35;
  }
  .director-room-lane-count {
    min-width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    color: var(--director-ink-900);
    background: var(--director-bg);
    border: 1px solid var(--director-line);
  }
  .director-room-lane.occupied .director-room-lane-count { background: var(--director-flag-bg); color: var(--flag-500); }
  .director-room-lane.ready .director-room-lane-count { background: var(--director-ok-bg); color: var(--ok-500); }
  .director-room-lane.action .director-room-lane-count { background: var(--director-warn-bg); color: var(--warn-500); }
  .director-room-lane-body {
    padding: 8px;
    display: grid;
    gap: 6px;
    align-content: start;
    max-height: 430px;
    overflow-y: auto;
  }
  .director-room-focus-card {
    border: 1px solid var(--director-line);
    border-radius: 10px;
    background: var(--director-bg);
    padding: 8px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 4px 8px;
    align-items: start;
  }
  .director-room-focus-top {
    display: contents;
  }
  .director-room-focus-id {
    grid-row: 1 / 3;
    color: var(--director-ink-900);
    font-size: 18px;
    font-weight: 850;
    letter-spacing: 0;
    min-width: 42px;
  }
  .director-room-focus-state {
    justify-self: start;
    border-radius: 999px;
    padding: 3px 7px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    background: rgba(148,163,184,.15);
    color: var(--director-ink-600);
    white-space: nowrap;
  }
  .director-room-focus-card.flag .director-room-focus-state { background: var(--director-flag-bg); color: var(--flag-500); }
  .director-room-focus-card.ok .director-room-focus-state { background: var(--director-ok-bg); color: var(--ok-500); }
  .director-room-focus-card.warn .director-room-focus-state { background: var(--director-warn-bg); color: var(--warn-500); }
  .director-room-focus-title {
    grid-column: 2;
    color: var(--director-ink-900);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.25;
  }
  .director-room-focus-meta {
    grid-column: 2;
    color: var(--director-ink-500);
    font-size: 11px;
    line-height: 1.3;
  }
  .director-room-focus-empty {
    border: 1px dashed var(--director-line);
    border-radius: 12px;
    padding: 18px 12px;
    color: var(--director-ink-500);
    font-size: 13px;
    text-align: center;
    background: rgba(255,255,255,.45);
  }
  .director-room-snapshot {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
  }
  .director-room-snapshot-card {
    border: 1px solid var(--director-line);
    border-radius: 10px;
    background: var(--director-paper);
    padding: 10px;
  }
  .director-room-snapshot-card .k {
    color: var(--director-ink-500);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
  }
  .director-room-snapshot-card .v {
    color: var(--director-ink-900);
    font-size: 21px;
    line-height: 1.05;
    font-weight: 850;
    margin-top: 6px;
  }
  .director-room-snapshot-card .s {
    color: var(--director-ink-500);
    font-size: 12px;
    margin-top: 5px;
  }
  .director-maintenance-matrix {
    border: 1px solid var(--director-line);
    border-radius: 12px;
    background: var(--director-paper);
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .director-maintenance-row {
    display: grid;
    grid-template-columns: minmax(150px, 1.25fr) repeat(5, minmax(118px, 1fr));
    min-width: 760px;
    border-bottom: 1px solid var(--director-line);
  }
  .director-maintenance-row:last-child {
    border-bottom: 0;
  }
  .director-maintenance-head {
    background: var(--director-blue);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
  }
  .director-maintenance-head div,
  .director-maintenance-cell,
  .director-maintenance-room-cell {
    padding: 11px 12px;
  }
  .director-maintenance-head div {
    color: #fff;
  }
  .director-maintenance-room-cell {
    color: var(--director-ink-900);
    font-size: 13px;
    font-weight: 800;
  }
  .director-maintenance-room-cell .meta {
    margin-top: 2px;
    color: var(--director-ink-500);
    font-size: 11px;
    font-weight: 650;
  }
  .director-maintenance-cell {
    border-left: 1px solid var(--director-line);
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    color: var(--director-ink-600);
    font-size: 12px;
  }
  .director-maintenance-pill {
    border: 1px solid rgba(42,111,63,0.22);
    border-radius: 6px;
    padding: 5px 8px;
    color: var(--ok-500);
    background: var(--director-ok-bg);
    font-weight: 800;
    white-space: nowrap;
  }
  .director-maintenance-pill.warn {
    border-color: rgba(184,115,51,0.26);
    color: var(--warn-500);
    background: var(--director-warn-bg);
  }
  .director-maintenance-pill.flag {
    border-color: rgba(163,46,46,0.28);
    color: var(--flag-500);
    background: var(--director-flag-bg);
  }
  .director-booking-tools {
    border: 1px solid var(--director-line);
    border-radius: 12px;
    background: var(--director-paper);
    padding: 12px;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
  }
  .director-booking-search {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--director-line);
    border-radius: 8px;
    padding: 10px 12px;
    font: inherit;
    color: var(--director-ink-900);
    background: #fff;
  }
  .director-booking-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .director-booking-table-wrap {
    border: 1px solid var(--director-line);
    border-radius: 12px;
    background: var(--director-paper);
    overflow-x: auto;
  }
  .director-booking-table {
    min-width: 980px;
    width: 100%;
    border-collapse: collapse;
  }
  .director-booking-table th {
    background: var(--director-blue);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 11px 12px;
    text-align: left;
  }
  .director-booking-table td {
    border-bottom: 1px solid var(--director-line);
    color: var(--director-ink-700);
    font-size: 13px;
    padding: 12px;
    vertical-align: top;
  }
  .director-booking-table tr:last-child td {
    border-bottom: 0;
  }
  .director-booking-actions {
    display: grid;
    gap: 6px;
    min-width: 94px;
  }
  .director-booking-action {
    border: 1px solid rgba(37,99,235,0.25);
    border-radius: 7px;
    background: rgba(37,99,235,0.08);
    color: var(--director-blue);
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    padding: 7px 9px;
    cursor: pointer;
  }
  .director-booking-action.warn {
    border-color: rgba(184,115,51,0.28);
    background: var(--director-warn-bg);
    color: var(--warn-500);
  }
  .director-booking-action.flag {
    border-color: rgba(163,46,46,0.28);
    background: var(--director-flag-bg);
    color: var(--flag-500);
  }
  .director-booking-cards {
    display: none;
    gap: 10px;
  }
  .director-booking-card {
    border: 1px solid var(--director-line);
    border-left: 5px solid var(--director-blue);
    border-radius: 12px;
    background: var(--director-paper);
    padding: 13px;
    display: grid;
    gap: 9px;
  }
  .director-booking-card.pending {
    border-left-color: var(--warn-500);
  }
  .director-booking-card.cancelled,
  .director-booking-card.no_show {
    border-left-color: var(--flag-500);
  }
  .director-booking-card-top {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: flex-start;
  }
  .director-booking-card-title {
    color: var(--director-ink-900);
    font-size: 15px;
    font-weight: 850;
    line-height: 1.25;
  }
  .director-booking-card-meta {
    color: var(--director-ink-500);
    font-size: 12px;
    line-height: 1.35;
  }
  .director-booking-money-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
  }
  .director-booking-money-card {
    border: 1px solid var(--director-line);
    border-radius: 10px;
    background: var(--director-paper);
    padding: 10px;
  }
  .director-booking-money-card .k {
    color: var(--director-ink-500);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
  }
  .director-booking-money-card .v {
    color: var(--director-ink-900);
    font-size: 18px;
    font-weight: 850;
    margin-top: 5px;
    word-break: break-word;
  }
  .director-folio-card,
  .director-ops-card {
    padding: 18px;
    border-radius: 20px;
    border: 1px solid var(--director-line);
    background: var(--director-paper);
    box-shadow: var(--director-shadow-soft);
  }
  .director-ops-card.under-audit,
  .director-card-table-item.under-audit {
    background: #f4f5f7;
    border-color: #d6d9de;
    color: var(--director-ink-500);
    box-shadow: none;
  }
  .director-ops-card.under-audit h4,
  .director-card-table-item.under-audit h4 {
    color: var(--director-ink-600);
  }
  .director-folio-card {
    display: grid;
    gap: 12px;
  }
  .director-folio-head,
  .director-ops-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
  }
  .director-folio-head h4,
  .director-ops-card-head h4 {
    margin: 0;
    color: var(--director-ink-900);
    font-size: 20px;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }
  .director-folio-head p,
  .director-ops-card-head p {
    margin: 4px 0 0;
    color: var(--director-ink-500);
    font-size: 13px;
  }
  .director-folio-total {
    color: var(--director-ink-900);
    font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, 'JetBrains Mono', monospace;
    font-size: 20px;
    font-weight: 700;
  }
  .director-stat-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }
  .director-stat-box {
    border: 1px solid rgba(14,23,32,0.06);
    border-radius: 14px;
    padding: 12px;
    background: rgba(255,255,255,0.6);
  }
  .director-stat-box .k {
    color: var(--director-ink-600);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
  }
  .director-stat-box .v {
    color: var(--director-ink-900);
    font-size: 20px;
    font-weight: 700;
  }
  .website-chairman-card {
    border: 1px solid rgba(27,79,138,0.18);
    background: #fff;
  }
  .website-chairman-line {
    color: var(--director-ink-900);
    font-size: 30px;
    line-height: 1.16;
    font-weight: 900;
    margin: 12px 0 10px;
    max-width: 920px;
  }
  .website-chairman-sub {
    color: var(--director-ink-600);
    font-size: 15px;
    line-height: 1.5;
    max-width: 900px;
  }
  .website-range-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 14px 0 18px;
  }
  .website-range-btn {
    border: 1px solid var(--director-line);
    border-radius: 999px;
    background: #fff;
    color: var(--director-ink-700);
    font-weight: 800;
    padding: 9px 14px;
    min-height: 40px;
  }
  .website-range-btn.active {
    background: var(--director-blue);
    border-color: var(--director-blue);
    color: #fff;
  }
  .website-timing-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
  }
  .website-time-card {
    border: 1px solid var(--director-line);
    border-radius: 12px;
    background: #fff;
    padding: 12px;
    min-height: 104px;
  }
  .website-time-label {
    color: var(--director-ink-500);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 8px;
  }
  .website-time-value {
    color: var(--director-ink-900);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.3;
  }
  .website-time-note {
    color: var(--director-ink-500);
    font-size: 12px;
    margin-top: 8px;
  }
  .website-funnel {
    display: grid;
    gap: 10px;
  }
  .website-funnel-step {
    display: grid;
    grid-template-columns: minmax(120px, 190px) 1fr minmax(60px, auto);
    gap: 12px;
    align-items: center;
  }
  .website-funnel-track {
    height: 18px;
    border-radius: 999px;
    background: #e8edf4;
    overflow: hidden;
  }
  .website-funnel-fill {
    min-width: 8px;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #1B4F8A, #D4AF37);
  }
  .website-action-list {
    display: grid;
    gap: 10px;
  }
  .website-action-item {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 10px;
    align-items: start;
    border: 1px solid rgba(14,23,32,0.08);
    border-radius: 14px;
    background: rgba(255,255,255,0.72);
    padding: 12px;
  }
  .website-action-no {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(27,79,138,0.1);
    color: var(--director-blue);
    font-weight: 900;
  }
  .website-event-table-wrap {
    border: 1px solid var(--director-line);
    border-radius: 12px;
    overflow: auto;
    max-height: 460px;
    background: #fff;
  }
  .website-event-table {
    width: 100%;
    min-width: 820px;
    border-collapse: collapse;
  }
  .website-event-table th,
  .website-event-table td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--director-line);
    text-align: left;
    vertical-align: top;
    color: var(--director-ink-700);
    font-size: 13px;
  }
  .website-event-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8fafc;
    color: var(--director-ink-500);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
  }
  @media (max-width: 760px) {
    .website-chairman-line {
      font-size: 24px;
    }
    .website-timing-grid {
      grid-template-columns: 1fr;
    }
    .website-funnel-step {
      grid-template-columns: 1fr;
    }
  }
  .april-close-panel {
    margin-bottom: 18px;
    border-left: 4px solid var(--director-ok);
    background: linear-gradient(180deg, #fff 0%, #f7fbf5 100%);
  }
  .april-close-panel .director-stat-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 14px;
  }
  .april-close-panel .director-stat-box {
    background: #fff;
  }
  .april-close-badge {
    background: rgba(22,101,52,.12);
    color: #166534;
  }
  .audit-preview-message {
    border-style: dashed;
    color: var(--director-ink-600);
    margin-bottom: 18px;
  }
  .audit-close-month-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .audit-close-month-card {
    min-width: 0;
    cursor: pointer;
    padding: 14px;
    border-radius: 14px;
  }
  .audit-close-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
  }
  .audit-close-card-meta span {
    border: 1px solid #E2E8F0;
    border-radius: 999px;
    background: #F8FAFC;
    color: var(--director-ink-700);
    font-size: 12px;
    font-weight: 850;
    padding: 5px 8px;
  }
  .audit-close-progress {
    margin-top: 10px;
    display: grid;
    gap: 5px;
  }
  .audit-close-progress-track {
    height: 6px;
    border-radius: 999px;
    background: rgba(148,163,184,.2);
    overflow: hidden;
  }
  .audit-close-progress-fill {
    height: 100%;
    background: var(--director-accent);
  }
  .audit-close-progress-fill.warn {
    background: var(--director-warn);
  }
  .audit-close-gaps {
    margin-top: 10px;
  }
  .audit-close-gap-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }
  .audit-close-gap {
    max-width: 100%;
    border: 1px solid #DCE4EE;
    border-radius: 999px;
    background: #F8FAFC;
    color: var(--director-ink-600);
    padding: 4px 7px;
    font-size: 11px;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }
  .audit-close-more {
    margin-top: 8px;
  }
  .audit-close-more summary {
    width: fit-content;
    border: 1px solid #DCE4EE;
    border-radius: 999px;
    background: #fff;
    color: var(--director-blue);
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 10px;
    list-style: none;
  }
  .audit-close-more summary::-webkit-details-marker {
    display: none;
  }
  .audit-close-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 10px;
    margin-top: 12px;
  }
  .audit-close-action-group {
    text-align: left;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .audit-close-action-group summary {
    border: 1px solid var(--director-line);
    border-radius: 12px;
    background: var(--director-paper);
    color: var(--director-ink-900);
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
    list-style: none;
    padding: 10px 12px;
    text-transform: uppercase;
  }
  .audit-close-action-group summary::-webkit-details-marker {
    display: none;
  }
  .audit-close-action-list {
    display: grid;
    gap: 0;
    margin-top: 8px;
  }
  .audit-close-action-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: start;
    min-width: 0;
    padding: 8px 0;
    border-top: 1px solid #E2E8F0;
  }
  .audit-close-action-item:first-child {
    border-top: 0;
    padding-top: 0;
  }
  .audit-close-action-text,
  .audit-close-action-text strong,
  .audit-close-action-text .director-muted {
    overflow-wrap: anywhere;
  }
  @media (max-width: 980px) {
    .audit-close-month-list,
    .audit-close-action-grid {
      grid-template-columns: 1fr;
    }
  }
  .director-line-list {
    display: grid;
    gap: 10px;
  }
  .director-line-row {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.8fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(216,208,195,0.64);
  }
  .director-line-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }
  .director-line-row strong {
    color: var(--director-ink-900);
  }
  .director-line-row .meta {
    color: var(--director-ink-500);
    font-size: 12px;
    margin-top: 4px;
  }
  .director-line-row .amount {
    color: var(--director-ink-900);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 15px;
    font-weight: 700;
    text-align: right;
  }
  .director-line-row .status {
    justify-self: end;
  }
  .housekeeping-report-list {
    gap: 0;
  }
  .housekeeping-report-row {
    grid-template-columns: minmax(220px, 1.35fr) minmax(120px, 0.55fr) minmax(180px, 0.85fr);
    align-items: start;
  }
  .housekeeping-report-row .room-list {
    max-width: 560px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .housekeeping-report-row .amount {
    max-width: 360px;
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 13px;
    line-height: 1.35;
  }
  .housekeeping-report-row .amount.ok {
    color: var(--director-ok);
  }
  .housekeeping-report-row .amount.flag {
    color: var(--director-warn);
  }
  .director-line-row-button {
    width: 100%;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
  }
  .director-line-row-button:hover {
    background: rgba(24,42,80,0.04);
  }
  .daily-control-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 12px;
  }
  .daily-control-card {
    display: grid;
    gap: 12px;
  }
  .daily-control-card .director-ops-card-head h4 {
    font-size: 17px;
  }
  .daily-control-meta {
    display: grid;
    gap: 8px;
    color: var(--director-ink-600);
    font-size: 13px;
  }
  .daily-control-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .daily-control-actions .director-action-btn {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    padding: 9px 13px;
    font-size: 13px;
  }
  .daily-control-checks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
    margin-top: 14px;
  }
  .daily-control-check {
    border: 1px solid rgba(14,23,32,0.06);
    border-radius: 14px;
    padding: 12px;
    background: rgba(255,255,255,0.62);
    color: var(--director-ink-700);
    font-size: 13px;
    line-height: 1.35;
  }
  .director-readonly-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    background: rgba(14,23,32,0.06);
    color: var(--director-ink-500);
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }
  .card-lock-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
  }
  .card-lock-action-card {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--director-line);
    background: var(--director-paper);
    box-shadow: var(--director-shadow-soft);
  }
  .card-lock-action-card.flag {
    border-color: rgba(239,68,68,0.28);
    background: rgba(254,242,242,0.72);
  }
  .card-lock-action-card.warn {
    border-color: rgba(217,119,6,0.24);
    background: rgba(255,251,235,0.76);
  }
  .card-lock-action-card strong {
    color: var(--director-ink-900);
    font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, 'JetBrains Mono', monospace;
    font-size: 28px;
    line-height: 1;
  }
  .card-lock-meta-row {
    margin: 14px 0;
  }
  #view-cardlock .director-ops-head {
    padding-top: 14px;
  }
  .director-card-table {
    display: grid;
    gap: 12px;
  }
  .director-card-table-item {
    border: 1px solid var(--director-line);
    border-radius: 18px;
    padding: 16px;
    background: var(--director-paper);
    box-shadow: var(--director-shadow-soft);
    display: grid;
    gap: 10px;
  }
  .director-card-table-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .director-card-table-head h4 {
    margin: 0;
    color: var(--director-ink-900);
    font-size: 18px;
  }
  .director-card-table-meta {
    color: var(--director-ink-500);
    font-size: 12px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }
  .director-card-table-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
  }
  .director-card-table-grid .k {
    color: var(--director-ink-500);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin-bottom: 4px;
  }
  .director-card-table-grid .v {
    color: var(--director-ink-900);
    font-size: 14px;
    line-height: 1.4;
  }
  body.surface-director table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
  }
  body.surface-director th,
  body.surface-director td {
    border-bottom: 1px solid rgba(216,208,195,0.75);
    padding: 10px 8px;
  }
  body.surface-director th {
    background: rgba(14,23,32,0.04);
    color: var(--director-ink-500);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 11px;
    text-align: left;
  }
  body.surface-director td {
    color: var(--director-ink-700);
    text-align: left;
    white-space: normal;
  }
  body.surface-director .month-card,
  body.surface-director .overview-ratio-month,
  body.surface-director .summary-card,
  body.surface-director .task-column,
  body.surface-director .attendance-hero,
  body.surface-director .attendance-shift-card,
  body.surface-director .attendance-summary-card,
  body.surface-director .attendance-device-card,
  body.surface-director .attendance-preview-card {
    border-color: var(--director-line);
    background: var(--director-paper);
    box-shadow: none;
  }
  body.surface-director .month-card:hover,
  body.surface-director .task-card.editable:hover {
    transform: none;
    box-shadow: var(--director-shadow-soft);
    border-color: rgba(30,64,175,0.22);
  }
  body.surface-director .task-btn.primary {
    background: var(--director-accent);
    border-color: var(--director-accent);
  }
  body.surface-director .task-btn,
  body.surface-director .staff-users-btn.primary,
  body.surface-director .attendance-action.primary,
  body.surface-director .attendance-action.approve {
    border-radius: 999px;
  }
  body.surface-director .task-btn,
  body.surface-director .staff-users-btn.secondary,
  body.surface-director .attendance-action,
  body.surface-director .watch-filter-select,
  body.surface-director .task-filter-select,
  body.surface-director .asset-filter-select,
  body.surface-director .sales-filters input[type="date"],
  body.surface-director .attendance-filters select,
  body.surface-director .attendance-form input,
  body.surface-director .attendance-form select,
  body.surface-director .attendance-form textarea,
  body.surface-director .staff-users-card input,
  body.surface-director .staff-users-card select,
  body.surface-director .staff-users-card textarea,
  body.surface-director .pay-search-input {
    border-radius: 14px;
    border: 1px solid var(--director-line);
    background: #fff;
    color: var(--director-ink-700);
  }
  @media (max-width: 1279px) {
    body.surface-director .view {
      padding-left: 248px;
    }
    .director-kpi-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .director-ops-story-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .director-two-col,
    body.surface-director .chart-grid {
      grid-template-columns: 1fr;
    }
  }
  @media (min-width: 768px) and (max-width: 1023px) {
    body.surface-director .view {
      padding-left: 92px;
      padding-top: 112px;
    }
    .director-sidebar {
      width: 64px;
    }
    .director-topbar,
    .director-subnav {
      left: 64px;
    }
    .director-brand-copy,
    .director-nav-copy,
    .director-sidebar-foot {
      display: none;
    }
    .director-sidebar-head {
      justify-content: center;
      padding: 18px 10px;
    }
    .director-nav-item {
      justify-content: center;
      padding: 12px 10px;
    }
    .director-nav-item::before {
      left: 4px;
    }
    .director-team-grid {
      grid-template-columns: 1fr;
    }
  }
	  @media (max-width: 767px) {
	    body.surface-director .view {
	      padding: 128px 16px 28px;
	    }
	    body.surface-director #view-recon,
	    body.surface-director #view-sales,
	    body.surface-director #view-cashpos,
	    body.surface-director #view-auditflags,
	    body.surface-director #view-discounts,
	    body.surface-director #view-credits,
	    body.surface-director #view-expenses,
	    body.surface-director #view-command,
	    body.surface-director #view-rooms,
	    body.surface-director #view-folios,
	    body.surface-director #view-shifts,
	    body.surface-director #view-deposits,
	    body.surface-director #view-laundry,
	    body.surface-director #view-maintenance,
	    body.surface-director #view-resources,
	    body.surface-director #view-tasks,
	    body.surface-director #view-assets,
	    body.surface-director #view-dailyreports,
	    body.surface-director #view-attendancequeue,
	    body.surface-director #view-attendancedash,
	    body.surface-director #view-staffentry,
	    body.surface-director #view-barrecon,
	    body.surface-director #view-staffusers,
	    body.surface-director #view-rosters,
	    body.surface-director #view-website,
	    body.surface-director #view-devices {
	      padding: 180px 16px 28px;
	    }
	    body.surface-director .director-subnav + .view,
	    body.surface-director .view.has-subnav {
	      padding-top: 180px;
	    }
    .director-heading p {
      display: none;
    }
    .director-heading h2 {
      font-size: 26px;
      line-height: 1;
    }
    .director-kicker {
      font-size: 11px;
    }
    .director-sidebar {
      width: min(84vw, 320px);
      transform: translateX(-100%);
      transition: transform 0.2s ease;
    }
    body:not(.director-drawer-open) .director-sidebar {
      display: none;
    }
    body.director-drawer-open .director-sidebar {
      display: flex;
      transform: translateX(0);
      z-index: 90;
    }
    .director-backdrop {
      display: block;
      position: fixed;
      inset: 0 auto 0 0;
      width: 100vw;
      max-width: 100vw;
      background: rgba(14,23,32,0.4);
      z-index: 68;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.2s ease;
    }
    body.director-drawer-open .director-backdrop {
      opacity: 1;
      pointer-events: auto;
      z-index: 85;
    }
    .director-topbar,
    .director-subnav {
      left: 0;
      right: auto;
      width: 100vw;
      max-width: 100vw;
      box-sizing: border-box;
      padding-left: 16px;
      padding-right: 16px;
      overflow: hidden;
    }
    .director-topbar {
      padding-top: calc(12px + env(safe-area-inset-top));
      align-items: flex-start;
      flex-wrap: wrap;
    }
    .director-sidebar-close,
    .director-menu-btn {
      display: inline-flex;
    }
    .director-sync-pill {
      display: none;
    }
    .director-topbar-right {
      width: 100%;
      max-width: 100%;
      justify-content: flex-start;
      margin-left: 0;
      gap: 8px;
      flex-wrap: wrap;
    }
    .director-topbar-search {
      order: -1;
      width: 100%;
      max-width: 100%;
      min-width: 0;
      flex-basis: 100%;
    }
    .director-subnav-scroll {
      max-width: 100%;
      overflow-x: auto;
    }
    .director-topbar-right .director-preview-select {
      display: none !important;
    }
    .director-topbar-right > .director-action-btn:last-child {
      display: none;
    }
    .director-topbar-right .director-user {
      padding: 4px;
    }
    .director-sidebar .director-drawer-tools {
      display: grid;
    }
    .director-drawer-logout {
      background: var(--director-accent);
      color: #fff;
      border-color: var(--director-accent);
      font-size: 15px;
      padding: 12px 18px;
      width: 100%;
    }
    .director-heading h2 {
      font-size: 30px;
    }
    .director-ops-story {
      border-radius: 20px;
      padding: 18px;
    }
    .director-ops-story h3 {
      font-size: 28px;
    }
    .director-export-btn,
    .director-preview-select {
      min-width: 0;
    }
	    .director-hero-grid,
	    .director-kpi-grid,
	    body.surface-director .r-grid-1-2-4,
	    .director-booking-tools,
	    .director-booking-money-strip,
	    .director-two-col,
	    .director-team-grid,
	    .director-room-command,
    .director-room-snapshot,
    body.surface-director .overview-grid,
    body.surface-director .summary-cards,
    body.surface-director .kpi-row,
    body.surface-director .chart-grid,
    body.surface-director .watch-grid,
    body.surface-director .task-board,
    body.surface-director .redeploy-columns,
    body.surface-director .expense-review-grid,
    body.surface-director .attendance-grid,
    body.surface-director .staff-admin-overview,
    body.surface-director .staff-admin-policy-grid,
    body.surface-director .staff-admin-main-grid,
    body.surface-director .staff-admin-settings-grid,
    body.surface-director .staff-users-layout,
    body.surface-director .staff-users-grid,
    .card-lock-action-grid {
      grid-template-columns: 1fr !important;
    }
    body.surface-director .task-column {
      min-width: 0;
    }
    body.surface-director .detail-table-wrap,
    body.surface-director .pay-table-wrap {
      display: none;
    }
    body.surface-director .director-table-cards,
	    body.surface-director .pay-mobile-list {
	      display: grid;
	      gap: 12px;
	      margin-top: 12px;
	    }
	    .director-booking-table-wrap {
	      display: none;
	    }
	    .director-booking-cards {
	      display: grid;
	    }
	    .director-booking-filter-row {
	      justify-content: flex-start;
	    }
    .director-stat-row,
    .director-card-table-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .director-line-row {
      grid-template-columns: 1fr;
    }
    .director-line-row .amount,
    .director-line-row .status {
      justify-self: start;
      text-align: left;
    }
    .director-ops-story-grid {
      grid-template-columns: 1fr;
    }
  }
  @media (max-width: 480px) {
    .director-sidebar {
      width: 100vw;
      max-width: none;
    }
    body.surface-director .view {
      padding: 264px 12px 24px;
    }
    body.surface-director #view-recon,
    body.surface-director #view-sales,
    body.surface-director #view-cashpos,
    body.surface-director #view-auditflags,
    body.surface-director #view-rooms,
    body.surface-director #view-folios,
    body.surface-director #view-shifts,
    body.surface-director #view-deposits,
    body.surface-director #view-laundry,
    body.surface-director #view-maintenance,
    body.surface-director #view-tasks,
    body.surface-director #view-assets,
    body.surface-director #view-dailyreports,
    body.surface-director #view-attendancequeue,
    body.surface-director #view-attendancedash,
    body.surface-director #view-staffentry,
    body.surface-director #view-barrecon,
	    body.surface-director #view-staffusers,
	    body.surface-director #view-rosters,
	    body.surface-director #view-website,
	    body.surface-director #view-devices {
	      padding: 264px 12px 24px;
	    }
    .director-topbar,
    .director-subnav {
      padding-left: 12px;
      padding-right: 12px;
    }
    .director-topbar-left {
      width: 100%;
      flex-wrap: wrap;
      row-gap: 8px;
    }
    .director-topbar-title {
      max-width: calc(100vw - 76px);
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .director-topbar-datetime {
      max-width: calc(100vw - 24px);
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .director-topbar-right {
      justify-content: flex-start;
      overflow: visible;
      flex-wrap: wrap;
      scrollbar-width: thin;
      scrollbar-color: rgba(27,79,138,0.35) transparent;
    }
    .director-topbar-right::-webkit-scrollbar {
      height: 4px;
    }
    .director-topbar-right::-webkit-scrollbar-thumb {
      background: rgba(27,79,138,0.35);
      border-radius: 999px;
    }
    .director-topbar-right > * {
      flex-shrink: 0;
    }
    .director-heading h2 {
      font-size: 25px;
    }
    .director-kicker { display: none; }
    .director-topbar-right .director-action-btn:not(#directorExportBtn) {
      display: none;
    }
    #directorExportBtn {
      width: 42px;
      height: 42px;
      padding: 0;
      font-size: 0;
      flex-shrink: 0;
    }
    #directorExportBtn::before {
      content: "CSV";
      font-size: 12px;
      color: var(--director-ink-700);
      font-weight: 700;
    }
    .director-topbar {
      gap: 10px;
    }
    .director-subnav-btn {
      padding: 8px 12px;
      font-size: 13px;
    }
    body.surface-director .summary-cards,
    body.surface-director .kpi-row,
    .director-kpi-grid,
    .director-stat-row,
    .director-card-table-grid,
    .director-ops-grid.two,
    .director-ops-grid.three,
    .director-room-grid {
      grid-template-columns: 1fr !important;
    }
    body.surface-director .director-paper,
    body.surface-director .director-kpi-card,
    body.surface-director .director-ops-card,
    body.surface-director .director-card-table-item,
    body.surface-director .mobile-section-card,
    body.surface-director .chart-card,
    body.surface-director .card,
    body.surface-director .director-ops-shell,
    body.surface-director .director-ops-head {
      min-width: 0;
      max-width: 100%;
      border-radius: 12px;
    }
    body.surface-director .director-ops-head {
      align-items: flex-start;
    }
    body.surface-director .director-ops-head > div {
      min-width: 0;
      max-width: 100%;
    }
    body.surface-director .director-ops-head .director-action-btn {
      width: 100%;
    }
    body.surface-director .director-paper {
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
    }
    body.surface-director .director-ops-section-head {
      gap: 10px;
      align-items: stretch;
    }
    body.surface-director .director-ops-section-head > div,
    body.surface-director .director-card-table-head > div,
    body.surface-director .director-line-row > div {
      min-width: 0;
    }
    body.surface-director .director-ops-section-head h3,
    body.surface-director .director-ops-section-head p,
    body.surface-director .director-card-table-head h4,
    body.surface-director .director-card-table-meta,
    body.surface-director .director-line-row .meta,
    body.surface-director .director-line-row strong {
      overflow-wrap: anywhere;
    }
    body.surface-director .director-kpi-value,
    body.surface-director .director-folio-total,
    body.surface-director .director-line-row .amount {
      font-size: clamp(18px, 7vw, 28px);
      overflow-wrap: anywhere;
    }
    body.surface-director .director-action-btn,
    body.surface-director .director-booking-action,
    body.surface-director .se-btn-sm {
      min-height: 38px;
      white-space: normal;
    }
    body.surface-director table {
      min-width: 680px;
      font-size: 13px;
    }
    body.surface-director .chart-card canvas {
      height: 240px !important;
      max-height: 240px;
    }
  }
  @media (max-width: 390px) {
    body.surface-director .view,
    body.surface-director #view-recon,
    body.surface-director #view-sales,
    body.surface-director #view-cashpos,
    body.surface-director #view-auditflags,
    body.surface-director #view-rooms,
    body.surface-director #view-folios,
    body.surface-director #view-shifts,
    body.surface-director #view-deposits,
    body.surface-director #view-laundry,
    body.surface-director #view-maintenance,
    body.surface-director #view-tasks,
    body.surface-director #view-assets,
    body.surface-director #view-dailyreports,
    body.surface-director #view-attendancequeue,
    body.surface-director #view-attendancedash,
    body.surface-director #view-staffentry,
    body.surface-director #view-barrecon,
    body.surface-director #view-staffusers,
    body.surface-director #view-rosters,
    body.surface-director #view-website,
    body.surface-director #view-devices {
      padding-left: 10px;
      padding-right: 10px;
    }
    .director-topbar,
    .director-subnav {
      padding-left: 10px;
      padding-right: 10px;
    }
    body.surface-director .director-kpi-card,
    body.surface-director .kpi-card,
    body.surface-director .summary-card,
    body.surface-director .card,
    body.surface-director .chart-card,
    body.surface-director .director-ops-card,
    body.surface-director .director-card-table-item,
    body.surface-director .director-paper {
      padding: 12px;
    }
    body.mobile-os .mobile-disclosure summary {
      align-items: flex-start;
    }
    body.mobile-os .mobile-disclosure-title {
      white-space: normal;
      text-overflow: clip;
      line-height: 1.2;
    }
    .director-heading h2,
    .director-ops-head h2,
    .detail-section h2,
    .flags-section h2 {
      font-size: 22px;
    }
    body.surface-director .director-ops-section-head h3 {
      font-size: 18px;
    }
  }


  /* view headings — Gambarino display */
  .view h2, .director-ops-head h2 {
    font-family: 'Gambarino', Georgia, serif;
    font-weight: 400;
    font-size: 32px;
    letter-spacing: 0.01em;
  }
  .view h3 {
    font-family: 'Gambarino', Georgia, serif;
    font-weight: 400;
  }
  /* 2026 operating surface refresh */
  :root {
    --bg: #F7F9FC;
    --card: #FFFFFF;
    --hover: #F1F5FA;
    --border: #DCE4EE;
    --text: #111827;
    --text2: #243241;
    --muted: #627184;
    --brand-500: #174E86;
    --brand-600: #123F6C;
    --brand-700: #0C2948;
    --brand-100: #E6F0FA;
    --brand-50: #F3F7FC;
    --gold: #B98C2F;
    --green: #16A05D;
    --yellow: #D99416;
    --red: #D83A34;
    --ops-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 12px 30px rgba(16, 24, 40, 0.05);
  }
  body {
    background:
      linear-gradient(180deg, rgba(255,255,255,0.94), rgba(247,249,252,0.98) 260px),
      #F7F9FC;
    color: var(--text2);
    letter-spacing: 0;
  }
  .view { padding: 22px 30px 38px; }
  .director-shell {
    height: 0;
    min-height: 0;
    background: #F7F9FC;
  }
  .director-topbar {
    position: fixed;
    top: 0;
    left: 240px;
    right: 0;
    z-index: 80;
    min-height: 76px;
    padding: 14px 30px;
    background: rgba(255,255,255,0.9);
    border-bottom: 1px solid rgba(220,228,238,0.9);
    backdrop-filter: blur(18px);
    box-shadow: 0 1px 0 rgba(17,24,39,0.02);
  }
  .director-heading h1 {
    font-size: 34px;
    line-height: 1.05;
    letter-spacing: 0;
  }
  .director-kicker,
  .director-section-kicker,
  .summary-label,
  .director-kpi-label,
  .kpi-label {
    color: #526174;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  .director-topbar-right {
    gap: 10px;
  }
  .director-date-pill,
  .director-sync-pill,
  .director-action-btn,
  .director-preview-select,
  .director-user {
    min-height: 44px;
    border-radius: 12px;
    border-color: #D9E2EE;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16,24,40,0.04);
  }
  .director-action-btn {
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
  }
  .director-action-primary,
  .director-action-btn:hover {
    background: var(--brand-500);
    border-color: var(--brand-500);
    color: #fff;
  }
  .director-sync-pill {
    background: #E8F1FB;
    color: var(--brand-500);
    border-color: #C9D9ED;
  }
  .ops-command-shell { padding-top: 4px; }
  .ops-command-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
  }
  .ops-command-title h2 {
    margin: 0;
    color: var(--text);
  }
  .ops-command-title p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
  }
  .ops-command-status {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
  }
  .ops-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(22,160,93,0.12);
  }
  .ops-kpi-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(130px, 1fr));
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card);
    overflow: hidden;
    box-shadow: var(--ops-shadow);
    margin-bottom: 14px;
  }
  .ops-today-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card);
    overflow: hidden;
    box-shadow: var(--ops-shadow);
    margin-bottom: 14px;
  }
  .ops-kpi {
    padding: 18px 18px 16px;
    border-right: 1px solid var(--border);
    min-height: 92px;
  }
  .ops-kpi:last-child { border-right: 0; }
  .ops-kpi-label {
    color: #637083;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.09em;
  }
  .ops-kpi-value {
    margin-top: 8px;
    color: var(--text);
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
  }
  .ops-kpi-note {
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
  }
  .ops-book-banner {
    border: 1px solid rgba(184,115,51,0.28);
    background: rgba(184,115,51,0.08);
    color: var(--director-ink-700);
    border-radius: 12px;
    padding: 10px 12px;
    margin: 12px 0;
    font-size: 12px;
    line-height: 1.35;
  }
  .ops-command-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 14px;
  }
  .ops-command-grid.attention {
    grid-template-columns: 1fr;
  }
  .ops-workspace-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
  }
  .ops-workspace-card {
    min-height: 128px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--ops-shadow);
    padding: 14px;
    text-align: left;
    font: inherit;
    display: grid;
    align-content: space-between;
    gap: 10px;
  }
  .ops-workspace-card.high {
    border-color: rgba(239,68,68,0.28);
    background: #fffafa;
  }
  .ops-workspace-card.warn,
  .ops-workspace-card.medium {
    border-color: rgba(245,158,11,0.3);
    background: #fffdf7;
  }
  .ops-workspace-card.ok {
    border-color: rgba(22,160,93,0.22);
  }
  .ops-workspace-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .ops-workspace-label {
    color: #637083;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }
  .ops-workspace-card strong {
    color: var(--text);
    font-size: 20px;
    line-height: 1.1;
    overflow-wrap: anywhere;
  }
  .ops-workspace-note {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.3;
  }
  .ops-workspace-open {
    justify-self: start;
    min-height: 32px;
    border: 1px solid #D9E2EE;
    border-radius: 8px;
    background: #fff;
    color: var(--brand-600);
    font-size: 12px;
    font-weight: 800;
    padding: 6px 10px;
    cursor: pointer;
  }
  .ops-main-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
  }
  .ops-panel {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card);
    box-shadow: var(--ops-shadow);
    overflow: hidden;
  }
  .ops-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px 10px;
  }
  .ops-panel-head h3 {
    margin: 0;
    color: var(--text);
    font-family: Inter, system-ui, sans-serif;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .ops-panel-head a,
  .ops-panel-head button {
    color: var(--brand-500);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    background: transparent;
    border: 0;
    cursor: pointer;
  }
  .ops-metric-list,
  .ops-action-list { padding: 0 18px 16px; }
  .ops-metric-row,
  .ops-action-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #edf1f6;
  }
  .ops-metric-row:last-child,
  .ops-action-row:last-child { border-bottom: 0; }
  .ops-metric-name,
  .ops-action-title {
    color: var(--text2);
    font-size: 13px;
    font-weight: 700;
  }
  .ops-metric-note,
  .ops-action-note {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
  }
  .ops-metric-value {
    color: var(--text);
    font-size: 14px;
    font-weight: 900;
  }
  .ops-payment-detail {
    margin: 0 0 8px;
    padding: 8px 0;
    border-bottom: 1px solid #edf1f6;
  }
  .ops-payment-detail-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 5px 0;
  }
  .ops-payment-detail-row strong {
    color: var(--text2);
    font-size: 12px;
    line-height: 1.25;
  }
  .ops-payment-detail-row .meta {
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
  }
  .ops-payment-detail-row .amount {
    color: var(--text);
    font-size: 12px;
    font-weight: 900;
  }
  .ops-mini-bar {
    width: 92px;
    height: 7px;
    border-radius: 999px;
    background: #edf1f6;
    overflow: hidden;
  }
  .ops-mini-bar span {
    display: block;
    height: 100%;
    background: var(--green);
  }
  .ops-priority {
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 900;
  }
  .ops-priority.high { background: #fee2e2; color: #b91c1c; }
  .ops-priority.medium { background: #fef3c7; color: #92400e; }
  .ops-priority.low { background: #dcfce7; color: #166534; }
  .ops-ledger-wrap {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card);
    box-shadow: var(--ops-shadow);
    overflow: hidden;
  }
  .ops-ledger-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
  }
  .ops-ledger-table th,
  .ops-ledger-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #edf1f6;
    text-align: left;
    vertical-align: top;
  }
  .ops-ledger-table th {
    color: #637083;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: #f8fafc;
  }
  .ops-ledger-table td { color: var(--text2); }
  .ops-ledger-table tr:last-child td { border-bottom: 0; }
  .ops-ledger-type {
    display: inline-flex;
    border-radius: 999px;
    padding: 3px 7px;
    background: var(--brand-50);
    color: var(--brand-600);
    font-weight: 800;
    font-size: 11px;
  }
  .ops-handover-card {
    margin-top: 14px;
    border: 1px solid rgba(185,140,47,0.35);
    background: linear-gradient(180deg, #fffaf0, #ffffff);
  }
  .ops-handover-time {
    margin: 12px 18px 14px;
    border: 1px solid rgba(185,140,47,0.35);
    border-radius: 10px;
    padding: 12px;
    background: rgba(255,255,255,0.72);
  }
  .ops-handover-time strong {
    display: block;
    margin-top: 4px;
    color: var(--text);
    font-size: 22px;
  }
  .ops-empty-small {
    padding: 18px;
    color: var(--muted);
    font-size: 13px;
  }
  @media (max-width: 1240px) {
    .ops-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ops-today-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ops-workspace-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ops-kpi { border-bottom: 1px solid var(--border); }
    .ops-main-grid { grid-template-columns: 1fr; }
  }
  @media (max-width: 980px) {
    .ops-command-grid { grid-template-columns: 1fr; }
    .ops-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ops-workspace-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 640px) {
    .ops-command-head { display: block; }
    .ops-command-status { margin-top: 12px; }
    .ops-kpi-grid { grid-template-columns: 1fr; }
    .ops-today-strip,
    .ops-workspace-grid { grid-template-columns: 1fr; }
    .ops-kpi { border-right: 0; }
    .ops-ledger-table { min-width: 780px; }
    .ops-ledger-scroll { overflow-x: auto; }
  }
  .director-sidebar {
    background: #07192E;
    border-right: 1px solid rgba(255,255,255,0.08);
  }
  .director-sidebar-head {
    border-bottom-color: rgba(255,255,255,0.08);
  }
  .director-brand-kicker,
  .director-nav-note,
  .director-sidebar-foot {
    color: rgba(255,255,255,0.58);
  }
  .director-brand-copy h2,
  .director-nav-label {
    color: #fff;
  }
  .director-nav-item {
    border-radius: 10px;
    border: 1px solid transparent;
    color: rgba(255,255,255,0.76);
  }
  .director-nav-item.active {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.16);
    box-shadow: inset 3px 0 0 var(--gold);
  }
  .director-subnav {
    position: fixed;
    top: 76px;
    left: 240px;
    right: 0;
    z-index: 70;
    padding: 8px 30px;
    background: rgba(247,249,252,0.92);
    border-bottom: 1px solid rgba(220,228,238,0.9);
    backdrop-filter: blur(14px);
  }
  .director-subnav-scroll {
    gap: 6px;
    max-width: 100%;
    padding-bottom: 4px;
  }
  .director-subnav-btn,
  .nav-tab,
  .subview-pill,
  .filter-chip,
  .task-filter-select,
  .se-type-pill,
  .se-filter-chip,
  .se-tab-btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    border-radius: 10px;
    border-color: #DCE4EE;
    background: #fff;
    color: #526174;
    box-shadow: 0 1px 2px rgba(16,24,40,0.03);
  }
  .director-subnav-btn.active,
  .nav-tab.active,
  .subview-pill.active,
  .filter-chip.active,
  .se-tab-btn.active {
    background: #0F2743;
    border-color: #0F2743;
    color: #fff;
    box-shadow: none;
  }
  .director-ops-shell {
    max-width: 1540px;
    margin: 0 auto;
  }
  .director-ops-head {
    align-items: flex-end;
    margin-bottom: 18px;
  }
  .director-ops-head h2,
  .detail-section h2,
  .flags-section h2 {
    font-size: 30px;
    line-height: 1.1;
    color: var(--text);
    letter-spacing: 0;
  }
  .director-ops-note,
  .overview-block-sub {
    color: #526174;
    font-size: 16px;
    line-height: 1.45;
  }
  .summary-cards,
  .kpi-row {
    gap: 12px;
    margin-bottom: 20px;
  }
  .director-kpi-card,
  .kpi-card,
  .summary-card,
  .card,
  .chart-card,
  .director-ops-card,
  .director-ops-section,
  .director-card-table-item,
  .expense-review-card,
  .task-column,
  .task-card,
  .staff-users-card,
  .attendance-day-card,
  .attendance-queue-card,
  .se-summary-card,
  .se-form-card,
  .folio-card,
  .occupied-folio-card {
    border: 1px solid #DCE4EE;
    border-radius: 12px;
    background: rgba(255,255,255,0.96);
    box-shadow: var(--ops-shadow);
  }
  .director-kpi-card,
  .kpi-card,
  .summary-card {
    padding: 16px 18px;
    text-align: left;
  }
  .director-kpi-value,
  .kpi-value,
  .kpi-val,
  .summary-val {
    color: var(--text);
    font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
    font-size: 27px;
    line-height: 1.05;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
  }
  .director-kpi-note,
  .kpi-sub,
  .summary-sub {
    color: #627184;
    font-size: 14px;
    line-height: 1.35;
  }
  .director-ops-list {
    gap: 10px;
  }
  .director-ops-card {
    padding: 16px;
  }
  .director-ops-card-head {
    align-items: flex-start;
  }
  .director-folio-total,
  .expense-flag-amount {
    font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
  }
  .director-ops-chip,
  .director-readonly-badge,
  .staff-status,
  .attendance-status,
  .task-pill,
  .overview-meta-pill,
  .recon-status-badge,
  .recon-badge,
  .dept-badge {
    border-radius: 999px;
    border: 1px solid rgba(98,113,132,0.18);
    background: #F3F6FA;
    color: #39485A;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
  }
  .director-ops-chip.flag,
  .overview-alert-card.red,
  .expense-flag-row,
  .pay-flag-card.red,
  .attendance-queue-card.overdue {
    border-color: rgba(216,58,52,0.22);
    background: rgba(216,58,52,0.055);
  }
  .director-card-table {
    display: grid;
    gap: 8px;
  }
  .director-card-table-item {
    padding: 14px;
  }
  .director-card-table-grid,
  .director-stat-row,
  .expense-review-grid {
    gap: 8px;
  }
  .director-stat-box,
  .expense-review-stat,
  .se-mini-stat,
  .pay-staff-stat,
  .attendance-mini-card {
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    background: #F8FAFC;
  }
  .collapse-toggle,
  .mobile-disclosure summary {
    border-radius: 10px;
    background: #fff;
    border-color: #DCE4EE;
    font-size: 18px;
    box-shadow: 0 1px 2px rgba(16,24,40,0.04);
  }
  table {
    font-size: 14px;
    border-collapse: separate;
    border-spacing: 0;
  }
  th {
    background: #F5F7FA;
    color: #526174;
    padding: 11px 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: 1px solid #DCE4EE;
  }
  td {
    padding: 11px 10px;
    border-bottom: 1px solid #E8EEF5;
    color: #243241;
  }
  input,
  select,
  textarea,
  .se-field input,
  .se-field select,
  .se-field textarea,
  .staff-users-grid textarea,
  .staff-users-grid input,
  .staff-users-grid select,
  .attendance-filters input,
  .attendance-filters select,
  .attendance-form input,
  .attendance-form select,
  .attendance-form textarea {
    border-radius: 10px;
    border-color: #DCE4EE;
    background: #fff;
    color: var(--text);
    box-shadow: 0 1px 2px rgba(16,24,40,0.03);
  }
  textarea,
  .se-field textarea {
    min-height: 150px;
  }
  .task-board {
    gap: 10px;
  }
  .task-column {
    background: rgba(248,250,252,0.88);
  }
  .task-column-head {
    border-radius: 9px;
  }
  .bottom-nav {
    height: 66px;
    background: rgba(255,255,255,0.94);
    border-top-color: #DCE4EE;
    backdrop-filter: blur(16px);
  }
  .bottom-nav-item {
    border-radius: 12px;
  }
  .bottom-nav-item.active {
    background: #0F2743;
    border-top: 0;
    box-shadow: inset 0 3px 0 var(--gold);
  }
  .se-topbar {
    background: rgba(255,255,255,0.92);
    border-radius: 12px;
    box-shadow: var(--ops-shadow);
  }
  .se-login-wrap {
    background: #07192E;
  }
  .se-login-card {
    border-radius: 16px;
  }
  .se-login-hero {
    background: #0F2743;
  }
  @media (max-width: 900px) {
    .view { padding: 14px 14px 88px; }
    .director-topbar {
      padding: 12px 14px;
      min-height: 68px;
      left: 0;
    }
    .director-subnav {
      top: 68px;
      left: 0;
      padding: 8px 14px;
    }
    .director-heading h1 {
      font-size: 26px;
    }
    .director-ops-head {
      align-items: flex-start;
    }
    .director-ops-head h2 {
      font-size: 25px;
    }
  }
  @media (max-width: 767px) {
    body.surface-director .view {
      padding: 198px 16px 28px;
    }
    body.surface-director .director-subnav + .view,
    body.surface-director .view.has-subnav {
      padding-top: 258px;
    }
    .director-topbar {
      gap: 10px;
      align-items: flex-start;
      flex-wrap: wrap;
    }
    .director-topbar-left {
      width: 100%;
      flex: 1 1 100%;
      flex-wrap: wrap;
      gap: 8px;
    }
    .director-topbar-title {
      max-width: calc(100vw - 150px);
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .director-topbar-datetime {
      flex: 1 1 100%;
      max-width: 100%;
      padding-left: 50px;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .director-topbar-right {
      width: 100%;
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto auto;
      align-items: center;
      gap: 8px;
    }
    .director-topbar-search {
      grid-column: 1 / -1;
      width: 100%;
      min-width: 0;
    }
    .director-topbar-right .director-preview-select {
      width: 100%;
      min-width: 0;
      max-width: none;
    }
    .director-topbar-right .director-user {
      justify-self: end;
      padding: 4px;
    }
    .director-topbar-right > .director-action-btn:last-child {
      display: none;
    }
    .director-subnav {
      top: 196px;
    }
  }
  @media (max-width: 480px) {
    body.surface-director .view {
      padding: 210px 12px 24px;
    }
    body.surface-director .director-subnav + .view,
    body.surface-director .view.has-subnav {
      padding-top: 270px;
    }
  }

  body.surface-director {
    --ui-card-radius: 10px;
    --ui-control-radius: 10px;
    --ui-control-height: 36px;
    --ui-control-pad-x: 12px;
    --ui-soft-border: #E2E8F0;
    --ui-row-border: #EDF2F7;
    --ui-soft-shadow: 0 1px 2px rgba(16,24,40,0.05);
  }

  body.surface-director .director-date-pill,
  body.surface-director .director-sync-pill,
  body.surface-director .director-action-btn,
  body.surface-director .director-preview-select,
  body.surface-director .director-user,
  body.surface-director .director-subnav-btn,
  body.surface-director .nav-tab,
  body.surface-director .subview-pill,
  body.surface-director .filter-chip,
  body.surface-director .task-filter-select,
  body.surface-director .se-filter-chip,
  body.surface-director .se-tab-btn,
  body.surface-director .ops-panel-head button,
  body.surface-director .ops-panel-head a {
    min-height: var(--ui-control-height);
    border-radius: var(--ui-control-radius);
    padding: 0 var(--ui-control-pad-x);
    font-size: 13px;
    line-height: 1;
  }
  body.surface-director .collapse-toggle {
    min-height: var(--ui-control-height);
    padding: 8px 12px;
    border-radius: var(--ui-control-radius);
    font-size: 14px;
    line-height: 1.15;
  }
  body.surface-director .collapse-toggle .collapse-meta {
    font-size: 12px;
  }
  body.surface-director .collapse-toggle .collapse-indicator {
    font-size: 14px;
  }

  body.surface-director .director-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid #D9E2EE;
    background: #fff;
    color: var(--text);
    box-shadow: var(--ui-soft-shadow);
    white-space: nowrap;
  }
  body.surface-director .director-action-btn:hover {
    background: #F8FAFC;
    border-color: #B9C7D8;
    color: var(--text);
  }
  body.surface-director .director-action-primary,
  body.surface-director .director-action-primary:hover {
    background: var(--brand-500);
    border-color: var(--brand-500);
    color: #fff;
  }
  body.surface-director .director-compact-action {
    margin-top: 8px;
  }

  body.surface-director .director-ops-section {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }
  body.surface-director .director-ops-section-head {
    margin-bottom: 10px;
    align-items: center;
  }
  body.surface-director .director-ops-section-head h3 {
    font-family: Inter, system-ui, sans-serif;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 850;
    color: var(--text);
  }
  body.surface-director .director-ops-section-head p {
    margin-top: 3px;
    font-size: 13px;
    line-height: 1.35;
  }
  body.surface-director .director-ops-chip-row {
    gap: 8px;
  }
  body.surface-director .director-ops-chip,
  body.surface-director .director-readonly-badge,
  body.surface-director .ops-priority,
  body.surface-director .overview-meta-pill,
  body.surface-director .task-pill {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0 10px;
    font-size: 11px;
    line-height: 1;
    letter-spacing: 0.02em;
  }

  body.surface-director .director-kpi-card,
  body.surface-director .kpi-card,
  body.surface-director .summary-card,
  body.surface-director .card,
  body.surface-director .chart-card,
  body.surface-director .director-ops-card,
  body.surface-director .director-card-table-item,
  body.surface-director .expense-review-card,
  body.surface-director .task-column,
  body.surface-director .task-card,
  body.surface-director .staff-users-card,
  body.surface-director .attendance-day-card,
  body.surface-director .attendance-queue-card,
  body.surface-director .se-summary-card,
  body.surface-director .se-form-card,
  body.surface-director .folio-card,
  body.surface-director .occupied-folio-card,
  body.surface-director .cs-panel,
  body.surface-director .ops-panel,
  body.surface-director .ops-ledger-wrap {
    border-color: var(--ui-soft-border);
    border-radius: var(--ui-card-radius);
    box-shadow: var(--ui-soft-shadow);
  }

  body.surface-director .cs-kpi-strip,
  body.surface-director .ops-kpi-grid,
  body.surface-director .ops-today-strip {
    gap: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--ui-soft-border);
    border-color: var(--ui-soft-border);
    border-radius: var(--ui-card-radius);
    box-shadow: var(--ui-soft-shadow);
  }
  body.surface-director .ops-command-head {
    margin-bottom: 10px;
  }
  body.surface-director .ops-command-title h2 {
    font-size: 24px;
    line-height: 1.12;
  }
  body.surface-director .ops-command-title p {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.3;
  }
  body.surface-director .ops-kpi {
    min-height: 72px;
    padding: 12px 14px;
  }
  body.surface-director .summary-cards {
    gap: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--ui-soft-border);
    border-radius: var(--ui-card-radius);
    box-shadow: var(--ui-soft-shadow);
  }
  body.surface-director .summary-cards .director-kpi-card,
  body.surface-director .cs-kpi-cell,
  body.surface-director .ops-kpi {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    border-right: 1px solid var(--ui-row-border);
    border-bottom: 1px solid var(--ui-row-border);
  }
  body.surface-director .summary-cards .director-kpi-card:last-child,
  body.surface-director .cs-kpi-cell:last-child,
  body.surface-director .ops-kpi:last-child {
    border-right: 0;
  }
  body.surface-director .director-kpi-label,
  body.surface-director .ops-kpi-label,
  body.surface-director .cs-kpi-cell .k {
    font-size: 10px;
    letter-spacing: 0.08em;
  }
  body.surface-director .director-kpi-value,
  body.surface-director .ops-kpi-value,
  body.surface-director .cs-kpi-cell .v {
    font-size: 22px;
  }
  body.surface-director .director-kpi-note,
  body.surface-director .ops-kpi-note,
  body.surface-director .cs-kpi-cell .d {
    font-size: 11px;
    line-height: 1.3;
  }
  body.surface-director .cs-three-col {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
  }
  body.surface-director .cs-panel {
    overflow: hidden;
    box-shadow: none;
  }
  body.surface-director .cs-panel-head,
  body.surface-director .ops-panel-head {
    min-height: 44px;
    padding: 9px 12px;
    border-bottom: 1px solid var(--ui-row-border);
  }
  body.surface-director .cs-panel-head h4,
  body.surface-director .ops-panel-head h3 {
    margin: 0;
    font-family: Inter, system-ui, sans-serif;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text);
  }
  body.surface-director .cs-audit-row,
  body.surface-director .ops-metric-row,
  body.surface-director .ops-action-row {
    min-height: 34px;
    padding-top: 6px;
    padding-bottom: 6px;
    border-bottom-color: var(--ui-row-border);
  }
  body.surface-director .cs-audit-label,
  body.surface-director .ops-metric-name,
  body.surface-director .ops-action-title {
    font-size: 12px;
    line-height: 1.25;
  }
  body.surface-director .cs-audit-value,
  body.surface-director .ops-metric-value {
    font-size: 12px;
    line-height: 1.2;
  }

  body.surface-director .ops-command-grid {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 10px;
  }
  body.surface-director .ops-workspace-grid {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
  }
  body.surface-director .ops-workspace-card {
    min-height: 116px;
    border-radius: var(--ui-card-radius);
    box-shadow: var(--ui-soft-shadow);
  }
  body.surface-director .ops-main-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 10px;
    margin-bottom: 10px;
  }
  body.surface-director .ops-metric-list,
  body.surface-director .ops-action-list {
    padding: 0 12px 10px;
  }
  body.surface-director .ops-panel-head button,
  body.surface-director .ops-panel-head a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #D9E2EE;
    background: #fff;
    color: var(--brand-600);
    text-decoration: none;
    box-shadow: var(--ui-soft-shadow);
  }
  body.surface-director .ops-action-list {
    max-height: 330px;
    overflow: auto;
  }
  body.surface-director .ops-main-grid .ops-panel {
    min-height: 0;
  }
  body.surface-director .director-room-snapshot {
    grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  }
  body.surface-director .director-room-command {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  body.surface-director .director-room-lane-body {
    max-height: 360px;
  }
  body.surface-director .ops-ledger-scroll,
  body.surface-director .r-table-wrap,
  body.surface-director .pay-table-wrap,
  body.surface-director .detail-table-wrap {
    border: 1px solid var(--ui-soft-border);
    border-radius: var(--ui-card-radius);
    background: #fff;
    overflow: auto;
  }
  body.surface-director .ops-ledger-table th,
  body.surface-director .r-table th,
  body.surface-director .pay-table th,
  body.surface-director .detail-table-wrap th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #F8FAFC;
  }

  body.surface-director .pay-pressure-list {
    border: 1px solid var(--ui-soft-border);
    border-radius: var(--ui-card-radius);
    background: #fff;
    box-shadow: var(--ui-soft-shadow);
    overflow: hidden;
    gap: 0;
  }
  body.surface-director .pay-pressure-list .director-ops-card {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 12px 14px;
    border-bottom: 1px solid var(--ui-row-border);
  }
  body.surface-director .pay-pressure-list .director-ops-card:last-child {
    border-bottom: 0;
  }
  body.surface-director .pay-pressure-list h4 {
    font-size: 15px;
    line-height: 1.2;
  }
  body.surface-director .pay-pressure-list p,
  body.surface-director .pay-pressure-list .director-card-table-meta {
    font-size: 12px;
    line-height: 1.3;
  }

  @media (max-width: 1240px) {
    body.surface-director .ops-command-grid {
      grid-template-columns: 1fr;
    }
  }

  body.surface-director #view-detail.revenue-detail-view .back-btn {
    margin-bottom: 14px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: var(--director-ink-600);
    font-family: var(--director-sans);
    font-size: 13px;
    font-weight: 750;
  }
  body.surface-director #view-detail.revenue-detail-view .kpi-row {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
  }
  body.surface-director #view-detail.revenue-detail-view .kpi-card {
    min-height: 124px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  body.surface-director #view-detail.revenue-detail-view .kpi-label {
    margin-bottom: 6px;
    color: var(--director-ink-500);
    font-size: 10px;
    letter-spacing: 0.08em;
  }
  body.surface-director #view-detail.revenue-detail-view .kpi-value {
    font-family: var(--director-sans);
    font-size: 25px;
    line-height: 1.1;
    letter-spacing: 0;
  }
  body.surface-director #view-detail.revenue-detail-view .kpi-sub,
  body.surface-director #view-detail.revenue-detail-view .kpi-trend {
    font-size: 12px;
    line-height: 1.25;
  }
  body.surface-director #view-detail.revenue-detail-view .missing-summary {
    margin-bottom: 16px;
    border: 1px solid #F2B8B5;
    border-left: 4px solid var(--director-flag);
    background: #FFF7F6;
    box-shadow: none;
  }
  body.surface-director #view-detail.revenue-detail-view .missing-summary h3 {
    margin-bottom: 8px;
    color: #9F2823;
    font-family: var(--director-sans);
    font-size: 16px;
    line-height: 1.25;
    font-weight: 850;
  }
  body.surface-director #view-detail.revenue-detail-view .missing-summary .missing-list {
    color: #7A2E2B;
    font-size: 13px;
    line-height: 1.6;
  }
  body.surface-director #view-detail.revenue-detail-view .missing-tag {
    margin: 3px 4px 3px 0;
    padding: 4px 8px;
    border-color: #F2B8B5;
    background: #FBE3E1;
    color: #7A2E2B;
    font-size: 12px;
    font-weight: 700;
  }
  body.surface-director #view-detail.revenue-detail-view .chart-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    margin-bottom: 18px;
  }
  body.surface-director #view-detail.revenue-detail-view .chart-card {
    padding: 16px;
    border-color: var(--ui-soft-border);
    border-radius: var(--ui-card-radius);
    background: #fff;
    box-shadow: var(--ui-soft-shadow);
  }
  body.surface-director #view-detail.revenue-detail-view .chart-card h3 {
    margin: 0 0 12px;
    color: var(--director-ink-700);
    font-family: var(--director-sans);
    font-size: 13px;
    line-height: 1.25;
    font-weight: 850;
    letter-spacing: 0;
  }
  body.surface-director #view-detail.revenue-detail-view .chart-card canvas {
    width: 100% !important;
    height: 260px !important;
    max-height: none;
  }
  body.surface-director #view-detail.revenue-detail-view .chart-card.revenue-daily canvas {
    height: 220px !important;
  }
  body.surface-director #view-detail.revenue-detail-view .chart-card.revenue-rve canvas,
  body.surface-director #view-detail.revenue-detail-view .chart-card.revenue-top canvas {
    height: 280px !important;
  }
  body.surface-director #view-detail.revenue-detail-view .detail-section,
  body.surface-director #view-detail.revenue-detail-view .flags-section {
    margin-bottom: 14px;
  }
  @media (max-width: 1180px) {
    body.surface-director #view-detail.revenue-detail-view .kpi-row {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    body.surface-director #view-detail.revenue-detail-view .chart-grid {
      grid-template-columns: 1fr;
    }
  }
  @media (max-width: 767px) {
    body.surface-director #view-detail.revenue-detail-view .kpi-row {
      grid-template-columns: 1fr;
    }
    body.surface-director #view-detail.revenue-detail-view .chart-card canvas,
    body.surface-director #view-detail.revenue-detail-view .chart-card.revenue-rve canvas,
    body.surface-director #view-detail.revenue-detail-view .chart-card.revenue-top canvas {
      height: 240px !important;
    }
  }
