:root {
  /* Landing page blue palette */
  --blue-950: #071325;
  --blue-900: #0b1d36;
  --blue-850: #102a49;
  --blue-800: #12345a;
  --blue-700: #1f5f99;
  --blue-600: #2f7fbd;
  --blue-500: #4a9bd6;
  --blue-100: #eaf4ff;
  --blue-050: #f7fbff;

  /* Dashboard green/blue tacc */
  --green-950: #071a13;
  --green-900: #0d2b20;
  --green-800: #123d2d;
  --green-700: #1f6a4a;
  --green-600: #2f8f62;
  --green-500: #3fa875;
  --green-100: #eaf6ef;
  --green-050: #f5fbf7;

  /* Common accent colors */
  --orange-750: #933f0e;
  --orange-700: #b65318;
  --orange-600: #d76b21;
  --orange-500: #f28a32;
  --orange-100: #fff1e5;
  --yellow-600: #d7a800;
  --yellow-500: #ffc933;
  --yellow-100: #fff8d9;
  --alert-green-600: #20a66b;
  --alert-green-100: #e8f8f0;

  /* Main design system values (Light theme defaults) */
  --ink: #1f2937; /* Charcoal */
  --soft: #4b5563; /* Mid-gray */
  --muted: #6b7280; /* Gray */
  --line: #dfe6ee;
  --line-strong: #cbd9e6;
  --panel: #ffffff;
  --bg: #f5f8fc;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.74);
  --shadow: 0 18px 48px rgba(7, 19, 37, 0.08);
  --radius: 18px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-standard: cubic-bezier(.2, 0, 0, 1);
  --dur-fast: 120ms;
  --dur-med: 220ms;
  --dur-slow: 420ms;
  --touch: 48px;
}

[data-theme="dark"] {
  /* Dark mode overrides for dashboard variables */
  --ink: #e2e8f0;
  --soft: #94a3b8;
  --muted: #64748b;
  --line: #1e293b;
  --line-strong: #334155;
  --panel: #0b1329;
  --bg: #030712;
  --white: #090d16;
  --glass: rgba(11, 19, 41, 0.74);
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.45);

  --blue-050: #08121d;
  --blue-100: #0f2237;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

svg {
  display: block;
}

/* ==========================================================================
   SECTION A: LANDING PAGE AND AUTH PORTAL STYLES
   ========================================================================== */
#landingPage {
  background:
    radial-gradient(circle at 12% 8%, rgba(47,127,189,.13), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(255,201,51,.13), transparent 24%),
    radial-gradient(circle at 72% 86%, rgba(255,138,31,.08), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, var(--blue-050) 100%);
  --ink: #1f2937;
  --soft: #4b5563;
  --muted: #6b7280;
  color: var(--ink);
  min-height: 100%;
  position: relative;
  overflow-y: auto;
}

#landingPage h1,
#landingPage h2,
#landingPage h3,
#landingPage .brand strong,
#landingPage .ladder-text strong,
#landingPage .auth-title h2 {
  font-family: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  color: #111827;
  letter-spacing: -0.03em;
}

#landingPage:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(rgba(16,32,51,.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,32,51,.026) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.44), rgba(0,0,0,.04));
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.44), rgba(0,0,0,.04));
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 999;
  background: var(--blue-900);
  color: #fff;
  padding: 12px 14px;
  border-radius: 12px;
  transition: top var(--dur-med) var(--ease-out);
}
.skip-link:focus {
  top: 12px;
}

.header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 58px);
  background: rgba(255,255,255,.72);
  border-bottom: 1px solid rgba(220,230,239,.86);
  backdrop-filter: blur(18px) saturate(1.05);
  -webkit-backdrop-filter: blur(18px) saturate(1.05);
  box-shadow: 0 12px 44px rgba(7, 19, 37, 0.045);
  position: sticky;
  top: 0;
  z-index: 20;
}

#landingPage .brand {
  min-height: var(--touch);
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: inherit;
}

.logo {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 68%, var(--yellow-500) 170%);
  border: 1px solid rgba(255,255,255,.38);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.30), 0 14px 34px rgba(7,19,37,.16);
  font-weight: 900;
  letter-spacing: .08em;
}

#landingPage .brand small {
  display: block;
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--orange-700);
  font-weight: 900;
  text-transform: uppercase;
}

#landingPage .brand strong {
  display: block;
  font-size: 20px;
  letter-spacing: -.04em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn, .nav button {
  min-height: var(--touch);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.86);
  color: var(--ink);
  border-radius: 999px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 820;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.58);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn:hover, .nav button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(7, 19, 37, 0.08);
}

.btn:active, .nav button:active {
  transform: translateY(0) scale(.985);
}

.btn.primary {
  color: white;
  border-color: var(--blue-700);
  background: linear-gradient(135deg, var(--blue-850), var(--blue-600));
}

.btn.orange {
  color: white;
  border-color: #e88613;
  background: linear-gradient(135deg, var(--orange-600), var(--yellow-500));
}

.btn.ghost {
  color: var(--blue-800);
  background: var(--blue-100);
  border-color: #cfe2f2;
}

.main {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 470px);
  gap: clamp(34px, 5vw, 76px);
  align-items: center;
  padding: clamp(36px, 5.2vw, 82px) clamp(18px, 4vw, 58px) 48px;
}

.hero {
  max-width: 930px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--blue-800);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.eyebrow i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow-500);
  box-shadow: 0 0 0 7px rgba(255, 201, 51, 0.18);
}

.hero h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(48px, 7vw, 94px);
  line-height: .92;
  letter-spacing: -.085em;
  font-weight: 850;
}

.hero h1 span {
  background: linear-gradient(90deg, var(--blue-800), var(--blue-600), var(--orange-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subhead {
  margin: 22px 0 0;
  max-width: 750px;
  color: #4b5563;
  font-size: clamp(18px, 1.55vw, 23px);
  line-height: 1.48;
  letter-spacing: -.015em;
}

.reading-ladder {
  margin-top: 30px;
  max-width: 820px;
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(220, 230, 239, 0.88);
}

.ladder-row {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 24px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid rgba(220, 230, 239, 0.88);
}

.ladder-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 4px;
}

.ladder-label svg {
  width: 19px;
  height: 19px;
  color: var(--blue-700);
  flex: 0 0 auto;
}

.ladder-text strong {
  display: block;
  font-size: clamp(21px, 2vw, 28px);
  line-height: 1.1;
  letter-spacing: -.052em;
}

.ladder-text p {
  margin: 8px 0 0;
  color: var(--soft);
  font-size: 16px;
  line-height: 1.5;
  max-width: 640px;
}

.ladder-text mark {
  background: linear-gradient(180deg, transparent 57%, rgba(255, 201, 51, 0.42) 57%);
  color: inherit;
  padding: 0 .03em;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 30px;
}

.micro-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 15px;
}

.micro-proof span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.micro-proof i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange-500);
}

.flow-line {
  margin-top: 34px;
  max-width: 820px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-strong);
  position: relative;
}

.flow-bullet-tracker {
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--yellow-500);
  box-shadow: 0 0 10px var(--yellow-500), 0 0 4px rgba(255, 201, 51, 0.8);
  z-index: 10;
  transition: left 1s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.flow-bullet-tracker.move-to-step-2 {
  left: 25%;
}

.flow-item {
  padding: 17px 18px 0 0;
  position: relative;
}

.flow-item.ripple-active:after {
  content: "";
  position: absolute;
  top: -15px;
  left: -10px;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  border: 1px solid var(--blue-600);
  background: rgba(47, 127, 189, 0.08);
  pointer-events: none;
  opacity: 0;
  animation: rippleAnimation 2s infinite cubic-bezier(0.25, 0, 0, 1);
}

@keyframes rippleAnimation {
  0% {
    transform: scale(0.4);
    opacity: 1;
    border-color: rgba(47, 127, 189, 0.8);
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
    border-color: rgba(47, 127, 189, 0);
  }
}

.flow-item:before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue-700);
}

.flow-item:nth-child(3):before { background: var(--yellow-500); }
.flow-item:nth-child(4):before { background: var(--orange-500); }

.flow-item small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 900;
  margin-bottom: 6px;
}

.flow-item strong {
  display: block;
  font-size: 15px;
  letter-spacing: -.025em;
}

.flow-item p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.38;
}

.auth-card {
  width: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.90), rgba(255, 255, 255, 0.70));
  border: 2px solid rgba(47, 127, 189, 0.4);
  border-radius: 28px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82), 0 18px 48px rgba(7, 19, 37, 0.08);
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
  overflow: hidden;
  animation: pulseGlow 5s infinite ease-in-out;
}

@keyframes pulseGlow {
  0% {
    border-color: rgba(47, 127, 189, 0.35);
    box-shadow: 0 0 12px rgba(47, 127, 189, 0.15), 0 18px 48px rgba(7, 19, 37, 0.08);
  }
  50% {
    border-color: rgba(255, 138, 31, 0.6);
    box-shadow: 0 0 26px rgba(255, 138, 31, 0.35), 0 18px 48px rgba(7, 19, 37, 0.08);
  }
  100% {
    border-color: rgba(47, 127, 189, 0.35);
    box-shadow: 0 0 12px rgba(47, 127, 189, 0.15), 0 18px 48px rgba(7, 19, 37, 0.08);
  }
}

.auth-top {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(247,251,255,.66));
}

.tab {
  min-height: var(--touch);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.88);
  border-radius: 15px;
  padding: 12px;
  font-weight: 855;
  color: var(--ink);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tab.active {
  color: white;
  background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
  border-color: var(--blue-700);
}

.tab:active { transform: scale(.985); }

.auth-body { padding: 24px; }
.auth-title { margin-bottom: 18px; }

.auth-title small {
  display: block;
  color: var(--orange-700);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .20em;
  text-transform: uppercase;
}

.auth-title h2 {
  margin: 5px 0 0;
  font-size: 29px;
  letter-spacing: -.06em;
}

.form { display: none; }
.form.active {
  display: grid;
  gap: 12px;
  animation: formIn var(--dur-med) var(--ease-out);
}

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

.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 860; color: #3d4c5d; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: var(--touch);
  border: 1px solid #d7e4ef;
  background: rgba(255,255,255,.78);
  border-radius: 14px;
  padding: 13px 14px;
  font-size: 16px;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
  color: #1f2937;
}

.field input:focus, .field select:focus, .field textarea:focus {
  background: white;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(47, 127, 189, 0.12);
}

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

.checkline {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.38;
  cursor: pointer;
}

.checkline input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--blue-700);
}

.form-actions { display: grid; gap: 10px; margin-top: 4px; }
.full { width: 100%; justify-content: center; }
.help { margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.42; }
.help a { color: var(--blue-700); font-weight: 900; text-decoration: none; }

.section { padding: 0 clamp(18px, 4vw, 58px) 52px; }

.strip {
  max-width: 1380px;
  margin: 0 auto;
  color: white;
  border-radius: 30px;
  padding: clamp(26px, 4vw, 46px);
  background:
    radial-gradient(circle at 14% 18%, rgba(74,155,214,.20), transparent 26%),
    radial-gradient(circle at 88% 10%, rgba(255,201,51,.16), transparent 27%),
    linear-gradient(135deg, #071325, #12345a);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 38px 130px rgba(7,19,37,.22);
  overflow: hidden;
  position: relative;
}

.strip:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.038) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: .48;
  pointer-events: none;
}

.strip-eyebrow {
  display: block;
  color: #ffd36d;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 11px;
}

.strip h2 {
  margin: 0;
  max-width: 940px;
  font-size: clamp(31px, 4vw, 54px);
  line-height: 1;
  letter-spacing: -.072em;
}

.strip p { max-width: 780px; color: #d8e8f4; font-size: 16px; line-height: 1.52; }

.strip-steps {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1000px;
}

.strip-step { border-left: 1px solid rgba(255, 255, 255, 0.22); padding-left: 16px; }
.strip-step strong { display: block; font-size: 16px; }
.strip-step span { display: block; margin-top: 6px; color: #bcd2e5; font-size: 15px; line-height: 1.44; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: none;
  z-index: 60;
  width: min(460px, calc(100vw - 28px));
  border: 1px solid rgba(205, 220, 234, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 80px rgba(7, 19, 37, 0.16);
  backdrop-filter: blur(16px);
  padding: 14px 16px;
  transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out);
}

.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.lang-selector select {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* ==========================================================================
   SECTION B: OPERATIONAL DESK DASHBOARD STYLES
   ========================================================================== */
.app {
  width: 100%;
  height: 100vh;
  display: grid;
  grid-template-rows: 72px 1fr;
  background: var(--bg);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 clamp(16px, 3vw, 42px);
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(0,0,0,.015);
}

.topbar .brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar .logo {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  font-size: 18px;
}

.topbar .brand h1 {
  margin: 0;
  font-size: 18px;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -.03em;
}

.topbar .brand small {
  display: block;
  font-size: 10px;
  color: var(--orange-700);
  font-weight: 850;
  text-transform: uppercase;
}

.topbar .mission {
  max-width: 480px;
}
.topbar .mission small { display: block; font-size: 10px; color: var(--muted); }
.topbar .mission strong { display: block; font-size: 11px; color: var(--soft); font-weight: 500; }

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-actions .pill {
  cursor: pointer;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--soft);
  transition: all var(--dur-fast);
}

.top-actions .pill:hover {
  background: var(--bg);
  color: var(--ink);
}

.top-actions .pill.active {
  background: var(--blue-100);
  color: var(--blue-700);
  border-color: var(--blue-500);
}

.top-actions .pill.orange {
  background: var(--orange-500);
  color: #fff;
  border-color: var(--orange-600);
}

.top-actions .pill.orange:hover {
  background: var(--orange-600);
}

.conn-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 11px;
  font-weight: 800;
  color: var(--soft);
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #94a3b8;
  display: inline-block;
  box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.16);
}

.live-dot.is-online {
  background: var(--alert-green-600);
  box-shadow: 0 0 0 4px rgba(32, 166, 107, 0.18);
  animation: pulse-online 2s infinite;
}

@keyframes pulse-online {
  0% { box-shadow: 0 0 0 0px rgba(32, 166, 107, 0.3); }
  100% { box-shadow: 0 0 0 6px rgba(32, 166, 107, 0); }
}

.live-dot.is-error {
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.18);
}

/* 3-Column Dashboard Layout */
.app {
  display: grid;
  grid-template-columns: 310px 1fr 340px;
  height: 100vh;
  overflow: hidden;
}

aside.left {
  background: var(--panel);
  border-right: 1px solid var(--line);
  padding: 16px;
  overflow-y: auto;
}

main.middle {
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

aside.right {
  background: var(--panel);
  border-left: 1px solid var(--line);
  overflow: hidden;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel.pad {
  padding: 18px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.panel-title h2 {
  margin: 0;
  font-size: 15px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--ink);
}

.tag {
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 3px 6px;
  border-radius: 6px;
  background: var(--blue-100);
  color: var(--blue-700);
}

.tag.alert {
  background: var(--orange-100);
  color: var(--orange-700);
}

.tag.green {
  background: var(--alert-green-100);
  color: var(--alert-green-600);
}

/* Form Styles inside panels */
.form-grid {
  display: grid;
  gap: 12px;
}

.form-grid .field label {
  font-size: 11px;
  font-weight: 700;
  color: var(--soft);
}

.form-grid .field input,
.form-grid .field select,
.form-grid .field textarea {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 10px;
}

/* Realtime Store Stage UI */
.store-stage {
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--bg));
  position: relative;
  overflow: hidden;
  border: none;
}

.store-stage__awning {
  height: 48px;
  background:
    repeating-linear-gradient(90deg, transparent 0 32px, rgba(215, 107, 33, 0.7) 32px 58px),
    linear-gradient(180deg, #b65318, #d76b21);
  border-bottom: 8px solid rgba(255, 255, 255, 0.7);
}

@keyframes pulseSlide {
  0% { left: -30%; }
  100% { left: 100%; }
}

/* Voice panel animation */
.voice-meter span {
  display: inline-block;
  width: 6px;
  height: 8px;
  border-radius: 3px;
  background: var(--line-strong);
  transition: all 180ms ease;
}

.is-speaking .voice-meter span:nth-child(1) { height: 18px; background: var(--alert-green-600); animation: pulseHeight 0.6s infinite ease-in-out; }
.is-speaking .voice-meter span:nth-child(2) { height: 28px; background: var(--blue-600); animation: pulseHeight 0.5s infinite ease-in-out 0.1s; }
.is-speaking .voice-meter span:nth-child(3) { height: 22px; background: var(--orange-600); animation: pulseHeight 0.7s infinite ease-in-out 0.2s; }
.is-speaking .voice-meter span:nth-child(4) { height: 14px; background: #e06a80; animation: pulseHeight 0.4s infinite ease-in-out 0.3s; }

@keyframes pulseHeight {
  0%, 100% { transform: scaleY(0.7); }
  50% { transform: scaleY(1.3); }
}

/* Console logs style */
.console-box {
  background: #020617;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
}

.console-head {
  background: #0f172a;
  color: #94a3b8;
  padding: 6px 12px;
  font-size: 10px;
  font-family: monospace;
  font-weight: 700;
  border-bottom: 1px solid #1e293b;
}

.console-log {
  margin: 0;
  padding: 10px;
  font-family: monospace;
  font-size: 10px;
  color: #38bdf8;
  max-height: 120px;
  overflow-y: auto;
  white-space: pre-wrap;
  line-height: 1.4;
}

/* Feeds Cards list */
.event-card,
.order-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  background: var(--panel);
  transition: all var(--dur-fast);
  font-size: 12px;
}

.event-card:hover,
.order-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.event-card.is-new,
.order-card.is-new {
  animation: cardPulse 900ms ease both;
}

@keyframes cardPulse {
  0% { transform: scale(0.96); border-color: var(--blue-500); background: var(--blue-050); }
  100% { transform: scale(1); border-color: var(--line); background: var(--panel); }
}

.event-card__top,
.order-card__top {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  margin-bottom: 4px;
}

.event-card__top span:first-child,
.order-card__top span:first-child {
  color: var(--ink);
}

.event-card p,
.order-card p {
  margin: 0;
  color: var(--soft);
  line-height: 1.4;
}

.timestamp {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

/* Sidebar tab headers */
.tab-btn {
  background: transparent;
  border: none;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--soft);
  cursor: pointer;
  transition: all var(--dur-fast);
}

.tab-btn.active {
  background: var(--panel);
  color: var(--blue-700);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

/* Tab contents hidden default */
.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* Responsive Hide Tabs */
#tabMonitor, #tabSetup {
  display: none;
}

/* Responsive Overrides */
@media (max-width: 992px) {
  #tabMonitor, #tabSetup {
    display: inline-block;
  }

  .app {
    grid-template-columns: 1fr;
    grid-template-rows: 72px 1fr;
  }

  aside.left {
    display: none; /* In monitor mode, configuration is in sidebar tabs */
  }

  aside.right {
    display: none;
  }

  .app.view-setup aside.left {
    display: block;
    grid-column: 1;
  }
  .app.view-setup main.middle {
    display: none;
  }
}
