
  :root {
    --brand: #1268AD;
    --brand-dark: #08386B;
    --accent: #35A8E8;
    --sidebar-bg: #ffffff;
    --sidebar-bg-active: #E4F2FC;
    --sidebar-text: #354F6B;
    --sidebar-text-active: #1268AD;
    --bg: #F3F8FD;
    --card-bg: #ffffff;
    --text: #16324F;
    --text-sub: #52657A;
    --border: #D8E6F3;
    --danger: #B52C3C;
    --ok: #16723F;
    --warn: #875300;
    --radius: 16px;
    --shadow: 0 1px 2px rgba(15, 40, 60, 0.06), 0 4px 14px rgba(15, 40, 60, 0.05);
  }
  * { box-sizing: border-box; }
  html, body {
    margin: 0; padding: 0; background: var(--bg); color: var(--text);
    font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
  }
  a { color: var(--brand); text-decoration: none; }

  /* ==== 旧レイアウト（app-header + container）。sidebarを使わない画面はこちらのまま ==== */
  .app-header {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--card-bg); color: var(--text); padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 10;
  }
  .app-header .title { font-weight: bold; font-size: 17px; line-height: 1.3; color: var(--brand-dark); }
  .app-header .staff { font-size: 12px; color: var(--text-sub); background: var(--bg); padding: 4px 10px; border-radius: 999px; }
  .container { max-width: 960px; margin: 0 auto; padding: 16px; }

  /* ==== 新レイアウト：左サイドバー + メインエリア（段階的に各画面へ適用） ==== */
  .app-shell { display: flex; min-height: 100vh; align-items: stretch; }
  .sidebar {
    flex: 0 0 225px; background: var(--sidebar-bg); color: var(--sidebar-text);
    padding: 22px 16px; display: flex; flex-direction: column;
  }
  .sidebar-logo { color: #fff; font-weight: bold; font-size: 15px; line-height: 1.4; margin-bottom: 24px; }
  .sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
  .sidebar-nav-item {
    display: block; color: var(--sidebar-text); font-size: 14px; font-weight: 500;
    padding: 10px 12px; border-radius: 8px; white-space: nowrap;
  }
  .sidebar-nav-item:hover { background: rgba(255,255,255,0.06); color: #fff; }
  .sidebar-nav-item.active { background: var(--sidebar-bg-active); color: var(--sidebar-text-active); font-weight: bold; }
  .sidebar-nav-item.disabled { color: rgba(199,214,223,0.4); }
  .sidebar-section-label {
    color: rgba(199,214,223,0.55); font-size: 11px; font-weight: bold; letter-spacing: 0.04em;
    margin: 18px 0 4px 12px;
  }
  .main-content { flex: 1 1 auto; min-width: 0; padding: 24px 28px; }
  .page-header {
    display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap;
    gap: 10px; margin-bottom: 18px;
  }
  .page-header-title { font-size: 21px; font-weight: bold; color: var(--brand-dark); }
  .page-header-sub { font-size: 13px; color: var(--text-sub); margin-top: 3px; }
  .page-header-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .chip {
    display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: bold;
    background: var(--card-bg); border: 1px solid var(--border); color: var(--text-sub);
    padding: 6px 12px; border-radius: 999px;
  }
  .sidebar-toggle { display: none; }
  @media (max-width: 860px) {
    .app-shell { flex-direction: column; }
    .sidebar { flex: 0 0 auto; width: 100%; padding: 14px 16px; }
    .sidebar-nav { flex-direction: row; flex-wrap: wrap; }
    .sidebar-logo { margin-bottom: 10px; }
    .sidebar-section-label { display: none; }
    .main-content { padding: 16px; }
  }

  .card {
    background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px; margin-bottom: 14px;
  }
  .grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
  @media (min-width: 640px) { .grid { grid-template-columns: repeat(4, 1fr); } }
  .stat-card { text-align: center; }
  .stat-card .value { font-size: 28px; font-weight: bold; color: var(--brand-dark); }
  .stat-card .label { font-size: 12px; color: var(--text-sub); margin-top: 4px; }
  .info-card .value { font-size: 16px; font-weight: bold; }
  .info-card .label { font-size: 12px; color: var(--text-sub); margin-top: 4px; }
  .btn {
    display: inline-block; background: var(--brand); color: #fff; border: none;
    border-radius: 10px; padding: 11px 18px; font-size: 14px; font-weight: bold;
    cursor: pointer; text-align: center;
  }
  .btn:hover { background: var(--brand-dark); }
  .btn:disabled { background: #b6c2cc; cursor: not-allowed; }
  .btn-outline {
    background: #fff; color: var(--brand); border: 1px solid var(--border);
  }
  .btn-outline:hover { background: var(--bg); }
  select, input, textarea {
    width: 100%; padding: 10px; font-size: 15px; border: 1px solid var(--border);
    border-radius: 8px; background: #fff; font-family: inherit;
  }
  textarea { resize: vertical; }
  .field { margin-bottom: 14px; }
  .field label { display: block; font-size: 12px; color: var(--text-sub); margin-bottom: 4px; }
  .stepper { display: flex; align-items: center; gap: 8px; }
  .stepper-btn {
    flex: 0 0 auto; width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--border);
    background: #fff; color: var(--brand-dark); font-size: 20px; font-weight: bold; line-height: 1;
    cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  }
  .stepper-btn:active { background: var(--bg); }
  .stepper-input {
    flex: 1 1 auto; min-width: 0; text-align: center; font-size: 17px; font-weight: bold;
    padding: 9px 4px;
  }
  .nav-list { display: flex; flex-direction: column; gap: 8px; }
  .nav-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; background: #fff;
  }
  .nav-item.disabled { color: var(--text-sub); background: var(--bg); }
  .tag { font-size: 11px; border-radius: 999px; padding: 3px 9px; background: var(--bg); color: var(--text-sub); font-weight: bold; }
  .msg-error {
    color: #9c2626; font-size: 13px; margin-top: 8px; background: #fdecec;
    border: 1px solid #f6c9c9; border-radius: 8px; padding: 10px 12px;
  }
  .list-row {
    border: 1px solid var(--border); border-radius: 10px; padding: 14px; margin-bottom: 10px; background: #fff;
  }
  .list-row-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
  .list-row-ticket { font-size: 17px; font-weight: bold; color: var(--brand-dark); }
  .list-row-sub { font-size: 12px; color: var(--text-sub); margin-top: 3px; }
  .list-row-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
  .btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 8px; }
  .btn-danger { background: var(--danger); color: #fff; border: none; }
  .btn-danger:hover { background: #b53939; }
  .badge { display: inline-block; font-size: 11px; border-radius: 999px; padding: 3px 10px; font-weight: bold; }
  .badge-ok { background: #e5f6ec; color: var(--ok); }
  .badge-warn { background: #fbf0dd; color: var(--warn); }
  .badge-mode { font-size: 12px; padding: 5px 12px; border-radius: 999px; background: var(--bg); color: var(--brand-dark); font-weight: bold; }
  .empty-hint { color: var(--text-sub); font-size: 13px; text-align: center; padding: 12px 0; }
  .section-title { font-weight: bold; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; color: var(--brand-dark); }
  .center { text-align: center; }
  .mt-16 { margin-top: 16px; }
  .loading { color: var(--text-sub); font-size: 13px; }

  /* ==== 2カラムレイアウト（入力フォーム＋サイド要約など） ==== */
  .two-col { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
  @media (min-width: 900px) { .two-col { grid-template-columns: 1.3fr 1fr; } }
  .two-col-side { position: sticky; top: 16px; }

  /* ==== 一覧の表形式レイアウト（受付一覧など。CALLED/WAITINGのようなセクション分割はそのまま、行の見た目だけ表っぽくする） ==== */
  .list-row-table {
    display: grid; grid-template-columns: 96px 1fr 130px auto; align-items: center; gap: 14px;
  }
  .list-row-table.no-badge { grid-template-columns: 96px 1fr auto; }
  .list-row-table-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
  .list-row-table-head {
    display: grid; grid-template-columns: 96px 1fr 130px auto; gap: 14px;
    font-size: 11px; color: var(--text-sub); font-weight: bold; padding: 0 14px 8px;
  }
  .list-row-table-head.no-badge { grid-template-columns: 96px 1fr auto; }
  @media (max-width: 700px) {
    .list-row-table, .list-row-table.no-badge { grid-template-columns: 1fr; gap: 6px; }
    .list-row-table-actions { justify-content: flex-start; }
    .list-row-table-head { display: none; }
  }

  /* 統一デザイン：見やすい白のパネルと、受付操作を示すブルー。 */
  html, body { line-height: 1.55; }
  body { -webkit-font-smoothing: antialiased; }
  button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
  button, input, select, textarea { font: inherit; }
  .sidebar { flex-basis: 216px; border-right: 1px solid var(--border); padding: 26px 16px; gap: 16px; }
  .sidebar-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--brand-dark); }
  .brand-title { font-size: 13px; font-weight: 800; line-height: 1.6; }
  .brand-caption { font-size: 9px; letter-spacing: .14em; color: #52657A; font-weight: 600; }
  .sidebar-nav { gap: 4px; }
  .sidebar-nav-item { padding: 11px 13px; border: 1px solid transparent; font-size: 13px; }
  .sidebar-nav-item:hover { background: #F3F8FD; color: var(--brand-dark); }
  .sidebar-nav-item.active { border-color: #C5E2F7; box-shadow: inset 3px 0 0 var(--brand); }
  .sidebar-section-label { color: #52657A; margin-top: 18px; letter-spacing: .06em; }
  #staffLogoutBtn { margin-top: auto; font-size: 12px; background: #f7f9fa; color: #354F6B; }
  .main-content { padding: 30px 34px; }
  .page-header { margin-bottom: 24px; align-items: center; }
  .page-header-title { font-size: 26px; letter-spacing: -.03em; }
  .page-header-sub { margin-top: 5px; font-size: 12px; }
  .chip { font-size: 11px; font-weight: 600; padding: 7px 12px; }
  .card { padding: 24px; border-color: var(--border); box-shadow: 0 4px 20px rgba(8, 56, 107, .035); }
  .section-title { font-size: 15px; font-weight: 800; margin-bottom: 16px; }
  .stat-card .value { font-size: 34px; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
  .stat-card .label { margin-top: 8px; }
  .btn { min-height: 44px; padding: 11px 18px; border-radius: 10px; box-shadow: 0 2px 5px rgba(18, 104, 173, .12); }
  .btn-outline { color: var(--brand-dark); box-shadow: none; }
  .btn-outline:hover { background: #E4F2FC; }
  .btn-sm { min-height: 40px; }
  input, select, textarea { min-height: 44px; background: #FBFDFF; border-color: #D8E6F3; transition: border-color .15s, box-shadow .15s; }
  input[type="checkbox"] { width:auto; flex:0 0 auto; min-height:0; margin:0; accent-color:var(--brand); }
  input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px #E4F2FC; background: white; }
  button:focus-visible, a:focus-visible { outline: 3px solid #35A8E8; outline-offset: 3px; }
  .field { margin-bottom: 18px; }
  .field label { font-size: 12px; font-weight: 600; color: #354F6B; margin-bottom: 7px; }
  .stepper { padding: 4px; border: 1px solid #D8E6F3; border-radius: 12px; background: #FBFDFF; gap: 4px; }
  .stepper-btn { width: 38px; height: 38px; border: 0; background: #EDF5FC; color: #354F6B; border-radius: 8px; }
  .stepper-btn:hover { background: #D1E9FB; color: var(--brand); }
  .stepper-input { border: 0; background: transparent; font-size: 21px; min-height: 38px; padding: 4px; box-shadow: none; }
  .list-row { padding: 16px; border-color: #D8E6F3; }
  .list-row-ticket { font-size: 16px; }
  .tag { background: #E4F2FC; color: #08386B; }
  .loading { color: #52657A; font-size: 12px; }
  .two-col { gap: 22px; }
  .two-col-side { position: sticky; top: calc(var(--operation-bar-height, 108px) + 20px); }

  /* すべてのスタッフ画面の最上部に固定。 */
  .operation-bar { position: sticky; top: 0; z-index: 40; display:flex; align-items:center; flex-wrap:wrap; gap:4px 16px; padding:6px 16px; background: #fff;
    color: var(--brand-dark); border-bottom: 1px solid #D8E6F3; box-shadow: 0 3px 16px rgba(8, 56, 107, .055); }
  .operation-bar-items { display:flex; flex:1 1 auto; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:4px 14px; min-width:0; }
  .operation-bar-item { min-width: 0; padding:2px 0; }
  .operation-bar-label { display: block; font-size: 10px; font-weight: 600; color: #52657A; margin-bottom: 2px; letter-spacing: .03em; }
  .operation-bar-value { display: block; font-size: 17px; font-weight: 800; overflow-wrap: anywhere; line-height: 1.35; font-variant-numeric: tabular-nums; }
  .operation-bar-count { border:0; background:#E4F2FC; border-radius:8px; padding:2px 10px; }
  .operation-bar-count .operation-bar-label { color: #354F6B; }
  .operation-bar-count .operation-bar-value { color: #1268AD; font-size: 22px; }
  .operation-bar-meta { flex:0 1 270px; margin-left:auto; font-size:9px; line-height:1.4; color:#52657A; text-align:right; overflow-wrap:anywhere; }
  .operation-bar-meta::before { content: ''; display: inline-block; width: 5px; height: 5px; background: #35A8E8; border-radius: 50%; margin-right: 5px; vertical-align: 1px; }
  .operation-bar-meta.is-error { color: #ad6f20; }
  .operation-bar-meta.is-error::before { background: #d99531; }

  .reception-start { max-width: 780px; display: grid; grid-template-columns: 1.35fr 1fr; gap: 22px; }
  .reception-start .card { margin-bottom: 0; }
  .section-eyebrow { font-size: 10px; color: #52657A; font-weight: 700; letter-spacing: .1em; margin-bottom: 8px; }
  .search-number { font-size: 32px; letter-spacing: .12em; text-align: center; padding: 15px; font-variant-numeric: tabular-nums; }
  .reception-new { background: #F3F8FD; border-color: #D8E6F3; display: flex; flex-direction: column; }
  .reception-new .btn { margin-top: auto; }
  .reception-section { margin: 26px 0 16px; border-top: 1px solid var(--border); padding-top: 22px; }
  .pass-panel { background: #F3F8FD; border: 1px solid #D8E6F3; box-shadow: none; padding: 20px; }
  .pass-panel .list-row { background: white; }
  .pass-panel .section-title { color: #08386B; }
  #selectedPassList { color: #52657A; font-size: 12px; }
  .pass-panel .field { margin-bottom: 10px; }
  .fee-summary { background: #fff; overflow: hidden; padding: 0; }
  .fee-summary-head { padding: 18px 22px; background: #E4F2FC; border-bottom: 1px solid #C5E2F7; font-weight: 700; color: #08386B; font-size: 13px; }
  .fee-summary-body { padding: 22px; }
  .fee-preview-value { font-size: 38px; font-weight: 800; letter-spacing: -.05em; color: var(--brand-dark); font-variant-numeric: tabular-nums; margin: 6px 0 16px; }
  #feeBreakdown { font-size: 12px; color: #52657A; line-height: 1.9; }
  .fee-help { font-size: 11px; color: #52657A; margin-top: 18px; border-top: 1px solid #D8E6F3; padding-top: 14px; }
  .success-mark { width: 52px; height: 52px; border-radius: 50%; background: #e6f5ee; color: #238865; font-size: 27px; display: grid; place-items: center; margin: 0 auto 18px; }
  .reception-result-number { font-size: 48px; font-weight: 800; letter-spacing: .04em; color: var(--brand-dark); margin: 12px 0; }
  .reception-options { grid-template-columns: repeat(3,minmax(0,1fr)); }
  @media (max-width: 1000px) { .main-content { padding: 24px; } }
  @media (max-width: 860px) {
    .sidebar { flex: 0 0 auto; align-items: center; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--border); display: flex; flex-direction: row; flex-wrap: wrap; gap: 10px; }
    .sidebar-logo { margin: 0; }
    .brand-caption { display: none; }
    .sidebar-nav { order: 3; flex: 0 0 100%; min-width: 0; width: 100%; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; }
    .sidebar-nav-item { flex: 0 0 auto; padding: 9px 12px; font-size: 12px; }
    .sidebar-nav-item.active { box-shadow: none; }
    #staffLogoutBtn { align-self: center; margin: 0 0 0 auto; min-height: 34px; padding: 6px 10px; }
    .main-content { padding: 22px 16px; }
    .page-header-title { font-size: 23px; }
    .reception-start { gap: 14px; }
    .two-col-side { position: static; order: -1; }
  }
  @media (max-width: 700px) {
    .operation-bar { padding:5px 8px; gap:3px; }
    .operation-bar-items { flex:0 0 100%; gap:3px 10px; }
    .operation-bar-item { display:flex; align-items:baseline; gap:4px; padding:0; border:0; }
    .operation-bar-value { font-size: 13px; }
    .operation-bar-label { font-size:9px; margin-bottom:0; }
    .operation-bar-count { display:flex; align-items:baseline; gap:4px; padding:0 6px; }
    .operation-bar-count .operation-bar-label { margin: 0; }
    .operation-bar-count .operation-bar-value { font-size:15px; }
    .operation-bar-meta { flex-basis:auto; max-width:100%; font-size:9px; }
    .card { padding: 18px; }
    .reception-start { grid-template-columns: 1fr; }
    .reception-new .btn { margin-top: 14px; }
    .reception-options { grid-template-columns: 1fr; }
    .reception-options .field { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
    .reception-options .field label { margin: 0; flex: 1; }
    .reception-options .stepper { width: 156px; flex: 0 0 156px; }
    .fee-summary { padding: 0; }
    .fee-preview-value { font-size: 32px; }
    .pass-panel { padding: 16px; }
    .page-header-sub { max-width: 260px; }
  }
  /* 正式ロゴ：全体を表示し、共通テンプレートから複製する。 */
  .app-logo { display:block; max-width:100%; height:auto; object-fit:contain; flex-shrink:0; }
  .sidebar-logo { flex-direction:column; align-items:flex-start; gap:6px; }
  .sidebar-logo .app-logo { width:150px; }
  .brand-caption { display:block; }
  @media(max-width:860px) {
    .sidebar-logo { flex-direction:row; align-items:center; min-width:0; max-width:calc(100% - 88px); gap:8px; }
    .sidebar-logo .app-logo { width:64px; }
    .sidebar-logo .brand-title { font-size:12px; overflow-wrap:anywhere; }
    .sidebar-logo .brand-caption { display:none; }
  }
  .time-meter{min-width:150px;max-width:100%;width:260px;margin:6px 0;font-size:12px;color:var(--brand-dark)}
  .time-meter-track{height:10px;background:#E4F2FC;border-radius:8px;overflow:hidden;margin:5px 0}.time-meter-fill{height:100%;background:var(--brand);border-radius:8px}
  .time-meter.soon .time-meter-fill{background:#D98A12}.time-meter.overdue .time-meter-fill{background:#B52C3C}.time-meter.overdue{color:#9C2626}
  .exit-payment-dialog{width:420px;max-width:calc(100vw - 32px);border:1px solid var(--border);border-radius:16px;padding:24px;color:var(--text)}.exit-payment-dialog::backdrop{background:rgba(8,56,107,.45)}
  .exit-payment-amount{font-size:36px;font-weight:800;color:#B52C3C;margin:16px 0}.exit-payment-dialog label{display:flex;gap:10px;align-items:center;margin:16px 0}.exit-payment-dialog button{margin:4px}

  /* Staff controls: consistent touch targets, including compact list actions. */
  .app-shell .btn, .exit-payment-dialog .btn {
    min-height:48px; font-size:16px; padding:11px 16px; line-height:1.5;
    white-space:normal; overflow-wrap:anywhere; max-width:100%;
  }
  .app-shell .stepper-btn { width:48px; height:48px; min-width:48px; flex:0 0 48px; font-size:24px; }
  .app-shell .stepper-input { min-width:0; min-height:48px; }
  .app-shell #staffLogoutBtn { min-height:48px; font-size:16px; }
  .app-shell .stepper { min-width:0; }
  .app-shell .grid > *, .app-shell .two-col > * { min-width:0; }

  /* First stage: dashboard and reception. Existing IDs and event handlers retained. */
  .layout-refresh {
    --brand:#087da9; --brand-dark:#075d80; --text:#1b3546;
    --bg:#f4f7f9; --border:#dce6eb; --radius:10px;
    background:var(--bg); color:var(--text);
  }
  .layout-refresh .sidebar { flex-basis:224px; }
  .layout-refresh .main-content { min-width:0; padding:27px 34px; }
  .layout-refresh .page-header-title { font-size:27px; margin:0; line-height:1.4; }
  .layout-refresh .page-header-sub { font-size:14px; color:#52657a; }
  .layout-refresh .card { border-radius:10px; padding:20px; box-shadow:none; }
  .layout-refresh .section-title { font-size:16px; margin-bottom:14px; }
  .layout-refresh .field label, .layout-refresh .loading,
  .layout-refresh #selectedPassList, .layout-refresh #feeBreakdown { font-size:14px; }
  .layout-refresh input:not([type=checkbox]):not([type=hidden]), .layout-refresh select { min-height:48px; font-size:16px; }
  .layout-refresh .stepper-input { font-size:21px!important; }
  /* Safari native date/time controls must stay within their grid column. */
  .layout-refresh .field { min-width:0; }
  .layout-refresh input[type=date], .layout-refresh input[type=time], .layout-refresh input[type=datetime-local] {
    display:block; -webkit-appearance:none; appearance:none; box-sizing:border-box;
    width:100%; min-width:0; max-width:100%; height:48px; min-height:48px;
    padding:10px; line-height:normal;
  }
  .layout-refresh input[type=date]::-webkit-date-and-time-value,
  .layout-refresh input[type=time]::-webkit-date-and-time-value,
  .layout-refresh input[type=datetime-local]::-webkit-date-and-time-value { min-width:0; margin:0; padding:0; text-align:left; }
  .layout-refresh input[type=date]::-webkit-datetime-edit,
  .layout-refresh input[type=time]::-webkit-datetime-edit,
  .layout-refresh input[type=datetime-local]::-webkit-datetime-edit { min-width:0; padding:0; }

  .layout-refresh .btn-outline { background:white; }
  .layout-refresh .btn-outline:hover { background:#eaf6fb; }
  .layout-refresh .reception-people { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .layout-refresh .reception-start { max-width:none; grid-template-columns:minmax(0,1.4fr) minmax(0,1fr); gap:20px; }
  .layout-refresh .reception-start .card { padding:20px; }
  .layout-refresh .search-number { font-size:26px!important; padding:10px; }
  .layout-refresh .reception-new, .layout-refresh .pass-panel { background:#eaf6fb; border-color:var(--border); }
  .layout-refresh .two-col { grid-template-columns:minmax(0,1.65fr) minmax(0,1fr); gap:20px; }
  .layout-refresh .two-col-side { order:0; top:calc(var(--operation-bar-height,108px) + 20px); }
  .layout-refresh .fee-summary { padding:0; }
  .layout-refresh .fee-summary-head { background:#eaf6fb; color:var(--brand-dark); font-size:16px; border-color:var(--border); }
  .layout-refresh .fee-summary-body { padding:20px; }
  .layout-refresh .fee-help { font-size:14px; }
  .layout-refresh .reception-payment { margin-top:24px; }
  .layout-refresh .reception-options { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .layout-refresh .dashboard-stats { margin:20px 0; }
  .layout-refresh #statGrid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
  .layout-refresh #statGrid .stat-card { text-align:left; border-top:3px solid var(--brand); }
  .layout-refresh #statGrid .label { font-size:14px; }
  .layout-refresh #dashboardInfoGrid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
  .layout-refresh .info-card .value { font-size:18px; overflow-wrap:anywhere; }
  .layout-refresh .desk-launchers { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:20px 0; }
  .layout-refresh .desk-launch { min-height:56px; font-size:18px; }
  .layout-refresh .desk-columns { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); gap:20px; margin:16px 0 24px; align-items:start; }
  .layout-refresh .desk-columns > * { min-width:0; }
  .layout-refresh .desk-reception .two-col, .layout-refresh .desk-reception .reception-start { grid-template-columns:1fr; }
  .layout-refresh .desk-reception .two-col-side { position:static; order:0; }
  .layout-refresh .desk-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
  .layout-refresh .desk-list-title { font-weight:700; }
  .layout-refresh .desk-lists .list-row { overflow-wrap:anywhere; padding:14px; }
  .layout-refresh #deskLoanTicket { width:100%; }
  .layout-refresh #customizeToggleBtn { background:white!important; color:var(--brand-dark)!important; }
  @media(max-width:1200px) {
    .layout-refresh .main-content { padding:24px; }
    .layout-refresh .two-col { grid-template-columns:1fr; }
    .layout-refresh .two-col-side { position:static; }
    .layout-refresh #statGrid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  }
  @media(max-width:1000px) {
    .layout-refresh .desk-columns { grid-template-columns:1fr; }
    .layout-refresh #dashboardInfoGrid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  }
  @media(max-width:860px) { .layout-refresh .sidebar { flex-basis:auto; } }
  @media(max-width:767px) {
    .layout-refresh .main-content { padding:20px 16px; }
    .layout-refresh .card { padding:16px; }
    .layout-refresh .page-header-title { font-size:24px; }
    .layout-refresh .reception-start, .layout-refresh .desk-launchers { grid-template-columns:1fr; gap:12px; }
    .layout-refresh .reception-options, .layout-refresh .reception-people { grid-template-columns:1fr; }
    .layout-refresh .reception-options .field { display:block; }
    .layout-refresh .reception-options .stepper { width:100%; }
    .layout-refresh .reception-options .field label { margin-bottom:7px; }
    .layout-refresh .fee-summary { padding:0; }
    .layout-refresh #dashboardInfoGrid { grid-template-columns:1fr; }
    .layout-refresh #statGrid { gap:10px; }
    .layout-refresh #statGrid .value { font-size:28px; }
    .layout-refresh #statGrid .label { font-size:13px; overflow-wrap:anywhere; }
  }


  /* Remaining staff pages use the same layout tokens and accessible controls. */
  .layout-refresh .layout-columns { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); gap:20px; align-items:start; margin-bottom:20px; }
  .layout-refresh .layout-columns > * { min-width:0; }
  .layout-refresh .layout-kpis { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
  .layout-refresh .layout-kpis .stat-card { padding:16px; border:1px solid var(--border); border-radius:10px; background:#fff; }
  .layout-refresh .stat-card .value { overflow-wrap:anywhere; }
  .layout-refresh .settings-key { font-size:12px; color:#52657a; overflow-wrap:anywhere; margin-bottom:8px; }
  .layout-refresh .section-title { flex-wrap:wrap; }
  .layout-refresh textarea { font-size:16px; }
  .layout-refresh .list-row-sub, .layout-refresh .empty-hint { font-size:14px; overflow-wrap:anywhere; }
  .layout-refresh .operation-bar { padding:8px 16px; min-height:60px; }
  .layout-refresh .operation-bar-label { font-size:12px; }
  .layout-refresh .operation-bar-meta { font-size:12px; flex-basis:320px; }
  .layout-refresh .operation-bar-value { font-size:17px; }
  .layout-refresh .layout-tabs { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:20px; }
  .layout-refresh .layout-tabs [aria-selected=true] { background:var(--brand); color:#fff; }
  .layout-refresh .layout-tab-panel[hidden] { display:none!important; }
  .layout-refresh .layout-tab-panel { min-width:0; }
  .layout-refresh .layout-flow-help { background:#eaf6fb; border:1px solid var(--border); border-radius:10px; padding:20px; font-size:14px; }
  .layout-refresh .layout-flow-help h2 { font-size:16px; margin:0 0 12px; }
  .layout-refresh .layout-danger { border:1px solid #ab4e4e; border-radius:10px; background:#fdf0ee; padding:20px; }
  .layout-refresh .layout-danger h2 { font-size:16px; color:#ab4e4e; margin:0 0 16px; }
  .layout-refresh #cancelSessionBtn, .layout-refresh .cancel-btn, .layout-refresh .del-btn, .layout-refresh #rejectBtn { background:#fdf0ee; border-color:#ab4e4e; color:#ab4e4e; }
  .layout-refresh .queue-actions .btn, .layout-refresh .band-row .exit-btn { min-height:48px; font-size:16px; }
  .layout-refresh .layout-queue-columns { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .layout-refresh #calledList .list-row, .layout-refresh #waitingList .list-row { display:block; min-height:64px; padding:14px 16px; }
  .layout-refresh #calledList .queue-actions, .layout-refresh #waitingList .queue-actions { margin-top:10px; justify-content:flex-start; }
  .layout-refresh .layout-search { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:16px; align-items:end; }
  .layout-refresh .layout-search > .field { margin-bottom:0; }
  .layout-refresh .layout-search > .btn { width:auto!important; }
  .layout-refresh .layout-search > :not(.field):not(.btn) { grid-column:1 / -1; }
  .layout-refresh .layout-incident-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; align-items:start; }
  .layout-refresh .layout-incident-fields h2 { font-size:16px; margin:0 0 20px; }
  .layout-refresh .layout-incident-fields .layout-field-group { min-width:0; }
  .layout-refresh .layout-incident-fields .field { break-inside:avoid; }
  .layout-refresh .layout-incident-submit { margin-top:4px; }
  .layout-refresh .layout-shift-columns > #costCard { order:0; }
  .layout-refresh .desk-columns { grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr); }
  .layout-refresh .desk-lists { display:contents; }
  .layout-refresh #deskReception { grid-column:1; grid-row:1 / span 2; }
  .layout-refresh .desk-lists > .card:nth-child(1) { grid-column:2 / span 2; grid-row:2; }
  .layout-refresh .desk-lists > .card:nth-child(2) { grid-column:2; grid-row:1; }
  .layout-refresh .desk-lists > .card:nth-child(3) { grid-column:3; grid-row:1; }
  .layout-refresh #staffNavToggle { display:none; }
  @media(max-width:1300px) {
    .layout-refresh .desk-columns { grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); }
    .layout-refresh .desk-lists { display:block; }
    .layout-refresh #deskReception { grid-column:auto; grid-row:auto; }
  }
  @media(max-width:1199px) {
    .layout-refresh .app-shell { flex-direction:column; }
    .layout-refresh .sidebar { flex:0 0 auto; width:auto; flex-direction:row; flex-wrap:wrap; align-items:center; padding:12px 24px; gap:12px; }
    .layout-refresh .sidebar-logo { flex-direction:row; align-items:center; margin:0; gap:10px; max-width:calc(100% - 150px); }
    .layout-refresh .sidebar-logo .app-logo { width:64px; }
    .layout-refresh .brand-caption { display:none; }
    .layout-refresh #staffNavToggle { display:inline-flex; align-items:center; margin-left:auto; }
    .layout-refresh #staffLogoutBtn { margin:0; }
    .layout-refresh .sidebar-nav { display:none; flex:0 0 100%; width:100%; flex-wrap:wrap; overflow:visible; flex-direction:row; }
    .layout-refresh .layout-nav-open .sidebar-nav { display:flex; }
    .layout-refresh .sidebar-section-label { width:100%; margin:12px 0 4px; }
    .layout-refresh .sidebar-nav-item { white-space:normal; min-height:48px; display:flex; align-items:center; font-size:14px; }
    .layout-refresh .layout-columns, .layout-refresh .layout-incident-fields { grid-template-columns:1fr; }
    .layout-refresh .layout-queue-columns { grid-template-columns:repeat(2,minmax(0,1fr)); }
  }
  @media(max-width:1000px) { .layout-refresh .desk-columns { grid-template-columns:1fr; } }
  @media(max-width:767px) {
    .layout-refresh .sidebar { padding:12px 16px; }
    .layout-refresh .sidebar-logo { max-width:100%; flex:0 0 100%; }
    .layout-refresh .sidebar-logo .app-logo { width:48px; }
    .layout-refresh #staffNavToggle { margin-left:0; }
    .layout-refresh #staffLogoutBtn { margin-left:auto; }
    .layout-refresh .operation-bar { padding:8px; }
    .layout-refresh .operation-bar-value { font-size:14px; }
    .layout-refresh .operation-bar-items { align-items:baseline; gap:6px 12px; }
    .layout-refresh .operation-bar-label { font-size:12px; }
    .layout-refresh .operation-bar-meta { flex:0 0 100%; text-align:left; }
    .layout-refresh .layout-kpis, .layout-refresh .layout-queue-columns { grid-template-columns:1fr; }
    .layout-refresh .layout-search { grid-template-columns:1fr; }
    .layout-refresh .layout-search > .btn { width:100%!important; }
    .layout-refresh .band-row { grid-template-columns:minmax(0,1fr); }
    .layout-refresh .band-row .exit-btn { grid-column:1; grid-row:3; justify-self:stretch; }
    .layout-refresh .band-row .band-timing { grid-column:1; grid-row:2; }
    .layout-refresh #settingsGroups .field > div:last-child { flex-wrap:wrap; }
    .layout-refresh #settingsGroups input, .layout-refresh #settingsGroups select { min-width:0; width:100%; }
  }

  /* Width-based layout, shared by desktop browsers and iPad browsers. */
  .layout-refresh #deskLoanTicket { min-width:0; }
  .layout-refresh #deskLoan { white-space:normal; min-width:140px; }
  .layout-refresh .desk-lists > .card:last-child > .grid { grid-template-columns:minmax(0,1fr); }
  @media(min-width:1200px) {
    .layout-refresh.layout-reception .two-col { grid-template-columns:minmax(0,1.65fr) minmax(0,1fr); }
  }
  @media(min-width:768px) and (max-width:1199px) {
    .layout-refresh .layout-columns { grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); }
    .layout-refresh .layout-incident-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .layout-refresh.layout-reception .two-col { grid-template-columns:minmax(0,1.45fr) minmax(0,1fr); }
    .layout-refresh .two-col-side { position:static; order:0; }
    .layout-refresh .desk-columns { grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); }
    .layout-refresh #dashboardInfoGrid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .layout-refresh #statGrid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  }
  @media(min-width:768px) and (max-width:899px) {
    .layout-refresh .reception-people, .layout-refresh .reception-options { grid-template-columns:1fr; }
  }
  @media(max-width:767px) {
    .layout-refresh .layout-columns, .layout-refresh .layout-incident-fields,
    .layout-refresh .desk-columns, .layout-refresh.layout-reception .two-col { grid-template-columns:minmax(0,1fr); }
    .layout-refresh .two-col-side { position:static; order:0; }
  }
  /* Keep dashboard actions and the panels below on the same three columns. */
  @media(min-width:1200px) {
    .layout-refresh.layout-dashboard .desk-launchers,
    .layout-refresh.layout-dashboard .desk-columns { grid-template-columns:repeat(3,minmax(0,1fr)); column-gap:20px; }
    .layout-refresh.layout-dashboard .desk-lists { display:contents; }
    .layout-refresh.layout-dashboard #deskReception { grid-column:1; grid-row:1 / span 2; }
    .layout-refresh.layout-dashboard .desk-lists > .card:nth-child(1) { grid-column:2 / span 2; grid-row:2; }
    .layout-refresh.layout-dashboard .desk-lists > .card:nth-child(2) { grid-column:2; grid-row:1; }
    .layout-refresh.layout-dashboard .desk-lists > .card:nth-child(3) { grid-column:3; grid-row:1; }
    .layout-refresh.layout-dashboard .desk-lists > .card { margin-bottom:0; }
  }
  @media(max-width:1199px) {
    .layout-refresh.layout-dashboard .desk-launchers,
    .layout-refresh.layout-dashboard .desk-columns { grid-template-columns:minmax(0,1fr); gap:16px; }
    .layout-refresh.layout-dashboard .desk-lists { display:block; }
    .layout-refresh.layout-dashboard #deskReception { grid-column:auto; grid-row:auto; }
  }
  .layout-refresh .sidebar-section-label {
    display:block; margin:20px 0 6px; padding:9px 12px; border-top:2px solid;
    border-radius:6px; font-size:12px; font-weight:700; letter-spacing:.04em;
  }
  .layout-refresh .sidebar-nav-item[data-nav-group] { border-left-width:3px; }
  .layout-refresh [data-nav-group="operations"] { --nav-accent:#1268ad; --nav-tint:#e7f2fc; }
  .layout-refresh [data-nav-group="customers"] { --nav-accent:#087566; --nav-tint:#e5f5ef; }
  .layout-refresh [data-nav-group="records"] { --nav-accent:#8c5b12; --nav-tint:#fff3dd; }
  .layout-refresh [data-nav-group="admin"] { --nav-accent:#60449c; --nav-tint:#f0eafa; }
  .layout-refresh .sidebar-section-label[data-nav-group] { color:var(--nav-accent); background:var(--nav-tint); border-color:var(--nav-accent); }
  .layout-refresh .sidebar-nav-item[data-nav-group] { border-left-color:var(--nav-accent); }
  .layout-refresh .sidebar-nav-item[data-nav-group]:hover,
  .layout-refresh .sidebar-nav-item[data-nav-group].active { background:var(--nav-tint); color:var(--nav-accent); }
  .layout-refresh .sidebar-nav-item[data-nav-group].active { box-shadow:inset 3px 0 0 var(--nav-accent); font-weight:700; }
  @media(max-width:1199px) {
    .layout-refresh .sidebar-section-label[data-nav-group] { width:100%; flex:0 0 100%; }
  }
/* Adapted from the user's Figma Make source. Navigation, live data and original logo are retained. */
.layout-refresh {
  --brand:#148fbd; --brand-dark:#102f49; --accent:#22aee4;
  --bg:#f3f7fb; --card-bg:#ffffff; --text:#13243a; --text-sub:#5d7286;
  --border:#dfe8ef; --radius:12px; --shadow:0 5px 18px rgba(23,54,79,.04);
  --sidebar-bg:#071a2f; --sidebar-text:#a9b7c7; --sidebar-bg-active:#123e62; --sidebar-text-active:#fff;
  font-family:"Noto Sans JP","Yu Gothic",sans-serif;
  background:var(--bg); color:var(--text); -webkit-font-smoothing:antialiased;
}
.layout-refresh .sidebar {
  flex-basis:244px; width:244px; padding:26px 16px 18px;
  background:#071a2f; color:#a9b7c7; border-right:1px solid #183049;
  scrollbar-color:#294158 #071a2f;
}
.layout-refresh .sidebar-logo { color:#fff; padding:0 7px 14px; margin-bottom:0; gap:10px; }
.layout-refresh .sidebar-logo .app-logo-slot { display:block; background:#fff; padding:7px; border-radius:10px; width:100%; max-width:116px; }
.layout-refresh .sidebar-logo .app-logo { width:100px; height:auto; max-width:100%; object-fit:contain; }
.layout-refresh .brand-title { color:#eef5fa; font-size:13px; font-weight:700; }
.layout-refresh .brand-caption { color:#9bb1c6; font:700 10px "Manrope",sans-serif; letter-spacing:.18em; }
.layout-refresh .sidebar-section-label[data-nav-group] {
  padding:10px 10px 6px; margin:15px 0 5px; color:#9aafc4; background:transparent;
  border:0; border-top:1px solid #183049; border-radius:0; font-size:11px; letter-spacing:.08em;
}
.layout-refresh .sidebar-section-label[data-nav-group]:before { content:""; display:inline-block; width:4px; height:10px; border-radius:3px; margin-right:8px; background:var(--nav-accent); }
.layout-refresh .sidebar-nav-item[data-nav-group] {
  display:flex; align-items:center; gap:12px; min-height:44px; padding:10px 12px;
  border:0; border-radius:9px; color:#a9bbce; background:transparent; font-size:13px; font-weight:500;
  box-shadow:none; transition:background .15s,color .15s;
}
.layout-refresh .sidebar-nav-item .admin-nav-icon { display:inline-flex; flex:none; color:#94b3ca; }
.layout-refresh .sidebar-nav-item .admin-nav-icon svg { display:block; flex:none; }
.layout-refresh .sidebar-nav-item[data-nav-group]:hover { color:#fff; background:#102b45; }
.layout-refresh .sidebar-nav-item[data-nav-group].active {
  color:#fff; background:linear-gradient(100deg,#123e62,#0d3151); box-shadow:inset 3px 0 #22aee4; font-weight:700;
}
.layout-refresh .sidebar-nav-item.active .admin-nav-icon { color:#76d7f4; }
.layout-refresh #staffLogoutBtn { background:#102b45; border-color:#294158; color:#c9d9e8; border-radius:9px; }
.layout-refresh #staffNavToggle { background:#102b45; color:#fff; border-color:#294158; }
.layout-refresh .main-content { padding:30px; }
.layout-refresh .page-header { padding-bottom:20px; margin-bottom:22px; border-bottom:1px solid var(--border); }
.layout-refresh .page-header-title { color:#10253b; font-size:27px; font-weight:700; letter-spacing:-.03em; }
.layout-refresh .page-header-sub { color:#61778b; font-size:13px; margin-top:5px; }
.layout-refresh .operation-bar { background:#fff; color:#13243a; border-bottom:1px solid #e2eaf1; box-shadow:0 2px 12px #17364f06; }
.layout-refresh .operation-bar-label { color:#61778b; font-size:12px; }
.layout-refresh .operation-bar-value { color:#183b55; font-size:15px; font-weight:700; }
.layout-refresh .operation-bar-meta { color:#637a8e; font-size:12px; }
.layout-refresh .card { border:1px solid #dfe8ef; border-radius:12px; background:#fff; box-shadow:0 5px 18px rgba(23,54,79,.04); padding:20px; }
.layout-refresh .section-title { color:#20384e; font-size:16px; letter-spacing:-.01em; }
.layout-refresh .stat-card .value { font-family:"Manrope","Noto Sans JP",sans-serif; font-weight:800; letter-spacing:-.04em; color:#16324a; }
.layout-refresh #statGrid .stat-card { position:relative; overflow:hidden; border:1px solid #e0e9f0; border-top:0; padding:22px; }
.layout-refresh #statGrid .stat-card:before { content:""; position:absolute; top:0; left:0; right:0; height:3px; background:linear-gradient(90deg,#148fbd,#25b9dd); }
.layout-refresh #statGrid .stat-card:nth-child(2):before { background:#8075d9; }
.layout-refresh #statGrid .stat-card:nth-child(3):before { background:#169dc5; }
.layout-refresh #statGrid .stat-card:nth-child(4):before { background:#2c9d73; }
.layout-refresh #statGrid .label { color:#61778b; font-size:14px; font-weight:500; }
.layout-refresh .info-card .label { color:#61778b; }
.layout-refresh .info-card .value { color:#16324a; }
.layout-refresh .btn { border-radius:9px; background:#148fbd; border-color:#148fbd; box-shadow:none; font-weight:600; transition:background .15s,border-color .15s; }
.layout-refresh .btn:hover:not(:disabled) { background:#087aa6; border-color:#087aa6; }
.layout-refresh .btn-outline { background:#fff; color:#147fa9; border-color:#cbdfe9; }
.layout-refresh .btn-outline:hover:not(:disabled) { background:#edf7fb; color:#10678b; border-color:#a9d6e8; }
.layout-refresh .btn-danger { background:var(--danger); border-color:var(--danger); color:#fff; }
.layout-refresh .btn-danger:hover:not(:disabled) { background:#9d2333; border-color:#9d2333; }
.layout-refresh .desk-launchers .desk-launch { background:#fff; color:#176f99; border:1px solid #cddfe9; min-height:56px; font-size:16px; box-shadow:0 3px 12px #1d3b5508; }
.layout-refresh .desk-launchers .desk-launch:first-child { color:#fff; background:linear-gradient(100deg,#148fbd,#1681b1); border-color:#148fbd; }
.layout-refresh .desk-launchers .desk-launch:hover { background:#e8f5fc; border-color:#148fbd; color:#10678b; }
.layout-refresh .desk-launchers .desk-launch:first-child:hover { background:#087aa6; color:#fff; }
.layout-refresh input:not([type=checkbox]):not([type=hidden]), .layout-refresh select, .layout-refresh textarea { border:1px solid #d7e3ec; border-radius:9px; background:#f8fbfd; color:#20384e; }
.layout-refresh input:focus-visible, .layout-refresh select:focus-visible, .layout-refresh textarea:focus-visible { outline:3px solid #a5def0; outline-offset:2px; border-color:#168ebd; }
.layout-refresh input:disabled { background:#eef3f7; color:#5d7286; }
.layout-refresh .search-number { background:#fff!important; border:1px solid #cbdfe9!important; color:#16324a; font-family:"Manrope","Noto Sans JP",sans-serif; font-weight:700; min-height:64px; }
.layout-refresh .reception-new { background:#eff8fc; border-color:#cfe7f2; }
.layout-refresh .pass-panel { background:#f2f1fa; border-color:#dfddef; }
.layout-refresh .list-row { background:#fff; border-color:#e4edf3; box-shadow:none; border-radius:9px; }
.layout-refresh .list-row-sub, .layout-refresh .loading { color:#5d7286; }
.layout-refresh .tag, .layout-refresh .chip { background:#edf7fb; border-color:#d5e9f2; color:#176f99; }
.layout-refresh .fee-summary-head { background:#edf7fb; border-color:#d5e9f2; color:#176f99; }
.layout-refresh .fee-total { color:#1289b5; }
.layout-refresh .desk-exit-soon { padding:14px; background:#f1f8fc; border:1px solid #d7e9f3; border-radius:10px; }
.layout-refresh .table th { background:#f6f9fc; color:#576e82; }
@media(min-width:1025px) { .layout-refresh .sidebar { position:sticky; top:var(--operation-bar-height,108px); align-self:flex-start; height:calc(100vh - var(--operation-bar-height,108px)); overflow-y:auto; } }
@media(min-width:768px) and (max-width:1024px) { .layout-refresh .sidebar { flex-basis:200px; width:200px; padding:20px 12px; } .layout-refresh .main-content { padding:24px; } .layout-refresh .sidebar-logo .app-logo { width:100px; } }
@media(max-width:767px) {
  .layout-refresh .sidebar { width:100%; flex-basis:auto; padding:14px 16px; height:auto; min-height:0; position:static; overflow:visible; }
  .layout-refresh .sidebar-logo { flex:0 0 100%; padding:0 0 8px; display:flex; align-items:center; }
  .layout-refresh .sidebar-logo .app-logo-slot { width:auto; max-width:60px; padding:5px; border-radius:8px; }
  .layout-refresh .sidebar-logo .app-logo { width:48px; }
  .layout-refresh .sidebar-section-label[data-nav-group] { color:#a9bbce; padding-top:12px; margin-top:8px; }
  .layout-refresh .sidebar-nav-item[data-nav-group] { min-height:48px; font-size:14px; }
  .layout-refresh .main-content { padding:22px 16px; }
  .layout-refresh .page-header-title { font-size:24px; }
  .layout-refresh .page-header { gap:14px; }
  .layout-refresh #statGrid .stat-card { padding:17px; }
  .layout-refresh .btn { min-height:48px; }
}
@media(prefers-reduced-motion:reduce) { .layout-refresh .btn, .layout-refresh .sidebar-nav-item { transition:none; } }

/* Shared operation header stays at the start of each page, in normal flow. */
.layout-refresh #statGrid .value .stat-unit { margin-left:4px; font-size:14px; font-weight:500; letter-spacing:0; color:#7b91a4; white-space:nowrap; }
.layout-refresh #statGrid .value .stat-groups { margin-left:6px; font-size:13px; font-weight:500; letter-spacing:0; color:#7b91a4; white-space:nowrap; }
.layout-refresh #statGrid .stat-wait { margin-top:10px; font-size:12px; font-weight:600; color:#8075d9; }
.operation-bar { position:static; top:auto; }
@media(min-width:1200px) {
  .layout-refresh .main-content > .operation-bar { margin:-30px -30px 30px; }
}
.operation-bar-items { gap:14px 20px; }
.operation-bar-item.operation-bar-count { display:flex; align-items:center; gap:22px; flex:1 1 300px; max-width:460px; min-width:220px; padding:0 0 0 22px; border:0; border-left:1px solid #e1eaf2; border-radius:0; background:transparent; }
.operation-bar-count-text { flex:0 0 auto; }
.operation-bar-count-numbers { display:flex; align-items:baseline; gap:3px; white-space:nowrap; }
.operation-bar-count .operation-bar-value { font-size:22px; color:#0b3554; line-height:1.3; }
.operation-bar-count .operation-bar-label { margin-top:6px; font-size:10px; color:#7b91a4; }
.operation-bar-capacity { font-size:12px; color:#7b91a4; font-variant-numeric:tabular-nums; }
.operation-bar-track { flex:1; min-width:70px; height:5px; overflow:hidden; border-radius:8px; background:#e5eef5; }
.operation-bar-fill { display:block; width:0; height:100%; border-radius:inherit; background:linear-gradient(90deg,#248ed0,#22b6d3); transition:width .25s ease; }
@media(max-width:767px) {
  .operation-bar-items { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 18px; width:100%; }
  .operation-bar-items > .operation-bar-item { display:block; min-width:0; }
  .operation-bar-items > .operation-bar-count { display:flex; grid-column:1 / -1; max-width:none; min-width:0; padding:12px 0 0; border-left:0; border-top:1px solid #e1eaf2; }
  .operation-bar-count .operation-bar-value { font-size:22px; }
}
.layout-refresh .sidebar-logo .app-logo-slot{position:relative;width:116px;max-width:116px;height:110px;padding:0;overflow:hidden;border-radius:8px;flex:none}
.layout-refresh .sidebar-logo .app-logo{position:absolute;width:132px;height:132px;max-width:none;left:-8px;top:-12px}
@media(max-width:1024px){.layout-refresh .sidebar-logo .app-logo-slot{width:58px;max-width:58px;height:55px;padding:0;border-radius:6px}.layout-refresh .sidebar-logo .app-logo{width:66px;height:66px;left:-4px;top:-6px}}

.operation-mode-trigger{display:flex;align-items:center;gap:6px;border:0;background:transparent;padding:0;color:inherit;font:inherit;text-align:left;cursor:help;border-radius:4px}
.operation-mode-trigger:focus-visible{outline:2px solid #159fc9;outline-offset:4px}.operation-mode-info{font-size:14px;color:#4684a4}.operation-mode-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.operation-mode-popover{position:fixed;z-index:1000;width:min(370px,calc(100vw - 24px));box-sizing:border-box;padding:18px;background:#fff;border:1px solid #c9dfed;border-radius:12px;box-shadow:0 12px 38px #11374d29;color:#18394e;font-size:12px;line-height:1.65;text-align:left;max-height:calc(100vh - 24px);overflow:auto;cursor:default}.operation-mode-popover[hidden]{display:none}.operation-mode-popover>strong{font-size:14px}.operation-mode-popover p{margin:8px 0}.operation-mode-definition{padding:10px;border-top:1px solid #e4edf3}.operation-mode-definition.is-current{background:#edf8fd;border-radius:7px}.operation-mode-definition strong{font-size:13px}.operation-mode-definition small{display:block;color:#47728a}.operation-mode-note{color:#6b7f8c;font-size:11px}

@media(min-width:1025px){.layout-refresh .sidebar{padding-top:18px;gap:6px}.layout-refresh .sidebar-logo{padding-bottom:6px;gap:6px;align-items:center;text-align:center}.layout-refresh .sidebar-logo .app-logo-slot{align-self:center}.layout-refresh .sidebar-nav>.sidebar-section-label:first-child{margin-top:0;padding-top:8px}}
/* UI UX Pro Max: readable operations console; preserve navigation and business controls. */
.layout-refresh {
  --brand:#08749b; --brand-dark:#102f4b; --accent:#16a4cd;
  --bg:#f4f7fb; --text:#172f46; --text-sub:#52677b; --border:#dce5ee;
  --ui-primary:#08749b; --ui-primary-hover:#075c7b; --ui-muted:#52677b;
  --ui-ring:#096f9c; --ui-surface:#fff; --ui-soft:#edf6fb; --ui-control-border:#8399ac;
  line-height:1.6;
}
.layout-refresh .page-header-title { margin:0; font-size:26px; line-height:1.4; letter-spacing:-.025em; }
.layout-refresh .page-header-sub,.layout-refresh .loading { color:var(--ui-muted); }
.layout-refresh .card { border-color:var(--border); box-shadow:0 2px 8px #16324f05; border-radius:14px; }
.layout-refresh .section-title { line-height:1.5; margin-bottom:16px; font-weight:700; }
.layout-refresh .btn { min-height:44px; font-family:inherit; line-height:1.5; background:var(--ui-primary); border-color:var(--ui-primary); padding:11px 18px; transition:background-color 150ms,border-color 150ms,box-shadow 150ms; touch-action:manipulation; }
.layout-refresh .btn:hover:not(:disabled) { background:var(--ui-primary-hover); border-color:var(--ui-primary-hover); }
.layout-refresh .btn-outline { background:var(--ui-surface); color:var(--ui-primary-hover); border:1px solid var(--ui-control-border); }
.layout-refresh .btn-outline:hover:not(:disabled) { background:var(--ui-soft); color:var(--ui-primary-hover); border-color:var(--ui-primary); }
.layout-refresh .btn-danger { background:var(--danger); border-color:var(--danger); color:#fff; }
.layout-refresh .btn-danger:hover:not(:disabled) { background:#942334; border-color:#942334; }
.layout-refresh .btn:disabled { background:#e4eaf0; border-color:#d5dfe8; color:#627384; cursor:not-allowed; box-shadow:none; }
.layout-refresh :is(a,button,input,select,textarea,summary,[tabindex]):focus-visible { outline:3px solid var(--ui-ring); outline-offset:3px; }
.layout-refresh .sidebar :is(a,button):focus-visible { outline-color:#7cdbff; }
.layout-refresh .field label { font-size:13px; font-weight:600; color:var(--text); margin-bottom:7px; }
.layout-refresh input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.layout-refresh select,.layout-refresh textarea { min-height:44px; font-size:16px; border-color:var(--ui-control-border); background:#fbfdff; line-height:1.5; }
.layout-refresh input::placeholder,.layout-refresh textarea::placeholder { color:#60758a; opacity:1; }
.layout-refresh .stepper-btn { min-width:44px; min-height:44px; }
.layout-refresh .sidebar-nav-item[data-nav-group] { font-size:14px; }
.layout-refresh .sidebar-section-label[data-nav-group] { line-height:1.5; }
.layout-refresh .operation-bar-label,.layout-refresh .operation-bar-meta,.layout-refresh .operation-bar-capacity,.layout-refresh .operation-bar-count .operation-bar-label { color:var(--ui-muted); }
.layout-refresh #statGrid .stat-card { padding:20px; border-radius:14px; }
.layout-refresh #statGrid .value { font-size:36px; font-variant-numeric:tabular-nums; line-height:1.3; }
.layout-refresh #statGrid .value :is(.stat-unit,.stat-groups) { color:var(--ui-muted); }
.layout-refresh #statGrid .label { color:var(--ui-muted); font-size:13px; margin-top:10px; }
.layout-refresh #statGrid .stat-wait { color:#6254aa; }
.layout-refresh .desk-launchers { gap:16px; }
.layout-refresh .desk-launchers .desk-launch { background:var(--ui-surface); color:var(--ui-primary-hover); border-color:var(--ui-control-border); box-shadow:none; }
.layout-refresh .desk-launchers .desk-launch:first-child { background:var(--ui-primary); border-color:var(--ui-primary); color:#fff; }
.layout-refresh .desk-launchers .desk-launch:first-child:hover { background:var(--ui-primary-hover); border-color:var(--ui-primary-hover); }
.layout-refresh .desk-launchers .desk-launch:hover { background:var(--ui-soft); border-color:var(--ui-primary); color:var(--ui-primary-hover); }
.layout-refresh :is(.ops-flow,.ops-facts,.ops-live-card,.ops-health,.ops-tips,.ops-tile) { border-radius:14px; box-shadow:0 2px 8px #16324f05; }
.layout-refresh .ops-heading { margin-bottom:18px; }
.layout-refresh .ops-heading h2 { font-size:16px; color:var(--text); }
.layout-refresh :is(.ops-heading p,.ops-heading small,.ops-flow-step small,.ops-flow-step em,.ops-fact small,.ops-fact p,.ops-tile small,.ops-tile p,.ops-health p,.ops-tip-source,.ops-learning-status) { color:var(--ui-muted); }
.layout-refresh .ops-flow-step { min-height:104px; padding:14px 20px 14px 24px; }
.layout-refresh .ops-flow-step:first-child { padding-left:14px; }
.layout-refresh .ops-flow-step strong { font-size:13px; line-height:1.6; }
.layout-refresh .ops-flow-step small { font-size:12px; line-height:1.6; }
.layout-refresh .ops-flow-step:focus-visible { outline:0; background:#d5ebf8; box-shadow:inset 0 0 0 3px var(--ui-ring); }
.layout-refresh .ops-fact:hover,.layout-refresh .ops-tile:hover { background:#f3f9fd; border-color:#a8ccdf; }
.layout-refresh .ops-tile footer { color:var(--ui-primary-hover); font-weight:600; }
.layout-refresh .table th,.layout-refresh .sales-data-table th { background:#f1f5f9; color:#465d72; font-size:12px; font-weight:600; }
.layout-refresh .sales-data-table tbody tr:nth-child(even) { background:#f8fafc; }
.layout-refresh .sales-data-table tbody tr:hover { background:#edf6fb; }
.layout-refresh .sales-data-table td { font-variant-numeric:tabular-nums; }
.layout-refresh .sales-filter-grid label { font-size:13px; font-weight:600; color:var(--text); }
.layout-refresh .sales-kpi small,.layout-refresh .sales-kpi p,.layout-refresh .sales-note { color:var(--ui-muted); }
.layout-refresh .sales-kpi strong { font-variant-numeric:tabular-nums; }
.layout-refresh .staff-skip-link { position:fixed; top:12px; left:12px; z-index:2000; padding:12px 18px; border-radius:8px; background:#fff; color:#102f4b; box-shadow:0 4px 20px #102f4b33; transform:translateY(-180%); }
.layout-refresh .staff-skip-link:focus { transform:translateY(0); }
.layout-refresh .main-content:focus { outline:none; }
@media(max-width:767px) {
  .layout-refresh .main-content { padding:20px 16px; }
  .layout-refresh .page-header-title { font-size:23px; }
  .layout-refresh .desk-launchers { gap:10px; }
  .layout-refresh .desk-launchers .desk-launch { font-size:14px; padding:12px 8px; }
  .layout-refresh #statGrid .stat-card { padding:16px; }
  .layout-refresh #statGrid .value { font-size:30px; }
  .layout-refresh .ops-flow-step { padding:14px 18px 14px 22px; min-height:100px; }
}
@media(prefers-reduced-motion:reduce) {
  .layout-refresh :is(.btn,.sidebar-nav-item,.ops-flow-step,.operation-bar-fill) { transition:none; }
}
/* Compact navy operation panel: a page header, never a scrolling overlay. */
.layout-refresh .operation-bar {
  --header-muted:#bad1e2; --header-line:#36566f;
  position:static; display:block; isolation:auto; margin:0 0 26px; padding:20px 22px 0;
  background:linear-gradient(115deg,#102b43,#163d58); color:#f4faff;
  border:1px solid #31536c; border-top:3px solid #35b8df; border-radius:16px;
  box-shadow:0 8px 24px #102d4410;
}
.layout-refresh .main-content > .operation-bar { margin:0 0 26px; }
.layout-refresh .operation-bar-items { display:grid; grid-template-columns:1fr 1.15fr 1fr 1.25fr 1.8fr; gap:0; align-items:center; }
.layout-refresh .operation-bar-item { display:block; min-width:0; padding:0 18px; border-right:1px solid var(--header-line); }
.layout-refresh .operation-bar-item:first-child { padding-left:0; }
.layout-refresh .operation-bar .operation-bar-label { display:flex; align-items:center; gap:7px; margin:0 0 7px; font-size:11px; font-weight:500; letter-spacing:.04em; color:var(--header-muted); }
.layout-refresh .operation-bar-label svg { width:15px; height:15px; flex:none; fill:none; stroke:#75cce9; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.layout-refresh .operation-bar .operation-bar-value { color:#f4faff; font-size:16px; font-weight:700; line-height:1.5; letter-spacing:.01em; }
.layout-refresh .operation-bar .operation-mode-trigger { min-height:32px; margin:-4px 0; padding:2px 0; gap:8px; }
.layout-refresh .operation-mode-info { color:#85d5ee; }
.layout-refresh .operation-mode-trigger:focus-visible { outline-color:#85d5ee; }
.layout-refresh .operation-bar-item.operation-bar-count { display:flex; gap:18px; padding:8px 12px 8px 20px; min-width:0; max-width:none; border:0; background:#ffffff08; border-radius:10px; }
.layout-refresh .operation-bar-count-text { flex:none; }
.layout-refresh .operation-bar-count .operation-bar-value { font:800 32px/1.1 "Manrope","Noto Sans JP",sans-serif; letter-spacing:-.04em; }
.layout-refresh .operation-bar-count .operation-bar-label { font-size:10px; margin:6px 0 0; letter-spacing:.01em; }
.layout-refresh .operation-bar .operation-bar-capacity { color:var(--header-muted); font-size:12px; }
.layout-refresh .operation-bar .operation-bar-track { height:6px; min-width:32px; background:#49667b; }
.layout-refresh .operation-bar .operation-bar-fill { background:linear-gradient(90deg,#3caadd,#77deef); }
.layout-refresh .operation-bar .operation-bar-meta { max-width:none; margin:16px 0 0; padding:9px 0; border-top:1px solid var(--header-line); font-size:10px; line-height:1.7; text-align:right; color:var(--header-muted); }
.layout-refresh .operation-bar-meta::before { width:6px; height:6px; background:#75d2ef; margin-right:7px; }
.layout-refresh .operation-bar .operation-bar-meta.is-error { color:#ffdaa3; }
.layout-refresh .operation-bar-meta.is-error::before { background:#ffca74; }
.layout-refresh .page-header { border:0; padding:0 0 0 15px; margin-bottom:22px; position:relative; }
.layout-refresh .page-header::before { content:""; position:absolute; left:0; top:3px; bottom:3px; width:3px; border-radius:3px; background:linear-gradient(#159bc9,#87daeb); }
.layout-refresh .page-header-title { font-size:27px; letter-spacing:-.035em; }
.layout-refresh .page-header-sub { line-height:1.6; }
.layout-refresh .page-header-meta .chip { color:#28516d; background:#fff; border-color:#ccdae6; font-size:12px; padding:8px 14px; }
@media(min-width:768px) and (max-width:1199px) {
  .layout-refresh > .operation-bar { margin:16px 20px 0; }
}
@media(max-width:1000px) {
  .layout-refresh .operation-bar-items { grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px 0; }
  .layout-refresh .operation-bar-item.operation-bar-count { grid-column:1 / -1; padding:12px 16px; }
  .layout-refresh .operation-mode-help { border-right:0; }
}
@media(max-width:767px) {
  .layout-refresh > .operation-bar { margin:12px; padding:16px 16px 0; border-radius:13px; }
  .layout-refresh .operation-bar-items { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 0; }
  .layout-refresh .operation-bar-item { padding:0 12px; }
  .layout-refresh .operation-bar-item:nth-child(odd) { padding-left:0; }
  .layout-refresh .operation-bar-item:nth-child(even) { border-right:0; }
  .layout-refresh .operation-bar .operation-bar-label { font-size:11px; margin-bottom:6px; }
  .layout-refresh .operation-bar .operation-bar-value { font-size:15px; }
  .layout-refresh .operation-bar-count .operation-bar-value { font-size:30px; }
  .layout-refresh .operation-bar-count .operation-bar-label { margin:5px 0 0; font-size:10px; }
  .layout-refresh .operation-bar .operation-bar-meta { margin-top:12px; font-size:10px; text-align:left; }
  .layout-refresh .page-header-title { font-size:24px; }
}
/* One compact navigation layout below the existing 1200px desktop boundary.
   Reset desktop flex-basis/width/sticky rules together, so a column shell cannot
   retain a narrow, tall sidebar on tablets. No viewport height offsets needed. */
@media(max-width:1199px) {
  .layout-refresh .app-shell { display:block; min-height:0; }
  .layout-refresh .sidebar {
    display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:12px;
    align-items:center; align-self:auto; position:static; top:auto;
    flex:none; width:100%; min-width:0; height:auto; min-height:0; max-height:none;
    overflow:visible; padding:14px 20px;
  }
  .layout-refresh .sidebar-logo {
    grid-column:1; grid-row:1; display:flex; flex-direction:row; flex:none;
    align-items:center; justify-content:flex-start; gap:10px; margin:0; padding:0;
    min-width:0; width:auto; max-width:none; text-align:left;
  }
  .layout-refresh .sidebar-logo > span:last-child { min-width:0; flex:1 1 auto; }
  .layout-refresh .sidebar-logo .brand-title { display:block; white-space:normal; word-break:keep-all; overflow-wrap:normal; line-height:1.5; }
  .layout-refresh .sidebar-logo .app-logo-slot { flex:none; align-self:center; width:58px; max-width:58px; height:55px; }
  .layout-refresh .sidebar-logo .app-logo { width:66px; height:66px; left:-4px; top:-6px; }
  .layout-refresh #staffNavToggle { display:inline-flex; grid-column:2; grid-row:1; align-items:center; justify-content:center; min-height:48px; margin:0; }
  .layout-refresh #staffLogoutBtn { grid-column:3; grid-row:1; align-self:center; margin:0; }
  .layout-refresh #staffNavLinks {
    display:none; grid-column:1 / -1; grid-row:2; flex:none; flex-direction:row;
    flex-wrap:wrap; gap:4px 12px; min-width:0; width:100%; overflow:visible; padding:0;
  }
  .layout-refresh .layout-nav-open #staffNavLinks { display:flex; }
  .layout-refresh #staffNavLinks > .sidebar-section-label { flex:0 0 100%; width:100%; }
  .layout-refresh #staffNavLinks > .sidebar-nav-item { flex:0 1 calc(50% - 6px); min-width:0; white-space:normal; }
  .layout-refresh .main-content { display:block; flex:none; min-width:0; width:100%; margin:0; padding:24px; }
}
@media(max-width:767px) {
  .layout-refresh .sidebar { grid-template-columns:minmax(0,1fr) auto; padding:14px 16px; }
  .layout-refresh .sidebar-logo { grid-column:1 / -1; grid-row:1; }
  .layout-refresh #staffNavToggle { grid-column:1; grid-row:2; justify-self:start; }
  .layout-refresh #staffLogoutBtn { grid-column:2; grid-row:2; }
  .layout-refresh #staffNavLinks { grid-row:3; }
  .layout-refresh #staffNavLinks > .sidebar-nav-item { flex-basis:100%; }
  .layout-refresh .main-content { padding:20px 16px; }
}
/* Tablet landscape needs enough room for both a 208px rail and the work area.
   The same width/orientation query is used by isStaffWideLayout_ below. */
@media(min-width:1024px) and (max-width:1199px) and (orientation:landscape) {
  .layout-refresh .app-shell { display:flex; flex-direction:row; align-items:stretch; min-height:100vh; }
  .layout-refresh .sidebar {
    display:flex; flex:0 0 208px; width:208px; flex-direction:column; flex-wrap:nowrap;
    align-items:stretch; align-self:flex-start; position:sticky; top:0;
    height:100vh; height:100dvh; overflow-y:auto; padding:18px 12px; gap:6px;
  }
  .layout-refresh .sidebar-logo { display:flex; flex-direction:column; align-items:center; text-align:center; gap:6px; padding:0 0 8px; }
  .layout-refresh .sidebar-logo > span:last-child { flex:none; width:100%; }
  .layout-refresh .sidebar-logo .app-logo-slot { width:84px; max-width:84px; height:80px; }
  .layout-refresh .sidebar-logo .app-logo { width:96px; height:96px; left:-6px; top:-9px; }
  .layout-refresh .brand-caption { display:block; }
  .layout-refresh #staffNavToggle { display:none; }
  .layout-refresh #staffNavLinks { display:flex; flex:none; flex-direction:column; flex-wrap:nowrap; width:100%; }
  .layout-refresh #staffNavLinks > .sidebar-section-label { flex:none; width:100%; }
  .layout-refresh #staffNavLinks > .sidebar-nav-item { flex:none; width:100%; }
  .layout-refresh #staffLogoutBtn { margin-top:auto; align-self:stretch; }
  .layout-refresh .main-content { flex:1 1 0; width:auto; min-width:0; padding:24px; }
  .layout-refresh.layout-dashboard .ops-flow-steps { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(display-mode:standalone) {
  body.layout-refresh { padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px); }
}
.staff-install-help { margin-top:20px; padding-top:16px; border-top:1px solid var(--border); font-size:13px; line-height:1.8; color:#52657a; }
.staff-install-help summary { min-height:44px; padding:8px 0; color:#075c7b; font-weight:600; cursor:pointer; }
.staff-install-help ol { padding-left:22px; }
.wristband-display { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr)); gap:12px 20px; align-items:center; min-width:0; padding:14px 16px; border:1px solid var(--border); border-radius:12px; background:var(--bg,#f4f7fb); color:var(--brand-dark); }
.wristband-display > div { min-width:0; }
.wristband-display-label { display:block; margin-bottom:5px; color:var(--text-muted,#52657a); font-size:13px; font-weight:600; line-height:1.4; }
.wristband-number,.wristband-end { display:block; font-size:clamp(32px,3.2vw,44px); font-weight:800; line-height:1.15; letter-spacing:-.025em; font-variant-numeric:tabular-nums; white-space:nowrap; }
.wristband-member { display:block; margin-top:4px; font-size:14px; font-weight:600; }
.admission-band-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr)); gap:16px; margin-top:12px; }
.admission-band-grid .wristband-display { padding:20px; background:#edf8fd; border-color:#9ed6e9; }
.admission-band-grid .wristband-number,.admission-band-grid .wristband-end { font-size:clamp(36px,4.5vw,64px); }
@media(max-width:600px) { .admission-band-grid .wristband-display { gap:12px; padding:16px; } }

/* Premium reception number: dark gold keeps text readable on light cards. */
.premium-ticket-number{color:#85600c!important;font-weight:800}
input.premium-ticket-number:disabled{-webkit-text-fill-color:#85600c;opacity:1}

.ticket-number{white-space:nowrap}.ticket-crown-slot{display:inline-block;width:1.25em;height:.8em;margin-right:6px;line-height:0;text-align:center;vertical-align:baseline}.ticket-crown-slot svg{display:block;width:100%;height:100%}



.band-pass-label{display:inline-block;margin-left:8px;font-size:12px;font-weight:700;padding:2px 8px;border:1px solid #dce6ee;border-radius:6px;color:#526c83;background:#f4f7fa;white-space:nowrap}.band-pass-label--premium{color:#85600c;background:#fff7df;border-color:#d9bf7a}

/* Larger staff checkboxes with a touch-sized label target. */
input[type="checkbox"]{width:24px!important;height:24px!important;min-width:24px;min-height:24px;flex:0 0 24px;vertical-align:middle;cursor:pointer}
label:has(input[type="checkbox"]){display:flex;align-items:center;gap:10px;min-height:44px;box-sizing:border-box;cursor:pointer}
input[type="checkbox"]:disabled{cursor:default}

/* Admission cards: identical top rows; status and instructions use full-width rows. */
.admission-band-grid{align-items:stretch}
.admission-band-grid .wristband-display{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;align-content:start;grid-auto-rows:max-content}
.admission-band-grid .wristband-display>div{align-self:start}
.admission-band-grid .admission-preschool-badge{grid-column:1/-1;justify-self:start;display:inline-block;font-size:13px;line-height:1.5;font-weight:800;padding:3px 8px;border:1px solid #8ebfd6;border-radius:6px;color:#07577a;background:#e5f5fc}
.admission-band-grid .admission-preschool-note{display:block;grid-column:1/-1;white-space:nowrap;overflow-wrap:normal;font-size:13px;line-height:1.5;font-weight:800;color:#064b69}
