:root {
  --paper: #f7ead5;
  --paper-2: #fff8ea;
  --paper-3: #efdcc2;
  --ink: #3f2c22;
  --ink-soft: #796052;
  --muted: #a68d78;
  --line: rgba(95, 63, 42, .16);
  --red: #b95e43;
  --red-deep: #8f3f2e;
  --gold: #c9963f;
  --gold-bright: #e4b55d;
  --teal: #2f6f68;
  --teal-deep: #1e514d;
  --wood: #7c543b;
  --shadow: 0 16px 40px rgba(87, 57, 37, .12);
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 80% 4%, rgba(205, 154, 77, .16), transparent 32%),
    radial-gradient(circle at 18% 24%, rgba(69, 132, 115, .08), transparent 28%),
    linear-gradient(135deg, #f8ecda 0%, #f3e2c9 52%, #eed9bc 100%);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .45;
  background-image:
    linear-gradient(rgba(112, 79, 52, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 79, 52, .035) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 84%);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
[hidden] { display: none !important; }

.wd-shell { position: relative; z-index: 1; width: min(1420px, 100%); margin: 0 auto; padding: 20px 26px 24px; }
.wd-topbar { display: flex; align-items: center; gap: 16px; min-height: 42px; flex-wrap: wrap; }
.wd-brand { display: flex; align-items: center; gap: 9px; min-width: 0; }
.wd-seal { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff8e9; background: var(--red); font-weight: 900; font-size: 16px; box-shadow: inset 0 0 0 2px rgba(255,248,233,.3), 0 4px 10px rgba(140,62,45,.25); }
.wd-brand b { font-size: 17px; letter-spacing: .06em; }
.wd-brand i { font-size: 8px; letter-spacing: .18em; color: var(--muted); font-style: normal; }
.wd-brand em { margin-left: 8px; padding-left: 10px; border-left: 1px solid var(--line); font-style: normal; font-size: 9px; color: var(--muted); }
.wd-top-actions { margin-left: auto; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.wd-pill { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,248,234,.6); padding: 0 10px; font-size: 10px; color: var(--ink-soft); }
.wd-coin-pill i { font-style: normal; color: var(--gold); font-weight: 700; }
.wd-coin-pill b { color: var(--ink); font-weight: 600; }
.wd-top-btn { border: 1px solid var(--line); border-radius: 8px; background: rgba(255,248,234,.62); color: var(--ink-soft); padding: 7px 10px; font-size: 10px; cursor: pointer; transition: .18s; }
.wd-top-btn:hover { border-color: rgba(185,94,67,.35); color: var(--red-deep); background: #fff8ea; }

.wd-main { display: grid; grid-template-columns: minmax(0, 1fr) 348px; gap: 18px; margin-top: 18px; align-items: start; }
.wd-kitchen { min-width: 0; }
.wd-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 4px 0 14px; }
.wd-kicker { color: var(--gold); font-size: 9px; letter-spacing: .24em; font-weight: 600; }
.wd-title-row h1 { margin: 5px 0 0; font-family: "Noto Serif SC", "Songti SC", "SimSun", serif; font-size: clamp(30px, 4.5vw, 46px); line-height: 1.1; letter-spacing: .02em; color: var(--ink); }
.wd-title-row h1 span { display: block; margin-top: 7px; font-family: "Microsoft YaHei", "PingFang SC", sans-serif; font-size: 10px; color: var(--muted); letter-spacing: .08em; font-weight: 400; }
.wd-shift { flex: 0 0 auto; border: 1px solid rgba(47,111,104,.24); border-radius: 999px; background: rgba(47,111,104,.08); color: var(--teal-deep); padding: 7px 12px; font-size: 10px; }

.wd-mobile-mascot { display: none; }
.wd-order-rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-bottom: 11px; min-height: 82px; }
.wd-order-empty { grid-column: 1 / -1; min-height: 82px; border: 1px dashed rgba(95,63,42,.18); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: rgba(89,66,51,.45); font-size: 11px; background: rgba(255,248,234,.3); }
.wd-order-card { position: relative; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,248,234,.78); padding: 9px 10px 8px; cursor: pointer; transition: .18s; overflow: hidden; text-align: left; box-shadow: 0 5px 14px rgba(87,57,37,.04); }
.wd-order-card:hover { transform: translateY(-1px); border-color: rgba(185,94,67,.3); }
.wd-order-card.is-active { border-color: rgba(185,94,67,.55); background: #fff9ea; box-shadow: 0 0 0 2px rgba(185,94,67,.12), 0 8px 20px rgba(87,57,37,.08); }
.wd-order-card.is-urgent { animation: wd-urgent 1.2s ease-in-out infinite; }
.wd-order-card.is-hidden { border-color: rgba(201,150,63,.52); background: linear-gradient(145deg, #fff9e8, #f7e8c9); box-shadow: 0 0 0 2px rgba(201,150,63,.12), 0 8px 20px rgba(87,57,37,.07); }
.wd-hidden-mark { display: inline-block; margin-left: 4px; border-radius: 3px; background: rgba(201,150,63,.16); color: #a27624; padding: 1px 4px; font-size: 6px; font-style: normal; vertical-align: 1px; letter-spacing: .04em; }
.wd-season-mark { display: inline-block; margin-left: 3px; border-radius: 3px; background: rgba(47,111,104,.1); color: var(--teal-deep); padding: 1px 3px; font-size: 6px; font-style: normal; vertical-align: 1px; }
.wd-portion-progress { display: flex; justify-content: space-between; gap: 6px; margin-top: 4px; color: var(--gold); font-size: 7px; }
.wd-portion-progress b { color: var(--red-deep); font-weight: 600; }
@keyframes wd-urgent { 50% { border-color: rgba(185,94,67,.65); background: #fff1e4; } }
.wd-order-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wd-customer { display: flex; align-items: center; gap: 6px; min-width: 0; }
.wd-customer-avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-3); background: color-mix(in srgb, var(--customer-color, #d8c3a5) 20%, #f7ead5); font-size: 12px; flex: 0 0 auto; overflow: hidden; border: 2px solid var(--customer-color, var(--paper-3)); box-shadow: 0 2px 4px rgba(63,44,34,.08); }
.wd-customer-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; display: block; }
.wd-active-portrait { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; border: 2px solid var(--customer-color, var(--paper-3)); background: var(--paper-3); background: color-mix(in srgb, var(--customer-color, #d8c3a5) 18%, #f7ead5); }
.wd-active-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; display: block; }
.wd-customer-name { font-size: 10px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wd-order-price { color: var(--gold); font-size: 10px; font-weight: 600; }
.wd-order-dish { display: flex; align-items: center; gap: 7px; margin-top: 6px; }
.wd-order-emoji { font-size: 18px; line-height: 1; }
.wd-order-dish b { font-size: 11px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wd-order-dish small { margin-left: auto; padding: 2px 5px; border-radius: 4px; background: rgba(201,150,63,.12); color: var(--gold); font-size: 7px; flex: 0 0 auto; }
.wd-patience { margin-top: 6px; height: 4px; border-radius: 999px; background: rgba(95,63,42,.1); overflow: hidden; }
.wd-patience i { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, #6c9e82, #c9963f); transition: width .2s linear; }
.wd-patience.is-low i { background: linear-gradient(90deg, #ca7a4f, #b95e43); }

.wd-stations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.wd-station { position: relative; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,248,234,.86); padding: 13px 12px 10px; box-shadow: var(--shadow); min-width: 0; overflow: hidden; }
.wd-station::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; opacity: .65; }
.wd-station-bowl::after { background: var(--red); }
.wd-station-pot::after { background: var(--gold); }
.wd-station-wok::after { background: var(--teal); }
.wd-station.is-hint { animation: wd-hint 1s ease-in-out 2; }
@keyframes wd-hint { 50% { box-shadow: 0 0 0 3px rgba(201,150,63,.26), var(--shadow); } }
.wd-station-head { display: flex; align-items: center; gap: 8px; }
.wd-station-icon { width: 31px; height: 31px; border-radius: 9px; display: grid; place-items: center; background: var(--paper-3); font-size: 17px; flex: 0 0 auto; }
.wd-station-head small { display: block; font-size: 7px; letter-spacing: .16em; color: var(--muted); }
.wd-station-head h2 { margin: 1px 0 0; font-family: "Noto Serif SC", "Songti SC", serif; font-size: 16px; font-weight: 600; letter-spacing: .03em; }
.wd-station-status { margin-left: auto; border-radius: 999px; padding: 3px 6px; background: rgba(95,63,42,.06); color: var(--muted); font-size: 8px; white-space: nowrap; }
.wd-station-status.is-ready { color: var(--teal-deep); background: rgba(47,111,104,.1); }
.wd-station-desc { min-height: 30px; margin: 8px 0 9px; color: var(--muted); font-size: 9px; line-height: 1.6; }
.wd-step-chips { display: flex; flex-wrap: wrap; gap: 4px; min-height: 22px; }
.wd-step-chip { border-radius: 4px; padding: 3px 6px; background: rgba(95,63,42,.06); color: rgba(95,63,42,.38); font-size: 8px; }
.wd-step-chip.is-done { background: rgba(47,111,104,.1); color: var(--teal-deep); }
.wd-step-chip.is-next { background: rgba(201,150,63,.13); color: var(--gold); box-shadow: inset 0 0 0 1px rgba(201,150,63,.25); }
.wd-station-actions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.wd-station-actions button { border: 1px solid rgba(95,63,42,.16); border-radius: 6px; background: #fff9ec; color: var(--ink-soft); padding: 6px 7px; font-size: 8px; cursor: pointer; transition: .15s; }
.wd-station-actions button:hover:not(:disabled) { border-color: rgba(185,94,67,.4); color: var(--red-deep); background: #fff; }
.wd-station-actions button:disabled { opacity: .38; cursor: default; }
.wd-station-actions button.wd-action-hot { background: var(--red); border-color: var(--red); color: #fff8e9; }
.wd-station-actions button.wd-action-hot:hover:not(:disabled) { background: var(--red-deep); color: #fff; }
.wd-station-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 9px; padding-top: 7px; border-top: 1px dashed rgba(95,63,42,.13); }
.wd-station-foot span { color: var(--muted); font-size: 8px; line-height: 1.4; min-width: 0; }
.wd-serve-btn { flex: 0 0 auto; border: 1px solid rgba(47,111,104,.28); border-radius: 6px; background: rgba(47,111,104,.09); color: var(--teal-deep); padding: 5px 8px; font-size: 8px; cursor: pointer; }
.wd-serve-btn:disabled { opacity: .35; cursor: default; }

.wd-gauge { position: relative; height: 12px; margin: 9px 0 4px; border-radius: 999px; background: rgba(95,63,42,.09); overflow: hidden; }
.wd-gauge-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, #e0a54e, #c75c40); border-radius: inherit; transition: width .06s linear; }
.wd-gauge-target { position: absolute; top: 0; bottom: 0; left: 40%; width: 20%; background: rgba(47,111,104,.28); border-left: 1px solid rgba(47,111,104,.55); border-right: 1px solid rgba(47,111,104,.55); }
.wd-gauge-label { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); font-size: 7px; color: rgba(255,248,234,.9); z-index: 2; }
.wd-toss-meter { position: relative; height: 16px; margin: 8px 0 4px; border-radius: 999px; background: rgba(95,63,42,.08); overflow: hidden; }
.wd-toss-meter span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #e0b257, #b95e43); transition: width .1s; }
.wd-toss-meter em { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-size: 8px; color: var(--ink-soft); font-weight: 600; }

.wd-kitchen-foot { display: flex; align-items: center; gap: 14px; margin-top: 11px; }
.wd-day-progress { flex: 1; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,248,234,.55); padding: 8px 10px; }
.wd-day-progress-head { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 8px; margin-bottom: 5px; }
.wd-day-progress-head b { color: var(--gold); font-weight: 600; }
.wd-progress-track { height: 4px; border-radius: 999px; background: rgba(95,63,42,.09); overflow: hidden; }
.wd-progress-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--red)); transition: width .3s; }
.wd-ghost-btn { border: 1px solid rgba(185,94,67,.28); border-radius: 8px; background: rgba(255,248,234,.58); color: var(--red-deep); padding: 9px 12px; font-size: 9px; cursor: pointer; }
.wd-ghost-btn:hover { background: #fff8ea; }

.wd-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.wd-mascot-card { position: relative; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(155deg, rgba(255,249,235,.88), rgba(239,220,194,.74)); padding: 10px; box-shadow: var(--shadow); overflow: hidden; }
.wd-mascot-stage { position: relative; display: flex; justify-content: center; min-height: 185px; }
.wd-mascot-glow { position: absolute; left: 50%; top: 48%; width: 200px; height: 200px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(201,150,63,.18), transparent 65%); }
.wd-mascot-stage img { position: relative; width: 178px; height: 178px; object-fit: contain; filter: drop-shadow(0 12px 14px rgba(63,44,34,.16)); transform-origin: 50% 85%; animation: wd-breathe 4s ease-in-out infinite; }
@keyframes wd-breathe { 50% { transform: translateY(-3px) rotate(-.4deg); } }
.wd-mascot-stage.is-happy img { animation: wd-hop .6s ease-in-out 2; }
@keyframes wd-hop { 50% { transform: translateY(-9px) rotate(1.5deg); } }
.wd-mascot-stage.is-worried img { animation: wd-worry .45s ease-in-out infinite; }
@keyframes wd-worry { 50% { transform: translateX(-2px) rotate(-1deg); } }
.wd-mascot-emote { position: absolute; left: 16px; top: 20px; z-index: 3; min-width: 28px; height: 28px; display: none; align-items: center; justify-content: center; border-radius: 50% 50% 50% 4px; background: #fffaf0; color: var(--red-deep); font-size: 16px; box-shadow: 0 5px 12px rgba(63,44,34,.13); }
.wd-mascot-emote.is-show { display: flex; animation: wd-emote-pop .7s ease-out both; }
@keyframes wd-emote-pop { 0% { transform: scale(.4) rotate(-10deg); opacity: 0; } 55% { transform: scale(1.12) rotate(4deg); } 100% { transform: scale(1) rotate(0); opacity: 1; } }
.wd-mascot-stage.is-action-fan img { animation: wd-fan .65s ease-in-out 2; }
.wd-mascot-stage.is-action-toss img { animation: wd-toss .5s ease-in-out 2; }
.wd-mascot-stage.is-action-serve img { animation: wd-bow .75s ease-in-out 1; }
.wd-mascot-stage.is-action-help img { animation: wd-help .8s ease-in-out 2; }
.wd-mascot-stage.is-action-cheer img { animation: wd-cheer .55s ease-in-out 2; }
.wd-mascot-stage.is-action-plate img { animation: wd-plate .7s ease-in-out 1; }
.wd-mascot-stage.is-action-worry img { animation: wd-worry .4s ease-in-out 2; }
.wd-mascot-stage.is-action-wave img { animation: wd-wave .7s ease-in-out 2; }
@keyframes wd-plate { 50% { transform: translateY(-5px) rotate(-2deg) scale(1.03); } }
@keyframes wd-wave { 25% { transform: rotate(-5deg); } 75% { transform: rotate(5deg); } }
@keyframes wd-fan { 50% { transform: translateY(-2px) rotate(-4deg); } }
@keyframes wd-toss { 50% { transform: translateY(-10px) rotate(3deg); } }
@keyframes wd-bow { 50% { transform: translateY(3px) scale(.97); } }
@keyframes wd-help { 50% { transform: translateY(-5px) rotate(2deg); filter: drop-shadow(0 0 18px rgba(228,181,93,.7)); } }
@keyframes wd-cheer { 25% { transform: translateX(-4px) rotate(-2deg); } 75% { transform: translateX(4px) rotate(2deg); } }
.wd-mascot-mood { position: absolute; right: 5px; bottom: 12px; border: 1px solid rgba(47,111,104,.18); border-radius: 999px; background: rgba(255,248,234,.82); padding: 4px 8px; color: var(--teal-deep); font-size: 8px; }
.wd-mascot-copy small { color: var(--gold); font-size: 8px; letter-spacing: .12em; }
.wd-mascot-copy p { position: relative; margin: 6px 0 2px; border-radius: 10px 10px 10px 3px; background: rgba(255,250,239,.84); padding: 8px 9px; color: var(--ink-soft); font-size: 9px; line-height: 1.7; min-height: 44px; }

.wd-panel { border: 1px solid var(--line); border-radius: 12px; background: rgba(255,248,234,.68); padding: 10px; }
.wd-panel-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.wd-panel-title span { font-size: 10px; font-weight: 600; letter-spacing: .04em; }
.wd-panel-title b { color: var(--muted); font-size: 7px; font-weight: 400; letter-spacing: .12em; }
.wd-active-order { min-height: 43px; }
.wd-active-empty { color: var(--muted); font-size: 9px; line-height: 1.7; }
.wd-reaction { margin-top: 7px; border: 1px solid rgba(201,150,63,.2); border-radius: 8px 8px 8px 3px; background: rgba(255,250,239,.86); padding: 5px 7px; color: var(--ink-soft); font-size: 8px; line-height: 1.5; animation: wd-reaction-in .28s ease-out; }
@keyframes wd-reaction-in { from { transform: translateY(3px); opacity: 0; } }
.wd-reaction b { color: var(--gold); }
.wd-active-main { display: flex; align-items: center; gap: 8px; }
.wd-active-main .wd-order-emoji { font-size: 24px; }
.wd-active-main b { display: block; font-size: 11px; }
.wd-active-main small { color: var(--muted); font-size: 8px; }
.wd-active-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; color: var(--muted); font-size: 8px; }
.wd-active-meta b { color: var(--red); font-weight: 600; }
.wd-crew-list { display: flex; flex-direction: column; gap: 4px; }
.wd-crew-row { display: flex; align-items: center; gap: 6px; border-radius: 5px; background: rgba(95,63,42,.04); padding: 4px 6px; color: var(--ink-soft); font-size: 8px; }
.wd-crew-row b { color: var(--ink); font-weight: 600; }
.wd-crew-row small { margin-left: auto; color: var(--gold); font-size: 7px; }
.wd-crew-row.is-offline { opacity: .45; }
.wd-crew-dot { width: 5px; height: 5px; border-radius: 50%; background: #5c9b7c; }
.wd-crew-row.is-offline .wd-crew-dot { background: var(--muted); }
.wd-room-ai { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-top: 6px; color: var(--muted); font-size: 7px; }
.wd-room-ai code { border-radius: 3px; background: rgba(95,63,42,.06); padding: 1px 4px; color: var(--gold); font-size: 8px; letter-spacing: .08em; }
.wd-room-ai small { color: rgba(95,63,42,.32); font-family: ui-monospace, Consolas, monospace; font-size: 6px; }
.wd-crew-chat { display: flex; flex-direction: column; gap: 3px; min-height: 20px; max-height: 64px; overflow: hidden; margin-top: 6px; border-top: 1px dashed rgba(95,63,42,.1); padding-top: 5px; }
.wd-crew-chat-row { color: var(--muted); font-size: 8px; line-height: 1.45; }
.wd-crew-chat-row b { color: var(--ink-soft); font-weight: 600; }
.wd-crew-chat-empty { color: var(--muted); font-size: 8px; }
.wd-crew-chat-form { display: flex; gap: 4px; margin-top: 5px; }
.wd-crew-chat-form input { flex: 1; min-width: 0; height: 24px; border: 1px solid var(--line); border-radius: 4px; background: #fffaf0; color: var(--ink); padding: 0 5px; font-size: 8px; outline: none; }
.wd-crew-chat-form button { border: 1px solid rgba(47,111,104,.2); border-radius: 4px; background: rgba(47,111,104,.07); color: var(--teal-deep); padding: 0 7px; font-size: 8px; cursor: pointer; }
.wd-ai-panel.is-external { border-color: rgba(47,111,104,.28); box-shadow: inset 0 0 0 1px rgba(47,111,104,.05); }
.wd-ai-hint { margin: 0 0 7px; color: var(--muted); font-size: 8px; line-height: 1.6; }
.wd-ai-session { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 8px; }
.wd-ai-session code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-radius: 4px; background: rgba(95,63,42,.06); padding: 4px 5px; color: var(--ink-soft); font-size: 8px; }
.wd-ai-session button { border: 1px solid var(--line); border-radius: 4px; background: transparent; color: var(--ink-soft); padding: 3px 5px; font-size: 7px; cursor: pointer; }
.wd-ai-actions { display: flex; gap: 5px; margin-top: 7px; }
.wd-ai-actions button { flex: 1; border: 1px solid rgba(185,94,67,.2); border-radius: 5px; background: rgba(255,248,234,.7); color: var(--red-deep); padding: 5px; font-size: 8px; cursor: pointer; }
.wd-ai-endpoint { margin-top: 6px; color: rgba(95,63,42,.32); font-family: ui-monospace, Consolas, monospace; font-size: 7px; }
.wd-log { display: flex; flex-direction: column; gap: 5px; max-height: 90px; overflow: hidden; }
.wd-log-empty { color: var(--muted); font-size: 9px; }
.wd-log-row { display: flex; gap: 6px; color: var(--muted); font-size: 8px; line-height: 1.5; }
.wd-log-row i { font-style: normal; color: var(--gold); flex: 0 0 auto; }
.wd-side-foot { display: flex; justify-content: space-between; gap: 8px; color: rgba(95,63,42,.35); font-size: 7px; letter-spacing: .06em; }

.wd-online-indicator { display: inline-flex; align-items: center; gap: 4px; border: 1px solid rgba(47,111,104,.24); border-radius: 999px; background: rgba(47,111,104,.08); color: var(--teal-deep); padding: 5px 8px; font-size: 8px; cursor: pointer; }
.wd-online-indicator::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #5c9b7c; box-shadow: 0 0 0 3px rgba(92,155,124,.12); }
.wd-online-modal { position: fixed; inset: 0; z-index: 88; display: grid; place-items: center; background: rgba(61,39,28,.38); backdrop-filter: blur(7px); padding: 18px; }
.wd-online-card { position: relative; width: min(520px, 100%); max-height: 90vh; overflow-y: auto; border: 1px solid rgba(95,63,42,.18); border-radius: 18px; background: var(--paper-2); padding: 24px; box-shadow: 0 30px 70px rgba(58,36,25,.25); }
.wd-online-card h2 { margin: 7px 0 8px; font-family: "Noto Serif SC", "Songti SC", serif; font-size: 30px; font-weight: 600; }
.wd-online-lead { margin: 0 0 16px; color: var(--ink-soft); font-size: 10px; line-height: 1.8; }
.wd-online-name { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--muted); font-size: 9px; }
.wd-online-name input { flex: 1; height: 32px; border: 1px solid var(--line); border-radius: 6px; background: #fffaf0; color: var(--ink); padding: 0 8px; font-size: 10px; outline: none; }
.wd-online-name input:focus { border-color: rgba(185,94,67,.4); }
.wd-online-buttons { display: flex; gap: 7px; margin-top: 10px; }
.wd-online-buttons .wd-primary-btn { flex: 1; }
.wd-online-buttons .wd-ghost-btn { flex: 0 0 auto; }
.wd-online-join { display: flex; gap: 6px; margin-top: 9px; }
.wd-online-join input { flex: 1; min-width: 0; height: 33px; border: 1px solid var(--line); border-radius: 6px; background: #fffaf0; color: var(--ink); padding: 0 8px; text-transform: uppercase; letter-spacing: .14em; font-size: 11px; outline: none; }
.wd-online-join input:focus { border-color: rgba(185,94,67,.4); }
.wd-online-join button { border: 1px solid rgba(185,94,67,.28); border-radius: 6px; background: rgba(185,94,67,.08); color: var(--red-deep); padding: 0 12px; font-size: 9px; cursor: pointer; }
.wd-online-list-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 11px; color: var(--muted); font-size: 8px; }
.wd-online-list-head button { border: 1px solid var(--line); border-radius: 4px; background: transparent; color: var(--ink-soft); padding: 3px 6px; font-size: 7px; cursor: pointer; }
.wd-online-rooms { display: flex; flex-direction: column; gap: 4px; max-height: 120px; overflow-y: auto; margin-top: 5px; }
.wd-online-empty { border: 1px dashed rgba(95,63,42,.13); border-radius: 6px; padding: 7px; color: var(--muted); font-size: 8px; }
.wd-online-room-row { display: flex; align-items: center; gap: 6px; width: 100%; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,248,234,.56); padding: 5px 7px; color: var(--ink-soft); font-size: 8px; cursor: pointer; text-align: left; }
.wd-online-room-row:hover { border-color: rgba(185,94,67,.3); background: #fffaf0; }
.wd-online-room-row b { color: var(--gold); letter-spacing: .1em; font-size: 10px; }
.wd-online-room-row small { margin-left: auto; color: var(--muted); font-size: 7px; }
.wd-online-room-row.is-playing { opacity: .55; cursor: default; }
.wd-online-code-row { display: flex; align-items: center; gap: 7px; border: 1px solid rgba(201,150,63,.2); border-radius: 8px; background: rgba(255,248,234,.7); padding: 7px 8px; }
.wd-online-code-row span { color: var(--muted); font-size: 8px; }
.wd-online-code-row b { color: var(--gold); font-size: 18px; letter-spacing: .18em; }
.wd-online-code-row button { margin-left: auto; border: 1px solid var(--line); border-radius: 4px; background: transparent; color: var(--ink-soft); padding: 4px 6px; font-size: 7px; cursor: pointer; }
.wd-online-seats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.wd-online-seat { border: 1px solid var(--line); border-radius: 7px; background: rgba(255,248,234,.6); padding: 7px 8px; color: var(--muted); font-size: 9px; min-height: 33px; }
.wd-online-seat.is-filled { color: var(--ink-soft); border-color: rgba(95,63,42,.2); }
.wd-online-seat.is-host { border-color: rgba(201,150,63,.3); }
.wd-online-seat b { color: var(--ink); font-weight: 600; }
.wd-online-seat small { display: block; margin-top: 2px; color: var(--gold); font-size: 7px; }
.wd-online-status { margin-top: 9px; border-radius: 6px; background: rgba(47,111,104,.06); padding: 6px 8px; color: var(--teal-deep); font-size: 8px; line-height: 1.5; }
.wd-online-status.is-warn { background: rgba(185,94,67,.07); color: var(--red-deep); }
.wd-online-error { margin-top: 9px; border-radius: 6px; background: rgba(185,94,67,.08); padding: 7px 8px; color: var(--red-deep); font-size: 9px; line-height: 1.5; }
.wd-online-note { display: block; margin-top: 12px; color: var(--muted); font-size: 8px; }
.wd-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; color: rgba(95,63,42,.36); font-size: 8px; letter-spacing: .06em; }

.wd-overlay { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(61,39,28,.38); backdrop-filter: blur(7px); padding: 18px; }
.wd-modal { width: min(470px, 100%); border: 1px solid rgba(95,63,42,.18); border-radius: 18px; background: var(--paper-2); padding: 25px 25px 21px; box-shadow: 0 30px 70px rgba(58,36,25,.25); text-align: center; animation: wd-modal-in .25s ease-out; }
.wd-result-modal { max-height: 92vh; overflow-y: auto; }
@keyframes wd-modal-in { from { transform: translateY(8px) scale(.98); opacity: 0; } }
.wd-modal-kicker { color: var(--gold); font-size: 8px; letter-spacing: .22em; }
.wd-modal h2 { margin: 8px 0 7px; font-family: "Noto Serif SC", "Songti SC", serif; font-size: 30px; font-weight: 600; }
.wd-modal p { margin: 0 auto; max-width: 340px; color: var(--ink-soft); font-size: 10px; line-height: 1.85; }
.wd-menu-preview { display: flex; justify-content: center; gap: 7px; flex-wrap: wrap; margin: 15px 0 18px; }
.wd-menu-preview span { border: 1px solid var(--line); border-radius: 999px; background: rgba(255,248,234,.7); padding: 6px 9px; color: var(--ink-soft); font-size: 8px; }
.wd-menu-preview i { font-style: normal; margin-right: 3px; }
.wd-primary-btn { display: block; width: 100%; border: 0; border-radius: 9px; background: var(--red); color: #fff8e9; padding: 11px 14px; font-size: 11px; font-weight: 600; letter-spacing: .08em; cursor: pointer; box-shadow: 0 8px 18px rgba(143,63,46,.2); }
.wd-primary-btn:hover { background: var(--red-deep); }
.wd-start-modal > small { display: block; margin-top: 10px; color: var(--muted); font-size: 8px; }
.wd-result-stars { margin: 8px 0 12px; color: var(--gold); font-size: 28px; letter-spacing: 7px; }
.wd-result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 12px 0; }
.wd-result-grid div { border: 1px solid var(--line); border-radius: 9px; background: rgba(255,248,234,.55); padding: 8px 4px; }
.wd-result-grid small { display: block; color: var(--muted); font-size: 7px; }
.wd-result-grid b { display: block; margin-top: 3px; color: var(--ink); font-family: "Noto Serif SC", serif; font-size: 17px; }
.wd-upgrades { margin: 10px 0 11px; border-top: 1px dashed rgba(95,63,42,.12); border-bottom: 1px dashed rgba(95,63,42,.12); padding: 7px 0; text-align: left; }
.wd-upgrades-title { display: flex; justify-content: space-between; gap: 8px; color: var(--ink-soft); font-size: 9px; }
.wd-upgrades-title small { color: var(--muted); font-size: 7px; }
.wd-upgrade-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 6px; }
.wd-upgrade-btn { border: 1px solid var(--line); border-radius: 6px; background: rgba(255,248,234,.6); color: var(--ink-soft); padding: 5px 4px; font-size: 7px; line-height: 1.4; cursor: pointer; }
.wd-upgrade-btn b { display: block; color: var(--ink); font-size: 8px; font-weight: 600; }
.wd-upgrade-btn small { display: block; color: var(--gold); font-size: 7px; }
.wd-upgrade-btn:disabled { opacity: .4; cursor: default; }
.wd-upgrade-btn:hover:not(:disabled) { border-color: rgba(185,94,67,.35); background: #fffaf0; }
.wd-decor-shop { margin: -2px 0 10px; padding-bottom: 7px; border-bottom: 1px dashed rgba(95,63,42,.12); text-align: left; }
.wd-decor-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 6px; }
.wd-decor-btn { border: 1px solid var(--line); border-radius: 6px; background: rgba(255,248,234,.6); color: var(--ink-soft); padding: 5px 4px; font-size: 7px; line-height: 1.4; cursor: pointer; }
.wd-decor-btn b { display: block; color: var(--ink); font-size: 8px; font-weight: 600; }
.wd-decor-btn small { display: block; color: var(--gold); font-size: 7px; }
.wd-decor-btn:disabled { opacity: .42; cursor: default; }
.wd-decor-btn:hover:not(:disabled) { border-color: rgba(47,111,104,.3); }
.wd-codex-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(61,39,28,.4); backdrop-filter: blur(7px); padding: 18px; }
.wd-codex-card { position: relative; width: min(720px, 100%); max-height: 88vh; overflow-y: auto; border: 1px solid rgba(95,63,42,.18); border-radius: 18px; background: var(--paper-2); padding: 24px; box-shadow: 0 30px 70px rgba(58,36,25,.25); }
.wd-codex-card h2 { margin: 7px 0 6px; font-family: "Noto Serif SC", "Songti SC", serif; font-size: 28px; font-weight: 600; }
.wd-codex-lead { margin: 0 0 12px; color: var(--ink-soft); font-size: 9px; line-height: 1.7; }
.wd-decor-lantern .wd-topbar::after { content: "🏮"; position: absolute; right: 18px; bottom: -13px; font-size: 18px; opacity: .85; }
.wd-decor-sign .wd-brand b { text-shadow: 0 0 12px rgba(201,150,63,.3); }
.wd-decor-plant .wd-side::before { content: "🪴"; position: absolute; left: -7px; top: 40%; font-size: 15px; opacity: .7; }
.wd-codex-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.wd-codex-row { display: flex; gap: 7px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,248,234,.56); padding: 7px; }
.wd-codex-row.is-locked { opacity: .5; }
.wd-codex-emoji { font-size: 20px; line-height: 1; }
.wd-codex-body { min-width: 0; }
.wd-codex-body b { display: block; color: var(--ink); font-size: 10px; }
.wd-codex-body small { display: block; margin-top: 2px; color: var(--muted); font-size: 7px; line-height: 1.5; }
.wd-codex-body em { color: var(--gold); font-style: normal; font-size: 7px; }
@media (max-width: 620px) { .wd-codex-list { grid-template-columns: 1fr; } .wd-decor-list { grid-template-columns: 1fr; } }
.wd-result-modal .wd-ghost-btn { width: 100%; margin-top: 7px; }
.wd-rules { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(61,39,28,.38); backdrop-filter: blur(7px); padding: 18px; }
.wd-rules-card { position: relative; width: min(640px, 100%); max-height: 86vh; overflow-y: auto; border: 1px solid rgba(95,63,42,.18); border-radius: 17px; background: var(--paper-2); padding: 24px; box-shadow: 0 30px 70px rgba(58,36,25,.25); }
.wd-rules-card h2 { margin: 8px 0 16px; font-family: "Noto Serif SC", "Songti SC", serif; font-size: 26px; }
.wd-rules-close { position: absolute; right: 12px; top: 10px; border: 0; background: transparent; color: var(--muted); font-size: 22px; cursor: pointer; }
.wd-rules-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.wd-rules-grid div { border: 1px solid var(--line); border-radius: 9px; background: rgba(255,248,234,.6); padding: 10px; }
.wd-rules-grid b { font-size: 10px; }
.wd-rules-grid p { margin-top: 5px; color: var(--muted); font-size: 8px; line-height: 1.65; text-align: left; }
.wd-rules-card > p { margin-top: 14px; color: var(--ink-soft); font-size: 9px; line-height: 1.8; text-align: left; }
.wd-rules-card code { border-radius: 3px; background: rgba(95,63,42,.07); padding: 1px 3px; font-size: 8px; }
.wd-fx-layer { position: fixed; inset: 0; z-index: 75; pointer-events: none; overflow: hidden; }
.wd-float { position: absolute; transform: translate(-50%, -50%); color: var(--teal-deep); font-family: "Noto Serif SC", "Songti SC", serif; font-size: 15px; font-weight: 600; text-shadow: 0 2px 0 rgba(255,248,234,.8), 0 5px 14px rgba(63,44,34,.15); animation: wd-float-up 1.15s ease-out forwards; white-space: nowrap; }
.wd-float.good { color: var(--teal); }
.wd-float.bad { color: var(--red-deep); }
.wd-float.gold { color: var(--gold); }
.wd-float.star { color: #b9872f; font-size: 18px; letter-spacing: 2px; }
.wd-float.customer { color: var(--ink-soft); background: #fffaf0; border: 1px solid var(--line); border-radius: 9px 9px 9px 3px; padding: 4px 7px; font-family: "Microsoft YaHei", sans-serif; font-size: 9px; font-weight: 500; }
@keyframes wd-float-up { 0% { opacity: 0; transform: translate(-50%, -35%) scale(.8); } 22% { opacity: 1; transform: translate(-50%, -55%) scale(1.04); } 100% { opacity: 0; transform: translate(-50%, -145%) scale(1); } }
.wd-serve-flash { position: fixed; inset: 0; z-index: 74; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 45%, rgba(255,227,159,.34), transparent 48%); }
.wd-serve-flash.is-on { animation: wd-flash .6s ease-out; }
@keyframes wd-flash { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } }
.wd-station.is-ok { animation: wd-st-ok .42s ease-out; }
.wd-station.is-bad { animation: wd-st-bad .38s ease-out; }
.wd-station.is-perfect { animation: wd-st-perfect .65s ease-out; }
@keyframes wd-st-ok { 50% { background: rgba(255,251,236,.98); box-shadow: 0 0 0 3px rgba(47,111,104,.16), var(--shadow); } }
@keyframes wd-st-bad { 20% { transform: translateX(-3px); } 45% { transform: translateX(4px); } 70% { transform: translateX(-2px); } }
@keyframes wd-st-perfect { 40% { box-shadow: 0 0 0 4px rgba(228,181,93,.34), 0 12px 30px rgba(201,150,63,.2); transform: translateY(-2px); } }
.wd-shell.is-shake { animation: wd-shell-shake .34s ease-out; }
@keyframes wd-shell-shake { 20% { transform: translateX(-3px); } 45% { transform: translateX(4px); } 70% { transform: translateX(-2px); } }
.wd-coin-pill.is-pop { animation: wd-coin-pop .5s ease-out; }
@keyframes wd-coin-pop { 35% { transform: scale(1.13); border-color: rgba(201,150,63,.5); } }
.wd-toast { position: fixed; left: 50%; bottom: 22px; z-index: 100; transform: translate(-50%, 10px); opacity: 0; pointer-events: none; border: 1px solid rgba(95,63,42,.15); border-radius: 999px; background: #fff8ea; color: var(--ink-soft); padding: 8px 14px; font-size: 9px; box-shadow: 0 10px 25px rgba(87,57,37,.16); transition: .2s; }
.wd-toast.is-show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1080px) {
  .wd-main { grid-template-columns: minmax(0, 1fr) 310px; }
  .wd-stations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wd-station-wok { grid-column: 1 / -1; }
  .wd-mascot-stage { min-height: 155px; }
  .wd-mascot-stage img { width: 145px; height: 145px; }
}
@media (max-width: 760px) {
  .wd-shell { padding: 13px 11px 18px; }
  .wd-topbar { gap: 7px; }
  .wd-brand em { display: none; }
  .wd-brand i { display: none; }
  .wd-top-actions { gap: 4px; }
  .wd-top-btn { padding: 6px 7px; font-size: 9px; }
  .wd-pill { min-height: 26px; padding: 0 7px; font-size: 9px; }
  .wd-main { grid-template-columns: 1fr; margin-top: 11px; }
  .wd-title-row { align-items: flex-start; margin-bottom: 10px; }
  .wd-title-row h1 { font-size: 32px; }
  .wd-title-row h1 span { font-size: 9px; }
  .wd-shift { padding: 5px 8px; font-size: 8px; margin-top: 5px; }
  .wd-mobile-mascot { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,248,234,.7); padding: 6px 8px; margin-bottom: 8px; }
  .wd-mobile-mascot img { width: 52px; height: 52px; object-fit: contain; flex: 0 0 auto; }
  .wd-mobile-mascot b { display: block; color: var(--gold); font-size: 8px; letter-spacing: .08em; }
  .wd-mobile-mascot p { margin: 2px 0 0; color: var(--ink-soft); font-size: 8px; line-height: 1.5; }
  .wd-order-rail { display: flex; overflow-x: auto; gap: 6px; min-height: 0; padding-bottom: 2px; scrollbar-width: none; }
  .wd-order-rail::-webkit-scrollbar { display: none; }
  .wd-order-card { flex: 0 0 152px; }
  .wd-stations { grid-template-columns: 1fr; }
  .wd-station-wok { grid-column: auto; }
  .wd-station-desc { min-height: 0; }
  .wd-kitchen-foot { flex-direction: column; align-items: stretch; gap: 7px; }
  .wd-ghost-btn { width: 100%; }
  .wd-side { gap: 8px; }
  .wd-mascot-card { display: grid; grid-template-columns: 118px minmax(0, 1fr); align-items: center; padding: 8px; }
  .wd-mascot-stage { min-height: 105px; }
  .wd-mascot-stage img { width: 110px; height: 110px; }
  .wd-mascot-mood { right: 0; bottom: 4px; font-size: 7px; }
  .wd-mascot-copy small { font-size: 7px; }
  .wd-mascot-copy p { margin-top: 4px; font-size: 8px; min-height: 0; }
  .wd-panel { padding: 8px; }
  .wd-log { max-height: 75px; }
  .wd-rules-grid { grid-template-columns: 1fr; }
  .wd-rules-card { padding: 20px 16px; }
  .wd-modal { padding: 22px 18px 18px; }
  .wd-modal h2 { font-size: 26px; }
  .wd-foot { font-size: 7px; }
}
@media (max-width: 400px) {
  .wd-top-actions .wd-pill:first-child { display: none; }
  .wd-title-row h1 { font-size: 29px; }
}
