    /* ════════════════════════════════════════════════════════════════════════
       ClearFlow design system — "quiet precision"
       One accent, neutral surfaces, hairline borders, generous whitespace.
       Red is reserved exclusively for risk (ADR-0004 zero tolerance): the
       calmer everything else is, the louder a flagged field reads.
       ════════════════════════════════════════════════════════════════════════ */
    /* ── Reset & base ──────────────────────────────────────────────────────── */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
    body {
      font-family: var(--font-sans);
      font-size: 14px;
      line-height: 1.5;
      color: var(--ink);
      background: var(--bg);
      min-height: 100vh;
    }
    /* A single, very faint cool wash at the top — atmosphere without noise. */
    body::before {
      content: "";
      position: fixed;
      inset: 0 0 auto 0;
      height: 420px;
      background: radial-gradient(120% 100% at 50% 0%, rgba(0, 113, 227, 0.055), rgba(0, 113, 227, 0) 70%);
      pointer-events: none;
      z-index: 0;
    }
    button { font-family: inherit; }
    :focus-visible { outline: none; box-shadow: 0 0 0 3.5px rgba(0, 113, 227, 0.28); border-radius: 6px; }
    ::selection { background: rgba(0, 113, 227, 0.18); }

    .icon-svg { width: 1em; height: 1em; vertical-align: -0.14em; flex-shrink: 0; }

    /* ── Header — translucent toolbar, macOS style ─────────────────────────── */
    .app-header {
      position: sticky;
      top: 0;
      z-index: 100;
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 13px 28px;
      background: rgba(251, 251, 253, 0.78);
      -webkit-backdrop-filter: saturate(180%) blur(20px);
      backdrop-filter: saturate(180%) blur(20px);
      border-bottom: 1px solid var(--hairline-soft);
    }
    .app-header .logo-mark {
      display: grid;
      place-items: center;
      width: 30px; height: 30px;
      border-radius: 8.5px;
      background: linear-gradient(145deg, #0a84ff, #0055c8);
      color: #fff;
      box-shadow: 0 2px 6px -1px rgba(0, 90, 200, 0.45);
    }
    .app-header h1 {
      font-size: 17px;
      font-weight: 700;
      letter-spacing: -0.022em;
      color: var(--ink);
    }
    .app-header .badge {
      font-size: 13px;
      color: var(--ink-3);
      padding-left: 12px;
      border-left: 1px solid var(--hairline);
      letter-spacing: 0.01em;
    }
    .operator-menu-wrap {
      position: relative;
      margin-left: auto;
    }
    .operator-chip {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      font-size: 13px;
      color: var(--ink-2);
      background: rgba(0, 0, 0, 0.045);
      border: none;
      border-radius: 999px;
      padding: 5px 12px;
      cursor: pointer;
    }
    .operator-chip::before {
      content: "";
      width: 6px; height: 6px;
      border-radius: 50%;
      background: var(--green);
    }
    .operator-chip::after {
      content: "";
      width: 6px;
      height: 6px;
      border-right: 1.5px solid currentColor;
      border-bottom: 1.5px solid currentColor;
      transform: rotate(45deg) translateY(-2px);
    }
    .operator-menu {
      position: absolute;
      top: calc(100% + 8px);
      right: 0;
      z-index: 110;
      width: 142px;
      padding: 5px;
      border: 1px solid var(--hairline);
      border-radius: 8px;
      background: var(--surface);
      box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.2);
    }
    .operator-menu[hidden] { display: none; }
    .operator-menu button {
      display: block;
      width: 100%;
      padding: 8px 10px;
      border: none;
      border-radius: 5px;
      background: none;
      color: var(--ink-2);
      cursor: pointer;
      font-size: 13px;
      text-align: left;
    }
    .operator-menu button:hover { background: var(--surface-2); color: var(--ink); }
    .operator-menu .logout-link { color: var(--ink-3); }
    .logout-link {
      font-size: 13px;
      color: var(--ink-3);
      background: none;
      border: none;
      cursor: pointer;
      padding: 5px 6px;
    }
    .logout-link:hover { color: var(--ink-2); }
    .nav-link { font-size: 13px; color: var(--accent-ink); text-decoration: none; padding-left: 12px; border-left: 1px solid var(--hairline); }
    button.nav-link { border-top: 0; border-right: 0; border-bottom: 0; background: none; cursor: pointer; font-family: inherit; }
    .nav-link:hover { text-decoration: underline; }

    .container { max-width: 960px; margin: 0 auto; padding: 28px 20px 48px; position: relative; z-index: 1; }
    .container.wide { max-width: 1280px; }

    /* ── Stat strip — quiet numbers, ink not paint ─────────────────────────── */
    .stat-strip {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      background: var(--surface);
      border: 1px solid var(--hairline-soft);
      border-radius: var(--radius-card);
      box-shadow: var(--shadow-card);
      margin-bottom: 20px;
      overflow: hidden;
    }
    .stat-tile { padding: 18px 24px 16px; }
    .stat-tile + .stat-tile { border-left: 1px solid var(--hairline-soft); }
    .stat-tile .num {
      font-size: 30px;
      font-weight: 650;
      letter-spacing: -0.03em;
      font-variant-numeric: tabular-nums;
      color: var(--ink);
      line-height: 1.15;
    }
    .stat-tile .lbl { font-size: 13px; color: var(--ink-3); margin-top: 2px; letter-spacing: 0.01em; }

    /* 今日队列 (#205): the strip becomes clickable lifecycle cells. */
    .queue-strip { grid-template-columns: repeat(5, 1fr); }
    .queue-strip.has-failed { grid-template-columns: repeat(6, 1fr); }
    .queue-cell {
      appearance: none; border: none; background: transparent; text-align: left;
      font: inherit; cursor: pointer; position: relative;
    }
    .queue-cell:hover { background: rgba(0, 0, 0, 0.025); }
    .queue-cell:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
    .queue-cell + .queue-cell { border-left: 1px solid var(--hairline-soft); }
    .queue-cell.danger .num { color: var(--red, #d92d20); }
    .queue-cell.danger .num[data-zero="true"] { color: var(--ink); }
    .queue-cell.ok .num { color: var(--green, #248a3d); }
    .queue-cell .queue-sub { font-size: 13px; color: var(--ink-3); margin-top: 3px; }
    .queue-cell.active { background: rgba(0, 113, 227, 0.06); }
    .confirmed-bucket-chip {
      display: inline-flex; align-items: center; gap: 6px;
      padding: 3px 10px; border-radius: 999px; font-size: 13px;
      background: rgba(0, 113, 227, 0.1); color: var(--accent);
      border: none; cursor: pointer; font-weight: 550;
    }

    /* ── Cards ─────────────────────────────────────────────────────────────── */
    .card {
      background: var(--surface);
      border: 1px solid var(--hairline-soft);
      border-radius: var(--radius-card);
      box-shadow: var(--shadow-card);
      padding: 22px 26px;
      margin-bottom: 20px;
    }
    .card h2 {
      font-size: 15px;
      font-weight: 650;
      letter-spacing: -0.014em;
      margin-bottom: 16px;
      color: var(--ink);
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .card h2 .count-chip {
      font-size: 13px;
      font-weight: 600;
      color: var(--ink-2);
      background: rgba(0, 0, 0, 0.05);
      border-radius: 999px;
      padding: 1.5px 8px;
      font-variant-numeric: tabular-nums;
    }

    /* Staggered entrance — one orchestrated reveal on load, then silence. */
    @media (prefers-reduced-motion: no-preference) {
      .rise { animation: rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }
      .rise:nth-child(2) { animation-delay: 0.06s; }
      .rise:nth-child(3) { animation-delay: 0.12s; }
      .rise:nth-child(4) { animation-delay: 0.18s; }
      @keyframes rise {
        from { opacity: 0; transform: translateY(10px); }
        to   { opacity: 1; transform: none; }
      }
    }

