/* Palette follows honeyme_website (style-v3.css) so the SOP site feels like the same brand. */
:root {
  --paper: #f5e6d3;
  --card: #fffaf3;
  --card-2: #efe0cc;
  --ink: #5a4234;
  --ink-soft: #8a715f;
  --accent: #c9880a;
  --accent-ink: #fff;
  --line: #e2cdb3;
  --ok: #3f7d4e;
  --ok-bg: #e3f1e4;
  --warn: #9a6400;
  --warn-bg: #fff1cf;
  --bad: #b3372b;
  --bad-bg: #fbe3df;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(90, 66, 52, .08), 0 4px 16px rgba(90, 66, 52, .06);
  --font: "Poppins", "Noto Sans SC", -apple-system, "PingFang SC", sans-serif;
  --serif: "Fraunces", "Noto Sans SC", serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1f1814; --card: #2a211c; --card-2: #342924; --ink: #f1e4d4; --ink-soft: #bba792;
    --accent: #e0a534; --accent-ink: #1f1814; --line: #43362e;
    --ok: #8fd09e; --ok-bg: #1f3325; --warn: #f0c46a; --warn-bg: #3a2f14; --bad: #f09a8f; --bad-bg: #3d211d;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: hidden; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--font); }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
img { max-width: 100%; display: block; }
.boot { padding: 40vh 0; text-align: center; color: var(--ink-soft); }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--line); padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); }
.top-row { display: flex; align-items: center; gap: 10px; max-width: 980px; margin: 0 auto; }
.top-row .chip:last-child { max-width: 40vw; overflow: hidden; text-overflow: ellipsis; }
.brand { font-family: var(--serif); font-size: 20px; font-weight: 600; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand small { font-family: var(--font); font-size: 12px; color: var(--accent); margin-left: 4px; letter-spacing: .08em; }
.spacer { flex: 1; }
.chip { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 12px; cursor: pointer; font-size: 14px; white-space: nowrap; }
.chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.nav { display: flex; gap: 6px; max-width: 980px; margin: 10px auto 0; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { text-decoration: none; }
.search { width: 100%; max-width: 980px; margin: 10px auto 0; display: block; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); }

main { max-width: 980px; margin: 0 auto; padding: 16px 16px 80px; }
h1, h2, h3 { line-height: 1.3; }
h1 { font-family: var(--serif); font-size: 26px; margin: 8px 0 4px; }
.muted { color: var(--ink-soft); font-size: 14px; }
.area-title { font-size: 1.25rem; margin: 26px 0 8px; padding-bottom: 6px; border-bottom: 2px solid var(--accent); }
.area-title:first-of-type { margin-top: 14px; }
.section-title { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin: 28px 0 10px; font-weight: 600; }

/* ---------- cards / lists ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr)); }
.cat { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; }
.cat .emoji { font-size: 26px; }
.cat b { font-size: 17px; }
.list { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--card); border-radius: 12px; text-decoration: none; color: inherit; box-shadow: var(--shadow); }
.row .t { flex: 1; min-width: 0; }
.row .t b { display: block; font-weight: 500; }
.row .t span { display: block; font-size: 13px; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code { font: 600 12px var(--font); background: var(--card-2); border-radius: 6px; padding: 2px 6px; white-space: nowrap; }
.badge { font-size: 12px; border-radius: 999px; padding: 2px 8px; white-space: nowrap; font-weight: 500; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.plain { background: var(--card-2); color: var(--ink-soft); }

.progress { height: 8px; background: var(--card-2); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.progress i { display: block; height: 100%; background: var(--accent); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 12px; padding: 12px 18px; background: var(--accent); color: var(--accent-ink); font-weight: 600; cursor: pointer; text-decoration: none; min-height: 46px; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.small { padding: 6px 12px; min-height: 34px; font-size: 14px; }
.btn:disabled { opacity: .5; cursor: default; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- doc body ---------- */
.doc-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.md { font-size: 17px; }
.md h2 { font-size: 19px; margin: 26px 0 8px; padding-bottom: 4px; border-bottom: 2px solid var(--line); }
.md h3 { font-size: 17px; margin: 18px 0 6px; }
.md ul, .md ol { padding-left: 22px; }
.md li { margin: 4px 0; }
.md strong { color: var(--ink); background: linear-gradient(transparent 62%, rgba(201, 136, 10, .22) 62%); }
.md blockquote { margin: 12px 0; padding: 10px 14px; border-left: 4px solid var(--accent); background: var(--warn-bg); border-radius: 0 10px 10px 0; }
.md blockquote p { margin: 0; }
.table-wrap { overflow-x: auto; margin: 12px 0; -webkit-overflow-scrolling: touch; }
.md table { border-collapse: collapse; min-width: 100%; font-size: 15px; background: var(--card); border-radius: 10px; overflow: hidden; }
.md th, .md td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.md th { background: var(--card-2); font-weight: 600; white-space: nowrap; }
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-top: 12px; }
.gallery figure { margin: 0; cursor: zoom-in; }
.gallery img { border-radius: 10px; aspect-ratio: 4/3; object-fit: cover; width: 100%; background: var(--card-2); }
.gallery figcaption { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.pdf { display: flex; align-items: center; justify-content: center; aspect-ratio: 4/3; border-radius: 10px; background: var(--card-2); font-weight: 600; text-decoration: none; color: var(--ink); }

.review { background: var(--warn-bg); color: var(--warn); border-radius: 12px; padding: 12px 14px; margin: 14px 0; font-size: 14px; }
.review b { display: block; margin-bottom: 4px; }
.review ul { margin: 0; padding-left: 18px; }
.why { border-left: 4px solid var(--bad); }
.why h4 { margin: 0 0 4px; font-size: 15px; }
.why p { margin: 4px 0; font-size: 15px; }
.why .lesson { font-weight: 600; color: var(--bad); }

.train { margin-top: 28px; border: 2px solid var(--accent); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.step { text-align: center; padding: 10px 4px; border-radius: 10px; background: var(--card-2); font-size: 14px; }
.step.done { background: var(--ok-bg); color: var(--ok); font-weight: 600; }

/* ---------- login ---------- */
.login { max-width: 460px; margin: 0 auto; padding: 48px 16px; text-align: center; }
.login h1 { font-size: 32px; }
.names { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 24px; }
.names button { padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); font-size: 18px; cursor: pointer; }
.pin-dots { display: flex; justify-content: center; gap: 14px; margin: 24px 0; }
.pin-dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ink); }
.pin-dots i.on { background: var(--ink); }
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 300px; margin: 0 auto; }
/* touch-action: manipulation — iOS Safari treats two fast taps as double-tap-to-zoom, so typing a PIN
   quickly zoomed the whole page (2026-10-02). Applies to every tappable control, not just the pad. */
button, a, .chip, .opt, .names button { touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.pad button { height: 64px; border-radius: 50%; aspect-ratio: 1; margin: 0 auto; border: 1px solid var(--line); background: var(--card); font-size: 24px; cursor: pointer; }
.pad button.blank { visibility: hidden; }
.err { color: var(--bad); min-height: 24px; margin-top: 12px; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.modal[hidden] { display: none; }
.sheet { background: var(--paper); width: 100%; max-width: 640px; max-height: 92vh; overflow: auto; overscroll-behavior: contain; border-radius: 20px 20px 0 0; padding: 20px 16px calc(24px + env(safe-area-inset-bottom)); }
@media (min-width: 700px) { .modal { align-items: center; } .sheet { border-radius: 20px; } }
.sheet-x { position: sticky; top: 0; height: 0; display: flex; justify-content: flex-end; z-index: 5; margin: -8px -4px 0 0; }
.sheet-x + h2 { padding-right: 44px; }  /* keep the title clear of the pinned ✕ */
.sheet-x .x { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font-size: 18px; line-height: 1; box-shadow: var(--shadow); cursor: pointer; }
.q { margin: 18px 0; }
.q p { font-weight: 600; margin: 0 0 8px; }
.opt { display: block; width: 100%; text-align: left; padding: 12px 14px; margin: 6px 0; border-radius: 12px; border: 2px solid var(--line); background: var(--card); cursor: pointer; }
.opt.sel { border-color: var(--accent); }
.opt.right { border-color: var(--ok); background: var(--ok-bg); }
.opt.wrong { border-color: var(--bad); background: var(--bad-bg); }
.zoom { position: fixed; inset: 0; background: rgba(0, 0, 0, .9); z-index: 60; display: flex; align-items: center; justify-content: center; }
.zoom img { max-width: 100vw; max-height: 100vh; object-fit: contain; }

/* ---------- forms / admin ---------- */
label.f { display: block; margin: 12px 0; font-size: 14px; color: var(--ink-soft); }
label.f > input, label.f > select, label.f > textarea { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
/* iOS zooms the page into any field under 16px when it's tapped (owner 2026-10-21: 不要缩放), so form fields are 16px;
   touch-action: manipulation also stops double-tap zoom on quick taps. */
label.f > input, label.f > select, label.f > textarea, input, select, textarea { font-size: 16px; }
html, body, button, a, input, select, textarea, label { touch-action: manipulation; }
textarea { min-height: 280px; font: 14px/1.5 ui-monospace, Menlo, monospace; }
.two { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .two { grid-template-columns: 1fr 1fr; } }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0; }
.matrix-wrap { overflow-x: auto; }
table.matrix { border-collapse: collapse; font-size: 13px; }
table.matrix th, table.matrix td { border: 1px solid var(--line); padding: 4px 6px; text-align: center; white-space: nowrap; }
table.matrix th.doc { writing-mode: vertical-rl; max-height: 180px; font-weight: 500; }
table.matrix td.name { text-align: left; font-weight: 600; position: sticky; left: 0; background: var(--paper); }
.cell-ok { background: var(--ok-bg); color: var(--ok); }
.cell-part { background: var(--warn-bg); color: var(--warn); }
.cell-old { background: var(--bad-bg); color: var(--bad); }
.checks { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; }
.checks label { color: var(--ink); }
.qedit { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 10px 0; background: var(--card); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 999px; z-index: 70; font-size: 14px; }
a.chip { text-decoration: none; color: var(--ink); }
a.chip.on { color: var(--paper); }

/* ---------- today's checklist ---------- */
.task { padding: 12px 14px; }
.task.complete { opacity: .7; }
.task-h { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.task-h b { flex: 1; }
.check { display: flex; align-items: flex-start; gap: 10px; padding: 8px 2px; border-top: 1px solid var(--line); cursor: pointer; }
.task-h + .check, .task > .check:first-child { border-top: 0; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ok); flex: none; }
.check.on .lbl { color: var(--ink-soft); text-decoration: line-through; }
.check small { display: block; text-decoration: none; font-size: 12px; color: var(--ok); }
.task-link { display: inline-block; margin-top: 6px; font-size: 14px; }

/* four equal top tabs */
.nav.tabs4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.nav.tabs4 .chip { text-align: center; padding: 8px 4px; font-size: 15px; }
.nav.wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; overflow: visible; }
.nav.wrap .chip { text-align: center; padding: 8px 4px; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* inventory board */
.inv-group { padding: 0; overflow: hidden; margin-bottom: 12px; }
.inv-group.reorder { border: 1px solid var(--bad); }
.inv-head { padding: 10px 14px; font-weight: 600; color: var(--accent); border-bottom: 1px solid var(--line); }
.inv-group.reorder .inv-head { color: var(--bad); }
.inv-row { padding: 8px 14px; font-size: .9rem; } .inv-row + .inv-row { border-top: 1px solid var(--line); }
table.inv { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.inv th, table.inv td { text-align: left; padding: 8px 14px; vertical-align: top; }
table.inv th { color: var(--ink-soft); font-weight: 500; font-size: .74rem; text-transform: uppercase; letter-spacing: .03em; }
table.inv tr + tr td { border-top: 1px solid var(--line); }
table.inv .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.small { font-size: .78rem; }
/* 备料 page */
.prep-nav { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 6px; font-size: 1.05rem; }
.prep-cake { margin-bottom: 12px; padding: 14px; }
.prep-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.prep-time { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.prep-who { flex: 1; font-weight: 500; }
.prep-tiers { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; align-items: center; }
.prep-tier { background: var(--card-2); border-radius: 8px; padding: 4px 9px; font-size: .9rem; }
.prep-design { margin: 6px 0 0; font-size: 1rem; }
.prep-balance { margin: 6px 0 0; font-weight: 600; color: var(--warn); }
.prep-gallery { margin-top: 10px; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.prep-raw { margin-top: 8px; } .prep-raw summary { cursor: pointer; }
.prep-pre { white-space: pre-wrap; font: 13px/1.5 var(--font); color: var(--ink-soft); margin: 6px 0 0; }
.prep-sum { display: flex; flex-direction: column; gap: 6px; font-size: .95rem; }
/* wholesale delivery calendar */
.ws-card { font: inherit; cursor: pointer; } .ws-card b small { font-size: .75rem; font-weight: 400; color: var(--ink-soft); margin-left: 2px; }
.ws-cal { padding: 14px; }
.ws-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ws-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.ws-wd { text-align: center; font-size: .72rem; color: var(--ink-soft); padding-bottom: 4px; }
.ws-day { aspect-ratio: 1; border-radius: 8px; border: 1px solid transparent; padding: 4px; display: flex; flex-direction: column; align-items: center; font-size: .8rem; }
.ws-day.empty { visibility: hidden; } .ws-day.has { background: var(--warn-bg); cursor: pointer; } .ws-day.today { border-color: var(--bad); }
.ws-day b { font-weight: 600; } .ws-day small { font-size: .66rem; color: var(--warn); font-variant-numeric: tabular-nums; }
table.ws-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
table.ws-table th, table.ws-table td { text-align: right; padding: 6px 8px; white-space: nowrap; }
table.ws-table th:first-child, table.ws-table td:first-child { text-align: left; }
table.ws-table th { color: var(--ink-soft); font-weight: 500; font-size: .72rem; }
table.ws-table tr + tr td { border-top: 1px solid var(--line); } table.ws-table tfoot td { font-weight: 700; border-top: 2px solid var(--line); }
/* embedded back-of-house tools (labels / inventory / wholesale) */
.tool-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0 10px; }
.tool-frame { background: var(--card); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.tool-frame iframe { display: block; width: 100%; height: calc(100vh - 190px); min-height: 480px; border: 0; background: var(--card); }
main .search { margin: 0 0 12px; }

/* home summary numbers */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0 4px; }
.stat { text-decoration: none; color: inherit; text-align: center; padding: 14px 8px; }
.stat b { display: block; font: 600 34px/1.1 var(--serif); }
.stat span { display: block; font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.stat.warn b { color: var(--accent); }
.stat.ok b { color: var(--ok); }
.stat.bad b { color: var(--bad); }
/* Admin home second row: four cards in one line (owner 2026-10-18: 2*2凑一行) — tighter type so phones fit it. */
.stats.stats4 { grid-template-columns: repeat(4, 1fr); gap: 6px; }
.stats.stats4 .stat { padding: 10px 4px; }
.stats.stats4 .stat b { font-size: 26px; }
.stats.stats4 .stat span { font-size: 11px; line-height: 1.3; overflow-wrap: anywhere; }
.stat-pair .sp-h { margin: 0 0 2px !important; }
.stat-pair .sp-row { display: flex; }
.stat-pair .sp-row a { flex: 1; text-decoration: none; color: inherit; }
.stat-pair .sp-row a + a { border-left: 1px solid var(--line, rgba(127,127,127,.3)); }
.stat-pair .sp-row a.warn b { color: var(--accent); }
.stat-pair .sp-row a.ok b { color: var(--ok); }
.stat-pair .sp-row span { margin-top: 0 !important; }

/* per-item details in today's checklist */
.check-wrap { display: flex; align-items: flex-start; gap: 8px; border-top: 1px solid var(--line); }
.task-h + .check-wrap, .task > .check-wrap:first-child { border-top: 0; }
.check-wrap .check { flex: 1; border-top: 0; }
.detail-btn { flex: none; margin-top: 6px; border: 1px solid var(--line); background: var(--card-2); border-radius: 999px; padding: 4px 10px; font-size: 13px; cursor: pointer; color: var(--ink); }
.detail { font-size: 15px; background: var(--card-2); border-radius: 10px; padding: 4px 12px; margin: 0 0 10px 32px; }
.detail .table-wrap { margin: 8px 0; }
.detail table { font-size: 14px; }
.md td:first-child { white-space: nowrap; }

/* Square stock popup */
.stock-group { margin: 10px 0; background: var(--card); border-radius: 12px; padding: 4px 12px; }
.stock-group summary { cursor: pointer; padding: 10px 0; list-style: none; display: flex; gap: 8px; align-items: center; }
.stock-group summary::-webkit-details-marker { display: none; }
.stock-row.changed { background: var(--warn-bg); border-radius: 8px; }
.stock-row small.out { color: var(--bad); }
.sticky-actions { position: sticky; bottom: 0; background: var(--paper); padding: 12px 0 4px; }

.stock-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 4px -16px 8px; padding: 2px 16px 6px; scroll-snap-type: x proximity; position: sticky; top: -20px; background: var(--paper); z-index: 1; }
.stock-tabs::-webkit-scrollbar { display: none; }
.stock-tab { flex: none; scroll-snap-align: start; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 14px; font-size: 15px; cursor: pointer; white-space: nowrap; color: var(--ink); }
.stock-tab.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.stock-body { min-height: 50vh; background: var(--card); border-radius: 12px; padding: 2px 12px; touch-action: pan-y; }
.stock-row.locked { opacity: .5; }

.task.due { border: 2px solid var(--bad); }
.task { position: relative; }
.due-badge { position: absolute; right: 12px; top: 12px; }
a.detail-btn { text-decoration: none; display: inline-block; }

/* checklist row: box ticks, title toggles details */
.check-wrap .check { cursor: default; }
.check-wrap .check input { cursor: pointer; }
.title-tap { cursor: pointer; flex: 1; }
.check-wrap .check input { width: 26px; height: 26px; margin: 0; }
.check-wrap .check { align-items: center; min-height: 44px; }

/* equipment glossary terms + photos */
button.term { all: unset; cursor: pointer; color: var(--accent); border-bottom: 1px dashed var(--accent); }
button.term::after { content: " 📷"; font-size: .75em; }
.term-photos { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); margin: 8px 0 12px; }
.term-photos img { width: 100%; border-radius: 12px; cursor: zoom-in; }
img.hero { width: 100%; max-height: 360px; object-fit: cover; border-radius: 16px; margin: 12px 0 4px; cursor: zoom-in; }

/* ---------- 本周安排 (#/calendar) ---------- */
:root { --cal-cake: #c8863a; --cal-workshop: #8a5fbf; --cal-shift: #4a72c8; --cal-bakery: #a3841c; --cal-ready: #3fa142; --cal-done: #7d7d7d; --cal-special: #6f7fd1; --cal-diy_class: #c85a8a;
  --cal-cake-bg: #fbeee0; --cal-workshop-bg: #f1e9fb; --cal-shift-bg: #e8edfa; --cal-bakery-bg: #f7f0d8; --cal-ready-bg: #e5f4e5; --cal-done-bg: #ececec; --cal-special-bg: #eaecfa; --cal-diy_class-bg: #f9e6ee; --cal-line: #f0e9e0; }
@media (prefers-color-scheme: dark) {
  :root { --cal-cake: #e2a463; --cal-workshop: #b592e0; --cal-shift: #7ea0e8; --cal-bakery: #d4bc5c; --cal-ready: #6cc96f; --cal-done: #a3a3a3; --cal-special: #a3aeed; --cal-diy_class: #e08bb0;
    --cal-cake-bg: #3a2c1c; --cal-workshop-bg: #2e2638; --cal-shift-bg: #212a3d; --cal-bakery-bg: #33301c; --cal-ready-bg: #253226; --cal-done-bg: #2e2e2e; --cal-special-bg: #262a3e; --cal-diy_class-bg: #3a2530; --cal-line: #352b25; }
}
.cal-status { margin: 0 0 10px; font-variant-numeric: tabular-nums; }
.cal-legend { display: flex; gap: 12px 14px; flex-wrap: wrap; font-size: .8rem; color: var(--ink-soft); margin-bottom: 12px; }
.cal-legend span { display: inline-flex; align-items: center; gap: 5px; }
.cal-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--cal-shift); }
.cal-dot.cal-cake { background: var(--cal-cake); } .cal-dot.cal-workshop { background: var(--cal-workshop); } .cal-dot.cal-diy_class { background: var(--cal-diy_class); }
.cal-dot.cal-bakery { background: var(--cal-bakery); } .cal-dot.cal-ready { background: var(--cal-ready); } .cal-dot.cal-done { background: var(--cal-done); } .cal-dot.cal-special { background: var(--cal-special); }
/* overflow-y hidden on purpose: the last hour label ("22:00") hangs ~6px below the
   gutter, which otherwise gives the box its own vertical scrollbar next to the page's. */
.cal-scroll { overflow-x: auto; overflow-y: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.cal-grid { display: flex; width: max-content; min-width: 100%; }
.cal-gutter { width: 46px; flex-shrink: 0; border-right: 1px solid var(--line); padding-bottom: 10px; }
.cal-hour { font-size: .68rem; color: var(--ink-soft); position: absolute; right: 6px; }
.cal-day { flex: 0 0 auto; border-right: 1px solid var(--line); }
.cal-day:last-child { border-right: none; }
.cal-dayhead { height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: .82rem; font-weight: 600; border-bottom: 1px solid var(--line); }
.cal-dayhead span { color: var(--ink-soft); font-weight: 400; font-size: .72rem; }
.cal-day.today .cal-dayhead { color: var(--accent); }
.cal-body { position: relative; background-image: repeating-linear-gradient(to bottom, var(--cal-line) 0, var(--cal-line) 1px, transparent 1px, transparent 48px); } /* kept in sync with CAL.pxPerHour in app.js */
.cal-ev { position: absolute; border-radius: 6px; padding: 3px 6px; overflow: hidden; cursor: pointer; font-size: .74rem; line-height: 1.25; border-left: 3px solid; box-shadow: 0 1px 2px rgba(0,0,0,.08); color: var(--ink); }
.cal-ev-t { font-variant-numeric: tabular-nums; opacity: .75; display: block; font-size: .68rem; }
.cal-ev-s { display: block; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.cal-ev.cal-cake { background: var(--cal-cake-bg); border-color: var(--cal-cake); } .cal-ev.cal-workshop { background: var(--cal-workshop-bg); border-color: var(--cal-workshop); }
.cal-ev.cal-shift { background: var(--cal-shift-bg); border-color: var(--cal-shift); } .cal-ev.cal-special { background: var(--cal-special-bg); border-color: var(--cal-special); }
.cal-ev.cal-bakery { background: var(--cal-bakery-bg); border-color: var(--cal-bakery); } .cal-ev.cal-ready { background: var(--cal-ready-bg); border-color: var(--cal-ready); }
.cal-ev.cal-done { background: var(--cal-done-bg); border-color: var(--cal-done); } .cal-ev.cal-diy_class { background: var(--cal-diy_class-bg); border-color: var(--cal-diy_class); }
.cal-empty { padding: 8px 10px; color: var(--ink-soft); font-size: .72rem; font-style: italic; }
.cal-balance { margin: 10px 0 12px; padding: 10px 12px; border-radius: 10px; font-weight: 700; font-size: 1rem; line-height: 1.5;
  border: 2px solid var(--warn); background: var(--warn-bg); color: var(--warn); }
.cal-balance.paid { border-color: var(--ok); background: var(--ok-bg); color: var(--ok); font-weight: 600; }
.cal-desc { white-space: pre-wrap; font-size: .88rem; line-height: 1.6; }
.cal-desc a { color: var(--accent); word-break: break-all; }

/* ---------- payslips (#/pay) ---------- */
.pay-stats { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 600px) { .pay-stats { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); } }
.pay-card { padding: 12px 14px; margin-bottom: 12px; }
table.pay { width: 100%; border-collapse: collapse; font-size: .88rem; font-variant-numeric: tabular-nums; }
table.pay th, table.pay td { text-align: left; padding: 6px 8px; vertical-align: top; white-space: nowrap; }
table.pay th { color: var(--ink-soft); font-weight: 500; font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; border-bottom: 1px solid var(--line); }
table.pay td { border-bottom: 1px solid var(--line); }
table.pay tbody tr:last-child td { border-bottom: 0; }
table.pay .num { text-align: right; }
table.pay tfoot td { border-top: 2px solid var(--ink); border-bottom: 0; font-weight: 600; }
table.pay tr.ded td { background: var(--bad-bg); }
table.pay tr.ded td b { color: var(--bad); font-weight: 600; }
table.pay tr.pend td { background: var(--warn-bg); }
table.pay tr.excl td { color: var(--ink-soft); text-decoration: line-through; }
table.pay tr.excl td.small { text-decoration: none; }
table.pay tr.zero td { color: var(--bad); }
table.pay td.small { white-space: normal; min-width: 160px; font-size: .78rem; color: var(--ink-soft); }
.pay-more > summary { cursor: pointer; color: var(--accent); font-size: .9rem; padding: 6px 0; list-style: none; }
.pay-more > summary::-webkit-details-marker { display: none; }
.pay-more > summary::before { content: "▸ "; }
.pay-more[open] > summary::before { content: "▾ "; }
.pay-ack { padding: 14px 16px; margin: 4px 0 16px; border-left: 4px solid var(--accent); }
.pay-ack.ok { border-left-color: var(--ok); background: var(--ok-bg); }
.pay-ack.warn { border-left-color: var(--warn); background: var(--warn-bg); }
.pay-ack .actions { margin-top: 10px; }
.pay-note { margin: 8px 0 0; white-space: pre-wrap; font-size: .92rem; }
.pay-notes { margin: 0; padding-left: 18px; font-size: .9rem; }
.pay-notes li { margin: 4px 0; }
.pay-stats .stat b { font-size: 24px; }
.pay-stats .stat b small { font-size: 14px; margin-left: 2px; }
.todo-card { display: block; text-decoration: none; color: inherit; padding: 14px 16px; margin: 12px 0 4px; border-left: 4px solid var(--accent); }
.todo-card b { display: block; }
.todo-card span { color: var(--ink-soft); font-size: .92rem; }
.todo-card.due { background: var(--warn-bg); border-left-color: var(--warn); }
.todo-card.ok { border-left-color: var(--ok); }
.todo-card.warn { border-left-color: var(--warn); }
.pay-h4 { font-size: .8rem; color: var(--ink-soft); font-weight: 500; letter-spacing: .03em; margin: 14px 0 6px; }

/* ---- 排班 / shift board (#/shifts) ---- */
.sh-weeks { flex-wrap: wrap; }
/* 7 day columns side by side, swipe left/right like the calendar page (owner 2026-10-03) */
.sh-grid { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; margin: 10px -16px 14px; padding: 2px 16px 8px; scrollbar-width: none; }
.sh-grid::-webkit-scrollbar { display: none; }
.sh-day { flex: 0 0 168px; scroll-snap-align: start; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.sh-day.today { outline: 2px solid var(--accent); }
.sh-dayhead { display: flex; justify-content: space-between; align-items: baseline; }
.sh-dayhead span { color: var(--ink-soft); font-size: 13px; }
.sh-slot { border: 1px solid var(--line); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 6px; min-height: 92px; }
.sh-slot.empty { border: 2px dashed var(--warn, #d9a400); background: var(--warn-bg); }
.sh-slot.mine { background: var(--ok-bg); border-color: var(--ok); }
.sh-slot.mine-projected { border: 2px dashed var(--ok); }
.sh-slot.tbd { border: 2px dashed var(--ink-soft); }   /* owner 2026-10-25: 虚线框 不明显 */
.sh-slot.past { opacity: .55; }
.sh-slot-h { display: flex; justify-content: space-between; align-items: center; gap: 6px; flex-wrap: wrap; }
.sh-who { font-weight: 600; font-size: 15px; }
.sh-who i { color: var(--ink-soft); font-weight: 400; }
.sh-actions { margin-top: auto; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.btn.small { padding: 4px 10px; font-size: 13px; }
.sh-pref label, .sh-caplist label { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.sh-caplist { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); margin-top: 10px; }
.sh-caps { margin-top: 10px; }
.sh-extend { display: flex; gap: 14px; align-items: center; margin: 10px 0; flex-wrap: wrap; }
.sh-extend label { display: flex; gap: 6px; align-items: center; }
.sh-qrow { padding: 8px 10px; }
.ptr { position: fixed; top: 8px; left: 50%; transform: translate(-50%, 0); z-index: 50; background: var(--ink); color: var(--paper); border-radius: 999px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; font-size: 18px; opacity: 0; transition: opacity .15s; pointer-events: none; box-shadow: var(--shadow); }

/* admin: today's sales card */
.sales-card { margin: 14px 0 4px; padding: 14px 16px; border-left: 4px solid var(--accent); }
.sales-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.sales-head .muted { font-size: 12px; }
.sales-total { font: 600 36px/1.1 var(--serif); margin: 8px 0 2px; }
.sales-sub { font-size: 12px; margin-bottom: 10px; }
.clock-list { margin: 0 0 12px; padding: 8px 0; border-top: 1px solid var(--line, rgba(127,127,127,.2)); border-bottom: 1px solid var(--line, rgba(127,127,127,.2)); font-size: 13px; }
.clock-list > .muted { font-size: 12px; margin-bottom: 4px; }
.clock-row { display: grid; grid-template-columns: 5.5em 1fr auto; gap: 8px; align-items: center; padding: 3px 0; }
.clock-row small { font-size: 11px; text-align: right; }
.sales-total small { font: 13px var(--font); color: var(--ink-soft); margin-left: 10px; }
.sales-hourly { margin: 2px 0 10px; }
.sales-hourly svg { display: block; width: 100%; height: auto; }
.sales-hourly .sh-grid { stroke: var(--line); stroke-width: 1; }
.sales-hourly .sh-ax { fill: var(--ink-soft); font: 9px var(--font); }
.sales-hourly .sh-today { fill: var(--accent); }
.sales-hourly .sh-prev { fill: var(--ink-soft); opacity: .45; }
.sh-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11px; color: var(--ink-soft); margin-top: 2px; }
.sh-leg i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.sh-leg i.sh-today { background: var(--accent); }
.sh-leg i.sh-prev { background: var(--ink-soft); opacity: .45; }
.sales-locs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sales-loc { all: unset; box-sizing: border-box; cursor: pointer; background: var(--card-2); border-radius: 10px; padding: 8px 10px; text-align: center; }
.sales-loc:active { opacity: .7; }
.sales-locs span { display: block; font-size: 12px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sales-locs b { display: block; font-size: 20px; }
.sales-locs small { font-size: 11px; color: var(--ink-soft); }
/* DIY class board (2026-10-08) */
.cls-card { margin: 12px 0; padding: 14px 16px; border-left: 4px solid var(--accent); }
.cls-card.past { opacity: .7; }
.cls-card.test { border-left-style: dashed; }
.cls-card .list { margin: 8px 0 4px; }
.cls-bk .t b { font-weight: 600; }
.cls-actions { flex-wrap: wrap; gap: 6px; }
.cls-past { margin-top: 16px; }
.cls-past summary { cursor: pointer; padding: 6px 0; }
.btn.danger { color: var(--bad, #b42318); border-color: currentColor; }
.cls-av { flex-wrap: wrap; gap: 6px; padding: 8px 10px; }
.cls-av select, .cls-av input { padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.cls-pv { cursor: pointer; }
.cls-pv.warn { background: var(--warn-bg); }
.cls-pv .t span { white-space: normal; }
.cls-pv-warn { color: var(--warn); }
.cls-pv input:disabled + .t { opacity: .55; }
/* Admin: site page views per section, 7-day table (2026-10-07) */
.views-card { margin: 14px 0 4px; padding: 14px 16px; border-left: 4px solid var(--accent); }
.views-scroll { overflow-x: auto; margin-top: 8px; }
.views-table { border-collapse: collapse; width: 100%; font-size: .85rem; white-space: nowrap; }
.views-table th, .views-table td { padding: 4px 6px; text-align: right; }
.views-table th:first-child, .views-table td:first-child { text-align: left; }
.views-table th { color: var(--ink-soft); font-weight: 500; font-size: 11px; }
.views-table tbody tr:first-child { background: var(--card-2); }

.sales-detail-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 4px 0 12px; }
.sales-detail-sum div { background: var(--card); border-radius: 10px; padding: 8px 6px; text-align: center; }
.sales-detail-sum span { display: block; font-size: 11px; color: var(--ink-soft); }
.sales-detail-sum b { font-size: 15px; }
.tx { background: var(--card); border-radius: 10px; padding: 10px 12px; margin: 6px 0; }
.tx-top { display: flex; gap: 8px; align-items: baseline; }
.tx-top b { flex: 1; font-weight: 500; font-size: 14px; }
.tx-line { display: block; }
.tx-line + .tx-line { margin-top: 2px; }
.tx-time { font-size: 12px; color: var(--ink-soft); white-space: nowrap; }
.tx-amt { font-weight: 600; white-space: nowrap; }
.tx-meta, .tx-items { font-size: 12px; color: var(--ink-soft); margin-top: 3px; }
.tx.refund { background: var(--bad-bg); }
.tx.refund .tx-amt, .tx.refund b { color: var(--bad); }
.stat b small { font-size: 18px; color: var(--ink-soft); font-weight: 400; }

/* pickup confirmation */
.pick-slot { display: flex; gap: 12px; align-items: center; background: var(--card); border-radius: 12px; padding: 10px; margin: 10px 0; cursor: pointer; }
.pick-thumb { width: 72px; height: 72px; flex: none; border-radius: 10px; background: var(--card-2); display: flex; align-items: center; justify-content: center; font-size: 28px; overflow: hidden; }
.pick-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pick-slot small { display: block; font-size: 12px; margin-top: 2px; }
.btn.picked-btn, .btn.picked-btn:disabled { background: var(--card-2); color: var(--ink-soft); opacity: 1; cursor: default; }
button.photo-link { all: unset; cursor: pointer; color: var(--accent); text-decoration: underline; }
.pay-stub { display: block; padding: 6px; background: #fff; }
.pay-stub img { display: block; width: 100%; height: auto; border-radius: 6px; }
.pay-stub { cursor: zoom-in; }
.pay-stub-full { overflow-x: auto; margin: -4px -4px 8px; }
.pay-stub-full img { display: block; width: 900px; max-width: none; height: auto; background: #fff; }

.sh-prev-hint { font-size: 12px; color: var(--warn); margin-bottom: 4px; }
.tabs.area-tabs { display: grid; gap: 8px; margin: 14px 0 6px; }
.tabs.area-tabs .chip { justify-content: center; text-align: center; font-size: 1.05rem; font-weight: 600; padding: 10px 12px; }
.login-form { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; text-align: left; }
.login-form input { font-size: 18px; padding: 14px; }
.login-form .btn { width: 100%; padding: 14px; font-size: 18px; }

/* DIY classes page: month calendar (2026-10-08) */
.cls-cal { margin: 12px 0; padding: 12px 10px; }
.cls-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cls-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cls-cal-wd { text-align: center; font-size: 11px; color: var(--ink-soft); font-weight: 600; }
.cls-cal-day { min-height: 46px; border-radius: 10px; padding: 4px 2px; text-align: center; font-size: 14px; color: var(--ink-soft); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.cls-cal-day.past { opacity: .45; }
.cls-cal-day.today .n { text-decoration: underline; }
.cls-cal-day.has { background: var(--card-2); color: var(--ink); font-weight: 600; border: 1.5px solid var(--accent); cursor: pointer; opacity: 1; }
.cls-cal-day.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.cls-cal-day .c { font-size: 10px; font-weight: 500; line-height: 1.1; white-space: nowrap; }
.train-card { display: flex; flex-direction: column; gap: 6px; }
.train-list { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.train-list li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.4; }
.train-list .tbox { flex: 0 0 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.train-list li.done .tbox { background: var(--ok-bg); color: var(--ok); border-color: var(--ok); }
.sales-days { margin: 4px 0 8px; }
.stock-row { align-items: center; }
.stock-thumb { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: var(--card); border: 1px solid var(--line); }
.stock-thumb.none { display: inline-block; }
.stock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 4px 0; }
.stock-card { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: 12px; padding: 6px; background: var(--card); cursor: pointer; }
.stock-card .stock-img { position: relative; display: block; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--paper); }
.stock-card .stock-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stock-card .stock-img input { position: absolute; top: 6px; left: 6px; width: 26px; height: 26px; margin: 0; }
.stock-card .stock-name { font-size: 13px; line-height: 1.3; display: flex; flex-direction: column; gap: 2px; }
.stock-card.out .stock-img img { opacity: .35; filter: grayscale(1); }
.stock-card.changed { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.stock-card.locked { opacity: .6; cursor: default; }
.stock-card .stock-img input { accent-color: var(--ok); cursor: pointer; }
.stock-card small.out { color: var(--bad); }
.cal-gift { margin: -4px 0 12px; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--ok); background: var(--ok-bg); color: var(--ink); line-height: 1.5; }
.prep-buy { border: 2px solid var(--warn, #e0a032); background: var(--warn-bg); margin: 10px 0; }
.prep-buy ul { margin: 6px 0 0; padding-left: 18px; }
.prep-buy li { margin: 3px 0; }
.prep-buy-line { margin: 6px 0; font-weight: 600; color: var(--warn, #b8780a); }
.pur-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 2px; border-top: 1px solid var(--line, rgba(128,128,128,.2)); cursor: pointer; }
.pur-row input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.pur-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.pur-design { padding: 8px 2px 4px; }
.pur-design-row { display: flex; gap: 8px; overflow-x: auto; padding-top: 4px; }
.pur-design-row img { height: 120px; width: auto; flex: none; border-radius: 10px; display: block; }   /* flex: none — the 320px v3 thumbnails were being shrunk to slivers once the row overflowed (Jira's ≤200px thumbs never did) */
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tool-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 22px 12px; min-height: 130px; text-decoration: none; color: inherit; }
.tool-tile .tool-icon { font-size: 36px; line-height: 1; }
.tool-tile b { font-size: 1.05rem; }
.tool-tile small { font-size: 12px; }
.views-table td.web-orders { color: var(--ok); font-weight: 700; }
.view-as-bar { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 8px 12px; background: var(--accent, #e0a032); color: #1f1814; font-size: 14px; }
.view-as-bar .chip { background: #1f1814; color: #fff; border-color: #1f1814; }
.view-as-card { display: flex; flex-direction: column; gap: 8px; }
.view-as-row { display: flex; gap: 8px; }
.view-as-row select { flex: 1; padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 15px; }
button.tool-tile { border: 1px solid var(--line); cursor: pointer; font: inherit; color: inherit; width: 100%; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row2 > * { min-width: 0; }
.row2 input { min-width: 0; max-width: 100%; box-sizing: border-box; -webkit-appearance: none; appearance: none; }
label.f > input { box-sizing: border-box; min-height: 44px; }
.pw-card { display: flex; flex-direction: column; gap: 8px; }
.pw-head, .pw-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 6px; align-items: center; }
.pw-head span { font-size: 12px; color: var(--ink-soft); }
.pw-row input { width: 100%; padding: 10px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 16px; box-sizing: border-box; }
.pw-hist { display: flex; flex-direction: column; gap: 2px; }

/* 🗓 小蛋糕排班 */
.pd-card { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.pd-week { font-size: 12px; color: var(--ink-soft); font-weight: 600; margin-bottom: 4px; }
.pd-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 8px; align-items: center; padding: 8px 6px; border-top: 1px solid var(--line); }
.pd-row.today { background: var(--accent-soft, rgba(214,150,40,.10)); border-radius: 8px; }
.pd-date { display: flex; flex-direction: column; line-height: 1.15; }
.pd-date small { font-size: 11px; color: var(--ink-soft); }
.pd-slots { display: flex; flex-wrap: wrap; gap: 6px; }
.pd-slot { font-size: 13px; padding: 4px 10px; border-radius: 999px; border: 1px dashed var(--line); color: var(--ink-soft); background: transparent; font: inherit; font-size: 13px; }
button.pd-slot { cursor: pointer; }
.pd-slot.on { border-style: solid; background: var(--card); color: var(--ink); }
.pd-slot.me { background: var(--accent, #d69628); color: #fff; border-color: transparent; }
.pd-btn { white-space: nowrap; padding: 6px 12px; font-size: 14px; }
.pd-admin { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; max-width: 160px; }
.pd-admin .chip.on { background: var(--accent, #d69628); color: #fff; border-color: transparent; }
.pd-admin .chip:disabled { opacity: .35; }

/* 🍰 蛋糕取货 list */
.pk-day { font-size: 13px; color: var(--ink-soft); font-weight: 600; margin: 14px 0 6px; }
.pk-day.today { color: var(--accent); }
.pk-day.late { color: var(--bad, #c0392b); }
.pk-card { padding: 0 4px; }
.pk-row { display: grid; grid-template-columns: 52px 1fr 20px; gap: 10px; align-items: center; padding: 10px 6px; border-top: 1px solid var(--line); cursor: pointer; }
.pk-row:first-child { border-top: 0; }
.pk-time { font-weight: 700; font-variant-numeric: tabular-nums; }
.pk-sum { font-weight: 600; line-height: 1.3; }
.pk-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 3px; font-size: 12px; }
.pk-tag { padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); }
.pk-bal { padding: 1px 8px; border-radius: 999px; font-weight: 600; }
.pk-bal.due { background: var(--warn-bg, rgba(214,150,40,.18)); color: var(--warn, #b7791f); }
.pk-bal.paid { background: var(--ok-bg); color: var(--ok); }
.pk-act { text-align: right; color: var(--ink-soft); font-size: 20px; }
.pick-group { background: var(--card); border-radius: 12px; padding: 10px; margin: 10px 0; }
.pick-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pick-multi { align-items: flex-start; cursor: default; }
.pick-multi > div { flex: 1; min-width: 0; }
.pick-add { cursor: pointer; border: 1px dashed var(--ink-soft); background: transparent; }
.pick-x { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border: 0; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; line-height: 20px; padding: 0; cursor: pointer; }
.pick-group .pick-thumb { cursor: pointer; }
.pick-more { flex-direction: column; font-size: 24px; border: 1px dashed var(--line); background: transparent; color: var(--ink-soft); }
.pick-more small { font-size: 11px; }

.tx-pickup { color: var(--accent, #d69628); font-weight: 600; }

/* 🚚 配送订单 month grid (#/front/deliveries) */
.dv-head { display: flex; justify-content: space-between; align-items: center; margin: 6px 0 8px; }
.dv-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.dv-wd { font-size: 11px; color: var(--ink-soft); text-align: center; padding-bottom: 2px; }
.dv-cell { min-height: 46px; border: 1px solid var(--line); border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 14px; cursor: pointer; line-height: 1.1; }
.dv-cell.has { background: var(--card); font-weight: 600; }
.dv-cell.today { border-color: var(--accent); }
.dv-cell.on { background: var(--ink); color: var(--paper); }
.dv-cell .n { font-size: 10px; color: var(--accent); font-weight: 700; margin-top: 2px; white-space: nowrap; }
.dv-cell .n i { font-style: normal; color: var(--bad, #c0392b); }
.dv-cell.on .n { color: var(--paper); }
.ck-cell.past { opacity: .55; }
.ck-cell .n i { display: block; font-style: normal; }
.ck-cell { min-height: 64px; }
.dv-row { grid-template-columns: 78px 1fr 16px; }
.dv-row .pk-time { font-size: 12px; white-space: normal; }
.dv-addr, .dv-items { font-size: 12px; margin-top: 3px; line-height: 1.35; }
.dv-addr a { color: inherit; }

.cal-photos { margin: 6px 0 10px; }
.cal-photos .pur-design-row img { cursor: zoom-in; }
.cal-photo-full img { display: block; width: 100%; height: auto; border-radius: 10px; margin-bottom: 8px; }
.inv-row { display: flex; align-items: center; gap: 8px; }
.inv-row .inv-row-t { flex: 1; }
.inv-row.bought .inv-row-t { opacity: .6; }
.inv-buy { padding: 4px 12px; font-size: 13px; white-space: nowrap; }
.train-rows { margin: 8px 0 4px; }
.train-row { display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px solid var(--line, rgba(127,127,127,.2)); text-decoration: none; color: inherit; }
.train-row.ok span:last-child { color: var(--ok); }
.tool-tile.ok .tool-icon { filter: none; } .tool-tile.ok b::after { content: " ✓"; color: var(--ok); }
/* 🎂 蛋糕定版 / 接单 */
.ck-row { width: 100%; border: 0; font: inherit; color: inherit; text-align: left; }
.ck-when { min-width: 92px; font-size: 13px; }
.ck-allergy { background: var(--bad-bg); color: var(--bad); border: 1px solid var(--bad); border-radius: 10px; padding: 10px 12px; font-weight: 700; margin: 0 0 10px; }
.ck-meta.ck-allergy-meta { color: var(--bad); font-weight: 600; }
.ck-handover { margin: 10px 0; }
.ck-handover summary { cursor: pointer; margin-bottom: 8px; }
.ck-handover .cal-photo-full { margin-bottom: 10px; }
.ck-days { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--ink); }
.ck-days.soon { color: var(--bad); }
.ck-spec { width: 100%; border-collapse: collapse; margin: 8px 0; }
.ck-spec th { text-align: left; white-space: nowrap; color: var(--ink-soft); font-weight: 500; padding: 6px 12px 6px 0; vertical-align: top; width: 1%; }
.ck-spec td { padding: 6px 0; border-bottom: 1px solid var(--line); }
.ck-pipe { display: inline-flex; align-items: center; gap: 6px; margin-right: 14px; }
.ck-sw { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(128,128,128,.45); flex: none; }
.ck-sec { margin: 12px 0; }
.ck-sec ol, .ck-sec ul { margin: 6px 0 0; padding-left: 22px; }
.ck-missing { background: var(--warn-bg); border-radius: 10px; padding: 8px 12px; }
.ck-imgs { margin: 12px 0; }
.ck-img-row { display: flex; gap: 10px; overflow-x: auto; margin-top: 6px; }
.ck-img-row figure { margin: 0; flex: 0 0 150px; }
.ck-img-row img { width: 150px; height: 150px; object-fit: contain; border-radius: 10px; background: #fff; cursor: pointer; }   /* whole picture with padding, like the enlarged view (owner 2026-10-28: 为什么不是点开后的那种四周留白) */
.ck-img-row figcaption { font-size: 12px; color: var(--ink-soft); margin-top: 4px; }
.ck-print { width: 100%; margin-top: 6px; font-size: 12px; padding: 6px 8px; white-space: normal; line-height: 1.3; }
.ck-label { display: block; margin: 14px 0 6px; font-weight: 600; }
.ck-tiers { display: flex; gap: 8px; }
textarea, #ckFb, #ckNote { width: 100%; box-sizing: border-box; font: inherit; padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--card, transparent); color: inherit; }
#ckNote { min-height: 72px; }
.ck-raw pre { white-space: pre-wrap; font-size: 12px; max-height: 300px; overflow: auto; }
.ck-row .t .ck-meta { display: block; font-size: 13px; color: var(--ink-soft); }
.ck-row .t .ck-miss { color: var(--warn); }
.ck-hold { background: var(--bad-bg, #fde2dd); border-left: 4px solid var(--bad, #c0392b); border-radius: 10px; padding: 10px 12px; margin: 10px 0; }
.ck-hold b { display: block; color: var(--bad, #c0392b); margin-bottom: 4px; }
.ck-hold span { font-size: 14px; }
.ck-fbphotos { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.ck-fbphotos label.chip { cursor: pointer; }
.ck-fbthumb { position: relative; display: inline-block; }
.ck-fbthumb img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; display: block; }
.ck-fbthumb .x { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; padding: 0; font-size: 12px; border-radius: 50%; }
.ck-links { display: flex; flex-wrap: wrap; gap: 14px; margin: 14px 0 6px; font-size: 14px; }
.ck-raw pre a { color: var(--accent); }
.mini-sold { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.mini-sold .chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; font-size: 13px; white-space: normal; max-width: 100%; text-align: left; }
.mini-sold img { flex: none; }
.mini-sold img { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; }
.mini-pick { display: grid; grid-template-columns: 1fr 1fr; }
.mini-pick .chip { cursor: pointer; opacity: .55; font-size: 12px; min-width: 0; }
.mini-pick small { display: block; }
.mini-pick .chip.on { opacity: 1; outline: 2px solid var(--accent); }
.mini-pick small { color: var(--ink-soft); }
.ck-th { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; background: var(--line, rgba(127,127,127,.15)); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.ck-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ck-daylist .row { text-align: left; align-items: center; }
.ck-dl { flex: 0 0 64px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; color: var(--ink-soft); text-align: center; }
.ck-dl .ck-days { display: block; }
.pw-day { margin-bottom: 12px; display: flex; flex-direction: column; gap: 6px; }
.pw-day-n { display: flex; gap: 16px; font-size: 15px; }
.pw-day-n b { font-size: 20px; }
.pw-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0; }
.pw-shot { margin: 0; position: relative; aspect-ratio: 1; border: 1.5px dashed var(--line, rgba(127,127,127,.4)); border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; overflow: hidden; }
.pw-shot > span { font-size: 28px; }
.pw-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pw-shot b { position: relative; background: rgba(0,0,0,.45); color: #fff; padding: 2px 10px; border-radius: 10px; font-size: 13px; }
.pw-shot .x { position: absolute; top: 6px; right: 6px; z-index: 1; width: 26px; height: 26px; padding: 0; font-size: 13px; border-radius: 50%; }
.pw-hist small { display: block; }
.pw-score { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 10px; font-size: 13px; background: rgba(200,140,20,.15); color: var(--ink); }
.pw-score.good { background: rgba(40,150,80,.18); }
.pw-score.low { background: rgba(200,50,40,.18); }
.pw-score.todo { background: transparent; border: 1px dashed currentColor; color: var(--ink-soft); }
.pw-rate { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.pw-rate-n { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.pw-rate-n .chip { justify-content: center; }
.pw-rate input { width: 100%; }
#pwNote { width: 100%; }
/* iOS Safari gives date/time inputs an intrinsic min width that overflows narrow cards (owner 2026-10-14). */
input[type="date"], input[type="time"], input[type="datetime-local"] { -webkit-appearance: none; appearance: none; display: block; width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; min-height: 44px; }
input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.pw-scorebox { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 10px; background: rgba(200,140,20,.14); border-left: 3px solid #c8901a; margin: 8px 0; }
.pw-rate textarea { min-height: 72px; height: 80px; }
.pw-new { width: 100%; font-size: 17px; padding: 14px; margin: 4px 0 8px; }
.pw-hint { font-size: 14px; padding: 8px 12px; border-radius: 10px; background: rgba(200,140,20,.14); border-left: 3px solid #c8901a; margin: 8px 0 0; }
.pw-shot .x { background: rgba(0,0,0,.6); color: #fff; border: none; }
.btn:disabled { opacity: .55; }
/* 📤 staged-upload progress bar on any photo thumbnail */
.stg-bar, .pw-up { position: absolute; left: 8px; right: 8px; bottom: 8px; height: 22px; border-radius: 11px; background: rgba(0,0,0,.55); overflow: hidden; z-index: 1; cursor: default; }
.stg-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: #c8901a; transition: width .2s; }
.stg-bar.ok i { background: #2f9a55; }
.stg-bar.bad { background: rgba(180,35,24,.9); cursor: pointer; }
.stg-bar em { position: relative; display: block; text-align: center; font-style: normal; font-size: 12px; line-height: 22px; color: #fff; font-weight: 600; }
.stg-bar.sm { left: 3px; right: 3px; bottom: 3px; height: 14px; border-radius: 7px; }
.stg-bar.sm em { font-size: 9px; line-height: 14px; }
.pick-thumb, .ck-fbthumb, .stg-fig, .stg-one { position: relative; }
.stg-fig .x { position: absolute; top: 4px; right: 4px; z-index: 2; width: 22px; height: 22px; padding: 0; font-size: 11px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; border: none; }
.stg-one img { display: block; width: 100%; border-radius: 12px; }
.pk-tag.pk-extra { background: rgba(200,140,20,.18); color: inherit; font-weight: 600; }
.cal-gift.cal-extra { background: rgba(200,140,20,.16); border-color: #c8901a; }
.dv-or { display: flex; align-items: center; gap: 10px; margin: 14px 0 8px; color: var(--ink-soft); font-size: 13px; }
.dv-or::before, .dv-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.dv-hand { width: 100%; }
/* ⚡ 临时班 */
.sh-slot.sh-extra { border-left: 3px solid var(--warn, #d9a400); }
.sh-xbanner { background: var(--warn-bg); border-left: 3px solid var(--warn, #d9a400); }
/* Unstyled selects / text inputs follow the theme (dark mode had light-on-white #shCap, cap pickers, #clsRepeatN — audit 2026-10-15). :where() = zero specificity, so every classed rule still wins. */
:where(select, input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"])) { background-color: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; }
:where(select) { padding: 4px 8px; }
/* 📅 客人要改期 */
.ck-resched { border-left: 4px solid var(--warn, #d9a400); background: var(--warn-bg); display: grid; gap: 6px; margin-bottom: 12px; }
.sh-star { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; font-size: 14px; }
/* 💬 留言 on a cake (owner 2026-10-15) */
.ck-comments { margin: 10px 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); display: grid; gap: 8px; }
.ck-cmt { display: grid; gap: 2px; padding-top: 6px; border-top: 1px dashed var(--line); }
.linkbtn { background: none; border: 0; padding: 0 0 0 6px; color: var(--bad); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; }
.linkbtn.ok, .linkbtn.xl-b { color: var(--accent); }
.linkbtn:disabled { opacity: .6; }
.ck-cmt.q-open { border-left: 3px solid var(--accent); padding-left: 8px; }
.ck-ans { display: grid; gap: 2px; margin: 4px 0 0 12px; padding: 6px 10px; border-radius: 10px; background: var(--ok-bg); }
.ck-ans.muted { display: block; background: none; padding: 0; }
.ck-qitem { display: grid; gap: 4px; margin: 10px 0; }
.ck-qitem textarea { width: 100%; margin-top: 6px; }
.pk-row.pk-th { grid-template-columns: 64px 1fr 20px; }
.pk-row.pk-th .pk-time { color: var(--ink); font-size: 14px; }
.ck-qtile { margin: 0 0 12px; }
.ck-qopen { all: unset; display: grid; gap: 4px; cursor: pointer; }
.ck-qopen u { color: var(--accent); }
.ck-thr { border-left: 3px solid var(--accent); padding-left: 8px; gap: 6px; }
.ck-thr.closed { border-left-color: var(--ok); }
.ck-msg { display: grid; gap: 2px; padding: 6px 10px; border-radius: 10px; background: var(--paper); }
.ck-msg.me { background: var(--ok-bg); }
.ck-thr-foot { display: grid; gap: 6px; }
.ck-thr-foot.ok { color: var(--ok); font-size: 13px; }
.ck-thr-foot textarea { width: 100%; min-height: 0; height: 84px; }
.ck-phs { display: flex; flex-wrap: wrap; gap: 8px; }
.ck-phs:empty { display: none; }
.ck-ph { position: relative; width: 72px; }
.ck-ph img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; display: block; }
.ck-phrm { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--bad); color: #fff; font-size: 14px; line-height: 22px; padding: 0; cursor: pointer; }
.ck-phadd { justify-self: start; }
.ck-nphs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ck-nphs img { width: 88px; height: 88px; object-fit: cover; border-radius: 8px; cursor: zoom-in; background: var(--line); }
/* ❓ 还没确认: notes under each item */
.ck-about { font-size: 12px; color: var(--muted); border-left: 3px solid #c9a227; padding: 2px 8px; margin: 2px 0 6px; }
.ck-missing li .linkbtn { font-size: 13px; }
.ck-mcmts { margin: 6px 0 8px; display: grid; gap: 6px; }
.ck-answered { background: var(--ok-bg, rgba(80,160,90,.14)); border-radius: 10px; padding: 8px 12px; }
.ck-answered li .linkbtn { font-size: 13px; }

/* 💬 跟进 tab (owner 2026-10-18, docs/followups.js) */
.fu-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.fu-head h1 { margin: 0; }
.fu-headbtns { display: flex; gap: 8px; }
.fu-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; -webkit-overflow-scrolling: touch; }
.fu-tabs .chip b { margin-left: 4px; }
.fu-row { align-items: flex-start; }
.fu-row .t span { white-space: normal; }
.fu-thumb { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; background: var(--card-2); display: grid; place-items: center; font-size: 24px; }
.fu-supply { color: var(--warn); }
.fu-stage { margin: 4px 0 10px; font-weight: 500; }
.fu-links { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 12px; }
.fu-links .chip { text-decoration: none; color: inherit; }
.fu-sum { display: grid; gap: 6px; }
.fu-kv { display: grid; grid-template-columns: 64px 1fr; gap: 10px; font-size: 14px; }
.fu-kv span:first-child { color: var(--ink-soft); }
.fu-supplies { margin-top: 10px; white-space: pre-wrap; font-size: 14px; }
.fu-actions { flex-wrap: wrap; gap: 8px; }
.fu-actions .fu-close { margin-left: auto; }
.fu-wait { padding: 10px 12px; border-radius: 12px; background: var(--warn-bg); color: var(--warn); font-weight: 500; }
.fu-ev { width: 100%; border: 0; font: inherit; color: inherit; text-align: left; align-items: flex-start; }
.fu-ev .t span { white-space: normal; }
/* Fixed-height previews (owner 2026-10-18: 不要展开这么多信息 固定高度就行): two lines, newlines collapsed.
   Specificity has to beat .row .t span (display:block), or the clamp never applies. */
.fu-ev .t .fu-prev, .fu-row .t .fu-prev { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; max-height: 2.9em; line-height: 1.45; }
.fu-ev .t .fu-subj { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fu-subj { font-weight: 500; }
.fu-body { white-space: pre-wrap; line-height: 1.5; font-size: 15px; }
.fu-ev.fu-live { border: 2px solid var(--accent, #c98a2e); }
.fu-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 6px; margin-top: 10px; }
.fu-imgs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.fu-audit { margin-top: 18px; font-size: 13px; color: var(--ink-soft); }
.fu-audit ul { padding-left: 18px; }
.fu-undo { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--ink); color: var(--paper); box-shadow: var(--shadow); }
.fu-undo .btn.ghost { color: var(--paper); border-color: var(--paper); }
.fu-foot { margin-top: 24px; }
.fu-customer_reply .t b, .fu-sent_to_customer .t b { color: var(--ink); }
.fu-cal { margin-bottom: 12px; }
.fu-cell { min-height: 44px; cursor: pointer; }
.fu-cell.past { opacity: .55; }
.fu-cell.on { outline: 2px solid var(--accent, #c98a2e); outline-offset: -2px; border-radius: 8px; }
.fu-cell .n { display: block; font-size: 12px; }
.fu-chip-bad { border-color: var(--bad); color: var(--bad); }
.fu-sec { margin-top: 10px; }
.fu-sec ul { margin: 4px 0 0; padding-left: 18px; }
.fu-bad { color: var(--bad); }
.fu-warn { color: var(--warn); }
.ck-links.ck-top { margin: 6px 0 8px; }
.ck-topacts { margin: 0 0 8px; }
.ck-topacts .btn { padding: 8px 12px; font-size: 14px; }
.fu-noimg img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.ck-back { display: inline-block; margin: 0 0 6px; padding: 0; font-size: 15px; color: var(--ink-soft); text-decoration: none; }
.tx-links { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.tx-links .chip { padding: 4px 10px; font-size: 13px; text-decoration: none; color: inherit; }
.pk-id { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 8px 0 10px; background: var(--card); }
.pk-id-h { font-size: 13px; color: var(--ink-soft); margin-bottom: 4px; }
.pk-id-r { display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 3px 0; font-size: 16px; }
.pk-id-r span:first-child { color: var(--ink-soft); font-size: 14px; }
.pk-id-r b { font-weight: 700; }
/* 🎂 蛋糕上新 (docs/newcakes.js) */
.nc-row { display: flex; gap: 12px; align-items: flex-start; margin: 10px 0; }
.nc-photo { position: relative; flex: 0 0 110px; }
.nc-photo img { width: 110px; height: 110px; object-fit: cover; border-radius: 10px; background: var(--card-2); display: block; }
.nc-photo .x { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; padding: 0; font-size: 13px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.nc-fields { flex: 1; min-width: 0; display: grid; gap: 6px; }
.nc-fields .f { margin: 0; }
.nc-fields select, .nc-fields input { width: 100%; }
.nc-name { display: flex; gap: 6px; align-items: center; }
.nc-name .code { flex: none; }
.nc-res div { margin-top: 6px; }
.nc-sz { margin: 10px 0; display: grid; gap: 8px; }
.nc-sz-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.nc-sz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.nc-sz-t { display: grid; gap: 4px; justify-items: center; }
.nc-sz-t img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--card-2); }
.nc-sz-t.off img { opacity: .35; filter: grayscale(1); }
.nc-wed { margin: 10px 0; display: grid; gap: 8px; }
.nc-wed-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.nc-wed-t { display: grid; gap: 4px; justify-items: center; text-align: center; }
.nc-wed-t img, .nc-wed-wait { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--card-2); }
.nc-wed-wait { display: flex; align-items: center; justify-content: center; font-size: .8rem; color: var(--muted); }
.nc-wed-t .f { display: flex; align-items: center; gap: 2px; margin: 0; }
.nc-wed-t input { width: 100%; }
.nc-opts { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.nc-web { display: flex; gap: 6px; align-items: center; }
.nc-past { margin: 10px 0; }
.nc-past-h { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.nc-past-h .small { flex-basis: 100%; }
.nc-past-h .nc-seen { margin-left: auto; }
.nc-past-imgs { display: flex; gap: 8px; overflow-x: auto; margin-top: 8px; }
.nc-pimg { position: relative; flex: 0 0 96px; width: 96px; height: 96px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--card-2); cursor: pointer; }
.nc-pimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nc-pimg.on { border-color: var(--ok); }
.nc-pimg i { position: absolute; left: 4px; top: 4px; font-style: normal; font-size: 14px; }
.nc-pimg em { position: absolute; left: 0; right: 0; bottom: 0; background: var(--ok); color: #fff; font-size: 12px; font-style: normal; text-align: center; }
.nc-q { display: flex; gap: 12px; align-items: flex-start; margin: 10px 0; }
.nc-q > img { flex: 0 0 110px; width: 110px; height: 110px; object-fit: cover; border-radius: 10px; background: var(--card-2); cursor: zoom-in; }
.nc-q-b { flex: 1; min-width: 0; }
.nc-fields .nc-web input { width: auto; flex: none; margin: 0; }
.nc-web { white-space: nowrap; }

/* 🔁 换图 review: current vs Muse side by side */
.nc-rv-h { margin-bottom: 6px; }
.nc-rv-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nc-rv-imgs figure { margin: 0; text-align: center; }
.nc-rv-imgs img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--card-2); border-radius: 8px; cursor: zoom-in; }
.nc-rv-imgs figcaption { font-size: 12px; color: var(--ink-soft); }
.nc-q-b > span { display: block; }

/* 📤 最近上传 */
.nc-recent { margin: 10px 0 14px; }
.nc-recent summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.nc-recent-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 6px; }
.nc-recent-g figure { margin: 0; }
.nc-recent-g img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--card-2); }
.nc-recent-g figcaption { font-size: 11px; line-height: 1.3; }
/* 📈 小蛋糕 做了 vs 卖了 */
.mini-flow { display: block; width: 100%; height: 150px; margin: 6px 0 2px; }
.mini-flow-days { display: grid; grid-template-columns: repeat(14, 1fr); font-size: 10px; text-align: center; line-height: 1.35; }
.mini-flow-days span { display: block; color: var(--muted, #8a7f76); }
.mini-flow-days b { display: block; font-weight: 600; }
.mini-flow-days .up { color: #3a9d5d; }
.mini-flow-days .down { color: #d0573f; }

.nc-sz-qa{color:#b45309;line-height:1.25;max-height:3.8em;overflow:hidden;margin-top:2px}
.inv-name { display: flex; align-items: center; gap: 8px; }
.inv-name > span { flex: 1; }
.inv-pic { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; cursor: zoom-in; flex: none; }
.inv-edit { padding: 2px 6px; font-size: 12px; }
.dr-pic { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; margin-bottom: 6px; }
.nc-rc-bad img{outline:3px solid #dc2626;outline-offset:-3px}
.nc-rc-btns{display:flex;gap:6px;flex-shrink:0}
/* 🧩 配件整理 (owner 2026-10-30) */
.ac-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-top: 12px; }
.ac-bin { padding: 0; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; }
.ac-bin img, .ac-bin .ac-nopic { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--card-2); display: flex; align-items: center; justify-content: center; font-size: 34px; }
.ac-bin .ac-cap { padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.ac-bin .ac-cap b { font-size: 1.05rem; }
.ac-photo { width: 100%; max-height: 42vh; object-fit: contain; border-radius: 10px; background: var(--card-2); cursor: zoom-in; }
.ac-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.ac-item:first-child { border-top: 0; }
.ac-item .ac-main { flex: 1; min-width: 0; }
.ac-item .ac-main b { display: block; }
.ac-item .ac-btns { display: flex; gap: 6px; flex: none; }
.ac-item .ac-btns .chip { padding: 4px 9px; font-size: 13px; }
.ac-cakes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ac-cake { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px 2px 2px; font-size: 12px; cursor: zoom-in; background: var(--card); }
.ac-cake img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: var(--card-2); }
.ac-count { font-size: 13px; color: var(--ink-soft); white-space: nowrap; }
.ac-search { width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); margin-top: 10px; }
.ac-hit { display: flex; gap: 10px; align-items: center; }
.ac-hit img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; background: var(--card-2); flex: none; cursor: zoom-in; }
.ac-group { font-size: 1.15rem; margin: 18px 0 0; }
.ac-ithumb { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; background: #fff; flex: none; cursor: zoom-in; }
.ac-noimg { display: flex; align-items: center; justify-content: center; font-size: 24px; background: var(--card-2); color: var(--ink-soft); cursor: default; }
.ac-noimg.big { width: 100%; aspect-ratio: 1; max-height: 40vh; border-radius: 12px; flex-direction: column; gap: 6px; font-size: 40px; }
.ac-noimg.big small { font-size: 13px; }
.ac-itempic img { width: 100%; max-height: 40vh; object-fit: contain; border-radius: 12px; background: #fff; cursor: zoom-in; }
.ac-cake { padding: 2px 4px 2px 2px; max-width: 100%; cursor: default; }
.ac-cake-pic { width: 30px; height: 30px; border-radius: 50%; background: var(--card-2); overflow: hidden; flex: none; cursor: zoom-in; }
.ac-cake-pic img { width: 100%; height: 100%; object-fit: cover; }
.ac-cake-t { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; padding-right: 4px; }
.ac-cake-t small { font-size: 10px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.ac-x { border: 0; background: var(--card-2); color: var(--ink-soft); border-radius: 50%; width: 22px; height: 22px; font-size: 12px; cursor: pointer; flex: none; }
.ac-mini { padding: 2px 8px; font-size: 12px; margin-left: 6px; }
.ac-bins { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ac-bins .chip { padding: 4px 10px; font-size: 13px; }
.ac-pick { cursor: pointer; }
.ac-addcake { display: flex; gap: 8px; margin-top: 10px; }
.ac-addcake input { flex: 1; font: inherit; font-size: 16px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); min-width: 0; }
.ac-last { background: var(--ok-bg); color: var(--ok); border-radius: 10px; padding: 8px 12px; font-weight: 600; }
.ac-sorts { display: flex; gap: 8px; align-items: center; overflow-x: auto; margin-top: 10px; padding-bottom: 4px; }
.ac-sorts > span { flex: none; }
.ac-sort { flex: none; display: flex; flex-direction: column; align-items: center; gap: 3px; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 10px; padding: 4px; font: inherit; font-size: 11px; cursor: pointer; }
.ac-sort img { width: 56px; height: 56px; object-fit: cover; border-radius: 7px; background: var(--card-2); }

/* 🧰 工具: section headings when a login sees both the front-desk and the kitchen tiles (2026-10-31) */
.tool-sec { font-size: 1.05em; margin: 18px 0 8px; opacity: .85; }
.ac-sortrow { margin-top: 8px; cursor: pointer; }
/* 配件列表 big-picture tiles: the cut-outs are on white, square-ish (2026-10-31) */
.ac-itile img, .ac-itile .ac-nopic { aspect-ratio: 1; background: #fff; object-fit: contain; }
.ac-itile .ac-cap b { font-size: .95rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* item sheet: bins and cakes as big-picture tiles (2026-10-31) */
.ac-grid-sm { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-top: 4px; }
.ac-grid-sm .ac-bin .ac-cap { padding: 8px 10px; }
.ac-grid-sm .ac-bin .ac-cap b { font-size: .95rem; }
.ac-grid-sm .ac-btns { display: flex; gap: 6px; margin-top: 4px; }
.ac-caketile img { aspect-ratio: 1; }
.toast.undo { display: flex; gap: 12px; align-items: center; padding: 8px 10px 8px 18px; }
.toast.undo button { border: 0; border-radius: 999px; background: var(--accent, #d9a033); color: #221a12; font: inherit; font-weight: 700; padding: 6px 12px; cursor: pointer; }
.ac-nav { justify-content: space-between; align-items: center; margin: 8px 0; }
.ac-gone { opacity: .45; }
.ac-gone .ac-mini { opacity: 1; background: var(--accent); color: var(--accent-ink); }
/* 🎂 上新: per-card ✅ 上 / ❌ 不上 (owner 2026-11-01) */
.nc-yn { display: flex; gap: 10px; margin-top: 10px; }
.nc-yn .btn { flex: 1; }
.nc-row.nc-gone { opacity: .45; }
.nc-row.nc-gone .nc-yn .btn:first-child { visibility: hidden; }
.nc-done { padding: 10px 14px; }

/* 📜 证件 (owner 2026-11-02) */
.cert-list { display: grid; gap: 12px; margin-top: 12px; }
.cert-card .cert-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.cert-card .cert-head b { font-size: 1.05rem; flex: 1; }
.cert-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.cert-row .t { flex: 1; min-width: 0; }
.cert-row .t b { display: block; }
.cert-row .t span { display: block; font-size: 12px; color: var(--ink-soft); }
.cert-thumb { width: 84px; height: 64px; flex: 0 0 84px; border-radius: 8px; background: var(--card-2); display: flex; align-items: center; justify-content: center; font-size: 26px; overflow: hidden; cursor: zoom-in; }
.cert-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cert-acts { display: flex; gap: 4px; }
.cert-none { margin: 4px 0 0; }

/* 🔍 找类似款 · 报价 */
.lk-item { margin-top: 12px; }
.lk-head { display: flex; gap: 12px; align-items: flex-start; }
.lk-photo { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; background: var(--card-2); cursor: zoom-in; flex: none; }
.lk-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); margin-top: 12px; }
.lk-cake { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.lk-cake img, .lk-cake .lk-nopic { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--card-2); display: flex; align-items: center; justify-content: center; font-size: 34px; cursor: zoom-in; }
.lk-cake .lk-cap { padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.lk-price { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; }
.lk-wait { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.lk-bar { height: 8px; border-radius: 99px; background: var(--card-2); overflow: hidden; position: relative; }
.lk-bar i { position: absolute; top: 0; bottom: 0; width: 40%; border-radius: 99px; background: var(--accent); animation: lk-slide 1.6s ease-in-out infinite; }
.lk-bar.s2 i { animation-duration: 1.1s; }
@keyframes lk-slide { 0% { left: -40%; } 100% { left: 100%; } }
.lk-cake.off img { opacity: .35; filter: grayscale(1); }
.nc-du .lk-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.nc-du .nowrap { white-space: nowrap; flex: none; }
.pr-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); margin-top: 12px; }
.pr-item { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.pr-item img, .pr-item .lk-nopic { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; cursor: zoom-in; }
.pr-cap { padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.pr-cap .actions { margin: 0; gap: 6px; flex-wrap: wrap; }
.pr-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.pr-tags.pr-top { margin: 8px 0 4px; }
.chip.tiny { font-size: 12px; padding: 2px 8px; }
#prQ { width: 100%; box-sizing: border-box; }

/* 🗂 order sheet cards (2026-11-04): one card per cake line, delivery block, customer */
.oi-sheet { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 10px; }
.oi-deliv { background: var(--card2, rgba(255,255,255,.04)); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.oi-card { display: flex; gap: 10px; align-items: flex-start; background: var(--card2, rgba(255,255,255,.04)); border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.oi-img { width: 72px; height: 72px; flex: 0 0 72px; border-radius: 8px; background: var(--line); overflow: hidden; }
.oi-img img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; }
.oi-body { flex: 1; min-width: 0; line-height: 1.35; }
.oi-msg { margin-top: 2px; }
.oi-spec { margin-top: 6px; }

/* stacked thumbnails for multi-item orders (2026-11-04) */
.ck-th .ck-stack, .ck-stack { position: relative; display: block; width: 64px; height: 64px; }
.ck-stack img { position: absolute; width: 48px; height: 48px; border-radius: 8px; object-fit: cover; border: 2px solid var(--bg, #1e1613); background: var(--line); box-shadow: 0 1px 3px rgba(0,0,0,.35); }
.ck-stack img[data-stack="0"] { left: 0; top: 0; z-index: 3; }
.ck-stack img[data-stack="1"] { left: 8px; top: 8px; z-index: 2; }
.ck-stack img[data-stack="2"] { left: 16px; top: 16px; z-index: 1; }
.ck-stack-n { position: absolute; right: -2px; bottom: -2px; z-index: 4; font-size: 11px; line-height: 1; padding: 3px 5px; border-radius: 999px; background: var(--accent, #c9a227); color: #1e1613; }

/* 🥐 当月面包口味 (2026-11-05, owner: 大图 多排): picture tiles in a grid, tap anywhere on a tile to tick it */
.sr-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.sr-row { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 6px; border-radius: 12px; cursor: pointer; border: 2px solid transparent; background: rgba(255,255,255,.03); }
.sr-row.on { border-color: var(--accent, #c8963e); background: color-mix(in srgb, var(--accent, #c8963e) 14%, transparent); }
.sr-row.off { opacity: .45; }
.sr-row input { position: absolute; top: 12px; left: 12px; width: 22px; height: 22px; margin: 0; z-index: 1; }
.sr-img { display: block; width: 100%; aspect-ratio: 1; border-radius: 8px; object-fit: cover; background: rgba(255,255,255,.06); }
.sr-cap { font-size: 13px; line-height: 1.3; }
.sr-cap small { display: block; }
@media (max-width: 480px) { .sr-list { grid-template-columns: repeat(2, 1fr); } }

/* 📖 配方管理 (2026-11-05) */
.rc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
@media (max-width: 480px) { .rc-grid { grid-template-columns: repeat(2, 1fr); } }
.rc-card { position: relative; padding: 0; overflow: hidden; cursor: pointer; border: 2px solid transparent; }
.rc-card.sel { border-color: var(--accent, #c8963e); }
.rc-card img, .rc-noimg { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: rgba(255,255,255,.06); }
.rc-noimg { display: grid; place-items: center; font-size: 32px; }
.rc-pick { position: absolute; top: 8px; left: 8px; width: 22px; height: 22px; margin: 0; z-index: 1; }
.rc-cap { padding: 6px 8px 8px; font-size: 12px; line-height: 1.35; }
.rc-tags { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 4px; }
.rc-tag { font-size: 10px; padding: 1px 6px; border-radius: 999px; background: rgba(255,255,255,.08); white-space: nowrap; }
.rc-tag.bad { background: rgba(220,80,80,.22); } .rc-tag.ok { background: rgba(80,180,100,.22); }
.rc-q { flex: 1; min-width: 120px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: inherit; }
.rc-bulkbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 12px; margin-bottom: 10px; }
.rc-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.rc-head img { width: 84px; height: 84px; border-radius: 10px; object-fit: cover; flex: none; }
.rc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rc-ai { margin-top: 12px; padding: 10px; border-radius: 10px; background: rgba(255,255,255,.04); }
.rc-ai summary { cursor: pointer; font-weight: 600; }
.rc-ai textarea { width: 100%; margin-top: 8px; }
.rc-shots { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.rc-shot { position: relative; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; background: rgba(255,255,255,.06); display: grid; place-items: center; font-size: 22px; cursor: pointer; }
.rc-shot img { width: 100%; height: 100%; object-fit: cover; }
.rc-srcs { display: flex; gap: 6px; flex-wrap: wrap; }
.rc-srcimg { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; background: rgba(255,255,255,.06); cursor: zoom-in; }
.rc-srctxt { font-size: 11px; padding: 6px 8px; border-radius: 8px; background: rgba(255,255,255,.06); max-width: 100%; }
.rc-achips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.rc-achip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid transparent; font-size: 12px; cursor: pointer; }
.rc-achip input { width: 14px; height: 14px; margin: 0; }
.rc-achip.on { background: color-mix(in srgb, var(--accent, #c8963e) 22%, transparent); border-color: var(--accent, #c8963e); }
.rc-achip.hint { border: 1px dashed var(--accent, #c8963e); }
.rc-alist { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
@media (max-width: 480px) { .rc-alist { grid-template-columns: 1fr; } }
.rc-arow { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.04); cursor: pointer; }
.rc-arow.on { background: color-mix(in srgb, var(--accent, #c8963e) 18%, transparent); }

/* 📷 出货照片 + 🧾 配送售后 (2026-11-05) */
.dv-ship { display: flex; gap: 6px; margin-top: 6px; }
.ship-slot { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px; border-radius: 10px; border: 1px dashed var(--line); background: transparent; color: inherit; cursor: pointer; font: inherit; }
.ship-slot.has { border-style: solid; }
.ship-slot img, .ship-slot .ship-ic { width: 100%; height: 48px; border-radius: 8px; object-fit: cover; background: rgba(255,255,255,.06); display: grid; place-items: center; font-size: 20px; }
.ship-slot small { font-size: 11px; }

/* 🕯 加购配件图 (2026-11-05) */
.ap-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.ap-card { padding: 10px; }
.ap-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.ap-pics { display: flex; gap: 8px; }
.ap-fig { margin: 0; flex: 1; min-width: 0; text-align: center; }
.ap-fig img, .ap-none { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 10px; background: #fff; cursor: zoom-in; display: grid; place-items: center; }
.ap-note { flex: 1; min-width: 140px; }

/* 📄 PDF chips in 跟进 (2026-11-05) */
.fu-pdf { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 8px; background: rgba(255,255,255,.08); font-size: 22px; text-decoration: none; color: inherit; }
.fu-pdf small { font-size: 9px; line-height: 1.1; max-width: 60px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
