/* Shared workbench surfaces; module-specific geometry stays in index.html. */
.module-management h2, .module-dialog h2 { font-size: 16px; }
.module-band { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.module-check { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.module-check input[type="checkbox"] { width: 16px; min-width: 16px; height: 16px; }
.module-facts { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px 16px; font-size: 13px; }
.module-facts dt { color: var(--muted); }
.module-facts dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.module-summary { padding: 12px 0; margin-bottom: 12px; color: var(--muted); }
.module-capabilities { display: flex; gap: 24px; flex-wrap: wrap; font-size: 13px; }
.module-pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 12px; font-size: 13px; }
.game-table { min-width: 620px; }
.game-table td { max-width: 260px; overflow-wrap: anywhere; white-space: normal; }
.game-table small { display: block; color: var(--muted); margin-top: 5px; }
.module-dialog { width: min(640px, calc(100% - 32px)); max-height: calc(100dvh - 40px); padding: 22px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--surface); overflow: auto; }
.module-dialog::backdrop { background: #0006; }
.module-dialog .field { margin-bottom: 14px; }
.module-dialog [role="status"] { white-space: pre-wrap; overflow-wrap: anywhere; }
.module-release-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.module-release-form .field { flex: 1 1 180px; max-width: 320px; }
.compatibility-table th:first-child { width: 40%; }
.compatibility-table th:nth-child(2) { width: 28%; }
.compatibility-table th:nth-child(3) { width: 12%; }
.compatibility-table th:last-child { width: 20%; }
:root {
  --ink: #242729;
  --muted: #72787e;
  --line: #e5e7e9;
  --paper: #f8f9fa;
  --surface: #fff;
  --accent: #8b6b2b;
  --accent-strong: #72551c;
  --accent-soft: #faf2df;
  --accent-fill: #ead5a3;
  --accent-fill-hover: #dfc58a;
  --accent-border: #c7aa6b;
  --accent-ink: #493a1b;
  --accent-ring: #ead5a366;
  /* 正常状态用蓝色：本项目禁用绿色表达 ok/成功/健康 */
  --ok: #2a6fa8;
  --ok-strong: #1d5580;
  --ok-soft: #e9f2fb;
  --ok-soft-hover: #d3e5f7;
  --ok-border: #a5c9e8;
  --ok-ink: #17456b;
  --warn: #a46b16;
  --warn-soft: #fff6e5;
  --bad: #c04646;
  --bad-soft: #fff0ef;
  --shadow: none;
  --font-mono: "SF Mono", Consolas, "Courier New", monospace;
}
body { background: var(--paper); letter-spacing: 0; font-family: "Segoe UI", "Microsoft YaHei", sans-serif; }
button, input, select, textarea { letter-spacing: 0; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.lucide { width: 18px; height: 18px; flex: 0 0 18px; stroke-width: 1.7; vertical-align: middle; }
.shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.nav { display: block; position: sticky; top: 0; height: 100dvh; padding: 22px 12px; overflow: auto; background: #fff; border-right: 1px solid var(--line); box-shadow: none; scrollbar-color: #d7dcda transparent; }
.brand { display: flex; align-items: center; gap: 9px; margin: 0 8px 30px; font-size: 17px; color: var(--ink); letter-spacing: 0; white-space: nowrap; }
.brand > .lucide { box-sizing: content-box; padding: 7px; border-radius: 7px; background: var(--accent-fill); color: var(--accent-ink); }
.nav-label { display: block; margin: 23px 12px 7px; font-size: 11px; font-weight: 500; letter-spacing: 0; color: #92979b; }
.nav button, .nav a { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 39px; padding: 9px 12px; margin: 3px 0; border-radius: 6px; color: #62686d; font-size: 13px; box-shadow: none; transform: none; transition: background .15s, color .15s; }
.nav button::before, .nav a::before { display: none; }
.nav button:hover, .nav a:hover { background: #f5f6f7; color: var(--ink); box-shadow: none; transform: none; }
.nav button.active { background: var(--accent-soft); color: var(--accent-strong); font-weight: 600; box-shadow: none; transform: none; }
.nav button.active .lucide { color: var(--accent); }
.topbar { flex-direction: row; align-items: center; position: sticky; top: 0; min-height: 60px; padding: 12px 28px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: none; backdrop-filter: none; }
.top-heading { display: flex; align-items: center; gap: 12px; min-width: 0; }
.page-title { color: var(--ink); font-size: 16px; line-height: 1.5; letter-spacing: 0; }
.top-actions { width: auto; flex-wrap: nowrap; gap: 12px; }
.auth-state { padding: 0; background: none; border: none; color: var(--muted); letter-spacing: 0; }
.auth-state::before { color: var(--ok); width: 6px; height: 6px; }
.account-dropdown { box-shadow: 0 8px 25px #24272912; }
.content { width: 100%; max-width: 1420px; padding: 18px 32px 48px; }
.workspace-toolbar { display: flex; justify-content: space-between; align-items: center; min-height: 34px; margin-bottom: 19px; }
.workspace-toolbar .icon-button { background: transparent; }
.notice:empty { display: none; }
.overview-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }
.eyebrow { color: #878d91; font-size: 10px; font-weight: 600; letter-spacing: 0; }
.overview-heading h2 { margin: 4px 0 0; font-size: 25px; font-weight: 650; }
.summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0 0 30px; padding: 22px 0; background: white; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.summary-item { min-height: 90px; padding: 0 25px; border: 0; border-right: 1px solid var(--line); background: none; border-radius: 0; box-shadow: none; }
.summary-item:last-child { border-right: 0; }
.summary-item::after { display: none; }
.summary-label { display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 0; }
.summary-label .lucide { color: #8e979b; width: 16px; height: 16px; }
.summary-value { margin: 12px 0 7px; font-size: 32px; line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; }
.summary-caption { color: #93989c; font-size: 11px; }
.dashboard-section { min-width: 0; }
.dashboard-section .section-head { margin-top: 0; }
.section-head { margin: 26px 0 16px; }
.section-head h2, .panel-head h2, .panel-head h3, .panel-head h4 { color: var(--ink); font-size: 15px; font-weight: 600; letter-spacing: 0; }
.text-button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 4px 0; border: none; background: none; color: var(--muted); font-size: 12px; }
.text-button:hover { color: var(--accent); }
.text-button .lucide { width: 15px; height: 15px; }
.dashboard-runtime { margin-top: 0; }
.dashboard-runtime .section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dashboard-runtime-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: 12px; min-width: 0; flex-wrap: nowrap; }
.dashboard-runtime-batch { display: grid; grid-template-columns: repeat(2, minmax(110px, 1fr)); align-items: center; gap: 5px; min-width: 234px; padding: 3px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); }
.dashboard-runtime-batch .button { width: 110px; min-width: 0; white-space: nowrap; }
.dashboard-runtime-batch .button .lucide { width: 15px; height: 15px; }
.dashboard-runtime-batch .button.danger { color: var(--bad); border-color: var(--bad); background: var(--surface); }
.dashboard-runtime-batch .button.danger:hover:not(:disabled) { color: var(--bad); border-color: var(--bad); background: var(--bad-soft); }
.dashboard-service-jump { padding: 6px 0 6px 12px; border-left: 1px solid var(--line); white-space: nowrap; }
.dashboard-service-jump .lucide { width: 15px; height: 15px; }
.dashboard-runtime-status { display: flex; justify-content: flex-end; min-height: 18px; margin-top: 6px; }
.dashboard-runtime-status > .sync {
  /* The changing status lives in its own fixed-height row, away from controls. */
  flex: 0 0 272px;
  width: 272px;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  padding-left: 0;
  border-left: 0;
  color: var(--muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.dashboard-service-list { display: block; min-width: 0; }
.public-url-list { display: grid; gap: 0; margin: 0 0 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.public-url-row { display: grid; grid-template-columns: minmax(128px, .24fr) minmax(0, 1fr); align-items: center; gap: 12px 16px; min-width: 0; padding: 12px 0; }
.public-url-row + .public-url-row { border-top: 1px solid var(--line); }
.public-url-label { display: block; min-width: 0; color: var(--ink); font-size: 13px; font-weight: 600; }
.public-url-note { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.public-url-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; min-width: 0; }
.public-url-input { width: 100%; min-width: 0; min-height: 34px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); background: var(--paper); font: 12px/1.4 var(--font-mono); }
.public-url-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.public-url-input[readonly] { cursor: text; }
.public-url-control .icon-button { color: var(--muted); background: var(--surface); }
.public-url-control .icon-button:hover:not(:disabled) { color: var(--accent-strong); }
.public-url-status { grid-column: 1 / -1; margin: 8px 0 0; }
.gold-site-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gold-site-actions .panel-head { display: flex; align-items: baseline; gap: 12px; min-width: 0; margin: 0; }
.gold-site-actions .panel-head h3 { margin: 0; white-space: nowrap; }
.gold-site-actions .form-actions { flex: 0 0 auto; margin: 0; }
.gold-site-actions .form-actions .button { white-space: nowrap; }
.platform-core-summary { margin: 0 0 24px; padding: 0 0 18px; border-bottom: 1px solid var(--line); }
.platform-core-summary-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 0 0 12px; }
.platform-core-summary-head h3 { margin: 0; color: var(--ink); font-size: 14px; font-weight: 600; }
.platform-core-summary-head .section-note { margin: 4px 0 0; }
.platform-core-statuses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.platform-core-status { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3px 12px; min-width: 0; padding: 13px 16px; }
.platform-core-status + .platform-core-status { border-left: 1px solid var(--line); }
.platform-core-status strong, .platform-core-status .muted { display: block; min-width: 0; overflow-wrap: anywhere; }
.platform-core-status .badge { grid-column: 2; grid-row: 1 / span 2; align-self: center; white-space: nowrap; }
.platform-core-status > .muted { grid-column: 1; }
.diagnostic-grid { display: grid; grid-template-columns: minmax(260px, .9fr) minmax(0, 1.2fr) minmax(0, 1.2fr); gap: 16px; align-items: start; }
.diagnostic-column { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.diagnostic-column .panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.diagnostic-column .panel-head h3 { margin: 0; }
.diagnostic-column .section-note { margin: 4px 0 0; font-size: 11px; }
.diagnostic-column .table-wrap { max-height: 420px; overflow: auto; }
.diagnostic-column .table-wrap table { width: 100%; min-width: 0; table-layout: fixed; }
.diagnostic-column .table-wrap th, .diagnostic-column .table-wrap td { overflow-wrap: anywhere; }
.diagnostic-log { min-height: 360px; max-height: 520px; margin: 0; padding: 12px; border: 1px solid var(--line); overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.55 var(--font-mono); color: var(--ink); }
.dashboard-service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dashboard-service-group { margin-top: 20px; }
.dashboard-service-group:first-child { margin-top: 0; }
.dashboard-service-group .service-group { margin-top: 0; }
.dashboard-service-grid .service-card { min-width: 0; }
.dashboard-startup-note { padding: 10px 12px; border-left: 3px solid var(--ok); background: var(--surface); }
.service-startup-option { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 0 0 13px; cursor: pointer; font-size: 12px; }
.service-startup-option input { width: 16px; height: 16px; margin: 0; accent-color: var(--ok); }
.service-startup-option small { margin-left: auto; color: var(--muted); font-size: 11px; }
.service-startup-option:has(input:checked) > span { color: var(--ok); font-weight: 600; }
.dashboard-service-tools { margin-top: 34px; }
.dashboard-service-tools > .section-head { align-items: center; }
.dashboard-service-tools .page-tabs { margin-bottom: 0; }
.service-management-tab-panel { min-width: 0; margin-top: 20px; }
.service-management-tab-panel > .panel:first-child { margin-top: 0; }
.panel { margin-top: 20px; padding: 0 0 24px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; overflow: visible; }
.panel + .panel { margin-top: 24px; }
.panel-head { margin-bottom: 16px; }
.metric-grid { gap: 0; margin-bottom: 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: white; }
.metric { padding: 16px 20px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: none; }
.metric:last-child { border-right: none; }
.metric-value { color: var(--ink); font-variant-numeric: tabular-nums; }
.service-card { border-radius: 6px; border-color: var(--line); background: white; box-shadow: none; }
.service-name { color: var(--ink); font-size: 14px; }
.service-group { letter-spacing: 0; }
.page-tabs { gap: 23px; margin: 0 0 24px; padding: 0; border: none; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; background: transparent; scrollbar-width: none; }
.page-tabs::-webkit-scrollbar { display: none; }
.page-tab { min-height: 44px; padding: 10px 0 12px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; color: var(--muted); background: transparent; }
.page-tab:hover { background: none; color: var(--ink); }
.page-tab.active { color: var(--accent-strong); font-weight: 600; background: none; border-bottom-color: var(--accent); box-shadow: none; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 6px; min-height: 34px; padding: 7px 11px; border-radius: 5px; border-color: #dce0e2; color: #50575c; font-size: 13px; line-height: 1.4; box-shadow: none; background: white; transition: background .15s, border-color .15s; }
.button:hover:not(:disabled) { border-color: var(--accent-border); background: var(--accent-soft); box-shadow: none; transform: none; }
.button.primary { border-color: var(--accent-border); color: var(--accent-ink); background: var(--accent-fill); box-shadow: none; }
.button.primary:hover:not(:disabled) { color: var(--accent-ink); background: var(--accent-fill-hover); }
.button.danger { color: var(--bad); border-color: #eccfcf; }
.icon-button { width: 32px; height: 32px; min-height: 32px; flex: 0 0 32px; padding: 6px; border-color: transparent; }
.field input, .field select, .field textarea, .login-form input, .token-form input { border-color: #dce0e2; border-radius: 5px; background: white; padding: 9px 11px; }
.field input:focus, .field select:focus, .field textarea:focus,
.login-form input:focus, .token-form input:focus,
.redeem-code-toolbar input:focus, .redeem-code-toolbar select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }
.redeem-code-toolbar { border-color: var(--line); background: #f7f8f9; }
.redeem-code-toolbar input, .redeem-code-toolbar select { border-color: #dce0e2; }
.monitor-state-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 140px;
  margin: 0 0 18px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--ok);
  background: var(--surface);
}
.monitor-state-banner.emergency {
  border-left-color: var(--bad);
}
.monitor-state-banner.unknown { border-left-color: var(--muted); }
.monitor-state-copy { display: grid; gap: 5px; min-width: 0; }
.monitor-eyebrow { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .08em; }
.monitor-state-copy strong { color: var(--ok-ink); font-size: 40px; font-weight: 750; line-height: 1.2; }
.monitor-state-banner.emergency .monitor-state-copy strong { color: var(--bad); }
.monitor-state-banner.unknown .monitor-state-copy strong { color: var(--muted); }
.monitor-state-copy span:last-child { color: var(--muted); font-size: 12px; }
#server-badge.monitor-state-badge { flex: 0 0 auto; padding: 12px 20px; border-radius: 6px; font-size: 24px; font-weight: 700; line-height: 1.3; gap: 10px; }
#server-badge.monitor-state-badge::before { width: 6px; height: 6px; }
#server-last-check, #server-next-check { color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.6; }
.monitor-metrics { margin-bottom: 18px; }
.monitor-control-panel .panel-head { align-items: center; }
.monitor-control-panel .panel-head > div:first-child { min-width: 0; }
.monitor-control-panel .section-note { margin: 5px 0 0; }
.monitor-control-panel .form-actions { margin: 0; }
.monitor-config-state { color: var(--muted); font-size: 12px; }
.monitor-platform-table { min-width: 760px; }
.monitor-platform-table td:nth-child(2) { color: var(--muted); font: 12px/1.5 var(--font-mono); word-break: break-all; }
.monitor-platform-table td:nth-child(5) { white-space: nowrap; }
#page-server-monitor .page-tabs { margin-bottom: 16px; }
#page-server-monitor .monitor-metrics { grid-template-columns: repeat(6, minmax(0, 1fr)); }
#page-server-monitor .monitor-metrics .metric { padding: 12px 14px; }
.monitor-tab-content { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.monitor-tab-content > .panel:first-child { margin-top: 0; }
.monitor-tab-content > .panel:last-child { padding-bottom: 0; border-bottom: 0; }
.monitor-tab-content .panel-head { margin-bottom: 12px; }
.monitor-tab-content .section-note { margin: 5px 0 0; }
.monitor-log-console { height: 360px; overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); font: 12px/1.7 var(--font-mono); }
.monitor-log-entry { display: grid; grid-template-columns: 152px 60px minmax(90px, .35fr) minmax(200px, 1fr); align-items: start; gap: 12px; min-width: 580px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.monitor-log-entry time { color: var(--muted); font-size: 11px; }
.monitor-log-entry > .badge { justify-self: start; }
.monitor-log-entry strong, .monitor-log-message { overflow-wrap: anywhere; }
.monitor-log-message { white-space: pre-wrap; }
.monitor-log-empty { margin: 0; padding: 24px; color: var(--muted); }
.monitor-emergency-grid { display: grid; grid-template-columns: minmax(220px, .65fr) minmax(0, 1.6fr); gap: 24px; align-items: start; }
.monitor-emergency-grid > .panel { min-width: 0; margin: 0; padding: 0; border: 0; }
.monitor-access-log { height: 280px; overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.monitor-access-log th { position: sticky; top: 0; z-index: 1; }
.monitor-emergency-table { min-width: 780px; }
.monitor-emergency-table td { white-space: nowrap; }
@media (max-width: 1100px) {
  #page-server-monitor .monitor-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .monitor-emergency-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  #page-server-monitor .monitor-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .monitor-tab-content { padding: 12px; }
  .monitor-log-console { height: 320px; }
  .monitor-state-banner { align-items: flex-start; flex-direction: column; padding: 18px; }
  .monitor-state-copy strong { font-size: 32px; }
  #server-badge.monitor-state-badge { padding: 9px 14px; font-size: 20px; }
  .monitor-state-badge { align-self: flex-start; }
  .monitor-control-panel .panel-head { align-items: flex-start; }
  .monitor-control-panel .form-actions { width: 100%; }
}
.redeem-source { border-color: var(--accent-border); }
.form-grid { gap: 18px; }
.form-actions { gap: 8px; }
.section-note { margin: 10px 0 12px; }
.scheduler-actions { margin: 0 0 20px; }
#checkin-product-field { flex-direction: row; align-items: center; gap: 10px; margin: 0 0 20px; }
#checkin-product-field select { width: 145px; padding-block: 6px; }
.table-wrap { border: 1px solid var(--line); border-radius: 5px; background: white; }
th { background: #f7f8f9; color: #7c8287; font-size: 11px; }
th, td { border-color: var(--line); padding: 12px; }
td { font-size: 13px; }
tbody tr:last-child > td { border-bottom: 0; }
tbody tr:hover { background: #fdfbf6; }
.share-browser-note { margin: 4px 0 0; }
.share-folder-button, .share-navigation-button { justify-content: flex-start; color: var(--accent-strong); }
.share-folder-button .lucide, .share-navigation-button .lucide, .share-type .lucide, .share-file-name .lucide { width: 15px; height: 15px; flex: 0 0 auto; }
.share-folder-button .share-folder-action { margin-left: 2px; color: var(--muted); font-size: 11px; }
.share-navigation-button { color: var(--muted); }
.share-file-type { white-space: nowrap; }
.share-type, .share-file-name { display: inline-flex; align-items: center; gap: 6px; }
.share-type .lucide, .share-file-name .lucide { color: var(--muted); }
.badge, .pill { font-size: 11px; font-weight: 500; letter-spacing: 0; border-radius: 4px; }
.badge { padding: 3px 6px; }
.badge::before { width: 5px; height: 5px; }
.empty { padding: 35px 18px; border: 0; background: white; }
.account-filters { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.search-field { display: flex; align-items: center; gap: 8px; width: min(340px, 100%); min-width: 0; padding: 8px 10px; border: 1px solid #dce0e2; border-radius: 5px; color: #91989d; background: white; }
.search-field:focus-within { border-color: var(--accent); }
.search-field input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 12px; }
.account-filters select { min-width: 105px; min-height: 35px; padding: 6px 10px; border: 1px solid #dce0e2; border-radius: 5px; background: white; color: var(--ink); font-size: 12px; }
.account-platform-tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid #dce0e2; border-radius: 8px; background: #f2f4f5; }
.account-platform-tabs .platform-tab { padding: 5px 16px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; }
.account-platform-tabs .platform-tab:hover { color: var(--ink); }
.account-platform-tabs .platform-tab.active { background: white; color: var(--accent-strong); box-shadow: 0 1px 3px rgba(24, 34, 48, .12); }
.account-card-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 600px), 1fr)); gap: 14px; align-items: start; }
.account-card { display: flex; width: 100%; min-width: 0; height: auto; min-height: 0; flex-direction: column; overflow: hidden; padding: 0 20px 9px; border: 1px solid #bcd6f6; border-top: 2px solid #5795f2; border-radius: 12px; background: #fff; box-shadow: 0 7px 20px rgba(56, 104, 164, .08); transition: box-shadow .18s, border-color .18s, transform .18s; }
.account-card:hover { border-color: #8eb9f4; box-shadow: 0 11px 26px rgba(56, 104, 164, .14); transform: translateY(-1px); }
.account-card.tone-warn { border-top-color: var(--warn); }
.account-card.tone-bad { border-top-color: var(--bad); }
.account-card.tone-unknown { border-top-color: #9aa4ad; }
.account-card.current-login { border: 2px solid #1769d3; border-top: 4px solid #0d58bf; background: #f1f7ff; box-shadow: 0 0 0 3px #d7e8ff, 0 12px 28px rgba(23, 105, 211, .2); }
.account-card.current-login .account-name { color: #1858b5; }
.account-card.current-login .account-status-dot { background: #2569d6; box-shadow: 0 0 0 4px #dceaff; }
.account-card.current-login .credit-panel { background: #e8f2ff; }
.account-card .badge.current { color: #fff; background: #2569d6; border-color: #2569d6; font-weight: 700; }
.account-card-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; min-width: 0; min-height: 48px; padding: 0; border-bottom: 1px solid #e7eef7; }
.account-card-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.account-status-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #5795f2; box-shadow: 0 0 0 4px #edf4ff; }
.tone-warn .account-status-dot { background: var(--warn); box-shadow: 0 0 0 4px #fff3dd; }
.tone-bad .account-status-dot { background: var(--bad); box-shadow: 0 0 0 4px #ffebeb; }
.account-card-title { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.account-card .account-name { overflow-wrap: anywhere; color: var(--ink); font-size: 15px; font-weight: 700; }
.account-card-status { display: flex; align-items: center; justify-content: flex-end; gap: 5px; min-width: 0; flex-wrap: wrap; }
.account-card .pill[data-platform="trae"] { color: #9b6714; background: #fff3d6; border-color: #f0d598; font-weight: 700; }
.account-card .pill[data-platform="workbuddy"] { color: #6650a4; background: #f0edff; border-color: #d4cbf4; font-weight: 700; }
.account-expiry { display: inline-flex; align-items: center; gap: 4px; min-width: 0; color: var(--muted); font-size: 10px; white-space: nowrap; }
.account-expiry > .lucide { width: 12px; height: 12px; flex: 0 0 12px; }
.account-expiry .alert-dot, .account-expiry .expiry-note { overflow: hidden; text-overflow: ellipsis; }
.account-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 43px; padding-top: 8px; border-top: 1px solid #e7eef7; flex-wrap: wrap; }
.account-card-actions-main, .account-card-actions-side { display: flex; align-items: center; gap: 5px; min-width: 0; flex-wrap: wrap; }
.account-card-actions .button { min-height: 29px; padding: 5px 9px; border-radius: 6px; font-size: 11px; }
.account-card-actions .button .lucide { width: 13px; height: 13px; flex: 0 0 13px; }
.account-card-actions .button[data-account-run] { color: #fff; border-color: #286fe0; background: #286fe0; font-weight: 700; }
.account-card-actions .button[data-account-run]:hover:not(:disabled) { background: #1b5fc9; border-color: #1b5fc9; }
.account-card-actions .button[data-account-refresh] { color: #4f6278; border-color: #d6dde6; background: #f3f6f9; font-weight: 600; }
.account-card-actions .button[data-account-product="trae-cn"] { color: #9a6718; border-color: #eed39b; background: #fff5df; font-weight: 600; }
.account-card-actions .button[data-account-capture], .account-card-actions .button[data-account-chat] { color: #6650a4; border-color: #d6cbf1; background: #f3efff; font-weight: 600; }
.account-card-actions .button[data-account-edit] { color: #53677c; border-color: #d4dde7; background: #eef2f6; font-weight: 600; }
.account-card-actions .button[data-account-refresh]:hover:not(:disabled), .account-card-actions .button[data-account-switch]:hover:not(:disabled), .account-card-actions .button[data-account-capture]:hover:not(:disabled), .account-card-actions .button[data-account-chat]:hover:not(:disabled), .account-card-actions .button[data-account-edit]:hover:not(:disabled) { color: #1f5da9; border-color: #9fc3f1; background: #edf5ff; }
.account-card-actions .button.danger { color: var(--bad); border-color: #f0caca; background: #fff7f7; font-weight: 600; }
.account-card-actions .button.danger:hover:not(:disabled) { background: #ffeded; border-color: var(--bad); }
.account-card-actions-main { flex: 1 1 auto; flex-wrap: nowrap; gap: 3px; overflow: hidden; }
.account-card-actions-side { flex: 0 0 auto; gap: 4px; }
.account-card-actions .button { flex: 0 0 auto; padding-inline: 7px; font-size: 10px; gap: 4px; white-space: nowrap; }
.account-card-body { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(260px, .92fr); align-items: stretch; gap: 22px; min-height: 0; flex: 0 0 auto; padding: 10px 0 9px; }
.account-details { min-width: 0; }
.account-section-label { margin: 0 0 5px; color: #7990aa; font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.account-detail-list { border-top: 1px solid #edf2f7; }
.account-detail-row { display: grid; grid-template-columns: 22px 108px minmax(0, 1fr); align-items: center; gap: 7px; min-width: 0; min-height: 32px; border-bottom: 1px solid #edf2f7; color: #36536f; font-size: 11px; }
.account-detail-row > .lucide { width: 15px; height: 15px; padding: 3px; box-sizing: content-box; border-radius: 6px; color: #6f9dd0; background: #eff6ff; }
.account-detail-label { color: #71869b; white-space: nowrap; }
.account-detail-row strong, .account-detail-row code { min-width: 0; overflow: hidden; color: #31516f; font-size: 11px; font-weight: 600; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.account-detail-row code { font-family: var(--font-mono); font-weight: 500; }
.account-detail-row.detail-ok strong { color: #16735c; }
.account-detail-row.detail-bad strong { color: var(--bad); }
.account-detail-row.detail-muted strong { color: #8495a5; font-weight: 500; }
.credit-panel { display: flex; min-width: 0; flex-direction: column; padding: 12px; border-radius: 12px; background: #f2f7fd; }
.credit-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #7690ac; font-size: 10px; font-weight: 700; }
.credit-panel-head span:last-child { color: #3979ca; font-weight: 600; }
.credit-total { display: flex; align-items: baseline; gap: 5px; min-width: 0; margin: 12px 0 6px; color: #66809a; font-size: 11px; }
.credit-total strong { margin-left: auto; color: #2569d6; font-size: 20px; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.credit-total-limit { color: #8da1b4; font-size: 10px; white-space: nowrap; }
.credit-progress { height: 7px; overflow: hidden; border-radius: 99px; background: #dbe7f5; }
.credit-progress span { display: block; height: 100%; border-radius: inherit; background: #4a8bea; }
.credit-progress-note { margin-top: 6px; color: #587798; font-size: 10px; text-align: right; }
.credit-breakdown { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; min-width: 0; margin-top: auto; padding-top: 10px; }
.credit-item { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 3px 6px; min-width: 0; min-height: 62px; padding: 9px 8px; border-radius: 8px; background: rgba(255,255,255,.72); }
.credit-item > .lucide { width: 14px; height: 14px; grid-row: 1 / span 2; color: #df9e2b; }
.credit-item span { min-width: 0; overflow: hidden; color: #7990a8; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.credit-item strong { min-width: 0; overflow: hidden; color: #36536f; font-size: 14px; font-weight: 750; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.credit-item-special > .lucide { color: #8b73d6; }
.checkin-operation-log { min-height: 132px; margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #f8fafb; }
.checkin-operation-log-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12px; }
.checkin-operation-log-head strong { color: var(--ink); font-size: 13px; font-weight: 600; }
.checkin-operation-log ol { height: 88px; margin: 8px 0 0; padding: 0 8px 0 22px; overflow: auto; color: var(--muted); font-size: 12px; }
.checkin-operation-log li + li { margin-top: 4px; }
.checkin-operation-log li.success, .checkin-operation-log li.done { color: var(--ok); }
.checkin-operation-log li.error, .checkin-operation-log li.failed { color: var(--bad); }
.checkin-login-guide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.checkin-login-guide-item { min-width: 0; padding: 13px 14px; border: 1px solid var(--line); background: #fbfcfd; }
.checkin-login-guide-item h4 { margin: 0 0 5px; color: var(--ink); font-size: 13px; }
.checkin-login-guide-item p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.checkin-chat-manager-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 16px; }
.checkin-chat-manager-flow-item { min-width: 0; padding: 10px 12px; border-left: 3px solid var(--accent); background: #f7fafb; }
.checkin-chat-manager-flow-item strong { display: block; margin-bottom: 3px; color: var(--ink); font-size: 12px; }
.checkin-chat-manager-flow-item span { color: var(--muted); font-size: 11px; line-height: 1.5; }
.checkin-chat-manager-filters { margin-top: 14px; }
.checkin-chat-manager-actions .button { white-space: nowrap; }
.checkin-chat-manager-table { margin-top: 12px; }
.account-editor { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(480px, 100%); height: 100dvh; max-height: 100dvh; max-width: 100%; padding: 24px; border: 0; border-left: 1px solid var(--line); border-radius: 0; background: white; color: var(--ink); box-shadow: -12px 0 40px #24272914; }
.account-editor::backdrop { background: #20252855; }
.account-editor .drawer-head { margin-bottom: 28px; }
.account-editor .drawer-head h2 { font-size: 18px; }
.account-editor .form-grid { grid-template-columns: 1fr; }
.account-editor .form-actions { position: sticky; bottom: -24px; margin: 0 -24px -24px; padding: 18px 24px; border-top: 1px solid var(--line); background: white; }
.auth-card { width: min(670px, 100%); padding: 36px; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 42px #24272909; }
.auth-method { padding: 18px 0; border: 0; background: none; }
.auth-method + .auth-method { padding-left: 20px; border-left: 1px solid var(--line); }
.auth-card h1 { font-size: 23px; }
.nav-backdrop { display: none; }
pre { background: #282c30; border-radius: 5px; }
.pre-light { background: #f4f5f6; }
.shell.nav-collapsed { grid-template-columns: 68px minmax(0, 1fr); }
.nav-collapsed .nav { padding-inline: 10px; }
.nav-collapsed .nav .brand { margin-inline: 6px; }
.nav-collapsed .nav .brand > .lucide { padding: 5px; }
.nav-collapsed .nav .nav-text { display: none; }
.nav-collapsed .nav .nav-label { height: 1px; margin: 20px 8px 10px; background: var(--line); overflow: hidden; font-size: 0; }
.nav-collapsed .nav button, .nav-collapsed .nav a { justify-content: center; }
@media (max-width: 1100px) {
  .dashboard-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .diagnostic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content { padding-inline: 24px; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 190px minmax(0, 1fr); }
  .brand { font-size: 15px; gap: 7px; }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-card-list { grid-template-columns: minmax(0, 1fr); }
  .account-card { width: 100%; }
}
@media (max-width: 700px) {
  .shell, .shell.nav-collapsed { display: block; }
  .nav { position: fixed; z-index: 51; top: 0; left: 0; bottom: 0; width: 244px; height: 100dvh; transform: translateX(-100%); visibility: hidden; padding: 24px 14px; }
  .shell.nav-open .nav { transform: none; visibility: visible; }
  .shell.nav-open .nav-backdrop { display: block; position: fixed; inset: 0; z-index: 50; border: 0; background: #20252855; }
  .nav-collapsed .nav .nav-text { display: inline; }
  .nav-collapsed .nav .nav-label { height: auto; font-size: 11px; background: none; }
  .nav-collapsed .nav button, .nav-collapsed .nav a { justify-content: flex-start; }
  .brand { display: flex; font-size: 17px; }
  .topbar { position: sticky; flex-direction: row; padding: 10px 14px; min-height: 56px; gap: 8px; }
  .top-heading { gap: 7px; }
  .page-title { font-size: 15px; }
  .top-actions { gap: 8px; }
  .auth-state { font-size: 11px; }
  #account-trigger { padding: 6px 8px; max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .content { padding: 14px 16px 32px; }
  .workspace-toolbar { margin-bottom: 18px; }
  .overview-heading { align-items: flex-end; gap: 8px; }
  .overview-heading h2 { font-size: 22px; }
  .overview-heading .alert-dot { font-size: 11px; }
  .dashboard-runtime .section-head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .dashboard-runtime-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; width: 100%; gap: 10px 12px; }
  .dashboard-runtime-batch { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; min-width: 0; }
  .dashboard-runtime-batch .button { width: 100%; }
  .dashboard-service-jump { grid-column: 1 / -1; justify-self: start; padding-left: 0; border-left: 0; }
  .dashboard-runtime-status { justify-content: flex-end; }
  .public-url-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .gold-site-actions { align-items: flex-start; flex-direction: column; gap: 10px; }
  .gold-site-actions .form-actions { width: 100%; }
  .platform-core-summary-head { align-items: flex-start; flex-direction: column; gap: 7px; }
  .platform-core-statuses { grid-template-columns: 1fr; }
  .platform-core-status + .platform-core-status { border-top: 1px solid var(--line); border-left: 0; }
  .diagnostic-grid { grid-template-columns: 1fr; gap: 12px; }
  .dashboard-service-grid { grid-template-columns: 1fr; }
  .summary { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 17px 0; gap: 0; margin-bottom: 24px; }
  .summary-item { padding: 0 12px; min-height: 84px; }
  .summary-label { font-size: 11px; gap: 5px; }
  .summary-label .lucide { display: none; }
  .summary-value { font-size: 28px; }
  .summary-caption { font-size: 10px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric { padding: 12px; }
  .metric:nth-child(2n) { border-right: 0; }
  .metric:nth-child(n+3) { border-top: 1px solid var(--line); }
  .panel { padding: 0 0 20px; border-radius: 0; }
  .panel-head > .muted { flex: initial; }
  .form-grid { grid-template-columns: 1fr; }
  .page-tabs { gap: 22px; margin-inline: 0; }
  .account-filters { align-items: stretch; }
  .account-filters select { min-width: 100px; width: 100px; padding-inline: 6px; }
  .account-card-list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .account-card { width: 100%; height: auto; min-height: 0; padding: 0 14px 12px; }
  .account-card-head { grid-template-columns: 1fr; align-items: start; gap: 8px; min-height: 0; padding: 12px 0 10px; }
  .account-card-status { justify-content: flex-start; }
  .account-expiry { width: 100%; }
  .account-card-body { grid-template-columns: 1fr; gap: 12px; padding: 12px 0; }
  .account-detail-row { grid-template-columns: 22px minmax(105px, 1fr) minmax(0, 1.2fr); }
  .credit-panel { min-height: 184px; }
  .account-card-actions { justify-content: flex-start; gap: 8px; }
  .account-card-actions-main { flex: 1 1 100%; flex-wrap: wrap; overflow: visible; gap: 5px; }
  .account-card-actions-side { flex: 0 0 auto; }
  .account-card-actions .button { padding: 5px 8px; font-size: 11px; }
  .account-card-actions-side { margin-left: auto; }
  .rss-filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rss-filter-bar input, .rss-filter-bar .button { grid-column: 1 / -1; }
  .rss-admin-grid { grid-template-columns: 1fr; }
  .rss-tab-panel .inline-form { width: 100%; }
  .checkin-login-guide, .checkin-chat-manager-flow { grid-template-columns: 1fr; }
  .auth-method + .auth-method { padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 420px) {
  .dashboard-runtime-actions { grid-template-columns: 1fr; }
  .dashboard-runtime-status { justify-content: flex-start; }
  .account-card-actions-side { margin-left: 0; }
  .account-card-actions-main, .account-card-actions-side { width: 100%; }
  .rss-filter-bar { grid-template-columns: 1fr; }
  .rss-filter-bar input, .rss-filter-bar .button { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

.redeem-owner-groups { display: grid; gap: 14px; }
.redeem-owner-group { overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.redeem-owner-group-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #f7f8f9; }
.redeem-owner-group-head > div { display: flex; align-items: baseline; gap: 10px; min-width: 0; flex-wrap: wrap; }
.redeem-owner-group-head strong { color: var(--ink); font-size: 14px; }
.redeem-owner-group-head .muted { overflow-wrap: anywhere; }
.redeem-owner-group .table-wrap { overflow-x: auto; border: 0; border-radius: 0; }
.redeem-owner-group .redeem-table-wide table { min-width: 820px; }
.redeem-owner-empty { padding: 28px 14px; border: 1px dashed var(--line); border-radius: 6px; background: #fff; text-align: center; }

.rss-module { min-width: 0; }
.rss-module > .section-head { margin-top: 0; }
.rss-module .status-success { color: var(--ok); }
.rss-module .error { color: var(--bad); }
.rss-filter-bar { display: grid; grid-template-columns: minmax(150px, .8fr) minmax(180px, 1fr) minmax(120px, .7fr) minmax(220px, 1.5fr) auto; align-items: end; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rss-filter-bar select, .rss-filter-bar input { min-width: 0; width: 100%; }
.rss-filter-bar .button { white-space: nowrap; }
.rss-preferences-bar { display: flex; align-items: center; gap: 10px 14px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.rss-preferences-bar > strong { flex: 0 0 auto; color: var(--ink); font-size: 13px; }
.rss-preferences-bar .tag-settings { display: flex; flex: 1 1 280px; min-width: 0; align-items: center; gap: 7px; flex-wrap: wrap; }
.rss-preferences-bar .check-row { display: inline-flex; align-items: center; gap: 6px; padding: 4px 7px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); background: #fff; font-size: 12px; cursor: pointer; }
.rss-preferences-bar .check-row:has(input:checked) { border-color: #9fc8bb; color: var(--accent-strong); background: var(--accent-soft); }
.rss-preferences-bar .check-row input { width: auto; min-width: 0; margin: 0; accent-color: var(--accent); }
.rss-preferences-bar .button { flex: 0 0 auto; }
.rss-article-toolbar { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 22px 0 9px; }
.rss-article-toolbar h3 { margin: 0; }
.rss-article-list { border-top: 1px solid var(--line); }
.rss-article-list .article-row { display: flex; width: 100%; min-height: 104px; align-items: center; gap: 16px; padding: 14px 4px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--ink); background: transparent; text-align: left; }
.rss-article-list .article-row:hover { background: #faf8f2; }
.rss-article-list .rss-article-cover { width: 112px; height: 76px; flex: 0 0 112px; border-radius: 4px; object-fit: cover; background: #f1f3f4; }
.rss-article-list .article-summary { display: grid; flex: 1 1 auto; min-width: 0; gap: 10px; }
.rss-article-list .article-summary strong { overflow-wrap: anywhere; font-size: 14px; }
.rss-article-list .article-meta { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; flex-wrap: wrap; }
.rss-article-list .article-meta time { font-variant-numeric: tabular-nums; }
.rss-article-list .article-time, .rss-article-dialog .article-time { display: inline-flex; align-items: baseline; gap: 4px; }
.rss-load-more { display: block; min-width: 120px; margin: 18px auto 0; }
.rss-admin-grid { display: grid; grid-template-columns: minmax(220px, .42fr) minmax(0, 1fr); gap: 16px; }
.rss-admin-grid .panel { min-width: 0; }
.tag-navigation-list { display: grid; gap: 4px; }
.tag-navigation-list .tag-navigation { display: flex; width: 100%; justify-content: flex-start; padding: 9px 10px; border: 0; border-radius: 5px; color: var(--ink); background: transparent; text-align: left; }
.tag-navigation-list .tag-navigation:hover, .tag-navigation-list .tag-navigation.active { color: var(--accent-strong); background: var(--accent-soft); }
.rss-article-dialog { width: min(940px, calc(100% - 32px)); }
.rss-article-dialog h2 { margin: 14px 0; overflow-wrap: anywhere; }
.rss-article-dialog .article-meta { display: flex; gap: 10px; color: var(--muted); font-size: 12px; flex-wrap: wrap; }
.rss-article-frame { display: block; width: 100%; min-height: 520px; margin-top: 16px; border: 1px solid var(--line); background: #fff; }
.rss-tab-panel { min-width: 0; }
.rss-tab-panel > .panel-head { margin-top: 20px; }
.rss-tab-panel .inline-form { display: flex; min-width: min(100%, 620px); gap: 8px; flex-wrap: wrap; }
.rss-tab-panel .inline-form input { flex: 1 1 180px; min-width: 0; }
.rss-tab-panel small { display: block; margin-top: 4px; color: var(--muted); overflow-wrap: anywhere; }
.rss-tab-panel .row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.rss-tab-panel .row-actions .button { min-height: 30px; padding: 4px 8px; }
.rss-tab-panel .form-actions { margin-bottom: 0; }
@media (max-width: 700px) {
  .rss-filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rss-filter-bar input, .rss-filter-bar .button { grid-column: 1 / -1; }
  .rss-preferences-bar > strong { flex-basis: 100%; }
  .rss-admin-grid { grid-template-columns: 1fr; }
  .rss-tab-panel .inline-form { width: 100%; }
}
@media (max-width: 420px) {
  .rss-filter-bar { grid-template-columns: 1fr; }
  .rss-filter-bar input, .rss-filter-bar .button { grid-column: auto; }
  .rss-preferences-bar .tag-settings { flex-basis: 100%; }
  .rss-article-list .article-row { min-height: 88px; gap: 10px; padding-inline: 0; }
  .rss-article-list .rss-article-cover { width: 88px; height: 62px; flex-basis: 88px; }
}

/* Native desktop navigation owns the surrounding application chrome. */
.desktop-embedded .shell,
.desktop-embedded .shell.nav-collapsed { display: block; min-height: 100dvh; }
.desktop-embedded .nav,
.desktop-embedded .topbar,
.desktop-embedded .workspace-toolbar,
.desktop-embedded .nav-backdrop { display: none !important; }
.desktop-embedded .main { width: 100%; min-width: 0; margin: 0; }
.desktop-embedded .content { width: 100%; max-width: none; margin: 0; padding: 12px 16px 24px; }
.desktop-embedded .page > .section-head:first-child { margin-top: 0; }
.desktop-embedded .auth-screen { min-height: 100dvh; padding: 16px; }
