    .attendance-page { max-width: 560px; margin: 0 auto; padding: 16px 20px 40px; }
    .user-line { font-size: 13px; color: var(--color-text-muted); margin-bottom: 14px; }

    /* 独立ピル型タブ */
    .tabs { display: flex; gap: 8px; margin-bottom: 16px; }
    .tab-btn {
      flex: 1; padding: 11px 0; text-align: center;
      font-size: 13px; font-weight: 500; font-family: inherit;
      border-radius: 9999px !important;
      border: 1px solid var(--color-border);
      background: var(--color-surface); color: var(--color-text-muted);
      box-shadow: var(--shadow-1);
      cursor: pointer; transition: all 180ms;
    }
    .tab-btn.active {
      background: #e8f0fe; color: #1a73e8;
      border-color: #c5d8f6; font-weight: 600;
    }

    /* v6.39.1: 配置確認タブ右上の未確認件数バッジ。
       v6.39.0 トップ「報告」タイルの .badge-pending (public/css/index.css) と完全同デザイン。
       並列定義（設計知見 #92）: index.css と attendance.css の 2 ファイルに同定義。
       3 ページ目が必要になるまで共通 CSS への切り出しは保留（YAGNI 原則）。 */
    .tab-btn { position: relative; }
    .tab-btn .badge-pending {
      position: absolute;
      top: -6px;
      right: -6px;
      min-width: 22px;
      height: 22px;
      /* v6.42.10: 数字の光学ズレ補正（index.css .badge-pending と並列定義）。下パディングで約1px 上寄せ。 */
      padding: 0 6px 2px;
      background: #e53935;
      color: #fff;
      font-size: 12px;
      font-weight: 700;
      border-radius: 11px;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 2px solid #fff;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
      z-index: 2;
      line-height: 1;
      letter-spacing: 0.02em;
    }

    /* 翌週確認タブ */
    .upcoming-header {
      background: var(--color-surface); border: 1px solid var(--color-border);
      border-radius: 12px; padding: 14px 16px; margin-bottom: 14px;
      box-shadow: var(--shadow-1);
    }
    .upcoming-title { font-size: 15px; font-weight: 600; margin-bottom: 10px; }
    .upcoming-progress-row { display: flex; align-items: center; gap: 12px; }
    .upcoming-progress-bar {
      flex: 1; display: flex; height: 18px; background: #eee;
      border-radius: 9px; overflow: hidden;
    }
    .up-ok { background: #34a853; }
    .up-ng { background: #ea4335; }
    .up-pending { background: #fbbc04; }
    .upcoming-progress-text { min-width: 90px; text-align: right; font-size: 13px; color: var(--color-text-muted); }
    .upcoming-done { color: #188038; font-weight: 600; margin-top: 8px; font-size: 13px; }
    .upcoming-empty { color: var(--color-text-muted); font-size: 13px; }
    .upcoming-list { display: flex; flex-direction: column; gap: 18px; }
    .day-group { display: flex; flex-direction: column; gap: 8px; }
    .day-group-header {
      display: flex; align-items: center; gap: 10px; padding: 6px 4px;
      font-size: 14px; font-weight: 700; color: var(--color-text);
      border-bottom: 2px solid #e0e0e0;
    }
    .day-pending-badge {
      font-size: 11px; padding: 2px 10px; border-radius: 9999px; font-weight: 600;
      background: rgba(242,153,0,.15); color: #b06000;
    }
    .day-done-badge {
      font-size: 11px; padding: 2px 10px; border-radius: 9999px; font-weight: 600;
      background: rgba(24,128,56,.15); color: #188038;
    }
    .upc-card {
      background: var(--color-surface); border: 1px solid var(--color-border);
      border-radius: 12px; padding: 14px; box-shadow: var(--shadow-1);
    }
    .upc-card.upc-ok-done { background: rgba(52, 168, 83, .07); border-color: rgba(52,168,83,.3); }
    .upc-card.upc-ng-done { background: rgba(234, 67, 53, .07); border-color: rgba(234,67,53,.3); }
    .upc-row1 { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
    .upc-date { font-size: 14px; font-weight: 600; }
    .upc-time { font-size: 13px; color: var(--color-text-muted); }
    /* v6.16.13-hotfix.1: ポスト名バッジとの縦中央揃えのため flex 化（OK 管理と並列、信介氏判断「3 画面全部修正」） */
    .upc-site { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; }
    .upc-customer { font-size: 12px; color: var(--color-text-muted); margin-bottom: 10px; }
    .upc-state-badge {
      display: inline-block; padding: 4px 12px; border-radius: 9999px;
      font-size: 12px; font-weight: 600; margin-top: 6px;
    }
    .upc-state-badge.ok { background: rgba(52,168,83,.15); color: #188038; }
    .upc-state-badge.ng { background: rgba(234,67,53,.15); color: #c5221f; }
    .upc-ng-reason { margin-top: 6px; font-size: 12px; color: #c5221f; }
    .upc-actions { display: flex; gap: 10px; margin-top: 12px; }
    .upc-btn {
      flex: 1; min-height: 44px; border: none; border-radius: 9999px;
      font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit;
    }
    .upc-btn.upc-ok { background: #188038; color: white; }
    .upc-btn.upc-ng { background: #ea4335; color: white; }
    .upc-btn.upc-cancel { background: rgba(0,0,0,.06); color: #333; }
    .upc-ng-form { margin-top: 12px; }
    .upc-ng-form textarea {
      width: 100%; padding: 8px 10px; border: 1px solid var(--color-border);
      border-radius: 8px; font-family: inherit; font-size: 13px; box-sizing: border-box;
      resize: vertical;
    }
    .upc-ng-actions { display: flex; gap: 10px; margin-top: 8px; }
    .badge-count {
      display: inline-block; margin-left: 6px; padding: 1px 8px;
      background: var(--color-red); color: #fff; border-radius: 10px; font-size: 11px;
    }

    .card {
      background: var(--color-surface);
      border: 1px solid var(--color-border);
      border-radius: 22px; padding: 22px;
      box-shadow: var(--shadow-1); margin-bottom: 12px;
    }
    .card-idx { font-size: 11px; color: var(--color-text-muted); margin-bottom: 6px; }
    .type-badge {
      display: inline-flex; align-items: center;
      height: 26px; padding: 0 12px; border-radius: 9999px;
      font-size: 11px; font-weight: 600;
      margin-right: 6px; margin-bottom: 10px;
    }
    .tb-交通誘導 { background: rgba(245,158,11,.12); color: #92400e; }
    .tb-管制     { background: rgba(124,58,237,.12); color: #5b21b6; }
    .tb-イベント { background: rgba(16,185,129,.12); color: #065f46; }
    .tb-施設     { background: rgba(59,130,246,.12); color: #1e40af; }
    .tb-unknown  { background: rgba(60,64,67,.10); color: var(--color-text-muted); }
    .overnight-badge {
      display: inline-flex; align-items: center;
      height: 26px; padding: 0 12px; border-radius: 9999px;
      font-size: 11px; font-weight: 600;
      background: #fef3c7; color: #92400e; margin-bottom: 10px;
    }
    /* v6.16.13-hotfix.1: ポスト名バッジとの縦中央揃えのため flex 化（信介氏判断「3 画面全部修正」） */
    .site-name { display: flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 500; color: var(--color-text); margin-top: 4px; line-height: 1.4; }
    .customer-line { font-size: 12px; color: var(--color-text-faint); margin-top: 2px; }
    .address-line { font-size: 12px; color: var(--color-text-muted); margin-top: 6px; }
    .time-line {
      font-size: 22px; font-weight: 500; margin-top: 12px; color: var(--color-text);
      letter-spacing: -.01em;
    }
    .time-note { font-size: 11px; color: var(--color-text-muted); font-weight: 500; }

    /* ステップ */
    .steps { display: flex; align-items: center; margin: 18px 0 12px; }
    .step {
      flex: 0 0 auto; display: flex; flex-direction: column; align-items: center;
      gap: 4px; font-size: 10px; color: var(--color-text-faint);
    }
    .step .circle {
      width: 32px; height: 32px; border-radius: 50%; display: flex;
      align-items: center; justify-content: center; font-size: 13px; font-weight: 600;
      background: var(--color-surface-2); color: var(--color-text-faint);
      border: 2px solid var(--color-border);
    }
    .step.done   .circle { background: #1a73e8; color: #fff; border-color: #1a73e8; }
    .step.active .circle { background: #fff; border-color: #1a73e8; color: #1a73e8; }
    .step.done, .step.active { color: #1a73e8; }
    .step-line {
      flex: 1; height: 2px; background: var(--color-divider);
      margin: 0 4px; margin-bottom: 14px;
    }
    .step-line.done { background: #1a73e8; }

    /* 履歴 */
    .history { margin-top: 10px; font-size: 12px; display: grid; gap: 4px; }
    .history-item {
      display: flex; align-items: center; gap: 10px; padding: 3px 0;
      color: var(--color-text);
    }
    .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
    .dot-confirm  { background: #1a73e8; }
    .dot-dep      { background: #f29900; }
    .dot-in       { background: #188038; }
    .dot-out      { background: #c5221f; }

    /* メインボタン（ピル型・ブルー primary に統一） */
    .action-btn {
      width: 100%; height: 52px; padding: 0 16px; border: none;
      border-radius: 9999px !important;
      font-size: 15px; font-weight: 500; font-family: inherit;
      cursor: pointer; color: #fff; margin-top: 18px;
      background: #1a73e8;
      box-shadow: var(--shadow-2);
      transition: opacity 0.15s, transform 0.1s, background 180ms;
    }
    .action-btn:disabled {
      opacity: 0.55; cursor: not-allowed;
      background: var(--color-surface-2); color: var(--color-text-muted);
      border: 1px solid var(--color-border); box-shadow: none;
    }
    .action-btn:active:not(:disabled) { transform: scale(0.98); }
    /* 旧の色分けクラスは同一の primary blue に統一 */
    .ab-confirm, .ab-dep, .ab-in, .ab-out { background: #1a73e8; color: #fff; }

    .action-note {
      font-size: 11px; color: var(--color-text-muted); text-align: center; margin-top: 8px;
    }
    .completed-msg {
      margin-top: 18px; height: 52px; border-radius: 9999px;
      display: flex; align-items: center; justify-content: center;
      text-align: center; font-weight: 500; font-size: 15px;
      background: rgba(24,128,56,.10); color: #188038; border: none;
    }
    .tomorrow-confirmed-msg {
      margin-top: 18px; height: 52px; border-radius: 9999px;
      display: flex; align-items: center; justify-content: center;
      text-align: center; font-weight: 500; font-size: 15px;
      background: var(--color-surface-2); color: var(--color-text-muted);
      border: 1px solid var(--color-border);
    }
    .empty-msg {
      text-align: center; color: var(--color-text-muted); padding: 40px 20px;
      background: var(--color-surface); border-radius: 22px;
      border: 1px solid var(--color-border); box-shadow: var(--shadow-1);
    }
    .footnote {
      margin-top: 20px; padding: 0 4px; font-size: 11px;
      color: var(--color-text-faint); line-height: 1.7; display: grid; gap: 4px;
    }

    /* モーダル */
    .modal-overlay {
      position: fixed; inset: 0; background: rgba(0,0,0,0.55);
      display: none; align-items: center; justify-content: center;
      padding: 20px; z-index: 500;
    }
    .modal-overlay.active { display: flex; }
    .modal-box {
      background: #fff; border-radius: var(--radius-md); padding: 20px;
      width: 100%; max-width: 360px; box-shadow: var(--shadow-lg);
    }
    .modal-title { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
    .modal-body { font-size: 14px; color: var(--gray-800); margin-bottom: 16px; white-space: pre-wrap; }
    .modal-actions { display: flex; gap: 8px; justify-content: flex-end; }

    /* トースト */
    .toast {
      position: fixed; top: 72px; left: 50%; transform: translateX(-50%) translateY(-10px);
      padding: 10px 18px; border-radius: var(--radius-sm); z-index: 800;
      color: #fff; font-size: 13px; font-weight: 500;
      box-shadow: var(--shadow-md); opacity: 0;
      transition: opacity 0.25s, transform 0.25s;
    }
    .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
    .toast.success { background: var(--success); }
    .toast.error   { background: var(--danger); }
    .toast.info    { background: var(--accent); }

    /* v6.2.22: 翌日先取り表示（本日タブに翌日案件を混ぜるときの仕切りとバッジ） */
    .day-separator {
      display: flex;
      align-items: center;
      gap: 10px;
      margin: 20px 0 12px;
    }
    .day-separator::before,
    .day-separator::after {
      content: '';
      flex: 1;
      height: 1px;
      background: var(--color-divider, rgba(60,64,67,.10));
    }
    .day-separator span {
      font-size: 11px;
      color: var(--color-text-faint, #80868b);
      letter-spacing: 0.04em;
    }
    .date-badge-next {
      display: inline-flex;
      align-items: center;
      height: 20px;
      padding: 0 8px;
      border-radius: 9999px;
      background: rgba(242, 153, 0, 0.14);
      color: #b06000;
      font-size: 11px;
      font-weight: 600;
      margin-left: 6px;
    }
    /* 翌日先取りカード本体の微差別化（視覚的に「先取り」であることを薄く示す） */
    .card.gs-panel.is-next-day {
      border-left: 3px solid rgba(242, 153, 0, 0.4);
    }

    /* v6.14.0: 前日確認モーダルの「直行/集合」2 択ピルボタン
       設計知見 #92「同じ情報を文脈に応じて異なる視覚言語で表現する」— 入力時の判断 UI として 2 ボタン排他選択。
       v6.13.x で確立したピル型 UI 統一原則を踏襲（border-radius: 9999px）。 */
    .cd-commute-toggle {
      display: flex;
      gap: 8px;
      margin: 4px 0 0 0;
    }
    .cd-commute-btn {
      flex: 1;
      height: 44px;
      padding: 0 16px;
      border-radius: 9999px;
      background: var(--color-surface, #fff);
      color: var(--color-text, #202124);
      border: 1px solid var(--color-border, rgba(60,64,67,.20));
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      transition: background 180ms, color 180ms, border-color 180ms;
      font-family: inherit;
    }
    .cd-commute-btn:hover {
      background: var(--color-surface-2, #f8f9fa);
    }
    .cd-commute-btn.is-selected {
      background: var(--color-primary, #1a73e8);
      color: #fff;
      border-color: var(--color-primary, #1a73e8);
    }
    .cd-commute-btn:focus-visible {
      outline: 2px solid var(--color-primary, #1a73e8);
      outline-offset: 2px;
    }
    /* 確認ボタンの disabled 表示（時間 + commute_type 両方未入力時） */
    #cdOk:disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }

    /* v6.16.13: ポスト名バッジ（v6.14.7 dashboard.css L449-465 と同パターン、親要素スコープ付き並列定義）。
       設計知見 #92「水平展開は意図された複製」+ #115「並列定義原則」継承。
       本日 / 明日タブ (.site-name 内) + 配置確認タブ (.upc-site 内) の両方で利用、
       3 タブとも 1 リストアイテム = 1 assignment = 1 post 構造のため単一バッジを inline 表示。
       post_type が NULL / 空のときは JS 側で span 自体を出力しないため、自然に非表示。 */
    .site-name .post-name-badge,
    .upc-site .post-name-badge {
      display: inline-flex;
      align-items: center;
      height: 18px;
      padding: 0 8px;
      /* v6.16.13-hotfix.1: margin-left: 6px を撤廃、親 .site-name / .upc-site の gap: 6px で代替 */
      border-radius: 9999px;
      background: var(--color-primary-soft, #e8f0fe);
      color: var(--color-primary, #1a73e8);
      font-size: 11px;
      font-weight: 500;
      white-space: nowrap;
      flex-shrink: 0;
      vertical-align: middle;
    }
    [data-theme="dark"] .site-name .post-name-badge,
    [data-theme="dark"] .upc-site .post-name-badge {
      background: rgba(26, 115, 232, 0.18);
      color: #8ab4f8;
    }
