/* ==========================================================================
   A Tua Vez — sistema visual (segue o manual de marca)
   Primária #0F172A · Acento #10B981 · Fundo #F8FAF7 · Neutro #E5E7EB · Inter
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* marca */
  --ink: #0F172A;           /* primária */
  --brand: #10B981;         /* acento: raios, seleção, destaques */
  --brand-strong: #059669;  /* botões com texto branco (contraste) */
  --brand-text: #047857;    /* texto verde sobre branco */
  --brand-soft: #E7F8F1;    /* fundos verdes suaves */
  --bg: #F8FAF7;            /* fundo */
  --line: #E5E7EB;          /* neutro */
  /* derivados */
  --ink-2: #334155;
  --muted: #64748B;
  --faint: #94A3B8;
  --paper: #FFFFFF;
  --surface: #F1F5F3;
  --wait: #92400E;
  --wait-bg: #FEF3C7;
  --ok: #047857;
  --ok-bg: #E7F8F1;
  --danger: #B42318;
  --danger-bg: #FDECEA;
  --accent: #0F172A;        /* cor do estabelecimento (monograma e faixa) */
  --accent-ink: #FFFFFF;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-s: 10px;
  --r-m: 14px;
  --r-l: 20px;
  --pad: 20px;
  --maxw: 560px;
  --shadow-card: 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-float: 0 12px 30px -12px rgba(15, 23, 42, .28);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: "cv11" 1;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: -.022em; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.block { display: block; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-s { width: 16px; height: 16px; }
[hidden] { display: none !important; }
.mt { margin-top: 16px; }
.mt-l { margin-top: 28px; }
.mb { margin-bottom: 16px; }
.stack-s > * + * { margin-top: 8px; }
.stack > * + * { margin-top: 16px; }

/* Assinatura da marca: A TUA VEZ. À TUA HORA. */
.signature { font-size: 12px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }

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

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  background: var(--ink); color: #fff; transition: transform .12s var(--ease), background .15s, border-color .15s;
  -webkit-tap-highlight-color: transparent; white-space: nowrap;
}
.btn:active { transform: scale(.985); }
.btn[disabled], .btn.is-busy { opacity: .55; pointer-events: none; }
/* botão principal da marca: texto ≥ 19px bold → contraste AA para texto grande */
.btn-brand { background: var(--brand-strong); color: #fff; font-size: 19px; font-weight: 700; min-height: 56px; border-radius: 14px; }
.btn-brand:hover { background: #048a5e; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #CBD5E1; }
.btn-soft { background: var(--surface); color: var(--ink); }
.btn-ok { background: var(--brand-strong); color: #fff; }
.btn-danger-ghost { background: #fff; color: var(--danger); border-color: #F3C9C4; }
.btn-block { width: 100%; }
.btn-s { min-height: 40px; padding: 0 14px; font-size: 15px; border-radius: 10px; }
.btn-wa { background: #128C4B; color: #fff; }
.link-btn { background: none; border: 0; padding: 6px 0; color: var(--brand-text); font-weight: 600; text-decoration: none; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.link-reset { background: none; border: 0; width: 100%; font: inherit; cursor: pointer; text-align: left; }

/* ---------- Formulários ---------- */
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field > label, .label { font-weight: 600; font-size: 15px; }
.field .hint { font-size: 14px; color: var(--muted); }
.opt { font-weight: 400; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; font-size: 17px; /* ≥16px evita zoom no iOS */
  transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none;
}
.select { background-image: url("../img/chevron.svg"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(16, 185, 129, .16); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); }
.error-text { color: var(--danger); font-size: 14px; font-weight: 600; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--brand-strong); flex: none; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.input-time { min-width: 0; text-align: center; font-variant-numeric: tabular-nums; }

/* ---------- Avisos e etiquetas ---------- */
.notice { padding: 14px 16px; border-radius: var(--r-m); background: var(--surface); font-size: 15px; display: flex; gap: 10px; align-items: flex-start; }
.notice .icon { margin-top: 2px; }
.notice-wait { background: var(--wait-bg); color: #713F12; }
.notice-ok { background: var(--ok-bg); color: #065F46; }
.notice-danger { background: var(--danger-bg); color: #7A160E; }
.flash-stack { display: grid; gap: 8px; margin-bottom: 18px; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; background: var(--surface); color: var(--ink-2); }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .85; }
.badge-pending { background: var(--wait-bg); color: var(--wait); }
.badge-confirmed { background: var(--ok-bg); color: var(--ok); }
.badge-declined, .badge-cancelled, .badge-expired { background: var(--surface); color: var(--muted); }
.badge-conflict { background: var(--danger-bg); color: var(--danger); }

/* ---------- Marca ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 30px; width: auto; }
.brand-s img { height: 24px; }

/* ==========================================================================
   Página pública do estabelecimento
   ========================================================================== */
.pub { min-height: 100dvh; display: flex; flex-direction: column; }
.pub-wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.pub-main { flex: 1; }
.pub-band { height: 5px; background: var(--accent); }

.biz { padding: 26px 0 18px; }
.biz-top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.biz-mark {
  width: 60px; height: 60px; border-radius: 16px; flex: none; overflow: hidden;
  background: var(--accent); color: var(--accent-ink); display: grid; place-items: center;
  font: 700 23px/1 var(--font); letter-spacing: -.02em;
}
.biz-mark img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.biz-name { font-size: clamp(30px, 8.6vw, 40px); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.biz-tagline { margin-top: 8px; font-size: 17px; color: var(--ink-2); max-width: 34ch; }
.biz-facts { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 15px; color: var(--muted); }
.biz-facts a, .biz-facts span { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.biz-facts a:hover { color: var(--ink); }
.biz-compact { padding: 18px 0 0; }
.biz-compact .biz-mark { width: 40px; height: 40px; border-radius: 12px; font-size: 16px; }

.flow { flex: 1; padding-bottom: 40px; }
.step-head { padding: 18px 0 12px; }
.step-title { font-size: 23px; font-weight: 700; letter-spacing: -.025em; }
.step-sub { font-size: 15px; color: var(--muted); margin-top: 4px; }
.progress { display: flex; gap: 6px; margin: 4px 0 4px; }
.progress i { height: 4px; flex: 1; border-radius: 4px; background: var(--line); }
.progress i.on { background: var(--brand); }
.back { display: inline-flex; align-items: center; gap: 4px; margin: 10px 0 0 -6px; padding: 8px 6px; background: none; border: 0; color: var(--muted); font-weight: 600; cursor: pointer; font-size: 15px; text-decoration: none; }
.back:hover { color: var(--ink); }

/* Grupo de linhas em cartão (como no mockup da marca) */
.rows { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow-card); }
.rows > li + li { border-top: 1px solid var(--line); }
.service {
  width: 100%; display: grid; grid-template-columns: 1fr auto 18px; gap: 2px 14px; align-items: center;
  padding: 16px 16px 16px 18px; border: 0; background: #fff; text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: background .12s;
}
.service:hover { background: #FAFCFB; }
.service:active { background: var(--brand-soft); }
.service-name { font-size: 17px; font-weight: 600; grid-column: 1; }
.service-meta { grid-column: 1; grid-row: 2; font-size: 14px; color: var(--muted); }
.service-desc { grid-column: 1 / 3; grid-row: 3; font-size: 14px; color: var(--muted); margin-top: 4px; max-width: 46ch; }
.service-price { grid-column: 2; grid-row: 1 / 3; font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; text-align: right; line-height: 1.2; }
.service-price small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.service .chev { grid-column: 3; grid-row: 1 / 3; color: var(--faint); }

.chosen { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); margin-bottom: 18px; }
.chosen .icon { color: var(--brand-text); }
.chosen > div { flex: 1; min-width: 0; }
.chosen strong { display: block; font-size: 16px; font-weight: 600; }
.chosen span { font-size: 14px; color: var(--muted); }

/* Faixa de datas */
.days { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--pad); padding: 2px var(--pad) 12px; margin: 0 calc(var(--pad) * -1); scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day {
  flex: none; width: 60px; padding: 10px 0 9px; border-radius: var(--r-m); border: 1px solid var(--line); background: #fff;
  display: grid; justify-items: center; gap: 1px; cursor: pointer; scroll-snap-align: start; -webkit-tap-highlight-color: transparent;
}
.day-wd { font-size: 12px; color: var(--muted); font-weight: 600; }
.day-n { font-weight: 700; font-size: 21px; line-height: 1.2; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.day-m { font-size: 12px; color: var(--muted); }
.day[disabled] { opacity: .4; cursor: default; background: transparent; border-color: transparent; }
.day[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.day[aria-pressed="true"] .day-wd, .day[aria-pressed="true"] .day-m { color: rgba(255,255,255,.72); }
.days .skeleton { width: 60px; height: 72px; flex: none; border-radius: var(--r-m); }
.month-label { font-size: 15px; color: var(--ink-2); margin: 4px 0 10px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.month-label .icon { color: var(--brand-text); }

.slots-group { margin-top: 18px; }
.slots-group h3 { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 10px; letter-spacing: 0; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slot {
  min-height: 48px; border-radius: var(--r-s); border: 1px solid var(--line); background: #fff;
  font-weight: 600; font-size: 16px; font-variant-numeric: tabular-nums; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background .12s, border-color .12s;
}
.slot:hover { border-color: var(--brand); }
.slot[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--ink); font-weight: 700; }
.slots-empty { padding: 26px 18px; text-align: center; background: #fff; border: 1px dashed var(--line); border-radius: var(--r-m); color: var(--muted); }
.slots-empty strong { display: block; color: var(--ink); margin-bottom: 4px; }
.skeleton { height: 48px; border-radius: var(--r-s); background: linear-gradient(90deg, #EEF2EF 0%, #E3E8E5 50%, #EEF2EF 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Resumo no passo 3 — linhas como no mockup */
.summary-rows { margin-bottom: 22px; }
.summary-rows li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; font-size: 16px; }
.summary-rows .icon { color: var(--brand-text); }
.summary-rows strong { font-weight: 600; }
.form-note { font-size: 14px; color: var(--muted); margin-top: 14px; }
.form-note a { color: var(--brand-text); }

/* ---------- Confirmação (a "senha") ---------- */
.ticket-wrap { padding: 24px 0 12px; }
.ticket-headline { font-size: clamp(26px, 7vw, 32px); font-weight: 800; letter-spacing: -.03em; margin-bottom: 6px; }
.ticket-lead { color: var(--muted); margin-bottom: 18px; }
.ticket {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); padding: 22px 22px 20px; overflow: hidden;
  box-shadow: var(--shadow-float);
}
.ticket::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--brand); }
.ticket.is-pending::before { background: #F59E0B; }
.ticket.is-closed::before { background: var(--faint); }
.ticket-label { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); font-weight: 500; }
.ticket-time { font-size: clamp(64px, 20vw, 88px); font-weight: 800; letter-spacing: -.05em; line-height: .95; margin: 16px 0 6px; font-variant-numeric: tabular-nums; }
.ticket-date { font-size: 19px; font-weight: 600; letter-spacing: -.015em; }
.ticket-cut { border-top: 1.5px dashed var(--line); margin: 20px -22px 14px; position: relative; }
.ticket-cut::before, .ticket-cut::after { content: ""; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); }
.ticket-cut::before { left: -11px; }
.ticket-cut::after { right: -11px; }
.ticket-rows { display: grid; gap: 6px; font-size: 15px; }
.ticket-rows p { display: flex; gap: 10px; }
.ticket-rows span { color: var(--muted); min-width: 118px; }
.ticket-in { animation: ticket-in .5s var(--ease) both; }
@keyframes ticket-in { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.actions-stack { display: grid; gap: 10px; margin-top: 22px; }

.pub-foot { padding: 26px 0 34px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.pub-foot-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.pub-foot a { color: var(--muted); }
.made-with { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.made-with img { height: 18px; width: auto; }

.closed-state { padding: 32px 0; }
.closed-state h2 { font-size: 24px; margin-bottom: 8px; }
.sticky-cta { padding: 4px 0 8px; }

/* ==========================================================================
   Página inicial atuavez.pt
   ========================================================================== */
.home { min-height: 100dvh; display: flex; flex-direction: column; }
.home-wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 var(--pad); }
.home-head { padding-top: 22px; padding-bottom: 22px; }
.home-nav { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.home-hero { padding: 40px 0 36px; }
.home-hero h1 { font-size: clamp(42px, 10.5vw, 76px); font-weight: 800; letter-spacing: -.045em; line-height: 1; max-width: 13ch; }
.home-hero p { margin-top: 20px; font-size: 19px; max-width: 36ch; color: var(--ink-2); }
.home-hero .signature { margin-top: 26px; display: block; }
.home-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.home-ticket { margin-top: 40px; max-width: 360px; transform: rotate(-2deg); }
.home-grid { display: grid; gap: 28px; padding: 36px 0 44px; border-top: 1px solid var(--line); }
.home-grid h2 { font-size: 19px; margin-bottom: 6px; }
.home-grid p { color: var(--muted); }
.home-pricing { padding: 34px 0 56px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.home-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.home-price strong { font-size: 52px; font-weight: 800; letter-spacing: -.045em; }
.home-price span { color: var(--muted); }
@media (min-width: 860px) {
  .home-top { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
  .home-ticket { margin: 0 0 0 auto; }
  .home-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Autenticação ---------- */
.auth { min-height: 100dvh; display: grid; place-content: center; justify-items: center; padding: 32px var(--pad); background: var(--bg); }
.auth-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); padding: 32px 26px; box-shadow: var(--shadow-card); }
.auth-wide { max-width: 520px; }
.auth-card h1 { font-size: 26px; margin: 26px 0 6px; }
.auth-card .lead { color: var(--muted); margin-bottom: 24px; }
.auth-foot { margin-top: 18px; text-align: center; font-size: 15px; }
.auth-foot a { color: var(--brand-text); font-weight: 600; text-decoration: none; }
.auth-sig { text-align: center; margin-top: 22px; }

/* ==========================================================================
   Painel do estabelecimento & backoffice
   ========================================================================== */
.app { min-height: 100dvh; background: var(--bg); }
.app-side { display: none; }
.app-main { padding: 0 var(--pad) calc(96px + env(safe-area-inset-bottom)); max-width: 820px; margin: 0 auto; }
.app-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0 14px; }
.app-title { font-size: 27px; font-weight: 800; letter-spacing: -.035em; }
.app-sub { color: var(--muted); margin-top: 4px; font-size: 15px; }
.app-sub a { color: var(--brand-text); }
.top-biz { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; }
.top-biz .biz-mark { width: 38px; height: 38px; border-radius: 11px; font-size: 15px; }
.mobile-brand { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.tabbar-4 { grid-template-columns: repeat(4, 1fr); }
.tab { display: grid; justify-items: center; gap: 2px; padding: 6px 0; font-size: 12px; font-weight: 600; color: var(--muted); text-decoration: none; position: relative; }
.tab .icon { width: 24px; height: 24px; }
.tab[aria-current="page"] { color: var(--ink); }
.tab[aria-current="page"]::before { content: ""; position: absolute; top: -7px; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand); }
.tab-new .tab-plus { width: 48px; height: 48px; border-radius: 16px; background: var(--brand-strong); color: #fff; display: grid; place-items: center; margin-top: -18px; box-shadow: var(--shadow-float); }
.tab-new .tab-plus .icon { width: 24px; height: 24px; stroke-width: 2.2; }
.tab .count { position: absolute; top: 0; left: 50%; margin-left: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--brand); color: var(--ink); font-size: 11px; font-weight: 800; display: grid; place-items: center; }

@media (min-width: 960px) {
  .app { display: grid; grid-template-columns: 252px 1fr; }
  .tabbar, .mobile-brand { display: none; }
  .app-side { display: flex; flex-direction: column; gap: 3px; position: sticky; top: 0; height: 100dvh; padding: 22px 14px; background: #fff; border-right: 1px solid var(--line); }
  .app-side .brand { padding: 4px 10px 24px; }
  .side-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-weight: 500; color: var(--ink-2); }
  .side-link:hover { background: var(--bg); }
  .side-link[aria-current="page"] { background: var(--brand-soft); color: var(--ink); font-weight: 600; }
  .side-link[aria-current="page"] .icon { color: var(--brand-text); }
  .side-link .count { margin-left: auto; background: var(--brand); color: var(--ink); font-size: 12px; font-weight: 800; border-radius: 9px; padding: 1px 7px; }
  .side-sep { height: 1px; background: var(--line); margin: 12px 10px; }
  .side-bottom { margin-top: auto; }
  .app-main { padding: 12px 40px 60px; width: 100%; }
  .app-top { padding: 26px 0 18px; }
}

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow-card); }
.panel-tight { padding: 4px 20px; }
.panel h2 { font-size: 18px; letter-spacing: -.02em; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.panel-head a { font-size: 15px; font-weight: 600; }
.section-title { font-size: 17px; font-weight: 700; letter-spacing: -.02em; margin: 26px 0 10px; display: flex; align-items: center; gap: 10px; }
.section-title-flush { margin: 0; }
.section-title .count-pill { background: var(--brand); color: var(--ink); border-radius: 999px; padding: 1px 10px; font-size: 13px; font-weight: 800; line-height: 1.6; }

.share { display: grid; gap: 12px; }
.share-url { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--brand-soft); color: #065F46; font-weight: 600; overflow: hidden; }
.share-url span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.checklist { list-style: none; padding: 0; margin: 4px 0 0; display: grid; }
.checklist li a { display: flex; align-items: center; gap: 12px; padding: 13px 0; text-decoration: none; border-bottom: 1px solid var(--line); }
.checklist li:last-child a { border-bottom: 0; }
.checklist li a > .icon:first-child { color: var(--ink-2); }
.check-dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; flex: none; }
.is-done .check-dot { background: var(--brand); border-color: var(--brand); color: var(--ink); }
.is-done .check-text { color: var(--muted); text-decoration: line-through; }
.checklist .icon-go { margin-left: auto; color: var(--faint); }

/* Lista de marcações */
.alist { list-style: none; margin: 0; padding: 0; }
.aitem { display: grid; grid-template-columns: 62px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.alist > li:last-child .aitem { border-bottom: 0; }
.aitem-time { font-weight: 700; font-size: 20px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; padding-top: 1px; }
.aitem-time small { display: block; font-weight: 500; font-size: 13px; letter-spacing: 0; color: var(--muted); margin-top: 3px; }
.aitem-body { min-width: 0; }
.aitem-name { font-weight: 600; font-size: 16px; text-decoration: none; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.aitem-name:hover { text-decoration: underline; }
.aitem-meta { font-size: 14px; color: var(--muted); margin-top: 2px; }
.aitem-note { font-size: 14px; margin-top: 6px; padding-left: 10px; border-left: 3px solid var(--line); color: var(--ink-2); }
.aitem-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.aitem-actions form { display: contents; }
.aitem.is-pending .aitem-time { color: var(--wait); }
.gap-row { display: flex; align-items: center; gap: 10px; padding: 8px 0 8px 76px; font-size: 14px; color: var(--brand-text); border-bottom: 1px solid var(--line); }
.gap-row::before { content: ""; width: 14px; border-top: 1.5px dashed var(--brand); }
.empty { text-align: center; padding: 32px 16px; color: var(--muted); }
.empty strong { display: block; color: var(--ink); font-size: 17px; margin-bottom: 6px; }
.empty .btn { margin-top: 16px; }

/* Agenda */
.week { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; margin-bottom: 14px; }
.week-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.wday { display: grid; justify-items: center; padding: 8px 0; border-radius: 12px; text-decoration: none; font-size: 12px; color: var(--muted); font-weight: 600; }
.wday b { font-weight: 700; font-size: 18px; line-height: 1.2; color: var(--ink); font-variant-numeric: tabular-nums; }
.wday[aria-current="date"] { background: var(--ink); color: rgba(255,255,255,.72); }
.wday[aria-current="date"] b { color: #fff; }
.wday.is-today b { color: var(--brand-text); }
.wday[aria-current="date"].is-today b { color: var(--brand); }
.wday .dots { display: flex; gap: 3px; height: 6px; margin-top: 3px; }
.wday .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-2); }
.wday .dots i.p { background: #F59E0B; }
.wday[aria-current="date"] .dots i { background: #fff; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); cursor: pointer; }
.icon-btn[disabled] { opacity: .3; cursor: default; }
.day-closed { padding: 18px; border-radius: var(--r-m); background: repeating-linear-gradient(-45deg, var(--surface), var(--surface) 8px, #fff 8px, #fff 16px); text-align: center; color: var(--muted); font-weight: 600; }

/* Detalhe */
.detail-when { font-weight: 800; font-size: 44px; letter-spacing: -.045em; font-variant-numeric: tabular-nums; line-height: 1; }
.detail-date { font-weight: 600; font-size: 18px; margin-top: 8px; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 10px 14px; font-size: 15px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.btn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-grid .btn { width: 100%; }
.timeline { list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--muted); display: grid; gap: 6px; }
.details-toggle summary { cursor: pointer; font-weight: 600; padding: 4px 0; list-style: none; display: flex; align-items: center; gap: 8px; }
.details-toggle summary::-webkit-details-marker { display: none; }
.details-toggle summary::after { content: "+"; margin-left: auto; font-size: 20px; color: var(--muted); }
.details-toggle[open] summary::after { content: "−"; }

/* Horário */
.hours-day { padding: 16px 0; border-bottom: 1px solid var(--line); }
.hours-day:last-of-type { border-bottom: 0; }
.hours-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hours-line strong { font-size: 16px; font-weight: 600; }
.switch { position: relative; width: 52px; height: 32px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 16px; background: var(--line); transition: background .15s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .18s var(--ease); }
.switch input:checked + span { background: var(--brand); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.hours-times { display: grid; gap: 10px; margin-top: 12px; }
.hours-range { display: grid; grid-template-columns: 64px 1fr 22px 1fr; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); }
.hours-range .input { min-height: 46px; padding: 8px; }
.hours-closed { margin-top: 6px; font-size: 15px; color: var(--faint); }

/* Serviços (painel) */
.svc-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.alist > li.svc-row:last-child { border-bottom: 0; }
.svc-main { flex: 1; display: grid; gap: 2px; text-decoration: none; min-width: 0; }
.svc-main strong { font-size: 16px; font-weight: 600; }
.svc-main:hover strong { text-decoration: underline; }
.svc-order { display: flex; gap: 6px; }
li.is-dim { opacity: .6; }

/* Cores */
.swatches { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.swatch { position: relative; }
.swatch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.swatch span { display: block; width: 42px; height: 42px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.swatch input:checked + span { box-shadow: 0 0 0 3px var(--ink); }
.swatch input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 3px; }
.swatch-custom span { background: conic-gradient(#e33, #fc3, #3c6, #39f, #93f, #e33); }
.color-input { width: 52px; height: 42px; padding: 2px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.logo-row { display: flex; align-items: center; gap: 16px; }

.picker { margin-bottom: 18px; }
.picker .slots { margin-top: 10px; }
.picker-status { font-size: 14px; color: var(--muted); }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

/* Backoffice */
.table-wrap { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-weight: 600; color: var(--muted); font-size: 13px; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 10px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table a { font-weight: 600; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); padding: 16px 18px; }
.kpi b { display: block; font-weight: 800; font-size: 30px; letter-spacing: -.04em; font-variant-numeric: tabular-nums; margin-bottom: 4px; }
.kpi span { font-size: 14px; color: var(--muted); }
@media (min-width: 720px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar .input, .toolbar .select { min-height: 42px; width: auto; flex: 1 1 160px; font-size: 16px; padding: 8px 12px; }
.secret { font: 700 20px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; padding: 12px 14px; background: var(--brand-soft); border-radius: 12px; user-select: all; }
.admin-mark { background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; }

.legal { max-width: 68ch; }
.legal h2 { font-size: 20px; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--ink-2); margin-bottom: 10px; }
.legal .todo { background: var(--wait-bg); padding: 2px 6px; border-radius: 4px; }
.logo-row { flex-wrap: wrap; }
.logo-row .stack-s { min-width: 0; flex: 1 1 180px; }
input[type="file"] { max-width: 100%; font-size: 15px; }
/* Ecrãs muito estreitos (iPhone SE e semelhantes) */
.row-2 > * { min-width: 0; }
input[type="date"].input { min-width: 0; max-width: 100%; }
@media (max-width: 380px) {
  .row-2 { grid-template-columns: 1fr; gap: 0; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dd { margin-bottom: 8px; }
  .swatch span { width: 38px; height: 38px; }
}
.field { grid-template-columns: minmax(0, 1fr); }
input[type="file"] { width: 100%; }
.btn-grid > * { min-width: 0; }
.btn-grid .btn { white-space: normal; text-align: center; line-height: 1.2; padding: 8px 12px; }
/* V1.1 — agendas */
.cal-chip { display: inline-block; margin-right: 6px; padding: 1px 8px; border-radius: 6px; background: var(--brand-soft); color: #065F46; font-size: 12px; font-weight: 600; vertical-align: 1px; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink-2); white-space: nowrap; }
.chip[aria-current="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip .n { color: var(--muted); font-weight: 500; margin-left: 4px; }
.chip[aria-current="true"] .n { color: rgba(255,255,255,.7); }
.svc-group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 16px 0 6px; border-bottom: 1px solid var(--line); }
.svc-group-head:first-child { padding-top: 10px; }
.svc-empty { padding: 12px 0; }
/* V1.1 — registo e assistente */
.signup-card { max-width: 460px; }
.signup-card h1 { margin-top: 18px; }
.plan-pick { border: 0; padding: 0; margin: 0 0 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.plan-pick legend { margin-bottom: 8px; }
.plan-opt { position: relative; cursor: pointer; }
.plan-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.plan-opt > span { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; height: 100%; }
.plan-opt strong { font-size: 16px; }
.plan-opt em { font-style: normal; font-weight: 600; font-size: 14px; }
.plan-opt small { color: var(--muted); font-size: 13px; }
.plan-opt input:checked + span { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand); background: var(--brand-soft); }
.plan-opt input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.slug-input { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.slug-input:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(16, 185, 129, .16); }
.slug-prefix { display: flex; align-items: center; padding: 0 0 0 14px; color: var(--muted); font-size: 15px; white-space: nowrap; flex: none; max-width: 55%; overflow: hidden; text-overflow: ellipsis; }
.slug-input .input { border: 0; box-shadow: none !important; padding-left: 2px; min-width: 0; }
[data-slug-status].is-ok { color: var(--brand-text); font-weight: 600; }
[data-slug-status].is-bad { color: var(--danger); font-weight: 600; }
.onb { max-width: 560px; margin: 0 auto; padding: 16px 16px 48px; }
.onb-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0 16px; }
.onb-count { color: var(--muted); font-size: 14px; font-weight: 600; }
.onb-steps { list-style: none; margin: 0 0 24px; padding: 0; display: flex; gap: 6px; }
.onb-steps li { flex: 1; min-width: 0; }
.onb-steps li::before { content: ""; display: block; height: 4px; border-radius: 4px; background: var(--line); margin-bottom: 6px; }
.onb-steps li.done::before, .onb-steps li.on::before { background: var(--brand); }
.onb-steps span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.onb-steps li.on span { color: var(--ink); font-weight: 700; }
.onb-title { font-size: 26px; line-height: 1.2; letter-spacing: -.02em; margin: 0 0 8px; }
.onb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.onb-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.onb-svc { border: 0; display: block; min-width: 0; }
.onb-svc.has-error { box-shadow: 0 0 0 2px var(--danger); }
.cal-row { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 10px; }
@media (max-width: 380px) { .cal-row { grid-template-columns: minmax(0, 1fr); } }
.plan-cards { display: grid; gap: 12px; }
.plan-card { position: relative; display: block; cursor: pointer; }
.plan-card input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.plan-card-body { display: grid; gap: 8px; padding: 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.plan-card input:checked + .plan-card-body { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand); }
.plan-card input:focus-visible + .plan-card-body { outline: 3px solid var(--brand); outline-offset: 2px; }
.plan-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; font-size: 18px; }
.plan-price { font-weight: 800; font-size: 20px; }
.plan-price small { font-weight: 500; font-size: 13px; color: var(--muted); }
.plan-card-text { color: var(--muted); font-size: 15px; }
.plan-feats { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 15px; }
.plan-feats li::before { content: "✓"; color: var(--brand-strong); font-weight: 800; margin-right: 8px; }
.onb-done { text-align: center; margin-bottom: 16px; }
.onb-done-mark { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-strong); margin-bottom: 12px; }
.link-card .link-url { font-size: 18px; font-weight: 700; word-break: break-all; margin: 4px 0 14px; }
.center { text-align: center; }
.mt-s { margin-top: 10px; }
.mb-s { margin-bottom: 10px; }
.onb .lead { color: var(--muted); margin: 0 0 20px; }
.plan-kv { display: grid; gap: 8px; margin: 0; }
.plan-kv > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; }
.plan-kv dt { color: var(--muted); }
.plan-kv dd { margin: 0; font-weight: 600; text-align: right; }
.section-title { font-size: 18px; margin: 24px 0 12px; }
.plan-card-body.is-current { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand); }
.plan-card-body .badge { justify-self: start; }
.plan-card-body .btn { justify-self: stretch; }
.cal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cal-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cal-row .btn { align-self: end; margin-bottom: 16px; }
.cal-row:has(.btn) { grid-template-columns: minmax(0, 1fr) 140px auto; }
@media (max-width: 520px) { .cal-row:has(.btn) { grid-template-columns: minmax(0, 1fr) 140px; } .cal-row:has(.btn) .btn { grid-column: 1 / -1; margin-bottom: 0; } }
.cal-actions { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; margin-top: 8px; }
.cal-actions form { margin: 0; }
.link-danger { color: var(--danger); }
.panel.is-off { opacity: .85; background: #FBFBFA; }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: 15px; }
.notice-action { margin: 0 0 0 auto; flex: none; } .notice:has(.notice-action) { flex-wrap: wrap; align-items: center; }
.home-nav-actions { display: flex; gap: 8px; }
@media (max-width: 420px) { .home-nav { gap: 10px; } .home-nav .brand img { width: 128px; height: auto; } }
.home-note { font-size: 15px; color: var(--muted); margin-top: -6px; }
.home-pricing h2 { font-size: 26px; letter-spacing: -.02em; margin: 0 0 6px; }
.home-plans { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 20px 0 14px; }
@media (min-width: 720px) { .home-plans { grid-template-columns: 1fr 1fr; } }
.home-plan { background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); padding: 24px; display: grid; gap: 12px; align-content: start; box-shadow: var(--shadow-card); text-align: left; }
.home-plan.is-multi { border-color: var(--ink); }
.home-plan h3 { margin: 0; font-size: 20px; }
.home-plan-for { margin: 0; color: var(--muted); font-size: 15px; }
.home-plan .home-price { margin: 0; }
.home-plan .btn { margin-top: 4px; }
.home-plan .home-price strong { font-size: 40px; }
@media (max-width: 360px) { .home-plan { padding: 18px; } .home-plan .btn { white-space: normal; text-align: center; } }
.notice:has(.notice-action) > span { flex: 1 1 220px; }
/* V1.2 — Divulgar marcações */
.promo-head .link-url { font-size: 18px; font-weight: 700; word-break: break-all; margin: 4px 0 14px; }
.promo-dim { font-weight: 500; margin-left: 6px; }
.promo-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 8px; }
@media (min-width: 900px) { .promo-grid-post { grid-template-columns: repeat(3, minmax(0, 1fr)); } .promo-grid-story { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.promo-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); padding: 10px; display: grid; gap: 10px; align-content: start; box-shadow: var(--shadow-card); min-width: 0; }
.promo-thumb { display: block; border-radius: 10px; overflow: hidden; background: var(--line); }
.promo-thumb img { display: block; width: 100%; height: auto; }
.promo-thumb-post { aspect-ratio: 4 / 5; }
.promo-thumb-story { aspect-ratio: 9 / 16; }
.promo-thumb img { aspect-ratio: inherit; object-fit: cover; }
.promo-meta { display: grid; gap: 2px; padding: 0 4px; font-size: 15px; line-height: 1.3; }
.promo-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.promo-actions .btn { width: 100%; padding: 8px 6px; min-height: 42px; font-size: 14px; gap: 6px; }
.promo-steps { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 6px; }
.promo-invite { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 14px 16px; border-radius: var(--r-m); background: var(--brand-soft); color: var(--brand-text); text-decoration: none; font-weight: 600; font-size: 15px; line-height: 1.35; }
.promo-invite span { flex: 1; }
@media (max-width: 600px) { .promo-dim { display: block; margin: 4px 0 0; } }
/* V1.3 — faturação */
.pay-list { list-style: none; margin: 0; padding: 0; }
.pay-item { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 8px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.pay-item:last-child { border-bottom: 0; }
.pay-main { display: grid; gap: 3px; min-width: 0; flex: 1 1 260px; }
.pay-side { display: grid; gap: 8px; justify-items: end; }
.pay-item.is-void .pay-main { opacity: .6; }
.pay-item.is-void .pay-main strong { text-decoration: line-through; }
.pay-actions { flex: 1 1 100%; }
.table tr.is-void td { opacity: .6; }
.stack-s { display: grid; gap: 8px; }
.billing-filters { flex-wrap: wrap; }
.kpis-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
a.kpi { text-decoration: none; color: inherit; }
.tabbar-5 { grid-template-columns: repeat(5, 1fr); }
.pub-foot-seller { flex-basis: 100%; }
.print-doc { max-width: 900px; margin: 0 auto; padding: 32px 24px; background: #fff; }
.print-head { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; border-bottom: 2px solid var(--ink); padding-bottom: 16px; margin-bottom: 16px; }
.print-head h1 { font-size: 22px; margin: 4px 0; }
.print-kicker { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; color: var(--danger); margin: 0; }
.print-seller { text-align: right; }
.print-row { border-bottom: 1px solid var(--line); padding: 12px 0; break-inside: avoid; }
.print-row h2 { font-size: 15px; margin: 0 0 8px; }
.print-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; font-size: 14px; }
.print-grid p { margin: 0 0 6px; }
@media (max-width: 600px) { .print-grid { grid-template-columns: 1fr; } .print-seller { text-align: left; } }
@media print { .print-actions, .demo-bar { display: none !important; } body.is-print { background: #fff; } .print-doc { padding: 0; } }
.panel.pay-list { padding: 4px 20px; }
.billing-table td.num { white-space: nowrap; }
