/* ============================================
   FUTURE RELAY — Causality Console
   styles.css — Design System & Layout
   ============================================ */

/* --- Custom Properties --- */
:root {
  --bg-deep: #050911;
  --bg-primary: #070c14;
  --bg-elevated: #0b1221;
  --panel-bg: rgba(10, 17, 32, 0.85);
  --panel-bg-solid: #0c1324;
  --panel-elevated: rgba(15, 24, 44, 0.92);

  --border-subtle: rgba(124, 160, 255, 0.08);
  --border-default: rgba(124, 160, 255, 0.14);
  --border-strong: rgba(124, 160, 255, 0.24);
  --border-focus: rgba(124, 160, 255, 0.55);

  --text-primary: #e8eeff;
  --text-secondary: #8d9fbe;
  --text-tertiary: #5c6f8c;
  --text-inverse: #070c14;

  --accent: #7c9cff;
  --accent-bright: #9db6ff;
  --cyan: #4cecd4;
  --purple: #a35eff;

  --success: #5ef09a;
  --success-muted: rgba(94, 240, 154, 0.12);
  --warning: #ffc85c;
  --warning-muted: rgba(255, 200, 92, 0.10);
  --danger: #ff6b8a;
  --danger-muted: rgba(255, 107, 138, 0.10);
  --info: #7c9cff;
  --info-muted: rgba(124, 156, 255, 0.10);

  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'SF Mono', 'Cascadia Code', 'Fira Code', Consolas, 'Liberation Mono', Menlo, monospace;

  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.45);
  --shadow-glow-accent: 0 0 24px rgba(124, 156, 255, 0.15);
  --shadow-glow-cyan: 0 0 20px rgba(76, 236, 212, 0.12);
  --shadow-glow-success: 0 0 20px rgba(94, 240, 154, 0.10);

  --transition-fast: 0.12s ease;
  --transition-normal: 0.22s ease;
  --transition-slow: 0.4s ease;

  --container-width: 1200px;
  --header-height: 52px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 8%, rgba(124, 156, 255, 0.09), transparent),
    radial-gradient(ellipse 60% 50% at 85% 12%, rgba(76, 236, 212, 0.06), transparent),
    radial-gradient(ellipse 50% 40% at 50% 90%, rgba(163, 94, 255, 0.04), transparent),
    linear-gradient(180deg, #060a12 0%, #081018 50%, #070d18 100%);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, transparent 70%);
}

img, svg { display: block; max-width: 100%; }

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

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  background: rgba(124, 156, 255, 0.08);
  color: var(--accent-bright);
}

/* --- Container --- */
.container {
  width: min(var(--container-width), 100% - 32px);
  margin-inline: auto;
}

/* --- Boot Screen --- */
.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-deep);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

.boot-logo {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0.9;
}

.boot-status {
  font-size: 12px;
  color: var(--text-tertiary);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.boot-bar {
  width: 200px;
  height: 2px;
  background: rgba(124, 156, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}

.boot-bar-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  border-radius: 2px;
  animation: bootFill 1.3s ease-out forwards;
}

@keyframes bootFill {
  0% { width: 0; }
  60% { width: 75%; }
  100% { width: 100%; }
}

.booted .boot-screen {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.app {
  position: relative;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.6s ease 0.15s;
}

.booted .app { opacity: 1; }

noscript + .app,
.no-boot .app { opacity: 1; }

/* --- App Header --- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(6, 10, 17, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.app-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(124, 156, 255, 0.12) 30%, rgba(76, 236, 212, 0.08) 70%, transparent 95%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: min(var(--container-width), 100% - 32px);
  margin-inline: auto;
}

.header-logo {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-xs);
  background: linear-gradient(135deg, var(--accent), var(--purple));
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--text-tertiary);
}

.header-status {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px rgba(94, 240, 154, 0.4);
  animation: pulseDot 2.5s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.header-clock {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  min-width: 72px;
  text-align: right;
}

/* --- Section Titles --- */
.section-title {
  margin: 0 0 20px;
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-icon {
  color: var(--accent);
  font-size: 0.75em;
  opacity: 0.6;
}

/* --- Hero --- */
.hero {
  padding: 64px 0 48px;
  text-align: center;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 156, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(76, 236, 212, 0.06);
  border: 1px solid rgba(76, 236, 212, 0.12);
  margin-bottom: 28px;
}

.eyebrow-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 6px rgba(76, 236, 212, 0.5);
}

.hero h1 {
  margin: 0 0 24px;
  font-size: clamp(38px, 6.5vw, 68px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: var(--text-primary);
}

.hero-accent {
  background: linear-gradient(
    135deg,
    var(--accent) 0%,
    var(--cyan) 35%,
    var(--purple) 70%,
    var(--accent) 100%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShimmer 8s ease-in-out infinite;
}

@keyframes textShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-description {
  margin: 0 0 16px;
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 58ch;
  margin-inline: auto;
}

.hero-disclaimer {
  margin: 0;
  font-size: 13px;
  color: var(--text-tertiary);
  font-style: italic;
  opacity: 0.8;
}

/* --- Diagnostics --- */
.diagnostics {
  margin-bottom: 36px;
}

.diag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.diag-card {
  padding: 20px 18px 18px;
  border-radius: var(--radius-lg);
  background: var(--panel-bg);
  border: 1px solid var(--border-default);
  border-top: 2px solid var(--border-default);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal);
}

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

.diag-card:nth-child(1) { border-top-color: var(--accent); }
.diag-card:nth-child(2) { border-top-color: var(--cyan); }
.diag-card:nth-child(3) { border-top-color: var(--warning); }
.diag-card:nth-child(4) { border-top-color: var(--purple); }
.diag-card:nth-child(5) { border-top-color: var(--success); }
.diag-card:nth-child(6) { border-top-color: var(--danger); }
.diag-card:nth-child(7) { border-top-color: var(--cyan); }
.diag-card:nth-child(8) { border-top-color: var(--text-tertiary); }

.diag-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}

.diag-value {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.15;
}

.diag-value.diag-mono {
  font-family: var(--font-mono);
  font-size: 17px;
  letter-spacing: 0;
}

.diag-note {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 6px;
  line-height: 1.4;
}

.diag-value-success { color: var(--success); }
.diag-value-warning { color: var(--warning); }
.diag-value-danger { color: var(--danger); }
.diag-value-accent { color: var(--accent); }

/* Stagger animation for diag cards inside revealed parent */
.revealed .diag-card {
  animation: fadeInUp 0.45s ease both;
}
.revealed .diag-card:nth-child(1) { animation-delay: 0s; }
.revealed .diag-card:nth-child(2) { animation-delay: 0.06s; }
.revealed .diag-card:nth-child(3) { animation-delay: 0.12s; }
.revealed .diag-card:nth-child(4) { animation-delay: 0.18s; }
.revealed .diag-card:nth-child(5) { animation-delay: 0.24s; }
.revealed .diag-card:nth-child(6) { animation-delay: 0.3s; }
.revealed .diag-card:nth-child(7) { animation-delay: 0.36s; }
.revealed .diag-card:nth-child(8) { animation-delay: 0.42s; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Panel System --- */
.panel {
  background: var(--panel-bg);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  padding: 32px 28px;
  position: relative;
}

.panel::after {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 156, 255, 0.15), transparent);
  border-radius: 1px;
}

.panel-title {
  margin: 0 0 6px;
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-description {
  margin: 0 0 24px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
}

/* --- Content Grid --- */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
  margin-bottom: 26px;
}

/* --- Form System --- */
.field-group {
  border: none;
  padding: 0;
  margin: 0 0 6px;
}

.field-group + .field-group {
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

.field-legend {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-tertiary);
  margin-bottom: 14px;
  padding: 0;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.field-hint {
  font-size: 11px;
  color: var(--text-tertiary);
  line-height: 1.4;
}

input:not([type="file"]):not([type="search"]),
textarea,
select {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  background: rgba(6, 10, 18, 0.9);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

input:not([type="file"]):not([type="search"]):hover,
textarea:hover,
select:hover {
  border-color: var(--border-strong);
  background: rgba(8, 14, 24, 0.95);
}

input:not([type="file"]):not([type="search"]):focus,
textarea:focus,
select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(124, 156, 255, 0.12);
  background: rgba(8, 14, 24, 1);
}

textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.65;
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238d9fbe' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

input::placeholder, textarea::placeholder {
  color: var(--text-tertiary);
  opacity: 0.8;
}

/* Temporal warning — animated via CSS */
.temporal-warning {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.55;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 14px;
  margin-top: 0;
  border: 1px solid transparent;
  transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.35s ease, margin-top 0.3s ease;
}

.temporal-warning.tw-visible {
  max-height: 160px;
  opacity: 1;
  padding: 12px 14px;
  margin-top: 12px;
}

.temporal-warning.warn-paradox {
  background: var(--info-muted);
  border-color: rgba(124, 156, 255, 0.18);
  color: var(--accent-bright);
}

.temporal-warning.warn-linear {
  background: var(--warning-muted);
  border-color: rgba(255, 200, 92, 0.18);
  color: var(--warning);
}

.temporal-warning.warn-same {
  background: var(--danger-muted);
  border-color: rgba(255, 107, 138, 0.18);
  color: var(--danger);
}

.warning-icon { flex-shrink: 0; }

/* Presets */
.presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.preset-btn {
  appearance: none;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(124, 156, 255, 0.03);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.preset-btn:hover {
  background: rgba(124, 156, 255, 0.1);
  border-color: var(--accent);
  color: var(--text-primary);
  box-shadow: 0 0 12px rgba(124, 156, 255, 0.08);
}

.preset-btn:active {
  transform: scale(0.96);
}

.preset-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  appearance: none;
  border: none;
  border-radius: var(--radius-md);
  padding: 11px 20px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
  position: relative;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--purple));
  color: #fff;
  box-shadow: 0 6px 20px rgba(124, 156, 255, 0.22);
}

.btn-primary:hover {
  box-shadow: 0 8px 28px rgba(124, 156, 255, 0.35);
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 4px 14px rgba(124, 156, 255, 0.2);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border: 1px solid var(--border-default);
}

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

.btn-danger {
  background: var(--danger-muted);
  color: var(--danger);
  border: 1px solid rgba(255, 107, 138, 0.16);
}

.btn-danger:hover {
  background: rgba(255, 107, 138, 0.18);
  border-color: rgba(255, 107, 138, 0.35);
}

.btn-sm {
  padding: 7px 13px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}

.btn-icon {
  font-size: 11px;
  opacity: 0.8;
}

.form-actions {
  padding-top: 8px;
}

/* --- Archive Controls --- */
.archive-controls {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.archive-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-tertiary);
  margin: 0 0 14px;
}

.archive-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* --- Inbox --- */
.inbox-header {
  margin-bottom: 20px;
}

.inbox-count {
  font-size: 0.65em;
  font-weight: 500;
  color: var(--text-tertiary);
  margin-left: 4px;
}

.inbox-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.search-input {
  flex: 1;
  min-width: 160px;
  padding: 10px 14px 10px 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  background: rgba(6, 10, 18, 0.9);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%235c6f8c' stroke-width='1.5' stroke-linecap='round'%3E%3Ccircle cx='6' cy='6' r='4.5'/%3E%3Cpath d='m10 10 3.5 3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 12px center;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13px;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(124, 156, 255, 0.12);
}

.search-input::placeholder {
  color: var(--text-tertiary);
}

.filter-select {
  min-width: 130px;
}

/* Signal list */
.signal-list {
  display: grid;
  gap: 16px;
}

/* Empty state */
.empty-state {
  padding: 48px 28px;
  text-align: center;
  border: 1px dashed var(--border-default);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.01);
  position: relative;
  overflow: hidden;
}

.empty-state::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 156, 255, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.empty-icon {
  font-size: 40px;
  margin-bottom: 16px;
  opacity: 0.25;
  position: relative;
}

.empty-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  position: relative;
}

.empty-text {
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.65;
  max-width: 34ch;
  margin: 0 auto;
  position: relative;
}

/* --- Signal Card --- */
.signal-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--panel-elevated);
  border: 1px solid var(--border-default);
  border-left: 3px solid var(--border-default);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal);
}

.signal-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.signal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.signal-card:hover::before { opacity: 0.4; }

/* Status-based left border */
.signal-card[data-status="retrocausal"] {
  border-left-color: var(--success);
  box-shadow: inset 0 0 40px rgba(94, 240, 154, 0.02);
}

.signal-card[data-status="retrocausal"]:hover {
  box-shadow: inset 0 0 50px rgba(94, 240, 154, 0.04), var(--shadow-glow-success);
}

.signal-card[data-status="awaiting"] {
  border-left-color: var(--warning);
}

.signal-card[data-status="closed"] {
  border-left-color: rgba(124, 156, 255, 0.4);
}

.signal-card[data-status="linear"] {
  border-left-color: var(--text-tertiary);
}

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

.signal-card-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.signal-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: var(--text-tertiary);
}

.signal-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.meta-sep {
  color: var(--text-tertiary);
  opacity: 0.35;
}

/* Status pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.status-retrocausal {
  background: var(--success-muted);
  color: var(--success);
  border: 1px solid rgba(94, 240, 154, 0.16);
  box-shadow: 0 0 16px rgba(94, 240, 154, 0.08);
}

.status-awaiting {
  background: var(--warning-muted);
  color: var(--warning);
  border: 1px solid rgba(255, 200, 92, 0.16);
  box-shadow: 0 0 12px rgba(255, 200, 92, 0.06);
}

.status-closed {
  background: var(--info-muted);
  color: var(--accent-bright);
  border: 1px solid rgba(124, 156, 255, 0.16);
}

.status-preserved {
  background: rgba(141, 159, 190, 0.08);
  color: var(--text-secondary);
  border: 1px solid rgba(141, 159, 190, 0.14);
}

/* Causal explanation sentence */
.signal-causal {
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.55;
  margin-bottom: 14px;
  padding: 0 0 0 10px;
  border-left: 2px solid var(--border-subtle);
}

.signal-card[data-status="retrocausal"] .signal-causal {
  border-left-color: rgba(94, 240, 154, 0.3);
  color: var(--text-secondary);
}

.signal-card[data-status="closed"] .signal-causal {
  border-left-color: rgba(124, 156, 255, 0.25);
}

/* Signal timeline data */
.signal-timeline {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.signal-tl-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  align-items: baseline;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.signal-tl-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
}

.signal-tl-value {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.signal-tl-relative {
  color: var(--text-tertiary);
  font-size: 11px;
  margin-left: 2px;
}

.signal-tl-relative.is-past { color: var(--cyan); opacity: 0.8; }
.signal-tl-relative.is-future { color: var(--accent); opacity: 0.7; }

/* Signal diagnostics grid */
.signal-diag-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 12px;
}

.signal-diag {
  padding: 7px 10px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.025);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.signal-diag-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  font-weight: 600;
  white-space: nowrap;
}

.signal-diag-value {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* Drift bar */
.drift-bar-wrap {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.drift-bar-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.drift-bar-label-text {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
}

.drift-bar-value {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--cyan);
}

.drift-bar {
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.drift-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--accent));
  transition: width var(--transition-slow);
  position: relative;
}

.drift-bar-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 40%, rgba(255, 255, 255, 0.15) 50%, transparent 60%);
  background-size: 250% 100%;
  animation: barShimmer 3s ease-in-out infinite;
}

@keyframes barShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Message body */
.signal-message {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(6, 10, 18, 0.65);
  border: 1px solid var(--border-subtle);
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-word;
}

/* Signal actions */
.signal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* --- Timeline Visualization --- */
.timeline-viz {
  margin-bottom: 28px;
}

.timeline-chart {
  position: relative;
  min-height: 40px;
}

.tl-empty {
  text-align: center;
  padding: 28px 20px;
  color: var(--text-tertiary);
  font-size: 13px;
  font-style: italic;
}

/* Now-line spans the full chart height */
.tl-now-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--danger);
  z-index: 3;
  pointer-events: none;
}

.tl-now-line::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -2px;
  width: 5px;
  background: var(--danger);
  opacity: 0;
  animation: nowPulse 2.5s ease-in-out infinite;
  border-radius: 3px;
}

@keyframes nowPulse {
  0%, 100% { opacity: 0; }
  50% { opacity: 0.2; }
}

.tl-now-label {
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--danger);
  background: var(--panel-bg-solid);
  padding: 2px 6px;
  border-radius: 3px;
  white-space: nowrap;
  border: 1px solid rgba(255, 107, 138, 0.2);
}

.tl-axis {
  position: relative;
  height: 32px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.tl-axis-label {
  position: absolute;
  bottom: 8px;
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-tertiary);
  transform: translateX(-50%);
  white-space: nowrap;
}

.tl-rows {
  display: grid;
  gap: 8px;
  padding-bottom: 4px;
}

.tl-row {
  display: grid;
  grid-template-columns: 140px 1fr 80px;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
}

.tl-row-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tl-row-track {
  position: relative;
  height: 10px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.tl-bar {
  position: absolute;
  top: -1px;
  height: calc(100% + 2px);
  border-radius: 5px;
  min-width: 6px;
  transition: all var(--transition-slow);
}

.tl-bar-retrocausal {
  background: linear-gradient(90deg, var(--success), var(--cyan));
  opacity: 0.65;
  box-shadow: 0 0 8px rgba(94, 240, 154, 0.15);
}

.tl-bar-awaiting {
  background: linear-gradient(90deg, var(--warning), rgba(255, 200, 92, 0.5));
  opacity: 0.55;
}

.tl-bar-closed {
  background: linear-gradient(90deg, var(--accent), rgba(124, 156, 255, 0.5));
  opacity: 0.45;
}

.tl-bar-linear {
  background: linear-gradient(90deg, rgba(141, 159, 190, 0.4), rgba(141, 159, 190, 0.2));
  opacity: 0.35;
}

.tl-dot {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid var(--panel-bg-solid);
  z-index: 1;
}

.tl-dot-manifest {
  left: 0;
  background: var(--success);
  box-shadow: 0 0 8px rgba(94, 240, 154, 0.5);
}

.tl-dot-transmit {
  right: 0;
  transform: translate(50%, -50%);
  background: var(--accent);
  box-shadow: 0 0 8px rgba(124, 156, 255, 0.5);
}

.tl-row-drift {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--cyan);
}

.tl-legend {
  display: flex;
  gap: 18px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.tl-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-tertiary);
}

.tl-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.tl-legend-dot.manifest { background: var(--success); }
.tl-legend-dot.transmit { background: var(--accent); }
.tl-legend-dot.now { background: var(--danger); }

/* Diagnostics narrative */
.diag-narrative {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.6;
}

.diag-narrative:empty { display: none; }

/* Timeline summary */
.tl-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--text-tertiary);
}

.tl-summary-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.tl-summary-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.tl-summary-dot.retrocausal { background: var(--success); }
.tl-summary-dot.awaiting { background: var(--warning); }
.tl-summary-dot.closed { background: var(--accent); }
.tl-summary-dot.linear { background: var(--text-tertiary); }

/* --- Model Note --- */
.model-note {
  margin-bottom: 28px;
}

.model-note .panel-title {
  font-size: 15px;
  margin-bottom: 14px;
}

.model-note-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-tertiary);
}

/* --- Footer --- */
.app-footer {
  margin-top: 12px;
  padding: 32px 0 48px;
  border-top: 1px solid var(--border-subtle);
}

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

.footer-content p {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.7;
}

.footer-meta {
  font-size: 12px;
  color: var(--text-tertiary);
  opacity: 0.65;
}

/* --- Toast System --- */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 8000;
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.toast {
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: rgba(10, 17, 32, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  font-size: 13px;
  box-shadow: var(--shadow-lg);
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.22, 0.68, 0, 1.05), opacity 0.25s ease;
  pointer-events: auto;
  max-width: 360px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast.toast-visible {
  transform: translateX(0);
  opacity: 1;
}

.toast-success { border-left: 3px solid var(--success); }
.toast-error { border-left: 3px solid var(--danger); }
.toast-warning { border-left: 3px solid var(--warning); }
.toast-info { border-left: 3px solid var(--accent); }

.toast-icon {
  font-size: 14px;
  flex-shrink: 0;
  opacity: 0.9;
}

/* --- Confirmation Modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 7000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 7, 14, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.modal-overlay.modal-open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: var(--panel-bg-solid);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: 28px;
  max-width: 400px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  transform: scale(0.94) translateY(8px);
  transition: transform 0.25s cubic-bezier(0.22, 0.68, 0, 1.05);
}

.modal-open .modal-box {
  transform: scale(1) translateY(0);
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
}

.modal-text {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0 0 24px;
  line-height: 1.65;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* --- Responsive --- */
@media (max-width: 960px) {
  .content-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(32px, 8vw, 50px); }
  .tl-row { grid-template-columns: 100px 1fr 60px; }
  .panel { padding: 24px 20px; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 24px); }
  .panel { padding: 20px 16px; border-radius: var(--radius-lg); }
  .diag-grid { grid-template-columns: 1fr 1fr; }
  .inbox-controls { flex-direction: column; }
  .search-input, .filter-select { min-width: 0; width: 100%; }
  .signal-card-header { flex-direction: column; gap: 10px; }
  .signal-tl-row { grid-template-columns: 1fr; gap: 2px; }
  .signal-diag-grid { grid-template-columns: 1fr; }
  .tl-row { grid-template-columns: 1fr; gap: 4px; }
  .tl-row-label { font-size: 11px; }
  .tl-row-track { height: 8px; }
  .tl-row-drift { text-align: left; font-size: 10px; }
  .header-meta { gap: 10px; }
  .header-status span:not(.status-dot) { display: none; }
  .archive-actions { flex-direction: column; }
  .archive-actions .btn { width: 100%; justify-content: center; }
  .presets { gap: 6px; }
  .preset-btn { font-size: 11px; padding: 5px 10px; }
  .modal-box { padding: 22px; }
  .hero { padding: 48px 0 36px; }
  .signal-card { padding: 18px 16px; }
}

@media (max-width: 400px) {
  .diag-grid { grid-template-columns: 1fr; }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .boot-screen { display: none; }
  .app { opacity: 1; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .revealed .diag-card { animation: none !important; opacity: 1; }
}

/* --- Reveal animation --- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger reveals */
.reveal:nth-child(2) { transition-delay: 0.06s; }
.reveal:nth-child(3) { transition-delay: 0.12s; }
.reveal:nth-child(4) { transition-delay: 0.18s; }
.reveal:nth-child(5) { transition-delay: 0.24s; }

/* --- Utility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mono { font-family: var(--font-mono); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-accent { color: var(--accent); }
.text-cyan { color: var(--cyan); }

/* --- Login Gate --- */
.login-gate {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  padding: 24px 16px;
}

.login-gate::after {
  content: '';
  position: fixed;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 156, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.login-box {
  width: 100%;
  max-width: 400px;
  text-align: center;
  position: relative;
  z-index: 1;
}

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

.login-mark {
  flex-shrink: 0;
}

.login-logo {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--text-primary);
}

.login-subtitle {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-tertiary);
  margin-bottom: 36px;
}

.login-panel {
  background: var(--panel-bg);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 36px 32px 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.login-panel::after {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 156, 255, 0.18), transparent);
  border-radius: 1px;
}

.login-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-tertiary);
  margin-bottom: 10px;
  text-align: left;
}

.login-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  background: rgba(6, 10, 18, 0.92);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  margin-bottom: 22px;
  letter-spacing: 0.04em;
}

.login-input:hover {
  border-color: var(--border-strong);
  background: rgba(8, 14, 24, 0.95);
}

.login-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(124, 156, 255, 0.14);
  background: rgba(8, 14, 24, 1);
}

.login-input::placeholder {
  color: var(--text-tertiary);
  letter-spacing: 0;
}

.login-input:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.login-input-error {
  border-color: rgba(255, 107, 138, 0.4);
}

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

.login-error {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: var(--danger-muted);
  border: 1px solid rgba(255, 107, 138, 0.2);
  color: var(--danger);
  font-size: 13px;
  margin-bottom: 20px;
  text-align: left;
  line-height: 1.5;
}

.login-error-icon {
  flex-shrink: 0;
  font-size: 12px;
  opacity: 0.8;
}

.login-config-notice {
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: var(--warning-muted);
  border: 1px solid rgba(255, 200, 92, 0.2);
  color: var(--warning);
  font-size: 12px;
  margin-bottom: 20px;
  text-align: left;
  line-height: 1.65;
}

.login-config-notice code {
  font-size: 0.92em;
}

.login-submit {
  width: 100%;
  justify-content: center;
  padding: 13px 20px;
  font-size: 14px;
}

.login-submit:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
  filter: none;
  transform: none;
  box-shadow: none;
}

.login-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 22px 0 16px;
}

.login-hint {
  font-size: 11px;
  color: var(--text-tertiary);
  opacity: 0.6;
  text-align: center;
}

.login-footer {
  margin-top: 28px;
  font-size: 11px;
  color: var(--text-tertiary);
  opacity: 0.4;
  letter-spacing: 0.06em;
}

@media (max-width: 480px) {
  .login-panel {
    padding: 28px 20px 22px;
    border-radius: var(--radius-lg);
  }
  .login-box { max-width: 100%; }
  .login-brand { gap: 10px; }
  .login-logo { font-size: 12px; letter-spacing: 0.2em; }
}

/* --- Logout Link (Header) --- */
.header-logout {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  text-decoration: none;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.header-logout:hover {
  color: var(--text-secondary);
  border-color: var(--border-default);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
}

.header-logout:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .header-logout {
    font-size: 10px;
    padding: 4px 8px;
  }
}
