@charset "UTF-8";

/* Admin-only operational diagnostics; no execution controls. */
.cron-log { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.cron-log > .panel-head { padding: 0 0 12px; }
.cron-log-table { min-width: 700px; }
.cron-log-table td { vertical-align: top; }
.cron-log-table small { display: block; white-space: normal; }
.cron-log-table .cron-log-details-row > td { padding-top: 0; white-space: normal; }
.cron-log-details > summary { width: fit-content; padding: 8px 0; font-size: 12px; cursor: pointer; }
.cron-log-detail-body { display: grid; gap: 16px; padding: 12px 0 18px; }
.cron-log-detail-body > * { margin: 0; }
.cron-log-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 20px; }
.cron-log-metrics div { min-width: 0; }
.cron-log-metrics dt { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.cron-log-metrics dd { margin: 2px 0 0; font-weight: 650; }
.cron-log-warning { color: #8b4b1b; }
.cron-log-decisions { display: grid; gap: 14px; padding: 0; list-style: none; }
.cron-log-decisions li { display: grid; gap: 3px; padding-left: 12px; border-left: 2px solid var(--line); overflow-wrap: anywhere; }
.cron-log-decisions li > span { color: var(--muted); font-size: 12px; }
.cron-log-decisions li > p { margin: 3px 0; }
.cron-log-decisions .text-button { justify-self: start; }
.cron-log-detail-body code { overflow-wrap: anywhere; white-space: normal; }
@media (max-width: 720px) {
  .cron-log > .panel-head { flex-wrap: wrap; }
  .cron-log-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Application workspace: quiet surfaces, readable data, and a single action color. */
:root {
  --bg: #ffffff;
  --surface: #fff;
  --ink: #292929;
  --muted: #666666;
  --line: #e8e8e6;
  --orange: #242424;
  --orange-dark: #090909;
  --orange-soft: #f1f1ee;
  --green: #28745d;
  --green-soft: #edf7f2;
  --sidebar: #f8f8f6;
  --radius: 14px;
  --shadow: none;
  --accent: #242424;
  --accent-soft: #eeeeec;
  --surface-secondary: #f7f7f5;
  --ink-strong: #202020;
}

body { font-size: 14px; line-height: 1.6; }
body:has(dialog[open]) { overflow: hidden; }
button, input, select, textarea { font: inherit; }
a { text-underline-offset: 3px; }
button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid #acacac;
  outline-offset: 3px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid #b7b7b7; outline-offset: 1px; border-color: #989898; }
input::placeholder, textarea::placeholder { color: #7a7a7a; }
button:disabled, button[aria-disabled="true"] { cursor: default; }
.eyebrow, .overline { font-size: 11px; letter-spacing: 1.15px; color: var(--muted); }
.button { min-height: 40px; max-width: 100%; padding: 9px 15px; border-color: #d7d7d7; border-radius: 8px; font-size: 13px; font-weight: 600; white-space: normal; text-align: center; overflow-wrap: anywhere; flex-shrink: 0; }
.button:hover { background: #f8f8f8; border-color: #bdbdbd; }
.button.primary { background: var(--accent); border-color: var(--accent); box-shadow: none; color: #fff; }
.button.primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); transform: none; }
.button.small { min-height: 36px; font-size: 12px; padding: 7px 12px; }
.button.subtle { color: var(--muted); }
.button:disabled, .button:disabled:hover { color: #757575; background: #f3f3f3; border-color: #e4e4e4; transform: none; box-shadow: none; }
.icon-button { min-width: 34px; min-height: 34px; color: var(--muted); }
.icon-button:hover { color: var(--ink); background: #efefef; }
.icon-button:disabled, .text-button:disabled { color: #7a7a7a; }
.text-button { color: var(--accent); font-size: 13px; }
.text-button:hover { color: var(--orange-dark); }

/* The page owns section spacing; grids never force their contents wider than the viewport. */
#page-content { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
#page-content > * { min-width: 0; margin-top: 0; margin-bottom: 0; }
#cost-overview:not(:empty) { margin-bottom: 24px; }
#page-content + #cost-overview:not(:empty) { margin-top: 24px; margin-bottom: 0; }
#cost-overview > :last-child { margin-bottom: 0; }
:where(#main, #page-content, #cost-overview, .main-shell, .panel, .panel-body, .panel-head,
  .dashboard-grid, .monitoring-layout, .settings-grid, .provider-settings, .stack,
  .campaign-grid, .form-grid, .model-leaderboards, .cost-overview-grid, .cost-breakdown,
  .estimate-figures, .history-controls, .page-toolbar, .modal-body) > * { min-width: 0; }
:where(.panel, .campaign-card, .monitor-stat, .modal, .notice, .queue-preview, .settings-info)
  :is(p, small, h2, h3, h4, label, dd) { overflow-wrap: anywhere; }
:where(.panel, .campaign-card, .monitor-stat, .modal) :is(input, select, textarea) { max-width: 100%; }
:where(.stack, .provider-settings, .entities-layout) { gap: 24px; }
:where(.stack, .provider-settings, .entities-layout) > .full-panel { margin-top: 0; }
.panel-body > p + .button, .panel-body > .field-hint + .button { margin-top: 18px; }
.panel-body > .field-hint:first-child { margin-top: 0; }
.panel-body > .explanation:last-child { margin-bottom: 0; }
.panel-head > div { flex: 1 1 220px; }
.panel-head > :is(.button, .text-button, .segmented, .model-tag) { flex: 0 1 auto; }
.text-button { white-space: normal; text-align: left; line-height: 1.6; overflow-wrap: anywhere; }
.status::before { flex: 0 0 4px; }
.breadcrumb { min-width: 0; flex-wrap: wrap; }
.breadcrumb strong { overflow-wrap: anywhere; }
.provider-badge { min-width: 0; max-width: 330px; overflow-wrap: anywhere; }
.provider-badge i { flex: 0 0 5px; }
.history-controls, .page-toolbar { flex-wrap: wrap; }
.history-controls { padding: 0 0 16px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.history-controls > label { flex: 1 1 160px; }
.history-controls > .field-hint { flex: 1 1 240px; margin: 0; }
.history-controls form { flex-wrap: wrap; }
.pagination { flex-wrap: wrap; gap: 12px; }
.pagination > label { margin-bottom: 0; }
.pagination-controls { flex-wrap: wrap; }
.table-wrap:focus-visible { outline: 3px solid #acacac; outline-offset: 2px; }
.table-wrap:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.detail-meta, .detail-usage { flex-wrap: wrap; }
.detail-usage { gap: 16px 28px; }
.detail-usage strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.detail-usage span { font-size: 12px; }
.answer-text pre { max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; }
.cost-overview-grid > div { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.cost-section-heading, .cost-overview-heading { flex-wrap: wrap; }
.cost-stage, .cost-stage > strong, .estimate-figures > div { min-width: 0; overflow-wrap: anywhere; }
.notice, .queue-preview { flex-wrap: wrap; }
.notice > div, .queue-preview > div { min-width: 0; }
.risk-note { max-width: 100%; }
.loading-state { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--muted); }

/* Navigation keeps project context separate from the analysis screens. */
.sidebar { width: 212px; padding: 28px 12px 0; color: var(--muted); background: var(--sidebar); border-right: 1px solid #eeeee9; overflow-y: auto; }
.sidebar > .brand { margin: 0 9px 28px; }
.sidebar .brand { color: var(--ink-strong); font-size: 18px; letter-spacing: -.65px; gap: 8px; }
.brand-mark { width: 28px; height: 30px; border-radius: 8px; font-size: 25px; color: #fff; background: var(--accent); }
.workspace { background: var(--surface-secondary); border-color: var(--line); padding: 11px; margin-bottom: 22px; gap: 10px; }
.workspace-avatar { background: #efefef; border-color: #e0e0e0; color: #545454; font-size: 12px; }
.workspace strong { color: var(--ink); font-size: 13px; }
.workspace div > span, .workspace-chevron { color: var(--muted); font-size: 12px; }
.nav-label { color: #777; font-size: 11px; font-weight: 500; text-transform: none; letter-spacing: 0; margin: 0 12px 9px; }
.sidebar nav { gap: 3px; }
.sidebar .nav-item, .sidebar .nav-item[data-page="queue"] { font-size: 13px; line-height: 1.5; min-height: 39px; padding: 9px 12px; font-weight: 500; color: #60605e; gap: 11px; border-radius: 8px; }
.nav-item:hover { background: #f5f5f5; color: var(--ink); }
.nav-item.active { color: #242424; background: #eaeae7; font-weight: 600; }
.nav-item.active > span:first-child { color: var(--accent); }
.nav-active-dot { background: var(--accent); }
.nav-count { background: transparent; color: #777; font-size: 11px; border-radius: 5px; }
.nav-item.active .nav-count { background: transparent; color: #444; }
.sidebar-bottom { padding-top: 22px; }
.sidebar-tip { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 6px 8px; align-items: center; background: var(--surface-secondary); border: 1px solid var(--line); padding: 11px; margin-bottom: 10px; }
.tip-icon { color: #7f7f7f; margin: 0; }
.sidebar-tip strong { max-width: none; font-size: 12px; color: #454545; line-height: 1.5; }
.sidebar-tip p { grid-column: 1 / -1; font-size: 12px; color: var(--muted); line-height: 1.45; margin: 0; }
.sidebar-tip button { grid-column: 1 / -1; justify-self: start; color: var(--accent); font-size: 12px; line-height: 1.5; margin-top: 2px; }
.sidebar-tip button span { margin-left: 7px; }
.user-card { border-top-color: var(--line); padding: 17px 0; margin-top: 13px; }
.user-avatar { background: #efefef; color: #575757; font-size: 12px; }
.user-card strong { color: var(--ink); font-size: 12px; }
.user-card div > span, .logout { color: var(--muted); font-size: 11px; }
.logout:hover { background: #efefef; color: var(--ink); }
.main-shell { margin-left: 212px; width: calc(100% - 212px); }
.competitor-table td > small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.topbar { min-height: 56px; height: auto; padding: 12px 30px; background: #ffffffd9; gap: 16px; }
.breadcrumb, .breadcrumb strong, .breadcrumb-divider { color: var(--muted); font-size: 12px; }
.breadcrumb strong { color: var(--ink); font-weight: 600; }
.provider-badge { color: var(--muted); font-size: 11px; }
.provider-badge i { background: #568978; }
.topbar-right { gap: 14px; min-width: 0; }
.demo-banner { padding: 9px 30px; background: #f0f0f0; border-color: #e2e2e2; color: #535353; font-size: 12px; line-height: 1.5; }
.demo-banner strong { font-size: 10px; }
#main { max-width: 1510px; padding: 26px 30px 0; }
.page-heading { margin-bottom: 24px; gap: 20px; align-items: center; }
.page-heading h1 { color: var(--ink-strong); font-size: 30px; font-weight: 600; line-height: 1.25; letter-spacing: -1px; margin: 0; }
.page-heading p { font-size: 13px; line-height: 1.6; max-width: 680px; margin-top: 8px; color: var(--muted); }
.page-heading > .button { margin-top: 0; font-size: 13px; padding: 10px 15px; }
.heading-dot { color: var(--accent); }
.filter-bar { flex-wrap: wrap; padding: 0; border: 0; margin: 0 0 22px; gap: 12px; }
.filter-group { gap: 9px; min-width: 0; }
.filter-label { color: var(--muted); }
.select-wrap { border-color: #dddddd; border-radius: 7px; min-height: 39px; color: var(--muted); }
.select-wrap select { color: #464646; font-size: 12px; padding: 8px 18px 8px 0; min-width: 120px; }
.filter-actions { gap: 10px; }
.filter-actions .button { min-height: 37px; font-size: 12px; padding: 7px 11px; }
.updated-label { font-size: 11px; color: var(--muted); }

/* Common surfaces and quantitative hierarchy. */
.panel { border: 1px solid var(--line); background: #fff; box-shadow: none; overflow: visible; border-radius: 12px; }
.panel-head { padding: 22px 24px 18px; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.panel h2 { font-size: 15px; line-height: 1.4; font-weight: 600; color: var(--ink-strong); letter-spacing: -.2px; }
.panel-subtitle { font-size: 12px; color: var(--muted); line-height: 1.65; margin-top: 5px; }
.panel-head .text-button, .panel-foot .text-button { font-size: 12px; }
.panel-body { padding: 22px 24px 24px; }
.panel-head + .panel-body { padding-top: 0; }
.panel-head:only-child { padding-bottom: 22px; }
.panel-head + .table-wrap { padding-top: 0; }
.panel-foot { border-top-color: var(--line); padding: 14px 20px; }
.metrics-grid { gap: 16px; margin-bottom: 24px; }
.metric-card { padding: 20px; min-height: 144px; border-color: var(--line); box-shadow: var(--shadow); overflow: visible; }
.metric-top { color: #606060; font-size: 12px; line-height: 1.5; }
.metric-icon, .metric-card:nth-child(2) .metric-icon { background: #f5f5f5; border-color: #e9e9e9; color: #7d7d7d; }
.metric-number { color: var(--ink-strong); font-size: 31px; letter-spacing: -.7px; font-variant-numeric: tabular-nums; margin-top: 12px; }
.metric-bottom, .metric-bottom strong { color: var(--muted); font-size: 12px; }
.metric-bottom { padding-right: 65px; line-height: 1.45; }
.metric-spark { right: 18px; bottom: 22px; width: 64px; }
.dashboard-grid { gap: 22px; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); }
.full-panel { margin-top: 24px; }
.plan-metrics, .analysis-basis { background: #fff; border-color: var(--line); border-radius: var(--radius); gap: 20px; padding: 20px 22px; }
.plan-metrics strong, .analysis-basis strong { color: var(--ink-strong); font-size: 27px; font-variant-numeric: tabular-nums; line-height: 1.35; }
.analysis-basis strong { font-size: 24px; }
.plan-metrics span, .analysis-basis span { color: var(--muted); font-size: 12px; line-height: 1.5; margin-top: 5px; }
.analysis-basis p { color: var(--muted); border-top-color: var(--line); font-size: 12px; line-height: 1.7; }
.table-wrap { width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-color: #cbcbcb #f6f6f6; scrollbar-width: thin; padding-top: 0; }
.data-table { min-width: 640px; font-variant-numeric: tabular-nums; white-space: normal; }
.data-table th { min-width: 115px; vertical-align: bottom; white-space: normal; background: #fafaf9; border-color: var(--line); color: #737373; font-size: 12px; font-weight: 500; padding: 12px 18px; }
.data-table td { vertical-align: top; overflow-wrap: anywhere; color: #404040; font-size: 13px; padding: 16px 18px; border-color: #efefef; line-height: 1.55; }
.data-table th:first-child, .data-table td:first-child { padding-left: 24px; }
.data-table tbody tr:hover { background: #fbfbfb; }
.data-table .selected-row, .data-table .selected-row:hover { background: #f4f4f4; }
.table-title { display: block; min-width: 170px; max-width: 360px; white-space: normal; font-size: 13px; color: var(--ink); line-height: 1.5; overflow-wrap: anywhere; }
.table-subtitle { font-size: 12px; color: var(--muted); margin-top: 4px; max-width: 340px; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.prompt-icon { width: 32px; height: 34px; background: #f6f6f6; border-color: #e6e6e6; color: #727272; }
.table-note { font-size: 12px; color: var(--muted); padding: 13px 24px; border-color: var(--line); }
.table-note strong { color: #464646; }
.row-actions { gap: 5px; flex-wrap: wrap; }
.row-actions .icon-button { padding: 7px; min-width: 32px; min-height: 34px; color: #767676; }
.status { max-width: 100%; white-space: normal; background: #f1f7f3; color: #357151; font-size: 11px; font-weight: 500; padding: 3px 7px; border-radius: 5px; line-height: 1.5; }
.status.paused, .status.cancelled { background: #f0f0f0; color: #676767; }
.status.failed, .status.uncertain { background: #fcefeb; color: #9a4237; }
.status.window_elapsed { background: #fff3df; color: #765019; white-space: normal; line-height: 1.5; }
.schedule-notice { margin: 0 0 20px; }
.schedule-notice > div { min-width: 0; }
.status.queued, .status.running, .status.planned { background: #f3f3f3; color: #5a5a5a; }
.status.extraction_pending, .status.extraction_running, .status.consent_required { background: #fff5e4; color: #7e5a24; }
.model-tag { max-width: 100%; white-space: normal; overflow-wrap: anywhere; background: #f6f6f4; border-color: transparent; color: #666; font-size: 11px; padding: 3px 7px; border-radius: 5px; }
.model-tag-list .model-tag { font-size: 11px; }
.model-tag-list { gap: 5px; max-width: 290px; }
.pagination { border-color: var(--line); color: var(--muted); font-size: 12px; padding: 15px 22px; }
.pagination label, .pagination-controls { font-size: 12px; gap: 8px; }
.pagination select, .pagination input { border-color: #d7d7d7; font-size: 12px; min-height: 35px; padding: 6px 8px; }
.pagination input { width: 60px; }
.pagination .button { min-height: 35px; font-size: 12px; padding: 6px 11px; }
.history-controls > label, .history-controls form label { font-size: 12px; }
.history-controls select, .history-controls input { font-size: 13px; }
.history-controls { gap: 16px; }
.page-toolbar p, .plan-note { font-size: 13px; color: var(--muted); }
.main-footer { padding: 26px 0 24px; gap: 18px; flex-wrap: wrap; font-size: 11px; color: var(--muted); border-top: 1px solid var(--line); margin-top: 40px; }
.main-footer > span { color: #585858; font-size: 13px; }
.main-footer > button { color: var(--muted); font-size: 12px; }
.main-footer > p { min-width: 220px; }
.main-footer.app-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; margin-top: 36px; padding: 20px 0 24px; border-top-color: #e4e8e4; }
.app-footer-brand { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; color: #454d47; }
.app-footer-mark { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 25px; border-radius: 7px; background: #e9ede9; color: #4c5650; padding-bottom: 3px; font-size: 22px; font-weight: 750; line-height: 1; }
.app-footer-name { font-size: 13px; font-weight: 650; letter-spacing: -.35px; }
.app-footer-name > span { font-weight: 400; }
.app-footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.app-footer-links > a, .app-footer-links > button { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 6px 8px; border: 0; border-radius: 6px; background: transparent; color: #58635c; font-size: 12px; font-weight: 400; line-height: 1.5; text-decoration: none; white-space: nowrap; transition: color .15s, background .15s; }
.app-footer-links > a:hover, .app-footer-links > button:hover { background: #f1f4f1; color: #252f28; }
@media (max-width: 600px) {
  .main-footer.app-footer { align-items: flex-start; gap: 12px; margin-top: 28px; padding: 20px 0; }
  .app-footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 16px; width: 100%; }
  .app-footer-links > a, .app-footer-links > button { justify-content: flex-start; min-height: 38px; padding: 8px 0; }
}

/* Project selection remains visible before any period/model filters. */
.workspace-context { display: grid; grid-template-columns: minmax(200px, 310px) minmax(150px, 1fr) auto; align-items: center; gap: 14px 22px; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 18px; background: #fff; box-shadow: var(--shadow); }
.workspace-context > div { min-width: 0; }
.workspace-context label { margin: 0; color: #646464; font-size: 12px; }
.workspace-context strong { color: var(--ink); }
.workspace-context p, .workspace-context small { color: var(--muted); font-size: 12px; line-height: 1.6; }
.workspace-context #campaign-filter { width: 100%; min-width: 0; max-width: 100%; font-size: 13px; font-weight: 600; padding: 8px 10px; margin-top: 4px; }
.workspace-context > .button { margin-left: auto; }
.campaign-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.campaign-card { display: flex; flex-direction: column; min-width: 0; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.campaign-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 15px; }
.campaign-card-head > div { min-width: 0; }
.campaign-card h2, .campaign-card h3 { font-size: 19px; color: var(--ink-strong); line-height: 1.4; letter-spacing: -.25px; overflow-wrap: anywhere; }
.campaign-card p { font-size: 13px; color: var(--muted); line-height: 1.7; margin-top: 7px; overflow-wrap: anywhere; }
.campaign-card a { color: var(--accent); }
.campaign-card-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 22px 0 20px; padding: 18px 0; border-top: 1px solid #ececec; border-bottom: 1px solid #ececec; }
.campaign-card-stats > div { min-width: 0; }
.campaign-card-stats strong { display: block; font-size: 24px; line-height: 1.35; color: var(--ink-strong); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.campaign-card-stats span, .campaign-card-stats small { display: block; color: var(--muted); font-size: 12px; line-height: 1.6; margin-top: 4px; }
.campaign-card-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.campaign-overview { margin-bottom: 22px; }
.campaign-overview > p { max-width: 820px; color: var(--muted); font-size: 14px; }
.campaign-overview .campaign-card-stats { border: 0; margin-bottom: 0; }
.workspace-empty { padding: 42px 28px; border: 1px dashed #d1d1d1; border-radius: var(--radius); background: #fff; text-align: center; }
.workspace-empty h2, .workspace-empty h3 { color: var(--ink-strong); font-size: 22px; line-height: 1.4; }
.workspace-empty p { color: var(--muted); max-width: 600px; margin: 10px auto 22px; font-size: 14px; }
.workspace-empty .button { margin: 0 4px 6px; }

/* Prompt cards put the question, next action, and budget in a predictable order. */
.prompt-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 0; align-items: start; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.prompt-card { display: flex; flex-direction: column; min-width: 0; max-width: 100%; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
.prompt-card:focus-within { border-color: #b1b1b1; }
.prompt-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 23px 24px 0; }
.prompt-card-header > div { min-width: 0; flex: 1; }
.prompt-card-header > .status { flex: 0 1 auto; }
.prompt-card-title, .prompt-card h2, .prompt-card h3 { color: var(--ink-strong); font-size: 16px; line-height: 1.45; letter-spacing: -.25px; font-weight: 600; overflow-wrap: anywhere; }
.prompt-card-description { color: var(--muted); font-size: 13px; line-height: 1.7; margin-top: 7px; overflow-wrap: anywhere; white-space: pre-wrap; }
.prompt-card-body { padding: 12px 24px 0; min-width: 0; }
.prompt-card-body > * + * { margin-top: 16px; }
.prompt-card-meta { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 12px; }
.prompt-card .model-tag-list { max-width: none; }
.prompt-card .model-tag { line-height: 1.5; }
.prompt-card-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; padding: 0; margin: 0; border: 0; }
.prompt-card-metrics > * { min-width: 0; }
.prompt-card-metrics :is(span, small, dt) { display: block; color: var(--muted); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.prompt-card-metrics :is(strong, dd) { display: block; margin: 4px 0; color: var(--ink-strong); font-size: 16px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.prompt-card-details { margin: 16px 0 0; min-width: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.prompt-card-details > summary { display: flex; align-items: center; gap: 12px; justify-content: space-between; list-style: none; cursor: pointer; padding: 11px 0; color: var(--muted); font-size: 12px; font-weight: 500; }
.prompt-card-details > summary::-webkit-details-marker { display: none; }
.prompt-card-details > summary::after { content: "+"; font-size: 19px; line-height: 1; font-weight: 400; }
.prompt-card-details[open] > summary::after { content: "−"; }
.prompt-card-details > summary:hover { background: #f5f5f5; }
.prompt-card-details > :not(summary) { margin-left: 15px; margin-right: 15px; }
.prompt-card-details > :last-child:not(summary) { margin-bottom: 20px; }
.prompt-card-details p, .prompt-card-details .field-hint { font-size: 12px; line-height: 1.75; }
.prompt-card-details .prompt-project-field select { max-width: 100%; }
.prompt-card-footer { padding: 14px 24px 20px; margin-top: auto; border: 0; background: transparent; border-radius: 0; }
.prompt-card-footer > * + * { margin-top: 12px; }
.prompt-card-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.prompt-card-actions .button { flex: 0 1 auto; min-height: 34px; }
.prompt-card-actions .icon-button { border: 1px solid var(--line); min-width: 39px; min-height: 39px; background: #fff; }
.prompt-card-footer .risk-note { margin-top: 12px !important; }
.prompt-card .queue-state { align-items: flex-start; gap: 7px; }
.prompt-card .queue-state .ui-icon { flex-shrink: 0; margin-top: 4px; }
.prompt-card .forecast-model-details { max-width: none; }
.prompt-card .cost-cell { min-width: 0; max-width: 100%; }

.prompt-card-title > .text-button { display: inline; font: inherit; color: inherit; line-height: inherit; text-align: left; }
.prompt-card-title > .text-button:hover { color: var(--accent); }
.prompt-card-project { display: block; color: var(--muted); font-size: 11px; font-weight: 600; line-height: 1.5; margin-bottom: 5px; overflow-wrap: anywhere; }
.prompt-card-model-label { font-weight: 600; color: #646464; }
.prompt-card-schedule { display: flex; align-items: flex-start; gap: 8px; padding: 0; background: transparent; border: 0; border-radius: 0; }
.prompt-card-schedule > .ui-icon { flex: 0 0 18px; color: #808080; margin-top: 3px; }
.prompt-card-schedule > div { min-width: 0; flex: 1; }
.prompt-card-schedule > div > span, .prompt-card-schedule > div > strong { display: block; overflow-wrap: anywhere; }
.prompt-card-schedule > div > span { color: var(--muted); font-size: 12px; }
.prompt-card-schedule > div > strong { color: #484848; font-size: 13px; font-weight: 600; margin-top: 3px; }
.prompt-card-schedule > .text-button { flex-shrink: 0; font-size: 12px; }
.prompt-card-details[open] > summary { border-bottom: 1px solid var(--line); }
.prompt-card-details > summary { border-radius: 8px; }
.prompt-card-details-body { padding-top: 15px; }
.prompt-card-details-body h3 { margin: 18px 0 5px; font-size: 13px; }
.prompt-card-details-body h3:first-child { margin-top: 0; }
.prompt-card-details-body .prompt-project-field { margin-top: 17px; }
.prompt-card-forecast { font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.prompt-card-forecast small { display: block; color: var(--muted); font-size: 12px; }
.prompt-card-actions.secondary { justify-content: space-between; border-top: 1px solid #ebebeb; padding-top: 13px; margin-top: 14px; }
.prompt-card-actions.secondary .text-button { font-size: 12px; }
.prompt-card-footer > .prompt-card-actions > .text-button { padding: 8px 0; }
.section-intro h2 { color: var(--ink-strong); font-size: 18px; line-height: 1.4; font-weight: 650; letter-spacing: -.25px; }
.section-intro p { color: var(--muted); font-size: 13px; line-height: 1.7; margin-top: 5px; }
.analysis-view-nav { display: flex; align-items: stretch; flex-wrap: wrap; gap: 24px; padding: 0; width: 100%; max-width: 100%; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.analysis-view-nav button { flex: 0 1 auto; min-width: 0; min-height: 42px; padding: 8px 0 13px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: #707070; font-size: 13px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
.analysis-view-nav button:hover { background: #f7f7f7; color: #494949; }
.analysis-view-nav button.active { border-bottom-color: #292929; background: transparent; box-shadow: none; color: #202020; font-weight: 600; }
.provider-key-editor > form { padding-top: 16px; }
.provider-key-editor .checkbox-row { margin-top: 18px; }

/* Monitoring separates its current state, recent work, and measured outcomes. */
.monitor-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; margin: 0; padding: 4px 0 24px; border-bottom: 1px solid var(--line); }
.monitor-stat { min-width: 0; padding: 0 24px; background: transparent; border: 0; border-right: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.monitor-stat > span, .monitor-stat > small, .monitor-stat > p { display: block; font-size: 12px; color: var(--muted); line-height: 1.6; }
.monitor-stat > strong { display: block; font-size: 32px; line-height: 1.25; color: var(--ink-strong); font-weight: 550; letter-spacing: -1px; font-variant-numeric: tabular-nums; margin: 8px 0 3px; }
.monitor-stat .text-button { margin-top: 12px; font-size: 12px; }
.monitoring-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.monitoring-card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); padding: 0; }
.monitoring-card h2, .monitoring-card h3 { color: var(--ink-strong); font-size: 17px; line-height: 1.4; }
.monitoring-card > p { color: var(--muted); font-size: 13px; line-height: 1.7; margin-top: 6px; }
.monitoring-card .panel-head { padding: 22px 24px 16px; }
.monitoring-card .panel-body { padding: 18px 24px 22px; }
.monitoring-card > .button, .monitoring-card > .text-button { margin-top: 18px; }
.monitor-events { list-style: none; padding: 0; margin: 0; }
.monitor-events > li, .monitor-events > article, .monitor-events > .monitor-event { display: flex; align-items: flex-start; gap: 14px; padding: 16px 0; border-bottom: 1px solid #ebebeb; }
.monitor-events > :last-child { border-bottom: 0; }
.monitor-events > .monitor-event { width: 100%; min-width: 0; background: transparent; color: inherit; text-align: left; border: 0; border-bottom: 1px solid #ebebeb; border-radius: 0; padding: 16px 24px; }
.monitor-events > .monitor-event:last-child { border-bottom: 0; }
.monitor-events > button.monitor-event:hover { background: #f8f8f8; }
.monitor-event > span:first-child { flex: 1; min-width: 0; }
.monitor-event > span:first-child > strong, .monitor-event > span:first-child > small { display: block; }
.monitor-event > .status { flex-shrink: 0; margin-top: 3px; }
.monitor-event > svg { width: 18px; height: 18px; flex-shrink: 0; color: #838383; margin-top: 5px; }
.monitor-events time { flex-shrink: 0; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.monitor-events h3, .monitor-events h4, .monitor-events strong { color: #3e3e3e; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.monitor-events p, .monitor-events small { color: var(--muted); font-size: 12px; line-height: 1.6; margin-top: 3px; }
.monitor-events > li > div, .monitor-events > article > div { flex: 1; min-width: 0; }
.competitor-table { min-width: 760px; font-variant-numeric: tabular-nums; }
.competitor-table th:first-child, .competitor-table td:first-child { min-width: 190px; }
.competitor-table td:first-child strong { color: #3a3a3a; }
.competitor-table .status { margin-left: 5px; }
.workflow-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 0; margin: 0 0 22px; list-style: none; }
.workflow-steps > * { min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 18px; }
.workflow-steps strong { display: block; font-size: 14px; color: var(--ink); }
.workflow-steps p, .workflow-steps span { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* Explanation disclosure is a deliberate second reading level, never hidden consent. */
.explanation, .cost-disclosure { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; margin: 14px 0; overflow-wrap: anywhere; }
.explanation > summary, .cost-disclosure > summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; cursor: pointer; list-style: none; color: #505050; font-size: 13px; font-weight: 500; line-height: 1.6; }
.explanation > summary::-webkit-details-marker, .cost-disclosure > summary::-webkit-details-marker { display: none; }
.explanation > summary::after, .cost-disclosure > summary::after { content: "+"; flex: 0 0 20px; display: grid; place-items: center; width: 20px; height: 20px; color: #707070; font-size: 16px; font-weight: 400; line-height: 1; }
.explanation[open] > summary::after, .cost-disclosure[open] > summary::after { content: "−"; }
.explanation > summary:hover, .cost-disclosure > summary:hover { background: #f9f9f9; }
.explanation[open] > summary, .cost-disclosure[open] > summary { border-bottom: 1px solid var(--line); background: #f9f9f9; }
.explanation > :not(summary), .cost-disclosure > :not(summary) { margin-left: 17px; margin-right: 17px; }
.explanation > :last-child, .cost-disclosure > :last-child { margin-bottom: 17px; }
.explanation p, .explanation li, .cost-disclosure p, .cost-disclosure li { font-size: 13px; color: var(--muted); line-height: 1.75; }
.explanation p { margin-top: 12px; }
.explanation h3, .cost-disclosure h3 { font-size: 14px; color: var(--ink); margin-top: 16px; }
.method-example { background: #f7f7f7; border: 1px solid #e4e4e4; border-radius: 8px; padding: 15px 17px; margin: 14px 0; color: #555555; font-size: 13px; line-height: 1.75; }
.method-example strong { color: #3c3c3c; }
.method-example blockquote { margin: 10px 0; padding: 4px 0 4px 12px; border-left: 3px solid #bebebe; color: #4a4a4a; }
.method-example p + p { margin-top: 9px; }
.methodology p { font-size: 14px; color: #5e5e5e; line-height: 1.8; }
.methodology h3 { font-size: 16px; color: var(--ink-strong); margin-top: 25px; }
.methodology strong { color: var(--ink); }

/* Money is prominent; the accounting assumptions remain one level below it. */
.cost-overview, .prompt-cost-preview, .run-cost { background: #fafafa; border-color: #e3e3e3; color: var(--ink); border-radius: 10px; padding: 18px 20px; }
.cost-overview { margin-bottom: 24px; }
.cost-overview-heading h3, .cost-section-heading h3 { font-size: 14px; color: #424242; }
.cost-overview-heading > span, .cost-section-heading > span { color: var(--muted); font-size: 12px; }
.cost-overview-grid > div + div { border-left-color: #e4e4e4; }
.cost-overview-grid strong { max-width: 100%; text-align: left; color: var(--ink-strong); font-size: 21px; line-height: 1.5; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cost-overview-grid span, .cost-overview-grid small, .cost-overview > p { color: var(--muted); font-size: 12px; }
.cost-overview a { color: #636363; }
.cost-provider-totals { border-color: #e4e4e4; font-size: 12px; padding-top: 13px; }
.cost-provider-totals strong, .cost-provider-totals span { font-size: 12px; color: #636363; }
.cost-cell { font-size: 13px !important; max-width: 245px; min-width: 165px; color: #434343; }
.cost-cell small, .forecast-model-details, .forecast-model-details p { font-size: 12px; color: var(--muted); line-height: 1.6; }
.forecast-model-details summary { color: var(--accent); }
.forecast-model-details strong { font-size: 12px; }
.cost-summary { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px 24px; padding: 17px 20px; border: 1px solid #e3e3e3; border-radius: 10px; margin: 0 0 20px; background: #fafafa; }
.cost-summary > div { min-width: 0; }
.cost-summary strong { max-width: 100%; text-align: left; overflow-wrap: anywhere; color: #373737; font-size: 19px; font-variant-numeric: tabular-nums; line-height: 1.5; }
.cost-summary span, .cost-summary p, .cost-summary small { color: var(--muted); font-size: 12px; line-height: 1.65; }
.cost-summary .button { background: #fff; }
.cost-overview.cost-summary { display: block; }
.cost-overview.cost-summary > .cost-overview-heading, .cost-overview.cost-summary > .cost-overview-grid { width: 100%; }
.cost-overview.cost-summary .cost-overview-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 17px; }
.cost-overview.cost-summary .cost-overview-heading > strong { font-size: 14px; }
.cost-overview.cost-summary .cost-overview-grid { margin-bottom: 16px; }
.prompt-cost-preview p, .run-cost p, .prompt-cost-preview details { font-size: 13px; color: var(--muted); line-height: 1.75; }
.prompt-cost-preview .cost-disclosure, .run-cost .cost-disclosure { margin-bottom: 0; }
.estimate-figures { gap: 20px; }
.estimate-figures strong { font-size: 23px; color: #373737; line-height: 1.5; font-variant-numeric: tabular-nums; }
.estimate-figures span { font-size: 12px; color: var(--muted); }
.estimate-breakdown { font-size: 13px; gap: 10px; border-color: #e5e5e5; }
.cost-stage { border-color: #e5e5e5; border-radius: 8px; padding: 15px; }
.cost-stage > div > span { font-size: 12px; color: var(--muted); }
.cost-stage > strong { font-size: 17px; color: var(--ink-strong); line-height: 1.5; }
.cost-uncertainty { background: #fff9ef; border-color: #eedbb9; color: #75531e; font-size: 13px; line-height: 1.7; }
.cost-uncertainty p, .cost-uncertainty li { color: #75531e; }
.currency-note, .risk-note { font-size: 12px !important; line-height: 1.75; color: #676767 !important; }
.currency-note strong { color: #4c4c4c; }
.pricing-panel .panel-body > p, .pricing-panel .panel-body > .field-hint, .pricing-links .text-button { font-size: 13px; }
.pricing-panel .data-table td, .pricing-panel .data-table th, .model-leaderboards .data-table td, .model-leaderboards .data-table th { font-size: 12px; padding: 12px; }
.model-estimates { min-width: 470px; }
.model-estimates small, .model-estimates details, .model-estimates li, .model-leaderboards small { font-size: 12px; color: var(--muted); }

/* Keep the billed currency and its optional conversion on separate reading lines. */
.money-line.money-primary, .money-line.money-secondary, .money-line.money-status {
  display: block; min-width: 0; max-width: 100%; margin: 0; white-space: normal;
  word-break: normal; overflow-wrap: anywhere; font-variant-numeric: tabular-nums;
  line-height: 1.5; letter-spacing: 0;
}
.money-line.money-primary { color: inherit; font-size: 1em; font-weight: inherit; }
.money-line.money-secondary { color: var(--muted); font-size: .78em; font-weight: 500; margin-top: 2px; }
.money-line.money-status { width: fit-content; margin-top: 5px; padding: 2px 6px; border-radius: 4px; background: #fff3df; color: #77531f; font-size: 12px; font-weight: 550; }

/* Forms make decisions comfortable to read without enlarging icon artwork. */
label { font-size: 13px; color: #505050; font-weight: 550; margin-bottom: 19px; }
input, select, textarea { color: #373737; font-size: 14px; border-color: #d7d7d7; border-radius: 7px; padding: 10px 12px; background: #fff; }
input[type="checkbox"], input[type="radio"] { width: 17px; height: 17px; accent-color: var(--accent); }
.checkbox-row, .provider-key-form .checkbox-row { font-size: 13px; line-height: 1.7; color: #515151; gap: 11px; }
.field-hint, .settings-grid .field-hint, .currency-settings .field-hint, .waitlist-settings .field-hint { font-size: 13px; line-height: 1.75; color: var(--muted); }
.optional { font-size: 12px; color: var(--muted); }
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-section-heading { border-color: var(--line); margin-top: 27px; padding-top: 22px; color: #727272; }
.form-section-heading h3 { font-size: 14px; color: #494949; }
.modal { width: min(660px, calc(100% - 32px)); border-color: #dfdfdf; border-radius: 14px; box-shadow: 0 28px 100px rgb(15 30 58 / 22%); max-height: 92vh; }
.modal::backdrop { background: rgb(24 37 58 / 58%); backdrop-filter: blur(2px); }
.prompt-modal { width: min(800px, calc(100% - 32px)); }
.detail-modal { width: min(980px, calc(100% - 32px)); }
.confirm-modal { max-width: 620px; }
#confirm-message { white-space: pre-line; }
.modal-heading { padding: 23px 28px 20px; border-color: var(--line); background: #fff; }
.modal-heading h2 { font-size: 23px; color: var(--ink-strong); letter-spacing: -.45px; }
.modal-heading .eyebrow { font-size: 10px; }
.modal-body { padding: 25px 28px; }
.modal-footer { padding: 17px 28px; border-color: var(--line); background: #f9f9f9; }
.modal-footer .button { font-size: 13px; }
.mode-selector { padding: 22px 28px 0; gap: 13px; }
.mode-option { border-color: #e1e1e1; padding: 15px; gap: 12px; }
.mode-option:has(input:checked) { border-color: #b6b6b6; background: #f5f5f5; }
.mode-option:has(input:focus-visible) { outline-color: #acacac; }
.mode-option > span[data-icon], .mode-option:has(input:checked) > span[data-icon] { color: #797979; }
.mode-option strong { color: #484848; font-size: 13px; }
.mode-option small { color: var(--muted); font-size: 12px; line-height: 1.5; }
.model-choice-fieldset { border-color: #e0e0e0; padding: 17px; border-radius: 9px; margin: 23px 0; }
.model-choice-fieldset > legend { color: #454545; font-size: 14px; }
.model-provider-group h3 { color: #555555; font-size: 13px; }
.model-provider-group h3 small { color: var(--muted); font-size: 12px; }
.model-provider-group + .model-provider-group { border-color: var(--line); padding-top: 16px; margin-top: 16px; }
.model-provider-group > summary { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 12px; color: #545454; font-size: 13px; font-weight: 650; line-height: 1.6; cursor: pointer; list-style: none; padding: 10px 0; }
.model-provider-group > summary::-webkit-details-marker { display: none; }
.model-provider-group > summary::after { content: "+"; display: grid; place-items: center; flex: 0 0 22px; width: 22px; height: 22px; margin-left: auto; border-radius: 4px; color: #6c6c6c; background: #f2f2f2; font-size: 18px; font-weight: 400; }
.model-provider-group[open] > summary::after { content: "−"; }
.model-provider-group > summary > small { color: var(--muted); font-size: 12px; font-weight: 400; }
.model-provider-group[open] > summary { margin-bottom: 9px; }
.model-provider-group > summary:hover { color: #494949; }
.prompt-project-field { margin: 9px 0 0; color: #6c6c6c; font-size: 12px; text-align: left; }
.prompt-project-field select { width: 100%; min-width: 160px; max-width: 200px; min-height: 35px; padding: 7px 9px; margin-top: 5px; font-size: 12px; color: #535353; background: #fff; }
.prompt-suggestion-action { margin: -5px 0 22px; }
.prompt-suggestion-button { flex-wrap: wrap; white-space: normal; text-align: left; }
.coming-soon-badge { display: inline-flex; align-items: center; padding: 2px 7px; border: 1px solid #dfdfdf; border-radius: 5px; background: #fff; color: #5f5f5f; font-size: 11px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.future-field-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.prompt-future-field { margin: 20px 0; }
.prompt-future-field input:disabled, .prompt-suggestion-button:disabled, .prompt-suggestion-button:disabled:hover { background: #f6f6f6; color: #676767; border-color: #dfdfdf; cursor: default; opacity: 1; box-shadow: none; transform: none; }
.prompt-future-field input:disabled { -webkit-text-fill-color: #676767; }
.model-choice { color: #4a4a4a; font-size: 13px !important; padding: 12px; border-color: #e3e3e3; gap: 10px; line-height: 1.55; }
.model-choice:has(input:checked) { background: #f5f5f5; border-color: #b0b0b0; }
.model-choice input { accent-color: var(--accent); }
.model-choice input:focus-visible { outline-color: #acacac; }
.model-search-note { color: var(--muted); font-size: 12px; line-height: 1.6; }
.model-config { border-color: #e1e1e1; padding: 14px 16px; }
.model-config summary { color: #535353; font-size: 13px; }
.model-config summary > span { font-size: 12px; color: var(--muted); }
.merchant-option, .search-options { border-color: #e4e4e4; background: #f9f9f9; padding: 17px 18px; margin: 20px 0; }
.simple-info, .schedule-explanation { background: #f5f5f5; border-color: #e4e4e4; color: #575757; padding: 17px; }
.simple-info strong, .schedule-explanation > strong { font-size: 13px; color: #484848; }
.simple-info p, .schedule-explanation p { font-size: 13px; line-height: 1.75; color: #696969; }
.schedule-migration-note { background: #fff8e9; color: #7b5b2b; border-left-color: #bf9451; font-size: 13px; }
.schedule-window-field legend, .weekday-field legend { color: #545454; font-size: 13px; }
.schedule-window-choice { border-color: #dcdcdc; padding: 13px; }
.schedule-window-choice:has(input:checked) { background: #f5f5f5; border-color: #aaaaaa; }
.schedule-window-choice input { accent-color: var(--accent); }
.schedule-window-choice strong { color: #484848; font-size: 14px; }
.schedule-window-choice small { color: #6d6d6d; font-size: 12px; }
.weekdays span { color: #646464; border-color: #dfdfdf; font-size: 13px; padding: 10px 7px; }
.weekdays input:checked + span { background: #f4f4f4; border-color: #b8b8b8; color: #585858; }
.weekdays input:focus-visible + span { outline-color: #acacac; }
.consent-box { border-color: #e0e0e0; background: #f8f8f8; padding: 17px; margin: 21px 0; }
.consent-box h3 { color: #505050; font-size: 14px; }
.consent-box > p, .confirm-modal .consent-box > p { color: #676767; font-size: 12px; line-height: 1.8; }
.consent-box .checkbox-row { color: #4d4d4d; font-size: 13px; line-height: 1.75; }
.consent-accepted { color: #356950; background: #f0f7f3; border-color: #d5e6dc; font-size: 12px; padding: 12px 15px; }
.cost-note { color: #6c6c6c; background: #f8f8f8; border-color: #e4e4e4; }
.cost-note p { color: #6c6c6c; font-size: 12px; line-height: 1.75; }
.form-error { color: #a53c35; font-size: 13px; }
.campaign-form textarea { min-height: 92px; }
.competitor-editor { padding: 17px; border: 1px solid #e1e1e1; border-radius: 9px; margin: 18px 0; background: #fafafa; }
.competitor-editor h3 { font-size: 14px; color: #4d4d4d; margin-bottom: 8px; }
.competitor-fields { min-width: 0; display: block; padding: 17px; border: 1px solid #e3e3e3; border-radius: 8px; margin: 18px 0; background: #fff; }
.competitor-fields legend { color: #616161; font-size: 13px; font-weight: 600; padding: 0 5px; }
.competitor-fields label { margin-bottom: 15px; }
.competitor-fields .form-grid { margin-bottom: 15px; }
.competitor-fields .form-grid label { margin-bottom: 0; }
.competitor-fields .icon-button, .competitor-fields > .button { margin-top: 26px; }
.competitor-fields .field-hint { grid-column: 1 / -1; margin-top: 0; }

/* Existing result, connection, and chart components share the new reading scale. */
.notice { background: #f4f4f4; border-color: #dddddd; color: #616161; padding: 16px 18px; }
.notice strong { color: #4c4c4c; font-size: 14px; }
.notice div > span { font-size: 13px; }
.notice .button { color: #575757; border-color: #d3d3d3; background: #fff; }
.queue-preview { background: #f4f4f4; border-color: #e3e3e3; padding: 18px 20px; }
.queue-preview strong { font-size: 14px; color: #494949; }
.queue-preview p { font-size: 13px; color: #6b6b6b; }
.queue-preview .ui-icon { color: #808080; }
.queue-state, .queue-link { font-size: 12px; line-height: 1.6; }
.settings-grid { gap: 22px; align-items: start; }
.settings-info { color: #666666; background: #f7f7f7; border-color: #e4e4e4; font-size: 13px; padding: 18px; }
.settings-info h3 { color: #494949; font-size: 14px; }
.settings-account { color: #616161; font-size: 13px; gap: 13px; grid-template-columns: 110px minmax(0, 1fr); }
.key-state { background: #f0f7f3; border-color: #d4e5db; color: #476950; padding: 14px; font-size: 13px; }
.key-state strong { color: #355a40; font-size: 13px; }
.key-state .text-button { font-size: 12px; color: #595959; }
.key-state.no-key { background: #f8f8f8; border-color: #e3e3e3; color: #666666; }
.empty-state h3 { color: #4c4c4c; font-size: 18px; }
.empty-state p, .compact-empty { color: var(--muted); font-size: 14px; }
.empty-icon { background: #f5f5f5; border-color: #e4e4e4; color: #7f7f7f; }
.insight-strip { color: #606060; background: #f4f4f4; border-color: #e2e2e2; font-size: 13px; padding: 16px 18px; }
.insight-strip strong, .insight-strip button, .insight-strip > span[data-icon] { color: #5a5a5a; font-size: 13px; }
.ranking-list { padding: 15px 24px 8px; }
.ranking-row { padding: 13px 0; border-color: #ececec; }
.ranking-index { color: var(--muted); font-size: 12px; width: 12px; }
.entity-avatar { background: #f2f2f2; border-color: #e4e4e4; color: #6e6e6e; font-size: 12px; }
.ranking-name { font-size: 13px; color: #454545; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.rank-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.ranking-stat { color: #464646; font-size: 14px; }
.ranking-stat small { color: var(--muted); font-size: 11px; }
.entity-summary { gap: 30px; }
.entity-summary strong { font-size: 25px; color: #414141; }
.entity-summary span, .entity-detail-link { font-size: 12px; color: var(--muted); }
.comparison { padding: 20px 24px; }
.comparison-row { grid-template-columns: minmax(130px, 190px) minmax(0, 1fr) 55px; font-size: 12px; color: #616161; margin-bottom: 16px; gap: 14px; }
.comparison-name { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.comparison-value { color: #494949; font-variant-numeric: tabular-nums; }
.chart-legend { font-size: 12px; color: #666666; margin: 18px 24px 9px; }
.chart-axis { fill: #6a6a6a; }
.chart-grid { stroke: #ededed; }
.chart-caption { font-size: 12px; color: #6b6b6b; border-color: #eaeaea; padding: 13px 24px; flex-wrap: wrap; }
.chart-instructions { color: #6f6f6f; font-size: 12px; margin-top: 12px; }
.segmented { background: #f3f3f3; border-color: #e6e6e6; padding: 4px; max-width: 100%; flex-wrap: wrap; }
.segmented button { color: #6f6f6f; font-size: 12px; padding: 6px 10px; white-space: normal; }
.segmented button.active { color: #555555; background: #fff; }
.chart-tooltip { border-color: #d9d9d9; border-radius: 10px; color: #454545; box-shadow: 0 10px 32px rgb(26 48 81 / 16%); font-size: 13px; }
.chart-tooltip[data-pinned] { border-color: #959595; }
.chart-tooltip-title, .chart-tooltip-row dd { color: #3b3b3b; font-size: 14px; }
.chart-tooltip-subtitle, .chart-tooltip-row dt, .chart-tooltip-note, .chart-tooltip-hint, .chart-tooltip-count { color: #6b6b6b; font-size: 12px; }
.chart-tooltip-close { color: #585858; background: #f3f3f3; text-decoration: none; }
.chart-tooltip-close:hover { background: #e9e9e9; }
.chart-tooltip-step { color: #5b5b5b; background: #f6f6f6; border-color: #dadada; }
.chart-tooltip-step:hover:not(:disabled) { background: #efefef; border-color: #aeaeae; }
.chart-tooltip-step:disabled { background: #f5f5f5; border-color: #e4e4e4; color: #7d7d7d; cursor: default; }
.chart-tooltip-close:focus-visible, .chart-tooltip-step:focus-visible { outline-color: #acacac; }
svg[data-chart] .is-chart-pinned .chart-guide, svg[data-chart] .chart-bar-focus { stroke: #717171; }
svg[data-chart] g[data-chart-point]:focus-visible .chart-hit { fill: #5d5d5d0d; stroke: #7b7b7b; }
.detail-meta, .detail-meta .model-tag { font-size: 12px; color: #6b6b6b; }
.run-analysis-status { font-size: 12px; color: var(--muted); line-height: 1.65; }
.answer-text { max-width: 100%; color: #464646; font-size: 14px; line-height: 1.9; overflow-wrap: anywhere; }
.answer-text a { color: var(--accent); }
.prompt-card-schedule .prompt-scheduler { display:inline-flex; align-items:center; gap:6px; width:fit-content; max-width:100%; margin-bottom:7px; padding:3px 7px; border:1px solid #e0e4e8; border-radius:6px; background:#f4f5f6; color:#4c5868; font-size:11px; line-height:1.5; }
.prompt-card-schedule .prompt-scheduler.external { background:#f0f5f2; border-color:#dbe6df; color:#3c5c49; }
.prompt-scheduler .column-help { flex:none; margin:0; }
.citation-redirect { margin:6px 0 10px; font-size:11px; color:#647167; }
.citation-redirect summary { cursor:pointer; }
.citation-redirect p { overflow-wrap:anywhere; margin:8px 0; }
.position-group { background: #f8f8f8; border-color: #e4e4e4; padding: 17px; }
.position-group h4 { font-size: 14px; color: #515151; }
.position-badge { color: #575757; background: #ededed; }
.position-badge.unknown { color: #757575; background: #f0f0f0; }
.answer-position-list strong { color: #4c4c4c; font-size: 13px; }
.answer-position-list small, .position-coverage { font-size: 12px; color: var(--muted); }
.position-timeline h3, .model-entity-focus h3 { font-size: 14px; color: #555555; }
.position-timeline .data-table td, .position-timeline .data-table th { font-size: 12px; }
.period-comparison-grid > div { border-color: #e5e5e5; background: #f9f9f9; padding: 16px; }
.period-comparison-grid strong { color: #4c4c4c; font-size: 27px; font-variant-numeric: tabular-nums; }
.period-comparison-grid span, .period-comparison-grid small { color: var(--muted); font-size: 12px; }
.period-comparison .cost-section-heading > strong { color: #545454; font-size: 14px; }
.model-comparison-note { font-size: 13px; color: var(--muted); }
.model-leaderboards details { border-color: #e4e4e4; padding: 14px; }
.model-leaderboards summary { font-size: 13px; color: #5b5b5b; }
.toast { background: #444444; color: #f8f8f8; border-color: #686868; box-shadow: 0 7px 30px rgb(22 41 68 / 16%); font-size: 13px; }
.toast.error { background: #914c45; border-color: #a66b66; }

/* The sign-in experience uses the same restrained palette. */
.auth-story { background: #efefef; }
.auth-story .brand { color: #3a3a3a; }
.auth-story:after { border-color: #d3d3d3; box-shadow: 0 0 0 60px #d3d3d322, 0 0 0 120px #d3d3d318; }
.auth-story-content > .eyebrow, .auth-story-content > p, .auth-footer { color: #6d6d6d; }
.auth-story h1 { color: #3b3b3b; }
.auth-story h1 em { color: #727272; }
.auth-box h2 { color: #3d3d3d; }
.auth-box > .muted, .auth-demo, .auth-legal, .auth-cost { color: var(--muted); font-size: 13px; }
.auth-box .overline { color: #757575; font-size: 10px; }
.auth-box form > label, .auth-tabs button { font-size: 13px; }
.auth-box input { font-size: 14px; }
.auth-box .button { font-size: 14px; }
.auth-demo { border-color: #e3e3e3; }
.auth-demo a { color: var(--accent); }


/* A compact workspace shell keeps filters next to the information they control. */
.sidebar-create { justify-content: flex-start; width: 100%; margin: 0 0 28px; background: #fff; box-shadow: 0 1px 2px #00000005; }
.sidebar .nav-item .nav-active-dot { display: none; }
.sidebar-bottom .nav-item { width: 100%; }
.sidebar .nav-item svg { width: 17px; height: 17px; }
.app-shell .topbar { display: none; }
.app-shell #main { padding: 48px 40px 0; max-width: 1320px; margin: 0 auto; }
.demo-banner { background: #f8f8f6; border-bottom: 1px solid #eeeee9; color: #73736f; padding: 9px 32px; }
.demo-banner strong { font-size: 10px; font-weight: 600; letter-spacing: .5px; }
.demo-banner a { color: #494946; }
.filter-dock { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.filter-dock:has(> [hidden]):not(:has(> :not([hidden]))) { display: none; }
.filter-dock .workspace-context { display: flex; align-items: center; gap: 5px; padding: 0; margin: 0; background: transparent; box-shadow: none; border: 0; border-radius: 0; flex: 0 1 230px; min-width: 0; }
.filter-dock .workspace-context[hidden], .filter-dock .filter-bar[hidden] { display: none; }
.filter-dock .workspace-context .project-select { flex: 1; min-width: 0; }
.filter-dock .workspace-context #campaign-filter { border: 0; background: transparent; padding: 8px 18px 8px 0; margin: 0; font-size: 12px; font-weight: 500; }
.filter-dock .filter-bar { flex: 1 1 500px; display: flex; align-items: flex-start; gap: 10px; padding: 0; margin: 0; }
.filter-dock .filter-group { display: flex; flex: 1; flex-wrap: wrap; gap: 8px; }
.filter-dock .filter-label { display: none; }
.filter-dock .select-wrap { margin: 0; min-width: 0; max-width: 100%; padding: 0 9px; min-height: 36px; background: #fafaf9; border-color: #e8e8e5; border-radius: 7px; }
.filter-dock select { width: auto; min-width: 100px; max-width: 190px; font-weight: 400; }
.filter-dock .prompt-select select { width: 145px; }
.filter-dock .model-filter-wrap select { width: 125px; }
.filter-dock .select-wrap svg { width: 14px; height: 14px; }
.filter-dock .updated-label { display: none; }
.filter-dock .refresh-label { display: none; }
.filter-dock .filter-actions { margin-left: auto; gap: 6px; width: auto; }
.filter-dock .filter-actions .button { min-height: 36px; padding: 7px 10px; }
.project-context-details { position: relative; flex: 0 0 auto; }
.project-context-details > summary { cursor: pointer; list-style: none; display: grid; place-items: center; width: 28px; height: 34px; color: #777; border-radius: 6px; }
.project-context-details > summary::-webkit-details-marker { display: none; }
.project-context-details > summary:hover { background: #f3f3f0; }
.project-context-details > summary svg { width: 15px; height: 15px; }
.project-context-details > div { position: absolute; z-index: 30; top: 40px; left: -205px; width: 260px; max-width: calc(100vw - 44px); padding: 16px; border: 1px solid var(--line); background: #fff; border-radius: 10px; box-shadow: 0 8px 30px #0000000d; }
.project-context-details p { margin-bottom: 10px; }
.monitor-stat:first-child { padding-left: 0; }
.monitor-stat:last-child { border-right: 0; }
.dashboard-focus { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(250px,1fr); gap: 24px; align-items: start; }
.dashboard-focus > * { min-width: 0; margin: 0; }
.dashboard-comparison { margin: 0; }
.dashboard-comparison > summary { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; padding: 17px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); cursor: pointer; list-style: none; font-size: 14px; font-weight: 600; }
.dashboard-comparison > summary::-webkit-details-marker { display: none; }
.dashboard-comparison > summary small { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 400; }
.dashboard-comparison > summary::after { content: '+'; color: var(--muted); font-size: 18px; font-weight: 400; }
.dashboard-comparison[open] > summary::after { content: '−'; }
.dashboard-comparison > .panel { margin: 10px 0 0; }
.prompt-card:last-child { border-bottom: 0; }
.prompt-card:hover { background: #fdfdfc; }
.prompt-card-summary { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.prompt-card-body { display: grid; grid-template-columns: minmax(0,1fr) minmax(250px,.8fr); column-gap: 32px; }
.prompt-card-body > * + * { margin-top: 0; }
.prompt-card-body > .prompt-card-details { grid-column: 1 / -1; margin-top: 17px; }
.prompt-card-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.prompt-card-footer > * + * { margin-top: 0; }
.prompt-card-footer .prompt-card-actions { flex: 1; }
.prompt-card-footnote { font-size: 12px; line-height: 1.6; color: var(--muted); }
.prompt-card-header .model-tag-list { margin-top: 6px; }
.prompt-card-actions .text-button { font-size: 12px; }
.prompt-card-actions .button { flex: 0 1 auto; }
.prompt-card-actions .button.primary { background: #f2f2ef; border-color: transparent; color: #292929; box-shadow: none; }
.prompt-card-actions .button.primary:hover { background: #e8e8e4; }
.prompt-actions-menu { position: relative; margin-left: auto; }
.prompt-actions-menu > summary { display: flex; align-items: center; justify-content: center; gap: 6px; list-style: none; cursor: pointer; color: #606060; font-size: 12px; border: 1px solid var(--line); border-radius: 7px; padding: 6px 11px; min-height: 34px; }
.prompt-actions-menu > summary::-webkit-details-marker { display: none; }
.prompt-actions-menu > summary svg { width: 14px; height: 14px; }
.prompt-actions-menu > summary:hover, .prompt-actions-menu[open] > summary { background: #f2f2f0; }
.prompt-actions-popover { position: absolute; z-index: 25; right: 0; top: calc(100% + 6px); display: flex; flex-direction: column; gap: 4px; min-width: 205px; max-width: calc(100vw - 50px); padding: 7px; border: 1px solid #e5e5e2; border-radius: 10px; background: #fff; box-shadow: 0 8px 28px #00000012; }
.prompt-actions-popover .button, .prompt-actions-popover .text-button { width: 100%; margin: 0; padding: 9px 11px; border: 0; border-radius: 5px; background: transparent; justify-content: flex-start; text-align: left; font-size: 12px; color: #444; }
.prompt-actions-popover .button:hover, .prompt-actions-popover .text-button:hover { background: #f5f5f2; }
.prompt-actions-popover > button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: transparent; border: 0; border-radius: 5px; padding: 10px; font-size: 13px; line-height: 1.5; }
.prompt-actions-popover > button:hover { background: #f5f5f2; }
.prompt-actions-popover > button > svg { flex: 0 0 16px; width: 16px; height: 16px; }
.prompt-actions-popover small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.cost-overview-compact { padding: 20px 0 0; margin: 0; background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.cost-overview-compact .cost-overview-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.cost-overview-lifetime { display: flex; flex-direction: column; gap: 5px; padding: 16px 0; color: var(--muted); font-size: 12px; }
.cost-overview-lifetime > strong { color: var(--ink); font-size: 18px; }
.cost-overview-compact .cost-overview-grid strong { font-size: 19px; font-weight: 550; }
.cost-overview-compact .cost-overview-grid > div + div { border: 0; padding-left: 0; }
.cost-overview-compact .cost-overview-heading { margin-bottom: 15px; }
.cost-overview-compact .risk-note { font-size: 11px !important; }
.main-footer > span { margin-right: auto; font-size: 12px; font-weight: 600; color: #50504d; }
.analysis-view-nav button:hover { background: transparent; color: #292929; }
.legend-marker, .chart-tooltip-dot.orange { background: #3f5148; }
.legend-marker.secondary, .chart-tooltip-dot.green { background: #aaa99f; }
.explanation[open] > summary, .cost-disclosure[open] > summary { background: transparent; }
.explanation > :not(summary), .cost-disclosure > :not(summary) { margin-left: 0; margin-right: 0; }

@media (min-width: 1550px) {
  .sidebar { width: 232px; padding-left: 17px; padding-right: 17px; }
  .main-shell { margin-left: 232px; width: calc(100% - 232px); }
  #main { padding-left: 36px; padding-right: 36px; }
  .topbar, .demo-banner { padding-left: 36px; padding-right: 36px; }
}
@media (max-width: 1180px) {
  .prompt-grid { grid-template-columns: minmax(0, 1fr); }
  .sidebar { width: 224px; padding-left: 14px; padding-right: 14px; }
  .main-shell { margin-left: 224px; width: calc(100% - 224px); }
  #main { padding: 24px 24px 0; }
  .topbar, .demo-banner { padding-left: 25px; padding-right: 25px; }
  .metrics-grid, .monitor-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .monitoring-layout, .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
  .campaign-card { padding: 20px; }
  .campaign-card-stats { gap: 11px; }
  .cost-overview-grid strong { max-width: 100%; font-size: 20px; text-align: left; }
  .cost-overview-grid > div + div { padding-left: 16px; }
  .page-heading > .button { white-space: normal; }
}
@media (max-width: 950px) {
  .workspace-context > .button { grid-column: 2; grid-row: 1; }
  .cost-overview-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .cost-overview-grid > div + div { border-left: 0; border-top: 1px solid var(--line); padding: 16px 0 0; }
  .insight-strip button { display: inline-flex; }
  .campaign-grid, .settings-grid { grid-template-columns: minmax(0, 1fr); }
  .page-heading h1 { font-size: 28px; }
  .page-heading { gap: 16px; }
  .workspace-context { grid-template-columns: minmax(0, 1fr) auto; }
  .workspace-context > p { grid-column: 1 / -1; grid-row: 2; }
  .workflow-steps { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .workflow-steps > * { padding: 16px; }
  .workflow-steps > *::before { float: left; margin: 0 12px 0 0; }
  .workflow-steps p { margin-top: 5px; }
  .plan-metrics, .analysis-basis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  #page-content { gap: 20px; }
  #cost-overview:not(:empty) { margin-bottom: 20px; }
  #page-content + #cost-overview:not(:empty) { margin-top: 20px; }
  .prompt-grid { gap: 16px; }
  .analysis-view-nav { width: 100%; }
  .analysis-view-nav button { flex-basis: 130px; padding: 9px 12px; }
  .prompt-card-header { padding: 19px 19px 0; }
  .prompt-card-body { padding: 15px 19px 19px; }
  .prompt-card-footer { padding: 15px 19px; }
  .prompt-card-details > summary { padding: 13px 14px; }
  .prompt-card-details > :not(summary) { margin-left: 14px; margin-right: 14px; }
  .prompt-card-metrics { gap: 16px; }
  .prompt-card-actions .button { flex: 1 1 140px; }
  .history-controls { padding: 14px; }
  .cost-overview-grid { grid-template-columns: minmax(0, 1fr); }
  .cost-overview-grid > div { display: flex; align-items: flex-start; gap: 4px; }
  .cost-overview-grid > div + div { padding: 14px 0 0; border-left: 0; }
  .data-table { min-width: 620px; }
  .competitor-table { min-width: 720px; }
  .table-note span:last-child { display: inline; }
  .main-footer > span { display: inline; }
  .notice { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px 10px; align-items: start; }
  .notice > div { min-width: 0; }
  .notice strong { overflow-wrap: anywhere; }
  .notice .button { grid-column: 2; justify-self: start; margin-left: 0; max-width: 100%; }
  .provider-badge { max-width: 150px; font-size: 11px; }
  .topbar { gap: 10px; }
  .panel-head > div { flex-basis: 180px; }

  body { font-size: 14px; }
  .sidebar { width: 250px; padding: 25px 16px 0; }
  .sidebar-overlay { background: rgb(25 42 70 / 40%); }
  .main-shell { width: 100%; margin-left: 0; }
  #main { padding: 20px 16px 0; }
  .topbar { padding: 11px 17px; min-height: 60px; }
  .breadcrumb { gap: 8px; font-size: 12px; }
  .topbar-right { gap: 10px; }
  .demo-banner { padding: 10px 17px; font-size: 12px; flex-wrap: wrap; }
  .demo-banner-description { margin-left: 4px; }
  .page-heading { margin-bottom: 21px; }
  .page-heading h1 { font-size: 27px; margin-bottom: 8px; }
  .page-heading p { max-width: none; font-size: 13px; }
  .page-heading > .button { font-size: 12px; min-height: 39px; margin-top: 0; gap: 7px; padding: 9px 12px; }
  .filter-bar { margin-bottom: 20px; gap: 12px; padding-bottom: 0; }
  .filter-group { gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-group .select-wrap { min-width: 0; padding: 0 9px; }
  .select-wrap select { width: 100%; min-width: 0; max-width: 100%; font-size: 12px; }
  .filter-actions { width: 100%; justify-content: flex-end; gap: 7px; }
  .updated-label { display: block; margin-right: auto; }
  .filter-actions .refresh-label { display: inline; }
  .metrics-grid, .monitor-summary { gap: 12px; margin-bottom: 20px; }
  .metric-card { padding: 16px; min-height: 150px; }
  .metric-top { font-size: 12px; }
  .metric-number { font-size: 29px; }
  .metric-bottom { font-size: 11px; padding-right: 0; max-width: calc(100% - 4px); }
  .metric-spark { position: static; display: block; width: 68px; height: 25px; margin: 8px 0 0 auto; }
  .monitor-stat { padding: 16px; }
  .monitor-stat > strong { font-size: 28px; }
  .panel-head { padding: 19px 19px 16px; flex-wrap: wrap; }
  .panel h2 { font-size: 16px; }
  .panel-body { padding: 18px 19px 21px; }
  .full-panel { margin-top: 20px; }
  .table-wrap { padding-top: 0; }
  .table-wrap::before { content: "\2194\00a0 Tabelle seitlich scrollen"; display: block; position: sticky; left: 0; width: fit-content; max-width: 100%; padding: 10px 16px; color: var(--muted); font-size: 12px; line-height: 1.5; font-weight: 400; }
  .data-table th, .data-table td { padding: 13px 15px; }
  .data-table th:first-child, .data-table td:first-child { padding-left: 19px; }
  .table-note { padding: 13px 19px; flex-wrap: wrap; }
  .pagination { padding: 14px 17px; gap: 12px; }
  .pagination label, .pagination-controls { font-size: 12px; }
  .pagination-controls { flex-wrap: wrap; justify-content: flex-start; }
  .pagination .button { min-height: 36px; }
  .history-controls > label, .history-controls form label { font-size: 12px; }
  .history-controls select, .history-controls input { font-size: 13px; }
  .history-controls > button { font-size: 12px; }
  .workspace-context { grid-template-columns: minmax(0, 1fr) auto; padding: 14px; gap: 10px 12px; }
  .workspace-context > div, .workspace-context > label { min-width: 0; }
  .workspace-context #campaign-filter { min-width: 0; max-width: none; width: 100%; }
  .workspace-context > .button { margin-left: 0; }
  .campaign-card { padding: 20px; }
  .campaign-card-stats { gap: 14px; }
  .campaign-card-stats strong { font-size: 23px; }
  .campaign-card-actions .button { flex: 1; }
  .monitoring-card { padding: 0; }
  .monitoring-card .panel-head { padding: 19px 19px 16px; }
  .monitoring-card .panel-body { padding: 16px 19px 20px; }
  .monitor-events > .monitor-event { padding: 15px 19px; }
  .monitor-events > li, .monitor-events > article, .monitor-events > .monitor-event { gap: 11px; flex-wrap: wrap; }
  .monitor-events > li > div, .monitor-events > article > div { flex-basis: 190px; }
  .plan-metrics, .analysis-basis { padding: 18px; gap: 17px; }
  .analysis-basis p { font-size: 12px; }
  .plan-metrics strong, .analysis-basis strong { font-size: 24px; }
  .queue-preview { padding: 17px; }
  .queue-preview .button { font-size: 12px; }
  .queue-preview strong { font-size: 14px; }
  .queue-preview p { font-size: 13px; }
  .chart-legend { margin-left: 19px; margin-right: 19px; flex-wrap: wrap; }
  .chart-caption { padding: 13px 19px; }
  .comparison { padding: 19px; }
  .comparison-row { grid-template-columns: minmax(100px, 1fr) minmax(70px, 1fr) 35px; gap: 10px; font-size: 12px; }
  .comparison-name { white-space: normal; overflow-wrap: anywhere; line-height: 1.5; }
  .ranking-list { padding-left: 19px; padding-right: 19px; }
  .ranking-stat small { font-size: 11px; }
  .entity-summary { gap: 20px; flex-wrap: wrap; }
  .entity-summary strong { font-size: 23px; }
  .cost-overview, .prompt-cost-preview, .run-cost { padding: 17px; }
  .cost-overview-heading > span { font-size: 12px; }
  .cost-overview-grid { gap: 13px; }
  .cost-overview-grid strong { max-width: 100%; font-size: 20px; text-align: left; }
  .cost-overview > p { font-size: 12px; }
  .cost-overview-grid > div + div { border-color: #e4e4e4; }
  .cost-summary { padding: 16px 17px; }
  .cost-summary strong { font-size: 18px; }
  .cost-breakdown { grid-template-columns: minmax(0, 1fr); }
  .estimate-figures { gap: 14px; }
  .estimate-figures strong { font-size: 22px; }
  .estimate-figures span { font-size: 12px; }
  .run-cost .cost-section-heading > strong { font-size: 15px; max-width: 100%; text-align: left; }
  .run-cost .cost-section-heading { align-items: flex-start; flex-direction: column; }
  .modal, .prompt-modal, .detail-modal { width: calc(100% - 22px); max-height: calc(100dvh - 24px); border-radius: 12px; }
  .modal-heading { padding: 20px 19px 17px; }
  .modal-heading h2 { font-size: 21px; }
  .modal-body { padding: 21px 19px; }
  .modal-footer { padding: 15px 19px; gap: 9px; }
  .modal-footer .button { font-size: 13px; }
  .mode-selector { padding: 18px 19px 0; gap: 10px; }
  .mode-option { padding: 12px; gap: 9px; }
  .mode-option strong { font-size: 13px; }
  .mode-option small { font-size: 12px; }
  .mode-option .radio-dot { width: 13px; height: 13px; }
  .form-grid { gap: 16px; }
  .consent-box { padding: 15px; }
  .consent-box > p, .confirm-modal .consent-box > p { max-height: 210px; }
  .model-choice-fieldset { padding: 14px; }
  .model-choice-grid { grid-template-columns: minmax(0, 1fr); }
  .model-choice { padding: 12px; }
  .model-config .form-grid { grid-template-columns: minmax(0, 1fr); }
  .merchant-option, .search-options { padding: 15px; }
  .schedule-explanation { padding: 15px; }
  .weekdays { gap: 5px; }
  .weekdays span { font-size: 12px; padding: 9px 4px; }
  .competitor-fields { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .competitor-fields .icon-button, .competitor-fields > .button { margin-top: 0; justify-self: start; }
  .competitor-editor { padding: 14px; }
  .settings-account { grid-template-columns: 90px minmax(0, 1fr); }
  .waitlist-settings .settings-account { grid-template-columns: 90px minmax(0, 1fr); }
  .settings-info, .settings-info h3 { font-size: 13px; }
  .explanation > summary, .cost-disclosure > summary { padding: 13px 15px; }
  .explanation > :not(summary), .cost-disclosure > :not(summary) { margin-left: 15px; margin-right: 15px; }
  .method-example { padding: 14px; }
  .main-footer { margin-top: 24px; padding-top: 22px; gap: 11px; }
  .main-footer > p { flex-basis: 100%; }
  .auth-story { padding: 24px; }
  .auth-story .brand { color: #3a3a3a; }
  .auth-panel { padding: 35px 24px; }
}
@media (max-width: 430px) {
  .workspace-context { grid-template-columns: minmax(0, 1fr); }
  .workspace-context > .button { grid-column: 1; grid-row: auto; justify-self: start; margin-left: 0; }
  .workspace-context > p { grid-column: 1; grid-row: auto; }
  .prompt-card-header { flex-wrap: wrap; }
  .prompt-card-schedule { flex-wrap: wrap; }
  .prompt-card-schedule > .text-button { margin-left: 28px; }
  .monitor-event > span:first-child { flex: 1 1 100%; }
  .monitor-event > .status { margin-top: 0; }
  .monitor-event > svg { margin-left: auto; }
  .prompt-card-header > div { flex-basis: 100%; }
  .prompt-card-metrics { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .prompt-card-metrics > * + * { border-top: 1px solid var(--line); padding-top: 13px; }
  .cost-overview.cost-summary .cost-overview-heading { align-items: flex-start; }

  .page-heading { flex-wrap: wrap; gap: 12px; }
  .page-heading > .button { margin-top: 0; }
  .mode-selector { grid-template-columns: minmax(0, 1fr); }
  .mode-option { padding: 13px; }
  .mode-option small { margin-top: 2px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .schedule-window-grid { gap: 9px; }
  .schedule-window-choice { padding: 12px 9px; gap: 8px; }
  .schedule-window-choice strong { font-size: 13px; }
  .schedule-window-choice small { font-size: 12px; }
  .campaign-card-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .campaign-card-stats > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .campaign-card-stats strong { font-size: 22px; }
  .campaign-card-stats span { font-size: 12px; }
  .monitor-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .monitor-stat { padding: 15px; }
  .monitor-stat > strong { font-size: 26px; }
  .panel-head .segmented { flex-wrap: wrap; }
  .chart-legend { gap: 11px; }
  .modal-footer { flex-wrap: wrap; }
  .modal-footer .button { flex: 1; }
}

/* On short laptop displays, keep the entire navigation reachable without oversized gaps. */
@media (min-width: 721px) and (max-height: 780px) {
  .sidebar { padding-top: 18px; }
  .sidebar > .brand { margin-bottom: 15px; }
  .sidebar .workspace { padding: 9px; margin-bottom: 15px; }
  .sidebar nav { gap: 4px; }
  .sidebar .nav-item, .sidebar .nav-item[data-page="queue"] { min-height: 39px; padding-top: 8px; padding-bottom: 8px; }
  .sidebar-bottom { padding-top: 14px; }
  .user-card { padding: 12px 0; margin-top: 9px; }
}

@media (min-width: 721px) {
  .sidebar { width: 212px; padding-left: 12px; padding-right: 12px; }
  .main-shell { margin-left: 212px; width: calc(100% - 212px); }
}
@media (max-width: 1180px) {
  .app-shell #main { padding: 32px 28px 0; }
  .dashboard-focus { grid-template-columns: minmax(0,1fr); }
  .monitor-summary { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .monitor-stat { padding: 0 16px; }
  .monitor-stat > strong { font-size: 28px; }
}
@media (max-width: 950px) {
  .filter-dock .workspace-context { flex-basis: 225px; }
  .filter-dock .filter-bar { flex-basis: 100%; }
  .prompt-card-body { grid-template-columns: minmax(0,1fr); row-gap: 16px; }
}
@media (max-width: 720px) {
  .app-shell .topbar { display: flex; height: 54px; min-height: 54px; padding: 0 16px; border-bottom: 1px solid var(--line); background: #fff; }
  .app-shell #main { padding: 26px 20px 0; }
  .sidebar { width: 250px; }
  .main-shell { margin-left: 0; width: 100%; }
  .page-heading h1 { font-size: 27px; margin: 0; }
  .page-heading p { font-size: 13px; margin-top: 7px; }
  .filter-dock { gap: 10px; padding-bottom: 18px; margin-bottom: 24px; }
  .filter-dock .filter-group { flex-basis: 100%; }
  .filter-dock .filter-bar { flex-wrap: wrap; }
  .filter-dock .workspace-context { max-width: 100%; }
  .filter-dock .select-wrap { flex: 1 1 125px; max-width: 100%; }
  .filter-dock select, .filter-dock .prompt-select select, .filter-dock .model-filter-wrap select { max-width: 100%; width: 100%; min-width: 0; }
  .filter-dock .filter-actions { flex-basis: 100%; justify-content: flex-end; }
  .filter-dock .filter-actions .refresh-label { display: inline; }
  .monitor-summary { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 0; padding-bottom: 24px; margin: 0; }
  .monitor-stat { padding: 0 20px; }
  .monitor-stat:nth-child(odd) { padding-left: 0; }
  .monitor-stat:nth-child(even) { border-right: 0; }
  .prompt-grid { gap: 0; }
  .prompt-card-header { padding: 20px 18px 0; }
  .prompt-card-header > div { flex-basis: auto; }
  .prompt-card-body { padding: 12px 18px 0; }
  .prompt-card-footer { padding: 12px 18px 20px; }
  .prompt-card-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; padding: 0; margin: 0; }
  .prompt-card-metrics > * + * { border: 0; padding-top: 0; }
  .prompt-card-metrics strong { font-size: 15px; }
  .prompt-card-schedule { padding: 0; }
  .prompt-card-details > summary { padding: 11px 0; }
  .prompt-card-details > :not(summary) { margin-left: 0; margin-right: 0; }
  .prompt-card-actions .button { flex: 0 1 auto; }
  .cost-overview-compact .cost-overview-grid { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .analysis-view-nav { gap: 14px; }
  .analysis-view-nav button { flex: 1 1 85px; padding: 7px 0 12px; font-size: 12px; }
  .main-footer { gap: 12px; }
  .main-footer > span { flex-basis: 100%; }
}
@media (max-width: 380px) {
  .app-shell #main { padding-left: 15px; padding-right: 15px; }
  .prompt-card-metrics { grid-template-columns: minmax(0,1fr); }
  .monitor-stat { padding-right: 10px; padding-left: 14px; }
}

/* Work area, primary destinations and contextual views form separate navigation levels. */
.sidebar .workspace-context.sidebar-project {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 6px;
  min-width: 0;
  width: 100%;
  padding: 0;
  margin: 0 0 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.sidebar .sidebar-project > * { min-width: 0; max-width: 100%; grid-column: auto; grid-row: auto; }
.sidebar .sidebar-project > .nav-label { display: block; margin: 0 5px 1px; font-size: 11px; font-weight: 500; }
.sidebar .sidebar-project .project-select { display: flex; align-items: center; gap: 7px; padding: 0 10px; min-height: 40px; width: 100%; border: 1px solid #dfdfdc; border-radius: 8px; background: #fff; }
.sidebar .sidebar-project .project-select > [data-icon], .sidebar .sidebar-project .project-select > svg { flex: 0 0 16px; width: 16px; height: 16px; }
.sidebar .sidebar-project #campaign-filter { flex: 1 1 0; min-width: 0; max-width: 100%; width: 100%; margin: 0; padding: 10px 18px 10px 0; border: 0; border-radius: 0; background-color: transparent; color: var(--ink); font-size: 12px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar .sidebar-project .project-scope-note { margin: 1px 5px 0; font-size: 11px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.sidebar .sidebar-project .project-switch-actions { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding-left: 5px; }
.sidebar .sidebar-project .project-switch-actions .text-button { min-width: 0; min-height: 30px; padding: 2px 0; font-size: 11px; line-height: 1.45; text-align: left; white-space: normal; overflow-wrap: anywhere; }
.sidebar .sidebar-project .project-switch-actions .icon-button { flex: 0 0 30px; width: 30px; height: 30px; min-height: 30px; padding: 6px; border-radius: 6px; }
.sidebar .sidebar-project .project-switch-actions .icon-button svg { width: 15px; height: 15px; }
.sidebar .sidebar-create { margin-bottom: 18px; }
.sidebar > .brand { margin-bottom: 22px; }

.nav-context[hidden], .scope-selection[hidden] { display: none; }

.app-shell .topbar { display: flex; align-items: center; min-height: 48px; height: auto; padding: 12px 40px; gap: 14px; border-bottom: 0; background: #fff; }
.app-shell .topbar .breadcrumb { display: flex; align-items: center; flex: 1 1 auto; flex-wrap: nowrap; min-width: 0; gap: 9px; }
#breadcrumb-scope { flex: 0 1 auto; min-width: 0; max-width: min(38vw, 340px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-shell .topbar .breadcrumb > strong { flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-shell .topbar .breadcrumb-divider, .app-shell .topbar .mobile-menu, .app-shell .topbar > .help-button { flex-shrink: 0; }
.app-shell #main { padding-top: 26px; }
.nav-context { display: flex; align-items: stretch; flex-wrap: wrap; gap: 24px; min-width: 0; max-width: 100%; margin: 0 0 22px; padding: 0; border-bottom: 1px solid var(--line); }
.nav-context > button, .nav-context > a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: 0 1 auto; min-width: 0; min-height: 44px; padding: 9px 0 12px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--muted); font-size: 13px; font-weight: 500; line-height: 1.5; text-align: center; text-decoration: none; white-space: normal; overflow-wrap: anywhere; cursor: pointer; }
.nav-context > button:hover, .nav-context > a:hover { color: var(--ink-strong); }
.nav-context > .active, .nav-context > [aria-current="page"], .nav-context > [aria-selected="true"], .nav-context > [aria-pressed="true"] { border-bottom-color: var(--accent); color: var(--ink-strong); font-weight: 600; }
.nav-context .nav-count { margin: 0; padding: 0; }
.scope-selection { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; min-width: 0; max-width: 100%; margin: 0 0 16px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-secondary); font-size: 12px; }
.scope-selection > span, .scope-selection > strong, .scope-selection > div { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.scope-selection > button { flex: 0 0 auto; margin-left: auto; min-height: 30px; font-size: 12px; }
.filter-dock .filter-bar { flex-basis: 100%; width: 100%; }

@media (min-width: 721px) and (max-height: 780px) {
  .sidebar > .brand { margin-bottom: 14px; }
  .sidebar .workspace-context.sidebar-project { gap: 4px; margin-bottom: 13px; }
  .sidebar .sidebar-create { margin-bottom: 13px; }
}
@media (max-width: 1180px) {
  .app-shell .topbar { padding-left: 28px; padding-right: 28px; }
}
@media (max-width: 720px) {
  .app-shell .topbar { min-height: 54px; padding: 8px 16px; border-bottom: 1px solid var(--line); }
  .app-shell .topbar .breadcrumb { gap: 7px; }
  #breadcrumb-scope { flex-shrink: 2; max-width: 32vw; }
  .sidebar .sidebar-project .project-switch-actions .text-button { min-height: 34px; }
  .sidebar .sidebar-project .project-switch-actions .icon-button { width: 34px; height: 34px; flex-basis: 34px; }
  .nav-context { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 0 12px; margin-bottom: 20px; }
  .nav-context > button, .nav-context > a { min-height: 48px; padding: 8px 0 10px; font-size: 12px; }
  .scope-selection { gap: 5px 9px; padding: 8px 10px; }
}

/* Compact lists are an optional view; the standard cards and tables retain their layout. */
.section-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 22px; border-bottom: 1px solid var(--line); }
.section-toolbar[hidden], .section-view-mode[hidden] { display: none; }
.section-toolbar .nav-context { flex: 1; margin: 0; border-bottom: 0; }
.section-view-mode { display: flex; align-items: center; gap: 9px; flex-shrink: 0; padding-bottom: 8px; }
.view-mode-label { color: var(--muted); font-size: 11px; }
.panel-view-controls { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; min-width: 0; }
.view-mode-toggle { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 3px; max-width: 100%; padding: 3px; border: 1px solid #e1e3e1; border-radius: 9px; background: #f6f7f5; }
.view-mode-toggle > button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 34px; padding: 6px 11px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #666c67; font-size: 12px; line-height: 1.4; cursor: pointer; }
.view-mode-toggle > button > svg, .view-mode-toggle > button > .ui-icon { flex: 0 0 15px; width: 15px; height: 15px; }
.view-mode-toggle > button:hover { color: #252b26; background: #ecefeb; }
.view-mode-toggle > button[aria-pressed="true"] { border-color: #d9dfd6; background: #fff; color: #243226; font-weight: 600; box-shadow: 0 1px 3px #26362909; }
.view-mode-toggle > button:focus-visible { outline: 2px solid #5b765e; outline-offset: 2px; }
.prompt-compact-list { min-width: 0; max-width: 100%; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.prompt-compact-row { display: grid; grid-template-columns: 24px minmax(190px, 1fr) minmax(145px, .52fr) minmax(190px, .65fr) auto; align-items: center; column-gap: 15px; row-gap: 10px; min-width: 0; padding: 15px 18px 0; border-bottom: 1px solid var(--line); }
.prompt-compact-row:last-child { border-bottom: 0; }
.prompt-compact-row:hover { background: #fcfcfb; }
.prompt-compact-row:has(.prompt-compact-select input:checked) { background: #f5f8f4; }
.prompt-compact-row > * { min-width: 0; }
.prompt-compact-select { display: flex; align-items: center; justify-content: center; align-self: start; width: 24px; min-height: 28px; margin: 0; cursor: pointer; }
.prompt-compact-select input[type="checkbox"] { flex: 0 0 16px; width: 16px; height: 16px; margin: 0; accent-color: #344b39; }
.prompt-compact-select input:focus-visible { outline: 2px solid #5b765e; outline-offset: 3px; }
.prompt-compact-main .prompt-card-project { margin-bottom: 3px; font-size: 10px; font-weight: 500; }
.prompt-compact-main h2, .prompt-compact-main .prompt-card-title { margin: 0; font-size: 13px; line-height: 1.5; font-weight: 600; color: var(--ink-strong); letter-spacing: 0; overflow-wrap: anywhere; }
.prompt-compact-main h2 > .text-button { display: inline; margin: 0; padding: 0; color: inherit; font: inherit; text-align: left; }
.prompt-compact-main h2 > .text-button:hover { color: #3b6748; text-decoration: underline; text-underline-offset: 3px; }
.prompt-compact-main .model-tag-list { gap: 4px 8px; max-width: none; margin-top: 5px; }
.prompt-compact-main .model-tag, .prompt-compact-main .provider-model { font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.prompt-compact-main .provider-icon { flex: 0 0 16px; width: 16px; height: 16px; }
.prompt-compact-schedule { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 4px 6px; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.prompt-compact-schedule > div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; max-width: 100%; }
.prompt-compact-schedule > .status { width: fit-content; max-width: 100%; margin: 0; }
.prompt-compact-schedule .prompt-scheduler { display: inline-flex; align-items: center; gap: 5px; width: fit-content; max-width: 100%; padding: 2px 5px; border: 1px solid #e0e4e8; border-radius: 5px; background: #f4f5f6; color: #4c5868; font-size: 10px; line-height: 1.5; }
.prompt-compact-schedule .prompt-scheduler.external { background: #f0f5f2; border-color: #dbe6df; color: #3c5c49; }
.prompt-compact-schedule > small, .prompt-compact-schedule > p, .prompt-compact-schedule > strong, .prompt-compact-schedule > time { flex-basis: 100%; margin: 0; color: var(--muted); font-size: 11px; font-weight: 400; line-height: 1.5; }
.prompt-compact-schedule > span:not(.status):not(.prompt-scheduler) { flex-basis: 100%; color: var(--muted); font-size: 11px; line-height: 1.5; }
.prompt-compact-cost { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; min-width: 0; font-size: 12px; font-variant-numeric: tabular-nums; }
.prompt-compact-cost > div { min-width: 0; }
.prompt-compact-cost > div > span:first-child, .prompt-compact-cost > span:first-child { display: block; margin-bottom: 3px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.prompt-compact-cost strong { color: var(--ink-strong); font-size: 12px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.prompt-compact-cost .money-line.money-secondary { font-size: 10px; }
.prompt-compact-cost .money-line.money-status { padding: 2px 4px; font-size: 10px; }
.prompt-compact-cost small { display: block; margin-top: 3px; font-size: 10px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.prompt-compact-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.prompt-compact-actions .button, .prompt-compact-actions .icon-button { min-height: 32px; padding: 6px 9px; font-size: 11px; }
.prompt-compact-actions > .text-button { min-height: 32px; padding: 5px 2px; font-size: 11px; }
.prompt-compact-actions .icon-button { flex: 0 0 32px; width: 32px; border: 1px solid var(--line); border-radius: 6px; }
.prompt-compact-actions .icon-button svg { width: 15px; height: 15px; }
.prompt-compact-actions .prompt-actions-menu { margin-left: 0; }
.prompt-compact-actions .prompt-actions-menu > summary { min-height: 32px; padding: 5px 8px; font-size: 11px; }
.prompt-compact-details { grid-column: 2 / -1; }
.prompt-compact-details > .prompt-card-details { margin: 0; }
.prompt-compact-details .prompt-card-details > summary { min-height: 32px; padding: 7px 0; border-radius: 0; font-size: 11px; }
.prompt-compact-details .prompt-card-details > summary::after { font-size: 15px; }
.prompt-compact-details .prompt-card-details-body { padding-top: 12px; }
.prompt-compact-details .prompt-card-details > :not(summary) { margin-left: 0; margin-right: 0; }
.table-wrap.view-compact { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.table-wrap.view-compact .data-table th { min-width: 90px; padding: 10px 12px; font-size: 11px; }
.table-wrap.view-compact .data-table td { padding: 11px 12px; font-size: 12px; line-height: 1.5; }
.table-wrap.view-compact .data-table th:first-child, .table-wrap.view-compact .data-table td:first-child { padding-left: 18px; }
.table-wrap.view-compact .data-table .table-title { min-width: 148px; font-size: 12px; }
.table-wrap.view-compact .data-table .manual-check-cell { min-width: 40px; width: 40px; }
.table-wrap.view-compact .data-table .table-subtitle { margin-top: 4px; font-size: 10px; }
.table-wrap.view-compact .data-table .model-tag { padding: 3px 5px; font-size: 10px; }
.table-wrap.view-compact .data-table .model-tag .provider-icon { flex: 0 0 16px; width: 16px; height: 16px; }
.table-wrap.view-compact .data-table .status { white-space: nowrap; font-size: 10px; }
.table-wrap.view-compact .data-table td:last-child .text-button { white-space: nowrap; font-size: 11px; }
.runs-table.view-compact .data-table th:nth-child(2), .runs-table.view-compact .data-table td:nth-child(2) { min-width: 145px; }
.runs-table.view-compact .data-table th:nth-child(3), .runs-table.view-compact .data-table td:nth-child(3), .queue-table.view-compact .data-table th:nth-child(5), .queue-table.view-compact .data-table td:nth-child(5) { min-width: 155px; }
.table-wrap.view-compact .queue-planning-note { display: none; }
.table-wrap.view-compact .compact-run-status { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.table-wrap.view-compact .compact-run-status .status, .table-wrap.view-compact .compact-run-status .run-origin { margin: 0; }
.table-wrap.view-compact .compact-analysis-pending { display: block; margin-top: 4px; font-size: 10px; line-height: 1.5; }
.table-wrap.view-compact .compact-status-details { margin-top: 5px; font-size: 10px; line-height: 1.6; }
.table-wrap.view-compact .compact-status-details > summary { width: fit-content; cursor: pointer; color: var(--muted); }
.table-wrap.view-compact .compact-status-details[open] > summary { margin-bottom: 5px; }
.table-wrap.view-compact .compact-status-details > small { display: block; margin-top: 4px; }

@media (max-width: 1200px) {
  .prompt-compact-row { grid-template-columns: 24px minmax(0, 1fr) minmax(180px, .65fr); column-gap: 12px; }
  .prompt-compact-select { grid-column: 1; grid-row: 1; }
  .prompt-compact-main { grid-column: 2; grid-row: 1; }
  .prompt-compact-cost { grid-column: 3; grid-row: 1; }
  .prompt-compact-schedule { grid-column: 2; grid-row: 2; }
  .prompt-compact-actions { grid-column: 3; grid-row: 2; }
  .prompt-compact-details { grid-column: 2 / -1; grid-row: 3; }
}
@media (max-width: 640px) {
  .view-mode-toggle > button { min-height: 38px; padding: 7px 10px; }
  .prompt-compact-row { grid-template-columns: 20px minmax(0, 1fr); column-gap: 10px; row-gap: 6px; padding: 14px 12px 0; }
  .prompt-compact-select { width: 20px; }
  .prompt-compact-main { grid-column: 2; grid-row: 1; }
  .prompt-compact-schedule { grid-column: 2; grid-row: 2; }
  .prompt-compact-cost { grid-column: 2; grid-row: 3; max-width: 100%; gap: 12px; }
  .prompt-compact-actions { grid-column: 2; grid-row: 4; justify-content: flex-start; }
  .prompt-compact-actions .button, .prompt-compact-actions .icon-button, .prompt-compact-actions .prompt-actions-menu > summary, .prompt-compact-actions > .text-button { min-height: 36px; }
  .prompt-compact-actions .prompt-actions-menu { margin-left: auto; }
  .prompt-compact-details { grid-column: 2; grid-row: 5; }
  .table-wrap.view-compact .data-table th, .table-wrap.view-compact .data-table td { padding-left: 10px; padding-right: 10px; }
  .table-wrap.view-compact .data-table th:first-child, .table-wrap.view-compact .data-table td:first-child { padding-left: 14px; }
}

@media (max-width: 760px) {
  .section-toolbar { flex-wrap: wrap; gap: 0; margin-bottom: 20px; }
  .section-toolbar .nav-context { flex-basis: 100%; }
  .section-view-mode { justify-content: flex-end; width: 100%; padding: 9px 0; border-top: 1px solid var(--line); }
}
