/* Gharka.eat — steel-dabba palette, canteen menu-board type.
   --rajma and --turmeric (and their shades) are overridden by the colours chosen in Admin → Settings → Brand & look. */

:root {
  --steel:      #dfe4e3;
  --steel-deep: #c8d0cf;
  --card:       #ffffff;
  --rajma:      #7a1f2b;
  --rajma-deep: #5b1620;
  --rajma-tint: #fbf1f0;
  --rajma-line: #e5c3c0;
  --turmeric:   #e0a11b;
  --turmeric-hover: #f0b52f;
  --ink:        #201c1a;
  --muted:      #6e6763;
  --line:       #ded9d3;
  --bad:        #a12b1d;
  --good:       #1f6b44;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    linear-gradient(180deg, var(--steel) 0%, var(--steel-deep) 100%) fixed;
  color: var(--ink);
  font-family: 'Karla', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, legend, .board__dish, .board__price, .pick__day, .total strong {
  font-family: 'Bitter', Georgia, serif;
}

a { color: var(--rajma); }

:focus-visible {
  outline: 3px solid var(--turmeric);
  outline-offset: 2px;
}

/* ---------- page frame ---------- */
.sheet {
  max-width: 560px;
  margin: 0 auto;
  padding: 28px 18px 48px;
}

.masthead { text-align: center; padding: 8px 0 22px; }

.masthead__kitchen {
  margin: 0 0 6px;
  font-size: .82rem;
  letter-spacing: .04em;
  color: var(--muted);
}

.masthead__name {
  margin: 0;
  font-size: clamp(2.4rem, 11vw, 3.4rem);
  font-weight: 700;
  line-height: .95;
  color: var(--rajma);
}

.masthead__line {
  margin: 10px auto 0;
  max-width: 46ch;
  font-size: .98rem;
  color: var(--muted);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 14px 30px rgba(32, 28, 26, .1);
}

.card__title {
  margin: 26px 0 18px;
  font-size: 1.32rem;
}

/* ---------- the menu board ---------- */
.board {
  background: var(--rajma);
  color: #fdf3e6;
  border-radius: 10px;
  padding: 18px 20px 16px;
}

.board__label {
  margin: 0 0 12px;
  font-size: .9rem;
  color: var(--turmeric);
}

.board__menu { list-style: none; margin: 0; padding: 0; }

.board__menu li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 5px 0;
  font-size: 1.02rem;
}

.board__dots {
  flex: 1;
  border-bottom: 1px dotted rgba(253, 243, 230, .45);
  transform: translateY(-3px);
}

.board__price { font-size: .95rem; color: #f6e3c4; white-space: nowrap; }

.board__foot {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(253, 243, 230, .2);
  font-size: .84rem;
  color: rgba(253, 243, 230, .78);
}

/* ---------- form ---------- */
.field { margin-bottom: 18px; border: 0; padding: 0; }

.field > label,
.field legend {
  display: block;
  margin-bottom: 7px;
  font-size: .93rem;
  font-weight: 700;
  color: var(--ink);
}

.field legend { font-size: 1rem; }

.opt { font-weight: 400; color: var(--muted); }

.field input[type="text"],
.field input[type="tel"],
.field input[type="password"],
.field input[type="search"],
.field input[type="number"],
.field input[type="date"],
.field select {
  width: 100%;
  padding: 12px 13px;
  font: inherit;
  color: var(--ink);
  background: #fcfbf9;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%236e6763' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.field input:focus, .field select:focus { border-color: var(--rajma); }

.is-wrong { border-color: var(--bad) !important; background: #fdf5f4; }

.note-bad { margin: 6px 0 0; font-size: .85rem; color: var(--bad); }

.row-two { display: grid; grid-template-columns: 1fr 1.4fr; gap: 14px; }

/* radio tiles */
.picker { display: grid; gap: 10px; }
.picker--two { grid-template-columns: 1fr 1fr; }

.pick { position: relative; display: block; cursor: pointer; }

.pick input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.pick__body {
  display: block;
  padding: 12px 14px;
  background: #fcfbf9;
  border: 1.5px solid var(--line);
  border-radius: 9px;
}

.pick__day { display: block; font-weight: 700; font-size: 1rem; }

.pick__date, .pick__meta {
  display: block;
  font-size: .86rem;
  color: var(--muted);
}

.pick input:checked + .pick__body {
  border-color: var(--rajma);
  background: var(--rajma-tint);
  box-shadow: inset 0 0 0 1px var(--rajma);
}

.pick input:focus-visible + .pick__body { outline: 3px solid var(--turmeric); outline-offset: 2px; }

.pick--out { opacity: .5; cursor: not-allowed; }
.pick--out .pick__meta { color: var(--bad); }

/* total + button */
.total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 0 14px;
  padding: 14px 16px;
  background: #f4f1ec;
  border-radius: 9px;
}

.total strong { font-size: 1.5rem; }

.btn-solid {
  display: block;
  width: 100%;
  padding: 15px 18px;
  font: 700 1.05rem/1 'Karla', sans-serif;
  color: #fff;
  text-align: center;
  text-decoration: none;
  background: var(--rajma);
  border: 0;
  border-radius: 9px;
  cursor: pointer;
}

.btn-solid:hover, .btn-solid:focus { background: var(--rajma-deep); color: #fff; }

.btn-plain {
  display: block;
  margin-top: 12px;
  text-align: center;
  font-size: .95rem;
  color: var(--muted);
}

.pay-note {
  margin: 12px 0 0;
  text-align: center;
  font-size: .85rem;
  color: var(--muted);
}

.alert-bad {
  margin-bottom: 18px;
  padding: 12px 14px;
  font-size: .92rem;
  color: #6d1d13;
  background: #fbeeec;
  border-left: 4px solid var(--bad);
  border-radius: 6px;
}

.trap { position: absolute; left: -9999px; }

/* ---------- confirmation ---------- */
.card--done { text-align: left; }

.done__badge {
  display: inline-block;
  margin: 0 0 12px;
  padding: 5px 12px;
  font-size: .84rem;
  font-weight: 700;
  color: var(--good);
  background: #eaf4ee;
  border-radius: 999px;
}

.done__title { margin: 0 0 8px; font-size: 1.5rem; }
.done__text { margin: 0 0 20px; color: var(--muted); }

.receipt { margin: 0 0 22px; }

.receipt > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.receipt dt { margin: 0; color: var(--muted); font-weight: 400; }
.receipt dd { margin: 0; font-weight: 700; text-align: right; }

/* ---------- footer ---------- */
.foot {
  margin-top: 22px;
  text-align: center;
  font-size: .9rem;
  color: var(--muted);
}

.foot a { color: var(--rajma); text-decoration: none; }
.foot span { padding: 0 8px; }

/* ---------- closed notice ---------- */
.notice {
  padding: 16px;
  font-size: .95rem;
  color: var(--muted);
  background: #f4f1ec;
  border-radius: 9px;
}
.notice strong { display: block; color: var(--ink); margin-bottom: 4px; }

.note-muted { margin: 6px 0 0; font-size: .85rem; color: var(--muted); }

/* ---------- searchable place box (Tom Select) ---------- */
.field .ts-wrapper { width: 100%; }
.field .ts-wrapper.single .ts-control {
  padding: 12px 38px 12px 13px;
  font: inherit;
  color: var(--ink);
  background: #fcfbf9;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  box-shadow: none;
}
.field .ts-wrapper.single .ts-control::after { border-color: var(--muted) transparent transparent; right: 15px; }
.field .ts-wrapper.focus .ts-control { border-color: var(--rajma); box-shadow: none; }
.field .ts-wrapper.is-wrong .ts-control { border-color: var(--bad); background: #fdf5f4; }
.field .ts-control input { font: inherit; }
.ts-dropdown { font: inherit; font-size: .98rem; border-color: var(--line); border-radius: 9px; overflow: hidden; }
.ts-dropdown .option { padding: 10px 13px; }
.ts-dropdown .active { background: var(--rajma-tint); color: var(--rajma); }

/* ---------- week calendar ---------- */
.cal { display: grid; gap: 10px; }
.cal__label { margin: 0 0 6px; font-size: .82rem; color: var(--muted); }
.cal__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal__day { position: relative; display: block; cursor: pointer; margin: 0; }
.cal__day input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.cal__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5px 2px 4px;
  background: #fcfbf9;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  line-height: 1.15;
}
.cal__dow { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.cal__num { font-family: 'Bitter', Georgia, serif; font-size: 1.1rem; font-weight: 700; margin: 1px 0; }
.cal__meta { font-size: .64rem; color: var(--good); min-height: 1em; white-space: nowrap; }
.cal__day input:checked + .cal__body {
  border-color: var(--rajma);
  background: var(--rajma-tint);
  box-shadow: inset 0 0 0 1px var(--rajma);
}
.cal__day input:checked + .cal__body .cal__meta { color: var(--rajma); }
.cal__day input:focus-visible + .cal__body { outline: 3px solid var(--turmeric); outline-offset: 2px; }
.cal__day--off { cursor: default; }
.cal__day--off .cal__body { background: transparent; border-style: dashed; color: #b3aca7; }
.cal__day--off .cal__dow { color: #b3aca7; }
.cal__day--off .cal__meta { color: var(--bad); }
.cal__picked { margin: 10px 0 0; font-weight: 700; font-size: .95rem; color: var(--rajma); }

/* ---------- booking page: two columns on wide screens ---------- */
.sheet--wide { max-width: 1160px; }
.sheet--wide .masthead { padding-bottom: 18px; }
.card--narrow { max-width: 560px; margin: 0 auto; }

.book {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(320px, 32vw, 380px);
  gap: 18px;
  align-items: start;
}
.book__alert { grid-column: 1 / -1; margin: 0; }
.book__main { display: grid; gap: 18px; min-width: 0; }
.book__side {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 16px);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  border-radius: 14px;
}

.step__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 1.2rem;
}
.step__num {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  font: 700 .9rem 'Karla', sans-serif;
  color: #fff;
  background: var(--rajma);
  border-radius: 50%;
}
.step__hint { margin: -6px 0 14px; font-size: .9rem; color: var(--muted); }
.field--last { margin-bottom: 0; }
.picker--slots { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.note-bad--block { margin: 0 0 12px; font-weight: 700; }
.menu-note {
  margin: 0 0 12px;
  padding: 10px 12px;
  font-size: .9rem;
  color: #6b4a05;
  background: #fdf0d8;
  border-left: 4px solid var(--turmeric);
  border-radius: 6px;
}
.dish[hidden] { display: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- menu cards ---------- */
.dishes { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.dish {
  display: flex;
  flex-direction: column;
  padding: 14px;
  background: #fcfbf9;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  transition: border-color .15s, box-shadow .15s;
}
.dish--on { background: #fff; border-color: var(--rajma); box-shadow: 0 6px 16px color-mix(in srgb, var(--rajma) 10%, transparent); }
.dish__name { margin: 0; font-size: 1.08rem; line-height: 1.25; }
.dish__desc { margin: 3px 0 0; font-size: .85rem; color: var(--muted); }
.dish__sizes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 8px;
  margin: auto 0 0;
  padding: 12px 0 0;
  list-style: none;
}
.size {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.size--on { background: var(--rajma-tint); border-color: var(--rajma-line); }
.size__label { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; padding: 0 2px; line-height: 1.2; }
.size__name { font-weight: 700; font-size: .95rem; }
.size__price { font-size: .88rem; color: var(--muted); }
.size--on .size__price { color: var(--rajma); font-weight: 700; }

.stepper { display: flex; flex: none; border: 1.5px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.stepper button {
  width: 38px;
  height: 38px;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--rajma);
  background: #fff;
  border: 0;
  cursor: pointer;
  touch-action: manipulation;
}
.stepper button:hover:not(:disabled) { background: var(--rajma-tint); }
.stepper button:disabled { color: #c9c2bc; cursor: default; }
.size .stepper button { flex: none; }
.size .stepper input { flex: 1; min-width: 0; }
.stepper input {
  width: 38px;
  padding: 0;
  font: 700 1rem 'Karla', sans-serif;
  text-align: center;
  border: 0;
  border-inline: 1.5px solid var(--line);
  -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.size--on .stepper { border-color: var(--rajma); }

/* ---------- order summary ---------- */
.summary { margin-bottom: 18px; }
.summary__empty { margin: 0; padding: 12px 14px; font-size: .9rem; color: var(--muted); background: #f4f1ec; border-radius: 9px; }
.summary__lines { margin: 0; padding: 0; list-style: none; }
.summary__lines li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.summary__what { line-height: 1.25; font-size: .95rem; }
.summary__qty { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.summary__qty span { min-width: 1.2em; text-align: center; }
.summary__qty button {
  width: 28px;
  height: 28px;
  font-size: 1rem;
  line-height: 1;
  color: var(--rajma);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}
.summary__qty button:disabled { color: #c9c2bc; cursor: default; }
.summary__amt { min-width: 3.6em; text-align: right; font-weight: 700; }
.summary .total { margin: 12px 0 0; }
.summary .plates-msg { margin-top: 10px; }

.plates-msg { margin: 8px 0 0; font-size: .86rem; color: var(--muted); }
.plates-msg--bad { color: var(--bad); font-weight: 700; }

/* ---------- bottom bar (phones and tablets) ---------- */
.bar { display: none; }

@media (max-width: 959px) {
  .book { grid-template-columns: 1fr; }
  .book__side { position: static; max-height: none; overflow: visible; }
  .sheet--wide { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    color: #fdf3e6;
    background: var(--rajma);
    box-shadow: 0 -8px 24px rgba(32, 28, 26, .18);
  }
  .bar { transition: transform .2s ease; }
  .bar--away { transform: translateY(110%); }
  .bar__info { line-height: 1.2; }
  .bar__info strong { display: block; font-family: 'Bitter', Georgia, serif; font-size: 1.25rem; color: #fff; }
  .bar__info span { font-size: .85rem; }
  .bar--bad .bar__info span { color: #ffd38a; font-weight: 700; }
  .bar__go {
    padding: 12px 22px;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
    background: var(--turmeric);
    border-radius: 9px;
  }
  .bar__go:hover, .bar__go:focus { color: var(--ink); background: var(--turmeric-hover); }
}

@media (min-width: 600px) {
  .cal__week { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 10px; }
  .cal__label { margin: 0; text-align: right; }
}

@media (min-width: 600px) and (max-width: 959px) {
  .book__side .card { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .book__side .step__title, .book__side .summary, .book__side .field:has(#place_id),
  .book__side .field:has(#notes), .book__side .btn-solid, .book__side .pay-note { grid-column: 1 / -1; }
}

/* ---------- confirmation: dishes and payment ---------- */
.lines { list-style: none; margin: -10px 0 22px; padding: 0; }
.lines li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.lines li > span:last-child { font-weight: 700; white-space: nowrap; }
.lines__total { font-weight: 700; font-size: 1.05rem; border-bottom: 0 !important; }

.pay {
  margin: 0 0 20px;
  padding: 18px;
  text-align: center;
  background: #f4f1ec;
  border-radius: 12px;
}
.pay__title { margin: 0 0 12px; font-size: 1.2rem; }
.pay__qr {
  display: inline-block;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.pay__qr svg, .pay__qr img { display: block; width: 220px; height: auto; max-width: 100%; }
.pay__app { margin: 14px 0 6px; }
.pay__small { margin: 8px 0 0; font-size: .86rem; color: var(--muted); }
.pay__ref { margin-top: 16px; text-align: left; }
.pay__ref label { display: block; margin-bottom: 6px; font-size: .9rem; font-weight: 700; }
.pay__ref-row { display: flex; gap: 8px; }
.pay__ref-row input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 8px;
}
.pay .alert-good { margin: 14px 0 0; text-align: left; }

@media (max-width: 420px) {
  body { font-size: 16px; }
  .card { padding: 18px 15px; }
  .row-two { grid-template-columns: 1fr; }
  .cal__days { gap: 4px; }
  .cal__num { font-size: 1.05rem; }
  .sheet--wide { padding: 18px 12px calc(96px + env(safe-area-inset-bottom, 0px)); }
  .sheet--wide .masthead { padding: 0 0 14px; }
  .masthead__name { font-size: 2.3rem; }
  .dish { padding: 12px; }
}

/* =================================================================
   Admin
   ================================================================= */
.admin-body {
  background: #f2f3f2;
  font-family: 'Karla', system-ui, sans-serif;
}

.admin-wrap { max-width: 1100px; margin: 0 auto; padding: 22px 16px 60px; }

.admin-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.admin-top h1 { margin: 0; font-size: 1.6rem; color: var(--rajma); }
.admin-top a { font-size: .92rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
}

.stat b {
  display: block;
  font-family: 'Bitter', serif;
  font-size: 1.7rem;
  line-height: 1.1;
}

.stat span { font-size: .85rem; color: var(--muted); }

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 18px;
  overflow-x: auto;
}

.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }

.filters label { display: block; font-size: .82rem; color: var(--muted); margin-bottom: 4px; }

.filters select, .filters input {
  padding: 9px 11px;
  font: inherit;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: #fcfbf9;
}

.filters .btn-small { padding: 10px 16px; }

.btn-small {
  display: inline-block;
  padding: 8px 14px;
  font: 700 .9rem/1 'Karla', sans-serif;
  color: #fff;
  background: var(--rajma);
  border: 0;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
}

.btn-small--ghost { color: var(--rajma); background: #fff; border: 1.5px solid var(--rajma); }

table.orders { width: 100%; border-collapse: collapse; font-size: .93rem; }

table.orders th {
  text-align: left;
  padding: 10px 8px;
  font-size: .8rem;
  color: var(--muted);
  border-bottom: 2px solid var(--line);
  white-space: nowrap;
}

table.orders td { padding: 11px 8px; border-bottom: 1px solid #eee9e3; vertical-align: middle; }
table.orders tr:hover td { background: #fbfaf8; }

.ref { font-family: 'Bitter', serif; font-weight: 700; }

.tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
}

.tag--Pending   { background: #fdf0d8; color: #8a5a05; }
.tag--Confirmed { background: #e4f0e9; color: #1f6b44; }
.tag--Completed { background: #e6ecf5; color: #274a80; }
.tag--Cancelled { background: #f6e7e5; color: #8f2c1d; }

.status-form { display: flex; gap: 6px; align-items: center; }
.status-form select { padding: 6px 8px; font: inherit; font-size: .85rem; border: 1.5px solid var(--line); border-radius: 7px; }

.empty { padding: 30px 10px; text-align: center; color: var(--muted); }

/* login */
.login-card {
  max-width: 380px;
  margin: 12vh auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px;
}

.login-card h1 { font-size: 1.4rem; margin: 0 0 6px; color: var(--rajma); }
.login-card p { color: var(--muted); font-size: .92rem; }

/* Veg / non-veg mark: a square outline in the type's colour, with a dot or a triangle inside. */
.diet {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: .95em;
  height: .95em;
  margin-right: .4em;
  vertical-align: -.08em;
  background: #fff;
  border: 1.5px solid var(--diet, #1e8c3a);
  border-radius: 2px;
}
.diet::before { content: ""; width: 52%; height: 52%; background: var(--diet, #1e8c3a); }
.diet--dot::before { border-radius: 50%; }
.diet--triangle::before { width: 60%; height: 54%; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.dish__name .diet { font-size: .9em; }
.dish-title { display: inline-flex; align-items: center; }

.picker--inline { display: flex; flex-wrap: wrap; gap: 8px; }
.picker--inline .pick__body { padding: 8px 14px; }
.picker--inline .pick__day { display: inline-flex; align-items: center; font-size: .95rem; }

/* Menu categories tree */
.tree { display: inline-flex; align-items: center; gap: 6px; }
.tree--2 { padding-left: 18px; }
.tree--3 { padding-left: 36px; }
.tree--4 { padding-left: 54px; }
.tree--5 { padding-left: 72px; }
.tree__branch { color: var(--muted); }
.tree__path { padding-left: 18px; }
@media (max-width: 720px) {
  .tree { padding-left: 0; }
  .tree__path { padding-left: 0; }
}

.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.filter-row select { min-width: 0; max-width: 100%; padding: 8px 10px; background: #fff; border: 1.5px solid var(--line); border-radius: 8px; }

.captcha { min-height: 78px; overflow-x: auto; }
.ticks--steps { list-style: decimal; }

@media print {
  body { background: #fff; }
  .filters, .admin-top a, .status-form, .btn-small { display: none; }
  .panel { border: 0; box-shadow: none; }
}

/* ---------- admin chrome: sections + page tabs ---------- */
.topbar { position: sticky; top: 0; z-index: 30; box-shadow: 0 2px 10px rgba(32, 28, 26, .12); }
.topbar__row {
  display: flex;
  align-items: center;
  gap: 8px 16px;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 18px 10px;
  color: #fdf3e6;
  background: var(--rajma);
}
.topbar__brand { font-family: 'Bitter', serif; font-size: 1.1rem; font-weight: 700; color: #fff; text-decoration: none; white-space: nowrap; }
.topbar__brand span { font-family: 'Karla', sans-serif; font-weight: 500; font-size: .85rem; color: #f6e3c4; }
.topbar__sections { display: flex; gap: 4px; margin-left: 8px; }
.topbar__sections a {
  padding: 7px 14px;
  font-weight: 700;
  font-size: .95rem;
  color: #f6e3c4;
  text-decoration: none;
  border-radius: 8px;
}
.topbar__sections a:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.topbar__sections a[aria-current] { color: var(--rajma); background: #fdf3e6; }
.topbar__spacer { flex: 1; }
.topbar__who { font-size: .92rem; color: #f6e3c4; white-space: nowrap; }
.topbar__out { margin: 0; }
.topbar .btn-small--ghost { color: #fdf3e6; background: transparent; border-color: rgba(253, 243, 230, .6); }

.topbar__menu { display: none; position: relative; }
.topbar__menu summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-weight: 700;
  color: #fff;
  list-style: none;
  border: 1.5px solid rgba(253, 243, 230, .6);
  border-radius: 8px;
  cursor: pointer;
}
.topbar__menu summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; }
.burger { position: relative; }
.burger::before, .burger::after { content: ''; position: absolute; left: 0; }
.burger::before { top: -5px; }
.burger::after { top: 5px; }
.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(300px, calc(100vw - 24px));
  max-height: calc(100vh - 90px);
  overflow-y: auto;
  padding: 8px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(32, 28, 26, .2);
}
.menu-panel__title { margin: 10px 10px 4px; font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.menu-panel__title:first-child { margin-top: 4px; }
.menu-panel a { display: block; padding: 10px 12px; color: var(--ink); text-decoration: none; border-radius: 8px; }
.menu-panel a:hover { background: #f4f1ec; }
.menu-panel a[aria-current="page"] { color: var(--rajma); font-weight: 700; background: var(--rajma-tint); }
.menu-panel__out { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 0 0; padding: 12px 10px 4px; border-top: 1px solid var(--line); }
.menu-panel .btn-small--ghost { color: var(--rajma); border-color: var(--rajma); }

.subnav {
  display: flex;
  gap: 4px;
  padding: 0 18px;
  overflow-x: auto;
  background: #fff;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.subnav::-webkit-scrollbar { display: none; }
.subnav a {
  flex: none;
  padding: 11px 12px 9px;
  font-size: .93rem;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.subnav a:hover { color: var(--ink); }
.subnav a[aria-current="page"] { color: var(--rajma); border-bottom-color: var(--rajma); }

@media (max-width: 860px) {
  .topbar__sections, .topbar__who, .topbar__out { display: none; }
  .topbar__menu { display: block; }
  .topbar__row { padding-inline: 14px; }
  .subnav { padding: 0 8px; }
}

.admin-wrap--narrow { max-width: 480px; }
.panel__title { margin: 0 0 4px; font-size: 1.3rem; }
.muted-line { margin: 6px 0 14px; color: var(--muted); font-size: .93rem; }
.cook-list { margin: 8px 0 0; padding-left: 18px; }
.sub { font-size: .8rem; color: var(--muted); }

.alert-good {
  margin-bottom: 18px;
  padding: 12px 14px;
  font-size: .92rem;
  color: #174f33;
  background: #eaf4ee;
  border-left: 4px solid var(--good);
  border-radius: 6px;
}

.login-card .field { margin-bottom: 14px; }

/* ---------- admin: forms ---------- */
.admin-wrap--flash { padding-bottom: 0; }
.admin-wrap--flash .alert-good, .admin-wrap--flash .alert-bad { margin-bottom: 0; }
.admin-top p.muted-line { flex-basis: 100%; margin: 0; }
.admin-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 14px; }
.field input[type="file"] { font: inherit; font-size: .9rem; }
.form .btn-solid { margin-top: 6px; }

.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check { display: inline-flex; align-items: center; gap: 7px; font-size: .93rem; cursor: pointer; }
.checks .check {
  padding: 7px 12px;
  background: #fcfbf9;
  border: 1.5px solid var(--line);
  border-radius: 8px;
}
.checks .check:has(input:checked) { border-color: var(--rajma); background: var(--rajma-tint); }
.check input { width: 17px; height: 17px; accent-color: var(--rajma); }
.check--big { display: flex; margin: 4px 0 18px; font-weight: 700; }

.price-grid { display: grid; gap: 8px; margin-top: 8px; }
.price-grid__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700; }
.money-input { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 9px; background: #fcfbf9; overflow: hidden; }
.money-input > span { padding: 0 4px 0 12px; color: var(--muted); }
.money-input input { width: 120px; padding: 10px 12px 10px 2px; font: inherit; border: 0; background: transparent; }
.money-input:focus-within { border-color: var(--rajma); }

.qr-preview { display: block; width: 140px; margin: 4px 0 8px; border: 1px solid var(--line); border-radius: 8px; }

.danger-zone { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }

.btn-link { padding: 0; font: inherit; font-size: .88rem; color: var(--rajma); background: none; border: 0; text-decoration: underline; cursor: pointer; }
.btn-link--bad { color: var(--bad); font-weight: 700; }
.btn-small--good { background: var(--good); }
.btn-small:disabled { opacity: .5; cursor: default; }

.switch {
  padding: 5px 11px 5px 26px;
  font: 700 .8rem 'Karla', sans-serif;
  color: var(--muted);
  background: #f1efec url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3E%3Ccircle cx='5' cy='5' r='5' fill='%23b3aca7'/%3E%3C/svg%3E") no-repeat 10px center;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}
.switch--on {
  color: var(--good);
  background-color: #eaf4ee;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3E%3Ccircle cx='5' cy='5' r='5' fill='%231f6b44'/%3E%3C/svg%3E");
  border-color: #bcdcc8;
}

.tabs { display: flex; gap: 4px; padding: 3px; background: #e7e4e0; border-radius: 9px; }
.tabs a { padding: 6px 12px; font-size: .88rem; font-weight: 700; color: var(--muted); text-decoration: none; border-radius: 7px; }
.tabs a[aria-current="page"] { color: var(--rajma); background: #fff; }

.list-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 18px; align-items: start; }
.list-layout .panel { margin-bottom: 0; }
table.orders tr.is-editing td { background: var(--rajma-tint); }
table.orders tr.is-cancelled td { color: #9c958f; }
table.orders tr.is-cancelled td .tag, table.orders tr.is-cancelled td .switch { color: inherit; }
table.orders td { vertical-align: top; }

/* ---------- admin: orders, payments ---------- */
.dish-list { margin: 0; padding: 0; list-style: none; font-size: .9rem; }
.dish-list li { white-space: nowrap; }
.tag--paid   { background: #e4f0e9; color: #1f6b44; }
.tag--unpaid { background: #fdf0d8; color: #8a5a05; }
.paybox { min-width: 170px; }
.paybox .sub { margin-top: 3px; }
.paybox__form { display: flex; gap: 6px; margin-top: 6px; align-items: center; }
.paybox__form input {
  width: 130px;
  padding: 6px 8px;
  font: inherit;
  font-size: .82rem;
  border: 1.5px solid var(--line);
  border-radius: 7px;
}
.status-form { margin-top: 6px; }

/* ---------- admin: calendar ---------- */
.month-nav { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.months { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.months .panel { margin-bottom: 0; }
.month__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 10px; }
.month__dow { font-size: .72rem; color: var(--muted); text-align: center; padding-bottom: 2px; }
.mday {
  display: flex;
  flex-direction: column;
  min-height: 54px;
  padding: 4px 5px;
  font-size: .8rem;
  color: var(--ink);
  text-decoration: none;
  border: 1.5px solid var(--line);
  border-radius: 7px;
  background: #fcfbf9;
}
a.mday:hover { border-color: var(--rajma); }
.mday--blank { border: 0; background: transparent; }
.mday--open { background: #eaf4ee; border-color: #bcdcc8; }
.mday--closed { background: #f6e7e5; border-color: #ecc9c3; }
.mday--past { opacity: .5; }
.mday--today .mday__num { color: #fff; background: var(--rajma); border-radius: 999px; padding: 0 6px; align-self: flex-start; }
.mday__num { font-weight: 700; }
.mday__meta { font-size: .68rem; color: var(--muted); }
.mday--open .mday__meta { color: var(--good); }
.mday--closed .mday__meta { color: var(--bad); }
.mday__orders { margin-top: auto; font-size: .66rem; font-weight: 700; color: var(--rajma); }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; font-size: .85rem; color: var(--muted); }
.legend .mday { display: inline-block; width: 18px; min-height: 18px; padding: 0; }

@media (max-width: 760px) {
  .list-layout { grid-template-columns: 1fr; }
  .mday { min-height: 44px; }
  .mday__meta { display: none; }
}

/* ---------- admin: expenses + reports ---------- */
.admin-top__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.admin-form__row--tight { margin-top: 10px; }
.stat__text { font-size: 1.2rem !important; line-height: 1.3 !important; }
.stat--profit b { color: var(--good); }
.stat--loss b { color: var(--bad); }
.num { text-align: right !important; white-space: nowrap; }
.is-profit { color: var(--good); font-weight: 700; }
.is-loss { color: var(--bad); font-weight: 700; }
table.orders tr.is-quiet td { color: #a59e98; }
table.orders tfoot td { font-weight: 700; border-top: 2px solid var(--line); border-bottom: 0; }
table.report td, table.report th { padding: 8px; }
.table-scroll { overflow-x: auto; }
.report-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 0 18px; }
.show-sm { display: none; }
.stat span { display: block; margin-top: 4px; line-height: 1.35; }
.filters select, .filters input { height: 42px; }
.row-actions { text-align: right; white-space: nowrap; }

.add-panel { padding: 0; }
.add-panel > summary { list-style: none; padding: 14px 16px; cursor: pointer; }
.add-panel > summary::-webkit-details-marker { display: none; }
.add-panel[open] > summary { padding-bottom: 6px; }
.add-panel > form, .add-panel > .alert-bad { margin: 0 16px 16px; }
.expense-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 14px; }
.expense-form__wide { grid-column: span 2; }
.expense-form .field { margin-bottom: 14px; }
.expense-form + .sub { margin: -4px 0 14px; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.btn-small.is-off { opacity: .4; pointer-events: none; }

@media (max-width: 900px) {
  .expense-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .expense-form { grid-template-columns: 1fr; }
  .expense-form__wide { grid-column: auto; }
  .report-grid { grid-template-columns: 1fr; }
}

/* ---------- admin on phones: table rows become cards ---------- */
@media (max-width: 760px) {
  .admin-wrap { padding: 16px 12px 48px; }
  .admin-top h1 { font-size: 1.35rem; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .stat { padding: 11px 12px; }
  .stat b { font-size: 1.3rem; }
  .panel { padding: 12px; }
  .filters > div { flex: 1 1 140px; }
  .filters select, .filters input { width: 100%; }
  .tabs { overflow-x: auto; max-width: 100%; }
  .tabs a { flex: none; }

  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack thead { display: none; }
  table.stack tr {
    margin-bottom: 10px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
  }
  table.stack tr:hover td { background: transparent; }
  table.stack td {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    justify-content: flex-end;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px dashed #eee9e3;
    text-align: right;
  }
  table.stack td:last-child { border-bottom: 0; }
  table.stack td::before { content: attr(data-label); flex: none; margin-right: auto; font-size: .8rem; font-weight: 700; color: var(--muted); text-align: left; }
  table.stack td.is-empty { display: none; }
  .panel:has(> table.stack) { padding: 0; background: transparent; border: 0; }
  .panel:has(> table.stack) > .pager { padding: 0 4px; }
  .hide-sm { display: none !important; }
  .show-sm { display: inline; }
  table.report tr.is-quiet { display: none; }
  table.stack td:not([data-label])::before { content: none; }
  table.stack td.stack__head { display: block; padding-top: 0; font-size: 1.05rem; text-align: left; border-bottom: 1px solid var(--line); }
  table.stack td.row-actions { justify-content: flex-end; }
  table.stack td .dish-list, table.stack td .paybox, table.stack td .sub { text-align: right; }
  table.stack td .status-form, table.stack td .paybox__form { justify-content: flex-end; flex-wrap: wrap; }
  table.stack td .paybox { min-width: 0; }
  table.stack tfoot { display: block; }
  table.stack tfoot tr { background: #f4f1ec; }
  table.stack .hide-stacked { display: none; }
  table.stack tr.is-cancelled { opacity: .7; }
  .list-layout { grid-template-columns: 1fr; }
}

/* ---------- brand: logo, contact block ---------- */
.masthead__logo { margin: 4px 0 0; line-height: 0; }
.masthead__logo img { max-width: min(320px, 80vw); max-height: 110px; width: auto; height: auto; }
.topbar__brand { display: inline-flex; align-items: center; gap: 8px; }
.topbar__symbol { width: 30px; height: 30px; object-fit: contain; background: #fff; border-radius: 7px; padding: 2px; }

.contact {
  margin: 22px auto 0;
  max-width: 1160px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.sheet:not(.sheet--wide) .contact { max-width: 560px; }
.contact__title { margin: 0 0 12px; font-size: 1.1rem; }
.contact__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 18px; margin: 0; padding: 0; list-style: none; }
.contact__item { display: flex; flex-direction: column; min-width: 0; }
.contact__label { font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.contact__item a, .contact__item > span:last-child { overflow-wrap: anywhere; font-weight: 700; color: var(--ink); text-decoration: none; }
.contact__item a { color: var(--rajma); }
.contact__item--address, .contact__item--hours { grid-column: span 1; }

/* ---------- admin: settings pages ---------- */
.admin-wrap--mid { max-width: 980px; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.settings-grid__full { grid-column: 1 / -1; }
.settings-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; align-items: start; }
.settings-save {
  position: sticky;
  bottom: 0;
  z-index: 5;
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, #f2f3f2 70%, rgba(242, 243, 242, 0));
}
.settings-save .btn-solid { max-width: 360px; margin: 0 0 0 auto; }
.field textarea {
  width: 100%;
  padding: 12px 13px;
  font: inherit;
  color: var(--ink);
  background: #fcfbf9;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  resize: vertical;
}
.field input[type="email"], .field input[type="url"] {
  width: 100%;
  padding: 12px 13px;
  font: inherit;
  color: var(--ink);
  background: #fcfbf9;
  border: 1.5px solid var(--line);
  border-radius: 9px;
}

.upload__row { display: flex; gap: 14px; align-items: center; }
.upload__preview {
  display: grid;
  place-items: center;
  flex: none;
  width: 96px;
  height: 96px;
  padding: 6px;
  background: #f4f1ec repeating-conic-gradient(#ece8e2 0 25%, transparent 0 50%) 0 0 / 16px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.upload__preview--logo, .upload__preview--share-image { width: 160px; }
.upload__preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.upload__controls { display: grid; gap: 8px; min-width: 0; }
.upload__controls input[type="file"] { max-width: 100%; font-size: .88rem; }

.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 8px; margin-bottom: 16px; }
.swatch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
}
.swatch span { height: 30px; }
.swatch small { grid-column: 1 / -1; padding: 4px; font-size: .75rem; font-weight: 700; color: var(--muted); }
.swatch:hover, .swatch:focus-visible { border-color: var(--ink); }
.color-input { display: flex; gap: 8px; }
.color-input input[type="color"] { flex: none; width: 48px; height: 46px; padding: 3px; background: #fff; border: 1.5px solid var(--line); border-radius: 9px; cursor: pointer; }
.color-input input[type="text"] { font-family: ui-monospace, monospace !important; text-transform: lowercase; }

.brand-preview {
  --p: var(--rajma);
  --a: var(--turmeric);
  padding: 18px;
  text-align: center;
  background: linear-gradient(180deg, var(--steel), var(--steel-deep));
  border-radius: 12px;
}
.brand-preview p { margin: 0; }
.brand-preview__kicker { font-size: .78rem; color: var(--muted); }
.brand-preview__name { font: 700 1.9rem/1.1 'Bitter', serif; color: var(--p); overflow-wrap: anywhere; }
.brand-preview__tagline { margin-top: 4px !important; font-size: .88rem; color: var(--muted); }
.brand-preview__board { margin: 14px 0 10px; padding: 10px 12px; font-size: .82rem; color: #fdf3e6; text-align: left; background: var(--p); border-radius: 8px; }
.brand-preview__board b { display: block; color: #fff; font-family: 'Bitter', serif; font-size: .98rem; }
.brand-preview__btn { display: inline-block; padding: 10px 22px; font-weight: 700; color: #fff; background: var(--p); border-radius: 8px; }
.brand-preview__chip { display: inline-block; margin-left: 8px; padding: 10px 16px; font-weight: 700; color: var(--ink); background: var(--a); border-radius: 8px; }

.link-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.link-card__img { aspect-ratio: 1.91 / 1; background: #f4f1ec; }
.link-card__img img { width: 100%; height: 100%; object-fit: cover; }
.link-card__body { display: grid; gap: 3px; padding: 10px 12px 12px; background: #f6f6f6; }
.link-card__body strong { font-size: .95rem; }
.link-card__body span { font-size: .85rem; color: var(--muted); }
.link-card__body small { font-size: .75rem; color: var(--muted); text-transform: lowercase; }

@media (max-width: 760px) {
  .settings-grid, .settings-split { grid-template-columns: 1fr; }
  .settings-save .btn-solid { max-width: none; }
  .upload__row { align-items: flex-start; }
}

/* ---------- admin: sources & links ---------- */
.sources-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0 18px; align-items: start; }
.panel__title--gap { margin-top: 22px; }
.source { margin-top: 2px; font-family: 'Karla', sans-serif; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chip { padding: 6px 11px; font-size: .85rem; font-weight: 700; color: var(--rajma); text-decoration: none; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; }
.chip:hover { border-color: var(--rajma); }
.chip--on { color: #fff; background: var(--rajma); border-color: var(--rajma); }
.builder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; align-items: end; }
.builder .field { margin-bottom: 12px; }
.builder .btn-small { grid-column: 1 / -1; justify-self: start; padding: 10px 18px; }
.share-link { display: flex; gap: 16px; align-items: flex-start; margin-top: 16px; padding: 14px; background: #f4f1ec; border-radius: 12px; }
.share-link__qr { flex: none; padding: 6px; line-height: 0; background: #fff; border-radius: 8px; }
.share-link__qr svg { width: 130px; height: 130px; }
.share-link__body { display: grid; gap: 8px; min-width: 0; flex: 1; }
.share-link__body input { width: 100%; padding: 9px 10px; font: .85rem ui-monospace, monospace; background: #fff; border: 1.5px solid var(--line); border-radius: 8px; }
.share-link__actions { display: flex; gap: 8px; }

@media (max-width: 900px) {
  .sources-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .builder { grid-template-columns: 1fr; }
  .share-link { flex-direction: column; align-items: center; }
  .share-link__qr svg { width: 180px; height: 180px; }
}

/* ---------- admin: weekday toggles, dish form, calendar layout ---------- */
.weekdays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.weekday { position: relative; margin: 0; cursor: pointer; }
.weekday input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.weekday span {
  display: block;
  padding: 9px 0;
  font-size: .88rem;
  font-weight: 700;
  text-align: center;
  color: var(--muted);
  background: #fcfbf9;
  border: 1.5px solid var(--line);
  border-radius: 8px;
}
.weekday input:checked + span { color: #fff; background: var(--rajma); border-color: var(--rajma); }
.weekday input:focus-visible + span { outline: 3px solid var(--turmeric); outline-offset: 2px; }
.field--check { display: flex; align-items: flex-end; }
.field--check .check--big { margin: 0 0 12px; }
.field .money-input input { width: 100%; padding: 10px 12px 10px 2px; border: 0; border-radius: 0; background: transparent; }
.money-input { flex: 0 1 180px; }
.admin-top > div > a { font-size: .9rem; }
.admin-top h1 { overflow-wrap: anywhere; }
.danger-zone { margin-top: 4px; }

.cal-layout { display: grid; grid-template-columns: minmax(320px, 380px) minmax(0, 1fr); gap: 18px; align-items: start; }
.cal-form { margin: 0; }
.cal-form > summary .sub { margin-left: 6px; }
.cal-months .months { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
@media (max-width: 1099px) {
  .cal-layout { grid-template-columns: 1fr; }
  .cal-form { position: static; }
  .cal-form:not([open]) { margin-bottom: 0; }
}
@media (max-width: 480px) {
  .weekdays { gap: 4px; }
  .weekday span { padding: 8px 0; font-size: .8rem; }
  .month__grid { gap: 3px; }
  .mday { min-height: 40px; padding: 3px; font-size: .78rem; }
  .mday__orders { font-size: .6rem; }
  .month-nav .btn-small { flex: 1; text-align: center; padding-inline: 8px; }
}

/* ---------- admin: privacy & search ---------- */
.cmd, .ticks code { font: .85rem ui-monospace, monospace; padding: 1px 5px; background: rgba(0, 0, 0, .06); border-radius: 4px; }
.alert-bad .cmd { display: block; margin-top: 8px; padding: 8px 10px; background: #fff; }
.copy-row { display: flex; gap: 8px; margin: 4px 0 12px; }
.copy-row input { flex: 1; min-width: 0; padding: 9px 10px; font: .85rem ui-monospace, monospace; background: #fff; border: 1.5px solid var(--line); border-radius: 8px; }
.ticks { margin: 0; padding-left: 18px; font-size: .88rem; color: var(--muted); }
.ticks li { margin-bottom: 4px; }
.robots-preview {
  max-height: 260px;
  margin: 0 0 8px;
  padding: 12px;
  overflow: auto;
  font: .82rem/1.5 ui-monospace, monospace;
  white-space: pre-wrap;
  background: #f4f1ec;
  border-radius: 8px;
}

@media print {
  .topbar, .tabs, .paybox__form, .danger-zone, .month-nav, .no-print { display: none; }
}
