:root {
  --bg: #f6f6f4;
  --ink: #1a1a1a;
  --muted: #6d6d68;
  --line: #e4e4df;
  --paper: #ffffff;
  --green: #0d7a42;
  --green-deep: #10281c;
  --amber: #9a5b00;
  --danger: #9b2c2c;
  --serif: "Source Sans 3", "Segoe UI", sans-serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { touch-action: manipulation; }
body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none;
  user-select: none;
}
input, textarea, select { -webkit-user-select: text; user-select: text; }
.wm {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  user-select: none;
  background-repeat: repeat;
  background-size: 210px 140px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='210' height='140'%3E%3Ctext x='12' y='58' fill='%2310281c' fill-opacity='0.16' font-family='sans-serif' font-size='15' font-weight='700' letter-spacing='2.5' transform='rotate(-22 105 70)'%3Ehack lab%3C/text%3E%3Ctext x='12' y='108' fill='%23ffffff' fill-opacity='0.32' font-family='sans-serif' font-size='15' font-weight='700' letter-spacing='2.5' transform='rotate(-22 105 70)'%3Ehack lab%3C/text%3E%3C/svg%3E");
}
h1, h2, p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
::selection { background: #c9ead8; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 30;
  background: var(--paper);
  padding: 0.5rem 0.8rem;
}

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

h1 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.7rem, 4.6vw, 2.35rem);
  letter-spacing: -0.02em;
  line-height: 1.12;
}
.eyebrow {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.lede {
  color: var(--muted);
  margin: 0.55rem 0 1.4rem;
  max-width: 38em;
}
.lede a, .text-link {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.flash { margin: 0 0 1rem; }
.flash.ok { color: var(--green); }
.flash.err { color: var(--danger); }
.meta, .hint { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; font-weight: 600; }

.ico {
  width: 26px;
  height: 26px;
  flex: none;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn-fill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  background: var(--green);
  color: #f4faf6;
  border-radius: 999px;
  font-weight: 600;
}
.btn-fill .ico, .text-link .ico { width: 18px; height: 18px; }
.text-link { display: inline-flex; align-items: center; gap: 0.35rem; }
.btn-fill.wide { width: 100%; }
.linkish {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
}

.switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.7rem;
}
.switch a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 500;
}
.switch a.on {
  background: var(--green);
  border-color: var(--green);
  color: #f4faf6;
  box-shadow: none;
}

.field { display: flex; flex-direction: column; gap: 0.3rem; }
.field span, .form-grid label span {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}
.field input, .field select, .form-grid input, .form-grid select, .search {
  width: 100%;
  font-size: 1.05rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  appearance: none;
}
.search { margin: 0; }
.search-wrap { position: relative; }
.search-wrap .ico {
  position: absolute;
  left: 0.85rem;
  top: 0.95rem;
  width: 20px;
  height: 20px;
  color: var(--muted);
  pointer-events: none;
}
.search-wrap .search { padding-left: 2.7rem; }

.page-login { min-height: 100svh; }
.login-brand {
  background: var(--green-deep);
  color: #f3efe6;
  padding: 1.5rem 1.3rem 1.7rem;
}
.login-brand h1 {
  font-size: clamp(3.4rem, 12vw, 5.6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.95;
}
.login-brand p {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 400;
  font-size: 1.25rem;
  max-width: 16em;
  margin-top: 0.8rem;
  line-height: 1.35;
}
.login-flow {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  max-width: 22rem;
}
.login-flow li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.05rem;
  font-style: normal;
  font-family: var(--sans);
}
.login-flow span {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f3efe6;
  color: var(--green-deep);
  font-weight: 600;
  flex: none;
}
.login-panel { padding: 1.6rem 1.3rem 2.6rem; }
.login-panel h2 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.85rem;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}
.login-panel .field { margin-bottom: 1rem; }
.demo {
  margin-top: 1.8rem;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 36em;
}
.demo strong { color: var(--ink); font-weight: 600; }

@media (min-width: 860px) {
  body.page-login { display: grid; grid-template-columns: 1.15fr 0.85fr; }
  .login-brand {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 3rem;
  }
  .login-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 3.2rem;
  }
}

body.page-admin { background: #fff; }
.shell { min-height: 100svh; }
.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.appbar {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: #fff;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding: calc(0.65rem + env(safe-area-inset-top)) 1rem 0.65rem;
}
.appbar .here {
  font-weight: 600;
  margin-right: auto;
}
.menu-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  font-weight: 600;
  cursor: pointer;
}
.menu-open .when-open { display: none; }
.nav-toggle:checked ~ .appbar .when-open { display: inline; }
.nav-toggle:checked ~ .appbar .when-closed { display: none; }
.sidenav {
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 0.1rem;
  background: var(--bg);
  color: var(--ink);
}
.nav-toggle:checked ~ .sidenav {
  display: flex;
  position: fixed;
  z-index: 7;
  inset: 0;
  overflow: auto;
  background: #fff;
  padding: calc(4.8rem + env(safe-area-inset-top)) 0.85rem 2rem;
}
.sidenav a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.05rem;
  min-height: 46px;
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  background: transparent;
  border: 0;
  color: var(--ink);
}
.sidenav a strong { font-size: 1.02rem; font-weight: 600; }
.sidenav a span { color: var(--muted); font-size: 0.82rem; }
.sidenav a.on { background: #e8f5ee; color: var(--green); }
.sidenav a.on span { color: #3d6b52; }
.nav-label {
  margin: 0.95rem 0.7rem 0.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}
.sidenav .mark {
  border: 0;
  background: transparent;
  min-height: 0;
  padding: 0.15rem 0.15rem 0.35rem;
  display: none;
}
.mark {
  font-family: var(--sans);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.sidenav .who {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0.15rem 0.7rem 0.15rem;
}
.sidenav .exit { margin-top: 0.4rem; }
.main { padding: 1.15rem 1.15rem 3.5rem; }

@media (min-width: 861px) {
  body.page-admin { background: #fff; }
  .shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); }
  .appbar { display: none; }
  .sidenav,
  .nav-toggle:checked ~ .sidenav {
    display: flex;
    position: sticky;
    inset: auto;
    top: 0;
    height: 100svh;
    overflow: auto;
    background: var(--bg);
    color: var(--ink);
    border-right: 1px solid var(--line);
    padding: 1.15rem 0.7rem 1rem;
  }
  .sidenav .mark { display: flex; color: var(--ink); }
  .sidenav .exit { margin-top: auto; }
  .main {
    background: #fff;
    margin: 0;
    border-radius: 0;
    min-height: 100svh;
    max-width: 820px;
    padding: 1.6rem 2rem 3rem;
  }
}

.section-label {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ink);
  margin: 1.5rem 0 0.2rem;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.35rem 0 0.1rem;
}
.section-head .section-label { margin: 0; }
.section-head .count {
  color: var(--muted);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.dash-head {
  display: grid;
  gap: 0.9rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.dash-head .btn-fill { justify-self: start; }
.dash-title { min-width: 0; }
.dash-sum { color: var(--muted); margin: 0.7rem 0 0.5rem; max-width: 36em; }
.dash-head .meter { max-width: 28rem; background: #ecece8; height: 6px; }
.register { margin-top: 1.15rem; }
.lane-empty { color: var(--muted); margin: 0.4rem 0 0.2rem; }
.weekhead {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  max-width: 32rem;
}
.weekhead-mid { min-width: 0; flex: 1; }
.weekhead-kicker {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  margin: 0 0 0.08rem;
  white-space: nowrap;
}
.weekhead-title {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.12;
  white-space: nowrap;
}
.weekhead-back { margin: 0.45rem 0 0; }
.weekbar-btn {
  width: 42px;
  height: 42px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 1.45rem;
  line-height: 1;
}
.weekbar-btn:hover { border-color: var(--green); color: var(--green); }
@media (min-width: 720px) {
  .weekhead-title { font-size: 2.05rem; }
  .dash-head { grid-template-columns: 1fr auto; align-items: end; }
  .dash-head .btn-fill { margin-bottom: 0.15rem; }
}
.scorebox {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.15rem;
}
.score { display: flex; align-items: baseline; gap: 0.4rem; }
.score-n {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 0.9;
}
.score-of { color: var(--muted); font-size: 1.05rem; }
.score-label { margin: 0 0 0.45rem; font-weight: 500; }
.meter {
  height: 8px;
  border-radius: 999px;
  background: #e3eee8;
  overflow: hidden;
}
.meter > span {
  display: block;
  height: 100%;
  background: var(--green);
  border-radius: inherit;
}
.score-split {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0.45rem 0 0;
}
.scorebox .note {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0.4rem 0 0;
}
.score-action .btn-fill { white-space: nowrap; }
.board { list-style: none; margin: 0; padding: 0; }
.board-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 52px;
  padding: 0.4rem 0;
  border-top: 1px solid var(--line);
}
.board li:last-child .board-row { border-bottom: 0; }
.board-name { font-weight: 600; }
.board-row:hover .board-name,
.board-row:hover .go { color: var(--green); }
.pip {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #8aa097;
}
.pip.draft { background: var(--amber); }
.pip.ok { background: var(--green); }
.go {
  color: #8aa097;
  font-size: 1.35rem;
  line-height: 1;
}
.sede-status { margin: 0.7rem 0 0.2rem; }
.badge.wait { color: #3c4c44; background: #e7eeea; border-color: transparent; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
}
.steps li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 48px;
  padding: 0.4rem 0.5rem;
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.15;
}
.steps .n {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 600;
  flex: none;
}
.steps .tick { display: none; }
.steps li.on {
  background: var(--green);
  border-color: var(--green);
  color: #f4faf6;
  font-weight: 600;
}
.steps li.done {
  background: #e5f2ea;
  border-color: transparent;
  color: var(--green);
  font-weight: 600;
}
.steps li.done .numeral { display: none; }
.steps li.done .tick { display: inline-flex; }
.steps .tick .ico { width: 14px; height: 14px; }
.step-hint { color: var(--muted); margin: 0 0 1rem; max-width: 36em; }
.name-ico { display: inline-flex; align-items: center; gap: 0.6rem; min-width: 0; }
.mark-ok { color: var(--green); display: inline-flex; }
.mark-wait { color: var(--muted); display: inline-flex; }
.mark-draft { color: var(--ink); display: inline-flex; }
.done-banner { display: flex; gap: 0.85rem; align-items: flex-start; margin: 0.2rem 0 0.4rem; }
.done-banner .ico { width: 42px; height: 42px; }
.empty-state { color: var(--muted); margin-top: 1.4rem; }
.empty-state .ico { width: 42px; height: 42px; margin-bottom: 0.45rem; }
.rows, .receipt, .summary { list-style: none; margin: 0; padding: 0; }
.rows > li > a,
.rows .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 56px;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}
.rows li:last-child > a,
.rows li:last-child > .row { border-bottom: 1px solid var(--line); }
.rows a:hover span:first-child { color: var(--green); }
.badge {
  flex: none;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--muted);
}
.badge.draft { color: var(--amber); background: #fff1d6; border-color: transparent; }
.badge.ok { color: var(--green); background: #e5f6ec; border-color: transparent; }
.rows .row > a,
.rows .row > span:first-child { min-width: 0; }
.rows .row .meta { display: block; font-size: 0.92rem; }
.row-actions { flex: none; }
.pending-name { font-weight: 600; }

.total-block { margin-top: 1.5rem; }
.total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}
.total-row > div:first-child { min-width: 0; flex: 1; }
.total-row .who {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.92rem;
  font-weight: 400;
}
.total-row .num {
  font-family: var(--sans);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.total-row small { font-size: 0.78rem; color: var(--muted); margin-left: 0.2rem; font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.2rem; margin-bottom: 0.4rem; }
.print-head { display: none; }

.form-grid { display: grid; gap: 0.95rem; margin: 0 0 1.6rem; }
.form-grid button.btn-fill { width: 100%; }
.row-actions { display: flex; align-items: center; gap: 0.8rem; }
.quiet {
  min-height: 44px;
  color: var(--muted);
  padding: 0;
}
.edit-note { margin: -0.6rem 0 1rem; }
.edit-note a { color: var(--green); text-decoration: underline; text-underline-offset: 0.16em; }

@media (min-width: 800px) {
  .form-grid.prod { grid-template-columns: 2fr 1fr 1fr auto; align-items: end; }
  .form-grid.asilo { grid-template-columns: 1.4fr 1fr 1fr auto; align-items: end; }
  .form-grid.user { grid-template-columns: 1fr 1fr; }
  .form-grid button.btn-fill { width: auto; justify-self: start; }
}

.topbar { border-bottom: 1px solid var(--line); background: var(--paper); }
.page-cuoco { background: #fff; }
.page-cuoco .topbar {
  background: #fff;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.page-cuoco .topbar .eyebrow { color: var(--muted); }
.bar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 1.15rem;
  padding-right: 1.15rem;
}
.topbar .bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding-top: calc(0.95rem + env(safe-area-inset-top));
  padding-bottom: 0.95rem;
}
.top-row { align-items: center; }
.top-row .eyebrow { margin: 0; }
.page-head { padding-top: 0.85rem; padding-bottom: 0.15rem; }
.page-head h1 { font-size: clamp(1.55rem, 3.4vw, 2.15rem); }
.status-band { padding: 0.15rem 0 0; }
.status-band.ok .order-now { color: var(--green); }
.status-band.draft .order-now { color: var(--amber); }
.order-now {
  color: var(--muted);
  margin: 0.4rem 0 0;
  max-width: 40em;
  font-size: 1.05rem;
}
.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
  margin: 0 0 0.85rem;
  background: transparent;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}
.seg a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.05rem;
  min-height: 52px;
  padding: 0.45rem 0.85rem 0.5rem;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  color: var(--muted);
}
.seg a + a { border-left: 1px solid var(--line); }
.seg a > span { font-weight: 600; line-height: 1.15; white-space: nowrap; }
.seg a.on { background: transparent; color: var(--ink); border-bottom-color: var(--ink); }
.seg a.on > span { font-weight: 700; }
.seg small { font-size: 0.84rem; color: var(--muted); }
.seg small.ok { color: var(--green); font-weight: 600; }
.seg small.draft { color: var(--amber); font-weight: 600; }
.topbar .linkish {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.35rem 0.95rem;
  font-weight: 600;
}
.page-cuoco .topbar .linkish {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.workspace { padding-top: 0.8rem; padding-bottom: calc(9rem + env(safe-area-inset-bottom)); }

.catalog { background: transparent; }
.tools {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #fff;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}
.role-block:has(option[value="admin"]:checked) .solo-cuoco { display: none; }
.chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 0.1rem;
}
.chips::-webkit-scrollbar { display: none; }
.chips button {
  display: inline-flex;
  align-items: center;
  flex: none;
  min-height: 40px;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 500;
}
.chips button.on {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  box-shadow: none;
}

.cat-title {
  margin: 1.25rem 0 0.35rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ink);
}
.cat-block:first-of-type .cat-title { margin-top: 0.85rem; }
.products { list-style: none; margin: 0.25rem 0 0; padding: 0; }
.products li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 58px;
  padding: 0.35rem 0.45rem;
  border-radius: 12px;
}
.products li.is-on .pname { font-weight: 600; }
.products li.is-on .stepper input { color: var(--green); }
.products li.bump { background: #e5f6ec; }
.plabel { min-width: 0; }
.pname { font-weight: 600; }
.punit, .retired { color: var(--muted); font-size: 0.85rem; }
.retired { display: block; }
.stepper {
  display: flex;
  align-items: center;
  flex: none;
  background: #fff;
  border: 1px solid #d4d4ce;
  border-radius: 999px;
  padding: 2px;
}
.products li.is-on { background: #f3faf6; border-radius: 12px; }
.products li.is-on .stepper { border-color: var(--green); }
.stepper button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 1.3rem;
  line-height: 1;
}
.stepper input {
  width: 3.6rem;
  border: 0;
  background: transparent;
  text-align: center;
  font-size: 1.12rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding: 0;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.empty-filter { color: var(--muted); margin-top: 1rem; }

.inspector { display: none; }
.dock {
  position: fixed;
  z-index: 20;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--paper);
  color: var(--ink);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 28px rgba(26, 25, 22, 0.06);
}
.dock summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
  padding: 0.7rem 1rem 0.15rem;
  cursor: pointer;
}
.dock summary::-webkit-details-marker { display: none; }
.dock .when-open { display: none; }
.dock details[open] .when-open { display: inline; }
.dock details[open] .when-closed { display: none; }
.dock summary .when-closed,
.dock summary .when-open { color: var(--green); font-weight: 600; }
.dock .summary { display: none; max-height: 42vh; overflow: auto; padding: 0 1rem 0.4rem; }
.dock details[open] .summary { display: block; }
.dock-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem calc(0.7rem + env(safe-area-inset-bottom));
}
.dock .primary {
  margin-left: auto;
  background: var(--green);
  color: #f4faf6;
  border-radius: 999px;
  min-height: 48px;
  padding: 0.7rem 1.15rem;
  font-weight: 600;
}
.dock .ghost { color: var(--muted); min-height: 48px; padding: 0.7rem 0.55rem; font-weight: 600; }
.summary li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
}
.summary .hint { border: 0; }
.summary small { color: var(--muted); }

.sheet { max-width: 1080px; margin: 0 auto; padding: 1rem 1.15rem 3rem; }
.page-cuoco .receipt { max-width: 640px; }
.receipt li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}
.receipt .num { font-family: var(--sans); font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; }
.receipt small { color: var(--muted); font-weight: 400; }

@media (min-width: 960px) {
  .seg { max-width: 560px; }
  .tools { position: static; padding-top: 0.2rem; }
  .workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 2.5rem;
    align-items: start;
    padding-top: 1.3rem;
    padding-bottom: 3rem;
  }
  .inspector {
    display: block;
    position: sticky;
    top: 1.2rem;
    background: transparent;
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
    padding: 0.2rem 0 0 1.35rem;
  }
  .inspector h2 {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 1.45rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.2rem;
  }
  .inspector .meta { margin-bottom: 0.6rem; }
  .inspector .primary, .inspector .ghost { width: 100%; margin-top: 0.7rem; }
  .inspector .primary {
    background: var(--green);
    color: #f4faf6;
    border-radius: 999px;
    min-height: 48px;
    font-weight: 600;
  }
  .inspector .ghost { color: var(--muted); min-height: 44px; }
  .inspector .fine { margin-top: 0.8rem; font-size: 0.92rem; }
  .dock { display: none; }
}

@media (hover: none) {
  a:active, button:active { opacity: 0.65; }
}
@media (prefers-reduced-motion: reduce) {
  .products li { transition: none; }
}

@media (hover: hover) {
  .sidenav a:hover:not(.on) { background: rgba(0, 0, 0, 0.04); }
}

@media (prefers-reduced-motion: reduce) {
  .meter > span { transition: none; }
}

@media print {
  body { background: white; font-size: 12pt; }
  .wm {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .noprint, .sidenav, .appbar, .dock, .switch, .linkish, .tools, .inspector button, .inspector .fine, .weekbar-btn, .weekhead-kicker, .weekhead-back, .seg { display: none !important; }
  .shell, .main, .workspace, .inspector { display: block; max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: white; }
  .topbar, .appbar { border: 0; background: white !important; color: black !important; }
  .page-cuoco .topbar .eyebrow, .page-cuoco .topbar .linkish { color: black !important; border-color: transparent !important; }
  .weekhead { display: block; }
  .print-head { display: block; margin-bottom: 0.6rem; }
  .print-head strong { font-family: var(--sans); font-weight: 700; font-size: 1.35rem; }
  .total-row, .receipt li { break-inside: avoid; }
}
