:root {
  --ink: #18233b;
  --ink-soft: #35415a;
  --muted: #6f756f;
  --canvas: #fffdf7;
  --surface: #ffffff;
  --rail: #f7f6ef;
  --navy: #173e6d;
  --blue: #2e8ec5;
  --blue-deep: #1d6f9e;
  --blue-wash: #e3f3fb;
  --yellow: #f5c84b;
  --yellow-wash: #fff3c6;
  --coral: #ed6b4f;
  --coral-wash: #ffe7df;
  --green: #2e9976;
  --green-wash: #dff4ea;
  --line: rgba(24, 35, 59, 0.13);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, ui-serif, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  font-family: var(--sans);
  font-synthesis: none;
  line-height: 1.4;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
  scroll-behavior: smooth;
}

body {
  background: var(--canvas);
  margin: 0;
  min-width: 320px;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
select,
textarea {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

svg {
  display: block;
  fill: none;
  flex: 0 0 auto;
  height: 1.25rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 1.25rem;
}

.icon-sprite {
  display: none;
}

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

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

.sidebar {
  background: var(--rail);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 1.25rem 0.9rem;
  position: sticky;
  top: 0;
}

.brand-lockup {
  align-items: center;
  background: var(--blue-wash);
  border-radius: 8px;
  display: grid;
  gap: 0.35rem;
  grid-template-columns: 3.4rem auto 4rem;
  justify-content: center;
  min-height: 5.15rem;
  padding: 0.55rem;
}

.brand-tile {
  align-items: center;
  display: flex;
  height: 3.4rem;
  justify-content: center;
  overflow: hidden;
}

.brand-tile img {
  display: block;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.cycle-tile img {
  height: 3.4rem;
  max-width: none;
  width: 5.05rem;
}

.brand-plus {
  color: var(--blue-deep);
  font-size: 1.1rem;
  font-weight: 650;
}

.side-nav {
  display: grid;
  gap: 0.15rem;
  margin-top: 1.15rem;
}

.nav-item {
  align-items: center;
  border-radius: 6px;
  color: var(--ink-soft);
  display: flex;
  font-size: 0.93rem;
  font-weight: 500;
  gap: 0.78rem;
  min-height: 2.8rem;
  padding: 0 0.8rem;
}

.nav-item svg {
  color: #637087;
  height: 1.15rem;
  width: 1.15rem;
}

.nav-item:hover,
.nav-item:focus-visible {
  background: var(--coral-wash);
  outline: 0;
}

.nav-item.active {
  background: var(--yellow);
  color: var(--ink);
  font-weight: 650;
}

.nav-item.active svg {
  color: var(--navy);
}

.support-link {
  background: var(--green-wash);
  color: #216b54;
  margin-top: auto;
}

.workspace {
  min-width: 0;
}

.mobile-header {
  display: none;
}

.main-page {
  margin: 0 auto;
  max-width: 78rem;
  padding: 2.7rem 3rem 3.5rem;
}

.hero-copy {
  align-items: end;
  display: grid;
  gap: 0.75rem 2.5rem;
  grid-template-columns: minmax(0, 1.25fr) minmax(19rem, 0.75fr);
  margin-bottom: 1.7rem;
}

.eyebrow,
.section-kicker,
.prompt-region > p {
  color: var(--blue-deep);
  font-size: 0.72rem;
  font-weight: 720;
  letter-spacing: 0;
  margin: 0;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  grid-column: 1 / -1;
}

.hero-copy h1 {
  font-family: var(--serif);
  font-size: 3.65rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.97;
  margin: 0;
  max-width: 45rem;
}

.hero-description {
  color: var(--ink-soft);
  font-size: 0.98rem;
  font-weight: 410;
  line-height: 1.58;
  margin: 0 0 0.25rem;
}

.primary-workspace {
  align-items: stretch;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.ask-workspace,
.cycle-workspace {
  border-radius: 8px;
  min-width: 0;
  padding: 1.35rem;
}

.ask-workspace {
  background: var(--yellow-wash);
}

.cycle-workspace {
  background: var(--blue-wash);
}

.section-heading,
.mini-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.section-heading h2 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0.15rem 0 0;
}

.section-icon {
  align-items: center;
  border-radius: 50%;
  display: inline-flex;
  height: 2.8rem;
  justify-content: center;
  width: 2.8rem;
}

.section-icon.coral {
  background: var(--coral);
  color: #fff;
}

.composer {
  background: var(--surface);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(86, 67, 25, 0.08);
  margin-top: 1rem;
  overflow: hidden;
}

.composer textarea {
  background: transparent;
  border: 0;
  color: var(--ink);
  display: block;
  font-size: 1rem;
  line-height: 1.5;
  min-height: 6.25rem;
  outline: 0;
  padding: 1rem 1.05rem 0.25rem;
  resize: none;
  width: 100%;
}

.composer textarea::placeholder {
  color: #818586;
}

.composer-tools {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0.55rem 0.55rem;
}

.tool-buttons {
  align-items: center;
  display: flex;
  gap: 0.2rem;
}

.tool-buttons button,
.send-button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--ink-soft);
  display: inline-flex;
  height: 2.45rem;
  justify-content: center;
  width: 2.45rem;
}

.tool-buttons button:hover,
.tool-buttons button:focus-visible {
  background: var(--yellow-wash);
  outline: 0;
}

.plus-icon {
  border: 1.7px solid currentColor;
  border-radius: 50%;
  display: inline-flex;
  font-size: 1.2rem;
  height: 1.4rem;
  justify-content: center;
  line-height: 1.05rem;
  width: 1.4rem;
}

.send-button {
  background: var(--navy);
  color: #fff;
  width: 3rem;
}

.send-button:hover,
.send-button:focus-visible {
  background: var(--coral);
  outline: 0;
}

.prompt-region {
  margin-top: 1rem;
}

.prompt-region > p {
  color: #6d5a23;
}

.prompt-grid {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0.55rem;
}

.prompt-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.7);
  border: 0;
  border-radius: 6px;
  color: var(--ink-soft);
  display: flex;
  font-size: 0.78rem;
  font-weight: 620;
  gap: 0.42rem;
  min-height: 2.75rem;
  overflow: hidden;
  padding: 0.4rem 0.55rem;
  text-align: left;
}

.prompt-button span {
  min-width: 0;
}

.prompt-button svg {
  height: 1.05rem;
  width: 1.05rem;
}

.prompt-button.blue svg {
  color: var(--blue-deep);
}

.prompt-button.coral svg {
  color: var(--coral);
}

.prompt-button.green svg {
  color: var(--green);
}

.prompt-button.gold svg {
  color: #9b730a;
}

.prompt-button:hover,
.prompt-button:focus-visible {
  background: #fff;
  box-shadow: 0 5px 14px rgba(86, 67, 25, 0.08);
  outline: 0;
}

.assistant-response {
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 6px;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: auto minmax(0, 1fr);
  margin-top: 0.8rem;
  padding: 0.75rem;
}

.assistant-response[hidden] {
  display: none;
}

.response-mark {
  align-items: center;
  background: var(--coral);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-size: 0.58rem;
  font-weight: 780;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}

.assistant-response p {
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.45;
  margin: 0;
}

.cycle-heading .section-kicker {
  color: var(--blue-deep);
}

.open-cycle {
  align-items: center;
  background: var(--navy);
  border-radius: 6px;
  color: #fff;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 650;
  gap: 0.35rem;
  min-height: 2.45rem;
  padding: 0 0.75rem;
}

.open-cycle svg {
  height: 1rem;
  width: 1rem;
}

.cycle-summary {
  align-items: end;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  padding: 0.8rem 1rem;
}

.school-total {
  align-items: baseline;
  display: flex;
  gap: 0.55rem;
}

.school-total strong {
  color: var(--navy);
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 500;
  line-height: 0.9;
}

.school-total span,
.cycle-summary p {
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 560;
}

.cycle-summary p {
  margin: 0 0 0.2rem;
}

.next-tasks,
.stage-summary {
  margin-top: 1rem;
}

.mini-heading h3 {
  color: var(--ink-soft);
  font-size: 0.71rem;
  font-weight: 750;
  letter-spacing: 0;
  margin: 0;
  text-transform: uppercase;
}

.mini-heading > svg {
  color: var(--coral);
  height: 1.15rem;
  width: 1.15rem;
}

.mini-heading > span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.task-list {
  display: grid;
  gap: 0.4rem;
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0;
}

.task-list li {
  align-items: center;
  background: rgba(255, 255, 255, 0.68);
  border-radius: 6px;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 1.35rem minmax(0, 1fr) auto;
  min-height: 3.05rem;
  padding: 0.45rem 0.65rem;
}

.task-toggle {
  align-items: center;
  background: #fff;
  border: 1.5px solid #8a99aa;
  border-radius: 50%;
  color: transparent;
  display: inline-flex;
  height: 1.15rem;
  justify-content: center;
  padding: 0;
  width: 1.15rem;
}

.task-toggle svg {
  height: 0.75rem;
  stroke-width: 2.6;
  width: 0.75rem;
}

.task-list strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.2;
}

.task-list small {
  color: var(--muted);
  display: block;
  font-size: 0.72rem;
  line-height: 1.2;
  margin-top: 0.1rem;
}

.task-date {
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 650;
  white-space: nowrap;
}

.task-list li.done {
  opacity: 0.68;
}

.task-list li.done strong {
  text-decoration: line-through;
}

.task-list li.done .task-toggle {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.stage-bar {
  display: flex;
  gap: 0.22rem;
  height: 0.72rem;
  margin-top: 0.55rem;
  overflow: hidden;
}

.stage-bar span {
  border-radius: 4px;
  flex: var(--stage-size);
}

.stage-planning,
.stage-dot.planning {
  background: #95a0ad;
}

.stage-primary,
.stage-dot.primary {
  background: var(--blue);
}

.stage-secondary,
.stage-dot.secondary {
  background: var(--yellow);
}

.stage-interview,
.stage-dot.interview {
  background: var(--coral);
}

.stage-decision,
.stage-dot.decision {
  background: var(--green);
}

.stage-list {
  display: grid;
  gap: 0.35rem 0.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0.65rem 0 0;
}

.stage-list div {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.stage-list dt,
.stage-list dd {
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 560;
  margin: 0;
}

.stage-dot {
  border-radius: 50%;
  display: inline-block;
  height: 0.55rem;
  margin-right: 0.3rem;
  width: 0.55rem;
}

.helpful-now {
  background: var(--green-wash);
  border-radius: 8px;
  margin-top: 1rem;
  padding: 1rem 1.15rem;
}

.helpful-links {
  display: grid;
  gap: 0.35rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.helpful-links a {
  align-items: center;
  border-radius: 6px;
  display: flex;
  font-size: 0.82rem;
  font-weight: 620;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0.2rem 0.35rem;
}

.helpful-links a:hover,
.helpful-links a:focus-visible {
  background: rgba(255, 255, 255, 0.7);
  outline: 0;
}

.resource-icon {
  align-items: center;
  border-radius: 50%;
  display: inline-flex;
  height: 1.75rem;
  justify-content: center;
  width: 1.75rem;
}

.resource-icon svg {
  height: 0.95rem;
  width: 0.95rem;
}

.resource-icon.blue {
  background: var(--blue-wash);
  color: var(--blue-deep);
}

.resource-icon.coral {
  background: var(--coral-wash);
  color: var(--coral);
}

.resource-icon.gold {
  background: var(--yellow-wash);
  color: #896407;
}

.resource-icon.green {
  background: #fff;
  color: var(--green);
}

.mobile-tabbar {
  display: none;
}

@media (max-width: 1180px) {
  .main-page {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .hero-copy {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .hero-copy .eyebrow {
    grid-column: auto;
  }

  .hero-copy h1 {
    max-width: 48rem;
  }

  .hero-description {
    max-width: 44rem;
  }

  .primary-workspace {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 900px) {
  body {
    padding-bottom: 4.7rem;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .mobile-header {
    align-items: center;
    background: var(--canvas);
    display: flex;
    justify-content: space-between;
    min-height: 4.5rem;
    padding: 0.65rem 1rem 0;
  }

  .mobile-lockup {
    align-items: center;
    display: flex;
    gap: 0.35rem;
  }

  .mobile-lockup img {
    display: block;
    height: 2.7rem;
    object-fit: contain;
    width: 2.7rem;
  }

  .mobile-lockup .mobile-cycle-logo {
    height: 2.7rem;
    width: 3.85rem;
  }

  .mobile-lockup span {
    color: var(--blue-deep);
    font-size: 0.85rem;
    font-weight: 700;
  }

  .profession-control {
    position: relative;
  }

  .profession-control select {
    appearance: none;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 650;
    min-height: 2.5rem;
    padding: 0 1.7rem 0 0.65rem;
  }

  .profession-control::after {
    color: var(--muted);
    content: "⌄";
    font-size: 0.9rem;
    pointer-events: none;
    position: absolute;
    right: 0.6rem;
    top: 0.65rem;
  }

  .main-page {
    padding: 1.05rem 1rem 1.5rem;
  }

  .hero-copy {
    gap: 0.45rem;
    margin-bottom: 1rem;
  }

  .hero-copy h1 {
    font-size: 2.8rem;
    line-height: 0.98;
  }

  .hero-description {
    font-size: 0.9rem;
    line-height: 1.48;
    max-width: 39rem;
  }

  .primary-workspace {
    grid-template-columns: 1fr;
  }

  .mobile-tabbar {
    align-items: center;
    background: #fff;
    border-top: 1px solid var(--line);
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    left: 0;
    min-height: 4.4rem;
    position: fixed;
    right: 0;
    z-index: 20;
  }

  .mobile-tabbar a {
    align-items: center;
    color: var(--ink-soft);
    display: flex;
    flex-direction: column;
    font-size: 0.67rem;
    font-weight: 620;
    gap: 0.18rem;
    justify-content: center;
  }

  .mobile-tabbar a.active {
    color: var(--navy);
  }

  .mobile-tabbar svg {
    height: 1.25rem;
    width: 1.25rem;
  }

  .more-dots {
    font-size: 1.15rem;
    line-height: 1.15rem;
  }
}

@media (max-width: 560px) {
  .main-page {
    padding-top: 0.75rem;
  }

  .hero-copy .eyebrow {
    display: none;
  }

  .hero-copy h1 {
    font-size: 2.45rem;
  }

  .hero-description {
    font-size: 0.82rem;
    line-height: 1.42;
  }

  .ask-workspace,
  .cycle-workspace {
    padding: 1rem;
  }

  .section-heading h2 {
    font-size: 1.65rem;
  }

  .section-icon {
    height: 2.35rem;
    width: 2.35rem;
  }

  .composer {
    margin-top: 0.7rem;
  }

  .composer textarea {
    font-size: 0.92rem;
    min-height: 5.35rem;
    padding: 0.8rem 0.85rem 0.15rem;
  }

  .prompt-region {
    margin-top: 0.7rem;
  }

  .prompt-grid {
    gap: 0.3rem;
  }

  .prompt-button {
    flex-direction: column;
    font-size: 0.67rem;
    gap: 0.18rem;
    justify-content: center;
    min-height: 2.85rem;
    padding: 0.25rem;
    text-align: center;
  }

  .cycle-summary {
    align-items: center;
    margin-top: 0.7rem;
    padding: 0.65rem 0.75rem;
  }

  .school-total strong {
    font-size: 2.65rem;
  }

  .school-total span,
  .cycle-summary p {
    font-size: 0.7rem;
  }

  .task-list li {
    gap: 0.48rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .task-list strong {
    font-size: 0.77rem;
  }

  .stage-list {
    gap: 0.3rem 0.55rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .helpful-now {
    padding: 0.9rem 1rem;
  }

  .helpful-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
