:root {
  color-scheme: light;
  --navy: #10264a;
  --navy-2: #14345f;
  --blue-800: #1d4f88;
  --blue-700: #1764c0;
  --blue-600: #007aff;
  --blue-500: #2f8cff;
  --blue-200: #c5def9;
  --blue-100: #e0edfc;
  --blue-050: #f1f6fd;
  --ink: #122746;
  --ink-2: #284363;
  --muted: #526984;
  --muted-2: #647994;
  --canvas: #eef4fc;
  --surface: #f8fbff;
  --line: rgba(106,145,194,.23);
  --line-strong: rgba(106,145,194,.38);
  --glass: rgba(248,251,255,.77);
  --positive: #167154;
  --positive-bg: #e7f5ef;
  --notice: #7a5719;
  --notice-bg: #fff4d9;
  --danger: #a83e42;
  --shadow-sm: 0 3px 12px rgba(8,34,72,.045);
  --shadow-md: 0 12px 34px rgba(8,34,72,.085), 0 2px 7px rgba(8,34,72,.035);
  --focus: 0 0 0 4px rgba(0,122,255,.23);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-family: var(--font);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--ink);
  background: var(--canvas);
}
* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--canvas); scroll-behavior: smooth; scrollbar-color: #91aac8 #e7eef7; scrollbar-width: thin; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: radial-gradient(ellipse at 82% -10%, rgba(183,214,250,.45), transparent 36rem), var(--canvas); font-size: 15px; line-height: 1.55; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; box-shadow: var(--focus); }
::selection { color: #fff; background: #1764c0; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #e7eef7; }
::-webkit-scrollbar-thumb { border: 3px solid #e7eef7; border-radius: 99px; background: #91aac8; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 11px 15px; transform: translateY(-150%); border-radius: 12px; color: white; background: var(--navy); }
.skip-link:focus { transform: none; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 40; inset: 0 auto 0 0; display: flex; width: 252px; flex-direction: column; padding: 22px 15px 18px; border-right: 1px solid rgba(106,145,194,.19); background: rgba(246,250,255,.88); -webkit-backdrop-filter: blur(22px) saturate(155%); backdrop-filter: blur(22px) saturate(155%); }
.brand { display: flex; min-height: 54px; align-items: center; gap: 12px; padding: 0 7px 17px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.brand-mark { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(255,255,255,.82); border-radius: 14px; color: white; background: linear-gradient(150deg,#2188ee,#1255a7); box-shadow: 0 6px 14px rgba(23,100,192,.21), inset 0 1px 1px rgba(255,255,255,.43); }
.brand-mark svg { width: 22px; height: 22px; }
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-size: 14px; font-weight: 740; letter-spacing: -.025em; }
.brand-copy small { color: var(--muted-2); font-size: 10px; font-weight: 700; letter-spacing: .15em; }
.nav-caption { padding: 24px 10px 9px; color: #7287a1; font-size: 11px; font-weight: 730; letter-spacing: .12em; }
.nav-list { display: grid; gap: 5px; }
.nav-item { display: flex; min-height: 45px; align-items: center; gap: 12px; padding: 0 12px; border: 1px solid transparent; border-radius: 13px; color: #405976; background: transparent; text-align: left; cursor: pointer; transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease; }
.nav-item:hover { color: var(--navy); background: rgba(228,239,253,.72); }
.nav-item:active { transform: scale(.985); }
.nav-item.is-active { border-color: rgba(67,133,210,.16); color: #134e91; background: linear-gradient(105deg,rgba(222,238,255,.92),rgba(241,247,254,.88)); font-weight: 690; box-shadow: inset 0 1px rgba(255,255,255,.88); }
.nav-item svg { width: 19px; height: 19px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.nav-count { display: grid; min-width: 22px; height: 22px; margin-left: auto; padding-inline: 5px; place-items: center; border-radius: 8px; color: #426184; background: rgba(226,237,250,.88); font-size: 11px; font-weight: 730; font-variant-numeric: tabular-nums; }
.sidebar-note { margin: auto 1px 15px; padding: 15px 14px 13px; border: 1px solid rgba(180,205,237,.63); border-radius: 17px; background: linear-gradient(145deg,rgba(255,255,255,.92),rgba(230,241,255,.76)); box-shadow: inset 0 1px rgba(255,255,255,.93), var(--shadow-sm); }
.note-icon { display: grid; width: 31px; height: 31px; margin-bottom: 10px; place-items: center; border-radius: 10px; color: #1764b6; background: #e3f0ff; }
.note-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-note strong { display: block; color: #173e6b; font-size: 12px; font-weight: 730; }
.sidebar-note p { margin: 5px 0 9px; color: #4b6481; font-size: 12px; line-height: 1.55; }
.sidebar-note button { padding: 0; border: 0; color: #135ca9; background: transparent; font-size: 12px; font-weight: 690; cursor: pointer; }
.sidebar-note button:hover { text-decoration: underline; text-underline-offset: 3px; }
.sidebar-footer { display: flex; align-items: center; gap: 8px; padding: 12px 8px 2px; border-top: 1px solid var(--line); color: #536b87; font-size: 11px; font-weight: 620; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #198b69; box-shadow: 0 0 0 3px rgba(25,139,105,.11); }
.sidebar-scrim { display: none; }
.main-column { min-height: 100vh; margin-left: 252px; }
.topbar { position: sticky; z-index: 30; top: 0; display: flex; height: 66px; align-items: center; justify-content: space-between; gap: 16px; padding: 0 clamp(20px,3.3vw,46px); border-bottom: 1px solid rgba(106,145,194,.17); background: rgba(247,250,255,.77); -webkit-backdrop-filter: blur(21px) saturate(150%); backdrop-filter: blur(21px) saturate(150%); }
.topbar-left, .topbar-actions { display: flex; min-width: 0; align-items: center; gap: 12px; }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: #69809c; font-size: 13px; }
.breadcrumb strong { overflow: hidden; color: #18395f; font-weight: 690; text-overflow: ellipsis; white-space: nowrap; }
.crumb-sep { color: #a4b5c8; }
.privacy-chip { display: inline-flex; min-height: 31px; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid rgba(84,156,129,.23); border-radius: 999px; color: #256951; background: rgba(232,247,239,.85); font-size: 11px; font-weight: 680; white-space: nowrap; }
.privacy-chip svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.topbar-help, .mobile-menu { display: grid; width: 37px; height: 37px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(106,145,194,.23); border-radius: 12px; color: #476582; background: rgba(255,255,255,.72); cursor: pointer; }
.topbar-help:hover, .mobile-menu:hover { color: var(--blue-700); background: #fff; }
.topbar-help svg, .mobile-menu svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mobile-menu { display: none; }
.content { width: min(100%, 1480px); margin: 0 auto; padding: 32px clamp(20px,3.3vw,46px) 64px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 0 0 24px; }
.page-heading h1 { max-width: 780px; margin: 0; color: #132f53; font-size: clamp(26px,3vw,36px); font-weight: 740; line-height: 1.17; letter-spacing: -.045em; text-wrap: balance; }
.page-heading p { max-width: 740px; margin: 10px 0 0; color: #516984; font-size: 14px; line-height: 1.7; }
.heading-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 9px; }
.button { display: inline-flex; min-height: 43px; align-items: center; justify-content: center; gap: 9px; padding: 0 15px; border: 1px solid transparent; border-radius: 13px; font-size: 13px; font-weight: 680; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.button-primary { border-color: rgba(255,255,255,.52); color: white; background: linear-gradient(135deg,#2489ef,#1260bd); box-shadow: 0 5px 13px rgba(23,100,192,.17), inset 0 1px rgba(255,255,255,.25); }
.button-primary:hover { background: linear-gradient(135deg,#1d7fe4,#1056a8); box-shadow: 0 7px 16px rgba(23,100,192,.21), inset 0 1px rgba(255,255,255,.28); }
.button-quiet { border-color: rgba(106,145,194,.29); color: #224568; background: rgba(255,255,255,.77); }
.button-quiet:hover { border-color: rgba(63,123,190,.43); background: #fff; }
.button-soft { border-color: rgba(94,151,215,.18); color: #1c5d9e; background: #e8f2ff; }
.button-soft:hover { background: #dcecff; }
.button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.panel { min-width: 0; border: 1px solid rgba(106,145,194,.22); border-radius: 19px; background: rgba(255,255,255,.82); box-shadow: var(--shadow-sm), inset 0 1px rgba(255,255,255,.92); }
.panel-pad { padding: 21px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.panel-heading h2, .panel-heading h3 { margin: 0; color: #193958; font-size: 16px; font-weight: 720; letter-spacing: -.02em; }
.panel-heading p { margin: 5px 0 0; color: #5c738e; font-size: 12px; line-height: 1.55; }
.kicker { margin: 0 0 8px; color: #4b75a5; font-size: 11px; font-weight: 760; letter-spacing: .12em; text-transform: uppercase; }
.workspace-layout { display: grid; grid-template-columns: minmax(0,1.42fr) minmax(280px,.8fr); gap: 18px; align-items: stretch; }
.workspace-hero { position: relative; overflow: hidden; min-height: 273px; padding: clamp(22px,3vw,34px); border: 1px solid rgba(255,255,255,.58); border-radius: 23px; color: white; background: radial-gradient(ellipse at 85% 5%,rgba(90,167,245,.32),transparent 33%), linear-gradient(125deg,#102b52 0%,#163e70 58%,#1d5690 100%); box-shadow: 0 15px 34px rgba(12,43,81,.15), inset 0 1px rgba(255,255,255,.18); }
.workspace-hero::after { position: absolute; right: -65px; bottom: -110px; width: 300px; height: 300px; border: 1px solid rgba(191,222,255,.15); border-radius: 50%; content: ""; box-shadow: 0 0 0 26px rgba(191,222,255,.035),0 0 0 62px rgba(191,222,255,.025); pointer-events: none; }
.workspace-hero h2 { max-width: 620px; margin: 0; font-size: clamp(26px,3vw,35px); font-weight: 730; line-height: 1.2; letter-spacing: -.045em; text-wrap: balance; }
.workspace-hero > p { max-width: 620px; margin: 12px 0 0; color: #d7e8fb; font-size: 14px; line-height: 1.7; }
.hero-form { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr); align-items: end; gap: 10px; margin-top: 22px; }
.field-label { display: block; margin-bottom: 6px; color: #375776; font-size: 12px; font-weight: 690; }
.workspace-hero .field-label { color: #e2efff; }
.text-input, .select-input, .mapping-select { width: 100%; min-height: 43px; padding: 0 12px; border: 1px solid rgba(106,145,194,.36); border-radius: 12px; outline: none; color: #173653; background: rgba(255,255,255,.95); }
.text-input::placeholder { color: #8799ae; opacity: 1; }
.workspace-hero .text-input, .workspace-hero .select-input { border-color: rgba(255,255,255,.62); background: rgba(250,253,255,.97); }
.field-help { margin: 6px 0 0; color: #68809b; font-size: 11px; line-height: 1.5; }
.hero-form .button { min-height: 43px; white-space: nowrap; }
.hero-note { display: flex; align-items: flex-start; gap: 8px; margin: 13px 0 0; color: #c8def7; font-size: 11px; line-height: 1.5; }
.hero-note svg { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.side-summary { display: flex; min-height: 100%; flex-direction: column; justify-content: space-between; padding: 21px; }
.side-summary h3 { margin: 0; color: #193b5d; font-size: 16px; font-weight: 710; }
.side-summary > p { margin: 7px 0 16px; color: #5c738e; font-size: 12px; line-height: 1.6; }
.source-stat { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; padding-top: 15px; border-top: 1px solid rgba(106,145,194,.19); }
.source-stat div { min-width: 0; }
.source-stat strong { display: block; color: #174f8b; font-size: 21px; font-weight: 740; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.source-stat span { display: block; margin-top: 2px; color: #637b96; font-size: 10px; line-height: 1.35; }
.coverage-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 15px; padding: 10px 11px; border-radius: 12px; color: #3a5875; background: #f0f6fe; font-size: 11px; }
.coverage-line strong { color: #1c629d; font-weight: 690; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 31px 0 14px; }
.section-heading h2 { margin: 0; color: #173653; font-size: 18px; font-weight: 730; letter-spacing: -.03em; }
.section-heading p { margin: 5px 0 0; color: #617893; font-size: 12px; line-height: 1.55; }
.steps-strip { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; }
.step-card { position: relative; min-height: 125px; padding: 15px; border: 1px solid rgba(106,145,194,.2); border-radius: 16px; background: rgba(255,255,255,.7); transition: border-color 170ms ease, background 170ms ease, transform 170ms ease; }
.step-card:hover { transform: translateY(-2px); border-color: rgba(68,132,204,.4); background: rgba(255,255,255,.93); }
.step-card.is-ready { border-color: rgba(43,139,110,.27); background: rgba(245,252,248,.84); }
.step-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.step-index { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 9px; color: #255d99; background: #e5f0ff; font-size: 11px; font-weight: 740; font-variant-numeric: tabular-nums; }
.step-card.is-ready .step-index { color: #1c7157; background: #e3f4ec; }
.step-status { color: #71849a; font-size: 10px; font-weight: 650; }
.step-card h3 { margin: 11px 0 4px; color: #244461; font-size: 13px; font-weight: 710; }
.step-card p { margin: 0; color: #61758d; font-size: 11px; line-height: 1.5; }
.guide-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(250px,.85fr); gap: 15px; margin-top: 16px; }
.guide-panel { padding: 18px 19px; }
.guide-panel h3 { margin: 0 0 12px; color: #1b3c5c; font-size: 14px; font-weight: 710; }
.guide-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.guide-list li { display: grid; grid-template-columns: 22px minmax(0,1fr); gap: 9px; color: #4b637d; font-size: 12px; line-height: 1.55; }
.guide-check { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 7px; color: #1d669f; background: #e7f1fd; font-size: 11px; font-weight: 760; }
.tip-panel { padding: 18px 19px; border-color: rgba(154,181,214,.36); background: linear-gradient(145deg,rgba(245,249,255,.93),rgba(231,241,255,.66)); }
.tip-panel strong { display: block; color: #214a72; font-size: 13px; }
.tip-panel p { margin: 7px 0 13px; color: #526e8c; font-size: 12px; line-height: 1.6; }
.inline-link { padding: 0; border: 0; color: #155da4; background: transparent; font-size: 12px; font-weight: 690; text-decoration: underline; text-decoration-color: rgba(21,93,164,.35); text-underline-offset: 3px; cursor: pointer; }
.import-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; align-items: stretch; }
.import-card { display: flex; min-width: 0; flex-direction: column; padding: 17px; border: 1px solid rgba(106,145,194,.24); border-radius: 17px; background: rgba(255,255,255,.84); box-shadow: var(--shadow-sm),inset 0 1px rgba(255,255,255,.9); }
.import-card-top { display: flex; align-items: flex-start; gap: 10px; }
.import-icon { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 11px; color: #2069ad; background: #e7f2ff; }
.import-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.import-card h3 { margin: 1px 0 4px; color: #1d3e5f; font-size: 13px; font-weight: 720; }
.import-card .import-desc { min-height: 40px; margin: 0; color: #617790; font-size: 11px; line-height: 1.5; }
.drop-zone { position: relative; display: grid; min-height: 89px; margin-top: 13px; padding: 11px; place-items: center; border: 1px dashed rgba(91,139,192,.44); border-radius: 13px; color: #4d6d8e; background: rgba(242,248,255,.72); text-align: center; cursor: pointer; transition: border-color 160ms ease,background 160ms ease; }
.drop-zone:hover, .drop-zone.is-dragover { border-color: #3987ce; background: #e9f3ff; }
.drop-zone strong { color: #255b90; font-size: 11px; font-weight: 700; }
.drop-zone span { display: block; margin-top: 3px; color: #788da5; font-size: 10px; }
.drop-zone input { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; overflow: hidden; opacity: 0; cursor: pointer; }
.drop-zone:focus-within { outline: none; box-shadow: var(--focus); }
.file-list { display: grid; gap: 7px; margin-top: 11px; }
.file-row { display: grid; grid-template-columns: 20px minmax(0,1fr) auto; align-items: center; gap: 7px; padding: 8px; border: 1px solid rgba(106,145,194,.16); border-radius: 10px; background: rgba(247,250,255,.78); }
.file-icon { width: 18px; height: 18px; color: #4d78a5; }
.file-main { min-width: 0; }
.file-main strong { display: block; overflow: hidden; color: #34536f; font-size: 10px; font-weight: 690; text-overflow: ellipsis; white-space: nowrap; }
.file-main span { display: block; margin-top: 1px; color: #73889e; font-size: 10px; }
.file-actions { display: flex; align-items: center; gap: 5px; }
.file-action { padding: 4px 5px; border: 0; border-radius: 7px; color: #2968a3; background: transparent; font-size: 10px; font-weight: 680; cursor: pointer; }
.file-action:hover { background: #e8f2ff; }
.file-action.remove { color: #9a4650; }
.file-action.remove:hover { background: #fff0f1; }
.import-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 15px; padding: 12px 14px; border: 1px solid rgba(106,145,194,.17); border-radius: 13px; color: #536b85; background: rgba(255,255,255,.58); font-size: 11px; }
.import-footer p { margin: 0; line-height: 1.5; }
.import-footer .button { flex: 0 0 auto; }
.template-actions { display: flex; flex-wrap: wrap; gap: 9px; margin: 14px 0 0; }
.template-button { min-height: 33px; padding: 0 10px; border: 1px solid rgba(106,145,194,.2); border-radius: 9px; color: #3c6389; background: rgba(255,255,255,.61); font-size: 10px; font-weight: 670; cursor: pointer; }
.template-button:hover { border-color: rgba(58,125,194,.4); background: #fff; }
.data-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 17px; }
.data-step { padding: 14px 15px; border-top: 1px solid rgba(106,145,194,.28); }
.data-step strong { display: block; color: #244969; font-size: 12px; }
.data-step p { margin: 5px 0 0; color: #627991; font-size: 11px; line-height: 1.55; }
.status-badge { display: inline-flex; min-height: 25px; align-items: center; gap: 6px; padding: 0 9px; border: 1px solid rgba(106,145,194,.2); border-radius: 999px; color: #536d88; background: rgba(245,249,255,.82); font-size: 10px; font-weight: 700; white-space: nowrap; }
.status-badge::before { width: 6px; height: 6px; border-radius: 50%; content: ""; background: #8ca5bf; }
.status-badge.is-live { border-color: rgba(40,133,105,.23); color: #236a51; background: #eef8f3; }
.status-badge.is-live::before { background: #28866a; }
.callout { display: grid; grid-template-columns: 20px minmax(0,1fr); gap: 9px; padding: 13px 14px; border: 1px solid rgba(125,163,204,.25); border-radius: 13px; color: #4a6683; background: rgba(239,246,255,.78); font-size: 11px; line-height: 1.6; }
.callout strong { color: #274e75; }
.callout svg { width: 17px; height: 17px; margin-top: 1px; fill: none; stroke: #347bb6; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.callout.warning { border-color: rgba(208,170,93,.3); color: #725c36; background: rgba(255,249,233,.82); }
.callout.warning svg { stroke: #a67a31; }
.results-top { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(260px,.65fr); gap: 14px; margin-bottom: 14px; }
.result-summary { padding: 21px; border: 1px solid rgba(255,255,255,.62); border-radius: 20px; color: white; background: linear-gradient(120deg,#112c50,#194c7e); box-shadow: var(--shadow-md),inset 0 1px rgba(255,255,255,.17); }
.result-summary .kicker { color: #a9d1ff; }
.result-summary h2 { margin: 0; font-size: 23px; font-weight: 720; letter-spacing: -.035em; }
.result-summary p { margin: 8px 0 0; color: #d7e7f8; font-size: 12px; line-height: 1.65; }
.summary-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.summary-meta span { display: inline-flex; min-height: 25px; align-items: center; padding: 0 8px; border: 1px solid rgba(217,236,255,.23); border-radius: 8px; color: #e3effc; background: rgba(228,241,255,.1); font-size: 10px; }
.coverage-card { padding: 18px; }
.coverage-card h3 { margin: 0 0 11px; color: #203f60; font-size: 13px; }
.coverage-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid rgba(106,145,194,.14); color: #58718d; font-size: 11px; }
.coverage-row strong { color: #244969; font-size: 11px; font-variant-numeric: tabular-nums; }
.analysis-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; align-items: start; }
.analysis-card { min-width: 0; overflow: hidden; padding: 19px; }
.analysis-card.wide { grid-column: 1 / -1; }
.analysis-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 15px; }
.analysis-heading h3 { margin: 0; color: #1d3d5e; font-size: 15px; font-weight: 720; }
.analysis-heading p { margin: 5px 0 0; color: #647b94; font-size: 11px; line-height: 1.5; }
.metric-strip { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-bottom: 13px; }
.metric-box { padding: 11px; border: 1px solid rgba(106,145,194,.15); border-radius: 12px; background: rgba(245,249,255,.82); }
.metric-box strong { display: block; overflow-wrap: anywhere; color: #1b578e; font-size: 18px; font-weight: 740; font-variant-numeric: tabular-nums; letter-spacing: -.035em; }
.metric-box span { display: block; margin-top: 3px; color: #657c96; font-size: 10px; line-height: 1.4; }
.trend-chart { width: 100%; height: 178px; overflow: visible; }
.trend-chart text { fill: #7388a0; font-family: var(--font); font-size: 10px; }
.chart-caption { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 7px; color: #6d8299; font-size: 10px; }
.chart-legend { display: inline-flex; align-items: center; gap: 6px; }
.chart-dot { width: 8px; height: 8px; border-radius: 50%; background: #287bc1; }
.empty-panel { display: grid; min-height: 175px; padding: 20px; place-items: center; border: 1px dashed rgba(106,145,194,.3); border-radius: 14px; color: #5f7690; background: rgba(246,250,255,.63); text-align: center; }
.empty-panel strong { display: block; margin-top: 10px; color: #335675; font-size: 12px; }
.empty-panel p { max-width: 340px; margin: 4px 0 0; color: #71859b; font-size: 11px; line-height: 1.55; }
.empty-glyph { display: grid; width: 37px; height: 37px; place-items: center; border-radius: 12px; color: #5380ab; background: #e8f2fd; }
.empty-glyph svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.data-table-wrap { width: 100%; overflow-x: auto; border: 1px solid rgba(106,145,194,.15); border-radius: 12px; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; }
.data-table th { padding: 9px 10px; color: #60768f; background: #f3f7fc; font-size: 10px; font-weight: 700; white-space: nowrap; }
.data-table td { padding: 9px 10px; border-top: 1px solid rgba(106,145,194,.13); color: #3f5972; font-size: 10px; vertical-align: top; }
.data-table td:first-child { max-width: 280px; color: #294968; font-weight: 640; }
.data-table td a { color: #1764a9; text-underline-offset: 2px; }
.data-table .numeric { font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-note { margin: 9px 0 0; color: #6d8196; font-size: 10px; line-height: 1.5; }
.theme-list { display: grid; gap: 9px; }
.theme-row { display: grid; grid-template-columns: minmax(95px,.8fr) minmax(100px,1.4fr) 52px; align-items: center; gap: 9px; }
.theme-name { color: #3d5873; font-size: 10px; font-weight: 680; }
.theme-bar { height: 8px; overflow: hidden; border-radius: 99px; background: #edf2f7; }
.theme-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg,#78b8ef,#287ac2); }
.theme-count { color: #486784; text-align: right; font-size: 10px; font-variant-numeric: tabular-nums; }
.quote-list { display: grid; gap: 7px; margin-top: 13px; }
.quote-item { padding: 10px 11px; border: 1px solid rgba(106,145,194,.15); border-radius: 11px; color: #465f79; background: rgba(246,250,255,.7); font-size: 10px; line-height: 1.55; }
.quote-item footer { margin-top: 5px; color: #788da2; font-size: 9px; }
.hypothesis-box { padding: 15px; border: 1px solid rgba(97,148,206,.25); border-radius: 15px; background: linear-gradient(145deg,rgba(240,247,255,.95),rgba(231,241,255,.66)); }
.hypothesis-box h4 { margin: 0; color: #1d4e7c; font-size: 13px; font-weight: 730; }
.hypothesis-box > p { margin: 7px 0 0; color: #405f7f; font-size: 11px; line-height: 1.65; }
.evidence-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.evidence-chip { display: inline-flex; min-height: 23px; align-items: center; padding: 0 7px; border: 1px solid rgba(90,140,197,.16); border-radius: 7px; color: #456888; background: rgba(255,255,255,.7); font-size: 9px; }
.validation-list { display: grid; gap: 8px; margin: 13px 0 0; padding: 0; list-style: none; }
.validation-list li { display: grid; grid-template-columns: 22px minmax(0,1fr); gap: 8px; color: #536b84; font-size: 11px; line-height: 1.55; }
.validation-list .list-no { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 7px; color: #245e92; background: #e5f1ff; font-size: 10px; font-weight: 740; }
.method-note { padding-top: 12px; border-top: 1px solid rgba(106,145,194,.16); color: #6c8197; font-size: 10px; line-height: 1.6; }
.agent-layout { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(270px,.85fr); gap: 15px; align-items: start; }
.agent-stage { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.agent-stage li { position: relative; display: grid; grid-template-columns: 33px minmax(0,1fr) auto; align-items: start; gap: 11px; min-height: 69px; padding: 10px 0; }
.agent-stage li:not(:last-child)::after { position: absolute; top: 41px; bottom: -5px; left: 15px; width: 1px; background: rgba(94,143,198,.2); content: ""; }
.agent-step-number { position: relative; z-index: 1; display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid rgba(106,145,194,.27); border-radius: 50%; color: #47739c; background: #f1f6fc; font-size: 10px; font-weight: 740; }
.agent-stage li.is-complete .agent-step-number { border-color: #82bda6; color: white; background: #31876d; }
.agent-stage strong { display: block; color: #294966; font-size: 12px; font-weight: 700; }
.agent-stage p { margin: 3px 0 0; color: #6a8097; font-size: 10px; line-height: 1.5; }
.agent-stage .stage-result { padding-top: 4px; color: #687f97; font-size: 9px; text-align: right; white-space: nowrap; }
.agent-hero { padding: 19px; border: 1px solid rgba(255,255,255,.55); border-radius: 19px; color: white; background: linear-gradient(145deg,#102d52,#174879); box-shadow: var(--shadow-md),inset 0 1px rgba(255,255,255,.16); }
.agent-hero h2 { margin: 0; font-size: 18px; font-weight: 720; }
.agent-hero p { margin: 7px 0 0; color: #d1e2f5; font-size: 11px; line-height: 1.6; }
.agent-hero .button { width: 100%; margin-top: 14px; border-color: rgba(255,255,255,.5); color: #133b64; background: #e8f3ff; box-shadow: none; }
.agent-hero .button:hover { background: #fff; }
.external-panel { margin-top: 15px; }
.external-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.skill-list { display: grid; gap: 8px; margin-top: 13px; }
.skill-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(106,145,194,.15); }
.skill-row strong { display: block; color: #315271; font-size: 11px; }
.skill-row p { margin: 3px 0 0; color: #6a8096; font-size: 10px; line-height: 1.5; }
.skill-state { flex: 0 0 auto; padding: 4px 7px; border-radius: 7px; color: #687d93; background: #f0f4f8; font-size: 9px; font-weight: 690; }
.archive-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-note { margin-top: 17px; padding: 12px 14px; border: 1px solid rgba(106,145,194,.14); border-radius: 12px; color: #667d96; background: rgba(248,251,255,.59); font-size: 10px; line-height: 1.6; }
.empty-workspace { display: grid; min-height: 330px; padding: 30px; place-items: center; border: 1px dashed rgba(106,145,194,.3); border-radius: 19px; background: rgba(255,255,255,.56); text-align: center; }
.empty-workspace .empty-glyph { width: 45px; height: 45px; }
.empty-workspace h2 { margin: 13px 0 5px; color: #244665; font-size: 17px; }
.empty-workspace p { max-width: 440px; margin: 0; color: #687e95; font-size: 12px; line-height: 1.6; }
.empty-workspace .button { margin-top: 15px; }
.dialog { width: min(590px, calc(100% - 28px)); max-height: min(84vh,760px); padding: 0; overflow: auto; border: 1px solid rgba(117,157,205,.35); border-radius: 21px; color: var(--ink); background: rgba(250,252,255,.97); box-shadow: 0 22px 65px rgba(8,34,72,.23),inset 0 1px rgba(255,255,255,.95); }
.dialog::backdrop { background: rgba(10,28,52,.42); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 21px 15px; border-bottom: 1px solid rgba(106,145,194,.17); }
.dialog-head h2 { margin: 0; color: #17395d; font-size: 18px; font-weight: 740; letter-spacing: -.025em; }
.dialog-head p { margin: 5px 0 0; color: #607792; font-size: 11px; line-height: 1.55; }
.icon-button { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(106,145,194,.22); border-radius: 10px; color: #526d89; background: white; font-size: 20px; line-height: 1; cursor: pointer; }
.dialog-body { display: grid; gap: 13px; padding: 18px 21px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 0 21px 20px; }
.boundary-item { display: grid; grid-template-columns: 24px minmax(0,1fr); gap: 9px; }
.boundary-mark { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 8px; color: #246d55; background: #e7f5ee; font-size: 11px; font-weight: 760; }
.boundary-mark.warn { color: #8a6325; background: #fff3d7; }
.boundary-item strong { color: #274968; font-size: 12px; }
.boundary-item p { margin: 3px 0 0; color: #5c738c; font-size: 11px; line-height: 1.6; }
.mapping-field { display: grid; grid-template-columns: minmax(130px,.85fr) minmax(0,1.15fr); align-items: center; gap: 12px; }
.mapping-field label { color: #385a79; font-size: 11px; font-weight: 680; }
.mapping-field .mapping-select { min-height: 38px; font-size: 11px; }
.preview-note { padding: 10px 11px; border-radius: 10px; color: #59718b; background: #edf4fc; font-size: 10px; line-height: 1.5; }
.prompt-box { width: 100%; min-height: 190px; resize: vertical; padding: 11px 12px; border: 1px solid rgba(106,145,194,.26); border-radius: 12px; color: #33536f; background: #f4f8fd; font-size: 11px; line-height: 1.55; }
.connect-steps { padding: 12px 13px; border-radius: 12px; color: #4f6881; background: #eef5fd; font-size: 11px; }
.connect-steps strong { color: #2a4e70; }
.connect-steps ol { display: grid; gap: 5px; margin: 7px 0 0; padding-left: 19px; }
.toast { position: fixed; z-index: 100; right: 22px; bottom: 22px; max-width: min(430px,calc(100% - 44px)); padding: 12px 15px; transform: translateY(12px); border: 1px solid rgba(255,255,255,.35); border-radius: 13px; color: white; background: rgba(18,55,93,.95); box-shadow: 0 11px 30px rgba(8,34,72,.22); font-size: 12px; line-height: 1.5; opacity: 0; pointer-events: none; transition: opacity 180ms ease,transform 180ms ease; }
.toast.is-visible { transform: translateY(0); opacity: 1; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; }
.text-center { text-align: center; }
@media (max-width: 1120px) {
  .sidebar { width: 220px; }
  .main-column { margin-left: 220px; }
  .workspace-layout { grid-template-columns: minmax(0,1.3fr) minmax(255px,.7fr); }
  .hero-form { grid-template-columns: minmax(150px,1fr) minmax(120px,.7fr); }
  .hero-form .button { grid-column: 1/-1; justify-self: start; }
  .import-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 820px) {
  .sidebar { width: 262px; transform: translateX(-102%); transition: transform 210ms cubic-bezier(.2,.75,.2,1); box-shadow: var(--shadow-md); }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar-scrim.is-open { position: fixed; z-index: 35; inset: 0; display: block; background: rgba(10,29,52,.34); }
  .main-column { margin-left: 0; }
  .mobile-menu { display: grid; }
  .workspace-layout, .results-top, .agent-layout { grid-template-columns: 1fr; }
  .side-summary { min-height: auto; }
}
@media (max-width: 620px) {
  body { font-size: 14px; }
  .topbar { height: 59px; padding: 0 14px; }
  .breadcrumb { gap: 7px; font-size: 11px; }
  .privacy-chip { min-height: 29px; padding: 0 8px; font-size: 10px; }
  .privacy-chip svg { width: 12px; height: 12px; }
  .topbar-help { width: 33px; height: 33px; }
  .topbar-left, .topbar-actions { gap: 8px; }
  .content { padding: 23px 14px 45px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 18px; }
  .page-heading h1 { font-size: 27px; }
  .page-heading p { font-size: 12px; }
  .workspace-hero { min-height: 0; padding: 22px 18px; border-radius: 19px; }
  .workspace-hero h2 { font-size: 27px; }
  .workspace-hero > p { font-size: 12px; }
  .hero-form { grid-template-columns: 1fr; gap: 10px; }
  .hero-form .button { grid-column: auto; justify-self: stretch; }
  .side-summary, .panel-pad { padding: 17px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 8px; margin-top: 25px; }
  .steps-strip { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .step-card { min-height: 118px; padding: 12px; }
  .guide-grid { grid-template-columns: 1fr; }
  .import-grid { grid-template-columns: 1fr; }
  .import-card .import-desc { min-height: 0; }
  .import-footer { align-items: flex-start; flex-direction: column; }
  .import-footer .button { width: 100%; }
  .data-steps { grid-template-columns: 1fr; gap: 2px; }
  .data-step { padding: 10px 11px; }
  .analysis-grid { grid-template-columns: 1fr; }
  .analysis-card.wide { grid-column: auto; }
  .analysis-card { padding: 16px; }
  .metric-strip { gap: 6px; }
  .metric-box { padding: 9px; }
  .metric-box strong { font-size: 16px; }
  .results-top { gap: 10px; }
  .result-summary { padding: 18px; }
  .result-summary h2 { font-size: 20px; }
  .theme-row { grid-template-columns: minmax(85px,.85fr) minmax(60px,1.2fr) 42px; gap: 7px; }
  .agent-stage li { grid-template-columns: 31px minmax(0,1fr); }
  .agent-stage .stage-result { grid-column: 2; padding-top: 0; text-align: left; }
  .mapping-field { grid-template-columns: 1fr; gap: 5px; }
  .dialog-head { padding: 17px 16px 13px; }
  .dialog-body { padding: 15px 16px; }
  .dialog-actions { padding: 0 16px 16px; }
  .dialog-actions .button { flex: 1; }
  .toast { right: 14px; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
