:root {
  --bg: #f8fafc;
  --panel-bg: #ffffff;
  --text-main: #0f172a;
  --text-meta: #64748b;
  --border-subtle: #e2e8f0;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --danger: #ef4444;
  --radius-sm: 6px;
  --radius-md: 10px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-8: 64px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px; /* Linear style: denser text */
  line-height: 1.5;
  background: var(--bg);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-main);
}

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

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

/* Form Elements (Linear Style) */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  display: block;
  width: 100%;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-main);
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  box-sizing: border-box;
}

input:focus,
textarea:focus,
select:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

input::placeholder,
textarea::placeholder {
  color: #94a3b8;
}

label {
  display: block;
  font-weight: 500;
  font-size: 13px;
  color: var(--text-main);
  margin-bottom: 6px;
}

/* Buttons (Linear Style) */
button {
  font-family: inherit;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: #fff;
  background-color: var(--text-main); /* Dark button like Linear */
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
  background-color: #000;
  transform: translateY(-1px);
}

.btn-secondary, .btn-pause, .btn-resume {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-main);
  background-color: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.1s;
}

.btn-secondary:hover, .btn-pause:hover, .btn-resume:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.section-block {
  padding: var(--space-8) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-6);
}

.section-header h3 {
  font-size: 24px;
  font-weight: 700;
}

/* Global Nav */
.global-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  text-decoration: none;
  margin-right: var(--space-6);
}
.brand-icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex-shrink: 0;
}

.top-nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.top-nav-links a,
.nav-actions a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-meta);
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}
.nav-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.top-nav-links a:hover,
.nav-actions a:hover {
  color: var(--text-main);
  background: #f1f5f9;
}

.top-nav-links a.active {
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.05);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: auto;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 13px;
  color: var(--text-meta);
}

.user-pill {
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  background: #fff;
}

.btn-subtle {
  background: transparent;
  border: none;
  color: var(--text-meta);
  font-size: 13px;
  font-weight: 500;
  padding: 4px 8px;
  cursor: pointer;
  transition: color 0.2s;
}

.btn-subtle:hover {
  color: var(--text-main);
  text-decoration: underline;
  text-decoration-color: var(--border-subtle);
  text-underline-offset: 4px;
}

/* Hero Section */
.hero-section {
  padding: 80px 0 100px;
  background: radial-gradient(circle at 50% 0%, #eef2ff 0%, transparent 70%);
  text-align: center;
}

.hero-container {
  max-width: 900px;
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-4);
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-meta);
  font-weight: 400;
  margin-bottom: var(--space-6);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
}

.btn-hero-primary,
.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  transition: transform 0.1s, box-shadow 0.2s;
}

.btn-hero-primary {
  background: var(--text-main);
  color: #fff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-hero-primary:hover {
  background: #000;
  transform: translateY(-1px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  color: #fff;
}

.btn-hero-secondary {
  background: #fff;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn-hero-secondary:hover {
  background: #f8fafc;
  color: var(--text-main);
}

/* How Grid */
.how-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 0;
}

.how-card {
  position: relative;
  padding: 20px 18px;
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-align: left;
  transition: border-color 0.2s;
}

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

.how-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  color: var(--text-meta);
  flex-shrink: 0;
}
.how-arrow svg {
  width: 14px;
  height: 14px;
}

.how-card-icon {
  width: 24px;
  height: 24px;
  color: var(--accent);
  margin-bottom: 10px;
}

.how-card h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.4;
}

.how-card p {
  font-size: 13px;
  color: var(--text-meta);
  margin: 0;
  line-height: 1.5;
}

/* Install Section (Dark) */
.bg-dark {
  background: #0f172a;
  color: #fff;
}

.bg-dark h3 {
  color: #fff;
}

.bg-dark p {
  color: #94a3b8;
}

.install-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-8);
  align-items: center;
}

.terminal-box {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.terminal-header {
  background: #0f172a;
  padding: 12px 16px;
  display: flex;
  gap: 6px;
  border-bottom: 1px solid #334155;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.terminal-body {
  padding: var(--space-4);
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2px 0;
}

.terminal-body code {
  font-family: var(--font-mono);
  font-size: 14px;
  color: #10b981;
  overflow-x: auto;
  white-space: nowrap;
  margin-right: var(--space-4);
}

.terminal-body code.terminal-comment {
  color: #6b7280;
  width: 100%;
  font-size: 12px;
  margin-bottom: 4px;
}

.btn-copy {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-copy:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Pain Grid */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.pain-card {
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  transition: transform 0.2s, box-shadow 0.2s;
}

.pain-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.pain-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #eff6ff;
  color: var(--accent);
  margin-bottom: 12px;
  flex-shrink: 0;
}
.pain-icon svg {
  width: 20px;
  height: 20px;
}

.pain-card h4 {
  font-size: 18px;
  margin-bottom: var(--space-2);
  color: var(--text-main);
}

.pain-card p {
  color: var(--text-meta);
  margin: 0;
}

/* Workspace Entry */
.section-workspace {
  background: #fff;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.workspace-entry h3 {
  margin-bottom: var(--space-2);
}

.workspace-entry p {
  color: var(--text-meta);
  margin-bottom: var(--space-4);
}

.workspace-meta {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  background: #f1f5f9;
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-meta);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-title {
    font-size: 36px;
  }
  
  .how-grid {
    grid-template-columns: 1fr;
  }
  
  .install-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .pain-grid {
    grid-template-columns: 1fr;
  }
  
  .terminal-body {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }
  
  .btn-copy {
    width: 100%;
  }
}

/* Legacy Support (for other pages) */
.panel {
  background: var(--panel-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
}

.content-wrap {
  padding: var(--space-4);
  max-width: 1400px;
  margin: 0 auto;
}

.workspace-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: var(--space-4);
}

.left-tabs {
  background: var(--panel-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  height: fit-content;
}

.tab-title {
  font-size: 12px;
  color: var(--text-meta);
  margin-bottom: var(--space-2);
}

.left-tabs a {
  display: block;
  color: var(--text-main);
  text-decoration: none;
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
}

.left-tabs a.active,
.left-tabs a:hover {
  background: #f2f4f7;
  color: var(--text-main);
}

/* Channel Layout */
.channel-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  height: calc(100vh - 60px); /* Adjust based on header height */
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: #fff;
  overflow: hidden;
}

.channel-sidebar {
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  background: #f8fafc; /* Slightly lighter */
}

.sidebar-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  height: 56px; /* Fixed height for alignment */
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.sidebar-header h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin: 0;
}

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

.sidebar-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border-subtle);
}

.btn-create-channel {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.1s;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.02);
}

.btn-create-channel:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: var(--text-main);
}

.group-section {
  margin-bottom: 16px;
}

.group-title {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
}

.channel-list {
  list-style: none;
  padding: 0;
  margin: 4px 0 0 0;
}

.channel-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  text-decoration: none;
  color: var(--text-meta);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.1s;
}

.channel-item:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-main);
}

.channel-item.active {
  background: #fff;
  color: var(--text-main);
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
  border: 1px solid var(--border-subtle);
}

.channel-item.paused {
  opacity: 0.7;
}

.channel-main {
  padding: 0;
  overflow-y: auto;
  background: #fff;
}

.empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-meta);
  font-size: 14px;
}

/* Config Form */
.config-form-wrapper {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 48px;
}

.form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 20px;
}

.form-header h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.form-section {
  margin-bottom: 40px;
}

.form-section h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-main);
  border-left: none;
  padding-left: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.danger-zone {
  margin-top: 64px;
  padding: 24px;
  border: 1px solid #fee2e2;
  border-radius: 8px;
  background: #fffafa;
}

.danger-zone h3 {
  color: var(--danger);
  font-size: 14px;
  margin-bottom: 12px;
}

.btn-delete {
  background: #fff;
  color: var(--danger);
  border: 1px solid #fecaca;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  font-weight: 500;
}

.btn-delete:hover {
  background: #fef2f2;
  border-color: var(--danger);
}

/* Board Layout */
.board-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    height: 100vh;
    overflow: hidden;
}

.board-sidebar {
    border-right: 1px solid var(--border-subtle);
    background: #f8fafc;
    display: flex;
    flex-direction: column;
}

.board-main {
    display: flex;
    flex-direction: column;
    background: #fff;
    position: relative;
}

/* Board Topbar */
.board-topbar {
    height: 60px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    background: #fff;
}

.board-info {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.project-name {
    font-size: 18px;
    font-weight: 600;
}

.channel-ver {
    font-size: 12px;
    color: var(--text-meta);
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
}

.board-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mode-switch {
    display: flex;
    background: #f1f5f9;
    padding: 2px;
    border-radius: 6px;
}

.btn-mode {
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-meta);
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-mode.active {
    background: #fff;
    color: var(--text-main);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* Board Canvas */
.board-canvas {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 24px;
    background: #f8fafc;
}

.board-columns {
    display: flex;
    gap: 16px;
    height: 100%;
}

/* Column */
.column {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: #f1f5f9; /* Slightly darker than canvas */
    border-radius: 8px;
    max-height: 100%;
}

.column-header {
    padding: 12px 16px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main);
}

.stage-count {
    background: rgba(0,0,0,0.05);
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 12px;
    color: var(--text-meta);
    margin-left: 8px;
}

.task-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 8px 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 50px; /* Drop target area */
}

/* Card */
.task-card {
    background: #fff;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 12px;
    cursor: grab;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
    transition: transform 0.1s, box-shadow 0.1s;
}

.task-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.card-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-main);
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-meta);
    margin-top: 8px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
}

.status-indicator {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-meta);
}

/* Drawer */
.drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    z-index: 100;
    pointer-events: none;
    display: flex;
    justify-content: flex-end;
}

.drawer.open {
    pointer-events: auto;
}

.drawer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.2s;
}

.drawer.open .drawer-overlay {
    opacity: 1;
}

.drawer-panel {
    width: 600px;
    background: #fff;
    height: 100%;
    box-shadow: -4px 0 16px rgba(0,0,0,0.1);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    position: relative;
    z-index: 10;
}

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

/* Builder Mode Specifics */
.mode-builder .column {
    border: 1px dashed var(--border-subtle);
    background: #fff;
}

.mode-builder .task-card {
    cursor: pointer;
    border-style: dashed;
}

.mode-builder .task-card:hover {
    border-color: var(--accent);
    background: #fafafe;
}

.btn-add-column {
    width: 100%;
    height: 100%;
    border: 2px dashed var(--border-subtle);
    background: transparent;
    color: var(--text-meta);
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    min-height: 100px;
}

.btn-add-column:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: #f8fafc;
}

.btn-add-card {
    width: 100%;
    padding: 8px;
    margin-top: 8px;
    border: 1px dashed var(--border-subtle);
    background: transparent;
    color: var(--text-meta);
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.btn-add-card:hover {
    background: #fff;
    color: var(--accent);
    border-color: var(--accent);
}

/* Drawer Content */
.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-subtle);
}

.drawer-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.drawer-header h2 {
    font-size: 18px;
    font-weight: 600;
}

.btn-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-meta);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}

.btn-close:hover {
    background: #f1f5f9;
    color: var(--text-main);
}

.drawer-body {
    padding: 24px;
}

.drawer-body .section {
    margin-bottom: 24px;
}

.drawer-body .section h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-main);
}

.drawer-body .section h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-meta);
}

.text-meta {
    color: var(--text-meta);
    font-size: 13px;
}

.text-xs {
    font-size: 12px;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 999px;
    background: #f1f5f9;
    color: var(--text-meta);
}

.status-badge.status-open, .status-indicator.status-open {
    color: #3b82f6;
}

.status-badge.status-in_progress, .status-indicator.status-in_progress {
    color: #f59e0b;
}

.status-badge.status-done, .status-indicator.status-done {
    color: #10b981;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
}

.badge-danger {
    background: #fef2f2;
    color: var(--danger);
}

.badge-warning {
    background: #fffbeb;
    color: #d97706;
}

/* Board Empty State */
.board-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 200px;
    color: var(--text-meta);
    font-size: 14px;
}

/* Column Footer */
.column-footer {
    padding: 0 8px 8px;
}

/* Column Actions */
.column-actions {
    display: flex;
    gap: 4px;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 14px;
}

.btn-icon:hover {
    background: rgba(0,0,0,0.05);
}

/* Sortable Ghost */
.sortable-ghost {
    opacity: 0.4;
    background: #e0e7ff !important;
    border: 2px dashed var(--accent) !important;
}

/* Back to Hub Link */
.btn-back-hub {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text-meta);
    text-decoration: none;
}

.btn-back-hub:hover {
    color: var(--text-main);
}

/* Deliverables List */
.deliverables-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.deliverables-list li {
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
}

.audit-logs {
    margin-top: 16px;
}

/* Drawer Form Actions */
.form-actions {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-danger {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    background: #ef4444;
    color: #fff;
    transition: background 0.15s;
}
.btn-danger:hover {
    background: #dc2626;
}

/* Task Meta Grid (Run Mode Drawer) */
.task-meta-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-meta);
}

.meta-value {
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.5;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    font-size: 12px;
    background: #f1f5f9;
    border-radius: 4px;
    color: var(--text-main);
    margin-right: 4px;
    margin-bottom: 4px;
}

/* ── Stage 06: card enhancements ── */

.card-badges {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.badge-optional {
    background: #f0fdf4;
    color: #16a34a;
    font-size: 9px;
}

.card-objective {
    font-size: 12px;
    color: var(--text-meta);
    margin: 4px 0 0;
    line-height: 1.4;
}

.card-progress {
    display: flex;
    align-items: center;
    gap: 4px;
}

.progress-bar-mini {
    width: 40px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}

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

.progress-badge {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    margin-left: 4px;
}

.assignee-avatar {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 11px;
    color: var(--text-meta);
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 999px;
}

.assignee-tag {
    font-size: 13px;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
}

/* Status colors */
.status-badge.status-queued, .status-indicator.status-queued { color: #6b7280; }
.status-badge.status-claimed, .status-indicator.status-claimed { color: #8b5cf6; }
.status-badge.status-blocked, .status-indicator.status-blocked { color: #ef4444; }
.status-badge.status-review, .status-indicator.status-review { color: #f59e0b; }

/* Inline add form in column footer */
.inline-add-form {
    display: flex;
    gap: 4px;
    align-items: center;
}

.inline-add-input {
    flex: 1;
    padding: 6px 8px;
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    font-size: 13px;
    background: #fff;
}

.inline-add-input:focus {
    outline: none;
    border-color: var(--accent);
}

.inline-add-form .btn-add-card {
    width: auto;
    margin: 0;
    padding: 6px 10px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

/* Drawer form sections */
.drawer-form fieldset.form-section {
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.drawer-form legend {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    padding: 0 8px;
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-group.half {
    flex: 1;
}

.drawer-form select {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
}

/* Run mode lists */
.ref-list, .acceptance-list, .deliverables-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ref-list li, .acceptance-list li, .deliverables-checklist li {
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
}

.handoff-text {
    background: #f8fafc;
    border-left: 3px solid var(--accent);
    padding: 12px 16px;
    border-radius: 0 6px 6px 0;
    font-size: 13px;
    line-height: 1.6;
}

/* Activity timeline */
.activity-timeline {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-item {
    display: flex;
    gap: 8px;
    align-items: baseline;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
}

.timeline-actor {
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
    font-size: 11px;
}

.timeline-msg {
    flex: 1;
    color: var(--text-main);
}

.timeline-time {
    color: var(--text-meta);
    font-size: 11px;
    white-space: nowrap;
}

/* ── Auth Pages ── */

.auth-card {
    max-width: 420px;
    margin: 80px auto 0;
    background: var(--panel-bg);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-6);
    text-align: center;
}

.auth-card h2 {
    font-size: 20px;
    margin-bottom: var(--space-2);
}

.auth-card .meta {
    color: var(--text-meta);
    font-size: 14px;
    margin-bottom: var(--space-5);
}

.auth-card form {
    text-align: left;
}

.auth-card button[type="submit"] {
    width: 100%;
    margin-top: var(--space-4);
}

.auth-link {
    margin-top: var(--space-4);
    font-size: 13px;
    color: var(--text-meta);
}

.key-display {
    background: #1e293b;
    border-radius: var(--radius-sm);
    padding: var(--space-3) var(--space-4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: var(--space-4) 0;
}

.key-text {
    font-family: var(--font-mono);
    font-size: 13px;
    color: #10b981;
    word-break: break-all;
    text-align: left;
}

.key-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--radius-sm);
    padding: var(--space-3);
    font-size: 13px;
    color: #92400e;
    margin: var(--space-3) 0;
    text-align: left;
}

.key-input-wrap {
    position: relative;
}

.key-input-wrap input {
    padding-right: 40px;
}

.btn-toggle-vis {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-meta);
    padding: 4px;
}

.btn-toggle-vis:hover {
    color: var(--text-main);
}

.key-type-badge {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    background: #f1f5f9;
    color: var(--text-meta);
}

.key-type-badge.type-agent {
    background: #ede9fe;
    color: #7c3aed;
}

.error-msg {
    color: var(--danger);
    font-size: 13px;
    margin-top: var(--space-2);
    min-height: 20px;
}

@media (max-width: 480px) {
    .auth-card {
        margin: 40px 16px 0;
        padding: var(--space-4);
    }
}

/* ── Task Detail Page ── */

.task-detail-layout {
    max-width: 1100px;
    margin: 0 auto;
    padding: var(--space-5);
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-5);
}

.task-detail-main {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.task-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.detail-card {
    background: var(--panel-bg);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-4);
}

.detail-card h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: var(--space-3);
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-3);
}

.detail-header h1 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.detail-header-badges {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.detail-desc {
    color: var(--text-meta);
    font-size: 14px;
    line-height: 1.6;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
}

.detail-meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.detail-meta-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-meta);
}

.detail-meta-value {
    font-size: 13px;
    color: var(--text-main);
}

.ctx-stage-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.ctx-stage-item {
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    background: #f1f5f9;
    color: var(--text-meta);
}

.ctx-stage-item.current {
    background: var(--accent);
    color: #fff;
}

.ctx-stage-item.done {
    background: #d1fae5;
    color: #065f46;
}

.ctx-stage-arrow {
    color: var(--text-meta);
    font-size: 14px;
}

.parallel-group-card {
    border: 1px solid #e0e7ff;
    background: #f5f3ff;
    border-radius: var(--radius-sm);
    padding: var(--space-3);
    margin-bottom: var(--space-2);
}

.parallel-group-title {
    font-size: 12px;
    font-weight: 600;
    color: #7c3aed;
    margin-bottom: var(--space-2);
}

.parallel-task-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    font-size: 13px;
}

.parallel-task-row .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot.done { background: #10b981; }
.status-dot.in_progress, .status-dot.claimed { background: #f59e0b; }
.status-dot.queued { background: #94a3b8; }
.status-dot.blocked { background: #ef4444; }

.next-action-banner {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-sm);
    padding: var(--space-3);
}

.next-action-type {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #2563eb;
    margin-bottom: 4px;
}

.next-action-msg {
    font-size: 13px;
    color: var(--text-main);
}

.artifact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
}

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

.artifact-type-badge {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    background: #f1f5f9;
    color: var(--text-meta);
}

.artifact-from-stage {
    font-size: 11px;
    color: #8b5cf6;
    background: #ede9fe;
    padding: 1px 5px;
    border-radius: 3px;
}

.timeline-section {
    max-height: 400px;
    overflow-y: auto;
}

.progress-bar-detail {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 4px;
}

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

.detail-action-form {
    margin-top: var(--space-3);
}

.detail-action-form textarea {
    min-height: 60px;
    resize: vertical;
}

.detail-action-form select,
.detail-action-form input {
    margin-bottom: var(--space-2);
}

@media (max-width: 768px) {
    .task-detail-layout {
        grid-template-columns: 1fr;
    }
}

/* ---- Skill Export Panel ---- */
.skill-panel {
    margin-top: 1.5rem;
}
.skill-status-card {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 1rem;
}
.skill-status-card .badge {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}
.badge-success {
    background: var(--green, #22c55e);
    color: #fff;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}
.badge-warning {
    background: var(--amber, #f59e0b);
    color: #fff;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}
.skill-preview pre {
    max-height: 400px;
    overflow-y: auto;
    background: var(--bg-secondary, #f5f5f5);
    padding: 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    line-height: 1.5;
}
.skill-auto-sync-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    cursor: pointer;
}

/* ---- Marketplace ---- */
.marketplace-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}
.marketplace-header {
    margin-bottom: 1.5rem;
}
.marketplace-header h1 {
    margin-bottom: 0.25rem;
}
.marketplace-filters {
    margin-bottom: 1.5rem;
}
.marketplace-filters .filter-form {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}
.marketplace-filters .form-control,
.marketplace-filters .form-select {
    max-width: 250px;
}
.marketplace-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}
.marketplace-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    transition: box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}
.marketplace-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.marketplace-card .card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.marketplace-card .card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}
.marketplace-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}
.marketplace-tag {
    background: var(--bg-secondary, #f0f0f0);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
}
.marketplace-stats {
    display: flex;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.marketplace-detail-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}
.back-link {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--primary);
    text-decoration: none;
}
.detail-header {
    margin-bottom: 1.5rem;
}
.detail-meta {
    margin-bottom: 1.5rem;
}
.detail-actions {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}
.page-info {
    color: var(--text-muted);
    font-size: 0.9rem;
}
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

/* ---- Quota Bar ---- */
.quota-bar {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}
.quota-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}
.quota-label {
    font-weight: 600;
}
.quota-numbers {
    font-size: 0.9rem;
    color: var(--text-muted);
}
.quota-badge {
    font-size: 0.75rem;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
}
.quota-progress {
    height: 6px;
    background: var(--bg-secondary, #e5e5e5);
    border-radius: 3px;
    overflow: hidden;
}
.quota-progress-fill {
    height: 100%;
    background: var(--primary, #3b82f6);
    border-radius: 3px;
    transition: width 0.3s;
}
.quota-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* ---- Notifications ---- */
.notification-bar {
    margin-bottom: 1rem;
}
.notification-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}
.notification-success {
    background: #dcfce7;
    border: 1px solid #86efac;
}
.notification-warning {
    background: #fef3c7;
    border: 1px solid #fcd34d;
}
.notification-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.btn-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 0.5rem;
    color: inherit;
    opacity: 0.6;
}
.btn-close:hover {
    opacity: 1;
}
.badge-info {
    background: var(--primary, #3b82f6);
    color: #fff;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}
.badge-danger {
    background: #ef4444;
    color: #fff;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}
.badge-muted {
    background: #9ca3af;
    color: #fff;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}

/* ---- Modal ---- */
.modal-dialog {
    border: none;
    border-radius: 12px;
    padding: 2rem;
    max-width: 480px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
.modal-dialog::backdrop {
    background: rgba(0,0,0,0.4);
}
.modal-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}
.btn-danger {
    background: #ef4444;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
}
.btn-danger:hover {
    background: #dc2626;
}

/* ========== Auth Modal (Zhihu-style) ========== */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  animation: authFadeIn 0.2s ease;
}
@keyframes authFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.auth-modal {
  position: relative;
  width: 400px;
  max-width: 92vw;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  padding: 32px 28px 24px;
  animation: authSlideUp 0.25s ease;
}
@keyframes authSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.auth-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-meta);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.15s;
  line-height: 1;
}
.auth-modal-close:hover {
  background: var(--bg);
  color: var(--text-main);
}
.auth-modal-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}
.auth-tab {
  flex: 1;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-meta);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
}
.auth-tab:hover {
  color: var(--text-main);
}
.auth-tab.active {
  color: var(--text-main);
  border-bottom-color: var(--text-main);
}
.auth-modal-subtitle {
  font-size: 13px;
  color: var(--text-meta);
  margin: 0 0 16px;
}
.auth-panel .form-group {
  margin-bottom: 16px;
}
.auth-modal-switch {
  text-align: center;
  font-size: 13px;
  color: var(--text-meta);
  margin: 16px 0 0;
}
.auth-modal-switch a {
  font-weight: 500;
}

/* Key result card in modal */
.key-result {
  text-align: center;
  padding: 8px 0;
}
.key-result-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  background: #10b981;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
}
.key-result h3 {
  font-size: 18px;
  margin-bottom: 4px;
}
.key-result .meta {
  font-size: 13px;
  color: #f59e0b;
  margin-bottom: 16px;
}
.key-display {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1e293b;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin: 0;
}
.key-text {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #4ade80;
  word-break: break-all;
  user-select: all;
}
.key-display .btn-copy {
  flex-shrink: 0;
  padding: 4px 10px;
  font-size: 12px;
  background: rgba(255,255,255,0.1);
  color: #e2e8f0;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}
.key-display .btn-copy:hover {
  background: rgba(255,255,255,0.2);
}

@media (max-width: 480px) {
  .auth-modal {
    width: 100%;
    max-width: 100vw;
    border-radius: 12px 12px 0 0;
    margin-top: auto;
    padding: 24px 20px 20px;
  }
  .auth-modal-overlay {
    align-items: flex-end;
  }
}
