/* ============================================================
   Mesa Preta · Sessão 01
   Editorial paper system — warm cream + deep ink + terracotta
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* color */
  --paper:        #EFE9DE;
  --paper-deep:   #E5DCC9;
  --card:         #FBF7EE;
  --card-2:       #FFFFFF;
  --ink:          #1A150E;
  --ink-2:        #3A2F22;
  --ink-soft:     #6E6353;
  --ink-faint:    #9C9082;
  --rule:         #D7CDB9;
  --rule-soft:    #E5DDCC;

  --terra:        #B8542D;
  --terra-deep:   #8E3E1F;
  --terra-soft:   #F1D9C7;
  --terra-wash:   #F8EBDF;

  --forest:       #2F4F37;
  --forest-soft:  #C7D5C9;
  --forest-wash:  #E4ECDF;

  --gold:         #B89150;
  --gold-soft:    #EFE0BD;

  --rose:         #B7635A;
  --rose-soft:    #EDD0CB;

  --slate:        #3B4B58;
  --slate-soft:   #C9D2D9;
  --slate-wash:   #E2E8EC;

  /* type */
  --font-display: 'Instrument Serif', 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Geist', 'Söhne', system-ui, sans-serif;
  --font-mono:    'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;

  /* layout */
  --rail-w: 280px;
  --content-max: 760px;
  --gutter: 64px;
  --gutter-sm: 24px;

  /* shadow + radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --shadow-1: 0 1px 2px rgba(20,17,13,0.04), 0 8px 24px -16px rgba(20,17,13,0.12);
  --shadow-2: 0 2px 4px rgba(20,17,13,0.06), 0 18px 40px -22px rgba(20,17,13,0.18);
}

/* ---------- 2. Reset + base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; padding: 0; }
textarea { resize: vertical; }

/* paper grain */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    radial-gradient(circle at 20% 15%, rgba(184,84,45,0.025), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(47,79,55,0.02), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ---------- 3. Header band ---------- */
.brandbar {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.brandbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2a2418 0%, #0c0a07 70%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04), 0 2px 6px rgba(0,0,0,0.15);
  position: relative;
}
.brand-mark::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px solid rgba(184,84,45,0.4);
}
.brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1;
}
.brand-name em {
  font-style: italic;
  color: var(--terra);
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 4px;
}

.session-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: center;
  flex-wrap: wrap;
  justify-content: center;
}
.meta-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 6px 10px;
  border: 1px solid var(--rule);
  border-radius: 100px;
  background: var(--card);
  white-space: nowrap;
}
.meta-chip strong { color: var(--ink); font-weight: 600; }

.session-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.timer {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s;
}
.timer:hover { background: var(--ink-2); }
.timer.running { background: var(--terra); }
.timer-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink-faint);
}
.timer.running .timer-dot {
  background: var(--paper);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.icon-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft);
  transition: background 0.15s, color 0.15s;
}
.icon-btn:hover { background: var(--paper-deep); color: var(--ink); }

/* ---------- 4. Layout shell ---------- */
.shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: var(--rail-w) 1fr;
  gap: 56px;
  position: relative;
  z-index: 1;
}
.rail {
  padding: 56px 0 80px;
}
.rail-inner {
  position: sticky;
  top: 24px;
}
.main {
  padding: 56px 0 160px;
  max-width: var(--content-max);
}

/* ---------- 5. Rail (agenda) ---------- */
.rail-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.agenda { display: flex; flex-direction: column; }
.agenda-item {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--rule-soft);
  text-align: left;
  cursor: pointer;
  color: var(--ink-2);
  transition: color 0.15s;
  width: 100%;
}
.agenda-item:last-child { border-bottom: 1px solid var(--rule-soft); }
.agenda-item:hover { color: var(--ink); }
.agenda-item.active { color: var(--ink); }
.agenda-item.active .agenda-num { color: var(--terra); }
.agenda-item.done .agenda-text { text-decoration: line-through; text-decoration-color: var(--ink-faint); text-decoration-thickness: 1px; opacity: 0.6; }
.agenda-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  font-feature-settings: "tnum";
}
.agenda-text {
  font-size: 13.5px;
  line-height: 1.4;
}
.agenda-time {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  font-feature-settings: "tnum";
}
.agenda-item.active .agenda-time { color: var(--terra); }

.progress-track {
  margin-top: 24px;
  height: 3px;
  background: var(--rule-soft);
  border-radius: 2px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--terra);
  width: 0%;
  transition: width 0.4s ease;
}
.progress-label {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
}

/* ---------- 6. Section template ---------- */
.section {
  padding: 48px 0;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 96px;
}
.section:first-of-type { border-top: none; padding-top: 32px; }
.section-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 28px;
}
.section-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  font-feature-settings: "tnum";
}
.section-title {
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1.05;
  letter-spacing: -0.012em;
  color: var(--ink);
  font-weight: 400;
}
.section-title em {
  font-style: italic;
  color: var(--terra);
}
.section-duration {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  background: var(--card);
  padding: 4px 10px;
  border: 1px solid var(--rule);
  border-radius: 100px;
  white-space: nowrap;
}
.section-lede {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.45;
  color: var(--ink-2);
  margin-bottom: 24px;
  font-weight: 400;
}
.section-lede em { color: var(--terra); font-style: italic; }

.section-body { display: flex; flex-direction: column; gap: 20px; }

/* small label */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 10px;
  display: block;
}
.h3 {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 400;
  color: var(--ink);
  margin: 8px 0 12px;
}
.h3 em { font-style: italic; color: var(--terra); }
.muted {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.55;
}

/* divider */
.rule {
  height: 1px;
  background: var(--rule-soft);
  border: none;
  margin: 8px 0;
}

/* ---------- 7. Cards (acordo, etc) ---------- */
.acordo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
}
.acordo-card {
  background: var(--card);
  padding: 22px 22px 20px;
  position: relative;
}
.acordo-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--terra);
  margin-bottom: 8px;
}
.acordo-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 6px;
}
.acordo-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* welcome panel */
.welcome {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.welcome-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.welcome-field input,
.welcome-field select {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--rule);
  padding: 6px 0;
  background: transparent;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--ink);
  border-radius: 0;
}
.welcome-field input:focus,
.welcome-field select:focus {
  outline: none;
  border-bottom-color: var(--terra);
}
.welcome-field.full { grid-column: 1 / -1; }

/* ---------- 8. Inputs (general) ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.input, .select {
  border: 1px solid var(--rule);
  background: var(--card-2);
  padding: 10px 12px;
  border-radius: var(--r-sm);
  font-size: 14.5px;
  color: var(--ink);
  transition: border-color 0.15s, background 0.15s;
}
.input:focus, .select:focus {
  outline: none;
  border-color: var(--terra);
  background: var(--card-2);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-faint); }
.textarea {
  width: 100%;
  border: 1px solid var(--rule);
  background: var(--card-2);
  padding: 12px 14px;
  border-radius: var(--r-sm);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink);
  font-family: var(--font-body);
  min-height: 80px;
  transition: border-color 0.15s;
}
.textarea:focus {
  outline: none;
  border-color: var(--terra);
}

/* note card (entry textarea inside warm-tinted card) */
.note {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.note .note-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.note .note-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.note .note-author {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--ink);
}
.note .note-author.mentor { color: var(--slate); }
.note .note-author.mentee { color: var(--terra); }
.note textarea {
  border: none;
  background: transparent;
  padding: 0;
  min-height: 60px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  resize: vertical;
  width: 100%;
}
.note textarea:focus { outline: none; }
.note textarea::placeholder { color: var(--ink-faint); font-style: italic; }

.note-q {
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--terra);
  border-radius: 2px 8px 8px 2px;
  padding: 16px 20px;
}
.note-q .q {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 12px;
}
.note-q textarea {
  border: none;
  background: transparent;
  padding: 0;
  width: 100%;
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink);
  min-height: 60px;
}
.note-q textarea:focus { outline: none; }
.note-q textarea::placeholder { color: var(--ink-faint); font-style: italic; }

.q-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

/* mentor whisper */
.whisper {
  border-left: 2px solid var(--terra);
  padding: 4px 0 4px 16px;
  margin-top: 8px;
  color: var(--ink-2);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.5;
  font-style: italic;
}
.whisper .whisper-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terra);
  font-style: normal;
  display: block;
  margin-bottom: 4px;
}

/* tab toggle (icebreaker, objetivos) */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 24px;
}
.tab {
  padding: 12px 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}
.tab:hover { color: var(--ink); }
.tab.active {
  color: var(--ink);
  border-bottom-color: var(--terra);
}
.tab-panel { display: none; }
.tab-panel.active { display: flex; flex-direction: column; gap: 16px; }

/* two-up grids */
.two-up {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.three-up {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* ---------- 9. Linha da vida (chart) ---------- */
.lv-wrap {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
}
.lv-tabs {
  display: flex;
  border-bottom: 1px solid var(--rule);
}
.lv-tab {
  flex: 1;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--paper);
  border-right: 1px solid var(--rule);
  transition: background 0.15s, color 0.15s;
}
.lv-tab:last-child { border-right: none; }
.lv-tab.active {
  background: var(--card);
  color: var(--ink);
}
.lv-tab .lv-tab-name {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  margin-top: 2px;
}
.lv-tab.active .lv-tab-name { color: var(--terra); }

.lv-stage {
  padding: 20px 24px 28px;
}
.lv-instruction {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 16px;
  padding-right: 16px;
}
.lv-chart {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-sm);
  height: 340px;
  user-select: none;
}
.lv-chart svg { display: block; width: 100%; height: 100%; }
.lv-point {
  cursor: grab;
  transition: r 0.15s, filter 0.15s;
}
.lv-point:hover { filter: drop-shadow(0 0 6px rgba(0,0,0,0.2)); }
.lv-point.dragging { cursor: grabbing; }

.lv-add-row {
  display: grid;
  grid-template-columns: 2fr 80px 1fr auto;
  gap: 8px;
  margin-top: 14px;
}
.lv-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 16px;
  max-height: 220px;
  overflow-y: auto;
}
.lv-row {
  display: grid;
  grid-template-columns: 32px 60px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  transition: background 0.15s;
  font-size: 14px;
}
.lv-row:hover { background: var(--paper); }
.lv-row .lv-row-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  justify-self: center;
}
.lv-row .lv-row-when {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
}
.lv-row .lv-row-desc {
  color: var(--ink);
  line-height: 1.4;
}
.lv-row-del {
  color: var(--ink-faint);
  padding: 4px 6px;
  border-radius: 4px;
}
.lv-row-del:hover { background: var(--rose-soft); color: var(--terra-deep); }

.lv-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--rule-soft);
}
.lv-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.lv-legend-item .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}

.btn {
  background: var(--ink);
  color: var(--paper);
  padding: 9px 16px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s;
  letter-spacing: 0.01em;
}
.btn:hover { background: var(--ink-2); }
.btn.btn-terra { background: var(--terra); }
.btn.btn-terra:hover { background: var(--terra-deep); }
.btn.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
}
.btn.btn-ghost:hover { background: var(--card); }

/* ---------- 10. Objetivos ---------- */
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--rule-soft);
}
.step:first-of-type { border-top: none; padding-top: 8px; }
.step-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 32px;
  color: var(--terra);
  line-height: 1;
}
.step-title {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.2;
  color: var(--ink);
  font-weight: 400;
  margin-bottom: 6px;
}
.step-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 14px;
}
.comp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.comp-row {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  padding: 8px 12px;
  transition: border-color 0.15s, background 0.15s;
}
.comp-row:focus-within {
  border-color: var(--terra);
}
.comp-row-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
}
.comp-row input {
  border: none;
  background: transparent;
  padding: 6px 0;
  font-size: 14px;
  width: 100%;
}
.comp-row input:focus { outline: none; }

.objetivo-final {
  background: var(--terra-wash);
  border: 1px solid var(--terra-soft);
  border-radius: var(--r-md);
  padding: 22px 24px;
  margin-top: 8px;
}
.objetivo-final .eyebrow { color: var(--terra-deep); }
.objetivo-final textarea {
  width: 100%;
  background: transparent;
  border: none;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.35;
  color: var(--ink);
  min-height: 60px;
  margin-top: 8px;
}
.objetivo-final textarea:focus { outline: none; }
.objetivo-final textarea::placeholder { color: var(--ink-soft); font-style: italic; }

/* objetivos: switch between exploratory question banks */
.bank-tabs {
  display: inline-flex;
  background: var(--paper-deep);
  border-radius: 100px;
  padding: 3px;
  gap: 2px;
  margin-bottom: 16px;
}
.bank-tab {
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: background 0.15s, color 0.15s;
}
.bank-tab.active {
  background: var(--card-2);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* ---------- 11. Dinâmica da mentoria ---------- */
.dinamica-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.dinamica-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 18px 20px;
}
.dinamica-card .eyebrow { margin-bottom: 6px; }
.dinamica-card .dinamica-q {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--ink);
}
.dinamica-card input,
.dinamica-card select,
.dinamica-card textarea {
  width: 100%;
  border: 1px solid var(--rule);
  background: var(--card-2);
  border-radius: var(--r-sm);
  padding: 9px 12px;
  font-size: 14px;
  font-family: var(--font-body);
}
.dinamica-card textarea { min-height: 60px; resize: vertical; }
.dinamica-card input:focus,
.dinamica-card select:focus,
.dinamica-card textarea:focus { outline: none; border-color: var(--terra); }

.opt-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.opt {
  padding: 7px 13px;
  border: 1px solid var(--rule);
  border-radius: 100px;
  font-size: 13px;
  color: var(--ink-2);
  background: var(--card-2);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.opt:hover { border-color: var(--ink-soft); }
.opt.selected {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ---------- 12. Closing / next ---------- */
.perspective-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.perspective-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 22px 24px;
  border-top: 3px solid var(--terra);
}
.perspective-card.mentor { border-top-color: var(--slate); }
.perspective-card .who {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 4px;
}
.perspective-card .who small {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-style: normal;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 2px;
}
.perspective-card textarea {
  width: 100%;
  border: none;
  background: transparent;
  padding: 12px 0 0;
  min-height: 80px;
  font-size: 14.5px;
  line-height: 1.6;
}
.perspective-card textarea:focus { outline: none; }
.perspective-card textarea::placeholder { color: var(--ink-faint); font-style: italic; }

.tarefa-box {
  background: var(--forest-wash);
  border: 1px solid var(--forest-soft);
  border-radius: var(--r-md);
  padding: 22px 24px;
}
.tarefa-box .eyebrow { color: var(--forest); }
.tarefa-box .tarefa-title {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.25;
  color: var(--ink);
  margin: 4px 0 10px;
}
.tarefa-box p {
  margin: 0 0 8px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
.tarefa-box ul {
  margin: 6px 0 12px;
  padding-left: 18px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.7;
}
.tarefa-box .tarefa-note {
  font-size: 13px;
  color: var(--ink-soft);
  font-style: italic;
  border-top: 1px solid var(--forest-soft);
  padding-top: 10px;
  margin-top: 12px;
}

.next-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* end mark */
.endmark {
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-soft);
  margin-top: 80px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  letter-spacing: 0.02em;
}

/* ---------- 13. Tweaks panel ---------- */
.tweaks-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 40;
  background: var(--ink);
  color: var(--paper);
  padding: 11px 18px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: none;
  box-shadow: var(--shadow-2);
  align-items: center;
  gap: 8px;
}
.tweaks-fab.visible { display: inline-flex; }
.tweaks-panel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 45;
  width: 280px;
  background: var(--card-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  padding: 18px 20px 20px;
  display: none;
}
.tweaks-panel.open { display: block; }
.tweaks-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.tweaks-head h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  margin: 0;
}
.tweaks-group {
  margin-bottom: 16px;
}
.tweaks-group:last-child { margin-bottom: 0; }
.tweaks-group-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.swatch-row {
  display: flex;
  gap: 8px;
}
.swatch {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s;
}
.swatch:hover { transform: scale(1.1); }
.swatch.selected {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--card-2);
}
.seg-row {
  display: flex;
  background: var(--paper-deep);
  border-radius: 100px;
  padding: 3px;
  gap: 2px;
}
.seg {
  flex: 1;
  padding: 6px 10px;
  border-radius: 100px;
  font-size: 12px;
  color: var(--ink-soft);
  text-align: center;
}
.seg.selected {
  background: var(--card-2);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

/* ---------- 14. Responsive ---------- */
@media (max-width: 1080px) {
  :root { --gutter: 32px; --rail-w: 240px; }
  .section-title { font-size: 32px; }
}
@media (max-width: 880px) {
  .brandbar-inner {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px var(--gutter-sm);
  }
  .session-meta { justify-self: start; }
  .session-actions { justify-self: end; margin-top: -10px; }
  .shell {
    grid-template-columns: 1fr;
    padding: 0 var(--gutter-sm);
    gap: 0;
  }
  .rail {
    padding: 24px 0 8px;
    border-bottom: 1px solid var(--rule);
  }
  .rail-inner { position: static; }
  .main { padding: 32px 0 120px; }
  .section { padding: 36px 0; }
  .section-title { font-size: 28px; }
  .section-lede { font-size: 17px; }
  .welcome { grid-template-columns: 1fr; gap: 16px; padding: 22px; }
  .acordo-grid { grid-template-columns: 1fr; }
  .perspective-grid,
  .next-grid,
  .dinamica-grid,
  .two-up,
  .three-up { grid-template-columns: 1fr; }
  .comp-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 40px 1fr; gap: 14px; }
  .step-num { font-size: 28px; }
  .lv-add-row { grid-template-columns: 1fr 80px; }
  .lv-add-row select, .lv-add-row .btn { grid-column: 1 / -1; }
}

/* ---------- 15. Print ---------- */
@media print {
  body { background: white; color: black; }
  body::before { display: none; }
  .brandbar, .rail, .tweaks-fab, .tweaks-panel, .lv-add-row, .btn, .lv-row-del { display: none !important; }
  .shell { grid-template-columns: 1fr; padding: 0; max-width: none; }
  .main { padding: 16px; max-width: none; }
  .section { break-inside: avoid; padding: 24px 0; }
  .section-title { font-size: 22px; }
  textarea, input { border-color: #ccc !important; }
  .note, .note-q, .acordo-card, .welcome, .dinamica-card, .perspective-card, .tarefa-box {
    background: white !important;
    border-color: #ddd !important;
    box-shadow: none !important;
  }
}
