:root {
  color-scheme: dark;
  --bg: #181714;
  --ink: #f5f0e7;
  --dim: #c4bdb2;
  --muted: #aaa297;
  --accent: #d2764d;
  --rule: #48433b;
  --panel: #24221e;
  --serif: Georgia,"Times New Roman",serif;
  --sans: "Helvetica Neue",Arial,sans-serif;
  --mono: ui-monospace,SFMono-Regular,Consolas,monospace;
  font-family: var(--sans);
  font-size: 16px;
  background: var(--bg);
  color: var(--ink);
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 6.5rem;
}
body {
  margin: 0;
}
main:focus {
  outline: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
summary,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
summary {
  cursor: pointer;
}
button {
  color: inherit;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
.record:focus {
  outline: 2px solid #ffa773;
  outline-offset: 4px;
}
button:disabled {
  cursor: wait;
  opacity: .65;
}
[hidden] {
  display: none!important;
}
.sr-only,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.skip:focus {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 1rem;
}
.wrap {
  width: min(1120px,calc(100% - 6rem));
  margin-inline: auto;
}
.topbar {
  position: absolute;
  left: 50%;
  top: 16px;
  transform: translateX(-50%);
  z-index: 5;
  width: min(1180px,calc(100% - 6rem));
  min-height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 10px 25px;
  border: 1px solid #ffffff38;
  background: rgba(45,43,40,.92);
  backdrop-filter: blur(14px);
  border-radius: 25px;
  box-shadow: 0 6px 22px #0003;
}
.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  width: max-content;
}
.brand b {
  font-weight: 800;
  letter-spacing: -.065em;
  font-size: 1.4rem;
  line-height: 1;
}
.brand b span,
h1 > span,
h2 > span {
  color: var(--accent);
}
.brand small {
  font: 500 .65rem/1 var(--mono);
  letter-spacing: .15em;
  color: #c2bbb1;
  margin-top: 6px;
}
.topbar nav {
  display: flex;
  gap: 1.9rem;
}
.topbar nav a,
.nav-book {
  font-size: .9rem;
  font-weight: 560;
  line-height: 1.5;
}
.topbar nav a:hover,
.nav-book:hover,
.back:hover {
  color: #ffb894;
}
.nav-book {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 9px;
}
.folder-icon {
  width: 16px;
  height: 11px;
  border: 1.4px solid currentColor;
  position: relative;
  border-radius: 2px;
  margin-top: 3px;
}
.folder-icon:before {
  content: "";
  position: absolute;
  left: -1.4px;
  top: -4px;
  border: 1.4px solid currentColor;
  border-bottom: 0;
  width: 7px;
  height: 3px;
  border-radius: 2px 3px 0 0;
}
.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(705px,100svh,1040px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
  text-align: center;
  padding: clamp(142px,21vh,240px) 22px 125px;
  background: #1d1916;
}
.hero:before,
.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero:before {
  background: url(./evidence-room.webp) center center/cover no-repeat;
}
.hero:after {
  background: linear-gradient(180deg,#171512 0%,#15130fd9 11%,#17151088
    28%,#17120e75 64%,#120e0a15 82%,#151310bf 100%),radial-gradient(ellipse at
    center,#120e0a29 30%,#100d0b60 94%);
}
.hero-copy {
  max-width: 1100px;
}
.hero h1 {
  font: 400 clamp(4.8rem,7.15vw,7.1rem)/.99 var(--serif);
  letter-spacing: -.047em;
  text-shadow: 0 3px 22px #0003;
}
.hero h1 span {
  color: inherit;
}
.hero h1 em {
  display: block;
  font-weight: 400;
  letter-spacing: -.052em;
  line-height: 1.12;
}
.lead {
  font-size: clamp(1.16rem,1.72vw,1.5rem);
  line-height: 1.4;
  color: #f2e9dc;
  margin-top: 2.2rem;
}
.sublead {
  font-size: 1rem;
  margin-top: 1.04rem;
  line-height: 1.5;
  color: #e1d6c7;
}
.actions,
.chips {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-actions {
  justify-content: center;
  margin-top: 2.5rem;
}
.button {
  border: 1px solid transparent;
  padding: 12px 21px;
  min-height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border-radius: 999px;
  font-weight: 650;
  font-size: .95rem;
  line-height: 1.3;
  text-align: center;
  transition: background .16s,color .16s,transform .16s;
}
.button:hover {
  transform: translateY(-1px);
}
.primary,
.solid {
  background: #f4eddf;
  color: #1b1814;
}
.primary:hover,
.solid:hover {
  background: #fff7ea;
}
.button:has(.round) {
  padding: 7px 7px 7px 23px;
  min-height: 50px;
}
.glass {
  border-color: #fff6;
  background: #423c347d;
  color: white;
  backdrop-filter: blur(5px);
}
.glass:hover {
  background: #595044a6;
}
.round {
  display: inline-grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  color: #fff;
  background: #ffffff2a;
  font-size: 1.42rem;
  font-weight: 400;
}
.round.plus {
  background: #bf5830;
}
.hero-foot {
  position: absolute;
  bottom: 25px;
  color: #fbefde;
  font: 500 .71rem var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  display: flex;
  gap: 12px;
  align-items: center;
  text-shadow: 0 1px 7px #000;
}
.line {
  height: 1px;
  width: 26px;
  background: #d7a783;
}
.hero-foot:hover {
  color: white;
}
.section {
  padding-block: clamp(60px,7.5vw,104px);
}
.kicker,
.case-card small,
.saved-case small,
.record small,
.board small,
.timeline small {
  font: 500 .75rem/1.45 var(--mono);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #c79c7c;
}
.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.15rem;
}
.kicker:before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
}
h2,
.workspace h1,
.minor {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.045em;
}
h2 {
  font-size: clamp(2.55rem,4.6vw,4.4rem);
  line-height: 1.04;
}
.intro {
  font-size: 1.08rem;
  color: var(--dim);
  line-height: 1.6;
  max-width: 63ch;
  margin-top: 1.1rem;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 1.25rem;
  margin-top: 2.4rem;
}
.case-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
  background: #24221e;
  transition: border-color .2s,transform .2s;
}
.case-card:hover {
  border-color: #ba8969;
  transform: translateY(-3px);
}
.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: start;
  flex: 1;
}
.case-card h3,
.process-grid h3,
.empty h3,
.paper.form h3 {
  font: 400 1.65rem/1.15 var(--serif);
  letter-spacing: -.025em;
}
.case-card h3 {
  margin: .55rem 0;
}
.card-body p,
.module p,
.process-grid p,
.empty p,
.record p,
.report p,
.timeline p,
.faq details p {
  color: var(--dim);
  line-height: 1.6;
}
.card-body p {
  margin-bottom: 1.4rem;
}
.text-link,
.text-button,
.record a,
.report li a {
  font-size: .9rem;
  color: #edba97;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #ad805d;
  text-underline-offset: 4px;
}
.text-link:hover,
.text-button:hover,
.record a:hover,
.report li a:hover {
  color: #ffddc1;
}
.card-body .text-link {
  margin-top: auto;
}
.art {
  height: 152px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  border-bottom: 1px solid var(--rule);
}
.art-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(90deg,#f8dfbe10 1px,transparent
    1px),linear-gradient(#f8dfbe10 1px,transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(140deg,#0009,#000,transparent);
}
.moon {
  background: radial-gradient(ellipse at 64% 70%,#665243,#312b29 49%,#23201e
    80%);
}
.moon-disc {
  position: absolute;
  border: 1px solid #dcc6a77a;
  border-radius: 50%;
  width: 100px;
  aspect-ratio: 1;
  right: 18%;
  top: 24px;
  background: repeating-radial-gradient(ellipse at 25% 30%,#cab08b44 0
    1px,transparent 2px 5px),radial-gradient(at 25% 30%,#e2c49e,#9f886e
    38%,#39332e 67%,#211d1a 80%);
  box-shadow: inset -12px -8px 12px #28221d99;
}
.orbit {
  position: absolute;
  left: 14%;
  width: 76%;
  height: 69%;
  top: 31px;
  border: 1px solid #d0a57699;
  border-radius: 50%;
  transform: rotate(-20deg);
}
.sight {
  position: absolute;
  left: 26%;
  top: 64%;
  width: 9px;
  height: 9px;
  background: #df9f76;
  border-radius: 50%;
  box-shadow: 0 0 0 5px #d0a57629;
}
.atlas {
  background: radial-gradient(ellipse at 55% 95%,#34524c,#202d29 65%);
}
.globe {
  position: absolute;
  top: 14px;
  left: 50%;
  width: 124px;
  height: 124px;
  transform: translateX(-50%) rotate(-20deg);
  border: 1px solid #b0c7b4ac;
  border-radius: 50%;
  overflow: hidden;
}
.globe i,
.globe b {
  position: absolute;
  border: 1px solid #b8cab491;
  border-radius: 50%;
  inset: 0 22%;
}
.globe i:nth-child(2) {
  inset: 0 39%;
}
.globe b {
  inset: 22% -13%;
  border-radius: 48%;
}
.globe b:last-child {
  inset: 42% -20%;
}
.latline {
  position: absolute;
  top: 56%;
  left: 8%;
  width: 84%;
  height: 1px;
  background: linear-gradient(90deg,transparent,#c39669,transparent);
  transform: rotate(10deg);
}
.code {
  background: radial-gradient(ellipse at 70% 55%,#514239,#302a27 60%);
}
.branch {
  position: absolute;
  left: 23%;
  top: 50%;
  width: 57%;
  height: 1px;
  background: #d3966e;
}
.branch i {
  position: absolute;
  top: -5px;
  width: 11px;
  height: 11px;
  border: 2px solid #e2ad82;
  border-radius: 50%;
  background: #4b3930;
  z-index: 1;
}
.branch i:nth-child(1) {
  left: 0;
}
.branch i:nth-child(2) {
  left: 35%;
}
.branch i:nth-child(3) {
  left: 68%;
  top: -37px;
}
.branch i:nth-child(4) {
  right: 0;
}
.branch b {
  position: absolute;
  left: 38%;
  top: -32px;
  width: 35%;
  height: 33px;
  border-left: 1px solid #c99672;
  border-top: 1px solid #c99672;
  border-radius: 12px 0 0;
}
.source-section {
  background: #201e1a;
  border-block: 1px solid #37332b;
}
.chips {
  margin: 2rem 0;
  gap: 8px;
}
.chip,
.text-button {
  border: 0;
  background: none;
}
.chip {
  border: 1px solid #5c554a;
  padding: 8px 15px;
  border-radius: 50px;
  color: var(--dim);
  font-size: .9rem;
}
.chip[aria-pressed=true] {
  color: #201c18;
  border-color: var(--ink);
  background: #ece5d7;
}
.chip:hover {
  border-color: #b3997d;
}
.module-list {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  column-gap: 2rem;
}
.module {
  border-top: 1px solid var(--rule);
  padding: 22px 0;
  display: flex;
  gap: 14px;
}
.sigil,
.case-icon {
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid #65594c;
  background: #302b24;
  color: #ddba95;
  width: 41px;
  height: 41px;
  flex-shrink: 0;
  font: 500 1.16rem var(--serif);
}
.module h3,
.saved-case h3,
.record h3,
.board strong,
.timeline h3,
.report h3 {
  font-size: 1.08rem;
  line-height: 1.45;
}
.module p {
  font-size: .96rem;
  margin: 4px 0 9px;
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 2rem;
  margin-top: 2.25rem;
}
.process-grid article {
  border-top: 1px solid var(--rule);
  padding-top: 1.2rem;
}
.process-grid h3 {
  margin-bottom: .6rem;
}
.faq {
  border-top: 1px solid var(--rule);
}
.faq h2 {
  margin-bottom: 2rem;
}
.faq details {
  border-bottom: 1px solid var(--rule);
  padding: 1.2rem 0;
}
.faq summary {
  font-size: 1.15rem;
  line-height: 1.4;
}
.faq details p {
  margin: .85rem 0 0;
  max-width: 70ch;
}
footer {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  border-top: 1px solid var(--rule);
  padding: 2rem 0 2.7rem;
}
footer small,
footer > a:last-child {
  color: var(--muted);
  font-size: .85rem;
}
footer > a:last-child {
  margin-left: auto;
}
.workspace {
  padding-top: 135px;
  padding-bottom: 85px;
  min-height: calc(100svh - 120px);
  overflow-wrap: anywhere;
}
.workspace h1 {
  font-size: clamp(2.7rem,5.8vw,5.3rem);
  line-height: 1.02;
}
.workspace .intro {
  margin-top: .65rem;
}
.back {
  display: inline-block;
  font-size: .9rem;
  color: var(--dim);
  text-decoration: underline;
  text-underline-offset: 4px;
  margin-bottom: 2.3rem;
}
.workspace .kicker {
  margin-bottom: .7rem;
}
.split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.split > .button {
  flex-shrink: 0;
}
.minor {
  font-size: clamp(1.8rem,3vw,2.6rem);
  line-height: 1.14;
}
.stack {
  display: grid;
  gap: .8rem;
  margin: 1.25rem 0 2rem;
}
.saved-case,
.paper,
.empty,
.record {
  border: 1px solid var(--rule);
  border-radius: 13px;
  background: var(--panel);
}
.saved-case {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.2rem 1.4rem;
}
.saved-case:hover {
  border-color: #a68263;
}
.saved-case small,
.record small,
.board small,
.timeline small {
  font-size: .72rem;
}
.meta,
.hint,
.plan-list small {
  font-size: .9rem;
  color: var(--dim);
  line-height: 1.55;
}
.meta {
  margin-left: auto;
}
.empty {
  padding: 2.35rem 1.6rem;
  border-style: dashed;
  background: transparent;
}
.empty p {
  margin: .5rem 0 0;
}
.paper {
  padding: clamp(1.15rem,2.8vw,2.2rem);
}
.form {
  max-width: 710px;
  display: grid;
  gap: .7rem;
  margin: 1.7rem 0;
}
.form label,
.form legend {
  font-weight: 650;
}
.form > label:not(:first-child) {
  margin-top: .55rem;
}
input:not([type=checkbox]),
textarea,
select {
  width: 100%;
  min-width: 0;
  border: 1px solid #635d52;
  background: #1a1916;
  color: var(--ink);
  padding: .8rem .95rem;
  border-radius: 6px;
  font-size: 1rem;
  line-height: 1.4;
}
textarea {
  resize: vertical;
}
input::placeholder,
textarea::placeholder {
  color: #aaa196;
}
.form select {
  appearance: none;
  background-image: linear-gradient(45deg,transparent 50%,#d3c6b5
    50%),linear-gradient(135deg,#d3c6b5 50%,transparent 50%);
  background-position: calc(100% - 21px) 51%,calc(100% - 15px) 51%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 1.2rem 0 .2rem;
  min-width: 0;
}
legend {
  padding: 0;
  margin-bottom: .4rem;
}
fieldset .hint {
  margin-bottom: .7rem;
}
.choice {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  border-top: 1px solid var(--rule);
  padding: 12px 0;
}
.choice input {
  accent-color: #dd8d60;
  width: 17px;
  height: 17px;
  margin: 3px 0 0;
}
.choice small,
.choice strong {
  display: block;
}
.choice small {
  color: var(--dim);
  font-weight: 400;
  font-size: .9rem;
  margin-top: .25rem;
}
.form > .button {
  justify-self: start;
}
.error,
.warn {
  color: #ffb694!important;
}
.error:empty {
  display: none;
}
.tabs {
  display: flex;
  gap: 1.5rem;
  border-bottom: 1px solid var(--rule);
  margin: 2.3rem 0 1.7rem;
  overflow-x: auto;
}
.tabs a {
  padding: .8rem 0;
  border-bottom: 2px solid transparent;
  color: var(--dim);
  font-size: .98rem;
  white-space: nowrap;
}
.tabs a[aria-current] {
  border-color: var(--accent);
  color: var(--ink);
}
.plan .minor {
  font-size: 1.8rem;
}
.plan-list {
  margin-top: 1rem;
}
.plan-list > div {
  padding: .68rem 0;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.plan-list small {
  text-align: right;
}
.subsection {
  margin: 1.75rem 0 .8rem;
}
.count {
  font: 500 .9rem var(--mono);
  color: var(--dim);
  vertical-align: middle;
}
.text-button {
  padding: 6px 0;
}
.record {
  display: flex;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
}
.rec-num {
  font: .83rem/1.5 var(--mono);
  color: #d0a780;
  padding-top: .16rem;
}
.record h3 {
  margin: .25rem 0;
}
.record p {
  margin-bottom: .5rem;
}
.record a,
.report li a {
  font-weight: 500;
}
.board {
  padding: 1.5rem;
  display: grid;
  grid-template-columns: minmax(90px,1fr) minmax(0,3fr);
  align-items: center;
  gap: 28px;
  background-color: #211f1a;
  background-image: radial-gradient(#514638 1px,transparent 1px);
  background-size: 17px 17px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  margin-top: 1.2rem;
}
.board-root,
.board-source,
.leaf {
  border: 1px solid #655948;
  border-radius: 7px;
  background: #28251f;
  padding: .8rem;
}
.board-root {
  background: #3b2c21;
  border-color: #966b49;
}
.board small,
.board strong {
  display: block;
}
.board-group {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1.7fr);
  align-items: center;
  gap: 24px;
  position: relative;
  padding: 8px 0;
}
.board-root,
.board-source,
.leaf {
  position: relative;
}
.board-root:after,
.board-group:before,
.board-source:after,
.leaf:before {
  content: "";
  position: absolute;
  top: 50%;
  height: 1px;
  background: #8b7057;
}
.board-root:after {
  left: 100%;
  width: 14px;
}
.board-groups {
  position: relative;
}
.board-groups:before {
  content: "";
  position: absolute;
  left: -14px;
  top: 0;
  bottom: 0;
  border-left: 1px solid #8b7057;
}
.board-group:before {
  left: -14px;
  width: 14px;
}
.board-source:after,
.leaf:before {
  width: 12px;
}
.board-source:after {
  left: 100%;
}
.leaf:before {
  right: 100%;
}
.leaves {
  display: grid;
  gap: 6px;
  position: relative;
}
.leaves:before {
  content: "";
  position: absolute;
  left: -12px;
  top: 0;
  bottom: 0;
  border-left: 1px solid #8b7057;
}
.leaf {
  text-align: left;
  color: var(--ink);
  font-size: .93rem;
  line-height: 1.35;
}
.leaf:hover {
  border-color: var(--accent);
}
.leaf small {
  display: inline;
}
.report {
  max-width: 850px;
}
.report h2 {
  font-size: 2.6rem;
}
.report h3 {
  margin: 1.5rem 0 .5rem;
}
.report p,
.record p {
  white-space: pre-line;
}
.report ol {
  padding-left: 1.5rem;
}
.report li {
  margin: 1rem 0;
}
.report form button {
  display: block;
  margin-top: .5rem;
}
.timeline {
  margin: 1.2rem 0 0 8px;
  border-left: 1px solid #7a644f;
  padding-left: 1.3rem;
}
.timeline article {
  padding: 0 0 1.8rem;
  position: relative;
}
.timeline article:before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  left: calc(-1.3rem - 4.5px);
  top: 5px;
  border-radius: 50%;
  background: #cb8860;
}
.timeline h3 {
  margin: .2rem 0;
}
#notice {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #f4ecde;
  color: #241d16;
  max-width: min(480px,90vw);
  border-radius: 12px;
  box-shadow: 0 8px 25px #0004;
  padding: 12px 18px;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
}
#notice.show {
  opacity: 1;
}
@media (max-width:850px) {
  .wrap,
  .topbar {
    width: calc(100% - 3rem);
  }
  .topbar nav {
    gap: 1.1rem;
  }
  .cards {
    gap: .8rem;
  }
  .card-body {
    padding: 1.15rem;
  }
  .module-list {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .hero h1 {
    font-size: clamp(3.8rem,9vw,5.6rem);
  }
}
@media (max-width:650px) {
  html {
    scroll-padding-top: 1rem;
  }
  .topbar,
  .wrap {
    width: calc(100% - 2rem);
  }
  .topbar {
    top: 10px;
    grid-template-columns: 1fr auto;
    border-radius: 18px;
    padding: 11px 16px;
    min-height: 60px;
    row-gap: 10px;
  }
  .topbar nav {
    grid-column: 1/-1;
    grid-row: 2;
    justify-content: space-between;
    border-top: 1px solid #ffffff20;
    padding-top: 8px;
  }
  .topbar nav a {
    font-size: .82rem;
  }
  .brand b {
    font-size: 1.25rem;
  }
  .brand small {
    font-size: .60rem;
  }
  .hero {
    min-height: max(635px,95svh);
    padding-top: clamp(178px,28svh,256px);
  }
  .hero h1 {
    font-size: clamp(3.3rem,12vw,4.8rem);
    line-height: 1.03;
  }
  .hero h1 em {
    font-size: .93em;
    line-height: 1.05;
  }
  .lead {
    font-size: 1.14rem;
    margin-top: 1.5rem;
  }
  .sublead {
    font-size: .95rem;
    margin: .85rem auto 0;
    max-width: 31ch;
  }
  .hero-actions {
    margin-top: 1.65rem;
    gap: 8px;
  }
  .button {
    font-size: .88rem;
  }
  .button:has(.round) {
    min-height: 46px;
    padding-left: 15px;
    gap: 8px;
  }
  .round {
    width: 29px;
    height: 29px;
  }
  .cards,
  .process-grid,
  .module-list {
    grid-template-columns: 1fr;
  }
  .cards {
    gap: 1rem;
  }
  .art {
    height: 145px;
  }
  .process-grid {
    gap: 1.3rem;
  }
  .section {
    padding-block: 52px;
  }
  .workspace {
    padding-top: 149px;
  }
  .tabs {
    gap: 1.15rem;
  }
  .split {
    flex-wrap: wrap;
  }
  .plan-list > div {
    align-items: flex-start;
  }
  .saved-case {
    flex-wrap: wrap;
  }
  .saved-case .meta {
    width: 100%;
    margin-left: 0;
  }
  .board {
    padding: 1rem;
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .board-root:after,
  .board-groups:before,
  .board-group:before {
    display: none;
  }
  .board-groups {
    border-left: 1px solid #8b7057;
    padding-left: .6rem;
  }
  .board-source strong {
    font-size: .88rem;
  }
  .leaf {
    font-size: .83rem;
  }
  .board-group {
    gap: 15px;
  }
  .board-source:after,
  .leaf:before {
    width: 8px;
  }
  .leaves:before {
    left: -8px;
  }
  .record {
    padding: 1rem;
    gap: .65rem;
  }
  footer {
    gap: 12px;
    flex-wrap: wrap;
  }
  .intro {
    font-size: 1rem;
  }
}
@media (prefers-reduced-motion:reduce) {
  *,
  *:before,
  *:after {
    transition: none!important;
    scroll-behavior: auto!important;
  }
}
.ai-tools {
  border: 1px solid var(--rule);
  border-radius: 8px;
  margin: 0 0 1rem;
  padding: .85rem 1rem;
}
.ai-tools summary {
  font-weight: 600;
}
.ai-tools .hint {
  margin: .55rem 0;
}
.ai-controls:not(:empty) {
  display: grid;
  gap: .75rem;
  margin: 1rem 0;
}
.ai-controls button {
  justify-self: start;
}
.ai-controls label {
  font-weight: 650;
}

.media-form {
  max-width: 56rem;
  margin: 1.6rem 0;
}
.media-form > label,
.media-more label {
  display: block;
  font-weight: 650;
  margin-bottom: .5rem;
}
.media-query-row {
  display: flex;
  align-items: stretch;
  gap: .75rem;
}
.media-query-row input {
  flex: 1;
}
.media-query-row button {
  flex-shrink: 0;
}
.media-form fieldset {
  margin: 1.25rem 0 .7rem;
}
.media-form legend {
  font-size: .95rem;
  font-weight: 650;
}
.media-checks,
.media-links,
.media-hit-actions {
  display: flex;
  gap: .6rem 1rem;
  align-items: center;
  flex-wrap: wrap;
}
.media-checks label {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  line-height: 1.5;
}
.media-checks input {
  accent-color: var(--accent);
  width: 1rem;
  height: 1rem;
}
.media-more {
  padding: 1rem 1.25rem;
  margin: 1.1rem 0;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--panel);
}
.media-more summary {
  font-weight: 600;
}
.media-more form {
  margin-top: 1rem;
  max-width: 32rem;
}
.media-links {
  margin: 1rem 0;
}
.media-more a,
.media-hit-actions a {
  color: #edba97;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.media-manual {
  margin-top: 1rem;
  font-size: .94rem;
}
.media-manual form {
  display: grid;
  gap: .5rem;
}
.media-manual form label {
  margin: 0;
}
.media-manual button {
  justify-self: start;
}
#media-domain-link:not(:empty) {
  margin-top: .7rem;
}
.media-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  align-items: start;
  gap: 1rem;
}
.media-group {
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1.3rem;
  background: var(--panel);
}
.media-group header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  justify-content: space-between;
}
.media-group header small {
  white-space: nowrap;
  color: var(--dim);
}
.media-group h3 {
  font: 400 1.5rem var(--serif);
}
.media-group .warn {
  margin-top: 1rem;
}
.media-hit {
  border-top: 1px solid var(--rule);
  margin-top: 1rem;
  padding-top: 1rem;
}
.media-hit h4 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
}
.media-hit h4 a:hover {
  text-decoration: underline;
}
.media-hit p {
  color: var(--dim);
  line-height: 1.5;
  margin: .4rem 0;
}
.media-hit-actions {
  font-size: .9rem;
}
.media-hit-actions button:disabled {
  cursor: default;
  color: var(--dim);
  text-decoration: none;
}
@media (max-width: 650px) {
  .topbar nav {
    gap: .45rem;
    flex-wrap: wrap;
  }
  .media-results {
    grid-template-columns: minmax(0,1fr);
  }
  .media-query-row {
    flex-wrap: wrap;
  }
  .media-query-row input {
    flex: 1 1 13rem;
  }
  .media-group header {
    gap: .5rem;
  }
}
