/* 業主簿 C2 hi-fi · J4 Imperial whisper + p0-redo craft + Lucide tabs */
/* 業主簿 hi-fi · J4 Imperial whisper · Airwallex/Sharent finish bar */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;600;700&family=Noto+Serif+TC:wght@600;700&family=Source+Sans+3:wght@500;600&display=swap');

:root {
  --deep: #064536;
  --imperial: #0A7A5C;
  --glow: #C8EDE0;
  --paper: #f6f8f5;
  --white: #ffffff;
  --ink: #12241c;
  --muted: #5a6b63;
  --line: #d7e3dc;
  --ok: #0A7A5C;
  --ok-soft: #C8EDE0;
  --late: #9b2c2c;
  --late-soft: #fde8e8;
  --due: #8a6a1a;
  --due-soft: #f5efd8;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(6,69,54,.04), 0 8px 24px rgba(6,69,54,.06);
  --shadow-phone: 0 2px 8px rgba(6,69,54,.06), 0 16px 40px rgba(6,69,54,.08);
  --font-sans: "Noto Sans TC", "PingFang HK", "Segoe UI", system-ui, sans-serif;
  --font-serif: "Noto Serif TC", "Noto Sans TC", serif;
  --font-en: "Source Sans 3", "Noto Sans TC", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* Board pages set their own body padding; interactive #app shell owns layout in app.css */
body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
body.board-page {
  padding: 32px 40px 48px;
}

.board-title {
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
  font-family: var(--font-en);
}
.board-sub {
  font-size: 15px; color: var(--muted); margin-bottom: 28px;
  max-width: 64rem; line-height: 1.55;
}
.row {
  display: flex; gap: 36px; flex-wrap: wrap; align-items: flex-start;
  margin-bottom: 28px;
}
.col { width: 320px; }
.caption {
  margin-top: 14px; font-size: 13px; line-height: 1.55; color: var(--ink);
}
.caption .zh { font-weight: 600; margin-bottom: 4px; }
.caption .en {
  color: var(--muted); font-size: 12.5px;
  font-family: var(--font-en);
}
.caption .id {
  font-size: 11px; letter-spacing: 0.05em; color: var(--muted);
  margin-bottom: 6px; font-weight: 600;
  font-family: var(--font-en); opacity: 0.75;
}
.note {
  margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted); max-width: 64rem; line-height: 1.55;
}

/* ── Phone chrome ── */
.phone {
  width: 300px; height: 620px;
  background: var(--deep);
  border: none;
  border-radius: 32px;
  padding: 11px 10px 14px;
  position: relative;
  box-shadow: var(--shadow-phone);
}
.notch {
  width: 92px; height: 7px; background: rgba(200,237,224,.35);
  border-radius: 999px; margin: 3px auto 9px;
}
.screen {
  height: calc(100% - 20px);
  background: var(--paper);
  border: none;
  border-radius: 24px;
  overflow: hidden;
  display: flex; flex-direction: column;
}

/* Status bar */
.status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 14px 3px; font-size: 11px; font-weight: 600;
  color: var(--ink); letter-spacing: 0.02em;
}
.status .sig {
  display: flex; gap: 3px; align-items: center; color: var(--muted);
  font-size: 10px; font-weight: 500;
}
.status .sig i {
  display: inline-block; width: 14px; height: 8px;
  border: 1.25px solid var(--ink); border-radius: 2px; position: relative;
  opacity: 0.85;
}
.status .sig i::after {
  content: ""; position: absolute; right: -3px; top: 1.5px;
  width: 1.5px; height: 4px; background: var(--ink); border-radius: 0 1px 1px 0;
  opacity: 0.85;
}
.status .sig b {
  display: inline-block; width: 3px; height: 3px; border-radius: 50%;
  background: var(--ink); margin-right: 1px; opacity: 0.7;
}

/* Nav */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 14px 10px; border-bottom: 1px solid var(--line);
  background: var(--paper);
  min-height: 36px;
}
.nav .brand {
  font-size: 15px; font-weight: 700; letter-spacing: 0.1em;
  color: var(--deep); font-family: var(--font-sans);
}
.nav .back {
  font-size: 16px; color: var(--imperial); font-weight: 600;
  width: 22px; line-height: 1; cursor: default;
}
.nav .ghost {
  width: 20px; height: 20px;
  border: 1.5px solid var(--line); border-radius: 6px;
  background: var(--white);
  position: relative;
}
.nav .ghost::before,
.nav .ghost::after {
  content: ""; position: absolute; left: 4px; right: 4px; height: 1.5px;
  background: var(--muted); border-radius: 1px;
}
.nav .ghost::before { top: 6px; }
.nav .ghost::after { top: 11px; box-shadow: 0 5px 0 var(--muted); }

.body {
  flex: 1; padding: 12px 12px 8px; overflow: hidden;
  background: var(--paper);
}

/* Tab bar */
.tabbar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  padding: 7px 4px 11px;
  background: var(--white);
}
.tab {
  text-align: center; font-size: 9px; color: var(--muted);
  font-weight: 500; letter-spacing: 0.01em;
}
.tab .box {
  width: 20px; height: 20px; margin: 0 auto 3px;
  background: var(--glow); border-radius: 6px;
  opacity: 0.55;
}
.tab.on { color: var(--deep); font-weight: 700; }
.tab.on .box {
  background: var(--deep); opacity: 1;
  box-shadow: 0 1px 3px rgba(6,69,54,.18);
}

/* Type & cards
   C2 typography (Mike): Noto Serif TC on every primary screen title (.h);
   Noto Sans TC for body / buttons / tabs / labels / meta / job-card titles.
   .precious kept as alias (same as .h). */
.h,
.h.precious {
  font-family: var(--font-serif);
  font-size: 16px; font-weight: 700; margin-bottom: 3px;
  color: var(--ink); letter-spacing: 0.04em;
}
.sub {
  font-size: 11.5px; color: var(--muted); margin-bottom: 11px;
  line-height: 1.4;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 11px 12px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-card);
}
.card .row2 {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
}
.label {
  font-size: 10.5px; color: var(--muted); margin-bottom: 3px;
  font-weight: 500;
}
.val {
  font-size: 14px; font-weight: 700; color: var(--ink);
  letter-spacing: -0.01em;
}
.val.earn { color: var(--imperial); }

/* Chips */
.chip {
  display: inline-block; font-size: 10.5px; font-weight: 700;
  padding: 3px 9px; border-radius: var(--radius-pill);
  background: var(--glow); color: var(--deep);
  border: none; letter-spacing: 0.02em; white-space: nowrap;
  line-height: 1.3;
}
.chip.paid {
  background: var(--imperial); color: var(--white);
}
.chip.paid-soft {
  background: var(--glow); color: var(--deep);
}
.chip.due {
  background: var(--due-soft); color: var(--due);
}
.chip.late {
  background: var(--late-soft); color: var(--late);
}
.chip.open, .chip.soft {
  background: var(--white); color: var(--muted);
  border: 1px solid var(--line);
}
.chip.ok {
  background: var(--glow); color: var(--deep);
}
.chip.neutral {
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line);
}

/* Progress */
.bar {
  height: 7px; background: rgba(6,69,54,.06);
  border-radius: 999px; overflow: hidden; margin-top: 8px;
}
.bar > i {
  display: block; height: 100%; width: 75%;
  background: linear-gradient(90deg, var(--imperial), #0c8f6c);
  border-radius: 999px;
}

.list-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 12px;
  color: var(--ink);
}
.list-row:last-child { border-bottom: 0; }
.muted { color: var(--muted); font-size: 11px; }
.grid2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px;
}

/* Clock cards */
.clock {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 11px 12px;
  margin-bottom: 8px;
  background: var(--white);
  box-shadow: var(--shadow-card);
  position: relative;
}
.clock::before {
  content: ""; position: absolute; left: 0; top: 10px; bottom: 10px;
  width: 3px; border-radius: 0 2px 2px 0;
  background: var(--imperial); opacity: 0.7;
}
.clock .when { font-size: 12.5px; font-weight: 700; color: var(--deep); }
.clock .what { font-size: 11.5px; color: var(--muted); margin-top: 3px; line-height: 1.35; }

/* Segmented control */
.seg { display: flex; gap: 4px; margin-bottom: 11px; }
.seg span {
  flex: 1; text-align: center; font-size: 11px; padding: 6px 0;
  border: 1px solid var(--line); border-radius: 8px;
  color: var(--muted); background: var(--white); font-weight: 500;
}
.seg span.on {
  background: var(--deep); color: var(--white);
  font-weight: 700; border-color: var(--deep);
}

/* Red-line banners — calm, not alarmist */
.redline {
  margin-top: 7px; padding: 8px 10px;
  background: var(--due-soft);
  border: 1px solid #ead9a8;
  border-radius: var(--radius-sm);
  font-size: 10px; color: var(--due);
  line-height: 1.45; font-weight: 600;
}
.redline.legal {
  background: #f3f6f4;
  border-color: var(--line);
  color: var(--muted);
}
.redline.partner {
  background: var(--late-soft);
  border-color: #f0c8c8;
  color: #8a4545;
  font-weight: 600;
}

/* Fields */
.field {
  display: flex; justify-content: space-between; padding: 6px 0;
  border-bottom: 1px solid var(--line); font-size: 11.5px;
  gap: 8px;
}
.field:last-child { border-bottom: 0; }
.field .k { color: var(--muted); font-weight: 500; flex-shrink: 0; }
.field .v {
  font-weight: 600; text-align: right; max-width: 58%;
  color: var(--ink);
}

/* Buttons */
.btn-ghost {
  display: block; text-align: center; font-size: 12px; font-weight: 700;
  padding: 9px 12px;
  border: 1.5px solid var(--line); border-radius: var(--radius-md);
  margin-top: 6px; color: var(--ink); background: var(--white);
  letter-spacing: 0.01em;
}
.btn-primary {
  display: block; text-align: center; font-size: 12px; font-weight: 700;
  padding: 9px 12px; border: none; border-radius: var(--radius-md);
  margin-top: 6px; color: var(--white); background: var(--deep);
}
.btn-earn {
  display: block; text-align: center; font-size: 12px; font-weight: 700;
  padding: 9px 12px; border: none; border-radius: var(--radius-md);
  margin-top: 6px; color: var(--white); background: var(--imperial);
}

/* Photos / icons */
.photo-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin: 6px 0;
}
.photo-grid .ph {
  aspect-ratio: 1;
  background: linear-gradient(145deg, var(--glow), #e8f5ef);
  border: 1px solid var(--line); border-radius: 6px;
}
.icon-box {
  width: 28px; height: 28px;
  background: var(--glow); border-radius: 8px; flex-shrink: 0;
}
.tiny { font-size: 10px; color: var(--muted); line-height: 1.4; }
.section-h {
  font-size: 10.5px; font-weight: 700; color: var(--muted);
  letter-spacing: 0.06em; margin: 8px 0 6px; text-transform: uppercase;
  font-family: var(--font-en);
}

/* QR placeholder */
.qr-frame {
  width: 120px; height: 120px;
  background: var(--white);
  border: 1px solid var(--line);
  margin: 0 auto 10px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-card);
}
.qr-inner {
  width: 88px; height: 88px;
  background:
    linear-gradient(var(--deep), var(--deep)) 0 0 / 22px 22px no-repeat,
    linear-gradient(var(--deep), var(--deep)) calc(100% - 0px) 0 / 22px 22px no-repeat,
    linear-gradient(var(--deep), var(--deep)) 0 calc(100% - 0px) / 22px 22px no-repeat,
    repeating-linear-gradient(0deg, var(--deep) 0 3px, transparent 3px 7px),
    repeating-linear-gradient(90deg, var(--deep) 0 3px, transparent 3px 7px);
  background-color: var(--glow);
  border-radius: 4px;
  opacity: 0.9;
}

/* Celebration / settled moment header (serif once) */
.settle-head {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 18px;
  color: var(--deep);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

/* ═══════════════════════════════════════════
   Desktop / wide responsive web app frame
   ~1120–1280 content · left sidebar nav
   ═══════════════════════════════════════════ */
.desk {
  width: 1120px;
  height: 720px;
  background: #e8eee9;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-phone);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
}
.desk-chrome {
  height: 36px;
  background: #eef3ef;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 8px;
  flex-shrink: 0;
}
.desk-chrome .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #c5d4cb;
}
.desk-chrome .dot:nth-child(1) { background: #e8b4b4; }
.desk-chrome .dot:nth-child(2) { background: #e0d4a8; }
.desk-chrome .dot:nth-child(3) { background: #b8d4c4; }
.desk-chrome .url {
  flex: 1;
  margin-left: 12px;
  height: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-family: var(--font-en);
  letter-spacing: 0.01em;
}
.desk-body {
  flex: 1;
  display: flex;
  min-height: 0;
  background: var(--paper);
}
.desk-side {
  width: 220px;
  flex-shrink: 0;
  background: var(--white);
  border-right: 1px solid var(--line);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.desk-side .wm {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--deep);
  padding: 4px 10px 18px;
  font-family: var(--font-sans);
}
.desk-side .wm .en {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-top: 3px;
  font-family: var(--font-en);
  text-transform: none;
}
.desk-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.desk-nav-item .ico {
  width: 18px; height: 18px;
  border-radius: 5px;
  background: var(--glow);
  opacity: 0.6;
  flex-shrink: 0;
}
.desk-nav-item.on {
  background: var(--glow);
  color: var(--deep);
  font-weight: 700;
}
.desk-nav-item.on .ico {
  background: var(--deep);
  opacity: 1;
}
.desk-nav-sec {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
  padding: 16px 10px 6px;
  font-family: var(--font-en);
  opacity: 0.7;
}
.desk-main {
  flex: 1;
  padding: 24px 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.desk-main .page-h {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: -0.015em;
}
.desk-main .page-h.precious {
  font-family: var(--font-serif);
  letter-spacing: 0.06em;
}
.desk-main .page-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
  line-height: 1.4;
}
.desk-main .desk-content {
  flex: 1;
  overflow: hidden;
}
.desk-main .card { margin-bottom: 10px; }
.desk-main .grid2 { gap: 12px; margin-bottom: 12px; }
.desk-main .grid3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.desk-main .val { font-size: 15px; }
.desk-main .h { font-size: 15px; }
.desk-main .two-col {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 14px;
  align-items: start;
}
.desk-main .btn-ghost,
.desk-main .btn-primary,
.desk-main .btn-earn {
  display: inline-block;
  padding: 9px 18px;
  margin-top: 8px;
  margin-right: 8px;
  width: auto;
  min-width: 140px;
}
.desk-main .redline { max-width: 36rem; }
.desk-main .photo-grid { max-width: 280px; }
.desk-main .seg { max-width: 320px; }
.desk-main .qr-frame { margin-left: 0; }

/* Desktop board column wider */
.col-desk {
  width: 1140px;
  margin-bottom: 8px;
}
.col-desk .caption { max-width: 56rem; }

/* Status signal helper used in phones */
.status-right {
  display: flex; align-items: center; gap: 5px;
  font-size: 10px; color: var(--ink); font-weight: 600;
}

/* Turo-steer: soft positioning / scope notes (not red-line alarm) */
.steer-note {
  margin-top: 7px; padding: 7px 10px;
  background: var(--glow);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 10px; color: var(--deep);
  line-height: 1.45; font-weight: 600;
}
.fleet-card {
  padding: 10px 12px;
}
.fleet-card .fleet-name {
  font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.3;
}
.fleet-card .fleet-meta {
  font-size: 10.5px; color: var(--muted); margin-top: 2px; line-height: 1.35;
}
.fleet-card .fleet-wink {
  font-size: 10px; color: var(--muted); margin-top: 4px;
}
.fleet-card + .fleet-card { margin-top: 6px; }


/* === p0-redo extensions === */
/* P0-redo · extends parent J4 shared.css */

/* ── 3-tab IA: 今日 | 單位 | 更多 ── */
.tabbar.tabs-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Section label ZH (not EN uppercase FLEET) */
.section-zh {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin: 10px 0 6px;
  font-family: var(--font-sans);
  text-transform: none;
}

/* Today due wink */
.today-wink {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--due-soft);
  border: 1px solid #ead9a8;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--due);
  line-height: 1.35;
}
.today-wink .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--due); flex-shrink: 0;
}

/* Sticky job card — uncollected expanded */
.job-card {
  background: var(--white);
  border: 1.5px solid var(--imperial);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: 0 1px 2px rgba(6,69,54,.04), 0 8px 24px rgba(10,122,92,.10);
}
.job-card .job-title {
  font-size: 13.5px; font-weight: 700; color: var(--ink);
  margin-bottom: 2px;
}
.job-card .job-amt {
  font-size: 18px; font-weight: 700; color: var(--deep);
  letter-spacing: -0.02em; margin: 4px 0 2px;
}
.job-card .job-meta {
  font-size: 10.5px; color: var(--muted); margin-bottom: 8px;
}
.job-card .loop-signal {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 600;
  color: var(--imperial);
  background: var(--glow);
  padding: 3px 8px; border-radius: var(--radius-pill);
  margin-bottom: 10px;
}
.job-card .loop-signal::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--imperial);
}

/* One-tap action chips / buttons */
.action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.action-chip {
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-size: 11.5px; font-weight: 700;
  padding: 8px 6px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.action-chip.primary {
  background: var(--deep); color: var(--white);
}
.action-chip.secondary {
  background: var(--glow); color: var(--deep);
}
.action-chip.ghost {
  background: var(--white); color: var(--ink);
  border: 1px solid var(--line);
}

/* Compact action row for denser layouts */
.action-row.four {
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}
.action-row.four .action-chip {
  font-size: 10px; padding: 7px 2px;
}

/* Green month calm strip */
.green-strip {
  background: linear-gradient(135deg, var(--glow) 0%, #e8f7f1 100%);
  border: 1px solid #b8e0d0;
  border-radius: var(--radius-md);
  padding: 14px 14px;
  margin-bottom: 12px;
  text-align: center;
}
.green-strip .calm-line {
  font-family: var(--font-serif);
  font-size: 15px; font-weight: 700;
  color: var(--deep);
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}
.green-strip .calm-sub {
  font-size: 11px; color: var(--muted); font-weight: 500;
}

/* Flat hub — in-progress strip (hero) */
.progress-strip {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}
.prog-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 9px 11px;
  box-shadow: var(--shadow-card);
}
.prog-pill .pk {
  font-size: 10.5px; color: var(--muted); font-weight: 500;
}
.prog-pill .pv {
  font-size: 12px; font-weight: 700; color: var(--ink);
  text-align: right;
}
.prog-pill.hero {
  border-color: rgba(10,122,92,.35);
  background: linear-gradient(180deg, #fafffe 0%, var(--white) 100%);
}
.prog-pill.hero .pv { color: var(--deep); }

/* Spine links (primary path) */
.spine {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 4px 12px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-card);
}
.spine .list-row {
  padding: 10px 0;
  font-size: 13px; font-weight: 600;
}
.spine .list-row .muted {
  font-weight: 500; font-size: 11px;
}

/* Quiet disclosure / parked seasonal */
.disclosure {
  background: transparent;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin-bottom: 6px;
}
.disclosure .disc-h {
  font-size: 11px; font-weight: 600; color: var(--muted);
  display: flex; justify-content: space-between; align-items: center;
}
.disclosure .disc-h .chev {
  font-size: 10px; opacity: 0.7;
}
.disclosure .disc-items {
  margin-top: 8px;
  font-size: 10.5px; color: var(--muted);
  line-height: 1.55;
}

/* Soft wink on fleet card (tenant link loop) */
.fleet-card .loop-wink {
  font-size: 10px; font-weight: 600;
  color: var(--imperial);
  margin-top: 4px;
}

/* Date wink under title */
.date-wink {
  font-size: 11px; color: var(--muted);
  font-weight: 500; margin-bottom: 10px;
}

/* Activation board layout */
.act-board {
  display: flex;
  gap: 28px;
  flex-wrap: nowrap;
  align-items: flex-start;
  padding-bottom: 12px;
}
.act-board .col {
  width: 280px;
  flex-shrink: 0;
}
.act-board .phone {
  width: 260px;
  height: 540px;
  border-radius: 28px;
  padding: 9px 8px 12px;
}
.act-board .notch { width: 78px; height: 6px; margin: 2px auto 7px; }
.act-board .screen { border-radius: 20px; height: calc(100% - 16px); }
.act-board .body { padding: 10px; }
.act-board .h { font-size: 14px; }
.act-board .tabbar { padding: 5px 2px 8px; }
.act-board .tab { font-size: 8px; }
.act-board .tab .box { width: 16px; height: 16px; }
.act-frame-num {
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--muted); font-family: var(--font-en);
  margin-bottom: 8px; text-transform: uppercase;
}

/* Desktop: 3-nav sidebar for P0 redo */
.desk-side.nav3 .desk-nav-item.hidden-old { display: none; }

/* Desk action chips inline */
.desk-main .action-row {
  max-width: 420px;
}
.desk-main .action-row.four {
  max-width: 480px;
}
.desk-main .job-card { max-width: 480px; }
.desk-main .progress-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 640px;
}
.desk-main .prog-pill { margin: 0; }
.desk-main .spine { max-width: 480px; }
.desk-main .disclosure { max-width: 480px; }
.desk-main .green-strip { max-width: 480px; text-align: left; padding: 18px 20px; }
.desk-main .green-strip .calm-line { font-size: 18px; }
.desk-main .today-wink { max-width: 480px; }

/* Compact body scroll for denser phones */
.body.tight { padding: 10px 11px 6px; }
.body.tight .card { padding: 9px 10px; margin-bottom: 6px; }
.body.tight .fleet-card { padding: 8px 10px; }

/* P0 fit: keep content above tabbar */
.phone .body.tight { padding: 8px 10px 4px; }
.phone .body.tight .h.precious { font-size: 15px; margin-bottom: 1px; }
.phone .body.tight .date-wink { margin-bottom: 6px; font-size: 10.5px; }
.phone .today-wink { padding: 6px 8px; margin-bottom: 6px; font-size: 11px; }
.phone .job-card { padding: 9px 10px; margin-bottom: 6px; }
.phone .job-card .job-amt { font-size: 16px; margin: 2px 0 1px; }
.phone .job-card .job-meta { margin-bottom: 5px; font-size: 10px; }
.phone .job-card .loop-signal { margin-bottom: 7px; font-size: 10px; padding: 2px 7px; }
.phone .action-row.four { gap: 4px; }
.phone .action-row.four .action-chip { font-size: 9.5px; padding: 6px 2px; }
.phone .section-zh { margin: 6px 0 4px; font-size: 10.5px; }
.phone .fleet-card { padding: 7px 9px !important; margin-bottom: 5px !important; }
.phone .fleet-card .fleet-name { font-size: 12.5px; }
.phone .fleet-card .fleet-meta { font-size: 10px; }
.phone .fleet-card .fleet-wink, .phone .fleet-card .loop-wink { font-size: 9.5px; margin-top: 2px; }
.phone .chip { font-size: 10px; padding: 2px 7px; }

/* Flat hub: 2x2 progress + compact spine */
.phone .progress-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-bottom: 6px;
}
.phone .prog-pill { padding: 7px 8px; flex-direction: column; align-items: flex-start; gap: 4px; }
.phone .prog-pill .pk { font-size: 9.5px; }
.phone .prog-pill .pv { font-size: 11px; text-align: left; }
.phone .prog-pill .chip { align-self: flex-start; }
.phone .spine { padding: 2px 10px; margin-bottom: 6px; }
.phone .spine .list-row { padding: 7px 0; font-size: 12px; }
.phone .disclosure { padding: 7px 9px; }
.phone .disclosure .disc-h { font-size: 10.5px; }
.phone .disclosure .disc-items { margin-top: 5px; font-size: 10px; }
.phone .sub { font-size: 10.5px; margin-bottom: 6px; }
.phone .tiny { font-size: 9.5px; }
.green-strip { padding: 11px 12px; margin-bottom: 8px; }
.green-strip .calm-line { font-size: 14px; }

/* ── Nit 1: context-aware primary CTA stack ── */
.action-stack { display: flex; flex-direction: column; gap: 6px; }
.action-stack .action-chip.primary {
  width: 100%;
  font-size: 13.5px;
  padding: 11px 10px;
  letter-spacing: 0.02em;
}
.action-row.secondary {
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.action-row.secondary .action-chip {
  font-size: 11px;
  padding: 7px 6px;
  font-weight: 600;
}
.action-link {
  text-align: center;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--muted);
  padding: 4px 0 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  letter-spacing: 0.01em;
}
.phone .action-stack { gap: 4px; }
.phone .action-stack .action-chip.primary {
  font-size: 12px;
  padding: 8px 8px;
}
.phone .action-row.secondary { gap: 4px; }
.phone .action-row.secondary .action-chip {
  font-size: 10px;
  padding: 5px 4px;
}
.phone .action-link { font-size: 9.5px; padding-top: 2px; }

/* Soft clock wink — quiet, not competing with green strip */
.soft-clock {
  font-size: 10.5px;
  color: var(--muted);
  font-weight: 500;
  margin: 0 0 8px;
  line-height: 1.4;
}
.soft-clock strong { font-weight: 600; color: var(--muted); }
.phone .soft-clock { font-size: 10px; margin-bottom: 6px; }
.fleet-card .fleet-wink.quiet {
  font-size: 9.5px;
  color: var(--muted);
  font-weight: 500;
  opacity: 0.85;
}

/* Share / WhatsApp affordance */
.share-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 6px;
}
.share-chip {
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-size: 11.5px; font-weight: 700;
  padding: 9px 6px;
  border-radius: var(--radius-sm);
  line-height: 1.2;
}
.share-chip.copy {
  background: var(--deep); color: var(--white);
}
.share-chip.wa {
  background: var(--glow); color: var(--deep);
  border: 1px solid #b8e0d0;
}

/* Modal overlay for mark-paid */
.modal-scrim {
  position: absolute; inset: 0;
  background: rgba(6,69,54,.28);
  display: flex; align-items: flex-end;
  border-radius: 24px;
  z-index: 2;
}
.modal-sheet {
  width: 100%;
  background: var(--white);
  border-radius: 16px 16px 0 0;
  padding: 14px 14px 18px;
  box-shadow: 0 -8px 28px rgba(6,69,54,.12);
}
.modal-sheet .mh {
  font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 2px;
}
.modal-sheet .ms {
  font-size: 11px; color: var(--muted); margin-bottom: 10px;
}

/* Timeline for lease→clocks */
.timeline {
  position: relative;
  padding-left: 14px;
  margin-bottom: 8px;
}
.timeline::before {
  content: ""; position: absolute; left: 3px; top: 4px; bottom: 4px;
  width: 2px; background: var(--line);
}
.tl-item {
  position: relative;
  padding: 0 0 10px 8px;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -14px; top: 5px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--imperial); border: 2px solid var(--glow);
}
.tl-item .tl-when { font-size: 11px; font-weight: 700; color: var(--deep); }
.tl-item .tl-what { font-size: 11.5px; color: var(--ink); font-weight: 600; margin-top: 1px; }
.tl-item .tl-meta { font-size: 10px; color: var(--muted); margin-top: 1px; }
.tl-item.done::before { background: var(--glow); border-color: var(--imperial); }
.tl-item.due::before { background: var(--due); border-color: var(--due-soft); }

/* Units list root */
.units-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 8px;
}
.units-head .add {
  font-size: 11px; font-weight: 700; color: var(--imperial);
}

/* Desk twin helpers for ship screens */
.desk-main .action-stack { max-width: 420px; }
.desk-main .soft-clock { max-width: 480px; }
.desk-main .timeline { max-width: 480px; }
.desk-main .share-row { max-width: 360px; }
.desk-main .qr-frame { margin-left: 0; }

/* Fit 3 fleet cards under taller confirm CTA */
.phone .job-card .action-stack { margin-top: 0; }
.phone[data-crop="hifi-01"] .fleet-card,
.phone[data-screen="home"] .fleet-card {
  padding: 6px 8px !important;
  margin-bottom: 4px !important;
}
.phone[data-screen="home"] .section-zh { margin: 4px 0 3px; }
.phone[data-screen="home"] .today-wink { margin-bottom: 5px; padding: 5px 7px; }
.phone[data-screen="home"] .job-card { padding: 8px 9px; margin-bottom: 5px; }
.phone[data-screen="home"] .job-card .job-amt { font-size: 15px; }
.phone[data-screen="home"] .date-wink { margin-bottom: 4px; }

/* === C2 journey extras === */

/* ── C2 · Lucide tab icons + journey helpers ── */
.tab .ico {
  width: 20px; height: 20px; margin: 0 auto 3px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
}
.tab .ico svg { width: 18px; height: 18px; stroke-width: 1.75; }
.tab.on .ico { color: var(--deep); }
.tab.on .ico {
  background: var(--glow);
  border-radius: 6px;
  width: 28px; height: 22px;
}
.tab .box { display: none; } /* prefer Lucide; keep .box for fallback */

.nav .brand {
  font-family: var(--font-serif);
  letter-spacing: 0.08em;
}

/* Empty hero (C2) */
.empty-hero {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; flex: 1; padding: 18px 10px;
}
.empty-hero .hero-ico {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--glow); color: var(--deep);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
}
.empty-hero .hero-ico svg { width: 26px; height: 26px; stroke-width: 1.75; }

/* Dash upload zone */
.dash-box {
  border: 1.5px dashed var(--line); border-radius: var(--radius-md);
  padding: 20px 12px; text-align: center;
  background: linear-gradient(180deg, #fafffe 0%, var(--white) 100%);
  margin-bottom: 8px;
}
.dash-box.error {
  border-color: #f0c8c8; background: var(--late-soft);
}
.dash-box .ph-doc {
  width: 40px; height: 48px; margin: 0 auto 10px;
  background: var(--glow); border: 1px solid var(--line); border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  color: var(--deep);
}
.dash-box .ph-doc svg { width: 22px; height: 22px; stroke-width: 1.75; }

/* Progress / spinner */
.progress {
  height: 6px; background: rgba(6,69,54,.08);
  border-radius: 999px; overflow: hidden; margin: 10px 0 6px;
}
.progress > i {
  display: block; height: 100%; width: 62%;
  background: linear-gradient(90deg, var(--imperial), #0c8f6c);
  border-radius: 999px;
}
.spin-ring {
  width: 36px; height: 36px; margin: 0 auto 12px;
  border: 3px solid var(--glow); border-top-color: var(--imperial);
  border-radius: 50%;
}

/* Primary LG + demoted */
.btn-primary.lg {
  padding: 14px 12px; font-size: 14px; letter-spacing: 0.02em;
}
.btn-demoted {
  display: block; text-align: center; font-size: 11px; font-weight: 600;
  padding: 7px; margin-top: 6px; color: var(--muted);
  border: none; background: transparent; text-decoration: underline;
  text-underline-offset: 2px;
}

/* Sticky job (C1→C2) */
.job-sticky {
  background: var(--white);
  border: 1.5px solid var(--imperial);
  border-radius: var(--radius-md);
  padding: 14px 12px; margin-bottom: 8px;
  box-shadow: 0 1px 2px rgba(6,69,54,.04), 0 8px 24px rgba(10,122,92,.10);
}
.job-sticky .amt {
  font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--deep);
}

/* Prefill + share sheet */
.prefill {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 10px;
  font-size: 11.5px; line-height: 1.55; color: var(--ink); margin: 8px 0;
}
.share-sheet {
  margin-top: auto; background: var(--white); border: 1px solid var(--line);
  border-radius: 14px 14px 0 0; padding: 12px;
  margin-left: -12px; margin-right: -12px; margin-bottom: -8px;
  box-shadow: 0 -4px 20px rgba(6,69,54,.06);
}
.share-sheet .row-chip {
  display: flex; gap: 8px; margin-top: 8px;
}
.share-sheet .row-chip span {
  flex: 1; text-align: center; font-size: 10px; font-weight: 600;
  padding: 10px 4px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--paper); color: var(--ink);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.share-sheet .row-chip span svg { width: 18px; height: 18px; stroke-width: 1.75; color: var(--deep); }

/* Frame labels on boards */
.frame-num {
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  color: var(--muted); margin-bottom: 8px; text-transform: uppercase;
  font-family: var(--font-en);
}
.state-tag {
  display: inline-block; font-size: 9.5px; font-weight: 700;
  padding: 2px 7px; border-radius: var(--radius-pill);
  letter-spacing: 0.04em; text-transform: uppercase;
  font-family: var(--font-en); margin-left: 6px; vertical-align: middle;
}
.state-tag.empty { background: var(--paper); color: var(--muted); border: 1px solid var(--line); }
.state-tag.filled { background: var(--glow); color: var(--deep); }
.state-tag.error { background: var(--late-soft); color: var(--late); }
.state-tag.late { background: var(--due-soft); color: var(--due); }

.states {
  margin-top: 8px; padding: 7px 8px; background: var(--paper);
  border: 1px dashed var(--line); border-radius: 6px;
  font-size: 10px; color: var(--muted); line-height: 1.45;
}
.states strong { color: var(--ink); font-weight: 700; }

.board-meta {
  font-size: 12px; color: var(--muted); margin-bottom: 20px; line-height: 1.5;
}
.row.journey { flex-wrap: nowrap; gap: 28px; overflow-x: visible; }

/* Error banner inside screen */
.err-banner {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 9px 10px; margin-bottom: 8px;
  background: var(--late-soft); border: 1px solid #f0c8c8;
  border-radius: var(--radius-sm);
  font-size: 11px; color: var(--late); font-weight: 600; line-height: 1.4;
}
.err-banner svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; stroke-width: 1.75; }

.warn-banner {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 9px 10px; margin-bottom: 8px;
  background: var(--due-soft); border: 1px solid #ead9a8;
  border-radius: var(--radius-sm);
  font-size: 11px; color: var(--due); font-weight: 600; line-height: 1.4;
}

.field.missing .v { color: var(--late); font-weight: 600; }
.field.low .v { color: var(--due); }
.chip.gate { background: var(--paper); color: var(--muted); border: 1px solid var(--line); }

.date-input {
  font-size: 15px; font-weight: 700; color: var(--deep);
  border-bottom: 2px solid var(--imperial); padding: 8px 0; margin-bottom: 6px;
}
.date-input.null {
  color: var(--muted); border-bottom-color: var(--line); font-weight: 600;
}
.date-input.bad {
  color: var(--late); border-bottom-color: var(--late);
}

.clock.late::before { background: var(--late); opacity: 0.9; }
.clock.late .when { color: var(--late); }

.section-label {
  font-size: 10.5px; font-weight: 700; color: var(--muted);
  letter-spacing: 0.04em; margin: 8px 0 6px;
}

/* Compact phone for denser state boards */
.phone.compact { width: 280px; height: 580px; }
.phone.compact .body { padding: 10px; }

/* Icon inline helper */
.i { display: inline-flex; vertical-align: middle; }
.i svg { width: 1em; height: 1em; stroke-width: 1.75; }
