/* Toolulah Upload — Commercial Studio Standard (Dark / Light)
   외부 CDN 없음(CSP default-src 'self'), 인라인 style 속성 없음. 글꼴은 /static/fonts/pretendard/ 자체 호스팅(OFL).
   다크: prefers-color-scheme + [data-theme=dark|light](static/theme.js·site.js, localStorage "toolulah:theme"). */

/* ---------------------------------------------------------------- 토큰 */
:root {
  color-scheme: light;
  --bg: #e9edf4;
  --surface: #ffffff;
  --surface-2: #f6f8fc;
  --surface-3: #f1f5f9;
  --surface-hover: #e6ebf3;
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #526075;
  --line: #c8d1de;
  --line-2: #94a3b8;
  --frame: #c8d1de;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft: rgba(79, 70, 229, 0.10);
  --accent-ink: #4338ca;
  --accent-2: #0284c7;
  --on-accent: #ffffff;
  --ok: #047857; --ok-soft: #dcfce7; --ok-border: rgba(16, 185, 129, 0.36); --ok-dot: #10b981;
  --warn: #b45309; --warn-soft: rgba(245, 158, 11, 0.14); --warn-border: rgba(245, 158, 11, 0.38); --warn-dot: #f59e0b;
  --err: #dc2626; --err-soft: rgba(220, 38, 38, 0.12); --err-border: rgba(220, 38, 38, 0.36); --err-dot: #ef4444;
  --busy: #0284c7; --busy-soft: rgba(2, 132, 199, 0.12); --busy-border: rgba(2, 132, 199, 0.34); --busy-dot: #0ea5e9;
  --sleep: #475569; --sleep-soft: rgba(100, 116, 139, 0.12); --sleep-border: rgba(100, 116, 139, 0.30); --sleep-dot: #94a3b8;
  --shadow-hard: 0 1px 2px rgba(15, 23, 42, 0.06), 0 6px 20px -8px rgba(15, 23, 42, 0.14);
  --shadow-soft: 0 1px 2px rgba(15, 23, 42, 0.05), 0 8px 24px -12px rgba(15, 23, 42, 0.14);
  --shadow-pop: 0 4px 12px rgba(15, 23, 42, 0.10), 0 16px 32px -12px rgba(15, 23, 42, 0.18);
  --focus: 0 0 0 3px rgba(79, 70, 229, 0.30);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", "D2Coding", ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --r-xl: 16px; --r-lg: 12px; --r: 10px; --r-sm: 7px;
  --gutter: 16px; --maxw: 1200px; --header-h: 56px;
}
:root:lang(ja) {
  --font: "Pretendard Latin", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) {
    color-scheme: dark;
    --bg: #080a0f;
    --surface: #121620;
    --surface-2: #181e2c;
    --surface-3: #0d111a;
    --surface-hover: #1e2638;
    --ink: #f1f5f9;
    --ink-2: #94a3b8;
    --ink-3: #64748b;
    --line: #263044;
    --line-2: #36435e;
    --frame: #36435e;
    --accent: #6366f1;
    --accent-hover: #818cf8;
    --accent-soft: rgba(99, 102, 241, 0.16);
    --accent-ink: #a5b4fc;
    --accent-2: #38bdf8;
    --on-accent: #ffffff;
    --ok: #34d399; --ok-soft: rgba(16, 185, 129, 0.14); --ok-border: rgba(16, 185, 129, 0.38); --ok-dot: #10b981;
    --warn: #fbbf24; --warn-soft: rgba(245, 158, 11, 0.14); --warn-border: rgba(245, 158, 11, 0.38); --warn-dot: #f59e0b;
    --err: #f87171; --err-soft: rgba(239, 68, 68, 0.15); --err-border: rgba(239, 68, 68, 0.44); --err-dot: #ef4444;
    --busy: #38bdf8; --busy-soft: rgba(56, 189, 248, 0.14); --busy-border: rgba(56, 189, 248, 0.36); --busy-dot: #0ea5e9;
    --sleep: #cbd5e1; --sleep-soft: rgba(148, 163, 184, 0.14); --sleep-border: rgba(148, 163, 184, 0.34); --sleep-dot: #94a3b8;
    --shadow-hard: 0 1px 2px rgba(0, 0, 0, 0.35), 0 8px 24px -10px rgba(0, 0, 0, 0.55);
    --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.30), 0 10px 28px -12px rgba(0, 0, 0, 0.50);
    --shadow-pop: 0 8px 24px rgba(0, 0, 0, 0.50), 0 20px 44px -14px rgba(0, 0, 0, 0.65);
    --focus: 0 0 0 3px rgba(99, 102, 241, 0.38);
  }
}
:root[data-theme=dark] {
  color-scheme: dark;
  --bg: #080a0f;
  --surface: #121620;
  --surface-2: #181e2c;
  --surface-3: #0d111a;
  --surface-hover: #1e2638;
  --ink: #f1f5f9;
  --ink-2: #94a3b8;
  --ink-3: #64748b;
  --line: #263044;
  --line-2: #36435e;
  --frame: #36435e;
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --accent-soft: rgba(99, 102, 241, 0.16);
  --accent-ink: #a5b4fc;
  --accent-2: #38bdf8;
  --on-accent: #ffffff;
  --ok: #34d399; --ok-soft: rgba(16, 185, 129, 0.14); --ok-border: rgba(16, 185, 129, 0.38); --ok-dot: #10b981;
  --warn: #fbbf24; --warn-soft: rgba(245, 158, 11, 0.14); --warn-border: rgba(245, 158, 11, 0.38); --warn-dot: #f59e0b;
  --err: #f87171; --err-soft: rgba(239, 68, 68, 0.15); --err-border: rgba(239, 68, 68, 0.44); --err-dot: #ef4444;
  --busy: #38bdf8; --busy-soft: rgba(56, 189, 248, 0.14); --busy-border: rgba(56, 189, 248, 0.36); --busy-dot: #0ea5e9;
  --sleep: #cbd5e1; --sleep-soft: rgba(148, 163, 184, 0.14); --sleep-border: rgba(148, 163, 184, 0.34); --sleep-dot: #94a3b8;
  --shadow-hard: 0 1px 2px rgba(0, 0, 0, 0.35), 0 8px 24px -10px rgba(0, 0, 0, 0.55);
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.30), 0 10px 28px -12px rgba(0, 0, 0, 0.50);
  --shadow-pop: 0 8px 24px rgba(0, 0, 0, 0.50), 0 20px 44px -14px rgba(0, 0, 0, 0.65);
  --focus: 0 0 0 3px rgba(99, 102, 241, 0.38);
}
@media (min-width: 768px) { :root { --gutter: 24px; } }
@media (max-width: 1023px) { :root { --header-h: 52px; } }

/* ---------------------------------------------------------------- 스크롤바 & 기본 */
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }

*, ::before, ::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; display: flex; flex-direction: column; overflow-x: hidden;
  font-family: var(--font); font-size: 15px; line-height: 1.6; color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased; font-feature-settings: "ss06"; overflow-wrap: anywhere;
}
:lang(ko) body, body:lang(ko) { word-break: keep-all; }
:lang(ja) body, body:lang(ja) { line-break: strict; }
img, svg { max-width: 100%; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.02em; }
p { margin: 0; }
code, kbd, pre, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
code { font-size: .85em; background: var(--surface-3); border: 1px solid var(--line); border-radius: 5px; padding: .1em .38em; }
svg.ic { width: 17px; height: 17px; flex-shrink: 0; }
svg.ic--xs { width: 14px; height: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: 0; left: 12px; z-index: 100; transform: translateY(-200%); background: var(--accent); color: var(--on-accent);
             border-radius: var(--r-sm); padding: 8px 12px; text-decoration: none; font-weight: 700; }
.skip-link:focus { transform: translateY(12px); }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
main { flex: 1; width: 100%; }
.label-mono { font-family: var(--mono); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.muted { color: var(--ink-3); }
.small { font-size: .84rem; }

/* ---------------------------------------------------------------- Studio 단일 커맨드 바 */
.site-header {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
}
.site-header .bar { height: var(--header-h); display: flex; align-items: center; gap: 12px; }
.brand {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; min-height: 36px;
  text-decoration: none; font-size: 1.06rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink);
}
.brand-mark { width: 24px; height: 24px; flex-shrink: 0; }
.brand-sub {
  font-size: .68rem; font-weight: 700; letter-spacing: .01em; padding: 2px 7px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink); border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent); line-height: 1.25;
}
.cmd-nav { display: flex; align-items: center; gap: 2px; margin-left: 10px; min-width: 0; }
.cmd-nav a {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 11px;
  border-radius: var(--r-sm); color: var(--ink-2); font-size: .88rem; font-weight: 650;
  text-decoration: none; white-space: nowrap; transition: background-color .12s, color .12s;
}
.cmd-nav a:hover { background: var(--surface-hover); color: var(--ink); }
.cmd-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; }
.cmd-nav a svg { width: 15px; height: 15px; }
.cmd-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  min-width: 34px; height: 34px; padding: 0 8px; border: 1px solid transparent; border-radius: var(--r-sm);
  background: none; color: var(--ink-2); font: inherit; font-size: .82rem; font-weight: 650;
  text-decoration: none; cursor: pointer; transition: background-color .12s, border-color .12s, color .12s;
}
.icon-btn:hover { background: var(--surface-hover); border-color: var(--line); color: var(--ink); }
.icon-btn svg { width: 16px; height: 16px; }
.nav-account-btn { max-width: 150px; }
.nav-user-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; }
.theme-icon-dark { display: none; }
:root[data-theme=dark] .theme-icon-dark { display: inline-flex; }
:root[data-theme=dark] .theme-icon-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) .theme-icon-dark { display: inline-flex; }
  :root:not([data-theme=light]) .theme-icon-light { display: none; }
}
.lang-menu > summary, .nav-create > summary, .nav-account > summary, .nav-mobile > summary { list-style: none; }
.lang-menu > summary::-webkit-details-marker,
.nav-create > summary::-webkit-details-marker,
.nav-account > summary::-webkit-details-marker,
.nav-mobile > summary::-webkit-details-marker { display: none; }
.nav-create .subnav-cta {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 38px; padding: 0 11px;
  border-radius: var(--r-sm); color: var(--ink); font-size: .88rem; font-weight: 650;
  text-decoration: none; white-space: nowrap; transition: background-color .12s, color .12s;
}
.nav-create .subnav-cta:hover { background: var(--surface-hover); }
.nav-create .subnav-cta[aria-current="page"] { background: var(--accent-soft); color: var(--accent-ink); }
.nav-create .subnav-cta svg { width: 16px; height: 16px; flex-shrink: 0; }
.lang-pop { min-width: 140px; }
.lang-pop a[aria-current="true"] { background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; }
.nav-mobile { display: none; }
.nav-mobile-pop { min-width: 224px; }
.test-strip { background: var(--warn-soft); color: var(--warn); border-top: 1px solid var(--warn-border); font-size: .82rem; font-weight: 600; }
.test-strip .container { display: flex; align-items: center; gap: 8px; padding-top: 6px; padding-bottom: 6px; }
.test-strip svg { width: 15px; height: 15px; }

@media (max-width: 1023px) {
  .cmd-nav, .nav-account { display: none; }
  .nav-mobile { display: block; }
  .site-header .bar { gap: 8px; }
}
@media (max-width: 640px) {
  .brand { font-size: 1rem; }
}
@media (max-width: 420px) {
  .cmd-actions .btn .btn-text { display: none; }
  .cmd-actions .btn { padding: 0 10px; }
}

/* ---------------------------------------------------------------- 버튼·칩·배지 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 15px;
  border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); color: var(--ink);
  font: inherit; font-size: .88rem; font-weight: 650; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color .12s, border-color .12s, color .12s;
}
.btn:hover { background: var(--surface-hover); border-color: var(--ink-3); }
.btn svg { width: 16px; height: 16px; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn--danger { background: var(--err); border-color: var(--err); color: #ffffff; }
.btn--danger:hover { filter: brightness(1.08); }
.btn--ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn--ghost:hover { background: var(--surface-hover); border-color: transparent; color: var(--ink); }
.btn--sm { height: 40px; padding: 0 12px; font-size: .82rem; }
.btn--lg { height: 44px; padding: 0 20px; font-size: .95rem; border-radius: 8px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .48; cursor: not-allowed; }
@media (max-width: 640px) {
  .hide-sm, .btn.hide-sm, .cmd-actions .hide-sm { display: none; }
}
.linkish {
  border: 0; padding: 0; background: none; color: var(--accent-ink); font: inherit; font-weight: 650;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); color: var(--ink-2);
  font-size: .83rem; font-weight: 600; text-decoration: none; transition: border-color .12s, background-color .12s, color .12s;
}
.chip svg { width: 14px; height: 14px; }
a.chip:hover { border-color: var(--accent); background: var(--surface-hover); color: var(--ink); }
.chip--on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px;
  white-space: nowrap; background: var(--ok-soft); border: 1px solid var(--ok-border); color: var(--ok);
  font-size: .75rem; font-weight: 650;
}
.badge svg { width: 13px; height: 13px; }
.badge--muted { background: var(--sleep-soft); border-color: var(--sleep-border); color: var(--sleep); }
.badge--warn { background: var(--warn-soft); border-color: var(--warn-border); color: var(--warn); }
.badge--err { background: var(--err-soft); border-color: var(--err-border); color: var(--err); }
.badge--accent { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 36%, transparent); color: var(--accent-ink); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }

/* 공개 범위(YouTube III.E.3.f: 분명하고 읽기 쉽게) */
.vis {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface-2); color: var(--ink);
  font-size: .78rem; font-weight: 700; white-space: nowrap;
}
.vis svg { width: 14px; height: 14px; }
.vis--public { background: var(--ok-soft); border-color: var(--ok-border); color: var(--ok); }
.vis--unlisted { background: var(--warn-soft); border-color: var(--warn-border); color: var(--warn); }
.vis--scheduled { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 38%, transparent); color: var(--accent-ink); }
.vis--big { height: 38px; padding: 0 15px; font-size: .98rem; border-width: 1.5px; }
.vis--big svg { width: 17px; height: 17px; }

/* Semantic Status Pills (6px 도트 + 미세 보더) */
.state {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px;
  border-radius: 999px; border: 1px solid var(--sleep-border); background: var(--sleep-soft); color: var(--sleep);
  font-size: .77rem; font-weight: 650; white-space: nowrap;
}
.state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sleep-dot); flex-shrink: 0; }
.state--queued, .state--uploading { background: var(--busy-soft); border-color: var(--busy-border); color: var(--busy); }
.state--queued::before, .state--uploading::before { background: var(--busy-dot); }
.state--deferred, .state--unknown, .state--awaiting_web_confirm { background: var(--warn-soft); border-color: var(--warn-border); color: var(--warn); }
.state--deferred::before, .state--unknown::before, .state--awaiting_web_confirm::before { background: var(--warn-dot); }
.state--uploaded { background: var(--ok-soft); border-color: var(--ok-border); color: var(--ok); }
.state--uploaded::before { background: var(--ok-dot); }
.state--failed { background: var(--err-soft); border-color: var(--err-border); color: var(--err); }
.state--failed::before { background: var(--err-dot); }

/* ---------------------------------------------------------------- 알림 */
.tl-alert {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2);
  color: var(--ink-2); font-size: .88rem; line-height: 1.5;
}
.tl-alert > svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 2px; }
.tl-alert ul { margin: .3rem 0 0; padding-left: 1.2em; }
.tl-alert a { color: inherit; font-weight: 700; text-underline-offset: 3px; }
.tl-alert--ok { background: var(--ok-soft); border-color: var(--ok-border); color: var(--ok); }
.tl-alert--error { background: var(--err-soft); border-color: var(--err-border); color: var(--err); }
.tl-alert--warn { background: var(--warn-soft); border-color: var(--warn-border); color: var(--warn); }
.tl-alert--info { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 34%, transparent); color: var(--accent-ink); }
.stack { display: grid; gap: 12px; }

/* ---------------------------------------------------------------- 홈 (Studio 6-Section IA) */
.hero { padding-top: clamp(36px, 7vw, 84px); padding-bottom: clamp(28px, 5vw, 52px); }
.hero-inner { max-width: 780px; }
.hero h1 {
  margin: 12px 0 16px; font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 800;
  line-height: 1.1; letter-spacing: -.035em; text-wrap: balance; color: var(--ink);
}
.hero h1 em, .page-title em {
  font-style: normal; color: var(--accent);
}
:lang(ja) .hero h1 { letter-spacing: -.02em; line-height: 1.18; }
.hero-lead { max-width: 640px; margin-bottom: 24px; color: var(--ink-2); font-size: clamp(.98rem, 1.4vw, 1.08rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hero-note { margin-top: 12px; color: var(--ink-3); font-size: .84rem; }
.hero-trust {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 8px 13px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface);
  color: var(--ink-2); font-size: .83rem; font-weight: 550;
}
.hero-trust svg { color: var(--ok); flex-shrink: 0; }

.section { margin-bottom: clamp(36px, 5.5vw, 60px); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-head h2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 750; color: var(--ink); }
.section-head .label-mono { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 640px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 4px; }
}

.flow {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
  box-shadow: var(--shadow-soft); list-style: none; margin: 0; padding: 0; counter-reset: flow;
}
.flow--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.flow li { counter-increment: flow; padding: 20px 22px; border-right: 1px solid var(--line); min-width: 0; }
.flow li:last-child { border-right: 0; }
.flow .flow-icon {
  display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent-ink);
}
.flow .flow-icon svg { width: 17px; height: 17px; }
.flow strong { display: block; margin-bottom: 5px; font-size: 1rem; font-weight: 750; color: var(--ink); }
.flow strong::before { content: counter(flow, decimal-leading-zero) " "; font-family: var(--mono); font-size: .76rem; font-weight: 600; color: var(--ink-3); }
.flow span { display: block; color: var(--ink-2); font-size: .88rem; line-height: 1.55; }
@media (max-width: 820px) {
  .flow, .flow--3 { grid-template-columns: 1fr; }
  .flow li { border-right: 0; border-bottom: 1px solid var(--line); }
  .flow li:last-child { border-bottom: 0; }
}

/* CSS-only 4-Tab Feature Showcase */
.studio-tabs { display: grid; gap: 14px; }
.st-bar {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 5px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2);
}
.st-tab {
  display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 14px;
  border-radius: var(--r-sm); color: var(--ink-2); font-size: .86rem; font-weight: 650;
  cursor: pointer; transition: background-color .12s, color .12s;
}
.st-tab:hover { background: var(--surface-hover); color: var(--ink); }
.st-tab svg { width: 15px; height: 15px; }
.st-panel { display: none; }
#st-t1:checked ~ .st-bar label[for="st-t1"],
#st-t2:checked ~ .st-bar label[for="st-t2"],
#st-t3:checked ~ .st-bar label[for="st-t3"],
#st-t4:checked ~ .st-bar label[for="st-t4"] {
  background: var(--surface); color: var(--accent-ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), inset 0 0 0 1px color-mix(in srgb, var(--accent) 42%, transparent);
}
#st-t1:checked ~ .st-panel--1,
#st-t2:checked ~ .st-panel--2,
#st-t3:checked ~ .st-panel--3,
#st-t4:checked ~ .st-panel--4 { display: grid; }
.st-head h3 { font-size: 1.12rem; font-weight: 750; margin-bottom: 4px; }
.cap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cap-grid--5 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.cap-card {
  display: grid; align-content: start; gap: 8px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2);
}
.cap-card strong { font-size: .95rem; font-weight: 700; color: var(--ink); }
.cap-card p { font-size: .84rem; color: var(--ink-2); line-height: 1.5; }
.cap-ic {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent-ink);
}
@media (max-width: 780px) { .cap-grid { grid-template-columns: 1fr; } }

/* Plans Bridge & Trust Pledges */
.plans-bridge { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .plans-bridge { grid-template-columns: 1fr; } }
.pb-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.pb-head h3 { font-size: 1.08rem; font-weight: 750; }
.panel--accent { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }

.pledge-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 780px) { .pledge-grid { grid-template-columns: 1fr; } }
.pledge-item { display: flex; align-items: flex-start; gap: 12px; }
.pledge-item > svg { width: 20px; height: 20px; color: var(--accent-ink); flex-shrink: 0; margin-top: 2px; }
.pledge-item strong { display: block; margin-bottom: 3px; font-size: .93rem; }

.scope-disclosure > summary {
  display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none;
  font-size: .9rem; font-weight: 700; color: var(--ink);
}
.scope-disclosure > summary::-webkit-details-marker { display: none; }
.scope-disclosure > summary > svg:last-child { margin-left: auto; transition: transform .15s; }
.scope-disclosure[open] > summary > svg:last-child { transform: rotate(180deg); }
.scope-table-wrap { margin-top: 12px; }
.scope-codes { display: flex; flex-wrap: wrap; gap: 4px; }
.scope-codes code { font-size: .74rem; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.tool-card {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid var(--line);
  border-radius: var(--r); background: var(--surface); text-decoration: none;
  transition: border-color .12s, background-color .12s;
}
a.tool-card:hover { border-color: var(--accent); background: var(--surface-2); }
.tool-card .tc-icon {
  display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 8px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--accent-ink);
}
.tool-card .tc-icon svg { width: 17px; height: 17px; }
.tool-card strong { display: block; margin-bottom: 2px; font-size: .94rem; font-weight: 700; }
.tool-card span { display: block; color: var(--ink-3); font-size: .82rem; line-height: 1.45; }

.request {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px;
  padding: clamp(20px, 3.5vw, 30px); border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--line));
  border-radius: var(--r-lg); background: var(--surface-2); color: var(--ink);
}
.request h2 { margin-bottom: 5px; font-size: clamp(1.2rem, 2.2vw, 1.5rem); font-weight: 750; }
.request p { color: var(--ink-2); font-size: .92rem; }
.request-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) { .request { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- 요금제 (/pricing) */
.pricing-page { padding-top: 28px; padding-bottom: 52px; gap: 24px; }
.pricing-hero { display: grid; gap: 10px; max-width: 760px; }
.pricing-hero .lead { color: var(--ink-2); font-size: 1rem; }
.pricing-current { margin-top: 4px; }
.cycle-switch {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px; width: fit-content;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2);
}
.cycle-opt {
  display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 14px;
  border-radius: var(--r-sm); color: var(--ink-2); font-size: .86rem; font-weight: 650; cursor: pointer;
}
#cycle-monthly:checked ~ .cycle-switch label[for="cycle-monthly"],
#cycle-annual:checked ~ .cycle-switch label[for="cycle-annual"] {
  background: var(--surface); color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), inset 0 0 0 1px var(--line-2);
}
#cycle-monthly:checked ~ .plan-cards .price-annual { display: none; }
#cycle-annual:checked ~ .plan-cards .price-monthly { display: none; }

.plan-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
@media (max-width: 900px) { .plan-cards { grid-template-columns: 1fr; } }
.plan-card { display: flex; flex-direction: column; gap: 16px; }
.plan-card--featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-soft); }
.plan-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.plan-card-head h2 { font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; }
.plan-price { padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.plan-price-main { display: block; font-size: 1.65rem; font-weight: 800; color: var(--ink); line-height: 1.15; }
.plan-price-main small { font-size: .82rem; font-weight: 600; color: var(--ink-3); margin-left: 2px; }
.plan-price-sub { display: block; margin-top: 3px; font-size: .78rem; color: var(--ink-3); }
.plan-bullets { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; flex: 1; font-size: .86rem; color: var(--ink-2); }
.plan-bullets li { display: flex; align-items: flex-start; gap: 8px; }
.plan-bullets li svg { width: 15px; height: 15px; color: var(--ok); margin-top: 3px; flex-shrink: 0; }
.plan-card-foot { margin-top: auto; padding-top: 6px; }
.plan-cta { width: 100%; }
.pricing-matrix { min-width: 560px; }
.pricing-matrix td, .pricing-matrix th { font-size: .86rem; }
.pricing-matrix th:first-child, .pricing-matrix td:first-child { min-width: 180px; }
.pricing-matrix th.num, .pricing-matrix td.num { white-space: nowrap; }
@media (max-width: 640px) {
  .pricing-matrix th, .pricing-matrix td { padding: 8px 9px; font-size: .8rem; }
}
.faq-list { display: grid; gap: 10px; }
.faq-item > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  cursor: pointer; list-style: none; font-weight: 700; font-size: .95rem; color: var(--ink);
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item[open] > summary svg { transform: rotate(180deg); }
.faq-item > p { margin-top: 10px; font-size: .88rem; line-height: 1.6; }

/* ---------------------------------------------------------------- 워크스페이스 확장 컴포넌트 */
.onboard-card { border-color: color-mix(in srgb, var(--accent) 42%, var(--line)); }
.onboard-head h2 { display: flex; align-items: center; gap: 8px; }
.onboard-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.onboard-step {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2);
}
.onboard-step.is-done { border-color: var(--ok-border); background: var(--ok-soft); }
.onboard-step-body { flex: 1 1 260px; min-width: 0; display: grid; gap: 2px; }
.onboard-step-body strong { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .92rem; }
.onboard-step-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.onboard-step-actions form { margin: 0; }

.kpi-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 680px) { .kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi-pill {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
  text-decoration: none; transition: border-color .12s, background-color .12s;
}
.kpi-pill:hover { border-color: var(--line-2); background: var(--surface-2); }
.kpi-pill.is-active { border-color: var(--accent); background: var(--accent-soft); }
.kpi-label { color: var(--ink-2); font-size: .82rem; font-weight: 650; }
.kpi-num { font-size: 1.2rem; font-weight: 800; color: var(--ink); }
.kpi-pill--accent .kpi-num { color: var(--accent-ink); }
.kpi-pill--ok .kpi-num { color: var(--ok); }
.kpi-pill--err .kpi-num { color: var(--err); }

.page-tabs { margin-bottom: 4px; }
.page-tabs .vtab { gap: 7px; }
.page-tabs .vtab svg { width: 15px; height: 15px; }
.jump-bar { display: flex; flex-wrap: wrap; gap: 8px; }

.usage-meters { display: grid; gap: 12px; }
.usage-row { display: grid; gap: 5px; }
.usage-row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: .86rem; font-weight: 600; color: var(--ink-2); }
progress.usage-meter {
  width: 100%; height: 8px; appearance: none; border: 1px solid var(--line);
  border-radius: 999px; background: var(--surface-3); overflow: hidden;
}
progress.usage-meter::-webkit-progress-bar { background: var(--surface-3); }
progress.usage-meter::-webkit-progress-value { background: var(--accent); border-radius: 999px; }
progress.usage-meter::-moz-progress-bar { background: var(--accent); border-radius: 999px; }
.usage-row.is-warn progress.usage-meter::-webkit-progress-value { background: var(--warn-dot); }
.usage-row.is-warn progress.usage-meter::-moz-progress-bar { background: var(--warn-dot); }
.usage-row.is-err progress.usage-meter::-webkit-progress-value { background: var(--err-dot); }
.usage-row.is-err progress.usage-meter::-moz-progress-bar { background: var(--err-dot); }

.opt-group {
  border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px; background: var(--surface-2);
}
.opt-group > summary {
  display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none;
  font-size: .88rem; font-weight: 700; color: var(--ink-2);
}
.opt-group > summary::-webkit-details-marker { display: none; }
.opt-group > summary > svg:last-child { margin-left: auto; transition: transform .15s; }
.opt-group[open] > summary > svg:last-child { transform: rotate(180deg); }
.opt-group-body { margin-top: 14px; }

.studio-empty { border-radius: var(--r-xl); padding: 48px 24px; }
.empty-emblem {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent-ink); border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
}
.empty-emblem svg { width: 22px; height: 22px; color: var(--accent-ink); }
.admin-req-actions { display: grid; gap: 6px; }
.admin-req-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* ---------------------------------------------------------------- 페이지 머리(툴 페이지) */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 16px 0 0; list-style: none; color: var(--ink-3); font-size: .82rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }
.page-head { padding: 16px 0 20px; }
.tool-head { display: flex; align-items: flex-start; gap: 14px; }
.tool-head .tool-icon {
  display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent-ink); border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
}
.tool-head .tool-icon svg { width: 22px; height: 22px; }
.tool-head-main { flex: 1; min-width: 0; }
.page-title { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.03em; }
.page-head .lead { max-width: 720px; margin-top: 6px; color: var(--ink-2); font-size: .96rem; }
.page-head .badges { margin-top: 10px; }
.tool-head-aside { flex-shrink: 0; align-self: center; }
@media (max-width: 640px) {
  .tool-head .tool-icon { width: 38px; height: 38px; }
  .tool-head { flex-wrap: wrap; }
  .tool-head-aside { width: 100%; }
}
.tool-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-bottom: 48px; }
@media (min-width: 1080px) { .tool-layout { grid-template-columns: minmax(0, 1fr) 290px; } }
.tool-main { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 20px; min-width: 0; }
.tool-surface {
  min-width: 0; padding: clamp(16px, 2.6vw, 24px); border: 1px solid var(--line);
  border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-soft);
}
.tool-surface > * + * { margin-top: 16px; }
.panel { min-width: 0; padding: clamp(14px, 2.4vw, 20px); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.panel > * + * { margin-top: 12px; }
.panel h2, .tool-surface h2 { font-size: 1.08rem; font-weight: 750; }
.panel--danger { border: 1.5px solid var(--err-border); }
.panel--danger h2 { color: var(--err); }
.rail { display: none; }
@media (min-width: 1080px) {
  .rail { display: flex; flex-direction: column; gap: 16px; }
  .rail-sticky { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 16px; }
}
.rail-box { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.rail-box h2 { margin-bottom: 8px; font-size: .9rem; font-weight: 750; }
.rail-box ul, .rail-box ol { margin: 0; padding: 0; list-style: none; }
.rail-box li a { display: block; padding: 5px 0; color: var(--ink-2); font-size: .86rem; text-decoration: none; }
.rail-box li a:hover { color: var(--accent-ink); }
.rail-box ol { counter-reset: rail; }
.rail-box ol li a::before { counter-increment: rail; content: counter(rail) ". "; font-family: var(--mono); color: var(--ink-3); font-size: .78rem; }

/* ---------------------------------------------------------------- 폼 */
.tl-form > * + * { margin-top: 0; }
.tl-section { display: grid; gap: 14px; padding: 20px 0; border-top: 1px solid var(--line); }
.tl-section:first-of-type { border-top: 0; padding-top: 0; }
.tl-section-title { display: flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 750; }
.tl-section-title .num {
  display: grid; place-items: center; width: 24px; height: 24px; flex-shrink: 0; border-radius: 6px;
  background: var(--accent-soft); color: var(--accent-ink); font-family: var(--mono); font-size: .76rem; font-weight: 700;
}
.tl-grid-2 { display: grid; gap: 14px; }
@media (min-width: 720px) { .tl-grid-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.tl-field { display: grid; gap: 6px; min-width: 0; }
.tl-label { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: .84rem; font-weight: 650; }
.tl-hint { color: var(--ink-3); font-size: .79rem; }
ul.tl-hint { margin: 0; padding-left: 1.1em; }
.tl-control {
  position: relative; display: flex; align-items: stretch; min-width: 0;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-3);
  transition: border-color .12s, box-shadow .12s;
}
.tl-control:hover { border-color: var(--line-2); }
.tl-control:focus-within { border-color: var(--accent); box-shadow: var(--focus); }
.tl-input, .tl-select, .tl-textarea { flex: 1; width: 100%; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink); font: inherit; font-size: .94rem; }
.tl-input, .tl-select { height: 40px; padding: 0 11px; }
.tl-input:focus-visible, .tl-select:focus-visible, .tl-textarea:focus-visible { box-shadow: none; }
.tl-select {
  appearance: none; cursor: pointer; padding-right: 32px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 16px) 17px, calc(100% - 11px) 17px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.tl-select option { background: var(--surface); color: var(--ink); }
.tl-textarea { min-height: 120px; padding: 10px 12px; resize: vertical; line-height: 1.55; }
input[type="datetime-local"].tl-input { font-family: var(--mono); font-size: .88rem; font-variant-numeric: tabular-nums; }
.req {
  display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink); font-size: .7rem; font-weight: 700;
}
.opt {
  display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 999px;
  background: var(--surface-2); color: var(--ink-3); border: 1px solid var(--line); font-size: .7rem; font-weight: 650;
}
.tl-seg {
  display: inline-flex; flex-wrap: wrap; gap: 4px; max-width: 100%; padding: 4px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-3);
}
.tl-seg label {
  position: relative; display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 4px 12px;
  border-radius: 6px; color: var(--ink-2); font-size: .86rem; font-weight: 650; cursor: pointer;
}
.tl-seg label:hover { color: var(--ink); }
.tl-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tl-seg label:has(input:checked) { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), inset 0 0 0 1px var(--line-2); }
.tl-seg label:has(input:focus-visible) { box-shadow: var(--focus); }
.tl-seg label::before { content: ""; width: 13px; height: 13px; flex-shrink: 0; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--surface); }
.tl-seg label:has(input:checked)::before { border: 4px solid var(--accent); }
.tl-check { display: inline-flex; align-items: center; gap: 9px; color: var(--ink-2); font-size: .9rem; font-weight: 600; cursor: pointer; }
.tl-check input {
  appearance: none; display: grid; place-items: center; flex: none; width: 18px; height: 18px; margin: 0;
  border: 1.5px solid var(--line-2); border-radius: 5px; background: var(--surface-3); cursor: pointer;
}
.tl-check input:checked { background: var(--accent); border-color: var(--accent); }
.tl-check input:checked::after {
  content: ""; width: 9px; height: 5px; border-left: 2px solid var(--on-accent); border-bottom: 2px solid var(--on-accent);
  transform: translateY(-1px) rotate(-45deg);
}
.tl-check input:focus-visible { box-shadow: var(--focus); }
.tl-check a { color: var(--accent-ink); }
.confirm-box { padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--line)); border-radius: var(--r); background: var(--accent-soft); }
.confirm-box .tl-check { color: var(--ink); font-weight: 700; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.inline-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.inline-form .tl-control { min-width: 180px; }

/* 드롭존 */
.upload-box { display: grid; gap: 10px; }
.tl-drop {
  position: relative; display: grid; justify-items: center; gap: 8px; padding: 26px 20px;
  border: 1.5px dashed var(--line-2); border-radius: var(--r); background: var(--surface-2);
  text-align: center; cursor: pointer; transition: border-color .12s, background-color .12s;
}
.tl-drop:hover, .tl-drop:focus-within { border-color: var(--accent); background: var(--accent-soft); }
.tl-drop:focus-within { box-shadow: var(--focus); }
.tl-drop input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.tl-drop .drop-icon {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line); color: var(--accent-ink);
}
.tl-drop .drop-icon svg { width: 20px; height: 20px; }
.tl-drop-main { color: var(--ink); font-weight: 700; }
.tl-drop-sub { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px; color: var(--ink-3); font-size: .8rem; }
.tl-drop-sub svg { width: 14px; height: 14px; color: var(--ok); }
.upload-box.is-busy .tl-drop { border-color: var(--accent); }
.upload-box.is-done .tl-drop { border-style: solid; border-color: var(--ok-border); background: var(--ok-soft); padding: 14px 18px; }
.upload-box.is-error .tl-drop { border-color: var(--err-border); background: var(--err-soft); }
.upload-box progress { width: 100%; height: 8px; appearance: none; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.upload-box progress::-webkit-progress-bar { background: var(--surface-3); }
.upload-box progress::-webkit-progress-value { background: var(--accent); }
.upload-box progress::-moz-progress-bar { background: var(--accent); }
.upload-status { color: var(--ink-2); font-size: .88rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.upload-box.is-done .upload-status { color: var(--ok); }
.upload-box.is-error .upload-status { color: var(--err); }
.upload-actions { display: none; flex-wrap: wrap; gap: 10px; align-items: center; }
.upload-actions:has(> :not([hidden])) { display: flex; }
.relogin-link { color: var(--accent-ink); font-weight: 700; }
.tz-label { font-family: var(--mono); font-size: .76rem; color: var(--ink-3); }

/* ---------------------------------------------------------------- 결과·요약 */
.tl-result { position: relative; min-width: 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.tl-result--primary { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 42%, var(--line)); }
.tl-result-label { margin-bottom: 8px; color: var(--ink-2); font-size: .8rem; font-weight: 700; }
.tl-result-sub { margin-top: 8px; color: var(--ink-2); font-size: .86rem; }
.tl-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.tl-stat { min-width: 0; padding: 12px 14px; box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line); }
.tl-stat dt { color: var(--ink-3); font-size: .76rem; font-weight: 650; }
.tl-stat dd { margin: 2px 0 0; font-family: var(--mono); font-size: 1.05rem; font-weight: 750; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.tl-stat dd small { display: block; font-family: var(--font); color: var(--ink-3); font-size: .78rem; font-weight: 600; }
.tl-kv { display: grid; grid-template-columns: minmax(120px, 210px) minmax(0, 1fr); margin: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.tl-kv dt, .tl-kv dd { margin: 0; padding: 9px 14px; border-bottom: 1px solid var(--line); }
.tl-kv dt { color: var(--ink-3); font-size: .84rem; font-weight: 650; background: var(--surface-2); }
.tl-kv dd { min-width: 0; overflow-wrap: anywhere; }
.tl-kv dt:last-of-type, .tl-kv dd:last-of-type { border-bottom: 0; }
.tl-kv .pre { white-space: pre-wrap; }
@media (max-width: 640px) {
  .tl-kv { grid-template-columns: 1fr; }
  .tl-kv dt { border-bottom: 0; padding-bottom: 2px; }
}
.tag {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; margin: 2px 4px 2px 0; padding: 0 8px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); color: var(--ink-2);
  font-size: .76rem; font-weight: 600;
}

/* ---------------------------------------------------------------- 표·목록 */
.tl-table-wrap { position: relative; overflow: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.tl-table { width: 100%; border-collapse: collapse; font-size: .88rem; font-variant-numeric: tabular-nums; }
.tl-table th, .tl-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.tl-table thead th { position: sticky; top: 0; z-index: 1; background: var(--surface-2); color: var(--ink); font-weight: 700; font-size: .8rem; white-space: nowrap; }
.tl-table tbody tr:last-child td { border-bottom: 0; }
.tl-table tbody tr:hover { background: var(--surface-hover); }
.tl-table form { margin: 0; display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tl-table .tl-control { min-width: 120px; }
@media (max-width: 720px) {
  .tl-table--stack thead { display: none; }
  .tl-table--stack tr { display: block; padding: 10px 12px; border-bottom: 1px solid var(--line); }
  .tl-table--stack td { display: block; padding: 3px 0; border: 0; }
  .tl-table--stack td[data-label]::before { content: attr(data-label); display: block; color: var(--ink-3); font-size: .72rem; font-weight: 650; }
}
.jobs { list-style: none; margin: 0; padding: 0; }
.job { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 18px; padding: 16px 2px; border-bottom: 1px solid var(--line); }
.job:first-child { padding-top: 4px; }
.job:last-child { border-bottom: 0; padding-bottom: 4px; }
.job-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.job-title { flex-basis: 100%; font-size: 1.02rem; font-weight: 750; letter-spacing: -.015em; overflow-wrap: anywhere; }
.job-meta { font-variant-numeric: tabular-nums; display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; color: var(--ink-2); font-size: .85rem; }
.job-meta div { display: flex; gap: 6px; min-width: 0; }
.job-meta dt { color: var(--ink-3); font-weight: 650; }
.job-meta dd { margin: 0; min-width: 0; }
.job-notes { grid-column: 1 / -1; display: grid; gap: 8px; }
.job-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.job-side form { margin: 0; }
.job-links { display: flex; flex-wrap: wrap; gap: 8px; }
.cell-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.cell-links > a, .cell-links > form, .cell-links .linkish { white-space: nowrap; }
.cell-links .linkish, .tl-table .linkish { display: inline-flex; align-items: center; min-height: 36px; }
.cell-links > form { margin: 0; }
@media (max-width: 640px) {
  .job { grid-template-columns: 1fr; }
  .job-side { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
}
.empty {
  display: grid; justify-items: center; gap: 14px; padding: 44px 24px; text-align: center;
  border: 1px dashed var(--line-2); border-radius: var(--r-xl); background: var(--surface);
}
.empty > svg { width: 28px; height: 28px; color: var(--ink-3); }
.empty p { color: var(--ink-2); }
.once { padding: 14px 16px; border: 1.5px dashed var(--accent); border-radius: var(--r); background: var(--accent-soft); }
.once p { color: var(--ink); font-weight: 700; margin-bottom: 8px; }
pre.secret {
  margin: 0; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--surface); font-size: .95rem; white-space: pre-wrap; word-break: break-all; user-select: all;
}
.plain { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.dot-list { margin: 0; padding-left: 1.2em; color: var(--ink-2); }
.dot-list li { margin: .2em 0; }

/* ---------------------------------------------------------------- 인증·안내 */
.narrow { max-width: 580px; margin: clamp(24px, 5vw, 56px) auto 56px; }
.narrow .page-title { font-size: clamp(1.5rem, 2.8vw, 2rem); margin-bottom: 10px; }
.narrow .lead { color: var(--ink-2); margin-bottom: 4px; }

/* ---------------------------------------------------------------- 정책 문서 */
.doc { padding-bottom: 48px; }
.policy { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 40px; max-width: 1100px; color: var(--ink-2); line-height: 1.75; }
.policy > * { grid-column: 1; min-width: 0; max-width: 780px; }
.policy > h1 { margin: 18px 0 6px; color: var(--ink); font-size: clamp(1.8rem, 3.2vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.18; }
.policy-meta { margin-bottom: 20px; font-family: var(--mono); font-size: .74rem; letter-spacing: .04em; color: var(--ink-3); }
.policy-meta a { color: var(--ink-3); }
.policy > p { margin-bottom: 1em; }
.policy .toc { margin: 4px 0 24px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.policy .toc ol { margin: 0; padding-left: 1.3em; columns: 2 16rem; column-gap: 28px; }
.policy .toc li { margin: .15em 0; break-inside: avoid; font-size: .88rem; }
.policy .toc a { color: var(--ink-2); text-decoration: none; }
.policy .toc a:hover { color: var(--accent-ink); text-decoration: underline; }
@media (min-width: 1080px) {
  .policy { grid-template-columns: minmax(0, 1fr) 260px; }
  .policy .toc { grid-column: 2; grid-row: 1 / span 40; align-self: start; position: sticky; top: calc(var(--header-h) + 20px); margin-top: 24px; }
  .policy .toc ol { columns: 1; }
}
.policy section { scroll-margin-top: calc(var(--header-h) + 16px); }
.policy h2 { margin: 2em 0 .65em; color: var(--ink); font-size: 1.25rem; font-weight: 750; }
.policy h3 { margin: 1.5em 0 .45em; color: var(--ink); font-size: 1.04rem; font-weight: 700; }
.policy section p, .policy section ul, .policy section ol, .policy section dl { margin: 0 0 1em; }
.policy ul, .policy ol { padding-left: 1.3em; }
.policy li { margin: .3em 0; }
.policy strong { color: var(--ink); }
.policy a { color: var(--accent-ink); text-underline-offset: 3px; }
.policy dl.defs dt { margin-top: .8em; color: var(--ink); font-weight: 700; }
.policy dl.defs dd { margin: .1em 0 0; }
.policy pre.code {
  margin: 0 0 1.2em; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); overflow-x: auto; font-size: .82rem; line-height: 1.6; white-space: pre; color: var(--ink);
}
.policy .tl-table-wrap { margin: 0 0 1.2em; }
.policy .tl-table code { white-space: nowrap; }
.table-wrap { margin: 0 0 1.2em; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.table-wrap table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .88rem; line-height: 1.55; }
.table-wrap th, .table-wrap td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table-wrap th { background: var(--surface-2); color: var(--ink); font-weight: 700; white-space: nowrap; }
.table-wrap tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) {
  .table-wrap.stack { overflow: visible; border: 0; background: none; }
  .table-wrap.stack table { min-width: 0; }
  .table-wrap.stack thead { display: none; }
  .table-wrap.stack tr { display: block; margin: 0 0 .75rem; padding: .4rem .85rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
  .table-wrap.stack td { display: block; padding: .3rem 0; border: 0; }
  .table-wrap.stack td::before { content: attr(data-label); display: block; color: var(--ink-3); font-size: .72rem; font-weight: 650; }
  .table-wrap.stack td:first-child { color: var(--ink); font-weight: 700; }
}

/* ---------------------------------------------------------------- 바닥 */
.site-footer { margin-top: 56px; padding: 26px 0 36px; border-top: 1px solid var(--line); background: var(--surface); color: var(--ink-3); font-size: .84rem; }
.site-footer .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.site-footer .row + .row { margin-top: 12px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 16px; }
.site-footer nav a, .site-footer .brand { display: inline-flex; align-items: center; min-height: 36px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--accent-ink); text-decoration: underline; }
.site-footer .brand { font-size: .96rem; }

@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .45s cubic-bezier(.2, .7, .2, 1) both; }
  .rise-1 { animation-delay: 50ms; } .rise-2 { animation-delay: 100ms; } .rise-3 { animation-delay: 150ms; } .rise-4 { animation-delay: 200ms; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } }
}
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* 채널 관리 카드 & 성과 분석 */
.channel-card-head { display: flex; gap: .75rem; align-items: flex-start; }
.channel-card-head .tool-icon { flex: none; }
.channel-name { margin: 0; font-size: 1.05rem; overflow-wrap: anywhere; }
.channel-card .form-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.channel-card .tl-kv { grid-template-columns: max-content minmax(0, 1fr); }
.channel-card .tl-kv dt { padding-right: 10px; }
.card-grid.channel-grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }

.analytics-pick { display: grid; gap: 8px; margin-bottom: 14px; }
.analytics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.tl-table .num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.chart-wrap { margin: 8px 0 0; }
.chart { display: block; width: 100%; height: auto; }
.chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-line { fill: none; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.chart-a { stroke: var(--accent); }
.chart-b { stroke: var(--accent-2); stroke-dasharray: 6 4; }
.chart-axis { fill: var(--ink-3); font-family: var(--mono); font-size: 12px; }
.chart-legend-list { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 8px; padding: 0; list-style: none; font-size: .84rem; font-weight: 650; }
.chart-legend-list li { display: inline-flex; align-items: center; gap: 6px; }
.chart-swatch { display: inline-block; width: 18px; height: 0; border-top: 3px solid var(--accent); }
.chart-swatch--b { border-top: 3px dashed var(--accent-2); }
.analytics-source { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 14px; }
.analytics-source svg { width: 15px; height: 15px; }
@media (max-width: 640px) { .analytics-grid { grid-template-columns: 1fr; } .chart-axis { font-size: 24px; } }

/* 구글 로그인 버튼·구분선 */
.google-login { display: grid; gap: 6px; margin-bottom: 4px; }
.btn-google { justify-content: center; width: 100%; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); }
.btn-google:hover { border-color: var(--accent); }
.btn-google .g-mark { width: 18px; height: 18px; }
.or-divider { display: flex; align-items: center; gap: 12px; margin: 14px 0; color: var(--ink-3); font-size: .82rem; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.channel-cta h2 { display: flex; align-items: center; gap: 8px; }

/* 지금 바로 올리기 / 예약 — CSS :has */
.when-block:has(input[name="when"][value="now"]:checked) .schedule-block { display: none; }
.when-block:has(input[name="when"][value="scheduled"]:checked) .when-now-note { display: none; }
.channel-table td { vertical-align: middle; }
.channel-table td { white-space: nowrap; }
.channel-table .num { text-align: right; }
.channel-table .google-account { display: block; max-width: 30ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .78rem; color: var(--ink-3); }
.channel-table .google-account-unknown { cursor: help; white-space: nowrap; }
.channel-table .channel-id { display: block; font-family: var(--mono); font-size: .72rem; color: var(--ink-3); white-space: nowrap; }
.channel-table form { flex-wrap: nowrap; }
.channel-table .tl-control { min-width: 0; width: 104px; }
.channel-table .tl-hint { margin: 4px 0 0; max-width: 260px; white-space: normal; }
.channel-table .scope-note { display: flex; align-items: center; gap: 4px; margin-top: 4px; font-size: .74rem; color: var(--ink-3); white-space: nowrap; cursor: help; }
.channel-table .scope-note .ic { width: 13px; height: 13px; }
.channel-table time { white-space: nowrap; }
.channel-table td.acct-name { width: 99%; min-width: 180px; }
.channel-table .acct-lines { display: grid; gap: 2px; min-width: 0; }
.channel-table .acct-name-text { display: block; max-width: 30ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.channel-table .btn, .channel-table summary { white-space: nowrap; }
.channel-table td.acct-actions { min-width: 150px; }
.channel-table .row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.group-pop > summary { list-style: none; cursor: pointer; }
.group-pop > summary::-webkit-details-marker { display: none; }
.group-pop[open] { flex-basis: 100%; }
.group-pop[open] .group-add { margin-top: 6px; flex-wrap: wrap; }
.group-pop .group-add .tl-select { min-width: 0; }
@media (max-width: 960px) {
  .channel-table.tl-table--stack thead { display: none; }
  .channel-table.tl-table--stack tr { display: block; padding: 10px 12px; border-bottom: 1px solid var(--line); }
  .channel-table.tl-table--stack td { display: block; padding: 3px 0; border: 0; white-space: normal; }
  .channel-table.tl-table--stack td[data-label]::before { content: attr(data-label); display: block; color: var(--ink-3); font-size: .72rem; font-weight: 650; }
  .channel-table td.acct-name { width: auto; }
  .channel-table .num, .channel-table th.num, .channel-table td.num { text-align: left; }
  .channel-table .tl-control { flex: 1; width: auto; }
  .channel-table td.acct-actions { min-width: 0; }
}
.admin-tabs { margin: 0 0 4px; }
.tl-table th.num, .tl-table td.num { text-align: right; }
.admin-text { max-width: 420px; overflow-wrap: anywhere; white-space: pre-wrap; }
.analytics-grid > .tool-surface { align-content: start; }
.reply-text { max-width: 420px; overflow-wrap: anywhere; }
.reply-text > div + div { margin-top: 4px; }

/* 아바타·썸네일·플랫폼 배지 (브랜드 무지개/원색 금지 — Studio 단색 칩) */
.avatar { display: inline-block; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; flex: none; vertical-align: middle; }
.thumb { display: inline-block; width: 80px; height: 45px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; flex: none; vertical-align: middle; }
.avatar img, .thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cell-with-avatar { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.plat {
  display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 6px;
  font-size: .73rem; font-weight: 700; letter-spacing: .01em;
  background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap;
}
.connect-row { display: flex; flex-wrap: wrap; gap: 8px; }
.job-group { padding: 14px 0; border-bottom: 1px solid var(--line); list-style: none; }
.job-group:last-child { border-bottom: 0; }
.job-group-head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 4px; }
.job-group-head .job-title { flex-basis: auto; }
.jobs--inner .job { padding: 10px 0 10px 12px; border-bottom: 1px dashed var(--line); }
.social-post .thumb { width: 48px; height: 27px; }

.acct-section > h2 { margin: 0; }
.acct-empty { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.acct-empty p { margin: 0; }
.group-add { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.group-add .tl-select { min-width: 110px; }
.group-card { border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px; display: grid; gap: 12px; background: var(--surface-2); }
.group-card > summary { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; min-height: 36px; cursor: pointer; }
.avatar-row { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.avatar-row .avatar, .tl-check .avatar { width: 24px; height: 24px; }
.summary-table .cell-with-avatar { min-width: 160px; }
@media (max-width: 720px) { .group-add { flex-wrap: wrap; } }

/* 예약 일정·대상별 시각·예약 공개 */
.target-time { margin: 8px 0 4px; display: grid; gap: 6px; }
.target-time .target-time-input { display: none; }
.target-time:has(input[value="custom"]:checked) .target-time-input { display: grid; }
.vis-block .publish-input { display: none; }
.vis-block:has(input[name="visibility"][value="scheduled"]:checked) .publish-input { display: grid; }
.vis-sns-note { display: none; }
#job-form:not(:has(input[name^="yt_"]:checked)) .vis-block { display: none; }
#job-form:not(:has(input[name^="yt_"]:checked)) .vis-sns-note { display: block; }
.sch-filter { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: end; }
.sch-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sch-day { margin-top: 10px; padding: 4px 0; font-weight: 700; border-bottom: 1px solid var(--line); }
.sch-row { display: grid; grid-template-columns: 110px 1fr auto; gap: 12px; align-items: start; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.sch-row--publish { border-style: dashed; }
.sch-time { font-family: var(--mono); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sch-head, .sch-body { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sch-body { margin-top: 6px; }
.sch-title { overflow-wrap: anywhere; }
.sch-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.sch-actions form { margin: 0; }
@media (max-width: 640px) { .sch-row { grid-template-columns: 1fr; } .sch-actions { justify-content: flex-start; } }

.social-target:not(:has(> legend input[type="checkbox"]:checked)) .target-time { display: none; }

/* 플랫폼 연결 버튼 — 원색/무지개 그라데이션 제거, Studio 통일 중립 표면 버튼 */
.btn--brand {
  background: var(--surface-2); border-color: var(--line-2); color: var(--ink);
}
.btn--brand:hover {
  background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink);
}
.brand-title { display: flex; align-items: center; gap: 8px; }

/* 쪽 나누기 */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin-top: 14px; }
.pager-total { margin: 0; font-family: var(--mono); font-size: .82rem; }
.pager-list { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.pager-step, .pager-num a, .pager-num span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--ink);
  font-family: var(--mono); font-size: .84rem; text-decoration: none;
}
.pager-step:hover, .pager-num a:hover { border-color: var(--accent); color: var(--accent-ink); }
.pager-num.is-current span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 700; }
.pager-step.is-disabled { color: var(--ink-3); background: var(--surface-2); }
.pager-num.pager-gap { border: 0; min-width: 0; padding: 0 2px; color: var(--ink-3); }
.pager-status { display: none; padding: 0 8px; white-space: nowrap; }
@media (max-width: 560px) {
  .pager { flex-direction: column; align-items: stretch; }
  .pager-list { justify-content: center; flex-wrap: nowrap; }
  .pager-num { display: none; }
  .pager-status { display: inline; }
}

.chn-alias { color: var(--ink-3); font-size: .84em; font-weight: 400; }

@supports selector(:has(*)) {
  .post-reply { display: none; }
  #job-form:has(.social-target[data-platform="instagram"] [data-role="social-pick"]:checked) .post-reply,
  #job-form:has(.social-target[data-platform="threads"] [data-role="social-pick"]:checked) .post-reply { display: block; }
}
.reply-target { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-top: .25rem; font-size: .88em; }
.reply-target .thumb { width: 48px; height: 27px; flex: none; }
.reply-picker { list-style: none; margin: .5rem 0; padding: 0; display: grid; gap: .35rem; max-height: 22rem; overflow: auto; }
.reply-picker li { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.reply-picker .thumb { width: 48px; height: 27px; flex: none; }

#job-form:not(:has(input[name^="yt_"]:checked)) .yt-only { display: none; }
