/* ============================================================
   Bakkerij FUNK — Studio stylesheet
   Shared by every page in /studio/
   ============================================================ */

: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;

  --surface: #fbfaf7;
  --surface-2: #f1eee7;
  --hair: rgba(17,17,17,.14);
  --hair-soft: rgba(17,17,17,.08);
  --text: #18181b;
  --muted: #6a675f;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 1px 0 rgba(17,17,17,.05);
  --rail-w: 236px;
}

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

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

body{
  margin:0;
  background:#ecebe7;
  color:var(--text);
  font-family:var(--f-body);
  font-size:14px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}

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

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

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

.skip-link{
  position:absolute; left:12px; top:-60px; z-index:120;
  background:var(--ink); color:#fff; padding:10px 16px;
  border-radius:8px; font-weight:600;
  transition:top .2s ease;
}
.skip-link:focus{ top:12px; }

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

/* ------------------------------------------------ buttons */
.btn{
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: rgba(17,17,17,.30);
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:9px 16px;
  border:1px solid var(--btn-bd);
  border-radius:8px;
  background:var(--btn-bg);
  color:var(--btn-fg);
  font-family:var(--f-body);
  font-size:12.5px;
  font-weight:600;
  letter-spacing:.02em;
  cursor:pointer;
  white-space:nowrap;
  transition:background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover{ transform:translateY(-1px); }
.btn:active{ transform:translateY(0); }

.btn--primary{
  --btn-bg: var(--red);
  --btn-fg: #fff;
  --btn-bd: var(--red);
}
.btn--primary:hover,
.btn--primary:focus-visible{ background:#a01111; border-color:#a01111; }

.btn--dark{
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  --btn-bd: var(--ink);
}
.btn--dark:hover,
.btn--dark:focus-visible{ background:#0d4bb5; border-color:#0d4bb5; }

.btn--ghost{
  --btn-bg: transparent;
  --btn-fg: var(--ink);
}
.btn--ghost:hover,
.btn--ghost:focus-visible{ background:var(--ink); color:#fff; border-color:var(--ink); }

.btn--sm{ padding:6px 12px; font-size:11.5px; border-radius:7px; }
.btn--block{ width:100%; }

/* ------------------------------------------------ inputs */
input[type="text"],
input[type="email"],
input[type="search"],
input[type="number"],
select,
textarea{
  width:100%;
  padding:9px 12px;
  font-family:var(--f-body);
  font-size:13px;
  color:var(--text);
  background:#fff;
  border:1px solid rgba(17,17,17,.22);
  border-radius:8px;
  transition:border-color .16s ease, box-shadow .16s ease;
}
input::placeholder, textarea::placeholder{ color:#9b978d; }
input:focus, select:focus, textarea:focus{
  outline:none;
  border-color:var(--blue);
  box-shadow:0 0 0 3px rgba(11,61,145,.13);
}

.range{
  -webkit-appearance:none; appearance:none;
  width:100%; height:6px; padding:0; border:0; border-radius:99px;
  background:linear-gradient(90deg,var(--red) 0%,var(--apricot) 60%,var(--paper-2) 100%);
  box-shadow:none; cursor:pointer;
}
.range::-webkit-slider-thumb{
  -webkit-appearance:none; appearance:none;
  width:16px; height:16px; border-radius:50%;
  background:#fff; border:2px solid var(--ink);
}
.range::-moz-range-thumb{
  width:14px; height:14px; border-radius:50%;
  background:#fff; border:2px solid var(--ink);
}

/* ------------------------------------------------ shell / rail */
.shell{
  display:grid;
  grid-template-columns: var(--rail-w) minmax(0,1fr);
  min-height:100vh;
  background:
    linear-gradient(#efece4,#efece4) 0 0/100% 100% no-repeat,
    #ecebe7;
}

.rail{
  position:sticky;
  top:0;
  align-self:start;
  height:100vh;
  display:flex;
  flex-direction:column;
  background:var(--paper-3);
  border-right:var(--hair) solid;
  border-right-width:1px;
}

.rail__head{
  display:flex; align-items:center; justify-content:space-between; gap:8px;
  padding:20px 18px 14px;
}
.brand{ display:block; line-height:1; }
.brand__mark{
  display:block;
  font-family:var(--f-display);
  font-size:26px;
  letter-spacing:.02em;
  color:var(--ink);
  text-transform:uppercase;
}
.brand__sub{
  display:block;
  margin-top:5px;
  font-family:var(--f-mono);
  font-size:9.5px;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:var(--muted);
}
.rail__close{
  display:none;
  width:34px; height:34px;
  align-items:center; justify-content:center;
  background:transparent;
  border:1px solid var(--hair);
  border-radius:8px;
  color:var(--ink);
  cursor:pointer;
}
.rail__close svg{ width:16px; height:16px; }

.rail__scroll{
  flex:1 1 auto;
  overflow-y:auto;
  padding:6px 12px 16px;
  scrollbar-width:thin;
}

.rail__label{
  margin:18px 6px 8px;
  font-family:var(--f-mono);
  font-size:9.5px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--muted);
}

.nav{ display:flex; flex-direction:column; gap:2px; }
.nav__item{
  display:flex; align-items:center; gap:10px;
  padding:8px 10px;
  border-radius:8px;
  font-size:13px;
  font-weight:500;
  color:#2c2b28;
  transition:background .16s ease, color .16s ease;
}
.nav__item svg{
  width:15px; height:15px; flex:0 0 auto;
  fill:none; stroke:currentColor; stroke-width:1.5;
  stroke-linecap:round; stroke-linejoin:round;
  opacity:.8;
}
.nav__item:hover{ background:rgba(17,17,17,.06); color:var(--ink); }
.nav__item.is-active{
  background:var(--blue);
  color:#fff;
  font-weight:600;
  box-shadow:0 2px 6px rgba(11,61,145,.28);
}
.nav__item.is-active svg{ opacity:1; }

.nav__badge{
  margin-left:auto;
  font-family:var(--f-mono);
  font-style:normal;
  font-size:8.5px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--muted);
  background:rgba(17,17,17,.06);
  border-radius:99px;
  padding:2px 6px;
  white-space:nowrap;
}
.nav__item[aria-disabled="true"]{
  opacity:.55;
  cursor:default;
  pointer-events:none;
}

/* sub group of the rail nav ("Binnenkort") */
.nav--sub{
  margin-top:2px;
  opacity:.86;
}
.nav--sub .nav__item{
  font-size:12.5px;
}

/* "coming soon" marker inside a disabled nav item */
.soon{
  margin-left:auto;
  font-family:var(--f-mono);
  font-size:8.5px;
  font-style:normal;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--muted);
  border:1px solid currentColor;
  border-radius:99px;
  padding:2px 6px;
  white-space:nowrap;
}
.nav__item.is-soon{
  opacity:.55;
  cursor:not-allowed;
}

.rail__foot{
  padding:14px 14px 18px;
  border-top:1px solid var(--hair);
}
.rail__note{
  margin-bottom:10px;
  font-size:11.5px;
  line-height:1.45;
  color:var(--muted);
}
.rail__note strong{
  display:block;
  font-family:var(--f-mono);
  font-size:9.5px;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--ink);
  margin-bottom:3px;
}

.rail-scrim{ display:none; }

/* ------------------------------------------------ main column */
.main-col{
  min-width:0;
  display:flex;
  flex-direction:column;
}

.topbar{
  position:sticky; top:0; z-index:40;
  display:flex; align-items:center; gap:14px;
  padding:12px clamp(16px,2.4vw,30px);
  background:rgba(239,236,228,.92);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--hair-soft);
}
.topbar__burger{
  display:none;
  width:36px; height:36px;
  align-items:center; justify-content:center;
  background:#fff;
  border:1px solid var(--hair);
  border-radius:8px;
  cursor:pointer;
  flex:0 0 auto;
}
.topbar__burger svg{ width:18px; height:18px; }

.topbar__title{
  flex:1 1 auto;
  min-width:0;
  font-size:13.5px;
  color:#3a3833;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.topbar__title strong{
  font-weight:700;
  color:var(--ink);
  letter-spacing:.01em;
}
.topbar__dash{ margin:0 6px; color:var(--muted); }

.topbar__right{
  display:flex; align-items:center; gap:14px;
  flex:0 0 auto;
}
.topbar__link{
  display:inline-flex; align-items:center; gap:6px;
  font-size:12px; font-weight:600;
  color:var(--blue);
  padding:5px 8px;
  border-radius:6px;
  transition:background .16s ease;
}
.topbar__link svg{
  width:13px; height:13px; fill:none; stroke:currentColor; stroke-width:1.6;
  stroke-linecap:round; stroke-linejoin:round;
}
.topbar__link:hover{ background:rgba(11,61,145,.08); }

.topbar__user{
  display:inline-flex; align-items:center; gap:8px;
  font-size:12px; color:#3a3833;
}
.avatar{
  display:inline-flex; align-items:center; justify-content:center;
  width:26px; height:26px; border-radius:50%;
  background:var(--ink); color:var(--paper-3);
  font-family:var(--f-mono); font-size:11px; font-weight:700;
}

main{ padding:clamp(18px,2.4vw,30px); flex:1 1 auto; }

/* ------------------------------------------------ hero / greeting */
.sec--greet{ margin-bottom:clamp(16px,2vw,24px); }

.eyebrow{
  display:flex; align-items:center; gap:8px;
  font-family:var(--f-mono);
  font-size:10px;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:var(--red);
}
.rule-dash{ opacity:.6; }

.display{
  margin:4px 0 0;
  font-family:var(--f-display);
  font-weight:400;
  text-transform:uppercase;
  font-size:clamp(34px,4.6vw,54px);
  line-height:.94;
  letter-spacing:.005em;
  color:var(--ink);
}

.greet__lede{
  margin-top:10px;
  max-width:62ch;
  font-size:13.5px;
  color:#45433d;
}

/* KPI strip */
.kpis{
  margin-top:18px;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1px;
  background:var(--hair);
  border:1px solid var(--hair);
  border-radius:var(--radius);
  overflow:hidden;
}
.kpi{
  background:var(--surface);
  padding:14px 16px;
}
.kpi__value{
  font-family:var(--f-mono);
  font-size:22px;
  font-weight:700;
  letter-spacing:-.01em;
  color:var(--ink);
}
.kpi__label{ margin-top:2px; font-size:12px; font-weight:600; color:#3a3833; }
.kpi__meta{ margin-top:2px; font-size:11px; color:var(--muted); }

/* scrub bar */
.scrub{
  margin-top:16px;
  padding:14px 16px;
  background:var(--surface);
  border:1px solid var(--hair);
  border-radius:var(--radius);
}
.scrub__slider{
  display:grid;
  grid-template-columns:auto minmax(120px,1fr) auto;
  align-items:center;
  gap:14px;
}
.scrub__label{
  font-family:var(--f-mono);
  font-size:10px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:#3a3833;
}
.scrub__out{
  font-family:var(--f-mono);
  font-size:12px;
  font-weight:700;
  color:var(--red);
  min-width:44px;
  text-align:right;
}
.scrub__hint{ margin-top:8px; font-size:11px; color:var(--muted); }

/* ------------------------------------------------ grid columns */
.grid{
  display:grid;
  grid-template-columns:minmax(210px,.86fr) minmax(0,1.55fr) minmax(240px,1.05fr);
  gap:clamp(12px,1.4vw,20px);
  align-items:start;
}
.col{ display:flex; flex-direction:column; gap:clamp(12px,1.4vw,18px); min-width:0; }

/* ------------------------------------------------ cards */
.card{
  background:var(--surface);
  border:1px solid var(--hair);
  border-radius:var(--radius-lg);
  padding:16px;
  box-shadow:var(--shadow);
}
.card--loose{ background:transparent; border:0; padding:0; box-shadow:none; }
.card--loose .card__head{ padding:0 2px 10px; }

.card__head{
  display:flex; align-items:baseline; justify-content:space-between; gap:10px;
  margin-bottom:12px;
}
.card__title{
  font-size:13.5px;
  font-weight:700;
  letter-spacing:.01em;
  color:var(--ink);
}
.card--loose .card__title{ font-size:14px; }
.card__link{
  font-family:var(--f-mono);
  font-size:10px;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--muted);
  border-bottom:1px solid transparent;
  transition:color .16s ease, border-color .16s ease;
}
.card__link:hover{ color:var(--blue); border-color:currentColor; }

/* ------------------------------------------------ inbox */
.inbox{ display:flex; flex-direction:column; }
.inbox__item{
  display:grid;
  grid-template-columns:10px minmax(0,1fr) auto;
  align-items:start;
  gap:10px;
  padding:10px 0;
  border-top:1px solid var(--hair-soft);
}
.inbox__item:first-child{ border-top:0; padding-top:2px; }
.inbox__title{ font-size:12.5px; font-weight:600; color:var(--ink); }
.inbox__meta{ font-size:11px; color:var(--muted); }

.dot{
  width:9px; height:9px; border-radius:50%; margin-top:4px;
  background:var(--paper-2);
  flex:0 0 auto;
}
.dot--blue{ background:var(--blue); }
.dot--red{ background:var(--red); }
.dot--green{ background:var(--green); }
.dot--apricot{ background:var(--apricot); }

.pill{
  font-family:var(--f-mono);
  font-size:9px;
  letter-spacing:.08em;
  text-transform:uppercase;
  padding:3px 7px;
  border-radius:99px;
  background:var(--surface-2);
  color:#4b4941;
  white-space:nowrap;
}
.pill--new{ background:rgba(139,0,0,.1); color:var(--red); }

/* ------------------------------------------------ shortcuts */
.shortcuts{ display:flex; flex-direction:column; gap:8px; }
.shortcut{
  display:block;
  padding:10px 12px;
  border:1px solid var(--hair);
  border-radius:10px;
  background:#fff;
  transition:border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.shortcut:hover{
  border-color:rgba(17,17,17,.35);
  transform:translateY(-1px);
  box-shadow:0 4px 12px rgba(17,17,17,.07);
}
.shortcut__title{ display:block; font-size:12.5px; font-weight:600; color:var(--ink); }
.shortcut__meta{ display:block; font-size:10.5px; color:var(--muted); }

/* ------------------------------------------------ feature card (middle) */
.card--feature{ padding:0; overflow:hidden; }
.feature{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,190px);
  gap:14px;
  padding:16px;
  background:var(--paper-3);
  border-bottom:1px solid var(--hair);
}
.feature__title{
  font-family:var(--f-display);
  font-weight:400;
  text-transform:uppercase;
  font-size:clamp(19px,2vw,25px);
  line-height:1;
  color:var(--ink);
}
.feature__kicker{
  margin-top:6px;
  font-family:var(--f-mono);
  font-size:9.5px;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--red);
}
.feature__text{
  margin:8px 0 12px;
  font-size:12.5px;
  line-height:1.55;
  color:#45433d;
}
.feature__figure img{
  width:100%; height:100%;
  min-height:132px;
  object-fit:cover;
  border-radius:10px;
  filter:grayscale(.15) contrast(1.03);
}

.feature-list{ padding:4px 16px 12px; }
.feature-list__item{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  padding:12px 0;
  border-top:1px solid var(--hair-soft);
}
.feature-list__item:first-child{ border-top:0; }
.feature-list__num{
  font-family:var(--f-mono);
  font-size:10px;
  color:var(--muted);
}
.feature-list__title{ font-size:13px; font-weight:600; color:var(--ink); }
.feature-list__sub{ font-size:11.5px; color:#4b4941; }
.feature-list__meta{ font-size:10.5px; color:var(--muted); }

/* ------------------------------------------------ tiles */
.tiles{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.tile{
  position:relative;
  display:flex;
  flex-direction:column;
  background:var(--surface);
  border:1px solid var(--hair);
  border-radius:var(--radius);
  padding:12px;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tile:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 22px rgba(17,17,17,.09);
  border-color:rgba(17,17,17,.3);
}
.tile__tag{
  align-self:flex-start;
  font-family:var(--f-mono);
  font-size:8.5px;
  letter-spacing:.1em;
  text-transform:uppercase;
  padding:2px 6px;
  border-radius:99px;
  background:var(--surface-2);
  color:#4b4941;
  margin-bottom:6px;
}
.tile__tag--apricot{ background:rgba(238,148,65,.2); color:#8a4a0f; }
.tile__tag--acid{ background:rgba(62,214,96,.22); color:#0a5a1c; }
.tile__title{
  font-family:var(--f-display);
  text-transform:uppercase;
  font-size:14px;
  line-height:1.05;
  color:var(--ink);
}
.tile__meta{
  margin-top:2px;
  font-family:var(--f-mono);
  font-size:9px;
  letter-spacing:.06em;
  color:var(--muted);
}
.tile__text{
  margin-top:6px;
  font-size:11px;
  line-height:1.45;
  color:#4b4941;
}
.tile__img{
  margin-top:10px;
  width:100%;
  height:78px;
  object-fit:cover;
  border-radius:8px;
  filter:grayscale(.2);
  transition:filter .25s ease;
}
.tile:hover .tile__img{ filter:grayscale(0); }

/* ------------------------------------------------ status list */
.status{ display:flex; flex-direction:column; }
.status__item{
  display:grid;
  grid-template-columns:10px minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  padding:9px 0;
  border-top:1px solid var(--hair-soft);
}
.status__item:first-child{ border-top:0; padding-top:0; }
.status__item .dot{ margin-top:0; }
.status__title{ font-size:12.5px; color:#2c2b28; }
.status__val{
  font-family:var(--f-mono);
  font-size:10px;
  letter-spacing:.04em;
  color:var(--muted);
}

/* ------------------------------------------------ agenda */
.agenda{ display:flex; flex-direction:column; }
.agenda__item{
  display:grid;
  grid-template-columns:74px minmax(0,1fr);
  gap:4px 10px;
  padding:10px 0;
  border-top:1px solid var(--hair-soft);
}
.agenda__item:first-child{ border-top:0; padding-top:0; }
.agenda__date{
  grid-row:span 2;
  font-family:var(--f-mono);
  font-size:9.5px;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--red);
  padding-top:2px;
}
.agenda__title{ font-size:12.5px; font-weight:600; color:var(--ink); }
.agenda__meta{ font-size:11px; color:var(--muted); }

/* ------------------------------------------------ cta / form */
.cta__text{ margin:6px 0 12px; font-size:12px; line-height:1.5; color:#45433d; }
.form-inline{
  position:relative;
  display:flex;
  gap:8px;
  align-items:center;
}
.form-inline input[type="email"]{ flex:1 1 auto; min-width:0; }

/* ------------------------------------------------ footer */
.foot{
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  flex-wrap:wrap;
  padding:16px clamp(16px,2.4vw,30px) 26px;
  border-top:1px solid var(--hair-soft);
  font-size:11.5px;
  color:var(--muted);
}
.foot__nav{ display:flex; gap:16px; flex-wrap:wrap; }
.foot__nav a{ transition:color .16s ease; }
.foot__nav a:hover{ color:var(--ink); }
.foot__brand{
  display:flex; flex-direction:column; gap:2px;
  margin:0;
}
.foot__brand strong{
  font-family:var(--f-mono);
  font-size:10px;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--ink);
}
.foot__note{ margin:0; }
.foot__link{
  display:inline-flex; align-items:center; gap:6px;
  font-weight:600;
  color:var(--blue);
  border-bottom:1px solid transparent;
  transition:color .16s ease, border-color .16s ease;
}
.foot__link:hover{ color:var(--ink); border-bottom-color:currentColor; }

/* ------------------------------------------------ reveal motion */
.reveal,
.js-reveal{
  opacity:0;
  transform:translateY(14px);
  transition:opacity .55s cubic-bezier(.22,.7,.25,1), transform .55s cubic-bezier(.22,.7,.25,1);
  will-change:opacity, transform;
}
.reveal.is-in,
.js-reveal.is-in{ opacity:1; transform:none; }

/* ------------------------------------------------ section spacing */
.sec{ margin-bottom:clamp(20px,2.6vw,34px); }
.sec:last-child{ margin-bottom:0; }

/* ------------------------------------------------ responsive */
@media (max-width:1180px){
  .grid{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  }
  .col--right{ grid-column:1 / -1; flex-direction:row; flex-wrap:wrap; }
  .col--right > .card{ flex:1 1 260px; }
}

@media (max-width:1024px){
  :root{ --rail-w:0px; }
  .shell{ grid-template-columns:minmax(0,1fr); }

  .rail{
    position:fixed;
    z-index:90;
    top:0; left:0; bottom:0;
    width:270px;
    height:100dvh;
    transform:translateX(-102%);
    transition:transform .3s cubic-bezier(.22,.7,.25,1);
    box-shadow:0 0 40px rgba(17,17,17,.18);
  }
  body.rail-open .rail{ transform:none; }
  .rail__close{ display:inline-flex; }

  .rail-scrim{
    display:block;
    position:fixed; inset:0; z-index:80;
    background:rgba(17,17,17,.34);
    opacity:0;
    transition:opacity .28s ease;
  }
  .rail-scrim.is-on{ opacity:1; }

  .topbar__burger{ display:inline-flex; }
  .topbar__tag{ display:none; }
}

@media (max-width:820px){
  .grid{ grid-template-columns:minmax(0,1fr); }
  .col--right{ flex-direction:column; }
  .col--right > .card{ flex:1 1 auto; width:100%; }
  .feature{ grid-template-columns:minmax(0,1fr); }
  .feature__figure{ order:-1; }
  .feature__figure img{ min-height:170px; }
}

@media (max-width:640px){
  body{ font-size:13.5px; }
  .kpis{ grid-template-columns:minmax(0,1fr); }
  .tiles{ grid-template-columns:minmax(0,1fr); }
  .tile{ flex-direction:row; gap:10px; align-items:center; }
  .tile__img{ margin-top:0; width:88px; height:64px; flex:0 0 auto; order:2; }
  .tile > p{ margin:0; }
  .tile__tag{ position:absolute; top:8px; left:8px; margin:0; }
  .feature-list__item{ grid-template-columns:auto minmax(0,1fr); }
  .feature-list__item .btn{ grid-column:2; justify-self:start; margin-top:6px; }
  .scrub__slider{ grid-template-columns:auto minmax(0,1fr); row-gap:8px; }
  .scrub__out{ grid-column:1 / -1; text-align:left; }
  .topbar__user span:last-child{ display:none; }
  .form-inline{ flex-direction:column; align-items:stretch; }
  .form-inline .btn{ width:100%; }
  .foot{ flex-direction:column; align-items:flex-start; }
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.001ms !important;
    transition-duration:.001ms !important;
    scroll-behavior:auto !important;
  }
  .js-reveal{ opacity:1; transform:none; }
  .reveal{ opacity:1; transform:none; }
}
/* studio-chrome:canonical */
/* ---------- page-local styling (dashboard) ---------- */

  .dash-hello{
    display:grid;
    grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);
    gap:clamp(18px,3vw,34px);
    align-items:start;
  }
  @media (max-width:860px){ .dash-hello{grid-template-columns:1fr;} }

  .dash-hello__date{
    font-family:var(--f-mono);
    font-size:.72rem;
    letter-spacing:.16em;
    text-transform:uppercase;
    color:rgba(17,17,17,.66);
    margin:0 0 10px;
  }
  .dash-hello__title{
    font-family:var(--f-display);
    font-size:clamp(2.1rem,5.4vw,3.6rem);
    line-height:.94;
    letter-spacing:.005em;
    text-transform:uppercase;
    margin:0 0 14px;
    color:var(--ink);
  }
  .dash-hello__lede{
    font-size:clamp(.98rem,1.5vw,1.06rem);
    line-height:1.62;
    color:rgba(17,17,17,.78);
    max-width:56ch;
    margin:0 0 20px;
  }
  .dash-hello__actions{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    align-items:center;
  }
  .dash-hello__meta{
    font-family:var(--f-mono);
    font-size:.7rem;
    letter-spacing:.1em;
    text-transform:uppercase;
    color:rgba(17,17,17,.55);
  }

  /* taped sticky note */
  .note{
    position:relative;
    background:var(--paper-3);
    border:1px solid rgba(17,17,17,.22);
    box-shadow:5px 7px 0 rgba(17,17,17,.12);
    padding:26px 22px 22px;
    transform:rotate(-1.1deg);
  }
  .note::before{
    content:"";
    position:absolute;
    top:-12px;left:50%;
    width:104px;height:24px;
    transform:translateX(-50%) rotate(2.5deg);
    background:rgba(238,148,65,.55);
    border:1px solid rgba(17,17,17,.16);
  }
  .note__label{
    font-family:var(--f-mono);
    font-size:.66rem;
    letter-spacing:.18em;
    text-transform:uppercase;
    color:rgba(17,17,17,.6);
    margin:0 0 8px;
  }
  .note__title{
    font-family:var(--f-display);
    font-size:1.42rem;
    line-height:1.05;
    text-transform:uppercase;
    margin:0 0 10px;
  }
  .note__text{
    font-size:.94rem;
    line-height:1.6;
    color:rgba(17,17,17,.78);
    margin:0 0 14px;
  }
  .note__link{
    font-family:var(--f-mono);
    font-size:.74rem;
    letter-spacing:.08em;
    text-transform:uppercase;
    color:var(--red);
    text-decoration:none;
    border-bottom:2px solid var(--apricot);
    padding-bottom:2px;
  }
  .note__link:hover{color:var(--ink);border-bottom-color:var(--ink);}

  /* attention rows */
  .attn{
    display:grid;
    gap:10px;
    margin:0;
    padding:0;
    list-style:none;
  }
  .attn__row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    flex-wrap:wrap;
    border:1px solid rgba(17,17,17,.2);
    background:#fff;
    padding:14px 16px;
  }
  .attn__row.is-empty{
    border-style:dashed;
    color:rgba(17,17,17,.65);
  }
  .attn__main{display:flex;align-items:center;gap:12px;min-width:0;}
  .attn__name{
    font-family:var(--f-mono);
    font-size:.78rem;
    letter-spacing:.06em;
    text-transform:uppercase;
  }
  .attn__hint{font-size:.86rem;color:rgba(17,17,17,.68);}
  .attn__go{
    font-family:var(--f-mono);
    font-size:.72rem;
    letter-spacing:.08em;
    text-transform:uppercase;
    color:var(--ink);
    text-decoration:none;
    border-bottom:2px solid var(--red);
    padding-bottom:2px;
    white-space:nowrap;
  }
  .attn__go:hover{color:var(--red);}

  /* stat tiles */
  .stat-row{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:14px;
  }
  @media (max-width:760px){ .stat-row{grid-template-columns:1fr;} }
  .stat{
    border:1px solid rgba(17,17,17,.24);
    background:var(--paper-3);
    padding:18px 16px;
    display:flex;
    flex-direction:column;
    gap:8px;
    min-height:132px;
  }
  .stat__label{
    font-family:var(--f-mono);
    font-size:.68rem;
    letter-spacing:.14em;
    text-transform:uppercase;
    color:rgba(17,17,17,.6);
  }
  .stat__value{
    font-family:var(--f-display);
    font-size:clamp(1.8rem,4vw,2.6rem);
    line-height:1;
    color:var(--ink);
    overflow-wrap:anywhere;
  }
  .stat__value--word{font-size:clamp(1.15rem,2.4vw,1.6rem);}
  .stat__meta{font-size:.84rem;color:rgba(17,17,17,.7);margin-top:auto;}

  /* site table */
  .stable{
    width:100%;
    border-collapse:collapse;
    font-size:.92rem;
  }
  .stable caption{
    text-align:left;
    font-family:var(--f-mono);
    font-size:.7rem;
    letter-spacing:.12em;
    text-transform:uppercase;
    color:rgba(17,17,17,.6);
    padding:0 0 10px;
  }
  .stable th,
  .stable td{
    text-align:left;
    padding:12px 12px 12px 0;
    border-bottom:1px solid rgba(17,17,17,.16);
    vertical-align:middle;
  }
  .stable th{
    font-family:var(--f-mono);
    font-size:.68rem;
    letter-spacing:.12em;
    text-transform:uppercase;
    color:rgba(17,17,17,.58);
    font-weight:400;
  }
  .stable td.stable__num{
    font-family:var(--f-mono);
    font-size:.82rem;
    white-space:nowrap;
  }
  .stable__go{
    font-family:var(--f-mono);
    font-size:.72rem;
    letter-spacing:.08em;
    text-transform:uppercase;
    color:var(--ink);
    text-decoration:none;
    border-bottom:2px solid var(--apricot);
    padding-bottom:2px;
    white-space:nowrap;
  }
  .stable__go:hover{color:var(--red);border-bottom-color:var(--red);}
  .stable__empty td{
    font-size:.9rem;
    color:rgba(17,17,17,.65);
  }
  .stable-scroll{overflow-x:auto;}

  /* recent changes */
  .changes{
    margin:0;
    padding:0;
    list-style:none;
    display:grid;
    gap:0;
  }
  .changes__item{
    display:grid;
    grid-template-columns:92px minmax(0,1fr);
    gap:14px;
    padding:13px 0;
    border-bottom:1px solid rgba(17,17,17,.14);
  }
  .changes__item:last-child{border-bottom:0;}
  .changes__time{
    font-family:var(--f-mono);
    font-size:.7rem;
    letter-spacing:.08em;
    text-transform:uppercase;
    color:rgba(17,17,17,.55);
    padding-top:3px;
  }
  .changes__what{font-size:.94rem;line-height:1.5;}
  .changes__what b{font-weight:600;}
  .changes__none{
    font-size:.92rem;
    color:rgba(17,17,17,.65);
    padding:6px 0;
  }

  /* skeleton */
  .skel{display:grid;gap:10px;}
  .skel__bar{
    height:14px;
    background:linear-gradient(90deg,rgba(17,17,17,.09) 25%,rgba(17,17,17,.16) 37%,rgba(17,17,17,.09) 63%);
    background-size:400% 100%;
    animation:skel 1.35s ease-in-out infinite;
  }
  .skel__bar--lg{height:44px;width:56%;}
  .skel__bar--md{width:72%;}
  .skel__bar--sm{width:40%;}
  @keyframes skel{0%{background-position:100% 0}100%{background-position:0 0}}
  @media (prefers-reduced-motion:reduce){ .skel__bar{animation:none;} }

  .sec__hint{
    font-family:var(--f-mono);
    font-size:.7rem;
    letter-spacing:.1em;
    text-transform:uppercase;
    color:rgba(17,17,17,.55);
    margin:0 0 14px;
  }
  .completeness{
    display:flex;
    align-items:center;
    gap:14px;
    flex-wrap:wrap;
    margin:0 0 16px;
  }
  .completeness__num{
    font-family:var(--f-display);
    font-size:2.2rem;
    line-height:1;
  }
  .completeness__bar{
    flex:1 1 200px;
    height:10px;
    border:1px solid rgba(17,17,17,.3);
    background:#fff;
    position:relative;
    min-width:140px;
  }
  .completeness__fill{
    display:block;
    height:100%;
    background:var(--acid);
    width:0%;
  }
  .completeness__msg{font-size:.86rem;color:rgba(17,17,17,.7);flex:1 1 100%;}
  .welcome-badge{
    display:inline-block;
    font-family:var(--f-mono);
    font-size:.68rem;
    letter-spacing:.12em;
    text-transform:uppercase;
    background:var(--acid);
    color:var(--ink);
    border:1px solid rgba(17,17,17,.35);
    padding:4px 9px;
    margin:0 0 12px;
  }


  /* page-local styling — dashboard-only surfaces.
     Shared chrome (.rail/.nav/.topbar/.foot) is styled by styles.css. */
  body.is-dark{
    background:var(--paper);
    color:var(--ink);
  }
  body.is-dark .card,
  body.is-dark .stat,
  body.is-dark .attn__row,
  body.is-dark .note,
  body.is-dark .shortcut{
    background:rgba(255,255,255,.06);
    color:var(--ink);
  }
  body.is-dark .completeness__bar{background:rgba(255,255,255,.10);}
  body.is-dark .stable th,
  body.is-dark .changes__time,
  body.is-dark .sec__hint,
  body.is-dark .dash-hello__meta{
    color:rgba(255,255,255,.62);
  }

/*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);}
