/* === Nevis AI Dashboard === */
/* Editorial aesthetic: precise typography, restrained palette, deliberate spacing */

:root {
  --sidebar-bg: #12131a;
  --sidebar-hover: #1e2030;
  --sidebar-active: #272940;
  --sidebar-text: #8b8fa3;
  --sidebar-text-bright: #e4e6f0;
  --sidebar-accent: #6c7aff;

  --content-bg: #fafafa;
  --surface: #ffffff;
  --surface-hover: #f5f5f7;
  --border: #e5e7eb;
  --border-light: #f0f0f2;

  --text-primary: #1a1a2e;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;

  --conf-high: #059669;
  --conf-high-bg: #ecfdf5;
  --conf-medium: #d97706;
  --conf-medium-bg: #fffbeb;
  --conf-derived: #ea580c;
  --conf-derived-bg: #fff7ed;
  --conf-low: #dc2626;
  --conf-low-bg: #fef2f2;
  --conf-notfound: #9ca3af;
  --conf-notfound-bg: #f9fafb;

  --evidence-highlight: #fef3c7;
  --evidence-border: #f59e0b;

  --font-body: 'DM Sans', -apple-system, sans-serif;
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius: 8px;
  --radius-sm: 4px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 15px; }

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--content-bg);
  display: flex;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* === Sidebar === */
.sidebar {
  width: 240px;
  min-height: 100vh;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  overflow-y: auto;
}

.sidebar-header {
  padding: 24px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--sidebar-accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  color: white;
  font-weight: 600;
}

.logo-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--sidebar-text-bright);
  letter-spacing: -0.02em;
}

.logo-subtitle {
  font-size: 11px;
  color: var(--sidebar-text);
  margin-top: 6px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.nav-section {
  padding: 16px 12px 8px;
}

.nav-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--sidebar-text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 8px 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 450;
  border-radius: 6px;
  transition: all 0.15s ease;
  margin-bottom: 2px;
}

.nav-item:hover {
  background: var(--sidebar-hover);
  color: var(--sidebar-text-bright);
}

.nav-item.active {
  background: var(--sidebar-active);
  color: var(--sidebar-text-bright);
}

.nav-icon {
  font-size: 15px;
  opacity: 0.7;
  width: 18px;
  text-align: center;
}

.sidebar-footer {
  margin-top: auto;
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.sidebar-meta {
  font-size: 11px;
  color: var(--sidebar-text);
  line-height: 1.6;
}

/* === Content === */
.content {
  margin-left: 240px;
  flex: 1;
  min-height: 100vh;
  padding: 32px 40px;
  max-width: 1200px;
}

/* === Page Header === */
.page-header {
  margin-bottom: 32px;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.2;
}

.page-header .subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 6px;
}

/* === Cards === */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.card-header {
  display: flex;
  justify-content: between;
  align-items: center;
  margin-bottom: 16px;
}

.card-header h2, .card-header h3 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

/* === Markdown content (PRD) === */
.markdown-body {
  line-height: 1.7;
  font-size: 14.5px;
}

.markdown-body h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.markdown-body h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin: 32px 0 12px;
  color: var(--text-primary);
}

.markdown-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 24px 0 8px;
}

.markdown-body h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 20px 0 6px;
  color: var(--text-secondary);
}

.markdown-body p { margin: 0 0 12px; }

.markdown-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 13.5px;
}

.markdown-body th {
  text-align: left;
  padding: 8px 12px;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  border-bottom: 2px solid var(--border);
  background: var(--surface-hover);
}

.markdown-body td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}

.markdown-body tr:hover td { background: var(--surface-hover); }

.markdown-body code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 3px;
}

.markdown-body pre {
  background: var(--sidebar-bg);
  color: #e4e6f0;
  padding: 16px 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 12px 0;
  font-size: 12.5px;
  line-height: 1.6;
}

.markdown-body pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.markdown-body ul, .markdown-body ol {
  padding-left: 24px;
  margin: 8px 0 12px;
}

.markdown-body li { margin-bottom: 4px; }

.markdown-body strong { font-weight: 600; }

.markdown-body blockquote {
  border-left: 3px solid var(--sidebar-accent);
  padding: 8px 16px;
  margin: 12px 0;
  color: var(--text-secondary);
  background: #f8f9ff;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.markdown-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

/* === Pipeline === */
.pipeline-flow {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 32px 0;
  position: relative;
}

.pipeline-step {
  flex: 1;
  position: relative;
  padding: 24px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
}

.pipeline-step:hover {
  border-color: var(--sidebar-accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.pipeline-step.active {
  border-color: var(--sidebar-accent);
  background: #f8f9ff;
}

.pipeline-arrow {
  display: flex;
  align-items: center;
  padding: 0 8px;
  color: var(--text-muted);
  font-size: 20px;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--sidebar-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.step-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 6px;
}

.step-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.step-tag {
  display: inline-block;
  margin-top: 10px;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.step-tag.code { background: #dbeafe; color: #1d4ed8; }
.step-tag.llm { background: #ede9fe; color: #7c3aed; }

.pipeline-detail {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-top: 20px;
  display: none;
}

.pipeline-detail.visible { display: block; }

.pipeline-detail h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
}

.pipeline-detail ul {
  padding-left: 20px;
  margin: 0;
}

.pipeline-detail li {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.pipeline-detail li code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--text-primary);
}

.pipeline-detail p {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.pipeline-detail blockquote {
  border-left: 3px solid var(--sidebar-accent);
  padding: 8px 16px;
  margin: 12px 0;
  color: var(--text-secondary);
  background: #f8f9ff;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13.5px;
}

.pipeline-detail pre {
  margin: 12px 0;
}

.pipeline-detail table {
  margin: 16px 0;
}

/* === Data Explorer === */
.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.data-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: all 0.15s ease;
  display: block;
}

.data-card:hover {
  border-color: var(--sidebar-accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.data-card-icon {
  font-size: 24px;
  margin-bottom: 12px;
}

.data-card h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.data-card p {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.data-card .tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tag-original { background: #dbeafe; color: #1d4ed8; }
.tag-corpus { background: #fef3c7; color: #92400e; }
.tag-result { background: #d1fae5; color: #065f46; }
.tag-synthetic { background: #fae8ff; color: #a21caf; }

.data-card-more {
  display: flex;
  align-items: center;
  justify-content: center;
  border-style: dashed;
}

/* === Extraction Viewer === */
.extraction-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.cif-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.cif-panel-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cif-panel-header h2 {
  font-size: 14px;
  font-weight: 600;
}

.view-toggle {
  display: flex;
  gap: 4px;
  background: var(--surface-hover);
  padding: 3px;
  border-radius: 6px;
}

.view-toggle button {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border: none;
  background: none;
  border-radius: 4px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.15s;
}

.view-toggle button.active {
  background: var(--surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.cif-section {
  border-bottom: 1px solid var(--border-light);
}

.cif-section-header {
  padding: 12px 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  background: var(--surface-hover);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cif-section-header .chevron {
  transition: transform 0.2s;
}

.cif-section.collapsed .cif-section-body { display: none; }
.cif-section.collapsed .chevron { transform: rotate(-90deg); }

.cif-field {
  display: flex;
  align-items: flex-start;
  padding: 8px 20px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background 0.1s;
  gap: 12px;
}

.cif-field:hover { background: var(--surface-hover); }
.cif-field.highlighted { background: var(--evidence-highlight); }

.cif-field-label {
  font-size: 12px;
  color: var(--text-secondary);
  min-width: 140px;
  flex-shrink: 0;
  padding-top: 2px;
}

.cif-field-value {
  font-size: 13.5px;
  font-weight: 500;
  flex: 1;
}

.cif-field-value.not-found {
  color: var(--text-muted);
  font-style: italic;
  font-weight: 400;
}

.confidence-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  flex-shrink: 0;
}

.confidence-badge.high { background: var(--conf-high-bg); color: var(--conf-high); }
.confidence-badge.medium { background: var(--conf-medium-bg); color: var(--conf-medium); }
.confidence-badge.derived { background: var(--conf-derived-bg); color: var(--conf-derived); }
.confidence-badge.low { background: var(--conf-low-bg); color: var(--conf-low); }
.confidence-badge.not-found { background: var(--conf-notfound-bg); color: var(--conf-notfound); }

.transcript-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-height: 80vh;
  overflow-y: auto;
  position: sticky;
  top: 32px;
}

.transcript-panel-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 10;
}

.transcript-panel-header h2 {
  font-size: 14px;
  font-weight: 600;
}

.transcript-search {
  margin-top: 8px;
  width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 12.5px;
  outline: none;
}

.transcript-search:focus { border-color: var(--sidebar-accent); }

.transcript-body {
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.transcript-line {
  padding: 1px 4px;
  border-radius: 2px;
  transition: background 0.2s;
}

.transcript-line.search-match {
  background: #fef3c7;
}

.transcript-line.search-current {
  background: #fbbf24;
  border-left: 3px solid #d97706;
  padding-left: 8px;
  margin-left: -11px;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.search-bar .transcript-search {
  flex: 1;
  margin-top: 0;
}

.search-clear-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--text-muted);
  padding: 0 4px;
  line-height: 1;
}

.search-clear-btn:hover { color: var(--text-primary); }

.search-counter {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 60px;
  text-align: center;
}

.search-nav-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.1s;
}

.search-nav-btn:hover {
  background: var(--surface-hover);
}

.transcript-line.evidence-highlight {
  background: var(--evidence-highlight);
  border-left: 3px solid var(--evidence-border);
  padding-left: 8px;
  margin-left: -11px;
}

.line-number {
  display: inline-block;
  width: 40px;
  color: var(--text-muted);
  user-select: none;
  text-align: right;
  margin-right: 12px;
  font-size: 11px;
}

/* === Cost Bar === */
.cost-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 24px;
  margin-bottom: 20px;
  display: flex;
  gap: 32px;
  align-items: center;
}

.cost-metric {
  text-align: center;
}

.cost-metric .value {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.cost-metric .label {
  font-size: 10px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* === Logs === */
.log-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.log-table th {
  text-align: left;
  padding: 8px 12px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  border-bottom: 2px solid var(--border);
  background: var(--surface-hover);
}

.log-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-light);
  font-family: var(--font-mono);
  font-size: 12px;
}

.log-table tr:hover td { background: var(--surface-hover); }

.status-success { color: var(--conf-high); }
.status-error { color: var(--conf-low); }

/* === Model Eval === */
.eval-matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 16px 0;
}

.eval-matrix th {
  text-align: left;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  border-bottom: 2px solid var(--border);
  background: var(--surface-hover);
}

.eval-matrix td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-light);
}

.eval-matrix tr:hover td { background: var(--surface-hover); }

.eval-matrix .best { color: var(--conf-high); font-weight: 600; }
.eval-matrix .worst { color: var(--conf-low); }

.eval-matrix .recommended {
  background: var(--conf-high-bg);
}

/* === Run Pipeline Button === */
.btn {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
}

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

.btn-primary:hover { opacity: 0.9; }

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* === Section divider === */
.section-divider {
  margin: 32px 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-divider h2 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  white-space: nowrap;
}

.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* === Utilities === */
.flex { display: flex; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.text-muted { color: var(--text-secondary); }
.text-sm { font-size: 13px; }
.mono { font-family: var(--font-mono); }

/* Pipeline page */
.transcript-select {
  font-family: var(--font-body);
  font-size: 13px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  flex: 1;
}

.pipeline-progress-hidden { display: none; }
.pipeline-log-box {
  max-height: 200px;
  overflow-y: auto;
  padding: 12px;
  background: var(--sidebar-bg);
  color: #e4e6f0;
  border-radius: var(--radius);
  white-space: pre-wrap;
}

/* Logs page */
.cost-bar-inline { border: none; padding: 0; margin-bottom: 16px; }
.log-time { font-size: 10px; }

.log-row-clickable { cursor: pointer; }
.log-row-clickable:hover td { background: var(--conf-high-bg); }

.log-detail-row { display: none; }
.log-detail-row.log-detail-visible { display: table-row; }

.log-detail { padding: 12px 0; }
.log-detail-section { margin-bottom: 16px; }
.log-detail-section h4 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sidebar-accent);
  margin-bottom: 6px;
}

.log-detail-pre {
  background: var(--sidebar-bg);
  color: #e4e6f0;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  max-height: 400px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Extraction page */
.cost-value-sm { font-size: 12px; }
.transcript-empty-msg { padding: 20px; }

.cif-array-item-label {
  padding: 6px 20px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border-light);
  background: #fafafa;
}

.cif-sub-header {
  padding: 8px 20px;
  font-size: 11px;
  font-weight: 600;
  color: var(--sidebar-accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border-light);
}

.field-quote {
  width: 100%;
  padding: 4px 20px 8px;
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
  display: none;
}

.field-quote.visible { display: block; }

/* Login page */
.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--sidebar-bg);
}

.login-card {
  background: var(--surface);
  border-radius: 12px;
  padding: 48px 40px;
  width: 380px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  text-align: center;
}

.login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}

.logo-text-dark {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.login-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.login-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.login-error {
  background: var(--conf-low-bg);
  color: var(--conf-low);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-input {
  font-family: var(--font-mono);
  font-size: 18px;
  text-align: center;
  letter-spacing: 0.15em;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.15s;
}

.login-input:focus {
  border-color: var(--sidebar-accent);
}

.login-btn {
  width: 100%;
  padding: 12px;
  font-size: 14px;
}
