:root {
  --bg: #f4f6f8;
  --side: #111827;
  --side-2: #1f2937;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --card: #fff;
  --brand: #0f766e;
  --brand-2: #115e59;
  --ok: #047857;
  --err: #b91c1c;
  --ok-bg: #ecfdf5;
  --err-bg: #fef2f2;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; font: 14px/1.5 "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; color: var(--text); background: var(--bg); }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.shell { display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.topbar { height: 56px; background: #111827; color: #fff; display: flex; align-items: center; gap: 14px; padding: 0 16px 0 20px; flex-shrink: 0; z-index: 30; }
.topbar-brand { color: #fff; font-weight: 700; letter-spacing: .04em; font-size: 16px; text-decoration: none; white-space: nowrap; flex-shrink: 0; }
.topbar-brand:hover { color: #fff; text-decoration: none; }
.topbar-mid { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; overflow: hidden; }
.topbar-box { border: 1px solid rgba(255,255,255,.35); border-radius: 6px; padding: 4px 10px; font-size: 12px; line-height: 1.35; color: #e5e7eb; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 280px; }
.topbar-right { display: flex; align-items: center; gap: 14px; margin-left: auto; flex-shrink: 0; }
.topbar-home { color: #fff; font-size: 13px; text-decoration: none; white-space: nowrap; }
.topbar-home:hover { color: #fff; opacity: .88; text-decoration: none; }
.topbar-lang { position: relative; }
.topbar-lang-btn { background: none; border: 0; color: #fff; padding: 4px 2px; cursor: pointer; font: inherit; font-size: 13px; display: flex; align-items: center; gap: 4px; }
.topbar-lang-btn:hover { opacity: .88; }
.topbar-lang .topbar-menu { min-width: 118px; }
.topbar-lang .topbar-menu a.on { background: #374151; color: #fff; }
.topbar-bal { color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.topbar-bal:hover { color: #fff; opacity: .88; text-decoration: none; }
.topbar-bal-ico { flex-shrink: 0; color: #5eead4; }
.topbar-bal span { font-size: 11px; font-weight: 600; color: #9ca3af; margin-left: 2px; }
.topbar-user { position: relative; }
.topbar-user-btn { display: flex; align-items: center; gap: 8px; background: none; border: 0; color: #fff; padding: 4px 2px; cursor: pointer; font: inherit; }
.topbar-user-btn:hover { opacity: .88; }
.topbar-av { width: 32px; height: 32px; border-radius: 50%; background: #5eead4; color: #0f766e; display: grid; place-items: center; flex-shrink: 0; overflow: hidden; }
.topbar-av.is-letter { background: var(--av, #2563eb); color: #fff; }
.topbar-av-letter { font-size: 14px; font-weight: 800; line-height: 1; }
.topbar-av.has-img { background: transparent; padding: 0; }
.topbar-av img { width: 32px; height: 32px; object-fit: cover; display: block; }
.topbar-name { color: #fff; font-size: 14px; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-caret { color: #fff; font-size: 11px; line-height: 1; margin-top: 1px; }
.topbar-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 132px; background: #1f2937; border: 1px solid #374151; border-radius: 8px; padding: 6px; z-index: 50; box-shadow: 0 8px 20px rgba(0,0,0,.28); }
.topbar-menu a { display: block; color: #e5e7eb; padding: 8px 10px; border-radius: 6px; text-decoration: none; }
.topbar-menu a:hover { background: #374151; color: #fff; text-decoration: none; }
.layout { display: flex; flex: 1; min-height: 0; overflow: hidden; }
.side { width: 156px; background: var(--side); color: #e5e7eb; flex-shrink: 0; display: flex; flex-direction: column; overflow-y: auto; }
.side .brand { padding: 22px 20px 10px; font-weight: 700; letter-spacing: .04em; color: #fff; }
.side nav { padding: 12px 8px; display: flex; flex-direction: column; gap: 4px; }
.side a { color: #d1d5db; padding: 10px 12px; border-radius: 8px; text-decoration: none; }
.side a:hover, .side a.on { background: var(--side-2); color: #fff; text-decoration: none; }
.side .side-idle { display: block; color: #d1d5db; padding: 10px 12px; border-radius: 8px; cursor: default; }
.side .foot { margin-top: auto; padding: 16px; color: #9ca3af; font-size: 12px; }
.main { flex: 1; padding: 24px 28px 40px; min-width: 0; overflow: auto; }
.top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 10px; }
.modal .top { align-items: flex-start; }
.modal .top .btn { flex-shrink: 0; }
h1 { font-size: 20px; margin: 0; }
.muted { color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 16px 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.card .k { color: var(--muted); font-size: 12px; }
.card .v { font-size: 26px; font-weight: 700; margin-top: 6px; }
.card .go { margin-top: 8px; font-size: 12px; color: #2563eb; }
a.card { text-decoration: none; color: inherit; }
a.card:hover { border-color: #93c5fd; }
.card.warn { border-color: #fecaca; background: var(--err-bg); }
.card.warn .v { color: var(--err); }
.leak { color: var(--err); }
.usd-tag { display: inline-block; margin-left: 4px; font-size: 12px; font-weight: 600; color: #6b7280; vertical-align: 3px; }
.bal-k { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 18px; font-weight: 700; color: var(--text); letter-spacing: .08em; line-height: 1.2; }
.bal-k::before { content: ""; width: 4px; height: 1em; border-radius: 2px; background: var(--brand); flex-shrink: 0; }
.table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: #f9fafb; font-weight: 600; font-size: 12px; color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; border: 0; background: #16a34a; color: #fff; padding: 8px 14px; border-radius: 8px; cursor: pointer; font: inherit; font-size: 14px; line-height: 1; }
.is-hold { opacity: .55; pointer-events: none; }
.btn:hover { background: #15803d; text-decoration: none; }
.btn.ghost { background: #fff; color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { background: #f9fafb; color: var(--text); }
.btn.danger { background: #b91c1c; }
.btn.danger:hover { background: #991b1b; }
.flash-stack { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; align-items: center; gap: 8px; width: min(460px, calc(100vw - 32px)); pointer-events: none; }
.shell ~ .flash-stack { top: 68px; }
.flash { min-width: 200px; max-width: 100%; padding: 10px 18px; border-radius: 10px; margin: 0; text-align: center; box-shadow: 0 10px 28px rgba(17,24,39,.16); }
.flash.ok { background: var(--ok-bg); color: var(--ok); }
.flash.err { background: var(--err-bg); color: var(--err); }
.flash.out { opacity: 0; transition: opacity .35s ease; }
.form { display: grid; gap: 10px; max-width: 520px; }
.form-sm { max-width: 240px; }
.form.wide { max-width: 100%; }
label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
.apply-form { gap: 12px; }
.apply-form .fline { margin: 0; align-items: flex-start; }
.apply-form .fline > span {
  flex: 0 0 auto;
  width: auto;
  min-width: 5em;
  line-height: 36px;
}
.apply-name {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  max-width: 28em;
}
input, select, textarea { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; color: var(--text); background: #fff; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.sms-filter input[type="date"] { min-width: 140px; }
.notice { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; padding: 10px 12px; border-radius: 8px; margin-bottom: 14px; }
.auth-wait {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, .4);
  display: none;
  place-items: center;
  z-index: 80;
}
.auth-wait.on { display: grid; }
.auth-wait-spin {
  width: 80px;
  height: 80px;
  border: 8px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: waitspin .7s linear infinite;
}
html.auth-app, html.auth-app body { height: auto; min-height: 100%; }
html.auth-app .shell { height: auto; min-height: 100vh; overflow: visible; }
html.auth-app .layout { display: flex; flex-direction: column; overflow: visible; flex: 1 0 auto; }
.auth-main { max-width: 480px; margin: 0 auto; width: 100%; flex: 1; display: flex; flex-direction: column; overflow: visible; }
html.auth-app .main { overflow: visible; padding: 16px 16px 0; }
.auth-copy { margin-top: auto; padding: 16px 0; text-align: center; color: #9ca3af; font-size: 12px; }
html.auth-app .hello { padding: 12px 16px; margin-bottom: 12px; }
html.auth-app .form { gap: 8px; }
.auth-back { display: inline-block; font-size: 13px; font-weight: 600; }
.auth-warn { color: var(--err); font-weight: 600; }
.auth-tabs { margin: 0 0 14px; }
.auth-tabs .chip { padding: 8px 18px; font-size: 15px; }
button.chip { font: inherit; cursor: pointer; }
button.chip:hover { text-decoration: none; background: #f3f4f6; }
button.chip.on:hover { background: #2563eb; color: #fff; }
.auth-pane { display: none; max-width: none; }
.auth-pane.on { display: grid; }
.login-box .form { max-width: none; }
.login-box .btn[type="submit"]:not(.login-link) {
  width: 100%;
  height: 44px;
  margin-top: 8px;
  font-size: 16px;
  font-weight: 700;
  background: #2563eb;
}
.login-box .btn[type="submit"]:not(.login-link):hover { background: #1d4ed8; }
.login-extra { margin-top: 2px; min-height: 28px; font-size: 13px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.login-extra-left, .login-extra-right { display: flex; align-items: center; gap: 16px; }
.login-extra-right { margin-left: auto; }
.login-extra a, .login-link { font-weight: 600; background: none; border: 0; padding: 0; font-size: inherit; font-family: inherit; cursor: pointer; color: var(--brand); }
.login-remember { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--text); font-size: 13px; font-weight: 500; cursor: pointer; }
.login-remember input { width: 15px; height: 15px; margin: 0; accent-color: #2563eb; }
.register-hint { margin: 0 0 2px; font-size: 13px; line-height: 1.5; }
.login-box .empty { padding: 12px 0; }
.login-box .sec-locked { background: #f9fafb; }
.captcha-box { display: flex; gap: 8px; align-items: center; }
.captcha-box input { flex: 1; min-width: 0; letter-spacing: .12em; text-transform: uppercase; }
.captcha-img { width: 120px; height: 36px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; background: #f9fafb; flex-shrink: 0; }
.login-q { padding: 8px 10px; background: #f9fafb; border: 1px solid var(--line); border-radius: 8px; color: var(--text); font-size: 14px; }
.mono { font-family: Consolas, "Courier New", monospace; font-size: 12px; word-break: break-all; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.empty { color: var(--muted); padding: 24px; text-align: center; }
.amt-up { color: var(--ok); font-weight: 600; }
.amt-down { color: var(--err); font-weight: 600; }
.tips { background: #eef2ff; border: none; color: #1f2937; padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; }
.buy-notice { line-height: 1.8; }
.guide-jump { margin: 10px 0 0; }
.tag-guide { display: inline-block; background: #7c3aed; color: #fff; font-size: 14px; font-weight: 700; padding: 4px 10px; border-radius: 6px; }
.tag-guide:hover { color: #fff; text-decoration: none; background: #6d28d9; }
.tips ol { margin: 0; padding-left: 20px; }
.filters { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin-bottom: 12px; }
.filters .row { align-items: center; }
.filters .row > input:not([type="hidden"]) { height: 32px; padding-top: 0; padding-bottom: 0; line-height: 1.2; }
.buy-q { width: 128px; max-width: 128px; }
.nav-toggle { display: none; }
.nav-dim { display: none; }
.filters .row .btn { height: 32px; }
.filters .buy-act { padding: 0 8px; font-size: 13px; }
.fline { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; margin: 6px 0; min-width: 0; }
.fline > span { color: var(--muted); width: auto; flex-shrink: 0; white-space: nowrap; }
.filters .fline { gap: 4px; }
.filters .fline > span { width: 3.15em; }
.chips { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; overflow-y: hidden; flex: 1; min-width: 0; cursor: grab; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.chips.dragging { cursor: grabbing; user-select: none; }
.chips::-webkit-scrollbar { height: 6px; }
.chips::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 999px; }
.chip { display: inline-block; padding: 5px 12px; border-radius: 6px; background: #fff; color: var(--text); text-decoration: none; border: 1px solid var(--line); white-space: nowrap; flex-shrink: 0; }
.chip:hover { text-decoration: none; background: #f3f4f6; }
.chip.on { background: #2563eb; color: #fff; border-color: #2563eb; }
.chips.wrap { flex-wrap: wrap; overflow: visible; cursor: default; }
.chips-country .chip { padding: 4px 8px; }
.chip-check { cursor: pointer; position: relative; display: inline-flex; align-items: center; justify-content: center; line-height: inherit; margin: 0; }
.chip-check input { position: absolute; inset: 0; width: 0; height: 0; margin: 0; opacity: 0; pointer-events: none; }
.chip-check:has(input:checked) { background: #2563eb; color: #fff; border-color: #2563eb; }
.toolbar { display: flex; justify-content: flex-end; margin: 10px 0 12px; }
.mask { position: fixed; inset: 0; background: rgba(17,24,39,.45); display: grid; place-items: center; z-index: 50; padding: 20px; }
.mask[hidden] { display: none; }
.modal { width: min(480px, 100%); background: #fff; border-radius: 14px; padding: 20px; box-shadow: 0 16px 40px rgba(0,0,0,.18); }
.modal.wide { width: min(720px, 100%); }
.api-modal .top { position: relative; justify-content: center; }
.api-modal .top h1 { margin: 0; text-align: center; }
.api-modal .top .btn.ghost { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
.api-modal .actions { justify-content: center; }
.ask-mask { z-index: 80; }
.ask-box { width: min(400px, 100%); text-align: center; }
.ask-box p { margin: 8px 0 20px; font-size: 15px; line-height: 1.6; }
.ask-box .actions { justify-content: center; }
.table-wrap { overflow-x: auto; }
.table-wrap .table { width: max-content; min-width: 100%; overflow: visible; }
.table.compact th, .table.compact td { padding: 8px; font-size: 13px; white-space: nowrap; vertical-align: middle; }
.obar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 12px 0; flex-wrap: wrap; }
.obar-l, .obar-r { display: flex; gap: 8px; align-items: center; }
.btn-dark { background: #374151; color: #fff; }
.btn-dark:hover { background: #1f2937; }
.btn-tan { background: #d97706; color: #fff; }
.btn-tan:hover { background: #b45309; }
.btn-green { background: #16a34a; color: #fff; }
.btn-green:hover { background: #15803d; }
.tips .warn { color: #b91c1c; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; }
.tag-blue { background: #e0f2fe; color: #0369a1; }
.tag-lilac { background: #eef2ff; color: #4338ca; }
.tag-green { color: #16a34a; }
.tag-face { background: #dcfce7; color: #166534; margin-left: 6px; }
.tag-mute { background: #e5e7eb; color: #6b7280; margin-left: 6px; }
tr.user-face td { background: #f0fdf4; }
tr.nonstandard td { background: #f3f4f6; }
.status-use { color: #2563eb; }
.status-ok { color: #16a34a; font-weight: 600; }
.cell-in { width: 140px; padding: 4px 8px; }
.ops { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
@media (min-width: 769px) {
  .order-table th.name-clip,
  .order-table td.name-clip,
  .api-table th.name-clip,
  .api-table td.name-clip,
  td.prod-name-td,
  td.proj-name {
    width: 1px;
    max-width: 22em;
  }
  .order-table td.name-clip .tag,
  .api-table td.name-clip .tag,
  td.prod-name-td .name-max,
  td.proj-name .tag {
    display: inline-block;
    max-width: 22em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
  }
  td.prod-name-td,
  td.prod-name-td .name-max {
    min-width: 11em;
  }
}
.btn-sm { display: inline-flex; align-items: center; justify-content: center; height: 26px; padding: 0 8px; font: inherit; font-size: 12px; border-radius: 6px; border: 0; color: #fff; cursor: pointer; text-decoration: none; line-height: 1; }
.btn-sm:hover { text-decoration: none; opacity: .92; }
.btn-api { background: #e11d48; }
.btn-view { background: #16a34a; }
.btn-dl { background: #d97706; }
.btn-del { background: #ef4444; }
.api-box {
  width: 100%;
  min-height: 160px;
  resize: vertical;
  -webkit-user-select: text;
  user-select: text;
  outline: none;
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  font: 14px/1.5 "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1f2937 !important;
  -webkit-text-fill-color: #1f2937 !important;
  background: #f3f4f6;
  opacity: 1 !important;
  word-break: break-all;
  overflow-wrap: anywhere;
  hyphens: none;
  -webkit-hyphens: none;
}
.api-box:focus, .api-box:focus-visible, .api-box:read-only {
  outline: none;
  box-shadow: none;
  border: none;
  color: #1f2937 !important;
  -webkit-text-fill-color: #1f2937 !important;
  background: #f3f4f6;
  opacity: 1 !important;
}
label.set-row { color: #111827; }
.set-row select,
.api-modal select,
.api-modal .pick-face,
.pick-face {
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
}
.detail-table, .detail-table td { -webkit-user-select: text; user-select: text; }
.set-lines { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; display: grid; gap: 10px; }
.set-row { display: flex; align-items: center; gap: 10px; }
.set-row span { color: #111827; width: 110px; flex-shrink: 0; font-size: 12px; }
.set-row select { flex: 1; min-width: 0; font-size: 12px; }
.pick-wrap { position: relative; flex: 1; min-width: 0; width: 100%; }
.pick-src { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pick-face {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font: 13px/1.4 "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pick-mask { position: fixed; inset: 0; z-index: 70; background: rgba(17,24,39,.28); }
.pick-mask[hidden] { display: none; }
.pick-panel {
  position: fixed;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(17,24,39,.2);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.pick-opt {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  word-break: break-all;
}
.pick-opt:last-child { border-bottom: 0; }
.pick-opt.on { color: #0f766e; font-weight: 600; background: #f0fdfa; }
.prod-icon { width: 28px; height: 28px; object-fit: cover; border-radius: 6px; vertical-align: middle; margin-right: 6px; }
.prod-icon.blank { display: inline-block; background: #f3f4f6; border: 1px solid var(--line); }
.prod-icon-td { width: 40px; vertical-align: middle; }
.prod-icon-td .prod-icon { margin-right: 0; display: block; }
.prod-name-td { vertical-align: middle; }
.take-title { display: flex; align-items: flex-start; gap: 8px; margin: 0; min-width: 0; }
.take-title .prod-icon { margin-right: 0; flex: 0 0 auto; }
.take-title #m-name, .take-title span:last-child { min-width: 0; flex: 1; white-space: normal; overflow: visible; word-break: break-word; line-height: 1.35; }
.modal .top .take-title { flex: 1; }
.icon-preview { margin: 8px 0 14px; }
.order-no { color: var(--brand); cursor: pointer; }
.detail-table { margin-top: 8px; }
.detail-table td.mono { word-break: break-all; }
.wait-mask { position: fixed; inset: 0; background: rgba(17,24,39,.55); display: none; place-items: center; z-index: 9999; }
.wait-mask.on { display: grid; }
.wait-box { text-align: center; color: #fff; }
.wait-box p { margin: 16px 0 0; font-size: 16px; }
.wait-spin-wrap { position: relative; width: 80px; height: 80px; margin: 0 auto; }
.wait-spin { width: 80px; height: 80px; box-sizing: border-box; border: 8px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: waitspin .7s linear infinite; }
.wait-spin-txt { position: absolute; inset: 0; display: grid; place-items: center; font-size: 16px; font-weight: 700; letter-spacing: .06em; color: #fff; pointer-events: none; }
@keyframes waitspin { to { transform: rotate(360deg); } }
.hello { background: #eef2ff; border: 1px dashed #c4b5fd; border-radius: 12px; padding: 16px 20px; margin-bottom: 16px; }
.hello-hi { font-size: 20px; font-weight: 700; }
.hello-sub { color: var(--muted); margin-top: 6px; }
.stat-grid { display: grid; grid-template-columns: 1.15fr repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 16px 14px; min-height: 110px; }
.stat .k { color: var(--muted); font-size: 12px; }
.stat .v { font-size: 26px; font-weight: 700; margin: 8px 0 6px; }
.stat-link { font-size: 12px; }
.stat-pay { border-color: #99f6e4; background: #f0fdfa; }
.dash-recharge { margin-top: 4px; padding: 8px 20px; font-size: 15px; font-weight: 700; letter-spacing: .04em; }
.dash-2 { display: grid; grid-template-columns: 3fr 1fr; gap: 12px; }
.dash-notice { margin-top: 10px; white-space: normal; line-height: 1.7; }
@media (max-width: 1100px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-pay { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .dash-2 { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
  .topbar-box { max-width: 160px; }
}
@media (max-width: 860px) {
  .topbar-mid { display: none; }
  .topbar-name { max-width: 80px; }
}
.doc { margin-bottom: 10px; padding: 0; }
.doc > summary { list-style: none; cursor: pointer; padding: 14px 16px; font-size: 16px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 10px; user-select: none; }
.doc > summary::-webkit-details-marker { display: none; }
.doc > summary::after { content: "▾"; color: var(--muted); font-size: 12px; font-weight: 400; }
.doc[open] > summary::after { content: "▴"; }
.doc-body { padding: 0 16px 16px; }
.doc-h { margin: 16px 0 0; font-size: 14px; font-weight: 600; color: var(--text); }
.doc-box { background: #f9fafb; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-family: Consolas, "Courier New", monospace; font-size: 13px; white-space: pre-wrap; word-break: break-all; }
.guide-step { margin: 0 0 12px; }
.guide-step h2 { margin: 0 0 8px; font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.guide-no { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 999px; background: #2563eb; color: #fff; font-size: 12px; font-weight: 600; line-height: 22px; text-align: center; }
.guide-step p { margin: 0; color: #4b5563; line-height: 1.65; }
.guide-step p + p { margin-top: 8px; }
.guide-step .doc-box { margin-top: 10px; }
.guide-links { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 10px !important; }
.guide-img { display: block; width: 100%; max-width: 1000px; height: auto; margin-top: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.token-box { margin: 10px 0; background: #f3f4f6; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-family: Consolas, "Courier New", monospace; font-size: 13px; word-break: break-all; }
.doc .table { margin-top: 8px; }
.recharge { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.recharge-amts { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 12px; }
.recharge .form { max-width: 420px; }
.recharge-warn { margin: 0 0 12px; color: #dc2626; font-weight: 700; font-size: 13px; line-height: 1.5; }
.recharge-warn a { color: #16a34a; font-weight: 700; text-decoration: underline; }
.recharge-warn a:hover { color: #15803d; }
.pay-modal { width: min(560px, 100%); padding: 16px 18px 18px; text-align: left; }
.pay-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -2px 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.pay-title { display: flex; align-items: center; gap: 8px; }
.pay-head h1 { margin: 0; font-size: 18px; line-height: 1.2; }
.pay-logo { display: flex; line-height: 0; }
.pay-tag, .pay-net, .pay-amt span { display: inline-block; font-size: 12px; font-weight: 600; color: #047857; background: #ecfdf5; border-radius: 4px; padding: 1px 6px; }
.pay-timer { margin-top: 8px; font-size: 13px; color: #6b7280; white-space: nowrap; }
.pay-timer b { color: #111827; font-size: 16px; }
.pay-x { border: 0; background: none; color: #9ca3af; font-size: 26px; line-height: 1; cursor: pointer; padding: 0 2px; }
.pay-x:hover { color: #111827; }
.pay-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 8px; align-items: stretch; }
.pay-qr-col { text-align: center; }
.pay-qr-wrap { position: relative; width: 164px; height: 164px; margin: 0 auto; }
.pay-qr { width: 164px; height: 164px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.pay-qr-off { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(17,24,39,.58); color: #fff; font-size: 16px; font-weight: 700; border-radius: 8px; }
.pay-qr-off[hidden] { display: none; }
.pay-modal.dead .pay-qr { filter: blur(1.5px); }
.pay-modal.dead .pay-timer { color: #dc2626; }
.pay-modal.dead .pay-timer b { color: #dc2626; }
.pay-modal.paid .pay-qr { filter: blur(1.5px); }
.pay-modal.paid .pay-timer { color: #059669; }
.pay-modal.paid .pay-timer b { color: #059669; }
.pay-modal.paid .pay-qr-off { background: rgba(5,150,105,.72); }
.pay-qr img, .pay-qr canvas, .pay-qr table { width: 148px !important; height: 148px !important; }
.pay-fields {
  display: grid;
  min-width: 0;
  background: #f9fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 12px;
}
.pay-field {
  display: grid;
  grid-template-columns: 4.5em minmax(0, 1fr);
  align-items: start;
  gap: 8px 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.pay-field:first-child { padding-top: 8px; }
.pay-field:last-child { padding-bottom: 8px; border-bottom: 0; }
.pay-field-addr { grid-template-columns: 4.5em minmax(0, 1fr) auto; }
.pay-lab { font-size: 12px; color: #6b7280; margin: 0; line-height: 1.4; padding-top: 3px; white-space: nowrap; }
.pay-val { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; min-width: 0; }
.pay-amt { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; min-width: 0; font-size: 17px; font-weight: 700; line-height: 1.3; word-break: break-all; }
.pay-addr { min-width: 0; font-size: 13px; font-weight: 600; line-height: 1.5; word-break: break-all; color: #111827; }
.pay-copy { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; box-sizing: border-box; width: 48px; height: 22px; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: #374151; font: inherit; font-size: 12px; line-height: 1; cursor: pointer; }
.pay-copy:hover { background: #f3f4f6; }
.pay-copy.ok { color: #059669; }
.pay-tips { margin: 6px 0 0; padding: 10px 12px 10px 28px; background: #f9fafb; border: 1px solid var(--line); border-radius: 8px; color: #374151; font-size: 13px; line-height: 1.55; }
.pay-tips li { margin: 4px 0; }
.pay-hot { color: #dc2626; font-weight: 600; }
@media (min-width: 561px) {
  .pay-qr-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    width: 132px;
    min-width: 132px;
    height: 100%;
    box-sizing: border-box;
    padding: 8px 6px 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
  }
  .pay-qr-wrap, .pay-qr { width: 112px; height: 112px; }
  .pay-qr { padding: 0; border: 0; }
  .pay-qr img, .pay-qr canvas, .pay-qr table { width: 112px !important; height: 112px !important; }
  .pay-timer { margin-top: 0; }
}
@media (max-width: 560px) {
  .pay-grid { grid-template-columns: 1fr; gap: 14px; align-items: start; }
  .pay-fields { order: 1; background: #fff; }
  .pay-field { padding: 11px 0; }
  .pay-field:first-child { padding-top: 8px; }
  .pay-field:last-child { padding-bottom: 8px; }
  .pay-field-addr { grid-template-columns: 1fr auto; }
  .pay-field-addr .pay-lab { grid-column: 1; grid-row: 1; }
  .pay-field-addr .pay-copy { grid-column: 2; grid-row: 1; }
  .pay-field-addr .pay-addr { grid-column: 1 / -1; grid-row: 2; font-size: 16px; font-weight: 700; line-height: 1.65; letter-spacing: .02em; color: #000; }
  .pay-amt { font-size: 16px; }
  .pay-qr-col { order: 2; }
}
.app-group { border: 1px solid var(--line); border-radius: 8px; margin: 8px 0; background: #fff; }
.app-group > summary { cursor: pointer; padding: 10px 12px; font-size: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; user-select: none; list-style: none; }
.app-group > summary::-webkit-details-marker { display: none; }
.app-group > summary::after { content: "▾"; color: var(--muted); font-size: 12px; }
.app-group[open] > summary { border-bottom: 1px solid var(--line); }
.app-group[open] > summary::after { content: "▴"; }
.app-group .app-table { margin: 0; }
.delta-hot { color: #059669; font-weight: 600; }
.delta-up { color: #6b7280; }
.app-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.listed-mark { margin-left: auto; margin-right: 2px; flex-shrink: 0; }
.app-head .prod-icon { margin-right: 0; flex: 0 0 auto; }
.app-head .prod-icon + .prod-icon { margin-left: -8px; box-shadow: 0 0 0 1px #fff; }
.app-branch-h td { background: #f3f4f6; color: #374151; font-size: 12px; font-weight: 700; }
.app-branch-h.card-h td { background: #eef2ff; color: #4338ca; }
.app-branch-h.op-h td { padding-left: 22px; background: #eef1f4; color: var(--muted); font-weight: 600; }
.app-branch td:first-child { padding-left: 36px; }
.pager { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 14px 0 4px; }
.pager .muted { font-size: 13px; }
.pager a.btn { min-width: 72px; }
.pager .pg { min-width: 36px; padding-left: 10px; padding-right: 10px; }
.pager .pg.on { background: var(--brand); color: #fff; cursor: default; }
.sync-mask { z-index: 90; }
.sync-box { width: min(440px, 100%); background: #fff; border-radius: 14px; padding: 22px 20px 18px; box-shadow: 0 16px 40px rgba(0,0,0,.18); }
.sync-box h2 { margin: 0 0 14px; font-size: 16px; }
.sync-track { height: 10px; background: #e5e7eb; border-radius: 999px; overflow: hidden; }
.sync-fill { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 999px; transition: width .25s ease; }
.sync-label { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.sync-nums { margin: 6px 0 0; font-size: 13px; }
.sync-actions { margin-top: 14px; text-align: right; }
.settings-form { max-width: 720px; }
.token-field { display: grid; gap: 8px; }
.token-label { color: var(--muted); font-size: 12px; }
.token-box { display: grid; gap: 8px; justify-items: start; }
.token-rows { display: grid; gap: 8px; width: 100%; }
.token-row { display: flex; align-items: center; gap: 8px; width: 100%; }
.token-tag {
  flex: 1;
  min-width: 0;
  display: block;
  background: #e0f2fe;
  color: #0369a1;
  border-radius: 6px;
  padding: 7px 10px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  word-break: break-all;
  user-select: all;
}
.token-row .token-del { flex-shrink: 0; height: 32px; padding: 0 12px; }
.token-draft-in { flex: 1; min-width: 0; }
.token-add { justify-self: start; }
.sec-profile { display: flex; align-items: center; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; margin-bottom: 16px; }
.sec-av-wrap { position: relative; width: 88px; height: 88px; flex-shrink: 0; cursor: pointer; }
.sec-av { width: 88px; height: 88px; border-radius: 50%; background: #ccfbf1; color: #0f766e; display: grid; place-items: center; font-weight: 700; font-size: 34px; text-transform: uppercase; box-shadow: 0 0 0 3px #fff, 0 0 0 5px #99f6e4; }
.sec-av.is-letter { background: var(--av, #2563eb); color: #fff; box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(15, 23, 42, .12); }
.sec-av-pic { object-fit: cover; background: #e6fffa; }
.sec-av-tip { position: absolute; inset: 0; border-radius: 50%; color: rgba(15,118,110,.42); font-size: 12px; font-weight: 700; display: grid; place-items: center; text-align: center; padding: 14px; line-height: 1.3; }
.sec-av-wrap.no-pic .sec-av-tip { background: rgba(15, 23, 42, .42); color: #fff; }
.sec-av-wrap.no-pic:hover .sec-av-tip { background: rgba(15, 23, 42, .55); }
.sec-card-txt { flex: 1; min-width: 0; }
.sec-nick { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 25px; text-align: left; border: 0; background: none; padding: 0; font: inherit; font-size: 20px; font-weight: 700; line-height: 1.25; cursor: pointer; color: inherit; }
.sec-nick span { min-width: 0; min-height: 1.25em; word-break: break-all; }
.sec-nick.empty span { color: rgba(17,24,39,.32); font-weight: 600; }
.sec-edit { flex-shrink: 0; color: #9ca3af; }
.sec-nick:hover { color: var(--brand); }
.sec-nick:hover .sec-edit { color: var(--brand); }
.sec-uid { color: #9ca3af; font-size: 13px; margin-top: 4px; word-break: break-all; }
.sec-sign { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; width: 100%; text-align: left; border: 0; background: none; padding: 0; margin-top: 8px; font: inherit; font-size: 13px; line-height: 1.45; color: #6b7280; cursor: pointer; }
.sec-sign.empty { color: #9ca3af; }
.sec-sign:hover { color: var(--brand); }
.sec-panel { padding: 0; overflow: hidden; margin-bottom: 16px; }
.sec-item { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.sec-item:last-child { border-bottom: 0; }
.sec-ico { width: 44px; height: 44px; border-radius: 12px; background: #f0fdfa; color: #0f766e; display: grid; place-items: center; flex-shrink: 0; }
.sec-item-body { flex: 1; min-width: 0; }
.sec-item-k { font-weight: 600; font-size: 15px; }
.sec-item-s { margin-top: 4px; font-size: 13px; color: #9ca3af; }
.sec-item-s.on { color: #047857; }
.sec-item .btn { flex-shrink: 0; min-width: 72px; }
.sec-log { margin-top: 0; }
.sec-modal .top { margin-bottom: 12px; }
.sec-modal .top h1 { font-size: 18px; }
.sec-locked {
  background: #f3f4f6;
  color: #374151;
  cursor: default;
}
.sec-modal input,
.sec-modal select,
.sec-modal .pick-face,
.sec-modal .sec-locked {
  font-size: 13px;
  line-height: 1.4;
}
@media (max-width: 720px) {
  .sec-profile { flex-wrap: wrap; }
}
@media (max-width: 768px) {
  .auth-main { max-width: none; }
  html.auth-app .shell,
  html.auth-app .layout,
  html.auth-app .main { overflow: visible; }
  .user-app .nav-toggle {
    display: grid;
    gap: 4px;
    width: 36px;
    height: 36px;
    padding: 8px 6px;
    border: 0;
    background: none;
    place-content: center;
    cursor: pointer;
    flex-shrink: 0;
  }
  .user-app .nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
  }
  .user-app .nav-dim {
    display: block;
    position: fixed;
    inset: 56px 0 0 0;
    background: rgba(17, 24, 39, .45);
    z-index: 35;
  }
  .user-app .nav-dim[hidden] { display: none; }
  .user-app .layout { display: block; overflow: auto; }
  .user-app .side {
    position: fixed;
    top: 56px;
    left: 0;
    bottom: 0;
    width: min(240px, 82vw);
    z-index: 40;
    transform: translateX(-110%);
    transition: transform .2s ease;
    box-shadow: none;
  }
  .user-app .side.open {
    transform: none;
    box-shadow: 8px 0 24px rgba(0, 0, 0, .28);
  }
  .user-app .main { padding: 14px 12px calc(28px + env(safe-area-inset-bottom, 0px)); overflow-x: hidden; overflow-y: visible; }
  .user-app .topbar { padding: 0 10px; gap: 8px; }
  .user-app .topbar-brand { max-width: 34vw; overflow: hidden; text-overflow: ellipsis; }
  .user-app .topbar-name, .user-app .topbar-caret { display: none; }
  .user-app .topbar-right { gap: 8px; }
  .user-app .topbar-lang-btn { font-size: 12px; }
  .user-app .hello { padding: 12px 14px; margin-bottom: 12px; }
  .user-app .hello-hi { font-size: 18px; }
  .user-app .hello-sub { font-size: 13px; }
  .user-app .stat-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .user-app .stat-pay { grid-column: 1 / -1; }
  .user-app .stat { min-height: 92px; padding: 12px; }
  .user-app .stat .v { font-size: 22px; margin: 6px 0 4px; }
  .user-app .bal-k { font-size: 16px; }
  .user-app .dash-recharge { padding: 7px 16px; font-size: 14px; }
  .user-app .recharge .form { display: flex; flex-direction: column; }
  .user-app .top { flex-wrap: wrap; gap: 8px; align-items: flex-start; }
  .user-app .ord-no-cell { white-space: nowrap; }
  .user-app .table-wrap .order-table.table {
    table-layout: fixed;
    width: max-content;
    min-width: 0;
    max-width: none;
    overflow: hidden;
  }
  .user-app .order-table col.col-chk { width: 36px; }
  .user-app .order-table col.col-app { width: 80px; }
  .user-app .order-table col.col-num { width: 48px; }
  .user-app .order-table col.col-ops { width: 148px; }
  .user-app .order-table col.col-remark { width: 156px; }
  .user-app .order-table th,
  .user-app .order-table td {
    overflow: hidden;
    min-width: 0;
    white-space: nowrap;
  }
  .user-app .order-table th:nth-child(2),
  .user-app .order-table td:nth-child(2) { max-width: 0; }
  .user-app .order-table th:nth-child(2) .tag,
  .user-app .order-table td:nth-child(2) .tag {
    display: inline-block;
    width: auto;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    vertical-align: middle;
  }
  .user-app .order-table th { position: relative; }
  .user-app .order-table .ops { display: flex; width: max-content; }
  .user-app .order-table .cell-in { width: 140px; max-width: none; }
  .user-app .order-table.resizing { cursor: col-resize; user-select: none; }
  .user-app .col-grip {
    position: absolute;
    top: 0;
    right: 0;
    width: 10px;
    height: 100%;
    cursor: col-resize;
    z-index: 3;
    touch-action: none;
  }
  .user-app .col-grip:hover,
  .user-app .order-table.resizing .col-grip:hover { background: rgba(15, 118, 110, .18); }
  .user-app .chips-country { flex-wrap: wrap; overflow: visible; cursor: default; }
  .user-app .filters { overflow: hidden; padding: 10px 12px; }
  .user-app .fline { flex-wrap: nowrap; max-width: 100%; align-items: flex-start; }
  .user-app .fline > span { width: 3.15em; min-width: 3.15em; line-height: 32px; }
  .user-app .fline .chips { flex: 1; min-width: 0; max-width: 100%; }
  .user-app .buy-q { width: 100%; max-width: none; flex: 1; min-width: 0; }
  .user-app .filters .row { width: 100%; min-width: 0; flex-wrap: wrap; }
  .user-app input, .user-app select, .user-app textarea { font-size: 16px; }
  .user-app .sec-modal input,
  .user-app .sec-modal select,
  .user-app .sec-modal .pick-face,
  .user-app .sec-modal .sec-locked {
    font-size: 12px;
    height: 28px;
    line-height: 18px;
    padding: 4px 8px;
    border-radius: 6px;
  }
  .user-app .obar-l, .user-app .obar-r { width: 100%; flex-wrap: wrap; }
  .user-app .obar-r input { flex: 1; min-width: 0; }
  .user-app .set-row { flex-wrap: wrap; }
  .user-app .set-row span { width: 100%; }
  .user-app .apply-form .fline { flex-wrap: nowrap; align-items: flex-start; }
  .user-app .apply-form .fline > span {
    width: auto;
    min-width: 5em;
    line-height: 36px;
  }
  .user-app .apply-form .apply-name {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    min-width: 0;
  }
  .user-app .sec-item { flex-wrap: wrap; }
  .user-app .mask {
    padding: 8px;
    padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
    overflow: hidden;
    place-items: center;
  }
  .user-app .modal, .user-app .modal.wide {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .user-app .api-modal {
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
    max-height: calc(100svh - 16px);
    overflow: visible;
    padding: 14px 12px 12px;
    display: flex;
    flex-direction: column;
  }
  .user-app .api-modal .top {
    flex-shrink: 0;
    min-height: 36px;
    padding-right: 68px;
    margin-bottom: 12px;
  }
  .user-app .api-modal .top h1 { font-size: 17px; line-height: 1.3; }
  .user-app .api-modal .tips {
    flex-shrink: 0;
    padding: 8px 10px;
    margin-bottom: 10px;
    font-size: 12px;
    line-height: 1.45;
  }
  .user-app .api-modal .tips ol { padding-left: 16px; }
  .user-app .api-modal .set-lines {
    flex-shrink: 0;
    min-width: 0;
    overflow: visible;
    padding: 8px 10px;
    gap: 6px;
    margin-bottom: 8px;
  }
  .user-app .api-modal .set-row {
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
  }
  .user-app .api-modal .set-row span {
    width: auto;
    min-width: 4.2em;
    font-size: 12px;
    line-height: 1.2;
    color: #111827;
  }
  .user-app .api-modal .pick-face,
  .user-app .api-modal select,
  .user-app .api-modal .api-box {
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
  }
  .user-app .api-modal .set-row select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    font-size: 12px;
    padding: 4px 8px;
    height: 28px;
    line-height: 18px;
  }
  .user-app .api-modal textarea { font-size: 14px; font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
  .user-app .api-modal .pick-face,
  .user-app .pick-face {
    font-size: 12px;
    padding: 4px 8px;
    height: 28px;
    line-height: 18px;
    border-radius: 6px;
  }
  .user-app .pick-opt { font-size: 13px; padding: 10px 12px; }
  .user-app .api-modal .api-box {
    min-height: 72px;
    height: 18vh;
    max-height: 140px;
    flex: 1 1 auto;
  }
  .user-app .api-modal .actions { flex-shrink: 0; margin-top: 10px; }
  .user-app table.m-cards { border: 0; background: transparent; }
  .user-app table.m-cards, .user-app table.m-cards tbody { display: block; width: 100%; }
  .user-app table.m-cards tr:first-child { display: none; }
  .user-app table.m-cards tr {
    display: grid;
    grid-template-columns: 28px minmax(0, 4.8em) minmax(0, 1fr) max-content max-content;
    column-gap: 8px;
    row-gap: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    margin: 0 0 10px;
    padding: 10px 12px;
  }
  .user-app table.m-cards td {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    border: 0;
    padding: 0;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
  }
  .user-app table.m-cards td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    line-height: 1.2;
  }
  .user-app table.m-cards .take-cell {
    grid-column: 1 / -1;
    display: block;
    overflow: visible;
    padding-top: 2px;
  }
  .user-app table.m-cards .take-cell::before { display: none; }
  .user-app table.m-cards .take-btn { width: 100%; }
  .user-app table.m-cards td.prod-name-td,
  .user-app table.m-cards td:nth-child(3),
  .user-app table.m-cards td:nth-child(4),
  .user-app table.m-cards td:nth-child(5) { width: auto; max-width: none; }
  .user-app table.m-cards td:nth-child(4),
  .user-app table.m-cards td:nth-child(5) { align-items: flex-end; text-align: right; overflow: visible; }
  .user-app table.m-cards td:not(.prod-icon-td):not(:last-child) { line-height: 28px; }
  .user-app table.m-cards td.prod-icon-td { align-items: flex-start; overflow: visible; margin-right: -4px; }
  .user-app table.m-cards td.prod-icon-td::before { content: "\00a0"; visibility: hidden; font-size: 11px; line-height: 1.2; }
  .user-app table.m-cards .prod-icon { width: 28px; height: 28px; }
}