:root {
  --ink: #17212f;
  --muted: #677386;
  --line: #d8dee8;
  --paper: #f4f7fb;
  --panel: #ffffff;
  --elior-navy: #102844;
  --elior-blue: #0067b1;
  --accent: #c7392f;
  --accent-dark: #064a98;
  --sage: #506673;
  --gold: #bd8b35;
  --steel: #405667;
  --concept-primary: #064a98;
  --concept-accent: #c7392f;
  --shadow: 0 18px 42px rgba(15, 34, 55, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(6, 74, 152, 0.08) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(199, 57, 47, 0.05) 0 1px, transparent 1px 100%),
    var(--paper);
  background-size: 40px 40px, 40px 40px, auto;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button,
input,
select {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: 288px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  padding: 24px 18px;
  background:
    linear-gradient(180deg, rgba(199, 57, 47, 0.14), transparent 190px),
    var(--elior-navy);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  color: #f8fbff;
}

.brand-lockup {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
}

.mark {
  display: grid;
  place-items: center;
  width: 118px;
  height: 52px;
  border-radius: 8px;
  background: #fff;
  padding: 8px 9px;
  box-shadow: inset 0 -5px 0 var(--concept-accent);
}

.mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.eyebrow,
.status-label,
.meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sidebar .eyebrow,
.sidebar .nav-group-label {
  color: rgba(248, 251, 255, 0.68);
}

.sidebar h1 {
  color: #fff;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 1.28rem;
  line-height: 1.1;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  line-height: 1;
}

.concept-name {
  margin: 10px 0 0;
  color: var(--concept-primary);
  font-size: 1.05rem;
  font-weight: 900;
}

.concept-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.concept-heading.has-logo {
  grid-template-columns: minmax(0, 210px) minmax(0, 1fr);
}

.concept-logo {
  width: 100%;
  max-height: 118px;
  object-fit: contain;
  object-position: left center;
}

.concept-logo[hidden] {
  display: none;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.location-picker {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(248, 251, 255, 0.76);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.location-picker input,
.location-picker select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 800;
}

.location-picker select option {
  color: var(--ink);
}

.tab-list {
  display: grid;
  gap: 6px;
}

.nav-group-label {
  margin: 16px 0 4px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-group-label:first-child {
  margin-top: 0;
}

.tab-button {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 11px 12px;
  background: transparent;
  color: rgba(248, 251, 255, 0.84);
  text-align: left;
  cursor: pointer;
}

.tab-button:hover,
.tab-button.active {
  background: rgba(255, 255, 255, 0.1);
}

.tab-button.active {
  color: #fff;
  font-weight: 800;
  box-shadow: inset 4px 0 0 var(--concept-accent);
}

.tab-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
  color: #fff;
}

.main-panel {
  min-width: 0;
  padding: 28px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
  margin-bottom: 24px;
  padding: 26px;
  border: 1px solid var(--line);
  border-top: 6px solid var(--concept-accent);
  border-radius: 8px;
  background:
    linear-gradient(110deg, rgba(6, 74, 152, 0.08), transparent 42%),
    #fff;
  box-shadow: var(--shadow);
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 10px;
}

.status-strip > div {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.status-strip strong {
  display: block;
  margin-top: 4px;
}

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

.card {
  grid-column: span 4;
  min-height: 148px;
  padding: 18px;
  border: 1px solid var(--line);
  border-top: 4px solid rgba(6, 74, 152, 0.18);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 34, 55, 0.07);
}

.card.wide {
  grid-column: span 8;
}

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

.card.source-status {
  border-color: rgba(6, 74, 152, 0.24);
  border-top-color: var(--concept-accent);
  background:
    linear-gradient(135deg, rgba(6, 74, 152, 0.08), rgba(255, 255, 255, 0.95)),
    #fff;
}

.card p {
  color: var(--muted);
  line-height: 1.5;
}

.card h3 {
  color: var(--concept-primary);
}

.card.concept-hero-card {
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border-top: 0;
  background:
    linear-gradient(115deg, rgba(6, 74, 152, 0.95), rgba(6, 74, 152, 0.78) 48%, rgba(199, 57, 47, 0.9)),
    var(--concept-primary);
}

.card.concept-hero-card > h3 {
  display: none;
}

.concept-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  min-height: 330px;
  color: #fff;
}

.concept-hero-copy {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(24px, 4vw, 46px);
}

.concept-hero-copy .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.concept-hero-copy img {
  width: min(460px, 100%);
  max-height: 150px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.16));
}

.concept-hero-copy p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
}

.concept-hero-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 720px;
}

.concept-hero-actions .shortcut-button {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.concept-hero-actions .shortcut-button span {
  color: rgba(255, 255, 255, 0.7);
}

.concept-hero-media {
  min-height: 100%;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.concept-hero-media img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
}

.resource-list,
.compact-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.resource-link,
.pill,
.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 8px;
  padding: 8px 10px;
  text-decoration: none;
  font-weight: 800;
}

.resource-link {
  justify-content: space-between;
  width: 100%;
  border: 1px solid var(--line);
  background: #f8fbff;
  color: var(--concept-primary);
}

.pill {
  margin: 3px 4px 3px 0;
  background: rgba(6, 74, 152, 0.08);
  color: var(--concept-primary);
  font-size: 0.83rem;
}

.status-pill {
  background: #fff7e8;
  color: #8a5f16;
}

.action-button {
  border: 0;
  background: var(--concept-accent);
  color: #fff;
  cursor: pointer;
  margin: 6px 0 14px;
  box-shadow: 0 8px 18px rgba(199, 57, 47, 0.18);
}

.inline-button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  background: #f8fbff;
  color: var(--concept-primary);
  font-weight: 900;
  cursor: pointer;
}

.inline-button:hover {
  border-color: var(--concept-primary);
}

.labor-model-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 4px 0 12px;
}

.labor-model-actions .action-button {
  margin: 0;
}

.labor-model-table input {
  width: 100%;
  min-width: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.labor-model-table .labor-text-input {
  min-width: 170px;
}

.remove-row-button {
  min-height: 30px;
  border: 1px solid rgba(199, 57, 47, 0.28);
  border-radius: 8px;
  padding: 6px 9px;
  background: #fff7f5;
  color: var(--concept-accent);
  font-weight: 900;
  cursor: pointer;
}

.brand-preview {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 22px;
  border: 2px solid rgba(6, 74, 152, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 0 44%, rgba(199, 57, 47, 0.08) 44% 56%, transparent 56%),
    #fff;
}

.brand-preview img {
  max-width: min(100%, 620px);
  max-height: 250px;
  object-fit: contain;
}

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

.metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.metric-tile {
  min-height: 86px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.metric-tile span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-tile strong {
  display: block;
  margin-top: 8px;
  color: var(--concept-primary);
  font-size: clamp(1.1rem, 2vw, 1.65rem);
  line-height: 1.05;
}

.operator-home {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.6fr);
  gap: 14px;
  align-items: start;
}

.shortcut-grid {
  display: grid;
  gap: 8px;
}

.shortcut-button {
  display: grid;
  gap: 4px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f8fbff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.shortcut-button:hover {
  border-color: var(--concept-primary);
}

.shortcut-button span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.asset-swatch,
.image-asset {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}

.asset-swatch img {
  width: 100%;
  height: 112px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.asset-swatch span,
.image-asset span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.image-asset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.image-asset img {
  width: 100%;
  max-height: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
}

.source-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.menu-board {
  width: 100%;
  max-height: 520px;
  border: 2px solid rgba(6, 74, 152, 0.18);
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
}

.recipe-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  object-fit: cover;
  background: #eee;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

tbody tr:hover {
  background: rgba(6, 74, 152, 0.035);
}

.sysco-link {
  display: inline-flex;
  width: max-content;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border: 1px solid rgba(6, 74, 152, 0.18);
  border-radius: 6px;
  background: rgba(6, 74, 152, 0.07);
  color: #064a98;
  font-size: 0.76rem;
  font-weight: 850;
  text-decoration: none;
  text-transform: uppercase;
}

.sysco-link:hover {
  background: rgba(6, 74, 152, 0.12);
}

.ingredient-photo {
  display: block;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(6, 74, 152, 0.14);
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}

.ingredient-photo.empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
}

.ingredient-photo.placeholder {
  padding: 10px;
  background: #fff;
}

.recipe-ingredient-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.recipe-ingredient-row {
  cursor: pointer;
}

.recipe-ingredient-row:hover {
  background: rgba(6, 74, 152, 0.055);
}

.recipe-ingredient-row:focus-visible {
  outline: 3px solid rgba(6, 74, 152, 0.25);
  outline-offset: -3px;
}

.recipe-ingredient-name .ingredient-photo {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
}

.line-type {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid rgba(6, 74, 152, 0.16);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.line-type.ingredient {
  background: #f8fbff;
  color: var(--concept-primary);
}

.line-type.prep {
  border-color: rgba(189, 139, 53, 0.38);
  background: #fff7e8;
  color: #8a5f16;
}

.order-link {
  margin-top: 8px;
}

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

.assumption-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.input-pair {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.input-pair input,
.proforma-days input[type="number"] {
  width: 100%;
  min-width: 88px;
  border: 0;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.input-pair strong {
  padding-right: 12px;
  color: var(--muted);
}

.proforma-days {
  margin-top: 10px;
}

.proforma-days input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--concept-accent);
}

.floor-plan {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 0.9fr;
  grid-template-rows: 88px 118px 86px;
  gap: 8px;
  min-height: 318px;
}

.zone {
  display: grid;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.zone.hot {
  border-color: rgba(185, 63, 47, 0.42);
  background: #fff0ec;
  color: var(--concept-accent);
}

.zone.cold {
  border-color: rgba(64, 86, 103, 0.36);
  background: #eef5f7;
  color: var(--steel);
}

.zone.service {
  grid-row: span 2;
  border-color: rgba(6, 74, 152, 0.24);
  background: #f8fbff;
  color: var(--concept-primary);
}

.floor-plan-document {
  display: grid;
  gap: 12px;
}

.floor-plan-document iframe {
  width: 100%;
  min-height: 620px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.equipment-schedule {
  display: grid;
  gap: 14px;
}

.equipment-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.equipment-image {
  display: grid;
  place-items: center;
  min-height: 160px;
  border: 1px solid rgba(6, 74, 152, 0.14);
  border-radius: 8px;
  background: #f8fbff;
  overflow: hidden;
}

.equipment-image img {
  width: 100%;
  height: 100%;
  max-height: 170px;
  object-fit: contain;
  padding: 12px;
}

.equipment-detail {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.equipment-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.equipment-head h4 {
  margin: 3px 0 0;
  color: var(--concept-primary);
  font-size: 1.05rem;
}

.equipment-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.equipment-verification {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(6, 74, 152, 0.12);
  border-radius: 8px;
  background: #f8fbff;
}

.equipment-input,
.equipment-check {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.equipment-input input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 9px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: none;
}

.equipment-check {
  align-content: end;
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: 58px;
}

.equipment-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--concept-accent);
}

.muted-button {
  color: var(--muted);
  background: #f4f6f8;
}

.recipe-card {
  display: grid;
  gap: 12px;
}

.card.recipe-shell > h3 {
  display: none;
}

.recipe-card-detail {
  gap: 16px;
}

.recipe-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.recipe-card-head .eyebrow {
  letter-spacing: 0;
}

.recipe-card-head h4 {
  margin: 4px 0 8px;
  color: var(--concept-primary);
  font-size: 1.25rem;
  line-height: 1.15;
}

.recipe-card-head p:last-child {
  margin: 0;
}

.recipe-image-frame {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(6, 74, 152, 0.08), rgba(199, 57, 47, 0.06)),
    #fff;
}

.drawer-tiles {
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  gap: 8px;
}

.drawer-tile {
  min-height: 74px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.drawer-tile.warn {
  background: #fff7e8;
  border-color: rgba(189, 139, 53, 0.38);
}

.drawer-tile .lbl {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.drawer-tile .val {
  margin-top: 8px;
  color: var(--concept-primary);
  font-size: 1rem;
  font-weight: 900;
}

.recipe-section {
  display: grid;
  gap: 8px;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-title-row .btn-link {
  min-height: 28px;
  padding: 5px 9px;
  font-size: 0.72rem;
}

.build-step-section {
  padding: 14px;
  border: 1px solid rgba(6, 74, 152, 0.14);
  border-radius: 8px;
  background: #f8fbff;
}

.build-step-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.build-step-strip {
  display: grid;
  grid-auto-columns: minmax(420px, 92%);
  grid-auto-flow: column;
  gap: 14px;
  overflow-x: auto;
  padding: 2px 4px 10px 0;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--concept-primary) #dfe9f5;
}

.build-step-card {
  display: grid;
  gap: 8px;
  margin: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.build-step-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}

.build-step-card figcaption {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.build-step-card figcaption strong {
  color: var(--concept-primary);
}

.drawer-section {
  margin: 0;
  color: var(--concept-primary);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ing {
  min-width: 560px;
}

.ing .num {
  text-align: right;
  white-space: nowrap;
}

.recipe-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--concept-primary);
  font: inherit;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.recipe-link.muted {
  color: var(--ink);
}

.method-list {
  margin: 0;
  padding-left: 22px;
}

.method-list li {
  margin: 0 0 8px;
  line-height: 1.45;
}

.drawer-allergens {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.detail-drawer-layer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  justify-content: flex-end;
  background: rgba(8, 18, 32, 0.38);
}

.detail-drawer {
  width: min(560px, 94vw);
  height: 100%;
  overflow-y: auto;
  padding: 24px;
  border-left: 1px solid var(--line);
  background: #fff;
  box-shadow: -18px 0 36px rgba(8, 18, 32, 0.22);
}

.drawer-close {
  position: sticky;
  top: 0;
  float: right;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--concept-primary);
  font-size: 1.05rem;
  font-weight: 900;
  cursor: pointer;
}

.drawer-heading {
  display: grid;
  gap: 6px;
  margin: 8px 0 18px;
  padding-right: 48px;
}

.drawer-heading h3 {
  margin: 0;
  color: var(--concept-primary);
  font-size: 1.55rem;
  line-height: 1.1;
}

.drawer-heading p {
  margin: 0;
  color: var(--muted);
}

.drawer-tiles.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.drawer-product {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 16px;
}

.drawer-product .ingredient-photo {
  width: 180px;
  height: 180px;
}

.ingredient-photo.large {
  width: 180px;
  height: 180px;
}

.drawer-block {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.detail-drawer .table-wrap {
  max-width: 100%;
}

.detail-drawer table {
  min-width: 440px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  background: #fff;
  color: var(--concept-primary);
  font-size: 0.78rem;
  font-weight: 850;
}

.tag.warn {
  background: #fff7e8;
  color: #8a5f16;
  border-color: rgba(189, 139, 53, 0.38);
}

.quiet {
  color: var(--muted);
  font-size: 0.9rem;
}

.recipe-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 11px;
  background: var(--concept-primary);
  color: var(--concept-primary);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.work-list,
.production-list,
.order-guide,
.buildout-list {
  display: grid;
  gap: 8px;
}

.work-row,
.production-row,
.order-row,
.buildout-row {
  display: grid;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.work-row {
  grid-template-columns: minmax(180px, 1fr) minmax(160px, 0.55fr) auto;
}

.work-row.done,
.production-row.done,
.order-row.done,
.buildout-row.done {
  background: rgba(6, 74, 152, 0.06);
  border-color: rgba(6, 74, 152, 0.22);
}

.check-label {
  display: flex;
  gap: 9px;
  align-items: center;
  min-width: 0;
  font-weight: 850;
}

.check-label input {
  width: 18px;
  height: 18px;
  accent-color: var(--concept-primary);
}

.par-input,
.production-row textarea,
.temp-log input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 750;
}

.production-row {
  align-items: stretch;
}

.production-head {
  color: var(--concept-primary);
}

.production-row p {
  margin: 0;
}

.production-row textarea {
  min-height: 72px;
  resize: vertical;
}

.temp-log {
  display: grid;
  gap: 8px;
}

.temp-log label {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 8px;
  align-items: center;
}

.temp-log span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.order-row {
  grid-template-columns: minmax(180px, 1fr) minmax(170px, 0.7fr) minmax(220px, 1fr) minmax(100px, 0.38fr) minmax(160px, 0.65fr);
}

.order-row input[type="text"],
.order-row input:not([type]) {
  min-width: 0;
}

.order-row > input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 750;
}

.buildout-row {
  grid-template-columns: minmax(180px, 1fr) minmax(140px, 0.55fr) minmax(220px, 1fr) minmax(118px, 0.42fr) minmax(110px, 0.36fr) minmax(160px, 0.62fr);
}

.buildout-row strong {
  min-width: 0;
}

.buildout-row select,
.buildout-row input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 750;
}

.buildout-row select {
  text-transform: capitalize;
}

.order-meta {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.recipe-tools {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 0.35fr) auto;
  gap: 12px;
  align-items: end;
}

.recipe-tools label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.recipe-tools input,
.recipe-tools select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.recipe-count {
  min-width: 122px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.recipe-count strong,
.recipe-count span {
  display: block;
}

.recipe-count strong {
  color: var(--concept-primary);
  font-size: 1.35rem;
  line-height: 1;
}

.recipe-count span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.recipe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.retail-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 260px));
  gap: 12px;
  margin: 14px 0;
}

.retail-controls label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.retail-controls input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--ink);
  font-weight: 850;
}

.retail-table td:first-child {
  min-width: 260px;
}

.retail-description {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
  font-weight: 650;
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

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

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .card,
  .card.wide {
    grid-column: span 6;
  }

  .assumption-grid {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  .operator-home,
  .concept-hero,
  .work-row,
  .order-row,
  .buildout-row,
  .recipe-card-head {
    grid-template-columns: 1fr;
  }

  .concept-hero-media {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

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

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

  .drawer-product {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .equipment-card {
    grid-template-columns: 140px minmax(0, 1fr);
  }

  .equipment-verification {
    grid-template-columns: 1fr;
  }

  .drawer-product .ingredient-photo,
  .ingredient-photo.large {
    width: 150px;
    height: 150px;
  }

  .retail-controls {
    grid-template-columns: 1fr;
  }

  .build-step-strip {
    grid-auto-columns: minmax(320px, 92%);
  }

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

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

@media (max-width: 680px) {
  .main-panel,
  .sidebar {
    padding: 16px;
  }

  .tab-list,
  .status-strip {
    grid-template-columns: 1fr;
  }

  .card,
  .card.wide {
    grid-column: 1 / -1;
  }

  .floor-plan {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .floor-plan-document iframe {
    min-height: 460px;
  }

  .zone.service {
    grid-row: auto;
  }

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

  .concept-heading,
  .resource-grid,
  .image-asset-grid,
  .metric-grid,
  .concept-hero-actions,
  .drawer-tiles {
    grid-template-columns: 1fr;
  }

  .concept-logo {
    max-width: 210px;
  }

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

  .equipment-card,
  .equipment-head {
    grid-template-columns: 1fr;
  }

  .equipment-head {
    display: grid;
  }

  .drawer-product .ingredient-photo,
  .ingredient-photo.large {
    width: min(220px, 100%);
    height: auto;
    aspect-ratio: 1;
  }

  .build-step-strip {
    grid-auto-columns: minmax(260px, 94%);
  }
}

@media print {
  body {
    background: #fff;
  }

  .sidebar,
  .topbar,
  .action-button,
  .inline-button,
  .shortcut-grid {
    display: none !important;
  }

  .app-shell {
    display: block;
  }

  .main-panel {
    padding: 0;
  }

  .content-grid {
    display: block;
  }

  .card {
    break-inside: avoid;
    box-shadow: none;
    margin-bottom: 14px;
    border-color: #bbb;
  }

  .card:not(.print-section) {
    display: none;
  }

  .print-section,
  .print-section * {
    color: #111 !important;
  }

  .work-row,
  .production-row {
    break-inside: avoid;
  }
}
