/*
 * Pedra 90 — acabamento editorial compartilhado
 * Mantém a estrutura e as regras do CRM; unifica as páginas com a linguagem
 * visual do dashboard (grade leve, verde profundo, cartões amplos e botões-pílula).
 */
html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme {
  --p90-editorial-deep:#143c30;
  --p90-editorial-deeper:#0f3027;
  --p90-editorial-mid:#245343;
  --p90-editorial-green:#287b50;
  --p90-editorial-mint:#b9f0cf;
  --p90-editorial-wash:#eef5f1;
  --p90-editorial-grid:rgba(20,60,48,.075);
  --p90-editorial-radius:10px;
  --p90-editorial-shadow:0 18px 42px rgba(23,55,42,.08);
}

html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme:is([data-theme="dark"],.fluxo-barber-app) {
  --p90-editorial-deep:#184635;
  --p90-editorial-deeper:#10251e;
  --p90-editorial-mid:#255642;
  --p90-editorial-green:#67c98c;
  --p90-editorial-mint:#9ce4b9;
  --p90-editorial-wash:#17261f;
  --p90-editorial-grid:rgba(181,231,200,.055);
  --p90-editorial-shadow:0 18px 44px rgba(0,0,0,.16);
}

/* Canvas editorial em todas as áreas da barbearia. */
html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme #app-container :is(
  #tab-barber-team,
  #tab-barber-inventory,
  #tab-barber-storefront,
  #tab-barber-plans,
  #tab-barber-subscriptions,
  #tab-barber-billing,
  #tab-barber-schedule,
  #tab-profile
) {
  /* Fill the app viewport; vertical overflow belongs to each tab. */
  position:absolute;
  inset:0;
  min-height:0;
  isolation:isolate;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior-x:none;
  background-color:var(--p90-page) !important;
  background-image:repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent calc(25% - 1px),
    var(--p90-editorial-grid) calc(25% - 1px),
    var(--p90-editorial-grid) 25%
  ) !important;
}

html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme #app-container :is(
  #tab-barber-team,
  #tab-barber-inventory,
  #tab-barber-storefront,
  #tab-barber-plans,
  #tab-barber-subscriptions,
  #tab-barber-billing,
  #tab-barber-schedule,
  #tab-profile
)::after {
  content:"";
  position:absolute;
  z-index:-1;
  pointer-events:none;
  left:-8%;
  right:-8%;
  top:245px;
  height:190px;
  transform:rotate(-7deg);
  background:linear-gradient(90deg,rgba(119,228,191,.42),rgba(196,225,151,.55),rgba(99,198,171,.3));
  filter:saturate(.82);
  opacity:.72;
}

html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme:is([data-theme="dark"],.fluxo-barber-app) #app-container :is(
  #tab-barber-team,
  #tab-barber-inventory,
  #tab-barber-storefront,
  #tab-barber-plans,
  #tab-barber-subscriptions,
  #tab-barber-billing,
  #tab-barber-schedule,
  #tab-profile
)::after {
  background:linear-gradient(90deg,rgba(62,149,104,.2),rgba(145,190,113,.18),rgba(72,165,126,.13));
  opacity:.55;
}

html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme #app-container :is(
  #tab-barber-team,
  #tab-barber-inventory,
  #tab-barber-storefront,
  #tab-barber-plans,
  #tab-barber-subscriptions,
  #tab-barber-billing,
  #tab-barber-schedule,
  #tab-profile
) > * {
  position:relative;
  z-index:1;
}

/* Cabeçalhos mais fortes, limpos e alinhados. */
html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme #app-container :is(
  .barber-team-head,
  .barber-catalog-head,
  .barber-store-head,
  .barber-plans-head,
  .barber-billing-head,
  .barber-page-head,
  .garage-acct__header
) {
  min-height:118px;
  margin-bottom:30px !important;
  padding:22px 0 18px;
  border-bottom:1px solid var(--p90-line);
  background:transparent !important;
}

html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme #app-container :is(
  .barber-team-head,
  .barber-catalog-head,
  .barber-store-head,
  .barber-plans-head,
  .barber-billing-head,
  .barber-page-head,
  .garage-acct__header
) h2,
html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme #tab-barber-subscriptions > div > div:first-child h2 {
  max-width:760px;
  font-size:clamp(34px,4.2vw,58px) !important;
  line-height:.98 !important;
  letter-spacing:-.065em !important;
  font-weight:760 !important;
  color:var(--p90-ink) !important;
}

html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme #app-container :is(
  .barber-team-head,
  .barber-catalog-head,
  .barber-store-head,
  .barber-plans-head,
  .barber-billing-head,
  .barber-page-head,
  .garage-acct__header
) :is(.segment-tab-badge,.garage-acct__eyebrow) {
  display:block !important;
  margin:0 0 12px !important;
  color:var(--p90-accent) !important;
  font-size:11px !important;
  font-weight:750 !important;
  letter-spacing:.16em !important;
}

/* Controles de ação — mesma assinatura visual do dashboard. */
html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme #app-container :is(
  .barber-team-add,
  .barber-catalog-save,
  .barber-store-link--primary,
  .barber-store-save,
  .barber-plans-new-btn,
  .barber-daily-open,
  .p90-cash-launch,
  .barber-billing-save,
  .garage-acct__upload,
  #barber-billing-create,
  #p90-cash-billing
) {
  min-height:46px !important;
  padding:0 20px !important;
  border:0 !important;
  border-radius:999px !important;
  background:var(--p90-editorial-green) !important;
  color:#fff !important;
  box-shadow:none !important;
  font-size:13px !important;
  font-weight:720 !important;
  letter-spacing:-.01em;
}

html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme #app-container :is(
  .barber-back,
  .barber-ios-head-link,
  .barber-store-link--ghost,
  .garage-acct__logout-top
) {
  border:1px solid var(--p90-line) !important;
  border-radius:999px !important;
  background:color-mix(in srgb,var(--p90-surface) 88%,transparent) !important;
  color:var(--p90-accent) !important;
  box-shadow:none !important;
}

/* Métricas em blocos editoriais: números grandes e pouco ruído. */
html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme #app-container :is(
  #barber-team-summary,
  #barber-comm-totals,
  #barber-stock-summary,
  #barber-plans-summary,
  #barber-sub-summary,
  #barber-billing-kpis,
  .barber-team-kpis,
  .barber-billing-split
) {
  gap:8px !important;
  margin-bottom:24px !important;
}

html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme #app-container :is(
  #barber-team-summary,
  #barber-comm-totals,
  #barber-stock-summary,
  #barber-plans-summary,
  #barber-sub-summary,
  #barber-billing-kpis
) > *,
html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme #app-container :is(.barber-team-stat,.sub-metric-card,.barber-billing-kpi,.barber-revenue-stat,.barber-revenue-recurring) {
  min-height:126px;
  padding:24px !important;
  border:1px solid var(--p90-line) !important;
  border-radius:var(--p90-editorial-radius) !important;
  background:color-mix(in srgb,var(--p90-surface) 94%,transparent) !important;
  box-shadow:none !important;
}

html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme:not(.fluxo-barber-app):not([data-theme="dark"]) #app-container :is(
  #barber-team-summary,
  #barber-stock-summary,
  #barber-plans-summary,
  #barber-sub-summary,
  #barber-billing-kpis
) > *:first-child {
  border-color:var(--p90-editorial-deep) !important;
  background:var(--p90-editorial-deep) !important;
  color:#f4fbf7 !important;
}

html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme:not(.fluxo-barber-app):not([data-theme="dark"]) #app-container :is(
  #barber-team-summary,
  #barber-stock-summary,
  #barber-plans-summary,
  #barber-sub-summary,
  #barber-billing-kpis
) > *:first-child :is(p,span,strong,div) {
  color:#f4fbf7 !important;
}

html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme #app-container :is(
  #barber-team-summary,
  #barber-comm-totals,
  #barber-stock-summary,
  #barber-plans-summary,
  #barber-sub-summary,
  #barber-billing-kpis
) :is(.text-2xl,.font-extrabold,strong) {
  font-variant-numeric:tabular-nums;
  letter-spacing:-.045em;
}

/* Cartões de conteúdo: planos, equipe, clientes, agenda e produtos. */
html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme #app-container :is(
  .barber-card,
  .barber-plan-card,
  .sub-client-card,
  .barber-stock-card,
  .barber-svc-row,
  .barber-billing-card,
  .barber-billing-main,
  .dash-barber-day-col,
  .barber-agenda-calendar-card,
  .barber-store-card,
  .garage-acct__hero,
  .garage-acct__card
) {
  overflow:hidden;
  border:1px solid var(--p90-line) !important;
  border-radius:var(--p90-editorial-radius) !important;
  background:color-mix(in srgb,var(--p90-surface) 96%,transparent) !important;
  box-shadow:var(--p90-editorial-shadow) !important;
}

html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme #app-container :is(.barber-card__accent,.barber-plan-card__accent) {
  height:4px !important;
  background:linear-gradient(90deg,var(--p90-editorial-green),var(--p90-editorial-mint)) !important;
}

html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme #app-container :is(.barber-card__body,.barber-plan-card__body) {
  padding:26px !important;
}


/* Plano em destaque usa o bloco verde profundo do resumo do dashboard. */
html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme:not(.fluxo-barber-app):not([data-theme="dark"]) #app-container .barber-plan-card--featured {
  border-color:var(--p90-editorial-deep) !important;
  background:var(--p90-editorial-deep) !important;
}

html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme:not(.fluxo-barber-app):not([data-theme="dark"]) #app-container .barber-plan-card--featured :is(h3,p,span,strong) {
  color:#f4fbf7 !important;
}

html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme:not(.fluxo-barber-app):not([data-theme="dark"]) #app-container .barber-plan-card--featured button {
  border-color:transparent !important;
  background:var(--p90-editorial-mint) !important;
  color:var(--p90-editorial-deeper) !important;
}

/* Agenda: calendário compacto, grade legível e cartões de horário discretos. */
html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme #app-container #tab-barber-schedule .barber-agenda-calendar-card {
  padding:18px !important;
  background:var(--p90-editorial-deep) !important;
}

html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme #app-container #tab-barber-schedule .barber-agenda-calendar-card :is(p,span,strong) {
  color:#eaf6ee !important;
}

html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme #app-container #tab-barber-schedule .barber-week-cal-day {
  min-height:76px;
  border-color:rgba(226,246,233,.18) !important;
  border-radius:7px !important;
  background:rgba(255,255,255,.035) !important;
}

html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme #app-container #tab-barber-schedule .barber-week-cal-day--selected {
  border-color:var(--p90-editorial-mint) !important;
  background:rgba(185,240,207,.17) !important;
}

html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme #app-container #tab-barber-schedule :is(.barber-booking-card,.dash-barber-slot) {
  border-radius:8px !important;
  box-shadow:none !important;
}

/* Faturamento e comissões: números dominam, filtros recuam visualmente. */
html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme #app-container #tab-barber-billing .barber-revenue-hero,
html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme #app-container .comm-balances-head {
  min-height:190px;
  padding:30px !important;
  border:1px solid color-mix(in srgb,var(--p90-editorial-mint) 22%,transparent) !important;
  border-radius:var(--p90-editorial-radius) !important;
  background:var(--p90-editorial-deep) !important;
  color:#f4fbf7 !important;
  box-shadow:var(--p90-editorial-shadow) !important;
}

html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme #app-container #tab-barber-billing .barber-revenue-hero > strong,
html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme #app-container .comm-balances-head strong {
  font-size:clamp(40px,5vw,68px) !important;
  line-height:1 !important;
  letter-spacing:-.06em !important;
}

html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme #app-container :is(.barber-billing-views,.barber-billing-chips,.barber-catalog-tabs,.barber-people-tabs,.garage-acct__tabs) {
  padding:4px !important;
  border:1px solid var(--p90-line) !important;
  border-radius:999px !important;
  background:color-mix(in srgb,var(--p90-surface) 84%,transparent) !important;
}

html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme #app-container :is(.barber-billing-views,.barber-billing-chips,.barber-catalog-tabs,.barber-people-tabs,.garage-acct__tabs) button {
  border-radius:999px !important;
}

/* Campos e formulários ficam mais compactos e com alinhamento consistente. */
html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme #app-container :is(
  #barber-new-form-card,
  #barber-client-form-card,
  #barber-plan-form-card,
  #barber-appt-form-card,
  #barber-billing-entry-card,
  .barber-plans-sheet,
  .barber-appt-sheet,
  .barber-billing-entry
) {
  border-radius:var(--p90-editorial-radius) !important;
  border-color:var(--p90-line) !important;
  box-shadow:var(--p90-editorial-shadow) !important;
}

html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme #app-container :is([id^="tab-barber-"],#tab-profile) :is(
  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="color"]):not([type="file"]),
  select,
  textarea
) {
  border-radius:8px !important;
  background:color-mix(in srgb,var(--p90-surface) 94%,var(--p90-editorial-wash)) !important;
}

/* O cadastro Asaas mantém seu controle de proprietário e [hidden] no runtime.
   Exibir suas pendências não altera a conta usada nas cobranças existentes. */

/* Restaura o deslocamento fluido da bolha entre as cinco abas no app iOS. */
html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.fluxo-barber-app #mobile-bottom-nav .barber-nav-pill {
  will-change:transform,width;
  transition:
    transform .46s cubic-bezier(.22,1,.36,1),
    width .32s cubic-bezier(.22,1,.36,1),
    opacity .18s ease !important;
}

html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.fluxo-barber-app #mobile-bottom-nav .mobile-bottom-nav-btn :is(svg,i) {
  transition:color .2s ease,transform .34s cubic-bezier(.22,1,.36,1) !important;
}

html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.fluxo-barber-app #mobile-bottom-nav .mobile-bottom-nav-btn.active :is(svg,i) {
  transform:translateY(-1px) scale(1.04) !important;
}

html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.fluxo-barber-app #mobile-bottom-nav .barber-nav-pill.is-travelling::before {
  animation:p90-nav-glint .46s ease-out both !important;
}

@keyframes p90-nav-glint {
  from { transform:translateX(-115%); opacity:.25; }
  48% { opacity:.8; }
  to { transform:translateX(115%); opacity:.18; }
}

/* Desktop: mais espaço de respiro e composições em duas colunas. */
@media (min-width:1024px) {
  html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme:not(.fluxo-barber-app) #app-container :is(
    #tab-barber-team,
    #tab-barber-inventory,
    #tab-barber-storefront,
    #tab-barber-plans,
    #tab-barber-subscriptions,
    #tab-barber-billing,
    #tab-barber-schedule,
    #tab-profile
  ) {
    padding:34px 42px 70px !important;
  }

  html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme:not(.fluxo-barber-app) #app-container :is(
    #tab-barber-team,
    #tab-barber-inventory,
    #tab-barber-storefront,
    #tab-barber-plans,
    #tab-barber-subscriptions,
    #tab-barber-billing,
    #tab-barber-schedule,
    #tab-profile
  ) > :is(.max-w-6xl,.max-w-5xl,.max-w-4xl,.max-w-3xl,.barber-store-page,.barber-billing-page,.barber-team-page,.barber-catalog-page,.barber-plans-page) {
    max-width:1440px !important;
  }

  html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme:not(.fluxo-barber-app) #app-container :is(#barber-team-list,#barber-plans-list,.comm-balances-list) {
    gap:20px !important;
  }
}

/* App: a mesma identidade com densidade adequada e respeito à barra inferior. */
@media (max-width:767px) {
  html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme #app-container :is(
    #tab-barber-team,
    #tab-barber-inventory,
    #tab-barber-storefront,
    #tab-barber-plans,
    #tab-barber-subscriptions,
    #tab-barber-billing,
    #tab-barber-schedule,
    #tab-profile
  ) {
    background-image:none !important;
  }

  html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme #app-container :is(
    #tab-barber-team,
    #tab-barber-inventory,
    #tab-barber-storefront,
    #tab-barber-plans,
    #tab-barber-subscriptions,
    #tab-barber-billing,
    #tab-barber-schedule,
    #tab-profile
  )::after {
    top:180px;
    height:130px;
    opacity:.34;
  }

  html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme #app-container :is(
    .barber-team-head,
    .barber-catalog-head,
    .barber-store-head,
    .barber-plans-head,
    .barber-billing-head,
    .barber-page-head,
    .garage-acct__header
  ) {
    min-height:auto;
    margin-bottom:18px !important;
    padding:8px 0 15px;
  }

  html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme #app-container :is(
    .barber-team-head,
    .barber-catalog-head,
    .barber-store-head,
    .barber-plans-head,
    .barber-billing-head,
    .barber-page-head,
    .garage-acct__header
  ) h2,
  html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme #tab-barber-subscriptions > div > div:first-child h2 {
    font-size:29px !important;
    line-height:1.02 !important;
    letter-spacing:-.05em !important;
  }

  html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme #app-container :is(
    #barber-team-summary,
    #barber-comm-totals,
    #barber-stock-summary,
    #barber-plans-summary,
    #barber-sub-summary,
    #barber-billing-kpis
  ) > *,
  html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme #app-container :is(.barber-team-stat,.sub-metric-card,.barber-billing-kpi) {
    min-height:92px;
    padding:16px !important;
  }

  html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme #app-container :is(.barber-card__body,.barber-plan-card__body) {
    padding:20px !important;
  }

  html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme #app-container #tab-barber-schedule .barber-week-cal-day {
    min-height:62px;
  }

  html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme #app-container #tab-barber-billing .barber-revenue-hero,
  html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme #app-container .comm-balances-head {
    min-height:150px;
    padding:22px !important;
  }
}

/* No app, os formulários laterais abrem como folhas; a listagem ocupa a tela toda. */
html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.fluxo-barber-app #tab-barber-schedule > div > .grid > div:first-child,
html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.fluxo-barber-app #tab-barber-subscriptions > div > .grid:last-of-type > div:first-child {
  grid-column:1 / -1 !important;
  width:100% !important;
  min-width:0;
}

html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.fluxo-barber-app #tab-barber-schedule :is(.barber-agenda-calendar-card,.barber-agenda-board),
html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.fluxo-barber-app #tab-barber-subscriptions :is(.barber-sub-toolbar,#barber-people-pane-subs) {
  width:100% !important;
  max-width:none !important;
}

@media (prefers-reduced-motion:reduce) {
  html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme #app-container :is(.barber-card,.barber-plan-card,.sub-client-card,.barber-stock-card) {
    transition:none !important;
  }
}

/* Interações compartilhadas da Pedra 90: sem escala ou alteração de layout.
   Touch e preferência por movimento reduzido não recebem deslocamento. */
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme #app-container :is(.p90-dash__today,.p90-dash__business,.barber-card,.barber-plan-card,.sub-client-card,.barber-stock-card,.barber-svc-row,.barber-store-card,.barber-booking-card,.barber-billing-kpi,.barber-revenue-stat,.barber-billing-charge,.comm-balance-card,.sub-metric-card) {
  transition:translate .26s cubic-bezier(.22,1,.36,1),box-shadow .26s ease,border-color .2s ease !important;
}
html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme #app-container :is(.p90-dash__today,.p90-dash__business,.barber-card,.barber-plan-card,.sub-client-card,.barber-stock-card,.barber-svc-row,.barber-store-card,.barber-booking-card,.barber-billing-kpi,.barber-revenue-stat,.barber-billing-charge,.comm-balance-card,.sub-metric-card):hover {
  translate:0 -3px !important;
  box-shadow:0 18px 36px rgba(15,55,38,.16) !important;
}
html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme :is(#app-container .tab-content,#pedra90-caixa) :is(button,a[href]):not(:disabled):not([aria-disabled="true"]):not([aria-busy="true"]):not(.mobile-bottom-nav-btn) {
  transition:translate .2s cubic-bezier(.22,1,.36,1),background-color .2s ease,border-color .2s ease,box-shadow .2s ease,color .2s ease !important;
}
html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme :is(#app-container .tab-content,#pedra90-caixa) :is(button,a[href]):not(:disabled):not([aria-disabled="true"]):not([aria-busy="true"]):not(.mobile-bottom-nav-btn):hover { translate:0 -2px !important; }
html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme :is(#app-container .tab-content,#pedra90-caixa) :is(button,a[href]):not(:disabled):not([aria-disabled="true"]):not([aria-busy="true"]):not(.mobile-bottom-nav-btn):active { translate:0 0 !important; transition-duration:.08s !important; }
}

/* Agenda: keep the decorative band inside the tab's horizontal bounds.
   A skew preserves the diagonal without widening the scrollable area. */
html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme #app-container #tab-barber-schedule::after {
  left:0;
  right:0;
  transform:skewY(-7deg);
}

html:where(:not(.fluxo-barber-app)).pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme.pedra90-theme #app-container #tab-barber-schedule > div > .grid > div {
  min-width:0;
}
