:root {
  --ink: #17231f;
  --muted: #68756f;
  --line: #e4e9e6;
  --paper: #f5f7f4;
  --card: #ffffff;
  --green: #126b52;
  --green-dark: #0c4c3a;
  --mint: #dcefe7;
  --orange: #eb8e42;
  --shadow: 0 18px 50px rgba(22, 46, 36, 0.08);
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif; }
button, input, select { font: inherit; }
button { cursor: pointer; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 240px 1fr; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 28px 20px; color: #fff; background: #102d24; display: flex; flex-direction: column; }
.brand { display: flex; gap: 12px; align-items: center; padding: 0 8px 30px; }
.brand-mark { width: 42px; height: 42px; display: block; object-fit: cover; border-radius: 13px; background: #d9f1e7; box-shadow: 0 5px 16px rgba(0,0,0,.14); }
.brand strong, .brand small { display: block; }
.brand small { margin-top: 4px; color: #9db9ae; font-size: 11px; letter-spacing: .08em; }
nav { display: grid; gap: 7px; }
.nav-item { border: 0; border-radius: 11px; padding: 13px 14px; color: #a9c1b8; background: transparent; text-align: left; transition: .2s ease; }
.nav-item[href] { display: block; text-decoration: none; }
.nav-item span { display: inline-grid; width: 26px; color: #c6dbd3; }
.nav-item:hover, .nav-item.active { color: #fff; background: rgba(255,255,255,.09); }
.sidebar-note { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 14px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: rgba(255,255,255,.04); }
.sidebar-note strong, .sidebar-note small { display: block; }
.sidebar-note strong { font-size: 13px; }
.sidebar-note small { margin-top: 4px; color: #90aa9f; font-size: 10px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #63dda8; box-shadow: 0 0 0 5px rgba(99,221,168,.12); }

main { min-width: 0; padding: 0 40px 60px; }
.topbar { min-height: 114px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.topbar h1 { margin: 2px 0 0; font-size: 28px; letter-spacing: -.04em; }
.eyebrow { margin: 0 0 5px; color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow.inverse { color: #a6dcca; }
.topbar-actions { display: flex; gap: 10px; align-items: center; }
.key-field { display: flex; align-items: center; gap: 9px; padding: 7px 8px 7px 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 11px; }
.key-field input { width: 130px; border: 0; outline: 0; color: var(--ink); }
.button { border: 0; border-radius: 10px; padding: 11px 16px; font-weight: 700; transition: .18s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { color: #fff; background: var(--green); }
.button.accent { color: #fff; background: var(--orange); }
.button.secondary { color: var(--ink); border: 1px solid var(--line); background: #fff; }
.button.light { color: var(--green-dark); background: #e2f3eb; }
.button.full { width: 100%; }
.button:disabled { cursor: not-allowed; opacity: .45; transform: none; }

.page { display: none; }
.page.active { display: block; animation: reveal .25s ease; }
@keyframes reveal { from { opacity: 0; transform: translateY(5px); } }
.hero-card { min-height: 178px; padding: 34px; display: flex; align-items: end; justify-content: space-between; gap: 24px; overflow: hidden; border-radius: 22px; color: #fff; background: radial-gradient(circle at 82% 10%, rgba(117,232,186,.28), transparent 30%), linear-gradient(125deg, #0d4636, #13795a); box-shadow: var(--shadow); }
.hero-card h2 { max-width: 680px; margin: 0 0 8px; font-size: clamp(24px, 3vw, 38px); line-height: 1.14; letter-spacing: -.045em; }
.hero-card p:not(.eyebrow) { max-width: 680px; margin: 0; color: #c6e2d8; }
.operations-hero { min-height: 164px; display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 30px 34px; overflow: hidden; border-radius: 22px; color: #fff; background: radial-gradient(circle at 84% 8%, rgba(242,216,140,.3), transparent 30%), linear-gradient(125deg, #153c31, #126b52); box-shadow: var(--shadow); }
.operations-hero h2 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.045em; }
.operations-hero p:not(.eyebrow) { margin: 0; color: #c6e2d8; font-size: 12px; }
.operations-grid { display: grid; grid-template-columns: minmax(320px, .85fr) minmax(0, 1.15fr); gap: 18px; align-items: start; }
.operation-redeem-panel { min-height: 100%; }
.operation-guide { min-height: 100%; }
.operation-guide ol { display: grid; gap: 14px; margin: 22px 0 18px; padding: 0; list-style: none; }
.operation-guide li { display: flex; gap: 12px; align-items: start; }
.operation-guide li > span { flex: 0 0 auto; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; color: var(--green); background: var(--mint); font-size: 11px; font-weight: 800; }
.operation-guide strong, .operation-guide p { display: block; }
.operation-guide p { margin: 3px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.operation-payment-note { margin-top: 18px !important; padding: 11px 12px; color: #7c4b25 !important; border-radius: 9px; background: #fff5e8; }
.kitchen-panel { margin-top: 18px; }
.kitchen-panel .panel-heading > small { color: var(--muted); font-size: 11px; }
.kitchen-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.kitchen-ticket { position: relative; min-height: 190px; display: flex; flex-direction: column; padding: 17px; border: 1px solid var(--line); border-top: 4px solid #bbd3c8; border-radius: 13px; background: linear-gradient(145deg, #fff, #f7faf8); }
.kitchen-ticket.preparing { border-top-color: var(--orange); }
.kitchen-ticket.ready { border-top-color: var(--green); background: linear-gradient(145deg, #fff, #eff8f3); }
.kitchen-ticket-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.kitchen-ticket-head small { color: var(--muted); font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.badge.waiting { color: #79522d; background: #fff4e5; }
.badge.preparing { color: #8a4e1d; background: #ffead6; }
.badge.ready { color: var(--green-dark); background: var(--mint); }
.kitchen-ticket h3 { margin: 16px 0 10px; font-size: 18px; letter-spacing: -.025em; }
.kitchen-ticket p { margin: 0 0 16px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.kitchen-ticket p strong, .kitchen-ticket p span { display: block; }
.kitchen-ticket p strong { color: var(--ink); font-size: 13px; }
.kitchen-ticket p span { margin-top: 3px; }
.kitchen-ticket .button { margin-top: auto; }
.kitchen-empty { grid-column: 1 / -1; border: 1px dashed var(--line); border-radius: 12px; background: #fbfcfb; }
.operation-history { margin-top: 18px; }
.guest-tools { margin-top: 20px; }
.guest-tools input { padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
.guest-boards { display: grid; gap: 18px; }
.guest-leader { color: var(--green); }
.guest-id { overflow-wrap: anywhere; color: var(--muted); }
.dashboard-guests { margin-bottom: 22px; }
.dashboard-guests > p { color: var(--muted); font-size: 12px; }
.dashboard-guest-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 20px 0; }
.dashboard-guest-card { min-width: 0; padding: 20px; background: #f2f6f2; border: 1px solid var(--line); border-radius: 14px; }
.dashboard-guest-card h3 { margin: 0; font-size: 16px; }
.dashboard-guest-card .panel-heading { flex-wrap: wrap; margin-bottom: 12px; }
.dashboard-guest-card small { color: var(--muted); font-size: 11px; line-height: 1.6; }
.dashboard-guest-count { display: block; color: var(--green); font-size: 32px; }
.dashboard-guest-count small { margin-left: 8px; font-weight: normal; }
.dashboard-guest-card ul { padding: 0; list-style: none; }
.dashboard-guest-card li { margin-top: 12px; }
.dashboard-guest-card li small { display: block; }
.dashboard-guest-empty { margin: 22px 0 8px; color: var(--muted); }
.dashboard-guest-total { padding-top: 12px; border-top: 1px solid var(--line); color: var(--green); font-size: 12px; }
.dashboard-guest-footer { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.dashboard-guest-footer > small { color: var(--muted); font-size: 11px; }
.operation-shortcuts { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) {
  .dashboard-guest-grid { grid-template-columns: 1fr; }
  .dashboard-guests > .panel-heading, .dashboard-guest-footer { flex-wrap: wrap; }
}

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0; }
.metric-card { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.metric-card small { color: var(--muted); }
.metric-card strong { display: block; margin: 12px 0 4px; font-size: 29px; letter-spacing: -.04em; }
.metric-card em { color: var(--green); font-size: 11px; font-style: normal; }

.content-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 18px; }
.panel { padding: 24px; border: 1px solid var(--line); border-radius: 17px; background: var(--card); box-shadow: 0 8px 28px rgba(25,55,43,.035); }
.panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.panel h2 { margin: 0; font-size: 19px; letter-spacing: -.03em; }
.legend { color: var(--muted); font-size: 11px; }
.legend i { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 2px; background: var(--green); }
.chart { height: 220px; display: flex; align-items: end; gap: 14px; padding-top: 15px; }
.chart-column { flex: 1; min-width: 24px; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: end; gap: 8px; }
.chart-column strong { color: var(--green-dark); font-size: 10px; }
.chart-bar { width: min(42px, 72%); min-height: 4px; border-radius: 7px 7px 2px 2px; background: linear-gradient(#54aa87, var(--green)); }
.chart-column small { color: var(--muted); font-size: 10px; }
.funnel-row { margin: 18px 0; }
.funnel-row div { display: flex; justify-content: space-between; margin-bottom: 7px; font-size: 12px; }
.funnel-track { height: 9px; overflow: hidden; border-radius: 10px; background: #edf1ef; }
.funnel-track i { display: block; height: 100%; min-width: 3px; border-radius: inherit; background: var(--green); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 0 12px 11px; color: var(--muted); font-size: 10px; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
td { padding: 14px 12px; border-top: 1px solid var(--line); font-size: 13px; }
.empty { padding: 26px 10px; color: var(--muted); text-align: center; }
.rank-list { display: grid; gap: 13px; }
.rank-item { display: grid; grid-template-columns: 26px 1fr auto; gap: 9px; align-items: center; }
.rank-item span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; color: var(--green); background: var(--mint); font-size: 11px; font-weight: 800; }
.rank-item strong, .rank-item small { display: block; }
.rank-item small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.rank-item b { font-size: 12px; }

.section-tools { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 16px; }
.section-tools p { color: var(--muted); font-size: 12px; }
.section-tools select, form select, form input, .experiment-panel input, .experiment-panel select { min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; outline: none; background: #fff; }
.order-list { display: grid; gap: 12px; }
.order-card { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 24px; align-items: center; padding: 20px 22px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.order-number { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.order-number strong { font-size: 15px; }
.badge { display: inline-flex; padding: 4px 8px; border-radius: 20px; color: var(--green-dark); background: var(--mint); font-size: 10px; font-weight: 800; }
.badge.orange { color: #945222; background: #ffead6; }
.badge.used { color: #fff; background: var(--green); }
.order-card p { margin: 3px 0; color: var(--muted); font-size: 11px; }
.order-items { color: var(--ink) !important; }
.order-total { text-align: right; }
.order-total strong { display: block; margin-bottom: 8px; font-size: 19px; }
.order-actions { display: flex; justify-content: end; gap: 7px; flex-wrap: wrap; }
.tiny-button { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; color: var(--green-dark); background: #fff; font-size: 11px; font-weight: 700; }
.tiny-button.primary { color: #fff; border-color: var(--green); background: var(--green); }

.menu-category { margin-bottom: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.menu-category h3 { margin: 0; padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: 15px; }
.menu-row { display: grid; grid-template-columns: 48px 1fr 100px 100px 100px; gap: 14px; align-items: center; padding: 13px 20px; border-bottom: 1px solid var(--line); }
.menu-row:last-child { border-bottom: 0; }
.menu-emoji { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 12px; background: #f3f5f2; font-size: 23px; }
.menu-photo { width: 43px; height: 43px; display: block; object-fit: cover; border-radius: 12px; background: #f3f5f2; }
.menu-price-button { padding: 7px 8px; color: var(--ink); border: 1px solid transparent; border-radius: 9px; background: transparent; text-align: left; cursor: pointer; }
.menu-price-button:hover { border-color: var(--line); background: #f6f8f6; }
.menu-price-button small { font-size: 8px; }
.menu-row strong, .menu-row small { display: block; }
.menu-row small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.stock-input { width: 78px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; }
.switch { position: relative; width: 39px; height: 23px; border: 0; border-radius: 20px; background: #cfd7d3; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: .18s; }
.switch.on { background: var(--green); }
.switch.on::after { left: 19px; }

.coupon-workspace { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.coupon-builder form { display: grid; gap: 13px; margin-top: 22px; }
.coupon-builder label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; }
.coupon-builder input:not([type="checkbox"]), .coupon-builder select { min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; outline: none; background: #fff; }
.coupon-builder input:focus, .coupon-builder select:focus { border-color: #8bb9a7; box-shadow: 0 0 0 3px rgba(18,107,82,.08); }
.form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkbox-label { display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 9px !important; color: var(--ink) !important; }
.checkbox-label input { width: 16px; height: 16px; accent-color: var(--green); }
.form-note, label > small { color: #929e98; font-size: 10px; line-height: 1.5; }
.coupon-history { margin-top: 18px; }
.coupon-rule { color: var(--green-dark); font-weight: 800; }
.scene-code { display: inline-flex; padding: 6px 9px; border-radius: 7px; color: #79522d; background: #fff4e5; font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.channel-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.link-button { padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--green-dark); background: #fff; font-size: 10px; font-weight: 700; }
.link-button.primary { color: #fff; border-color: var(--green); background: var(--green); }
.link-button.warning { color: #9a5725; }

.campaign-layout { display: grid; grid-template-columns: 1fr 300px 1fr; gap: 20px; align-items: start; }
.campaign-form-panel form { display: grid; gap: 13px; margin-top: 22px; }
.campaign-form-panel label, .experiment-panel label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; }
.phone-preview { min-height: 560px; padding: 22px 22px 26px; border: 8px solid #183128; border-radius: 35px; background: linear-gradient(160deg, #edf8f2, #fff 45%); box-shadow: var(--shadow); text-align: center; }
.phone-notch { width: 82px; height: 17px; margin: -22px auto 26px; border-radius: 0 0 14px 14px; background: #183128; }
.preview-badge { display: inline-flex; padding: 5px 9px; border-radius: 20px; color: var(--green); background: var(--mint); font-size: 9px; font-weight: 800; }
.preview-visual { width: 130px; height: 130px; display: grid; place-items: center; margin: 35px auto 25px; border-radius: 50%; background: radial-gradient(circle, #fff 0 35%, #f3dfcf 36% 55%, #e0ae84 56%); font-size: 58px; }
.phone-preview h3 { margin: 0; font-size: 27px; line-height: 1.14; letter-spacing: -.05em; }
.phone-preview p { min-height: 74px; margin: 15px 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.phone-preview button { width: 100%; margin: 13px 0 18px; padding: 13px; color: #fff; border: 0; border-radius: 12px; background: var(--green); font-weight: 800; }
.phone-preview small { color: #9ba6a1; font-size: 8px; }
.experiment-panel { display: grid; gap: 13px; }
.experiment-panel > h2 { margin-bottom: 8px; }
.experiment-panel label small { color: #99a29e; }
.ab-box { margin: 8px 0; padding: 14px; border-radius: 11px; background: #f1f6f3; }
.ab-box strong { color: var(--green-dark); font-size: 12px; }
.ab-box p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.campaign-history { margin-top: 20px; }

.step-admin-hero { min-height: 150px; display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 30px 34px; color: #fff; border-radius: 20px; background: radial-gradient(circle at 85% 0, rgba(242,216,140,.26), transparent 34%), linear-gradient(125deg, #0d4636, #13795a); box-shadow: var(--shadow); }
.step-admin-hero h2 { margin: 0 0 8px; font-size: 31px; letter-spacing: -.04em; }
.step-admin-hero p:not(.eyebrow) { margin: 0; color: #c6e2d8; font-size: 12px; }
.step-state { flex: 0 0 auto; padding: 8px 12px; color: #174334; border-radius: 20px; background: #f2d88c; font-size: 11px; font-weight: 800; }
.step-state.paused { color: #69736f; background: #e4e8e6; }
.step-admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.step-tier-admin { display: grid; gap: 10px; margin-top: 22px; }
.step-tier-admin > div { display: flex; align-items: center; justify-content: space-between; padding: 13px 15px; border-radius: 11px; background: #f1f6f3; }
.step-tier-admin strong, .step-tier-admin small { display: block; }
.step-tier-admin strong { color: var(--green-dark); font-size: 16px; }
.step-tier-admin small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.step-tier-admin b { font-size: 13px; }
.step-rule-note { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.step-rule-note strong, .step-rule-note code { display: block; }
.step-rule-note code { margin-top: 8px; color: var(--green); font-size: 11px; }
.step-rule-note p { color: var(--muted); font-size: 10px; }
.step-redemption-grid { margin-top: 18px; align-items: start; }
.redemption-panel { background: linear-gradient(145deg, #fff, #fbf7ec); }
.redemption-panel input { text-align: center; text-transform: uppercase; font: 800 23px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .18em; }
.redemption-heading { align-items: center; margin: 0; }
.redemption-heading a { text-decoration: none; }
.redemption-preview { margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.voucher-result-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.voucher-result-head small, .voucher-result-head strong { display: block; }
.voucher-result-head small { color: var(--muted); font-size: 10px; }
.voucher-result-head strong { margin-top: 5px; color: var(--green-dark); font: 900 22px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.voucher-status { padding: 7px 10px; border-radius: 20px; font-size: 11px; font-weight: 800; }
.voucher-status.available { color: #8a4e1d; background: #fff0df; }
.voucher-status.used { color: #fff; background: var(--green); }
.voucher-status.invalid { color: #8d3e35; background: #f9e4e1; }
.voucher-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 15px 0; }
.voucher-facts div { padding: 10px; border-radius: 9px; background: #f5f7f4; }
.voucher-facts small, .voucher-facts strong { display: block; }
.voucher-facts small { color: var(--muted); font-size: 9px; }
.voucher-facts strong { margin-top: 5px; font-size: 12px; }
.settlement-warning { margin: 0 0 14px; padding: 11px 12px; color: #7c4b25; border-radius: 9px; background: #fff5e8; font-size: 11px; line-height: 1.55; }
.voucher-items { margin: 0 0 14px; padding: 0; border: 0; }
.voucher-items legend { margin-bottom: 8px; color: var(--muted); font-size: 10px; }
.voucher-items label { grid-template-columns: auto 1fr auto; align-items: center; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); cursor: pointer; }
.voucher-items label + label { margin-top: 8px; }
.voucher-items input { width: 16px; height: 16px; accent-color: var(--green); }
.voucher-items span strong, .voucher-items span small { display: block; }
.voucher-items span small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.voucher-items b { color: var(--green); font-size: 15px; }
.service-note-field { display: grid; gap: 6px; margin: 0 0 14px; color: var(--muted); font-size: 10px; }
.service-note-field input { min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; outline: none; color: var(--ink); background: #fff; font-size: 13px; text-align: left; text-transform: none; letter-spacing: normal; }
.service-note-field input:focus { border-color: #8bb9a7; box-shadow: 0 0 0 3px rgba(18,107,82,.08); }
.used-receipt, .invalid-receipt { padding: 13px; border-radius: 10px; font-size: 11px; line-height: 1.6; }
.used-receipt { color: var(--green-dark); background: #e9f6f0; }
.used-receipt strong, .used-receipt span { display: block; }
.invalid-receipt { color: #8d3e35; background: #f9e4e1; }
.recent-reward-panel { min-width: 0; }
.recent-reward-panel .panel-heading > small { color: var(--muted); font-size: 10px; }
.redemption-code-admin { display: inline-flex; padding: 6px 8px; color: #79522d; border-radius: 7px; background: #fff4e5; font: 800 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }

.integration-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }
.integration-card { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.integration-icon { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 12px; background: var(--mint); font-size: 20px; }
.integration-card h3 { margin: 0 0 6px; }
.integration-card p { min-height: 34px; margin: 0 0 14px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.integration-state { font-size: 10px; font-weight: 800; color: var(--orange); }
.checklist ol { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 16px; }
.checklist li { display: flex; gap: 13px; }
.checklist li > span { flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: var(--green); background: var(--mint); font-size: 11px; font-weight: 800; }
.checklist strong, .checklist p { display: block; }
.checklist p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }

.toast { position: fixed; right: 26px; bottom: 26px; z-index: 10; max-width: 360px; padding: 13px 17px; color: #fff; border-radius: 10px; background: #173d31; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(8px); transition: .22s; font-size: 12px; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { background: #9d3d32; }

@media (max-width: 1080px) {
  .app-shell { grid-template-columns: 76px 1fr; }
  .sidebar { padding-inline: 12px; }
  .brand > div, .nav-item:not(.active) span + *, .sidebar-note div { display: none; }
  .brand { justify-content: center; padding-inline: 0; }
  .nav-item { text-align: center; font-size: 0; }
  .nav-item span { width: auto; font-size: 17px; }
  .sidebar-note { justify-content: center; }
  .campaign-layout { grid-template-columns: 1fr 280px; }
  .coupon-workspace { grid-template-columns: 1fr; }
  .operations-grid { grid-template-columns: 1fr; }
  .kitchen-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .experiment-panel { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; z-index: 5; top: auto; bottom: 0; width: 100%; height: 64px; padding: 8px 10px; }
  .brand, .sidebar-note { display: none; }
  nav { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(48px, 1fr); gap: 4px; overflow-x: auto; }
  .nav-item { padding: 10px 4px; }
  main { padding: 0 15px 86px; }
  .topbar { align-items: start; padding: 20px 0; }
  .topbar-actions { display: none; }
  .metric-grid, .integration-grid { grid-template-columns: repeat(2, 1fr); }
  .content-grid, .campaign-layout { grid-template-columns: 1fr; }
  .step-admin-grid { grid-template-columns: 1fr; }
  .kitchen-board { grid-template-columns: 1fr; }
  .order-card { grid-template-columns: 1fr; }
  .order-total, .order-actions { text-align: left; justify-content: start; }
  .menu-row { grid-template-columns: 43px 1fr 72px; }
  .menu-row > :nth-child(4), .menu-row > :nth-child(5) { display: none; }
  .phone-preview { max-width: 310px; margin-inline: auto; }
}
/* Customer support inbox */
.support-admin-ticket{margin-bottom:20px;padding:24px}.support-admin-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}.support-admin-ticket textarea{display:block;width:100%;min-height:110px;padding:14px;margin:12px 0;border:1px solid #d8dfd8;border-radius:12px;font:inherit}.support-admin-answer{background:#edf3ec;border-radius:12px;padding:16px}
