/* ============================================
   GDS v1 — Mission Control
   Mobile-first dark theme
   ============================================ */

/* --- Tokens --- */
:root {
  --bg-primary: #0A0A0A;
  --bg-card: #111111;
  --bg-elevated: #1A1A1A;
  --border: #222222;
  --border-hover: #333333;
  --text-primary: #F5F5F5;
  --text-secondary: #999999;
  --text-muted: #666666;
  --accent: #CCFF90;
  --accent-dim: rgba(204, 255, 144, 0.15);
  --accent-hover: #B8E87D;
  --danger: #FF6B6B;
  --warning: #FFD93D;
  --success: #CCFF90;
  --info: #6EC6FF;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-2xl: 32px;
  --space-3xl: 48px;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Special Gothic Expanded One', sans-serif;
  --sidebar-width: 240px;
  --bottombar-height: 64px;
  --topbar-height: 56px;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
  color: var(--text-primary);
}

input, textarea, select {
  font-family: var(--font-body);
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }

/* --- Layout Shell --- */
.shell {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
}

/* --- Sidebar (desktop) --- */
.sidebar {
  display: none;
  width: var(--sidebar-width);
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  flex-shrink: 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  overflow-y: auto;
  flex-direction: column;
}

.sidebar-logo {
  padding: var(--space-xl);
  border-bottom: 1px solid var(--border);
}

.sidebar-logo img {
  height: 24px;
  width: auto;
}

.sidebar-nav {
  padding: var(--space-md) 0;
  flex: 1;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-xl);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s;
  border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.03);
}

.sidebar-nav a.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: var(--accent-dim);
}

.sidebar-nav a i {
  font-size: 20px;
  width: 24px;
  text-align: center;
}

.sidebar-footer {
  padding: var(--space-lg) var(--space-xl);
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}

/* --- Top bar (mobile) --- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-height);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 var(--space-lg);
  z-index: 90;
}

.topbar-logo {
  height: 20px;
}

.topbar-title {
  font-family: var(--font-heading);
  font-size: 14px;
  margin-left: var(--space-lg);
  color: var(--text-primary);
  text-transform: uppercase;
}

/* --- Bottom tabs (mobile) --- */
.bottombar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottombar-height);
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 90;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottombar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 500;
  padding: var(--space-xs) var(--space-sm);
  transition: color 0.15s;
  text-decoration: none;
}

.bottombar a i {
  font-size: 22px;
}

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

/* --- Main content --- */
.main-content {
  flex: 1;
  padding-top: var(--topbar-height);
  padding-bottom: calc(var(--bottombar-height) + 16px);
  min-height: 100vh;
  min-height: 100dvh;
}

#app {
  padding: var(--space-lg);
  max-width: 1200px;
  margin: 0 auto;
}

/* --- Desktop layout --- */
@media (min-width: 768px) {
  .sidebar {
    display: flex;
  }

  .topbar {
    display: none;
  }

  .bottombar {
    display: none;
  }

  .main-content {
    margin-left: var(--sidebar-width);
    padding-top: 0;
    padding-bottom: 0;
  }

  #app {
    padding: var(--space-2xl) var(--space-3xl);
  }
}

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

.page-header h1 {
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.page-header p {
  font-size: 14px;
  color: var(--text-secondary);
}

@media (min-width: 768px) {
  .page-header h1 { font-size: 28px; }
}

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: border-color 0.2s;
}

.card:hover {
  border-color: var(--border-hover);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.card-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
}

/* --- Grid helpers --- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 480px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* --- Agent Cards --- */
.agent-card {
  position: relative;
  overflow: hidden;
}

.agent-card .agent-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: var(--space-sm);
}

.agent-card .agent-status.online { background: var(--success); box-shadow: 0 0 6px var(--success); }
.agent-card .agent-status.idle { background: var(--warning); }
.agent-card .agent-status.offline { background: var(--text-muted); }

.agent-card .agent-name {
  font-size: 16px;
  font-weight: 700;
}

.agent-card .agent-role {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.agent-card .agent-meta {
  margin-top: var(--space-md);
  font-size: 12px;
  color: var(--text-muted);
}

.agent-card .agent-model {
  display: inline-block;
  padding: 2px 8px;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  margin-top: var(--space-sm);
}

/* --- Activity Feed --- */
.feed {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.feed-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.feed-item .feed-time {
  color: var(--text-muted);
  font-size: 11px;
  white-space: nowrap;
  min-width: 60px;
}

.feed-item .feed-body {
  flex: 1;
  color: var(--text-secondary);
}

.feed-item .feed-agent {
  color: var(--accent);
  font-weight: 600;
}

/* --- Alert Cards --- */
.alert-card {
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  font-size: 13px;
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.alert-card.alert-warning {
  background: rgba(255, 217, 61, 0.08);
  border: 1px solid rgba(255, 217, 61, 0.2);
}

.alert-card.alert-error {
  background: rgba(255, 107, 107, 0.08);
  border: 1px solid rgba(255, 107, 107, 0.2);
}

.alert-card.alert-info {
  background: rgba(110, 198, 255, 0.08);
  border: 1px solid rgba(110, 198, 255, 0.2);
}

/* --- Project Cards --- */
.project-card {
  cursor: pointer;
  transition: transform 0.15s, border-color 0.2s;
}

.project-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.project-card .project-emoji {
  font-size: 28px;
  margin-bottom: var(--space-sm);
}

.project-card .project-name {
  font-size: 16px;
  font-weight: 700;
}

.project-card .project-slug {
  font-size: 12px;
  color: var(--text-muted);
  font-family: monospace;
}

.project-card .project-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  margin-top: var(--space-sm);
}

.project-card .project-status.active {
  background: var(--accent-dim);
  color: var(--accent);
}

/* --- Kanban --- */
.kanban-board {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  padding-bottom: var(--space-md);
  min-height: 300px;
}

.kanban-column {
  min-width: 260px;
  flex: 1;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
}

.kanban-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
}

.kanban-column-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.kanban-column-count {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 1px 6px;
  border-radius: 4px;
}

.kanban-cards {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  min-height: 60px;
}

.kanban-cards.drag-over {
  background: var(--accent-dim);
  border-radius: var(--radius-sm);
}

.kanban-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  cursor: grab;
  transition: all 0.15s;
  font-size: 13px;
}

.kanban-card:active { cursor: grabbing; }

.kanban-card.dragging {
  opacity: 0.5;
  transform: rotate(2deg);
}

.kanban-card:hover {
  border-color: var(--border-hover);
}

.kanban-card .kc-title {
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.kanban-card .kc-desc {
  font-size: 12px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.kanban-card .kc-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-sm);
  font-size: 11px;
  color: var(--text-muted);
}

.kanban-add-btn {
  width: 100%;
  padding: var(--space-sm);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
  margin-top: var(--space-sm);
}

.kanban-add-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

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

.tab {
  padding: var(--space-md) var(--space-lg);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

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

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

/* --- Chat --- */
.chat-container {
  display: flex;
  flex-direction: column;
  height: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.chat-bubble {
  max-width: 80%;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.5;
}

.chat-bubble.self {
  background: var(--accent-dim);
  color: var(--text-primary);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-bubble.other {
  background: var(--bg-elevated);
  color: var(--text-primary);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-bubble .chat-author {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.chat-bubble .chat-time {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
}

.chat-input-bar {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-md);
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.chat-input-bar input {
  flex: 1;
  border: none;
  background: var(--bg-card);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-lg);
}

.chat-input-bar button {
  background: var(--accent);
  color: var(--bg-primary);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 13px;
  transition: background 0.15s;
}

.chat-input-bar button:hover {
  background: var(--accent-hover);
}

/* --- File Tree / Docs --- */
.file-tree {
  font-size: 13px;
}

.file-tree-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}

.file-tree-item:hover {
  background: rgba(255,255,255,0.03);
}

.file-tree-item.active {
  background: var(--accent-dim);
  color: var(--accent);
}

.file-tree-item i {
  font-size: 16px;
  color: var(--text-muted);
}

.doc-viewer {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  font-size: 14px;
  line-height: 1.7;
}

.doc-viewer h1, .doc-viewer h2, .doc-viewer h3 {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: none;
  color: var(--text-primary);
  margin: var(--space-xl) 0 var(--space-md);
}

.doc-viewer h1 { font-size: 24px; }
.doc-viewer h2 { font-size: 18px; }
.doc-viewer h3 { font-size: 16px; }

.doc-viewer code {
  background: var(--bg-elevated);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}

.doc-viewer pre {
  background: var(--bg-elevated);
  padding: var(--space-lg);
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-size: 13px;
}

.doc-viewer pre code {
  background: none;
  padding: 0;
}

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

.doc-viewer ul, .doc-viewer ol {
  padding-left: var(--space-xl);
}

.doc-viewer blockquote {
  border-left: 3px solid var(--accent);
  padding-left: var(--space-lg);
  color: var(--text-secondary);
  margin: var(--space-md) 0;
}

.doc-viewer table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-md) 0;
}

.doc-viewer th, .doc-viewer td {
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--border);
  text-align: left;
  font-size: 13px;
}

.doc-viewer th {
  background: var(--bg-elevated);
  font-weight: 600;
}

/* --- Org Chart --- */
.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
  padding: var(--space-xl) 0;
}

.org-level {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
}

.org-connector {
  width: 2px;
  height: 24px;
  background: var(--border);
}

/* --- Cron Calendar --- */
.cron-week {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}

@media (min-width: 768px) {
  .cron-week {
    grid-template-columns: repeat(7, 1fr);
  }
}

.cron-day {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  min-height: 100px;
}

.cron-day-name {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.cron-event {
  padding: var(--space-xs) var(--space-sm);
  background: var(--accent-dim);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  font-size: 11px;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.cron-event .cron-time {
  font-weight: 600;
  color: var(--accent);
}

/* --- Cost Bars --- */
.cost-bar-container {
  margin-bottom: var(--space-md);
}

.cost-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: var(--space-xs);
}

.cost-bar-label .agent-name { font-weight: 600; }
.cost-bar-label .cost-value { color: var(--accent); }

.cost-bar {
  height: 8px;
  background: var(--bg-elevated);
  border-radius: 4px;
  overflow: hidden;
}

.cost-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 0.5s ease;
}

/* --- Table --- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th {
  text-align: left;
  padding: var(--space-md);
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: sticky;
  top: 0;
  background: var(--bg-primary);
}

.data-table td {
  padding: var(--space-md);
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.data-table tr:hover td {
  background: rgba(255,255,255,0.02);
}

.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

/* --- Stat Card --- */
.stat-card {
  text-align: center;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* --- Badge --- */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}

.badge-accent { background: var(--accent-dim); color: var(--accent); }
.badge-warning { background: rgba(255, 217, 61, 0.15); color: var(--warning); }
.badge-danger { background: rgba(255, 107, 107, 0.15); color: var(--danger); }
.badge-info { background: rgba(110, 198, 255, 0.15); color: var(--info); }

/* --- Button --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.btn-ghost:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

/* --- Search --- */
.search-box {
  position: relative;
  margin-bottom: var(--space-xl);
}

.search-box input {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  padding-left: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
}

.search-box i {
  position: absolute;
  left: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 18px;
}

/* --- Empty state --- */
.empty-state {
  text-align: center;
  padding: var(--space-3xl);
  color: var(--text-muted);
}

.empty-state i {
  font-size: 48px;
  margin-bottom: var(--space-lg);
  opacity: 0.3;
}

.empty-state p {
  font-size: 14px;
}

/* --- Loading --- */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl);
}

.loading::after {
  content: '';
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal h3 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  text-transform: none;
  margin-bottom: var(--space-lg);
}

.modal .form-group {
  margin-bottom: var(--space-lg);
}

.modal label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modal input, .modal textarea, .modal select {
  width: 100%;
}

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

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

/* --- Skill card --- */
.skill-card {
  cursor: pointer;
}

.skill-card .skill-name {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: var(--space-xs);
}

.skill-card .skill-desc {
  font-size: 12px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* --- Back link --- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  cursor: pointer;
}

.back-link:hover {
  color: var(--text-primary);
}

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

.section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

/* --- Utilities --- */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 12px; }
.font-mono { font-family: monospace; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hidden { display: none !important; }
