:root {
  --bg: #07090d;
  --bg-2: #0c1118;
  --card: rgba(16, 22, 32, 0.92);
  --card-2: #141c28;
  --ink: #f4f7fb;
  --muted: #93a0b3;
  --faint: #6b7789;
  --line: rgba(186, 214, 255, 0.12);
  --cisco: #049fd9;
  --cisco-deep: #0b3a53;
  --te: #c8f542;
  --te-dim: rgba(200, 245, 66, 0.14);
  --te-orange: #ff6b2c;
  --te-orange-soft: #ff8f5a;
  --te-orange-dim: rgba(255, 107, 44, 0.12);
  --te-orange-glow: rgba(255, 107, 44, 0.22);
  --caution: #f0c400;
  --good: #3ddc97;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --sans: "IBM Plex Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --cond: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  min-height: 100%;
}

body {
  background:
    radial-gradient(900px 520px at 88% 8%, rgba(255, 107, 44, 0.11), transparent 52%),
    radial-gradient(1200px 600px at 10% -10%, rgba(4, 159, 217, 0.14), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(200, 245, 66, 0.08), transparent 50%),
    linear-gradient(180deg, #0a0f16 0%, var(--bg) 40%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(255, 107, 44, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 107, 44, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 72px 72px, 72px 72px, 24px 24px, 24px 24px;
  mask-image: radial-gradient(ellipse at center, black 35%, transparent 88%);
}

.network-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.82;
}

body > :not(.network-bg):not(.toast):not(.sharelink-upload-overlay):not(.site-header) {
  position: relative;
  z-index: 1;
}

a { color: var(--cisco); }

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 22px 0 16px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--te-orange-glow) 18%,
    rgba(255, 107, 44, 0.55) 50%,
    var(--te-orange-glow) 82%,
    transparent
  );
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.mark {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.mark-logo {
  display: block;
  width: auto;
  height: 46px;
  max-width: none;
}

.brand h1 {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.brand h1 strong {
  display: block;
  margin-top: 2px;
  font-family: var(--cond);
  font-size: 28px;
  letter-spacing: 0.04em;
  color: var(--ink);
  font-weight: 700;
  line-height: 1;
}

.meta {
  position: relative;
  z-index: 1;
  overflow: visible;
  text-align: right;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.meta b {
  color: var(--ink);
  font-weight: 600;
}

.scenario-nav {
  padding: 18px 0 8px;
}

.scenario-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

@media (min-width: 1100px) {
  .scenario-rail {
    grid-template-columns: repeat(3, 1fr);
  }
}

.scenario-tab-wide {
  width: 100%;
  margin-bottom: 8px;
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px 12px;
}

.scenario-tab-wide .n {
  display: inline-block;
  margin: 0;
  min-width: 0;
  font-size: 22px;
}

.scenario-tab {
  appearance: none;
  background: var(--card-2);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 10px 12px;
  text-align: left;
  cursor: pointer;
  min-height: 78px;
  position: relative;
  overflow: hidden;
  font-family: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.scenario-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 107, 44, 0.35);
  box-shadow: 0 0 0 1px rgba(255, 107, 44, 0.08);
}

.scenario-tab .n {
  font-family: var(--cond);
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--te-orange-soft);
  display: block;
}

.scenario-tab .t {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.22;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.scenario-tab.is-current {
  background: linear-gradient(
    180deg,
    rgba(255, 107, 44, 0.1),
    rgba(200, 245, 66, 0.06) 40%,
    rgba(16, 22, 32, 0.9)
  );
  border-color: rgba(255, 107, 44, 0.55);
  box-shadow:
    0 0 0 1px rgba(255, 107, 44, 0.18),
    0 0 28px rgba(255, 107, 44, 0.08),
    var(--shadow);
}

.scenario-tab.is-current .n {
  color: var(--te-orange);
}

.scenario-tab.is-locked {
  opacity: 0.45;
}

.scenario-tab.is-locked::after {
  content: "Wait";
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.scenario-tab.is-done .n { color: var(--good); }

.notice {
  display: none;
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(240, 196, 0, 0.1);
  border: 1px solid rgba(240, 196, 0, 0.28);
  color: #ffe58a;
  font-size: 13px;
}

.notice.is-on { display: block; }

.stage {
  padding: 18px 0 64px;
}

.overview-view {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

.overview-view > .venue-hero,
.overview-hero > .venue-hero {
  width: 100%;
}

.overview-hero {
  margin: 0 auto 18px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 18px;
  align-items: stretch;
  width: 100%;
}

.hero-grid > article.card {
  display: flex;
  flex-direction: column;
}

.overview-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 100%;
}

.card-compact {
  padding: 18px 20px 16px;
  flex-shrink: 0;
}

.card-compact h2 {
  font-size: clamp(28px, 4vw, 38px);
  margin-bottom: 8px;
}

.q-list-compact li {
  padding: 8px 0;
  font-size: 15px;
}

.compact-note {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.45;
}

.join-card {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.join-card-hero {
  width: 100%;
  flex: 0 0 auto;
  align-self: stretch;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.8fr);
  gap: 8px 28px;
  align-items: start;
  padding: 22px 24px 20px;
}

.join-card-hero .kicker,
.join-card-hero .join-title,
.join-card-hero .join-form {
  grid-column: 1;
}

.join-card-hero .join-title {
  margin-bottom: 10px;
}

.join-card-hero .join-lab {
  grid-column: 2;
  grid-row: 1 / span 4;
  align-self: center;
  flex: 0;
}

.join-form {
  width: 100%;
  max-width: 560px;
}

.name-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 8px;
}

.name-input {
  display: block;
  width: 100%;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0a1018;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
}

.join-submit-row {
  display: flex;
  margin: 0 0 8px;
}

.join-submit-row .btn {
  padding: 10px 22px;
}

.name-input.name-needed {
  border-color: var(--te-orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 44, 0.2);
}

.join-status {
  margin: 0;
  min-height: 1.2em;
  font-size: 13px;
  color: var(--muted);
}

.join-status.is-err {
  color: #ffb4a8;
}

.notes-submit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 4px 0 16px;
}

.notes-submit-row .join-status {
  margin: 0;
}

.join-title {
  font-size: clamp(24px, 3.5vw, 32px);
  margin-bottom: 14px;
}

.join-lab {
  display: flex;
  gap: 16px;
  align-items: center;
  flex: 1;
  min-height: 0;
}

.join-lab img {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 12px;
  background: #fff;
  padding: 8px;
  box-shadow: 0 0 0 1px rgba(255, 107, 44, 0.18);
}

.join-links {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.join-label {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.join-label + .lab-url {
  margin-bottom: 14px;
}

.lab-url {
  display: block;
  font-family: "JetBrains Mono", "Consolas", monospace;
  font-size: 13px;
  line-height: 1.35;
  color: var(--te-orange-soft);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.lab-url:hover {
  color: #ffb48a;
  text-decoration: underline;
}

.short-url {
  font-weight: 600;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
}

.scenario-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}

.conclusions-view {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.conclusions-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}

.conclusions-cert-btn {
  width: 100%;
  margin: 0;
  text-decoration: none;
  justify-content: center;
  text-align: center;
  flex-shrink: 0;
}

.conclusions-cert-btn .n {
  width: 100%;
  min-width: 0;
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.15;
  letter-spacing: 0.06em;
  color: var(--te-orange-soft);
  text-align: center;
}

.conclusions-cert-btn:hover .n {
  color: var(--te-orange);
}

.conclusions-page {
  padding: 22px 24px 24px;
}

.conclusions-page h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 10px;
}

.conclusions-heading {
  margin: 18px 0 10px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.discussion-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 18px;
}

.discussion-list li {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 107, 44, 0.06);
  border: 1px solid rgba(255, 107, 44, 0.14);
  font-size: 15px;
  line-height: 1.5;
}

.discussion-list b {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--te-orange-soft);
}

.venue-hero {
  grid-column: 1 / -1;
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 107, 44, 0.18);
  box-shadow: var(--shadow), 0 0 40px rgba(255, 107, 44, 0.06);
  min-height: 240px;
}

.venue-hero img {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center;
}

.venue-hero-photo {
  background: #07090d;
}

.venue-hero img.hero-photo,
.venue-hero img[src*="hero."] {
  max-width: 100%;
  object-fit: cover;
  object-position: center;
  background: #07090d;
}

.venue-hero figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 36px 22px 14px;
  background: linear-gradient(transparent, rgba(7, 9, 13, 0.82));
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f4f7fb;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow);
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 107, 44, 0.35),
    transparent
  );
}

.kicker {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--te-orange-soft);
  font-weight: 600;
  margin: 0 0 8px;
}

h2 {
  font-family: var(--cond);
  font-size: clamp(32px, 5vw, 48px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin: 0 0 12px;
  font-weight: 700;
}

.lede {
  font-size: 16px;
  line-height: 1.55;
  color: #d5deea;
  margin: 0 0 16px;
}

.lede.subtle {
  font-size: 14px;
  margin-top: 16px;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.steps li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  color: #d7e0ec;
  font-size: 14px;
  line-height: 1.45;
}

.steps b {
  font-family: var(--cond);
  font-size: 18px;
  color: var(--te-orange);
}

.q-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.q-list li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 16px;
  font-weight: 600;
}

.q-list li:first-child { border-top: 0; }

.q-list span {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--te) 0%, #d4f06a 55%, var(--te-orange-soft) 130%);
  color: #111;
  box-shadow: 0 0 0 1px rgba(255, 107, 44, 0.15);
}

.btn-primary:hover {
  filter: brightness(1.05);
  box-shadow: 0 0 20px rgba(255, 107, 44, 0.18);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-cisco {
  background: var(--cisco);
  color: #041018;
}

.scenario-badge {
  display: inline-block;
  margin-bottom: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--te-orange-dim);
  color: #ffb48a;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid rgba(255, 107, 44, 0.18);
}

.view-chip {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(4, 159, 217, 0.12);
  color: #8fe3ff;
  font-size: 12px;
  border: 1px solid rgba(255, 107, 44, 0.12);
}

.look h3, .panel h3 {
  margin: 18px 0 10px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.look ol {
  margin: 0;
  padding-left: 18px;
  color: #d5deea;
  font-size: 14px;
  line-height: 1.5;
}

.look li + li { margin-top: 6px; }

.timer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: #0a1018;
  border: 1px solid var(--line);
  margin-bottom: 14px;
}

.clock {
  font-family: var(--cond);
  font-size: 42px;
  letter-spacing: 0.06em;
  line-height: 1;
  color: #ffd0b8;
  text-shadow: 0 0 24px rgba(255, 107, 44, 0.12);
}

.clock.is-up { color: var(--caution); }

.qs textarea {
  width: 100%;
  min-height: 64px;
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0a1018;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
}

.qs label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px;
  font-weight: 600;
}

.hint {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-top: 8px;
  background: #0e151f;
}

.hint summary {
  cursor: pointer;
  padding: 11px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #e7eef7;
}

.hint p {
  margin: 0;
  padding: 0 12px 12px;
  color: #c5d0de;
  font-size: 14px;
  line-height: 1.5;
}

.walkthrough {
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--te-dim), var(--te-orange-dim));
  border: 1px solid rgba(255, 107, 44, 0.14);
  color: #ffe8d9;
  font-size: 14px;
}

.nav-scenarios {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}

.site-footer {
  padding: 18px 0 28px;
  color: var(--faint);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 44, 0.35), transparent);
}

.hidden { display: none !important; }

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  color: var(--te-orange-soft);
  border: 1px solid rgba(255, 107, 44, 0.45);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 20;
  box-shadow: 0 0 24px rgba(255, 107, 44, 0.12);
}

.toast.is-on { opacity: 1; }

@media (max-width: 900px) {
  .site-header, .hero-grid, .scenario-layout, .conclusions-layout, .site-footer {
    grid-template-columns: 1fr;
    display: grid;
  }
  .overview-side {
    order: 3;
  }
  .join-card-hero {
    grid-template-columns: 1fr;
  }
  .join-card-hero .join-lab {
    grid-column: 1;
    grid-row: auto;
  }
  .site-header, .site-footer { display: grid; text-align: left; }
  .meta { text-align: left; }
  .scenario-rail {
    grid-template-columns: repeat(2, 1fr);
  }
  .venue-hero img,
  .venue-hero img.hero-photo,
  .venue-hero img[src*="hero."] { height: 280px; }
  .discussion-list {
    grid-template-columns: 1fr;
  }
}

/* Facilitator page */
.fac-body {
  background:
    radial-gradient(900px 520px at 88% 8%, rgba(255, 107, 44, 0.11), transparent 52%),
    radial-gradient(1200px 600px at 10% -10%, rgba(4, 159, 217, 0.14), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(200, 245, 66, 0.08), transparent 50%),
    linear-gradient(180deg, #0a0f16 0%, var(--bg) 40%);
  color: var(--ink);
}

.fac-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='480' viewBox='0 0 640 480'%3E%3Cg fill='none' stroke='%23ff6b2c' stroke-opacity='0.22' stroke-width='1'%3E%3Cpath d='M40 120 L180 80 L320 140 L520 60'/%3E%3Cpath d='M80 320 L220 260 L360 300 L580 240'/%3E%3Cpath d='M180 80 L220 260'/%3E%3Cpath d='M320 140 L360 300'/%3E%3Cpath d='M520 60 L580 240'/%3E%3C/g%3E%3Cg fill='%23ff6b2c' fill-opacity='0.28'%3E%3Ccircle cx='180' cy='80' r='3'/%3E%3Ccircle cx='320' cy='140' r='3'/%3E%3Ccircle cx='360' cy='300' r='3'/%3E%3Ccircle cx='580' cy='240' r='3'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 640px 480px;
}

.fac-wrap {
  position: relative;
  z-index: 1;
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 64px;
}

.fac-body h1 {
  font-family: var(--cond);
  font-size: 42px;
  margin: 8px 0 4px;
  color: var(--ink);
}

.fac-body h2 {
  font-family: var(--cond);
  font-size: 28px;
  margin: 28px 0 8px;
  color: var(--te);
}

.fac-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 12px 0;
  position: relative;
  box-shadow: var(--shadow);
}

.fac-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 44, 0.55), transparent);
}

.fac-card h3 {
  margin: 12px 0 6px;
  font-size: 15px;
  color: #8fe3ff;
}

.fac-card h3:first-of-type {
  margin-top: 0;
}

.fac-card ul,
.fac-card ol {
  margin: 8px 0;
  padding-left: 20px;
  line-height: 1.5;
}

.fac-card li + li {
  margin-top: 4px;
}

.fac-card code {
  background: rgba(200, 245, 66, 0.1);
  color: var(--te);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}

.fac-kicker {
  color: var(--te-orange);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.fac-kicker-top {
  font-family: var(--cond);
  font-size: 20px;
  letter-spacing: 0.1em;
  margin: 0 0 8px;
}

.fac-customer-logo {
  position: absolute;
  top: 24px;
  right: 0;
  height: 72px;
  max-width: 180px;
  width: auto;
  object-fit: contain;
  object-position: right center;
  background: transparent;
}

.fac-wrap.has-customer-logo .fac-kicker-top,
.fac-wrap.has-customer-logo > h1 {
  padding-right: 196px;
}

@media (max-width: 640px) {
  .fac-customer-logo {
    height: 48px;
    max-width: 120px;
  }
  .fac-wrap.has-customer-logo .fac-kicker-top,
  .fac-wrap.has-customer-logo > h1 {
    padding-right: 132px;
  }
}

.clock-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.clock-table td,
.clock-table th {
  border-bottom: 1px solid var(--line);
  padding: 8px 6px;
  text-align: left;
  vertical-align: top;
}

.clock-table th {
  font-weight: 600;
  color: #8fe3ff;
}

.danger {
  background: rgba(240, 196, 0, 0.12);
}

.fac-body a {
  color: var(--cisco);
  word-break: break-all;
}

.fac-body a:hover {
  color: #8fe3ff;
}

.workshop-timing {
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 14px 16px 10px;
  margin: 28px 0 16px;
}

.workshop-timing-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
  margin: 0 0 8px;
}

.workshop-timing-head h2 {
  margin: 0;
}

.workshop-countdown {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}

.workshop-countdown-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.workshop-countdown-input {
  width: 9.2ch;
  min-width: 7.6rem;
  padding: 7px 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0a1018;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  text-align: center;
}

.workshop-countdown-display {
  font-family: var(--cond);
  font-size: 28px;
  line-height: 1;
  min-width: 5.2ch;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.workshop-countdown-display.is-up {
  color: #ff9a9a;
  animation: workshop-countdown-strobe-red 2s ease-in-out infinite;
}

.workshop-countdown-display.is-warn {
  color: #ffb38a;
  animation: workshop-countdown-strobe 2s ease-in-out infinite;
}

.workshop-timing.is-warn {
  animation: workshop-timing-border-strobe 2s ease-in-out infinite;
}

.workshop-timing.is-up {
  animation: workshop-timing-border-strobe-red 2s ease-in-out infinite;
}

@keyframes workshop-countdown-strobe {
  0%, 100% {
    color: #ffd0b0;
    text-shadow: 0 0 10px rgba(255, 143, 90, 0.45);
  }
  50% {
    color: #ff8f5a;
    text-shadow: 0 0 16px rgba(255, 107, 44, 0.7);
  }
}

@keyframes workshop-timing-border-strobe {
  0%, 100% {
    border-color: #ffd0b0;
    box-shadow: 0 0 0 1px rgba(255, 208, 176, 0.35), 0 0 18px rgba(255, 143, 90, 0.28);
  }
  50% {
    border-color: #ff8f5a;
    box-shadow: 0 0 0 1px rgba(255, 143, 90, 0.65), 0 0 26px rgba(255, 107, 44, 0.42);
  }
}

@keyframes workshop-countdown-strobe-red {
  0%, 100% {
    color: #ffb4b4;
    text-shadow: 0 0 10px rgba(255, 80, 80, 0.45);
  }
  50% {
    color: #ff3b3b;
    text-shadow: 0 0 18px rgba(255, 50, 50, 0.8);
  }
}

@keyframes workshop-timing-border-strobe-red {
  0%, 100% {
    border-color: #ffb4b4;
    box-shadow: 0 0 0 1px rgba(255, 180, 180, 0.4), 0 0 18px rgba(255, 70, 70, 0.32);
  }
  50% {
    border-color: #ff3b3b;
    box-shadow: 0 0 0 1px rgba(255, 59, 59, 0.8), 0 0 28px rgba(255, 40, 40, 0.5);
  }
}

@media (prefers-reduced-motion: reduce) {
  .workshop-countdown-display.is-warn {
    animation: none;
    color: #ff8f5a;
    text-shadow: 0 0 10px rgba(255, 143, 90, 0.4);
  }
  .workshop-timing.is-warn {
    animation: none;
    border-color: #ff8f5a;
    box-shadow: 0 0 0 1px rgba(255, 143, 90, 0.5), 0 0 16px rgba(255, 107, 44, 0.28);
  }
  .workshop-countdown-display.is-up {
    animation: none;
    color: #ff3b3b;
    text-shadow: 0 0 10px rgba(255, 70, 70, 0.45);
  }
  .workshop-timing.is-up {
    animation: none;
    border-color: #ff3b3b;
    box-shadow: 0 0 0 1px rgba(255, 59, 59, 0.7), 0 0 16px rgba(255, 40, 40, 0.35);
  }
}

.workshop-countdown .btn:disabled {
  opacity: 0.45;
  cursor: default;
  filter: none;
}

#workshop-timing-total {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.fac-note {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--muted);
}

.live-board-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 12px;
}

#live-board .live-board-actions #live-export {
  margin-left: auto;
}

.export-chooser {
  margin: 0 0 16px;
  padding: 14px 16px;
  background: rgba(7, 9, 13, 0.55);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.export-chooser.hidden,
.export-chooser[hidden] {
  display: none;
}

.export-chooser-title {
  margin: 0 0 4px;
  font-weight: 700;
  color: var(--ink);
}

.export-chooser-note {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
}

.export-chooser-actions {
  margin: 0;
}

.fac-body #export-docx,
.fac-body #export-pdf {
  border: 0;
  color: #111;
  box-shadow: 0 0 0 1px rgba(255, 107, 44, 0.15);
  background: linear-gradient(135deg, var(--te) 0%, #d4f06a 48%, var(--te-orange-soft) 52%, var(--te-orange) 100%);
}

.fac-body #export-docx:hover,
.fac-body #export-pdf:hover {
  filter: brightness(1.05);
  box-shadow: 0 0 20px rgba(255, 107, 44, 0.18);
}

#live-refresh,
.fac-unlock .btn {
  margin: 0;
}

.fac-unlock {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.fac-unlock-status {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.fac-body .btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.fac-body .btn-ghost:hover {
  background: rgba(4, 159, 217, 0.12);
  border-color: var(--cisco);
}

.fac-body #live-pause,
.fac-body #live-export,
.fac-body #live-clear {
  border: 0;
  color: #111;
  box-shadow: 0 0 0 1px rgba(255, 107, 44, 0.15);
}

.fac-body #live-export {
  background: linear-gradient(135deg, var(--te) 0%, #d4f06a 55%, var(--te-orange-soft) 130%);
}

.fac-body #live-pause,
.fac-body #live-clear {
  background: linear-gradient(135deg, var(--te-orange) 0%, var(--te-orange-soft) 55%, var(--te) 130%);
}

.fac-body #live-pause:hover,
.fac-body #live-export:hover,
.fac-body #live-clear:hover {
  filter: brightness(1.05);
  box-shadow: 0 0 20px rgba(255, 107, 44, 0.18);
}

.fac-body .btn-opened {
  background: var(--cisco);
  color: #fff;
  box-shadow: none;
}

.fac-body .btn-opened:hover {
  filter: brightness(1.06);
}

.live-log {
  margin: 4px 0 16px;
  padding: 8px 10px;
  background: rgba(7, 9, 13, 0.55);
  border: 1px solid var(--line);
  border-radius: 10px;
  max-height: 180px;
  overflow: auto;
}

.live-log-line {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--ink);
}

.live-log-line:last-child {
  margin-bottom: 0;
}

.live-log-time {
  font-weight: 700;
  color: var(--cisco);
  font-variant-numeric: tabular-nums;
}

.live-answers {
  margin: 8px 0 4px;
}

.live-row {
  border-top: 1px solid var(--line);
}

.live-row-head {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 10px 4px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
}

.live-row-head:hover {
  background: rgba(4, 159, 217, 0.08);
}

.live-row-name {
  flex: 0 0 140px;
  font-weight: 700;
  color: var(--ink);
}

.live-row-scen {
  flex: 0 0 44px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--cisco);
}

.live-row-preview {
  flex: 1;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-row.is-open .live-row-preview {
  display: none;
}

.live-row-caret {
  flex: 0 0 16px;
  color: var(--faint);
}

.live-row-body {
  display: none;
  padding: 0 8px 12px 154px;
}

.live-row.is-open .live-row-body {
  display: block;
}

.live-earlier {
  margin-top: 8px;
}

.live-earlier-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--cisco);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.live-earlier-list {
  display: none;
  margin-top: 8px;
}

.live-earlier.is-open .live-earlier-list {
  display: block;
}

.live-scenario {
  margin: 0 0 10px;
}

.live-label {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cisco);
  font-weight: 700;
}

.live-empty {
  color: var(--faint);
  font-size: 13px;
}

@media print {
  .no-print { display: none !important; }
  .fac-body {
    background: #fff;
    color: #17202a;
  }
  .fac-body::before { display: none; }
  .fac-card {
    background: #fff;
    border: 1px solid #d5dde6;
    box-shadow: none;
    break-inside: avoid;
  }
  .fac-body h1,
  .fac-body h2,
  .fac-card h3,
  .clock-table th,
  .live-row-name,
  .fac-unlock-status {
    color: #0b3a53;
  }
  .fac-kicker { color: #e85a1f; }
  .fac-note,
  .live-row-preview,
  .live-empty { color: #5b6b78; }
  .fac-body a,
  .live-row-scen,
  .live-label,
  .live-earlier-toggle,
  .live-log-time { color: #0b6e99; }
  .fac-card code {
    background: #eef2f6;
    color: #17202a;
  }
  .clock-table td,
  .clock-table th,
  .live-row,
  .fac-unlock {
    border-color: #e3e8ee;
  }
  .live-log {
    background: #f6f8fb;
    border-color: #e3e8ee;
  }
  .live-log-line { color: #1b2a36; }
  .fac-customer-logo {
    height: 56px;
    max-width: 140px;
  }
}
