:root {
  color-scheme: light;
  --ink: #314231;
  --muted: #5e6c62;
  --green: #83dd19;
  --green-edge: #55a808;
  --forest: #31650e;
  --line: #e1e6df;
  --blue: #13729d;
  --paper: #fff;
  --surface: #fbfcf8;
  font: 16px/1.6 "Nunito", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: var(--ink);
  background: var(--surface);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
:focus-visible { outline: 3px solid #147ba7; outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, p, ol, dl, dd { margin: 0; }
.wrap { width: min(1152px, calc(100% - 80px)); margin-inline: auto; }
.topbar { background: var(--paper); border-bottom: 2px solid var(--line); }
.top-inner { display: flex; align-items: center; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 11px; white-space: nowrap; font-size: 24px; font-weight: 900; letter-spacing: -.05em; color: #38891d; }
.brand-icon { display: block; flex: none; width: 39px; height: 39px; object-fit: contain; }
.top-nav { display: flex; gap: 10px; margin-left: 54px; }
.top-nav a, .admin-tabs a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 17px; min-height: 44px; border: 2px solid transparent; border-radius: 14px; font-size: 14px; font-weight: 750; color: var(--muted); white-space: nowrap; }
.top-nav .active, .admin-tabs .active { border-color: #b7e68e; color: #38781b; background: #effbdd; }
.top-nav .bi, .admin-tabs .bi { font-size: 17px; }
.top-nav a:not(.active):hover, .admin-tabs a:not(.active):hover { background: #f1f6e9; }
.admin-link { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding: 7px 14px; min-height: 44px; border: 2px solid var(--line); border-radius: 13px; box-shadow: 0 2px 0 var(--line); font-weight: 700; font-size: 13px; white-space: nowrap; }
.admin-link:hover { background: #f4f8ef; }.admin-link .bi-arrow-up-right { font-size: 11px; }

.customer-main { padding-top: 28px; }
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: 208px; background: #eaf8cb; border: 2px solid #cfe5ad; border-radius: 25px; }
.hero-copy { position: relative; z-index: 1; width: 58%; padding: 31px 46px; }
.hero h1 { color: #335724; font-size: clamp(30px, 3.4vw, 46px); font-weight: 900; line-height: 1.24; letter-spacing: -.045em; }
.hero p { margin-top: 12px; color: #50693b; font-size: 15px; font-weight: 550; line-height: 1.65; }
.hero-art { position: absolute; z-index: -1; inset: 0 0 0 auto; width: 58%; overflow: hidden; pointer-events: none; }
.hill, .cloud { position: absolute; }
.far-hill { width: 89%; height: 72%; right: -32%; bottom: -19%; background: #d5eda8; border-radius: 60% 40% 0 0; transform: rotate(-6deg); }
.near-hill { width: 86%; height: 68%; right: 4%; bottom: -52%; background: #cbe797; border-radius: 56% 44% 0 0; transform: rotate(-5deg); }
.cloud { background: #fff; opacity: .87; border-radius: 22px; height: 12px; width: 51px; }
.cloud::before, .cloud::after { position: absolute; content: ""; bottom: 2px; background: inherit; border-radius: 50%; }
.cloud::before { width: 22px; height: 22px; left: 9px; }.cloud::after { width: 16px; height: 15px; right: 7px; }
.cloud-one { left: 22%; top: 29%; transform: scale(.82); }.cloud-two { right: 7%; top: 20%; }
.hero-mascot { position: absolute; inset: 0 15% 0 auto; margin-block: auto; display: block; height: 100%; width: auto; max-width: 75%; object-fit: contain; }

.customer-grid { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); gap: 24px; align-items: start; }
.panel { background: var(--paper); border: 2px solid var(--line); border-radius: 20px; box-shadow: 0 3px 0 #e9ece5; }
.form-panel { padding: 25px 29px 18px; }
.panel-heading { display: flex; align-items: center; gap: 12px; }
.panel-heading h2, .section-title h2 { font-size: 23px; line-height: 1.35; font-weight: 850; letter-spacing: -.04em; }
.heading-icon, .guide-item > i, .shortcut-icon, .metric-icon, .login-mark {
  display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 12px;
}
.heading-icon { width: 39px; height: 39px; background: #eff9da; color: #50891f; font-size: 21px; }
.stepper { list-style: none; padding: 0; margin: 20px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stepper li { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; font-weight: 700; color: #657062; }
.step-track { width: 100%; height: 9px; border-radius: 20px; background: #e7eae4; position: relative; margin-bottom: 2px; }
.stepper .current .step-track, .stepper .done .step-track { background: #80d61b; }
.stepper .current .step-track::before, .stepper .done .step-track::before { content: ""; position: absolute; inset: 2px 6px auto 6px; height: 2px; background: #abe94e; border-radius: 2px; }
.stepper b { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: #576453; background: #edf0eb; font: 800 12px/1 "Nunito", Arial, sans-serif; }
.stepper .current, .stepper .done { color: var(--forest); }.stepper .current b, .stepper .done b { background: #dcf4b7; color: #3e7217; }
.field + .field { margin-top: 17px; }
.field label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 750; }
.input-box { width: 100%; min-width: 0; min-height: 49px; display: flex; align-items: center; gap: 11px; padding-inline: 14px; border: 2px solid #dee4d9; border-radius: 13px; background: #f8faf6; }
.input-box > i { color: #73826c; font-size: 17px; }
.input-box:focus-within { background: #fff; border-color: #78ba32; box-shadow: 0 0 0 3px #dff4c3; }
.input-box input { padding: 0; width: 100%; min-width: 0; height: 45px; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 16px; }
input::placeholder { color: #697666; }
.field-hint { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 45px; padding: 8px 19px; border: 2px solid transparent; border-radius: 14px; font-weight: 800; font-size: 15px; line-height: 1.45; transition: transform .12s, box-shadow .12s, background-color .12s; }
.btn.primary { background: var(--green); color: #25460c; box-shadow: 0 4px 0 var(--green-edge); }
.btn.primary:hover { background: #90e729; }.btn.primary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--green-edge); }
.btn.secondary { background: white; color: var(--forest); border-color: var(--line); box-shadow: 0 3px 0 var(--line); }
.btn.secondary:hover { background: #f3f8e9; }.btn.secondary:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line); }
.btn.wide { width: 100%; margin: 20px 0 4px; min-height: 48px; }
.panel-foot { display: flex; align-items: center; gap: 8px; margin-top: 17px; padding-top: 14px; border-top: 2px dashed #e6ebdf; font-size: 13px; color: var(--muted); }
.panel-foot i { color: #60912e; font-size: 16px; }.support-id { user-select: all; color: #447425; font-weight: 800; }
.side-stack { display: grid; gap: 15px; }
.guide { padding: 24px; }.guide h2 { font-size: 20px; }.guide .panel-heading { margin-bottom: 18px; }
.guide-item { display: flex; align-items: flex-start; gap: 12px; }.guide-item + .guide-item { margin-top: 16px; }
.guide-item > i { width: 35px; height: 35px; font-size: 18px; }
.guide-item .bi-ticket-perforated { background: #fff1c4; color: #99620a; }
.guide-item .bi-clock { background: #e0f4ff; color: #0879a5; }
.guide-item .bi-shield-lock { background: #f1eaff; color: #8353ab; }
.guide-item h3 { font-size: 14px; line-height: 1.5; font-weight: 800; }
.guide-item p { margin-top: 2px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.lookup-shortcut { display: flex; align-items: center; gap: 12px; padding: 13px 19px; border: 2px solid #bee5f5; border-radius: 17px; background: #eaf8ff; box-shadow: 0 3px 0 #d4eaf3; color: #245d77; }
.lookup-shortcut:hover { background: #dcf4ff; }.lookup-shortcut > i { margin-left: auto; }
.shortcut-icon { width: 37px; height: 37px; border: 2px solid #bee5f5; background: #fff; color: #168db7; font-size: 18px; }
.lookup-shortcut strong, .lookup-shortcut small { display: block; }.lookup-shortcut strong { font-size: 15px; font-weight: 800; }.lookup-shortcut small { font-size: 12px; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 60px; margin-top: 29px; border-top: 2px solid #e9ece6; color: var(--muted); font-size: 12px; }
.footer span:first-child { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.verified { display: flex; align-items: center; gap: 9px; margin: 0 0 17px; padding: 8px 12px; border: 2px solid #d6ecbf; background: #f2fae6; border-radius: 13px; color: var(--forest); }
.verified strong, .verified small { display: block; }.verified strong { font-size: 14px; }.verified small { font-size: 12px; }.verified button { margin-left: auto; }
.text-btn, .reveal, .icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 5px 9px; background: transparent; border: 0; border-radius: 10px; font-weight: 700; color: var(--blue); font-size: 14px; }
.text-btn:hover, .icon-btn:hover, .reveal:hover { background: #edf7fa; }
.reveal { min-width: 44px; margin-right: -10px; color: var(--muted); }.icon-btn { flex-shrink: 0; min-width: 44px; }
.feedback { margin-top: 13px; padding: 9px 12px; border-radius: 10px; background: #fff0ec; color: #9d3e2d; font-size: 14px; }
.success-view { text-align: center; padding: 3px 0 10px; }
.success-icon { display: grid; place-items: center; height: 56px; width: 56px; margin: 0 auto 14px; background: #dff5b8; border-radius: 20px; color: #4e8916; font-size: 30px; box-shadow: 0 3px 0 #c8e79e; }
.success-icon.pending { background: #fff1c7; color: #885709; box-shadow: 0 3px 0 #f0dc9d; }
.success-icon.rejected { background: #ffeae6; color: #943f32; box-shadow: 0 3px 0 #f4cbc2; }
.success-view h2 { font-size: 25px; }.success-view p { color: var(--muted); font-size: 14px; margin: 6px 0; }
/* 手机号 + 获取验证码 同一行；窄屏自动换行 */
.input-row { display: flex; align-items: stretch; gap: 9px; }
.input-row .input-box { flex: 1 1 auto; min-width: 0; }
.input-row .btn { flex: 0 0 auto; white-space: nowrap; padding-inline: 16px; }
.input-row .btn:disabled { opacity: .65; cursor: not-allowed; }
.notice-box { display: flex; gap: 10px; margin-top: 16px; padding: 11px 13px; border: 2px solid #d9e8f2; border-radius: 13px; background: #f3fafd; color: #2d5b70; }
.notice-box > i { flex-shrink: 0; font-size: 17px; margin-top: 1px; }
.notice-box p { margin: 0; font-size: 12.5px; line-height: 1.6; }

/* ---- 兑换处理动画：覆盖在表单面板上，四步对应两次真实请求 ---- */
.form-panel { position: relative; }
.proc-overlay { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; padding: 18px; border-radius: inherit; background: rgba(250, 252, 247, .82); backdrop-filter: blur(3px); opacity: 0; transition: opacity .22s ease; }
.proc-overlay.is-in { opacity: 1; }
.proc-card { width: min(100%, 340px); padding: 22px 20px 16px; border: 2px solid #d6ecbf; border-radius: 18px; background: #fff; box-shadow: 0 14px 34px rgba(60, 90, 40, .16); text-align: center; }

/* 三点脉冲，表示「正在进行」；不声称具体百分比 */
.proc-spinner { display: flex; justify-content: center; gap: 7px; margin-bottom: 14px; height: 22px; align-items: center; }
.proc-spinner span { width: 9px; height: 9px; border-radius: 50%; background: #80d61b; animation: proc-bounce 1.15s infinite ease-in-out; }
.proc-spinner span:nth-child(2) { animation-delay: .16s; background: #5fb80a; }
.proc-spinner span:nth-child(3) { animation-delay: .32s; background: #437f14; }
.proc-spinner.is-failed span { animation: none; background: #d88474; }
@keyframes proc-bounce {
  0%, 80%, 100% { transform: translateY(0) scale(.8); opacity: .45; }
  40% { transform: translateY(-7px) scale(1); opacity: 1; }
}

.proc-title { font-size: 17px; font-weight: 850; margin: 0 0 3px; }
.proc-note { margin: 0 0 15px; font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.proc-steps { list-style: none; margin: 0; padding: 0; text-align: left; display: grid; gap: 9px; }
.proc-step { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: #98a396; transition: color .2s ease; }
.proc-dot { display: grid; place-items: center; flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; background: #edf0eb; color: #84907f; font-size: 12px; transition: background .2s ease, color .2s ease; }
.proc-step.is-active { color: var(--forest); font-weight: 750; }
.proc-step.is-active .proc-dot { background: #dcf4b7; color: #3e7217; animation: proc-pulse 1.1s ease-in-out infinite; }
.proc-step.is-done { color: var(--forest); }
.proc-step.is-done .proc-dot { background: #80d61b; color: #fff; }
.proc-step.is-failed { color: #943f32; font-weight: 750; }
.proc-step.is-failed .proc-dot { background: #f3c9c0; color: #943f32; }
@keyframes proc-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(128, 214, 27, .55); } 50% { box-shadow: 0 0 0 5px rgba(128, 214, 27, 0); } }
.proc-actions { margin-top: 15px; }
.proc-actions .btn { width: 100%; }
/* 步骤行尾的补充说明：手机号、会员状态 */
.proc-note-inline { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 8px; font-size: 11.5px; font-style: normal; font-weight: 700; background: #eef1ec; color: #657062; }
.proc-note-inline.tone-ok { background: #e5f7ce; color: #3c741e; }
.proc-note-inline.tone-warn { background: #ffeae6; color: #943f32; }

/* 结果页的会员状态条 */
.member-banner { display: flex; align-items: center; gap: 12px; margin: 4px 0 14px; padding: 13px 15px; border: 2px solid #dee4d9; border-radius: 15px; background: #f8faf6; }
.member-banner.is-member { border-color: #cfe5ad; background: #f2fae6; }
.member-banner.is-free { border-color: #f0ddd6; background: #fdf6f3; }
.member-icon { display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 13px; background: #fff; color: #73826c; font-size: 19px; box-shadow: 0 2px 0 #e2e8dc; }
.member-banner.is-member .member-icon { color: #4e8916; box-shadow: 0 2px 0 #cbe6a6; }
.member-banner.is-free .member-icon { color: #a8614f; }
.member-banner strong { display: block; font-size: 12.5px; color: var(--muted); font-weight: 700; }
.member-flow { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 15px; font-weight: 800; }
.member-flow .member-before { color: #8a9386; }
.member-flow .member-after { color: #3c741e; }
.member-banner.is-free .member-flow .member-before { color: #a8614f; }
.member-banner small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--muted); }

/* 后台表格里的会员标签 */
.member-tag { display: inline-block; padding: 2px 8px; border-radius: 8px; font-size: 11.5px; font-weight: 700; }
.member-tag.is-member { background: #e5f7ce; color: #3c741e; }
.member-tag.is-free { background: #ffeae6; color: #943f32; }
.muted { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .proc-spinner span, .proc-step.is-active .proc-dot { animation: none; }
  .proc-overlay { transition: none; }
}
.lookup-form, .results { margin-top: 19px; }
.order-card { border: 2px solid var(--line); border-radius: 14px; padding: 15px 18px; background: #fafcf7; }
.order-card + .order-card { margin-top: 11px; }
.order-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.order-card dl { display: grid; grid-template-columns: max-content minmax(0,1fr); gap: 7px 16px; font-size: 13px; }
.order-card dt { color: var(--muted); }.order-card dd { text-align: right; overflow-wrap: anywhere; }
.back-link { display: grid; place-items: center; min-height: 44px; margin-top: 6px; color: var(--blue); font-weight: 700; font-size: 14px; }
.badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 20px; padding: 3px 10px; font-weight: 700; font-size: 12px; color: #596459; background: #eef1ec; white-space: nowrap; }
.badge b { width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.pending { background: #fff1c7; color: #885709; }.processing { background: #e1f5ff; color: #156389; }
.completed, .available { background: #e5f7ce; color: #3c741e; }.rejected, .expired { background: #ffeae6; color: #943f32; }

/* The working area uses the same palette and raised controls as redemption. */
.admin-brand-label { margin-left: 18px; padding-left: 18px; border-left: 2px solid var(--line); color: var(--muted); font-weight: 650; font-size: 14px; }.logout { margin-left: 10px; }
.admin-main { padding-top: 28px; min-height: 65vh; }
.login-wrap { width: min(100%, 450px); margin: clamp(24px, 8vh, 84px) auto 45px; padding: 30px; border-top: 5px solid #9bdb49; }
.login-mark { width: 49px; height: 49px; margin-bottom: 15px; color: #4c841e; background: #e6f8c7; font-size: 25px; }
.login-wrap h1 { font-size: 25px; font-weight: 850; }.login-wrap > p { margin: 5px 0 21px; color: var(--muted); font-size: 14px; }
.desk-head, .section-title, .table-tools, .pagination, .dialog-head, .dialog-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.desk-head { padding: 21px 25px; margin-bottom: 17px; border: 2px solid #cfe5ad; border-radius: 20px; background: #edf8d6; }
.desk-head h1 { font-size: 31px; font-weight: 900; line-height: 1.3; letter-spacing: -.04em; color: #345725; }
.desk-head p, .section-title p, .dialog-head p { margin-top: 4px; color: var(--muted); font-size: 13px; }.desk-head .btn { flex-shrink: 0; margin-bottom: 3px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 23px; }
.metric { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center; gap: 6px; padding: 16px 18px; }
.metric-label { grid-area: 1/1; font-size: 13px; color: var(--muted); font-weight: 700; }.metric strong { grid-area: 2/1; font: 800 32px/1.05 "Nunito", Arial, sans-serif; }
.metric-icon { grid-area: 1/2/3/3; width: 41px; height: 41px; color: #477e15; background: #e7f8ca; font-size: 21px; }
.metric-pending .metric-icon { background: #fff1c4; color: #93640e; }.metric-processing .metric-icon { background: #def4ff; color: #127ba9; }.metric-completed .metric-icon { background: #eee7ff; color: #815cb5; }
.admin-tabs { display: flex; gap: 11px; margin-bottom: 13px; }.admin-tabs a { padding-inline: 13px; }
.table-panel { padding: 20px 23px; }.section-title h2 { font-size: 20px; }
.table-tools { margin: 17px 0; justify-content: start; flex-wrap: wrap; }
.table-tools .input-box { max-width: 330px; min-height: 44px; }.table-tools input { height: 40px; }
select, .plain-input, textarea { min-height: 44px; border: 2px solid var(--line); border-radius: 11px; background: #f8faf6; padding: 7px 11px; font-size: 16px; }
.table-scroll { overflow-x: auto; }.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th, .data-table td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table th { color: var(--muted); background: #f4f7f0; font-size: 12px; font-weight: 700; }
.data-table td > small { display: block; font-size: 11px; color: var(--muted); }.data-table .breakable { white-space: normal; overflow-wrap: anywhere; }
.mono { font-family: "IBM Plex Mono", Consolas, monospace; }
.empty { padding: 31px 12px; text-align: center; color: var(--muted); font-size: 14px; }.empty i { display: grid; place-items: center; width: 46px; height: 44px; margin: 0 auto 8px; background: #edf6e4; color: #689445; border-radius: 15px; font-size: 23px; }
.pagination { margin-top: 14px; font-size: 13px; color: var(--muted); }.pager-btns { display: flex; align-items: center; gap: 9px; }
.pager-btns button { border: 2px solid var(--line); background: #fff; }.pager-btns button:disabled { opacity: .45; }
dialog { width: min(460px, calc(100% - 32px)); max-height: calc(100dvh - 44px); margin: auto; padding: 24px; border: 2px solid var(--line); border-radius: 21px; color: var(--ink); box-shadow: 0 6px 0 #28362126, 0 18px 65px #263d2533; }
dialog::backdrop { background: #20301e77; }.dialog-head { align-items: flex-start; margin-bottom: 16px; }.dialog-head h2 { font-size: 21px; }.dialog-head p { overflow-wrap: anywhere; }.dialog-head .icon-btn { margin: -6px -6px 0 0; }
.dialog-form .plain-input, .dialog-form select { width: 100%; }.dialog-actions { margin: 20px 0 4px; justify-content: flex-end; }.codes-list { width: 100%; min-height: 155px; resize: vertical; font-size: 14px; }
.dialog-notice { margin-top: 5px; font-size: 13px; color: var(--forest); }
.toast { position: fixed; z-index: 10; bottom: max(18px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); max-width: 94%; padding: 9px 16px; border-radius: 12px; color: #fff; background: #38552a; font-size: 14px; }
.loading { color: var(--muted); }

@media (max-width: 960px) {
  .wrap { width: calc(100% - 44px); }.hero-copy { padding-left: 32px; }
  .customer-grid { grid-template-columns: minmax(0,1.5fr) minmax(260px,1fr); gap: 16px; }.form-panel, .guide { padding: 21px; }
  .metric { padding: 13px; }.top-nav { margin-left: 28px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }.top-inner { min-height: 65px; }.brand { font-size: 21px; }.brand-icon { width: 34px; height: 34px; }
  .hero { min-height: 164px; border-radius: 20px; }.hero-copy { padding: 24px; }.hero-art { width: 48%; }
  .customer-grid { grid-template-columns: minmax(0,1fr); margin-top: 17px; gap: 16px; }.customer-main, .admin-main { padding-top: 19px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }.desk-head { padding: 15px 17px; }.desk-head h1 { font-size: 25px; }
  .table-panel { padding: 16px; }.table-tools { gap: 8px; }.table-tools .input-box { flex: 1 1 160px; }
  .table-scroll { overflow: visible; }.data-table, .data-table tbody { display: block; }
  .data-table thead { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  .data-table tr { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 8px 9px; border: 2px solid var(--line); border-radius: 13px; padding: 12px; }
  .data-table tr + tr { margin-top: 10px; }
  .data-table td { display: block; border: 0; padding: 0; min-width: 0; white-space: normal; }
  .data-table .cell-title { grid-area: 1/1; font-weight: 700; overflow-wrap: anywhere; }
  .cell-title small { font-weight: 400; }.data-table .cell-state { grid-area: 1/2; justify-self: end; }
  .data-table td[data-label] { grid-column: 1/-1; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 12px; text-align: right; overflow-wrap: anywhere; }
  .data-table td[data-label]::before { content: attr(data-label); color: var(--muted); font-weight: 550; }
  .data-table .cell-action { grid-column: 1/-1; justify-self: stretch; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; }.cell-action button { margin-bottom: -6px; }
}
@media (max-width: 620px) {
  .customer-body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .top-nav { position: fixed; inset: auto 0 0; z-index: 5; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 0; padding: 6px max(14px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); background: #fff; border-top: 2px solid var(--line); }
  .top-nav a { flex-direction: column; gap: 3px; min-height: 49px; padding: 3px 10px; font-size: 12px; line-height: 1.3; border-radius: 12px; }.top-nav .bi { font-size: 18px; }
  .admin-brand-label { display: none; }.logout { margin-left: 4px; }.admin-link { font-size: 12px; padding: 6px 10px; }.admin-link .bi-arrow-up-right { display: none; }
  .hero-copy { width: 60%; padding: 16px 0 16px 18px; }.hero { min-height: 138px; }.hero h1 { font-size: clamp(22px, 5.8vw, 32px); }
  .hero p { margin-top: 6px; font-size: 12px; }.hero p br { display: none; }.hero-art { width: 43%; }
  .hero-mascot { right: 3%; max-width: 94%; }.cloud-one { display: none; }.cloud-two { top: 12%; transform: scale(.5); right: 0; }
  .form-panel, .guide { padding: 18px; }.panel-heading h2 { font-size: 20px; }.guide h2 { font-size: 18px; }
  .footer { min-height: 51px; margin-top: 22px; }.side-stack { gap: 13px; }.login-wrap { padding: 23px; }
}
@media (max-width: 420px) {
  .wrap { width: calc(100% - 24px); }.top-inner { min-height: 59px; }.brand { font-size: 19px; gap: 8px; }.brand-icon { width: 31px; height: 31px; }
  .customer-main, .admin-main { padding-top: 13px; }.hero { min-height: 126px; }.hero-art { width: 41%; }
  .form-panel, .guide { padding: 16px; }.customer-grid { margin-top: 14px; }.stepper { margin: 17px 0; }.heading-icon { width: 34px; height: 34px; font-size: 18px; }
  .desk-head h1 { font-size: 22px; }.desk-head p { font-size: 12px; }.desk-head .btn { padding-inline: 11px; font-size: 14px; }
  .metric { padding: 11px; }.metric-icon { width: 31px; height: 31px; font-size: 17px; }.metric strong { font-size: 27px; }
  .admin-tabs { gap: 4px; }.table-panel { padding: 12px; }.section-title { align-items: flex-start; }.table-tools .input-box { flex-basis: 100%; max-width: none; }
  .pagination, .pager-btns { gap: 7px; }.order-card { padding: 12px; }.order-card dl { gap: 6px 8px; }.logout { padding-inline: 5px; font-size: 12px; }
  dialog { padding: 18px; width: calc(100% - 24px); }.dialog-actions { gap: 8px; }.dialog-actions .btn { flex: 1; padding-inline: 8px; }
}
@media (max-width: 370px) {
  .admin-link { padding-inline: 6px; }.logout { white-space: nowrap; }
  .admin-link .bi, .logout .bi { display: none; }
}
@media (max-width: 355px) { .hero-art { width: 39%; }.hero-copy { padding-left: 13px; }.metric-label { font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
