/* ============================================================
   QA Archive Demo — Design System
   제품 감수(QA) 3D/360 아카이빙 플랫폼
   ============================================================ */

:root {
  --bg: #f4f6f9;
  --bg-soft: #eaecf1;
  --panel: #ffffff;
  --panel-2: #f0f2f6;
  --border: #d6dbe4;
  --border-soft: #e2e6ed;
  --text: #1a2233;
  --text-dim: #576175;
  --text-faint: #8a95a8;
  --brand: #4a78e6;
  --brand-2: #6a50e8;
  --brand-grad: linear-gradient(135deg, #4a78e6 0%, #6a50e8 100%);
  --accent: #14b8a6;
  --warn: #e5950e;
  --danger: #e53e5e;
  --ok: #10b981;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.1);
  --lnb-w: 248px;
  --topbar-h: 60px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo",
    "Malgun Gothic", "Noto Sans KR", Roboto, sans-serif;
}


* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  line-height: 1.5;
  /* 한글은 단어 단위로 줄바꿈 (음절 단위 줄바꿈으로 마지막 한 글자만 떨어지는 현상 방지) */
  word-break: keep-all;
  overflow-wrap: break-word;
}
::selection { background: rgba(74, 120, 230, 0.22); }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* scrollbars */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #c4cad4; border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- App shell ---------- */
.app { display: flex; min-height: 100vh; }

.lnb {
  width: var(--lnb-w);
  flex: 0 0 var(--lnb-w);
  background: var(--bg-soft);
  border-right: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.lnb-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 18px;
  font-weight: 800; font-size: 16px; letter-spacing: -0.3px;
  border-bottom: 1px solid var(--border-soft);
}
.lnb-logo {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--brand-grad);
  display: grid; place-items: center;
  font-size: 16px;
  box-shadow: 0 4px 14px rgba(74, 120, 230, 0.25);
}
.lnb-brand small { display:block; font-weight:500; font-size:11px; color:var(--text-faint); letter-spacing:0; }
.lnb-section { padding: 14px 12px 4px; }
.lnb-section-title {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-faint); padding: 6px 10px; font-weight: 700; white-space: nowrap;
}
.lnb-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 11px; border-radius: var(--radius-sm);
  color: var(--text-dim); font-weight: 500; cursor: pointer;
  margin: 2px 0; transition: background 0.12s, color 0.12s;
  white-space: nowrap;
}
.lnb-item:hover { background: var(--panel); color: var(--text); }
.lnb-item.active { background: rgba(74, 120, 230, 0.12); color: #2a5ac0; }
.lnb-item.active .ico { filter: drop-shadow(0 0 4px rgba(74,120,230,0.4)); }
.lnb-item.sub.active { background: none; color: #2a5ac0; font-weight: 600; }
.lnb-item .ico { width: 18px; text-align: center; font-size: 15px; }
.lnb-item .badge { margin-left: auto; }
.lnb-foot { margin-top: auto; padding: 12px; border-top: 1px solid var(--border-soft); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* ---------- Topbar ---------- */
.topbar {
  height: var(--topbar-h);
  border-bottom: 1px solid var(--border-soft);
  background: rgba(244, 246, 249, 0.88);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; gap: 14px;
  padding: 0 22px; position: sticky; top: 0; z-index: 40;
}
.topbar h1 { font-size: 16px; margin: 0; font-weight: 700; letter-spacing: -0.2px; white-space: nowrap; }
.topbar .crumb { color: var(--text-faint); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .spacer { flex: 1; }

.searchbox {
  display: flex; align-items: center; gap: 8px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 999px; padding: 7px 14px; min-width: 280px;
}
.searchbox input { background: none; border: 0; outline: 0; color: var(--text); width: 100%; font-size: 13px; }
.searchbox input::placeholder { color: var(--text-faint); }

.role-switch {
  display: flex; align-items: center; gap: 8px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 999px; padding: 4px 6px 4px 12px;
}
.role-switch label { font-size: 12px; color: var(--text-faint); }
.role-switch select {
  background: var(--panel-2); color: var(--text); border: 1px solid var(--border);
  border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 600; cursor: pointer;
}
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand-grad); display: grid; place-items: center;
  font-weight: 700; font-size: 13px; cursor: pointer; color: #fff;
}

.content { padding: 24px; flex: 1; animation: page-in 0.32s ease both; }
.content.wide { max-width: 1280px; width: 100%; margin: 0 auto; }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.auth-card { animation: page-in 0.34s ease both; }
.asset-card { animation: page-in 0.3s ease both; }

/* ---------- Generic UI ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px; justify-content: center; white-space: nowrap;
  background: var(--panel-2); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 9px 15px; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all 0.12s;
}
.btn:hover { border-color: #b8c0cc; background: #e8ecf2; }
.btn.primary { background: var(--brand-grad); border: 0; color: white; box-shadow: 0 4px 16px rgba(74,120,230,0.25); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; }
.btn.danger { color: #b82e4a; border-color: rgba(229,62,94,0.35); }
.btn.danger:hover { background: rgba(229,62,94,0.1); }
.btn.ok { color: #0a7a55; border-color: rgba(16,185,129,0.35); }
.btn.ok:hover { background: rgba(16,185,129,0.1); }
.btn.sm { padding: 6px 11px; font-size: 12px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.badge {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  background: var(--panel-2); color: var(--text-dim); border: 1px solid var(--border);
}
.badge.brand { background: rgba(74,120,230,0.12); color: #3060c8; border-color: transparent; }
.badge.ok { background: rgba(16,185,129,0.12); color: #0a7a55; border-color: transparent; }
.badge.warn { background: rgba(229,149,14,0.12); color: #946008; border-color: transparent; }
.badge.danger { background: rgba(229,62,94,0.12); color: #b82e4a; border-color: transparent; }
.badge.dot::before { content:""; width:6px; height:6px; border-radius:50%; background:currentColor; }

.card {
  background: var(--panel); border: 1px solid var(--border-soft);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.card-pad { padding: 18px; }

.tag {
  display: inline-block; white-space: nowrap;
  font-size: 11px; padding: 2px 8px; border-radius: 6px;
  background: var(--panel-2); color: var(--text-dim); border: 1px solid var(--border);
}

.muted { color: var(--text-dim); }
.faint { color: var(--text-faint); }
.grid { display: grid; gap: 16px; }
.row { display: flex; gap: 10px; align-items: center; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.section-title { font-size: 18px; font-weight: 800; margin: 0 0 4px; letter-spacing: -0.4px; }
.section-sub { color: var(--text-dim); margin: 0 0 18px; font-size: 13px; }

.input, .textarea, select.input {
  width: 100%; background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 12px; color: var(--text);
  font-size: 13px; outline: none; font-family: inherit;
}
.input:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(74,120,230,0.15); }
.field { margin-bottom: 14px; }
.field label { display:block; font-size:12px; font-weight:600; color:var(--text-dim); margin-bottom:6px; }

/* ---------- Filter chips ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 7px 14px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--panel); border: 1px solid var(--border); color: var(--text-dim);
  cursor: pointer; transition: all 0.12s;
}
/* 인라인 SVG 아이콘 정렬 (이모지 대체) */
.ico { display: inline-flex; align-items: center; justify-content: center; }
.ico svg { display: block; }
.btn .ico { margin-right: -2px; }
.chip:hover { color: var(--text); border-color: #b0b8c6; }
.chip.active { background: var(--brand-grad); border: 0; color: white; }

/* ---------- Asset grid ---------- */
.asset-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
}
.asset-card {
  background: var(--panel); border: 1px solid var(--border-soft);
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  transition: transform 0.14s, border-color 0.14s, box-shadow 0.14s;
}
.asset-card:hover {
  transform: translateY(-3px);
  border-color: var(--hover-border, #b0b8c6);
  box-shadow: 0 8px 24px var(--hover-glow, rgba(0, 0, 0, 0.12)), var(--shadow-lg);
}
.asset-thumb {
  aspect-ratio: 4/3; position: relative; overflow: hidden;
  display: grid; place-items: center;
  background: radial-gradient(120% 120% at 50% 20%, var(--panel-2) 0%, var(--bg-soft) 70%);
}
.asset-thumb img { width: 100%; height: 100%; object-fit: cover; }
.asset-thumb .type-pill {
  position: absolute; top: 10px; left: 10px;
}
.asset-thumb .open-overlay {
  position: absolute; inset: 0; background: rgba(91,140,255,0.0);
  display: grid; place-items: center; opacity: 0; transition: 0.14s;
}
.asset-card:hover .open-overlay { opacity: 1; background: rgba(0,0,0,0.25); }
.asset-body { padding: 13px 14px 15px; }
.asset-title { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.asset-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 9px; }

/* ---------- Viewer ---------- */
.viewer-layout { display: grid; grid-template-columns: 1fr 340px; gap: 0; height: calc(100vh - var(--topbar-h)); }
.viewer-stage { position: relative; background: #e4e8f0; overflow: hidden; }
.viewer-canvas-wrap { position: absolute; inset: 0; }
.viewer-canvas-wrap canvas { display: block; width: 100% !important; height: 100% !important; touch-action: none; }

.viewer-toolbar {
  position: absolute; top: 14px; right: 14px; z-index: 20;
  display: flex; flex-direction: column; gap: 8px;
  opacity: 0; transition: opacity 0.25s;
}
.tool-btn {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,0.88); border: 1px solid var(--border);
  color: var(--text-dim); display: grid; place-items: center; cursor: pointer;
  font-size: 16px; backdrop-filter: blur(6px); transition: all 0.12s;
}
.tool-btn:hover { color: var(--text); border-color: #9aa4b4; }
.tool-btn.on { background: var(--brand-grad); color: white; border: 0; }

.viewer-hint {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  z-index: 20; background: rgba(255,255,255,0.88); border: 1px solid var(--border);
  border-radius: 999px; padding: 8px 16px; font-size: 12px; color: var(--text-dim);
  backdrop-filter: blur(6px); display: flex; gap: 14px;
  opacity: 0; transition: opacity 0.25s;
}
.viewer-hint b { color: var(--text); }

.viewer-overlay {
  opacity: 0; transition: opacity 0.25s;
}
.viewer-stage:hover .viewer-toolbar,
.viewer-stage:hover .viewer-hint,
.viewer-stage:hover .viewer-overlay {
  opacity: 1;
}
@media (hover: none) {
  .viewer-toolbar, .viewer-overlay { opacity: 1; }
}

/* loading overlay */
.loading-overlay {
  position: absolute; inset: 0; z-index: 30; display: grid; place-items: center;
  background: rgba(244,246,249,0.92); transition: opacity 0.3s;
}
.loading-overlay.hidden { opacity: 0; pointer-events: none; }
.loader-ring {
  width: 56px; height: 56px; border-radius: 50%;
  border: 4px solid rgba(74,120,230,0.18); border-top-color: var(--brand);
  animation: spin 0.8s linear infinite; margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-bar { width: 220px; height: 6px; border-radius: 999px; background: var(--panel-2); overflow: hidden; margin: 0 auto; }
.loader-bar > div { height: 100%; background: var(--brand-grad); width: 0%; transition: width 0.15s; }
.loader-text { text-align: center; color: var(--text-dim); margin-top: 10px; font-size: 13px; }
.loader-text b { color: var(--text); }

/* annotation pins */
.pin {
  position: absolute; transform: translate(-50%, -50%); z-index: 15;
  width: 26px; height: 26px; border-radius: 50% 50% 50% 2px;
  background: var(--brand-grad); color: white; font-weight: 800; font-size: 12px;
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 3px 10px rgba(0,0,0,0.5); border: 2px solid white;
  transition: transform 0.1s;
}
.pin:hover, .pin.active { transform: translate(-50%, -50%) scale(1.18); }
.pin.resolved { background: linear-gradient(135deg,#34d399,#10b981); }
.pin.adding-mode-cursor { cursor: crosshair; }

/* annotation side panel */
.anno-panel {
  background: var(--bg-soft); border-left: 1px solid var(--border-soft);
  display: flex; flex-direction: column; height: 100%;
  min-height: 0; overflow: hidden;
}
.anno-head { padding: 16px 16px 12px; border-bottom: 1px solid var(--border-soft); }
.anno-head h3 { margin: 0 0 3px; font-size: 15px; }
.anno-list { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.anno-item {
  background: var(--panel); border: 1px solid var(--border-soft); border-radius: 10px;
  padding: 12px; cursor: pointer; transition: border-color 0.12s;
}
.anno-item:hover, .anno-item.active { border-color: var(--brand); background: var(--bg-soft); }
.anno-item-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; row-gap: 6px; margin-bottom: 7px; }
.anno-num {
  width: 22px; height: 22px; border-radius: 50%; background: var(--brand-grad);
  color: white; font-size: 11px; font-weight: 800; display: grid; place-items: center; flex: 0 0 auto;
}
.anno-num.resolved { background: linear-gradient(135deg,#34d399,#10b981); }
.anno-body { font-size: 13px; color: var(--text); margin-bottom: 8px; }
.anno-author { font-size: 11px; color: var(--text-faint); }

.comment { padding: 8px 10px; border-radius: 8px; background: var(--bg-soft); margin-top: 7px; font-size: 12.5px; }
.comment .c-head { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; }
.comment .who { font-weight: 700; font-size: 11px; }
.comment .when { color: var(--text-faint); font-size: 10px; margin-left: auto; }
.role-tag { font-size: 9px; padding: 1px 6px; border-radius: 5px; font-weight: 800; text-transform: uppercase; white-space: nowrap; }
.role-tag.admin { background: rgba(106,80,232,0.14); color: #5a3ec8; }
.role-tag.partner { background: rgba(20,184,166,0.14); color: #0d7a6a; }
.role-tag.staff { background: rgba(229,149,14,0.14); color: #8a5a08; }
.comment-box { padding: 12px; border-top: 1px solid var(--border-soft); display: flex; gap: 8px; }

/* empty state */
.empty { text-align: center; color: var(--text-faint); padding: 60px 20px; }
.empty .big { font-size: 40px; margin-bottom: 12px; }

/* ---------- Watermark ---------- */
.watermark {
  position: fixed; inset: 0; z-index: 9000; pointer-events: none;
  overflow: hidden; opacity: 0.07; user-select: none;
}
.watermark .wm-row { white-space: nowrap; transform: rotate(-24deg); transform-origin: left center; }
.watermark .wm-row span { font-size: 18px; font-weight: 800; margin-right: 48px; letter-spacing: 1px; color: #000; }

/* ---------- Tables ---------- */
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl th { text-align: left; color: var(--text-faint); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; padding: 10px 12px; border-bottom: 1px solid var(--border); }
table.tbl td { padding: 12px; border-bottom: 1px solid var(--border-soft); }
table.tbl tr:hover td { background: var(--panel); }

/* ---------- KPI ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.kpi { background: var(--panel); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 18px; }
.kpi .label { color: var(--text-faint); font-size: 12px; font-weight: 600; }
.kpi .num { font-size: 30px; font-weight: 800; margin-top: 6px; letter-spacing: -1px; }
.kpi .sub { font-size: 12px; margin-top: 4px; }

/* ---------- Auth pages ---------- */
.auth-wrap {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(60% 60% at 80% 10%, rgba(106,80,232,0.08), transparent 60%),
    radial-gradient(50% 50% at 10% 90%, rgba(74,120,230,0.08), transparent 60%),
    var(--bg);
}
.auth-card { width: 100%; max-width: 420px; background: var(--panel); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 32px; }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.auth-brand .lnb-logo { width: 40px; height: 40px; font-size: 20px; }
.auth-title { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.demo-accounts { margin-top: 18px; border-top: 1px solid var(--border-soft); padding-top: 16px; }
.demo-acct { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; background: var(--bg-soft); border: 1px solid var(--border-soft); cursor: pointer; margin-bottom: 8px; transition: border-color 0.12s; }
.demo-acct:hover { border-color: var(--brand); }
.demo-acct .role-tag { flex: 0 0 auto; }

/* ---------- Pantone ---------- */
.pantone-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.swatch { background: var(--panel); border: 1px solid var(--border-soft); border-radius: 10px; overflow: hidden; cursor: pointer; transition: transform 0.12s; }
.swatch:hover { transform: translateY(-2px); }
.swatch .color { height: 96px; }
.swatch .info { padding: 9px 11px; }
.swatch .code { font-weight: 700; font-size: 12px; }
.swatch .hex { font-size: 11px; color: var(--text-faint); font-family: ui-monospace, monospace; }

/* ---------- Guideline ---------- */
.guide-card { display: flex; gap: 14px; padding: 16px; }
.guide-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--panel-2); display: grid; place-items: center; font-size: 22px; flex: 0 0 auto; }
.checklist { list-style: none; padding: 0; margin: 10px 0 0; }
.checklist li { display: flex; gap: 9px; padding: 6px 0; color: var(--text-dim); font-size: 13px; }
.checklist li::before { content: "✓"; color: var(--ok); font-weight: 800; }

/* ---------- Toast ---------- */
#toast-root { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: var(--panel-2); border: 1px solid var(--border); color: var(--text);
  padding: 12px 18px; border-radius: 10px; box-shadow: var(--shadow-lg); font-size: 13px; font-weight: 600;
  display: flex; align-items: center; gap: 9px; animation: toast-in 0.2s ease;
}
.toast.ok { border-color: rgba(52,211,153,0.5); }
.toast.warn { border-color: rgba(245,165,36,0.5); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Modal ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(5,8,12,0.65); backdrop-filter: blur(3px); z-index: 9500; display: grid; place-items: center; padding: 20px; }
.modal { width: 100%; max-width: 460px; max-height: calc(100vh - 40px); overflow-y: auto; background: var(--panel); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 24px; }
.modal h3 { margin: 0 0 14px; font-size: 17px; }

/* timeline */
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content:""; position:absolute; left:6px; top:4px; bottom:4px; width:2px; background:var(--border); }
.timeline-item { position: relative; padding: 0 0 16px; }
.timeline-item::before { content:""; position:absolute; left:-22px; top:3px; width:12px; height:12px; border-radius:50%; background:var(--brand); border:2px solid var(--bg); }
.timeline-item .t-time { font-size: 11px; color: var(--text-faint); }

hr.sep { border: 0; border-top: 1px solid var(--border-soft); margin: 20px 0; }

/* ---------- Mobile LNB dimmer ---------- */
#lnb-dimmer {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(5, 8, 12, 0.45);
  backdrop-filter: blur(1px);
  animation: fade-in 0.18s ease;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* responsive */
@media (max-width: 920px) {
  .viewer-layout { grid-template-columns: 1fr; height: auto; }
  .anno-panel { border-left: 0; border-top: 1px solid var(--border-soft); height: 420px; }
  .lnb { position: fixed; z-index: 100; transform: translateX(-100%); transition: transform 0.2s; }
  .lnb.open { transform: none; }
  .searchbox { min-width: 0; }
}

/* ---------- Inline Pantone Color Picker ---------- */
.pantone-picker-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-dim);
  transition: all 0.15s;
}
.pantone-picker-toggle:hover {
  background: var(--bg-soft);
  color: var(--text);
  border-color: var(--brand);
}
.pantone-popover {
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-lg);
  padding: 12px;
  animation: slide-down 0.2s ease;
}
@keyframes slide-down {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.pantone-popover-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border-soft);
  scrollbar-width: thin;
}
.pantone-popover-tabs::-webkit-scrollbar { height: 4px; }
.pantone-popover-tab {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--text-dim);
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}
.pantone-popover-tab.active {
  background: var(--brand);
  color: white;
}
.pantone-popover-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  max-height: 160px;
  overflow-y: auto;
  padding-right: 4px;
}
.pantone-popover-swatch {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid var(--border-soft);
  transition: transform 0.1s, border-color 0.1s;
}
.pantone-popover-swatch:hover {
  transform: scale(1.1);
  border-color: var(--text-dim);
  z-index: 10;
}

/* Annotation Issue Category Badges */
.anno-cat {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--bg-soft);
  color: var(--text-dim);
  border: 1px solid var(--border-soft);
}
.anno-cat.color { background: rgba(74, 120, 230, 0.12); color: #3060c8; }
.anno-cat.surface { background: rgba(239, 68, 68, 0.12); color: #dc2626; }
.anno-cat.sewing { background: rgba(16, 185, 129, 0.12); color: #059669; }
.anno-cat.dimension { background: rgba(245, 158, 11, 0.12); color: #d97706; }
.anno-cat.other { background: rgba(107, 114, 128, 0.12); color: #4b5563; }
