:root {
  color-scheme: light;
  --bg: #272526;
  --panel: rgba(39, 37, 38, 0.95);
  --panel2: rgba(48, 45, 46, 0.985);
  --line: rgba(255, 255, 255, 0.16);
  --text: #f8f3ef;
  --muted: #ddd4cd;
  --gold: #e6bb58;
  --shadow: 0 16px 36px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background-color: #272526;
}

html {
  color-scheme: light;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  background:
    radial-gradient(circle at top center, rgba(255,255,255,0.07), transparent 24%),
    linear-gradient(180deg, rgba(223,70,104,0.08), transparent 20%),
    linear-gradient(180deg, rgba(119,182,255,0.05), transparent 28%),
    var(--bg);
}

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

input,
textarea,
select {
  width: 100%;
  padding: 0.72rem 0.82rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.16);
  background-color: rgba(255,255,255,0.08);
  color: var(--text);
  -webkit-text-fill-color: var(--text);
  opacity: 1;
}

textarea {
  resize: vertical;
}

label span {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.hidden {
  display: none !important;
}

.settings-hotspot {
  position: fixed;
  inset: 0 0 auto auto;
  width: 90px;
  height: 90px;
  z-index: 60;
}

.screen-shell {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0.7rem;
  padding: 0.5rem;
}

/* =========================
   HEADER
   ========================= */

.brand-header {
  border: 1px solid rgba(255,255,255,0.16);
  background: linear-gradient(90deg, rgba(39,37,38,0.98) 0%, rgba(39,37,38,0.88) 55%, rgba(57,43,48,0.92) 100%);
  min-height: 136px;
  padding: 0.8rem 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 560px);
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow);
}

.brand-center {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.brand-logo-wrap {
  width: clamp(114px, 12vw, 170px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo {
  width: 100%;
  max-height: 126px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.28));
}

.eyebrow {
  color: var(--gold);
  letter-spacing: 0.16rem;
  font-size: clamp(0.78rem, 1vw, 0.98rem);
  text-transform: uppercase;
  margin-bottom: 0.22rem;
  font-weight: 700;
}

.brand-copy h1 {
  margin: 0;
  font-size: clamp(2.35rem, 4vw, 4rem);
  line-height: 0.94;
  color: #f8f3ef;
  text-transform: uppercase;
}

.brand-copy p {
  margin: 0.3rem 0 0;
  color: #ddd4cd;
  font-size: clamp(1rem, 1.2vw, 1.25rem);
}

/* =========================
   HOURS
   Desktop = two compact cards
   Mobile = single stacked card
   ========================= */

.header-hours {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  align-self: stretch;
  width: min(560px, 100%);
  justify-self: end;
}

.hours-display-column {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 22px;
  padding: 0.85rem 0.9rem 0.9rem;
  min-width: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 10px 24px rgba(0, 0, 0, 0.22);
}

.hours-display-title {
  margin-bottom: 0.5rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.18rem;
  font-size: 0.8rem;
  font-weight: 800;
}

.hours-display-column:nth-child(2) {
  display: block;
}

.hours-display-column:nth-child(2) .hours-display-title {
  visibility: hidden;
}

.hours-display-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: baseline;
  padding: 0.34rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.hours-display-row:first-of-type {
  border-top: none;
}

.hours-display-day {
  color: #f8f3ef;
  font-weight: 700;
  font-size: clamp(0.9rem, 0.9vw, 1rem);
  line-height: 1.2;
  white-space: nowrap;
}

.hours-display-time {
  color: #f2ece7;
  font-weight: 700;
  font-size: clamp(0.8rem, 0.72vw, 0.92rem);
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
  justify-self: end;
}

/* =========================
   MAIN STAGE
   ========================= */

.section-stage {
  width: 100%;
  min-height: calc(100vh - 190px);
  border: 1px solid var(--line);
  background-color: rgba(48, 45, 46, 0.985);
  background: linear-gradient(180deg, rgba(68, 63, 65, 0.98), rgba(48, 45, 46, 0.985));
  border-radius: 34px;
  box-shadow: var(--shadow);
  padding: 0.75rem 0.85rem 0.9rem;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
}

.display-controls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.4rem;
}

body.hide-section-controls .display-controls {
  display: none;
}

body.hide-section-controls .section-stage {
  grid-template-rows: auto auto 1fr;
  padding-top: 1rem;
}

body.hide-section-controls .section-meta {
  margin-top: 0;
}

body.hide-section-controls .hero-copy {
  margin-bottom: 0.7rem;
}

.display-nav,
.settings-button,
.section-button,
.primary-btn,
.secondary-btn,
.icon-btn {
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border-radius: 16px;
}

.display-nav {
  width: 48px;
  height: 44px;
  font-size: 1.50rem;
  cursor: pointer;
}

.settings-button {
  padding: 0.72rem 1rem;
  font-weight: 700;
  cursor: pointer;
}

.section-buttons {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.1rem;
}

.section-button {
  padding: 0.66rem 0.9rem;
  white-space: nowrap;
  cursor: pointer;
  font-weight: 700;
  color: #f8f3ef;
}

.section-button.active,
.tab-btn.active,
.primary-btn {
  background: linear-gradient(180deg, rgba(223,70,104,0.92), rgba(176,46,81,0.96));
  border-color: rgba(230,187,88,0.5);
}

.section-meta {
  display: flex;
  justify-content: center;
  margin: 0.1rem 0 0;
}

.section-kicker {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.16rem;
  font-size: clamp(0.7rem, 0.95vw, 0.84rem);
  font-weight: 800;
}

.hero-copy {
  text-align: center;
  margin-bottom: 0.45rem;
}

.hero-copy h2 {
  margin: 0.08rem 0 0;
  text-transform: uppercase;
  font-size: clamp(2rem, 3.3vw, 3.25rem);
  line-height: 0.96;
  color: #f7f1e6;
}

.hero-copy p {
  margin: 0.24rem auto 0;
  color: #ddc9a9;
  max-width: 50rem;
  font-size: clamp(1rem, 1.1vw, 1.15rem);
}

/* =========================
   MENU GRID
   ========================= */

.menu-list {
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.menu-list.layout-1 {
  grid-template-columns: 1fr;
  max-width: 60rem;
  margin: 0 auto;
}

.menu-list.layout-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.menu-list.layout-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.menu-list.layout-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.menu-item {
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(255, 244, 230, 0.12);
  background-color: rgba(255, 244, 230, 0.08);
  background-image: none;
  backdrop-filter: blur(6px);
  padding: 0.82rem 0.82rem 0.74rem;
  display: grid;
  gap: 0.48rem;
  min-height: 112px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.menu-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  border-radius: 18px 18px 0 0;
  background: transparent;
}
.menu-item:nth-child(4n+1)::before { background: #77b6ff; }
.menu-item:nth-child(4n+2)::before { background: #e6bb58; }
.menu-item:nth-child(4n+3)::before { background: #71ccb8; }
.menu-item:nth-child(4n+4)::before { background: #ffad7b; }

.menu-item.sold-out {
  opacity: 0.62;
}

.menu-item-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: start;
}

.menu-item-name {
  margin: 0;
  font-size: 1.17rem;
  line-height: 1.18;
  color: #fff6eb;
}

.menu-item-price {
  color: var(--gold);
  font-weight: 800;
  font-size: 1.17rem;
  background: rgba(226, 182, 102, 0.08);
  border: 1px solid rgba(226, 182, 102, 0.16);
  border-radius: 8px;
  padding: 0.14rem 0.38rem;
  white-space: nowrap;
}

.menu-item-description {
  margin: 0;
  color: rgba(248, 243, 239, 0.88);
  line-height: 1.38;
  font-size: 0.96rem;
}

.menu-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.5rem;
  font-size: 0.99rem;
}

.menu-pill {
  color: #ffc168;
}

.menu-pill.featured {
  color: #ffda9f;
  font-weight: 700;
}

.menu-pill.soldout {
  color: #ffd3d3;
}

.empty-state {
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  border: 1px dashed rgba(226, 182, 102, 0.22);
  border-radius: 18px;
}

/* =========================
   MODALS / SETTINGS
   ========================= */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 12, 0.72);
  display: grid;
  place-items: center;
  z-index: 100;
  padding: 1rem;
}

.modal {
  width: min(1100px, 100%);
  max-height: calc(100svh - 2rem);
  overflow: auto;
  border-radius: 24px;
  border: 1px solid rgba(226, 182, 102, 0.2);
  background-color: #0a1622;
  background: linear-gradient(180deg, rgba(15, 34, 56, 0.99), rgba(10, 24, 40, 0.99));
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.45);
  padding: 1rem;
}

.editor-modal {
  width: min(760px, 100%);
}

.confirm-modal {
  width: min(520px, 100%);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  margin-bottom: 0.8rem;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.45rem;
}

.modal-header p {
  margin: 0.18rem 0 0;
  color: var(--muted);
}

.icon-btn {
  width: 42px;
  height: 42px;
  font-size: 1.5rem;
  cursor: pointer;
}

.settings-tabs {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}

.tab-btn {
  padding: 0.62rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  cursor: pointer;
}

.form-grid {
  display: grid;
  gap: 0.85rem;
}

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

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

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-top: 1.6rem;
}

.checkbox-row input {
  width: auto;
}

.modal-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

.primary-btn,
.secondary-btn {
  padding: 0.72rem 1rem;
  cursor: pointer;
  font-weight: 700;
}

.hours-editor-grid,
.section-settings-grid,
.item-admin-list {
  display: grid;
  gap: 0.75rem;
}

.section-settings-name {
  display: grid;
  gap: 0.2rem;
}

.section-settings-name small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08rem;
}

.hours-editor-row,
.section-settings-row,
.item-admin-row {
  display: grid;
  gap: 0.6rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid rgba(226, 182, 102, 0.16);
  border-radius: 18px;
  background: rgba(7, 19, 33, 0.84);
}

.hours-editor-row {
  grid-template-columns: 140px auto 1fr 1fr;
}

.section-settings-row {
  grid-template-columns:
    minmax(130px, 1fr)
    auto
    minmax(160px, 1.25fr)
    minmax(220px, 1.7fr)
    90px
    90px
    90px
    110px;
}

.items-toolbar {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.items-toolbar select {
  flex: 1;
}

.item-admin-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.item-admin-meta h4 {
  margin: 0 0 0.18rem;
}

.item-admin-meta p {
  margin: 0;
  color: var(--muted);
}

.item-admin-actions {
  display: flex;
  gap: 0.5rem;
}

.item-admin-actions button {
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
}

.font-scale-small {
  font-size: 0.93rem;
}

.font-scale-large {
  font-size: 1.07rem;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1200px) {
  .brand-header {
    grid-template-columns: 1fr;
  }

  .menu-list.layout-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

  .brand-logo-wrap {
    width: 150px;
  }

  .hours-editor-row,
  .section-settings-row,
  .item-admin-row,
  .form-grid.two,
  .display-controls {
    grid-template-columns: 1fr;
  }

  .header-hours {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hours-display-column:nth-child(2) {
    display: none;
  }

  .hours-display-column:nth-child(2) .hours-display-title {
    visibility: visible;
  }

  .hours-display-row {
    grid-template-columns: minmax(110px, 140px) minmax(0, 1fr);
    gap: 0.7rem;
  }

  .menu-list.layout-4,
  .menu-list.layout-3,
  .menu-list.layout-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .menu-list.layout-4,
  .menu-list.layout-3,
  .menu-list.layout-2 {
    grid-template-columns: 1fr;
  }

  .section-stage {
    min-height: auto;
  }

  .screen-shell {
    padding: 0.35rem;
  }

  .brand-header {
    padding: 0.7rem 0.75rem;
    gap: 0.8rem;
  }

  .brand-logo-wrap {
    width: 120px;
  }

  .brand-copy h1 {
    font-size: clamp(1.9rem, 10vw, 2.8rem);
  }

  .brand-copy p {
    font-size: clamp(0.95rem, 4.8vw, 1.15rem);
  }

  .display-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .section-buttons {
    order: 1;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    overflow: visible;
    padding-bottom: 0;
  }

  .section-button {
    width: 100%;
    text-align: center;
    padding: 0.78rem 0.7rem;
    white-space: normal;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .display-nav {
    width: 100%;
    height: 52px;
  }

  #navLeft {
    order: 2;
  }

  #navRight {
    order: 3;
  }

  .section-stage {
    padding: 0.75rem 0.7rem 0.9rem;
  }

  .hero-copy {
    margin-bottom: 0.65rem;
  }

  .hero-copy h2 {
    font-size: clamp(2rem, 11vw, 2.7rem);
  }

  .hero-copy p {
    font-size: clamp(1rem, 5vw, 1.1rem);
  }

  .hours-display-column {
    padding: 0.8rem 0.85rem 0.9rem;
  }

  .hours-display-row {
    grid-template-columns: minmax(96px, 120px) minmax(0, 1fr);
    gap: 0.55rem;
  }

  .hours-display-day,
  .hours-display-time {
    font-size: 0.95rem;
  }
}

.support-note{margin-top:.85rem;padding:.85rem 1rem;border:1px solid rgba(226,182,102,.16);border-radius:16px;background:rgba(7,19,33,.78);color:var(--muted);line-height:1.45}.pin-error{color:#ffd3d3;font-weight:700}.pin-form{margin:0}

.brand-copy h1{font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;}
.menu-item:nth-child(4n+1){border-top:6px solid #77b6ff;}
.menu-item:nth-child(4n+2){border-top:6px solid #e6bb58;}
.menu-item:nth-child(4n+3){border-top:6px solid #71ccb8;}
.menu-item:nth-child(4n+4){border-top:6px solid #ffad7b;}


.display-main {
  background: transparent;
}

.settings-panel,
.settings-tabs,
.items-toolbar,
.hours-editor-row,
.section-settings-row,
.item-admin-row,
.support-note {
  background-color: transparent;
}

select option {
  background: #1f2731;
  color: #f8f3ef;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px rgba(255,255,255,0.08) inset;
  -webkit-text-fill-color: var(--text);
  transition: background-color 9999s ease-in-out 0s;
}


/* =========================
   THEME PRESETS
   ========================= */

/* Shared theme system styles live under /shared/themes/styles/ */


/* ===== Compact admin/settings refresh ===== */
.compact-settings-modal {
  width: min(1080px, calc(100vw - 24px));
  max-height: min(92vh, 980px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
}

.compact-settings-tabs {
  gap: 0.35rem;
  margin-bottom: 0.7rem;
}

.compact-settings-tabs .tab-btn {
  padding: 0.5rem 0.72rem;
  border-radius: 12px;
  font-size: 0.92rem;
}

.compact-settings-panels {
  min-height: 0;
}

.settings-panel {
  gap: 0.75rem;
}

.settings-section-heading {
  display: grid;
  gap: 0.15rem;
  margin-bottom: 0.2rem;
}

.settings-section-heading h4 {
  margin: 0;
  font-size: 1rem;
}

.settings-section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.compact-form-grid {
  display: grid;
  gap: 0.65rem;
}

.compact-form-grid label > span,
.compact-hours-row label > span,
.compact-section-row label > span {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04rem;
  color: var(--muted);
}

.compact-form-grid input,
.compact-form-grid select,
.compact-form-grid textarea,
.compact-hours-row input,
.compact-section-row input,
.compact-section-row select,
.compact-items-toolbar select {
  min-height: 38px;
  padding: 0.48rem 0.62rem;
}

.compact-form-grid textarea {
  min-height: 110px;
}

.compact-form-grid-general {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
}

.compact-form-grid-general .full {
  grid-column: span 3;
}

.compact-form-grid-general .checkbox-row {
  min-height: 38px;
  align-self: end;
  padding-top: 0;
  margin-bottom: 0.15rem;
}

.compact-hours-editor-grid,
.compact-section-settings-grid,
.compact-item-admin-list {
  display: grid;
  gap: 0.55rem;
}

.compact-hours-row,
.compact-section-row,
.compact-item-row {
  gap: 0.55rem;
  padding: 0.65rem 0.75rem;
  border-radius: 14px;
}

.compact-hours-row {
  grid-template-columns: minmax(110px, 140px) auto minmax(120px, 1fr) minmax(120px, 1fr);
}

.hours-day-block {
  display: grid;
  gap: 0.08rem;
}

.hours-day-block strong {
  line-height: 1.1;
}

.hours-day-block small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06rem;
}

.toggle-chip-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: center;
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(38,34,124,0.12);
  border-radius: 999px;
  background: rgba(255,255,255,0.82);
}

.toggle-chip-inline input {
  width: auto;
  min-height: 0;
  padding: 0;
}

.compact-field {
  display: grid;
  gap: 0.22rem;
}

.compact-section-row {
  grid-template-columns: minmax(135px, 1.1fr) auto minmax(165px, 1.3fr) minmax(190px, 1.45fr) repeat(4, minmax(72px, 88px));
}

.compact-section-name {
  gap: 0.14rem;
}

.compact-number-field input,
.compact-number-field select {
  text-align: center;
}

.compact-items-toolbar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}

.compact-item-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
}

.compact-item-meta h4 {
  margin: 0 0 0.12rem;
  font-size: 1rem;
}

.compact-item-meta p {
  margin: 0;
  line-height: 1.3;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  padding: 0.32rem 0.55rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  border: 1px solid rgba(38,34,124,0.12);
  background: rgba(255,255,255,0.94);
}

.status-visible {
  color: #1d6b3d;
  border-color: rgba(29,107,61,0.25);
  background: rgba(29,107,61,0.08);
}

.status-hidden {
  color: #6b5b1d;
  border-color: rgba(107,91,29,0.24);
  background: rgba(107,91,29,0.10);
}

.status-soldout {
  color: #8a2330;
  border-color: rgba(138,35,48,0.24);
  background: rgba(138,35,48,0.10);
}

.compact-item-actions button {
  padding: 0.48rem 0.72rem;
  border-radius: 10px;
}

.compact-modal-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  padding-top: 0.5rem;
  margin-top: 0.2rem;
  background: linear-gradient(to top, rgba(255,255,255,0.96), rgba(255,255,255,0.92), rgba(255,255,255,0));
}

.compact-support-note {
  font-size: 0.84rem;
  line-height: 1.35;
}

@media (max-width: 1100px) {
  .compact-form-grid-general {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compact-form-grid-general .full {
    grid-column: span 2;
  }

  .compact-section-row {
    grid-template-columns: minmax(135px, 1.1fr) auto repeat(2, minmax(160px, 1fr)) repeat(4, minmax(72px, 88px));
  }
}

@media (max-width: 920px) {
  .compact-settings-modal {
    width: min(100%, calc(100vw - 12px));
  }

  .compact-hours-row,
  .compact-section-row,
  .compact-item-row,
  .compact-form-grid-general,
  .compact-form-grid.two,
  .compact-items-toolbar {
    grid-template-columns: 1fr;
  }

  .compact-form-grid-general .full {
    grid-column: auto;
  }

  .toggle-chip-inline {
    justify-content: flex-start;
  }

  .status-badge {
    min-width: 0;
  }
}
