/* BIG BEN iOS Design System 1.0 • application 2.5.0-rc1
   Content remains opaque; glass belongs to navigation and transient panels.
   Compatibility adapters retain the existing PHP templates and table layouts. */
:root {
  --bb-canvas: #090a0c;
  --bb-surface: #15171b;
  --bb-raised: #1c1f24;
  --bb-input: #101216;
  --bb-glass: rgba(25, 28, 33, .88);
  --bb-ink: #f5f3ee;
  --bb-muted: #b0b3bb;
  --bb-gold: #dfbf7d;
  --bb-gold-soft: rgba(223, 191, 125, .12);
  --bb-success: #7ad6ad;
  --bb-danger: #ff9299;
  --bb-warning: #f1c57b;
  --bb-teal: #8bcac6;
  --bb-line: rgba(255, 255, 255, .10);
  --bb-line-strong: rgba(255, 255, 255, .19);
  --bb-space-1: 4px;
  --bb-space-2: 8px;
  --bb-space-3: 12px;
  --bb-space-4: 16px;
  --bb-space-5: 24px;
  --bb-space-6: 32px;
  --bb-space-7: 48px;
  --bb-radius-sm: 12px;
  --bb-radius: 22px;
  --bb-radius-lg: 28px;
  --bb-shadow: 0 8px 28px rgba(0, 0, 0, .18);
  --bb-shadow-float: 0 16px 48px rgba(0, 0, 0, .45), inset 0 1px rgba(255, 255, 255, .08);
  --bb-duration: 180ms;
  --bb-ease: cubic-bezier(.2, .75, .25, 1);
  --bb-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --bb-tab-height: 62px;
  --bb-tab-space: calc(90px + env(safe-area-inset-bottom, 0px));
  --ink: var(--bb-ink); --muted: var(--bb-muted);
  --canvas: var(--bb-canvas); --surface: var(--bb-surface); --surface-solid: var(--bb-surface);
  --line: var(--bb-line); --line-strong: var(--bb-line-strong);
  --gold: var(--bb-gold); --gold-light: var(--bb-gold); --gold-soft: var(--bb-gold-soft);
  --wine: var(--bb-gold); --wine-bright: var(--bb-gold); --wine-soft: var(--bb-gold-soft);
  --green: var(--bb-success); --red: var(--bb-danger); --amber: var(--bb-warning);
  --radius: var(--bb-radius); --shadow: var(--bb-shadow); --sidebar-width: 248px;
}
html { scroll-padding-top: 90px; }
body.bigben-ios { font-family: var(--bb-font); color: var(--bb-ink); background: var(--bb-canvas); -webkit-font-smoothing: antialiased; }
.bigben-ios *, .bigben-ios *::before, .bigben-ios *::after { box-sizing: border-box; }
.bigben-ios::before, .bigben-ios::after { display: none; }
.bigben-ios :focus-visible { outline: 2px solid var(--bb-gold); outline-offset: 4px; }
.bigben-ios input, .bigben-ios select, .bigben-ios textarea { scroll-margin-block: 96px 180px; }
.skip-link { position: fixed; top: 8px; left: 16px; z-index: 9999; transform: translateY(-160%); padding: 12px 18px; border-radius: 12px; color: #111; background: var(--bb-gold); }
.skip-link:focus { transform: none; }
.bigben-ios h1, .bigben-ios h2, .bigben-ios h3 { color: var(--bb-ink); text-wrap: balance; }
.bigben-ios h1 { font-size: clamp(1.75rem, 2.5vw, 2.5rem); line-height: 1.12; font-weight: 700; letter-spacing: -.045em; }
.bigben-ios h2 { font-size: 1.15rem; line-height: 1.3; font-weight: 650; letter-spacing: -.025em; }
.bigben-ios h3 { font-size: 1rem; line-height: 1.35; letter-spacing: -.02em; }
.bigben-ios p { color: var(--bb-muted); line-height: 1.55; }
.bigben-ios .eyebrow { color: var(--bb-muted); font-size: .65rem; font-weight: 650; letter-spacing: .12em; }
.bigben-ios .content { padding-top: 24px; }
.bigben-ios .page-heading { gap: 20px; margin-bottom: 28px; }
.bigben-ios .page-heading > div { min-width: 0; }
.bigben-ios .page-heading p { max-width: 62ch; margin-top: 10px; font-size: .88rem; }
.bigben-ios .sidebar { background: #101216; border-right: 1px solid var(--bb-line); box-shadow: none; }
.bigben-ios .brand { padding-bottom: 24px; }
.bigben-ios .brand-logo { filter: none; box-shadow: none; }
.bigben-ios .brand strong { font-size: 1.2rem; letter-spacing: .05em; }
.bigben-ios .brand small, .bigben-ios .sidebar-user-copy small { color: var(--bb-muted); }
.bigben-ios .nav-link { min-height: 44px; margin-bottom: 4px; padding: 10px 12px; border: 1px solid transparent; border-radius: var(--bb-radius-sm); color: var(--bb-muted); background: transparent; font-weight: 500; box-shadow: none; }
.bigben-ios .nav-link:hover { background: rgba(255, 255, 255, .05); transform: none; }
.bigben-ios .nav-link.active, .bigben-ios .nav-link-primary.active { color: var(--bb-ink); background: var(--bb-gold-soft); border-color: rgba(223, 191, 125, .14); }
.bigben-ios .nav-link-primary { color: var(--bb-gold); }
.bigben-ios .nav-link .nav-icon { color: inherit; filter: none; }
.bigben-ios .nav-link.active .nav-icon { color: var(--bb-gold); filter: none; }
.bigben-ios .nav-link.active::before { display: none; }
.bigben-ios .nav-label { color: var(--bb-muted); font-size: .62rem; letter-spacing: .12em; }
.bigben-ios .sidebar-user { border-color: var(--bb-line); }
.bigben-ios .sidebar-user > a { display: grid; place-items: center; min-width: 44px; min-height: 44px; }
.bigben-ios .avatar { color: #17140d; background: var(--bb-gold); }
.desktop-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; margin-bottom: 28px; padding-bottom: 18px; border-bottom: 1px solid var(--bb-line); }
.desktop-context { display: flex; min-width: 0; align-items: center; gap: 10px; color: var(--bb-muted); font-size: .8rem; }
.desktop-context strong { color: var(--bb-ink); font-weight: 550; }
.desktop-header-actions { display: flex; align-items: center; gap: 12px; }
.header-profile { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 4px 8px; border-radius: 24px; color: var(--bb-ink); font-size: .8rem; }
.header-profile .avatar { width: 32px; height: 32px; }
.bigben-ios .icon-button { position: relative; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--bb-line); border-radius: 50%; color: var(--bb-ink); background: rgba(255, 255, 255, .04); box-shadow: none; }
.bigben-ios .ui-icon { flex-shrink: 0; width: 21px; height: 21px; stroke-width: 1.7; }
.bigben-ios .mobile-count, .bigben-ios .nav-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; color: #111; background: var(--bb-gold); font-size: 10px; border-radius: 10px; }
.bigben-ios .card, .bigben-ios .metric-card, .bigben-ios .store-card,
.bigben-ios .summary-item, .bigben-ios .envelope-label { min-width: 0; color: var(--bb-ink); border: 1px solid var(--bb-line); border-radius: var(--bb-radius); background: var(--bb-surface); box-shadow: var(--bb-shadow); backdrop-filter: none; -webkit-backdrop-filter: none; }
.bigben-ios .card::before, .bigben-ios .metric-card::before, .bigben-ios .store-card::before { display: none; }
.bigben-ios .metric-grid, .bigben-ios .store-grid, .bigben-ios .summary-grid { gap: 16px; }
.bigben-ios .metric-card { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 18px; min-height: 174px; padding: 22px; }
.bigben-ios .metric-card .metric-icon { width: 38px; height: 38px; border-radius: 12px; color: var(--bb-gold); background: var(--bb-gold-soft); box-shadow: none; }
.bigben-ios .metric-card .metric-icon.red { color: var(--bb-danger); background: rgba(255, 146, 153, .10); }
.bigben-ios .metric-card .metric-icon.green { color: var(--bb-success); background: rgba(122, 214, 173, .10); }
.bigben-ios .metric-card strong, .bigben-ios .summary-item strong, .bigben-ios .store-total strong { overflow: visible; font-size: clamp(1.25rem, 1.8vw, 1.9rem); font-weight: 650; line-height: 1.22; letter-spacing: -.045em; white-space: normal; overflow-wrap: anywhere; text-overflow: clip; font-variant-numeric: tabular-nums lining-nums; }
.bigben-ios .metric-card small, .bigben-ios .summary-item small { color: var(--bb-muted); line-height: 1.45; }
.bigben-ios .summary-item.accent, .bigben-ios .summary-item.accent-soft { color: var(--bb-ink); background: var(--bb-raised); border-color: rgba(223, 191, 125, .24); }
.bigben-ios .summary-item.accent strong, .bigben-ios .money-accent { color: var(--bb-gold); }
.bigben-ios .summary-item.accent span, .bigben-ios .summary-item.accent small { color: var(--bb-muted); }
.bigben-ios .summary-item.warning-soft { background: var(--bb-surface); border-color: rgba(241, 197, 123, .24); }
.bigben-ios .summary-item.warning-soft strong { color: var(--bb-warning); }
.bigben-ios .store-card { padding: 22px; transition: border-color var(--bb-duration), transform var(--bb-duration); }
.bigben-ios .store-number { color: var(--bb-muted); border-color: var(--bb-line); background: var(--bb-raised); box-shadow: none; }
.bigben-ios .store-total, .bigben-ios .store-card h3 { color: var(--bb-ink); }
.bigben-ios .button { min-height: 44px; border-radius: 13px; font-size: .86rem; font-weight: 600; box-shadow: none; transition: background var(--bb-duration), transform var(--bb-duration) var(--bb-ease); }
.bigben-ios .button-primary { color: #17140d; border-color: transparent; background: var(--bb-gold); }
.bigben-ios .button-primary:hover { background: #e9ce99; }
.bigben-ios .button-secondary { color: var(--bb-ink); border-color: var(--bb-line-strong); background: var(--bb-raised); }
.bigben-ios .button-danger { color: #190d0e; background: var(--bb-danger); }
.bigben-ios .button:active:not(:disabled), .bigben-ios .count-stepper button:active { transform: scale(.98); }
.bigben-ios .button:disabled { cursor: default; }
.bigben-ios .field > span { color: var(--bb-muted); font-weight: 550; }
.bigben-ios .field input, .bigben-ios .field select, .bigben-ios .field textarea,
.bigben-ios .inline-form > input, .bigben-ios .opening-float-input-wrap input { min-width: 0; max-width: 100%; min-height: 48px; border: 1px solid var(--bb-line-strong); border-radius: 12px; color: var(--bb-ink); background-color: var(--bb-input); font-size: 16px; box-shadow: none; }
.bigben-ios input:focus, .bigben-ios select:focus, .bigben-ios textarea:focus { border-color: var(--bb-gold); }
.bigben-ios input:disabled { color: var(--bb-muted); opacity: 1; -webkit-text-fill-color: var(--bb-muted); }
.bigben-ios input[type=checkbox] { accent-color: var(--bb-gold); width: 22px; height: 22px; }
.bigben-ios .confirm-box { min-height: 52px; padding: 16px; border: 1px solid var(--bb-line); border-radius: 14px; background: var(--bb-input); }
.bigben-ios .confirm-box strong { color: var(--bb-ink); font-size: .84rem; font-weight: 550; line-height: 1.4; }
.bigben-ios .confirm-box small { color: var(--bb-muted); font-size: .76rem; line-height: 1.45; }
.bigben-ios .opening-float-confirm-card { border: 1px solid var(--bb-line); border-radius: 16px; color: var(--bb-ink); background: var(--bb-raised); }
.bigben-ios .opening-float-confirm-card small { color: var(--bb-muted); }
.bigben-ios .opening-float-input-wrap { border: 0; background: transparent; box-shadow: none; }
.bigben-ios .opening-float-input-wrap input { width: 100%; font-size: 1.6rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.bigben-ios .opening-float-currency { color: var(--bb-gold); }
.bigben-ios .section-heading { padding-bottom: 20px; border-color: var(--bb-line); }
.bigben-ios .section-heading p { font-size: .82rem; }
.bigben-ios .step-number { flex-shrink: 0; color: var(--bb-gold); border: 1px solid rgba(223, 191, 125, .2); border-radius: 12px; background: var(--bb-gold-soft); box-shadow: none; }
.bigben-ios .target-pill { color: var(--bb-gold); border-color: rgba(223, 191, 125, .2); background: var(--bb-gold-soft); white-space: normal; }
.bigben-ios .banknote { color: var(--bb-ink); border-color: var(--bb-line-strong); border-radius: 10px; background: var(--bb-raised); box-shadow: none; }
.bigben-ios .count-stepper { gap: 0; min-width: 156px; padding: 0; border: 1px solid var(--bb-line-strong); border-radius: 13px; background: var(--bb-input); box-shadow: none; }
.bigben-ios .count-stepper button { width: 44px; min-width: 44px; height: 46px; min-height: 44px; border: 0; border-radius: 12px; color: var(--bb-gold); background: transparent; font-size: 1.25rem; }
.bigben-ios .count-stepper input { width: 68px; min-width: 0; height: 46px; margin: 0; padding: 0 2px; border: 0; border-radius: 0; color: var(--bb-ink); background: transparent; font-size: 18px; font-variant-numeric: tabular-nums; }
.bigben-ios .count-stepper input[aria-invalid=true] { outline: 2px solid var(--bb-danger); outline-offset: -2px; }
.count-validation { margin: 0 0 16px; padding: 12px 14px; border: 1px solid rgba(255, 146, 153, .35); border-radius: 12px; color: var(--bb-danger) !important; background: rgba(255, 146, 153, .06); font-size: .85rem; }
.bigben-ios .destination { font-size: .75rem; line-height: 1.4; }
.bigben-ios .destination.shortage, .bigben-ios .text-warning { color: var(--bb-warning); }
.bigben-ios .destination.complete { color: var(--bb-success); }
.bigben-ios .destination.surplus { color: var(--bb-gold); }
.bigben-ios .info-banner { color: var(--bb-ink); border: 1px solid var(--bb-line); border-radius: 16px; background: var(--bb-raised); box-shadow: none; }
.bigben-ios .info-banner > span { color: var(--bb-gold); background: var(--bb-gold-soft); }
.bigben-ios .info-banner p, .bigben-ios .subtle-label { color: var(--bb-muted); }
.bigben-ios .responsive-table, .bigben-ios .cash-table-wrap { max-width: 100%; overscroll-behavior-inline: contain; }
.bigben-ios table { font-variant-numeric: tabular-nums; }
.bigben-ios th { color: var(--bb-muted); background: var(--bb-input); font-weight: 550; letter-spacing: .02em; }
.bigben-ios td { border-color: var(--bb-line); }
.bigben-ios table tfoot tr, .bigben-ios table tfoot td { color: var(--bb-ink); background: var(--bb-raised); }
.bigben-ios .badge { max-width: 100%; padding: 5px 9px; border: 0; border-radius: 7px; font-size: .7rem; font-weight: 550; white-space: normal; }
.bigben-ios .badge-success { color: var(--bb-success); background: rgba(122, 214, 173, .10); }
.bigben-ios .badge-danger { color: var(--bb-danger); background: rgba(255, 146, 153, .10); }
.bigben-ios .badge-warning { color: var(--bb-warning); background: rgba(241, 197, 123, .10); }
.bigben-ios .badge-admin, .bigben-ios .badge-neutral { color: var(--bb-muted); background: rgba(255, 255, 255, .06); }
.bigben-ios .notification-preview, .bigben-ios .notification-card { background: var(--bb-surface); border-color: var(--bb-line); }
.bigben-ios .notification-icon { color: var(--bb-gold); background: var(--bb-gold-soft); box-shadow: none; }
.bigben-ios .notification-preview p { color: var(--bb-muted); }
.bigben-ios .danger-zone { border-color: rgba(255, 146, 153, .25); background: var(--bb-surface); }
.bigben-ios .empty-state { padding: 36px 20px; }
.bigben-ios .empty-icon { color: var(--bb-muted); background: var(--bb-raised); box-shadow: none; }
.bigben-ios .toast { border-radius: 18px; color: var(--bb-ink); background: var(--bb-raised); border: 1px solid var(--bb-line-strong); box-shadow: var(--bb-shadow-float); }
.bigben-ios .toast button, .bigben-ios .password-field button { min-width: 44px; min-height: 44px; }
.bigben-ios .monthly-bars, .bigben-ios .report-chart-card, .bigben-ios .volume-chart-card { min-width: 0; max-width: 100%; }
.bigben-ios .bar-track { background: var(--bb-input); }
.bigben-ios .bar-track > span { background: var(--bb-gold); border-radius: 5px 5px 0 0; }
.bigben-ios .bar-value { font-size: .65rem; font-variant-numeric: tabular-nums; }
.bigben-ios .auth-content { min-height: 100svh; padding: max(24px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); background: var(--bb-canvas); }
.bigben-ios .auth-card { width: min(100%, 440px); padding: clamp(24px, 5vw, 40px); border: 1px solid var(--bb-line-strong); border-radius: var(--bb-radius-lg); background: var(--bb-surface); box-shadow: var(--bb-shadow-float); }
.bigben-ios .auth-card::before, .bigben-ios .auth-card::after { display: none; }
.bigben-ios .auth-heading h1 { font-size: 1.8rem; }
.bigben-ios .auth-brand { margin-bottom: 32px; }
.bigben-ios .auth-brand strong, .bigben-ios .auth-heading h1 { color: var(--bb-ink); }
.bigben-ios .auth-footnote { color: var(--bb-muted); font-size: .75rem; }
@media (hover: hover) and (pointer: fine) {
  .bigben-ios .store-card:hover { border-color: rgba(223, 191, 125, .3); transform: translateY(-2px); }
}
@media (min-width: 901px) {
  .bigben-ios .bottom-nav, .bigben-ios .mobile-header { display: none !important; }
  .bigben-ios .closure-layout { column-gap: 24px; row-gap: 24px; }
}
@media (max-width: 1100px) and (min-width: 901px) {
  :root { --sidebar-width: 218px; }
  .bigben-ios .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bigben-ios .content { padding-inline: 22px; }
}
@media (max-width: 900px) {
  .desktop-header { display: none; }
  .bigben-ios .mobile-header { display: flex; min-height: calc(62px + env(safe-area-inset-top, 0px)); padding: calc(8px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left)); border-bottom: 1px solid var(--bb-line); color: var(--bb-ink); background: var(--bb-glass); box-shadow: none; }
  .bigben-ios .mobile-brand { gap: 9px; color: var(--bb-ink); }
  .bigben-ios .mobile-brand span { font-size: .9rem; letter-spacing: .05em; }
  .bigben-ios .mobile-brand small { color: var(--bb-muted); font-size: .53rem; letter-spacing: .08em; }
  .bigben-ios .mobile-brand img { width: 33px; height: 33px; border-radius: 9px; }
  body.bigben-ios.app-shell .content { margin-left: 0; padding: calc(84px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right)) var(--bb-tab-space) max(16px, env(safe-area-inset-left)); }
  body.bigben-ios.role-employee .content { padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); }
  .bigben-ios .sidebar { width: min(84vw, 320px); padding-top: calc(24px + env(safe-area-inset-top)); background: var(--bb-glass); border-right: 1px solid var(--bb-line-strong); box-shadow: var(--bb-shadow-float); }
  .bigben-ios .sidebar-overlay { background: rgba(0, 0, 0, .55); backdrop-filter: none; }
  .bigben-ios .bottom-nav { display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; position: fixed; z-index: 60; inset: auto max(12px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); width: auto; max-width: 560px; height: var(--bb-tab-height); min-height: var(--bb-tab-height); margin: 0 auto; padding: 5px; border: 1px solid var(--bb-line-strong); border-radius: 25px; background: var(--bb-glass); box-shadow: var(--bb-shadow-float); }
  .bigben-ios .bottom-nav > a, .bigben-ios .bottom-nav > button { display: flex; position: relative; top: auto !important; flex-direction: column; align-items: center; justify-content: center; gap: 3px !important; width: auto !important; min-width: 0; max-width: none; height: 50px !important; min-height: 44px; padding: 4px 0; border: 0 !important; border-radius: 19px !important; color: var(--bb-muted) !important; background: transparent !important; box-shadow: none !important; transform: none !important; }
  .bigben-ios .bottom-nav > a.active, .bigben-ios .bottom-nav > button.active { color: var(--bb-gold) !important; background: var(--bb-gold-soft) !important; }
  .bigben-ios .bottom-nav > *::before, .bigben-ios .bottom-nav > *::after { display: none !important; }
  .bigben-ios .bottom-nav .ui-icon { position: static !important; width: 21px !important; height: 21px !important; margin: 0 !important; color: inherit !important; filter: none !important; transform: none !important; }
  .bigben-ios .bottom-nav span, .bigben-ios .bottom-nav .bottom-action span { position: static !important; margin: 0 !important; color: inherit !important; font-size: 10px; line-height: 12px; font-weight: 550; letter-spacing: 0; }
  .bigben-ios .page-heading { align-items: flex-start; flex-wrap: wrap; margin-bottom: 24px; }
  .bigben-ios .page-heading h1 { font-size: 1.85rem; }
  .bigben-ios .page-actions { flex-wrap: wrap; }
  .bigben-ios .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .bigben-ios .metric-card { min-height: 162px; padding: 18px; gap: 15px; }
  .bigben-ios .metric-card strong { font-size: clamp(1.2rem, 3.8vw, 1.65rem); }
  .bigben-ios .mobile-record-table tr, .bigben-ios .mobile-report-table tbody tr,
  .bigben-ios .mobile-denomination-cards tr { color: var(--bb-ink); border: 1px solid var(--bb-line); border-radius: 16px; background: var(--bb-surface); box-shadow: none; }
  .bigben-ios .mobile-record-table td::before, .bigben-ios .mobile-report-table td::before { color: var(--bb-muted); }
  .bigben-ios .mobile-report-table tfoot tr, .bigben-ios .mobile-report-table tfoot td { color: var(--bb-ink); background: var(--bb-raised); }
  .bigben-ios .filter-card[data-filter-ready='1'] { padding: 20px 20px calc(24px + env(safe-area-inset-bottom)); border-color: var(--bb-line-strong); border-radius: 28px 28px 0 0; background: var(--bb-glass); box-shadow: var(--bb-shadow-float); }
  .bigben-ios .mobile-sheet-handle { width: 36px; height: 4px; background: var(--bb-muted); }
  .bigben-ios .mobile-sheet-header strong { color: var(--bb-ink); }
  .bigben-ios .mobile-filter-trigger { min-height: 52px; border-radius: 16px; background: var(--bb-raised); }
  .bigben-ios .mobile-filter-trigger small { color: var(--bb-muted); }
  .bigben-ios.filter-sheet-open .bottom-nav, .bigben-ios.menu-open .bottom-nav { visibility: hidden; pointer-events: none; }
  .bigben-ios .closure-identification-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bigben-ios .closure-identification-grid > .field:nth-child(-n+2) { grid-column: 1 / -1; }
  .bigben-ios.page-new-closure .mobile-live-summary { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); min-height: 66px; padding: 10px; border: 1px solid var(--bb-line-strong); border-radius: 20px; background: var(--bb-glass); box-shadow: var(--bb-shadow-float); }
  .bigben-ios.page-new-closure.role-employee .mobile-live-summary { bottom: max(10px, env(safe-area-inset-bottom)); }
  .bigben-ios .mobile-live-summary strong { color: var(--bb-ink); font-variant-numeric: tabular-nums; }
  .bigben-ios .mobile-live-summary .featured strong { color: var(--bb-gold); }
  .bigben-ios .mobile-live-summary > div { border-color: var(--bb-line); }
  .bigben-ios.page-new-closure .sticky-actions { position: static; margin: 20px 0 0; padding: 20px 0 0; border-top: 1px solid var(--bb-line); background: transparent; box-shadow: none; backdrop-filter: none; }
  .bigben-ios.keyboard-open .bottom-nav, .bigben-ios.keyboard-open .mobile-live-summary { display: none !important; }
}
@media (max-width: 680px) {
  .bigben-ios .form-card { padding: 20px 16px; }
  .bigben-ios .summary-grid { gap: 10px; }
  .bigben-ios .summary-item { padding: 16px; }
  .bigben-ios.page-new-closure .closure-result-grid .summary-item strong { font-size: clamp(1.25rem, 5.2vw, 1.7rem); }
  .bigben-ios .section-heading h2, .bigben-ios.page-new-closure .section-heading h2 { font-size: 1.05rem; }
  .bigben-ios .split-heading { align-items: flex-start; }
  .bigben-ios .closure-count-card .split-heading { flex-wrap: wrap; }
  .bigben-ios .mobile-denomination-cards .count-stepper { width: 100%; min-width: 156px; }
  .bigben-ios .mobile-denomination-cards .count-stepper input { flex: 1; }
  .bigben-ios .mobile-denomination-cards .destination { white-space: normal; }
}
@media (max-width: 360px) {
  body.bigben-ios.app-shell .content { padding-inline: 12px; }
  .bigben-ios .metric-card { padding: 15px; }
  .bigben-ios .metric-card strong { font-size: 1.14rem; }
  .bigben-ios .mobile-brand small { letter-spacing: 0; }
  .bigben-ios .form-card { padding-inline: 14px; }
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .bigben-ios .mobile-header, .bigben-ios .bottom-nav, .bigben-ios .filter-card[data-filter-ready='1'].is-open,
  .bigben-ios .mobile-live-summary { background: rgba(25, 28, 33, .83); -webkit-backdrop-filter: blur(18px) saturate(120%); backdrop-filter: blur(18px) saturate(120%); }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .bigben-ios .mobile-header, .bigben-ios .bottom-nav, .bigben-ios .sidebar, .bigben-ios .filter-card[data-filter-ready='1'], .bigben-ios .mobile-live-summary { background: #1c1f24 !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .bigben-ios { --bb-line: rgba(255,255,255,.3); --bb-muted: #d0d2d7; }
}
@media (prefers-reduced-motion: reduce) {
  .bigben-ios *, .bigben-ios *::before, .bigben-ios *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .bigben-ios { color: #111; background: #fff; }
  .bigben-ios .desktop-header, .bigben-ios .mobile-header, .bigben-ios .bottom-nav, .bigben-ios .skip-link, .bigben-ios .sidebar { display: none !important; }
  body.bigben-ios.app-shell .content { margin: 0; padding: 0; }
  .bigben-ios .card, .bigben-ios .summary-item, .bigben-ios .envelope-label { color: #111; background: #fff; box-shadow: none; }
}
/* Remaining administrative adapters: a single content language across modules. */
.bigben-ios .performance-preview-card::after, .bigben-ios .best-period-card::after,
.bigben-ios .performance-period-card::after { display: none; }
.bigben-ios .performance-period-heading > div > strong, .bigben-ios .best-period-card strong,
.bigben-ios .performance-breakdown strong { color: var(--bb-ink); white-space: normal; overflow: visible; overflow-wrap: anywhere; text-overflow: clip; }
.bigben-ios .bar-value { white-space: normal; overflow: visible; overflow-wrap: anywhere; text-overflow: clip; color: var(--bb-muted); line-height: 1.2; }
.bigben-ios .code-example, .bigben-ios .cron-instructions { color: var(--bb-muted); border-color: var(--bb-line); background: var(--bb-surface); }
.bigben-ios .profile-card dl > div, .bigben-ios .notes-box, .bigben-ios .replenishment-inline { border-color: var(--bb-line); }
.bigben-ios .password-field button { color: var(--bb-muted); }
.bigben-ios .mobile-header.is-compact { min-height: calc(62px + env(safe-area-inset-top, 0px)); }
@media (max-width: 900px) {
  .bigben-ios .mobile-header { position: fixed; inset: 0 0 auto; height: auto; }
  .bigben-ios .count-stepper { touch-action: manipulation; }
}
.bigben-ios .mobile-header.is-compact .icon-button, .bigben-ios .mobile-header.is-compact .mobile-brand { transform: none; }
.bigben-ios .mobile-header.is-compact .mobile-brand small { opacity: 1; }
@media print {
  body.bigben-ios { --bb-ink: #111; --bb-muted: #555; --bb-gold: #111; }
}
.bigben-ios .row-action, .bigben-ios .text-link, .bigben-ios .card-arrow-link,
.bigben-ios .link-button { display: inline-flex; align-items: center; min-height: 44px; }
.bigben-ios .form-grid > .field, .bigben-ios .detail-main,
.bigben-ios .detail-layout > *, .bigben-ios .settings-layout > *, .bigben-ios .profile-layout > * { min-width: 0; }

/* motion1: preserve existing login, role-entry and success animations. */
@media (prefers-reduced-motion: reduce) {
  .bigben-ios .login-entry { display: none; }
}

/* BIG BEN iOS Design System 2.0 — 2.5.0-rc2. Opaque financial surfaces, restrained glass. */
:root { --bb-radius: 18px; --bb-radius-lg: 24px; --bb-tab-height: 62px; --bb-tab-space: calc(98px + env(safe-area-inset-bottom, 0px)); }
.bigben-ios [hidden] { display: none !important; }
.bigben-ios .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.bigben-ios .ambient-canvas { opacity: .28; pointer-events: none; }
.bigben-ios .content { width: auto; max-width: 1660px; margin-inline-end: auto; }
.bigben-ios .page-heading { margin-bottom: 22px; }
.bigben-ios .page-heading h1 { font-size: clamp(1.65rem, 2.4vw, 2.35rem); }
.bigben-ios .page-heading p { margin-top: 8px; }
.bigben-ios .card, .bigben-ios .summary-item, .bigben-ios .metric-card { background-image: none; }
.bigben-ios .text-link { display: inline-flex; gap: 4px; align-items: center; min-height: 44px; color: var(--bb-gold); }
.bigben-ios .text-link .ui-icon, .bigben-ios .row-action .ui-icon { width: 16px; height: 16px; }
.bigben-ios .block-heading { gap: 14px; }
.bigben-ios .field { min-width: 0; }
.bigben-ios input[type=date] { display: block; width: 100%; min-width: 0; min-inline-size: 0; height: 50px; padding: 12px; text-align: start; -webkit-appearance: none; appearance: none; }
.bigben-ios input[type=date]::-webkit-date-and-time-value { min-height: 1.3em; text-align: left; }
.bigben-ios input[type=date]::-webkit-datetime-edit { padding: 0; }
.bigben-ios .mobile-sheet-header { color: var(--bb-ink); background: var(--bb-raised); border-radius: 22px 22px 0 0; }
.bigben-ios .mobile-sheet-header button { color: var(--bb-ink); background: var(--bb-input); }
.bigben-ios .mobile-filter-trigger strong { color: var(--bb-ink); }
.bigben-ios .filter-form { grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); align-items: end; }
.bigben-ios .metric-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.bigben-ios .metric-card { min-height: 140px; padding: 20px; gap: 12px; }
.bigben-ios .metric-card::after, .bigben-ios .store-card::after { display: none; }
.bigben-ios .metric-card > div { min-width: 0; }
.bigben-ios .monthly-bars { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 12px; min-width: 0; }
.bigben-ios .month-bar { min-width: 0; width: auto; }
.bigben-ios .bar-value { font-size: .67rem; }
.bigben-ios .report-chart-card { overflow: hidden; }
.bigben-ios .dashboard-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.bigben-ios .period-switch { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); width: min(100%,360px); gap: 4px; padding: 4px; border: 1px solid var(--bb-line); border-radius: 14px; background: var(--bb-surface); }
.bigben-ios .period-switch a { display: grid; place-items: center; min-height: 44px; padding: 8px 20px; border-radius: 10px; color: var(--bb-muted); font-size: .85rem; font-weight: 600; transition: background 180ms, color 180ms; }
.bigben-ios .period-switch a.active { color: #17140e; background: var(--bb-gold); box-shadow: 0 2px 8px #0003; }
.bigben-ios .unit-switch { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.bigben-ios .unit-switch select { width: 100%; max-width: 340px; padding-right: 32px; font-size: .8rem; }
.bigben-ios .dashboard-scope { margin: 14px 0 22px; color: var(--bb-muted); font-size: .76rem; line-height: 1.5; }
.bigben-ios .dashboard-metrics { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 16px; }
.bigben-ios .dashboard-metrics .card { display: flex; align-items: center; gap: 14px; min-height: 150px; padding: 22px; margin: 0; }
.bigben-ios .dashboard-metrics .card > div { display: grid; flex: 1; gap: 7px; min-width: 0; }
.bigben-ios .dashboard-metrics .card > div > span { font-size: .81rem; color: var(--bb-muted); }
.bigben-ios .dashboard-metrics strong { color: var(--bb-ink); font-size: clamp(1.4rem,2vw,2rem); letter-spacing: -.04em; line-height: 1.2; font-weight: 650; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.bigben-ios .dashboard-metrics .primary-metric strong { font-size: clamp(1.9rem,2.8vw,3rem); }
.bigben-ios .dashboard-metrics small { font-size: .73rem; line-height: 1.4; color: var(--bb-muted); }
.bigben-ios .metric-glyph { display: grid; flex: 0 0 40px; width: 40px; height: 40px; place-items: center; color: var(--bb-gold); border-radius: 12px; background: var(--bb-gold-soft); }
.bigben-ios .metric-detail { display: grid; place-items: center; min-width: 44px; min-height: 44px; color: var(--bb-muted); }
.bigben-ios .compact-metric > .ui-icon { width: 16px; color: var(--bb-muted); }
.bigben-ios .dashboard-columns { display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px; }
.bigben-ios .dashboard-columns > section { min-width: 0; }
.bigben-ios .action-list { padding: 0 18px; overflow: hidden; }
.bigben-ios .action-list > a { display: flex; align-items: center; gap: 12px; min-height: 94px; padding: 18px 0; border-bottom: 1px solid var(--bb-line); color: var(--bb-ink); }
.bigben-ios .action-list > a:last-child { border-bottom: 0; }
.bigben-ios .action-list > a > div { flex: 1; min-width: 0; display: grid; gap: 5px; }
.bigben-ios .action-list strong { font-size: .88rem; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.bigben-ios .action-list small { color: var(--bb-muted); font-size: .75rem; line-height: 1.4; }
.bigben-ios .action-list b { font-size: 1.05rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.bigben-ios .action-list > a > .ui-icon { width: 16px; color: var(--bb-muted); }
.bigben-ios .list-icon { display: grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0; border: 1px solid var(--bb-line); border-radius: 12px; color: var(--bb-gold); background: var(--bb-input); }
.bigben-ios .list-icon.attention { color: var(--bb-warning); border-color: #f1c57b33; }
.bigben-ios .unit-list > a { min-height: 94px; }
.bigben-ios .notification-preview { padding: 18px; gap: 14px; }
.bigben-ios .notification-preview p { font-size: .8rem; }
.bigben-ios .list-search { max-width: 600px; margin: 20px 0 16px; }
.bigben-ios .list-search > div { position: relative; }
.bigben-ios .list-search .ui-icon { position: absolute; left: 14px; top: 14px; color: var(--bb-muted); }
.bigben-ios .list-search input { width: 100%; padding-left: 44px; }
.bigben-ios .list-limit-note, .bigben-ios .search-empty { margin: 12px 0; font-size: .8rem; line-height: 1.5; color: var(--bb-muted); }
/* Cash workflow progressively enhances the existing form. No-JS keeps every section visible. */
.bigben-ios .cash-progress { padding: 20px; border: 1px solid var(--bb-line); border-radius: 18px; background: var(--bb-surface); }
.bigben-ios .cash-progress-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; font-size: .73rem; color: var(--bb-muted); }
.bigben-ios .cash-progress-heading > span { min-width: 0; overflow-wrap: anywhere; }
.bigben-ios .cash-progress-heading strong { flex-shrink: 0; color: var(--bb-gold); font-weight: 600; }
.bigben-ios .cash-progress ol { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
.bigben-ios .cash-progress button { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; min-height: 44px; padding: 7px 4px; border: 0; border-radius: 12px; color: var(--bb-muted); background: transparent; }
.bigben-ios .cash-progress button > span { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--bb-line-strong); border-radius: 50%; font-size: .72rem; }
.bigben-ios .cash-progress button > strong { font-size: .76rem; font-weight: 550; }
.bigben-ios .cash-progress button[aria-current=step] { background: var(--bb-gold-soft); color: var(--bb-gold); }
.bigben-ios .cash-progress button[aria-current=step] > span { color: #17140e; background: var(--bb-gold); border-color: var(--bb-gold); }
.bigben-ios .cash-progress button.is-complete > span { color: var(--bb-success); border-color: #7ad6ad55; }
.bigben-ios .cash-progress > p { margin: 18px 0 0; font-size: .75rem; line-height: 1.5; }
.bigben-ios .cash-wizard-ready { display: grid; grid-template-columns: 260px minmax(0,1fr); max-width: 1180px; gap: 24px; align-items: start; }
.bigben-ios .cash-wizard-ready > .cash-progress { position: sticky; top: 24px; grid-column: 1; grid-row: 1; }
.bigben-ios .cash-wizard-ready > [data-wizard-panel] { grid-column: 2; grid-row: 1; min-width: 0; padding: 28px; margin: 0; }
.bigben-ios .cash-wizard-ready .section-heading { gap: 0; margin-bottom: 24px; padding-bottom: 0; border: 0; }
.bigben-ios .cash-wizard-ready .section-heading .step-number { display: none; }
.bigben-ios .cash-wizard-ready .section-heading h2 { font-size: 1.35rem; }
.bigben-ios .cash-wizard-ready .section-heading p { font-size: .82rem; margin-top: 6px; }
.bigben-ios .cash-wizard-ready .target-pill { font-size: .72rem; padding: 6px 10px; }
.bigben-ios .cash-wizard-ready .closure-identification-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 16px; }
.bigben-ios .cash-wizard-ready .closure-identification-grid > .field:nth-child(-n+2) { grid-column: auto; }
.bigben-ios .cash-wizard-ready .opening-float-confirm-card { padding: 18px; margin: 22px 0 14px; background: var(--bb-input); }
.bigben-ios .cash-wizard-ready .opening-float-copy { width: 100%; }
.bigben-ios .cash-wizard-ready .opening-float-copy > span { display: block; color: var(--bb-muted); font-size: .8rem; letter-spacing: 0; text-transform: none; }
.bigben-ios .cash-wizard-ready .opening-float-input-wrap { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.bigben-ios .cash-wizard-ready .opening-float-currency { font-size: 1.3rem; }
.bigben-ios .cash-wizard-ready .opening-float-input-wrap input { height: 52px; font-size: 1.4rem; padding: 10px 12px; }
.bigben-ios .cash-wizard-ready .opening-float-copy small { display: block; margin-top: 10px; font-size: .73rem; line-height: 1.5; }
.bigben-ios .cash-wizard-ready .confirm-box { margin: 12px 0 0; }
.bigben-ios .cash-wizard-ready .confirm-box input { flex: 0 0 22px; margin-top: 2px; }
.bigben-ios .shift-picker { margin: 0; padding: 0; border: 0; }
.bigben-ios .shift-picker legend { margin-bottom: 9px; color: var(--bb-muted); font-size: .8rem; font-weight: 550; }
.bigben-ios .shift-picker > div { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border: 1px solid var(--bb-line-strong); border-radius: 12px; background: var(--bb-input); }
.bigben-ios .shift-picker label { position: relative; display: block; }
.bigben-ios .shift-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.bigben-ios .shift-picker label > span { display: flex; gap: 8px; align-items: center; justify-content: center; min-height: 44px; border-radius: 8px; color: var(--bb-muted); font-size: .82rem; font-weight: 600; }
.bigben-ios .shift-picker input:checked + span { color: #17140e; background: var(--bb-gold); }
.bigben-ios .shift-picker input:focus-visible + span { outline: 2px solid var(--bb-gold); outline-offset: 3px; }
.bigben-ios .shift-picker .ui-icon { width: 18px; height: 18px; }
.bigben-ios .wizard-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }
.bigben-ios .wizard-actions > button { flex: 1; }
.bigben-ios .cash-count-footer { position: sticky; bottom: 16px; padding: 16px; margin-top: 22px; border: 1px solid var(--bb-line-strong); border-radius: 16px; background: var(--bb-raised); box-shadow: var(--bb-shadow); z-index: 3; }
.bigben-ios .cash-count-total { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.bigben-ios .cash-count-total > span { color: var(--bb-muted); font-size: .8rem; }
.bigben-ios .cash-count-total strong { color: var(--bb-gold); font-size: 1.3rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.bigben-ios .cash-count-footer .wizard-actions { margin-top: 14px; }
.bigben-ios .cash-wizard-ready .cash-table { min-width: 0; width: 100%; }
.bigben-ios .cash-wizard-ready .cash-table th { white-space: normal; font-size: .65rem; padding: 12px 6px; }
.bigben-ios .cash-wizard-ready .cash-table td { padding: 12px 6px; }
.bigben-ios .cash-wizard-ready .banknote { white-space: nowrap; font-size: .86rem; padding: 7px; }
.bigben-ios .cash-review-context { display: grid; gap: 10px; margin: 0 0 20px; padding: 14px 0; border-block: 1px solid var(--bb-line); }
.bigben-ios .cash-review-context > div { display: flex; justify-content: space-between; gap: 20px; font-size: .77rem; }
.bigben-ios .cash-review-context dt { color: var(--bb-muted); }
.bigben-ios .cash-review-context dd { margin: 0; text-align: right; color: var(--bb-ink); overflow-wrap: anywhere; max-width: 70%; }
.bigben-ios .cash-wizard-ready .closure-result-grid { grid-template-columns: 1fr; gap: 0; border: 1px solid var(--bb-line); border-radius: 16px; overflow: hidden; }
.bigben-ios .cash-wizard-ready .closure-result-grid .summary-item { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 6px 14px; padding: 17px; min-height: 82px; border: 0; border-bottom: 1px solid var(--bb-line); border-radius: 0; background: var(--bb-input); box-shadow: none; }
.bigben-ios .cash-wizard-ready .closure-result-grid .summary-item:last-child { border: 0; background: #f1c57b0c; }
.bigben-ios .cash-wizard-ready .summary-item > span { font-size: .81rem; color: var(--bb-ink); }
.bigben-ios .cash-wizard-ready .summary-item > strong { font-size: clamp(1rem,1.5vw,1.5rem); text-align: right; }
.bigben-ios .cash-wizard-ready .summary-item > small { grid-column: 1 / -1; font-size: .69rem; }
.bigben-ios .cash-wizard-ready .info-banner { margin: 16px 0; padding: 14px; }
.bigben-ios .cash-wizard-ready .info-banner p { font-size: .76rem; }
.bigben-ios .cash-wizard-ready .sticky-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.bigben-ios .cash-wizard-ready .sticky-actions > * { flex: 1; }
.bigben-ios .cash-wizard-ready .sticky-actions > [data-register-closure] { flex: 1 1 100%; order: -1; }
.bigben-ios .cash-wizard-ready .wizard-cancel { display: none; }
.bigben-ios .cash-wizard-ready > .draft-recovery { grid-column: 1 / -1; grid-row: auto; }
.bigben-ios .is-value-updated { animation: bb-value-update 220ms ease-out; }
@keyframes bb-value-update { from { color: var(--bb-gold); } to { color: inherit; } }
@keyframes bb-panel-enter { from { opacity: 1; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.bigben-ios .ui-enter { animation: bb-panel-enter 240ms var(--bb-ease) both; }
.bigben-ios .wizard-panel-enter { animation: bb-panel-enter 220ms var(--bb-ease) both; }
@media (min-width: 901px) {
  .bigben-ios .cash-progress ol { grid-template-columns: 1fr; gap: 10px; }
  .bigben-ios .cash-progress button { justify-content: flex-start; padding: 10px; }
}
@media (max-width: 1280px) and (min-width: 901px) {
  .bigben-ios .dashboard-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .bigben-ios .dashboard-metrics .primary-metric { grid-column: 1 / -1; }
  .bigben-ios .cash-wizard-ready { grid-template-columns: 210px minmax(0,1fr); gap: 16px; }
  .bigben-ios .cash-wizard-ready > [data-wizard-panel] { padding: 22px 18px; }
}
@media (max-width: 1100px) {
  .bigben-ios .cash-wizard-ready .cash-table { display: block; }
  .bigben-ios .cash-wizard-ready .cash-table thead { display: none; }
  .bigben-ios .cash-wizard-ready .cash-table tbody { display: grid; gap: 10px; }
  .bigben-ios .cash-wizard-ready .cash-table tr { display: grid; grid-template-columns: minmax(62px,1fr) 160px; gap: 8px; padding: 12px; border: 1px solid var(--bb-line); border-radius: 14px; background: var(--bb-input); }
  .bigben-ios .cash-wizard-ready .cash-table td { display: flex; align-items: center; width: auto; min-height: 0; padding: 0; border: 0; }
  .bigben-ios .cash-wizard-ready .cash-table td::before { display: none; }
  .bigben-ios .cash-wizard-ready .cash-table td:nth-child(1) { grid-area: 1 / 1; }
  .bigben-ios .cash-wizard-ready .cash-table td:nth-child(2) { grid-area: 2 / 1 / 3 / 3; justify-content: flex-start; gap: 3px; font-size: .68rem; color: var(--bb-muted); }
  .bigben-ios .cash-wizard-ready .cash-table td:nth-child(2)::before { content: 'Meta:'; display: inline; }
  .bigben-ios .cash-wizard-ready .cash-table td:nth-child(3) { grid-area: 1 / 2; }
  .bigben-ios .cash-wizard-ready .cash-table td:nth-child(4) { grid-area: 3 / 1; justify-content: flex-start; }
  .bigben-ios .cash-wizard-ready .cash-table td:nth-child(4) strong { font-size: .8rem; color: var(--bb-ink); }
  .bigben-ios .cash-wizard-ready .cash-table td:nth-child(5) { grid-area: 3 / 2; justify-content: flex-end; text-align: right; }
  .bigben-ios .cash-wizard-ready .destination { font-size: .64rem; }
  .bigben-ios .cash-wizard-ready .count-stepper { display: grid; grid-template-columns: 44px minmax(0,1fr) 44px; width: 160px; min-width: 0; }
  .bigben-ios .cash-wizard-ready .count-stepper input, .bigben-ios .cash-wizard-ready .count-stepper button { width: 100%; height: 44px; min-height: 44px; }
  .bigben-ios .cash-wizard-ready .cash-table-wrap { overflow: visible; }
}
@media (max-width: 900px) {
  body.bigben-ios.app-shell .content, body.bigben-ios.app-shell.role-employee .content, body.bigben-ios.app-shell.page-profile.role-employee .content { width: 100%; margin: 0; padding: calc(90px + env(safe-area-inset-top,0px)) 18px var(--bb-tab-space); }
  .bigben-ios .mobile-header, .bigben-ios .mobile-header.is-compact { height: calc(64px + env(safe-area-inset-top,0px)); min-height: calc(64px + env(safe-area-inset-top,0px)); padding: env(safe-area-inset-top,0px) 18px 0; border-bottom: 1px solid var(--bb-line); }
  .bigben-ios .mobile-brand { gap: 9px; }
  .bigben-ios .mobile-brand > span { font-size: 1rem; letter-spacing: .03em; }
  .bigben-ios .mobile-brand small { font-size: .53rem; letter-spacing: .1em; }
  .bigben-ios .mobile-brand img { width: 34px; height: 34px; }
  .bigben-ios .bottom-nav { bottom: max(10px,env(safe-area-inset-bottom,0px)); height: 62px; min-height: 62px; left: 12px; right: 12px; padding: 5px; border-radius: 23px; }
  body.bigben-ios.role-employee .employee-bottom-nav { display: grid !important; grid-template-columns: 1fr 1fr !important; max-width: 420px; margin-inline: auto; }
  body.bigben-ios.role-employee.keyboard-open .employee-bottom-nav { display: none !important; }
  .bigben-ios .dashboard-toolbar { align-items: stretch; }
  .bigben-ios .period-switch { flex: 1; min-width: 210px; max-width: none; }
  .bigben-ios .unit-switch { flex: 1; min-width: min(100%,260px); }
  .bigben-ios .unit-switch .field, .bigben-ios .unit-switch select { width: 100%; max-width: none; }
  .bigben-ios .dashboard-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .bigben-ios .dashboard-metrics .primary-metric { grid-column: 1 / -1; min-height: 124px; }
  .bigben-ios .dashboard-metrics .compact-metric { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 12px; min-height: 150px; padding: 16px; }
  .bigben-ios .compact-metric > .ui-icon { display: none; }
  .bigben-ios .dashboard-metrics .primary-metric strong { font-size: clamp(1.8rem,6vw,2.3rem); }
  .bigben-ios .dashboard-metrics .compact-metric strong { font-size: clamp(1.25rem,4.3vw,1.8rem); }
  .bigben-ios .dashboard-columns { grid-template-columns: 1fr; gap: 0; }
  .bigben-ios .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .bigben-ios .cash-wizard-ready { grid-template-columns: 1fr; gap: 16px; }
  .bigben-ios .cash-wizard-ready > .cash-progress { position: static; grid-column: 1; grid-row: auto; padding: 14px; }
  .bigben-ios .cash-progress ol { margin-top: 12px; }
  .bigben-ios .cash-progress > p { display: none; }
  .bigben-ios .cash-wizard-ready > [data-wizard-panel] { grid-column: 1; grid-row: auto; padding: 22px 18px; }
  .bigben-ios .cash-wizard-ready .closure-identification-grid { grid-template-columns: 1fr; }
  .bigben-ios .cash-wizard-ready .closure-identification-grid > .field { grid-column: 1; }
  .bigben-ios .cash-wizard-ready .cash-count-footer { position: static; margin-top: 16px; padding: 14px; }
  .bigben-ios .cash-wizard-ready .cash-table tr { grid-template-columns: minmax(58px,1fr) 160px; padding: 10px; }
  .bigben-ios .cash-wizard-ready .section-heading h2 { font-size: 1.18rem; }
  .bigben-ios .cash-wizard-ready .summary-item > strong { font-size: clamp(1rem,4vw,1.35rem); }
  .bigben-ios .monthly-bars { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 14px 10px; }
  .bigben-ios .monthly-bars .bar-track { height: 110px; }
}
@media (max-width: 374px) {
  body.bigben-ios.app-shell .content, body.bigben-ios.app-shell.role-employee .content { padding-inline: 12px; }
  .bigben-ios .cash-wizard-ready > [data-wizard-panel] { padding: 18px 12px; }
  .bigben-ios .cash-wizard-ready .cash-table tr { padding: 8px; gap: 7px; grid-template-columns: minmax(50px,1fr) 152px; }
  .bigben-ios .cash-wizard-ready .count-stepper { width: 152px; }
  .bigben-ios .cash-progress { padding: 12px; }
  .bigben-ios .cash-progress button { gap: 4px; }
  .bigben-ios .cash-progress button > strong { font-size: .69rem; }
  .bigben-ios .dashboard-metrics .compact-metric { padding: 13px; }
  .bigben-ios .dashboard-scope span { display: block; }
  .bigben-ios .action-list { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .bigben-ios .ui-enter, .bigben-ios .wizard-panel-enter, .bigben-ios .is-value-updated { animation: none !important; }
}
@media print {
  .bigben-ios .cash-progress, .bigben-ios .wizard-actions, .bigben-ios .cash-count-footer, .bigben-ios .dashboard-toolbar { display: none !important; }
  .bigben-ios .cash-wizard-ready { display: block; }
  .bigben-ios .cash-wizard-ready [data-wizard-panel] { display: block !important; break-inside: avoid; }
}
/* Report tracks keep true zero values invisible and both chart rows in normal flow. */
.bigben-ios .page-reports .monthly-bars, .bigben-ios.page-reports .monthly-bars { height: auto; min-height: 240px; padding: 12px 0 0; overflow: visible; }
.bigben-ios .month-bar { grid-template-rows: 30px 180px 20px; }
.bigben-ios .bar-track > span { min-height: 0; background: var(--bb-gold); box-shadow: none; }
.bigben-ios .month-bar .bar-track { height: 180px; }
.bigben-ios .month-bar .bar-track::after { display: none; }
@media (max-width: 900px) {
  .bigben-ios.page-reports .monthly-bars { min-height: 0; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 16px 10px; }
  .bigben-ios .month-bar, .bigben-ios.page-reports .month-bar { grid-template-rows: 110px 20px; }
  .bigben-ios .month-bar .bar-track { height: 110px; }
  .bigben-ios .month-bar .bar-value { display: none; }
}
@media (max-width: 900px) {
  .bigben-ios .closure-identification-grid > .closure-date-field,
  .bigben-ios .closure-identification-grid > .closure-shift-field { grid-column: 1 / -1; }
}

/* BIG BEN iOS Design System 3.0 • rc4. Shared across every real PHP module.
   Breakpoints: 374 / 600 / 900 / 1100 / 1280. No runtime library or remote font. */
:root {
  --bb-canvas: #080a0b; --bb-surface: #111416; --bb-raised: #191d20; --bb-input: #0c0f11;
  --bb-glass: rgba(14,17,19,.94); --bb-ink: #f4f2ec; --bb-muted: #b0b5ba;
  --bb-gold: #dfbc78; --bb-gold-soft: rgba(223,188,120,.10);
  --bb-line: rgba(235,239,242,.10); --bb-line-strong: rgba(235,239,242,.19);
  --bb-radius-sm: 10px; --bb-radius: 18px; --bb-radius-lg: 24px;
  --bb-tab-height: 64px; --bb-tab-space: calc(100px + env(safe-area-inset-bottom,0px));
  --bb-shadow: 0 10px 28px #0002; --bb-shadow-float: 0 14px 40px #0007, inset 0 1px #ffffff06;
  --bb-panel-duration: 420ms; --bb-ease: cubic-bezier(.22,.8,.24,1);
}
body.bigben-ios.app-shell { display: block; background: var(--bb-canvas); }
.bigben-ios .ambient-canvas { display: none; }
.bigben-ios .content { width: auto; max-width: 1672px; min-width: 0; }
.bigben-ios .page-heading h1 { font-size: clamp(1.8rem,2.6vw,2.6rem); letter-spacing: -.045em; }
.bigben-ios .page-heading .eyebrow { font-size: .63rem; }
.bigben-ios .page-heading p { font-size: .86rem; }
.bigben-ios .sidebar { background: #0b0e10; }
.bigben-ios .sidebar::after { display: none; }
.bigben-ios .brand { height: 116px; padding: 22px; gap: 12px; }
.bigben-ios .brand .brand-logo { width: 52px; height: 52px; }
.bigben-ios .brand strong, .bigben-ios .mobile-brand > span { color: var(--bb-gold); font-family: Georgia,serif; font-weight: 700; letter-spacing: .015em; }
.bigben-ios .brand .brand-eyebrow { display: none; }
.bigben-ios .brand small { font-size: .56rem; letter-spacing: .02em; }
.bigben-ios .main-nav { padding-block: 22px; gap: 2px; }
.bigben-ios .nav-link { min-height: 48px; font-size: .85rem; border-radius: 10px; }
.bigben-ios .nav-link.active { color: var(--bb-gold); background: #ffffff06; border-color: transparent; box-shadow: inset 2px 0 var(--bb-gold); }
.bigben-ios .nav-link-primary { color: var(--bb-muted); }
.bigben-ios .ui-icon { width: 22px; height: 22px; stroke-width: 1.6; }
.bigben-ios .nav-link.active [data-icon=dashboard] .icon-house, .bigben-ios .bottom-nav .active [data-icon=dashboard] .icon-house { fill: currentColor; stroke-width: 1.2; }
.bigben-ios .sidebar-dismiss { display: none; }
.bigben-ios .desktop-header { min-height: 48px; margin-bottom: 26px; padding-bottom: 14px; }
.bigben-ios .desktop-context { font-size: .73rem; }
.bigben-ios .header-profile .avatar { color: var(--bb-ink); border: 1px solid var(--bb-line-strong); background: var(--bb-input); font-weight: 500; }
.bigben-ios .button-primary { background: var(--bb-gold); box-shadow: inset 0 1px #fff3; }
.bigben-ios .button-secondary { background: #ffffff03; }
.bigben-ios .card, .bigben-ios .metric-card, .bigben-ios .summary-item, .bigben-ios .store-card { box-shadow: inset 0 1px #ffffff03; }
.bigben-ios .badge { padding: 6px 10px; border: 1px solid var(--bb-line); border-radius: 999px; }
.bigben-ios .badge-success { border-color: #7ad6ad33; }
.bigben-ios .badge-warning { border-color: #f1c57b33; }
.bigben-ios .badge-danger { border-color: #ff929933; }
.bigben-ios .metric-icon, .bigben-ios .metric-glyph, .bigben-ios .list-icon { background: #ffffff03; border: 1px solid var(--bb-line); }
.bigben-ios .list-icon { width: 42px; height: 42px; border-radius: 13px; }
.bigben-ios .section-block { margin-top: 28px; }
.bigben-ios .block-heading { align-items: center; margin-bottom: 14px; }
.bigben-ios .block-heading .eyebrow { margin-bottom: 5px; }
.bigben-ios .block-heading h2 { font-size: 1.12rem; }
.bigben-ios .block-heading .text-link { color: var(--bb-muted); font-size: .75rem; }
.bigben-ios .results-bar { flex-wrap: wrap; gap: 10px 20px; padding-block: 16px; font-size: .8rem; }
.bigben-ios .table-card { overflow: hidden; }
.bigben-ios .responsive-table { width: 100%; }
.bigben-ios th { font-size: .64rem; padding-block: 15px; text-transform: uppercase; letter-spacing: .035em; }
.bigben-ios td { font-size: .8rem; padding-block: 16px; overflow-wrap: anywhere; }
.bigben-ios .row-action { font-weight: 500; }
.bigben-ios .notification-item, .bigben-ios .notification-preview { border-color: var(--bb-line); border-radius: 16px; background: var(--bb-surface); box-shadow: none; }
.bigben-ios .notification-item.unread { border-left: 2px solid var(--bb-gold); }
.bigben-ios .notification-item p { font-size: .82rem; }
.bigben-ios .notification-icon { border-radius: 13px; }
.bigben-ios .draft-recovery { border: 1px solid #dfbc7840; border-radius: 16px; color: var(--bb-ink); background: var(--bb-raised); }
/* Consolidated cash card: all three values use the same scope and saved aggregates. */
.bigben-ios .dashboard-overview { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); gap: 22px; align-items: stretch; margin-top: 32px; }
.bigben-ios .dashboard-hero { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: center; min-width: 0; min-height: 255px; padding: clamp(22px,2.8vw,36px); border-color: #dfbc784d; background: #15181a; }
.bigben-ios .dashboard-hero::before, .bigben-ios .dashboard-hero::after { display: block; content: ''; position: absolute; z-index: -1; inset: -13px 10px 12px 10px; border: 1px solid #dfbc7838; border-radius: inherit; background: #181916; transform: rotate(-1.7deg); pointer-events: none; box-shadow: none; opacity: 1; }
.bigben-ios .dashboard-hero::after { inset: -23px 20px 23px 20px; background: #222016; transform: rotate(1.6deg); z-index: -2; }
.bigben-ios .hero-heading { display: flex; gap: 20px; align-items: center; min-width: 0; }
.bigben-ios .hero-heading > div, .bigben-ios .envelope-overview-main > div { min-width: 0; }
.bigben-ios .hero-glyph { display: grid; flex: 0 0 auto; place-items: center; width: 44px; height: 44px; color: var(--bb-gold); }
.bigben-ios .hero-glyph .ui-icon { width: 34px; height: 34px; stroke-width: 1.3; }
.bigben-ios .hero-heading .eyebrow { color: var(--bb-ink); font-size: .65rem; font-weight: 500; letter-spacing: .13em; margin-bottom: 10px; }
.bigben-ios .hero-amount { display: block; font-size: clamp(2rem,3.1vw,3rem); color: var(--bb-ink); font-weight: 650; letter-spacing: -.04em; line-height: 1.12; overflow-wrap: anywhere; font-variant-numeric: tabular-nums lining-nums; }
.bigben-ios .hero-breakdown { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--bb-line-strong); }
.bigben-ios .hero-breakdown > div { min-width: 0; padding-right: 14px; }
.bigben-ios .hero-breakdown > div + div { padding: 0 0 0 22px; border-left: 1px solid var(--bb-line-strong); }
.bigben-ios .hero-breakdown dt, .bigben-ios .envelope-states dt { color: var(--bb-muted); font-size: .8rem; }
.bigben-ios .hero-breakdown dd, .bigben-ios .envelope-states dd { margin: 7px 0 0; color: var(--bb-ink); font-size: clamp(1.1rem,1.8vw,1.6rem); font-weight: 600; letter-spacing: -.025em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.bigben-ios .hero-footnote { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 44px; margin: 12px 0 -12px; color: var(--bb-muted); font-size: .66rem; line-height: 1.4; }
.bigben-ios .hero-footnote .ui-icon { width: 16px; height: 16px; }
.bigben-ios .overview-support { display: grid; gap: 12px; }
.bigben-ios .overview-stat { display: flex; align-items: center; gap: 16px; padding: 20px; min-width: 0; }
.bigben-ios .overview-stat > div { display: grid; gap: 5px; flex: 1; min-width: 0; }
.bigben-ios .overview-stat > div > span { color: var(--bb-ink); font-size: .84rem; }
.bigben-ios .overview-stat strong { font-size: 1.9rem; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.bigben-ios .overview-stat small { font-size: .71rem; color: var(--bb-muted); line-height: 1.4; }
.bigben-ios .overview-stat > .ui-icon { width: 15px; color: var(--bb-muted); }
.bigben-ios .has-pending .list-icon, .bigben-ios .has-pending .fund-state { color: var(--bb-warning); }
.bigben-ios .no-pending .list-icon, .bigben-ios .no-pending .fund-state { color: var(--bb-success); }
.bigben-ios .dashboard-columns { grid-template-columns: minmax(0,1fr) minmax(0,1.3fr); }
.bigben-ios .unit-reference-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.bigben-ios .unit-reference-grid > a { display: flex; align-items: flex-start; gap: 12px; padding: 18px; border: 1px solid var(--bb-line); border-radius: 16px; background: var(--bb-surface); }
.bigben-ios .unit-reference-grid > a > div { display: grid; gap: 6px; min-width: 0; }
.bigben-ios .unit-reference-grid strong { font-size: .8rem; font-weight: 550; overflow-wrap: anywhere; }
.bigben-ios .unit-reference-grid small { color: var(--bb-muted); font-size: .7rem; line-height: 1.4; }
.bigben-ios .unit-reference-grid > a > .ui-icon { display: none; }
/* Funds and envelope overview use only the saved composition / records in the list. */
.bigben-ios .fund-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; padding: 24px; margin-bottom: 20px; }
.bigben-ios .fund-ring { position: relative; width: 112px; height: 112px; flex: 0 0 112px; }
.bigben-ios .fund-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); fill: none; stroke-width: 5; }
.bigben-ios .fund-track { stroke: var(--bb-line); }
.bigben-ios .fund-fill { stroke: var(--bb-success); stroke-linecap: round; }
.bigben-ios .has-pending .fund-fill { stroke: var(--bb-warning); }
.bigben-ios .fund-ring > strong { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.6rem; font-weight: 550; letter-spacing: -.035em; }
.bigben-ios .fund-panel-copy { flex: 1; min-width: 165px; }
.bigben-ios .fund-panel-copy p { margin: 8px 0 10px; font-size: .8rem; }
.bigben-ios .fund-state { display: inline-flex; align-items: center; gap: 7px; font-size: .74rem; line-height: 1.4; }
.bigben-ios .fund-state .ui-icon { width: 18px; height: 18px; }
.bigben-ios .fund-shortages { display: flex; flex-wrap: wrap; gap: 8px; flex-basis: 100%; border-top: 1px solid var(--bb-line); padding-top: 16px; }
.bigben-ios .fund-shortages > span { padding: 7px 10px; border-radius: 9px; border: 1px solid #f1c57b24; color: var(--bb-warning); font-size: .75rem; font-variant-numeric: tabular-nums; }
.bigben-ios .envelope-overview { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.2fr); gap: 30px; align-items: center; padding: 28px; margin-bottom: 24px; }
.bigben-ios .envelope-overview-main { display: flex; align-items: center; gap: 18px; min-width: 0; }
.bigben-ios .envelope-overview-main p { margin: 10px 0 0; font-size: .74rem; }
.bigben-ios .envelope-states { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin: 0; }
.bigben-ios .envelope-states > div { min-width: 0; border-left: 1px solid var(--bb-line); padding-left: 16px; }
.bigben-ios .envelope-states dd { font-size: 1.12rem; }
.bigben-ios .envelope-states dt { font-size: .72rem; }
.bigben-ios .replenishment-card { padding: 24px; }
.bigben-ios .replenishment-composition { font-size: .86rem; line-height: 1.6; color: var(--bb-ink); }
.bigben-ios .cash-progress { background: var(--bb-input); }
.bigben-ios .cash-progress button[aria-current=step] { background: var(--bb-gold-soft); }
.bigben-ios .cash-progress button[aria-current=step] > span { color: #18150e; border-color: transparent; background: var(--bb-gold); }
.bigben-ios .cash-progress button.is-complete > span { color: var(--bb-success); border-color: #7ad6ad55; background: #7ad6ad0a; }
.bigben-ios .cash-wizard-ready .closure-result-grid .summary-item.accent { background: #dfbc7809; }
.bigben-ios .cash-wizard-ready .summary-item.accent > strong { color: var(--bb-gold); }
.bigben-ios .cash-wizard-ready .summary-item.warning-soft > strong { color: var(--bb-warning); }
.bigben-ios .cash-wizard-ready .cash-table td:nth-child(2) { font-variant-numeric: tabular-nums; }
/* Finite entry and automatic graph reveal. Values are never interpolated. */
@keyframes bb-panel-enter { from { opacity: 1; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes bb-chart-enter { from { transform: scaleY(.55); } to { transform: scaleY(1); } }
.bigben-ios .ui-enter { animation: bb-panel-enter var(--bb-panel-duration) var(--bb-ease) backwards; }
.bigben-ios .wizard-panel-enter { animation: bb-panel-enter 280ms var(--bb-ease) backwards; }
.bigben-ios .ui-enter .bar-track > span { transform-origin: bottom; animation: bb-chart-enter 650ms var(--bb-ease) backwards; }
@media (hover: hover) and (pointer: fine) {
  .bigben-ios .overview-stat:hover, .bigben-ios .unit-reference-grid > a:hover { border-color: #dfbc7855; background: #181c1e; }
  .bigben-ios .overview-stat, .bigben-ios .unit-reference-grid > a { transition: border-color var(--bb-duration),background var(--bb-duration); }
}
@media (max-width: 1280px) and (min-width: 901px) {
  .bigben-ios .dashboard-overview { grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: 16px; }
  .bigben-ios .overview-stat { gap: 12px; padding: 18px; }
  .bigben-ios .overview-stat > .ui-icon { display: none; }
  .bigben-ios .dashboard-columns { grid-template-columns: 1fr; }
  .bigben-ios .envelope-overview { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 900px) {
  body.bigben-ios.app-shell .content, body.bigben-ios.app-shell.role-employee .content { padding: calc(84px + env(safe-area-inset-top,0px)) max(18px,env(safe-area-inset-right,0px)) var(--bb-tab-space) max(18px,env(safe-area-inset-left,0px)); }
  .bigben-ios .mobile-header, .bigben-ios .mobile-header.is-compact { justify-content: space-between; padding: env(safe-area-inset-top,0px) max(18px,env(safe-area-inset-right,0px)) 0 max(18px,env(safe-area-inset-left,0px)); background: var(--bb-glass); }
  .bigben-ios .mobile-header > [data-menu-toggle], .bigben-ios .mobile-header-spacer { display: none; }
  .bigben-ios .mobile-brand { gap: 10px; }
  .bigben-ios .mobile-brand img { width: 38px; height: 38px; }
  .bigben-ios .mobile-brand > span { font-size: 1.1rem; }
  .bigben-ios .mobile-brand small { font-family: var(--bb-font); font-weight: 500; font-size: .49rem; letter-spacing: .1em; }
  .bigben-ios .mobile-header .icon-button { border: 0; background: transparent; }
  .bigben-ios .sidebar-dismiss { display: grid; place-items: center; align-self: flex-end; margin: 0 16px 0 0; }
  .bigben-ios .sidebar .brand { height: auto; padding-top: 8px; }
  .bigben-ios .sidebar { padding-top: calc(12px + env(safe-area-inset-top,0px)); }
  .bigben-ios .bottom-nav { height: var(--bb-tab-height); min-height: var(--bb-tab-height); border-radius: 20px; background: var(--bb-glass); padding: 5px 4px; gap: 0; inset-inline: max(10px,env(safe-area-inset-left,0px)) max(10px,env(safe-area-inset-right,0px)); }
  .bigben-ios .bottom-nav > a, .bigben-ios .bottom-nav > button { height: 52px !important; gap: 4px !important; padding: 3px 1px 6px; border-radius: 12px !important; }
  .bigben-ios .bottom-nav > a.active, .bigben-ios .bottom-nav > button.active { background: transparent !important; }
  .bigben-ios .bottom-nav > a.active::after, .bigben-ios .bottom-nav > button.active::after { display: block !important; content: ''; position: absolute; inset: auto auto 0; width: 17px; height: 2px; border-radius: 2px; background: var(--bb-gold); transform: none; }
  .bigben-ios .bottom-nav .ui-icon { width: 23px !important; height: 23px !important; stroke-width: 1.55; }
  .bigben-ios .bottom-nav span, .bigben-ios .bottom-nav .bottom-action span { font-size: 10.5px; line-height: 12px; font-weight: 500; }
  .bigben-ios .page-heading { gap: 14px; margin-bottom: 20px; }
  .bigben-ios .page-heading h1 { font-size: 1.9rem; }
  .bigben-ios.page-dashboard .page-heading > .page-actions { width: auto; }
  .bigben-ios.page-dashboard .page-actions .button { min-height: 44px; padding-inline: 12px; font-size: .78rem; }
  .bigben-ios .dashboard-toolbar { flex-wrap: nowrap; gap: 10px; align-items: center; }
  .bigben-ios .period-switch { min-width: 0; width: auto; flex: 1.1; gap: 1px; padding: 3px; border-radius: 12px; }
  .bigben-ios .period-switch a { min-height: 44px; padding: 8px 2px; font-size: .74rem; }
  .bigben-ios .unit-switch { flex: 1; min-width: 0; }
  .bigben-ios .unit-switch select { padding-inline: 10px 28px; font-size: 16px; height: 52px; }
  .bigben-ios .unit-switch [data-auto-filter-button] { padding-inline: 8px; font-size: .7rem; }
  .bigben-ios .dashboard-scope { margin-block: 12px 28px; font-size: .68rem; }
  .bigben-ios .dashboard-overview { grid-template-columns: 1fr; gap: 16px; margin-top: 0; }
  .bigben-ios .dashboard-hero { min-height: 220px; padding: 22px; }
  .bigben-ios .hero-heading { gap: 14px; }
  .bigben-ios .hero-heading .eyebrow { font-size: .59rem; }
  .bigben-ios .hero-amount { font-size: clamp(1.7rem,7.5vw,2.55rem); }
  .bigben-ios .hero-glyph { width: 36px; height: 36px; }
  .bigben-ios .hero-glyph .ui-icon { width: 31px; height: 31px; }
  .bigben-ios .hero-breakdown { margin-top: 20px; padding-top: 17px; }
  .bigben-ios .hero-breakdown dt { font-size: .74rem; }
  .bigben-ios .hero-breakdown dd { font-size: clamp(1.1rem,4.9vw,1.65rem); }
  .bigben-ios .hero-breakdown > div + div { padding-left: 17px; }
  .bigben-ios .overview-support { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .bigben-ios .overview-stat { align-items: flex-start; padding: 16px 12px; gap: 10px; }
  .bigben-ios .overview-stat .list-icon { width: 28px; height: 30px; border: 0; background: transparent; }
  .bigben-ios .overview-stat > .ui-icon { display: none; }
  .bigben-ios .overview-stat > div > span { font-size: .71rem; line-height: 1.4; }
  .bigben-ios .overview-stat strong { font-size: 1.5rem; }
  .bigben-ios .overview-stat small { font-size: .64rem; }
  .bigben-ios .dashboard-columns { grid-template-columns: 1fr; gap: 0; }
  .bigben-ios .unit-reference-grid > a { padding: 16px 12px; gap: 10px; }
  .bigben-ios .unit-reference-grid .list-icon { width: 30px; height: 34px; border: 0; }
  .bigben-ios .envelope-overview { grid-template-columns: 1fr; gap: 22px; padding: 22px; }
  .bigben-ios .envelope-states { gap: 12px; padding-top: 20px; border-top: 1px solid var(--bb-line); }
  .bigben-ios .envelope-states > div { border: 0; padding: 0; }
  .bigben-ios .envelope-states dd { font-size: 1rem; }
  .bigben-ios .fund-panel { padding: 20px; gap: 18px; }
  .bigben-ios .fund-ring { width: 90px; height: 90px; flex-basis: 90px; }
  .bigben-ios .fund-ring > strong { font-size: 1.35rem; }
  .bigben-ios .mobile-record-table td, .bigben-ios .mobile-report-table tbody td { font-size: .8rem; border-color: var(--bb-line); }
  .bigben-ios .mobile-record-table tr, .bigben-ios .mobile-report-table tbody tr { animation: none; padding: 10px 16px; }
  .bigben-ios .cash-wizard-ready .cash-table tr { padding: 14px 12px; background: var(--bb-input); }
  .bigben-ios .cash-wizard-ready .banknote { background: #dfbc780a; color: var(--bb-gold); border-color: #dfbc7826; }
  .bigben-ios .report-chart-card { padding: 20px 14px; }
}
@media (max-width: 600px) {
  .bigben-ios .hero-footnote { font-size: .62rem; }
  .bigben-ios .fund-panel-copy { min-width: 125px; }
  .bigben-ios .fund-panel-copy h2 { font-size: 1rem; }
  .bigben-ios .envelope-states { grid-template-columns: 1fr; gap: 14px; }
  .bigben-ios .envelope-states > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .bigben-ios .envelope-states dd { margin: 0; text-align: right; }
}
@media (max-width: 374px) {
  body.bigben-ios.app-shell .content, body.bigben-ios.app-shell.role-employee .content { padding-inline: max(12px,env(safe-area-inset-left,0px)) max(12px,env(safe-area-inset-right,0px)); }
  .bigben-ios .dashboard-hero { padding: 20px 16px; }
  .bigben-ios .hero-heading { gap: 10px; }
  .bigben-ios .hero-glyph { width: 30px; }
  .bigben-ios .overview-stat { gap: 6px; padding: 14px 10px; }
  .bigben-ios .unit-reference-grid { grid-template-columns: 1fr; }
  .bigben-ios .fund-panel { gap: 12px; padding: 18px 14px; }
  .bigben-ios .cash-wizard-ready .cash-table tr { padding: 10px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .bigben-ios .ui-enter, .bigben-ios .wizard-panel-enter, .bigben-ios .ui-enter .bar-track > span { animation: none !important; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .bigben-ios .dashboard-hero, .bigben-ios .envelope-overview { border-color: var(--bb-line-strong); }
}
@media print {
  .bigben-ios .dashboard-hero::before, .bigben-ios .dashboard-hero::after, .bigben-ios .hero-footnote { display: none; }
  .bigben-ios .sidebar-dismiss { display: none !important; }
  .bigben-ios .dashboard-hero, .bigben-ios .envelope-overview, .bigben-ios .overview-stat { color: #111; background: white; border-color: #aaa; }
  .bigben-ios .fund-ring { display: none; }
}
/* Detail density and contrast verified on the actual saved-record template. */
.bigben-ios .page-heading::before, .bigben-ios .sidebar::before,
.bigben-ios .summary-item::before, .bigben-ios .summary-item::after { display: none; }
.bigben-ios .detail-summary.closure-result-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.bigben-ios .detail-summary .summary-item { padding: 18px; min-height: 100px; }
.bigben-ios .detail-summary .summary-item > span { font-size: .75rem; }
.bigben-ios .detail-summary .summary-item > strong { font-size: clamp(1.3rem,2vw,1.8rem); }
.bigben-ios .detail-summary .summary-item:first-child { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; grid-column: 1 / -1; min-height: 60px; }
.bigben-ios .detail-summary .summary-item:first-child strong { font-size: 1.1rem; }
.bigben-ios .envelope-label .label-brand strong, .bigben-ios .envelope-label .label-store, .bigben-ios .envelope-label dd { color: var(--bb-ink); }
.bigben-ios .envelope-label .label-brand small, .bigben-ios .envelope-label dt, .bigben-ios .envelope-label .label-id { color: var(--bb-muted); }
.bigben-ios .envelope-label .label-brand { border-color: var(--bb-line-strong); }
.bigben-ios .envelope-label dl > div { border-color: var(--bb-line); }
.bigben-ios .envelope-label .label-total { color: var(--bb-muted); background: var(--bb-raised); border: 1px solid var(--bb-line); border-radius: 14px; box-shadow: none; }
.bigben-ios .envelope-label .label-total strong { color: var(--bb-gold); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.bigben-ios .envelope-label .label-breakdown span { color: var(--bb-ink); background: var(--bb-raised); border: 1px solid var(--bb-line); }
@media (max-width: 900px) {
  .bigben-ios .detail-card .mobile-record-table tr { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px 6px; padding: 12px; }
  .bigben-ios .detail-card .mobile-record-table td { flex-direction: column; align-items: flex-start; justify-content: start; gap: 6px; min-width: 0; min-height: 0; padding: 0; border: 0; font-size: .95rem; }
  .bigben-ios .detail-card .mobile-record-table td::before { flex: none; width: auto; font-size: .62rem; font-weight: 500; line-height: 1.3; }
  .bigben-ios .detail-card .mobile-record-table td:first-child { flex-direction: row; align-items: center; justify-content: space-between; grid-column: 1 / -1; padding-bottom: 10px; border-bottom: 1px solid var(--bb-line); }
  .bigben-ios .dashboard-recent .mobile-dashboard-table tr { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 14px; padding: 16px; }
  .bigben-ios .dashboard-recent .mobile-dashboard-table td { min-height: 0; padding: 0; border: 0; text-align: left; font-size: .75rem; }
  .bigben-ios .dashboard-recent .mobile-dashboard-table td::before { font-weight: 500; font-size: .66rem; }
  .bigben-ios .dashboard-recent .mobile-dashboard-table td:nth-child(1) { grid-area: 2 / 1; flex-wrap: wrap; justify-content: start; gap: 4px 10px; }
  .bigben-ios .dashboard-recent .mobile-dashboard-table td:nth-child(1)::before { display: none; }
  .bigben-ios .dashboard-recent .mobile-dashboard-table td:nth-child(2) { grid-area: 1 / 1 / 2 / 3; font-size: .9rem; font-weight: 600; }
  .bigben-ios .dashboard-recent .mobile-dashboard-table td:nth-child(2)::before { display: none; }
  .bigben-ios .dashboard-recent .mobile-dashboard-table td:nth-child(3) { grid-area: 2 / 2; display: block; font-size: .7rem; overflow-wrap: anywhere; }
  .bigben-ios .dashboard-recent .mobile-dashboard-table td:nth-child(3)::before { display: block; font-size: .62rem; margin-bottom: 3px; }
  .bigben-ios .dashboard-recent .mobile-dashboard-table td:nth-child(4) { grid-area: 3 / 1; display: block; padding-top: 10px; border-top: 1px solid var(--bb-line); }
  .bigben-ios .dashboard-recent .mobile-dashboard-table td:nth-child(5) { grid-area: 3 / 2; display: block; padding-top: 10px; border-top: 1px solid var(--bb-line); }
  .bigben-ios .dashboard-recent .mobile-dashboard-table td:nth-child(4)::before, .bigben-ios .dashboard-recent .mobile-dashboard-table td:nth-child(5)::before { display: block; margin-bottom: 6px; }
  .bigben-ios .dashboard-recent .mobile-dashboard-table td:nth-child(6) { grid-area: 4 / 1; }
  .bigben-ios .dashboard-recent .mobile-dashboard-table td:nth-child(6)::before { display: none; }
  .bigben-ios .dashboard-recent .mobile-dashboard-table td:nth-child(7) { grid-area: 4 / 2; }
  .bigben-ios .dashboard-recent .mobile-card-action a { justify-content: end; width: 100%; border: 0; padding: 0; color: var(--bb-muted); background: transparent; font-size: .7rem; }
}
@media print {
  .bigben-ios .envelope-label .label-brand strong, .bigben-ios .envelope-label .label-store, .bigben-ios .envelope-label dd { color: #111; }
  .bigben-ios .envelope-label .label-total, .bigben-ios .envelope-label .label-breakdown span { background: #fff; color: #111; border-color: #aaa; }
  .bigben-ios .envelope-label .label-total strong { color: #111; }
}
@media (max-width: 900px) {
  .bigben-ios .bottom-nav > a, .bigben-ios .bottom-nav > button { justify-self: stretch !important; align-self: stretch; }
}
/* The native radio covers its full 44px segment, including touch and keyboard focus. */
.bigben-ios .shift-picker input { inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.bigben-ios .header-profile > span:last-child { max-width: min(18vw,210px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bigben-ios .desktop-context > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* rc5 — base visibility must never depend on an animation finishing. */
.bigben-ios .metric-grid .metric-card, .bigben-ios .store-grid .store-card,
.bigben-ios .notification-preview-grid > *, .bigben-ios .notification-list > *,
.bigben-ios .replenishment-list > *, .bigben-ios .is-observed { opacity: 1; }
.bigben-ios .ui-enter { animation-fill-mode: backwards; }
.bigben-ios .readonly-field { display: block; min-width: 0; min-height: 48px; padding: 13px 14px; border: 1px solid var(--bb-line-strong); border-radius: 12px; color: var(--bb-muted); background: var(--bb-input); font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.bigben-ios .denomination-detail-list { display: none; }
.bigben-ios .notification-item > div, .bigben-ios .notification-preview > div,
.bigben-ios .replenishment-main, .bigben-ios .replenishment-meta > span { min-width: 0; overflow-wrap: anywhere; }
.bigben-ios .mobile-count, .bigben-ios .nav-count { box-shadow: none; filter: none; text-shadow: none; }
.bigben-ios .mobile-count { top: 1px; right: 1px; border: 2px solid var(--bb-canvas); min-width: 20px; height: 20px; padding-inline: 3px; }
@media (max-width: 900px) {
  .bigben-ios .dashboard-scope { overflow-wrap: anywhere; }
  .bigben-ios .detail-layout .envelope-label { position: static; width: 100%; max-width: none; margin: 0; }
  .bigben-ios .label-store { font-family: var(--bb-font); font-size: 1rem; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
  .bigben-ios .envelope-label dl > div { gap: 12px; }
  .bigben-ios .envelope-label dd { max-width: 65%; text-align: right; overflow-wrap: anywhere; }
  .bigben-ios .desktop-denomination-detail { display: none; }
  .bigben-ios .denomination-detail-list { display: grid; gap: 12px; }
  .bigben-ios .denomination-detail { min-width: 0; padding: 14px; border: 1px solid var(--bb-line); border-radius: 14px; background: var(--bb-input); }
  .bigben-ios .denomination-detail > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--bb-line); }
  .bigben-ios .denomination-detail > header > span { color: var(--bb-muted); font-size: .76rem; }
  .bigben-ios .denomination-detail dl { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin: 14px 0 0; }
  .bigben-ios .denomination-detail dl > div { min-width: 0; }
  .bigben-ios .denomination-detail dt { color: var(--bb-muted); font-size: .72rem; line-height: 1.4; }
  .bigben-ios .denomination-detail dd { margin: 6px 0 0; text-align: left; color: var(--bb-ink); font-size: 1.2rem; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
  .bigben-ios .denomination-detail dd.money-accent { color: var(--bb-gold); }
  .bigben-ios .denomination-detail dd.text-warning { color: var(--bb-warning); }
  .bigben-ios .replenishment-card { padding-bottom: 20px; }
  .bigben-ios .replenishment-card .card-arrow-link { position: static; justify-content: flex-start; margin-top: 12px; }
  .bigben-ios .replenishment-action { min-width: 0; }
  .bigben-ios .replenishment-card .block-heading { flex-wrap: wrap; align-items: flex-start; }
  .bigben-ios .replenishment-card .block-heading > div { min-width: 0; }
  .bigben-ios .envelope-workflow .block-heading, .bigben-ios .detail-card .block-heading { flex-wrap: wrap; }
}
@media (max-width: 479px) {
  .bigben-ios .denomination-detail dl { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 20px; }
  .bigben-ios .denomination-detail dl > div:nth-child(n+3) { padding-top: 12px; border-top: 1px solid var(--bb-line); }
}
@media (max-width: 374px) {
  body.bigben-ios.app-shell .content, body.bigben-ios.app-shell.role-employee .content { padding-inline: max(12px,env(safe-area-inset-left,0px)) max(12px,env(safe-area-inset-right,0px)); }
  .bigben-ios .fund-panel { flex-direction: column; align-items: flex-start; }
  .bigben-ios .fund-panel-copy { min-width: 0; }
  .bigben-ios .fund-shortages { width: 100%; }
}
@media print {
  body.bigben-ios.app-shell { height: auto; overflow: visible; }
  body.bigben-ios.app-shell .content, body.bigben-ios.app-shell.role-employee .content { position: static; height: auto; min-height: 0; padding: 0; overflow: visible; }
  .bigben-ios .denomination-detail-list { display: none; }
  .bigben-ios .desktop-denomination-detail { display: block; }
}
/* rc6 — one viewport, native page scroll, immediate interaction state. */
:root {
  --bb-safe-top: env(safe-area-inset-top,0px);
  --bb-safe-bottom: env(safe-area-inset-bottom,0px);
  --bb-safe-left: env(safe-area-inset-left,0px);
  --bb-safe-right: env(safe-area-inset-right,0px);
  --bb-tab-height: 52px;
  --bb-tab-space: calc(var(--bb-tab-height) + var(--bb-safe-bottom) + 24px);
}
/* Operational lists are readable and tappable without waiting for any animation. */
.bigben-ios .notification-list > *, .bigben-ios .replenishment-list > * {
  opacity: 1 !important; transform: none !important; animation: none !important;
}
.bigben-ios .notification-item { grid-template-columns: 36px minmax(0,1fr) 16px; align-items: start; gap: 12px; }
.bigben-ios .notification-title { flex-wrap: wrap; gap: 6px 8px; }
.bigben-ios .notification-item p, .bigben-ios .notification-item small { overflow-wrap: anywhere; }
.bigben-ios .notification-item small { display: block; line-height: 1.5; }
.bigben-ios .notification-item .notification-icon { width: 36px; height: 36px; }
.bigben-ios .notification-item .card-arrow { align-self: center; }
.bigben-ios .ambient-canvas span { animation: none; filter: none; }
.bigben-ios .bottom-nav .ui-icon { animation: none !important; }
@media (max-width: 900px) {
  html { scroll-padding-block: calc(80px + var(--bb-safe-top)) var(--bb-tab-space); }
  body.bigben-ios.app-shell { height: auto; min-height: 100vh; min-height: 100dvh; overflow-y: visible; }
  body.bigben-ios.app-shell .content, body.bigben-ios.app-shell.role-employee .content,
  body.bigben-ios.app-shell.page-profile.role-employee .content {
    position: relative; inset: auto; width: 100%; max-width: none; height: auto; min-height: 100vh; min-height: 100dvh;
    margin: 0; padding: calc(84px + var(--bb-safe-top)) max(18px,var(--bb-safe-right)) var(--bb-tab-space) max(18px,var(--bb-safe-left));
    overflow: visible; overscroll-behavior: auto;
  }
  .bigben-ios .content input, .bigben-ios .content select, .bigben-ios .content textarea,
  .bigben-ios .content [data-wizard-progress] { scroll-margin-block: 16px; }
  .bigben-ios .mobile-header, .bigben-ios .mobile-header.is-compact {
    height: calc(64px + var(--bb-safe-top)); min-height: calc(64px + var(--bb-safe-top));
    padding: var(--bb-safe-top) max(18px,var(--bb-safe-right)) 0 max(18px,var(--bb-safe-left)); z-index: 50;
  }
  body.bigben-ios .bottom-nav, body.bigben-ios.role-employee .employee-bottom-nav {
    position: fixed; top: auto; bottom: 0; left: 0; right: 0; width: 100%; max-width: none; margin: 0;
    height: calc(var(--bb-tab-height) + var(--bb-safe-bottom)); min-height: calc(var(--bb-tab-height) + var(--bb-safe-bottom));
    padding: 2px max(8px,var(--bb-safe-right)) calc(2px + var(--bb-safe-bottom)) max(8px,var(--bb-safe-left));
    border: 1px solid var(--bb-line-strong); border-bottom: 0; border-radius: 16px 16px 0 0; gap: 0; z-index: 100;
    background: #0c0f11 !important; box-shadow: 0 -4px 16px #0002; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  }
  .bigben-ios .bottom-nav > a, .bigben-ios .bottom-nav > button {
    height: 44px !important; min-height: 44px; align-self: center; justify-self: stretch !important; gap: 2px !important; padding: 2px 0;
  }
  .bigben-ios .bottom-nav .ui-icon { width: 20px !important; height: 20px !important; }
  .bigben-ios .bottom-nav span, .bigben-ios .bottom-nav .bottom-action span { font-size: 10.5px; line-height: 12px; }
  body.bigben-ios.menu-open .bottom-nav { visibility: visible; pointer-events: auto; }
  body.bigben-ios.filter-sheet-open .bottom-nav { visibility: hidden; pointer-events: none; }
  .bigben-ios .sidebar {
    top: 0; bottom: 0; height: 100vh; height: 100dvh; max-height: 100dvh; width: min(86vw,320px); z-index: 90;
    padding-top: calc(8px + var(--bb-safe-top)); visibility: hidden; pointer-events: none;
    transform: translateX(calc(-100% - 20px)); transition: transform 180ms var(--bb-ease); background: #111416;
  }
  .bigben-ios.menu-open .sidebar { visibility: visible; pointer-events: auto; transform: translateX(0); }
  .bigben-ios .sidebar .main-nav { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .bigben-ios .sidebar-user { flex-shrink: 0; margin-bottom: calc(var(--bb-tab-height) + var(--bb-safe-bottom) + 12px); }
  .bigben-ios .sidebar-overlay { z-index: 80; visibility: hidden; opacity: 0; pointer-events: none; transition: opacity 160ms; touch-action: none; }
  .bigben-ios.menu-open .sidebar-overlay { visibility: visible; opacity: 1; pointer-events: auto; }
  .bigben-ios .mobile-sheet-overlay { z-index: 110; visibility: hidden; opacity: 0; pointer-events: none; transition: opacity 160ms; touch-action: none; }
  .bigben-ios .mobile-sheet-overlay.is-open { visibility: visible; opacity: 1; pointer-events: auto; }
  .bigben-ios .filter-card[data-filter-ready='1'] { z-index: 120; pointer-events: none; transition: transform 200ms var(--bb-ease); }
  .bigben-ios .filter-card[data-filter-ready='1'].is-open { pointer-events: auto; }
  .bigben-ios .dashboard-toolbar { display: grid; grid-template-columns: minmax(144px,1.05fr) minmax(0,1fr); align-items: start; gap: 8px; }
  .bigben-ios .period-switch { grid-template-columns: minmax(44px,1fr) minmax(52px,1.15fr) minmax(44px,1fr); width: 100%; min-width: 0; height: 48px; padding: 1px; gap: 0; }
  .bigben-ios .period-switch a { min-width: 0; min-height: 44px; padding: 6px 2px; font-size: .74rem; }
  .bigben-ios .unit-switch { display: grid; width: 100%; min-width: 0; gap: 8px; }
  .bigben-ios .unit-switch .field { width: 100%; min-width: 0; }
  .bigben-ios .unit-switch select { height: 48px; min-height: 48px; max-width: none; padding: 8px 26px 8px 10px; font-size: 16px; }
  .bigben-ios .unit-switch [data-auto-filter-button] { width: 100%; min-height: 44px; }
  .bigben-ios .notification-item { padding: 16px 12px; }
}
@media (max-width: 374px) {
  body.bigben-ios.app-shell .content, body.bigben-ios.app-shell.role-employee .content { padding-inline: max(12px,var(--bb-safe-left)) max(12px,var(--bb-safe-right)); }
  .bigben-ios .period-switch a { font-size: .7rem; padding-inline: 1px; }
}
@media print {
  body.bigben-ios.app-shell .content, body.bigben-ios.app-shell.role-employee .content { position: static; height: auto; min-height: 0; padding: 0; overflow: visible; }
  .bigben-ios .mobile-sheet-overlay, .bigben-ios .sidebar-overlay, .bigben-ios .filter-card[data-filter-ready='1'] { display: none !important; }
}
