:root {
    color: #242936;
    color-scheme: light;
    font: 14px/1.5 "Segoe UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
    --ops-ink: #242936;
    --ops-muted: #667181;
    --ops-line: #e4e8ef;
    --ops-canvas: #f3f5f8;
    --ops-white: #fff;
    --ops-nav: #242b3a;
    --ops-nav-text: #e3e8f2;
    --ops-yellow: #ffce2f;
    --ops-yellow-hover: #edbb1b;
    --ops-yellow-soft: #fff6d5;
    --ops-danger: #b63337;
    --ops-radius: 7px;
    --ops-sidebar-width: 208px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 300px; background: var(--ops-canvas); }
button, input, select { color: inherit; font: inherit; }
button, summary, select { cursor: pointer; }
button:disabled { cursor: progress; opacity: .6; }
button:focus-visible, summary:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #a37b00; outline-offset: 2px; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
[data-icon] { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; }
.ops-icon { display: block; width: 17px; height: 17px; }
.skip-link { position: fixed; z-index: 10; top: 8px; left: 8px; padding: 6px 10px; transform: translateY(-160%); border-radius: var(--ops-radius); background: var(--ops-yellow); }
.skip-link:focus { transform: none; }

.workspace-shell { display: grid; grid-template-columns: var(--ops-sidebar-width) minmax(0, 1fr); min-height: 100vh; }
.ops-sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; height: 100dvh; min-height: 0; background: var(--ops-nav); color: var(--ops-nav-text); }
.ops-brand { display: flex; align-items: center; gap: 10px; min-height: 61px; padding: 0 15px; border-bottom: 1px solid #ffffff16; }
.ops-brand img { flex: 0 0 auto; }
.ops-brand span { display: grid; color: #fff; font-size: 16px; font-weight: 690; line-height: 1.26; }
.ops-brand small { color: #b7c1d2; font-size: 11px; font-weight: 500; letter-spacing: .06em; }
.ops-navigation { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 10px; }
.ops-nav-caption { display: block; padding: 0 10px 7px; color: #adb8ca; font-size: 12px; }
.ops-navigation a { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 10px; margin-bottom: 4px; border-radius: var(--ops-radius); white-space: nowrap; }
.ops-navigation a:hover { background: #ffffff12; }
.ops-navigation a[aria-current="page"] { background: #ffce2f1f; color: #ffdb63; font-weight: 650; }
.ops-side-footer { display: flex; align-items: center; gap: 8px; border-top: 1px solid #ffffff16; padding: 13px 16px; color: #bdc7d8; font-size: 12px; }
.ops-side-footer span { width: 7px; height: 7px; border-radius: 50%; background: #7ad094; }
.ops-workarea { min-width: 0; }
.ops-topbar { position: sticky; z-index: 3; top: 0; display: flex; align-items: center; gap: 12px; min-height: 61px; padding: 0 21px; border-bottom: 1px solid var(--ops-line); background: var(--ops-white); }
.ops-crumb { display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; color: var(--ops-muted); }
.ops-crumb strong { color: var(--ops-ink); font-weight: 620; }
.crumb-separator { color: #939eaf; }
.ops-top-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-toggle { display: none !important; }
.ops-scrim { display: none; }
.ops-dropdown { position: relative; }
.ops-dropdown summary { list-style: none; }
.ops-dropdown summary::-webkit-details-marker { display: none; }
.ops-dropdown summary::marker { content: ""; }
.ops-avatar { width: 22px; height: 22px; border-radius: 50%; background: var(--ops-yellow-soft); color: #735500; }
.ops-avatar .ops-icon { width: 14px; height: 14px; }
.ops-menu-panel { position: absolute; top: calc(100% + 7px); right: 0; z-index: 4; display: grid; gap: 6px; min-width: 147px; padding: 8px; border: 1px solid var(--ops-line); border-radius: var(--ops-radius); background: var(--ops-white); box-shadow: 0 9px 24px #22304b20; }
.ops-menu-panel strong { padding: 2px 5px; color: var(--ops-muted); font-size: 13px; }
.ops-portal-links a { border-radius: 4px; padding: 6px 7px; }
.ops-portal-links a:hover { background: var(--ops-canvas); }
.ops-main { max-width: 1440px; min-width: 0; margin-inline: auto; padding: 22px; }

.ops-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.ops-heading h1 { font-size: 22px; line-height: 1.4; font-weight: 680; }
.ops-heading p { margin-top: 3px; color: var(--ops-muted); font-size: 13px; }
.ops-heading-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.surface { background: var(--ops-white); border: 1px solid var(--ops-line); border-radius: var(--ops-radius); }
.ops-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 165px), 1fr)); gap: 12px; margin-bottom: 16px; }
.ops-metric { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px; }
.ops-metric p { color: var(--ops-muted); font-size: 13px; }
.ops-metric strong { display: block; margin-top: 4px; font-size: 25px; font-weight: 680; line-height: 1.25; font-variant-numeric: tabular-nums; }
.ops-metric-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: var(--ops-yellow-soft); color: #7f6000; }
.ops-section-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 9px; padding: 13px 15px; }
.ops-section-header h2 { font-size: 16px; font-weight: 650; }
.table-scroll { width: 100%; overflow: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; font-variant-numeric: tabular-nums; }
.data-table th, .data-table td { min-width: 95px; padding: 10px 13px; border-bottom: 1px solid var(--ops-line); white-space: nowrap; }
.data-table th { background: #f6f7fa; color: #566375; font-size: 13px; font-weight: 630; }
.data-table td { min-height: 43px; }
.data-table td.table-title { max-width: 310px; overflow: hidden; text-overflow: ellipsis; font-weight: 620; }
.ops-shop-number { display: block; margin-top: 4px; color: var(--ops-muted); font-size: 11px; font-weight: 400; }
.data-table tbody tr:hover { background: #fafbfe; }
.table-chip { display: inline-flex; padding: 2px 7px; border-radius: 4px; background: #edf2fd; color: #41629b; font-size: 12px; }
.ops-shop-fee > span { display: block; font-variant-numeric: tabular-nums; }
.ops-shop-review-actions.ops-shop-platform-actions { min-width: 210px; gap: 3px 11px; }
.ops-shop-platform-actions .text-button { white-space: nowrap; }
.ops-shop-platform-actions .text-button:disabled { color: var(--ops-muted); text-decoration: none; }
.ops-table-footer { padding: 9px 14px; color: var(--ops-muted); text-align: right; font-size: 12px; }
.ops-empty, .ops-error { display: grid; justify-items: center; gap: 7px; padding: 32px 16px; text-align: center; }
.ops-empty p, .ops-error p { color: var(--ops-muted); }
.ops-empty .ops-icon { width: 26px; height: 26px; color: #78869b; }
.ops-filter { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.ops-filter .control { width: 218px; }

.button, .icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 0 11px; border: 1px solid #d8dfe9; border-radius: 5px; background: var(--ops-white); color: var(--ops-ink); white-space: nowrap; }
.button:hover, .icon-button:hover { background: #f7f8fa; border-color: #bfc9d8; }
.button-primary { border-color: var(--ops-yellow); background: var(--ops-yellow); color: #2e2408; font-weight: 650; }
.button-primary:hover { border-color: var(--ops-yellow-hover); background: var(--ops-yellow-hover); }
.icon-button { width: 34px; padding: 0; }
.text-button { display: inline-flex; align-items: center; padding: 3px 0; border: 0; background: transparent; color: #2e5cb3; text-align: left; }
.text-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.control { display: block; width: 100%; min-width: 0; min-height: 38px; padding: 0 9px; border: 1px solid #d7dfea; border-radius: 5px; background: var(--ops-white); }
.control::placeholder { color: #687385; }
.control:focus { border-color: #bb940d; }
.field { display: grid; gap: 4px; min-width: 0; }
.field label { font-weight: 550; }
.field-help, .gate-note { color: var(--ops-muted); font-size: 13px; }
.form-error { color: var(--ops-danger); font-size: 13px; overflow-wrap: anywhere; }

.gate-shell { display: grid; align-content: center; justify-items: center; gap: 16px; min-height: 100vh; min-height: 100dvh; padding: 23px 16px; background: radial-gradient(ellipse at 50% 0, #fcf3d8 0, transparent 48%), var(--ops-canvas); }
.gate-brand { display: flex; align-items: center; gap: 9px; font-size: 18px; font-weight: 690; }
.gate-card { width: min(100%, 475px); padding: 22px; border: 1px solid var(--ops-line); border-radius: 11px; background: var(--ops-white); box-shadow: 0 12px 35px #33415f0f; }
.gate-card h1 { margin-bottom: 6px; font-size: 22px; }
.gate-card > p { color: var(--ops-muted); }
.gate-card form { display: grid; gap: 11px; margin-top: 15px; }
.gate-card .button { min-height: 38px; }
.gate-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.gate-links { display: flex; flex-wrap: wrap; gap: 10px 15px; margin-top: 13px; padding-top: 10px; border-top: 1px solid var(--ops-line); }

dialog { width: min(500px, calc(100% - 26px)); max-height: calc(100dvh - 26px); overflow: auto; padding: 0; border: 1px solid var(--ops-line); border-radius: 9px; background: var(--ops-white); color: var(--ops-ink); box-shadow: 0 16px 50px #182a4730; }
dialog::backdrop { background: #18233766; }
.dialog-header, .dialog-footer { display: flex; align-items: center; gap: 8px; padding: 12px 15px; }
.dialog-header { justify-content: space-between; border-bottom: 1px solid var(--ops-line); background: #f8f9fb; }
.dialog-header h2 { font-size: 17px; font-weight: 650; }
.dialog-header .icon-button { border-color: transparent; background: transparent; }
.dialog-form { display: grid; gap: 10px; padding: 15px; }
.dialog-footer { justify-content: flex-end; border-top: 1px solid var(--ops-line); }
.ops-deposit-summary { display: grid; justify-items: start; gap: 6px; padding: 10px 12px; border: 1px solid var(--ops-line); border-radius: 5px; background: #f8f9fb; }
.ops-deposit-summary dl { display: grid; gap: 4px; width: 100%; margin: 0; }
.ops-deposit-summary dl > div { display: grid; grid-template-columns: 5em minmax(0, 1fr); gap: 8px; }
.ops-deposit-summary dt { color: var(--ops-muted); }
.ops-deposit-summary dd { margin: 0; overflow-wrap: anywhere; }
.ops-deposit-confirm { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; border-radius: 5px; background: var(--ops-yellow-soft); }
.ops-deposit-confirm input { flex: 0 0 auto; margin: .3em 0 0; accent-color: #9d7600; }
.ops-shop-account-password { display: grid; gap: 10px; }
.ops-shop-account-reason { padding: 7px 9px; resize: vertical; }
.ops-toast { position: fixed; z-index: 6; bottom: 18px; right: 18px; max-width: min(430px, calc(100vw - 36px)); padding: 8px 11px; border: 1px solid #cde4d4; border-radius: var(--ops-radius); background: #eef8f0; color: #2d6b3f; box-shadow: 0 4px 14px #23432e18; }
.ops-toast[data-tone="error"] { border-color: #f0cecb; background: #fff1ef; color: var(--ops-danger); }

@media (max-width: 760px) {
    .workspace-shell { display: block; }
    .ops-sidebar { position: fixed; z-index: 5; inset: 0 auto 0 0; width: var(--ops-sidebar-width); transform: translateX(-100%); visibility: hidden; transition: transform 150ms, visibility 150ms; }
    .ops-sidebar.is-open { transform: translateX(0); visibility: visible; }
    .ops-scrim { display: block; position: fixed; z-index: 4; inset: 0; width: 100%; border: 0; background: #19223975; }
    .nav-toggle { display: inline-flex !important; }
    .ops-topbar { min-height: 54px; gap: 8px; padding: 0 10px; }
    .ops-main { padding: 13px 10px; }
    .ops-crumb > span { display: none; }
    .ops-heading h1 { font-size: 19px; }
    .ops-heading p { font-size: 12px; }
    .ops-metrics { grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)); gap: 7px; }
    .ops-metric { padding: 10px; }
    .ops-section-header { padding: 10px; }
    .data-table th, .data-table td { padding-inline: 9px; }
    .account-label { display: none; }
    #ops-account summary { padding-inline: 5px; }
}
@media (max-width: 390px) {
    .ops-filter .control { flex: 1 1 145px; width: 0; }
    .ops-heading { gap: 6px; }
    .ops-heading-actions .button { padding-inline: 7px; }
    .ops-heading-actions .button .ops-icon { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; } }
