/* Surf Coffee / Blue Hawaii Roast. Local preview only. Asset sources: repository brand-assets-provenance.json. */
@font-face { font-family: "Factor A"; src: url("/static/brand/fonts/factor-a-regular.woff") format("woff"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Factor A"; src: url("/static/brand/fonts/factor-a-medium.woff") format("woff"); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: "Factor A"; src: url("/static/brand/fonts/factor-a-bold.woff") format("woff"); font-style: normal; font-weight: 700; font-display: swap; }
@font-face { font-family: "Roslindale BHR"; src: url("/static/brand/fonts/roslindale-display.woff") format("woff"); font-style: normal; font-weight: 400; font-display: swap; }
/* Numeric subset of the supplied HelveticaNeueCyr. Factor A has proportional digits. */
@font-face { font-family: "BHR Data"; src: url("/static/brand/fonts/helvetica-data.woff") format("woff"); font-style: normal; font-weight: 400; font-display: swap; }

:root {
  --font: "Factor A", Arial, sans-serif;
  --font-display: "Roslindale BHR", Georgia, serif;
  --bg: #f3f1ed; --card: #fcfbf8; --card-2: #ebe8e2;
  --text: #2c2925; --muted: #686158; --text-secondary: #625e57; --faint: #686158;
  --line: #dcd7cf; --primary: #2c2925; --primary-ink: #fcfbf8;
  --primary-soft: #e6dfd4; --primary-line: #b4aa9c; --accent-text: #2c2925;
  --brand: #416b68; --brand-soft: #e5eeeb;
  --sand: #ece6dc; --hit: #f0e9de; --hit-accent: #b9a181; --sand-ink: #2c2925;
  --radius: 12px; --radius-sm: 8px; --shadow: none;
  --header-h: 79px;
}
:root[data-theme="dark"] {
  --bg: #181817; --card: #212120; --card-2: #2c2b28;
  --text: #f3f0e9; --muted: #bdb6aa; --text-secondary: #c6bfb3; --faint: #b4aea3;
  --line: #47443e; --primary: #f3f0e9; --primary-ink: #212120;
  --primary-soft: #35322d; --primary-line: #7b7367; --accent-text: #f3f0e9;
  --brand: #a4c6c1; --brand-soft: #2b3b38;
  --sand: #302e2a; --hit: #322f29;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #181817; --card: #212120; --card-2: #2c2b28;
    --text: #f3f0e9; --muted: #bdb6aa; --text-secondary: #c6bfb3; --faint: #b4aea3;
    --line: #47443e; --primary: #f3f0e9; --primary-ink: #212120;
    --primary-soft: #35322d; --primary-line: #7b7367; --accent-text: #f3f0e9;
    --brand: #a4c6c1; --brand-soft: #2b3b38;
    --sand: #302e2a; --hit: #322f29;
  }
}

html, body { font-size: 15px; line-height: 1.45; }
::selection { color: var(--primary-ink); background: var(--primary); }
input, textarea { caret-color: var(--text); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
/* The stepper is filled with primary ink; draw its ring inside that surface. */
.stepper :is(button, input):focus-visible { outline: 2px solid var(--primary-ink); outline-offset: -3px; }
/* These legacy CRM surfaces bypass the shared theme in admin.css. */
.admin .bulkbar { background: var(--card-2); color: var(--text); }
.admin .bulkbar select, .admin .bulkbar input { background: var(--card); color: var(--text); border-color: var(--primary-line); }
.admin .bulkbar .btn:not(.primary) { background: transparent; color: var(--text); border-color: var(--primary-line); }
.admin .msg .bub { color: var(--text); }
.toast { background: var(--text); color: var(--bg); }
.brand-lockup { display: inline-flex; align-items: center; gap: 16px; flex: none; color: var(--text); }
.brand-lockup img { display: block; object-fit: contain; flex: none; }
.brand-lockup .brand-compact { display: none; }
.brand-lockup .brand-surf { box-sizing: content-box; padding-left: 16px; border-left: 1px solid var(--line); }
.brand-scope { font-size: 12px; color: var(--muted); font-weight: 400; white-space: nowrap; }
:root[data-theme="dark"] .brand-lockup img { filter: invert(1); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-lockup img { filter: invert(1); }
}
.topbar { gap: 16px; }
.page-h { align-items: center; padding-bottom: 17px; margin-bottom: 22px; border-bottom: 1px solid var(--text); }
.page-h h1 { font-size: 38px; line-height: 1.08; font-weight: 400; letter-spacing: -.015em; }
.admin .page-h h1 { font-family: var(--font); font-size: 26px; line-height: 1.2; font-weight: 500; letter-spacing: -.025em; }
.section-heading, .card-h .section-heading, .card-h h2, .card-h h3 { font-family: var(--font); font-size: 16px; line-height: 1.35; font-weight: 500; letter-spacing: 0; }
.big { font-family: var(--font); font-weight: 500; letter-spacing: -.02em; }
.btn { border-radius: 999px; padding-left: 20px; padding-right: 20px; font-weight: 400; }
.btn.primary { font-weight: 500; }
.iconbtn, .input, .price-in { border-radius: 8px; }
.btn:not(.primary):not(.ghost):hover { border-color: var(--text); }
.card { box-shadow: none; }
.card-h { padding: 16px 18px; }
.card-b, .card-f { padding-left: 18px; padding-right: 18px; }
.li { padding: 14px 18px; }
.nav a, .admin .nav a { font-size: 14px; gap: 10px; border-radius: 6px; }
.nav a .icon { width: 17px; height: 17px; stroke-width: 1.6; }
.nav a.on, .admin .nav a.on { background: var(--primary-soft); color: var(--text); font-weight: 500; box-shadow: none; }
.admin .nav-group-toggle { font-size: 12px; font-weight: 500; letter-spacing: 0; }
.repeat-order-card .card-f { border-top-color: var(--text); }
.repeat-order-actions > .btn { min-height: 46px; }
.repeat-order-actions > .link { font-weight: 400; }
.product { padding: 16px 18px; gap: 14px; }
.product .name { font-size: 16px; font-weight: 500; }
.product .desc { margin-top: 4px; font-size: 13px; line-height: 1.5; max-width: 65ch; }
.product .meta { font-size: 12px; }
.cat-head { font-size: 13px; font-weight: 500; padding: 15px 18px 6px; }
.price { font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; }
.num, .price, .big, .stat .v, .delta, .stepper input, .right, .tbl .r,
#cart-sum .bold, #co-sum .bold, .repeat-order-card .li > b { font-family: "BHR Data", var(--font); font-variant-numeric: tabular-nums; }
.counter { font-weight: 500; }
.chip { border-radius: 4px; font-weight: 400; }
.reception-panel { font-family: var(--font); }
.timing.hot .muted { color: inherit; opacity: .82; }
.login .row:has(.brand-lockup) { align-items: flex-start; flex-direction: column; gap: 16px; }
.login h1 { font-family: var(--font-display); font-size: 32px; font-weight: 400; line-height: 1.15; }

@media (min-width: 900px) {
  .topbar, .admin .topbar { padding-top: 12px; padding-bottom: 12px; }
  .sidebar, .admin .sidebar { top: var(--header-h); height: calc(100dvh - var(--header-h)); padding-top: 24px; }
  .page { padding-top: 30px; }
  .admin .page { padding-top: 28px; }
  .nav a, .admin .nav a { min-height: 44px; }
  .topbar .search { max-width: 420px; }
  .topbar .search { min-width: 220px; }
  .topbar .sel:not(tr) { font-size: 13px; }
}
@media (min-width: 900px) and (max-width: 1399px) {
  .topbar > .brand-scope { display: none; }
}
@media (min-width: 900px) and (max-width: 1199px) {
  :root { --header-h: 69px; }
  .topbar > .brand-scope { display: none; }
  #topsearch { display: none; }
  .brand-lockup { gap: 12px; }
  .brand-lockup .brand-surf { padding-left: 12px; }
  .brand-wordmark { width: 116px; height: 44px; }
}
@media (max-width: 899px) {
  :root { --header-h: 65px; }
  .topbar { gap: 10px; }
  .brand-lockup { gap: 8px; }
  .brand-lockup .brand-wordmark { display: none; }
  .brand-lockup .brand-compact { display: block; width: 48px; height: 30px; }
  .brand-lockup .brand-surf { width: 29px; height: 22px; padding-left: 8px; }
  .co-btn b { font-size: 13px; }
  .co-btn span { font-size: 11px; }
  .reception-launch { gap: 6px; padding: 0 10px; }
  .page-h { margin-top: 4px; margin-bottom: 18px; padding-bottom: 14px; gap: 12px; }
  .page-h h1 { font-size: 30px; }
  .admin .page-h h1 { font-size: 24px; }
  .page-h > .btn { min-height: 44px; padding: 8px 15px; font-size: 14px; }
  .card-h { padding: 14px 15px; }
  .card-b, .card-f { padding-left: 15px; padding-right: 15px; }
  .li { padding: 13px 15px; }
  .product { padding: 15px; }
  .product .desc { font-size: 13px; }
  /* The fixed cart bar already carries this same weight, count and total. */
  #cart-top { display: none; }
  .admin .topbar > .grow { display: none; }
  .admin .topbar > [data-act="logout"] { margin-left: auto; }
  .admin.workspace-menu-open .sidebar { top: calc(var(--header-h) + env(safe-area-inset-top)); }
}
@media (max-width: 359px) {
  .topbar .reception-launch > span:not(.counter) { display: none; }
  .topbar .reception-launch { min-width: 44px; padding-left: 9px; padding-right: 9px; }
  .co-btn span { font-size: 11px; }
}
