@import "./pixilus.css";

/* cyrillic-ext */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(./fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2JL7W0Q5n-wU.woff2)
    format("woff2");
  unicode-range:
    U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(./fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa0ZL7W0Q5n-wU.woff2)
    format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(./fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2ZL7W0Q5n-wU.woff2)
    format("woff2");
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(./fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1pL7W0Q5n-wU.woff2)
    format("woff2");
  unicode-range:
    U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(./fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2pL7W0Q5n-wU.woff2)
    format("woff2");
  unicode-range:
    U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
    U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
    U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(./fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7W0Q5n-wU.woff2)
    format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(./fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7W0Q5nw.woff2)
    format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(./fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2JL7W0Q5n-wU.woff2)
    format("woff2");
  unicode-range:
    U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(./fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa0ZL7W0Q5n-wU.woff2)
    format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(./fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2ZL7W0Q5n-wU.woff2)
    format("woff2");
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(./fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1pL7W0Q5n-wU.woff2)
    format("woff2");
  unicode-range:
    U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(./fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2pL7W0Q5n-wU.woff2)
    format("woff2");
  unicode-range:
    U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
    U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
    U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(./fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7W0Q5n-wU.woff2)
    format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(./fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7W0Q5nw.woff2)
    format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(./fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2JL7W0Q5n-wU.woff2)
    format("woff2");
  unicode-range:
    U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(./fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa0ZL7W0Q5n-wU.woff2)
    format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(./fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2ZL7W0Q5n-wU.woff2)
    format("woff2");
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(./fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1pL7W0Q5n-wU.woff2)
    format("woff2");
  unicode-range:
    U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(./fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2pL7W0Q5n-wU.woff2)
    format("woff2");
  unicode-range:
    U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
    U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
    U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(./fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7W0Q5n-wU.woff2)
    format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(./fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7W0Q5nw.woff2)
    format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(./fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2JL7W0Q5n-wU.woff2)
    format("woff2");
  unicode-range:
    U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(./fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa0ZL7W0Q5n-wU.woff2)
    format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(./fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2ZL7W0Q5n-wU.woff2)
    format("woff2");
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(./fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1pL7W0Q5n-wU.woff2)
    format("woff2");
  unicode-range:
    U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(./fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2pL7W0Q5n-wU.woff2)
    format("woff2");
  unicode-range:
    U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
    U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
    U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(./fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7W0Q5n-wU.woff2)
    format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(./fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7W0Q5nw.woff2)
    format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
:root {
  --bg: var(--theme-canvas);
  --panel: var(--theme-surface);
  --line: var(--theme-line);
  --text: var(--theme-text);
  --dim: var(--theme-copy);
  --acc: var(--theme-accent);
  --rec: light-dark(#a92c25, #ff8f80);
  --low: #f3e6cf;
  --high: var(--studio-orange);
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font: 13px/1.45 var(--font-studio-sans);
  overflow: hidden;
}
#app {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100%;
}
#stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  padding: 10px 70px 10px max(16px, env(safe-area-inset-left, 0px));
}
#cupWrap {
  position: relative;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
#cupWrap canvas,
#cupWrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
#cupWrap video {
  pointer-events: none;
  object-fit: contain;
  transform-origin: 50% 50%;
  opacity: 0.4;
  display: none;
}
#ov {
  cursor: crosshair;
  touch-action: none;
}
#banner {
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translate(-50%);
  padding: 4px 12px;
  border-radius: 12px;
  background: #000a;
  font-weight: 600;
  pointer-events: none;
  display: none;
}
#banner.rec {
  background: var(--rec);
  color: #fff;
  display: block;
}
#banner.info {
  display: block;
}
#hud {
  position: absolute;
  right: 8px;
  top: 10px;
  bottom: 10px;
  display: flex;
  gap: 8px;
}
.meter {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 22px;
  gap: 4px;
}
.meter.small {
  width: 14px;
}
.meter .lbl,
.meter .val {
  font-size: 10px;
  color: var(--dim);
  writing-mode: horizontal-tb;
  white-space: nowrap;
}
.meter .bar {
  position: relative;
  flex: 1;
  width: 100%;
  background: #0007;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.meter .fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--acc);
}
#hFill {
  background: linear-gradient(to top, var(--low), var(--high));
  opacity: 0.25;
}
.meter .knob {
  position: absolute;
  left: -2px;
  right: -2px;
  height: 4px;
  background: #fff;
  border-radius: 2px;
}
.meter .mark {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  border-top: 1px dashed #fff8;
  z-index: 1;
}
#mRate {
  border-top: 2px solid #fff;
}
.fill.raw {
  background: #8ab;
}
#panel {
  grid-row: 1 / 3;
  grid-column: 2;
  background: var(--panel);
  border-left: 1px solid var(--line);
  overflow-y: auto;
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) 40px 12px;
}
#panel header h1 {
  font-size: 15px;
  margin: 0 0 2px;
  color: var(--acc);
}
#status {
  color: var(--dim);
  font-size: 11px;
  min-height: 1.3em;
}
section {
  border-top: 1px solid var(--line);
  padding: 8px 0;
}
h2 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dim);
  margin: 0 0 6px;
}
.row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0;
}
.row > input[type="range"] {
  flex: 1;
  min-width: 0;
}
.row output {
  width: 58px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--dim);
  font-size: 11px;
}
.row.chk {
  gap: 6px;
}
.num {
  width: 58px;
}
.hint {
  color: var(--dim);
  font-size: 11px;
  margin: 4px 0;
}
.keys div {
  color: var(--dim);
  font-size: 11px;
  margin: 3px 0;
}
details {
  margin: 4px 0;
}
summary {
  cursor: pointer;
  color: var(--dim);
}
input,
select,
button,
.btn {
  font: inherit;
  color: var(--text);
  background: #2c231e;
  border: 1px solid var(--line);
  border-radius: 5px;
}
input[type="range"] {
  accent-color: var(--acc);
  background: none;
  border: 0;
}
input[type="checkbox"] {
  accent-color: var(--acc);
}
input:not([type]),
input[type="number"] {
  padding: 3px 5px;
}
button,
.btn {
  padding: 5px 10px;
  cursor: pointer;
  touch-action: manipulation;
}
button:hover,
.btn:hover {
  border-color: var(--acc);
}
button.on {
  background: var(--acc);
  color: #1a120c;
}
button.rec {
  color: var(--rec);
  font-weight: 600;
}
button.rec.on {
  background: var(--rec);
  color: #fff;
}
button.hold.on {
  background: var(--high);
  color: #fff;
}
.btnrow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 5px 0;
}
.btnrow input:not([type]),
.btnrow select {
  flex: 1;
  min-width: 0;
  padding: 5px;
}
#simSliders h3 {
  font-size: 11px;
  color: var(--acc);
  margin: 8px 0 2px;
  font-weight: 600;
}
#simSliders .row {
  margin: 1px 0;
  font-size: 11px;
}
#simSliders .row span {
  width: 118px;
  flex: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#transport {
  grid-column: 1;
  border-top: 1px solid var(--line);
  background: var(--panel);
  padding: 6px 10px 8px max(16px, env(safe-area-inset-left, 0px));
}
#transport label {
  color: var(--dim);
}
.sep {
  width: 10px;
}
#clock {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  color: var(--acc);
  font-weight: 600;
}
#tl {
  display: block;
  width: 100%;
  height: 96px;
  background: #0005;
  border: 1px solid var(--line);
  border-radius: 5px;
  touch-action: none;
  cursor: ew-resize;
}
@media (max-width: 900px), (orientation: portrait) {
  #app {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto auto;
  }
  #panel {
    grid-row: 3;
    grid-column: 1;
    max-height: 34vh;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  #transport {
    grid-row: 2;
  }
}
.swatches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 10px;
  margin: 4px 0 6px;
}
.swatches label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 12px;
}
.swatches input[type="color"] {
  width: 34px;
  height: 22px;
  padding: 0;
  border: 1px solid var(--line, #555);
  border-radius: 4px;
  background: none;
  cursor: pointer;
}
#panel h1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
button.mini {
  font-size: 11px;
  padding: 3px 8px;
  color: var(--text);
}
body.clean {
  background: var(--cleanBg, var(--bg));
}
body.clean #app {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
}
body.clean #panel,
body.clean #transport,
body.clean #hud,
body.clean #banner {
  display: none !important;
}
body.clean #stage {
  padding: max(4vmin, env(safe-area-inset-top, 0px))
    max(4vmin, env(safe-area-inset-right, 0px))
    max(4vmin, env(safe-area-inset-bottom, 0px))
    max(4vmin, env(safe-area-inset-left, 0px));
  background: var(--cleanBg, var(--bg));
}
#cleanBar {
  position: fixed;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom, 0px));
  transform: translate(-50%);
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 6px 8px;
  border-radius: 14px;
  background: #1b1411e6;
  border: 1px solid var(--line);
  box-shadow: 0 6px 24px #0008;
  transition:
    opacity 0.25s,
    transform 0.25s;
}
#cleanBar[hidden] {
  display: none;
}
#cleanBar.away {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
}
#cleanBar label {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--dim);
  font-size: 12px;
}
#cleanBar input[type="range"] {
  width: 110px;
}
#cleanBar input[type="color"] {
  width: 30px;
  height: 24px;
  padding: 0;
  border-radius: 4px;
}
#cleanBar select {
  padding: 4px;
  max-width: 150px;
}
body.public #cleanBar .studioOnly,
body:not(.public) #cleanBar .publicOnly {
  display: none !important;
}
#cleanBar [hidden] {
  display: none !important;
}
#toast {
  position: fixed;
  left: 50%;
  top: max(14px, env(safe-area-inset-top, 0px));
  transform: translate(-50%, -8px);
  z-index: 12;
  max-width: calc(100vw - 32px);
  padding: 8px 14px;
  border-radius: 12px;
  background: #1b1411ee;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s,
    transform 0.25s;
}
#toast.on {
  opacity: 1;
  transform: translate(-50%);
}
#help {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: #0009;
}
#help[hidden] {
  display: none;
}
#help .card {
  max-width: 440px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 20px 22px;
  border-radius: 16px;
  background: #1b1411;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 10px 40px #000a;
}
#help h2 {
  margin: 0 0 10px;
  font-size: 20px;
}
#help p {
  margin: 0 0 10px;
}
#help .dim {
  color: var(--dim);
  font-size: 12px;
}
#help button.primary {
  margin-top: 6px;
  width: 100%;
  padding: 10px;
  font-size: 15px;
  font-weight: 600;
  background: var(--accent, #c99460);
  color: #1b1411;
  border: 0;
  border-radius: 10px;
}
@font-face {
  font-family: PourLatte Wordmark;
  font-weight: 600;
  font-display: block;
  src: url(data:font/woff2;base64,d09GMgABAAAAAAa8ABAAAAAADDQAAAZfAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGjAbgmYcagZgP1NUQVRAAGwRCAqJZIdtCxgAATYCJAMsBCAFhEIHIAwHGw8KURTzgUwjZeH8/eCBfst8A6wE4sKpCskSMW7trnW29SX9OjP/q7nP5Xd9WTIZLMbdTzjR/Lq6/3+/2dBQPKlEQoSaPhe9XB7n/PhgZp60FEkssiTi0ZqXthIXatjLnIMKE/MsR2RU7PGZ+CAAU55q8yNIVQtSZFqpqESJs4LgKaXsvEGnO8PvMHb81LkUN1qxZtLRAD4ikvQG0WBHmglC7P+C9Qor8UOtQn/0mAY/mO1IIRuo8H/k31Co4nu8ENRNhKFeIZ98Pf396Kio8p9L3Cf/RwwCHdKqDG34MWIE8DOeJ3/HJeRPN0X5LSzrMYKILOjD+gBBfPYUB9BsRh+BkBjsM5/vIDCpRNoJZd+EgUqVH3eSH+OTXwvsGMh41PZta+3KCKbMgblzILWhsa7GUgqmMbAgC6xIS0MKcLYNoCklykLLRCUZCJCaAjnEcnqLrj5bXYLOyPTkwwOi0ZDNLUzi6vMyt1WqfsG/IG9Vj/hVuZanmOY7IOUuZG3L1tTUxkyrWxOK1YpbLPORRkWkE7I7i/DZEsk1pKqSehF8B8hmk5krjjOZykwsbBwixCUY41QWO1d+Lc/LM3KP3Ck3yHVyrWyjxu0FQkoyUGlgPmFmZ8VxED8LHU51pkxIkAB/D00rLDbaZLZPzcnsUprdc8EMX5pWmeZLnZc8skP4EjuPGt7h7Shp3v7DuIf26Zfex/Bee+013FdffVXXcbcdWmJ4V0+KxIkrum4lr4iSdZee1JOvv/66SLzxxhuG99TlvPwtVzVVudsOzb9zSPLSMdzjl634eQzvtZdew31R1zdff8rwLh48eLBg4+Gi9Ztxn311seFtFIkjFxRmWi+OGnHsfO+ZmyJx4mk9eekU7u2nDE2pDjxlM7kbjx69aHj79+/fjHtLT27YsEFP7ju0CcsHW8nXb7wu1MRWZ9u6m9fvN7zzDleeW2ws2PTX5+sHTojEyXm8afFuwPiw5/ETcG8r/cOENQsWmIRZ6/bts7PMZMo1Qa3IgyYGTibujWd4DkdwFJNh87nJrZhrwqpV7gl7+LM/gO92sNvoXNXt1ckIJ/zqSQ3W/DcmvG7OPoZDt1NVpdDpEOnvxNc9qU57/MbLKbWkckXSGhYpnNawXKHacsqwkfE/W2Kb4fyK81q8/9r4MHLMgcl0Wv14naSMGolFy0D9HNlQr1ip6okZmCt10mBHUgK8bsnq05avbsyKbpgclxYdiEoXN0uxTR+IGirTKr1oBblhRsWSPfuWqFKgFnSIllTylkr+ErHQuJhrXj1bt2cjZnQo6RZt9bj1iUuCH4LhBlVE5e9aIgYzG0HFkqlNCuRJbFS2bKOk3OV6lSrdu1zhtCYVSjbQM+eIgoLqUbcqfzymAOFJTye+akkbs+6v0HjRz7WbWu9sjXtWnBvyOphcTwrdHr0rGFjb7FzgEW3xkyQ7c5bj/vFlsuewrr8Afjdnk4Ol5lMfL6Rq0BR/fewy3kL5pqhXFdkIc/9jzRJhB/nvyKhmFCym1su9m3V/jfi6BdslVRgdl8a0l/aw7q8QX7egzWiznxB7eN1wXjByO7cT3Vm8VnJKzSLLQlLPpMQZ8vNWrOsvgN/NWTPfNsYt87RkQ18BvO7OWpQwU74pQlc7K25ewPfKGxKFmAZNMVy8TnJqzSLLbNOveUMePvpwS36oQ1ZBQZdWbZ12UOChIG89uteVm4NWZAz9LaiqX2LZq9PefXO16fvjw5Nli9Q1R30bIg1XWCFS5eWttciW/ydoTmXyloZSQW+lHwOUeXRX+lCgFFGg9CBPHKST2Eqm0pO2yg0MfrKg3uBeAk3WGHoiVV4mlQ0bUUsh/SGhuQQmn7oU0nndpdKfXTO12y4fxTzi8mNS7UynL72Tgoe1R5dAp9TlI5NUTMcsTK9aL9uERSNzsGmijtE4NBJiAdaGiFEbow1YAzC4TIwYqxhMD3oQpYoIdYSxPnYHAbKNdNd4eA09mMF4pjKeCDYhWr0Bi24s9fOxiaj91qEZk950pyc96bXxH0KUKCHsSemSz86vhjiNWEQeDG62H4PDKu70IeIfsAOfb39M5lI7t6lhu5lEcKjHpurh7CjiwoDXzVFMOorEopStoe4mj1PZ374KhyZ6UItFtc/rj1GHRQ/P+AyaiTo1n6HOWnIbvRm3vSTkw6e0JwAAAAA=)
    format("woff2");
}
#cupHandle,
#pub[hidden] {
  display: none;
}
body.public {
  --p-bg: var(--theme-canvas);
  --p-surface: var(--theme-surface);
  --p-line: var(--theme-control);
  --p-divider: var(--theme-line);
  --p-text: var(--theme-text);
  --p-text2: var(--theme-copy);
  --p-dim: var(--theme-copy);
  --p-accent: var(--theme-accent);
  --p-on-accent: light-dark(#fff, var(--studio-ink));
  --p-high: var(--studio-orange);
  --p-high-text: light-dark(#a3380f, #ff9d74);
  --p-on-high: var(--studio-ink);
  --p-focus: var(--theme-accent);
  --p-raised: none;
  --p-pressed: none;
  --p-primary: none;
  --p-sheet: 0 24px 70px #0b0d1433;
  --p-cup: 0 2px 6px #0b0d141a, 0 24px 52px light-dark(#0b0d142e, #0008);
  --p-scrim: #0b0d147a;
  font: 15px/1.45 var(--font-studio-sans);
}

body.public,
body.public.clean,
body.public.clean #stage {
  background: var(--p-bg);
  color: var(--p-text);
}
body.public #cleanBar {
  display: none !important;
}
body.public.clean #stage {
  padding: calc(76px + env(safe-area-inset-top, 0px))
    max(16px, env(safe-area-inset-right, 0px))
    calc(124px + env(safe-area-inset-bottom, 0px))
    max(16px, env(safe-area-inset-left, 0px));
}
body.public #cupWrap:before {
  content: "";
  position: absolute;
  inset: -2.2%;
  border-radius: 50%;
  box-shadow: var(--p-cup);
  pointer-events: none;
  background: radial-gradient(closest-side, #f2f0e8 95%, #f8f7f3, #dcd7cd);
  background: radial-gradient(
    closest-side,
    var(--cup-out, #f2f0e8) 95%,
    color-mix(in oklab, var(--cup-out, #f2f0e8), white 16%) 97.5%,
    color-mix(in oklab, var(--cup-out, #f2f0e8), black 12%) 100%
  );
}
.pRow.pCol {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}
.pAimRow {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pAimRow output {
  width: 72px;
  text-align: right;
  font-size: 14px;
  font-weight: 600;
  color: var(--p-text);
}
#pub input.pRange {
  flex: 1;
  min-width: 0;
  height: 32px;
  margin: 0;
  accent-color: var(--p-accent);
  direction: rtl;
}
body.public #cupHandle {
  display: block;
  position: absolute;
  inset: 0;
  pointer-events: none;
}
body.public #cupWrap.handleLeft #cupHandle {
  transform: rotate(90deg);
}
body.public #cupWrap {
  isolation: isolate;
}
body.public #cupHandle {
  z-index: -1;
}
#cupHandle i {
  position: absolute;
  left: 43.5%;
  width: 13%;
  top: 95%;
  height: 22%;
  border-radius: 0 0 46% 46%/0 0 28% 28%;
  background: linear-gradient(
    90deg,
    #d8d3c9,
    #f3f1ea 30%,
    #fbfaf6 50%,
    #eeebe3,
    #d3cec4
  );
  background: linear-gradient(
    90deg,
    color-mix(in oklab, var(--cup-out, #f2f0e8), black 14%) 0%,
    var(--cup-out, #f2f0e8) 30%,
    color-mix(in oklab, var(--cup-out, #f2f0e8), white 18%) 50%,
    color-mix(in oklab, var(--cup-out, #f2f0e8), black 3%) 75%,
    color-mix(in oklab, var(--cup-out, #f2f0e8), black 16%) 100%
  );
  box-shadow:
    0 8px 14px #1c283329,
    inset 0 -2px #b4aca073;
}
#pub button {
  font: inherit;
  color: var(--p-text);
  background: var(--p-surface);
  border: 0;
  box-shadow: var(--p-raised);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.08s,
    box-shadow 0.08s,
    background 0.15s,
    color 0.15s;
}
#pub button:active {
  transform: translateY(1px);
  box-shadow: var(--p-pressed);
}
#pub button:focus-visible,
#pub select:focus-visible,
#pub input:focus-visible {
  outline: 2px solid var(--p-focus);
  outline-offset: 3px;
}
#pTop {
  position: fixed;
  z-index: 10;
  top: env(safe-area-inset-top, 0px);
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px max(16px, env(safe-area-inset-right, 0px)) 0
    max(16px, env(safe-area-inset-left, 0px));
  pointer-events: none;
}
#pTop > * {
  pointer-events: auto;
}
.pWord {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  font:
    600 22px/1 PourLatte Wordmark,
    Inter,
    system-ui,
    sans-serif;
  letter-spacing: 0;
  color: var(--p-accent);
}
.pTopBtns {
  display: flex;
  gap: 8px;
}
#pub .pRound {
  width: 44px;
  height: 44px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
#pub .pRound[hidden] {
  display: none;
}
#pub #pSupport {
  color: var(--p-accent);
  font-weight: 600;
  font-size: 14px;
}
#pub #pSupport span {
  display: none;
}
@media (min-width: 520px) {
  #pub #pSupport {
    width: auto;
    gap: 6px;
    padding: 0 16px 0 13px;
  }
  #pub #pSupport span {
    display: inline;
  }
}
#pub #pGetApp {
  display: none;
  font-weight: 600;
  font-size: 14px;
}
#pub #pGetApp span {
  display: none;
}
@media (min-width: 520px) {
  #pub #pGetApp:not([hidden]) {
    display: flex;
    width: auto;
    gap: 6px;
    padding: 0 16px 0 13px;
  }
  #pub #pGetApp span {
    display: inline;
  }
}
@media (max-width: 519.98px) {
  body.android #pub #pGetApp:not([hidden]) {
    display: flex;
    color: var(--p-accent);
  }
  body.android #pub #pSupport {
    display: none;
  }
}
#pBar {
  position: fixed;
  z-index: 10;
  right: max(12px, env(safe-area-inset-right, 0px));
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  display: flex;
  gap: 4px;
  transition:
    opacity 0.25s,
    transform 0.25s;
}
body.jugLeft #pBar {
  right: auto;
  left: max(12px, env(safe-area-inset-left, 0px));
}
#pub .pAct {
  width: 52px;
  height: 52px;
  border-radius: 26px;
  background: transparent;
  box-shadow: none;
  padding: 0;
  font-size: 0;
  color: var(--p-text2);
  display: flex;
  align-items: center;
  justify-content: center;
}
#pub .pAct svg {
  width: 26px;
  height: 26px;
}
#pub .pAct:active {
  box-shadow: none;
  background: var(--p-divider);
}
#pub .pAct.primary {
  color: var(--p-accent);
}
#pub .pAct.primary svg {
  stroke-width: 2.4;
}
#pub .pAct.primary .iPlay {
  fill: currentColor;
}
#pub .pAct:disabled {
  opacity: 0.45;
  cursor: default;
}
#pReplay .iPause {
  display: none;
}
#pReplay.playing .iPause {
  display: inline;
}
#pReplay.playing .iPlay {
  display: none;
}
body.pouring #pBar {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}
#pTop,
#pCtl,
#pGauge {
  transition: opacity 0.25s;
}
body.uiHidden #pTop,
body.uiHidden #pBar,
body.uiHidden #pCtl,
body.uiHidden #pGauge,
body.uiHidden #pFlowG,
body.uiHidden #pHint {
  opacity: 0 !important;
  pointer-events: none !important;
}
#pCtl {
  position: fixed;
  z-index: 10;
  left: max(16px, env(safe-area-inset-left, 0px));
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  width: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
body.jugLeft #pCtl {
  left: auto;
  right: max(16px, env(safe-area-inset-right, 0px));
}
#pub #pSpread,
#pAimDial {
  width: 60px;
  height: 60px;
  border-radius: 30px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  color: var(--p-accent);
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: none;
}
#pSpread small,
#pAimDial small {
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1;
  color: var(--p-text2);
  white-space: nowrap;
}
#pAimDial {
  position: relative;
  background: var(--p-surface);
  box-shadow: var(--p-raised);
  cursor: grab;
  -webkit-tap-highlight-color: transparent;
}
#pAimDial svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#pAimDial small {
  position: absolute;
  bottom: 6px;
}
#pAimDial.turned svg .dArr,
#pAimDial.pen svg .dArr {
  color: var(--p-high-text);
}
#pAimDial.muted svg {
  opacity: 0.4;
}
#pAimDial:active {
  cursor: grabbing;
}
#pAimDial:focus-visible {
  outline: 2px solid var(--p-focus);
  outline-offset: 3px;
}
#pub #pSpread.changed {
  box-shadow:
    var(--p-raised),
    inset 0 0 0 2px var(--p-accent);
}
#pub #pHigh {
  width: 84px;
  height: 84px;
  border-radius: 42px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.15;
  box-shadow:
    var(--p-raised),
    inset 0 0 0 2px var(--p-high);
  color: var(--p-high-text);
  font-size: 15px;
  font-weight: 700;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: none;
}
#pHigh small {
  font-size: 11px;
  font-weight: 500;
}
#pub #pHigh.on {
  background: var(--p-high-on, var(--p-high));
  color: var(--p-on-high);
  box-shadow: var(--p-pressed);
  transform: translateY(1px);
}
#pub #pHigh[hidden] {
  display: none;
}
#pGauge {
  position: fixed;
  z-index: 5;
  width: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  pointer-events: none;
  font-size: 11px;
  font-weight: 600;
  color: var(--p-dim);
  transition: opacity 0.3s;
}
#pGauge[hidden] {
  display: none;
}
#pGauge .gHi {
  color: var(--p-high-text);
}
#pGauge .gLo {
  color: var(--p-accent);
}
#pGauge .track {
  position: relative;
  flex: 1;
  width: 10px;
  border-radius: 5px;
  background: var(--p-divider);
  box-shadow: inset 0 1px 2px #0000001a;
}
#pGauge .zHi,
#pGauge .zLo {
  position: absolute;
  left: 0;
  right: 0;
}
#pGauge .zHi {
  top: 0;
  border-radius: 5px 5px 0 0;
  background: var(--p-high);
  opacity: 0.45;
}
#pGauge .zLo {
  bottom: 0;
  border-radius: 0 0 5px 5px;
  background: var(--p-accent);
  opacity: 0.35;
}
#pGauge .knob {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 26px;
  height: 26px;
  margin: 0 0 -13px -13px;
}
#pGauge .knob svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 1px 2px rgba(28, 40, 51, 0.25));
  transition: transform 0.15s;
}
#pGauge.spoutRight .knob svg {
  transform: scaleX(-1);
}
#pGauge .jBody {
  fill: var(--p-surface);
  stroke: var(--p-accent);
  stroke-width: 1.8;
  stroke-linejoin: round;
  transition: fill 0.15s;
}
#pGauge .jHandle {
  fill: none;
  stroke: var(--p-accent);
  stroke-width: 1.8;
  stroke-linecap: round;
}
#pGauge .knob.flow .jBody {
  fill: var(--p-accent);
}
#pFlowG {
  position: fixed;
  z-index: 6;
  width: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  font-size: 11px;
  font-weight: 600;
  color: var(--p-dim);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: ns-resize;
  transition: opacity 0.3s;
}
#pFlowG[hidden] {
  display: none;
}
#pFlowG .gT {
  color: var(--p-accent);
}
#pFlowG .gV {
  font-variant-numeric: tabular-nums;
  color: var(--p-text2);
}
#pFlowG .track {
  position: relative;
  flex: 1;
  width: 10px;
  border-radius: 5px;
  background: var(--p-divider);
  box-shadow: inset 0 1px 2px #0000001a;
}
#pFlowG .live {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0;
  border-radius: 5px;
  background: var(--p-accent);
  opacity: 0.55;
}
#pFlowG .handle {
  position: absolute;
  left: 50%;
  bottom: 90%;
  width: 22px;
  height: 22px;
  margin: 0 0 -11px -11px;
  border-radius: 11px;
  background: var(--p-surface);
  box-shadow:
    var(--p-raised),
    inset 0 0 0 2px var(--p-accent);
}
#pFlowG:focus-visible {
  outline: 2px solid var(--p-focus);
  outline-offset: 4px;
  border-radius: 8px;
}
#pGauge .knob.flow svg {
  transform: rotate(-22deg);
}
#pGauge.spoutRight .knob.flow svg {
  transform: scaleX(-1) rotate(-22deg);
}
#pScrim {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: var(--p-scrim);
}
#pScrim[hidden],
#pSheet[hidden] {
  display: none;
}
#pSheet {
  position: fixed;
  z-index: 31;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 86vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-sizing: border-box;
  background: var(--p-surface);
  color: var(--p-text);
  border-radius: 22px 22px 0 0;
  box-shadow: var(--p-sheet);
  padding: 10px max(20px, env(safe-area-inset-right, 0px))
    calc(24px + env(safe-area-inset-bottom, 0px))
    max(20px, env(safe-area-inset-left, 0px));
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pGrab {
  align-self: center;
  width: 40px;
  height: 5px;
  border-radius: 3px;
  background: var(--p-line);
  flex: none;
}
.pHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#pSheet h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--p-text);
  text-transform: none;
  letter-spacing: 0;
}
#pub .pDone {
  height: 44px;
  padding: 0 18px;
  border-radius: 22px;
  font-size: 14px;
  font-weight: 600;
}
.pGroup {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pGroup + .pGroup {
  border-top: 1px solid var(--p-divider);
  padding-top: 14px;
}
.pGroup h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--p-dim);
}
.pRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  font-size: 15px;
}
.pRow[hidden] {
  display: none;
}
.pRow small {
  display: block;
  font-size: 12px;
  color: var(--p-dim);
  margin-top: 1px;
}
.pSeg {
  display: flex;
  flex: none;
  padding: 3px;
  border-radius: 12px;
  background: var(--p-divider);
}
#pub .pSeg button {
  height: 38px;
  padding: 0 12px;
  border-radius: 9px;
  background: transparent;
  box-shadow: none;
  color: var(--p-dim);
  font-size: 13px;
  font-weight: 500;
}
#pub .pSeg button[aria-pressed="true"] {
  background: var(--p-surface);
  color: var(--p-text);
  box-shadow: var(--p-raised);
  font-weight: 600;
}
.pStep {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
#pub .pStep button {
  width: 44px;
  height: 44px;
  border-radius: 22px;
  padding: 0;
  font-size: 20px;
  font-weight: 600;
}
.pStep output {
  width: 48px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--p-text);
}
.pSw {
  display: flex;
  gap: 12px;
  flex: none;
}
#pub .pSw button {
  width: 40px;
  height: 40px;
  border-radius: 20px;
  padding: 0;
}
#pub .pSw button[aria-pressed="true"] {
  box-shadow:
    0 0 0 3px var(--p-surface),
    0 0 0 5px var(--p-accent);
}
#pub .pPill {
  height: 40px;
  padding: 0 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  flex: none;
}
#pub select {
  height: 40px;
  max-width: 150px;
  padding: 0 10px;
  border-radius: 10px;
  border: 0;
  background: var(--p-surface);
  color: var(--p-text);
  box-shadow: var(--p-raised);
  font:
    500 14px Inter,
    system-ui,
    sans-serif;
  flex: none;
}
#pub input.pSwitch {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  position: relative;
  width: 50px;
  height: 30px;
  margin: 0;
  border: 0;
  border-radius: 15px;
  background: var(--p-line);
  cursor: pointer;
  transition: background 0.2s;
}
#pub input.pSwitch:after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 3px #00000040;
  transition: transform 0.2s;
}
#pub input.pSwitch:checked {
  background: var(--p-accent);
}
#pub input.pSwitch:checked:after {
  transform: translate(20px);
}
body.public #toast {
  top: calc(72px + env(safe-area-inset-top, 0px));
  background: var(--p-surface);
  color: var(--p-text);
  border: 0;
  box-shadow: var(--p-raised);
  font-size: 14px;
}
body.public #help {
  background: var(--p-scrim);
}
body.public #help .card {
  background: var(--p-surface);
  color: var(--p-text);
  border: 0;
  box-shadow: 0 16px 48px #1c28332e;
  border-radius: 20px;
}
body.public #help h2 {
  color: var(--p-text);
  text-transform: none;
  letter-spacing: 0;
}
body.public #help .dim {
  color: var(--p-dim);
}
body.public #help button.primary {
  background: var(--p-accent);
  color: var(--p-on-accent);
  border-radius: 14px;
  box-shadow: var(--p-primary);
  height: 48px;
}
@media (orientation: landscape) and (min-width: 560px) {
  body.public.clean #stage {
    padding: calc(72px + env(safe-area-inset-top, 0px))
      max(24px, env(safe-area-inset-right, 0px))
      calc(20px + env(safe-area-inset-bottom, 0px)) 124px;
  }
  body.public.jugLeft.clean #stage {
    padding-left: max(24px, env(safe-area-inset-left, 0px));
    padding-right: 124px;
  }
  #pBar {
    flex-direction: column;
    left: max(16px, env(safe-area-inset-left, 0px));
    right: auto;
    top: calc(76px + env(safe-area-inset-top, 0px));
    bottom: auto;
  }
  body.jugLeft #pBar {
    left: auto;
    right: max(16px, env(safe-area-inset-right, 0px));
  }
  #pub .pAct {
    width: 56px;
    height: 56px;
    border-radius: 28px;
  }
  body.pouring #pBar {
    transform: translate(-10px);
  }
  body.jugLeft.pouring #pBar {
    transform: translate(10px);
  }
  #pCtl {
    width: 76px;
    left: max(20px, env(safe-area-inset-left, 0px));
    bottom: max(
      calc(20px + env(safe-area-inset-bottom, 0px)),
      calc(40vh - 160px)
    );
  }
  body.jugLeft #pCtl {
    left: auto;
    right: max(20px, env(safe-area-inset-right, 0px));
  }
  #pub #pHigh {
    width: 76px;
    height: 76px;
  }
}
@media (min-width: 720px) and (min-height: 480px) {
  #pSheet {
    left: auto;
    top: 12px;
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: 12px;
    width: 380px;
    max-height: none;
    border-radius: 22px;
    padding-bottom: 24px;
  }
  .pGrab {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  #pBar,
  #pub button,
  #pGauge,
  #pub input.pSwitch,
  #pub input.pSwitch:after {
    transition: none;
  }
}
#pCalBack {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--p-scrim);
}
#pCalBack[hidden],
#pCal[hidden] {
  display: none;
}
#pCal {
  position: fixed;
  z-index: 41;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(400px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  box-sizing: border-box;
  padding: 24px 22px 20px;
  border-radius: 20px;
  background: var(--p-surface);
  color: var(--p-text);
  box-shadow: 0 16px 48px #1c28332e;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.calHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#pCalStep {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--p-dim);
}
.calDots {
  display: flex;
  gap: 6px;
}
.calDots i {
  width: 18px;
  height: 6px;
  border-radius: 3px;
  background: var(--p-divider);
}
.calDots i.on {
  background: var(--p-accent);
}
#pCal h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--p-text);
  text-transform: none;
  letter-spacing: 0;
}
#pCalTxt {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--p-text2);
}
.calBody {
  display: flex;
  gap: 20px;
  align-items: stretch;
}
.calBody[hidden] {
  display: none;
}
.calPad {
  flex: 1;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: crosshair;
}
.calPad .calDot {
  width: 150px;
  height: 150px;
  border-radius: 75px;
  box-sizing: border-box;
  border: 2px dashed var(--p-accent);
  background: var(--p-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--p-accent);
  transition:
    transform 0.1s,
    background 0.1s;
}
.calPad.down .calDot {
  background: var(--p-accent);
  color: var(--p-on-accent);
  transform: scale(0.96);
}
.calMeter {
  width: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.calLbl {
  font-size: 11px;
  color: var(--p-dim);
}
.calBar {
  position: relative;
  width: 26px;
  flex: 1;
  min-height: 150px;
  border-radius: 8px;
  background: var(--p-divider);
  overflow: hidden;
}
.calFill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0;
  background: var(--p-accent);
}
.calMark {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-top: 2px dashed var(--p-text);
  display: none;
}
.calMark.firm {
  border-top-style: solid;
  border-color: var(--p-high);
}
.calVal {
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.calBtns {
  display: flex;
  gap: 10px;
}
#pub .calBtns button {
  flex: 1;
  height: 48px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
}
#pub .calBtns button.primary {
  flex: 2;
  background: var(--p-accent);
  color: var(--p-on-accent);
  box-shadow: var(--p-primary);
  font-weight: 700;
}
#pub .calBtns button:disabled {
  opacity: 0.45;
  cursor: default;
}
.calFoot {
  margin: 0;
  font-size: 12px;
  color: var(--p-dim);
  text-align: center;
}
#pHint {
  position: fixed;
  z-index: 9;
  left: 50%;
  width: max-content;
  top: calc(72px + env(safe-area-inset-top, 0px));
  transform: translate(-50%, -6px);
  max-width: calc(100vw - 120px);
  padding: 10px 18px;
  border-radius: 20px;
  background: var(--p-surface);
  color: var(--p-text);
  box-shadow: var(--p-raised);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s,
    transform 0.3s;
}
#pHint.on {
  opacity: 1;
  transform: translate(-50%);
}
#pHint.on a {
  pointer-events: auto;
}
#pHint a,
#help .hFoot a {
  color: var(--p-accent);
  font-weight: 600;
}
.pBeta {
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--p-dim);
  background: var(--p-divider);
  vertical-align: 2px;
}
.pNote {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--p-dim);
}
.pLegal {
  margin-top: 10px;
}
.pLegal a {
  color: var(--p-dim);
}
#pub a.pPill {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--p-text);
  background: var(--p-surface);
  box-shadow: var(--p-raised);
}
#pHint b {
  color: var(--p-accent);
}
#pHint b.hi {
  color: var(--p-high-text);
}
body.public #help .card {
  width: min(440px, calc(100vw - 32px));
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 22px 22px;
}
#help .pHead h2 {
  margin: 0;
  font-size: 20px;
}
#help .hTabs {
  align-self: flex-start;
}
#help .hTabs button {
  min-width: 72px;
}
#help .hPane {
  margin: 0;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px 12px;
  font-size: 14px;
  line-height: 1.45;
}
#help .hPane[hidden] {
  display: none;
}
#help .hPane dt {
  color: var(--p-dim);
}
#help .hPane dd {
  margin: 0;
}
#help h3 {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--p-dim);
}
#help .hSteps {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
#help .hFoot {
  margin: 0;
  font-size: 13px;
  color: var(--p-dim);
}
@media (prefers-reduced-motion: reduce) {
  #pHint {
    transition: none;
  }
}
body.reduceMotion #pub *,
body.reduceMotion #pub *:after {
  transition: none !important;
}
body.reduceMotion.pouring #pBar {
  transform: none;
}
#pub input.pSwitch:disabled {
  opacity: 0.45;
  cursor: default;
}
#pScrim[hidden],
.aSheet[hidden] {
  display: none;
}
.aSheet {
  position: fixed;
  z-index: 31;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 86vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-sizing: border-box;
  background: var(--p-surface);
  color: var(--p-text);
  border-radius: 22px 22px 0 0;
  box-shadow: var(--p-sheet);
  padding: 10px max(20px, env(safe-area-inset-right, 0px))
    calc(24px + env(safe-area-inset-bottom, 0px))
    max(20px, env(safe-area-inset-left, 0px));
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.aSheet h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--p-text);
  text-transform: none;
  letter-spacing: 0;
}
.aSheet .pNote a {
  color: var(--p-accent);
  font-weight: 600;
}
.aLead {
  margin: 0;
  font-size: 15px;
  color: var(--p-text2);
}
.aList {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  line-height: 1.35;
}
.aTag {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--p-accent);
  color: var(--p-on-accent);
  vertical-align: 2px;
}
body.isPro .aTag {
  display: none;
}
#pub .aBig {
  height: 52px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 700;
  background: var(--p-accent);
  color: var(--p-on-accent);
  box-shadow: var(--p-primary);
}
#pub .aBig:disabled {
  opacity: 0.5;
}
#pub .aBig[hidden],
#pub .aLink[hidden] {
  display: none;
}
#pub .aLink {
  height: 40px;
  background: transparent;
  box-shadow: none;
  color: var(--p-accent);
  font-size: 14px;
  font-weight: 600;
}
#pub a.aBig {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
#pub .aBig.aBig2 {
  background: var(--p-surface);
  color: var(--p-text);
  box-shadow: var(--p-raised);
}
.aIab[hidden] {
  display: none;
}
.aIab {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.aIab .aIabT {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
}
.aIab .pNote {
  margin: 0;
}
.aIabRow {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.aKeyBox[hidden] {
  display: none;
}
.aKeyBox {
  display: flex;
  align-items: center;
  gap: 8px;
}
.aKeyBox .aText {
  flex: 1;
  min-width: 0;
  width: auto;
}
.aKeyBox code {
  flex: 1;
  min-width: 0;
  padding: 10px;
  border-radius: 10px;
  background: var(--p-surface);
  box-shadow: var(--p-raised);
  font:
    12px/1.35 ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  color: var(--p-text);
  overflow-wrap: anywhere;
  user-select: all;
}
.aProg {
  display: flex;
  align-items: center;
  gap: 12px;
}
.aProg[hidden] {
  display: none;
}
.aBar {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: var(--p-divider);
  overflow: hidden;
}
.aBar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--p-accent);
  transition: width 0.2s;
}
.aGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px;
}
.aCard {
  position: relative;
}
#pub .aOpen {
  width: 100%;
  height: auto;
  padding: 0;
  background: transparent;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--p-text);
}
.aOpen img,
.aNoThumb {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  background: var(--p-divider);
  box-shadow: var(--p-raised);
}
.aOpen span {
  font-size: 13px;
  font-weight: 600;
}
.aOpen small {
  font-size: 12px;
  color: var(--p-dim);
}
#pub .aDel {
  position: absolute;
  top: 0;
  right: 0;
  width: 34px;
  height: 34px;
  border-radius: 17px;
  padding: 0;
  font-size: 18px;
  line-height: 1;
}
@keyframes plSheetIn {
  0% {
    transform: translateY(100%);
  }
}
@keyframes plSheetOut {
  to {
    transform: translateY(100%);
  }
}
@keyframes plPanelIn {
  0% {
    transform: translate(calc(100% + 24px));
  }
}
@keyframes plPanelOut {
  to {
    transform: translate(calc(100% + 24px));
  }
}
@keyframes plFadeIn {
  0% {
    opacity: 0;
  }
}
@keyframes plFadeOut {
  to {
    opacity: 0;
  }
}
@keyframes plPop {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
}
body.public #pSheet,
body.public .aSheet {
  animation: plSheetIn 0.3s var(--ease-out-strong);
}
body.public #pSheet.pClosing,
body.public .aSheet.pClosing {
  animation: plSheetOut 0.2s ease-in forwards;
}
body.public #pScrim,
body.public #help {
  animation: plFadeIn 0.2s ease-out;
}
body.public #pScrim.pClosing,
body.public #help.pClosing {
  animation: plFadeOut 0.2s ease-in forwards;
}
body.public #help .card {
  animation: plPop 0.26s var(--ease-out-strong);
}
@media (min-width: 720px) and (min-height: 480px) {
  body.public #pSheet {
    animation-name: plPanelIn;
  }
  body.public #pSheet.pClosing {
    animation-name: plPanelOut;
  }
}
.pGrab {
  padding: 8px 40px;
  margin: -8px 0;
  background-clip: content-box;
  touch-action: none;
  cursor: grab;
}
.aSheet .pHead,
#pSheet .pHead {
  touch-action: none;
}
body.reduceMotion #pSheet,
body.reduceMotion .aSheet,
body.reduceMotion #pScrim,
body.reduceMotion #help,
body.reduceMotion #help .card {
  animation: none !important;
}
#pub .aDrinks button {
  position: relative;
}
#pub .aDrinks button.locked:after {
  content: "PRO";
  position: absolute;
  right: -6px;
  bottom: -5px;
  padding: 1px 4px;
  border-radius: 6px;
  font:
    700 8px/1.3 Inter,
    system-ui,
    sans-serif;
  letter-spacing: 0.04em;
  background: var(--p-accent);
  color: var(--p-on-accent);
  box-shadow: 0 0 0 2px var(--p-surface);
}
#pub .aDrinks {
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.aText {
  font: inherit;
  color: var(--p-text);
  background: var(--p-surface);
  border: 0;
  border-radius: 10px;
  padding: 8px 10px;
  width: 150px;
  box-shadow: var(--p-raised);
}
#pub .aCups {
  gap: 10px;
  flex-wrap: wrap;
}
#pub .aCups button {
  position: relative;
  box-shadow: inset 0 0 0 1px #1c28332e;
}
#pub .aCups button[aria-pressed="true"] {
  box-shadow:
    inset 0 0 0 1px #1c28332e,
    0 0 0 3px var(--p-surface),
    0 0 0 5px var(--p-accent);
}
#pub .aCups button.locked:after {
  content: "PRO";
  position: absolute;
  right: -6px;
  bottom: -5px;
  padding: 1px 4px;
  border-radius: 6px;
  font:
    700 8px/1.3 Inter,
    system-ui,
    sans-serif;
  letter-spacing: 0.04em;
  background: var(--p-accent);
  color: var(--p-on-accent);
  box-shadow: 0 0 0 2px var(--p-surface);
}
#pub .aCupCustom {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 4px 0 12px;
}
#pub .aCupCustom[hidden] {
  display: none;
}
#pub .aCupWhich {
  align-self: flex-start;
}
#pub .aCupWhich i {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 7px;
  margin-right: 8px;
  vertical-align: -2px;
  box-shadow: inset 0 0 0 1px #1c283340;
}
#pub .aSV {
  position: relative;
  height: 150px;
  border-radius: 14px;
  touch-action: none;
  cursor: crosshair;
  box-shadow: inset 0 0 0 1px #1c283326;
}
#pub .aSV i {
  position: absolute;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border-radius: 13px;
  border: 3px solid #fff;
  box-shadow: 0 1px 4px #0006;
  pointer-events: none;
  box-sizing: border-box;
}
#pub .aSV:focus-visible {
  outline: 2px solid var(--p-focus);
  outline-offset: 3px;
}
#pub input.aHue {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  margin: 0;
  border-radius: 14px;
  background: linear-gradient(
    to right,
    red,
    #ff0 17%,
    #0f0 33%,
    #0ff,
    #00f 67%,
    #f0f 83%,
    red
  );
}
#pub input.aHue::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 30px;
  height: 30px;
  border-radius: 15px;
  background: transparent;
  border: 3px solid #fff;
  box-shadow: 0 1px 4px #0006;
}
#pub input.aHue::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 15px;
  background: transparent;
  border: 3px solid #fff;
  box-shadow: 0 1px 4px #0006;
}

#stage,
body.public.clean #stage {
  background-image:
    linear-gradient(to right, var(--theme-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--theme-grid) 1px, transparent 1px);
  background-position: center center;
  background-size: 36px 36px;
}

body:not(.public) #pub {
  display: none;
}

body.clean:not(.public) #stage,
body.public.clean.uiHidden #stage {
  background-image: none;
}

#pTop {
  top: 0;
  min-height: 64px;
  gap: 12px;
  padding: calc(10px + env(safe-area-inset-top, 0px))
    max(var(--studio-gutter), env(safe-area-inset-right, 0px)) 10px
    max(var(--studio-gutter), env(safe-area-inset-left, 0px));
  background: var(--studio-blue);
  color: var(--studio-paper);
}

.pWord {
  flex-direction: row;
  align-items: center;
  flex: none;
  gap: 10px;
  color: inherit;
  font: 400 clamp(16px, 3vw, 27px)/1 var(--font-studio-pixel);
  letter-spacing: -0.1em;
}

.pBrandMark {
  flex: none;
  display: block;
  width: clamp(23px, 3vw, 32px);
  height: auto;
}

.pTopBtns {
  min-width: 0;
  gap: 4px;
}

#pub #pTop button {
  border: 1px solid #ffffffa6;
  border-radius: 0;
  background: var(--studio-blue);
  color: var(--studio-paper);
  font-family: var(--font-studio-mono);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

#pub #pTop button:focus-visible {
  outline-color: var(--studio-paper);
}

#pub #pTop #aLibBtn {
  background: var(--studio-paper);
  color: var(--studio-ink);
}

#pBar {
  gap: 1px;
  background: var(--studio-rule);
  border: 1px solid var(--studio-rule);
  right: max(var(--studio-gutter), env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}

body.jugLeft #pBar {
  right: auto;
  left: max(var(--studio-gutter), env(safe-area-inset-left, 0px));
}

#pub #pBar .pAct {
  width: 44px;
  height: 44px;
  border-radius: 0;
  background: var(--studio-ink);
  color: var(--studio-paper);
}

#pub #pBar .pAct svg {
  flex: none;
  width: 20px;
  height: 20px;
}

#pub #pBar .pAct.primary {
  background: var(--studio-orange);
  color: var(--studio-ink);
}

body.uiHidden :is(#pTop, #pBar, #pCtl, #pFlowG),
body.pouring #pBar {
  visibility: hidden;
}

#pCtl {
  align-items: center;
  left: max(var(--studio-gutter), env(safe-area-inset-left, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: max-content;
}

body.jugLeft #pCtl {
  left: auto;
  right: max(var(--studio-gutter), env(safe-area-inset-right, 0px));
}

#pub :is(#pAimDial, #pSpread, #pHigh) {
  border-radius: 0;
  border: 1px solid var(--theme-control);
  color: var(--theme-text);
  background: var(--theme-surface);
  box-shadow: none;
  font-family: var(--font-studio-mono);
}

#pub #pHigh {
  width: 66px;
  height: 62px;
  color: var(--p-high-text);
}

#pub #pHigh.on {
  border-color: var(--studio-ink);
  background: var(--studio-orange);
  color: var(--studio-ink);
}

#pCtl small,
#pGauge,
#pFlowG,
#clock,
.meter :is(.lbl, .val),
#status {
  font-family: var(--font-studio-mono);
}

:is(#pGauge, #pFlowG) .track {
  border: 1px solid var(--theme-control);
  border-radius: 0;
  background: var(--theme-surface);
  box-shadow: none;
}

:is(#pGauge, #pFlowG) .track > :is(.zHi, .zLo, .live, .handle) {
  border-radius: 0;
}

#pFlowG .handle {
  border: 2px solid var(--theme-accent);
  box-shadow: none;
}

#pHint,
body.public #toast {
  top: calc(80px + env(safe-area-inset-top, 0px));
  border: 1px solid var(--theme-line);
  border-inline-start: 3px solid var(--theme-accent);
  border-radius: 0;
  box-shadow: 0 4px 16px #0b0d140d;
}

#pHint {
  max-width: min(calc(100vw - 112px), 460px);
  padding: 9px 12px;
  font-size: 13px;
}

#pSheet,
.aSheet,
#pCal,
body.public #help .card {
  border: 1px solid var(--theme-control);
  border-top: 3px solid var(--studio-blue);
  border-radius: 0;
  box-shadow: var(--p-sheet);
}

#pub :is(.pHead h2, #pCal h2) {
  font: 400 clamp(19px, 4.5vw, 24px)/1.15 var(--font-studio-pixel);
  letter-spacing: -0.1em;
}

.pHead {
  gap: 8px;
  border-bottom: 1px solid var(--theme-line);
  padding-block: 4px 12px;
}

.pGroup h3,
#pCalStep,
#help h3 {
  color: var(--theme-accent);
  font-family: var(--font-studio-mono);
}

#pub :is(.pDone, .pPill, .pStep button, .aBig.aBig2, .aText, select) {
  border: 1px solid var(--theme-control);
  border-radius: 0;
  font-family: var(--font-studio-mono);
}

#pub a.pPill {
  display: inline-flex;
  align-items: center;
  color: var(--theme-text);
  white-space: nowrap;
}

.pSeg {
  min-width: 0;
  gap: 1px;
  padding: 1px;
  border-radius: 0;
  background: var(--theme-control);
}

#pub .pSeg button {
  min-width: 0;
  padding-inline: 9px;
  border-radius: 0;
  border: 0;
  background: var(--theme-surface);
  color: var(--theme-copy);
  font: 500 12px/1.2 var(--font-studio-mono);
}

#pub .pSeg button[aria-pressed="true"] {
  background: var(--studio-blue);
  color: #fff;
  box-shadow: none;
}

#pub :is(.aBig, #pCalGo.primary) {
  border-radius: 0;
  background: var(--studio-blue);
  color: #fff;
  font: 600 14px/1.2 var(--font-studio-mono);
}

#pub :is(.aBig.aBig2, #pCalSkip) {
  background: var(--theme-surface);
  color: var(--theme-text);
}

#pub
  :is(
    .aTag,
    .aCard .aDel,
    .aCupCustom,
    .aProg .aBar,
    .calPad,
    .calBar,
    #pCalSkip
  ) {
  border-radius: 0;
}

#pub .pSw {
  gap: 8px;
}

#pub .pSw button {
  border-radius: 0;
  box-shadow: inset 0 0 0 1px var(--theme-control);
}

#pub .pSw button[aria-pressed="true"] {
  outline: 2px solid var(--theme-accent);
  outline-offset: 2px;
  box-shadow: inset 0 0 0 1px var(--theme-control);
}

#pub .pSw button:focus-visible {
  outline-style: dashed;
}

#pub input.pSwitch {
  border: 1px solid var(--theme-control);
  border-radius: 0;
  background: var(--theme-inset);
}

#pub input.pSwitch:checked {
  border-color: var(--studio-blue);
  background: var(--studio-blue);
}

#pub input.pSwitch:after {
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border: 1px solid var(--theme-control);
  border-radius: 0;
  box-shadow: none;
}

#pub input.pSwitch:checked:after {
  border-color: white;
}

#panel {
  padding: 0 0 28px;
}

#panel header {
  display: grid;
  gap: 8px;
  background: var(--studio-blue);
  padding: 14px 16px;
  color: var(--studio-paper);
}

#panel header h1 {
  color: inherit;
  margin: 0;
  gap: 4px;
  font: 400 16px/1.2 var(--font-studio-pixel);
  letter-spacing: -0.1em;
}

#panel header #status {
  color: var(--studio-paper);
}

#panel header button.mini {
  flex: none;
  min-height: 32px;
  background: var(--studio-paper);
  color: var(--studio-ink);
  border-color: currentColor;
  font-family: var(--font-studio-mono);
}

#panel header button.mini:focus-visible {
  outline-color: var(--studio-paper);
}

#panel section {
  margin-inline: 16px;
  padding-block: 12px;
}

#cleanBar {
  border-color: var(--theme-control);
  background: var(--theme-surface);
  box-shadow: 0 12px 32px #0b0d1433;
}

.meter .bar {
  background: var(--theme-inset);
  border-color: var(--theme-control);
  border-radius: 0;
}

.meter :is(.lbl, .val) {
  font-size: 9px;
  letter-spacing: -0.035em;
}

#banner {
  width: max-content;
  max-width: 90%;
  font-family: var(--font-studio-mono);
  text-align: center;
}

#banner.info {
  border: 1px solid var(--theme-control);
  background: var(--theme-surface);
  color: var(--theme-text);
}

#banner.rec {
  background: var(--studio-orange);
  color: var(--studio-ink);
}

:is(#panel, #transport, #cleanBar) :is(input, select, button, .btn),
#tl,
#banner,
#cleanBar {
  border-radius: 0;
}

:is(#panel, #transport, #cleanBar)
  :is(button, select, .btn, input:not([type]), input[type="number"]) {
  min-height: 32px;
  background: var(--theme-surface);
  border-color: var(--theme-control);
}

:is(#panel, #transport, #cleanBar) button.on {
  background: var(--studio-blue);
  color: #fff;
}

:is(#panel, #transport, #cleanBar)
  :is(button, input, select, summary, .btn):focus-visible {
  outline: 2px solid var(--theme-accent);
  outline-offset: 2px;
}

body:not(.public) #transport {
  font-family: var(--font-studio-mono);
}

#transport #tl {
  height: 76px;
  background: var(--studio-ink);
}

@media (hover: hover) and (pointer: fine) {
  #pub #pTop button:hover {
    background: var(--studio-paper);
    color: var(--studio-ink);
  }

  #pub #pTop #aLibBtn:hover,
  #pub #pBar .pAct:not(:disabled):hover {
    background: var(--studio-orange);
    color: var(--studio-ink);
  }

  #pub #pBar .pAct.primary:not(:disabled):hover {
    background: var(--studio-paper);
    color: var(--studio-ink);
  }
}

@media (orientation: landscape) and (min-width: 560px) {
  body.public.clean #stage,
  body.public.jugLeft.clean #stage {
    padding: calc(86px + env(safe-area-inset-top, 0px)) 96px
      calc(30px + env(safe-area-inset-bottom, 0px));
  }

  #pBar {
    inset: calc(82px + env(safe-area-inset-top, 0px)) auto auto
      var(--studio-gutter);
  }

  body.jugLeft #pBar {
    left: auto;
    right: var(--studio-gutter);
  }

  #pCtl {
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }
}

@media (orientation: landscape) and (min-width: 1024px) {
  body.public.clean #stage,
  body.public.jugLeft.clean #stage {
    padding-inline: 188px;
  }

  #pub #pBar .pAct {
    width: 116px;
    justify-content: flex-start;
    gap: 10px;
    padding-inline: 12px;
    font: 500 12px/1 var(--font-studio-mono);
  }
}

@media (min-width: 720px) and (min-height: 480px) {
  #pSheet {
    inset: 12px max(12px, env(safe-area-inset-right, 0px)) 12px auto;
    width: 424px;
  }

  .aSheet {
    width: min(600px, calc(100% - 32px));
    bottom: 16px;
    margin-inline: auto;
  }
}

@media (max-width: 520px) {
  #pTop {
    gap: 6px;
  }

  #pub :is(#pSheet, .aSheet, #help .card) {
    padding-inline: max(16px, env(safe-area-inset-left, 0px))
      max(16px, env(safe-area-inset-right, 0px));
  }

  #pub .pRow:has(#aDrinks) {
    align-items: flex-start;
    flex-direction: column;
  }

  #pub .pSw button {
    width: 32px;
    height: 32px;
  }

  #pub .aCups {
    flex-wrap: wrap;
  }
}

@media (max-width: 360px) {
  #pTop {
    padding-inline: 12px;
  }

  #pTop .pTopBtns {
    gap: 2px;
  }

  .pWord {
    font-size: 14px;
    gap: 6px;
  }

  .pBrandMark {
    width: 14px;
  }

  #pub #pTop #pSupport {
    display: none;
  }
}

@media (orientation: portrait) and (max-height: 730px) {
  #pub #pCtl {
    flex-direction: row;
    gap: 3px;
    bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  }

  #pub :is(#pAimDial, #pSpread, #pHigh) {
    width: 48px;
    height: 48px;
  }

  body.public.clean #stage {
    padding-bottom: calc(166px + env(safe-area-inset-bottom, 0px));
  }

  #pGauge,
  #pFlowG {
    gap: 6px;
    min-height: 76px;
  }
}

@media (orientation: landscape) and (max-height: 540px) {
  #pub :is(#pAimDial, #pSpread, #pHigh) {
    width: 42px;
    height: 42px;
  }

  #pub #pCtl {
    flex-direction: row;
    gap: 3px;
  }
}
