/* ===== Fast-Forward (ffwd) 디자인 시스템 — Light "Clean Studio" ===== */
:root {
  /* 표면 */
  --bg: #faf9f7;          /* 페이지 배경 (살짝 따뜻한 오프화이트) */
  --bg-2: #f4f3f7;        /* 옅은 인셋 */
  --panel: #ffffff;       /* 카드/표면 */
  --panel-2: #f6f7f9;     /* 입력/인셋 표면 */
  --line: #ececf0;        /* 보더 */
  --line-2: #e0e0e6;      /* 진한 보더/호버 */
  /* 잉크 */
  --text: #16161a;
  --muted: #52525b;
  --muted-2: #8a8a93;
  /* 강조 (indigo + 살짝 보라 포인트) */
  --accent: #5448e8;
  --accent-2: #7c6ef2;
  --accent-press: #4338ca;
  --accent-soft: #eef0fe;
  --accent-line: #d9dcfb;
  /* 상태 */
  --good: #16a34a; --good-soft: #e9f7ee; --good-line: #bfe6cd;
  --warn: #d97706; --warn-soft: #fdf3e7; --warn-line: #f5e3c8;
  --danger: #dc2626; --danger-soft: #fdeceb; --danger-line: #f5cdca;
  /* 형태 (살짝 더 둥글게) */
  --radius: 14px;
  --radius-sm: 11px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(16,16,26,.05);
  --shadow: 0 1px 3px rgba(16,16,26,.07), 0 1px 2px rgba(16,16,26,.05);
  --shadow-md: 0 6px 18px rgba(16,16,26,.08), 0 1px 3px rgba(16,16,26,.05);
  --shadow-lg: 0 14px 36px rgba(16,16,26,.12), 0 2px 6px rgba(16,16,26,.06);
  --shadow-accent: 0 4px 14px rgba(84,72,232,.30), 0 1px 3px rgba(84,72,232,.22);
  --maxw: 1180px;
  --nav-h: 68px;          /* 상단 네비게이션 높이 */
  --sidebar-w: 244px;     /* 프로젝트 사이드바(펼침) */
  --sidebar-w-collapsed: 62px; /* 프로젝트 사이드바(접힘) */
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    "Apple SD Gothic Neo", "Pretendard", "Malgun Gothic", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizedLegibility;
}
::selection { background: var(--accent-soft); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.025em; margin: 0 0 0.4em; color: var(--text); }
h1 { font-size: 26px; }
h2 { font-size: 19px; }
h3 { font-size: 16px; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 26px 22px; }
.center { text-align: center; }
.hidden { display: none !important; }
.spacer { flex: 1; }

/* ===== 네비게이션 ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 16px;
  height: var(--nav-h); padding: 0 24px;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(16,16,26,.03);
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 750; font-size: 17px; letter-spacing: -0.04em; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand .mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 27px; height: 27px; border-radius: 8px;
  background: linear-gradient(135deg, #6366f1, #4f46e5); color: #fff; font-size: 13px;
  box-shadow: 0 1px 2px rgba(79,70,229,.4), inset 0 1px 0 rgba(255,255,255,.25);
}
.brand .ff { color: var(--accent); }
.nav .links { display: flex; gap: 4px; align-items: center; }
.nav .links a {
  color: var(--muted); font-size: 14px; font-weight: 550; padding: 6px 10px; border-radius: 7px;
}
.nav .links a:hover { color: var(--text); background: var(--bg-2); text-decoration: none; }
.nav .links a.active { color: var(--accent); background: var(--accent-soft); }

/* ===== 업로드/변환 진행 위젯 (우측 상단) ===== */
.sync-widget { position: relative; display: inline-flex; }
.sync-widget[hidden] { display: none; }
.sync-btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  height: 34px; padding: 0 11px 0 8px; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-press);
  font: inherit; font-size: 12.5px; font-weight: 650;
}
.sync-btn:hover { background: #e6e9fe; }
.sync-ring { display: inline-flex; width: 20px; height: 20px; }
.sync-ring svg { width: 20px; height: 20px; transform: rotate(-90deg); }
.sync-ring .trk { fill: none; stroke: var(--accent-line); stroke-width: 3; }
.sync-ring .bar { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; transition: stroke-dashoffset .4s ease; }
.sync-ring.indet svg { animation: sync-spin 1s linear infinite; }
@keyframes sync-spin { to { transform: rotate(270deg); } }
.sync-label { white-space: nowrap; }

.sync-pop {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  width: 300px; max-width: 78vw; max-height: 60vh; overflow-y: auto;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: 8px;
}
.sync-pop[hidden] { display: none; }
.sync-pop .hd { font-size: 12px; font-weight: 700; color: var(--muted-2); padding: 6px 8px 8px; }
.sync-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 9px; color: var(--text); }
.sync-row:hover { background: var(--bg-2); text-decoration: none; }
.sync-row .info { min-width: 0; flex: 1; }
.sync-row .t { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sync-row .s { font-size: 12px; color: var(--muted-2); }
.sync-row .pct { font-size: 12px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.sync-row .pct.err { color: var(--danger); }

/* ===== 대시보드 레이아웃(사이드바 + 본문) ===== */
.dash-shell { display: flex; align-items: flex-start; }

.sidebar {
  position: sticky; top: var(--nav-h);
  align-self: flex-start;
  flex: 0 0 var(--sidebar-w); width: var(--sidebar-w);
  height: calc(100vh - var(--nav-h));
  display: flex; flex-direction: column;
  background: var(--panel); border-right: 1px solid var(--line);
  transition: flex-basis .18s ease, width .18s ease;
  overflow: hidden;
}
.sidebar.collapsed { flex-basis: var(--sidebar-w-collapsed); width: var(--sidebar-w-collapsed); }

.sidebar-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 14px 14px 10px; flex: 0 0 auto;
}
.sidebar-head .ttl { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-2); white-space: nowrap; }
.sidebar.collapsed .sidebar-head { justify-content: center; }
.sidebar.collapsed .sidebar-head .ttl { display: none; }

.sidebar-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; flex: 0 0 auto; cursor: pointer;
  border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2);
  color: var(--muted); font-size: 14px; line-height: 1; transition: background .12s, color .12s;
}
.sidebar-toggle:hover { background: var(--bg-2); color: var(--text); }

.sidebar-list { flex: 1 1 auto; overflow-y: auto; padding: 4px 10px; display: flex; flex-direction: column; gap: 3px; }

.sidebar-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 9px; border-radius: 9px;
  color: var(--text); cursor: pointer; white-space: nowrap; transition: background .12s;
}
.sidebar-item:hover { background: var(--bg-2); text-decoration: none; }
.sidebar-item.active { background: var(--accent-soft); }
.sidebar-item .meta { min-width: 0; }
.sidebar-item .nm { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-item .sub { font-size: 12px; color: var(--muted-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar.collapsed .sidebar-item { justify-content: center; padding: 8px 0; }
.sidebar.collapsed .sidebar-item .meta { display: none; }

.sidebar-foot { flex: 0 0 auto; padding: 10px; border-top: 1px solid var(--line); }
.sidebar-foot .btn { width: 100%; }
.sidebar.collapsed .sidebar-foot .btn { padding-left: 0; padding-right: 0; font-size: 0; }
.sidebar.collapsed .sidebar-foot .btn::first-letter { font-size: 15px; }
.sidebar-empty { color: var(--muted-2); font-size: 13px; text-align: center; padding: 18px 6px; }
.sidebar.collapsed .sidebar-empty { display: none; }

.dash-shell .wrap { flex: 1 1 auto; min-width: 0; }

@media (max-width: 720px) {
  .sidebar { position: fixed; left: 0; top: var(--nav-h); z-index: 40; box-shadow: var(--shadow-lg); }
  .sidebar.collapsed { flex-basis: var(--sidebar-w-collapsed); width: var(--sidebar-w-collapsed); }
}

/* ===== 프로젝트 툴바 + 그리드 (대시보드 본문) ===== */
.proj-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 24px 0 14px; flex-wrap: wrap; }
.proj-toolbar .pt-left { display: flex; align-items: baseline; gap: 9px; }
.proj-toolbar .pt-left h2 { margin: 0; }
.pt-count { color: var(--muted-2); font-size: 13px; font-weight: 600; }
.pt-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.search { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel); box-shadow: var(--shadow-sm); transition: border-color .13s, box-shadow .13s; }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search .ic { color: var(--muted-2); font-size: 13px; }
.search input { border: none; background: transparent; padding: 0; margin: 0; height: auto; width: 170px; }
.search input:focus { outline: none; box-shadow: none; }
.pt-right select { width: auto; height: 36px; margin: 0; padding: 0 30px 0 12px; border-radius: 10px; }

.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: 14px; }
.proj-grid .empty { grid-column: 1 / -1; }
.proj-card { display: flex; flex-direction: column; gap: 13px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow-sm); color: var(--text); transition: border-color .13s, box-shadow .13s, transform .13s; }
.proj-card:hover { border-color: var(--accent-line); box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; }
.proj-card .pc-top { display: flex; align-items: center; gap: 11px; min-width: 0; }
.proj-card .pc-id { min-width: 0; }
.proj-card .pc-name { font-weight: 650; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proj-card .pc-client { color: var(--muted-2); font-size: 12.5px; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proj-card .pc-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 12px; margin-top: auto; }
.proj-card .pc-meta { color: var(--muted); font-size: 12.5px; display: flex; align-items: center; gap: 6px; }
.proj-card .pc-open { color: var(--accent); font-size: 12.5px; font-weight: 650; opacity: 0; transform: translateX(-4px); transition: opacity .13s, transform .13s; }
.proj-card:hover .pc-open { opacity: 1; transform: translateX(0); }
.avatar.lg { width: 40px; height: 40px; border-radius: 11px; font-size: 16px; flex: 0 0 auto; }

/* 프로젝트 상태 배지 + 편집 회차 칩 */
.pc-badges { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.round-chip { font-size: 11px; font-weight: 700; color: var(--muted); background: var(--bg-2); border: 1px solid var(--line); padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
.badge.st-approved  { color: var(--good);    background: var(--good-soft);   border-color: var(--good-line); }
.badge.st-changes   { color: var(--warn);    background: var(--warn-soft);   border-color: var(--warn-line); }
.badge.st-rejected  { color: var(--danger);  background: var(--danger-soft); border-color: var(--danger-line); }
.badge.st-review    { color: var(--accent);  background: var(--accent-soft); border-color: var(--accent-line); }
.badge.st-processing{ color: var(--warn);    background: var(--warn-soft);   border-color: var(--warn-line); }
.badge.st-empty     { color: var(--muted-2); background: var(--bg-2);        border-color: var(--line); }

/* 사이드바 프로젝트 항목의 상태 점 (접혀 있어도 보이도록 아바타 모서리에) */
.sidebar-item .sb-av { position: relative; display: inline-flex; flex: 0 0 auto; }
.st-dot { position: absolute; right: -2px; bottom: -2px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--panel); box-sizing: border-box; }
.st-dot.st-approved   { background: var(--good); }
.st-dot.st-changes,
.st-dot.st-processing { background: var(--warn); }
.st-dot.st-rejected   { background: var(--danger); }
.st-dot.st-review     { background: var(--accent); }
.st-dot.st-empty      { background: var(--muted-2); }

/* 보기 전환(카드/리스트) + 상태별 묶기 토글 */
.view-toggle { display: inline-flex; height: 36px; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: var(--panel); box-shadow: var(--shadow-sm); }
.view-toggle button { border: none; background: transparent; width: 38px; cursor: pointer; color: var(--muted-2); font-size: 15px; display: flex; align-items: center; justify-content: center; }
.view-toggle button + button { border-left: 1px solid var(--line-2); }
.view-toggle button.active { background: var(--accent-soft); color: var(--accent); }
.toggle-btn.on { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }

/* 상태별 그룹 섹션 */
.proj-group { margin-bottom: 22px; }
.proj-group:last-child { margin-bottom: 0; }
.proj-group-head { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.pg-count { color: var(--muted-2); font-size: 13px; font-weight: 600; }

/* 리스트형 보기 */
.proj-list { display: flex; flex-direction: column; gap: 8px; }
.proj-row { display: flex; align-items: center; gap: 13px; padding: 12px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); box-shadow: var(--shadow-sm); color: var(--text); transition: border-color .13s, box-shadow .13s; }
.proj-row:hover { border-color: var(--accent-line); box-shadow: var(--shadow); text-decoration: none; }
.proj-row .pr-id { flex: 1; min-width: 0; }
.proj-row .pr-name { font-weight: 650; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proj-row .pr-client { color: var(--muted-2); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proj-row .pr-meta { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.proj-row .pr-open { color: var(--muted-2); font-size: 15px; }
.proj-row:hover .pr-open { color: var(--accent); }
@media (max-width: 620px) { .proj-row .pr-client, .proj-row .pr-meta { display: none; } }

/* ===== 버튼 =====
   기본 .btn = 강조형(인디고 채움) — 중요한 액션이 눈에 띄게.
   .btn.ghost = 보조(아웃라인), .btn.good = 승인(그린). 말랑한 호버 리프트. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 17px; border-radius: 11px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff; border: 1px solid var(--accent-press);
  cursor: pointer; font: inherit; font-weight: 650; font-size: 13.5px;
  box-shadow: var(--shadow-accent);
  transition: transform .09s ease, box-shadow .15s, background .15s, border-color .15s;
}
.btn:hover { background: linear-gradient(135deg, var(--accent), var(--accent-press)); box-shadow: 0 7px 20px rgba(84,72,232,.36); transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); box-shadow: var(--shadow-accent); }
.btn.good {
  background: linear-gradient(135deg, #22c55e, #16a34a); border-color: #15803d;
  box-shadow: 0 4px 14px rgba(22,163,74,.30), 0 1px 3px rgba(22,163,74,.22);
}
.btn.good:hover { background: linear-gradient(135deg, #16a34a, #15803d); box-shadow: 0 7px 20px rgba(22,163,74,.34); }
.btn.ghost {
  background: var(--panel); border: 1px solid var(--line-2); color: var(--text);
  box-shadow: var(--shadow-sm);
}
.btn.ghost:hover { background: var(--bg-2); border-color: var(--line-2); transform: translateY(-1px); }
/* 삭제 등 파괴적 동작: ghost 위에 얹으면 평소엔 은은하게, 호버 시 위험색으로. */
.btn.ghost.danger { color: var(--danger); border-color: var(--danger-line); box-shadow: none; }
.btn.ghost.danger:hover { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn.lg { height: 46px; padding: 0 24px; font-size: 15px; border-radius: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-row { display: flex; gap: 9px; flex-wrap: wrap; }

/* ===== 폼 ===== */
input, textarea, select {
  width: 100%; font: inherit; color: var(--text);
  background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 9px 12px; margin: 6px 0;
  transition: border-color .13s, box-shadow .13s;
}
input::placeholder, textarea::placeholder { color: var(--muted-2); }
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
textarea { resize: vertical; min-height: 70px; }
label.field { display: block; font-size: 13px; color: var(--muted); margin-top: 10px; font-weight: 550; }

/* ===== 카드/레이아웃 ===== */
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: 1.5fr 1fr; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 880px) { .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; } }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }
hr { border: none; border-top: 1px solid var(--line); margin: 16px 0; }

/* 리스트 항목 */
.item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--panel); margin: 9px 0; transition: border-color .13s, box-shadow .13s;
}
.item:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.item .title { font-weight: 650; }

/* 배지 */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--muted); white-space: nowrap;
}
.badge.ready { color: var(--good); background: var(--good-soft); border-color: var(--good-line); }
.badge.processing, .badge.uploading { color: var(--warn); background: var(--warn-soft); border-color: var(--warn-line); }
.badge.error { color: var(--danger); background: var(--danger-soft); border-color: var(--danger-line); }

/* 통계 */
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.stat .num { font-size: 30px; font-weight: 750; letter-spacing: -0.03em; }
.stat .lbl { color: var(--muted); font-size: 13px; }

/* 안내 */
.notice { background: var(--warn-soft); border: 1px solid var(--warn-line); color: #92580a;
  border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; margin-bottom: 16px; }
.empty { color: var(--muted); text-align: center; padding: 30px 10px; }

/* ===== 랜딩 ===== */
.hero { padding: 70px 22px 36px; text-align: center; }
.hero .eyebrow { display: inline-block; color: var(--accent); background: var(--accent-soft);
  border: 1px solid var(--accent-line); padding: 5px 13px; border-radius: 999px; font-size: 13px; font-weight: 600; margin-bottom: 18px; }
.hero h1 { font-size: 46px; line-height: 1.1; max-width: 760px; margin: 0 auto 18px; letter-spacing: -0.04em; }
.hero h1 .grad { background: linear-gradient(120deg, #6366f1, #8b5cf6, #4f46e5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .sub { font-size: 18px; color: var(--muted); max-width: 620px; margin: 0 auto 26px; }
.hero .btn-row { justify-content: center; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 14px; }
@media (max-width: 880px) { .feature-grid { grid-template-columns: 1fr; } .hero h1 { font-size: 34px; } }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.feature .ic { font-size: 24px; margin-bottom: 10px; }
.feature h3 { font-size: 16px; }
.feature p { color: var(--muted); font-size: 14px; margin: 0; }
.footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; padding: 26px 22px; text-align: center; }

/* ===== 리뷰(플레이어) ===== */
.player-shell { position: relative; aspect-ratio: 16 / 9; background: #0e0f14; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow); }
/* 표준 반응형 임베드: iframe을 박스에 정확히 채워 영상이 레터박스되도록(크롭 방지) */
.player-shell iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
#annot-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; touch-action: none; }
#annot-canvas.drawing { pointer-events: auto; cursor: crosshair; }
.swatch { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff;
  cursor: pointer; vertical-align: middle; margin: 0 2px; box-shadow: 0 0 0 1px var(--line-2); }
.swatch.active { outline: 2px solid var(--accent); outline-offset: 1px; }
.timecode-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-variant-numeric: tabular-nums; font-weight: 650; color: var(--accent);
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  border-radius: 8px; padding: 3px 9px; cursor: pointer; font-size: 13px;
}
.comment { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px; margin: 10px 0; background: var(--panel); transition: border-color .13s, box-shadow .13s; }
.comment:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.comment.resolved { opacity: .55; }
.comment .meta { font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.comment .author { font-weight: 650; color: var(--text); }
.replies { margin: 8px 0 0 14px; border-left: 2px solid var(--line); padding-left: 12px; }
.reply { padding: 7px 0; }
.reply .meta { font-size: 12px; color: var(--muted); }
.toolbar { display: flex; gap: 8px; align-items: center; margin: 12px 0; flex-wrap: wrap; }
/* 아바타 (코멘트/이력) */
.avatar { display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%; color: #fff; font-size: 11px; font-weight: 700;
  flex: 0 0 auto; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); letter-spacing: 0; }
/* 컨펌/사인오프 카드 강조 */
#signoff-card { border-color: var(--accent-line); box-shadow: var(--shadow-md); }
#signoff-card h3::before { content: "✍️ "; }
/* 네비 사용자 칩 */
.user-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text); font-weight: 550; }
.user-chip span { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 빵부스러기(브레드크럼) */
.crumbs { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted-2); min-width: 0; }
.crumbs .c-proj { color: var(--muted); font-weight: 550; }
.crumbs .c-sep { color: var(--muted-2); }
.crumbs .c-cur { color: var(--text); font-weight: 650; }

/* 세그먼트 컨트롤 (필터 탭 · 버전 선택) */
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; }
.seg button { border: none; background: transparent; cursor: pointer; height: 27px; padding: 0 13px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: var(--muted); font-family: inherit; display: inline-flex; align-items: center; gap: 6px; transition: color .12s, background .12s; }
.seg button:hover { color: var(--text); }
.seg button.active { background: var(--panel); color: var(--accent); box-shadow: var(--shadow-sm); }
.seg button .cnt { font-size: 11px; color: var(--muted-2); font-weight: 600; }
.seg button.active .cnt { color: var(--accent); }

/* 타임라인 바 (코멘트 마커 + 재생 위치) */
#timeline { position: relative; height: 16px; margin: 12px 2px 4px; cursor: pointer; }
#timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 5px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); }
#tl-fill { position: absolute; left: 0; top: 7px; height: 5px; border-radius: 999px; background: var(--accent); width: 0; pointer-events: none; }
#tl-playhead { position: absolute; top: 2px; width: 3px; height: 14px; border-radius: 2px; background: var(--accent); transform: translateX(-50%); left: 0; box-shadow: 0 0 0 2px var(--panel); pointer-events: none; }
#tl-markers .mk { position: absolute; top: 3px; width: 11px; height: 11px; border-radius: 50%; background: var(--panel); border: 2.5px solid var(--accent); transform: translateX(-50%); cursor: pointer; transition: transform .1s; }
#tl-markers .mk:hover { transform: translateX(-50%) scale(1.35); z-index: 2; }
#tl-markers .mk.resolved { border-color: var(--muted-2); }
#tl-markers .mk.annot { border-color: var(--accent-2); }
.player-bar { display: flex; align-items: center; gap: 12px; }
.tc-readout { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--muted); font-weight: 600; }
.tc-readout b { color: var(--text); }
.reactions { display: inline-flex; align-items: center; }
.react-btn { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 1px 9px; font-size: 12px; cursor: pointer; color: var(--muted); font-family: inherit; font-weight: 600; }
.react-btn:hover { border-color: var(--accent-line); color: var(--accent); background: var(--accent-soft); }

/* ===== 모바일 반응형 ===== */
@media (max-width: 680px) {
  .nav { gap: 10px; padding: 0 13px; }
  .nav .links { gap: 0; }
  .nav .links a { padding: 6px 8px; font-size: 13px; }
  .user-chip span { max-width: 84px; }
  .wrap { padding: 18px 14px; }
  h1 { font-size: 22px; }
  .hero { padding: 48px 16px 28px; }
  .hero h1 { font-size: 30px; }
  .hero .sub { font-size: 16px; }
  .btn.lg { height: 42px; padding: 0 18px; }
}
@media (max-width: 460px) {
  .nav .links { display: none; } /* 좁은 화면에선 보조 링크 숨김(브랜드/액션 유지) */
}
