/* EXfood · Portal do Mentorado. Tokens from ../design-dna.json */
@font-face {
  font-family: "Jakarta";
  src: url("/assets/fonts/PlusJakartaSans-Variable.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jakarta";
  src: url("/assets/fonts/PlusJakartaSans-Variable-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --red: #ed093e;
  --red-press: #d6083a;
  --jasmine: #ffe786;
  --jasmine-soft: #fff4c4;
  --floral: #fffdf5;
  --ink: #10232b;
  --ink-2: #1a323c;
  --blue: #00b2ff;
  --bg: #f3f2ee;
  --card: #ffffff;
  --nested: #f6f5f1;
  --nested-2: #efeee9;
  --line: #ecebe6;
  --line-2: #e4e3dd;
  --text: #10232b;
  --muted: #5b6b71;
  --dim: #8a9599;
  --success: #1f9d6b;
  --success-soft: #e3f4ec;
  --warning: #a66f00;
  --warning-soft: #fff1cc;
  --danger: #d6083a;
  --danger-soft: #fde6ec;
  --info: #0077b0;
  --info-soft: #e0f4fd;
  --r-sm: 10px;
  --r-md: 16px;
  --r-nested: 18px;
  --r-lg: 26px;
  --r-xl: 32px;
  --pill: 999px;
  --sh-low: 0 1px 2px rgba(16, 35, 43, 0.04), 0 2px 8px -2px rgba(16, 35, 43, 0.05);
  --sh-med: 0 2px 4px rgba(16, 35, 43, 0.04), 0 16px 36px -14px rgba(16, 35, 43, 0.14);
  --sh-high: 0 4px 10px rgba(16, 35, 43, 0.06), 0 32px 64px -24px rgba(16, 35, 43, 0.28);
  --sh-red: 0 8px 20px -8px rgba(237, 9, 62, 0.55);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-micro: 140ms;
  --t-normal: 240ms;
  --t-macro: 420ms;
  --sidebar: 264px;
  --gap: 20px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 450 15px/1.55 "Jakarta", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01";
}
img {
  display: block;
  max-width: 100%;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  text-align: inherit;
}
button:disabled {
  cursor: not-allowed;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3,
strong,
b {
  font-weight: 600;
}
mark {
  background: linear-gradient(transparent 12%, var(--jasmine) 12%, var(--jasmine) 92%, transparent 92%);
  color: inherit;
  padding: 0 0.1em;
  margin: 0 -0.04em;
  border-radius: 6px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--floral);
  padding: 10px 16px;
  border-radius: var(--pill);
}
.skip-link:focus {
  top: 16px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
}
.tabular,
.numeral {
  font-variant-numeric: tabular-nums;
}
.warn-text {
  color: var(--warning);
  font-weight: 600;
}
.spacer {
  flex: 1;
}

/* Icons */
.icon {
  width: 20px;
  height: 20px;
  flex: none;
}
.icon.sm {
  width: 17px;
  height: 17px;
}
.icon.xs {
  width: 14px;
  height: 14px;
}
.icon.lg {
  width: 26px;
  height: 26px;
}

/* ---------- Shell ---------- */
.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  min-height: 100vh;
  padding: 14px;
  gap: 14px;
}
.sidebar {
  position: sticky;
  top: 14px;
  height: calc(100vh - 28px);
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-low);
  padding: 22px 14px 14px;
  overflow: hidden;
}
.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 18px;
}
.brand img {
  height: 30px;
  width: auto;
}
.sidebar .sidebar-close {
  display: none;
}
.context {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  margin-bottom: 14px;
  background: var(--nested);
  border-radius: var(--r-nested);
}
/* Multi-store client: the context card opens the store picker. */
.context.switchable {
  width: 100%;
  border: 0;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
  transition: background var(--t-micro) var(--ease);
}
.context.switchable:hover {
  background: var(--nested-2);
}
.context.switchable > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.store-list {
  margin-top: 12px;
  max-height: min(420px, 55vh);
  overflow-y: auto;
}
.store-option {
  border: 0;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.store-option[hidden] {
  display: none;
}
.store-option.active {
  box-shadow: inset 0 0 0 1.5px var(--line-2);
}
.context-mark img {
  width: 36px;
  height: 36px;
  border-radius: 11px;
}
.context strong,
.context small {
  display: block;
  line-height: 1.25;
}
.context strong {
  font-size: 14px;
}
.context small {
  font-size: 12.5px;
  color: var(--muted);
}
.nav-scroll {
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  margin: 0 -4px;
  padding: 0 4px;
}
.nav-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
}
.nav-group + .nav-group {
  margin-top: 22px;
}
.nav-label {
  font-size: 11.5px;
  color: var(--dim);
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0 12px 6px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border-radius: var(--pill);
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 500;
  transition: background var(--t-micro) var(--ease), color var(--t-micro) var(--ease);
}
.nav-link:hover {
  background: var(--nested);
}
.nav-link.active {
  background: var(--ink);
  color: var(--floral);
}
.nav-link span {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}
.nav-link .icon {
  flex: none;
}
.nav-count {
  font-size: 12px;
  font-weight: 600;
  min-width: 24px;
  height: 22px;
  padding: 0 7px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--pill);
  background: var(--jasmine);
  color: var(--ink);
}
.nav-link.active .nav-count {
  background: rgba(255, 253, 245, 0.16);
  color: var(--floral);
}
.sidebar-foot {
  padding-top: 12px;
}
.side-card {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border-radius: var(--r-nested);
  background: var(--nested);
  transition: transform var(--t-micro) var(--ease);
}
a.side-card:hover,
button.side-card:hover {
  transform: translateY(-1px);
}
.side-card strong,
.side-card small {
  display: block;
  line-height: 1.3;
}
.side-card strong {
  font-size: 13.5px;
}
.side-card small {
  font-size: 12px;
  color: var(--muted);
}
.side-card.ink {
  background: var(--ink);
  color: var(--floral);
}
.side-card.ink small {
  color: rgba(255, 253, 245, 0.7);
}

.main-area {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.topbar {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 60px;
  padding: 0 8px 0 10px;
  margin-bottom: 18px;
  border-radius: var(--pill);
  background: rgba(243, 242, 238, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.topbar .mobile-toggle,
.topbar .mobile-mark {
  display: none;
}
.mobile-mark img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}
.global-search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 1 380px;
  height: 46px;
  padding: 0 8px 0 16px;
  background: var(--card);
  border-radius: var(--pill);
  box-shadow: var(--sh-low);
  color: var(--muted);
}
.global-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}
.global-search:focus-within {
  box-shadow: 0 0 0 2px var(--ink);
}
kbd {
  font: 600 12px/1 "Jakarta", sans-serif;
  padding: 6px 9px;
  border-radius: 8px;
  background: var(--nested);
  color: var(--muted);
}
.mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: var(--pill);
  background: var(--jasmine);
  font-size: 13px;
  font-weight: 600;
}
.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.demo-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--pill);
  background: var(--card);
  box-shadow: var(--sh-low);
  font-size: 13px;
  font-weight: 600;
}
.demo-switch:hover {
  background: var(--nested);
}
.account-wrap {
  position: relative;
}
.account-button {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 4px 12px 4px 4px;
  border-radius: var(--pill);
  background: var(--card);
  box-shadow: var(--sh-low);
  font-weight: 600;
  font-size: 14px;
}
.account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 250px;
  padding: 8px;
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--sh-high);
  animation: pop var(--t-normal) var(--ease);
}
.account-menu-head {
  padding: 10px 12px 12px;
}
.account-menu-head strong,
.account-menu-head small {
  display: block;
}
.account-menu-head small {
  color: var(--muted);
  font-size: 12.5px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  font-weight: 500;
}
.account-menu button:hover {
  background: var(--nested);
}

.page {
  outline: 0;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 6px 8px 56px;
  animation: enter var(--t-macro) var(--ease);
}
.bottom-nav {
  display: none;
}
.menu-shade {
  display: none;
}

/* ---------- Primitives ---------- */
.button {
  --b-bg: var(--red);
  --b-fg: var(--floral);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--pill);
  background: var(--b-bg);
  color: var(--b-fg);
  font-weight: 600;
  font-size: 14.5px;
  white-space: nowrap;
  box-shadow: var(--sh-red);
  transition: transform var(--t-micro) var(--ease), filter var(--t-micro) var(--ease), background var(--t-micro) var(--ease);
}
.button:hover:not(:disabled) {
  filter: brightness(0.94);
}
.button:active:not(:disabled) {
  transform: scale(0.98);
}
.button:disabled {
  opacity: 0.45;
  box-shadow: none;
}
.button:focus-visible {
  outline-color: var(--red);
}
.button.secondary {
  --b-bg: var(--card);
  --b-fg: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.button.secondary:hover:not(:disabled) {
  filter: none;
  background: var(--nested);
}
.button.secondary:focus-visible,
.button.dark:focus-visible {
  outline-color: var(--ink);
}
.button.dark {
  --b-bg: var(--ink);
  --b-fg: var(--floral);
  box-shadow: none;
}
.button.light {
  --b-bg: var(--floral);
  --b-fg: var(--ink);
  box-shadow: none;
}
.button.light:focus-visible,
.button.ghost-light:focus-visible {
  outline-color: var(--floral);
}
.button.ghost-light {
  --b-bg: rgba(255, 253, 245, 0.1);
  --b-fg: var(--floral);
  box-shadow: inset 0 0 0 1px rgba(255, 253, 245, 0.22);
}
.button.danger {
  --b-bg: var(--danger);
}
.button.danger-ghost {
  --b-bg: transparent;
  --b-fg: var(--danger);
  box-shadow: none;
}
.button.danger-ghost:hover {
  background: var(--danger-soft);
  filter: none;
}
.button.danger-ghost:focus-visible {
  outline-color: var(--danger);
}
.button.compact {
  height: 38px;
  padding: 0 16px;
  font-size: 13.5px;
}
.button.block {
  width: 100%;
}
.button.is-done {
  --b-fg: var(--success);
}
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  transition: background var(--t-micro) var(--ease);
}
.icon-button:hover:not(:disabled) {
  background: var(--nested);
}
.icon-button:disabled {
  opacity: 0.35;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  border-radius: 6px;
}
.text-link:hover:not(:disabled) {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.text-link:disabled {
  opacity: 0.4;
}
.text-link.danger {
  color: var(--danger);
}
.text-link.danger:focus-visible {
  outline-color: var(--danger);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 11px;
  border-radius: var(--pill);
  background: var(--nested);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
.chip .dot,
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.chip.success {
  background: var(--success-soft);
  color: var(--success);
}
.chip.danger {
  background: var(--danger-soft);
  color: var(--danger);
}
.chip.warning {
  background: var(--warning-soft);
  color: var(--warning);
}
.chip.info {
  background: var(--info-soft);
  color: var(--info);
}
.chip.on-jasmine {
  background: rgba(16, 35, 43, 0.08);
  color: var(--ink);
}
.chip.on-ink {
  background: rgba(255, 253, 245, 0.12);
  color: var(--floral);
}
.dot.live {
  background: var(--jasmine);
  box-shadow: 0 0 0 4px rgba(255, 231, 134, 0.18);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}
.progress-track {
  height: 6px;
  border-radius: var(--pill);
  background: var(--nested-2);
  overflow: hidden;
}
.progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--ink);
  transition: width var(--t-macro) var(--ease);
}
.segments {
  display: flex;
  gap: 4px;
  min-width: 0;
}
.segments span {
  flex: 1;
  height: 8px;
  min-width: 6px;
  border-radius: var(--pill);
  background: var(--nested-2);
}
.segments .on {
  background: var(--ink);
}
.segments .half {
  background: linear-gradient(90deg, var(--ink) 50%, var(--nested-2) 50%);
}
.segments .now {
  background: var(--red);
}
.avatar {
  --s: 40px;
  display: inline-grid;
  place-items: center;
  width: var(--s);
  height: var(--s);
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  background: var(--jasmine);
  color: var(--ink);
  font-size: calc(var(--s) * 0.36);
  font-weight: 600;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
}
.avatar.sm {
  --s: 36px;
}
.avatar.xs {
  --s: 26px;
}
.avatar.xl {
  --s: 72px;
}
.avatars {
  display: flex;
}
.avatars .avatar {
  box-shadow: 0 0 0 2px var(--card);
}
.avatars .avatar + .avatar {
  margin-left: -8px;
}
.pill-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  background: var(--card);
  color: var(--ink);
}
.pill-icon.soft {
  background: var(--nested);
}
.pill-icon.big {
  width: 64px;
  height: 64px;
  background: var(--jasmine);
}
.pill-icon.big .icon {
  width: 28px;
  height: 28px;
}
.step-index {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  background: var(--nested);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.step-index.done {
  background: var(--ink);
  color: var(--floral);
}
.step-index.muted {
  color: var(--dim);
}

/* Cards */
.card {
  position: relative;
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-low);
  padding: 24px;
}
.card.tone-jasmine {
  background: var(--jasmine);
  box-shadow: 0 18px 40px -22px rgba(201, 160, 0, 0.55);
}
.card.tone-jasmine .muted,
.card.tone-jasmine p {
  color: rgba(16, 35, 43, 0.78);
}
.card.tone-jasmine .segments span {
  background: rgba(16, 35, 43, 0.12);
}
.card.tone-jasmine .segments .on {
  background: var(--ink);
}
.card.tone-ink {
  background: var(--ink);
  color: var(--floral);
  overflow: hidden;
  isolation: isolate;
}
.card.tone-ink p,
.card.tone-ink .eyebrow,
.card.tone-ink .muted,
.card.tone-ink small {
  color: rgba(255, 253, 245, 0.72);
}
.card.glow::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(0, 178, 255, 0.55), transparent 55%),
    radial-gradient(80% 70% at 0% 100%, rgba(0, 178, 255, 0.16), transparent 60%);
  mix-blend-mode: screen;
}
.card.glow::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--grain);
  opacity: 0.22;
  pointer-events: none;
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.card-head h2 {
  font-size: 18px;
  letter-spacing: -0.015em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-head p {
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 2px;
}
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.nested {
  background: var(--nested);
  border-radius: var(--r-nested);
  padding: 14px 16px;
}
.card.tone-jasmine .nested {
  background: rgba(255, 253, 245, 0.62);
}
.numeral {
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 600;
}
.numeral small {
  font-size: 0.5em;
  letter-spacing: 0;
  margin-left: 2px;
  color: inherit;
  opacity: 0.6;
}

/* Page heads */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 8px 0 26px;
}
.page-head h1 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.page-head .eyebrow .text-link {
  font-size: 13px;
  color: var(--muted);
}
.page-sub {
  color: var(--muted);
  margin-top: 8px;
  max-width: 62ch;
}
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: none;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 40px 0 16px;
}
.section-head h2 {
  font-size: 22px;
  letter-spacing: -0.02em;
}
.section-head p {
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 2px;
}
.empty-state {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
  padding: 48px 24px;
}
.empty-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--jasmine);
  margin-bottom: 6px;
}
.empty-state h2 {
  font-size: 19px;
}
.empty-state p {
  color: var(--muted);
  max-width: 44ch;
  margin-bottom: 8px;
}

/* Bento */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  margin-bottom: var(--gap);
}
.bento > * {
  grid-column: span 12;
  animation: enter var(--t-macro) var(--ease) both;
}
.bento > :nth-child(2) {
  animation-delay: 50ms;
}
.bento > :nth-child(3) {
  animation-delay: 100ms;
}
.bento > :nth-child(4) {
  animation-delay: 150ms;
}
.span-4 {
  grid-column: span 4 !important;
}
.span-5 {
  grid-column: span 5 !important;
}
.span-6 {
  grid-column: span 6 !important;
}
.span-7 {
  grid-column: span 7 !important;
}
.span-8 {
  grid-column: span 8 !important;
}
.span-12 {
  grid-column: span 12 !important;
}
.home-bento > :nth-child(1) {
  grid-column: span 7;
}
.home-bento > :nth-child(2) {
  grid-column: span 5;
}
.home-bento > :nth-child(3) {
  grid-column: span 8;
}
.home-bento > :nth-child(4) {
  grid-column: span 4;
}

/* Home */
.cycle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px 8px 8px;
  border-radius: var(--pill);
  background: var(--card);
  box-shadow: var(--sh-low);
}
.cycle svg {
  width: 44px;
  height: 44px;
  transform: rotate(-90deg);
}
.cycle circle {
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
}
.cycle-bg {
  stroke: var(--nested-2);
}
.cycle-fg {
  stroke: var(--red);
  stroke-dasharray: 119.4;
  transition: stroke-dashoffset var(--t-macro) var(--ease);
}
.cycle strong,
.cycle small {
  display: block;
  line-height: 1.25;
}
.cycle small {
  font-size: 12.5px;
  color: var(--muted);
}
.bento-onboarding h2,
.bento-call h2,
.complete-banner h2 {
  font-size: 24px;
  line-height: 1.18;
  letter-spacing: -0.025em;
  max-width: 22ch;
}
.bento-onboarding > p {
  margin: 10px 0 18px;
  max-width: 48ch;
}
.bento-onboarding mark {
  background: linear-gradient(transparent 12%, var(--floral) 12%, var(--floral) 92%, transparent 92%);
}
.next-step {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 10px 10px 10px 12px;
}
.next-step .step-index {
  background: var(--card);
}
.next-step > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.next-step small,
.next-step strong {
  display: block;
  line-height: 1.3;
}
.next-step small {
  font-size: 12px;
  color: rgba(16, 35, 43, 0.65);
}
.next-step strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bento-call {
  display: flex;
  flex-direction: column;
}
.bento-call > p:not(.call-type) {
  margin-top: 10px;
}
.call-when {
  font-size: 13px;
  font-weight: 600;
  color: var(--jasmine);
}
.call-type {
  font-size: 14px;
  margin-bottom: 4px;
}
.call-time {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
}
.call-time span {
  font-size: 20px;
}
.call-time b {
  font-size: 40px;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--jasmine);
  font-weight: 600;
}
.call-person {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}
.call-person strong,
.call-person small {
  display: block;
  line-height: 1.3;
}
.call-person small {
  font-size: 12.5px;
  color: var(--muted);
}
.call-person.compact {
  margin-top: 10px;
}
.bento-call .card-actions {
  margin-top: auto;
  padding-top: 20px;
}
.bento-resume {
  display: flex;
  align-items: center;
  gap: 20px;
}
.resume-thumb {
  position: relative;
  width: 200px;
  aspect-ratio: 16 / 10;
  flex: none;
  border-radius: var(--r-nested);
  overflow: hidden;
  background: var(--nested);
}
.resume-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-macro) var(--ease);
}
.resume-thumb:hover img {
  transform: scale(1.04);
}
.resume-thumb i {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 253, 245, 0.85);
  backdrop-filter: blur(8px);
  color: var(--ink);
}
.resume-copy {
  flex: 1;
  min-width: 0;
}
.resume-copy h2 {
  font-size: 19px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.resume-copy .muted {
  font-size: 13.5px;
  margin: 4px 0 12px;
}
.resume-done h2 {
  font-size: 19px;
}
.resume-done p {
  color: var(--muted);
  margin-top: 4px;
}
.bento-revenue {
  display: flex;
  flex-direction: column;
}
.bento-revenue .card-top {
  margin-bottom: 10px;
}
.bento-revenue .eyebrow {
  margin: 0;
}
.bento-revenue h2 {
  font-size: 19px;
}
.mini-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 92px;
  margin: 18px 0 30px;
}
.mini-bars span {
  position: relative;
  flex: 1;
  border-radius: 10px;
  background: var(--nested-2);
}
.mini-bars span.now {
  background: var(--jasmine);
}
.mini-bars small {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 11.5px;
  color: var(--dim);
  text-transform: capitalize;
}
.bento-revenue .text-link {
  margin-top: auto;
}
.bento-track .card-head h2 {
  font-size: 19px;
}
.track-rows {
  display: grid;
  gap: 6px;
}
.track-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) minmax(80px, 160px) 40px;
  align-items: center;
  gap: 12px;
  padding: 6px;
  border-radius: 14px;
  transition: background var(--t-micro) var(--ease);
}
button.track-row:hover {
  background: var(--nested);
}
.track-row-title {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.track-row small {
  text-align: right;
  color: var(--muted);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}
.quick-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}
.quick {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--card);
  border-radius: 22px;
  box-shadow: var(--sh-low);
  transition: transform var(--t-normal) var(--ease), box-shadow var(--t-normal) var(--ease);
}
.quick:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-med);
}
.quick > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.quick strong,
.quick small {
  display: block;
  line-height: 1.3;
}
.quick small {
  font-size: 12.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.quick > .icon {
  color: var(--dim);
}

/* ---------- Treinamentos ---------- */
.shelf .section-head {
  margin-top: 40px;
}
.rail-buttons {
  display: flex;
  gap: 8px;
}
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * var(--gap)) / 4);
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 2px 10px;
  margin: -4px -2px 0;
  outline: 0;
}
.rail::-webkit-scrollbar {
  display: none;
}
.rail > * {
  scroll-snap-align: start;
}
.module-card {
  position: relative;
  min-width: 0;
}
.poster {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--sh-low);
  isolation: isolate;
}
.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  transition: transform var(--t-macro) var(--ease);
}
.poster:hover img {
  transform: scale(1.03);
}
.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 35, 43, 0) 38%, rgba(16, 35, 43, 0.92) 100%);
}
.poster-number {
  position: absolute;
  top: 14px;
  left: 14px;
  height: 30px;
  min-width: 42px;
  padding: 0 10px;
  display: grid;
  place-items: center;
  border-radius: var(--pill);
  background: rgba(255, 253, 245, 0.78);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.poster-title {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  color: var(--floral);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-align: left;
}
.poster-badge {
  position: absolute;
  top: 14px;
  right: 58px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  padding: 0 10px;
  border-radius: var(--pill);
  background: var(--jasmine);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}
.save-button {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 253, 245, 0.78);
  backdrop-filter: blur(12px);
  color: var(--ink);
}
.save-button.is-saved {
  background: var(--jasmine);
}
.save-button.is-saved .icon {
  fill: currentColor;
}
.module-meta {
  display: flex;
  justify-content: space-between;
  padding: 10px 4px 8px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.module-card .progress-track {
  margin: 0 4px;
}
.track-block + .track-block {
  margin-top: 40px;
}
.track-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: var(--gap);
}
.track-head h2 {
  font-size: 22px;
  letter-spacing: -0.02em;
}
.track-head .muted {
  margin-top: 4px;
  max-width: 60ch;
}
.track-progress {
  display: grid;
  gap: 10px;
  width: min(260px, 40%);
  justify-items: end;
}
.track-progress .segments {
  width: 100%;
}
.module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}
.module-hero {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  margin-bottom: var(--gap);
}
.module-hero-poster .module-meta,
.module-hero-poster .progress-track,
.module-hero-poster .save-button {
  display: none;
}
.module-hero-copy h1 {
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.lead {
  color: var(--muted);
  font-size: 16px;
  margin: 12px 0 16px;
  max-width: 56ch;
}
.module-progress {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
}
.module-progress small {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 4px;
}
.module-progress .numeral {
  font-size: 26px;
}
.lesson-list {
  display: grid;
  gap: 6px;
}
.lesson-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto 20px;
  align-items: center;
  gap: 14px;
  padding: 10px 14px 10px 10px;
  border-radius: var(--r-nested);
  transition: background var(--t-micro) var(--ease);
}
.lesson-row:hover {
  background: var(--nested);
}
.lesson-row.done .step-index {
  background: var(--ink);
  color: var(--floral);
}
.lesson-row.current .step-index {
  background: var(--red);
  color: var(--floral);
}
.lesson-row-copy strong,
.lesson-row-copy small {
  display: block;
}
.lesson-row-copy small {
  font-size: 12.5px;
  color: var(--muted);
}
.lesson-row-state {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

/* Aula */
.classroom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: var(--gap);
  align-items: start;
}
.classroom-main {
  display: grid;
  gap: var(--gap);
  min-width: 0;
}
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--sh-med);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-empty {
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  gap: 10px;
  color: var(--floral);
  padding: 24px;
}
.video-empty p {
  color: rgba(255, 253, 245, 0.7);
}
.video-empty h2 {
  font-size: 19px;
}
.next-up {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 14px 14px 16px;
}
.next-up > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.next-up small,
.next-up strong {
  display: block;
}
.next-up small {
  color: var(--muted);
  font-size: 12.5px;
}
.lesson-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.lesson-head h1 {
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.lesson-head .muted {
  margin-top: 4px;
  font-size: 14px;
}
.lesson-description {
  color: var(--ink-2);
  max-width: 70ch;
}
.materials h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  margin-bottom: 12px;
}
.material {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 10px;
}
.material + .material {
  margin-top: 8px;
}
.material > span:nth-child(2) {
  flex: 1;
}
.material strong,
.material small {
  display: block;
}
.material small {
  color: var(--muted);
  font-size: 12.5px;
}
.material[aria-disabled="true"] {
  opacity: 0.6;
  pointer-events: none;
}
.lesson-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.notebook textarea {
  width: 100%;
  min-height: 140px;
  resize: vertical;
  padding: 16px;
  border: 0;
  border-radius: var(--r-nested);
  background: var(--nested);
  outline: 0;
  line-height: 1.6;
}
.notebook textarea:focus {
  background: var(--card);
  box-shadow: 0 0 0 2px var(--ink);
}
.notebook .card-head {
  align-items: center;
}
.notebook .card-head span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.notebook-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}
.playlist {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 110px);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.playlist-head {
  padding: 20px 20px 16px;
}
.playlist-progress {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  margin-bottom: 10px;
}
.playlist-progress span {
  color: var(--muted);
}
.playlist-body {
  overflow-y: auto;
  padding: 0 10px 12px;
}
.playlist details {
  border-radius: var(--r-nested);
}
.playlist details[open] {
  background: var(--nested);
}
.playlist summary {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  padding: 10px;
  cursor: pointer;
  list-style: none;
  border-radius: var(--r-nested);
}
.playlist summary::-webkit-details-marker {
  display: none;
}
.playlist summary strong,
.playlist summary small {
  display: block;
  line-height: 1.3;
}
.playlist summary strong {
  font-size: 14px;
}
.playlist summary small {
  font-size: 12px;
  color: var(--muted);
}
.playlist details[open] summary > .icon {
  transform: rotate(180deg);
}
.playlist details[open] .step-index {
  background: var(--card);
}
.playlist details[open] .step-index.done {
  background: var(--ink);
}
.playlist details > div {
  padding: 0 6px 8px;
}
.pl-lesson {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 8px;
  width: 100%;
  padding: 8px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.35;
}
.pl-lesson:hover {
  background: var(--card);
}
.pl-lesson small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.pl-lesson.active {
  background: var(--card);
  box-shadow: var(--sh-low);
  font-weight: 600;
}
.pl-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--card);
}
.pl-lesson.active .pl-icon {
  background: var(--red);
  color: var(--floral);
}
.pl-lesson.done .pl-icon {
  background: var(--ink);
  color: var(--floral);
}

/* ---------- Onboarding ---------- */
.progress-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 260px;
  padding: 12px 18px;
  border-radius: var(--pill);
  background: var(--card);
  box-shadow: var(--sh-low);
}
.progress-pill .numeral {
  font-size: 24px;
}
.progress-pill .segments {
  flex: 1;
}
.complete-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: var(--gap);
}
.complete-banner > div {
  flex: 1;
}
.complete-banner h2 {
  max-width: none;
  font-size: 20px;
}
.complete-banner p {
  margin-top: 4px;
}
.onboarding {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
}
.step-list {
  list-style: none;
  margin: 0;
  padding: 10px;
  display: grid;
  gap: 4px;
  position: sticky;
  top: 92px;
}
.step {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px;
  border-radius: var(--r-nested);
  transition: background var(--t-micro) var(--ease);
}
.step:hover {
  background: var(--nested);
}
.step strong,
.step small {
  display: block;
  line-height: 1.3;
}
.step strong {
  font-size: 14px;
}
.step small {
  font-size: 12px;
  color: var(--muted);
}
.step.done .step-index {
  background: var(--ink);
  color: var(--floral);
}
.step.active {
  background: var(--jasmine);
}
.step.active .step-index {
  background: var(--card);
  color: var(--ink);
}
.step.active small {
  color: rgba(16, 35, 43, 0.7);
}
.step-detail h2 {
  font-size: 24px;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.step-detail > .muted {
  margin: 8px 0 20px;
  max-width: 60ch;
}
.step-detail .video-frame {
  margin-bottom: 4px;
}
.terms {
  line-height: 1.7;
  color: var(--ink-2);
}
.done-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  color: var(--success);
  font-weight: 600;
  background: var(--success-soft);
}
.done-note span {
  flex: 1;
}
.done-note .text-link {
  color: var(--ink);
  font-weight: 500;
}
.call-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.call-row > span:nth-child(2) {
  flex: 1;
}
.call-row strong,
.call-row small {
  display: block;
}
.call-row small {
  color: var(--muted);
  font-size: 13px;
}

/* Forms */
.field {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
  border: 0;
  margin: 0;
  padding: 0;
}
.field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 0;
}
.field-hint {
  font-size: 12.5px;
  color: var(--muted);
}
.field input,
.field select,
.field textarea,
.select-inline select,
.search-inline input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  background: var(--nested);
  outline: 0;
  transition: background var(--t-micro) var(--ease), box-shadow var(--t-micro) var(--ease);
}
.field textarea {
  padding: 13px 16px;
  resize: vertical;
  line-height: 1.55;
}
.field select,
.select-inline select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2310232B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  background-color: var(--card);
  box-shadow: 0 0 0 2px var(--ink);
}
.field input:user-invalid {
  box-shadow: 0 0 0 2px var(--danger);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.form-grid > .field:has(textarea) {
  grid-column: span 2;
}
.span-2 {
  grid-column: span 2;
}
.form-stack {
  display: grid;
  gap: 14px;
}
.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.form-foot .muted {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.check-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.check-pill {
  position: relative;
  cursor: pointer;
}
.check-pill input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}
.check-pill span {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--pill);
  background: var(--nested);
  font-size: 14px;
  font-weight: 500;
  transition: background var(--t-micro) var(--ease);
}
.check-pill input:checked + span,
.check-pill input:checked ~ span {
  background: var(--ink);
  color: var(--floral);
}
.check-pill input:focus-visible ~ span {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.check-pill.person {
  display: inline-flex;
  align-items: center;
}
.check-pill.person .avatar {
  position: absolute;
  left: 7px;
  z-index: 1;
  pointer-events: none;
}
.check-pill.person span {
  padding-left: 40px;
}
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: var(--r-nested);
  background: var(--nested);
  cursor: pointer;
  position: relative;
}
.switch-row strong,
.switch-row small {
  display: block;
}
.switch-row small {
  font-size: 12.5px;
  color: var(--muted);
}
.switch-row input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}
.switch {
  position: relative;
  width: 46px;
  height: 28px;
  flex: none;
  border-radius: var(--pill);
  background: var(--line-2);
  transition: background var(--t-normal) var(--ease);
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--card);
  box-shadow: var(--sh-low);
  transition: transform var(--t-normal) var(--ease);
}
.switch-row input:checked + .switch {
  background: var(--ink);
}
.switch-row input:checked + .switch::after {
  transform: translateX(18px);
}
.switch-row input:focus-visible + .switch {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* Segmented */
.segmented {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  margin-bottom: var(--gap);
  border-radius: var(--pill);
  background: var(--card);
  box-shadow: var(--sh-low);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.segmented button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--pill);
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
}
.segmented button:hover {
  color: var(--ink);
}
.segmented button.active {
  background: var(--ink);
  color: var(--floral);
}
.segmented button small {
  font-size: 12px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: var(--pill);
  background: var(--nested);
  color: var(--ink);
}
.segmented button.active small {
  background: var(--jasmine);
}
.segmented.small {
  margin: 0;
}
.segmented.small button {
  height: 34px;
  font-size: 13px;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: var(--gap);
}
.search-inline,
.select-inline {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 260px;
  max-width: 420px;
}
.select-inline {
  flex: 0 1 220px;
}
.search-inline.block {
  max-width: none;
  width: 100%;
}
.search-inline .icon,
.select-inline > .icon {
  position: absolute;
  left: 16px;
  color: var(--muted);
  pointer-events: none;
}
.search-inline input,
.select-inline select {
  padding-left: 44px;
  background-color: var(--card);
  box-shadow: var(--sh-low);
  border-radius: var(--pill);
}
.search-inline input:focus,
.select-inline select:focus {
  box-shadow: 0 0 0 2px var(--ink);
}

/* Rows & lists */
.rows {
  display: grid;
  gap: 6px;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px;
  border-radius: var(--r-nested);
  background: var(--nested);
}
button.row:hover {
  background: var(--nested-2);
}
/* Service under a parent connection (Drive and Agenda under Google). */
.row.sub {
  margin-left: 24px;
  width: calc(100% - 24px);
  background: transparent;
  border: 1px dashed var(--line, rgba(16, 35, 43, 0.12));
}
.row-copy {
  flex: 1;
  min-width: 0;
}
.row-copy strong,
.row-copy small {
  display: block;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row-copy strong {
  font-size: 14px;
}
.row-copy small {
  font-size: 12.5px;
  color: var(--muted);
}
.row-copy small .icon {
  vertical-align: -2px;
}
.row-side {
  display: grid;
  gap: 6px;
  width: 150px;
  flex: none;
  justify-items: end;
}
.row-side .segments,
.row-side .progress-track {
  width: 100%;
}
.row-side small {
  font-size: 12px;
  color: var(--muted);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.inline-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.list-card {
  padding: 10px;
  display: grid;
  gap: 4px;
}
.list-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 10px;
  border-radius: var(--r-nested);
  transition: background var(--t-micro) var(--ease);
}
button.list-row:hover {
  background: var(--nested);
}
.row-thumb {
  width: 96px;
  aspect-ratio: 16 / 10;
  flex: none;
  border-radius: 14px;
  overflow: hidden;
}
.row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.list-row .row-copy .progress-track {
  margin-top: 8px;
  max-width: 260px;
}
.months {
  margin-bottom: var(--gap);
}

/* Date tiles */
.date-tile {
  display: grid;
  justify-items: center;
  align-content: center;
  width: 72px;
  height: 84px;
  flex: none;
  border-radius: 20px;
  background: var(--jasmine);
  text-transform: capitalize;
}
.date-tile strong {
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.date-tile small {
  font-size: 12px;
  font-weight: 600;
}
.date-tile.past {
  background: var(--nested);
  color: var(--muted);
}
.date-tile.sm {
  width: 48px;
  height: 52px;
  border-radius: 14px;
  background: var(--card);
}
.date-tile.sm strong {
  font-size: 18px;
}
.date-tile.sm small {
  font-size: 11px;
}

/* ---------- Agenda ---------- */
.call-list {
  display: grid;
  gap: 14px;
}
.call-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.call-item-copy {
  flex: 1;
  min-width: 0;
}
.call-item-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.call-item-top h3 {
  font-size: 17px;
  letter-spacing: -0.01em;
}
.call-item-copy > .muted {
  font-size: 13.5px;
  margin-top: 2px;
}
.call-agenda {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-2);
}
.call-summary {
  margin-top: 12px;
}
.call-summary small {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.call-summary p {
  margin-top: 2px;
  font-size: 14px;
}
.call-item-actions {
  display: grid;
  justify-items: end;
  gap: 10px;
  flex: none;
  width: 200px;
}
.call-item-actions .button {
  width: 100%;
}
.call-item-actions small {
  text-align: right;
  font-size: 12px;
}
.join-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
}

.booking {
  display: grid;
  gap: var(--gap);
}
.book-step-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.book-step-head h2 {
  font-size: 18px;
  letter-spacing: -0.015em;
}
.book-step:not(.is-locked) .book-step-head {
  margin-bottom: 18px;
}
.book-step:not(.is-locked) .book-step-head .step-index {
  background: var(--ink);
  color: var(--floral);
}
.book-step.is-locked {
  padding: 18px 24px;
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--line-2);
}
.book-step.is-locked h2 {
  color: var(--dim);
}
.type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}
.type-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-radius: 20px;
  background: var(--nested);
  transition: background var(--t-micro) var(--ease), box-shadow var(--t-micro) var(--ease);
}
.type-card:hover:not(:disabled) {
  background: var(--nested-2);
}
.type-card.selected {
  background: var(--jasmine);
}
.type-card:disabled {
  opacity: 0.5;
}
.type-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.type-top strong {
  font-size: 15px;
  line-height: 1.3;
}
.type-card.selected .chip {
  background: rgba(255, 253, 245, 0.7);
}
.type-card > small {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
  flex: 1;
}
.type-card.selected > small {
  color: rgba(16, 35, 43, 0.75);
}
.type-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}
.type-foot em {
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.type-card .avatars .avatar {
  box-shadow: 0 0 0 2px var(--nested);
}
.type-card.selected .avatars .avatar {
  box-shadow: 0 0 0 2px var(--jasmine);
}
.people-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.person-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px 6px 6px;
  border-radius: var(--pill);
  background: var(--nested);
  transition: background var(--t-micro) var(--ease);
}
.person-pill:hover {
  background: var(--nested-2);
}
.person-pill strong,
.person-pill small {
  display: block;
  line-height: 1.25;
}
.person-pill strong {
  font-size: 14px;
}
.person-pill small {
  font-size: 12px;
  color: var(--muted);
}
.person-pill.selected {
  background: var(--ink);
  color: var(--floral);
}
.person-pill.selected small {
  color: rgba(255, 253, 245, 0.7);
}
.person-pill .avatar.initials {
  background: var(--card);
}
.when {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 28px;
}
.calendar {
  padding: 16px;
  border-radius: 22px;
  background: var(--nested);
}
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.cal-week,
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  text-align: center;
}
.cal-week span {
  font-size: 12px;
  font-weight: 600;
  color: var(--dim);
  padding-bottom: 4px;
}
.cal-day {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 500;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}
.cal-day.open {
  background: var(--jasmine);
  color: var(--ink);
  font-weight: 600;
}
.cal-day.open:hover {
  box-shadow: inset 0 0 0 2px var(--ink);
}
.cal-day.today {
  box-shadow: inset 0 0 0 1.5px var(--dim);
}
.cal-day.selected {
  background: var(--ink);
  color: var(--floral);
}
.cal-legend {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}
.cal-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lg {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.lg.open {
  background: var(--jasmine);
}
.lg.sel {
  background: var(--ink);
}
.slots .eyebrow {
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 14px;
}
.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
}
.slot {
  height: 46px;
  border-radius: var(--pill);
  background: var(--card);
  box-shadow: inset 0 0 0 1.5px var(--line-2);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: center;
  transition: box-shadow var(--t-micro) var(--ease), background var(--t-micro) var(--ease);
}
.slot:hover {
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.slot.selected {
  background: var(--ink);
  color: var(--floral);
  box-shadow: none;
}
.tz {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
}
.confirm-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}
.summary {
  display: grid;
  gap: 12px;
}
.summary-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.summary-row .pill-icon {
  width: 36px;
  height: 36px;
  background: var(--card);
}
.summary-row small,
.summary-row strong {
  display: block;
  line-height: 1.3;
}
.summary-row small {
  font-size: 12px;
  color: var(--muted);
}
.summary-row strong {
  text-transform: none;
}

/* Notes */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--gap);
}
.note-card {
  display: flex;
  flex-direction: column;
}
.note-card h2 {
  font-size: 17px;
  line-height: 1.3;
}
.note-excerpt {
  flex: 1;
  margin: 12px 0 16px;
  padding: 14px;
  border-radius: 14px;
  background: var(--jasmine-soft);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.note-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Charts */
.evolution .card-top {
  align-items: flex-start;
}
.evolution .eyebrow {
  margin-bottom: 10px;
}
.bar-chart {
  display: flex;
  align-items: stretch;
  gap: 12px;
  height: 180px;
  padding-top: 10px;
}
.bar-chart.tall {
  height: 230px;
}
.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}
.bar {
  width: 100%;
  max-width: 64px;
  border-radius: 18px;
  background: rgba(255, 253, 245, 0.92);
  transform-origin: bottom;
  animation: grow var(--t-macro) var(--ease) both;
}
.bar-col.now .bar {
  background: var(--jasmine);
}
.bar-col small {
  font-size: 12px;
  text-transform: capitalize;
}
.bar-value {
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.chart-empty {
  display: grid;
  place-items: center;
  height: 180px;
  border-radius: var(--r-nested);
  border: 1.5px dashed rgba(255, 253, 245, 0.2);
  color: rgba(255, 253, 245, 0.6);
}
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}
.facts.single {
  grid-template-columns: 1fr;
}
.facts div {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--nested);
}
.facts dt {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.facts dd {
  margin: 2px 0 0;
  font-weight: 600;
  font-size: 14px;
  overflow-wrap: anywhere;
}

/* ---------- Equipe ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  margin-bottom: var(--gap);
}
.stat .card-top {
  margin-bottom: 14px;
}
.stat p {
  margin-top: 10px;
}
.stat p b,
.stat p small {
  display: block;
}
.stat p small {
  font-size: 12.5px;
  color: var(--muted);
}
.stat.tone-jasmine p small {
  color: rgba(16, 35, 43, 0.7);
}
.track-admin {
  margin-bottom: var(--gap);
  padding: 20px 24px;
}
.track-admin .card-head {
  margin: 0;
  align-items: center;
}
.admin-modules {
  display: grid;
  gap: 12px;
}
.admin-module {
  padding: 12px;
}
.admin-module-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.admin-cover {
  width: 54px;
  height: 72px;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: 14px;
  flex: none;
}
.admin-module-title {
  flex: 1;
  min-width: 0;
  display: grid;
}
.admin-module-title small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.admin-module-title strong {
  font-size: 16px;
}
.admin-module.open .admin-module-head .icon-button:last-child .icon {
  transform: rotate(180deg);
}
.admin-lessons {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
}
.admin-lesson {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 8px;
  border-radius: var(--r-nested);
  background: var(--nested);
}
.admin-thumb {
  display: grid;
  place-items: center;
  width: 76px;
  aspect-ratio: 16 / 9;
  flex: none;
  border-radius: 10px;
  overflow: hidden;
  background: var(--nested-2);
  color: var(--dim);
}
.admin-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.admin-lesson .icon-button {
  width: 34px;
  height: 34px;
}
.add-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  border-radius: var(--r-nested);
  border: 1.5px dashed var(--line-2);
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  transition: border-color var(--t-micro) var(--ease), color var(--t-micro) var(--ease);
  cursor: pointer;
  position: relative;
}
.add-row:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.add-row.file input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.add-row.file:focus-within {
  border-color: var(--ink);
  color: var(--ink);
}
.type-grid.admin {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--gap);
}
.type-admin {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.type-admin .card-top {
  margin: 0;
}
.type-admin > .muted {
  flex: 1;
}
.hours-grid {
  display: grid;
  grid-template-columns: 56px repeat(7, minmax(36px, 1fr));
  gap: 6px;
  overflow-x: auto;
}
.hours-day {
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}
.hours-label {
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  align-self: center;
}
.hour {
  height: 32px;
  border-radius: 10px;
  background: var(--nested);
  transition: background var(--t-micro) var(--ease);
}
.hour:hover {
  background: var(--nested-2);
}
.hour.on {
  background: var(--jasmine);
  box-shadow: inset 0 0 0 1.5px rgba(16, 35, 43, 0.12);
}
.table-card {
  padding: 8px;
  overflow-x: auto;
}
.table {
  min-width: 860px;
}
.tr {
  display: grid;
  grid-template-columns: minmax(240px, 2.2fr) 1fr 0.9fr 0.9fr 0.7fr 1.2fr;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--r-nested);
  font-size: 14px;
}
button.tr:hover {
  background: var(--nested);
}
.tr.th {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
  padding-block: 8px;
}
.cell-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.cell-main strong,
.cell-main small {
  display: block;
  line-height: 1.3;
}
.cell-main small {
  font-size: 12.5px;
  color: var(--muted);
}
.pad {
  padding: 16px;
}
.danger-zone {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: var(--gap);
}
.team-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 12px 12px 16px;
}
.team-card.is-off {
  opacity: 0.6;
}
.team-photo {
  position: relative;
  aspect-ratio: 4 / 4.2;
  border-radius: 20px;
  overflow: hidden;
  background: var(--jasmine);
  display: grid;
  place-items: center;
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
}
.team-photo .initials {
  font-size: 42px;
  font-weight: 600;
}
.team-photo .poster-badge {
  right: 12px;
  top: 12px;
}
.team-copy {
  flex: 1;
  padding: 0 4px;
  display: grid;
  gap: 2px;
  align-content: start;
}
.team-copy > small {
  color: var(--muted);
  font-size: 13px;
}
.team-copy p {
  margin: 6px 0 10px;
}
.settings {
  display: grid;
  gap: var(--gap);
  max-width: 860px;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(16, 35, 43, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fade var(--t-normal) var(--ease);
  overflow-y: auto;
}
.modal {
  width: min(560px, 100%);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: var(--card);
  border-radius: 28px;
  box-shadow: var(--sh-high);
  animation: pop var(--t-normal) var(--ease);
}
.modal.wide {
  width: min(720px, 100%);
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 0;
}
.modal-head h2 {
  font-size: 21px;
  letter-spacing: -0.02em;
}
.modal-head p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 2px;
}
.modal-body {
  display: grid;
  gap: 16px;
  padding: 20px 24px 24px;
}
.modal-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 8px;
}
.modal-foot.center {
  justify-content: center;
}
.modal.booked {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 12px;
  padding: 32px 28px 28px;
}
.modal.booked h2 {
  font-size: 24px;
  letter-spacing: -0.025em;
}
.image-drop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border-radius: var(--r-nested);
  border: 1.5px dashed var(--line-2);
  cursor: pointer;
}
.image-drop:hover,
.image-drop:focus-within {
  border-color: var(--ink);
}
.image-drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.image-preview {
  display: grid;
  place-items: center;
  width: 64px;
  height: 80px;
  flex: none;
  border-radius: 12px;
  background: var(--nested);
  overflow: hidden;
  color: var(--dim);
}
.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-drop strong,
.image-drop small {
  display: block;
}
.image-drop small {
  font-size: 12.5px;
  color: var(--muted);
}
.yt-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px;
  border-radius: var(--r-nested);
  background: var(--nested);
  font-size: 13.5px;
}
.yt-preview img {
  width: 100px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
}
.yt-preview span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.yt-preview span:not(.muted):not(.warn-text) {
  color: var(--success);
}
.attachments {
  display: grid;
  gap: 6px;
}
.attachment {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 6px 6px 14px;
}
.attachment span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}
.attachment .icon-button {
  width: 32px;
  height: 32px;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border-radius: var(--pill);
  background: var(--ink);
  color: var(--floral);
  font-weight: 500;
  font-size: 14px;
  box-shadow: var(--sh-high);
  transform: translateX(-50%);
  animation: toast-in var(--t-normal) var(--ease);
}
.toast .icon {
  color: var(--jasmine);
}
.toast.error {
  background: var(--danger);
}
.toast.error .icon {
  color: var(--floral);
}
.toast.out {
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: all var(--t-normal) var(--ease);
}

/* ---------- Auth ---------- */
.auth {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  min-height: 100vh;
  padding: 14px;
  gap: 14px;
}
.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  width: min(420px, 100%);
  margin: 0 auto;
  padding: 40px 0;
}
.auth-logo {
  height: 40px;
  width: auto;
}
.auth-copy h1 {
  font-size: clamp(30px, 3.4vw, 42px);
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 10px;
}
.auth .field input {
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.auth .field input:focus {
  box-shadow: 0 0 0 2px var(--ink);
}
.demo-box {
  padding: 16px;
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--sh-low);
}
.demo-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
.auth-art {
  position: relative;
  border-radius: var(--r-xl);
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
  color: var(--floral);
}
.auth-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(0, 178, 255, 0.6), transparent 60%),
    radial-gradient(70% 60% at 0% 100%, rgba(0, 178, 255, 0.18), transparent 60%);
}
.auth-art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--grain);
  opacity: 0.25;
}
.auth-art-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 40px;
}
.auth-art-logo {
  height: 34px;
  width: auto;
  align-self: flex-start;
}
.auth-photos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.auth-photos img {
  aspect-ratio: 3 / 4;
  width: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: 22px;
}
.auth-photos img:nth-child(even) {
  transform: translateY(24px);
}
.auth-quote {
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  max-width: 16ch;
}
.auth-quote mark {
  background: none;
  color: var(--jasmine);
  padding: 0;
}
.auth-stats {
  display: flex;
  gap: 12px;
}
.auth-stats span {
  flex: 1;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 253, 245, 0.08);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255, 253, 245, 0.12);
}
.auth-stats strong,
.auth-stats small {
  display: block;
}
.auth-stats strong {
  font-size: 22px;
  letter-spacing: -0.02em;
}
.auth-stats small {
  font-size: 12.5px;
  color: rgba(255, 253, 245, 0.7);
}
.system-page {
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 40px;
  width: min(520px, 100% - 32px);
  margin: 0 auto;
}
.system-page h1 {
  font-size: 34px;
  letter-spacing: -0.03em;
  margin: 4px 0 8px;
}
.system-page .button {
  margin-top: 20px;
}
.boot {
  min-height: 100vh;
  display: grid;
  place-items: center;
}
.boot img {
  width: 56px;
  height: 56px;
  animation: pulse 1.2s var(--ease) infinite;
}

.auth.single {
  grid-template-columns: minmax(0, 1fr);
}
.forgot-link {
  justify-self: center;
  color: var(--muted);
  font-weight: 500;
}
.copy-row {
  display: flex;
  gap: 8px;
}
.copy-row input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 14px;
  background: var(--nested);
  font-size: 13px;
  color: var(--muted);
}

/* Motion */
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
}
@keyframes grow {
  from {
    transform: scaleY(0.2);
    opacity: 0;
  }
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
}
@keyframes pulse {
  50% {
    transform: scale(0.92);
    opacity: 0.7;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .rail {
    grid-auto-columns: calc((100% - 2 * var(--gap)) / 3);
  }
  .module-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .quick-row,
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .classroom {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
  .onboarding {
    grid-template-columns: 290px minmax(0, 1fr);
  }
}
@media (max-width: 1024px) {
  .app-shell {
    grid-template-columns: minmax(0, 1fr);
    padding: 10px;
  }
  .sidebar {
    position: fixed;
    inset: 10px auto 10px 10px;
    z-index: 50;
    width: min(300px, calc(100vw - 40px));
    height: auto;
    transform: translateX(calc(-100% - 20px));
    transition: transform var(--t-normal) var(--ease);
    box-shadow: var(--sh-high);
  }
  .menu-open .sidebar {
    transform: none;
  }
  .sidebar .sidebar-close {
    display: inline-grid;
  }
  .menu-shade {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 45;
    background: rgba(16, 35, 43, 0.35);
    backdrop-filter: blur(4px);
  }
  .topbar .mobile-toggle,
  .topbar .mobile-mark {
    display: inline-grid;
  }
  .topbar {
    top: 10px;
  }
  .classroom {
    grid-template-columns: minmax(0, 1fr);
  }
  .playlist {
    position: static;
    max-height: none;
  }
  .home-bento > :nth-child(n),
  .span-4,
  .span-5,
  .span-6,
  .span-7,
  .span-8 {
    grid-column: span 6 !important;
  }
  .home-bento > :nth-child(1),
  .home-bento > :nth-child(3) {
    grid-column: span 12 !important;
  }
  .evolution {
    grid-column: span 12 !important;
  }
}
@media (max-width: 860px) {
  .when,
  .confirm-grid,
  .onboarding,
  .module-hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .step-list {
    position: static;
  }
  .module-hero-poster {
    max-width: 240px;
  }
  .auth {
    grid-template-columns: minmax(0, 1fr);
  }
  .auth-art {
    display: none;
  }
  .call-item {
    flex-wrap: wrap;
  }
  .call-item-actions {
    width: 100%;
    justify-items: stretch;
  }
  .call-item-actions small {
    text-align: left;
  }
  .confirm-grid .form-foot {
    grid-column: auto;
  }
}
@media (max-width: 720px) {
  :root {
    --gap: 14px;
  }
  body {
    font-size: 15px;
  }
  .app-shell {
    padding: 0 0 84px;
    gap: 0;
  }
  .topbar {
    top: 0;
    margin: 0 0 10px;
    border-radius: 0;
    padding: 0 16px;
    height: 64px;
  }
  .page {
    padding: 4px 16px 32px;
  }
  .topbar {
    gap: 8px;
  }
  .global-search {
    flex: 1 1 0;
    min-width: 0;
    height: 42px;
    padding-left: 14px;
  }
  .top-actions {
    gap: 6px;
  }
  .global-search kbd,
  .account-name,
  .demo-switch span,
  .mode-pill {
    display: none;
  }
  .demo-switch {
    font-size: 0;
    width: 42px;
    padding: 0;
    justify-content: center;
  }
  .demo-switch .icon {
    width: 17px;
    height: 17px;
  }
  .account-button {
    padding: 3px;
    height: 42px;
  }
  .account-button > .icon {
    display: none;
  }
  .page-head {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 20px;
  }
  .page-actions .button {
    flex: 1;
  }
  .cycle,
  .progress-pill {
    align-self: flex-start;
  }
  .home-bento > :nth-child(n),
  .span-4,
  .span-5,
  .span-6,
  .span-7,
  .span-8,
  .span-12 {
    grid-column: span 12 !important;
  }
  .card {
    padding: 20px;
    border-radius: 24px;
  }
  .bento-resume {
    flex-direction: column;
    align-items: stretch;
  }
  .resume-thumb {
    width: 100%;
  }
  .rail {
    grid-auto-columns: 62%;
  }
  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .poster-title {
    font-size: 16px;
    left: 14px;
    right: 14px;
    bottom: 14px;
  }
  .quick-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat .numeral {
    font-size: 28px;
  }
  .track-head {
    flex-direction: column;
    align-items: stretch;
  }
  .track-progress {
    width: 100%;
    justify-items: start;
  }
  .track-row {
    grid-template-columns: 34px minmax(0, 1fr) 40px;
  }
  .track-row .segments {
    display: none;
  }
  .lesson-row {
    grid-template-columns: 34px minmax(0, 1fr) 20px;
  }
  .lesson-row-state {
    display: none;
  }
  .lesson-head {
    flex-direction: column;
  }
  .lesson-head .button {
    width: 100%;
  }
  .lesson-nav .muted {
    display: none;
  }
  .lesson-nav .button {
    flex: 1;
  }
  .form-grid,
  .facts {
    grid-template-columns: minmax(0, 1fr);
  }
  .span-2,
  .form-grid > .field:has(textarea) {
    grid-column: auto;
  }
  .form-foot .button {
    width: 100%;
  }
  .row-side {
    display: none;
  }
  .row {
    flex-wrap: wrap;
  }
  .list-row .muted.small {
    display: none;
  }
  .row-thumb {
    width: 72px;
  }
  .call-time b {
    font-size: 34px;
  }
  .date-tile {
    width: 60px;
    height: 72px;
  }
  .admin-module-head {
    flex-wrap: wrap;
  }
  .admin-module-head .inline-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .admin-lesson {
    flex-wrap: wrap;
  }
  .admin-lesson .inline-actions {
    margin-left: auto;
  }
  .danger-zone {
    flex-direction: column;
  }
  .bottom-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 30;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 2px;
    padding: 6px;
    border-radius: var(--pill);
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--sh-high);
  }
  .bottom-nav button {
    display: grid;
    justify-items: center;
    gap: 2px;
    padding: 7px 0 6px;
    border-radius: var(--pill);
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
  }
  .bottom-nav button .icon {
    width: 19px;
    height: 19px;
  }
  .bottom-nav button.active {
    background: var(--ink);
    color: var(--floral);
  }
  .modal-backdrop {
    align-items: end;
    padding: 0;
  }
  .modal,
  .modal.wide {
    width: 100%;
    border-radius: 28px 28px 0 0;
    max-height: 92vh;
  }
  .modal-foot .button {
    flex: 1;
  }
  .auth-panel {
    padding: 32px 16px;
  }
  .toast {
    bottom: 96px;
  }
}

/* ---------- Carteira de clientes (briefing EXfood) ---------- */
.segmented.wrap { flex-wrap: wrap; }
.segmented.filters { display: flex; }
.stats.kpis { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
button.stat { text-align: left; width: 100%; transition: transform var(--t-micro) var(--ease), box-shadow var(--t-micro) var(--ease); }
button.stat:hover { transform: translateY(-2px); box-shadow: var(--sh-med); }
button.stat .card-top { justify-content: space-between; color: var(--muted); }
.stat.tone-danger { background: var(--danger-soft); }
.stat.tone-danger .pill-icon { background: var(--danger); color: var(--floral); }
.stack { display: grid; gap: var(--gap); }
.row-link { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; text-align: left; border-radius: 12px; }
.row-copy.narrow { flex: 0 1 220px; }
.row .row-side strong { font-size: 14px; }
.row.attention { flex-wrap: wrap; }
.reason-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; flex: 1 1 180px; }
.form-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 16px; }
.sub-form { padding: 16px; border-radius: var(--r-nested); background: var(--nested); border: 0; margin: 0; }
.sub-form .field-label { padding: 0 0 8px; }
details.history { margin-top: 14px; }
details.history > summary,
details.creative-log > summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); list-style: none; }
details.history > summary::-webkit-details-marker,
details.creative-log > summary::-webkit-details-marker { display: none; }
details[open] > summary .icon { transform: rotate(180deg); }
details.history .rows { margin-top: 10px; }
.check-row { text-align: left; }
.check-row .step-index:empty { background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.note-row { align-items: flex-start; }
.note-row p { margin: 4px 0 0; font-size: 14px; white-space: pre-line; }
.note-row p a { text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.change-note { margin: 10px 0 0; padding: 10px 12px; }
.change-note p { margin: 2px 0 0; font-size: 13.5px; }
.change-note small { color: var(--danger); font-weight: 600; font-size: 12px; }
.team-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.team-actions .button { flex: 1 1 auto; }

.table.clients { min-width: 1240px; }
.table.clients .tr { grid-template-columns: minmax(220px, 2fr) 1fr 0.9fr 0.9fr 0.95fr 0.95fr 1.05fr 1.1fr 1fr 0.9fr; font-size: 13.5px; }
.tr .num { text-align: right; }
.tabular { font-variant-numeric: tabular-nums; }

/* Sino de alertas */
.alerts-wrap .bell { position: relative; background: var(--card); box-shadow: var(--sh-low); }
.bell b { position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--pill); background: var(--red); color: var(--floral); font-size: 11px; font-weight: 600; display: grid; place-items: center; }
.alerts-menu { position: absolute; right: 0; top: calc(100% + 8px); width: min(360px, calc(100vw - 32px)); max-height: 70vh; overflow: auto; padding: 8px; background: var(--card); border-radius: 20px; box-shadow: var(--sh-high); z-index: 40; animation: pop var(--t-normal) var(--ease); }
.alert-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border-radius: 14px; text-align: left; }
.alert-item:hover { background: var(--nested); }
.alert-item strong, .alert-item small { display: block; line-height: 1.35; }
.alert-item strong { font-size: 13.5px; }
.alert-item small { font-size: 12px; color: var(--muted); }
.alert-item.warning .pill-icon { background: var(--warning-soft); color: var(--warning); }
.alert-item.danger .pill-icon { background: var(--danger-soft); color: var(--danger); }
.alert-item.info .pill-icon { background: var(--info-soft); color: var(--info); }

/* Início do cliente */
.announce { display: flex; align-items: flex-start; gap: 14px; padding: 16px 20px; margin-bottom: var(--gap); box-shadow: inset 0 0 0 1.5px var(--jasmine), var(--sh-low); }
.announce > span:nth-child(2) { flex: 1; }
.announce strong, .announce small { display: block; }
.announce small { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.contract-strip { margin-bottom: var(--gap); }
.contract-strip-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.contract-strip-head h2 { margin: 2px 0 0; font-size: 20px; }
.facts.strip { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.facts dd small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); }
.facts.on-ink { margin-top: 18px; }
.facts.on-ink div { background: rgba(255, 253, 245, 0.08); }
.facts.on-ink dt { color: rgba(255, 253, 245, 0.6); }
.manager { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.manager > span:not(.avatar) { flex: 1; min-width: 140px; }
.manager small, .manager strong { display: block; line-height: 1.35; }
.manager small { font-size: 12.5px; color: var(--muted); }
.manager strong { font-size: 16px; }
.manager.compact strong { font-size: 14px; }
.support-card .manager .avatar { width: 64px; height: 64px; }
.support-card .manager strong { font-size: 20px; }
.pay-row { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 12px 12px 14px; }
.pay-row > span:not(.pill-icon) { flex: 1; }
.pay-row small, .pay-row strong { display: block; }
.pay-row small { font-size: 12.5px; color: var(--muted); }
.pay-row strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.pay-row.late { background: var(--danger-soft); }
.pay-row.late small { color: var(--danger); font-weight: 600; }
.strip-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; }
.strip-links .text-link .icon { margin-right: 4px; }
.contract-hero .numeral { display: block; font-size: 56px; margin-top: 4px; }

/* Cronograma de reuniões */
.schedule { margin-bottom: var(--gap); }
.schedule-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.schedule-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r-nested); background: var(--nested); flex-wrap: wrap; }
.schedule-item .step-index { font-size: 12px; }
.schedule-item.agendada { background: var(--info-soft); }
.schedule-summary { margin: 6px 0 0; font-size: 13.5px; color: var(--text); }
.schedule-action { display: flex; justify-content: flex-end; }

/* Criativos */
.creative-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--gap); }
.creative-grid.small { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.creative-card { padding: 10px; display: flex; flex-direction: column; }
.creative-grid.small .creative-card { background: var(--nested); box-shadow: none; }
.creative-media { display: block; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: var(--nested-2); }
.creative-media img, .creative-media video, .creative-media iframe { width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.creative-media.video video { object-fit: contain; background: var(--ink); }
.creative-media.empty { display: grid; place-content: center; justify-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--muted); }
.creative-copy { padding: 14px 8px 6px; display: grid; gap: 4px; flex: 1; align-content: start; }
.creative-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.creative-top strong, .creative-top small { display: block; line-height: 1.35; }
.creative-top small { color: var(--muted); font-size: 12.5px; }
.creative-copy .card-actions { margin-top: 10px; }
details.creative-log { margin-top: 10px; }
.timeline { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.timeline li { display: flex; gap: 10px; }
.timeline i { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--dim); flex: none; }
.timeline li.aprovado i { background: var(--success); }
.timeline li.alteracao i { background: var(--danger); }
.timeline strong, .timeline small { display: block; line-height: 1.35; font-size: 13px; }
.timeline small { color: var(--muted); font-size: 12px; }
.timeline p { margin: 4px 0 0; font-size: 13px; }

/* Materiais */
.materials-group + .materials-group { margin-top: 28px; }
.material-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.material-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; text-align: left; width: 100%; color: inherit; text-decoration: none; transition: box-shadow var(--t-micro) var(--ease), transform var(--t-micro) var(--ease); }
a.material-card:hover, button.material-card:not(:disabled):hover { box-shadow: var(--sh-med); transform: translateY(-1px); }
.material-card:disabled { opacity: 0.6; }

/* Guia de boas práticas */
.guide-hero { margin-bottom: var(--gap); padding: 36px; }
.guide-logo { height: 34px; width: auto; margin-bottom: 26px; }
.guide-hero h2 { max-width: 680px; font-size: 28px; line-height: 1.25; margin: 0; }
.guide-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.guide-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.guide-list .icon { color: var(--success); margin-top: 2px; flex: none; }
.guide-col.not .icon { color: var(--danger); }
.guide-message { margin-top: var(--gap); }
.guide-message p:not(.eyebrow) { font-size: 17px; font-weight: 500; margin: 8px 0 0; max-width: 820px; }
.guide-foot { margin-top: 18px; }

@media (max-width: 1180px) {
  .facts.strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .facts.strip, .form-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row-copy.narrow { flex-basis: 100%; }
  .schedule-action { width: 100%; justify-content: flex-start; }
  .pay-row { flex-wrap: wrap; }
  .pay-row .button { width: 100%; }
  .guide-hero { padding: 24px; }
  .guide-hero h2 { font-size: 22px; }
  .contract-hero .numeral { font-size: 44px; }
}

@media print {
  body { background: #fff; }
  .sidebar, .topbar, .bottom-nav, .page-actions, .skip-link, .toast, .menu-shade { display: none !important; }
  .app-shell { display: block; padding: 0; }
  .page { padding: 0; }
  .card { box-shadow: none; border: 1px solid var(--line-2); break-inside: avoid; }
  .card.tone-ink, .card.tone-jasmine { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
button.stat { display: flex; flex-direction: column; justify-content: flex-start; }
.stats.kpis .stat { padding: 20px; }
.stats.kpis .numeral { font-size: 34px; white-space: nowrap; }
.stats.kpis .stat .card-top { margin-bottom: 10px; }
.demo-actions:has(> :nth-child(3)) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.demo-actions:has(> :nth-child(3)) .button { padding-inline: 10px; }
.row.attention .row-copy { flex: 1 1 160px; }
.row.attention .reason-chips { flex: 1 1 100%; justify-content: flex-start; padding-left: 44px; }
.segmented.filters { margin-bottom: 16px; }
.row.invoice { flex-wrap: wrap; }
.row.invoice .row-copy { flex: 1 1 150px; min-width: 130px; }
.row.invoice .inline-actions { margin-left: auto; }
.facts.strip div { display: grid; align-content: start; gap: 2px; padding: 14px; }
.fact-icon { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 10px; border-radius: 50%; background: var(--card); color: var(--ink); box-shadow: var(--sh-low); }
.facts.strip div.alert { background: var(--warning-soft); }
.facts.strip div.alert .fact-icon { background: var(--jasmine); }
.facts.strip div.highlight .fact-icon { background: var(--jasmine); }
.facts.iconed div { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
.facts.iconed .fact-icon { grid-row: span 2; margin: 0; }
.facts.iconed div.alert { background: var(--warning-soft); }
.facts.iconed div.alert .fact-icon { background: var(--jasmine); }
/* Ícones nos títulos de card e nos dados */
.h-icon { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-right: 10px; border-radius: 50%; background: var(--nested); color: var(--ink); vertical-align: -9px; flex: none; }
.card.tone-ink .h-icon { background: rgba(255, 253, 245, 0.1); color: var(--floral); }
.card-head p { margin-left: 0; }
.card-head h2:has(.h-icon) + p { padding-left: 42px; }
.guide-title { display: flex; align-items: center; font-size: 18px; margin: 0; }
.h-icon.ok { background: var(--success-soft); color: var(--success); }
.h-icon.no { background: var(--danger-soft); color: var(--danger); }
.facts dt .icon { vertical-align: -2px; margin-right: 2px; opacity: 0.75; }
.eyebrow .icon { vertical-align: -2px; }
/* Atalhos da faixa do contrato: botões de verdade */
.strip-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.strip-link { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 14px 8px 8px; border-radius: var(--pill); background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line-2); font-weight: 600; font-size: 14px; text-align: left; transition: background var(--t-micro) var(--ease), box-shadow var(--t-micro) var(--ease); }
.strip-link > span:nth-child(2) { flex: 1; min-width: 0; }
.strip-link > .icon { color: var(--muted); }
.strip-link:hover { background: var(--nested); box-shadow: inset 0 0 0 1.5px var(--ink); }
.strip-link:active { transform: scale(0.98); }
@media (max-width: 860px) {
  .strip-links { grid-template-columns: minmax(0, 1fr); }
  .strip-link { border-radius: var(--r-nested); }
}

/* ---------- Fluxos de entrega ---------- */
.tr .chips { gap: 4px; }
.table.flows { min-width: 1080px; }
.table.flows .tr { grid-template-columns: minmax(200px, 1.7fr) 0.9fr 1fr minmax(180px, 1.7fr) 1.3fr 0.9fr 0.9fr; font-size: 13.5px; }
.cell-stack { display: grid; gap: 4px; justify-items: start; min-width: 0; }
.cell-stack strong { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.cell-stack small { font-size: 12px; color: var(--muted); }
.cell-stack .segments { width: 100%; }
.segments .late { background: var(--danger); }
.flows-below { margin-top: var(--gap); }

.flow-list { display: grid; gap: 14px; }
.flow-block { padding: 16px; border-radius: var(--r-nested); box-shadow: inset 0 0 0 1.5px var(--line); }
.flow-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, 220px) auto; align-items: center; gap: 16px; margin-bottom: 6px; }
.flow-head strong, .flow-head small { display: block; line-height: 1.35; }
.flow-head strong { font-size: 15.5px; }
.flow-head small { font-size: 12.5px; color: var(--muted); }
.flow-stage { margin-top: 12px; }
.flow-stage-name { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; text-transform: uppercase; }
.flow-stage-name small { font-weight: 500; text-transform: none; letter-spacing: 0; }
.flow-task { padding: 8px 10px; }
.flow-task .row-link { padding: 2px 0; }
.flow-task .row-copy small b { font-weight: 600; }
.flow-task.done .row-copy strong { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-2); }
.flow-task.late:not(.done) { box-shadow: inset 3px 0 0 var(--danger); }
button.step-index { cursor: pointer; transition: background var(--t-micro) var(--ease), transform var(--t-micro) var(--ease); }
button.step-index:not(.done) { background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line-2); }
button.step-index:not(.done):hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
button.step-index:active { transform: scale(0.94); }
.step-index.soft { background: var(--card); color: var(--muted); }

.template-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--gap); }
.template-card { display: flex; flex-direction: column; gap: 10px; }
.template-card.is-off { opacity: 0.6; }
.template-card .card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.template-card h2 { font-size: 19px; letter-spacing: -0.02em; margin: 4px 0 0; }
.template-card .type-foot { margin-top: auto; padding-top: 6px; }
.stage-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; counter-reset: stage; }
.stage-list li { counter-increment: stage; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--nested); font-size: 13.5px; font-weight: 500; }
.stage-list li::before { content: counter(stage); font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.stage-list li small { margin-left: auto; font-size: 12px; color: var(--muted); }

.modal.xwide { width: min(1040px, 100%); }
.tpl-head, .tpl-row { display: grid; grid-template-columns: 28px minmax(120px, 1fr) minmax(170px, 2fr) 170px 150px 100px auto; align-items: center; gap: 8px; }
.tpl-head { padding: 0 0 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.tpl-rows { display: grid; gap: 6px; margin-bottom: 8px; }
.tpl-row { padding: 6px; border-radius: 14px; background: var(--nested); }
.tpl-row.rec { grid-template-columns: 28px minmax(180px, 2fr) minmax(140px, 1fr) 130px 150px auto; }
.tpl-row input, .tpl-row select { width: 100%; min-width: 0; height: 40px; padding: 0 10px; font-size: 13.5px; border-radius: 10px; }
.tpl-row select:disabled { opacity: 0.45; }
.tpl-n { display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.tpl-due { display: grid; grid-template-columns: minmax(0, 1fr) 52px; gap: 4px; }
.tpl-due select { padding-right: 4px; }
.tpl-actions { display: flex; gap: 2px; }
.tpl-actions .icon-button { width: 32px; height: 32px; }

@media (max-width: 860px) {
  .flow-head { grid-template-columns: minmax(0, 1fr) auto; }
  .flow-head .segments { grid-column: 1 / -1; grid-row: 2; }
  .flow-task { flex-wrap: wrap; }
  .flow-task > .chip { margin-left: 46px; }
  .tpl-head { display: none; }
  .tpl-row, .tpl-row.rec { grid-template-columns: 28px minmax(0, 1fr) minmax(0, 1fr); }
  .tpl-row > input[data-k="title"] { grid-column: 2 / -1; }
  .tpl-row > input[data-k="stage"] { grid-column: 2 / -1; }
  .tpl-row.rec > select[data-k="every"] { grid-column: 2; }
  .tpl-actions { grid-column: 2 / -1; justify-content: flex-end; }
}

/* Andamento (cliente) */
.journey-card { margin-bottom: var(--gap); display: grid; gap: 16px; }
.journey-card .card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.journey-card h2 { margin: 2px 0 0; font-size: 20px; letter-spacing: -0.02em; }
.journey-card .next-step { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.journey-card .next-step > span:nth-child(2) { flex: 1; min-width: 180px; }
.journey-card .next-step small, .journey-card .next-step strong { display: block; line-height: 1.35; }
.journey-card .next-step small { font-size: 12.5px; color: var(--muted); }
.journey { display: grid; gap: var(--gap); }
.journey-line { list-style: none; margin: 8px 0 0; padding: 0; display: grid; }
.tl-stage { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; padding-bottom: 18px; }
.tl-stage:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 30px; bottom: 2px; width: 2px; background: var(--line-2); }
.tl-stage.done:not(:last-child)::before { background: var(--ink); }
.tl-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.tl-stage.done .tl-dot { background: var(--ink); color: var(--floral); box-shadow: none; }
.tl-stage.now .tl-dot { background: var(--jasmine); box-shadow: inset 0 0 0 1.5px var(--ink); }
.tl-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 3px 0 8px; font-size: 15px; font-weight: 600; }
.tl-stage.next .tl-name { color: var(--muted); }
.tl-body { min-width: 0; }
.tl-body ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.tl-body li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: var(--r-nested); background: var(--nested); }
.tl-body li .icon { margin-top: 2px; color: var(--muted); flex: none; }
.tl-body li.done .icon { color: var(--success); }
.tl-body li strong, .tl-body li small { display: block; line-height: 1.35; }
.tl-body li strong { font-size: 14px; font-weight: 600; }
.tl-body li small { font-size: 12.5px; color: var(--muted); }
.routine { margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--line); }
.managers { display: grid; gap: 12px; }
.managers.compact { display: flex; flex-wrap: wrap; gap: 16px; }

/* Faturamento por canal (iFood + tráfego pago) */
.bar.stacked { display: flex; flex-direction: column; overflow: hidden; background: none; gap: 2px; }
.bar.stacked i { display: block; min-height: 0; }
.seg-ifood { background: rgba(255, 253, 245, 0.92); }
.seg-trafego { background: #7fb8e6; }
.bar-col:not(.now) .bar.stacked i { opacity: 0.7; }
.bar-col.now .bar.stacked .seg-ifood { background: var(--jasmine); }
.chart-legend { display: flex; gap: 14px; margin-top: 10px; font-size: 12px; color: rgba(255, 253, 245, 0.72); }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 10px; height: 10px; border-radius: 3px; }
.rev-total { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 4px; }
.rev-total small { color: var(--muted); font-size: 13px; }
.rev-total strong { font-size: 18px; font-variant-numeric: tabular-nums; }

/* Importação de clientes (CSV) */
.import-drop { margin-bottom: 14px; }
.import-help { display: grid; gap: 8px; line-height: 1.5; }
.import-help .text-link { justify-self: start; display: inline-flex; align-items: center; gap: 6px; }
.import-count { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.import-count > span { display: flex; gap: 6px; }
.import-table { max-height: 46vh; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--r-nested); padding: 4px; }
.import-table .tr { grid-template-columns: 48px minmax(0, 2fr) minmax(0, 1.3fr) minmax(0, 1.2fr); font-size: 13.5px; }
.import-table .tr.th { position: sticky; top: -4px; background: var(--card); z-index: 1; }
.import-table .tr + .tr:not(.th) { border-top: 1px solid var(--line); border-radius: 0; }
.import-table .tr span { min-width: 0; overflow-wrap: anywhere; }
.import-table strong, .import-table small { display: block; }
.import-table small { color: var(--muted); }
.import-table .tr.bad { background: var(--danger-soft); border-radius: 12px; }
.import-table .tr.known { opacity: .6; }
.danger-text, .import-table small.danger-text { color: var(--danger); }
.import-summary { display: flex; align-items: center; gap: 12px; color: var(--success); }
.import-summary strong, .import-summary small { display: block; }
.import-summary strong { color: var(--text); }
.import-summary small { color: var(--muted); }
.import-errors { display: grid; gap: 4px; margin-top: 8px; max-height: 40vh; overflow-y: auto; }
.import-errors div { display: grid; grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1.4fr); gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--danger-soft); font-size: 13.5px; }
.import-errors span { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .import-table .tr { grid-template-columns: 36px minmax(0, 1fr); }
  .import-table .tr > span:nth-child(3) { display: none; }
  .import-table .tr > span:nth-child(4) { grid-column: 2; }
  .import-errors div { grid-template-columns: 1fr; gap: 2px; }
}
.tpl-row [hidden] { display: none; }
.flow-task .rec-undo { display: inline; padding: 0; font-size: inherit; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.flow-task .rec-undo:hover { color: var(--text); }

/* Filtro de período do dashboard */
.section-head .period-switch { margin-bottom: 0; }
.segmented.on-ink { margin-bottom: 0; background: rgba(255, 253, 245, 0.08); box-shadow: none; }
.segmented.on-ink button { color: rgba(255, 253, 245, 0.7); }
.segmented.on-ink button:hover { color: var(--floral); }
.segmented.on-ink button.active { background: var(--floral); color: var(--ink); }
.evolution-sum { margin-top: 6px; font-size: 13.5px; color: rgba(255, 253, 245, 0.65); }
.bar-chart.dense { gap: 6px; }
.bar-chart.dense .bar-value { display: none; }
.bar-chart.dense .bar-col small { font-size: 10px; }
@media (max-width: 640px) {
  .section-head:has(.period-switch), .evolution .card-top { flex-direction: column; align-items: stretch; }
  .period-switch, .segmented.on-ink { flex-wrap: wrap; }
}
/* Dashboard: period filter beside "Novo cliente"; custom dates drop to a second line */
.page-head:has(.period-switch) { flex-wrap: wrap; }
.page-head:has(.period-switch) > div:first-child { flex: 1 1 auto; }
.page-actions:has(.period-switch) { align-items: center; justify-content: flex-end; margin-left: auto; }
.page-actions .period-switch { margin-bottom: 0; }
.period-custom { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin: -10px 0 18px; }
.period-custom span { font-size: 13.5px; color: var(--muted); }
@media (max-width: 900px) {
  .page-head:has(.period-switch) { flex-direction: column; align-items: stretch; }
  .page-actions:has(.period-switch) { flex: none; flex-direction: column; align-items: stretch; margin-left: 0; }
  .page-actions:has(.period-switch) > .button { order: -1; flex: none; }
  .period-custom { justify-content: stretch; }
}
.period-custom input { height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--pill); font-size: 13.5px; background: var(--card); box-shadow: none; }
.period-custom input:focus-visible { border-color: var(--ink); outline: none; }
@media (max-width: 900px) { .period-custom input { flex: 1; min-width: 0; } }

/* Client form: grouped sections instead of one long grid. */
.form-sections {
  display: grid;
}
.form-section {
  display: grid;
  gap: 14px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.form-section:first-child {
  padding-top: 4px;
  border-top: 0;
}
.form-section:last-child {
  padding-bottom: 4px;
}
.form-section > header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}
.form-section > header p {
  margin: 3px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.form-section [hidden] {
  display: none;
}
.form-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Two-way choice shown as cards (radio inputs). */
.choice-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.choice-card {
  position: relative;
  cursor: pointer;
}
.choice-card input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}
.choice-card > span {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  align-items: center;
  height: 100%;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--nested);
  box-shadow: inset 0 0 0 1.5px transparent;
  transition: background var(--t-micro) var(--ease), box-shadow var(--t-micro) var(--ease);
}
.choice-card > span .icon {
  grid-row: span 2;
  color: var(--muted);
}
.choice-card strong {
  font-size: 14px;
  font-weight: 600;
}
.choice-card small {
  font-size: 12.5px;
  color: var(--muted);
}
.choice-card:hover > span {
  background: var(--nested-2);
}
.choice-card input:checked + span {
  background: var(--card);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.choice-card input:checked + span .icon {
  color: var(--ink);
}
.choice-card input:focus-visible + span {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* Tag input: chips plus a free text entry, styled as one field. */
.tag-input {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 7px 8px;
  border-radius: 14px;
  background: var(--nested);
  cursor: text;
  transition: box-shadow var(--t-micro) var(--ease);
}
.tag-input:focus-within {
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 4px 0 12px;
  border-radius: var(--pill);
  background: var(--card);
  box-shadow: 0 0 0 1px var(--line-2);
  font-size: 13.5px;
  font-weight: 500;
}
.tag button {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.tag button:hover {
  background: var(--nested-2);
  color: var(--ink);
}
.field .tag-input .tag-entry {
  flex: 1 1 140px;
  min-width: 120px;
  min-height: 32px;
  padding: 0 6px;
  background: transparent;
  box-shadow: none;
}

@media (max-width: 640px) {
  .form-grid.three,
  .choice-cards {
    grid-template-columns: 1fr;
  }
}
/* Long dashboard lists scroll inside their card on desktop instead of stretching the page. */
@media (min-width: 1025px) {
  .scroll-rows { max-height: 420px; overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; scrollbar-width: thin; }
}

/* Trilha individual: clientes com acesso e período */
.grant-list { display: grid; gap: 8px; }
.grant-list:empty { display: none; }
.grant-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.grant-row select, .grant-row input { width: 100%; min-width: 0; }
.grant-row label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.grant-row .icon-button { margin-bottom: 4px; }
.grant-summary { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.grant-summary .eyebrow { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
@media (max-width: 640px) {
  .grant-row { grid-template-columns: 1fr 1fr auto; }
  .grant-row select { grid-column: 1 / -1; }
}
#pendencias .flow-task .row-copy p { margin: 2px 0 4px; font-size: 14px; white-space: pre-line; color: var(--ink-2); }
.rec-title { display: inline-flex; align-items: center; gap: 6px; padding: 0; font: inherit; font-weight: 600; color: var(--text); text-align: left; }
.rec-title svg { opacity: 0.45; }
.rec-title:hover svg { opacity: 1; }

/* Fluxo: seleção e data em lote */
.flow-task.picking { cursor: pointer; }
.flow-task.picking:hover { box-shadow: inset 0 0 0 1.5px var(--line-2); }
.pick-box { width: 20px; height: 20px; flex: none; margin: 0 6px 0 4px; accent-color: var(--ink); cursor: pointer; }
.pick-all { margin-left: auto; padding: 0; font-size: 12.5px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.bulk-bar { position: sticky; top: 76px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 10px 0 4px; padding: 12px 14px; border-radius: var(--r-nested); background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line-2), 0 8px 24px -16px rgba(16, 35, 43, 0.35); }
.bulk-bar label { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; }
.bulk-bar .pick-box { margin: 0; }
.bulk-count { font-size: 13.5px; font-weight: 600; }
.bulk-date span { color: var(--muted); font-size: 12.5px; }
.bulk-date input { height: 38px; padding: 0 10px; border-radius: 10px; border: 1.5px solid var(--line-2); background: transparent; font: inherit; }
.bulk-actions { display: inline-flex; gap: 8px; margin-left: auto; }
.bulk-hint { flex-basis: 100%; color: var(--muted); font-size: 12px; }
.icon-button.active { background: var(--ink); color: #fff; }

/* Client page: cycle, consultancy progress, onboarding, lessons, calls */
.stats.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1280px) { .stats.five { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .stats.five { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.inline-add { display: flex; gap: 10px; margin-top: 14px; }
.inline-add input { flex: 1; min-width: 0; }
.nested.notice-warn { background: #FFF6D6; border: 1px solid #F3DE8A; margin-bottom: 16px; display: grid; gap: 8px; }
.nested.notice-warn ol { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.nested.notice-warn .button { justify-self: start; }
.row.choice { cursor: pointer; gap: 12px; }
.row.choice input { accent-color: #10232B; width: 18px; height: 18px; flex: none; }

/* Meta campaigns (client Anúncios page and the client page of the team) */
.ads-card .segmented { margin-bottom: 16px; }
.ads-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.ads-kpi { background: var(--nested); border-radius: var(--r-nested); padding: 14px 16px; display: grid; gap: 2px; min-width: 0; }
.ads-kpi small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.ads-kpi strong { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ads-kpi span { color: var(--muted); font-size: 12px; }
.ads-table-wrap { padding: 0; margin-bottom: 12px; }
.table.ads { min-width: 980px; }
.table.ads .tr { grid-template-columns: minmax(220px, 2fr) repeat(8, minmax(84px, 1fr)); font-size: 13.5px; }
.table.ads .cell-text strong { font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1100px) { .ads-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ads-kpi strong { font-size: 19px; } }

/* Home banners (Conteúdo → Banners) */
.banners { position: relative; margin-bottom: 18px; }
.banner-rail { display: flex; margin: 0; padding: 0; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--r-lg); }
.banner-rail::-webkit-scrollbar { display: none; }
.banner-slide { flex: 0 0 100%; scroll-snap-align: start; }
.banner-slide a, .banner-slide picture { display: block; }
.banner-slide img { display: block; width: 100%; aspect-ratio: 4 / 1; object-fit: cover; background: var(--nested); }
.banner-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; }
.banner-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 253, 245, 0.6); box-shadow: 0 0 0 1px rgba(16, 35, 43, 0.15); cursor: pointer; transition: width 0.2s ease, background 0.2s ease; }
.banner-dots button.active { width: 22px; background: #fffdf5; }
@media (max-width: 640px) { .banner-slide img { aspect-ratio: 3 / 2; } }
@media (prefers-reduced-motion: reduce) { .banner-dots button { transition: none; } }
.banner-row .banner-thumb { width: 120px; aspect-ratio: 4 / 1; object-fit: cover; border-radius: 8px; flex: none; background: var(--nested); }
@media (max-width: 640px) { .banner-row { flex-wrap: wrap; } .banner-row .banner-thumb { width: 100%; } }
.banner-sizes { margin-bottom: 16px; }

/* Assistant chat bubble (bottom right) */
.chat-dock { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.chat-fab { width: 56px; height: 56px; border-radius: 999px; border: 0; background: var(--red); color: #fffdf5; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 28px rgba(237, 9, 62, 0.32); transition: transform 0.15s ease, background 0.15s ease; }
.chat-fab:hover { background: var(--red-press); transform: translateY(-1px); }
.chat-fab:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.chat-panel { width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px)); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 24px 60px rgba(16, 35, 43, 0.18); display: flex; flex-direction: column; overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.chat-head > span:nth-child(2) { flex: 1; min-width: 0; display: grid; }
.chat-head strong { font-weight: 600; font-size: 15px; }
.chat-head small { color: var(--muted); font-size: 12px; }
.chat-avatar { width: 34px; height: 34px; border-radius: 999px; background: var(--nested); display: grid; place-items: center; color: var(--red); flex: none; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 85%; padding: 10px 13px; border-radius: 16px; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.chat-msg.me { align-self: flex-end; background: var(--ink); color: #fffdf5; border-bottom-right-radius: 6px; }
.chat-msg.bot { align-self: flex-start; background: var(--nested); color: var(--ink); border-bottom-left-radius: 6px; }
.chat-msg.error { background: #fdecef; color: #a4072b; }
.chat-msg strong { font-weight: 600; }
.chat-msg.typing { display: flex; gap: 4px; padding: 14px; }
.chat-msg.typing i { width: 6px; height: 6px; border-radius: 999px; background: var(--muted); animation: chat-dot 1s infinite ease-in-out; }
.chat-msg.typing i:nth-child(2) { animation-delay: 0.15s; }
.chat-msg.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes chat-dot { 0%, 80%, 100% { opacity: 0.3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.chat-empty { margin: auto 0; display: grid; gap: 12px; }
.chat-empty p { margin: 0; color: var(--muted); font-size: 14px; }
.chat-suggest { display: grid; gap: 8px; }
.chat-suggest button { text-align: left; font: inherit; font-size: 13.5px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.chat-suggest button:hover { background: var(--nested); }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; font: inherit; font-size: 14px; padding: 11px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--nested); color: var(--ink); }
.chat-form input:focus { outline: 2px solid var(--red); outline-offset: 1px; }
.chat-form .icon-button { flex: none; background: var(--red); color: #fffdf5; border-radius: 999px; }
@media (max-width: 720px) { .chat-dock { right: 16px; bottom: calc(92px + env(safe-area-inset-bottom)); } .chat-panel { height: min(520px, calc(100vh - 200px)); } }
@media (prefers-reduced-motion: reduce) { .chat-fab, .chat-msg.typing i { transition: none; animation: none; } }
.ad-pending { margin-bottom: 18px; }
/* Linking Meta ad accounts to clients (Integrações → Saldo das contas) */
.ad-link { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px) auto; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--r-nested); background: var(--card); border: 1px solid var(--line); }
.ad-link + .ad-link { margin-top: 8px; }
.ad-link.is-suggested { border-color: var(--line-2); box-shadow: 0 1px 0 rgba(16, 35, 43, 0.04); }
.ad-link-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; }
.ad-link-copy strong { font-weight: 600; font-size: 14px; flex-basis: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-link-copy small { color: var(--muted); font-size: 12.5px; }
.ad-link-pick select { width: 100%; min-height: 42px; padding: 0 40px 0 14px; border: 0; border-radius: 12px; background-color: var(--nested); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; appearance: none; outline: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2310232B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; transition: background-color var(--t-micro) var(--ease), box-shadow var(--t-micro) var(--ease); }
.ad-link-pick select:hover { background-color: var(--nested-2); }
.ad-link-pick select:focus-visible { background-color: var(--card); box-shadow: 0 0 0 2px var(--ink); }
.ad-link.is-suggested .ad-link-pick select { box-shadow: inset 0 0 0 1.5px var(--line-2); font-weight: 600; }
@media (max-width: 720px) {
  .ad-link { grid-template-columns: 1fr; gap: 10px; }
  .ad-link .button { width: 100%; justify-content: center; }
}
.ad-link-bulk { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; margin-bottom: 10px; border-radius: var(--r-nested); background: var(--nested); }
.ad-link-bulk span { display: grid; gap: 2px; }
.ad-link-bulk strong { font-weight: 600; font-size: 14px; }
.ad-link-bulk small { color: var(--muted); font-size: 12.5px; }
@media (max-width: 720px) { .ad-link-bulk { flex-direction: column; align-items: stretch; } }
.ad-link.is-dup { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.ad-link.is-dup .ad-link-pick select { box-shadow: inset 0 0 0 1.5px var(--red); }

/* Integrações: grouped by subject, one block per integration */
.intg-groups { display: grid; gap: 26px; }
.intg-group > header { margin-bottom: 10px; }
.intg-group > header h3 { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--ink); }
.intg-group > header p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.intg { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); overflow: hidden; }
.intg + .intg { margin-top: 10px; }
.intg-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 16px 18px; }
.intg-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--nested); color: var(--ink); display: grid; place-items: center; flex: none; }
.intg-title { min-width: 0; display: grid; gap: 2px; }
.intg-title strong { font-size: 15px; font-weight: 600; }
.intg-title small { font-size: 12.5px; color: var(--muted); line-height: 1.45; overflow-wrap: anywhere; }
.intg-title small b { font-weight: 600; color: var(--ink); }
.intg-actions { justify-content: flex-end; }
.intg-actions:empty { display: none; }
.intg-body { border-top: 1px solid var(--line); padding: 4px 18px 14px; background: var(--card); }
.intg-body > .row.sub { margin: 0; width: 100%; padding: 14px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.intg-body > .row.sub:last-of-type { border-bottom: 0; }
.intg-body > details.history { margin: 12px 0 0; padding: 12px 14px; border-radius: var(--r-nested); background: var(--nested); }
.intg-body > details.history > .rows { margin-top: 12px; }
.intg-body > p.muted { margin: 10px 0 0; }
.intg-body .nested { margin-top: 10px; }
@media (max-width: 720px) {
  .intg-head { grid-template-columns: auto minmax(0, 1fr); padding: 14px; gap: 10px 12px; }
  .intg-status, .intg-actions { grid-column: 1 / -1; }
  .intg-actions { justify-content: flex-start; flex-wrap: wrap; }
  .intg-body { padding: 4px 14px 12px; }
  .intg-body > .row.sub { flex-wrap: wrap; }
}
.toqan-answer { margin: 10px 0 0; padding: 12px; max-height: 260px; overflow: auto; white-space: pre-wrap; word-break: break-word; font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--card); border-radius: 10px; }
.fin-period { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.fin-period .period-custom, .fin-period .select-inline { margin: 0; }

/* Perfis de acesso */
.profile-notice { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 18px; font-size: 13.5px; line-height: 1.5; }
.profile-notice strong { font-weight: 600; }
.profile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.profile-card { padding: 0; overflow: hidden; }
.profile-card.is-master .profile-head { background: color-mix(in srgb, var(--red) 6%, var(--card)); }
.profile-card.is-master .intg-icon { background: color-mix(in srgb, var(--red) 12%, var(--card)); color: var(--red); }
.profile-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 18px; border-bottom: 1px solid var(--line); }
.profile-title { display: grid; gap: 4px; justify-items: start; min-width: 0; }
.profile-title strong { font-size: 16px; font-weight: 600; }
.profile-title small { color: var(--muted); font-size: 12.5px; }
.perm-lock { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.profile-body { padding: 14px 18px 18px; display: grid; gap: 8px; }
.profile-caption { margin: 0 0 4px; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.perm { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--nested); cursor: pointer; }
.perm.is-locked { cursor: default; }
.perm input { width: 18px; height: 18px; accent-color: var(--red); margin: 0; }
.perm strong { display: block; font-size: 13.5px; font-weight: 600; }
.perm small { display: block; font-size: 12px; color: var(--muted); line-height: 1.4; }
.perm .icon { color: var(--muted); }
.perms-field { display: grid; gap: 8px; border: 0; padding: 0; margin: 16px 0 0; }
.perms-field .field-label { margin-bottom: 4px; }

/* Diagnóstico: question editor */
.diag-list { display: grid; gap: 12px; margin-bottom: 12px; }
.diag-q { display: grid; gap: 14px; }
.diag-q-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.diag-label { width: 100%; min-height: 46px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--nested); font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); outline: 0; }
.diag-label:focus { background: var(--card); box-shadow: 0 0 0 2px var(--ink); }
@media (max-width: 640px) { .diag-q-head { grid-template-columns: auto minmax(0, 1fr); } .diag-q-head .inline-actions { grid-column: 1 / -1; } }
