/* Orderly Black & Yellow — shared presentation layer. No application logic. */
:root {
  --bg:var(--brand-bg-dark,#0b0b0b); --surface:var(--brand-surface-dark,#161616);
  --surface-2:#1c1c1c; --ink:var(--brand-ink-dark,#f5f5f5);
  --muted:var(--brand-muted-dark,#a3a3a3); --accent:var(--brand-accent-dark,#ffb800);
  --accent-ink:#0b0b0b; --line:#ffffff12; --soft:#ffffff05; --field:#101010;
  --amber-glow:#ffb80012; --card:linear-gradient(155deg,#1c1c1c 0%,#161616 55%,#121212 100%);
  --card-shadow:0 12px 24px -10px #000,0 3px 7px #0009,inset 0 1px 0 #ffffff07;
  --button:#202020; --button-shadow:0 4px 8px #0008,inset 0 1px #ffffff09;
  --amber:var(--accent); --danger:#ff8585; --success:#42d39a; --rail:#0b0b0b; --overlay:#000c;
}
/* Upgrade the former defaults without discarding custom saved palettes. */
:root:not([data-theme=light])[style*="--brand-bg-dark: #111619"] {--bg:#0b0b0b}
:root:not([data-theme=light])[style*="--brand-surface-dark: #1b2226"] {--surface:#161616}
:root:not([data-theme=light])[style*="--brand-ink-dark: #fff4e6"] {--ink:#f5f5f5}
:root:not([data-theme=light])[style*="--brand-muted-dark: #c0bbb3"] {--muted:#a3a3a3}
:root:not([data-theme=light]):is([style*="--brand-accent-dark: #ffca7a"],[style*="--brand-accent-dark: #ffc576"]) {--accent:#ffb800}
:root[data-theme=light] {
  --bg:var(--brand-bg-light,#f5f5f5); --surface:var(--brand-surface-light,#fff);
  --surface-2:#e9e9e9; --ink:var(--brand-ink-light,#151515); --muted:var(--brand-muted-light,#606060);
  --accent:var(--brand-accent-light,#956600); --accent-ink:#0b0b0b; --line:#00000018; --soft:#00000004;
  --field:#fff; --card:linear-gradient(155deg,#fff,#f4f4f4); --rail:#fff;
  --card-shadow:0 12px 24px -14px #0004,0 2px 6px #0000000a,inset 0 1px #fff;
  --button:#f0f0f0; --button-shadow:0 3px 8px #0000000c,inset 0 1px #fff;
  --amber:#ffb800; --overlay:#0009; --success:#087b4f; --danger:#b32727;
}
body {background:var(--bg);color:var(--ink)}
h1,h2,h3,h4,h5,h6 {font-weight:700;letter-spacing:-.035em}
.app-shell,.store-page {background:var(--bg)}
.ambient-light,.auth-glow {display:none}
.glass {background:var(--card);border:1px solid var(--line);border-radius:17px;box-shadow:var(--card-shadow)}
.button,.icon-button,.category-pills button,.add-button {
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.button {border-radius:11px;font-weight:600;background:var(--button);box-shadow:var(--button-shadow)}
.button.primary,.button.primary :is(b,span),:root[data-theme=light] .button.primary,:root[data-theme=light] .button.primary :is(b,span) {color:#0b0b0b}
.button.primary,.floating-cart {background:var(--amber);border-color:transparent;box-shadow:0 6px 14px -5px #000a,inset 0 -2px #00000018,inset 0 1px #ffffff25}
.button.primary:hover {box-shadow:0 9px 20px -6px #000c,inset 0 1px #ffffff25}
.button.full {border-radius:12px;min-height:49px}
.icon-button {border-radius:12px;background:var(--button);box-shadow:var(--button-shadow)}
.button.text-button,.text-button {box-shadow:none;background:transparent}
.pill,.status {font-weight:600;border-radius:7px;padding:5px 9px}
.pill.success,.status-completed {color:var(--success);background:#10b98115;border-color:#10b9811c}
.status-pending,.status-ready {background:#ffb80013;color:var(--accent);border-color:#ffb80024}
.status-accepted,.status-preparing,.status-onway {color:var(--ink);background:var(--surface-2)}
.status-cancelled,.status-rejected {background:#ef444412;border-color:#ef444422}
.notice {border-radius:12px;background:var(--surface);font-size:12px}
.notice.error {border-color:#ef444430}
input,select,textarea {border-radius:10px;background:var(--field);border-color:var(--line);box-shadow:inset 0 2px 5px #0002}
input[type=checkbox],input[type=radio] {accent-color:var(--accent)}
input[type=color] {min-height:42px;padding:5px}
input:focus,select:focus,textarea:focus {outline:2px solid var(--accent);outline-offset:2px}
input[type=date],input[type=datetime-local] {max-width:100%;min-width:0;min-height:44px}
input[type=date]::-webkit-date-and-time-value {text-align:left}
.search-field {border-radius:12px;background:var(--field);box-shadow:inset 0 2px 4px #0002}
.search-field input {box-shadow:none;min-height:45px}
.brand-symbol {background:var(--surface-2);border-color:var(--line);box-shadow:0 4px 10px #0006; width:46px;height:46px;border-radius:13px}
.brand-symbol>span {color:var(--accent)}
.brand strong {font-weight:700;letter-spacing:-.6px;font-size:22px}
.sidebar {background:var(--rail);border-color:var(--line);width:238px;padding:29px 17px 18px}
.sidebar .brand strong {font-size:18px}
.sidebar>.brand {margin-bottom:35px;padding-left:4px}
.sidebar .brand-symbol {width:36px;height:36px;border-radius:10px}
.sidebar .brand small {font-size:9px}
.workspace {margin-left:238px}
.workspace-top {background:var(--bg);border-bottom-color:var(--line);height:76px}
.workspace-content {padding-top:34px}
.nav-item {border-radius:10px;min-height:44px;font-size:12px;position:relative}
.nav-item.active {color:var(--ink);background:var(--surface);border-color:var(--line);box-shadow:0 4px 9px #0003}
.nav-item.active:before {content:"";position:absolute;left:-1px;top:10px;bottom:10px;width:3px;border-radius:3px;background:var(--accent)}
.nav-item.active>svg {color:var(--accent)}
.nav-count {background:#ffb80016;color:var(--accent)}
.user-avatar {color:var(--ink);background:var(--surface-2);border:1px solid var(--line)}
.workspace-footer {border-color:var(--line);font-size:10px}
.page-heading {margin-bottom:26px}
.page-heading h1 {font-size:clamp(27px,3vw,38px)}
.overview-hero {background:var(--card);padding:27px 30px;border-radius:17px}
.overview-hero h2 {font-size:28px;max-width:640px}
.hero-orb {height:100px;width:100px;border-radius:24px;background:var(--surface-2);box-shadow:0 15px 25px -9px #000b,inset 0 1px #ffffff0a;transform:rotate(-6deg)}
.metric-grid {gap:17px;grid-template-columns:repeat(4,minmax(0,1fr))}
.metric {padding:22px;min-height:153px;display:flex;flex-direction:column;align-items:flex-start}
.metric-icon {position:static;display:flex;margin-bottom:14px;color:var(--accent)}
.metric-icon svg {width:22px;height:22px}
.metric>small {margin:0 0 8px;font-size:12px}
.metric>strong {font-size:30px;line-height:1.2;font-weight:700;letter-spacing:-.8px}
.order-row {border-radius:12px;padding:17px 20px}
.order-row:hover {border-color:#ffffff28;box-shadow:0 10px 20px -8px #000}
.business-tile {padding:24px}
.business-tile-meta {gap:12px;flex-wrap:wrap}
.business-tile-meta small {overflow-wrap:anywhere}
.product-admin,.promo-admin,.feedback-card,.integration-card {border-radius:17px}
.admin-image {background:var(--surface-2);height:195px}
.product-admin-content h3 {font-size:18px}
.table-wrap {background:var(--card);border-radius:16px}
.table-wrap th {background:var(--soft);padding-top:16px;padding-bottom:16px}
.table-wrap td {padding-top:17px;padding-bottom:17px}
.table-wrap tbody tr:hover {background:var(--soft)}
.settings-form section {border-radius:17px}
.toggle-track {background:var(--surface-2);box-shadow:inset 0 2px 4px #0004}
.toggle-row input:checked+.toggle-track {background:var(--amber)}
.toggle-row input:checked+.toggle-track:after {background:#0b0b0b}
.store-container {max-width:1240px;padding:30px 32px}
.store-header {margin-bottom:24px}
.store-top-grid {grid-template-columns:1fr 1.6fr;gap:22px;margin-bottom:34px}
.loyalty-banner {background:var(--card);min-height:235px;padding:27px;border-radius:17px}
.loyalty-banner h1 {font-size:30px;letter-spacing:-1px;max-width:270px}
.loyalty-banner p {max-width:235px;font-size:12px}
.loyalty-banner .eyebrow {font-size:9px}
.gift-orb {background:var(--surface-2);box-shadow:0 14px 22px -8px #000c,inset 0 1px #ffffff09;border-radius:16px;right:20px;padding:12px;top:45%;transform:rotate(-8deg)}
.gift-orb svg {width:28px;height:28px}
.store-promo {border-radius:17px;min-height:280px;border-color:var(--line);box-shadow:var(--card-shadow)}
.promo-overlay {background:linear-gradient(0deg,#000d,transparent 80%),linear-gradient(90deg,#0008,transparent 75%)}
.store-promo-text h2 {font-weight:800;font-size:34px;color:#f5f5f5}
.store-promo-text p {color:#e5e5e5}
.promo-type {background:#0b0b0bb3;border-color:#ffffff26;color:#f5f5f5;border-radius:7px;backdrop-filter:none}
.promo-dots button.active {background:var(--accent)}
.menu-heading h2 {font-size:29px;letter-spacing:-.8px}
.menu-tools {margin-bottom:23px}
.category-pills button {border-radius:11px;background:var(--surface);box-shadow:var(--button-shadow);padding:10px 18px;font-weight:600}
.category-pills button.selected {background:var(--amber);color:#0b0b0b;border-color:transparent}
.menu-product-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.food-card {display:flex;flex-direction:column;align-items:stretch;padding:9px;gap:0;border-radius:16px;min-width:0}
.food-photo {transform:none;position:relative;aspect-ratio:1.25;width:100%;height:auto;border:0;border-radius:11px;box-shadow:0 6px 12px -7px #000c;overflow:hidden;background:var(--surface-2)}
.food-photo>svg {margin:35% auto}
.food-photo img {height:100%;width:100%;object-fit:cover;aspect-ratio:1.25}
.food-info {padding:15px 7px 8px;display:flex;flex-direction:column}
.food-info .product-title {font-size:16px;font-weight:700;margin-bottom:7px;overflow-wrap:anywhere}
.food-info p {font-size:12px;line-height:1.5;margin-bottom:16px}
.food-info .rating {font-size:10px}
.food-bottom {margin-top:auto;gap:6px}
.food-bottom>strong {font-size:18px}
.add-button {background:var(--amber);color:#0b0b0b;border-color:transparent;border-radius:9px;padding:9px;font-size:11px;font-weight:700;box-shadow:0 4px 7px #0006,inset 0 -2px #00000018}
.cart-aside {border-radius:17px;padding:22px;top:22px}
.store-contact {border-radius:17px;padding:25px}
.floating-cart {border-radius:13px;color:#0b0b0b}
.modal-backdrop {background:var(--overlay);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
.modal {background:var(--surface);border:1px solid var(--line);border-radius:20px;box-shadow:0 28px 90px #000c,0 8px 25px #0008;isolation:isolate}
.modal-head {background:var(--surface);position:sticky;top:0;z-index:3;padding:18px 23px;min-height:68px}
.modal-head h2 {font-size:16px;font-weight:700}
.modal-head .icon-button {width:34px;height:34px;border-radius:10px}
.detail-hero {border-radius:14px;box-shadow:0 13px 20px -10px #000c;height:290px}
.note-box,.cart-item,.pickup-location,.affiliation-option,.review-card,.delivery-option {border-radius:14px}
.delivery-option.chosen {background:var(--card);border-color:var(--accent);box-shadow:var(--card-shadow),inset 3px 0 var(--accent)}
.choice-icon,.status-orb,.empty-icon {background:var(--surface-2);border-radius:13px;box-shadow:var(--button-shadow)}
.stepper {border-radius:10px;background:var(--field);box-shadow:inset 0 2px 4px #0004;padding:4px;gap:4px}
.stepper button {border-radius:7px;background:var(--surface-2)}
.stepper button:active {transform:translateY(1px)}
.step-track span.active {background:var(--accent)}
.upload-target {background:var(--field);border-radius:12px;border-color:var(--line)}
.upload-target:hover {border-color:var(--accent)}
fieldset {border-radius:14px;min-width:0}
.affiliation-option .field {min-width:0}
.status-hero,.member-card {background:var(--card);border-radius:18px}
.tracking-timeline .done>span,.seal.earned {background:var(--amber);color:#0b0b0b;border-color:transparent}
.tracking-timeline .current>span {box-shadow:0 3px 8px #0008}
.member-card:after {border-color:var(--line);opacity:.5}
.chat-message {border-radius:12px;background:var(--field)}
.chat-message.user {background:#ffb80013}
.auth-card {border-radius:18px}
@media (min-width:1450px) {.food-photo {width:100%}.food-info .product-title {font-size:18px}}
@media (max-width:1250px) {.menu-product-grid {grid-template-columns:repeat(2,minmax(0,1fr))}.food-photo {width:100%}.metric-grid {grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:950px) {.sidebar {width:215px}.workspace {margin-left:215px}.store-top-grid {grid-template-columns:1fr 1.2fr}.loyalty-banner {padding:24px}.gift-orb {display:none}}
@media (max-width:760px) {
 .workspace {margin-left:0}.sidebar {width:250px}.workspace-top {height:66px}
 .workspace-content {padding:26px 20px 40px}.page-heading h1 {font-size:29px}
 .overview-hero {padding:24px}.overview-hero h2 {font-size:25px}
 .metric {min-height:140px;padding:20px}.metric>strong {font-size:28px}
 .store-container {max-width:660px;padding:23px 18px}.store-header {margin-bottom:22px}
 .store-header .brand strong {font-size:22px}.store-header .brand-symbol {width:44px;height:44px}
 .store-top-grid {grid-template-columns:1fr;gap:20px;margin-bottom:28px}
 .loyalty-banner {min-height:0;padding:21px 22px;display:grid;grid-template-columns:1fr auto;column-gap:15px;row-gap:6px;align-items:center}
 .loyalty-banner .eyebrow {grid-column:1/-1;font-size:8px;margin:0 0 3px}
 .loyalty-banner h1 {font-size:24px;letter-spacing:-.7px;max-width:none;margin:0;grid-column:1/-1}
 .loyalty-banner p {max-width:none;font-size:11px;margin:2px 0 0;grid-column:1}
 .loyalty-banner .button {grid-column:2;grid-row:3;padding:11px 12px;min-height:38px;font-size:11px}
 .gift-orb {display:none}.store-promo {min-height:255px}.store-promo-text {left:23px;bottom:36px}
 .store-promo-text h2 {font-size:32px;max-width:310px}
 .menu-heading h2 {font-size:27px}.menu-heading {gap:10px;margin-bottom:20px}
 .menu-heading>span {font-size:10px}.menu-tools {gap:15px}
 .category-pills {flex-wrap:nowrap;overflow-x:auto;padding:2px 1px 9px;max-width:100%}
 .category-pills button {flex-shrink:0;border-radius:11px;padding:10px 17px}
 .menu-product-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
 .food-card {padding:7px;gap:0;border-radius:15px}.food-photo {width:100%;height:auto;border-radius:10px;aspect-ratio:1.13}
 .food-photo img {aspect-ratio:1.13}.food-info {padding:12px 5px 7px}
 .food-info .product-title {font-size:15px;line-height:1.35;letter-spacing:-.25px}
 .food-info p {font-size:11px;margin-bottom:14px}.food-bottom>strong {font-size:17px}
 .add-button {font-size:10px;padding:9px 7px;gap:2px;min-height:36px}.add-button svg {width:13px;height:13px}
 .floating-cart {bottom:calc(12px + env(safe-area-inset-bottom,0px));padding:17px 19px;min-height:56px;box-shadow:0 10px 24px #000b,inset 0 -2px #00000018}
 .store-contact {margin-top:29px}.modal-backdrop {padding:12px}.modal {border-radius:18px;max-height:calc(100dvh - 24px)}
 .modal-head {padding:16px 20px}.modal .form-grid {grid-template-columns:1fr}
 .modal-head .icon-button {min-width:36px;min-height:36px}
}
@media (max-width:420px) {
 .workspace-content {padding:25px 16px 36px}.metric-grid {gap:12px}.metric {padding:17px;min-height:135px}
 .metric>small {font-size:11px}.metric>strong {font-size:26px}.metric-icon {margin-bottom:12px}
 .store-container {padding:22px 15px}.store-header .brand strong {font-size:20px}
 .store-header .brand small {font-size:10px;max-width:190px}.brand {gap:10px}
 .store-header-actions .icon-button {width:35px;height:35px}
 .store-top-grid {gap:18px}.loyalty-banner {padding:18px;column-gap:10px}.loyalty-banner h1 {font-size:23px}
 .loyalty-banner .button {font-size:10px;padding:10px}.loyalty-banner p {font-size:11px}
 .store-promo {min-height:230px}.store-promo-text h2 {font-size:30px}.store-promo-text {left:20px}
 .menu-heading h2 {font-size:25px}.menu-heading>span {font-size:9px}
 .menu-product-grid {gap:11px}.food-info .product-title {font-size:14px}.food-info p {font-size:10px}
 .food-info {padding:11px 3px 5px}.food-bottom {flex-wrap:wrap;row-gap:8px}.food-bottom>strong {font-size:16px}
 .add-button {margin-left:auto;font-size:10px;min-height:34px;padding:8px 6px}
 .detail-title {align-items:flex-start}.detail-title h2 {font-size:23px}.detail-title b {font-size:20px}
 .detail-hero {height:230px}.checkout-body h2 {font-size:27px}.modal {border-radius:17px}
 .modal-backdrop {padding:8px}.modal {max-height:calc(100dvh - 16px)}
 .order-row {padding:16px}.store-contact {padding:22px}.auth-page {padding:40px 22px}
}
@media (max-width:340px) {.menu-product-grid {grid-template-columns:1fr}.food-info .product-title {font-size:17px}.food-info p {font-size:12px}.loyalty-banner {display:flex;align-items:flex-start}.store-header .brand small {max-width:145px}}
@media (hover:hover) {.food-card:hover,.business-tile:hover,.product-admin:hover {transform:translateY(-3px);box-shadow:0 18px 30px -12px #000;transition:transform .18s,box-shadow .18s}.food-photo:hover img {transform:scale(1.035)}}
@media (prefers-reduced-motion:reduce) {*,*:before,*:after {transition:none!important}.food-card:hover,.business-tile:hover,.product-admin:hover {transform:none}}
/* Constrain portrait uploads to the shared landscape preview frame. */
.admin-image {overflow:hidden;min-height:0}
.admin-image>img {position:absolute;inset:0;height:100%;width:100%;object-fit:cover}
