/*
 * Monitoring application theme, adapted to OSINT Enhancer's existing controls.
 * Source: monitoring/services/frontend/src/modern.css (active design layer).
 * This file follows styles.css, retaining its behavior and responsive primitives.
 */
:root {
  --canvas: #ffffff;
  --surface: #ffffff;
  --ink: #28232f;
  --muted: #746e7e;
  --border: #e7e4ec;
  --accent: #6b4ba3;
  --accent-hover: #563887;
  --accent-soft: #f2eef9;
  --font-ui: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --cream: var(--canvas);
  --paper: var(--surface);
  --plum: var(--accent);
  --plum-deep: var(--accent-hover);
  --purple: var(--accent);
  --line: var(--border);
  --lavender: #e8dff6;
  --lavender-light: var(--accent-soft);
  --green: #3a7e5b;
  --green-light: #f1faf5;
  --amber: #987323;
  --amber-light: #fdf8ed;
  --red: #af6c7c;
  --red-light: #fdf3f6;
  --radius: 7px;
  --sidebar: 218px;
  --shadow: 0 12px 36px #28232f12;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
html { min-width: 320px; }
body { background: var(--canvas); color: var(--ink); font: 14px/1.5 var(--font-ui); }
button, input, select, textarea { font: inherit; }
.form-row textarea { width: 100%; box-sizing: border-box; min-height: 100px; resize: vertical; padding: 10px; border: 1px solid #dfd9e6; border-radius: 5px; background: #fff; color: #4e435c; font-size: 12px; line-height: 1.6; }
button, a { transition: color 120ms, border-color 120ms, background-color 120ms; }
button:disabled { opacity: .4; cursor: not-allowed; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid #8c71bb; outline-offset: 3px; }
::selection { background: #e8dff6; color: #402565; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-ui) !important; color: var(--ink); }
h1 { font-size: 27px; line-height: 1.25; letter-spacing: -.8px; font-weight: 650; }
h2 { font-size: 17px; line-height: 1.35; letter-spacing: -.3px; font-weight: 600; }
h3 { font-size: 15px; line-height: 1.4; font-weight: 600; }
p { color: var(--muted); }
.eyebrow { color: #8c8297; font-size: 10px; letter-spacing: 1px; font-weight: 600; }
.icon { stroke-width: 1.7; }
.text-link, .dark-link { color: var(--accent); font-size: 12px; }
.subtle-label { font-size: 12px; color: var(--muted); }
.button, .button.compact { min-height: 35px; padding: 7px 12px; border-radius: 5px; font-size: 12px; font-weight: 500; gap: 7px; box-shadow: none; }
.button:hover:not(:disabled) { transform: none; }
.button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.button.primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
.button.secondary { background: #fff; border-color: #ddd6e6; color: #6b5b7b; }
.button.secondary:hover:not(:disabled) { background: #f8f5fc; border-color: #b8a8cc; color: #604181; }
.button.ghost { color: #74697e; }
.button.ghost:hover:not(:disabled) { background: var(--accent-soft); color: var(--accent); }
.button.compact { min-height: 29px; padding: 4px 9px; font-size: 11px; }
.icon-button { width: 31px; height: 31px; border: 1px solid #e4dfea; border-radius: 5px; background: #fff; color: #8f7e9f; }
.icon-button:hover { color: var(--accent); background: #f5f1fa; border-color: #c9bbdc; }

/* Persistent full-width application header and light navigation rail. */
.app-shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); grid-template-rows: 62px minmax(0, 1fr); min-height: 100dvh; align-items: start; }
.workspace-main { display: contents; margin: 0; width: auto; min-width: 0; }
.topbar { grid-column: 1 / -1; grid-row: 1; position: sticky; top: 0; z-index: 60; height: 62px; padding: 0 22px 0 0; display: flex; justify-content: initial; gap: 0; border-bottom: 1px solid var(--border); background: #fff; }
.product-brand { height: 62px; width: var(--sidebar); flex: 0 0 var(--sidebar); display: flex; align-items: center; gap: 10px; padding: 0 20px; border-right: 1px solid var(--border); color: #292232; text-decoration: none; }
.product-brand .brand-copy { display: grid; gap: 1px; min-width: 0; font-size: 15px; font-weight: 700; line-height: 1.15; letter-spacing: -.4px; white-space: nowrap; }
.product-brand .brand-secondary { font-size: 9px; letter-spacing: .5px; color: #81758e; font-weight: 400; }
.brand-mark { width: 29px; height: 29px; flex: 0 0 29px; padding: 5px; gap: 3px; justify-content: center; border-radius: 6px; color: #fff; background: var(--accent); }
.brand-mark b { width: 5px; height: 17px; border-width: 1.5px; }
.brand-mark i { width: 3px; height: 3px; flex: 0 0 3px; }
.breadcrumbs { gap: 9px; padding: 0 24px; color: #81758e; font-size: 13px; min-width: 0; }
.breadcrumbs strong { color: #4c4456; font-size: 13px; font-weight: 500; }
.breadcrumbs > .icon { color: #a194af; }
.topbar-right { margin-left: auto; gap: 15px; padding-left: 12px; }
.runtime-status { font-size: 11px; color: #746e7e; }
.runtime-status i { width: 5px; height: 5px; background: #71a58a; }
.account-button { font-size: 12px; color: #534b5d; }
.avatar { width: 29px; height: 29px; color: #694d96; background: #eee7f7; font-size: 12px; }
.account-menu { right: 20px; top: 54px; border-radius: 6px; box-shadow: var(--shadow); }
.account-menu > span { font-size: 12px; color: var(--muted); }
.account-menu > button { font-size: 12px; }
.sidebar { grid-column: 1; grid-row: 2; position: sticky; inset: auto; top: 62px; width: auto; height: calc(100dvh - 62px); z-index: 50; display: flex; gap: 13px; padding: 27px 12px 18px; background: #faf9fc; color: #62586e; border-right: 1px solid var(--border); box-shadow: none; transform: none; visibility: visible; }
.sidebar > .brand { display: none; }
.workspace-label { font-size: 10px; font-weight: 600; letter-spacing: 1px; padding: 0 13px; color: #8c8297; }
.main-nav { padding: 0; gap: 4px; }
.nav-link, .sidebar-bottom .nav-link { min-height: 39px; width: 100%; border: 0; border-radius: 5px; padding: 9px 12px; gap: 10px; color: #72677d; background: transparent; font-size: 13px; font-weight: 450; }
.nav-link .icon, .sidebar-bottom .nav-link .icon { width: 17px; height: 17px; color: #8c8197; }
.nav-link:hover, button.nav-link:hover { color: #513d71; background: #f0edf5; }
.nav-link.active { background: #ece6f6; color: #654391; font-weight: 600; }
.nav-link.active .icon { color: #74519f; }
.nav-count, .nav-link.active .nav-count { background: #e6def2; color: #6d4e98; font-size: 10px; min-width: 20px; height: 19px; border-radius: 4px; }
.sidebar-note { margin: 20px 12px; padding-top: 16px; border-color: var(--border); }
.sidebar-note .small-spark, .sidebar-note h3, .sidebar-note p { display: none; }
.sidebar-note .text-link { margin: 0; font-size: 12px; color: #80718d; }
.sidebar-bottom { padding: 0; margin-top: auto; }
.sidebar-bottom .external-arrow { width: 13px; height: 13px; }
.workspace-private { margin: 15px 10px 0; padding: 18px 0 0; border-top: 1px solid var(--border); color: #918698; font-size: 11px; }
.connection-dot { background: #71a58a; box-shadow: none; }
#main, #main-content { grid-column: 2; grid-row: 2; min-width: 0; width: 100%; max-width: 1700px; margin: 0; padding: 30px 34px 35px; background: #fff; }
.page-heading { min-height: 57px; margin-bottom: 24px; gap: 18px; align-items: center; }
.page-heading h1, .detail-page-heading h1 { font-size: 27px; line-height: 1.25; letter-spacing: -.8px; font-weight: 650; }
.page-heading .eyebrow { font-size: 10px; letter-spacing: .9px; margin-bottom: 7px; }
.page-heading p { font-size: 13px; line-height: 1.6; margin-top: 6px; color: #7b7284; }
.page-heading > .button { margin-top: 0; }
.page-footer { border-top: 1px solid var(--border); padding: 20px 0 0; font-size: 10px; color: #8c8297; }
.page-footer > span:last-child { font-size: 9px; letter-spacing: .6px; }

/* Flat rollups, clean table grammar and compact controls. */
.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 24px; }
.stat-card { min-height: 98px; padding: 18px; border: 1px solid var(--border); border-radius: 7px; background: #fff; gap: 12px; box-shadow: none; }
.stat-label { font-size: 11px; color: #796d83; margin-bottom: 8px; }
.stat-value { font-size: 24px; font-weight: 600; color: #392f45; letter-spacing: -.6px; }
.stat-icon { width: 27px; height: 27px; color: #9a82b0; border-radius: 0; background: transparent; }
.stat-card:nth-child(2) .stat-icon, .stat-card:nth-child(4) .stat-icon { background: transparent; color: #9a82b0; }
.stat-icon .icon { width: 19px; height: 19px; }
.overview-middle { grid-template-columns: minmax(0, 1fr) 290px; gap: 20px; margin-bottom: 24px; }
.fleet-panel, .try-panel, .runs-panel, .provider-card, .source-import-panel, .entity-card, .run-files-panel { border: 1px solid var(--border); border-radius: 7px; background: #fff; box-shadow: none; }
.section-kicker { padding: 21px 22px 9px; font-size: 10px; letter-spacing: .7px; color: #81758e; }
.mini-tag { background: #faf8fc; border-color: #e8e2ef; color: #897997; font-size: 10px; border-radius: 4px; }
.fleet-panel > h2 { font-size: 17px; font-weight: 600; padding: 0 22px; letter-spacing: -.3px; }
.fleet-stages { padding: 23px 22px; gap: 10px; }
.stage-number, .fleet-stage .stage-number { height: 24px; width: 24px; border-color: #e5dfed; color: #8a729e; background: #faf8fc; font-size: 10px; }
.fleet-stage { gap: 8px; }
.fleet-stage h3 { font-size: 12px; font-weight: 600; margin-bottom: 5px; }
.fleet-stage p { font-size: 11px; line-height: 1.5; color: #81758e; max-width: 105px; }
.fleet-stage > .icon { color: #b1a3bb; margin: 6px 0 0 auto; }
.fleet-footer { border-color: var(--border); background: #faf9fc; padding: 12px 22px; font-size: 11px; color: #81758e; }
.fleet-footer > .icon, .fleet-footer button { color: #8a729e; }
.fleet-footer button { font-size: 11px; }
.try-panel { padding: 22px; min-height: 0; background: #faf9fc; }
.try-panel-art { display: none; }
.try-panel .eyebrow { font-size: 10px; letter-spacing: .7px; margin-bottom: 12px; }
.try-panel h2 { font-size: 17px; font-weight: 600; margin-bottom: 9px; letter-spacing: -.3px; }
.try-panel > p { max-width: none; font-size: 12px; line-height: 1.7; color: #7b7284; }
.try-panel .button { position: static; margin-top: 20px; font-size: 11px; min-height: 31px; border-color: #ddd6e6; background: #fff; box-shadow: none; }
.panel-heading { padding: 21px 22px; gap: 18px; }
.panel-heading h2 { font-size: 17px; font-weight: 600; color: #332b3e; letter-spacing: -.3px; }
.panel-heading p { font-size: 12px; line-height: 1.6; color: #82778d; margin-top: 5px; }
.panel-heading .text-link { font-size: 11px; }
.count-badge { font: 10px var(--font-ui); color: #8a70a0; background: #f0eaf7; border: 0; border-radius: 4px; min-width: 23px; height: 20px; }
.runs-table { font-size: 12px; }
.runs-table thead { background: #faf9fc; }
.runs-table th, .history-panel .runs-table th { padding: 12px 14px; font-size: 11px; font-weight: 500; text-transform: none; letter-spacing: .1px; background: #faf9fc; color: #746a7f; border-color: var(--border); }
.runs-table td { padding: 15px 14px; font-size: 12px; line-height: 1.5; color: #6f647a; border-color: #eeeaf3; font-variant-numeric: tabular-nums; }
.runs-table th:first-child, .runs-table td:first-child { padding-left: 22px; }
.runs-table th:last-child, .runs-table td:last-child { padding-right: 22px; }
.runs-table tbody tr:hover { background: #fcfaff; }
.run-type-icon { height: 29px; width: 26px; background: transparent; color: #9c82b1; border-radius: 4px; }
.run-name-button { font-size: 13px; font-weight: 500; color: #594360; }
.run-name-button:hover { color: var(--accent); }
.run-subtitle, .table-date small { font-size: 11px; color: #81758e; }
.artifact-count { font-size: 12px; color: #81758e; }
.status-badge { min-height: 23px; padding: 3px 7px; border: 1px solid #e8e2ef; border-radius: 4px; font-size: 11px; font-weight: 450; line-height: 1.3; background: #faf8fc; color: #897997; }
.status-badge::before { width: 5px; height: 5px; }
.status-complete, .status-completed, .status-accepted { border-color: #dceee3; color: #3a7e5b; background: #f1faf5; }
.status-running, .status-queued, .status-pending { border-color: #e3dbed; color: #8c70a6; background: #f7f3fb; }
.status-partial, .status-ambiguous, .status-no_evidence, .status-interrupted { border-color: #f0e3c7; color: #987323; background: #fdf8ed; }
.status-failed, .status-unverified, .status-disputed { border-color: #efdbe2; color: #af6c7c; background: #fdf3f6; }
.row-arrow { color: #9c86a7; }
.history-tools { gap: 18px; margin-bottom: 20px; align-items: center; }
.filter-tabs { gap: 24px; border: 0; border-radius: 0; background: transparent; }
.filter-tab, .filter-tab:first-child { padding: 10px 0 12px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: #887792; font-size: 12px; font-weight: 450; }
.filter-tab.active { color: #79529c; border-bottom-color: #9370b5; font-weight: 600; background: transparent; }
.search-field { min-height: 35px; border-color: #dfd9e6; border-radius: 5px; color: #a195ac; padding: 0 10px; }
.search-field > input { font-size: 12px; height: 33px; color: #4e435c; }
.search-field > input::placeholder { color: #9b91a7; }
.history-hint, .pagination { font-size: 11px; line-height: 1.7; color: #81758e; }
.pagination { padding: 16px 22px; }
.pagination .button { font-size: 11px; }
.empty-state { background: transparent; border-color: var(--border); padding: 35px 20px; }
.empty-illustration { height: 45px; margin-bottom: 15px; opacity: .8; }
.empty-illustration > span { height: 37px; width: 31px; background: #faf8fc; border-color: #e5dfed; color: #bea6ce; }
.empty-illustration > span:nth-child(2) { top: 5px; }
.empty-illustration > i { display: none; }
.empty-state h3 { font-size: 15px; letter-spacing: 0; font-weight: 600; color: #594360; }
.empty-state p { font-size: 12px; line-height: 1.7; color: #81758e; max-width: 420px; }
.empty-state .button { font-size: 12px; }
.empty-state .empty-inline-link { font-size: 11px; color: var(--accent); }

/* Provider connections and run results share the reference's restrained surfaces. */
.provider-explainer, .detail-notice, .method-note, .login-notice, .sheets-connection-notice { padding: 12px 14px; border-radius: 5px; box-shadow: none; font-size: 12px; }
.provider-explainer { border-color: #e9e0f0; background: #fcfaff; }
.provider-explainer > .icon { color: #9c82b1; }
.provider-explainer strong { font-size: 12px; font-weight: 600; color: #594360; }
.provider-explainer p { font-size: 12px; line-height: 1.7; color: #81758e; }
.provider-grid { gap: 16px; }
.provider-card { padding: 22px; min-height: 230px; }
.provider-card-top { margin-bottom: 18px; gap: 10px; }
.provider-monogram { width: 33px; height: 33px; font-size: 19px; border-radius: 5px; }
.provider-card h2 { font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.provider-card p { font-size: 12px; line-height: 1.7; color: #81758e; }
.provider-meta { font-size: 11px; color: #81758e; gap: 10px; }
.provider-meta a { color: var(--accent); }
.source-import-panel { padding: 22px; gap: 17px; }
.import-icon { width: 36px; height: 36px; border-radius: 5px; background: var(--accent-soft); color: #9c82b1; }
.source-import-panel h2 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.source-import-panel p { font-size: 12px; line-height: 1.7; color: #81758e; }
.back-link { font-size: 12px; color: var(--accent); margin-bottom: 22px; }
.detail-page-heading { gap: 20px; margin-bottom: 24px; }
.detail-meta { font-size: 12px; color: #81758e; gap: 16px; }
.detail-meta .icon { color: #9c86a7; }
.detail-heading-actions .button { font-size: 12px; min-height: 35px; }
.mode-tag { font-size: 11px; color: #897997; border-color: #e8e2ef; background: #faf8fc; border-radius: 4px; }
.progress-panel { border-color: #e3d9ed; background: #faf7fe; padding: 14px 17px; border-radius: 6px; }
.progress-top { font-size: 12px; color: #755296; }
.progress-top span { font-size: 11px; color: #7b7284; }
.progress-panel progress, .progress-panel progress::-webkit-progress-bar { background: #f1eaf7; }
.progress-panel progress::-webkit-progress-value, .progress-panel progress::-moz-progress-bar { background: #c7afdb; }
.detail-summary { border-color: var(--border); border-radius: 6px; margin-bottom: 24px; }
.detail-summary > div { padding: 18px 21px; border-color: #eeeaf3; }
.detail-summary .stat-label { font-size: 11px; }
.detail-summary .stat-value { font-size: 24px; }
.detail-notice { background: #fffaf0; border-color: #eee2c7; }
.detail-notice > .icon { color: #987323; }
.detail-notice p { font-size: 12px; line-height: 1.7; color: #8b6936; }
.entity-heading h2 { font-size: 17px; font-weight: 600; }
.entity-card { border-radius: 6px; margin-bottom: 14px; }
.entity-card > summary { padding: 17px 18px; }
.entity-card > summary:hover { background: #fcfaff; }
.entity-card-title h3 { font-size: 15px; font-weight: 500; letter-spacing: 0; color: #594360; }
.entity-card-title p { font-size: 11px; color: #7c7186; margin-top: 5px; }
.entity-card-title .run-type-icon { width: 27px; height: 29px; color: #aa8fbe; }
.entity-summary-right > .status-badge { font-size: 11px; }
.entity-summary-right > .icon { color: #9c86a7; }
.entity-content { padding: 20px 18px; border-color: #eeeaf3; }
.entity-metrics { gap: 25px; margin-bottom: 20px; }
.entity-metrics > span { font-size: 11px; color: #81758e; }
.entity-metrics strong { font-size: 13px; font-weight: 600; color: #594360; }
.artifact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.artifact-card { border-color: #e7e0ee; border-radius: 5px; padding: 12px; gap: 10px; }
.artifact-kind { width: 29px; height: 29px; border-radius: 4px; background: #faf8fc; color: #9c82b1; font-size: 9px; }
.artifact-info strong { font-size: 12px; font-weight: 500; color: #594360; }
.artifact-info small { font-size: 10px; color: #81758e; margin-top: 4px; }
.artifact-actions button, .artifact-actions a { width: 27px; height: 29px; color: #9c86a7; }
.artifact-actions button:hover, .artifact-actions a:hover { background: var(--accent-soft); color: var(--accent); }
.artifact-actions .icon { width: 15px; height: 15px; }
.graph-preview { border-color: #eee6f5; background: #fdfbff; border-radius: 5px; }
.graph-preview summary { font-size: 12px; color: var(--accent); padding: 12px 14px; }
.graph-preview[open] summary { border-color: #eee6f5; }
.run-files-panel { padding: 20px 22px; border-radius: 6px; }
.run-files-heading { font-size: 13px; color: #594360; }
.no-entities-note, .result-context { font-size: 12px; color: #81758e; line-height: 1.7; }
.detail-loading { color: #81758e; font-size: 13px; }

/* Forms, dialogs and readers use the same type sizes as the monitoring app. */
dialog, .workspace-export-dialog { border: 1px solid #e2ddea; border-radius: 8px; color: #36313e; box-shadow: 0 24px 100px #20152b30; background: #fff; }
dialog::backdrop, .workspace-export-dialog::backdrop { background: #1f142b6b; backdrop-filter: blur(3px); }
.dialog-heading, .preview-dialog .dialog-heading { padding: 22px 24px; border-color: #ece9f1; background: #fff; }
.dialog-heading h2, .preview-dialog .dialog-heading h2 { font-size: 18px; line-height: 1.35; font-weight: 600; letter-spacing: -.3px; }
.dialog-heading .eyebrow { font-size: 10px; letter-spacing: .8px; margin-bottom: 7px; }
.dialog-body { padding: 24px; }
.dialog-footer { padding: 17px 24px; border-color: #ece9f1; background: #fff; }
.dialog-footer .button { font-size: 12px; padding: 7px 12px; }
.dialog-footer .button .icon { width: 15px; height: 15px; }
.form-row label, .form-row > label { font-size: 12px; font-weight: 500; color: #74697e; }
.optional { font-size: 11px; font-weight: 400; color: #918698; }
.form-row input:not([type=checkbox]), .form-row select { min-height: 35px; height: 35px; padding: 7px 10px; border: 1px solid #dfd9e6; border-radius: 5px; background: #fff; color: #4e435c; font-size: 12px; }
.form-row input::placeholder { color: #9b91a7; }
.form-row :is(input, select, textarea):focus { outline: none; border-color: #a38abe; box-shadow: 0 0 0 3px #7750a411; }
.form-row input[type=file] { height: auto; min-height: 35px; font-size: 12px; padding: 5px; }
.form-row input[type=file]::file-selector-button { font: inherit; border: 1px solid #e4dfea; border-radius: 4px; color: #74697e; background: #faf9fc; padding: 5px 9px; margin-right: 10px; }
.form-grid { gap: 17px 18px; }
.input-mode-tabs, .export-kind-tabs { padding: 4px; gap: 4px; border-color: var(--border); border-radius: 6px; background: #faf9fc; }
.input-mode, .input-mode-tabs > .input-mode, .export-kind-tabs > .input-mode { min-height: 35px; padding: 8px 10px; border-radius: 4px; font-size: 12px; color: #81758e; }
.input-mode.active { background: #ece6f6; color: #654391; box-shadow: none; font-weight: 600; }
.identity-details, .advanced-settings { border-color: #e9e0f0; }
.identity-details summary, .advanced-settings summary { font-size: 12px; color: #74697e; }
.identity-details summary span { font-size: 11px; color: #918698; }
.identity-details .form-row label { font-size: 12px; }
.form-section { border-color: #eee9f4; }
.form-section-heading h3 { font-size: 13px; color: #594360; }
.checkbox-label { font-size: 12px; color: #74677e; }
.checkbox-label input, .provider-choice input { width: 14px; height: 14px; accent-color: var(--accent); }
.provider-choice { border-color: #e9e0f0; background: #fcfaff; color: #74697e; font-size: 11px; padding: 8px; border-radius: 4px; }
.provider-choice.disabled { color: #918698; background: #faf9fc; }
.provider-choice small { color: #918698; font-size: 10px; }
.input-hint { font-size: 11px; line-height: 1.7; color: #81758e; }
.upload-zone { border-color: #d8cde7; border-radius: 6px; background: #fcfaff; padding: 25px 18px; }
.upload-zone.drag-over { border-color: var(--accent); background: var(--accent-soft); }
.upload-zone strong { font-size: 13px; color: #594360; }
.upload-zone > span:not(.upload-glyph), .upload-zone > .file-limit { color: #81758e; font-size: 11px; }
.upload-glyph { color: #9c82b1; background: var(--accent-soft); }
.query-plan, .stage-explainer, .writeback-preview { padding: 18px; border: 1px solid #e6deee; border-radius: 5px; background: #fdfbff; }
.query-plan h3, .writeback-preview h3 { font-size: 14px; font-weight: 600; color: #594360; }
.plan-budget, .plan-entity, .plan-entity ul, .plan-warning, .stage-explainer, .export-explainer, .writeback-preview > p { font-size: 12px; line-height: 1.7; color: #81758e; }
.plan-entity { border-color: #eee5f5; }
.plan-entity strong { color: #594360; font-size: 12px; }
.plan-entity ul { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }
.form-error, .preview-error { font-size: 12px; color: #af4861; background: #fff6f7; border-color: #efd6dc; }
.method-body { padding: 24px; }
.method-step { border-color: #eee9f4; gap: 18px; }
.method-step > span { background: #faf8fc; border-color: #e8e2ef; color: #9c82b1; font-size: 11px; }
.method-step h3 { font-size: 15px; font-weight: 600; letter-spacing: -.2px; color: #594360; }
.method-step p, .method-note p { font-size: 12px; line-height: 1.7; color: #81758e; }
.method-note { background: #faf9fc; border-color: var(--border); }
.method-note > .icon { color: #9c82b1; }
.preview-content { padding: 22px; background: #faf9fc; }
.preview-content pre { color: #65596f; font: 12px/1.85 ui-monospace, SFMono-Regular, Consolas, monospace; }
.pdf-page figcaption { font-size: 11px; color: #81758e; }
.pdf-truncated-note { font-size: 12px; color: #81758e; }
.toast { color: #fff; background: var(--accent); border-color: var(--accent-hover); border-radius: 6px; font-size: 12px; line-height: 1.6; box-shadow: var(--shadow); }
.toast > .icon { color: #ede5f8; }
.toast.error { color: #7d3447; background: #fff6f7; border-color: #efd6dc; }
.toast.error > .icon { color: #af4861; }

/* Google Workspace is another connected service, not a separate visual system. */
.workspace-connection, .workspace-capability, .workspace-permissions, .workspace-results-panel, .sheet-roster { border: 1px solid var(--border); border-radius: 7px; background: #fff; box-shadow: none; }
.workspace-connection { padding: 22px; gap: 20px; margin-bottom: 22px; }
.workspace-connection-copy { gap: 15px; }
.workspace-connection-symbol { width: 36px; height: 36px; border-radius: 5px; background: #faf8fc; color: #9c82b1; }
.workspace-connection-symbol .icon { width: 21px; height: 21px; }
.workspace-connection-title h2 { font-size: 17px; font-weight: 600; }
.workspace-connection-copy p { font-size: 12px; line-height: 1.7; color: #81758e; }
.workspace-capabilities { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.workspace-capability { padding: 22px; min-height: 270px; }
.workspace-product-icon, .workspace-product-icon.drive-product, .workspace-product-icon.docs-product { height: 31px; width: 31px; border-radius: 5px; background: #faf8fc; color: #9c82b1; }
.workspace-product-icon .icon { width: 21px; height: 21px; }
.workspace-capability > .workspace-product-icon { margin-bottom: 20px; }
.workspace-capability > .eyebrow { font-size: 10px; letter-spacing: .7px; color: #8c8297; }
.workspace-capability h2 { font-size: 17px; line-height: 1.35; font-weight: 600; margin-bottom: 12px; }
.workspace-capability p { font-size: 12px; line-height: 1.7; color: #81758e; }
.workspace-capability > .text-link, .workspace-capability-footnote { font-size: 11px; }
.workspace-permissions { padding: 22px; gap: 16px; background: #faf9fc; }
.workspace-permissions h2 { font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.workspace-permissions p { font-size: 12px; line-height: 1.7; color: #81758e; }
.workspace-loading { font-size: 12px; }
.sheets-connection-notice { border-color: #e9e0f0; background: #fcfaff; color: #74697e; font-size: 12px; }
.inline-button { color: var(--accent); }
.sheet-roster-heading { padding: 15px; border-color: var(--border); }
.sheet-roster-heading strong { font-size: 13px; font-weight: 500; color: #594360; }
.sheet-roster-heading span:not(.status-badge) { font-size: 11px; color: #81758e; }
.roster-table { font-size: 12px; }
.roster-table th { background: #faf9fc; color: #746a7f; font-size: 11px; padding: 12px 14px; border-color: var(--border); }
.roster-table td { font-size: 12px; color: #6f647a; padding: 15px 14px; border-color: #eeeaf3; }
.workspace-results-panel .panel-heading h2 { font-size: 17px; font-weight: 600; }
.workspace-results-panel .panel-heading p { font-size: 12px; }
.workspace-source { padding: 18px 22px; background: #faf9fc; border-color: var(--border); }
.workspace-source strong { font-size: 13px; font-weight: 500; }
.workspace-source p, .workspace-source > .text-link { font-size: 11px; color: #81758e; }
.workspace-export-list { padding: 0 22px; }
.workspace-export-item { border-color: var(--border); }
.workspace-export-kind { font-size: 13px; font-weight: 500; color: #594360; }
.workspace-export-date, .workspace-export-status .text-link { font-size: 11px; }
.workspace-export-error { color: #af4861; font-size: 12px; line-height: 1.7; }
.workspace-export-note { font-size: 11px; line-height: 1.7; padding: 16px 22px; border-color: var(--border); }
.exported-files, .exported-files a { font-size: 12px; }
.exported-files a { color: var(--accent); }
.export-account { font-size: 12px; color: #81758e; }
.writeback-preview > a { font-size: 12px; color: var(--accent); }
.writeback-entities > span { font-size: 11px; border-color: #e8e2ef; border-radius: 4px; color: #65596f; }
.workspace-export-result { border-radius: 5px; color: #4f7d65; background: #f3faf5; border-color: #dceee1; font-size: 12px; }

/* A compact sign-in surface matching monitoring's light authentication page. */
.login-screen { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 440px); justify-content: center; align-content: center; gap: 0; padding: 45px 20px; background: #faf9fc; }
.login-left { min-height: 0; padding: 30px 36px 0; color: var(--ink); background: #fff; border: 1px solid var(--border); border-bottom: 0; border-radius: 7px 7px 0 0; overflow: visible; }
.login-brand { padding: 0; gap: 10px; color: #553e69; font-size: 15px; font-weight: 700; letter-spacing: -.3px; line-height: 1.2; }
.login-brand .brand-secondary { font-size: 10px; letter-spacing: .4px; color: #9b81af; font-weight: 400; }
.login-brand .brand-mark { transform: none; transform-origin: center; width: 29px; height: 29px; }
.login-copy { margin: 0; padding-top: 26px; }
.login-copy > .eyebrow { font-size: 10px; color: #8c8297; letter-spacing: .7px; margin-bottom: 12px; }
.login-copy h1 { font-size: 27px; line-height: 1.25; letter-spacing: -.8px; font-weight: 650; }
.login-copy h1 br { display: none; }
.login-copy h1 em { font-style: normal; color: var(--ink); }
.login-copy > p { font-size: 12px; line-height: 1.7; color: #81758e; margin-top: 15px; max-width: none; }
.login-network, .login-footnote, .login-glyph { display: none; }
.login-right { padding: 27px 36px 32px; position: relative; background: #fff; border: 1px solid var(--border); border-top: 0; border-radius: 0 0 7px 7px; align-items: stretch; }
.login-card { max-width: none; }
.login-card > .eyebrow { display: none; }
.login-card > h2 { font-size: 17px; line-height: 1.35; font-weight: 600; letter-spacing: -.3px; margin-bottom: 10px; }
.login-card > h2 br { display: none; }
.login-card > p { font-size: 12px; line-height: 1.7; color: #81758e; max-width: none; margin-bottom: 20px; }
.login-button { min-height: 41px; font-size: 12px; border-radius: 5px; }
.login-security { font-size: 10px; color: #918698; margin-top: 13px; }
.login-bottom { position: static; align-self: center; text-align: center; margin-top: 27px; color: #918698; font-size: 9px; letter-spacing: .4px; }
.login-notice { background: #fffaf0; border-color: #eee2c7; color: #8b6936; font-size: 12px; line-height: 1.7; }
.login-error { color: #af4861; background: #fff6f7; border-color: #efd6dc; }

@media (max-width: 1200px) {
  :root { --sidebar: 196px; }
  .product-brand { padding-inline: 16px; }
  .product-brand .brand-copy { font-size: 13px; }
  #main, #main-content { padding-inline: 26px; }
  .overview-middle { grid-template-columns: 1fr; }
  .try-panel { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; }
  .try-panel .eyebrow { width: 100%; margin: 0; }
  .try-panel h2 { margin: 0; }
  .try-panel > p { flex: 1; min-width: 220px; max-width: none; }
  .try-panel .button { margin: 0 0 0 auto; position: static; }
  .fleet-stages { padding: 23px 22px; gap: 12px; }
  .fleet-stage h3 { font-size: 12px; }
  .fleet-stage p { font-size: 11px; max-width: none; }
  .fleet-panel > h2 { font-size: 17px; }
  .stat-label { font-size: 11px; }
  .stat-value { font-size: 24px; }
  .provider-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .provider-card:last-child { grid-column: auto; }
  .artifact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace-capabilities { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .workspace-capability h2 { font-size: 17px; }
}
@media (max-width: 1000px) {
  .runtime-status, .topbar-divider { display: none; }
  .breadcrumbs { padding-inline: 18px; }
  .account-button #account-name { display: none; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .history-tools { flex-wrap: wrap; gap: 15px; }
  .filter-tabs { gap: 20px; }
  .search-field { flex: 1 1 220px; }
  .workspace-connection { flex-direction: column; align-items: stretch; }
  .workspace-connection-actions { align-self: flex-start; }
  .workspace-capabilities { grid-template-columns: 1fr; }
  .workspace-capability { min-height: 0; }
  .workspace-capability > .workspace-product-icon { margin-bottom: 15px; }
  .workspace-capability p { margin-bottom: 18px; }
  .workspace-results-panel .panel-heading { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 850px) {
  :root { --sidebar: 218px; }
  .app-shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: 62px minmax(0, 1fr); }
  .topbar { grid-column: 1; padding-right: 15px; }
  .product-brand { width: auto; flex: 0 0 auto; border: 0; padding-inline: 17px; }
  .product-brand .brand-copy { font-size: 14px; }
  .breadcrumbs { border-left: 1px solid var(--border); padding-inline: 14px; gap: 8px; }
  .breadcrumbs > span:first-of-type { display: none; }
  .breadcrumbs > .icon { display: none; }
  .breadcrumbs strong { font-size: 12px; }
  .mobile-menu { display: inline-flex; border: 0; background: transparent; margin: 0; }
  .sidebar { position: fixed; inset: 62px auto 0 0; top: 62px; height: calc(100dvh - 62px); width: var(--sidebar); transform: translateX(-100%); visibility: hidden; transition: transform 160ms ease, visibility 160ms; border-right: 1px solid var(--border); padding: 25px 12px 18px; }
  .sidebar.mobile-open { transform: translateX(0); visibility: visible; box-shadow: 15px 0 35px #28232f15; }
  .workspace-main { display: contents; width: auto; margin: 0; }
  #main, #main-content { grid-column: 1; grid-row: 2; padding: 25px 20px 30px; }
  .page-heading { margin-bottom: 23px; gap: 16px; }
  .page-heading h1, .detail-page-heading h1 { font-size: 25px; }
  .page-heading p { font-size: 12px; max-width: none; }
  .page-heading > .button { margin: 0; min-height: 35px; width: auto; height: auto; padding: 7px 12px; gap: 7px; font-size: 12px; }
  .page-heading > .button .icon { width: 15px; height: 15px; }
  .section-kicker { padding: 21px 20px 9px; font-size: 10px; }
  .fleet-panel > h2 { font-size: 17px; padding-inline: 20px; }
  .fleet-stages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 23px 20px; gap: 20px; }
  .fleet-stage > .icon { display: none; }
  .fleet-stage .stage-number { height: 24px; width: 24px; font-size: 10px; }
  .fleet-stage h3 { font-size: 12px; }
  .fleet-stage p { font-size: 11px; }
  .fleet-footer { padding: 12px 20px; font-size: 11px; }
  .fleet-footer button { font-size: 11px; }
  .try-panel { padding: 20px; }
  .try-panel h2 { font-size: 17px; }
  .try-panel .eyebrow { font-size: 10px; }
  .try-panel > p { font-size: 12px; max-width: none; }
  .try-panel .button { top: auto; right: auto; font-size: 11px; }
  .panel-heading { padding: 20px; }
  .panel-heading h2 { font-size: 17px; }
  .panel-heading p { font-size: 12px; max-width: none; }
  .panel-heading .text-link { font-size: 11px; }
  .runs-table { min-width: 710px; }
  .runs-table th, .runs-table td { font-size: 12px; }
  .runs-table th { font-size: 11px; }
  .history-hint { font-size: 11px; }
  .filter-tab { font-size: 12px; }
  .provider-card { padding: 20px; }
  .provider-card h2, .source-import-panel h2 { font-size: 17px; }
  .provider-card p, .source-import-panel p { font-size: 12px; }
  .provider-meta { font-size: 11px; }
  .provider-explainer strong, .provider-explainer p { font-size: 12px; }
  .source-import-panel > div { flex-basis: calc(100% - 55px); }
  .source-import-panel > .button { margin-left: 53px; }
  .detail-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-summary > div { padding: 18px 20px; }
  .detail-summary > div:nth-child(2) { border-right: 0; }
  .detail-summary > div:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .detail-summary .stat-label { font-size: 11px; }
  .detail-summary .stat-value { font-size: 24px; }
  .entity-card > summary { padding: 17px 18px; }
  .entity-card-title h3 { font-size: 15px; }
  .entity-card-title p { font-size: 11px; }
  .entity-summary-right > .status-badge { font-size: 11px; }
  .entity-content { padding: 18px; }
  .entity-metrics > span { font-size: 11px; }
  .entity-metrics strong { font-size: 13px; }
  .artifact-info strong { font-size: 12px; }
  .artifact-info small { font-size: 10px; }
  .artifact-actions a, .artifact-actions button { width: 27px; }
  .artifact-actions .icon { width: 15px; height: 15px; }
  .artifact-kind { font-size: 9px; }
  .result-context { font-size: 12px; }
  .dialog-heading, .preview-dialog .dialog-heading { padding: 20px; }
  .dialog-heading h2, .preview-dialog .dialog-heading h2 { font-size: 18px; }
  .dialog-body, .method-body, .workspace-export-dialog .dialog-body { padding: 20px; }
  .dialog-heading .eyebrow { font-size: 10px; }
  .dialog-footer, .workspace-export-dialog .dialog-footer { padding: 15px 20px; }
  .dialog-footer .button { font-size: 12px; padding: 7px 12px; }
  .dialog-footer .button.ghost { display: inline-flex; }
  .form-row label, .form-row input:not([type=checkbox]), .form-row select { font-size: 12px; }
  .identity-details summary, .identity-details .form-row label { font-size: 12px; }
  .identity-details summary span { font-size: 11px; }
  .provider-choice { font-size: 11px; }
  .provider-choice small { font-size: 10px; }
  .provider-choice input { width: 14px; height: 14px; }
  .checkbox-label { font-size: 12px; }
  .method-step h3 { font-size: 15px; }
  .method-step p, .method-note p { font-size: 12px; }
  .workspace-capabilities { gap: 16px; }
  .workspace-capability, .workspace-connection, .workspace-permissions { padding: 20px; }
  .workspace-connection-title h2, .workspace-capability h2, .workspace-permissions h2 { font-size: 17px; }
  .workspace-capability p, .workspace-connection-copy p, .workspace-permissions p { font-size: 12px; }
  .workspace-connection-actions .button { width: auto; }
  .workspace-results-panel .panel-heading h2 { font-size: 17px; }
  .workspace-results-panel .panel-heading p { font-size: 12px; }
  .workspace-results-panel .panel-heading > .button { font-size: 12px; }
  .workspace-export-kind { font-size: 13px; }
  .workspace-export-date, .workspace-export-note { font-size: 11px; }
  .workspace-export-status { flex-wrap: wrap; }
  .workspace-source { padding: 17px 20px; gap: 10px; }
  .workspace-source strong { font-size: 13px; }
  .workspace-source p { font-size: 11px; }
  .workspace-export-list { padding-inline: 20px; }
  .export-kind-tabs > .input-mode, .input-mode-tabs > .input-mode { font-size: 12px; }
  .export-explainer, .writeback-preview > p, .export-account { font-size: 12px; }
  .writeback-preview h3 { font-size: 14px; }
  .page-footer { font-size: 10px; padding-top: 20px; }
  .page-footer > span:last-child { display: none; }
  .login-screen { padding: 35px 20px; }
  .login-left { padding: 28px 28px 0; }
  .login-right { padding: 25px 28px 28px; }
  .login-copy { padding-top: 25px; }
  .login-copy h1 { font-size: 27px; }
  .login-copy > .eyebrow { font-size: 10px; }
  .login-copy > p, .login-card > p { font-size: 12px; max-width: none; }
  .login-card > h2 { font-size: 17px; }
  .login-button { font-size: 12px; min-height: 41px; }
  .login-security { font-size: 10px; }
  .login-bottom { position: static; font-size: 9px; }
  .login-notice { font-size: 12px; }
}
@media (max-width: 540px) {
  .topbar { padding-right: 12px; }
  .product-brand { padding-inline: 12px; gap: 8px; }
  .product-brand .brand-copy { font-size: 12px; max-width: 83px; white-space: normal; line-height: 1.15; }
  .product-brand .brand-secondary { font-size: 9px; }
  .brand-mark { width: 26px; height: 26px; flex-basis: 26px; border-radius: 5px; }
  .breadcrumbs { padding-inline: 9px; gap: 3px; }
  .breadcrumbs strong { font-size: 11px; max-width: 125px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .topbar-right { padding-left: 5px; gap: 6px; }
  .account-button { gap: 5px; }
  .account-button > .icon { display: none; }
  .avatar { width: 27px; height: 27px; font-size: 11px; }
  #main, #main-content { padding: 23px 18px 28px; }
  .page-heading { align-items: flex-start; flex-wrap: wrap; gap: 15px; }
  .page-heading h1, .detail-page-heading h1 { font-size: 25px; }
  .page-heading .eyebrow { font-size: 10px; }
  .page-heading p { font-size: 12px; }
  .stats-grid { gap: 10px; }
  .stat-card { min-height: 90px; padding: 15px; }
  .stat-label { font-size: 11px; }
  .stat-value { font-size: 23px; }
  .stat-icon { display: none; }
  .try-panel { align-items: flex-start; flex-direction: column; gap: 12px; }
  .try-panel > p { min-width: 0; }
  .try-panel .button { margin: 0; font-size: 11px; }
  .fleet-footer { gap: 7px; font-size: 11px; flex-wrap: wrap; }
  .fleet-footer button { margin-left: 0; font-size: 11px; }
  .mini-tag { font-size: 10px; }
  .panel-heading { flex-wrap: wrap; gap: 10px; }
  .panel-heading h2, .provider-card h2 { font-size: 17px; }
  .panel-heading p, .provider-card p { font-size: 12px; }
  .panel-heading .text-link { font-size: 11px; }
  .filter-tabs { gap: 17px; width: 100%; overflow-x: auto; }
  .filter-tab { font-size: 12px; flex-shrink: 0; }
  .provider-grid { grid-template-columns: 1fr; }
  .provider-card:last-child { grid-column: auto; }
  .provider-card { padding: 20px; min-height: 215px; }
  .provider-card .status-badge { font-size: 11px; }
  .provider-meta { font-size: 11px; }
  .source-import-panel h2 { font-size: 17px; }
  .source-import-panel p { font-size: 12px; }
  .source-import-panel > .button { margin-left: 0; }
  .detail-heading-actions { align-items: flex-start; gap: 10px; }
  .detail-heading-actions .button { font-size: 12px; }
  .detail-summary > div { padding: 16px; }
  .entity-card > summary { padding: 16px; gap: 10px; flex-wrap: wrap; }
  .entity-card-title { gap: 10px; }
  .entity-card-title h3 { font-size: 15px; }
  .entity-card-title p { font-size: 11px; }
  .entity-summary-right { gap: 8px; margin-left: 37px; }
  .entity-summary-right > .status-badge { font-size: 11px; }
  .entity-content { padding: 16px; }
  .artifact-grid { grid-template-columns: 1fr; }
  .artifact-card { padding: 12px; }
  .artifact-info strong { font-size: 12px; }
  .artifact-info small { font-size: 10px; }
  .entity-metrics { gap: 15px; }
  .entity-metrics > span { font-size: 11px; }
  .entity-metrics strong { font-size: 13px; }
  .form-grid, .identity-details .form-grid { grid-template-columns: 1fr; }
  .identity-details .form-row label { font-size: 12px; }
  .identity-details .form-row label .optional, .identity-details summary span { display: inline; font-size: 11px; }
  .identity-details .form-row input { font-size: 12px; }
  .input-mode, .input-mode-tabs > .input-mode { font-size: 12px; min-width: 110px; }
  .input-mode > .icon { display: inline-block; width: 14px; height: 14px; }
  .form-section-heading h3 { font-size: 13px; }
  .dialog-heading, .dialog-body { padding: 18px; }
  .dialog-heading h2 { font-size: 18px; }
  .dialog-footer { padding: 15px 18px; flex-wrap: wrap; }
  .dialog-footer > div { margin-left: auto; gap: 8px; }
  .dialog-footer > .button, .dialog-footer > div > .button { font-size: 12px; padding: 7px 10px; }
  .dialog-footer .button > .icon { width: 14px; height: 14px; }
  .preview-actions .button { font-size: 12px; gap: 7px; }
  .preview-dialog .dialog-heading h2 { font-size: 17px; }
  .preview-content { padding: 15px; }
  .workspace-connection-copy { gap: 12px; }
  .workspace-connection-title { gap: 9px; }
  .workspace-connection-actions { align-self: stretch; }
  .workspace-connection-actions .button { width: 100%; }
  .workspace-export-item { grid-template-columns: minmax(0, 1fr); }
  .workspace-export-status { justify-content: flex-start; }
  .workspace-permissions { gap: 12px; }
  .workspace-permissions > div:first-child { display: none; }
  .login-screen { padding: 25px 15px; }
  .login-left { padding: 25px 24px 0; }
  .login-right { padding: 24px; }
  .login-copy h1 { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
