:root {
  color-scheme: dark;
  font-family: Inter, "Microsoft YaHei", sans-serif;
  background: #0c1119;
  color: #e8edf3;
  letter-spacing: 0;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: #0c1119; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
.topbar { height: 64px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #273142; background: #111824; }
.topbar strong { font-size: 18px; }
.state { margin-left: 12px; color: #7f8b9d; font-size: 13px; }
.state.ok { color: #42d7a0; }
.workspace { width: min(1180px, calc(100% - 32px)); margin: 24px auto 60px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid #273142; }
.tab { flex: none; min-width: 108px; height: 42px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #8e9aae; }
.tab.is-active { color: #f6f8fb; border-color: #20aa7d; }
.view { display: none; padding-top: 24px; }
.view.is-active { display: block; }
.view-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
h1 { margin: 0 0 6px; font-size: 24px; }
h2 { margin: 0 0 8px; font-size: 19px; }
p { margin: 0; color: #8e9aae; line-height: 1.6; }
.primary-button, .quiet-button { min-height: 38px; padding: 0 16px; border-radius: 6px; }
.primary-button { border: 1px solid #20aa7d; background: #168963; color: #fff; font-weight: 600; }
.primary-button:disabled { opacity: .45; cursor: default; }
.quiet-button { border: 1px solid #344056; background: #151e2d; color: #c8d0dc; }
.secret-strip { display: flex; flex-wrap: wrap; gap: 18px; padding: 12px 14px; margin-bottom: 18px; border: 1px solid #273142; border-radius: 6px; background: #111824; color: #8e9aae; font-size: 13px; }
.secret-item.ok { color: #68d8af; }
.secret-item.missing { color: #f0a56a; }
.settings-sections { display: grid; gap: 18px; }
.settings-section { border: 1px solid #273142; border-radius: 6px; background: #111824; }
.settlement-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.settlement-card { padding: 16px; border: 1px solid #273142; border-radius: 6px; background: #111824; }
.settlement-card h2 { margin: 0 0 4px; font-size: 18px; }
.settlement-current { min-height: 22px; margin-bottom: 14px; color: #20aa7d; font-size: 13px; }
.settlement-field { display: block; margin-top: 12px; color: #9ca9ba; font-size: 13px; }
.settlement-field input:not([type="checkbox"]) { box-sizing: border-box; width: 100%; height: 38px; margin-top: 6px; padding: 0 9px; border: 1px solid #344056; border-radius: 5px; background: #0d1420; color: #edf2f7; }
.settlement-enabled { display: flex; align-items: center; gap: 8px; }
.settlement-enabled input { width: 18px; height: 18px; accent-color: #20aa7d; }
.settlement-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.compact-heading { margin-top: 8px; }
@media (max-width: 900px) { .settlement-grid { grid-template-columns: 1fr; } }
.section-heading { padding: 16px 18px; border-bottom: 1px solid #273142; }
.section-heading h2 { margin: 0; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { min-width: 0; padding: 16px 18px; border-bottom: 1px solid #202a3a; }
.field:nth-child(odd) { border-right: 1px solid #202a3a; }
.field label { display: block; margin-bottom: 8px; color: #dbe2eb; font-size: 14px; font-weight: 600; }
.field-help { min-height: 20px; margin-top: 7px; color: #748196; font-size: 12px; }
.field input:not([type="checkbox"]), .field select, .field textarea, .dialog input { width: 100%; height: 40px; padding: 0 11px; border: 1px solid #344056; border-radius: 5px; outline: none; background: #0d1420; color: #edf2f7; }
.field textarea { height: 132px; padding: 10px 11px; line-height: 1.55; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .dialog input:focus { border-color: #20aa7d; box-shadow: 0 0 0 2px rgba(32,170,125,.15); }
.toggle-line { height: 40px; display: flex; align-items: center; }
.toggle-line input { width: 20px; height: 20px; accent-color: #20aa7d; }
.table-wrap { overflow: auto; border: 1px solid #273142; border-radius: 6px; background: #111824; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #202a3a; font-size: 13px; vertical-align: top; }
th { color: #8996a9; background: #151e2d; font-weight: 600; }
td { color: #cbd4df; }
.status-success { color: #45d4a0; } .status-failed { color: #ff7f7f; } .status-running { color: #75b9ff; }
.mono { font-family: Consolas, monospace; overflow-wrap: anywhere; }
.dialog-backdrop { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(4,7,12,.82); }
.dialog-backdrop.is-hidden { display: none; }
.dialog { width: min(400px, 100%); padding: 24px; border: 1px solid #344056; border-radius: 8px; background: #111824; }
.dialog label { display: block; margin: 20px 0 8px; font-size: 14px; }
.wide { width: 100%; margin-top: 12px; }
.form-error { min-height: 22px; margin-top: 8px; color: #ff8585; font-size: 13px; }
.toast { position: fixed; right: 22px; bottom: 22px; max-width: 420px; padding: 12px 16px; border: 1px solid #344056; border-radius: 6px; background: #172131; opacity: 0; transform: translateY(10px); pointer-events: none; transition: .18s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { border-color: #8c3d46; color: #ffb0b0; }
.view-actions { display: flex; align-items: center; gap: 8px; }
.filter-select { height: 38px; padding: 0 34px 0 11px; border: 1px solid #344056; border-radius: 6px; background: #151e2d; color: #d7dee8; }
.management-table { min-width: 820px; }
.reported-table { min-width: 980px; }
.content-cell { min-width: 280px; max-width: 520px; white-space: pre-wrap; line-height: 1.55; }
.report-reasons { min-width: 260px; max-width: 440px; color: #e5b8b8; line-height: 1.55; }
.table-actions { min-width: 156px; }
.table-action { min-height: 32px; margin: 0 6px 6px 0; padding: 0 10px; border: 1px solid #3d4d63; border-radius: 5px; background: #1a2636; color: #dbe4ee; }
.table-action:hover { border-color: #20aa7d; }
.table-action.restore-action { border-color: #278f70; background: #176448; color: #f4fffb; }
.table-action.quiet-action { color: #9ca9ba; }
.status-new { color: #f0b36d; }
.status-read { color: #75b9ff; }
.status-archived { color: #8e9aae; }.danger-button { min-height: 38px; padding: 0 16px; border: 1px solid #8c3d46; border-radius: 6px; background: #55272e; color: #ffd7d7; }
.cache-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-bottom: 18px; border: 1px solid #273142; border-radius: 6px; overflow: hidden; background: #273142; }
.cache-summary div { padding: 14px 16px; background: #111824; }
.cache-summary span { display: block; margin-bottom: 5px; color: #7f8b9d; font-size: 12px; }
.cache-summary strong { font-size: 18px; }
.cache-table { min-width: 1120px; }
.status-cleared { color: #a9b4c3; }@media (max-width: 720px) { .topbar { padding: 0 16px; } .workspace { width: calc(100% - 24px); margin-top: 14px; } .fields { grid-template-columns: 1fr; } .field:nth-child(odd) { border-right: 0; } .view-heading { align-items: stretch; flex-direction: column; } .view-heading button { align-self: flex-start; } .cache-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.date-filter { height: 38px; padding: 0 9px; border: 1px solid #344056; border-radius: 6px; background: #151e2d; color: #d7dee8; } .sync-log-table { min-width: 900px; }
.tier-create { margin-bottom: 18px; padding: 18px; border: 1px solid #273142; border-radius: 6px; background: #111824; }
.tier-create h2 { margin-bottom: 14px; }
.tier-create-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.tier-create-grid label { color: #cbd4df; font-size: 12px; }
.tier-create-grid input { width: 100%; height: 36px; margin-top: 6px; padding: 0 8px; border: 1px solid #344056; border-radius: 5px; background: #0d1420; color: #edf2f7; }
.tier-create-grid .checkbox-field { display: flex; align-items: center; gap: 8px; padding-top: 23px; }
.tier-create-grid .checkbox-field input { width: 18px; margin: 0; }
.tier-table { min-width: 1280px; }
.tier-table input:not([type="checkbox"]) { width: 100%; min-width: 130px; height: 32px; padding: 0 7px; border: 1px solid #344056; border-radius: 4px; background: #0d1420; color: #edf2f7; }
.tier-table .tier-rank-input { min-width: 240px; }
.tier-table input[type="checkbox"] { width: 18px; height: 18px; accent-color: #20aa7d; }
.site-filing { padding: 0 24px 28px; text-align: center; }
.site-filing a { color: #66758c; font-size: 12px; text-decoration: none; }
.site-filing a:hover { color: #a9b6c8; }
@media (max-width: 720px) { .tier-create-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
