/* Brew / Kiscoff — stiluri. Culoarea de brand vine din --primary (setată per cafenea). */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/inter.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/inter-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/assets/fonts/manrope.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/assets/fonts/manrope-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --radius: 16px;
  --bg: #faf6ef;
  --fg: #2a1f18;
  --card: #ffffff;
  --secondary: #f1ebe0;
  --muted: #f1ebe0;
  --muted-fg: #7a6c60;
  --border: #e6dfd3;
  --accent: #f3e6d6;
  --primary: #b8652a;
  --primary-fg: #fffaf3;
  --destructive: #c1443a;
  --success: #3a8a5c;
  --success-fg: #ffffff;
  --shadow: 0 1px 2px rgba(60, 40, 20, .05), 0 8px 24px rgba(60, 40, 20, .07);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Manrope", ui-sans-serif, system-ui, sans-serif;
}
* { box-sizing: border-box; border-color: var(--border); }
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
html { overscroll-behavior-y: none; }
h1, h2, h3, .display { font-family: var(--font-display); letter-spacing: -.02em; margin: 0; }
h1 { font-size: 1.75rem; font-weight: 700; line-height: 1.2; }
h2 { font-size: 1.125rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 700; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.muted { color: var(--muted-fg); }
.small { font-size: .875rem; }
.xs { font-size: .75rem; }
.center { text-align: center; }
.bold { font-weight: 700; }
.semibold { font-weight: 600; }
.primary { color: var(--primary); }
.danger { color: var(--destructive); }
.stack > * + * { margin-top: 1rem; }
.stack-sm > * + * { margin-top: .5rem; }
.stack-lg > * + * { margin-top: 1.75rem; }
.row { display: flex; align-items: center; gap: .75rem; }
.row.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.grid { display: grid; gap: .75rem; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (min-width: 640px) { .grid.sm-c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid.sm-c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid.sm-c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mt { margin-top: 1rem; } .mt-sm { margin-top: .5rem; } .mt-lg { margin-top: 2rem; } .mb { margin-bottom: 1rem; }

.icon { width: 1.25rem; height: 1.25rem; flex: none; vertical-align: middle; }
.icon.lg { width: 1.75rem; height: 1.75rem; }
.icon.xl { width: 2rem; height: 2rem; }

.page { max-width: 28rem; margin: 0 auto; padding: 2rem 1.25rem 7rem; }
.page.wide { max-width: 56rem; padding-bottom: 5rem; }
.page.mid { max-width: 42rem; }
.page.narrow { padding-top: 2.5rem; padding-bottom: 3rem; min-height: 100vh; display: flex; flex-direction: column; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem; }
.card.p-lg { padding: 1.5rem; }
.card.p-sm { padding: 1rem; }
.outlined { border: 1px solid var(--border); border-radius: 12px; padding: .75rem 1rem; }

.badge-logo { width: 3rem; height: 3rem; border-radius: 16px; background: var(--primary); color: var(--primary-fg); display: flex; align-items: center; justify-content: center; overflow: hidden; flex: none; }
.badge-logo img { width: 100%; height: 100%; object-fit: cover; }
.badge-logo.lg { width: 3.5rem; height: 3.5rem; }

/* butoane */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.75rem; padding: 0 1.1rem; border-radius: 12px; border: 1px solid transparent; background: var(--primary); color: var(--primary-fg); font-weight: 600; font-size: 1rem; cursor: pointer; text-decoration: none; transition: filter .15s, background .15s; -webkit-appearance: none; }
.btn:hover { filter: brightness(1.06); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn.block { display: flex; width: 100%; }
.btn.lg { min-height: 3.5rem; border-radius: 16px; font-size: 1.05rem; }
.btn.md { min-height: 3rem; }
.btn.xl { min-height: 4rem; border-radius: 16px; font-size: 1.15rem; }
.btn.secondary { background: var(--secondary); color: var(--fg); }
.btn.outline { background: transparent; color: var(--fg); border-color: var(--border); }
.btn.ghost { background: transparent; color: var(--fg); }
.btn.danger-t { color: var(--destructive); }
.btn.success { background: var(--success); color: var(--success-fg); }
.btn.sm { min-height: 2.5rem; padding: 0 .9rem; font-size: .9rem; }

/* formulare */
label, .label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .4rem; }
.field + .field { margin-top: 1rem; }
.input, select.input, textarea.input { display: block; width: 100%; min-height: 3rem; padding: .6rem .9rem; border-radius: 12px; border: 1px solid var(--border); background: var(--card); font-size: 1rem; -webkit-appearance: none; appearance: none; }
textarea.input { min-height: 6rem; resize: vertical; }
select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237a6c60' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; padding-right: 2.2rem; }
.input.code { height: 3.5rem; text-align: center; font-family: var(--font-display); font-size: 1.6rem; letter-spacing: .4em; padding-left: 1.2rem; }
.input.time { width: 7.5rem; min-height: 2.5rem; }
.input.num { width: 6rem; }
.input.hex { font-family: ui-monospace, monospace; text-transform: uppercase; }
input[type=color].input { padding: .25rem; min-height: 3rem; }
.check { display: flex; align-items: flex-start; gap: .75rem; font-size: .875rem; font-weight: 400; margin: 0; }
.check input { width: 1.25rem; height: 1.25rem; margin-top: .15rem; accent-color: var(--primary); flex: none; }
.switch { position: relative; width: 2.75rem; height: 1.6rem; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; width: 100%; height: 100%; }
.switch span { position: absolute; inset: 0; background: var(--border); border-radius: 999px; transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: .2rem; left: .2rem; width: 1.2rem; height: 1.2rem; background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span::after { transform: translateX(1.15rem); }
.switch input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.help { font-size: .8125rem; color: var(--muted-fg); margin-top: .35rem; }

/* chip-uri și status */
.chip { display: inline-flex; align-items: center; border-radius: 999px; padding: .2rem .75rem; font-size: .75rem; font-weight: 600; background: var(--muted); color: var(--muted-fg); white-space: nowrap; }
.chip.preparing { background: var(--accent); color: var(--fg); }
.chip.ready { background: var(--success); color: var(--success-fg); }
.chip.expired { background: rgba(193, 68, 58, .12); color: var(--destructive); }
.chip.cancelled { text-decoration: line-through; }
.pill { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--border); background: var(--card); font-size: .875rem; font-weight: 500; cursor: pointer; }
.pill[aria-pressed="true"], .pill.active { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); }
.pill.secondary { background: var(--secondary); border-color: transparent; }
.dayrow { display: flex; gap: .5rem; }
.daybtn { width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0; background: var(--secondary); font-weight: 600; font-size: .875rem; cursor: pointer; }
.daybtn[aria-pressed="true"] { background: var(--primary); color: var(--primary-fg); }
.tabs { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; }
.tabs a { display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--border); font-size: .875rem; font-weight: 500; white-space: nowrap; text-decoration: none; }
.tabs a.active { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); }

/* antet + navigare */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.topbar .in { max-width: 56rem; margin: 0 auto; padding: .9rem 1.25rem; }
.topbar.wide .in { max-width: 64rem; }
.bottomnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-top: 1px solid var(--border); padding: .25rem 0 calc(env(safe-area-inset-bottom, 0px) + .5rem); }
.bottomnav ul { display: flex; list-style: none; margin: 0 auto; padding: 0; max-width: 28rem; }
.bottomnav li { flex: 1; }
.bottomnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; min-height: 3.5rem; font-size: .75rem; font-weight: 500; text-decoration: none; color: var(--muted-fg); border-radius: 12px; }
.bottomnav a.active { color: var(--primary); }
.bottomnav .icon { width: 1.4rem; height: 1.4rem; }
ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain > li + li { margin-top: .5rem; }
ul.divided > li { padding: .75rem 0; border-bottom: 1px solid var(--border); }
ul.divided > li:last-child { border-bottom: 0; }

/* sertar (bottom sheet) / dialog */
.sheet-bg { position: fixed; inset: 0; z-index: 60; background: rgba(30, 20, 10, .45); display: none; align-items: flex-end; justify-content: center; }
.sheet-bg.open { display: flex; }
.sheet { background: var(--card); width: 100%; max-width: 32rem; max-height: 88vh; max-height: 88dvh; overscroll-behavior: contain; overflow-y: auto; border-radius: 24px 24px 0 0; padding: 1.25rem 1.25rem calc(env(safe-area-inset-bottom, 0px) + 2rem); animation: rise .22s ease-out both; }
.sheet .grab { width: 3rem; height: .3rem; background: var(--border); border-radius: 99px; margin: 0 auto .75rem; }
.sheet h2 { text-align: center; padding: .5rem 0 1rem; font-size: 1rem; font-weight: 600; }
dialog { border: 0; border-radius: 20px; padding: 1.5rem; max-width: 30rem; width: calc(100% - 2rem); box-shadow: 0 20px 60px rgba(0,0,0,.3); background: var(--card); color: var(--fg); }
dialog::backdrop { background: rgba(30, 20, 10, .45); }

/* toast-uri */
#toasts { position: fixed; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom, 0px) + 5.5rem); z-index: 90; display: flex; flex-direction: column; align-items: center; gap: .5rem; pointer-events: none; padding: 0 1rem; }
.toast { pointer-events: auto; background: #2a1f18; color: #fffaf3; border-radius: 14px; padding: .75rem 1rem; max-width: 28rem; width: 100%; box-shadow: 0 8px 30px rgba(0,0,0,.3); display: flex; align-items: center; gap: .75rem; animation: rise .2s ease-out both; }
.toast .t-body { flex: 1; font-size: .9rem; }
.toast .t-title { font-weight: 600; }
.toast .t-desc { opacity: .8; font-size: .8rem; }
.toast button { background: transparent; border: 0; color: #ffd9b0; font-weight: 700; padding: .4rem .5rem; cursor: pointer; }
.toast.error { background: #7a1f19; }
.toast.ok { background: #1f5a3a; }

/* banner cookie */
#cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; background: var(--card); border-top: 1px solid var(--border); padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -4px 20px rgba(0,0,0,.08); }
#cookie .in { max-width: 28rem; margin: 0 auto; }

/* sold, QR, cod */
.balance { font-family: var(--font-display); font-size: 2.25rem; font-weight: 800; color: var(--primary); line-height: 1.15; }
.bigcode { font-family: var(--font-display); font-weight: 800; letter-spacing: .12em; color: var(--primary); }
.qrbox { background: #fff; border-radius: 16px; padding: .75rem; display: flex; align-items: center; justify-content: center; }
.qrbox canvas, .qrbox img { display: block; max-width: 100%; height: auto; }
.empty { display: flex; flex-direction: column; align-items: center; gap: .6rem; text-align: center; border: 1px dashed var(--border); border-radius: 16px; padding: 2rem 1.5rem; }
.empty .icon { width: 2rem; height: 2rem; color: var(--muted-fg); }
.dot { position: absolute; top: .45rem; right: .45rem; width: .6rem; height: .6rem; border-radius: 50%; background: var(--primary); }
.iconbtn { position: relative; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0; background: var(--secondary); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--primary); font-weight: 600; cursor: pointer; text-decoration: underline; }
.success-badge { width: 4rem; height: 4rem; border-radius: 50%; background: var(--success); color: var(--success-fg); display: flex; align-items: center; justify-content: center; margin: 0 auto; animation: check .42s cubic-bezier(.22, 1, .36, 1) both; }
.success-badge .icon { width: 2rem; height: 2rem; }
.skeleton { background: linear-gradient(90deg, var(--muted), #f7f2e9, var(--muted)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 12px; height: 4rem; }

/* barista */
.alert-full { position: fixed; inset: 0; z-index: 70; background: color-mix(in srgb, var(--primary) 96%, black); color: var(--primary-fg); display: flex; flex-direction: column; padding: 2rem 1.25rem; animation: rise .26s ease-out both; }
.alert-full .in { width: 100%; max-width: 28rem; margin: 0 auto; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.alert-full ul { flex: 1; overflow-y: auto; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.alert-full li { background: var(--bg); color: var(--fg); border-radius: 16px; padding: 1rem; margin-bottom: .75rem; }
.alert-full .bell { animation: bounce 1s infinite; }
.order-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem; }
.order-card > * + * { margin-top: .75rem; }
.cancelled-row { border: 1px solid rgba(193,68,58,.4); background: rgba(193,68,58,.05); border-radius: 12px; padding: .75rem 1rem; font-size: .875rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }
.closed-row { border: 1px solid var(--border); border-radius: 12px; padding: .75rem 1rem; font-size: .875rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; }
#reader { width: 100%; max-width: 22rem; margin: 0 auto; border-radius: 16px; overflow: hidden; background: var(--muted); min-height: 12rem; }
#reader video { border-radius: 16px; }
.offline-pill { display: inline-flex; align-items: center; gap: .4rem; background: var(--secondary); border-radius: 999px; padding: .25rem .75rem; font-size: .75rem; font-weight: 600; color: var(--muted-fg); }

/* admin */
.stat { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem; }
.stat .n { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; }
table.t { width: 100%; border-collapse: collapse; font-size: .875rem; }
table.t th { text-align: left; color: var(--muted-fg); font-weight: 600; padding: .5rem .5rem; border-bottom: 1px solid var(--border); }
table.t td { padding: .55rem .5rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 9rem; }
.bars i { flex: 1; background: color-mix(in srgb, var(--primary) 70%, white); border-radius: 3px 3px 0 0; min-height: 2px; position: relative; }
.flash { border-radius: 12px; padding: .75rem 1rem; font-size: .9rem; margin-bottom: 1rem; }
.flash.ok { background: rgba(58,138,92,.12); color: #1f5a3a; }
.flash.err { background: rgba(193,68,58,.12); color: #8a2a22; }
.legal h2 { margin-top: 1.5rem; margin-bottom: .5rem; }
.legal p { color: var(--muted-fg); font-size: .9rem; line-height: 1.65; margin-top: .5rem; }

.cropbox { position: relative; margin: 0 auto; touch-action: none; overflow: hidden; border-radius: 16px; border: 1px solid var(--border); background: var(--muted); cursor: grab; }
.cropbox img { position: absolute; left: 50%; top: 50%; max-width: none; user-select: none; -webkit-user-drag: none; }
input[type=range] { width: 100%; accent-color: var(--primary); }

@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes check { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes bounce { 0%, 100% { transform: translateY(-15%); } 50% { transform: none; } }
.rise { animation: rise .26s ease-out both; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media print { .topbar, .bottomnav, #cookie, #toasts { display: none !important; } }

.done-col { min-height: 60vh; flex-direction: column; align-items: center; justify-content: center; }
.done-col:not([hidden]) { display: flex; }
.prod[aria-pressed="true"] { border-color: var(--primary) !important; background: color-mix(in srgb, var(--primary) 10%, white) !important; }

/* — aspect de aplicație mobilă — */
html { touch-action: manipulation; }
body { -webkit-touch-callout: none; }
button, .btn, .pill, .bottomnav a, .iconbtn, .tabs a { -webkit-user-select: none; user-select: none; touch-action: manipulation; }
.btn, .pill, .iconbtn, .daybtn, .card[data-open], button.card { transition: transform .12s ease, filter .15s, background .15s; }
.btn:active, .pill:active, .iconbtn:active, .daybtn:active, button.card:active { transform: scale(.97); }
.bottomnav a { transition: color .15s, transform .12s; }
.bottomnav a:active { transform: scale(.92); }
/* fără animație pe #view: ar crea un strat de suprapunere care ar acoperi sertarele cu bara de jos */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .14s; }
@media (max-width: 640px) { .page { padding-top: calc(env(safe-area-inset-top, 0px) + 1.5rem); } input, select, textarea { font-size: 16px; } }

/* etichetă „DE ÎNCASAT” (comenzi fără credit, plata la tejghea) */
.paytag { display: flex; align-items: center; gap: .5rem; background: #b45309; color: #fff; font-weight: 800; letter-spacing: .02em; border-radius: 10px; padding: .45rem .75rem; font-size: .95rem; }
.paytag .icon { width: 1.1rem; height: 1.1rem; }
.paytag.sm { display: inline-flex; padding: .15rem .55rem; font-size: .72rem; margin-right: .35rem; vertical-align: middle; border-radius: 999px; }
.order-card.unpaid { border-left: 6px solid #b45309; }
.alert-full li .paytag { margin-bottom: .5rem; }

.sound-banner { position: sticky; top: 0; z-index: 35; background: #b45309; color: #fff; padding: .7rem 1rem; display: flex; align-items: center; gap: .6rem; font-size: .9rem; justify-content: center; text-align: center; }
.sound-banner[hidden] { display: none !important; }

.gbtn { gap: .75rem; }
.gbtn .icon { width: 1.25rem; height: 1.25rem; }

/* — telefon: fără scroll orizontal în panoul de administrare — */
/* doar pe body (se propagă la fereastră): pe html + body împreună, body devine container de scroll și blochează rotița mouse-ului */
body { max-width: 100%; overflow-x: hidden; }
@supports (overflow: clip) { body { overflow-x: clip; } }
.topbar .in { min-width: 0; }
.topbar .in.row { flex-wrap: wrap; row-gap: .5rem; }
.tabs { max-width: 100%; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.row > div, .row > p, .row > span { min-width: 0; }
.card, .outlined, li, .stat { min-width: 0; overflow-wrap: anywhere; }
.card:has(table.t) { overflow-x: auto; }
table.t td, table.t th { overflow-wrap: anywhere; }
img, canvas, svg:not(.icon) { max-width: 100%; }
@media (max-width: 640px) {
  .topbar .in { padding: .65rem 1rem; }
  .page.wide, .page.mid { padding-left: 1rem; padding-right: 1rem; }
  .btn.sm { padding: 0 .75rem; }
  .input.time { width: 6.2rem; }
  .row.wrap > .input, .row.wrap > select.input { min-width: 0; }
  dialog { padding: 1.1rem; }
}

/* demo.rewake.ro: bara de comutare client ↔ barista */
.demobar { position: relative; z-index: 40; display: flex; align-items: center; gap: .5rem; padding: .5rem .75rem; padding-top: max(.5rem, env(safe-area-inset-top)); background: #2b1b12; color: #f6efe6; font-size: .85rem; }
.demobar-tag { font-weight: 800; letter-spacing: .08em; font-size: .7rem; background: #e0a875; color: #2b1b12; border-radius: 6px; padding: .2rem .45rem; text-decoration: none; flex: none; }
.demobar-seg { display: flex; background: rgba(255, 255, 255, .12); border-radius: 999px; padding: 3px; flex: none; }
.demobar-seg a { color: #f6efe6; text-decoration: none; font-weight: 600; padding: .35rem .8rem; border-radius: 999px; min-height: 2rem; display: flex; align-items: center; }
.demobar-seg a.on { background: #f6efe6; color: #2b1b12; }
.demobar form { margin: 0 0 0 auto; display: flex; min-width: 0; }
.demobar-btn { margin-left: auto; display: inline-flex; align-items: center; gap: .3rem; min-height: 2.25rem; padding: 0 .75rem; border-radius: 999px; border: 0; background: var(--primary); color: var(--primary-fg); font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.demobar form .demobar-btn { margin-left: 0; }
.demobar-btn .icon { width: 1rem; height: 1rem; flex: none; }
.demo-steps { padding-left: 1.2rem; display: grid; gap: .5rem; }
.demo-steps li { line-height: 1.45; }
.demo-hub form { margin: 0; }
.demobar-btn.ghost { background: transparent; color: #f6efe6; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
@media (max-width: 26rem) { .demobar-long { display: none; } }
@media (max-width: 22rem) { .demobar-seg a { padding: .35rem .6rem; } .demobar-btn { padding: 0 .55rem; font-size: .8rem; } }

/* săgeată „Înapoi” în titlul paginilor */
.titlerow { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.titlerow h1 { min-width: 0; }
.backbtn { flex: none; width: 2.75rem; height: 2.75rem; margin-left: -.35rem; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; color: var(--fg); background: var(--secondary); text-decoration: none; }
.backbtn:hover { filter: brightness(.97); }
.backlink { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem; margin: -.75rem 0 -.75rem; font-size: .9rem; font-weight: 600; color: var(--muted-fg, #6b5b4f); text-decoration: none; align-self: flex-start; }
