/*
 ELS 공통 컴포넌트 층 v0.1 (ADR-0025)
 색·글자 크기·모서리·간격은 @els/design의 --els-* 토큰만 쓴다. 이 파일에 직접 적는 숫자는
 높이·폭·격자·테두리 두께처럼 구조를 정하는 값뿐이다.
 화면 파일은 이 클래스를 조립하기만 하고 스타일 값을 따로 적지 않는다.
 먼저 불러올 것: @els/design/fonts.css, @els/design/tokens.css
*/

/* ---------- 바탕 ---------- */
.els-page { margin: 0; background: var(--els-color-canvas); color: var(--els-color-text-primary); font-family: var(--els-font-family); font-size: var(--els-type-body); font-weight: var(--els-weight-regular); line-height: var(--els-leading-body); word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
.els-page *, .els-page *::before, .els-page *::after { box-sizing: border-box; }
.els-page :where(h1, h2, h3, p, ul) { margin: 0; }
.els-page :where(ul) { padding: 0; list-style: none; }
.els-page :where(h1, h2, h3) { font-weight: var(--els-weight-strong); text-wrap: balance; }
.els-page :where(a) { color: inherit; text-decoration: none; }
.els-page :where(a, button) { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.els-page :where(button) { font: inherit; color: inherit; }
.els-page :where(img) { display: block; max-width: 100%; height: auto; }
.els-page :focus-visible { outline: 3px solid var(--els-color-focus); outline-offset: 3px; }
.els-page [tabindex="-1"]:focus { outline: none; }
.els-page [hidden] { display: none !important; }
/* 상단바에 가리지 않게 하는 여백은 여기 한 곳에만 둔다. 요소에 scroll-margin을 또 주면 두 번 더해진다. */
html:has(.els-page) { color-scheme: light; scroll-padding-top: 84px; }

.els-shell { width: min(100% - 2 * var(--els-side), var(--els-content-max)); margin-inline: auto; }
.els-skip { position: fixed; top: var(--els-space-2); left: var(--els-space-3); z-index: 30; transform: translateY(-200%); padding: var(--els-space-3) var(--els-space-4); border-radius: var(--els-radius-control); background: var(--els-color-surface); }
.els-skip:focus { transform: none; }
.els-num { font-variant-numeric: tabular-nums; }

/* ---------- 글자 단계 ---------- */
.els-display { font-size: var(--els-type-display); line-height: var(--els-leading-display); letter-spacing: var(--els-tracking-display); }
.els-headline { font-size: var(--els-type-headline); line-height: var(--els-leading-headline); letter-spacing: var(--els-tracking-headline); }
.els-title { font-size: var(--els-type-title); line-height: var(--els-leading-title); letter-spacing: var(--els-tracking-title); }
.els-label { font-size: var(--els-type-label); line-height: var(--els-leading-label); font-weight: var(--els-weight-strong); }
.els-meta { font-size: var(--els-type-meta); line-height: var(--els-leading-meta); color: var(--els-color-text-secondary); }
.els-secondary { color: var(--els-color-text-secondary); }

/* ---------- 행동 ---------- */
.els-btn { display: inline-flex; align-items: center; gap: var(--els-space-2); min-height: 48px; padding: 0 var(--els-space-6); border: 0; border-radius: var(--els-radius-control); background: var(--els-color-action-primary); color: var(--els-color-action-on-primary); font-size: var(--els-type-label); line-height: var(--els-leading-label); font-weight: var(--els-weight-strong); cursor: pointer; transition: background-color var(--els-motion-effects) var(--els-ease); }
.els-btn:hover { background: var(--els-color-link); }
.els-btn--light { background: var(--els-color-surface); color: var(--els-color-text-primary); }
.els-btn--light:hover { background: var(--els-color-surface-accent); }
.els-btn--ink { background: var(--els-color-text-primary); }
.els-btn--ink:hover { background: var(--els-color-ink-700); }
.els-btn--small { min-height: 44px; padding: 0 var(--els-space-4); }
.els-link { display: inline-flex; align-items: center; gap: var(--els-space-2); min-height: 44px; color: var(--els-color-link); font-size: var(--els-type-label); font-weight: var(--els-weight-strong); }
.els-link:hover { text-decoration: underline; text-underline-offset: 5px; }

/* ---------- 상태 표기와 고지 ---------- */
.els-status { font-size: var(--els-type-meta); line-height: var(--els-leading-meta); color: var(--els-color-status-unknown); }
.els-kicker { font-size: var(--els-type-label); font-weight: var(--els-weight-strong); color: var(--els-color-link); }

/* ---------- 상단바: PC 68px, 모바일 60px ---------- */
.els-topbar { position: sticky; top: 0; z-index: 20; background: var(--els-color-surface); border-bottom: 1px solid transparent; }
.els-topbar[data-scrolled] { border-bottom-color: var(--els-color-border-default); }
.els-topbar__in { display: flex; align-items: center; gap: var(--els-space-8); min-height: 68px; }
.els-brand { display: inline-flex; align-items: center; min-height: 48px; }
.els-brand__wide { height: 28px; width: auto; }
.els-brand__mark { display: none; height: 24px; width: auto; }
.els-nav { display: flex; gap: var(--els-space-1); margin-right: auto; }
.els-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--els-space-3); border-radius: var(--els-radius-control); font-size: var(--els-type-nav); color: var(--els-color-text-secondary); }
.els-nav a:hover { background: var(--els-color-surface-subtle); color: var(--els-color-text-primary); }
.els-nav a[aria-current] { color: var(--els-color-text-primary); font-weight: var(--els-weight-strong); box-shadow: inset 0 -2px 0 var(--els-color-action-primary); border-radius: 0; }
.els-menu-btn { display: none; align-items: center; min-height: 44px; padding: 0 var(--els-space-4); border: 0; border-radius: var(--els-radius-control); background: var(--els-color-surface-subtle); font-size: var(--els-type-label); font-weight: var(--els-weight-strong); cursor: pointer; }

/* ---------- 첫 화면: 사진 한 장, 제목, 버튼 하나 ---------- */
.els-hero { position: relative; height: clamp(480px, 68vh, 680px); overflow: hidden; background: var(--els-color-text-primary); }
.els-hero > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.els-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 36%, color-mix(in srgb, var(--els-color-text-primary) 84%, transparent) 100%); }
.els-hero__text { position: absolute; z-index: 1; inset: auto 0 0 0; padding-bottom: var(--els-space-16); color: var(--els-color-ink-0); }
.els-hero__text .els-btn { margin-top: var(--els-space-8); }

/* ---------- 대상 탭과 패널 ---------- */
.els-finder { padding-block: var(--els-space-16); }
.els-tabs { display: none; }
.els-js .els-tabs { display: flex; gap: var(--els-space-8); border-bottom: 1px solid var(--els-color-border-default); }
.els-tabs button { position: relative; min-height: 52px; padding: 0 0 var(--els-space-3); border: 0; background: none; color: var(--els-color-text-secondary); font-size: var(--els-type-body); cursor: pointer; }
.els-tabs button:hover { color: var(--els-color-text-primary); }
.els-tabs button[aria-selected="true"] { color: var(--els-color-text-primary); font-weight: var(--els-weight-strong); }
.els-tabs button[aria-selected="true"]::after { content: ""; position: absolute; inset: auto 0 -1px 0; height: 3px; background: var(--els-color-action-primary); }
.els-panel + .els-panel { margin-top: var(--els-space-16); }
.els-js .els-panel + .els-panel { margin-top: 0; }
.els-panel__head { margin: var(--els-space-12) 0 var(--els-space-8); }

/* ---------- 제품 카드 ---------- */
.els-cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--els-space-12) var(--els-space-8); }
.els-card { grid-column: span 3; display: flex; flex-direction: column; }
.els-card--third { grid-column: span 2; }
.els-card > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--els-radius-panel); }
.els-card--screen > img { object-fit: contain; padding: var(--els-space-6); background: var(--els-color-surface-subtle); }
.els-card__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding-top: var(--els-space-6); }
.els-card__body > .els-title, .els-card__body > .els-headline { margin-top: var(--els-space-1); }
.els-card--wide { grid-column: 1 / -1; flex-direction: row; overflow: hidden; border-radius: var(--els-radius-panel); background: var(--els-color-surface-subtle); }
.els-card--wide > img { order: 2; width: 54%; min-height: 400px; aspect-ratio: auto; border-radius: 0; }
.els-card--wide .els-card__body { justify-content: center; padding: var(--els-space-12); }
.els-card--note { align-self: start; padding: var(--els-space-8); border: 1px solid var(--els-color-border-default); border-radius: var(--els-radius-panel); }
.els-card--note .els-card__body { padding-top: 0; }
.els-benefits { display: grid; gap: var(--els-space-2); margin-top: var(--els-space-4); color: var(--els-color-text-secondary); }
.els-card .els-btn { margin-top: var(--els-space-6); }
.els-card .els-link { margin-top: var(--els-space-3); }
.els-card .els-btn + .els-status, .els-card .els-link + .els-status { margin-top: var(--els-space-2); }
.els-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--els-space-8); width: 100%; margin-top: var(--els-space-3); font-size: var(--els-type-label); }
.els-services li { padding: var(--els-space-3) 0; border-bottom: 1px solid var(--els-color-ink-100); }

/* ---------- 구획 제목, 옅은 띠, 표지 ---------- */
.els-band { padding-block: var(--els-space-16); background: var(--els-color-surface-subtle); }
.els-section-title { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--els-space-6); }
.els-cover { overflow: hidden; border-radius: var(--els-radius-panel); }
.els-cover img { width: 100%; height: 100%; object-fit: contain; }
.els-cover--blue { background: var(--els-color-surface-accent); }
.els-cover--white { background: var(--els-color-surface); }
.els-cover--fill img { object-fit: cover; }

/* ---------- 메인의 글 카드 ---------- */
.els-stories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--els-space-8); margin-top: var(--els-space-8); }
.els-story .els-cover { aspect-ratio: 16 / 10; }
.els-story .els-meta { margin-top: var(--els-space-4); }
.els-story .els-title { margin-top: var(--els-space-1); }
.els-story .els-title a:hover, .els-post .els-title a:hover, .els-lead .els-display a:hover { text-decoration: underline; text-underline-offset: 4px; }
.els-story .els-title + p { margin-top: var(--els-space-2); font-size: var(--els-type-label); line-height: var(--els-leading-label); color: var(--els-color-text-secondary); }

/* ---------- 마무리 띠 ---------- */
.els-closing { padding-block: var(--els-space-16); background: var(--els-color-text-primary); color: var(--els-color-ink-0); }
.els-closing .els-shell { display: flex; align-items: center; justify-content: space-between; gap: var(--els-space-8); }
.els-closing .els-btn { flex-shrink: 0; }
/* 어두운 면에서는 Blue 테두리의 대비가 모자라(Ink 위 2.9:1) 흰 테두리를 쓴다. 사진 위 첫 화면과 Ink 바탕 요금 카드도 같다 */
.els-closing :focus-visible, .els-hero :focus-visible, .els-plan--strong :focus-visible { outline-color: var(--els-color-focus-on-dark); }

/* ---------- 푸터 ---------- */
.els-footer { padding-block: var(--els-space-12) var(--els-space-8); font-size: var(--els-type-meta); line-height: var(--els-leading-meta); color: var(--els-color-text-secondary); }
.els-footer__cols { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: var(--els-space-8); }
.els-footer__logo { height: 56px; width: auto; }
.els-footer h3 { margin-bottom: var(--els-space-2); font-size: var(--els-type-meta); color: var(--els-color-text-primary); }
.els-footer li { padding: var(--els-space-1) 0; }
.els-footer li a { color: var(--els-color-text-primary); }
.els-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.els-footer__note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--els-space-2) var(--els-space-6); margin-top: var(--els-space-8); padding-top: var(--els-space-6); border-top: 1px solid var(--els-color-border-default); }
.els-footer__note a { text-decoration: underline; text-underline-offset: 3px; }
.els-footer--slim { padding-top: 0; }
.els-footer--slim .els-footer__note { margin-top: 0; }

/* ---------- 인사이트: 큰 글 하나, 옆 기둥, 글과 썸네일 목록 ---------- */
.els-feed { padding-block: var(--els-space-12) var(--els-space-16); }
.els-feed-intro { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--els-space-2) var(--els-space-6); }
.els-lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); align-items: center; min-height: 420px; margin-top: var(--els-space-8); overflow: hidden; border-radius: var(--els-radius-panel); background: var(--els-color-surface-accent); }
.els-lead__text { padding: var(--els-space-12) 0 var(--els-space-12) var(--els-space-16); }
.els-lead__text > .els-display { margin-top: var(--els-space-4); }
.els-lead__text > .els-display + p { max-width: 32em; margin-top: var(--els-space-4); color: var(--els-color-text-secondary); }
.els-lead__text > .els-status { margin-top: var(--els-space-6); }
.els-lead > img { width: 100%; }
.els-feed-cols { display: grid; grid-template-columns: 240px minmax(0, 1fr); grid-template-areas: "topics main" "tool main"; grid-template-rows: auto 1fr; column-gap: var(--els-space-16); margin-top: var(--els-space-16); }
.els-topics { grid-area: topics; }
.els-feed-main { grid-area: main; min-width: 0; }
.els-tool { grid-area: tool; align-self: start; margin-top: var(--els-space-12); padding: var(--els-space-6); border-radius: var(--els-radius-panel); background: var(--els-color-surface-subtle); }
.els-tool .els-title { margin-top: var(--els-space-1); }
.els-tool .els-title + p { margin-top: var(--els-space-2); font-size: var(--els-type-meta); line-height: var(--els-leading-meta); color: var(--els-color-text-secondary); }
.els-tool .els-status { margin-top: var(--els-space-4); }
.els-tool .els-link { margin-top: var(--els-space-2); }
.els-footer__note .motion-toggle { min-height: 44px; padding: 0 var(--els-space-3); border: 1px solid var(--els-color-border-default); border-radius: var(--els-radius-control); background: none; font-size: var(--els-type-meta); cursor: pointer; }
.els-topic-buttons { margin-top: var(--els-space-3); }
.els-topic-buttons button { display: flex; align-items: center; justify-content: space-between; gap: var(--els-space-3); width: 100%; min-height: 52px; padding: 0; border: 0; border-bottom: 1px solid var(--els-color-ink-100); background: none; font-size: var(--els-type-body); text-align: left; cursor: pointer; }
.els-topic-buttons button span { font-size: var(--els-type-meta); color: var(--els-color-text-secondary); white-space: nowrap; }
.els-topic-buttons button:hover { color: var(--els-color-link); }
.els-topic-buttons button[aria-pressed="true"] { padding-left: var(--els-space-3); font-weight: var(--els-weight-strong); color: var(--els-color-link); box-shadow: inset 3px 0 0 var(--els-color-action-primary); }
.els-feed-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--els-space-4); }
.els-feed-head .els-meta { white-space: nowrap; }
.els-feed-sub { margin-top: var(--els-space-2); font-size: var(--els-type-meta); line-height: var(--els-leading-meta); color: var(--els-color-text-secondary); }
.els-post { display: grid; grid-template-columns: minmax(0, 1fr) 208px; align-items: center; gap: var(--els-space-8); padding: var(--els-space-8) 0; border-bottom: 1px solid var(--els-color-ink-100); }
.els-post .els-title { margin-top: var(--els-space-2); }
.els-post .els-title + p { margin-top: var(--els-space-2); font-size: var(--els-type-label); line-height: var(--els-leading-label); color: var(--els-color-text-secondary); }
.els-post .els-cover { aspect-ratio: 4 / 3; }
.els-empty { padding: var(--els-space-12) 0; border-bottom: 1px solid var(--els-color-ink-100); }
.els-empty p { margin-top: var(--els-space-2); color: var(--els-color-text-secondary); }
.els-empty .els-btn { margin-top: var(--els-space-6); }
.els-soon { margin-top: var(--els-space-16); }
.els-soon ul { margin-top: var(--els-space-4); border-top: 1px solid var(--els-color-ink-100); }
.els-soon li { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--els-space-6); padding: var(--els-space-4) 0; border-bottom: 1px solid var(--els-color-ink-100); }
.els-soon strong { font-weight: var(--els-weight-strong); }
.els-soon li span { color: var(--els-color-text-secondary); }

/* ---------- 제품 상세: 첫 화면, 범위와 요금, 비교표 ---------- */
.els-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.els-detail-hero { display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); gap: var(--els-space-12); align-items: center; padding-block: var(--els-space-8) var(--els-space-16); }
.els-detail-hero > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--els-radius-panel); }
.els-detail-hero .els-display + p { max-width: 26em; margin-top: var(--els-space-4); color: var(--els-color-text-secondary); }
.els-detail-hero .els-btn { margin-top: var(--els-space-8); }
.els-crumb { margin-bottom: var(--els-space-4); font-size: var(--els-type-meta); line-height: var(--els-leading-meta); color: var(--els-color-text-secondary); }
/* 문장 속 링크는 색만으로 구분하지 않는다 */
.els-crumb a { color: var(--els-color-link); text-decoration: underline; text-underline-offset: 4px; }
.els-band > .els-shell > .els-headline + p { max-width: 36em; margin-top: var(--els-space-3); color: var(--els-color-text-secondary); }
.els-plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--els-space-6); margin-top: var(--els-space-8); }
.els-plan { display: flex; flex-direction: column; padding: var(--els-space-8); border-radius: var(--els-radius-panel); background: var(--els-color-surface); }
.els-plan > .els-title + p { min-height: 3.2em; margin-top: var(--els-space-2); font-size: var(--els-type-label); line-height: var(--els-leading-label); color: var(--els-color-text-secondary); }
.els-price { margin-top: var(--els-space-6); padding-block: var(--els-space-4); border-block: 1px solid var(--els-color-border-default); }
.els-price strong { display: block; font-size: var(--els-type-headline); line-height: var(--els-leading-headline); letter-spacing: var(--els-tracking-headline); font-weight: var(--els-weight-strong); font-variant-numeric: tabular-nums; }
.els-price span { font-size: var(--els-type-meta); line-height: var(--els-leading-meta); color: var(--els-color-text-secondary); }
.els-plan .els-benefits { margin-top: var(--els-space-6); font-size: var(--els-type-label); line-height: var(--els-leading-label); }
.els-plan--strong { background: var(--els-color-text-primary); color: var(--els-color-ink-0); }
.els-plan--strong > .els-title + p, .els-plan--strong .els-price span, .els-plan--strong .els-benefits { color: var(--els-color-ink-200); }
.els-plan--strong .els-price { border-color: var(--els-color-ink-700); }
.els-fine { margin-top: var(--els-space-6); font-size: var(--els-type-meta); line-height: var(--els-leading-meta); color: var(--els-color-text-secondary); }
.els-compare { padding-block: var(--els-space-16); }
.els-table-wrap { margin-top: var(--els-space-8); overflow-x: auto; }
.els-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: var(--els-type-label); line-height: var(--els-leading-label); }
.els-table th, .els-table td { padding: var(--els-space-4) var(--els-space-3); border-bottom: 1px solid var(--els-color-border-default); text-align: center; vertical-align: top; font-weight: var(--els-weight-regular); }
.els-table thead th { font-size: var(--els-type-body); font-weight: var(--els-weight-strong); border-bottom: 2px solid var(--els-color-text-primary); }
.els-table tbody th { width: 34%; text-align: left; font-weight: var(--els-weight-strong); }
.els-table .els-yes { font-weight: var(--els-weight-strong); color: var(--els-color-link); }
.els-table .els-no { color: var(--els-color-text-secondary); }

/* ---------- 범위 찾기, 연 1회 요금, 선택 추가, 별도 요금 ---------- */
.els-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--els-space-4); margin-top: var(--els-space-8); }
.els-picker fieldset { min-width: 0; margin: 0; padding: var(--els-space-4) var(--els-space-6) var(--els-space-6); border: 0; border-radius: var(--els-radius-panel); background: var(--els-color-surface); }
.els-picker legend { float: left; width: 100%; margin-bottom: var(--els-space-3); padding: 0; font-size: var(--els-type-label); font-weight: var(--els-weight-strong); }
.els-picker label { display: inline-flex; margin: 0 var(--els-space-1) var(--els-space-1) 0; cursor: pointer; }
.els-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.els-picker label span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--els-space-4); border-radius: var(--els-radius-control); background: var(--els-color-surface-subtle); font-size: var(--els-type-label); color: var(--els-color-text-secondary); }
.els-picker input:checked + span { background: var(--els-color-text-primary); color: var(--els-color-ink-0); font-weight: var(--els-weight-strong); }
.els-picker input:focus-visible + span { outline: 3px solid var(--els-color-focus); outline-offset: 3px; }
.els-picker-result { min-height: 1.6em; margin-top: var(--els-space-6); font-weight: var(--els-weight-strong); }
.els-plan-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--els-space-4); margin-top: var(--els-space-6); }
.els-plan-grid--four .els-plan { padding: var(--els-space-6); }
/* 맞는 범위 표시는 추천이다. 이유는 els-picker-result의 글로 함께 알린다. */
.els-plan[data-picked], .els-addons[data-picked] { outline: 3px solid var(--els-color-action-primary); outline-offset: 2px; }
.els-yearly { padding-block: var(--els-space-16) 0; }
.els-yearly > .els-headline + p { margin-top: var(--els-space-3); color: var(--els-color-text-secondary); }
.els-yearly .els-plan-grid { margin-top: var(--els-space-8); }
.els-yearly .els-plan { background: var(--els-color-surface-subtle); }
.els-yearly .els-price { margin-top: var(--els-space-3); padding-bottom: 0; border-bottom: 0; }
.els-yearly-note { display: grid; align-content: center; gap: var(--els-space-3); font-size: var(--els-type-label); line-height: var(--els-leading-label); color: var(--els-color-text-secondary); }
.els-table small { display: block; margin-top: var(--els-space-1); font-size: var(--els-type-meta); font-weight: var(--els-weight-regular); color: var(--els-color-text-secondary); }
.els-table--wide { min-width: 720px; }
.els-table--wide tbody th { width: 28%; }
.els-addons { margin-top: var(--els-space-16); padding: var(--els-space-8); border-radius: var(--els-radius-panel); background: var(--els-color-surface-accent); }
.els-addons > .els-headline + p { margin-top: var(--els-space-2); color: var(--els-color-text-secondary); }
.els-addon-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--els-space-4); margin-top: var(--els-space-6); }
.els-addon { display: flex; flex-direction: column; padding: var(--els-space-6); border-radius: var(--els-radius-panel); background: var(--els-color-surface); }
.els-addon .els-title + p { margin-top: var(--els-space-2); font-size: var(--els-type-label); line-height: var(--els-leading-label); color: var(--els-color-text-secondary); }
.els-addon .els-meta { margin-top: auto; padding-top: var(--els-space-4); }
.els-extras { margin-top: var(--els-space-6); padding: var(--els-space-8); border-radius: var(--els-radius-panel); background: var(--els-color-surface-subtle); }
.els-extras .els-benefits + p { margin-top: var(--els-space-4); font-size: var(--els-type-meta); line-height: var(--els-leading-meta); color: var(--els-color-text-secondary); }

/* ---------- 고객 업무 흐름: 한 화면에 질문 하나, 주요 행동 하나. 폭 480px ----------
   출처: 홈택스 수임동의 고객 화면(2026-11-13 작업본, 실기기 확인). 높이·폭 같은 구조 값은 그대로,
   색·모서리·글자는 토큰으로 맞췄다(원본: 버튼 14px·입력 12px·시트 24px 모서리, 제목 24px, 오류 #a52b38). */
.els-flow { max-width: 480px; margin-inline: auto; padding-inline: var(--els-space-6); }
.els-flow-bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: var(--els-space-1); min-height: 48px; padding-top: env(safe-area-inset-top, 0px); background: var(--els-color-canvas); }
.els-icon-btn { display: grid; flex: none; place-items: center; inline-size: 48px; block-size: 48px; margin-left: calc(-1 * var(--els-space-3)); padding: 0; border: 0; border-radius: var(--els-radius-control); background: transparent; color: var(--els-color-text-primary); cursor: pointer; }
.els-icon-btn svg { inline-size: 24px; block-size: 24px; }
.els-progress { flex: 1; min-inline-size: 0; block-size: 4px; overflow: hidden; border-radius: var(--els-radius-pill); background: var(--els-color-surface-subtle); }
.els-progress > span { display: block; inline-size: 0; block-size: 100%; border-radius: inherit; background: var(--els-color-action-primary); }
.els-flow-screen { display: flex; flex-direction: column; min-height: calc(100dvh - 48px - env(safe-area-inset-top, 0px)); }
.els-flow-body { padding: var(--els-space-3) 0 var(--els-space-8); }
.els-flow-body > .els-title { margin-bottom: var(--els-space-2); }
.els-flow-body > .els-title + p { margin-bottom: var(--els-space-8); color: var(--els-color-text-secondary); }
.els-flow-actions { position: sticky; bottom: 0; z-index: 2; display: grid; gap: var(--els-space-2); margin-top: auto; padding: var(--els-space-3) 0 max(var(--els-space-4), env(safe-area-inset-bottom)); background: var(--els-color-canvas); }
.els-flow-actions::before { content: ""; position: absolute; inset: calc(-1 * var(--els-space-4)) 0 auto; height: var(--els-space-4); background: linear-gradient(to top, var(--els-color-canvas), transparent); pointer-events: none; }
/* 키패드가 열리면 버튼을 흐름 안으로 돌려 입력 칸과 오류 문구를 가리지 않게 한다(els-ui.js가 html에 els-keyboard-open을 단다) */
.els-keyboard-open .els-flow-actions { position: static; padding-bottom: var(--els-space-2); }
.els-keyboard-open .els-flow-actions::before { display: none; }
.els-keyboard-open .els-flow-screen { min-height: 0; }
.els-keyboard-open .els-flow-body { padding-bottom: var(--els-space-2); }
.els-keyboard-open .els-flow-body > .els-title + p { margin-bottom: var(--els-space-4); }
.els-keyboard-open .els-field { margin-bottom: var(--els-space-3); }

.els-btn--block { justify-content: center; width: 100%; min-height: 56px; font-size: var(--els-type-body); line-height: var(--els-leading-label); text-align: center; }
.els-btn--quiet { background: var(--els-color-surface-subtle); color: var(--els-color-text-primary); }
.els-btn--quiet:hover { background: var(--els-color-surface-accent); }
.els-btn:disabled { background: var(--els-color-action-disabled); color: var(--els-color-action-on-primary); cursor: not-allowed; }
.els-btn:not(:disabled):active { background: var(--els-color-link); }
.els-btn--quiet:not(:disabled):active, .els-btn--light:not(:disabled):active { background: var(--els-color-surface-accent); }
.els-text-btn { min-height: 48px; padding: 0 var(--els-space-2); border: 0; background: none; color: var(--els-color-text-secondary); font-size: var(--els-type-label); line-height: var(--els-leading-label); font-weight: var(--els-weight-strong); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.els-field > .els-text-btn, .els-flow-body > .els-text-btn { padding-inline: 0; }
.els-flow-note { padding-block: var(--els-space-6); font-size: var(--els-type-meta); line-height: var(--els-leading-meta); color: var(--els-color-text-secondary); }

/* 입력: 화면 제목이 질문이면 칸 이름은 els-sr로 화면 낭독기에만 남긴다 */
.els-field { margin-bottom: var(--els-space-8); scroll-margin: 72px 0 96px; }
.els-field__label { display: block; margin-bottom: var(--els-space-2); font-size: var(--els-type-label); line-height: var(--els-leading-label); font-weight: var(--els-weight-strong); color: var(--els-color-text-secondary); }
.els-input { width: 100%; min-width: 0; min-height: 56px; padding: var(--els-space-3) var(--els-space-4); border: 1.5px solid var(--els-color-border-strong); border-radius: var(--els-radius-control); background: var(--els-color-surface); color: var(--els-color-text-primary); font: inherit; font-size: var(--els-type-body); font-variant-numeric: tabular-nums; }
.els-input::placeholder { color: var(--els-color-text-secondary); opacity: 1; }
.els-input:focus { border-color: var(--els-color-focus); }
.els-input[aria-invalid="true"] { border-color: var(--els-color-status-danger); }
.els-hint { margin-top: var(--els-space-2); font-size: var(--els-type-meta); line-height: var(--els-leading-meta); color: var(--els-color-text-secondary); }
.els-field-error { margin-top: var(--els-space-2); font-size: var(--els-type-label); line-height: var(--els-leading-label); font-weight: var(--els-weight-strong); color: var(--els-color-status-danger); }
.els-field-error::before { content: "! "; }

/* 선택: 상자와 선은 고를 때만. 라디오는 :has로 고른 칸을 표시하고, 바로 넘어가는 선택은 button.els-choice */
.els-choices { display: grid; gap: var(--els-space-3); min-inline-size: 0; margin: 0 0 var(--els-space-6); padding: 0; border: 0; }
.els-choices legend { margin-bottom: var(--els-space-2); padding: 0; font-size: var(--els-type-label); font-weight: var(--els-weight-strong); }
.els-choice { display: flex; align-items: center; gap: var(--els-space-3); width: 100%; min-height: 72px; padding: var(--els-space-4); border: 1.5px solid transparent; border-radius: var(--els-radius-panel); background: var(--els-color-surface-subtle); color: var(--els-color-text-primary); text-align: left; cursor: pointer; transition: background-color var(--els-motion-effects) var(--els-ease), border-color var(--els-motion-effects) var(--els-ease); }
.els-choice:hover, .els-choice:active { background: var(--els-color-surface-accent); }
.els-choice:has(input:checked) { border-color: var(--els-color-action-primary); background: var(--els-color-surface-accent); }
.els-choice:has(input:focus-visible) { outline: 3px solid var(--els-color-focus); outline-offset: 2px; }
.els-choice input:focus-visible { outline: none; }
.els-choice input, .els-confirm input { flex: none; inline-size: 24px; block-size: 24px; margin: 0; accent-color: var(--els-color-action-primary); }
.els-choice strong { display: block; font-weight: var(--els-weight-strong); }
.els-choice small { display: block; margin-top: 2px; font-size: var(--els-type-label); line-height: var(--els-leading-label); color: var(--els-color-text-secondary); }
button.els-choice > span { flex: 1; }
button.els-choice::after { content: "›"; flex: none; font-size: var(--els-type-title); line-height: 1; color: var(--els-color-text-secondary); }

/* 확인할 내용과 짧은 안내 줄 */
.els-summary { display: grid; grid-template-columns: minmax(96px, 36%) minmax(0, 1fr); gap: var(--els-space-3) var(--els-space-4); margin: 0 0 var(--els-space-8); }
.els-summary dt { color: var(--els-color-text-secondary); }
.els-summary dd { margin: 0; font-weight: var(--els-weight-strong); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.els-facts { display: grid; gap: var(--els-space-3); margin-bottom: var(--els-space-4); font-size: var(--els-type-label); line-height: var(--els-leading-label); }
.els-facts li { position: relative; padding-left: 20px; }
.els-facts li::before { content: ""; position: absolute; left: 2px; top: .62em; inline-size: 8px; block-size: 8px; border-radius: 50%; background: var(--els-color-action-primary); }
/* 필수 확인: 동의 문장 원문은 화면의 말투와 달라도 그대로 둔다 */
.els-confirm { display: flex; align-items: flex-start; gap: var(--els-space-3); min-height: 48px; padding: var(--els-space-3) 0; font-size: var(--els-type-label); line-height: var(--els-leading-label); cursor: pointer; scroll-margin: 72px 0 96px; }
.els-confirm input { margin-top: 1px; }

/* 하단 시트: 짧은 선택과 되돌릴 수 없는 행동의 확인에만 쓴다. <dialog class="els-sheet"> */
.els-sheet { position: fixed; inset: auto 0 0 0; inline-size: 100%; max-inline-size: 480px; max-block-size: 85dvh; margin: 0 auto; padding: var(--els-space-8) var(--els-space-6) max(var(--els-space-4), env(safe-area-inset-bottom)); overflow: auto; border: 0; border-radius: var(--els-radius-panel) var(--els-radius-panel) 0 0; background: var(--els-color-surface); color: var(--els-color-text-primary); }
/* ::backdrop은 오래된 브라우저에서 변수를 이어받지 못해 토큰과 같은 값을 대체값으로 둔다 */
.els-sheet::backdrop { background: var(--els-color-scrim, rgba(23, 44, 58, .45)); }
.els-sheet .els-title { margin-bottom: var(--els-space-2); }
.els-sheet .els-title + p { margin-bottom: var(--els-space-6); color: var(--els-color-text-secondary); }
.els-sheet__actions { display: grid; gap: var(--els-space-2); }
/* 멈출지 묻는 확인은 두 버튼을 같은 무게로 둔다(한쪽을 주요 버튼으로 강조하지 않는다) */
.els-sheet__actions--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.els-sheet-option { display: flex; align-items: center; width: 100%; min-height: 56px; padding: 0 var(--els-space-4); border: 0; border-radius: var(--els-radius-control); background: var(--els-color-surface-subtle); color: var(--els-color-text-primary); font-weight: var(--els-weight-strong); text-align: left; cursor: pointer; }
.els-sheet-option:hover, .els-sheet-option:active { background: var(--els-color-surface-accent); }
/* 파일 고르기처럼 label 안에 숨긴 입력을 둔 선택지도 키보드 초점이 보이게 한다 */
.els-sheet-option:has(input:focus-visible) { outline: 3px solid var(--els-color-focus); outline-offset: 2px; }

/* ---------- 진행·결과·자료 요청: 무엇이 됐고, 공이 누구에게 있고, 다음에 무엇이 일어나는지 ----------
   디자인 시스템 기반 리서치(2026-11-13) 3단계. 처리 단계 표시(원 16px, 끝난 단계 Blue, 지금 단계 고리)와
   결과 표시(원 48px)는 홈택스 수임동의 고객 화면의 모양을 토큰으로 옮겼다. */

/* 상태 표지: 글과 기호를 같이 쓴다. 색만으로 구분하지 않는다 */
.els-badge { display: inline-flex; align-items: center; gap: var(--els-space-1); font-size: var(--els-type-meta); line-height: var(--els-leading-meta); font-weight: var(--els-weight-strong); white-space: nowrap; }
.els-badge::before { content: ""; inline-size: 8px; block-size: 8px; border-radius: 50%; background: currentColor; }
.els-badge--need { color: var(--els-color-status-warning); }
.els-badge--wait { color: var(--els-color-status-unknown); }
.els-badge--done { color: var(--els-color-status-success); }
.els-badge--problem { color: var(--els-color-status-danger); }

/* 누가 했는지·누구 차례인지: 사람(고객, ELS 세무사)과 AI를 구분한다 */
.els-actor { display: inline-flex; align-items: center; gap: var(--els-space-1); padding: 2px var(--els-space-2); border: 1px solid var(--els-color-border-default); border-radius: var(--els-radius-control); background: var(--els-color-surface); color: var(--els-color-text-secondary); font-size: var(--els-type-meta); line-height: var(--els-leading-meta); white-space: nowrap; }
.els-actor--customer { border-color: var(--els-color-status-warning); color: var(--els-color-status-warning); font-weight: var(--els-weight-strong); }

/* 진행 상태: 끝난 단계는 날짜, 지금 단계는 기한과 넘기면 일어나는 일, 남은 단계는 예정 */
.els-timeline { display: grid; margin: var(--els-space-6) 0 var(--els-space-8); padding: 0; list-style: none; }
.els-timeline > li { position: relative; padding: 0 0 var(--els-space-6) 32px; color: var(--els-color-text-secondary); }
.els-timeline > li:last-child { padding-bottom: 0; }
.els-timeline > li::before { content: ""; position: absolute; left: 2px; top: .3em; inline-size: 16px; block-size: 16px; border: 2px solid var(--els-color-border-default); border-radius: 50%; background: var(--els-color-surface); box-sizing: border-box; }
.els-timeline > li::after { content: ""; position: absolute; left: 9px; top: calc(.3em + 20px); bottom: 4px; border-left: 2px solid var(--els-color-border-default); }
.els-timeline > li:last-child::after { display: none; }
.els-timeline__name { display: flex; flex-wrap: wrap; align-items: center; gap: var(--els-space-1) var(--els-space-2); }
.els-timeline__name strong { font-weight: var(--els-weight-regular); }
.els-timeline__when { margin-top: 2px; font-size: var(--els-type-meta); line-height: var(--els-leading-meta); font-variant-numeric: tabular-nums; }
.els-timeline > li[data-state="done"] { color: var(--els-color-text-primary); }
.els-timeline > li[data-state="done"]::before { border-color: var(--els-color-action-primary); background: var(--els-color-action-primary); }
/* 끝난 단계의 체크: 굵기 700을 쓰지 않으려고 글자 대신 선으로 그린다 */
.els-timeline > li[data-state="done"] > .els-timeline__name::before { content: ""; position: absolute; left: 8px; top: calc(.3em + 4px); inline-size: 4px; block-size: 7px; border: solid var(--els-color-action-on-primary); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.els-timeline > li[data-state="done"]::after { border-left-color: var(--els-color-action-primary); }
.els-timeline > li[data-state="now"] { color: var(--els-color-text-primary); }
.els-timeline > li[data-state="now"] .els-timeline__name strong { font-weight: var(--els-weight-strong); }
.els-timeline > li[data-state="now"]::before { border-color: var(--els-color-action-primary); box-shadow: 0 0 0 4px var(--els-color-surface-accent); }
.els-timeline__detail { margin-top: var(--els-space-3); padding: var(--els-space-4); border-radius: var(--els-radius-control); background: var(--els-color-surface-subtle); font-size: var(--els-type-label); line-height: var(--els-leading-label); color: var(--els-color-text-primary); }
.els-timeline__detail p + p { margin-top: var(--els-space-2); }
.els-timeline__detail .els-btn, .els-timeline__detail .els-link { margin-top: var(--els-space-3); }

/* 결과: 제목은 실제로 일어난 일(보냄·접수·완료를 구분), 아래에 처리 증거와 다음 일 */
.els-result-mark { display: grid; place-items: center; inline-size: 48px; block-size: 48px; margin-bottom: var(--els-space-4); border-radius: 50%; background: var(--els-color-action-primary); color: var(--els-color-action-on-primary); }
.els-result-mark svg { inline-size: 24px; block-size: 24px; }
.els-result-mark--sent { background: var(--els-color-surface-accent); color: var(--els-color-link); }
.els-result-mark--attention { background: var(--els-color-status-warning-surface); color: var(--els-color-status-warning); }
.els-next-steps { margin: 0 0 var(--els-space-8); padding: var(--els-space-4) var(--els-space-6) var(--els-space-6); border-radius: var(--els-radius-panel); background: var(--els-color-surface-subtle); }
.els-next-steps > :is(h2, h3) { margin-bottom: var(--els-space-3); font-size: var(--els-type-label); line-height: var(--els-leading-label); }
.els-next-steps ol { display: grid; gap: var(--els-space-3); margin: 0; padding-left: var(--els-space-6); list-style: decimal; font-size: var(--els-type-label); line-height: var(--els-leading-label); }
.els-next-steps ol li::marker { color: var(--els-color-text-secondary); font-variant-numeric: tabular-nums; }

/* 자료 요청: 항목마다 무엇을, 왜, 상태, 할 일 */
.els-requests { margin: 0 0 var(--els-space-8); border-top: 1px solid var(--els-color-ink-100); }
.els-request { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--els-space-1) var(--els-space-4); padding: var(--els-space-4) 0; border-bottom: 1px solid var(--els-color-ink-100); }
.els-request__what { font-weight: var(--els-weight-strong); }
.els-request__why { grid-column: 1; font-size: var(--els-type-label); line-height: var(--els-leading-label); color: var(--els-color-text-secondary); }
.els-request .els-badge { grid-column: 1; }
.els-request > .els-btn, .els-request > .els-text-btn { grid-column: 2; grid-row: 1 / span 3; }

/* 거래 하나: 날짜·상대·금액을 먼저 보이고 그 아래에서 묻는다 */
.els-txn { display: grid; gap: var(--els-space-1); margin: 0 0 var(--els-space-6); padding: var(--els-space-6); border: 1px solid var(--els-color-border-default); border-radius: var(--els-radius-panel); }
.els-txn__meta { font-size: var(--els-type-meta); line-height: var(--els-leading-meta); color: var(--els-color-text-secondary); font-variant-numeric: tabular-nums; }
.els-txn__party { font-weight: var(--els-weight-strong); }
.els-txn__amount { font-size: var(--els-type-title); line-height: var(--els-leading-title); letter-spacing: var(--els-tracking-title); font-weight: var(--els-weight-strong); font-variant-numeric: tabular-nums; }

/* 올린 파일: 이름과 상태(올리는 중 → 확인 전 → 확인됨), 지우기 */
.els-files { display: grid; gap: var(--els-space-2); margin: 0 0 var(--els-space-6); }
.els-file { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: var(--els-space-3); padding: var(--els-space-3); border-radius: var(--els-radius-control); background: var(--els-color-surface-subtle); }
.els-file__icon { display: grid; place-items: center; inline-size: 40px; block-size: 40px; border-radius: var(--els-radius-control); background: var(--els-color-surface); color: var(--els-color-text-secondary); }
.els-file__icon svg { inline-size: 20px; block-size: 20px; }
.els-file__name { display: block; overflow: hidden; font-size: var(--els-type-label); line-height: var(--els-leading-label); font-weight: var(--els-weight-strong); text-overflow: ellipsis; white-space: nowrap; }

/* 담당 세무사: 사람이 책임지는 자리. 별점·후기 수·처리 건수는 두지 않는다 */
.els-expert { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: var(--els-space-1) var(--els-space-4); padding: var(--els-space-4) 0; border-top: 1px solid var(--els-color-ink-100); }
.els-expert__mark { grid-row: 1 / span 2; display: grid; place-items: center; inline-size: 48px; block-size: 48px; border-radius: 50%; background: var(--els-color-surface-accent); color: var(--els-color-link); font-weight: var(--els-weight-strong); }
.els-expert__name { font-weight: var(--els-weight-strong); }
.els-expert__role { font-size: var(--els-type-label); line-height: var(--els-leading-label); color: var(--els-color-text-secondary); }
.els-expert > .els-text-btn, .els-expert > .els-link { grid-column: 2; justify-self: start; padding-inline: 0; }

/* 넓은 화면: 옅은 바탕 위 흰 면. 하단 버튼은 고정하지 않는다 */
@media (min-width: 600px) {
  .els-page:has(.els-flow) { background: var(--els-color-surface-subtle); }
  .els-flow-bar { background: var(--els-color-surface-subtle); }
  .els-progress { background: var(--els-color-border-default); }
  .els-flow-panel { margin-top: var(--els-space-4); padding: var(--els-space-4) var(--els-space-8) 0; border-radius: var(--els-radius-panel); background: var(--els-color-surface); }
  .els-flow { padding-inline: 0; }
  .els-flow-screen { min-height: 0; }
  .els-flow-actions { position: static; padding-bottom: var(--els-space-8); }
  .els-flow-actions::before { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  /* 진행 막대는 내용이 자리 잡은 뒤에 따로 채운다. 화면이 바뀔 때는 내용만 들어오고 하단 버튼은 제자리에 있다 */
  .els-progress > span { transition: inline-size var(--els-motion-progress) var(--els-ease) var(--els-motion-progress-delay); }
  .els-flow-enter > .els-flow-body { animation: els-flow-in var(--els-motion-spatial) var(--els-ease); }
  .els-sheet[open] { animation: els-sheet-in var(--els-motion-spatial) var(--els-ease); }
}
@keyframes els-flow-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes els-sheet-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
/* ---------- 글 상세: 머리, 신뢰 줄, 목차, 본문, 그림 틀, 권고, 근거, 다음 행동, 묶음 ---------- */
.els-notice { padding-block: var(--els-space-3); background: var(--els-color-status-warning-surface); color: var(--els-color-status-warning); font-size: var(--els-type-meta); line-height: var(--els-leading-meta); font-weight: var(--els-weight-strong); }
.els-article { padding-block: var(--els-space-6) var(--els-space-16); }
.els-article-head { max-width: 880px; margin-top: var(--els-space-6); }
.els-article-head > .els-display { margin-top: var(--els-space-3); }
.els-article-head > .els-display + p { max-width: 40em; margin-top: var(--els-space-4); color: var(--els-color-text-secondary); }
/* 신뢰 줄: 검토 상태, 최근 업데이트일, 읽는 시간. 검토 상태는 글로 적고 색은 보조다. */
.els-trust { display: flex; flex-wrap: wrap; align-items: center; gap: var(--els-space-2) var(--els-space-6); margin-top: var(--els-space-6); padding-block: var(--els-space-4); border-block: 1px solid var(--els-color-border-default); font-size: var(--els-type-meta); line-height: var(--els-leading-meta); color: var(--els-color-text-secondary); }
.els-review { display: inline-flex; align-items: center; gap: var(--els-space-2); font-weight: var(--els-weight-strong); color: var(--els-color-status-unknown); }
.els-review::before { content: ""; width: 8px; height: 8px; border-radius: var(--els-radius-pill); border: 2px solid currentColor; }
.els-review--done { color: var(--els-color-status-success); }
.els-review--done::before { background: currentColor; }
.els-article-layout { display: grid; grid-template-columns: 224px minmax(0, 680px); gap: var(--els-space-16); margin-top: var(--els-space-8); }
.els-article-side { position: sticky; top: 92px; align-self: start; display: grid; gap: var(--els-space-8); }
.els-toc summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; font-size: var(--els-type-label); line-height: var(--els-leading-label); font-weight: var(--els-weight-strong); list-style: none; cursor: pointer; }
.els-toc summary::-webkit-details-marker { display: none; }
.els-toc summary span { font-size: var(--els-type-meta); font-weight: var(--els-weight-regular); color: var(--els-color-text-secondary); }
.els-toc ol { margin: var(--els-space-2) 0 0; padding: 0; list-style: none; }
.els-toc ol a { display: flex; gap: var(--els-space-3); min-height: 44px; padding: var(--els-space-2) var(--els-space-3); border-radius: 0 var(--els-radius-control) var(--els-radius-control) 0; font-size: var(--els-type-label); line-height: var(--els-leading-label); color: var(--els-color-text-secondary); }
.els-toc ol a:hover { background: var(--els-color-surface-subtle); color: var(--els-color-text-primary); }
.els-toc ol a[aria-current="location"] { background: var(--els-color-surface-accent); color: var(--els-color-link); font-weight: var(--els-weight-strong); box-shadow: inset 3px 0 0 var(--els-color-action-primary); }
.els-toc ol a span { flex: none; font-size: var(--els-type-meta); font-variant-numeric: tabular-nums; padding-top: 1px; }
.els-side-series ol { margin-top: var(--els-space-2); padding: 0; list-style: none; }
.els-side-series > p { font-size: var(--els-type-meta); line-height: var(--els-leading-meta); font-weight: var(--els-weight-strong); }
.els-side-series li { padding-block: var(--els-space-2); border-bottom: 1px solid var(--els-color-ink-100); font-size: var(--els-type-meta); line-height: var(--els-leading-meta); color: var(--els-color-text-secondary); }
.els-side-series li[aria-current] { color: var(--els-color-text-primary); font-weight: var(--els-weight-strong); }
/* 본문: 문단, 소제목, 목록, 문장 속 링크 */
.els-prose > * + *, .els-prose :where(section) > * + * { margin-top: var(--els-space-4); }
.els-prose h2 { margin-top: var(--els-space-12); font-size: var(--els-type-title); line-height: var(--els-leading-title); letter-spacing: var(--els-tracking-title); }
.els-prose h2 + * { margin-top: var(--els-space-3); }
.els-prose :where(ul, ol) { display: grid; gap: var(--els-space-2); padding-left: var(--els-space-6); }
.els-prose ul { list-style: disc; }
.els-prose ol { list-style: decimal; }
.els-prose a { color: var(--els-color-link); text-decoration: underline; text-underline-offset: 3px; }
.els-prose a:hover { text-decoration-thickness: 2px; }
/* 그림 틀: 결론 제목, 그림, 캡션(판단 기관·날짜·심급, 그림의 성격). 그림 속 글자는 이름표뿐이다. */
.els-prose .els-figure { margin: var(--els-space-8) 0; }
.els-figure > .els-kicker { font-size: var(--els-type-meta); line-height: var(--els-leading-meta); }
.els-figure > .els-title { margin-top: var(--els-space-1); }
.els-figure__frame { margin-top: var(--els-space-4); overflow-x: auto; border-radius: var(--els-radius-panel); background: var(--els-color-surface-subtle); }
.els-figure__frame > img { width: 100%; }
.els-figure__hint { display: none; }
.els-figure figcaption { margin-top: var(--els-space-3); font-size: var(--els-type-meta); line-height: var(--els-leading-meta); color: var(--els-color-text-secondary); }
/* 권고 표시: 법적 의무와 구별되는 ELS의 권고. 꼬리표와 한계 문장을 함께 둔다. */
.els-advice { padding: var(--els-space-6); border-radius: var(--els-radius-panel); background: var(--els-color-surface-accent); }
.els-tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 var(--els-space-2); border-radius: var(--els-radius-pill); background: var(--els-color-surface-subtle); font-size: var(--els-type-meta); line-height: var(--els-leading-meta); font-weight: var(--els-weight-strong); color: var(--els-color-text-secondary); white-space: nowrap; }
.els-tag--advice { background: var(--els-color-surface); color: var(--els-color-link); }
.els-tag--warn { background: var(--els-color-status-warning-surface); color: var(--els-color-status-warning); }
.els-advice .els-tag + p { margin-top: var(--els-space-3); font-size: var(--els-type-label); line-height: var(--els-leading-label); color: var(--els-color-text-secondary); }
.els-advice ol { margin-top: var(--els-space-4); }
/* 근거와 기준: 공식 근거, ELS 실무 판단, ELS 권고를 나누고 적용 범위와 확인일을 둔다 */
.els-sources { margin-top: var(--els-space-16); padding-top: var(--els-space-8); border-top: 2px solid var(--els-color-text-primary); }
.els-sources > .els-title + p { margin-top: var(--els-space-2); font-size: var(--els-type-label); line-height: var(--els-leading-label); color: var(--els-color-text-secondary); }
.els-sources > h2, .els-series > h2 { margin-top: 0; }
.els-sources__group { margin-top: var(--els-space-8); }
.els-sources__group ul { display: block; padding: 0; list-style: none; }
.els-sources__group > h3 { font-size: var(--els-type-label); line-height: var(--els-leading-label); }
.els-sources__group li { display: grid; gap: var(--els-space-1); padding-block: var(--els-space-4); border-bottom: 1px solid var(--els-color-ink-100); font-size: var(--els-type-label); line-height: var(--els-leading-label); }
.els-sources__group li > div { display: flex; flex-wrap: wrap; align-items: center; gap: var(--els-space-2); }
.els-sources__group li .els-meta { color: var(--els-color-text-secondary); }
.els-sources a { color: var(--els-color-link); text-decoration: underline; text-underline-offset: 3px; }
.els-scope { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: var(--els-space-3) var(--els-space-6); margin: var(--els-space-8) 0 0; font-size: var(--els-type-label); line-height: var(--els-leading-label); }
.els-scope dt { font-weight: var(--els-weight-strong); }
.els-scope dd { margin: 0; color: var(--els-color-text-secondary); }
/* 다음에 할 일: 글 주제에서 바로 나오는 행동 하나 */
.els-next { margin-top: var(--els-space-12); padding: var(--els-space-8); border-radius: var(--els-radius-panel); background: var(--els-color-text-primary); color: var(--els-color-ink-0); }
.els-next > .els-kicker { color: var(--els-color-ink-200); }
.els-next > .els-title { margin-top: var(--els-space-2); }
.els-next > .els-title + p { margin-top: var(--els-space-2); font-size: var(--els-type-label); line-height: var(--els-leading-label); color: var(--els-color-ink-200); }
.els-next > .els-btn { margin-top: var(--els-space-6); }
.els-next > .els-status { margin-top: var(--els-space-3); color: var(--els-color-ink-200); }
.els-next :focus-visible { outline-color: var(--els-color-focus-on-dark); }
/* 이 묶음의 다른 글 */
.els-series { margin-top: var(--els-space-12); }
.els-series > .els-title + p { margin-top: var(--els-space-2); font-size: var(--els-type-meta); line-height: var(--els-leading-meta); color: var(--els-color-text-secondary); }
.els-series ol { display: block; margin-top: var(--els-space-4); padding: 0; list-style: none; border-top: 1px solid var(--els-color-ink-100); }
.els-series li { display: grid; gap: var(--els-space-1); padding-block: var(--els-space-4); border-bottom: 1px solid var(--els-color-ink-100); }
.els-series li[aria-current] { padding-inline: var(--els-space-3); background: var(--els-color-surface-subtle); }
.els-series li > span:first-child { font-weight: var(--els-weight-strong); }

/* ---------- 금융 연결·내역·메모: 연결 대상, 수단별 상태, 거래 줄과 상세, 메모, 가운데 대화상자 ----------
   고객 금융 디자인 리서치(2026-11-17) 1단계 시안에서 처음 쓴다. 수단 줄은 els-requests/els-request를,
   라벨-값은 els-summary를, 진행 칸은 els-timeline을 그대로 쓴다. 여기에는 그것으로 안 되는 것만 둔다. */

/* 앱 틀: 넓은 화면에서는 왼쪽에 메뉴가 서고 본문은 옅은 바탕 위의 흰 판에 놓인다.
   1000px보다 좁으면 왼쪽 메뉴를 숨기고 상단바(els-topbar)의 메뉴를 쓴다 */
.els-app__main { min-block-size: 100dvh; padding: var(--els-space-8) var(--els-space-4) var(--els-space-16); background: var(--els-color-surface-subtle); }
.els-app__col { max-inline-size: 640px; margin-inline: auto; }
.els-app__wide { max-inline-size: 1120px; margin-inline: auto; }
.els-app__main .els-headline { margin-bottom: var(--els-space-6); font-size: var(--els-type-title); line-height: var(--els-leading-title); letter-spacing: var(--els-tracking-title); }
.els-pane { margin-bottom: var(--els-space-4); padding: var(--els-space-6); border-radius: var(--els-radius-panel); background: var(--els-color-surface); }
.els-pane > .els-label { display: block; margin-bottom: var(--els-space-3); }
.els-pane > :last-child { margin-bottom: 0; }
.els-pane > .els-secondary, .els-pane > .els-btn { margin-bottom: var(--els-space-6); }
.els-app__main .els-work__head { align-items: center; margin-bottom: var(--els-space-4); }
.els-app__main .els-work__head .els-headline { margin-bottom: 0; }
.els-pane > .els-rows { border-top: 0; }
.els-side > .els-brand { padding-inline: var(--els-space-3); }
.els-side { display: none; }
.els-side__org { display: grid; gap: 2px; padding: var(--els-space-3); border-radius: var(--els-radius-control); background: var(--els-color-surface-subtle); font-size: var(--els-type-label); line-height: var(--els-leading-label); }
.els-side__org strong { font-weight: var(--els-weight-strong); }
.els-side__org small { font-size: var(--els-type-meta); line-height: var(--els-leading-meta); color: var(--els-color-text-secondary); font-variant-numeric: tabular-nums; }
.els-side__group { display: grid; gap: 2px; }
.els-side__label { padding: var(--els-space-2) var(--els-space-3) var(--els-space-1); font-size: var(--els-type-meta); line-height: var(--els-leading-meta); color: var(--els-color-text-secondary); }
.els-side__group a { display: flex; align-items: center; min-height: 44px; padding: 0 var(--els-space-3); border-radius: var(--els-radius-control); font-size: var(--els-type-label); line-height: var(--els-leading-label); }
.els-side__group a { justify-content: space-between; gap: var(--els-space-2); }
/* 새로 들어온 것의 수 */
.els-side__count { display: inline-grid; place-items: center; min-inline-size: 24px; block-size: 24px; padding: 0 var(--els-space-2); border-radius: var(--els-radius-panel); background: var(--els-color-action-primary); color: var(--els-color-ink-0); font-size: var(--els-type-meta); line-height: 1; font-weight: var(--els-weight-strong); font-variant-numeric: tabular-nums; }
.els-new { display: inline-block; inline-size: 8px; block-size: 8px; margin-right: var(--els-space-2); border-radius: 50%; background: var(--els-color-action-primary); vertical-align: middle; }
.els-side__group a:hover { background: var(--els-color-surface-subtle); }
.els-side__group a[aria-current="page"] { background: var(--els-color-ink-100); font-weight: var(--els-weight-strong); }
@media (min-width: 1000px) {
  .els-app { display: grid; grid-template-columns: 248px minmax(0, 1fr); align-items: start; }
  .els-app > .els-topbar { display: none; }
  .els-side { position: sticky; top: 0; display: flex; flex-direction: column; gap: var(--els-space-4); block-size: 100dvh; padding: var(--els-space-4) var(--els-space-3); overflow: auto; border-right: 1px solid var(--els-color-ink-100); background: var(--els-color-surface); }
  .els-app__main { padding-inline: var(--els-space-8); }
}

/* 고르는 타일: 표시(로고 자리)와 이름. 고른 것은 테두리로, 못 고르는 것은 흐리게 하고 이유를 아래 줄에 적는다 */
.els-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--els-space-2); }
.els-tiles--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.els-tile { display: grid; justify-items: center; align-content: center; gap: var(--els-space-1); min-height: 76px; padding: var(--els-space-3) var(--els-space-2); border: 0; border-radius: var(--els-radius-control); background: var(--els-color-surface); box-shadow: inset 0 0 0 1px var(--els-color-border-default); font-size: var(--els-type-meta); line-height: var(--els-leading-meta); font-weight: var(--els-weight-strong); text-align: center; cursor: pointer; }
.els-tile:hover { background: var(--els-color-surface-subtle); }
.els-tile[aria-pressed="true"] { background: var(--els-color-surface-accent); box-shadow: inset 0 0 0 2px var(--els-color-action-primary); }
.els-tile[aria-disabled="true"] { background: var(--els-color-surface-subtle); box-shadow: none; color: var(--els-color-text-secondary); font-weight: var(--els-weight-regular); cursor: not-allowed; }
.els-tile[aria-disabled="true"] .els-mark { opacity: .5; }
.els-tiles--2 .els-tile { justify-items: start; min-height: 104px; padding: var(--els-space-4); font-size: var(--els-type-label); line-height: var(--els-leading-label); text-align: left; }
.els-tile small { font-size: var(--els-type-meta); line-height: var(--els-leading-meta); font-weight: var(--els-weight-regular); color: var(--els-color-text-secondary); }
/* 표시: 로고(img) 또는 로고가 없을 때의 첫 글자(span) */
img.els-mark { padding: 4px; border: 1px solid var(--els-color-ink-100); background: var(--els-color-surface); object-fit: contain; }
.els-mark { display: grid; flex: none; place-items: center; inline-size: 32px; block-size: 32px; border-radius: var(--els-radius-control); background: var(--els-color-ink-100); color: var(--els-color-text-secondary); font-size: var(--els-type-meta); line-height: 1; font-weight: var(--els-weight-strong); }

/* 업무 화면의 본문과 머리 */
.els-work { padding-block: var(--els-space-8) var(--els-space-16); }
.els-work__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--els-space-4); margin-bottom: var(--els-space-6); }
.els-work__head > div > .els-headline + p { max-width: 36em; margin-top: var(--els-space-2); color: var(--els-color-text-secondary); }
.els-work__narrow { max-width: 720px; }
.els-select { min-height: 44px; max-width: 100%; padding: 0 var(--els-space-3); border: 1.5px solid var(--els-color-border-strong); border-radius: var(--els-radius-control); background: var(--els-color-surface); color: var(--els-color-text-primary); font: inherit; font-size: var(--els-type-label); }

/* 알림 상자: 원인, 고객이 할 수 있는 일, 버튼 하나. 색만으로 구분하지 않게 첫 줄에 굵은 글을 둔다 */
.els-notice { display: grid; gap: var(--els-space-1); margin: 0 0 var(--els-space-6); padding: var(--els-space-4); border-radius: var(--els-radius-control); background: var(--els-color-surface-subtle); font-size: var(--els-type-label); line-height: var(--els-leading-label); }
.els-notice strong { font-weight: var(--els-weight-strong); }
.els-notice--problem { background: var(--els-color-status-danger-surface); }
.els-notice--need { background: var(--els-color-status-warning-surface); }
.els-notice > .els-btn, .els-notice > .els-text-btn { justify-self: start; margin-top: var(--els-space-2); }

/* 기다림: 끝을 모르는 일에만. 진행률을 지어내지 않는다. 모션 감소에서는 고리가 멈추고 글이 상태를 말한다 */
.els-wait { display: flex; align-items: center; gap: var(--els-space-3); margin: 0 0 var(--els-space-6); padding: var(--els-space-4); border-radius: var(--els-radius-control); background: var(--els-color-surface-subtle); font-size: var(--els-type-label); line-height: var(--els-leading-label); }
.els-wait::before { content: ""; flex: none; inline-size: 20px; block-size: 20px; border: 2px solid var(--els-color-border-default); border-top-color: var(--els-color-action-primary); border-radius: 50%; }

/* 자리 표시: 목록을 읽는 동안 줄 모양만 보인다. 모션 감소에서는 흐르지 않고, 상태는 글(els-sr)로 따로 알린다 */
.els-skeleton { display: grid; border-top: 2px solid var(--els-color-ink-100); }
.els-skeleton > span { display: block; block-size: 56px; border-bottom: 1px solid var(--els-color-ink-100); background: linear-gradient(90deg, var(--els-color-surface-subtle) 25%, var(--els-color-ink-100) 50%, var(--els-color-surface-subtle) 75%) 150% 50% / 300% 20px no-repeat; }

/* 둘 중 하나 고르기: 라디오(label > input + span) 또는 눌린 상태 버튼(aria-pressed) */
.els-segment { display: inline-flex; flex-wrap: wrap; gap: var(--els-space-1); min-inline-size: 0; margin: 0; padding: var(--els-space-1); border: 0; border-radius: var(--els-radius-control); background: var(--els-color-surface-subtle); }
.els-segment label { display: inline-flex; cursor: pointer; }
.els-segment input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.els-segment span, .els-segment button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--els-space-4); border: 0; border-radius: var(--els-radius-control); background: none; color: var(--els-color-text-secondary); font-size: var(--els-type-label); cursor: pointer; }
.els-segment input:checked + span, .els-segment button[aria-pressed="true"] { background: var(--els-color-surface); color: var(--els-color-text-primary); font-weight: var(--els-weight-strong); box-shadow: inset 0 0 0 1.5px var(--els-color-text-primary); }
.els-segment--full { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.els-segment--full label, .els-segment--full span { justify-content: center; inline-size: 100%; }
.els-segment input:focus-visible + span { outline: 3px solid var(--els-color-focus); outline-offset: 3px; }

/* 연결 대상 줄: 이름과 화살표. 상태 글은 문제가 있거나 기다리는 중일 때만 한 줄 붙는다. 자세한 것은 눌러서 본다 */
.els-linkrows { margin: 0 0 var(--els-space-8); padding: 0; border-top: 2px solid var(--els-color-text-primary); list-style: none; }
.els-linkrow { display: flex; align-items: center; justify-content: space-between; gap: var(--els-space-3); width: 100%; min-height: 64px; padding: var(--els-space-3); border: 0; border-bottom: 1px solid var(--els-color-ink-100); background: none; font-size: var(--els-type-label); line-height: var(--els-leading-label); text-align: left; cursor: pointer; }
.els-linkrow:hover { background: var(--els-color-surface-subtle); }
.els-linkrow[aria-current="true"] { background: var(--els-color-surface-accent); box-shadow: inset 3px 0 0 var(--els-color-action-primary); }
.els-linkrow strong { font-weight: var(--els-weight-strong); }
.els-pane > .els-linkrows { margin: 0 calc(-1 * var(--els-space-3)); border-top: 0; }
.els-pane .els-linkrow { border-bottom: 0; border-radius: var(--els-radius-control); }
.els-linkrow > .els-mark { display: grid; justify-items: center; }
.els-linkrow > span:not(.els-mark) { flex: 1; }
.els-linkrow > span { display: grid; justify-items: start; gap: 2px; min-width: 0; }
.els-linkrow small { font-size: var(--els-type-meta); line-height: var(--els-leading-meta); color: var(--els-color-text-secondary); }
.els-linkrow svg { flex: none; inline-size: 24px; block-size: 24px; color: var(--els-color-text-secondary); }

/* 거르기 단추: 남은 일만 건수와 함께 보인다. 누르면 그것만 거르고 다시 누르면 푼다 */
.els-counts { display: flex; flex-wrap: wrap; gap: var(--els-space-2); margin: 0 0 var(--els-space-4); }
.els-counts button { display: inline-flex; align-items: center; gap: var(--els-space-2); min-height: 44px; padding: 0 var(--els-space-3); border: 1px solid var(--els-color-border-default); border-radius: var(--els-radius-control); background: var(--els-color-surface); color: var(--els-color-text-secondary); font-size: var(--els-type-label); cursor: pointer; }
.els-counts button span { font-variant-numeric: tabular-nums; }
.els-counts button[aria-pressed="true"] { border-color: var(--els-color-text-primary); background: var(--els-color-text-primary); color: var(--els-color-ink-0); font-weight: var(--els-weight-strong); }

/* 거래 줄: 한 줄이 버튼 하나. 고른 줄은 바탕과 왼쪽 선으로 표시한다. 표지는 확인이 필요한 줄에만 붙인다 */
.els-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--els-space-6); align-items: start; }
.els-rows { border-top: 2px solid var(--els-color-text-primary); }
.els-rows__head, .els-row { display: grid; grid-template-columns: 124px 120px minmax(0, 1fr) minmax(0, 1.2fr) 112px; align-items: center; gap: var(--els-space-3); padding: var(--els-space-2) var(--els-space-3); }
.els-rows__head { border-bottom: 1px solid var(--els-color-border-default); font-size: var(--els-type-meta); line-height: var(--els-leading-meta); color: var(--els-color-text-secondary); }
.els-rows__head { padding-block: 0; }
.els-rows__head button { display: inline-flex; align-items: center; gap: var(--els-space-1); min-height: 44px; padding: 0; border: 0; background: none; color: inherit; font-size: inherit; text-align: left; cursor: pointer; }
.els-rows__head button:hover, .els-rows__head button[aria-pressed="true"] { color: var(--els-color-text-primary); }
.els-rows__head button[aria-pressed="true"] { font-weight: var(--els-weight-strong); }
.els-rows__head > :last-child { justify-content: flex-end; }
.els-sort { font-variant-numeric: tabular-nums; }
.els-row__card { display: flex; align-items: center; gap: var(--els-space-2); color: var(--els-color-text-secondary); font-size: var(--els-type-meta); font-variant-numeric: tabular-nums; }
.els-row__card .els-mark { inline-size: 24px; block-size: 24px; }
.els-row__card > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 작은 떠 있는 판: 단추 아래에 열린다. 바깥을 누르거나 Esc로 닫는다 */
.els-pop { position: relative; display: inline-block; }
.els-pop__btn { display: inline-flex; align-items: center; gap: var(--els-space-2); cursor: pointer; }
.els-pop__btn::after { content: ""; inline-size: 8px; block-size: 8px; margin-top: -4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.els-pop__panel { position: absolute; top: calc(100% + var(--els-space-1)); right: 0; z-index: 30; display: grid; gap: var(--els-space-3); inline-size: min(360px, 100vw - 2 * var(--els-space-4)); padding: var(--els-space-4); border: 1px solid var(--els-color-ink-100); border-radius: var(--els-radius-panel); background: var(--els-color-surface); box-shadow: var(--els-shadow-float), var(--els-shadow-paper); }
.els-pop__year { display: flex; align-items: center; justify-content: space-between; }
.els-pop__year .els-icon-btn { margin: 0; }
.els-pop__custom { display: grid; gap: var(--els-space-2); padding-top: var(--els-space-3); border-top: 1px solid var(--els-color-ink-100); }
.els-pop__custom > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: var(--els-space-2); }
.els-pop__custom .els-input { min-height: 44px; block-size: 44px; padding: 0 var(--els-space-2); font-size: var(--els-type-meta); }
/* 고르는 단추 묶음: 넷씩, 둘씩, 하나 */
.els-opts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--els-space-1); }
.els-opts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.els-opts--1 { grid-template-columns: minmax(0, 1fr); }
.els-opts button { display: grid; justify-items: center; align-content: center; min-height: 44px; padding: var(--els-space-1) var(--els-space-2); border: 0; border-radius: var(--els-radius-control); background: var(--els-color-surface-subtle); color: var(--els-color-text-primary); font-size: var(--els-type-label); line-height: var(--els-leading-label); cursor: pointer; }
.els-opts button:hover { background: var(--els-color-ink-100); }
.els-opts button[aria-pressed="true"] { background: var(--els-color-surface-accent); box-shadow: inset 0 0 0 2px var(--els-color-action-primary); font-weight: var(--els-weight-strong); }
.els-opts small { font-size: var(--els-type-meta); line-height: var(--els-leading-meta); font-weight: var(--els-weight-regular); color: var(--els-color-text-secondary); }
/* 머리의 도구 줄: 찾기와 고르는 칸 */
.els-tools { display: flex; flex-wrap: wrap; gap: var(--els-space-2); }
.els-tools .els-input { inline-size: 240px; max-inline-size: 100%; min-height: 44px; block-size: 44px; padding-block: 0; font-size: var(--els-type-label); }
.els-detail__body > .els-requests + .els-meta { margin-top: var(--els-space-4); padding-top: 0; border-top: 0; }
/* 제안 단추: 누르면 칸에 채워진다 */
.els-suggest { display: flex; flex-wrap: wrap; gap: var(--els-space-2); }
.els-suggest button { min-height: 44px; padding: 0 var(--els-space-3); border: 1px solid var(--els-color-border-default); border-radius: var(--els-radius-control); background: var(--els-color-surface); color: var(--els-color-text-primary); font-size: var(--els-type-label); cursor: pointer; }
.els-suggest button:hover { background: var(--els-color-surface-subtle); }
.els-detail .els-memo + .els-requests { margin-top: var(--els-space-6); }
.els-row { width: 100%; min-height: 56px; border: 0; border-bottom: 1px solid var(--els-color-ink-100); background: none; font-size: var(--els-type-label); line-height: var(--els-leading-label); text-align: left; cursor: pointer; }
.els-row:hover { background: var(--els-color-surface-subtle); }
.els-row[aria-current="true"] { background: var(--els-color-surface-accent); box-shadow: inset 3px 0 0 var(--els-color-action-primary); }
.els-row__when { color: var(--els-color-text-secondary); font-variant-numeric: tabular-nums; }
.els-row__party { min-width: 0; }
.els-row__party strong { display: block; overflow: hidden; font-weight: var(--els-weight-strong); text-overflow: ellipsis; white-space: nowrap; }
.els-row__memo { display: flex; align-items: center; gap: var(--els-space-2); min-width: 0; color: var(--els-color-text-secondary); }
.els-row__memo > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.els-row__memo .els-badge { flex: none; }
.els-row__todo { color: var(--els-color-link); text-decoration: underline; text-underline-offset: 3px; }
.els-row__amount { font-weight: var(--els-weight-strong); font-variant-numeric: tabular-nums; text-align: right; }
/* 딸린 줄: 앞 줄에 이어진 것(처음 계산서 아래의 수정 계산서). 들여 쓰고 화살표를 붙이며 글자 무게를 낮춘다. 둘째 줄(small)은 날짜나 금액에 덧붙는 값 */
.els-row__when small, .els-row__amount small { display: block; font-size: var(--els-type-meta); line-height: var(--els-leading-meta); font-weight: var(--els-weight-regular); color: var(--els-color-text-secondary); }
.els-row--parent { border-bottom-color: transparent; }
.els-row--child { min-height: 48px; background: var(--els-color-surface-subtle); color: var(--els-color-text-secondary); }
.els-row--child:hover { background: var(--els-color-surface-accent); }
.els-row--child .els-row__when { padding-left: var(--els-space-4); }
.els-row--child .els-row__when::before { content: "↳ "; }
.els-row--child .els-row__party strong, .els-row--child .els-row__amount { font-weight: var(--els-weight-regular); }

/* 서랍: 오른쪽 가장자리에서 밀려 나온다(<dialog>.show(), 뒤의 화면은 그대로 쓸 수 있다). 700px 이하에서는 화면 전체(.showModal()) */
.els-detail { position: fixed; inset: var(--els-space-2) var(--els-space-2) var(--els-space-2) auto; z-index: 25; inline-size: min(432px, 100% - 2 * var(--els-space-2)); max-inline-size: none; block-size: auto; max-block-size: none; margin: 0; padding: var(--els-space-6); overflow: auto; border: 1px solid var(--els-color-ink-100); box-shadow: var(--els-shadow-float), var(--els-shadow-paper); border-radius: var(--els-radius-panel); background: var(--els-color-surface); color: var(--els-color-text-primary); }
.els-detail:modal { inset: 0; box-shadow: none; inline-size: 100%; max-inline-size: 100%; block-size: 100dvh; max-block-size: 100dvh; overflow: auto; border: 0; border-radius: 0; }
.els-detail::backdrop { background: var(--els-color-scrim, rgba(23, 44, 58, .45)); }
.els-detail__bar, .els-dialog__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--els-space-3); }
.els-detail__bar .els-icon-btn, .els-dialog__bar .els-icon-btn { margin: 0; }
.els-detail__bar { margin-bottom: var(--els-space-4); }
/* 아래에 할 일을 붙여 두는 서랍: 가운데만 스크롤하고 아래 칸은 늘 같은 자리에 있다 */
.els-detail--foot[open] { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.els-detail--foot .els-detail__bar { margin: 0; padding: var(--els-space-6) var(--els-space-6) var(--els-space-4); }
.els-detail--foot .els-detail__body { flex: 1; min-block-size: 0; padding: 0 var(--els-space-6) var(--els-space-6); overflow: auto; }
.els-detail__foot { padding: var(--els-space-4) var(--els-space-6) var(--els-space-6); border-top: 1px solid var(--els-color-ink-100); background: var(--els-color-surface); }
.els-detail__foot .els-notice { margin: 0 0 var(--els-space-4); }
.els-detail__foot .els-label { display: block; }
.els-detail__card { display: flex; align-items: center; gap: var(--els-space-2); margin-top: var(--els-space-3); font-size: var(--els-type-label); line-height: var(--els-leading-label); }
.els-detail__card .els-mark { inline-size: 24px; block-size: 24px; padding: 2px; }
.els-detail__bar .els-title { min-width: 0; }
.els-detail .els-txn { margin: 0; padding: 0; border: 0; border-radius: 0; }
.els-detail .els-txn { gap: var(--els-space-1); }
.els-detail .els-memo { margin-top: 0; }
.els-detail__body > .els-meta { margin-top: var(--els-space-6); padding-top: var(--els-space-4); border-top: 1px solid var(--els-color-ink-100); }
/* 값이 내려오지 않은 칸: 빈칸이나 줄표 대신 글로 적는다 */
.els-summary .els-missing { font-weight: var(--els-weight-regular); color: var(--els-color-text-secondary); }
.els-pane > .els-meta { margin-bottom: var(--els-space-3); font-variant-numeric: tabular-nums; }
.els-work__narrow > .els-secondary { margin-bottom: var(--els-space-6); }
.els-work__narrow > .els-btn { margin-bottom: var(--els-space-6); }
.els-embed .els-pick { margin-top: var(--els-space-3); }
.els-more + .els-more { margin-top: 0; }
.els-dialog__body > section > .els-title { margin-bottom: var(--els-space-4); }
.els-dialog__body .els-requests { margin: var(--els-space-3) 0 0; }
.els-detail h3 { margin: var(--els-space-6) 0 var(--els-space-3); padding-top: var(--els-space-4); border-top: 1px solid var(--els-color-ink-100); font-size: var(--els-type-label); line-height: var(--els-leading-label); }
.els-detail .els-summary { grid-template-columns: 104px minmax(0, 1fr); gap: var(--els-space-2) var(--els-space-4); margin-bottom: 0; font-size: var(--els-type-label); line-height: var(--els-leading-label); }
.els-detail .els-summary dd { font-weight: var(--els-weight-regular); }
.els-detail .els-timeline { margin: var(--els-space-2) 0 0; font-size: var(--els-type-label); line-height: var(--els-leading-label); }
.els-detail .els-requests { margin: var(--els-space-4) 0 0; }
.els-detail > .els-meta, .els-detail__body > .els-meta { margin-top: var(--els-space-4); }
.els-detail .els-notice { margin: var(--els-space-4) 0 0; }
/* 더 보기: 기본 화면에서 뺀 것을 한 단계 아래에 둔다 */
.els-more { margin-top: var(--els-space-4); font-size: var(--els-type-label); line-height: var(--els-leading-label); }
.els-more > summary { display: inline-flex; align-items: center; min-height: 44px; color: var(--els-color-text-secondary); font-weight: var(--els-weight-strong); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.els-more > .els-timeline, .els-more > .els-summary, .els-more > .els-next-steps { margin-top: var(--els-space-3); }

/* 메모: 한 줄 입력, 글자 수, 저장 버튼, 저장 결과 줄. 결과는 토스트가 아니라 칸 아래에 남긴다 */
.els-memo { display: grid; gap: var(--els-space-2); }
.els-memo__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--els-space-2); }
.els-memo .els-input { min-height: 48px; }
.els-memo .els-input:disabled { border-color: var(--els-color-border-default); background: var(--els-color-surface-subtle); color: var(--els-color-text-secondary); }
.els-memo__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--els-space-1) var(--els-space-3); font-size: var(--els-type-meta); line-height: var(--els-leading-meta); color: var(--els-color-text-secondary); }
.els-memo__count { font-variant-numeric: tabular-nums; }

/* 가운데 대화상자: 다른 출처의 화면(로컬 iframe)을 담거나 여러 칸을 채울 때. 짧은 선택은 하단 시트를 쓴다 */
.els-dialog { inline-size: min(720px, 100% - 2 * var(--els-space-4)); max-inline-size: none; max-block-size: 92dvh; padding: 0; overflow: hidden; border: 0; border-radius: var(--els-radius-panel); background: var(--els-color-surface); color: var(--els-color-text-primary); }
.els-dialog--narrow { inline-size: min(520px, 100% - 2 * var(--els-space-4)); }
.els-dialog__kicker { display: flex; align-items: center; gap: var(--els-space-2); font-size: var(--els-type-meta); line-height: var(--els-leading-meta); font-weight: var(--els-weight-strong); color: var(--els-color-text-secondary); }
.els-dialog__foot { display: flex; justify-content: flex-end; gap: var(--els-space-2); margin-top: var(--els-space-6); }
.els-dialog__body .els-tiles { margin-top: var(--els-space-3); }
.els-dialog__body .els-tiles + .els-meta { min-block-size: var(--els-leading-meta); margin-top: var(--els-space-3); }
.els-dialog__body > .els-facts { margin-block: var(--els-space-4) var(--els-space-6); }
.els-dialog::backdrop { background: var(--els-color-scrim, rgba(23, 44, 58, .45)); }
.els-dialog__bar { padding: var(--els-space-2) var(--els-space-2) var(--els-space-2) var(--els-space-6); border-bottom: 1px solid var(--els-color-ink-100); }
.els-dialog__body { max-block-size: calc(92dvh - 64px); padding: var(--els-space-6); overflow: auto; }
.els-dialog iframe { display: block; inline-size: 100%; block-size: min(660px, calc(92dvh - 64px)); border: 0; }
/* 대화상자 안에 들어가는 화면의 본문 */
.els-embed { padding: var(--els-space-6); }
.els-embed > .els-label { display: block; margin: var(--els-space-6) 0 var(--els-space-2); }
.els-embed .els-pick + .els-hint { margin-bottom: var(--els-space-6); }
.els-work section > .els-title + p { margin-bottom: var(--els-space-6); }
.els-embed__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--els-space-2); margin-top: var(--els-space-6); }

/* 하나 고르는 목록: 라디오 묶음. 이름은 두 줄까지, 구분에 필요한 값은 아래 줄에 모두 보인다 */
.els-pick { display: grid; min-inline-size: 0; max-block-size: 280px; margin: 0; padding: 0; overflow: auto; border: 1px solid var(--els-color-border-default); border-radius: var(--els-radius-control); }
.els-pick__item { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 2px var(--els-space-3); padding: var(--els-space-3) var(--els-space-4); border-bottom: 1px solid var(--els-color-ink-100); cursor: pointer; }
.els-pick__item:last-child { border-bottom: 0; }
.els-pick__item input { inline-size: 24px; block-size: 24px; margin: 0; accent-color: var(--els-color-action-primary); }
.els-pick__item:has(input:checked) { background: var(--els-color-surface-accent); box-shadow: inset 3px 0 0 var(--els-color-action-primary); }
.els-pick__item:has(input:focus-visible) { outline: 3px solid var(--els-color-focus); outline-offset: -3px; }
.els-pick__item input:focus-visible { outline: none; }
.els-pick__name { font-size: var(--els-type-label); line-height: var(--els-leading-label); font-weight: var(--els-weight-strong); }
.els-pick__meta { grid-column: 2; display: flex; flex-wrap: wrap; gap: 0 var(--els-space-3); font-size: var(--els-type-meta); line-height: var(--els-leading-meta); color: var(--els-color-text-secondary); font-variant-numeric: tabular-nums; }

/* 상태 모음 표: 시안에서 상태마다 구현 여부를 나란히 적을 때 */
.els-table--left th, .els-table--left td { text-align: left; }

@media (min-width: 1100px) {
}
@media (max-width: 700px) {
  /* 좁은 화면에서는 제목 칸이 정렬 단추 줄이 된다. 동작은 같다 */
  .els-rows__head { display: flex; flex-wrap: wrap; gap: var(--els-space-2); padding: 0 0 var(--els-space-3); border-bottom: 0; }
  .els-rows__head button { padding: 0 var(--els-space-3); border: 1px solid var(--els-color-border-default); border-radius: var(--els-radius-control); background: var(--els-color-surface); }
  .els-rows__head button[aria-pressed="true"] { border-color: var(--els-color-text-primary); }
  .els-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "party amount" "memo when" "card card"; gap: 2px var(--els-space-3); padding: var(--els-space-3) var(--els-space-2); }
  .els-row__party { grid-area: party; }
  .els-row__amount { grid-area: amount; }
  .els-row__when { grid-area: when; font-size: var(--els-type-meta); }
  .els-row__memo { grid-area: memo; font-size: var(--els-type-meta); }
  .els-row__card { grid-area: card; }
  .els-pop__panel { right: auto; left: 0; }
  .els-pane { padding: var(--els-space-4); }
  .els-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .els-tiles--2 { grid-template-columns: minmax(0, 1fr); }
  .els-embed { padding: var(--els-space-4); }
  .els-dialog { inline-size: 100%; max-block-size: 100dvh; border-radius: var(--els-radius-panel) var(--els-radius-panel) 0 0; margin-bottom: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .els-wait::before { animation: els-spin 900ms linear infinite; }
  /* 움직이는 것은 옆 패널과 대화상자 둘뿐이다. 나머지는 색만 바뀐다 */
  .els-row, .els-linkrow, .els-counts button, .els-side__group a, .els-opts button { transition: background-color var(--els-motion-effects) var(--els-ease); }
  .els-tile { transition: background-color var(--els-motion-effects) var(--els-ease), box-shadow var(--els-motion-effects) var(--els-ease); }
  .els-detail[open] { animation: els-side-in var(--els-motion-spatial) var(--els-ease); }
  .els-detail[data-closing] { animation: els-side-out var(--els-motion-effects) var(--els-ease) forwards; }
  .els-detail__body[data-swap] { animation: els-fade-in var(--els-motion-effects) var(--els-ease); }
  .els-dialog[open] { animation: els-pop-in var(--els-motion-spatial) var(--els-ease); }
  .els-skeleton > span { animation: els-shimmer 1200ms linear infinite; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 700px) {
  .els-dialog[open] { animation-name: els-flow-in; }
}
@keyframes els-spin { to { transform: rotate(360deg); } }
@keyframes els-side-in { from { transform: translateX(calc(100% + var(--els-space-2))); } to { transform: none; } }
@keyframes els-side-out { to { transform: translateX(calc(100% + var(--els-space-2))); } }
@keyframes els-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes els-pop-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes els-shimmer { from { background-position: 150% 50%; } to { background-position: -50% 50%; } }

/* ---------- 좁은 화면 ---------- */
@media (max-width: 1100px) {
  .els-article-layout { grid-template-columns: 200px minmax(0, 1fr); gap: var(--els-space-12); }
  .els-plan-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .els-picker { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
}
@media (max-width: 960px) {
  .els-card--third { grid-column: span 3; }
  .els-card--wide .els-card__body { padding: var(--els-space-8); }
  .els-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .els-footer__cols > :first-child { grid-column: 1 / -1; }
  .els-feed-cols { column-gap: var(--els-space-12); grid-template-columns: 208px minmax(0, 1fr); }
  .els-post { grid-template-columns: minmax(0, 1fr) 176px; gap: var(--els-space-6); }
  .els-lead__text { padding-left: var(--els-space-12); }
  .els-plan-grid { grid-template-columns: minmax(0, 1fr); }
  .els-addon-grid { grid-template-columns: minmax(0, 1fr); }
  .els-yearly-note { padding-top: var(--els-space-2); }
  .els-plan > .els-title + p { min-height: 0; }
}
@media (max-width: 860px) {
  html:has(.els-page) { scroll-padding-top: 76px; }
  /* 좁은 화면에서 목록과 위치 표시의 링크도 누름 영역 44px을 지킨다 */
  .els-footer li { padding: 0; }
  .els-footer li a, .els-footer__note a, .els-crumb a { display: inline-flex; align-items: center; min-height: 44px; }
  .els-topbar__in { gap: var(--els-space-2); min-height: 60px; }
  .els-brand__wide { display: none; }
  .els-brand__mark { display: block; }
  .els-brand { margin-right: auto; }
  .els-menu-btn { display: inline-flex; }
  .els-nav { display: none; position: absolute; inset: 100% 0 auto 0; flex-direction: column; gap: 0; margin: 0; padding: var(--els-space-2) var(--els-side) var(--els-space-4); background: var(--els-color-surface); border-bottom: 1px solid var(--els-color-border-default); }
  .els-topbar[data-open] .els-nav { display: flex; }
  .els-nav a { min-height: 52px; padding: 0 var(--els-space-2); font-size: var(--els-type-body); }
  .els-nav a[aria-current] { box-shadow: none; }
  .els-feed-cols { grid-template-columns: minmax(0, 1fr); grid-template-areas: "topics" "main" "tool"; margin-top: var(--els-space-12); }
  .els-topic-buttons { display: flex; flex-wrap: wrap; gap: var(--els-space-2); }
  .els-topic-buttons button { width: auto; min-height: 44px; padding: 0 var(--els-space-3); border: 1px solid var(--els-color-border-default); border-radius: var(--els-radius-control); font-size: var(--els-type-label); }
  .els-topic-buttons button[aria-pressed="true"] { padding-left: var(--els-space-3); border-color: var(--els-color-text-primary); background: var(--els-color-text-primary); color: var(--els-color-ink-0); box-shadow: none; }
  .els-topic-buttons button[aria-pressed="true"] span { color: var(--els-color-ink-200); }
  .els-feed-main { margin-top: var(--els-space-8); }
  .els-article-layout { grid-template-columns: minmax(0, 1fr); gap: var(--els-space-6); margin-top: var(--els-space-4); }
  .els-article-side { position: static; }
  .els-side-series { display: none; }
  .els-toc { border-bottom: 1px solid var(--els-color-border-default); }
  .els-toc summary span::after { content: " · 펼치기"; }
  .els-toc[open] summary span::after { content: " · 접기"; }
  .els-toc ol { margin-bottom: var(--els-space-3); }
  .els-scope { grid-template-columns: minmax(0, 1fr); gap: var(--els-space-1); }
  .els-scope dd + dt { margin-top: var(--els-space-3); }
}
@media (max-width: 700px) {
  .els-hero { height: 520px; }
  .els-hero > img { object-position: 46% 20%; }
  .els-hero__text { padding-bottom: var(--els-space-8); }
  .els-hero__text .els-btn { margin-top: var(--els-space-6); }
  .els-finder { padding-block: var(--els-space-6) var(--els-space-12); }
  .els-js .els-tabs { gap: var(--els-space-6); }
  .els-tabs button { font-size: var(--els-type-nav); }
  .els-panel + .els-panel { margin-top: var(--els-space-12); }
  .els-panel__head { margin: var(--els-space-8) 0 var(--els-space-6); }
  .els-cards { grid-template-columns: minmax(0, 1fr); gap: var(--els-space-8); }
  .els-card, .els-card--third, .els-card--wide { grid-column: auto; }
  .els-card--wide { flex-direction: column; }
  .els-card--wide > img { order: 0; width: 100%; min-height: 0; aspect-ratio: 16 / 10; }
  .els-card--wide .els-card__body, .els-card--note { padding: var(--els-space-6); }
  .els-card > img { aspect-ratio: 2 / 1; }
  .els-band, .els-closing { padding-block: var(--els-space-12); }
  .els-stories { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: var(--els-space-4); }
  .els-story { display: grid; grid-template-columns: minmax(0, 1fr) 104px; grid-template-areas: "meta cover" "title cover" "desc cover"; align-content: center; column-gap: var(--els-space-4); padding: var(--els-space-6) 0; border-bottom: 1px solid var(--els-color-border-default); }
  .els-story .els-cover { grid-area: cover; align-self: center; aspect-ratio: 1; border-radius: var(--els-radius-control); }
  .els-story .els-meta { grid-area: meta; margin-top: 0; }
  .els-story .els-title { grid-area: title; }
  .els-story .els-title a:hover, .els-post .els-title a:hover, .els-lead .els-display a:hover { text-decoration: underline; text-underline-offset: 4px; }
.els-story .els-title + p { grid-area: desc; }
  .els-closing .els-shell { display: block; }
  .els-closing .els-btn { margin-top: var(--els-space-6); }
  .els-feed { padding-block: var(--els-space-8) var(--els-space-16); }
  .els-lead { grid-template-columns: minmax(0, 1fr); min-height: 0; margin-top: var(--els-space-6); }
  .els-lead__text { padding: var(--els-space-8) var(--els-space-6) 0; }
  .els-lead > img { height: 200px; object-fit: contain; }
  .els-post { grid-template-columns: minmax(0, 1fr) 104px; gap: var(--els-space-4); padding: var(--els-space-6) 0; }
  .els-post .els-cover { aspect-ratio: 1; border-radius: var(--els-radius-control); }
  .els-soon { margin-top: var(--els-space-12); }
  .els-soon li { grid-template-columns: minmax(0, 1fr); gap: var(--els-space-1); }
  .els-detail-hero { grid-template-columns: minmax(0, 1fr); gap: var(--els-space-6); padding-block: var(--els-space-4) var(--els-space-12); }
  .els-detail-hero > img { aspect-ratio: 16 / 10; }
  .els-plan { padding: var(--els-space-6); }
  .els-compare { padding-block: var(--els-space-12); }
  .els-plan-grid--four { grid-template-columns: minmax(0, 1fr); }
  .els-yearly { padding-block: var(--els-space-12) 0; }
  .els-addons { margin-top: var(--els-space-12); padding: var(--els-space-6); }
  .els-extras { padding: var(--els-space-6); }
  .els-next, .els-advice { padding: var(--els-space-6); }
  /* 그림 속 가장 작은 글자가 13px 아래로 줄지 않게, 좁은 화면에서는 그림 안에서만 가로로 넘긴다 */
  .els-figure__frame > img { width: 660px; max-width: none; }
  .els-figure__hint { display: block; margin-top: var(--els-space-2); font-size: var(--els-type-meta); line-height: var(--els-leading-meta); color: var(--els-color-text-secondary); }
  .els-sources { margin-top: var(--els-space-12); }
}
@media (max-width: 360px) {
  .els-story, .els-post { grid-template-columns: minmax(0, 1fr) 80px; }
  .els-js .els-tabs { gap: var(--els-space-4); }
  .els-services { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .els-btn, .els-choice { transition: none; }
}
