:root {
  color-scheme: light;
  --canvas: #f5f6f9;
  --surface: #fff;
  --ink: #202430;
  --muted: #626a7b;
  --line: #e2e5ee;
  --accent: #59458c;
  --hover: #493477;
  --soft: #f0ecf8;
  --danger: #af3e4d;
  --field: #dfe2ea;
  --green: #187450;
  --radius: 12px;
  font-family: Inter, Pretendard, "Segoe UI", "Malgun Gothic", sans-serif;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--canvas);
  font-variant-numeric: tabular-nums;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  accent-color: var(--accent);
}
.lot-mission { min-width: 0; }
.lot-meta { color: var(--muted); font-size: 11px; margin: 6px 0 12px; }
.lot-steps { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 4px; margin: 22px 0 0; }
.lot-steps button { flex-direction: column; align-items: flex-start; padding: 12px 10px; border-color: transparent; border-bottom: 2px solid var(--line); border-radius: 0; background: transparent; text-align: left; }
.lot-steps button span { color: var(--muted); font-weight: 500; }
.lot-steps [aria-current="step"] { background: var(--soft); border-bottom-color: var(--accent); color: var(--accent); }
.lot-stage { background: var(--surface); padding: 28px; border: 1px solid var(--line); border-top: 0; }
.lot-stage-heading { margin-bottom: 20px; }
.lot-stage-heading h2 { margin: 0; }
.lot-stage h3 { margin-top: 28px; max-width: 58ch; }
.lot-stage p { max-width: 85ch; }
.lot-stage details { border-block-end: 1px solid var(--line); padding: 14px 0; }
.lot-stage summary { cursor: pointer; font-weight: 600; padding: 5px 0; }
.lot-stage details p { margin-bottom: 4px; }
.lot-stage .lot-presenter { margin-bottom: 22px; padding: 10px 14px; background: var(--canvas); border: 0; }
.lot-presenter p { color: var(--muted); }
.lot-incident { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.lot-incident h3 { font-size: 25px; line-height: 1.5; font-weight: 650; margin-top: 12px; }
.lot-facts { display: flex; gap: 28px; margin: 24px 0; flex-wrap: wrap; }
.lot-facts dt { color: var(--muted); font-size: 11px; }
.lot-facts dd { margin: 4px 0 0; font-size: 17px; font-weight: 600; }
.lot-bar-row { display: grid; grid-template-columns: 145px 1fr 65px; gap: 12px; align-items: center; padding: 10px 0; font-size: 11px; }
.lot-bar-track { height: 14px; width: 100%; display: block; }
.lot-bar-background { fill: var(--soft); }
.lot-bar { fill: var(--accent); transform-box: fill-box; transform-origin: left; animation: lot-bar-enter .6s ease-out; }
.lot-bar-row strong { text-align: right; }
.lot-evidence summary { display: list-item; }
.lot-evidence summary span { float: right; margin-left: 12px; color: var(--muted); font-size: 11px; font-weight: 400; }
.lot-check { display: flex; align-items: flex-start; gap: 9px; margin: 14px 0; }
.lot-check input { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 3px; }
.lot-ack { margin-top: 24px; }
.lot-navigation { display: flex; gap: 14px; justify-content: space-between; align-items: center; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.lot-navigation p { margin: 0; color: var(--muted); font-size: 11px; text-align: center; }
.lot-report .report-heading p { overflow-wrap: anywhere; }
@keyframes lot-bar-enter { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .lot-bar { animation: none; } }
@media (max-width: 1000px) { .lot-steps { grid-template-columns: repeat(4,minmax(0,1fr)); } .lot-incident { grid-template-columns: 1fr; gap: 0; } }
@media (max-width: 600px) { .lot-stage { padding: 18px 14px; } .lot-steps { grid-template-columns: repeat(2,minmax(0,1fr)); } .lot-steps button { min-height: 52px; flex-direction: row; gap: 9px; align-items: center; } .lot-incident h3 { font-size: 22px; } .lot-bar-row { grid-template-columns: 100px 1fr 56px; gap: 8px; } .lot-navigation { flex-wrap: wrap; } .lot-navigation p { order: 3; width: 100%; } .lot-navigation button { max-width: 64%; } .lot-facts { gap: 20px; } }
@media print { .lot-bar { animation: none; } .lot-bar-row { break-inside: avoid; } }
* { box-sizing: border-box; }
body { margin: 0; }
::selection { background: #e1d9f2; color: var(--ink); }
:focus-visible { outline: 3px solid #a596c9; outline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 36px; padding: 7px 12px; border: 1px solid var(--field); border-radius: 7px; background: var(--surface); cursor: pointer; line-height: 1.5; font-size: 12px; font-weight: 600; touch-action: manipulation; }
button:hover { background: #f8f7fb; border-color: #c9c1dd; }
button:disabled { cursor: not-allowed; opacity: .48; }
button.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
button.primary:hover { background: var(--hover); border-color: var(--hover); }
button svg, .sidebar svg, .breadcrumb svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
input, select, textarea { width: 100%; min-width: 0; padding: 9px 11px; border: 1px solid var(--field); border-radius: 7px; background: var(--surface); caret-color: var(--accent); }
input::placeholder, textarea::placeholder { color: var(--muted); }
select { min-height: 36px; }
input[readonly] { background: #f8f9fb; color: var(--muted); }
label { display: grid; gap: 7px; font-size: 12px; font-weight: 600; }
h1,h2,h3,p { margin: 0; }
h1 { font-size: 25px; font-weight: 750; line-height: 1.4; letter-spacing: -.03em; }
h2 { font-size: 15px; line-height: 1.5; font-weight: 700; }
h3 { font-size: 14px; line-height: 1.5; font-weight: 650; }
p { max-width: 75ch; line-height: 1.7; }
p+p { margin-top: 7px; }
strong { font-weight: 650; }
a { color: var(--accent); text-underline-offset: 3px; }
.muted,.small { color: var(--muted); }
.small { font-size: 11px; }
.badge { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 5px; background: var(--soft); color: var(--accent); font-size: 11px; font-weight: 600; line-height: 1.7; white-space: nowrap; }
.skip { position: fixed; top: -100px; left: 12px; z-index: 200; padding: 10px 14px; background: #fff; }
.skip:focus { top: 10px; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 50; width: 280px; background: #fff; border-right: 1px solid var(--line); overflow: auto; overscroll-behavior: contain; }
.brand { display: flex; align-items: center; gap: 9px; height: 64px; padding: 0 24px; border-bottom: 1px solid var(--line); }
.brand strong { font-size: 19px; font-weight: 800; letter-spacing: -.035em; }
.brand strong span { color: var(--accent); }
.brand small { color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .03em; margin-top: 5px; }
.sidebar-body { display: flex; flex-direction: column; min-height: calc(100dvh - 64px); padding: 16px 15px; }
.workspace-switcher { display: flex; align-items: center; gap: 10px; padding: 11px 10px; border: 1px solid var(--line); border-radius: 9px; background: #f8f8fb; }
.workspace-switcher strong { display: block; font-size: 12px; }
.workspace-switcher small { display: block; color: var(--muted); font-size: 11px; margin-top: 1px; }
.workspace-icon { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--accent); }
.programme { display: flex; gap: 10px; align-items: center; padding: 23px 10px; }
.programme-icon { display: grid; place-items: center; width: 34px; height: 35px; background: #f5f1fd; border: 1px solid #dfd4f8; border-radius: 9px; font-size: 20px; font-weight: 500; color: var(--accent); }
.programme strong { display: block; font-size: 13px; }
.programme small { display: block; font-size: 11px; color: var(--muted); }
.programme-state { width: 6px; height: 6px; border-radius: 50%; background: #51a58a; margin-left: auto; }
.sidebar-context { background: #faf9fd; border-radius: 10px; padding: 13px 6px 8px; }
.context-label { color: var(--muted); font-size: 11px; font-weight: 600; margin: 0 9px 12px; }
.workspace-nav { display: grid; gap: 4px; }
.workspace-nav button { width: 100%; justify-content: flex-start; gap: 11px; min-height: 44px; background: transparent; border: 0; border-radius: 10px; color: var(--muted); font-size: 13px; font-weight: 600; padding: 11px 13px; }
.workspace-nav button[aria-current] { color: var(--accent); background: var(--soft); }
.workspace-nav button:hover { background: var(--soft); color: var(--accent); }
.study-navigation { margin-top: 27px; }
.study-navigation h2 { display: flex; align-items: center; gap: 7px; padding: 0 10px; color: var(--muted); font-size: 11px; }
.study-navigation h2 span { font-size: 11px; font-weight: 500; }
#study-list { margin-top: 10px; }
.study-item { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid #f0f0f5; border-radius: 0; padding: 13px 11px; background: transparent; }
.study-item strong { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; }
.study-item svg { width: 15px; height: 15px; color: var(--muted); }
.study-item span { display: block; margin: 4px 0 0 23px; font-size: 11px; font-weight: 400; color: var(--muted); }
.study-item.selected { background: #f6f3fb; border-radius: 7px; border-bottom-color: transparent; }
.study-item.selected strong,.study-item.selected svg { color: var(--accent); }
.storage-note { display: flex; gap: 9px; margin-top: auto; padding: 24px 10px 5px; color: var(--muted); }
.storage-note svg { width: 15px; height: 15px; margin-top: 3px; }
.storage-note strong { display: block; font-size: 11px; color: #555d6d; }
.storage-note p { margin-top: 4px; font-size: 11px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; margin-left: 280px; padding: 0 31px; background: #fff; border-bottom: 1px solid var(--line); }
.header-left,.breadcrumb,.header-actions { display: flex; align-items: center; min-width: 0; }
.breadcrumb { gap: 10px; font-size: 11px; white-space: nowrap; color: var(--muted); }
.breadcrumb svg { width: 12px; height: 12px; color: #a2a7b4; }
.breadcrumb strong { color: #4f4b5c; font-size: 12px; }
.header-actions { gap: 14px; flex-shrink: 0; }
#account-label { font-size: 11px; color: var(--muted); max-width: 160px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.header-actions button { white-space: nowrap; }
.user-avatar { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 50%; background: var(--soft); color: var(--accent); font-size: 11px; font-weight: 700; }
.icon-button { padding: 7px; min-width: 36px; }
#navigation-toggle,#close-navigation { display: none; }
.page-body { margin-left: 280px; min-height: calc(100dvh - 64px); display: flex; flex-direction: column; }
main { min-width: 0; padding: 28px 31px 40px; flex: 1; }
.context-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 22px; font-size: 11px; }
.save-state { display: flex; align-items: center; gap: 8px; }
.status-dot { width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: var(--green); }
#connection { color: var(--muted); font-size: 11px; text-align: right; }
.environment { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; margin: 0 0 17px; }
.environment .badge { font-size: 11px; }
.study-heading { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.study-heading p { margin-top: 12px; color: var(--muted); font-size: 12px; }
.study-heading>.badge { margin-top: 7px; }
.metadata { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; color: var(--muted); font-size: 11px; }
.tabs { display: flex; align-items: center; gap: 6px; overflow-x: auto; margin-top: 24px; padding: 1px 0 4px; }
.tabs button { flex-shrink: 0; color: #55566a; min-height: 36px; font-size: 11px; font-weight: 500; padding: 8px 13px; }
.tabs button[aria-current] { color: #fff; background: var(--accent); border-color: var(--accent); font-weight: 650; }
#content { padding-top: 24px; }
.section { margin-top: 24px; }
.section:first-child { margin-top: 0; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-heading p { color: var(--muted); font-size: 11px; margin-top: 6px; }
.panel { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.panel h3+p,.panel h2+p { margin-top: 6px; }
.metric-row { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; margin: 0 0 18px; padding: 18px 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.metric-row>div { padding: 0 20px; border-right: 1px solid var(--line); min-width: 0; }
.metric-row>div:last-child { border: 0; }
.metric-row dt { color: var(--muted); font-size: 11px; }
.metric-row dd { margin: 7px 0 0; font-size: 19px; font-weight: 650; line-height: 1.4; }
.metric-row small { font-size: 11px; font-weight: 400; color: var(--muted); margin-left: 4px; }
.split { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: 16px; }
.results-split { grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); }
.split>* { min-width: 0; }
.table-scroll { max-width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: 9px; background: #fff; cursor: grab; touch-action: pan-x pan-y; scrollbar-width: thin; scrollbar-color: #c8c2d6 #f5f6f9; }
.table-scroll.dragging { cursor: grabbing; user-select: none; }
.table-scroll::-webkit-scrollbar { height: 7px; }
.table-scroll::-webkit-scrollbar-thumb { background: #c8c2d6; border-radius: 4px; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; font-size: 12px; }
th,td { padding: 11px 13px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: #555d6d; background: #f9f9fc; font-size: 11px; font-weight: 600; }
td.number,th.number { text-align: right; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #faf9fd; }
.wide-table { min-width: 940px; }
.lot-table { min-width: 440px; }
.chart-scroll { border: 0; border-radius: 0; }
.chart { display: block; height: 190px; width: 100%; min-width: 580px; margin-top: 12px; }
.chart .axis { stroke: var(--line); }
.chart .reference { stroke: var(--muted); stroke-dasharray: 6 5; }
.chart .trace { stroke: var(--accent); fill: none; stroke-width: 2; }
.chart .point { fill: var(--accent); }
.chart text { fill: var(--muted); font-size: 13px; }
.legend { display: flex; flex-wrap: wrap; gap: 7px 18px; margin-top: 8px; color: var(--muted); font-size: 11px; }
.legend span:first-child { color: var(--accent); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.form-grid label:first-child { grid-column: 1/-1; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.actions button { flex-shrink: 0; }
.callout { padding: 12px; margin-top: 16px; background: #f7f6fb; border-radius: 8px; color: var(--muted); font-size: 11px; }
.callout strong { color: var(--ink); }
.draft-body { margin-top: 16px; }
.draft-body p,.draft-body li { font-size: 12px; }
.draft-body h3:not(:first-child) { margin-top: 20px; }
.draft-body ol { padding-left: 20px; margin: 10px 0; }
.draft-body li { padding: 4px 0; max-width: 70ch; }
.empty { display: grid; justify-items: center; padding: 40px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--muted); text-align: center; }
.empty h3 { color: var(--ink); margin-bottom: 8px; }
.empty p { font-size: 12px; }
.version-list { margin-top: 12px; background: #fff; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.version-list>.section { margin: 0; padding: 20px; }
.version-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.version-row:last-child { border-bottom: 0; }
.version-row strong { font-size: 12px; }
.version-row p { font-size: 11px; color: var(--muted); margin-top: 4px; }
.report-layout { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 16px; align-items: start; }
.report-picker { display: grid; align-content: start; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.report-picker button { display: block; min-width: 0; padding: 15px 12px; text-align: left; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 12px; font-weight: 650; }
.report-picker button:last-child { border-bottom: 0; }
.report-picker button.selected { background: var(--soft); color: var(--accent); }
.report-picker span { display: block; color: var(--muted); font-size: 11px; font-weight: 400; margin-top: 4px; }
.report-document { min-width: 0; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.report-document h2 { font-size: 22px; letter-spacing: -.025em; }
.report-document h3 { margin: 22px 0 10px; }
.report-document p { margin-top: 10px; font-size: 12px; }
.report-document .metric-row { margin: 20px 0; padding: 15px 0; border-radius: 0; border-left: 0; border-right: 0; }
.report-document .metric-row>div { padding: 0 12px; }
.report-document .metric-row>div:first-child { padding-left: 0; }
.report-document .metric-row dd { font-size: 17px; }
.report-document .metric-row dt { font-size: 11px; }
.report-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.report-toolbar .actions { margin: 0; }
.segmented { display: flex; }
.segmented button { border-radius: 0; min-width: 40px; font-size: 11px; }
.segmented button:first-child { border-radius: 6px 0 0 6px; }
.segmented button:last-child { border-radius: 0 6px 6px 0; }
.segmented button[aria-pressed=true] { color: #fff; background: var(--accent); border-color: var(--accent); }
.checksum { margin-top: 20px; font-family: Consolas,monospace; font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.report-figures { margin: 26px 0 30px; }
.report-figures>h3 { margin-bottom: 5px; }
.report-document .report-figures>p { margin-top: 4px; color: var(--muted); font-size: 11px; }
.report-figure { margin: 20px 0 0; padding: 17px 18px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; break-inside: avoid; }
.report-figure figcaption strong { display: block; font-size: 13px; color: var(--ink); }
.report-figure figcaption>span { display: block; max-width: 75ch; margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.figure-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 20px; margin: 13px 0 4px; color: var(--muted); font-size: 11px; }
.figure-legend>span { display: inline-flex; align-items: center; gap: 7px; }
.figure-key { display: inline-block; width: 21px; height: 0; border-top: 2px solid var(--accent); }
.figure-key.dashed { border-color: var(--muted); border-top-style: dashed; }
.figure-key.point { width: 8px; height: 8px; border: 0; border-radius: 50%; background: var(--accent); }
.figure-key.errorbar { width: 19px; height: 9px; border: 1px solid var(--muted); border-width: 0 1px; background: linear-gradient(var(--muted),var(--muted)) center/100% 1px no-repeat; }
.figure-key.filled,.figure-key.outlined { width: 12px; height: 12px; border: 1px solid var(--accent); background: var(--accent); }
.figure-key.outlined { background: var(--soft); border-style: dashed; }
.report-chart-scroll { border: 0; border-radius: 0; }
.report-chart { display: block; width: 100%; height: auto; min-width: 680px; aspect-ratio: 760/320; }
.report-chart text { fill: var(--muted); font-family: inherit; font-size: 14px; font-weight: 400; }
.report-chart .figure-axis-label { font-size: 14px; }
.report-chart .figure-group-label { font-size: 13px; }
.report-chart .figure-data-label { fill: var(--ink); font-size: 14px; font-weight: 600; }
.figure-grid { stroke: var(--line); stroke-width: 1; }
.figure-axis { stroke: #a2a7b4; stroke-width: 1; }
.figure-lot-shade { fill: #faf9fd; }
.figure-measured { fill: none; stroke: var(--accent); stroke-width: 2.2; }
.figure-reference { fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-dasharray: 7 5; }
.figure-point { fill: var(--accent); stroke: #fff; stroke-width: 1.5; }
.figure-errorbar { fill: none; stroke: var(--muted); stroke-width: 2; }
.figure-bar.mae { fill: var(--accent); }
.figure-bar.rmse { fill: var(--soft); stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 4 2; }
@media(max-width:760px) { .report-figure { padding: 14px 12px 10px; } .report-figure figcaption strong { font-size: 12px; } }
@media print { .report-figure { border-radius: 0; padding: 14px 10px 8px; } .report-chart { min-width: 0; width: 100%; } .report-chart-scroll { overflow: visible; } .report-figure figcaption strong { font-size: 12px; } .report-figures { break-inside: auto; } }
@page { size: A4; margin: 16mm 14mm; }
@media print { body:has(.report-document) .study-heading,body:has(.report-document) #content>.section>.section-heading { display: none; } .report-document table { font-size: 11px; } .report-document th,.report-document td { padding: 6px; } }
@media print { .report-document { break-inside: auto; } .report-document h3 { break-after: avoid; } .report-document table,.report-document .table-scroll,.report-document tr { break-inside: avoid; } }
@media print { .skip { display: none!important; } html,body,.page-body { background: #fff!important; } .page-body { min-height: 0; } }
.message-preview { max-width: 440px; padding: 20px; margin: 18px 0; border: 1px solid #e8e2f1; background: var(--soft); border-radius: 12px; font-size: 12px; white-space: pre-wrap; line-height: 1.9; }
.link-output { font-family: Consolas,monospace; font-size: 11px; overflow-wrap: anywhere; }
.auth-panel { padding: 22px 26px; margin: 24px 31px 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.auth-panel>div { margin-bottom: 18px; }
.auth-panel p { font-size: 12px; color: var(--muted); margin-top: 6px; }
.auth-panel form { display: flex; align-items: flex-end; gap: 12px; max-width: 950px; }
.auth-panel label { flex: 1; }
.auth-panel .error { color: var(--danger); margin-top: 12px; }
.notice { position: fixed; z-index: 70; right: 22px; top: 80px; display: flex; align-items: flex-start; gap: 18px; max-width: min(430px,calc(100vw - 32px)); padding: 15px 16px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px #20243024; font-size: 12px; }
.notice.error { color: var(--danger); }
.notice button { padding: 0; min-height: 24px; min-width: 24px; border: 0; background: transparent; color: var(--muted); }
.notice button svg { width: 15px; height: 15px; }
footer { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 14px; padding: 17px 31px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
footer strong { font-size: 11px; }
.error { color: var(--danger); }
[hidden] { display: none!important; }
@media(min-width:1600px) { main { padding-right: 46px; padding-left: 46px; } }
@media(max-width:1250px) { .split { grid-template-columns: minmax(0,1fr); } .report-layout { grid-template-columns: 190px minmax(0,1fr); } .report-document .metric-row { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 18px; } .report-document .metric-row>div:nth-child(2) { border-right: 0; } .report-document .metric-row>div:nth-child(3) { padding-left: 0; } }
@media(max-width:1050px) { .sidebar { width: 248px; } .site-header,.page-body { margin-left: 248px; } .site-header { padding: 0 22px; } .brand { padding: 0 18px; gap: 5px; } .brand strong { font-size: 18px; } .brand small { font-size: 11px; } main { padding: 24px 22px 32px; } .auth-panel { margin: 22px 22px 0; } .breadcrumb { gap: 7px; } .header-actions { gap: 8px; } #account-label { max-width: 95px; } .report-layout { grid-template-columns: minmax(0,1fr); } .report-picker { display: flex; overflow-x: auto; } .report-picker button { min-width: 155px; border-right: 1px solid var(--line); border-bottom: 0; } .metric-row { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 18px; } .metric-row>div:nth-child(2) { border-right: 0; } }
@media(max-width:760px) { .sidebar { width: 280px; max-width: calc(100vw - 40px); transform: translateX(-100%); visibility: hidden; z-index: 100; } .sidebar.is-open { transform: translateX(0); visibility: visible; } .site-header,.page-body { margin-left: 0; } .site-header { height: 60px; padding: 0 16px; } .header-left { gap: 12px; } .header-actions { gap: 9px; } .header-actions button { min-height: 34px; padding: 7px 10px; } #navigation-toggle,#close-navigation { display: inline-flex; } #close-navigation { margin-left: auto; border: 0; } .brand { gap: 6px; height: 60px; padding: 0 16px; } .brand strong { font-size: 18px; } .brand small { display: none; } .breadcrumb>span:first-child,.breadcrumb>svg,.breadcrumb>strong { display: none; } #breadcrumb-view { color: var(--ink); font-size: 13px; font-weight: 650; } .user-avatar { display: none; } #account-label { max-width: 100px; font-size: 11px; } .page-body { min-height: calc(100dvh - 60px); } main { padding: 20px 16px 30px; } .context-toolbar { padding: 10px 12px; min-height: 47px; margin-bottom: 20px; gap: 10px; } .save-state { font-size: 11px; gap: 6px; } #connection { max-width: 115px; font-size: 11px; } .environment { font-size: 11px; gap: 6px; align-items: flex-start; margin-bottom: 13px; } .environment>span:last-child { flex: 1; } h1 { font-size: 22px; } .study-heading>.badge { display: none; } .study-heading p { font-size: 12px; margin-top: 9px; } .metadata { gap: 5px 12px; font-size: 11px; margin-top: 13px; } .tabs { gap: 5px; margin-top: 20px; scrollbar-width: none; } .tabs button { padding: 8px 11px; min-height: 36px; font-size: 11px; } #content { padding-top: 21px; } .section-heading { flex-wrap: wrap; gap: 12px; } .section-heading p { font-size: 11px; } .metric-row { padding: 16px 0; row-gap: 17px; } .metric-row>div { padding: 0 14px; } .metric-row dd { font-size: 18px; } .metric-row dt { font-size: 11px; } .metric-row small { font-size: 11px; } .panel,.report-document { padding: 17px; } .form-grid { grid-template-columns: minmax(0,1fr); } .form-grid label:first-child { grid-column: auto; } .report-picker { max-height: none; } .report-picker button { min-width: 143px; padding: 12px; } .report-document h2 { font-size: 20px; } .report-document .metric-row dd { font-size: 17px; } .report-document .metric-row>div { padding-left: 10px; padding-right: 5px; } .report-document .metric-row>div:nth-child(odd) { padding-left: 0; } .report-toolbar { gap: 12px; } .report-toolbar .actions { gap: 5px; } .report-toolbar .actions button { padding: 6px 9px; min-height: 34px; font-size: 11px; } .auth-panel { margin: 20px 16px 0; padding: 18px; } .auth-panel form { display: grid; grid-template-columns: 1fr 1fr; } .auth-panel label { grid-column: 1/-1; } .notice { right: 12px; top: 72px; max-width: calc(100vw - 24px); } .version-row { align-items: flex-start; flex-wrap: wrap; gap: 6px; } .version-row p { overflow-wrap: anywhere; } .storage-note { display: flex; } footer { padding: 16px; gap: 4px; font-size: 11px; } footer span { width: 100%; text-align: center; } #navigation-backdrop { position: fixed; inset: 0; z-index: 90; border: 0; border-radius: 0; background: #20243066; width: 100%; height: 100%; } body.nav-open { overflow: hidden; } }
@media(prefers-reduced-motion:no-preference) { button { transition: background-color .12s ease-out,border-color .12s ease-out; } .sidebar { transition: transform .18s ease-out; } }
@media print { .sidebar,.site-header,.context-toolbar,.environment,.tabs,.auth-panel,.notice,.report-toolbar,.report-picker,footer,.no-print,#navigation-backdrop { display: none!important; } .page-body { display: block; margin: 0; } main { padding: 0; } .report-layout { display: block; } .report-document { border: 0; padding: 0; } .study-heading { margin-bottom: 24px; } .table-scroll { overflow: visible; border: 0; } table { white-space: normal; } th,td { padding: 8px; } .wide-table { min-width: 0; } .report-document,.panel { break-inside: avoid; } .metric-row { border-radius: 0; } }

/* Standalone sign-in within the existing Work palette. */
.login-page { min-height: 100dvh; }
.login-header { height: 72px; display: flex; align-items: center; gap: 16px; padding: 0 32px; border-bottom: 1px solid var(--line); background: var(--surface); }
.login-header strong { font-size: 23px; letter-spacing: -.035em; }
.login-header strong span { color: var(--accent); }
.login-header>span { color: var(--muted); font-size: 12px; }
.login-main { width: min(440px,calc(100% - 40px)); margin: clamp(48px,12vh,140px) auto 40px; padding: 0; }
.signin-panel { padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.signin-panel h1 { font-size: 25px; line-height: 1.35; margin: 0; }
.signin-description { margin: 12px 0 28px; color: var(--muted); font-size: 13px; }
#signin-form { display: grid; gap: 8px; }
#signin-form label { font-size: 12px; font-weight: 600; }
#signin-form input { width: 100%; min-height: 44px; font-size: 14px; margin: 0 0 12px; }
#signin-submit { width: 100%; min-height: 44px; margin-top: 8px; font-size: 13px; }
#signin-error { margin: 0 0 8px; font-size: 12px; }
.signin-hint { margin: 20px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
#signin-retry { margin-top: 14px; }
.signin-footnote { margin: 20px 8px; color: var(--muted); font-size: 11px; text-align: center; }
@media(max-width:480px) { .login-header { height: 64px; padding: 0 22px; } .signin-panel { padding: 25px 22px; } .signin-panel h1 { font-size: 23px; } }

/* CBF uses the incumbent Work shell. */
.cbf-shortcuts { display:flex; flex-wrap:wrap; align-items:end; gap:8px; margin:20px 0 12px; }
.cbf-shortcuts>button[aria-pressed="true"],.cbf-steps [aria-current="step"] { background:var(--accent); color:var(--surface); border-color:var(--accent); }
.cbf-shortcuts label { display:grid; gap:6px; margin-left:auto; min-width:260px; }
.cbf-storage { color:var(--muted); margin:0 0 24px; }
.cbf-case { border-top:1px solid var(--line); padding-top:24px; }
.cbf-steps { display:flex; gap:8px; flex-wrap:wrap; margin:18px 0 24px; }
.cbf-steps button { min-width:130px; }
.cbf-input-layout { align-items:start; }
.cbf-input-layout fieldset { border:0; padding:0; margin:20px 0 0; min-width:0; }
.cbf-input-layout .form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.cbf-input-layout .form-grid label { min-width:0; }
.cbf-input-guide { padding:4px 0 0 8px; }
.cbf-input-guide dl { margin:24px 0; }
.cbf-input-guide dt { font-weight:650; margin-top:18px; }
.cbf-input-guide dd { margin:5px 0 0; color:var(--muted); line-height:1.8; }
.cbf-source-example { padding:18px 0; border-top:1px solid var(--line); }
.cbf-filters { display:flex; flex-wrap:wrap; align-items:end; gap:12px; margin:20px 0; }
.cbf-filters label { display:grid; gap:6px; min-width:180px; }
.cbf-select-label { display:flex; justify-content:center; }
.cbf-select-label input,.cbf-ai-choice input { width:18px; height:18px; min-height:18px; accent-color:var(--accent); }
.cbf-compare { margin-top:28px; }
.cbf-metrics { display:flex; flex-wrap:wrap; gap:28px; margin:20px 0; padding:18px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.cbf-metrics dt { font-size:12px; color:var(--muted); }
.cbf-metrics dd { font-size:19px; font-weight:650; margin:6px 0 0; font-variant-numeric:tabular-nums; }
.cbf-metrics small { font-size:12px; color:var(--muted); font-weight:400; }
.cbf-state { font-size:12px; color:var(--green); }
.cbf-state.needs { color:var(--danger); }
.cbf-generation { margin-top:24px; padding-top:20px; border-top:1px solid var(--line); }
.cbf-ai-choice { display:flex; align-items:center; gap:8px; font-weight:600; }
.cbf-decision { display:flex; flex-wrap:wrap; align-items:end; gap:12px; margin:20px 0; }
.cbf-decision label { display:grid; gap:6px; min-width:180px; }
.cbf-decision p { flex-basis:100%; margin:0; color:var(--muted); }
.cbf-report .table-scroll { margin:18px 0 26px; }
.cbf-report p { overflow-wrap:anywhere; }
.cbf-status-chart,.cbf-genealogy { display:block; width:100%; min-width:640px; }
.cbf-status-chart text,.cbf-genealogy text { fill:var(--ink); font:13px Inter,Pretendard,"Malgun Gothic",sans-serif; }
.cbf-bar { fill:var(--accent); }
.cbf-bar.cbf-missing { fill:var(--danger); }
.cbf-edge { fill:none; stroke:var(--muted); stroke-width:1.5; }
.cbf-node { fill:var(--soft); stroke:var(--line); }
.cbf-versions { margin-top:32px; }
#cbf-trace-result { overflow-wrap:anywhere; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
@media(max-width:760px) {
  .cbf-shortcuts label { flex-basis:100%; min-width:0; margin-left:0; }
  .cbf-input-layout .form-grid { grid-template-columns:1fr; }
  .cbf-input-guide { padding:12px 0 0; }
  .cbf-filters label { min-width:0; flex:1 1 180px; }
  .cbf-steps button { min-width:0; flex:1; padding:8px; }
  .cbf-case>.section-heading { align-items:start; }
}
@media print {
  .cbf-status-chart,.cbf-genealogy { min-width:0; width:100%; }
  .cbf-report .table-scroll { overflow:visible; }
  .cbf-report .wide-table { min-width:0; width:100%; table-layout:fixed; }
  .cbf-report td,.cbf-report th { overflow-wrap:anywhere; }
}
