:root {
  /* Core palette */
  --bg-body: rgb(3, 5, 10);
  --bg-elevated: rgb(8, 12, 22);
  --bg-panel: rgba(13, 18, 32, 0.78);
  --bg-panel-solid: rgb(13, 18, 32);
  --bg-panel-border: rgba(48, 60, 90, 0.55);
  --bg-panel-border-strong: rgba(64, 80, 120, 0.65);
  --bg-input: rgba(4, 6, 12, 0.65);

  /* Text */
  --text-primary: rgb(244, 242, 236);
  --text-secondary: rgb(148, 156, 172);
  --text-muted: rgb(104, 114, 136);

  /* Accents */
  --accent-solar: rgb(251, 191, 36);
  --accent-solar-bright: rgb(255, 210, 90);
  --accent-solar-dark: rgb(214, 155, 32);
  --accent-green: rgb(52, 211, 153);
  --accent-red: rgb(248, 113, 113);
  --accent-blue: rgb(96, 165, 250);
  --accent-purple: rgb(167, 139, 250);

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Typography */
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", ui-monospace, monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  /* Radius */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.35), 0 4px 6px -4px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 40px rgba(251, 191, 36, 0.12);
  --shadow-glow-strong: 0 0 60px rgba(251, 191, 36, 0.2);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  font-family: var(--font-sans);
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background:
    radial-gradient(ellipse 80% 50% at 50% -15%, rgba(251, 191, 36, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 80% 90%, rgba(96, 165, 250, 0.05), transparent),
    var(--bg-body);
}

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a:hover {
  text-decoration: underline;
}

button {
  font-family: inherit;
}

/* Navigation */
.nav {
  border-bottom: 1px solid var(--bg-panel-border);
  background: rgba(8, 12, 22, 0.72);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.5rem;
}

.nav-brand {
  font-weight: 700;
  font-size: 1.0625rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--text-primary);
}

.nav-brand:hover {
  text-decoration: none;
}

.nav-brand-icon {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent-solar), var(--accent-solar-dark));
  display: grid;
  place-items: center;
  color: rgb(12, 12, 12);
  font-weight: 800;
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.25);
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-full);
  transition: all 0.15s ease;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

.nav-active {
  color: var(--accent-solar);
  background: rgba(251, 191, 36, 0.1);
}

/* Layout */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-6) var(--space-10);
  flex: 1;
  width: 100%;
}

/* Hero */
.hero {
  padding: var(--space-10) var(--space-6) var(--space-16);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    text-align: left;
  }
}

.hero-content {
  text-align: center;
}

@media (min-width: 1024px) {
  .hero-content {
    text-align: left;
  }
}

.hero-sun {
  position: absolute;
  top: -180px;
  right: -120px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.18) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.hero-roof {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.025));
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-full);
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.2);
  color: var(--accent-solar);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-5);
}

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 800;
  margin: 0 0 var(--space-5);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero h1 span {
  color: var(--accent-solar);
}

.hero p {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto var(--space-8);
  line-height: 1.7;
}

@media (min-width: 1024px) {
  .hero p {
    margin-left: 0;
  }
}

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

@media (min-width: 1024px) {
  .hero-actions {
    justify-content: flex-start;
  }
}

/* Hero graphic - CSS solar roof */
.hero-graphic {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}

.hero-sun-core {
  position: absolute;
  top: 10%;
  right: 10%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--accent-solar-bright), var(--accent-solar));
  box-shadow: 0 0 80px rgba(251, 191, 36, 0.45), 0 0 160px rgba(251, 191, 36, 0.2);
}

.hero-sun-rays {
  position: absolute;
  top: 10%;
  right: 10%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
}

.hero-sun-rays::before,
.hero-sun-rays::after {
  content: "";
  position: absolute;
  inset: -30%;
  border-radius: 50%;
  border: 2px dashed rgba(251, 191, 36, 0.25);
  animation: spin 30s linear infinite;
}

.hero-sun-rays::after {
  inset: -55%;
  border-width: 1px;
  opacity: 0.5;
  animation-direction: reverse;
}

.hero-house {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 180px;
}

.hero-house-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 110px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--bg-panel-border-strong);
  border-radius: var(--radius-sm);
}

.hero-house-roof {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 75px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.18), rgba(251, 191, 36, 0.05));
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  display: grid;
  place-items: center;
}

.hero-roof-grid {
  position: absolute;
  top: 28px;
  width: 140px;
  height: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  transform: perspective(80px) rotateX(20deg);
}

.hero-roof-cell {
  background: rgba(251, 191, 36, 0.4);
  border: 1px solid rgba(251, 191, 36, 0.5);
  border-radius: 2px;
}

.hero-house-window {
  position: absolute;
  bottom: 30px;
  left: 30px;
  width: 44px;
  height: 44px;
  background: rgba(96, 165, 250, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 4px;
}

.hero-house-door {
  position: absolute;
  bottom: 0;
  right: 40px;
  width: 38px;
  height: 70px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--bg-panel-border-strong);
  border-bottom: none;
  border-radius: 4px 4px 0 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent-solar-bright), var(--accent-solar));
  color: rgb(12, 12, 12);
  border-color: var(--accent-solar);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, var(--shadow-glow);
}

.btn-primary:hover {
  background: linear-gradient(180deg, var(--accent-solar), var(--accent-solar-dark));
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, var(--shadow-glow-strong);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border-color: var(--bg-panel-border-strong);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-solar);
  color: var(--accent-solar);
  text-decoration: none;
}

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

.btn-ghost:hover {
  border-color: var(--accent-solar);
  color: var(--accent-solar);
  background: rgba(251, 191, 36, 0.05);
  text-decoration: none;
}

.btn-sm {
  padding: 0.375rem 0.875rem;
  font-size: var(--text-xs);
}

.btn-block {
  width: 100%;
}

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

/* Feature cards */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-12);
}

.feature-card {
  background: var(--bg-panel);
  border: 1px solid var(--bg-panel-border);
  border-radius: var(--radius);
  padding: var(--space-6);
  backdrop-filter: blur(12px);
  text-align: left;
  transition: all 0.2s ease;
}

.feature-card:hover {
  border-color: var(--bg-panel-border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  font-size: 1.125rem;
  margin-bottom: var(--space-4);
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.feature-card h3 {
  margin: 0 0 var(--space-2);
  font-size: var(--text-base);
  color: var(--text-primary);
  font-weight: 600;
}

.feature-card p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

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

.page-header h2 {
  margin: 0 0 var(--space-1);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.page-header p {
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

/* Panels */
.panel {
  background: var(--bg-panel);
  border: 1px solid var(--bg-panel-border);
  border-radius: var(--radius);
  padding: var(--space-5);
  backdrop-filter: blur(12px);
  margin-bottom: var(--space-4);
}

.panel:last-child {
  margin-bottom: 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  gap: var(--space-3);
}

.section-header h3 {
  margin: 0;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
}

.section-header-sub {
  margin: 0;
  font-size: var(--text-xs);
  color: var(--text-muted);
}

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

.form-group:last-child {
  margin-bottom: 0;
}

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

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--bg-panel-border);
  border-radius: var(--radius-sm);
  padding: 0.625rem 0.875rem;
  color: var(--text-primary);
  font-size: var(--text-sm);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent-solar);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.12);
}

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

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

@media (min-width: 1024px) {
  .grid-2 {
    grid-template-columns: 380px 1fr;
  }
}

/* Stat cards */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-4);
}

.stat-card {
  background: var(--bg-panel);
  border: 1px solid var(--bg-panel-border);
  border-radius: var(--radius);
  padding: var(--space-5);
}

.stat-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin: 0 0 var(--space-1);
}

.stat-value {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.02em;
}

.stat-value.accent {
  color: var(--accent-solar);
}

.stat-value.green {
  color: var(--accent-green);
}

.stat-unit {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: 500;
  margin-left: var(--space-1);
}

/* Kanban */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.kanban-column {
  background: rgba(8, 11, 20, 0.6);
  border: 1px solid var(--bg-panel-border);
  border-radius: var(--radius);
  padding: var(--space-4);
  min-height: 200px;
}

.kanban-column h4 {
  margin: 0 0 var(--space-4);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kanban-count {
  background: var(--bg-panel);
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  border: 1px solid var(--bg-panel-border);
}

.kanban-card {
  background: var(--bg-panel);
  border: 1px solid var(--bg-panel-border);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.kanban-card:hover {
  border-color: var(--accent-solar);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.kanban-card-title {
  font-weight: 600;
  font-size: var(--text-sm);
  margin: 0 0 var(--space-2);
}

.kanban-card-meta {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  display: flex;
  gap: var(--space-2);
  align-items: center;
  flex-wrap: wrap;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.1875rem 0.625rem;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-high {
  background: rgba(248, 113, 113, 0.12);
  color: var(--accent-red);
  border: 1px solid rgba(248, 113, 113, 0.2);
}

.badge-medium {
  background: rgba(251, 191, 36, 0.12);
  color: var(--accent-solar);
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.badge-low {
  background: rgba(52, 211, 153, 0.12);
  color: var(--accent-green);
  border: 1px solid rgba(52, 211, 203, 0.2);
}

.badge-info {
  background: rgba(96, 165, 250, 0.12);
  color: var(--accent-blue);
  border: 1px solid rgba(96, 165, 250, 0.2);
}

/* Map */
.map-container {
  width: 100%;
  height: 560px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--bg-panel-border);
  background: rgb(8, 11, 20);
  box-shadow: var(--shadow);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: var(--space-10) var(--space-6);
  color: var(--text-secondary);
}

.empty-state-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-4);
  opacity: 0.5;
}

/* List items */
.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4);
  border-bottom: 1px solid var(--bg-panel-border);
  cursor: pointer;
  transition: background 0.15s;
}

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

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

.list-item-title {
  font-weight: 500;
  font-size: var(--text-sm);
}

.list-item-sub {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-top: 0.125rem;
}

.list-item-actions {
  display: flex;
  gap: var(--space-2);
  flex-shrink: 0;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: var(--space-4);
}

.modal {
  background: var(--bg-panel);
  border: 1px solid var(--bg-panel-border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-6);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
}

.modal h3 {
  margin: 0 0 var(--space-4);
}

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

/* Errors & status */
.error-message {
  color: var(--accent-red);
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  padding: var(--space-3) var(--space-4);
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.15);
  border-radius: var(--radius-sm);
}

/* Toasts */
.toast-container {
  position: fixed;
  top: var(--space-4);
  right: var(--space-4);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: 360px;
}

.toast {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 500;
  backdrop-filter: blur(12px);
  border: 1px solid var(--bg-panel-border);
  animation: toast-in 0.2s ease-out;
  box-shadow: var(--shadow-lg);
}

.toast-success {
  background: rgba(52, 211, 153, 0.12);
  color: var(--accent-green);
  border-color: rgba(52, 211, 153, 0.2);
}

.toast-error {
  background: rgba(248, 113, 113, 0.12);
  color: var(--accent-red);
  border-color: rgba(248, 113, 113, 0.2);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(1rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Spinner */
.spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(251, 191, 36, 0.3);
  border-top-color: var(--accent-solar);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Loading state */
.loading-bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

/* Video preview */
.video-preview {
  width: 100%;
  max-height: 220px;
  border-radius: var(--radius-sm);
  margin-top: var(--space-2);
  background: rgb(8, 11, 20);
}

/* Footer */
.footer {
  border-top: 1px solid var(--bg-panel-border);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-top: auto;
}

.footer a {
  color: var(--text-secondary);
}

/* Inline layout utilities */
.inline-actions {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}

.text-secondary {
  color: var(--text-secondary);
}

.text-muted {
  color: var(--text-muted);
}

/* Spacing utilities */
.mt-2 {
  margin-top: var(--space-2);
}

.mt-3 {
  margin-top: var(--space-3);
}

.mt-4 {
  margin-top: var(--space-4);
}

.mb-4 {
  margin-bottom: var(--space-4);
}

.ml-2 {
  margin-left: var(--space-2);
}

/* Stack layouts */
.stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.stack-sm {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* Checkbox / radio labels */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"],
.checkbox-label input[type="radio"] {
  accent-color: var(--accent-solar);
  width: 1rem;
  height: 1rem;
  cursor: pointer;
}

/* Text sizing */
.text-xs {
  font-size: var(--text-xs);
}

.text-sm {
  font-size: var(--text-sm);
}

.step-text {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Preformatted text */
.pre-wrap {
  white-space: pre-wrap;
}

/* Stack extra small */
.stack-xs {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

/* Tables */
.table-wrapper {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.data-table th,
.data-table td {
  padding: 0.5rem;
  border-bottom: 1px solid var(--bg-panel-border);
  text-align: left;
}

.data-table th {
  color: var(--text-secondary);
  font-weight: 600;
}

/* Full-width helpers */
.full-width {
  width: 100%;
}

/* List item variants */
.list-item-vertical {
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-1);
}

/* Responsive */
@media (max-width: 640px) {
  .nav-inner {
    padding: 0.75rem var(--space-4);
  }

  .nav-links {
    gap: 0.125rem;
  }

  .nav-link {
    font-size: var(--text-xs);
    padding: 0.375rem 0.625rem;
  }

  .container {
    padding: var(--space-4) var(--space-4) var(--space-8);
  }

  .hero {
    padding: var(--space-8) var(--space-4) var(--space-12);
  }

  .panel {
    padding: var(--space-4);
  }

  .list-item {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }
}
