/* Layout: a showroom. Landing = tile wall of systems grouped by kind; each demo = one working screen under a slim sticky bar. */
:root {
  --forest: #0f3d2e;
  --forest-2: #164e3b;
  --cream: #f6f1e3;
  --gold: #f4d35e;
  --teal: #1f9e8a;
  --casque: #d32f1d;

  --bg: #f7f5ee;
  --surface: #ffffff;
  --surface-2: #eef1ea;
  --line: #dcdfd4;
  --fg: #1c2623;
  --fg-2: #4f5c56;
  --muted: #7a8680;
  --accent: var(--forest);
  --accent-fg: #f6f1e3;
  --link: #0f6b55;
  --good: #1f7a4d;
  --good-bg: #e2f2e8;
  --warn: #8a5a00;
  --warn-bg: #fbefc8;
  --bad: #b3261e;
  --bad-bg: #fbe3e0;
  --info-bg: #e3f1ee;
  --shadow: 0 1px 2px rgba(15, 61, 46, .06), 0 4px 16px rgba(15, 61, 46, .06);

  --f-display: "Sora", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  --f-body: "Figtree", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --f-hand: "Caveat", "Comic Sans MS", cursive;
  --r: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101814; --surface: #17221d; --surface-2: #1d2a24; --line: #2c3b34;
    --fg: #e9ede6; --fg-2: #b5c0b9; --muted: #8b9891;
    --accent: #3cc6b0; --accent-fg: #0c1a15; --link: #6fd9c6;
    --good: #6fd29b; --good-bg: #173226; --warn: #f4d35e; --warn-bg: #3a3212;
    --bad: #ff8a80; --bad-bg: #3d1d1a; --info-bg: #15302b;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #101814; --surface: #17221d; --surface-2: #1d2a24; --line: #2c3b34;
  --fg: #e9ede6; --fg-2: #b5c0b9; --muted: #8b9891;
  --accent: #3cc6b0; --accent-fg: #0c1a15; --link: #6fd9c6;
  --good: #6fd29b; --good-bg: #173226; --warn: #f4d35e; --warn-bg: #3a3212;
  --bad: #ff8a80; --bad-bg: #3d1d1a; --info-bg: #15302b;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font: 17px/1.55 var(--f-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.2; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: 1.3rem; font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0; }
a { color: var(--link); }
img { max-width: 100%; }
.num, td.num, .mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 16px; }

/* Two languages. body.lang-both shows 中文 on top and English under it. */
.bi { display: inline-flex; flex-direction: column; gap: 1px; line-height: 1.25; vertical-align: middle; }
body.lang-both .bi > .en { font-size: .84em; opacity: .8; font-weight: inherit; }
body.lang-zh .bi > .en, body.lang-en .bi > .zh { display: none; }
.inl .bi, .tile .for .bi, .pos-item .s .bi { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0 5px; }
.btn .bi, .tabs .bi, .choice .bi, .day .bi, .langs .bi { align-items: center; text-align: center; }

/* Top bar */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--forest); color: var(--cream); }
.topbar .wrap { display: flex; align-items: center; gap: 12px; min-height: 58px; flex-wrap: wrap; padding-block: 6px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; margin-right: auto; min-width: 0; }
.brand img { width: 38px; height: 38px; border-radius: 50%; background: var(--cream); }
.brand b { font-family: var(--f-display); font-weight: 800; letter-spacing: .02em; font-size: 1.02rem; }
.brand span { display: block; font-size: .72rem; opacity: .75; letter-spacing: .04em; }
.topbar .btn { border-color: rgba(246,241,227,.35); color: var(--cream); background: transparent; }
.topbar .btn:hover { background: rgba(246,241,227,.12); }
.langs { display: inline-flex; align-items: center; gap: 4px; background: rgba(246,241,227,.1); border-radius: 12px; padding: 4px; }
.langs svg { width: 20px; height: 20px; margin: 0 4px; opacity: .8; }
.langs button { font: 700 .95rem var(--f-body); color: var(--cream); background: transparent; border: 0; border-radius: 9px; padding: 8px 12px; min-height: 40px; cursor: pointer; }
.langs button[aria-pressed="true"] { background: var(--gold); color: #1c2623; }
@media (max-width: 680px) { .topbar { position: static; } }
@media (max-width: 560px) { .topbar .wrap { justify-content: space-between; gap: 8px; } .brand { flex: 1 1 100%; } .langs button { padding: 8px 9px; } .langs svg { display: none; } .topbar .btn.sm { padding: 6px 10px; } }

/* Buttons and inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 1rem/1.2 var(--f-body); padding: 10px 18px; min-height: 52px; border-radius: 12px; border-width: 2px; border-style: solid; border: 1px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--surface-2); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .tile:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn.primary { background: var(--accent); color: var(--accent-fg); border-color: transparent; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--bad); }
.btn.sm { padding: 6px 12px; min-height: 44px; font-size: .92rem; border-radius: 10px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.big { min-height: 64px; font-size: 1.15rem; width: 100%; }
.btn.primary.big { box-shadow: 0 3px 0 rgba(0,0,0,.25); }
label { display: grid; gap: 6px; font-size: .95rem; font-weight: 700; color: var(--fg); }
input, select, textarea { font: 400 1.05rem var(--f-body); padding: 10px 12px; min-height: 52px; border-radius: 10px; border: 2px solid var(--line); background: var(--surface); color: var(--fg); width: 100%; min-width: 0; }
textarea { resize: vertical; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.row > * { flex: 1 1 140px; min-width: 0; }
.row > .btn { flex: 0 0 auto; }
.stack { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }

/* Landing */
.hero { padding-block: 32px 22px; display: grid; gap: 16px; }
.hero p { max-width: 62ch; color: var(--fg-2); font-size: 1.1rem; }
.hero .kicker { font: 600 .75rem var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.howto { display: flex; flex-wrap: wrap; gap: 10px; font-size: 1rem; font-weight: 600; }
.howto > span { display: inline-flex; align-items: center; gap: 10px; background: var(--surface); border: 2px solid var(--line); border-radius: 14px; padding: 8px 14px 8px 8px; }
.howto b { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #1c2623; font: 800 1.1rem var(--f-display); flex: none; }
.group { padding-block: 18px; }
.group > h2 { font-size: .8rem; font-family: var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; padding-block: 8px; }
@media (max-width: 680px) { .tiles { grid-template-columns: minmax(0, 1fr); } }
.tile { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 8px 16px; align-content: start; padding: 20px; border-radius: 16px; background: var(--surface); border: 2px solid var(--line); color: var(--fg); text-decoration: none; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.tile:hover { transform: translateY(-2px); border-color: var(--teal); box-shadow: var(--shadow); }
.tile .cat { font: 600 .68rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.tile .ic { grid-row: span 5; width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; background: var(--forest); color: var(--gold); }
.tile .ic svg { width: 30px; height: 30px; }
.tile h3 { font-size: 1.2rem; }
.tile p { font-size: .98rem; color: var(--fg-2); }
.tile .for { font-size: .9rem; color: var(--fg-2); }
.tile .go { justify-self: start; margin-top: 6px; background: var(--forest); color: var(--cream); font-weight: 700; border-radius: 10px; padding: 8px 14px; display: inline-flex; align-items: center; gap: 6px; }
.tile .price { font: 600 .78rem var(--f-mono); color: var(--teal); }
.cta-band { margin-block: 28px 40px; padding: 22px; border-radius: 14px; background: var(--forest); color: var(--cream); display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.cta-band p { max-width: 60ch; opacity: .9; }
.cta-band .btn { background: var(--gold); color: #1c2623; border-color: transparent; }
footer { padding-block: 24px 40px; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); }

/* Demo shell */
.demo-head { padding-block: 16px 4px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }
.demo-title { display: flex; gap: 14px; align-items: center; padding-block: 12px; }
.demo-title .ic { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--forest); color: var(--gold); flex: none; }
.demo-title .ic svg { width: 28px; height: 28px; }
.demo-title h1 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.demo-title p { color: var(--fg-2); font-size: 1rem; }
.try { background: var(--warn-bg); border: 2px solid var(--gold); border-radius: 14px; padding: 14px 18px; color: var(--fg); }
.try-h { display: block; font: 800 1.1rem var(--f-display); margin-bottom: 6px; }
.try ol { margin: 0; padding-left: 1.6em; display: grid; gap: 8px; font-size: 1.02rem; font-weight: 600; }
.try li::marker { font-weight: 800; }
.chip { display: inline-flex; align-items: center; gap: 4px; font: 700 .85rem/1.15 var(--f-body); padding: 5px 10px; border-radius: 99px; background: var(--surface-2); color: var(--fg-2); letter-spacing: .02em; white-space: nowrap; }
.chip.good { background: var(--good-bg); color: var(--good); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.bad { background: var(--bad-bg); color: var(--bad); }
.chip.info { background: var(--info-bg); color: var(--link); }
.sample-note { font-size: .9rem; color: var(--muted); padding-block: 8px 12px; }
.demo-body { padding-bottom: 40px; }

.tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs button { flex: 1 1 140px; font: 700 1.02rem var(--f-body); background: var(--surface); border: 2px solid var(--line); border-radius: 12px; padding: 10px 14px; min-height: 60px; color: var(--fg-2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.tabs button[aria-selected="true"] { color: var(--accent-fg); background: var(--accent); border-color: transparent; }
.tabs .chip { background: var(--gold); color: #1c2623; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.choice { font: 700 1rem var(--f-body); background: var(--surface); color: var(--fg); border: 2px solid var(--line); border-radius: 12px; padding: 10px; min-height: 60px; cursor: pointer; display: grid; place-items: center; }
.choice[aria-pressed="true"] { border-color: var(--accent); background: var(--info-bg); box-shadow: inset 0 0 0 2px var(--accent); }
.field-h { font-weight: 700; font-size: .95rem; margin-bottom: 6px; }

.panel { background: var(--surface); border: 2px solid var(--line); border-radius: 14px; padding: 18px; min-width: 0; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.grid2.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 860px) { .grid2, .grid2.even { grid-template-columns: minmax(0, 1fr); } }

.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 1rem; }
th { text-align: left; font: 700 .85rem var(--f-body); color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; }
tr.low td { background: var(--warn-bg); }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: var(--surface-2); }

.alert { padding: 12px 16px; border-radius: 12px; font-size: 1rem; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.alert.warn { background: var(--warn-bg); color: var(--warn); }
.alert.bad { background: var(--bad-bg); color: var(--bad); }
.alert.good { background: var(--good-bg); color: var(--good); }
.alert.info { background: var(--info-bg); color: var(--fg); }

/* Stat tiles */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.stat { background: var(--surface); border: 2px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 4px; }
.stat .k { font-size: .92rem; color: var(--fg-2); font-weight: 700; }
.stat .v { font: 700 1.7rem var(--f-display); font-variant-numeric: tabular-nums; }
.stat .s { font-size: .9rem; color: var(--fg-2); }

/* Modal + toast */
.scrim { position: fixed; inset: 0; background: rgba(10, 20, 16, .55); display: grid; place-items: center; padding: 16px; z-index: 50; }
.modal { background: var(--surface); color: var(--fg); border-radius: 18px; width: min(600px, 100%); max-height: 90vh; overflow: auto; padding: 22px; display: grid; gap: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal .actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 700; font-size: 1.05rem; z-index: 60; text-align: center; box-shadow: var(--shadow); max-width: calc(100% - 32px); }

/* POS */
.pos-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pos-item { text-align: left; border: 2px solid var(--line); background: var(--surface); color: var(--fg); border-radius: 12px; padding: 12px; min-height: 96px; cursor: pointer; display: grid; gap: 4px; font: inherit; }
.pos-item:hover { border-color: var(--teal); }
.pos-item b { font-size: 1rem; line-height: 1.25; }
.pos-item .p { font: 700 1rem var(--f-mono); color: var(--link); }
.pos-item .s { font-size: .85rem; color: var(--muted); }
.pos-item.low { border-color: var(--gold); }
.pos-item[disabled] { opacity: .45; cursor: not-allowed; }
.cart-line { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 1rem; }
.cart-line .n { flex: 1; min-width: 0; }
.qty { display: inline-flex; align-items: center; gap: 4px; }
.qty { gap: 8px; }
.qty button { width: 44px; height: 44px; font-size: 1.3rem; border-radius: 10px; border: 2px solid var(--line); background: var(--surface-2); color: var(--fg); cursor: pointer; font-weight: 700; }
.total-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; font: 800 1.5rem var(--f-display); padding-top: 10px; }

/* Kanban */
.board { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.col { background: var(--surface-2); border-radius: var(--r); padding: 10px; display: grid; gap: 8px; align-content: start; min-height: 120px; }
.col h3 { font-size: 1rem; display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--fg); }
.card { background: var(--surface); border: 2px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 6px; cursor: pointer; text-align: left; font: inherit; color: var(--fg); }
.card:hover { border-color: var(--teal); }
.plate { font: 700 .95rem var(--f-mono); background: var(--fg); color: var(--bg); padding: 2px 6px; border-radius: 4px; justify-self: start; letter-spacing: .05em; }

/* Documents (quote / invoice) */
.doc { background: #fff; color: #1c2623; border: 1px solid var(--line); border-radius: 6px; padding: 26px; font-size: .86rem; display: grid; gap: 14px; }
.doc .dh { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-bottom: 3px solid #0f3d2e; padding-bottom: 12px; }
.doc .dh h2 { font-size: 1.4rem; color: #0f3d2e; letter-spacing: .06em; }
.doc table th { color: #5d6964; border-color: #dcdfd4; }
.doc table td { border-color: #e6e8e0; }
.doc .tot { justify-self: end; min-width: 220px; display: grid; gap: 4px; }
.doc .tot div { display: flex; justify-content: space-between; gap: 20px; }
.doc .tot .g { font-weight: 800; font-size: 1.05rem; border-top: 2px solid #0f3d2e; padding-top: 6px; }
.doc .co { display: flex; gap: 10px; align-items: center; }
.doc .co img { width: 44px; height: 44px; }

/* Scanned form */
.scan-stage { position: relative; border-radius: 8px; overflow: hidden; background: #d9d6cc; padding: 18px; }
.paper { background: #fdfcf7; color: #222; transform: rotate(-1.2deg); box-shadow: 0 6px 18px rgba(0,0,0,.18); padding: 18px 22px; font-size: .82rem; font-family: Georgia, serif; display: grid; gap: 8px; }
.paper h4 { margin: 0; text-align: center; font: 700 .95rem Georgia, serif; text-transform: uppercase; letter-spacing: .06em; }
.paper .fl { display: grid; grid-template-columns: 130px 1fr; gap: 8px; align-items: end; border-bottom: 1px dotted #999; padding-bottom: 2px; }
.paper .hw { font-family: var(--f-hand); font-size: 1.35rem; color: #1a3a8a; line-height: 1; }
.paper .box { display: inline-block; width: 13px; height: 13px; border: 1px solid #444; margin-right: 4px; vertical-align: -2px; text-align: center; line-height: 11px; font-family: var(--f-hand); color: #1a3a8a; font-size: 1rem; }
.scanline { position: absolute; left: 0; right: 0; height: 3px; background: var(--teal); box-shadow: 0 0 18px 6px rgba(60,198,176,.55); top: 0; animation: scan 1.6s ease-in-out infinite alternate; }
@keyframes scan { from { top: 4%; } to { top: 94%; } }
.field-out { display: grid; grid-template-columns: minmax(110px, 34%) minmax(0, 1fr) auto; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 1rem; align-items: center; }
.field-out .k { color: var(--fg-2); font-size: .92rem; font-weight: 700; }
.pop { animation: pop .35s ease; }
@keyframes pop { from { background: var(--info-bg); } to { background: transparent; } }

/* Booking */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.slot { padding: 10px 6px; min-height: 54px; border-radius: 10px; border: 2px solid var(--line); background: var(--surface); color: var(--fg); font: 700 1.05rem var(--f-mono); cursor: pointer; }
.slot:hover:not([disabled]) { border-color: var(--teal); }
.slot[disabled] { background: var(--surface-2); color: var(--muted); text-decoration: line-through; cursor: not-allowed; }
.slot.sel { background: var(--accent); color: var(--accent-fg); border-color: transparent; }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.day { flex: 0 0 auto; border: 2px solid var(--line); background: var(--surface); color: var(--fg); border-radius: 12px; padding: 8px 12px; display: grid; justify-items: center; gap: 2px; cursor: pointer; text-align: center; font: inherit; min-width: 64px; }
.day b { display: block; font: 800 1.4rem var(--f-display); }
.day.sel { background: var(--accent); color: var(--accent-fg); border-color: transparent; }
.day[disabled] { opacity: .45; cursor: not-allowed; }

/* Phone + chat */
.phone { max-width: 380px; width: 100%; margin: 0 auto; border-radius: 28px; border: 10px solid #1c2623; background: #e9e1d4; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto auto; height: 640px; }
.phone .ph { background: #0f3d2e; color: #f6f1e3; padding: 10px 14px; display: flex; gap: 10px; align-items: center; }
.phone .ph img { width: 32px; height: 32px; border-radius: 50%; background: #f6f1e3; }
.phone .ph small { display: block; opacity: .7; font-size: .7rem; }
.msgs { overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.msg { max-width: 86%; padding: 8px 11px; border-radius: 10px; font-size: .98rem; line-height: 1.35; white-space: pre-line; color: #1c2623; box-shadow: 0 1px 1px rgba(0,0,0,.1); }
.msg.bot { background: #fff; align-self: flex-start; border-top-left-radius: 2px; }
.msg.me { background: #d4f5c9; align-self: flex-end; border-top-right-radius: 2px; }
.msg .tm { display: block; text-align: right; font-size: .66rem; color: #7a8680; margin-top: 2px; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 10px; background: #e9e1d4; }
.quick button { flex: none; border: 2px solid #0f3d2e; color: #0f3d2e; background: #fff; border-radius: 99px; padding: 6px 12px; min-height: 40px; font: 700 .9rem var(--f-body); cursor: pointer; }
.composer { display: flex; gap: 6px; padding: 8px; background: #f0ebe2; }
.composer input { border-radius: 99px; background: #fff; color: #1c2623; border-color: #d6cfc3; }
.composer button { border-radius: 99px; border: 0; background: #0f3d2e; color: #f6f1e3; padding: 0 16px; font-weight: 700; font-size: 1rem; cursor: pointer; }
.wa-preview { background: #e9e1d4; border-radius: 10px; padding: 12px; }
.wa-preview .msg { max-width: 100%; }

/* Chart */
.chart { width: 100%; height: auto; display: block; }
.chart text { fill: var(--fg-2); font: 13px var(--f-body); }
.chart .bar { fill: var(--teal); pointer-events: none; }
.chart .bar.today { fill: var(--accent); }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .hit { fill: transparent; cursor: pointer; }
.chart .hit:hover + .bar, .chart .hit:focus + .bar { opacity: .75; }
.tip { position: absolute; pointer-events: none; background: var(--fg); color: var(--bg); font: 600 .78rem var(--f-mono); padding: 5px 8px; border-radius: 6px; transform: translate(-50%, -110%); white-space: nowrap; }

.steps { display: grid; gap: 8px; }
.step { display: flex; gap: 10px; align-items: center; font-size: 1rem; color: var(--muted); }
.step .dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: .7rem; flex: none; }
.step.done { color: var(--fg); }
.step.done .dot { background: var(--good); border-color: var(--good); color: #fff; }
.step.run .dot { border-color: var(--teal); border-top-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.qr { width: 130px; height: 130px; background: #fff; padding: 6px; border-radius: 6px; }
.qr svg, .qr img { width: 100%; height: 100%; display: block; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}
#print-area { display: none; }
@media print {
  body { background: #fff; }
  body.print-mode > *:not(#print-area) { display: none !important; }
  body.print-mode #print-area { display: block; }
  #print-area .doc { border: 0; }
}
.nowrap { white-space: nowrap; }
