:root { --bg:#0e1419; --nav:#111a21; --panel:#151f27; --line:#2a3943; --line-soft:#202d35; --text:#e4edf2; --muted:#8fa1ac; --teal:#2ba68d; --blue:#3b82f6; --red:#dc6b6b; --amber:#d7a84d; }
* { box-sizing:border-box; }
html, body { height:100%; }
body { margin:0; color:var(--text); background:var(--bg); font:14px "Segoe UI","Microsoft YaHei",sans-serif; letter-spacing:0; }
button, input, select, textarea { font:inherit; }
button, .button { border:1px solid var(--line); border-radius:4px; color:var(--text); background:#18242d; cursor:pointer; text-decoration:none; }
button:hover, .button:hover { border-color:#4c6675; background:#1e2d37; }
.primary { border-color:#288e7a; color:white; background:#237c6a; }
.primary:hover { background:#2a927c; }
.hidden { display:none !important; }
.admin-shell { display:grid; grid-template-columns:230px minmax(0,1fr); min-height:100vh; }
.admin-nav { position:sticky; top:0; display:flex; height:100vh; flex-direction:column; border-right:1px solid var(--line); background:var(--nav); }
.admin-brand { display:flex; align-items:center; gap:10px; min-height:70px; padding:14px 16px; border-bottom:1px solid var(--line); }
.admin-brand > div, .login-mark { display:grid; width:34px; height:34px; place-items:center; border:1px solid #2c7669; border-radius:5px; color:#d7fff7; background:#17463f; font-weight:800; }
.admin-brand span, .admin-brand small { display:block; }
.admin-brand small { margin-top:3px; color:var(--muted); font-size:9px; }
.admin-nav nav { display:grid; min-height:0; gap:2px; padding:15px 10px; overflow-y:auto; }
.admin-nav nav button { padding:10px 12px; border-color:transparent; color:var(--muted); background:transparent; text-align:left; }
.admin-nav nav button.active { border-color:#2c4f4a; color:#eafffa; background:#172b29; }
.admin-nav-foot { display:grid; gap:12px; margin-top:auto; padding:14px; border-top:1px solid var(--line); }
.admin-nav-foot a { color:#a9bdc7; text-decoration:none; }
.admin-nav-foot > div { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.admin-nav-foot button { padding:4px 8px; color:var(--muted); background:transparent; }
.admin-main { min-width:0; }
.admin-main > header { display:flex; position:sticky; z-index:2; top:0; min-height:70px; align-items:center; justify-content:space-between; padding:12px 26px; border-bottom:1px solid var(--line); background:rgba(14,20,25,.96); }
.admin-main > header div { display:flex; align-items:center; gap:10px; }
.admin-main h1 { margin:0; font-size:18px; }
#admin-menu { display:none; padding:6px 9px; }
#admin-clock { color:var(--muted); font-size:12px; }
.admin-view { display:none; padding:26px; }
.admin-view.active { display:block; }
.monitor-band { margin-bottom:18px; border:1px solid var(--line); border-top:2px solid #2ba68d; background:#111a21; }
.monitor-heading { display:flex; min-height:48px; align-items:center; justify-content:space-between; gap:12px; padding:10px 14px; border-bottom:1px solid var(--line-soft); }
.monitor-heading > div { display:flex; align-items:center; gap:8px; }
.monitor-heading > span { color:var(--muted); font-size:10px; }
.health-dot { width:8px; height:8px; flex:0 0 8px; border-radius:50%; background:var(--amber); }
.health-dot.healthy { background:#35bd82; box-shadow:0 0 0 3px rgba(53,189,130,.12); }
.health-dot.unhealthy { background:#dc6b6b; box-shadow:0 0 0 3px rgba(220,107,107,.12); }
.node-monitor-wrap { overflow-x:auto; }
.node-monitor-grid { display:grid; min-width:1040px; grid-template-columns:140px 1.25fr 1.2fr repeat(5,minmax(105px,1fr)); border-top:1px solid var(--line-soft); }
.node-monitor-labels { border-top:0; color:#718590; background:#0f181e; font-size:9px; }
.node-monitor-grid > div, .node-monitor-labels > span { min-width:0; padding:12px 14px; border-right:1px solid var(--line-soft); }
.node-monitor-grid > :last-child { border-right:0; }
.node-monitor-grid strong, .node-monitor-grid small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.node-monitor-grid strong { font-size:13px; font-variant-numeric:tabular-nums; }
.node-monitor-grid small { margin-top:5px; color:#718590; font-size:9px; }
.node-identity { display:flex; align-items:center; gap:9px; }
.node-dot { width:8px; height:8px; flex:0 0 8px; border-radius:50%; background:var(--amber); box-shadow:0 0 0 3px rgba(215,168,77,.1); }
.node-dot.healthy { background:#35bd82; box-shadow:0 0 0 3px rgba(53,189,130,.12); }
.node-dot.unhealthy { background:#dc6b6b; box-shadow:0 0 0 3px rgba(220,107,107,.12); }
.node-monitor-grid.node-unavailable { opacity:.62; }
.metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.metric-card { position:relative; min-width:0; min-height:116px; padding:19px 20px 17px; overflow:hidden; border:1px solid var(--line); border-radius:6px; background:#121d26; }
.metric-card::before { position:absolute; inset:0 auto 0 0; width:3px; background:var(--metric-color,#5b8def); content:""; }
.metric-card span, .metric-card strong, .metric-card small { display:block; }
.metric-card span { color:var(--muted); font-size:11px; }
.metric-card strong { margin-top:9px; overflow:hidden; color:#edf5f8; font-size:25px; text-overflow:ellipsis; white-space:nowrap; }
.metric-card small { margin-top:5px; color:#718590; font-size:10px; }
.metric-card small b { color:#65d7b4; font-weight:650; }
.metric-blue { --metric-color:#4c8df6; } .metric-green { --metric-color:#35bd82; } .metric-cyan { --metric-color:#34b8c8; } .metric-violet { --metric-color:#9874e8; }
.metric-amber { --metric-color:#d9a441; } .metric-teal { --metric-color:#2ba68d; } .metric-red { --metric-color:#d96976; } .metric-slate { --metric-color:#8ba2af; }
.dashboard-controls { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:20px 0; padding:12px 14px; border:1px solid var(--line); background:#111a21; }
.dashboard-controls > div { display:flex; align-items:center; gap:12px; color:var(--muted); font-size:11px; }
.dashboard-controls > button { padding:7px 11px; }
.range-control { display:flex; border:1px solid var(--line); border-radius:4px; overflow:hidden; }
.range-control button { min-width:72px; padding:6px 10px; border:0; border-right:1px solid var(--line); border-radius:0; color:var(--muted); background:#10171d; }
.range-control button:last-child { border-right:0; }
.range-control button.active { color:#eafffa; background:#1d4a43; }
.dashboard-charts { display:grid; grid-template-columns:minmax(0,1fr); gap:18px; }
.chart-panel, .recent-panel { min-width:0; border:1px solid var(--line); border-radius:6px; background:#111b24; }
.panel-heading { display:flex; min-height:62px; align-items:center; justify-content:space-between; gap:14px; padding:14px 16px; border-bottom:1px solid var(--line-soft); }
.panel-heading h2 { margin:0; font-size:14px; }
.panel-heading p { margin:4px 0 0; color:var(--muted); font-size:10px; }
.panel-heading > span { color:var(--muted); font-size:10px; }
.model-chart-layout { display:grid; grid-template-columns:190px minmax(0,1fr); min-height:280px; align-items:center; gap:16px; padding:18px; }
.donut-wrap { display:grid; place-items:center; }
.donut-chart { display:grid; width:168px; height:168px; place-items:center; border-radius:50%; background:#263640; }
.donut-chart::before { grid-area:1/1; width:94px; height:94px; border:1px solid #344953; border-radius:50%; background:#111b24; content:""; }
.donut-chart > div { z-index:1; grid-area:1/1; text-align:center; }
.donut-chart strong, .donut-chart span { display:block; }
.donut-chart strong { max-width:82px; overflow:hidden; font-size:20px; text-overflow:ellipsis; white-space:nowrap; }
.donut-chart span { margin-top:3px; color:var(--muted); font-size:9px; }
.model-legend { min-width:0; }
.model-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; padding:9px 2px; border-bottom:1px solid var(--line-soft); }
.model-row:last-child { border-bottom:0; }
.model-row > div { min-width:0; }
.model-row strong, .model-row span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.model-row strong { position:relative; padding-left:14px; font-size:11px; }
.model-row strong::before { position:absolute; top:4px; left:0; width:7px; height:7px; border-radius:50%; background:var(--series-color); content:""; }
.model-row span { margin-top:4px; color:var(--muted); font-size:9px; }
.model-row b { color:#bdd0d8; font-size:10px; white-space:nowrap; }
.chart-legend { display:flex; gap:13px; color:var(--muted); font-size:9px; }
.chart-legend span::before { display:inline-block; width:7px; height:7px; margin-right:5px; border-radius:50%; background:currentColor; content:""; }
.chart-legend .input { color:#4c8df6; } .chart-legend .output { color:#35bd82; } .chart-legend .cache { color:#d9a441; }
.canvas-wrap { position:relative; height:280px; padding:14px; }
#token-trend { display:block; width:100%; height:100%; }
.chart-empty { position:absolute; inset:0; display:grid; place-items:center; margin:0; color:var(--muted); font-size:11px; }
.dashboard-lower { display:grid; grid-template-columns:minmax(420px,1.2fr) minmax(360px,.8fr); align-items:start; gap:18px; margin-top:18px; }
.recent-list { min-height:226px; padding:4px 16px 12px; }
.recent-row { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:14px; padding:12px 2px; border-bottom:1px solid var(--line-soft); }
.recent-row:last-child { border-bottom:0; }
.recent-row strong, .recent-row span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.recent-row strong { font-size:11px; } .recent-row span { margin-top:4px; color:var(--muted); font-size:9px; }
.recent-row b { color:#65d7b4; font-size:11px; white-space:nowrap; }
.dashboard-lower .dashboard-bands { grid-template-columns:1fr; gap:18px; margin-top:0; }
.dashboard-bands { display:grid; grid-template-columns:1fr 1fr; gap:22px; margin-top:24px; }
.dashboard-bands section { border-top:2px solid #326b65; }
.client-package-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin-bottom:18px; }
.panel-form, .generated-code-panel { display:grid; gap:14px; padding:18px; border:1px solid var(--line); background:var(--panel); }
.panel-form label { display:grid; gap:7px; color:var(--muted); }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.generated-code-panel { margin-top:18px; }
.generated-code-panel textarea { width:100%; min-height:220px; resize:vertical; font-family:Consolas,monospace; line-height:1.65; }
.modal-note { margin:0; color:var(--muted); }
.dashboard-bands h2 { margin:0; padding:14px 0; font-size:14px; }
dl { margin:0; border-top:1px solid var(--line); }
dl div { display:flex; justify-content:space-between; padding:13px 4px; border-bottom:1px solid var(--line-soft); }
dt { color:var(--muted); } dd { margin:0; } .healthy { color:#70d2b8; }
.toolbar { display:flex; align-items:center; gap:8px; margin-bottom:15px; }
.toolbar input { width:min(360px,100%); }
.toolbar button, .toolbar .button { padding:8px 12px; }
input, select, textarea { width:100%; padding:8px 9px; border:1px solid var(--line); border-radius:4px; outline:none; color:var(--text); background:#0e151a; }
select { appearance:none; padding-right:34px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='m3.5 5 3.5 3.5L10.5 5' fill='none' stroke='%239abbb4' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-position:right 10px center; background-repeat:no-repeat; background-size:14px; }
input:focus, select:focus, textarea:focus { border-color:#3c8b7d; box-shadow:0 0 0 2px rgba(43,166,141,.12); }
.table-wrap { max-width:100%; overflow:auto; border:1px solid var(--line); }
table { width:100%; min-width:1120px; border-collapse:collapse; background:#111a20; }
th, td { padding:10px 12px; border-bottom:1px solid var(--line-soft); text-align:left; vertical-align:middle; white-space:nowrap; }
th { position:sticky; z-index:1; top:0; color:#b8c8d0; background:#18242c; font-size:11px; font-weight:650; }
td { color:#d0dce2; font-size:12px; }
td small { display:block; margin-top:4px; color:var(--muted); }
th:last-child { position:sticky; z-index:3; right:0; min-width:190px; background:#18242c; box-shadow:-10px 0 18px rgba(5,10,14,.2); }
td.actions { position:sticky; z-index:2; right:0; min-width:190px; background:#111a20; box-shadow:-10px 0 18px rgba(5,10,14,.16); white-space:nowrap; }
tbody tr:hover td { background:#142029; }
tbody tr:hover td.actions { background:#142029; }
td.actions button { margin:2px 4px 2px 0; padding:5px 8px; font-size:11px; }
td.actions button:disabled { cursor:not-allowed; opacity:.45; }
.client-code-value { min-width:190px; font-family:Consolas,monospace; }
td.actions a { display:inline-block; margin:2px 4px 2px 0; padding:5px 8px; border:1px solid #2c6c5c; border-radius:4px; color:#83d9bd; background:#142a27; font-size:11px; text-decoration:none; }
td.actions a:hover { border-color:#43a88b; color:#d8fff2; background:#1b4038; }
.task-result-detail { min-width:300px; max-width:460px; white-space:normal; line-height:1.55; }
.task-result-detail strong { display:block; color:#e9a3aa; font-size:11px; font-weight:600; overflow-wrap:anywhere; }
.task-result-detail small { display:block; margin-top:5px; color:var(--muted); font-family:Consolas,monospace; white-space:normal; overflow-wrap:anywhere; }
.task-result-detail .table-download { display:inline-block; margin:0 8px 6px 0; }
.danger { border-color:#704247; color:#ffc7cc; background:#392226; }
.status { display:inline-block; padding:3px 6px; border:1px solid #3a5964; border-radius:3px; color:#aec4cd; font-size:10px; }
.status.active, .status.paid { border-color:#2c6c5c; color:#83d9bd; }
.status.published, .status.approved { border-color:#2c6c5c; color:#83d9bd; }
.status.reviewed, .status.applied { border-color:#2c6c5c; color:#83d9bd; }
.status.disabled, .status.deleted, .status.refunded, .status.archived { border-color:#704247; color:#e9a3aa; }
.status.rejected { border-color:#704247; color:#e9a3aa; }
.status.pending { border-color:#795e2e; color:#e2bd70; }
.status.provisioning { border-color:#795e2e; color:#e2bd70; }
.status.submitted { border-color:#795e2e; color:#e2bd70; }
.usage-meter { display:grid; min-width:180px; gap:6px; }
.usage-meter-head { display:flex; align-items:baseline; justify-content:space-between; gap:12px; font-variant-numeric:tabular-nums; }
.usage-meter-head strong { color:#e2edf1; font-size:12px; }
.usage-meter-head span { color:#82949e; font-size:9px; }
.usage-meter-track { height:7px; overflow:hidden; border:1px solid #2b3d47; border-radius:3px; background:#0c1419; }
.usage-meter-track span { display:block; height:100%; border-radius:2px; background:#2ba68d; transition:width .2s ease; }
.usage-meter.warning .usage-meter-track span { background:#d7a84d; }
.usage-meter.exhausted .usage-meter-track span { background:#dc6b6b; }
.usage-meter.exhausted .usage-meter-head span { color:#e9a3aa; }
.inline-form { display:grid; grid-template-columns:repeat(4,minmax(150px,1fr)); align-items:end; gap:10px; margin-bottom:22px; padding-bottom:22px; border-bottom:1px solid var(--line); }
.agent-create { grid-template-columns:repeat(3,minmax(180px,1fr)); }
.agent-create button { align-self:end; }
.agent-site-status { min-height:22px; margin:-10px 0 14px; }
form label { display:grid; gap:6px; color:#aebec6; font-size:11px; }
.inline-form button { height:34px; padding:7px 12px; }
.notice { margin-bottom:18px; padding:13px; border:1px solid #377466; color:#d6f5ed; background:#132a27; white-space:pre-wrap; }
.announcement-form { display:grid; max-width:880px; gap:14px; margin-bottom:24px; padding-bottom:24px; border-bottom:1px solid var(--line); }
.announcement-form .announcement-heading { min-height:0; padding:0 0 12px; }
.announcement-form textarea { min-height:150px; resize:vertical; line-height:1.65; }
.announcement-form-actions { display:flex; align-items:center; gap:10px; }
.announcement-form-actions button { padding:9px 16px; }
.announcement-form-actions .form-status { margin-left:0; }
.site-banner-form { max-width:1080px; padding:18px; border:1px solid var(--line); background:#111a21; }
.site-banner-form .announcement-heading { border-bottom:1px solid var(--line-soft); }
.site-banner-state { flex:0 0 auto; padding:4px 7px; border:1px solid #704247; border-radius:3px; color:#e9a3aa; font-size:10px; }
.site-banner-state.enabled { border-color:#2c6c5c; color:#83d9bd; }
.site-banner-toggle { display:flex; min-height:34px; align-items:center; gap:8px; color:var(--text); }
.site-banner-toggle input { width:16px; height:16px; accent-color:var(--teal); }
.site-banner-form textarea { min-height:82px; }
.site-banner-preview { display:flex; min-height:48px; align-items:center; gap:12px; padding:10px 14px; border:1px solid #2f4651; border-radius:8px; color:#9eabb1; background:#111a21; }
.site-banner-preview > span { flex:0 0 auto; color:#65b49d; font-size:19px; }
.site-banner-preview strong { min-width:0; color:#d7e2dd; font-size:12px; line-height:1.65; white-space:pre-wrap; overflow-wrap:anywhere; }
.table-empty { height:120px; color:var(--muted); text-align:center; }
.table-pagination { display:flex; min-height:48px; align-items:center; justify-content:space-between; gap:12px; color:var(--muted); font-size:11px; }
.table-pagination > div { display:flex; align-items:center; gap:10px; }
.table-pagination button { display:grid; width:32px; height:32px; place-items:center; padding:0; font-size:16px; }
.table-pagination button:disabled { cursor:not-allowed; opacity:.4; }
.table-pagination > div > span { min-width:64px; text-align:center; }
.feedback-admin-intro { max-width:920px; margin:0 0 18px; padding:12px 14px; border-left:3px solid #2ba68d; color:#aebec6; background:#132723; font-size:12px; line-height:1.65; }
.feedback-skill-form { display:grid; max-width:880px; gap:14px; margin-bottom:24px; padding:18px; border:1px solid var(--line); background:#111b24; }
.feedback-skill-form .feedback-skill-heading { min-height:0; padding:0 0 12px; }
.feedback-skill-form textarea { min-height:112px; resize:vertical; line-height:1.65; }
#feedback-body td { max-width:260px; white-space:normal; line-height:1.55; }
#feedback-body td:first-child input { width:16px; height:16px; }
.pricing-settings { display:grid; grid-template-columns:repeat(4,minmax(150px,1fr)); align-items:end; gap:14px; margin-bottom:18px; }
.toggle { display:flex; min-height:34px; align-items:center; gap:8px; }
.toggle input, td input[type=checkbox] { width:16px; height:16px; }
#pricing-body input[type=number] { min-width:110px; }
.save-pricing { margin-top:16px; padding:9px 16px; }
.form-status { min-height:18px; margin-left:10px; color:var(--amber); font-size:12px; }
.api-config-form { width:100%; max-width:none; }
.formatting-api-admin-card { margin-bottom:26px; padding:26px; border:1px solid #2f4651; border-radius:6px; background:#111a20; }
.formatting-api-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.formatting-api-admin-card .panel-heading { min-height:76px; margin:-8px -8px 22px; padding:8px 8px 20px; }
.formatting-api-admin-card .panel-heading p { max-width:680px; }
.formatting-api-key-state { align-self:start; padding:5px 9px; border:1px solid var(--line); border-radius:999px; color:#aebdc3; font-size:12px; white-space:nowrap; }
.formatting-api-key-state.configured { border-color:#296e58; color:#7bd6ad; background:rgba(39,130,100,.12); }
.formatting-api-key-state.unconfigured { border-color:#785e34; color:#efc578; background:rgba(160,113,36,.12); }
.api-connection-settings { display:grid; grid-template-columns:1.4fr 1fr 180px; align-items:end; gap:14px; margin-bottom:22px; }
.api-key-state { display:grid; min-height:58px; align-content:center; gap:6px; padding:8px 10px; border-left:3px solid #3b82f6; background:#111a21; }
.api-key-state span { color:var(--muted); font-size:10px; }
.api-key-state strong { font-size:12px; }
.api-model-heading { padding-right:0; padding-left:0; }
.api-model-heading button { padding:7px 11px; }
#api-model-body input[type=radio], #api-model-body input[type=checkbox] { width:16px; height:16px; }
#api-model-body input[type=text] { min-width:180px; }
#api-model-body tr.new-model input[data-key=modelId] { border-color:#3c8b7d; }
.api-config-actions { display:flex; align-items:center; gap:10px; margin-top:16px; }
.api-config-actions button { padding:9px 16px; }
#client-model-catalog { margin-top:16px; }
.client-model-catalog-scroll { max-height:320px; overflow:auto; margin-top:8px; }
.client-model-catalog-scroll td { overflow-wrap:anywhere; }
.client-model-effort-grid { margin-top:12px; }
.client-model-efforts { grid-column:span 2; min-width:0; margin:0; padding:6px 8px; }
.client-model-efforts label { display:inline-flex; align-items:center; gap:4px; margin-right:10px; }
@media (max-width:1350px) { .client-model-efforts { grid-column:auto; } }
.academic-config-result { display:grid; gap:6px; margin-top:16px; padding:14px 16px; border:1px solid #2d5c4a; border-radius:6px; color:#afc8bd; background:#12251d; font-size:12px; }
.academic-config-result strong { color:#7dd3a8; font-size:14px; }
.api-config-list { display:grid; gap:14px; }
.api-config-card { min-width:0; padding:18px; border:1px solid var(--line); border-radius:6px; background:#111a20; }
.api-config-card > header { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:14px; margin-bottom:16px; padding-bottom:14px; border-bottom:1px solid var(--line-soft); }
.api-config-card > header strong { overflow:hidden; color:#edf5f8; font-size:15px; text-overflow:ellipsis; white-space:nowrap; }
.api-active-choice, .api-enabled { display:flex; align-items:center; gap:7px; color:#b8c8d0; font-size:12px; }
.api-active-choice input, .api-enabled input { width:16px; height:16px; }
.api-remove-model { padding:7px 11px; }
.api-config-main-grid { display:grid; grid-template-columns:repeat(3,minmax(180px,1fr)); gap:12px; }
.api-config-price-grid { display:grid; grid-template-columns:repeat(4,minmax(150px,1fr)); gap:12px; margin-top:12px; }
.api-config-card label { min-width:0; }
.api-config-card input, .api-config-card select { width:100%; min-width:0; }
.api-enabled { width:max-content; margin-top:14px; }
.modal { position:fixed; z-index:20; inset:0; display:grid; place-items:center; padding:18px; background:#0e1419; }
.modal > form { display:grid; width:min(430px,100%); max-height:calc(100vh - 36px); gap:12px; overflow:auto; padding:25px; border:1px solid #334852; border-radius:6px; background:#121c23; box-shadow:0 22px 70px rgba(0,0,0,.5); }
.modal h2 { margin:4px 0 8px; font-size:20px; }
.modal > form > span { color:var(--muted); font-size:10px; }
.modal .primary { padding:10px; }
.modal-head { display:flex; align-items:center; justify-content:space-between; }
.modal-head h2 { margin:0; }
.modal-head button { width:30px; height:30px; font-size:20px; }
@media (max-width:1200px) { .dashboard-charts, .dashboard-lower { grid-template-columns:1fr; } .dashboard-lower .dashboard-bands { grid-template-columns:1fr 1fr; } }
@media (max-width:1350px) { .api-config-main-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.api-config-price-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:900px) { .metrics { grid-template-columns:repeat(2,1fr); } .dashboard-bands, .dashboard-lower .dashboard-bands { grid-template-columns:1fr; } .inline-form, .pricing-settings { grid-template-columns:repeat(2,1fr); } .api-connection-settings { grid-template-columns:1fr 1fr; } .api-key-state { grid-column:1/-1; } }
@media (max-width:680px) { .admin-shell { display:block; } .admin-nav { position:fixed; z-index:10; inset:0 auto 0 0; width:230px; transform:translateX(-100%); transition:transform .18s ease; } .admin-shell.nav-open .admin-nav { transform:translateX(0); transition:transform .18s ease; } #admin-menu { display:block; } .admin-main > header { padding:10px 14px; } .admin-view { padding:16px; } .metrics { grid-template-columns:1fr 1fr; gap:9px; } .metric-card { min-height:105px; padding:16px 14px; } .metric-card strong { font-size:20px; } .dashboard-controls { align-items:flex-start; } .dashboard-controls > div { align-items:flex-start; flex-direction:column; } .dashboard-charts { grid-template-columns:minmax(0,1fr); } .model-chart-layout { grid-template-columns:1fr; } .canvas-wrap { height:250px; padding:10px; } .chart-legend { gap:8px; } .inline-form, .pricing-settings, .api-connection-settings { grid-template-columns:1fr; } }
@media (max-width:680px) { .api-config-main-grid, .api-config-price-grid, .formatting-api-grid { grid-template-columns:1fr; }.api-config-card > header { grid-template-columns:1fr auto; }.api-active-choice { grid-column:1/-1; }.api-config-card > header strong { white-space:normal; } }
.online-dot { display:inline-block; width:9px; height:9px; border-radius:50%; margin-right:5px; background:#9aa5a0; box-shadow:0 0 0 2px rgba(154,165,160,.16); }
.online-dot.online { background:#28a565; box-shadow:0 0 0 2px rgba(40,165,101,.18); }
.online-dot.offline { background:#d64c4c; box-shadow:0 0 0 2px rgba(214,76,76,.16); }
.update-panel { max-width:980px; border:1px solid var(--line); background:#111b24; }
.update-heading { border-top:2px solid #2ba68d; }
.update-heading > span { color:#83d9bd; font-size:12px; }
.update-summary { display:grid; grid-template-columns:repeat(3,1fr); border-bottom:1px solid var(--line-soft); }
.update-summary > div { min-width:0; padding:16px; border-right:1px solid var(--line-soft); }
.update-summary > div:last-child { border-right:0; }
.update-summary span, .update-summary strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.update-summary span { color:var(--muted); font-size:10px; }
.update-summary strong { margin-top:7px; color:#edf5f8; font-size:14px; font-family:ui-monospace,Consolas,monospace; }
.update-progress { padding:20px 16px 12px; }
.update-progress-track { height:12px; overflow:hidden; border:1px solid #2d4751; border-radius:3px; background:#0d151a; }
.update-progress-track span { display:block; width:0; height:100%; background:#2ba68d; transition:width .25s ease; }
.update-progress > div:last-child { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:8px; }
.update-progress strong { color:#d8fff5; font-size:16px; }
.update-progress span { color:var(--muted); font-size:11px; }
.update-message { min-height:22px; margin:0 16px 15px; color:#c8d7dd; line-height:1.6; }
.update-actions { display:flex; flex-wrap:wrap; gap:8px; padding:0 16px 18px; }
.update-actions button { padding:8px 12px; }
.update-actions button:disabled { cursor:not-allowed; opacity:.45; }
.update-log-wrap { margin:0 16px 18px; border-top:1px solid var(--line-soft); }
.update-log-wrap h3 { margin:14px 0 8px; color:#b8c8d0; font-size:12px; }
.update-log-wrap ol { max-height:220px; margin:0; padding:0 0 0 24px; overflow:auto; color:#9fb3bc; font-size:11px; line-height:1.75; }
.update-log-wrap li { padding-left:4px; }
.client-release-panel { max-width:1080px; margin-bottom:24px; border:1px solid var(--line); background:#111b24; }
.client-release-heading { border-top:2px solid #2ba68d; }
.client-release-heading > span { padding:4px 7px; border:1px solid #795e2e; border-radius:3px; color:#e2bd70; font-size:10px; }
.client-release-heading > span.published { border-color:#2c6c5c; color:#83d9bd; }
.client-release-summary { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); border-bottom:1px solid var(--line-soft); }
.client-release-summary > div { min-width:0; padding:16px; border-right:1px solid var(--line-soft); }
.client-release-summary > div:last-child { border-right:0; }
.client-release-summary span, .client-release-summary strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.client-release-summary span { color:var(--muted); font-size:10px; }
.client-release-summary strong { margin-top:7px; color:#edf5f8; font-size:13px; }
.client-release-message { min-height:22px; margin:16px; color:#c8d7dd; line-height:1.6; }
.client-release-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:0 16px 18px; }
.client-release-actions button { padding:8px 12px; }
.client-release-actions button:disabled { cursor:not-allowed; opacity:.45; }
.client-staging-heading { display:flex; align-items:end; justify-content:space-between; gap:18px; margin:0 0 12px; }
.client-staging-heading h2 { margin:0; font-size:14px; }
.client-staging-heading p { margin:5px 0 0; color:var(--muted); font-size:10px; }
.client-staging-heading code { padding:7px 9px; border:1px solid var(--line); border-radius:4px; color:#9fd3c2; background:#0e151a; font-size:11px; }
.market-admin-upload { display:grid; max-width:1100px; gap:14px; margin-bottom:24px; padding:18px; border:1px solid var(--line); background:#111b24; }
.market-admin-settings { display:flex; max-width:620px; align-items:end; gap:12px; margin-bottom:18px; padding:14px; border:1px solid var(--line); background:#111b24; }
.market-admin-settings label { flex:0 0 220px; }
.market-admin-settings button { height:34px; padding:7px 12px; }
.market-admin-upload .panel-heading { margin:-18px -18px 2px; }
.market-admin-grid { display:grid; grid-template-columns:2fr 1fr 1fr; gap:12px; }
.market-admin-files { display:grid; grid-template-columns:repeat(4,minmax(150px,1fr)); gap:12px; }
.market-admin-contents { margin:0; padding:12px; border:1px solid var(--line); }
.market-admin-contents legend { padding:0 5px; color:var(--muted); font-size:11px; }
.market-admin-checks { display:flex; flex-wrap:wrap; gap:10px 18px; }
.market-admin-checks label { display:flex; align-items:center; gap:6px; color:var(--text); }
.market-admin-checks input { width:15px; height:15px; accent-color:#2ba68d; }
.market-admin-files .file-drop { position:relative; display:grid; gap:8px; min-height:112px; align-content:center; padding:13px; border:1px dashed #3b625a; border-radius:6px; background:#13221f; cursor:pointer; }
.market-admin-files .file-drop:hover, .market-admin-files .file-drop.is-dragging { border-color:#48b397; background:#17312a; }
.market-admin-files .file-drop input { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; }
.market-admin-files .file-drop > span { color:var(--text); font-weight:650; }
.market-admin-files .file-drop-control { display:inline-flex; width:max-content; padding:5px 9px; border:1px solid #438675; border-radius:4px; color:#9ee0c9; font-size:11px; }
.market-admin-files .file-drop-name { min-width:0; overflow:hidden; color:var(--muted); font-size:10px; font-style:normal; text-overflow:ellipsis; white-space:nowrap; }
.market-admin-category-bar { display:flex; align-items:center; gap:8px; margin:16px 0; }
.market-admin-category-bar input { max-width:260px; }
@media (max-width:900px) { .market-admin-grid,.market-admin-files { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:900px) { .client-package-grid { grid-template-columns:1fr; } }
@media (max-width:680px) { .market-admin-grid,.market-admin-files { grid-template-columns:1fr; } .market-admin-category-bar { align-items:stretch; flex-direction:column; } .market-admin-category-bar input { max-width:none; } }
@media (max-width:680px) { .form-grid { grid-template-columns:1fr; } }
@media (max-width:680px) { .market-admin-settings { align-items:stretch; flex-direction:column; } .market-admin-settings label { flex-basis:auto; } }
@media (max-width:680px) { .update-summary { grid-template-columns:1fr; } .update-summary > div { border-right:0; border-bottom:1px solid var(--line-soft); } .update-summary > div:last-child { border-bottom:0; } .update-actions { display:grid; grid-template-columns:1fr 1fr; } .update-actions button { width:100%; } }
@media (max-width:900px) { .client-release-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }.client-release-summary > div:nth-child(2) { border-right:0; }.client-release-summary > div:nth-child(-n+2) { border-bottom:1px solid var(--line-soft); } }
@media (max-width:680px) { .client-release-summary { grid-template-columns:1fr; }.client-release-summary > div { border-right:0; border-bottom:1px solid var(--line-soft); }.client-release-summary > div:last-child { border-bottom:0; }.client-staging-heading { align-items:stretch; flex-direction:column; }.client-staging-heading code { overflow:auto; white-space:nowrap; } }

.support-group-form { max-width: 800px; }
.support-group-form input[type=file] { max-width: 100%; }
.support-group-form label small { color: var(--muted); line-height: 1.7; }
.support-group-admin-preview { display: grid; justify-items: start; gap: 12px; padding: 20px; border: 1px solid var(--line-soft); border-radius: 8px; }
.support-group-admin-preview img { display: block; max-width: min(280px, 100%); max-height: 360px; padding: 12px; border-radius: 6px; background: #fff; object-fit: contain; }
.support-group-admin-preview img.hidden { display: none; }
body:not([data-client-mode="account"]) [data-client-account],
body[data-client-mode="account"] [data-client-legacy] { display:none; }
