/* Visual system shared with aip-bot-engine/frontend/src/support-dashboard.css.
 * Humanizer-specific selectors adapt the existing dashboard and telemetry contracts. */
:root {
    color-scheme: dark;
    --bg: #101416;
    --bg-soft: #171d21;
    --surface: #20252b;
    --surface-strong: #252c32;
    --surface-alt: rgba(7, 13, 16, .45);
    --line: rgba(0, 210, 183, .15);
    --line-strong: rgba(0, 210, 183, .36);
    --line-soft: rgba(255, 255, 255, .08);
    --text: #f4fbf9;
    --soft: #c5d2d0;
    --muted: #8fa4a0;
    --accent: #00d2b7;
    --accent-dark: #00796b;
    --accent-soft: rgba(0, 210, 183, .13);
    --success: #3ce7c9;
    --warning: #f3c969;
    --danger: #ff7d7d;
    --radius-xl: 22px;
    --radius-lg: 22px;
    --radius-md: 14px;
    --radius-sm: 12px;
    --font-body: "Manrope", "Segoe UI Variable Text", "Segoe UI", sans-serif;
    --font-display: var(--font-body);
    --font-mono: "Cascadia Code", Consolas, monospace;
    --mono: var(--font-mono);
    --shadow-lg: 0 18px 56px rgba(0, 0, 0, .34);
    --shadow-glow: 0 0 0 1px rgba(0, 210, 183, .12), 0 0 24px rgba(0, 210, 183, .1);
}

body.session-pending [data-maintenance-hide],
body.maintenance-blocked [data-maintenance-hide],
body.maintenance-blocked .modal-backdrop { display: none !important; }
#maintenance-panel { padding: 24px; margin-top: 18px; }
#maintenance-panel h2 { margin: 14px 0 8px; font-size: 1.25rem; }
#maintenance-panel p { color: var(--soft); overflow-wrap: anywhere; }
#maintenance-panel .maintenance-hint { color: var(--muted); margin-bottom: 0; font-size: .85rem; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body {
    font-size: 14px;
    line-height: 1.5;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    background:
        radial-gradient(circle at top left, rgba(0, 210, 183, .13), transparent 28%),
        radial-gradient(circle at 82% 0%, rgba(0, 121, 107, .15), transparent 22%),
        linear-gradient(180deg, #0e1012 0%, #14171a 48%, #171717 100%);
}
body::before { background-size: 30px 30px; --grid: rgba(255, 255, 255, .025); }
body::after { display: none; }
body, body * { scrollbar-color: var(--line-strong) transparent; scrollbar-width: thin; }
body *::-webkit-scrollbar { width: 8px; height: 8px; }
body *::-webkit-scrollbar-track { background: transparent; }
body *::-webkit-scrollbar-thumb {
    border: 2px solid transparent; border-radius: 999px;
    background: var(--line-strong); background-clip: padding-box;
}
button, input, select, textarea { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible, [role="button"]:focus-visible {
    outline: 2px solid var(--accent); outline-offset: 3px;
}
.shell { position: relative; z-index: 1; width: min(1640px, 100%); padding: 28px; }
.hero { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 14px; margin-bottom: 18px; }
.hero-title-panel, .card, .modal-card {
    border: 1px solid var(--line); border-radius: 22px;
    background: linear-gradient(180deg, rgba(36, 42, 49, .96), rgba(27, 31, 36, .96));
    box-shadow: var(--shadow-lg); backdrop-filter: none;
}
.hero-title-panel { min-width: 0; min-height: 0; padding: 20px 24px; align-content: start; gap: 8px; }
.hero-title { margin: 0; font-size: clamp(1.75rem, 2.5vw, 2.25rem); line-height: 1.15; letter-spacing: -.04em; font-weight: 800; }
.hero-description { margin: 0; color: var(--muted); }
.eyebrow, .ops-kicker {
    display: inline-flex; align-items: center; gap: 7px; padding: 0;
    color: var(--accent); border: 0; background: none;
    font-size: .72rem; font-weight: 800; letter-spacing: .14em; line-height: 1.4; text-transform: uppercase;
}
.session-card { min-width: 0; min-height: 0; padding: 20px 24px; gap: 10px; }
.session-shell { grid-template-columns: minmax(0, 1fr) minmax(180px, 290px); gap: 16px 24px; }
.session-primary { gap: 10px; padding: 0; }
.session-title-row { gap: 8px; }
.session-title { font-size: 1.06rem; font-weight: 800; }
.session-copy { font-size: .75rem; font-weight: 600; line-height: 1.45; }
.session-sidebar { display: contents; }
.session-meta { grid-column: 2; grid-row: 1; gap: 6px; align-self: start; }
.meta-tile { padding: 8px 10px; border-radius: 10px; }
.meta-tile strong, .session-balances > strong { font-size: .64rem; letter-spacing: .07em; }
.meta-tile > span { font-family: var(--font-mono); font-size: .72rem; }
.session-balances { grid-column: 1 / -1; min-width: 0; gap: 6px; }
.balance-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.balance-list > .empty { grid-column: 1 / -1; min-height: 64px; }
.balance-item { padding: 8px 10px; gap: 10px; border-radius: 10px; }
.balance-main strong { font-size: .68rem; }
.balance-main span, .balance-side span { font-size: .64rem; }
.balance-side strong { font-size: .8rem; white-space: nowrap; }
.layout { grid-template-columns: minmax(0, 1fr) 390px; align-items: stretch; }
.stack { min-width: 0; align-content: start; }
.workspace-main { grid-template-rows: auto 1fr; }
.workspace-sidebar { display: flex; }
.workspace-sidebar > .panel { display: flex; flex-direction: column; width: 100%; }
#jobs-panel .job-list { flex: 1; align-content: start; }
#jobs-panel .pagination-bar { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
#jobs-panel .pagination-actions { width: 100%; justify-content: space-between; }
.panel, .ops-card { min-width: 0; padding: 20px; }
.panel-head, .ops-heading {
    align-items: center; margin: -20px -20px 18px; padding: 18px 20px;
    border-bottom: 1px solid var(--line-soft); min-height: 78px; gap: 16px;
}
.panel-head > div:first-child, .ops-heading > div:first-child { min-width: 0; }
.panel-head p, .ops-subtitle { margin: 6px 0 0; font-size: .8rem; color: var(--muted); font-weight: 500; }
h2, .ops-title { font-size: 1.34rem; line-height: 1.25; letter-spacing: -.03em; font-weight: 800; }
h3, .subsection-title { font-size: .92rem; line-height: 1.4; letter-spacing: -.015em; }
.panel-spoiler { padding: 0; }
.panel-summary { padding: 18px 20px; gap: 12px; }
.panel-summary h2 { margin-top: 6px; font-size: 1.2rem; }
.panel-summary p { font-size: .76rem; line-height: 1.5; color: var(--muted); }
.panel-summary::after { padding: 6px 9px; font-size: .68rem; background: rgba(7, 13, 16, .45); }
.panel-spoiler[open] > .panel-summary { border-bottom: 1px solid var(--line-soft); }
.panel-spoiler-body { padding: 18px 20px 20px; }
.button {
    min-height: 42px; padding: 0 15px; gap: 8px; font-size: .8rem; font-weight: 750;
    transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}
.button-primary, .button-download { font-weight: 800; box-shadow: 0 14px 36px rgba(0, 210, 183, .2); }
.button-secondary, .button-link { border-color: var(--line); background: rgba(9, 18, 20, .75); }
.button-secondary:hover, .button-link:hover { box-shadow: var(--shadow-glow); }
.button:disabled { opacity: .48; box-shadow: none; }
.session-card .button { min-height: 34px; padding: 0 12px; font-size: .72rem; }
.button.is-loading > .ui-icon { display: none; }
.button.cancel, #ops-admin-fail-button { color: var(--danger); border: 1px solid rgba(255, 125, 125, .3); background: rgba(255, 125, 125, .08); }
.actions, .job-control-actions { gap: 10px; }
.action-caption, .field-note { font-size: .72rem; font-weight: 600; }
form { gap: 14px; }
label { min-width: 0; font-size: .76rem; font-weight: 750; gap: 7px; }
input[type="text"], input[type="number"], input[type="email"], input[type="date"], select, textarea, .purchase-input {
    min-height: 45px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 14px;
    background-color: rgba(9, 14, 18, .82); color: var(--text); font-size: .82rem;
    transition: border-color 140ms ease, box-shadow 140ms ease;
}
input:focus, textarea:focus { border-color: var(--line-strong); box-shadow: var(--shadow-glow); }
.select-trigger { min-height: 45px; padding: 10px 13px; border-radius: 14px; font-size: .82rem; font-weight: 750; }
.select-trigger:hover { transform: none; }
.select-trigger:disabled { opacity: .48; cursor: default; }
.select-dropdown {
    max-height: min(280px, 55vh); padding: 6px; border-radius: 14px; background: #141a1e;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .48); backdrop-filter: none;
    overscroll-behavior: contain; scrollbar-gutter: stable; animation: care-dialog-in 160ms ease-out;
}
.select-shell.is-open .select-dropdown { gap: 2px; }
.select-option { min-height: 36px; padding: 9px 10px; border: 0; border-radius: 9px; font-size: .82rem; font-weight: 750; }
.select-option:hover, .select-option:focus-visible { transform: none; background: rgba(0, 210, 183, .08); }
.select-option.is-selected { color: var(--accent); background: rgba(0, 210, 183, .12); box-shadow: none; }
.select-option.is-selected::after { content: ""; width: 5px; height: 9px; margin-left: auto; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.file-field { min-height: 64px; padding: 12px 13px; gap: 12px; border-radius: 14px; }
.file-button { min-height: 36px; padding: 0 12px; gap: 7px; font-size: .76rem; }
.file-copy { font-size: .8rem; }
.file-field:hover { border-color: var(--line-strong); background: rgba(0, 210, 183, .04); }
#docx-drop-zone { row-gap: 2px; }
#docx-drop-zone .file-button { grid-row: 1 / 3; }
#docx-drop-zone .file-copy { grid-column: 2; grid-row: 1; }
.file-drop-hint { grid-column: 2; grid-row: 2; min-width: 0; color: var(--muted); font-size: .7rem; line-height: 1.4; pointer-events: none; }
#docx-drop-zone.is-dragover { border-color: var(--accent); background: rgba(0, 210, 183, .1); box-shadow: inset 0 0 0 1px var(--accent); }
#docx-drop-zone.is-dragover .file-drop-hint { color: var(--accent); }
.toggle { padding: 3px; gap: 3px; border-radius: 10px; margin-bottom: 14px; }
.toggle button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 12px; border-radius: 7px; font-size: .76rem; font-weight: 750; }
.toggle button.active { box-shadow: none; background: var(--accent-soft); color: var(--text); }
.status-pill, .session-badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px;
    font-size: .68rem; font-weight: 750; letter-spacing: 0; text-transform: none; white-space: nowrap;
}
.status-pill.processing, .status-pill.done, .session-badge { color: var(--success); background: rgba(60, 231, 201, .1); }
.status-pill.queued, .status-pill.paused { color: var(--warning); background: rgba(243, 201, 105, .1); }
.status-pill.failed, .status-pill.cancelled, .session-badge.offline { color: var(--danger); background: rgba(255, 125, 125, .1); }
.ui-icon { display: inline-block; width: 16px; height: 16px; flex: 0 0 auto; vertical-align: middle; pointer-events: none; }
.eyebrow .ui-icon, .ops-kicker .ui-icon { width: 15px; height: 15px; }
.status-pill .ui-icon, .session-badge .ui-icon { width: 13px; height: 13px; }
.empty { min-height: 110px; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 20px; font-size: .8rem; line-height: 1.5; }
.empty > .ui-icon { width: 28px; height: 28px; opacity: .65; }
.loading-state {
    position: relative; display: flex; justify-content: center; min-height: 150px; gap: 16px; overflow: hidden;
    border: 1px solid var(--line); border-radius: 18px; padding: 24px;
    background: linear-gradient(110deg, rgba(0, 210, 183, .11), rgba(56, 189, 248, .055), rgba(0, 121, 107, .1)), rgba(7, 11, 13, .58);
}
.inline-spinner {
    width: 32px; height: 32px; flex: 0 0 auto; border: 3px solid rgba(255, 255, 255, .08);
    border-top-color: var(--accent); border-right-color: #38bdf8; border-radius: 50%; animation: care-loading-orbit .9s linear infinite;
}
.loading-state::after, .thinking-strip::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .07), transparent);
    transform: translateX(-100%); animation: care-loading-sweep 1.2s ease-in-out infinite;
}
.thinking-strip { position: relative; overflow: hidden; border-radius: 14px; font-size: .8rem; }
.thinking-strip::before { border-top-color: var(--accent); border-right-color: #38bdf8; animation-duration: .9s; }
.job-list { min-width: 0; grid-template-columns: minmax(0, 1fr); gap: 0; }
.job-item { min-width: 0; padding: 15px 16px; border: 0; border-bottom: 1px solid var(--line-soft); border-radius: 0; background: transparent; box-shadow: none; }
.job-item:last-child { border-bottom: 0; }
.job-item:hover { transform: none; background: rgba(0, 210, 183, .055); }
.job-item.active { background: linear-gradient(90deg, rgba(0, 210, 183, .16), rgba(0, 210, 183, .035)); box-shadow: inset 3px 0 0 var(--accent); }
.job-row { align-items: center; gap: 10px; }
.job-row > strong { font-size: .76rem; font-weight: 750; }
.job-name { max-width: 100%; margin: 8px 0 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .86rem; font-weight: 750; }
.job-subline { font-size: .72rem; }
.job-item:focus-visible { outline-offset: -3px; }
.job-item.active .job-name { color: var(--text); }
.usage-grid, .queue-grid, .ops-metric-grid { gap: 12px; }
#analytics-panel { margin-top: 20px; }
#analytics-panel .usage-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.analytics-breakdown-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; align-items: start; }
.analytics-breakdown-section { min-width: 0; }
.analytics-breakdown-section > .subsection-title { margin: 0 0 12px; }
.mode-history-body { padding: 12px; border-top: 1px solid var(--line-soft); }
.usage-card, .queue-metric, .ops-metric-card { position: relative; min-width: 0; padding: 15px 16px; overflow: hidden; border: 1px solid var(--line-soft); border-radius: 14px; background: rgba(255, 255, 255, .025); }
.usage-card > strong, .queue-metric > strong, .ops-metric-card > strong { display: flex; align-items: center; gap: 7px; font-size: .65rem; letter-spacing: .05em; color: var(--muted); line-height: 1.4; }
.usage-card > span, .queue-metric > span, .ops-metric-card > span { display: block; margin-top: 7px; font-size: 1.35rem; letter-spacing: -.04em; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.usage-card > strong > .ui-icon, .queue-metric > strong > .ui-icon, .ops-metric-card > strong > .ui-icon { color: var(--accent); width: 14px; height: 14px; }
.progress-shell, .preflight-shell, .ops-progress-card { padding: 15px; border-radius: 14px; }
.progress-bar, .ops-progress-bar { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .045); }
.progress-bar > span, .ops-progress-bar > span { transition: width 320ms ease; background: linear-gradient(90deg, #00796b, #10f0d0); }
.progress-meta strong { font-size: .92rem; }
.progress-meta > div:first-child { display: grid; gap: 4px; }
.job-control-actions { margin-bottom: 12px; }
.progress-meta span, .subprogress-meta span { font-size: .74rem; }
.pipeline, .ops-pipeline-grid { gap: 12px; }
.pipeline-node, .ops-pipeline-node { border-radius: 14px; padding: 14px; background: rgba(7, 13, 16, .32); border-color: var(--line-soft); }
.pipeline-node::after, .ops-pipeline-node::after { background: var(--line-strong); }
.pipeline-node.active, .ops-pipeline-node.is-current { border-color: var(--line-strong); background: var(--accent-soft); box-shadow: var(--shadow-glow); }
.pipeline-node.active .pipeline-step::before, .ops-pipeline-node.is-current .ops-pipeline-node-state::before {
    content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--accent); animation: care-active-pulse 1.6s ease-in-out infinite;
}
.pipeline-node.done, .ops-pipeline-node.is-complete { border-color: rgba(60, 231, 201, .25); background: rgba(60, 231, 201, .055); }
.pipeline-title, .ops-pipeline-node-title { font-size: .82rem; }
.ops-pipeline-node-title { display: flex; align-items: center; gap: 7px; }
.ops-pipeline-node-title .ui-icon { width: 15px; height: 15px; color: var(--accent); }
.pipeline-copy, .ops-pipeline-node-text, .ops-pipeline-node-detail { font-size: .7rem; line-height: 1.45; }
.ops-pipeline-node-index { width: 26px; height: 26px; border-radius: 8px; }
.ops-pipeline-node-count, .ops-pipeline-node-state { font-size: .65rem; }
.ops-control-input, .ops-control-select { min-height: 42px; border-radius: 14px; }
.ops-table-controls { gap: 10px; }
.ops-toggle { font-size: .72rem; border-radius: 10px; background: rgba(7, 13, 16, .45); }
input[type="checkbox"] {
    appearance: none; display: inline-grid; width: 18px; height: 18px; flex: 0 0 auto; margin: 0;
    place-content: center; border: 1px solid var(--line-strong); border-radius: 5px; color: #061412;
    background: rgba(7, 13, 16, .72); cursor: pointer; transition: border-color 130ms ease, background 130ms ease, box-shadow 130ms ease;
}
input[type="checkbox"]::before { content: ""; width: 4px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform 110ms ease; }
input[type="checkbox"]:hover { border-color: var(--accent); background: rgba(0, 210, 183, .08); }
input[type="checkbox"]:checked { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 14px rgba(0, 210, 183, .18); }
input[type="checkbox"]:checked::before { transform: rotate(45deg) scale(1); }
.ops-table-meta, .pagination-bar { font-size: .72rem; }
.ops-table-shell, .table-shell { border: 1px solid var(--line-soft); border-radius: 14px; }
.ops-table-shell { max-height: 680px; overscroll-behavior: contain; }
.ops-table, .mini-table { font-size: .76rem; }
.ops-table { min-width: 1680px; }
.ops-table th, .mini-table th { position: sticky; top: 0; z-index: 2; padding: 12px; color: var(--muted); background: #171d21; font-size: .64rem; letter-spacing: .06em; }
.ops-table td, .mini-table td { padding: 12px; border-bottom-color: var(--line-soft); line-height: 1.5; vertical-align: top; }
.ops-table tbody tr:hover, .mini-table tbody tr:hover { background: rgba(0, 210, 183, .045); }
.ops-stage-detail { font-size: .75rem; }
.ops-stage-model { min-width: 180px; white-space: nowrap; overflow-wrap: normal; }
.ops-stage-model .ops-stage-meta { white-space: normal; }
.ops-stage-detail-copy, .ops-stage-model .muted { font-size: .68rem; }
.ops-copy-button { display: inline-flex; align-items: center; gap: 5px; width: auto; min-width: 32px; height: 30px; padding: 0 8px; border-radius: 9px; font-size: .65rem; }
.ops-copy-button:hover { border-color: var(--line-strong); color: var(--accent); }
.ops-copy-button .ui-icon { width: 13px; height: 13px; }
.ops-detail-line, .job-line, .ops-summary-meta-item { min-width: 0; padding: 10px 12px; border-radius: 12px; }
.ops-detail-line > strong, .job-line > strong, .ops-summary-meta-item .label { font-size: .65rem; }
.ops-detail-line > span, .job-line > span, .ops-summary-meta-item .value { font-size: .8rem; }
.ops-detail-value-group > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ops-lookup-results { min-width: 0; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.ops-lookup-item { min-width: 0; width: 100%; border-radius: 14px; padding: 15px 18px; background: rgba(7, 13, 16, .3); transition: background 140ms ease, border-color 140ms ease; }
.ops-lookup-item-head { min-width: 0; }
.ops-lookup-item:hover { transform: none; border-color: var(--line-strong); background: rgba(0, 210, 183, .055); }
.ops-lookup-item.active { box-shadow: inset 3px 0 0 var(--accent); background: linear-gradient(90deg, rgba(0, 210, 183, .16), rgba(0, 210, 183, .035)); }
.ops-lookup-item h3 { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .86rem; }
.breakdown-item { padding: 14px; border-radius: 14px; background: rgba(7, 13, 16, .3); }
.breakdown-head > strong { font-size: .85rem; }
.breakdown-meta, .job-model-line, .job-model-config, .job-model-usage-row { font-size: .72rem; line-height: 1.5; }
.job-model-config, .job-model-usage { gap: 8px; }
.job-model-details { border: 1px solid var(--line-soft); border-radius: 12px; background: rgba(7, 12, 15, .32); }
.job-model-details > summary { padding: 10px 12px; font-size: .72rem; cursor: pointer; }
.job-model-details > .job-model-usage { padding: 12px; border-top: 1px solid var(--line-soft); }
.job-id-toolbar { flex-wrap: wrap; gap: 7px; }
.job-id-toolbar .button { min-height: 30px; padding: 0 10px; font-size: .68rem; }
.notice, .purchase-message { border-radius: 14px; padding: 12px 15px; font-size: .8rem; }
.modal-backdrop { background: rgba(7, 10, 12, .82); backdrop-filter: blur(12px); animation: care-fade-in 120ms ease-out; }
.modal-card { border-radius: 22px; animation: care-dialog-in 160ms ease-out; }
.modal-head { padding: 20px 24px; border-bottom: 1px solid var(--line-soft); }
.modal-head h2 { font-size: 1.34rem; }
.modal-head p { color: var(--muted); font-size: .8rem; }
.modal-body { min-width: 0; grid-template-columns: minmax(0, 1fr); padding: 20px 24px 24px; gap: 18px; }
.modal-body > * { min-width: 0; }
.modal-toolbar, .modal-toolbar-actions { min-width: 0; flex-wrap: wrap; gap: 10px; }
.modal-body .table-shell, .batch-table-shell { min-width: 0; max-width: 100%; overflow-x: auto; }
.modal-close { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; }
.purchase-card, .purchase-range-shell, .purchase-readonly-range { padding: 15px; border-radius: 14px; }
.purchase-algorithm-button { min-height: 76px; padding: 12px 14px; border-radius: 14px; font-size: .85rem; }
.purchase-card p, .purchase-helper-list, .purchase-mode-copy { font-size: .8rem; }
.footer-block { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.footer-copy, .footer-meta, .footer-documents { font-size: .7rem; }
.video-section { margin-top: 20px; }
.video-section h2 { font-size: 1.2rem; }
.video-description { font-size: .8rem; }
@keyframes care-loading-orbit { to { transform: rotate(360deg); } }
@keyframes care-loading-sweep { to { transform: translateX(100%); } }
@keyframes care-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes care-dialog-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes care-active-pulse { 50% { opacity: .45; box-shadow: 0 0 0 4px rgba(0, 210, 183, .12); } }
@media (min-width: 1280px) { .ops-pipeline-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .ops-pipeline-node:nth-child(4n)::after { display: none; } }
@media (max-width: 1100px) {
    .shell { padding: 20px; }
    .hero { grid-template-columns: 1fr; }
    .hero-title-panel, .session-card { min-height: auto; }
    .layout { grid-template-columns: minmax(0, 1fr) 330px; }
    .grid-3 { grid-template-columns: 1fr; }
    .balance-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
    .shell { width: 100%; padding: 12px; }
    .layout, .session-shell { grid-template-columns: 1fr; }
    .workspace-main { grid-template-rows: auto; }
    #analytics-panel .usage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .analytics-breakdown-grid { grid-template-columns: minmax(0, 1fr); }
    .session-meta { grid-column: 1; grid-row: auto; }
    .hero-title-panel, .session-card { padding: 20px; }
    .hero-title { font-size: 2rem; }
    .panel-head, .ops-heading { flex-direction: row; }
    .job-row { flex-direction: row; }
    .usage-grid, .ops-metric-grid, .queue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .actions, .action-group { width: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
    .actions > .button, .action-group > .button { width: auto; }
    .file-field { grid-template-columns: auto minmax(0, 1fr); }
    .file-copy { white-space: nowrap; }
    .ops-details-grid, .purchase-grid { grid-template-columns: 1fr; }
    .ops-pipeline-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ops-pipeline-node::after { display: none; }
    .ops-table-shell { max-height: 560px; }
}
@media (max-width: 560px) {
    .hero-title-panel, .session-card { padding: 17px; }
    .panel, .ops-card { padding: 17px; }
    .panel-head, .ops-heading { margin: -17px -17px 16px; padding: 17px; flex-wrap: wrap; }
    .panel-head > .status-pill { max-width: 100%; white-space: normal; }
    .balance-list, .purchase-form-grid { grid-template-columns: 1fr; }
    .panel-spoiler { padding: 0; }
    .panel-summary, .panel-spoiler-body { padding: 17px; }
    .ops-table-controls { grid-template-columns: 1fr; }
    .ops-control-input { min-width: 0; }
    .modal-head, .modal-body { padding: 17px; }
    .modal-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: start; }
    .modal-head > div:first-child { display: contents; }
    .modal-head > .button { grid-column: 2; grid-row: 1; min-height: 30px; padding: 0 10px; font-size: .7rem; }
    .modal-head h2, .modal-head p { grid-column: 1 / -1; margin: 0; }
    .modal-toolbar { gap: 10px; }
    .job-control-actions { justify-content: flex-start; }
    .ops-title { font-size: 1.15rem; }
    .ops-pipeline-node { padding: 12px; }
    .footer-meta { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
