/* Degree Path Planner - theme
 *
 * Loaded after the inline <style> in index.html, so everything here wins without
 * touching the page's markup or JavaScript. The look borrows from an evening study
 * hall: a deep navy background, near-white text, a warm gold accent, a soft blue
 * secondary accent and an editorial serif for headings. GCSU green stays as a brand
 * touch on the logo bar. Status colours (done / in progress / missing) are re-tuned
 * for the dark background but keep the same meaning.
 *
 * Sections:
 *   1. Tokens
 *   2. Page frame: top bar, hero, footer
 *   3. Step cards and form controls
 *   4. Transcript review table
 *   5. Results: progress, stats, checklist, chips
 *   6. Transcript Assistant
 *   7. Small screens, print, reduced motion
 */

/* ---------------------------------------------------------------------------
 * 1. Tokens - these replace the inline ones, so the page's own rules recolour too
 * ------------------------------------------------------------------------ */
:root {
  /* GCSU marks from gcsu.edu. Green is a brand touch only (logo bar, thin rules);
     the page itself is a cool navy so it reads calmer and less green. */
  --gcsu-green: #005028;
  --gcsu-gold: #bea96f;
  --gcsu-sage: #72a88d;

  --ink-0: #0b1220;            /* page: deep navy */
  --ink-1: #111a2e;            /* cards */
  --ink-2: #16223a;            /* raised fields, inputs, panels */
  --cream: #eef1f6;            /* main text: near-white, slightly cool */
  --gold: var(--gcsu-gold);    /* primary accent: buttons, highlights */
  --gold-hi: #d4c290;          /* gold on hover */
  --sky: #7fa6e6;              /* soft blue secondary accent */
  --sky-bg: rgba(127, 166, 230, .12);
  --ember: var(--sky);
  --faint: #7586a3;
  --line-strong: rgba(200, 214, 240, .22);

  --bg: var(--ink-0);
  --card: var(--ink-1);
  --ink: var(--cream);
  --muted: #a6b2c8;
  --line: rgba(200, 214, 240, .11);
  --accent: var(--gold);

  /* one shape system for every card, panel and control */
  --r-card: 14px;
  --r-panel: 10px;

  /* status: green done, blue in progress, amber partly done, red not started */
  --met: #6fd3a0;      --met-bg: rgba(111, 211, 160, .12);
  --pend: #8cb8ff;     --pend-bg: rgba(140, 184, 255, .13);
  --part: #f2b35e;     --part-bg: rgba(242, 179, 94, .13);
  --miss: #ff7b7b;     --miss-bg: rgba(255, 123, 123, .12);
  --man-bg: rgba(200, 214, 240, .07);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: dark;
}

html { scroll-behavior: smooth; }

body {
  background: var(--ink-0);
  color: var(--cream);
  font: 16.5px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

/* Soft light in the corners and a few faint points, drawn with gradients so
   there is nothing extra to load. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 14% 22%, rgba(255,255,255,.45), transparent 60%),
    radial-gradient(1px 1px at 78% 12%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(1.5px 1.5px at 42% 68%, rgba(255,240,220,.35), transparent 60%),
    radial-gradient(1px 1px at 88% 52%, rgba(200,220,255,.35), transparent 60%),
    radial-gradient(900px 620px at 90% -12%, rgba(56, 104, 196, .30), transparent 70%),
    radial-gradient(760px 520px at -12% 108%, rgba(190, 169, 111,.07), transparent 70%);
  background-size: 420px 420px, 380px 380px, 520px 520px, 460px 460px, 100% 100%, 100% 100%;
}

::selection { background: var(--gold); color: var(--ink-0); }
a { color: var(--gold); text-underline-offset: 3px; }
em { font-style: italic; color: var(--gold); }

main { max-width: 1040px; padding: 0 20px 96px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; color: var(--cream); }

.eyebrow, .chapter-tag {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------------------------------------------------------------------------
 * 2. Page frame
 * ------------------------------------------------------------------------ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  background: rgba(0, 80, 40, .94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--gcsu-gold);
}
.gcsu-logo { display: block; height: 44px; width: auto; }
.brand-divider { width: 1px; height: 32px; background: rgba(255, 255, 255, .35); }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.2rem;
}
.mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(190, 169, 111, .3);
  font-style: italic;
  font-size: .95rem;
}
.mark::after {                /* a small dot travelling the ring: progress, always moving */
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--ember);
  transform-origin: 3px 22px;
  animation: orbit 12s linear infinite;
}
@keyframes orbit { to { transform: rotate(360deg); } }
.topbar-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .78);
}
.topbar-note::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--met);
  box-shadow: 0 0 10px var(--met);
}

.hero { padding: clamp(56px, 10vw, 112px) 0 40px; }
.chapter-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
}
.chapter-tag::before { content: ""; width: 36px; height: 1px; background: var(--gold); }
.hero h1 {
  font-size: clamp(2.8rem, 7.6vw, 5.6rem);
  font-weight: 300;
  line-height: .98;
  letter-spacing: -.03em;
  margin: 0 0 24px;
  max-width: 13ch;
}
.hero h1 em { color: var(--gold); font-weight: 300; }
.lede {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.2rem, 2.1vw, 1.5rem);
  line-height: 1.45;
  color: rgba(200, 214, 240, .9);
  max-width: 36rem;
  margin: 0;
}
.readout {
  display: flex;
  flex-wrap: wrap;
  margin: 40px 0 0;
  border-top: 1px solid var(--line-strong);
}
.readout div { flex: 1 1 200px; padding: 16px 24px 0 0; }
.readout dt {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
}
.readout dd { font-family: var(--serif); font-size: 1.3rem; margin: 4px 0 0; color: var(--cream); }

/* The advisor disclaimer, styled as a note in the margin rather than a warning box. */
.disclaimer {
  display: block;
  background: rgba(190, 169, 111, .06);
  border: 1px solid rgba(190, 169, 111, .24);
  border-left: 2px solid var(--gold);
  border-radius: var(--r-panel);
  padding: 16px 20px;
  margin: 0 0 40px;
  font-size: .95rem;
  color: var(--muted);
}
.disclaimer strong { color: var(--cream); font-weight: 600; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 24px 40px;
  background: linear-gradient(180deg, transparent, #070c17);
}
.footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .06em;
  color: var(--faint);
}
.footer-sign { font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--cream); letter-spacing: 0; width: 100%; margin-bottom: 8px; }

/* ---------------------------------------------------------------------------
 * 3. Step cards and form controls
 * ------------------------------------------------------------------------ */
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(22, 34, 58, .82), rgba(17, 26, 46, .78));
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(20px, 3.4vw, 34px);
  margin-bottom: 22px;
  box-shadow: 0 24px 60px -32px rgba(0, 0, 0, .8);
}
.card h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  line-height: 1.15;
  margin: 0 0 18px;
}
.step {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: rgba(190, 169, 111, .08);
  color: var(--gold);
  font: 500 .9rem/1 var(--mono);
}
.step::before { content: "0"; }

textarea, input[type="text"], input[type="number"], select {
  color: var(--cream);
  background: var(--ink-2);
  border: 1px solid var(--line-strong);
  transition: border-color .2s, box-shadow .2s;
}
select {
  appearance: none;
  -webkit-appearance: none;
  min-height: 44px;
  padding: 10px 40px 10px 14px;
  border-radius: var(--r-panel);
  font: 500 .95rem/1.3 var(--sans);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23bea96f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
select option { background: var(--ink-1); color: var(--cream); }
#programRow { margin: 0 0 16px; }
#programRow label {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
}
#program { flex: 1 1 280px; min-width: 0; max-width: 560px; text-overflow: ellipsis; }
textarea {
  min-height: 240px;
  padding: 16px;
  border-radius: var(--r-panel);
  font: 14px/1.55 var(--mono);
}
textarea::placeholder { color: var(--faint); }
textarea:focus, input:focus, select:focus, button:focus-visible {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(190, 169, 111, .18);
}
.hint { color: var(--muted); font-size: .9rem; line-height: 1.6; margin-top: 12px; }

button, .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 .95rem/1 var(--sans);
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--ink-0);
  border-radius: 999px;
  padding: 12px 22px;
  transition: transform .2s, background .2s, border-color .2s, color .2s;
}
button:hover:not(:disabled) { background: var(--gold-hi); border-color: var(--gold-hi); transform: translateY(-1px); }
button.ghost { background: transparent; color: var(--cream); border-color: var(--line-strong); }
button.ghost:hover:not(:disabled) { background: transparent; color: var(--gold); border-color: var(--gold); }
button.small { padding: 7px 14px; font-size: .82rem; font-weight: 500; }
button:disabled { opacity: .45; transform: none; }

/* The main call to action gets a little more weight than the rest. */
#run { padding: 15px 28px; font-size: 1rem; box-shadow: 0 10px 30px -10px rgba(190, 169, 111, .55); }
#run::after { content: "\2192"; font-size: 1.1rem; transition: transform .2s; }
#run:hover:not(:disabled)::after { transform: translateX(4px); }

.row { gap: 12px; margin-top: 16px; }

input[type="file"] {
  flex: 1 1 260px;
  min-width: 0;
  padding: 18px;
  border: 1.5px dashed rgba(190, 169, 111, .5);
  border-radius: var(--r-panel);
  background: rgba(200, 214, 240, .03);
  color: var(--muted);
  font: .9rem var(--sans);
}
input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--ink-2);
  color: var(--cream);
  font: 500 .85rem var(--sans);
  cursor: pointer;
}
input[type="file"]::file-selector-button:hover { border-color: var(--gold); color: var(--gold); }

.error { color: var(--miss); font-size: .92rem; }
.error:empty { display: none; }

/* ---------------------------------------------------------------------------
 * 4. Transcript review table
 * ------------------------------------------------------------------------ */
.tablewrap {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  background: rgba(11, 18, 32, .5);
}
table { font-size: .92rem; }
th, td { border-bottom: 1px solid var(--line); padding: 8px 8px; }
th {
  font: 400 .68rem var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
  background: rgba(200, 214, 240, .03);
}
tbody tr:last-child td { border-bottom: 0; }
th:first-child { width: 128px !important; }
td input, td select, td input[type="number"] {
  background-color: transparent;
  border-color: transparent;
  border-radius: 6px;
  padding: 6px 8px;
  min-height: 0;
  font: inherit;
}
td select { padding-right: 26px; background-position: right 8px center; }
td input:hover, td select:hover { border-color: var(--line-strong); }
td input[data-k="code"] { font-family: var(--mono); font-size: .86rem; color: var(--gold); }
td select option { background: var(--ink-1); color: var(--cream); }
tr.flagged td { background: rgba(190, 169, 111, .07); }
tr.flagged td:first-child { box-shadow: inset 2px 0 0 var(--gold); }
.flag { color: var(--gold); font-size: .78rem; padding: 2px 8px 0; }

/* ---------------------------------------------------------------------------
 * 5. Results
 * ------------------------------------------------------------------------ */
#results { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

.bar {
  height: 14px;
  margin: 18px 0 8px;
  border-radius: 999px;
  background: rgba(200, 214, 240, .08);
  border: 1px solid var(--line);
}
.bar i { border-radius: 999px; transition: width 1s cubic-bezier(.2, .7, .2, 1); }
.bar i:first-child { background: repeating-linear-gradient(-45deg, rgba(140, 184, 255, .55) 0 6px, rgba(140, 184, 255, .28) 6px 12px) !important; }
.bar i:last-child { background: linear-gradient(90deg, #3fae7a, var(--met)) !important; box-shadow: 0 0 18px rgba(111, 211, 160, .35); }
.legend { font-family: var(--mono); font-size: .78rem; letter-spacing: .04em; color: var(--muted); }

.summary { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 24px; margin-top: 20px !important; }
.stat {
  background: none;
  border-radius: 0;
  border-top: 1px solid var(--line-strong);
  padding: 18px 0 6px;
}
.stat b {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 4.4vw, 3rem);
  line-height: 1;
  color: var(--gold);
}
.stat:first-child b { color: var(--met); }
.stat:nth-child(4) b { color: var(--pend); }
.stat span { display: block; margin-top: 8px; font-size: .9rem; color: var(--muted); }

#needed p { margin: 18px 0 6px; }
#needed p:first-child { margin-top: 0; }
#needed strong { font-family: var(--mono); font-size: .74rem; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
#needed li strong { font-family: var(--sans); font-size: inherit; letter-spacing: 0; text-transform: none; color: var(--cream); font-weight: 600; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li {
  position: relative;
  padding: 12px 0 12px 28px;
  border-bottom: 1px solid var(--line);
}
ul.plain li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 21px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--sky);
}
ul.plain li small { display: block; color: var(--muted); margin-top: 4px; }

details {
  background: rgba(11, 18, 32, .45);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  margin-bottom: 12px;
  overflow: hidden;
}
details[open] { border-color: var(--line-strong); }
details > summary {
  list-style: none;
  align-items: center;
  padding: 16px 20px;
  font: 400 1.2rem var(--serif);
  transition: background .2s;
}
details > summary::-webkit-details-marker { display: none; }
details > summary::before {
  content: "+";
  font: 400 1.1rem/1 var(--mono);
  color: var(--gold);
  margin-right: 4px;
  transition: transform .25s;
}
details[open] > summary::before { transform: rotate(45deg); }
details > summary > span:first-child { flex: 1; }
details > summary:hover { background: rgba(200, 214, 240, .03); }

.req { grid-template-columns: 112px 1fr; gap: 16px; padding: 14px 20px; }
.req small { color: var(--muted); margin-top: 2px; }
.badge {
  font: 500 .66rem/1.4 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid currentColor;
  justify-self: start;
  white-space: nowrap;
}
.s-met { border-color: rgba(111, 211, 160, .4); }
.s-pending { border-color: rgba(140, 184, 255, .4); }
.s-partial { border-color: rgba(242, 179, 94, .4); }
.s-missing { border-color: rgba(255, 123, 123, .4); }
.s-manual { border-color: var(--line-strong); }

.chip {
  font: 500 .8rem/1.6 var(--mono);
  padding: 2px 9px;
  margin: 6px 6px 0 0;
  border-radius: 999px;
  border-color: var(--line-strong);
  background: rgba(200, 214, 240, .04);
  color: var(--cream);
}
.chip.ok { border-color: rgba(111, 211, 160, .45); background: var(--met-bg); color: var(--met); }
.chip.ip { border-color: rgba(140, 184, 255, .45); background: var(--pend-bg); color: var(--pend); }

/* ---------------------------------------------------------------------------
 * 6. Transcript Assistant
 * ------------------------------------------------------------------------ */
/* Floating shortcut: after an audit it jumps down to the "Ask about your degree" section. */
#chatOpen {
  right: 24px;
  bottom: 24px;
  padding: 14px 22px;
  box-shadow: 0 14px 40px -10px rgba(190, 169, 111, .6);
  animation: rise .5s cubic-bezier(.2, .7, .2, 1) both;
}

/* The assistant lives inline at the bottom of the page, as its own card. */
#chat { scroll-margin-top: 96px; }
.ask-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 20px;
}
.ask-head h2 { margin-bottom: 8px; }
.ask-tools { display: flex; gap: 8px; }
.ask-lede { margin: 0 0 18px; color: var(--muted); max-width: 44rem; }
.step.ask-glyph { border-color: var(--sky); background: var(--sky-bg); color: var(--sky); }

.chat-notice {
  margin: 0 0 14px;
  padding: 12px 16px;
  border-radius: var(--r-panel);
  font-size: .9rem;
  line-height: 1.55;
}
.chat-notice strong { color: var(--cream); font-weight: 600; }
.chat-notice.warn { background: rgba(190, 169, 111, .08); border: 1px solid rgba(190, 169, 111, .3); border-left: 2px solid var(--gold); color: var(--muted); }
.chat-notice.info { background: var(--sky-bg); border: 1px solid rgba(127, 166, 230, .3); border-left: 2px solid var(--sky); color: var(--muted); }
.chat-notice.down { background: var(--part-bg); border: 1px solid rgba(242, 179, 94, .3); border-left: 2px solid var(--part); color: var(--muted); }
.chat-notice code { font: 500 .85em var(--mono); color: var(--gold); }
.chat-notice button { margin-top: 10px; }

.chat-box {
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  background: rgba(11, 18, 32, .5);
  overflow: hidden;
}
#chatLog { min-height: 200px; max-height: 460px; padding: 18px; gap: 12px; }
.chat-empty {
  margin: auto;
  max-width: 34rem;
  padding: 18px 8px;
  text-align: center;
  color: var(--muted);
}
.chat-empty b { display: block; margin-bottom: 6px; font: 400 1.25rem/1.3 var(--serif); color: var(--cream); }
.chat-empty button { margin-top: 14px; }
.bubble { max-width: min(88%, 44rem); padding: 10px 14px; border-radius: 16px; font-size: .94rem; line-height: 1.55; }
.bubble.user { background: var(--gold); color: var(--ink-0); }
.bubble.assistant { background: var(--ink-2); border-color: var(--line); }
.bubble.assistant code { background: var(--ink-0); border-color: var(--line); color: var(--gold); }
.bubble.error { background: var(--miss-bg); border: 1px solid rgba(255, 123, 123, .3); }

.ask-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 18px 0;
  border-top: 1px solid var(--line);
}
.ask-chips button {
  background: var(--sky-bg);
  color: var(--cream);
  border: 1px solid rgba(127, 166, 230, .35);
  font: 500 .86rem/1.3 var(--sans);
  padding: 8px 14px;
  text-align: left;
}
.ask-chips button:hover:not(:disabled) { background: rgba(127, 166, 230, .2); color: var(--cream); border-color: var(--sky); }
.ask-chips button:disabled { opacity: .4; cursor: not-allowed; }
.typing { font-family: var(--mono); font-size: .76rem; padding: 0 18px 10px; }
.typing i { background: var(--sky); }
#chatForm { display: flex; align-items: flex-end; padding: 14px 18px 18px; gap: 10px; border-top: 0; }
#chatInput {
  flex: 1;
  min-width: 0;
  resize: none;
  min-height: 46px;
  max-height: 140px;
  border-radius: var(--r-panel);
  padding: 12px 14px;
  font: .95rem/1.4 var(--sans);
}
#chatInput:disabled { opacity: .55; cursor: not-allowed; }
#chatSend { min-height: 46px; }

/* ---------------------------------------------------------------------------
 * 7. Small screens, print, reduced motion
 * ------------------------------------------------------------------------ */
@media (max-width: 640px) {
  main { padding: 0 16px 80px; }
  .topbar { padding: 12px 16px; }
  .topbar-note { display: none; }
  .req { grid-template-columns: 1fr; gap: 8px; }
  .card h2 { gap: 10px; }
  .step { width: 34px; height: 34px; }
  #chatOpen { right: 16px; bottom: 16px; }
  .tablewrap table { min-width: 660px; }   /* scroll the course table sideways instead of crushing it */
  #chatLog { max-height: 380px; padding: 14px; }
  .ask-chips { padding: 12px 14px 0; }
  #chatForm { padding: 12px 14px 14px; }
}

@media print {
  #chat, #chatOpen { display: none !important; }
  :root { --cream: #1d2433; --muted: #5b6475; --line: #dde1e8; --line-strong: #c9ced8; --gold: #8a6100; }
  body { background: #fff; color: #1d2433; }
  body::before, .topbar, .site-footer, .hero .readout { display: none !important; }
  .card, details { background: #fff; box-shadow: none; border-color: #dde1e8; }
  .hero { padding: 0 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Transcript drop zone */
#dropZone {
  display: block; text-align: center; cursor: pointer;
  padding: 40px 20px; margin-bottom: 14px;
  border: 1.5px dashed rgba(190, 169, 111, .45); border-radius: var(--r-panel);
  background: var(--ink-2);
  transition: background .15s, border-color .15s;
}
#dropZone strong { display: block; font-size: 19px; color: var(--cream); margin-bottom: 4px; }
#dropZone span { color: var(--muted); }
#dropZone:hover, body.dragging #dropZone { border-color: var(--gold); background: rgba(190, 169, 111, .08); }
#dropZone.busy { opacity: .7; cursor: wait; }

/* ---------------------------------------------------------------------------
 * 8. "Get your DegreeWorks audit in" (export bookmarklet section, before step 2)
 * ------------------------------------------------------------------------ */
#step2 { scroll-margin-top: 96px; }
.dw-eyebrow { display: block; margin: 0 0 12px; }
.step.glyph::before { content: none; }
.step.glyph { font: 400 1.05rem/1 var(--sans); }
.dw-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 28px 44px;
  align-items: start;
}
.dw-lede { margin: 0 0 10px; color: var(--cream); font-size: 1.05rem; }
.dw-safe { margin: 0 0 20px; color: var(--met); font-size: .92rem; }
.dw-safe::before { content: "\25CF"; font-size: .6rem; margin-right: 8px; vertical-align: 2px; }

.dw-tray {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 22px 18px 18px;
  text-align: center;
  border: 1.5px dashed rgba(190, 169, 111, .45);
  border-radius: var(--r-panel);
  background: var(--ink-2);
}
.dw-drag-hint {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}
.dw-bookmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink-0);
  font: 600 1.1rem/1 var(--sans);
  text-decoration: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: 0 12px 32px -12px rgba(190, 169, 111, .6), 0 0 0 6px rgba(190, 169, 111, .1);
  transition: transform .2s, background .2s;
}
.dw-bookmark:hover { background: var(--gold-hi); transform: translateY(-2px); }
.dw-bookmark:active { cursor: grabbing; }
.dw-bookmark:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(190, 169, 111, .45); }
.dw-bookmark.loading { opacity: .5; pointer-events: none; }
.dw-bookmark.broken { opacity: .35; cursor: not-allowed; transform: none; }
.dw-bookmark.nudge { animation: dw-nudge .45s; }
@keyframes dw-nudge {
  0%, 100% { transform: translateY(0); }
  30% { transform: translateY(-8px); }
  60% { transform: translateY(-3px); }
}
.dw-status { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.5; max-width: 30ch; }
.dw-status.nudged { color: var(--gold); }
.dw-status.bad { color: var(--miss); }

.dw-steps { list-style: none; counter-reset: dw; margin: 0; padding: 0; }
.dw-steps li {
  counter-increment: dw;
  position: relative;
  padding: 0 0 14px 44px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: .95rem;
  border-bottom: 1px solid var(--line);
}
.dw-steps li:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.dw-steps li::before {
  content: counter(dw, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font: 500 .72rem/1 var(--mono);
  color: var(--gold);
}
.dw-steps b { color: var(--cream); font-weight: 600; }
#dwExport kbd, #dwExport code {
  font: 500 .8em var(--mono);
  padding: 1px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--ink-2);
  color: var(--cream);
  white-space: nowrap;
}
#dwExport code { color: var(--gold); white-space: normal; overflow-wrap: anywhere; }

.dw-note {
  margin: 26px 0 14px;
  padding: 14px 18px;
  background: rgba(190, 169, 111, .06);
  border: 1px solid rgba(190, 169, 111, .24);
  border-left: 2px solid var(--gold);
  border-radius: var(--r-panel);
  font-size: .92rem;
  color: var(--muted);
}
.dw-note strong { color: var(--cream); font-weight: 600; }
.dw-help { margin-bottom: 0; }
.dw-help > summary { display: flex; gap: 10px; padding: 12px 18px; font-size: 1.02rem; cursor: pointer; }
.dw-help ul { margin: 0; padding: 0 20px 14px 40px; color: var(--muted); font-size: .92rem; }
.dw-help li { margin-bottom: 6px; }
.dw-help b { color: var(--cream); font-weight: 600; }

#dropZone.flash { border-color: var(--gold); background: rgba(190, 169, 111, .08); }

@media (max-width: 760px) {
  .dw-grid { grid-template-columns: 1fr; }
}
@media print { #dwExport { display: none !important; } }

/* "No audit handy?" sample PDF control, under the step 2 drop zone */
.sample-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 4px;
  padding: 12px 16px;
  border: 1px solid rgba(127, 166, 230, .28);
  border-left: 2px solid var(--sky);
  border-radius: var(--r-panel);
  background: var(--sky-bg);
}
.sample-label { flex: 1 1 200px; color: var(--muted); font-size: .92rem; }
.sample-dl { font-size: .88rem; font-weight: 500; }
