/* ============================================
   Paraat Imperium Dashboard - Style Sheet
   Navy + Gold dark theme
   ============================================ */

/* ---------- Custom Properties ---------- */
:root {
  --bg: #0a0e1a;
  --bg-card: #111827;
  --bg-card-hover: #1a2236;
  --bg-input: #0f1629;
  --border: #1e293b;
  --text: #e4e4e7;
  --text-dim: #94a3b8;
  --accent: #d4a853;
  --accent-hover: #c49a3f;
  --accent-light: rgba(212,168,83,0.12);
  --green: #22c55e;
  --green-bg: rgba(34,197,94,0.12);
  --yellow: #eab308;
  --yellow-bg: rgba(234,179,8,0.12);
  --red: #ef4444;
  --red-bg: rgba(239,68,68,0.12);
  --blue: #3b82f6;
  --blue-bg: rgba(59,130,246,0.12);
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,0.3);
  --sidebar-w: 250px;
  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 16px;
  --sp-lg: 24px;
  --sp-xl: 32px;

  /* Per-site colors */
  --site-service: #2D6A5A;
  --site-energie: #22c55e;
  --site-verbouw: #b45309;
  --site-tuin: #16a34a;
  --site-magazine: #6b7280;
  --site-business: #d4a853;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  height: auto;
}

/* ---------- Layout ---------- */
.layout {
  display: flex;
  min-height: 100vh;
}

.main {
  flex: 1;
  margin-left: var(--sidebar-w);
  padding: var(--sp-xl);
  max-width: 1400px;
  width: 100%;
}

/* ---------- Sidebar ---------- */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: #070b14;
  border-right: 1px solid var(--border);
  overflow-y: auto;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.sidebar__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: var(--sp-lg);
  border-bottom: 1px solid var(--border);
}

.sidebar__logo-icon {
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: #0a0e1a;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.sidebar__logo-text {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  white-space: nowrap;
}

.sidebar__logo-sub {
  font-size: 0.7rem;
  color: var(--text-dim);
  white-space: nowrap;
}

.sidebar__nav {
  padding: var(--sp-md) 0;
  flex: 1;
}

.sidebar__section {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  padding: var(--sp-lg) var(--sp-lg) var(--sp-xs) var(--sp-lg);
}

.sidebar__link {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: var(--sp-sm) var(--sp-lg);
  color: var(--text-dim);
  font-size: 0.875rem;
  transition: all 0.15s;
  border-left: 3px solid transparent;
}

.sidebar__link:hover {
  color: var(--text);
  background: rgba(255,255,255,0.03);
}

.sidebar__link--active {
  color: var(--accent);
  background: var(--accent-light);
  border-left-color: var(--accent);
  font-weight: 600;
}

/* ---------- Page Header ---------- */
.page-header {
  margin-bottom: var(--sp-xl);
}

.page-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--sp-xs);
}

.page-header p {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.page-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
  flex-wrap: wrap;
}

/* ---------- Cards Grid ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--sp-md);
}

/* ---------- Card ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-lg);
  transition: background 0.15s, transform 0.15s;
}

.card:hover {
  background: var(--bg-card-hover);
}

.card a {
  color: var(--accent);
}

.card__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--sp-sm);
}

.card__body {
  color: var(--text-dim);
  font-size: 0.875rem;
}

/* ---------- Stat Card ---------- */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-lg);
}

.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}

.stat-card .stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: var(--sp-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.stat-card .stat-sub {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: var(--sp-sm);
}

/* ---------- Site Card ---------- */
.site-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-lg);
  border-left: 4px solid var(--border);
  transition: background 0.15s, transform 0.15s;
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.site-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

.site-card--service  { border-left-color: var(--site-service); }
.site-card--energie  { border-left-color: var(--site-energie); }
.site-card--verbouw  { border-left-color: var(--site-verbouw); }
.site-card--tuin     { border-left-color: var(--site-tuin); }
.site-card--magazine { border-left-color: var(--site-magazine); }
.site-card--business { border-left-color: var(--site-business); }

.site-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm);
}

.site-card__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.site-card__tagline {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.site-card__stats {
  display: flex;
  gap: var(--sp-lg);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.site-card__stats strong {
  color: var(--text);
}

.site-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: var(--sp-sm);
}

.site-card__link {
  font-size: 0.8rem;
  font-weight: 600;
}

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.table th {
  text-align: left;
  padding: var(--sp-md);
  font-weight: 600;
  color: var(--text-dim);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.table td {
  padding: var(--sp-md);
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}

.table tr:last-child td {
  border-bottom: none;
}

.table tbody tr:nth-child(even) {
  background: rgba(255,255,255,0.015);
}

.table tbody tr:hover {
  background: var(--bg-card-hover);
}

.table td a {
  color: var(--accent);
  font-weight: 500;
}

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.badge--live,
.badge--published {
  background: var(--green-bg);
  color: var(--green);
}

.badge--building,
.badge--review {
  background: var(--yellow-bg);
  color: var(--yellow);
}

.badge--planned {
  background: rgba(107,114,128,0.15);
  color: #9ca3af;
}

.badge--writing {
  background: var(--blue-bg);
  color: var(--blue);
}

.badge--hoog {
  background: var(--red-bg);
  color: var(--red);
}

.badge--medium {
  background: var(--yellow-bg);
  color: var(--yellow);
}

.badge--laag {
  background: var(--blue-bg);
  color: var(--blue);
}

/* ---------- Site Dots ---------- */
.site-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  padding: var(--sp-sm) var(--sp-md);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  line-height: 1.4;
  font-family: inherit;
  background: transparent;
  color: var(--text);
}

.btn:hover {
  background: var(--bg-card-hover);
}

.btn--primary {
  background: var(--accent);
  color: #0a0e1a;
  border-color: var(--accent);
}

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #0a0e1a;
}

.btn--secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn--secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-dim);
}

.btn--danger {
  background: var(--red-bg);
  color: var(--red);
  border-color: rgba(239,68,68,0.3);
}

.btn--danger:hover {
  background: rgba(239,68,68,0.2);
}

.btn--sm {
  padding: var(--sp-xs) var(--sp-sm);
  font-size: 0.75rem;
}

/* ---------- Forms ---------- */
.form-group {
  margin-bottom: var(--sp-md);
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: var(--sp-xs);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--sp-sm) var(--sp-md);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.875rem;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  line-height: 1.5;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-md);
}

.form-actions {
  display: flex;
  gap: var(--sp-sm);
  margin-top: var(--sp-lg);
}

.char-counter {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-align: right;
  margin-top: var(--sp-xs);
}

.char-counter--over {
  color: var(--red);
}

/* ---------- Editor ---------- */
.editor-textarea {
  width: 100%;
  min-height: 400px;
  padding: var(--sp-md);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.85rem;
  line-height: 1.7;
  resize: vertical;
  tab-size: 2;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.editor-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.editor-input {
  width: 100%;
  padding: var(--sp-sm) var(--sp-md);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 600;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.editor-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

/* ---------- Markdown / Doc Content ---------- */
.doc-content {
  line-height: 1.8;
  color: var(--text);
  max-width: 800px;
}

.doc-content h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: var(--sp-xl) 0 var(--sp-md) 0;
  padding-bottom: var(--sp-sm);
  border-bottom: 1px solid var(--border);
}

.doc-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: var(--sp-lg) 0 var(--sp-sm) 0;
  color: var(--accent);
}

.doc-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: var(--sp-lg) 0 var(--sp-sm) 0;
}

.doc-content h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: var(--sp-md) 0 var(--sp-xs) 0;
  color: var(--text-dim);
}

.doc-content p {
  margin-bottom: var(--sp-md);
}

.doc-content ul,
.doc-content ol {
  margin-bottom: var(--sp-md);
  padding-left: var(--sp-lg);
}

.doc-content li {
  margin-bottom: var(--sp-xs);
}

.doc-content code {
  background: rgba(212,168,83,0.1);
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

.doc-content pre {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-md);
  overflow-x: auto;
  margin-bottom: var(--sp-md);
  line-height: 1.5;
}

.doc-content pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: 0.85rem;
  color: var(--text);
}

.doc-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--sp-md);
}

.doc-content table th,
.doc-content table td {
  padding: var(--sp-sm) var(--sp-md);
  border: 1px solid var(--border);
  text-align: left;
}

.doc-content table th {
  background: var(--bg-card);
  font-weight: 600;
  color: var(--text-dim);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.doc-content blockquote {
  border-left: 3px solid var(--accent);
  padding: var(--sp-sm) var(--sp-md);
  margin-bottom: var(--sp-md);
  background: var(--accent-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-dim);
  font-style: italic;
}

.doc-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.doc-content a:hover {
  color: var(--accent-hover);
}

/* ---------- Link Matrix ---------- */
.matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  text-align: center;
}

.matrix-table th {
  padding: var(--sp-sm);
  font-weight: 600;
  color: var(--text-dim);
  font-size: 0.7rem;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.matrix-table td {
  padding: var(--sp-sm);
  border: 1px solid var(--border);
  font-weight: 700;
  min-width: 60px;
}

.matrix-cell--empty {
  background: transparent;
  color: var(--text-dim);
}

.matrix-cell--self {
  background: rgba(107,114,128,0.1);
  color: var(--text-dim);
}

.matrix-cell--green {
  background: var(--green-bg);
  color: var(--green);
}

.matrix-cell--yellow {
  background: var(--yellow-bg);
  color: var(--yellow);
}

.matrix-cell--red {
  background: var(--red-bg);
  color: var(--red);
}

/* ---------- Skills Grid ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-lg);
  transition: background 0.15s;
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.skill-card:hover {
  background: var(--bg-card-hover);
}

.skill-card__name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.skill-card__desc {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.skill-card__link {
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: auto;
}

.badge--category {
  background: var(--accent-light);
  color: var(--accent);
}

/* ---------- Filter Bar ---------- */
.filter-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  margin-bottom: var(--sp-lg);
  flex-wrap: wrap;
}

.filter-bar select {
  padding: var(--sp-sm) var(--sp-md);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.85rem;
  font-family: inherit;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.filter-bar select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.filter-bar .badge-count {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-left: var(--sp-xs);
}

/* ---------- Tabs ---------- */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--sp-lg);
  overflow-x: auto;
}

.tab {
  padding: var(--sp-sm) var(--sp-md);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
}

.tab:hover {
  color: var(--text);
}

.tab--active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

/* ---------- Status Pipeline ---------- */
.pipeline {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: var(--sp-lg);
}

.pipeline__step {
  flex: 1;
  text-align: center;
  padding: var(--sp-sm) var(--sp-md);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--bg-card);
  border: 1px solid var(--border);
  position: relative;
}

.pipeline__step:first-child {
  border-radius: var(--radius) 0 0 var(--radius);
}

.pipeline__step:last-child {
  border-radius: 0 var(--radius) var(--radius) 0;
}

.pipeline__step--active {
  background: var(--accent-light);
  color: var(--accent);
  border-color: rgba(212,168,83,0.3);
}

.pipeline__step--done {
  background: var(--green-bg);
  color: var(--green);
  border-color: rgba(34,197,94,0.3);
}

/* ---------- Progress Bar ---------- */
.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-input);
  border-radius: 100px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 100px;
  transition: width 0.3s ease;
}

.progress-fill--green { background: var(--green); }
.progress-fill--yellow { background: var(--yellow); }
.progress-fill--red { background: var(--red); }

/* ---------- Flash Messages ---------- */
.flash {
  padding: var(--sp-md);
  border-radius: var(--radius);
  margin-bottom: var(--sp-lg);
  font-size: 0.875rem;
  font-weight: 500;
}

.flash--success {
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid rgba(34,197,94,0.2);
}

.flash--error {
  background: var(--red-bg);
  color: var(--red);
  border: 1px solid rgba(239,68,68,0.2);
}

/* ---------- Login Page ---------- */
.login-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--bg);
  padding: var(--sp-lg);
}

.login-box {
  width: 100%;
  max-width: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-xl);
}

.login-box__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-xl);
}

.login-box__icon {
  width: 56px;
  height: 56px;
  background: var(--accent);
  color: #0a0e1a;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.5rem;
}

.login-box__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
}

.login-box__sub {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: center;
}

.login-box .btn--primary {
  width: 100%;
  padding: var(--sp-sm) var(--sp-md);
  font-size: 0.95rem;
  margin-top: var(--sp-sm);
}

/* ---------- Section ---------- */
.section {
  margin-bottom: var(--sp-xl);
}

.section__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--sp-md);
  color: var(--text);
}

.section__subtitle {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: var(--sp-md);
}

/* ---------- Activity List ---------- */
.activity-list {
  list-style: none;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: var(--sp-sm) 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-item__time {
  color: var(--text-dim);
  font-size: 0.75rem;
  flex-shrink: 0;
  min-width: 70px;
}

.activity-item__text {
  color: var(--text);
}

/* ---------- Color Swatch ---------- */
.color-swatches {
  display: flex;
  gap: var(--sp-md);
  flex-wrap: wrap;
}

.color-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-xs);
}

.color-swatch__circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--border);
}

.color-swatch__label {
  font-size: 0.7rem;
  color: var(--text-dim);
}

/* ---------- Keyword List ---------- */
.keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
}

.keyword-tag {
  padding: var(--sp-xs) var(--sp-sm);
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* ---------- Prompt Card ---------- */
.prompt-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-lg);
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  transition: background 0.15s;
}

.prompt-card:hover {
  background: var(--bg-card-hover);
}

.prompt-card__header {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}

.prompt-card__name {
  font-weight: 700;
  font-size: 0.95rem;
}

.prompt-card__preview {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.prompt-card__link {
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: auto;
}

/* ---------- Mobile Hamburger ---------- */
.hamburger {
  display: none;
  position: fixed;
  top: var(--sp-md);
  left: var(--sp-md);
  z-index: 200;
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  position: relative;
}

.hamburger span::before,
.hamburger span::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 2px;
  background: var(--text);
  left: 0;
}

.hamburger span::before {
  top: -6px;
}

.hamburger span::after {
  top: 6px;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 90;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }

  .sidebar--open {
    transform: translateX(0);
  }

  .sidebar--open + .sidebar-overlay {
    display: block;
  }

  .main {
    margin-left: 0;
    padding: var(--sp-md);
    padding-top: 64px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .pipeline {
    flex-direction: column;
  }

  .pipeline__step:first-child {
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .pipeline__step:last-child {
    border-radius: 0 0 var(--radius) var(--radius);
  }

  .matrix-table {
    font-size: 0.7rem;
  }

  .page-header__row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .site-card__stats {
    flex-direction: column;
    gap: var(--sp-xs);
  }
}

/* ---------- Utility Classes ---------- */
.text-dim    { color: var(--text-dim); }
.text-accent { color: var(--accent); }
.text-sm     { font-size: 0.8rem; }
.text-xs     { font-size: 0.7rem; }
.text-center { text-align: center; }

.mt-xs { margin-top: var(--sp-xs); }
.mt-sm { margin-top: var(--sp-sm); }
.mt-md { margin-top: var(--sp-md); }
.mt-lg { margin-top: var(--sp-lg); }
.mt-xl { margin-top: var(--sp-xl); }

.mb-xs { margin-bottom: var(--sp-xs); }
.mb-sm { margin-bottom: var(--sp-sm); }
.mb-md { margin-bottom: var(--sp-md); }
.mb-lg { margin-bottom: var(--sp-lg); }
.mb-xl { margin-bottom: var(--sp-xl); }

.flex         { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center  { display: flex; align-items: center; }
.flex-wrap    { flex-wrap: wrap; }
.gap-xs       { gap: var(--sp-xs); }
.gap-sm       { gap: var(--sp-sm); }
.gap-md       { gap: var(--sp-md); }
.gap-lg       { gap: var(--sp-lg); }

.w-full { width: 100%; }
.hidden { display: none; }
