:root {
  color-scheme: dark;
  --ink: #0b0b0c;
  --panel: #151518;
  --panel-2: #1d1d21;
  --line: #34343a;
  --white: #fffdf4;
  --muted: #a9a8a2;
  --yellow: #ffd70a;
  --red: #ff4b23;
  --green: #78e443;
  --cyan: #35d7ff;
  --purple: #bd73ff;
  --shadow: 0 18px 48px rgba(0, 0, 0, .34);
  --radius: 6px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

.is-hidden {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  transform: translateY(-150%);
  padding: 10px 14px;
  background: var(--yellow);
  color: #090909;
}

.skip-link:focus {
  transform: none;
}

.lab-splash {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 24px;
  background: #080809;
}

.splash-core {
  width: min(440px, 90vw);
  text-align: center;
}

.splash-core img {
  display: block;
  width: min(340px, 78vw);
  margin: 0 auto 30px;
}

.load-track {
  height: 10px;
  overflow: hidden;
  border: 2px solid #3d3d43;
  border-radius: 999px;
  background: #151517;
}

.load-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--yellow);
  animation: fill-lab 3s linear forwards;
}

.splash-core p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: .88rem;
}

.splash-continue {
  visibility: hidden;
  margin: 24px auto 0;
  opacity: 0;
  transform: translateY(8px);
}

.splash-continue.is-ready {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity .25s ease, transform .25s ease;
}

@keyframes fill-lab {
  to { width: 100%; }
}

.lab-app {
  min-height: 100vh;
  background-color: #0b0b0c;
}

.lab-header {
  position: sticky;
  z-index: 40;
  top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 72px;
  padding: 8px clamp(18px, 3vw, 44px);
  border-bottom: 1px solid var(--line);
  background: rgba(11, 11, 12, .96);
  backdrop-filter: blur(14px);
}

.lab-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.lab-mark img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.lab-mark span {
  display: grid;
  line-height: 1.1;
}

.lab-mark strong {
  font-size: 1rem;
}

.lab-mark small {
  margin-top: 4px;
  color: var(--yellow);
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.back-to-brand {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
  color: #d4d3ce;
  font-size: .84rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.back-to-brand:hover {
  color: var(--yellow);
}

.showcase-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 9px 18px;
  border: 2px solid var(--yellow);
  border-radius: 4px;
  background: var(--yellow);
  color: #0b0b0b;
  font-size: .76rem;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 0 0 5px rgba(255, 215, 10, .08);
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.showcase-link:hover {
  transform: translateY(-2px);
  border-color: var(--green);
  background: var(--green);
}

.lab-main {
  width: min(1480px, calc(100% - 36px));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: 28px 0 58px;
}

.step-rail {
  display: grid;
  grid-template-columns: auto minmax(30px, 1fr) auto minmax(30px, 1fr) auto minmax(30px, 1fr) auto;
  align-items: center;
  width: min(760px, 100%);
  margin: 0 auto 42px;
}

.step-node {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 74px;
  padding: 0;
  border: 0;
  background: none;
  color: #77777d;
  cursor: pointer;
}

.step-node:disabled {
  cursor: default;
}

.step-node span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid #44444a;
  border-radius: 50%;
  background: #171719;
  font-size: .84rem;
  font-weight: 900;
}

.step-node small {
  font-size: .67rem;
  font-weight: 800;
  text-transform: uppercase;
}

.step-node.is-active {
  color: var(--white);
}

.step-node.is-active span {
  border-color: var(--yellow);
  background: var(--yellow);
  color: #080808;
  box-shadow: 0 0 0 5px rgba(255, 215, 10, .12);
}

.step-node.is-complete span {
  border-color: var(--green);
  background: var(--green);
  color: #080808;
}

.step-line {
  height: 2px;
  background: #39393e;
}

.lab-step {
  display: none;
}

.lab-step.is-active {
  display: block;
  animation: step-in .32s ease both;
}

@keyframes step-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.step-heading {
  max-width: 720px;
  margin: 0 auto 32px;
  text-align: center;
}

.kicker {
  margin: 0 0 8px;
  color: var(--yellow);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.step-heading h1,
.bench-toolbar h1,
.result-core h1 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(2rem, 4vw, 3.15rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.02;
  text-transform: uppercase;
}

.step-heading > p:last-child,
.result-core > p {
  margin: 13px auto 0;
  color: var(--muted);
  font-size: .96rem;
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.type-card {
  --type-color: var(--yellow);
  position: relative;
  display: grid;
  grid-template-rows: 90px 1fr auto;
  min-height: 360px;
  overflow: hidden;
  padding: 26px;
  border: 1px solid #3a3a3f;
  border-top: 6px solid var(--type-color);
  border-radius: var(--radius);
  background: #171719;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}

.type-card:hover,
.type-card:focus-visible {
  transform: translateY(-5px);
  border-color: var(--type-color);
  background: #1e1e21;
  outline: none;
}

.type-card > i {
  align-self: start;
  color: var(--type-color);
  font-size: 3.6rem;
}

.type-card span {
  align-self: end;
  display: grid;
  gap: 9px;
}

.type-card strong {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.type-card small {
  color: #b8b7b2;
  font-size: .88rem;
}

.type-card em {
  display: block;
  min-height: 42px;
  padding: 9px 10px;
  border-left: 3px solid var(--type-color);
  background: rgba(255, 255, 255, .035);
  color: #d7d6d0;
  font-size: .68rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
}

.type-card b {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  padding-top: 15px;
  border-top: 1px solid #38383d;
  color: var(--type-color);
  font-size: .73rem;
  text-transform: uppercase;
}

.type-savory { --type-color: #ff562a; }
.type-sweet { --type-color: #ffca28; }
.type-rim { --type-color: #35d7ff; }
.type-all { --type-color: #8aef4d; }

.build-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(330px, 1fr);
  gap: 18px;
  align-items: start;
}

.analysis-bench,
.recipe-drawer,
.recipe-form,
.recipe-review {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #121214;
}

.analysis-bench {
  padding: clamp(18px, 2.5vw, 30px);
}

.bench-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.bench-toolbar h1 {
  font-size: clamp(1.9rem, 3vw, 2.65rem);
}

.starter-guide {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  align-items: center;
  gap: 13px;
  margin-bottom: 16px;
  padding: 13px 14px;
  border: 1px solid #3b3b41;
  border-left: 5px solid var(--cyan);
  border-radius: 4px;
  background: #18181b;
}

.starter-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(53, 215, 255, .35);
  border-radius: 4px;
  background: rgba(53, 215, 255, .08);
  color: var(--cyan);
}

.starter-guide .kicker {
  margin-bottom: 1px;
  color: var(--cyan);
  font-size: .6rem;
}

.starter-guide strong {
  display: block;
  font-size: .78rem;
}

.starter-guide small {
  display: block;
  margin-top: 2px;
  color: #92918c;
  font-size: .65rem;
}

.starter-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.starter-chips button {
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid #48484f;
  border-radius: 3px;
  background: #222226;
  color: #dddcd6;
  font-size: .64rem;
  font-weight: 850;
  cursor: pointer;
}

.starter-chips button:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.starter-chips button.is-added {
  border-color: var(--green);
  color: var(--green);
}

#type-badge {
  display: inline-block;
  margin-left: 7px;
  padding: 4px 7px;
  border: 1px solid #4e4e53;
  border-radius: 999px;
  color: var(--white);
  font-size: .63rem;
}

.lab-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: .78rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.lab-button:hover {
  transform: translateY(-2px);
}

.lab-button:disabled {
  opacity: .4;
  transform: none;
  cursor: default;
}

.lab-button-primary {
  background: var(--yellow);
  color: #0b0b0b;
}

.lab-button-primary:hover {
  background: var(--green);
}

.lab-button-secondary {
  border-color: #49494f;
  background: #1b1b1e;
  color: var(--white);
}

.lab-button-secondary:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.analysis-grid {
  display: grid;
  grid-template-columns: minmax(380px, 1.45fr) minmax(280px, 1fr);
  gap: 16px;
}

.profile-card,
.heat-card,
.notes-card,
.ratio-card {
  border: 1px solid #303035;
  border-radius: var(--radius);
  background: #19191c;
}

.profile-card {
  padding: 18px;
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.panel-title > span {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 1px solid #45454b;
  border-radius: 4px;
  background: #232327;
  color: var(--yellow);
}

.panel-title h2,
.drawer-heading h2,
.modal-header h2,
.recipe-review h2 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0;
}

.panel-title p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: .75rem;
}

.radar-wrap {
  min-height: 390px;
  margin-top: 4px;
}

#profile-radar {
  display: block;
  width: 100%;
  height: 390px;
}

.profile-key {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px 14px;
  color: #c0bfba;
  font-size: .7rem;
}

.profile-key span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.profile-key i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--key);
}

.signal-stack {
  display: grid;
  gap: 16px;
}

.heat-card,
.notes-card,
.ratio-card {
  padding: 17px;
}

.panel-title.compact > span {
  flex-basis: 36px;
  width: 36px;
  height: 36px;
}

.heat-scale {
  position: relative;
  height: 18px;
  overflow: visible;
  margin-top: 28px;
  border-radius: 999px;
  background: linear-gradient(90deg, #36cfff 0%, #87e443 32%, #ffd51c 58%, #ff8a24 78%, #ff3f28 100%);
}

.heat-scale > span {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: .82;
}

.heat-scale > i {
  position: absolute;
  top: -8px;
  left: 0%;
  width: 4px;
  height: 34px;
  border: 2px solid #101011;
  border-radius: 2px;
  background: #fff;
  transform: translateX(-2px);
  transition: left .2s ease;
}

.heat-numbers {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: #8e8e93;
  font-size: .64rem;
  font-weight: 800;
  text-transform: uppercase;
}

.signal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.signal-chips span {
  padding: 6px 8px;
  border: 1px solid #45454b;
  border-radius: 999px;
  color: #dcdad3;
  font-size: .66rem;
  font-weight: 800;
  text-transform: uppercase;
}

.signal-chips .empty-chip {
  border-style: dashed;
  color: #7f7e7a;
  text-transform: none;
}

.ratio-bars {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.ratio-bars p {
  margin: 0;
  color: #858580;
  font-size: .75rem;
}

.mini-ratio {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 10px;
  align-items: center;
  font-size: .68rem;
}

.mini-ratio span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-ratio b {
  color: var(--yellow);
}

.mini-ratio i {
  grid-column: 1 / -1;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #333338;
}

.mini-ratio i::before {
  display: block;
  width: var(--ratio);
  height: 100%;
  background: var(--bar, var(--yellow));
  content: "";
}

.recipe-drawer {
  position: sticky;
  top: 90px;
  overflow: hidden;
}

.drawer-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.drawer-heading p,
.drawer-heading h2 {
  margin-bottom: 0;
}

.drawer-heading > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--yellow);
  color: #111;
  font-size: .82rem;
  font-weight: 900;
}

.recipe-items {
  max-height: min(58vh, 600px);
  overflow-y: auto;
  padding: 12px;
}

.empty-mixture {
  display: grid;
  justify-items: center;
  padding: 54px 24px;
  color: #7f7e7a;
  text-align: center;
}

.empty-mixture i {
  margin-bottom: 16px;
  font-size: 2.2rem;
}

.empty-mixture strong {
  color: #c9c8c2;
  font-size: .88rem;
}

.empty-mixture p {
  margin: 7px 0 0;
  font-size: .76rem;
}

.mixture-item {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid #333338;
  border-left: 4px solid var(--item-color, var(--yellow));
  border-radius: 4px;
  background: #1a1a1d;
}

.mixture-top {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.mixture-thumb {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  overflow: hidden;
  border: 1px solid #414147;
  border-radius: 3px;
  background: #101012;
  color: var(--item-color, var(--yellow));
}

.mixture-thumb img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.mixture-thumb i {
  font-size: .82rem;
}

.mixture-top strong {
  overflow: hidden;
  font-size: .78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mixture-top small {
  display: block;
  margin-top: 2px;
  color: #8f8e89;
  font-size: .65rem;
}

.remove-item {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8f8f94;
  cursor: pointer;
}

.remove-item:hover {
  color: var(--red);
}

.mixture-controls {
  display: grid;
  grid-template-columns: 1fr 78px;
  gap: 8px;
  align-items: center;
}

.mixture-controls input[type="range"] {
  width: 100%;
  accent-color: var(--item-color, var(--yellow));
}

.ounce-input {
  display: flex;
  align-items: center;
  border: 1px solid #44444a;
  border-radius: 3px;
  background: #0f0f11;
}

.ounce-input input {
  min-width: 0;
  width: 100%;
  padding: 7px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--white);
  text-align: right;
}

.ounce-input span {
  padding-right: 7px;
  color: #8d8c87;
  font-size: .62rem;
}

.form-select {
  width: 100%;
  padding: 7px 9px;
  border: 1px solid #3e3e43;
  border-radius: 3px;
  background: #111113;
  color: #cccac3;
  font-size: .68rem;
}

.drawer-total {
  display: flex;
  justify-content: space-between;
  padding: 15px 20px;
  border-top: 1px solid var(--line);
  color: #aaa9a4;
  font-size: .75rem;
}

.drawer-total strong {
  color: var(--white);
}

.drawer-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: #18181b;
}

.flavor-commentary {
  position: sticky;
  z-index: 18;
  bottom: 12px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  width: min(920px, calc(100% - 24px));
  min-height: 68px;
  margin: 18px auto 0;
  padding: 11px 15px;
  border: 1px solid rgba(189, 115, 255, .5);
  border-left: 6px solid var(--purple);
  border-radius: 5px;
  background: rgba(17, 17, 19, .96);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .45);
  backdrop-filter: blur(12px);
}

.flavor-commentary > span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: rgba(189, 115, 255, .12);
  color: var(--purple);
}

.flavor-commentary p {
  display: grid;
  gap: 1px;
  margin: 0;
}

.flavor-commentary small {
  color: var(--purple);
  font-size: .58rem;
  font-weight: 950;
  text-transform: uppercase;
}

.flavor-commentary strong {
  color: #fff4a8;
  font-size: .78rem;
  line-height: 1.35;
}

.flavor-commentary strong.is-changing {
  animation: quip-pop .25s ease both;
}

@keyframes quip-pop {
  from { opacity: .35; transform: translateY(3px); }
  to { opacity: 1; transform: none; }
}

.identity-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, .75fr);
  gap: 18px;
  width: min(1100px, 100%);
  margin: 0 auto;
}

.recipe-form {
  padding: clamp(20px, 3vw, 34px);
}

.recipe-form fieldset {
  margin: 0 0 26px;
  padding: 0;
  border: 0;
}

.recipe-form legend {
  margin-bottom: 12px;
  font-size: .75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.size-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.size-options button {
  display: grid;
  gap: 3px;
  min-height: 70px;
  padding: 10px;
  border: 1px solid #424247;
  border-radius: 4px;
  background: #1b1b1e;
  font-size: .95rem;
  font-weight: 900;
  cursor: pointer;
}

.size-options button small {
  color: #91908b;
  font-size: .62rem;
  text-transform: uppercase;
}

.size-options button.is-selected {
  border-color: var(--yellow);
  background: var(--yellow);
  color: #111;
}

.size-options button.is-selected small {
  color: #50450a;
}

.field {
  display: grid;
  gap: 7px;
}

.field > span {
  color: #c9c8c2;
  font-size: .72rem;
  font-weight: 800;
}

.field > span small {
  color: #77777d;
}

.field input,
.field textarea,
.field select,
.public-link-field input,
.search-field input {
  width: 100%;
  border: 1px solid #414146;
  border-radius: 4px;
  outline: 0;
  background: #111113;
  color: var(--white);
}

.field input,
.field select {
  min-height: 44px;
  padding: 9px 11px;
}

.field textarea {
  resize: vertical;
  padding: 11px;
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.public-link-field input:focus,
.search-field input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(53, 215, 255, .1);
}

.compact-field {
  max-width: 260px;
  margin-top: 12px;
}

.input-with-unit {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid #414146;
  border-radius: 4px;
  background: #111113;
}

.input-with-unit input {
  border: 0;
}

.input-with-unit b {
  padding: 0 12px;
  color: var(--yellow);
  font-size: .7rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.full-field {
  grid-column: 1 / -1;
}

.consent-row {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  color: #aaa9a4;
  font-size: .7rem;
}

.consent-row input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--yellow);
}

.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 24px;
}

.form-error {
  min-height: 22px;
  margin: 12px 0 0;
  color: #ff7d67;
  font-size: .75rem;
}

.recipe-review {
  position: sticky;
  top: 92px;
  align-self: start;
  padding: 24px;
  overflow: hidden;
}

.recipe-review::before {
  display: block;
  height: 5px;
  margin: -24px -24px 22px;
  background: var(--yellow);
  content: "";
}

.review-beaker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  color: var(--yellow);
  font-size: 2rem;
}

.review-beaker span {
  padding: 6px 9px;
  border: 1px solid #4b4b51;
  border-radius: 4px;
  color: var(--white);
  font-size: .75rem;
  font-weight: 900;
}

.recipe-review > p:not(.kicker) {
  margin: 6px 0 16px;
  color: var(--muted);
  font-size: .77rem;
  text-transform: capitalize;
}

#review-items {
  display: grid;
  gap: 6px;
  padding: 14px 0;
  border-top: 1px solid #343439;
  border-bottom: 1px solid #343439;
}

.review-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #c8c7c1;
  font-size: .7rem;
}

.review-profile {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  margin-top: 16px;
}

.review-profile span {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 7px 3px;
  border: 1px solid #38383d;
  border-radius: 3px;
  color: #979691;
  font-size: .55rem;
  text-transform: uppercase;
}

.review-profile b {
  color: var(--white);
  font-size: .8rem;
}

.result-core {
  max-width: 940px;
  margin: 0 auto;
  text-align: center;
}

.success-mark {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  border: 2px solid var(--green);
  border-radius: 50%;
  background: rgba(120, 228, 67, .12);
  color: var(--green);
  font-size: 1.7rem;
}

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

.result-action {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 90px;
  padding: 14px;
  border: 1px solid #3c3c42;
  border-top: 4px solid var(--yellow);
  border-radius: 5px;
  background: #171719;
  color: var(--white);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.result-action:nth-child(2) { border-top-color: var(--red); }
.result-action:nth-child(3) { border-top-color: var(--cyan); }
.result-action:nth-child(4) { border-top-color: var(--green); }
.result-action:nth-child(5) { border-top-color: var(--purple); }

.result-action:hover {
  background: #222225;
}

.result-action > i {
  width: 28px;
  color: var(--yellow);
  font-size: 1.4rem;
  text-align: center;
}

.result-action:nth-child(2) > i { color: var(--red); }
.result-action:nth-child(3) > i { color: var(--cyan); }
.result-action:nth-child(4) > i { color: var(--green); }
.result-action:nth-child(5) > i { color: var(--purple); }

.result-action span {
  display: grid;
}

.result-action strong {
  font-size: .79rem;
}

.result-action small {
  margin-top: 4px;
  color: #8f8e89;
  font-size: .63rem;
}

.result-action:disabled {
  cursor: wait;
  opacity: .72;
}

.result-action-status {
  min-height: 22px;
  margin: 12px 0 0;
  color: #a9a8a2;
  font-size: .72rem;
  font-weight: 800;
}

.result-action-status.is-success {
  color: var(--green);
}

.result-action-status.is-error {
  color: var(--red);
}

.premixed-callout {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
  padding: 13px 18px 13px 13px;
  overflow: hidden;
  border: 1px solid #414147;
  border-left: 5px solid var(--red);
  border-radius: 5px;
  background: #151518;
  color: var(--white);
  text-align: left;
  text-decoration: none;
}

.premixed-callout:hover {
  border-color: var(--yellow);
  background: #1d1d20;
}

.premixed-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  height: 112px;
}

.premixed-gallery img {
  width: 100%;
  height: 112px;
  border-radius: 3px;
  object-fit: cover;
  object-position: center;
}

.premixed-copy {
  display: grid;
  gap: 4px;
}

.premixed-copy small {
  color: var(--red);
  font-size: .63rem;
  font-weight: 900;
  text-transform: uppercase;
}

.premixed-copy strong {
  font-size: 1.1rem;
}

.premixed-copy em {
  color: #9f9e99;
  font-size: .72rem;
  font-style: normal;
}

.premixed-callout > i {
  color: var(--yellow);
  font-size: 1.2rem;
}

.public-link-field {
  display: grid;
  gap: 7px;
  max-width: 650px;
  margin: 24px auto;
  text-align: left;
}

.public-link-field span {
  color: #9c9b96;
  font-size: .67rem;
  font-weight: 800;
  text-transform: uppercase;
}

.public-link-field input {
  min-height: 46px;
  padding: 10px 12px;
}

.lab-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(18px, 3vw, 44px);
  border-top: 1px solid var(--line);
  color: #83827e;
  font-size: .7rem;
}

.lab-footer span {
  color: var(--yellow);
  font-weight: 900;
  text-transform: uppercase;
}

.lab-footer a {
  text-decoration: none;
}

.lab-footer a:hover {
  color: var(--yellow);
}

.lab-footer-links {
  display: flex;
  gap: 16px;
}

.lab-footer-links i {
  margin-right: 5px;
  color: #4a8df6;
}

.lab-modal {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: none;
  place-items: center;
  padding: 22px;
  background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(8px);
}

.lab-modal.is-open {
  display: grid;
}

.modal-shell {
  width: min(1180px, 100%);
  max-height: 91vh;
  overflow: auto;
  border: 1px solid #424249;
  border-radius: 6px;
  background: #121214;
  box-shadow: var(--shadow);
}

.modal-header {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-bottom: 1px solid #35353a;
  background: #151517;
}

.modal-header .kicker {
  margin-bottom: 4px;
}

.modal-header h2 {
  font-size: 1.2rem;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #45454b;
  border-radius: 4px;
  background: #212124;
  cursor: pointer;
}

.icon-button:hover {
  border-color: var(--red);
  color: var(--red);
}

.ingredient-tools {
  display: flex;
  gap: 10px;
  padding: 16px 22px 8px;
}

.search-field {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 9px;
  min-width: 220px;
  padding: 0 12px;
  border: 1px solid #414146;
  border-radius: 4px;
  background: #0e0e10;
  color: #77777c;
}

.search-field input {
  min-height: 43px;
  padding: 0;
  border: 0;
}

.category-tabs {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 10px 22px 14px;
  scrollbar-width: thin;
}

.category-tabs button {
  flex: 0 0 auto;
  padding: 8px 10px;
  border: 1px solid #3d3d42;
  border-radius: 999px;
  background: #1c1c1f;
  color: #aaa9a4;
  font-size: .66rem;
  font-weight: 800;
  cursor: pointer;
}

.category-tabs button.is-active {
  border-color: var(--yellow);
  background: var(--yellow);
  color: #101010;
}

.ingredient-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 8px 22px 24px;
}

.ingredient-card {
  --ingredient-color: var(--yellow);
  position: relative;
  display: grid;
  grid-template-rows: 76px auto 1fr auto;
  min-height: 245px;
  overflow: hidden;
  padding: 0;
  border: 1px solid #36363b;
  border-top: 4px solid var(--ingredient-color);
  border-radius: 4px;
  background: #1a1a1d;
  text-align: left;
  cursor: pointer;
}

.ingredient-card:hover {
  border-color: var(--ingredient-color);
  background: #222225;
}

.ingredient-visual {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin: 13px auto;
  overflow: hidden;
  border: 1px solid #34343a;
  border-radius: 4px;
  background: #111113;
}

.ingredient-visual img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  object-position: center;
}

.ingredient-visual i {
  color: var(--ingredient-color);
  font-size: 1.35rem;
}

.ingredient-card > strong {
  padding: 12px 12px 2px;
  font-size: .78rem;
}

.ingredient-card > p {
  margin: 0;
  padding: 5px 12px;
  color: #94938e;
  font-size: .66rem;
}

.ingredient-signals {
  display: flex;
  gap: 4px;
  padding: 8px 12px 12px;
}

.ingredient-signals span {
  display: grid;
  place-items: center;
  min-width: 25px;
  height: 23px;
  padding: 0 4px;
  border: 1px solid #414147;
  border-radius: 3px;
  color: #b8b7b1;
  font-size: .6rem;
  font-weight: 900;
}

.empty-catalog {
  grid-column: 1 / -1;
  padding: 70px 20px;
  color: #888782;
  text-align: center;
}

.custom-shell {
  width: min(760px, 100%);
  padding-bottom: 22px;
}

.custom-grid,
.custom-help,
.custom-signals,
.custom-shell > .form-actions {
  margin-right: 22px;
  margin-left: 22px;
}

.custom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 22px;
}

.custom-help {
  margin-top: 22px;
  color: #a7a6a0;
  font-size: .74rem;
}

.custom-signals {
  display: grid;
  gap: 11px;
}

.custom-signals label {
  display: grid;
  grid-template-columns: 110px 1fr 30px;
  gap: 12px;
  align-items: center;
  padding: 9px 11px;
  border: 1px solid #37373c;
  border-radius: 4px;
  background: #19191c;
}

.custom-signals span {
  font-size: .7rem;
  font-weight: 800;
}

.custom-signals span i {
  width: 20px;
  color: var(--yellow);
}

.custom-signals input {
  width: 100%;
  accent-color: var(--yellow);
}

.custom-signals output {
  color: var(--yellow);
  font-weight: 900;
  text-align: right;
}

.setup-notice {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 100vh;
  padding: 30px;
  text-align: center;
}

.setup-notice img {
  width: min(300px, 75vw);
  margin-bottom: 20px;
}

.setup-notice h1 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 2.5rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

.setup-notice > p:not(.kicker) {
  max-width: 540px;
  color: var(--muted);
}

@media (max-width: 1180px) {
  .type-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .type-card {
    min-height: 300px;
  }

  .ingredient-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .analysis-grid {
    grid-template-columns: 1fr;
  }

  .signal-stack {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 920px) {
  .build-layout {
    grid-template-columns: 1fr;
  }

  .recipe-drawer,
  .recipe-review {
    position: static;
  }

  .recipe-items {
    max-height: none;
  }

  .identity-layout {
    grid-template-columns: 1fr;
  }

  .recipe-review {
    order: -1;
  }

  .result-actions {
    grid-template-columns: repeat(2, 1fr);
  }

  .premixed-callout {
    grid-template-columns: 190px minmax(0, 1fr) auto;
  }

  .ingredient-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .starter-guide {
    grid-template-columns: auto 1fr;
  }

  .starter-chips {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .lab-header {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    min-height: 62px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .lab-mark img {
    width: 42px;
    height: 42px;
  }

  .lab-mark strong {
    display: none;
  }

  .lab-mark small {
    display: block;
    max-width: 112px;
    margin-top: 0;
    font-size: .53rem;
    line-height: 1.2;
  }

  .showcase-link {
    width: 42px;
    min-height: 42px;
    padding: 0;
    font-size: 0;
  }

  .showcase-link i {
    font-size: .95rem;
  }

  .back-to-brand {
    justify-content: center;
    width: 42px;
    min-height: 42px;
    font-size: 0;
  }

  .back-to-brand i {
    font-size: 1rem;
  }

  .lab-main {
    width: min(100% - 24px, 1480px);
    padding-top: 18px;
  }

  .step-rail {
    grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
    margin-bottom: 30px;
  }

  .step-node {
    min-width: 36px;
  }

  .step-node small {
    display: none;
  }

  .type-grid {
    grid-template-columns: 1fr;
  }

  .type-card {
    grid-template-columns: 72px 1fr;
    grid-template-rows: auto auto;
    min-height: 218px;
    padding: 22px;
  }

  .type-card > i {
    grid-row: 1 / -1;
    font-size: 2.8rem;
  }

  .type-card span {
    align-self: start;
  }

  .type-card strong {
    font-size: 1.6rem;
  }

  .type-card b {
    grid-column: 2;
    margin-top: 14px;
  }

  .type-card em {
    min-height: 0;
    margin-top: 2px;
    padding: 7px 8px;
    font-size: .62rem;
  }

  .bench-toolbar {
    align-items: flex-end;
  }

  .bench-toolbar .lab-button {
    width: 46px;
    min-width: 46px;
    padding: 0;
    font-size: 0;
  }

  .bench-toolbar .lab-button i {
    font-size: .9rem;
  }

  .analysis-bench {
    padding: 14px;
  }

  .starter-guide {
    grid-template-columns: auto 1fr;
    padding: 11px;
  }

  .starter-chips {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .starter-chips button {
    width: 100%;
    text-align: left;
  }

  .analysis-grid {
    display: block;
  }

  .profile-card {
    margin-bottom: 12px;
  }

  .radar-wrap {
    min-height: 300px;
  }

  #profile-radar {
    height: 300px;
  }

  .signal-stack {
    grid-template-columns: 1fr;
  }

  .size-options {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-grid,
  .custom-grid {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .form-actions .lab-button {
    width: 100%;
  }

  .result-actions {
    grid-template-columns: 1fr;
  }

  .lab-footer {
    display: grid;
    justify-items: center;
    text-align: center;
  }

  .lab-footer-links {
    justify-content: center;
  }

  .premixed-callout {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 11px 13px 11px 11px;
  }

  .premixed-gallery {
    grid-column: 1 / -1;
    height: 92px;
  }

  .premixed-gallery img {
    height: 92px;
  }

  .premixed-copy strong {
    font-size: .92rem;
  }

  .flavor-commentary {
    bottom: 5px;
    width: calc(100% - 8px);
    min-height: 62px;
    padding: 9px 11px;
  }

  .flavor-commentary strong {
    font-size: .72rem;
  }

  .lab-modal {
    align-items: end;
    padding: 0;
  }

  .modal-shell {
    max-height: 94vh;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 6px 6px 0 0;
  }

  .ingredient-tools {
    display: grid;
  }

  .ingredient-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 8px 12px 18px;
  }

  .category-tabs,
  .ingredient-tools {
    padding-right: 12px;
    padding-left: 12px;
  }

  .ingredient-card {
    grid-template-rows: 90px auto 1fr auto;
    min-height: 250px;
  }

  .custom-signals label {
    grid-template-columns: 88px 1fr 24px;
  }
}

@media (max-width: 390px) {
  .ingredient-grid {
    grid-template-columns: 1fr;
  }

  .type-card {
    grid-template-columns: 58px 1fr;
  }

  .drawer-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

.public-recipe-page {
  background: #0b0b0c;
}

.public-recipe-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 16px 0;
}

.public-recipe-nav > a:first-child img {
  display: block;
  width: 86px;
  height: 70px;
  object-fit: contain;
}

.public-lab-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
}

.public-lab-brand span {
  display: grid;
}

.public-lab-brand strong {
  font-size: .78rem;
}

.public-lab-brand small {
  margin-top: 2px;
  color: #888782;
  font-size: .58rem;
}

.public-nav-actions {
  display: flex;
  gap: 8px;
}

.public-recipe {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 12px 0 60px;
}

.recipe-sheet {
  position: relative;
  overflow: hidden;
  border: 1px solid #3d3d43;
  border-top: 7px solid var(--yellow);
  border-radius: 6px;
  background: #151518;
  box-shadow: var(--shadow);
}

.recipe-sheet::after {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 211, 20, .18);
  pointer-events: none;
  content: "";
}

.sheet-branding {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 92px 1fr 92px;
  align-items: center;
  gap: 20px;
  min-height: 118px;
  padding: 14px clamp(24px, 5vw, 54px);
  border-bottom: 1px solid #39393f;
  background: #101012;
}

.sheet-branding img {
  width: 92px;
  height: 86px;
  object-fit: contain;
}

.sheet-branding span {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  color: #8c8b86;
  text-align: center;
}

.sheet-branding small,
.sheet-branding b {
  font-size: .63rem;
  text-transform: uppercase;
}

.sheet-branding b {
  color: #c9c7be;
}

.sheet-branding i {
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  background: var(--red);
}

.sheet-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 5vw, 54px);
  border-bottom: 1px solid #39393f;
  background: #19191c;
}

.sheet-header h1 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(2.1rem, 5vw, 4rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.sheet-header p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .84rem;
}

.batch-stamp {
  display: grid;
  justify-items: center;
  flex: 0 0 130px;
  gap: 7px;
  padding: 20px;
  border: 2px solid var(--yellow);
  border-radius: 5px;
  color: var(--yellow);
}

.batch-stamp i {
  font-size: 2rem;
}

.batch-stamp span {
  color: var(--white);
  font-weight: 900;
}

.batch-stamp small {
  color: #8e8d88;
  font-size: .58rem;
  text-transform: uppercase;
}

.sheet-meta-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid #39393f;
  background: #111113;
}

.sheet-meta-strip > span {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 1px 9px;
  align-items: center;
  padding: 15px clamp(16px, 3vw, 28px);
  border-right: 1px solid #343439;
}

.sheet-meta-strip > span:last-child {
  border-right: 0;
}

.sheet-meta-strip i {
  grid-row: 1 / 3;
  color: var(--yellow);
  font-size: 1rem;
}

.sheet-meta-strip small {
  color: #777671;
  font-size: .55rem;
  font-weight: 800;
  text-transform: uppercase;
}

.sheet-meta-strip b {
  overflow: hidden;
  font-size: .69rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sheet-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
}

.recipe-visuals-public {
  position: relative;
  z-index: 1;
  padding: clamp(24px, 4vw, 44px);
  border-top: 1px solid #39393f;
  background: #101012;
}

.recipe-chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.recipe-chart-card {
  display: grid;
  grid-template-rows: auto minmax(230px, auto) auto;
  min-width: 0;
  margin: 0;
  padding: 20px;
  border: 1px solid #36363b;
  border-top: 4px solid var(--yellow);
  border-radius: 5px;
  background: #18181b;
}

.recipe-chart-card:last-child {
  border-top-color: var(--purple);
}

.recipe-chart-card figcaption {
  display: grid;
  gap: 4px;
  min-height: 48px;
}

.recipe-chart-card figcaption strong {
  color: var(--white);
  font-size: .82rem;
}

.recipe-chart-card figcaption span {
  color: #8e8d88;
  font-size: .64rem;
  line-height: 1.45;
}

.recipe-chart-card canvas {
  display: block;
  width: min(100%, 520px);
  height: auto;
  margin: 4px auto 8px;
  aspect-ratio: 13 / 9;
}

.recipe-pie-legend,
.recipe-wheel-key {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px 12px;
  min-height: 24px;
}

.recipe-pie-legend span,
.recipe-wheel-key span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #aaa9a4;
  font-size: .59rem;
  font-weight: 800;
}

.recipe-pie-legend i,
.recipe-wheel-key i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--key-color);
}

.formula-column,
.profile-column,
.recipe-notes-public {
  padding: clamp(24px, 4vw, 44px);
}

.profile-column {
  border-left: 1px solid #39393f;
  background: #121214;
}

.sheet-section-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 22px;
}

.sheet-section-heading > span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--yellow);
  color: #111;
  font-size: .7rem;
  font-weight: 900;
}

.sheet-section-heading h2 {
  margin: 0;
  font-size: 1rem;
}

.sheet-section-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: .68rem;
}

.formula-table {
  display: grid;
  gap: 7px;
}

.formula-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 13px;
  border: 1px solid #38383d;
  border-radius: 4px;
  background: #1b1b1e;
}

.formula-row strong {
  display: block;
  font-size: .78rem;
}

.formula-row small {
  display: block;
  margin-top: 2px;
  color: #85847f;
  font-size: .62rem;
}

.formula-row b {
  flex: 0 0 auto;
  color: var(--yellow);
  font-size: .76rem;
}

.public-profile {
  display: grid;
  gap: 15px;
}

.profile-tip {
  display: flex;
  gap: 11px;
  margin-top: 24px;
  padding: 13px;
  border: 1px solid #35353a;
  border-left: 4px solid var(--yellow);
  border-radius: 3px;
  background: #19191c;
}

.profile-tip > i {
  color: var(--yellow);
}

.profile-tip p {
  display: grid;
  gap: 3px;
  margin: 0;
}

.profile-tip strong {
  font-size: .68rem;
}

.profile-tip span {
  color: #888782;
  font-size: .62rem;
}

.public-meter {
  display: grid;
  grid-template-columns: 90px 1fr 35px;
  gap: 10px;
  align-items: center;
}

.public-meter > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .7rem;
  font-weight: 800;
}

.public-meter > span i {
  width: 17px;
  color: var(--meter-color);
}

.public-meter > i {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #343439;
}

.public-meter > i::before {
  display: block;
  width: var(--meter-width);
  height: 100%;
  background: var(--meter-color);
  content: "";
}

.public-meter > b {
  font-size: .72rem;
  text-align: right;
}

.recipe-notes-public {
  position: relative;
  z-index: 1;
  border-top: 1px solid #39393f;
}

.recipe-notes-public blockquote {
  margin: 0;
  padding: 18px 20px;
  border-left: 5px solid var(--purple);
  background: #1b1b1e;
  color: #d0cfc9;
  font-size: .85rem;
}

.sheet-footer {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 18px 28px;
  border-top: 1px solid #3a3a3f;
  background: #101012;
}

.sheet-footer img {
  width: 58px;
  height: 48px;
  object-fit: contain;
}

.sheet-footer .sheet-field-logo {
  width: 62px;
}

.sheet-footer div {
  display: grid;
}

.sheet-footer strong {
  font-size: .72rem;
}

.sheet-footer span,
.sheet-footer p {
  color: #777671;
  font-size: .6rem;
}

.sheet-footer p {
  margin: 0;
}

.public-share-panel {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 20px;
  border: 1px solid #39393f;
  border-radius: 5px;
  background: #151518;
}

.public-main-site-link {
  grid-column: 1 / -1;
  padding: 17px 10px 2px;
  border-top: 1px solid #343439;
  color: var(--white);
  font-size: .9rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.public-main-site-link i {
  margin-right: 6px;
  color: var(--red);
}

.public-main-site-link:hover {
  color: var(--yellow);
}

.public-share-panel h2 {
  margin: 0;
  font-size: 1rem;
}

.missing-recipe {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 110px 20px;
  border: 1px solid #39393f;
  border-top: 6px solid var(--red);
  background: #151518;
  text-align: center;
}

.missing-brand-lockup {
  display: grid;
  grid-template-columns: 96px 1px 96px;
  align-items: center;
  gap: 18px;
  margin-bottom: 36px;
}

.missing-brand-lockup img {
  width: 96px;
  height: 82px;
  object-fit: contain;
}

.missing-brand-lockup span {
  width: 1px;
  height: 52px;
  background: #3b3b40;
}

.missing-recipe > i {
  color: var(--yellow);
  font-size: 3rem;
}

.missing-recipe h1 {
  margin: 18px 0 0;
  font-size: 1.6rem;
}

.missing-recipe p {
  max-width: 620px;
  color: var(--muted);
}

.missing-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

@media (max-width: 760px) {
  .public-recipe-nav {
    align-items: flex-start;
  }

  .public-nav-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .public-nav-actions .lab-button:last-child {
    grid-column: 1 / -1;
  }

  .sheet-header {
    align-items: flex-start;
  }

  .sheet-branding {
    grid-template-columns: 66px 1fr 66px;
    gap: 10px;
  }

  .sheet-branding img {
    width: 66px;
    height: 64px;
  }

  .sheet-branding span {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .sheet-branding i {
    display: none;
  }

  .sheet-meta-strip {
    grid-template-columns: 1fr;
  }

  .sheet-meta-strip > span {
    border-right: 0;
    border-bottom: 1px solid #343439;
  }

  .batch-stamp {
    flex-basis: 96px;
    padding: 13px 9px;
  }

  .sheet-grid {
    grid-template-columns: 1fr;
  }

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

  .profile-column {
    border-top: 1px solid #39393f;
    border-left: 0;
  }

  .public-share-panel {
    grid-template-columns: 1fr;
  }

  .sheet-footer {
    grid-template-columns: auto 1fr auto;
  }

  .sheet-footer p {
    grid-column: 1 / -1;
  }

  .missing-actions {
    flex-direction: column;
  }
}

@media print {
  @page {
    size: letter portrait;
    margin: .28in;
  }

  html,
  body,
  .public-recipe-page {
    background: #0b0b0c !important;
    color: #f7f4ed !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .public-recipe-nav,
  .public-share-panel {
    display: none !important;
  }

  .public-recipe {
    width: 100%;
    padding: 0;
  }

  .recipe-sheet {
    overflow: visible;
    border: 1px solid #3d3d43;
    border-top: 7px solid var(--yellow);
    box-shadow: none;
    background: #151518 !important;
  }

  .sheet-header,
  .sheet-branding,
  .sheet-meta-strip,
  .profile-column,
  .sheet-footer,
  .formula-row,
  .recipe-notes-public blockquote {
    color: #f7f4ed !important;
  }

  .sheet-header {
    padding: 24px;
  }

  .recipe-sheet::after {
    display: none;
  }

  .sheet-branding {
    min-height: 74px;
    padding: 8px 24px;
  }

  .sheet-branding img {
    height: 56px;
  }

  .sheet-header h1 {
    font-size: 28pt;
  }

  .formula-column,
  .profile-column,
  .recipe-notes-public {
    padding: 22px;
  }

  .formula-row {
    break-inside: avoid;
  }

  .recipe-visuals-public {
    min-height: 9.2in;
    break-before: page;
    page-break-before: always;
  }

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

  .recipe-chart-card {
    break-inside: avoid;
    background: #18181b !important;
  }

  .recipe-chart-card canvas {
    max-height: 285px;
  }

  .recipe-notes-public {
    break-inside: avoid;
  }
}
