* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, "Microsoft YaHei", sans-serif; color: #0f2238; background: #f1f1f1; font-size: 14px; }
a { color: inherit; text-decoration: none; }
input, select, textarea, button { font: inherit; }
.login-page { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(135deg, #d6f5f2, #edf3fb 45%, #dce9fb); }
.login-card { width: min(420px, calc(100vw - 32px)); background: #fff; border: 1px solid #dbe4ee; padding: 34px; box-shadow: 0 24px 70px rgba(20, 41, 67, .12); }
.login-card .logo, .mark { width: 46px; height: 46px; display: grid; place-items: center; background: #18bca8; color: #fff; font-weight: 800; }
.login-card .logo { margin: 0 auto 18px; font-size: 24px; }
.login-card h1 { margin: 0 0 24px; text-align: center; font-size: 24px; }
.login-card label { display: block; margin: 14px 0 7px; color: #52667b; }
.login-card input, .form input, .form select, .form textarea, .toolbar input, .toolbar select { width: 100%; height: 38px; border: 1px solid #cad7e6; padding: 0 10px; background: #fff; color: #0f2238; }
.login-card input:focus, .form input:focus, .form select:focus, .form textarea:focus { border-color: #18bca8; outline: none; box-shadow: 0 0 0 3px rgba(24, 188, 168, .14); }
.login-card button, .btn { height: 38px; border: 0; background: #e8eef6; color: #0f2238; padding: 0 16px; cursor: pointer; font-weight: 700; }
.login-card button { width: 100%; margin-top: 22px; background: #18bca8; color: #fff; }
.btn.primary { background: #18bca8; color: #fff; }
.btn.blue { background: #2f80ed; color: #fff; }
.btn.red { background: #ef4444; color: #fff; }
.btn:hover, .login-card button:hover { filter: brightness(.96); }
.shell, .admin-shell { min-height: 100vh; display: grid; grid-template-columns: 200px 1fr; }
.side { background: #1f222b; color: #eaf3ff; padding: 0; }
.brand { display: flex; gap: 12px; align-items: center; padding: 8px 10px 22px; }
.brand b { display: block; font-size: 16px; }
.brand span { display: block; margin-top: 4px; color: #91a4b8; font-size: 12px; }
.side nav a { display: block; padding: 13px 16px; margin: 0; color: #e9eef8; border-left: 2px solid transparent; }
.side nav a.active, .side nav a:hover { background: #18bca8; border-left-color: #18bca8; color: #fff; }
.main { min-width: 0; }
.top { height: 62px; background: #fff; border-bottom: 1px solid #dce5ef; display: flex; justify-content: space-between; align-items: center; padding: 0 22px; }
.top b { display: block; font-size: 18px; }
.top span { display: inline-block; color: #53687d; margin-top: 5px; }
.top nav { display: flex; align-items: center; gap: 20px; color: #263c52; }
.content { padding: 16px; }
.alert { margin-bottom: 14px; padding: 12px 14px; border: 1px solid #aee8dc; background: #e7fbf7; color: #0f766e; }
.alert.danger { border-color: #fecaca; background: #fff1f2; color: #be123c; }
.panel { background: #fff; border: 1px solid #d6dce5; margin-bottom: 16px; }
.panel h2 { margin: 0; padding: 18px 20px 6px; font-size: 20px; }
.panel p { margin: 0; padding: 0 20px 18px; color: #52667b; line-height: 1.8; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); gap: 14px; margin-bottom: 16px; }
.stats div { background: #fff; border: 1px solid #dce5ef; padding: 18px; }
.stats b { display: block; font-size: 28px; color: #18a999; }
.stats span { color: #60758a; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 14px 20px; border-top: 1px solid #edf1f6; }
.toolbar input.small { width: 76px; }
.toolbar .grow { flex: 1; min-width: 220px; }
.tiny { width: 34px !important; height: 28px !important; text-align: center; padding: 0 !important; }
.flow-note { margin: 16px 0 22px 24px; width: 660px; max-width: calc(100vw - 270px); background: #fafafa; border-left: 4px solid #18bca8; padding: 18px; color: red; line-height: 1.8; font-size: 15px; }
.creator-panel { border-color: #cfd4dc; }
.creator-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 14px; }
.creator-toolbar select, .creator-toolbar input { height: 34px; border: 1px solid #c8d1dc; padding: 0 8px; background: #fff; }
.creator-toolbar .small { width: 46px; text-align: center; }
.btn.mini { height: 30px; padding: 0 12px; margin-right: 12px; background: #18bca8; color: #fff; font-size: 12px; }
.type-table { border-top: 1px solid #cfd4dc; }
.type-head, .type-row { display: grid; grid-template-columns: 216px 1fr; }
.type-head { background: #f1f1f1; border-bottom: 1px solid #cfd4dc; color: #314154; }
.type-head > div { padding: 10px 14px; border-right: 1px solid #cfd4dc; text-align: center; }
.type-row { border-bottom: 1px solid #e1e5eb; min-height: 112px; }
.type-cat { display: flex; align-items: center; justify-content: center; border-right: 1px solid #e1e5eb; background: #fcfcfc; color: #26384b; }
.type-items { padding: 14px 18px; display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: 14px 10px; align-content: start; }
.type-chip { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 40px; border: 1px solid #d3d7de; background: #f7f7f7; color: #0f2238; white-space: nowrap; }
.type-chip:hover { border-color: #18bca8; background: #eefdfa; }
.type-chip input[type="checkbox"] { width: auto; height: auto; }
.table-wrap { overflow: auto; border-top: 1px solid #edf1f6; }
table { width: 100%; border-collapse: collapse; background: #fff; min-width: 900px; }
th, td { padding: 12px 14px; border-bottom: 1px solid #edf1f6; text-align: left; white-space: nowrap; }
th { background: #f5f8fb; color: #33485f; }
.empty { text-align: center; color: #7b8fa3; padding: 28px; }
.form { padding: 18px 20px; display: grid; gap: 14px; }
.form textarea { min-height: 180px; padding: 10px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 10px; }
.notice { white-space: pre-wrap; line-height: 1.9; padding: 6px 20px 24px; }
.notice.rich { white-space: normal; }
.notice h3 { margin: 16px 0 6px; color: #009688; }
.badge { display: inline-block; padding: 4px 8px; background: #e8fbf8; color: #098b7d; }
.admin-shell .side { background: #071827; }
.result-note { margin-bottom: 14px; background: #fff; border: 1px solid #d6dce5; padding: 18px 24px; color: red; font-size: 18px; line-height: 1.8; }
.op-note { background: #fff; border: 1px solid #d6dce5; padding: 18px 24px; color: red; line-height: 1.85; margin-bottom: 0; }
.range-filter { background: #fff; border-left: 1px solid #d6dce5; border-right: 1px solid #d6dce5; padding: 0 18px 14px; color: red; }
.range-filter div { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding-top: 10px; }
.range-filter label { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px; border: 1px solid #d5d9df; background: #fafafa; color: #1f3247; }
.range-filter b { margin-right: 4px; color: red; }
.result-actions { display: flex; gap: 18px; flex-wrap: wrap; padding: 14px; }
.sell-filter { display: flex; gap: 16px; align-items: center; justify-content: flex-end; padding: 8px 12px; border-top: 1px solid #e4e8ee; }
.sell-filter select { height: 34px; border: 1px solid #c8d1dc; padding: 0 8px; }
.result-table { min-width: 1680px; text-align: center; }
.result-table th, .result-table td { text-align: center; border: 1px solid #d8dde5; }
.result-table .filters th { background: #f7f7f7; padding: 6px 10px; }
.result-table .filters input, .result-table .filters select { width: 100%; height: 34px; border: 1px solid #ccd3dc; }
.result-table a { color: #d60000; font-size: 18px; }
.editor-toolbar { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; border: 1px solid #cad7e6; border-bottom: 0; background: #f6f8fb; }
.editor-toolbar button, .editor-toolbar select, .editor-toolbar input { height: 32px; border: 1px solid #c6d2df; background: #fff; padding: 0 9px; }
.editor-toolbar button { min-width: 36px; font-weight: 700; cursor: pointer; }
.rich-editor { min-height: 260px; border: 1px solid #cad7e6; background: #fff; padding: 14px; line-height: 1.8; outline: none; overflow: auto; }
.rich-editor:focus { border-color: #18bca8; box-shadow: 0 0 0 3px rgba(24,188,168,.12); }
.editor-card { border: 1px solid #d8e1ec; box-shadow: 0 14px 34px rgba(15, 34, 56, .06); }
.editor-card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px 14px; border-bottom: 1px solid #edf1f6; background: linear-gradient(180deg, #ffffff, #f8fbfd); }
.editor-card-head h2 { padding: 0; margin: 0 0 6px; }
.editor-card-head p { padding: 0; margin: 0; color: #63778c; }
.editor-badge { padding: 6px 10px; border-radius: 999px; background: #e9fbf7; color: #0f8f82; font-weight: 700; font-size: 12px; }
.notice-form { padding: 20px 22px 24px; }
.field-label { display: block; margin-bottom: 8px; color: #314154; font-weight: 700; }
.notice-title-input { width: 100%; height: 42px; border: 1px solid #cbd7e5; padding: 0 13px; margin-bottom: 16px; background: #fff; }
.notice-title-input:focus { outline: none; border-color: #18bca8; box-shadow: 0 0 0 3px rgba(24,188,168,.13); }
.pro-editor { border: 1px solid #cbd7e5; background: #fff; overflow: hidden; }
.pro-editor-toolbar { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; border-bottom: 1px solid #d9e2ee; background: #f7fafc; }
.tool-group { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid #e1e8f0; background: #fff; }
.tool-group button, .tool-group select { height: 32px; border: 0; background: transparent; color: #1f3247; padding: 0 9px; cursor: pointer; }
.tool-group button:hover, .tool-group select:hover, .tool-group button.active { background: #e9fbf7; color: #0f8f82; }
.tool-group select { min-width: 92px; border-right: 1px solid #edf1f6; }
.tool-group select:last-child { border-right: 0; }
.color-tools label { height: 32px; display: inline-flex; align-items: center; gap: 6px; padding: 0 8px; color: #1f3247; cursor: pointer; }
.color-tools input { width: 28px; height: 24px; border: 0; padding: 0; background: transparent; cursor: pointer; }
.pro-editor-body { background: #f4f7fb; padding: 18px; }
.pro-rich-editor { min-height: 320px; border: 1px solid #d6e0eb; background: #fff; padding: 28px 34px; line-height: 1.9; color: #111827; box-shadow: 0 8px 24px rgba(15,34,56,.06); }
.pro-rich-editor:empty:before { content: "请输入公告内容..."; color: #9aa8b8; }
.pro-rich-editor h1, .pro-rich-editor h2, .pro-rich-editor h3 { margin: 0 0 12px; line-height: 1.35; }
.pro-rich-editor p { margin: 0 0 12px; }
.pro-rich-editor blockquote { margin: 12px 0; padding: 10px 14px; border-left: 4px solid #18bca8; background: #f0fbf8; color: #315064; }
.pro-rich-editor a { color: #1677ff; text-decoration: underline; }
.pro-editor-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-top: 1px solid #d9e2ee; background: #fbfdff; color: #6b7f94; }
.pro-editor-footer .btn { min-width: 110px; }
.admin-ui { background: #f4f7fb; color: #16283c; }
.pro-admin-shell { grid-template-columns: 248px 1fr; background: #f4f7fb; }
.pro-side { background: linear-gradient(180deg, #071827, #0d2336); padding: 18px 10px; box-shadow: 10px 0 30px rgba(7,24,39,.12); }
.admin-logo { display: flex; align-items: center; gap: 12px; padding: 14px 12px 26px; color: #fff; }
.admin-logo-mark { width: 46px; height: 46px; display: grid; place-items: center; background: linear-gradient(135deg, #18bca8, #2f80ed); border-radius: 14px; font-weight: 800; box-shadow: 0 14px 28px rgba(24,188,168,.22); }
.admin-logo b { display: block; font-size: 17px; letter-spacing: .2px; }
.admin-logo span { display: block; margin-top: 4px; color: #8ea4ba; font-size: 12px; }
.pro-nav { display: grid; gap: 6px; }
.pro-nav a { display: flex !important; align-items: center; gap: 10px; height: 44px; padding: 0 12px !important; border-radius: 12px; color: #c9d7e6 !important; border-left: 0 !important; }
.pro-nav a:hover, .pro-nav a.active { background: rgba(255,255,255,.1) !important; color: #fff !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.nav-ico { width: 20px; height: 20px; display: inline-block; border-radius: 7px; background: rgba(24,188,168,.18); position: relative; }
.nav-ico:before { content: ""; position: absolute; inset: 5px; border: 2px solid #18bca8; border-radius: 5px; }
.notice-ico:before { border-radius: 50%; }
.logout-ico:before { border-left-color: transparent; border-bottom-color: transparent; transform: rotate(45deg); }
.pro-main { min-width: 0; }
.pro-top { height: 86px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; background: rgba(255,255,255,.86); border-bottom: 1px solid #e2e9f2; backdrop-filter: blur(10px); }
.pro-top h1 { margin: 4px 0 0; font-size: 26px; letter-spacing: 0; }
.page-kicker { color: #18a999; font-size: 13px; font-weight: 800; }
.pro-top nav { display: flex; align-items: center; gap: 14px; color: #60758a; }
.ghost-link { height: 36px; display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid #d6e1ed; border-radius: 10px; background: #fff; color: #263c52; }
.pro-content { padding: 24px 28px 34px; }
.admin-stats { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 16px; margin-bottom: 18px; }
.stat-card { position: relative; overflow: hidden; min-height: 118px; padding: 18px; border: 1px solid #e1e8f0; border-radius: 18px; background: #fff; box-shadow: 0 18px 40px rgba(15,34,56,.06); }
.stat-card span { display: block; color: #71869b; font-weight: 700; }
.stat-card b { display: block; margin-top: 12px; font-size: 34px; color: #16283c; }
.stat-card i { position: absolute; right: -20px; bottom: -26px; width: 96px; height: 96px; border-radius: 30px; background: rgba(47,128,237,.12); transform: rotate(18deg); }
.stat-card.green i { background: rgba(24,188,168,.16); }
.stat-card.amber i { background: rgba(245,158,11,.18); }
.stat-card.red i { background: rgba(239,68,68,.14); }
.pro-card { background: #fff; border: 1px solid #e1e8f0; border-radius: 18px; box-shadow: 0 18px 40px rgba(15,34,56,.06); margin-bottom: 18px; overflow: hidden; }
.pro-card > h2 { margin: 0; padding: 20px 22px; font-size: 20px; border-bottom: 1px solid #eef3f8; }
.card-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid #eef3f8; }
.card-head h2 { margin: 0 0 6px; padding: 0; font-size: 20px; }
.card-head p { margin: 0; padding: 0; color: #6d8196; }
.create-account-form { display: grid; grid-template-columns: 1fr 1fr 120px 112px; gap: 12px; padding: 20px 22px 22px; align-items: end; }
.create-account-form label { display: grid; gap: 7px; color: #52677d; font-weight: 700; }
.create-account-form input, .renew-input { height: 40px; border: 1px solid #d2ddeb; border-radius: 10px; padding: 0 12px; outline: none; background: #fbfdff; }
.create-account-form input:focus, .renew-input:focus { border-color: #18bca8; box-shadow: 0 0 0 3px rgba(24,188,168,.13); }
.pro-table-wrap { overflow: auto; }
.pro-table { min-width: 1050px; border-collapse: separate; border-spacing: 0; }
.pro-table th { background: #f8fbfe; color: #52677d; font-weight: 800; border-bottom: 1px solid #e8eef5; }
.pro-table th, .pro-table td { padding: 16px 18px; border-bottom: 1px solid #eef3f8; }
.pro-table tr:hover td { background: #fbfefd; }
.status-pill { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 999px; font-weight: 800; font-size: 12px; }
.status-pill.on { background: #e8fbf7; color: #0f8f82; }
.status-pill.off { background: #eef2f7; color: #60758a; }
.days-ok { color: #0f8f82; font-weight: 800; }
.days-warn { color: #e11d48; font-weight: 900; }
.row-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.renew-input { width: 78px; height: 36px; }
.btn.soft { height: 36px; border-radius: 10px; padding: 0 14px; }
.btn.primary.soft { background: #18bca8; color: #fff; }
.btn.red.soft { background: #ef4444; color: #fff; }
@media (max-width: 900px) {
    .shell, .admin-shell { grid-template-columns: 1fr; }
    .side { position: static; }
    .side nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
    .top { height: auto; align-items: flex-start; gap: 10px; padding: 14px; flex-direction: column; }
    .stats, .form-grid, .type-row, .type-head { grid-template-columns: 1fr; }
    .flow-note { max-width: none; width: auto; margin-left: 0; }
    .type-items { grid-template-columns: repeat(2, minmax(130px, 1fr)); }
    .pro-admin-shell { grid-template-columns: 1fr; }
    .admin-stats, .create-account-form { grid-template-columns: 1fr; }
    .pro-top { height: auto; align-items: flex-start; flex-direction: column; padding: 18px; gap: 12px; }
    .pro-content { padding: 16px; }
}

/* Fixed shell and calmer palette */
.fixed-shell-page {
    background: #f3f4f6;
}
.fixed-shell {
    height: 100vh;
    overflow: hidden;
}
.fixed-shell .main {
    display: grid;
    grid-template-rows: 72px 1fr;
    min-height: 100vh;
}
.content-frame {
    width: 100%;
    height: 100%;
    border: 0;
    background: #f3f4f6;
}
.embedded-page {
    background: #f3f4f6 !important;
    min-width: 980px;
}
.embedded-content {
    padding: 16px !important;
}
body:not(.admin-ui) .side {
    background: #1f232b !important;
    box-shadow: none;
}
body:not(.admin-ui) .side nav a.active {
    background: #14b8a6 !important;
    box-shadow: none;
}
body:not(.admin-ui) .mark,
.admin-logo-mark {
    background: #14b8a6 !important;
    box-shadow: none !important;
}
body:not(.admin-ui) .top {
    background: #fff;
}
body:not(.admin-ui) .panel,
body:not(.admin-ui) .creator-panel,
body:not(.admin-ui) .op-note,
body:not(.admin-ui) .range-filter,
body:not(.admin-ui) .result-note,
body:not(.admin-ui) .settings-card {
    box-shadow: none;
}
body:not(.admin-ui) .btn.primary,
body:not(.admin-ui) .btn.mini {
    background: #14b8a6;
}
body:not(.admin-ui) .btn.blue {
    background: #3b82f6;
}
.compact-note {
    margin: 0 0 12px !important;
    width: min(760px, 100%) !important;
}

/* Clean operator theme */
:root {
    --ui-bg: #f5f7fb;
    --ui-panel: #ffffff;
    --ui-border: #dfe7f0;
    --ui-border-soft: #edf2f7;
    --ui-text: #142235;
    --ui-muted: #65788c;
    --ui-teal: #14b8a6;
    --ui-blue: #2563eb;
    --ui-red: #ef4444;
    --ui-side: #151a23;
}
body:not(.admin-ui) {
    background: var(--ui-bg);
    color: var(--ui-text);
    font-family: "Inter", "Segoe UI", Arial, "Microsoft YaHei", sans-serif;
    font-size: 14px;
}
body:not(.admin-ui) .shell {
    grid-template-columns: 216px minmax(0, 1fr);
    background: var(--ui-bg);
}
body:not(.admin-ui) .side {
    background: linear-gradient(180deg, #1d2230 0%, #151a23 100%);
    box-shadow: 12px 0 30px rgba(19, 27, 39, .12);
}
body:not(.admin-ui) .brand {
    padding: 26px 18px 24px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
body:not(.admin-ui) .brand-clean {
    min-height: 94px;
}
body:not(.admin-ui) .brand-clean > div {
    padding-left: 2px;
}
body:not(.admin-ui) .mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #14b8a6, #2563eb);
    box-shadow: 0 12px 28px rgba(20,184,166,.25);
}
body:not(.admin-ui) .brand b {
    font-size: 22px;
    color: #fff;
    letter-spacing: .2px;
}
body:not(.admin-ui) .brand span {
    color: #9aa8ba;
    font-size: 13px;
}
body:not(.admin-ui) .side nav {
    padding: 12px 10px;
}
body:not(.admin-ui) .side nav a {
    height: 42px;
    display: flex;
    align-items: center;
    margin: 4px 0;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    color: #d7e0eb;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}
body:not(.admin-ui) .side nav a:before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-right: 10px;
    background: #465568;
}
body:not(.admin-ui) .side nav a:hover {
    background: rgba(255,255,255,.08);
    transform: translateX(2px);
}
body:not(.admin-ui) .side nav a.active {
    background: linear-gradient(135deg, rgba(20,184,166,.95), rgba(37,99,235,.88));
    color: #fff;
    box-shadow: 0 12px 26px rgba(20,184,166,.2);
}
body:not(.admin-ui) .side nav a.active:before {
    background: #fff;
}
body:not(.admin-ui) .top {
    height: 72px;
    background: rgba(255,255,255,.92);
    border-bottom: 1px solid var(--ui-border);
    padding: 0 24px;
    backdrop-filter: blur(8px);
}
body:not(.admin-ui) .top b {
    font-size: 21px;
}
body:not(.admin-ui) .top span {
    color: var(--ui-muted);
}
body:not(.admin-ui) .top nav {
    gap: 16px;
}
body:not(.admin-ui) .top nav a {
    color: #1f3a5f;
    font-weight: 700;
}
body:not(.admin-ui) .content {
    padding: 18px 24px 36px;
}
body:not(.admin-ui) .notice.rich {
    padding: 10px 22px 28px;
    color: #1e2f44;
    line-height: 1.9;
}
body:not(.admin-ui) .notice.rich h2 {
    font-size: 20px;
    margin: 10px 0 14px;
}
body:not(.admin-ui) .notice.rich p {
    margin: 8px 0;
}
body:not(.admin-ui) .alert {
    border-radius: 12px;
    border-color: #fed7aa;
    background: #fff7ed;
    color: #c2410c;
}
body:not(.admin-ui) .alert.danger {
    border-color: #fecdd3;
    background: #fff1f2;
    color: #be123c;
}
body:not(.admin-ui) .panel,
body:not(.admin-ui) .creator-panel,
body:not(.admin-ui) .op-note,
body:not(.admin-ui) .range-filter,
body:not(.admin-ui) .result-note {
    border: 1px solid var(--ui-border);
    border-radius: 14px;
    background: var(--ui-panel);
    box-shadow: 0 16px 34px rgba(15, 34, 56, .05);
}
body:not(.admin-ui) .flow-note {
    width: min(760px, 100%);
    margin: 0 0 18px;
    border: 1px solid #c7f0e9;
    border-left: 5px solid var(--ui-teal);
    border-radius: 14px;
    background: #f2fffc;
    color: #e11d48;
    box-shadow: 0 12px 28px rgba(20,184,166,.07);
}
body:not(.admin-ui) .creator-toolbar {
    padding: 18px 20px;
    gap: 12px;
    border-bottom: 1px solid var(--ui-border-soft);
}
body:not(.admin-ui) .creator-toolbar select,
body:not(.admin-ui) .creator-toolbar input {
    height: 38px;
    border-radius: 8px;
    border-color: #d6e1ed;
}
body:not(.admin-ui) .btn {
    height: 38px;
    border-radius: 9px;
    font-weight: 800;
    background: #eaf1f8;
    color: #19324d;
}
body:not(.admin-ui) .btn.primary {
    background: var(--ui-teal);
    color: #fff;
}
body:not(.admin-ui) .btn.blue {
    background: var(--ui-blue);
    color: #fff;
}
body:not(.admin-ui) .btn.red {
    background: var(--ui-red);
    color: #fff;
}
body:not(.admin-ui) .type-head,
body:not(.admin-ui) .type-row {
    grid-template-columns: 190px 1fr;
}
body:not(.admin-ui) .type-head {
    background: #f8fafc;
    border-bottom: 1px solid var(--ui-border);
    border-radius: 14px 14px 0 0;
}
body:not(.admin-ui) .type-head > div {
    border-right: 1px solid var(--ui-border);
}
body:not(.admin-ui) .type-cat {
    background: #fbfdff;
    border-right: 1px solid var(--ui-border-soft);
    font-weight: 800;
}
body:not(.admin-ui) .type-items {
    grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
    gap: 12px;
}
body:not(.admin-ui) .type-chip {
    justify-content: flex-start;
    height: 38px;
    padding: 0 10px;
    border-radius: 9px;
    background: #f8fafc;
    border-color: #dce5ef;
}
body:not(.admin-ui) .type-chip:hover {
    background: #f0fdfa;
    border-color: var(--ui-teal);
}
body:not(.admin-ui) .tiny {
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #fff;
}
body:not(.admin-ui) .op-note {
    color: #e11d48;
    margin-bottom: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    box-shadow: none;
}
body:not(.admin-ui) .range-filter {
    color: #e11d48;
    border-top: 0;
    border-radius: 0;
    box-shadow: none;
}
body:not(.admin-ui) .range-filter label {
    border-radius: 8px;
    background: #f8fafc;
}
body:not(.admin-ui) .result-actions {
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--ui-border-soft);
}
body:not(.admin-ui) .sell-filter {
    justify-content: flex-end;
    background: #fbfdff;
}
body:not(.admin-ui) .result-table th,
body:not(.admin-ui) .result-table td {
    border-color: #e2e8f0;
}
body:not(.admin-ui) .result-table th {
    background: #f8fafc;
}
body:not(.admin-ui) .result-table a {
    color: #dc2626;
    font-weight: 800;
}
body:not(.admin-ui) .settings-card {
    width: min(1120px, 100%);
    background: #fff;
    border: 1px solid var(--ui-border);
    border-radius: 16px;
    box-shadow: 0 18px 36px rgba(15,34,56,.06);
    overflow: hidden;
}
body:not(.admin-ui) .settings-head {
    padding: 22px 24px 16px;
    border-bottom: 1px solid var(--ui-border-soft);
    background: linear-gradient(180deg, #fff, #fbfdff);
}
body:not(.admin-ui) .settings-head h2 {
    margin: 0 0 8px;
    font-size: 22px;
}
body:not(.admin-ui) .settings-head p {
    margin: 0;
    color: var(--ui-muted);
}
body:not(.admin-ui) .settings-form {
    padding: 8px 24px 24px;
}
body:not(.admin-ui) .setting-row {
    display: grid;
    grid-template-columns: 180px minmax(260px, 520px);
    align-items: center;
    gap: 18px;
    min-height: 58px;
    border-bottom: 1px solid var(--ui-border-soft);
}
body:not(.admin-ui) .setting-row.wide {
    grid-template-columns: 180px minmax(420px, 1fr);
}
body:not(.admin-ui) .setting-row label {
    color: #43566d;
    font-weight: 800;
}
body:not(.admin-ui) .setting-row input,
body:not(.admin-ui) .setting-row select {
    width: 100%;
    height: 38px;
    border: 1px solid #d6e1ed;
    border-radius: 8px;
    background: #fbfdff;
    padding: 0 11px;
    color: var(--ui-text);
    outline: none;
}
body:not(.admin-ui) .setting-row input:focus,
body:not(.admin-ui) .setting-row select:focus {
    border-color: var(--ui-teal);
    box-shadow: 0 0 0 3px rgba(20,184,166,.12);
}
body:not(.admin-ui) .settings-actions {
    padding-top: 18px;
}
body:not(.admin-ui) .settings-actions .btn {
    min-width: 112px;
}
@media (max-width: 900px) {
    body:not(.admin-ui) .shell { grid-template-columns: 1fr; }
    body:not(.admin-ui) .side nav { display: grid; grid-template-columns: repeat(2, 1fr); }
    body:not(.admin-ui) .content { padding: 14px; }
    body:not(.admin-ui) .setting-row,
    body:not(.admin-ui) .setting-row.wide {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px 0;
    }
}
