/* ds-ui.css — v2 공통 부품 (2026-10-04 확정 · 모든 v2 화면이 이것만 쓴다)
 * 토큰은 ds.css(html.ui-v2). 이 파일은 부품 클래스(.ds-*)만. 화면 고유 스타일은 화면 파일 안에 짧게, 이름 앞에 화면 접두사.
 * 기준: docs/assets/design/design_guide.md 4·6·7·8장 · 시안 docs/assets/design/mockups/*.dc.html · 견본 /v2/ds (static/html/v2/ds_gallery.html)
 * 부품 목록: page·head·btn·kpis·card·seg·chips·search·field·table·badge·sheet·bottom sheet·modal·toast·empty·skel·warn·pending·
 *            stepper·drop·toggle·progress·hbar·stack·checklist·timeline·board·tabs(top)
 */

/* ── 페이지 뼈대 ── */
.ds-page { max-width: 1240px; margin: 0 auto; padding: 36px 24px 120px; display: flex; flex-direction: column; gap: 26px; box-sizing: border-box; }
.ds-page.narrow { max-width: 880px; }
.ds-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.ds-head-t { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ds-head h1 { margin: 0; font-size: 44px; line-height: 1.15; font-weight: 700; letter-spacing: -.035em; color: var(--ink); }
.ds-head p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink-3); max-width: 68ch; }
.ds-head-act { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ds-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ds-grid2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; }
.ds-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ds-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ds-muted { color: var(--ink-3); }
.ds-num { font-variant-numeric: tabular-nums; }
.ds-neg { color: var(--bad); }
[hidden] { display: none !important; }

/* ── 버튼 ── */
.ds-btn { height: 42px; padding: 0 18px; border-radius: 999px; border: 0; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  background: var(--fill); color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  white-space: nowrap; transition: transform .2s var(--ease), background-color .25s ease, opacity .2s ease; }
.ds-btn:hover { background: #E6E6E9; }
.ds-btn:active { transform: scale(.97); }
.ds-btn.primary { background: var(--ink); color: #FFFFFF; }
.ds-btn.primary:hover { background: #2A2C31; }
.ds-btn.text { background: transparent; color: var(--point-dark); padding: 0 6px; }
.ds-btn.danger { background: var(--bad-bg); color: var(--bad); }
.ds-btn.lg { height: 54px; padding: 0 26px; font-size: 16px; }
.ds-btn.sm { height: 34px; padding: 0 14px; font-size: 14px; }
.ds-btn[disabled], .ds-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.ds-btn svg { width: 16px; height: 16px; flex: none; }
.ds-btn .ds-spin { width: 16px; height: 16px; border-radius: 999px; border: 2px solid currentColor; border-right-color: transparent; animation: ds-spin .8s linear infinite; }
@keyframes ds-spin { to { transform: rotate(360deg); } }

/* ── KPI ── */
.ds-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px; }
.ds-kpi { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 16px; background: #FFFFFF; border-radius: 18px; box-shadow: 0 0 0 1px var(--line); min-width: 0; text-align: left; border: 0; font: inherit; color: inherit; }
button.ds-kpi { cursor: pointer; transition: box-shadow .25s ease; }
button.ds-kpi:hover, button.ds-kpi[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }
.ds-kpi .l { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.ds-kpi .l i { width: 8px; height: 8px; border-radius: 999px; background: var(--point); flex: none; }
.ds-kpi .v { font-size: 30px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.ds-kpi .v small { font-size: 15px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.ds-kpi .s { font-size: 13px; color: var(--ink-3); }
.ds-kpi .v.bad { color: var(--bad); } .ds-kpi .v.warn { color: var(--warn); } .ds-kpi .v.ok { color: var(--ok); }
.ds-kpi svg.spark { width: 88px; height: 28px; flex: none; overflow: visible; }

/* ── 카드 ── */
.ds-card { background: #FFFFFF; border-radius: 20px; box-shadow: 0 0 0 1px var(--line); padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; box-sizing: border-box; }
.ds-card.lg { border-radius: 24px; box-shadow: var(--shadow-card); }
.ds-card.flush { padding: 0; overflow: hidden; gap: 0; }
.ds-card-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.ds-card h2, .ds-card-h h2 { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.3; }
.ds-card .cap, .ds-cap { font-size: 13px; color: var(--ink-3); }
.ds-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; }
.ds-bar + .ds-bar { padding-top: 0; }
.ds-dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; font-size: 14px; }
.ds-dl dt { color: var(--ink-3); }
.ds-dl dd { margin: 0; font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; }

/* ── 세그먼트(미끄러지는 선택) ── */
.ds-seg { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; background: var(--fill); border-radius: 999px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.ds-seg::-webkit-scrollbar { display: none; }
.ds-seg .ind { position: absolute; top: 4px; left: 0; height: calc(100% - 8px); border-radius: 999px; background: #FFFFFF; box-shadow: 0 1px 3px rgba(17,19,21,.14); transition: transform .45s var(--ease), width .45s var(--ease); pointer-events: none; }
.ds-seg button { position: relative; z-index: 1; height: 34px; min-width: 84px; padding: 0 14px; border: 0; background: transparent; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 500; color: #5E6168; cursor: pointer; white-space: nowrap; }
.ds-seg button[aria-selected="true"] { color: var(--ink); font-weight: 600; }
.ds-seg button .n { margin-left: 6px; font-size: 12px; color: #5E6168; font-variant-numeric: tabular-nums; }
.ds-seg.dark .ind { background: var(--ink); }
.ds-seg.dark button[aria-selected="true"] { color: #FFFFFF; }
.ds-seg.dark button[aria-selected="true"] .n { color: #D5D6DA; }
.ds-seg.lg button { height: 40px; font-size: 15px; }

/* ── 필터 칩 · 검색 ── */
.ds-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ds-chip { height: 34px; padding: 0 14px; border-radius: 999px; border: 0; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; background: var(--fill); color: var(--ink-2); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.ds-chip[aria-pressed="true"] { background: var(--ink); color: #FFFFFF; }
.ds-chip.sm { height: 30px; padding: 0 12px; font-size: 13px; }
.ds-search { height: 34px; border-radius: 999px; border: 0; background: #F4F4F6; padding: 0 14px; font: inherit; font-size: 14px; width: 220px; max-width: 100%; box-sizing: border-box; color: var(--ink); }
.ds-search:focus { outline: 2px solid var(--point); outline-offset: 1px; background: #FFFFFF; }

/* ── 입력칸 (이름표 위로) ── */
.ds-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ds-field > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.ds-field > small { font-size: 12px; color: var(--ink-3); }
.ds-field :is(input, select, textarea) { height: 48px; border-radius: 14px; border: 0; background: #F4F4F6; padding: 0 14px; font: inherit; font-size: 15px; color: var(--ink); box-sizing: border-box; width: 100%; }
.ds-field textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.ds-field :is(input, select, textarea):focus { outline: 2px solid var(--point); outline-offset: 0; background: #FFFFFF; }
.ds-field.err :is(input, select, textarea) { outline: 2px solid var(--bad); }
.ds-field .err-t { font-size: 13px; color: var(--bad); }
.ds-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.ds-shake { animation: ds-shake .45s var(--ease); }
@keyframes ds-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* ── 표 ── */
.ds-tbl { overflow-x: auto; box-shadow: inset 0 1px 0 var(--line); }
.ds-tbl table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.ds-tbl th { padding: 12px 10px; font-size: 13px; font-weight: 500; color: var(--ink-3); text-align: left; white-space: nowrap; position: sticky; top: 0; background: #FFFFFF; z-index: 1; }
.ds-tbl th button { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.ds-tbl th[aria-sort="ascending"] button::after { content: "↑"; } .ds-tbl th[aria-sort="descending"] button::after { content: "↓"; }
.ds-tbl :is(th, td):first-child { padding-left: 20px; } .ds-tbl :is(th, td):last-child { padding-right: 20px; }
.ds-tbl :is(th, td).r { text-align: right; } .ds-tbl :is(th, td).c { text-align: center; }
.ds-tbl td { padding: 14px 10px; box-shadow: inset 0 1px 0 var(--line); vertical-align: middle; }
.ds-tbl tbody tr { transition: background-color .2s ease; }
.ds-tbl tbody tr:hover { background: var(--row-hover, #F7F8FB); }
.ds-tbl tbody tr[aria-selected="true"] { background: #EEF3FD; }
.ds-tbl .first { border: 0; background: transparent; padding: 0; font: inherit; color: var(--ink); cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; }
.ds-tbl .first b { font-weight: 600; }
.ds-tbl small { display: block; font-size: 12px; color: var(--ink-3); }
.ds-tbl .neg { color: var(--bad); }
.ds-tbl input[type="number"], .ds-tbl input.cell { height: 34px; width: 84px; border-radius: 10px; border: 0; background: #F4F4F6; padding: 0 10px; font: inherit; text-align: right; }
.ds-more { display: flex; justify-content: center; padding: 14px; box-shadow: inset 0 1px 0 var(--line); }

/* ── 배지 ── */
.ds-badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--fill); color: var(--ink-2); }
.ds-badge.blue { background: var(--point-bg); color: var(--point-dark); }
.ds-badge.amber { background: var(--warn-bg); color: var(--warn); }
.ds-badge.red { background: var(--bad-bg); color: var(--bad); }
.ds-badge.green { background: var(--ok-bg); color: var(--ok); }
.ds-badge.gray { background: var(--fill); color: var(--ink-2); }
.ds-badge.dark { background: var(--ink); color: #FFFFFF; }
.ds-badge i { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }

/* ── 경고 띠 · 연결 대기 ── */
.ds-warn { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-radius: 18px; background: #FFF8EA; }
.ds-warn .ic { width: 32px; height: 32px; border-radius: 10px; background: #FFFFFF; display: flex; align-items: center; justify-content: center; color: var(--warn); flex: none; }
.ds-warn b { display: block; font-size: 15px; font-weight: 600; }
.ds-warn small { font-size: 13px; color: #6B5326; }
.ds-warn.bad { background: var(--bad-bg); } .ds-warn.bad .ic { color: var(--bad); } .ds-warn.bad small { color: #7A2A22; }
.ds-warn.info { background: var(--point-bg); } .ds-warn.info .ic { color: var(--point-dark); } .ds-warn.info small { color: #2A3F73; }
.ds-pending { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--fill); color: var(--ink-2); font-size: 12px; font-weight: 600; }
.ds-pending::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--warn-bar); }

/* ── 빈 상태 · 반짝임 ── */
.ds-empty { padding: 44px 20px; text-align: center; color: var(--ink-3); font-size: 15px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ds-empty b { color: var(--ink); font-size: 16px; }
.ds-skel { background: linear-gradient(90deg, #F4F4F6 0, #FAFAFB 50%, #F4F4F6 100%); background-size: 200% 100%; animation: ds-shim 1.2s linear infinite; border-radius: 8px; color: transparent !important; min-height: 1em; }
@keyframes ds-shim { to { background-position: -200% 0; } }

/* ── 시트(오른쪽) · 아래 시트 · 모달 ── */
.ds-scrim2 { position: fixed; inset: 0; z-index: 1000; background: rgba(17,19,21,.22); opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.ds-scrim2.on { opacity: 1; pointer-events: auto; }
.ds-sheet { position: fixed; top: 0; right: 0; bottom: 0; z-index: 1001; width: min(460px, 100%); box-sizing: border-box; background: #FFFFFF; box-shadow: var(--shadow-sheet);
  transform: translateX(110%); visibility: hidden; transition: transform .5s var(--ease), visibility 0s linear .5s; padding: 24px 26px 40px; display: flex; flex-direction: column; gap: 22px; overflow: auto; }
.ds-sheet.wide { width: min(640px, 100%); }
.ds-sheet.on { transform: none; visibility: visible; transition: transform .5s var(--ease), visibility 0s; }
.ds-sheet-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ds-sheet-h small { display: block; font-size: 13px; color: var(--ink-3); }
.ds-sheet-h h2, .ds-sheet-h b { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; font-variant-numeric: tabular-nums; }
.ds-sheet-f { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 8px; }
.ds-x { width: 36px; height: 36px; flex: none; border-radius: 999px; border: 0; background: var(--fill); color: var(--ink-2); cursor: pointer; display: flex; align-items: center; justify-content: center; position: relative; }
.ds-x::after { content: ""; position: absolute; inset: -4px; }
.ds-bsheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1001; max-height: 86vh; background: #FFFFFF; border-radius: 24px 24px 0 0; box-shadow: 0 -10px 40px rgba(17,19,21,.16);
  transform: translateY(105%); visibility: hidden; transition: transform .55s var(--ease), visibility 0s linear .55s; padding: 10px 24px 32px; overflow: auto; box-sizing: border-box; }
.ds-bsheet.on { transform: none; visibility: visible; transition: transform .55s var(--ease), visibility 0s; }
.ds-bsheet .grab { width: 40px; height: 5px; border-radius: 999px; background: #D5D6DA; margin: 0 auto 14px; }
.ds-bsheet-in { max-width: 1000px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.ds-modal { position: fixed; left: 50%; top: 50%; z-index: 1002; width: min(440px, calc(100% - 32px)); transform: translate(-50%, -46%) scale(.98); opacity: 0; visibility: hidden;
  background: #FFFFFF; border-radius: 22px; box-shadow: 0 24px 60px rgba(17,19,21,.22); padding: 24px; display: flex; flex-direction: column; gap: 16px; box-sizing: border-box;
  transition: transform .35s var(--ease), opacity .25s ease, visibility 0s linear .35s; }
.ds-modal.on { transform: translate(-50%, -50%); opacity: 1; visibility: visible; transition: transform .35s var(--ease), opacity .25s ease, visibility 0s; }
.ds-modal h2 { margin: 0; font-size: 20px; font-weight: 700; }
.ds-modal p { margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.ds-modal .act { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

/* ── 토스트 ── */
.ds-toasts { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 1100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100% - 32px); }
.ds-toast { pointer-events: auto; background: var(--ink); color: #FFFFFF; border-radius: 14px; padding: 12px 16px; font-size: 14px; box-shadow: 0 10px 30px rgba(17,19,21,.25); display: flex; align-items: center; gap: 10px; animation: ds-rise .4s var(--ease) both; }
.ds-toast.bad { background: var(--bad); }
.ds-toast button { border: 0; background: rgba(255,255,255,.16); color: #FFFFFF; border-radius: 999px; height: 28px; padding: 0 12px; font: inherit; font-size: 13px; cursor: pointer; }

/* ── 단계 표시줄 ── */
.ds-stepper { display: flex; align-items: flex-start; gap: 0; list-style: none; margin: 0; padding: 0; }
.ds-stepper li { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; text-align: center; font-size: 13px; color: var(--ink-3); }
.ds-stepper li::before { content: ""; position: absolute; top: 16px; left: calc(-50% + 20px); right: calc(50% + 20px); height: 2px; background: var(--line-2); }
.ds-stepper li:first-child::before { display: none; }
.ds-stepper li.done::before, .ds-stepper li.cur::before { background: var(--point); }
.ds-stepper .dot { width: 32px; height: 32px; border-radius: 999px; background: #FFFFFF; box-shadow: inset 0 0 0 2px var(--line-2); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--ink-3); position: relative; z-index: 1; }
.ds-stepper li.done .dot { background: var(--point); box-shadow: none; color: #FFFFFF; }
.ds-stepper li.cur .dot { box-shadow: inset 0 0 0 2px var(--point); color: var(--point-dark); }
.ds-stepper li.cur, .ds-stepper li.done { color: var(--ink); font-weight: 600; }
.ds-stepper button { border: 0; background: none; font: inherit; color: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0; }

/* ── 파일 올리기 ── */
.ds-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 160px; padding: 24px; border-radius: 20px; background: var(--fill-2);
  box-shadow: inset 0 0 0 1.5px #D5D6DA; text-align: center; cursor: pointer; transition: box-shadow .25s ease, background-color .25s ease; color: var(--ink-2); font-size: 15px; }
.ds-drop:hover, .ds-drop.over { box-shadow: inset 0 0 0 2px var(--ink); background: #FFFFFF; }
.ds-drop b { color: var(--ink); font-size: 16px; }
.ds-drop small { font-size: 13px; color: var(--ink-3); }
.ds-drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ds-drop.ok { box-shadow: inset 0 0 0 2px var(--ok); background: #FFFFFF; }
.ds-pop { animation: ds-pop .5s var(--ease) both; }
@keyframes ds-pop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.06); opacity: 1; } 100% { transform: scale(1); } }
.ds-check { width: 44px; height: 44px; border-radius: 999px; background: var(--ok); color: #FFFFFF; display: flex; align-items: center; justify-content: center; }

/* ── 토글 (ds.css .ds-toggle 재사용 — 서랍 밖에서도) ── */
.ds-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; font-size: 15px; }

/* ── 진행 · 가로 막대 목록 · 한 줄 쌓은 막대 ── */
.ds-progress { height: 8px; border-radius: 999px; background: var(--fill); overflow: hidden; }
.ds-progress > i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--point); transition: width .8s var(--ease); }
.ds-hbars { display: flex; flex-direction: column; gap: 12px; list-style: none; margin: 0; padding: 0; }
.ds-hbars li { display: grid; grid-template-columns: minmax(70px, 120px) 1fr auto; align-items: center; gap: 12px; font-size: 14px; }
.ds-hbars .lb { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-hbars .tr { height: 10px; border-radius: 999px; background: var(--fill); overflow: hidden; }
.ds-hbars .tr i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--point); transition: width .8s var(--ease); }
.ds-hbars .vl { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; min-width: 64px; }
.ds-stack { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--fill); }
.ds-stack i { display: block; height: 100%; width: 0; transition: width .8s var(--ease); }
.ds-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--ink-2); list-style: none; margin: 0; padding: 0; }
.ds-legend li { display: inline-flex; align-items: center; gap: 6px; }
.ds-legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.ds-legend b { font-variant-numeric: tabular-nums; }

/* ── 차트 (static/js/ds/chart.js) ── */
.ds-chart { position: relative; width: 100%; height: 180px; }
.ds-chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ds-chart .tip { position: absolute; transform: translate(-50%, calc(-100% - 10px)); padding: 6px 9px; border-radius: 8px; background: var(--ink); color: #FFFFFF; font-size: 12px; white-space: nowrap; pointer-events: none; font-variant-numeric: tabular-nums; line-height: 1.4; z-index: 2; }
.ds-chart .axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.ds-chart .max { position: absolute; left: 0; top: -2px; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ── 서류 체크리스트 · 타임라인 ── */
.ds-checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ds-checklist li { display: flex; align-items: center; gap: 12px; padding: 12px 0; box-shadow: inset 0 -1px 0 var(--line); font-size: 15px; }
.ds-checklist .ck { width: 24px; height: 24px; border-radius: 999px; flex: none; box-shadow: inset 0 0 0 2px #C9CACE; display: flex; align-items: center; justify-content: center; color: #FFFFFF; }
.ds-checklist li.done .ck { background: var(--ok); box-shadow: none; }
.ds-checklist li > span { flex: 1; min-width: 0; }
.ds-checklist small { display: block; font-size: 12px; color: var(--ink-3); }
.ds-ring { --p: 0; width: 64px; height: 64px; border-radius: 999px; background: conic-gradient(var(--point) calc(var(--p) * 1%), var(--fill) 0); display: flex; align-items: center; justify-content: center; flex: none; }
.ds-ring span { width: 50px; height: 50px; border-radius: 999px; background: #FFFFFF; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ds-timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ds-timeline li { display: flex; gap: 14px; padding-bottom: 16px; position: relative; }
.ds-timeline li::before { content: ""; position: absolute; left: 5px; top: 18px; bottom: 0; width: 2px; background: var(--line-2); }
.ds-timeline li:last-child::before { display: none; }
.ds-timeline .d { width: 12px; height: 12px; margin-top: 5px; flex: none; border-radius: 999px; background: var(--point); position: relative; z-index: 1; }
.ds-timeline .d.off { background: #FFFFFF; box-shadow: inset 0 0 0 2.5px #C9CACE; }
.ds-timeline .d.bad { background: var(--bad-bar); }
.ds-timeline .t { flex: 1; min-width: 0; display: flex; justify-content: space-between; gap: 10px; }
.ds-timeline .t b { display: block; font-size: 15px; font-weight: 600; }
.ds-timeline .t span, .ds-timeline .t small { font-size: 13px; color: var(--ink-3); }

/* ── 보드(단계별 칸) ── */
.ds-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.ds-col { background: var(--fill-2); border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 120px; }
.ds-col-h { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 700; padding: 2px 4px; }
.ds-col-h span { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.ds-tile { background: #FFFFFF; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); padding: 12px 14px; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
.ds-tile:hover { box-shadow: 0 0 0 1px var(--line-2), 0 6px 16px rgba(17,19,21,.06); }
.ds-tile b { font-size: 15px; } .ds-tile small { font-size: 12px; color: var(--ink-3); }

/* ── 달력 ── */
.ds-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: 16px; overflow: hidden; }
.ds-cal > div { background: #FFFFFF; min-height: 96px; padding: 8px; display: flex; flex-direction: column; gap: 4px; font-size: 12px; min-width: 0; }
.ds-cal .dh { min-height: 0; text-align: center; font-weight: 600; color: var(--ink-3); background: var(--fill-2); padding: 8px 4px; }
.ds-cal .dn { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.ds-cal .out { background: var(--fill-2); } .ds-cal .out .dn { color: var(--ink-4); }
.ds-cal .today .dn { color: #FFFFFF; background: var(--ink); border-radius: 999px; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; }
.ds-cal .ev { border: 0; text-align: left; font: inherit; font-size: 12px; padding: 2px 6px; border-radius: 6px; background: var(--point-bg); color: var(--point-dark); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── 처음 열림 ── */
.ds-rise { animation: ds-rise .8s var(--ease) both; }
.ds-rise:nth-child(2) { animation-delay: .05s; } .ds-rise:nth-child(3) { animation-delay: .1s; } .ds-rise:nth-child(4) { animation-delay: .15s; } .ds-rise:nth-child(n+5) { animation-delay: .2s; }

/* ── 좁은 화면 ── */
@media (max-width: 900px) { .ds-grid2, .ds-grid3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  .ds-page { padding: 24px 16px 120px; gap: 20px; }
  .ds-head h1 { font-size: 34px; }
  .ds-head p { font-size: 16px; }
  .ds-search { width: 100%; }
  .ds-card { padding: 18px 16px; }
  .ds-bar { padding: 16px; }
  .ds-tbl :is(th, td):first-child { padding-left: 16px; } .ds-tbl :is(th, td):last-child { padding-right: 16px; }
  .ds-sheet { padding: 20px 18px 40px; }
  .ds-cal > div { min-height: 64px; padding: 4px; }
  .ds-hbars li { grid-template-columns: minmax(60px, 90px) 1fr auto; }
  .ds-stepper li { font-size: 12px; }
}

/* ── 10/9 UI 개편 공통 규칙 (docs/specs/v2/UI개편_1009.md 1장 · 테마·토큰은 그대로) ───────────────────── */
/* 상태 배지 = 신호등: 초록 정상 · 노랑 주의 · 빨강 문제 · 회색 꺼짐/대기 — 색 배지엔 점을 붙여 색만으로 구분하지 않게(이미 점이 있으면 그대로) */
.ds-badge:is(.green, .amber, .red):not(:has(> i))::before { content: ""; width: 6px; height: 6px; flex: none; border-radius: 999px; background: currentColor; }
/* 오류 상태(DS.fail · '…못했어요' 빈 상태) — 무엇이 · 다시 시도 */
.ds-empty.err { color: var(--ink-2); }
.ds-empty.err .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--bad-bg); color: var(--bad); display: flex; align-items: center; justify-content: center; }
.ds-empty.err .why { font-size: 13px; color: var(--ink-3); max-width: 52ch; overflow-wrap: anywhere; }
/* 불러오는 중(DS.skel) — 화면 읽기 도구용 한 줄 */
.ds-loading { display: block; }
/* 긴 표(20줄 넘음 · DS.table 이 .tall 을 붙임): 넓은 화면에선 표 안에서 스크롤 → 머리 줄이 위에 붙어 있음 */
@media (min-width: 901px) { .ds-tbl.tall { max-height: min(72vh, 760px); overflow: auto; overscroll-behavior: contain; } }
/* 휴대폰(600px 이하): 누르는 것은 모두 40px 이상(가이드 11장 · 표 안 34px 버튼은 데스크톱에서만) · 요약 카드 2칸 */
@media (max-width: 600px) {
  .ds-btn.sm, .ds-chip, .ds-chip.sm { height: 40px; }
  .ds-seg button, .ds-seg.lg button { height: 40px; }
  .ds-search { height: 40px; }
  .ds-tbl .first { min-height: 40px; margin: -10px 0; justify-content: center; }
  .ds-tbl th button { min-height: 40px; min-width: 40px; margin: -10px 0; }
  .ds-tbl input[type="number"], .ds-tbl input.cell { height: 40px; }
  .ds-tbl td .ds-btn, .ds-tbl td a.ds-btn { min-height: 40px; }
  .ds-x { width: 40px; height: 40px; }
  .ds-toggle { box-sizing: content-box; border: 4px solid transparent; background-clip: padding-box; }   /* 누르는 면 60×40 · 보이는 크기 그대로 */
  .ds-toast button { height: 40px; }
  .ds-page summary { padding: 12px 0; }
  .ds-page label:has(> input[type=checkbox], > input[type=radio]) { min-height: 40px; display: inline-flex; align-items: center; }
  .ds-page .ds-cap > a { display: inline-flex; align-items: center; min-height: 40px; }
  .ds-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ds-kpi { padding: 14px 14px 12px; gap: 6px; border-radius: 16px; }
  .ds-kpi .v { font-size: 24px; }
  .ds-kpi .v small { font-size: 13px; }
  .ds-kpi svg.spark { width: 56px; height: 22px; }
  .ds-kpi .s { font-size: 12px; }
  .ds-head-act { width: 100%; }
  .ds-head-act > .ds-btn.primary:last-child { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) { .ds-page *, .ds-sheet, .ds-bsheet, .ds-modal, .ds-toast { animation: none !important; transition: none !important; } }

/* ══ 10/13 애플 스타일 — 부품 11가지 (README 5장 · Components 보드 ①~⑪) ════════════════════════════════════════════════
 * 클래스 이름 · DS 함수 이름은 그대로 — 모양만 바꿔 이 파일을 쓰는 화면이 모두 함께 바뀜. 새 부품은 새 이름(.ds-fg · .ds-popup · .ds-step · .ds-dot · .ds-popover · [data-ds-tip] · .ds-spinner · .ds-alert).
 * 휴대폰(600 이하) 누르는 면 40px 규칙(10/9)은 아래 끝에서 다시 지킴.
 */
/* ① 글자 — 큰 제목 28/700 · 제목 20 · 소제목 15/600 · 본문 13.5 · 보조 12 */
.ds-page { padding: 26px 30px 90px; gap: 18px; }
.ds-head { align-items: flex-end; gap: 12px; }
.ds-head-t { gap: 6px; }
.ds-head h1 { font-size: var(--fs-display, 28px); line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
.ds-head p { font-size: 13.5px; line-height: 1.55; color: #6B6E75; }
.ds-head-act { gap: 8px; }
.ds-card h2, .ds-card-h h2 { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.ds-card .cap, .ds-cap { font-size: 12.5px; color: #6B6E75; }
.ds-num, .ds-tbl table, .ds-kpi .v { font-variant-numeric: tabular-nums; }

/* ③ 버튼 — 모서리 8 · 얇은 테두리 · 주 버튼만 파랑(화면당 하나) */
.ds-btn { height: 30px; padding: 0 13px; border-radius: var(--r-ctl, 8px); font-size: 13px; font-weight: 500; gap: 6px;
  background: #FFFFFF; color: var(--ink); box-shadow: 0 0 0 .5px rgba(0,0,0,.16), 0 1px 2px rgba(0,0,0,.07); }
.ds-btn:hover { background: #F7F7F9; }
.ds-btn:active { transform: none; background: #EFEFF2; }
.ds-btn.primary { background: var(--c-blue, #2F6BEA); color: #FFFFFF; box-shadow: 0 1px 2px rgba(47,107,234,.4), inset 0 .5px 0 rgba(255,255,255,.25); }
.ds-btn.primary:hover { background: #2560DB; }
.ds-btn.primary:active { background: #1F55C9; }
.ds-btn.text { background: transparent; box-shadow: none; color: var(--c-blue, #2F6BEA); padding: 0 6px; }
.ds-btn.text:hover { background: rgba(47,107,234,.08); }
.ds-btn.danger { background: #FFFFFF; color: var(--c-red, #D9483B); }
.ds-btn.danger.primary, .ds-btn.danger-fill { background: var(--c-red, #D9483B); color: #FFFFFF; box-shadow: 0 1px 2px rgba(217,72,59,.4); }
.ds-btn.lg { height: 38px; padding: 0 18px; font-size: 14px; border-radius: 10px; }
.ds-btn.sm { height: 26px; padding: 0 10px; font-size: 12.5px; border-radius: 7px; }
.ds-btn.ico { width: 30px; padding: 0; }
.ds-btn svg { width: 15px; height: 15px; }
.ds-btn[disabled], .ds-btn[aria-disabled="true"] { opacity: .4; }

/* KPI(위젯 카드) — 모서리 14 · 카드 그림자 · 올리면 1px 떠오름 0.18s */
.ds-kpis { gap: 12px; }
.ds-kpi { padding: 14px 16px 15px; border-radius: var(--r-card, 14px); background: linear-gradient(180deg, #FFFFFF, #FCFCFD); box-shadow: var(--shadow-card); gap: 6px; }
button.ds-kpi { transition: transform var(--lift, .18s) ease, box-shadow var(--lift, .18s) ease; }
button.ds-kpi:hover { transform: translateY(-1px); box-shadow: var(--shadow-card-hover); }
button.ds-kpi[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--c-blue, #2F6BEA), 0 6px 18px rgba(17,19,21,.06); }
.ds-kpi .l { font-size: 12.5px; color: #6B6E75; gap: 6px; }
.ds-kpi .v { font-size: var(--fs-kpi, 27px); letter-spacing: -.03em; }
.ds-kpi .v small { font-size: 14px; color: #6B6E75; }
.ds-kpi .s { font-size: 12.5px; color: #6B6E75; }

/* 카드 · 패널 */
.ds-card { border-radius: var(--r-card, 14px); box-shadow: var(--shadow-card); padding: 16px 18px; gap: 12px; }
.ds-card.lg { border-radius: var(--r-card, 14px); box-shadow: var(--shadow-card); }
.ds-card.flush { padding: 0; }
.ds-bar { padding: 12px 16px; gap: 10px; }
.ds-dl { font-size: 13.5px; }
.ds-warn { border-radius: 10px; padding: 10px 14px; background: #FFF7E8; box-shadow: inset 0 0 0 .5px rgba(232,145,58,.35); }
.ds-warn .ic { width: 22px; height: 22px; border-radius: 50%; background: var(--c-orange, #E8913A); color: #FFFFFF; }
.ds-warn .ic svg { width: 13px; height: 13px; }
.ds-warn b { font-size: 13.5px; } .ds-warn small { font-size: 12.5px; }
.ds-warn.bad { background: #FFF1F0; box-shadow: inset 0 0 0 .5px rgba(217,72,59,.35); } .ds-warn.bad .ic { background: var(--c-red, #D9483B); color: #FFFFFF; }
.ds-warn.info { background: rgba(47,107,234,.07); box-shadow: inset 0 0 0 .5px rgba(47,107,234,.3); } .ds-warn.info .ic { background: var(--c-blue, #2F6BEA); color: #FFFFFF; }

/* ④ 세그먼트 · 칩 · 스위치 · 체크 · 라디오 · 스테퍼 · 팝업 버튼 */
.ds-seg { padding: 2px; background: rgba(0,0,0,.06); border-radius: 9px; }
.ds-seg .ind { top: 2px; height: calc(100% - 4px); border-radius: var(--r-seg-in, 7px); background: #FFFFFF; box-shadow: 0 0 0 .5px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.12); transition: transform .3s var(--ease), width .3s var(--ease); }
.ds-seg button { height: 28px; min-width: 64px; padding: 0 13px; border-radius: var(--r-seg-in, 7px); font-size: 13px; color: #3C3F45; }
.ds-seg button[aria-selected="true"] { color: var(--ink); font-weight: 600; }
.ds-seg button .n { font-size: 11.5px; color: #6B6E75; }
.ds-seg.dark .ind { background: #FFFFFF; }
.ds-seg.dark button[aria-selected="true"] { color: var(--ink); }
.ds-seg.dark button[aria-selected="true"] .n { color: #3C3F45; }
.ds-seg.lg button { height: 32px; font-size: 14px; }
.ds-chip { height: 28px; padding: 0 12px; border-radius: var(--r-ctl, 8px); font-size: 13px; font-weight: 500; background: rgba(0,0,0,.055); color: #3C3F45; }
.ds-chip:hover { background: rgba(0,0,0,.08); }
.ds-chip[aria-pressed="true"] { background: var(--ink); color: #FFFFFF; }
.ds-chip.sm { height: 26px; padding: 0 10px; font-size: 12.5px; }
/* 스위치(켜고 끄기) — 맥 초록 · 38 × 22 */
.ds-toggle { width: 38px; height: 22px; background: rgba(0,0,0,.12); transition: background-color .2s ease; }
.ds-toggle::after { top: 2px; left: 2px; width: 18px; height: 18px; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s var(--ease); }
.ds-toggle[aria-checked="true"] { background: var(--c-on, #34C759); }
.ds-toggle[aria-checked="true"]::after { transform: translateX(16px); }
/* 체크 · 라디오 = 파랑(브라우저 기본 모양에 색만) */
html.ui-v2 :is(input[type="checkbox"], input[type="radio"]) { accent-color: var(--c-blue, #2F6BEA); }
/* 스테퍼(− +) — <span class="ds-step"><button>−</button><button>+</button></span> · DS.numStep(input) */
.ds-step { display: inline-flex; border-radius: 7px; box-shadow: 0 0 0 .5px rgba(0,0,0,.16), 0 1px 2px rgba(0,0,0,.06); overflow: hidden; vertical-align: middle; }
.ds-step button { width: 26px; height: 24px; border: 0; padding: 0; background: #FFFFFF; font: 500 14px/1 var(--ds-font); color: var(--ink); cursor: pointer; }
.ds-step button + button { box-shadow: inset .5px 0 0 rgba(0,0,0,.14); }
.ds-step button:active { background: #EFEFF2; }
/* 팝업 버튼(목록 고르기) — <select class="ds-popup"> · 설정 묶음 · 입력칸 안 select 도 */
select.ds-popup, .ds-fg select {
  -webkit-appearance: none; appearance: none; height: 26px; padding: 0 28px 0 10px; border: 0; border-radius: 7px; font: 400 13px/1 var(--ds-font); color: var(--ink); cursor: pointer;
  background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Crect width='16' height='16' rx='4' fill='%232F6BEA'/%3E%3Cpath d='M5.3 6.7L8 4.3l2.7 2.4M5.3 9.3L8 11.7l2.7-2.4' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 5px center;
  box-shadow: 0 0 0 .5px rgba(0,0,0,.16), 0 1px 2px rgba(0,0,0,.07);
}

/* ⑤ 입력 — 누르면 파란 테두리 링 · 찾기칸 */
.ds-field { gap: 5px; }
.ds-field > span { font-size: 12.5px; font-weight: 600; color: #3C3F45; }
.ds-field :is(input, select, textarea) { height: 32px; border-radius: 7px; background: #FFFFFF; padding: 0 10px; font-size: 13.5px;
  box-shadow: inset 0 0 0 .5px rgba(0,0,0,.2), 0 1px 1px rgba(0,0,0,.03); transition: box-shadow .15s ease; }
.ds-field select { padding-right: 28px; }
.ds-field textarea { padding: 8px 10px; min-height: 84px; }
.ds-field :is(input, select, textarea):focus { outline: 0; background: #FFFFFF; box-shadow: 0 0 0 3.5px rgba(47,107,234,.3), inset 0 0 0 1px #2F6BEA; }
.ds-field.err :is(input, select, textarea) { outline: 0; box-shadow: 0 0 0 3.5px rgba(217,72,59,.22), inset 0 0 0 1px var(--c-red, #D9483B); }
.ds-search { height: 30px; border-radius: var(--r-ctl, 8px); background: rgba(0,0,0,.055) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238E9096' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M10.5 17.5a7 7 0 1 0 0-14 7 7 0 0 0 0 14zM20.5 20.5l-5-5'/%3E%3C/svg%3E") no-repeat 10px center; padding: 0 10px 0 30px; font-size: 13px; }
.ds-search:focus { outline: 0; background-color: #FFFFFF; box-shadow: 0 0 0 3.5px rgba(47,107,234,.3), inset 0 0 0 1px #2F6BEA; }
.ds-tbl input[type="number"], .ds-tbl input.cell { height: 28px; border-radius: 6px; background: #FFFFFF; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.2); }
.ds-tbl input[type="number"]:focus, .ds-tbl input.cell:focus { outline: 0; box-shadow: 0 0 0 3px rgba(47,107,234,.3), inset 0 0 0 1px #2F6BEA; }

/* ⑥ 설정 묶음 폼(시스템 설정) — 회색 바탕 위 흰 묶음 · 왼쪽 이름 · 오른쪽 값
 *   <div class="ds-fgs"><span class="ds-fg-h">광고비 · 10월 12일</span><div class="ds-fg"><div class="ds-fg-r"><span>쿠팡</span><span class="v">자동 · 128,000</span></div>…</div></div> */
.ds-fgs { background: rgba(0,0,0,.035); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.ds-fg-h { font-size: 11.5px; font-weight: 600; color: #6B6E75; padding: 4px 4px 0; }
.ds-fg { background: #FFFFFF; border-radius: 10px; box-shadow: 0 0 0 .5px rgba(0,0,0,.07); }
.ds-fg-r { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 12px; min-height: 40px; box-sizing: border-box; font-size: 13.5px; }
.ds-fg-r + .ds-fg-r { box-shadow: inset 0 .5px 0 rgba(0,0,0,.08); }
.ds-fg-r > :first-child { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ds-fg-r .v { color: #6B6E75; display: flex; align-items: center; gap: 6px; text-align: right; font-variant-numeric: tabular-nums; }
.ds-fg-r :is(input:not([type=checkbox]):not([type=radio]), select) { height: 26px; min-width: 120px; border: 0; border-radius: 6px; padding: 0 8px; font: inherit; font-size: 13px; text-align: right;
  background: #FFFFFF; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.2); box-sizing: border-box; }
.ds-fg-r :is(input, select):focus { outline: 0; box-shadow: 0 0 0 3px rgba(47,107,234,.3), inset 0 0 0 1px #2F6BEA; }
.ds-fg-r.go { cursor: pointer; } .ds-fg-r.go:hover { background: rgba(0,0,0,.025); }

/* 표 — 머리 옅게 · 줄 사이 선 없이 한 줄 건너 옅은 회색 · 올리면 옅은 파랑 */
.ds-tbl { box-shadow: inset 0 .5px 0 rgba(0,0,0,.08); }
.ds-tbl table { font-size: 13px; }
.ds-tbl th { padding: 9px 10px; font-size: 11.5px; font-weight: 600; color: #6B6E75; background: rgba(250,250,251,.96); box-shadow: inset 0 -.5px 0 rgba(0,0,0,.08); }
.ds-tbl td { padding: 9px 10px; box-shadow: none; }
.ds-tbl tbody tr:nth-child(even) { background: #FAFAFB; }
.ds-tbl tbody tr:hover { background: rgba(47,107,234,.07); }
.ds-tbl tbody tr[aria-selected="true"] { background: rgba(47,107,234,.11); }
.ds-tbl :is(th, td):first-child { padding-left: 16px; } .ds-tbl :is(th, td):last-child { padding-right: 16px; }
.ds-tbl .first b { font-weight: 600; }
.ds-tbl small { font-size: 11.5px; }
.ds-more { box-shadow: inset 0 .5px 0 rgba(0,0,0,.08); padding: 10px; }

/* ⑩ 배지 · 상태 점 */
.ds-badge { height: 22px; padding: 0 9px; font-size: 11.5px; font-weight: 600; gap: 5px; }
.ds-badge.blue { background: rgba(47,107,234,.1); color: var(--point-dark); }
.ds-badge.count { background: rgba(0,0,0,.07); color: #3C3F45; font-weight: 700; }
.ds-badge.alert { background: var(--c-red, #D9483B); color: #FFFFFF; font-weight: 700; }
.ds-pending { height: 22px; padding: 0 9px; font-size: 11.5px; }
.ds-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink); white-space: nowrap; }
.ds-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--c-gray, #8E9096); }
.ds-dot.ok::before { background: var(--c-on, #34C759); } .ds-dot.warn::before { background: var(--c-orange, #E8913A); } .ds-dot.bad::before { background: var(--c-red, #D9483B); } .ds-dot.info::before { background: var(--c-blue, #2F6BEA); }

/* ⑩ 빈 화면 — 큰 타일 하나 + 한 문장 + 버튼 */
.ds-empty { padding: 34px 20px; font-size: 13px; color: #6B6E75; gap: 8px; }
.ds-empty b { font-size: 15px; }
.ds-empty .ds-tile-ic { margin-bottom: 4px; }
.ds-empty .ds-btn { margin-top: 4px; }
.ds-empty.err .ic { width: 44px; height: 44px; border-radius: 24%; background: var(--c-red, #D9483B); color: #FFFFFF; }

/* ⑨ 진행 · 스켈레톤 · 스피너(맥 8줄) */
.ds-progress { height: 6px; background: rgba(0,0,0,.08); }
.ds-skel { background: linear-gradient(90deg, #EFEFF2 0, #F7F7F9 50%, #EFEFF2 100%); background-size: 200% 100%; border-radius: 6px; }
.ds-spinner { display: inline-block; width: 20px; height: 20px; vertical-align: middle; animation: ds-spin8 .8s steps(8) infinite; }
.ds-spinner line { stroke: #5E6168; stroke-width: 2; stroke-linecap: round; }
@keyframes ds-spin8 { to { transform: rotate(360deg); } }
.ds-btn .ds-spin { width: 14px; height: 14px; border-width: 1.8px; }

/* 시트(오른쪽) — 떠 있는 반투명 창(위 · 오른쪽 · 아래 16 띄움) · 휴대폰은 아래 시트(손잡이) */
.ds-scrim2 { background: rgba(17,19,21,.12); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.ds-sheet { top: 16px; right: 16px; bottom: 16px; width: min(500px, calc(100% - 32px)); border-radius: var(--r-window, 14px); padding: 18px 22px 24px; gap: 16px;
  background: var(--mat-sheet, rgba(255,255,255,.88)); -webkit-backdrop-filter: var(--mat-blur-lg); backdrop-filter: var(--mat-blur-lg); box-shadow: var(--shadow-sheet);
  transform: translateX(calc(100% + 24px)); transition: transform .4s var(--ease), visibility 0s linear .4s; }
.ds-sheet.wide { width: min(640px, calc(100% - 32px)); }
.ds-sheet.on { transition: transform .4s var(--ease), visibility 0s; }
.ds-sheet-h { padding-bottom: 12px; box-shadow: inset 0 -.5px 0 rgba(0,0,0,.08); }
.ds-sheet-h small { font-size: 12px; color: #6B6E75; }
.ds-sheet-h h2, .ds-sheet-h b { font-size: 20px; letter-spacing: -.015em; }
.ds-x { width: 28px; height: 28px; background: rgba(0,0,0,.06); color: #3C3F45; }
.ds-x svg { width: 13px; height: 13px; }
.ds-bsheet { border-radius: var(--r-window, 14px) var(--r-window, 14px) 0 0; padding: 8px 18px 28px; background: rgba(242,242,247,.96); -webkit-backdrop-filter: var(--mat-blur-lg); backdrop-filter: var(--mat-blur-lg); box-shadow: 0 0 0 .5px rgba(0,0,0,.12), 0 -12px 40px rgba(17,19,21,.18); }
.ds-bsheet .grab { width: 38px; height: 5px; border-radius: 3px; background: rgba(0,0,0,.2); margin-bottom: 10px; }

/* ⑧ 확인 창 — 맥 알림 모양(DS.confirm · DS.prompt). 마감 풀기 · 반려 · 세금계산서 발행 · 발주 공개는 큰 타일 + 가운데 + 버튼 세로(.ds-modal.alert) */
.ds-modal { width: min(400px, calc(100% - 32px)); border-radius: var(--r-window, 14px); padding: 20px; gap: 12px;
  background: rgba(246,246,248,.96); -webkit-backdrop-filter: var(--mat-blur-lg); backdrop-filter: var(--mat-blur-lg); box-shadow: 0 0 0 .5px rgba(0,0,0,.16), 0 20px 50px rgba(17,19,21,.26); }
.ds-modal h2 { font-size: 15px; font-weight: 700; }
.ds-modal p { font-size: 13px; color: #3C3F45; line-height: 1.5; }
.ds-modal .act { gap: 8px; }
.ds-modal.alert { width: min(300px, calc(100% - 32px)); align-items: center; text-align: center; gap: 10px; }
.ds-modal.alert h2 { font-size: 14px; }
.ds-modal.alert p { font-size: 12.5px; }
.ds-modal.alert .ds-field { width: 100%; text-align: left; }
.ds-modal.alert .act { flex-direction: column-reverse; width: 100%; margin-top: 4px; }
.ds-modal.alert .act .ds-btn { width: 100%; justify-content: center; }
.ds-modal .ds-btn.danger[data-y] { background: var(--c-red, #D9483B); color: #FFFFFF; box-shadow: 0 1px 2px rgba(217,72,59,.4); }

/* ⑨ 알림 배너(DS.toast — 부르는 법 그대로) — 오른쪽 위에서 내려옴 · 반투명 · 색 타일 */
.ds-toasts { left: auto; right: 16px; bottom: auto; top: calc(var(--mac-top, 0px) + var(--mac-bar, 0px) + 12px); transform: none; align-items: stretch; width: 340px; max-width: calc(100% - 32px); }
.ds-toast { background: rgba(246,246,248,.92); color: var(--ink); border-radius: var(--r-window, 14px); padding: 12px; gap: 10px; font-size: 13px; font-weight: 500; line-height: 1.45;
  -webkit-backdrop-filter: var(--mat-blur); backdrop-filter: var(--mat-blur); box-shadow: 0 0 0 .5px rgba(0,0,0,.14), 0 12px 30px rgba(17,19,21,.18); animation: ds-ban-in .32s var(--ease) both; }
.ds-toast > span:not(.ds-tile-ic):not(.tm) { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ds-toast .tm { margin-left: auto; flex: none; font-size: 11.5px; color: #6B6E75; align-self: flex-start; }
.ds-toast.bad { background: rgba(255,244,243,.95); }
.ds-toast button { background: #FFFFFF; color: var(--c-blue, #2F6BEA); border-radius: 7px; height: 26px; font-size: 12.5px; box-shadow: 0 0 0 .5px rgba(0,0,0,.16); flex: none; }
@keyframes ds-ban-in { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) { .ds-toasts { right: 8px; left: 8px; width: auto; max-width: none; } }

/* ⑦ 오른쪽 클릭 메뉴(DS.contextMenu — 단축키) · 팝오버(ⓘ · [data-ds-info] · DS.info) · 툴팁([data-ds-tip]) */
.ds-mn-pop .ds-mn-it { flex-direction: row; align-items: center; gap: 8px; }
.ds-mn-pop .ds-mn-it > .t { flex: 1; min-width: 0; }
.ds-mn-pop .ds-mn-it .k { margin-left: auto; color: #8E9096; font-size: 12px; flex: none; }
.ds-mn-pop .ds-mn-it:is(:hover, :focus-visible) .k { color: rgba(255,255,255,.8); }
.ds-mn-pop .ds-mn-it.danger { color: var(--c-red, #D9483B); }
.ds-mn-pop .ds-mn-it.danger:is(:hover, :focus-visible) { color: #FFFFFF; }
.ds-mn-sep { height: .5px; background: rgba(0,0,0,.12); margin: 4px 8px; }
.ds-info { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; padding: 0; margin-left: 4px; border: 0; border-radius: 50%;
  background: rgba(0,0,0,.07); color: #5E6168; font: 700 10.5px/1 var(--ds-font); cursor: pointer; vertical-align: 1px; position: relative; }
.ds-info::after { content: ""; position: absolute; inset: -12px; }
.ds-info:hover { background: rgba(47,107,234,.14); color: var(--point-dark); }
.ds-popover { position: fixed; z-index: 1250; width: 260px; max-width: calc(100vw - 16px); box-sizing: border-box; padding: 14px; border-radius: 12px; background: #FFFFFF;
  box-shadow: 0 0 0 .5px rgba(0,0,0,.14), 0 12px 32px rgba(17,19,21,.18); font: 400 13px/1.5 var(--ds-font); color: #3C3F45; display: flex; flex-direction: column; gap: 6px; animation: ds-cb-in .18s var(--ease) both; }
.ds-popover b { color: var(--ink); font-size: 13.5px; }
.ds-popover a { color: var(--c-blue, #2F6BEA); font-weight: 600; text-decoration: none; }
.ds-popover::before { content: ""; position: absolute; top: -6px; left: var(--ax, 24px); width: 12px; height: 12px; background: #FFFFFF; transform: rotate(45deg); box-shadow: -.5px -.5px 0 rgba(0,0,0,.12); }
.ds-popover.up::before { top: auto; bottom: -6px; box-shadow: .5px .5px 0 rgba(0,0,0,.12); }
[data-ds-tip] { position: relative; }
[data-ds-tip]:is(:hover, :focus-visible)::after {
  content: attr(data-ds-tip); position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); z-index: 1300; pointer-events: none;
  padding: 5px 8px; border-radius: 6px; background: rgba(40,40,44,.92); color: #FFFFFF; font: 400 12px/1.35 var(--ds-font); white-space: nowrap; letter-spacing: 0;
}

/* 길잡이 줄(보드 .crumb) · 기준 꼬리표(보드 .basis — '공급가' 등) · 계산 한 줄(보드 .eq) */
.ds-crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12px; color: #6B6E75; }
.ds-basis { display: inline-flex; align-items: center; height: 17px; padding: 0 6px; border-radius: 5px; background: rgba(47,107,234,.08); color: var(--point-dark); font-size: 10.5px; font-weight: 600; white-space: nowrap; letter-spacing: 0; vertical-align: 1px; }
.ds-eq { background: #F5F6F8; border-radius: 10px; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.05); padding: 10px 14px; font-size: 13px; color: #3C3F45; line-height: 1.7; font-variant-numeric: tabular-nums; }
.ds-eq b { color: var(--ink); }
.ds-eq .ok { color: var(--ok); font-weight: 700; }
.ds-eq .ref { color: #6B6E75; font-size: 12px; }

/* 휴대폰(600 이하) — 누르는 면 40px(10/9 규칙 그대로) · 아이폰 묶음 목록 · 큰 제목 */
@media (max-width: 600px) {
  .ds-page { padding: 14px 16px 90px; gap: 14px; }
  .ds-head h1 { font-size: 30px; letter-spacing: -.02em; }
  .ds-btn, .ds-btn.sm, .ds-chip, .ds-chip.sm { height: 40px; }
  .ds-seg button, .ds-seg.lg button { height: 36px; }
  .ds-search, .ds-field :is(input, select) { height: 40px; }
  .ds-x { width: 40px; height: 40px; }
  .ds-toggle { border-width: 9px; }
  .ds-step button { width: 40px; height: 40px; }
  .ds-fg-r { min-height: 48px; font-size: 15px; }
  .ds-kpi { border-radius: var(--r-widget, 20px); padding: 14px; }
  .ds-kpi .v { font-size: 23px; flex-wrap: wrap; }
  .ds-kpi svg.spark { display: none; }      /* 휴대폰 위젯 = 숫자만(Mobile 보드 ①) · 추세는 화면 아래 차트 */
  .ds-sheet { top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 92vh; border-radius: var(--r-window, 14px) var(--r-window, 14px) 0 0; padding: 22px 18px calc(24px + env(safe-area-inset-bottom, 0px));
    transform: translateY(105%); background: rgba(242,242,247,.97); }
  .ds-sheet.wide { width: auto; }
  .ds-sheet::before { content: ""; position: absolute; top: 8px; left: 50%; width: 38px; height: 5px; margin-left: -19px; border-radius: 3px; background: rgba(0,0,0,.2); }
}
html.ds-mac body:has(.ds-page) { background: #FFFFFF !important; }
@media (max-width: 640px) { html.ds-mac, html.ds-mac body:has(.ds-page) { background: #F2F2F7 !important; } }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .ds-sheet, .ds-bsheet, .ds-modal, .ds-toast { background: #FFFFFF !important; }
}
@media (prefers-reduced-motion: reduce) { .ds-toast, .ds-popover, .ds-spinner, button.ds-kpi { animation: none !important; transition: none !important; } button.ds-kpi:hover { transform: none; } }

/* 차트 5종(chart.js 10/13) — 숫자가 주인공 · 축 · 격자 옅게 · 말풍선 먹 */
.ds-chart .tip { border-radius: 8px; padding: 6px 10px; font-size: 11.5px; font-weight: 600; background: #111315; }
.ds-chart .axis, .ds-chart .max { color: #8E9096; font-size: 11px; }
.ds-health, .ds-stock, .ds-stacked { position: relative; }
.ds-health svg:focus-visible, .ds-stock svg:focus-visible { outline: 2px solid var(--c-blue, #2F6BEA); outline-offset: 4px; border-radius: 6px; }
.ds-rings { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ds-rings svg { flex: none; }
.ds-rings-l { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ds-rings-l li { display: flex; flex-direction: column; gap: 1px; }
.ds-rings-l span { font-size: 12.5px; font-weight: 600; }
.ds-rings-l b { font-size: 18px; font-variant-numeric: tabular-nums; }
.ds-widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.ds-widget { background: #FFFFFF; border-radius: var(--r-widget, 20px); box-shadow: 0 0 0 .5px rgba(0,0,0,.08), 0 6px 20px rgba(17,19,21,.05); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px;
  color: var(--ink) !important; text-decoration: none !important; min-width: 0; box-sizing: border-box; transition: transform var(--lift, .18s) ease, box-shadow var(--lift, .18s) ease; }
a.ds-widget:hover { transform: translateY(-1px); box-shadow: 0 0 0 .5px rgba(0,0,0,.12), 0 10px 26px rgba(17,19,21,.08); }
.ds-widget.has-ring { flex-direction: row; align-items: center; gap: 14px; }
.ds-widget .w-b { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ds-widget .w-t { font-size: 12.5px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.ds-widget .w-t i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.ds-widget .w-v { font-size: 26px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.ds-widget .w-v small { font-size: 14px; color: #6B6E75; font-weight: 600; margin-left: 2px; }
.ds-widget .w-v.bad { color: var(--bad); } .ds-widget .w-v.ok { color: var(--ok); }
.ds-widget .w-s { font-size: 12px; color: #6B6E75; }
.ds-widget svg { flex: none; }
@media (max-width: 600px) { .ds-widgets { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .ds-widget { padding: 14px; } .ds-widget .w-v { font-size: 22px; } .ds-widget .w-spark { width: 80px; } }

/* 아이폰 묶음 목록(Mobile 보드 ②) — 표 대신 휴대폰에서: <div class="ds-isec">머리</div><div class="ds-ilist"><button class="ds-irow"><span class="t"><b>제목</b><small>보조</small></span><span class="v">값</span></button></div> */
.ds-isec { font-size: 12.5px; color: #6B6E75; padding: 14px 16px 6px; }
.ds-ilist { background: #FFFFFF; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 .5px rgba(0,0,0,.06); }
.ds-irow { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 8px 32px 8px 16px; box-sizing: border-box; border: 0; background: #FFFFFF;
  font: inherit; font-size: 15px; color: var(--ink); text-align: left; cursor: pointer; text-decoration: none; }
.ds-irow + .ds-irow::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: .5px; background: rgba(0,0,0,.12); }
.ds-irow::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; margin-top: -4px; border-top: 2px solid #C4C5CA; border-right: 2px solid #C4C5CA; transform: rotate(45deg); }
.ds-irow.static { cursor: default; padding-right: 16px; } .ds-irow.static::after { display: none; }
.ds-irow:active { background: #E5E5EA; }
.ds-irow .t { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.ds-irow .t b { font-weight: 600; } .ds-irow .t small { font-size: 12.5px; color: #6B6E75; }
.ds-irow .v { margin-left: auto; display: flex; align-items: center; gap: 6px; color: #6B6E75; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ds-irow .v b { color: var(--ink); font-weight: 700; } .ds-irow .v b.neg { color: var(--bad); }
.ds-irow .ds-tile-ic { flex: none; }

/* 표 → 휴대폰 묶음 목록 카드(DS.table cards:true · Mobile 보드 ②) — 첫 칸 = 제목 · 나머지 = '이름 … 값' 줄 */
@media (max-width: 600px) {
  .ds-tbl.cards { box-shadow: none; overflow: visible; }
  .ds-tbl.cards table { min-width: 0 !important; display: block; }
  .ds-tbl.cards thead { display: none; }
  .ds-tbl.cards tbody { display: flex; flex-direction: column; gap: 8px; }
  .ds-tbl.cards tbody tr { display: block; background: #FFFFFF !important; border-radius: 12px; padding: 10px 14px; box-shadow: 0 0 0 .5px rgba(0,0,0,.08); }
  .ds-tbl.cards td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 0 !important; text-align: right; font-size: 14px; min-height: 28px; }
  .ds-tbl.cards td::before { content: attr(data-l); flex: none; font-size: 12.5px; color: #6B6E75; text-align: left; }
  .ds-tbl.cards td:first-child { padding-bottom: 6px !important; margin-bottom: 2px; box-shadow: inset 0 -.5px 0 rgba(0,0,0,.08); text-align: left; font-size: 15px; }
  .ds-tbl.cards td:first-child::before { display: none; }
  .ds-tbl.cards td:first-child { justify-content: flex-start; }
  .ds-tbl.cards td:first-child > * { text-align: left; }
  .ds-tbl.cards td:empty { display: none; }
  .ds-tbl.cards tfoot { display: block; }
  .ds-tbl.cards tfoot tr { display: block; padding: 10px 14px; }
}
/* 왼쪽으로 밀기 동작 칸(DS.swipe) — 밀린 줄 뒤 오른쪽에 */
.ds-swipe-acts { position: absolute; right: 0; display: flex; border-radius: 12px; overflow: hidden; z-index: 0; }
.ds-tbl.cards tbody { position: relative; }
.ds-tbl.cards tbody tr { position: relative; z-index: 1; transition: transform .25s var(--ease); }
.ds-swipe-acts button { width: 74px; border: 0; color: #FFFFFF; font: 600 13px/1 var(--ds-font); cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .ds-tbl.cards tbody tr { transition: none; } }

/* 입력 오류 칸(DS.markFields · 422 fields) — 빨간 링 */
html.ui-v2 :is(input, select, textarea).ds-err { outline: 0 !important; box-shadow: 0 0 0 3px rgba(217,72,59,.22), inset 0 0 0 1px var(--c-red, #D9483B) !important; }

/* 10/16 휴대폰 = PC 와 같이(CLAUDE.md 화면 규칙 · Mobile 보드) — 카드로 안 바꾼 넓은 표(DS.table · cards 아님)는 가로로 밀 때 첫 칸 고정
   (무엇의 줄인지 안 놓침). 오른쪽 시트 → 아래 시트는 위 10/13 규칙(.ds-sheet 600 이하)이 이미 함. */
@media (max-width: 600px) {
  .ds-tbl:not(.cards) tbody td:first-child, .ds-tbl:not(.cards) thead th:first-child { position: sticky; left: 0; z-index: 1; background: #FFFFFF; box-shadow: inset -.5px 0 0 rgba(0,0,0,.08); }
  .ds-tbl:not(.cards) thead th:first-child { z-index: 2; }
  /* 탭(DS.seg)이 화면보다 넓으면 같은 폭(1fr)으로 줄어 글자가 겹쳤음(상품 DB '사진 없음 36결재 중 0') → 제 폭 그대로 · 옆으로 밀기 */
  .ds-seg { grid-auto-columns: max-content; }
}

/* 10/19 M0 README 공통 규칙 — 칩 · 배지 = 높이 고정 + 글자 가운데(inline-flex · align-items center · line-height 1).
   화면마다 따로 만든 알약(*-pill: l2 · l3 · l7 · l8 · a3 · pw · pd · fe · st · sm · rk …)도 같이 — 높이 · 색은 각 화면 것 그대로, 가운데 맞춤만 여기서. */
.ds-chip, .ds-badge, [class$="-pill"], [class*="-pill "] {
  display: inline-flex; align-items: center; justify-content: center; line-height: 1; box-sizing: border-box; vertical-align: middle;
}

/* ── 모션 B(10/20 대표 확정 · DESIGN.md 4장 '모션') — 이 한 곳만 · 차례(지연)는 ds.js DSMotion 이 정하고 끝나면 클래스를 뗌 ──
   html.aw-mo = 확정된 새 화면(홈 · 물류 · 마케팅 · 세금계산서)만 · 옛 화면(?full=1) · 동작 줄이기 = 안 붙음.
   translate · scale 따로 속성(화면 자체 transform 과 안 부딪힘) · fill backwards(기다리는 동안만 처음 모습 · 끝나면 화면 그대로). */
@keyframes aw-in { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
@keyframes aw-gy { from { scale: 1 0; } to { scale: 1 1; } }
@keyframes aw-gx { from { scale: 0 1; } to { scale: 1 1; } }
html.aw-mo .aw-in { animation: aw-in .38s cubic-bezier(.2,.7,.2,1) var(--aw-d, 0ms) backwards; }
html.aw-mo .aw-gy { animation: aw-gy .6s cubic-bezier(.2,.7,.2,1) var(--aw-d, 260ms) backwards; transform-box: fill-box; transform-origin: 50% 100%; }
html.aw-mo .aw-gx { animation: aw-gx .6s cubic-bezier(.2,.7,.2,1) var(--aw-d, 260ms) backwards; transform-box: fill-box; transform-origin: 0 50%; }
html.aw-mo :is(.ds-rise, .ds-reveal, .reveal):not(.aw-in) { animation: none; }      /* 예전 '한 번 떠오름'은 모션 B 차례로 바꿈 */
html.aw-mo .ds-scrim2 { transition: opacity .2s ease; }                /* 시트 뒤 흐림 0.2초 */
@media (min-width: 601px) {                                            /* 시트 = 오른쪽에서 28px 밀려 들어옴(0.28초) · 휴대폰은 아래 시트 그대로 */
  html.aw-mo .ds-sheet { transform: translateX(28px); opacity: 0; transition: transform .28s cubic-bezier(.2,.7,.2,1), opacity .28s cubic-bezier(.2,.7,.2,1), visibility 0s linear .28s; }
  html.aw-mo .ds-sheet.on { transform: none; opacity: 1; transition: transform .28s cubic-bezier(.2,.7,.2,1), opacity .28s cubic-bezier(.2,.7,.2,1), visibility 0s; }
}
@media (prefers-reduced-motion: reduce) {
  html.aw-mo :is(.aw-in, .aw-gy, .aw-gx) { animation: none !important; }
  html.aw-mo .ds-sheet, html.aw-mo .ds-scrim2 { transition: none !important; }
}

/* ── 그래프 카드 부품(10/20 저녁 대표 · 재무 홈 1안 README '그래프 카드 부품' 표 · 시안 docs/assets/preview/FN_재무홈_1안) — 새 이름만(fg-) ·
 *   기존 차트(.ds-chart · DSChart.line · bars …) 모양 · 움직임은 그대로. 그리는 함수 = static/js/ds/chart.js DSChart.fg*(견본 docs/assets/preview/chart_parts.html).
 *   카드 · 머리 · 요약 띠 · 축 48px · 눈금선 · 막대 46%(최대 36) · 선(굵기 3 / 2.5 · 옅은 면) · 목표 점선 · 작은 추세선 80×28 · 가로 막대 줄 · 꼬리표(높이 20 고정) ·
 *   모션 B = 카드 0.38초 10px · 막대 아래 · 가로 막대 왼쪽에서 0.6초(260ms 부터 30ms 씩) · 선 왼쪽부터 0.7초 · 동작 줄이기 = 없음 · 숫자 값은 안 움직임 */
.fg-g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.fg-card { background: #FFFFFF; border-radius: 18px; box-shadow: 0 0 0 .5px rgba(0,0,0,.08); padding: 18px 20px 16px; display: flex; flex-direction: column; gap: 14px; min-width: 0; box-sizing: border-box; }
.fg-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.fg-ttl { display: inline-flex; align-items: center; gap: 2px; font-size: 17px; font-weight: 700; letter-spacing: -0.02em; color: #111315; text-decoration: none; margin: 0; }
.fg-ttl svg { color: #8E9096; flex: none; } a.fg-ttl:hover svg { color: #111315; }
.fg-lg { display: flex; gap: 12px; font-size: 12.5px; color: #5E6168; align-items: center; flex-wrap: wrap; }
.fg-lg > span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.fg-sq { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex: none; }
.fg-li { display: inline-block; width: 14px; height: 3px; border-radius: 2px; flex: none; }
.fg-dl { display: inline-block; width: 14px; border-top: 2px dashed #E8913A; flex: none; }
.fg-sum { display: flex; align-items: center; gap: 14px; background: #F5F5F7; border-radius: 12px; padding: 11px 16px; }
.fg-si { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 auto; flex-wrap: wrap; }
.fg-sl { font-size: 13px; color: #6B6E75; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.fg-si b { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fg-dv { width: 1px; height: 18px; background: rgba(0,0,0,.1); flex: 0 0 1px; }
.fg-good, .fg-bad, .fg-neu { font-style: normal; font-size: 12px; font-weight: 700; white-space: nowrap; letter-spacing: 0; }
.fg-good { color: #1E7A4C; } .fg-bad { color: #B3271D; } .fg-neu { color: #5E6168; }
.fg-ch { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 8px; padding-top: 8px; }
.fg-ya { position: relative; height: 200px; }
.fg-ya span { position: absolute; right: 0; transform: translateY(-50%); font-size: 11.5px; color: #8E9096; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fg-pl { position: relative; height: 200px; }
.fg-gl { position: absolute; left: 0; right: 0; height: 1px; background: #EEEEF1; }
.fg-ln { position: absolute; inset: 0; }
.fg-ln svg { display: block; width: 100%; height: 100%; overflow: visible; }
.fg-bs { position: absolute; inset: 0; display: flex; }
.fg-bc { flex: 1; display: flex; align-items: flex-end; justify-content: center; height: 100%; min-width: 0; }
.fg-b { display: block; width: 46%; max-width: 36px; border-radius: 6px 6px 0 0; transform-origin: 50% 100%; }
.fg-goal { position: absolute; left: 0; right: 0; border-top: 1.5px dashed #E8913A; }
.fg-goal span { position: absolute; right: 0; top: -21px; font-size: 11px; font-weight: 600; color: #8A5200; background: #FFFFFF; padding: 0 4px; border-radius: 4px; white-space: nowrap; }
.fg-xa { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 8px; margin-top: -6px; }
.fg-xr { display: flex; } .fg-xr span { flex: 1; text-align: center; font-size: 11.5px; color: #6B6E75; font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 0; }
.fg-ft { margin: 0; font-size: 11.5px; color: #8E9096; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fg-tg { font-style: normal; display: inline-flex; align-items: center; flex: none; height: 20px; line-height: 1; padding: 0 7px; border-radius: 6px; font-size: 11px; font-weight: 700; background: #F0F0F2; color: #5E6168; white-space: nowrap; box-sizing: border-box; }
.fg-tw { background: #FFF3DD; color: #8A5200; }
.fg-mn { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; border-top: 1px solid #F0F0F2; padding-top: 12px; }
.fg-mi { display: flex; align-items: center; gap: 12px; min-width: 0; } .fg-mi svg { flex: 0 0 80px; }
.fg-mt { display: flex; flex-direction: column; gap: 1px; min-width: 0; } .fg-mt span { font-size: 12.5px; color: #6B6E75; }
.fg-mt b { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fg-rows { display: flex; flex-direction: column; gap: 9px; }
.fg-gr { display: grid; grid-template-columns: 120px minmax(0, 1fr) 60px 46px; gap: 10px; align-items: center; font-size: 13.5px; }
.fg-gn { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; white-space: nowrap; }
.fg-tr { display: block; height: 12px; border-radius: 999px; background: #F3F3F5; overflow: hidden; }
.fg-tr i { display: block; height: 100%; border-radius: 999px; transform-origin: 0 50%; }
.fg-gv { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fg-gp { text-align: right; color: #8E9096; font-size: 12px; font-variant-numeric: tabular-nums; }
.fg-gr-e { font-weight: 700; border-top: 1px solid #EDEDF0; padding-top: 10px; } .fg-gr-e .fg-gv { color: #1A4FC4; }
@keyframes fg-in { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
@keyframes fg-up { from { scale: 1 0; } to { scale: 1 1; } }
@keyframes fg-rt { from { scale: 0 1; } to { scale: 1 1; } }
@keyframes fg-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: no-preference) {
  .fg-card { animation: fg-in .38s cubic-bezier(.2,.7,.2,1) var(--fg-d, 0ms) backwards; }
  .fg-b { animation: fg-up .6s cubic-bezier(.2,.7,.2,1) var(--fg-d, 260ms) backwards; }
  .fg-tr i { animation: fg-rt .6s cubic-bezier(.2,.7,.2,1) var(--fg-d, 260ms) backwards; }
  .fg-ln { animation: fg-wipe .7s cubic-bezier(.2,.7,.2,1) .26s backwards; }
}
@media (max-width: 1100px) { .fg-g2 { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .fg-card { padding: 16px; } .fg-sum { padding: 10px 12px; gap: 10px; } .fg-si { gap: 2px 6px; } .fg-si b { font-size: 15px; }
  .fg-ch, .fg-xa { grid-template-columns: 40px minmax(0, 1fr); gap: 6px; } .fg-ya span, .fg-xr span { font-size: 10.5px; }
  .fg-mn { grid-template-columns: 1fr; } .fg-gr { grid-template-columns: 96px minmax(0, 1fr) 52px 40px; gap: 8px; font-size: 13px; }
}

/* ── 사업자 고르기(10/27 · static/js/ds/biz.js · 재무 홈 · 매출 · 마진 · 손익 · 정산 대사 · 돈) ── */
.bz-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.bz-l { font-size: 12px; font-weight: 600; color: #8E9096; flex: none; }
.bz-chips { display: flex; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.bz-chips::-webkit-scrollbar { display: none; }
.bz-c { height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: #F0F0F2; color: #3C3F45; font: inherit; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; line-height: 1; white-space: nowrap; cursor: pointer; flex: none; box-sizing: border-box; }
.bz-c:hover { background: #E7E8EB; }
.bz-c.on { background: #2F6BEA; color: #FFFFFF; }
.bz-c:focus-visible { outline: 2px solid #2F6BEA; outline-offset: 2px; }
.bz-warn { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 6px; background: #FDECEB; color: #B3271D; font-size: 11.5px; font-weight: 600; white-space: nowrap; flex: none; box-sizing: border-box; }
.bz-warn i { width: 6px; height: 6px; border-radius: 50%; background: #B3271D; display: inline-block; }
.bz-note { font-size: 12px; color: #8E9096; min-width: 0; }
.bz-acc { display: flex; flex-direction: column; gap: 6px; }
.bz-ar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; background: #F5F5F7; border-radius: 10px; padding: 8px 10px; font-size: 13px; }
.bz-ar b { font-weight: 600; }
.bz-ar .bz-pend { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: #FFF3DD; color: #8A5200; font-size: 11.5px; font-weight: 600; white-space: nowrap; flex: none; box-sizing: border-box; }
@media (max-width: 600px) { .bz-bar { flex-wrap: nowrap; } .bz-note { display: none; } .bz-c { height: 32px; } }

/* ── 목록 공통 필터(10/28 밤 대표 지시 6 · static/js/ds/flt.js · 접두어 fl-) ──
   찾기 · 기간 · 정렬 · 내 보기 · 초기화 · 엑셀(주요 하나) › 빠른 보기 › 칩 한 줄(가로 밀기) › 건수 › 표(div 격자) / 휴대폰 카드 */
.fl-root { --fl-team: #111315; position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; color: #111315; font-variant-numeric: tabular-nums; word-break: keep-all; }
.fl-load { font-size: 12.5px; color: #8E9096; padding: 12px 4px; }
.fl-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fl-top { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fl-gap { flex: 1 1 auto; }
.fl-find input, .fl-sort select, .fl-cus input, .fl-rng input, .fl-pq { height: 34px; border: 0; border-radius: 8px; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.25); background: #fff; padding: 0 10px; font: inherit; font-size: 13px; color: #111315; box-sizing: border-box; }
.fl-find input { width: 220px; max-width: 100%; }
.fl-cus { display: inline-flex; align-items: center; gap: 6px; }
.fl-cus[hidden] { display: none; }
.fl-cus input { width: 138px; }
.fl-dash { color: #8E9096; font-size: 12px; }
.fl-seg { display: inline-flex; background: #F0F0F2; border-radius: 9px; padding: 3px; gap: 2px; flex: none; }
.fl-seg button { height: 28px; padding: 0 11px; border: 0; border-radius: 7px; background: transparent; font: inherit; font-size: 12.5px; font-weight: 600; color: #5E6168; cursor: pointer; display: inline-flex; align-items: center; line-height: 1; white-space: nowrap; }
.fl-seg button.on { background: #fff; color: #111315; box-shadow: 0 1px 1px rgba(0,0,0,.08), 0 0 0 .5px rgba(0,0,0,.08); }
.fl-btn { height: 34px; padding: 0 13px; border: 0; border-radius: 10px; background: #F0F0F2; color: #111315; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; line-height: 1; white-space: nowrap; flex: none; }
.fl-btn:hover { background: #E8E8EB; }
.fl-btn.fl-main { background: var(--fl-team); color: #fff; }
.fl-btn.fl-main:hover { filter: brightness(.95); }
.fl-quick, .fl-chips { position: relative; display: flex; align-items: center; gap: 6px; overflow-x: auto; overflow-y: hidden; white-space: nowrap; scrollbar-width: thin; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
.fl-grp { display: inline-flex; align-items: center; gap: 4px; flex: none; padding-right: 8px; margin-right: 2px; box-shadow: inset -.5px 0 0 rgba(0,0,0,.1); }
.fl-grp:last-child { box-shadow: none; }
.fl-gl { font-size: 11.5px; font-weight: 600; color: #8E9096; flex: none; padding: 0 2px; }
.fl-chip, .fl-qv { height: 30px; padding: 0 11px; border: 0; border-radius: 999px; background: #F5F5F7; color: #111315; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.1);
  font: inherit; font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; line-height: 1; white-space: nowrap; flex: none; cursor: pointer; box-sizing: border-box; }
.fl-chip.on, .fl-qv.on { background: var(--fl-team); color: #fff; box-shadow: none; }
.fl-chip.zero { color: #8E9096; }
.fl-qv { background: #fff; }
.fl-n { display: inline-flex; align-items: center; justify-content: center; height: 18px; min-width: 18px; padding: 0 5px; border-radius: 999px; background: rgba(17,19,21,.07); font-size: 11px; font-weight: 700; line-height: 1; flex: none; box-sizing: border-box; }
.fl-chip.on .fl-n { background: rgba(255,255,255,.25); }
.fl-sv { font-weight: 700; }
.fl-caret { font-size: 10px; opacity: .6; }
.fl-sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.fl-cnt { font-size: 13px; color: #5E6168; }
.fl-cnt b { font-size: 22px; font-weight: 700; letter-spacing: -.03em; color: #111315; margin-right: 2px; }
.fl-mini { font-size: 12px; color: #8E9096; }
.fl-note { flex-basis: 100%; }
.fl-list { min-width: 0; }
.fl-table { background: #fff; border-radius: 14px; box-shadow: 0 0 0 .5px rgba(0,0,0,.08); overflow-x: auto; }
.fl-tr { display: grid; gap: 10px; align-items: center; min-height: 38px; padding: 6px 14px; border: 0; width: 100%; background: none; font: inherit; font-size: 13px; text-align: left; color: #111315; cursor: pointer; box-sizing: border-box; box-shadow: inset 0 -.5px 0 rgba(0,0,0,.08); }
.fl-tr > span { min-width: 0; overflow-wrap: anywhere; }
button.fl-tr:hover { background: #F7F8FB; }
.fl-th { cursor: default; font-size: 11.5px; font-weight: 600; color: #8E9096; min-height: 34px; }
.fl-r { text-align: right; }
.fl-pill { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: #F0F0F2; font-size: 11.5px; font-weight: 600; line-height: 1; white-space: nowrap; flex: none; }
.fl-cards { display: none; }
.fl-empty { display: flex; flex-direction: column; gap: 4px; align-items: center; padding: 28px 12px; background: #fff; border-radius: 14px; box-shadow: 0 0 0 .5px rgba(0,0,0,.08); font-size: 14px; }
.fl-foot { display: flex; justify-content: center; }
.fl-popw { position: fixed; inset: 0; z-index: 2000; }
.fl-pop { position: absolute; width: 330px; max-width: calc(100vw - 16px); max-height: min(440px, 70vh); display: flex; flex-direction: column; background: #fff; border-radius: 12px;
  box-shadow: 0 0 0 .5px rgba(0,0,0,.12), 0 16px 40px rgba(17,19,21,.22); animation: fl-in .2s cubic-bezier(.2,.7,.2,1); }
.fl-ph { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px 6px; font-size: 14px; }
.fl-x { width: 30px; height: 30px; border: 0; border-radius: 8px; background: #F0F0F2; font-size: 16px; line-height: 1; cursor: pointer; flex: none; display: inline-flex; align-items: center; justify-content: center; }
.fl-pb { padding: 6px 14px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.fl-pf { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 14px 14px; }
.fl-pb .fl-pf { padding: 6px 0 4px; }
.fl-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.fl-opts .fl-chip[hidden] { display: none; }
.fl-rng { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; }
.fl-rng label { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; color: #8E9096; font-weight: 600; }
.fl-rng input[type=number] { width: 120px; }
.fl-vl { display: flex; flex-direction: column; gap: 6px; }
.fl-vr { display: flex; align-items: center; gap: 6px; }
.fl-vn { flex: 1 1 auto; min-height: 36px; border: 0; border-radius: 10px; background: #F5F5F7; text-align: left; padding: 6px 10px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
@keyframes fl-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes fl-up { from { transform: translateY(28px); opacity: .4; } to { transform: none; opacity: 1; } }
@media (max-width: 640px) {
  .fl-find { flex: 1 1 100%; }
  .fl-find input { width: 100%; }
  .fl-seg { max-width: 100%; overflow-x: auto; }
  .fl-btn { height: 40px; }
  .fl-gap { display: none; }
  .fl-table { display: none; }
  .fl-cards { display: flex; flex-direction: column; gap: 8px; }
  .fl-card { display: flex; flex-direction: column; gap: 6px; width: 100%; border: 0; background: #fff; border-radius: 14px; box-shadow: 0 0 0 .5px rgba(0,0,0,.08); padding: 12px 14px; text-align: left; font: inherit; color: #111315; cursor: pointer; box-sizing: border-box; }
  .fl-ct { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
  .fl-ct b { overflow-wrap: anywhere; }
  .fl-cm { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: #5E6168; }
  .fl-cm i { font-style: normal; color: #8E9096; font-size: 11.5px; }
  .fl-popw.fl-bs { background: rgba(17,19,21,.28); }
  .fl-bs .fl-pop { left: 0 !important; right: 0; bottom: 0; top: auto !important; width: 100%; max-width: 100%; border-radius: 16px 16px 0 0; max-height: 78vh; animation: fl-up .28s cubic-bezier(.2,.7,.2,1); padding-bottom: env(safe-area-inset-bottom); }
}
@media (prefers-reduced-motion: reduce) { .fl-pop, .fl-bs .fl-pop { animation: none !important; } }
.fl-on > :not(.fl-host):not(.fl-keep) { display: none !important; }
.fl-host { min-width: 0; }
.fl-btn.fl-tg.on { background: #111315; color: #fff; }
.fl-bar { display: flex; justify-content: flex-end; gap: 8px; padding: 0 0 8px; }
.fl-bt { margin-right: auto; font-size: 22px; font-weight: 700; letter-spacing: -.02em; align-self: center; }
