:root{
  --bg:#f6f2ed;
  --ink:#241f20;
  --muted:#70686a;
  --line:#e8dfd6;
  --red:#d8291c;
  --red-soft:#fff5f3;
  --warm:#fffaf8;
  --card:#fff;
  --side:#fff;
  --side-border:#e8dfd6;
  --ok:#1f7a4c;
  --warn:#9a6b16;
  --bad:#8f271f;
  --shadow:0 18px 50px rgba(67,42,31,.10);
  /* 全后台统一字号 / 控件高度 */
  --fs:13px;
  --fs-sm:12px;
  --fs-lg:14px;
  --fs-title:16px;
  --fs-page:22px;
  --ctrl-h:36px;
  --radius:10px;
  --radius-lg:12px;
  --fw:700;
  --fw-strong:800;
}
[hidden]{display:none!important}
*{box-sizing:border-box}
body{
  margin:0;
  font-family:"PingFang SC","Microsoft YaHei",sans-serif;
  font-size:var(--fs);
  line-height:1.45;
  background:var(--bg);
  color:var(--ink);
}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
button:disabled{opacity:.45;cursor:not-allowed}
code{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:var(--fs-sm);
  color:#5c3d3a;
}
.muted{color:var(--muted);font-size:var(--fs-sm);line-height:1.5;font-weight:600}

/* login — 与顾客页同气质 */
.login-wrap{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:24px;
  background:
    radial-gradient(900px 420px at 15% -10%, rgba(216,41,28,.12), transparent 55%),
    radial-gradient(700px 360px at 100% 0%, rgba(216,41,28,.06), transparent 50%),
    var(--bg);
}
.login-card{
  width:min(100%,400px);
  display:grid;
  gap:12px;
  padding:28px;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:var(--shadow);
}
.login-card h1{margin:0;font-size:var(--fs-page);color:var(--red);font-weight:var(--fw-strong)}
.login-sub{margin:0 0 4px;color:var(--muted);font-size:var(--fs-sm);line-height:1.5}
.login-card label{display:grid;gap:6px;font-size:var(--fs-sm);font-weight:var(--fw-strong)}
.login-card input,
.row input,
.row select,
textarea,
.field,
.field-block input,
.field-block select,
.toolbar input,
.toolbar select,
.menu-q-inline,
.sell-n-input{
  min-height:var(--ctrl-h);
  height:var(--ctrl-h);
  padding:0 12px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:#fff;
  color:var(--ink);
  font-size:var(--fs);
  font-weight:var(--fw);
}
textarea{padding:10px 12px;min-height:72px;height:auto;resize:vertical;line-height:1.5}
.login-card input:focus,
.row input:focus,
.row select:focus,
textarea:focus,
.toolbar input:focus,
.toolbar select:focus{
  outline:none;
  border-color:var(--red);
  box-shadow:0 0 0 3px rgba(216,41,28,.12);
}
/* 起止日期：短框内暗色占位；自绘日历（无数据日灰掉不可选） */
.toolbar .range-field{
  position:relative;
  display:inline-block;
  width:9.6rem;
}
.toolbar .range-field .range-trigger{
  width:100%;
  min-height:var(--ctrl-h);
  height:var(--ctrl-h);
  padding:0 10px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:#fff;
  color:var(--ink);
  font-size:var(--fs);
  font-weight:var(--fw);
  text-align:left;
  cursor:pointer;
}
.toolbar .range-field.is-empty .range-trigger{color:var(--muted)}
.toolbar .range-field .range-trigger:focus{
  outline:none;
  border-color:var(--red);
  box-shadow:0 0 0 3px rgba(216,41,28,.12);
}
.range-picker{
  position:fixed;
  z-index:1200;
  width:268px;
  padding:12px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  box-shadow:var(--shadow);
}
.range-picker-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:8px;
  font-size:14px;
}
.range-picker .range-nav{
  width:32px;
  height:32px;
  border:0;
  border-radius:10px;
  background:transparent;
  color:var(--ink);
  font-size:18px;
  line-height:1;
}
.range-picker .range-nav:hover{background:var(--warm)}
.range-weeks,
.range-grid{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:2px;
  text-align:center;
}
.range-weeks{
  margin-bottom:4px;
  color:var(--muted);
  font-size:11px;
}
.range-day{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  border:0;
  border-radius:8px;
  background:transparent;
  font-size:13px;
  color:var(--ink);
}
.range-day.empty{visibility:hidden}
.range-day.muted{
  color:#c8bfb8;
  opacity:.55;
  pointer-events:none;
  cursor:default;
}
.range-day.has-data{cursor:pointer}
.range-day.has-data:hover{background:var(--red-soft);color:var(--red)}
.range-day.selected{
  background:var(--red);
  color:#fff;
  font-weight:700;
}
.range-time{
  display:flex;
  align-items:center;
  gap:6px;
  margin-top:10px;
}
.range-time select{
  flex:1;
  min-height:36px;
  padding:0 8px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
}
.range-picker-foot{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-top:10px;
}
.login-card button,
.btn-primary{
  min-height:var(--ctrl-h);
  height:var(--ctrl-h);
  border:0;
  border-radius:var(--radius);
  background:var(--red);
  color:#fff;
  font-size:var(--fs);
  font-weight:var(--fw-strong);
  padding:0 14px;
  line-height:1;
}
.login-card button:hover,
.btn-primary:hover{filter:brightness(.96)}
.eyebrow{
  margin:0;
  color:var(--red);
  font-size:var(--fs-sm);
  font-weight:var(--fw-strong);
  letter-spacing:.12em;
}
.err{
  color:var(--bad);
  background:#feeceb;
  padding:10px 12px;
  border-radius:var(--radius);
  font-size:var(--fs-sm);
  font-weight:var(--fw);
}

/* shell：左侧菜单固定，只滚右侧内容 */
.shell{
  display:grid;
  grid-template-columns:220px 1fr;
  height:100vh;
  max-height:100vh;
  overflow:hidden;
}
aside{
  background:var(--side);
  border-right:1px solid var(--side-border);
  padding:20px 12px;
  display:flex;
  flex-direction:column;
  gap:6px;
  height:100%;
  overflow-y:auto;
  overscroll-behavior:contain;
}
.brand{padding:2px 10px 16px}
.brand b{
  display:block;
  color:var(--red);
  font-size:var(--fs-title);
  font-weight:var(--fw-strong);
  letter-spacing:.01em;
}
.brand span{
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:var(--fs-sm);
  font-weight:600;
}
.nav-group{
  margin:14px 10px 6px;
  font-size:var(--fs-sm);
  font-weight:var(--fw-strong);
  color:#9a5550;
  letter-spacing:.08em;
}
aside nav{display:grid;gap:2px;flex:1;align-content:start}
aside nav button{
  text-align:left;
  min-height:var(--ctrl-h);
  padding:0 12px;
  border:0;
  border-radius:var(--radius);
  background:transparent;
  color:var(--ink);
  font-weight:var(--fw);
  font-size:var(--fs);
  line-height:var(--ctrl-h);
}
aside nav button:hover{background:#f7f3ef}
aside nav button.active{
  background:var(--red-soft);
  color:var(--red);
  box-shadow:inset 3px 0 0 var(--red);
}
.top-userbar{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex:0 0 auto;
  margin:0;
  z-index:40;
}
.top-user-trigger{
  display:inline-flex;
  align-items:center;
  gap:10px;
  max-width:240px;
  min-height:40px;
  padding:4px 10px 4px 4px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--card);
  color:var(--ink);
  box-shadow:0 1px 0 rgba(67,42,31,.04);
  cursor:pointer;
  transition:border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.top-user-trigger:hover,
.top-userbar.is-open .top-user-trigger{
  border-color:#e0d4c8;
  background:#fff;
  box-shadow:0 6px 18px rgba(67,42,31,.08);
}
.top-user-avatar{
  flex:0 0 auto;
  width:30px;
  height:30px;
  border-radius:50%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(145deg,#ffe8e3 0%,#ffd2cb 100%);
  color:var(--red);
  font-size:12px;
  font-weight:var(--fw-strong);
  line-height:1;
  user-select:none;
  box-shadow:inset 0 0 0 1px rgba(216,41,28,.08);
}
.top-user-avatar-lg{
  width:42px;
  height:42px;
  font-size:15px;
}
.top-user-trigger-meta{
  display:flex;
  flex-direction:column;
  gap:1px;
  min-width:0;
  text-align:left;
  line-height:1.2;
}
.top-user-trigger-name{
  font-size:var(--fs-sm);
  font-weight:var(--fw-strong);
  color:var(--ink);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.top-user-trigger-role{
  font-size:11px;
  font-weight:600;
  color:var(--muted);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.top-user-trigger-role:empty{display:none}
.top-user-caret{
  flex:0 0 auto;
  color:var(--muted);
  transition:transform .18s ease;
}
.top-userbar.is-open .top-user-caret{transform:rotate(180deg)}
.top-user-menu{
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  width:280px;
  padding:0;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--card);
  box-shadow:0 18px 40px rgba(67,42,31,.14);
  overflow:hidden;
  transform-origin:top right;
  animation:topUserIn .16s ease;
}
@keyframes topUserIn{
  from{opacity:0;transform:translateY(-4px) scale(.98)}
  to{opacity:1;transform:none}
}
.top-user-card-head{
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:16px 16px 14px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(216,41,28,.08), transparent 55%),
    linear-gradient(180deg,#fffaf8 0%,#fff 100%);
  border-bottom:1px solid var(--line);
}
.top-user-card-meta{
  flex:1;
  min-width:0;
  display:grid;
  gap:8px;
}
.top-user-card-row{
  display:grid;
  gap:3px;
  min-width:0;
}
.top-user-k{
  font-size:11px;
  font-weight:700;
  color:var(--muted);
  letter-spacing:.04em;
}
.top-user-v{
  font-size:var(--fs);
  font-weight:var(--fw-strong);
  color:var(--ink);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.top-user-badge{
  display:inline-flex;
  align-items:center;
  width:fit-content;
  max-width:100%;
  min-height:22px;
  padding:0 8px;
  border-radius:999px;
  background:var(--red-soft);
  color:var(--red);
  font-size:11px;
  font-weight:var(--fw-strong);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.top-user-card-actions{
  display:grid;
  gap:2px;
  padding:8px;
}
.top-user-act{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  min-height:38px;
  padding:0 12px;
  border:0;
  border-radius:10px;
  background:transparent;
  color:var(--ink);
  font-size:var(--fs);
  font-weight:var(--fw);
  text-align:left;
  cursor:pointer;
}
.top-user-act svg{color:var(--muted);flex:0 0 auto}
.top-user-act:hover{
  background:var(--warm);
}
.top-user-act:hover svg{color:var(--ink)}
.top-user-act-danger{
  color:var(--bad);
}
.top-user-act-danger svg{color:var(--bad)}
.top-user-act-danger:hover{
  background:var(--red-soft);
}
.ghost{
  text-align:left;
  min-height:var(--ctrl-h);
  padding:0 12px;
  border:0;
  border-radius:var(--radius);
  background:transparent;
  color:var(--muted);
  font-size:var(--fs);
  font-weight:var(--fw);
  line-height:var(--ctrl-h);
}
.ghost:hover{color:var(--ink);background:#f7f3ef}

/* 主区锁死：顶栏/标题固定，只让面板内部滚 */
main{
  display:flex;
  flex-direction:column;
  padding:20px clamp(16px,2.8vw,32px) 20px;
  min-width:0;
  height:100%;
  max-height:100%;
  overflow:hidden;
  overscroll-behavior:contain;
  box-sizing:border-box;
}
.page-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex:0 0 auto;
  margin:0 0 14px;
  min-height:40px;
}
.page-head-left{
  min-width:0;
  flex:1 1 auto;
}
.page-head-right{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex:0 0 auto;
}
.page-head.is-ship .page-head-left{
  visibility:hidden;
  pointer-events:none;
}
.page-head h1{
  margin:0;
  font-size:var(--fs-page);
  color:var(--red);
  font-weight:var(--fw-strong);
  line-height:1.25;
}
.page-head .eyebrow{margin:0 0 4px}
.page-head #page-sub{margin:4px 0 0;color:var(--muted);font-size:var(--fs-sm);line-height:1.5}
.page-head p{margin:0;color:var(--muted);font-size:var(--fs-sm);line-height:1.5}
.page-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.toolbar .toolbar-stats{
  display:inline-flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}

.panel{
  flex:1 1 auto;
  min-height:0;
  display:flex;
  flex-direction:column;
  gap:14px;
  overflow:hidden;
}
/* 多区块页（监测/总览/设置等）：面板整体滚动，主壳仍不晃 */
.panel.panel-scroll{
  display:grid;
  align-content:start;
  overflow-y:auto;
  overscroll-behavior:contain;
}
.panel > .cards{flex:0 0 auto}
.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.cards.cards-6{grid-template-columns:repeat(6,minmax(0,1fr))}
.cards.cards-5{grid-template-columns:repeat(5,minmax(0,1fr))}
.card{
  padding:16px 18px;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:16px;
}
.card small{color:var(--muted);font-size:var(--fs-sm);font-weight:var(--fw)}
.card strong{
  display:block;
  margin-top:8px;
  font-size:22px;
  letter-spacing:-.02em;
  color:var(--ink);
  font-weight:var(--fw-strong);
}
.card .hint{margin-top:6px;font-size:var(--fs-sm);color:var(--muted)}
.dist-list{display:grid;gap:8px}
.dist-row{
  display:grid;
  grid-template-columns:5.5rem 1fr 2.2rem;
  gap:8px;
  align-items:center;
}
.dist-label{font-size:var(--fs);color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dist-track{
  height:8px;
  border-radius:999px;
  background:#f0e8e2;
  overflow:hidden;
}
.dist-track i{
  display:block;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,#e85a4f,var(--red));
}
.dist-num{font-size:13px;font-weight:700;text-align:right;color:var(--ink)}
.dash-meta{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
.dash-meta > div{
  display:grid;
  gap:4px;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--warm);
}
.dash-meta > div.wide{grid-column:1 / -1}
.dash-meta span{font-size:12px;color:var(--muted);font-weight:700}
.dash-meta strong{font-size:14px;font-weight:700;word-break:break-all}
/* 总览四宫格：高度固定，内容多了框内滚动 */
.dash-grid{align-items:stretch}
.dash-panel{
  display:flex;
  flex-direction:column;
  height:260px;
  min-height:260px;
  max-height:260px;
  overflow:hidden;
}
.dash-panel .box-head{flex:0 0 auto;margin-bottom:10px}
.dash-scroll{
  flex:1 1 auto;
  min-height:0;
  overflow:auto;
  overscroll-behavior:contain;
  padding-right:2px;
}
.dash-scroll .ops-table{margin:0}
.dash-scroll .ops-table thead th{
  position:sticky;
  top:0;
  background:var(--card);
  z-index:1;
}

.box{
  padding:18px;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:16px;
}
.box h2{margin:0 0 14px;font-size:var(--fs-title);color:var(--red);font-weight:var(--fw-strong)}
.box-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.box-head h2{margin:0}
/* 列表页：头+筛选+分页钉住，只滚表格 */
.list-panel{
  flex:1 1 auto;
  min-height:0;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.list-panel > .box-head,
.list-panel > .toolbar,
.list-panel > .pager{
  flex:0 0 auto;
}
.list-panel > .toolbar{margin-bottom:10px}
.table-scroll{
  flex:1 1 auto;
  min-height:0;
  overflow:auto;
  overscroll-behavior:contain;
  margin:0 -2px;
  padding:0 2px;
}
.table-scroll .ops-table{margin:0}
.table-scroll .ops-table thead th{
  position:sticky;
  top:0;
  z-index:2;
  background:#faf7f4;
}
.list-panel > .pager{margin-top:10px}
.row{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px;align-items:center}
.row:last-child{margin-bottom:0}
.field-block{display:grid;gap:6px;flex:1;min-width:140px}
.field-block label{font-size:var(--fs-sm);font-weight:var(--fw-strong);color:var(--muted)}
.grid-2{display:grid;grid-template-columns:1.1fr .9fr;gap:14px}
.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}

table{width:100%;border-collapse:collapse;font-size:var(--fs)}
th,td{
  padding:10px 8px;
  border-bottom:1px solid #f0ebe6;
  text-align:left;
  vertical-align:top;
}
th{color:var(--muted);font-weight:var(--fw-strong);font-size:var(--fs-sm);white-space:nowrap}
tbody tr:hover{background:var(--warm)}

/* 订单 / 短链运营表：统一字色字号，少蓝少高对比 */
.ops-table{
  font-size:var(--fs);
  color:var(--ink);
  border-top:1px solid var(--line);
}
.ops-table th{
  font-size:var(--fs-sm);
  font-weight:var(--fw-strong);
  color:#7d7375;
  background:#faf7f4;
  border-bottom:1px solid var(--line);
  padding:10px;
  letter-spacing:0;
}
.ops-table td{
  padding:10px;
  border-bottom:1px solid #f1ebe6;
  font-size:var(--fs);
  font-weight:500;
  color:var(--ink);
  vertical-align:top;
  line-height:1.45;
}
.ops-table tbody tr:hover{background:#faf6f3}
.ops-table .ops-id{
  font-weight:700;
  font-variant-numeric:tabular-nums;
}
.ops-table .ops-time{
  font-variant-numeric:tabular-nums;
  line-height:1.4;
  color:var(--ink);
  white-space:nowrap;
}
.ops-table .ops-sub{
  color:var(--muted);
  font-size:var(--fs-sm);
  font-weight:500;
  margin-top:3px;
  line-height:1.4;
}
.ops-table a.ops-jump{
  color:var(--ink);
  text-decoration:none;
  font-weight:600;
  cursor:pointer;
  word-break:break-all;
}
.ops-table a.ops-jump:hover{color:var(--red)}
.ops-table a.ops-url{
  color:var(--ink);
  text-decoration:underline;
  text-underline-offset:2px;
  text-decoration-color:#d2c8c0;
  font-weight:500;
  word-break:break-all;
  max-width:240px;
  display:inline-block;
}
.ops-table a.ops-url:hover{
  color:var(--red);
  text-decoration-color:var(--red);
}
.ops-table tr.ops-focus{
  background:#f7f2ee !important;
  box-shadow:inset 3px 0 0 var(--red);
}
.ops-table .ops-code{
  font-weight:700;
  font-variant-numeric:tabular-nums;
  letter-spacing:.02em;
}

.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:3px 8px;
  border-radius:6px;
  background:#e8e4df;
  font-size:var(--fs-sm);
  font-weight:var(--fw-strong);
  color:#666;
  white-space:nowrap;
  line-height:1.2;
  box-sizing:border-box;
}
/* 表格状态徽标与同行操作按钮同高，避免顶对齐看起来“往上飘” */
.ops-table td > .badge:only-child,
.ops-table td > .badge:first-child:last-child{
  height:var(--ctrl-h);
  min-height:var(--ctrl-h);
  padding:0 12px;
  border-radius:var(--radius);
  font-size:var(--fs);
}
.badge.ok{background:var(--red);color:#fff}
.badge.warn{background:#fff2cf;color:var(--warn)}
.badge.bad{background:#feeceb;color:var(--bad)}
.badge.info{background:#f7f3ef;color:#7a4a45}
.badge.stub{
  background:transparent;
  color:var(--muted);
  border:1px dashed #d9cfc6;
  font-weight:var(--fw);
}

.btn-tiny,.tiny{
  min-height:var(--ctrl-h);
  height:var(--ctrl-h);
  padding:0 12px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:#fff;
  font-size:var(--fs);
  font-weight:var(--fw);
  color:var(--ink);
  line-height:1;
}
.btn-tiny:hover,.tiny:hover{background:var(--warm)}
.btn-tiny.danger,.tiny.danger,.danger{color:var(--bad)}
.btn-tiny.primary{
  background:var(--red);
  border-color:var(--red);
  color:#fff;
}

pre.msg{
  white-space:pre-wrap;
  background:var(--warm);
  padding:12px;
  border-radius:12px;
  font-size:12px;
  border:1px solid var(--line);
  margin:0;
  line-height:1.55;
  max-height:220px;
  overflow:auto;
}
.cred-row{
  display:grid;
  grid-template-columns:minmax(140px,180px) 1fr auto;
  gap:8px 12px;
  align-items:center;
  padding:10px 0;
  border-bottom:1px solid var(--line);
}
.cred-row:last-of-type{border-bottom:0}
.cred-label{font-size:13px;color:#6b4a45}
.cred-val{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:12px;
  background:var(--warm);
  padding:8px 10px;
  border-radius:8px;
  border:1px solid var(--line);
}
.cred-actions{display:flex;gap:6px;flex-shrink:0}
.ep-url{display:inline-block;max-width:42vw;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;margin-right:6px}
.ch-log-detail td{background:#fbf8f5}
@media (max-width:860px){
  .cred-row{grid-template-columns:1fr;gap:6px}
  .ep-url{max-width:70vw}
}
.toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:12px}
.toolbar .spacer{flex:1}
.meal-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin:12px 0 8px;
  padding:4px;
  background:var(--warm);
  border-radius:12px;
  border:1px solid var(--line);
}
.meal-tab{
  min-height:var(--ctrl-h);
  height:var(--ctrl-h);
  padding:0 12px;
  border:0;
  border-radius:var(--radius);
  background:transparent;
  display:inline-flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:1px;
  line-height:1.15;
  font-size:var(--fs);
  font-weight:var(--fw-strong);
  color:var(--muted);
  cursor:pointer;
}
.meal-tab small{
  font-size:var(--fs-sm);
  font-weight:600;
  opacity:.72;
}
.meal-tab:hover{color:var(--ink);background:#fff}
.meal-tab.on{background:var(--red);color:#fff}
.meal-tab.on small{opacity:.9;color:#fff}
.brand-tabs{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin:12px 0 4px;
}
.brand-tabs-with-q{gap:8px}
.menu-q-inline{
  flex:1 1 160px;
  min-width:140px;
  max-width:280px;
  margin:0;
}
.menu-q-inline:focus{
  outline:none;
  border-color:var(--red);
  box-shadow:0 0 0 2px rgba(216,41,28,.12);
}
.brand-tab{
  min-height:var(--ctrl-h);
  height:var(--ctrl-h);
  padding:0 14px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:#fff;
  font-size:var(--fs);
  font-weight:var(--fw-strong);
  color:var(--muted);
  cursor:pointer;
  line-height:1;
}
.brand-tab:hover{border-color:#c9b8ae;color:var(--ink)}
.brand-tab.on{background:#2b211c;border-color:#2b211c;color:#fff}
.brand-tab.kcoffee.on{background:#6b4f2a;border-color:#6b4f2a;color:#fff}
.kind-chips{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 4px}
.kind-chip{
  min-height:var(--ctrl-h);
  height:var(--ctrl-h);
  padding:0 12px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
  font-size:var(--fs);
  font-weight:var(--fw);
  color:var(--muted);
  cursor:pointer;
  line-height:1;
}
.kind-chip:hover{border-color:#c9b8ae;color:var(--ink)}
.kind-chip.on{background:#2b211c;border-color:#2b211c;color:#fff}
.flag-chips{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 4px}
.flag-chip{
  min-height:var(--ctrl-h);
  height:var(--ctrl-h);
  padding:0 12px;
  border:1px solid #e4cfc4;
  border-radius:999px;
  background:#fffaf8;
  font-size:var(--fs);
  font-weight:var(--fw);
  color:#8a4f45;
  cursor:pointer;
  line-height:1;
}
.flag-chip:hover{border-color:var(--red);color:var(--red)}
.flag-chip.on{background:var(--red);border-color:var(--red);color:#fff}
.store-selected{
  margin:8px 0 6px;
  font-size:var(--fs-sm);
  color:var(--muted);
}
.store-selected b{color:var(--ink);font-weight:800}
.store-pick-list{
  display:grid;
  gap:6px;
  max-height:220px;
  overflow:auto;
  padding:6px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--warm);
}
.store-pick-empty{padding:10px 4px;font-size:12px}
.store-pick{
  display:grid;
  grid-template-columns:1fr auto;
  grid-template-rows:auto auto;
  gap:2px 10px;
  text-align:left;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
  color:var(--ink);
  cursor:pointer;
}
.store-pick b{font-size:13px;font-weight:800;grid-column:1}
.store-pick .muted{font-size:11px;grid-column:1;grid-row:2}
.store-pick code{grid-column:2;grid-row:1 / span 2;align-self:center;font-size:11px}
.store-pick:hover{border-color:#c9b8ae}
.store-pick.on{border-color:var(--red);background:var(--red-soft);box-shadow:inset 3px 0 0 var(--red)}
.check-inline{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:13px;
  font-weight:700;
  color:var(--ink);
  cursor:pointer;
}
.check-inline input{accent-color:var(--red)}
.menu-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  gap:12px;
  margin-top:4px;
}
.menu-card{
  display:grid;
  grid-template-columns:96px 1fr;
  gap:10px;
  padding:10px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
  min-height:132px;
}
.menu-card.soldout{opacity:.72}
.sell-editor{margin-bottom:14px}
.sell-editor .toolbar{
  position:sticky;
  bottom:8px;
  z-index:5;
  padding:10px;
  background:rgba(255,255,255,.96);
  border:1px solid var(--line);
  border-radius:12px;
  box-shadow:0 6px 20px rgba(43,33,28,.08);
}
.sell-list-collapsed{opacity:.92}
.sell-actions{
  display:inline-flex;
  flex-wrap:nowrap;
  align-items:center;
  gap:6px;
  vertical-align:middle;
}
.sell-act{
  box-sizing:border-box;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:var(--ctrl-h);
  min-height:var(--ctrl-h);
  max-height:var(--ctrl-h);
  padding:0 12px;
  margin:0;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:#fff;
  font-size:var(--fs);
  font-weight:var(--fw);
  line-height:1;
  color:var(--ink);
  white-space:nowrap;
  cursor:pointer;
}
span.sell-act{
  cursor:default;
  background:#f3ece7;
  color:var(--muted);
}
span.sell-act.on{
  background:#e8f5e9;
  border-color:#a5d6a7;
  color:#2e7d32;
}
button.sell-act:hover{background:var(--warm)}
.sell-act.danger{color:#b91c1c;border-color:#f1c0c0}
.sell-act.danger:hover{background:#fef2f2;border-color:#b91c1c}
.ban-row{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
}
.ban-inline{
  height:24px;
  min-height:24px;
  max-height:24px;
  padding:0 8px;
  font-size:11px;
  border-radius:6px;
}
.pager{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin-top:12px;
  padding-top:10px;
  border-top:1px solid var(--line);
}
.pager .spacer{flex:1}
.pager-size{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:var(--fs-sm);
  font-weight:600;
  color:var(--muted);
}
.pager-size select{
  min-height:32px;
  height:32px;
  padding:0 8px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:#fff;
  font-size:var(--fs-sm);
  font-weight:var(--fw);
}
.pager-num{
  font-size:var(--fs-sm);
  font-weight:700;
  color:var(--ink);
  min-width:3.5rem;
  text-align:center;
  font-variant-numeric:tabular-nums;
}
.pager .btn-tiny:disabled{
  opacity:.45;
  cursor:not-allowed;
}
.btn-tiny.danger{color:#b91c1c;border-color:#f1c0c0}
.btn-tiny.danger:hover{background:#fef2f2;border-color:#b91c1c}
.sell-summary{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  align-items:flex-end;
  padding:12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--warm);
  margin-bottom:4px;
}
.sell-summary-name{flex:1.4;min-width:200px}
.sell-summary-name b{display:block;margin-top:4px;font-size:var(--fs-lg);line-height:1.35;font-weight:var(--fw-strong)}
.sell-summary-prices{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
}
.sell-summary-prices > div{min-width:110px}
.sell-summary-prices strong{display:block;margin-top:4px;font-size:var(--fs-title);color:var(--red);font-weight:var(--fw-strong)}
.sell-summary-prices .god strong{color:#9a3412}
.sell-chip{
  display:inline-flex;
  align-items:flex-start;
  gap:6px;
  padding:6px 10px;
  border-radius:10px;
  background:var(--warm);
  border:1px solid var(--line);
  font-size:12px;
  font-weight:700;
  max-width:100%;
}
.sell-chip.god{border-color:#e7b59a;background:#fff7f2}
.sell-chip b{display:inline}
.sell-chip small{display:block;font-weight:600;color:var(--muted);margin-top:2px}
.sell-god-tag{
  display:inline-block;
  margin-left:6px;
  padding:1px 5px;
  border-radius:4px;
  background:#9a3412;
  color:#fff;
  font-style:normal;
  font-size:10px;
  font-weight:800;
  vertical-align:middle;
}
.sell-pick-item.god{border-color:#e7b59a}
.sell-picked{
  margin:12px 0 8px;
}
.sell-picked-empty{
  padding:14px 12px;
  border:1.5px dashed #c9b8ae;
  border-radius:var(--radius-lg);
  background:#fffaf6;
  color:#6b5348;
  font-size:var(--fs);
  font-weight:var(--fw);
  line-height:1.45;
}
.sell-slots{
  display:grid;
  gap:10px;
}
.sell-slot{
  display:grid;
  grid-template-columns:72px 1fr 36px;
  gap:10px;
  align-items:center;
  padding:12px 12px 12px 10px;
  border:2px solid #2b211c;
  border-radius:14px;
  background:#fff;
  box-shadow:0 2px 0 rgba(43,33,28,.06);
}
.sell-slot.drink{
  border-color:#1d4f91;
  background:#f5f9ff;
}
.sell-slot-tag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:var(--ctrl-h);
  padding:6px 8px;
  border-radius:var(--radius);
  background:#2b211c;
  color:#fff;
  font-size:var(--fs);
  font-weight:var(--fw-strong);
  letter-spacing:.02em;
  text-align:center;
}
.sell-slot.drink .sell-slot-tag{
  background:#1d4f91;
}
.sell-slot-main{min-width:0}
.sell-slot-title{
  display:flex;align-items:center;gap:8px;flex-wrap:wrap;
  font-size:var(--fs-lg);
  font-weight:var(--fw-strong);
  color:#1a1410;
  line-height:1.35;
  word-break:break-word;
}
.sell-slot-price{
  margin-top:4px;
  font-size:var(--fs);
  font-weight:var(--fw-strong);
  color:var(--red);
}
.sell-slot-specs{
  margin-top:4px;
  font-size:var(--fs-sm);
  font-weight:var(--fw);
  color:#5c534c;
  line-height:1.4;
}
.sell-slot-x{
  border:0;
  background:#f3ece7;
  border-radius:10px;
  width:36px;height:36px;
  font-size:22px;
  line-height:1;
  color:#5c534c;
  cursor:pointer;
  font-weight:700;
}
.sell-slot-x:hover{background:#ffe4e1;color:var(--red)}
.sell-slot.pick{border-style:solid;border-color:#8b5a2b;background:#fffbf5}
.sell-slot.pick.drink{border-color:#1d4f91;background:#f5f9ff}
.sell-slot.pick.filling{
  border-color:var(--red);
  box-shadow:0 0 0 3px rgba(216,41,28,.18);
}
.sell-slot-tag i{
  display:block;
  margin-top:2px;
  font-style:normal;
  font-size:11px;
  font-weight:700;
  opacity:.85;
}
.sell-slot-note{
  margin-top:4px;
  font-size:var(--fs-sm);
  font-weight:var(--fw);
  color:#8a7a70;
}
.sell-slot-pick-bar{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin-bottom:8px;
  font-size:var(--fs);
  font-weight:var(--fw);
}
.sell-slot-pick-bar label{color:#5c534c}
.sell-n-input{
  width:56px;
  text-align:center;
}
.sell-slot-pick-of{color:#5c534c}
.btn-tiny.on-fill{
  background:var(--red);
  border-color:var(--red);
  color:#fff;
}
.sell-pool-chips{display:flex;flex-wrap:wrap;gap:8px}
.sell-pool-empty{
  display:block;
  padding:8px 0;
  color:#8a7a70;
  font-size:var(--fs-sm);
  font-weight:var(--fw);
}
.sell-pool-chip{
  position:relative;
  display:inline-flex;
  flex-direction:column;
  gap:2px;
  max-width:100%;
  padding:8px 28px 8px 10px;
  border:1.5px solid #2b211c;
  border-radius:var(--radius);
  background:#fff;
  font-size:var(--fs);
}
.sell-pool-chip.god{border-color:#9a3412;background:#fff7f2}
.sell-pool-chip b{font-size:var(--fs);font-weight:var(--fw-strong);color:#1a1410;line-height:1.3}
.sell-pool-chip small{font-weight:700;color:var(--red)}
.sell-pool-chip-x{
  position:absolute;top:4px;right:4px;
  border:0;background:transparent;
  width:22px;height:22px;
  font-size:16px;line-height:1;
  cursor:pointer;color:#8a7a70;font-weight:700;
}
.sell-pool-chip-x:hover{color:var(--red)}
.sell-slot-actions{
  display:flex;flex-wrap:wrap;gap:8px;
  margin-top:10px;
}
.sell-fill-tip,
.sell-slot-warn,
.sell-slot-ok,
.note{
  margin-bottom:10px;
  padding:10px 12px;
  border-radius:var(--radius);
  font-size:var(--fs);
  font-weight:var(--fw);
  line-height:1.45;
}
.sell-fill-tip{
  background:#fff1ee;
  border:1.5px solid var(--red);
  color:#7a1a12;
  font-weight:var(--fw-strong);
}
.sell-slot-warn{
  background:#fff1ee;
  border:2px solid var(--red);
  color:#7a1a12;
}
.sell-slot-warn b{
  display:block;
  font-size:var(--fs);
  font-weight:var(--fw-strong);
  line-height:1.45;
}
.sell-slot-warn-detail{
  margin-top:8px;
  display:grid;
  gap:4px;
  font-size:var(--fs-sm);
  font-weight:var(--fw);
  color:#5c3d36;
  line-height:1.4;
}
.sell-slot-ok{
  background:#eef9f0;
  border:1.5px solid #2f9d4e;
  color:#1a6b32;
  font-weight:var(--fw-strong);
}
.sell-opts{display:flex;flex-wrap:wrap;gap:6px}
.sell-chip-x{
  border:0;background:transparent;cursor:pointer;
  font-size:14px;line-height:1;color:var(--muted);padding:0 2px;
}
.sell-picker{
  margin-top:14px;
  padding:12px;
  border:1px dashed #d9cfc6;
  border-radius:12px;
  background:var(--warm);
}
.sell-picker-head{
  display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;
}
.sell-picker-head input{min-width:180px;flex:1}
.sell-pick-list{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(200px,1fr));
  gap:8px;
  margin-top:10px;
  max-height:360px;
  overflow:auto;
}
.sell-pick-item{
  position:relative;
  text-align:left;
  padding:10px 12px;
  border:1.5px solid #d2c4b8;
  border-radius:12px;
  background:#fff;
  cursor:pointer;
  display:grid;
  grid-template-columns:48px 1fr;
  gap:10px;
  align-items:center;
}
.sell-pick-thumb{
  width:48px;height:48px;border-radius:10px;object-fit:cover;background:#f3ece7;display:block;
}
.sell-pick-thumb.ph{background:linear-gradient(135deg,#f3ece7,#e8e0d8)}
.sell-pick-meta{display:grid;gap:2px;min-width:0}
.sell-pick-item b{font-size:var(--fs);font-weight:var(--fw-strong);color:#1a1410;line-height:1.35}
.sell-pick-item .muted{font-size:var(--fs-sm);font-weight:600}
.sell-slot-thumb{
  width:56px;height:56px;border-radius:10px;object-fit:cover;flex:0 0 auto;background:#f3ece7;
}
.sell-chip-thumb{
  width:28px;height:28px;border-radius:6px;object-fit:cover;flex:0 0 auto;background:#f3ece7;
}
.sell-pool-chip{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap}
.sell-pick-item:hover{border-color:#a89080;background:#fffdfb}
.sell-pick-item.on{
  background:#fff1ee;
  border-color:var(--red);
  border-width:2px;
  box-shadow:inset 4px 0 0 var(--red);
  padding-left:10px;
}
.sell-pick-item.on b{color:#7a1a12}
.sell-pick-item.on .muted{color:#a56b62}
.sell-pick-item.on::after{
  content:'已选';
  position:absolute;
  top:8px;right:8px;
  padding:2px 6px;
  border-radius:6px;
  background:var(--red);
  color:#fff;
  font-size:var(--fs-sm);
  font-weight:var(--fw-strong);
  line-height:1.2;
}
.sell-pick-prices{font-size:var(--fs) !important;font-weight:var(--fw-strong) !important;color:#5c3d36}
.sell-pick-item.on .sell-pick-prices{color:var(--red)}
.menu-card-img{
  width:96px;height:96px;
  border-radius:12px;
  overflow:hidden;
  background:#f3ece7;
  align-self:start;
}
.menu-card-img img{width:100%;height:100%;object-fit:cover;display:block}
.menu-card-img .img-ph{width:100%;height:100%;background:linear-gradient(135deg,#f3ece7,#e8e0d8)}
.menu-card-title{font-size:var(--fs);font-weight:var(--fw-strong);line-height:1.3;color:var(--ink)}
.menu-card-cat{font-size:var(--fs-sm);color:var(--muted);margin-top:2px}
.menu-card-desc{font-size:var(--fs-sm);color:#8a6e66;margin-top:4px;line-height:1.35}
.menu-card-hours{
  margin-top:6px;
  font-size:12px;
  font-weight:700;
  color:#5c3d36;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  align-items:center;
}
.menu-card-hours .hours-label{
  font-size:10px;
  font-weight:800;
  padding:1px 5px;
  border-radius:4px;
  background:#f7f3ef;
  color:#7a4a45;
}
.menu-card-hours .hours-periods{font-weight:600;color:var(--muted);font-size:11px}
.menu-card-id{margin-top:4px;font-size:10px;color:var(--muted)}
.price-block{
  margin-top:6px;
  display:grid;
  gap:2px;
  padding:6px 8px;
  border-radius:8px;
  background:var(--warm);
  border:1px solid var(--line);
}
.price-row{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:8px;
  font-size:12px;
  line-height:1.35;
}
.price-row .pl{color:var(--muted);font-weight:700;min-width:3.5em}
.price-row .pv{font-weight:800;color:var(--ink)}
.price-row.origin .pv{text-decoration:line-through;color:var(--muted);font-weight:600}
.price-row.god .pl{color:#9a3412}
.price-row.god .pv{color:#9a3412}
.price-row.pay .pv{color:var(--red);font-size:13px}
.price-row.pay .pv i{font-style:normal;font-size:10px;margin-left:2px;font-weight:800}
.tag-row{display:flex;flex-wrap:wrap;gap:4px;margin:4px 0 2px}
.empty{
  padding:28px 12px;
  text-align:center;
  color:var(--muted);
  border:1px dashed #d9cfc6;
  border-radius:14px;
  font-size:13px;
}
.stat-pill{
  display:inline-flex;
  gap:6px;
  align-items:center;
  min-height:var(--ctrl-h);
  padding:0 12px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--line);
  font-size:var(--fs-sm);
  font-weight:var(--fw);
  color:var(--muted);
}
.mon-h3{
  margin:0 0 10px;
  font-size:var(--fs);
  font-weight:var(--fw-strong);
  color:var(--ink);
}
.mon-server-box{
  background:
    radial-gradient(520px 220px at 8% -20%, rgba(74,163,160,.10), transparent 60%),
    radial-gradient(420px 200px at 100% 0%, rgba(216,41,28,.06), transparent 55%),
    #fff;
}
.mon-gauges{
  display:flex;
  flex-wrap:wrap;
  gap:18px 28px;
  justify-content:center;
  padding:8px 4px 18px;
}
.mon-gauge{
  width:132px;
  display:grid;
  justify-items:center;
  gap:8px;
}
.mon-ring{
  --p:0;
  --c:#3d9b96;
  width:118px;
  height:118px;
  border-radius:50%;
  background:conic-gradient(var(--c) calc(var(--p) * 1%), #efe6df 0);
  display:grid;
  place-items:center;
  box-shadow:0 10px 28px rgba(67,42,31,.08);
}
.mon-ring.warm{--c:#d4892a}
.mon-ring.hot{--c:#d8291c}
.mon-ring-inner{
  width:86px;
  height:86px;
  border-radius:50%;
  background:#fffaf7;
  display:grid;
  place-content:center;
  text-align:center;
  gap:2px;
  box-shadow:inset 0 0 0 1px rgba(232,223,214,.9);
}
.mon-ring-inner b{
  font-size:20px;
  font-weight:var(--fw-strong);
  color:var(--ink);
  line-height:1.1;
}
.mon-ring-inner span{
  font-size:11px;
  font-weight:var(--fw);
  color:var(--muted);
  letter-spacing:.04em;
}
.mon-gauge-hint{
  margin:0;
  text-align:center;
  font-size:11px;
  font-weight:600;
  color:var(--muted);
  line-height:1.35;
  max-width:132px;
}
.mon-facts{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  padding-top:4px;
  border-top:1px dashed var(--line);
}
.mon-fact{
  display:grid;
  gap:4px;
  padding:12px 14px;
  border-radius:14px;
  background:linear-gradient(180deg,#f7f1eb,#fff);
  border:1px solid var(--line);
  min-width:0;
}
.mon-fact span{
  font-size:11px;
  font-weight:var(--fw);
  color:var(--muted);
  letter-spacing:.03em;
}
.mon-fact b{
  font-size:15px;
  font-weight:var(--fw-strong);
  color:var(--ink);
  line-height:1.25;
  word-break:break-word;
}
.mon-fact em{
  font-style:normal;
  font-size:11px;
  font-weight:600;
  color:var(--muted);
  word-break:break-word;
}
.mon-traffic-block{
  display:grid;
  gap:16px;
}
.mon-traffic-sec{display:grid;gap:10px;min-width:0}
.mon-traffic-sec .mon-stat-grid{
  grid-template-columns:repeat(auto-fill,minmax(120px,1fr));
}
.mon-geo-sec{gap:12px}
.mon-geo-head{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  justify-content:space-between;
  gap:8px 16px;
}
.mon-geo-stage{
  display:grid;
  grid-template-columns:minmax(0,1fr) 210px;
  gap:14px;
  align-items:stretch;
}
.mon-geo-map-frame{
  position:relative;
  min-height:420px;
  padding:18px 16px 16px;
  border:1px solid var(--line);
  border-radius:18px;
  background:
    radial-gradient(120% 90% at 50% 10%, #fff 0%, #fffaf6 52%, #f6ebe4 100%);
  overflow:visible;
}
.mon-geo-map-label{
  margin:0 0 12px;
  font-size:12px;
  font-weight:var(--fw-strong);
  color:var(--muted);
  letter-spacing:.06em;
}
.mon-geo-map-label-sub{
  margin:16px 0 10px;
  padding-top:12px;
  border-top:1px dashed #e5d5cb;
}
.mon-prov-boxes{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(76px,1fr));
  gap:8px;
}
.mon-prov-box{
  display:grid;
  gap:4px;
  justify-items:center;
  padding:12px 8px 10px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  font:inherit;
  color:inherit;
  cursor:pointer;
  transition:border-color .15s ease, box-shadow .15s ease, transform .12s ease;
}
.mon-prov-box.has-hit:hover,
.mon-prov-box.is-empty:hover{
  border-color:#e2b8b0;
  box-shadow:0 8px 18px rgba(67,42,31,.08);
  transform:translateY(-1px);
  z-index:2;
}
.mon-prov-box.is-empty{
  opacity:.62;
  cursor:default;
  background:rgba(255,255,255,.72);
}
.mon-prov-box.has-hit{
  border-color:#efc4bb;
  background:linear-gradient(180deg,#fff 0%,#fff5f2 100%);
}
.mon-prov-box-name{
  font-size:13px;
  font-weight:var(--fw-strong);
  color:var(--ink);
  line-height:1.2;
}
.mon-prov-box-n{
  font-size:18px;
  font-weight:var(--fw-strong);
  color:var(--red);
  line-height:1;
}
.mon-prov-box.is-empty .mon-prov-box-n{color:var(--muted);font-size:15px}
.mon-geo-side{
  display:grid;
  grid-template-rows:auto 1fr;
  gap:10px;
  min-width:0;
  padding:14px 12px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fffaf7;
}
.mon-geo-side-title{
  margin:0;
  font-size:12px;
  font-weight:var(--fw-strong);
  color:var(--muted);
  letter-spacing:.04em;
}
.mon-geo-rank-strip{display:grid;gap:4px;align-content:start}
.mon-geo-rank-empty{
  padding:16px 6px;
  font-size:var(--fs-sm);
  color:var(--muted);
  line-height:1.5;
}
.mon-geo-rank-row{
  display:grid;
  grid-template-columns:18px 2.6rem 1fr 1.8rem;
  gap:6px;
  align-items:center;
  width:100%;
  padding:6px 4px;
  border:0;
  background:transparent;
  font:inherit;
  color:inherit;
  text-align:left;
  cursor:pointer;
  border-radius:8px;
}
.mon-geo-rank-row:hover{background:#fff4ef}
.mon-geo-rank-row i{
  font-style:normal;
  font-size:11px;
  font-weight:var(--fw-strong);
  color:var(--muted);
  text-align:center;
}
.mon-geo-rank-row:nth-child(-n+3) i{color:var(--red)}
.mon-geo-rank-row span{
  font-size:var(--fs-sm);
  font-weight:var(--fw);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.mon-geo-rank-row em{
  display:block;
  height:5px;
  border-radius:999px;
  background:#f0e8e2;
  position:relative;
  overflow:hidden;
  font-style:normal;
}
.mon-geo-rank-row em::after{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:var(--w,0%);
  background:linear-gradient(90deg,#e85a4f,var(--red));
  border-radius:999px;
}
.mon-geo-rank-row b{
  font-size:var(--fs-sm);
  font-weight:var(--fw-strong);
  text-align:right;
}
.mon-geo-tip{
  position:fixed;
  z-index:80;
  min-width:160px;
  max-width:240px;
  padding:10px 12px;
  border:1px solid #e8d8cf;
  border-radius:12px;
  background:rgba(255,252,249,.98);
  box-shadow:0 12px 28px rgba(67,42,31,.14);
  pointer-events:none;
}
.mon-geo-tip-h{
  margin:0 0 8px;
  font-size:13px;
  font-weight:var(--fw-strong);
  color:var(--ink);
}
.mon-geo-tip ul{
  margin:0;
  padding:0;
  list-style:none;
  display:grid;
  gap:4px;
}
.mon-geo-tip li{
  display:flex;
  justify-content:space-between;
  gap:12px;
  font-size:12px;
  color:var(--muted);
}
.mon-geo-tip li b{color:var(--ink);font-weight:var(--fw-strong)}
.mon-geo-tip-empty{
  margin:0;
  font-size:12px;
  color:var(--muted);
}
.mon-geo-tip-foot{
  margin-top:8px;
  padding-top:6px;
  border-top:1px solid #efe4dc;
  font-size:11px;
  color:var(--muted);
}
.mon-over-boxes{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:8px;
}
.mon-over-box{
  display:grid;
  gap:6px;
  justify-items:center;
  padding:14px 10px 12px;
  border:1px dashed #d9c7bd;
  border-radius:14px;
  background:#fffaf7;
  font:inherit;
  color:inherit;
  cursor:pointer;
}
.mon-over-box span{
  font-size:13px;
  font-weight:var(--fw-strong);
}
.mon-over-box strong{
  font-size:20px;
  font-weight:var(--fw-strong);
  color:var(--ink);
  line-height:1;
}
.mon-over-box.has-hit{
  border-style:solid;
  border-color:#efc4bb;
  background:linear-gradient(180deg,#fff 0%,#fff5f2 100%);
}
.mon-over-box.has-hit strong{color:var(--red)}
.mon-over-box.is-empty{opacity:.55;cursor:default}
.mon-over-box.has-hit:hover{
  box-shadow:0 8px 18px rgba(67,42,31,.08);
}
@media (max-width:980px){
  .mon-geo-stage{grid-template-columns:1fr}
}
@media (max-width:900px){
  .mon-over-boxes{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:560px){
  .mon-prov-boxes{grid-template-columns:repeat(auto-fill,minmax(64px,1fr))}
  .mon-over-boxes{grid-template-columns:repeat(2,minmax(0,1fr))}
}
.mon-charts{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px 20px;
}
.mon-chart{
  min-width:0;
  padding:14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fffaf7;
}
.mon-stat-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(96px,1fr));
  gap:10px;
}
.mon-stat-card{
  display:grid;
  grid-template-columns:1fr auto;
  grid-template-rows:auto auto;
  column-gap:10px;
  row-gap:2px;
  align-items:center;
  padding:12px 14px;
  border-radius:12px;
  background:#fff;
  border:1px solid var(--line);
  min-width:0;
  font:inherit;
  color:inherit;
  text-align:left;
  width:100%;
}
.mon-stat-card.is-click{
  cursor:pointer;
  transition:border-color .15s ease, box-shadow .15s ease, transform .12s ease;
}
.mon-stat-card.is-click:hover{
  border-color:#e2b8b0;
  box-shadow:0 8px 20px rgba(67,42,31,.08);
  transform:translateY(-1px);
}
.mon-stat-card.is-empty{opacity:.45;cursor:not-allowed}
.mon-other-samples{display:grid;gap:8px;margin-top:8px}
.mon-other-row{
  padding:8px 10px;
  border-radius:10px;
  background:#fff;
  border:1px solid var(--line);
}
.mon-stat-card small{
  grid-column:1;
  grid-row:1;
  font-size:var(--fs-sm);
  font-weight:var(--fw);
  color:var(--muted);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  text-align:left;
}
.mon-stat-card strong{
  grid-column:2;
  grid-row:1 / span 2;
  font-size:22px;
  font-weight:var(--fw-strong);
  color:var(--ink);
  line-height:1;
  text-align:right;
}
.mon-stat-card em{
  grid-column:1;
  grid-row:2;
  font-style:normal;
  font-size:11px;
  font-weight:600;
  color:var(--muted);
  text-align:left;
}
@media (max-width:900px){
  .mon-charts{grid-template-columns:1fr}
  .mon-facts{grid-template-columns:1fr 1fr}
}
@media (max-width:560px){
  .mon-facts{grid-template-columns:1fr}
}
.stat-pill b{color:var(--ink)}
.ship-result{display:grid;gap:10px}
.ship-result .copy-box{display:grid;gap:8px}
.tag-soon{
  margin-left:6px;
  font-size:10px;
  padding:1px 6px;
  border-radius:999px;
  background:#f7f3ef;
  color:#9a5550;
  font-weight:800;
  vertical-align:middle;
}

.toast{
  position:fixed;
  left:50%;
  top:50%;
  right:auto;
  bottom:auto;
  transform:translate(-50%, -50%);
  z-index:100;
  padding:12px 18px;
  border-radius:var(--radius-lg);
  background:rgba(28, 25, 23, 0.92);
  color:#fff;
  font-size:var(--fs);
  font-weight:var(--fw);
  letter-spacing:0.02em;
  box-shadow:0 12px 40px rgba(0,0,0,.22);
  text-align:center;
  max-width:min(86vw, 320px);
  pointer-events:none;
}
.toast.err{background:rgba(176, 52, 40, 0.94)}

.note{
  background:#fff7e8;
  border:1px solid #f0dfb8;
  color:#7a5a1a;
}
.note.info{
  background:var(--red-soft);
  border-color:#f2c9c4;
  color:#8f271f;
}

/* 上号弹窗 */
.modal{
  position:fixed;inset:0;z-index:80;
  display:grid;place-items:center;
  padding:20px;
  background:rgba(36,31,32,.42);
  backdrop-filter:blur(2px);
}
.modal-card{
  width:min(100%,440px);
  display:grid;gap:12px;
  padding:22px 22px 18px;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:var(--shadow);
}
.modal-card-sm{width:min(100%,380px)}
.modal-card label{display:grid;gap:6px;font-size:var(--fs-sm);font-weight:var(--fw-strong)}
.modal-card label input{
  min-height:var(--ctrl-h);
  height:var(--ctrl-h);
  padding:0 12px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:#fff;
  color:var(--ink);
  font-size:var(--fs);
  font-weight:var(--fw);
}
.modal-card label input:focus{
  outline:0;
  border-color:var(--red);
}
.modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.modal-head h2{margin:0;font-size:var(--fs-title);color:var(--red);font-weight:var(--fw-strong)}
.modal-actions{display:flex;gap:10px;margin-top:4px}
.pass-form{display:grid;gap:12px}
#kfc-geetest-box{min-height:0}

@media(max-width:980px){
  .shell{
    grid-template-columns:1fr;
    grid-template-rows:auto 1fr;
    height:100vh;
    max-height:100vh;
  }
  aside{
    position:sticky;
    top:0;
    z-index:20;
    height:auto;
    max-height:none;
    overflow:visible;
    border-right:0;
    border-bottom:1px solid var(--line);
  }
  aside nav{display:flex;overflow:auto;gap:4px}
  .nav-group{display:none}
  main{
    height:100%;
    min-height:0;
    overflow:hidden;
    padding:16px 14px 16px;
  }
  .cards,.cards.cards-6,.cards.cards-5,.grid-2,.grid-3,.dash-meta{grid-template-columns:1fr 1fr}
}
@media(max-width:640px){
  .cards,.cards.cards-6,.cards.cards-5,.grid-2,.grid-3,.dash-meta{grid-template-columns:1fr}
  .page-head h1{font-size:var(--fs-page)}
}

/* 售卖勾选：S 套餐规格池（含加钱标价） */
.sell-spec-mask{
  position:fixed;inset:0;z-index:80;
  background:rgba(25,20,20,.45);
  display:flex;align-items:center;justify-content:center;
  padding:16px;
}
.sell-spec-panel{
  width:min(560px,100%);max-height:min(82vh,720px);
  overflow:auto;background:#fff;border-radius:16px;
  padding:16px;box-shadow:0 18px 50px rgba(0,0,0,.22);
  display:grid;gap:12px;
}
.sell-spec-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.sell-spec-head h3{margin:0;font-size:var(--fs-title);font-weight:var(--fw-strong)}
.sell-spec-tip{margin:0;font-size:var(--fs-sm);line-height:1.4}
.sell-spec-round{border:1px solid var(--line);border-radius:12px;padding:10px;display:grid;gap:8px}
.sell-spec-round-h{display:flex;justify-content:space-between;gap:8px;align-items:baseline}
.sell-spec-opts{display:flex;flex-wrap:wrap;gap:8px}
.sell-spec-opt{
  border:1.5px solid #d8cdc3;border-radius:10px;background:#f7f4f1;color:#5c534c;
  padding:8px 10px 8px 8px;text-align:left;cursor:pointer;
  display:inline-flex;gap:6px;align-items:center;font-weight:600;
  box-shadow:none;
}
.sell-spec-opt::before{
  content:'';
  width:16px;height:16px;border-radius:4px;flex:0 0 auto;
  border:1.5px solid #c4b8ae;background:#fff;
  box-sizing:border-box;
}
.sell-spec-opt i{font-style:normal;font-size:12px;font-weight:800;color:#c45c26}
.sell-spec-opt.paid{border-color:#e7b59a;background:#fffaf6;color:#5c534c}
.sell-spec-opt.paid::before{border-color:#e0a888}
/* 已选：浅红底 + 红勾，绝不用大块黑底 */
.sell-spec-opt.on{
  border-color:var(--red);background:var(--red-soft);color:#7a1a12;
  box-shadow:0 0 0 1px rgba(216,41,28,.12);
}
.sell-spec-opt.on::before{
  content:'✓';
  display:inline-flex;align-items:center;justify-content:center;
  border-color:var(--red);background:var(--red);color:#fff;
  font-size:11px;font-weight:800;line-height:1;
}
.sell-spec-opt.on i{color:var(--red)}
.sell-spec-actions{display:flex;gap:8px;justify-content:flex-end}
.sell-chip-specs{display:block;color:#6b5348;font-weight:600;margin-top:2px;line-height:1.35}
