/* Engrenou v2 - mockup navegável - estilos compartilhados */

:root {
  --brand: #0FB5A6;
  --brand-strong: #0C9488;
  --brand-soft: #E2F5F2;
  --ink: #0C1D1B;
  --tangerina: #FFB84D;
  --tangerina-soft: #FFF4E0;
  --paper: #F2F7F5;
  --surface: #FFFFFF;
  --line: #DCE7E2;
  --muted: #587570;
  --ok: #3f8f5b;
  --ok-soft: #E7F3EC;
  --danger: #c0392b;
  --danger-soft: #FBEAE7;
  --amber: #c98a00;
  --amber-soft: #FCF3DF;
  --whats: #25A25A;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --r-card: 16px;
  --r-btn: 14px;
  --shadow-card: 0 1px 2px rgba(12, 29, 27, .04), 0 4px 14px rgba(12, 29, 27, .05);
  --shadow-pop: 0 8px 30px rgba(12, 29, 27, .16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: linear-gradient(160deg, #edf4f1 0%, #e8efec 45%, #e2ece8 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Visibilidade por nível ------------------------------------ */
body:not(.nivel-completo) [data-nivel="completo"] { display: none !important; }
body.nivel-completo [data-nivel="simples"] { display: none !important; }

/* ============================================================
   PALCO (fora do frame)
   ============================================================ */
.stage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 16px 44px;
}

.frame-meta {
  width: 100%;
  max-width: 400px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 10px 12px;
}

.frame-meta a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}

.frame-meta a:hover { color: var(--brand-strong); }

.frame-meta span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -.01em;
  color: var(--muted);
}

/* ============================================================
   FRAME DE CELULAR
   ============================================================ */
.phone {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 780px;
  min-height: 780px;
  background: var(--paper);
  border-radius: 40px;
  border: 1px solid rgba(12, 29, 27, .08);
  box-shadow: 0 30px 70px rgba(12, 29, 27, .22), 0 6px 18px rgba(12, 29, 27, .10);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.statusbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 26px 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}

.sb-icons { display: flex; gap: 5px; font-size: 15px; color: var(--ink); }

.screen {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 14px 18px 28px;
  scrollbar-width: none;
}
.screen::-webkit-scrollbar { display: none; }

/* ============================================================
   TAB BAR + FAB
   ============================================================ */
.tabbar {
  flex: 0 0 auto;
  position: relative;
  display: flex;
  align-items: stretch;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 6px 6px 18px;
  z-index: 20;
}

.tab {
  flex: 1;
  min-height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .01em;
  border-radius: 12px;
}

.tab i { font-size: 23px; line-height: 1; }

.tab.active { color: var(--brand-strong); }
.tab.active i { color: var(--brand); }

.fab-slot {
  flex: 0 0 68px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-strong) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(15, 181, 166, .45);
  transform: translateY(-20px);
  border: 4px solid var(--paper);
  transition: transform .15s ease;
}
.fab:active { transform: translateY(-18px) scale(.96); }

/* ============================================================
   TIPOGRAFIA E BLOCOS
   ============================================================ */
h1, h2, h3, .display { font-family: var(--font-display); letter-spacing: -.02em; }

.greeting {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.subgreeting { color: var(--muted); font-size: 13.5px; margin-top: 3px; }

.section-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
  margin: 22px 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title .count { color: var(--muted); font-family: var(--font-body); font-size: 12.5px; font-weight: 500; }

.screen-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0 14px;
}

.screen-header .back {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-size: 19px;
  flex: 0 0 auto;
}

.screen-header h1 { font-size: 21px; font-weight: 700; }
.screen-header .sub { font-size: 12.5px; color: var(--muted); margin-top: 1px; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: 16px;
}

.card + .card { margin-top: 10px; }

.card-link { display: block; text-decoration: none; color: inherit; transition: transform .12s ease; }
.card-link:active { transform: scale(.985); }

/* Aviso acionável */
.alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: var(--r-card);
  text-decoration: none;
  color: var(--ink);
  border: 1px solid transparent;
  margin-bottom: 8px;
}

.alert i.lead { font-size: 22px; flex: 0 0 auto; }
.alert .txt { flex: 1; font-size: 13.5px; line-height: 1.4; }
.alert .txt strong { font-weight: 600; }
.alert .txt small { display: block; color: inherit; opacity: .75; font-size: 12px; margin-top: 1px; }
.alert i.go { font-size: 17px; opacity: .5; }

.alert.amber { background: var(--amber-soft); border-color: #f2dcae; color: #7a5600; }
.alert.teal { background: var(--brand-soft); border-color: #bfe8e2; color: #0b6d64; }

/* Card de pedido -------------------------------------------- */
.order-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: 14px 14px 12px;
}

.order-card + .order-card { margin-top: 10px; }

.order-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }

.order-who { display: flex; align-items: center; gap: 10px; min-width: 0; }

.avatar {
  width: 40px; height: 40px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  flex: 0 0 auto;
}
.avatar.a1 { background: #E2F5F2; color: #0C9488; }
.avatar.a2 { background: #FFF4E0; color: #b47500; }
.avatar.a3 { background: #EAE7F8; color: #5b4bb3; }
.avatar.a4 { background: #FBEAE7; color: #b0453a; }
.avatar.a5 { background: #E7F3EC; color: #3f8f5b; }

.order-name { font-family: var(--font-display); font-weight: 600; font-size: 15.5px; letter-spacing: -.01em; }
.order-items { font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.35; }

.order-meta { text-align: right; flex: 0 0 auto; }
.order-time { font-family: var(--font-display); font-weight: 600; font-size: 14px; }
.order-price { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.order-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.badges { display: flex; gap: 6px; flex-wrap: wrap; }

/* Badges ----------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 99px;
  letter-spacing: .01em;
}
.badge.fazer { background: var(--amber-soft); color: var(--amber); }
.badge.pronto { background: var(--brand-soft); color: var(--brand-strong); }
.badge.entregue { background: #ECF1EF; color: var(--muted); }
.badge.sinal { background: var(--ok-soft); color: var(--ok); }
.badge.cobrar { background: var(--danger-soft); color: var(--danger); }
.badge.loja { background: var(--tangerina-soft); color: #9a6b00; }
.badge.atrasado { background: var(--amber-soft); color: #8a6000; }

/* ============================================================
   BOTÕES (alvo de toque >= 48px)
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: var(--r-btn);
  border: none;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, opacity .12s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn i { font-size: 19px; }

.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(15, 181, 166, .3); }
.btn-primary:hover { background: var(--brand-strong); }
.btn-whats { background: var(--whats); color: #fff; box-shadow: 0 4px 12px rgba(37, 162, 90, .28); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-strong); }
.btn-soft { background: var(--brand-soft); color: var(--brand-strong); }
.btn-block { width: 100%; }
.btn-sm { min-height: 48px; padding: 0 16px; font-size: 13.5px; }

.btn.done { background: var(--ok-soft); color: var(--ok); box-shadow: none; pointer-events: none; }

/* Botões grandes lado a lado */
.btn-row { display: flex; gap: 10px; margin-top: 10px; }
.btn-row .btn { flex: 1; }

/* ============================================================
   CHIPS DE FILTRO
   ============================================================ */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 99px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Grupo por dia */
.day-label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 20px 0 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
}
.day-label small { font-family: var(--font-body); font-weight: 500; font-size: 12px; color: var(--muted); text-transform: none; letter-spacing: 0; }
.day-label.today::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand);
  align-self: center;
}

.more-row {
  display: block;
  text-align: center;
  padding: 12px;
  margin-top: 8px;
  border: 1.5px dashed var(--line);
  border-radius: var(--r-card);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.empty-day {
  text-align: center;
  padding: 22px 14px;
  border: 1.5px dashed var(--line);
  border-radius: var(--r-card);
  color: var(--muted);
  font-size: 14px;
}
.empty-day .big { font-size: 26px; display: block; margin-bottom: 4px; }

/* ============================================================
   DINHEIRO
   ============================================================ */
.money-hero {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  padding: 20px 18px 18px;
  text-align: center;
}

.money-triad {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.money-cell { flex: 1; }
.money-cell .lbl { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.money-cell .val { font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -.02em; margin-top: 3px; }
.money-op { font-family: var(--font-display); font-size: 18px; color: var(--muted); flex: 0 0 auto; padding-bottom: 2px; }

.money-sobrou {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}
.money-sobrou .lbl { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.money-sobrou .val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  letter-spacing: -.03em;
  color: var(--brand-strong);
  line-height: 1.1;
  margin-top: 2px;
}
.money-sobrou .hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

/* mini-card do dinheiro (na Hoje) */
.money-mini { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.money-mini .cell { text-align: center; flex: 1; }
.money-mini .cell .lbl { font-size: 10.5px; font-weight: 700; letter-spacing: .07em; color: var(--muted); text-transform: uppercase; }
.money-mini .cell .val { font-family: var(--font-display); font-weight: 600; font-size: 16px; margin-top: 2px; }
.money-mini .cell.sobrou .val { color: var(--brand-strong); font-weight: 700; font-size: 18px; }
.money-mini .op { color: var(--line); font-size: 15px; font-family: var(--font-display); }

/* Navegador de mês */
.month-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 4px 0 14px;
}
.month-nav button {
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
}
.month-nav .month {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  min-width: 110px;
  text-align: center;
  text-transform: lowercase;
}

/* Gráfico de barras 6 meses */
.bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 110px;
  padding-top: 8px;
}
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar .fill { width: 100%; border-radius: 8px 8px 4px 4px; background: #CBE9E4; }
.bar.now .fill { background: var(--brand); }
.bar .m { font-size: 10.5px; font-weight: 600; color: var(--muted); }
.bar.now .m { color: var(--brand-strong); }

/* Medidor (MEI) */
.meter { height: 10px; border-radius: 99px; background: #E4EDEA; overflow: hidden; margin-top: 8px; }
.meter .fill { height: 100%; border-radius: 99px; background: var(--brand); }

/* details "ver mais" */
details.more { margin-top: 14px; }
details.more > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  border-radius: var(--r-btn);
  border: 1.5px dashed var(--line);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  background: transparent;
}
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary i { transition: transform .2s ease; }
details.more[open] > summary i { transform: rotate(180deg); }
details.more[open] > summary { margin-bottom: 10px; }

.kv { display: flex; justify-content: space-between; align-items: baseline; padding: 9px 0; border-bottom: 1px solid #EDF3F0; font-size: 13.5px; }
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--muted); }
.kv .v { font-family: var(--font-display); font-weight: 600; }

/* ============================================================
   HUB MEU NEGÓCIO
   ============================================================ */
.hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hub-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: 15px 14px;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 108px;
  transition: transform .12s ease;
}
.hub-card:active { transform: scale(.97); }

.hub-card .ic {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 21px;
}
.hub-card h3 { font-size: 14.5px; font-weight: 600; }
.hub-card p { font-size: 12px; color: var(--muted); line-height: 1.35; margin-top: 2px; }

/* Segmented ------------------------------------------------- */
.seg {
  display: flex;
  background: #E9F0ED;
  border-radius: 13px;
  padding: 4px;
  gap: 4px;
}
.seg button {
  flex: 1;
  min-height: 44px;
  border: none;
  border-radius: 10px;
  background: transparent;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.seg button.on {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(12, 29, 27, .08);
}

/* ============================================================
   LISTAS (ingredientes, cardápio)
   ============================================================ */
.list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 2px;
  border-bottom: 1px solid #EDF3F0;
}
.list-row:last-child { border-bottom: none; }
.list-row .grow { flex: 1; min-width: 0; }
.list-row .name { font-weight: 600; font-size: 14px; }
.list-row .sub { font-size: 12px; color: var(--muted); margin-top: 1px; }

.thumb {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  flex: 0 0 auto;
}
.thumb.t1 { background: #FCEFF4; }
.thumb.t2 { background: #F3EBE3; }
.thumb.t3 { background: #EDF0FA; }
.thumb.t4 { background: #F0F6E8; }
.thumb.t5 { background: #FDF6E3; }

.dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.dot.ok { background: var(--ok); }
.dot.low { background: var(--amber); }

.pill-status { font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 99px; }
.pill-status.ok { background: var(--ok-soft); color: var(--ok); }
.pill-status.low { background: var(--amber-soft); color: var(--amber); }

/* Toggle fake */
.switch {
  width: 46px; height: 28px;
  border-radius: 99px;
  background: #D6E2DD;
  border: none;
  position: relative;
  cursor: pointer;
  flex: 0 0 auto;
  transition: background .15s ease;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  transition: left .15s ease;
}
.switch.on { background: var(--brand); }
.switch.on::after { left: 21px; }

/* ============================================================
   FORMULÁRIOS
   ============================================================ */
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }

.input, select.input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 13px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
}
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15, 181, 166, .15); }
.input::placeholder { color: #9AB2AC; }

.input-icon { position: relative; }
.input-icon i {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: #9AB2AC; font-size: 18px;
}
.input-icon .input { padding-left: 42px; }

.form-block { margin-top: 18px; }
.form-block > h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-block > h3 .n {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-strong);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-family: var(--font-display);
}

.chips-select { display: flex; gap: 8px; flex-wrap: wrap; }
.chips-select .chip { min-height: 44px; }
.chips-select .chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }

.add-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  border: none;
  background: none;
  color: var(--brand-strong);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

/* Stepper de quantidade */
.qty { display: flex; align-items: center; gap: 0; border: 1.5px solid var(--line); border-radius: 13px; background: var(--surface); overflow: hidden; flex: 0 0 auto; }
.qty button { width: 44px; height: 46px; border: none; background: none; font-size: 18px; color: var(--brand-strong); cursor: pointer; font-weight: 700; }
.qty .n { min-width: 34px; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 15px; }

/* ============================================================
   SHEET (novo pedido, novo produto)
   ============================================================ */
.sheet-bg {
  position: absolute;
  inset: 0;
  background: rgba(12, 29, 27, .45);
  backdrop-filter: blur(2px);
  z-index: 30;
  border-radius: inherit;
}

.sheet {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  max-height: 88%;
  background: var(--surface);
  border-radius: 26px 26px 0 0;
  z-index: 31;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-pop);
  animation: sheet-up .3s cubic-bezier(.2, .9, .3, 1);
}

@keyframes sheet-up {
  from { transform: translateY(40px); opacity: .6; }
  to { transform: translateY(0); opacity: 1; }
}

.sheet-grab {
  width: 44px; height: 5px;
  border-radius: 99px;
  background: var(--line);
  margin: 10px auto 2px;
  flex: 0 0 auto;
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px 4px;
  flex: 0 0 auto;
}
.sheet-head h2 { font-size: 19px; font-weight: 700; }
.sheet-head .close {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--paper);
  border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
}

.sheet-body { flex: 1 1 auto; overflow-y: auto; padding: 6px 18px 14px; scrollbar-width: none; }
.sheet-body::-webkit-scrollbar { display: none; }

.sheet-foot {
  flex: 0 0 auto;
  padding: 12px 18px 24px;
  border-top: 1px solid #EDF3F0;
  background: var(--surface);
}

/* Card WhatsApp em destaque */
.wa-card {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 16px 15px;
  border-radius: var(--r-card);
  border: 1.5px solid #BFE5CD;
  background: linear-gradient(180deg, #F0FAF3, #E8F7EE);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
}
.wa-card .ic {
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--whats);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  flex: 0 0 auto;
}
.wa-card h3 { font-size: 15px; font-weight: 700; color: #175937; }
.wa-card p { font-size: 12.5px; color: #3e7a58; margin-top: 2px; }

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  margin: 18px 0 2px;
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ============================================================
   KANBAN (produção)
   ============================================================ */
.kanban {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.kanban::-webkit-scrollbar { display: none; }

.kcol {
  flex: 0 0 236px;
  scroll-snap-align: start;
  background: #EBF2EF;
  border-radius: var(--r-card);
  padding: 10px;
}

.kcol-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 10px;
}
.kcol-head h3 { font-size: 13.5px; font-weight: 700; }
.kcol-head .n {
  background: var(--surface);
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  padding: 3px 8px;
}

.fornada {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  box-shadow: var(--shadow-card);
}
.fornada + .fornada { margin-top: 8px; }
.fornada h4 { font-family: var(--font-display); font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; }
.fornada .qtd { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.fornada .vinculo { font-size: 11.5px; color: var(--muted); margin-top: 7px; display: flex; align-items: center; gap: 5px; }
.fornada .vinculo i { font-size: 14px; }

.timer-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  background: var(--tangerina-soft);
  color: #9a6b00;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 99px;
}

.chip-feito {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  background: var(--ok-soft);
  color: var(--ok);
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 99px;
}

.fornada-nav { display: flex; gap: 8px; margin-top: 10px; }
.fornada-nav button {
  flex: 1;
  min-height: 48px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  font-size: 18px;
  color: var(--brand-strong);
  cursor: pointer;
  font-weight: 700;
}
.fornada-nav button:disabled { opacity: .3; }

/* Overlay do modo simples na produção */
.gate {
  position: absolute;
  inset: 0;
  z-index: 25;
  background: rgba(242, 247, 245, .8);
  backdrop-filter: blur(7px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
  border-radius: inherit;
}
.gate .card { text-align: center; padding: 26px 20px; }
.gate .ic {
  width: 58px; height: 58px;
  margin: 0 auto 14px;
  border-radius: 18px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
}
.gate h2 { font-size: 18px; margin-bottom: 6px; }
.gate p { font-size: 13.5px; color: var(--muted); line-height: 1.5; margin-bottom: 16px; }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: absolute;
  left: 50%;
  bottom: 104px;
  transform: translateX(-50%) translateY(8px);
  background: var(--ink);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 99px;
  box-shadow: var(--shadow-pop);
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 60;
  pointer-events: none;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   CAPA (index.html)
   ============================================================ */
.cover {
  max-width: 1040px;
  margin: 0 auto;
  padding: 56px 28px 90px;
}

.cover-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 34px;
}
.logo-mark {
  width: 44px; height: 44px;
  border-radius: 14px;
  background: var(--brand);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 24px;
  box-shadow: 0 6px 16px rgba(15, 181, 166, .35);
}
.cover-brand .wordmark { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.cover-brand .tag { font-size: 12px; color: var(--muted); font-weight: 600; background: var(--surface); border: 1px solid var(--line); padding: 4px 10px; border-radius: 99px; }

.cover h1 { font-size: clamp(30px, 4.6vw, 46px); font-weight: 700; letter-spacing: -.03em; line-height: 1.12; max-width: 720px; }
.cover .lede { font-size: 16.5px; color: var(--muted); line-height: 1.6; max-width: 640px; margin-top: 14px; }

.cover-section { margin-top: 52px; }
.cover-section > h2 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand-strong);
  margin-bottom: 18px;
}

.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.why-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: 18px;
}
.why-card .num { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--brand-strong); letter-spacing: -.02em; }
.why-card h3 { font-size: 15px; font-weight: 600; margin-top: 6px; }
.why-card p { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin-top: 5px; }

.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.principle {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 18px;
  box-shadow: var(--shadow-card);
}
.principle .ic {
  width: 42px; height: 42px;
  border-radius: 13px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 12px;
}
.principle h3 { font-size: 15px; font-weight: 600; }
.principle p { font-size: 13px; color: var(--muted); line-height: 1.5; margin-top: 5px; }

/* Diagrama antes / depois */
.map {
  display: grid;
  grid-template-columns: 1fr auto 1.4fr;
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 760px) { .map { grid-template-columns: 1fr; } .map-arrow { transform: rotate(90deg); justify-self: center; } }

.map-col {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: 18px;
}
.map-col > h3 { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.map-col.after > h3 { color: var(--brand-strong); }

.menu-old { display: flex; flex-direction: column; gap: 6px; }
.menu-old span {
  background: #EEF3F1;
  border-radius: 9px;
  padding: 8px 12px;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
}
.menu-old .note { background: none; padding: 6px 2px 0; font-size: 11.5px; font-style: italic; }

.map-arrow { display: flex; align-items: center; justify-content: center; font-size: 26px; color: var(--brand); }

.tabs-new { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs-new span {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  border-radius: 99px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
}
.tabs-new span.fab-pill { background: var(--brand); color: #fff; }
.tabs-new span.extra { background: var(--tangerina-soft); color: #9a6b00; }
.hub-note { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.hub-note strong { color: var(--ink); }

/* Grade de telas */
.screens-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.screen-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: 18px;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .14s ease, box-shadow .14s ease;
}
.screen-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-pop); }
.screen-card .emoji { font-size: 30px; }
.screen-card h3 { font-size: 15.5px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.screen-card h3 i { color: var(--brand-strong); font-size: 18px; }
.screen-card p { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.screen-card .go { margin-top: auto; font-size: 12.5px; font-weight: 700; color: var(--brand-strong); display: flex; align-items: center; gap: 4px; }

.cover-toggle {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: 16px 18px;
}
.cover-toggle .lbl { font-size: 14px; font-weight: 600; }
.cover-toggle .seg { flex: 0 0 auto; min-width: 240px; }
.cover-toggle p { flex: 1 1 100%; font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* ============================================================
   ARRASTAR FORNADAS (drag.js) - aditivo, não muda o visual base
   ============================================================ */
[data-drag-board] .fornada.draggable { cursor: grab; }

.fornada.dragging {
  cursor: grabbing;
  box-shadow: 0 18px 40px rgba(12, 29, 27, .28), 0 4px 12px rgba(12, 29, 27, .14);
  opacity: .96;
}

body.is-dragging { user-select: none; -webkit-user-select: none; cursor: grabbing; }

.drag-placeholder {
  border: 2px dashed #BFE0DA;
  border-radius: 14px;
  background: rgba(15, 181, 166, .06);
  margin-top: 8px;
}
.drag-placeholder:first-child { margin-top: 0; }
.drag-placeholder + .fornada { margin-top: 8px; }

.kcol.drop-target {
  background: var(--brand-soft);
  box-shadow: inset 0 0 0 2px var(--brand);
}

.drag-hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 6px;
}
