@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@600;700;800&family=Space+Mono:wght@700&display=swap');

:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --surface-soft: #f0f3fa;
  --ink: #182033;
  --muted: #687083;
  --line: #d8d6d0;
  --line-strong: #bcc3d1;
  --blue: #315fdd;
  --blue-dark: #2449ad;
  --blue-soft: #e8edfb;
  --green: #27805a;
  --red: #b84141;
  --shadow: 0 12px 34px rgba(24, 32, 51, .08);
}

* { box-sizing: border-box; }
html { color-scheme: light; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.6 'Inter', sans-serif;
}
a { color: var(--blue); }
button, input, select { font: inherit; }
.shape { display: none; }
.shell { width: min(1080px, calc(100% - 40px)); margin: auto; padding: 44px 0 88px; }
.narrow { width: min(880px, calc(100% - 40px)); }
.shell > *, .masthead, .card, .card-body, .grid, .library-head, .library-tools,
.report-card, .report-body { min-width: 0; max-width: 100%; }
h1, h2, p, .report-meta, .report-takeaway { overflow-wrap: anywhere; }
input, select { min-width: 0; }
input[type=file] { max-width: 100%; }

.masthead {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
  gap: 42px;
  align-items: end;
  margin-bottom: 42px;
}
.masthead .eyebrow { grid-column: 1 / -1; }
.eyebrow {
  display: inline-flex;
  width: max-content;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid #c9d3ee;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font: 700 10px 'Space Mono', monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.masthead h1, .job-head h1 {
  margin: 0;
  font: 800 clamp(48px, 8vw, 82px)/1.02 'Manrope', sans-serif;
  letter-spacing: -.05em;
}
.masthead h1 span { color: var(--blue); }
.masthead p, .job-head p {
  margin: 0;
  padding-left: 20px;
  border-left: 3px solid var(--blue);
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}
.top-nav { grid-column: 2; grid-row: 2; align-self: start; justify-self: end; }
.top-nav a, .section-title > a, .back {
  color: var(--blue-dark);
  font-weight: 700;
  text-decoration: none;
}
.top-nav a:hover, .section-title > a:hover, .back:hover { text-decoration: underline; }

.creator { display: flex; flex-direction: column; gap: 24px; }
.card {
  display: grid;
  grid-template-columns: 70px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.number {
  display: grid;
  place-items: start center;
  padding-top: 31px;
  border-right: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--blue);
  font: 700 13px 'Space Mono', monospace;
}
.card-body { padding: 30px 32px 34px; }
.card h2, .recent h2 {
  margin: 0 0 22px;
  font: 800 26px/1.2 'Manrope', sans-serif;
  letter-spacing: -.025em;
}
.grid { display: grid; gap: 18px; }
.two { grid-template-columns: 1fr 1fr; }
.three { grid-template-columns: repeat(3, 1fr); }
label { display: flex; flex-direction: column; gap: 7px; color: #394257; font-size: 13px; font-weight: 700; }
input[type=text], input[type=password], select, .library-tools input[type=search] {
  width: 100%;
  min-height: 44px;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  outline: 0;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}
input:focus, select:focus, .library-tools input[type=search]:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(49, 95, 221, .14);
}
.or { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--muted); }
.or::before, .or::after { content: ''; height: 1px; flex: 1; background: var(--line); }
.or span { font: 700 10px 'Space Mono', monospace; }
.file-drop {
  padding: 18px;
  border: 1px dashed #9da9c4;
  border-radius: 12px;
  background: #fafbfe;
  cursor: pointer;
}
.file-drop.transcript { margin-top: 14px; }
.file-drop input { margin-top: 5px; }
.file-drop small { color: var(--muted); font-weight: 500; }
.file-drop[data-file]::after { content: 'Loaded: ' attr(data-file); color: var(--green); font: 700 10px 'Space Mono'; }
.auto-transcript {
  display: flex;
  gap: 13px;
  align-items: center;
  margin-top: 15px;
  padding: 13px 15px;
  border: 1px solid #cdd7ee;
  border-radius: 10px;
  background: #f3f6fc;
}
.auto-transcript b { white-space: nowrap; color: var(--blue-dark); font: 700 10px 'Space Mono'; }
.auto-transcript span { color: var(--muted); font-size: 12px; font-weight: 500; }
details { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
summary { color: #394257; font-weight: 700; cursor: pointer; }
summary span { color: var(--muted); font-weight: 400; }
.keys { margin-top: 16px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.dot.yes { background: var(--green); }
.check { flex-direction: row; align-items: center; padding-top: 27px; font-weight: 600; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); }
.study-check {
  grid-column: 1 / -1;
  padding: 14px 15px !important;
  border: 1px solid #cdd7ee;
  border-radius: 10px;
  background: #f3f6fc;
}
.study-check span { display: flex; flex-direction: column; gap: 2px; }
.study-check b { font-size: 13px; }
.study-check small { color: var(--muted); font-weight: 500; }

.palettes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.palette { cursor: pointer; }
.palette input { position: absolute; opacity: 0; }
.preview {
  position: relative;
  display: flex;
  height: 82px;
  align-items: end;
  justify-content: center;
  gap: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--c1);
  transition: .15s ease;
}
.preview i { width: 22px; height: 30px; border-radius: 3px 3px 0 0; background: var(--c2); }
.preview i:nth-child(2) { height: 50px; background: var(--c3); }
.preview i:nth-child(3) { height: 39px; background: var(--c2); opacity: .65; }
.preview b { position: absolute; top: 11px; left: 13px; color: var(--fg); font: 800 13px 'Manrope'; }
.palette strong { margin-top: 7px; text-align: center; color: var(--muted); font-size: 10px; text-transform: uppercase; }
.palette input:checked + .preview { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(49, 95, 221, .14); }
.toon-pop { --c1:#fff4d8; --c2:#ff6ec7; --c3:#22d3ee; --fg:#17132f; }
.slime-time { --c1:#f2ffc9; --c2:#7c3aed; --c3:#00a98f; --fg:#18220d; }
.arcade-sunset { --c1:#22104d; --c2:#ff4fa3; --c3:#ffdf3e; --fg:#fff; }
.comic-book { --c1:#e7f4ff; --c2:#ed1c24; --c3:#2185d0; --fg:#111; }
.paper-white { --c1:#f7f6f2; --c2:#315fdd; --c3:#dfe6f7; --fg:#182033; }
.soft-sky { --c1:#edf6ff; --c2:#2775b9; --c3:#cde8fb; --fg:#14283b; }
.sage-studio { --c1:#f0f4ee; --c2:#4f765f; --c3:#dce9df; --fg:#1e3025; }
.midnight-ink { --c1:#0d1726; --c2:#7bb4ff; --c3:#304157; --fg:#fff; }

.launch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  border: 1px solid var(--blue);
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  transition: .15s ease;
}
.launch:hover { border-color: var(--blue-dark); background: var(--blue-dark); }
.launch b { font-size: 22px; }
.mini { display: inline-flex; width: auto; padding: 10px 14px; font-size: 12px; }
.secondary { color: var(--blue-dark); font-size: 12px; font-weight: 700; text-decoration: none; }
.secondary:hover { text-decoration: underline; }

.recent { margin-top: 58px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.section-title h2 { margin-bottom: 0; }
.job-list { display: grid; gap: 10px; margin-top: 18px; }
.job-list a {
  display: grid;
  grid-template-columns: 1fr auto 180px;
  gap: 15px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.job-list a:hover { border-color: #aeb9d3; box-shadow: 0 5px 18px rgba(24,32,51,.06); }
.job-list progress { width: 100%; accent-color: var(--blue); }

.page-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.page-links span { color: var(--muted); font: 700 10px 'Space Mono'; text-transform: uppercase; }
.job-head { margin: 42px 0 34px; }
.job-head h1 { margin-top: 20px; font-size: clamp(38px, 6vw, 62px); }
.job-head p { margin-top: 20px; font-size: 15px; }
.stage-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 0; list-style: none; }
.stage-list li {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--muted);
  font: 700 10px 'Space Mono';
  text-transform: uppercase;
}
.stage-list li i { display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; font-style: normal; }
.stage-list li.done { border-color: #b9d9ca; background: #edf7f2; color: #216a4b; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 30px 0; }
.console { overflow: hidden; border: 1px solid #29344a; border-radius: 12px; background: #111827; color: #d6deef; box-shadow: var(--shadow); }
.console > div { display: flex; gap: 6px; align-items: center; padding: 10px 13px; border-bottom: 1px solid #303c54; background: #1c2639; }
.console i { width: 9px; height: 9px; border-radius: 50%; background: #65718a; }
.console b { margin-left: 8px; color: #aeb9ce; font: 700 9px 'Space Mono'; }
.console pre { max-height: 460px; margin: 0; overflow: auto; padding: 20px; white-space: pre-wrap; font: 12px/1.65 'Space Mono'; }

/* Public report library */
.library-shell { width: min(1180px, calc(100% - 40px)); }
.library-head { display: grid; grid-template-columns: 1.3fr .7fr; gap: 36px; align-items: end; margin: 48px 0 40px; }
.library-head .eyebrow { grid-column: 1 / -1; }
.library-head h1 { margin: 0; font: 800 clamp(44px, 6.5vw, 74px)/1.05 'Manrope'; letter-spacing: -.055em; }
.library-head h1 span { color: var(--blue); }
.library-head p { margin: 0; padding-left: 20px; border-left: 3px solid var(--blue); color: var(--muted); font-size: 16px; }
.library-tools {
  display: grid;
  grid-template-columns: 1fr 220px auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.library-tools output { padding: 12px 0; color: var(--muted); font: 700 10px 'Space Mono'; }
.report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.report-card {
  display: grid;
  grid-template-columns: 118px 1fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(24,32,51,.055);
}
.report-card[hidden] { display: none; }
.report-cover { position: relative; display: flex; min-height: 100%; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: 16px; border-right: 1px solid var(--line); background: var(--c1); }
.report-cover::before { content: ''; position: absolute; width: 72px; height: 72px; top: 22px; right: -25px; border-radius: 50%; background: var(--c2); opacity: .9; }
.report-cover span { position: absolute; top: 13px; left: 14px; z-index: 1; color: var(--fg); font: 800 22px 'Manrope'; }
.report-cover i { z-index: 1; height: 5px; margin: 3px 0; border-radius: 4px; background: var(--c3); }
.report-cover i:nth-of-type(2) { width: 76%; }
.report-cover i:nth-of-type(3) { width: 54%; }
.report-cover b { z-index: 1; margin-top: 10px; color: var(--fg); font: 700 8px 'Space Mono'; text-transform: uppercase; }
.report-body { min-width: 0; padding: 22px; }
.report-date { color: var(--muted); font: 700 9px 'Space Mono'; letter-spacing: .04em; text-transform: uppercase; }
.report-body h2 { margin: 8px 0 7px; font: 800 clamp(19px, 2vw, 25px)/1.2 'Manrope'; letter-spacing: -.025em; }
.report-meta { margin: 0 0 12px; color: var(--muted); font: 700 9px 'Space Mono'; }
.report-takeaway { display: -webkit-box; margin: 0 0 16px; overflow: hidden; color: #4c566b; font-size: 13px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.report-stats { display: flex; flex-wrap: wrap; gap: 7px; }
.report-stats span, .report-read { padding: 5px 8px; border: 1px solid #d9deea; border-radius: 999px; background: #f5f7fb; color: #566078; font: 700 8px 'Space Mono'; }
.report-read { display: inline-block; margin-top: 8px; border-color: #cbd6f2; background: var(--blue-soft); color: var(--blue-dark); }
.report-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 18px; }
.report-actions .mini { padding: 8px 11px; font-size: 10px; }
.report-actions .secondary { font-size: 10px; }
.library-empty, .library-zero { padding: 56px 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-align: center; }
.library-empty b, .library-zero h2 { display: block; margin: 0; font: 800 30px 'Manrope'; }
.library-empty span { color: var(--muted); }
.library-zero > div { color: var(--blue); font: 800 64px/1 'Manrope'; }
.library-zero p { max-width: 540px; margin: 10px auto 24px; color: var(--muted); }
.library-zero .mini { margin: auto; }

@media (max-width: 900px) {
  .report-grid { grid-template-columns: 1fr; }
  .library-head { grid-template-columns: 1fr; }
}
@media (max-width: 750px) {
  .shell, .library-shell, .narrow { width: min(100% - 28px, 1080px); padding-top: 26px; }
  .masthead { grid-template-columns: 1fr; gap: 22px; }
  .masthead h1 { font-size: 52px; }
  .top-nav { grid-column: 1; grid-row: auto; justify-self: start; }
  .card { grid-template-columns: 1fr; }
  .number { place-items: center start; padding: 10px 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  .card-body { padding: 24px 20px; }
  .two, .three { grid-template-columns: 1fr; }
  .palettes { grid-template-columns: 1fr 1fr; }
  .stage-list { grid-template-columns: 1fr 1fr; }
  .job-list a { grid-template-columns: 1fr auto; }
  .job-list progress { grid-column: 1 / -1; }
  .library-head { margin-top: 34px; }
  .library-head h1 { font-size: 44px; }
  .library-tools { grid-template-columns: 1fr; }
  .report-card { grid-template-columns: 1fr; }
  .report-cover { min-height: 92px; border-right: 0; border-bottom: 1px solid var(--line); }
  .report-cover::before { top: -16px; }
  .section-title { align-items: flex-start; flex-direction: column; }
  .auto-transcript { align-items: flex-start; flex-direction: column; }
}
