/* 태아 초음파 AI 분석 시연 화면 (sono) */
.sn {
  --bg: #F3F0EA;
  --surface: #FFFFFF;
  --surface-2: #FAF8F4;
  --text: #1F1A22;
  --muted: #675F6C;
  --line: #E3DDD3;
  --primary: #4A2545;
  --primary-2: #6B3A64;
  --primary-soft: #F1E8EF;
  --accent: #C8761C;
  --accent-soft: #FBEEDC;
  --ok: #2B7052;
  --ok-soft: #E3F1EA;
  --warn: #9A5C06;
  --warn-soft: #FBEFD9;
  --danger: #AE3527;
  --danger-soft: #FAE6E2;
  --viewer: #0B0A0C;
  --r: 12px;
  --rs: 8px;
  --mono: "Pretendard Variable", Pretendard, ui-monospace, monospace;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.sn *, .sn *::before, .sn *::after { box-sizing: border-box; }
.sn :where(h1, h2, h3, p, ul, ol, dl, dd, figure) { margin: 0; }
.sn :where(ul, ol) { padding: 0; list-style: none; }
.sn :where(a) { color: var(--primary); }
.sn :where(button, input, select, textarea) { font: inherit; color: inherit; }
.sn [hidden] { display: none !important; }
.sn-mono { font-family: var(--mono); font-feature-settings: "tnum"; letter-spacing: 0; overflow-wrap: normal; word-break: keep-all; }
.sn-muted { color: var(--muted); }
.sn :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* 안내 띠 */
.sn .demo-notice {
  min-height: 28px; display: flex; align-items: center; justify-content: center;
  padding: 4px 16px; background: #2A1828; color: #E9DCE6; font-size: 12px; text-align: center;
}

/* 머리글 */
.sn-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 1280px; margin: 0 auto; padding: 14px 24px 10px;
}
.sn-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); min-width: 0; }
.sn-brand__mark { flex: none; display: block; line-height: 0; }
.sn-brand__text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.sn-brand__text b { font-size: 16px; letter-spacing: -0.02em; }
.sn-brand__text small { font-size: 12px; color: var(--muted); }
.sn-top__right { display: flex; align-items: center; gap: 10px; }
.sn-userchip { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.sn-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }

.sn-nav {
  display: flex; gap: 4px; max-width: 1280px; margin: 0 auto; padding: 0 24px;
  overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line);
}
.sn-nav::-webkit-scrollbar { display: none; }
.sn-nav__item {
  display: flex; align-items: center; gap: 7px; flex: none; min-height: 46px; padding: 0 12px;
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px;
  border-bottom: 2.5px solid transparent; margin-bottom: -1px;
}
.sn-nav__item:hover { color: var(--text); }
.sn-nav__no {
  display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px;
  background: var(--surface); border: 1px solid var(--line); font-family: var(--mono); font-size: 11px;
}
.sn-nav__item.is-on { color: var(--primary); border-bottom-color: var(--primary); }
.sn-nav__item.is-on .sn-nav__no { background: var(--primary); color: #fff; border-color: var(--primary); }

.sn-main { max-width: 1280px; margin: 0 auto; padding: 24px 24px 120px; }

/* 제목 */
.sn-head { margin-bottom: 20px; }
.sn-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.sn-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: var(--accent); margin-bottom: 4px; }
.sn-head h1 { font-size: 26px; line-height: 1.3; letter-spacing: -0.03em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sn-lead { margin-top: 8px; max-width: 760px; color: var(--muted); }
.sn-head__btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* 카드 */
.sn-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.sn-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.sn-card__head h2, .sn-step__head h2 { font-size: 16px; letter-spacing: -0.02em; }
.sn-card__head h2 small { font-weight: 500; font-size: 13px; margin-left: 6px; }
.sn-h3 { font-size: 13px; color: var(--muted); font-weight: 700; margin: 16px 0 8px; }
.sn-note { font-size: 13.5px; color: var(--muted); margin-bottom: 12px; }
.sn-foot { margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.sn-sub { font-size: 13px; font-weight: 700; color: var(--muted); margin: 16px 0 8px; }

/* 버튼 */
.sn-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 16px; border-radius: var(--rs); border: 1px solid transparent;
  font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.sn-btn:disabled { opacity: .45; cursor: not-allowed; }
.sn-btn--primary { background: var(--primary); color: #fff; }
.sn-btn--primary:not(:disabled):hover { background: var(--primary-2); }
.sn-btn--line { background: var(--surface); border-color: var(--line); color: var(--text); }
.sn-btn--line:hover, .sn-btn--line.is-on { border-color: var(--primary); color: var(--primary); }
.sn-btn--line.is-on { background: var(--primary-soft); }
.sn-btn--ghost { background: transparent; border-color: var(--line); color: var(--text); }
.sn-btn--ghost:hover { background: var(--surface); }
.sn-btn--sm { min-height: 36px; padding: 0 12px; font-size: 13px; }
.sn-btn--lg { min-height: 52px; padding: 0 28px; font-size: 16px; }
.sn-btn--block { width: 100%; margin-top: 12px; }
.sn-link { background: none; border: 0; padding: 4px 2px; color: var(--primary); font-weight: 700; font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.sn-iconbtn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--rs); border: 1px solid var(--line); background: var(--surface); cursor: pointer; }

/* 태그·배지 */
.sn-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: 0; white-space: nowrap; }
.sn-tag--mock { background: var(--accent-soft); color: #8A4B09; border: 1px dashed #D9A25E; }
.sn-tag--assume { background: var(--surface-2); color: var(--muted); border: 1px dashed var(--line); }
.sn-tag--lg { height: 26px; font-size: 13px; padding: 0 10px; }
.sn-pill { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; font-style: normal; }
.sn-pill--hit { background: var(--danger-soft); color: var(--danger); }
.sn-pill--low { background: var(--ok-soft); color: var(--ok); }
.sn-pill--na { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.sn-pill--warn { background: var(--warn-soft); color: var(--warn); }

/* 분석 요청 */
.sn-req { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 16px 20px; align-items: start; }
.sn-req > .sn-step { grid-column: 1; }
.sn-req > .sn-viewer { grid-column: 2; grid-row: 1 / span 4; position: sticky; top: 16px; }
.sn-step { padding: 0; overflow: hidden; }
.sn-step__head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; }
.sn-step__no { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); font-family: var(--mono); font-size: 13px; font-weight: 500; }
.sn-step.is-open .sn-step__no { background: var(--primary); color: #fff; border-color: var(--primary); }
.sn-step__state { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--muted); padding: 3px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); white-space: nowrap; }
.sn-step__state.is-done { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.sn-step__state.is-warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.sn-step__body { padding: 0 18px 18px; }
.sn-step:not(.is-open) .sn-step__body { display: none; }
.sn-step:not(.is-open) .sn-step__head { color: var(--muted); }

.sn-drop {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 16px; text-align: left;
  border: 1.5px dashed #CFC6BA; border-radius: var(--r); background: var(--surface-2); cursor: pointer; color: var(--muted);
}
.sn-drop b { display: block; color: var(--text); font-size: 14px; }
.sn-drop small { font-size: 12.5px; }
.sn-drop:hover { border-color: var(--primary); }
.sn-samples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sn-sample {
  display: flex; flex-direction: column; gap: 8px; padding: 8px; text-align: left; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: var(--r); background: var(--surface); min-height: 44px;
}
.sn-sample:hover { border-color: var(--primary-2); }
.sn-sample.is-on { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.sn-sample__meta b { display: block; font-size: 13px; line-height: 1.35; }
.sn-sample__meta small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.sn-echo { display: block; position: relative; line-height: 0; background: var(--viewer); border-radius: 8px; overflow: hidden; }
.sn-echo canvas { width: 100%; height: auto; display: block; }
.sn-echo--thumb { aspect-ratio: 4 / 3; }
.sn-echo--mini { width: 96px; flex: none; aspect-ratio: 4 / 3; border-radius: 6px; align-self: flex-start; }
.sn-upload { margin-top: 14px; padding: 12px; border-radius: var(--rs); background: var(--surface-2); border: 1px solid var(--line); }
.sn-upload__row { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.sn-bar { height: 6px; margin: 8px 0 6px; border-radius: 99px; background: #E9E3DA; overflow: hidden; }
.sn-bar span { display: block; height: 100%; width: 0; background: var(--primary); transition: width .08s linear; }
.sn-upload__done { font-size: 12.5px; }

.sn-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sn-field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: var(--muted); }
.sn-field em { font-style: normal; font-weight: 500; font-size: 12px; }
.sn-field--wide { grid-column: 1 / -1; }
.sn-field input, .sn-field select, .sn-field textarea, .sn-search input, .sn-matrix select, .sn-users select {
  min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--rs);
  background: var(--surface); color: var(--text); font-weight: 500; font-size: 15px; width: 100%;
}
.sn-field textarea { min-height: 84px; resize: vertical; line-height: 1.5; }
.sn-field input:disabled, .sn-field select:disabled { background: var(--surface-2); color: var(--muted); }
.sn-form__foot { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }

.sn-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 12px; }
.sn-chips li { padding: 5px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 12.5px; }
.sn-chips li b { font-weight: 800; }

/* 표(행 = grid) */
.sn-table { border: 1px solid var(--line); border-radius: var(--rs); overflow: hidden; }
.sn-tr { display: grid; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--line); align-items: center; font-size: 13.5px; }
.sn-tr--head { border-top: 0; background: var(--surface-2); font-size: 12px; font-weight: 700; color: var(--muted); padding-top: 8px; padding-bottom: 8px; }
.sn-tr small { display: block; font-size: 11.5px; color: var(--muted); }
.sn-tags .sn-tr { grid-template-columns: 96px minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.2fr); }
.sn-tags .sn-tr b { font-weight: 600; }
.sn-strike { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(174, 53, 39, .6); }
.sn-act { display: inline-block; font-style: normal; font-weight: 700; font-size: 12px; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); }
.sn-act--remove { background: var(--danger-soft); color: var(--danger); }
.sn-act--pseudo, .sn-act--uid, .sn-act--shift, .sn-act--generalize { background: var(--primary-soft); color: var(--primary); }
.sn-act--set, .sn-act--add { background: var(--ok-soft); color: var(--ok); }
.sn-kept { margin-top: 10px; font-size: 13px; }
.sn-kept summary { cursor: pointer; color: var(--muted); font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.sn-kept ul { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.sn-kept li { padding: 3px 8px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12px; }

.sn-stages { margin-top: 14px; display: grid; gap: 6px; }
.sn-stages li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.sn-stages__mark { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line); flex: none; position: relative; }
.sn-stages li.is-run { color: var(--text); font-weight: 600; }
.sn-stages li.is-run .sn-stages__mark { border-color: var(--accent); border-top-color: transparent; animation: sn-spin .7s linear infinite; }
.sn-stages li.is-done { color: var(--text); }
.sn-stages li.is-done .sn-stages__mark { background: var(--ok); border-color: var(--ok); }
.sn-stages li.is-done .sn-stages__mark::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
@keyframes sn-spin { to { transform: rotate(360deg); } }

/* 영상 보기 */
.sn-viewer { padding: 14px; }
.sn-viewer__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.sn-viewer__title { font-weight: 700; font-size: 14px; }
.sn-viewer__title small { font-weight: 500; margin-left: 6px; font-size: 12.5px; }
.sn-viewer__cap { margin-top: 10px; font-size: 12.5px; }
.sn-screen { position: relative; background: var(--viewer); border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; }
.sn-screen canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sn-screen__heat { pointer-events: none; }
.sn-screen__empty { position: absolute; inset: 0; display: grid; place-items: center; color: #9C929E; font-size: 13.5px; padding: 16px; text-align: center; }
.sn-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); gap: 2px; }
.sn-seg button { min-height: 36px; padding: 0 12px; border: 0; border-radius: 7px; background: none; cursor: pointer; font-weight: 600; font-size: 13px; color: var(--muted); }
.sn-seg button.is-on { background: var(--surface); color: var(--primary); box-shadow: 0 1px 2px rgba(40, 20, 40, .12); }
.sn-viewer__tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.sn-range { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); font-weight: 600; }
.sn-range input { width: 140px; accent-color: var(--primary); }
.sn-legend { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.sn-legend i { width: 90px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #44015480, #781C6D, #D44842, #FA8C28, #FCEC8C); }
.sn-switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; cursor: pointer; min-height: 36px; }
.sn-switch input { width: 18px; height: 18px; accent-color: var(--primary); }

/* 판별 결과 */
.sn-casebar { display: flex; flex-wrap: wrap; gap: 8px; }
.sn-casebar > div { padding: 8px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--rs); min-width: 0; }
.sn-casebar dt { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.sn-casebar dd { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.sn-casebar .sn-link { padding: 0; font-size: 12px; }
.sn-result { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.sn-viewer--result { position: sticky; top: 16px; }
.sn-result__side { display: grid; gap: 14px; }
.sn-verdict { border-width: 1.5px; }
.sn-verdict.is-suspect { border-color: #E2B2A9; background: linear-gradient(180deg, #FDF3F1, var(--surface) 70%); }
.sn-verdict.is-normal { border-color: #B9D8C7; background: linear-gradient(180deg, #F1F8F4, var(--surface) 70%); }
.sn-verdict__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sn-verdict__label { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.sn-verdict.is-suspect .sn-verdict__label { color: var(--danger); }
.sn-verdict.is-normal .sn-verdict__label { color: var(--ok); }
.sn-verdict__score { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; color: var(--muted); font-size: 13px; }
.sn-verdict__score > b { font-size: 34px; color: var(--text); line-height: 1.1; }
.sn-meter { position: relative; height: 10px; border-radius: 99px; background: #EEE8E0; margin: 10px 0 14px; }
.sn-meter span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: var(--primary); }
.sn-verdict.is-suspect .sn-meter span { background: var(--danger); }
.sn-verdict.is-normal .sn-meter span { background: var(--ok); }
.sn-meter i, .sn-item__bar i { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--text); border-radius: 1px; }
.sn-assist { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: var(--rs); background: #2A1828; color: #F5EAF1; font-size: 13.5px; font-weight: 600; }
.sn-assist svg { flex: none; margin-top: 2px; }
.sn-items { display: grid; gap: 8px; }
.sn-item { border: 1px solid var(--line); border-radius: var(--rs); }
.sn-item.is-na { padding: 10px 12px; background: var(--surface-2); }
.sn-item__btn { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 48px; grid-template-areas: "row row" "bar num"; gap: 6px 10px; align-items: center; padding: 10px 12px; background: none; border: 0; text-align: left; cursor: pointer; border-radius: var(--rs); min-height: 44px; }
.sn-item__row { grid-area: row; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sn-item.is-na .sn-item__row { margin-bottom: 2px; }
.sn-item__row b { font-size: 14px; font-weight: 600; }
.sn-item__bar { grid-area: bar; position: relative; height: 8px; border-radius: 99px; background: #EEE8E0; }
.sn-item__bar span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: #9BB8A9; }
.sn-item.is-hit .sn-item__bar span { background: var(--danger); }
.sn-item__num { grid-area: num; text-align: right; font-size: 14px; }
.sn-item.is-focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.sn-item__btn:hover { background: var(--surface-2); }
.sn-quality { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 14px; }
.sn-quality span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.sn-quality b { font-size: 13.5px; }
.sn-review__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }

/* 보고서 */
.sn-paperwrap { display: flex; justify-content: center; }
.sn-paper {
  width: 100%; max-width: 820px; background: #fff; color: #18151A; border: 1px solid var(--line);
  border-radius: 4px; padding: 40px 44px; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px -12px rgba(60, 30, 50, .18);
}
.sn-paper__head { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 2px solid #18151A; flex-wrap: wrap; }
.sn-paper__clinic { font-size: 13px; color: var(--muted); }
.sn-paper__head h2 { font-size: 22px; letter-spacing: -0.03em; }
.sn-paper__no { display: grid; gap: 2px; font-size: 12.5px; }
.sn-paper__no > div { display: flex; gap: 10px; }
.sn-paper__no dt { color: var(--muted); min-width: 64px; }
.sn-paper__sec { padding: 18px 0; border-bottom: 1px solid var(--line); }
.sn-paper__sec h3 { font-size: 14px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.sn-kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 16px; }
.sn-kv dt { font-size: 12px; color: var(--muted); }
.sn-kv dd { font-size: 14px; font-weight: 600; }
.sn-kv--sign { margin-top: 14px; }
.sn-sign { height: 28px; border-bottom: 1px solid #9D949F; }
.sn-paper__verdict { font-weight: 700; margin-bottom: 10px; }
.sn-paper__verdict.is-suspect { color: var(--danger); }
.sn-ptable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.sn-ptable th, .sn-ptable td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.sn-ptable th { font-size: 12px; color: var(--muted); background: var(--surface-2); white-space: nowrap; }
.sn-ptable td.sn-mono { white-space: nowrap; }
.sn-ptable tr.is-hit td { font-weight: 700; }
.sn-ptable tr.is-hit td:last-child { color: var(--danger); }
.sn-paper__imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sn-paper__imgs figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; text-align: center; }
.sn-screen--paper { border-radius: 4px; }
.sn-paper__opinion { min-height: 48px; white-space: pre-wrap; font-size: 14px; }
.sn-paper__foot { padding-top: 14px; font-size: 12px; color: var(--muted); display: grid; gap: 2px; }

/* 환자 이력 */
.sn-pt { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 20px; align-items: start; }
.sn-pt__list { padding: 12px; position: sticky; top: 16px; }
.sn-search { display: flex; align-items: center; gap: 8px; position: relative; margin-bottom: 10px; }
.sn-search svg { position: absolute; left: 12px; color: var(--muted); }
.sn-search input { padding-left: 36px; }
.sn-plist { display: grid; gap: 4px; }
.sn-plist__btn {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name pill" "meta pill";
  gap: 2px 8px; align-items: center; padding: 10px 12px; text-align: left; cursor: pointer;
  border: 1px solid transparent; border-radius: var(--rs); background: none; min-height: 44px;
}
.sn-plist__btn:hover { background: var(--surface-2); }
.sn-plist__btn.is-on { background: var(--primary-soft); border-color: #D9C4D5; }
.sn-plist__name { grid-area: name; font-size: 14.5px; }
.sn-plist__name small { color: var(--muted); font-size: 12px; margin-left: 4px; }
.sn-plist__meta { grid-area: meta; display: flex; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.sn-plist__btn .sn-pill { grid-area: pill; }
.sn-empty { padding: 16px; text-align: center; color: var(--muted); font-size: 13.5px; }
.sn-pdetail__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.sn-pdetail__head h2 { font-size: 20px; letter-spacing: -0.02em; }
.sn-pdetail__head h2 small { font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.sn-pdetail__head p { font-size: 13px; }
.sn-timeline { display: grid; gap: 0; position: relative; }
.sn-exam { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.sn-exam:first-child { border-top: 0; padding-top: 0; }
.sn-exam.is-current .sn-exam__date::after { content: "현재 분석 건"; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: #8A4B09; font-size: 11.5px; font-weight: 700; }
.sn-exam__body { min-width: 0; flex: 1; }
.sn-exam__date { font-size: 14px; margin-bottom: 8px; }
.sn-exam__kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 14px; }
.sn-exam__kv dt { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.sn-exam__kv dd { font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sn-exam__note { margin-top: 8px; display: inline-block; font-size: 12.5px; padding: 4px 10px; border-radius: 6px; background: var(--warn-soft); color: var(--warn); font-weight: 600; }

/* 관리자 */
.sn-tabs { display: flex; gap: 4px; margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.sn-tabs button { flex: none; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 14px; color: var(--muted); cursor: pointer; }
.sn-tabs button.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }
.sn-panel { display: grid; gap: 16px; }
.sn-addform { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 14px; margin-bottom: 14px; border-radius: var(--rs); background: var(--surface-2); border: 1px solid var(--line); }
.sn-users .sn-tr { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, .8fr) 104px; }
.sn-users select { min-height: 38px; padding: 4px 8px; font-size: 13.5px; }
.sn-tr.is-off > span:not(:last-child) { opacity: .55; }
.sn-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 10px 0 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); font-size: 12.5px; font-weight: 700; color: var(--muted); cursor: pointer; }
.sn-toggle i { width: 28px; height: 16px; border-radius: 99px; background: #CFC7BD; position: relative; flex: none; }
.sn-toggle i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: left .15s; }
.sn-toggle.is-on { color: var(--ok); background: var(--ok-soft); border-color: transparent; }
.sn-toggle.is-on i { background: var(--ok); }
.sn-toggle.is-on i::after { left: 14px; }
.sn-matrix-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--rs); }
.sn-matrix { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 13.5px; }
.sn-matrix th, .sn-matrix td { padding: 8px 10px; border-top: 1px solid var(--line); text-align: center; }
.sn-matrix thead th { border-top: 0; background: var(--surface-2); font-size: 12.5px; color: var(--muted); }
.sn-matrix th[scope="row"] { text-align: left; font-weight: 600; }
.sn-matrix tfoot th, .sn-matrix tfoot td { background: var(--surface-2); }
.sn-matrix select { min-height: 38px; padding: 4px 6px; font-size: 12.5px; }
.sn-cell { min-width: 64px; min-height: 36px; border-radius: 8px; border: 1px dashed var(--line); background: var(--surface); color: var(--muted); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.sn-cell.is-on { border: 1px solid transparent; background: var(--primary-soft); color: var(--primary); }
.sn-cell.is-lock { cursor: not-allowed; opacity: .75; }
.sn-data { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.sn-funnel__steps { display: grid; gap: 6px; }
.sn-funnel__steps li { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: var(--rs); background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.sn-funnel__steps li:nth-child(2) { margin: 0 10px; }
.sn-funnel__steps li:nth-child(3) { margin: 0 20px; background: var(--ok-soft); color: var(--ok); }
.sn-funnel__steps b { font-size: 17px; }
.sn-excl { display: grid; gap: 4px; }
.sn-excl li { display: flex; justify-content: space-between; font-size: 13.5px; padding: 6px 2px; border-bottom: 1px dashed var(--line); }
.sn-splitbar { display: flex; height: 36px; border-radius: var(--rs); overflow: hidden; font-size: 12px; font-weight: 700; color: #fff; }
.sn-splitbar span { display: flex; align-items: center; justify-content: center; white-space: nowrap; overflow: hidden; }
.sn-splitbar__0 { background: var(--primary); }
.sn-splitbar__1 { background: #9A6E93; }
.sn-splitbar__2 { background: var(--accent); }
.sn-splitlist { display: grid; gap: 6px; margin-top: 12px; }
.sn-splitlist li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; font-size: 13.5px; }
.sn-splitlist i { width: 12px; height: 12px; border-radius: 3px; display: block; }
.sn-splitlist small { color: var(--muted); }
.sn-records .sn-tr { grid-template-columns: 130px 56px minmax(0, 1fr) 56px minmax(0, 1.3fr); }
.sn-st { font-style: normal; font-weight: 700; font-size: 12px; padding: 2px 8px; border-radius: 6px; margin-right: 6px; }
.sn-st--ok { background: var(--ok-soft); color: var(--ok); }
.sn-st--review { background: var(--warn-soft); color: var(--warn); }
.sn-st--excluded { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.sn-records .sn-link { padding: 0; font-size: 12px; }
.sn-log .sn-tr { grid-template-columns: 110px 80px minmax(0, 1fr) minmax(0, 1fr); }

/* 성능 리포트 */
.sn-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.sn-kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sn-kpi > span { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.sn-kpi > span small { display: block; font-weight: 500; font-size: 11.5px; }
.sn-kpi > b { font-size: 26px; letter-spacing: -0.02em; line-height: 1.25; }
.sn-kpi > small { font-size: 11.5px; }
.sn-model { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; align-items: start; }
.sn-model--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.sn-stack > .sn-card { margin-bottom: 16px; }
.sn-thr { display: grid; gap: 6px; margin-bottom: 16px; font-size: 13px; font-weight: 600; color: var(--muted); }
.sn-thr b { color: var(--text); font-size: 15px; }
.sn-thr input { width: 100%; accent-color: var(--primary); min-height: 28px; }
.sn-thr__ends { display: flex; justify-content: space-between; font-weight: 500; }
.sn-cm { display: grid; grid-template-columns: 84px 1fr 1fr; gap: 6px; }
.sn-cm__col, .sn-cm__row { display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 700; color: var(--muted); padding: 4px; text-align: center; }
.sn-cm__cell { border-radius: var(--rs); padding: 16px 10px; text-align: center; display: grid; gap: 2px; }
.sn-cm__cell b { font-size: 26px; }
.sn-cm__cell small { font-size: 12px; font-weight: 600; }
.sn-cm__cell.is-tp { background: var(--primary); color: #fff; }
.sn-cm__cell.is-tn { background: var(--primary-soft); color: var(--primary); }
.sn-cm__cell.is-fn { background: var(--danger-soft); color: var(--danger); border: 1.5px solid #E7B3AA; }
.sn-cm__cell.is-fp { background: var(--warn-soft); color: var(--warn); }
.sn-roc { width: 100%; height: auto; display: block; max-width: 340px; margin: 0 auto; }
.sn-roc__grid line { stroke: var(--line); stroke-width: 1; }
.sn-roc__grid text, .sn-roc__axis { font-family: var(--mono); font-size: 10px; fill: var(--muted); }
.sn-roc__axis { font-family: inherit; font-size: 11px; font-weight: 600; }
.sn-roc__diag { stroke: #CFC6BA; stroke-dasharray: 4 4; }
.sn-roc__line { fill: none; stroke: var(--primary); stroke-width: 2.5; stroke-linejoin: round; }
.sn-roc__pt { fill: var(--accent); stroke: #fff; stroke-width: 2; }
.sn-findings .sn-tr { grid-template-columns: minmax(0, 1.3fr) 80px 64px 64px 64px minmax(0, 1.3fr); }
.sn-dec { font-style: normal; font-weight: 700; font-size: 12px; padding: 3px 9px; border-radius: 6px; }
.sn-dec--include { background: var(--primary-soft); color: var(--primary); }
.sn-dec--review { background: var(--warn-soft); color: var(--warn); }
.sn-dec--group { background: var(--surface-2); color: var(--muted); border: 1px dashed var(--line); }
.sn-sub li { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.sn-sub li:first-child { border-top: 0; }
.sn-sub__name { font-size: 13.5px; font-weight: 600; }
.sn-sub__name small { display: block; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.sn-sub__name small.sn-mono { display: inline; }
.sn-sub__bars { display: grid; gap: 4px; }
.sn-sub__bar { position: relative; height: 20px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.sn-sub__bar i { position: absolute; left: 0; top: 0; bottom: 0; background: #D8C3D4; }
.sn-sub__bar--spec i { background: #E9D2B3; }
.sn-sub__bar em { position: relative; font-style: normal; font-size: 11.5px; font-weight: 700; padding-left: 8px; line-height: 20px; color: var(--text); }
.sn-seeds, .sn-versions { display: grid; gap: 6px; }
.sn-seeds li { display: flex; justify-content: space-between; padding: 8px 12px; border-radius: var(--rs); background: var(--surface-2); font-size: 13.5px; }
.sn-versions li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--rs); font-size: 13.5px; }
.sn-versions small { display: block; color: var(--muted); font-size: 12px; }
.sn-errors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sn-errors li { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border: 1px solid var(--line); border-radius: var(--rs); }
.sn-errors p { font-size: 13px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.sn-errors__rev { margin-top: 6px; color: var(--text); }
.sn-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; counter-reset: flow; }
.sn-flow li { position: relative; padding: 12px; border-radius: var(--rs); background: var(--primary-soft); color: var(--primary); }
.sn-flow li b { display: block; font-size: 15px; }
.sn-flow li small { font-size: 12px; color: var(--muted); }
.sn-flow li.is-later { background: var(--surface); border: 1.5px dashed #CDB9CA; }
.sn-checks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.sn-checks > div { padding: 10px 12px; background: var(--surface-2); border-radius: var(--rs); border: 1px solid var(--line); }
.sn-checks dt { font-size: 12px; color: var(--muted); font-weight: 600; }
.sn-checks dd { font-size: 16px; font-weight: 500; }
.sn-docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.sn-docs li { font-size: 13.5px; padding: 8px 12px 8px 32px; position: relative; border-radius: var(--rs); background: var(--surface-2); }
.sn-docs li::before { content: ""; position: absolute; left: 12px; top: 13px; width: 10px; height: 10px; border-radius: 2px; border: 1.5px solid var(--primary); }

/* 알림·대응표 */
.sn-toast {
  position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 40;
  max-width: min(92vw, 520px); padding: 12px 18px; border-radius: 10px; background: #2A1828; color: #fff;
  font-size: 14px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4);
}
.sn-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 30; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--primary); color: #fff;
  font-weight: 700; font-size: 14px; cursor: pointer; box-shadow: 0 8px 24px -8px rgba(74, 37, 69, .6);
}
.sn-sheet { position: fixed; inset: 0; z-index: 50; }
.sn-sheet__scrim { position: absolute; inset: 0; background: rgba(20, 12, 20, .45); }
.sn-sheet__panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(460px, 100%); background: var(--surface);
  padding: 20px; overflow-y: auto; box-shadow: -12px 0 40px -16px rgba(0, 0, 0, .35);
}
.sn-sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.sn-sheet__head h2 { font-size: 17px; }
.sn-map { display: grid; gap: 10px; }
.sn-map li { display: flex; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--rs); }
.sn-map__no { font-family: var(--mono); font-size: 12px; color: var(--accent); font-weight: 500; padding-top: 2px; }
.sn-map__req { font-weight: 700; font-size: 14px; }
.sn-map__shown { font-size: 13px; color: var(--muted); margin: 2px 0 6px; }
.sn-map a { font-size: 13px; font-weight: 700; }
.sn-sheet__foot { margin-top: 14px; font-size: 12.5px; color: var(--muted); }

/* 태블릿·모바일 */
@media (max-width: 1080px) {
  .sn-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sn-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sn-users .sn-tr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) 104px; }
  .sn-users .sn-tr > span:nth-child(4), .sn-users .sn-tr > span:nth-child(5) { display: none; }
}
@media (max-width: 960px) {
  .sn-req { grid-template-columns: minmax(0, 1fr); }
  .sn-req > .sn-step, .sn-req > .sn-viewer { grid-column: 1; grid-row: auto; position: static; }
  .sn-result, .sn-model, .sn-model--even, .sn-data { grid-template-columns: minmax(0, 1fr); }
  .sn-result { gap: 14px; }
  .sn-result__side { display: contents; }
  .sn-verdict { order: -1; }
  .sn-viewer--result { position: static; }
}
@media (max-width: 860px) {
  .sn-pt { grid-template-columns: minmax(0, 1fr); }
  .sn-pt__list { position: static; }
}
@media (max-width: 640px) {
  .sn { font-size: 14.5px; }
  .sn-top { padding: 12px 16px 8px; }
  .sn-userchip { display: none; }
  .sn-nav { padding: 0 8px; }
  .sn-nav__item { padding: 0 9px; font-size: 13.5px; }
  .sn-main { padding: 18px 16px 110px; }
  .sn-head h1 { font-size: 22px; }
  .sn-card { padding: 14px; }
  .sn-step { padding: 0; }
  .sn-step__head { padding: 12px 14px; }
  .sn-step__body { padding: 0 14px 14px; }
  .sn-samples { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .sn-sample { padding: 5px; }
  .sn-sample__meta b { font-size: 12px; }
  .sn-sample__meta small { display: none; }
  .sn-form { grid-template-columns: minmax(0, 1fr); }
  .sn-tags .sn-tr--head { display: none; }
  .sn-tags .sn-tr { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name act" "tag raw"; gap: 4px 10px; }
  .sn-tags .sn-tr > span:nth-child(1) { grid-area: tag; font-size: 11.5px; color: var(--muted); }
  .sn-tags .sn-tr > span:nth-child(2) { grid-area: name; }
  .sn-tags .sn-tr > span:nth-child(3) { grid-area: raw; text-align: right; font-size: 12px; }
  .sn-tags .sn-tr > span:nth-child(4) { grid-area: act; text-align: right; }
  .sn-tags .sn-tr > span:nth-child(2) small { display: none; }
  .sn-casebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .sn-casebar > div:first-child { grid-column: 1 / -1; }
  .sn-verdict__label { font-size: 20px; }
  .sn-quality { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sn-quality > div:last-child { grid-column: 1 / -1; }
  .sn-range input { width: 110px; }
  .sn-paper { padding: 20px 16px; }
  .sn-kv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sn-paper__imgs { grid-template-columns: minmax(0, 1fr); }
  .sn-ptable th, .sn-ptable td { padding: 8px 6px; }
  .sn-exam { gap: 10px; }
  .sn-echo--mini { width: 76px; }
  .sn-exam__kv { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .sn-exam__kv > div { display: flex; gap: 8px; align-items: center; }
  .sn-exam__kv dt { min-width: 64px; }
  .sn-addform { grid-template-columns: minmax(0, 1fr); }
  .sn-tr--head { display: none; }
  .sn-users .sn-tr { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name toggle" "role role"; gap: 8px; }
  .sn-users .sn-tr > span:nth-child(1) { grid-area: name; }
  .sn-users .sn-tr > span:nth-child(2) { display: none; }
  .sn-users .sn-tr > span:nth-child(3) { grid-area: role; }
  .sn-users .sn-tr > span:nth-child(6) { grid-area: toggle; }
  .sn-records .sn-tr { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; }
  .sn-records .sn-tr > span:nth-child(2), .sn-records .sn-tr > span:nth-child(4) { display: none; }
  .sn-records .sn-tr > span:nth-child(5) { grid-column: 1 / -1; }
  .sn-log .sn-tr { grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; }
  .sn-log .sn-tr > span:nth-child(3) { grid-column: 1 / -1; }
  .sn-log .sn-tr > span:nth-child(4) { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
  .sn-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sn-kpis .sn-kpi:first-child { grid-column: 1 / -1; }
  .sn-kpi > b { font-size: 22px; }
  .sn-cm { grid-template-columns: 64px 1fr 1fr; }
  .sn-cm__cell b { font-size: 22px; }
  .sn-findings .sn-tr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 4px 8px; }
  .sn-findings .sn-tr > span:nth-child(1) { grid-column: 1 / 3; }
  .sn-findings .sn-tr > span:nth-child(6) { grid-column: 3; grid-row: 1; text-align: right; }
  .sn-findings .sn-tr > span[data-label]::before { content: attr(data-label) " "; font-family: "Pretendard Variable", Pretendard, sans-serif; color: var(--muted); font-size: 11.5px; }
  .sn-findings .sn-tr > span:nth-child(2) { display: none; }
  .sn-sub li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .sn-errors { grid-template-columns: minmax(0, 1fr); }
  .sn-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sn-checks, .sn-docs { grid-template-columns: minmax(0, 1fr); }
  .sn-fab { right: 12px; bottom: 12px; }
  .sn-toast { bottom: 70px; }
}

@media (prefers-reduced-motion: reduce) {
  .sn *, .sn *::before, .sn *::after { animation: none !important; transition: none !important; }
}

/* 인쇄: 보고서만 */
@media print {
  .sn { background: #fff; }
  .sn .demo-notice, .sn-top, .sn-nav, .sn-fab, .sn-sheet, .sn-toast, .sn-noprint { display: none !important; }
  .sn-main { padding: 0; max-width: none; }
  .sn-paper { border: 0; box-shadow: none; padding: 0; max-width: none; }
  .sn-screen { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
