/* =========================================================
   Cartas de Valores Pessoais — estilos
   ========================================================= */

:root {
  /* Paleta Camilla Gama */
  --purple: #472D54;
  --lilac: #CAA0D2;
  --cream: #FBF4EC;
  --blue: #75B6C6;
  --yellow: #F6DF8F;

  /* Tons derivados da paleta */
  --white: #FFFFFF;
  --primary: var(--purple);
  --primary-hover: #5E3F6E;
  --primary-soft: #7A5A88;
  --ink: var(--purple);
  --text: #5A4A63;
  --text-muted: #736479;
  --border: #E6D5EA;
  --border-strong: #D9CCDD;
  --track: #EDE2F0;
  --accent: var(--blue);
  --focus: var(--purple);

  --font-sans: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: 'Source Serif 4', Georgia, "Times New Roman", Times, serif;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1);
}

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

html { font-size: 17px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  line-height: 1.5;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 { margin: 0; font-family: var(--font-serif); line-height: 1.2; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
button { font-family: inherit; }
[hidden] { display: none !important; }

.center { text-align: center; }
.only-mobile { display: inline; }
@media (min-width: 640px) { .only-mobile { display: none; } }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.category, .site-footer, .hero-art, .modal { --focus: var(--yellow); }
.modal__box { --focus: var(--purple); }

/* ---------- Botões ---------- */
.btn {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  border: 2px solid transparent;
  padding: .625rem 1.25rem;
  font-size: .875rem;
  line-height: 1.5;
  border-radius: 1rem;
  transition: all .2s ease-in-out;
  cursor: pointer;
  text-decoration: none;
}
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-primary:not(:disabled):hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-secondary { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-secondary:not(:disabled):hover { background: var(--primary); color: var(--white); }
.btn-muted { background: transparent; color: var(--text-muted); border-color: var(--border); }
.btn-muted:not(:disabled):hover { background: var(--border); color: var(--ink); }
.btn-block { display: block; width: 100%; }

.link-btn {
  background: none; border: 0; padding: 0; font: inherit; cursor: pointer;
  text-decoration: underline; font-weight: 600; color: var(--primary);
}
.link-btn:hover { color: var(--primary-hover); }

.pulse-primary { animation: pulse-primary 1.5s ease-out; }
@keyframes pulse-primary {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: 0 0 0 6px rgba(71, 45, 84, .3); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Barra de progresso ---------- */
progress {
  appearance: none; -webkit-appearance: none;
  width: 100%; height: 10px; border: 0; border-radius: 999px;
  background: var(--track); accent-color: var(--primary); overflow: hidden;
}
progress::-webkit-progress-bar { background: var(--track); border-radius: 999px; }
progress::-webkit-progress-value { background: var(--primary); border-radius: 999px; transition: width .3s ease; }
progress::-moz-progress-bar { background: var(--primary); border-radius: 999px; }

/* ---------- Cabeçalho flutuante ---------- */
.mini-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 0 1rem;
  transform: translateY(-120%);
  visibility: hidden;
  transition: transform .3s ease, visibility .3s;
}
.mini-header.is-visible { transform: translateY(0); visibility: visible; }
.mini-header__bar {
  max-width: 76rem; margin: .5rem auto 0; height: 3.5rem; padding: 0 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  border-radius: .75rem; border: 1px solid var(--border);
  background: rgba(255, 255, 255, .85);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
}
.mini-header__brand { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.mini-header__logo { width: 2rem; height: 2rem; flex-shrink: 0; }
.mini-header__title { font-weight: 600; color: var(--primary); display: none; }
.mini-header__progress { display: flex; align-items: center; gap: .75rem; width: 14rem; max-width: 60%; }
.mini-header__count { font-size: .875rem; font-weight: 500; font-variant-numeric: tabular-nums; }
@media (min-width: 640px) { .mini-header__title { display: inline; } }

/* ---------- Estrutura ---------- */
.container {
  max-width: 80rem; margin: 0 auto; padding: 3rem 1rem;
}
.view { display: flex; flex-direction: column; gap: 4rem; }
.view.panel { display: block; }

.panel {
  background: var(--white); border-radius: 1rem; box-shadow: var(--shadow-lg); padding: 1rem;
}
.panel--roomy { padding: 2rem 1.25rem; }
@media (min-width: 640px) {
  .container { padding-left: 1.5rem; padding-right: 1.5rem; }
  .panel { padding: 2rem; }
  .panel--roomy { padding: 3rem; }
}
@media (min-width: 1024px) {
  .container { padding-left: 2rem; padding-right: 2rem; }
  .panel { padding: 3rem; }
}

.h2 { font-size: 1.75rem; font-weight: 700; color: var(--ink); }
@media (min-width: 640px) { .h2 { font-size: 1.875rem; } }

.rule { width: 6rem; height: .25rem; margin: 1rem auto 0; background: var(--accent); border-radius: .25rem; }
.rule--lg { margin-top: 1.5rem; }
.rule--sm { width: 5rem; margin-top: .75rem; }

.sub { margin-top: 1rem; font-size: 1.125rem; color: var(--text); text-wrap: pretty; }
.hint { font-size: .875rem; color: var(--text-muted); text-align: center; }

/* ---------- Introdução ---------- */
.intro {
  max-width: 72rem; margin: 0 auto; padding: .75rem;
  background: #FFFCF8; border: 1px solid rgba(71, 45, 84, .1); border-radius: 1.5rem;
}
@media (min-width: 640px) { .intro { padding: 1.5rem; } }

.hero-art {
  position: relative; overflow: hidden;
  height: clamp(190px, 30vw, 340px);
  border-radius: 1rem; box-shadow: var(--shadow-lg);
  background:
    radial-gradient(90% 80% at 85% 0%, rgba(117, 182, 198, .35), transparent 60%),
    radial-gradient(90% 90% at 10% 100%, rgba(202, 160, 210, .35), transparent 60%),
    linear-gradient(135deg, var(--purple) 0%, #5E3F6E 100%);
}
.hero-card {
  --w: clamp(92px, 13.5vw, 168px);
  position: absolute; left: 50%; top: 54%;
  width: var(--w); aspect-ratio: 3 / 4;
  padding: clamp(8px, 1.2vw, 16px);
  display: flex; flex-direction: column; justify-content: center; gap: .35rem;
  background: var(--white); border-radius: .75rem; text-align: center;
  box-shadow: 0 14px 30px rgba(36, 20, 44, .35);
  transform:
    translate(calc(-50% + var(--i) * var(--w) * 1.08), calc(-50% + var(--i) * var(--i) * 7px))
    rotate(calc(var(--i) * 6deg));
}
.hero-card i { display: block; width: 28%; height: 3px; margin: 0 auto .15rem; background: var(--accent); border-radius: 2px; }
.hero-card b { font-family: var(--font-serif); font-size: clamp(.8rem, 1.5vw, 1.25rem); color: var(--primary); }
.hero-card small { font-size: clamp(.5rem, .85vw, .72rem); line-height: 1.35; color: var(--text); }
@media (max-width: 700px) {
  .hero-card { --w: clamp(84px, 23vw, 150px); }
  .hero-card:first-child, .hero-card:last-child { display: none; }
}
@media (max-width: 520px) {
  .hero-card small { display: none; }
  .hero-card b { font-size: .74rem; }
}

.intro__text { text-align: center; padding: 2rem .5rem; }
@media (min-width: 640px) { .intro__text { padding: 3rem 1rem; } }
.eyebrow {
  font-size: .875rem; font-weight: 600; color: var(--primary-soft);
  text-transform: uppercase; letter-spacing: .1em;
  display: block; text-wrap: balance;
}
.intro__title {
  margin-top: 1rem; font-size: 2.25rem; font-weight: 900; line-height: 1.1; color: var(--primary);
}
@media (min-width: 640px) { .intro__title { font-size: 3rem; } }
@media (min-width: 1024px) { .intro__title { font-size: 3.75rem; } }
.intro__copy { max-width: 65ch; margin: 3rem auto 0; color: var(--text); line-height: 1.625; }
.intro__copy p + p { margin-top: 2rem; }
.intro__copy strong { font-weight: 600; }
.intro__copy .lead { text-wrap: pretty; }
@media (min-width: 640px) { .intro__copy .lead { font-size: 1.125rem; } }
.intro__original { margin-top: 2rem; }
.intro__original p { font-size: .875rem; font-weight: 600; color: var(--text); }
.intro__original .btn { margin-top: .5rem; white-space: normal; }

/* ---------- Como funciona ---------- */
.how { max-width: 64rem; margin: 4rem auto; }
.how__grid { margin-top: 3rem; display: grid; grid-template-columns: 1fr; gap: 2rem; text-align: center; }
@media (min-width: 768px) { .how__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .how__grid { grid-template-columns: repeat(4, 1fr); } }
.how__num {
  width: 4rem; height: 4rem; margin: 0 auto; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--yellow); color: var(--purple);
  font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700;
}
.how__step h3 { margin-top: 1rem; font-size: 1.25rem; font-weight: 700; }
.how__step p { margin-top: .5rem; color: var(--text); }

/* ---------- Dica para toque ---------- */
.tip {
  max-width: 42rem; margin: 2rem auto; padding: 1.5rem;
  display: flex; align-items: flex-start; gap: 1rem;
  border-radius: 1rem; background: var(--blue); color: var(--purple);
}
.tip__icon { width: 1.75rem; height: 1.75rem; flex-shrink: 0; }
.tip h3 { font-family: var(--font-serif); font-weight: 700; font-size: 1rem; }
.tip p { margin-top: .25rem; color: var(--purple); }
.tip strong { font-weight: 700; color: var(--purple); }

/* ---------- Cabeçalho de etapa ---------- */
.step-head { max-width: 56rem; margin: 3rem auto; text-align: center; }
.step-head--top { margin-top: 0; margin-bottom: 0; }
.step-head__progress { max-width: 28rem; margin: 1rem auto 0; padding: 0 2rem; }
.step-head__progress p { margin-top: .25rem; font-size: .875rem; color: var(--text-muted); }

/* ---------- Categorias ---------- */
.categories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 640px) { .categories { gap: 1.5rem; } }
@media (min-width: 1024px) { .categories { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.category {
  display: flex; flex-direction: column; min-width: 0;
  padding: .5rem; border-radius: .75rem;
  background: var(--primary); box-shadow: var(--shadow-lg);
  transition: opacity .3s ease;
}
@media (min-width: 640px) { .category { padding: 1rem; } }
.category__head { text-align: center; }
.category__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; margin-bottom: .5rem; border-radius: 50%;
  background: rgba(255, 255, 255, .2); color: var(--white);
}
.category__icon svg { width: 2rem; height: 2rem; }
.category__title { font-family: var(--font-serif); font-size: 1.05rem; font-weight: 700; color: var(--white); }
@media (min-width: 640px) { .category__title { font-size: 1.125rem; } }
.category__desc { margin-top: .25rem; font-size: .8rem; line-height: 1.5; color: var(--lilac); }
@media (min-width: 640px) { .category__desc { font-size: .875rem; line-height: 1.625; } }
.category__count { margin-top: .5rem; font-size: .875rem; font-weight: 700; color: var(--lilac); }
.category__count.is-full { color: var(--blue); }
.category__count.is-over { color: var(--yellow); }

.drop-zone {
  position: relative; flex-grow: 1; min-height: 150px; margin-top: 1rem; padding: .25rem;
  display: flex; flex-direction: column; gap: .5rem;
  border: 2px dashed rgba(202, 160, 210, .45); border-radius: .5rem;
  transition: background-color .2s ease;
}
@media (min-width: 640px) { .drop-zone { padding: .5rem; } }
.drop-zone:empty::before {
  content: 'Solte os valores aqui';
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 90%; text-align: center;
  color: var(--lilac); font-size: .875rem; font-weight: 500; pointer-events: none;
}

#values-sort-app.is-dragging .category { opacity: .75; }
#values-sort-app.is-dragging .category:has(.sortable-chosen),
#values-sort-app.is-dragging .category:has(.sortable-ghost) { opacity: 1; }
#values-sort-app.is-dragging .drop-zone { background-color: rgba(255, 255, 255, .1); }

/* ---------- Cartas ---------- */
.item {
  padding: .5rem; min-width: 0;
  background: var(--white); border: 1px solid var(--border); border-radius: .5rem;
  box-shadow: var(--shadow-sm);
  text-align: left; cursor: grab;
  transition: box-shadow .2s ease, transform .1s ease;
  overflow-wrap: anywhere; hyphens: auto;
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
}
@media (min-width: 640px) { .item { padding: .75rem; } }
.item:hover { box-shadow: var(--shadow-md); }
.item:active { cursor: grabbing; transform: scale(.97); }
.item strong { display: block; font-size: .875rem; font-weight: 600; color: var(--ink); }
@media (max-width: 479px) {
  .panel { padding: .75rem; }
  .drop-zone .item { padding: .5rem .4rem; }
  .drop-zone .item strong { font-size: .8rem; }
}
.item span { display: block; margin-top: .25rem; font-size: .75rem; color: var(--text); }
.sortable-ghost { opacity: .5; background: var(--border); }

.toggle-row { margin-top: 3rem; text-align: center; }

.available { margin-top: 2rem; }
.available__title { margin-bottom: 1.5rem; text-align: center; font-size: 1.5rem; font-weight: 700; }
.available__grid {
  max-width: 64rem; margin: 0 auto; min-height: 3rem;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem;
}
@media (min-width: 768px) { .available__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .available__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .available__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.available__grid .item {
  min-height: 80px; padding: .75rem; text-align: center;
  display: flex; flex-direction: column; justify-content: center;
}
.available__done { margin-top: .5rem; text-align: center; color: var(--text-muted); font-size: .9rem; }

/* ---------- Ações ---------- */
.actions {
  margin-top: 3rem; display: flex; justify-content: center; align-items: center; gap: 1rem;
}
.actions--col {
  flex-direction: column; padding-top: 2rem; border-top: 1px solid var(--border);
}
.actions__row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem; }
.actions__row--spaced { margin-top: 2rem; }

/* ---------- Cartões informativos ---------- */
.card {
  margin: 0 auto; width: 100%;
  background: var(--white); border: 1px solid var(--border); border-radius: 1rem; box-shadow: var(--shadow-lg);
}
.card--wide { max-width: 64rem; padding: 2rem 1.25rem; }
.card--narrow { max-width: 48rem; padding: 2rem 1.5rem; }
@media (min-width: 640px) { .card--wide { padding: 3rem; } }
.card__subtitle { margin-top: 1.5rem; font-size: 1.25rem; font-weight: 700; }
.card__copy { margin-top: 1.5rem; color: var(--text); text-wrap: pretty; }
.card__copy--tight { margin-top: 1rem; }
div.card__copy { margin-top: 1rem; }
div.card__copy p + p { margin-top: 1rem; }
#step-3-preview .card__copy { max-width: 65ch; margin-left: auto; margin-right: auto; }

.benefits, .resources { margin-top: 3rem; display: grid; grid-template-columns: 1fr; gap: 3rem 2rem; }
@media (min-width: 640px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
.resources { max-width: 48rem; margin-left: auto; margin-right: auto; gap: 2rem; }
.benefit { display: flex; align-items: flex-start; gap: 1rem; }
.benefit__icon { flex-shrink: 0; width: 2rem; height: 2rem; color: var(--primary); }
.benefit h3 { font-size: 1.125rem; font-weight: 700; }
.benefit p { margin-top: .25rem; color: var(--text); }
.benefit a { text-decoration: underline; text-underline-offset: 2px; transition: color .2s; }
.benefit a:hover { color: var(--primary-soft); }
.resources__intro { max-width: 42rem; margin: 2rem auto 0; text-align: center; color: var(--text); }

/* ---------- Sanfonas (details) ---------- */
.accordion { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.accordion details {
  background: var(--white); border: 1px solid var(--border); border-radius: .75rem; box-shadow: var(--shadow-sm);
}
.accordion summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.5rem; cursor: pointer; list-style: none;
  font-weight: 600; color: var(--ink); transition: color .2s;
}
@media (min-width: 640px) { .accordion summary { font-size: 1.125rem; } }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { color: var(--primary-soft); }
.accordion summary svg {
  width: 1.5rem; height: 1.5rem; flex-shrink: 0; color: var(--text-muted); transition: transform .3s;
}
.accordion details[open] > summary svg { transform: rotate(180deg); }
.accordion--faq details[open] > summary svg { transform: rotate(45deg); }
.accordion__body { padding: 0 1.5rem 1.5rem; color: var(--text); animation: fadeInDown .3s ease-out; }
.accordion__inner { padding-top: 1rem; border-top: 1px solid var(--border); white-space: pre-line; }
.accordion__inner--stack { white-space: normal; display: flex; flex-direction: column; gap: 1.5rem; }
.accordion__inner h4 { font-family: var(--font-serif); font-size: 1rem; font-weight: 600; color: var(--ink); }
.accordion__inner label { display: block; font-family: var(--font-serif); font-weight: 600; color: var(--ink); }
.accordion__inner ul { margin: .5rem 0 0; padding-left: 1.25rem; font-size: .875rem; }
.accordion__inner li + li { margin-top: .5rem; }
.accordion__inner blockquote {
  margin: .5rem 0 0; padding: .75rem .75rem .75rem 1rem;
  border-left: 4px solid var(--lilac); border-radius: 0 .5rem .5rem 0;
  background: var(--cream); font-size: .875rem; font-style: italic;
}
.accordion__inner textarea {
  display: block; width: 100%; margin-top: .5rem; padding: .75rem;
  font: inherit; color: var(--ink); resize: vertical;
  border: 1px solid var(--border-strong); border-radius: .5rem; transition: border-color .15s, box-shadow .15s;
}
.accordion__inner textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary); }

.faq { max-width: 56rem; margin: 0 auto; width: 100%; }
.faq__head { margin-bottom: 3rem; }
.faq .accordion { margin-top: 0; }
.accordion--reflection { max-width: 48rem; margin: 3rem auto 0; }

/* ---------- Passo 2: valores essenciais ---------- */
.core-grid {
  max-width: 64rem; margin: 2rem auto 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem;
}
@media (min-width: 768px) { .core-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .core-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .core-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.core-grid__empty { grid-column: 1 / -1; text-align: center; color: var(--text); }

.core-card {
  position: relative; min-height: 80px; padding: .75rem;
  display: flex; flex-direction: column; justify-content: center;
  font: inherit; text-align: center; cursor: pointer;
  background: var(--white); border: 1px solid var(--border); border-radius: 1rem; box-shadow: var(--shadow-sm);
  transition: all .2s; overflow-wrap: anywhere; hyphens: auto;
}
.core-card:hover { box-shadow: var(--shadow-md); }
.core-card strong { font-size: .875rem; font-weight: 600; color: var(--ink); pointer-events: none; }
.core-card span:not(.core-card__check) { margin-top: .25rem; font-size: .75rem; color: var(--text); pointer-events: none; }
.core-card[aria-pressed="true"] {
  border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary); transform: scale(1.04);
}
.core-card__check {
  position: absolute; top: .5rem; right: .5rem; width: 1.25rem; height: 1.25rem;
  display: none; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--primary); color: var(--white);
}
.core-card__check svg { width: 1rem; height: 1rem; }
.core-card[aria-pressed="true"] .core-card__check { display: flex; }

/* ---------- Passo 3: reflexão ---------- */
.core-chips {
  max-width: 64rem; margin: 3rem auto 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem;
}
.core-chips .item {
  min-height: 80px; padding: .75rem; text-align: center; cursor: default;
  display: flex; flex-direction: column; justify-content: center; flex: 0 1 12rem;
}
.core-chips .item:active { transform: none; }
.summary-cta { margin-top: 3rem; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--primary); color: var(--cream); padding: 3.5rem 1.25rem; line-height: 1.6; }
.site-footer__inner { max-width: 48rem; margin: 0 auto; text-align: center; display: flex; flex-direction: column; gap: .75rem; }
.site-footer__title { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; }
.site-footer__small { font-size: .85rem; color: rgba(251, 244, 236, .8); }
.site-footer a { text-decoration: underline; text-underline-offset: 3px; }
.site-footer a:hover { color: var(--yellow); }

/* ---------- Modais ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100; padding: 1rem;
  display: flex; align-items: center; justify-content: center;
  background: rgba(46, 29, 54, .72);
}
.modal--sheet { align-items: flex-end; padding: 0; }
@media (min-width: 640px) { .modal--sheet { align-items: center; padding: 1rem; } }
.modal__box {
  width: 100%; max-width: 24rem; padding: 2rem;
  background: var(--white); border-radius: .5rem; box-shadow: var(--shadow-xl);
  animation: fadeInDown .2s ease-out;
}
.modal__box--sheet { max-width: 28rem; padding: 1.5rem; border-radius: .75rem .75rem 0 0; max-height: 92vh; overflow-y: auto; }
@media (min-width: 640px) { .modal__box--sheet { border-radius: .5rem; } }
.modal__box h4 { font-size: 1.25rem; font-weight: 700; }
.modal__box--sheet h4 { font-size: 1.125rem; }
.modal__box > p { margin-top: .5rem; color: var(--text); }
.modal__sub { text-align: center; font-size: .875rem; color: var(--text-muted) !important; margin-bottom: 1rem; }
.modal__actions { margin-top: 1.5rem; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 1rem; }
.modal__options { display: grid; grid-template-columns: 1fr; gap: .75rem; margin-bottom: 1rem; }

/* ---------- Aviso ---------- */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 110; transform: translateX(-50%);
  padding: .5rem 1rem; border-radius: .5rem;
  background: var(--ink); color: var(--white);
  font-size: .875rem; font-weight: 600; box-shadow: var(--shadow-lg);
}

/* ---------- Resumo impresso ---------- */
#print-section { display: none; }

@media print {
  @page { size: A4; margin: 0.75in; }
  body { background: #fff; }
  .mini-header, .container, .site-footer, .modal, .toast, .no-print { display: none !important; }

  #print-section { display: block; padding: 0; color: #000; font-size: 12pt; }
  #print-section h1, #print-section h2, #print-section h3 { color: #000; font-family: var(--font-serif); }
  .print-head { text-align: center; padding-bottom: 1rem; margin-bottom: 1.5rem; border-bottom: 2px solid #e5e7eb; }
  .print-head h1 { font-size: 22pt; }
  .print-head p { color: #4b5563; margin-top: .25rem; }
  .print-block { margin-bottom: 2rem; }
  .print-block > h2 { font-size: 16pt; padding-bottom: .5rem; margin-bottom: 1rem; border-bottom: 1px solid #d1d5db; }
  .print-core { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 2rem; }
  .print-core > div { break-inside: avoid; }
  .print-core h3 { font-size: 13pt; }
  .print-core p { color: #374151; }
  .print-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; }
  .print-cats > div { break-inside: avoid; }
  .print-cats h3 { font-size: 13pt; margin-bottom: .5rem; }
  .print-cats ul { margin: 0; padding-left: 1.1rem; font-size: 10pt; }
  .print-cats li + li { margin-top: .2rem; }
  .print-cats li b { font-weight: 600; }
  .print-cats li span { color: #4b5563; }
  .print-cats .is-empty { list-style: none; margin-left: -1.1rem; color: #6b7280; font-style: italic; }
  .print-reflections { break-before: page; }
  .print-reflection { margin-bottom: 1.5rem; break-inside: avoid; }
  .print-reflection h3 { font-size: 13pt; }
  .print-reflection div {
    margin-top: .5rem; padding: .75rem; white-space: pre-wrap;
    background: #f9fafb; border: 1px solid #e5e7eb; border-radius: .375rem;
  }
}

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