/* Kitchen view */
.admin main { padding-block: 1.5rem 5rem; }
.login { max-width: 360px; margin: 4rem auto; }
.login form { display: grid; gap: .8rem; margin-top: 1rem; }

.tabs { position: sticky; top: 0; z-index: 20; display: flex; gap: .25rem; background: var(--plate); border-bottom: 1px solid var(--line); margin: 0 -1.25rem 1.8rem; padding-inline: 1.25rem; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { display: inline-flex; align-items: center; min-height: 48px; padding: .6rem 1.1rem; text-decoration: none; color: var(--ink-soft); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.tab-badge { display: inline-grid; place-items: center; min-width: 1.4rem; height: 1.4rem; padding: 0 .35rem; margin-left: .3rem; border-radius: 99px; background: var(--saddle); color: var(--white); font-size: .75rem; }

.bar { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: end; justify-content: space-between; margin-bottom: 1.6rem; }
.bar .sub { margin-top: .4rem; }
.bar-tools { display: flex; gap: .8rem; align-items: end; flex-wrap: wrap; }
.bar-tools .field { width: 190px; }
.sub { color: var(--ink-soft); max-width: 72ch; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; margin-bottom: 1rem; }
.stats > div { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: .95rem 1.1rem; box-shadow: var(--shadow-1); }
.stats > div:empty { display: none; }
.stats strong { display: block; font: 600 1.85rem/1.05 var(--sans); letter-spacing: -.02em; font-variant-numeric: lining-nums tabular-nums; }
.stats span { display: block; margin-top: .3rem; color: var(--ink-soft); font-size: .85rem; }
.panel h2 { font-size: 1.8rem; margin: 2.4rem 0 .9rem; }

table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--white); font-size: .92rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #FCFAF6; }
th, td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; background: #F1EBE2; font-size: .85rem; }
th.r, td.r { text-align: right; }
td.n { font-variant-numeric: tabular-nums; font-weight: 600; }
td small, .muted { color: var(--ink-soft); }

.pill { display: inline-block; padding: .1rem .55rem; border-radius: 99px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.paid, .published, .live { background: var(--accent-tint); color: var(--accent); }
.awaiting_venmo, .comp { background: #F4E7D3; color: var(--saddle); }
.pending, .preview, .removed, .seed, .canceled { background: #EEE9E2; color: var(--ink-soft); }
.payment_failed { background: var(--alert-tint); color: var(--alert); }

.alert-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; background: var(--accent); color: var(--white); padding: .9rem 1.2rem; border-radius: var(--radius); margin-bottom: 1.6rem; }
.alert-bar strong { font-size: 1.1rem; }
.alert-bar a { color: var(--white); font-weight: 600; }
.warn { background: var(--alert-tint); color: var(--alert); padding: .8rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; }
.btn.sm, .act .btn { min-height: 36px; padding: .35rem .85rem; font-size: .88rem; }
.act { display: inline-flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.linkish.danger { color: var(--alert); }

/* Grocery list */
.aisle { margin-top: 1.2rem; }
.aisle h3 { font: 600 .8rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--saddle); margin-bottom: .45rem; }
.aisle td:first-child { width: 34%; font-weight: 600; }
.aisle td.buy { font-weight: 600; white-space: nowrap; }
.aisle td.need { color: var(--ink-soft); white-space: nowrap; }
.box { display: inline-block; width: .95rem; height: .95rem; border: 1.5px solid var(--ink); border-radius: 3px; vertical-align: -2px; margin-right: .5rem; }
.empty-note { padding: 1rem 1.2rem; background: var(--white); border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--ink-soft); }

/* Menus */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; box-shadow: var(--shadow-1); }
.live-card .head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: baseline; }
.live-card h2 { margin: 0; font-size: 1.7rem; }
.dish-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .6rem; margin-top: 1rem; }
.dish { padding: .7rem .8rem; border-radius: var(--radius-sm); background: var(--plate); font-size: .88rem; }
.dish strong { display: block; font-size: .95rem; }
.chip { display: inline-block; margin: .3rem .25rem 0 0; padding: .05rem .45rem; border-radius: 99px; background: #EADFCF; font-size: .74rem; font-weight: 600; }
.chip.ok { background: var(--accent-tint); }
.upload-steps { margin: 0; padding-left: 1.3rem; display: grid; gap: 1.3rem; max-width: 78ch; }
.upload-steps li > div { margin-top: .6rem; }
.upload-steps li::marker { font-weight: 600; }
.cols { margin-top: .6rem; }
.cols summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.cols dl { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1rem; margin: .8rem 0 0; font-size: .9rem; }
.cols dt { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .82rem; }
.cols dd { margin: 0; color: var(--ink-soft); }
code { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .85em; background: #EFE7DB; padding: .05rem .3rem; border-radius: 3px; }
.upload-form { display: grid; gap: .8rem; margin-top: .7rem; max-width: 560px; }
.check { display: flex; gap: .5rem; align-items: center; font-size: .95rem; }
.check input { width: auto; min-height: 0; }
.check-ok { color: var(--accent); font-weight: 600; }
.check-list { margin: .4rem 0 0; padding-left: 1.1rem; font-size: .9rem; }
.check-list.err { color: var(--alert); }
.check-list.wrn { color: var(--saddle); }
#menuView .card { margin-top: 1rem; }
#menuView table { margin-top: .8rem; }

/* Reviews */
.rev-summary { display: grid; grid-template-columns: repeat(4, auto) 1fr; gap: 1rem 2.6rem; align-items: center; padding: 1.1rem 0; border-block: 1px solid var(--line); margin-bottom: 1.2rem; }
.rev-summary strong { display: block; font: 600 1.85rem/1.05 var(--sans); letter-spacing: -.02em; font-variant-numeric: lining-nums tabular-nums; }
.rev-summary span { color: var(--ink-soft); font-size: .88rem; }
.dist { display: grid; gap: .2rem; max-width: 320px; justify-self: end; width: 100%; font-size: .8rem; }
.dist div { display: grid; grid-template-columns: 2.4rem 1fr 1.6rem; gap: .5rem; align-items: center; }
.dist i { display: block; height: 7px; border-radius: 99px; background: #E7DDCF; overflow: hidden; }
.dist i b { display: block; height: 100%; background: var(--saddle); }
.policy { color: var(--ink-soft); max-width: 78ch; font-size: .93rem; margin-bottom: 1rem; }
.policy p + p { margin-top: .5rem; }
.rev-tools { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin: 1.2rem 0 1rem; }
.rev-tools .field { width: auto; }
.rev-tools .grow { flex: 1; min-width: 200px; }
.chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.chips button { min-height: 38px; padding: .35rem .9rem; border-radius: 99px; border: 1px solid var(--line-strong); background: var(--white); font: 600 .88rem var(--sans); color: var(--ink-soft); cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--white); }
.rev { display: grid; grid-template-columns: 1fr auto; gap: .6rem 1.6rem; padding: 1.1rem 1.2rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .6rem; }
.rev.needs { border-color: var(--saddle); box-shadow: inset 4px 0 0 var(--saddle); }
.rev .stars-row { color: var(--saddle); letter-spacing: .08em; }
.rev .meta { font-size: .85rem; color: var(--ink-soft); margin-top: .35rem; }
.rev blockquote { margin: .35rem 0 0; max-width: 75ch; }
.rev .side { display: grid; gap: .5rem; justify-items: end; align-content: start; text-align: right; }
.rev .confirm { display: inline-flex; gap: .4rem; align-items: center; font-size: .85rem; color: var(--alert); }
@media (max-width: 760px) {
  .rev { grid-template-columns: 1fr; }
  .rev .side { justify-items: start; text-align: left; }
  .rev-summary { grid-template-columns: repeat(2, 1fr); }
  .dist { grid-column: 1 / -1; justify-self: stretch; max-width: none; }
}

.print-only { display: none; }
@media print {
  @page { margin: .5in; }
  .masthead, .noprint, .panel:not(#panel-sunday), .tabs, .alert-bar { display: none !important; }
  .print-only { display: block; }
  .print-head { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: #555; }
  body { background: #fff; }
  #panel-sunday { display: block !important; }
  .panel h2 { font-size: 1.3rem; margin: 1.2rem 0 .5rem; break-after: avoid; }
  table { font-size: .82rem; }
  th, td { padding: .35rem .5rem; }
  .aisle { break-inside: avoid; }
  .stats strong { font-size: 1.6rem; }
}

.btn-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.tab-guide { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .45rem; }
.tab-guide li { padding: .55rem .8rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .93rem; color: var(--ink-soft); }
.tab-guide b { display: block; color: var(--ink); }
.totals-table td.n { white-space: nowrap; }
.dish-block { margin-top: 1.2rem; }
.dish-block h3 { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.dish-block .meta { color: var(--ink-soft); font-size: .88rem; margin: .2rem 0 .5rem; }

/* Menu rotation */
.rot-card { display: grid; gap: .9rem; }
.rot-status { display: flex; flex-wrap: wrap; gap: .6rem 2.4rem; align-items: baseline; }
.rot-status .lbl { display: block; font-size: .8rem; color: var(--ink-soft); }
.rot-status strong { font-size: 1.05rem; }
.rot-clock { font: 600 1.6rem/1.1 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.rot-controls { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: end; }
.rot-controls .field { width: 190px; }
.rot-help { font-size: .88rem; }
.switch { display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; font-weight: 600; min-height: 44px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 42px; height: 24px; border-radius: 99px; background: #CFC3B2; position: relative; transition: background-color .15s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--white); transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }
.rot-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .5rem; }
.rot-item { display: grid; grid-template-columns: auto auto 1fr auto; gap: .9rem; align-items: center; padding: .8rem 1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.rot-item.is-live { border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent); }
.rot-item.dragging { opacity: .85; box-shadow: 0 10px 24px rgba(40, 28, 16, .18); border-color: var(--saddle); position: relative; z-index: 2; }
.rot-item.muted-item { background: #F1ECE5; color: var(--ink-muted); border-style: dashed; box-shadow: none; }
.rot-item.muted-item .rot-name, .rot-item.muted-item .rot-meta { color: #6F6862; }
.handle { width: 40px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--line-strong); cursor: grab; touch-action: none; border-radius: var(--radius-sm); font-size: 1.1rem; letter-spacing: -.1em; }
.handle:hover { background: #F1EBE2; color: var(--ink); }
.handle:active { cursor: grabbing; }
.handle[disabled] { visibility: hidden; }
.rot-num { width: 1.8rem; height: 1.8rem; display: grid; place-items: center; border-radius: 50%; background: #EFE7DB; font-weight: 600; font-size: .85rem; }
.is-live .rot-num { background: var(--accent); color: var(--white); }
.rot-name { font-weight: 600; font-size: 1.02rem; }
.rot-meta { font-size: .84rem; color: var(--ink-soft); margin-top: .1rem; }
.rot-actions { display: flex; flex-wrap: wrap; gap: .5rem .9rem; align-items: center; justify-content: flex-end; }
.rot-actions .move { display: inline-flex; gap: .2rem; }
.rot-actions .move button { width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--white); cursor: pointer; color: var(--ink-soft); }
.rot-actions .move button:disabled { opacity: .35; cursor: default; }
.pill.live-pill { background: var(--accent); color: var(--white); }
.pill.next-pill { background: #F4E7D3; color: var(--saddle); }
.rot-muted-title { margin-top: 1.6rem; font-size: 1rem; font-weight: 600; }
@media (max-width: 760px) {
  .rot-item { grid-template-columns: auto auto 1fr; }
  .rot-actions { grid-column: 1 / -1; justify-content: flex-start; }
}

/* Delete order confirm */
.del-confirm { display: grid; gap: .45rem; padding: .7rem .8rem; border: 1px solid var(--alert); border-radius: var(--radius-sm); background: var(--alert-tint); color: var(--alert); font-size: .85rem; max-width: 280px; }
.del-confirm .act .btn { background: var(--alert); color: var(--white); }

/* Elevation pass: header, help, orders on phones */
.admin-head { display: flex; align-items: center; gap: .4rem 1.2rem; flex-wrap: wrap; justify-content: flex-end; }
.admin-kicker { color: var(--on-dark-soft); font-size: .9rem; }
.admin-link { min-height: 44px; display: inline-flex; align-items: center; padding: 0 .2rem; background: none; border: 0; color: var(--on-dark); font: 600 .9rem var(--sans); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(240,236,230,.4); cursor: pointer; }
.admin-link:hover { text-decoration-color: currentColor; }
.how { margin: -.2rem 0 1rem; max-width: 72ch; }
.how summary { cursor: pointer; font-weight: 600; color: var(--accent); min-height: 44px; display: inline-flex; align-items: center; }
.how p { color: var(--ink-soft); font-size: .93rem; }
.orders-table td:first-child strong { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.linkish { min-height: 32px; }
@media (pointer: coarse) { .linkish { min-height: 44px; } }
@media (max-width: 760px) {
  .admin .wrap { padding-inline: 1rem; }
  .tabs { margin-inline: -1rem; padding-inline: 1rem; -webkit-mask: linear-gradient(90deg, #000 85%, transparent); mask: linear-gradient(90deg, #000 85%, transparent); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bar-tools, .bar-tools .field, .bar-tools .btn { width: 100%; }
  .admin-kicker { display: none; }
  .orders-table, .orders-table tbody { display: block; border: 0; background: none; box-shadow: none; overflow: visible; }
  .orders-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .orders-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: .2rem 1rem; padding: 1rem 1.1rem; margin-bottom: .7rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); }
  .orders-table td { display: block; padding: .35rem 0; border: 0; background: none !important; text-align: left; }
  .orders-table td::before { content: attr(data-label); display: block; font-size: .75rem; font-weight: 600; color: var(--saddle); margin-bottom: .1rem; }
  .orders-table td[data-label="Address"], .orders-table td[data-label="Meals"] { grid-column: 1 / -1; }
  .orders-table td.r { text-align: left; }
  .orders-table tr.empty-row { display: block; }
  .orders-table tr.empty-row td::before { content: none; }
  .aisle table, .totals-table, #menuView table, .panel > table:not(.orders-table) { display: block; overflow-x: auto; }
}
@media print {
  .stats > div { box-shadow: none; padding: .4rem .6rem; }
  table { box-shadow: none; border-radius: 0; }
  .tabs, .how { display: none !important; }
}
.admin .masthead { position: static; }
.chip.todo { background: transparent; border: 1px dashed var(--line-strong); color: var(--ink-soft); }
.orders-table small a { color: inherit; }
@media (max-width: 760px) { .dish-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dish { padding: .6rem .65rem; } }
.subs-table tr.sub-off td { color: var(--ink-muted); }
@media (max-width: 760px) { .subs-table td[data-label="Subscriber"] { grid-column: 1 / -1; } }
.panel > .hint { margin-top: 1rem; }

/* Menus sub-tabs */
.subtabs { display: inline-flex; gap: .25rem; padding: .3rem; margin: 0 0 1.4rem; background: #EEE8DF; border-radius: 999px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.subtabs::-webkit-scrollbar { display: none; }
.subtabs button { min-height: 44px; padding: .5rem 1.15rem; border: 0; border-radius: 999px; background: transparent; color: var(--ink-soft); font: 600 .92rem var(--sans); white-space: nowrap; cursor: pointer; }
.subtabs button:hover { color: var(--ink); }
.subtabs button[aria-selected="true"] { background: var(--white); color: var(--ink); box-shadow: var(--shadow-1); }
.subpanel > .sub:first-child { margin-top: 0; max-width: 72ch; }
.biz-item { grid-template-columns: 1fr auto; }
.cater-card { margin-bottom: 1rem; }
.cater-card .head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.cater-card h2 { margin: 0; font-size: 1.6rem; }
.cater-card h3 { font: 600 .8rem var(--sans); letter-spacing: .02em; color: var(--saddle); margin: 1rem 0 .3rem; }
.cater-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; }
.cater-card .muted { color: var(--ink-soft); font-size: .92rem; }
.price-tag { font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .subtabs { display: flex; border-radius: var(--radius); } .biz-item { grid-template-columns: 1fr; } .biz-item .rot-actions { justify-content: flex-start; } }
@media (max-width: 560px) {
  .subtabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .subtabs button { white-space: normal; line-height: 1.2; padding: .45rem .5rem; font-size: .82rem; }
}

/* Grocery list: what's already in the kitchen */
.have-bar { display: flex; justify-content: space-between; align-items: center; gap: .4rem 1.2rem; flex-wrap: wrap; padding: .7rem 1rem; margin: 0 0 .4rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.have-bar p { margin: 0; }
.have-bar span { color: var(--ink-soft); }
.have-tools { display: flex; align-items: center; gap: .4rem 1.2rem; }
.have-tools .check, .have-tools .linkish { min-height: 44px; display: inline-flex; align-items: center; gap: .45rem; }
.muted-th { font-weight: 400; color: var(--ink-soft); }
label.have { display: flex; align-items: center; gap: .6rem; min-height: 40px; cursor: pointer; }
label.have input { width: 1.2rem; height: 1.2rem; flex: none; accent-color: var(--accent); cursor: pointer; }
.have-tag { margin-left: auto; padding: .05rem .5rem; border-radius: 99px; background: var(--accent-tint); color: var(--accent); font-size: .75rem; font-weight: 600; white-space: nowrap; }
.aisle tr.has-it td { color: var(--ink-muted); background: #FAF8F4; }
.aisle tr.has-it .nm, .aisle tr.has-it td.buy, .aisle tr.has-it td.need { text-decoration: line-through; text-decoration-color: rgba(70, 64, 58, .5); }
#grocery.hide-have tr.has-it { display: none; }
.print-only.box { display: none; }
@media print {
  .aisle tr.has-it { display: none; }
  label.have input { display: none; }
  .print-only.box { display: inline-block; }
}
#grocery.hide-have .aisle:not(:has(tbody tr:not(.has-it))) { display: none; }
@media print { .aisle:not(:has(tbody tr:not(.has-it))) { display: none; } }
.aisle td { vertical-align: middle; }
.menu-view .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.menu-view .cater-card { box-shadow: none; }
.rot-item.is-muted .rot-name { color: var(--ink-soft); }

/* Images */
.img-drop { position: relative; display: grid; justify-items: center; gap: .3rem; padding: 2rem 1.25rem; margin-bottom: 1rem; text-align: center; cursor: pointer;
  border: 2px dashed #CDBBA2; border-radius: var(--radius); background: var(--white); transition: border-color .2s, background-color .2s; }
.img-drop:hover, .img-drop.over { border-color: var(--saddle); background: #FBF6EE; }
.img-drop:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.img-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.img-drop-title { font: 600 1.35rem/1.2 var(--serif); }
.img-drop-title::before { content: "+ "; color: var(--saddle); }
.img-drop-sub { font-size: .9rem; color: var(--ink-soft); max-width: 52ch; }
.img-status:empty { display: none; }
.img-status { margin-bottom: 1rem; }
.img-status code { word-break: break-all; }
.img-h { margin-top: 1.6rem; }
.img-grid { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .9rem; }
.img-card { display: flex; flex-direction: column; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.img-card.is-new { border-color: var(--saddle); box-shadow: 0 0 0 2px var(--saddle); }
.img-thumb { display: block; aspect-ratio: 4 / 3; background: #EFE7DB; }
.img-thumb.on-dark { background: #2A231D; }
.img-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-thumb.on-dark img { object-fit: contain; padding: 12%; }
.img-body { display: grid; gap: .3rem; padding: .7rem .8rem .8rem; }
.img-name { margin: 0; font-weight: 600; line-height: 1.3; }
.img-name-input { width: 100%; font: 600 1rem var(--sans); color: var(--ink); padding: .25rem .4rem; margin: -.25rem -.4rem 0; border: 1px solid transparent; border-radius: 6px; background: transparent; }
.img-name-input:hover { border-color: var(--line); }
.img-name-input:focus { border-color: var(--accent); background: var(--white); outline: none; }
.img-meta { margin: 0; font-size: .8rem; color: var(--ink-soft); }
.img-actions { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .3rem; }
.img-actions .btn { min-height: 40px; }
.img-actions .btn.copied { background: var(--saddle); border-color: var(--saddle); }
.img-actions .confirm { font-size: .85rem; }
.img-empty { grid-column: 1 / -1; color: var(--ink-soft); padding: 1rem 0; }
.dish.has-photo { position: relative; }
.dish-thumb { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; margin-bottom: .5rem; }
.dish-photo { float: right; width: 140px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; margin: 0 0 .6rem 1rem; }
.cater-thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; vertical-align: middle; margin-right: .5rem; }
@media (max-width: 560px) { .img-grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; } .img-actions { flex-direction: column; align-items: stretch; } .img-actions .btn { width: 100%; } }
.dish-block::after { content: ""; display: block; clear: both; }

/* Delivery day */
.orders-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; }
.orders-tools { display: flex; align-items: center; gap: .8rem; }
.deliv-count { font-weight: 600; color: var(--ink-soft); font-size: .92rem; }
.copy-note { min-height: 1.4em; margin: .2rem 0 .4rem; color: var(--accent); font-weight: 600; font-size: .9rem; }
.copy-btn { margin-top: .45rem; min-height: 36px; padding: .3rem .7rem; font: 600 .82rem var(--sans); color: var(--saddle); background: #FBF6EE; border: 1px solid #D9CBB6; border-radius: 99px; cursor: pointer; }
.copy-btn:hover { border-color: var(--saddle); }
.deliver-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-top: .5rem; text-decoration: none; }
.deliv { display: grid; gap: .2rem; justify-items: start; margin-top: .45rem; }
.deliv small { font-size: .78rem; line-height: 1.3; }
.pill.delivered { background: #DDEBDD; color: #2F5A34; }
@media (max-width: 760px) { .deliver-btn { width: 100%; } .orders-tools { width: 100%; justify-content: space-between; } }

/* Gift cards */
.issue-card { margin: 1rem 0 1.2rem; }
.issue-card summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.issue-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; margin-top: .6rem; }
.issue-form .wide { grid-column: 1 / -1; }
.gift-tools { display: flex; gap: .6rem; margin: 1rem 0 .6rem; }
.gift-tools input { flex: 1; max-width: 26rem; }
.mono { font-family: "IBM Plex Mono", monospace; letter-spacing: .03em; }
.gift-acts { white-space: nowrap; }
.gift-acts .linkish { margin-right: .6rem; }
.pill.gift-active { background: #DDEBDD; color: #2F5A34; }
.pill.gift-scheduled { background: #F4E7D3; color: var(--saddle); }
.pill.gift-used-up, .pill.gift-expired, .pill.gift-void { background: #ECE7E1; color: var(--ink-soft); }
.gift-detail td { background: #FBF8F3; }
.ledger { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; max-width: 640px; }
.ledger li { display: grid; grid-template-columns: 9rem 1fr auto; gap: .8rem; font-size: .9rem; }
.ledger .neg { color: var(--saddle); }
.g-inline { display: flex; flex-wrap: wrap; align-items: end; gap: .6rem; }
.g-inline label { display: grid; gap: .25rem; font-size: .85rem; font-weight: 600; }
@media (max-width: 760px) { .issue-form { grid-template-columns: 1fr; } .gift-acts { white-space: normal; } }
.gift-tools select { width: auto; flex: 0 0 auto; }
.gift-tools input { min-width: 12rem; }
