/* ==========================================================================
   Bakkerij FUNK — Studio (owner workspace) shared stylesheet
   ========================================================================== */

:root {
  --paper: #dedede;
  --paper-2: #c8c8c8;
  --paper-3: #f4efe6;
  --ink: #111111;
  --blue: #0B3D91;
  --red: #8b0000;
  --green: #006400;
  --acid: #3ed660;
  --apricot: #ee9441;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --rule: 1px solid rgba(17, 17, 17, .35);

  --f-display: 'Anton', 'Arial Narrow', Impact, sans-serif;
  --f-body: 'Archivo', 'Inter', system-ui, -apple-system, sans-serif;
  --f-mono: 'Space Mono', 'Courier New', monospace;

  --line: rgba(17, 17, 17, .14);
  --line-strong: rgba(17, 17, 17, .35);
  --muted: rgba(17, 17, 17, .58);

  --rail: 264px;
  --radius: 4px;
  --shadow-sm: 0 1px 0 rgba(17, 17, 17, .07), 0 6px 18px -14px rgba(17, 17, 17, .55);
  --shadow-md: 0 20px 50px -34px rgba(17, 17, 17, .8);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper-3);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--ink);
  color: var(--paper-3);
  padding: 10px 16px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

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

/* -------------------------------------------------------------- shell ----- */
.shell {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  min-height: 100vh;
}

/* --------------------------------------------------------------- rail ----- */
.rail {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 16px 18px;
  background: var(--paper-3);
  border-right: var(--rule);
  overflow-y: auto;
  scrollbar-width: thin;
}

.brand {
  padding: 0 8px 18px;
  border-bottom: var(--rule);
  margin-bottom: 14px;
}
.brand__word {
  font-family: var(--f-body);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1;
}
.brand__sub {
  margin-top: 2px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .62em;
  text-transform: uppercase;
  color: var(--muted);
}
.brand__bakery {
  display: block;
  margin-top: 12px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
}

.nav-group { padding: 10px 0 4px; }
.nav-group + .nav-group { border-top: var(--rule); margin-top: 8px; }

.nav-group__label {
  padding: 0 10px 8px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav__list { display: grid; gap: 2px; }

.nav__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 12px;
  border-radius: 3px;
  font-size: 14px;
  color: var(--ink);
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.nav__link svg { width: 17px; height: 17px; flex: none; stroke-width: 1.7; }
.nav__link:hover,
.nav__link:focus-visible { background: rgba(17, 17, 17, .07); transform: translateX(2px); }

.nav__link.is-active,
.nav__link[aria-current="page"] {
  background: var(--red);
  color: #fff;
}
.nav__link.is-active:hover,
.nav__link[aria-current="page"]:hover { background: #a01111; transform: none; }

.nav__badge {
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 10px;
  padding: 2px 6px;
  border: 1px solid currentColor;
  border-radius: 999px;
  opacity: .8;
}

.rail__foot {
  margin-top: auto;
  padding: 14px 10px 0;
  border-top: var(--rule);
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}

/* ------------------------------------------------------------ main ------- */
.main {
  min-width: 0;
  padding: clamp(20px, 3vw, 34px) clamp(16px, 3vw, 34px) 64px;
  background:
    radial-gradient(1200px 420px at 8% -10%, rgba(255, 255, 255, .75), transparent 60%),
    var(--paper-3);
}

/* rail toggle (mobile) */
.rail-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  background: var(--ink);
  color: var(--paper-3);
  border: 0;
  border-radius: 3px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
}
.rail-toggle svg { width: 16px; height: 16px; }

/* --------------------------------------------------------- page head ----- */
.page-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding-bottom: 16px;
  border-bottom: var(--rule);
}

.page-head__title {
  font-family: var(--f-body);
  font-size: clamp(21px, 2.3vw, 31px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.18;
  max-width: 34ch;
}

.page-head__eyebrow {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.head-tools { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 50%;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}
.icon-btn svg { width: 21px; height: 21px; }
.icon-btn:hover { background: rgba(17, 17, 17, .07); border-color: var(--line); }

.publish-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 0 18px;
}

/* ------------------------------------------------------------ buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: transparent;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn--primary:hover, .btn--primary:focus-visible { background: #a01111; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--ink); color: var(--paper-3); }
.btn--dark { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn--dark:hover, .btn--dark:focus-visible { background: #0d4bb5; }
.btn--red { background: var(--red); border-color: var(--red); color: #fff; }
.btn--red:hover, .btn--red:focus-visible { background: #a01111; }
.btn--sm { padding: 6px 11px; font-size: 10px; }

/* ------------------------------------------------------------ panels ----- */
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 16px;
}

.panel--tint { background: var(--paper-3); }

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.panel__title {
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}

.panel__link {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  border-bottom: 1px solid transparent;
}
.panel__link:hover { border-color: currentColor; }

/* ------------------------------------------------------------ layout ----- */
.grid-stat {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 22px;
}

.stat {
  padding: 20px 22px 18px;
  border-right: 1px solid var(--line);
  position: relative;
}
.stat:last-child { border-right: 0; }

.stat__label {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.stat__glyph { width: 22px; height: 22px; flex: none; }

.stat__value {
  font-family: var(--f-body);
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: .95;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.stat__unit {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
}
.stat__note {
  margin-top: 10px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: var(--muted);
}
.stat__chip {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 8px;
  background: var(--blue);
  color: #fff;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .08em;
  border-radius: 2px;
}
.meter {
  margin-top: 12px;
  height: 5px;
  border-radius: 999px;
  background: rgba(17, 17, 17, .12);
  overflow: hidden;
}
.meter span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #b7d44a, var(--green));
  width: 0;
  border-radius: 999px;
  transition: width 1.1s cubic-bezier(.2, .7, .2, 1);
}
.is-in .meter span { width: var(--val, 74%); }

/* ----------------------------------------------------- bento dashboard --- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.span-full { grid-column: 1 / -1; }

.stack { display: grid; gap: 14px; }

/* --------------------------------------------------- canvas preview ------ */
.canvas {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  background: var(--paper-3);
}
.canvas__side {
  border-right: 1px solid var(--line);
  padding: 12px 10px;
  display: grid;
  gap: 10px;
  align-content: start;
  background: #fbfaf7;
}
.canvas__side .ph {
  height: 7px;
  border-radius: 999px;
  background: rgba(17, 17, 17, .14);
}
.canvas__side .ph.w60 { width: 60%; }
.canvas__side .ph.w80 { width: 80%; }
.canvas__side .ph.w45 { width: 45%; }
.canvas__main { padding: 14px; display: grid; gap: 12px; }
.canvas__hero {
  font-family: var(--f-display);
  font-size: 26px;
  line-height: .92;
  text-transform: uppercase;
  letter-spacing: .01em;
  color: var(--red);
}
.canvas__hero em { font-style: normal; color: var(--ink); display: block; }
.canvas__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.mini {
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  overflow: hidden;
}
.mini img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.mini__body { padding: 7px 8px 9px; }
.mini__t { font-size: 11.5px; font-weight: 600; }
.mini__s { font-family: var(--f-mono); font-size: 9.5px; color: var(--muted); }

.sig {
  font-family: 'Segoe Script', 'Bradley Hand', cursive;
  font-size: 17px;
  color: var(--blue);
  transform: rotate(-4deg);
  transform-origin: left;
}

.stamp {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 2px 7px;
}

/* ------------------------------------------------------- request rows ---- */
.req {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto auto;
  gap: 9px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(17, 17, 17, .16);
  font-size: 12.5px;
}
.req:last-child { border-bottom: 0; }
.req__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
}
.req__dot--blue { background: var(--blue); }
.req__dot--grey { background: var(--paper-2); }
.req__meta { font-family: var(--f-mono); font-size: 10.5px; color: var(--muted); }
.req__tag {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 2px;
}
.req__tag--new { background: var(--acid); color: #082c12; }
.req__tag--go { background: rgba(11, 61, 145, .12); color: var(--blue); }

/* ---------------------------------------------------------- agenda ------- */
.agenda { display: grid; }
.agenda__row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.agenda__row:last-child { border-bottom: 0; }
.agenda__day {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
}
.agenda__what { color: var(--ink); }
.agenda__what span { display: block; font-family: var(--f-mono); font-size: 10px; color: var(--muted); }

/* ---------------------------------------------------------- reviews ------ */
.reviews { display: grid; gap: 12px; }
.review { border-bottom: 1px dashed rgba(17, 17, 17, .16); padding-bottom: 12px; }
.review:last-child { border-bottom: 0; padding-bottom: 0; }
.review__who { font-size: 12.5px; font-weight: 600; }
.review__txt { font-size: 12px; color: rgba(17, 17, 17, .72); margin-top: 3px; }
.stars { display: flex; gap: 3px; margin-top: 6px; }
.stars svg { width: 15px; height: 15px; }
.star--on { fill: var(--apricot); stroke: var(--apricot); }
.star--off { fill: none; stroke: var(--line-strong); }

.rating-big {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.rating-big__num {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
}
.rating-big__meta { font-family: var(--f-mono); font-size: 10px; color: var(--muted); }

/* -------------------------------------------------------- activity ------- */
.activity { display: grid; gap: 10px; }
.activity__item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  font-size: 12.5px;
}
.activity__av {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}
.activity__meta { display: block; font-family: var(--f-mono); font-size: 10px; color: var(--muted); }

/* ---------------------------------------------------------- reel --------- */
.reel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.reel img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid var(--line);
  filter: saturate(.94);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), filter .3s ease;
}
.reel img:hover { transform: scale(1.035); filter: saturate(1.1); }

/* -------------------------------------------------------- coming soon ---- */
.soon {
  display: grid;
  gap: 10px;
  place-items: start;
}
.soon__art {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--green);
}
.soon__art svg { width: 22px; height: 22px; }
.soon p { font-size: 12px; color: rgba(17, 17, 17, .7); }

/* -------------------------------------------------------- mail block ----- */
.mail-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 12px;
}
.field {
  display: grid;
  gap: 6px;
}
.field label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  font-family: var(--f-body);
  font-size: 13.5px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(11, 61, 145, .14);
  outline: none;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.form-grid .span-2 { grid-column: 1 / -1; }

/* ------------------------------------------------------------ overlays --- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(17, 17, 17, .55);
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s ease, visibility .28s ease;
}
.backdrop.is-open { opacity: 1; visibility: visible; }

.searchbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 130;
  background: var(--paper-3);
  border-bottom: var(--rule);
  padding: 22px var(--gutter) 26px;
  transform: translateY(-104%);
  transition: transform .38s cubic-bezier(.2, .8, .2, 1);
}
.searchbar.is-open { transform: none; }
.searchbar__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}
.searchbar input {
  padding: 12px 0;
  font-family: var(--f-body);
  font-size: clamp(18px, 2.4vw, 26px);
  border: 0;
  border-bottom: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
}
.searchbar input:focus { outline: none; border-color: var(--blue); }
.searchbar__hint {
  max-width: var(--wrap);
  margin: 12px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tab {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.tab:hover, .tab.is-active { background: var(--ink); color: var(--paper-3); }

/* ---------------------------------------------------------- reveal ------- */
.rv,
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .62s ease, transform .62s cubic-bezier(.2, .8, .2, 1);
  transition-delay: var(--d, 0ms);
}
.rv.is-in,
.reveal.is-in,
.reveal.is-visible { opacity: 1; transform: none; }

/* the rail toggle must never take the nav away on mobile: the rail is
   off-canvas only until a toggle (or the backdrop) opens it */
@media (max-width: 900px) {
  .rail:target { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .rv, .reveal { opacity: 1; transform: none; }
}

/* filter-button states used in the studio chrome (Foto's toolbar) */
.btn.is-f,
.btn.on { background: var(--ink); border-color: var(--ink); color: var(--paper-3); }
.btn.is-f:hover,
.btn.on:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* ------------------------------------------------------- studio foot ----- */
.foot {
  margin-top: 26px;
  padding-top: 14px;
  border-top: var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.foot__site { color: var(--ink); }
.foot .panel__link { text-transform: uppercase; }

/* legacy alias: some chrome referenced .ph-foot for the studio footer */
.ph-foot { margin-top: 26px; padding-top: 14px; border-top: var(--rule); display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.empty-note { font-size: 13px; color: var(--muted); padding: 10px 0; }
.loadline { font-family: var(--f-mono); font-size: 11px; color: var(--muted); padding: 8px 0; }
.meta-note { font-family: var(--f-mono); font-size: 10.5px; color: var(--muted); }

/* the rail toggle must never take the nav away at desktop widths:
   the rail is permanently visible above 900px (see responsive block) */
@media (min-width: 901px) {
  .rail-toggle { display: none !important; }
  .backdrop { display: none; }
}

/* --------------------------------------------------------- responsive ---- */
@media (max-width: 1180px) {
  .col-3 { grid-column: span 6; }
  .col-4 { grid-column: span 6; }
  .col-5 { grid-column: span 6; }
  .col-7 { grid-column: span 12; }
  .col-8 { grid-column: span 12; }
  .grid-stat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .rail {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(300px, 86vw);
    z-index: 140;
    transform: translateX(-102%);
    transition: transform .34s cubic-bezier(.2, .8, .2, 1);
    box-shadow: var(--shadow-md);
  }
  .rail.is-open { transform: none; }
  .rail-toggle { display: inline-flex; }
  .head-tools .rail-toggle { display: inline-flex; }
  .main { padding-top: 18px; }
  .page-head { grid-template-columns: minmax(0, 1fr); }
  .head-tools { justify-content: flex-start; }
  .col-3, .col-4, .col-5, .col-6, .col-7, .col-8 { grid-column: 1 / -1; }
  .canvas { grid-template-columns: 72px minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .grid-stat { grid-template-columns: minmax(0, 1fr); }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .mail-form { grid-template-columns: minmax(0, 1fr); }
  .reel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .canvas__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .req { grid-template-columns: 12px minmax(0, 1fr) auto; }
  .req__tag { display: none; }
  .brand__word { font-size: 26px; }
}
/* studio-chrome:canonical */
/* ---- dashboard-only (page scope) ---- */
  .dash-welcome {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(18px, 3vw, 34px);
    align-items: center;
    background: var(--paper-3);
    border: var(--rule);
    border-radius: var(--radius);
    padding: clamp(18px, 2.6vw, 30px);
    margin-bottom: 22px;
  }
  .dash-welcome__greet {
    font-family: var(--f-body);
    font-size: clamp(19px, 2.1vw, 27px);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.16;
    max-width: 26ch;
  }
  .dash-welcome__lede {
    margin-top: 10px;
    font-size: 13.5px;
    color: var(--muted);
    max-width: 46ch;
  }
  .dash-welcome__meta {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-family: var(--f-mono);
    font-size: 10.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .dash-welcome__side {
    display: grid;
    justify-items: end;
    gap: 12px;
    text-align: right;
    min-width: 190px;
  }
  .dash-pct {
    font-family: var(--f-display);
    font-size: clamp(62px, 11vw, 132px);
    line-height: .82;
    letter-spacing: -.01em;
    color: var(--ink);
    display: flex;
    align-items: flex-start;
    gap: 2px;
  }
  .dash-pct small {
    font-family: var(--f-mono);
    font-size: 20px;
    letter-spacing: 0;
    margin-top: 8px;
    color: var(--muted);
  }
  .dash-pct__cap {
    font-family: var(--f-mono);
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .dash-pct__bar {
    margin-top: 0;
    width: 100%;
    min-width: 160px;
  }
  .dash-welcome__cta { display: flex; gap: 8px; flex-wrap: wrap; justify-self: end; }

  .need { display: grid; }
  .need__row {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(17, 17, 17, .16);
    font-size: 13px;
  }
  .need__row:last-child { border-bottom: 0; }
  .need__row a { border-bottom: 1px solid transparent; }
  .need__row a:hover { border-color: currentColor; color: var(--blue); }
  .need__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
  .need__dot--blue { background: var(--blue); }
  .need__num {
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--ink);
    background: rgba(17, 17, 17, .07);
    border-radius: 999px;
    padding: 2px 8px;
  }
  .need__go {
    font-family: var(--f-mono);
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--blue);
  }
  .need__empty {
    font-size: 12.5px;
    color: var(--muted);
    padding: 6px 0;
  }

  .sitelist { display: grid; }
  .sitelist__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: baseline;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
  }
  .sitelist__row:last-child { border-bottom: 0; }
  .sitelist__label { font-weight: 600; }
  .sitelist__label span {
    display: block;
    font-weight: 400;
    font-family: var(--f-mono);
    font-size: 10px;
    color: var(--muted);
    margin-top: 2px;
  }
  .sitelist__count {
    font-family: var(--f-mono);
    font-size: 13px;
    letter-spacing: .02em;
  }
  .sitelist__count em { font-style: normal; color: var(--muted); font-size: 10px; }

  .quick { display: grid; gap: 12px; }
  .quick__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
  }
  .quick__row .field { min-width: 0; }
  .quick__flag {
    font-family: var(--f-mono);
    font-size: 9px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--red);
    border: 1px solid currentColor;
    border-radius: 999px;
    padding: 1px 7px;
    margin-left: 6px;
  }
  .quick__img {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
  }
  .quick__img img {
    width: 84px; height: 84px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid var(--line-strong);
    background: var(--paper-2);
  }
  .quick__img .btn { justify-self: start; }

  .toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 160;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    background: var(--ink);
    color: var(--paper-3);
    border-radius: 3px;
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: .08em;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .24s ease, transform .24s ease, visibility .24s ease;
  }
  .toast.is-open { opacity: 1; visibility: visible; transform: none; }
  .toast--bad { background: var(--red); color: #fff; }

  .goto {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }
  .goto__tile {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--line-strong);
    border-radius: 3px;
    background: #fff;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
  }
  .goto__tile:hover { transform: translateY(-2px); border-color: var(--ink); }
  .goto__tile svg { width: 20px; height: 20px; color: var(--red); }
  .goto__tile b { font-size: 13px; font-weight: 700; }
  .goto__tile span { font-family: var(--f-mono); font-size: 10px; color: var(--muted); }
  .goto__tile--soon {
    background: var(--paper-3);
    border-style: dashed;
    opacity: .62;
    cursor: not-allowed;
    pointer-events: none;
  }
  .goto__tile--soon svg { color: var(--muted); }
  .goto__tile--soon b { font-weight: 500; }

  .dash-loading {
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--muted);
    padding: 8px 0;
  }

  @media (max-width: 1180px) {
    .goto { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 900px) {
    .dash-welcome { grid-template-columns: minmax(0, 1fr); }
    .dash-welcome__side { justify-items: start; text-align: left; min-width: 0; }
    .dash-welcome__cta { justify-self: start; }
  }
  @media (max-width: 560px) {
    .goto { grid-template-columns: minmax(0, 1fr); }
    .quick__row { grid-template-columns: minmax(0, 1fr); }
    .need__row { grid-template-columns: 12px minmax(0, 1fr) auto; }
    .need__go { display: none; }
  }

/*studio-kit*/
:root{--st-bg:#faf7f2;--st-surface:#fff;--st-text:#1c1917;--st-muted:#6b7280;--st-border:rgba(0,0,0,.12);--st-accent:#b45309;--st-radius:12px;--st-font:inherit;--st-mono:ui-monospace,SFMono-Regular,Menlo,monospace;}
[data-studio-app],[data-studio-gate]{font-family:var(--st-font);color:var(--st-text);}
/* Every primitive sets its OWN colour explicitly (not inherited), so a page's colour on the region
   container can never bleed in and make the module unreadable (#studio-kit contrast). */
[data-studio],[data-studio] *{color:var(--st-text);}
.st-state{padding:22px;border:1px dashed var(--st-border);border-radius:var(--st-radius);color:var(--st-muted);text-align:center;font-size:14px;}
.st-summary{display:flex;gap:14px;flex-wrap:wrap;}
.st-metric{flex:1;min-width:140px;background:var(--st-surface);border:1px solid var(--st-border);border-radius:var(--st-radius);padding:16px 18px;color:var(--st-text);}
.st-metric__n{font-size:26px;font-weight:700;letter-spacing:-.01em;color:var(--st-text);}
.st-metric__l{margin-top:2px;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--st-muted);}
.st-group{margin-top:16px;}
.st-group__h{display:flex;justify-content:space-between;font-weight:600;font-size:14px;padding:6px 0;border-bottom:1px solid var(--st-border);color:var(--st-text);}
.st-count{color:var(--st-muted);font-family:var(--st-mono);font-size:12px;}
.st-row{display:flex;align-items:center;gap:12px;padding:9px 0;border-bottom:1px solid var(--st-border);color:var(--st-text);}
.st-row__l{flex:0 0 38%;font-size:13px;color:var(--st-muted);}
.st-input{flex:1;font:inherit;font-size:14px;padding:8px 10px;border:1px solid var(--st-border);border-radius:9px;background:var(--st-surface);color:var(--st-text);}
.st-input[data-ph]{border-style:dashed;}
.st-btn{font:inherit;font-weight:600;font-size:14px;padding:10px 18px;border-radius:999px;border:1px solid var(--st-border);background:var(--st-surface);color:var(--st-text);cursor:pointer;}
.st-btn--primary{margin-top:16px;background:var(--st-accent);border-color:var(--st-accent);color:#fff;}
.st-btn:disabled{opacity:.6;cursor:default;}
.st-list{margin-top:6px;color:var(--st-text);}
.st-msg{padding:12px 0;border-bottom:1px solid var(--st-border);color:var(--st-text);}
.st-msg.is-new{border-left:3px solid var(--st-accent);padding-left:12px;}
.st-msg__h{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:4px;color:var(--st-text);}
.st-msg__h strong{color:var(--st-text);}
.st-when{font-size:12px;color:var(--st-muted);}
.st-kv{font-size:13px;margin:2px 0;color:var(--st-text);}
.st-kv span{color:var(--st-muted);}
