:root {
  color-scheme: light;
  --ink: #27252e; --muted: #716a7b; --nav: #18191e; --nav-muted: #acadb7;
  --purple: #7152dc; --purple-dark: #5d3bc8; --purple-soft: #f0ecfc;
  --line: #e8e7ed; --paper: #fff; --canvas: #f6f6f9;
  --green: #237351; --soft-green: #eaf6ef; --amber: #895b13; --soft-amber: #fff4df;
  --radius: 16px;
  font: 400 16px/1.5 'Segoe UI Variable', 'Segoe UI', system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button { cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: default; opacity: .55; }
button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid #a790f2; outline-offset: 3px; }
[hidden] { display: none !important; }
.icon { width: 19px; height: 19px; flex: 0 0 auto; vertical-align: middle; }
.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 50; background: var(--paper); padding: .75rem; border-radius: 8px; color: var(--purple); }
.skip-link:focus { top: 1rem; }
.app-shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--nav); color: #fff; padding: 30px 16px 20px; position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; min-height: 560px; border-right: 1px solid #292a31; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 650; font-size: 1.375rem; letter-spacing: .045em; padding: 0 12px 28px; }
.brand > div > span { display: block; font-size: .75rem; color: var(--nav-muted); font-weight: 400; margin-top: 1px; letter-spacing: .015em; }
.brand-mark { width: 42px; height: 42px; border-radius: 13px; background: #8062ee; display: grid; place-items: center; flex-shrink: 0; font-size: 1.7rem; font-weight: 500; letter-spacing: -.1em; padding-right: 3px; box-shadow: inset 0 1px 0 #ffffff35, 0 3px 12px #0002; }
.workspace-label { display: flex; align-items: center; gap: 10px; color: #e0ddec; border: 1px solid #393740; background: #25242d; padding: 12px; margin: 0 0 30px; border-radius: 10px; font-size: .875rem; }
.workspace-label-icon { color: #bda9ff; font-size: 1.15rem; }
.sidebar-heading { display: flex; justify-content: space-between; align-items: center; padding: 0 12px 13px; font-size: .75rem; letter-spacing: .12em; color: #9695a1; font-weight: 600; }
.sidebar-heading > span { font-size: .75rem; letter-spacing: 0; color: #c6c4d0; border: 1px solid #41404a; border-radius: 5px; min-width: 24px; text-align: center; padding: 0 4px; }
#navigation { min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #46424f transparent; padding: 2px; margin: 0 -2px; }
.nav-group { margin: 0 0 7px; }
.nav-group > summary { display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; list-style: none; color: #c3c2cc; font-size: .875rem; font-weight: 500; border-radius: 8px; }
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary:hover { background: #25262e; color: #fff; }
.nav-group > summary > .icon:first-child { width: 17px; height: 17px; color: #a09ead; }
.group-count { margin-left: auto; color: #a09cab; font-size: .75rem; }
.nav-chevron { width: 14px; height: 14px; color: #94909f; transform: rotate(-90deg); }
.nav-group[open] .nav-chevron { transform: rotate(0); }
.nav-items { padding: 3px 0 5px; }
.nav-item { width: 100%; border: 0; background: transparent; color: var(--nav-muted); padding: 10px 12px 10px 20px; text-align: left; border-radius: 8px; display: flex; align-items: center; gap: 11px; font-size: .875rem; line-height: 1.4; min-height: 41px; margin-bottom: 3px; position: relative; }
.nav-item:hover { background: #25262f; color: #fff; }
.nav-item[aria-current="page"] { background: #332a4e; color: #d8c9ff; font-weight: 550; }
.nav-item[aria-current="page"]::before { position: absolute; content: ''; left: 0; height: 17px; width: 3px; border-radius: 2px; background: #ac91ff; }
.nav-item .icon { width: 17px; height: 17px; opacity: .9; }
.sidebar-note { margin: auto 12px 0; padding-top: 26px; color: var(--nav-muted); }
.sidebar-note-label { font-size: .75rem; letter-spacing: .07em; color: #9993a5; }
.sidebar-note p { font-size: .875rem; color: #d4d1dd; line-height: 1.7; margin: 9px 0 13px; }
.sidebar-note-caption { font-size: .75rem; color: #a39bab; display: block; padding-top: 16px; border-top: 1px solid #313039; }
main { min-width: 0; }
.topbar { min-height: 68px; border-bottom: 1px solid var(--line); background: #fff; padding: 16px 38px; display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-size: .8125rem; }
.breadcrumb-wrap { display: flex; gap: 13px; align-items: center; flex-wrap: wrap; min-width: 0; color: #53515f; }
.breadcrumb-root { color: #797280; }
.breadcrumb-divider { color: #aca5b6; }
#breadcrumb { overflow-wrap: anywhere; }
.simulation-badge { display: inline-flex; align-items: center; gap: 6px; color: #7559bd; background: #f1edfb; border: 1px solid #e6ddf7; padding: 5px 9px; border-radius: 6px; font-size: .75rem; font-weight: 550; letter-spacing: .03em; }
.simulation-badge .icon { width: 14px; height: 14px; }
.workspace { padding: 30px 38px 28px; max-width: 1500px; margin: 0 auto; }
.page-heading { display: flex; gap: 24px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.page-heading-copy { min-width: 0; }
.eyebrow { display: inline-flex; gap: 7px; align-items: center; font-size: .75rem; font-weight: 600; letter-spacing: .095em; color: var(--purple); text-transform: uppercase; }
.eyebrow .icon { width: 14px; height: 14px; }
h1 { font-size: 2.125rem; letter-spacing: -.04em; line-height: 1.18; margin: 9px 0 10px; font-weight: 650; }
.page-heading p { margin: 0; color: var(--muted); max-width: 700px; line-height: 1.65; }
h1, h2, h3 { overflow-wrap: anywhere; }
.button { border: 1px solid transparent; border-radius: 9px; padding: 11px 16px; min-height: 44px; max-width: 100%; font-weight: 550; font-size: .875rem; display: inline-flex; justify-content: center; align-items: center; gap: 9px; line-height: 1.45; }
.button.primary { background: var(--purple); color: #fff; box-shadow: 0 3px 7px #7152dc20, inset 0 1px 0 #ffffff20; }
.button.primary:hover:not(:disabled) { background: var(--purple-dark); box-shadow: 0 4px 12px #7152dc35; }
.button.secondary { background: #fff; color: #666371; border: 1px solid #dedbe6; flex-shrink: 0; box-shadow: 0 1px 2px #24242d03; }
.button.secondary:hover:not(:disabled) { background: #f7f4ff; border-color: #c9bcec; color: var(--purple-dark); }
.button.secondary .icon { width: 16px; height: 16px; }
.button.small { padding: 8px 12px; min-height: 38px; }
.execution-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 26px; overflow: hidden; box-shadow: 0 2px 4px #27203303; }
.pipeline { padding: 23px 24px; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0; border-bottom: 1px solid #eeedf2; }
.pipeline li { display: flex; align-items: center; gap: 10px; font-size: .875rem; color: #77707f; min-width: 0; position: relative; }
.pipeline li:not(:last-child)::after { content: ''; position: absolute; top: 15px; right: -7px; width: 22px; height: 1px; background: #ddd9e7; }
.pipeline li > span:last-child { min-width: 0; overflow-wrap: anywhere; padding-right: 16px; }
.step-number { display: grid; place-items: center; width: 31px; height: 31px; flex-shrink: 0; font-size: .8125rem; font-weight: 500; border-radius: 50%; border: 1px solid #dedbe5; color: #7a7182; background: #faf9fc; }
.step-number .icon { width: 15px; height: 15px; }
.pipeline .current { color: #53389c; font-weight: 600; }
.pipeline .current .step-number { background: var(--purple); color: #fff; border-color: var(--purple); box-shadow: 0 0 0 4px #f1edfc; }
.pipeline .done { color: #655784; }
.pipeline .done .step-number { background: #efebf9; border-color: #e2d8f4; color: #7658b7; }
.actionbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 22px 24px 0; }
.counts { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.count-item { display: flex; align-items: center; gap: 10px; min-width: 0; }
.count-item:not(:last-child) { padding-right: 22px; border-right: 1px solid #ece9f1; }
.count-item b { color: #47434f; font-size: 1.5rem; font-weight: 550; line-height: 1.2; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.count-item > span { font-size: .8125rem; color: #776e80; }
.count-item.approved b { color: var(--green); }
.announcement { font-size: .8125rem; color: #776c82; margin: 0; padding: 12px 24px 20px; min-height: 48px; overflow-wrap: anywhere; }
.workbench { display: grid; grid-template-columns: minmax(0, 1.07fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.panel { min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 4px #27203303; }
.panel-header { display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; padding: 17px 20px; border-bottom: 1px solid var(--line); }
h2 { margin: 0; font-size: .9375rem; font-weight: 600; letter-spacing: -.015em; }
h3 { margin: 0; font-size: 1.1rem; font-weight: 600; }
.view-tabs { display: flex; gap: 3px; padding: 3px; background: #f3f2f6; border: 1px solid #eeedf2; border-radius: 8px; max-width: 100%; flex-wrap: wrap; }
.view-tabs button { border: 0; background: transparent; border-radius: 5px; font-size: .875rem; min-height: 32px; padding: 4px 10px; color: #776981; }
.view-tabs button[aria-selected="true"] { background: #fff; color: #695095; box-shadow: 0 1px 4px #3c27481a; }
.view-tabs span { display: inline-grid; place-items: center; font-size: .75rem; margin-left: 3px; min-width: 17px; height: 17px; border-radius: 4px; background: #e8e3f2; color: #746282; }
.record { display: flex; gap: 12px; align-items: center; width: 100%; border: 0; border-bottom: 1px solid #eeedf2; background: transparent; text-align: left; padding: 16px 20px; color: var(--ink); position: relative; }
.record:last-child { border-bottom: 0; }
.record:hover { background: #faf9ff; }
.record[aria-pressed="true"] { background: #f6f3fd; box-shadow: inset 3px 0 #9174e6; }
.record-icon { width: 36px; height: 40px; display: grid; place-items: center; border-radius: 9px; background: #f4f3f7; border: 1px solid #e9e6ee; color: #9690a4; flex-shrink: 0; }
.record-icon .icon { width: 18px; height: 18px; }
.record[aria-pressed="true"] .record-icon { background: #eee7fc; border-color: #e0d4f5; color: #8c6acb; }
.record-info { min-width: 0; flex: 1; }
.record-title { display: block; font-size: .9375rem; font-weight: 550; letter-spacing: -.012em; overflow-wrap: anywhere; }
.record-subtitle { display: block; font-size: .75rem; color: #797080; margin-top: 3px; overflow-wrap: anywhere; }
.record-status { flex: 0 1 auto; min-width: 0; text-align: right; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; max-width: 45%; }
.status { display: inline-block; border-radius: 5px; padding: 3px 7px; font-size: .875rem; line-height: 1.25; font-weight: 450; white-space: normal; background: #f2f1f5; color: #756a80; }
.status.ready { background: #ede9fb; color: #7552b1; }
.status.incomplete, .status.flagged { background: var(--soft-amber); color: var(--amber); }
.status.duplicate { background: #f8eaf0; color: #965271; }
.status.done { background: var(--soft-green); color: var(--green); }
.record-value { font-size: .8125rem; font-variant-numeric: tabular-nums; color: #777081; }
.detail-top { display: flex; align-items: center; gap: 11px; padding: 21px 22px; border-bottom: 1px solid var(--line); }
.detail-top-icon { display: grid; place-items: center; width: 37px; height: 37px; background: #f3f0fb; border: 1px solid #ebe4f8; border-radius: 10px; color: #9b81c7; flex: 0 0 auto; }
.detail-top-copy { flex: 1; min-width: 0; }
.detail-meta { font-size: .75rem; color: #796c84; margin-top: 4px; overflow-wrap: anywhere; }
.detail-content { padding: 22px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 18px; margin: 0 0 24px; }
.fields dt { font-size: .8125rem; color: #786982; margin-bottom: 5px; }
.fields dd { margin: 0; font-size: 1rem; color: #4a414f; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.fields dd.pending { color: #906122; font-size: .875rem; }
.span-two { grid-column: 1 / -1; }
.notice { display: flex; align-items: flex-start; gap: 9px; background: var(--soft-amber); color: #8a611c; padding: 13px 14px; border: 1px solid #f1e3c5; border-radius: 9px; font-size: .875rem; line-height: 1.6; margin-bottom: 16px; overflow-wrap: anywhere; }
.notice .icon { width: 17px; height: 17px; margin-top: 3px; }
.notice > span { min-width: 0; }
.notice.success { background: var(--soft-green); color: var(--green); border-color: #d7eadf; }
.notice.neutral { background: #f3f0fc; color: #786299; border-color: #e5ddf5; }
.correction { margin-top: 16px; }
.correction label { display: block; font-size: .875rem; font-weight: 500; margin-bottom: 7px; }
.correction input { width: 100%; padding: 10px 12px; border: 1px solid #d1c8df; border-radius: 8px; background: #fff; color: var(--ink); margin-bottom: 12px; min-height: 44px; }
.field-help { font-size: .875rem; color: #786783; line-height: 1.65; margin-bottom: 16px; overflow-wrap: anywhere; }
.validation-error { color: #a44265; font-size: .875rem; margin-top: 10px; }
.source { margin-top: 23px; border-top: 1px solid var(--line); padding-top: 17px; }
.source summary { cursor: pointer; font-size: .875rem; color: #7b628f; font-weight: 500; }
.source-paper { margin-top: 17px; border: 1px solid #e7e1ec; border-radius: 10px; overflow: hidden; background: #fdfcfe; box-shadow: 0 5px 15px #49325805; }
.source-paper-header { display: flex; align-items: center; gap: 8px; color: #7e6a8f; font-size: .75rem; padding: 12px 16px; border-bottom: 1px solid #eee9f2; background: #faf8fc; }
.source-paper-header .icon { width: 15px; height: 15px; }
.source-paper-header .source-type { margin-left: auto; font-size: .75rem; color: #7c6d8b; letter-spacing: .05em; }
.source pre { white-space: pre-wrap; overflow-wrap: anywhere; font: 400 .875rem/1.9 'Segoe UI Variable', 'Segoe UI', system-ui, sans-serif; color: #746780; padding: 21px 19px 25px; margin: 0; }
.empty { padding: 36px 26px; color: #796586; font-size: 1rem; text-align: center; }
.empty > .icon { display: block; width: 35px; height: 35px; margin: 0 auto 14px; color: #aa95c7; }
.empty p { margin: 0; }
.output-summary { display: flex; gap: 9px; align-items: center; padding: 15px 20px; background: var(--soft-green); color: var(--green); font-size: .875rem; border-bottom: 1px solid #dcece3; }
.output-summary .icon { width: 17px; height: 17px; }
.output-row { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.output-row:last-child { border-bottom: 0; }
.output-title { display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: .9375rem; font-weight: 550; }
.output-title > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.output-description { font-size: .875rem; color: #796a86; margin-top: 9px; overflow-wrap: anywhere; line-height: 1.6; }
.output-path { font-size: .75rem; color: #7c6b88; margin-top: 7px; overflow-wrap: anywhere; }
.simulation-note { display: flex; gap: 9px; align-items: flex-start; font-size: .75rem; color: #7b6b85; margin-top: 22px; max-width: 940px; line-height: 1.7; }
.simulation-note-mark { border: 1px solid #b6afc0; border-radius: 50%; width: 14px; height: 14px; flex-shrink: 0; line-height: 12px; text-align: center; font-size: .75rem; margin-top: 3px; }
.mobile-picker { display: none; }
noscript { display: block; padding: 24px; }
@media (min-width: 1700px) { .workspace { padding-top: 40px; } }
@media (max-width: 1250px) {
  .app-shell { grid-template-columns: 238px minmax(0, 1fr); }
  .workspace { padding: 28px 26px; }
  .topbar { padding: 16px 26px; }
  .page-heading { align-items: flex-start; }
  .page-heading .button { margin-top: 27px; }
  .counts { gap: 14px; }
  .count-item:not(:last-child) { padding-right: 14px; }
  .record { padding: 15px 16px; gap: 9px; }
  .record-icon { width: 30px; height: 36px; }
  .workbench { gap: 18px; }
}
@media (max-width: 1150px) {
  .workbench { grid-template-columns: 1fr; }
  .pipeline { gap: 14px; padding: 22px 20px; }
  .pipeline li { gap: 8px; font-size: .875rem; }
  .pipeline li:not(:last-child)::after { width: 15px; }
  .actionbar { gap: 18px; padding: 20px 20px 0; }
  .announcement { padding: 12px 20px 20px; }
}
@media (max-width: 850px) {
  .app-shell { grid-template-columns: 215px minmax(0, 1fr); }
  .sidebar { padding: 24px 12px 20px; }
  .brand { padding: 0 8px 24px; }
  .workspace-label { padding: 10px; font-size: .875rem; }
  .nav-item { padding-left: 15px; }
  .workspace { padding: 24px; }
  .topbar { padding: 15px 24px; }
  .breadcrumb-root, .breadcrumb-divider { display: none; }
  .page-heading { flex-wrap: wrap; gap: 16px; }
  .page-heading .button { margin-top: 0; }
  h1 { font-size: 1.875rem; }
  .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .pipeline li:nth-child(2)::after { display: none; }
}
@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { display: none; }
  .topbar { min-height: 62px; padding: 14px 20px; }
  .breadcrumb-wrap { font-size: .75rem; }
  .simulation-badge { padding: 4px 7px; }
  .mobile-picker { display: block; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 20px 16px; }
  .mobile-picker label { display: block; font-size: .75rem; color: #776382; margin-bottom: 7px; }
  .mobile-picker select { width: 100%; border: 1px solid #ded6e9; border-radius: 9px; padding: 10px 12px; background: #faf8fd; color: #685376; min-height: 44px; font-size: 1rem; }
  .workspace { padding: 26px 20px; }
  .page-heading { margin-bottom: 23px; }
  h1 { font-size: 1.875rem; }
  .page-heading p { line-height: 1.6; }
  .pipeline { grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); padding: 22px 18px; gap: 20px 15px; }
  .pipeline li::after { display: none; }
  .actionbar { align-items: flex-start; gap: 20px; padding: 20px 18px 0; }
  .actionbar > .button { width: 100%; }
  .counts { justify-content: space-between; width: 100%; gap: 12px; }
  .count-item { flex-direction: column; gap: 3px; align-items: flex-start; }
  .count-item:not(:last-child) { padding-right: 12px; border-right: 0; }
  .count-item b { font-size: 1.5rem; }
  .count-item > span { font-size: .8125rem; }
  .announcement { padding: 15px 18px 19px; }
  .execution-panel { margin-bottom: 22px; }
  .panel-header { padding: 16px; }
  .record { padding: 16px; gap: 10px; }
  .record-icon { width: 31px; height: 37px; }
  .record-status { max-width: 40%; }
  .detail-top { padding: 19px 18px; }
  .detail-content { padding: 20px 18px; }
  .fields { gap: 20px 15px; }
}
@media (max-width: 380px) {
  .workspace { padding: 24px 12px; }
  .topbar, .mobile-picker { padding-left: 12px; padding-right: 12px; }
  .record { padding: 14px 12px; gap: 8px; }
  .record-icon { display: none; }
  .detail-content { padding: 18px 14px; }
  .panel-header { padding: 14px 12px; gap: 10px; }
  .source-paper-header { padding: 10px 12px; }
  .source pre { padding: 16px 13px 20px; }
}
@media (prefers-reduced-motion: no-preference) {
  button { transition: background-color .16s ease, color .16s ease, box-shadow .16s ease; }
  .step-number, .nav-chevron { transition: background-color .18s ease, transform .18s ease; }
  .page-heading-copy { animation: enter .28s ease both; }
  .button .icon.spinning { animation: spin 1s linear infinite; }
  @keyframes enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes spin { to { transform: rotate(360deg); } }
}
