/* LF45 웹 — PC 프로그램 LF45_Cloud 를 휴대폰 웹으로 (대표·팀원 몇 명).
   방향 (2026-10-18 사용자 선택): 테마 없이 정석 운영 대시보드를 Vercel·Linear 수준으로 — 밋밋한 관리 도구가 아니라 완성도로.
   · 색: 중성 캔버스 단계 + 브랜드 남보라 하나(선택·링크·초점·진행 막대). 상태 색은 상태에만 (진행 호박 · 완료 초록 · 실패 빨강 · 보관 청록 · 대기·중지 회색)
   · 모양: 조작부 10px · 그릇 12px · 알약 완전 둥글게 · 1px 선 + 얕은 겹그림자 · 잉크색 기본 버튼 · 숫자 고정폭
   · 움직임: 대표 장면 = 작업 줄 → 자세히 (상태 글리프·이름·진행 막대가 이어져 커짐, View Transitions).
     나머지는 상태를 알리는 것만 — 목록 첫 등장 엇갈림, 진행 막대 채움·흐름, 진행 점 맥박, 선택 모드, 시트·알림, 탭 표시 미끄러짐, 펼침, 숫자 바뀜.
     줄이기 설정이면 위치 움직임 없음 (맨 아래). */
:root {
  --bg: oklch(98.4% 0.002 277);
  --surface: oklch(100% 0 0);
  --surface-2: oklch(96.7% 0.003 277);
  --surface-3: oklch(93.4% 0.005 277);
  --line: oklch(92.4% 0.004 277);
  --line-strong: oklch(86.5% 0.006 277);
  --text: oklch(20.5% 0.012 277);
  --text-2: oklch(43% 0.014 277);
  --text-3: oklch(52% 0.014 277);
  --ink: oklch(20.5% 0.012 277);
  --ink-hover: oklch(31% 0.014 277);
  --on-ink: oklch(98.8% 0.002 277);
  --brand: oklch(52% 0.19 277);
  --brand-soft: oklch(95.6% 0.032 277);
  --brand-line: oklch(80% 0.1 277);
  --on-brand: oklch(99% 0.004 277);
  --run: oklch(72% 0.16 68);
  --run-text: oklch(52% 0.13 60);
  --run-soft: oklch(96.2% 0.045 80);
  --ok: oklch(56% 0.14 152);
  --ok-soft: oklch(95.6% 0.045 152);
  --bad: oklch(55% 0.2 27);
  --bad-soft: oklch(96% 0.028 27);
  --kept: oklch(54% 0.1 218);
  --kept-soft: oklch(95.6% 0.032 218);
  --idle: oklch(66% 0.008 277);
  --shadow-1: 0 1px 1px oklch(25% 0.02 277 / .03), 0 2px 3px oklch(25% 0.02 277 / .035);
  --shadow-2: 0 1px 1px oklch(25% 0.02 277 / .03), 0 4px 8px -2px oklch(25% 0.02 277 / .06), 0 12px 24px -8px oklch(25% 0.02 277 / .06);
  --shadow-3: 0 1px 1px oklch(25% 0.02 277 / .02), 0 8px 16px -4px oklch(25% 0.02 277 / .06), 0 28px 48px -12px oklch(25% 0.02 277 / .14);
  --r-ctl: 10px;
  --r-box: 12px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --top-h: 52px;
  --tab-h: 62px;
  --side-w: 240px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: oklch(14.6% 0.004 277);
    --surface: oklch(18.2% 0.006 277);
    --surface-2: oklch(21.6% 0.007 277);
    --surface-3: oklch(26% 0.008 277);
    --line: oklch(26% 0.007 277);
    --line-strong: oklch(34% 0.009 277);
    --text: oklch(96% 0.004 277);
    --text-2: oklch(76% 0.008 277);
    --text-3: oklch(64.5% 0.01 277);
    --ink: oklch(96% 0.004 277);
    --ink-hover: oklch(86% 0.006 277);
    --on-ink: oklch(17% 0.006 277);
    --brand: oklch(71% 0.14 277);
    --brand-soft: oklch(28% 0.07 277);
    --brand-line: oklch(48% 0.12 277);
    --on-brand: oklch(16% 0.02 277);
    --run: oklch(80% 0.15 75);
    --run-text: oklch(82% 0.13 78);
    --run-soft: oklch(29% 0.06 75);
    --ok: oklch(75% 0.15 152);
    --ok-soft: oklch(28% 0.05 152);
    --bad: oklch(71% 0.17 25);
    --bad-soft: oklch(28.5% 0.07 25);
    --kept: oklch(77% 0.1 215);
    --kept-soft: oklch(28.5% 0.045 215);
    --idle: oklch(57% 0.008 277);
    --shadow-1: 0 0 0 1px oklch(100% 0 0 / .015);
    --shadow-2: 0 8px 20px -6px oklch(0% 0 0 / .55);
    --shadow-3: 0 24px 48px -12px oklch(0% 0 0 / .7);
    color-scheme: dark;
  }
}

/* ---------- 바탕 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--line-strong) transparent; scrollbar-width: thin; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.55 var(--font); letter-spacing: -0.01em; font-feature-settings: 'ss06';
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; caret-color: var(--brand);
  word-break: keep-all; overflow-wrap: anywhere;          /* 한국어는 낱말 중간에서 줄바꿈하지 않음 (파일 이름만 아무 데서나) */
}
::selection { background: color-mix(in oklch, var(--brand) 26%, transparent); color: var(--text); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
a { color: var(--brand); text-decoration: none; text-underline-offset: 3px; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button, [role="button"], label.pick, summary { cursor: pointer; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 20px; height: 20px; fill: currentColor; flex: none; }
.ic-sm { width: 16px; height: 16px; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: .9em; letter-spacing: 0; }
.mut { color: var(--text-2); }
.faint { color: var(--text-3); }
.noscript { padding: 24px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { a:hover { text-decoration: underline; } }

/* ---------- 틀: 휴대폰 = 위 막대 + 아래 탭 / 넓은 화면 = 왼쪽 메뉴 ---------- */
.app { min-height: 100dvh; }
.topbar {
  position: sticky; top: 0; z-index: 20; height: calc(var(--top-h) + var(--safe-t)); padding: var(--safe-t) 16px 0;
  display: flex; align-items: center; gap: 12px;
  background: color-mix(in oklch, var(--bg) 84%, transparent);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  box-shadow: 0 1px 0 transparent; transition: box-shadow 200ms ease;
  view-transition-name: topbar;
}
.topbar.scrolled { box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 18px; }
.brand-mark rect { fill: var(--text); }
.brand-name { font-weight: 680; font-size: 17px; letter-spacing: -0.04em; }
.topbar-status { margin-left: auto; display: flex; align-items: center; min-width: 0; }
.live { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 11px; border-radius: 99px; font-size: 13px; color: var(--text-2);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); white-space: nowrap; }
.live b { font-weight: 650; color: var(--text); }
.bal { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px 0 10px; margin-right: 6px; border-radius: 99px; font-size: 13px;
  font-weight: 600; color: var(--text-2); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.bal .ic { width: 15px; height: 15px; }
.bal.low, .nav-side .cost.low b { color: var(--bad); }

.nav {
  position: fixed; z-index: 30; left: 0; right: 0; bottom: 0;
  height: calc(var(--tab-h) + var(--safe-b)); padding: 0 6px var(--safe-b);
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: color-mix(in oklch, var(--surface) 96%, transparent);
  backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  box-shadow: 0 -1px 0 var(--line);
  view-transition-name: nav;
  transition: transform 300ms var(--ease-drawer);
}
.nav a { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--text-3); font-size: 11.5px; font-weight: 600; letter-spacing: -0.01em; transition: color 180ms ease; }
.nav a:hover { text-decoration: none; }
.nav a .ic { width: 24px; height: 24px; transition: transform 200ms var(--ease-out); }
.nav a:active .ic { transform: scale(.9); }
.nav a[aria-current="page"] { color: var(--text); }
.nav-ind { position: absolute; z-index: 0; top: 8px; left: 0; height: 46px; width: 0; border-radius: 14px; background: var(--surface-2);
  transition: transform 340ms var(--ease-out), width 340ms var(--ease-out), height 340ms var(--ease-out), opacity 200ms ease; opacity: 0; pointer-events: none; }
.nav-ind.ready { opacity: 1; }
.nav-side { display: none; }
body.selecting .nav { transform: translateY(110%); }

.view { padding: 4px 16px calc(var(--tab-h) + var(--safe-b) + 32px); max-width: 780px; margin: 0 auto; outline: none; view-transition-name: main; }

@media (min-width: 960px) {
  .app { display: grid; grid-template-columns: var(--side-w) 1fr; }
  .topbar { display: none; }
  .nav {
    position: sticky; top: 0; height: 100dvh; padding: 18px 12px; grid-row: 1; transform: none !important;
    display: flex; flex-direction: column; gap: 2px; box-shadow: 1px 0 0 var(--line); background: var(--bg);
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .nav .brand-in-nav { height: auto; padding: 4px 10px 20px; }
  .nav a { flex-direction: row; justify-content: flex-start; gap: 11px; height: 38px; padding: 0 10px; border-radius: var(--r-ctl);
    font-size: 14.5px; font-weight: 550; color: var(--text-2); }
  .nav a .ic { width: 19px; height: 19px; }
  .nav-ind { top: 0; border-radius: var(--r-ctl); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); }
  .nav-side { display: grid; gap: 8px; margin-top: auto; padding: 12px 10px 0; font-size: 13px; color: var(--text-2); }
  .nav-side .live { justify-self: start; }
  .nav-side .cost { display: flex; justify-content: space-between; }
  .nav-side .cost b { color: var(--text); font-weight: 650; }
  .view { padding: 32px 40px 72px; max-width: 1040px; width: 100%; margin: 0 auto; }
}
.nav .brand-in-nav { display: none; }
@media (min-width: 960px) { .nav .brand-in-nav { display: flex; } }
@media (min-width: 960px) and (hover: hover) { .nav a:hover { color: var(--text); } }

/* ---------- 머리말 ---------- */
.head { display: flex; align-items: center; gap: 12px; margin: 14px 0 16px; min-height: 40px; }
.head h1 { margin: 0; font-size: 26px; line-height: 1.2; font-weight: 680; letter-spacing: -0.04em; text-wrap: balance; }
.head .sub { margin: 4px 0 0; color: var(--text-2); font-size: 14.5px; }
.head-side { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.head-cost { font-size: 13px; color: var(--text-2); white-space: nowrap; text-align: right; line-height: 1.25; }
.head-cost b { display: block; color: var(--text); font-weight: 650; font-size: 16px; letter-spacing: -0.02em; }
@media (min-width: 960px) { .head { margin-top: 0; } .head-cost { display: none; } }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; color: var(--text-2); font-size: 14.5px; font-weight: 550; margin-top: 2px; }
.back:hover { color: var(--text); text-decoration: none; }
.back .ic { transition: transform 200ms var(--ease-out); }
@media (hover: hover) { .back:hover .ic { transform: translateX(-3px); } }
h2.sec { font-size: 13.5px; font-weight: 650; color: var(--text-2); margin: 28px 2px 10px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; }
h2.sec .count { color: var(--text-3); font-weight: 550; }
h2.sec .sec-act { margin-left: auto; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 44px; padding: 0 18px; border-radius: var(--r-ctl); border: 0;
  background: var(--ink); color: var(--on-ink); font-weight: 620; font-size: 15px; cursor: pointer; white-space: nowrap; text-decoration: none;
  box-shadow: inset 0 1px 0 oklch(100% 0 0 / .08), var(--shadow-1);
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 140ms var(--ease-out), opacity 160ms ease, color 160ms ease;
}
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: .38; cursor: default; transform: none; box-shadow: none; }
.btn .ic { width: 18px; height: 18px; }
.btn-2 { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-1); }
.btn-danger { background: var(--surface); color: var(--bad); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--bad) 36%, var(--surface)); }
.btn-danger-solid { background: var(--bad); color: oklch(99% 0.003 27); }
.btn-ghost { background: transparent; color: var(--text-2); box-shadow: none; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 14px; gap: 6px; border-radius: 9px; }
.btn-sm .ic { width: 16px; height: 16px; }
.btn-block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-ctl); border: 0; background: transparent; color: var(--text-3); cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, transform 140ms var(--ease-out); }
.icon-btn:active { transform: scale(0.92); }
.icon-btn[aria-expanded="true"] { color: var(--brand); background: var(--brand-soft); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--ink-hover); text-decoration: none; }
  .btn-2:hover { background: var(--surface-2); }
  .btn-danger:hover { background: var(--bad-soft); }
  .btn-danger-solid:hover { background: color-mix(in oklch, var(--bad) 88%, black); }
  .btn-ghost:hover { background: var(--surface-2); color: var(--text); }
  .icon-btn:hover { background: var(--surface-2); color: var(--text); }
}
@media (pointer: coarse) {                                  /* 손가락: 누르는 곳 44px 이상 */
  .btn-sm { min-height: 44px; }
  .icon-btn { width: 44px; height: 44px; }
}
.busy { position: relative; color: transparent !important; pointer-events: none; }
.busy .ic { opacity: 0; }
.busy::after { content: ''; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; border-radius: 50%; border: 2px solid; border-color: var(--on-ink) var(--on-ink) transparent transparent; animation: spin .6s linear infinite; }
.btn-2.busy::after, .btn-danger.busy::after, .btn-ghost.busy::after { border-color: var(--text-2) var(--text-2) transparent transparent; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 거르기 칩 ---------- */
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 99px; border: 0; cursor: pointer;
  background: var(--surface); color: var(--text-2); font-size: 14px; font-weight: 580; box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 140ms var(--ease-out); }
.chip:active { transform: scale(.96); }
.chip .n { color: var(--text-3); font-weight: 550; font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.chip[aria-pressed="true"] .n { color: color-mix(in oklch, var(--on-ink) 65%, transparent); }
@media (pointer: coarse) { .chip, .chipset .chip { height: auto; min-height: 44px; } }
@media (min-width: 960px) { .chips { margin: 0; padding: 0; } }

/* ---------- 알림 띠 ---------- */
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-box); font-size: 14px; margin: 10px 0; background: var(--run-soft); color: var(--text); }
.notice .ic { color: var(--run-text); margin-top: 1px; }
.notice.bad { background: var(--bad-soft); }
.notice.bad .ic { color: var(--bad); }
.notice.info { background: var(--brand-soft); }
.notice.info .ic { color: var(--brand); }
.notice p { margin: 0; }
.notice .why { display: block; color: var(--text-2); font-size: 13px; margin-top: 2px; word-break: break-word; }

/* ---------- 목록 ---------- */
.list { background: var(--surface); border-radius: var(--r-box); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); overflow: hidden; }
.list > * + * { box-shadow: inset 0 1px 0 var(--line); }

.job { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 2px 12px; padding: 14px 14px 14px 14px; position: relative;
  transition: background-color 160ms ease, opacity 200ms ease; }
.job-mark { grid-row: 1 / span 2; position: relative; width: 20px; height: 20px; margin-top: 1px; }
.job-mark > * { position: absolute; inset: 0; transition: transform 220ms var(--ease-out), opacity 180ms ease; }
.job-link { color: var(--text); font-weight: 620; font-size: 15.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -0.02em; width: fit-content; max-width: 100%; }
.job-link:hover { text-decoration: none; }
.job-link::after { content: ''; position: absolute; inset: 0; }
.job-link:focus-visible { outline: none; }
.job-link:focus-visible::after { outline: 2px solid var(--brand); outline-offset: -3px; border-radius: var(--r-box); }
.job-side { text-align: right; font-size: 14px; font-weight: 550; color: var(--text-2); white-space: nowrap; align-self: start; padding-top: 1px; }
.job-side.pct { color: var(--run-text); font-weight: 650; }
.job-meta { grid-column: 2 / span 2; font-size: 13px; color: var(--text-2); display: flex; gap: 2px 8px; align-items: center; min-width: 0; }
.job-meta .sum { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-meta .when { margin-left: auto; color: var(--text-3); white-space: nowrap; padding-left: 8px; }
.kind { flex: none; display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11.5px; font-weight: 650; letter-spacing: 0;
  background: var(--surface-2); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line); }
.kind.make { background: var(--brand-soft); color: var(--brand); box-shadow: none; }
.job-run { grid-column: 2 / span 2; margin-top: 10px; display: block; }
.job-stage { font-size: 13px; color: var(--text-2); margin-top: 8px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.job-err { grid-column: 2 / span 2; font-size: 13px; color: var(--bad); margin-top: 3px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.job-actions { grid-column: 2 / span 2; display: flex; gap: 8px; margin-top: 10px; position: relative; z-index: 1; }
@media (hover: hover) and (pointer: fine) { .job:hover { background: var(--surface-2); } }
/* 넓은 화면의 작업 줄 = 칸 맞춤: 글리프 · 이름 · 종류·요약·시각 · %/요금, 진행 막대·단계·버튼은 아래 줄 */
@media (min-width: 960px) {
  .job { grid-template-columns: 20px minmax(160px, 1fr) minmax(0, 1.7fr) 96px; align-items: center; column-gap: 16px; row-gap: 0; padding: 12px 16px; }
  .job-mark { grid-row: 1; margin-top: 0; }
  .job-link { grid-column: 2; grid-row: 1; }
  .job-meta { grid-column: 3; grid-row: 1; }
  .job-side { grid-column: 4; grid-row: 1; padding-top: 0; align-self: center; }
  .job-run { grid-column: 2 / span 2; grid-row: 2; margin-top: 8px; }
  .job-err { grid-column: 2 / span 2; grid-row: 2; margin-top: 4px; }
  .job-actions { grid-column: 4; grid-row: 2; justify-content: flex-end; margin-top: 8px; }
  .job-stage { margin-top: 6px; }
}
@media (min-width: 960px) and (hover: hover) and (pointer: fine) {        /* 버튼은 올리거나 초점이 갈 때만 — 숨은 동안엔 누를 수도 없음 */
  .job-actions { visibility: hidden; opacity: 0; transition: opacity 160ms ease, visibility 0s linear 160ms; }
  .job:hover .job-actions, .job:focus-within .job-actions { visibility: visible; opacity: 1; transition: opacity 160ms ease, visibility 0s; }
  .job:not(:has(.job-run, .job-err)) .job-actions { grid-row: 1; margin-top: 0; }          /* 아래 줄이 없는 줄은 높이를 늘리지 않고 오른쪽 칸에 겹침 */
  .job:not(:has(.job-run, .job-err)):is(:hover, :focus-within) .job-side { visibility: hidden; }
}
.st-running { color: var(--run-text); } .st-done { color: var(--ok); } .st-kept { color: var(--kept); }
.st-failed { color: var(--bad); } .st-stopping { color: var(--run-text); } .st-stopped, .st-queued { color: var(--text-2); }

/* 선택 모드: 상태 글리프 자리에 체크 상자 (자리는 그대로 — 줄이 흔들리지 않게) */
.chk { display: grid; place-items: center; opacity: 0; transform: scale(.6); pointer-events: none; }
.chk i { width: 20px; height: 20px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--line-strong); background: var(--surface); display: grid; place-items: center;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms var(--ease-out); }
.chk svg { width: 14px; height: 14px; fill: none; stroke: var(--on-brand); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset 220ms var(--ease-out) 40ms; }
.selmode .job-mark .glyph, .selmode .pick .lead { opacity: 0; transform: scale(.6); }
.selmode .chk { opacity: 1; transform: none; pointer-events: auto; }
.selmode .job.sel, .selmode .pick.sel { background: color-mix(in oklch, var(--brand-soft) 70%, var(--surface)); }
.sel .chk i { background: var(--brand); box-shadow: none; animation: pop 220ms var(--ease-out); }
.sel .chk svg { stroke-dashoffset: 0; }
.selmode .job.locked { opacity: .45; }
.selmode .job.locked .chk { opacity: .35; }
.selmode .job-actions { display: none; }
@keyframes pop { 0% { transform: scale(.82); } 60% { transform: scale(1.06); } 100% { transform: none; } }

.bulk { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; padding: 10px 12px calc(10px + var(--safe-b));
  display: flex; align-items: center; gap: 8px; background: var(--surface); box-shadow: 0 -1px 0 var(--line), var(--shadow-3);
  transform: translateY(110%); visibility: hidden; transition: transform 320ms var(--ease-drawer), visibility 0s linear 320ms; }
.bulk.show { transform: none; visibility: visible; transition: transform 320ms var(--ease-drawer), visibility 0s; }
.bulk .what { flex: 1; min-width: 0; font-size: 14px; color: var(--text-2); padding-left: 4px; }
.bulk .what b { color: var(--text); font-weight: 650; font-size: 16px; margin-right: 2px; }
@media (min-width: 960px) {
  .bulk { left: calc(var(--side-w) + 40px); right: auto; width: min(560px, calc(100vw - var(--side-w) - 80px)); bottom: 20px; border-radius: 16px; padding: 10px; transform: translateY(160%); }
}

/* Linear 식 상태 글리프 — 실제 상태만 (진행 = 진행률만큼 채워지는 파이) */
.glyph { display: block; width: 20px; height: 20px; color: var(--idle); }
.glyph svg { display: block; width: 20px; height: 20px; overflow: visible; }
.glyph.running, .glyph.stopping { color: var(--run); }
.glyph.done { color: var(--ok); } .glyph.kept { color: var(--kept); } .glyph.failed { color: var(--bad); }
.glyph .pie { transition: stroke-dasharray 600ms var(--ease-out); }
.glyph.running .halo { transform-origin: 10px 10px; animation: halo 2.2s var(--ease-out) infinite; }
@keyframes halo { 0% { transform: scale(.7); opacity: .45; } 70%, 100% { transform: scale(1.45); opacity: 0; } }

/* 작은 상태 점 (위 막대) */
.dot { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--idle); position: relative; flex: none; }
.dot.running { background: var(--run); }
.dot.running::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; background: var(--run); opacity: 0; animation: ping 2s var(--ease-out) infinite; }
.dot.queued { background: transparent; box-shadow: inset 0 0 0 1.5px var(--text-3); }
.dot.ok { background: var(--ok); }
@keyframes ping { 0% { transform: scale(.5); opacity: .4; } 70%, 100% { transform: scale(1.7); opacity: 0; } }

.pill { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px 0 8px; border-radius: 99px; font-size: 12.5px; font-weight: 650; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.pill .glyph, .pill .glyph svg { width: 16px; height: 16px; }
.pill.running, .pill.stopping { background: var(--run-soft); color: var(--run-text); }
.pill.done { background: var(--ok-soft); color: var(--ok); }
.pill.kept { background: var(--kept-soft); color: var(--kept); }
.pill.failed { background: var(--bad-soft); color: var(--bad); }

/* 45칸 진행 막대 — 퀼트 45뷰를 칸으로. 채움은 브랜드 색, 진행 중이면 빛이 흘러감 */
.views-bar { display: block; position: relative; height: 8px; border-radius: 2px; background: var(--surface-3); overflow: hidden;
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 calc(100% / 45 - 2px), transparent calc(100% / 45 - 2px) calc(100% / 45));
  mask: repeating-linear-gradient(90deg, #000 0 calc(100% / 45 - 2px), transparent calc(100% / 45 - 2px) calc(100% / 45)); }
.views-bar i { position: absolute; inset: 0; background: var(--brand); transform-origin: left center; transform: scaleX(var(--w, 0)); transition: transform 700ms var(--ease-out); }
.views-bar.running i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 0, oklch(100% 0 0 / .55) 50%, transparent 100%);
  background-size: 30% 100%; background-repeat: no-repeat; animation: flow 2.4s linear infinite; mix-blend-mode: soft-light; }
.views-bar.stopping i { background: var(--run); }
.views-bar.big { height: 14px; border-radius: 3px; }
.views-bar.indet i { transform: none; background: linear-gradient(90deg, transparent, var(--brand-line), transparent); background-size: 40% 100%; background-repeat: no-repeat; animation: flow 1.8s var(--ease-in-out) infinite; }
@keyframes flow { from { background-position: -40% 0; } to { background-position: 140% 0; } }

.empty { text-align: center; padding: 48px 22px; }
.empty .ic { width: 32px; height: 32px; color: var(--text-3); margin-bottom: 10px; }
.empty h3 { margin: 0 0 6px; font-size: 17px; font-weight: 650; letter-spacing: -0.03em; }
.empty p { margin: 0 auto 18px; color: var(--text-2); max-width: 30em; font-size: 14.5px; text-wrap: pretty; }
.more { display: block; width: 100%; min-height: 48px; text-align: center; color: var(--text-2); font-weight: 600; font-size: 14px; background: none; border: 0; cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .more:hover { color: var(--text); background: var(--surface-2); } }

/* 목록 첫 등장: 아래에서 살짝 올라오며 엇갈림 (한 번만, 3초마다 새로 그릴 때는 없음) */
.rise > * { animation: rise 420ms var(--ease-out) both; animation-delay: calc(min(var(--i, 0), 9) * 28ms); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.enter { animation: flash 1400ms ease-out; }
@keyframes flash { from { background-color: var(--brand-soft); } }

/* ---------- 작업 자세히 ---------- */
.detail-head { margin: 6px 0 16px; }
.detail-title { display: flex; gap: 12px; align-items: flex-start; }
.detail-title .glyph, .detail-title .glyph svg { width: 26px; height: 26px; flex: none; margin-top: 3px; }
.detail-text { min-width: 0; }
.detail-head h1 { margin: 0 0 6px; font-size: 23px; line-height: 1.3; font-weight: 680; letter-spacing: -0.04em; word-break: break-all; }
.detail-head .sub { color: var(--text-2); font-size: 13.5px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.detail-head .sub > span { display: inline-flex; align-items: center; gap: 5px; }
.detail-head .sub .ic { width: 15px; height: 15px; color: var(--text-3); }
.status-card { background: var(--surface); border-radius: var(--r-box); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-2); padding: 16px; }
.status-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.status-top .big { margin-left: auto; font-size: 32px; font-weight: 680; letter-spacing: -0.04em; line-height: 1; }
.status-top .big small { font-size: .55em; color: var(--text-3); margin-left: 1px; }
.status-text { margin: 12px 0 0; font-size: 14.5px; color: var(--text); word-break: break-word; }
.status-err { margin: 10px 0 0; padding: 10px 12px; background: var(--bad-soft); border-radius: var(--r-ctl); font: 12.5px/1.55 var(--mono); word-break: break-word; white-space: pre-wrap; max-height: 240px; overflow: auto; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: var(--r-box); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; margin: 12px 0 0; padding: 1px; }
.fact { background: var(--surface); padding: 11px 14px; min-width: 0; }
.fact dt { font-size: 12.5px; color: var(--text-3); font-weight: 550; }
.fact dd { margin: 2px 0 0; font-size: 15px; font-weight: 620; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -0.015em; }
@media (min-width: 600px) { .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* 탭·나눔 단추: 선택 표시가 미끄러짐 */
.tabs, .seg { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: calc(var(--r-ctl) + 4px); box-shadow: inset 0 0 0 1px var(--line); }
.tabs { margin: 22px 0 12px; }
.tabs button, .seg button { position: relative; z-index: 1; display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 38px; padding: 0 8px;
  border: 0; border-radius: var(--r-ctl); background: transparent; color: var(--text-2); font-weight: 620; font-size: 14px; cursor: pointer; transition: color 180ms ease; }
.tabs button[aria-selected="true"], .seg button[aria-pressed="true"] { color: var(--text); }
.tabs button .ic, .seg button .ic { width: 17px; height: 17px; }
.thumb { position: absolute; z-index: 0; top: 4px; left: 0; height: calc(100% - 8px); width: 0; border-radius: var(--r-ctl); background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); transition: transform 300ms var(--ease-out), width 300ms var(--ease-out); pointer-events: none; }
.thumb.still { transition: none; }
@media (pointer: coarse) { .tabs button, .seg button { min-height: 44px; } }

.result-group + .result-group { margin-top: 18px; }
.result-group > h3 { font-size: 13.5px; color: var(--text-2); font-weight: 650; margin: 0 2px 8px; display: flex; gap: 8px; align-items: baseline; }
.figure { margin: 0 0 12px; background: var(--surface); border-radius: var(--r-box); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); overflow: hidden; }
.figure button.zoom { display: block; width: 100%; padding: 0; border: 0; background: var(--surface-2); cursor: zoom-in; }
.figure img { display: block; width: 100%; height: auto; }
.figure video { display: block; width: 100%; max-height: 70vh; background: oklch(12% 0.005 277); }
.figure figcaption { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; font-size: 13.5px; box-shadow: inset 0 1px 0 var(--line); }
.figure figcaption .name { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.figure figcaption .size { color: var(--text-3); margin-left: auto; white-space: nowrap; }
.textfile pre { margin: 0; padding: 12px 14px; max-height: 340px; overflow: auto; font: 12.5px/1.6 var(--mono); white-space: pre-wrap; word-break: break-word; background: var(--surface-2); }
.file-row { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 14px; color: var(--text); font-size: 14px; }
.file-row:hover { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { a.file-row:hover { background: var(--surface-2); } }
.file-row .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-row .size { color: var(--text-3); font-size: 13px; white-space: nowrap; }
.file-row .ic { color: var(--text-3); }
.list.flat { border-radius: 0; box-shadow: inset 0 1px 0 var(--line); }
.hint.pad { padding: 0 14px 14px; margin-top: 10px; }
.optlist { margin: 0; }
.optlist > div { display: flex; gap: 12px; justify-content: space-between; padding: 10px 14px; font-size: 14px; }
.optlist dt { color: var(--text-2); }
.optlist dd { margin: 0; font-weight: 600; text-align: right; min-width: 0; word-break: break-word; }

.log-box { background: var(--surface); border-radius: var(--r-box); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); overflow: hidden; }
.log-tools { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; box-shadow: inset 0 -1px 0 var(--line); font-size: 13px; color: var(--text-2); }
.log-tools .sp { flex: 1; }
.log { margin: 0; padding: 12px 14px; height: min(62vh, 640px); overflow: auto; font: 12px/1.65 var(--mono); white-space: pre-wrap; word-break: break-word; color: var(--text-2); background: var(--surface); }
.log .l-bad { color: var(--bad); font-weight: 600; }
.log .l-warn { color: var(--run-text); }
.log .l-ok { color: var(--ok); }
.log .l-t { color: var(--text-3); }

/* ---------- 입력 고르기 (만들기·테스트 같이) ---------- */
.card { background: var(--surface); border-radius: var(--r-box); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); }
.block { margin-top: 12px; }
.pick { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding: 12px 6px 12px 14px; position: relative; transition: background-color 160ms ease; }
.pick input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.pick .lead { grid-row: 1 / span 2; grid-column: 1; position: relative; width: 20px; height: 20px; transition: transform 220ms var(--ease-out), opacity 180ms ease; }
.pick .chk { grid-row: 1 / span 2; grid-column: 1; position: relative; z-index: 1; }
.radio { display: block; width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-strong); transition: box-shadow 200ms var(--ease-out); }
.pick:has(input:checked) { background: var(--brand-soft); }
.pick:has(input:checked) .radio { box-shadow: inset 0 0 0 6px var(--brand); }
.pick:has(input:focus-visible) .radio { outline: 2px solid var(--brand); outline-offset: 2px; }
.pick .name { font-weight: 600; font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -0.015em; }
.pick .meta { grid-column: 2; font-size: 12.5px; color: var(--text-2); display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: center; }
.pick .end { grid-row: 1 / span 2; grid-column: 3; display: flex; align-items: center; }
.selmode .pick .end { visibility: hidden; }
@media (hover: hover) and (pointer: fine) { .pick:hover { background: var(--surface-2); } .pick:has(input:checked):hover { background: var(--brand-soft); } }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11.5px; font-weight: 650; background: var(--surface-3); color: var(--text-2); }
.tag.portrait { background: var(--brand-soft); color: var(--brand); }
.pick:has(input:checked) .tag { background: var(--surface); }
.drop { display: grid; place-items: center; gap: 8px; text-align: center; padding: 30px 18px; border-radius: var(--r-box); background: var(--surface); color: var(--text-2); cursor: pointer;
  box-shadow: inset 0 0 0 1.5px var(--line-strong); background-image: none; transition: box-shadow 160ms ease, background-color 160ms ease; }
.drop.over { box-shadow: inset 0 0 0 2px var(--brand); background: var(--brand-soft); color: var(--text); }
@media (hover: hover) and (pointer: fine) { .drop:hover { box-shadow: inset 0 0 0 1.5px var(--brand); color: var(--text); } }
.drop .ic { width: 28px; height: 28px; color: var(--text); }
.drop b { color: var(--text); font-size: 15.5px; font-weight: 620; }
.up-progress { margin-top: 12px; }
.up-progress .row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.bar { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--brand); border-radius: 99px; transform-origin: left center; transform: scaleX(var(--w, 0)); transition: transform 400ms var(--ease-out); }
.ts-row { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 10px 10px 14px; }
.ts-row > .ic { color: var(--text-3); }
.ts-row .info { flex: 1; min-width: 0; }
.ts-row .name { font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ts-row .meta { font-size: 12.5px; color: var(--text-2); display: flex; gap: 2px 10px; align-items: center; flex-wrap: wrap; margin-top: 3px; }
.mode-help { font-size: 13.5px; color: var(--text-2); margin: 8px 2px 0; }
.estimate { margin-top: 12px; padding: 12px 14px; border-radius: var(--r-box); background: var(--surface-2); font-size: 13.5px; color: var(--text-2); white-space: pre-wrap; }
.fixed { margin-top: 12px; }

/* ---------- 만들기 옵션 ---------- */
.opt-group { margin-top: 12px; }
.opt { padding: 14px; }
.opt + .opt { box-shadow: inset 0 1px 0 var(--line); }
.opt-head { display: flex; align-items: center; gap: 8px; min-height: 28px; }
.opt-head b { font-size: 14.5px; font-weight: 650; letter-spacing: -0.015em; }
.opt-head .val { margin-left: auto; font-size: 14.5px; font-weight: 650; color: var(--text); }
.opt-head .icon-btn { margin: -6px -6px -6px 0; }
.opt-head .icon-btn .ic { width: 18px; height: 18px; }
.opt-sub { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.help { overflow: hidden; display: grid; grid-template-rows: 0fr; transition: grid-template-rows 260ms var(--ease-out); }
.help > div { min-height: 0; }
.help.open { grid-template-rows: 1fr; }
.help p { margin: 8px 0 0; padding: 10px 12px; border-radius: var(--r-ctl); background: var(--surface-2); font-size: 13px; line-height: 1.6; color: var(--text-2); white-space: pre-wrap; }
.choices { display: grid; gap: 6px; margin-top: 10px; }
.choice { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 1px 10px; align-items: start; padding: 10px 12px; border-radius: var(--r-ctl); cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line); transition: background-color 160ms ease, box-shadow 160ms ease; position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .radio { grid-row: 1 / span 2; margin-top: 1px; }
.choice b { font-weight: 620; font-size: 14.5px; letter-spacing: -0.015em; }
.choice small { grid-column: 2; font-size: 12.5px; color: var(--text-2); line-height: 1.45; }
.choice .end { position: absolute; right: 12px; top: 10px; font-size: 13px; color: var(--text-2); font-weight: 600; }
.choice:has(input:checked) { box-shadow: inset 0 0 0 1.5px var(--brand); background: var(--brand-soft); }
.choice:has(input:checked) .radio { box-shadow: inset 0 0 0 6px var(--brand); }
.choice:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.choice.off { opacity: .5; }
@media (hover: hover) and (pointer: fine) { .choice:hover { background: var(--surface-2); } .choice:has(input:checked):hover { background: var(--brand-soft); } }
.chipset { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chipset .chip { height: 36px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.mini label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-2); margin: 0 2px 5px; }
.range { width: 100%; margin: 14px 0 4px; height: 28px; background: transparent; -webkit-appearance: none; appearance: none; --p: 50%; }
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--brand) var(--p), var(--surface-3) var(--p)); }
.range::-moz-range-track { height: 6px; border-radius: 99px; background: var(--surface-3); }
.range::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--brand); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: oklch(99.5% 0.002 277); border: 0;
  box-shadow: 0 0 0 1px oklch(0% 0 0 / .08), 0 2px 6px oklch(0% 0 0 / .18); transition: transform 160ms var(--ease-out); }
.range::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: oklch(99.5% 0.002 277); border: 0; box-shadow: 0 0 0 1px oklch(0% 0 0 / .08), 0 2px 6px oklch(0% 0 0 / .18); }
.range:active::-webkit-slider-thumb { transform: scale(1.12); }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--brand-soft), 0 0 0 1px var(--brand); }
.range-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); }
.gpu { grid-template-columns: 20px minmax(0, 1fr) auto; }
.gpu .price { grid-row: 1 / span 2; grid-column: 3; text-align: right; font-size: 14px; font-weight: 650; }
.gpu .price small { display: block; font-size: 12px; font-weight: 500; color: var(--text-3); }
.more-row { justify-self: start; }
.stock { font-weight: 600; }
.stock.hi { color: var(--ok); } .stock.lo { color: var(--run-text); } .stock.none { color: var(--bad); }
.toggle-row { display: flex; align-items: center; gap: 12px; }
.toggle-row .lbl { flex: 1; min-width: 0; }
.toggle-row.gap-top { margin-top: 8px; }
.opt-sub.pre { margin: 0; white-space: pre-wrap; }
.gpu-skel { height: 120px; margin-top: 10px; }
.toggle-row .lbl b { display: block; font-size: 14.5px; font-weight: 620; letter-spacing: -0.015em; }
.toggle-row .lbl small { display: block; font-size: 12.5px; color: var(--text-2); }
textarea.input { min-height: 84px; padding: 10px 14px; resize: vertical; line-height: 1.5; }

/* 펼침 묶음 (품질·실험) — 높이가 부드럽게 (지원 브라우저만, 아니면 바로) */
details.fold { interpolate-size: allow-keywords; }
details.fold::details-content { height: 0; overflow: clip; transition: height 280ms var(--ease-out), content-visibility 280ms allow-discrete; }
details.fold[open]::details-content { height: auto; }
details.fold summary { list-style: none; display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 14px; font-weight: 650; font-size: 14.5px; letter-spacing: -0.015em; }
details.fold summary small { font-weight: 500; color: var(--text-3); font-size: 13px; }
details.fold summary::-webkit-details-marker { display: none; }
details.fold summary .ic { margin-left: auto; color: var(--text-3); transition: transform 240ms var(--ease-out); }
details.fold[open] > summary .ic { transform: rotate(90deg); }
details.fold > .opt:first-of-type, details.fold > div:first-of-type { box-shadow: inset 0 1px 0 var(--line); }

/* 아래 고정: 예상 + 추가 버튼 */
.dock {                                                    /* 아래 탭 바로 위에 붙은 한 덩어리 (사이로 글이 비치지 않게 불투명) */
  position: sticky; bottom: calc(var(--tab-h) + var(--safe-b)); z-index: 10; margin: 18px -16px 0;
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px 16px 0 0;
  background: var(--surface); box-shadow: 0 -1px 0 var(--line), 0 -12px 24px -12px oklch(25% 0.02 277 / .12);
}
.dock .what { flex: 1; min-width: 0; font-size: 13px; color: var(--text-2); line-height: 1.35; }
.dock .what b { display: block; color: var(--text); font-size: 15px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -0.02em; }
.dock .what .calc { opacity: .55; transition: opacity 200ms ease; }
.dock .what span.tip { display: block; color: var(--brand); }
@media (min-width: 960px) { .dock { bottom: 16px; margin: 18px 0 0; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-3); } }

/* ---------- 설정 ---------- */
.group { background: var(--surface); border-radius: var(--r-box); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); overflow: hidden; }
.group > * + * { box-shadow: inset 0 1px 0 var(--line); }
.row-set { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 56px; }
.row-set .lbl { flex: 1; min-width: 0; }
.row-set .lbl b { display: block; font-weight: 620; font-size: 14.5px; letter-spacing: -0.015em; }
.row-set .lbl small { display: block; color: var(--text-2); font-size: 12.5px; margin-top: 1px; word-break: break-word; }
.row-set .val { color: var(--text-2); font-size: 14px; text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 55%; }
.row-col { padding: 13px 14px; }
.row-col .lbl b { display: block; font-weight: 620; font-size: 14.5px; margin-bottom: 8px; }
.stepper { display: inline-flex; align-items: center; border-radius: var(--r-ctl); box-shadow: inset 0 0 0 1px var(--line-strong); overflow: hidden; background: var(--surface); }
.stepper button { width: 42px; height: 38px; border: 0; background: transparent; cursor: pointer; font-size: 18px; color: var(--text); transition: background-color 150ms ease, transform 120ms var(--ease-out); }
.stepper button:active { background: var(--surface-2); transform: scale(.94); }
.stepper button[disabled] { color: var(--text-3); cursor: default; transform: none; }
.stepper output { min-width: 32px; text-align: center; font-weight: 650; }
@media (pointer: coarse) { .stepper button { height: 44px; width: 46px; } }
.switch { position: relative; width: 48px; height: 28px; flex: none; }
.switch input { position: absolute; inset: -8px; width: calc(100% + 16px); height: calc(100% + 16px); opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line); transition: background-color 220ms ease; }
.switch span::after { content: ''; position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%; background: oklch(99.5% 0.001 277);
  box-shadow: 0 1px 2px oklch(0% 0 0 / .2), 0 2px 6px oklch(0% 0 0 / .08); transition: transform 260ms var(--ease-out), width 160ms var(--ease-out); }
.switch input:active + span::after { width: 28px; }
.switch input:checked + span { background: var(--brand); box-shadow: none; }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:checked:active + span::after { transform: translateX(16px); }
.switch input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.field { display: block; }
.field + .field { margin-top: 12px; }
.field label, .field .lab { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin: 0 2px 6px; }
.input, select.input {
  width: 100%; min-height: 46px; padding: 0 14px; border-radius: var(--r-ctl); border: 0; box-shadow: inset 0 0 0 1px var(--line-strong);
  background: var(--surface); font-size: 16px; transition: box-shadow 160ms ease; appearance: none; -webkit-appearance: none;
}
select.input { background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--brand), 0 0 0 3px var(--brand-soft); }
.input::placeholder { color: var(--text-3); }
.inline { display: flex; gap: 8px; }
.inline .input { flex: 1; min-width: 0; }
.hint { font-size: 12.5px; color: var(--text-2); margin: 6px 2px 0; }
.hint.flush { margin-top: 0; }
.field.gap-top { margin-top: 12px; }
.inline.gap-top { margin-top: 10px; }
.steps a { font-weight: 600; }
.err { font-size: 13.5px; color: var(--bad); margin: 10px 2px 0; min-height: 1em; }
.cmd { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding: 6px 6px 6px 12px; border-radius: var(--r-ctl); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.cmd code { flex: 1; min-width: 0; font: 12.5px/1.5 var(--mono); overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.steps { margin: 10px 0 0; padding-left: 20px; font-size: 13px; color: var(--text-2); }
.steps li + li { margin-top: 3px; }
.events { margin: 0; max-height: 320px; overflow: auto; padding: 12px 14px; font: 12px/1.6 var(--mono); white-space: pre-wrap; word-break: break-word; color: var(--text-2); background: var(--surface-2); }

/* ---------- 로그인·처음 설정 ---------- */
.gate { min-height: calc(100dvh - var(--top-h) - 60px); display: grid; place-items: center; padding: 20px 0; }
.gate-card { width: 100%; max-width: 420px; background: var(--surface); border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-3); padding: 28px 22px; animation: rise 500ms var(--ease-out) both; }
.gate-card h1 { margin: 0 0 6px; font-size: 24px; font-weight: 680; letter-spacing: -0.04em; }
.gate-card > p { margin: 0 0 20px; color: var(--text-2); font-size: 14.5px; }
body.gated .nav, body.gated .bulk { display: none; }
body.gated .view { padding-bottom: 32px; }
@media (min-width: 960px) { body.gated .app { grid-template-columns: 1fr; } body.gated .topbar { display: flex; } body.gated .view { margin: 0 auto; } }

/* ---------- 알림·시트·뷰어 ---------- */
.toasts { position: fixed; z-index: 60; left: 50%; transform: translateX(-50%); bottom: calc(var(--tab-h) + var(--safe-b) + 14px); display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-box); background: var(--ink); color: var(--on-ink); font-size: 14px; font-weight: 560;
  box-shadow: var(--shadow-3); pointer-events: auto; transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out), filter 260ms var(--ease-out); }
@starting-style { .toast { opacity: 0; transform: translateY(12px) scale(.98); filter: blur(4px); } }
.toast.out { opacity: 0; transform: translateY(6px) scale(.98); filter: blur(2px); transition-duration: 160ms; }
.toast.bad { background: var(--bad); color: oklch(99% 0.003 27); }
.toast .ic { width: 18px; height: 18px; margin-top: 1px; }
body.selecting .toasts { bottom: calc(76px + var(--safe-b)); }
@media (min-width: 960px) { .toasts { bottom: 24px; left: calc(50% + var(--side-w) / 2); } }

.sheet { border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 520px; max-height: 88dvh; background: var(--surface); color: var(--text);
  border-radius: 18px 18px 0 0; box-shadow: var(--shadow-3); overflow: auto;
  transform: translateY(100%); transition: transform 360ms var(--ease-drawer), overlay 360ms allow-discrete, display 360ms allow-discrete; }
.sheet[open] { transform: none; }
@starting-style { .sheet[open] { transform: translateY(100%); } }
.sheet::backdrop { background: oklch(14% 0.01 277 / 0); transition: background-color 300ms ease, overlay 300ms allow-discrete, display 300ms allow-discrete; }
.sheet[open]::backdrop { background: oklch(14% 0.01 277 / .5); }
@starting-style { .sheet[open]::backdrop { background: oklch(14% 0.01 277 / 0); } }
.sheet-grip { width: 36px; height: 4px; border-radius: 99px; background: var(--line-strong); margin: 8px auto 0; }
.sheet-body { padding: 18px 20px calc(18px + var(--safe-b)); }
.sheet-body h3 { margin: 0 0 6px; font-size: 18px; font-weight: 680; letter-spacing: -0.035em; }
.sheet-body p { margin: 0 0 18px; color: var(--text-2); font-size: 14.5px; white-space: pre-wrap; }
.sheet-actions { display: grid; gap: 8px; }
.sheet-actions [data-v="ok"] { order: -1; }
@media (min-width: 600px) {
  .sheet { margin: auto; border-radius: 16px; transform: scale(.96); opacity: 0; transition: transform 220ms var(--ease-out), opacity 180ms ease, overlay 220ms allow-discrete, display 220ms allow-discrete; }
  .sheet[open] { transform: none; opacity: 1; }
  @starting-style { .sheet[open] { transform: scale(.96); opacity: 0; } }
  .sheet-grip { display: none; }
  .sheet-actions { grid-auto-flow: column; grid-auto-columns: 1fr; }
  .sheet-actions [data-v="ok"] { order: 0; }
}

.viewer { position: fixed; inset: 0; z-index: 70; background: oklch(9% 0.005 277 / 0.96); overflow: auto; overscroll-behavior: contain; animation: fade-in 200ms ease both; }
.viewer img { display: block; max-width: none; margin: auto; }
.viewer.fit img { max-width: 100%; max-height: 100dvh; object-fit: contain; position: absolute; inset: 0; }
.viewer-bar { position: fixed; top: 0; left: 0; right: 0; display: flex; gap: 8px; justify-content: flex-end; padding: calc(10px + var(--safe-t)) 12px 10px; z-index: 1; }
.viewer-bar button, .viewer-bar a { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border-radius: var(--r-ctl); border: 0; background: oklch(26% 0.005 277 / 0.88); color: oklch(97% 0.002 277); font-weight: 600; font-size: 14px; cursor: pointer; }
.viewer-bar a:hover { text-decoration: none; }
@keyframes fade-in { from { opacity: 0; } }

.skeleton { border-radius: var(--r-box); background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.4s ease-in-out infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.job-skel { height: 82px; margin-bottom: 8px; }
.detail-skel { height: 230px; margin-top: 14px; }
.pick-skel { height: 168px; }

/* ---------- 화면 넘김 (View Transitions — 지원 브라우저만) ---------- */
::view-transition-group(*) { animation-duration: 300ms; animation-timing-function: var(--ease-out); }
::view-transition-old(main), ::view-transition-new(main) { animation-duration: 200ms; }
html[data-vt="tab"]::view-transition-old(main) { animation: vt-fade-out 120ms ease both; }
html[data-vt="tab"]::view-transition-new(main) { animation: vt-fade-in 220ms var(--ease-out) both; }
html[data-vt="push"]::view-transition-old(main) { animation: vt-push-out 240ms var(--ease-out) both; }
html[data-vt="push"]::view-transition-new(main) { animation: vt-push-in 300ms var(--ease-out) both; }
html[data-vt="pop"]::view-transition-old(main) { animation: vt-pop-out 200ms var(--ease-out) both; }
html[data-vt="pop"]::view-transition-new(main) { animation: vt-pop-in 280ms var(--ease-out) both; }
::view-transition-group(vt-title), ::view-transition-group(vt-bar), ::view-transition-group(vt-glyph) { animation-duration: 340ms; }
@keyframes vt-fade-out { to { opacity: 0; } }
@keyframes vt-fade-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes vt-push-out { to { opacity: 0; transform: translateX(-24px); } }
@keyframes vt-push-in { from { opacity: 0; transform: translateX(28px); } }
@keyframes vt-pop-out { to { opacity: 0; transform: translateX(28px); } }
@keyframes vt-pop-in { from { opacity: 0; transform: translateX(-20px); } }

/* 움직임 줄이기: 위치 움직임은 없애고, 상태를 알리는 색·투명도만 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-property: opacity, color, background-color, box-shadow !important; transition-duration: 120ms !important; }
  .btn:active, .icon-btn:active, .chip:active { transform: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
