  html { overflow-x: clip; overflow-anchor: none; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body {
    margin: 0;
    --bg: light-dark(#f4f0e8, #090a0d);
    --surface: light-dark(#fffcf7, #14161c);
    --ink: light-dark(#1b1914, #f6f1e8);
    --muted: light-dark(#6d675e, #9aa3b2);
    --line: light-dark(#e2d9cc, #2e3340);
    --gold: light-dark(#6d4b22, #d4bc8a);
    --gold-ink: light-dark(#fffaf3, #1a140c);
    --select: light-dark(#f3ecdf, #221c14);
    --blue: light-dark(#3d5f9a, #7ea0d6);
    --ice: light-dark(#5a6a82, #b7c4d8);
    --amber: #e2b56a;
    --mint: #7dcaa5;
    --violet: #c0a6ef;
    --rose: #e09aaa;
    --teal: #7ec8c3;
    --mist: light-dark(#e8eef8, #1a2230);
    --danger: light-dark(#8d2a2a, #ffb4b4);
    color-scheme: dark;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.65;
  }
  body::before,
  body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
  }
  body::before {
    background:
      radial-gradient(ellipse 72% 46% at 0% -8%, light-dark(rgba(140, 92, 32, 0.2), rgba(212, 188, 138, 0.2)), transparent 62%),
      radial-gradient(ellipse 58% 42% at 100% 0%, light-dark(rgba(36, 64, 130, 0.12), rgba(78, 118, 196, 0.24)), transparent 58%),
      radial-gradient(ellipse 50% 36% at 60% 110%, light-dark(rgba(140, 92, 32, 0.1), rgba(212, 188, 138, 0.1)), transparent 60%),
      radial-gradient(ellipse 36% 28% at 18% 80%, rgba(125, 202, 165, 0.08), transparent 70%),
      radial-gradient(ellipse 32% 24% at 88% 62%, rgba(192, 166, 239, 0.08), transparent 70%);
  }
  body::after {
    background-image:
      linear-gradient(light-dark(rgba(28, 22, 12, 0.05), rgba(255, 255, 255, 0.04)) 1px, transparent 1px),
      linear-gradient(90deg, light-dark(rgba(28, 22, 12, 0.05), rgba(255, 255, 255, 0.04)) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse at 50% 20%, #000 10%, transparent 72%);
  }
  .mast, main, .colophon { position: relative; z-index: 1; }
  .wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
  h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.3;
  }
  h2 { margin: 20px 0 8px; font-size: 20px; font-weight: 600; line-height: 1.4; }
  p { margin: 0; }
  a { color: inherit; }
  .mast {
    position: sticky;
    top: 0;
    z-index: 5;
    border-bottom: 1px solid var(--line);
    margin-bottom: 28px;
    background: light-dark(rgba(244, 240, 232, 0.9), rgba(9, 10, 13, 0.86));
  }
  .mast .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    min-height: 72px;
  }
  .mast-search { margin-left: auto; flex: 0 1 280px; width: 280px; max-width: 280px; }
  .who { display: flex; align-items: center; gap: 2px; flex: none; position: relative; overflow: visible; }
  .mast, .mast .wrap { overflow: visible; }
  .who > a:not(.pill):not(.cart-launch) {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    text-decoration: none;
    padding: 8px 10px;
    letter-spacing: 0.06em;
  }
  .pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--gold);
    color: var(--gold-ink);
    text-decoration: none;
    border-radius: 999px;
    padding: 8px 14px;
    letter-spacing: 0.08em;
    font-size: 14px;
  }
  .buy-btn, .pager-btn, .chip, .forum-side-link, .forum-tabs a { transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease; }
  .pill:hover, .buy-btn:hover {
    filter: none;
    background: #e2b56a;
    box-shadow: 0 0 0 3px rgba(226, 181, 106, 0.28);
  }
  .buy-btn:active, .pager-btn:active { transform: translateY(1px); }
  .account-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    padding: 4px 12px 4px 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
  }
  .account-link:hover, .account-link[aria-current="page"] {
    border-color: rgba(212, 188, 138, 0.55);
  }
  .account-link .btn-ico { width: 16px; height: 16px; color: var(--gold); }
  .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--gold);
    color: var(--gold-ink);
    font-weight: 600;
    flex: none;
    object-fit: cover;
  }
  .avatar-lg { width: 72px; height: 72px; font-size: 30px; }
  .account-id { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
  .account-id strong, .account-id small {
    max-width: 9.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .account-id strong { font-size: 14px; font-weight: 600; }
  .account-id small { color: var(--muted); font-size: 11px; }
  .account-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 240px;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
    z-index: 8;
  }
  .account-panel a, .account-panel button.text-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    text-align: left;
    padding: 8px 0;
    text-decoration: none;
    color: var(--ink);
  }
  .account-panel .btn-ico { color: var(--gold); }
  .account-mail { color: var(--muted); font-size: 13px; word-break: break-all; }
  .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--ink);
  }
  .emblem { width: 36px; height: 36px; color: var(--gold); flex: none; }
  .brand-text { display: flex; flex-direction: column; line-height: 1.05; }
  .brand-name {
    font-family: Palatino, "Palatino Linotype", "Songti SC", serif;
    font-size: 22px;
    letter-spacing: 0.08em;
  }
  .brand-name sup { font-size: 9px; letter-spacing: 0; margin-left: 2px; }
  .brand-sub { color: var(--muted); font-size: 12px; letter-spacing: 0.28em; margin-top: 4px; }
  .nav, .subnav { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
  .nav a, .subnav a, .back, .text-btn, button.text-btn {
    background: transparent;
    color: var(--muted);
    border: 0;
    font: inherit;
    padding: 8px 12px;
    cursor: pointer;
    text-decoration: none;
    letter-spacing: 0.06em;
  }
  .nav a[aria-current="page"], .subnav a[aria-current="page"] { color: var(--blue); }
  .subnav { margin-bottom: 16px; }
  .subnav form { margin: 0; }
  .back { padding-left: 0; color: var(--ink); text-decoration: none; display: inline-block; margin-bottom: 16px; }
  .backbar { margin: 4px 0 18px; }
  .back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 16px 0 14px;
    border: 1px solid rgba(212, 188, 138, 0.55);
    border-radius: 999px;
    color: var(--gold);
    background: rgba(212, 188, 138, 0.08);
    text-decoration: none;
    letter-spacing: 0.08em;
  }
  .back-btn::before { content: "←"; font-size: 16px; line-height: 1; }
  .back-btn:hover { background: rgba(212, 188, 138, 0.16); color: var(--gold); }
  .product-head .lead { margin-top: 10px; }
  .stage {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(240px, 380px);
    gap: 40px;
    align-items: center;
    padding: 8px 0 36px;
    margin-bottom: 8px;
  }
  .stage-card {
    display: block;
    color: inherit;
    text-decoration: none;
  }
  .stage-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 28px 70px light-dark(rgba(70, 46, 12, 0.18), rgba(0, 0, 0, 0.5));
  }
  .stage-kicker {
    display: block;
    margin-top: 14px;
    color: var(--gold);
    font-size: 12px;
    letter-spacing: 0.18em;
  }
  .stage-title {
    display: block;
    margin-top: 4px;
    font-family: Palatino, "Palatino Linotype", "Songti SC", serif;
    font-size: 28px;
    letter-spacing: 0.06em;
  }
  .stage-price { display: block; margin-top: 4px; color: var(--muted); }
  .reel { margin: 22px 0 8px; }
  .reel-slide[hidden] { display: none; }
  .reel-slide {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 320px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
  }
  .reel-pane { min-height: 320px; background: #101014; }
  .reel-slide img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    display: block;
  }
  .reel-slide.is-flipped { direction: rtl; }
  .reel-slide.is-flipped .reel-pane { direction: ltr; }
  .reel-chart-empty {
    min-height: 320px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--muted);
    letter-spacing: 0.12em;
    background:
      linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
      #12141a;
    background-size: 28px 28px, 28px 28px, auto;
  }
  .reel-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px 32px;
  }
  .reel-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
  }
  .reel-dots { display: flex; gap: 6px; }
  .reel-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 99px;
    background: var(--line);
    cursor: pointer;
  }
  .reel-dot[aria-current="true"] { background: var(--gold); }
  .partner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    margin: 14px 0 22px;
    padding: 16px 18px;
    border: 1px solid var(--gold);
    border-radius: 12px;
    background: var(--select);
  }
  .partner-title {
    margin-top: 2px;
    font-family: Palatino, "Palatino Linotype", "Songti SC", serif;
    font-size: 22px;
    letter-spacing: 0.06em;
  }
  .partner .buy-btn { margin-top: 0; }
  .section-label {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 8px 0 18px;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.2em;
  }
  .section-label::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
  }
  .eyebrow {
    color: var(--blue);
    font-size: 12px;
    letter-spacing: 0.22em;
    margin-bottom: 8px;
  }
  .intro .lead { margin-top: 10px; }
  .lead { max-width: 40rem; }
  .meta, .fine, figcaption, .deliver, .buy-kicker { color: var(--muted); font-size: 14px; }
  .meta { margin-top: 8px; }
  main { padding-bottom: 48px; }
  .product-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px 32px;
    align-items: start;
    max-width: 1040px;
    margin: 0 auto;
  }
  .product-stage .product-head { margin-bottom: 16px; }
  .product-stage .portrait { max-width: none; }
  .product-stage .shot-strip { max-width: none; }
  .product-stage .offer {
    position: sticky;
    top: 88px;
  }
  ol { margin: 0; padding-left: 1.2rem; }
  li + li { margin-top: 4px; }
  .fine { margin-top: 8px; }
  .buy, .panel {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 18px;
    border-radius: 16px;
  }
  .offer {
    border-radius: 18px;
    padding: 18px 18px 16px;
    background:
      linear-gradient(180deg, rgba(212, 188, 138, 0.08), transparent 42%),
      var(--surface);
  }
  .offer-kicker { margin: 0; color: var(--ice); letter-spacing: 0.14em; font-size: 13px; }
  .offer-price {
    margin: 8px 0 14px;
    font-family: Palatino, "Palatino Linotype", "Songti SC", serif;
    font-size: 40px;
    line-height: 1;
    color: var(--gold);
  }
  .was {
    margin-left: 8px;
    color: var(--muted);
    text-decoration: line-through;
    font-weight: 400;
  }
  .offer-price .was {
    font-family: Inter, "Microsoft YaHei", sans-serif;
    font-size: 16px;
    letter-spacing: 0;
    vertical-align: 8px;
  }
  .offer-row { display: flex; gap: 8px; margin-top: 10px; }
  .offer-row form { flex: 1; margin: 0; }
  .offer-row .btn-quiet { width: 100%; border-radius: 999px; }
  .dl-mark {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(212, 188, 138, 0.4);
    background: rgba(212, 188, 138, 0.08);
    color: var(--gold);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.06em;
  }
  .dl-mark span:last-child {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ice);
  }
  .dl-mark .stat-ico { width: 16px; height: 16px; }
  .offer-row .is-on { color: var(--rose, #e09aaa); border-color: rgba(224, 154, 170, 0.55); }
  .saved-list { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
  .cart-pay { margin-top: 14px; max-width: 520px; }
  .saved-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
  }
  .saved-card img { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; }
  .saved-name { margin: 0 0 4px; font-size: 18px; }
  .buy { position: sticky; top: 92px; }
  .buy h2 { margin-top: 12px; }
  .opt {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 2px 10px;
    padding: 10px;
    border: 1px solid var(--line);
    margin-top: 8px;
    cursor: pointer;
  }
  .opt:has(input:checked) { border-color: var(--gold); background: var(--select); }
  .opt input { margin-top: 4px; }
  .opt-top { display: flex; justify-content: space-between; gap: 8px; }
  .opt-note { grid-column: 2; color: var(--muted); font-size: 14px; }
  .btn-ico, .stat-ico { width: 18px; height: 18px; flex: none; display: block; }
  .buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    width: 100%;
    max-width: 24rem;
    background: var(--gold);
    color: var(--gold-ink);
    border: 0;
    font: inherit;
    font-weight: 500;
    letter-spacing: 0.08em;
    padding: 12px 14px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
  }
  .buy .buy-btn { max-width: none; }
  .buy-btn.slim {
    width: auto;
    max-width: none;
    min-width: 0;
    min-height: 42px;
    margin-top: 10px;
    padding: 0 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
  }
  .buy-btn.is-line {
    background: transparent;
    color: var(--gold);
    border: 1px solid rgba(212, 188, 138, 0.55);
    box-shadow: none;
  }
  .buy-btn.is-line:hover { background: rgba(212, 188, 138, 0.12); }
  .deliver { margin-top: 8px; }
  .toolbar {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin: 18px 0 10px;
  }
  .toolbar .chips { flex: 1; min-width: 0; }
  .search {
    display: flex;
    align-items: center;
    max-width: 28rem;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 999px;
    overflow: hidden;
  }
  .search input {
    border: 0;
    background: transparent;
    width: auto;
    flex: 1;
    min-width: 0;
    padding: 10px 16px;
  }
  .search button { padding-right: 6px; }
  .search-go {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-right: 4px;
    border: 0;
    border-radius: 50%;
    background: rgba(212, 188, 138, 0.14);
    color: var(--gold);
    cursor: pointer;
  }
  .search-go:hover { background: rgba(212, 188, 138, 0.28); }
  .search-clear {
    width: 28px;
    height: 28px;
    margin-right: 4px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(212, 188, 138, 0.45);
    color: var(--gold);
    text-decoration: none;
    line-height: 1;
  }
  .search-clear:hover { background: rgba(212, 188, 138, 0.16); }
  .add-banner { align-items: flex-end; }
  .add-banner .buy-btn { align-self: flex-end; }
  .field { display: flex; flex-direction: column; gap: 6px; max-width: 40rem; }
  .toolbar .field { max-width: 16rem; }
  input[type="file"] {
    padding: 8px 10px;
    border-radius: 12px;
    font-size: 13px;
  }
  input[type="email"], input[type="search"], input[type="text"], input[type="password"], input[type="number"], input[type="url"], textarea, select, input[type="file"] {
    font: inherit;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    min-height: 42px;
    padding: 0 12px;
    border-radius: 10px;
    width: 100%;
    box-sizing: border-box;
  }
  .search input[type="search"] {
    border: 0;
    border-radius: 0;
    background: transparent;
    width: auto;
    flex: 1;
    min-width: 0;
    min-height: 0;
    height: auto;
    padding: 10px 16px;
  }
  .sort-pill { margin: 0; flex: none; position: relative; }
  .sort-menu { position: relative; }
  .sort-menu summary {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    margin: 0;
    padding: 0 34px 0 14px;
    border: 1px solid rgba(212, 188, 138, 0.45);
    border-radius: 999px;
    background: rgba(212, 188, 138, 0.08);
    color: var(--gold);
    font-size: 13px;
    letter-spacing: 0.12em;
    list-style: none;
    cursor: pointer;
  }
  .sort-menu summary::-webkit-details-marker { display: none; }
  .sort-menu summary::after {
    content: "";
    position: absolute;
    right: 14px;
    width: 12px;
    height: 12px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.2 4.4 6 8l3.8-3.6' fill='none' stroke='%23d4bc8a' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
  }
  .sort-menu summary strong {
    color: #f6f1e8;
    font-weight: 500;
    letter-spacing: 0;
    font-size: 14px;
  }
  .sort-menu[open] summary { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 188, 138, 0.16); }
  .sort-list {
    position: absolute;
    z-index: 8;
    left: 0;
    top: calc(100% + 8px);
    min-width: 100%;
    margin: 0;
    padding: 6px;
    border: 1px solid rgba(212, 188, 138, 0.4);
    border-radius: 14px;
    background: #14120e;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  }
  .sort-list button {
    display: block;
    width: 100%;
    min-height: 40px;
    margin: 0;
    padding: 8px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #f6f1e8;
    font-size: 15px;
    letter-spacing: 0;
    text-align: left;
    cursor: pointer;
  }
  .sort-list button:hover,
  .sort-list button:focus,
  .sort-list button[aria-current="true"] {
    background: rgba(212, 188, 138, 0.18);
    color: #f4e2b8;
    outline: none;
  }
  .banner-find { position: relative; flex: 1; min-width: 0; }
  .banner-search {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 0 8px 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: light-dark(#fffdf9, #101218);
  }
  .banner-search:focus-within,
  .add-banner.is-picked .banner-search {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 188, 138, 0.16);
  }
  .banner-search input[type="search"] {
    border: 0;
    border-radius: 0;
    background: transparent;
    width: auto;
    flex: 1;
    min-width: 0;
    min-height: 40px;
    padding: 0 8px;
    box-shadow: none;
  }
  .banner-picked {
    margin: 8px 0 0 16px;
    color: var(--gold);
    font-size: 13px;
    letter-spacing: 0.04em;
  }
  .banner-hits {
    position: absolute;
    z-index: 8;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    margin: 0;
    padding: 6px;
    border: 1px solid rgba(212, 188, 138, 0.35);
    border-radius: 16px;
    background:
      linear-gradient(180deg, rgba(212, 188, 138, 0.1), transparent 42%),
      var(--surface);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
    max-height: 280px;
    overflow: auto;
  }
  .banner-hits .fine { margin: 0; padding: 10px 12px; }
  .banner-hit {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 8px 12px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
  }
  .banner-hit b { font-weight: 600; letter-spacing: 0.02em; }
  .banner-hit small { color: var(--muted); font-size: 12px; letter-spacing: 0.06em; }
  .banner-hit:hover, .banner-hit:focus { background: rgba(212, 188, 138, 0.14); color: var(--gold); outline: none; }
  .banner-hit:hover small, .banner-hit:focus small { color: var(--ice); }
  input[readonly] { color: var(--muted); }
  textarea { min-height: 7rem; resize: vertical; }
  .stack { display: flex; flex-direction: column; gap: 14px; max-width: 40rem; }
  fieldset { border: 1px solid var(--line); margin: 0; padding: 12px; }
  legend { padding: 0 4px; }
  .choice { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
  .symbol-picks { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 8px; }
  .symbol-picks .choice { margin: 0; }
  .tool-board { display: flex; flex-direction: column; margin-top: 8px; }
  .tool-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
  }
  .tool-card h2 { margin: 0 0 4px; font-size: 18px; }
  .tool-card p { margin: 0; }
  .tool-card .buy-btn { flex: none; }
  .tool-list .asset-row { align-items: flex-start; }
  .tool-list .asset-row > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  .chips { display: flex; flex-wrap: nowrap; gap: 4px; overflow-x: auto; padding-bottom: 4px; }
  .chip {
    background: transparent;
    color: var(--ice);
    border: 1px solid rgba(126, 160, 214, 0.28);
    border-radius: 999px;
    font: inherit;
    padding: 6px 12px;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
  }
  .chip[aria-current="page"] {
    background: rgba(126, 160, 214, 0.18);
    color: var(--ink);
    border-color: var(--blue);
  }
  .hero {
    display: block;
    width: min(100%, 460px);
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 12px;
    margin: 0 0 8px;
    background: #101014;
  }
  .shelf {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
  }
  .pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 28px 0 8px;
  }
  .pager-btn, .pager-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(212, 188, 138, 0.45);
    border-radius: 999px;
    color: var(--gold);
    background: rgba(212, 188, 138, 0.08);
    text-decoration: none;
    font: inherit;
    cursor: pointer;
  }
  .pager-num.is-current {
    color: #1a140c;
    background: var(--gold);
    border-color: var(--gold);
  }
  .pager-btn.is-off {
    color: var(--muted);
    border-color: var(--line);
    background: transparent;
    cursor: default;
  }
  .pager-gap { color: var(--muted); padding: 0 2px; }
  .pager-jump {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
  }
  .pager-jump label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
  }
  .pager-jump input {
    width: 4.5rem;
    min-height: 36px;
    padding: 0 8px;
    text-align: center;
  }
  .card { scroll-margin-top: 92px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background:
      linear-gradient(180deg, rgba(126, 160, 214, 0.06), transparent 42%),
      var(--surface);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  }
  .card:hover {
    border-color: rgba(126, 160, 214, 0.55);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  }
  .card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 12px;
    background: #101014;
    border: 1px solid rgba(126, 160, 214, 0.22);
  }
  .card-name { font-size: 20px; font-weight: 600; letter-spacing: 0; line-height: 1.35; }
  .card-summary {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .card-stats { display: flex; flex-wrap: wrap; gap: 8px; }
  .stat-ico { width: 18px; height: 18px; flex: none; display: block; }
  .card-stat, .fact-ico {
    display: inline-flex;
    align-items: center;
    gap: 5px;
  }
  .card-stat {
    border-radius: 999px;
    padding: 4px 9px 4px 7px;
    font-size: 12px;
    line-height: 1;
    color: var(--ice);
    border: 1px solid rgba(126, 160, 214, 0.28);
    background: rgba(126, 160, 214, 0.08);
  }
  .card-stat.is-down, .fact.is-down {
    color: var(--gold);
    border-color: rgba(212, 188, 138, 0.42);
    background: rgba(212, 188, 138, 0.1);
  }
  .card:hover .card-stat.is-down { background: rgba(212, 188, 138, 0.18); }
  .card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
  .card-price { color: var(--gold); font-size: 16px; font-weight: 600; white-space: nowrap; margin-top: 0; }
  .card-go {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(212, 188, 138, 0.45);
    color: var(--gold);
    background: rgba(212, 188, 138, 0.08);
  }
  .card:hover .card-go { background: var(--gold); color: var(--gold-ink); }
  .due { margin: 12px 0 16px; font-size: 20px; }
  .pay-choices { border: 0; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
  .errors { color: var(--danger); display: flex; flex-direction: column; gap: 4px; margin: 8px 0 12px; }
  .flash {
    position: fixed;
    top: 84px;
    left: 50%;
    z-index: 60;
    margin: 0;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(212, 188, 138, 0.5);
    background: #17140f;
    color: var(--gold);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    transform: translateX(-50%);
  }
  .table-wrap { overflow-x: auto; }
  table { width: 100%; border-collapse: collapse; }
  th, td { text-align: left; padding: 10px 8px; border-top: 1px solid var(--line); vertical-align: top; }
  .admin-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
  }
  .admin-side {
    position: sticky;
    top: 92px;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .admin-side a, .admin-side button { text-align: left; }
  .goods { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
  .product-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 16px;
    margin: 0 0 10px;
  }
  .product-tools h2 { margin: 0; }
  .product-tools .lead { margin: 6px 0 0; max-width: 36rem; }
  .product-tools .buy-btn { margin: 0; flex: none; }
  #product-batch > h2 { margin-top: 18px; }
  .goods > .quiet-panel { margin-top: 0; }
  .good-body { min-width: 0; }
  .good {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
  }
  .good.is-pick { grid-template-columns: 28px 96px minmax(0, 1fr); align-items: start; }
  .good.is-pick.good-plain { grid-template-columns: 28px minmax(0, 1fr); }
  .good-pick {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin: 0;
    padding-top: 10px;
    cursor: pointer;
  }
  .good-pick input { width: 16px; height: 16px; accent-color: #e2b56a; }
  .good.is-pick.is-on {
    border-color: rgba(212, 188, 138, 0.7);
    background:
      linear-gradient(180deg, rgba(212, 188, 138, 0.08), transparent 72%),
      var(--surface);
  }
  .good img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; }
  .good-name { font-size: 18px; }
  .good-state { margin-top: 6px; color: var(--gold); }
  .good-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
  .good-actions form { margin: 0; }
  .good-actions .act { margin: 0; }
  .batch-bar input { width: 16px; height: 16px; accent-color: #e2b56a; }
  .btn-quiet {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 42px;
    margin-top: 0;
    padding: 0 16px;
    border-radius: 10px;
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
    font: inherit;
    font-size: 13px;
    letter-spacing: 0.04em;
    cursor: pointer;
  }
  .desk-counts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0 8px;
  }
  .desk-counts p {
    margin: 0;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
  }
  .desk-counts strong {
    display: block;
    font-size: 28px;
    font-weight: 500;
  }
  .desk-counts span { color: var(--muted); font-size: 13px; }
  .good-plain { grid-template-columns: minmax(0, 1fr); }
  .admin-main section[hidden] { display: none; }
  
  html[data-boot="1"][data-tab] #tab-settle-overview,
  html[data-boot="1"][data-tab] #tab-settle-pay,
  html[data-boot="1"][data-tab] #tab-settle-review,
  html[data-boot="1"][data-tab] #tab-settle-people,
  html[data-boot="1"][data-tab] #tab-settle-rates { display: none !important; }
  html[data-boot="1"][data-tab="overview"] #tab-settle-overview,
  html[data-boot="1"][data-tab="pay"] #tab-settle-pay,
  html[data-boot="1"][data-tab="review"] #tab-settle-review,
  html[data-boot="1"][data-tab="people"] #tab-settle-people,
  html[data-boot="1"][data-tab="rates"] #tab-settle-rates { display: block !important; }
  .colophon {
    border-top: 1px solid var(--line);
    padding: 28px 0 40px;
  }
  .foot-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
  }
  .foot-copy { margin: 0; color: var(--muted); font-size: 13px; }
  .foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; justify-content: flex-end; }
  .foot-links a { color: var(--muted); text-decoration: none; font-size: 13px; }
  .risk-bar {
    margin: 16px 0 0;
    padding: 12px 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
    text-align: center;
  }
  .crumb { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
  .crumb a { text-decoration: none; }
  .facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
  .fact {
    border: 1px solid rgba(126, 160, 214, 0.28);
    border-radius: 999px;
    padding: 4px 10px;
    color: var(--ice);
    background: rgba(126, 160, 214, 0.06);
    font-size: 13px;
  }
  .fact-ico { padding-left: 8px; }
  .release-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
  }
  .release-row li {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid rgba(212, 188, 138, 0.28);
    background: rgba(212, 188, 138, 0.06);
  }
  .release-row span { color: var(--muted); font-size: 12px; letter-spacing: 0.08em; }
  .release-row strong {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--gold);
    font-weight: 600;
  }
  .release-row .btn-ico, .release-row .stat-ico { width: 14px; height: 14px; }
  .spec {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    padding: 18px 18px 16px;
    border: 1px solid rgba(126, 160, 214, 0.28);
    border-radius: 18px;
    background:
      linear-gradient(180deg, rgba(126, 160, 214, 0.1), transparent 120px),
      rgba(16, 18, 24, 0.72);
  }
  .spec-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .spec-tools span { color: var(--muted); font-size: 14px; }
  .spec-kicker {
    margin: 0 0 4px;
    color: #9eb6e0;
    font-size: 13px;
    letter-spacing: 0.14em;
  }
  .spec h3, .spec-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0 2px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    font-size: 16px;
    letter-spacing: 0.04em;
  }
  .spec h3:first-of-type, .spec-title:first-of-type { margin-top: 8px; padding-top: 0; border-top: 0; }
  .spec-ico {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    flex: none;
  }
  .spec-ico svg { width: 16px; height: 16px; }
  .spec-ico.tone-compass { color: #e4c98a; background: rgba(212, 188, 138, 0.16); }
  .spec-ico.tone-clock { color: #8eb0e8; background: rgba(142, 176, 232, 0.16); }
  .spec-ico.tone-download { color: #7dcaa5; background: rgba(125, 202, 165, 0.16); }
  .spec-ico.tone-lock { color: #e09aaa; background: rgba(224, 154, 170, 0.16); }
  .spec-ico.tone-book { color: #9ec0ea; background: rgba(142, 176, 232, 0.16); }
  .spec-ico.tone-advice { color: #e4c98a; background: rgba(212, 188, 138, 0.16); }
  .spec-ico.tone-alert { color: #e0b07a; background: rgba(224, 176, 122, 0.18); }
  .spec p { margin: 0; line-height: 1.75; }
  .spec > p:not(.spec-kicker) { color: var(--ink); }
  .spec ul { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
  .spec li {
    position: relative;
    padding: 2px 0 2px 16px;
    border: 0;
    border-radius: 0;
    background: transparent;
    line-height: 1.7;
  }
  .spec li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #8eb0e8;
  }
  .spec b { font-weight: 650; color: var(--ink); }
  .spec code {
    padding: 1px 6px;
    border-radius: 6px;
    background: rgba(126, 160, 214, 0.16);
    color: #9eb6e0;
    font-family: ui-monospace, Consolas, monospace;
    font-size: 12px;
  }
  .tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 12px; }
  .tabs button {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    padding: 6px 14px;
    cursor: pointer;
  }
  .tabs button[aria-pressed="true"] { color: var(--gold); border-color: var(--gold); }
  .tab-panel[hidden] { display: none; }
  .page-body { white-space: pre-wrap; max-width: 46rem; margin-top: 12px; }
  .choice a { color: var(--gold); }
  .agree-line { align-items: flex-start; line-height: 1.6; }
  .gate-band {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-top: -28px;
    margin-bottom: 26px;
    padding: 42px 0 28px;
    background:
      radial-gradient(ellipse 48% 80% at 8% 30%, rgba(212, 188, 138, 0.18), transparent 58%),
      radial-gradient(ellipse 42% 75% at 92% 70%, rgba(78, 118, 196, 0.28), transparent 60%),
      linear-gradient(180deg, #10131a 0%, #0c0e13 100%);
    border-bottom: 1px solid rgba(212, 188, 138, 0.18);
    color: #f6f1e8;
  }
  .gate {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 28px;
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(280px, 420px);
    gap: 48px;
    align-items: center;
  }
  .gate:not(:has(.gate-logo)) { grid-template-columns: minmax(0, 720px); }
  .gate-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 320px;
    padding: 36px 28px 32px;
    color: #d4bc8a;
    border: 1px solid rgba(212, 188, 138, 0.42);
    border-radius: 28px;
    background:
      radial-gradient(circle at 50% 38%, rgba(212, 188, 138, 0.2), transparent 62%),
      rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 0 0 7px rgba(212, 188, 138, 0.08);
  }
  .gate-logo .emblem { width: 168px; height: 168px; }
  .gate-logo-name {
    margin: 0;
    font-family: Palatino, "Palatino Linotype", "Songti SC", serif;
    font-size: 48px;
    letter-spacing: 0.16em;
    color: #f6f1e8;
    line-height: 1;
  }
  .gate-logo-name sup { font-size: 14px; letter-spacing: 0; margin-left: 4px; }
  .gate-logo-sub { margin: 0; color: #a39c92; letter-spacing: 0.42em; font-size: 14px; }
  .hot { max-width: 1180px; margin: 34px auto 0; padding: 0 28px; }
  .hot .section-label { color: var(--ice); }
  .hot .section-label::after { background: rgba(126, 160, 214, 0.28); }
  .hot .section-label::before { background: var(--blue); }
  .hot .reel { margin: 0; }
  .hot .reel-slide.is-poster .reel-pane { justify-content: center; }
  .hot .reel-slide.is-poster img { width: min(100%, 280px); margin: 0 auto; }
  .hot .text-btn { color: #d4bc8a; }
  .gate h1 {
    font-size: clamp(40px, 5vw, 64px);
    letter-spacing: 0.06em;
    color: #f6f1e8;
  }
  .gate .lead { color: #c9c2b6; margin-top: 14px; max-width: 36rem; }
  .gate h1 .tone, .gate .lead .tone { color: #e7d3a1; }
  .gate .lead .tone-ice { color: var(--ice); }
  .gate-mark {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 4px 12px;
    border: 1px solid rgba(212, 188, 138, 0.45);
    border-radius: 999px;
    color: #d4bc8a;
    font-size: 12px;
    letter-spacing: 0.14em;
  }
  .gate-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d4bc8a;
    box-shadow: 0 0 0 0 rgba(212, 188, 138, 0.55);
    animation: gate-dot 2.4s ease-out infinite;
  }
  @keyframes gate-dot {
    70% { box-shadow: 0 0 0 6px rgba(212, 188, 138, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 188, 138, 0); }
  }
  .gate-user { margin-top: 16px; color: #d4bc8a; letter-spacing: 0.04em; }
  .gate-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
  .gate .buy-btn.slim, .gate .btn-quiet {
    width: auto;
    margin-top: 0;
    border-radius: 999px;
    padding: 12px 22px;
  }
  .gate .btn-quiet {
    display: inline-flex;
    text-decoration: none;
    color: #f6f1e8;
    border: 1px solid rgba(246, 241, 232, 0.28);
    background: transparent;
    letter-spacing: 0.08em;
  }
  .gate .reel { margin: 0; min-width: 0; }
  .gate .reel-slide { border-color: rgba(255, 255, 255, 0.08); }
  .reel-slide.is-poster {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    background: transparent;
    border: 0;
  }
  .reel-slide.is-poster .reel-pane {
    min-height: 0;
    display: flex;
    justify-content: flex-end;
    background: transparent;
  }
  .reel-slide.is-poster img {
    width: min(100%, 420px);
    height: auto;
    min-height: 0;
    aspect-ratio: 1;
    margin-left: auto;
    border-radius: 18px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
  }
  .gate .text-btn { color: #d4bc8a; }
  .pulse {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }
  .pulse p {
    margin: 0;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
  }
  .pulse strong { display: block; font-size: 22px; font-weight: 500; letter-spacing: 0.03em; }
  .pulse span { color: var(--muted); font-size: 13px; }
  .gate-band .pulse { max-width: 1180px; margin: 28px auto 0; padding: 0 28px; }
  .shelf-wait {
    max-width: 1180px;
    margin: 36px auto 8px;
    padding: 0 28px;
  }
  .shelf-wait .quiet-panel {
    margin-top: 0;
    padding: 48px 24px;
    background:
      linear-gradient(180deg, rgba(212, 188, 138, 0.07), transparent 62%),
      var(--surface);
  }
  .shelf-wait .quiet-panel p { margin: 0; letter-spacing: 0.06em; }
  .shelf-wait .quiet-panel .fine { margin-top: 8px; letter-spacing: 0; }
  .gate-band .pulse-line {
    display: block;
    width: 100%;
    max-width: 1180px;
    margin: 28px auto 0;
    padding: 18px 28px 0;
    border: 0;
    background: transparent;
    overflow: visible;
    text-align: center;
  }
  .gate-band .pulse-line p {
    margin: 0 auto;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    width: max-content;
  }
  .gate-band .pulse-line strong {
    display: block;
    margin: 0 0 6px;
    color: var(--gold);
    font-size: 40px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.02em;
  }
  .gate-band .pulse-line span {
    display: block;
    color: var(--ice);
    font-size: 14px;
    letter-spacing: 0.18em;
  }
  .member-panel {
    max-width: 1180px;
    margin: 28px auto 0;
    padding: 8px 28px 0;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 28px;
    align-items: center;
  }
  .member-panel h2 { margin: 0 0 8px; font-size: 28px; }
  .member-panel p { margin: 0; color: rgba(246, 241, 232, 0.78); line-height: 1.7; }
  .member-state { margin-top: 10px !important; color: #f3e2bc !important; }
  .member-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .member-plan {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 132px;
    padding: 16px 16px 14px;
    border-radius: 18px;
    border: 1px solid rgba(212, 188, 138, 0.38);
    background: rgba(255, 255, 255, 0.04);
    color: inherit;
    text-decoration: none;
  }
  .member-plan:hover { border-color: rgba(243, 226, 188, 0.8); background: rgba(212, 188, 138, 0.08); }
  .member-plan span { color: rgba(246, 241, 232, 0.66); font-size: 13px; letter-spacing: 0.08em; }
  .member-plan strong { color: #f3e2bc; font-size: 32px; line-height: 1; }
  .member-plan em { margin-top: auto; color: #f6f1e8; font-style: normal; }
  .member-plan.is-year { background: linear-gradient(180deg, rgba(212, 188, 138, 0.16), rgba(255, 255, 255, 0.03)); }
  .pay-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0 16px; }
  .pay-plans .pay-method { min-height: 74px; }
  .pay-plans .pay-method small { display: block; opacity: 0.7; }
  .pulse.two { grid-template-columns: repeat(2, minmax(140px, 220px)); }
  #shelf { scroll-margin-top: 92px; }
  .profile { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between; }
  .profile-id { display: flex; gap: 16px; align-items: center; }
  .auth {
    max-width: 420px;
    margin: 0 auto;
    padding: 12px 0 28px;
  }
  main:has(.auth) {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 210px);
  }
  main:has(.auth) > .wrap { width: 100%; }
  .auth .eyebrow, .auth h1 { text-align: center; }
  .auth .panel {
    text-align: left;
    border: 1px solid rgba(212, 188, 138, 0.55);
    border-radius: 22px;
    box-shadow:
      inset 0 0 0 5px rgba(9, 10, 13, 0.55),
      inset 0 0 0 6px rgba(212, 188, 138, 0.42),
      0 28px 70px rgba(0, 0, 0, 0.28);
  }
  .auth-mark { display: flex; justify-content: center; color: var(--gold); margin-bottom: 6px; }
  .auth-mark .emblem { width: 54px; height: 54px; overflow: visible; }
  .emblem-door-l, .emblem-door-r { transform-box: fill-box; }
  .emblem-door-l { transform-origin: 0% 50%; animation: emblem-open-l 1.15s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .emblem-door-r { transform-origin: 100% 50%; animation: emblem-open-r 1.15s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .emblem-halo, .emblem-spark, .emblem-mote { transform-box: view-box; transform-origin: center; }
  .emblem-halo { opacity: 0; animation: emblem-halo 2.8s ease-in-out 0.75s infinite; }
  .emblem-spark { animation: emblem-spark 2.8s ease-in-out 0.75s infinite; }
  .emblem-mote { opacity: 0; animation: emblem-mote 3.6s ease-in-out 0.9s infinite; }
  @keyframes emblem-open-l { from { transform: translateX(3.4px); } to { transform: none; } }
  @keyframes emblem-open-r { from { transform: translateX(-3.4px); } to { transform: none; } }
  @keyframes emblem-halo {
    0%, 100% { opacity: 0.05; transform: scale(0.62); }
    50% { opacity: 0.42; transform: scale(1); }
  }
  @keyframes emblem-spark {
    0%, 100% { opacity: 0.7; transform: scale(0.86); }
    50% { opacity: 1; transform: scale(1.18); }
  }
  @keyframes emblem-mote {
    0%, 100% { opacity: 0.15; transform: translate(0, 0); }
    45% { opacity: 0.95; transform: translate(-1.6px, -1.5px); }
    72% { opacity: 0.35; transform: translate(0.8px, 1.1px); }
  }
  .code-row { display: flex; gap: 8px; align-items: flex-end; }
  .code-row .field { flex: 1; min-width: 0; }
  .code-row .btn-quiet { margin-top: 0; white-space: nowrap; border-radius: 999px; }
  .captcha-refresh {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: var(--muted);
    font: inherit;
    font-size: 12px;
    line-height: 1.2;
  }
  .captcha-pic { display: block; width: 120px; height: 44px; border-radius: 10px; border: 1px solid var(--line); }
  .captcha-refresh span { display: block; margin-top: 4px; letter-spacing: 0.04em; }
  .code-box {
    margin: 12px 0;
    padding: 14px 16px;
    border: 1px solid var(--gold);
    border-radius: 14px;
    background: var(--select);
  }
  .code-box strong {
    display: block;
    margin: 4px 0;
    font-size: 28px;
    letter-spacing: 0.28em;
    color: var(--gold);
  }
  .account-forms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    max-width: 860px;
    margin: 22px 0;
  }
  .order-find {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    max-width: 520px;
    margin: 0 0 16px;
  }
  .order-find .field { flex: 1; max-width: none; margin: 0; }
  .order-find .buy-btn { margin: 0; }
  .center-block .pager, .sheet .pager { margin: 8px 0 0; }
  .order-list { margin-top: 8px; }
  .order { border-top: 1px solid var(--line); padding: 14px 0; max-width: 40rem; }
  button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
  }
  button[disabled] {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--line);
    width: auto;
    cursor: default;
  }
  ::selection { background: rgba(212, 188, 138, 0.32); }
  ::placeholder { color: #7d766c; }
  .mast {
      box-shadow: inset 0 -1px 0 rgba(212, 188, 138, 0.38);
  }
  .nav a { position: relative; }
  .nav a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 2px;
    height: 1px;
    background: var(--gold);
  }
  .section-label::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--gold);
    flex: none;
  }
  .buy-btn { box-shadow: inset 0 1px 0 rgba(255, 250, 240, 0.35); }
  .btn-quiet:hover, .text-btn:hover { color: var(--gold); }
  .search:focus-within, .field:focus-within input, .field:focus-within textarea, .field:focus-within select {
    border-color: var(--gold);
  }
  label.field { color: var(--muted); font-size: 13px; letter-spacing: 0.04em; }
  label.field input, label.field textarea, label.field select {
    margin-top: 2px;
    font-size: 16px;
    letter-spacing: 0;
    color: var(--ink);
    background: light-dark(#fffdf9, #101218);
  }
  .flash { border-left: 1px solid rgba(212, 188, 138, 0.5); }
  .errors { border-left: 2px solid var(--danger); padding-left: 10px; }
  .chip { border-color: var(--line); background: rgba(255, 255, 255, 0.02); }
  .account summary { box-shadow: inset 0 0 0 1px rgba(212, 188, 138, 0.12); }
  .account-panel { border-color: rgba(212, 188, 138, 0.28); }
  .account-panel a:hover, .account-panel button.text-btn:hover { color: var(--gold); }
  .panel, .buy, .good, .page-sheet, .folio-id, .folio-ledger {
    position: relative;
    background:
      linear-gradient(180deg, rgba(212, 188, 138, 0.07), transparent 46%),
      var(--surface);
    box-shadow: inset 0 0 0 1px rgba(212, 188, 138, 0.06);
  }
  .buy::before, .page-sheet::before, .folio-id::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 8px;
    width: 14px;
    height: 14px;
    border-top: 1px solid var(--gold);
    border-left: 1px solid var(--gold);
    pointer-events: none;
  }
  .buy::after, .page-sheet::after, .folio-id::after {
    content: "";
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 14px;
    height: 14px;
    border-right: 1px solid var(--gold);
    border-bottom: 1px solid var(--gold);
    pointer-events: none;
  }
  .auth .panel::before, .auth .panel::after { content: none; }
  .opt:has(input:checked) { box-shadow: inset 3px 0 0 var(--gold); }
  .tabs button[aria-pressed="true"] { background: var(--select); }
  .card-frame { position: relative; display: block; border-radius: 12px; overflow: hidden; }
  .card-frame img { display: block; }
  .card-seal {
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 2px 8px;
    background: rgba(12, 13, 17, 0.78);
    color: var(--ice);
    font-size: 12px;
    letter-spacing: 0.08em;
    border: 1px solid rgba(126, 160, 214, 0.45);
  }
  .card-live {
    position: absolute;
    right: 10px;
    top: 10px;
    padding: 2px 8px;
    background: rgba(12, 13, 17, 0.78);
    color: #7dcaa5;
    font-size: 12px;
    letter-spacing: 0.08em;
    border: 1px solid rgba(125, 202, 165, 0.55);
  }
  .file-pick { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 4px 12px 4px 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; transition: border-color 0.2s ease; }
  .file-add {
    position: relative;
    flex: none;
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    cursor: pointer;
  }
  .file-add input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    cursor: pointer;
    background: transparent;
  }
  .preview-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 0;
  }
  .preview-card {
    position: relative;
    width: 88px;
    margin: 0;
    flex: none;
  }
  .preview-card.is-hero { width: 120px; }
  .preview-card.is-off { opacity: 0.35; }
  .preview-card img {
    display: block;
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #10141c;
  }
  .preview-card.is-hero img { width: 120px; height: 120px; }
  .slot .preview-row img {
    width: 88px;
    height: 88px;
    aspect-ratio: 1 / 1;
  }
  .preview-card figcaption {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .preview-card.is-new figcaption { color: var(--gold); }
  .preview-x {
    position: absolute;
    top: 4px;
    right: 4px;
    margin: 0;
    padding: 2px 6px;
    border: 0;
    border-radius: 6px;
    background: rgba(12, 13, 17, 0.78);
    color: #fff;
    font: inherit;
    font-size: 11px;
    cursor: pointer;
  }
  .file-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    min-height: 0;
  }
  .file-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 6px 8px 6px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--ink);
    font-size: 12px;
  }
  .file-chip.is-main { border-color: rgba(212, 188, 138, 0.45); }
  .file-chip.is-new { border-color: var(--gold); color: var(--gold); }
  .file-chip.is-off { opacity: 0.4; text-decoration: line-through; }
  .edition-grid .file-row { flex-direction: column; align-items: stretch; }
  .edition-grid .file-chip { border-radius: 10px; justify-content: space-between; width: 100%; }
  .file-chip-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .file-chip-ops { display: inline-flex; align-items: center; gap: 10px; flex: none; }
  .file-chip-ops a { color: var(--gold); font-size: 12px; text-decoration: none; }
  .file-chip-ops a:hover,
  .file-replace:hover { color: #fff8ea; }
  .file-replace { position: relative; display: inline-flex; color: var(--gold); font-size: 12px; cursor: pointer; }
  .file-replace input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
  .file-chip .preview-x {
    position: static;
    background: transparent;
    color: var(--muted);
    padding: 0 2px;
  }
  .file-chip .preview-x:hover { color: #f0b4be; }
  .asset-list { display: flex; flex-direction: column; margin-top: 4px; }
  .asset-list:empty { display: none; }
  .asset-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 6px 2px;
    border-top: 1px solid var(--line);
  }
  .asset-row.is-new .asset-name { color: var(--gold); }
  .asset-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
  }
  .asset-ops {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    flex: none;
  }
  .asset-ops a,
  .asset-ops .row-del {
    margin: 0;
    padding: 4px 8px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--gold);
    font: inherit;
    font-size: 13px;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
  }
  .asset-ops .row-del { color: #e7a8b4; }
  .asset-ops a:hover { color: #fff8ea; background: rgba(212, 188, 138, 0.28); }
  .asset-ops .row-del:hover { color: #fff; background: rgba(180, 70, 90, 0.55); }
  .slot-frame { position: relative; border-radius: 10px; overflow: hidden; }
  .slot-frame .slot-view,
  .slot-frame .slot-view img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 0;
    border-radius: 0;
  }
  .frame-del {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 2;
    margin: 0;
    padding: 4px 10px;
    border: 0;
    border-radius: 8px;
    background: rgba(12, 13, 17, 0.82);
    color: #f3c3cb;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
  }
  .frame-del:hover { background: #8d3a4a; color: #fff; }
  .slot .asset-row .shot-thumb {
    width: 36px;
    height: 36px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
    flex: none;
  }
  .file-pick:hover { border-color: var(--gold); }
  .file-pick input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    opacity: 0;
    cursor: pointer;
  }
  .file-btn { flex: none; padding: 6px 12px; border-radius: 8px; background: rgba(212, 188, 138, 0.14); color: var(--gold); font-size: 13px; transition: background 0.15s ease, color 0.15s ease; }
  .file-btn:hover,
  .file-add:hover .file-btn,
  .file-pick:hover .file-btn { background: rgba(212, 188, 138, 0.34); color: #fff8ea; }
  .file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-size: 13px; }
  .file-name.is-new { color: var(--gold); }
  .file-now { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; color: var(--muted); font-size: 12px; }
  .extra-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
  .extra-list .file-now { margin: 0; padding: 6px 0; border-top: 1px solid var(--line); }
  .extra-list .choice { margin: 0; }
  .shot-block { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
  .shot-more { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .shot-more .slot { padding: 8px; }
  .shot-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; max-width: 480px; }
  .shot-strip .chart-open { width: calc(25% - 6px); min-width: 72px; padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); cursor: zoom-in; }
  .shot-strip img { display: block; width: 100%; height: 64px; object-fit: cover; }
  .shot-gallery { display: grid; gap: 12px; margin-top: 0; }
  .shot-gallery .chart-open {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #101014;
  }
  .shot-gallery .chart-open img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .tab-panel .chart-cap { max-width: 40rem; }
  .slot-view { position: relative; display: block; border-radius: 10px; overflow: hidden; }
  .slot-view .stamp {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    color: #f4f1ea;
    background: rgba(8, 10, 14, 0.78);
    border-color: transparent;
  }
  .slot-view img { transition: opacity 0.2s ease; }
  .slot-view:hover img { opacity: 0.85; }
  .file-line { display: flex; align-items: center; gap: 8px; }
  .file-line input[type="file"] { flex: 1 1 auto; width: 1%; min-width: 0; }
  .file-delete {
    flex: 0 0 auto;
    margin: 0;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    font: inherit;
    padding: 8px 14px;
    cursor: pointer;
    white-space: nowrap;
  }
  .field > span { color: var(--muted); font-size: 13px; letter-spacing: 0.04em; }
  .portrait {
    margin: 0 0 8px;
    padding: 10px;
    max-width: 480px;
    border: 1px solid var(--line);
    background:
      linear-gradient(180deg, rgba(212, 188, 138, 0.08), transparent 42%),
      var(--surface);
  }
  .portrait .chart-open { display: block; width: 100%; }
  .portrait .hero { display: block; width: 100%; margin: 0; }
  .chart-view {
    margin: 0;
    padding: 12px;
    max-width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    background:
      linear-gradient(180deg, rgba(126, 160, 214, 0.08), transparent 42%),
      var(--surface);
  }
  .chart-open {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
  }
  .chart-open img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: auto;
    object-fit: contain;
    border-radius: 8px;
    background: #101014;
  }
  .chart-view figcaption { margin-top: 10px; }
  .chart-cap {
    margin-top: 10px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
    white-space: pre-wrap;
  }
  .lightbox {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(5, 7, 12, 0.9);
  }
  .lightbox[hidden] { display: none; }
  .lightbox-frame {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
  }
  .lightbox img {
    max-width: 96vw;
    max-height: 92vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
    cursor: zoom-out;
  }
  .lightbox-cap {
    margin: 12px 0 0;
    max-width: min(40rem, 90vw);
    color: #d8d2c8;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
    white-space: pre-wrap;
  }
  .lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
    border: 1px solid rgba(212, 188, 138, 0.45);
    background: rgba(20, 22, 28, 0.9);
    color: var(--ink);
    font: inherit;
    padding: 8px 14px;
    cursor: pointer;
    border-radius: 999px;
  }
  body.lightbox-open { overflow: hidden; }
  .hot .reel-slide {
    border-color: rgba(212, 188, 138, 0.28);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  }
  .gate-logo { gap: 28px; }
  .gate-logo .emblem {
    outline: 1px solid rgba(212, 188, 138, 0.4);
    outline-offset: 10px;
    overflow: visible;
  }
  .gate-band .pulse-line em {
    display: block;
    margin-top: 10px;
    color: #a39c92;
    font-style: normal;
    font-size: 13px;
    letter-spacing: 0.22em;
  }
  .gate-band .pulse { box-sizing: border-box; }
  .pulse {
    gap: 0;
    border: 1px solid var(--line);
    background: var(--surface);
    overflow: hidden;
  }
  .pulse p {
    background: transparent;
    border: 0;
    border-radius: 0;
    border-left: 1px solid var(--line);
  }
  .pulse p:first-child { border-left: 0; }
  .pulse strong {
    font-family: Palatino, "Palatino Linotype", "Songti SC", serif;
    font-weight: 500;
  }
  .folio {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(220px, 0.7fr);
    gap: 16px;
    align-items: stretch;
  }
  .folio-id, .folio-ledger {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 22px 22px 22px 26px;
    border: 1px solid var(--line);
  }
  .folio-ledger { justify-content: space-around; padding: 22px; }
  .folio-ledger p { margin: 0; text-align: center; }
  .folio-ledger strong {
    display: block;
    font-family: Palatino, "Palatino Linotype", "Songti SC", serif;
    font-size: 40px;
    font-weight: 500;
    line-height: 1;
    color: var(--gold);
  }
  .folio-ledger span { color: var(--muted); font-size: 13px; letter-spacing: 0.12em; }
  .folio-ledger p { display: flex; flex-direction: column; align-items: center; gap: 6px; }
  .ledger-ico { color: var(--ice); }
  .folio-ledger .ledger-ico.is-down { color: var(--gold); }
  .id-facts { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
  .id-facts li { display: flex; align-items: center; gap: 8px; color: var(--ice); font-size: 14px; }
  .id-facts .btn-ico, .account-forms h2 .btn-ico { color: var(--gold); }
  .account-forms h2 { display: flex; align-items: center; gap: 8px; }
  .hot .reel-bar .text-btn { display: inline-flex; align-items: center; gap: 2px; }
  .seal {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border: 1px solid var(--gold);
    color: var(--gold);
    background: rgba(212, 188, 138, 0.06);
    font-family: Palatino, "Palatino Linotype", "Songti SC", serif;
    font-size: 34px;
    flex: none;
    object-fit: cover;
  }
  .seal-photo { border-radius: 18px; }
  .seal-sm { width: 36px; height: 36px; font-size: 16px; }
  .order-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
  .order-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    text-decoration: none;
  }
  .order-name:hover { color: var(--gold); }
  .order-name .btn-ico { width: 16px; height: 16px; }
  .order form { margin: 10px 0 0; }
  .stamp {
    display: inline-block;
    padding: 1px 8px;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.12em;
    white-space: nowrap;
  }
  .stamp.ok { color: #7dcaa5; border-color: transparent; background: rgba(125, 202, 165, 0.14); }
  .stamp.wait { color: #e2b56a; border-color: transparent; background: rgba(226, 181, 106, 0.14); }
  .stamp.off { color: #e09aaa; border-color: transparent; background: rgba(224, 154, 170, 0.14); }
  .pay-stage { max-width: 440px; margin: 12px auto 28px; }
  .pay-card {
    padding: 22px 22px 18px;
    border: 1px solid rgba(212, 188, 138, 0.28);
    border-radius: 22px;
    background:
      linear-gradient(180deg, rgba(212, 188, 138, 0.1), transparent 38%),
      var(--surface);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  }
  .pay-card h1 { margin: 8px 0 0; font-size: 28px; }
  .pay-edition { margin: 6px 0 0; color: var(--ice); letter-spacing: 0.08em; }
  .pay-card .field { max-width: none; margin-top: 8px; }
  .pay-card .buy-btn { max-width: none; margin-top: 16px; }
  .pay-methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
  .pay-method { position: relative; margin: 0; }
  .pay-method input {
    position: absolute;
    opacity: 0;
    inset: 0;
  }
  .pay-method span {
    display: grid;
    place-items: center;
    min-height: 64px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
    letter-spacing: 0.06em;
  }
  .pay-method.tone-1 span { color: #8eb0e8; }
  .pay-method.tone-2 span { color: #7dcaa5; }
  .pay-method.tone-3 span { color: #e2b56a; }
  .pay-method:has(input:checked) span {
    color: #1c160f;
    border-color: transparent;
  }
  .pay-method.tone-1:has(input:checked) span { background: #8eb0e8; }
  .pay-method.tone-2:has(input:checked) span { background: #7dcaa5; }
  .pay-method.tone-3:has(input:checked) span { background: #e2b56a; }
  .pay-method.is-off { pointer-events: none; }
  .pay-method.is-off span { opacity: 0.38; }
  .pay-cap { margin: 10px 0 0; color: #e09aaa; font-size: 13px; }
  .pay-facts {
    display: grid;
    gap: 8px;
    margin: 12px 0;
  }
  .pay-facts p {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
  }
  .pay-facts span { color: var(--muted); font-size: 12px; letter-spacing: 0.08em; flex: none; }
  .pay-facts strong { font-weight: 500; text-align: right; overflow-wrap: anywhere; }
  .pay-callout {
    margin: 8px 0 4px;
    padding: 10px 12px;
    border: 1px solid rgba(226, 181, 106, 0.55);
    border-radius: 12px;
    background: rgba(226, 181, 106, 0.14);
  }
  .pay-callout p {
    margin: 0;
    color: #e2b56a;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.55;
  }
  .pay-callout .pay-ex {
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 400;
  }
  .pay-kicker {
    margin: 14px 0 8px;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.08em;
  }
  .pay-chains { margin-top: 0; }
  .pay-wallet {
    margin-top: 12px;
    overflow-wrap: anywhere;
    word-break: break-all;
    font-size: 13px;
  }
  .pay-copy { margin-top: 8px; }
body.pay-open { overflow: hidden; }
.pay-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(6, 7, 10, 0.62);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.pay-modal.is-on { opacity: 1; }
.pay-modal[hidden] { display: none; }
.pay-dialog {
  position: relative;
  width: min(400px, 100%);
  max-height: min(92vh, 860px);
  overflow: auto;
  text-align: left;
  transform: translateY(10px) scale(0.98);
  transition: transform 0.2s ease;
}
.pay-modal.is-on .pay-dialog { transform: none; }
.pay-dialog h2 { margin: 8px 0 0; font-size: 28px; padding-right: 52px; }
.pay-close {
  position: absolute;
  top: 16px;
  right: 16px;
  color: var(--muted);
}
.pay-ready { margin: 4px 0 8px; }
#pay-modal-body { display: flex; flex-direction: column; align-items: stretch; }
#pay-modal-body .buy-btn { width: 100%; }
#pay-fields[hidden] { display: none; }
.pay-qr { width: 220px; height: 220px; margin: 16px auto; display: block; background: #fff; border-radius: 12px; }
.pay-frame { width: 100%; height: 420px; margin-top: 12px; border: 0; border-radius: 12px; background: #fff; }
.pay-note { margin: 8px 0 16px; color: #d7d0c4; overflow-wrap: anywhere; text-align: center; }
.pay-app { display: flex; align-items: center; justify-content: center; width: 100%; margin-top: 16px; background: #1677ff; border-color: #1677ff; color: #fff; }
.pay-app:hover { background: #3a8bff; border-color: #3a8bff; color: #fff; }
.pay-warn { margin: 14px 0; padding: 10px 12px; border: 1px solid rgba(226, 181, 106, 0.45); border-radius: 10px; background: rgba(226, 181, 106, 0.1); color: var(--amber); font-size: 14px; line-height: 1.6; }
.pay-warn[hidden], .pay-mobile-only[hidden] { display: none; }
.pay-dialog .buy-btn { margin-top: 12px; }

  .sheet { max-width: 42rem; }
  .page-sheet { max-width: 46rem; padding: 28px 32px 34px; border: 1px solid var(--line); }
  .page-sheet .page-body { margin-top: 16px; }
  .receipt-id {
    margin: 10px 0;
    font-family: Palatino, "Palatino Linotype", "Songti SC", serif;
    font-size: 22px;
    letter-spacing: 0.04em;
    overflow-wrap: anywhere;
    color: var(--gold);
  }
  .auth .fine { text-align: center; }
  .auth .fine a { color: var(--gold); text-decoration: none; }
  .admin-side {
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    gap: 6px;
  }
  .side-id {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 4px 8px 14px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--line);
  }
  .side-id p { margin: 0; line-height: 1.35; overflow-wrap: anywhere; }
  .admin-side a, .admin-side .text-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--muted);
    text-decoration: none;
  }
  .admin-side a { padding-right: 36px; }
  .ping {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #e6453c;
    color: #fff;
    font-family: Inter, "Source Han Sans SC", "Noto Sans SC", sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
  }
  .ping[hidden] { display: none !important; }
  .admin-side a .ping {
    position: absolute;
    top: 8px;
    right: 10px;
    box-shadow: 0 0 0 2px var(--surface);
  }
  .admin-main h2 .ping { flex: none; }
  .tabs.desk-tabs button .ping,
  .chip .ping {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    font-size: 10px;
    box-shadow: 0 0 0 2px var(--bg);
  }
  .chip { position: relative; }
  .admin-side a[aria-current="page"] {
    color: var(--ink);
    background: linear-gradient(90deg, color-mix(in srgb, var(--tone, #e4c98a) 24%, transparent), transparent);
    box-shadow: inset 3px 0 0 var(--tone, var(--gold));
  }
  .admin-side form { margin: 8px 4px 0; }
  .admin-side form .text-btn { color: var(--muted); padding: 8px 10px; }
  .folio-ledger p + p { padding-left: 22px; border-left: 1px solid var(--line); }
  .console-head { margin-bottom: 8px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
  .console-head h1 { font-size: 34px; }
  .admin-main > section { scroll-margin-top: 96px; }
  .admin-main h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 26px;
    font-family: Palatino, "Palatino Linotype", "Songti SC", serif;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0.08em;
  }
  .admin-main h2::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--gold);
    flex: none;
  }
  .page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
  .page-head .back-btn { margin: 0; }
  .page-head form { margin: 0; }
  .admin-main > h1 { margin-top: 0; }
  .edition-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .edition-grid fieldset { margin: 0; border-radius: 14px; background: rgba(255, 255, 255, 0.02); }
  .edition-grid fieldset[data-kind="tool"] { grid-column: 1 / -1; }
  .edition-grid .field { max-width: none; }
  .sheet-form { max-width: 880px; display: flex; flex-direction: column; gap: 14px; }
  .sheet-card {
    padding: 16px 18px 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
  }
  .sheet-card.is-danger {
    max-width: 880px;
    margin-top: 18px;
    border-color: rgba(224, 154, 170, 0.38);
    background:
      linear-gradient(180deg, rgba(224, 154, 170, 0.07), transparent 72%),
      var(--surface);
  }
  .sheet-card.is-danger h3 { color: #e09aaa; }
  .sheet-card.is-danger .fine { margin: 0; }
  .sheet-card.is-danger form { margin: 14px 0 0; }
  .user-detail { margin: 12px 0 16px; }
  .user-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
  .user-detail-head h3 { margin: 4px 0 0; }
  .user-detail .stamp { margin-left: 6px; }
  .user-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0 16px;
  }
  .user-facts p {
    margin: 0;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
  }
  .user-facts span { display: block; color: var(--muted); font-size: 12px; letter-spacing: 0.08em; }
  .user-facts strong { display: block; margin-top: 4px; font-weight: 500; overflow-wrap: anywhere; }
  .order-no { overflow-wrap: anywhere; max-width: 16rem; }
  .act-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
  .batch-bar { margin: 4px 0 12px; }
  .batch-bar label { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
  .act-row form { margin: 0; }
  .act {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--ink);
    font: inherit;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
  }
  .act.is-ice { color: #9eb6e0; border-color: rgba(126, 160, 214, 0.5); }
  .act.is-rose { color: #e09aaa; border-color: rgba(224, 154, 170, 0.55); }
  .act.is-mint { color: #7dcaa5; border-color: rgba(125, 202, 165, 0.55); }
  .act.is-gold { color: #1c160f; background: #e2b56a; border-color: transparent; }
  .act.is-on { color: var(--gold); border-color: rgba(212, 188, 138, 0.7); background: rgba(212, 188, 138, 0.12); }
  .act:hover {
    filter: none;
    border-color: rgba(212, 188, 138, 0.85);
    background: rgba(212, 188, 138, 0.2);
    color: #f6edd8;
  }
  .pay-close.act { color: var(--muted); background: rgba(20, 22, 28, 0.72); }
  .saved-card .btn-quiet, .good-actions .btn-quiet { border-radius: 999px; }
  .sheet-card h3 {
    margin: 0 0 12px;
    font-size: 14px;
    letter-spacing: 0.12em;
    color: var(--amber);
  }
  .field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
  .field-grid .span-2 { grid-column: 1 / -1; }
  .sheet-card .field, .add-banner .field { max-width: none; }
  .sheet-card textarea { min-height: 4.5rem; }
  .sheet-card textarea.tall { min-height: 8rem; transition: min-height 0.2s ease; }
  .sheet-card textarea.tall:focus { min-height: 22rem; }
  .sheet-save { align-self: flex-start; }
  .pay-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 4px 0 14px;
  }
  .pay-switch label {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
  }
  .pay-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }
  .pay-switch strong { font-size: 14px; font-weight: 600; }
  .pay-switch small { color: var(--muted); font-size: 12px; letter-spacing: 0.04em; }
  .pay-switch label:has(input:checked) {
    border-color: rgba(212, 188, 138, 0.75);
    background: rgba(212, 188, 138, 0.12);
  }
  .pay-spare {
    max-width: 880px;
    padding: 12px 16px 16px;
    border: 1px dashed var(--line);
    border-radius: 14px;
    color: var(--muted);
  }
  .pay-spare summary {
    cursor: pointer;
    font-size: 13px;
    letter-spacing: 0.08em;
  }
  .pay-spare .field-grid { margin-top: 12px; }
  .banner-list { display: flex; flex-direction: column; gap: 14px; }
  .banner-card {
    padding: 14px 16px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
  }
  .banner-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
  .banner-head h3 { margin: 0; font-size: 18px; }
  .banner-head .good-actions { margin-top: 0; }
  .banner-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .slot {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
  }
  .slot-label { margin: 0; color: var(--ice); font-size: 13px; letter-spacing: 0.08em; }
  .slot > .fine { margin: 0; }
  .slot .field { max-width: none; }
  .slot textarea { min-height: 4.2rem; resize: vertical; transition: min-height 0.2s ease; }
  .slot textarea:focus { min-height: 10rem; }
  .slot img, .slot-empty {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #10141c;
  }
  .slot-empty {
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 13px;
  }
  .slot-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
  .sheet-card > .slot-actions { margin-top: 10px; max-width: 40rem; }
  .slot-actions > form {
    margin: 0;
    flex: none;
  }
  .slot-actions > form:has(.file-pick) {
    flex: 1;
    min-width: 0;
    display: flex;
  }
  .slot-actions .file-pick { flex: 1; min-width: 0; }
  .slot-actions .buy-btn,
  .slot-actions .btn-quiet,
  .slot-actions .act { margin-top: 0; flex: none; }
  .add-banner { display: flex; align-items: flex-end; gap: 12px; margin-top: 14px; max-width: 640px; }
  .add-banner .field { flex: 1; }
  .add-banner .buy-btn { margin-top: 0; }
  .admin-main > section > form.stack {
    margin-top: 8px;
    padding: 18px;
    border: 1px solid var(--line);
    background:
      linear-gradient(180deg, rgba(212, 188, 138, 0.06), transparent 36%),
      var(--surface);
  }
  .desk-counts {
    gap: 0;
    border: 1px solid var(--line);
    background: var(--surface);
    overflow: hidden;
  }
  .desk-counts p {
    border: 0;
    border-radius: 0;
    border-left: 1px solid var(--line);
    background: transparent;
  }
  .desk-counts p:first-child { border-left: 0; }
  .desk-counts strong {
    font-family: Palatino, "Palatino Linotype", "Songti SC", serif;
    color: var(--gold);
  }
  .good { transition: border-color 0.16s ease; }
  .good:hover { border-color: rgba(212, 188, 138, 0.55); }
  .good img { border: 1px solid rgba(212, 188, 138, 0.25); }
  th {
    font-size: 12px;
    letter-spacing: 0.14em;
    color: var(--muted);
    font-weight: 500;
  }
  tbody tr:hover td { background: rgba(212, 188, 138, 0.05); }
  .thumb { width: min(100%, 220px); aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line); }
  fieldset { background: rgba(255, 255, 255, 0.02); }
  .colophon {
    border-top: 0;
    background: linear-gradient(90deg, transparent, rgba(212, 188, 138, 0.55), transparent) top / 100% 1px no-repeat;
  }
  .foot-tag {
    font-family: Palatino, "Palatino Linotype", "Songti SC", serif;
    font-size: 18px;
    letter-spacing: 0.28em;
    color: var(--ink);
  }
  .foot-links a { letter-spacing: 0.02em; }
  h1, h2, .brand-name, .brand-sub, .gate-logo-name, .gate-logo-sub, .gate h1,
  .stage-title, .partner-title, .admin-main h2, .pulse strong, .folio-ledger strong,
  .desk-counts strong, .seal, .receipt-id, .foot-tag, .console-head h1, .card-name {
    font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  }
  h1 { font-size: 32px; font-weight: 600; letter-spacing: 0; line-height: 1.3; }
  .gate h1 { font-size: clamp(36px, 4.4vw, 52px); font-weight: 600; letter-spacing: 0.02em; line-height: 1.22; }
  h2, .admin-main h2 { font-size: 20px; font-weight: 600; letter-spacing: 0; line-height: 1.4; }
  .console-head h1 { font-size: 28px; }
  .brand-name { font-size: 20px; font-weight: 600; letter-spacing: 0.04em; }
  .brand-sub { font-size: 12px; letter-spacing: 0.16em; }
  .gate-logo-name { font-size: 40px; font-weight: 600; letter-spacing: 0.1em; line-height: 1.15; }
  .gate-logo-sub { font-size: 13px; letter-spacing: 0.2em; }
  .stage-title, .partner-title { font-size: 26px; font-weight: 600; letter-spacing: 0; }
  .foot-tag { font-size: 15px; font-weight: 500; letter-spacing: 0.08em; }
  .nav a, .subnav a, .pill, .text-btn, button.text-btn, .back { letter-spacing: 0.01em; }
  .buy-btn { letter-spacing: 0.04em; font-weight: 600; }
  .eyebrow, .section-label, .gate-mark, .stage-kicker { font-size: 13px; letter-spacing: 0.08em; }
  .lead { font-size: 16px; line-height: 1.7; }
  .fine, .meta, figcaption, .deliver, .buy-kicker, .card-meta, .pulse span, .desk-counts span, .crumb, .fact, .opt-note {
    font-size: 14px;
    line-height: 1.6;
    letter-spacing: 0;
  }
  .card .card-name { font-size: 20px; font-weight: 600; letter-spacing: 0; line-height: 1.35; }
  .card-price, .due { font-weight: 600; }
  .card-price { font-size: 15px; }
  .due, .receipt-id { font-size: 22px; letter-spacing: 0.02em; }
  .good-name { font-size: 17px; font-weight: 600; }
  .pulse strong, .desk-counts strong { font-size: 26px; font-weight: 600; letter-spacing: 0; }
  .folio-ledger strong { font-size: 34px; font-weight: 600; letter-spacing: 0; }
  .folio-ledger span { font-size: 14px; letter-spacing: 0.02em; }
  .seal { font-weight: 600; }
  label.field { font-size: 14px; letter-spacing: 0; }
  .stamp, .card-seal { letter-spacing: 0.06em; }
  th { font-size: 13px; letter-spacing: 0.04em; }
  .hot .reel-slide {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 10px;
    min-height: 0;
    max-width: min(860px, 100%);
    margin: 0 auto;
    padding: 10px;
    background: rgba(16, 20, 30, 0.72);
    border: 1px solid rgba(126, 160, 214, 0.28);
    border-radius: 16px;
    box-shadow: none;
  }
  .hot .reel-pane {
    min-height: 0;
    display: block;
    aspect-ratio: 16 / 9;
    background: #10141c;
    border-radius: 10px;
    border: 1px solid rgba(212, 188, 138, 0.28);
    overflow: hidden;
  }
  .hot .reel-pane:last-child {
    border-color: rgba(126, 160, 214, 0.35);
  }
  .hot .reel-slide img {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
    object-fit: cover;
    border-radius: 0;
    border: 0;
  }
  .hot .reel-copy {
    grid-column: 1 / -1;
    min-height: 0;
    justify-content: flex-start;
    gap: 8px;
    padding: 8px 6px 2px;
    background: transparent;
  }
  .hot .reel-kicker { color: var(--ice); font-size: 12px; letter-spacing: 0.14em; }
  .hot .reel-title { font-size: 26px; font-weight: 600; line-height: 1.25; }
  .hot .reel-summary {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hot .reel-meta { display: flex; flex-wrap: wrap; gap: 6px; }
  .hot .reel-meta span {
    border: 1px solid rgba(126, 160, 214, 0.28);
    border-radius: 999px;
    padding: 2px 8px;
    color: var(--ice);
    font-size: 12px;
  }
  .hot .reel-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .hot .reel-price { margin-left: auto; color: var(--gold); font-size: 18px; font-weight: 600; }
  .hot .reel-slide.is-poster {
    grid-template-columns: minmax(0, 380px);
    justify-content: center;
  }
  .hot .reel-slide.is-poster .reel-pane,
  .hot .reel-slide.is-poster img {
    width: 100%;
    margin: 0;
  }
  .center {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
  }
  .center-nav {
    position: sticky;
    top: 92px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
  }
  .center-nav a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 36px 12px 14px;
    border-radius: 12px;
    color: var(--muted);
    text-decoration: none;
  }
  .center-nav a .ping {
    position: absolute;
    top: 8px;
    right: 10px;
    box-shadow: 0 0 0 2px var(--surface);
  }
  .center-nav .tally {
    margin-left: auto;
    margin-right: -22px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
  }
  .center-nav a[aria-current="page"] {
    color: var(--ink);
    background: linear-gradient(90deg, color-mix(in srgb, var(--tone, #e4c98a) 24%, transparent), transparent);
    box-shadow: inset 3px 0 0 var(--tone, #e4c98a);
  }
  .center-nav a[aria-current="page"] .btn-ico,
  .admin-side a[aria-current="page"] .btn-ico {
    background: var(--tone, #e4c98a);
    color: #1c160f;
  }
  .tone-gold { --tone: #e4c98a; }
  .tone-ice { --tone: #8eb0e8; }
  .tone-amber { --tone: #e2b56a; }
  .tone-mint { --tone: #7dcaa5; }
  .tone-violet { --tone: #c0a6ef; }
  .tone-rose { --tone: #e09aaa; }
  .tone-teal { --tone: #7ec8c3; }
  .center-nav .btn-ico, .admin-side a .btn-ico {
    width: 22px;
    height: 22px;
    padding: 7px;
    box-sizing: content-box;
    border-radius: 10px;
    color: var(--tone, #e4c98a);
    background: color-mix(in srgb, var(--tone, #e4c98a) 18%, transparent);
  }
  .center-lead { margin: 6px 0 18px; }
  .profile-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(212, 188, 138, 0.06), transparent 42%), var(--surface);
  }
  .profile-card.is-agent { flex-direction: column; align-items: stretch; }
  .profile-link { width: 100%; }
  .profile-card h2 { margin: 0; font-size: 28px; }
  .profile-card .buy-btn { flex: none; margin: 0; }
  .tabs.desk-tabs {
    position: sticky;
    top: 72px;
    z-index: 4;
    margin: 16px 0 18px;
    padding: 8px 0 10px;
    background: var(--bg);
    box-shadow: 0 14px 18px -14px var(--bg);
  }
  .tabs.desk-tabs button {
    position: relative;
    z-index: 1;
    cursor: pointer;
  }
  .tab-panel > .panel,
  .tab-panel > .sheet-card { margin-top: 14px; }
  .tab-panel > .stat-grid { margin-top: 0; }
  .stat-grid.two { grid-template-columns: 1fr 1fr; }
  .stat-grid.wide { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bars { display: flex; align-items: flex-end; gap: 6px; min-height: 108px; margin-top: 8px; }
  .bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; }
  .bar span { display: block; width: 100%; max-width: 22px; min-height: 3px; border-radius: 6px 6px 2px 2px; background: #e4c98a; }
  .bar:nth-child(3n) span { background: #8eb0e8; }
  .bar:nth-child(3n+1) span { background: #7dcaa5; }
  .bar small { color: var(--muted); font-size: 10px; }
  .flag-line { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin: 0; padding: 8px 0; border-top: 1px solid var(--line); }
  .trend-card { margin-top: 14px; }
  .stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
  }
  .stat-grid p {
    margin: 0;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
  }
  .stat-grid strong {
    display: block;
    margin: 8px 0 4px;
    font-family: Palatino, "Palatino Linotype", "Songti SC", serif;
    font-size: 32px;
    font-weight: 500;
    line-height: 1;
    color: var(--gold);
  }
  .stat-grid span { color: var(--muted); font-size: 13px; letter-spacing: 0.08em; }
  .stat-grid .ledger-ico {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--ice);
    background: rgba(126, 160, 214, 0.14);
  }
  .stat-grid .ledger-ico .btn-ico,
  .stat-grid .ledger-ico .stat-ico { width: 22px; height: 22px; }
  .stat-grid .ledger-ico.is-down { color: var(--gold); background: rgba(212, 188, 138, 0.16); }
  .id-facts .btn-ico { width: 18px; height: 18px; }
  .order-filters { margin: 8px 0 16px; }
  .row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
  .row-actions form { margin: 0; }
  .center-block { margin-top: 26px; }
  .center-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .center-head h2 { margin: 0; }
  .center-head .text-btn { display: inline-flex; align-items: center; gap: 4px; color: var(--gold); }
  .quiet-panel {
    margin-top: 12px;
    padding: 28px 18px;
    border: 1px dashed rgba(212, 188, 138, 0.35);
    border-radius: 16px;
    text-align: center;
    color: var(--muted);
  }
  .quiet-panel .buy-btn { margin-top: 14px; }
  .center-form { margin-top: 16px; max-width: 36rem; }
  .id-line { display: flex; align-items: center; gap: 8px; color: var(--ice); }
  .id-line .btn-ico { color: var(--gold); }
  .stat-grid p.is-wait {
    border-color: rgba(214, 164, 108, 0.45);
    background: linear-gradient(180deg, rgba(214, 164, 108, 0.08), transparent 70%);
  }
  .stat-grid p.is-wait .ledger-ico { color: #e2b56a; background: rgba(214, 164, 108, 0.16); }
  .stat-grid p.is-wait strong { color: #e2b56a; }
  .stat-grid p.is-ready {
    border-color: rgba(212, 188, 138, 0.5);
    background: linear-gradient(180deg, rgba(212, 188, 138, 0.1), transparent 70%);
  }
  .stat-grid p.is-all {
    border-color: rgba(126, 160, 214, 0.45);
    background: linear-gradient(180deg, rgba(126, 160, 214, 0.1), transparent 70%);
  }
  .stat-grid p.is-all strong { color: #9eb6e0; }
  .stat-grid p.is-off {
    border-color: rgba(224, 154, 170, 0.45);
    background: linear-gradient(180deg, rgba(224, 154, 170, 0.1), transparent 70%);
  }
  .stat-grid p.is-off strong { color: #e09aaa; }
  .meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
  .meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(126, 160, 214, 0.12);
    color: var(--ice);
    font-size: 13px;
  }
  .meta-chip .btn-ico { width: 16px; height: 16px; }
  .meta-chip.is-gold { background: rgba(212, 188, 138, 0.14); color: #e7d3a1; }
  a.meta-chip { text-decoration: none; }
  .hint-row { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
  .hint-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
  }
  .hint-line.is-wait { color: #e2b56a; background: rgba(214, 164, 108, 0.1); }
  .hint-line.is-ready { color: #e7d3a1; background: rgba(212, 188, 138, 0.1); }
  .quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
    gap: 10px;
    margin-top: 14px;
  }
  .quick-grid a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    text-decoration: none;
    background: var(--surface);
  }
  .quick-grid a:hover { border-color: rgba(212, 188, 138, 0.45); }
  .quick-grid .btn-ico { width: 20px; height: 20px; color: var(--gold); }
  .quick-grid strong { font-size: 15px; font-weight: 600; }
  .quick-grid span { color: var(--muted); font-size: 12px; }
  .center-nav form { margin: 8px 4px 0; }
  .center-nav form .text-btn { color: var(--muted); padding: 8px 10px; }
  .avatar-stage {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 8px;
  }
  .avatar-card {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 22px 24px;
  }
  .avatar-frame {
    width: 112px;
    height: 112px;
    flex: none;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(212, 188, 138, 0.4);
    background: rgba(212, 188, 138, 0.06);
  }
  .avatar-frame img,
  .avatar-frame .seal {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .avatar-frame .seal { font-size: 46px; }
  .avatar-copy { flex: 1; min-width: 0; }
  .avatar-copy h2 { margin: 0 0 6px; }
  .avatar-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
  }
  .avatar-actions .file-pick { flex: 1; min-width: 180px; max-width: 340px; }
  .avatar-card .text-btn { margin-top: 8px; padding-left: 0; }
  .avatar-actions .buy-btn,
  .center-form .buy-btn,
  .secure-form .buy-btn,
  .saved-card .buy-btn,
  .order .buy-btn,
  .good-actions .buy-btn { margin-top: 0; width: auto; max-width: none; }
  .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .form-grid .span-2 { grid-column: 1 / -1; }
  .secure-split {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
    gap: 14px;
  }
  .secure-card {
    display: flex;
    align-items: center;
    gap: 14px;
    grid-column: 1;
  }
  .secure-card h2 { margin: 0 0 4px; font-size: 18px; }
  .secure-card .ledger-ico {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--ice);
    background: rgba(126, 160, 214, 0.14);
    flex: none;
  }
  .secure-card .ledger-ico.is-down { color: var(--gold); background: rgba(212, 188, 138, 0.16); }
  .secure-card .btn-ico { width: 22px; height: 22px; }
  .secure-form { grid-column: 2; grid-row: 1 / span 2; }
  .secure-form h2 { margin-top: 0; }
  @media (max-width: 720px) {
    body { font-size: 15px; }
    input, textarea, select { font-size: 16px !important; }
    .wrap { padding: 0 16px; }
    h1, .console-head h1 { font-size: clamp(24px, 7vw, 30px); }
    h2 { font-size: clamp(17px, 4.8vw, 20px); }
    .gate h1 { font-size: clamp(28px, 8.6vw, 36px); }
    .offer-price { font-size: clamp(30px, 9vw, 38px); }
    .pay-dialog h2 { font-size: clamp(20px, 6vw, 26px); }
    .folio-ledger strong { font-size: clamp(24px, 7.4vw, 32px); }
    .receipt-id { font-size: clamp(17px, 5vw, 22px); }
    .product-stage { grid-template-columns: minmax(0, 1fr); }
    .foot-row { flex-direction: column; align-items: flex-start; }
    .foot-links { justify-content: flex-start; }
    .order-find { flex-direction: column; align-items: stretch; }
    .user-facts { grid-template-columns: 1fr 1fr; }
    .pay-switch { grid-template-columns: 1fr; }
    .product-stage .offer { position: static; }
    .reel-slide { grid-template-columns: minmax(0, 1fr); }
    .reel-slide img { min-height: 180px; max-height: 240px; }
    .admin-layout { grid-template-columns: minmax(0, 1fr); }
    .admin-side { position: static; flex-direction: row; flex-wrap: wrap; }
    .brand-name { letter-spacing: 0.04em; }
    .mast-search { flex: 1 1 100%; margin-left: 0; max-width: none; order: 5; }
    .who { margin-left: auto; }
    .account-id small { display: none; }
    .gate, .gate-band .pulse, .member-panel, .shelf-wait { padding-left: 16px; padding-right: 16px; }
    .member-panel, .member-plans, .pay-plans { grid-template-columns: 1fr; }
    .product-tools .buy-btn { width: 100%; }
    .tool-card { align-items: flex-start; flex-direction: column; }
    .gate { grid-template-columns: 1fr; gap: 22px; }
    .gate-logo { min-height: 0; }
    .gate-logo .emblem { width: 88px; height: 88px; }
    .gate-logo-name { font-size: clamp(26px, 8vw, 32px); }
    .hot { padding-left: 16px; padding-right: 16px; }
    .hot .reel-slide { grid-template-columns: 1fr; max-width: 420px; }
    .pulse, .pulse.two { grid-template-columns: 1fr 1fr; }
    .pulse p:nth-child(odd) { border-left: 0; }
    .pulse p:nth-child(n+3) { border-top: 1px solid var(--line); }
    .gate-band .pulse-line { gap: 16px; }
    .folio { grid-template-columns: 1fr; }
    .center { grid-template-columns: 1fr; }
    .center-nav { position: static; flex-direction: row; overflow-x: auto; }
    .center-nav a { white-space: nowrap; }
    .profile-card { flex-direction: column; align-items: flex-start; }
    .stat-grid, .stat-grid.wide, .form-grid, .secure-split, .quick-grid { grid-template-columns: 1fr 1fr; }
    .secure-form { grid-column: auto; grid-row: auto; }
    .avatar-stage, .avatar-card { flex-direction: column; align-items: flex-start; }
    .avatar-actions { width: 100%; }
    .avatar-actions .file-pick { max-width: none; }
    .page-sheet { padding: 18px 16px 22px; }
    .admin-side { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; }
    .desk-counts, .field-grid, .banner-slots, .edition-grid, .payee-layout, .due-card, .shot-more { grid-template-columns: 1fr; }
    .due-pay { align-items: flex-start; }
    .toolbar { flex-direction: column; align-items: stretch; }
    .sort-pill, .sort-menu, .sort-menu summary { width: 100%; }
    .add-banner { flex-direction: column; align-items: stretch; }
    .desk-counts p { border-left: 0; border-top: 1px solid var(--line); }
    .desk-counts p:first-child { border-top: 0; }
    .gate-logo .emblem { outline-offset: 10px; }
    .card:hover { transform: none; }
  }
  .nav a.tone-gold, .foot-links a.tone-gold { color: var(--tone, #e4c98a); }
  .nav a.tone-mint, .foot-links a.tone-mint { color: var(--mint); }
  .nav a.tone-ice, .foot-links a.tone-ice { color: #8eb0e8; }
  .nav a.tone-violet, .foot-links a.tone-violet { color: var(--violet); }
  .nav a.tone-rose, .foot-links a.tone-rose { color: var(--rose); }
  .nav a[aria-current="page"]::after { background: currentColor; }
  .who > a.tone-amber { color: var(--amber); }
  .who > a.tone-ice { color: #8eb0e8; }
  .chip:nth-child(7n+1) { color: #e4c98a; border-color: rgba(228, 201, 138, 0.4); }
  .chip:nth-child(7n+2) { color: #8eb0e8; border-color: rgba(142, 176, 232, 0.4); }
  .chip:nth-child(7n+3) { color: var(--mint); border-color: rgba(125, 202, 165, 0.4); }
  .chip:nth-child(7n+4) { color: var(--amber); border-color: rgba(226, 181, 106, 0.4); }
  .chip:nth-child(7n+5) { color: var(--violet); border-color: rgba(192, 166, 239, 0.4); }
  .chip:nth-child(7n+6) { color: var(--rose); border-color: rgba(224, 154, 170, 0.4); }
  .chip:nth-child(7n+7) { color: var(--teal); border-color: rgba(126, 200, 195, 0.4); }
  .chip[aria-current="page"] {
    background: color-mix(in srgb, currentColor 22%, transparent);
    border-color: currentColor;
  }
  .fact:nth-child(6n+1) { color: #e4c98a; border-color: rgba(228, 201, 138, 0.45); }
  .fact:nth-child(6n+2) { color: #8eb0e8; border-color: rgba(142, 176, 232, 0.45); }
  .fact:nth-child(6n+3) { color: var(--mint); border-color: rgba(125, 202, 165, 0.45); }
  .fact:nth-child(6n+4) { color: var(--amber); border-color: rgba(226, 181, 106, 0.45); }
  .fact:nth-child(6n+5) { color: var(--violet); border-color: rgba(192, 166, 239, 0.45); }
  .fact:nth-child(6n+6) { color: var(--teal); border-color: rgba(126, 200, 195, 0.45); }
  .card:nth-child(6n+1) .card-seal { color: #e4c98a; border-color: rgba(228, 201, 138, 0.5); }
  .card:nth-child(6n+2) .card-seal { color: #8eb0e8; border-color: rgba(142, 176, 232, 0.5); }
  .card:nth-child(6n+3) .card-seal { color: var(--mint); border-color: rgba(125, 202, 165, 0.5); }
  .card:nth-child(6n+4) .card-seal { color: var(--amber); border-color: rgba(226, 181, 106, 0.5); }
  .card:nth-child(6n+5) .card-seal { color: var(--violet); border-color: rgba(192, 166, 239, 0.5); }
  .card:nth-child(6n+6) .card-seal { color: var(--rose); border-color: rgba(224, 154, 170, 0.5); }
  .tabs button:nth-child(4n+1) { color: #e4c98a; }
  .tabs button:nth-child(4n+2) { color: #8eb0e8; }
  .tabs button:nth-child(4n+3) { color: var(--mint); }
  .tabs button:nth-child(4n+4) { color: var(--violet); }
  .tabs button[aria-pressed="true"] { border-color: currentColor; background: color-mix(in srgb, currentColor 14%, transparent); }
  .reel-meta span:nth-child(3n+1) { color: #e4c98a; border-color: rgba(228, 201, 138, 0.4); }
  .reel-meta span:nth-child(3n+2) { color: #8eb0e8; border-color: rgba(142, 176, 232, 0.4); }
  .reel-meta span:nth-child(3n+3) { color: var(--mint); border-color: rgba(125, 202, 165, 0.4); }
  .pager-num.is-current { background: #8eb0e8; color: #1c160f; border-color: transparent; }
  .section-label { color: var(--amber); }
  .buy-kicker { color: var(--violet); }
  .buy-btn, .buy-btn.slim, .btn-quiet, .act, .pill, .chip, .card, .saved-card, .good, .account-link, .pay-method span {
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, color 0.2s ease;
  }
  .buy-btn { min-height: 44px; border-radius: 10px; }
  .buy-btn:hover, .pill:hover { filter: brightness(0.94); }
  .buy-btn:active, .buy-btn.slim:active, .btn-quiet:active, .act:active { transform: scale(0.98); }
  button[disabled], .buy-btn:disabled {
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    border: 1px solid var(--line);
    box-shadow: none;
    cursor: not-allowed;
    filter: none;
    transform: none;
  }
  input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: rgba(212, 188, 138, 0.85);
    box-shadow: 0 0 0 3px rgba(212, 188, 138, 0.16);
  }
  main { animation: page-in 0.28s ease; }
  @keyframes page-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
  }
  .saved-card, .order, .good, .panel {
    border-radius: 14px;
  }
  .saved-card, .good {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
  }
  .btn-ico, .stat-ico { width: 16px; height: 16px; }
  .buy-btn, .btn-quiet, .act, .text-btn, button.text-btn, .order-name, .center-head a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .buy-btn .btn-ico, .buy-btn .stat-ico,
  .btn-quiet .btn-ico, .btn-quiet .stat-ico,
  .act .btn-ico, .act .stat-ico,
  .text-btn .btn-ico, .text-btn .stat-ico,
  .order-name .btn-ico { width: 16px; height: 16px; padding: 0; }
  .admin-side a .btn-ico, .admin-side a .stat-ico,
  .center-nav a .btn-ico, .center-nav a .stat-ico {
    width: 16px;
    height: 16px;
    padding: 6px;
    box-sizing: content-box;
    border-radius: 8px;
    flex: none;
  }
  .admin-side a, .center-nav a, .chip, .pager-btn, .tabs button, label.opt, .pay-method span, .text-btn, button.text-btn {
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, filter 0.2s ease;
  }
  .admin-side a:hover, .center-nav a:hover {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.04);
  }
  .admin-side form .text-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 14px 12px 54px;
    border-radius: 12px;
    text-align: left;
  }
  .admin-side form .text-btn:hover, .text-btn:hover, button.text-btn:hover {
    color: var(--gold);
    background: rgba(212, 188, 138, 0.1);
  }
  .chip:hover, .pager-btn:hover, .tabs button:hover, label.opt:hover {
    border-color: rgba(212, 188, 138, 0.55);
    background: rgba(212, 188, 138, 0.08);
  }
  .pager-btn.is-off:hover { background: transparent; border-color: var(--line); }
  .admin-main .good:hover {
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
  }
  .find-row { display: flex; flex-direction: column; gap: 6px; max-width: 640px; margin-top: 14px; }
  .find-label { color: var(--muted); font-size: 13px; }
  .find-line { display: flex; align-items: center; gap: 10px; }
  .find-line input { flex: 1; min-width: 0; height: 42px; min-height: 42px; margin: 0; border-radius: 10px; }
  .find-line .buy-btn, .find-line .buy-btn.slim {
    height: 42px;
    min-height: 42px;
    margin: 0;
    flex: none;
    border-radius: 10px;
    padding: 0 20px;
  }
  .mast .nav a:hover, .foot-links a:hover {
    color: #f6f1e8;
    background: rgba(212, 188, 138, 0.16);
    border-radius: 999px;
  }
  .hot .reel-slide { transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
  .hot .reel-slide:hover {
    border-color: rgba(212, 188, 138, 0.85);
    box-shadow: 0 0 0 1px rgba(212, 188, 138, 0.45);
  }
  .hot .reel-pane { overflow: hidden; }
  .hot .reel-slide img { transition: transform 0.2s ease; }
  .hot .reel-slide:hover img { transform: scale(1.04); }
  .reel-bar .text-btn:hover, .account-link:hover {
    color: var(--gold);
    background: rgba(212, 188, 138, 0.14);
  }
  .chip:hover, a.pager-num:hover, .pager-btn:hover {
    color: #1c160f;
    background: #e2b56a;
    border-color: #e2b56a;
  }
  .chip[aria-current="page"]:hover { filter: brightness(1.08); }
  .pager-btn.is-off, .pager-btn.is-off:hover {
    color: var(--muted);
    background: transparent;
    border-color: var(--line);
  }
  .admin-side a:hover {
    color: var(--ink);
    background: rgba(212, 188, 138, 0.14);
  }
  .risk-note {
    margin: 22px auto;
    max-width: 880px;
    padding: 16px 18px 18px;
    border: 1px solid rgba(224, 154, 170, 0.38);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(224, 154, 170, 0.08), transparent 70%), rgba(20, 16, 18, 0.35);
  }
  .risk-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #e7b4c0;
    font-size: 14px;
    letter-spacing: 0.12em;
  }
  .risk-mark {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1.5px #e09aaa;
  }
  .risk-note p:last-child {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.75;
  }
  .colophon .risk-note { margin: 18px auto 22px; }
  .page-sheet .risk-note { margin: 16px 0 8px; }
  .auth .risk-note { margin: 8px 0 14px; text-align: left; }
  .buy-btn:hover, .pill:hover, .act.is-gold:hover {
    filter: none;
    background: #f4e2b4;
    color: #1c160f;
    box-shadow: 0 8px 18px rgba(212, 188, 138, 0.35);
  }
  .buy-btn.is-line:hover {
    filter: none;
    background: rgba(212, 188, 138, 0.22);
    color: #f6f1e8;
    border-color: #f4e2b4;
    box-shadow: none;
  }
  .forum, .forum-read { max-width: 46rem; }
  .forum-read h1 { font-size: 22px; }
  .forum-desk {
    max-width: none;
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr) 220px;
    gap: 18px;
    align-items: start;
  }
  .forum-kicker { margin: 0 0 8px; color: var(--muted); font-size: 12px; letter-spacing: 0.08em; }
  .forum-side, .forum-rail { position: sticky; top: 84px; display: grid; gap: 6px; }
  .forum-side-link {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    color: inherit;
    font-size: 14px;
    text-decoration: none;
  }
  .forum-side-link small { color: var(--muted); }
  .forum-side-link:hover { background: rgba(212, 188, 138, 0.1); color: var(--gold); }
  .forum-side-link[aria-current="page"] { background: rgba(212, 188, 138, 0.16); color: var(--gold); }
  .forum-main-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
  .forum-main-head h1 { margin: 0; font-size: 22px; }
  .forum-main-head .buy-btn, .forum-rail .buy-btn { margin: 0; }
  .forum-tabs { display: flex; align-items: center; gap: 14px; margin: 12px 0; font-size: 14px; }
  .forum-tabs a { color: var(--muted); text-decoration: none; }
  .forum-tabs a:hover, .forum-tabs a[aria-current="page"] { color: var(--gold); }
  .forum-tabs span { margin-left: auto; color: var(--muted); font-size: 12px; }
  .forum-main .forum-find { max-width: none; margin: 0 0 8px; }
  .forum-entry {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
  }
  .forum-face { width: 42px; height: 42px; font-size: 16px; }
  .forum-hot a:hover span, .forum-files a:hover { color: var(--gold); }
  .forum-by { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: 13px; }
  .forum-tag { margin-left: auto; }
  .forum-entry h2 { margin: 4px 0 0; font-size: 16px; font-weight: 560; line-height: 1.4; }
  .forum-open { color: inherit; text-decoration: none; }
  .forum-open p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
  .forum-open:hover h2 { color: var(--gold); }
  .forum-files { display: flex; flex-wrap: wrap; gap: 8px 12px; margin: 6px 0 0; font-size: 13px; }
  .forum-foot { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 8px 0; color: var(--muted); font-size: 13px; }
  .forum-foot form { margin: 0; }
  .forum-files a { color: var(--gold); text-decoration: none; }
  .forum-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .forum-stats p {
    margin: 0;
    padding: 10px 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    text-align: center;
  }
  .forum-stats strong { display: block; color: var(--gold); font-size: 18px; }
  .forum-stats span, .forum-hot { color: var(--muted); font-size: 12px; }
  .forum-hot h2 { margin: 8px 0; color: inherit; font-size: 14px; }
  .forum-hot a {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    gap: 6px;
    padding: 6px 0;
    color: inherit;
    font-size: 13px;
    text-decoration: none;
  }
  .forum-hot b { color: var(--gold); font-weight: 560; }
  .forum-hot span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .forum-note { margin-top: 22px; }
  .forum-note h2 { margin: 0 0 4px; font-size: 15px; }
  .forum-comment { padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--line); }
  .forum-comment.is-hidden { opacity: 0.55; }
  .forum-go { color: var(--gold); font-size: 13px; }
  @media (max-width: 960px) {
    .forum-desk { grid-template-columns: 1fr; }
    .forum-side, .forum-rail { position: static; }
    .forum-side { display: flex; gap: 6px; overflow: auto; }
    .forum-side-link { white-space: nowrap; }
    .forum-tag { margin-left: 0; }
  }
  .forum-who {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
  }
  .forum-who .avatar { width: 32px; height: 32px; font-size: 14px; }
  .forum-who strong { margin-right: 6px; }
  .forum-who .stamp, .forum-person .stamp { margin-left: 6px; vertical-align: middle; }
  .forum-body {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
  .forum-mod { margin: 8px 0 4px; }
  .forum-compose { margin-top: 18px; }
  .forum-compose textarea { min-height: 8rem; }
  .pick-results, .pick-chosen { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
  .pick-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
  }
  .pick-remove { border: 0; background: transparent; color: var(--gold); cursor: pointer; }
  .forum-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
  .forum-photos img { width: 148px; height: 148px; object-fit: cover; border-radius: 8px; }
  .forum-picks { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 14px; }
  .forum-pick {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: auto;
    max-width: 100%;
    padding: 6px 8px 6px 6px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
  }
  .forum-pick img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; flex: none; }
  .forum-pick-name { line-height: 1.35; }
  .forum-pick .buy-btn.forum-jump { margin-top: 0; flex: none; min-height: 36px; padding: 0 12px; }
  .split-side { margin-top: 18px; }
  .split-side h3 { margin-bottom: 6px; }
  .split-side > .fine { margin: 0 0 10px; }
  .split-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin-top: 0;
  }
  .split-preview article {
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
  }
  .split-preview b {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
  }
  .split-preview p { margin: 0; color: var(--muted); font-size: 13px; }
  .payee-qr {
    display: block;
    width: 148px;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
  }
  .payee-qr-link { display: inline-block; width: fit-content; }
  .payee-cell {
    display: flex;
    gap: 10px;
    align-items: flex-start;
  }
  .payee-cell img {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
  }
  .payee-layout {
    display: grid;
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
  }
  .payee-slot img, .payee-slot .slot-empty, .payee-slot .payee-preview {
    width: 100%;
    max-width: 240px;
    aspect-ratio: 1;
    object-fit: contain;
    background: #fff;
  }
  .payee-slot .slot-empty { background: rgba(255, 255, 255, 0.03); }
  .payee-fields { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
  .payee-fields .buy-btn { align-self: flex-start; }
  .field-copy { display: flex; align-items: flex-end; gap: 8px; min-width: 0; }
  .field-copy .field { flex: 1; min-width: 0; }
  .mono-addr { font-family: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, monospace; overflow-wrap: anywhere; word-break: break-all; }
  .pay-chains.compact .pay-method span { min-height: 44px; }
  .due-list { display: flex; flex-direction: column; gap: 12px; margin: 12px 0; }
  .crew-list { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
  .side-switch { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
  .crew-team { display: flex; flex-direction: column; gap: 8px; }
  .crew-kids { display: flex; flex-direction: column; gap: 8px; margin-left: 22px; }
  .due-fold {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
  }
  .due-fold > summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
  }
  .due-fold .due-card { border: 0; border-radius: 0; border-top: 1px solid var(--line); }
  .crew-card {
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
  }
  .crew-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
  .crew-head strong { font-size: 16px; }
  .crew-rank { margin-left: 8px; color: var(--gold); }
  .crew-card .fine { margin: 4px 0 0; }
  .crew-line { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
  .crew-line form { margin: 0; }
  .crew-line input[type="number"], .crew-line input[type="text"], .crew-line select { width: auto; min-width: 7rem; }
  .crew-line input[type="text"] { flex: 1; min-width: 12rem; }
  .crew-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(226, 181, 106, 0.08);
  }
  .crew-switch .choice { margin: 0; }
  .crew-qr { width: 36px; height: 36px; object-fit: cover; border-radius: 6px; background: #fff; }
  .agent-row, .ask-row {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
  }
  .agent-row[data-off] { opacity: 0.62; }
  .agent-row > summary, .ask-row > summary {
    list-style: none;
    display: grid;
    gap: 12px;
    align-items: center;
    padding: 11px 16px;
    cursor: pointer;
  }
  .agent-row > summary { grid-template-columns: minmax(150px, 1.5fr) minmax(100px, 1.1fr) 60px minmax(140px, 1.3fr) minmax(100px, 1fr) 70px auto; }
  .ask-row > summary { grid-template-columns: minmax(150px, 1.4fr) 110px minmax(100px, 1fr) 120px minmax(120px, 1fr) auto; }
  .agent-row > summary::-webkit-details-marker, .ask-row > summary::-webkit-details-marker { display: none; }
  .agent-row > summary::after, .ask-row > summary::after { content: "展开"; color: var(--muted); font-size: 12px; justify-self: end; }
  .agent-row[open] > summary::after, .ask-row[open] > summary::after { content: "收起"; }
  .ag-name { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; min-width: 0; }
  .ag-name strong { font-size: 15px; }
  .ag-rank { font-style: normal; color: var(--gold); font-size: 12px; }
  .ag-up, .ag-kids, .ag-cap, .ak-tree, .ak-time { color: var(--muted); font-size: 12px; }
  .ag-money b, .ak-amount b { font-size: 15px; }
  .ag-money i { font-style: normal; color: var(--muted); font-size: 11px; }
  .ag-paid { font-size: 13px; }
  .agent-detail, .ask-detail {
    padding: 12px 16px;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 10px;
  }
  .agent-detail .fine, .ask-detail .fine { margin: 0; }
  .ag-actions { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
  .ag-actions form { margin: 0; display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
  .ag-actions input[type="text"], .ag-actions select { width: auto; }
  .ag-actions input[type="text"] { min-width: 10rem; }
  .due-card {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: start;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
  }
  .due-qr {
    width: 132px;
    height: 132px;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
  }
  .due-qr.is-empty {
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    font-size: 13px;
  }
  .due-who { margin: 0 0 4px; font-weight: 600; }
  .due-pay {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 7.5rem;
  }
  .due-pay strong { font-size: 20px; }
  .ask-pay { width: 100%; min-width: 12rem; }
  .ask-pay .pay-methods { margin-top: 0; }
  .pay-methods.pay-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ask-pay .file-pick { width: 100%; }
  .payout-log {
    margin-top: 16px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
  }
  .payout-log > summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
  }
  .payout-log > summary::-webkit-details-marker { color: var(--gold); }
  .payout-log .table-wrap,
  .payout-log .due-list,
  .payout-log .quiet-panel { margin-top: 12px; }
  .proof-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
  }
  .proof-row img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
  }
  .hint-line.ask-notice {
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
  }
  .ask-notice p { margin: 0; }
  .payee-mini {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 8px 0;
  }
  .payee-mini img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
  }
  @media (prefers-reduced-motion: reduce) {
    .card, .pay-modal, .pay-dialog, main, .admin-main .good { transition: none; animation: none; }
    .emblem-door-l, .emblem-door-r, .emblem-halo, .emblem-spark, .emblem-mote,
    .gate-dot { animation: none; }
    .emblem-halo { opacity: 0.22; transform: none; }
    .emblem-mote { opacity: 0.55; }
  }
  [hidden] { display: none !important; }
  .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .cs-slot { position: relative; flex: none; }
  .cs-launch, .cart-launch {
    box-sizing: border-box;
    position: relative;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-right: 6px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    color: var(--gold);
    cursor: pointer;
    text-decoration: none;
    letter-spacing: 0;
  }
  .cs-launch:hover, .cs-launch:focus-visible, .cs-launch.is-on,
  .cart-launch:hover, .cart-launch:focus-visible, .cart-launch[aria-current="page"] {
    border-color: rgba(212, 188, 138, 0.55);
    background: rgba(212, 188, 138, 0.16);
  }
  .search-go .btn-ico, .cs-launch .btn-ico, .cart-launch .btn-ico {
    width: 22px;
    height: 22px;
  }
  .cs-launch .ping, .cart-launch .ping {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    font-size: 10px;
    box-shadow: 0 0 0 2px var(--bg);
  }
  .cs-layer {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 40;
    width: min(360px, calc(100vw - 28px));
  }
  .cs-layer.is-on { display: block; }
  .cs-layer[hidden] { display: none !important; }
  .cs-panel {
    width: 100%;
    max-height: min(560px, calc(100vh - 96px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background:
      linear-gradient(180deg, rgba(212, 188, 138, 0.08), transparent 72px),
      var(--surface);
    border: 1px solid rgba(212, 188, 138, 0.28);
    border-radius: 18px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
  }
  .cs-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 14px 10px 16px;
  }
  .cs-who {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }
  .cs-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(212, 188, 138, 0.16);
    color: var(--gold);
    flex: none;
  }
  .cs-mark .btn-ico { width: 18px; height: 18px; }
  .cs-head h2 { margin: 0; font-size: 16px; font-weight: 600; }
  .cs-x {
    width: 36px;
    height: 36px;
    flex: none;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    color: var(--ink);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
  }
  .cs-x:hover, .cs-x:focus-visible {
    border-color: rgba(212, 188, 138, 0.55);
    color: var(--gold);
  }
  .cs-hours {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 2px 0 0;
    padding: 0;
    color: var(--muted);
    font-size: 12px;
  }
  .cs-lamp {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #6d6a64;
    box-shadow: 0 0 0 3px rgba(109, 106, 100, 0.16);
  }
  .cs-lamp.is-on {
    background: #7dbe8a;
    box-shadow: 0 0 0 3px rgba(125, 190, 138, 0.22);
  }
  .cs-note {
    margin: 0 16px 8px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(212, 188, 138, 0.08);
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
  }
  .cs-msgs {
    flex: 1;
    overflow: auto;
    padding: 4px 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 180px;
  }
  .cs-msgs.is-static { min-height: 160px; max-height: 360px; }
  .cs-empty, .cs-row.is-sys p {
    color: var(--muted);
    font-size: 13px;
  }
  .cs-empty {
    margin: auto;
    text-align: center;
    max-width: 16em;
    line-height: 1.6;
  }
  .cs-row {
    max-width: 86%;
    padding: 8px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
  }
  .cs-from {
    display: block;
    margin: 0 0 4px;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 500;
    color: var(--muted);
  }
  .cs-row p { font-size: 14px; line-height: 1.5; }
  .cs-row.is-you {
    align-self: flex-end;
    background: rgba(212, 188, 138, 0.16);
    border-color: rgba(212, 188, 138, 0.35);
  }
  .cs-row.is-you .cs-from { color: rgba(212, 188, 138, 0.92); text-align: right; }
  .cs-row.is-staff {
    align-self: flex-start;
    background: rgba(126, 160, 214, 0.12);
  }
  .cs-row.is-staff .cs-from { color: #9bb6e0; }
  .cs-msgs.is-static .cs-row.is-you {
    align-self: flex-start;
    background: rgba(126, 160, 214, 0.12);
    border-color: var(--line);
  }
  .cs-msgs.is-static .cs-row.is-you .cs-from {
    color: #9bb6e0;
    text-align: left;
  }
  .cs-msgs.is-static .cs-row.is-staff {
    align-self: flex-end;
    background: rgba(212, 188, 138, 0.16);
    border-color: rgba(212, 188, 138, 0.35);
  }
  .cs-msgs.is-static .cs-row.is-staff .cs-from {
    color: rgba(212, 188, 138, 0.92);
    text-align: right;
  }
  .cs-row.is-sys {
    align-self: center;
    background: transparent;
    border: 0;
    text-align: center;
  }
  #cs-form {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 12px 14px 14px;
    border-top: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.12);
  }
  #cs-form .cs-field {
    flex: 1;
    min-width: 0;
    max-width: none;
    display: block;
  }
  #cs-body {
    display: block;
    width: 100%;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    padding: 10px 12px !important;
    line-height: 22px;
    resize: none;
    overflow: hidden;
  }
  #cs-form .buy-btn {
    margin: 0 !important;
    width: auto;
    height: 42px;
    min-height: 42px;
    flex: none;
  }
  .cs-setup {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 880px;
  }
  .cs-setup .sheet-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .cs-upload {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
  }
  .cs-upload .file-pick {
    flex: 1 1 16rem;
    max-width: 22rem;
  }
  .cs-upload .file-add { flex: none; }
  .cs-upload .buy-btn,
  .cs-upload .btn-quiet {
    margin: 0;
    flex: none;
  }
  .cs-setup .sheet-card > .buy-btn {
    margin-top: 14px;
    align-self: flex-start;
  }
  #cs > .chips { margin-top: 28px; }
  .cs-desk {
    display: grid;
    grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 1.2fr);
    gap: 16px;
    margin-top: 16px;
  }
  .cs-desk tr[data-href] { cursor: pointer; }
  .cs-desk tr[data-href]:hover td { background: rgba(212, 188, 138, 0.08); }
  .cs-desk tr.is-on td { background: rgba(212, 188, 138, 0.12); }
  .cs-drop { display: inline; margin: 0; }
  .cs-desk .act-row { flex-wrap: nowrap; }
  .cs-person {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .cs-person .ping { position: static; }
  .agent-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
  }
  .agent-head h1 { margin: 0; }
  .wx-slot { position: relative; flex: none; margin-top: 18px; }
  .wx-launch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 14px 0 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--gold);
    font: inherit;
    font-size: 13px;
    letter-spacing: 0.06em;
    white-space: nowrap;
    cursor: pointer;
  }
  .wx-launch:hover, .wx-launch:focus-visible, .wx-launch.is-on {
    border-color: rgba(212, 188, 138, 0.55);
    background: rgba(212, 188, 138, 0.16);
  }
  .wx-launch .btn-ico { width: 18px; height: 18px; }
  .wx-layer { right: 0; left: auto; }
  .wx-codes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 0 16px 16px;
  }
  .wx-codes img {
    display: block;
    width: min(200px, 100%);
    aspect-ratio: 1;
    object-fit: contain;
    padding: 8px;
    border-radius: 12px;
    background: #fff;
  }
  @media (max-width: 720px) {
    .agent-head { flex-wrap: wrap; }
    .cs-layer, .cs-layer.is-on {
      position: fixed;
      top: auto;
      right: 12px;
      left: 12px;
      bottom: 12px;
      width: auto;
    }
    .cs-panel { max-height: min(72vh, 560px); }
    .cs-desk { grid-template-columns: 1fr; }
  }
  .cs-queue-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0 0 16px;
  }
  .cs-queue-one {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .cs-queue-one .act { flex: none; margin-top: 4px; }
  .cs-queue-one .due-who { margin: 0 0 6px; }


/* ===================== 代理结算 · 全新设计 ===================== */
.settle { display: block; }
.settle-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.settle-head h2 { margin: 0; }

.s-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.s-kpi { border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; background: rgba(255,255,255,0.025); }
.s-kpi b { display: block; font-size: 26px; line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
.s-kpi span { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; }
.s-kpi.warn b { color: var(--gold); }
.s-kpi.good b { color: #7ac99a; }

.s-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }

.s-panel { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 16px; background: rgba(255,255,255,0.015); }
.s-panel-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.s-panel-h h3 { margin: 0; font-size: 15px; font-weight: 600; }
.s-panel-b { padding: 4px 0; }
.s-panel-b.pad { padding: 14px 18px; }
.s-note { color: var(--muted); font-size: 13px; }

.s-todo { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); text-decoration: none; }
.s-todo:last-child { border-bottom: 0; }
.s-todo:hover { background: rgba(255,255,255,0.02); }
.s-todo .go { margin-left: auto; color: var(--gold); font-size: 13px; white-space: nowrap; }
.s-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; }
.s-empty { margin: 0; padding: 18px; color: var(--muted); font-size: 14px; }

.s-facts { display: grid; gap: 8px; }
.s-facts p { margin: 0; font-size: 14px; }
.s-facts b { font-size: 15px; }

.s-table { width: 100%; border-collapse: collapse; }
.s-table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: 0.04em; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.s-table td { padding: 12px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 14px; }
.s-table tbody tr:last-child td { border-bottom: 0; }
.s-table tbody tr:hover { background: rgba(255,255,255,0.025); }
.s-table .sub { color: var(--muted); font-size: 12px; }
.s-table b.money { font-size: 15px; }

.s-muted { color: var(--muted); font-size: 12px; }
.s-tag { display: inline-block; padding: 1px 8px; border-radius: 20px; border: 1px solid var(--line); color: var(--gold); font-size: 11px; vertical-align: middle; }
.s-badge { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 12px; border: 1px solid var(--line); white-space: nowrap; }
.s-badge.warn { color: var(--gold); border-color: rgba(226,181,106,0.4); }
.s-badge.ok { color: #7ac99a; border-color: rgba(122,201,154,0.4); }
.s-badge.off { color: var(--muted); }

.s-row { border-bottom: 1px solid var(--line); }
.s-row:last-child { border-bottom: 0; }
.s-row > summary { list-style: none; display: grid; grid-template-columns: minmax(150px,1.5fr) minmax(90px,1fr) minmax(90px,0.9fr) minmax(90px,1fr) minmax(100px,1.1fr) auto; gap: 14px; align-items: center; padding: 13px 18px; cursor: pointer; }
.s-row > summary::-webkit-details-marker { display: none; }
.s-row > summary::after { content: "展开"; color: var(--muted); font-size: 12px; justify-self: end; }
.s-row[open] > summary::after { content: "收起"; }
.s-row-name { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.s-row-name b { font-size: 15px; }
.s-row-amt { font-weight: 700; font-size: 15px; }
.s-row-detail { padding: 16px 18px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.s-row-detail .s-facts { gap: 6px; }
.s-actions { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.s-actions form { margin: 0; display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.s-actions input[type="text"] { width: auto; min-width: 10rem; }
.s-actions select { width: auto; }
.s-sub { margin-left: 24px; }


/* 收款码缩略图 */
.s-qr-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,0.02); }
.s-qr-img { width: 96px; height: 96px; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.s-qr-img.sm { width: 52px; height: 52px; border-radius: 8px; }

/* 响应式：窄屏降级，避免堆叠错位 */
@media (max-width: 900px) {
  .s-kpis { grid-template-columns: repeat(2, 1fr); }
  .s-grid2 { grid-template-columns: 1fr; }
  .s-row > summary { grid-template-columns: 1fr 1fr; }
  .s-row > summary::after { grid-column: 1 / -1; justify-self: start; }
}



/* ---- 2026-11-24 typography & alignment pass ---- */
:root { --font-serif-ck: Palatino, "Palatino Linotype", "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", serif; }
h1, h2, h3, .brand-name, .gate-logo-name, .console-head h1, .wd-head h1 { font-family: var(--font-serif-ck); font-weight: 600; }
.stat-grid strong, .wd-table td.num, .card-price, .reel-price, .w-rows b, .wh-line b, .aw-num { font-variant-numeric: tabular-nums; }
.card-price { text-align: right; }
.wh-line span, .w-rows span { min-width: 4.5em; }
/* 后台统一宽度 */
.is-admin .wrap { max-width: 1480px; }
.is-admin .admin-main { min-width: 0; }
/* ===== 2026-11-24 storefront polish ===== */
/* 1) 封面固定比例，滚动不再跳动 */
.card-frame { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 14px; }
.card-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 2) 卡片信息四段式 + 悬停反馈 */
.card { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,0,0,.42); border-color: rgba(216,192,138,.35); }
.card-name { margin-top: 10px; }
.card-summary { margin-top: 4px; }
.card-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 10px; }
.card-price { text-align: right; margin-left: auto; white-space: nowrap; }
.card-go { opacity: .55; transition: opacity .18s ease, transform .18s ease; }
.card:hover .card-go { opacity: 1; transform: translateX(2px); }

/* 3) 手机端横排卡 */
@media (max-width: 640px) {
  .shelf { grid-template-columns: 1fr !important; }
  .card {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    grid-template-areas: "img name" "img summary" "img stats" "img foot";
    column-gap: 12px; row-gap: 2px; align-items: start;
  }
  .card-frame { grid-area: img; aspect-ratio: 1 / 1; border-radius: 10px; }
  .card-name { grid-area: name; margin-top: 0; }
  .card-summary { grid-area: summary; }
  .card-stats { grid-area: stats; }
  .card-foot { grid-area: foot; margin-top: 6px; }
}


/* ===== 对比功能 ===== */
.cmp-tag { position: absolute; top: 10px; right: 10px; z-index: 3; padding: 3px 9px; border-radius: 999px;
  font-size: 11.5px; color: #d8c08a; background: rgba(10,10,12,.72); border: 1px solid rgba(216,192,138,.45);
  cursor: pointer; user-select: none; backdrop-filter: blur(4px); }
.cmp-tag:hover { background: rgba(216,192,138,.18); }
.cmp-tag.is-on { background: var(--gold, #d8c08a); color: #14110b; border-color: var(--gold, #d8c08a); }
.card { position: relative; }
.cmp-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 22px; z-index: 60;
  display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 999px;
  background: rgba(18,18,21,.94); border: 1px solid rgba(216,192,138,.4); box-shadow: 0 14px 40px rgba(0,0,0,.5); }
.cmp-bar-n { font-size: 13px; color: var(--muted, #9aa0aa); }
.cmp-clear { background: none; border: 0; color: var(--muted, #9aa0aa); cursor: pointer; font-size: 13px; }
.cmp-clear:hover { color: #e08a8a; }
.cmp-scroll { overflow-x: auto; margin-top: 16px; }
.cmp-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.cmp-table th, .cmp-table td { padding: 11px 14px; border-bottom: 1px solid var(--line, #26262b); text-align: left; vertical-align: top; }
.cmp-table thead th { font-size: 14px; color: #f2e9d8; font-weight: 600; }
.cmp-table tbody td:first-child { color: var(--muted, #9aa0aa); width: 110px; white-space: nowrap; }
.cmp-table td.num { font-variant-numeric: tabular-nums; }
.cmp-sum { max-width: 260px; line-height: 1.6; font-size: 13px; }


/* ===== 首屏信任条 ===== */
.trust-strip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 18px 0 4px; padding: 10px 16px; width: fit-content; max-width: 100%;
  border: 1px solid rgba(216,192,138,.28); border-radius: 999px;
  background: linear-gradient(180deg, rgba(28,28,32,.72), rgba(18,18,22,.72));
  font-size: 13px; color: var(--muted, #9aa0aa); text-decoration: none;
  transition: border-color .18s ease, transform .18s ease; }
.trust-strip:hover { border-color: rgba(216,192,138,.6); transform: translateY(-1px); }
.ts-live { display: inline-flex; align-items: center; gap: 7px; color: #7dcaa5; font-weight: 600; }
.ts-live i { width: 7px; height: 7px; border-radius: 50%; background: #7dcaa5; box-shadow: 0 0 0 0 rgba(125,202,165,.6); animation: tsPulse 2.4s infinite; }
@keyframes tsPulse { 0% { box-shadow: 0 0 0 0 rgba(125,202,165,.55); } 70% { box-shadow: 0 0 0 7px rgba(125,202,165,0); } 100% { box-shadow: 0 0 0 0 rgba(125,202,165,0); } }
.ts-item b { color: #f2e9d8; font-variant-numeric: tabular-nums; font-weight: 600; }
.ts-dot { opacity: .45; }
.ts-more { margin-left: 6px; color: var(--gold, #d8c08a); }
@media (max-width: 640px) {
  .trust-strip { font-size: 12px; gap: 8px; padding: 9px 12px; }
  .ts-dot { display: none; }
  .ts-more { margin-left: 0; }
}


/* ===== 信任条 v2：整行细条 ===== */
.trust-strip { display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 26px 0 0; padding: 13px 4px; width: 100%; max-width: none;
  border: 0; border-top: 1px solid rgba(216,192,138,.22); border-bottom: 1px solid rgba(216,192,138,.22);
  border-radius: 0; background: linear-gradient(90deg, rgba(216,192,138,.06), rgba(216,192,138,0) 60%);
  font-size: 13.5px; color: var(--muted, #9aa0aa); text-decoration: none; }
.trust-strip:hover { border-color: rgba(216,192,138,.45); transform: none; }
.ts-live { display: inline-flex; align-items: center; gap: 7px; color: #7dcaa5; font-weight: 600; }
.ts-live i { width: 7px; height: 7px; border-radius: 50%; background: #7dcaa5; animation: tsPulse 2.4s infinite; }
@keyframes tsPulse { 0% { box-shadow: 0 0 0 0 rgba(125,202,165,.55); } 70% { box-shadow: 0 0 0 7px rgba(125,202,165,0); } 100% { box-shadow: 0 0 0 0 rgba(125,202,165,0); } }
.ts-item b { color: #f2e9d8; font-variant-numeric: tabular-nums; font-weight: 600; }
.ts-dot { opacity: .4; }
.ts-more { margin-left: auto; color: var(--gold, #d8c08a); white-space: nowrap; }

/* hero 里的 163 数字块 */
.hero-count { display: flex; align-items: baseline; gap: 10px; margin: 10px 0 0; }
.hero-count strong { font-size: 26px; color: var(--gold, #d8c08a); font-variant-numeric: tabular-nums; }
.hero-count span { color: var(--muted, #9aa0aa); font-size: 13px; }
.hero-count em { color: var(--muted, #9aa0aa); font-size: 12px; font-style: normal; opacity: .8; }

@media (max-width: 640px) {
  .trust-strip { font-size: 12.5px; gap: 8px; padding: 11px 0; }
  .ts-dot { display: none; }
  .ts-more { margin-left: auto; }
}

/* 信任条与数字块对齐页面容器 */
.trust-strip { max-width: 1180px; margin: 24px auto 0; padding: 13px 28px; }
.hero-count { max-width: 1180px; margin: 12px auto 0; padding: 0 28px; }
@media (max-width: 900px) {
  .trust-strip, .hero-count { padding-left: 20px; padding-right: 20px; }
}


/* ===== 首屏信息带 v3 ===== */
.trust-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px;
  margin: 30px 0 6px; padding: 18px 0; border-top: 1px solid rgba(216,192,138,.16);
  border-bottom: 1px solid rgba(216,192,138,.16); }
.tb-live { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; text-decoration: none; color: var(--muted, #9aa0aa); }
.tb-dot { width: 8px; height: 8px; border-radius: 50%; background: #7dcaa5; animation: tsPulse 2.4s infinite; flex: none; }
.tb-title { color: #7dcaa5; font-weight: 600; letter-spacing: .02em; }
.tb-kv { font-size: 13.5px; display: inline-flex; align-items: baseline; gap: 6px; }
.tb-kv b { color: #f2e9d8; font-size: 15px; font-variant-numeric: tabular-nums; }
.tb-kv i { font-style: normal; font-size: 12.5px; opacity: .75; }
.tb-sep { width: 1px; height: 14px; background: rgba(255,255,255,.12); }
.tb-go { margin-left: 8px; color: var(--gold, #d8c08a); font-size: 13px; white-space: nowrap; }
.tb-live:hover .tb-go { text-decoration: underline; }
.tb-count { display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.tb-count b { font-size: 30px; color: var(--gold, #d8c08a); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.tb-count i { font-style: normal; font-size: 13px; color: var(--muted, #9aa0aa); }

/* 会员区：正文不要压到价格卡 */
.member-panel { gap: 36px; }
.member-panel > div:first-child { max-width: calc(100% - 420px); }
.member-panel p.lead, .member-panel p { max-width: 640px; }

@media (max-width: 1080px) {
  .trust-band { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .tb-count { justify-self: start; }
  .member-panel > div:first-child { max-width: 100%; }
}
@media (max-width: 640px) {
  .tb-live { gap: 10px; }
  .tb-sep { display: none; }
  .tb-count b { font-size: 24px; }
}

/* ===== 回退与再平衡 ===== */
/* 会员区：恢复两栏，正文不再被压窄 */
.member-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; }
.member-panel > div:first-child { max-width: none; }
.member-panel p, .member-panel p.lead { max-width: none; }
.member-panel h2, .member-panel strong { text-wrap: balance; }

/* 实盘卡片：标签回到左对齐，不再硬撑宽度 */
.wh-line span, .w-rows span { min-width: 0; }
.wh-line { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.wh-line span { color: var(--muted, #9aa0aa); }
.wh-line b { text-align: right; }

/* 6 张卡排成 3 + 3，避免 4 + 2 的孤儿行 */
.wh-grid, .wh-cards, .wh-wrap .wh-list { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }

@media (max-width: 1080px) {
  .member-panel { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .wh-grid, .wh-cards, .wh-wrap .wh-list { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 640px) {
  .wh-grid, .wh-cards, .wh-wrap .wh-list { grid-template-columns: 1fr !important; }
}

/* ===== 会员区最终版：左文右卡，垂直居中，不重叠 ===== */
section#member.member-panel,
section.member-panel#member {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between;
  gap: 56px;
  flex-wrap: wrap;
}
section#member.member-panel > div:first-child {
  flex: 1 1 520px;
  min-width: 0;
  max-width: none !important;
}
section#member.member-panel > div:first-child p,
section#member.member-panel > div:first-child p.lead {
  max-width: 620px !important;
  line-height: 1.85;
}
section#member.member-panel > *:not(:first-child) {
  flex: 0 0 auto;
  display: flex;
  gap: 18px;
}
@media (max-width: 1080px) {
  section#member.member-panel { gap: 24px; }
  section#member.member-panel > div:first-child { flex: 1 1 100%; }
}


/* ===== 实盘卡片 v4（按设计稿） ===== */
.wh-head .wh-chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 12px;
  border: 1px solid var(--line, #26262b); border-radius: 999px; font-size: 12.5px; color: var(--muted, #9aa0aa); }
.wh-head .wh-chip b { color: #f2eee6; font-variant-numeric: tabular-nums; }

.wh-card { display: flex !important; flex-direction: column; gap: 12px !important; padding: 18px !important;
  border-radius: 16px !important; }
.wh-eq { display: flex; align-items: baseline; gap: 8px; }
.wh-eq-v { font-size: 25px; font-weight: 600; color: #f2eee6; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.wh-eq-c { font-size: 11.5px; color: var(--muted, #9aa0aa); letter-spacing: .04em; }
.wh-card .wh-line { display: none; }
.wh-card .wh-line.is-minor { display: flex; }
.wh-card .wh-minor-wrap { display: none; }
.wh-card { row-gap: 6px; }
.wh-card .wh-line.is-minor { font-size: 12.5px; }
.wh-card .wh-line.is-minor b { font-weight: 500; }
.wh-spark { height: 38px !important; margin-top: 2px; }

/* 两行小字并排 */
.wh-card { display: grid !important; grid-template-columns: 1fr 1fr; align-items: center; }
.wh-card > .wh-head, .wh-card > .wh-eq, .wh-card > .wh-spark { grid-column: 1 / -1; }
.wh-card > .wh-line.is-minor { grid-column: auto; }

/* ===== 会员区 v2 ===== */
section#member.member-panel { display: grid !important; grid-template-columns: minmax(0,1fr) auto !important;
  align-items: center !important; gap: 40px !important; padding: 34px 38px !important;
  border: 1px solid var(--line, #26262b) !important; border-radius: 20px !important;
  background: radial-gradient(120% 140% at 12% 0%, rgba(216,192,138,.10), rgba(19,19,22,.92) 55%) !important; }
section#member.member-panel h2 { font-size: 27px !important; margin: 8px 0 14px !important; letter-spacing: -.01em; }
.member-perks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.member-perks li { font-size: 13.5px; color: var(--muted, #9aa0aa); display: flex; gap: 9px; align-items: flex-start; }
.member-perks li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold, #d8c08a); margin-top: 8px; flex: none; }
section#member .member-plans { display: flex; gap: 14px; }
section#member .member-plan { width: 170px; text-align: center; padding: 16px; border-radius: 14px;
  border: 1px solid var(--line, #26262b); background: rgba(0,0,0,.28); }
section#member .member-plan:nth-child(2) { border-color: rgba(216,192,138,.5); background: rgba(216,192,138,.07); }
@media (max-width: 1080px) {
  section#member.member-panel { grid-template-columns: minmax(0,1fr) !important; gap: 24px !important; }
  .wh-card { grid-template-columns: 1fr !important; }
  .wh-card > .wh-line.is-minor { grid-column: 1 / -1; }
}

/* ===== 实盘观摩：整体收小 ===== */
.wh-wrap { margin: 34px 0 30px !important; }
.wh-head { margin-bottom: 10px !important; }
.wh-head h2 { font-size: 18px !important; }
.wh-head .wh-chip { padding: 3px 9px !important; font-size: 11.5px !important; }
.wh-grid { gap: 10px !important; }
.wh-card { padding: 12px 14px !important; border-radius: 12px !important; gap: 8px !important; row-gap: 4px !important; }
.wh-eq-v { font-size: 18px !important; }
.wh-eq-c { font-size: 10.5px !important; }
.wh-card .wh-line.is-minor { font-size: 11.5px !important; }
.wh-spark { height: 26px !important; }
@media (max-width: 1080px) {
  .wh-eq-v { font-size: 17px !important; }
}

/* ===== 实盘观摩 v5：一行 6 张，精致紧凑 ===== */
.wh-wrap { margin: 26px 0 26px !important; }
.wh-head { display: flex !important; align-items: center !important; justify-content: space-between; margin-bottom: 8px !important; }
.wh-head h2 { font-size: 15px !important; font-weight: 600 !important; letter-spacing: .02em; }
.wh-head .wh-chip { display: none !important; }
.wh-grid { display: grid !important; grid-template-columns: repeat(6, minmax(0, 1fr)) !important; gap: 8px !important; }

.wh-card {
  display: flex !important; flex-direction: column !important; gap: 6px !important;
  padding: 10px 12px 8px !important; border-radius: 10px !important;
  border: 1px solid rgba(255,255,255,.07) !important;
  background: rgba(255,255,255,.015) !important;
}
.wh-card:hover { border-color: rgba(216,192,138,.28) !important; background: rgba(216,192,138,.03) !important; }
.wh-card > .wh-line.is-minor { display: none !important; }
.wh-eq { display: flex !important; align-items: baseline; gap: 5px; }
.wh-eq-v { font-size: 15px !important; font-weight: 600 !important; letter-spacing: -.01em; }
.wh-eq-c { font-size: 9.5px !important; opacity: .55; letter-spacing: .06em; }
.wh-spark { height: 18px !important; opacity: .55 !important; margin-top: 2px; }
.wh-card .wh-name, .wh-card h3, .wh-card .wh-title { font-size: 12px !important; }

@media (max-width: 1200px) {
  .wh-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .wh-card > .wh-line.is-minor { display: flex !important; }
  .wh-eq-v { font-size: 17px !important; }
}
@media (max-width: 700px) {
  .wh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* ===== 实盘观摩 v6：3 列、信息齐全、曲线清晰 ===== */
.wh-wrap { margin: 34px 0 30px !important; }
.wh-head h2 { font-size: 18px !important; }
.wh-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 12px !important; }

.wh-card {
  display: flex !important; flex-direction: column !important; gap: 8px !important;
  padding: 14px 16px 12px !important; border-radius: 12px !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  background: rgba(255,255,255,.018) !important;
}
.wh-card > .wh-line.is-minor { display: flex !important; font-size: 12px !important; }
.wh-card > .wh-line.is-minor span { color: var(--muted, #9aa0aa) !important; }
.wh-card > .wh-line.is-minor b { font-weight: 500 !important; }

.wh-eq { display: flex !important; align-items: baseline; gap: 6px; }
.wh-eq-v { font-size: 20px !important; font-weight: 600 !important; letter-spacing: -.01em; }
.wh-eq-c { font-size: 10.5px !important; opacity: .5; letter-spacing: .05em; }
.wh-spark { height: 34px !important; opacity: .9 !important; margin-top: 0; }

@media (max-width: 1000px) {
  .wh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 640px) {
  .wh-grid { grid-template-columns: 1fr !important; }
}

/* ===== 实盘卡片 v7：4 列 × 最多 2 行，行式排版 ===== */
.wh-wrap { margin: 34px 0 28px !important; }
.wh-head { margin-bottom: 10px !important; }
.wh-head h2 { font-size: 18px !important; }
.wh-head .wh-chip { display: none !important; }
.wh-grid { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 12px !important; }
.wh-card {
  display: flex !important; flex-direction: column !important; gap: 6px !important;
  padding: 13px 15px 10px !important; border-radius: 12px !important;
  border: 1px solid rgba(255,255,255,.08) !important; background: rgba(255,255,255,.018) !important;
}
.wh-card > .wh-line { display: flex !important; font-size: 12.5px !important; }
.wh-card > .wh-line span { color: var(--muted, #9aa0aa) !important; }
.wh-card > .wh-line b { font-weight: 600 !important; }
.wh-card > .wh-line.is-minor { display: flex !important; }
.wh-spark { height: 30px !important; opacity: .9 !important; margin-top: 2px; }
@media (max-width: 1100px) { .wh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 640px) { .wh-grid { grid-template-columns: 1fr !important; } }

/* ===== 实盘卡片 v8：5 列 + 精修 ===== */
.wh-wrap { margin: 36px 0 30px !important; }
.wh-head h2 { font-size: 18px !important; letter-spacing: .01em; }
.wh-grid { display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)) !important; gap: 12px !important; }

.wh-card {
  position: relative; overflow: hidden;
  display: flex !important; flex-direction: column !important; gap: 7px !important;
  padding: 14px 15px 11px !important; border-radius: 14px !important;
  border: 1px solid rgba(255,255,255,.07) !important;
  background: linear-gradient(180deg, rgba(255,255,255,.038), rgba(255,255,255,.012)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.wh-card::before {
  content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216,192,138,.55), transparent);
  opacity: 0; transition: opacity .2s ease;
}
.wh-card:hover { transform: translateY(-2px); border-color: rgba(216,192,138,.26) !important;
  box-shadow: 0 10px 26px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.06); }
.wh-card:hover::before { opacity: 1; }

/* 标题行 */
.wh-card > *:first-child { display: flex !important; align-items: center; gap: 6px;
  font-size: 13px !important; font-weight: 600 !important; color: #f2eee6 !important; letter-spacing: .01em; }
.wh-card > *:first-child::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: #7dcaa5; box-shadow: 0 0 0 2px rgba(125,202,165,.12); flex: none;
}

/* 明细行 */
.wh-card > .wh-line { display: flex !important; justify-content: space-between; align-items: baseline;
  font-size: 12px !important; gap: 8px; }
.wh-card > .wh-line span { color: rgba(143,150,163,.9) !important; }
.wh-card > .wh-line b { font-variant-numeric: tabular-nums; font-weight: 600 !important; }

/* 曲线 */
.wh-spark { height: 30px !important; opacity: .85 !important; margin-top: 3px;
  filter: drop-shadow(0 2px 6px rgba(216,192,138,.12)); }

@media (max-width: 1200px) { .wh-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (max-width: 760px) { .wh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }

/* ===== 会员价格卡：可点击反馈 ===== */
section#member .member-plan { cursor: pointer; position: relative; z-index: 2;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease; }
section#member .member-plan:hover { transform: translateY(-2px); border-color: rgba(216,192,138,.55);
  box-shadow: 0 12px 28px rgba(0,0,0,.35); }
section#member .member-plan:active { transform: translateY(0) scale(.985); }
section#member .member-plan strong { transition: color .16s ease; }
section#member .member-plan:hover strong { color: #f0d9a4; }
section#member .member-plan em { display: inline-block; margin-top: 8px; padding: 6px 14px;
  border: 1px solid rgba(216,192,138,.45); border-radius: 999px; font-style: normal;
  color: var(--gold, #d8c08a); font-size: 12.5px; transition: background .16s ease, color .16s ease; }
section#member .member-plan:hover em { background: var(--gold, #d8c08a); color: #14110b; }
section#member .member-plan:nth-child(2) em { background: var(--gold, #d8c08a); color: #14110b; font-weight: 600; }
section#member .member-plan:nth-child(2):hover em { filter: brightness(1.08); }
section#member .member-plan:focus-visible { outline: 2px solid rgba(216,192,138,.6); outline-offset: 3px; }

/* ===== 会员区排版精修 ===== */
section#member.member-panel { padding: 38px 44px !important; position: relative; overflow: hidden; }
section#member.member-panel::after {
  content: "MEMBER"; position: absolute; right: 28px; bottom: -18px;
  font-size: 96px; font-weight: 700; letter-spacing: .04em; color: rgba(255,255,255,.018);
  pointer-events: none; user-select: none;
}
section#member .section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; letter-spacing: .22em; color: var(--gold, #d8c08a); text-transform: uppercase;
}
section#member .section-label::before { content: ""; width: 18px; height: 1px; background: rgba(216,192,138,.6); }

section#member h2 { font-size: 30px !important; line-height: 1.3 !important; margin: 14px 0 20px !important;
  letter-spacing: -.015em; font-weight: 600; }
section#member h2 .member-hl {
  font-style: normal; color: var(--gold, #d8c08a);
  background: linear-gradient(180deg, #f0dcae, #c9ab72);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* 权益清单：编号 + 细分隔线 */
.member-perks { counter-reset: perk; gap: 0 !important; }
.member-perks li {
  counter-increment: perk; display: grid !important; grid-template-columns: 26px minmax(0,1fr);
  gap: 10px; align-items: baseline; padding: 11px 0; font-size: 13.5px !important;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.member-perks li:last-child { border-bottom: 0; }
.member-perks li::before {
  content: counter(perk, decimal-leading-zero) !important;
  width: auto !important; height: auto !important; border-radius: 0 !important; margin: 0 !important;
  background: none !important; color: rgba(216,192,138,.75); font-size: 11px;
  font-family: ui-monospace, Consolas, monospace; letter-spacing: .06em;
}

/* 价格卡：加分隔线与说明 */
section#member .member-plans { position: relative; padding-left: 34px; }
section#member .member-plans::before {
  content: ""; position: absolute; left: 0; top: 12%; bottom: 12%; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.10), transparent);
}
section#member .member-plan { width: 176px; padding: 18px 16px 16px; }
section#member .member-plan > span:first-child { font-size: 11.5px; letter-spacing: .08em; color: rgba(143,150,163,.9); }
section#member .member-plan strong { font-size: 34px; letter-spacing: -.02em; margin: 6px 0 14px; display: block; }
section#member .member-plan strong::before { content: "¥"; font-size: 16px; vertical-align: super; margin-right: 1px; opacity: .85; }

/* ===== 会员区：金色减淡、去掉编号与分割线 ===== */
section#member h2 .member-hl {
  background: none !important; -webkit-text-fill-color: currentColor !important;
  color: #dcc79a !important; font-weight: 500 !important;
}
section#member h2 { font-weight: 500 !important; color: #efe9dd; }

.member-perks { counter-reset: none !important; gap: 9px !important; }
.member-perks li {
  display: flex !important; align-items: flex-start; grid-template-columns: none !important;
  padding: 0 !important; border-bottom: 0 !important; font-size: 13.5px !important;
  color: rgba(160,167,178,.95) !important;
}
.member-perks li::before {
  content: "" !important; width: 4px !important; height: 4px !important; border-radius: 50% !important;
  background: rgba(216,192,138,.55) !important; margin: 8px 9px 0 0 !important; flex: none;
  font-size: 0 !important; letter-spacing: 0 !important;
}
section#member .member-plans { padding-left: 0 !important; }
section#member .member-plans::before { display: none !important; }

/* ===== 会员标题：一行、左对齐 ===== */
section#member .member-panel > div,
section#member > div { text-align: left !important; }
section#member h2 {
  font-size: 25px !important; line-height: 1.25 !important;
  margin: 12px 0 18px !important; white-space: nowrap; letter-spacing: -.01em;
}
section#member h2 .member-hl { color: #d9c497 !important; font-weight: 500 !important; }
section#member .section-label { justify-content: flex-start; }
@media (max-width: 1200px) {
  section#member h2 { white-space: normal; font-size: 22px !important; }
}

/* 强制标题内 em 与正文同规格，避免换行/缩小 */
section#member h2 { display: block !important; white-space: nowrap !important; }
section#member h2 .member-hl {
  display: inline !important; font-size: 1em !important; line-height: inherit !important;
  font-weight: 500 !important; letter-spacing: inherit !important;
  background: none !important; -webkit-text-fill-color: currentColor !important; color: #d9c497 !important;
  vertical-align: baseline !important;
}

/* 会员区：去掉「— 会员」小标题 */
section#member .section-label { display: none !important; }
section#member h2 { margin-top: 0 !important; }

/* 顺序调换后：实盘区与热门策略之间留出节奏 */
.wh-wrap { margin: 34px 0 40px !important; }
.hot { margin-top: 8px !important; }
.hot .section-label { margin-top: 0 !important; }

/* 「全部策略」计数 */
.shelf-count { display: inline-flex; align-items: baseline; gap: 5px; margin-left: 10px;
  font-size: 12.5px; color: rgba(143,150,163,.85); }
.shelf-count b { font-size: 15px; color: var(--gold, #d8c08a); font-variant-numeric: tabular-nums; font-weight: 600; }

/* 合并统计行：隐藏实盘区重复的一行，保留顶部信息带格式 */
.wh-head > p, .wh-head > p.lead { display: none !important; }
.wh-head { display: flex !important; align-items: baseline; justify-content: space-between; margin-bottom: 12px !important; }
.wh-head h2 { margin: 0 !important; }

/* 实盘区重复统计行（.wh-stats）隐藏，只保留顶部信息带 */
.wh-stats { display: none !important; }

/* 隐藏实盘区重复统计行 */
.wh-stats { display: none !important; }
.wh-head { margin-bottom: 12px !important; }

/* 合并：去掉顶部独立条，统计并入「实盘观摩」标题行 */
.trust-band { display: none !important; }
.wh-head { display: flex !important; align-items: baseline !important; gap: 16px !important;
  flex-wrap: wrap; margin: 6px 0 14px !important; }
.wh-head h2 { display: inline-flex !important; align-items: center; gap: 8px;
  font-size: 18px !important; margin: 0 !important; }
.wh-head h2::before { content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: #7dcaa5; box-shadow: 0 0 0 3px rgba(125,202,165,.14); flex: none; }
.wh-stats { display: flex !important; flex-wrap: wrap; gap: 14px; font-size: 13px;
  color: rgba(143,150,163,.92); }
.wh-stats span { display: inline-flex; gap: 5px; align-items: baseline; }
.wh-stats span + span::before { content: "·"; margin-right: 8px; opacity: .5; }
.wh-stats span:last-child { display: none !important; }
.wh-stats b { color: #f2eee6; font-variant-numeric: tabular-nums; font-weight: 600; }
.wh-more { margin-left: auto; font-size: 13px; }
.wh-head { display: flex !important; align-items: baseline !important; gap: 16px !important; flex-wrap: wrap; margin: 6px 0 14px !important; }
.wh-head h2 { font-size: 18px !important; margin: 0 !important; display: inline-flex; align-items: center; gap: 8px; }
.wh-head h2::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #7dcaa5; box-shadow: 0 0 0 3px rgba(125,202,165,.14); flex: none; }
.wh-head .wh-stats { display: flex !important; gap: 14px; font-size: 13px; color: rgba(143,150,163,.92); }
.wh-head .wh-stats b { color: #f2eee6; font-variant-numeric: tabular-nums; font-weight: 600; }
.wh-head .wh-more { margin-left: auto; }

/* 实盘区头部：绿色状态 + 细分隔线（一行式信息带） */
.wh-head {
  display: flex !important; align-items: center !important; gap: 14px !important; flex-wrap: wrap;
  margin: 30px 0 16px !important; padding: 14px 0 !important;
  border-top: 1px solid rgba(216,192,138,.16); border-bottom: 1px solid rgba(216,192,138,.16);
}
.wh-head h2 { display: none !important; }
.wh-head::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: #7dcaa5;
  box-shadow: 0 0 0 3px rgba(125,202,165,.14); flex: none;
}
.wh-head::after {
  content: "实盘运行中"; color: #7dcaa5; font-size: 14px; font-weight: 600;
  letter-spacing: .01em; order: 0; margin-right: 2px;
}
.wh-head .wh-stats { order: 1; display: flex !important; align-items: center; gap: 0; font-size: 13.5px;
  color: rgba(143,150,163,.95); }
.wh-head .wh-stats span { display: inline-flex; gap: 6px; align-items: baseline; padding: 0 14px;
  border-left: 1px solid rgba(255,255,255,.10); }
.wh-head .wh-stats span:first-child { border-left: 0; padding-left: 2px; }
.wh-head .wh-stats b { color: #f2eee6; font-variant-numeric: tabular-nums; font-weight: 600; }
.wh-head .wh-more { order: 2; margin-left: auto; font-size: 13px; color: var(--gold, #d8c08a); }
.wh-head .wh-stats b.wh-up, .wh-stats b.wh-up { color: #7dcaa5 !important; }
.wh-head .wh-stats b.wh-down, .wh-stats b.wh-down { color: #e08a8a !important; }
.wh-card .wh-line b.wh-up { color: #7dcaa5 !important; }
.wh-card .wh-line b.wh-down { color: #e08a8a !important; }

/* 账户名前的重复绿点：只保留模板自带的那一个 */
.wh-card > *:first-child::before { content: none !important; }
.wh-card > *:first-child { padding-left: 0 !important; }
.w-rows span, .wh-line span { white-space: nowrap; }
.w-foot .w-on { color: #7dcaa5; }
.w-foot .w-off { color: #e08a8a; }
.w-foot .w-on { color: #7dcaa5 !important; }
.w-foot .w-off { color: #e08a8a !important; }
/* 分页条不要被底部对比条盖住 */
.pager { position: relative; z-index: 5; margin-bottom: 88px !important; }
.cmp-bar { bottom: 14px !important; padding: 8px 14px !important; }
/* 163+ 精品策略：居中、稍大 */
#shelf + .shelf-count, .shelf-count {
  display: block !important; text-align: center !important; margin: 18px 0 20px !important;
  font-size: 14px !important; color: rgba(143,150,163,.9) !important; letter-spacing: .01em;
}
.shelf-count b { font-size: 26px !important; color: var(--gold, #d8c08a) !important;
  font-variant-numeric: tabular-nums; font-weight: 600; margin-right: 4px; vertical-align: -2px; }
.shelf-count span { font-size: 13.5px; }
/* 策略库页头 */
.intro.intro-shelf { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.intro-shelf .intro-copy { max-width: 640px; }
.intro-shelf h1 { font-size: 40px; letter-spacing: -.02em; margin: 8px 0 10px; }
.intro-shelf .lead { color: rgba(160,167,178,.95); line-height: 1.75; font-size: 14px; }
.intro-back { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: 999px;
  border: 1px solid rgba(216,192,138,.35); color: var(--gold, #d8c08a); font-size: 13px; text-decoration: none;
  transition: background .16s ease, border-color .16s ease; }
.intro-back:hover { background: rgba(216,192,138,.12); border-color: rgba(216,192,138,.6); }
@media (max-width: 700px) { .intro-shelf h1 { font-size: 30px; } .intro-back { width: 100%; justify-content: center; } }

/* 观摩卡：三列 + 行距 */
.w-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
@media (max-width: 1100px) { .w-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 640px) { .w-grid { grid-template-columns: 1fr !important; } }
/* 观摩页卡片：三列均分 */
.watch-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 14px !important; }
@media (max-width: 1100px) { .watch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 640px) { .watch-grid { grid-template-columns: 1fr !important; } }

.qr-thumb { display:inline-block; margin-right:8px; vertical-align:middle; }
.qr-thumb img { width:56px; height:56px; object-fit:cover; border-radius:6px;
  border:1px solid rgba(216,192,138,.35); }
.qr-thumb:hover img { border-color: rgba(216,192,138,.7); }
.pager-label { margin-right: 10px; font-size: 12.5px; color: var(--muted, #9aa0aa);
  align-self: center; letter-spacing: .04em; }
.pager + .pager { margin-top: 10px; }
/* 对比按钮：图标化，悬停才出现 */
.cmp-tag { width: 24px; height: 24px; padding: 0 !important; display: flex; align-items: center;
  justify-content: center; font-size: 15px !important; line-height: 1; border-radius: 50%;
  opacity: 0; transition: opacity .16s ease, background .16s ease; }
.card:hover .cmp-tag, .cmp-tag.is-on { opacity: 1; }
.cmp-tag.is-on { background: var(--gold, #d8c08a) !important; color: #14110b !important; }
/* 持仓表：隔行底色 + 行高统一，避免上下串 */
.wd-table tbody tr:nth-child(odd) { background: rgba(255,255,255,.015); }
.wd-table tbody tr:hover { background: rgba(216,192,138,.06); }
.wd-table td { height: 40px; vertical-align: middle; }
.wd-table td.num { font-variant-numeric: tabular-nums; }
/* ===== 后台手机适配 ===== */
@media (max-width: 820px) {
  .admin-layout { display: block !important; grid-template-columns: none !important; gap: 12px !important; }
  .admin-side {
    position: static !important; display: flex !important; flex-wrap: wrap; gap: 6px !important;
    top: auto !important; margin-bottom: 14px;
  }
  .admin-side a, .admin-side button {
    padding: 7px 12px !important; font-size: 12.5px !important; border-radius: 999px;
    border: 1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.02);
  }
  .admin-main { width: 100% !important; min-width: 0 !important; }
  .admin-main h1 { font-size: 22px !important; }
  .console-head { margin-bottom: 10px !important; }
  /* 表格横向滚动，不挤压 */
  .aw-table, .admin-main table, .wd-table { display: block; overflow-x: auto; white-space: nowrap; }
  .admin-main .stat-grid, .admin-main .stat-grid.wide { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
  .admin-main .sheet-card { padding: 12px !important; }
  .admin-main .act, .admin-main .buy-btn { font-size: 12px !important; padding: 6px 10px !important; }
  .admin-main .good { padding: 12px !important; }
}
@media (max-width: 520px) {
  .admin-main .stat-grid, .admin-main .stat-grid.wide { grid-template-columns: 1fr !important; }
  .wrap { padding: 0 14px !important; }
}
/* 手机端：侧边栏改抽屉，默认收起；主内容占满 */
@media (max-width: 820px) {
  body.is-admin .admin-side {
    position: fixed !important; top: 0; bottom: 0; left: 0; width: min(78vw, 300px);
    background: #14141a; z-index: 70; overflow-y: auto; padding: 16px 14px;
    transform: translateX(-102%); transition: transform .22s ease;
    display: flex !important; flex-direction: column; gap: 4px;
  }
  body.is-admin .admin-main { padding-top: 44px; }
  .admin-layout { display: block !important; }
  .ux-nav-btn { display: flex !important; }
  .admin-main .console-head { padding-top: 0; }
}
/* 手机：KPI 保持两列，菜单按钮浮在内容之上 */
@media (max-width: 820px) {
  .admin-main .stat-grid, .admin-main .stat-grid.wide {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important;
  }
  .admin-main .stat-grid strong { font-size: 20px !important; }
  .ux-nav-btn {
    display: flex !important; position: fixed; top: 8px; left: 8px; z-index: 90;
    padding: 6px 12px !important; font-size: 12.5px !important; border-radius: 999px;
    background: rgba(20,20,26,.94) !important; border: 1px solid rgba(216,192,138,.4) !important;
    color: #d8c08a !important;
  }
  .admin-main { padding-top: 52px !important; }
}
/* 手机：菜单打开时抽屉必须能滑出来（覆盖 _admin_ux 的 transform:none） */
@media (max-width: 820px) {
  body.ux-nav-open .admin-side { transform: none !important; z-index: 95 !important; }
  body.ux-nav-open .ux-backdrop { display: block !important; position: fixed; inset: 0;
    background: rgba(0,0,0,.6); z-index: 85; }
  body.ux-nav-open { overflow: hidden; }
  .admin-side a { white-space: nowrap; }
}
/* ===== 代理结算：层次与间距 ===== */
#settle .sheet-card { margin: 0 0 16px; }
#settle h3 {
  position: relative; padding-left: 12px; margin: 4px 0 12px;
  font-size: 15.5px; letter-spacing: .02em;
}
#settle h3::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px;
  border-radius: 2px; background: linear-gradient(180deg, #d8c08a, rgba(216,192,138,.25));
}
.settle-overview {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px;
}
.settle-overview span {
  padding: 7px 12px; border-radius: 999px; font-size: 12.5px;
  border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.02);
  color: #9aa0aa;
}
.settle-overview b { color: #d8c08a; font-weight: 600; margin-left: 4px; }
#settle .split-preview { gap: 12px; }
#settle .split-preview article {
  padding: 14px 16px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.015);
}
#settle .split-preview b { display: block; margin-bottom: 8px; font-size: 13.5px; }
#settle .split-preview p { margin: 3px 0; font-size: 12.5px; color: #9aa0aa; }
@media (max-width: 820px) {
  #settle .split-preview { grid-template-columns: 1fr !important; }
  .settle-overview span { font-size: 12px; padding: 6px 10px; }
}
/* 手机抽屉：可滑动 + 隐藏旧的浮动「菜单」按钮 */
@media (max-width: 820px) {
  .ux-nav-btn { display: none !important; }
  body.ux-nav-open { overflow: hidden; }
  body.ux-nav-open .admin-side {
    overflow-y: auto !important; -webkit-overflow-scrolling: touch;
    max-height: 100vh; padding: 18px 14px 96px !important; overscroll-behavior: contain;
  }
  body.ux-nav-open .admin-side * { touch-action: pan-y; }
}
#settle .settle-empty {
  margin: 6px 0 14px; padding: 10px 14px; border-radius: 10px; font-size: 12.5px;
  color: #7d838d; background: rgba(255,255,255,.015);
  border: 1px dashed rgba(255,255,255,.08);
}
#settle .quiet-panel { padding: 0; background: none; border: 0; min-height: 0; }
/* 结算分页导航 */
.settle-nav { display: flex; gap: 8px; margin: 10px 0 4px; flex-wrap: wrap; }
.settle-nav a {
  padding: 7px 16px; border-radius: 999px; font-size: 13px; text-decoration: none;
  border: 1px solid rgba(255,255,255,.10); color: #a8adb6; background: rgba(255,255,255,.02);
}
.settle-nav a.is-on {
  background: linear-gradient(180deg, #e6d2a0, #cdb079); color: #17140d;
  border-color: transparent; font-weight: 600;
}
/* 手机抽屉：让开顶部导航，第一项不再被遮 */
@media (max-width: 820px) {
  body.ux-nav-open .admin-side {
    top: 0 !important; padding-top: 78px !important; padding-bottom: 110px !important;
    align-content: flex-start;
  }
  body.ux-nav-open .admin-side::before {
    content: "后台菜单"; position: fixed; top: 0; left: 0; width: min(78vw, 300px);
    padding: 22px 18px 14px; font-size: 13px; letter-spacing: .08em; color: #d8c08a;
    background: #14141a; border-bottom: 1px solid rgba(255,255,255,.07); z-index: 9999;
  }
}
@media (max-width: 820px) {
  body.ux-nav-open .admin-side {
    display: flex !important; flex-direction: column !important; flex-wrap: nowrap !important;
    width: min(84vw, 320px) !important; gap: 6px !important;
  }
  body.ux-nav-open .admin-side a,
  body.ux-nav-open .admin-side button {
    width: 100% !important; box-sizing: border-box; text-align: left;
    justify-content: flex-start; min-height: 40px;
  }
  body.ux-nav-open .admin-side::before { display: none !important; }
  .admin-layout { display: block !important; }
}
/* 手机：强制不横向溢出 */
@media (max-width: 820px) {
  html, body { max-width: 100% !important; overflow-x: hidden !important; }
  .wrap, .admin-layout, .admin-main { width: 100% !important; max-width: 100% !important; min-width: 0 !important; }
  .wrap { padding: 0 12px !important; }
  .sheet-card, .due-list, .split-preview, .settle-overview, .table-wrap {
    max-width: 100% !important; min-width: 0 !important; box-sizing: border-box;
  }
  .split-preview { grid-template-columns: 1fr !important; }
  .table-wrap { overflow-x: auto !important; -webkit-overflow-scrolling: touch; }
  table { width: 100% !important; }
  .settle-nav a { padding: 6px 14px !important; font-size: 12.5px !important; }
  .stat-grid, .stat-grid.wide { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
  img, canvas { max-width: 100% !important; height: auto; }
  .good, .card, .watch-card { max-width: 100% !important; }
}
@media (max-width: 820px) {
  .admin-main { width: 100vw !important; max-width: 100vw !important; padding: 0 12px !important; box-sizing: border-box; }
  .admin-main .stat-grid, .admin-main .stat-grid.wide,
  .admin-main .desk-grid, .admin-main .console-grid {
    width: 100% !important; display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important;
  }
  .admin-main .stat-grid > *, .admin-main .desk-grid > * { min-width: 0 !important; width: auto !important; }
  .admin-main h1, .admin-main h2 { font-size: 20px !important; }
  .admin-main section, .admin-main div { max-width: 100%; box-sizing: border-box; }
  .admin-main .chart, .admin-main .bars, .admin-main canvas { width: 100% !important; }
}
@media (max-width: 820px) {
  .stat-grid.wide, .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    min-width: 0 !important; width: 100% !important; }
  .stat-grid.wide > *, .stat-grid > * { min-width: 0 !important; width: auto !important; }
  #desk, #settle, #orders, #users, #cs, #products, section, .admin-main { min-width: 0 !important; }
  .admin-main { overflow-x: hidden !important; }
  .stat-grid.wide strong, .stat-grid strong { font-size: 19px !important; }
  .stat-grid.wide span, .stat-grid span { font-size: 11.5px !important; }
}
@media (max-width: 700px) {
  .stat-grid.wide, .stat-grid { grid-template-columns: 1fr !important; }
  .admin-main { overflow-x: auto !important; }
}
@media (max-width: 820px) {
  .stat-grid.wide, .stat-grid {
    display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: auto; width: 100% !important; gap: 8px !important;
  }
  .stat-grid.wide > *, .stat-grid > * {
    width: 100% !important; flex: none !important; min-width: 0 !important;
    max-width: none !important; box-sizing: border-box;
  }
  .desk-strip, .ux-chip-row { flex-wrap: wrap !important; }
  .admin-main table { min-width: 0 !important; }
  .table-wrap { width: 100% !important; }
}
/* ===== 后台按钮统一形态 ===== */
.admin-main .act, .admin-main .buy-btn.slim, .admin-main button.act {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 30px; padding: 5px 13px; border-radius: 8px; cursor: pointer;
  font-size: 12.5px; line-height: 1.2; text-decoration: none; white-space: nowrap;
  color: #cfd3da; background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.12);
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .08s ease;
}
.admin-main .act:hover, .admin-main .buy-btn.slim:hover {
  background: rgba(216,192,138,.12); border-color: rgba(216,192,138,.45); color: #e8d8b0;
}
.admin-main .act:active { transform: translateY(1px); }
.admin-main .act.is-gold, .admin-main .buy-btn.slim:not(.is-line) {
  background: linear-gradient(180deg, #e6d2a0, #cdb079); color: #17140d;
  border-color: transparent; font-weight: 600;
}
.admin-main .act.is-gold:hover, .admin-main .buy-btn.slim:not(.is-line):hover {
  background: linear-gradient(180deg, #f0dfb2, #d9bd85); color: #17140d;
}
.admin-main .act.is-rose { color: #e8a0a0; border-color: rgba(220,120,120,.4); }
.admin-main .act.is-rose:hover { background: rgba(220,120,120,.14); border-color: rgba(220,120,120,.7); }
.admin-main .act.is-off, .admin-main .act[disabled] {
  opacity: .45; cursor: not-allowed; pointer-events: none;
}
.admin-main .act-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.admin-main form { display: inline-block; }
.admin-main form.sheet-card, .admin-main form.find-row { display: block; }/* 后台真分页：只有 ?p= 指定的区块可见 */
body.is-admin[data-p="desk"] .admin-main section:not(#desk) { display: none !important; }
body.is-admin[data-p="orders"] .admin-main section:not(#orders) { display: none !important; }
body.is-admin[data-p="users"] .admin-main section:not(#users) { display: none !important; }
body.is-admin[data-p="cs"] .admin-main section:not(#cs) { display: none !important; }
body.is-admin[data-p="products"] .admin-main section:not(#products) { display: none !important; }
body.is-admin[data-p="tools"] .admin-main section:not(#tools) { display: none !important; }
body.is-admin[data-p="banners"] .admin-main section:not(#banners) { display: none !important; }
body.is-admin[data-p="site"] .admin-main section:not(#site) { display: none !important; }
body.is-admin[data-p="forum"] .admin-main section:not(#forum) { display: none !important; }
body.is-admin[data-p="pay"] .admin-main section:not(#pay) { display: none !important; }
body.is-admin[data-p="mail"] .admin-main section:not(#mail) { display: none !important; }
body.is-admin[data-p="staff"] .admin-main section:not(#staff) { display: none !important; }
body.is-admin[data-p="settle"] .admin-main section:not(#settle) { display: none !important; }
body.is-admin[data-p="backup"] .admin-main section:not(#backup) { display: none !important; }
body.is-admin[data-p="account"] .admin-main section:not(#account) { display: none !important; }
body.is-admin[data-p="desk"] .console-head, body.is-admin .console-head { display: block; }
/* 论坛后台：管理表更紧凑 */
#forum .find-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 6px; }
#forum .find-row input[type=search] { flex: 1 1 240px; min-width: 0; }
#forum .find-row select { padding: 7px 10px; border-radius: 8px; background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.12); color: #cfd3da; font-size: 12.5px; }
#forum table td { vertical-align: top; padding-top: 12px; padding-bottom: 12px; }
#forum .stamp { margin-left: 4px; }
/* 代理结算：卡片抬头更清晰 */
#settle .sheet-card { padding: 18px 20px; }
#settle .settle-nav a { min-width: 76px; text-align: center; }
/* ===== 代理结算：视觉重排 ===== */
#settle h2 { margin-bottom: 6px; }
#settle .settle-nav { margin: 14px 0 10px; }
#settle .settle-overview span { padding: 8px 14px; font-size: 12.5px; }
#settle .settle-overview b { font-size: 14px; }
#settle .sheet-card {
  border-radius: 14px; border: 1px solid rgba(255,255,255,.07);
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.008));
  box-shadow: 0 1px 0 rgba(255,255,255,.03) inset;
}
#settle .sheet-card > h3 { font-size: 15px; margin-bottom: 14px; }
#settle table { width: 100%; border-collapse: collapse; }
#settle table th {
  text-align: left; font-weight: 500; font-size: 12px; letter-spacing: .04em;
  color: #8b9099; padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.08);
}
#settle table td { padding: 12px; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 13px; }
#settle table tr:hover td { background: rgba(216,192,138,.05); }
#settle details.payout-log { margin: 10px 0; }
#settle details.payout-log > summary {
  padding: 12px 16px; border-radius: 12px; cursor: pointer; font-size: 13.5px;
  border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.02);
}
#settle details.payout-log[open] > summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
#settle .split-preview { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
/* ===== 论坛后台工具条 ===== */
#forum h2 { margin-bottom: 14px; }
.fa-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 0 0 12px; padding: 10px 12px; border-radius: 12px;
  background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.07);
}
.fa-input {
  flex: 1 1 260px; min-width: 0; height: 34px; padding: 0 12px;
  border-radius: 8px; font-size: 13px; color: #d7dae0;
  background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.10);
}
.fa-input:focus { outline: none; border-color: rgba(216,192,138,.55); }
.fa-select {
  height: 34px; padding: 0 10px; border-radius: 8px; font-size: 13px;
  color: #cfd3da; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.10);
}
.fa-count { margin-left: auto; font-size: 12.5px; color: #8b9099; }
.fa-bar-actions { background: none; border: 0; padding: 0; margin-bottom: 10px; }
.fa-check { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #9aa0aa; }
.fa-table { width: 100%; border-collapse: collapse; }
.fa-table th {
  text-align: left; font-weight: 500; font-size: 12px; letter-spacing: .04em;
  color: #8b9099; padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.fa-table td { padding: 12px; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.05); vertical-align: middle; }
.fa-table tr:hover td { background: rgba(216,192,138,.05); }
.fa-col-c { width: 34px; }
.fa-col-a { width: 88px; text-align: right; }
.fa-title { color: #e6e8ec; text-decoration: none; font-weight: 500; }
.fa-title:hover { color: #d8c08a; }
.fa-sub { margin-top: 3px; font-size: 12px; color: #7d838d; }
.fa-tag {
  display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11.5px;
  border: 1px solid rgba(255,255,255,.12); color: #9aa0aa;
}
.fa-tag.is-gold { color: #d8c08a; border-color: rgba(216,192,138,.45); }
.fa-tag.is-rose { color: #e8a0a0; border-color: rgba(220,120,120,.45); }
.fa-tag.is-mute { color: #6f747c; border-color: rgba(255,255,255,.07); }
.fa-empty { margin: 18px 0; text-align: center; color: #7d838d; font-size: 13px; }
