/* ============================================================
   Pensativa — Consulta surfaces
   Layer on top of tokens.css. Adds:
   - the "sala de cuidado" page texture system
   - layout primitives (shell, sidebar, content rails)
   - care-room components (status ribbon, journey rail, etc)
   ============================================================ */

/* ── Page shell ─────────────────────────────────────────────── */

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--p-ink);
  background: var(--p-blush);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

*, *::before, *::after { box-sizing: border-box; }

img { max-width: 100%; }

a { color: inherit; }

/* The "paper" — a soft, layered surface that feels like
   actual cream cardstock under raking light. Layers:
   1. CSS noise (very subtle SVG-as-data-uri stippling)
   2. Vignette warmth in the top-corners
   3. Base paper gradient
   The noise layer is a data-URI of a 1-octave Perlin-like fbm.
   It's tiny (<400 bytes) and entirely CSS.                   */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 14% 6%, rgba(245, 169, 98, 0.10), transparent 36rem),
    radial-gradient(circle at 86% 0%, rgba(140, 166, 114, 0.13), transparent 30rem),
    radial-gradient(circle at 50% 100%, rgba(217, 115, 66, 0.06), transparent 40rem),
    linear-gradient(180deg, #FFF6E9 0%, #F6EBD7 55%, #EFE2CC 100%);
}

/* Paper grain — a layered fiber-like noise via repeating gradients.
   Multiple frequencies + low opacity reads as paper fiber, not stripes. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.42;
  background-image:
    repeating-linear-gradient(
      37deg,
      rgba(44, 51, 38, 0.018) 0px,
      rgba(44, 51, 38, 0.018) 1px,
      transparent 1px,
      transparent 3px
    ),
    repeating-linear-gradient(
      -52deg,
      rgba(44, 51, 38, 0.014) 0px,
      rgba(44, 51, 38, 0.014) 1px,
      transparent 1px,
      transparent 4px
    ),
    repeating-radial-gradient(
      circle at 30% 20%,
      rgba(245, 169, 98, 0.02) 0px,
      rgba(245, 169, 98, 0.02) 2px,
      transparent 2px,
      transparent 6px
    );
  mix-blend-mode: multiply;
}

/* ── VARIANT B — "Sala de cuidado" (warmer, more editorial) ── */
body[data-variant="B"]::before {
  background:
    radial-gradient(circle at 90% 8%, rgba(217, 115, 66, 0.10), transparent 32rem),
    radial-gradient(circle at 8% 24%, rgba(107, 142, 78, 0.11), transparent 30rem),
    radial-gradient(ellipse at 50% -10%, rgba(248, 201, 141, 0.18), transparent 50rem),
    linear-gradient(180deg, #FBF2E2 0%, #F1E2C5 60%, #E8D7B8 100%);
}
body[data-variant="B"]::after {
  opacity: 0.55;
}

/* Everything that's actually content sits above the texture */
.consulta-app, .tweaks-host { position: relative; z-index: 1; }

/* ── Botanical watermark — discreet leaf in margins ────────── */
/* A single big watermark of the brand mark, blended into the paper.
   The image is local (assets/logo-mark.svg). It rotates a tiny bit
   so it doesn't read as a logo, more as a botanical print mark.   */
.consulta-app[data-botanical="true"]::before {
  content: "";
  position: fixed;
  top: -120px;
  right: -160px;
  width: 540px;
  height: 540px;
  background: url("../assets/logo-mark.svg") no-repeat center / contain;
  opacity: 0.045;
  transform: rotate(-18deg);
  pointer-events: none;
  z-index: 0;
}
.consulta-app[data-botanical="true"]::after {
  content: "";
  position: fixed;
  bottom: -180px;
  left: -200px;
  width: 620px;
  height: 620px;
  background: url("../assets/logo-mark.svg") no-repeat center / contain;
  opacity: 0.035;
  transform: rotate(28deg);
  pointer-events: none;
  z-index: 0;
}

/* ── Top bar ─────────────────────────────────────────────────── */
.c-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(253, 238, 224, 0.78);
  backdrop-filter: blur(18px) saturate(115%);
  -webkit-backdrop-filter: blur(18px) saturate(115%);
  border-bottom: 1px solid var(--border);
}
body[data-variant="B"] .c-header {
  background: rgba(251, 242, 226, 0.82);
}
.c-header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px clamp(18px, 4vw, 32px);
  display: flex;
  align-items: center;
  gap: 18px;
}
.c-header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.c-header-brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  flex-shrink: 0;
}
.c-header-brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.c-header-brand-name .name {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: 0.005em;
}
.c-header-brand-name .name em {
  color: var(--p-leaf);
  font-style: normal;
  font-weight: 600;
}
.c-header-brand-name .role {
  font-family: var(--font-sans);
  font-style: italic;
  font-size: 0.7rem;
  color: var(--p-leaf);
  letter-spacing: 0.05em;
  opacity: 0.9;
}
.c-header-spacer { flex: 1; }
.c-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Hamburger only on small screens */
.c-hamburger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.6);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--p-ink);
}
.c-hamburger:hover { background: #fff; }

.c-mobile-drawer {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--p-blush);
  padding: 8px 16px 16px;
}
.c-mobile-drawer a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 4px;
  text-decoration: none;
  color: var(--p-ink);
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
  font-weight: 500;
  min-height: 44px;
}
.c-mobile-drawer a:last-child { border-bottom: 0; }
.c-mobile-drawer a.active { color: var(--p-terracotta); font-weight: 600; }
.c-mobile-drawer a .ic { color: var(--p-leaf); }

@media (max-width: 880px) {
  .c-header-nav { display: none; }
  .c-hamburger { display: inline-flex; }
}

/* Persistent left nav (desktop) */
.c-header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 10px;
}
.c-header-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  min-height: 40px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--fg-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.c-header-nav a:hover { color: var(--p-ink); background: rgba(255, 255, 255, 0.55); }
.c-header-nav a.active {
  color: var(--p-ink);
  background: rgba(107, 142, 78, 0.14);
  font-weight: 600;
}
.c-header-nav a .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--p-terracotta);
  margin-left: 2px;
}

/* ── Page layout ─────────────────────────────────────────────── */
.c-shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 40px) clamp(18px, 4vw, 32px) 80px;
  position: relative;
  z-index: 1;
}

/* ── Section eyebrow + heading ─────────────────────────────── */
.c-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: var(--p-leaf);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
}
.c-eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.c-h-display {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  letter-spacing: -0.02em;
  line-height: 1.06;
  color: var(--p-ink);
  margin: 0 0 12px;
  text-wrap: balance;
}
.c-h-display em {
  font-style: italic;
  color: var(--p-terracotta);
  font-weight: 500;
}

.c-lead {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.55;
  max-width: 60ch;
  margin: 0;
  text-wrap: pretty;
}

/* ── Care card — the everywhere container ──────────────────── */
.c-card {
  position: relative;
  background: var(--p-surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: clamp(20px, 2.6vw, 28px);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--dur-base), transform var(--dur-base);
}
.c-card.elevated {
  background: #fff;
  box-shadow: var(--shadow-paper);
}
.c-card.hero {
  background:
    radial-gradient(circle at 8% 0%, rgba(140, 166, 114, 0.18), transparent 18rem),
    radial-gradient(circle at 92% 100%, rgba(245, 169, 98, 0.22), transparent 18rem),
    linear-gradient(180deg, #FFFAF2 0%, #FAEFD9 100%);
  border-color: rgba(107, 142, 78, 0.28);
  border-radius: 28px;
}
.c-card.ink {
  background:
    radial-gradient(circle at 100% 0%, rgba(107, 142, 78, 0.18), transparent 20rem),
    linear-gradient(135deg, #2C3326 0%, #3A4232 100%);
  color: var(--p-blush);
  border-color: rgba(140, 166, 114, 0.18);
}
.c-card.ink .c-eyebrow { color: var(--p-apricot); }

body[data-variant="B"] .c-card {
  border-color: rgba(217, 115, 66, 0.18);
  background: linear-gradient(180deg, #FFFCF4 0%, #F8EFDC 100%);
}
body[data-variant="B"] .c-card.hero {
  background:
    radial-gradient(circle at 90% -10%, rgba(217, 115, 66, 0.22), transparent 18rem),
    radial-gradient(circle at 10% 110%, rgba(107, 142, 78, 0.20), transparent 18rem),
    linear-gradient(180deg, #FFF7E5 0%, #F5E7CA 100%);
}

/* Organic edge — small irregular border-radius. Used on cards
   that want a softer, hand-cut paper feel. Variant B turns this
   on for all cards by default; variant A keeps it geometric.    */
.c-card.organic { border-radius: 32px 24px 28px 22px; }
body[data-variant="B"] .c-card { border-radius: 28px 22px 26px 20px; }
body[data-variant="B"] .c-card.hero { border-radius: 36px 28px 32px 24px; }

/* Soft inner paper highlight on hero cards (raking light) */
.c-card.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.45) 0%, transparent 30%);
}

/* Botanical accent strip — vertical hairline on left edge of
   feature cards. Variant A only — Variant B uses corner sprigs. */
.c-card.accent-leaf::before {
  content: "";
  position: absolute;
  left: 14px; top: 22px; bottom: 22px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, transparent, var(--p-leaf) 18%, var(--p-sage) 80%, transparent);
  opacity: 0.6;
}
body[data-variant="B"] .c-card.accent-leaf::before { display: none; }
body[data-variant="B"] .c-card.accent-leaf {
  background-image:
    radial-gradient(circle at 100% 0%, rgba(107, 142, 78, 0.12), transparent 8rem),
    linear-gradient(180deg, #FFFCF4 0%, #F8EFDC 100%);
}

/* Section between cards */
.c-section { margin-top: 36px; }
.c-section + .c-section { margin-top: 44px; }

/* ── Buttons (consulta variants) ───────────────────────────── */
.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  min-height: 48px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--dur-fast) var(--ease-smooth);
  white-space: nowrap;
}
.c-btn-primary {
  background: var(--p-terracotta);
  color: #fff;
  box-shadow: 0 4px 14px -4px rgba(217, 115, 66, 0.55);
}
.c-btn-primary:hover {
  background: var(--p-terracotta-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px -6px rgba(217, 115, 66, 0.65);
}
.c-btn-ink {
  background: var(--p-ink);
  color: var(--p-blush);
}
.c-btn-ink:hover { background: var(--p-forest); transform: translateY(-1px); }
.c-btn-ghost {
  background: transparent;
  color: var(--p-ink);
  border-color: rgba(44, 51, 38, 0.22);
}
.c-btn-ghost:hover { background: rgba(255, 255, 255, 0.6); border-color: var(--p-ink); }
.c-btn-leaf {
  background: rgba(107, 142, 78, 0.14);
  color: var(--p-forest);
  border-color: rgba(107, 142, 78, 0.3);
}
.c-btn-leaf:hover { background: rgba(107, 142, 78, 0.22); }

.c-btn-sm { padding: 8px 14px; min-height: 36px; font-size: 0.84rem; }
.c-btn-lg { padding: 16px 28px; min-height: 56px; font-size: 1rem; }
.c-btn-block { width: 100%; }

/* Quiet text link */
.c-link {
  color: var(--p-leaf);
  text-decoration-color: rgba(107, 142, 78, 0.4);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  font-weight: 500;
}
.c-link:hover { color: var(--p-ink); text-decoration-color: var(--p-ink); }

/* ── Chips ─────────────────────────────────────────────────── */
.c-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(241, 230, 212, 0.7);
  border: 1px solid var(--border);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--p-ink);
  white-space: nowrap;
}
.c-chip.leaf { background: rgba(107, 142, 78, 0.14); color: var(--p-forest); border-color: rgba(107, 142, 78, 0.3); }
.c-chip.terracotta { background: rgba(217, 115, 66, 0.14); color: var(--p-terracotta); border-color: rgba(217, 115, 66, 0.3); }
.c-chip.gold { background: rgba(248, 201, 141, 0.6); color: var(--p-ink); border-color: rgba(217, 115, 66, 0.4); }
.c-chip.muted { background: rgba(44, 51, 38, 0.07); color: var(--fg-muted); border-color: transparent; }
.c-chip.solid-ink { background: var(--p-ink); color: var(--p-blush); border-color: var(--p-ink); }

/* Status dot */
.c-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--p-leaf);
  box-shadow: 0 0 0 3px rgba(107, 142, 78, 0.18);
  flex-shrink: 0;
}
.c-dot.terracotta { background: var(--p-terracotta); box-shadow: 0 0 0 3px rgba(217, 115, 66, 0.18); }
.c-dot.gold { background: var(--p-apricot); box-shadow: 0 0 0 3px rgba(245, 169, 98, 0.22); }
.c-dot.live {
  animation: livepulse 2.2s var(--ease-smooth) infinite;
}
@keyframes livepulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(107, 142, 78, 0.18); }
  50%      { box-shadow: 0 0 0 7px rgba(107, 142, 78, 0.04); }
}

/* ── Inputs ────────────────────────────────────────────────── */
.c-input {
  width: 100%;
  padding: 12px 16px;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  font: inherit;
  color: var(--p-ink);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.c-input:focus {
  outline: none;
  border-color: var(--p-terracotta);
  box-shadow: 0 0 0 4px rgba(217, 115, 66, 0.15);
}
.c-textarea { min-height: 92px; resize: vertical; line-height: 1.5; }

/* ── Pretty list with leaf bullets ─────────────────────────── */
.c-leaf-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.c-leaf-list li {
  position: relative;
  padding-left: 26px;
  line-height: 1.55;
  color: var(--p-ink);
}
.c-leaf-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 14px; height: 14px;
  background: url("../assets/logo-mark.svg") no-repeat center / contain;
  opacity: 0.6;
}

/* ── Reduced motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ── Utility ───────────────────────────────────────────────── */
.c-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.c-stack { display: flex; flex-direction: column; gap: 16px; }
.c-stack.tight { gap: 8px; }
.c-stack.loose { gap: 24px; }
.c-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.c-grow { flex: 1; min-width: 0; }
.c-muted { color: var(--fg-muted); }
.c-soft { color: var(--fg-soft); }
.c-serif { font-family: var(--font-serif); }
.c-meta { font-size: 0.82rem; color: var(--fg-soft); }
.c-small { font-size: 0.9rem; color: var(--fg-muted); }
.c-hide-mobile { }
.c-show-mobile { display: none; }
@media (max-width: 720px) {
  .c-hide-mobile { display: none !important; }
  .c-show-mobile { display: revert; }
}

/* ── Reveal on first paint ─────────────────────────────────── */
@keyframes paperReveal {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.c-reveal { animation: paperReveal 0.55s var(--ease-out) both; }
.c-reveal.delay-1 { animation-delay: 0.06s; }
.c-reveal.delay-2 { animation-delay: 0.12s; }
.c-reveal.delay-3 { animation-delay: 0.18s; }
.c-reveal.delay-4 { animation-delay: 0.24s; }

.c-shell,
.c-card,
.c-section,
.c-panel,
.c-grid,
.c-form,
.c-list,
.c-table-wrap,
.equipe-card {
  min-width: 0;
}

.c-card,
.c-section,
.c-panel,
.equipe-card {
  overflow-wrap: anywhere;
  word-break: normal;
}

p, span, small, strong, h1, h2, h3, h4, h5, h6, li, dd, dt {
  overflow-wrap: anywhere;
}

.c-btn,
button,
a.c-btn {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
}

.c-actions,
.equipe-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.c-grid,
.equipe-grid {
  width: 100%;
  min-width: 0;
}

.c-card,
.equipe-card {
  max-width: 100%;
}

.c-table-wrap,
.table-wrap,
.cases-table-wrap,
.agenda-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table { max-width: 100%; }

.equipe-toolbar { display:grid; gap:14px; }
.equipe-status-own { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.equipe-controls { display:grid; gap:10px; }
.c-input { border:1px solid var(--border); border-radius:12px; padding:10px 12px; background:#fff; }
.equipe-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:16px; }
.equipe-card { display:flex; flex-direction:column; align-items:flex-start; gap:10px; overflow:hidden; min-width:0; }
.equipe-foto,
.equipe-fallback {
  width:76px;
  height:76px;
  max-width:76px;
  max-height:76px;
  border-radius:999px;
  object-fit:cover;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 76px;
}
.equipe-foto { border:1px solid var(--border); background:rgba(255,255,255,.55); display:block; }
.equipe-fallback { border:1px solid var(--border); background:rgba(107,142,78,.12); color:var(--p-leaf); font-weight:700; }
.equipe-desc { margin:0; color:var(--fg-muted); min-height:44px; }
.equipe-status { display:inline-flex; align-items:center; gap:8px; font-size:.86rem; font-weight:600; }
.equipe-status .dot { width:10px; height:10px; border-radius:50%; }
.status-online .dot { background:#2f9e44; }
.status-ausente .dot { background:#f2b705; }
.status-ocupado .dot { background:#e03131; }
.status-offline .dot { background:#9ca3af; }
.equipe-modal-bg { position:fixed; inset:0; background:rgba(0,0,0,.35); display:grid; place-items:center; z-index:50; padding:20px; }
.equipe-modal { max-width:min(560px,calc(100vw - 32px)); width:100%; max-height:calc(100vh - 32px); overflow:auto; }
.equipe-modal .equipe-foto,
.equipe-modal .equipe-fallback { width:96px; height:96px; max-width:96px; max-height:96px; flex-basis:96px; }

/* ── Modal de prescrição digital ─────────────────────────────── */
#receita-modal-bg {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.42);
  display: grid; place-items: center;
  z-index: 60; padding: 20px;
  animation: receita-fade-in .18s ease;
}
#receita-modal-bg.saindo { animation: receita-fade-out .22s ease forwards; }

@keyframes receita-fade-in  { from { opacity:0; } to { opacity:1; } }
@keyframes receita-fade-out { from { opacity:1; } to { opacity:0; } }

.receita-modal {
  max-width: min(540px, calc(100vw - 32px));
  width: 100%;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  animation: receita-slide-in .2s cubic-bezier(.22,1,.36,1);
}
@keyframes receita-slide-in { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }

.receita-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 12px;
}
.receita-header h3 { margin: 0; font-size: 1.2rem; font-family: var(--font-serif); }

.receita-fechar {
  flex-shrink: 0;
  background: none; border: none; cursor: pointer;
  font-size: 1.1rem; line-height: 1; padding: 4px 8px;
  color: var(--fg-muted); border-radius: 6px;
  transition: background .15s;
}
.receita-fechar:hover { background: rgba(0,0,0,.07); }

.receita-msg { margin: 0 0 18px; line-height: 1.6; color: var(--fg-soft); }
.receita-msg-sucesso { color: #2f7d43; font-weight: 500; }
.receita-msg-erro    { color: var(--p-terracotta); }

/* Plataformas */
.receita-plataformas { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }

.receita-plataforma-btn {
  display: flex; align-items: center; gap: 14px;
  background: var(--p-paper-warm); border: 1.5px solid var(--border);
  border-radius: 14px; padding: 14px 16px;
  cursor: pointer; text-align: left;
  transition: border-color .15s, box-shadow .15s, transform .1s;
  width: 100%;
}
.receita-plataforma-btn:hover {
  border-color: var(--p-leaf);
  box-shadow: 0 2px 10px rgba(74,124,89,.15);
  transform: translateY(-1px);
}
.receita-plataforma-btn:active { transform: translateY(0); }
.receita-plataforma-btn:focus-visible { outline: 2px solid var(--p-leaf); outline-offset: 2px; }

.receita-plat-icone { font-size: 1.5rem; flex-shrink: 0; }
.receita-plat-info  { flex: 1; min-width: 0; }
.receita-plat-info strong { display: block; margin-bottom: 2px; font-size: .97rem; }
.receita-plat-info small  { display: block; color: var(--fg-muted); font-size: .82rem; line-height: 1.45; }
.receita-plat-seta { color: var(--fg-muted); font-size: 1.1rem; flex-shrink: 0; }

/* Plataforma ainda não disponível */
.receita-plat-indisponivel {
  opacity: .5;
  cursor: not-allowed;
  pointer-events: none;
}
.receita-plat-indisponivel:hover { transform: none; box-shadow: none; border-color: var(--border); }

/* Badge "em breve" inline no nome da plataforma */
.receita-badge-breve {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 99px;
  background: rgba(0,0,0,.06);
  color: var(--fg-muted);
  font-size: .72rem;
  font-weight: 500;
  vertical-align: middle;
}

/* Aviso regulatório discreto no rodapé do modal */
.receita-aviso {
  margin: 16px 0 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(0,0,0,.03);
  border: 1px solid rgba(0,0,0,.06);
  color: var(--fg-muted);
  font-size: .8rem;
  line-height: 1.55;
}

/* Campos de formulário */
.receita-campo { margin-bottom: 16px; }
.receita-label { display: block; margin-bottom: 6px; font-size: .88rem; font-weight: 500; }
.receita-opcional { color: var(--fg-muted); font-weight: 400; }
.receita-input  { width: 100%; font-size: .95rem; }
.receita-textarea { resize: vertical; min-height: 76px; }

/* Ações */
.receita-acoes {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px;
}
.receita-rodape {
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--border);
}

@media (max-width: 480px) {
  .receita-acoes { flex-direction: column; }
  .receita-acoes .c-btn { width: 100%; }
  .receita-plataforma-btn { padding: 12px; }
}

@media (max-width: 640px) {
  .c-shell { padding-inline: 12px; }
  .equipe-grid { grid-template-columns:1fr; }
  .equipe-card { width:100%; }
  .equipe-foto,
  .equipe-fallback { width:64px; height:64px; max-width:64px; max-height:64px; flex-basis:64px; }
  .c-actions .c-btn,
  .equipe-actions .c-btn,
  .card-actions .c-btn { width:100%; }
}
