@font-face {
  font-family: "Porter Sans Block";
  src:
    url("assets/fonts/porter-sans-block/porter-sans-inline-block-webfont.woff") format("woff"),
    url("assets/fonts/porter-sans-block/porter-sans-inline-block-webfont.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --gold: #fbca22;
  --green: #b1cd40;
  --aqua: #1e8f9c;
  --blue: #10a9ec;
  --orange: #f69530;
  --black: #1a141f;
  --hint: #4b3a5a;
  --border: #aba7af;
  --disabled: #d4d2d5;
  --spacer: #d9d1e0;
  --spacer-light: #e5e0eb;
  --bg: #f5f3f7;
  --white: #ffffff;
  --error: #d51a52;
  --stout: #432123;
  --red-ale: #812526;
  --pale-ale: #e39746;
  --shadow-sm: 0 8px 16px rgba(62, 19, 77, 0.07);
  --shadow-md: 0 15px 30px rgba(62, 19, 77, 0.09);
  --display-font: "Porter Sans Block", "Cooper Black", "Rockwell Extra Bold", "Arial Black", Impact, fantasy;
  color-scheme: light;
  font-family: Poppins, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 22% 6%, rgba(251, 202, 34, 0.24), transparent 24rem),
    linear-gradient(140deg, #fdf9ea, var(--bg) 48%, #edf8fa);
  color: var(--black);
}

button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.phone {
  position: relative;
  width: min(100%, 393px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 10px 96px;
  background: var(--bg);
  overflow: visible;
}

.top-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 58px;
  margin: 0 -10px;
  padding: 0 16px;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(171, 167, 175, 0.28);
}

.text-logo,
.mini-marks,
.section-header,
.brew-card,
.tab-bar {
  display: flex;
  align-items: center;
}

.text-logo {
  flex: 1;
  gap: 10px;
  min-width: 0;
}

.text-logo strong {
  display: grid;
  font-family: var(--display-font);
  font-size: 32px;
  font-weight: 900;
  line-height: 0.82;
  text-transform: uppercase;
}

.brand-icon {
  color: var(--orange);
  font-size: 30px;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

.profile-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--black);
  box-shadow: var(--shadow-sm);
}

.profile-button .material-symbols-rounded {
  font-size: 24px;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

.header-back-button {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  box-shadow: var(--shadow-sm);
}

.header-back-button .material-symbols-rounded {
  font-size: 24px;
  line-height: 1;
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
}

.feature-card {
  display: grid;
  margin-top: 10px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.feature-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.48;
  height: auto;
  object-fit: cover;
}

.feature-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 12px;
  align-items: end;
  padding: 14px 16px 16px;
  color: var(--black);
}

.eyebrow,
.feature-copy p,
.metric-card p,
.brew-card p,
.brew-card span,
.tile-list span {
  margin: 0;
  color: var(--hint);
  font-size: 14px;
}

.eyebrow {
  color: rgba(255, 255, 255, 0.74);
  font-weight: 700;
}

.feature-copy h1 {
  grid-column: 1 / -1;
  margin: 0 0 5px;
  color: var(--black);
  font-family: var(--display-font);
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: uppercase;
  -webkit-text-stroke: 1px var(--black);
  paint-order: stroke fill;
}

.feature-copy p {
  color: var(--black);
  font-size: 17px;
  line-height: 1.35;
}

.link-button {
  margin: 0 0 2px;
  padding: 0;
  background: transparent;
  color: #007aff;
  font-size: 17px;
  font-weight: 500;
  white-space: nowrap;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin: 10px 0 22px;
}

.metric-card,
.brew-card,
.tile-list article,
.inventory-grid button {
  border: 1px solid rgba(171, 167, 175, 0.28);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.metric-card {
  min-height: 80px;
  padding: 10px 11px;
}

.metric-card h2 {
  margin: 0 0 9px;
  font-size: 16px;
  line-height: 1.25;
}

.metric-card strong {
  display: block;
  margin-top: 5px;
  color: var(--hint);
  font-size: 14px;
}

.block-number {
  font-family: var(--display-font);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.metric-card .block-number {
  display: inline-block;
  margin-right: 3px;
  color: var(--black);
  font-size: 20px;
  line-height: 1;
}

.mini-marks {
  gap: 7px;
}

.mini-marks .material-symbols-rounded {
  color: var(--orange);
  font-size: 22px;
  line-height: 1;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

.deals {
  position: relative;
}

.deals p {
  max-width: 112px;
  line-height: 1.3;
}

.small-button {
  min-height: 28px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--black);
  font-size: 14px;
  font-weight: 800;
}

.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border: 2px dashed var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--black);
  font-size: 14px;
  font-weight: 800;
}

.outline-button .material-symbols-rounded,
.small-button .material-symbols-rounded {
  font-size: 19px;
  line-height: 1;
}

.deals .small-button {
  position: absolute;
  right: 11px;
  bottom: 8px;
}

.section-header {
  justify-content: space-between;
  gap: 10px;
  margin: 0 8px 8px;
}

.header-title {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}

.section-header h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
}

.ghost-button {
  background: transparent;
  color: var(--aqua);
  font-weight: 800;
}

.brew-list {
  display: grid;
  gap: 8px;
}

.phone > .brew-list {
  grid-auto-columns: minmax(118px, 1fr);
  grid-auto-flow: column;
  grid-template-columns: none;
  gap: 10px;
  margin: 0 -10px;
  padding: 0 10px 4px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
}

.brew-card {
  min-height: 106px;
  gap: 14px;
  padding: 10px 16px 10px 11px;
  width: 100%;
  color: inherit;
  text-align: left;
}

.brew-card.compact {
  min-height: 98px;
}

.brew-card.circle {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  min-height: 196px;
  padding: 11px 8px 10px;
  scroll-snap-align: start;
  text-align: center;
}

.brew-card.circle > div:nth-child(2) {
  display: grid;
  gap: 2px;
  justify-items: center;
}

.brew-card.circle h3 {
  margin: 0;
  font-size: 15px;
}

.brew-card.circle p {
  display: none;
}

.brew-card.circle span {
  font-size: 12px;
}

.brew-card.circle > .block-number {
  min-width: 0;
  font-size: 25px;
}

.brew-label {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  width: 86px;
  height: 86px;
  flex: 0 0 auto;
  padding: 8px;
  border: 4px solid var(--white);
  border-radius: 16px;
  overflow: hidden;
  text-align: center;
  box-shadow: inset 0 -12px 0 rgba(26, 20, 31, 0.16), 0 0 0 1px rgba(171, 167, 175, 0.3);
}

.brew-card.circle .brew-label {
  width: 108px;
  height: 108px;
  border-radius: 50%;
}

.brew-label::before,
.brew-label::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.brew-label::before {
  top: 23px;
}

.brew-label::after {
  bottom: 22px;
}

.brew-label.stout {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 247, 213, 0.24), transparent 24px),
    linear-gradient(145deg, #2a1620, var(--stout));
  color: #fff7d5;
}

.brew-label.ipa {
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 247, 213, 0.38), transparent 22px),
    linear-gradient(145deg, var(--gold), var(--orange) 48%, var(--red-ale));
  color: var(--black);
}

.brew-label.pale {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.34) 0 12%, transparent 12% 88%, rgba(255, 255, 255, 0.24) 88%),
    linear-gradient(145deg, #fff1a6, var(--pale-ale));
  color: var(--black);
}

.label-art {
  position: absolute;
  inset: 12px;
  z-index: 0;
  display: block;
  opacity: 0.34;
  pointer-events: none;
}

.brew-label.stout .label-art {
  background:
    radial-gradient(ellipse at 50% 44%, #fff7d5 0 20%, transparent 21%),
    linear-gradient(#fff7d5 0 0) 50% 62% / 30% 36% no-repeat,
    linear-gradient(90deg, transparent 0 62%, #fff7d5 62% 74%, transparent 74%);
  border-radius: 50%;
}

.brew-label.ipa .label-art {
  background:
    radial-gradient(ellipse at 50% 20%, var(--black) 0 11%, transparent 12%),
    linear-gradient(45deg, transparent 0 34%, var(--black) 35% 45%, transparent 46%),
    linear-gradient(-45deg, transparent 0 34%, var(--black) 35% 45%, transparent 46%),
    linear-gradient(var(--black) 0 0) 50% 44% / 14% 46% no-repeat;
}

.brew-label.pale .label-art {
  background:
    radial-gradient(circle at 52% 44%, rgba(26, 20, 31, 0.85) 0 14%, transparent 15%),
    radial-gradient(circle at 32% 40%, rgba(26, 20, 31, 0.8) 0 9%, transparent 10%),
    radial-gradient(circle at 70% 40%, rgba(26, 20, 31, 0.8) 0 9%, transparent 10%),
    linear-gradient(rgba(26, 20, 31, 0.8) 0 0) 50% 62% / 42% 12% no-repeat;
}

.brew-label strong {
  position: relative;
  z-index: 1;
  display: block;
  font-family: var(--display-font);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.label-top,
.label-bottom {
  position: relative;
  z-index: 1;
  max-width: 100%;
  color: inherit !important;
  font-family: var(--display-font);
  font-size: 9px !important;
  font-weight: 900;
  line-height: 1.1 !important;
  text-transform: uppercase;
}

.label-bottom {
  margin-top: 3px !important;
}

.brew-card div:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.brew-card h3 {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 1.2;
}

.brew-card p {
  margin-bottom: 6px;
}

.brew-card span {
  display: block;
  line-height: 1.25;
}

.brew-card strong {
  min-width: 44px;
  text-align: center;
  color: var(--black);
  font-size: 30px;
  line-height: 1;
}

.view-panel {
  padding-top: 14px;
}

.detail-hero,
.recipe-card,
.timer-card {
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.detail-hero {
  position: relative;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  padding: 50px 14px 16px;
  color: var(--white);
  overflow: hidden;
}

.detail-hero.stout {
  background: linear-gradient(145deg, var(--stout), var(--black));
}

.detail-hero.ipa {
  background: linear-gradient(145deg, var(--orange), var(--red-ale));
}

.detail-hero.pale {
  background: linear-gradient(145deg, var(--pale-ale), var(--gold));
  color: var(--black);
}

.detail-hero .brew-label {
  border-color: rgba(255, 255, 255, 0.72);
}

.detail-hero h1 {
  margin: 3px 0 7px;
  font-size: 29px;
  line-height: 1.08;
}

.detail-hero p {
  margin: 0;
  color: currentColor;
  line-height: 1.4;
  opacity: 0.86;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin: 10px 0;
}

.stat-strip article {
  min-width: 0;
  padding: 10px 7px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.stat-strip span,
.timer-readout span {
  display: block;
  color: var(--hint);
  font-size: 12px;
  font-weight: 800;
}

.stat-strip strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
}

.recipe-card,
.timer-card {
  margin-top: 10px;
  padding: 14px;
  background: var(--white);
}

.recipe-card .section-header,
.timer-card .section-header {
  margin: 0 0 12px;
}

.recipe-card h3 {
  margin: 12px 0 5px;
  font-size: 16px;
}

.recipe-card ul,
.process-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.recipe-card li,
.recipe-card p {
  color: var(--hint);
  font-size: 14px;
  line-height: 1.45;
}

.mini-badge {
  max-width: 138px;
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--bg);
  color: var(--hint);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.timer-readout {
  display: grid;
  gap: 2px;
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(251, 202, 34, 0.22), rgba(30, 143, 156, 0.12));
}

.timer-card.timer-set .timer-readout {
  background: linear-gradient(135deg, rgba(177, 205, 64, 0.25), rgba(251, 202, 34, 0.18));
}

.timer-card.timer-running .timer-readout {
  background: linear-gradient(135deg, rgba(30, 143, 156, 0.22), rgba(251, 202, 34, 0.2));
}

.timer-card.timer-done .timer-readout {
  background: linear-gradient(135deg, rgba(177, 205, 64, 0.25), rgba(30, 143, 156, 0.12));
}

.timer-card .small-button:disabled {
  background: var(--disabled);
  color: var(--hint);
  cursor: default;
}

.timer-readout strong {
  font-family: var(--display-font);
  font-size: 26px;
  line-height: 1;
}

.timer-readout p,
.process-list p {
  margin: 0;
  color: var(--hint);
  font-size: 14px;
}

.timer-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}

.timer-controls .small-button,
.timer-controls .outline-button {
  justify-content: center;
  min-height: 38px;
}

.process-list {
  display: grid;
  gap: 9px;
}

.process-list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.recipe-phase-list li {
  display: block;
}

.process-list li > span {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 2px solid var(--border);
  border-radius: 50%;
}

.phase-button {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.phase-button > span {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 2px solid var(--border);
  border-radius: 50%;
}

.phase-button.selected > span {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(251, 202, 34, 0.2);
}

.process-list li.done .phase-button > span {
  border-color: var(--green);
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(177, 205, 64, 0.2);
}

.process-list li.done > span {
  border-color: var(--green);
  background: var(--green);
}

.process-list li.active > span {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(251, 202, 34, 0.2);
}

.process-list strong {
  font-size: 15px;
}

.hidden {
  display: none !important;
}

.tile-list {
  display: grid;
  gap: 10px;
}

.tile-list article {
  display: grid;
  gap: 4px;
  padding: 16px;
}

.tile-list strong {
  font-size: 18px;
}

.recipe-list {
  display: grid;
  gap: 10px;
}

.recipe-list-card {
  display: grid;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(171, 167, 175, 0.28);
  border-radius: 8px;
  background: var(--white);
  color: var(--black);
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.recipe-list-card h3 {
  margin: 8px 0 3px;
  font-size: 19px;
}

.recipe-list-card p {
  margin: 0;
  color: var(--hint);
  font-size: 14px;
}

.recipe-stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.recipe-stat-row span {
  display: grid;
  gap: 2px;
  padding: 7px 5px;
  border-radius: 8px;
  background: var(--bg);
  color: var(--hint);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.recipe-stat-row b {
  color: var(--black);
  font-size: 14px;
}

.recipe-hero {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(251, 202, 34, 0.28), rgba(30, 143, 156, 0.16)), var(--white);
  box-shadow: var(--shadow-sm);
}

.recipe-hero > .material-symbols-rounded {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--black);
  font-size: 30px;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

.recipe-hero h1 {
  margin: 2px 0 5px;
  font-size: 25px;
  line-height: 1.1;
}

.recipe-hero p {
  margin: 0;
  color: var(--hint);
  font-size: 14px;
  line-height: 1.4;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 10px;
}

.profile-grid article {
  padding: 10px 7px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.profile-grid span {
  display: block;
  color: var(--hint);
  font-size: 12px;
  font-weight: 800;
}

.profile-grid strong {
  display: block;
  margin-top: 3px;
  font-size: 16px;
}

.recipe-scale-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 8px;
  align-items: stretch;
  margin-top: 10px;
}

.recipe-scale-card > button,
.recipe-scale-card > div {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid rgba(171, 167, 175, 0.28);
  border-radius: 8px;
  background: var(--white);
  color: var(--black);
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.recipe-scale-card span {
  color: var(--hint);
  font-size: 12px;
  font-weight: 800;
}

.recipe-scale-card button strong {
  width: 100%;
  min-width: 0;
  font-size: 19px;
  font-weight: 900;
}

.recipe-scale-card strong {
  font-family: var(--display-font);
  font-size: 22px;
  line-height: 1;
}

.bottom-sheet {
  position: fixed;
  inset: 0;
  z-index: 12;
}

.sheet-scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  background: rgba(26, 20, 31, 0.34);
}

.sheet-panel {
  position: absolute;
  z-index: 1;
  right: max(0px, calc((100vw - 393px) / 2));
  bottom: 0;
  left: max(0px, calc((100vw - 393px) / 2));
  display: grid;
  gap: 10px;
  max-height: 78vh;
  padding: 14px 14px 94px;
  border-radius: 8px 8px 0 0;
  background: var(--white);
  box-shadow: 0 -18px 38px rgba(62, 19, 77, 0.18);
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sheet-header h2 {
  margin: 2px 0 0;
  font-size: 21px;
}

.sheet-options {
  display: grid;
  gap: 7px;
  overflow: auto;
}

.sheet-options button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid rgba(171, 167, 175, 0.28);
  border-radius: 8px;
  background: var(--bg);
  color: var(--black);
  font-weight: 900;
  text-align: left;
}

.sheet-options button .material-symbols-rounded {
  color: transparent;
  font-size: 22px;
}

.sheet-options button.selected {
  border-color: rgba(30, 143, 156, 0.45);
  background: rgba(30, 143, 156, 0.12);
}

.sheet-options button.selected .material-symbols-rounded {
  color: var(--aqua);
}

.batch-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: 10px;
}

.batch-summary article,
.score-list article {
  border: 1px solid rgba(171, 167, 175, 0.28);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.batch-summary article {
  display: grid;
  gap: 4px;
  min-height: 72px;
  padding: 10px 8px;
  text-align: center;
}

.batch-summary span,
.score-list span,
.score-list p {
  color: var(--hint);
  font-size: 13px;
}

.batch-summary strong {
  font-size: 24px;
  line-height: 1;
}

.batch-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  margin: 0 0 10px;
  padding: 0 12px;
  border: 1px solid rgba(171, 167, 175, 0.28);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.batch-search .material-symbols-rounded {
  color: var(--hint);
  font-size: 22px;
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
}

.batch-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--black);
  font: inherit;
}

.batch-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.recipe-filters {
  grid-template-columns: 1fr;
}

.batch-filters label,
.filter-control {
  display: grid;
  gap: 5px;
  padding: 9px 10px;
  border: 1px solid rgba(171, 167, 175, 0.28);
  border-radius: 8px;
  background: var(--white);
  color: var(--black);
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.filter-control {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 58px;
}

.batch-filters span,
.filter-control span:first-child {
  color: var(--hint);
  font-size: 12px;
  font-weight: 800;
}

.filter-control span:first-child,
.filter-control strong {
  grid-column: 1;
}

.filter-control strong {
  overflow: hidden;
  font-size: 16px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-control .material-symbols-rounded {
  grid-column: 2;
  grid-row: 1 / 3;
  color: var(--hint);
  font-size: 22px;
  line-height: 1;
}

.batch-filters select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--black);
  font: inherit;
  font-weight: 800;
}

.score-list {
  display: grid;
  gap: 10px;
}

.score-list article {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
}

.score-badge {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 2px solid var(--black);
  border-radius: 50%;
  background: var(--gold);
  font-size: 22px;
}

.score-list strong,
.score-list span {
  display: block;
}

.score-list strong {
  margin-bottom: 2px;
  font-size: 18px;
}

.score-list p {
  margin: 7px 0 0;
  line-height: 1.35;
}

.empty-results {
  padding: 18px;
  border-radius: 8px;
  background: var(--white);
  color: var(--hint);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.inventory-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.inventory-grid button {
  display: grid;
  align-content: space-between;
  gap: 6px;
  min-height: 86px;
  padding: 12px;
  color: var(--black);
  text-align: left;
}

.inventory-grid button strong {
  font-size: 16px;
  line-height: 1.1;
}

.inventory-grid button small {
  color: var(--hint);
  font-size: 12px;
  font-weight: 700;
}

.inventory-grid button:nth-child(1) {
  background: linear-gradient(135deg, var(--white), rgba(30, 143, 156, 0.18));
}

.inventory-grid button:nth-child(3) {
  background: linear-gradient(135deg, var(--white), rgba(251, 202, 34, 0.2));
}

.inventory-grid button:nth-child(4) {
  background: linear-gradient(135deg, var(--white), rgba(177, 205, 64, 0.22));
}

.inventory-category-card,
.inventory-suggestion,
.inventory-item {
  border: 1px solid rgba(171, 167, 175, 0.28);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.inventory-category-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
}

.inventory-category-card strong,
.inventory-item strong {
  display: block;
  font-size: 17px;
}

.inventory-category-card p,
.inventory-suggestion p,
.inventory-item span {
  margin: 4px 0 0;
  color: var(--hint);
  font-size: 14px;
  line-height: 1.35;
}

.add-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0;
}

.add-options .small-button,
.add-options .outline-button {
  min-height: 42px;
}

.disabled-action {
  background: var(--disabled);
  color: var(--hint);
  cursor: default;
}

.inventory-suggestion {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  margin-bottom: 10px;
}

.inventory-suggestion .material-symbols-rounded {
  color: var(--aqua);
  font-size: 25px;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

.inventory-list {
  display: grid;
  gap: 8px;
}

.inventory-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
}

.inventory-item div:last-child {
  text-align: right;
}

.inventory-item b,
.inventory-item em {
  display: block;
}

.inventory-item b {
  font-size: 16px;
}

.inventory-item em {
  color: var(--hint);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.stock-icon {
  display: block;
  color: var(--black);
  font-size: 34px;
  line-height: 1;
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
}

.tab-bar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 8;
  justify-content: space-between;
  width: min(100%, 393px);
  height: 83px;
  padding: 8px 12px 14px;
  transform: translateX(-50%);
  background: var(--white);
  box-shadow: 0 -8px 18px rgba(62, 19, 77, 0.08);
}

.tab-bar button {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 2px;
  min-width: 58px;
  height: 56px;
  border-radius: 8px;
  background: transparent;
  color: var(--hint);
}

.tab-bar button.active {
  background: var(--gold);
  color: var(--black);
}

.tab-bar .material-symbols-rounded {
  font-family: "Material Symbols Rounded";
  font-size: 23px;
  font-weight: 500;
  line-height: 1;
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
}

.tab-bar small {
  font-size: 11px;
  font-weight: 800;
}

@media (min-width: 760px) {
  body {
    display: grid;
    place-items: start center;
    padding: 28px 0;
  }

  .phone {
    width: min(100%, 960px);
    min-height: 852px;
    padding: 0 24px 108px;
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(26, 20, 31, 0.2);
  }

  .top-bar {
    top: 28px;
    height: 72px;
    margin: 0 -24px;
    padding: 0 28px;
  }

  .text-logo strong {
    font-size: 40px;
  }

  .brand-icon {
    font-size: 38px;
  }

  .feature-card {
    grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
    align-items: stretch;
    margin-top: 18px;
  }

  .feature-card img {
    height: 100%;
    min-height: 320px;
  }

  .feature-copy {
    align-content: end;
    padding: 28px;
  }

  .feature-copy h1 {
    font-size: 36px;
  }

  .summary-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 16px 0 26px;
  }

  .metric-card {
    min-height: 108px;
    padding: 18px;
  }

  .phone > .brew-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-flow: row;
    grid-auto-columns: auto;
    gap: 14px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .brew-card.circle {
    min-height: 214px;
  }

  .view-panel {
    padding-top: 22px;
  }

  .recipe-list,
  .score-list,
  .tile-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .inventory-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .inventory-grid button {
    min-height: 126px;
    padding: 18px;
  }

  .batch-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recipe-filters {
    grid-template-columns: minmax(0, 1fr);
  }

  .batch-summary,
  .profile-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  #recipe-detail-panel:not(.hidden),
  #brew-detail-panel:not(.hidden),
  #inventory-detail-panel:not(.hidden) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
  }

  #recipe-detail-panel .recipe-hero,
  #recipe-detail-panel .profile-grid,
  #recipe-detail-panel .recipe-scale-card,
  #brew-detail-panel .detail-hero,
  #brew-detail-panel .stat-strip,
  #inventory-detail-panel .inventory-category-card {
    grid-column: 1 / -1;
  }

  .detail-hero {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 22px;
    padding: 34px 28px;
  }

  .detail-hero .brew-label {
    width: 112px;
    height: 112px;
  }

  .recipe-hero {
    grid-template-columns: 72px minmax(0, 1fr);
    padding: 22px;
  }

  .recipe-hero > .material-symbols-rounded {
    width: 72px;
    height: 72px;
    font-size: 38px;
  }

  .recipe-card,
  .timer-card {
    margin-top: 0;
    padding: 18px;
  }

  .recipe-scale-card {
    grid-template-columns: minmax(0, 1fr) 160px;
    margin-top: 0;
  }

  .sheet-panel {
    right: max(24px, calc((100vw - 960px) / 2 + 24px));
    left: max(24px, calc((100vw - 960px) / 2 + 24px));
    max-width: 560px;
    margin: 0 auto;
  }

  .tab-bar {
    position: absolute;
    left: 0;
    width: 100%;
    height: 88px;
    padding: 10px 24px 18px;
    transform: none;
  }

  .tab-bar button {
    min-width: 96px;
  }
}
