/* GEO WORKSPACE — local, dependency-free UI styles. */
:root {
  color-scheme: light;
  --canvas: #f6f7f9;
  --surface: #ffffff;
  --surface-soft: #f9fafb;
  --navy: #0e1e34;
  --navy-light: #1a2d47;
  --ink: #18273c;
  --muted: #617084;
  --line: #e3e8ef;
  --line-strong: #c8d1de;
  --teal: #087b78;
  --teal-soft: #e9f5f2;
  --blue: #315eec;
  --blue-soft: #edf2ff;
  --orange: #98551b;
  --red: #aa343e;
  --purple: #6a4ab4;
  --radius: 12px;
  --sidebar-width: 246px;
  --shadow: 0 2px 5px #14233a03, 0 12px 32px #14233a04;
  --font: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 14px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled, input:disabled, select:disabled, textarea:disabled { cursor: not-allowed; opacity: .56; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 3px solid #23a19c; outline-offset: 3px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 1px; border-color: var(--teal); }
svg { flex: 0 0 auto; vertical-align: middle; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, p, dl { margin: 0; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.35; letter-spacing: -.025em; word-break: keep-all; overflow-wrap: anywhere; }
[hidden] { display: none !important; }
::selection { background: #c6e9e1; color: var(--navy); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 200; top: 12px; left: 16px; padding: 10px 16px; border-radius: 8px; background: #fff; color: var(--navy); transform: translateY(-160%); box-shadow: 0 4px 20px #0002; }
.skip-link:focus { transform: translateY(0); }
.mobile-only { display: none !important; }

/* App frame */
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 60; display: flex; flex-direction: column; width: var(--sidebar-width); padding: 31px 18px 20px; background: var(--navy); color: #e8eef7; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #45546a transparent; }
.workspace-brand { display: flex; align-items: center; gap: 11px; padding: 0 6px; color: #fff; text-decoration: none; }
.workspace-brand:hover { text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 39px; height: 39px; flex: 0 0 39px; border-radius: 11px; background: #224d56; color: #bceadf; }
.brand-name { display: block; font-size: 11px; font-weight: 750; letter-spacing: .07em; white-space: nowrap; }
.brand-description { display: block; margin-top: 3px; font-size: 14px; font-weight: 600; letter-spacing: -.035em; }
.workspace-context { display: flex; flex-direction: column; gap: 3px; margin: 29px 6px 25px; padding: 17px 15px; border: 1px solid #344357; border-radius: var(--radius); background: #ffffff04; }
.workspace-context-label { color: #a4b3c7; font-size: 10px; letter-spacing: .07em; }
.workspace-context strong { color: #f6f8fc; font-size: 14px; font-weight: 600; }
.workspace-context > span:last-child { color: #b0bdce; font-size: 11px; }
.sidebar-nav { display: flex; flex-direction: column; gap: 5px; }
.nav-section-label { padding: 0 15px 8px; color: #9daec5; font-size: 10px; font-weight: 600; letter-spacing: .07em; }
.nav-section-spaced { margin-top: 25px; }
.nav-item { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 45px; padding: 11px 14px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #b8c6d8; text-align: left; font-size: 13px; font-weight: 500; transition: background .15s, color .15s; }
.nav-item svg { width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.nav-item:hover { color: #fff; background: #ffffff08; }
.nav-item.active, .nav-item[aria-current="page"] { color: #fff; background: #21364d; border-color: #354b61; }
.nav-item.active::before, .nav-item[aria-current="page"]::before { content: ""; position: absolute; left: -1px; width: 3px; height: 18px; border-radius: 0 3px 3px 0; background: #8fcebc; }
.nav-item.active svg, .nav-item[aria-current="page"] svg { color: #b6e5d9; }
.sidebar-footer { display: flex; flex-direction: column; gap: 3px; margin: auto 7px 0; padding-top: 36px; color: #a6b5c9; font-size: 10px; }
.sidebar-footer-label { font-size: 11px; color: #d1dbe8; }
.workspace-main { min-height: 100vh; margin-left: var(--sidebar-width); }
.workspace-header { display: flex; align-items: center; gap: 15px; min-height: 107px; padding: 25px 36px; border-bottom: 1px solid var(--line); background: var(--surface); }
.header-title-group { min-width: 0; flex: 1; }
#page-title { font-size: 24px; font-weight: 720; letter-spacing: -.045em; }
#page-subtitle { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.65; word-break: keep-all; }
.header-context { display: flex; align-items: center; gap: 10px; padding-left: 22px; border-left: 1px solid var(--line); color: #34435a; font-size: 11px; line-height: 1.5; }
.header-context-mark { display: grid; place-items: center; width: 34px; height: 34px; background: #eaf1ed; border: 1px solid #d9e6df; border-radius: 10px; color: #276254; font-size: 11px; font-weight: 750; }
.header-context-caption { display: block; margin-top: 1px; color: var(--muted); font-size: 9px; }
#app { width: 100%; max-width: 1600px; margin: 0 auto; padding: 30px 36px 48px; }
#app:focus { outline: none; }
.icon-button { display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); }
.icon-button:hover { background: var(--surface-soft); }

/* Hierarchy, cards and actions */
.page-stack { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.hero { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 28px; overflow: hidden; padding: 30px 32px; border: 1px solid #dfe8e5; border-radius: var(--radius); background: #eef5f2; }
.hero-content { position: relative; min-width: 0; max-width: 760px; }
.eyebrow { display: block; margin-bottom: 10px; color: var(--teal); font-size: 10px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.hero-title { color: var(--navy); font-size: clamp(23px, 2.3vw, 32px); line-height: 1.4; letter-spacing: -.045em; }
.hero-subtitle { max-width: 680px; margin-top: 11px; color: #536a66; font-size: 13px; line-height: 1.8; word-break: keep-all; overflow-wrap: anywhere; }
.hero-actions, .form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.hero-actions { flex: 0 0 auto; }
.hero-content .hero-actions { margin-top: 20px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 39px; padding: 9px 15px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--ink); text-decoration: none; font-size: 12px; font-weight: 650; line-height: 1.4; text-align: center; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s; }
.button:hover { background: #f1f4f7; border-color: #aebccb; text-decoration: none; }
.button.primary { color: #fff; background: var(--teal); border-color: var(--teal); box-shadow: 0 2px 3px #087b7814; }
.button.primary:hover { background: #066762; border-color: #066762; }
.button.secondary { background: #fff; color: #25374f; }
.button.secondary:hover { background: #f4f7fa; }
.button.ghost { background: transparent; border-color: transparent; color: #48607e; }
.button.ghost:hover { background: #eaf0f6; }
.button.small { min-height: 30px; padding: 5px 10px; border-radius: 7px; font-size: 11px; }
.button.danger { color: var(--red); border-color: #e9c9cb; background: #fff; }
.button.danger:hover { background: #fcf0f0; }
.button svg { width: 16px; height: 16px; }
.grid-2, .grid-3, .grid-4, .step-grid { display: grid; gap: 18px; min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3, .step-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-2 > *, .grid-3 > *, .grid-4 > *, .step-grid > * { min-width: 0; }
.metric-card { display: flex; flex-direction: column; align-items: flex-start; min-height: 142px; padding: 21px 22px 19px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.metric-label { color: var(--muted); font-size: 11px; font-weight: 600; }
.metric-value { margin-top: 8px; color: var(--navy); font-size: 35px; font-weight: 680; line-height: 1.25; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.metric-value small { margin-left: 3px; color: #7a8798; font-size: 14px; font-weight: 500; letter-spacing: 0; }
.metric-subtitle { margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.panel-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 14px; padding: 22px 24px 18px; border-bottom: 1px solid var(--line); }
.panel-title { font-size: 16px; font-weight: 680; line-height: 1.4; letter-spacing: -.03em; }
.panel-description { max-width: 800px; margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.panel-body { padding: 22px 24px; }
.panel-body > p + p { margin-top: 10px; }
.panel-body > .table-wrap { margin: 0; }
.section-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.section-header h2, .section-header h3 { font-size: 17px; }
.section-header p { margin-top: 4px; color: var(--muted); font-size: 12px; }
.muted { color: var(--muted); }
.text-small { font-size: 12px; line-height: 1.6; }
.text-right { text-align: right; }
.text-nowrap { white-space: nowrap; }
.content-title { display: block; color: var(--ink); font-size: 12px; font-weight: 630; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
a.content-title { text-decoration: none; }
a.content-title:hover { color: var(--blue); text-decoration: underline; }
.content-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 10px; margin-top: 4px; color: var(--muted); font-size: 10px; }
.badge { display: inline-flex; align-items: center; justify-content: center; gap: 5px; max-width: 100%; padding: 3px 8px; border: 1px solid transparent; border-radius: 5px; background: #f0f3f6; color: #556275; font-size: 10px; font-weight: 630; line-height: 1.6; white-space: nowrap; vertical-align: middle; }
.badge.neutral { background: #f0f3f6; color: #556275; border-color: #e4e9ef; }
.badge.teal { background: #e8f5f0; color: #126a54; border-color: #d7eade; }
.badge.blue { background: #eef2ff; color: #355cbd; border-color: #e0e7fb; }
.badge.orange { background: #fff3e6; color: #93511d; border-color: #f5e4cf; }
.badge.red { background: #fdeff0; color: #aa343e; border-color: #f5d8dc; }
.badge.purple { background: #f3effb; color: #7050a4; border-color: #e9e0f7; }
.status-dot { display: inline-block; width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: currentColor; vertical-align: middle; }
.source-link { color: #345eae; text-decoration: underline; text-decoration-color: #bcccea; text-underline-offset: 3px; overflow-wrap: anywhere; font-size: 12px; }
.source-link:hover { color: #174793; text-decoration-color: currentColor; }

/* Tables and filters */
.toolbar { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 11px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.toolbar > input, .toolbar .search-field { flex: 1 1 270px; }
.toolbar > .field { flex: 0 1 170px; }
.toolbar > .field:first-child { flex: 1 1 260px; }
.toolbar > select { width: auto; min-width: 125px; }
.toolbar .button { flex: 0 0 auto; }
.table-wrap { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; border-radius: 0 0 var(--radius) var(--radius); }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12px; text-align: left; }
th, td { padding: 13px 17px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { background: #f8fafc; color: #6a778a; font-size: 10px; font-weight: 650; white-space: nowrap; }
th:first-child, td:first-child { padding-left: 24px; }
th:last-child, td:last-child { padding-right: 24px; }
td { color: #46556c; line-height: 1.65; }
td .content-title { min-width: 160px; max-width: 510px; }
td .muted { font-size: 10px; }
td .button + .button { margin-left: 4px; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: #fafcfb; }
tbody tr:last-child td { border-bottom: 0; }
table .source-link { font-size: 11px; }
table input[type="checkbox"] { margin: 0; }
.table-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 15px 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.pagination { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; min-height: 180px; padding: 34px 24px; color: var(--muted); text-align: center; font-size: 12px; line-height: 1.8; }
.empty-state h3, .empty-state strong { color: #3b4c62; font-size: 14px; font-weight: 600; }
.empty-state p { max-width: 470px; }
.empty-state .button { margin-top: 8px; }
.empty-state svg { color: #8799b0; }
.initial-loading { min-height: 280px; }
.loading-dot { width: 11px; height: 11px; border: 2px solid #badad3; border-top-color: var(--teal); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Form controls */
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
label { display: block; color: #41516a; font-size: 11px; font-weight: 650; line-height: 1.6; }
input, select, textarea { width: 100%; min-width: 0; min-height: 39px; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--ink); font-size: 12px; line-height: 1.6; transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover, textarea:hover { border-color: #a7b5c7; }
input::placeholder, textarea::placeholder { color: #8592a3; opacity: 1; }
textarea { display: block; min-height: 115px; resize: vertical; white-space: pre-wrap; }
input[type="checkbox"], input[type="radio"] { width: 15px; height: 15px; min-height: 15px; padding: 0; flex: 0 0 15px; accent-color: var(--teal); vertical-align: middle; }
input[type="file"] { padding: 7px 9px; background: var(--surface-soft); }
input[type="file"]::file-selector-button { margin-right: 10px; padding: 5px 9px; border: 1px solid var(--line-strong); border-radius: 5px; background: #fff; color: var(--ink); font: inherit; }
input[readonly], textarea[readonly] { background: #f8fafc; color: #617084; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 18px; }
.form-grid .full-width, .form-grid .span-2 { grid-column: 1 / -1; }
.form-actions { justify-content: flex-end; margin-top: 20px; }
.checkbox-field { display: flex; align-items: flex-start; gap: 9px; padding: 5px 0; color: #46556c; font-size: 12px; font-weight: 450; line-height: 1.7; }
.checkbox-field input { margin-top: 3px; }
.field-help { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.field-error { color: var(--red); font-size: 11px; line-height: 1.6; }
.field [aria-invalid="true"] { border-color: #c65e66; }
.tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; padding: 4px; border: 1px solid var(--line); border-radius: 9px; background: #eef2f5; }
.tab { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 7px 13px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #60718a; font-size: 12px; font-weight: 600; line-height: 1.5; }
.tab:hover { color: var(--ink); background: #ffffff70; }
.tab.active, .tab[aria-selected="true"] { border-color: #dfe5ec; background: #fff; color: var(--navy); box-shadow: 0 1px 3px #16284109; }

/* Supporting components */
.list { margin: 0; padding: 0; list-style: none; }
.list-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.list-item:first-child { padding-top: 0; }
.list-item:last-child { padding-bottom: 0; border-bottom: 0; }
.list-item > div { min-width: 0; }
.list-item strong { display: block; color: #2f4259; font-size: 12px; font-weight: 650; }
.list-item p { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.list-item .badge, .list-item .button { flex: 0 0 auto; }
.progress-track { width: 100%; height: 6px; overflow: hidden; border-radius: 10px; background: #e9eef2; }
.progress-fill { width: 0; height: 100%; max-width: 100%; border-radius: inherit; background: #389484; transition: width .25s; }
.progress-fill.blue { background: #5278d1; }
.step-card { position: relative; min-width: 0; padding: 21px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.step-card h3 { font-size: 14px; }
.step-card p { margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.step-number { display: inline-block; margin-bottom: 12px; color: var(--teal); font-size: 10px; font-weight: 750; letter-spacing: .08em; }
.step-card .button { margin-top: 17px; }
.product-card { display: flex; flex-direction: column; min-width: 0; padding: 23px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.product-card h3 { margin-top: 9px; font-size: 19px; letter-spacing: -.035em; }
.product-card p { margin-top: 6px; color: var(--muted); font-size: 12px; }
.product-card .source-link { display: inline-block; margin-top: auto; padding-top: 16px; }
.product-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; margin: 18px 0 0; padding-top: 15px; border-top: 1px solid var(--line); font-size: 12px; }
.product-specs dt, .product-specs .spec-label { color: var(--muted); font-size: 10px; }
.product-specs dd { margin: 3px 0 0; color: #34485f; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.kpi-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.kpi-bar > * { min-width: 0; padding: 18px 22px; border-right: 1px solid var(--line); }
.kpi-bar > :last-child { border-right: 0; }
.kpi-bar .metric-value { margin-top: 4px; font-size: 27px; }
.report-preview { min-width: 0; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.report-preview pre, pre.report-preview { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; color: #35465c; font: 12px/1.95 var(--font); }
.callout { padding: 15px 18px; border: 1px solid #dce8e5; border-left: 3px solid #72aa9c; border-radius: 9px; background: #f0f7f4; color: #46645b; font-size: 12px; line-height: 1.8; word-break: keep-all; overflow-wrap: anywhere; }
.callout strong { color: #234c40; font-weight: 650; }
.callout p + p { margin-top: 5px; }
.callout.warning, .callout.orange { border-color: #ebdfce; border-left-color: #c59a62; background: #fcf8f1; color: #7b6040; }
.callout.error, .callout.red { border-color: #eddbdd; border-left-color: #c77580; background: #fdf5f5; color: #8c4750; }
.connector-card { display: flex; flex-direction: column; gap: 13px; min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.connector-card h3 { font-size: 16px; }
.connector-card p { color: var(--muted); font-size: 12px; line-height: 1.75; }
.connector-card .form-actions { margin-top: auto; padding-top: 5px; }
.connector-icon { display: inline-grid; place-items: center; width: 39px; height: 39px; border: 1px solid #e3e8ef; border-radius: 10px; background: #f6f8fb; color: #4b6284; font-weight: 700; }
.code, code { padding: 2px 5px; border-radius: 4px; background: #eff3f7; color: #435875; font: 11px/1.7 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; overflow-wrap: anywhere; }
pre.code { padding: 15px; white-space: pre-wrap; }
.issue-card { padding: 15px 17px; border: 1px solid #eee2d3; border-radius: 9px; background: #fdfaf5; }
.issue-card h3, .issue-card strong { color: #6d512f; font-size: 12px; }
.issue-card p { margin-top: 5px; color: #786d60; font-size: 11px; line-height: 1.75; }
.issue-card .button { margin-top: 11px; }
.issue-card + .issue-card { margin-top: 10px; }
.divider { height: 1px; margin: 20px 0; border: 0; background: var(--line); }
.noscript-message { margin: 0 36px 30px; }

/* App-specific components, using the actual content and record screens. */
.hero > .hero-content { flex: 1 1 auto; }
.hero-outline { flex: 0 0 252px; width: 252px; padding: 21px 23px 17px; border: 1px solid #d5e3dc; border-radius: 11px; background: #ffffff99; }
.outline-label { margin-bottom: 14px; color: #587069; font-size: 10px; font-weight: 650; }
.outline-line { display: flex; align-items: baseline; justify-content: space-between; gap: 17px; padding: 8px 0; }
.outline-line > span { color: #526b62; font-size: 11px; }
.outline-line strong { color: #214f44; font-size: 25px; font-weight: 670; line-height: 1.2; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.outline-line small { margin-left: 4px; color: #6d817a; font-size: 10px; font-weight: 500; }
.outline-footer { margin-top: 13px; padding-top: 12px; border-top: 1px solid #dce6e1; color: #6b7f77; font-size: 9px; line-height: 1.7; }
.storage-note { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; padding: 12px 2px; color: #69798c; font-size: 11px; line-height: 1.7; }
.storage-note .status-dot { color: #6b8c83; }
.storage-note .button { margin-left: auto; }
.storage-note.storage-error { padding: 12px 15px; border: 1px solid #ead7d9; border-radius: 9px; background: #fcf3f4; color: #9a414b; }
.storage-error .status-dot { color: #b24d58; }
.task-list .list-item { align-items: flex-start; gap: 12px; padding-top: 16px; padding-bottom: 16px; }
.task-list .list-item:first-child { padding-top: 0; }
.task-list .list-item:last-child { padding-bottom: 0; }
.task-list .step-number { flex: 0 0 22px; margin: 2px 0 0; font-size: 11px; }
.task-list .list-item > div { flex: 1 1 auto; }
.task-list .list-item > .button { margin-top: -3px; padding-left: 7px; padding-right: 7px; }
.product-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.product-topline .badge { white-space: normal; text-align: left; justify-content: flex-start; }
.product-topline .source-link { flex: 0 0 auto; margin: 0; padding: 0; font-size: 10px; }
.product-card h2 { margin-top: 17px; font-size: 21px; line-height: 1.35; letter-spacing: -.035em; }
.product-card .product-specs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.product-specs small { color: #7e8b9c; font-size: 9px; font-weight: 400; }
.product-note { margin-top: 16px; padding: 13px 15px; border: 1px solid #ebe3d8; border-radius: 8px; background: #fbf8f3; }
.product-note > strong { display: block; color: #846747; font-size: 10px; font-weight: 650; }
.product-note > p { margin-top: 5px; color: #766c5f; font-size: 11px; line-height: 1.75; overflow-wrap: anywhere; }
.product-card > .product-note { margin-top: auto; }
.product-card > p + .product-note { margin-top: 14px; }
.text-button { padding: 0; border: 0; border-radius: 2px; background: transparent; color: #263f5d; font-size: 12px; font-weight: 650; line-height: 1.65; text-align: left; word-break: keep-all; overflow-wrap: anywhere; }
.text-button:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
td.content-title { display: table-cell; min-width: 230px; max-width: 450px; font-weight: 400; }
td.content-title .text-small { margin-top: 4px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 9px; background: #f9fafc; }
.detail-grid > div { min-width: 0; }
.detail-grid dt { color: #718097; font-size: 10px; }
.detail-grid dd { margin: 4px 0 0; color: #384c65; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.detail-question { color: #32465e; font-size: 16px; font-weight: 580; line-height: 1.7; letter-spacing: -.025em; word-break: keep-all; overflow-wrap: anywhere; }
.badge-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.read-only-value { display: flex; align-items: center; min-height: 39px; padding: 9px 11px; border: 1px solid #e0e6ee; border-radius: 8px; background: #f4f6f9; color: #6c7d91; font-size: 12px; }
.brief-section { display: flex; flex-direction: column; gap: 11px; padding-top: 18px; border-top: 1px solid var(--line); }
.brief-section textarea { min-height: 290px; background: #f9fafc; color: #465970; font: 12px/1.85 var(--font); }
.answer-text { padding: 18px 20px; border: 1px solid var(--line); border-radius: 9px; background: #f9fafc; color: #354b63; font-size: 12px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.source-list { padding: 13px 16px; border: 1px solid var(--line); border-radius: 8px; background: #f8fafc; font-size: 11px; line-height: 1.95; overflow-wrap: anywhere; word-break: break-word; }
.source-list .source-link { font-size: 11px; }
.form-error { padding: 11px 14px; border: 1px solid #efdbdd; border-radius: 8px; background: #fcf2f3; color: #a03945; font-size: 12px; line-height: 1.7; }
.form-error:empty { display: none; }
.check-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 16px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 8px; background: #fafbfd; }
.callout > strong, .callout > span { display: block; }
.callout > strong { margin-bottom: 4px; }
#content-pager { justify-content: space-between; padding: 14px 24px; border-top: 1px solid var(--line); }
.empty-symbol { display: grid; place-items: center; width: 43px; height: 43px; margin-bottom: 4px; border: 1px solid #dce5eb; border-radius: 12px; background: #f4f7fa; color: #8397ad; font-size: 23px; line-height: 1; }
.panel-body.report-preview { border: 0; border-radius: 0 0 var(--radius) var(--radius); }

/* Native dialogs and notifications */
dialog.dialog-shell, .dialog-shell dialog { width: min(760px, calc(100vw - 40px)); max-width: 100%; max-height: calc(100dvh - 48px); padding: 0; overflow: auto; overscroll-behavior: contain; border: 1px solid #dbe2eb; border-radius: 14px; background: #fff; color: var(--ink); box-shadow: 0 25px 90px #071b3440; }
dialog.dialog-shell.wide, .dialog-shell.wide dialog { width: min(980px, calc(100vw - 40px)); }
dialog::backdrop { background: #0e1e3480; backdrop-filter: blur(3px); }
dialog:not([open]) { display: none; }
.dialog-header { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 23px 27px 19px; border-bottom: 1px solid var(--line); background: #fff; }
.dialog-header h2 { font-size: 20px; }
.dialog-header p { margin-top: 5px; color: var(--muted); font-size: 12px; }
.dialog-header .button, .dialog-header .icon-button { flex: 0 0 auto; }
.dialog-body { min-width: 0; padding: 24px 27px; }
.dialog-body > * + * { margin-top: 18px; }
.dialog-body .form-grid > * { margin-top: 0; }
.dialog-body h3 { margin-bottom: 10px; font-size: 14px; }
.dialog-body .tabs { margin-bottom: 18px; }
.dialog-footer { position: sticky; bottom: 0; z-index: 2; display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 8px; padding: 16px 27px; border-top: 1px solid var(--line); background: #fff; }
.dialog-footer .muted { margin-right: auto; font-size: 11px; }
.toast, #toast { position: fixed; right: 28px; bottom: 26px; z-index: 150; max-width: min(440px, calc(100vw - 32px)); padding: 13px 18px; border: 1px solid #34495f; border-radius: 10px; background: var(--navy); color: #f5f8fc; box-shadow: 0 8px 32px #0e1e3426; opacity: 0; transform: translateY(14px); pointer-events: none; font-size: 12px; line-height: 1.7; transition: opacity .18s, transform .18s; }
.toast.show, .toast.visible, .toast.is-visible, #toast.show, #toast.visible, #toast.is-visible { opacity: 1; transform: translateY(0); }
.toast.error, #toast.error { background: #6d3039; border-color: #96515b; }

/* Tablet / phone */
@media (min-width: 1600px) { #app { padding-top: 36px; } .workspace-header { padding-right: 44px; padding-left: 44px; } }
@media (max-width: 1250px) {
  :root { --sidebar-width: 224px; }
  .sidebar { padding-right: 14px; padding-left: 14px; }
  .brand-name { font-size: 10px; }
  .brand-description { font-size: 13px; }
  .brand-mark { width: 35px; height: 35px; flex-basis: 35px; }
  .workspace-header { padding-right: 26px; padding-left: 26px; }
  #app { padding-right: 26px; padding-left: 26px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { padding: 26px; }
  .hero-actions { flex-shrink: 1; }
  .metric-card { min-height: 130px; }
}
@media (max-width: 980px) {
  .grid-3, .step-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-context { display: none; }
  .hero { align-items: flex-start; flex-direction: column; gap: 20px; }
  .hero-actions { flex-wrap: wrap; }
  .hero-outline { flex-basis: auto; width: 100%; }
  .outline-line { padding-top: 6px; padding-bottom: 6px; }
  .kpi-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-bar > *:nth-child(2n) { border-right: 0; }
  .kpi-bar > *:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .panel-header, .panel-body { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 760px) {
  :root { --sidebar-width: 246px; }
  .mobile-only { display: inline-grid !important; }
  .workspace-main { margin-left: 0; }
  .workspace-header { position: sticky; top: 0; z-index: 80; min-height: 76px; height: 76px; gap: 11px; padding: 12px 17px; }
  #page-title { font-size: 19px; }
  #page-subtitle { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 1; margin-top: 3px; font-size: 10px; }
  #nav-toggle { flex: 0 0 36px; width: 36px; height: 36px; }
  .sidebar { top: 76px; z-index: 70; padding-top: 22px; transform: translateX(-101%); transition: transform .2s ease; box-shadow: 12px 0 38px #0e1e3424; }
  .sidebar.open, .sidebar.is-open, .sidebar[data-open="true"], body.sidebar-open .sidebar { transform: translateX(0); }
  body.sidebar-open { overflow: hidden; }
  body.sidebar-open::after { content: ""; position: fixed; z-index: 65; inset: 76px 0 0; background: #14243a50; }
  .workspace-context { margin-top: 22px; margin-bottom: 20px; }
  .sidebar-footer { padding-top: 28px; }
  #app { padding: 20px 17px 36px; }
  .page-stack { gap: 18px; }
  .hero { padding: 23px; }
  .hero-title { font-size: 24px; }
  .hero-subtitle { font-size: 12px; }
  .eyebrow { font-size: 9px; }
  .grid-2, .grid-3, .step-grid { grid-template-columns: 1fr; }
  .grid-4 { gap: 12px; }
  .metric-card { min-height: 129px; padding: 17px 16px; }
  .metric-value { font-size: 29px; }
  .metric-label, .metric-subtitle { font-size: 10px; }
  .panel-header { padding: 18px; }
  .panel-body { padding: 18px; }
  .panel-title { font-size: 15px; }
  .panel-description { font-size: 11px; }
  .toolbar { align-items: stretch; gap: 9px; padding: 15px 18px; }
  .toolbar > input, .toolbar .search-field, .toolbar > .field:first-child { flex-basis: 100%; }
  .toolbar > .field { flex: 1 1 calc(50% - 9px); }
  .toolbar > select { flex: 1 1 125px; min-width: 0; }
  table { min-width: 680px; }
  th, td { padding: 12px 13px; }
  th:first-child, td:first-child { padding-left: 18px; }
  th:last-child, td:last-child { padding-right: 18px; }
  .table-footer { padding: 13px 18px; }
  .form-grid { grid-template-columns: 1fr; gap: 15px; }
  .detail-grid, .check-list { grid-template-columns: 1fr; }
  .task-list .list-item { flex-wrap: wrap; }
  .task-list .list-item > div { flex-basis: calc(100% - 36px); }
  .task-list .list-item > .button { margin: -4px 0 0 34px; }
  .hero-outline { padding: 17px 19px 14px; }
  .storage-note .button { margin-left: 14px; }
  #content-pager { padding: 13px 18px; }
  input, select, textarea { font-size: 16px; }
  .toolbar input, .toolbar select { font-size: 16px; }
  .field-help { font-size: 11px; }
  .tabs { width: 100%; }
  .tab { flex: 1 1 auto; padding-right: 9px; padding-left: 9px; font-size: 11px; }
  .kpi-bar > * { padding: 16px 18px; }
  .step-card, .product-card, .connector-card { padding: 20px; }
  .report-preview { padding: 18px; }
  dialog.dialog-shell, .dialog-shell dialog, dialog.dialog-shell.wide, .dialog-shell.wide dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); border-radius: 12px; }
  .dialog-header { padding: 19px 18px 16px; }
  .dialog-header h2 { font-size: 18px; }
  .dialog-body { padding: 19px 18px; }
  .dialog-footer { padding: 13px 18px; }
  .dialog-footer .muted { flex-basis: 100%; }
  .toast, #toast { right: 16px; bottom: 16px; }
  .noscript-message { margin: 0 17px 24px; }
}
@media (max-width: 380px) { .grid-4 { grid-template-columns: 1fr; } .hero-actions .button { width: 100%; } .hero-actions { width: 100%; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; } }
@media print {
  body { background: #fff; font-size: 11px; }
  .sidebar, #nav-toggle, .header-context, #toast, .hero-actions, .toolbar, .form-actions, .dialog-footer, .button, .skip-link { display: none !important; }
  .workspace-main { margin-left: 0; }
  .workspace-header { position: static; min-height: 0; padding: 0 0 18px; }
  #app { max-width: none; padding: 20px 0; }
  .panel, .metric-card, .hero, .product-card, .connector-card, .report-preview { box-shadow: none; break-inside: avoid; }
  .table-wrap { overflow: visible; }
  table { min-width: 0; }
  th, td { padding: 8px; }
  a { color: #222; }
  .page-stack { gap: 15px; }
}
/* Shared server login */
.login-panel { max-width: 520px; margin: 8vh auto; }
