

:root {
  
  --bg: #f4f7fb;
  --bg-top: #fbfdff;
  --bg-bottom: #e8effa;
  --bg-grad-1: rgba(47, 107, 255, 0.10);
  --bg-grad-2: rgba(124, 58, 237, 0.08);
  --surface: #ffffff;
  --surface-2: #f7f9fd;
  --surface-3: #eef3fa;
  --surface-4: #e4ecf7;
  --line: #e4eaf3;
  --line-2: #d2dceb;
  --txt: #0f1b2d;
  --dim: #5d6b82;
  --dim-2: #93a3bb;

  
  --brand: #2f6bff;
  --brand-2: #7c3aed;
  --cyan: #0891b2;
  
  
  --brand-fill: var(--brand);
  --brand-2-fill: var(--brand-2);
  --grad-brand: linear-gradient(135deg, var(--brand-fill), var(--brand-2-fill));
  --grad-brand-h: linear-gradient(100deg, var(--brand-fill), var(--brand-2-fill) 55%, var(--cyan));
  --grad-brand-soft: linear-gradient(135deg, var(--brand-fill), var(--brand-2-fill));
  --ok: #0f9d58;
  --warn: #e8a317;
  --err: #e5484d;
  --ok-bg: #e7f7ef;
  --warn-bg: #fdf4e3;
  --err-bg: #fdecec;
  --brand-bg: #e8efff;

  --r: 16px;
  --r-sm: 10px;
  --shadow: 0 10px 30px -14px rgba(15, 27, 45, 0.18);
  --shadow-lg: 0 24px 60px -30px rgba(15, 27, 45, 0.28);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --topbar-bg: rgba(255, 255, 255, 0.86);
  --topbar-solid: rgba(255, 255, 255, 0.97);
}


html[data-theme="dark"] {
  --bg: #070a12;
  --bg-top: #0b1120;
  --bg-bottom: #04060c;
  --bg-grad-1: rgba(79, 124, 255, 0.18);
  --bg-grad-2: rgba(157, 92, 255, 0.14);
  --surface: #0f1524;
  --surface-2: rgba(255, 255, 255, 0.045);
  --surface-3: rgba(255, 255, 255, 0.08);
  --surface-4: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --txt: #e9eefb;
  --dim: #93a0b8;
  --dim-2: #64728a;
  --brand: #4f7cff;
  --brand-2: #9d5cff;
  --cyan: #22d3ee;
  --ok: #25d07c;
  --warn: #ffb020;
  --err: #ff5468;
  --ok-bg: rgba(37, 208, 124, 0.14);
  --warn-bg: rgba(255, 176, 32, 0.14);
  --err-bg: rgba(255, 84, 104, 0.14);
  --brand-bg: rgba(79, 124, 255, 0.16);
  --shadow: 0 22px 60px -28px rgba(0, 0, 0, 0.95);
  --shadow-lg: 0 30px 80px -30px rgba(0, 0, 0, 0.9);
  --topbar-bg: rgba(7, 10, 18, 0.8);
  --topbar-solid: rgba(7, 10, 18, 0.97);
}

* { box-sizing: border-box; }
html { height: 100%; }
body { min-height: 100vh; height: auto; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--txt);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 460px at 12% -8%, var(--bg-grad-1), transparent 62%),
    radial-gradient(760px 420px at 88% -6%, var(--bg-grad-2), transparent 58%),
    radial-gradient(900px 520px at 50% 108%, var(--bg-grad-1), transparent 66%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 45%, var(--bg-bottom) 100%);
}


h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; }
h1 { line-height: 1.2; letter-spacing: -0.022em; }
p, li { text-wrap: pretty; }
:where(.hero-sub, .step-card span, .muted, .hint) { line-height: 1.72; }
:where(b, strong) { font-weight: 700; }

.mono, .o-code, .num-phone, .o-phone, .phone, .code-big, .kpi-val, .hero-stat b,
.mini-stat b, .rank-val, .stat b, .o-remain, .ring-txt, .log-line .lt {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

body, .card, .panel-title, .panel-title h3, .m-text, .hint, .empty, .tb td, .o-sms, .sms-text,
.num-card, .order-item, .project-card, .log-line, .notice, .setting-row .s-info {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.panel-title { min-width: 0; }
.panel-title > * { min-width: 0; }

a { color: var(--brand); text-decoration: none; }
a:hover { opacity: 0.82; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }
code, .mono { font-family: var(--mono); }
::selection { background: rgba(47, 107, 255, 0.2); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: var(--dim-2); background-clip: content-box; }

.hide { display: none !important; }
.muted { color: var(--dim); }
.dim2 { color: var(--dim-2); }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.col { display: flex; flex-direction: column; gap: 10px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.mb8 { margin-bottom: 8px; } .mb12 { margin-bottom: 12px; } .mb16 { margin-bottom: 16px; }
.f12 { font-size: 12.5px; } .f13 { font-size: 13.5px; } .f18 { font-size: 18px; } .f22 { font-size: 22px; } .f28 { font-size: 28px; }
.bold { font-weight: 700; }
.grad-text {
  background: var(--grad-brand-h);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}



.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 42px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--txt); font-size: 14.5px; font-weight: 600;
  cursor: pointer; transition: 0.16s ease; white-space: nowrap; user-select: none;
}

.btn:hover { background: var(--surface-3); color: var(--txt); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; box-shadow: none; }
.btn:focus-visible, .tabs button:focus-visible, .chip:focus-visible, .nav a:focus-visible, .bottom-nav a:focus-visible {
  outline: 3px solid rgba(47, 107, 255, 0.42); outline-offset: 2px;
}

.btn-primary {
  background: var(--grad-brand);
  border-color: transparent; color: #fff;
  box-shadow: 0 10px 24px -12px rgba(59, 116, 255, 0.85);
}

.btn-primary:hover {
  background: var(--grad-brand);
  color: #fff; filter: brightness(1.12) saturate(1.06);
  box-shadow: 0 14px 30px -12px rgba(89, 100, 255, 0.9);
}
.btn-ok { background: var(--ok-bg); border-color: transparent; color: var(--ok); }
.btn-ok:hover { background: var(--ok); border-color: transparent; color: #fff; }
.btn-danger { background: var(--err-bg); border-color: transparent; color: var(--err); }
.btn-danger:hover { background: var(--err); border-color: transparent; color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line-2); }
.btn-ghost:hover { background: var(--surface-3); color: var(--txt); }
.btn-sm { height: 34px; padding: 0 13px; font-size: 13px; border-radius: 10px; }
.btn-xs { height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.btn-lg { height: 50px; padding: 0 28px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-icon { width: 38px; height: 38px; padding: 0; border-radius: 11px; }



.input, .select, .textarea {
  width: 100%; height: 44px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--txt);
  font-size: 14.5px; font-family: inherit; outline: none; transition: 0.15s;
}
.textarea { height: auto; padding: 11px 14px; line-height: 1.7; resize: vertical; font-family: var(--mono); font-size: 13px; }
.input::placeholder, .textarea::placeholder { color: var(--dim-2); }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.12);
}
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2393a3bb' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px; cursor: pointer;
}
html[data-theme="dark"] .select option { background: #131a2a; color: var(--txt); }
.f-label { display: block; font-size: 13px; color: var(--dim); margin-bottom: 7px; font-weight: 600; }
.f-label .req { color: var(--err); }
.field { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.input-group { display: flex; gap: 8px; }
.hint { font-size: 12.5px; color: var(--dim-2); margin-top: 8px; line-height: 1.7; }

.switch { position: relative; display: inline-block; width: 44px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--surface-4); border-radius: 99px; transition: 0.2s; cursor: pointer; }
.switch span::after {
  content: ""; position: absolute; width: 18px; height: 18px; left: 4px; top: 4px;
  background: #fff; border-radius: 50%; transition: 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.switch input:checked + span { background: var(--grad-brand); }
.switch input:checked + span::after { transform: translateX(18px); }



.u-shell { min-height: 100vh; display: flex; flex-direction: column; }
.container { width: 100%; max-width: 1260px; margin: 0 auto; padding: 0 24px; }


.topbar {
  position: sticky; top: 0; z-index: 40;
  background: var(--topbar-solid, var(--topbar-bg));
  border-bottom: 1px solid var(--line);
  
  will-change: transform;
  transform: translateZ(0);
}
.topbar-inner { display: flex; align-items: center; gap: 22px; height: 68px; }
.logo { display: flex; align-items: center; gap: 11px; flex: none; color: var(--txt); }
.logo-mark {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad-brand); color: #fff; font-weight: 800; font-size: 17px;
  box-shadow: 0 8px 20px -8px rgba(90, 100, 255, 0.8);
}
.logo-name { font-size: 17px; font-weight: 800; letter-spacing: 0.2px; line-height: 1.2; }
.logo-sub { font-size: 10.5px; color: var(--dim-2); letter-spacing: 1.6px; }

.nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav a { padding: 9px 14px; border-radius: 11px; color: var(--dim); font-size: 14.5px; font-weight: 600; transition: 0.15s; white-space: nowrap; }
.nav a:hover { color: var(--txt); background: var(--surface-3); opacity: 1; }
.nav a.active { color: var(--brand); background: var(--brand-bg); }

.balance-pill {
  display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 6px 0 14px;
  border: 1px solid var(--line-2); border-radius: 99px; background: var(--surface);
  font-size: 14px; flex: none;
}
.balance-pill b { font-family: var(--mono); font-size: 15px; color: var(--ok); }
.balance-pill .plus {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad-brand); color: #fff; font-size: 17px; cursor: pointer; line-height: 1;
}
.user-chip { display: flex; align-items: center; gap: 9px; cursor: pointer; padding: 4px 10px 4px 4px; border-radius: 99px; transition: 0.15s; }
.user-chip:hover { background: var(--surface-3); }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--grad-brand); font-size: 14px; font-weight: 700; color: #fff;
}
.menu-pop {
  position: fixed; right: 24px; top: 68px; min-width: 198px; padding: 7px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px;
  box-shadow: var(--shadow-lg); z-index: 60;
}
.menu-pop a, .menu-pop button {
  display: flex; width: 100%; align-items: center; gap: 9px; padding: 10px 13px; border: 0; background: none;
  color: var(--txt); font-size: 14px; border-radius: 10px; cursor: pointer; text-align: left; font-weight: 500;
}
.menu-pop a:hover, .menu-pop button:hover { background: var(--surface-3); }
.menu-pop .split { height: 1px; background: var(--line); margin: 6px 4px; }

.u-main { flex: 1; padding: 32px 0 64px; }
.u-foot { border-top: 1px solid var(--line); padding: 26px 0; color: var(--dim-2); font-size: 13px; }



.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px; box-shadow: var(--shadow);
}
.card-hover { transition: 0.18s; }
.card-hover:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panel-title h3 { font-size: 16.5px; }
.section { margin-bottom: 30px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.section-head h2 { font-size: clamp(18px, 4.6vw, 22px); }
.section-head .sub { color: var(--dim); font-size: 13.5px; margin-top: 4px; line-height: 1.6; }

.badge {
  display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 10px;
  border-radius: 8px; font-size: 12px; font-weight: 700; white-space: nowrap;
}
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-err { background: var(--err-bg); color: var(--err); }
.badge-muted { background: var(--surface-3); color: var(--dim); }
.badge-brand { background: var(--brand-bg); color: var(--brand); }

.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
.dot-ok { background: var(--ok); }
.dot-warn { background: var(--warn); }
.dot-err { background: var(--err); }
.dot-pulse { animation: pulse 1.8s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }



.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
table.tb { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 680px; }
table.tb th {
  text-align: left; padding: 12px 15px; font-size: 12.5px; color: var(--dim); font-weight: 700;
  background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap;
  position: sticky; top: 0; z-index: 1;
}
table.tb td { padding: 12px 15px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.tb tr:last-child td { border-bottom: 0; }
table.tb tbody tr:hover { background: var(--surface-2); }
table.tb .num { font-family: var(--mono); font-size: 13px; }
table.tb .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.tb-empty { padding: 48px 0; text-align: center; color: var(--dim-2); }



.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs button {
  height: 38px; padding: 0 16px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--surface);
  color: var(--dim); font-size: 14px; cursor: pointer; font-weight: 600; transition: 0.15s;
}
.tabs button:hover { color: var(--txt); background: var(--surface-3); }
.tabs button.active { background: var(--brand-bg); color: var(--brand); border-color: transparent; }


.chips { display: flex; gap: 8px; flex-wrap: wrap; }

.chip {
  height: 34px; padding: 0 13px; border-radius: 11px; display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--txt);
  font-size: 13px; cursor: pointer; transition: 0.15s; font-weight: 600; white-space: nowrap;
}
.chip:hover { background: var(--brand-bg); border-color: var(--brand); color: var(--brand); }
.chip.on {
  background: var(--grad-brand); border-color: transparent; color: #fff;
  box-shadow: 0 8px 18px -12px rgba(15, 27, 45, 0.55);
}
.chip .n {
  font-family: var(--mono); font-size: 11px; font-weight: 700; line-height: 1;
  padding: 4px 6px; border-radius: 99px; background: var(--surface-3); color: var(--dim);
}
.chip.on .n { background: rgba(255, 255, 255, 0.24); color: #fff; }

.chip-more { border-style: dashed; color: var(--dim); }
.chip-more:hover { border-style: solid; }

.chip.is-off { opacity: 0.45; cursor: not-allowed; }
.chip.is-off:hover { border-color: var(--line-2); background: var(--surface); color: var(--txt); }

.prompt-presets { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.prompt-presets .chip { height: 28px; padding: 0 10px; border-radius: 9px; font-size: 12.5px; font-weight: 600; }
.prompt-presets .chip.on { background: var(--brand-bg); border-color: var(--brand); color: var(--brand); box-shadow: none; }


.chip-panel {
  margin: -6px 0 16px; padding: 14px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface-2);
}
.chip-panel .input { height: 38px; margin-bottom: 10px; }
.chip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 8px; max-height: 320px; overflow: auto; }
.chip-grid .chip { width: 100%; justify-content: space-between; }
.chip-grid .chip .cc-name { overflow: hidden; text-overflow: ellipsis; }
.chip-grid .chip.hide { display: none; }


.pj-chips { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 auto; min-width: 0; }
.pj-cc-select { display: none; }

.pager { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 20px; flex-wrap: wrap; }
.pager button {
  min-width: 36px; height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--dim); font-size: 13px; cursor: pointer;
}
.pager button:hover:not(:disabled) { color: var(--txt); background: var(--surface-3); }
.pager button.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager button:disabled { opacity: 0.4; cursor: not-allowed; }
.pager .info { color: var(--dim-2); font-size: 12.5px; margin: 0 8px; }

.empty { padding: 60px 20px; text-align: center; color: var(--dim-2); }
.empty-ico { font-size: 40px; opacity: 0.6; margin-bottom: 12px; }
.empty p { font-size: 14px; }

.bar { height: 7px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }



.toast-box { position: fixed; top: 22px; left: 50%; transform: translateX(-50%); z-index: 999; display: flex; flex-direction: column; gap: 9px; align-items: center; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 13px;
  background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg);
  font-size: 14.5px; font-weight: 500; opacity: 0; transform: translateY(-10px) scale(0.97);
  transition: 0.24s ease; max-width: 88vw;
}
.toast.in { opacity: 1; transform: none; }
.toast-ico { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; flex: none; }
.toast-success .toast-ico { background: var(--ok); }
.toast-error .toast-ico { background: var(--err); }
.toast-warn .toast-ico { background: var(--warn); }
.toast-info .toast-ico { background: var(--brand); }




.modal-mask {
  position: fixed; inset: 0; background: rgba(15, 27, 45, 0.55);
  z-index: 500; display: flex; align-items: center; justify-content: center; padding: 22px;
  opacity: 0; transition: 0.2s;
}
html[data-theme="dark"] .modal-mask { background: rgba(0, 0, 0, 0.7); }
.modal-mask.in { opacity: 1; }
.modal {
  width: 100%; max-height: 90vh; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: 20px; box-shadow: var(--shadow-lg); transform: translateY(14px) scale(0.985);
  transition: 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.modal-mask.in .modal { transform: none; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 14px; }
.modal-head h3 { font-size: 17.5px; }
.modal-x { border: 0; background: none; color: var(--dim); font-size: 26px; line-height: 1; cursor: pointer; padding: 0 2px; }
.modal-x:hover { color: var(--txt); }
.modal-body { padding: 6px 22px 20px; overflow: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.m-text { color: var(--dim); font-size: 14.5px; line-height: 1.8; }

.skeleton-wrap { display: flex; flex-direction: column; gap: 12px; }
.skeleton {
  height: 72px; border-radius: 14px;
  background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2));
  background-size: 200% 100%; animation: shimmer 1.3s infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }


.vip-tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 7px;
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.3px; white-space: nowrap;
  background: linear-gradient(135deg, #fff2d5, #ffe0b8); color: #a86400; border: 1px solid #ffd48a;
}
html[data-theme="dark"] .vip-tag { background: rgba(255, 176, 32, 0.18); color: #ffcb6b; border-color: rgba(255, 176, 32, 0.4); }


.fav-star { border: 0; background: none; cursor: pointer; font-size: 18px; line-height: 1; color: var(--line-2); transition: 0.15s; padding: 2px 4px; flex: none; }
.fav-star:hover { color: #ffc857; transform: scale(1.12); }
.fav-star.on { color: #f5a623; }
.pj-share { border: 1px solid transparent; background: var(--brand-bg); color: var(--brand); cursor: pointer; font-size: 11px; font-weight: 700; line-height: 1.4; padding: 2px 8px; border-radius: 99px; flex: none; white-space: nowrap; }
.pj-share:hover { border-color: var(--brand); }
.pk-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; }
.pk-foot .pk-price { margin-top: 0; }
.invite-banner { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; justify-content: center; padding: 12px 16px; margin: 12px 0; border-radius: 12px; border: 1px solid var(--warn); background: var(--warn-bg); color: var(--dim); font-size: 13px; line-height: 1.7; }
.invite-banner a { color: var(--brand); font-weight: 700; }
.lang-switch { height: 34px; padding: 0 12px; flex: none; }
.lang-fab-wrap { position: fixed; right: 14px; top: 14px; z-index: 700; }
.lang-fab-wrap .lang-switch { background: var(--card); box-shadow: var(--shadow); }
.ap-guide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.ap-guide-item { border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 11px 13px; }
.ap-guide-item b { display: block; font-size: 13px; margin-bottom: 4px; }
.ap-guide-item span { display: block; font-size: 12px; line-height: 1.55; color: var(--dim); }
@media (max-width: 900px) { .ap-guide { grid-template-columns: 1fr; } }
.invite-landing { background: var(--warn-bg); border-bottom: 1px solid rgba(255,176,32,.3); }
.invite-landing .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 9px; padding-bottom: 9px; font-size: 13px; color: var(--dim); }
.invite-landing .btn { flex: none; }
.share-box { display: flex; flex-direction: column; gap: 12px; }
.share-hero { display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.share-hero b { display: block; font-size: 15px; }
.share-hero span { display: block; font-size: 12px; color: var(--dim); margin-top: 2px; }
.share-reward { display: flex; gap: 8px; flex-wrap: wrap; }
.share-reward span { font-size: 12px; color: var(--brand); background: var(--brand-bg); border-radius: 99px; padding: 4px 10px; font-weight: 700; }
.share-box .hint { line-height: 1.7; }
.fav-strip { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }


.pk-flag {
  position: absolute; top: 0; right: 0; padding: 2px 9px; font-size: 10.5px; font-weight: 800; letter-spacing: .3px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.5) 0%, rgba(255,255,255,.12) 38%, rgba(255,255,255,0) 56%),
    linear-gradient(120deg, var(--brand-2) 0%, var(--brand) 50%, var(--cyan) 100%);
  color: #fff; border-bottom-left-radius: 10px;
  text-shadow: 0 1px 2px rgba(0,0,0,.2);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), 0 4px 10px -5px rgba(0,0,0,.45);
}
.pk-flag.platform {
  background: linear-gradient(135deg, var(--brand-bg) 0%, var(--surface) 100%);
  color: var(--brand);
  text-shadow: none;
  box-shadow: inset 0 0 0 1px var(--brand-bg), 0 4px 10px -5px rgba(0,0,0,.25);
}
.project-card.locked { border-style: dashed; }




.hero { padding: 48px 0 30px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: center; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 14px; border-radius: 99px;
  background: var(--brand-bg); color: var(--brand); font-size: 13px; font-weight: 700; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(28px, 7vw, 46px); line-height: 1.14; letter-spacing: -0.03em; font-weight: 800; overflow-wrap: anywhere; }
.hero-sub { color: var(--dim); font-size: clamp(14.5px, 3.8vw, 16px); margin-top: 16px; max-width: 560px; line-height: 1.78; }
.hero-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: clamp(16px, 4vw, 34px); margin-top: 32px; flex-wrap: wrap; }
.hero-stat b { display: block; font-size: clamp(20px, 5.4vw, 27px); font-weight: 800; font-family: var(--mono); letter-spacing: -0.5px; line-height: 1.2; }
.hero-stat span { font-size: 12.5px; color: var(--dim-2); }

.hero-card { padding: 22px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-lg); }
.mini-terminal { font-family: var(--mono); font-size: 12.5px; line-height: 1.95; color: var(--dim); }
.mini-terminal .k { color: var(--brand); font-weight: 600; }
.mini-terminal .s { color: #0f9d58; font-weight: 600; }
.mini-terminal .c { color: var(--dim-2); }
.terminal-head { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.terminal-head i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.terminal-head i:nth-child(1) { background: #ff5f57; }
.terminal-head i:nth-child(2) { background: #febc2e; }
.terminal-head i:nth-child(3) { background: #28c840; }
.terminal-head span { margin-left: auto; font-size: 11px; color: var(--dim-2); }


.big-search { display: flex; gap: 10px; margin-top: 26px; max-width: 620px; }
.big-search .input { height: 54px; font-size: 16px; border-radius: 15px; padding-left: 18px; }
.big-search .btn { height: 54px; border-radius: 15px; padding: 0 24px; font-size: 15.5px; }


.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step-card { padding: 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.step-num { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-bg); color: var(--brand); font-weight: 800; font-size: 15px; margin-bottom: 12px; }
.step-card b { display: block; font-size: 16px; margin-bottom: 6px; }
.step-card span { color: var(--dim); font-size: 13.5px; line-height: 1.7; }


.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.filter-bar .input, .filter-bar .select { max-width: 210px; height: 40px; }
.filter-bar .search { min-width: 240px; max-width: 320px; }

.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(166px, 1fr)); gap: 12px; }

.project-card, .num-card, .order-item {
  content-visibility: auto;
  contain-intrinsic-size: auto 116px;
}
.project-card {
  display: flex; flex-direction: column; gap: 9px; padding: 15px; border-radius: 15px; cursor: pointer;
  border: 1px solid var(--line);
  background: linear-gradient(158deg, var(--surface) 0%, var(--surface-2) 62%, var(--brand-bg) 145%);
  transition: 0.16s; position: relative; overflow: hidden;
  min-height: 112px; box-shadow: 0 1px 2px rgba(15,27,45,.04);
}
.project-card:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow); }
.project-card.sel { border-color: var(--brand); background: var(--brand-bg); }
.project-card .pk-top { display: flex; align-items: center; gap: 11px; }
.pk-icon {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  font-size: 15px; font-weight: 800; color: #fff; letter-spacing: -0.4px; flex: none;
  overflow: hidden; position: relative;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 3px 8px -3px rgba(15, 27, 45, 0.35);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

.pk-icon img {
  width: 76%; height: 76%; object-fit: contain; background: #fff; padding: 2px;
  border-radius: 7px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16);
}
.pk-name { font-size: 14px; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pk-name-link { color: inherit; text-decoration: none; }
.pk-name-link:hover { color: var(--brand); }
.pk-stock { font-size: 11.5px; color: var(--dim-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-price { font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--ok); margin-top: auto; }
.pk-price small { color: var(--dim-2); font-family: var(--font); font-weight: 500; }
.pk-price.none { color: var(--dim-2); font-family: var(--font); font-weight: 600; font-size: 13px; }


.market-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.num-card {
  display: flex; flex-direction: column; gap: 12px; padding: 17px; border-radius: 15px;
  border: 1px solid var(--line); background: var(--surface); transition: 0.16s; box-shadow: 0 1px 2px rgba(15,27,45,.04);
}
.num-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.num-head { display: flex; align-items: center; gap: 11px; }
.num-head .pk-icon { width: 40px; height: 40px; border-radius: 12px; }
.num-phone { font-family: var(--mono); font-size: 17px; font-weight: 700; letter-spacing: 0.3px; }
.num-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--dim); }
.num-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.num-price { font-family: var(--mono); font-size: 20px; font-weight: 800; color: var(--ok); }
.num-price small { font-size: 11.5px; color: var(--dim-2); font-weight: 500; }
.price-old { font-size: 12.5px; font-weight: 500; color: var(--dim-2); text-decoration: line-through; margin-right: 5px; }
.num-price-box { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.num-vip { line-height: 1; }
.num-free { font-family: inherit; font-size: 15px; color: var(--ok); font-weight: 700; }


.order-item {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.15fr 1fr 0.95fr auto; gap: 16px; align-items: center;
  padding: 16px 18px 16px 26px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); transition: 0.15s;
}
.order-item:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.order-item::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--line-2);
}
.order-item.st-pending { border-color: rgba(255, 176, 32, 0.45); }
.order-item.st-pending::before { background: linear-gradient(180deg, #ffb020, #ff8a00); }
.order-item.st-success { border-color: rgba(37, 208, 124, 0.42); }
.order-item.st-success::before { background: linear-gradient(180deg, #25d07c, #0ca678); }
.order-item.st-ended::before { background: var(--line-2); }
.order-item.st-ended { opacity: 0.92; }

.o-state { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.o-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 99px;
  font-size: 12.5px; font-weight: 800; letter-spacing: 0.2px;
}
.o-chip.pending { background: var(--warn-bg); color: var(--warn); }
.o-chip.success { background: var(--ok-bg); color: var(--ok); }
.o-chip.ended { background: var(--surface-3); color: var(--dim); }
.o-chip .dot { width: 7px; height: 7px; }
.o-left { font-size: 12.5px; font-weight: 700; color: var(--warn); font-family: var(--mono); }
.o-done { font-size: 12.5px; color: var(--dim-2); }

.o-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--surface-3); overflow: hidden; }

.o-bar i {
  display: block; height: 100%; width: 100%; transform-origin: left center;
  transform: scaleX(1); transition: transform 0.9s linear;
  background: linear-gradient(90deg, #ffb020, #ff8a00);
}
.order-item.st-success .o-bar i { background: linear-gradient(90deg, #25d07c, #0ca678); }

.order-main .o-proj { font-size: 14.5px; font-weight: 700; }
.order-main .o-no { font-family: var(--mono); font-size: 12px; color: var(--dim-2); margin-top: 2px; }
.o-phone { font-family: var(--mono); font-size: 14px; font-weight: 600; }
.o-code { font-family: var(--mono); font-size: 20px; font-weight: 800; color: var(--brand); letter-spacing: 2px; }
.o-refund { font-size: 13px; font-weight: 700; color: var(--dim); }
.o-time { font-size: 12px; color: var(--dim-2); }
.o-hint { font-size: 11.5px; color: var(--dim-2); margin-top: 3px; }


.code-panel { text-align: center; padding: 6px 0 4px; }

.sms-box {
  margin: 14px auto 0; max-width: 400px; text-align: left;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2);
  overflow: hidden;
}
.sms-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 12px; font-size: 11.5px; font-weight: 700; color: var(--dim);
  border-bottom: 1px solid var(--line); background: var(--surface-3);
}
.sms-from { font-weight: 500; color: var(--dim-2); }
.sms-text {
  padding: 10px 12px; font-size: 13.5px; line-height: 1.65; color: var(--txt);
  word-break: break-word; white-space: pre-wrap; max-height: 132px; overflow: auto;
}
.o-sms {
  margin-top: 4px; font-size: 12px; color: var(--dim-2); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.code-phone {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 14px;
  background: var(--brand-bg); color: var(--brand); font-family: var(--mono); font-size: 20px; font-weight: 700;
}
.code-copy { cursor: pointer; color: var(--dim); font-size: 13px; font-weight: 500; }
.code-copy:hover { color: var(--brand); }
.code-ring { position: relative; width: 100px; height: 100px; margin: 22px auto 10px; }
.code-ring svg { transform: rotate(-90deg); }
.code-ring .ring-txt { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-size: 20px; font-weight: 800; }
.code-big { font-family: var(--mono); font-size: 44px; font-weight: 800; letter-spacing: 8px; color: var(--brand); margin: 12px 0 6px; }
.waiting { display: flex; align-items: center; justify-content: center; gap: 6px; height: 76px; }
.waiting i { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); animation: bounce 1.2s infinite; }
.waiting i:nth-child(2) { animation-delay: 0.15s; background: var(--brand-2); }
.waiting i:nth-child(3) { animation-delay: 0.3s; background: var(--cyan); }
@keyframes bounce { 0%, 100% { transform: translateY(0); opacity: 0.35; } 50% { transform: translateY(-10px); opacity: 1; } }


.pay-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.pay-opt { padding: 15px 10px; border-radius: 13px; border: 1px solid var(--line-2); background: var(--surface); text-align: center; cursor: pointer; transition: 0.15s; }
.pay-opt:hover { border-color: var(--brand); }
.pay-opt.sel { border-color: var(--brand); background: var(--brand-bg); }
.pay-opt b { display: block; font-family: var(--mono); font-size: 20px; }
.pay-opt span { font-size: 12px; color: var(--dim-2); }

.buy-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.buy-note { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; margin-bottom: 12px; border-radius: 12px; border: 1px solid var(--brand); background: var(--brand-bg); }
.buy-note b { font-size: 13.5px; color: var(--brand); }
.buy-note span { font-size: 12.5px; color: var(--dim); line-height: 1.7; }
.vip-note { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 10px 14px; margin-bottom: 12px; border-radius: 11px; border: 1px dashed var(--warn); background: var(--warn-bg); font-size: 12.5px; line-height: 1.7; }
.vip-note b { color: var(--warn); font-size: 13px; }
.vip-note span { color: var(--dim); }
@media (max-width: 900px) {
  .buy-list { grid-template-columns: 1fr; }
}
.rg-balance {
  display: flex; align-items: baseline; gap: 10px; padding: 9px 13px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-bg), var(--surface-2)); margin: 2px 0 12px;
}
.rg-balance span { font-size: 12px; color: var(--dim); }
.rg-balance b { font-family: var(--mono); font-size: 22px; color: var(--brand); }
.rg-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.rg-steps li { display: flex; align-items: flex-start; gap: 9px; }
.rg-steps i {
  width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  font-style: normal; font-size: 12px; font-weight: 800;
}
.rg-steps b { display: block; font-size: 13px; line-height: 1.4; }
.rg-steps span { font-size: 12px; color: var(--dim); line-height: 1.5; }
.rg-trust { margin-top: auto; padding-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.rg-trust span { font-size: 11px; color: var(--dim); background: var(--surface-2); border: 1px solid var(--line); border-radius: 99px; padding: 3px 9px; }
.buy-row {
  position: relative; display: flex; flex-direction: column; gap: 14px; cursor: pointer;
  padding: 16px; border: 1px solid var(--line); border-radius: 18px; min-height: 196px;
  background:
    radial-gradient(150px 110px at 100% 0%, var(--brand-bg), transparent 72%),
    linear-gradient(180deg, var(--surface), var(--surface-2));
  transition: 0.2s; overflow: hidden;
}
.buy-row::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2)); opacity: 0.9;
}
.buy-row::after {
  content: '¥'; position: absolute; right: 6px; bottom: -28px; z-index: 0;
  font-family: var(--mono); font-size: 104px; font-weight: 900; line-height: 1;
  color: var(--brand); opacity: 0.05; pointer-events: none;
}
.buy-row > * { position: relative; z-index: 1; }
.buy-row:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow); }
.buy-top { display: flex; align-items: center; gap: 8px; }
.buy-ico {
  width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center;
  background: var(--brand-bg); color: var(--brand); font-size: 16px; font-weight: 900; font-family: var(--mono);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28);
}
.buy-main { flex: 1; min-width: 0; }
.buy-kicker { flex: 1; min-width: 0; font-size: 10.5px; letter-spacing: 1px; color: var(--dim-2); font-weight: 700; }
.buy-sold {
  flex: none; font-size: 10px; color: var(--dim); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 99px; padding: 2px 7px; white-space: nowrap;
}
.buy-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.buy-price { font-family: var(--mono); font-size: 28px; font-weight: 900; color: var(--brand); letter-spacing: -1px; line-height: 1.1; }
.buy-price small { font-size: 14px; font-weight: 700; letter-spacing: 0; margin-right: 1px; }
.buy-tag {
  background: linear-gradient(135deg, #ff7a7a, #e5484d); color: #fff; font-size: 10px;
  font-weight: 800; padding: 2px 8px; border-radius: 99px; letter-spacing: 0.5px;
}
.buy-url { display: block; font-size: 11.5px; color: var(--dim-2); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buy-url:hover { color: var(--brand); }
.buy-ring {
  --p: 0;
  position: relative; width: 56px; height: 56px; flex: none; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--brand), var(--brand-2) calc(var(--p) * 1%), var(--surface-3) 0);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.buy-ring::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: var(--surface); }
.buy-ring b { position: relative; z-index: 1; font-family: var(--mono); font-size: 13px; font-weight: 900; color: var(--brand); line-height: 1; }
.buy-ring span { position: relative; z-index: 1; font-size: 8.5px; color: var(--dim); margin-top: 2px; }
.buy-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.buy-buy { flex: 1 1 auto; min-width: 0; justify-content: center; }
.buy-buy span { font-size: 14px; margin-left: 2px; }
.buy-copy { flex: none; border: 1px solid var(--line-2); background: var(--surface); color: var(--dim); border-radius: 9px; font-size: 11.5px; padding: 6px 10px; cursor: pointer; white-space: nowrap; }
.buy-copy:hover { color: var(--brand); border-color: var(--brand); }
@media (max-width: 900px) { .buy-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .buy-list { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .buy-row { padding: 13px; }
  .buy-ico { width: 40px; height: 40px; font-size: 17px; }
  .buy-price { font-size: 23px; }
  .buy-ring { width: 50px; height: 50px; }
  .buy-buy { min-width: 112px; }
}


.docs-grid { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.docs-nav { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 3px; }
.docs-nav a { padding: 9px 13px; border-radius: 10px; color: var(--dim); font-size: 14px; cursor: pointer; font-weight: 500; }
.docs-nav a:hover { background: var(--surface-3); color: var(--txt); opacity: 1; }
.docs-nav a.active { background: var(--brand-bg); color: var(--brand); font-weight: 700; }
.doc-block { margin-bottom: 28px; }
.doc-flash { animation: docFlash 0.9s ease; border-radius: 12px; }
@keyframes docFlash {
  0% { background: rgba(47, 107, 255, 0.12); box-shadow: 0 0 0 10px rgba(47, 107, 255, 0.08); }
  100% { background: transparent; box-shadow: none; }
}
.doc-block h3 { font-size: 17px; margin-bottom: 10px; display: flex; align-items: center; gap: 9px; }
.doc-block h3 .idx { font-family: var(--mono); font-size: 12px; color: var(--dim-2); }
.doc-block p { color: var(--dim); font-size: 14px; line-height: 1.8; margin-bottom: 10px; }
.code-block { position: relative; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; background: var(--surface-2); margin: 12px 0; }
.code-block .cb-head { display: flex; align-items: center; justify-content: space-between; padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--dim-2); background: var(--surface-3); }
.code-block pre { margin: 0; padding: 15px 17px; overflow: auto; font-family: var(--mono); font-size: 12.5px; line-height: 1.8; color: var(--txt); }
.code-block .cb-copy { cursor: pointer; color: var(--dim); font-size: 12px; }
.code-block .cb-copy:hover { color: var(--brand); }
.api-method { display: inline-flex; padding: 1px 8px; border-radius: 6px; font-family: var(--mono); font-size: 11px; font-weight: 700; }
.api-get { background: var(--ok-bg); color: var(--ok); }
.api-post { background: var(--brand-bg); color: var(--brand); }

.api-hero {
  display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 18px;
  padding: 20px; border: 1px solid var(--line); border-radius: 18px;
  background:
    radial-gradient(420px 220px at 0% 0%, var(--brand-bg), transparent 70%),
    linear-gradient(180deg, var(--surface), var(--surface-2));
  margin-bottom: 16px;
}
.api-hero h2 { margin: 10px 0 0; }
.api-base {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px;
  border: 1px solid var(--line); border-radius: 11px; background: var(--surface);
  font-family: var(--mono); font-size: 12px; overflow: auto;
}
.api-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.api-facts > div {
  display: flex; align-items: baseline; gap: 6px; padding: 6px 11px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2);
}
.api-facts b { font-size: 13px; color: var(--brand); }
.api-facts span { font-size: 11px; color: var(--dim); }
.api-keycard { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.api-keybox { display: flex; gap: 6px; }
.api-keybox input { flex: 1; min-width: 0; }
.api-test-out {
  margin: 12px 0 0; padding: 10px 12px; max-height: 150px; overflow: auto;
  border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line);
  font-family: var(--mono); font-size: 11.5px; line-height: 1.6; color: var(--dim); white-space: pre-wrap; word-break: break-all;
}
.api-jump {
  display: flex; flex-wrap: wrap; gap: 6px; position: sticky; top: 74px; z-index: 6;
  padding: 7px 0; margin-bottom: 16px; background: var(--bg);
}
.api-jump a {
  padding: 4px 11px; border-radius: 99px; border: 1px solid var(--line);
  background: var(--surface); color: var(--dim); font-size: 12px; cursor: pointer; transition: 0.15s;
}
.api-jump a:hover { color: var(--brand); border-color: var(--brand); }
.api-jump a.active { background: var(--brand-bg); border-color: transparent; color: var(--brand); font-weight: 700; }
.api-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.api-step { position: relative; padding: 13px 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.api-step i {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  font-style: normal; font-size: 11px; font-weight: 800; margin-bottom: 7px;
}
.api-step b { display: block; font-size: 13px; margin-bottom: 3px; }
.api-step span { font-size: 12px; color: var(--dim); line-height: 1.6; }
.api-ep { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); margin-bottom: 10px; overflow: hidden; }
.api-ep-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.api-ep-head code { font-family: var(--mono); font-size: 13px; font-weight: 600; }
.api-ep-desc { margin-left: auto; font-size: 12px; color: var(--dim); }
.api-ep-body { padding: 12px 14px; }
.api-ep-body details summary { cursor: pointer; color: var(--dim); font-size: 12px; margin-top: 6px; }
.api-params { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.api-params th { text-align: left; padding: 5px 8px; color: var(--dim); font-size: 11.5px; background: var(--surface-2); }
.api-params td { padding: 6px 8px; border-top: 1px solid var(--line); vertical-align: top; }
.api-params td code { color: var(--brand); font-family: var(--mono); }
.doc-ul { margin: 0 0 10px 18px; padding: 0; color: var(--dim); font-size: 13.5px; line-height: 1.9; list-style: disc; }
.faq-h { margin: 18px 0 8px; font-size: 13.5px; color: var(--txt); }
.faq-item { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-bottom: 7px; overflow: hidden; }
.faq-item summary {
  display: flex; align-items: center; gap: 8px; padding: 10px 13px;
  font-size: 13px; font-weight: 600; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: '?'; width: 18px; height: 18px; flex: none; border-radius: 50%;
  background: var(--brand-bg); color: var(--brand); font-size: 11px; font-weight: 800;
  display: grid; place-items: center;
}
.faq-item[open] summary { background: var(--surface-2); border-bottom: 1px solid var(--line); }
.faq-item .faq-a { padding: 11px 13px 12px 39px; font-size: 12.5px; color: var(--dim); line-height: 1.8; }
@media (max-width: 820px) {
  .api-hero { grid-template-columns: 1fr; }
  .api-steps { grid-template-columns: 1fr; }
  .api-jump { top: 62px; }
}
.kv-table td:first-child { color: var(--dim); width: 150px; font-family: var(--mono); font-size: 12.5px; }


.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 0.95fr; }
.auth-side { padding: 56px; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line); background: var(--surface); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-box { width: 100%; max-width: 400px; }
.auth-box h2 { font-size: 29px; }
.auth-box .sub { color: var(--dim); font-size: 14px; margin: 9px 0 26px; }
.auth-switch { text-align: center; font-size: 14px; color: var(--dim); margin-top: 20px; }
.auth-switch a { font-weight: 700; cursor: pointer; }
.auth-perks { display: flex; flex-direction: column; gap: 18px; margin-top: 32px; }
.perk { display: flex; gap: 13px; align-items: flex-start; }
.perk-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--brand-bg); font-size: 16px; }
.perk b { font-size: 14.5px; display: block; }
.perk span { font-size: 13px; color: var(--dim-2); }


.invite-code-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-radius: 14px; border: 1px dashed var(--brand); background: var(--brand-bg); }
.invite-code-box b { font-family: var(--mono); font-size: 24px; letter-spacing: 3px; }


.apply-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.apply-item:last-child { border-bottom: 0; }



.a-shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.a-side { border-right: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow: auto; }
.a-side-head { padding: 20px; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid var(--line); }
.a-side-nav { padding: 14px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.a-side-nav .grp { font-size: 11px; color: var(--dim-2); letter-spacing: 1.4px; padding: 16px 12px 7px; font-weight: 700; }
.a-side-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px; color: var(--dim); font-size: 14px; font-weight: 600; transition: 0.15s; }
.a-side-nav a:hover { background: var(--surface-3); color: var(--txt); opacity: 1; }
.a-side-nav a.active { background: var(--brand-bg); color: var(--brand); }
.a-side-nav a .n-ico { width: 18px; text-align: center; }
.a-side-nav a .n-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--err-bg); color: var(--err); font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.a-side-foot { padding: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--dim-2); }

.a-main { min-width: 0; display: flex; flex-direction: column; }
.a-top { position: sticky; top: 0; z-index: 30; height: 64px; display: flex; align-items: center; gap: 14px; padding: 0 26px; border-bottom: 1px solid var(--line); background: var(--topbar-solid, var(--topbar-bg)); }
.a-top h2 { font-size: 17px; }
.a-top .crumb { color: var(--dim-2); font-size: 12.5px; }
.a-body { padding: 24px 26px 64px; flex: 1; }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.kpi { padding: 18px; border-radius: 15px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 1px 2px rgba(15,27,45,.04); }
.kpi-label { font-size: 13px; color: var(--dim); display: flex; align-items: center; gap: 7px; font-weight: 600; }
.kpi-val { font-family: var(--mono); font-size: 28px; font-weight: 800; letter-spacing: -0.8px; margin-top: 8px; }
.kpi-val small { font-size: 13px; color: var(--dim-2); font-family: var(--font); font-weight: 500; margin-left: 3px; }
.kpi-sub { font-size: 12px; color: var(--dim-2); margin-top: 5px; }

.a-cols { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; margin-top: 16px; }
.chart-box { padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: 0 1px 2px rgba(15,27,45,.04); }
.chart-legend { display: flex; gap: 16px; font-size: 12px; color: var(--dim); }
.chart-legend i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }
.chart-svg { width: 100%; height: 190px; display: block; margin-top: 14px; }

.rank-row { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.rank-row:last-child { border-bottom: 0; }
.rank-idx { width: 20px; font-family: var(--mono); font-size: 11.5px; color: var(--dim-2); }
.rank-name { font-size: 13.5px; flex: none; width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.rank-bar { flex: 1; height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.rank-bar i { display: block; height: 100%; border-radius: 99px; }
.rank-val { font-family: var(--mono); font-size: 12.5px; color: var(--dim); width: 56px; text-align: right; }

.mini-stat { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px; }
.mini-stat > div { padding: 13px 15px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.mini-stat b { display: block; font-family: var(--mono); font-size: 18px; }
.mini-stat span { font-size: 12px; color: var(--dim-2); }

.a-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.a-toolbar .input, .a-toolbar .select { width: auto; min-width: 140px; height: 40px; }
.a-toolbar .search { min-width: 220px; }
.a-toolbar .spacer { flex: 1; }
.a-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.a-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.a-grid-2.g-58 { grid-template-columns: 1.15fr .85fr; }
.a-grid-2.g-53 { grid-template-columns: 1.25fr .75fr; }
.a-cols.g-14 { grid-template-columns: 1.4fr 1fr; }
.mini-stat.g-3 { grid-template-columns: repeat(3, 1fr); }
.mini-stat.g-2 { grid-template-columns: 1fr 1fr; }

.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.setting-row:last-child { border-bottom: 0; }
.setting-row .s-info b { display: block; font-size: 14px; font-weight: 700; }
.setting-row .s-info span { font-size: 12.5px; color: var(--dim-2); }
.setting-row .s-ctrl { width: 220px; flex: none; }

.chk { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; }

.log-line { font-family: var(--mono); font-size: 12.5px; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--dim); display: flex; gap: 10px; }
.log-line .lt { color: var(--dim-2); flex: none; width: 132px; }
.log-line .la { color: var(--brand); flex: none; width: 112px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-line .ld { flex: 1; word-break: break-all; }


.seo-static { max-width: 860px; margin: 0 auto; padding: 40px 22px 60px; color: var(--txt); }
#seo-article { display: none; }
html.seo-anon #seo-article { display: block; }
html.seo-anon #app { display: none; }
html.has-user #seo-article { display: none; }
.seo-head { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.seo-head-in { max-width: 1120px; margin: 0 auto; padding: 0 22px; height: 62px; display: flex; align-items: center; gap: 16px; }
.seo-head .logo { display: flex; align-items: center; gap: 9px; color: var(--txt); font-weight: 800; }
.seo-head .logo-mark { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--grad-brand); color: #fff; font-size: 15px; }
.seo-head nav { margin-left: auto; display: flex; gap: 14px; font-size: 13.5px; flex-wrap: wrap; }
.seo-head nav a { color: var(--dim); }
.seo-head nav a:hover { color: var(--brand); }
.seo-crumb { font-size: 12.5px; color: var(--dim-2); margin-bottom: 14px; }
.seo-crumb a { color: var(--brand); }
.seo-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 6px; }
.seo-cta a { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 18px; border-radius: 10px; background: var(--grad-brand); color: #fff; font-weight: 700; font-size: 14px; }
.seo-cta a.ghost { background: var(--surface); border: 1px solid var(--line-2); color: var(--txt); }
.seo-related { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin-top: 10px; }
.seo-related a { padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--txt); font-size: 13px; }
.seo-related a:hover { border-color: var(--brand); color: var(--brand); }
.seo-foot { margin-top: 34px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--dim-2); font-size: 12px; }
@media (max-width: 600px) {
  .seo-static { padding: 24px 14px 42px; }
  .seo-head-in { padding: 0 14px; height: 56px; }
  .seo-head nav { gap: 9px; font-size: 12px; }
}
.seo-static h1 { font-size: clamp(22px, 4.6vw, 34px); line-height: 1.3; margin-bottom: 12px; }
.seo-static h2 { font-size: clamp(17px, 3.6vw, 21px); margin: 26px 0 10px; }
.seo-static p { color: var(--dim); line-height: 1.85; margin-bottom: 10px; }
.seo-static nav { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 16px 0; }
.seo-static nav a { color: var(--brand); font-weight: 600; }
.seo-static ol, .seo-static ul { padding-left: 22px; color: var(--dim); line-height: 1.85; }
.seo-static dt { font-weight: 700; margin-top: 10px; }
.seo-static dd { color: var(--dim); margin: 4px 0 0 0; }


.ow-preview { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ow-chip {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px;
  border-radius: 8px; background: var(--surface-3); color: var(--txt);
  font-family: var(--mono); font-size: 12.5px; white-space: nowrap;
}
.ow-chip i { font-style: normal; color: var(--ok); font-weight: 700; }
.ow-chip.dim2 { color: var(--dim-2); }
.ow-bad { width: 100%; margin-top: 6px; font-size: 12px; color: var(--err); line-height: 1.6; }


.pay-grid .pay-opt.sel { border-color: var(--brand); background: var(--brand-bg); }


.palette-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.pal-preview { margin-top: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); display: flex; flex-direction: column; gap: 10px; }
.pal-preview-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pal-bar { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--brand-fill), var(--brand-2-fill), var(--cyan)); }
.pal-swatch {
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px; cursor: pointer;
  border: 1px solid var(--line-2); border-radius: 11px; background: var(--surface); color: var(--txt);
  font-size: 13px; font-weight: 600; transition: 0.15s; text-align: left;
}
.pal-swatch:hover { border-color: var(--brand); background: var(--surface-3); }
.pal-swatch.on { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.pal-swatch.on .pal-name::after { content: ' ✓'; color: var(--brand); }
.pal-dot { width: 18px; height: 18px; border-radius: 7px; flex: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.pal-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-color {
  width: 42px; height: 34px; padding: 2px; border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--surface); cursor: pointer;
}


.theme-btn {
  width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line-2);
  background: var(--surface); cursor: pointer; font-size: 16px; line-height: 1; display: grid; place-items: center;
}
.theme-btn:hover { background: var(--surface-3); }


.bottom-nav { display: none; }


@media (max-width: 900px) {
  
  body { background: var(--bg); }
  .topbar, .a-top {
    backdrop-filter: none; -webkit-backdrop-filter: none;
    background: var(--surface);
  }
  .modal-mask { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .skeleton { animation: none; background: var(--surface-3); }
  .card, .project-card, .num-card, .kpi, .step-card { box-shadow: none; }
  .project-card, .buy-row, .hero-card, .step-card { background: var(--surface); }
  .buy-row::after { display: none; }
  .dot-pulse, .waiting i { animation: none; }
  .card-hover:hover, .project-card:hover, .num-card:hover, .btn:hover { transform: none; }
  .nav a, .topbar-inner { -webkit-tap-highlight-color: transparent; }
  a, button, .chip, .project-card, .buy-row { touch-action: manipulation; }
}
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  .a-cols { grid-template-columns: 1fr; }
  .docs-grid { grid-template-columns: 1fr; }
  .docs-nav { position: static; flex-direction: row; overflow: auto; padding-bottom: 8px; }
  .docs-nav a { white-space: nowrap; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .a-shell { grid-template-columns: 1fr; }
  .a-side { position: static; height: auto; flex-direction: row; align-items: center; overflow-x: auto; }
  .a-side-head { border-bottom: 0; border-right: 1px solid var(--line); padding: 12px; }
  .a-side-nav { flex-direction: row; padding: 8px; }
  .a-side-nav .grp, .a-side-foot { display: none; }
  .a-side-nav a { white-space: nowrap; padding: 8px 11px; }
  .a-body { padding: 16px; }
  .a-grid-2, .a-grid-3 { grid-template-columns: 1fr; }
  
  .a-grid-2.g-58, .a-grid-2.g-53, .a-cols.g-14 { grid-template-columns: 1fr; }
  .mini-stat.g-3 { grid-template-columns: 1fr 1fr; }
  .nav { overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .order-item { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 20px; }
  .topbar-inner { gap: 12px; }
  .logo-sub { display: none; }
}
@media (max-width: 768px) {
  
  .nav { display: none; }
  .topbar-inner { gap: 10px; height: 62px; }
  .logo-name { font-size: 15.5px; }
  .project-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .project-card { min-height: 104px; padding: 12px; }
  .pk-name { font-size: 13.5px; }
  .pk-icon { width: 34px; height: 34px; }
  .filter-bar .input, .filter-bar .select { max-width: none; }
  .filter-bar .search { min-width: 0; width: 100%; }
  .filter-bar .mk-fav-btn { flex: 1 1 100%; width: 100%; justify-content: center; height: 38px; }
  .chips { gap: 6px; }
  .chip { height: 32px; padding: 0 12px; font-size: 12.5px; }

  
  .filter-bar.scroll-x {
    flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch; padding-bottom: 6px; scrollbar-width: none;
  }
  .filter-bar.scroll-x::-webkit-scrollbar { display: none; }
  .filter-bar.scroll-x > * { flex: none; }
  #pj-filters .grow { display: none; }
  #pj-filters .pj-chips { flex: 1 1 100%; }
  #pj-filters #pj-sort { margin-left: auto; }

  
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs > * { flex: none; }

  
  .card, .project-card, .num-card, .order-item, .chart-box, .kpi, .step-card, .pay-opt {
    box-shadow: none !important;
  }
  .topbar { will-change: auto; transform: none; }

  .bottom-nav {
    display: flex;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: var(--surface); border-top: 1px solid var(--line);
    padding: 5px 0 calc(5px + env(safe-area-inset-bottom));
  }
  .bottom-nav a {
    flex: 1; text-align: center; font-size: 11.5px; color: var(--dim);
    padding: 4px 0; opacity: 1; line-height: 1.4;
  }
  .bottom-nav a.on { color: var(--brand); font-weight: 700; }
  .bottom-nav .bi { display: block; font-size: 19px; line-height: 1.15; }
  .u-shell { padding-bottom: 64px; }
  .u-foot { display: none; }
  .hero-card { display: none; }
  .hero-stats { gap: 16px 26px; }
  .hero h1 { font-size: 32px; }
  .big-search { margin-top: 18px; }
}

@media (max-width: 600px) {
  
  .input, .select, .textarea { font-size: 16px; }
  
  .hero h1 { letter-spacing: -0.035em; }
  .u-main { padding: 22px 0 56px; }
  .section-head { margin-bottom: 14px; }
  .hero { padding: 22px 0 14px; }

  
  .filter-bar:not(#pj-filters) {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px;
  }
  .filter-bar:not(#pj-filters) .search { grid-column: 1 / -1; }
  .filter-bar:not(#pj-filters) .mk-fav-btn { grid-column: 1 / -1; width: 100%; }
  .filter-bar:not(#pj-filters) .input,
  .filter-bar:not(#pj-filters) .select { width: 100%; max-width: none; height: 40px; }
  .filter-bar:not(#pj-filters) .btn { height: 38px; }

  
  #pj-filters { flex-wrap: nowrap; overflow: visible; gap: 8px; }
  #pj-filters .pj-chips { display: none; }
  #pj-filters .pj-cc-select {
    display: block; flex: 1 1 auto; min-width: 0; width: auto; max-width: none; height: 40px;
  }
  #pj-filters #pj-sort { flex: none; height: 40px; }
  #pj-more-panel { display: none; }

  
  #mk-cats {
    flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px;
    margin-left: -14px; margin-right: -14px; padding-left: 14px; padding-right: 14px;
  }
  #mk-cats::-webkit-scrollbar { display: none; }
  #mk-cats > * { flex: none; }

  
  .mini-stat { grid-template-columns: 1fr 1fr; gap: 8px; }
  .mini-stat > div { padding: 10px 12px; }
  .mini-stat b { font-size: 15.5px; }
  .mini-stat span { font-size: 11.5px; }
  .card { padding: 14px; }
  .panel-title { gap: 8px; }
  .panel-title h3 { font-size: 15px; }
  .a-grid-2, .a-grid-3, .a-cols { gap: 12px; }

  
  .input, .mono, .code-inline { min-width: 0; }
  .card .input-group .input { font-size: 12.5px; }
  .hint code, .hint .mono { word-break: break-all; }

  
  .setting-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .setting-row .s-ctrl { width: 100%; }
  .log-line { flex-wrap: wrap; gap: 4px 10px; }
  .log-line .lt { width: auto; }
  .log-line .la { width: auto; }

  
  .tb { font-size: 12.5px; }
  .tb th, .tb td { padding: 9px 10px; white-space: nowrap; }

  
  .chips {
    flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch; scrollbar-width: none; margin-bottom: 12px;
    padding-bottom: 2px;
  }
  .chips::-webkit-scrollbar { display: none; }
  .chips .chip { flex: none; }

  
  .tabs { gap: 5px; }
  .tabs button { padding: 0 11px; height: 34px; font-size: 13px; }

  
  .modal-mask { padding: 12px; align-items: flex-end; }
  .modal { max-width: 100% !important; width: 100% !important; border-radius: 18px; max-height: 88vh; }
  .modal-head { padding: 16px 18px 10px; }
  .modal-body { padding: 4px 18px 16px; }
  .modal-foot { padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); }
  
  .modal-foot .btn { flex: 1 1 auto; white-space: nowrap; }
  .container { padding: 0 14px; }
  .hero { padding: 26px 0 18px; }
  .hero h1 { font-size: 30px; letter-spacing: -0.8px; }
  .market-list { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .form-row { grid-template-columns: 1fr; }
  .balance-pill .b-label { display: none; }
  .order-item { grid-template-columns: 1fr; }
  .code-big { font-size: 34px; letter-spacing: 4px; }
  .auth-main { padding: 24px 16px; }
  .big-search { flex-direction: column; }
  .big-search .input { height: 48px; font-size: 16px; }
  .big-search .btn { width: 100%; height: 46px; font-size: 15px; }
  
  .hero-actions { gap: 10px; margin-top: 18px; }
  .hero-actions .btn { flex: 1 1 46%; height: 44px; font-size: 14.5px; padding: 0 12px; }
  .hero-tag { height: 28px; font-size: 12.5px; margin-bottom: 14px; }
  .hero-sub { margin-top: 12px; }
  .hero-stats { margin-top: 20px; gap: 14px 22px; }
  .hero-stat span { font-size: 11.5px; }

  
  .logo-mark { width: 32px; height: 32px; border-radius: 10px; font-size: 15px; }
  .logo-sub { display: none; }
  .topbar .row.right { gap: 6px; }
  .theme-btn { width: 34px; height: 34px; }
  .balance-pill { height: 34px; padding: 0 4px 0 9px; gap: 6px; }
  .balance-pill b { font-size: 13.5px; }
  .balance-pill .plus { width: 24px; height: 24px; font-size: 15px; }
  .user-chip { padding: 2px 4px 2px 2px; gap: 4px; }
  .user-chip .f13 { display: none; }
  .avatar { width: 30px; height: 30px; font-size: 13px; }
  .vip-tag { font-size: 10.5px; padding: 0 5px; height: 19px; line-height: 19px; }
  
  .order-item { grid-template-columns: 1fr auto; gap: 6px 10px; padding: 12px 12px 12px 18px; }  .order-main { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
  .o-state { margin-bottom: 0; }
  .order-main .o-proj { font-size: 14px; }
  .order-main .o-no { font-size: 11px; margin-top: 0; }
  .order-item > div:nth-child(2) { grid-column: 1; }
  .order-item > div:nth-child(3) { grid-column: 2; text-align: right; }
  .order-item > div:nth-child(4) { grid-column: 1 / -1; }
  .o-code { font-size: 20px; letter-spacing: 1px; }
  .o-phone { font-size: 13.5px; }
  .order-item .row { justify-content: flex-end; flex-wrap: wrap; }

  
  .pj-head { display: flex; align-items: center; gap: 12px; }
  .pj-head .pj-title { min-width: 0; }
}

@media (max-width: 600px) {
  .invite-landing .container { flex-direction: column; align-items: flex-start; gap: 7px; }
  .invite-landing .btn { width: 100%; justify-content: center; }
  .pj-head { align-items: flex-start !important; }
  .pj-head .pj-title { flex: 1; min-width: 0; }
  .pj-head .pj-title h1 { font-size: 22px; line-height: 1.25; }
}

@media (max-width: 380px) {
  .logo-name { font-size: 14px; }
  .user-chip .vip-tag { display: none; }
}


@media (hover: none) {
  .project-card:hover, .num-card:hover, .order-item:hover, .chip:hover, .pay-opt:hover {
    transform: none; box-shadow: none; border-color: var(--line);
  }
  .project-card, .num-card, .order-item { transition: none; }
  .btn:hover { filter: none; }
}



.batch-setup .batch-qty { display: flex; align-items: center; gap: 10px; margin: 14px 0 4px; }
.batch-qty b { font-family: var(--mono); font-size: 22px; min-width: 34px; text-align: center; }
.batch-qty .btn { width: 40px; height: 34px; padding: 0; font-size: 18px; line-height: 1; }
.batch-setup .batch-sum {
  border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 10px;
  display: flex; flex-direction: column; gap: 6px;
}
.batch-setup .batch-sum .danger { color: var(--err); }

.batch-result { max-height: 54vh; overflow: auto; }
.bp-head, .bp-row { display: grid; grid-template-columns: 1.15fr 0.95fr 1.1fr; gap: 10px; align-items: center; padding: 10px 4px; }
.bp-head { position: sticky; top: 0; z-index: 1; background: var(--surface); }
.bp-row { border-top: 1px solid var(--line); }
.bp-phone, .bp-code { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bp-code-num { font-family: var(--mono); font-size: 17px; letter-spacing: 0.06em; color: var(--ok); }
@media (max-width: 600px) {
  .bp-head { display: none; }
  .bp-row { grid-template-columns: 1fr; gap: 4px; padding: 12px 2px; }
  .bp-code { justify-content: flex-start; }
}



.using-bar { display: flex; flex-direction: column; gap: 8px; margin: 0 0 14px; }
.using-bar:empty { display: none; }
.using-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.using-label { font-size: 12.5px; color: var(--dim); font-weight: 600; white-space: nowrap; }
.using-label b { color: var(--brand); }
.using-chip {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px;
  border-radius: 11px; border: 1px solid var(--line-2); background: var(--surface);
  color: var(--txt); font-size: 13px; font-weight: 600; cursor: pointer; transition: 0.15s;
}
.using-chip:hover { border-color: var(--brand); color: var(--brand); }
.using-chip.is-on { border-color: var(--warn); background: var(--warn-bg, rgba(250, 176, 5, 0.12)); }
.uc-phone { font-size: 11.5px; color: var(--dim); font-weight: 500; }
.uc-left { font-size: 12px; color: var(--warn); font-variant-numeric: tabular-nums; }
.uc-go {
  height: 24px; padding: 0 9px; border-radius: 7px; border: 0; cursor: pointer;
  background: var(--grad-brand); color: #fff; font-size: 12px; font-weight: 700;
}
.uc-go:hover { filter: brightness(1.1); }

.um-row {
  display: grid; grid-template-columns: 1.4fr auto auto; gap: 10px; align-items: center;
  padding: 11px 4px; border-top: 1px solid var(--line);
}
.um-row:first-child { border-top: 0; }
.um-proj { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.um-proj b { font-size: 13.5px; }
.um-left { font-size: 13px; color: var(--warn); font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  .using-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .using-row::-webkit-scrollbar { display: none; }
  .using-chip { flex: none; }
  .um-row { grid-template-columns: 1fr auto; }
  .um-row .row { grid-column: 1 / -1; justify-content: flex-end; }
}



.using-chip.is-wait {
  border-style: dashed; border-color: var(--warn); color: var(--txt);
  background: var(--warn-bg, rgba(250, 176, 5, 0.10));
}
.using-chip.is-wait .n { background: var(--warn); color: #fff; }
.fav-pending {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 10px 14px; margin-bottom: 14px; border-radius: 12px; font-size: 13px;
  background: var(--warn-bg, rgba(250, 176, 5, 0.10)); border: 1px dashed var(--warn); color: var(--txt);
}
.fav-pending a { color: var(--brand); font-weight: 600; }
.gate {
  display: flex; flex-direction: column; gap: 4px; align-items: flex-start;
  padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; font-size: 13px;
  border: 1px solid var(--line-2); background: var(--surface-2);
}
.gate.ok { border-color: rgba(34,197,94,.45); background: rgba(34,197,94,.10); }
.gate.bad { border-color: rgba(239,68,68,.45); background: rgba(239,68,68,.10); }
.gate b { font-size: 13.5px; }
.gate .btn { margin-top: 6px; }



.sms-sample {
  margin-top: 4px; padding: 5px 8px; border-radius: 8px; font-size: 12px;
  background: var(--surface-2); border-left: 3px solid var(--brand); color: var(--dim);
  max-width: 420px; white-space: normal; word-break: break-all;
}



.bp-wrap { display: flex; flex-wrap: wrap; gap: 8px; min-height: 34px; }
.bp-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px 4px 10px;
  border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: 12.5px;
}
.bp-x { border: 0; background: transparent; color: var(--dim); cursor: pointer; font-size: 14px; line-height: 1; padding: 0 2px; }
.bp-x:hover { color: var(--danger, #ef4444); }
#bp-result { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.bp-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }




.a-grid-2 > *, .a-grid-3 > *, .a-cols > * { min-width: 0; }
.card { min-width: 0; }
.table-wrap { max-width: 100%; }
@media (max-width: 900px) {
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  
  .bp-row { flex-wrap: wrap; }
  .bp-chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}



@media (max-width: 600px) {
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 14px; }
  .kpi-val { font-size: 22px !important; }
}


.ow-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ow-step {
  display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--line-2);
}
.ow-step b { font-size: 13.5px; }
.ow-step span { font-size: 12px; color: var(--dim); line-height: 1.6; }
@media (max-width: 900px) { .ow-steps { grid-template-columns: 1fr; } }



@media (max-width: 600px) {
  #ow-tabs { flex-wrap: wrap; gap: 6px; }
  #ow-tabs button { flex: 1 1 auto; padding: 0 10px; }
  #ow-shares .row-between { gap: 8px; }
  #ow-shares .row-between > div { min-width: 0; }
  #ow-shares .row-between b.mono { white-space: nowrap; font-size: 13px; }
}


.ow-recipe { border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px; margin-top: 10px; background: var(--surface); }
.ow-recipe summary { cursor: pointer; font-weight: 700; font-size: 13.5px; }
.ow-code {
  margin: 8px 0; padding: 10px 12px; border-radius: 10px; background: var(--surface-2);
  font-family: var(--mono); font-size: 12px; line-height: 1.7; white-space: pre-wrap; word-break: break-all;
  max-height: 320px; overflow: auto;
}


.own-app { border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(255,45,85,.06), transparent 70%); }
.ow-ingest-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 2px 0 4px; }
.ow-ingest-stats > div { padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.ow-ingest-stats b { display: block; font-family: var(--mono); font-size: 16px; line-height: 1.4; }
.ow-ingest-stats span { font-size: 11px; color: var(--dim); }
@media (max-width: 600px) {
  .ow-ingest-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}



#ow-numbers .table-wrap, #ow-apps .table-wrap { max-height: none; }



.fav-star.lg { font-size: 24px; padding: 4px 8px; }
.fav-star.lg.on { color: #f5a623; }



.ap-guide { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-2); }
.ap-guide-t { font-size: 12.5px; font-weight: 800; margin-bottom: 4px; }
.ap-guide ol { margin: 0 0 8px 18px; padding: 0; font-size: 12px; line-height: 1.9; color: var(--dim); }



.kw-cell b { font-weight: 700; color: var(--brand); }



.table-wrap {
  overflow: auto;
  overscroll-behavior: contain;
}
.table-wrap > table > thead th,
.table-wrap table.tb thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--surface);
  box-shadow: inset 0 -1px 0 var(--line);
}




.bulk-tools {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  margin: 0 0 8px;
}
.bulk-tools .bulk-num { font-size: 12px; color: var(--dim); margin-right: 2px; }
.bulk-bar { display: none !important; }
.bulk-pick { display: inline-flex; align-items: center; flex: none; margin-right: 2px; }
.bulk-allwrap { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--dim); margin-right: auto; }
.table-wrap thead th.bulk-th { text-align: center; padding-left: 6px; padding-right: 6px; width: 34px; }
.table-wrap tbody td.bulk-td { text-align: center; padding-left: 6px; padding-right: 6px; width: 34px; }
@media (max-width: 700px) {
  .bulk-tools { flex-wrap: wrap; justify-content: flex-start; }
}
