:root {
  --brand: #ea1d2c;
  --brand-dark: #c4141f;
  --brand-soft: #fff1f0;
  --accent: #ff6a3d;
  --ink: #1f1f24;
  --ink-soft: #6b6b73;
  --line: #ececf0;
  --bg: #f6f6f8;
  --card: #ffffff;
  --ok: #17a35c;
  --warn: #e8a400;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(20, 20, 40, .08);
  --shadow-sm: 0 2px 10px rgba(20, 20, 40, .06);
  font-family: 'Manrope', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
h1, h2, h3 { font-family: 'Sora', sans-serif; margin: 0; letter-spacing: -.02em; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { text-decoration: none; color: inherit; }
input { font-family: inherit; }
::selection { background: var(--brand); color: #fff; }

/* ---------- Buttons ---------- */
.btn-primary {
  background: var(--brand); color: #fff; font-weight: 700; font-size: 15px;
  padding: 14px 20px; border-radius: 12px; transition: transform .12s ease, background .2s ease;
}
.btn-primary:hover { background: var(--brand-dark); }
.btn-primary:active { transform: scale(.98); }
.btn-primary:disabled { opacity: .6; cursor: default; }
.btn-outline-danger {
  background: #fff; color: var(--brand); border: 1px solid var(--brand);
  font-weight: 700; font-size: 15px; padding: 13px 20px; border-radius: 12px; transition: background .2s ease;
}
.btn-outline-danger:hover { background: #fdeaea; }
.btn-outline-danger:disabled { opacity: .6; cursor: default; }
.page-head .pill { margin-left: 10px; vertical-align: middle; }

/* ---------- Store (mobile-first) ---------- */
.store-shell { max-width: 720px; margin: 0 auto; background: var(--card); min-height: 100vh; }
.store { padding-bottom: 90px; }
.store-banner { height: 240px; position: relative; background-size: cover; background-position: center; display: flex; align-items: flex-end; }
/* Bottom gradient keeps white title readable on any photo; lighter when the admin set a background band. */
.store-banner-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.55)); }
.store-banner-overlay.soft { background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,.2)); }
.store-hero { position: relative; z-index: 1; display: flex; align-items: flex-end; gap: 14px; padding: 0 20px 18px; width: 100%; }
.store-title-band { min-width: 0; color: #fff; animation: fadeUp .4s ease both; }
.store-title-band.has-band { padding: 10px 14px; border-radius: 14px; backdrop-filter: blur(4px); }
.store-title-band h1 { font-size: 26px; line-height: 1.15; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.35); overflow-wrap: anywhere; }
.store-title-band p { margin: 4px 0 0; font-size: 14px; color: #fff; opacity: .92; text-shadow: 0 1px 6px rgba(0,0,0,.35);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.store-title-band.has-band h1, .store-title-band.has-band p { text-shadow: none; }
.store-header { display: flex; gap: 16px; padding: 14px 20px 0; position: relative; align-items: flex-end; }
.store-logo {
  width: 72px; height: 72px; border-radius: 18px; background: #fff; box-shadow: var(--shadow);
  display: grid; place-items: center; font-family: 'Sora'; font-weight: 800; font-size: 24px; color: var(--brand);
  border: 3px solid #fff; flex-shrink: 0;
}
.store-meta { padding-bottom: 4px; }
.store-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 20px; background: var(--bg); color: var(--ink-soft); }
.tag.open { background: #e6f7ee; color: var(--ok); }
.tag.closed { background: #fdeaea; color: var(--brand); }

.cat-chips { display: flex; gap: 8px; overflow-x: auto; padding: 18px 20px 6px; position: sticky; top: 0; background: var(--card); z-index: 5; }
.cat-chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-weight: 600; font-size: 14px; padding: 6px 14px 6px 6px; border-radius: 20px; background: var(--bg); color: var(--ink); }
.chip:hover { background: var(--brand-soft); color: var(--brand); }
.chip-thumb { width: 26px; height: 26px; border-radius: 50%; background-size: cover; background-position: center; flex: 0 0 auto; }

.store-search { padding: 8px 20px 4px; }
.store-search input { width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line); font-size: 15px; outline: none; }
.store-search input:focus { border-color: var(--brand); }

.cat-section { padding: 20px; }
.cat-title { display: flex; align-items: center; gap: 10px; font-size: 18px; margin-bottom: 12px; }
.cat-title-ico { width: 30px; height: 30px; border-radius: 8px; background-size: cover; background-position: center; flex: 0 0 auto; }
.product-list { display: flex; flex-direction: column; gap: 6px; }
.product-card {
  display: flex; justify-content: space-between; gap: 14px; text-align: left; width: 100%;
  padding: 14px 0; border-bottom: 1px solid var(--line); transition: opacity .15s;
}
.product-card:hover { opacity: .88; }
.product-info h3 { font-size: 16px; }
.product-info p { margin: 4px 0 8px; color: var(--ink-soft); font-size: 13px; line-height: 1.4; max-width: 46ch; }
.product-price { font-weight: 700; color: var(--ok); font-size: 15px; }
.product-thumb {
  width: 96px; height: 96px; border-radius: 12px; background: var(--bg) center/cover; flex-shrink: 0;
  display: grid; place-items: center; font-size: 30px; position: relative;
}
.thumb-add {
  position: absolute; bottom: -8px; right: -8px; width: 32px; height: 32px; border-radius: 10px;
  background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); display: grid; place-items: center;
  font-size: 20px; font-weight: 700;
}

/* ---------- Cart bar ---------- */
.cart-bar {
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); width: min(680px, calc(100% - 32px));
  background: var(--brand); color: #fff; border-radius: 14px; padding: 15px 18px; display: flex; align-items: center;
  gap: 12px; font-weight: 700; box-shadow: 0 12px 30px rgba(234,29,44,.4); cursor: pointer; z-index: 40;
  animation: slideUp .3s ease;
}
@keyframes slideUp { from { transform: translate(-50%, 20px); opacity: 0; } to { transform: translate(-50%,0); opacity: 1; } }
.cart-bar-count { background: rgba(255,255,255,.25); border-radius: 8px; padding: 2px 9px; }
.cart-bar-total { margin-left: auto; }

/* ---------- Modal / composition sheet ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(15,15,25,.5); display: flex; align-items: flex-end; justify-content: center; z-index: 50; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal-sheet { background: var(--card); width: min(560px, 100%); max-height: 92vh; border-radius: 22px 22px 0 0; overflow-y: auto; animation: sheetUp .3s cubic-bezier(.2,.8,.2,1); }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal-hero { height: 160px; background: var(--brand-soft) center/cover; position: relative; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); font-size: 15px; }
.modal-body { padding: 20px; }
.modal-body h2 { font-size: 21px; }
.modal-desc { color: var(--ink-soft); font-size: 14px; margin: 6px 0 16px; }

.composition { display: flex; flex-direction: column; gap: 12px; padding-bottom: 90px; }
.comp-group { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.comp-group-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: var(--bg); }
.comp-group-head h3 { font-size: 15px; }
.comp-hint { font-size: 12px; color: var(--ink-soft); }
.comp-badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 20px; background: #fff; color: var(--ink-soft); }
.comp-badge.required { background: var(--brand-soft); color: var(--brand); }
.comp-options { display: flex; flex-direction: column; }
.comp-option { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-top: 1px solid var(--line); cursor: pointer; transition: background .15s; }
.comp-option:first-child { border-top: none; }
.comp-option:hover { background: var(--brand-soft); }
.comp-option.selected { background: var(--brand-soft); }
.comp-option-left { display: flex; align-items: center; gap: 12px; }
.comp-option-name { font-size: 15px; font-weight: 500; }
.comp-option-right { display: flex; align-items: center; gap: 12px; }
.comp-option-price { font-size: 14px; color: var(--ink-soft); font-weight: 600; }
.radio, .checkbox { width: 22px; height: 22px; border: 2px solid var(--line); border-radius: 50%; display: inline-block; flex-shrink: 0; transition: all .15s; }
.checkbox { border-radius: 7px; }
.comp-option.selected .radio { border-color: var(--brand); background: radial-gradient(circle at center, var(--brand) 0 6px, #fff 7px); }
.checkbox.on { border-color: var(--brand); background: var(--brand); }
.stepper { display: flex; align-items: center; gap: 10px; background: var(--bg); border-radius: 10px; padding: 3px; }
.stepper button { width: 28px; height: 28px; border-radius: 8px; background: #fff; font-size: 18px; color: var(--brand); font-weight: 700; }
.comp-validation { background: #fdeaea; color: var(--brand); border-radius: 10px; padding: 12px 14px; font-size: 13px; font-weight: 600; }

.comp-footer { position: sticky; bottom: 0; background: var(--card); padding: 14px 0; display: flex; gap: 12px; border-top: 1px solid var(--line); }
.comp-qty { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 0 8px; }
.comp-qty button { width: 40px; height: 46px; font-size: 22px; color: var(--brand); font-weight: 700; }
.comp-add { flex: 1; }

/* ---------- Checkout ---------- */
.checkout { max-width: 560px; margin: 0 auto; padding: 20px; padding-bottom: 100px; }
.checkout-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.back { width: 40px; height: 40px; border-radius: 12px; background: var(--bg); font-size: 20px; }
.checkout-items, .checkout-form, .checkout-summary { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 14px; }
.checkout-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.checkout-item:last-child { border-bottom: none; }
.ci-qty { font-weight: 700; color: var(--brand); }
.ci-info { flex: 1; }
.ci-opts { display: block; font-size: 12px; color: var(--ink-soft); }
.ci-price { font-weight: 700; }
.ci-remove { color: var(--ink-soft); font-size: 13px; }
.checkout-form h2 { font-size: 15px; margin: 8px 0; }
.checkout-form input { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 11px; margin-bottom: 10px; font-size: 15px; }
/* Customer account (checkout) */
.acct-toggle { display: flex; gap: 8px; margin: 2px 0 10px; }
.acct-toggle button { flex: 1; padding: 10px; border-radius: 11px; background: var(--bg); font-weight: 600; font-size: 13px; border: 1px solid var(--line); }
.acct-toggle button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.acct-form { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.acct-form input { background: var(--card); }
.acct-hint { font-size: 12px; color: var(--ink-soft); margin: 2px 0 10px; }
.acct-err { display: block; color: var(--brand); font-size: 13px; margin-bottom: 10px; }
.acct-ok { display: block; color: var(--ok, #16a34a); font-size: 13px; margin-bottom: 10px; }
.acct-box { display: flex; align-items: center; justify-content: space-between; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.acct-hi { font-size: 14px; }
.acct-link { color: var(--brand); font-weight: 600; font-size: 13px; background: none; }
.acct-saved { display: block; margin-bottom: 10px; }
.acct-saved span { display: block; font-size: 13px; color: var(--ink-soft); margin-bottom: 6px; }
.acct-saved select { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; font-size: 14px; background: var(--card); }
.acct-orders { margin: 8px 0 12px; display: flex; flex-direction: column; gap: 6px; }
.acct-order-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-size: 13px; }
.acct-order-row strong { color: var(--brand); }

.seg { display: flex; gap: 8px; margin-bottom: 10px; }
.seg button { flex: 1; padding: 12px; border-radius: 11px; background: var(--bg); font-weight: 600; }
.seg button.on { background: var(--brand); color: #fff; }
.addr-grid { display: flex; flex-direction: column; }
.addr-cep { display: flex; gap: 8px; margin-bottom: 10px; }
.addr-cep input { margin-bottom: 0; }
.btn-cep { flex: 0 0 auto; padding: 0 18px; border-radius: 11px; background: var(--brand); color: #fff; font-weight: 600; font-size: 14px; white-space: nowrap; }
.btn-cep:disabled { opacity: .6; }
.addr-row { display: flex; gap: 8px; }
.addr-row input { flex: 1; }
.addr-number { flex: 0 0 34% !important; }
.addr-hint { font-size: 13px; color: var(--ink-soft); margin: -4px 0 10px; }
.addr-hint.err { color: var(--brand); }
.field-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin: 12px 0 6px; }
.field-input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; font-size: 15px; background: var(--card); }
.field-check { display: flex; align-items: center; gap: 8px; margin: 14px 0 4px; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
.field-check input { width: 18px; height: 18px; }
.zone-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.zone-form .field-input { flex: 1; min-width: 120px; }
.zone-form .btn-primary { flex: 0 0 auto; }
.auth-gate { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: var(--ink-soft); background: var(--bg); }
.auth-spinner { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: auth-spin .8s linear infinite; }
@keyframes auth-spin { to { transform: rotate(360deg); } }
.store-closed-banner { background: #fdeaea; color: var(--brand); border: 1px solid #f6c9c9; border-radius: 12px; padding: 14px 16px; font-weight: 600; font-size: 14px; margin: 6px 0 4px; }
.hours-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hours-row:last-child { border-bottom: none; }
.hours-day { font-weight: 700; min-width: 96px; }
.hours-time { width: 130px; }
.hours-sep { color: var(--ink-soft); }
.pay-section { background: var(--card); border-radius: 16px; padding: 18px; margin-top: 14px; }
.pay-title { font-size: 16px; margin-bottom: 12px; }
.pay-options, .pay-suboptions { display: flex; flex-direction: column; gap: 8px; }
.pay-suboptions { flex-direction: row; flex-wrap: wrap; margin-bottom: 10px; }
.pay-opt { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; font-weight: 600; font-size: 14px; cursor: pointer; }
.pay-opt.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.pay-box { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.pay-box input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; font-size: 15px; }
.pay-box code { font-size: 12px; word-break: break-all; background: var(--bg); padding: 6px 8px; border-radius: 8px; display: inline-block; }
.pix-qr { width: 120px; height: 120px; display: flex; align-items: center; justify-content: center; background: var(--bg); border: 2px dashed var(--line); border-radius: 12px; font-weight: 700; color: var(--ink-soft); }
.banner-preview { width: 100%; height: 140px; border-radius: 12px; background-size: cover; background-position: center; border: 1px solid var(--line); }
.modal-cat { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; background: rgba(0,0,0,.55); color: #fff; padding: 6px 12px; border-radius: 20px; font-size: 13px; font-weight: 600; }
.modal-cat-thumb { width: 22px; height: 22px; border-radius: 50%; background-size: cover; background-position: center; }
.receipt { max-width: 460px; margin: 24px auto 0; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; text-align: left; }
.receipt-title { font-size: 16px; margin-bottom: 14px; }
.receipt-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14px; color: var(--ink); }
.receipt-row.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-weight: 700; font-size: 16px; }
.pix-receipt { margin-top: 16px; text-align: center; }
.pix-img { width: 180px; height: 180px; object-fit: contain; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.pix-code { display: block; word-break: break-all; background: var(--bg); padding: 10px; border-radius: 10px; font-size: 12px; margin-top: 6px; }
.receipt-row.paid-flash { border-radius: 8px; animation: paidFlash 1.8s ease-out; }
.receipt-row.paid-flash span:last-child { color: var(--ok); font-weight: 700; }
@keyframes paidFlash { 0% { background: #c6f0d6; } 40% { background: #e6f7ee; } 100% { background: transparent; } }

.checkout-summary .row { display: flex; justify-content: space-between; padding: 6px 0; color: var(--ink-soft); }
.checkout-summary .row.total { color: var(--ink); font-weight: 800; font-size: 18px; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; }
.checkout-confirm { width: 100%; }

/* ---------- Order tracking ---------- */
.tracking { max-width: 480px; margin: 0 auto; padding: 40px 20px; text-align: center; }
.tracking-check { width: 72px; height: 72px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 34px; display: grid; place-items: center; margin: 0 auto 18px; }
.tracking-sub { color: var(--ink-soft); margin: 8px 0 30px; }
.tracking-steps { text-align: left; display: flex; flex-direction: column; gap: 0; }
.tracking-step { display: flex; align-items: center; gap: 14px; padding: 14px 0; position: relative; opacity: .4; }
.tracking-step.done { opacity: 1; }
.ts-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--line); }
.tracking-step.done .ts-dot { background: var(--brand); }
.ts-label { font-weight: 600; }

/* ---------- Empty / skeleton ---------- */
.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-soft); }
.empty-emoji { font-size: 44px; margin-bottom: 12px; }
.menu-skeleton { max-width: 720px; margin: 0 auto; }
.sk-banner { height: 240px; background: var(--line); }
.sk-row { height: 84px; margin: 14px 20px; border-radius: 12px; background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- Admin shell ---------- */
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar { width: 250px; background: #17171c; color: #cfcfd6; padding: 22px 16px; flex-shrink: 0; }
.admin-brand { display: flex; align-items: center; gap: 10px; font-family: 'Sora'; font-size: 20px; color: #fff; padding: 0 8px 20px; }
.admin-brand strong { color: var(--brand); }
.brand-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--brand); }
.admin-nav { display: flex; flex-direction: column; gap: 2px; }
.nav-section { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #6b6b76; margin: 16px 10px 6px; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; color: #cfcfd6; font-weight: 500; font-size: 14px; transition: background .15s; }
.nav-item:hover { background: #23232b; color: #fff; }
.nav-item.active { background: var(--brand); color: #fff; }
.nav-ico { width: 20px; text-align: center; }
.admin-content { flex: 1; display: flex; flex-direction: column; }
.admin-topbar { height: 62px; background: var(--card); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 26px; }
.topbar-title { font-weight: 700; }
.topbar-left { display: flex; align-items: center; gap: 12px; }
.admin-menu-btn { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--bg); color: var(--ink); font-size: 20px; line-height: 1; }
.admin-overlay { display: none; }
.topbar-user { font-size: 14px; color: var(--ink-soft); }
.admin-page { padding: 26px; }

.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.page-head h1 { font-size: 24px; }
.page-sub { color: var(--ink-soft); margin: -10px 0 20px; }
.date-filter, .row-actions { display: flex; gap: 6px; }
.date-filter button, .row-actions button { padding: 8px 14px; border-radius: 9px; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: 13px; }
.date-filter button.on { background: var(--brand); color: #fff; border-color: var(--brand); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat-card { background: var(--card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 6px; }
.stat-label { color: var(--ink-soft); font-size: 13px; }
.stat-value { font-family: 'Sora'; font-size: 26px; font-weight: 800; }
.stat-trend { font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.stat-trend.up { color: var(--ok); }
.stat-trend.warn { color: var(--warn); }

.panel-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.panel { background: var(--card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.panel h2 { font-size: 16px; margin-bottom: 16px; }
.bars { display: flex; align-items: flex-end; gap: 12px; height: 180px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; justify-content: flex-end; height: 100%; }
.bar { width: 100%; background: linear-gradient(180deg, var(--accent), var(--brand)); border-radius: 8px 8px 0 0; min-height: 8px; }
.bar-col span { font-size: 12px; color: var(--ink-soft); }
.rank { list-style: none; margin: 0; padding: 0; }
.rank li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.rank li b { color: var(--brand); }

.table-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { text-align: left; padding: 14px 18px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.data-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.data-table td.strong { font-weight: 700; }
.data-table .muted { color: var(--ink-soft); text-align: center; padding: 30px; }
.pill { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 20px; background: var(--bg); }
.pill.ok { background: #e6f7ee; color: var(--ok); }
.pill.off { background: #f0f0f2; color: var(--ink-soft); }
.pill.paid { background: #e6f7ee; color: var(--ok); }
.pill.pending { background: #fde7e7; color: var(--brand); }
.row-actions .btn-pay { background: var(--ok, #16a34a); color: #fff; border-color: transparent; }
.row-actions .btn-pay:disabled { opacity: .6; }

.group-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.group-card { background: var(--card); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.group-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.group-rule { font-size: 12px; color: var(--ink-soft); margin-bottom: 12px; }
.group-options { list-style: none; margin: 0; padding: 0; }
.group-options li { display: flex; justify-content: space-between; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; }
.group-options li b { color: var(--brand); }

/* ---------- Kitchen display ---------- */
.kds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.kds-col-head { padding: 12px 16px; border-radius: 12px 12px 0 0; font-weight: 700; display: flex; justify-content: space-between; color: #fff; }
.kds-col-head.pending { background: var(--warn); }
.kds-col-head.preparing { background: var(--accent); }
.kds-col-head.ready { background: var(--ok); }
.kds-cards { display: flex; flex-direction: column; gap: 12px; padding: 12px; background: var(--card); border-radius: 0 0 12px 12px; min-height: 200px; box-shadow: var(--shadow-sm); }
.kds-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.kds-card-head { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-soft); margin-bottom: 8px; }
.kds-item { display: flex; gap: 8px; margin-bottom: 6px; }
.kds-qty { font-weight: 800; color: var(--brand); }
.kds-opts { display: block; font-size: 12px; color: var(--ink-soft); }
.kds-actions { margin-top: 8px; }
.kds-actions button { width: 100%; padding: 9px; border-radius: 9px; background: var(--brand-soft); color: var(--brand); font-weight: 700; }

/* ---------- Login ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(135deg, #17171c, #2a2130); padding: 20px; }
.login-card { background: var(--card); border-radius: 20px; padding: 34px; width: min(400px, 100%); box-shadow: var(--shadow); }
.login-brand { display: flex; align-items: center; gap: 8px; font-family: 'Sora'; font-size: 20px; margin-bottom: 18px; }
.login-brand strong { color: var(--brand); }
.login-card h1 { font-size: 22px; }
.login-sub { color: var(--ink-soft); font-size: 14px; margin: 6px 0 20px; }
.login-card label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 6px; }
.login-card input { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 11px; font-size: 15px; outline: none; }
.login-card input:focus { border-color: var(--brand); }
.login-btn { width: 100%; margin-top: 20px; }
.login-hint { text-align: center; color: var(--ink-soft); font-size: 12px; margin-top: 16px; }

/* ---------- Real-time badge / logout ---------- */
.rt-badge { font-size: 12px; font-weight: 700; color: var(--ink-soft); padding: 4px 10px; border-radius: 20px; background: var(--bg); }
.rt-badge.on { background: #e6f7ee; color: var(--ok); }
.rt-badge.small { padding: 2px 8px; margin-left: 6px; }
.topbar-user { display: flex; align-items: center; gap: 12px; }
.logout-btn { padding: 7px 14px; border-radius: 9px; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .panel-grid, .kds { grid-template-columns: 1fr; }
  .admin-sidebar { position: fixed; z-index: 60; top: 0; left: -260px; height: 100vh; overflow-y: auto; transition: left .25s ease; box-shadow: 0 0 30px rgba(0,0,0,.35); }
  .admin-sidebar.open { left: 0; }
  .admin-content { width: 100%; }
  .admin-menu-btn { display: inline-flex; }
  .admin-overlay { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,.45); }
  .admin-topbar { padding: 0 16px; }
  .admin-page { padding: 16px; }
}
@media (max-width: 480px) {
  .store-banner, .sk-banner { height: 210px; }
  .store-title-band h1 { font-size: 21px; }
  .store-title-band p { font-size: 13px; -webkit-line-clamp: 2; }
  .store-logo { width: 60px; height: 60px; font-size: 20px; }
  .product-thumb { width: 82px; height: 82px; }
}

/* ---------- Visual editor (drag & drop) ---------- */
.editor-grid { display: grid; grid-template-columns: 320px 1fr; gap: 16px; align-items: start; }
.editor-single { grid-template-columns: 1fr; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.info-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.info-row:last-child { border-bottom: none; }

.dnd-list { display: flex; flex-direction: column; gap: 8px; }
.dnd-row { display: flex; align-items: stretch; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; transition: box-shadow .15s, transform .1s, border-color .15s; cursor: grab; }
.dnd-row:hover { box-shadow: var(--shadow-sm); }
.dnd-row.dragging { opacity: .5; cursor: grabbing; }
.dnd-row.over { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.dnd-handle { display: grid; place-items: center; width: 34px; color: var(--ink-soft); font-weight: 800; letter-spacing: -3px; background: var(--bg); border-radius: 12px 0 0 12px; user-select: none; }
.dnd-content { flex: 1; }
.dnd-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 14px 12px 4px; }
.dnd-card strong { display: block; }
.dnd-sub { font-size: 12px; color: var(--ink-soft); }
.dnd-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.dnd-actions button { padding: 7px 12px; border-radius: 8px; background: var(--bg); font-weight: 600; font-size: 13px; }
.dnd-actions button.danger { background: #fdeaea; color: var(--brand); }
.cat-row-main { display: flex; align-items: center; gap: 12px; flex: 1 1 auto; min-width: 0; }
.cat-row-main strong { overflow-wrap: anywhere; }
.cat-thumb { width: 44px; height: 44px; border-radius: 10px; background: var(--bg); background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; font-size: 18px; flex: 0 0 auto; }
.upload-btn { position: relative; overflow: hidden; padding: 7px 12px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); font-weight: 600; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; }
.upload-btn.busy { opacity: .6; pointer-events: none; }
.upload-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.prod-img-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.prod-thumb { width: 72px; height: 72px; border-radius: 12px; background: var(--bg); background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; font-size: 26px; flex: 0 0 auto; }
.prod-img-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.prod-img-actions button { padding: 8px 14px; border-radius: 9px; background: var(--bg); font-weight: 600; font-size: 13px; }
.prod-img-actions button.danger { background: #fdeaea; color: var(--brand); }

.add-row, .add-option { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.add-row select, .add-option input { padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
.add-row select { flex: 1; min-width: 180px; }
.add-option input { flex: 1; min-width: 120px; }
.group-edit-btn { width: 100%; margin-top: 12px; padding: 10px; font-size: 14px; }

@media (max-width: 900px) {
  .editor-grid { grid-template-columns: 1fr; }
}


/* ---------- Promotions: menu card price ---------- */
.product-price.promo { display: inline-flex; align-items: baseline; gap: 8px; }
.product-price.promo .price-old { color: var(--ink-soft); font-weight: 500; font-size: 13px; text-decoration: line-through; }
.product-price.promo .price-new { color: var(--brand); font-weight: 800; font-size: 15px; }

/* ---------- Promotions: storefront banner ---------- */
.promo-backdrop { position: fixed; inset: 0; background: rgba(12,12,20,.72); display: flex; align-items: center; justify-content: center; z-index: 60; padding: 16px; animation: fade .2s ease; }
.promo-modal { position: relative; width: min(440px, 100%); display: flex; flex-direction: column; align-items: center; animation: promoPop .3s cubic-bezier(.2,.8,.2,1); }
@keyframes promoPop { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.promo-close { position: absolute; top: -14px; right: -6px; width: 38px; height: 38px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); font-size: 16px; z-index: 2; }
.promo-banner-btn { display: block; width: 100%; padding: 0; border: none; background: none; cursor: pointer; border-radius: 18px; overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,.45); }
.promo-banner-btn img { display: block; width: 100%; height: auto; max-height: 74vh; object-fit: contain; background: #000; }
.promo-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; }
.promo-arrow { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; font-size: 22px; font-weight: 700; }
.promo-arrow:active { transform: scale(.94); }
.promo-dots { display: flex; gap: 7px; }
.promo-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer; transition: background .15s, transform .15s; }
.promo-dot.on { background: #fff; transform: scale(1.25); }
.promo-cta { margin-top: 16px; padding: 13px 28px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 700; font-size: 15px; box-shadow: var(--shadow-sm); }
.promo-cta:active { transform: scale(.97); }

/* ---------- Promotions: admin ---------- */
.promo-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.field-hint { font-size: 12px; color: var(--ink-soft); }
.promo-upload-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.promo-banner-preview { width: 120px; height: 120px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.promo-list { display: flex; flex-direction: column; gap: 12px; }
.promo-card { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; }
.promo-card-banner { width: 72px; height: 72px; border-radius: 10px; background-size: cover; background-position: center; background-color: var(--brand-soft); flex-shrink: 0; }
.promo-card-body { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.promo-status { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 20px; width: fit-content; }
.promo-status.on { background: #e6f7ec; color: var(--ok); }
.promo-status.off { background: #f1f1f4; color: var(--ink-soft); }
.promo-status.scheduled { background: #fff4e0; color: #b5750a; }
.promo-status.expired { background: #fdeaea; color: var(--brand); }
.promo-schedule { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.promo-window { font-size: 12px; color: var(--ink-soft); font-weight: 600; }
@media (max-width: 560px) { .promo-schedule { grid-template-columns: 1fr; } }

/* ---------- Order details modal ---------- */
.od-backdrop { position: fixed; inset: 0; background: rgba(12,12,20,.55); display: flex; align-items: center; justify-content: center; z-index: 60; padding: 16px; animation: fade .2s ease; }
.od-modal { width: min(520px, 100%); max-height: 90vh; display: flex; flex-direction: column; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 70px rgba(0,0,0,.35); animation: promoPop .25s cubic-bezier(.2,.8,.2,1); }
.od-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.od-head h3 { font-size: 18px; font-weight: 800; }
.od-date { font-size: 12px; color: var(--ink-soft); }
.od-head-right { display: flex; align-items: center; gap: 10px; }
.od-close { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); font-size: 15px; flex-shrink: 0; }
.od-body { padding: 8px 20px 20px; overflow-y: auto; }
.od-section { padding: 14px 0; border-bottom: 1px solid var(--line); }
.od-section h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); margin-bottom: 10px; }
.od-line { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: 14px; }
.od-line > span { color: var(--ink-soft); }
.od-addr { text-align: right; overflow-wrap: anywhere; font-weight: 500; }
.od-item { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.od-item:last-child { border-bottom: none; }
.od-item-head { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.od-item-name { font-weight: 700; }
.od-item-sub { font-size: 12px; color: var(--ink-soft); padding-left: 10px; }
.od-item-sub em { font-style: normal; font-weight: 600; color: var(--ink); }
.od-item-note { font-size: 12px; color: var(--brand); padding-left: 10px; }
.od-notes { font-size: 13px; color: var(--ink); }
.od-paid { color: var(--ok); }
.od-pending { color: #b5750a; }
.od-totals { padding-top: 14px; }
.od-total { font-size: 16px; font-weight: 800; margin-top: 4px; }


/* ---------- Pix countdown / expiry ---------- */
.pix-countdown { margin-top: 8px; font-size: 14px; color: var(--ink-soft); }
.pix-countdown strong { color: var(--brand); font-variant-numeric: tabular-nums; }
.pix-expired { margin-top: 8px; margin-bottom: 10px; font-weight: 700; color: var(--brand); }


/* ---------- Sales report ---------- */
.report-filters { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.report-filters .field { margin: 0; }
.report-exports { display: flex; gap: 8px; margin-left: auto; }
.report-exports button { padding: 9px 14px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 13px; }
.report-exports button:hover { background: var(--brand); color: #fff; }
.alert-error { background: #fdeaea; color: var(--brand); padding: 12px 16px; border-radius: 10px; margin-bottom: 14px; font-size: 14px; }
.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 8px; }
.kpi-card { background: var(--brand-soft); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.kpi-card > span { font-size: 12px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.kpi-card > strong { font-size: 24px; font-weight: 800; color: var(--ink); }
.report-section-title { font-size: 14px; font-weight: 700; margin: 22px 0 10px; }
.report-bars { display: flex; flex-direction: column; gap: 7px; }
.report-bar-row { display: grid; grid-template-columns: 54px 1fr 110px; align-items: center; gap: 10px; }
.report-bar-label { font-size: 12px; color: var(--ink-soft); }
.report-bar-track { background: var(--line); border-radius: 6px; height: 16px; overflow: hidden; }
.report-bar-fill { height: 100%; background: var(--brand); border-radius: 6px; transition: width .3s ease; min-width: 2px; }
.report-bar-value { font-size: 13px; font-weight: 600; text-align: right; }
.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 760px) {
  .kpi-row { grid-template-columns: 1fr; }
  .report-grid { grid-template-columns: 1fr; }
  .report-exports { margin-left: 0; width: 100%; }
  .report-bar-row { grid-template-columns: 48px 1fr 92px; }
}

/* Storefront: "Meus pedidos" */
.store-orders-link { display: inline-block; margin-top: 10px; color: var(--brand); font-weight: 700; font-size: 13px; }
.my-orders { max-width: 640px; margin: 0 auto; padding: 16px; }
.mo-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.mo-head h1 { font-size: 20px; margin: 0; }
.mo-back { width: 38px; height: 38px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); font-size: 18px; }
.mo-empty { text-align: center; padding: 40px 16px; color: var(--ink-soft); display: flex; flex-direction: column; gap: 14px; align-items: center; }
.mo-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.mo-card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.mo-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.mo-row b { color: var(--brand); }
.mo-items { font-size: 12px; color: var(--ink-soft); }


/* Reprint menu (Admin › Pedidos) */
.reprint-wrap { position: relative; }
.reprint-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; display: flex; flex-direction: column; min-width: 220px; background: var(--card); border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--shadow-sm); padding: 6px; }
.row-actions .reprint-menu button { border: 0; text-align: left; border-radius: 8px; background: transparent; }
.row-actions .reprint-menu button:hover { background: var(--bg); }
.reprint-flash { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #e6f7ee; color: var(--ok); font-weight: 600; padding: 10px 14px; border-radius: 11px; margin-bottom: 14px; }
.reprint-flash button { background: transparent; border: 0; font-size: 18px; color: inherit; }
.table-card:has(.reprint-menu) { overflow: visible; }

/* Print status chips + printer test */
.ps-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.ps-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.ps-chip.ok { background: #e6f7ee; color: #157347; }
.ps-chip.fail { background: #fdecea; color: #b42318; cursor: help; }
.ps-chip.wait { background: #fff4e0; color: #9a6700; }
.print-test { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.btn-test { white-space: nowrap; }

/* Default delivery fee card (Admin › Zonas de entrega) */
.default-fee-card { margin-bottom: 16px; }
.default-fee-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.default-fee-row .field-input { max-width: 160px; }

.fee-ok { color: var(--ok); font-weight: 600; }
.default-fee-row { align-items: flex-end; }
.fee-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.checkout-hint { font-size: 13px; color: var(--ink-soft); margin-top: 6px; }
.checkout-hint.warn { color: var(--warn); font-weight: 600; }

/* Checkout upsell suggestions */
.upsell { margin-top: 12px; border: 1px dashed var(--line); border-radius: 12px; padding: 10px; background: var(--brand-soft); }
.upsell-title { font-size: 13px; font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.upsell-item { display: flex; align-items: center; gap: 10px; padding: 6px 0; animation: upsell-in .25s ease both; }
.upsell-item + .upsell-item { border-top: 1px solid var(--line); }
.upsell-item img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.upsell-info { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13px; }
.upsell-info strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upsell-info span { color: var(--ink-soft); }
.upsell-add { background: var(--brand); color: #fff; border: 0; border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 12px; white-space: nowrap; transition: transform .15s ease, opacity .15s ease; }
.upsell-add:hover { transform: translateY(-1px); }
.upsell-add:disabled { opacity: .6; }
@keyframes upsell-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.pay-online-retry { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }

/* Product info form + checkout notice */
.product-info-form { margin-top: 14px; display: flex; flex-direction: column; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 520px) { .form-2col { grid-template-columns: 1fr; } }
.checkout-notice { background: #fff4e0; color: #9a6700; font-weight: 600; font-size: 14px; padding: 10px 14px; border-radius: 11px; margin-bottom: 14px; }

/* Bag bar empty state (always visible on the menu) */
.cart-bar.empty { background: var(--card); color: var(--ink-soft); border: 1px solid var(--line); box-shadow: 0 8px 22px rgba(0,0,0,.08); }
.cart-bar.empty .cart-bar-count { background: var(--bg); }

/* Reorder + address nickname */
.mo-reorder { margin-top: 6px; width: 100%; background: var(--brand-soft); color: var(--brand-dark); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-weight: 700; cursor: pointer; transition: background-color .15s ease, transform .15s ease; }
.mo-reorder:hover { transform: translateY(-1px); }
.mo-reorder:disabled { opacity: .6; cursor: default; }
.nick-row input { flex: 1; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Admin › Aparência: title style preview */
.title-preview { position: relative; height: 150px; border-radius: 14px; overflow: hidden; background-size: cover; background-position: center; display: flex; align-items: flex-end; margin: 12px 0; }
.title-preview .store-hero { padding: 0 14px 14px; }
.title-controls { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.title-controls input[type=color] { width: 56px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: none; cursor: pointer; }
.title-controls input[type=range] { width: 160px; accent-color: var(--brand); }
