:root {
  --sidebar-w: 220px;
  --topbar-h: 56px;
  --bg: #f1f5f9;
  --card: #ffffff;
  --sidebar-bg: #0f172a;
  --sidebar-text: #94a3b8;
  --sidebar-active: #ffffff;
  --sidebar-hover-bg: rgba(255,255,255,0.07);
  --sidebar-active-bg: rgba(99,102,241,0.25);
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  --text: #0f172a;
  --text-2: #64748b;
  --border: #e2e8f0;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Pretendard', -apple-system, 'Segoe UI', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* ──────────────── Layout ──────────────── */
.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 100;
}

.sidebar-logo {
  padding: 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-logo span {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
}
.sidebar-logo small {
  display: block;
  font-size: 11px;
  color: var(--sidebar-text);
  margin-top: 2px;
}

.sidebar-nav { flex: 1; padding: 12px 0; overflow-y: auto; }
.sidebar-section { padding: 16px 16px 4px; font-size: 10px; font-weight: 600; color: #475569; text-transform: uppercase; letter-spacing: 0.8px; }

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  color: var(--sidebar-text);
  font-size: 13.5px;
  border-radius: 6px;
  margin: 1px 8px;
  transition: background 0.15s, color 0.15s;
}
.sidebar-nav a:hover { background: var(--sidebar-hover-bg); color: var(--sidebar-active); }
.sidebar-nav a.active { background: var(--sidebar-active-bg); color: var(--sidebar-active); font-weight: 600; }
.sidebar-nav .icon { width: 18px; text-align: center; font-size: 15px; opacity: 0.9; }

.sidebar-bottom {
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.sidebar-guide {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; padding: 9px 12px; margin-bottom: 10px;
  background: var(--sidebar-active-bg); color: var(--sidebar-active);
  border: 1px solid transparent; border-radius: 8px;
  font-size: 13px; font-weight: 600; font-family: inherit; cursor: pointer;
  transition: filter .15s;
}
.sidebar-guide:hover { filter: brightness(1.18); }
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 6px;
}
.sidebar-user .avatar {
  width: 32px; height: 32px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.sidebar-user .info { flex: 1; min-width: 0; }
.sidebar-user .name { font-size: 13px; font-weight: 600; color: #fff; truncate: ellipsis; white-space: nowrap; overflow: hidden; }
.sidebar-user .role { font-size: 11px; color: var(--sidebar-text); }
.sidebar-user .logout { color: var(--sidebar-text); font-size: 15px; padding: 4px; }
.sidebar-user .logout:hover { color: var(--danger); }

.main {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.topbar {
  height: var(--topbar-h);
  background: var(--card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar h1 { font-size: 16px; font-weight: 700; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.content { padding: 24px; flex: 1; }

/* ──────────────── Auth ──────────────── */
.auth-layout {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}
.auth-card {
  width: 360px;
  background: var(--card);
  border-radius: 12px;
  padding: 40px 36px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.auth-card .logo { text-align: center; margin-bottom: 28px; }
.auth-card .logo h2 { font-size: 20px; font-weight: 800; color: var(--text); }
.auth-card .logo p { font-size: 13px; color: var(--text-2); margin-top: 4px; }

/* ──────────────── Cards ──────────────── */
.card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px;
  box-shadow: var(--shadow);
}
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.card-title { font-size: 14px; font-weight: 700; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.stat-card .stat-label { font-size: 12px; color: var(--text-2); font-weight: 500; margin-bottom: 8px; }
.stat-card .stat-value { font-size: 28px; font-weight: 800; color: var(--text); line-height: 1; }
.stat-card .stat-sub { font-size: 11px; color: var(--text-2); margin-top: 4px; }
.stat-card.accent-blue .stat-value { color: var(--info); }
.stat-card.accent-green .stat-value { color: var(--success); }
.stat-card.accent-red .stat-value { color: var(--danger); }
.stat-card.accent-yellow .stat-value { color: var(--warning); }
.stat-card.accent-purple .stat-value { color: var(--primary); }

/* ──────────────── Buttons ──────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, opacity 0.15s;
  line-height: 1.4;
}
.btn:hover { opacity: 0.88; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-warning { background: var(--warning); color: #fff; }
.btn-secondary { background: var(--bg); color: var(--text); border-color: var(--border); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-lg { padding: 10px 20px; font-size: 15px; width: 100%; justify-content: center; }

/* ──────────────── Badges ──────────────── */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.badge-pending    { background: #f1f5f9; color: #64748b; }
.badge-in_progress{ background: #dbeafe; color: #1d4ed8; }
.badge-submitted  { background: #ede9fe; color: #6d28d9; }
.badge-first_approved { background: #cffafe; color: #0e7490; }
.badge-approved   { background: #dcfce7; color: #15803d; }
.badge-rejected   { background: #fee2e2; color: #b91c1c; }
.badge-on_hold    { background: #fef9c3; color: #a16207; }
.badge-issue      { background: #ffedd5; color: #c2410c; }
.badge-open       { background: #ffedd5; color: #c2410c; }
.badge-resolved   { background: #dcfce7; color: #15803d; }
.badge-completed  { background: #e0e7ff; color: #3730a3; }
.badge-success    { background: #dcfce7; color: #15803d; }
.badge-failed     { background: #fee2e2; color: #b91c1c; }
.badge-company    { background: #e0e7ff; color: #3730a3; }
.badge-manager    { background: #dbeafe; color: #1d4ed8; }
.badge-worker     { background: #dcfce7; color: #15803d; }
.badge-pending_s  { background: #f1f5f9; color: #64748b; }
.badge-in_progress_s{ background: #dbeafe; color: #1d4ed8; }
.badge-done       { background: #dcfce7; color: #15803d; }

/* ──────────────── Tables ──────────────── */
.table-wrap { overflow-x: auto; }
.clickable-row { cursor: pointer; }
.clickable-row:hover td { background: var(--hover); }
table { width: 100%; border-collapse: collapse; }
thead th { padding: 10px 12px; text-align: left; font-size: 12px; font-weight: 600; color: var(--text-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
tbody td { padding: 12px 12px; border-bottom: 1px solid var(--border); font-size: 13px; vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #f8fafc; }

/* ──────────────── Forms ──────────────── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-control {
  width: 100%; padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s;
  outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }
.form-control::placeholder { color: #cbd5e1; }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 80px; }
.form-error { font-size: 12px; color: var(--danger); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ──────────────── Alerts ──────────────── */
.messages-wrap { margin-bottom: 16px; }
.alert {
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 8px;
  border: 1px solid transparent;
}
.alert-error, .alert-danger { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
.alert-success { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.alert-info { background: #dbeafe; color: #1e40af; border-color: #bfdbfe; }
.alert-warning { background: #fef9c3; color: #854d0e; border-color: #fde68a; }

/* ──────────────── Page header ──────────────── */
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.page-header h2 { font-size: 20px; font-weight: 800; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); margin-bottom: 20px; }
.breadcrumb a { color: var(--primary); }
.breadcrumb span { color: var(--text-2); }

/* ──────────────── Project / Task grid ──────────────── */
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s;
  cursor: pointer;
}
.project-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.project-card .title { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.project-card .desc { font-size: 12px; color: var(--text-2); margin-bottom: 12px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.project-card .meta { display: flex; align-items: center; justify-content: space-between; }
.project-card .deadline { font-size: 11px; color: var(--text-2); }

.page-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.page-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: box-shadow 0.15s;
}
.page-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.page-card .page-num { font-size: 24px; font-weight: 800; color: var(--text-2); line-height: 1; margin-bottom: 8px; }
.page-card .page-thumb { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 4px; margin-bottom: 8px; background: #f1f5f9; }

/* ──────────────── Label chip ──────────────── */
.label-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.label-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px;
  background: #e0e7ff;
  color: #3730a3;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.label-chip .del { cursor: pointer; color: #6366f1; font-weight: 700; margin-left: 2px; }
.label-chip .del:hover { color: var(--danger); }

/* ──────────────── Editor ──────────────── */
.editor-full { display: flex; height: calc(100vh - var(--topbar-h)); overflow: hidden; }
.editor-panel {
  width: 260px;
  flex-shrink: 0;
  background: var(--card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.editor-panel-section { padding: 14px; border-bottom: 1px solid var(--border); }
.editor-panel-section h3 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-2); margin-bottom: 10px; }
.editor-canvas-area {
  flex: 1;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 20px;
}
#annotation-canvas { cursor: crosshair; display: block; box-shadow: 0 4px 24px rgba(0,0,0,0.4); }
#annotation-canvas.view-mode { cursor: default; }

.label-btn {
  display: block; width: 100%;
  padding: 7px 10px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  margin-bottom: 4px;
  text-align: left;
  background: #f8fafc;
  color: var(--text);
  transition: all 0.1s;
}
.label-btn:hover { background: #e0e7ff; }
.label-btn.active { background: #e0e7ff; border-color: var(--primary); color: var(--primary-dark); }

.annotation-list { flex: 1; overflow-y: auto; padding: 8px; }
.annotation-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 8px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
  margin-bottom: 2px;
}
.annotation-item:hover { background: #f1f5f9; }
.annotation-item.selected { background: #e0e7ff; }
.ann-color { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.ann-label { flex: 1; font-weight: 500; }
.ann-delete { background: none; border: none; color: var(--text-2); cursor: pointer; padding: 2px 4px; border-radius: 3px; font-size: 13px; }
.ann-delete:hover { background: #fee2e2; color: var(--danger); }

.editor-actions { padding: 14px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }

/* ──────────────── Issue panel ──────────────── */
.issue-item { padding: 10px; border-radius: 6px; background: #f8fafc; margin-bottom: 6px; }
.issue-item .issue-content { font-size: 13px; margin-bottom: 6px; }
.issue-meta { font-size: 11px; color: var(--text-2); display: flex; gap: 8px; align-items: center; }

/* ──────────────── Modal ──────────────── */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center; z-index: 200;
}
.modal { background: var(--card); border-radius: var(--radius); padding: 24px; width: 420px; max-width: 90vw; }
.modal h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.modal-footer { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }

/* ──────────────── Toast ──────────────── */
#toast-container {
  position: fixed; bottom: 20px; right: 20px; z-index: 999;
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  animation: slideIn 0.2s ease;
}
.toast-success   { background: var(--success); }
.toast-error     { background: var(--danger); }
.toast-info      { background: var(--info); }
.toast-active    { background: #22c55e; }
.toast-stopped   { background: #ef4444; }
.toast-on_hold   { background: #f59e0b; }
.toast-completed { background: #6366f1; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ──────────────── 데이터 관리 탭 ──────────────── */
.data-toggle-bar { display:flex; gap:4px; margin-bottom:16px; border-bottom:2px solid var(--border); }
.data-toggle-btn {
  padding:8px 20px; font-size:13px; font-weight:600;
  background:none; border:none; cursor:pointer; color:var(--text-2);
  border-bottom:2px solid transparent; margin-bottom:-2px;
}
.data-toggle-btn.active { color:var(--primary); border-bottom-color:var(--primary); }
.data-toggle-btn:hover:not(.active) { color:var(--text-1); }

.path-badge {
  font-size:11px; background:var(--bg-2); border-radius:4px;
  padding:2px 8px; color:var(--text-2); word-break:break-all; margin-left:10px;
}

/* 파일 매니저 목록 */
.file-manager-list { border:1px solid var(--border); border-radius:6px; overflow:hidden; margin-bottom:0; }
.file-manager-empty { padding:32px; text-align:center; font-size:13px; color:var(--text-2); }
.fm-row {
  display:flex; align-items:center; gap:10px;
  padding:9px 14px; border-bottom:1px solid var(--border); font-size:13px;
  transition:background 0.1s;
}
.fm-row:last-child { border-bottom:none; }
.fm-row:hover { background:var(--bg-2); }
.fm-icon   { font-size:16px; flex-shrink:0; }
.fm-name   { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.fm-size   { font-size:12px; color:var(--text-2); white-space:nowrap; flex-shrink:0; }
.fm-mtime  { font-size:12px; color:var(--text-2); white-space:nowrap; flex-shrink:0; }
.fm-del-btn {
  padding:3px 10px; border-radius:4px; border:1px solid var(--border);
  font-size:11px; cursor:pointer; background:none; color:var(--danger);
  flex-shrink:0;
}
.fm-del-btn:hover { background:var(--danger); color:#fff; border-color:var(--danger); }
.fm-dl-btn {
  padding:3px 10px; border-radius:4px; border:1px solid var(--border);
  font-size:11px; cursor:pointer; background:none; color:var(--primary);
  text-decoration:none; flex-shrink:0;
}
.fm-dl-btn:hover { background:var(--primary); color:#fff; border-color:var(--primary); }

/* 드래그&드롭 업로드 존 */
.upload-drop-zone {
  border:2px dashed var(--border); border-radius:8px;
  padding:28px; text-align:center; cursor:pointer;
  margin-top:12px; transition:border-color 0.2s, background 0.2s;
}
.upload-drop-zone:hover, .upload-drop-zone.drag-over {
  border-color:var(--primary); background:color-mix(in srgb, var(--primary) 5%, transparent);
}
.upload-drop-zone.uploading { opacity:0.6; pointer-events:none; }
.drop-zone-icon { font-size:28px; color:var(--text-2); margin-bottom:6px; }
.drop-zone-text { font-size:13px; font-weight:600; color:var(--text-1); margin-bottom:4px; }
.drop-zone-hint { font-size:11px; color:var(--text-2); }

/* ──────────────── Misc ──────────────── */
.empty-state { text-align: center; padding: 48px 20px; color: var(--text-2); }
.empty-state .icon { font-size: 40px; margin-bottom: 12px; }
.empty-state p { font-size: 14px; }
.divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.text-muted { color: var(--text-2); }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; }
.mb-1 { margin-bottom: 4px; } .mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; }
.flex { display: flex; } .items-center { align-items: center; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.section-header { font-size: 14px; font-weight: 700; margin-bottom: 12px; }

/* no-sidebar for editor */
.no-sidebar .main { margin-left: 0; }

/* ──────────────── Project status badges ──────────────── */
.badge-ready    { background:#f1f5f9; color:#475569; }
.badge-active   { background:#dcfce7; color:#15803d; }
.badge-stopped  { background:#fee2e2; color:#b91c1c; }

/* ──────────────── Label type badges ──────────────── */
.badge-bbox    { background:#e0e7ff; color:#3730a3; }
.badge-polygon { background:#fce7f3; color:#9d174d; }
.badge-table   { background:#ecfdf5; color:#065f46; }

/* ──────────────── Breadcrumb bar ──────────────── */
.breadcrumb-bar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 8px 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-2);
}
.breadcrumb-bar a { color: var(--primary); }
.breadcrumb-bar a:hover { text-decoration: underline; }
.breadcrumb-bar .sep { color: #cbd5e1; }
.breadcrumb-bar .current { color: var(--text); font-weight: 600; }

/* ──────────────── Nav buttons (prev/next) ──────────────── */
.nav-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  border: 1px solid var(--border);
  background: var(--card);
  cursor: pointer;
  transition: all 0.1s;
}
.nav-btn:hover { background: var(--bg); color: var(--text); }
.nav-btn:disabled, .nav-btn.disabled { opacity: 0.35; pointer-events: none; }

/* ──────────────── Tabs ──────────────── */
.tab-bar {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 20px;
}
.tab-btn {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ──────────────── Project header card ──────────────── */
.project-header {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.project-header .title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}
.project-header h2 { font-size: 22px; font-weight: 800; }
.project-header .meta-row {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-2);
  padding-top: 14px;
}
.project-header .meta-item { display: flex; align-items: center; gap: 6px; }
.project-header .meta-label { font-weight: 600; color: var(--text-2); }
.project-header .meta-item > span:last-child:not(.badge) { font-weight: 700; color: var(--text); }

/* ──────────────── Status button group ──────────────── */
.status-group { display: flex; gap: 4px; }
.status-group .btn { min-width: 64px; justify-content: center; }
.status-group .btn.current { box-shadow: 0 0 0 2px currentColor; }

/* ──────────────── Color swatch ──────────────── */
.color-swatch {
  width: 28px; height: 28px;
  border-radius: 4px;
  border: 3px solid;
  flex-shrink: 0;
  display: inline-block;
}

/* ──────────────── Label class row ──────────────── */
.lc-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.lc-row:last-child { border-bottom: none; }
.lc-name { font-weight: 600; font-size: 13px; min-width: 80px; }
.lc-colors { display: flex; align-items: center; gap: 8px; flex: 1; flex-wrap: wrap; }
.lc-color-group { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--text-2); }
.lc-color-group input[type=color] { width: 28px; height: 24px; border: none; padding: 0; cursor: pointer; border-radius: 3px; }
.opacity-val { font-size: 11px; color: var(--text-2); min-width: 28px; }

/* ──────────────── Shortcut key badge ──────────────── */
.key-badge {
  display: inline-block;
  padding: 2px 8px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-family: monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  box-shadow: 0 1px 0 #cbd5e1;
}
.key-input {
  width: 120px; padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 5px; font-size: 12px;
  font-family: monospace; cursor: pointer;
  outline: none; text-align: center;
  background: #f8fafc;
}
.key-input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }
.key-input.capturing { background: #ede9fe; border-color: var(--primary); color: var(--primary-dark); }
