:root {
  color-scheme: dark;
  --bg: #030504;
  --panel: #090d0a;
  --panel-soft: #0d130f;
  --panel-lift: #121a14;
  --ink: #f3fff4;
  --muted: #a0b0a4;
  --soft: #cfe4d2;
  --line: rgba(180, 255, 188, 0.105);
  --line-strong: rgba(95, 255, 92, 0.26);
  --nav: #020302;
  --nav-soft: rgba(90, 255, 79, 0.045);
  --neon: #5dff46;
  --neon-2: #18ef74;
  --neon-soft: #a6ff9c;
  --neon-dim: rgba(93, 255, 70, 0.085);
  --green: #46f584;
  --amber: #e8c75a;
  --red: #ff6b5f;
  --blue: #72d7ff;
  --violet: #b8a5ff;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.22);
  font-family: "Inter", "Aptos", "Segoe UI Variable", "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 82% -18%, rgba(93, 255, 70, 0.105), transparent 28rem),
    radial-gradient(circle at 20% 8%, rgba(24, 239, 116, 0.045), transparent 21rem),
    linear-gradient(135deg, #020302 0%, #050705 54%, #081009 100%);
  color: var(--ink);
  font-size: 15px;
  letter-spacing: 0;
}

button,
select,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(93, 255, 70, 0.035), transparent 28%),
    #020302;
  color: var(--ink);
  padding: 22px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid rgba(180, 255, 188, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 22px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--neon), var(--neon-2));
  color: #020302;
  border-radius: 12px;
  font-weight: 850;
  box-shadow: 0 0 24px rgba(93, 255, 70, 0.18);
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  color: var(--muted);
  font-size: 12.5px;
}

.program-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 20px;
}

.program-card strong,
.program-card span {
  display: block;
}

.program-card strong {
  margin: 5px 0;
}

.program-card span:last-child {
  color: var(--muted);
  font-size: 13px;
}

.nav-group {
  margin-top: 20px;
}

.nav-group-title {
  color: #708575;
  font-size: 10.5px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 10px 8px;
}

.nav button {
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #d6ead9;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  text-align: left;
  font-weight: 650;
  position: relative;
}

.nav button:hover,
.nav button.active {
  background: rgba(93, 255, 70, 0.095);
  color: var(--neon);
}

.nav button.active::before {
  content: "";
  width: 3px;
  height: 18px;
  border-radius: 999px;
  background: var(--neon);
  position: absolute;
  left: 0;
}

.nav button.locked {
  color: #607060;
}

.main {
  min-width: 0;
  padding: 22px clamp(24px, 3vw, 48px) 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.topbar h1 {
  margin: 4px 0 0;
  font-size: clamp(24px, 2.35vw, 34px);
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 790;
}

.topbar-actions {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.sync-status {
  align-self: center;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.026);
  color: var(--muted);
  padding: 5px 10px;
  font-size: 11.5px;
  font-weight: 760;
  white-space: nowrap;
}

.sync-status.shared {
  color: var(--neon);
  border-color: rgba(83, 255, 61, 0.28);
  background: rgba(83, 255, 61, 0.07);
}

.sync-status.checking {
  color: var(--blue);
  border-color: rgba(114, 215, 255, 0.25);
}

.sync-status.conflict {
  color: var(--amber);
  border-color: rgba(232, 199, 90, 0.35);
  background: rgba(232, 199, 90, 0.065);
}

.sync-status.auth {
  color: var(--red);
  border-color: rgba(255, 107, 95, 0.34);
  background: rgba(255, 107, 95, 0.055);
}

.user-badge {
  align-self: center;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(93, 255, 70, 0.18);
  border-radius: 999px;
  background: rgba(93, 255, 70, 0.045);
  color: var(--soft);
  padding: 5px 10px;
  font-size: 11.5px;
  font-weight: 760;
  white-space: nowrap;
}

.compact-action {
  min-height: 34px;
  padding: 0 11px;
}

.command-search {
  width: min(420px, 34vw);
  min-width: 260px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  padding: 0 13px;
  min-height: 42px;
}

.command-search [data-icon] {
  color: var(--neon-soft);
  opacity: 0.78;
}

.command-search input {
  border: 0;
  background: transparent;
  min-height: 38px;
  padding: 0;
  width: 100%;
  outline: none;
}

.command-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 40;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(5, 8, 6, 0.98);
  box-shadow: var(--shadow);
  padding: 8px;
  display: grid;
  gap: 4px;
}

.command-results button,
.command-empty {
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  padding: 10px;
  display: grid;
  gap: 3px;
  text-align: left;
}

.command-results button:hover,
.command-results button:focus-visible {
  background: rgba(93, 255, 70, 0.085);
  outline: none;
}

.command-results span {
  color: var(--neon-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.command-results small,
.command-empty {
  color: var(--muted);
}

.eyebrow {
  color: #9db9a2;
  font-size: 10.5px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.select-label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

select,
input,
textarea {
  border: 1px solid var(--line);
  background: rgba(4, 7, 5, 0.82);
  border-radius: 10px;
  color: var(--ink);
  padding: 9px 10px;
}

textarea {
  width: 100%;
  min-height: 144px;
  resize: vertical;
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button,
.icon-button {
  min-height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  font-weight: 760;
}

.primary-button {
  background: linear-gradient(135deg, var(--neon), var(--neon-2));
  color: #031003;
  padding: 0 16px;
  box-shadow: 0 10px 26px rgba(93, 255, 70, 0.16);
}

.primary-button:hover {
  filter: brightness(1.08);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink);
  border-color: var(--line);
  padding: 0 14px;
}

.ghost-button {
  background: transparent;
  color: var(--neon);
  padding: 0 10px;
}

.tiny-action {
  min-height: 28px;
  padding: 0 8px;
  font-size: 12px;
  margin-top: 6px;
}

.danger-button {
  background: rgba(255, 107, 95, 0.12);
  color: var(--red);
  border-color: rgba(255, 107, 95, 0.35);
  padding: 0 13px;
}

.icon-button {
  width: 40px;
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--line);
  color: var(--ink);
}

.content {
  display: grid;
  gap: 16px;
  max-width: 1440px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.two {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.panel {
  background: rgba(9, 13, 10, 0.78);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  padding: 18px;
  backdrop-filter: blur(10px);
}

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

.panel h2,
.panel h3 {
  margin: 0;
  letter-spacing: 0;
}

.panel h2 {
  font-size: 18px;
  line-height: 1.22;
  font-weight: 780;
}

.panel h3 {
  font-size: 15.5px;
  font-weight: 760;
}

.hero-panel {
  background:
    linear-gradient(135deg, rgba(93, 255, 70, 0.08), rgba(24, 239, 116, 0.018)),
    rgba(8, 13, 9, 0.84);
  min-height: 150px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  overflow: hidden;
}

.hero-panel.compact-hero {
  min-height: auto;
}

.hero-panel h2 {
  font-size: clamp(24px, 2.45vw, 34px);
  max-width: 760px;
  margin: 8px 0 10px;
  line-height: 1.07;
  font-weight: 780;
}

.hero-panel p {
  color: var(--muted);
  max-width: 680px;
  font-size: 14.5px;
  line-height: 1.55;
}

.portal-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 82px;
  padding: 8px 0 4px;
  border-bottom: 1px solid rgba(83, 255, 61, 0.08);
}

.focus-lane {
  box-shadow: none;
}

.focus-lane .panel-header {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.start-surface {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 112px;
  background:
    linear-gradient(135deg, rgba(93, 255, 70, 0.085), rgba(93, 255, 70, 0.015)),
    rgba(8, 13, 9, 0.82);
  border-color: rgba(93, 255, 70, 0.16);
}

.start-surface h2 {
  font-size: clamp(25px, 2.55vw, 36px);
  margin: 5px 0 8px;
  font-weight: 780;
  letter-spacing: 0;
}

.start-surface p {
  margin: 0;
  color: var(--muted);
  max-width: 680px;
}

.context-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.context-strip span {
  border: 1px solid rgba(180, 255, 188, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.026);
  color: var(--soft);
  padding: 5px 9px;
  font-size: 12px;
}

.start-button {
  min-width: 156px;
}

.mode-switcher {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.workflow-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.018);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.today-path {
  display: grid;
  grid-template-columns: minmax(210px, 0.52fr) minmax(0, 1.4fr) minmax(190px, 0.42fr);
  gap: 12px;
  align-items: stretch;
  margin: 0 0 16px;
}

.path-header {
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(93, 255, 70, 0.07), rgba(255, 255, 255, 0.012)),
    rgba(8, 13, 9, 0.74);
  padding: 16px;
  display: grid;
  align-content: center;
}

.path-header h2 {
  margin: 6px 0 0;
  font-size: 19px;
  line-height: 1.18;
  font-weight: 760;
}

.path-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.path-step {
  min-height: 118px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.022);
  color: var(--ink);
  padding: 14px;
  display: grid;
  align-content: start;
  gap: 7px;
}

.path-step span {
  color: var(--neon);
  font-weight: 850;
  font-size: 13px;
}

.path-step strong {
  font-size: 16px;
  line-height: 1.18;
}

.path-step p {
  color: var(--muted);
  margin: 0;
  font-size: 13px;
  line-height: 1.38;
}

.path-blockers {
  display: grid;
  gap: 8px;
}

.blocker-chip {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.022);
  color: var(--ink);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
}

.blocker-chip span:last-child {
  color: var(--muted);
  font-weight: 700;
  font-size: 12.5px;
}

.blocker-chip:hover,
.blocker-chip:focus-visible {
  border-color: rgba(93, 255, 70, 0.32);
  background: rgba(93, 255, 70, 0.045);
  outline: none;
}

.priority-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 0;
}

.priority-pill {
  flex: 1 0 190px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.022);
  color: var(--ink);
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.priority-pill span {
  color: var(--neon-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.priority-pill strong {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.priority-pill:hover,
.priority-pill:focus-visible {
  border-color: rgba(93, 255, 70, 0.34);
  background: rgba(93, 255, 70, 0.052);
  outline: none;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.72fr);
  gap: 16px;
}

.portal-hero h2 {
  font-size: clamp(28px, 3.25vw, 44px);
  line-height: 1.04;
  margin: 4px 0 0;
  font-weight: 790;
  letter-spacing: 0;
}

.hero-pulse {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hero-actions,
.guided-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.flow-card,
.focus-card,
.issue-card,
.guide-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}

.click-card {
  text-align: left;
  color: var(--ink);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.click-card:hover,
.click-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(93, 255, 70, 0.34);
  box-shadow: 0 0 0 1px rgba(93, 255, 70, 0.06), var(--shadow-soft);
  outline: none;
}

.journey-card {
  min-height: 132px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008)),
    rgba(8, 13, 9, 0.72);
  padding: 16px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-content: start;
  gap: 10px 12px;
}

.journey-card.active {
  border-color: rgba(93, 255, 70, 0.42);
  background:
    linear-gradient(180deg, rgba(93, 255, 70, 0.11), rgba(93, 255, 70, 0.018)),
    rgba(8, 13, 9, 0.86);
}

.journey-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.12;
  font-weight: 780;
}

.journey-card strong {
  color: var(--soft);
  font-size: 13px;
  font-weight: 680;
  min-width: 0;
}

.journey-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(93, 255, 70, 0.105);
  color: var(--neon);
  display: grid;
  place-items: center;
}

.journey-icon [data-icon],
.journey-icon svg {
  width: 19px;
  height: 19px;
}

.journey-card > .eyebrow,
.journey-card > h3,
.journey-card > strong,
.journey-card > .progress-rail {
  grid-column: 2;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.action-tile {
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--ink);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 720;
}

.action-tile:hover {
  background: rgba(93, 255, 70, 0.075);
}

.lesson-brief {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.lesson-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(93, 255, 70, 0.055), rgba(255, 255, 255, 0.012)),
    rgba(9, 13, 10, 0.62);
  padding: 18px;
}

.lesson-header h2 {
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.05;
  margin: 6px 0 8px;
  font-weight: 790;
}

.lesson-header p {
  color: var(--muted);
  margin: 0;
  max-width: 760px;
}

.lesson-status {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lesson-run {
  display: grid;
  gap: 14px;
}

.live-run-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(93, 255, 45, 0.24);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(93, 255, 45, 0.075), rgba(0, 0, 0, 0.08)),
    rgba(7, 16, 7, 0.74);
  padding: 16px;
  margin-bottom: 16px;
}

.live-run-strip h2 {
  margin: 4px 0;
  font-size: clamp(1.25rem, 2vw, 1.85rem);
}

.live-run-strip p {
  color: var(--muted);
  margin: 0;
  max-width: 820px;
}

.live-run-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  min-width: 280px;
}

.run-focus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 170px 190px;
  gap: 10px;
  align-items: stretch;
  margin: -4px 0 16px;
}

.focus-cue,
.focus-progress {
  border: 1px solid rgba(93, 255, 45, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.022);
  padding: 12px;
}

.focus-cue p {
  margin: 5px 0 0;
  color: #e0efe1;
}

.focus-progress {
  display: grid;
  align-content: center;
  gap: 7px;
}

.focus-progress span {
  font-size: 1.45rem;
  font-weight: 850;
  color: var(--neon);
}

.focus-progress div {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.focus-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--neon), var(--mint));
}

.focus-progress small {
  color: var(--muted);
}

.pacing-card small {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.run-summary {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.1fr;
  gap: 10px;
}

.run-summary article,
.lesson-block {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.024);
  border-radius: 14px;
  padding: 14px;
}

.run-summary p {
  margin: 5px 0 0;
  color: #d8ead9;
}

.material-chips,
.prompt-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.materials-review {
  display: grid;
  gap: 8px;
}

.materials-review article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.024);
  padding: 11px;
}

.materials-review span {
  color: var(--muted);
}

.material-chips span,
.prompt-chip {
  border: 1px solid rgba(83, 255, 61, 0.145);
  background: rgba(83, 255, 61, 0.045);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 13px;
}

.compact-list {
  margin-top: 8px;
}

.lesson-block {
  display: grid;
  gap: 14px;
}

.lesson-block-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.lesson-block h3 {
  margin: 4px 0 6px;
  font-size: 20px;
  font-weight: 780;
}

.lesson-block p {
  color: var(--muted);
  margin: 0;
}

.script-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 14px;
}

.protocol-step {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.protocol-step.active {
  margin: 8px -8px;
  padding: 14px 10px;
  border: 1px solid rgba(93, 255, 45, 0.32);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(93, 255, 45, 0.09), rgba(255, 255, 255, 0.014)),
    rgba(7, 16, 7, 0.62);
}

.protocol-step.done {
  opacity: 0.68;
}

.protocol-step.done > span {
  background: var(--neon);
  color: #031003;
}

.protocol-step > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--neon-dim);
  color: var(--neon);
  font-weight: 850;
}

.protocol-step strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 760;
}

.step-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.protocol-step small {
  display: block;
  color: #b7cab9;
  margin-top: 6px;
}

.instruction-cues {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.instruction-cues div {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.022);
  padding: 10px;
}

.instruction-cues span {
  display: block;
  color: var(--neon-soft);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.instruction-cues p {
  color: var(--muted);
  margin: 0;
  font-size: 0.92rem;
}

.step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.step-actions button {
  min-height: 34px;
  padding: 7px 10px;
}

.step-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.watch-list {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.watch-list li + li {
  margin-top: 7px;
}

.instructor-brief {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.022);
  margin: 14px 0;
  padding: 0;
}

.instructor-brief summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 850;
  padding: 14px 16px;
}

.brief-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0 16px 16px;
}

.brief-columns ul,
.brief-columns ol {
  color: var(--muted);
  margin: 8px 0 0;
  padding-left: 20px;
}

.change-list {
  display: grid;
  gap: 10px;
  max-height: 620px;
  overflow: auto;
  padding-right: 4px;
}

.change-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  padding: 12px;
}

.change-card p {
  color: var(--muted);
  margin: 8px 0;
}

.change-card small {
  color: #9fb2a2;
}

.review-summary {
  display: grid;
  gap: 16px;
}

.review-summary h3 {
  margin: 6px 0 12px;
}

.review-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.review-stats span,
.review-checks div,
.review-fix {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.024);
  padding: 9px 10px;
}

.review-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.review-checks div {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.review-checks .pass span {
  color: var(--neon);
}

.review-checks .fail {
  border-color: rgba(255, 107, 95, 0.28);
}

.review-checks .fail span {
  color: var(--red);
}

.review-fix {
  display: grid;
  gap: 4px;
}

.review-fix span {
  color: var(--muted);
}

.reflection-panel {
  box-shadow: none;
}

.quick-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 12px;
}

.session-notes {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.session-notes article {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.022);
  padding: 10px;
}

.session-notes p {
  margin: 0 0 5px;
}

.session-notes small {
  color: var(--muted);
}

.brief-card {
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #090d09;
  color: var(--ink);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
}

::-webkit-scrollbar-thumb {
  background: rgba(164, 255, 159, 0.28);
  border: 2px solid rgba(0, 0, 0, 0.35);
  border-radius: 999px;
}

::selection {
  background: rgba(93, 255, 70, 0.28);
  color: var(--ink);
}

.brief-card small,
.brief-card strong {
  display: block;
}

.brief-card small {
  margin-top: 3px;
  color: var(--muted);
}

.focus-lane {
  align-self: start;
}

.flow-card {
  min-height: 170px;
  display: grid;
  align-content: space-between;
  gap: 12px;
}

.flow-number {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--neon-dim);
  color: var(--neon);
  font-weight: 900;
}

.focus-card {
  border-color: rgba(124, 255, 58, 0.2);
}

.focus-card h3,
.guide-card h3 {
  margin-bottom: 8px;
}

.role-hint {
  color: var(--neon-soft);
  margin-top: 8px;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.mini-stat {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 12px;
  padding: 12px;
  width: 100%;
}

.mini-stat strong {
  display: block;
  font-size: 22px;
  color: var(--neon);
  line-height: 1;
  margin-bottom: 6px;
}

.launch-console {
  margin-bottom: 18px;
}

.launch-meter {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
  overflow: hidden;
  margin: 12px 0 14px;
}

.launch-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--neon), var(--mint));
  box-shadow: 0 0 18px rgba(83, 255, 61, 0.22);
}

.launch-checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 9px;
  margin-bottom: 12px;
}

.launch-checks article {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.022);
  padding: 11px;
}

.launch-checks article.pass {
  border-color: rgba(83, 255, 61, 0.24);
}

.launch-checks article.needs-work {
  border-color: rgba(255, 211, 92, 0.32);
  background: rgba(255, 211, 92, 0.045);
}

.launch-checks div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.launch-checks p {
  color: var(--muted);
  margin: 8px 0 0;
  font-size: 0.92rem;
}

.launch-checks .tiny-action,
.launch-done {
  margin-top: 10px;
}

.launch-done {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(83, 255, 61, 0.22);
  border-radius: 999px;
  color: var(--neon);
  padding: 5px 10px;
  font-size: 0.82rem;
  font-weight: 800;
}

.data-health-console {
  margin-bottom: 18px;
  background:
    linear-gradient(135deg, rgba(83, 255, 61, 0.055), rgba(28, 255, 130, 0.018)),
    var(--panel);
}

.data-health-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.data-health-list article {
  min-height: 118px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.024);
  padding: 12px;
  display: grid;
  align-content: start;
  gap: 8px;
}

.data-health-list strong {
  line-height: 1.2;
}

.data-health-list p {
  color: var(--muted);
  margin: 0;
  font-size: 0.92rem;
}

.release-console {
  margin-bottom: 18px;
}

.recovery-console {
  margin-bottom: 18px;
}

.recovery-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.recovery-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.028), rgba(93, 255, 70, 0.018)),
    rgba(255, 255, 255, 0.016);
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.recovery-card p {
  color: var(--muted);
  margin: 8px 0;
}

.recovery-card small {
  color: var(--neon-soft);
}

.staff-console {
  margin-bottom: 18px;
}

.staff-coverage-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
  gap: 12px;
}

.staff-roster,
.staff-issue-list {
  display: grid;
  gap: 9px;
}

.staff-roster article,
.staff-issue-list article {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.022);
  padding: 12px;
}

.staff-roster strong,
.staff-roster span,
.staff-roster small {
  display: block;
}

.staff-roster span,
.staff-issue-list p {
  color: var(--muted);
  margin: 7px 0 0;
}

.staff-roster small {
  color: var(--neon-soft);
  margin-top: 5px;
}

.review-console {
  margin-bottom: 18px;
}

.change-review-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.review-change {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.022);
  padding: 12px;
}

.review-change p {
  color: var(--muted);
  margin: 8px 0;
}

.review-change small {
  color: var(--neon-soft);
}

.release-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.release-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.022);
  padding: 12px;
}

.release-card p {
  color: var(--muted);
  margin: 8px 0;
}

.release-card small {
  color: var(--neon-soft);
}

.source-list {
  display: grid;
  gap: 8px;
  margin: 10px 0;
}

.source-list article {
  border: 1px solid rgba(83, 255, 61, 0.16);
  border-radius: 12px;
  background: rgba(83, 255, 61, 0.035);
  padding: 10px;
}

.source-list strong,
.source-list small {
  display: block;
}

.source-list small {
  color: var(--neon-soft);
  margin-top: 3px;
}

.source-list p {
  color: var(--muted);
  margin: 7px 0 0;
  font-size: 0.9rem;
}

.production-board {
  margin-bottom: 18px;
}

.production-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.production-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.022);
  padding: 13px;
  display: grid;
  gap: 10px;
}

.production-card p {
  color: var(--muted);
  margin: 0;
}

.production-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.production-checks span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.82rem;
  font-weight: 800;
}

.production-checks .pass {
  color: var(--neon);
  border-color: rgba(83, 255, 61, 0.2);
}

.production-checks .fail {
  color: #ffe08a;
  border-color: rgba(255, 224, 138, 0.28);
}

.ai-quality {
  border: 1px solid rgba(83, 255, 61, 0.2);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(83, 255, 61, 0.055), rgba(255, 255, 255, 0.012)),
    rgba(255, 255, 255, 0.018);
  padding: 13px;
  display: grid;
  gap: 10px;
}

.ai-quality strong {
  display: block;
  margin-top: 3px;
  font-size: 1.12rem;
}

.quality-meter {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.quality-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--neon), var(--mint));
}

.quality-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.quality-checks span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.82rem;
  font-weight: 800;
}

.quality-checks .pass {
  color: var(--neon);
  border-color: rgba(83, 255, 61, 0.2);
}

.quality-checks .flag {
  color: #ffe08a;
  border-color: rgba(255, 224, 138, 0.28);
}

.quality-notes {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 8px;
}

.quality-notes p {
  color: var(--muted);
  margin: 5px 0 0;
}

.quality-notes.flags strong {
  color: #ffe08a;
}

.saved-view-list {
  display: grid;
  gap: 7px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.saved-view {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.022);
  color: var(--ink);
  padding: 10px;
  display: grid;
  gap: 3px;
  text-align: left;
}

.saved-view:hover:not(:disabled),
.saved-view:focus-visible {
  border-color: rgba(93, 255, 70, 0.34);
  background: rgba(93, 255, 70, 0.055);
  outline: none;
}

.saved-view:disabled {
  cursor: default;
  opacity: 0.72;
}

.saved-view span {
  color: var(--muted);
  font-size: 12px;
}

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

.metric {
  min-height: 126px;
}

.metric strong {
  display: block;
  font-size: 31px;
  margin: 8px 0 5px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 22px;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 10.5px;
  font-weight: 760;
  border: 1px solid transparent;
  white-space: nowrap;
}

.badge.ready,
.badge.completed,
.badge.approved {
  background: rgba(45, 255, 116, 0.1);
  color: var(--green);
  border-color: rgba(45, 255, 116, 0.38);
}

.badge.almost,
.badge.review,
.badge.progress {
  background: rgba(232, 199, 90, 0.11);
  color: var(--amber);
  border-color: rgba(232, 199, 90, 0.36);
}

.badge.notready,
.badge.blocked,
.badge.critical,
.badge.high {
  background: rgba(255, 107, 95, 0.11);
  color: var(--red);
  border-color: rgba(255, 107, 95, 0.36);
}

.badge.draft,
.badge.info,
.badge.medium {
  background: rgba(114, 215, 255, 0.1);
  color: var(--blue);
  border-color: rgba(114, 215, 255, 0.34);
}

.badge.low,
.badge.neutral {
  background: rgba(255, 255, 255, 0.06);
  color: #c2d3c4;
  border-color: var(--line);
}

.stack {
  display: grid;
  gap: 10px;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.row.wrap {
  flex-wrap: wrap;
}

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

.table th,
.table td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 12px 8px;
  vertical-align: top;
}

.table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.table-click {
  cursor: pointer;
  transition: background 0.18s ease;
}

.table-click:hover,
.table-click:focus-visible {
  background: rgba(124, 255, 58, 0.08);
  outline: none;
}

.tree {
  display: grid;
  gap: 9px;
}

.tree-node {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.022);
  border-radius: 12px;
  padding: 12px;
}

.tree-node.phase {
  background: rgba(93, 255, 70, 0.055);
}

.tree-node.day {
  margin-left: 18px;
}

.tree-node.block {
  margin-left: 36px;
}

.tree-node.activity {
  margin-left: 54px;
  background: rgba(255, 255, 255, 0.016);
}

.editable-stack {
  display: grid;
  gap: 6px;
  min-width: min(100%, 520px);
}

.inline-edit {
  width: 100%;
  min-height: 34px;
  border-color: rgba(124, 255, 58, 0.24);
  background: rgba(5, 8, 5, 0.62);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.inline-edit.saved {
  border-color: rgba(93, 255, 70, 0.7);
  box-shadow: 0 0 0 2px rgba(93, 255, 70, 0.12);
  background: rgba(93, 255, 70, 0.055);
}

.number-edit {
  max-width: 86px;
}

textarea.inline-edit {
  min-height: 58px;
}

.admin-field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.admin-field-grid.compact {
  grid-template-columns: repeat(4, minmax(90px, 1fr));
}

.admin-field-grid label {
  display: grid;
  gap: 4px;
}

.admin-field-grid label span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.admin-field-grid .wide {
  grid-column: 1 / -1;
}

.team-access-panel {
  min-width: 0;
}

.team-access-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 14px;
}

.team-list {
  display: grid;
  gap: 8px;
}

.team-list article {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.024);
  padding: 11px;
}

.team-list strong,
.team-list span,
.team-list small {
  display: block;
}

.team-list span,
.team-list small,
.team-create-form small {
  color: var(--muted);
}

.team-role {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.team-create-form {
  border: 1px solid rgba(93, 255, 70, 0.14);
  border-radius: 10px;
  background: rgba(93, 255, 70, 0.035);
  padding: 13px;
}

.disabled-form {
  opacity: 0.68;
}

.admin-add {
  margin-top: 8px;
}

.code {
  color: var(--neon);
  font-weight: 900;
  font-size: 12px;
}

.timeline {
  display: grid;
  gap: 10px;
}

.timeline-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.bar-track {
  height: 34px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.bar {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--neon), var(--neon-2));
  color: #041004;
  font-size: 12px;
  display: flex;
  align-items: center;
  padding: 0 9px;
  position: absolute;
  white-space: nowrap;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.day-card {
  min-height: 104px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.026);
  border-radius: 12px;
  padding: 14px;
  display: grid;
  gap: 8px;
  width: 100%;
}

.run-layout,
.prepare-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 16px;
}

.side-list {
  display: grid;
  gap: 8px;
}

.side-list button {
  min-height: 58px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.024);
  color: var(--ink);
  border-radius: 12px;
  padding: 10px;
  text-align: left;
}

.side-list button.active {
  border-color: var(--neon);
  box-shadow: 0 0 0 2px rgba(124, 255, 58, 0.1);
}

.checklist {
  display: grid;
  gap: 9px;
}

.check-item {
  display: flex;
  align-items: start;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.024);
}

.split-tabs {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.024);
  overflow: hidden;
}

.split-tabs button {
  border: 0;
  min-height: 36px;
  padding: 0 12px;
  background: transparent;
}

.split-tabs button.active {
  background: var(--neon);
  color: #041004;
}

.progress-rail {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-2), var(--neon));
  box-shadow: 0 0 16px rgba(93, 255, 70, 0.23);
}

.resource-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  padding: 14px;
  display: grid;
  gap: 8px;
}

.editable-resource {
  align-items: stretch;
}

.editable-resource label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.86rem;
}

.editable-resource label span {
  color: var(--neon-soft);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.editable-resource select {
  width: 100%;
}

.kit-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.kit-items span {
  border: 1px solid rgba(124, 255, 58, 0.18);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(124, 255, 58, 0.06);
  padding: 4px 8px;
  font-size: 0.78rem;
}

.import-review {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 16px;
}

.ai-studio {
  align-items: start;
}

.source-text {
  min-height: 300px;
  line-height: 1.55;
}

.upload-zone {
  border: 1px dashed rgba(124, 255, 58, 0.4);
  background: rgba(124, 255, 58, 0.07);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  cursor: pointer;
}

.upload-zone:hover {
  border-color: rgba(124, 255, 58, 0.75);
  background: rgba(124, 255, 58, 0.11);
}

.upload-zone input {
  display: none;
}

.restore-button {
  position: relative;
  overflow: hidden;
}

.restore-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-zone strong,
.upload-zone small {
  display: block;
}

.upload-zone small {
  color: var(--muted);
  margin-top: 3px;
}

.ai-package {
  display: grid;
  gap: 10px;
}

.ai-field {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(83, 255, 61, 0.1);
  background: rgba(9, 13, 9, 0.74);
  border-radius: 8px;
  padding: 10px;
}

.ai-field textarea {
  min-height: 66px;
  border-color: rgba(83, 255, 61, 0.14);
  background: #050805;
}

.asset-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.asset-pill {
  border: 1px solid rgba(124, 255, 58, 0.25);
  background: rgba(124, 255, 58, 0.08);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 10px;
  max-width: 100%;
}

.suggestion-strip {
  display: grid;
  gap: 8px;
}

.suggestion-strip span,
.empty-state {
  border: 1px dashed rgba(83, 255, 61, 0.22);
  background: rgba(83, 255, 61, 0.045);
  border-radius: 8px;
  padding: 12px;
  color: #dfffe4;
}

.empty-state h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.diff {
  border-left: 4px solid var(--neon);
  background: #101711;
  padding: 12px;
  border-radius: 0 8px 8px 0;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: min(420px, calc(100vw - 40px));
  background: #0d140e;
  border: 1px solid rgba(124, 255, 58, 0.32);
  color: var(--ink);
  padding: 12px 14px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transform: translateY(90px);
  opacity: 0;
  transition: 0.2s ease;
  z-index: 5;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.modal-root {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 10;
}

.modal-root.show {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.64);
}

.modal-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(980px, calc(100vw - 36px));
  max-height: min(820px, calc(100vh - 36px));
  overflow: auto;
  background: #080d09;
  border: 1px solid rgba(83, 255, 61, 0.2);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
  padding: 18px;
}

.auth-gate {
  z-index: 20;
}

.auth-backdrop {
  background:
    radial-gradient(circle at 50% 16%, rgba(93, 255, 70, 0.12), transparent 26rem),
    rgba(0, 0, 0, 0.78);
}

.auth-panel {
  width: min(430px, calc(100vw - 32px));
  padding: 24px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.auth-brand h2 {
  margin: 2px 0 0;
}

.auth-form,
.team-create-form {
  display: grid;
  gap: 11px;
}

.auth-form label,
.team-create-form label {
  display: grid;
  gap: 5px;
}

.auth-form label span,
.team-create-form label span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.form-error {
  border: 1px solid rgba(255, 107, 95, 0.3);
  border-radius: 8px;
  background: rgba(255, 107, 95, 0.07);
  color: #ffd4cf;
  padding: 9px 10px;
  font-size: 13px;
  font-weight: 700;
}

.modal-header,
.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-header {
  margin-bottom: 14px;
}

.modal-header h2 {
  margin: 4px 0 0;
}

.modal-body {
  display: grid;
  gap: 12px;
}

.modal-actions {
  justify-content: flex-end;
  margin-top: 16px;
}

.guide-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.guide-section,
.station-card {
  border: 1px solid rgba(83, 255, 61, 0.12);
  border-radius: 8px;
  background: rgba(15, 21, 17, 0.9);
  padding: 14px;
}

.guide-section p,
.guide-section li,
.station-card p {
  color: var(--muted);
}

.station-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

[data-icon] {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

[data-icon] svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 1050px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 12px;
    display: grid;
    grid-template-columns: auto minmax(160px, 1fr);
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(124, 255, 58, 0.16);
  }

  .brand {
    margin: 0;
  }

  .brand span,
  .program-card,
  .nav-group-title {
    display: none;
  }

  .nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    justify-content: flex-end;
  }

  .nav-group {
    margin: 0;
    display: contents;
  }

  .nav button {
    width: auto;
    min-width: max-content;
    min-height: 36px;
    padding: 8px 10px;
    border: 1px solid rgba(124, 255, 58, 0.12);
    background: rgba(255, 255, 255, 0.026);
  }

  .nav button.active::before {
    width: 18px;
    height: 3px;
    left: 12px;
    bottom: 0;
    top: auto;
  }

  .main {
    padding: 18px clamp(16px, 3vw, 28px) 36px;
  }

  .command-search {
    order: 3;
    width: 100%;
    min-width: 0;
  }

  .grid.two,
  .grid.three,
  .grid.four,
  .hero-panel,
  .flow-grid,
  .journey-grid,
  .today-path,
  .path-steps,
  .mode-switcher,
  .home-grid,
  .launch-checks,
  .change-review-list,
  .release-list,
  .recovery-list,
  .data-health-list,
  .staff-coverage-grid,
  .production-grid,
  .team-access-grid,
  .run-focus,
  .run-summary,
  .script-grid,
  .guide-layout,
  .station-grid,
  .lesson-brief,
  .quick-stats,
  .run-layout,
  .prepare-layout,
  .import-review {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: auto;
  }

  .portal-hero {
    align-items: start;
    flex-direction: column;
  }

  .start-surface,
  .live-run-strip,
  .lesson-header,
  .lesson-block-head {
    align-items: stretch;
    flex-direction: column;
  }

  .live-run-actions {
    justify-content: flex-start;
    min-width: 0;
  }

  .brief-columns,
  .instruction-cues {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-actions {
    justify-content: flex-start;
  }

  .command-search {
    min-height: 40px;
  }

  .panel {
    padding: 14px;
    border-radius: 12px;
  }

  .start-surface h2,
  .hero-panel h2,
  .portal-hero h2 {
    font-size: 24px;
  }

  .nav {
    justify-content: flex-start;
  }

  .calendar-grid {
    grid-template-columns: 1fr;
  }

  .flow-grid,
  .journey-grid,
  .today-path,
  .path-steps,
  .mode-switcher,
  .home-grid,
  .action-grid,
  .launch-checks,
  .change-review-list,
  .release-list,
  .recovery-list,
  .data-health-list,
  .staff-coverage-grid,
  .production-grid,
  .run-focus,
  .run-summary,
  .script-grid,
  .guide-layout,
  .station-grid,
  .lesson-brief,
  .admin-field-grid,
  .admin-field-grid.compact,
  .quick-stats {
    grid-template-columns: 1fr;
  }

  .hero-panel h2 {
    font-size: 34px;
  }

  .tree-node.day,
  .tree-node.block,
  .tree-node.activity {
    margin-left: 0;
  }

  .timeline-row {
    grid-template-columns: 1fr;
  }
}
