

.bp-page {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
}

.bp-hidden { display: none !important; }

.bp-login {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100vh;
}

.bp-login-brand {
  background: var(--color-accent-solid);
  color: var(--color-bg);
  padding: 56px 56px 48px;
  display: flex;
  flex-direction: column;
}

.bp-login-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: auto;
}

.bp-wordmark-inv {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.04em;
  color: var(--color-bg);
}

.bp-kicker-inv {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 20px;
}

.bp-login-title {
  font-size: 54px;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
  color: var(--color-bg);
  max-width: 22ch;
}

.bp-login-lead {
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.9;
  margin: 0;
  max-width: 42ch;
}

.bp-login-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 2px solid color-mix(in srgb, var(--color-bg) 45%, transparent);
  margin-top: 48px;
}

.bp-login-stat { padding: 20px 16px 0 0; }
.bp-login-stat + .bp-login-stat {
  padding-left: 16px;
  border-left: 2px solid color-mix(in srgb, var(--color-bg) 45%, transparent);
}
.bp-login-stat:last-child { padding-right: 0; }

.bp-login-stat-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 30px;
  color: var(--color-bg);
}

.bp-login-stat-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-top: 4px;
}

.bp-login-formwrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 56px;
}

.bp-login-form { width: min(440px, 100%); }

.bp-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 14px;
}

.bp-login-h2 { font-size: 38px; letter-spacing: -0.03em; margin: 0 0 10px; }
.bp-login-sub { font-size: 15px; opacity: 0.65; margin: 0 0 32px; }

.bp-field-stack { display: grid; gap: 18px; }

.bp-login-submit {
  height: 52px;
  justify-content: space-between;
  padding: 0 20px;
  font-size: 15px;
  margin-top: 26px;
}

.bp-login-links {
  border-top: 2px solid var(--color-divider);
  margin-top: 28px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  flex-wrap: wrap;
}

.bp-login-error {
  border-left: 4px solid var(--color-accent);
  padding: 10px 0 10px 12px;
  margin-top: 18px;
  font-size: 13px;
}

.bp-linkbtn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 13px;
  color: var(--color-accent-text);
  cursor: pointer;
  text-underline-offset: 3px;
}
.bp-linkbtn:hover { text-decoration: underline; }

.bp-apply-wrap {
  align-items: flex-start;
  overflow-y: auto;
  max-height: 100vh;
  padding-top: 48px;
  padding-bottom: 48px;
}

.bp-apply-form { width: min(560px, 100%); }

.bp-apply-block {
  border-top: 2px solid var(--color-divider);
  padding-top: 18px;
  margin-top: 26px;
}
.bp-apply-block--last { margin-bottom: 4px; }

.bp-apply-legend {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 16px;
}

.bp-apply-services {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bp-service {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 2px solid var(--color-divider);
  background: transparent;
  color: var(--color-text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.bp-service:hover { border-color: var(--color-border-strong); }
.bp-service.is-on {
  background: var(--color-accent-solid);
  border-color: var(--color-accent-solid);
  color: var(--color-bg);
}

@media (max-width: 900px) {
  .bp-login { grid-template-columns: minmax(0, 1fr); }
  .bp-login-brand { padding: 36px 28px 32px; }
  .bp-login-title { font-size: 38px; }
  .bp-login-stats { margin-top: 32px; }
  .bp-login-formwrap { padding: 36px 28px 48px; }
}

@media (max-width: 480px) {
  .bp-login-stats { grid-template-columns: minmax(0, 1fr); }
  .bp-login-stat + .bp-login-stat {
    padding-left: 0;
    border-left: none;
    border-top: 2px solid color-mix(in srgb, var(--color-bg) 45%, transparent);
  }
}

.bp-shell {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: 100vh;
  min-width: 1320px;
}

.bp-aside {
  border-right: 2px solid var(--color-divider);
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
}

.bp-aside-head { padding: 22px 22px 20px; border-bottom: 2px solid var(--color-divider); }
.bp-aside-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }

.bp-wordmark {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.035em;
}
.bp-wordmark-dot { color: var(--color-accent); }

.bp-aside-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.5;
}

.bp-aside-biz { padding: 20px 22px; border-bottom: 2px solid var(--color-divider); }

.bp-biz-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.bp-biz-state { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.bp-dot { width: 8px; height: 8px; background: var(--color-accent); flex: none; }
.bp-dot--muted { background: color-mix(in srgb, var(--color-text) 35%, transparent); }
.bp-biz-state-text { font-size: 12px; opacity: 0.65; }

.bp-nav { padding: 20px 0; flex: 1; }

.bp-nav-group {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.42;
  padding: 0 22px 10px;
}
.bp-nav-group--spaced { padding-top: 24px; }

.bp-nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px 22px;
  background: transparent;
  color: color-mix(in srgb, var(--color-text) 68%, transparent);
  border: none;
  border-left: 4px solid transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.bp-nav-item:hover { background: color-mix(in srgb, var(--color-text) 4%, transparent); }
.bp-nav-item.is-active {
  background: color-mix(in srgb, var(--color-text) 7%, transparent);
  color: var(--color-text);
  border-left-color: var(--color-accent);
}
.bp-nav-item-label { flex: 1; }

.bp-nav-badge {
  min-width: 22px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  background: var(--color-accent-solid);
  color: var(--color-bg);
  font-size: 11px;
  font-weight: 700;
  padding: 0 5px;
}

.bp-aside-foot { padding: 18px 22px; border-top: 2px solid var(--color-divider); }

.bp-signout {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--color-text);
  opacity: 0.7;
}
.bp-signout:hover { opacity: 1; }

.bp-main { min-width: 0; display: flex; flex-direction: column; }

.bp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 32px;
  height: 76px;
  border-bottom: 2px solid var(--color-divider);
}

.bp-header-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.5;
}

.bp-header-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.025em;
  margin-top: 2px;
}

.bp-header-right { display: flex; align-items: center; gap: 20px; }

.bp-datechip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--color-divider);
  padding: 7px 11px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bp-user { display: flex; align-items: center; gap: 10px; }

.bp-avatar {
  width: 34px;
  height: 34px;
  background: var(--color-text);
  color: var(--color-bg);
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 13px;
}

.bp-user-lines { line-height: 1.25; }
.bp-user-name { display: block; font-size: 13px; font-weight: 700; }
.bp-user-role { display: block; font-size: 11px; opacity: 0.55; }

.bp-content { flex: 1; padding: 32px; min-width: 0; }

.bp-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 2px solid var(--color-text);
  border-left: 2px solid var(--color-divider);
  margin-bottom: 32px;
}

.bp-stat {
  padding: 22px;
  border-right: 2px solid var(--color-divider);
  border-bottom: 2px solid var(--color-divider);
}

.bp-stat-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 14px;
}

.bp-stat-value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.03em;
}
.bp-stat-value--num { font-variant-numeric: tabular-nums; }
.bp-stat-value--accent { color: var(--color-accent); }

.bp-stat-note { font-size: 12px; opacity: 0.55; margin-top: 10px; }

.bp-dash-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 32px;
}

.bp-section { min-width: 0; }
.bp-section--scroll { overflow-x: auto; }

.bp-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.bp-h2 { font-size: 22px; letter-spacing: -0.02em; margin: 0; }
.bp-h2--mb { margin-bottom: 16px; }
.bp-h3 { font-size: 20px; letter-spacing: -0.015em; margin: 0 0 18px; }

.bp-menustat { border-top: 2px solid var(--color-divider); }
.bp-menustat-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-divider);
}
.bp-menustat-row:last-child { border-bottom: none; }
.bp-menustat-name { font-size: 14px; }
.bp-menustat-val { font-size: 14px; font-weight: 700; }

.bp-callout { border: 2px solid var(--color-accent); padding: 16px 18px; margin-top: 24px; }
.bp-callout-title { font-family: var(--font-heading); font-weight: 800; font-size: 15px; margin-bottom: 6px; }
.bp-callout-text { font-size: 13px; line-height: 1.6; opacity: 0.7; margin: 0 0 12px; }

.td-first, .th-first { padding-left: 0; }
.td-right, .th-right { text-align: right; padding-right: 0; }
.td-num { font-variant-numeric: tabular-nums; }
.td-num-bold { font-variant-numeric: tabular-nums; font-weight: 700; }
.td-muted { opacity: 0.65; }
.td-right-num { text-align: right; font-variant-numeric: tabular-nums; }

.bp-pill {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 9px;
  white-space: nowrap;
}
.bp-pill--pending { background: var(--color-accent-solid); color: var(--color-bg); }
.bp-pill--confirmed { background: var(--color-text); color: var(--color-bg); }
.bp-pill--ready { background: var(--color-accent-200); color: var(--color-accent-800); }
.bp-pill--completed { background: color-mix(in srgb, var(--color-text) 10%, transparent); color: var(--color-text); }

.bp-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--color-divider);
}
.bp-toolbar-text { font-size: 14px; opacity: 0.65; margin: 0; }

.bp-filters { display: flex; border: 2px solid var(--color-border-strong); }
.bp-filter {
  height: 36px;
  padding: 0 14px;
  background: transparent;
  color: var(--color-text);
  border: none;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.bp-filter + .bp-filter { border-left: 2px solid var(--color-border-strong); }
.bp-filter.is-active { background: var(--color-accent-solid); color: var(--color-bg); }

.bp-order {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
  padding: 26px 0;
  border-bottom: 2px solid var(--color-divider);
}

.bp-order-head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.bp-order-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.bp-order-meta { font-size: 13px; opacity: 0.55; }
.bp-order-lines { font-size: 14px; }
.bp-qty { padding-left: 0; width: 44px; opacity: 0.55; font-variant-numeric: tabular-nums; }

.bp-order-note {
  border-left: 4px solid var(--color-accent);
  padding: 8px 0 8px 12px;
  margin-top: 12px;
  font-size: 13px;
  opacity: 0.75;
}

.bp-order-side { border-top: 2px solid var(--color-divider); padding-top: 14px; margin-bottom: 16px; }

.bp-kv { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 5px 0; }
.bp-kv-key { opacity: 0.6; }
.bp-kv-val { font-weight: 700; }
.bp-kv-val--right { font-weight: 700; text-align: right; }
.bp-kv-total {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.bp-order-actions { display: flex; flex-direction: column; gap: 8px; }

.btn--row {
  height: 42px;
  justify-content: flex-start;
  padding: 0 14px;
  margin-top: 0;
}
.btn--bordered { border-width: 2px; }

.bp-empty {
  padding: 40px 0;
  font-size: 14px;
  opacity: 0.6;
}

.bp-dish-name { font-weight: 700; font-size: 14px; }
.bp-dish-desc { font-size: 12px; opacity: 0.55; margin-top: 2px; }

.bp-avail {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 8px;
  border: 2px solid var(--color-border-strong);
  background: transparent;
  color: color-mix(in srgb, var(--color-text) 60%, transparent);
  font-family: inherit;
  cursor: pointer;
}
.bp-avail.is-on {
  background: var(--color-accent-solid);
  border-color: var(--color-accent-solid);
  color: var(--color-bg);
}

.bp-groups { margin-bottom: 32px; }
.bp-groups-add { display: flex; gap: 10px; align-items: center; }
.bp-groups-input { width: 260px; max-width: 46vw; }

.bp-group-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-divider);
}
.bp-group-row:first-child { border-top: 2px solid var(--color-divider); }
.bp-group-row:last-child { border-bottom: none; }
.bp-group-row.is-off .bp-group-name { opacity: 0.45; }

.bp-group-name { flex: 1 1 auto; min-width: 0; }
.bp-group-count {
  flex: 0 0 auto;
  font-size: 12px;
  opacity: 0.55;
  font-variant-numeric: tabular-nums;
}
.bp-group-acts { display: flex; gap: 8px; flex: 0 0 auto; }

.bp-group-move {
  width: 40px;
  height: 40px;
  border: 2px solid var(--color-border-strong);
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
}
.bp-group-move[disabled] { opacity: 0.3; cursor: default; }

@media (max-width: 720px) {
  .bp-groups .bp-section-head { flex-direction: column; align-items: stretch; }
  .bp-groups-input { width: auto; max-width: none; flex: 1 1 auto; }
  .bp-group-row { flex-wrap: wrap; }
  .bp-group-name { flex: 1 1 100%; }
}

.bp-hours { max-width: 820px; }

.bp-hours-row {
  display: grid;
  grid-template-columns: 150px 120px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-divider);
}

.bp-hours-day { font-family: var(--font-heading); font-weight: 800; font-size: 16px; }

.bp-hours-toggle {
  height: 34px;
  background: transparent;
  color: color-mix(in srgb, var(--color-text) 60%, transparent);
  border: 2px solid var(--color-border-strong);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
.bp-hours-toggle.is-open {
  background: var(--color-accent-solid);
  border-color: var(--color-accent-solid);
  color: var(--color-bg);
}

.bp-hours-times { display: flex; align-items: center; gap: 12px; }
.bp-hours-dash { width: 14px; height: 2px; background: var(--color-divider); }
.bp-hours-hint { font-size: 12px; opacity: 0.5; margin-left: 8px; }

.bp-form-actions { display: flex; gap: 10px; margin-top: 28px; }

.bp-mt-lg { margin-top: 28px; }
.bp-mt-md { margin-top: 16px; }

.bp-lead {
  font-size: 14px;
  opacity: 0.65;
  margin: 0 0 24px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--color-divider);
}
.bp-lead--tight { margin-bottom: 20px; }

.bp-profile-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 40px;
}

.bp-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.span-2 { grid-column: 1 / -1; }

.bp-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 14px;
}
.bp-label--spaced { margin-top: 28px; }

.bp-hint { font-size: 12px; line-height: 1.6; opacity: 0.55; margin: 10px 0 0; }

.bp-imageslot {
  position: relative;
  display: block;
  border: 2px solid var(--color-border-strong);
  background: var(--color-surface);
  cursor: pointer;
  overflow: hidden;
}
.bp-imageslot--cover { height: 220px; }
.bp-imageslot--logo { width: 140px; height: 140px; }
.bp-imageslot--dish { height: 170px; }
.bp-imageslot:hover { border-color: var(--color-accent); }
.bp-imageslot img { width: 100%; height: 100%; object-fit: cover; }
.bp-imageslot--logo img { object-fit: contain; }
.bp-imageslot-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 12px;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  opacity: 0.55;
}
.bp-imageslot input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.bp-sec-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  max-width: 1000px;
}

.bp-list { border-top: 2px solid var(--color-divider); }
.bp-list-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-divider);
}
.bp-list-row:last-child { border-bottom: none; }
.bp-list-key { font-size: 14px; font-weight: 700; }
.bp-list-val { font-size: 13px; opacity: 0.6; margin-top: 2px; }

.bp-badge-ok {
  background: var(--color-accent-solid);
  color: var(--color-bg);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 9px;
  height: fit-content;
}
.bp-badge-warn {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-divider);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 7px;
  height: fit-content;
}

.bp-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: color-mix(in srgb, var(--color-neutral-900) 55%, transparent);
  display: grid;
  place-items: center;
  padding: 32px;
}

.bp-modal {
  width: min(620px, 100%);
  background: var(--color-bg);
  border: 2px solid var(--color-text);
  box-shadow: var(--shadow-lg);
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}

.bp-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  border-bottom: 2px solid var(--color-text);
}

.bp-modal-title { font-size: 22px; margin: 0; letter-spacing: -0.02em; }

.bp-modal-close {
  width: 32px;
  height: 32px;
  background: none;
  border: 2px solid var(--color-border-strong);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text);
}
.bp-modal-close:hover { border-color: var(--color-accent); color: var(--color-accent-text); }

.bp-modal-body { padding: 26px; }

.bp-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 120;
  max-width: 380px;
  padding: 14px 18px;
  background: var(--color-text);
  color: var(--color-bg);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
}
.bp-toast--error { background: var(--color-accent-solid); }

.bp-busy {
  padding: 40px 0;
  font-size: 14px;
  opacity: 0.6;
}

.input--lg { height: 48px; border-width: 2px; }
.input--md { height: 46px; border-width: 2px; }
.input--sm { height: 40px; border-width: 2px; }
.input--time { width: 104px; height: 40px; border-width: 2px; font-variant-numeric: tabular-nums; }
textarea.input--md { height: auto; min-height: 110px; }
textarea.input--sm { height: auto; min-height: 88px; }
