:root {
  color-scheme: dark;
  --page: #070b18;
  --surface: #0c1222;
  --surface-raised: #101a30;
  --line: rgba(145, 175, 226, 0.14);
  --line-strong: rgba(126, 175, 255, 0.28);
  --text: #f2f6ff;
  --muted: #a0aec5;
  --subtle: #71809b;
  --blue: #6f9dff;
  --cyan: #64e3f5;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--page);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(ellipse at 76% 0%, rgba(41, 86, 177, 0.2), transparent 38rem),
    radial-gradient(ellipse at 7% 54%, rgba(24, 87, 125, 0.1), transparent 32rem),
    var(--page);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { color: #04101d; background: var(--cyan); }
a { color: inherit; }

.skip-link {
  position: absolute;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: 8px;
  color: #04101d;
  background: var(--cyan);
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

.page-shell { width: min(1100px, calc(100% - 48px)); margin-inline: auto; }

.site-header {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(145, 175, 226, 0.1);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(112, 167, 255, 0.32);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(75, 130, 230, 0.23), rgba(56, 214, 231, 0.09));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.07), 0 8px 24px rgba(23, 78, 159, 0.13);
}
.brand-mark svg { width: 23px; height: 23px; }
.brand-name, .brand-caption { display: block; }
.brand-name { font-size: 13px; font-weight: 800; letter-spacing: 0.13em; }
.brand-caption {
  margin-top: 1px;
  color: var(--subtle);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
.header-note {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #c5d1e7;
  background: rgba(13, 22, 41, 0.68);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.header-note-mark {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(100, 227, 245, 0.65);
}

.page-content { padding-block: 40px 76px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}
.hero-card, .robot-card, .workspace-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(150deg, rgba(16, 26, 48, 0.96), rgba(10, 16, 31, 0.97));
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.18);
}
.hero-card {
  position: relative;
  display: flex;
  min-height: 344px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(26px, 5vw, 50px);
  isolation: isolate;
}
.hero-card::after {
  position: absolute;
  z-index: -1;
  right: -130px;
  bottom: -205px;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(103, 157, 255, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 35px rgba(103, 157, 255, 0.025), 0 0 0 72px rgba(103, 157, 255, 0.02);
  content: "";
}
.day-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 21px;
  color: #b6c4dc;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.day-number {
  display: inline-grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid rgba(110, 165, 255, 0.4);
  border-radius: 10px;
  color: var(--cyan);
  background: rgba(64, 126, 225, 0.12);
  font-size: 12px;
  letter-spacing: 0.02em;
}
.hero-card h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 1.08;
}
.hero-card h1 span { color: #89aaff; }
.hero-description {
  max-width: 590px;
  margin: 19px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 25px; }
.fact-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid rgba(139, 166, 211, 0.14);
  border-radius: 999px;
  color: #cbd6e9;
  background: rgba(6, 13, 27, 0.42);
  font-size: 11px;
  font-weight: 600;
}
.fact-chip svg { width: 14px; height: 14px; flex: 0 0 auto; color: var(--cyan); }

.robot-card {
  position: fixed;
  z-index: 5;
  right: clamp(10px, 1.6vw, 22px);
  bottom: calc(env(safe-area-inset-bottom, 0px) + clamp(12px, 2vh, 22px));
  display: flex;
  width: clamp(108px, 10vw, 144px);
  min-height: 0;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  margin: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.robot-card::before {
  display: none;
}
.robot-trigger {
  display: block;
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 18px;
  padding: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}
.robot-trigger:disabled { cursor: default; }
.robot-trigger-copy { display: contents; }
.robot-mobile-status { display: none; }
.robot-trigger:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}
.robot-art {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  max-height: 150px;
  margin-top: 0;
  object-fit: contain;
  transform-origin: 50% 90%;
  animation: robot-idle 7s ease-in-out infinite;
}
.robot-card[data-robot-state="busy"] .robot-art { animation: robot-busy 1.8s ease-in-out infinite; }
.robot-card[data-robot-state="success"] .robot-art { animation: robot-success 650ms ease-out 1 both; }
.robot-card[data-robot-state="error"] .robot-art { animation: none; filter: saturate(.92); }
@keyframes robot-idle {
  0%, 100% { transform: translateY(0) rotate(-.35deg); }
  50% { transform: translateY(-5px) rotate(.45deg); }
}
@keyframes robot-busy {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2px) scale(1.012); }
}
@keyframes robot-success {
  0% { transform: translateY(0) rotate(0); }
  45% { transform: translateY(-5px) rotate(1deg); }
  100% { transform: translateY(0) rotate(0); }
}
@keyframes robot-error {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
}
.robot-caption {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 1px;
  margin-top: 3px;
  text-align: center;
}
.robot-caption strong { font-size: 13px; font-weight: 750; letter-spacing: 0.02em; }
.robot-caption span { color: var(--subtle); font-size: 11px; }

.assistant-panel {
  position: fixed;
  z-index: 30;
  right: calc(env(safe-area-inset-right, 0px) + clamp(108px, 10vw, 144px) + 32px);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(360px, calc(100vw - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px) - 24px));
  height: auto;
  max-height: min(34rem, calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 24px));
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  color: var(--text);
  background: linear-gradient(155deg, rgba(16, 26, 48, .99), rgba(8, 14, 29, .99));
  box-shadow: 0 20px 64px rgba(0, 0, 0, .46), 0 0 28px rgba(83, 142, 255, .12);
}
.assistant-panel[hidden] { display: none !important; }
.assistant-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px 12px;
  border-bottom: 1px solid var(--line);
}
.assistant-panel-header h2 { margin: 0; font-size: 16px; line-height: 1.3; }
.assistant-panel-header p { margin: 3px 0 0; color: var(--subtle); font-size: 11px; }
.assistant-panel-close {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--text);
  background: rgba(5, 11, 24, .7);
  font: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.assistant-panel-content { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px; }
.assistant-greeting { margin: 0; color: #d7e2f5; font-size: 13px; line-height: 1.6; }
.assistant-messages { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.assistant-message {
  max-width: 95%;
  justify-self: start;
  margin: 0;
  overflow-wrap: anywhere;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 12px 12px 12px 4px;
  color: #d7e2f5;
  background: rgba(6, 13, 27, .74);
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}
.assistant-message--participant { justify-self: end; border-color: rgba(100, 227, 245, .24); border-radius: 12px 12px 4px 12px; background: rgba(51, 119, 162, .18); }
.assistant-action-slot { min-height: 0; overflow-y: auto; padding: 11px 16px 15px; border-top: 1px solid var(--line); }
.assistant-task-link {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(100, 227, 245, .36);
  border-radius: 12px;
  color: #eafcff;
  background: linear-gradient(135deg, rgba(49, 137, 175, .34), rgba(63, 94, 164, .34));
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.assistant-panel-close:focus-visible,
.assistant-task-link:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

@media (min-width: 960px) {
  .page-shell:has(.assistant-panel:not([data-assistant-mode="day-one"]):not([hidden])) {
    width: min(1100px, calc(100vw - clamp(108px, 10vw, 144px) - 32px - 360px - 24px - 48px));
    margin-right: auto;
    margin-left: 24px;
  }
}

@media (max-width: 760px) {
  .assistant-panel {
    left: calc(env(safe-area-inset-left, 0px) + 12px);
    right: calc(env(safe-area-inset-right, 0px) + 12px);
    bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
    width: auto;
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 24px);
  }
  body:has(.assistant-panel:not([hidden])) .robot-card { visibility: hidden; }
}

@media (min-width: 761px) and (max-width: 959px) {
  .assistant-panel {
    right: calc(env(safe-area-inset-right, 0px) + 12px);
    bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
    width: min(320px, calc(100vw - 24px));
    max-height: min(54dvh, calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 24px));
  }
  body:has(.assistant-panel:not([hidden])) .robot-card { visibility: hidden; }
  .page-shell:has(.assistant-panel:not([data-assistant-mode="day-one"]):not([hidden])) {
    width: min(1100px, calc(100vw - 320px - env(safe-area-inset-right, 0px) - 12px - 24px - 48px));
    margin-right: auto;
    margin-left: 24px;
  }
  .page-shell:has(.assistant-panel:not([hidden])) .day-two-form,
  .page-shell:has(.assistant-panel:not([hidden])) .day-three-form,
  .page-shell:has(.assistant-panel:not([hidden])) .day-three-program-path,
  .page-shell:has(.assistant-panel:not([hidden])) .day-three-program-grid,
  .page-shell:has(.assistant-panel:not([hidden])) .day-two-bonus-skills,
  .page-shell:has(.assistant-panel:not([hidden])) .day-two-bonus-resources { grid-template-columns: minmax(0, 1fr); }
}

.workspace-card { margin-top: 18px; background: rgba(10, 16, 31, 0.86); }
.workspace-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 26px;
}
.section-label {
  margin: 0 0 3px;
  color: #8194b3;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.workspace-heading h2 { margin: 0; font-size: 16px; font-weight: 680; letter-spacing: -0.02em; }
.workspace-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(100, 227, 245, 0.17);
  border-radius: 999px;
  color: #91d9e4;
  background: rgba(52, 147, 167, 0.08);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.workspace-label::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  content: "";
}
.workspace-preview {
  display: grid;
  min-height: 218px;
  place-content: center;
  justify-items: center;
  padding: 28px 20px;
  border-top: 1px solid rgba(145, 175, 226, 0.1);
  background:
    linear-gradient(rgba(97, 139, 201, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(97, 139, 201, 0.035) 1px, transparent 1px),
    radial-gradient(ellipse at 50% 45%, rgba(41, 86, 177, 0.09), transparent 60%),
    #09101e;
  background-size: 32px 32px, 32px 32px, auto, auto;
  text-align: center;
}
.workspace-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  margin-bottom: 11px;
  border: 1px solid rgba(111, 157, 255, 0.2);
  border-radius: 13px;
  color: #8eafff;
  background: rgba(49, 93, 174, 0.13);
}
.workspace-icon svg { width: 19px; height: 19px; }
.workspace-preview strong { font-size: 13px; font-weight: 700; }
.workspace-preview p { max-width: 370px; margin: 4px 0 0; color: var(--subtle); font-size: 12px; }

/* Day-one form controls and status styles. */
.day-one-form { display: grid; gap: 16px; }
.day-one-field { display: grid; min-width: 0; gap: 7px; }
.day-one-field label { color: #cbd6e9; font-size: 12px; font-weight: 680; }
.day-one-field input, .day-one-field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(145, 175, 226, 0.22);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
  background: rgba(4, 10, 22, 0.72);
  font: inherit;
  font-size: 14px;
}
.day-one-field input { min-height: 46px; }
.day-one-field textarea { min-height: 126px; resize: vertical; line-height: 1.6; }
.day-one-field input:focus-visible, .day-one-field textarea:focus-visible,
.day-one-button:focus-visible, .day-one-edit:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
.day-one-field input::placeholder, .day-one-field textarea::placeholder { color: var(--subtle); }
.day-one-button, .day-one-edit {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(100, 227, 245, 0.32);
  border-radius: 12px;
  padding: 10px 16px;
  color: #e9fbff;
  background: linear-gradient(110deg, rgba(48, 111, 184, 0.55), rgba(36, 131, 151, 0.34));
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, opacity 160ms ease;
}
.day-one-button { justify-self: start; }
.day-one-button:hover:not(:disabled), .day-one-edit:hover:not(:disabled) {
  border-color: rgba(100, 227, 245, 0.62);
  background-color: rgba(52, 147, 167, 0.2);
}
.day-one-button:disabled, .day-one-edit:disabled { cursor: wait; opacity: .62; }
.day-one-button-secondary, .day-one-edit {
  border-color: var(--line-strong);
  color: #cbd8ef;
  background: rgba(20, 32, 55, 0.75);
}
.day-one-notice, .day-one-message, .day-one-completion {
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 14px;
  color: #c7d5ed;
  background: rgba(14, 24, 43, 0.8);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.day-one-live-region {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.day-one-notice { margin: 0 auto 18px; border-color: rgba(100, 227, 245, 0.23); }
.day-one-message-error { border-color: rgba(255, 146, 146, 0.3); color: #ffd0d0; }

.day-one-edit { min-height: 36px; flex: 0 0 auto; padding: 6px 10px; font-size: 11px; }

.day-one-invite[hidden] { display: none !important; }
.day-one-invite h3, .day-one-invite p { margin: 0; }
.day-one-invite h3 { color: #d9f8fb; font-size: 15px; }
.day-one-invite > p, .day-one-invite-status { color: var(--muted); font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.day-one-invite-controls { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.day-one-invite-controls input { max-width: 100%; }
.day-one-invite-status { color: #aeeef5; }
.day-two-next-steps { min-width: 0; color: var(--muted); line-height: 1.6; overflow-wrap: anywhere; }
.day-two-next-steps p { margin: 10px 0 0; }
.day-two-next-steps a { color: #a9caff; text-underline-offset: 3px; overflow-wrap: anywhere; }
.day-one-bonus {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  border: 1px solid rgba(100, 227, 245, 0.3);
  border-radius: 14px;
  padding: 18px;
  background: linear-gradient(120deg, rgba(31, 74, 105, 0.34), rgba(13, 24, 45, 0.88));
}
.day-one-bonus[hidden], .day-one-bonus-result[hidden] { display: none; }
.day-one-bonus h3 { margin: 0; color: #d9f8fb; font-size: 16px; line-height: 1.45; }
.day-one-bonus-status, .day-one-bonus-help, .day-one-bonus-code-line, .day-one-bonus-copy-status {
  margin: 0;
  color: #c7d5ed;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.day-one-bonus-result { display: grid; justify-items: start; gap: 10px; min-width: 0; }
.day-one-bonus-code-line code {
  display: inline-block;
  max-width: 100%;
  border: 1px solid rgba(100, 227, 245, 0.26);
  border-radius: 7px;
  padding: 4px 8px;
  color: #e7fbff;
  background: rgba(4, 12, 25, 0.7);
  font-size: 15px;
  overflow-wrap: anywhere;
  user-select: all;
}
.day-one-bonus-copy-status { color: #aeeef5; }

.assistant-setup-hint {
  margin: 0 26px 18px;
  color: #aeeef5;
  font-size: 14px;
  line-height: 1.55;
}
.day-one-plan,
.day-one-next-day {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(100, 227, 245, .22);
  border-radius: 14px;
  background: rgba(33, 91, 122, .14);
}
.day-one-plan h3,
.day-one-plan h4 { margin: 0; color: #d9f8fb; }
.day-one-plan h3 { font-size: 16px; }
.day-one-plan h4 { font-size: 14px; }
.day-one-plan-status,
.day-one-plan-result,
.day-one-plan-month,
.day-one-next-day { color: var(--muted); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.day-one-plan-result { display: grid; gap: 9px; margin-top: 14px; }
.day-one-plan-result p,
.day-one-plan-month p { margin: 0; }
.day-one-plan-text { white-space: pre-wrap; }
.day-one-plan-month { display: grid; gap: 7px; padding-top: 12px; border-top: 1px solid var(--line); }
.day-one-plan-result ul { margin: 0; padding-left: 20px; }
.day-one-plan-disclaimer { color: #d9f8fb; }
.day-one-next-day a { color: #aeeef5; font-weight: 700; }

.day-navigation { margin-top: 28px; }
.navigation-heading {
  margin: 0 0 11px 2px;
  color: #8999b3;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.day-navigation-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.day-navigation-item {
  display: flex;
  min-height: 66px;
  align-items: center;
  gap: 12px;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: #c4cfe2;
  background: rgba(12, 19, 35, 0.76);
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}
a.day-navigation-item:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgba(19, 31, 55, 0.96);
}
a.day-navigation-item:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.day-navigation-item[aria-current="page"] {
  border-color: rgba(111, 157, 255, 0.38);
  color: var(--text);
  background: linear-gradient(110deg, rgba(50, 91, 166, 0.23), rgba(29, 78, 102, 0.14));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
}
.navigation-number {
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(145, 175, 226, 0.15);
  border-radius: 11px;
  color: #9dacc5;
  background: rgba(5, 11, 22, 0.45);
  font-size: 11px;
  font-weight: 750;
}
[aria-current="page"] .navigation-number {
  border-color: rgba(100, 227, 245, 0.28);
  color: var(--cyan);
  background: rgba(64, 160, 183, 0.1);
}
.navigation-copy { display: grid; min-width: 0; line-height: 1.35; }
.navigation-copy strong { font-size: 12px; font-weight: 700; }
.navigation-copy span { margin-top: 2px; color: var(--subtle); font-size: 10px; }

@media (max-width: 760px) {
  .page-shell { width: min(100% - 32px, 600px); }
  .page-content { padding-block: 28px 52px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-card { min-height: 320px; }
}

@media (max-width: 900px) {
  .robot-card { width: clamp(70px, 10vw, 90px); }
  .robot-art { max-height: 105px; }
  .robot-caption { display: none; }
}

@media (max-width: 520px) {
  .day-one-invite-controls { grid-template-columns: minmax(0, 1fr); }
  .day-one-invite-controls
  .page-shell { width: calc(100% - 28px); }
  .assistant-panel {
    left: calc(env(safe-area-inset-left, 0px) + 10px);
    right: calc(env(safe-area-inset-right, 0px) + 10px);
    bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
    width: auto;
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 20px);
  }
  body:has(.assistant-panel:not([hidden])) .robot-card { visibility: hidden; }
  .site-header { min-height: 74px; }
  .brand-mark { width: 38px; height: 38px; border-radius: 12px; }
  .brand-name { font-size: 11px; }
  .brand-caption { font-size: 9px; }
  .header-note { gap: 7px; padding: 7px 9px; font-size: 9px; letter-spacing: 0.045em; }
  .page-content { padding-top: 20px; }
  .hero-grid { gap: 12px; }
  .hero-card { min-height: 0; padding: 27px 21px 25px; border-radius: 20px; }
  .day-kicker { margin-bottom: 17px; font-size: 9px; }
  .day-number { width: 29px; height: 29px; border-radius: 9px; }
  .hero-card h1 { font-size: clamp(32px, 10vw, 43px); }
  .hero-description { margin-top: 14px; font-size: 13px; }
  .hero-facts { gap: 7px; margin-top: 19px; }
  .fact-chip { min-height: 30px; padding-inline: 8px; font-size: 10px; }
  .robot-card { width: clamp(56px, 18vw, 72px); }
  .robot-art { max-height: 86px; }
  [data-school-footer] .footer-links { padding-right: 64px; }
  .workspace-card { margin-top: 12px; border-radius: 19px; }
  .workspace-heading { align-items: flex-start; padding: 17px; }
  .workspace-heading h2 { font-size: 14px; }
  .workspace-label { padding: 6px 8px; font-size: 8px; }
  .workspace-preview { min-height: 190px; }
  .day-navigation { margin-top: 22px; }
  .day-navigation-list { gap: 7px; }

  .day-navigation-item {
    min-height: 62px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 8px 4px;
    border-radius: 13px;
    text-align: center;
  }
  .navigation-number { width: 26px; height: 26px; border-radius: 8px; font-size: 9px; }
  .navigation-copy strong { font-size: 10px; }
  .navigation-copy span { display: none; }

  .assistant-setup-hint { margin-right: 15px; margin-left: 15px; }

  .day-one-button-secondary { align-self: flex-start; }

  .day-one-edit { align-self: flex-start; }

  .day-one-comment { padding: 11px; }
  .day-one-comment-actions { align-items: flex-start; }
}

@media (max-height: 520px) and (min-width: 521px) {
  .robot-card { width: 64px; }
  .robot-art { max-height: 76px; }
  .robot-caption { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
  .robot-art { animation: none !important; transform: none !important; }
}

/* Day 2 bonus content components, rendered only after server-confirmed completion. */
.day-two-bonus-title { margin: 0 0 8px; color: var(--text); font-size: 19px; line-height: 1.35; }
.day-two-bonus-intro { margin: 0 0 22px; color: var(--muted); line-height: 1.65; overflow-wrap: anywhere; }
.day-two-bonus-section-title { margin: 0 0 12px; color: #dce9ff; font-size: 14px; line-height: 1.4; }
.day-two-bonus-skills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: bonus-skill; }
.day-two-bonus-skill-item { min-width: 0; counter-increment: bonus-skill; }
.day-two-bonus-skill { height: 100%; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: rgba(10, 21, 40, .64); }
.day-two-bonus-skill-name { margin: 0 0 8px; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.day-two-bonus-skill-name::before { content: counter(bonus-skill) ". "; color: #8bb9ff; }
.day-two-bonus-skill-link, .day-two-bonus-resource-link { color: #a9caff; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.day-two-bonus-skill-link:focus-visible, .day-two-bonus-resource-link:focus-visible { outline: 2px solid #a9caff; outline-offset: 3px; border-radius: 2px; }
.day-two-bonus-skill-description { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.day-two-bonus-recommendation { margin-top: 22px; padding: 16px; border: 1px solid rgba(105, 181, 232, .26); border-radius: 12px; background: rgba(26, 53, 87, .3); }
.day-two-bonus-recommendation p { margin: 0; color: var(--muted); line-height: 1.65; overflow-wrap: anywhere; }
.day-two-bonus-resources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.day-two-bonus-resource { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(10, 21, 40, .64); }
.day-two-bonus-resource .day-two-bonus-section-title { margin-bottom: 7px; }

.header-day-navigation ol {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 34px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.header-day-item {
  display: grid;
  grid-template-columns: 38px auto;
  align-items: center;
  column-gap: 10px;
  color: #cbd7ec;
  line-height: 1.25;
}
.header-day-item > span {
  display: grid;
  width: 38px;
  height: 38px;
  grid-row: span 2;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: #a9bad5;
  background: rgba(8, 17, 34, .72);
  font-size: 12px;
}
.header-day-item strong { font-size: 12px; }
.header-day-item small { color: var(--subtle); font-size: 10px; }
.header-day-item[aria-current="page"] > span {
  border-color: rgba(100, 227, 245, .72);
  color: var(--cyan);
  background: rgba(21, 107, 139, .2);
}
.header-day-item.is-locked { color: #8492aa; }

@media (max-width: 959px) {
  .day-one-page .day-one-plan .day-one-button,
  .day-one-page .day-one-invite .day-one-button,
  .day-one-page .day-one-bonus .day-one-button,
  .day-two-page .day-two-bonus .day-two-button,
  .day-two-page #check-submission,
  .day-two-page #retry-status { width: 100%; max-width: 100%; }
}

/* Day 1 single-thread messenger. Kept separate from the Day 2/3 workspace styles. */
html:has(body.day-one-page),
body.day-one-page {
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
}
html:has(body.day-one-page) { overflow: hidden; }
body.day-one-page {
  --nm-cookie-reserve: 0px;
  height: var(--nm-chat-visual-height, 100dvh);
  color: #ecedf2;
  background: #0b0c11;
  padding: 0;
}
html:has(body.day-one-page):has(#school-cookie-consent:not([hidden])) body.day-one-page { --nm-cookie-reserve: 108px; }
@media (max-width: 640px) {
  html:has(body.day-one-page):has(#school-cookie-consent:not([hidden])) body.day-one-page { --nm-cookie-reserve: 126px; }
}
.day-one-page .skip-link { z-index: 10; }
.day-one-chat-page {
  display: flex;
  width: min(760px, 100%);
  height: calc(var(--nm-chat-visual-height, 100dvh) - var(--nm-cookie-reserve, 0px));
  min-height: 0;
  flex-direction: column;
  margin: 0 auto;
  padding: env(safe-area-inset-top, 0px) 16px 0;
}
.day-one-chat {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #0b0c11;
  box-shadow: none;
}
.day-one-chat-header {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 68px;
  flex: 0 0 auto;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #262a3b;
  padding: 9px 2px 10px;
  background: #0b0c11;
}
.day-one-chat-identity { display: flex; min-width: 0; flex: 1 1 auto; align-items: center; gap: 10px; }
.day-one-chat-identity > span:last-child { display: grid; min-width: 0; gap: 2px; line-height: 1.2; }
.day-one-chat-identity strong { color: #ecedf2; font-size: 16px; }
.day-one-chat-identity small { color: #9aa0b4; font-size: 12px; }
.day-one-chat-avatar-frame {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 2px solid #60a5fa;
  border-radius: 50%;
  background: linear-gradient(135deg, #2a2140, #3a2d18);
}
.day-one-chat-avatar { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; object-position: center; }
.day-one-chat-avatar-frame[data-robot-state="busy"] { box-shadow: 0 0 0 3px rgba(96, 165, 250, .16); }
.day-one-chat-avatar-frame[data-robot-state="success"] { animation: day-one-chat-confirm 650ms ease-out 1; }
.day-one-chat-avatar-frame[data-robot-state="error"] { border-color: #ff9898; }
@keyframes day-one-chat-confirm {
  0% { box-shadow: 0 0 0 0 rgba(96, 165, 250, .45); }
  100% { box-shadow: 0 0 0 10px rgba(96, 165, 250, 0); }
}
.day-one-chat-progress { width: min(190px, 32%); flex: 0 1 auto; }
.day-one-chat-progress p { margin: 0 0 6px; color: #9aa0b4; font-size: 11px; text-align: right; }
.day-one-chat-progress .day-one-progress-meter { display: flex; width: 100%; gap: 4px; margin: 0; }
.day-one-chat-progress .day-one-progress-meter span { height: 6px; flex: 1; border-radius: 99px; background: #262a3b; }
.day-one-chat-progress .day-one-progress-meter[data-progress="1"] span:nth-child(-n+1),
.day-one-chat-progress .day-one-progress-meter[data-progress="2"] span:nth-child(-n+2),
.day-one-chat-progress .day-one-progress-meter[data-progress="3"] span:nth-child(-n+3),
.day-one-chat-progress .day-one-progress-meter[data-progress="4"] span:nth-child(-n+4),
.day-one-chat-progress .day-one-progress-meter[data-progress="5"] span:nth-child(-n+5) { background: #60a5fa; }
.day-one-documents { position: relative; flex: 0 0 auto; }
.day-one-documents > summary {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #262a3b;
  border-radius: 50%;
  color: #9aa0b4;
  cursor: pointer;
  font-size: 21px;
  line-height: 1;
  list-style: none;
}
.day-one-documents > summary::-webkit-details-marker { display: none; }
.day-one-documents nav {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 6;
  display: grid;
  width: min(290px, calc(100vw - 28px));
  gap: 2px;
  border: 1px solid #262a3b;
  border-radius: 12px;
  padding: 7px;
  background: #171a26;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .42);
}
.day-one-documents nav a { border-radius: 8px; padding: 9px; color: #cbd7ec; font-size: 12px; text-decoration: none; }
.day-one-documents nav a:hover,
.day-one-documents nav a:focus-visible { background: #262a3b; color: #fff; }
.day-one-chat-log {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 12px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 4px 12px;
  scroll-padding-block: 12px;
  scrollbar-color: rgba(154, 160, 180, .38) transparent;
}
.day-one-chat-log > [hidden],
.day-one-progress[hidden],
.day-one-current[hidden],
.day-one-composer[hidden],
.day-one-chat-log [hidden] { display: none !important; }
.day-one-entry,
.day-one-progress { width: 100%; min-width: 0; max-width: 100%; margin: 0; }
.day-one-progress { display: flex; flex: 1 0 auto; flex-direction: column; gap: 12px; }
.day-one-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}
.day-one-chat-message,
.day-one-chat-card,
.day-one-assistant-note {
  width: fit-content;
  max-width: min(84%, 620px);
  margin: 0;
  border: 1px solid #262a3b;
  border-radius: 18px;
  padding: 12px 15px;
  color: #ecedf2;
  background: #191c2b;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.day-one-chat-message-assistant,
.day-one-chat-card,
.day-one-assistant-note,
.day-one-comment { align-self: flex-start; border-top-left-radius: 6px; }
.day-one-chat-message-user { align-self: flex-end; border-color: rgba(96, 165, 250, .28); border-top-right-radius: 6px; background: linear-gradient(135deg, #34314f, #2a2f45); }
.day-one-chat-message h1 { margin: 0 0 7px; color: #f2f7ff; font-size: 17px; }
.day-one-chat-message p { margin: 7px 0 0; }
.day-one-chat-speaker { margin: 0 0 5px !important; color: #9aa0b4; font-size: 11px; font-weight: 700; }
.day-one-chat-speaker:empty { display: none; }
.day-one-page:has(#session-entry:not([hidden]))::before {
  content: "";
  position: fixed;
  z-index: 70;
  inset: 0;
  background: rgba(6, 7, 12, .72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
html:has(body.day-one-page):has(#session-entry:not([hidden])) #school-cookie-consent {
  --school-cc-offset: 0px !important;
}
.day-one-welcome {
  position: fixed;
  z-index: 71;
  top: 50%;
  left: 50%;
  display: grid;
  width: min(420px, calc(100vw - 40px));
  max-height: min(720px, calc(100dvh - 2 * (var(--nm-cookie-reserve, 0px) + 16px)));
  justify-items: center;
  gap: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0;
  transform: translate(-50%, -50%);
  border: 1px solid #262a3b;
  border-radius: 22px;
  padding: 24px;
  color: #ecedf2;
  background: #171a26;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .52);
  text-align: center;
}
.day-one-welcome[hidden] { display: none !important; }
.day-one-welcome-avatar {
  display: block;
  width: 76px;
  height: 76px;
  margin: 0 auto 10px;
  border: 2px solid #60a5fa;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 18px rgba(96, 165, 250, .2);
}
.day-one-welcome h1 { margin: 0 0 6px; color: #f2f7ff; font-size: 21px; line-height: 1.3; }
.day-one-welcome-description { margin: 0 0 12px; color: #a8bddb; font-size: 14px; line-height: 1.5; }
.day-one-welcome-recovery { margin: 0 0 16px; color: #ff6b6b; font-size: 13px; line-height: 1.45; }
.day-one-welcome .day-one-message { width: 100%; margin: 0 0 10px; }
.day-one-session-form { width: 100%; gap: 10px; margin: 0; border: 0; border-radius: 0; padding: 0; background: transparent; text-align: left; }
.day-one-welcome .day-one-field { gap: 0; }
.day-one-welcome .day-one-field input { min-height: 48px; border-color: #262a3b; border-radius: 12px; background: #10131f; font-size: 15px; }
.day-one-welcome .day-one-field input:focus-visible { border-color: #60a5fa; outline-color: rgba(96, 165, 250, .55); }
.day-one-welcome #session-submit { width: 100%; min-height: 46px; border: 0; border-radius: 12px; color: #fff; background: linear-gradient(110deg, #3478ee, #60a5fa); font-size: 14px; }
.day-one-welcome .day-one-session-privacy { margin: 0; color: #9aa0b4; font-size: 11px; line-height: 1.4; text-align: center; }
.day-one-answer-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.day-one-answer-item { display: grid; min-width: 0; gap: 8px; margin: 0; border: 0; border-radius: 0; padding: 0; background: transparent; }
.day-one-answer-question { justify-self: start; max-width: min(84%, 620px); }
.day-one-answer-question .day-one-answer-prompt { margin: 0; }
.day-one-answer-bubble { display: grid; justify-self: end; justify-items: end; gap: 7px; width: fit-content; max-width: min(84%, 620px); padding: 11px 14px; white-space: pre-wrap; }
.day-one-answer-text { margin: 0; color: #f0f4fb; text-align: left; white-space: pre-wrap; }
.day-one-answer-edit { min-height: 30px; border: 0; padding: 4px 0; color: #9aa0b4; background: transparent; font-size: 11px; text-decoration: underline; }
.day-one-answer-edit:hover:not(:disabled) { color: #fff; background: transparent; }
.day-one-comment { justify-self: start; width: fit-content; max-width: min(84%, 620px); margin: 0; border: 1px solid #262a3b; border-radius: 18px; border-top-left-radius: 6px; padding: 11px 14px; background: #191c2b; }
.day-one-comment-heading { margin: 0 0 4px; color: #9aa0b4; font-size: 11px; font-weight: 700; }
.day-one-comment-status,
.day-one-comment-text { margin: 0; color: #ecedf2; font-size: 13px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.day-one-comment-status-error { color: #ffd0d0; }
.day-one-comment-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.day-one-comment-action { min-height: 36px; max-width: 100%; padding: 6px 9px; font-size: 11px; }
.day-one-chat-current { width: fit-content; max-width: min(84%, 620px); margin: 0; border: 1px solid #262a3b; border-radius: 18px; border-top-left-radius: 6px; padding: 12px 15px; background: #191c2b; }
.day-one-chat-current h2 { margin: 0; color: #ecedf2; font-size: 15px; line-height: 1.45; }
.day-one-chat-hint { margin: 6px 0 0; color: #9aa0b4; font-size: 12px; }
.day-one-chat-log .day-one-chat-message-assistant,
.day-one-chat-log .day-one-chat-card,
.day-one-chat-log .day-one-comment,
.day-one-chat-log .day-one-next-day { position: relative; margin-left: 40px; }
.day-one-chat-log .day-one-chat-message-assistant::before,
.day-one-chat-log .day-one-chat-card::before,
.day-one-chat-log .day-one-comment::before,
.day-one-chat-log .day-one-next-day::before {
  content: "";
  position: absolute;
  top: 5px;
  left: -38px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(96, 165, 250, .7);
  border-radius: 50%;
  background: #0b0c11 url("vision-avatar.webp") center / cover no-repeat;
  box-shadow: 0 0 10px rgba(96, 165, 250, .18);
  pointer-events: none;
}
.day-one-chat-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.day-one-chat-card { display: grid; gap: 8px; padding: 13px 15px; }
.day-one-chat-card h3,
.day-one-chat-card p { margin-top: 0; }
.day-one-plan-result { display: grid; gap: 8px; }
.day-one-plan-month { border-top: 1px solid #262a3b; padding-top: 10px; }
.day-one-notice { width: fit-content; max-width: 100%; margin: 0; }
.day-one-progress > #retry-status { align-self: flex-start; min-height: 34px; padding: 6px 10px; }
.day-one-composer {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 68px;
  flex: 0 0 auto;
  align-items: flex-end;
  gap: 9px;
  border-top: 1px solid #262a3b;
  padding: 9px 2px calc(10px + env(safe-area-inset-bottom, 0px));
  background: #0b0c11;
}
.day-one-composer textarea {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  max-height: 140px;
  flex: 1 1 auto;
  overflow-y: auto;
  resize: none;
  border: 1px solid #262a3b;
  border-radius: 14px;
  padding: 10px 13px;
  outline: none;
  color: #ecedf2;
  background: #171a26;
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
}
.day-one-composer textarea:focus-visible { border-color: #60a5fa; outline: 2px solid rgba(96, 165, 250, .28); outline-offset: 1px; }
.day-one-composer-submit { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.day-one-composer-submit .day-one-message { max-width: 230px; margin: 0; padding: 0; border: 0; background: transparent; font-size: 11px; }
.day-one-composer-submit .day-one-button { min-height: 42px; padding: 9px 13px; white-space: nowrap; }
.day-one-chat:has(.day-one-composer[hidden]) .day-one-chat-log { padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
.day-one-chat:has(.day-one-composer:not([hidden])) .day-one-chat-log { scroll-padding-bottom: 20px; }
body.day-one-page #school-cookie-consent { z-index: 8000; }
@media (max-width: 640px) {
  .day-one-chat-page { width: 100%; padding-right: 12px; padding-left: 12px; }
  .day-one-chat-header { min-height: 62px; gap: 8px; padding-top: 7px; padding-bottom: 8px; }
  .day-one-chat-identity { gap: 8px; }
  .day-one-chat-identity strong { font-size: 15px; }
  .day-one-chat-identity small { font-size: 10px; }
  .day-one-chat-avatar-frame { width: 42px; height: 42px; }
  .day-one-chat-avatar { width: 100%; height: 100%; }
  .day-one-chat-progress { width: min(142px, 38%); }
  .day-one-chat-progress p { font-size: 10px; }
  .day-one-documents > summary { width: 32px; height: 32px; }
  .day-one-chat-log { gap: 10px; padding: 12px 0; }
  .day-one-chat-message,
  .day-one-chat-card,
  .day-one-assistant-note { max-width: 91%; padding: 10px 12px; font-size: 13px; }
  .day-one-welcome {
    top: calc((var(--nm-chat-visual-height, 100dvh) - var(--nm-cookie-reserve, 0px)) / 2);
    width: calc(100vw - 40px);
    max-height: min(720px, calc(var(--nm-chat-visual-height, 100dvh) - var(--nm-cookie-reserve, 0px) - 32px));
    padding: 20px;
  }
  .day-one-welcome-avatar { width: 76px; height: 76px; }
  .day-one-welcome-recovery { margin-bottom: 14px; }
  .day-one-welcome #session-submit { min-height: 44px; }
  .day-one-answer-bubble,
  .day-one-answer-question,
  .day-one-comment,
  .day-one-chat-current { max-width: 91%; }
  .day-one-chat-log .day-one-chat-message-assistant,
  .day-one-chat-log .day-one-chat-card,
  .day-one-chat-log .day-one-comment,
  .day-one-chat-log .day-one-next-day { max-width: min(calc(100% - 40px), 620px); }
  .day-one-chat-current { padding: 10px 12px; }
  .day-one-chat-current h2 { font-size: 14px; }
  .day-one-composer { min-height: 62px; gap: 7px; padding-top: 7px; padding-right: 0; padding-left: 0; }
  .day-one-composer textarea { min-height: 42px; font-size: 14px; }
  .day-one-composer-submit .day-one-button { min-height: 42px; padding: 8px 11px; }
  .day-one-composer-submit .day-one-message { position: absolute; right: 0; bottom: calc(100% + 5px); max-width: 100%; padding: 6px 9px; border: 1px solid #262a3b; border-radius: 10px; background: #171a26; }
}
@media (max-width: 380px) {
  .day-one-chat-identity small { max-width: 138px; }
  .day-one-chat-progress { width: 37%; }
  .day-one-chat-progress p { font-size: 9px; }
  .day-one-chat-log { padding-right: 2px; padding-left: 2px; }
  .day-one-composer-submit .day-one-button { padding-inline: 9px; font-size: 12px; }
}
@media (max-height: 520px) {
  .day-one-chat-page { padding-top: env(safe-area-inset-top, 0px); }
  .day-one-chat-header { min-height: 54px; }
  .day-one-chat-avatar-frame { width: 38px; height: 38px; }
  .day-one-chat-log { padding-top: 8px; }
  .day-one-chat-current { padding: 9px 11px; }
  .day-one-chat-hint { display: none; }
  .day-one-composer { min-height: 54px; padding-top: 6px; padding-bottom: calc(7px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  .day-one-chat-avatar-frame[data-robot-state="success"] { animation: none; }
}

/* Day 2 Vision chat: a self-contained conversation, independent of the closable shared panel. */
html:has(body.day-two-page),
body.day-two-page {
  width: 100%; height: 100%; min-height: 0; margin: 0; overflow: hidden; overscroll-behavior: none;
}
html:has(body.day-two-page) { overflow: hidden; }
body.day-two-page { --nm-cookie-reserve: 0px; height: var(--nm-chat-visual-height, 100dvh); padding: 0; color: #ecedf2; background: #0b0c11; }
html:has(body.day-two-page):has(#school-cookie-consent:not([hidden])) body.day-two-page { --nm-cookie-reserve: 108px; }
@media (max-width: 640px) { html:has(body.day-two-page):has(#school-cookie-consent:not([hidden])) body.day-two-page { --nm-cookie-reserve: 126px; } }
.day-two-page .skip-link { z-index: 10; }
.day-two-chat-page { display: flex; width: min(760px, 100%); height: calc(var(--nm-chat-visual-height, 100dvh) - var(--nm-cookie-reserve, 0px)); min-height: 0; flex-direction: column; margin: 0 auto; padding: env(safe-area-inset-top, 0px) 16px 0; }
.day-two-chat { display: flex; width: 100%; height: 100%; min-height: 0; flex: 1 1 auto; flex-direction: column; overflow: hidden; background: #0b0c11; }
.day-two-chat-header { display: flex; min-height: 68px; flex: 0 0 auto; align-items: center; gap: 12px; border-bottom: 1px solid #262a3b; padding: 9px 2px 10px; background: #0b0c11; }
.day-two-chat-header .day-one-chat-identity { flex: 1 1 auto; }
.day-two-chat-status-indicator { display: flex; flex: 0 0 auto; align-items: center; gap: 7px; color: #9aa0b4; font-size: 11px; }
.day-two-chat-status-indicator > span:first-child { width: 8px; height: 8px; border-radius: 50%; background: #35d399; box-shadow: 0 0 10px rgba(53, 211, 153, .6); }
.day-two-chat-status-indicator[data-state="busy"] > span:first-child { background: #60a5fa; }
.day-two-chat-status-indicator[data-state="error"] > span:first-child { background: #fb7185; }
.day-two-chat-status-indicator[data-state="success"] > span:first-child { background: #35d399; }
.day-two-chat-log { display: flex; min-height: 0; flex: 1 1 auto; flex-direction: column; gap: 12px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding: 16px 4px 14px; scrollbar-color: rgba(154, 160, 180, .38) transparent; }
.day-two-chat-log > [hidden], .day-two-chat-log [hidden], .day-two-progress[hidden], .day-two-upload-form[hidden] { display: none !important; }
.day-two-chat-log > .day-two-app { display: flex; width: 100%; min-width: 0; min-height: 100%; flex: 1 0 auto; flex-direction: column; padding: 0; }
.day-two-chat-log .day-two-progress { display: flex; min-width: 0; flex: 1 0 auto; flex-direction: column; gap: 12px; }
.day-two-messages { display: grid; width: 100%; gap: 9px; margin: 0; padding: 0; list-style: none; }
.day-two-messages:empty { display: none; }
.day-two-chat-bubble { position: relative; width: fit-content; max-width: min(84%, 620px); border: 1px solid #262a3b; border-radius: 18px; padding: 12px 15px; color: #ecedf2; background: #191c2b; font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.day-two-chat-bubble--assistant { justify-self: start; margin-left: 40px; border-top-left-radius: 6px; }
.day-two-chat-bubble--assistant::before { content: ""; position: absolute; top: 5px; left: -38px; width: 30px; height: 30px; border: 1px solid rgba(96, 165, 250, .7); border-radius: 50%; background: #0b0c11 url("vision-avatar.webp") center / cover no-repeat; box-shadow: 0 0 10px rgba(96, 165, 250, .18); pointer-events: none; }
.day-two-chat-bubble--user { justify-self: end; max-width: min(84%, 620px); border-color: rgba(96, 165, 250, .28); border-top-right-radius: 6px; background: linear-gradient(135deg, #34314f, #2a2f45); }
.day-two-page:has(#session-entry:not([hidden]))::before { content: ""; position: fixed; z-index: 70; inset: 0; background: rgba(6, 7, 12, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
html:has(body.day-two-page):has(#session-entry:not([hidden])) #school-cookie-consent { --school-cc-offset: 0px !important; }
.day-two-welcome[hidden] { display: none !important; }
.day-two-welcome #session-submit { width: 100%; max-width: none; }
.day-two-completion, .day-two-bonus { width: fit-content; max-width: min(84%, 620px); align-self: flex-start; margin: 0 0 0 40px; border: 1px solid #262a3b; border-radius: 18px; border-top-left-radius: 6px; padding: 12px 15px; background: #191c2b; }
.day-two-completion h2, .day-two-bonus h2 { margin: 0 0 8px; color: #f2f7ff; font-size: 15px; }
.day-two-completion-copy, .day-two-bonus-description, .day-two-purged-note { margin: 7px 0; color: #c3ccdc; font-size: 13px; line-height: 1.5; }
.day-two-review-feedback { white-space: pre-wrap; overflow-wrap: anywhere; }
.day-two-submission-details { display: grid; gap: 6px; margin: 10px 0 0; font-size: 12px; }
.day-two-submission-details div { display: grid; grid-template-columns: minmax(120px, .7fr) minmax(0, 1fr); gap: 10px; }
.day-two-submission-details dt { color: #9aa0b4; }
.day-two-submission-details dd { min-width: 0; margin: 0; color: #ecedf2; overflow-wrap: anywhere; }
.day-two-next-steps { color: #c3ccdc; font-size: 13px; }
.day-two-next-steps p { margin: 7px 0 0; }
.day-two-bonus-content { margin-top: 12px; }
.day-two-composer { position: relative; z-index: 2; display: flex; min-height: 68px; flex: 0 0 auto; align-items: center; border-top: 1px solid #262a3b; padding: 9px 2px calc(10px + env(safe-area-inset-bottom, 0px)); background: #0b0c11; }
.day-two-composer:has(#upload-form[hidden]) { display: none; }
.day-two-upload-form, .day-two-fieldset { width: 100%; min-width: 0; margin: 0; border: 0; padding: 0; }
.day-two-fieldset { position: relative; }
.day-two-fieldset:disabled { opacity: .72; }
.day-two-notice, .day-two-message { padding: 12px 14px; border: 1px solid #262a3b; border-radius: 12px; color: #c9d8ef; background: rgba(17, 29, 51, .62); line-height: 1.55; overflow-wrap: anywhere; }
.day-two-message-error, .day-two-app [role="alert"] { border-color: rgba(255, 135, 135, .36); color: #ffd6d6; background: rgba(105, 29, 43, .2); }
.day-two-composer-notice { position: absolute; right: 0; bottom: calc(100% + 6px); left: 0; width: fit-content; max-width: 100%; margin: 0; }
.day-two-composer-row { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 220px); align-items: center; gap: 8px; }
.day-two-slide-tray { position: static; min-width: 0; }
.day-two-slide-tray-summary { display: flex; min-height: 40px; align-items: center; gap: 6px; border: 1px solid #30374b; border-radius: 11px; padding: 7px 10px; color: #d7e2f5; background: #171a26; cursor: pointer; font-size: 12px; font-weight: 650; list-style: none; white-space: nowrap; }
.day-two-slide-tray-summary::-webkit-details-marker { display: none; }
.day-two-slide-tray-summary::after { content: "⌃"; color: #9aa0b4; font-size: 12px; }
.day-two-slide-tray[open] > .day-two-slide-tray-summary::after { content: "⌄"; }
.day-two-slide-tray-summary:focus-visible, .day-two-file-picker:focus-visible { outline: 2px solid #60a5fa; outline-offset: 2px; }
.day-two-media-summary { min-width: 0; overflow: hidden; color: #9aa0b4; font-size: 10px; font-weight: 400; text-overflow: ellipsis; }
.day-two-slide-tray-content { position: absolute; right: 0; bottom: calc(100% + 8px); left: 0; z-index: 7; width: 100%; max-height: min(54dvh, 430px); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; border: 1px solid #30374b; border-radius: 14px; padding: 10px; background: #111522; box-shadow: 0 16px 36px rgba(0, 0, 0, .48); scrollbar-color: rgba(154, 160, 180, .38) transparent; }
.day-two-file-requirements > summary { color: #a8bddb; cursor: pointer; font-size: 11px; }
.day-two-file-rules { margin: 7px 0 0; color: #9aa0b4; font-size: 11px; line-height: 1.4; }
.day-two-file-field { display: flex; min-width: 0; min-height: 42px; align-items: center; }
.day-two-file-field input[type="file"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.day-two-file-picker { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; border: 1px solid #30374b; border-radius: 11px; padding: 7px 10px; color: #d7e2f5; background: #171a26; font-size: 12px; font-weight: 650; cursor: pointer; white-space: nowrap; }
.day-two-slide-list { display: grid; max-height: min(calc(54dvh - 120px), 300px); gap: 7px; overflow-y: auto; margin: 8px 0 0; padding: 0; list-style: none; }
.day-two-slide-list:empty { display: none; }
.day-two-slide { display: grid; min-width: 0; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; gap: 8px; border: 1px solid #262a3b; border-radius: 11px; padding: 6px; background: rgba(7, 14, 27, .7); }
.day-two-slide-preview { display: grid; width: 54px; height: 46px; place-items: center; overflow: hidden; border-radius: 8px; background: #0b1426; }
.day-two-slide-preview img { display: block; width: 100%; height: 100%; object-fit: contain; }
.day-two-slide-details { display: grid; min-width: 0; gap: 3px; color: #a8bddb; font-size: 10px; }
.day-two-slide-number { font-size: 11px; }
.day-two-slide-number { color: #ecedf2; font-weight: 700; }
.day-two-slide-name { min-width: 0; overflow-wrap: anywhere; }
.day-two-slide-size { color: #9aa0b4; }
.day-two-slide-actions, .day-two-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.day-two-slide-actions .day-two-button { min-height: 30px; padding: 4px 6px; font-size: 10px; }
.day-two-actions { display: flex; min-width: 0; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.day-two-button { width: auto; max-width: 220px; min-height: 40px; flex: 0 0 auto; border-radius: 11px; padding: 8px 12px; background: linear-gradient(110deg, #3478ee, #60a5fa); white-space: nowrap; }
.day-two-button:focus-visible { outline: 2px solid #a9caff; outline-offset: 3px; }
.day-two-button-secondary { background: #171a26; }
.day-two-button-small { min-height: 30px; padding: 4px 7px; font-size: 10px; }
.day-two-button:disabled { opacity: .48; cursor: not-allowed; }
.day-two-submit-label-short { display: none; }
.day-two-visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; }
.day-two-page #school-cookie-consent { z-index: 8000; }
.day-two-page #school-cookie-consent:not([hidden]) { --school-cc-offset: 0px; }
@media (max-width: 640px) {
  .day-two-chat-page { width: 100%; padding-right: 12px; padding-left: 12px; }
  .day-two-chat-header { min-height: 62px; gap: 8px; padding-top: 7px; padding-bottom: 8px; }
  .day-two-chat-header .day-one-chat-avatar-frame { width: 42px; height: 42px; }
  .day-two-chat-header .day-one-chat-identity { gap: 8px; }
  .day-two-chat-header .day-one-chat-identity strong { font-size: 15px; }
  .day-two-chat-header .day-one-chat-identity small { font-size: 10px; }
  .day-two-chat-status-indicator { gap: 5px; font-size: 9px; }
  .day-two-chat-log { gap: 10px; padding: 12px 0; }
  .day-two-chat-bubble { max-width: 91%; padding: 10px 12px; font-size: 13px; }
  .day-two-chat-bubble--assistant { max-width: min(calc(100% - 40px), 620px); }
  .day-two-chat-bubble--user { max-width: 91%; }
  .day-two-completion, .day-two-bonus { max-width: min(calc(100% - 40px), 620px); margin-left: 40px; padding: 10px 12px; }
  .day-two-submission-details div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .day-two-composer { min-height: 62px; padding: 7px 0 calc(8px + env(safe-area-inset-bottom, 0px)); }
  .day-two-composer-row { grid-template-columns: auto minmax(0, 1fr) minmax(0, 190px); gap: 6px; }
  .day-two-slide-tray-summary { min-height: 40px; padding: 7px 8px; font-size: 11px; }
  .day-two-media-summary { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .day-two-slide-tray-content { width: 100%; max-height: min(54dvh, 390px); }
  .day-two-slide-list { max-height: min(calc(54dvh - 120px), 260px); }
  .day-two-slide { grid-template-columns: 46px minmax(0, 1fr); }
  .day-two-slide-preview { width: 46px; height: 42px; }
  .day-two-slide-actions { grid-column: 1 / -1; justify-content: stretch; }
  .day-two-slide-actions .day-two-button { flex: 1 1 auto; }
  .day-two-file-picker { padding-inline: 8px; font-size: 11px; }
  .day-two-button { min-height: 40px; padding: 8px 10px; font-size: 12px; }
  .day-two-submit-label-full { display: none; }
  .day-two-submit-label-short { display: inline; }
  .day-two-actions { max-width: 190px; }
  .day-two-bonus-skills, .day-two-bonus-resources { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 380px) {
  .day-two-chat-header .day-one-chat-identity small { max-width: 138px; }
  .day-two-composer-row { grid-template-columns: auto minmax(0, 1fr) minmax(0, 92px); gap: 5px; }
  .day-two-slide-tray-summary { gap: 3px; padding-inline: 7px; }
  .day-two-file-picker { padding-inline: 6px; font-size: 10px; }
  .day-two-actions { max-width: 92px; }
  .day-two-button { padding-inline: 8px; font-size: 11px; }
}
@media (max-height: 560px) {
  .day-two-chat-log { gap: 7px; padding-block: 7px; }
  .day-two-composer { min-height: 54px; padding-top: 6px; padding-bottom: calc(7px + env(safe-area-inset-bottom, 0px)); }
  .day-two-slide-tray-content { max-height: min(50dvh, 330px); }
  .day-two-slide-list { max-height: min(calc(50dvh - 110px), 240px); }
}
@media (prefers-reduced-motion: reduce) {
  .day-two-page *, .day-two-page *::before, .day-two-page *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
