/* ================================================================
   MOWO Design System — Microsoft Palette × Glass-Morphism
   Single source of truth for all styling across Web and Desktop.
   Dark theme by default (:root); light via [data-theme="light"].
   All tokens: --mowo-*, all classes: mowo-*
   Source: docs/mowo-microsoft-design-system-preview.html
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ═══════════════════════════════════════════════════════════════
   § 1  DESIGN TOKENS — DARK THEME (default)
   ═══════════════════════════════════════════════════════════════ */

:root, [data-theme="dark"] {
  /* Backgrounds */
  --mowo-bg-base: #0f0f1a;
  --mowo-bg-deeper: #0a0a12;
  --mowo-bg-surface: rgba(255, 255, 255, 0.025);
  --mowo-bg-glass: rgba(255, 255, 255, 0.06);
  --mowo-bg-glass-hover: rgba(255, 255, 255, 0.09);
  --mowo-bg-glass-active: rgba(255, 255, 255, 0.09);
  --mowo-bg-field: rgba(255, 255, 255, 0.04);
  --mowo-bg-field-focus: rgba(255, 255, 255, 0.06);

  /* Borders */
  --mowo-border: rgba(255, 255, 255, 0.12);
  --mowo-border-hover: rgba(255, 255, 255, 0.18);
  --mowo-border-subtle: rgba(255, 255, 255, 0.04);

  /* Text */
  --mowo-text: #ffffff;
  --mowo-text-secondary: rgba(255, 255, 255, 0.6);
  --mowo-text-muted: rgba(255, 255, 255, 0.32);
  --mowo-text-on-accent: #ffffff;

  /* Accent — MS Logo Blue */
  --mowo-accent: #00a4ef;
  --mowo-accent-hover: #33b5f3;
  --mowo-accent-dim: rgba(0, 164, 239, 0.10);
  --mowo-accent-mid: rgba(0, 164, 239, 0.18);
  --mowo-accent-glow: rgba(0, 164, 239, 0.35);
  --mowo-accent-glow-strong: rgba(0, 164, 239, 0.55);
  --mowo-accent-gradient: linear-gradient(135deg, #00a4ef 0%, #0078d4 100%);

  /* Purple — Teams */
  --mowo-purple: #7b83eb;
  --mowo-purple-dim: rgba(123, 131, 235, 0.10);
  --mowo-purple-mid: rgba(123, 131, 235, 0.18);
  --mowo-purple-glow: rgba(123, 131, 235, 0.30);
  --mowo-purple-gradient: linear-gradient(135deg, #7b83eb 0%, #6264a7 100%);

  /* Blue — Word / Outlook */
  --mowo-blue: #4a90d9;
  --mowo-blue-dim: rgba(74, 144, 217, 0.10);
  --mowo-blue-mid: rgba(74, 144, 217, 0.18);
  --mowo-blue-glow: rgba(74, 144, 217, 0.25);

  /* Cyan — SharePoint Teal */
  --mowo-cyan: #038387;
  --mowo-cyan-dim: rgba(3, 131, 135, 0.10);
  --mowo-cyan-mid: rgba(3, 131, 135, 0.18);
  --mowo-cyan-glow: rgba(3, 131, 135, 0.25);

  /* Green — MS Logo / Excel */
  --mowo-green: #7fba00;
  --mowo-green-dim: rgba(127, 186, 0, 0.10);
  --mowo-green-mid: rgba(127, 186, 0, 0.18);
  --mowo-green-glow: rgba(127, 186, 0, 0.30);

  /* Amber — MS Logo Yellow */
  --mowo-amber: #ffb900;
  --mowo-amber-dim: rgba(255, 185, 0, 0.10);
  --mowo-amber-mid: rgba(255, 185, 0, 0.18);
  --mowo-amber-glow: rgba(255, 185, 0, 0.25);

  /* Red — MS Logo Red */
  --mowo-red: #f25022;
  --mowo-red-dim: rgba(242, 80, 34, 0.10);
  --mowo-red-mid: rgba(242, 80, 34, 0.18);
  --mowo-red-glow: rgba(242, 80, 34, 0.25);

  /* Indigo — Teams Core */
  --mowo-indigo: #6264a7;
  --mowo-indigo-dim: rgba(98, 100, 167, 0.10);
  --mowo-indigo-mid: rgba(98, 100, 167, 0.18);
  --mowo-indigo-glow: rgba(98, 100, 167, 0.25);

  /* Slate — MS Gray */
  --mowo-slate: #a0a0a0;
  --mowo-slate-dim: rgba(160, 160, 160, 0.10);
  --mowo-slate-mid: rgba(160, 160, 160, 0.18);
  --mowo-slate-glow: rgba(160, 160, 160, 0.20);

  /* Gray — Neutral */
  --mowo-gray: #8a8a8a;
  --mowo-gray-dim: rgba(138, 138, 138, 0.10);
  --mowo-gray-mid: rgba(138, 138, 138, 0.18);
  --mowo-gray-glow: rgba(138, 138, 138, 0.20);

  /* Gradients & Decorative */
  --mowo-gradient-card: linear-gradient(135deg, rgba(123, 131, 235, 0.06) 0%, rgba(0, 164, 239, 0.06) 100%);
  --mowo-gradient-bg-orb1: rgba(123, 131, 235, 0.15);
  --mowo-gradient-bg-orb2: rgba(0, 164, 239, 0.10);
  --mowo-gradient-bg-orb3: rgba(123, 131, 235, 0.05);
  --mowo-grid-line: rgba(255, 255, 255, 0.018);

  /* Teal — App accent */
  --mowo-teal: #00d4aa;
  --mowo-teal-dim: rgba(0, 212, 170, 0.12);
  --mowo-teal-mid: rgba(0, 212, 170, 0.20);
  --mowo-teal-glow: rgba(0, 212, 170, 0.30);
  --mowo-teal-gradient: linear-gradient(135deg, #00d4aa, #00a885);

  /* Overlays & Modals */
  --mowo-bg-overlay: rgba(0, 0, 0, 0.55);
  --mowo-bg-modal: rgba(30, 30, 40, 0.95);

  /* Effects */
  --mowo-shadow: 0 4px 32px rgba(0, 0, 0, 0.3);
  --mowo-shadow-glow-accent: 0 0 40px rgba(0, 164, 239, 0.12);
  --mowo-shadow-glow-purple: 0 0 40px rgba(123, 131, 235, 0.10);
  --mowo-blur: blur(24px);

  /* Radii */
  --mowo-radius-xl: 20px;
  --mowo-radius-lg: 16px;
  --mowo-radius-md: 12px;
  --mowo-radius-sm: 8px;
  --mowo-radius-pill: 100px;

  /* Typography */
  --mowo-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mowo-font-mono: 'JetBrains Mono', 'Cascadia Code', monospace;
}

/* ═══════════════════════════════════════════════════════════════
   § 2  DESIGN TOKENS — LIGHT THEME
   ═══════════════════════════════════════════════════════════════ */

[data-theme="light"] {
  --mowo-bg-base: #f0f1f5;
  --mowo-bg-deeper: #e4e6ec;
  --mowo-bg-surface: rgba(255, 255, 255, 0.55);
  --mowo-bg-glass: rgba(255, 255, 255, 0.60);
  --mowo-bg-glass-hover: rgba(255, 255, 255, 0.78);
  --mowo-bg-glass-active: rgba(255, 255, 255, 0.92);
  --mowo-bg-field: rgba(0, 0, 0, 0.025);
  --mowo-bg-field-focus: rgba(0, 0, 0, 0.04);

  --mowo-border: rgba(0, 0, 0, 0.07);
  --mowo-border-hover: rgba(0, 0, 0, 0.13);
  --mowo-border-subtle: rgba(0, 0, 0, 0.035);

  --mowo-text: #333333;
  --mowo-text-secondary: #5a5a5a;
  --mowo-text-muted: #999999;
  --mowo-text-on-accent: #ffffff;

  --mowo-accent: #0078d4;
  --mowo-accent-hover: #106ebe;
  --mowo-accent-dim: rgba(0, 120, 212, 0.07);
  --mowo-accent-mid: rgba(0, 120, 212, 0.14);
  --mowo-accent-glow: rgba(0, 120, 212, 0.18);
  --mowo-accent-glow-strong: rgba(0, 120, 212, 0.35);
  --mowo-accent-gradient: linear-gradient(135deg, #0078d4 0%, #005a9e 100%);

  --mowo-purple: #6264a7;
  --mowo-purple-dim: rgba(98, 100, 167, 0.06);
  --mowo-purple-mid: rgba(98, 100, 167, 0.12);
  --mowo-purple-glow: rgba(98, 100, 167, 0.15);
  --mowo-purple-gradient: linear-gradient(135deg, #7b83eb 0%, #6264a7 100%);

  --mowo-blue: #185abd;
  --mowo-blue-dim: rgba(24, 90, 189, 0.06);
  --mowo-blue-mid: rgba(24, 90, 189, 0.12);
  --mowo-blue-glow: rgba(24, 90, 189, 0.12);

  --mowo-cyan: #026d70;
  --mowo-cyan-dim: rgba(2, 109, 112, 0.08);
  --mowo-cyan-mid: rgba(2, 109, 112, 0.16);
  --mowo-cyan-glow: rgba(2, 109, 112, 0.14);

  --mowo-green: #107c10;
  --mowo-green-dim: rgba(16, 124, 16, 0.08);
  --mowo-green-mid: rgba(16, 124, 16, 0.16);
  --mowo-green-glow: rgba(16, 124, 16, 0.18);

  --mowo-amber: #d48c00;
  --mowo-amber-dim: rgba(212, 140, 0, 0.08);
  --mowo-amber-mid: rgba(212, 140, 0, 0.16);
  --mowo-amber-glow: rgba(212, 140, 0, 0.20);

  --mowo-red: #d13438;
  --mowo-red-dim: rgba(209, 52, 56, 0.06);
  --mowo-red-mid: rgba(209, 52, 56, 0.12);
  --mowo-red-glow: rgba(209, 52, 56, 0.12);

  --mowo-indigo: #5b5fc7;
  --mowo-indigo-dim: rgba(91, 95, 199, 0.07);
  --mowo-indigo-mid: rgba(91, 95, 199, 0.14);
  --mowo-indigo-glow: rgba(91, 95, 199, 0.12);

  --mowo-slate: #616161;
  --mowo-slate-dim: rgba(97, 97, 97, 0.07);
  --mowo-slate-mid: rgba(97, 97, 97, 0.14);
  --mowo-slate-glow: rgba(97, 97, 97, 0.10);

  --mowo-gray: #737373;
  --mowo-gray-dim: rgba(115, 115, 115, 0.07);
  --mowo-gray-mid: rgba(115, 115, 115, 0.14);
  --mowo-gray-glow: rgba(115, 115, 115, 0.10);

  --mowo-gradient-card: linear-gradient(135deg, rgba(98, 100, 167, 0.04) 0%, rgba(0, 120, 212, 0.04) 100%);
  --mowo-gradient-bg-orb1: rgba(98, 100, 167, 0.08);
  --mowo-gradient-bg-orb2: rgba(0, 120, 212, 0.06);
  --mowo-gradient-bg-orb3: rgba(98, 100, 167, 0.03);
  --mowo-grid-line: rgba(0, 0, 0, 0.025);

  --mowo-teal: #009d80;
  --mowo-teal-dim: rgba(0, 157, 128, 0.08);
  --mowo-teal-mid: rgba(0, 157, 128, 0.16);
  --mowo-teal-glow: rgba(0, 157, 128, 0.20);
  --mowo-teal-gradient: linear-gradient(135deg, #009d80, #007a64);

  --mowo-bg-overlay: rgba(0, 0, 0, 0.35);
  --mowo-bg-modal: rgba(255, 255, 255, 0.95);

  --mowo-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  --mowo-shadow-glow-accent: 0 4px 32px rgba(0, 120, 212, 0.10);
  --mowo-shadow-glow-purple: 0 4px 32px rgba(98, 100, 167, 0.08);
}

/* ═══════════════════════════════════════════════════════════════
   § 3  BASE ELEMENT STYLES
   ═══════════════════════════════════════════════════════════════ */

body {
  font-family: var(--mowo-font);
  background: var(--mowo-bg-base);
  color: var(--mowo-text);
  line-height: 1.5;
  transition: background 0.5s ease, color 0.4s ease;
}

h1, h2, h3, h4, h5, h6 {
  border: none;
  outline: none;
}

/* ═══════════════════════════════════════════════════════════════
   § 4  AMBIENT BACKGROUND & GRID OVERLAY
   ═══════════════════════════════════════════════════════════════ */

.mowo-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 18% 18%, var(--mowo-gradient-bg-orb1) 0%, transparent 50%),
    radial-gradient(ellipse at 82% 82%, var(--mowo-gradient-bg-orb2) 0%, transparent 50%),
    radial-gradient(ellipse at 48% 50%, var(--mowo-gradient-bg-orb3) 0%, transparent 65%);
  animation: mowo-orbPulse 14s ease-in-out infinite;
}

@keyframes mowo-orbPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.mowo-grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--mowo-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--mowo-grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
}

/* ═══════════════════════════════════════════════════════════════
   § 5  GLASS CARD & SURFACE
   ═══════════════════════════════════════════════════════════════ */

.mowo-card {
  background: var(--mowo-bg-glass);
  backdrop-filter: var(--mowo-blur);
  -webkit-backdrop-filter: var(--mowo-blur);
  border: 1px solid var(--mowo-border);
  border-radius: var(--mowo-radius-lg);
  box-shadow: var(--mowo-shadow);
  transition: all 0.3s;
}
.mowo-card:hover {
  border-color: var(--mowo-border-hover);
}

.mowo-surface {
  background: var(--mowo-bg-surface);
  backdrop-filter: var(--mowo-blur);
  -webkit-backdrop-filter: var(--mowo-blur);
  border: 1px solid var(--mowo-border);
}

.mowo-hero-glass {
  background: var(--mowo-bg-glass);
  backdrop-filter: var(--mowo-blur);
  -webkit-backdrop-filter: var(--mowo-blur);
  border: 1px solid var(--mowo-border);
  border-radius: var(--mowo-radius-xl);
  padding: 24px;
  box-shadow: var(--mowo-shadow);
}
[data-theme="light"] .mowo-hero-glass {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: var(--mowo-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.mowo-card-gradient-top {
  position: relative;
}
.mowo-card-gradient-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--mowo-accent-gradient);
  border-radius: 2px;
}

/* — Asset/Verification Detail header — */
.mowo-detail-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; }
.mowo-detail-header-text { flex: 1; min-width: 0; }
.mowo-detail-header h2 { margin: 0 0 0.25rem 0; font-size: 1.75rem; font-weight: 600; color: var(--mowo-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.mowo-detail-serial-line { font-family: var(--mowo-font-mono); font-size: 0.9rem; color: var(--mowo-text-muted); margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: nowrap; }
.mowo-detail-serial-line > * { flex-shrink: 0; }
.mowo-detail-serial-line .mowo-inline-value,
.mowo-detail-serial-line .mowo-inline-edit { font-family: var(--mowo-font-mono); }
.mowo-detail-serial-line .mowo-inline-edit { width: auto; max-width: 280px; }
.mowo-detail-serial-line input[type="text"] { width: auto; max-width: 280px; }
.mowo-detail-pills { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.mowo-detail-device-image { width: 120px; height: 80px; object-fit: contain; opacity: 0.85; flex-shrink: 0; }
@media (max-width: 768px) { .mowo-detail-device-image { display: none; } }

/* — Detail field grid (3-col, 1px gap borders) — */
.mowo-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--mowo-border, rgba(255, 255, 255, 0.08));
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.3);
}
[data-theme="light"] .mowo-detail-grid {
  background: var(--mowo-border, rgba(0, 0, 0, 0.07));
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
}
.mowo-detail-cell {
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 16px;
  transition: all 0.25s ease;
}
.mowo-detail-cell:hover {
  background: rgba(255, 255, 255, 0.065);
}
[data-theme="light"] .mowo-detail-cell {
  background: rgba(255, 255, 255, 0.60);
}
[data-theme="light"] .mowo-detail-cell:hover {
  background: rgba(255, 255, 255, 0.78);
}
.mowo-detail-cell-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--mowo-text-muted);
  margin-bottom: 4px;
}
.mowo-detail-cell-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--mowo-text-primary);
}
.mowo-detail-cell-value.mono {
  font-family: var(--mowo-font-mono);
  font-size: 13px;
}

/* ═══════════════════════════════════════════════════════════════
   § 6  FIELDS & INPUTS
   ═══════════════════════════════════════════════════════════════ */

.mowo-field {
  background: var(--mowo-bg-field);
  border: 1px solid var(--mowo-border);
  border-radius: var(--mowo-radius-sm);
  color: var(--mowo-text);
  font-family: var(--mowo-font);
  padding: 8px 12px;
  transition: border-color 0.2s;
}
.mowo-field:focus {
  outline: none;
  border-color: var(--mowo-accent);
  box-shadow: 0 0 0 2px var(--mowo-accent-dim);
}

.mowo-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--mowo-text-muted);
  margin-bottom: 4px;
}

.mowo-input {
  display: block;
  width: 100%;
  padding: 8px 12px;
  background: var(--mowo-bg-field);
  border: 1px solid var(--mowo-border);
  border-radius: var(--mowo-radius-sm);
  color: var(--mowo-text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}
.mowo-input:focus {
  border-color: var(--mowo-accent);
}

.mowo-inline-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--mowo-text);
  font-family: var(--mowo-font-mono);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid transparent;
  background: transparent;
  transition: border-color 0.15s, background 0.15s;
  min-width: 60px;
  text-align: right;
}
.mowo-inline-value:hover {
  border-color: var(--mowo-border-hover);
  background: var(--mowo-bg-field);
}

.mowo-inline-edit {
  font-size: 14px;
  font-weight: 500;
  color: var(--mowo-text);
  font-family: var(--mowo-font-mono);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--mowo-border);
  background: var(--mowo-bg-field);
  outline: none;
  text-align: right;
  width: 100%;
  max-width: 200px;
  transition: border-color 0.15s, background 0.15s;
}
.mowo-inline-edit:focus {
  border-color: var(--mowo-accent);
  background: var(--mowo-accent-dim);
}
select.mowo-inline-edit {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  padding-right: 24px;
}
/* Ghost select — blends in at rest, reveals on hover/focus/active */
select.mowo-inline-edit.mowo-inline-ghost {
  background-color: transparent;
  background-image: none;
  border-color: transparent;
}
select.mowo-inline-edit.mowo-inline-ghost:hover,
select.mowo-inline-edit.mowo-inline-ghost:focus,
select.mowo-inline-edit.mowo-inline-ghost:active {
  background-color: var(--mowo-bg-field);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  border-color: var(--mowo-border);
}

/* ═══════════════════════════════════════════════════════════════
   § 7  FIELD GRIDS (inline-edit panels)
   ═══════════════════════════════════════════════════════════════ */

.mowo-field-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.mowo-field-grid > div {
  padding: 6px 10px;
  background: var(--mowo-bg-field);
  border-radius: var(--mowo-radius-sm);
}

.mowo-field-cell {
  background: var(--mowo-bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 16px;
  transition: all 0.25s;
  position: relative;
}
.mowo-field-cell:hover {
  background: var(--mowo-bg-glass-hover);
}

.mowo-field-cell-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--mowo-text-muted);
  margin-bottom: 4px;
}

.mowo-field-cell-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--mowo-text);
}
.mowo-field-cell-value.mowo-mono {
  font-family: var(--mowo-font-mono);
  font-size: 13px;
}

.mowo-field-cell-value[contenteditable="true"] {
  cursor: text;
  padding: 3px 8px;
  margin: -3px -8px;
  border-radius: var(--mowo-radius-sm);
  border: 1px solid transparent;
  outline: none;
  transition: all 0.3s;
}
.mowo-field-cell-value[contenteditable="true"]:hover {
  background: var(--mowo-bg-field);
  border-color: var(--mowo-border);
}
.mowo-field-cell-value[contenteditable="true"]:focus {
  background: var(--mowo-bg-field-focus);
  border-color: var(--mowo-accent);
  box-shadow: 0 0 0 3px var(--mowo-accent-dim), 0 0 24px var(--mowo-accent-glow);
}

.mowo-field-cell.mowo-changed::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mowo-amber);
  box-shadow: 0 0 8px var(--mowo-amber-glow);
}

/* ═══════════════════════════════════════════════════════════════
   § 8  BUTTONS
   ═══════════════════════════════════════════════════════════════ */

.mowo-btn {
  padding: 8px 16px;
  border: none;
  border-radius: var(--mowo-radius-sm);
  font-family: var(--mowo-font);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.mowo-btn-accent,
.mowo-btn-primary {
  padding: 14px 28px;
  background: var(--mowo-accent-gradient);
  color: var(--mowo-text-on-accent);
  font-family: var(--mowo-font);
  font-size: 14px;
  font-weight: 800;
  border: none;
  border-radius: var(--mowo-radius-lg);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
  box-shadow: 0 6px 28px var(--mowo-accent-glow);
  letter-spacing: -0.01em;
}
.mowo-btn-accent:hover,
.mowo-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px var(--mowo-accent-glow-strong);
}
.mowo-btn-accent:active,
.mowo-btn-primary:active {
  transform: translateY(-1px);
}

.mowo-btn-glass,
.mowo-btn-ghost {
  padding: 10px 20px;
  background: var(--mowo-bg-glass);
  border: 1px solid var(--mowo-border);
  border-radius: var(--mowo-radius-md);
  color: var(--mowo-text-muted);
  font-family: var(--mowo-font);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.mowo-btn-glass:hover,
.mowo-btn-ghost:hover {
  background: var(--mowo-bg-glass-hover);
  color: var(--mowo-text-secondary);
  border-color: var(--mowo-border-hover);
  transform: translateY(-1px);
}

.mowo-btn-red {
  padding: 8px 16px;
  background: var(--mowo-red-dim);
  color: var(--mowo-red);
  border: 1px solid var(--mowo-red-mid);
  border-radius: var(--mowo-radius-sm);
  font-family: var(--mowo-font);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s;
}
.mowo-btn-red:hover {
  background: var(--mowo-red-mid);
  border-color: var(--mowo-red);
  transform: translateY(-1px);
}

.mowo-detail-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.mowo-icon-btn {
  width: 34px;
  height: 34px;
  background: var(--mowo-bg-glass);
  border: 1px solid var(--mowo-border);
  border-radius: var(--mowo-radius-sm);
  color: var(--mowo-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: all 0.25s ease;
  backdrop-filter: var(--mowo-blur);
  -webkit-backdrop-filter: var(--mowo-blur);
}
.mowo-icon-btn:hover {
  background: var(--mowo-bg-glass-hover);
  color: var(--mowo-accent);
  border-color: var(--mowo-accent-mid);
  box-shadow: 0 0 16px var(--mowo-accent-glow);
  transform: translateY(-1px);
}

.mowo-edit-link {
  background: none;
  border: none;
  color: var(--mowo-text-muted);
  font-family: var(--mowo-font);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  padding: 3px 8px;
  border-radius: var(--mowo-radius-sm);
  transition: all 0.2s;
}
.mowo-edit-link:hover {
  color: var(--mowo-accent);
  background: var(--mowo-accent-dim);
}

/* ═══════════════════════════════════════════════════════════════
   § 9  PILL BADGES
   ═══════════════════════════════════════════════════════════════ */

.mowo-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 14px;
  border-radius: var(--mowo-radius-pill);
  font-size: 12px;
  font-weight: 600;
  transition: all 0.25s;
}
.mowo-pill:hover {
  transform: translateY(-1px);
}

.mowo-pill-accent  { background: var(--mowo-accent-dim); color: var(--mowo-accent); border: 1px solid var(--mowo-accent-mid); box-shadow: 0 0 10px var(--mowo-accent-glow); }
.mowo-pill-purple  { background: var(--mowo-purple-dim); color: var(--mowo-purple); border: 1px solid var(--mowo-purple-mid); box-shadow: 0 0 8px var(--mowo-purple-glow); }
.mowo-pill-blue    { background: var(--mowo-blue-dim); color: var(--mowo-blue); border: 1px solid var(--mowo-blue-mid); }
.mowo-pill-cyan    { background: var(--mowo-cyan-dim); color: var(--mowo-cyan); border: 1px solid var(--mowo-cyan-mid); }
.mowo-pill-green   { background: var(--mowo-green-dim); color: var(--mowo-green); border: 1px solid var(--mowo-green-mid); box-shadow: 0 0 10px var(--mowo-green-glow); }
.mowo-pill-amber   { background: var(--mowo-amber-dim); color: var(--mowo-amber); border: 1px solid var(--mowo-amber-mid); box-shadow: 0 0 8px var(--mowo-amber-glow); }
.mowo-pill-red     { background: var(--mowo-red-dim); color: var(--mowo-red); border: 1px solid var(--mowo-red-mid); }
.mowo-pill-indigo  { background: var(--mowo-indigo-dim); color: var(--mowo-indigo); border: 1px solid var(--mowo-indigo-mid); }
.mowo-pill-slate   { background: var(--mowo-slate-dim); color: var(--mowo-slate); border: 1px solid var(--mowo-slate-mid); }
.mowo-pill-gray    { background: var(--mowo-gray-dim); color: var(--mowo-gray); border: 1px solid var(--mowo-gray-mid); }
.mowo-pill-teal    { background: var(--mowo-teal-dim); color: var(--mowo-teal); border: 1px solid var(--mowo-teal-mid); }

/* ═══════════════════════════════════════════════════════════════
   § 10  TIMELINE NODES (36px squares)
   ═══════════════════════════════════════════════════════════════ */

.mowo-node {
  width: 36px;
  height: 36px;
  border-radius: var(--mowo-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: transform 0.2s, box-shadow 0.3s;
}
.mowo-node:hover {
  transform: scale(1.1);
}
.mowo-node svg {
  width: 18px;
  height: 18px;
  color: white;
  stroke-width: 2.5;
  fill: none;
  stroke: currentColor;
}

.mowo-node-accent { background: var(--mowo-accent); box-shadow: 0 4px 16px var(--mowo-accent-glow); }
.mowo-node-blue   { background: var(--mowo-blue);   box-shadow: 0 4px 16px var(--mowo-blue-glow); }
.mowo-node-cyan   { background: var(--mowo-cyan);   box-shadow: 0 4px 16px var(--mowo-cyan-glow); }
.mowo-node-purple { background: var(--mowo-purple); box-shadow: 0 4px 16px var(--mowo-purple-glow); }
.mowo-node-green  { background: var(--mowo-green);  box-shadow: 0 4px 16px var(--mowo-green-glow); }
.mowo-node-amber  { background: var(--mowo-amber);  box-shadow: 0 4px 16px var(--mowo-amber-glow); }
.mowo-node-red    { background: var(--mowo-red);    box-shadow: 0 4px 16px var(--mowo-red-glow); }
.mowo-node-indigo { background: var(--mowo-indigo); box-shadow: 0 4px 16px var(--mowo-indigo-glow); }
.mowo-node-slate  { background: var(--mowo-slate);  box-shadow: 0 4px 16px var(--mowo-slate-glow); }
.mowo-node-gray   { background: var(--mowo-gray);   box-shadow: 0 4px 16px var(--mowo-gray-glow); }

/* ═══════════════════════════════════════════════════════════════
   § 11  EVENT TIMELINE & EVENT CARDS
   ═══════════════════════════════════════════════════════════════ */

/* Timeline container */
.mowo-timeline {
  position: relative;
  padding-left: 44px;
}
.mowo-timeline::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: linear-gradient(180deg, var(--mowo-accent) 0%, var(--mowo-purple) 50%, var(--mowo-green) 100%);
  opacity: 0.3;
  border-radius: 2px;
}

/* Timeline event item */
.mowo-timeline-item {
  position: relative;
  margin-bottom: 8px;
  animation: mowo-eventIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.mowo-timeline-item:nth-child(1) { animation-delay: 0.06s; }
.mowo-timeline-item:nth-child(2) { animation-delay: 0.12s; }
.mowo-timeline-item:nth-child(3) { animation-delay: 0.18s; }
.mowo-timeline-item:nth-child(4) { animation-delay: 0.24s; }
.mowo-timeline-item:nth-child(5) { animation-delay: 0.30s; }
.mowo-timeline-item:nth-child(6) { animation-delay: 0.36s; }
.mowo-timeline-item:nth-child(7) { animation-delay: 0.42s; }
.mowo-timeline-item:nth-child(8) { animation-delay: 0.48s; }

@keyframes mowo-eventIn {
  from { opacity: 0; transform: translateX(-12px) translateY(4px); }
  to   { opacity: 1; transform: translateX(0) translateY(0); }
}

/* Timeline sort row */
.mowo-timeline-sort-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.mowo-btn-sort {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px !important;
  font-size: 11px !important;
  font-weight: 500;
  cursor: pointer;
}

/* Timeline node (positioned) */
.mowo-timeline-node {
  position: absolute;
  left: -44px;
  top: 14px;
}

/* Event card (glass) */
.mowo-event-card {
  background: var(--mowo-bg-glass);
  backdrop-filter: var(--mowo-blur);
  -webkit-backdrop-filter: var(--mowo-blur);
  border: 1px solid var(--mowo-border);
  border-radius: var(--mowo-radius-lg);
  overflow: hidden;
  transition: all 0.3s;
  box-shadow: var(--mowo-shadow);
}
[data-theme="light"] .mowo-event-card {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: var(--mowo-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.mowo-event-card:hover {
  border-color: var(--mowo-border-hover);
  transform: translateX(4px) translateY(-2px);
}

/* Event card gradient top bar */
.mowo-event-card::before {
  content: '';
  display: block;
  height: 3px;
  opacity: 0.6;
  transition: opacity 0.3s;
}
.mowo-event-card:hover::before {
  opacity: 1;
}

/* Color-specific gradient tops */
.mowo-event-blue .mowo-event-card::before   { background: linear-gradient(90deg, var(--mowo-blue), var(--mowo-cyan)); }
.mowo-event-cyan .mowo-event-card::before   { background: linear-gradient(90deg, var(--mowo-cyan), var(--mowo-blue)); }
.mowo-event-green .mowo-event-card::before  { background: linear-gradient(90deg, var(--mowo-green), var(--mowo-accent)); }
.mowo-event-amber .mowo-event-card::before  { background: linear-gradient(90deg, var(--mowo-amber), var(--mowo-red)); }
.mowo-event-red .mowo-event-card::before    { background: linear-gradient(90deg, var(--mowo-red), var(--mowo-amber)); }
.mowo-event-purple .mowo-event-card::before { background: linear-gradient(90deg, var(--mowo-purple), var(--mowo-accent)); }
.mowo-event-indigo .mowo-event-card::before { background: linear-gradient(90deg, var(--mowo-indigo), var(--mowo-purple)); }
.mowo-event-slate .mowo-event-card::before  { background: linear-gradient(90deg, var(--mowo-slate), var(--mowo-purple)); }

/* Event card sections */
.mowo-event-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 8px;
  flex-wrap: wrap;
  gap: 6px;
}

.mowo-event-type-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mowo-event-pill {
  padding: 3px 12px;
  border-radius: var(--mowo-radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.mowo-event-pill-blue   { background: var(--mowo-blue-dim);   color: var(--mowo-blue); }
.mowo-event-pill-cyan   { background: var(--mowo-cyan-dim);   color: var(--mowo-cyan); }
.mowo-event-pill-purple { background: var(--mowo-purple-dim); color: var(--mowo-purple); }
.mowo-event-pill-green  { background: var(--mowo-green-dim);  color: var(--mowo-green); }
.mowo-event-pill-amber  { background: var(--mowo-amber-dim);  color: var(--mowo-amber); }
.mowo-event-pill-red    { background: var(--mowo-red-dim);    color: var(--mowo-red); }
.mowo-event-pill-indigo { background: var(--mowo-indigo-dim); color: var(--mowo-indigo); }
.mowo-event-pill-slate  { background: var(--mowo-slate-dim);  color: var(--mowo-slate); }

.mowo-event-transition {
  font-size: 11px;
  color: var(--mowo-text-muted);
}
.mowo-event-transition b {
  color: var(--mowo-text-secondary);
  font-weight: 600;
}

.mowo-event-date {
  font-family: var(--mowo-font-mono);
  font-size: 11px;
  color: var(--mowo-text-muted);
}

.mowo-event-body {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  padding: 4px 16px 12px;
}
.mowo-event-body.mowo-wide {
  grid-template-columns: 1fr;
}

.mowo-event-body > div {
  padding: 6px 10px;
  background: var(--mowo-bg-field);
  border-radius: var(--mowo-radius-sm);
}

.mowo-event-detail-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mowo-text-muted);
  margin-bottom: 2px;
}

.mowo-event-detail-value {
  font-size: 12px;
  color: var(--mowo-text-secondary);
  margin-top: 1px;
}

.mowo-event-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 16px;
  background: var(--mowo-bg-field);
  border-top: 1px solid var(--mowo-border-subtle);
}

/* ═══════════════════════════════════════════════════════════════
   § 12  PROGRESS BARS
   ═══════════════════════════════════════════════════════════════ */

.mowo-progress-track {
  width: 100%;
  height: 4px;
  background: var(--mowo-bg-glass-active);
  border-radius: 10px;
  overflow: hidden;
}

.mowo-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--mowo-accent), var(--mowo-purple));
  border-radius: 10px;
  box-shadow: 0 0 8px var(--mowo-accent-glow);
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ═══════════════════════════════════════════════════════════════
   § 13  NAVIGATION TABS
   ═══════════════════════════════════════════════════════════════ */

.mowo-nav-tabs {
  display: flex;
  gap: 2px;
  background: var(--mowo-bg-glass);
  padding: 3px;
  border-radius: var(--mowo-radius-sm);
  border: 1px solid var(--mowo-border);
}

.mowo-ntab {
  padding: 5px 12px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--mowo-text-muted);
  font-family: var(--mowo-font);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.mowo-ntab:hover {
  color: var(--mowo-text-secondary);
}
.mowo-ntab.active {
  background: var(--mowo-accent-gradient);
  color: var(--mowo-text-on-accent);
}

/* ═══════════════════════════════════════════════════════════════
   § 14  SECTION SEPARATORS
   ═══════════════════════════════════════════════════════════════ */

.mowo-section-sep {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0 14px;
}
.mowo-section-sep-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.mowo-section-sep-label.accent { color: var(--mowo-accent); }
.mowo-section-sep-label.green { color: var(--mowo-green); }
.mowo-section-sep-label.purple { color: #8b5cf6; }
.mowo-section-sep-label.amber { color: var(--mowo-amber); }
.mowo-section-sep-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 212, 170, 0.18), rgba(255, 255, 255, 0.04));
}
.mowo-section-sep.mowo-section-sep-lg {
  margin-top: 40px;
}

.mowo-section-header {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mowo-text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   § 15  CALLOUT
   ═══════════════════════════════════════════════════════════════ */

.mowo-callout {
  background: var(--mowo-amber-dim);
  border: 1px solid var(--mowo-amber-mid);
  border-radius: var(--mowo-radius-md);
  padding: 12px 16px;
  font-size: 12px;
  color: var(--mowo-text-secondary);
  margin: 16px 0;
  box-shadow: 0 0 16px var(--mowo-amber-glow);
}
.mowo-callout strong {
  color: var(--mowo-amber);
}

.mowo-callout-info {
  background: var(--mowo-accent-dim);
  border: 1px solid var(--mowo-accent-mid);
  border-radius: var(--mowo-radius-md);
  padding: 12px 16px;
  font-size: 12px;
  color: var(--mowo-text-secondary);
  margin: 16px 0;
  box-shadow: 0 0 16px var(--mowo-accent-glow);
}
.mowo-callout-info strong {
  color: var(--mowo-accent);
}

/* ═══════════════════════════════════════════════════════════════
   § 16  CHECKBOX
   ═══════════════════════════════════════════════════════════════ */

.mowo-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 11px;
  color: var(--mowo-text-muted);
  font-weight: 500;
}

.mowo-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid var(--mowo-border);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  background: transparent;
  transition: all 0.25s;
  flex-shrink: 0;
}

.mowo-checkbox input:checked {
  background: var(--mowo-accent-gradient);
  border-color: var(--mowo-accent);
  box-shadow: 0 0 8px var(--mowo-accent-glow);
}

.mowo-checkbox input:checked::after {
  content: '\2713';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--mowo-text-on-accent);
  font-size: 10px;
  font-weight: 800;
}

/* ═══════════════════════════════════════════════════════════════
   § 17  SIDEBAR & NAV
   ═══════════════════════════════════════════════════════════════ */

.mowo-sidebar {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid rgba(0, 0, 0, 0.06);
}
[data-theme="dark"] .mowo-sidebar {
  background: rgba(255, 255, 255, 0.025);
  border-right-color: var(--mowo-border);
}

/* Nav component */
.mowo-nav {
  height: 100%;
  position: relative;
  z-index: 2;
  transition: width 0.3s ease;
}
.mowo-nav--expanded { width: 256px; }
.mowo-nav--collapsed { width: 80px; }

.mowo-nav-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Header / Logo */
.mowo-nav-header {
  display: flex;
  align-items: center;
  padding: 16px;
  gap: 10px;
  border-bottom: 1px solid var(--mowo-border);
}
.mowo-nav-logo-img {
  height: 28px;
  flex-shrink: 0;
}
.mowo-nav-logo-text {
  font-family: var(--mowo-font);
  font-size: 20px;
  font-weight: 800;
  color: var(--mowo-text);
  letter-spacing: 0.06em;
}
.mowo-nav-toggle {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  color: var(--mowo-text-muted);
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mowo-nav-toggle:hover {
  background: var(--mowo-bg-glass-hover);
  color: var(--mowo-text-secondary);
}

/* Nav body (scrollable) */
.mowo-nav-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mowo-nav-body::-webkit-scrollbar { width: 4px; }
.mowo-nav-body::-webkit-scrollbar-thumb {
  background: var(--mowo-border);
  border-radius: 2px;
}

/* Section labels */
.mowo-nav-label {
  padding: 16px 10px 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mowo-text-muted);
}

/* Section separator (collapsed mode) */
.mowo-nav-sep {
  height: 1px;
  margin: 8px 10px;
  background: var(--mowo-border);
}

/* Nav items */
.mowo-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--mowo-text-secondary);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  font-family: var(--mowo-font);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.mowo-nav-item:hover {
  background: var(--mowo-bg-glass-hover);
  color: var(--mowo-text);
}
.mowo-nav-item.active {
  background: var(--mowo-accent-dim);
  color: var(--mowo-accent);
}

/* Icons */
.mowo-nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.mowo-nav-icon-sm {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Dev tools section toggle */
.mowo-nav-section-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 10px 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--mowo-font);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mowo-text-muted);
  transition: color 0.2s;
}
.mowo-nav-section-toggle:hover {
  color: var(--mowo-text-secondary);
}
.mowo-nav-chevron {
  width: 12px;
  height: 12px;
  transition: transform 0.2s;
}
.mowo-nav-chevron--open {
  transform: rotate(180deg);
}

/* Profile section */
.mowo-nav-profile {
  border-top: 1px solid var(--mowo-border);
  padding: 12px;
}
.mowo-nav-profile-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mowo-nav-profile-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.mowo-nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--mowo-accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mowo-text-on-accent);
  font-weight: 600;
  font-size: 13px;
}
.mowo-nav-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mowo-nav-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mowo-nav-profile-name {
  flex: 1;
  min-width: 0;
  font-family: var(--mowo-font);
  font-size: 12px;
  font-weight: 500;
  color: var(--mowo-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mowo-nav-gear {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 6px;
  color: var(--mowo-text-muted);
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.mowo-nav-gear:hover {
  background: var(--mowo-bg-glass-hover);
  color: var(--mowo-text-secondary);
}

/* Collapsed state overrides */
.mowo-nav--collapsed .mowo-nav-header {
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.mowo-nav--collapsed .mowo-nav-toggle {
  margin-left: 0;
}
.mowo-nav--collapsed .mowo-nav-item {
  justify-content: center;
  padding: 10px;
}

/* ═══════════════════════════════════════════════════════════════
   § 18  MODAL
   ═══════════════════════════════════════════════════════════════ */

.mowo-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
}
[data-theme="dark"] .mowo-modal-overlay {
  background: rgba(0, 0, 0, 0.6);
}

.mowo-modal {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--mowo-border);
  border-radius: var(--mowo-radius-lg);
  max-width: 560px;
  width: 100%;
  margin: 16px;
  max-height: 90vh;
  overflow-y: auto;
}
[data-theme="dark"] .mowo-modal {
  background: rgba(30, 30, 40, 0.95);
}

/* ═══════════════════════════════════════════════════════════════
   § 19  TOAST
   ═══════════════════════════════════════════════════════════════ */

.mowo-toast {
  background: var(--mowo-bg-glass);
  backdrop-filter: var(--mowo-blur);
  -webkit-backdrop-filter: var(--mowo-blur);
  border: 1px solid var(--mowo-border);
  border-radius: var(--mowo-radius-md);
  padding: 12px 18px;
  box-shadow: var(--mowo-shadow);
}

/* ═══════════════════════════════════════════════════════════════
   § 20  SPINNER
   ═══════════════════════════════════════════════════════════════ */

.mowo-spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid var(--mowo-accent-dim);
  border-top-color: var(--mowo-accent);
  animation: mowo-spin 0.8s linear infinite;
}

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

/* ═══════════════════════════════════════════════════════════════
   § 21  TOPBAR
   ═══════════════════════════════════════════════════════════════ */

.mowo-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: var(--mowo-bg-surface);
  backdrop-filter: var(--mowo-blur);
  -webkit-backdrop-filter: var(--mowo-blur);
  border-bottom: 1px solid var(--mowo-border);
  flex-wrap: wrap;
  gap: 8px;
}
[data-theme="light"] .mowo-topbar {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6), 0 4px 16px rgba(0, 0, 0, 0.03);
}

.mowo-topbar-title {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.5px;
}
.mowo-topbar-title span {
  color: var(--mowo-accent);
}

/* ═══════════════════════════════════════════════════════════════
   § 22  PAGE CONTAINER
   ═══════════════════════════════════════════════════════════════ */

.mowo-page {
  background: transparent;
  color: var(--mowo-text);
  font-family: var(--mowo-font);
  min-height: 100%;
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════
   § 23  TABLES
   ═══════════════════════════════════════════════════════════════ */

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mowo-text-muted);
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--mowo-border);
}

td {
  padding: 10px 12px;
  font-size: 13px;
  color: var(--mowo-text-secondary);
  border-bottom: 1px solid var(--mowo-border-subtle);
}

tr:hover td {
  background: var(--mowo-bg-field);
}

/* ═══════════════════════════════════════════════════════════════
   § 24  SCROLLBARS
   ═══════════════════════════════════════════════════════════════ */

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--mowo-accent-dim);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--mowo-accent);
}

/* ═══════════════════════════════════════════════════════════════
   § 25  TYPOGRAPHY HELPERS
   ═══════════════════════════════════════════════════════════════ */

.mowo-mono {
  font-family: var(--mowo-font-mono);
}

.mowo-text-accent {
  color: var(--mowo-accent);
}

.mowo-text-glow {
  text-shadow: 0 0 12px var(--mowo-accent-glow);
}

/* ═══════════════════════════════════════════════════════════════
   § 26  RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
  .mowo-field-grid {
    grid-template-columns: 1fr 1fr;
  }
  .mowo-event-body {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .mowo-field-grid {
    grid-template-columns: 1fr;
  }
  .mowo-event-body {
    grid-template-columns: 1fr;
  }
  .mowo-hero-glass {
    padding: 16px;
  }
  .mowo-btn-accent,
  .mowo-btn-primary {
    padding: 12px 20px;
    font-size: 13px;
  }
  .mowo-topbar {
    padding: 10px 16px;
  }
  .mowo-section-sep {
    margin: 24px 0 12px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .mowo-event-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .mowo-pill {
    font-size: 10px;
    padding: 3px 10px;
  }
  .mowo-node {
    width: 28px;
    height: 28px;
    border-radius: var(--mowo-radius-sm);
  }
  .mowo-node svg {
    width: 14px;
    height: 14px;
  }
}
