@font-face {
  font-family: "Helvetica Neue Black";
  src: url("../assets/fonts/HelveticaNeueBlack.woff2")
    format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/Montserrat-Regular.woff2")
    format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/Montserrat-Medium.woff2")
    format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/Montserrat-SemiBold.woff2")
    format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/Montserrat-Bold.woff2")
    format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #06080c;
  --surface: #0d1118;
  --surface-raised: #131923;
  --surface-soft: rgba(255, 255, 255, 0.035);

  --text: #f7f8fa;
  --muted: #9ba4b2;
  --dim: #626d7d;

  --blue: #397ff0;
  --blue-light: #79adff;

  --gold: #c9a558;
  --gold-light: #ebc878;

  --danger: #ff6069;

  --border: rgba(255, 255, 255, 0.075);
  --border-strong: rgba(255, 255, 255, 0.13);

  --safe-top: env(safe-area-inset-top);
  --safe-bottom: env(safe-area-inset-bottom);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: auto;
}

body {
  margin: 0;
  min-height: 100vh;

  color: var(--text);

  font-family:
    "Montserrat",
    sans-serif;

  background:
    linear-gradient(
      180deg,
      #0a101a 0%,
      #080d15 220px,
      #06080c 620px
    );

  overscroll-behavior-y: contain;
}

button,
input,
textarea,
select {
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
}

button {
  color: inherit;
  cursor: pointer;
}

button,
input,
textarea,
select,
a {
  transition:
    transform 130ms ease,
    opacity 160ms ease,
    border-color 170ms ease,
    background-color 170ms ease,
    box-shadow 170ms ease;
}

button:active {
  transform: scale(0.965);
}

.icon {
  width: var(--icon-size);
  height: var(--icon-size);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;
}

.icon svg {
  width: 100%;
  height: 100%;

  fill: none;
  stroke: currentColor;

  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hidden {
  display: none !important;
}

.app-shell {
  width: 100%;
  max-width: 460px;

  min-height: 100vh;

  margin: 0 auto;

  padding-bottom:
    calc(
      96px +
      var(--safe-bottom)
    );
}

.app-main {
  min-height: 100vh;
}

.route-enter {
  animation:
    route-enter
    210ms
    cubic-bezier(
      0.22,
      0.75,
      0.24,
      1
    );
}

@keyframes route-enter {
  from {
    opacity: 0;
    transform: translateY(7px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.app-header {
  position: relative;

  padding:
    calc(
      20px +
      var(--safe-top)
    )
    20px
    17px;

  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 18px;

  background: transparent;
}

.app-header-copy {
  min-width: 0;
}

.app-eyebrow {
  display: block;

  margin-bottom: 5px;

  color: var(--blue-light);

  font-size: 0.62rem;
  font-weight: 700;

  letter-spacing: 0.18em;
}

.app-header h1 {
  margin: 0;

  font-family:
    "Helvetica Neue Black",
    sans-serif;

  font-size: 2rem;
  line-height: 0.95;

  letter-spacing: -0.05em;
}

.header-add-button,
.small-add-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border:
    1px solid
    rgba(255, 255, 255, 0.15);

  color: white;

  background:
    linear-gradient(
      180deg,
      #448cff,
      #2768d8
    );

  box-shadow:
    inset
    0
    1px
    0
    rgba(255, 255, 255, 0.2),
    0
    12px
    26px
    rgba(57, 127, 240, 0.18);
}

.header-add-button {
  width: 47px;
  height: 47px;
  border-radius: 16px;
}

.small-add-button {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.quote-strip {
  margin:
    6px
    20px
    19px;

  padding-left: 16px;

  position: relative;

  min-height: 66px;

  transition:
    opacity 150ms ease,
    transform 150ms ease,
    filter 150ms ease;
}

.quote-strip::before {
  content: "";

  position: absolute;

  left: 0;
  top: 1px;
  bottom: 1px;

  width: 3px;

  border-radius: 999px;

  background:
    linear-gradient(
      180deg,
      var(--blue),
      var(--gold)
    );
}

.quote-strip.quote-changing {
  opacity: 0;

  transform:
    translateY(3px)
    scale(0.993);

  filter: blur(2px);
}

.quote-strip > span {
  display: block;

  margin-bottom: 6px;

  color: var(--gold-light);

  font-size: 0.55rem;
  font-weight: 700;

  letter-spacing: 0.17em;
}

.quote-strip blockquote {
  margin:
    0
    0
    5px;

  font-family:
    "Helvetica Neue Black",
    sans-serif;

  font-size: 1.45rem;
  line-height: 1;

  letter-spacing: -0.035em;
}

.quote-strip cite {
  color: var(--dim);

  font-size: 0.63rem;
  font-style: normal;
  font-weight: 600;
}

.let-it-rip-quote {
  width:
    min(
      var(--let-it-rip-width, 150px),
      78vw
    );

  margin:
    1px
    0
    4px;
}

.let-it-rip-quote img {
  display: block;

  width: 100%;
  height: auto;
  max-height: 48px;

  object-fit: contain;
  object-position: left center;
}

.quick-command-grid {
  padding:
    2px
    20px
    0;

  display: grid;

  grid-template-columns:
    repeat(
      4,
      minmax(0, 1fr)
    );

  gap: 8px;
}

.quick-command {
  min-width: 0;

  padding:
    8px
    3px;

  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 7px;

  border: 0;

  background: transparent;
}

.quick-command-icon {
  width: 52px;
  height: 52px;

  display: flex;
  align-items: center;
  justify-content: center;

  border:
    1px solid
    var(--border);

  border-radius: 17px;

  color: var(--blue-light);

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.065),
      rgba(255, 255, 255, 0.02)
    );

  box-shadow:
    inset
    0
    1px
    0
    rgba(255, 255, 255, 0.055);

  transition:
    transform 170ms ease,
    border-color 170ms ease,
    box-shadow 170ms ease;
}

.quick-command:active
.quick-command-icon {
  transform:
    translateY(1px)
    scale(0.94);
}

.quick-command > span:last-child {
  color: var(--muted);

  font-size: 0.6rem;
  font-weight: 600;
}

.service-summary {
  margin:
    20px
    20px
    0;

  padding:
    17px
    0;

  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  border-top:
    1px solid
    var(--border);

  border-bottom:
    1px solid
    var(--border);
}

.service-summary > div {
  min-width: 0;

  text-align: center;
}

.service-summary > div + div {
  border-left:
    1px solid
    var(--border);
}

.service-summary strong {
  display: block;

  font-family:
    "Helvetica Neue Black",
    sans-serif;

  font-size: 1.5rem;
}

.service-summary span {
  color: var(--dim);

  font-size: 0.59rem;
}

.service-summary .warning strong {
  color: var(--gold-light);
}

.pass-section {
  padding:
    24px
    20px
    0;
}

.section-heading-row {
  margin-bottom: 12px;

  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.section-heading-row span {
  display: block;

  margin-bottom: 4px;

  color: var(--blue-light);

  font-size: 0.55rem;
  font-weight: 700;

  letter-spacing: 0.17em;
}

.section-heading-row h2 {
  margin: 0;

  font-family:
    "Helvetica Neue Black",
    sans-serif;

  font-size: 1.5rem;

  letter-spacing: -0.04em;
}

.recent-stack {
  border-top:
    1px solid
    var(--border);
}

.recent-item {
  width: 100%;

  min-height: 68px;

  padding:
    13px
    1px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 13px;

  border: 0;

  border-bottom:
    1px solid
    var(--border);

  text-align: left;

  background: transparent;
}

.recent-item div {
  min-width: 0;
}

.recent-item div > span {
  display: block;

  margin-bottom: 4px;

  color: var(--gold);

  font-size: 0.54rem;
  font-weight: 700;

  letter-spacing: 0.1em;

  text-transform: uppercase;
}

.recent-item strong {
  display: block;

  overflow: hidden;

  font-size: 0.78rem;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-item > .icon,
.menu-item > .icon {
  color: var(--dim);

  transition:
    transform 160ms ease,
    color 160ms ease;
}

.recent-item:active > .icon,
.menu-item:active > .icon {
  transform: translateX(4px);
}

.stagger-list > * {
  animation:
    list-enter
    260ms
    both
    cubic-bezier(
      0.22,
      0.78,
      0.24,
      1
    );
}

.stagger-list > *:nth-child(2) {
  animation-delay: 24ms;
}

.stagger-list > *:nth-child(3) {
  animation-delay: 48ms;
}

.stagger-list > *:nth-child(4) {
  animation-delay: 72ms;
}

.stagger-list > *:nth-child(5) {
  animation-delay: 96ms;
}

.stagger-list > *:nth-child(6) {
  animation-delay: 120ms;
}

@keyframes list-enter {
  from {
    opacity: 0;
    transform: translateY(7px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.library-controls,
.page-controls {
  padding:
    4px
    20px
    0;
}

.search-field {
  height: 48px;

  padding:
    0
    14px;

  display: flex;
  align-items: center;

  gap: 10px;

  border:
    1px solid
    var(--border);

  border-radius: 15px;

  color: var(--dim);

  background:
    rgba(255, 255, 255, 0.034);
}

.search-field:focus-within {
  transform: translateY(-1px);

  border-color:
    rgba(121, 173, 255, 0.45);

  box-shadow:
    0
    0
    0
    3px
    rgba(57, 127, 240, 0.07),
    0
    10px
    25px
    rgba(0, 0, 0, 0.14);
}

.search-field input {
  width: 100%;
  height: 100%;

  padding: 0;

  border: 0;
  outline: 0;

  color: var(--text);

  background: transparent;
}

.segmented-control {
  margin-top: 10px;

  padding: 3px;

  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 3px;

  border:
    1px solid
    var(--border);

  border-radius: 14px;

  background:
    rgba(255, 255, 255, 0.022);
}

.segmented-control button {
  min-height: 38px;

  padding:
    0
    8px;

  border: 0;

  border-radius: 11px;

  color: var(--dim);

  background: transparent;

  font-size: 0.66rem;
  font-weight: 600;
}

.segmented-control button.active {
  color: white;

  background:
    linear-gradient(
      180deg,
      #3d85f6,
      #2867d1
    );

  box-shadow:
    0
    7px
    17px
    rgba(57, 127, 240, 0.17);
}

.library-stack {
  padding:
    12px
    20px
    20px;

  display: grid;

  gap: 8px;
}

.library-item {
  position: relative;

  width: 100%;

  padding:
    15px
    45px
    15px
    15px;

  border:
    1px solid
    var(--border);

  border-radius: 18px;

  text-align: left;

  background:
    rgba(255, 255, 255, 0.03);
}

.library-item h2 {
  margin:
    12px
    0
    6px;

  font-family:
    "Helvetica Neue Black",
    sans-serif;

  font-size: 1.28rem;
  line-height: 1.03;

  letter-spacing: -0.035em;
}

.item-badge {
  display: inline-flex;

  padding:
    5px
    8px;

  border:
    1px solid
    rgba(57, 127, 240, 0.24);

  border-radius: 999px;

  color: var(--blue-light);

  background:
    rgba(57, 127, 240, 0.075);

  font-size: 0.56rem;
  font-weight: 700;
}

.item-tags {
  margin:
    0
    0
    7px;

  color: var(--gold);

  font-size: 0.62rem;
}

.item-preview {
  display: -webkit-box;

  margin: 0;

  overflow: hidden;

  color: var(--muted);

  font-size: 0.7rem;
  line-height: 1.5;

  line-clamp: 2;
  -webkit-line-clamp: 2;

  -webkit-box-orient: vertical;
}

.item-chevron {
  position: absolute;

  right: 15px;
  top: 50%;

  color: var(--dim);

  transform: translateY(-50%);
}

.detail-page {
  padding:
    3px
    20px
    24px;
}

.back-link {
  margin-bottom: 14px;

  padding:
    7px
    10px
    7px
    7px;

  display: inline-flex;
  align-items: center;

  gap: 4px;

  border:
    1px solid
    var(--border);

  border-radius: 999px;

  color: var(--muted);

  background:
    rgba(255, 255, 255, 0.03);

  font-size: 0.66rem;
}

.back-link .icon {
  transform: rotate(180deg);
}

.recipe-hero,
.text-detail {
  padding:
    18px
    0
    4px;
}

.recipe-top-line {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;
}

.recipe-badges {
  display: flex;
  align-items: center;

  gap: 8px;
}

.recipe-tag {
  color: var(--gold);

  font-size: 0.62rem;
}

.item-actions {
  display: flex;

  gap: 6px;
}

.item-actions button,
.item-delete,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border:
    1px solid
    var(--border);

  border-radius: 11px;

  background:
    rgba(255, 255, 255, 0.03);
}

.item-actions button {
  width: 37px;
  height: 37px;

  color: var(--blue-light);
}

.item-actions .danger-button,
.danger-button,
.item-delete {
  color: var(--danger);

  border-color:
    rgba(255, 96, 105, 0.17);

  background:
    rgba(255, 96, 105, 0.055);
}

.recipe-hero h1,
.text-detail h1 {
  margin:
    21px
    0
    8px;

  font-family:
    "Helvetica Neue Black",
    sans-serif;

  font-size:
    clamp(
      2.4rem,
      11vw,
      3.4rem
    );

  line-height: 0.92;

  letter-spacing: -0.06em;
}

.recipe-yield {
  margin:
    0
    0
    17px;

  color: var(--muted);

  font-size: 0.7rem;
}

.recipe-times {
  display: grid;

  grid-template-columns:
    repeat(
      auto-fit,
      minmax(80px, 1fr)
    );

  border-top:
    1px solid
    var(--border);

  border-bottom:
    1px solid
    var(--border);
}

.recipe-times > div {
  padding:
    13px
    3px;
}

.recipe-times > div + div {
  border-left:
    1px solid
    var(--border);
}

.recipe-times span,
.recipe-times strong {
  display: block;

  text-align: center;
}

.recipe-times span {
  color: var(--dim);

  font-size: 0.55rem;
}

.recipe-times strong {
  margin-top: 4px;

  font-size: 0.69rem;
}

.batch-control {
  margin-top: 13px;

  padding:
    12px
    13px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;

  border:
    1px solid
    var(--border);

  border-radius: 16px;

  background:
    rgba(255, 255, 255, 0.028);
}

.batch-control > div:first-child span {
  display: block;

  color: var(--blue-light);

  font-size: 0.54rem;
  font-weight: 700;

  letter-spacing: 0.15em;
}

.batch-control > div:first-child strong {
  display: block;

  margin-top: 3px;

  font-family:
    "Helvetica Neue Black",
    sans-serif;

  font-size: 1.35rem;
}

.stepper {
  display: grid;

  grid-template-columns:
    38px
    57px
    38px;

  gap: 5px;
}

.stepper button,
.stepper input {
  height: 38px;

  border:
    1px solid
    var(--border);

  border-radius: 11px;

  color: var(--text);

  text-align: center;

  background:
    rgba(255, 255, 255, 0.035);
}

.recipe-units {
  margin-top: 9px;
}

.source-link {
  display: inline-flex;

  margin:
    13px
    0
    2px;

  color: var(--blue-light);

  font-size: 0.67rem;
  font-weight: 600;

  text-decoration: none;
}

.recipe-section {
  margin-top: 21px;
}

.recipe-section-title {
  margin-bottom: 9px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.recipe-section-title span {
  color: var(--blue-light);

  font-size: 0.56rem;
  font-weight: 700;

  letter-spacing: 0.16em;
}

.recipe-section-title strong {
  color: var(--dim);

  font-size: 0.59rem;
}

.ingredient-list {
  margin: 0;
  padding: 0;

  list-style: none;

  border-top:
    1px solid
    var(--border);
}

.ingredient-row {
  padding:
    11px
    1px;

  display: grid;

  grid-template-columns:
    minmax(76px, auto)
    1fr;

  gap: 10px;

  border-bottom:
    1px solid
    var(--border);
}

.ingredient-measure {
  font-size: 0.7rem;
}

.ingredient-name {
  color: var(--muted);

  font-size: 0.7rem;
  line-height: 1.5;
}

.ingredient-name.full {
  grid-column:
    1 / -1;
}

.method-list {
  border-top:
    1px solid
    var(--border);
}

.method-step {
  padding:
    13px
    1px;

  display: grid;

  grid-template-columns:
    27px
    1fr;

  gap: 11px;

  border-bottom:
    1px solid
    var(--border);
}

.method-step > span {
  width: 27px;
  height: 27px;

  display: flex;
  align-items: center;
  justify-content: center;

  border:
    1px solid
    rgba(57, 127, 240, 0.24);

  border-radius: 9px;

  color: var(--blue-light);

  background:
    rgba(57, 127, 240, 0.075);

  font-size: 0.62rem;
  font-weight: 700;
}

.method-step p {
  margin: 2px 0 0;

  color: var(--muted);

  font-size: 0.72rem;
  line-height: 1.6;
}

.notes-copy,
.text-detail > p {
  color: var(--muted);

  font-size: 0.74rem;
  line-height: 1.65;

  white-space: pre-wrap;
}

.menu-stack {
  padding:
    2px
    20px
    22px;
}

.menu-item {
  width: 100%;

  min-height: 74px;

  padding:
    12px
    0;

  display: grid;

  grid-template-columns:
    46px
    minmax(0, 1fr)
    auto;

  gap: 12px;

  align-items: center;

  border: 0;

  border-bottom:
    1px solid
    var(--border);

  text-align: left;

  background: transparent;
}

.menu-item-icon {
  width: 46px;
  height: 46px;

  display: flex;
  align-items: center;
  justify-content: center;

  border:
    1px solid
    var(--border);

  border-radius: 15px;

  color: var(--blue-light);

  background:
    rgba(255, 255, 255, 0.03);
}

.menu-item-copy {
  min-width: 0;
}

.menu-item-copy strong,
.menu-item-copy small {
  display: block;
}

.menu-item-copy strong {
  font-size: 0.76rem;
}

.menu-item-copy small {
  margin-top: 4px;

  color: var(--dim);

  font-size: 0.61rem;
  line-height: 1.4;
}

.pantry-stack,
.labels-stack {
  padding:
    12px
    20px
    20px;

  display: grid;

  gap: 9px;
}

.pantry-item {
  padding: 14px;

  border:
    1px solid
    var(--border);

  border-radius: 18px;

  background:
    rgba(255, 255, 255, 0.028);
}

.pantry-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 12px;
}

.pantry-product {
  display: flex;
  align-items: center;

  gap: 10px;

  min-width: 0;
}

.pantry-product img,
.pantry-placeholder {
  width: 50px;
  height: 50px;

  flex-shrink: 0;

  border-radius: 13px;
}

.pantry-product img {
  object-fit: contain;

  background: white;
}

.pantry-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--blue-light);

  background:
    rgba(57, 127, 240, 0.07);
}

.pantry-product > div {
  min-width: 0;
}

.pantry-product span {
  display: block;

  margin-bottom: 3px;

  color: var(--blue-light);

  font-size: 0.52rem;
  font-weight: 700;

  text-transform: uppercase;
}

.pantry-product h2 {
  margin:
    0
    0
    2px;

  overflow: hidden;

  font-family:
    "Helvetica Neue Black",
    sans-serif;

  font-size: 1rem;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.pantry-product small {
  color: var(--dim);

  font-size: 0.6rem;
}

.item-delete {
  width: 35px;
  height: 35px;
}

.remaining-panel {
  margin:
    11px
    0;

  padding:
    9px
    11px;

  border-radius: 12px;

  background:
    rgba(255, 255, 255, 0.03);
}

.remaining-panel strong {
  font-family:
    "Helvetica Neue Black",
    sans-serif;

  font-size: 1.12rem;
}

.remaining-panel span {
  margin-left: 4px;

  color: var(--dim);

  font-size: 0.61rem;
}

.pantry-meta {
  display: flex;
  justify-content: space-between;

  color: var(--dim);

  font-size: 0.59rem;
}

.barcode-page,
.import-page,
.settings-page,
/* LET IT RIP SIZE */


.sound-volume-settings {
  padding: 16px 14px;
  overflow: hidden;
}

.sound-volume-control {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}

.custom-volume-slider {
  position: relative;
  width: 100%;
  min-width: 0;
  height: 48px;
  display: flex;
  align-items: center;
  outline: 0;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.custom-volume-slider:focus-visible {
  border-radius: 14px;
  box-shadow: 0 0 0 3px rgba(57, 127, 240, 0.16);
}

.custom-volume-track {
  position: relative;
  display: block;
  width: 100%;
  height: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.45);
}

.custom-volume-track i {
  position: absolute;
  inset: -1px auto -1px -1px;
  width: var(--volume-percent);
  border-radius: inherit;
  background: linear-gradient(90deg, #397ff0 0%, #79adff 72%, #ebc878 100%);
  pointer-events: none;
}

.custom-volume-track b {
  position: absolute;
  left: var(--volume-percent);
  top: 50%;
  width: 26px;
  height: 26px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: #397ff0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.sound-volume-control output {
  min-width: 52px;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: right;
}

.image-size-settings {
  display: grid;
  gap: 14px;
}

.image-size-control {
  margin-top: 8px;

  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    58px;
  gap: 12px;
  align-items: center;
}

.image-size-control input[type="range"] {
  height: 6px;
  padding: 0;

  border: 0;
  border-radius: 999px;

  background:
    linear-gradient(
      90deg,
      rgba(57, 127, 240, 0.72),
      rgba(201, 165, 88, 0.68)
    );

  box-shadow: none;
}

.image-size-control input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;

  width: 20px;
  height: 20px;

  border:
    2px solid
    rgba(255, 255, 255, 0.76);
  border-radius: 50%;

  background: var(--blue);

  box-shadow:
    0
    4px
    12px
    rgba(0, 0, 0, 0.35);
}

.image-size-control input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;

  border:
    2px solid
    rgba(255, 255, 255, 0.76);
  border-radius: 50%;

  background: var(--blue);
}

.image-size-control output {
  color: var(--text);

  font-size: 0.65rem;
  font-weight: 700;

  text-align: right;
}

.let-it-rip-settings-preview {
  min-height: 72px;

  padding: 12px;

  display: flex;
  align-items: center;

  overflow: hidden;

  border:
    1px solid
    var(--border);
  border-radius: 13px;

  background:
    rgba(255, 255, 255, 0.02);
}

.let-it-rip-settings-preview img {
  display: block;

  max-width: 100%;
  max-height: 58px;
  height: auto;

  object-fit: contain;
  object-position: left center;

  transition:
    width 120ms ease;
}

.backup-page {
  padding:
    4px
    20px
    24px;
}

.scanner-window {
  position: relative;

  overflow: hidden;

  width: 100%;

  aspect-ratio: 4 / 3;

  border-radius: 19px;

  background: #020304;
}

.scanner-window video {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.scanner-window > span {
  position: absolute;

  left: 12%;
  right: 12%;
  top: 50%;

  height: 1px;

  background: var(--blue-light);

  box-shadow:
    0
    0
    16px
    var(--blue);

  animation:
    scan-line
    2.1s
    ease-in-out
    infinite;
}

@keyframes scan-line {
  0%,
  100% {
    transform: translateY(-42px);
    opacity: 0.55;
  }

  50% {
    transform: translateY(42px);
    opacity: 1;
  }
}

.barcode-page h2,
.import-page h2 {
  margin:
    19px
    0
    7px;

  font-family:
    "Helvetica Neue Black",
    sans-serif;

  font-size: 1.65rem;

  letter-spacing: -0.04em;
}

.barcode-page > p,
.import-page > p {
  margin:
    0
    0
    15px;

  color: var(--muted);

  font-size: 0.71rem;
  line-height: 1.55;
}

.warning-panel,
.import-fallback {
  margin-top: 13px;

  padding: 12px;

  border:
    1px solid
    rgba(235, 200, 120, 0.17);

  border-radius: 13px;

  color: var(--gold-light);

  background:
    rgba(201, 165, 88, 0.055);

  font-size: 0.67rem;
  line-height: 1.5;
}

.button-stack {
  margin-top: 14px;

  display: grid;

  gap: 7px;
}

.status-copy {
  min-height: 18px;

  color: var(--dim);

  font-size: 0.63rem;
}

.saved-label {
  overflow: hidden;

  border:
    1px solid
    var(--border);

  border-radius: 16px;

  background:
    rgba(255, 255, 255, 0.025);
}

.label-paper {
  padding: 15px;

  color: #111;

  background: #f4f3ee;

  font-family:
    Arial,
    sans-serif;
}

.label-paper h2 {
  margin:
    0
    0
    9px;

  font-size: 1.15rem;
}

.label-paper p {
  margin: 0;

  font-size: 0.68rem;
}

.label-rule {
  height: 1px;

  margin:
    7px
    0
    8px;

  background: #111;
}

.label-row {
  display: grid;

  grid-template-columns:
    43px
    1fr
    auto;

  gap: 7px;

  margin-top: 4px;

  align-items: baseline;
}

.label-row strong {
  font-size: 0.92rem;
  font-weight: 500;
}

.label-row b {
  font-size: 0.75rem;
}

.saved-label-actions {
  padding: 7px;

  display: grid;

  grid-template-columns:
    1fr
    0.6fr
    38px;

  gap: 6px;
}

.saved-label-actions button {
  min-height: 37px;

  border:
    1px solid
    var(--border);

  border-radius: 10px;

  color: var(--muted);

  background:
    rgba(255, 255, 255, 0.03);

  font-size: 0.6rem;
}

.import-page form {
  display: grid;

  gap: 9px;

  margin-top: 18px;
}

.import-fallback > p {
  margin:
    6px
    0
    12px;

  color: var(--muted);
}

.import-fallback > div {
  display: grid;

  grid-template-columns:
    1fr
    1fr;

  gap: 7px;
}

.settings-section {
  margin-bottom: 20px;
}

.settings-heading {
  display: block;

  margin-bottom: 8px;

  color: var(--blue-light);

  font-size: 0.55rem;
  font-weight: 700;

  letter-spacing: 0.17em;
}

.settings-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 8px;
}

.settings-section-title
.settings-heading {
  margin-bottom: 0;
}

.settings-panel,
.quotes-list {
  border:
    1px solid
    var(--border);

  border-radius: 17px;

  background:
    rgba(255, 255, 255, 0.028);
}

.settings-panel {
  padding: 13px;
}

.setting-split,
.field-grid {
  display: grid;

  grid-template-columns:
    1fr
    1fr;

  gap: 8px;
}

.toggle-panel {
  padding: 0;

  overflow: hidden;
}

.toggle-row {
  min-height: 67px;

  padding:
    12px
    13px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 14px;

  border-bottom:
    1px solid
    var(--border);

  cursor: pointer;
}

.toggle-row:last-child {
  border-bottom: 0;
}

.toggle-row > span {
  min-width: 0;
}

.toggle-row strong,
.toggle-row small {
  display: block;
}

.toggle-row strong {
  color: var(--text);

  font-size: 0.69rem;
}

.toggle-row small {
  margin-top: 4px;

  color: var(--dim);

  font-size: 0.58rem;
}

.toggle-row input {
  position: absolute;

  opacity: 0;

  pointer-events: none;
}

.toggle-row i {
  position: relative;

  width: 44px;
  height: 25px;

  flex-shrink: 0;

  border:
    1px solid
    var(--border);

  border-radius: 999px;

  background:
    rgba(255, 255, 255, 0.08);

  transition:
    background-color 170ms ease,
    border-color 170ms ease;
}

.toggle-row i::after {
  content: "";

  position: absolute;

  top: 3px;
  left: 3px;

  width: 17px;
  height: 17px;

  border-radius: 50%;

  background: #fff;

  box-shadow:
    0
    3px
    8px
    rgba(0, 0, 0, 0.28);

  transition:
    transform 170ms
    cubic-bezier(
      0.22,
      0.8,
      0.24,
      1
    );
}

.toggle-row
input:checked
+
i {
  border-color:
    rgba(121, 173, 255, 0.3);

  background:
    var(--blue);
}

.toggle-row
input:checked
+
i::after {
  transform:
    translateX(19px);
}

.quote-item {
  min-height: 64px;

  padding:
    11px
    12px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;

  border-bottom:
    1px solid
    var(--border);
}

.quote-item:last-child {
  border-bottom: 0;
}

.quote-item > div:first-child {
  min-width: 0;
}

.quote-item strong,
.quote-item span {
  display: block;
}

.quote-item strong {
  font-size: 0.69rem;
  line-height: 1.45;
}

.quote-item span {
  margin-top: 3px;

  color: var(--dim);

  font-size: 0.59rem;
}

.quote-item > div:last-child {
  display: flex;

  gap: 5px;

  flex-shrink: 0;
}

.quote-item button {
  padding:
    6px
    7px;

  border:
    1px solid
    var(--border);

  border-radius: 9px;

  color: var(--muted);

  background:
    rgba(255, 255, 255, 0.025);

  font-size: 0.56rem;
}

.backup-page {
  display: grid;

  gap: 9px;
}

.backup-option {
  padding: 17px;

  min-height: 112px;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;

  border:
    1px solid
    var(--border);

  border-radius: 18px;

  text-align: left;

  background:
    rgba(255, 255, 255, 0.03);
}

.backup-option strong,
.backup-option span {
  display: block;
}

.backup-option span {
  margin-top: 5px;

  color: var(--dim);

  font-size: 0.62rem;
  line-height: 1.45;
}

input,
textarea,
select {
  width: 100%;

  padding:
    11px
    12px;

  border:
    1px solid
    var(--border);

  border-radius: 12px;

  outline: 0;

  color: var(--text);

  background:
    rgba(255, 255, 255, 0.042);
}

input:focus,
textarea:focus,
select:focus {
  border-color:
    rgba(121, 173, 255, 0.45);

  box-shadow:
    0
    0
    0
    3px
    rgba(57, 127, 240, 0.07);
}

textarea {
  min-height: 108px;

  resize: vertical;
}

label {
  display: block;

  color: var(--muted);

  font-size: 0.62rem;
  font-weight: 600;
}

label input,
label textarea,
label select {
  margin-top: 6px;
}

.primary-button,
.secondary-button {
  min-height: 45px;

  padding:
    0
    14px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;

  font-size: 0.69rem;
  font-weight: 700;
}

.primary-button {
  border: 0;

  color: white;

  background:
    linear-gradient(
      180deg,
      #4089fa,
      #2867d3
    );

  box-shadow:
    0
    10px
    22px
    rgba(57, 127, 240, 0.14);
}

.secondary-button {
  border:
    1px solid
    var(--border);

  color: var(--text);

  background:
    rgba(255, 255, 255, 0.03);
}

.danger-text {
  color:
    var(--danger) !important;
}

.modal-layer {
  position: fixed;

  inset: 0;

  z-index: 100;

  padding:
    calc(
      14px +
      var(--safe-top)
    )
    12px
    calc(
      14px +
      var(--safe-bottom)
    );

  display: flex;
  align-items: center;
  justify-content: center;

  overflow-y: auto;

  background:
    rgba(0, 0, 0, 0.72);

  backdrop-filter:
    blur(15px);

  -webkit-backdrop-filter:
    blur(15px);

  animation:
    modal-layer-enter
    150ms
    ease;
}

@keyframes modal-layer-enter {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-card {
  width: 100%;
  max-width: 410px;

  max-height:
    calc(
      100dvh -
      36px -
      var(--safe-top) -
      var(--safe-bottom)
    );

  padding: 17px;

  overflow-y: auto;

  border:
    1px solid
    var(--border-strong);

  border-radius: 23px;

  background:
    linear-gradient(
      180deg,
      #151b24,
      #0b0f15
    );

  box-shadow:
    0
    30px
    85px
    rgba(0, 0, 0, 0.58);

  animation:
    modal-in
    220ms
    cubic-bezier(
      0.18,
      0.88,
      0.26,
      1.08
    );
}

@keyframes modal-in {
  from {
    opacity: 0;

    transform:
      translateY(13px)
      scale(0.97);
  }

  to {
    opacity: 1;

    transform:
      translateY(0)
      scale(1);
  }
}

.modal-title-row {
  margin-bottom: 16px;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 12px;
}

.modal-title-row > div > span {
  display: block;

  margin-bottom: 4px;

  color: var(--blue-light);

  font-size: 0.56rem;
  font-weight: 700;

  letter-spacing: 0.17em;
}

.modal-title-row h2 {
  margin: 0;

  font-family:
    "Helvetica Neue Black",
    sans-serif;

  font-size: 1.55rem;
  line-height: 1;

  letter-spacing: -0.04em;
}

.modal-close {
  width: 38px;
  height: 38px;

  flex-shrink: 0;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border:
    1px solid
    var(--border);

  border-radius: 12px;

  color: var(--muted);

  background:
    rgba(255, 255, 255, 0.04);
}

.modal-fields {
  display: grid;

  gap: 11px;

  margin-bottom: 14px;
}

.modal-card > .primary-button {
  width: 100%;
}

.quick-add-grid {
  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 8px;
}

.quick-add-grid button {
  min-height: 101px;

  padding: 13px;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;

  border:
    1px solid
    var(--border);

  border-radius: 16px;

  color: var(--text);

  background:
    rgba(255, 255, 255, 0.034);
}

.quick-add-grid .icon {
  color: var(--blue-light);
}

.product-modal-image {
  width: 100%;
  height: 170px;

  object-fit: contain;

  border-radius: 15px;

  background: white;
}

.loading-layer {
  position: fixed;

  inset: 0;

  z-index: 200;

  display: grid;
  place-items: center;

  background:
    rgba(0, 0, 0, 0.68);

  backdrop-filter:
    blur(13px);
}

.loading-card {
  padding:
    20px
    24px;

  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 12px;

  border:
    1px solid
    var(--border);

  border-radius: 17px;

  background:
    #121821;
}

.loading-spinner {
  width: 25px;
  height: 25px;

  border:
    3px solid
    rgba(255, 255, 255, 0.11);

  border-top-color:
    var(--blue-light);

  border-radius: 50%;

  animation:
    spin
    0.75s
    linear
    infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.empty-state {
  padding:
    24px
    15px;

  border:
    1px dashed
    var(--border-strong);

  border-radius: 17px;

  color: var(--dim);

  text-align: center;

  font-size: 0.68rem;
}

.app-nav {
  position: fixed;

  left: 50%;

  bottom:
    calc(
      10px +
      var(--safe-bottom)
    );

  z-index: 40;

  width:
    min(
      420px,
      calc(
        100% -
        20px
      )
    );

  height: 70px;

  padding:
    6px
    10px;

  display: grid;

  grid-template-columns:
    repeat(
      3,
      minmax(0, 1fr)
    );

  column-gap: 10px;

  transform:
    translateX(-50%);

  border:
    1px solid
    rgba(255, 255, 255, 0.1);

  border-radius: 24px;

  background:
    rgba(14, 18, 25, 0.84);

  backdrop-filter:
    blur(28px)
    saturate(1.25);

  -webkit-backdrop-filter:
    blur(28px)
    saturate(1.25);

  box-shadow:
    0
    22px
    52px
    rgba(0, 0, 0, 0.44);
}

.nav-button {
  position: relative;

  min-width: 0;

  padding:
    6px
    3px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 3px;

  border: 0;

  border-radius: 17px;

  color: var(--dim);

  background: transparent;
}

.nav-icon {
  width: 34px;
  height: 30px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 11px;

  transition:
    transform 180ms
    cubic-bezier(
      0.22,
      0.8,
      0.24,
      1
    ),
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.nav-button > span:last-child {
  overflow: hidden;

  max-width: 100%;

  font-size: 0.56rem;
  font-weight: 600;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-button.active {
  color: var(--blue-light);
}

.nav-button.active .nav-icon {
  transform: translateY(-8px);

  color: white;

  background:
    linear-gradient(
      180deg,
      #438bff,
      #2768d8
    );

  box-shadow:
    0
    12px
    24px
    rgba(57, 127, 240, 0.24);
}

@media (max-width: 380px) {
  .app-header {
    padding-left: 16px;
    padding-right: 16px;
  }

  .quote-strip,
  .service-summary {
    margin-left: 16px;
    margin-right: 16px;
  }

  .quick-command-grid,
  .pass-section,
  .library-controls,
  .library-stack,
  .detail-page,
  .menu-stack,
  .page-controls,
  .pantry-stack,
  .labels-stack,
  .barcode-page,
  .import-page,
  .settings-page,
  .backup-page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .quick-command-grid {
    gap: 4px;
  }

  .quick-command-icon {
    width: 49px;
    height: 49px;

    border-radius: 15px;
  }

  .recipe-hero h1,
  .text-detail h1 {
    font-size: 2.35rem;
  }

  .ingredient-row {
    grid-template-columns:
      70px
      1fr;
  }

  .modal-layer {
    padding-left: 9px;
    padding-right: 9px;
  }

  .app-nav {
    width:
      calc(
        100% -
        16px
      );

    padding-left: 8px;
    padding-right: 8px;

    column-gap: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration:
      0.01ms !important;

    animation-iteration-count:
      1 !important;

    transition-duration:
      0.01ms !important;
  }
}

/* =========================================================
   SAFARI / IPHONE REPAIR PASS
========================================================= */

:root {
  --page-gutter: 20px;
}

.top-safe-fade {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 35;
  height: calc(max(env(safe-area-inset-top), 18px) + 38px);
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(10, 16, 26, 1) 0%,
      rgba(10, 16, 26, 0.98) 48%,
      rgba(10, 16, 26, 0) 100%
    );
}

.app-header {
  padding:
    calc(max(var(--safe-top), 18px) + 32px)
    var(--page-gutter)
    20px;
}

.page-back-button {
  position: relative;
  z-index: 36;
  width: 42px;
  height: 42px;
  margin:
    0
    var(--page-gutter)
    8px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.back-arrow,
.back-arrow svg,
.backup-action-icon,
.backup-action-icon svg,
.import-paste-button span,
.import-paste-button svg {
  display: block;
}

.back-arrow {
  width: 21px;
  height: 21px;
}

.back-arrow svg,
.backup-action-icon svg,
.import-paste-button svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.library-controls,
.page-controls,
.pass-section,
.detail-page,
.menu-stack,
.pantry-stack,
.labels-stack,
.barcode-page,
.import-page,
.import-review-page,
.settings-page,
.backup-page {
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
}

.quick-command-grid {
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
}

.quote-strip,
.service-summary {
  margin-left: var(--page-gutter);
  margin-right: var(--page-gutter);
}

/* Menu: command centre sizing on phone */
.menu-stack {
  padding-top: 10px;
}

.menu-item {
  min-height: 88px;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 16px;
  padding: 15px 0;
}

.menu-item-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
}

.menu-item-icon .icon {
  width: 24px !important;
  height: 24px !important;
}

.menu-item-copy strong {
  font-size: 0.9rem;
}

.menu-item-copy small {
  margin-top: 5px;
  font-size: 0.7rem;
  line-height: 1.45;
}

/* Cleaner import */
.import-page,
.import-review-page {
  padding-top: 4px;
  padding-bottom: 28px;
}

.import-panel {
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  background:
    linear-gradient(
      180deg,
      rgba(19, 25, 35, 0.98),
      rgba(10, 14, 20, 0.98)
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 24px 60px rgba(0, 0, 0, 0.24);
}

.import-panel-copy {
  padding: 22px 20px 18px;
  border-bottom: 1px solid var(--border);
}

.import-panel-copy > span,
.import-review-banner > span {
  color: var(--gold-light);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.import-panel-copy h2 {
  margin: 10px 0 8px;
  font-family: "Helvetica Neue Black", sans-serif;
  font-size: 2.05rem;
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.import-panel-copy p,
.import-review-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.62;
}

.import-form {
  margin: 0 !important;
  padding: 18px 20px 20px;
  gap: 14px !important;
}

.import-url-row {
  display: block;
  width: 100%;
  margin-top: 7px;
}

.import-url-row input {
  margin-top: 0;
}






.import-form label,
.import-url-row,
.import-url-row input,
.import-submit-button {
  width: 100%;
}

.import-url-row input {
  min-height: 50px;
}
.import-submit-button {
  width: 100%;
}

.import-progress {
  margin: 0 20px 18px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.025);
}

.import-progress-head span,
.import-progress-head strong {
  display: block;
}

.import-progress-head span {
  color: var(--blue-light);
  font-size: 0.53rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.import-progress-head strong {
  margin-top: 5px;
  font-size: 0.69rem;
}

.import-progress-track {
  height: 3px;
  margin-top: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.import-progress-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  transition: width 180ms ease;
}

.import-status {
  margin: 0 20px 20px !important;
  min-height: 0;
  color: var(--gold-light) !important;
  line-height: 1.55 !important;
}

.import-review-form {
  display: grid;
  gap: 14px;
}

.import-review-banner {
  padding: 17px;
  border: 1px solid rgba(121, 173, 255, 0.18);
  border-radius: 17px;
  background: rgba(57, 127, 240, 0.055);
}

.import-review-banner p {
  margin-top: 8px;
}

.import-review-form textarea {
  min-height: 180px;
}

.import-review-actions {
  position: sticky;
  bottom: calc(88px + var(--safe-bottom));
  z-index: 12;
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(13, 17, 24, 0.9);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

/* Backup actions */
.backup-page {
  gap: 10px;
}

.backup-option {
  min-height: 104px;
  padding: 17px;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  justify-content: initial;
}

.backup-action-icon {
  width: 50px;
  height: 50px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--blue-light);
  background: rgba(57, 127, 240, 0.06);
}

.backup-option-copy {
  min-width: 0;
}

.backup-option-copy strong,
.backup-option-copy > span {
  display: block;
}

.backup-option-copy strong {
  font-size: 0.83rem;
}

.backup-option-copy > span {
  margin-top: 5px;
  color: var(--dim);
  font-size: 0.65rem;
  line-height: 1.45;
}

.backup-option > .icon {
  color: var(--dim);
}

/* Safari input focus zoom repair */
@media (hover: none), (pointer: coarse), (max-width: 600px) {
  input,
  textarea,
  select {
    font-size: 16px !important;
  }

  .app-header h1 {
    font-size: 2.2rem;
  }

  .app-eyebrow {
    font-size: 0.68rem;
  }

  .app-nav {
    bottom: calc(10px + max(var(--safe-bottom), 0px));
  }
}

@media (max-width: 380px) {
  :root {
    --page-gutter: 18px;
  }

  .menu-item {
    grid-template-columns: 50px minmax(0, 1fr) auto;
    gap: 13px;
  }

  .menu-item-icon {
    width: 50px;
    height: 50px;
  }
}

/* iPhone range stability */
input[type="range"] {
  font-size: 16px !important;
  max-width: 100%;
  min-width: 0;
  touch-action: pan-y;
}


/* Safari settings touch stability */
.sound-volume-settings,
.sound-volume-settings label,
.sound-volume-control,
.custom-volume-slider {
  max-width: 100%;
  overflow: visible;
}

.custom-volume-slider,
.custom-volume-slider * {
  -webkit-touch-callout: none;
}

@media (max-width: 760px) {
  .sound-volume-settings label {
    font-size: 0.72rem;
  }

  .custom-volume-slider {
    height: 54px;
  }
}
