/* 널리AI 컴포넌트 클래스 (nollie.css). values.css 를 먼저 불러온 뒤 쓴다.
   정본: sgapt ~/Works/nollie/nollie-design/values/nollie.css. 프레임워크 없이 순수 CSS.
   클래스 이름: 블록 .n-이름, 부분 .n-이름__부분, 변형 .n-이름--변형. 상태는 [disabled], [aria-*] 로. */

/* ---------- 바탕 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body.n-body, .n-body {
  margin: 0;
  font-family: var(--n-font-sans);
  font-size: var(--n-type-body1-size);
  line-height: var(--n-type-body1-para);
  color: var(--n-text-body);
  background: var(--n-bg-base);
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 1;
}
.n-num { font-variant-numeric: tabular-nums; }
:where(.n-body) :focus-visible { outline: 2px solid var(--n-focus-ring); outline-offset: 2px; }
.n-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- 글자 단계 ---------- */
.n-t-display { font-size: var(--n-type-display-size); line-height: var(--n-type-display-line); font-weight: 700; letter-spacing: var(--n-type-display-tracking); color: var(--n-text-strong); }
.n-t-title1 { font-size: var(--n-type-title1-size); line-height: var(--n-type-title1-line); font-weight: 700; letter-spacing: var(--n-type-title1-tracking); color: var(--n-text-strong); }
.n-t-title2 { font-size: var(--n-type-title2-size); line-height: var(--n-type-title2-line); font-weight: 700; letter-spacing: var(--n-type-title2-tracking); color: var(--n-text-strong); }
.n-t-title3 { font-size: var(--n-type-title3-size); line-height: var(--n-type-title3-line); font-weight: 700; letter-spacing: var(--n-type-title3-tracking); color: var(--n-text-title); }
.n-t-heading { font-size: var(--n-type-heading-size); line-height: var(--n-type-heading-line); font-weight: 700; color: var(--n-text-title); }
.n-t-body1 { font-size: var(--n-type-body1-size); line-height: var(--n-type-body1-line); }
.n-t-body2 { font-size: var(--n-type-body2-size); line-height: var(--n-type-body2-line); }
.n-t-caption { font-size: var(--n-type-caption-size); line-height: var(--n-type-caption-line); color: var(--n-text-sub); }
.n-p { font-size: var(--n-type-body1-size); line-height: var(--n-type-body1-para); margin: 0 0 var(--n-space-16); max-width: 36em; }
.n-p--small { font-size: var(--n-type-body2-size); line-height: var(--n-type-body2-para); }
.n-sub { color: var(--n-text-sub); }
.n-strong { color: var(--n-text-strong); font-weight: 600; }
.n-link { color: var(--n-brand-text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 배치 ---------- */
.n-page { max-width: var(--n-content-max); margin: 0 auto; padding: 0 var(--n-gutter); }
.n-page--wide { max-width: var(--n-wide-max); }
.n-page:has(> iframe) { max-width: none; }
.n-page .n-list, .n-page .n-list-header, .n-page .n-chips { margin-inline: calc(var(--n-gutter) * -1); }
.n-page iframe { display: block; width: 100%; height: calc(100dvh - var(--n-header) - var(--n-space-64) - var(--n-space-48)); min-height: 480px; border: 1px solid var(--n-border-hairline); border-radius: var(--n-radius-md); background: var(--n-bg-base); }
.n-stack > :is(h1, h2, h3) { margin: 0; }
.n-stack { display: flex; flex-direction: column; gap: var(--n-space-12); }
.n-row { display: flex; align-items: center; gap: var(--n-space-8); flex-wrap: wrap; }
.n-divider { height: 1px; background: var(--n-border-hairline); border: 0; margin: 0; }
.n-divider--inset { margin-left: var(--n-gutter); }
.n-band { height: var(--n-space-12); background: var(--n-bg-sunken); border: 0; margin: 0; }

.n-title-area { padding: var(--n-space-8) 24px var(--n-space-24); }
.n-title-area > :first-child { margin: 0; }
.n-title-area > * + * { margin: var(--n-space-4) 0 0; }
.n-fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.n-fieldset > legend { padding: 0; margin-bottom: var(--n-space-8); font-size: var(--n-type-caption-size); font-weight: 600; color: var(--n-text-title); }
.n-card-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--n-space-12); }
@media (min-width: 600px) { .n-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .n-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- 버튼 ---------- */
/* 토스 TDS Mobile 2.5.1 Button. 크기: sm 32, md 38, lg 48, xl 56(클래스 없는 기본, 토스 기본 xlarge). 눌림은 0.96 축소와 어두운 막 0.26 */
.n-btn {
  --_bg: var(--n-brand-fill); --_fg: var(--n-brand-on-fill); --_dim: #000; --_glow: oklch(from var(--_bg) calc(l - 0.134) c h); --_glow-o: 0.7;
  --_dot: 8px; --_gap: 7px; --_dot-x: calc(var(--_dot) + var(--_gap)); --_dot-off: 200px; --_dot-c: var(--_fg);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--n-space-6);
  position: relative; overflow: hidden; min-width: 96px; min-height: 56px; padding: 15px 28px;
  border: 0; border-radius: var(--n-radius-lg); background: var(--_bg); color: var(--_fg);
  font: inherit; font-size: 17px; font-weight: 600; line-height: 1.252; -webkit-font-smoothing: antialiased;
  white-space: nowrap; text-decoration: none; cursor: pointer; user-select: none;
  box-shadow: inset 0 0 0 100vmax transparent;
  transition: transform var(--n-dur-spring-quick) var(--n-ease-spring-quick), box-shadow var(--n-dur-spring-quick) var(--n-ease-spring-quick), opacity var(--n-dur-spring-quick) var(--n-ease-spring-quick), color 0.1s ease-in-out;
  -webkit-tap-highlight-color: transparent;
}
.n-btn:active:not([disabled]):not([aria-disabled="true"]):not([aria-busy="true"]) {
  transform: scale(0.96); box-shadow: inset 0 0 0 100vmax color-mix(in srgb, var(--_dim) calc(var(--n-opacity-press-dim) * 100%), transparent);
  transition: transform var(--n-dur-spring-rapid) var(--n-ease-spring-rapid), box-shadow var(--n-dur-spring-quick) var(--n-ease-spring-quick);
}
.n-btn--block { display: flex; width: 100%; padding: 2px 28px; }
.n-btn--full { display: flex; width: 100%; padding: 2px 28px; border-radius: 0; }
.n-btn--sm { min-width: 52px; min-height: 32px; padding: 2px 10px; border-radius: var(--n-radius-sm); font-size: 13px; --_dot: 5px; --_gap: 3px; }
.n-btn--md { min-width: 64px; min-height: 38px; padding: 2px 16px; border-radius: var(--n-radius-r10); font-size: 15px; --_dot: 5px; --_gap: 4px; }
.n-btn--lg { min-width: 80px; min-height: 48px; padding: 2px 16px; border-radius: var(--n-radius-r14); font-size: 17px; --_dot: 8px; --_gap: 5px; }
.n-btn--xl { min-width: 96px; min-height: 56px; padding: 15px 28px; border-radius: var(--n-radius-lg); font-size: 17px; --_dot: 8px; --_gap: 7px; }
.n-btn--xl.n-btn--block, .n-btn--xl.n-btn--full { padding: 2px 28px; }
.n-btn--sm.n-btn--full, .n-btn--md.n-btn--full, .n-btn--lg.n-btn--full, .n-btn--xl.n-btn--full { border-radius: 0; }
.n-btn--full:active:not([disabled]):not([aria-disabled="true"]):not([aria-busy="true"]) { transform: none; }
.n-btn--weak { --_bg: var(--n-brand-weak-bg); --_fg: var(--n-brand-weak-text); --_dim: var(--n-brand-fill); --_glow: var(--n-brand-fill); --_glow-o: 0.24; --_dot-c: var(--n-loader-weak-brand); }
.n-btn--neutral { --_bg: var(--n-neutral-fill); --_fg: var(--n-text-on-fill); }
.n-btn--neutral.n-btn--weak { --_bg: var(--n-neutral-weak-bg); --_fg: var(--n-neutral-weak-text); --_dim: var(--n-neutral-fill); --_glow: var(--n-neutral-fill); --_dot-c: var(--n-loader-weak-neutral); }
.n-btn--primary { --_bg: var(--n-primary-fill); --_fg: var(--n-primary-on-fill); }
.n-btn--primary.n-btn--weak { --_bg: var(--n-primary-weak-bg); --_fg: var(--n-brand-weak-text); --_dim: var(--n-primary-fill); --_glow: var(--n-primary-fill); }
.n-btn--danger { --_bg: var(--n-danger-fill); --_fg: var(--n-text-on-fill); }
.n-btn--danger.n-btn--weak { --_bg: var(--n-danger-weak-bg); --_fg: var(--n-danger-weak-text); --_dim: var(--n-danger-fill); --_glow: var(--n-danger-fill); --_dot-c: var(--n-loader-weak-danger); }
.n-btn--light { --_bg: #fff; --_fg: var(--n-btn-light-text); --_dim: rgba(0, 0, 0, 0.5); --_dot-c: var(--n-grey-opacity-600, rgba(0, 19, 43, 0.58)); --_glow: oklch(from #fff calc(l - 0.134) c h); }
.n-btn--light.n-btn--weak { --_bg: var(--n-btn-light-weak-bg); --_fg: #fff; --_dim: #fff; --_glow: #fff; --_dot-c: var(--n-loader-weak-light); }
.n-btn[disabled], .n-btn[aria-disabled="true"] { opacity: var(--n-opacity-fill-disabled); cursor: default; pointer-events: none; transform: none; }
.n-btn--weak[disabled], .n-btn--weak[aria-disabled="true"] { opacity: 1; --_fg: color-mix(in srgb, var(--n-brand-weak-text) 30%, transparent); }
.n-btn--neutral.n-btn--weak[disabled], .n-btn--neutral.n-btn--weak[aria-disabled="true"] { --_fg: color-mix(in srgb, var(--n-neutral-weak-text) 30%, transparent); }
.n-btn--danger.n-btn--weak[disabled], .n-btn--danger.n-btn--weak[aria-disabled="true"] { --_fg: color-mix(in srgb, var(--n-danger-weak-text) 30%, transparent); }
.n-btn[aria-busy="true"] { color: transparent; pointer-events: none; box-shadow: inset 0 0 0 100vmax color-mix(in srgb, var(--_dim) calc(var(--n-opacity-press-dim) * var(--n-opacity-load-dim) * 100%), transparent); }
.n-btn[aria-busy="true"] > * { opacity: 0; }
.n-btn[aria-busy="true"]::before {
  content: ""; position: absolute; top: 50%; left: 50%; width: 105%; aspect-ratio: 1 / 1; transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(closest-side, var(--_glow) 0%, transparent 100%); animation: n-btn-glow 600ms cubic-bezier(0.25, 0.1, 0.25, 1) infinite alternate;
}
.n-btn[aria-busy="true"]::after {
  content: ""; position: absolute; top: calc(50% - var(--_dot) / 2 - var(--_dot-off)); left: calc(50% - var(--_dot) / 2); width: var(--_dot); height: var(--_dot); border-radius: 50%; pointer-events: none;
  animation: n-dots 600ms linear infinite;
}
@keyframes n-btn-glow { from { opacity: 0; } to { opacity: var(--_glow-o); } }
@keyframes n-dots {
  0% { box-shadow: calc(var(--_dot-x) * -1) var(--_dot-off) 0 calc(var(--_dot) * -0.1) color-mix(in srgb, var(--_dot-c) 20.0%, transparent), calc(var(--_dot-x) * 0) var(--_dot-off) 0 calc(var(--_dot) * -0.067) color-mix(in srgb, var(--_dot-c) 46.7%, transparent), calc(var(--_dot-x) * 1) var(--_dot-off) 0 calc(var(--_dot) * -0.033) color-mix(in srgb, var(--_dot-c) 73.3%, transparent); }
  17% { box-shadow: calc(var(--_dot-x) * -1) var(--_dot-off) 0 calc(var(--_dot) * -0.067) color-mix(in srgb, var(--_dot-c) 46.7%, transparent), calc(var(--_dot-x) * 0) var(--_dot-off) 0 calc(var(--_dot) * -0.1) color-mix(in srgb, var(--_dot-c) 20.0%, transparent), calc(var(--_dot-x) * 1) var(--_dot-off) 0 calc(var(--_dot) * -0.067) color-mix(in srgb, var(--_dot-c) 46.7%, transparent); }
  33% { box-shadow: calc(var(--_dot-x) * -1) var(--_dot-off) 0 calc(var(--_dot) * -0.033) color-mix(in srgb, var(--_dot-c) 73.3%, transparent), calc(var(--_dot-x) * 0) var(--_dot-off) 0 calc(var(--_dot) * -0.067) color-mix(in srgb, var(--_dot-c) 46.7%, transparent), calc(var(--_dot-x) * 1) var(--_dot-off) 0 calc(var(--_dot) * -0.1) color-mix(in srgb, var(--_dot-c) 20.0%, transparent); }
  50% { box-shadow: calc(var(--_dot-x) * -1) var(--_dot-off) 0 calc(var(--_dot) * -0.0) color-mix(in srgb, var(--_dot-c) 100.0%, transparent), calc(var(--_dot-x) * 0) var(--_dot-off) 0 calc(var(--_dot) * -0.033) color-mix(in srgb, var(--_dot-c) 73.3%, transparent), calc(var(--_dot-x) * 1) var(--_dot-off) 0 calc(var(--_dot) * -0.067) color-mix(in srgb, var(--_dot-c) 46.7%, transparent); }
  67% { box-shadow: calc(var(--_dot-x) * -1) var(--_dot-off) 0 calc(var(--_dot) * -0.033) color-mix(in srgb, var(--_dot-c) 73.3%, transparent), calc(var(--_dot-x) * 0) var(--_dot-off) 0 calc(var(--_dot) * -0.0) color-mix(in srgb, var(--_dot-c) 100.0%, transparent), calc(var(--_dot-x) * 1) var(--_dot-off) 0 calc(var(--_dot) * -0.033) color-mix(in srgb, var(--_dot-c) 73.3%, transparent); }
  83% { box-shadow: calc(var(--_dot-x) * -1) var(--_dot-off) 0 calc(var(--_dot) * -0.067) color-mix(in srgb, var(--_dot-c) 46.7%, transparent), calc(var(--_dot-x) * 0) var(--_dot-off) 0 calc(var(--_dot) * -0.033) color-mix(in srgb, var(--_dot-c) 73.3%, transparent), calc(var(--_dot-x) * 1) var(--_dot-off) 0 calc(var(--_dot) * -0.0) color-mix(in srgb, var(--_dot-c) 100.0%, transparent); }
  100% { box-shadow: calc(var(--_dot-x) * -1) var(--_dot-off) 0 calc(var(--_dot) * -0.1) color-mix(in srgb, var(--_dot-c) 20.0%, transparent), calc(var(--_dot-x) * 0) var(--_dot-off) 0 calc(var(--_dot) * -0.067) color-mix(in srgb, var(--_dot-c) 46.7%, transparent), calc(var(--_dot-x) * 1) var(--_dot-off) 0 calc(var(--_dot) * -0.033) color-mix(in srgb, var(--_dot-c) 73.3%, transparent); }
}
.n-btn-pair { display: flex; gap: var(--n-space-8); }
.n-btn-pair > .n-btn { flex: 1 1 0; min-width: 0; }
.n-btn-pair > .n-btn:first-child:not(:only-child) { flex: 0 0 auto; min-width: 33%; }

/* 글자 버튼과 아이콘 버튼. 토스 TextButton 글자 크기: xs 13, 기본 15, lg 17, xl 20, 2xl 22, 3xl 28 */
.n-textbtn {
  display: inline-flex; align-items: center; gap: var(--n-space-4); min-height: 44px; padding: 0 var(--n-space-8);
  margin: 0 calc(var(--n-space-8) * -1); border: 0; border-radius: var(--n-radius-sm); background: transparent;
  color: var(--n-text-sub); font: inherit; font-size: 15px; line-height: 1.252; font-weight: 500; cursor: pointer; text-decoration: none; transition: transform var(--n-dur-spring-rapid) var(--n-ease-spring-rapid);
}
.n-textbtn:active { background: var(--n-bg-pressed); transform: scale(0.96); }
.n-textbtn:disabled { opacity: var(--n-opacity-fill-disabled); cursor: default; pointer-events: none; }
.n-textbtn--brand { color: var(--n-brand-text); }
.n-textbtn--xs { font-size: 13px; }
.n-textbtn--lg { font-size: 17px; }
.n-textbtn--xl { font-size: 20px; }
.n-textbtn--2xl { font-size: 22px; }
.n-textbtn--3xl { font-size: 28px; }
.n-textbtn--underline { text-decoration: underline; text-underline-position: under; }
.n-textbtn--arrow::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 1.6px 1.6px 0 0; transform: rotate(45deg); margin-left: 2px; }
.n-iconbtn {
  display: inline-flex; align-items: center; justify-content: center; position: relative; width: 48px; height: 48px; padding: 0;
  border: 0; border-radius: var(--n-radius-md); background: transparent; color: var(--n-icon); cursor: pointer;
  transition: transform var(--n-dur-spring-quick) var(--n-ease-spring-quick), background-color var(--n-dur-spring-quick) var(--n-ease-spring-quick);
}
/* 토스 IconButton 눌림: 0.9배, 바탕 greyOpacity100(--n-bg-pressed). 채움 변형은 한 단계 진한 greyOpacity200 */
.n-iconbtn:active { background: var(--n-bg-pressed); transform: scale(0.9); transition: transform var(--n-dur-spring-rapid) var(--n-ease-spring-rapid), background-color var(--n-dur-spring-rapid) var(--n-ease-spring-rapid); }
.n-iconbtn--fill { background: var(--n-bg-pressed); }
.n-iconbtn--fill:active { background: var(--n-iconbtn-fill-pressed); }
.n-iconbtn svg { width: 24px; height: 24px; }

/* ---------- 입력 ---------- */
/* 토스 TextField box(기본), line, big. 초점은 테두리 대신 옅은 막 0.05 */
.n-field { display: flex; flex-direction: column; gap: var(--n-space-6); }
.n-field__label { padding: 0 4px; font-size: var(--n-type-caption-size); line-height: var(--n-type-caption-line); font-weight: 400; color: var(--n-grey-800); }
.n-field:focus-within .n-field__label { color: var(--n-brand-text); }
.n-field__help { padding: 0 4px; font-size: var(--n-type-caption-size); line-height: var(--n-type-caption-line); color: var(--n-grey-600); margin: 0; }
.n-input, .n-textarea, .n-select {
  width: 100%; min-height: 55.5px; padding: 14px 16px; border: 1px solid var(--n-field-border);
  border-radius: var(--n-radius-r14); background-color: var(--n-field-bg); color: var(--n-grey-800); caret-color: var(--n-brand-fill);
  font: inherit; font-size: 17px; line-height: 25.5px;
  transition: background-color 0.2s ease;
  -webkit-appearance: none; appearance: none;
}
.n-textarea { min-height: 112px; resize: vertical; }
.n-select { background-image: linear-gradient(45deg, transparent 50%, var(--n-icon) 50%), linear-gradient(135deg, var(--n-icon) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.n-input::placeholder, .n-textarea::placeholder { color: var(--n-field-placeholder); }
.n-input:focus, .n-textarea:focus { outline: none; background-image: linear-gradient(var(--n-field-focus-tint), var(--n-field-focus-tint)); }
.n-select:focus { outline: none; }
.n-input[disabled], .n-textarea[disabled], .n-select[disabled] { color: var(--n-grey-400); -webkit-text-fill-color: var(--n-grey-400); background-color: var(--n-grey-200); cursor: not-allowed; }
.n-field--error .n-input, .n-field--error .n-textarea, .n-input[aria-invalid="true"] { background-image: linear-gradient(var(--n-field-error-tint), var(--n-field-error-tint)); }
.n-field--error .n-field__help, .n-field--error .n-field__label { color: var(--n-danger-weak-text); }
.n-input--line, .n-input--big { min-height: 0; padding: 0 0 4px; border: 0; border-bottom: 2px solid var(--n-grey-100); border-radius: 0; background: transparent; font-weight: 600; font-size: 22px; line-height: 31px; }
.n-input--big { font-size: 30px; line-height: 40px; }
.n-input--line:focus, .n-input--big:focus { background-image: none; border-bottom-color: var(--n-brand-400); }
.n-field--error .n-input--line, .n-field--error .n-input--big, .n-input--line[aria-invalid="true"], .n-input--big[aria-invalid="true"] { background-image: none; border-bottom-color: var(--n-danger-weak-text); }
.n-input-wrap { position: relative; display: flex; align-items: center; }
.n-input-wrap > .n-input { padding-right: 52px; }
.n-input-wrap__suffix { position: absolute; right: var(--n-space-16); color: var(--n-text-sub); pointer-events: none; }
.n-input-wrap > .n-iconbtn { position: absolute; right: 4px; }
.n-search { display: flex; align-items: center; gap: var(--n-space-8); min-height: 44px; padding: 8px 10px; border-radius: var(--n-radius-md); background: var(--n-bg-pressed); color: var(--n-grey-600); }
.n-search input { flex: 1; min-width: 0; height: 100%; border: 0; padding: 0; background: transparent; color: var(--n-grey-900); caret-color: var(--n-brand-fill); font: inherit; font-size: 16px; line-height: 1.252; outline: none; }
.n-search input::placeholder { color: var(--n-field-placeholder); }
.n-navbar .n-search { flex: 0 1 var(--n-search-max); min-width: 0; margin-left: auto; }
@media (max-width: 599px) { .n-navbar .n-search { flex: 1 1 auto; } .n-navbar__title:has(~ .n-search) { flex: 0 0 auto; } }

/* ---------- 선택 컨트롤 ---------- */
/* 체크는 토스 Checkbox.Circle(24 상자, 지름 22 원). 라디오는 토스에 대응이 없어 기존 모양 */
.n-check, .n-radio { display: inline-flex; align-items: center; gap: var(--n-space-12); min-height: 44px; cursor: pointer; color: var(--n-text-body); }
.n-radio input {
  -webkit-appearance: none; appearance: none; flex: none; width: 24px; height: 24px; margin: 0;
  border: 2px solid var(--n-control-border); background: var(--n-bg-base); cursor: pointer;
  display: inline-grid; place-content: center; transition: background-color var(--n-dur-fast), border-color var(--n-dur-fast);
}
.n-check input {
  -webkit-appearance: none; appearance: none; flex: none; width: 22px; height: 22px; margin: 1px; border-radius: 50%;
  border: 2px solid var(--n-check-border); background: transparent; cursor: pointer;
  display: inline-grid; place-content: center; transition: background-color var(--n-dur-spring-quick) var(--n-ease-spring-quick), border-color var(--n-dur-spring-quick) var(--n-ease-spring-quick);
}
.n-check input::before { content: ""; width: 10px; height: 6px; border: solid var(--n-check-border); border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.n-check input:checked { background: var(--n-brand-fill); border-color: var(--n-brand-fill); }
.n-check input:checked::before { border-color: var(--n-brand-on-fill); }
.n-check:not(.n-check--line) input:active:not(:checked):not(:disabled) { border-color: var(--n-grey-400); }
.n-check input:active:not(:checked):not(:disabled)::before { border-color: var(--n-grey-400); }
@media (hover: hover) and (pointer: fine) {
  .n-check:not(.n-check--line) input:hover:not(:checked):not(:disabled) { border-color: var(--n-grey-400); }
  .n-check input:hover:not(:checked):not(:disabled)::before { border-color: var(--n-grey-400); }
}
.n-check:not(.n-check--line) input:disabled:not(:checked)::before { border-color: var(--n-grey-200); }
.n-check--line input { border-color: transparent; background: transparent; }
.n-check--line input:checked { border-color: transparent; background: transparent; }
.n-check--line input::before { border-color: var(--n-grey-300); border-width: 0 0 2.6px 2.6px; width: 14px; height: 8px; }
.n-check--line input:checked::before { border-color: var(--n-brand-fill); }
.n-radio input { border-radius: 50%; }
.n-radio input::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--n-brand-on-fill); transform: scale(0); transition: transform var(--n-dur-fast) var(--n-ease-enter); }
.n-radio input:checked { background: var(--n-brand-fill); border-color: var(--n-brand-fill); }
.n-radio input:checked::before { transform: scale(1); }
.n-check input:disabled { opacity: var(--n-opacity-disabled); cursor: not-allowed; }
.n-radio input:disabled { border-color: var(--n-border-strong); background: var(--n-disabled-fill); cursor: not-allowed; }
.n-check:has(input:disabled), .n-radio:has(input:disabled) { color: var(--n-disabled-text); cursor: not-allowed; }
/* 토스 Switch: 50×30, 끈 손잡이 16, 켠 손잡이 24, 눌림 0.96 */
.n-switch {
  -webkit-appearance: none; appearance: none; position: relative; flex: none; width: 50px; height: 30px; margin: 0;
  border-radius: 15px; background: var(--n-grey-200); cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--n-dur-spring-quick) var(--n-ease-spring-quick), transform var(--n-dur-spring-quick) var(--n-ease-spring-quick);
}
.n-switch::before { content: ""; position: absolute; top: 7px; left: 7px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform var(--n-dur-spring-medium) var(--n-ease-spring-medium), width var(--n-dur-spring-quick) var(--n-ease-spring-quick), height var(--n-dur-spring-quick) var(--n-ease-spring-quick), top var(--n-dur-spring-quick) var(--n-ease-spring-quick); }
.n-switch:active:not(:disabled) { transform: scale(0.96); background: var(--n-grey-400); transition: background-color var(--n-dur-spring-rapid) var(--n-ease-spring-rapid), transform var(--n-dur-spring-rapid) var(--n-ease-spring-rapid); }
.n-switch:checked { background: var(--n-brand-fill); }
.n-switch:checked:active:not(:disabled) { background: var(--n-brand-fill-pressed); }
.n-switch:checked::before { top: 3px; width: 24px; height: 24px; transform: translateX(16px); }
.n-switch:disabled { opacity: var(--n-opacity-fill-disabled); cursor: initial; }
/* 토스 SegmentedControl: large(기본), small. 표시기 흰 판과 그림자 */
.n-segmented { display: flex; padding: 4px 5px; gap: 0; border-radius: var(--n-radius-r14); background: var(--n-bg-pressed); }
.n-segmented label { flex: 1 1 0; position: relative; min-width: 0; }
.n-segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.n-segmented span { display: flex; align-items: center; justify-content: center; padding: 7px 12px; border-radius: var(--n-radius-r10); font-size: 17px; line-height: 25.5px; font-weight: 500; white-space: nowrap; color: var(--n-grey-600); transition: background-color var(--n-dur-spring-quick) var(--n-ease-spring-quick), color 0.2s ease; }
.n-segmented input:checked + span { background: var(--n-segmented-indicator); color: var(--n-grey-800); font-weight: 600; box-shadow: var(--n-shadow-indicator); }
.n-segmented input:focus-visible + span { outline: 2px solid var(--n-focus-ring); outline-offset: 1px; }
.n-segmented input:disabled + span { opacity: 0.4; cursor: not-allowed; }
.n-segmented--sm { padding: 3px; border-radius: var(--n-radius-r10); }
.n-segmented--sm span { padding: 5px 14px; border-radius: var(--n-radius-sm); font-size: 15px; line-height: 23.3px; }

/* ---------- 목록 ---------- */
/* 토스 ListRow: 좌우 24, 위아래 12(sm 8, lg 16, xl 24), 최소 44, 글자 17/1.35 500 */
.n-list { list-style: none; margin: 0; padding: 0; }
.n-list-header { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--n-space-12); padding: var(--n-space-24) 24px var(--n-space-8); }
.n-list-header__title { margin: 0; font-size: var(--n-type-heading-size); line-height: var(--n-type-heading-line); font-weight: 700; color: var(--n-text-title); }
.n-list-header__desc { margin: 0 0 2px; font-size: var(--n-type-caption-size); color: var(--n-text-sub); }
.n-list-row {
  display: flex; align-items: center; gap: var(--n-space-16); min-height: 44px; width: 100%;
  padding: var(--n-space-12) 24px; border: 0; background: transparent; color: inherit;
  font: inherit; text-align: left; text-decoration: none; position: relative; -webkit-tap-highlight-color: transparent;
}
.n-list-row--sm { padding-block: var(--n-space-8); padding-inline: 20px; }
.n-list-row--lg { padding-block: var(--n-space-16); }
.n-list-row--xl { padding-block: var(--n-space-24); }
.n-list > li + li > .n-list-row::before, .n-list-row + .n-list-row::before { content: ""; position: absolute; top: 0; left: 24px; right: 0; height: 1px; background: var(--n-border-hairline); }
.n-list--plain > li + li > .n-list-row::before, .n-list--plain .n-list-row + .n-list-row::before { display: none; }
a.n-list-row, button.n-list-row, .n-list-row--tap { cursor: pointer; }
a.n-list-row:active, button.n-list-row:active, .n-list-row--tap:active { background: var(--n-bg-pressed); border-radius: var(--n-radius-md); }
.n-list-row[aria-disabled="true"] { pointer-events: none; }
.n-list-row[aria-disabled="true"]::after { content: ""; position: absolute; inset: 0; background: var(--n-row-disabled); }
.n-list-row__lead { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--n-radius-md); background: var(--n-bg-weak); color: var(--n-icon); overflow: hidden; }
.n-list-row__lead--circle { border-radius: 50%; }
.n-list-row__lead img { width: 100%; height: 100%; object-fit: cover; }
.n-list-row__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.n-list-row__title { font-size: 17px; line-height: 1.35; font-weight: 500; color: var(--n-grey-700); }
.n-list-row__desc { font-size: 15px; line-height: 1.35; color: var(--n-grey-600); }
.n-list-row__trail { flex: none; display: flex; align-items: center; gap: var(--n-space-8); text-align: right; font-size: var(--n-type-body2-size); color: var(--n-grey-600); font-variant-numeric: tabular-nums; }
.n-list-row__trail strong { font-size: 17px; color: var(--n-grey-800); font-weight: 700; }
.n-list-row__chev { flex: none; width: 8px; height: 8px; border: solid var(--n-grey-400); border-width: 2px 2px 0 0; transform: rotate(45deg); margin-right: 4px; }
.n-list-footer { display: flex; justify-content: center; padding: var(--n-space-8) var(--n-gutter); border-top: 1px solid var(--n-border-hairline); }
.n-kv { display: flex; justify-content: space-between; gap: var(--n-space-16); padding: var(--n-space-8) var(--n-gutter); font-size: var(--n-type-body2-size); line-height: var(--n-type-body2-line); }
.n-kv dt { color: var(--n-text-sub); }
.n-kv dd { margin: 0; color: var(--n-text-strong); text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- 내비게이션과 탭 ---------- */
/* 토스 TopNavigation 높이 54(안드로이드 기준, iOS 는 시스템 44), 제목 17 600 */
.n-navbar {
  position: sticky; top: 0; z-index: var(--n-z-header); display: flex; align-items: center; gap: var(--n-space-4);
  height: calc(var(--n-header) + var(--n-safe-top)); padding: var(--n-safe-top) var(--n-space-8) 0; background: var(--n-bg-base);
}
.n-navbar--line { border-bottom: 1px solid var(--n-border-hairline); }
.n-navbar__title { text-decoration: none; flex: 1 1 auto; min-width: 0; margin: 0; font-size: 17px; line-height: 1.252; font-weight: 600; color: var(--n-text-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.n-navbar__title--center { text-align: center; }
.n-navbar__title:first-child { padding-left: var(--n-space-12); }
.n-navbar__actions { display: flex; align-items: center; }
/* 토스 Tab: large 글자 17 칸 위아래 12 14, small 글자 15 칸 8, 칸 좌우 8, 표시선 2 */
.n-tabs { display: flex; gap: 0; padding: 0 var(--n-gutter); box-shadow: inset 0 -1px 0 var(--n-border-hairline); overflow-x: auto; scrollbar-width: none; line-height: 1.252; }
.n-tabs::-webkit-scrollbar { display: none; }
.n-tabs--fixed .n-tab { flex: 1 1 0; }
.n-tab {
  position: relative; flex: none; min-width: 64px; padding: 12px 8px 14px; border: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: 17px; line-height: 1.252; font-weight: 600; color: var(--n-grey-600); white-space: nowrap; transition: color 0.3s ease;
}
.n-tabs--sm .n-tab { padding: 8px; font-size: 15px; }
.n-tab[aria-selected="true"] { color: var(--n-grey-800); font-weight: 700; }
.n-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; background: var(--n-grey-800); border-radius: 1px; }
.n-tab__dot { display: inline-block; width: 6px; height: 6px; margin-left: 4px; vertical-align: top; border-radius: 3px; background: #f44336; }
.n-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--n-z-cta); display: flex; height: calc(var(--n-tabbar) + var(--n-safe-bottom)); padding-bottom: var(--n-safe-bottom); background: var(--n-bg-base); border-top: 1px solid var(--n-border-hairline); }
.n-tabbar a { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--n-icon-weak); font-size: 11px; line-height: 14px; font-weight: 600; text-decoration: none; }
.n-tabbar a[aria-current="page"] { color: var(--n-text-strong); }
.n-tabbar svg { width: 24px; height: 24px; }

/* ---------- 하단 CTA ---------- */
/* 토스 BottomCTA: 위 번짐 36, 좌우 20, 아래 20(안전 영역과 큰 값), 단추 사이 8 */
.n-bottom-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--n-z-cta);
  padding: 36px 20px max(var(--n-safe-bottom), 20px);
  background: linear-gradient(to bottom, transparent, var(--n-bg-base) 36px);
}
.n-bottom-cta__inner { max-width: var(--n-content-max); margin: 0 auto; display: flex; flex-direction: column; gap: var(--n-space-8); }
.n-bottom-cta__note { margin: 0; text-align: center; font-size: var(--n-type-caption-size); line-height: var(--n-type-caption-line); color: var(--n-text-sub); }
.n-bottom-cta--static { position: static; }
.n-bottom-cta--inline { position: static; padding: var(--n-space-24) 0 0; background: none; }
.n-bottom-cta-spacer { height: calc(56px + 56px + var(--n-safe-bottom)); }

/* ---------- 서랍과 본문 ---------- */
.n-drawer {
  position: fixed; top: var(--n-header); bottom: 0; left: 0; z-index: var(--n-z-header); width: var(--n-drawer); max-width: 86vw;
  display: flex; flex-direction: column; padding-bottom: var(--n-space-16); border-right: 1px solid var(--n-border-hairline);
  background: var(--n-bg-layer); overflow-y: auto; transition: transform var(--n-dur-base) var(--n-ease-standard), visibility var(--n-dur-base);
}
.n-drawer[data-open="false"] { transform: translateX(-100%); visibility: hidden; }
.n-drawer > nav { flex: 1 1 auto; }
.n-drawer [aria-current="page"] { background: var(--n-bg-weak); }
.n-drawer [aria-current="page"] .n-list-row__title { color: var(--n-text-strong); font-weight: 700; }
.n-drawer .n-list-row__title { overflow-wrap: anywhere; }
.n-drawer ~ main { min-width: 0; padding: var(--n-space-24) 0 var(--n-space-48); }
.n-drawer__dim { display: none; }
@media (min-width: 900px) { .n-drawer[data-open="true"] ~ main { margin-left: var(--n-drawer); } }
@media (max-width: 899px) {
  .n-drawer__dim { position: fixed; inset: var(--n-header) 0 0 0; z-index: calc(var(--n-z-header) - 1); border: 0; padding: 0; background: var(--n-bg-dim); }
  .n-drawer__dim[data-open="false"] { display: none; }
  .n-drawer__dim[data-open="true"] { display: block; }
}
.n-prose { font-size: var(--n-type-body1-size); line-height: var(--n-type-body1-para); color: var(--n-text-body); overflow-wrap: anywhere; word-break: keep-all; }
.n-prose h1, .n-prose h2, .n-prose h3, .n-prose h4, .n-prose h5, .n-prose h6 { margin: var(--n-space-24) 0 var(--n-space-8); line-height: var(--n-type-title3-line); color: var(--n-text-strong); scroll-margin-top: calc(var(--n-header) + var(--n-space-8)); }
.n-prose h1 { font-size: var(--n-type-title1-size); } .n-prose h2 { font-size: var(--n-type-title2-size); } .n-prose h3 { font-size: var(--n-type-title3-size); } .n-prose h4 { font-size: var(--n-type-heading-size); } .n-prose h5, .n-prose h6 { font-size: var(--n-type-body1-size); }
.n-prose p, .n-prose ul, .n-prose ol, .n-prose blockquote, .n-prose pre, .n-prose .n-table-wrap { margin: var(--n-space-12) 0; }
.n-prose ul, .n-prose ol { padding-left: var(--n-space-24); }
.n-prose li + li { margin-top: var(--n-space-4); }
.n-prose a { color: var(--n-text-strong); text-decoration: underline; }
.n-prose blockquote { padding: var(--n-space-4) var(--n-space-16); border-left: 3px solid var(--n-border-hairline); color: var(--n-text-sub); }
.n-prose code { font-family: var(--n-font-mono); font-size: var(--n-type-body2-size); padding: 1px var(--n-space-6); border-radius: var(--n-radius-xs); background: var(--n-bg-weak); }
.n-prose pre { padding: var(--n-space-12) var(--n-space-16); border-radius: var(--n-radius-md); background: var(--n-bg-weak); overflow-x: auto; }
.n-prose pre code { padding: 0; background: none; }
/* 본문 안의 표는 nollie-md 가 화면용 표(.n-table)로 그린다. .n-prose table 값은 없다 */
.n-prose img { max-width: 100%; height: auto; }
.n-prose hr { border: 0; border-top: 1px solid var(--n-border-hairline); margin: var(--n-space-24) 0; }
.n-prose > :first-child { margin-top: 0; }
.n-prose > :last-child { margin-bottom: 0; }
.n-prose strong { color: var(--n-text-strong); }
.n-prose li > ul, .n-prose li > ol { margin: var(--n-space-4) 0 0; }
.n-prose li:has(> input[type="checkbox"]), .n-prose li:has(> p > input[type="checkbox"]) { margin-left: calc(var(--n-space-24) * -1); list-style: none; }
.n-prose input[type="checkbox"] { width: 16px; height: 16px; margin: 0 var(--n-space-8) 0 0; vertical-align: -2px; accent-color: var(--n-primary-fill); }
.n-prose__anchor { margin-left: var(--n-space-6); color: var(--n-text-sub); font-weight: 400; text-decoration: none; opacity: 0; }
.n-prose :is(h1, h2, h3, h4, h5, h6):hover > .n-prose__anchor, .n-prose__anchor:focus-visible { opacity: 1; }
.n-mark { padding: 0; border-radius: var(--n-radius-xs); background: var(--n-mark-bg); color: var(--n-mark-text); }

/* ---------- 겹침: 바텀시트, 다이얼로그, 토스트 ---------- */
.n-dim { position: fixed; inset: 0; z-index: var(--n-z-sheet); background: var(--n-bg-dim); animation: n-fade var(--n-dur-spring-quick) var(--n-ease-spring-quick); }
/* 토스 BottomSheet: 양옆 10 띄운 판, 아래는 붙음, 모서리 28, 손잡이 48×4 */
.n-sheet {
  position: fixed; left: 10px; right: 10px; bottom: var(--n-safe-bottom); z-index: var(--n-z-sheet); max-height: calc(100vh - 64px); overflow: auto;
  max-width: var(--n-content-max); margin: 0 auto; padding: 21px 0 13px;
  border-radius: var(--n-radius-r28); background: var(--n-bg-layer); box-shadow: var(--n-shadow-lg);
  animation: n-rise var(--n-dur-sheet) var(--n-ease-enter);
}
.n-sheet__handle { width: 48px; height: 4px; margin: 0 auto var(--n-space-12); border-radius: 5px; background: var(--n-grey-200); }
.n-sheet__title { margin: var(--n-space-4) var(--n-space-24) 0; font-size: var(--n-type-title3-size); line-height: var(--n-type-title3-line); font-weight: 700; color: var(--n-grey-900); }
.n-sheet__desc { margin: var(--n-space-8) 44px 0 var(--n-space-24); font-size: 15px; line-height: 22.5px; color: var(--n-grey-600); }
.n-sheet__body { margin-top: var(--n-space-16); }
.n-sheet__cta { display: flex; gap: var(--n-space-8); padding: var(--n-space-24) 20px 7px; }
.n-sheet__cta > .n-btn { flex: 1 1 0; }
/* 토스 Dialog: 최대 320, 모서리 24, 안쪽 22, 단추 줄 20 16 16 */
.n-dialog {
  position: fixed; left: 50%; top: 50%; z-index: var(--n-z-dialog); transform: translate(-50%, -50%);
  width: calc(100vw - 64px); max-width: 320px; max-height: calc(100vh - 160px); overflow: hidden; padding: 0;
  border-radius: var(--n-radius-2xl); background: var(--n-bg-float); box-shadow: var(--n-shadow-lg);
  animation: n-pop var(--n-dur-spring-quick) var(--n-ease-spring-quick);
}
.n-dialog__title { margin: 22px 22px 0; font-size: 20px; line-height: 27px; font-weight: 700; color: var(--n-grey-800); }
.n-dialog__desc { margin: var(--n-space-8) 22px 0; font-size: 15px; line-height: 22.5px; font-weight: 500; color: var(--n-grey-600); max-height: 40vh; overflow: auto; }
.n-dialog > .n-dialog__desc:first-child { margin-top: 22px; }
.n-dialog__actions { display: flex; flex-wrap: wrap-reverse; gap: var(--n-space-8); margin: 20px 16px 16px; }
.n-dialog__actions > .n-btn { flex: 1 1 calc(50% - 8px); min-width: calc(50% - 8px); }
.n-dialog__actions--stack { flex-direction: column-reverse; flex-wrap: nowrap; }
.n-dialog__actions--stack > .n-btn { flex: none; }
/* 토스 Toast: 아래 토스트와 행동 단추 토스트는 회색 판(안쪽 14 20, 단추 있으면 14 14 14 16), 위 토스트는 흰 판(안쪽 12 16). 한 줄 모서리 100, 여러 줄 20, 글자 15 600 */
.n-toast {
  position: fixed; left: 50%; z-index: var(--n-z-toast); transform: translateX(-50%);
  display: flex; align-items: center; gap: 0; width: max-content; max-width: min(375px, calc(100vw - 40px));
  padding: 14px 20px; border-radius: 100px;
  background: var(--n-toast-bottom-bg); color: var(--n-toast-bottom-text);
  font-size: 15px; line-height: 22.5px; font-weight: 600; word-break: break-all;
  animation: n-rise-sm var(--n-dur-spring-quick) var(--n-ease-spring-quick);
}
.n-toast:has(> .n-toast__icon) { padding-left: 16px; }
.n-toast:has(> .n-toast__action) { justify-content: space-between; width: min(375px, calc(100vw - 40px)); padding: 14px 14px 14px 16px; }
.n-toast--bottom { bottom: max(calc(var(--n-space-20) + var(--n-safe-bottom)), 20px); }
.n-toast--above-cta { bottom: calc(56px + var(--n-space-20) + var(--n-space-20) + var(--n-safe-bottom)); }
.n-toast--top { top: max(46px, calc(var(--n-space-12) + var(--n-safe-top))); max-width: min(375px, calc(100vw - 36px)); padding: 12px 16px; background: var(--n-toast-bg); color: var(--n-toast-text); box-shadow: var(--n-shadow-toast); }
.n-toast--top:has(> .n-toast__icon) { padding-left: 12px; }
.n-toast--multi { border-radius: var(--n-radius-xl); }
.n-toast__icon { flex: none; width: 24px; height: 24px; margin-right: var(--n-space-12); }
.n-toast--top .n-toast__icon { margin-right: var(--n-space-8); }
.n-toast__action { flex: none; margin-left: var(--n-space-20); padding: 6px 12px; border: 0; border-radius: 100px; background: var(--n-toast-action-bg); color: var(--n-toast-action-text); font: inherit; font-size: 13px; line-height: 19.5px; font-weight: 600; cursor: pointer; }
.n-toast__action:active { box-shadow: inset 0 0 0 100px rgba(0, 0, 0, 0.1); }
.n-toast--top .n-toast__action { margin-left: var(--n-space-8); color: inherit; }
/* <dialog> 요소로 쓸 때 브라우저 기본 모양을 지운다 (showModal 사용) */
dialog.n-sheet { top: auto; right: 10px; bottom: var(--n-safe-bottom); left: 10px; width: calc(100% - 20px); border: 0; color: inherit; }
dialog.n-dialog { right: auto; bottom: auto; margin: 0; border: 0; color: inherit; }
dialog.n-sheet::backdrop, dialog.n-dialog::backdrop { background: var(--n-bg-dim); }
.n-overlay-static { position: static !important; transform: none !important; left: auto; top: auto; margin: 0 auto; animation: none; }
@keyframes n-fade { from { opacity: 0; } }
@keyframes n-rise { from { transform: translateY(100%); } }
@keyframes n-rise-sm { from { opacity: 0; transform: translate(-50%, 8px); } }
@keyframes n-pop { from { opacity: 0; transform: translate(-50%, -50%) scale(0.96); } }

/* ---------- 배지, 칩, 카드 ---------- */
/* 토스 Badge: xs 10/15, sm 12/18, md(기본) 13/19.5, lg 14/21 */
.n-badge {
  --_bg: var(--n-badge-brand-bg); --_fg: var(--n-badge-brand-text);
  display: inline-flex; align-items: center; justify-content: center; padding: 3px 7px; border-radius: var(--n-radius-md);
  background: var(--_bg); color: var(--_fg); font-size: 13px; line-height: 19.5px; font-weight: 700; white-space: nowrap; vertical-align: middle;
}
.n-badge--xs { padding: 3px 7px; border-radius: 9px; font-size: 10px; line-height: 15px; font-weight: 600; }
.n-badge--sm { padding: 3px 7px; border-radius: 11px; font-size: 12px; line-height: 18px; }
.n-badge--md { padding: 3px 7px; border-radius: var(--n-radius-md); font-size: 13px; line-height: 19.5px; }
.n-badge--lg { padding: 4px 8px; border-radius: 13px; font-size: 14px; line-height: 21px; }
.n-badge--neutral { --_bg: var(--n-badge-elephant-bg); --_fg: var(--n-badge-elephant-text); }
.n-badge--danger { --_bg: var(--n-badge-red-bg); --_fg: var(--n-badge-red-text); }
.n-badge--success { --_bg: var(--n-success-weak-bg); --_fg: var(--n-badge-green-text); }
.n-badge--warning { --_bg: var(--n-warning-weak-bg); --_fg: var(--n-badge-yellow-text); }
.n-badge--info { --_bg: var(--n-badge-blue-bg); --_fg: var(--n-badge-blue-text); }
.n-badge--teal { --_bg: var(--n-badge-teal-bg); --_fg: var(--n-badge-teal-text); }
.n-badge--fill { --_bg: var(--n-brand-fill); --_fg: var(--n-brand-on-fill); }
.n-badge--fill.n-badge--danger { --_bg: var(--n-danger-fill); --_fg: var(--n-text-on-fill); }
.n-badge--fill.n-badge--neutral { --_bg: var(--n-neutral-fill); --_fg: var(--n-text-on-fill); }
.n-badge--fill.n-badge--success { --_bg: var(--n-badge-green-fill); --_fg: var(--n-text-on-fill); }
.n-badge--fill.n-badge--warning { --_bg: var(--n-badge-yellow-fill); --_fg: var(--n-badge-yellow-on); }
.n-badge--fill.n-badge--info { --_bg: var(--n-info-fill); --_fg: var(--n-text-on-fill); }
.n-badge--fill.n-badge--teal { --_bg: var(--n-badge-teal-fill); --_fg: var(--n-text-on-fill); }
/* 토스 Chip(pill, fill): md(기본) 38, sm 32. 터치 영역은 부모 줄이 44 를 맞춘다 */
.n-chip { text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--n-space-4); min-width: 64px; min-height: 38px; padding: 2px 13px;
  border: 0.66px solid var(--n-chip-border); border-radius: 999px; background: var(--n-neutral-weak-bg);
  color: var(--n-chip-text); font: inherit; font-size: 15px; line-height: 1.252; font-weight: 600; cursor: pointer; white-space: nowrap; flex: none;
  transition: background-color var(--n-dur-spring-quick) var(--n-ease-spring-quick), border-color var(--n-dur-spring-quick) var(--n-ease-spring-quick), transform var(--n-dur-spring-quick) var(--n-ease-spring-quick);
}
.n-chip--sm { min-width: 52px; min-height: 32px; padding: 2px 11px; font-size: 13px; }
.n-chip:active:not(:disabled) { transform: scale(0.96); transition: transform var(--n-dur-spring-rapid) var(--n-ease-spring-rapid); }
.n-chip[aria-pressed="true"], .n-chip[aria-checked="true"] { border-color: var(--n-chip-on-border); background: var(--n-chip-on-bg); color: var(--n-bg-base); }
.n-chip:disabled { opacity: 0.5; cursor: default; pointer-events: none; }
.n-chip__x { width: 16px; height: 16px; margin-right: -4px; opacity: 0.7; }
.n-chips { display: flex; gap: 6px; padding: 0 var(--n-gutter); overflow-x: auto; scrollbar-width: none; }
.n-card {
  display: block; padding: var(--n-space-20); border: 1px solid var(--n-border-hairline); border-radius: var(--n-radius-lg);
  background: var(--n-bg-layer); color: inherit; text-decoration: none;
}
.n-card--sunken { border-color: transparent; background: var(--n-bg-sunken); }
a.n-card:active, button.n-card:active { background: var(--n-bg-pressed); }
.n-card__title { margin: 0; font-size: var(--n-type-heading-size); line-height: var(--n-type-heading-line); font-weight: 700; color: var(--n-text-title); }
.n-card__desc { margin: var(--n-space-4) 0 0; font-size: var(--n-type-body2-size); line-height: var(--n-type-body2-para); color: var(--n-text-sub); }
.n-card__figure { margin: var(--n-space-12) 0 0; font-size: var(--n-type-title2-size); line-height: var(--n-type-title2-line); font-weight: 700; color: var(--n-text-strong); font-variant-numeric: tabular-nums; }
.n-card__media { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border: 1px solid var(--n-border-hairline); border-radius: var(--n-radius-md); background: var(--n-bg-sunken); }
ul.n-card__desc { margin-top: var(--n-space-8); padding-left: var(--n-space-20); }

/* ---------- 로딩: 스켈레톤과 로더 ---------- */
/* 토스 Skeleton 조각 크기: 제목 30 모서리 11, 글자 22 모서리 9, 동그라미 40 */
.n-skeleton { display: block; border-radius: var(--n-radius-sm); background: linear-gradient(90deg, var(--n-skeleton) 0, var(--n-skeleton-shine) 40%, var(--n-skeleton) 80%) 0 0 / 300% 100%; animation: n-shine 1.4s linear infinite; }
.n-skeleton--text { height: 22px; width: 33%; border-radius: 9px; }
.n-skeleton--title { height: 30px; width: 50%; border-radius: 11px; }
.n-skeleton--circle { width: 40px; height: 40px; border-radius: 50%; }
.n-skeleton--box { width: 40px; height: 40px; border-radius: var(--n-radius-md); }
.n-skeleton--card { width: 100%; height: 64px; border-radius: 18px; }
@keyframes n-shine { from { background-position: 100% 0; } to { background-position: -50% 0; } }
/* 토스 Loader: small 24(기본), medium 36, large 48. 1.8초에 한 바퀴 */
.n-loader { display: inline-block; width: 24px; height: 24px; border-radius: 50%; border: 3px solid var(--n-bg-weak); border-top-color: var(--n-brand-fill); animation: n-spin 1.8s linear infinite; }
.n-loader--sm { width: 16px; height: 16px; border-width: 2px; }
.n-loader--md { width: 36px; height: 36px; border-width: 4px; }
.n-loader--lg { width: 48px; height: 48px; border-width: 5px; }
@keyframes n-spin { to { transform: rotate(360deg); } }

/* ---------- 빈 상태와 결과 ---------- */
.n-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: var(--n-space-48) var(--n-space-32); }
.n-empty__icon { width: 48px; height: 48px; color: var(--n-icon-weak); margin-bottom: var(--n-space-16); }
.n-empty__title { margin: 0; font-size: var(--n-type-heading-size); line-height: var(--n-type-heading-line); font-weight: 700; color: var(--n-text-title); }
.n-empty__desc { margin: var(--n-space-6) 0 0; font-size: var(--n-type-body2-size); line-height: var(--n-type-body2-para); color: var(--n-text-sub); max-width: 22em; }
.n-empty__action { margin-top: var(--n-space-20); }
.n-empty--error .n-empty__icon { color: var(--n-danger-text); }
.n-result { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px 40px 40px; }
.n-result__icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: var(--n-space-12); border-radius: 50%; background: var(--n-brand-weak-bg); color: var(--n-brand-text); }
.n-result__icon--error { background: var(--n-danger-weak-bg); color: var(--n-danger-text); }
.n-result__icon svg { width: 32px; height: 32px; }
.n-result__title { margin: 0; font-size: 17px; line-height: 25.5px; font-weight: 600; color: var(--n-grey-900); }
.n-result__desc { margin: var(--n-space-4) 0 0; font-size: 15px; line-height: 22.5px; color: var(--n-grey-700); max-width: 22em; }

/* ---------- 진행 표시 ---------- */
/* 토스 ProgressBar: thin 2, 기본 5, bold 8. 바탕 그레이 200, 채움은 주색 400 단계 */
.n-progress { position: relative; width: 100%; height: 5px; border-radius: 2.5px; background: var(--n-grey-200); overflow: hidden; transform: translateZ(0); }
.n-progress > span { display: block; height: 100%; border-radius: inherit; background: var(--n-brand-400); transition: width 0.5s ease-in-out; }
.n-progress--thin { height: 2px; }
.n-progress--bold { height: 8px; border-radius: 4px; }
/* 토스 Stepper(StepperRow): 번호 원 30, 잇는 선 2×32, 글자 왼쪽 16 */
.n-steps { list-style: none; margin: 0; padding: 0 24px; counter-reset: n-step; }
.n-steps li { position: relative; display: flex; gap: var(--n-space-16); padding: 3px 0 var(--n-space-24); counter-increment: n-step; color: var(--n-grey-700); }
.n-steps li::before { content: counter(n-step); flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--n-grey-100); font-size: 13px; font-weight: 700; color: var(--n-grey-700); z-index: 1; }
.n-steps li:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 35px; bottom: 2px; width: 2px; border-radius: 1px; background: var(--n-grey-200); }
.n-steps li[aria-current="step"] { color: var(--n-grey-800); font-weight: 600; }
.n-steps li[aria-current="step"]::before { background: var(--n-brand-fill); color: var(--n-brand-on-fill); }
.n-steps li[data-done]::before { content: "\2713"; color: var(--n-brand-text); }
.n-steps__text { padding-top: 2px; line-height: var(--n-type-body1-line); }

/* ---------- 움직임 줄이기 ---------- */
@media (prefers-reduced-motion: reduce) {
  .n-body *, .n-body *::before, .n-body *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}

/* ---------- 마크다운 편집기 ---------- */
/* 배치는 GitHub 편집기(탭 왼쪽, 도구 모음 오른쪽, 좁으면 두 줄). 도구 단추는 터치 44, 마우스 32 */
.n-mdedit { min-width: 0; border-radius: var(--n-radius-md); box-shadow: inset 0 0 0 1px var(--n-border-hairline); background: var(--n-bg-base); }
.n-mdedit__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 var(--n-space-8); padding-inline: var(--n-space-8); box-shadow: inset 0 -1px 0 var(--n-border-hairline); }
.n-mdedit__head .n-tabs { flex: 0 0 auto; padding: 0; box-shadow: none; }
.n-mdedit__body { padding: var(--n-space-8); }
.n-mdedit__body .n-textarea { display: block; width: 100%; min-height: 60dvh; font-family: var(--n-font-mono); tab-size: 2; }
.n-mdedit__preview { min-height: 60dvh; padding: var(--n-space-16) var(--n-space-24); }
.n-toolbar { display: flex; flex: 0 1 auto; align-items: center; gap: var(--n-space-2); min-width: 0; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.n-toolbar::-webkit-scrollbar { display: none; }
.n-toolbar[hidden] { display: none; }
.n-toolbar__sep { flex: 0 0 auto; width: 1px; height: 20px; margin-inline: var(--n-space-4); background: var(--n-border-hairline); }
.n-toolbar .n-iconbtn { flex: 0 0 auto; }
@media (hover: hover) and (pointer: fine) {
  .n-toolbar .n-iconbtn { width: 32px; height: 32px; border-radius: var(--n-radius-sm); }
  .n-toolbar .n-iconbtn svg { width: 20px; height: 20px; }
  .n-toolbar .n-iconbtn:hover { background: var(--n-bg-pressed); }
}

/* ---------- 뉴스 첫 화면 ---------- */
/* 신문형 머리글과 머리기사, 갈래별 단. 매거진 샘플 news 유형의 배치를 따른다 */
.n-news { display: flex; flex-direction: column; gap: var(--n-space-24); min-width: 0; }
.n-news__mast { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--n-space-8); padding-bottom: var(--n-space-12); border-bottom: 2px solid var(--n-text-strong); }
.n-news__date { margin: 0; font-size: var(--n-type-title1-size); line-height: var(--n-type-title1-line); font-weight: 700; color: var(--n-text-strong); }
.n-news__nav { display: flex; align-items: center; gap: var(--n-space-8); }
.n-news__lead { padding-bottom: var(--n-space-24); border-bottom: 1px solid var(--n-border-hairline); }
.n-news__headline { margin: 0 0 var(--n-space-12); font-size: var(--n-type-display-size); line-height: var(--n-type-display-line); font-weight: 700; color: var(--n-text-strong); overflow-wrap: anywhere; }
.n-news__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--n-space-32) var(--n-space-24); }
.n-news__section { min-width: 0; }
.n-news__section > h2 { margin: 0 0 var(--n-space-8); padding-top: var(--n-space-12); border-top: 1px solid var(--n-border-strong); font-size: var(--n-type-title3-size); line-height: var(--n-type-title3-line); font-weight: 700; color: var(--n-text-strong); }
.n-news__list { margin: 0; padding-left: var(--n-space-20); color: var(--n-text); font-size: var(--n-type-body1-size); line-height: var(--n-type-body1-para); overflow-wrap: anywhere; }
.n-news__list > li { margin-top: var(--n-space-8); }
.n-news__list .n-news__list { padding-left: var(--n-space-16); font-size: var(--n-type-body2-size); line-height: var(--n-type-body2-para); }
.n-news__src { margin-left: var(--n-space-6); font-size: var(--n-type-caption-size); line-height: var(--n-type-caption-line); color: var(--n-text-sub); overflow-wrap: anywhere; }
.n-news__src a { color: inherit; }
.n-news__meta { font-size: var(--n-type-caption-size); line-height: var(--n-type-caption-line); color: var(--n-text-sub); }

/* ---------- 코드 입력 ---------- */
/* 토스 CodeAuthModule: 칸 48×60, 모서리 12, 사이 8, 글자 30/40 700. 빈 칸은 그레이 200 바탕. 360 이하 40×52 26px 사이 6, 280 이하 34×44 22px */
.n-otp { display: flex; justify-content: center; gap: var(--n-space-8); }
.n-otp__cell {
  flex: none; width: 48px; height: 60px; padding: 0; border: 1px solid transparent; border-radius: var(--n-radius-md);
  background: var(--n-grey-200); color: var(--n-brand-text); caret-color: var(--n-brand-fill);
  font: inherit; font-size: 30px; line-height: 40px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums;
  -webkit-appearance: none; appearance: none;
}
.n-otp__cell:not(:placeholder-shown) { background: transparent; }
.n-otp__cell:focus { outline: none; border-color: var(--n-brand-fill); }
.n-otp__cell[disabled] { opacity: var(--n-opacity-disabled); cursor: not-allowed; }
.n-otp--error .n-otp__cell, .n-otp__cell[aria-invalid="true"] { border-color: var(--n-danger-fill); background: var(--n-danger-weak-bg); color: var(--n-grey-800); }
@media (max-width: 360px) { .n-otp { gap: var(--n-space-6); } .n-otp__cell { width: 40px; height: 52px; font-size: 26px; line-height: 35px; } }
@media (max-width: 280px) { .n-otp__cell { width: 34px; height: 44px; font-size: 22px; line-height: 31px; } }
.n-select--sm { width: auto; max-width: 100%; min-height: 38px; padding: 2px 40px 2px 16px; border-radius: var(--n-radius-r10); font-size: 15px; line-height: 1.252; }

/* ---------- 앵커: 메뉴, 팝오버, 말풍선 ---------- */
.n-anchor { position: relative; display: inline-flex; }
/* 토스 Menu.Dropdown: 모서리 20, 최소 폭 180, 최대 66vw, 최대 높이 60vh, 위아래 10, 항목 8 20 17px 500 그레이 700, 머리 8 20 13px 700 그레이 500 */
.n-menu, .n-popover {
  position: absolute; z-index: var(--n-z-sheet); top: calc(100% + var(--n-space-4)); left: 0;
  max-width: 66vw; max-height: 60vh; overflow: auto; padding: 10px 0;
  border: 1px solid var(--n-menu-border); border-radius: var(--n-radius-xl);
  background: var(--n-menu-bg); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); box-shadow: var(--n-shadow-menu);
  color: var(--n-grey-700); font-weight: 400; text-align: left; animation: n-fade var(--n-dur-spring-quick) var(--n-ease-spring-quick);
}
.n-menu { min-width: 180px; width: max-content; }
.n-menu--end, .n-popover--end { right: 0; left: auto; }
.n-menu__header { margin: 0 0 var(--n-space-4); padding: var(--n-space-8) 20px; font-size: 13px; line-height: 19.5px; font-weight: 700; color: var(--n-menu-header-text); overflow-wrap: anywhere; }
.n-menu__item {
  position: relative; display: flex; align-items: center; width: 100%; min-height: var(--n-touch-min); padding: var(--n-space-8) 20px;
  border: 0; background: transparent; color: var(--n-grey-700); font: inherit; font-size: 17px; line-height: 25.5px; font-weight: 500;
  text-align: left; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform var(--n-dur-spring-quick) var(--n-ease-spring-quick);
}
.n-menu__item::before { content: ""; position: absolute; inset: 0; border-radius: var(--n-radius-sm); background: var(--n-bg-pressed); opacity: 0; transition: opacity var(--n-dur-spring-quick) var(--n-ease-spring-quick); }
.n-menu__item:active { transform: scale(0.96); transition: transform var(--n-dur-spring-rapid) var(--n-ease-spring-rapid); }
.n-menu__item:active::before { opacity: 1; transition: opacity var(--n-dur-spring-rapid) var(--n-ease-spring-rapid); }
.n-menu__item:has(> .n-menu__icon) { padding-left: var(--n-space-12); }
.n-menu__icon { flex: none; width: 20px; height: 20px; margin-right: var(--n-space-6); color: var(--n-grey-400); }
.n-menu__item[aria-checked="true"] { color: var(--n-brand-text); font-weight: 700; }

/* ---------- 플로팅 단추 ---------- */
/* 화면 오른쪽 아래에 떠 있는 둥근 단추 하나. 누르면 위로 메뉴(.n-menu.n-fab-menu)가 뜸. 본문 폭(content-max) 안쪽 오른쪽에 맞춤 */
.n-fab {
  position: fixed; z-index: var(--n-z-cta); right: max(var(--n-gutter), calc((100vw - var(--n-content-max)) / 2 + var(--n-gutter)));
  bottom: calc(var(--n-gutter) + var(--n-safe-bottom)); display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; padding: 0; border: 0; border-radius: var(--n-radius-pill); background: var(--n-brand-fill); color: var(--n-brand-on-fill);
  box-shadow: var(--n-shadow-lg); cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform var(--n-dur-spring-quick) var(--n-ease-spring-quick);
}
.n-fab svg { width: 24px; height: 24px; }
.n-fab:active { transform: scale(0.96); background: var(--n-brand-fill-pressed); transition: transform var(--n-dur-spring-rapid) var(--n-ease-spring-rapid); }
.n-fab:focus-visible { outline: 2px solid var(--n-focus-ring); outline-offset: 2px; }
.n-menu.n-fab-menu { position: fixed; top: auto; left: auto; right: max(var(--n-gutter), calc((100vw - var(--n-content-max)) / 2 + var(--n-gutter))); bottom: calc(var(--n-gutter) + 56px + var(--n-space-8) + var(--n-safe-bottom)); z-index: var(--n-z-cta); }
.n-fab-space { padding-bottom: calc(56px + var(--n-gutter) * 2 + var(--n-safe-bottom)); }

/* ---------- 사진 격자와 갤러리 ---------- */
/* 격자: 정사각 썸네일 아래 제목 두 줄과 작은 설명 한 줄. 갤러리: 큰 그림 하나와 가로로 넘기는 썸네일 줄 */
.n-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: var(--n-space-16) var(--n-space-12); margin: 0; padding: var(--n-space-12) var(--n-gutter); list-style: none; }
.n-thumb { display: flex; flex-direction: column; gap: var(--n-space-6); width: 100%; min-width: 0; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform var(--n-dur-spring-quick) var(--n-ease-spring-quick); }
.n-thumb:active { transform: scale(0.96); transition: transform var(--n-dur-spring-rapid) var(--n-ease-spring-rapid); }
.n-thumb:focus-visible { outline: 2px solid var(--n-focus-ring); outline-offset: 2px; border-radius: var(--n-radius-md); }
.n-thumb__img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border: 1px solid var(--n-border-hairline); border-radius: var(--n-radius-md); background: var(--n-bg-sunken); }
.n-thumb__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: var(--n-type-body2-size); line-height: var(--n-type-body2-line); font-weight: 500; color: var(--n-grey-700); overflow-wrap: anywhere; }
.n-thumb__desc { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: var(--n-type-caption-size); line-height: var(--n-type-caption-line); color: var(--n-text-sub); }
.n-gallery { display: flex; flex-direction: column; gap: var(--n-space-12); padding: var(--n-space-12) 0; }
.n-gallery__stage { display: flex; flex-direction: column; gap: var(--n-space-4); margin: 0 var(--n-gutter); padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.n-gallery__stage:focus-visible { outline: 2px solid var(--n-focus-ring); outline-offset: 2px; border-radius: var(--n-radius-lg); }
.n-gallery__img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border: 1px solid var(--n-border-hairline); border-radius: var(--n-radius-lg); background: var(--n-bg-sunken); }
.n-gallery__title { margin-top: var(--n-space-8); font-size: var(--n-type-heading-size); line-height: var(--n-type-heading-line); font-weight: 700; color: var(--n-text-title); overflow-wrap: anywhere; }
.n-gallery__desc { font-size: var(--n-type-caption-size); line-height: var(--n-type-caption-line); color: var(--n-text-sub); }
.n-gallery__strip { display: flex; gap: var(--n-space-8); margin: 0; padding: var(--n-space-4) var(--n-gutter); overflow-x: auto; list-style: none; scroll-snap-type: x proximity; scrollbar-width: none; }
.n-gallery__strip::-webkit-scrollbar { display: none; }
.n-gallery__thumb { flex: none; display: block; width: 64px; height: 64px; padding: 0; border: 1px solid var(--n-border-hairline); border-radius: var(--n-radius-md); overflow: hidden; background: var(--n-bg-sunken); cursor: pointer; scroll-snap-align: start; }
.n-gallery__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.n-gallery__thumb[aria-current="true"] { outline: 2px solid var(--n-brand-fill); outline-offset: 2px; }
/* 토스에 팝오버가 없어 Menu.Dropdown 판을 그대로 쓴다. 폭은 서랍과 같은 280 */
.n-popover { width: var(--n-drawer); display: flex; flex-direction: column; gap: var(--n-space-8); }
.n-popover__head, .n-popover__body, .n-popover__actions { padding-inline: 20px; }
.n-popover__body { flex: 1 1 auto; min-height: 0; overflow: auto; display: flex; flex-direction: column; }
.n-popover__actions { display: flex; flex-wrap: wrap; gap: var(--n-space-8); }
/* 토스 Tooltip: 기본 medium 모서리 16, 안쪽 13 16, 15px 700. --sm 12, 8 12, 13px 600. --lg 18, 13 20, 17px 700. 글자 그레이 800, 판 bg-float, 그림자 0 16 60 */
.n-tooltip {
  --_tail-w: 38px; --_tail-h: 12px;
  position: absolute; z-index: var(--n-z-sheet); bottom: calc(100% + var(--_tail-h)); left: 50%; transform: translateX(-50%);
  width: max-content; max-width: 66vw; padding: 13px 16px; border-radius: var(--n-radius-lg);
  background: var(--n-bg-float); color: var(--n-grey-800); box-shadow: var(--n-shadow-tooltip);
  font-size: 15px; line-height: 22.5px; font-weight: 700; pointer-events: none;
}
.n-tooltip::after { content: ""; position: absolute; top: 100%; left: calc(50% - var(--_tail-w) / 2); width: var(--_tail-w); height: var(--_tail-h); background: var(--n-bg-float); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.n-tooltip--sm { --_tail-w: 24px; --_tail-h: 9px; padding: var(--n-space-8) var(--n-space-12); border-radius: var(--n-radius-md); font-size: 13px; line-height: 19.5px; font-weight: 600; }
.n-tooltip--lg { padding: 13px 20px; border-radius: 18px; font-size: 17px; line-height: 25.5px; }
.n-tooltip--bottom { top: calc(100% + var(--_tail-h)); bottom: auto; }
.n-tooltip--bottom::after { top: auto; bottom: 100%; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.n-anchor > .n-tooltip:not([data-open="true"]) { visibility: hidden; }
.n-anchor:hover > .n-tooltip, .n-anchor:focus-within > .n-tooltip { visibility: visible; }

/* ---------- 화면용 표 ---------- */
/* 토스 TableRow 는 두 칸 값 줄이라 목록 행으로 대신한다. 이 표는 가이드 HTML 보고서 장의 표 절 머리글 규칙. 웹 화면의 모든 표(마크다운 본문 안 포함)가 이것이다 */
/* 감싸는 상자는 넓은 화면에서 스크롤 상자가 아니어야 머리글이 창에 붙는다. 폭 900 아래에서만 가로 스크롤 */
.n-table-wrap { max-width: 100%; }
@media (max-width: 899px) { .n-table-wrap { overflow-x: auto; } }
.n-table { width: 100%; border-collapse: collapse; font-size: var(--n-type-body2-size); line-height: var(--n-type-body2-line); color: var(--n-text-body); font-variant-numeric: tabular-nums; }
.n-table--fixed { table-layout: fixed; }
/* 기본은 가로 줄만. 세로 줄 토글(.n-table--lines, enhanceTables 가 표 위에 스위치를 둠)을 켜면 열 사이에 옅은 줄 */
.n-table th, .n-table td { padding: var(--n-space-8) var(--n-space-12); border: 0; border-bottom: 1px solid var(--n-border-hairline); text-align: left; vertical-align: middle; }
.n-table--lines th + th, .n-table--lines td + td, .n-table--lines th + td, .n-table--lines td + th { border-left: 1px solid var(--n-grey-100); }
.n-table__tools { display: flex; justify-content: flex-end; align-items: center; gap: var(--n-space-8); padding: var(--n-space-4) 0; font-size: var(--n-type-caption-size); line-height: var(--n-type-caption-line); color: var(--n-text-sub); }
.n-table__tool { display: inline-flex; align-items: center; gap: var(--n-space-8); cursor: pointer; }
@media print { .n-table__tools { display: none; } }
.n-table thead th { position: sticky; top: var(--n-table-top, var(--n-header)); z-index: 1; background: var(--n-bg-weak); color: var(--n-text-title); font-weight: 600; text-align: center; white-space: nowrap; }
.n-table tbody th { font-weight: 500; color: var(--n-text-strong); }
.n-table__num { text-align: right !important; white-space: nowrap; }
.n-table__nowrap { white-space: nowrap; }
.n-table__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--n-space-8); }
.n-table tfoot th, .n-table tfoot td { position: sticky; bottom: 0; background: var(--n-bg-weak); color: var(--n-text-strong); font-weight: 700; }
.n-table__sort { display: inline-flex; align-items: center; gap: var(--n-space-4); min-height: 32px; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.n-table__sort::after { content: ""; width: 6px; height: 6px; margin: -2px 2px 0; border: solid currentColor; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); opacity: 0.4; }
[aria-sort="descending"] > .n-table__sort::after, [aria-sort="ascending"] > .n-table__sort::after, .n-table__sort[aria-expanded="true"]::after, .n-table__sort[data-on="true"]::after { opacity: 1; }
[aria-sort="ascending"] > .n-table__sort::after { margin-top: 3px; transform: rotate(225deg); }
.n-table__sort[data-on="true"] { color: var(--n-brand-text); font-weight: 700; }
.n-table__empty { padding: var(--n-space-24) !important; text-align: center !important; color: var(--n-text-sub); }

/* ---------- 대화 ---------- */
/* 토스 Bubble: 모서리 16, 안쪽 12 14, 최대 폭 253, 16/24, 꼬리 13×17. 내 글은 주색, 상대 글은 그레이 200에 그레이 800 */
.n-thread { display: flex; flex-direction: column; gap: var(--n-space-16); margin: 0; padding: 0; list-style: none; }
.n-thread__item { display: flex; flex-direction: column; align-items: flex-start; gap: var(--n-space-4); min-width: 0; }
.n-thread__item--mine { align-items: flex-end; }
.n-thread__meta { padding-inline: var(--n-space-4); font-size: var(--n-type-caption-size); line-height: var(--n-type-caption-line); color: var(--n-text-sub); font-variant-numeric: tabular-nums; }
.n-bubble {
  --_bg: var(--n-grey-200);
  position: relative; display: inline-block; width: fit-content; max-width: 253px; margin: 0 0 0 5px; padding: 12px 14px;
  border-radius: var(--n-radius-lg); background: var(--_bg); color: var(--n-grey-800);
  font-size: 16px; line-height: 24px; white-space: pre-wrap; overflow-wrap: anywhere;
}
.n-bubble::after { content: ""; position: absolute; bottom: 0; left: -5px; width: 13px; height: 17px; background: var(--_bg); transform: scaleX(-1); clip-path: path("M12 17c-4 0-8-1.1-11.500-3.100C4 11.300 6 7.200 6 3V0h2v8.400c0 2.900 1.800 5.500 4.400 6.700 1 .4.7 1.900-.4 1.900z"); }
.n-bubble--mine { --_bg: var(--n-brand-fill); margin: 0 5px 0 0; color: var(--n-brand-on-fill); }
.n-bubble--mine::after { right: -5px; left: auto; transform: none; }
.n-bubble--wide { max-width: calc(100% - 5px); }
.n-bubble--plain::after { display: none; }
.n-bubble__error { display: block; margin-top: var(--n-space-8); color: var(--n-danger-text); }
/* 답 대기 점: 마침표 1, 2, 3개를 400ms 마다 차례로 보이고 다시 1개. 점 셋의 자리는 늘 잡혀 있어 글이 흔들리지 않음 */
.n-bubble__wait { color: var(--n-text-sub); }
.n-bubble__dots { display: inline-block; white-space: nowrap; }
.n-bubble__dots > span:nth-child(2) { animation: n-wait-dot2 1200ms step-end infinite; }
.n-bubble__dots > span:nth-child(3) { animation: n-wait-dot3 1200ms step-end infinite; }
@keyframes n-wait-dot2 { 0% { opacity: 0; } 33.333%, 100% { opacity: 1; } }
@keyframes n-wait-dot3 { 0% { opacity: 0; } 66.667%, 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .n-bubble__dots > span { animation: none !important; } }
/* 하단 CTA 와 같은 자리 규칙. 대화 입력칸은 글 칸이 높아 번짐 없이 바탕을 깐다 */
.n-composer { position: sticky; bottom: max(var(--n-safe-bottom), var(--n-space-16)); z-index: var(--n-z-cta); display: flex; flex-direction: column; gap: var(--n-space-8); padding-top: var(--n-space-8); background: var(--n-bg-base); }
.n-composer--above-tabbar { bottom: calc(var(--n-tabbar) + var(--n-safe-bottom) + var(--n-space-8)); }
@media (min-width: 900px) { .n-composer--above-tabbar { bottom: var(--n-space-16); } }
.n-composer__row { display: flex; align-items: center; justify-content: space-between; gap: var(--n-space-12); }
.n-composer__count { font-size: var(--n-type-caption-size); line-height: var(--n-type-caption-line); color: var(--n-text-sub); font-variant-numeric: tabular-nums; }

/* ---------- 화면 안 안내 ---------- */
.n-notice { --_bg: var(--n-info-weak-bg); --_fg: var(--n-info-text); display: flex; align-items: flex-start; gap: var(--n-space-8); margin: 0; padding: var(--n-space-12) var(--n-space-16); border-radius: var(--n-radius-md); background: var(--_bg); color: var(--_fg); font-size: var(--n-type-body2-size); line-height: var(--n-type-body2-para); }
.n-notice--success { --_bg: var(--n-success-weak-bg); --_fg: var(--n-success-text); }
.n-notice--warning { --_bg: var(--n-warning-weak-bg); --_fg: var(--n-warning-text); }
.n-notice--danger { --_bg: var(--n-danger-weak-bg); --_fg: var(--n-danger-text); }
.n-notice__icon { flex: none; width: 24px; height: 24px; }
.n-notice--fixed { position: fixed; top: calc(var(--n-header) + var(--n-safe-top) + var(--n-space-8)); left: 50%; z-index: var(--n-z-toast); transform: translateX(-50%); width: max-content; max-width: min(375px, calc(100vw - 36px)); background: linear-gradient(var(--_bg), var(--_bg)), var(--n-bg-float); box-shadow: var(--n-shadow-toast); }

/* ---------- 목록 행, 아이콘 위 표시 ---------- */
.n-list-row--top { align-items: flex-start; }
.n-list-row__dot { flex: none; width: var(--n-space-8); height: var(--n-space-8); margin-top: var(--n-space-8); margin-right: calc(var(--n-space-8) * -1); border-radius: 50%; background: var(--n-brand-fill); }
.n-list-row__dot--off { background: transparent; }
.n-list-row[aria-current]:not([aria-current="false"]) { background: var(--n-bg-weak); }
.n-list-row[aria-current]:not([aria-current="false"]) .n-list-row__title { color: var(--n-text-strong); font-weight: 700; }
.n-iconbtn__badge { position: absolute; top: 0; right: 0; }
.n-tabbar a { position: relative; }
.n-tabbar__badge { position: absolute; top: var(--n-space-4); left: 50%; margin-left: var(--n-space-4); }
/* 토스 IconButton iconSize 20: 38×38, 모서리 8. 눌림 영역은 44 로 넓힌다 */
.n-iconbtn--sm { width: 38px; height: 38px; border-radius: var(--n-radius-sm); }
.n-iconbtn--sm svg { width: 20px; height: 20px; }
.n-iconbtn--sm::after { content: ""; position: absolute; inset: -3px; }

/* ---------- 촘촘한 메신저 화면 ---------- */
/* 마우스로 쓰는 대화 서비스(방 목록과 대화가 한 화면). 방 목록 줄, 머리줄, 말풍선, 입력줄을 좁힘. 값은 간격 척도와 글자 단계에서만 가져옴 */
.n-list-row--compact { gap: var(--n-space-8); min-height: 0; padding: var(--n-space-4) var(--n-space-12); }
.n-list-row--compact::before { display: none !important; }
.n-list-row--compact .n-list-row__lead { width: var(--n-space-32); height: var(--n-space-32); font-size: var(--n-type-caption-size); font-weight: 600; color: var(--n-text-sub); }
.n-list-row--compact .n-list-row__title { font-size: var(--n-type-body2-size); line-height: var(--n-type-body2-line); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.n-list-row--compact .n-list-row__desc { font-size: var(--n-type-caption-size); line-height: var(--n-type-caption-line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.n-list-row--compact .n-list-row__trail { flex-direction: column; align-items: flex-end; gap: var(--n-space-2); font-size: var(--n-type-caption-size); line-height: var(--n-type-caption-line); }
.n-navbar--compact { height: calc(var(--n-touch-min) + var(--n-safe-top)); padding-inline: var(--n-space-12); gap: var(--n-space-8); }
.n-navbar--compact .n-navbar__title, .n-navbar--compact .n-navbar__title:first-child { padding-left: 0; font-size: var(--n-type-body2-size); }
.n-thread--compact { gap: var(--n-space-8); }
.n-thread--compact .n-thread__item { flex-direction: row; align-items: flex-end; gap: var(--n-space-6); }
.n-thread--compact .n-thread__item--mine { flex-direction: row-reverse; }
.n-thread--compact .n-thread__item--cont { margin-top: calc(var(--n-space-2) - var(--n-space-8)); }
.n-thread--compact .n-thread__meta { flex: none; padding-inline: 0; }
.n-thread__author { font-size: var(--n-type-caption-size); line-height: var(--n-type-caption-line); font-weight: 600; color: var(--n-text-sub); }
.n-thread__day { align-self: center; font-size: var(--n-type-caption-size); line-height: var(--n-type-caption-line); color: var(--n-text-sub); font-variant-numeric: tabular-nums; }
.n-bubble--compact { max-width: min(72%, var(--n-content-max)); margin: 0; padding: var(--n-space-6) var(--n-space-12); border-radius: var(--n-radius-md); font-size: var(--n-type-body2-size); line-height: var(--n-type-body2-line); }
.n-bubble--compact::after { display: none; }
.n-composer--compact { position: static; flex-direction: row; align-items: flex-end; gap: var(--n-space-8); padding: var(--n-space-8) var(--n-space-12); border-top: 1px solid var(--n-border-hairline); }
.n-composer--compact .n-textarea { flex: 1 1 auto; min-height: var(--n-space-32); max-height: 40vh; padding: var(--n-space-4) var(--n-space-12); border-radius: var(--n-radius-sm); font-size: var(--n-type-body2-size); line-height: var(--n-type-body2-line); resize: none; }
@media (pointer: coarse) {
  .n-list-row--compact { min-height: var(--n-touch-min); }
  .n-composer--compact .n-textarea { min-height: 38px; padding-block: 7px; }
}
.n-iconbtn[aria-pressed="true"] { background: var(--n-brand-weak-bg); color: var(--n-brand-text); }
.n-card__media--auto { aspect-ratio: auto; object-fit: contain; }

/* ---------- 재현 창 ---------- */
/* 기록된 크기의 iframe 을 칸 폭에 맞춰 줄여 보인다. 크기와 배율은 쓰는 쪽이 인라인으로 준다 */
.n-frame { width: 100%; min-width: 0; overflow: hidden; }
.n-frame > iframe { display: block; max-width: none; min-height: 0; border: 1px solid var(--n-border-hairline); border-radius: 0; transform-origin: top left; }

/* ---------- 보고서 조판 ---------- */
/* 범용 HTML.md 유형 1. 값은 values.json report 묶음: 본문 18, ※ 문단 15, 표 16, 줄높이 1.75, 폭 180mm. 색은 화면 값을 쓰고 인쇄에서 검정으로 바꾼다 */
.n-report { --_u: 31.5px; max-width: 180mm; margin-inline: auto; padding: var(--_u) var(--n-space-16) calc(var(--_u) * 2); font-size: 18px; line-height: 1.75; color: var(--n-text-body); text-align: left; word-break: keep-all; overflow-wrap: anywhere; }
.n-report a { color: var(--n-brand-text); text-decoration: underline; text-underline-offset: 3px; }
.n-report h1 { margin: calc(var(--_u) * 0.25) 0 calc(var(--_u) * 0.5); font-size: var(--n-type-title1-size); line-height: 1.3; letter-spacing: -0.01em; font-weight: 700; color: var(--n-text-strong); }
.n-report h2 { margin: calc(var(--_u) * 1.5) 0 calc(var(--_u) * 0.5); font-size: var(--n-type-title3-size); line-height: 1.3; letter-spacing: -0.01em; font-weight: 700; color: var(--n-text-strong); }
:where(.n-report) p { margin: 0 0 calc(var(--_u) * 0.5); }
.n-report .n-num, .n-report__num { font-family: var(--n-font-mono); letter-spacing: 0; }
.n-report__kicker, .n-report__meta { margin: 0; color: var(--n-text-sub); }
.n-report__status { margin: calc(var(--_u) * 0.5) 0 0; color: var(--n-text-sub); }
.n-report__error { margin: calc(var(--_u) * 0.5) 0 0; color: var(--n-danger-text); }
.n-report__lv2, .n-report__lv3, .n-report__lv4 { margin: 0; padding: 0; list-style: none; }
.n-report__lv2 > li { position: relative; margin: 0 0 calc(var(--_u) * 0.5); padding-left: 1.25em; }
.n-report__lv2 > li::before { content: "\25E6"; position: absolute; left: 0.1em; }
.n-report__lv3 { margin-top: calc(var(--_u) * 0.1); }
.n-report__lv3 > li { position: relative; padding-left: 1.1em; }
.n-report__lv3 > li::before { content: "-"; position: absolute; left: 0.15em; color: var(--n-text-sub); }
.n-report__lv4 > li { position: relative; padding-left: 1.1em; }
.n-report__lv4 > li::before { content: "\2219"; position: absolute; left: 0.25em; color: var(--n-text-sub); }
.n-report__note, .n-report p.n-report__note { margin: 0 0 2px; font-size: 15px; line-height: 1.3; color: var(--n-text-sub); font-weight: 400; }
.n-report__end { margin: calc(var(--_u) * 2) 0 0; }
.n-report .n-table { font-size: 16px; line-height: 1.45; margin: 0 0 calc(var(--_u) * 0.25); }
.n-report .n-table th, .n-report .n-table td { padding: 4px 6px; border: 1px solid var(--n-border-hairline); } /* 보고서는 칸을 선으로 구분 */
.n-report .n-table thead th, .n-report .n-table tfoot th, .n-report .n-table tfoot td { background: transparent; }
.n-report .n-table thead th, .n-report .n-table tfoot th, .n-report .n-table tfoot td { position: static; } /* 보고서 조판은 바탕이 없어 붙이지 않는다 */
@media (max-width: 480px) { .n-report h1 { font-size: var(--n-type-title2-size); } }
@media print {
  .n-no-print { display: none !important; }
  .n-report { --n-text-body: #000; --n-text-sub: #666; --n-text-strong: #000; --n-text-title: #000; --n-border-hairline: #d9d9d9; --n-brand-text: #000; --n-danger-text: #000; max-width: none; padding: 0; }
  .n-report a { text-decoration: none; }
  .n-report h2 { break-after: avoid; }
  .n-report tr { break-inside: avoid; }
}
