:root {
  --portal-bg: #f2f4f3;
  --portal-panel: #ffffff;
  --portal-ink: #171b19;
  --portal-muted: #69736d;
  --portal-line: #e0e5e2;
  --portal-accent: #ee9e13;
  --portal-dark: #15191c;
  --portal-green: #16875c;
}

.portal-body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  color: var(--portal-ink);
  background: var(--portal-bg);
  font-family: Inter, Arial, sans-serif;
}
.portal-body h1,
.portal-body h2,
.portal-body .admin-brand strong { font-family: "Russo One", Inter, Arial, sans-serif; font-weight: 400; }
.admin-body h1,
.admin-body h2 { font-family: Inter, Arial, sans-serif; font-weight: 800; }

.portal-body * { box-sizing: border-box; }
.portal-body button,
.portal-body input,
.portal-body select,
.portal-body textarea { font: inherit; }
.portal-body button,
.portal-body a { -webkit-tap-highlight-color: transparent; }
.portal-body button { color: inherit; }
.portal-body img { display: block; max-width: 100%; }
.portal-body h1,
.portal-body h2,
.portal-body h3,
.portal-body h4,
.portal-body p { margin: 0; }

.accent-button,
.dark-button,
.ghost-button {
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  padding: 0 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.accent-button {
  color: #171006 !important;
  background: linear-gradient(135deg, #ffd55a, #e89b0b);
  box-shadow: 0 9px 22px rgba(217, 139, 0, .2);
}

.dark-button { color: #fff !important; background: var(--portal-dark); }
.ghost-button { border: 1px solid var(--portal-line); background: #fff; }
.accent-button:hover,
.dark-button:hover,
.ghost-button:hover { transform: translateY(-1px); }
.positive { color: var(--portal-green) !important; }
.portal-toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 30px;
  max-width: calc(100vw - 32px);
  padding: 13px 20px;
  border-radius: 12px;
  color: #fff;
  background: #171918;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .24);
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: .25s ease;
}
.portal-toast.is-visible { display: flex; align-items: center; gap: 14px; opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.portal-toast > span { font-size: 10px; font-weight: 700; }
.portal-toast > button { border: 0; border-radius: 8px; padding: 7px 9px; color: #201506; background: #f6b536; font-size: 9px; font-weight: 800; cursor: pointer; }

/* Private admin access */
.admin-login-body {
  display: grid;
  place-items: center;
  padding: 22px;
  background: radial-gradient(circle at 50% 18%, rgba(232,155,11,.1), transparent 32%), #0b0b09;
}
.admin-login-shell { width: min(360px, 100%); }
.admin-login-card {
  display: grid;
  gap: 24px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 28px;
  padding: 30px;
  color: #fff;
  background: rgba(22,22,19,.94);
  box-shadow: 0 28px 90px rgba(0,0,0,.38);
}
.admin-login-brand { display: flex; justify-content: center; color: #fff; text-decoration: none; }
.admin-login-brand img { width: 72px; height: 72px; border: 1px solid rgba(232,155,11,.3); border-radius: 22px; object-fit: contain; }
.admin-login-form { display: grid; gap: 12px; }
.admin-login-form label { display: block; }
.admin-login-form input {
  width: 100%;
  min-height: 58px;
  border: 1px solid #30312d;
  border-radius: 16px;
  outline: none;
  padding: 0 18px;
  color: #fff;
  background: #1d1e1b;
  font-size: 15px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.admin-login-form input::placeholder { color: #777a73; }
.admin-login-form input:focus { border-color: #e9a11a; box-shadow: 0 0 0 4px rgba(233,161,26,.12); }
.admin-login-form > p { margin: 0; color: #ff8b79; font-size: 11px; text-align: center; }
.admin-login-form > p:empty { display: none; }
.admin-login-form .accent-button { min-height: 58px; border-radius: 16px; font-size: 24px; }
.admin-login-form .accent-button:disabled { cursor: wait; opacity: .65; }

/* Admin */
.admin-shell {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 20px 15px 16px;
  border-right: 1px solid #252b30;
  color: #d7dde1;
  background: linear-gradient(180deg, #171b1e 0%, #0c0f11 100%);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 2px 9px 20px;
  color: #fff;
  text-decoration: none;
}
.admin-brand img { width: 46px; height: 46px; border: 1px solid rgba(242,162,11,.3); border-radius: 13px; object-fit: contain; }
.admin-brand span { display: grid; gap: 2px; }
.admin-brand strong { font-size: 14px; letter-spacing: -.02em; }
.admin-brand small { color: #7f8a91; font-size: 9px; text-transform: uppercase; letter-spacing: .09em; }

.admin-sidebar > nav {
  display: grid;
  gap: 4px;
}
.admin-sidebar > nav button {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 11px;
  padding: 0 12px;
  color: #9ca7ae;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: .2s ease;
}
.admin-sidebar > nav button i {
  font-size: 18px;
  font-style: normal;
  text-align: center;
}
.admin-sidebar > nav button span { font-size: 13px; font-weight: 600; }
.admin-sidebar > nav button b {
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: var(--portal-accent);
  font-size: 10px;
}
.admin-sidebar > nav button:hover { color: #fff; background: #1e2529; }
.admin-sidebar > nav button.is-active {
  color: #fff;
  background: linear-gradient(90deg, #283036, #1b2024);
  box-shadow: inset 3px 0 var(--portal-accent);
}
.admin-sidebar > nav button.is-active i { color: #f4ad27; }

.admin-sidebar__bottom {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding: 15px 3px 0;
  border-top: 1px solid #272e33;
}
.admin-sidebar__manager {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 9px;
  padding: 4px;
  color: #fff;
  text-align: left;
}
.admin-sidebar__manager > i,
.admin-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: #303940;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}
.admin-sidebar__bottom span { display: grid; gap: 2px; }
.admin-sidebar__bottom strong { font-size: 12px; }
.admin-sidebar__bottom small { color: #77838a; font-size: 10px; }
.admin-sidebar__bottom > a { color: #7f8b92; font-size: 11px; text-decoration: none; }
.admin-sidebar__bottom > button { width: max-content; border: 0; padding: 0; color: #7f8b92; background: transparent; font-size: 11px; text-align: left; cursor: pointer; }
.admin-sidebar__bottom > button:hover,
.admin-sidebar__bottom > a:hover { color: #fff; }

.admin-workspace { min-width: 0; }
.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(260px, 420px) auto auto auto;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 0 34px;
  border-bottom: 1px solid var(--portal-line);
  background: rgba(255, 255, 255, .93);
  backdrop-filter: blur(18px);
}
.admin-topbar > div:first-of-type { display: grid; gap: 4px; }
.admin-topbar > div:first-of-type p { font-size: 12px; font-weight: 700; }
.admin-topbar > div:first-of-type span { color: var(--portal-muted); font-size: 10px; }
.admin-topbar > div:first-of-type i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 4px;
  border-radius: 50%;
  background: #24af73;
}
.admin-topbar > time { color: var(--portal-muted); font-size: 12px; font-weight: 700; }
.admin-search {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  padding: 0 13px;
  border: 1px solid var(--portal-line);
  border-radius: 11px;
  background: #f7f8f6;
}
.admin-search span { color: #909591; font-size: 20px; }
.admin-search input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 12px; }
.topbar-alert {
  position: relative;
  width: 36px;
  height: 36px;
  border: 1px solid var(--portal-line);
  border-radius: 10px;
  color: var(--portal-accent) !important;
  background: #fff;
  font-size: 11px;
  font-weight: 800;
}
.admin-mobile-menu { display: none; }

.admin-workspace { background: var(--portal-bg); }
.admin-main { width: 100%; max-width: 1500px; margin: 0 auto; padding: 34px 42px 64px; }
.admin-page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.admin-page-heading p {
  margin-bottom: 5px;
  color: #8b958f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.admin-page-heading h1 { font-size: clamp(30px, 3vw, 40px); letter-spacing: -.045em; line-height: 1.05; }
.admin-heading-actions { display: flex; gap: 9px; }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
.metric-card,
.admin-panel {
  border: 1px solid var(--portal-line);
  border-radius: 19px;
  background: var(--portal-panel);
  box-shadow: 0 10px 34px rgba(27, 36, 31, .045);
}
.metric-card { min-height: 150px; padding: 19px; }
.metric-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--portal-muted);
  font-size: 11px;
}
.metric-card > strong {
  display: block;
  margin-top: 19px;
  font-size: clamp(22px, 2vw, 30px);
  letter-spacing: -.05em;
}
.metric-card footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
}
.metric-card footer b { color: #e7674e; font-size: 10px; }
.metric-card footer small { color: #a0a49f; font-size: 9px; }
.metric-icon {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #f0f2ef;
}
.metric-icon::after {
  position: absolute;
  inset: 7px;
  border: 2px solid currentColor;
  border-radius: 3px;
  content: "";
}
.metric-icon--revenue { color: #318b69; background: #e5f5ee; }
.metric-icon--orders { color: #ea654e; background: #fff0eb; }
.metric-icon--check { color: #8e6cc9; background: #f1ebfb; }
.metric-icon--time { color: #cb8c2f; background: #fff3dd; }

.admin-grid { display: grid; gap: 14px; }
.admin-grid--overview { grid-template-columns: minmax(0, 1.75fr) minmax(260px, .75fr); }
.admin-grid--bottom { grid-template-columns: 1.2fr .8fr; margin-top: 14px; }
.admin-grid--analytics { grid-template-columns: 1.65fr .8fr; margin-bottom: 14px; }
.admin-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.revenue-panel,
.kitchen-panel { min-height: 318px; padding: 20px; }
.revenue-panel header span,
.kitchen-panel header span { color: var(--portal-muted); font-size: 11px; }
.revenue-panel header strong,
.kitchen-panel header strong { display: block; margin-top: 7px; font-size: 21px; }
.revenue-panel select {
  border: 1px solid var(--portal-line);
  border-radius: 9px;
  padding: 7px 10px;
  color: var(--portal-muted);
  background: #fff;
  font-size: 10px;
}
.bar-chart {
  display: flex;
  align-items: end;
  gap: clamp(10px, 2.3vw, 25px);
  height: 214px;
  padding-top: 25px;
}
.bar-chart > div {
  display: grid;
  grid-template-rows: 1fr 20px;
  align-items: end;
  width: 100%;
  height: 100%;
  text-align: center;
}
.bar-chart > div > b {
  position: relative;
  min-height: 12px;
  border-radius: 6px 6px 2px 2px;
  background: #d9ddda;
  transition: height .5s ease;
}
.bar-chart > div:last-child > b { background: linear-gradient(#ff6c54, var(--portal-accent)); }
.bar-chart > div > b span {
  position: absolute;
  top: -23px;
  left: 50%;
  color: #5d625e;
  font-size: 8px;
  font-weight: 600;
  opacity: 0;
  transform: translateX(-50%);
  white-space: nowrap;
  transition: .2s ease;
}
.bar-chart > div:hover b span { opacity: 1; }
.bar-chart small { color: #9da19d; font-size: 9px; }

.load-gauge {
  position: relative;
  display: grid;
  width: 174px;
  height: 88px;
  margin: 42px auto 24px;
  place-items: end center;
  overflow: hidden;
}
.load-gauge::before {
  position: absolute;
  width: 154px;
  height: 154px;
  border: 15px solid #eff1ee;
  border-radius: 50%;
  content: "";
}
.load-gauge::after {
  position: absolute;
  width: 154px;
  height: 154px;
  border: 15px solid transparent;
  border-top-color: #ff9f44;
  border-left-color: #ff9f44;
  border-radius: 50%;
  content: "";
  transform: rotate(calc(-135deg + var(--load) * 1.8));
}
.load-gauge b { position: relative; z-index: 1; margin-bottom: 22px; font-size: 25px; }
.load-gauge span { position: absolute; z-index: 1; bottom: -1px; color: var(--portal-muted); font-size: 8px; line-height: 1.3; text-align: center; }
.kitchen-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}
.kitchen-stats span {
  display: grid;
  gap: 3px;
  padding: 10px 5px;
  border-radius: 9px;
  color: var(--portal-muted);
  background: #f5f6f4;
  font-size: 8px;
  text-align: center;
}
.kitchen-stats i { color: var(--portal-ink); font-size: 13px; font-style: normal; font-weight: 800; }

.ops-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 27px 1px 12px;
}
.ops-heading h2 { font-size: 17px; }
.ops-heading div > span { margin-left: 8px; color: var(--portal-muted); font-size: 9px; }
.ops-heading button,
.top-products header button {
  border: 0;
  color: var(--portal-accent);
  background: transparent;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}
.order-pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.pipeline-column {
  min-height: 280px;
  padding: 10px;
  border: 1px solid var(--portal-line);
  border-radius: 15px;
  background: #e9ebe8;
}
.pipeline-column > header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px;
  padding: 3px 4px 10px;
}
.pipeline-column > header > span { font-size: 11px; font-weight: 800; }
.pipeline-column > header > span i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
}
.dot-red { background: #f5523d; }
.dot-orange { background: #f59a34; }
.dot-green { background: #29a875; }
.dot-blue { background: #448cd0; }
.pipeline-column > header > b {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 7px;
  background: #d9ddda;
  font-size: 9px;
}
.pipeline-column > header > small { grid-column: 1 / -1; padding-left: 14px; color: #969b97; font-size: 8px; }
.pipeline-column > div { display: grid; gap: 8px; }
.ops-order-card {
  display: grid;
  gap: 11px;
  width: 100%;
  border: 1px solid #e1e3df;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.ops-order-card:hover { transform: translateY(-2px); box-shadow: 0 9px 25px rgba(24, 28, 25, .09); }
.ops-order-card header,
.ops-order-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ops-order-card header strong { font-size: 11px; }
.ops-order-card time { color: #949994; font-size: 9px; }
.ops-order-card__customer { display: grid; gap: 4px; }
.ops-order-card__customer span { overflow: hidden; font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.ops-order-card__customer small { color: #929793; font-size: 8px; }
.ops-order-card__timer { display: flex; align-items: center; gap: 8px; }
.ops-order-card__timer i {
  width: 100%;
  height: 4px;
  border-radius: 10px;
  background: linear-gradient(90deg, #f68a55 var(--progress), #eceeeb var(--progress));
}
.ops-order-card__timer span { color: #8d928e; font-size: 8px; white-space: nowrap; }
.ops-order-card footer > b { font-size: 11px; }
.empty-column { padding: 30px 10px; color: #9a9e9a; font-size: 10px; text-align: center; }

.status-pill {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 23px;
  border-radius: 7px;
  padding: 0 8px;
  font-size: 8px;
  font-weight: 800;
  white-space: nowrap;
}
.status-pill--red { color: #d94935; background: #fde9e5; }
.status-pill--orange { color: #b66e19; background: #fff0d9; }
.status-pill--green { color: #187d54; background: #e0f5eb; }
.status-pill--blue { color: #2c6fae; background: #e4f0fb; }
.status-pill--muted { color: #727873; background: #eceeeb; }

.quick-actions,
.rating-panel { padding: 19px; }
.quick-actions h3,
.rating-panel h3,
.promo-report h3,
.top-products h3,
.hourly-chart h3 { font-size: 13px; }
.quick-actions > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.quick-actions > div button {
  display: grid;
  gap: 5px;
  border: 1px solid var(--portal-line);
  border-radius: 11px;
  padding: 13px;
  background: #f8f9f7;
  text-align: left;
  cursor: pointer;
}
.quick-actions > div i { color: var(--portal-accent); font-size: 18px; font-style: normal; }
.quick-actions > div span { font-size: 10px; font-weight: 700; }
.quick-actions > div b { color: #959a96; font-size: 8px; font-weight: 500; }
.rating-panel header > span { color: #979c97; font-size: 9px; }
.rating-value { display: flex; align-items: end; gap: 12px; margin: 19px 0 5px; }
.rating-value strong { font-size: 36px; letter-spacing: -.07em; }
.rating-value span { color: #f2a32c; font-size: 13px; letter-spacing: 2px; }
.rating-panel p { color: var(--portal-muted); font-size: 9px; }
.rating-panel > div:last-child { height: 5px; margin-top: 17px; overflow: hidden; border-radius: 10px; background: #eceeeb; }
.rating-panel > div:last-child span { display: block; height: 100%; border-radius: inherit; background: #2bad76; }

/* Owner decision dashboard */
.owner-overview { display: grid; gap: 18px; }
.admin-main--owner-overview .admin-page-heading { display: none; }
.admin-main--manager-orders .admin-page-heading,
.admin-main--manager-logistics .admin-page-heading { display: none; }
.owner-overview__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .8fr); gap: 18px; }
.owner-overview__grid--single { grid-template-columns: minmax(0, 1fr); }
.owner-sales { padding: 28px; }
.owner-sales { --owner-sales-accent: #ee9e13; }
.owner-sales--metric-orders { --owner-sales-accent: #4a8fd2; }
.owner-sales--metric-averageCheck { --owner-sales-accent: #27a779; }
.owner-sales > header { align-items: center; flex-wrap: wrap; }
.owner-sales > header > div:first-child { margin-right: auto; }
.owner-sales > header span { color: #77827c; font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.owner-sales > header h2 { margin-top: 7px; font-size: 28px; letter-spacing: -.035em; }
.owner-sales__period { display: flex; gap: 3px; border-radius: 10px; padding: 3px; background: #f0f3f1; }
.owner-sales__period button,
.owner-sales__period select { min-height: 38px; border: 0; border-radius: 8px; padding: 0 13px; color: #68736d; background: transparent; font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.owner-sales__period select { min-width: 158px; padding-right: 25px; }
.owner-sales__period button.is-active,
.owner-sales__period select.is-active { color: #171b19; background-color: #fff; box-shadow: 0 3px 10px rgba(26,34,29,.09); }
.owner-sales__layers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden; margin-top: 19px; border: 1px solid var(--portal-line); border-radius: 15px; }
.owner-sales__layers button { position: relative; min-width: 0; min-height: 96px; border: 0; border-left: 1px solid var(--portal-line); padding: 17px 18px; background: #fafbfa; text-align: left; cursor: pointer; }
.owner-sales__layers button:first-child { border-left: 0; }
.owner-sales__layers button:nth-child(1) { --layer-accent: #ee9e13; }
.owner-sales__layers button:nth-child(2) { --layer-accent: #4a8fd2; }
.owner-sales__layers button:nth-child(3) { --layer-accent: #27a779; }
.owner-sales__layers button.is-active { background: #fff; box-shadow: inset 0 3px var(--layer-accent); }
.owner-sales__layers span { display: block; color: #737e78; font-size: 11px; font-weight: 800; }
.owner-sales__layers strong { display: block; margin-top: 8px; color: #1b201d; font-size: 25px; letter-spacing: -.035em; }
.owner-sales__layers small { display: block; margin-top: 5px; color: #87908b; font-size: 10px; }
.owner-sales__chart { height: 270px; padding-top: 42px; }
.owner-sales__chart > button { display: grid; width: 100%; min-width: 0; height: 100%; grid-template-rows: 1fr 20px; align-items: end; border: 0; padding: 0; background: transparent; text-align: center; cursor: pointer; }
.owner-sales__chart > button > b { position: relative; min-height: 5px; border-radius: 6px 6px 2px 2px; background: #dfe4e1; transition: height .35s ease, background .2s ease, box-shadow .2s ease; }
.owner-sales__chart > button:last-child > b { background: var(--owner-sales-accent); }
.owner-sales__chart > button:hover > b,
.owner-sales__chart > button.is-active > b { background: #aebbb4; box-shadow: 0 0 0 3px rgba(238,158,19,.12); }
.owner-sales__chart > button:last-child:hover > b,
.owner-sales__chart > button:last-child.is-active > b { background: var(--owner-sales-accent); }
.owner-sales__chart > button > b span { position: absolute; top: -25px; left: 50%; color: #3f4943; font-size: 11px; font-weight: 800; opacity: 0; transform: translateX(-50%); white-space: nowrap; transition: opacity .2s ease; }
.owner-sales__chart > button:hover > b span,
.owner-sales__chart > button.is-active > b span { opacity: 1; }
.owner-sales__chart > button > small { min-width: 0; overflow: hidden; color: #727d77; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.owner-sales__chart--30 { gap: 3px; }
.owner-sales__chart--30 > button > b { border-radius: 3px 3px 1px 1px; }
.owner-sales__chart--30 > button > small { font-size: 9px; }

.owner-waterfall { overflow: hidden; padding: 28px; }
.owner-waterfall > header { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.owner-waterfall > header > div:first-child { flex: 1 1 260px; }
.owner-waterfall > header > div:first-child > span { color: #77827c; font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.owner-waterfall > header h2 { margin-top: 7px; font-size: 28px; letter-spacing: -.035em; }
.owner-waterfall > header p { margin-top: 6px; color: #77827c; font-size: 12px; }
.owner-waterfall__date { display: grid; min-width: 220px; gap: 7px; color: #77827c; font-size: 10px; font-weight: 800; }
.owner-waterfall__date span { letter-spacing: .05em; text-transform: uppercase; }
.owner-waterfall__date select { min-height: 42px; border: 1px solid #dce2de; border-radius: 11px; padding: 0 35px 0 12px; color: #202722; background: #f7f9f7; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.owner-waterfall__date select:hover { border-color: #efb64f; background-color: #fffaf1; }
.owner-waterfall__date select:focus-visible { border-color: #ee9e13; outline: 3px solid rgba(238,158,19,.15); }
.owner-waterfall > header > div:last-child { display: grid; justify-items: end; gap: 3px; text-align: right; }
.owner-waterfall > header > div:last-child small { color: #77827c; font-size: 11px; }
.owner-waterfall > header > div:last-child strong { font-size: 30px; letter-spacing: -.045em; }
.owner-waterfall > header > div:last-child em { color: #16875c; font-size: 10px; font-style: normal; font-weight: 800; }
.owner-waterfall__plot { display: grid; height: 266px; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 24px; margin-top: 38px; }
.owner-waterfall__step { display: grid; min-width: 0; grid-template-rows: minmax(0,1fr) 42px; align-items: end; border-radius: 8px; }
.owner-waterfall__bar { position: relative; height: 100%; border-bottom: 1px solid #dfe4e1; }
.owner-waterfall__bar > span { position: absolute; z-index: 2; right: 14%; bottom: calc(var(--waterfall-bottom) * 1%); left: 14%; height: calc(var(--waterfall-height) * 1%); min-height: 3px; border-radius: 6px 6px 2px 2px; background: #ee9e13; box-shadow: 0 7px 18px rgba(238,158,19,.14); }
.owner-waterfall__bar > span > b { position: absolute; top: -24px; left: 50%; color: #2b332e; font-size: 13px; line-height: 1; transform: translateX(-50%); white-space: nowrap; }
.owner-waterfall__step-hit { position: absolute; z-index: 3; right: 14%; bottom: calc(var(--waterfall-bottom) * 1%); left: 14%; height: calc(var(--waterfall-height) * 1%); min-height: 8px; border: 0; border-radius: 6px; padding: 0; background: transparent; cursor: pointer; }
.owner-waterfall__step-hit:focus-visible { outline: 2px solid #fff; outline-offset: -3px; box-shadow: 0 0 0 2px #ee9e13; }
.owner-waterfall__bar > i { position: absolute; z-index: 1; right: calc(-50% - 10px); bottom: calc(var(--waterfall-level) * 1%); left: 50%; border-top: 1px dashed #cbd1cd; }
.owner-waterfall__step-label { display: grid; min-height: 42px; overflow: visible; align-self: stretch; place-items: center; border: 0; padding: 8px 2px 4px; color: #515b55; background: transparent; font: inherit; font-size: 14px; font-weight: 800; line-height: 1.25; text-align: center; white-space: nowrap; cursor: pointer; }
.owner-waterfall__step:hover .owner-waterfall__bar > span { filter: saturate(1.18) brightness(1.02); }
.owner-waterfall__step.is-active > .owner-waterfall__step-label { color: #352818; text-decoration: underline; text-decoration-color: #ee9e13; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.owner-waterfall__step-label:focus-visible { border-radius: 7px; outline: 2px solid #ee9e13; outline-offset: -1px; }
.owner-waterfall__step.is-plus .owner-waterfall__bar > span { background: #37a77f; box-shadow: 0 7px 18px rgba(55,167,127,.14); }
.owner-waterfall__step.is-minus .owner-waterfall__bar > span { border-radius: 2px 2px 6px 6px; background: #ee7462; box-shadow: 0 7px 18px rgba(238,116,98,.13); }
.owner-waterfall__step.is-sales .owner-waterfall__bar > span { background: #37a77f; box-shadow: 0 7px 18px rgba(55,167,127,.18); }
.owner-waterfall__step.is-total .owner-waterfall__bar > span { background: #147a57; box-shadow: 0 8px 20px rgba(20,122,87,.2); }
.owner-waterfall__step.is-total .owner-waterfall__bar > span > b { font-size: 14px; font-weight: 900; }
.owner-waterfall__step.is-zero .owner-waterfall__bar > span { opacity: .28; box-shadow: none; }
.owner-waterfall__bar > span.is-segmented { display: flex; flex-direction: column-reverse; background: #37a77f; }
.owner-waterfall__order-segment { position: relative; display: grid; min-height: 10px; flex-basis: 0; place-items: center; border: 0; border-top: 1px solid rgba(255,255,255,.66); padding: 0; color: #0d3e30; background: rgba(255,255,255,.05); font: inherit; cursor: pointer; transition: filter .16s ease, transform .16s ease, box-shadow .16s ease; }
.owner-waterfall__order-segment:first-of-type { border-radius: 0 0 2px 2px; }
.owner-waterfall__order-segment:last-of-type { border-radius: 6px 6px 0 0; }
.owner-waterfall__order-segment.shade-1 { background: rgba(255,255,255,.18); }
.owner-waterfall__order-segment.shade-2 { background: rgba(13,75,56,.08); }
.owner-waterfall__order-segment.shade-3 { background: rgba(255,255,255,.28); }
.owner-waterfall__order-segment.shade-4 { background: rgba(9,57,42,.15); }
.owner-waterfall__order-segment small { overflow: hidden; max-width: 92%; font-size: 10px; font-weight: 900; line-height: 1; text-overflow: ellipsis; white-space: nowrap; }
.owner-waterfall__order-segment:is(:hover, :focus-visible) { z-index: 4; outline: 2px solid #fff; filter: brightness(1.13); transform: translateX(-4px); box-shadow: 0 4px 13px rgba(82,48,0,.2); }
.owner-waterfall__order-segment.is-cancelled { background: repeating-linear-gradient(135deg, rgba(255,255,255,.28) 0 5px, rgba(120,52,15,.2) 5px 10px); }
.owner-waterfall__drilldown { margin-top: 18px; border-top: 1px solid #e2e7e3; padding-top: 15px; }
.owner-waterfall__drilldown > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 6px 9px; }
.owner-waterfall__drilldown > header strong { color: #202622; font-size: 15px; }
.owner-waterfall__drilldown > header p { color: #7b857f; font-size: 10px; }
.owner-waterfall__order-rail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 22px; }
.owner-waterfall__order-card { display: grid; min-width: 0; grid-template-columns: minmax(0,1fr) auto 12px; align-items: center; gap: 12px; border: 0; border-top: 1px solid #edf0ee; border-radius: 0; padding: 12px 6px; color: #202622; background: transparent; font: inherit; text-align: left; cursor: pointer; transition: color .16s ease, background .16s ease; }
.owner-waterfall__order-card:hover { color: #9c6200; background: #fffaf0; }
.owner-waterfall__order-card:focus-visible { outline: 2px solid #ee9e13; outline-offset: 1px; }
.owner-waterfall__order-card > span { display: grid; min-width: 0; gap: 3px; }
.owner-waterfall__order-card strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.owner-waterfall__order-card small { overflow: hidden; color: #747e78; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.owner-waterfall__order-card > b { color: #252b27; font-size: 12px; white-space: nowrap; }
.owner-waterfall__order-card > em { color: #a66b08; font-size: 20px; font-style: normal; }
.owner-waterfall__order-card.is-cancelled { color: #a64a3e; background: #fff9f8; }
.owner-waterfall__empty { width: 100%; border: 1px dashed #d9dfdb; border-radius: 11px; padding: 20px; color: #747e78; background: #fff; font-size: 12px; text-align: center; }

/* Manager shift command center */
.manager-close-shift:disabled { cursor: not-allowed; opacity: .52; }
.shift-console { display: grid; gap: 14px; }
.shift-console button { font: inherit; }
.shift-console__hero {
  position: relative;
  display: flex;
  min-height: 178px;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  overflow: hidden;
  border-radius: 24px;
  padding: 27px 29px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(255,184,54,.3), transparent 31%),
    linear-gradient(125deg, #18201c 0%, #243229 64%, #4a3820 130%);
  box-shadow: 0 18px 48px rgba(21,29,24,.14);
}
.shift-console__hero::after {
  position: absolute;
  top: -58px;
  right: 8%;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  content: "";
}
.shift-console__hero-copy,
.shift-console__hero-actions { position: relative; z-index: 1; }
.shift-console__hero-copy { max-width: 610px; }
.shift-console__status { display: flex; align-items: center; gap: 9px; color: #cad2cd; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.shift-console__status i { width: 8px; height: 8px; border-radius: 50%; background: #45d68d; box-shadow: 0 0 0 6px rgba(69,214,141,.12); }
.shift-console__hero h2 { margin-top: 22px; font-size: clamp(26px, 3.2vw, 42px); letter-spacing: -.055em; line-height: .98; }
.shift-console__hero p { margin-top: 11px; color: #c6cec9; font-size: 10px; }
.shift-console__hero-actions { display: grid; min-width: 172px; gap: 8px; }
.shift-console__hero-actions button { min-height: 42px; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; padding: 0 15px; color: #edf1ee; background: rgba(255,255,255,.07); font-size: 9px; font-weight: 800; cursor: pointer; backdrop-filter: blur(10px); }
.shift-console__hero-actions button:hover { background: rgba(255,255,255,.13); }
.shift-console__hero-actions .shift-console__primary { border-color: #f3aa25; color: #1c201d; background: #f3aa25; }
.shift-console__hero-actions .shift-console__primary:hover { background: #ffc253; }

.shift-signal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.shift-signal {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 116px;
  align-content: start;
  overflow: hidden;
  border: 1px solid var(--portal-line);
  border-radius: 18px;
  padding: 16px 17px;
  color: var(--portal-ink);
  background: rgba(255,255,255,.9);
  text-align: left;
  box-shadow: 0 8px 24px rgba(27,35,30,.04);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.shift-signal::before { position: absolute; top: 0; right: 16px; left: 16px; height: 3px; border-radius: 0 0 4px 4px; background: #a9b3ad; content: ""; }
.shift-signal:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(27,35,30,.08); }
.shift-signal > span { color: #7f8983; font-size: 9px; font-weight: 800; }
.shift-signal > strong { margin-top: 11px; font-size: 27px; letter-spacing: -.055em; }
.shift-signal > small { margin-top: 7px; overflow: hidden; color: #969f99; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.shift-signal.is-danger::before { background: #ef5b45; }
.shift-signal.is-warning::before { background: #f0a52b; }
.shift-signal.is-ready::before { background: #35b47b; }
.shift-signal.is-calm::before { background: #b9c4be; }
.shift-signal.is-danger > strong { color: #d94530; }
.shift-signal.is-warning > strong { color: #c77b07; }
.shift-signal.is-ready > strong { color: #16875a; }

.shift-command-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(270px, .62fr); align-items: start; gap: 14px; }
.shift-attention { overflow: hidden; }
.shift-attention__head { align-items: end; padding: 20px 21px 17px; border-bottom: 1px solid var(--portal-line); }
.shift-attention__head > div > span { color: #8a948e; font-size: 8px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.shift-attention__head h2 { margin-top: 5px; font-size: 20px; letter-spacing: -.035em; }
.shift-attention__head p { margin-top: 6px; color: #8c9590; font-size: 8px; }
.shift-attention__head button { border: 0; padding: 0; color: #a96505; background: transparent; font-size: 9px; font-weight: 800; cursor: pointer; }
.shift-order-list { display: grid; }
.shift-order-row { display: grid; grid-template-columns: minmax(180px, 1.25fr) minmax(140px, .8fr) minmax(135px, .72fr) auto; align-items: center; gap: 16px; min-height: 100px; padding: 15px 20px; border-bottom: 1px solid var(--portal-line); background: #fff; }
.shift-order-row:last-child { border-bottom: 0; }
.shift-order-row.is-overdue { background: linear-gradient(90deg, rgba(239,91,69,.055), #fff 34%); box-shadow: inset 3px 0 #ef5b45; }
.shift-order-row__main { min-width: 0; }
.shift-order-row__main > div { display: flex; align-items: center; gap: 8px; }
.shift-order-row__main > div > b { font-size: 10px; }
.shift-order-row__main > strong { display: block; margin-top: 9px; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.shift-order-row__main > small { display: block; margin-top: 5px; overflow: hidden; color: #8e9791; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.shift-order-row__deadline,
.shift-order-row__action { display: grid; min-width: 0; gap: 5px; }
.shift-order-row__deadline span,
.shift-order-row__action span { color: #929b96; font-size: 8px; }
.shift-order-row__deadline strong,
.shift-order-row__action strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.shift-order-row.is-overdue .shift-order-row__deadline strong { color: #d94732; }
.shift-order-row__open { min-height: 34px; border: 1px solid #dce1de; border-radius: 10px; padding: 0 12px; color: #323a35; background: #f7f9f7; font-size: 8px; font-weight: 800; cursor: pointer; }
.shift-order-row__open:hover { border-color: #efb75f; background: #fff9ee; }
.shift-attention__empty { display: grid; min-height: 250px; place-content: center; justify-items: center; gap: 8px; color: #8d9791; text-align: center; }
.shift-attention__empty i { display: grid; width: 40px; height: 40px; place-content: center; border-radius: 50%; color: #16875a; background: #e9f8f0; font-size: 17px; font-style: normal; }
.shift-attention__empty strong { color: #303733; font-size: 12px; }
.shift-attention__empty span { font-size: 8px; }

.shift-resource-stack { display: grid; gap: 10px; }
.shift-resource-card { min-width: 0; padding: 18px; }
.shift-resource-card > header { align-items: center; }
.shift-resource-card > header > span { color: #7f8983; font-size: 9px; font-weight: 800; }
.shift-resource-card > header > i { width: 9px; height: 9px; border-radius: 50%; }
.shift-resource-card > header > i.is-kitchen { background: #ef9f24; box-shadow: 0 0 0 5px rgba(239,159,36,.11); }
.shift-resource-card > header > i.is-delivery { background: #4d8fe3; box-shadow: 0 0 0 5px rgba(77,143,227,.11); }
.shift-resource-card > header > i.is-menu { background: #8a75c4; box-shadow: 0 0 0 5px rgba(138,117,196,.11); }
.shift-resource-card > strong { display: block; margin-top: 18px; font-size: 19px; letter-spacing: -.04em; }
.shift-resource-card > p { min-height: 29px; margin-top: 7px; color: #8d9691; font-size: 8px; line-height: 1.65; }
.shift-resource-card > div { display: flex; justify-content: space-between; margin-top: 15px; border-top: 1px solid var(--portal-line); padding-top: 12px; color: #89928d; font-size: 8px; }
.shift-resource-card > div b { color: #303733; font-size: 9px; }
.shift-resource-card > button { margin-top: 14px; border: 0; padding: 0; color: #a96505; background: transparent; font-size: 8px; font-weight: 800; cursor: pointer; }

.data-panel { overflow: hidden; }
.manager-shift-bar {
  display: grid;
  grid-template-columns: minmax(180px, 1.3fr) repeat(4, minmax(105px, .75fr)) minmax(100px, .65fr);
  align-items: stretch;
  gap: 1px;
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid var(--portal-line);
  border-radius: 17px;
  background: var(--portal-line);
  box-shadow: 0 5px 18px rgba(20, 24, 21, .025);
}
.manager-shift-bar > div,
.manager-shift-bar > button {
  display: grid;
  align-content: center;
  min-height: 78px;
  gap: 6px;
  border: 0;
  padding: 14px 16px;
  background: #fff;
  text-align: left;
}
.manager-shift-bar > button { cursor: pointer; }
.manager-shift-bar > button:hover { background: #fffaf0; }
.manager-shift-bar span { color: var(--portal-muted); font-size: 8px; font-weight: 700; }
.manager-shift-bar strong { font-size: 14px; letter-spacing: -.02em; }
.manager-shift-bar__state { grid-template-columns: auto 1fr; align-items: center; }
.manager-shift-bar__state > i {
  grid-row: 1 / span 2;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #24ad72;
  box-shadow: 0 0 0 5px rgba(36,173,114,.11);
}
.manager-shift-bar__state span { display: grid; gap: 5px; }
.manager-shift-bar__state strong { color: var(--portal-ink); font-size: 12px; }
.manager-shift-bar__state small { color: var(--portal-muted); font-size: 8px; }
.orders-workspace-toolbar,
.catalog-management-toolbar {
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--portal-line);
}
.admin-panel > .orders-workspace-toolbar,
.admin-panel > .catalog-management-toolbar { display: grid; }
.orders-workspace-toolbar { grid-template-columns: minmax(180px, 1fr) minmax(120px, 145px) minmax(110px, 135px) minmax(120px, 145px) auto; }
.admin-panel > .catalog-management-toolbar { display: block; min-height: 0; padding: 0; background: #fff; }
.catalog-toolbar-primary { display: grid; grid-template-columns: minmax(260px, 1fr) auto auto; align-items: stretch; gap: 12px; padding: 14px 16px 12px; }
.catalog-management-toolbar:not(.has-create) .catalog-toolbar-primary { grid-template-columns: minmax(260px, 1fr) auto; }
.catalog-search { display: flex; align-items: center; gap: 11px; min-height: 52px; border: 1px solid #dfe4df; border-radius: 14px; padding: 0 13px; background: #f7f9f7; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.catalog-search:focus-within { border-color: #e1a525; background: #fff; box-shadow: 0 0 0 4px rgba(225,165,37,.1); }
.catalog-search > span { color: #9aa19c; font-size: 21px; }
.catalog-search > label { display: grid; flex: 1; gap: 3px; min-width: 0; }
.catalog-search small { color: #999f9b; font-size: 8px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.catalog-search input { width: 100%; border: 0; outline: 0; color: #222824; background: transparent; font-size: 12px; font-weight: 650; }
.catalog-search input::placeholder { color: #a5aaa7; font-weight: 500; }
.catalog-search > button { flex: 0 0 auto; width: 28px; height: 28px; border: 0; border-radius: 8px; color: #6f7772; background: #e8ebe8; font-size: 15px; cursor: pointer; }
.catalog-result-count { display: grid; align-content: center; min-width: 92px; border: 1px solid #e7eae7; border-radius: 14px; padding: 0 14px; background: #fff; text-align: center; }
.catalog-result-count strong { color: #1c231f; font-size: 17px; line-height: 1; }
.catalog-result-count small { margin-top: 4px; color: #919893; font-size: 8px; white-space: nowrap; }
.catalog-create-button { display: flex; align-items: center; gap: 10px; min-height: 52px; border: 0; border-radius: 14px; padding: 0 16px 0 11px; color: #211609; background: linear-gradient(135deg,#ffd768,#eea317); box-shadow: 0 10px 22px rgba(226,147,10,.18); cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.catalog-create-button:hover { transform: translateY(-1px); box-shadow: 0 13px 26px rgba(226,147,10,.24); }
.catalog-create-button > i { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 10px; color: #fff; background: rgba(74,45,2,.82); font-size: 20px; font-style: normal; font-weight: 500; }
.catalog-create-button > span { display: grid; gap: 2px; text-align: left; }
.catalog-create-button strong { font-size: 11px; white-space: nowrap; }
.catalog-create-button small { color: rgba(53,34,7,.66); font-size: 8px; white-space: nowrap; }
.catalog-toolbar-secondary { display: flex; align-items: end; gap: 12px; min-height: 66px; border-top: 1px solid #edf0ed; padding: 11px 16px 12px; background: #fbfcfb; }
.catalog-category-control { display: grid; flex: 0 0 230px; gap: 5px; }
.catalog-category-control > span { padding-left: 2px; color: #8c938e; font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.catalog-management-toolbar .catalog-category-control select { height: 39px; border-radius: 10px; color: #333b36; background: #fff; font-size: 10px; }
.catalog-availability-filters { justify-content: flex-start; overflow: visible; border: 1px solid #e2e6e2; border-radius: 11px; padding: 3px; background: #fff; }
.catalog-availability-filters button { display: flex; align-items: center; gap: 7px; min-height: 32px; border-radius: 8px; padding: 0 11px; }
.catalog-availability-filters button.is-active { background: #eef1ee; box-shadow: 0 1px 2px rgba(24,31,27,.05); }
.catalog-availability-filters button > i { width: 7px; height: 7px; border-radius: 50%; background: #25ae7c; }
.catalog-availability-filters button[data-catalog-availability="stopped"] > i { background: #eea317; }
.catalog-availability-filters button > b { display: grid; min-width: 19px; height: 19px; margin: 0; place-items: center; border-radius: 7px; color: #626a65; background: #edf0ed; font-size: 8px; }
.catalog-availability-filters button.is-active > b { color: #75500d; background: #ffe8af; }
.catalog-reset-button { min-height: 39px; margin-left: auto; border: 0; padding: 0 5px; color: #8b928d; background: transparent; font-size: 9px; font-weight: 750; cursor: pointer; }
.catalog-reset-button:hover { color: #a66c0b; }
.manager-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid var(--portal-line);
  border-radius: 11px;
  padding: 0 12px;
  background: #f8faf8;
}
.manager-search > span { color: #8d948f; font-size: 17px; }
.manager-search input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 10px; }
.manager-search > button { flex: 0 0 auto; width: 24px; height: 24px; border: 0; border-radius: 7px; color: #7b827d; background: #e9ece8; font-size: 13px; cursor: pointer; }
.orders-workspace-toolbar select,
.catalog-management-toolbar select {
  width: 100%;
  height: 40px;
  border: 1px solid var(--portal-line);
  border-radius: 11px;
  padding: 0 11px;
  outline: 0;
  color: var(--portal-muted);
  background: #fff;
  font-size: 9px;
  font-weight: 700;
}
.order-filter-control {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.order-filter-control > span {
  padding-left: 2px;
  color: var(--portal-muted);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1;
  text-transform: uppercase;
}
.orders-workspace-toolbar .order-filter-control select { height: 36px; }
.catalog-availability-filters { justify-content: flex-end; }
.availability-control { display: flex !important; align-items: center; gap: 8px; }
.availability-control > small { margin: 0 !important; color: var(--portal-muted); font-size: 8px; white-space: nowrap; }
.data-toolbar {
  min-height: 66px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--portal-line);
}
.filter-pills { display: flex; gap: 6px; overflow-x: auto; }
.filter-pills button {
  min-height: 32px;
  border: 0;
  border-radius: 9px;
  padding: 0 11px;
  color: #757a76;
  background: transparent;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.filter-pills button.is-active { color: var(--portal-ink); background: #edeFec; }
.filter-pills b { margin-left: 4px; }
.admin-table { width: 100%; overflow-x: auto; }
.table-head,
.table-row {
  display: grid;
  align-items: center;
  min-width: 850px;
  padding: 0 17px;
}
.orders-table .table-head,
.orders-table .table-row { grid-template-columns: .75fr 1.15fr 1.5fr .75fr .7fr .8fr 20px; }
.catalog-table .table-head,
.catalog-table .table-row { grid-template-columns: 1.7fr .8fr .6fr .6fr 1fr; }
.admin-main--catalog .admin-page-heading { display: none; }
.catalog-edit-row { position: relative; cursor: pointer; transition: background-color .16s ease, box-shadow .16s ease; }
.catalog-edit-row:hover { z-index: 1; background: #fffaf0; box-shadow: inset 3px 0 #eea31d; }
.catalog-edit-row:has(.catalog-row-hitbox:focus-visible) { z-index: 1; background: #fffaf0; box-shadow: inset 0 0 0 2px #d8940d; }
.catalog-row-hitbox { position: absolute; z-index: 1; inset: 0; width: 100%; border: 0; padding: 0; outline: 0; background: transparent; cursor: pointer; }
.catalog-edit-row > span { position: relative; z-index: 2; pointer-events: none; }
.catalog-edit-row .availability-control { pointer-events: none; }
.catalog-edit-row .availability-control .switch { pointer-events: auto; }
.catalog-product em { color: #b27a1d; font-size: 7px; font-style: normal; font-weight: 800; opacity: .62; transition: opacity .16s ease; }
.catalog-edit-row:hover .catalog-product em,
.catalog-edit-row:has(.catalog-row-hitbox:focus-visible) .catalog-product em { opacity: 1; }
.customers-table .table-head,
.customers-table .table-row { grid-template-columns: 1.5fr .75fr .6fr .8fr .8fr; }
.table-head {
  height: 38px;
  color: #959a96;
  background: #f7f8f6;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}
.table-row {
  width: 100%;
  min-height: 63px;
  border: 0;
  border-bottom: 1px solid #eff0ee;
  background: #fff;
  text-align: left;
}
button.table-row { cursor: pointer; }
button.table-row:hover { background: #fbfcfa; }
.table-row > span { min-width: 0; padding-right: 12px; font-size: 10px; }
.table-row span > strong,
.table-row span > small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-row span > strong { font-size: 10px; }
.table-row span > small { margin-top: 4px; color: #929793; font-size: 8px; }
.row-arrow { color: #a6aaa6; font-size: 20px !important; }
.catalog-product,
.customer-cell { display: flex !important; align-items: center; gap: 10px; }
.catalog-product > span { display: grid; min-width: 0; gap: 2px; }
.catalog-product img { width: 40px; height: 40px; border-radius: 9px; object-fit: contain; background: #191816; }
.customer-cell > i {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: #965244;
  background: #fcebe7;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}
.switch {
  position: relative;
  width: 36px;
  height: 20px;
  border: 0;
  border-radius: 20px;
  background: #cbd0cc;
  cursor: pointer;
  transition: .2s ease;
}
.switch i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: .2s ease;
}
.switch.is-on { background: #23ae75; }
.switch.is-on i { transform: translateX(16px); }
.kebab { border: 0; color: #999e9a; background: transparent; cursor: pointer; }
.no-data { display: grid; gap: 7px; padding: 50px; color: var(--portal-muted); text-align: center; }
.no-data strong { color: var(--portal-ink); font-size: 12px; }
.no-data span { font-size: 9px; }

.catalog-summary,
.customer-insights,
.analytics-hero {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
.catalog-summary article,
.customer-insights article,
.analytics-hero > div { padding: 18px; border: 1px solid var(--portal-line); border-radius: 15px; background: #fff; }
.catalog-summary span,
.customer-insights span,
.analytics-hero span { color: var(--portal-muted); font-size: 9px; }
.catalog-summary strong,
.customer-insights strong,
.analytics-hero strong { display: block; margin-top: 9px; font-size: 22px; letter-spacing: -.04em; }
.catalog-summary small,
.customer-insights small,
.analytics-hero b { display: block; margin-top: 7px; color: var(--portal-green); font-size: 8px; }
.catalog-summary .danger strong { color: var(--portal-accent); }
.segment { padding: 5px 8px; border-radius: 7px; font-size: 8px; }
.segment--vip { color: #9d7218; background: #fff0c6; }
.segment--regular { color: #59625c; background: #ecefeb; }

.promo-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin: -2px 0 22px;
  padding: 26px 30px;
  border-radius: 19px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 40%, rgba(242, 162, 11, .3), transparent 29%),
    #15130f;
}
.promo-hero span { color: #f2b33a; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.promo-hero h2 { margin-top: 8px; font-size: 26px; }
.promo-hero p { max-width: 560px; margin-top: 7px; color: #979d99; font-size: 10px; line-height: 1.5; }
.promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.promo-card { padding: 18px; border: 1px solid var(--portal-line); border-radius: 16px; background: #fff; }
.promo-card header { display: flex; justify-content: space-between; }
.promo-card header button { border: 0; background: transparent; }
.promo-code {
  display: inline-block;
  margin-top: 18px;
  padding: 7px 10px;
  border: 1px dashed #dca43b;
  border-radius: 7px;
  color: var(--portal-accent);
  background: #fff9ea;
  font: 800 12px monospace;
  letter-spacing: .08em;
}
.promo-card h3 { margin-top: 13px; font-size: 14px; }
.promo-card > p { margin-top: 5px; color: var(--portal-muted); font-size: 9px; }
.promo-card > div:nth-last-of-type(1) { display: flex; gap: 35px; margin-top: 21px; }
.promo-card > div span { display: grid; gap: 5px; }
.promo-card > div small { color: var(--portal-muted); font-size: 8px; }
.promo-card > div strong { font-size: 13px; }
.promo-card footer { height: 4px; margin-top: 16px; overflow: hidden; border-radius: 10px; background: #eceeeb; }
.promo-card footer i { display: block; height: 100%; border-radius: inherit; background: var(--portal-accent); }
.promo-report { padding: 20px; }
.promo-funnel { display: grid; gap: 13px; margin-top: 20px; }
.promo-funnel > div { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.promo-funnel span,
.promo-funnel strong { font-size: 9px; }
.promo-funnel i { grid-column: 1 / -1; height: 7px; border-radius: 10px; background: linear-gradient(90deg, var(--portal-accent), #ffd35b); }

.analytics-hero > div:first-child { grid-column: span 1; color: #fff; border-color: #1b1d1c; background: #1b1d1c; }
.analytics-hero > div:first-child span { color: #9ca29e; }
.analytics-hero > div:first-child b { color: #63d59f; }
.hourly-chart,
.top-products,
.cohort-panel { padding: 20px; }
.hourly-chart header p { margin-top: 4px; color: var(--portal-muted); font-size: 8px; }
.hourly-chart > div {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 220px;
  margin-top: 25px;
}
.hourly-chart > div > span { display: grid; grid-template-rows: 1fr 20px; align-items: end; width: 100%; height: 100%; }
.hourly-chart > div b { min-height: 4px; border-radius: 5px 5px 1px 1px; background: linear-gradient(#ff6e58, var(--portal-accent)); }
.hourly-chart > div small { color: #969b97; font-size: 7px; text-align: center; }
.top-products > div {
  display: grid;
  grid-template-columns: 20px 38px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid #eff0ee;
}
.top-products > div > b { color: #999e9a; font-size: 10px; }
.top-products img { width: 38px; height: 38px; border-radius: 9px; object-fit: contain; background: #191816; }
.top-products > div span { display: grid; gap: 3px; min-width: 0; }
.top-products > div strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.top-products > div small { color: var(--portal-muted); font-size: 7px; }
.top-products em { font-size: 9px; font-style: normal; font-weight: 800; }
.cohort-panel > div { display: grid; gap: 13px; margin-top: 20px; }
.cohort-panel > div span { display: grid; grid-template-columns: 1fr auto; gap: 7px; }
.cohort-panel > div i {
  grid-column: 1 / -1;
  width: var(--value);
  height: 6px;
  border-radius: 10px;
  background: linear-gradient(90deg, #252826, #717873);
}
.cohort-panel > div b,
.cohort-panel > div strong { font-size: 9px; }

/* Finance ledger */
.admin-main--finance-ledger .admin-page-heading { display: none; }
.admin-main--team .admin-page-heading { display: none; }
.finance-workspace { display: grid; max-width: 1280px; gap: 14px; margin: 0 auto; }
.finance-workspace button { font: inherit; }
.finance-journal { overflow: hidden; border: 1px solid var(--portal-line); border-radius: 19px; background: #fff; box-shadow: 0 9px 28px rgba(30,40,34,.055); }
.finance-journal > header { align-items: center; padding: 20px; background: #fff; }
.finance-journal > header > div:first-child > span { color: #939d97; font-size: 8px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.finance-journal > header h2 { margin-top: 5px; font-size: 22px; letter-spacing: -.035em; }
.finance-journal > header p { margin-top: 6px; color: #8a948e; font-size: 10px; }
.finance-journal > header > .accent-button { min-height: 42px; padding-inline: 16px; white-space: nowrap; }
.finance-month-overview { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 2fr); gap: 12px; padding: 0 20px 20px; }
.finance-month-picker { display: grid; align-content: center; gap: 8px; border: 1px solid #e0e5e2; border-radius: 14px; padding: 12px 14px; background: #f7f9f7; }
.finance-month-picker > span { color: #89938d; font-size: 8px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.finance-month-picker select { width: 100%; min-height: 38px; border: 0; border-radius: 9px; padding: 0 34px 0 11px; color: #25302a; background-color: #fff; box-shadow: inset 0 0 0 1px #dce2de; font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.finance-month-picker select:hover { box-shadow: inset 0 0 0 1px #e5aa38; }
.finance-month-picker select:focus-visible { outline: 3px solid rgba(238,158,19,.16); box-shadow: inset 0 0 0 1px #e5a31f; }
.finance-month-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden; border: 1px solid #e0e5e2; border-radius: 14px; background: #fafbfa; }
.finance-month-metrics article { display: grid; align-content: center; min-width: 0; min-height: 86px; gap: 8px; padding: 14px 16px; }
.finance-month-metrics article + article { border-left: 1px solid #e0e5e2; }
.finance-month-metrics span { color: #89938d; font-size: 8px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.finance-month-metrics strong { overflow: hidden; color: inherit; font-size: clamp(16px, 2vw, 22px); letter-spacing: -.035em; text-overflow: ellipsis; white-space: nowrap; }
.is-income { color: #087c6e !important; }
.is-expense { color: #ba5145 !important; }
.finance-journal__days { display: grid; gap: 0; border-top: 1px solid var(--portal-line); }
.finance-day { overflow: hidden; background: #fff; }
.finance-day + .finance-day { border-top: 1px solid var(--portal-line); }
.finance-day__summary { display: grid; width: 100%; min-height: 62px; grid-template-columns: minmax(250px, 1fr) 105px 125px 125px 30px; align-items: center; gap: 12px; border: 0; padding: 0 18px; color: #66736c; background: #fbfcfb; text-align: left; cursor: pointer; transition: background .2s ease; }
.finance-day__summary:hover,
.finance-day.is-open > .finance-day__summary { background: linear-gradient(90deg, #fffaf0, #f7faf8 72%); }
.finance-day__summary > span { display: flex; align-items: center; gap: 12px; }
.finance-day__summary > span i { width: 9px; height: 9px; border-radius: 50%; background: #f1a51a; box-shadow: 0 0 0 5px #fff2d5; }
.finance-day__summary strong { color: #313a35; font-size: 11px; }
.finance-day__summary small { justify-self: start; border-radius: 7px; padding: 6px 8px; color: #748179; background: #eef2ef; font-size: 8px; }
.finance-day__summary > b { justify-self: end; border-radius: 8px; padding: 7px 9px; font-size: 10px; text-align: right; }
.finance-day__summary > b.is-income { background: #ebf7f3; }
.finance-day__summary > b.is-expense { background: #fbeeed; }
.finance-day__summary em { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 8px; color: #6f7c74; background: #eef2ef; font-size: 13px; font-style: normal; text-align: center; }
.finance-day__operations { background: #fff; }
.finance-operation-group { margin: 9px 12px; overflow: hidden; border: 1px solid #dce5e0; border-radius: 14px; background: #fbfcfb; box-shadow: 0 5px 16px rgba(24, 34, 28, .04); }
.finance-operation { display: grid; width: 100%; min-height: 72px; grid-template-columns: 40px minmax(0, 1fr) auto auto; align-items: center; gap: 14px; border: 0; border-top: 1px solid #edf0ee; padding: 11px 18px; color: inherit; background: #fff; text-align: left; transition: background .18s ease, box-shadow .18s ease; }
.finance-operation-group .finance-operation { border-top: 0; background: transparent; }
.finance-operation-group .finance-operation--linked-discount { min-height: 58px; border-top: 1px dashed #dce5e0; padding-left: 34px; background: #fffafa; }
.finance-operation-group__net { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid #e4e9e6; padding: 8px 18px 9px 72px; color: #748078; background: #f5f8f6; font-size: 9px; }
.finance-operation-group__net b { color: #25302a; font-size: 12px; }
.finance-operation[data-order-id] { cursor: pointer; }
.finance-operation:hover { background: #fbfcfb; }
.finance-operation[data-order-id]:focus-visible { position: relative; z-index: 1; outline: 0; box-shadow: inset 0 0 0 2px #e9a91d; }
.finance-operation > i { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 11px; color: #087c6e; background: #e9f6f2; font-size: 16px; font-style: normal; font-weight: 900; }
.finance-operation--expense > i { color: #ba5145; background: #fbecea; }
.finance-operation > div:nth-child(2) { min-width: 0; }
.finance-operation > div:nth-child(2) > strong { display: block; overflow: hidden; color: #252c28; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.finance-operation small { display: block; margin-top: 6px; color: #929c96; font-size: 9px; }
.finance-operation > b { min-width: 106px; color: #087c6e; font-size: 15px; text-align: right; white-space: nowrap; }
.finance-operation--expense > b { color: #ba5145; }
.finance-operation__actions { display: flex; min-width: 34px; justify-content: end; gap: 5px; }
.finance-operation__actions:empty { display: none; }
.finance-operation__actions button,
.finance-operation__actions span { display: grid; width: 32px; height: 32px; place-items: center; border: 0; border-radius: 9px; color: #6e7a73; background: #f1f4f2; cursor: pointer; }
.finance-operation__actions button:hover { color: #1e2521; background: #e6ebe8; }
.finance-empty { display: grid; gap: 6px; padding: 54px 20px; color: #909a94; text-align: center; }
.finance-empty strong { color: #343b37; font-size: 12px; }
.finance-empty span { font-size: 9px; }
.finance-pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--portal-line); padding: 14px 18px; background: #f8faf8; }
.finance-pagination > p { color: #7f8983; font-size: 9px; }
.finance-pagination > nav { display: flex; align-items: center; gap: 8px; }
.finance-pagination button { min-height: 36px; border: 1px solid #dce2de; border-radius: 9px; padding: 0 12px; color: #4d5852; background: #fff; font-size: 9px; font-weight: 800; cursor: pointer; }
.finance-pagination button:not(:disabled):hover { border-color: #e4aa3c; color: #704605; background: #fffaf0; }
.finance-pagination button:focus-visible { outline: 3px solid rgba(238,158,19,.16); }
.finance-pagination button:disabled { color: #a8b0ab; background: #f0f3f1; cursor: default; }
.finance-pagination nav > span { min-width: 92px; color: #707b74; font-size: 9px; text-align: center; }
.finance-pagination nav > span b { color: #26302a; font-size: 11px; }
.finance-operation-form { width: min(100%, 620px); }

.settings-layout { display: grid; grid-template-columns: 210px 1fr; gap: 14px; }
.settings-content { min-width: 0; }
.settings-nav { display: grid; align-self: start; align-content: start; padding: 9px; }
.settings-nav button {
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  padding: 0 12px;
  color: var(--portal-muted);
  background: transparent;
  font-size: 10px;
  text-align: left;
}
.settings-nav button.is-active { color: var(--portal-ink); background: #f0f2ef; font-weight: 800; }
.settings-form { padding: 23px; }
.settings-form header { padding-bottom: 20px; border-bottom: 1px solid var(--portal-line); }
.settings-form header h2 { font-size: 18px; }
.settings-form header p { margin-top: 5px; color: var(--portal-muted); font-size: 9px; }
.settings-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 21px;
}
.settings-fields label {
  display: grid;
  gap: 7px;
  color: var(--portal-muted);
  font-size: 9px;
  font-weight: 700;
}
.settings-fields input,
.settings-fields select {
  width: 100%;
  height: 42px;
  border: 1px solid var(--portal-line);
  border-radius: 10px;
  padding: 0 12px;
  outline: 0;
  color: var(--portal-ink);
  background: #f9faf8;
  font-size: 11px;
}
.settings-zones { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--portal-line); }
.settings-zones h3 { font-size: 13px; }
.zone-map {
  position: relative;
  height: 230px;
  margin-top: 13px;
  overflow: hidden;
  border-radius: 14px;
  background: #e7e9e6;
}
.zone {
  position: absolute;
  border-radius: 50%;
  opacity: .6;
}
.zone-1 { inset: 17% 29%; background: #bfe2d0; }
.zone-2 { inset: 7% 17%; border: 20px solid #eadcae; }
.zone-3 { inset: -11% 2%; border: 22px solid #efc7be; }
.zone-map > i {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50% 50% 50% 0;
  color: #fff;
  background: var(--portal-accent);
  font-style: normal;
  transform: translate(-50%, -70%) rotate(-45deg);
}

.admin-detail-drawer {
  position: fixed;
  z-index: 85;
  top: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  width: calc(100vw - 272px);
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 22px;
  background: #f5f7f5;
  box-shadow: -24px 0 70px rgba(20, 24, 21, .22);
  opacity: 0;
  transform: translateX(calc(100% + 24px));
  transition: .3s ease;
}
.admin-detail-drawer.is-open { opacity: 1; transform: translateX(0); }
.admin-detail-drawer > header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--portal-line);
  background: #fff;
}
.order-drawer__heading { display: grid; grid-template-columns: auto auto; align-items: center; gap: 2px 9px; }
.order-drawer__heading > span { display: inline-flex; grid-row: 1 / 3; }
.admin-detail-drawer > header h2 { margin: 0; font-size: 23px; letter-spacing: -.04em; line-height: 1; }
.admin-detail-drawer > header p { margin: 0; color: var(--portal-muted); font-size: 8px; }
.admin-detail-drawer > header button {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  background: #eff1ee;
  cursor: pointer;
}
.order-drawer__summary {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: minmax(240px, .75fr) minmax(420px, 1.65fr);
  gap: 10px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--portal-line);
  background: #f8faf8;
}
.order-summary-card {
  display: grid;
  min-width: 0;
  min-height: 72px;
  grid-template-columns: 38px minmax(0, 1fr);
  align-content: center;
  align-items: center;
  gap: 4px 9px;
  border: 1px solid var(--portal-line);
  border-radius: 13px;
  padding: 9px 12px;
  background: #fff;
}
.order-summary-card > i { display: grid; width: 38px; height: 38px; grid-row: 1 / 2; place-items: center; border-radius: 10px; color: #9f4d3f; background: #fbe7e3; font-size: 11px; font-style: normal; font-weight: 900; }
.order-summary-card--fulfillment > i { color: #8a610a; background: #fff1cd; }
.order-summary-card--comment { min-height: 62px; grid-column: 1 / -1; }
.order-summary-card--comment > i { color: #087c6e; background: #e7f6f1; font-family: Georgia, serif; font-size: 20px; }
.order-summary-card > span { display: grid; min-width: 0; gap: 4px; }
.order-summary-card small { color: var(--portal-muted); font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.order-summary-card strong { overflow: hidden; color: var(--portal-ink); font-size: 12px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.order-summary-card--fulfillment strong { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; }
.order-summary-card--comment strong { overflow: visible; font-size: 11px; font-weight: 700; line-height: 1.45; text-overflow: clip; white-space: normal; }
.order-summary-card--comment.is-empty strong { color: #8b948f; font-weight: 550; }
.order-summary-card a,
.order-summary-card em { color: var(--portal-muted); font-size: 10px; font-style: normal; line-height: 1.35; text-decoration: none; }
.order-drawer__layout {
  display: grid;
  min-height: 0;
  flex: 1;
  grid-template-columns: minmax(0, 1.55fr) minmax(360px, .75fr);
  gap: 12px;
  align-content: start;
  align-items: start;
  overflow-y: auto;
  padding: 12px 18px 18px;
}
.order-drawer__layout section { min-width: 0; margin: 0; border: 1px solid var(--portal-line); border-radius: 16px; padding: 15px; background: #fff; }
.order-drawer__layout section > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.order-drawer__layout section > header > div { display: grid; gap: 2px; }
.order-drawer__layout section > header span { color: var(--portal-muted); font-size: 7px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.order-drawer__layout section > header h3 { font-size: 14px; }
.order-drawer__layout section > header > b { display: grid; min-width: 26px; height: 26px; place-items: center; border-radius: 8px; color: #66716a; background: #f0f3f1; font-size: 8px; }
.order-drawer__side { display: grid; min-width: 0; align-content: start; gap: 12px; }
.drawer-delivery-cost { border-color: #f0d3ce !important; background: linear-gradient(145deg, #fff, #fff8f7) !important; }
.drawer-delivery-cost > header > b { min-width: 140px !important; padding: 0 12px; color: #8a5c00 !important; background: #fff0c7 !important; font-size: 10px !important; }
.drawer-delivery-cost.is-confirmed { border-color: #cfe5db !important; background: linear-gradient(145deg, #fff, #f6fcf9) !important; }
.drawer-delivery-cost.is-confirmed > header > b { color: #8a5c00 !important; background: #fff0c7 !important; }
.drawer-delivery-cost > header > div > p { margin: 4px 0 0; color: #7d8580; font-size: 9px; }
.drawer-delivery-cost__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 11px; }
.drawer-delivery-cost label { min-width: 0; display: grid; grid-template-columns: 1fr auto; gap: 5px 8px; }
.drawer-delivery-cost label > span { color: #303934; font-size: 10px; font-weight: 850; }
.drawer-delivery-cost label > small { color: var(--portal-muted); font-size: 8px; text-align: right; }
.drawer-delivery-cost input { width: 100%; height: 44px; grid-column: 1 / -1; border: 1px solid #d9dfdb; border-radius: 11px; padding: 0 12px; color: var(--portal-ink); background: #fff; font: inherit; font-size: 14px; font-weight: 850; outline: none; }
.drawer-delivery-cost input:focus { border-color: #ef9d8f; box-shadow: 0 0 0 3px rgba(239,157,143,.16); }
.drawer-delivery-cost button { min-height: 43px; grid-column: 1 / -1; padding-inline: 14px; white-space: nowrap; }
.drawer-delivery-cost > p { margin-top: 10px; color: #7d8580; font-size: 9px; line-height: 1.45; }
.admin-scrim {
  position: fixed;
  z-index: 60;
  inset: 0;
  background: rgba(15, 17, 16, .55);
  opacity: 0;
  visibility: hidden;
  transition: .25s ease;
}
.admin-scrim.is-open { opacity: 1; visibility: visible; }
.admin-modal form > button:first-child {
  float: right;
  width: 35px;
  height: 35px;
  border: 0;
  border-radius: 9px;
  background: #eff1ee;
  cursor: pointer;
}
.admin-detail-drawer > span { color: var(--portal-accent); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.admin-detail-drawer > h2 { margin-top: 7px; font-size: 26px; }
.admin-detail-drawer > p { margin-top: 6px; color: var(--portal-muted); font-size: 10px; }
.drawer-timeline { display: grid; align-content: start; }
.drawer-timeline > div {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 5px 9px;
  min-height: 58px;
}
.drawer-timeline > div:not(:last-child)::after {
  position: absolute;
  top: 12px;
  bottom: -3px;
  left: 5px;
  width: 1px;
  background: #dfe2de;
  content: "";
}
.drawer-timeline > div > i {
  position: relative;
  z-index: 1;
  width: 11px;
  height: 11px;
  margin-top: 2px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #aeb4af;
  box-shadow: 0 0 0 1px #c8ccc8;
}
.drawer-timeline > div > i.current { background: var(--portal-accent); box-shadow: 0 0 0 1px var(--portal-accent); }
.drawer-timeline > div span { display: grid; min-width: 0; align-content: start; gap: 5px; }
.drawer-timeline > div strong { font-size: 11px; line-height: 1.35; }
.drawer-timeline > div small { display: flex; min-width: 0; align-items: center; gap: 5px; color: var(--portal-muted); font-size: 9px; }
.drawer-timeline > div small b { overflow: hidden; color: #505a54; text-overflow: ellipsis; white-space: nowrap; }
.drawer-timeline > div small em { border-radius: 5px; padding: 2px 5px; background: #f0f3f1; font-size: 7px; font-style: normal; white-space: nowrap; }
.drawer-timeline > div > time { color: var(--portal-muted); font-size: 8px; line-height: 1.35; text-align: right; white-space: nowrap; }
.drawer-order-table__head,
.drawer-order-item {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 90px 110px 110px;
  align-items: center;
  gap: 14px;
}
.drawer-order-table__head {
  border-bottom: 1px solid var(--portal-line);
  padding: 7px 0 9px;
  color: var(--portal-muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.drawer-order-table__head span:not(:first-child) { text-align: right; }
.drawer-order-item {
  padding: 10px 0;
  border-bottom: 1px solid #eff0ee;
}
.drawer-order-item__product { display: grid; min-width: 0; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 10px; }
.drawer-order-item img { width: 48px; height: 48px; border-radius: 10px; object-fit: contain; background: #191816; }
.drawer-order-item__product > span { display: grid; min-width: 0; gap: 4px; }
.drawer-order-item strong { font-size: 11px; }
.drawer-order-item small { color: var(--portal-muted); font-size: 9px; }
.drawer-order-item__quantity,
.drawer-order-item__unit,
.drawer-order-item > b { color: #505a54; font-size: 11px; text-align: right; }
.drawer-order-item > b { color: var(--portal-ink); }
.drawer-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 12px; border-top: 1px solid var(--portal-line); padding-top: 12px; }
.drawer-totals.has-delivery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.drawer-totals div { display: grid; gap: 4px; border-left: 1px solid var(--portal-line); padding: 0 14px; color: var(--portal-muted); font-size: 9px; }
.drawer-totals div:first-child { border-left: 0; padding-left: 0; }
.drawer-totals div:last-child { padding-right: 0; }
.drawer-totals b { color: #4f5953; font-size: 13px; }
.drawer-totals .total { margin: 0; border-top: 0; color: var(--portal-ink); font-weight: 800; }
.drawer-totals .total b { color: var(--portal-ink); font-size: 17px; }
.admin-detail-drawer > footer { display: flex; flex: 0 0 auto; gap: 9px; border-top: 1px solid var(--portal-line); padding: 10px 18px; background: #fff; }
.admin-detail-drawer > footer button { flex: 1; }
.admin-detail-drawer > footer.has-confirmation-actions { display: grid; grid-template-columns: minmax(110px, .7fr) repeat(2, minmax(145px, 1fr)); }
.order-unconfirmed-button { min-height: 42px; border: 1px solid #ef8c7e; border-radius: 11px; padding: 0 16px; color: #c43f2e; background: #fff5f3; font: inherit; font-weight: 800; cursor: pointer; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.order-unconfirmed-button:hover { border-color: #db5846; background: #ffe9e5; transform: translateY(-1px); }
.order-unconfirmed-button:focus-visible { outline: 3px solid rgba(219,88,70,.18); outline-offset: 1px; }

@media (min-width: 681px) and (max-width: 980px) {
  .admin-detail-drawer { width: calc(100vw - 28px); }
}

@media (min-width: 681px) and (max-width: 1279px) {
  .order-drawer__layout { grid-template-columns: 1fr; }
}

.admin-modal {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: grid;
  padding: 20px;
  place-items: center;
  overflow-y: auto;
  background: rgba(17, 19, 18, .62);
  opacity: 0;
  visibility: hidden;
  transition: .2s ease;
}
.admin-modal.is-open { opacity: 1; visibility: visible; }
.admin-modal form {
  width: min(460px, 100%);
  padding: 26px;
  border-radius: 18px;
  background: #fff;
}
.admin-modal form > header { display: flex; align-items: start; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.admin-modal form > header span { color: var(--portal-accent); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.admin-modal form > header h2 { margin: 5px 0 0; }
.admin-modal form > header p { margin-top: 5px; color: var(--portal-muted); font-size: 9px; }
.admin-modal form > header > button { flex: 0 0 auto; width: 35px; height: 35px; border: 0; border-radius: 9px; background: #eff1ee; cursor: pointer; }
.admin-modal form > span { color: var(--portal-accent); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.admin-modal form h2 { margin: 6px 0 20px; font-size: 23px; }
.admin-modal form label { display: grid; gap: 7px; margin-top: 12px; color: var(--portal-muted); font-size: 9px; font-weight: 700; }
.admin-modal form input,
.admin-modal form select,
.admin-modal form textarea {
  height: 42px;
  border: 1px solid var(--portal-line);
  border-radius: 10px;
  padding: 0 12px;
  outline: 0;
  color: var(--portal-ink);
  background: #f9faf8;
}
.admin-modal form textarea { height: auto; min-height: 72px; padding-block: 11px; resize: vertical; }
.admin-modal form .accent-button { width: 100%; margin-top: 20px; }
.admin-modal form .accent-button:disabled { cursor: wait; filter: grayscale(.35); opacity: .65; }
.modal-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.manual-order-form { width: min(620px, 100%) !important; }
.admin-modal form.product-edit-form { position: relative; width: min(980px, 100%); max-height: calc(100dvh - 36px); overflow-y: auto; padding: 30px; border-radius: 24px; }
.product-edit-close { position: absolute; z-index: 3; top: 15px; right: 15px; width: 44px; height: 44px; border: 0; border-radius: 12px; color: #66706a; background: rgba(255,255,255,.9); box-shadow: 0 5px 18px rgba(18,26,21,.1); font-size: 24px; cursor: pointer; }
.product-edit-layout { display: grid; grid-template-columns: minmax(320px, .82fr) minmax(0, 1.18fr); gap: 32px; }
.product-photo-editor { align-self: start; border: 1px solid #e0e4df; border-radius: 20px; padding: 16px; background: #f5f7f4; }
.product-photo-editor__title { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 3px 2px 12px; }
.product-photo-editor__title > span { color: #151a17; font-size: 15px; font-weight: 850; }
.product-photo-editor__title > small { color: var(--portal-muted); font-size: 11px; }
.product-photo-stage { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 16px; background: #dfe4df; cursor: grab; touch-action: none; }
.product-photo-stage.is-dragging { cursor: grabbing; }
.product-photo-stage > img { width: 100%; height: 100%; object-fit: cover; transform-origin: center; user-select: none; pointer-events: none; transition: transform .12s ease; }
.product-photo-stage.is-placeholder { background: radial-gradient(circle at 50% 42%,#313833,#171c18 74%); }
.product-photo-stage.is-placeholder > img { object-fit: contain; padding: 32%; opacity: .8; }
.product-photo-stage.is-dragging > img { transition: none; }
.product-photo-stage > i { position: absolute; left: 50%; bottom: 12px; width: max-content; max-width: calc(100% - 20px); transform: translateX(-50%); border-radius: 99px; padding: 8px 12px; color: #fff; background: rgba(16,22,18,.68); font-size: 10px; font-style: normal; font-weight: 700; backdrop-filter: blur(6px); pointer-events: none; }
.product-photo-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.product-photo-actions button { min-height: 46px; border: 1px solid #d8ddd8; border-radius: 11px; color: #303833; background: #fff; font-size: 13px; font-weight: 800; cursor: pointer; }
.product-photo-actions button:first-child { border-color: #f1bf58; color: #754900; background: #fff1cf; }
.product-photo-actions button:disabled { cursor: default; opacity: .42; }
.product-photo-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; margin-top: 11px; }
.admin-modal .product-edit-form .product-photo-controls label { gap: 6px; margin: 0; }
.product-photo-controls label > span { display: flex; justify-content: space-between; color: #6f7872; font-size: 11px; }
.product-photo-controls label > span b { color: #222923; }
.admin-modal .product-edit-form .product-photo-controls input { width: 100%; height: 20px; padding: 0; accent-color: #eca818; }
.product-photo-controls > div { display: flex; gap: 5px; }
.product-photo-controls button { width: 38px; height: 38px; border: 1px solid #d8ddd8; border-radius: 10px; color: #3d4540; background: #fff; font-size: 18px; cursor: pointer; }
.product-photo-editor > p { margin-top: 11px; color: #7f8882; font-size: 11px; line-height: 1.5; }
.product-edit-fields { min-width: 0; padding: 5px 4px 0 0; }
.product-form-intro { display: grid; gap: 4px; padding-right: 44px; }
.product-form-intro > span { color: #b4770f; font-size: 11px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.product-form-intro > strong { overflow: hidden; color: #171d19; font-size: 28px; letter-spacing: -.035em; text-overflow: ellipsis; white-space: nowrap; }
.product-form-intro > small { color: #8a928d; font-size: 11px; }
.product-form-status { display: grid; gap: 9px; margin-top: 14px; border-radius: 13px; padding: 11px 12px; background: #fff5de; }
.product-form-status > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product-form-status strong { color: #80550d; font-size: 12px; }
.product-form-status span { color: #a1762e; font-size: 10px; text-align: right; }
.product-form-status > i { height: 4px; overflow: hidden; border-radius: 99px; background: rgba(169,108,4,.12); }
.product-form-status > i > b { display: block; width: 0; height: 100%; border-radius: inherit; background: #e9a51f; transition: width .2s ease; }
.product-form-status.is-ready { background: #eaf7ef; }
.product-form-status.is-ready strong { color: #157251; }
.product-form-status.is-ready span { color: #46836b; }
.product-form-status.is-ready > i > b { background: #26ad7c; }
.product-main-row { grid-template-columns: .78fr 1.22fr; }
.admin-modal .product-edit-form .product-category-field > small { margin-top: -3px; color: #7d8680; font-size: 10px; line-height: 1.35; }
.product-category-move { display: grid; grid-template-columns: 38px minmax(0,1fr); align-items: center; gap: 10px; margin-top: 13px; border: 1px solid #f0c76f; border-radius: 13px; padding: 10px 12px; color: #66450d; background: linear-gradient(135deg,#fff8e8,#fff1c9); }
.product-category-move[hidden] { display: none; }
.product-category-move > i { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: #654000; background: #ffd15f; font-size: 19px; font-style: normal; font-weight: 900; }
.product-category-move > span { min-width: 0; display: grid; gap: 3px; }
.product-category-move small { color: #9a742c; font-size: 10px; font-weight: 700; }
.product-category-move strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.admin-modal .product-edit-form label span > em { color: #9ca39f; font-size: 10px; font-style: normal; font-weight: 600; }
.product-description-field > span { display: flex; justify-content: space-between; }
.product-description-field > span > b { color: #a0a6a2; font-size: 10px; }
.field-warning { min-height: 12px; color: #dc583f; font-size: 10px; }
.product-tag-switches { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; height: 50px; }
.admin-modal .product-edit-form .product-tag-switches > label { display: flex; align-items: center; gap: 5px; height: 50px; margin: 0; border: 1px solid #dfe3df; border-radius: 12px; padding: 0 5px; color: #555e58; background: #f9faf8; cursor: pointer; }
.product-tag-switches input { position: absolute; width: 1px !important; height: 1px !important; opacity: 0; }
.product-tag-switches i { flex: 0 0 15px; width: 15px; height: 15px; border: 1px solid #cbd1cc; border-radius: 5px; background: #fff; }
.product-tag-switches input:checked + i { border-color: #e8a526; background: #ffc94b; box-shadow: inset 0 0 0 4px #fff4d7; }
.product-tag-switches input[value="Острое"]:checked + i { border-color: #df4f3f; background: #ef5a47; box-shadow: inset 0 0 0 4px #ffe1dc; }
.product-tag-switches input[value="Острое"]:checked ~ b { color: #c8392d; }
.product-tag-switches b { min-width: 0; font-size: 10px; white-space: nowrap; }
.product-form-actions { display: grid; grid-template-columns: auto minmax(220px, 1fr); align-items: end; gap: 9px; }
.product-form-actions:has(.accent-button:only-child) { grid-template-columns: 1fr; }
.admin-modal .product-edit-form .product-form-actions .accent-button { margin-top: 20px; }
.product-delete-button { min-height: 56px; margin-top: 20px; border: 1px solid #f0d4ce; border-radius: 13px; padding: 0 18px; color: #b6503e; background: #fff7f5; font-size: 12px; font-weight: 800; cursor: pointer; }
.product-delete-button:disabled { cursor: wait; opacity: .55; }
.product-edit-form .modal-row { gap: 14px; }
.admin-modal .product-edit-form label { gap: 9px; margin-top: 17px; font-size: 13px; }
.admin-modal .product-edit-form input,
.admin-modal .product-edit-form select { height: 54px; border-radius: 12px; padding-inline: 15px; font-size: 14px; }
.admin-modal .product-edit-form textarea { min-height: 128px; border-radius: 12px; padding: 15px; font-size: 14px; line-height: 1.5; }
.admin-modal .product-edit-form .accent-button { min-height: 56px; border-radius: 13px; font-size: 14px; }
@media (max-width: 680px) {
  .admin-modal form.product-edit-form { width: 100%; max-height: 96dvh; padding: 17px 14px calc(22px + env(safe-area-inset-bottom)); border-radius: 25px 25px 0 0; }
  .product-edit-close { position: sticky; top: 0; float: right; margin: -4px -1px -40px 0; }
  .product-edit-layout { grid-template-columns: 1fr; gap: 10px; }
  .product-photo-editor { padding: 11px; }
  .product-photo-stage { width: min(100%, 330px); margin-inline: auto; }
  .product-edit-form .modal-row { grid-template-columns: 1fr; gap: 0; }
  .product-form-intro > strong { font-size: 19px; }
  .product-form-status > div { align-items: flex-start; flex-direction: column; gap: 4px; }
  .product-form-status span { text-align: left; }
  .product-form-actions { grid-template-columns: 1fr; }
  .product-delete-button { order: 2; margin-top: 0; }
}
.manual-product-row { grid-template-columns: minmax(0, 1fr) 110px; }
.manual-order-total { display: grid; gap: 8px; margin-top: 18px; border-radius: 12px; padding: 14px; background: #f5f7f4; }
.manual-order-total > div { display: flex; justify-content: space-between; color: var(--portal-muted); font-size: 13px; }
.manual-order-total > div[hidden] { display: none; }
.manual-order-total > div.is-discount { color: #16875c; font-weight: 800; }
.manual-order-total .total { margin-top: 3px; border-top: 1px solid var(--portal-line); padding-top: 10px; color: var(--portal-ink); font-size: 14px; }
.manual-order-total strong { font-size: 20px; }
.manual-order-error { min-height: 15px; margin-top: 10px !important; color: #c84937; font-size: 9px; font-weight: 700; text-align: center; }

/* Enhanced storefront checkout */
.cart-drawer.is-checkout { width: min(680px, calc(100vw - 12px)); }
.cart-drawer.is-checkout [data-cart-content] { overflow-y: auto; padding-right: 4px; }
.checkout-form {
  display: grid !important;
  gap: 12px !important;
  margin-top: 0 !important;
}
.checkout-back { justify-self: start; margin-bottom: 3px; }
.checkout-success .eyebrow {
  color: var(--portal-accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.checkout-section {
  padding: 18px;
  border: 1px solid #e5e7e3;
  border-radius: 16px;
  background: #fff;
}
.checkout-section__head { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.checkout-section__head > span {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 9px;
  color: var(--portal-accent);
  background: #fff3d9;
  font-size: 9px;
  font-weight: 800;
}
.checkout-section__head h4 { font-size: 14px; }
.checkout-section__head p { margin-top: 3px; color: #929792; font-size: 9px; }
.checkout-choice { display: grid; gap: 8px; }
.checkout-choice--two,
.checkout-choice--time { grid-template-columns: 1fr 1fr; }
.checkout-choice--payment { grid-template-columns: repeat(3, 1fr); }
.checkout-choice label {
  position: relative;
  min-width: 0;
  cursor: pointer;
}
.checkout-choice input { position: absolute; opacity: 0; pointer-events: none; }
.checkout-choice label > span {
  display: grid;
  gap: 4px;
  min-height: 64px;
  align-content: center;
  border: 1px solid #e3e6e2;
  border-radius: 12px;
  padding: 11px 13px 11px 36px;
  color: #777c78;
  background: #fafbf9;
}
.checkout-choice label > span::before {
  position: absolute;
  top: 50%;
  left: 13px;
  width: 13px;
  height: 13px;
  border: 1px solid #bcc1bd;
  border-radius: 50%;
  background: #fff;
  content: "";
  transform: translateY(-50%);
}
.checkout-choice input:checked + span { border-color: #dca43b; color: #242018; background: #fff9e9; box-shadow: inset 0 0 0 1px #efd69f; }
.checkout-choice input:checked + span::before { border: 4px solid var(--portal-accent); }
.checkout-choice b { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.checkout-choice small { color: #929792; font-size: 8px; }
.checkout-field { display: grid !important; gap: 6px !important; margin-top: 12px; color: #747975 !important; font-size: 9px; font-weight: 700; }
.checkout-field input,
.checkout-field textarea {
  width: 100%;
  border: 1px solid #e1e4e0 !important;
  border-radius: 11px !important;
  padding: 11px 12px !important;
  outline: 0;
  color: #1b1d1b;
  background: #fafbf9;
  resize: vertical;
}
.checkout-field input[readonly] { color: #565a56; background: #f0f2ee; cursor: default; }
.checkout-address-status {
  min-height: 16px;
  margin: 6px 2px 0;
  color: #858a86;
  font-size: 9px;
  line-height: 1.45;
}
.checkout-address-status.is-checking { color: #9b6b13; }
.checkout-address-status.is-valid { color: #187d54; }
.checkout-address-status.is-error { color: #c63e2a; }
.checkout-call-note {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #ecd59e;
  border-radius: 13px;
  padding: 14px;
  color: #332b1d;
  background: linear-gradient(135deg, #fff8e7, #fffdf8);
}
.checkout-call-note > i {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: var(--portal-accent);
}
.checkout-call-note svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.checkout-call-note span { display: grid; gap: 4px; }
.checkout-call-note b { font-size: 11px; }
.checkout-call-note small { color: #81755f; font-size: 9px; line-height: 1.45; }
.checkout-fields-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.promo-entry { display: grid; grid-template-columns: 1fr auto; }
.promo-entry input {
  height: 43px;
  min-width: 0;
  border: 1px solid #e1e4e0;
  border-right: 0;
  border-radius: 11px 0 0 11px;
  padding: 0 12px;
  outline: 0;
  background: #fafbf9;
}
.promo-entry button {
  border: 0;
  border-radius: 0 11px 11px 0;
  padding: 0 14px;
  color: #fff;
  background: #222523;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}
.checkout-order-total {
  display: grid;
  gap: 10px;
  margin-top: 2px;
  padding: 19px;
  border-radius: 16px;
  color: #fff;
  background: radial-gradient(circle at 85% 10%, rgba(242,162,11,.14), transparent 45%), #15130f;
}
.checkout-order-total > div { display: flex; justify-content: space-between; color: #aeb3af; font-size: 10px; }
.checkout-order-total > div b { color: #fff; }
.checkout-order-total .is-discount,
.checkout-order-total .is-discount b { color: #64d29d; }
.checkout-order-total__grand { margin-top: 4px; padding-top: 14px; border-top: 1px solid #3b3e3b; align-items: center; color: #fff !important; }
.checkout-order-total__grand strong { font-size: 21px; }
.checkout-order-total .primary-button { margin-top: 4px; }
.checkout-order-total > small { color: #747a76; font-size: 7px; text-align: center; }
.checkout-success {
  display: grid;
  min-height: calc(100vh - 120px);
  place-content: center;
  justify-items: center;
  padding: 24px;
  text-align: center;
}
.checkout-success__mark {
  display: grid;
  width: 70px;
  height: 70px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #28ab75;
  box-shadow: 0 0 0 12px #e4f6ee, 0 18px 35px rgba(40,171,117,.2);
  font-size: 29px;
}
.checkout-success h3 { margin-top: 7px; font-size: 31px; letter-spacing: -.05em; }
.checkout-success > p { max-width: 390px; margin-top: 9px; color: #787d79; font-size: 10px; line-height: 1.55; }
.checkout-tracker { display: flex; align-items: start; width: min(390px, 100%); margin: 30px 0; }
.checkout-tracker span { display: grid; gap: 6px; width: 72px; justify-items: center; color: #969b97; font-size: 8px; }
.checkout-tracker span i { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 50%; background: #e8ebe7; font-style: normal; }
.checkout-tracker span.is-done { color: #21835c; }
.checkout-tracker span.is-done i { color: #fff; background: #28ab75; }
.checkout-tracker > b { width: calc(50% - 72px); height: 2px; margin-top: 13px; background: #e1e4e0; }
.checkout-success__total {
  display: flex;
  justify-content: space-between;
  width: min(390px, 100%);
  margin-bottom: 14px;
  padding: 15px;
  border-radius: 12px;
  background: #f2f4f1;
  font-size: 10px;
}
.checkout-success__total strong { font-size: 13px; }
.checkout-success > .primary-button { width: min(390px, 100%); }
.checkout-success__more { margin-top: 13px; }

.logistics-page { display: grid; gap: 15px; }
.logistics-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  border-radius: 18px;
  padding: 24px;
  color: #fff;
  background: radial-gradient(circle at 85% 20%, rgba(242,162,11,.22), transparent 35%), linear-gradient(135deg, #181914, #292419);
}
.logistics-hero > div:first-child { max-width: 620px; }
.logistics-hero > div:first-child > span { color: var(--portal-accent); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.logistics-hero h2 { margin: 7px 0 6px; font-size: 28px; letter-spacing: -.04em; }
.logistics-hero p { color: #b8bbb4; font-size: 10px; line-height: 1.55; }
.logistics-hero > div:last-child { display: flex; gap: 8px; flex: 0 0 auto; }
.logistics-hero .ghost-button { border-color: #57564d; color: #fff; background: rgba(255,255,255,.05); }
.logistics-hero button:disabled { cursor: default; opacity: .45; }
.logistics-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.logistics-summary article { display: grid; gap: 5px; border: 1px solid var(--portal-line); border-radius: 14px; padding: 16px; background: #fff; }
.logistics-summary article.needs-action { border-color: #efc365; background: #fff9e9; }
.logistics-summary span { color: var(--portal-muted); font-size: 9px; }
.logistics-summary strong { font-size: 24px; letter-spacing: -.04em; }
.logistics-summary small { color: #9a9e99; font-size: 8px; }
.dispatch-queue,
.dispatch-map-panel { overflow: hidden; }
.dispatch-map-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border-bottom: 1px solid var(--portal-line);
}
.dispatch-map-toolbar > div:first-child { max-width: 620px; }
.dispatch-map-toolbar > div:first-child > span { color: var(--portal-accent); font-size: 11px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.dispatch-map-toolbar h2 { margin: 7px 0 6px; font-size: 28px; letter-spacing: -.035em; }
.dispatch-map-toolbar p { color: var(--portal-muted); font-size: 13px; line-height: 1.45; }
.dispatch-filters { display: flex; gap: 8px; overflow-x: auto; border-bottom: 1px solid var(--portal-line); padding: 10px; background: #fff; scrollbar-width: none; }
.dispatch-filters::-webkit-scrollbar { display: none; }
.dispatch-filters button { position: relative; display: flex; flex: 1 0 124px; align-items: center; justify-content: space-between; gap: 8px; min-height: 52px; border: 1px solid #e0e4e0; border-radius: 12px; padding: 10px 11px; color: #59615b; background: #f8faf8; font: inherit; text-align: left; cursor: pointer; transition: border-color .16s ease, background-color .16s ease, color .16s ease; }
.dispatch-filters button:hover { border-color: #d5b25f; background: #fffaf0; }
.dispatch-filters button:focus-visible { z-index: 1; outline: 2px solid #d79208; outline-offset: 2px; }
.dispatch-filters button.is-active { color: #171a18; border-color: #e5ad2d; background: #fff4d7; box-shadow: inset 0 0 0 1px rgba(229,173,45,.16); }
.dispatch-filters button span { display: flex; min-width: 0; align-items: center; gap: 7px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.dispatch-filters button span::before { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: #8d9690; content: ""; }
.dispatch-filters button b { display: grid; flex: 0 0 auto; min-width: 28px; height: 28px; place-items: center; border-radius: 9px; color: #323734; background: #fff; font-size: 14px; line-height: 1; box-shadow: inset 0 0 0 1px rgba(48,55,50,.07); }
.dispatch-filters button[data-tone="new"] span::before { background: #ef654f; }
.dispatch-filters button[data-tone="preparing"] span::before { background: #eea31d; }
.dispatch-filters button[data-tone="ready"] span::before { background: #2ca876; }
.dispatch-filters button[data-tone="courier"] span::before { background: #3d8dcc; }
.dispatch-order-grid { display: grid; grid-template-columns: 1fr; gap: 12px; padding: 14px; background: #f6f7f4; }
.dispatch-order-card { display: grid; min-width: 0; overflow: hidden; border: 1px solid var(--portal-line); border-radius: 16px; background: #fff; box-shadow: 0 6px 18px rgba(20,24,21,.035); }
.dispatch-order-card.is-priority { border-color: #efc46a; box-shadow: 0 0 0 3px rgba(240,167,25,.07); }
.dispatch-order-card.is-map-active { border-color: #e9a91d; box-shadow: 0 0 0 3px rgba(240,167,25,.17), 0 12px 24px rgba(69,49,9,.09); }
.dispatch-order-card.is-overdue { border-color: #e7a39b; background: #fffdfc; }
.dispatch-order-card__head { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(150px, auto); align-items: center; gap: 18px; border-bottom: 1px solid var(--portal-line); padding: 14px 16px; background: #fbfcfa; }
.dispatch-order-card__identity { display: flex; min-width: 0; align-items: center; gap: 10px; }
.dispatch-order-card__identity > strong { font-size: 17px; letter-spacing: -.02em; }
.dispatch-order-card .status-pill { min-height: 31px; padding: 0 10px; font-size: 11px; }
.dispatch-order-card__amount { display: grid; gap: 2px; text-align: right; }
.dispatch-order-card__amount > span,
.dispatch-order-card__deadline > span,
.dispatch-order-card__customer small,
.dispatch-order-card address > span,
.dispatch-order-card__items > span { color: #8b938d; font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.dispatch-order-card__amount > strong { font-size: 18px; }
.dispatch-order-card__deadline { display: grid; grid-template-columns: auto auto; align-items: end; gap: 1px 8px; border-left: 1px solid var(--portal-line); padding-left: 18px; text-align: right; }
.dispatch-order-card__deadline > span { grid-column: 1 / -1; }
.dispatch-order-card__deadline time { font-size: 24px; font-weight: 900; letter-spacing: -.045em; line-height: 1; }
.dispatch-order-card__deadline small { align-self: center; max-width: 160px; color: #8e958f; font-size: 10px; font-weight: 700; line-height: 1.3; }
.dispatch-order-card.is-overdue .dispatch-order-card__deadline small { color: #c95045; }
.dispatch-order-card__body { display: grid; grid-template-columns: minmax(190px, .8fr) minmax(0, 1.2fr); gap: 14px 24px; padding: 16px; }
.dispatch-order-card__customer { display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: center; gap: 12px; padding: 0; }
.dispatch-order-card__customer > i { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 13px; color: #684407; background: #ffe4ad; font-size: 12px; font-style: normal; font-weight: 900; }
.dispatch-order-card__customer > span { display: grid; min-width: 0; gap: 3px; }
.dispatch-order-card__customer strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.dispatch-order-card__customer a { color: #39779f; font-size: 12px; font-weight: 700; text-decoration: none; }
.dispatch-order-card address { display: grid; align-content: center; gap: 5px; min-height: 54px; margin: 0; border: 0; border-left: 1px solid var(--portal-line); padding: 0 0 0 24px; font-style: normal; }
.dispatch-order-card address > strong { font-size: 13px; line-height: 1.45; }
.dispatch-order-card__items { display: grid; grid-column: 1 / -1; grid-template-columns: 115px minmax(0, 1fr) auto; align-items: baseline; gap: 8px 14px; border-radius: 11px; padding: 11px 12px; background: #f4f6f3; }
.dispatch-order-card__items > strong { min-width: 0; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.dispatch-order-card__items > small { color: #747c76; font-size: 10px; white-space: nowrap; }
.dispatch-order-card > footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--portal-line); padding: 12px 16px 14px; }
.dispatch-order-card__progress { display: flex; min-width: 0; align-items: center; gap: 9px; }
.dispatch-order-card__progress > i { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: var(--portal-green); }
.dispatch-order-card__progress > span { display: grid; gap: 2px; }
.dispatch-order-card__progress strong { font-size: 12px; }
.dispatch-order-card__progress small { color: var(--portal-muted); font-size: 10px; }
.dispatch-order-card > footer > div { display: flex; width: min(360px, 55%); gap: 8px; }
.dispatch-order-card > footer button { flex: 1; min-height: 42px; border: 1px solid var(--portal-line); border-radius: 10px; color: #555c57; background: #f8faf8; font-size: 12px; font-weight: 800; cursor: pointer; }
.dispatch-order-card > footer button:last-child { color: #171006; border-color: #f0b94d; background: #ffdb85; }
.dispatch-empty { grid-column: 1 / -1; display: grid; min-height: 150px; place-content: center; gap: 6px; color: var(--portal-muted); text-align: center; }
.dispatch-empty b { color: var(--portal-ink); font-size: 11px; }
.dispatch-empty span { font-size: 8px; }
.dispatch-map-toolbar { align-items: center; }
.dispatch-map-legend { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 11px; }
.dispatch-map-legend > span { display: flex; align-items: center; gap: 6px; color: var(--portal-muted); font-size: 11px; }
.dispatch-map-legend > span > b { color: #343a36; font-size: 12px; }
.dispatch-map-legend i { width: 9px; height: 9px; border-radius: 50%; background: #282a24; }
.dispatch-map-legend i.order { background: #ed9f18; }
.dispatch-map-legend i.new { background: #ef654f; }
.dispatch-map-legend i.accepted { background: #eea31d; }
.dispatch-map-legend i.completed { background: #2ca876; }
.dispatch-map-legend button { min-height: 40px; border: 1px solid var(--portal-line); border-radius: 10px; padding: 0 14px; color: #555c57; background: #f8faf8; font-size: 11px; font-weight: 800; cursor: pointer; }
.dispatch-map-shell { position: relative; min-height: 470px; overflow: hidden; border-top: 1px solid var(--portal-line); background: #eef1ec; }
.dispatch-map,
.dispatch-map-fallback { position: absolute; inset: 0; }
.dispatch-map { z-index: 2; }
.dispatch-map-fallback { display: grid; place-content: center; gap: 5px; color: #747b75; text-align: center; }
.dispatch-map-fallback span { font-size: 12px; font-weight: 800; }
.dispatch-map-fallback small { font-size: 8px; }
.dispatch-map-shell.is-offline .dispatch-map { display: none; }
.dispatch-map .leaflet-control-attribution { padding: 3px 6px; color: #525751; background: rgba(255,255,255,.9); font-size: 8px; }
.dispatch-map .leaflet-control-attribution a { color: #76510c; }
.dispatch-map .leaflet-control-zoom { overflow: hidden; border: 0; border-radius: 10px; box-shadow: 0 5px 16px rgba(24,25,22,.2); }
.dispatch-map .leaflet-control-zoom a { display: grid; width: 34px; height: 34px; place-items: center; border: 0; color: #242722; font-size: 17px; line-height: 1; }
.dispatch-map-pin-wrap { border: 0 !important; background: transparent !important; }
.dispatch-map-pin { display: grid; width: 38px; height: 38px; place-items: center; border: 3px solid #fff; border-radius: 50%; color: #fff; background: #e79a13; box-shadow: 0 7px 18px rgba(24,31,26,.25); font-size: 9px; font-weight: 900; }
.dispatch-map-pin--restaurant { width: 44px; height: 44px; background: #23251f; }
.dispatch-map-pin--order.is-new { background: #e94f3d; }
.dispatch-map-pin--order.is-ready { background: #24946a; }
.dispatch-map-pin--order.is-courier { background: #336fa7; }
.dispatch-map-pin-wrap .dispatch-map-pin { line-height: 1; }
.dispatch-popup { display: grid; min-width: 165px; gap: 4px; }
.dispatch-popup span { color: var(--portal-accent); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.dispatch-popup strong { font-size: 11px; }
.dispatch-popup small { color: var(--portal-muted); font-size: 8px; line-height: 1.35; }
.dispatch-popup b { font-size: 8px; }
.dispatch-popup--order { width: 270px; gap: 0; color: #202520; }
.dispatch-popup--order > header { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 7px; padding-bottom: 10px; border-bottom: 1px solid #e8ebe8; }
.dispatch-popup--order > header .dispatch-popup__status { border-radius: 6px; padding: 4px 6px; color: #9b5e00; background: #fff0cf; font-size: 7px; letter-spacing: .02em; }
.dispatch-popup--order > header > strong { font-size: 11px; }
.dispatch-popup--order > header time { color: #747c76; font-size: 8px; font-weight: 800; }
.dispatch-popup--order.is-new > header { border: 0; border-radius: 9px; padding: 9px 10px; color: #fff; background: #e94f3d; }
.dispatch-popup--order.is-new > header .dispatch-popup__status { color: #fff; background: rgba(114,15,7,.24); }
.dispatch-popup--order.is-new > header > strong,
.dispatch-popup--order.is-new > header time { color: #fff; }
.dispatch-popup__customer { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; padding: 11px 0 9px; }
.dispatch-popup__customer > strong { font-size: 11px; }
.dispatch-popup__customer > a { color: #727a75; font-size: 8px; text-decoration: none; }
.dispatch-popup__address { display: grid; gap: 4px; border-radius: 8px; padding: 8px 9px; background: #f5f7f5; }
.dispatch-popup__address > span,
.dispatch-popup__items > header > span { color: #909792; font-size: 7px; letter-spacing: .04em; }
.dispatch-popup__address > strong { font-size: 8px; line-height: 1.4; }
.dispatch-popup__items { display: grid; gap: 6px; padding: 11px 0; border-bottom: 1px solid #e8ebe8; }
.dispatch-popup__items > header,
.dispatch-popup__items > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.dispatch-popup__items > div > span { min-width: 0; overflow: hidden; color: #303632; font-size: 8px; font-weight: 600; text-overflow: ellipsis; text-transform: none; white-space: nowrap; }
.dispatch-popup__items > div > b { flex: 0 0 auto; font-size: 8px; }
.dispatch-popup--order blockquote { margin: 9px 0 0; border-left: 2px solid #f0a61e; padding: 2px 0 2px 8px; color: #747c76; font-size: 8px; line-height: 1.4; }
.dispatch-popup__footer { display: flex; align-items: end; justify-content: space-between; gap: 10px; padding-top: 10px; }
.dispatch-popup__footer > span { display: grid; gap: 3px; color: inherit; text-transform: none; }
.dispatch-popup__footer > span small { font-size: 7px; }
.dispatch-popup__footer > span strong { font-size: 9px; }
.dispatch-popup__footer > b { font-size: 14px; }
.dispatch-popup--order > button { width: 100%; min-height: 34px; margin-top: 10px; border: 0; border-radius: 9px; color: #2a200e; background: #ffd477; font-size: 8px; font-weight: 900; cursor: pointer; }
.dispatch-popup--order > button:hover { background: #ffc957; }
.dispatch-popup--order { width: min(400px, calc(100vw - 70px)); }
.dispatch-popup--order > header { grid-template-columns: minmax(0, 1fr) auto; gap: 16px; border: 0; border-radius: 11px; padding: 11px 12px; background: #f1f3f1; }
.dispatch-popup--order > header > div { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dispatch-popup--order > header > div > strong { font-size: 15px; }
.dispatch-popup--order > header .dispatch-popup__status { padding: 6px 8px; font-size: 10px; }
.dispatch-popup__deadline { display: grid; gap: 3px; color: #4c5550 !important; text-align: right; text-transform: none !important; }
.dispatch-popup__deadline { min-width: 130px; }
.dispatch-popup__deadline time { font-size: 22px; font-weight: 900; letter-spacing: -.035em; line-height: 1; }
.dispatch-popup__deadline small { color: #d14c39; font-size: 10px; font-weight: 800; }
.dispatch-popup--order.is-new > header { padding: 11px 12px; background: #e94f3d; }
.dispatch-popup--order.is-new .dispatch-popup__deadline,
.dispatch-popup--order.is-new .dispatch-popup__deadline small { color: #fff !important; }
.dispatch-popup--order.is-new .dispatch-popup__deadline small { opacity: .8; }
.dispatch-popup__customer { grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 12px 2px 10px; }
.dispatch-popup__customer > i { display: grid; width: 44px; height: 44px; place-content: center; border-radius: 12px; color: #8c5700; background: #ffe1a0; font-size: 12px; font-style: normal; font-weight: 900; }
.dispatch-popup__customer > span { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3px 8px; min-width: 0; color: inherit; text-transform: none; }
.dispatch-popup__customer > span > small { grid-column: 1 / -1; color: #929a95; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.dispatch-popup__customer > span > strong { min-width: 0; overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.dispatch-popup__customer > span > a { color: #277fab; font-size: 12px; font-weight: 800; text-decoration: none; }
.dispatch-popup__address { gap: 5px; border-radius: 10px; padding: 12px; }
.dispatch-popup__address > span { font-size: 9px; }
.dispatch-popup__address > strong { font-size: 12px; line-height: 1.45; }
.dispatch-popup__meta { display: grid; grid-template-columns: 1.35fr .8fr .8fr; gap: 7px; padding: 8px 0 3px; }
.dispatch-popup__meta > span { display: grid; min-width: 0; gap: 3px; border-radius: 8px; padding: 8px; color: inherit; background: #f7f8f7; text-transform: none; }
.dispatch-popup__meta small { color: #969d98; font-size: 9px; font-weight: 700; }
.dispatch-popup__meta strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.dispatch-popup__items { gap: 7px; padding: 10px 1px; }
.dispatch-popup__items > header > span { font-size: 10px; }
.dispatch-popup__items > header > b { font-size: 11px; }
.dispatch-popup__items > div > span,
.dispatch-popup__items > div > b { font-size: 12px; }
.dispatch-popup--order blockquote { margin-top: 8px; border-radius: 0 8px 8px 0; padding: 9px 11px; background: #fff9eb; font-size: 11px; }
.dispatch-popup__total { display: grid; gap: 5px; padding-top: 9px; }
.dispatch-popup__total > span,
.dispatch-popup__total > strong { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.dispatch-popup__total > span small { color: #8d9691; font-size: 10px; }
.dispatch-popup__total > span b { font-size: 12px; }
.dispatch-popup__total > strong { border-top: 1px solid #e6e9e6; padding-top: 8px; }
.dispatch-popup__total > strong > span { color: #202520; font-size: 12px; text-transform: none; }
.dispatch-popup__total > strong > b { font-size: 20px; }
.dispatch-popup__next { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-top: 10px; border-radius: 11px; padding: 9px 10px; background: #f2f4f2; }
.dispatch-popup__next > span { display: grid; min-width: 0; gap: 3px; color: inherit; text-transform: none; }
.dispatch-popup__next small { color: #8c9590; font-size: 9px; }
.dispatch-popup__next strong { font-size: 11px; }
.dispatch-popup__next > button { min-height: 40px; border: 0; border-radius: 9px; padding: 0 14px; color: #2a200e; background: #ffd477; font-size: 11px; font-weight: 900; cursor: pointer; }
.dispatch-popup__next > button:hover { background: #ffc957; }
.dispatch-map-note { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; color: var(--portal-muted); background: #fbfcfa; font-size: 11px; line-height: 1.45; }
.dispatch-map-note b { color: #5d645f; }
.logistics-routes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; align-items: start; }
.route-card { overflow: hidden; }
.route-card > header { min-height: 70px; padding: 14px 16px; }
.route-card > header > div { display: flex; align-items: center; gap: 10px; }
.route-card > header > div > i { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 11px; color: #5b3c08; background: #ffe0a1; font-style: normal; font-weight: 800; }
.route-card > header h3 { font-size: 13px; }
.route-card > header small { display: block; margin-top: 3px; color: var(--portal-muted); font-size: 8px; }
.route-card > header > b { border-radius: 99px; padding: 6px 8px; color: #706e64; background: #f1f2ee; font-size: 8px; }
.route-start { display: grid; gap: 3px; border-bottom: 1px solid var(--portal-line); padding: 11px 16px; background: #fbfcfa; }
.route-start span { color: var(--portal-accent); font-size: 7px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.route-start strong { color: #555b56; font-size: 9px; }
.route-stops { display: grid; }
.route-stops > button { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 9px; align-items: start; width: 100%; border: 0; border-bottom: 1px solid var(--portal-line); padding: 13px 15px; text-align: left; background: #fff; cursor: pointer; }
.route-stops > button:hover { background: #fffaf0; }
.route-stops > button > i { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 50%; color: #fff; background: #272921; font-size: 8px; font-style: normal; font-weight: 800; }
.route-stops > button > span { display: grid; min-width: 0; gap: 4px; }
.route-stops > button strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.route-stops > button small { overflow: hidden; color: #777d78; font-size: 8px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.route-stops > button em { color: #b06a10; font-size: 7px; font-style: normal; font-weight: 700; }
.route-stops > button > b { color: #555a55; font-size: 8px; white-space: nowrap; }
.route-empty { padding: 28px 15px; color: var(--portal-muted); font-size: 9px; text-align: center; }
.logistics-footnote { color: #8b908c; font-size: 8px; line-height: 1.5; text-align: center; }

.admin-subnav {
  position: sticky;
  z-index: 4;
  top: 12px;
  display: flex;
  width: fit-content;
  max-width: 100%;
  gap: 5px;
  margin-bottom: 16px;
  border: 1px solid var(--portal-line);
  border-radius: 14px;
  padding: 5px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 8px 24px rgba(23,29,25,.06);
  backdrop-filter: blur(16px);
}
.admin-subnav button { min-height: 36px; border: 0; border-radius: 9px; padding: 0 14px; color: var(--portal-muted); background: transparent; font-size: 10px; font-weight: 800; cursor: pointer; }
.admin-subnav button.is-active { color: #171006; background: linear-gradient(135deg, #ffd866, #f0a719); box-shadow: 0 6px 15px rgba(217,139,0,.14); }
.admin-subnav button b { display: inline-grid; min-width: 18px; height: 18px; margin-left: 4px; place-items: center; border-radius: 999px; padding-inline: 4px; background: rgba(23,16,6,.1); font-size: 8px; }
.marketing-summary { margin-top: 14px; }

.team-console { display: grid; gap: 18px; }
.team-command {
  position: relative;
  display: flex;
  min-height: 118px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  padding: 24px 26px;
  background:
    linear-gradient(100deg, rgba(255,255,255,.98) 0 64%, rgba(255,248,230,.96)),
    #fff;
}
.team-command::after {
  position: absolute;
  top: -55px;
  right: 17%;
  width: 140px;
  height: 220px;
  border: 1px solid rgba(238,158,19,.16);
  border-radius: 50%;
  content: "";
  transform: rotate(22deg);
  pointer-events: none;
}
.team-command__copy { position: relative; z-index: 1; max-width: 650px; }
.team-command__copy > span,
.team-permissions > header > div > span { color: #a86509; font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.team-command__copy h2 { margin: 6px 0 5px; font-size: clamp(22px, 2.2vw, 29px); letter-spacing: -.04em; }
.team-command__copy p { color: var(--portal-muted); font-size: 10px; line-height: 1.55; }
.team-command__actions { position: relative; z-index: 1; display: flex; flex: 0 0 auto; gap: 8px; }

.team-metrics { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.team-metrics article {
  display: grid;
  min-height: 91px;
  grid-template-columns: 40px minmax(0,1fr);
  align-items: center;
  gap: 12px;
  border: 1px solid var(--portal-line);
  border-radius: 17px;
  padding: 15px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(27,36,31,.035);
}
.team-metric-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 12px; font-size: 13px; font-style: normal; font-weight: 900; }
.team-metric-icon--people { color: #8b5a09; background: #fff0cf; }
.team-metric-icon--online { color: #087551; background: #e2f6ed; }
.team-metric-icon--roles { color: #315ca5; background: #e9f0ff; }
.team-metric-icon--safe { color: #41664e; background: #eaf3ed; }
.team-metrics article > span { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 2px 7px; }
.team-metrics small { grid-column: 1 / -1; color: var(--portal-muted); font-size: 8px; font-weight: 700; }
.team-metrics strong { font-size: 23px; line-height: 1; letter-spacing: -.04em; }
.team-metrics em { align-self: end; padding-bottom: 2px; color: #9aa09c; font-size: 7px; font-style: normal; }

.team-workspace { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(320px,.7fr); align-items: start; gap: 18px; }
.team-directory { min-width: 0; overflow: hidden; }
.team-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.team-section-heading h2 { font-size: 20px; letter-spacing: -.025em; }
.team-section-heading p { margin-top: 5px; color: var(--portal-muted); font-size: 11px; line-height: 1.45; }
.team-directory > .team-section-heading { padding: 22px 21px 16px; }
.team-search { display: flex; width: min(280px, 48%); height: 44px; align-items: center; gap: 8px; border: 1px solid var(--portal-line); border-radius: 12px; padding: 0 13px; background: #f7f8f6; }
.team-search > span { color: #8d938f; font-size: 17px; }
.team-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 12px; }
.team-filters { display: flex; gap: 7px; padding: 0 21px 16px; border-bottom: 1px solid var(--portal-line); }
.team-filters button { min-height: 38px; border: 0; border-radius: 10px; padding: 0 13px; color: #68706b; background: #f3f5f2; font-size: 11px; font-weight: 800; cursor: pointer; }
.team-filters button b { display: inline-grid; min-width: 19px; height: 19px; margin-left: 5px; place-items: center; border-radius: 99px; background: rgba(23,27,25,.07); font-size: 9px; }
.team-filters button.is-active { color: #1c160c; background: #ffdd8a; }
.team-member-head,
.team-member-row { display: grid; grid-template-columns: 46px minmax(140px,1.4fr) minmax(115px,.8fr) 100px minmax(115px,.8fr) 28px; align-items: center; gap: 12px; }
.team-member-head { grid-template-columns: minmax(198px,1.4fr) minmax(115px,.8fr) 100px minmax(115px,.8fr) 28px; padding: 12px 21px 10px; color: #7f8983; background: #fbfcfa; font-size: 10px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.team-member-row { width: 100%; min-height: 84px; border: 0; border-top: 1px solid #edf0ed; padding: 13px 21px; text-align: left; background: #fff; cursor: pointer; transition: background .16s ease, transform .16s ease; }
.team-member-list .team-member-row:first-child { border-top: 0; }
.team-member-row:hover { background: #fffaf0; }
.team-avatar { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 13px; font-size: 11px; font-style: normal; font-weight: 900; }
.team-avatar--gold,
.team-role-summary__icon--gold { color: #77500d; background: #ffe5a9; }
.team-avatar--blue,
.team-role-summary__icon--blue { color: #2b5797; background: #e5efff; }
.team-avatar--green,
.team-role-summary__icon--green { color: #08704f; background: #dff4ea; }
.team-member-row__identity,
.team-member-row__shift { display: grid; min-width: 0; gap: 4px; }
.team-member-row__identity strong,
.team-member-row__shift strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.team-member-row__identity small,
.team-member-row__shift small { overflow: hidden; color: var(--portal-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.team-role-badge { width: fit-content; max-width: 100%; overflow: hidden; border-radius: 999px; padding: 7px 10px; font-size: 10px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.team-role-badge--gold { color: #8a5b08; background: #fff1d1; }
.team-role-badge--blue { color: #315b96; background: #eaf1ff; }
.team-role-badge--green { color: #137353; background: #e6f6ee; }
.team-presence { display: inline-flex; width: fit-content; align-items: center; gap: 7px; color: #626a65; font-size: 10px; font-weight: 800; white-space: nowrap; }
.team-presence > i { width: 7px; height: 7px; border-radius: 50%; background: #9ea49f; box-shadow: 0 0 0 3px rgba(158,164,159,.12); }
.team-presence--online { color: #117a57; }
.team-presence--online > i { background: #19ac78; box-shadow: 0 0 0 3px rgba(25,172,120,.13); }
.team-presence--invited { color: #a86b0a; }
.team-presence--invited > i { background: #eda21c; box-shadow: 0 0 0 3px rgba(237,162,28,.13); }
.team-member-row__more { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 8px; color: #747d77; font-size: 12px; letter-spacing: .06em; }
.team-member-row:hover .team-member-row__more { color: #2a2d2b; background: #f4ecd9; }
.team-empty { display: grid; min-height: 210px; place-items: center; align-content: center; gap: 6px; padding: 25px; color: var(--portal-muted); text-align: center; }
.team-empty > i { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; color: #9b6b1b; background: #fff2d4; font-size: 20px; font-style: normal; }
.team-empty strong { color: var(--portal-ink); font-size: 12px; }
.team-empty span { font-size: 8px; }
.team-empty button { margin-top: 4px; border: 0; color: #96620f; background: transparent; font-size: 8px; font-weight: 800; cursor: pointer; }

.team-side { display: grid; gap: 18px; }
.team-roles-panel,
.team-activity { overflow: hidden; padding: 21px; }
.team-roles-panel > header > button { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--portal-line); border-radius: 10px; background: #fff; font-size: 14px; cursor: pointer; }
.team-roles-panel > div { display: grid; margin-top: 14px; }
.team-role-summary { display: grid; grid-template-columns: 42px minmax(0,1fr) auto auto; align-items: center; gap: 11px; width: 100%; min-height: 67px; border: 0; border-top: 1px solid #edf0ed; padding: 13px 0; text-align: left; background: transparent; cursor: pointer; }
.team-role-summary:first-child { border-top: 0; }
.team-role-summary__icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 11px; font-size: 12px; font-style: normal; font-weight: 900; }
.team-role-summary > span { display: grid; min-width: 0; gap: 3px; }
.team-role-summary strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.team-role-summary small { overflow: hidden; color: var(--portal-muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.team-role-summary > b { display: grid; min-width: 26px; height: 26px; place-items: center; border-radius: 8px; color: #606763; background: #f1f3f0; font-size: 10px; }
.team-role-summary > em { color: #7f8882; font-size: 19px; font-style: normal; }
.team-activity ol { display: grid; gap: 16px; margin: 18px 0 0; padding: 0; list-style: none; }
.team-activity li { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 11px; }
.team-activity li:not(:last-child)::after { position: absolute; top: 35px; bottom: -15px; left: 16px; width: 1px; background: #e8ebe8; content: ""; }
.team-activity li > i { position: relative; z-index: 1; display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; font-size: 11px; font-style: normal; font-weight: 900; }
.team-activity li > i.is-login { color: #2f5e9f; background: #e9f1ff; }
.team-activity li > i.is-change { color: #98630d; background: #fff0cf; }
.team-activity li > i.is-safe { color: #167052; background: #e4f5ed; }
.team-activity li > span { display: grid; gap: 4px; padding-top: 1px; }
.team-activity li strong { font-size: 11px; line-height: 1.4; }
.team-activity li small { color: var(--portal-muted); font-size: 9px; line-height: 1.45; }

.team-permissions { overflow: hidden; }
.team-permissions > header { align-items: end; padding: 22px 23px 18px; border-bottom: 1px solid var(--portal-line); }
.team-permissions > header h2 { margin-top: 5px; }
.team-permissions > header p { max-width: 620px; }
.team-permissions__scroll { overflow-x: auto; }
.team-permissions table { width: 100%; min-width: 1000px; border-collapse: collapse; }
.team-permissions th,
.team-permissions td { height: 76px; border-bottom: 1px solid #edf0ed; padding: 12px 14px; text-align: center; }
.team-permissions thead th { height: 44px; color: #78827c; background: #fafbfa; font-size: 10px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.team-permissions th:first-child { position: sticky; left: 0; z-index: 1; width: 235px; text-align: left; background: #fff; }
.team-permissions thead th:first-child { background: #fafbfa; }
.team-permissions tbody th { display: grid; grid-template-columns: 40px minmax(0,1fr); align-items: center; gap: 11px; }
.team-permissions tbody th > span { display: grid; gap: 3px; }
.team-permissions tbody th strong { font-size: 12px; }
.team-permissions tbody th small { color: var(--portal-muted); font-size: 9px; font-weight: 400; }
.team-permissions td > span { display: inline-grid; justify-items: center; gap: 4px; font-size: 12px; font-weight: 900; }
.team-permissions td small { color: inherit; font-size: 8px; font-weight: 750; }
.team-permissions .is-allowed { color: #14805a; }
.team-permissions .is-limited { color: #bd7a0d; }
.team-permissions .is-denied { color: #a9aeaa; }
.team-permissions tbody tr:last-child th,
.team-permissions tbody tr:last-child td { border-bottom: 0; }

.team-invite-note { display: grid; grid-template-columns: 24px 1fr; align-items: start; gap: 8px; margin-top: 15px !important; border-radius: 11px; padding: 11px; color: #68706b; background: #f4f7f4; font-size: 8px; line-height: 1.5; }
.team-invite-note > i { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 8px; color: #7a510c; background: #ffe6ac; font-style: normal; font-weight: 900; }
.team-role-modal__summary,
.team-member-modal__person { display: grid; grid-template-columns: 46px minmax(0,1fr) auto; align-items: center; gap: 11px; border: 1px solid var(--portal-line); border-radius: 14px; padding: 13px; background: #fbfcfa; }
.team-role-modal__summary > i,
.team-member-modal__person > i { width: 44px; height: 44px; }
.team-role-modal__summary > span,
.team-member-modal__person > span { display: grid; gap: 4px; }
.team-role-modal__summary small,
.team-member-modal__person small { color: var(--portal-muted); font-size: 8px; }
.team-role-modal__summary strong,
.team-member-modal__person strong { font-size: 13px; }
.team-role-modal__summary > b { border-radius: 99px; padding: 6px 8px; color: #8b5c0b; background: #fff0cf; font-size: 7px; }
.team-role-modal__permissions { margin-top: 17px; }
.team-role-modal__permissions > span { color: var(--portal-muted); font-size: 8px; font-weight: 800; }
.team-role-modal__permissions > div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.team-role-modal__permissions i { border-radius: 99px; padding: 7px 9px; color: #157455; background: #e8f6ef; font-size: 7px; font-style: normal; }
.team-role-modal__permissions b { font-weight: 800; }
.admin-modal form.team-role-modal > .ghost-button,
.admin-modal form.team-member-modal > .ghost-button { width: 100%; margin-top: 16px; }
.team-member-modal__facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin: 12px 0 0; }
.team-member-modal__facts div { display: grid; gap: 4px; border-radius: 11px; padding: 10px; background: #f5f7f4; }
.team-member-modal__facts dt { color: var(--portal-muted); font-size: 7px; }
.team-member-modal__facts dd { margin: 0; font-size: 8px; font-weight: 800; }

.data-toolbar > div:not(.filter-pills) { display: grid; gap: 4px; }
.data-toolbar > div:not(.filter-pills) strong { font-size: 12px; }
.data-toolbar > div:not(.filter-pills) small { color: var(--portal-muted); font-size: 8px; }

@media (max-width: 1180px) {
  .admin-shell { grid-template-columns: 218px minmax(0, 1fr); }
  .admin-sidebar > nav button { padding-inline: 8px; }
  .admin-main,
  .admin-topbar { padding-inline: 22px; }
  .orders-table .table-head,
  .orders-table .table-row { min-width: 720px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .dispatch-order-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logistics-routes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-workspace { grid-template-columns: 1fr; }
  .team-side { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 900px) {
  .admin-shell { display: block; }
  .admin-sidebar {
    position: fixed;
    left: 0;
    width: min(280px, 84vw);
    transform: translateX(-105%);
    transition: transform .28s ease;
  }
  .admin-sidebar.is-open { transform: translateX(0); }
  .admin-mobile-menu {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--portal-line);
    border-radius: 10px;
    background: #fff;
  }
  .admin-topbar { grid-template-columns: auto 1fr auto auto; min-height: 64px; }
  .admin-search { display: none; }
  .admin-grid--overview,
  .admin-grid--bottom,
  .admin-grid--analytics { grid-template-columns: 1fr; }
  .order-pipeline { grid-template-columns: repeat(4, 250px); }
  .promo-grid { grid-template-columns: repeat(2, 1fr); }
  .logistics-summary { grid-template-columns: repeat(2, 1fr); }

}

@media (max-width: 680px) {
  .portal-body { padding-bottom: 67px; }
  .admin-main { padding: 20px 14px 35px; }
  .admin-topbar { padding-inline: 13px; }
  .admin-topbar > div:first-of-type { display: none; }
  .admin-topbar { grid-template-columns: auto 1fr auto auto; }
  .admin-topbar::after { content: "Царь Ролл · центр управления"; font-size: 10px; font-weight: 800; }
  .admin-topbar > time { margin-left: auto; }
  .admin-page-heading { align-items: center; }
  .admin-page-heading h1 { font-size: 28px; }
  .admin-heading-actions .ghost-button { display: none; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .metric-card { min-height: 132px; padding: 15px; }
  .metric-card > strong { font-size: 20px; }
  .revenue-panel,
  .kitchen-panel { padding: 15px; }
  .bar-chart { gap: 7px; }
  .quick-actions > div { grid-template-columns: 1fr; }
  .dispatch-order-grid { grid-template-columns: 1fr; padding: 10px; }
  .dispatch-map-toolbar { align-items: stretch; flex-direction: column; padding: 16px; }
  .dispatch-filters button { flex-basis: 128px; }
  .dispatch-order-card__head { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .dispatch-order-card__amount { align-self: center; }
  .dispatch-order-card__deadline { grid-column: 1 / -1; grid-template-columns: auto 1fr; border-top: 1px solid var(--portal-line); border-left: 0; padding-top: 12px; padding-left: 0; text-align: left; }
  .dispatch-order-card__deadline > span { grid-column: auto; align-self: center; }
  .dispatch-order-card__deadline small { justify-self: end; text-align: right; }
  .dispatch-order-card__body { grid-template-columns: 1fr; }
  .dispatch-order-card address { border-top: 1px solid var(--portal-line); border-left: 0; padding-top: 14px; padding-left: 0; }
  .dispatch-order-card__items { grid-template-columns: 1fr; }
  .dispatch-order-card > footer { align-items: stretch; flex-direction: column; }
  .dispatch-order-card > footer > div { width: 100%; }
  .dispatch-map-legend { justify-content: flex-start; }
  .dispatch-map-shell { min-height: 330px; }
  .dispatch-map-note { flex-direction: column; gap: 5px; }
  .drawer-logistics { grid-template-columns: 1fr; }
  .catalog-summary,
  .customer-insights,
  .analytics-hero { grid-template-columns: 1fr 1fr; gap: 8px; }
  .promo-hero { align-items: start; flex-direction: column; padding: 22px; }
  .promo-grid { grid-template-columns: 1fr; }
  .settings-layout { grid-template-columns: 1fr; }
  .settings-nav { display: flex; overflow-x: auto; }
  .settings-nav button { white-space: nowrap; }
  .settings-fields { grid-template-columns: 1fr; }
  .logistics-hero { align-items: stretch; flex-direction: column; padding: 20px; }
  .logistics-hero > div:last-child { display: grid; grid-template-columns: 1fr 1fr; }
  .logistics-routes { grid-template-columns: 1fr; }

  .cart-drawer.is-checkout { padding: 42px 15px 24px; }
  .checkout-choice--payment { grid-template-columns: 1fr; }
  .checkout-fields-row { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 430px) {
  .metric-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 118px; }
  .catalog-summary,
  .customer-insights,
  .analytics-hero { grid-template-columns: 1fr 1fr; }
  .catalog-summary strong,
  .customer-insights strong,
  .analytics-hero strong { font-size: 18px; }
  .checkout-choice--two,
  .checkout-choice--time { grid-template-columns: 1fr; }
  .checkout-section { padding: 14px; }
  .logistics-summary { grid-template-columns: 1fr; }
  .logistics-hero > div:last-child { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .portal-body *,
  .portal-body *::before,
  .portal-body *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Tsar Roll storefront checkout */
.cart-drawer.is-checkout {
  width: min(720px, 100vw);
  padding: 18px 28px 30px;
  overflow: hidden;
  border-left: 1px solid rgba(242,162,11,.18);
  border-radius: 24px 0 0 24px;
  background:
    radial-gradient(circle at 82% 0, rgba(242,162,11,.17), transparent 24rem),
    linear-gradient(165deg, #0d0d0b 0%, #080908 70%);
  box-shadow: -24px 0 80px rgba(0,0,0,.52);
}
.cart-drawer.is-checkout > .panel-heading {
  position: absolute;
  z-index: 5;
  top: 16px;
  right: 18px;
}
.cart-drawer.is-checkout > .panel-heading h2 { display: none; }
.cart-drawer.is-checkout > .panel-heading .panel-close {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.09);
  color: #f7f2e8;
  background: rgba(31,31,27,.88);
  backdrop-filter: blur(12px);
}
.cart-drawer.is-checkout [data-cart-content] {
  overflow-y: auto;
  padding: 0 5px 0 0;
  scrollbar-color: rgba(242,162,11,.34) transparent;
  scrollbar-width: thin;
}
.cart-drawer.is-checkout [data-cart-content]::-webkit-scrollbar { width: 4px; }
.cart-drawer.is-checkout [data-cart-content]::-webkit-scrollbar-thumb { border-radius: 10px; background: rgba(242,162,11,.34); }
.checkout-form {
  width: min(620px, 100%);
  margin: 0 auto !important;
  gap: 14px !important;
  padding-bottom: 12px;
}
.checkout-back {
  min-height: 44px;
  margin: 0 58px 0 0;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  color: #d4cec3;
  background: rgba(25,25,22,.78);
  font-size: 12px;
  font-weight: 700;
}
.checkout-back span { color: var(--accent-soft); font-size: 17px; }
.checkout-success .eyebrow {
  display: inline-flex;
  padding: 7px 10px;
  border: 1px solid rgba(255,210,87,.22);
  border-radius: 999px;
  color: var(--accent-soft);
  background: rgba(242,162,11,.08);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.checkout-section {
  padding: 20px;
  border: 1px solid rgba(255,255,255,.085);
  border-radius: 22px;
  color: #f7f3eb;
  background: linear-gradient(145deg, rgba(28,28,24,.97), rgba(16,16,14,.98));
  box-shadow: inset 0 1px rgba(255,255,255,.025);
}
.checkout-section__head { gap: 12px; margin-bottom: 17px; }
.checkout-section__head > span {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(242,162,11,.24);
  border-radius: 11px;
  color: var(--accent-soft);
  background: rgba(242,162,11,.09);
  font-size: 10px;
  font-weight: 900;
}
.checkout-section__head h4 { color: #fffaf2; font-size: 16px; }
.checkout-section__head p { margin-top: 3px; color: #85847f; font-size: 10px; }
.checkout-choice { gap: 9px; }
.checkout-choice--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.checkout-choice label > span {
  min-height: 74px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 15px;
  padding: 13px 13px 13px 44px;
  color: #d5d0c7;
  background: #10110f;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.checkout-choice label > span::before {
  left: 15px;
  width: 17px;
  height: 17px;
  border: 1px solid #65645e;
  background: #151613;
}
.checkout-choice label:hover > span { border-color: rgba(242,162,11,.28); }
.checkout-choice input:checked + span {
  border-color: rgba(242,162,11,.72);
  color: #fff9ed;
  background: linear-gradient(145deg, rgba(242,162,11,.16), rgba(35,28,15,.9));
  box-shadow: 0 0 0 3px rgba(242,162,11,.07), inset 0 1px rgba(255,255,255,.04);
}
.checkout-choice input:checked + span::before {
  border: 5px solid var(--accent);
  background: #fff6df;
}
.checkout-choice b { color: inherit; font-size: 13px; }
.checkout-choice small { color: #888780; font-size: 10px; }
.checkout-field {
  gap: 8px !important;
  margin-top: 14px;
  color: #aaa69d !important;
  font-size: 11px;
  font-weight: 700;
}
.checkout-field input,
.checkout-field textarea,
.promo-entry input {
  border: 1px solid rgba(255,255,255,.1) !important;
  border-radius: 14px !important;
  outline: 0;
  color: #fffaf2;
  background: #0e0f0d;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.3);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.checkout-field input { min-height: 54px; padding: 0 15px !important; }
.checkout-field textarea { min-height: 82px; padding: 14px 15px !important; line-height: 1.45; resize: vertical; }
.checkout-field input::placeholder,
.checkout-field textarea::placeholder,
.promo-entry input::placeholder { color: #65655f; }
.checkout-field input:focus,
.checkout-field textarea:focus,
.promo-entry input:focus { border-color: rgba(242,162,11,.75) !important; box-shadow: 0 0 0 4px rgba(242,162,11,.09); }
.checkout-field input[readonly] { color: #c9c4ba; background: #171814; }
.checkout-address-status {
  min-height: 17px;
  margin: 8px 2px 0;
  color: #85847e;
  font-size: 10px;
  line-height: 1.45;
}
.checkout-address-status.is-checking { color: #e8b648; }
.checkout-address-status.is-valid { color: #61d69f; }
.checkout-address-status.is-error { color: #ff8875; }
.checkout-fields-row { gap: 10px; }
.promo-entry { grid-template-columns: 1fr auto; gap: 8px; }
.promo-entry input {
  width: 100%;
  height: 52px;
  min-width: 0;
  padding: 0 15px;
}
.promo-entry button {
  min-width: 112px;
  border: 1px solid rgba(242,162,11,.28);
  border-radius: 14px;
  padding: 0 16px;
  color: #171006;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
  font-size: 11px;
  font-weight: 900;
}
.checkout-order-total {
  gap: 12px;
  margin-top: 0;
  padding: 21px;
  border: 1px solid rgba(242,162,11,.22);
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 4%, rgba(242,162,11,.18), transparent 42%),
    linear-gradient(145deg, #1d1911, #0f100e 68%);
  box-shadow: 0 22px 48px rgba(0,0,0,.24), inset 0 1px rgba(255,255,255,.035);
}
.checkout-order-total > .checkout-call-note {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 4px;
  border: 1px solid rgba(242,162,11,.18);
  border-radius: 16px;
  padding: 13px;
  color: #f7f0e3;
  background: rgba(242,162,11,.075);
}
.checkout-call-note > i {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 12px;
  color: #171006;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
}
.checkout-call-note b { color: #fff8eb; font-size: 12px; }
.checkout-call-note small { color: #9e978a; font-size: 10px; line-height: 1.4; }
.checkout-order-total > .checkout-total-row {
  display: flex;
  justify-content: space-between;
  color: #99978f;
  font-size: 13px;
}
.checkout-order-total > .checkout-total-row[hidden] { display: none; }
.checkout-order-total > .checkout-total-row b { color: #f7f3eb; }
.checkout-order-total > .is-discount,
.checkout-order-total > .is-discount b { color: #67d9a3; }
.checkout-order-total__grand {
  margin-top: 2px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.1);
  align-items: center;
  color: #fff !important;
}
.checkout-order-total__grand span { font-size: 12px; font-weight: 800; }
.checkout-order-total__grand strong { color: var(--accent-soft); font-family: "Russo One", Inter, sans-serif; font-size: 26px; font-weight: 400; }
.checkout-order-total .primary-button {
  min-height: 58px;
  margin-top: 3px;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 13px 30px rgba(242,162,11,.22);
}
.checkout-order-total > small { color: #77766f; font-size: 8px; line-height: 1.4; text-align: center; }
.checkout-success { color: #f8f4ec; }
.checkout-success__mark { box-shadow: 0 0 0 12px rgba(40,171,117,.12), 0 18px 35px rgba(40,171,117,.18); }
.checkout-success h3 { color: #fffaf2; }
.checkout-success > p { color: #9b9992; font-size: 12px; }
.checkout-tracker span { color: #85847f; font-size: 9px; }
.checkout-tracker span i { background: #20211e; }
.checkout-tracker > b { background: #292a26; }
.checkout-success__total { color: #ddd8cf; background: #181916; }

@media (max-width: 820px) {
  .cart-drawer.is-checkout {
    width: 100vw;
    padding: 14px 14px calc(24px + env(safe-area-inset-bottom));
    border: 0;
    border-radius: 0;
  }
  .cart-drawer.is-checkout > .panel-heading { top: 12px; right: 14px; }
  .cart-drawer.is-checkout [data-cart-content] { padding-right: 2px; }
  .checkout-form { gap: 11px !important; padding-bottom: 18px; }
  .checkout-back { min-height: 42px; margin-right: 52px; padding-inline: 12px; }
  .checkout-section { padding: 16px; border-radius: 19px; }
  .checkout-section__head { margin-bottom: 14px; }
  .checkout-choice--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checkout-choice label > span { min-height: 70px; padding: 11px 9px 11px 38px; }
  .checkout-choice label > span::before { left: 12px; }
  .checkout-choice b { font-size: 12px; }
  .checkout-choice small { font-size: 9px; }
  .checkout-fields-row { grid-template-columns: 1fr; gap: 0; }
  .checkout-order-total { padding: 17px; border-radius: 19px; }
}

@media (max-width: 370px) {
  .checkout-section { padding: 14px; }
  .checkout-choice label > span { padding-left: 35px; }
  .checkout-choice label > span::before { left: 10px; }
  .promo-entry button { min-width: 98px; padding-inline: 11px; }
}

/* Storefront checkout UI/UX v3 */
.cart-drawer.is-checkout {
  width: min(920px, 100vw);
  padding: 0;
  overflow: hidden;
  border-left: 1px solid rgba(242,162,11,.2);
  border-radius: 28px 0 0 28px;
  background:
    radial-gradient(circle at 92% -8%, rgba(242,162,11,.17), transparent 28rem),
    linear-gradient(150deg, #11110f 0%, #090a09 66%);
  box-shadow: -30px 0 90px rgba(0,0,0,.58);
}
.cart-drawer.is-checkout > .panel-heading { top: 20px; right: 22px; }
.cart-drawer.is-checkout > .panel-heading .panel-close {
  width: 46px;
  height: 46px;
  border-color: rgba(255,255,255,.11);
  background: rgba(25,25,22,.9);
}
.cart-drawer.is-checkout [data-cart-content] {
  min-height: 0;
  overflow: hidden;
  padding: 0;
}
.cart-drawer.is-checkout .checkout-form {
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0 !important;
  padding: 22px 24px 24px;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px !important;
}
.checkout-header {
  min-height: 72px;
  padding: 0 62px 18px 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.checkout-back {
  min-height: 42px;
  margin: 0;
  padding: 0 14px;
  justify-self: auto;
  border: 1px solid rgba(255,255,255,.09);
  color: #d8d2c8;
  background: rgba(255,255,255,.035);
}
.checkout-back:hover { border-color: rgba(242,162,11,.32); color: #fff9ef; background: rgba(242,162,11,.08); }
.checkout-header__copy { min-width: 0; display: grid; gap: 3px; }
.checkout-header__copy > span {
  color: var(--accent);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.checkout-form .checkout-header__copy h3 {
  margin: 0;
  color: #fffaf2;
  font-family: "Russo One", Inter, sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.1;
}
.checkout-header__copy p { margin: 0; color: #85837d; font-size: 10px; }
.checkout-header__count {
  min-height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(242,162,11,.19);
  border-radius: 999px;
  color: var(--accent-soft);
  background: rgba(242,162,11,.07);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.checkout-layout {
  min-height: 0;
  padding-right: 4px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 304px;
  align-items: start;
  gap: 16px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(242,162,11,.32) transparent;
  scrollbar-width: thin;
}
.checkout-layout::-webkit-scrollbar { width: 4px; }
.checkout-layout::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(242,162,11,.32); }
.checkout-main { min-width: 0; display: grid; gap: 12px; }
.checkout-form .checkout-section {
  padding: 18px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(29,29,25,.94), rgba(16,17,15,.96));
  box-shadow: inset 0 1px rgba(255,255,255,.025), 0 16px 34px rgba(0,0,0,.14);
}
.checkout-form .checkout-section__head {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.checkout-form .checkout-section__head > span {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border: 1px solid rgba(242,162,11,.26);
  border-radius: 10px;
  color: var(--accent-soft);
  background: rgba(242,162,11,.08);
}
.checkout-form .checkout-section__head h4 { margin: 0; color: #fffaf2; font-size: 15px; line-height: 1.15; }
.checkout-form .checkout-section__head p { margin: 3px 0 0; color: #85837d; font-size: 9px; }
.checkout-form .checkout-choice { gap: 8px; }
.checkout-form .checkout-choice--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.checkout-form .checkout-choice label > span {
  min-height: 70px;
  padding: 9px 40px 9px 9px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  align-content: center;
  gap: 10px;
  border-color: rgba(255,255,255,.085);
  border-radius: 15px;
  color: #d8d3ca;
  background: #10110f;
}
.checkout-form .checkout-choice label > span::before {
  right: 13px;
  left: auto;
  width: 15px;
  height: 15px;
  border-color: #66655f;
  background: #171814;
}
.checkout-form .checkout-choice label > span > i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 11px;
  color: #a49f96;
  background: rgba(255,255,255,.035);
}
.checkout-form .checkout-choice label > span > i svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.checkout-choice__copy { min-width: 0; display: grid; gap: 3px; }
.checkout-form .checkout-choice b { color: inherit; font-size: 12px; }
.checkout-form .checkout-choice small { overflow: hidden; color: #85837d; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.checkout-form .checkout-choice label:hover > span { border-color: rgba(242,162,11,.3); }
.checkout-form .checkout-choice input:checked + span {
  border-color: rgba(242,162,11,.7);
  color: #fff9ed;
  background: linear-gradient(145deg, rgba(242,162,11,.16), rgba(35,28,15,.82));
  box-shadow: 0 0 0 3px rgba(242,162,11,.065), inset 0 1px rgba(255,255,255,.035);
}
.checkout-form .checkout-choice input:checked + span::before { border: 5px solid var(--accent); background: #fff6df; }
.checkout-form .checkout-choice input:checked + span > i { border-color: rgba(242,162,11,.26); color: #171006; background: linear-gradient(135deg, var(--accent-soft), var(--accent)); }
.checkout-form .checkout-field {
  margin-top: 13px;
  gap: 7px !important;
  color: #aaa69e !important;
  font-size: 10px;
  font-weight: 750;
}
.checkout-field > span { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.checkout-field > span em { color: #66655f; font-size: 8px; font-style: normal; font-weight: 650; }
.checkout-form .checkout-field input,
.checkout-form .checkout-field textarea,
.checkout-form .promo-entry input {
  border: 1px solid rgba(255,255,255,.09) !important;
  border-radius: 13px !important;
  color: #fffaf2;
  background: #0d0e0c;
}
.checkout-form .checkout-field input { min-height: 50px; padding: 0 14px !important; }
.checkout-form .checkout-field textarea { min-height: 70px; padding: 12px 14px !important; resize: vertical; }
.checkout-form .checkout-field input[readonly] { color: #d0cbc1; background: #151612; }
.checkout-form .checkout-field input:focus,
.checkout-form .checkout-field textarea:focus,
.checkout-form .promo-entry input:focus { border-color: rgba(242,162,11,.74) !important; box-shadow: 0 0 0 3px rgba(242,162,11,.08); }
.checkout-phone-status {
  min-height: 14px;
  margin: -1px 2px 0;
  color: #77756f;
  font-size: 8px;
  font-weight: 650;
  line-height: 1.35;
}
.checkout-phone-status.is-checking { color: #d5a746; }
.checkout-phone-status.is-valid { color: #61d39c; }
.checkout-phone-status.is-error { color: #ff8875; }
.checkout-form .checkout-phone-field.is-valid input { border-color: rgba(74,197,140,.48) !important; }
.checkout-form .checkout-phone-field.is-invalid input { border-color: rgba(255,112,91,.72) !important; box-shadow: 0 0 0 3px rgba(255,112,91,.08); }
.checkout-form .checkout-address-status { margin: 7px 2px 0; font-size: 9px; }
.checkout-form .checkout-fields-row { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 9px; }
.checkout-form .checkout-order-total {
  position: sticky;
  top: 0;
  gap: 11px;
  margin: 0;
  padding: 17px;
  border: 1px solid rgba(242,162,11,.2);
  border-radius: 20px;
  background:
    radial-gradient(circle at 92% 0, rgba(242,162,11,.15), transparent 45%),
    linear-gradient(150deg, #201b12, #11120f 64%);
  box-shadow: 0 20px 46px rgba(0,0,0,.26), inset 0 1px rgba(255,255,255,.035);
}
.checkout-form .checkout-summary-head {
  padding-bottom: 14px;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,.09);
  color: #fff !important;
}
.checkout-summary-head > span { min-width: 0; display: grid; gap: 3px; }
.checkout-summary-head > span b { color: #fffaf1 !important; font-size: 14px; }
.checkout-summary-head > span small { color: #8f8c84; font-size: 9px; }
.checkout-summary-thumbs { display: flex !important; flex-direction: row-reverse; justify-content: flex-start !important; color: #fff !important; }
.checkout-summary-thumbs > span {
  position: relative;
  width: 40px;
  height: 40px;
  margin-left: -10px;
  display: block;
  overflow: visible;
  border: 2px solid #1d1a13;
  border-radius: 12px;
  background: #13130f;
}
.checkout-summary-thumbs > span img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }
.checkout-summary-thumbs > span b {
  position: absolute;
  right: -4px;
  bottom: -4px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border: 2px solid #1d1a13;
  border-radius: 999px;
  color: #171006 !important;
  background: var(--accent-soft);
  font-size: 7px;
}
.checkout-summary-thumbs > em {
  width: 36px;
  height: 36px;
  margin-right: -7px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #d8d2c7;
  background: #25231e;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}
.checkout-form .checkout-order-total > .checkout-total-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #98958d;
  font-size: 11px;
}
.checkout-form .checkout-order-total > .checkout-total-row[hidden] { display: none !important; }
.checkout-form .checkout-order-total > .checkout-total-row b { color: #f7f3eb; }
.checkout-form .checkout-order-total > .checkout-total-row.is-discount,
.checkout-form .checkout-order-total > .checkout-total-row.is-discount b { color: #65d6a0; }
.checkout-form .checkout-order-total__grand {
  margin: 1px 0 0;
  padding: 14px 0 3px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  border-top: 1px solid rgba(255,255,255,.1);
}
.checkout-form .checkout-order-total__grand span { color: #aaa69d; font-size: 10px; }
.checkout-form .checkout-order-total__grand strong { color: var(--accent-soft); font-size: 25px; }
.checkout-form .checkout-promo {
  padding-top: 11px;
  display: grid !important;
  gap: 7px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: #aaa69d !important;
  font-size: 9px;
  font-weight: 750;
}
.checkout-form .promo-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
.checkout-form .promo-entry input { height: 45px; min-width: 0; padding: 0 12px; }
.checkout-form .promo-entry button {
  min-width: 92px;
  border: 1px solid rgba(242,162,11,.3);
  border-radius: 13px;
  padding: 0 12px;
  color: var(--accent-soft);
  background: rgba(242,162,11,.08);
  font-size: 9px;
}
.checkout-form .promo-entry button:hover { color: #171006; background: var(--accent-soft); }
.checkout-form .checkout-order-total > .checkout-call-note {
  margin: 0;
  padding: 11px;
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  border-color: rgba(255,255,255,.075);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
}
.checkout-form .checkout-call-note > i { width: 34px; height: 34px; flex-basis: 34px; border-radius: 10px; }
.checkout-form .checkout-call-note b { font-size: 10px; }
.checkout-form .checkout-call-note small { font-size: 8px; }
.checkout-form .checkout-order-total .primary-button {
  min-height: 54px;
  margin: 1px 0 0;
  font-size: 12px;
  box-shadow: 0 12px 28px rgba(242,162,11,.2);
}
.checkout-form .checkout-order-total > small { color: #73716b; font-size: 7px; line-height: 1.4; }

@media (max-width: 820px) {
  .cart-drawer.is-checkout { width: 100vw; border: 0; border-radius: 0; }
  .cart-drawer.is-checkout > .panel-heading { top: calc(14px + env(safe-area-inset-top)); right: 14px; }
  .cart-drawer.is-checkout .checkout-form {
    padding: calc(14px + env(safe-area-inset-top)) 14px calc(18px + env(safe-area-inset-bottom));
    gap: 13px !important;
  }
  .checkout-header {
    min-height: 65px;
    padding: 0 52px 13px 0;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 11px;
  }
  .checkout-header__copy > span { font-size: 7px; }
  .checkout-form .checkout-header__copy h3 { font-size: 18px; }
  .checkout-header__copy p { display: none; }
  .checkout-header__count { display: none; }
  .checkout-back { min-height: 40px; margin: 0; padding-inline: 11px; font-size: 10px; }
  .checkout-layout { padding: 0 2px calc(86px + env(safe-area-inset-bottom)) 0; grid-template-columns: 1fr; gap: 11px; }
  .checkout-main { gap: 11px; }
  .checkout-form .checkout-section { padding: 15px; border-radius: 18px; }
  .checkout-form .checkout-section__head { margin-bottom: 13px; }
  .checkout-form .checkout-choice label > span { min-height: 66px; grid-template-columns: 34px minmax(0, 1fr); padding: 8px 36px 8px 8px; gap: 8px; }
  .checkout-form .checkout-choice label > span > i { width: 34px; height: 34px; }
  .checkout-form .checkout-choice label > span::before { right: 10px; }
  .checkout-form .checkout-choice b { font-size: 11px; }
  .checkout-form .checkout-choice small { font-size: 8px; }
  .checkout-form .checkout-fields-row { grid-template-columns: 1fr; gap: 0; }
  .checkout-form .checkout-order-total { position: static; padding: 16px; border-radius: 18px; }
  .checkout-form .checkout-order-total .primary-button {
    position: fixed;
    z-index: 7;
    right: 14px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 14px;
    width: auto;
    min-height: 56px;
    border: 1px solid rgba(255,225,145,.44);
    box-shadow: 0 16px 38px rgba(0,0,0,.52), 0 10px 26px rgba(242,162,11,.24);
  }
}

@media (max-width: 370px) {
  .checkout-form .checkout-choice--two { grid-template-columns: 1fr; }
  .checkout-form .promo-entry button { min-width: 84px; padding-inline: 9px; }
}

/* Adaptive admin UX refresh */
.admin-mobile-nav { display: none; }
.toolbar-context {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 7px 10px;
  color: #777d78;
  background: #f1f3f0;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}
.filter-pills { scroll-padding-inline: 8px; scrollbar-width: none; }
.filter-pills::-webkit-scrollbar { display: none; }

@media (max-width: 900px) {
  .portal-body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .admin-topbar {
    position: sticky;
    z-index: 46;
    top: 0;
    border-bottom-color: rgba(27,32,29,.09);
    background: rgba(255,255,255,.92);
    box-shadow: 0 8px 28px rgba(22,27,24,.06);
    backdrop-filter: blur(18px) saturate(1.15);
  }
  .admin-mobile-nav {
    position: fixed;
    z-index: 74;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    height: calc(70px + env(safe-area-inset-bottom));
    grid-template-columns: repeat(var(--admin-mobile-items, 5), 1fr);
    padding: 6px 8px env(safe-area-inset-bottom);
    border-top: 1px solid rgba(28,33,30,.09);
    background: rgba(255,255,255,.94);
    box-shadow: 0 -12px 34px rgba(22,27,24,.09);
    backdrop-filter: blur(20px) saturate(1.15);
  }
  .admin-mobile-nav button {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 55px;
    place-content: center;
    justify-items: center;
    gap: 3px;
    border-radius: 14px;
    color: #8a8f8b;
    background: transparent;
  }
  .admin-mobile-nav button.is-active { color: #e84c36; background: #fff0ec; }
  .admin-mobile-nav i { font-size: 17px; font-style: normal; font-weight: 800; line-height: 1; }
  .admin-mobile-nav span { overflow: hidden; max-width: 100%; font-size: 8px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
  .admin-mobile-nav b {
    position: absolute;
    top: 3px;
    right: calc(50% - 22px);
    display: grid;
    min-width: 17px;
    height: 17px;
    place-items: center;
    border-radius: 999px;
    padding-inline: 4px;
    color: #fff;
    background: #ff5c43;
    font-size: 7px;
  }
  .admin-sidebar { z-index: 84; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  .admin-scrim { z-index: 80; }
}

@media (max-width: 680px) {
  .admin-body { background: linear-gradient(180deg, #f6f2e9, #f2f4f1 300px); }
  .admin-main { padding: 18px 12px 28px; }
  .admin-page-heading { align-items: center; gap: 12px; margin-bottom: 17px; }
  .admin-page-heading p { font-size: 8px; }
  .admin-page-heading h1 { font-size: 27px; }
  .admin-subnav { top: 8px; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .admin-subnav::-webkit-scrollbar { display: none; }
  .admin-subnav button { flex: 1 0 auto; }
  .team-command { align-items: flex-start; flex-direction: column; padding: 19px; }
  .team-command__actions { width: 100%; }
  .team-command__actions button { flex: 1; padding-inline: 10px; font-size: 9px; }
  .team-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .team-workspace,
  .team-side { grid-template-columns: 1fr; }
  .team-directory > .team-section-heading { align-items: stretch; flex-direction: column; }
  .team-search { width: 100%; }
  .team-filters { overflow-x: auto; scrollbar-width: none; }
  .team-filters::-webkit-scrollbar { display: none; }
  .team-filters button { flex: 0 0 auto; }
  .team-member-head { display: none; }
  .team-member-list { display: grid; gap: 9px; padding: 10px; background: #f4f6f3; }
  .team-member-row {
    min-height: 148px;
    grid-template-columns: 46px minmax(0,1fr) auto;
    grid-template-areas:
      "avatar identity more"
      "avatar role role"
      "presence shift shift";
    gap: 10px 12px;
    border: 1px solid var(--portal-line) !important;
    border-radius: 15px;
    padding: 16px;
  }
  .team-member-row > .team-avatar { grid-area: avatar; }
  .team-member-row__identity { grid-area: identity; }
  .team-member-row > .team-role-badge { grid-area: role; }
  .team-member-row > .team-presence { grid-area: presence; }
  .team-member-row__shift { grid-area: shift; justify-self: end; text-align: right; }
  .team-member-row__more { grid-area: more; }
  .team-permissions > header { align-items: flex-start; flex-direction: column; }
  .team-member-modal__facts { grid-template-columns: 1fr; }
  .admin-heading-actions .accent-button { min-height: 42px; border-radius: 13px; padding-inline: 14px; font-size: 10px; box-shadow: 0 10px 22px rgba(255,76,52,.16); }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .metric-card { min-height: 126px; border-radius: 18px; padding: 14px; box-shadow: 0 10px 28px rgba(23,29,25,.045); }
  .metric-card > div { font-size: 9px; }
  .metric-card > strong { margin-top: 16px; font-size: 21px; }
  .metric-card footer { align-items: start; flex-direction: column; gap: 3px; margin-top: 10px; }
  .admin-panel { border-radius: 18px; }
  .revenue-panel,
  .kitchen-panel { min-height: 290px; border-radius: 19px; }
  .bar-chart { gap: 6px; }
  .order-pipeline { width: calc(100% + 12px); grid-template-columns: repeat(4, min(78vw, 290px)); margin-right: -12px; padding-right: 12px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .order-pipeline::-webkit-scrollbar { display: none; }
  .pipeline-column { scroll-snap-align: start; border-radius: 18px; }
  .data-panel { overflow: visible; border: 0; background: transparent; box-shadow: none; }
  .data-toolbar {
    position: sticky;
    z-index: 3;
    top: 64px;
    min-height: 54px;
    border: 1px solid var(--portal-line);
    border-radius: 16px;
    padding: 9px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 8px 24px rgba(23,29,25,.045);
    backdrop-filter: blur(16px);
  }
  .toolbar-context { display: none; }
  .filter-pills { width: 100%; }
  .filter-pills button { min-height: 36px; padding-inline: 12px; border-radius: 10px; }
  .admin-table { overflow: visible; }
  .admin-table .table-head { display: none; }
  .orders-table .table-row {
    position: relative;
    min-width: 0;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 14px;
    margin-top: 10px;
    border: 1px solid var(--portal-line);
    border-radius: 18px;
    padding: 15px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(23,29,25,.045);
  }
  .orders-table .table-row > span { padding: 0; }
  .orders-table .table-row > span:nth-child(1) { grid-column: 1; grid-row: 1; }
  .orders-table .table-row > span:nth-child(2) { grid-column: 1; grid-row: 2; }
  .orders-table .table-row > span:nth-child(3) { grid-column: 1 / -1; grid-row: 3; padding-top: 10px; border-top: 1px solid #eef0ed; }
  .orders-table .table-row > span:nth-child(4) { grid-column: 2; grid-row: 1; text-align: right; }
  .orders-table .table-row > span:nth-child(5) { grid-column: 2; grid-row: 2; text-align: right; }
  .orders-table .table-row > span:nth-child(6) { grid-column: 1; grid-row: 4; }
  .orders-table .table-row > span:nth-child(7) { grid-column: 2; grid-row: 4; text-align: right; }
  .orders-table .table-row span > strong { font-size: 11px; }
  .orders-table .table-row span > small { max-width: 260px; font-size: 8px; }
  .catalog-table .table-row {
    min-width: 0;
    min-height: 86px;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 7px 12px;
    margin-top: 9px;
    border: 1px solid var(--portal-line);
    border-radius: 17px;
    padding: 12px;
    background: #fff;
  }
  .catalog-table .table-row > span { padding: 0; }
  .catalog-table .table-row > span:nth-of-type(1) { grid-column: 1; grid-row: 1 / span 2; }
  .catalog-table .table-row > span:nth-of-type(2) { grid-column: 1; grid-row: 3; padding-left: 50px; color: var(--portal-muted); }
  .catalog-table .table-row > span:nth-of-type(3) { grid-column: 2; grid-row: 1; text-align: right; }
  .catalog-table .table-row > span:nth-of-type(5) { grid-column: 2; grid-row: 2; justify-self: end; }
  .catalog-table .table-row > span:nth-of-type(4),
  .catalog-table .table-row > span:nth-of-type(6) { display: none; }
  .catalog-product img { width: 42px; height: 48px; border-radius: 11px; }
  .customers-table .table-row {
    min-width: 0;
    min-height: 92px;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 8px 12px;
    margin-top: 9px;
    border: 1px solid var(--portal-line);
    border-radius: 17px;
    padding: 13px;
    background: #fff;
  }
  .customers-table .table-row > span { padding: 0; }
  .customers-table .table-row > span:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
  .customers-table .table-row > span:nth-child(2) { grid-column: 2; grid-row: 1; text-align: right; }
  .customers-table .table-row > span:nth-child(3) { grid-column: 2; grid-row: 2; text-align: right; }
  .customers-table .table-row > span:nth-child(4) { grid-column: 1; grid-row: 3; padding-left: 44px; }
  .customers-table .table-row > span:nth-child(5) { grid-column: 2; grid-row: 3; text-align: right; }
  .catalog-summary,
  .customer-insights,
  .analytics-hero,
  .logistics-summary { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
  .catalog-summary article,
  .customer-insights article,
  .analytics-hero > div,
  .logistics-summary article { min-height: 108px; border-radius: 17px; padding: 15px; }
  .settings-nav { scroll-snap-type: x proximity; scrollbar-width: none; }
  .settings-nav::-webkit-scrollbar { display: none; }
  .settings-nav button { scroll-snap-align: start; }
  .admin-detail-drawer { inset: 0; width: 100vw; height: 100dvh; max-width: none; border: 0; border-radius: 0; }
  .admin-detail-drawer > header { padding: calc(10px + env(safe-area-inset-top)) 14px 10px; }
  .order-drawer__summary { grid-template-columns: 1fr; padding: 10px 14px; }
  .order-drawer__layout { grid-template-columns: 1fr; gap: 10px; padding: 10px 14px 16px; }
  .drawer-delivery-cost > div { grid-template-columns: 1fr; }
  .drawer-delivery-cost button { width: 100%; }
  .drawer-order-table__head { display: none; }
  .drawer-order-item { grid-template-columns: minmax(0, 1fr) auto; gap: 5px 10px; padding: 11px 0; }
  .drawer-order-item__product { grid-column: 1 / -1; }
  .drawer-order-item__quantity,
  .drawer-order-item__unit { grid-column: 1; padding-left: 58px; text-align: left; }
  .drawer-order-item__unit { color: var(--portal-muted); font-size: 9px; }
  .drawer-order-item > b { grid-column: 2; grid-row: 2 / span 2; align-self: center; }
  .drawer-totals { grid-template-columns: 1fr; gap: 7px; }
  .drawer-totals div,
  .drawer-totals div:first-child,
  .drawer-totals div:last-child { display: flex; justify-content: space-between; border-left: 0; padding: 0; }
  .drawer-totals .total { border-top: 1px solid var(--portal-line); padding-top: 9px; }
  .admin-detail-drawer > footer { padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); }
  .admin-detail-drawer > footer.has-confirmation-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-detail-drawer > footer.has-confirmation-actions > .ghost-button { grid-column: 1 / -1; min-height: 34px; }
  .admin-modal { align-items: end; padding: 0; }
  .admin-modal form { width: 100%; max-width: none; border-radius: 25px 25px 0 0; padding: 22px 17px calc(22px + env(safe-area-inset-bottom)); }
}

@media (max-width: 360px) {
  .shift-console__hero-actions,
  .shift-signal-grid { grid-template-columns: 1fr; }
  .metric-grid,
  .catalog-summary,
  .customer-insights,
  .analytics-hero,
  .logistics-summary { grid-template-columns: 1fr; }
  .admin-topbar > time { display: none; }
  .admin-page-heading h1 { font-size: 24px; }
  .admin-heading-actions .accent-button { padding-inline: 11px; }
}

@media (max-width: 780px) {
  .owner-overview__grid { grid-template-columns: 1fr; }
  .owner-sales__layers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .owner-waterfall__order-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finance-month-overview { grid-template-columns: 1fr; }
  .finance-day__summary { grid-template-columns: minmax(170px, 1fr) 95px 95px 24px; }
  .finance-day__summary > small { display: none; }
}

@media (max-width: 560px) {
  .owner-overview { width: 100%; min-width: 0; gap: 12px; }
  .owner-overview__grid { width: 100%; min-width: 0; grid-template-columns: minmax(0, 1fr); }
  .owner-overview__grid > *,
  .owner-sales,
  .owner-waterfall { width: 100%; min-width: 0; }
  .owner-sales { padding: 18px; }
  .owner-sales > header h2 { font-size: 24px; }
  .owner-sales__layers button { min-height: 90px; padding: 14px; }
  .owner-sales__layers strong { font-size: 21px; }
  .owner-sales__chart { min-width: 0; height: 220px; overflow: hidden; }
  .owner-sales > header { align-items: stretch; }
  .owner-sales > header > div:first-child { width: 100%; min-width: 0; }
  .owner-sales__period { display: grid; width: 100%; min-width: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); order: 3; }
  .owner-sales__period button,
  .owner-sales__period select { width: 100%; min-width: 0; padding-inline: 8px; }
  .owner-waterfall { padding: 20px 16px 16px; }
  .owner-waterfall > header { align-items: stretch; flex-direction: column; flex-wrap: nowrap; gap: 14px; }
  .owner-waterfall > header > div:first-child { flex: none; width: 100%; min-height: 0; }
  .owner-waterfall > header h2 { max-width: 100%; font-size: 24px; line-height: 1.08; }
  .owner-waterfall__date { width: 100%; min-width: 0; }
  .owner-waterfall > header > div:last-child { width: 100%; justify-items: start; text-align: left; }
  .owner-waterfall__plot { height: 226px; gap: 4px; margin-top: 28px; -webkit-text-size-adjust: none; text-size-adjust: none; }
  .owner-waterfall__bar > span { right: 9%; left: 9%; }
  .owner-waterfall__step-hit { right: 9%; left: 9%; }
  .owner-waterfall__bar > span > b { top: -20px; font-size: 10px; }
  .owner-waterfall__bar > i { right: calc(-50% - 3px); }
  .owner-waterfall__step-label { position: relative; min-width: 0; overflow: hidden; color: transparent !important; font-size: 0 !important; text-overflow: ellipsis; }
  .owner-waterfall__step-label::after { position: absolute; inset: 0; display: grid; place-items: center; color: #515b55; content: attr(data-mobile-label); font-size: 10px; }
  .owner-waterfall__step.is-active > .owner-waterfall__step-label::after { color: #352818; text-decoration: underline 2px #ee9e13; text-underline-offset: 4px; }
  .owner-waterfall__order-segment small { font-size: 8px; }
  .owner-waterfall__drilldown { margin-top: 12px; padding: 12px 0 0; }
  .owner-waterfall__drilldown > header { align-items: start; flex-direction: column; gap: 3px; padding-inline: 4px; }
  .owner-waterfall__order-rail { grid-template-columns: 1fr; }
  .owner-waterfall__order-card { min-width: 0; }
  .finance-journal > header { align-items: start; flex-direction: column; gap: 12px; padding: 16px; }
  .finance-journal > header > .accent-button { width: 100%; }
  .finance-month-overview { gap: 9px; padding: 0 16px 16px; }
  .finance-month-metrics { grid-template-columns: 1fr; }
  .finance-month-metrics article { min-height: 72px; }
  .finance-month-metrics article + article { border-top: 1px solid #e0e5e2; border-left: 0; }
  .finance-pagination { align-items: stretch; flex-direction: column; gap: 10px; }
  .finance-pagination > nav { width: 100%; }
  .finance-pagination button { flex: 1; }
  .finance-day__summary { grid-template-columns: 1fr auto auto 20px; gap: 7px; padding: 0 11px; }
  .finance-day__summary > b { font-size: 8px; }
  .finance-operation { grid-template-columns: 30px minmax(0, 1fr) auto; padding: 12px; }
  .finance-operation-group { margin-inline: 7px; }
  .finance-operation-group .finance-operation--linked-discount { padding-left: 20px; }
  .finance-operation-group__net { padding-left: 54px; }
  .finance-operation > b { min-width: 0; font-size: 11px; }
  .finance-operation__actions { grid-column: 2 / -1; }
}

@media (max-width: 1080px) {
  .shift-command-grid { grid-template-columns: 1fr; }
  .shift-resource-stack { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .manager-shift-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .manager-shift-bar__state { grid-column: span 2; }
  .orders-workspace-toolbar { grid-template-columns: minmax(170px, 1fr) repeat(3, minmax(115px, 145px)); }
  .orders-workspace-toolbar .toolbar-context { display: none; }
  .catalog-management-toolbar { grid-template-columns: minmax(210px, 1fr) 190px auto; }
  .catalog-management-toolbar .toolbar-context { display: none; }
  .catalog-toolbar-secondary { flex-wrap: wrap; }
  .catalog-reset-button { margin-left: 0; }
}

@media (max-width: 680px) {
  .shift-console { gap: 10px; }
  .shift-console__hero { min-height: 240px; align-items: start; flex-direction: column; gap: 22px; border-radius: 20px; padding: 22px 20px; }
  .shift-console__hero h2 { margin-top: 19px; font-size: 30px; }
  .shift-console__hero-actions { width: 100%; min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shift-signal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .shift-signal { min-height: 110px; border-radius: 16px; padding: 15px; }
  .shift-command-grid { gap: 10px; }
  .shift-attention__head { align-items: start; flex-direction: column; gap: 13px; padding: 18px 16px 15px; }
  .shift-order-row { grid-template-columns: minmax(0, 1fr) auto; gap: 11px 14px; min-height: 0; padding: 16px; }
  .shift-order-row__main { grid-column: 1 / -1; }
  .shift-order-row__deadline { grid-column: 1; grid-row: 2; }
  .shift-order-row__action { grid-column: 1 / -1; grid-row: 3; border-top: 1px dashed #e2e6e3; padding-top: 10px; }
  .shift-order-row__open { grid-column: 2; grid-row: 2; }
  .shift-resource-stack { grid-template-columns: 1fr; }
  .shift-resource-card > p { min-height: 0; }
  .manager-shift-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 18px; }
  .manager-shift-bar__state { grid-column: 1 / -1; }
  .manager-shift-bar > button { grid-column: 1 / -1; }
  .manager-shift-bar > div,
  .manager-shift-bar > button { min-height: 70px; padding: 12px 14px; }
  .orders-workspace-toolbar,
  .catalog-management-toolbar { position: static; border: 1px solid var(--portal-line); border-radius: 18px 18px 0 0; padding: 11px; background: #fff; }
  .orders-workspace-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .orders-workspace-toolbar .manager-search,
  .orders-workspace-toolbar .order-filter-control--period { grid-column: 1 / -1; }
  .catalog-management-toolbar { grid-template-columns: 1fr; }
  .catalog-availability-filters { justify-content: flex-start; }
  .catalog-management-toolbar .toolbar-context { display: none; }
  .catalog-toolbar-primary { grid-template-columns: 1fr auto; padding: 11px; }
  .catalog-management-toolbar:not(.has-create) .catalog-toolbar-primary { grid-template-columns: 1fr auto; }
  .catalog-create-button { grid-column: 1 / -1; justify-content: center; }
  .catalog-toolbar-secondary { align-items: stretch; flex-direction: column; gap: 9px; padding: 11px; }
  .catalog-category-control { flex-basis: auto; }
  .catalog-availability-filters { overflow-x: auto; }
  .catalog-reset-button { align-self: flex-start; }
  .manager-orders-panel .orders-table,
  .catalog-control .catalog-table { margin-top: 2px; }
  .availability-control { align-items: end !important; flex-direction: column; }
  .availability-control > small { display: block !important; }
  .manual-order-form .modal-row,
  .manual-product-row { grid-template-columns: 1fr; gap: 0; }
  .manual-order-form { max-height: 92vh; overflow-y: auto; }
  .portal-toast { bottom: calc(82px + env(safe-area-inset-bottom)); }
}

@media (max-width: 360px) {
  .shift-console__hero-actions,
  .shift-signal-grid { grid-template-columns: 1fr; }
}

/* Owner marketing workspace */
.admin-main--marketing { padding-top: 24px; }
.admin-main--marketing .admin-page-heading { display: none; }
.marketing-workspace { display: grid; gap: 14px; }
.marketing-command {
  overflow: hidden;
  border: 1px solid #dde3df;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 13px 38px rgba(29, 38, 33, .055);
}
.marketing-command__tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  border-bottom: 1px solid #e2e7e4;
  padding: 6px;
  background: #f2f5f3;
}
.marketing-command__tabs button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 53px;
  border: 0;
  border-radius: 13px;
  padding: 8px 13px;
  color: #77817b;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}
.marketing-command__tabs button:hover { color: #27312b; background: rgba(255,255,255,.6); }
.marketing-command__tabs button.is-active {
  color: #1b241f;
  background: #fff;
  box-shadow: 0 4px 16px rgba(30,40,34,.07);
}
.marketing-command__tabs button.is-active::after {
  position: absolute;
  right: 13px;
  bottom: 0;
  left: 13px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: #f2a20b;
  content: "";
}
.marketing-command__tabs button > i {
  display: grid;
  flex: 0 0 auto;
  width: 33px;
  height: 33px;
  place-items: center;
  border-radius: 10px;
  color: #737d77;
  background: #e4eae6;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}
.marketing-command__tabs button.is-active > i { color: #8b5700; background: #ffd47c; }
.marketing-command__tabs button > span { display: grid; gap: 3px; min-width: 0; }
.marketing-command__tabs button strong { color: inherit; font-size: 14px; }
.marketing-command__tabs button small { overflow: hidden; font-size: 11px; opacity: .72; text-overflow: ellipsis; white-space: nowrap; }
.marketing-command__overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 19px 24px;
  padding: 22px;
}
.marketing-command__copy > span {
  color: #b66f00;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.marketing-command__copy h2 {
  margin-top: 7px;
  font-size: clamp(25px, 3vw, 34px);
  letter-spacing: -.045em;
  line-height: 1;
}
.marketing-command__copy p {
  max-width: 620px;
  margin-top: 8px;
  color: #78817c;
  font-size: 13px;
  line-height: 1.5;
}
.marketing-command__action {
  min-height: 45px;
  border-radius: 12px;
  padding-inline: 17px;
  box-shadow: 0 10px 22px rgba(238,158,19,.16);
}
.marketing-command__metrics {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #e2e7e4;
  border-radius: 15px;
  background: #f6f8f6;
}
.marketing-command__metrics--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.marketing-command__metrics article {
  position: relative;
  min-width: 0;
  min-height: 78px;
  padding: 14px 16px;
}
.marketing-command__metrics article + article { border-left: 1px solid #e0e5e2; }
.marketing-command__metrics article:first-child::before {
  position: absolute;
  top: 0;
  right: 15px;
  left: 15px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: #f2a20b;
  content: "";
}
.marketing-command__metrics article.is-attention::before {
  position: absolute;
  top: 0;
  right: 15px;
  left: 15px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: #ef6c54;
  content: "";
}
.marketing-command__metrics span {
  color: #7c867f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.marketing-command__metrics strong {
  display: block;
  overflow: hidden;
  margin-top: 7px;
  color: #17201b;
  font-size: clamp(18px, 2vw, 23px);
  letter-spacing: -.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.marketing-command__metrics small {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: #89928d;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.marketing-command--coupons .marketing-command__overview {
  grid-template-columns: minmax(110px, .55fr) minmax(360px, 1.45fr) auto;
  gap: 14px;
  padding: 14px 16px;
}
.marketing-command--coupons .marketing-command__copy h2 { margin: 0; font-size: 24px; }
.marketing-command--coupons .marketing-command__metrics { grid-column: 2; grid-row: 1; }
.marketing-command--coupons .marketing-command__metrics article { min-height: 64px; padding: 11px 14px; }
.marketing-command--coupons .marketing-command__metrics article:first-child::before { display: none; }
.marketing-command--coupons .marketing-command__metrics strong { margin-top: 5px; font-size: 18px; }
.marketing-command--coupons .marketing-command__action { grid-column: 3; grid-row: 1; min-height: 42px; }
.marketing-tabs {
  display: grid;
  width: min(650px, 100%);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  border: 1px solid #dde3df;
  border-radius: 17px;
  padding: 5px;
  background: #fff;
  box-shadow: 0 8px 25px rgba(30, 40, 34, .045);
}
.marketing-tabs button {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 64px;
  border: 0;
  border-radius: 13px;
  padding: 9px 13px;
  color: #6f7873;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: .18s ease;
}
.marketing-tabs button > i {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: #747e78;
  background: #f0f3f1;
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
}
.marketing-tabs button > span { display: grid; gap: 3px; min-width: 0; }
.marketing-tabs button strong { color: inherit; font-size: 14px; }
.marketing-tabs button small { overflow: hidden; font-size: 11px; opacity: .72; text-overflow: ellipsis; white-space: nowrap; }
.marketing-tabs button:hover { color: #25302a; background: #f5f7f5; }
.marketing-tabs button.is-active { color: #18211c; background: #fff0d6; box-shadow: inset 0 0 0 1px #ffd587; }
.marketing-tabs button.is-active > i { color: #9b6000; background: #ffc04b; }
.coupon-system,
.customer-database { display: grid; gap: 14px; }
.marketing-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  min-height: 142px;
  border: 1px solid #dee4e0;
  border-radius: 22px;
  padding: 25px 28px;
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 185, 53, .16), transparent 27%),
    linear-gradient(135deg, #fff 0%, #fbfcfb 100%);
  box-shadow: 0 14px 40px rgba(31, 40, 35, .055);
}
.marketing-section-head > div > span {
  color: #cb7f00;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.marketing-section-head h2 { margin-top: 8px; font-size: clamp(25px, 3vw, 36px); letter-spacing: -.045em; }
.marketing-section-head p { max-width: 620px; margin-top: 8px; color: #78817c; font-size: 10px; line-height: 1.55; }
.marketing-section-head .accent-button { min-height: 47px; border-radius: 13px; padding-inline: 18px; box-shadow: 0 12px 25px rgba(238, 158, 19, .18); }
.coupon-metrics,
.customer-db-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.coupon-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.coupon-metrics article,
.customer-db-metrics article {
  min-height: 105px;
  border: 1px solid #dfe5e1;
  border-radius: 17px;
  padding: 16px 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(30, 40, 34, .035);
}
.coupon-metrics span,
.customer-db-metrics span { color: #77817b; font-size: 8px; font-weight: 750; text-transform: uppercase; }
.coupon-metrics strong,
.customer-db-metrics strong { display: block; margin-top: 8px; color: #17201b; font-size: 23px; letter-spacing: -.04em; }
.coupon-metrics small,
.customer-db-metrics small { display: block; margin-top: 5px; color: #89928d; font-size: 8px; }
.coupon-panel,
.customer-db-panel { overflow: hidden; border-radius: 20px; box-shadow: 0 13px 38px rgba(29, 38, 33, .055); }
.coupon-toolbar,
.customer-db-toolbar {
  display: grid !important;
  grid-template-columns: minmax(210px, 1fr) auto;
  gap: 12px;
  padding: 13px 15px;
  border-bottom: 1px solid #e2e7e4;
  background: #fbfcfb;
}
.customer-db-toolbar { grid-template-columns: minmax(210px, 1fr) auto auto; }
.coupon-toolbar > label,
.customer-db-toolbar > label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  height: 39px;
  border: 1px solid #dce2de;
  border-radius: 11px;
  padding: 0 11px;
  background: #fff;
}
.coupon-toolbar > label > span,
.customer-db-toolbar > label > span { color: #8c958f; font-size: 14px; }
.coupon-toolbar input,
.customer-db-toolbar input { width: 100%; min-width: 0; border: 0; outline: 0; color: #26302a; background: transparent; font-size: 13px; }
.coupon-toolbar nav,
.customer-db-toolbar nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.coupon-toolbar nav::-webkit-scrollbar,
.customer-db-toolbar nav::-webkit-scrollbar { display: none; }
.coupon-toolbar nav button,
.customer-db-toolbar nav button {
  flex: 0 0 auto;
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  padding: 0 11px;
  color: #737c77;
  background: transparent;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}
.coupon-toolbar nav button.is-active,
.customer-db-toolbar nav button.is-active { color: #7b4b00; background: #ffedcc; }
.customer-db-toolbar nav button b { margin-left: 4px; color: inherit; }
.customer-db-toolbar > span { align-self: center; color: #727c76; font-size: 11px; font-weight: 700; white-space: nowrap; }
.customer-db-add { width: auto !important; min-height: 42px; border-radius: 11px; padding-inline: 15px; white-space: nowrap; }
.coupon-table,
.customer-db-table { min-width: 1000px; overflow-x: auto; }
.coupon-table-head,
.coupon-row {
  display: grid;
  grid-template-columns: 1.05fr 1.1fr 1.45fr .85fr .85fr .8fr 94px;
  align-items: center;
  gap: 14px;
  min-width: 1000px;
}
.coupon-table-head,
.customer-db-head { min-height: 44px; padding: 0 17px; color: #737d77; background: #f6f8f6; font-size: 11px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.coupon-row { min-height: 118px; border-top: 1px solid #e8ebe9; padding: 18px 17px; background: #fff; }
.coupon-row:hover { background: #fffdfa; }
.coupon-row > div { display: grid; gap: 6px; min-width: 0; }
.coupon-row strong { overflow: hidden; color: #17201b; font-size: 16px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.coupon-row small { overflow: hidden; color: #68736d; font-size: 12px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.coupon-code { justify-self: start; border: 1px dashed #dc9619; border-radius: 10px; padding: 13px 14px; color: #6f4300; background: #fff8e8; font: 850 16px/1 monospace; letter-spacing: .08em; cursor: copy; }
.coupon-code i { margin-left: 5px; color: #c98b25; font-style: normal; }
.coupon-row > div:nth-child(4) > i { display: block; width: 100%; height: 6px; overflow: hidden; border-radius: 99px; background: #e7ebe8; }
.coupon-row > div:nth-child(4) > i > b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffb222, #ef9511); }
.coupon-status { justify-self: start; border-radius: 99px; padding: 9px 12px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.coupon-status--active { color: #0b7958; background: #daf4e9; }
.coupon-status--scheduled { color: #2d6599; background: #e2f0ff; }
.coupon-status--paused { color: #795c22; background: #f5ead1; }
.coupon-status--ended { color: #7d8580; background: #edf0ee; }
.coupon-actions { display: flex !important; justify-content: end; gap: 5px !important; }
.coupon-actions button { display: grid; width: 40px; height: 40px; border: 0; border-radius: 10px; place-items: center; color: #48534d; background: #edf1ee; font-size: 16px; cursor: pointer; }
.coupon-actions button:hover { color: #935900; background: #ffecc8; }
.customer-db-head,
.customer-db-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) .68fr .8fr .8fr 1fr 20px;
  align-items: center;
  gap: 14px;
  min-width: 1000px;
}
.customer-db-row { width: 100%; min-height: 92px; border: 0; border-top: 1px solid #e8ebe9; padding: 15px 17px; color: #27302b; background: #fff; text-align: left; cursor: pointer; }
.customer-db-row:hover { background: #fffcf7; }
.customer-db-row > span { display: grid; gap: 4px; min-width: 0; }
.customer-db-row strong { overflow: hidden; font-size: 14px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.customer-db-row small { overflow: hidden; color: #7b8580; font-size: 11px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.customer-db-person { display: flex !important; align-items: center; gap: 10px; }
.customer-db-person > i { display: grid; flex: 0 0 auto; width: 46px; height: 46px; place-items: center; border-radius: 14px; color: #356c5b; background: #e1f2eb; font-size: 12px; font-style: normal; font-weight: 850; }
.customer-db-person > span { display: grid; gap: 4px; min-width: 0; }
.customer-db-field-label { display: none; color: #87908b !important; font-size: 10px !important; font-weight: 850; letter-spacing: .04em; line-height: 1 !important; text-transform: uppercase; }
.row-arrow { color: #b0b7b3; font-size: 20px !important; }

.admin-modal .coupon-builder-form { position: relative; width: min(820px, 100%); max-height: calc(100dvh - 24px); overflow-y: auto; border-radius: 24px; padding: 30px; }
.admin-modal .coupon-builder-form > .coupon-builder-close { position: absolute; z-index: 2; top: 17px; right: 17px; float: none; width: 44px; height: 44px; border-radius: 12px; color: #5c6660; background: #eff2ef; font-size: 22px; }
.admin-modal .customer-record-form { width: min(1020px, 100%); max-height: calc(100dvh - 30px); overflow-y: auto; padding: 30px; border-radius: 24px; }
.admin-modal .customer-record-form > header { align-items: center; margin-bottom: 22px; }
.admin-modal .customer-record-form > header span { font-size: 12px; }
.admin-modal .customer-record-form > header h2 { margin-top: 7px; font-size: 32px; letter-spacing: -.04em; line-height: 1.05; }
.admin-modal .customer-record-form > header p { margin-top: 8px; font-size: 14px; line-height: 1.4; }
.admin-modal .customer-record-form > header > button { width: 44px; height: 44px; border-radius: 12px; font-size: 22px; }
.admin-modal .customer-record-form label { gap: 8px; margin-top: 16px; font-size: 13px; }
.admin-modal .customer-record-form input,
.admin-modal .customer-record-form select { height: 54px; border-radius: 12px; padding-inline: 15px; font-size: 15px; }
.admin-modal .customer-record-form textarea { min-height: 126px; border-radius: 12px; padding: 14px 15px; font-size: 15px; line-height: 1.5; }
.admin-modal .customer-record-form .modal-row { gap: 14px; }
.admin-modal .customer-record-form .manual-order-error { min-height: 18px; font-size: 12px; }
.coupon-builder { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 16px; }
.coupon-builder__fields { min-width: 0; }
.admin-modal .coupon-builder-form label { gap: 9px; margin-top: 17px; color: #5d6862; font-size: 13px; font-weight: 800; }
.admin-modal .coupon-builder-form input,
.admin-modal .coupon-builder-form select { height: 54px; border-radius: 12px; padding-inline: 15px; font-size: 15px; }
.admin-modal .coupon-builder-form .modal-row { gap: 14px; }
.coupon-code-input { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
.coupon-code-input button { min-height: 54px; border: 1px solid #f0c46f; border-radius: 12px; padding-inline: 16px; color: #7a4a00; background: #fff4dd; font-size: 11px; font-weight: 850; cursor: pointer; }
.coupon-builder__fields label.is-disabled { opacity: .5; }
.coupon-product-field[hidden] { display: none !important; }
.coupon-active-check { display: flex !important; align-items: center; gap: 13px !important; min-height: 58px; border: 1px solid #e0e5e2; border-radius: 13px; padding: 10px 13px; background: #f7f9f7; cursor: pointer; }
.coupon-active-check > input { position: absolute; opacity: 0; pointer-events: none; }
.coupon-active-check > i { position: relative; flex: 0 0 auto; width: 46px; height: 27px; border-radius: 99px; background: #d8ddda; transition: .2s ease; }
.coupon-active-check > i::after { position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(20,30,24,.15); content: ""; transition: .2s ease; }
.coupon-active-check > input:checked + i { background: #20a876; }
.coupon-active-check > input:checked + i::after { transform: translateX(19px); }
.coupon-active-check > span { display: grid; gap: 4px; }
.coupon-active-check b { color: #26302a; font-size: 13px; }
.coupon-active-check small { color: #7e8882; font-size: 11px; font-weight: 600; }
.admin-modal .coupon-builder-form .manual-order-error { min-height: 18px; font-size: 12px; }
.admin-modal .coupon-builder-form > .accent-button { min-height: 56px; border-radius: 13px; font-size: 15px; }
.customer-record-layout { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr); gap: 24px; }
.customer-record-history { min-height: 360px; max-height: 570px; overflow-y: auto; border: 1px solid #dfe4e1; border-radius: 18px; background: #f8faf8; }
.customer-record-history > span { position: sticky; z-index: 1; top: 0; display: block; border-bottom: 1px solid #e3e7e4; padding: 17px; color: #647069; background: #f8faf8; font-size: 12px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.customer-record-history > button { display: grid; width: 100%; grid-template-columns: 9px minmax(0, 1fr) auto; align-items: center; gap: 11px; min-height: 68px; border: 0; border-top: 1px solid #e3e7e4; padding: 11px 15px; background: #fff; text-align: left; cursor: pointer; }
.customer-record-history > button:hover { background: #fffaf0; }
.customer-record-history > button > span { display: grid; gap: 5px; }
.customer-record-history > button strong,
.customer-record-history > button b { color: #26302a; font-size: 13px; }
.customer-record-history > button small { color: #78837d; font-size: 11px; }
.customer-record-history > div { display: grid; gap: 5px; padding: 38px 18px; color: #77817b; text-align: center; }
.customer-record-history > div strong { font-size: 15px; }
.customer-record-history > div small { font-size: 12px; }
.customer-record-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; margin-top: 4px; }
.customer-record-actions .accent-button { width: auto !important; min-width: 240px; min-height: 56px; margin-top: 16px; border-radius: 13px; font-size: 14px; }
.customer-record-actions .danger-button { min-height: 56px; margin-top: 16px; border: 1px solid #f0d8d2; border-radius: 13px; padding: 0 19px; color: #b44e3d; background: #fff7f4; font-size: 13px; font-weight: 800; cursor: pointer; }

@media (max-width: 1200px) {
  .coupon-table,
  .customer-db-table { min-width: 0; overflow: visible; }
  .coupon-table-head,
  .customer-db-head { display: none; }
  .coupon-table { display: grid; gap: 9px; padding: 10px; background: #f5f7f5; }
  .coupon-row {
    min-width: 0;
    min-height: 164px;
    grid-template-columns: 1.05fr .9fr .82fr auto;
    grid-template-areas:
      "code offer offer actions"
      "audience uses result status";
    gap: 18px 20px;
    border: 1px solid #e0e5e2;
    border-radius: 15px;
    padding: 18px;
  }
  .coupon-row > div:nth-child(1) { grid-area: code; }
  .coupon-row > div:nth-child(2) { grid-area: offer; }
  .coupon-row > div:nth-child(3) { grid-area: audience; }
  .coupon-row > div:nth-child(4) { grid-area: uses; }
  .coupon-row > div:nth-child(5) { grid-area: result; }
  .coupon-row > div:nth-child(6) { grid-area: status; }
  .coupon-row > div:nth-child(7) { grid-area: actions; align-self: start; }
  .coupon-row > div:nth-child(1),
  .coupon-row > div:nth-child(2),
  .coupon-row > div:nth-child(7) { align-self: start; }
  .coupon-row > div:nth-child(3),
  .coupon-row > div:nth-child(4),
  .coupon-row > div:nth-child(5),
  .coupon-row > div:nth-child(6) { align-self: end; }
  .coupon-row > div:nth-child(2)::before,
  .coupon-row > div:nth-child(3)::before,
  .coupon-row > div:nth-child(4)::before,
  .coupon-row > div:nth-child(5)::before {
    color: #87918b;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .05em;
    line-height: 1;
    text-transform: uppercase;
  }
  .coupon-row > div:nth-child(2)::before { content: "Скидка"; }
  .coupon-row > div:nth-child(3)::before { content: "Условия"; }
  .coupon-row > div:nth-child(4)::before { content: "Использования"; }
  .coupon-row > div:nth-child(5)::before { content: "Выручка"; }
  .customer-db-table { display: grid; gap: 9px; padding: 10px; background: #f5f7f5; }
  .customer-db-row {
    min-width: 0;
    min-height: 142px;
    grid-template-columns: minmax(190px, 1.3fr) .8fr .7fr .8fr;
    grid-template-areas:
      "person last last arrow"
      "person orders average ltv";
    gap: 14px 18px;
    border: 1px solid #e0e5e2;
    border-radius: 15px;
    padding: 18px;
  }
  .customer-db-row > span:nth-child(1) { grid-area: person; }
  .customer-db-row > span:nth-child(2) { grid-area: orders; }
  .customer-db-row > span:nth-child(3) { grid-area: average; }
  .customer-db-row > span:nth-child(4) { grid-area: ltv; }
  .customer-db-row > span:nth-child(5) { grid-area: last; }
  .customer-db-row > span:nth-child(6) { grid-area: arrow; justify-self: end; }
  .customer-db-field-label { display: block; }
}

@media (max-width: 1080px) {
  .coupon-toolbar { grid-template-columns: 1fr; }
  .customer-db-toolbar { grid-template-columns: minmax(0, 1fr) auto; }
  .customer-db-toolbar > span { display: none; }
  .coupon-metrics,
  .customer-db-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .admin-main--marketing { padding-top: 15px; }
  .marketing-workspace { gap: 12px; }
  .marketing-command { border-radius: 18px; }
  .marketing-command__tabs { padding: 5px; }
  .marketing-command__tabs button { min-height: 49px; gap: 8px; padding: 7px 9px; }
  .marketing-command__tabs button > i { width: 30px; height: 30px; }
  .marketing-command__tabs button small { display: none; }
  .marketing-command__overview { grid-template-columns: 1fr; gap: 16px; padding: 18px; }
  .marketing-command__copy h2 { font-size: 26px; }
  .marketing-command__action { width: 100%; }
  .marketing-command__metrics,
  .marketing-command__metrics--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .marketing-command__metrics article { min-height: 76px; padding: 13px; }
  .marketing-command__metrics article:nth-child(odd) { border-left: 0; }
  .marketing-command__metrics article:nth-child(n + 3) { border-top: 1px solid #e0e5e2; }
  .marketing-command__metrics:not(.marketing-command__metrics--four) article:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .marketing-command--coupons .marketing-command__overview { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 13px; }
  .marketing-command--coupons .marketing-command__copy { grid-column: 1; }
  .marketing-command--coupons .marketing-command__copy h2 { font-size: 22px; }
  .marketing-command--coupons .marketing-command__action { grid-column: 2; width: auto; min-height: 40px; }
  .marketing-command--coupons .marketing-command__metrics { grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .marketing-command--coupons .marketing-command__metrics article { min-height: 54px; padding: 9px 10px; }
  .marketing-command--coupons .marketing-command__metrics article:nth-child(n + 3) { border-top: 0; }
  .marketing-command--coupons .marketing-command__metrics article:nth-child(odd) { border-left: 1px solid #e0e5e2; }
  .marketing-command--coupons .marketing-command__metrics article:first-child { border-left: 0; }
  .marketing-tabs { width: 100%; }
  .marketing-tabs button { min-height: 50px; padding: 7px 9px; }
  .marketing-tabs button > i { width: 30px; height: 30px; }
  .marketing-tabs button small { display: none; }
  .marketing-section-head { min-height: 0; align-items: stretch; flex-direction: column; gap: 18px; border-radius: 18px; padding: 20px; }
  .marketing-section-head h2 { font-size: 26px; }
  .marketing-section-head .accent-button { width: 100%; }
  .coupon-metrics,
  .customer-db-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .coupon-metrics article,
  .customer-db-metrics article { min-height: 92px; padding: 14px; }
  .coupon-metrics strong,
  .customer-db-metrics strong { font-size: 19px; }
  .coupon-panel,
  .customer-db-panel { overflow: hidden; }
  .coupon-toolbar,
  .customer-db-toolbar { position: sticky; left: 0; min-width: calc(100vw - 28px); }
  .coupon-builder,
  .customer-record-layout { grid-template-columns: 1fr; }
  .coupon-builder-form .modal-row,
  .customer-record-form .modal-row { grid-template-columns: 1fr; gap: 0; }
  .admin-modal .customer-record-form { width: 100%; max-height: 96dvh; padding: 22px 17px calc(22px + env(safe-area-inset-bottom)); border-radius: 25px 25px 0 0; }
  .admin-modal .customer-record-form > header h2 { font-size: 27px; }
  .admin-modal .customer-record-form > header p { font-size: 13px; }
  .customer-record-history { min-height: 260px; max-height: 380px; }
  .coupon-code-input { grid-template-columns: 1fr; }
  .coupon-code-input button { min-height: 38px; }
  .coupon-row {
    min-height: 0;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "code actions"
      "offer status"
      "audience audience"
      "uses result";
    gap: 16px 14px;
    padding: 16px;
  }
  .coupon-row strong,
  .coupon-row small { overflow: visible; text-overflow: clip; white-space: normal; }
  .coupon-status { align-self: end !important; justify-self: end; }
  .coupon-actions { align-self: start !important; justify-content: end; }
  .customer-db-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "person arrow"
      "last last"
      "orders average"
      "ltv ltv";
  }
  .customer-db-row > span:nth-child(3),
  .customer-db-row > span:nth-child(5) { text-align: right; }
  .customer-db-toolbar { grid-template-columns: 1fr; }
  .customer-db-add { width: 100% !important; }
  .customer-record-actions { align-items: stretch; flex-direction: column-reverse; }
  .customer-record-actions .accent-button,
  .customer-record-actions .danger-button { width: 100% !important; margin-top: 8px; }
}

@media (max-width: 390px) {
  .marketing-command__tabs button > i { display: none; }
  .marketing-command__metrics,
  .marketing-command__metrics--four { grid-template-columns: 1fr; }
  .marketing-command__metrics article + article { border-top: 1px solid #e0e5e2; border-left: 0; }
  .marketing-command__metrics:not(.marketing-command__metrics--four) article:last-child:nth-child(odd) { grid-column: auto; }
  .coupon-metrics,
  .customer-db-metrics { grid-template-columns: 1fr; }
}

/* Coupon cards v2: one scanning line instead of a dense responsive table. */
.coupon-panel { background: #f3f6f4; }
.coupon-table {
  display: grid;
  min-width: 0;
  gap: 11px;
  overflow: visible;
  padding: 12px;
  background: #f3f6f4;
}
.coupon-table-head { display: none; }
.coupon-table .coupon-row {
  display: grid;
  min-width: 0;
  min-height: 132px;
  grid-template-columns: 130px minmax(135px, 1fr) 170px 150px;
  grid-template-areas: "identity offer metrics control";
  align-items: center;
  gap: 14px;
  border: 1px solid #dce3df;
  border-radius: 18px;
  padding: 17px 18px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(31, 42, 36, .035);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.coupon-table .coupon-row:hover {
  border-color: #efbd60;
  background: #fff;
  box-shadow: 0 12px 28px rgba(43, 50, 46, .08);
  transform: translateY(-1px);
}
.coupon-table .coupon-row > div::before { display: none; content: none; }
.coupon-table .coupon-row > .coupon-card__identity { grid-area: identity; align-self: center; }
.coupon-table .coupon-row > .coupon-card__offer { grid-area: offer; align-self: center; }
.coupon-table .coupon-row > .coupon-card__metrics { grid-area: metrics; align-self: stretch; }
.coupon-table .coupon-row > .coupon-card__control { grid-area: control; align-self: center; }
.coupon-card__identity { display: grid !important; justify-items: start; gap: 10px !important; }
.coupon-card__identity .coupon-code {
  max-width: 100%;
  border-radius: 11px;
  padding: 13px 14px;
  color: #543500;
  background: #fff8e8;
  font-size: 16px;
}
.coupon-card__validity { color: #65716a; font-size: 12px; font-weight: 650; }
.coupon-card__offer { display: grid !important; gap: 7px !important; }
.coupon-card__offer > span,
.coupon-card__metrics span {
  color: #7a867f;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.coupon-card__offer > strong { font-size: 21px; line-height: 1.1; letter-spacing: -.025em; white-space: normal; }
.coupon-card__offer > div { display: flex; flex-wrap: wrap; gap: 5px; }
.coupon-card__offer > div i {
  border-radius: 99px;
  padding: 5px 8px;
  color: #536159;
  background: #eef3f0;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.1;
}
.coupon-card__metrics {
  display: grid !important;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 0 !important;
  border: 1px solid #e1e6e3;
  border-radius: 14px;
  background: #f8faf8;
}
.coupon-card__metrics > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 9px 11px;
}
.coupon-card__metrics > div + div { border-top: 1px solid #e2e7e4; }
.coupon-card__metrics strong { flex: 0 0 auto; font-size: 15px; }
.coupon-card__metrics > i {
  position: absolute;
  right: 10px;
  bottom: 5px;
  left: 10px;
  height: 3px;
  overflow: hidden;
  border-radius: 99px;
  background: #e4e9e6;
}
.coupon-card__metrics > i > b { display: block; height: 100%; border-radius: inherit; background: #efa114; }
.coupon-card__metrics:has(> i) { position: relative; padding-bottom: 5px; }
.coupon-card__control { position: relative; z-index: 2; display: grid !important; justify-items: end; gap: 14px !important; }
.coupon-table .coupon-row:has(.coupon-more[open]) { position: relative; z-index: 30; }
.coupon-card__control .coupon-status { display: inline-flex; align-items: center; gap: 7px; justify-self: end; }
.coupon-card__control .coupon-status > i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .75; }
.coupon-card__control .coupon-actions { display: flex !important; align-items: center; justify-content: end; gap: 7px !important; }
.coupon-card__control .coupon-actions button { border: 1px solid #e1e6e3; background: #f4f7f5; cursor: pointer; }
.coupon-card__control .coupon-actions .coupon-action-edit {
  width: auto;
  min-width: 98px;
  height: 42px;
  border-radius: 11px;
  padding-inline: 12px;
  color: #704600;
  background: #fff4dd;
  border-color: #f0cd87;
  font-size: 11px;
  font-weight: 850;
}
.coupon-more { position: relative; }
.coupon-more > summary {
  display: grid;
  width: 46px;
  height: 42px;
  border: 1px solid #dfe5e1;
  border-radius: 11px;
  place-items: center;
  color: #56615b;
  background: #f3f6f4;
  font-size: 11px;
  font-weight: 850;
  list-style: none;
  cursor: pointer;
}
.coupon-more > summary::-webkit-details-marker { display: none; }
.coupon-more[open] > summary { border-color: #e8b752; color: #774a00; background: #fff4dc; }
.coupon-more > div {
  position: absolute;
  z-index: 20;
  top: calc(100% + 7px);
  right: 0;
  display: grid;
  width: 174px;
  gap: 5px;
  border: 1px solid #dce2de;
  border-radius: 13px;
  padding: 7px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(23,31,27,.18);
}
.coupon-card__control .coupon-more > div > button {
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 9px;
  padding: 0 11px;
  color: #354039;
  background: #f4f7f5;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}
.coupon-card__control .coupon-more > div > button:hover { color: #704600; background: #fff1d4; }
.coupon-card__control .coupon-more > div > button.is-danger { color: #b84a3b; background: #fff3f1; }
.coupon-card__control .coupon-more > div > button.is-danger:hover { background: #ffe5e1; }

@media (max-width: 860px) {
  .coupon-table .coupon-row {
    grid-template-columns: 125px minmax(150px, 1fr) 165px;
    grid-template-areas:
      "identity offer control"
      "identity metrics metrics";
    gap: 13px 16px;
  }
  .coupon-table .coupon-row > .coupon-card__metrics { min-height: 60px; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 1fr; }
  .coupon-card__metrics > div + div { border-top: 0; border-left: 1px solid #e2e7e4; }
}

@media (max-width: 620px) {
  .coupon-table .coupon-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "identity control"
      "offer offer"
      "metrics metrics";
    gap: 15px;
    padding: 16px;
  }
  .coupon-card__control .coupon-actions .coupon-action-edit { min-width: 92px; }
}

/* Owner account management */
.account-console {
  width: 100%;
  max-width: 1180px;
  display: grid;
  gap: 18px;
  margin: 0 auto;
  color: #19201c;
}
.account-console > .admin-panel,
.account-credentials { border-radius: 22px; }
.account-create { padding: 25px; }
.account-create > header,
.account-directory > header,
.account-audit > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.account-create header span,
.account-directory header span,
.account-audit header span {
  display: block;
  margin-bottom: 5px;
  color: #a66b00;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.account-create h2,
.account-directory h2,
.account-audit h2 { margin: 0; font-size: 25px; line-height: 1.1; }
.account-create header p,
.account-directory header p,
.account-audit header p { margin: 7px 0 0; color: #727b76; font-size: 13px; line-height: 1.45; }
.account-create form {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(170px, 220px) auto;
  align-items: end;
  gap: 14px;
  margin-top: 24px;
}
.account-create label { display: grid; gap: 7px; }
.account-create label > span { color: #515b55; font-size: 12px; font-weight: 800; }
.account-create input,
.account-create select {
  width: 100%;
  min-height: 50px;
  border: 1px solid #d9dfdb;
  border-radius: 13px;
  outline: 0;
  background: #f7f9f7;
  padding: 0 15px;
  color: #19201c;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
}
.account-create input:focus,
.account-create select:focus { border-color: #e7a00b; box-shadow: 0 0 0 3px rgba(231,160,11,.14); }
.account-create [type="submit"] {
  min-height: 50px;
  border: 0;
  border-radius: 13px;
  background: #f2a900;
  padding: 0 21px;
  color: #171b18;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
}
.account-create [type="submit"]:disabled { opacity: .55; cursor: wait; }
.account-create [data-admin-user-error] { min-height: 0; grid-column: 1 / -1; margin: 0; color: #c44d42; font-size: 12px; font-weight: 750; }
.account-credentials {
  position: relative;
  display: grid;
  grid-template-columns: minmax(210px, .8fr) minmax(430px, 1.5fr) auto;
  align-items: center;
  gap: 22px;
  border: 1px solid #e8b64a;
  background: linear-gradient(120deg, #fff8df, #fffdf6);
  padding: 22px 24px;
  box-shadow: 0 14px 40px rgba(150,107,10,.1);
}
.account-credentials > div:first-child > span { color: #087d68; font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.account-credentials h2 { margin: 4px 0 5px; font-size: 20px; }
.account-credentials p { margin: 0; color: #756c56; font-size: 12px; line-height: 1.45; }
.account-credentials dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.account-credentials dl > div { min-width: 0; display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; border: 1px solid #eadfbf; border-radius: 13px; background: #fff; padding: 12px 13px; }
.account-credentials dt { grid-column: 1 / -1; color: #7e7560; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.account-credentials dd { overflow: hidden; margin: 0; color: #18201c; font: 850 15px/1.3 ui-monospace, SFMono-Regular, Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
.account-credentials dl button,
.account-credentials__actions button {
  border: 0;
  background: transparent;
  color: #986500;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}
.account-credentials__actions { display: flex; align-items: center; gap: 8px; }
.account-credentials__actions > button:first-child { min-height: 42px; border-radius: 11px; background: #19201c; padding: 0 14px; color: #fff; white-space: nowrap; }
.account-credentials__actions > button:last-child { width: 38px; height: 38px; border-radius: 50%; background: rgba(25,32,28,.07); color: #19201c; font-size: 20px; }
.account-directory,
.account-audit { overflow: hidden; }
.account-directory > header,
.account-audit > header { padding: 23px 24px 19px; }
.account-directory > header aside { display: flex; align-items: center; gap: 8px; border-radius: 20px; background: #eff5f1; padding: 9px 12px; color: #53605a; font-size: 11px; font-weight: 750; }
.account-directory > header aside i { width: 8px; height: 8px; border-radius: 50%; background: #22a780; box-shadow: 0 0 0 4px rgba(34,167,128,.12); }
.account-user-list { border-top: 1px solid #e1e5e2; }
.account-user {
  display: grid;
  grid-template-columns: 48px minmax(180px, 1.25fr) minmax(190px, 1.2fr) minmax(190px, 1.1fr) auto;
  align-items: center;
  gap: 17px;
  min-height: 92px;
  padding: 16px 22px;
  border-bottom: 1px solid #e6e9e7;
}
.account-user:last-child { border-bottom: 0; }
.account-user.is-disabled { background: #fafafa; }
.account-user.is-disabled .account-avatar,
.account-user.is-disabled .account-user__identity,
.account-user.is-disabled .account-user__role { opacity: .62; }
.account-avatar { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: #ffedbc; color: #785000; font-size: 13px; font-style: normal; font-weight: 900; }
.account-user__identity,
.account-user__role,
.account-user__activity { min-width: 0; display: grid; gap: 5px; }
.account-user__identity strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.account-user__identity button { width: fit-content; max-width: 100%; overflow: hidden; border: 0; background: transparent; padding: 0; color: #6e7872; font: 750 12px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.account-user__identity button span { color: #ad7200; }
.account-user__role b,
.account-user__activity b { font-size: 12px; }
.account-user__role small,
.account-user__activity small { color: #79817d; font-size: 11px; line-height: 1.35; }
.account-user__activity b::before { content: ""; width: 7px; height: 7px; display: inline-block; margin-right: 7px; border-radius: 50%; background: currentColor; }
.account-user__activity .is-active { color: #087d68; }
.account-user__activity .is-blocked { color: #c44d42; }
.account-user__actions { display: flex; justify-content: flex-end; gap: 7px; }
.account-user__actions button,
.account-system { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #dce1de; border-radius: 10px; background: #f4f6f5; padding: 0 11px; color: #39423d; font-size: 11px; font-weight: 850; white-space: nowrap; }
.account-user__actions button { cursor: pointer; }
.account-user__actions button.is-danger { border-color: #f1d0cc; background: #fff2f0; color: #b8463c; }
.account-user__actions button.is-success { border-color: #cce8df; background: #eaf8f3; color: #087d68; }
.account-user__actions button:disabled { opacity: .5; cursor: wait; }
.account-system { border-color: #e5d49e; background: #fff8df; color: #836000; }
.account-audit ol { max-height: 450px; overflow: auto; margin: 0; padding: 0; border-top: 1px solid #e1e5e2; list-style: none; }
.account-audit li { display: grid; grid-template-columns: 145px minmax(180px, .75fr) minmax(240px, 1.2fr); gap: 20px; align-items: center; min-height: 68px; padding: 12px 24px; border-bottom: 1px solid #e8ebe9; }
.account-audit li:last-child { border-bottom: 0; }
.account-audit time { color: #7a837e; font-size: 11px; font-weight: 750; }
.account-audit li > span { min-width: 0; display: grid; gap: 3px; }
.account-audit li strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.account-audit li small { overflow: hidden; color: #7a837e; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.account-empty { min-height: 110px; display: flex !important; align-items: center; justify-content: center; flex-direction: column; gap: 5px; color: #75807a; text-align: center; }
.account-empty strong { color: #333d37; font-size: 14px; }
.account-empty span { font-size: 12px; }

@media (max-width: 1200px) {
  .account-create form { grid-template-columns: minmax(0, 1fr) 180px; }
  .account-create [type="submit"] { grid-column: 1 / -1; justify-self: start; }
  .account-credentials { grid-template-columns: 1fr; }
  .account-credentials__actions { justify-content: space-between; }
  .account-user { grid-template-columns: 48px minmax(0, 1fr) auto; grid-template-areas: "avatar identity activity" "avatar role actions"; gap: 10px 16px; }
  .account-avatar { grid-area: avatar; }
  .account-user__identity { grid-area: identity; }
  .account-user__role { grid-area: role; }
  .account-user__activity { grid-area: activity; text-align: right; }
  .account-user__actions { grid-area: actions; }
}

@media (max-width: 680px) {
  .account-console { gap: 12px; }
  .account-console > .admin-panel,
  .account-credentials { border-radius: 18px; }
  .account-create { padding: 19px; }
  .account-create h2,
  .account-directory h2,
  .account-audit h2 { font-size: 22px; }
  .account-create form { grid-template-columns: 1fr; margin-top: 20px; }
  .account-create [type="submit"] { grid-column: auto; width: 100%; }
  .account-credentials { padding: 19px; }
  .account-credentials dl { grid-template-columns: 1fr; }
  .account-directory > header,
  .account-audit > header { padding: 19px; }
  .account-directory > header aside { display: none; }
  .account-user { grid-template-columns: 44px minmax(0, 1fr); grid-template-areas: "avatar identity" "role role" "activity activity" "actions actions"; gap: 10px; padding: 17px 18px; }
  .account-avatar { width: 42px; height: 42px; }
  .account-user__activity { text-align: left; }
  .account-user__actions { justify-content: flex-start; }
  .account-audit li { grid-template-columns: 1fr; gap: 7px; padding: 15px 19px; }
  .account-audit li small { white-space: normal; }
}

/* Readable manager orders workspace */
.admin-shell--manager .admin-brand strong { font-size: 16px; }
.admin-shell--manager .admin-brand small { margin-top: 3px; font-size: 10px; }
.admin-shell--manager .admin-sidebar > nav button { min-height: 54px; border-radius: 13px; }
.admin-shell--manager .admin-sidebar > nav button > i { font-size: 18px; }
.admin-shell--manager .admin-sidebar > nav button > span { font-size: 15px; }
.admin-shell--manager .admin-sidebar > nav button > b { min-width: 24px; height: 24px; font-size: 11px; }
.admin-main--manager-orders { padding: 28px 28px 64px; }
.admin-main--manager-orders .manager-orders-panel { width: 100%; }
.admin-main--manager-orders .orders-workspace-toolbar {
  min-height: 98px;
  grid-template-columns: minmax(250px, 1fr) repeat(3, minmax(145px, 175px)) auto;
  gap: 15px;
  padding: 18px 20px;
}
.admin-main--manager-orders .manager-search { min-height: 56px; border-radius: 14px; padding-inline: 16px; }
.admin-main--manager-orders .manager-search > span { font-size: 23px; }
.admin-main--manager-orders .manager-search input { font-size: 15px; font-weight: 650; }
.admin-main--manager-orders .order-filter-control { gap: 8px; }
.admin-main--manager-orders .order-filter-control > span { font-size: 11px; }
.admin-main--manager-orders .orders-workspace-toolbar .order-filter-control select {
  height: 48px;
  border-radius: 12px;
  padding-inline: 14px 32px;
  font-size: 14px;
}
.admin-main--manager-orders .toolbar-context { padding: 10px 13px; font-size: 13px; }
.admin-main--manager-orders .manager-create-order {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #efb13a;
  border-radius: 12px;
  padding: 0 15px;
  color: #5e3b00;
  background: linear-gradient(135deg, #ffd45d, #f2a20b);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 9px 20px rgba(238,158,19,.18);
}
.admin-main--manager-orders .manager-create-order > span { font-size: 20px; font-weight: 500; line-height: 1; }
.admin-main--manager-orders .orders-table .table-head { height: 50px; padding-inline: 22px; font-size: 11px; }
.admin-main--manager-orders .orders-table .table-row { min-height: 96px; padding-inline: 22px; }
.admin-main--manager-orders .orders-table .table-row > span { font-size: 15px; }
.admin-main--manager-orders .orders-table .table-row span > strong { font-size: 16px; }
.admin-main--manager-orders .orders-table .table-row span > small { margin-top: 7px; font-size: 12px; }
.admin-main--manager-orders .order-row-customer { align-self: start; }
.admin-main--manager-orders .order-row-phone { display: block; margin-top: 6px; color: #1d2822; font-size: 15px; font-weight: 900; letter-spacing: .01em; white-space: nowrap; }
.admin-main--manager-orders .orders-table .order-row-comment { display: -webkit-box; overflow: hidden; margin-top: 8px; color: #68726c; font-size: 13px; line-height: 1.38; text-overflow: ellipsis; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.admin-main--manager-orders .orders-table .order-row-comment.is-empty { color: #9aa19c; font-style: italic; }
.admin-main--manager-orders .order-row-fulfillment > strong { display: inline-flex; width: max-content; min-height: 38px; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 11px; padding: 0 13px; font-size: 14px; font-weight: 900; letter-spacing: .025em; }
.admin-main--manager-orders .order-row-fulfillment > strong::before { width: 8px; height: 8px; border-radius: 50%; content: ""; }
.admin-main--manager-orders .order-row-fulfillment.is-delivery > strong { border-color: #bcdcf2; color: #176897; background: #e7f4fd; }
.admin-main--manager-orders .order-row-fulfillment.is-delivery > strong::before { background: #3d97ce; box-shadow: 0 0 0 4px rgba(61,151,206,.12); }
.admin-main--manager-orders .order-row-fulfillment.is-pickup > strong { border-color: #efd08a; color: #8a5b05; background: #fff3d2; }
.admin-main--manager-orders .order-row-fulfillment.is-pickup > strong::before { background: #e5a522; box-shadow: 0 0 0 4px rgba(229,165,34,.13); }
.admin-main--manager-orders .order-row-fulfillment.is-pickup > strong > em { border-radius: 6px; padding: 3px 5px; color: #fff; background: #1d9667; font-size: 10px; font-style: normal; line-height: 1; }
.admin-main--manager-orders .orders-table .order-row-fulfillment > small { margin: 7px 0 0 4px; color: #747e78; font-size: 13px; font-weight: 800; }
.admin-main--manager-orders .status-pill { min-height: 36px; border-radius: 10px; padding-inline: 12px; font-size: 12px; }
.admin-main--manager-orders .row-arrow { font-size: 30px !important; }

@media (max-width: 1200px) {
  .admin-main--manager-orders { padding: 22px 22px 54px; }
  .admin-main--manager-orders .orders-workspace-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 16px;
  }
  .admin-main--manager-orders .orders-workspace-toolbar .manager-search { grid-column: 1 / -1; }
  .admin-main--manager-orders .toolbar-context { display: none; }
  .admin-main--manager-orders .orders-table { display: grid; gap: 12px; overflow: visible; padding: 14px; background: #f4f6f4; }
  .admin-main--manager-orders .orders-table .table-head { display: none; }
  .admin-main--manager-orders .orders-table .table-row {
    position: relative;
    min-width: 0;
    min-height: 176px;
    grid-template-columns: .72fr 1.55fr .95fr;
    grid-template-rows: repeat(2, minmax(56px, auto));
    gap: 20px 26px;
    margin: 0;
    border: 1px solid #dfe4e0;
    border-radius: 20px;
    padding: 23px 56px 23px 23px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(25,32,28,.045);
  }
  .admin-main--manager-orders .orders-table .table-row:hover { border-color: #e7bd66; background: #fffdf8; }
  .admin-main--manager-orders .orders-table .table-row > span { display: block; padding: 0; text-align: left; }
  .admin-main--manager-orders .orders-table .table-row > span::before {
    display: block;
    margin-bottom: 9px;
    color: #929a95;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
  }
  .admin-main--manager-orders .orders-table .table-row > span:nth-child(1) { grid-column: 1; grid-row: 1; }
  .admin-main--manager-orders .orders-table .table-row > span:nth-child(1)::before { content: "Заказ"; }
  .admin-main--manager-orders .orders-table .table-row > span:nth-child(2) { grid-column: 2; grid-row: 1; }
  .admin-main--manager-orders .orders-table .table-row > span:nth-child(2)::before { content: "Клиент"; }
  .admin-main--manager-orders .orders-table .table-row > span:nth-child(3) { grid-column: 2; grid-row: 2; border: 0; padding: 0; }
  .admin-main--manager-orders .orders-table .table-row > span:nth-child(3)::before { content: "Получение"; }
  .admin-main--manager-orders .orders-table .table-row > span:nth-child(4) { grid-column: 1; grid-row: 2; text-align: left; }
  .admin-main--manager-orders .orders-table .table-row > span:nth-child(4)::before { content: "Создан"; }
  .admin-main--manager-orders .orders-table .table-row > span:nth-child(5) { grid-column: 3; grid-row: 1; text-align: left; }
  .admin-main--manager-orders .orders-table .table-row > span:nth-child(5)::before { content: "Сумма"; }
  .admin-main--manager-orders .orders-table .table-row > span:nth-child(6) { grid-column: 3; grid-row: 2; }
  .admin-main--manager-orders .orders-table .table-row > span:nth-child(6)::before { content: "Статус"; }
  .admin-main--manager-orders .orders-table .table-row > span:nth-child(7) {
    position: absolute;
    top: 50%;
    right: 18px;
    padding: 0;
    transform: translateY(-50%);
  }
  .admin-main--manager-orders .orders-table .table-row > span:nth-child(7)::before { display: none; }
  .admin-main--manager-orders .orders-table .table-row span > strong { font-size: 17px; }
  .admin-main--manager-orders .orders-table .table-row span > small { max-width: none; font-size: 13px; }
  .admin-main--manager-orders .status-pill { min-height: 38px; font-size: 13px; }
}

@media (max-width: 680px) {
  .admin-main--manager-orders { padding: 14px 12px 44px; }
  .admin-main--manager-orders .orders-workspace-toolbar { grid-template-columns: 1fr; border-radius: 18px; }
  .admin-main--manager-orders .orders-workspace-toolbar .manager-search { grid-column: auto; }
  .admin-main--manager-orders .orders-table { padding: 10px 0; background: transparent; }
  .admin-main--manager-orders .orders-table .table-row {
    min-height: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
    gap: 16px;
    padding: 18px 42px 18px 18px;
  }
  .admin-main--manager-orders .orders-table .table-row > span:nth-child(1),
  .admin-main--manager-orders .orders-table .table-row > span:nth-child(2),
  .admin-main--manager-orders .orders-table .table-row > span:nth-child(3),
  .admin-main--manager-orders .orders-table .table-row > span:nth-child(4),
  .admin-main--manager-orders .orders-table .table-row > span:nth-child(5),
  .admin-main--manager-orders .orders-table .table-row > span:nth-child(6) { grid-column: auto; grid-row: auto; }
}

.admin-main--manager-orders .orders-table .table-row.is-new-order {
  border-color: #ef8d80;
  background: linear-gradient(105deg, #fff0ed 0%, #fff7f5 62%, #fff 100%);
  box-shadow: inset 5px 0 #e95340, 0 10px 26px rgba(197,65,47,.1);
}
.admin-main--manager-orders .orders-table .table-row.is-new-order:hover {
  border-color: #e95340;
  background: linear-gradient(105deg, #ffe9e5 0%, #fff4f1 62%, #fff 100%);
}
.admin-main--manager-orders .new-order-callout {
  margin-top: 10px !important;
  color: #d94732 !important;
  font-size: 13px !important;
  font-weight: 900;
  letter-spacing: .01em;
  white-space: nowrap;
}

@media (max-width: 680px) {
  .drawer-delivery-cost__fields { grid-template-columns: 1fr; }
  .drawer-delivery-cost label > small { text-align: left; }
  .drawer-delivery-cost > header { align-items: flex-start; flex-direction: column; gap: 9px; }
}

/* Owner campaigns workspace */
.admin-main--campaigns { padding-top: 24px; }
.admin-main--campaigns .admin-page-heading { display: none; }
.campaigns-workspace { display: grid; gap: 16px; }
.campaigns-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border: 1px solid #dce2de;
  border-radius: 18px;
  padding: 17px 19px;
  background: #fff;
  box-shadow: 0 9px 26px rgba(29,38,33,.045);
}
.campaigns-hero__copy { display: flex; align-items: center; gap: 12px; }
.campaigns-hero__copy h2 { font-size: 30px; letter-spacing: -.045em; line-height: 1; }
.campaigns-hero__copy b { display: inline-flex; align-items: center; gap: 6px; min-height: 29px; border-radius: 99px; padding: 0 10px; color: #147762; background: #e6f5ef; font-size: 10px; font-weight: 900; white-space: nowrap; }
.campaigns-hero__copy b > i { width: 7px; height: 7px; border-radius: 50%; background: #1ba47f; }
.campaigns-hero__create {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  padding: 0 18px;
  color: #181d1a;
  background: linear-gradient(135deg, #ffd05a, #f3a20d);
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  box-shadow: 0 8px 18px rgba(238,158,19,.15);
  cursor: pointer;
}
.campaign-list { display: grid; gap: 14px; }
.campaign-card {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  overflow: hidden;
  min-height: 260px;
  border: 1px solid #dce2de;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(27,36,31,.045);
}
.campaign-card__media {
  position: relative;
  display: grid;
  min-height: 260px;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(circle at 50% 45%, rgba(255,255,255,.95), rgba(255,226,153,.62) 38%, #f3a20d 100%);
}
.campaign-card--berry .campaign-card__media { background: radial-gradient(circle at 50% 45%, #fff3f6, #edc3cf 40%, #a63a5c 100%); }
.campaign-card--graphite .campaign-card__media { background: radial-gradient(circle at 50% 45%, #f6f8f7, #cbd1cd 40%, #27312b 100%); }
.campaign-card__media::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 48%, rgba(17,22,19,.7));
  content: "";
}
.campaign-card__media img { width: 154px; height: 154px; object-fit: contain; filter: drop-shadow(0 18px 20px rgba(19,24,21,.26)); transform: translateY(-8px); }
.campaign-card--poster { grid-template-columns: minmax(250px, .72fr) minmax(0, 1.28fr); }
.campaign-card__media.is-poster {
  width: 100%;
  min-height: 100%;
  aspect-ratio: auto;
  place-items: stretch;
  background: #080808;
}
.campaign-card__media.is-poster::after { display: none; }
.campaign-card__media img.campaign-card__poster {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: none;
  transform: none;
}
.campaign-card__media.is-poster > span { z-index: 2; color: #fff; background: rgba(11,11,11,.72); backdrop-filter: blur(8px); }
.campaign-card__media > span { position: absolute; top: 18px; left: 18px; border-radius: 999px; padding: 7px 10px; color: #222923; background: rgba(255,255,255,.86); font-size: 10px; font-weight: 900; }
.campaign-card__media > strong { position: absolute; right: 18px; bottom: 16px; left: 18px; color: #fff; font-size: 32px; letter-spacing: -.04em; line-height: 1; text-shadow: 0 2px 12px rgba(0,0,0,.18); }
.campaign-card__body { display: grid; gap: 17px; padding: 23px 24px 20px; }
.campaign-card__body > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.campaign-card__body > header > div { min-width: 0; }
.campaign-card__body > header > div > span { color: #929b96; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.campaign-card__body h3 { margin-top: 5px; font-size: 24px; letter-spacing: -.035em; line-height: 1.08; }
.campaign-status { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; min-height: 31px; border-radius: 999px; padding: 0 11px; color: #147762; background: #e5f5ef; font-size: 10px; font-weight: 900; white-space: nowrap; }
.campaign-status i { width: 7px; height: 7px; border-radius: 50%; background: #18a17f; }
.campaign-status--paused { color: #7f6750; background: #f2ece6; }
.campaign-status--paused i { background: #96775a; }
.campaign-status--scheduled { color: #805b05; background: #fff2cc; }
.campaign-status--scheduled i { background: #df9b00; }
.campaign-status--ended { color: #7d8580; background: #edf0ee; }
.campaign-status--ended i { background: #9ca39f; }
.campaign-card__body > p { margin: 0; color: #626d67; font-size: 14px; line-height: 1.5; }
.campaign-card__conditions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.campaign-card__conditions > span { display: grid; align-content: center; gap: 5px; min-height: 62px; border-radius: 12px; padding: 10px 12px; background: #f4f6f4; }
.campaign-card__conditions small,
.campaign-card__body footer small { color: #8b948f; font-size: 9px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.campaign-card__conditions strong { overflow: hidden; color: #2b352f; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.campaign-card__body > footer { display: flex; align-items: end; justify-content: space-between; gap: 18px; border-top: 1px solid #e3e7e4; padding-top: 16px; }
.campaign-card__body > footer > div { display: flex; gap: 28px; }
.campaign-card__body > footer > div > span { display: grid; gap: 4px; }
.campaign-card__body > footer > div strong { color: #202923; font-size: 17px; }
.campaign-card__body > footer nav { display: flex; gap: 8px; }
.campaign-card__body > footer button,
.campaign-card__body > footer a { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; border: 1px solid #dce2de; border-radius: 11px; padding: 0 13px; color: #2e3832; background: #f6f8f6; font: inherit; font-size: 11px; font-weight: 850; text-decoration: none; cursor: pointer; }
.campaign-card__body > footer button { border-color: #efb13a; color: #6d4700; background: #fff5dc; }

@media (max-width: 1100px) {
  .admin-main--campaigns { padding: 20px 22px 54px; }
  .campaign-card { grid-template-columns: 190px minmax(0, 1fr); }
  .campaign-card--poster { grid-template-columns: 220px minmax(0, 1fr); }
  .campaign-card__media img { width: 132px; height: 132px; }
  .campaign-card__body { gap: 14px; padding: 20px; }
  .campaign-card__body h3 { font-size: 21px; }
  .campaign-card__conditions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .campaign-card__conditions > span:last-child { grid-column: 1 / -1; min-height: 50px; }
  .campaign-card__body > footer { align-items: stretch; flex-direction: column; }
  .campaign-card__body > footer nav { justify-content: flex-end; }
}

@media (max-width: 760px) {
  .admin-main--campaigns { padding: 14px 12px 44px; }
  .campaigns-hero { grid-template-columns: 1fr; gap: 14px; border-radius: 18px; padding: 17px; }
  .campaigns-hero__copy { justify-content: space-between; }
  .campaigns-hero__copy h2 { font-size: 28px; }
  .campaigns-hero__create { width: 100%; }
  .campaign-card { grid-template-columns: 1fr; border-radius: 18px; }
  .campaign-card--poster { grid-template-columns: minmax(0, 1fr); }
  .campaign-card__media { min-height: 220px; }
  .campaign-card__media.is-poster { min-height: 0; aspect-ratio: 4 / 5; }
  .campaign-card__body > header,
  .campaign-card__body > footer { align-items: flex-start; flex-direction: column; }
  .campaign-card__conditions { grid-template-columns: 1fr; }
  .campaign-card__conditions > span:last-child { grid-column: auto; }
  .campaign-card__body > footer nav { width: 100%; }
  .campaign-card__body > footer button,
  .campaign-card__body > footer a { flex: 1; }
}

/* Complete mobile pass: manager workspace, order cards and order drawer */
@media (max-width: 680px) {
  .portal-body.admin-body {
    min-width: 0;
    overflow-x: clip;
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }
  .admin-shell,
  .admin-workspace,
  .admin-main { max-width: 100%; }

  .admin-mobile-nav {
    height: calc(76px + env(safe-area-inset-bottom));
    padding: 7px 8px env(safe-area-inset-bottom);
  }
  .admin-mobile-nav button {
    min-height: 60px;
    gap: 5px;
    border-radius: 15px;
  }
  .admin-mobile-nav i { font-size: 20px; }
  .admin-mobile-nav span { font-size: 11px; line-height: 1.1; }
  .admin-mobile-nav b {
    top: 2px;
    right: calc(50% - 25px);
    min-width: 20px;
    height: 20px;
    font-size: 9px;
  }

  .admin-main--manager-orders {
    padding: 12px 10px calc(28px + env(safe-area-inset-bottom));
  }
  .admin-main--manager-orders .manager-orders-panel { overflow: visible; }
  .admin-main--manager-orders .orders-workspace-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px 9px;
    min-height: 0;
    border-radius: 18px;
    padding: 13px;
  }
  .admin-main--manager-orders .orders-workspace-toolbar .manager-search {
    min-height: 52px;
    grid-column: 1 / -1;
    border-radius: 13px;
    padding-inline: 13px;
  }
  .admin-main--manager-orders .manager-search > span { font-size: 21px; }
  .admin-main--manager-orders .manager-search input { font-size: 14px; }
  .admin-main--manager-orders .order-filter-control { gap: 6px; }
  .admin-main--manager-orders .order-filter-control > span { font-size: 10px; }
  .admin-main--manager-orders .orders-workspace-toolbar .order-filter-control select {
    width: 100%;
    height: 46px;
    border-radius: 12px;
    padding: 0 30px 0 12px;
    font-size: 13px;
  }
  .admin-main--manager-orders .orders-workspace-toolbar .order-filter-control--period {
    grid-column: 1;
  }
  .admin-main--manager-orders .manager-create-order {
    min-height: 50px;
    grid-column: 2;
    align-self: end;
    border-radius: 13px;
    font-size: 14px;
  }
  .admin-main--manager-orders .orders-table {
    gap: 12px;
    padding: 11px 0 0;
  }
  .admin-main--manager-orders .orders-table .table-row {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) minmax(112px, .82fr);
    grid-template-rows: auto;
    gap: 17px 15px;
    border-radius: 19px;
    padding: 18px 18px 18px;
  }
  .admin-main--manager-orders .orders-table .table-row > span::before {
    margin-bottom: 7px;
    font-size: 10px;
  }
  .admin-main--manager-orders .orders-table .table-row > span:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }
  .admin-main--manager-orders .orders-table .table-row > span:nth-child(5) {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
  }
  .admin-main--manager-orders .orders-table .table-row > span:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
    padding: 13px 0;
    border-top: 1px solid #edf0ed;
    border-bottom: 1px solid #edf0ed;
  }
  .admin-main--manager-orders .orders-table .table-row > span:nth-child(3) {
    grid-column: 1;
    grid-row: 3;
  }
  .admin-main--manager-orders .orders-table .table-row > span:nth-child(6) {
    grid-column: 2;
    grid-row: 3;
  }
  .admin-main--manager-orders .orders-table .table-row > span:nth-child(4) {
    grid-column: 1 / -1;
    grid-row: 4;
    display: flex;
    min-height: 38px;
    align-items: center;
    gap: 8px;
    border-radius: 11px;
    padding: 0 12px;
    color: #68726c;
    background: #f4f6f4;
  }
  .admin-main--manager-orders .orders-table .table-row > span:nth-child(4)::before {
    margin: 0 auto 0 0;
  }
  .admin-main--manager-orders .orders-table .table-row > span:nth-child(4) > small { margin: 0; }
  .admin-main--manager-orders .orders-table .table-row > span:nth-child(7) {
    top: auto;
    right: 15px;
    bottom: 21px;
    transform: none;
  }
  .admin-main--manager-orders .orders-table .table-row span > strong {
    overflow: visible;
    font-size: 17px;
    line-height: 1.25;
    text-overflow: clip;
    white-space: normal;
  }
  .admin-main--manager-orders .orders-table .table-row span > small {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.35;
  }
  .admin-main--manager-orders .order-row-customer > strong {
    font-size: 19px !important;
  }
  .admin-main--manager-orders .order-row-phone {
    margin-top: 7px;
    font-size: 16px;
  }
  .admin-main--manager-orders .orders-table .order-row-comment {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.45;
    -webkit-line-clamp: 3;
  }
  .admin-main--manager-orders .order-row-fulfillment > strong {
    min-height: 40px;
    padding-inline: 12px;
    font-size: 14px;
  }
  .admin-main--manager-orders .orders-table .order-row-fulfillment > small {
    margin-top: 7px;
    font-size: 12px;
  }
  .admin-main--manager-orders .status-pill {
    min-height: 40px;
    padding-inline: 11px;
    font-size: 12px;
  }
  .admin-main--manager-orders .new-order-callout {
    margin-top: 8px !important;
    font-size: 12px !important;
    white-space: normal;
  }

  .admin-detail-drawer > header {
    min-height: 62px;
    padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
  }
  .admin-detail-drawer { width: 100%; }
  .admin-detail-drawer > header h2 { font-size: 24px; }
  .admin-detail-drawer > header p { margin-top: 3px; font-size: 10px; }
  .admin-detail-drawer > header button { width: 42px; height: 42px; }
  .order-drawer__summary { gap: 9px; padding: 10px 12px; }
  .order-summary-card {
    min-height: 76px;
    grid-template-columns: 42px minmax(0, 1fr);
    border-radius: 15px;
    padding: 11px 12px;
  }
  .order-summary-card > i { width: 42px; height: 42px; }
  .order-summary-card small { font-size: 10px; }
  .order-summary-card strong { font-size: 14px; }
  .order-summary-card a,
  .order-summary-card em { font-size: 12px; }
  .order-summary-card--comment strong { font-size: 13px; }
  .order-drawer__layout { gap: 10px; padding: 10px 12px 18px; }
  .order-drawer__layout section { border-radius: 16px; padding: 14px; }
  .order-drawer__layout section > header span { font-size: 9px; }
  .order-drawer__layout section > header h3 { font-size: 18px; }
  .order-drawer__layout section > header > b { min-width: 32px; height: 32px; font-size: 10px; }
  .drawer-order-item strong { font-size: 13px; }
  .drawer-order-item small,
  .drawer-order-item__quantity,
  .drawer-order-item__unit,
  .drawer-order-item > b { font-size: 11px; }
  .drawer-totals,
  .drawer-totals.has-delivery {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .drawer-totals div,
  .drawer-totals div:first-child,
  .drawer-totals div:last-child {
    display: flex;
    min-height: 28px;
    align-items: center;
    justify-content: space-between;
    border-left: 0;
    padding: 0;
    font-size: 12px;
  }
  .drawer-totals b { font-size: 14px; }
  .drawer-totals .total { border-top: 1px solid var(--portal-line); padding-top: 10px; }
  .drawer-totals .total b { font-size: 21px; }
  .drawer-delivery-cost label > span { font-size: 12px; }
  .drawer-delivery-cost label > small { font-size: 10px; }
  .drawer-delivery-cost input { height: 48px; font-size: 16px; }
  .drawer-delivery-cost > p { font-size: 11px; }
  .drawer-timeline > div { min-height: 68px; }
  .drawer-timeline > div strong { font-size: 13px; }
  .drawer-timeline > div small { font-size: 11px; }
  .drawer-timeline > div > time { font-size: 9px; }
  .admin-detail-drawer > footer { gap: 8px; padding: 9px 12px calc(9px + env(safe-area-inset-bottom)); }
  .admin-detail-drawer > footer button { min-height: 46px; font-size: 13px; }

  .admin-modal form {
    max-height: 96dvh;
    max-width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    border-radius: 22px 22px 0 0;
    padding: 20px 15px calc(20px + env(safe-area-inset-bottom));
  }
  .manual-order-form header h2 { font-size: 26px; }
  .manual-order-form header p { font-size: 12px; }
  .admin-modal form.manual-order-form > header > button { width: 44px; height: 44px; }
  .admin-modal .manual-order-form .modal-row,
  .admin-modal .manual-order-form .manual-product-row {
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .manual-order-form label { font-size: 12px; }
  .manual-order-form label,
  .manual-order-form input,
  .manual-order-form select,
  .manual-order-form textarea { min-width: 0; max-width: 100%; }
  .admin-modal form.manual-order-form input,
  .admin-modal form.manual-order-form select { height: 48px; font-size: 16px; }
  .admin-modal form.manual-order-form textarea { font-size: 16px; }
  .manual-order-total { padding: 15px; }

  .admin-main--catalog {
    padding: 12px 10px calc(28px + env(safe-area-inset-bottom));
  }
  .admin-main--catalog .catalog-control {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .admin-main--catalog .catalog-management-toolbar {
    overflow: hidden;
    border: 1px solid var(--portal-line);
    border-radius: 18px;
    background: #fff;
  }
  .admin-main--catalog .catalog-toolbar-primary {
    grid-template-columns: minmax(0, 1fr) 84px;
    gap: 9px;
    padding: 12px;
  }
  .admin-main--catalog .catalog-search {
    min-height: 52px;
    border-radius: 13px;
    padding-inline: 12px;
  }
  .admin-main--catalog .catalog-search small { font-size: 9px; }
  .admin-main--catalog .catalog-search input { font-size: 14px; }
  .admin-main--catalog .catalog-result-count {
    min-width: 0;
    border-radius: 13px;
    padding-inline: 8px;
  }
  .admin-main--catalog .catalog-result-count strong { font-size: 20px; }
  .admin-main--catalog .catalog-result-count small { font-size: 9px; white-space: normal; }
  .admin-main--catalog .catalog-toolbar-secondary {
    gap: 10px;
    padding: 12px;
  }
  .admin-main--catalog .catalog-category-control { width: 100%; }
  .admin-main--catalog .catalog-category-control > span { font-size: 10px; }
  .admin-main--catalog .catalog-management-toolbar .catalog-category-control select {
    height: 46px;
    border-radius: 12px;
    font-size: 13px;
  }
  .admin-main--catalog .catalog-availability-filters {
    width: 100%;
    padding: 4px;
  }
  .admin-main--catalog .catalog-availability-filters button {
    min-height: 40px;
    flex: 1 0 auto;
    justify-content: center;
    padding-inline: 10px;
    font-size: 11px;
  }
  .admin-main--catalog .catalog-availability-filters button > b {
    min-width: 21px;
    height: 21px;
    font-size: 9px;
  }
  .admin-main--catalog .catalog-table {
    display: grid;
    gap: 11px;
    overflow: visible;
    margin-top: 11px;
  }
  .admin-main--catalog .catalog-table .table-row {
    min-height: 116px;
    gap: 9px 13px;
    margin: 0;
    border: 1px solid var(--portal-line);
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 8px 22px rgba(25,32,28,.045);
  }
  .admin-main--catalog .catalog-product { gap: 12px; }
  .admin-main--catalog .catalog-product img {
    width: 56px;
    height: 64px;
    border-radius: 12px;
  }
  .admin-main--catalog .catalog-product strong {
    overflow: visible;
    font-size: 14px;
    line-height: 1.25;
    text-overflow: clip;
    white-space: normal;
  }
  .admin-main--catalog .catalog-product small { margin-top: 5px; font-size: 11px; }
  .admin-main--catalog .catalog-product em { margin-top: 4px; font-size: 9px; }
  .admin-main--catalog .catalog-table .table-row > span:nth-of-type(2) {
    padding-left: 68px;
    font-size: 11px;
  }
  .admin-main--catalog .catalog-table .table-row > span:nth-of-type(3) strong { font-size: 15px; }
  .admin-main--catalog .availability-control { gap: 7px; }
  .admin-main--catalog .availability-control > small { font-size: 10px; }
  .admin-main--catalog .switch { width: 48px; height: 28px; }
  .admin-main--catalog .switch i { top: 3px; left: 3px; width: 22px; height: 22px; }
  .admin-main--catalog .switch.is-on i { transform: translateX(20px); }
}

@media (max-width: 360px) {
  .admin-main--manager-orders { padding-inline: 8px; }
  .admin-main--manager-orders .orders-workspace-toolbar {
    grid-template-columns: 1fr;
  }
  .admin-main--manager-orders .orders-workspace-toolbar .order-filter-control--period {
    grid-column: auto;
  }
  .admin-main--manager-orders .manager-create-order { grid-column: auto; }
  .admin-main--manager-orders .orders-table .table-row {
    grid-template-columns: minmax(0, 1fr) 104px;
    gap: 15px 11px;
    padding: 16px 15px;
  }
  .admin-main--manager-orders .order-row-customer > strong { font-size: 18px !important; }
  .admin-main--manager-orders .order-row-phone { font-size: 15px; }
  .admin-detail-drawer > footer.has-confirmation-actions { grid-template-columns: 1fr; }
  .admin-detail-drawer > footer.has-confirmation-actions > .ghost-button { grid-column: auto; }
  .admin-main--catalog { padding-inline: 8px; }
  .admin-main--catalog .catalog-toolbar-primary { grid-template-columns: minmax(0, 1fr) 76px; }
  .admin-main--catalog .catalog-availability-filters button { padding-inline: 8px; font-size: 10px; }
}

/* Final mobile admin adaptation: readable controls without clipped navigation. */
@media (max-width: 680px) {
  .portal-body.admin-body,
  .admin-shell,
  .admin-workspace,
  .admin-main,
  [data-admin-content] {
    width: 100%;
    min-width: 0;
  }

  .admin-main button,
  .admin-main a,
  .admin-mobile-nav button,
  .admin-sidebar button,
  .admin-sidebar a {
    touch-action: manipulation;
  }

  .admin-mobile-nav span {
    max-width: none;
    overflow: visible;
    font-size: 10px;
    letter-spacing: -.025em;
    text-overflow: clip;
  }

  .coupon-toolbar,
  .customer-db-toolbar {
    position: static;
    width: 100%;
    min-width: 0;
    gap: 10px;
    padding: 12px;
  }

  .coupon-toolbar > label,
  .customer-db-toolbar > label {
    height: 48px;
    border-radius: 13px;
  }

  .coupon-toolbar input,
  .customer-db-toolbar input {
    font-size: 16px;
  }

  .coupon-toolbar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    overflow: visible;
  }

  .coupon-toolbar nav button {
    min-width: 94px;
    min-height: 40px;
    flex: 1 1 calc(33.333% - 6px);
    padding: 6px 9px;
    font-size: 11px;
    line-height: 1.15;
    white-space: normal;
  }

  .coupon-table {
    gap: 10px;
    padding: 10px;
  }

  .coupon-table .coupon-row {
    border-radius: 17px;
    padding: 15px;
  }

  .campaign-card__body {
    padding: 18px;
  }

  .campaign-card__body h3 {
    font-size: 22px;
    line-height: 1.12;
  }

  .campaign-card__body > p {
    font-size: 14px;
    line-height: 1.45;
  }

  .campaign-card__conditions > span {
    min-height: 58px;
    padding: 12px;
  }

  .campaign-card__body > footer button,
  .campaign-card__body > footer a {
    min-height: 44px;
    font-size: 12px;
  }
}

@media (max-width: 390px) {
  .admin-mobile-nav {
    padding-inline: 5px;
  }

  .admin-mobile-nav button {
    padding-inline: 2px;
  }

  .admin-mobile-nav span {
    font-size: 9.5px;
  }

  .coupon-toolbar nav button {
    min-width: 88px;
    font-size: 11.5px;
  }

  .marketing-command--coupons .marketing-command__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .marketing-command--coupons .marketing-command__metrics article:last-child {
    grid-column: 1 / -1;
    border-top: 1px solid #e0e5e2;
    border-left: 0;
  }

  .marketing-command--coupons .marketing-command__metrics strong {
    overflow: visible;
    text-overflow: clip;
  }
}

/* Customer cards: one clear summary instead of a nested table. */
.customer-db-head,
.customer-db-row {
  min-width: 0;
  grid-template-columns: minmax(210px, 1fr) minmax(430px, 2fr) 24px;
  grid-template-areas: "person summary arrow" !important;
  gap: 18px;
}

.customer-db-head > span:first-child { grid-area: person; }
.customer-db-head > span:nth-child(2) { grid-area: summary; }
.customer-db-head > span:last-child { grid-area: arrow; }
.customer-db-row {
  min-height: 116px;
  border: 1px solid #e0e5e2;
  border-radius: 17px;
  padding: 15px 17px;
}
.customer-db-row + .customer-db-row { margin-top: 9px; }
.customer-db-row > .customer-db-person { grid-area: person !important; }
.customer-db-row > .customer-db-summary { grid-area: summary !important; }
.customer-db-row > .row-arrow { grid-area: arrow !important; align-self: center; justify-self: end; }
.customer-db-summary {
  display: grid !important;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 0 !important;
  overflow: hidden;
  border: 1px solid #e5e9e6;
  border-radius: 14px;
  background: #f7f9f7;
}
.customer-db-last-order {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 12px;
  min-width: 0;
  border-bottom: 1px solid #e0e5e2;
  padding: 9px 14px;
}
.customer-db-last-order > small,
.customer-db-stats small {
  color: #7d8881;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .035em;
  line-height: 1.15;
  text-transform: uppercase;
}
.customer-db-last-order > span {
  display: flex;
  min-width: 0;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
}
.customer-db-last-order strong,
.customer-db-stats strong {
  overflow: visible;
  color: #25302a;
  font-size: 16px;
  line-height: 1.2;
  text-overflow: clip;
  white-space: nowrap;
}
.customer-db-last-order em {
  color: #78827c;
  font-size: 11px;
  font-style: normal;
  white-space: nowrap;
}
.customer-db-stats {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}
.customer-db-stats > span {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 8px;
  border-left: 1px solid #e0e5e2;
  padding: 10px 14px;
}
.customer-db-stats > span:first-child { border-left: 0; }
.customer-db-row:hover .customer-db-summary { border-color: #eed49e; background: #fffaf0; }

@media (max-width: 1200px) {
  .customer-db-table { padding: 10px; }
  .customer-db-row {
    grid-template-columns: minmax(210px, .9fr) minmax(410px, 1.6fr) 20px;
    grid-template-areas: "person summary arrow" !important;
    gap: 16px;
  }
}

@media (max-width: 760px) {
  .customer-db-row {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) 24px;
    grid-template-areas:
      "person arrow"
      "summary summary" !important;
    gap: 14px 10px;
    padding: 15px;
  }
  .customer-db-row + .customer-db-row { margin-top: 0; }
  .customer-db-last-order { padding: 13px 14px; }
  .customer-db-stats > span { min-height: 70px; padding: 11px 12px; }
  .customer-db-person > i { width: 48px; height: 48px; }
  .customer-db-person strong { font-size: 16px; }
  .customer-db-person small { font-size: 13px; }
}

@media (max-width: 390px) {
  .customer-db-table { padding: 9px; }
  .customer-db-stats > span { padding-inline: 9px; }
  .customer-db-stats small { font-size: 9px; }
  .customer-db-stats strong { font-size: 15px; }
}

/* Campaign posters: upload a finished visual without rebuilding it in the UI. */
.admin-modal .coupon-builder-form textarea {
  min-height: 104px;
  resize: vertical;
  border: 1px solid #dce2de;
  border-radius: 12px;
  padding: 14px 15px;
  color: #26302a;
  background: #fff;
  font: inherit;
  font-size: 15px;
  line-height: 1.45;
}
.campaign-poster-field {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  border: 1px solid #e0e5e2;
  border-radius: 17px;
  padding: 16px;
  background: #f7f9f7;
}
.campaign-poster-field[hidden] { display: none !important; }
.campaign-poster-field__heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.campaign-poster-field__heading > span { color: #5d6862; font-size: 13px; font-weight: 850; }
.campaign-poster-field__heading > small { color: #7d8781; font-size: 11px; }
.campaign-poster-stage {
  position: relative;
  display: grid;
  width: min(360px, 100%);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  justify-self: center;
  place-items: center;
  border: 1px solid #d9dfdb;
  border-radius: 18px;
  background: #171a18;
}
.campaign-poster-stage > img { width: 100%; height: 100%; object-fit: contain; }
.campaign-poster-stage > img[hidden] { display: none; }
.campaign-poster-stage > span { display: none; max-width: 240px; gap: 7px; padding: 22px; color: #e4e9e5; text-align: center; }
.campaign-poster-stage.is-empty > span { display: grid; }
.campaign-poster-stage > span b { font-size: 15px; }
.campaign-poster-stage > span small { color: #9da69f; font-size: 11px; line-height: 1.45; }
.campaign-poster-actions { display: flex; justify-content: center; gap: 8px; }
.campaign-poster-actions button { min-height: 44px; border: 1px solid #efbd5d; border-radius: 12px; padding: 0 16px; color: #724700; background: #fff3d8; font-size: 12px; font-weight: 850; cursor: pointer; }
.campaign-poster-actions button:last-child { border-color: #dfe4e1; color: #67716b; background: #fff; }
.campaign-card--poster { grid-template-columns: minmax(260px, 36%) minmax(0, 1fr); }
.campaign-card__media.is-poster { width: 100%; min-width: 0; max-width: 100%; min-height: 410px; background: #171a18; }
.campaign-card__media.is-poster::after { display: none; }
.campaign-card__media.is-poster .campaign-card__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
  transform: none;
}
.campaign-card__media.is-poster > span { z-index: 2; color: #fff; background: rgba(18,21,19,.78); backdrop-filter: blur(8px); }

@media (max-width: 760px) {
  .campaign-poster-field__heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .campaign-card--poster { grid-template-columns: 1fr; }
  .campaign-card__media.is-poster { min-height: 0; aspect-ratio: 4 / 5; }
  .campaign-poster-actions { align-items: stretch; flex-direction: column; }
  .campaign-poster-actions button { width: 100%; }
}
