/* BMEL Design — First Ideas
   Visual system: a drawing sheet. Cool drafting paper, forest-green ink,
   corten redline reserved for markup and the one action that matters. */

:root {
  color-scheme: light;
  --paper: #eef1eb;
  --sheet: #f9faf7;
  --ink: #1f3b2c;
  --ink-soft: #4d6255;
  --ink-faint: #7d8f82;
  --rule: #c3ccc0;
  --grid: #dde3d9;
  --red: #a8431c;
  --red-deep: #8c3614;
  --leaf: #6f8b5e;
  --ok: #3f6b45;

  --font: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.6875rem;
  --step-3: 2.25rem;
  --step-4: clamp(2.2rem, 1.5rem + 2.2vw, 3.15rem);

  --measure: 64ch;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --wide: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  font-stretch: 100%;
  line-height: 1.6;
  font-weight: 400;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--red);
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: #f1d7c9;
}

.wrap {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------- type ---------- */
h1,
h2,
h3 {
  font-stretch: 115%;
  font-weight: 640;
  line-height: 1.06;
  letter-spacing: -0.012em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-4);
}

h2 {
  font-size: var(--step-3);
}

h3 {
  font-size: var(--step-1);
  line-height: 1.2;
  font-stretch: 108%;
}

p {
  margin: 0 0 1em;
  max-width: var(--measure);
  text-wrap: pretty;
}

.lede {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-soft);
}

.tech {
  font-stretch: 86%;
  font-weight: 560;
  letter-spacing: 0.01em;
  font-size: var(--step--1);
  color: var(--ink-soft);
}

.muted {
  color: var(--ink-soft);
}

/* ---------- buttons ---------- */
.btn {
  --bg: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.35em;
  border: 1.5px solid var(--bg);
  background: var(--bg);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-stretch: 105%;
  line-height: 1.1;
  text-decoration: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}

.btn:hover {
  --bg: var(--red-deep);
  color: #fff;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  background: var(--rule);
  border-color: var(--rule);
  color: var(--ink-soft);
  cursor: not-allowed;
}

.btn.quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn.quiet:hover {
  background: var(--ink);
  color: var(--sheet);
}

.btn .price {
  font-stretch: 90%;
  opacity: 0.9;
  font-weight: 500;
}

/* ---------- header ---------- */
.site-head {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 64px;
}

.mark {
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 0.35em;
  font-stretch: 118%;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  margin-right: auto;
}

.mark-b {
  height: 1.6em;
  width: auto;
  align-self: center;
  margin-right: 0.3em;
  fill: #2d5016;
}

.mark b {
  font-weight: 800;
}

.mark span {
  font-weight: 400;
}

.nav {
  display: flex;
  gap: 1.4rem;
  font-size: var(--step--1);
  font-stretch: 95%;
}

.nav a {
  text-decoration: none;
}

.site-head .btn {
  padding: 0.6em 1em;
  font-size: var(--step--1);
}

@media (max-width: 760px) {
  .nav {
    display: none;
  }
}

/* ---------- hero ---------- */
.hero {
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem);
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.hero h1 {
  margin-bottom: 0.45em;
}

.hero .lede {
  margin-bottom: 1.6rem;
}

.hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.4rem;
  align-items: center;
}

.hero .actions .tech {
  max-width: 34ch;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
}

/* ---------- the sheet ---------- */
.sheet {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 1px 0 var(--rule)) drop-shadow(0 18px 28px rgba(31, 59, 44, 0.12));
}

.sheet text {
  font-family: var(--font);
}

.sheet .draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.sheet .note {
  font-stretch: 80%;
  font-size: 12.5px;
  fill: var(--ink);
}

.sheet .red {
  stroke: var(--red);
  fill: none;
}

.sheet .redtext {
  fill: var(--red);
  font-stretch: 85%;
  font-weight: 650;
}

@media (prefers-reduced-motion: no-preference) {
  .sheet.animate .draw {
    stroke-dashoffset: 1;
    animation: draw 1.5s cubic-bezier(0.55, 0.1, 0.35, 1) forwards;
    animation-delay: calc(var(--d, 0) * 1ms);
  }
  .sheet.animate .mk {
    opacity: 0;
    animation: mark 0.35s ease-out forwards;
    animation-delay: calc(1500ms + var(--i, 0) * 170ms);
  }
  .sheet.animate .late {
    opacity: 0;
    animation: mark 0.5s ease-out forwards;
    animation-delay: 3100ms;
  }
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes mark {
  from {
    opacity: 0;
    transform: translateY(2px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- sections ---------- */
section {
  padding: clamp(3rem, 7vw, 6rem) 0;
  border-top: 1px solid var(--rule);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head p {
  margin-top: 0.4rem;
}

@media (max-width: 900px) {
  .section-head {
    grid-template-columns: 1fr;
  }
}

/* How it works: a dimension string */
.dimline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 clamp(1rem, 2.5vw, 2rem);
  padding: 2.4rem 0 0;
  list-style: none;
  margin: 0;
}

.dimline::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: 0;
  right: 0;
  border-top: 1px solid var(--ink);
}

.dimline li {
  position: relative;
}

.dimline li::before {
  content: "";
  position: absolute;
  top: -2.25rem;
  left: 0;
  width: 1px;
  height: 1.2rem;
  background: var(--ink);
}

.dimline li::after {
  content: "";
  position: absolute;
  top: -1.95rem;
  left: -4px;
  width: 9px;
  height: 1px;
  background: var(--ink);
  transform: rotate(-45deg);
}

.dimline .dur {
  position: absolute;
  top: -2.3rem;
  left: 0.7rem;
  background: var(--paper);
  padding: 0 0.4rem;
}

.dimline h3 {
  margin: 0 0 0.4rem;
}

.dimline .n {
  color: var(--red);
  font-weight: 700;
  margin-right: 0.35em;
}

@media (max-width: 820px) {
  .dimline {
    grid-template-columns: 1fr;
    gap: 2.2rem;
    padding-top: 0;
    padding-left: 1.6rem;
  }
  .dimline::before {
    top: 0;
    bottom: 0;
    left: 0.3rem;
    right: auto;
    border-top: 0;
    border-left: 1px solid var(--ink);
  }
  .dimline li::before {
    top: 0.2rem;
    left: -1.75rem;
    width: 0.9rem;
    height: 1px;
  }
  .dimline li::after {
    display: none;
  }
  .dimline .dur {
    position: static;
    padding: 0;
    display: block;
    margin-bottom: 0.2rem;
  }
}

/* Is / isn't */
.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 4rem);
}

@media (max-width: 760px) {
  .two {
    grid-template-columns: 1fr;
  }
}

.plain-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.plain-list li {
  padding: 0.75rem 0;
  border-top: 1px solid var(--rule);
}

.plain-list li:last-child {
  border-bottom: 1px solid var(--rule);
}

.plain-list strong {
  font-weight: 600;
}

.isnt li {
  color: var(--ink-soft);
}

/* Schedule table */
.schedule-wrap {
  overflow-x: auto;
  border: 1px solid var(--ink);
  background: var(--sheet);
}

table.schedule {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  font-size: var(--step--1);
  line-height: 1.45;
}

.schedule th,
.schedule td {
  text-align: left;
  vertical-align: top;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--rule);
}

.schedule thead th {
  font-stretch: 80%;
  font-weight: 600;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}

.schedule tbody th {
  font-stretch: 108%;
  font-weight: 640;
  font-size: var(--step-0);
  width: 20%;
}

.schedule tr.here th,
.schedule tr.here td {
  background: #fbf1ec;
}

.schedule tr.here th {
  color: var(--red);
}

.schedule .fee {
  white-space: nowrap;
  font-weight: 600;
}

.schedule tbody tr:last-child th,
.schedule tbody tr:last-child td {
  border-bottom: 0;
}

/* Who draws it */
.who {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

.built {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.built figure {
  margin: 0;
}

.built img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--grid);
}

.built figcaption {
  margin-top: 0.4rem;
  line-height: 1.35;
}

@media (max-width: 560px) {
  .built {
    grid-template-columns: 1fr 1fr;
  }
  .built figure:first-child {
    grid-column: span 2;
  }
  .built figure:first-child img {
    aspect-ratio: 3 / 2;
  }
}

.credential {
  border-left: 2px solid var(--ink);
  padding-left: 1rem;
  color: var(--ink-soft);
  font-size: var(--step--1);
}

@media (max-width: 900px) {
  .who {
    grid-template-columns: 1fr;
  }
}

/* FAQ */
.faq details {
  border-top: 1px solid var(--rule);
  padding: 1rem 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--rule);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-stretch: 104%;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-weight: 400;
  color: var(--red);
  font-size: 1.3em;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin: 0.7rem 0 0;
}

/* Closing band */
.closing {
  background: var(--ink);
  color: var(--sheet);
  border-top: 0;
}

.closing h2 {
  max-width: 22ch;
}

.closing p {
  color: #cfd9d0;
}

.closing .btn.quiet {
  color: var(--sheet);
  border-color: var(--sheet);
}

.closing .btn.quiet:hover {
  background: var(--sheet);
  color: var(--ink);
}

.closing a:not(.btn):hover {
  color: #f0b89c;
}

/* Footer */
.site-foot {
  padding: 2.5rem 0 3rem;
  font-size: var(--step--1);
  color: var(--ink-soft);
}

.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
}

.site-foot nav {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* Utility */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.stack > * + * {
  margin-top: 1rem;
}


/* =========================================================
   Intake (start page)
   ========================================================= */
.intake {
  padding: clamp(1.5rem, 4vw, 3rem) 0 4rem;
}

.intake > .wrap {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}

.rail {
  position: sticky;
  top: 84px;
  border: 1px solid var(--ink);
  background: var(--sheet);
  font-size: var(--step--1);
}

.rail ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rail li + li {
  border-top: 1px solid var(--rule);
}

.rail ol button {
  all: unset;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0.2rem;
  width: 100%;
  padding: 0.75rem 0.9rem;
  cursor: pointer;
  color: var(--ink-soft);
}

.rail ol button:disabled {
  cursor: default;
  color: var(--ink-faint);
}

.rail ol button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: -2px;
}

.rail .n {
  font-weight: 700;
}

.rail .lbl {
  font-weight: 600;
  font-stretch: 104%;
}

.rail .st {
  grid-column: 2;
  font-stretch: 80%;
  color: var(--ink-faint);
}

.rail [aria-current="step"] {
  color: var(--ink);
  background: #fbf1ec;
}

.rail [aria-current="step"] .n {
  color: var(--red);
}

.rail .done .st {
  color: var(--ok);
}

.rail .foot {
  border-top: 1px solid var(--ink);
  padding: 0.75rem 0.9rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

.rail .foot b {
  color: var(--ink);
}

@media (max-width: 860px) {
  .intake > .wrap {
    grid-template-columns: 1fr;
  }
  .rail {
    position: static;
  }
  .rail ol {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }
  .rail li + li {
    border-top: 0;
    border-left: 1px solid var(--rule);
  }
  .rail ol button {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 0.6rem 0.3rem;
  }
  .rail .st,
  .rail .foot {
    display: none;
  }
  .rail .lbl {
    font-size: 0.8rem;
  }
}

.panel h1 {
  font-size: var(--step-3);
  margin-bottom: 0.35em;
}

.panel > .lede {
  margin-bottom: 1.8rem;
}

.panel[hidden] {
  display: none;
}

/* forms */
.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 1.4rem;
  max-width: 760px;
}

.fields .full {
  grid-column: 1 / -1;
}

@media (max-width: 620px) {
  .fields {
    grid-template-columns: 1fr;
  }
}

label,
.label {
  display: block;
  font-weight: 600;
  font-size: var(--step--1);
  margin-bottom: 0.35rem;
}

.opt {
  font-weight: 400;
  color: var(--ink-faint);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
select,
textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--sheet);
  border: 1px solid #9fae9f;
  border-radius: 3px;
  padding: 0.7rem 0.8rem;
  line-height: 1.4;
}

textarea {
  resize: vertical;
  min-height: 5.5rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--ink);
  outline-offset: 0;
  border-color: var(--ink);
}

.hint {
  font-size: var(--step--1);
  color: var(--ink-soft);
  margin: 0.35rem 0 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border: 0;
  padding: 0;
  margin: 0;
}

.chips legend {
  font-weight: 600;
  font-size: var(--step--1);
  margin-bottom: 0.45rem;
  padding: 0;
}

.chip {
  position: relative;
}

.chip input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.chip span {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border: 1px solid #9fae9f;
  border-radius: 999px;
  font-size: var(--step--1);
  background: var(--sheet);
  cursor: pointer;
}

.chip input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--sheet);
}

.chip input:focus-visible + span {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
}

.error {
  color: var(--red-deep);
  font-weight: 600;
  font-size: var(--step--1);
  margin: 0.8rem 0 0;
}

.error:empty {
  display: none;
}

.hp {
  position: absolute;
  left: -9999px;
}

/* photos */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.shot {
  border: 1px dashed #9fae9f;
  background: var(--sheet);
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 150px;
}

.shot.has {
  border-style: solid;
  border-color: var(--ink);
}

.shot .t {
  font-weight: 600;
  font-size: var(--step--1);
  line-height: 1.3;
}

.shot .d {
  font-size: 0.8rem;
  color: var(--ink-soft);
  line-height: 1.35;
  flex: 1;
}

.shot button {
  align-self: flex-start;
}

.btn.small {
  padding: 0.45em 0.8em;
  font-size: var(--step--1);
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.8rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.thumbs li {
  position: relative;
  background: var(--grid);
}

.thumbs img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.thumbs .cap {
  font-size: 0.78rem;
  line-height: 1.3;
  padding: 0.3rem 0.4rem;
  background: var(--sheet);
  color: var(--ink-soft);
}

.thumbs .num {
  position: absolute;
  top: 0.35rem;
  left: 0.35rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--sheet);
  color: var(--red);
  border: 1.5px solid var(--red);
  font-weight: 700;
  font-size: 0.8rem;
  display: grid;
  place-items: center;
}

.thumbs .rm {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  border: 0;
  background: rgba(31, 59, 44, 0.85);
  color: #fff;
  border-radius: 3px;
  font: inherit;
  font-size: 0.75rem;
  padding: 0.2rem 0.45rem;
  cursor: pointer;
}

.thumbs .busy {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(249, 250, 247, 0.75);
  font-size: 0.8rem;
  font-weight: 600;
}

.count {
  font-weight: 600;
}

.plans {
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
  max-width: 760px;
}

.plans ul {
  margin: 0.5rem 0;
  padding-left: 1.1rem;
}

/* brief chat */
.brief-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 1060px) {
  .brief-grid {
    grid-template-columns: 1fr;
  }
}

.chat {
  border: 1px solid var(--ink);
  background: var(--sheet);
  display: flex;
  flex-direction: column;
  height: min(68vh, 640px);
  min-height: 420px;
}

.log {
  flex: 1;
  overflow-y: auto;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.msg {
  max-width: 88%;
  line-height: 1.5;
}

.msg .who {
  display: block;
  font-size: 0.75rem;
  font-stretch: 80%;
  font-weight: 600;
  color: var(--ink-faint);
  margin-bottom: 0.15rem;
}

.msg.assistant {
  align-self: flex-start;
}

.msg.user {
  align-self: flex-end;
  background: #e3eadf;
  padding: 0.6rem 0.85rem;
  border-radius: 3px;
}

.msg.user .who {
  text-align: right;
}

.typing {
  color: var(--ink-faint);
  font-size: var(--step--1);
}

.typing::after {
  content: "…";
  animation: blink 1s steps(2) infinite;
}

@keyframes blink {
  50% {
    opacity: 0.2;
  }
}

.suggest {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 1.2rem 0.8rem;
}

.suggest button {
  font: inherit;
  font-size: var(--step--1);
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
}

.suggest button:hover {
  background: var(--ink);
  color: var(--sheet);
}

.composer {
  border-top: 1px solid var(--rule);
  display: flex;
  gap: 0.6rem;
  padding: 0.75rem;
  align-items: flex-end;
}

.composer textarea {
  min-height: 2.8rem;
  max-height: 9rem;
  resize: none;
}

.chat-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.linkish {
  all: unset;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  font-size: var(--step--1);
  color: var(--ink-soft);
}

.linkish:hover {
  color: var(--red);
}

.linkish:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.summary {
  border: 1px solid var(--ink);
  background: var(--sheet);
  font-size: var(--step--1);
  position: sticky;
  top: 84px;
}

.summary h2 {
  font-size: var(--step-0);
  font-stretch: 104%;
  margin: 0;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--ink);
}

.summary .meter {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--rule);
}

.bar {
  height: 6px;
  background: var(--grid);
  margin-top: 0.4rem;
}

.bar i {
  display: block;
  height: 100%;
  background: var(--ink);
  transition: width 0.4s ease;
}

.summary .grp {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--rule);
}

.summary .grp:last-child {
  border-bottom: 0;
}

.summary .grp h3 {
  font-size: var(--step--1);
  font-stretch: 100%;
  margin: 0 0 0.3rem;
}

.summary ul {
  margin: 0;
  padding-left: 1rem;
  line-height: 1.4;
}

.summary .empty {
  color: var(--ink-faint);
  font-style: italic;
}

.checklist {
  list-style: none;
  padding: 0 !important;
}

.checklist li {
  padding-left: 1.3rem;
  position: relative;
  color: var(--ink-faint);
}

.checklist li::before {
  content: "○";
  position: absolute;
  left: 0;
}

.checklist li.ok {
  color: var(--ink);
}

.checklist li.ok::before {
  content: "●";
  color: var(--ok);
}

/* review */
.review {
  display: grid;
  gap: 1.1rem;
  max-width: 760px;
}

.notice {
  border-left: 3px solid var(--red);
  background: var(--sheet);
  padding: 0.8rem 1rem;
  font-size: var(--step--1);
  max-width: 760px;
}

.notice.calm {
  border-left-color: var(--ink);
}

.agree {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-weight: 400;
  font-size: var(--step--1);
  max-width: 760px;
}

.agree input {
  margin-top: 0.25rem;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--ink);
  flex: none;
}

.saved {
  font-size: 0.8rem;
  color: var(--ok);
  min-height: 1.2em;
}

/* =========================================================
   Studio
   ========================================================= */
.studio {
  padding: 2rem 0 4rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  border: 1px solid var(--ink);
  background: var(--sheet);
  margin-bottom: 1.5rem;
}

.stats div {
  padding: 0.8rem 1rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.stats b {
  display: block;
  font-size: var(--step-2);
  font-stretch: 110%;
  line-height: 1.1;
}

.stats span {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.stats .warn b {
  color: var(--red);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  align-items: center;
  margin-bottom: 0.8rem;
}

table.list {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step--1);
  background: var(--sheet);
  min-width: 860px;
}

.list th,
.list td {
  text-align: left;
  padding: 0.6rem 0.7rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

.list thead th {
  font-weight: 600;
  font-stretch: 85%;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--ink);
}

.list tbody tr {
  cursor: pointer;
}

.list tbody tr:hover,
.list tbody tr[aria-selected="true"] {
  background: #fbf1ec;
}

.pill {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.pill.overdue {
  color: var(--red);
}

.detail {
  margin-top: 2rem;
  border: 1px solid var(--ink);
  background: var(--sheet);
  padding: clamp(1rem, 3vw, 2rem);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
}

@media (max-width: 900px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
}

.detail pre {
  white-space: pre-wrap;
  font-family: var(--font);
  font-size: 0.85rem;
  line-height: 1.5;
  background: var(--paper);
  padding: 1rem;
  max-height: 560px;
  overflow: auto;
  border: 1px solid var(--rule);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.6rem;
}

.gallery a {
  display: block;
  text-decoration: none;
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--grid);
}

.kv {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.3rem 1rem;
  font-size: var(--step--1);
  margin: 0 0 1rem;
}

.kv dt {
  color: var(--ink-soft);
}

.kv dd {
  margin: 0;
}
