/* decidir v8 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Design tokens ─────────────────────────────────── */
:root {
  /* Core palette */
  --ink:        #0A0E1A;
  --ink-soft:   #1C2238;
  --navy:       #0E1F4D;
  --navy-deep:  #050B1F;
  --paper:      #F2EEE3;
  --paper-2:    #E8E2D2;
  --paper-3:    #DAD2BD;
  --gold:       #E8B33A;
  --gold-deep:  #B7861D;
  --white:      #FCFAF4;
  --mute:       #6B6E78;
  --mute-light: #A09F94;

  /* State */
  --danger:  #DC2626;
  --success: #16A34A;

  /* Semantic aliases */
  --brand:       var(--gold);
  --brand-dark:  var(--gold-deep);
  --brand-alpha: rgba(232, 179, 58, 0.15);

  --fg:       var(--ink);
  --fg-muted: var(--mute);
  --fg-faint: var(--mute-light);

  --bg:        var(--white);
  --bg-subtle: var(--paper);
  --bg-hover:  var(--paper-2);

  --border:     rgba(10, 14, 26, 0.10);
  --border-mid: rgba(10, 14, 26, 0.18);

  --shadow-xs: 0 1px 2px rgba(10, 14, 26, .04);
  --shadow-sm: 0 1px 3px rgba(10, 14, 26, .06), 0 1px 2px rgba(10, 14, 26, .04);
  --shadow:    0 4px 8px rgba(10, 14, 26, .06), 0 1px 3px rgba(10, 14, 26, .04);

  --r-sm: 4px;
  --r:    6px;
  --r-lg: 8px;

  --focus: 0 0 0 2px rgba(232, 179, 58, 0.35);

  /* Rules / editorial tracking (tela de auth) */
  --rule:      rgba(10, 14, 26, 0.12);
  --rule-soft: rgba(10, 14, 26, 0.06);
  --tracking-tight:   -0.025em;
  --tracking-tighter: -0.04em;
  --tracking-wide:     0.14em;
  --tracking-mono:     0.02em;

  /* Typography */
  --f-display: "Geist", -apple-system, system-ui, sans-serif;
  --f-serif:   "Instrument Serif", Georgia, serif;
  --f-mono:    "Geist Mono", "SF Mono", "Fira Code", ui-monospace, monospace;

  /* Badges */
  --draft-bg:  var(--paper-2);          --draft-fg:  var(--ink);
  --weigh-bg:  hsl(45, 93%, 90%);      --weigh-fg:  hsl(35, 100%, 28%);
  --vote-bg:   rgba(232, 179, 58, .12); --vote-fg:   var(--gold-deep);
  --closed-bg: hsl(142, 71%, 88%);     --closed-fg: hsl(142, 71%, 22%);

  --ok-bg:  hsl(142, 71%, 88%); --ok-fg:  hsl(142, 71%, 22%);
  --err-bg: hsl(0, 79%, 93%);   --err-fg: hsl(0, 79%, 32%);
}

/* ── Base ──────────────────────────────────────────── */
body {
  font-family: var(--f-display);
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg);
  background: var(--bg-subtle);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "ss02";
}

a { color: inherit; }

/* ── Header ────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 52px;
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

/* Logo / wordmark */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--paper);
  text-decoration: none;
  letter-spacing: -0.3px;
}
.logo:hover { opacity: .8; }

.logo__mark {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.logo__mark .bar {
  height: 3px;
  background: var(--paper);
  border-radius: 1px;
}
.logo__mark .bar--win  { background: var(--gold); width: 100%; }
.logo__mark .bar--2    { width: 64%; opacity: 0.55; }
.logo__mark .bar--3    { width: 38%; opacity: 0.32; }

.logo__dot {
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  align-self: flex-end;
  margin-bottom: 2px;
}

.nav-actions { display: flex; align-items: center; gap: 6px; }
.nav-user {
  font-size: 13px;
  color: rgba(242, 238, 227, 0.55);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 4px;
}

/* Nav buttons on dark header */
header .btn--secondary {
  background: rgba(242, 238, 227, 0.08);
  color: var(--paper);
  border-color: rgba(242, 238, 227, 0.18);
  box-shadow: none;
}
header .btn--secondary:hover {
  background: rgba(242, 238, 227, 0.16);
}
header .btn--primary {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold-deep);
}
header .btn--primary:hover { background: var(--gold-deep); color: var(--paper); }

/* ── Layout ────────────────────────────────────────── */
main { max-width: 680px; margin: 32px auto; padding: 0 20px; }
main.main--wide { max-width: 1100px; }

footer {
  text-align: center;
  padding: 24px 20px 40px;
  font-size: 12px;
  color: var(--fg-faint);
  border-top: 1px solid var(--border);
  margin-top: 64px;
}
.footer-links { margin-top: 6px; }
.footer-links a { color: var(--fg-muted); text-decoration: none; }
.footer-links a:hover { color: var(--gold-deep); }

/* ── Legal pages ───────────────────────────────────── */
.legal-page { max-width: 680px; margin: 0 auto; padding: 0 0 64px; }
.legal-page h1 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.legal-page h2 { font-size: 14px; font-weight: 600; margin: 24px 0 6px; color: var(--fg); }
.legal-page p, .legal-page li { font-size: 14px; line-height: 1.6; color: var(--fg-muted); }
.legal-page ul { padding-left: 20px; margin: 6px 0; }
.legal-page a { color: var(--gold-deep); }
.legal-date { font-size: 12px; color: var(--fg-faint); margin-bottom: 24px; }

/* ── Buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 12px;
  font-family: var(--f-display);
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--r);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  letter-spacing: -0.01em;
  transition: background .1s, opacity .1s;
}
.btn--primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink-soft);
}
.btn--primary:hover { background: var(--ink-soft); }
.btn--primary:disabled,
.btn--primary.btn--disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

.btn--secondary {
  background: var(--bg);
  color: var(--fg);
  border-color: var(--border-mid);
  box-shadow: var(--shadow-xs);
}
.btn--secondary:hover { background: var(--bg-hover); }

.btn--danger {
  background: var(--danger);
  color: #fff;
  border-color: #b91c1c;
}
.btn--danger:hover { opacity: .9; }

.btn--lg { height: 40px; padding: 0 16px; font-size: 14px; }
.btn--sm { height: 28px; padding: 0 10px; font-size: 12px; }

.btn--google {
  background: #fff;
  color: hsl(0, 0%, 20%);
  border-color: hsl(0, 0%, 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}
.btn--google::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23EA4335' d='M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z'/%3E%3Cpath fill='%234285F4' d='M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z'/%3E%3Cpath fill='%23FBBC05' d='M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z'/%3E%3Cpath fill='%2334A853' d='M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z'/%3E%3Cpath fill='none' d='M0 0h48v48H0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}
.btn--google:hover { background: hsl(0, 0%, 96%); }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
  color: var(--fg-muted);
  font-size: 13px;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.btn--remove {
  height: 24px;
  padding: 0 8px;
  font-size: 12px;
  font-family: var(--f-display);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg-muted);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background .1s, border-color .1s, color .1s;
}
.btn--remove:hover {
  background: var(--err-bg);
  border-color: var(--danger);
  color: var(--danger);
}

/* ── Flash ─────────────────────────────────────────── */
.flash {
  padding: 10px 14px;
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
  border: 1px solid;
}
.flash--notice { background: var(--ok-bg);  color: var(--ok-fg);  border-color: hsl(142, 71%, 76%); }
.flash--alert  { background: var(--err-bg); color: var(--err-fg); border-color: hsl(0, 79%, 80%); }

/* ── Badges ────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--r-sm);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
  flex-shrink: 0;
}
.badge--draft    { background: var(--draft-bg);  color: var(--draft-fg); }
.badge--open     { background: var(--ok-bg);     color: var(--ok-fg); }
.badge--closed   { background: var(--closed-bg); color: var(--closed-fg); }

/* ── Tipografia ────────────────────────────────────── */
h1 { font-size: 20px; font-weight: 600; letter-spacing: -0.4px; line-height: 1.3; }
h2 { font-size: 14px; font-weight: 600; letter-spacing: -0.2px; margin-bottom: 12px; }
h3 { font-size: 13px; font-weight: 500; color: var(--fg-muted); margin-bottom: 8px; }

/* ── Inputs ────────────────────────────────────────── */
.field { margin-bottom: 12px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 4px;
}
.field input[type=text],
.field input[type=email],
.field input[type=password],
.field input[type=number],
.field textarea {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  font-family: var(--f-display);
  font-size: 13px;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--border-mid);
  border-radius: var(--r);
  outline: none;
  transition: border-color .1s, box-shadow .1s;
  appearance: none;
  -webkit-appearance: none;
}
.field textarea {
  height: auto;
  padding: 8px 10px;
  resize: vertical;
  line-height: 1.5;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--fg-faint); }
.field input:focus,
.field textarea:focus {
  border-color: var(--gold);
  box-shadow: var(--focus);
}

.field-group { margin-bottom: 20px; }
.nested-field { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.nested-field input { flex: 1; }

/* ── Cards / Seções ────────────────────────────────── */
.card,
.form-section, .setup-header, .voting-header, .result-header,
.invite-section, .participants-section, .info-section, .ranking,
.criteria-breakdown, .weights-section, .scores-section, .stage-section {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  margin-bottom: 12px;
}

/* ── Danger zone ───────────────────────────────────── */
.danger-zone {
  border: 1px solid rgba(220, 38, 38, 0.35);
  border-radius: var(--r-lg);
  padding: 16px 20px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  opacity: .7;
  transition: opacity .15s;
}
.danger-zone:hover { opacity: 1; }

/* ── Auth ──────────────────────────────────────────── */
.auth-section {
  max-width: 360px;
  margin: 64px auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}
.auth-section h1 { font-size: 18px; margin-bottom: 20px; }
.auth-link { margin-top: 16px; text-align: center; font-size: 13px; color: var(--fg-muted); }
.auth-link a { color: var(--gold-deep); text-decoration: none; font-weight: 500; }
.auth-link a:hover { text-decoration: underline; }

/* ── Page header ───────────────────────────────────── */
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.page-header h1 { margin: 0; }

/* ── Hero ──────────────────────────────────────────── */
.hero { text-align: center; margin-bottom: 24px; padding: 8px 0; }
.hero h1 { font-size: 20px; margin-bottom: 8px; }
.hero p { font-size: 14px; color: var(--fg-muted); max-width: 440px; margin: 0 auto; }

/* ── Decision cards ────────────────────────────────── */
.decisions-list { display: flex; flex-direction: column; gap: 6px; }
.decision-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  transition: border-color .15s, background .15s;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.decision-card:hover { border-color: var(--gold); background: var(--bg-hover); }
.decision-card > div { min-width: 0; flex: 1; }
.decision-card h3 { font-size: 13px; font-weight: 500; color: var(--fg); margin: 0 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.decision-card small { font-size: 12px; color: var(--fg-faint); }

/* ── Empty state ───────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  border: 1px dashed var(--border-mid);
  border-radius: var(--r-lg);
  color: var(--fg-muted);
  font-size: 14px;
}
.empty-state p { margin-bottom: 16px; }

/* ── Hints / Errors ────────────────────────────────── */
.hint { font-size: 12px; color: var(--fg-faint); margin-bottom: 8px; }
.errors {
  background: var(--err-bg);
  color: var(--err-fg);
  border: 1px solid hsl(0, 79%, 80%);
  border-radius: var(--r);
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 12px;
}
.description { font-size: 13px; color: var(--fg-muted); margin-bottom: 10px; }

/* ── Copy box ──────────────────────────────────────── */
.copy-box { display: flex; gap: 6px; margin: 10px 0; }
.copy-box input {
  flex: 1;
  height: 34px;
  padding: 0 10px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--fg-muted);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--r);
  outline: none;
  appearance: none;
}
.copy-box button {
  height: 34px;
  padding: 0 12px;
  font-family: var(--f-display);
  font-size: 13px;
  font-weight: 500;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink-soft);
  border-radius: var(--r);
  cursor: pointer;
  transition: background .1s;
}
.copy-box button:hover { background: var(--ink-soft); }

/* ── Participants ──────────────────────────────────── */
.participants-list { list-style: none; margin-bottom: 12px; }
.participants-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  flex-wrap: wrap;
}
.participants-list li:last-child { border-bottom: none; }
.participants-list small { font-size: 12px; color: var(--fg-faint); flex: 1; }
.status.voted   { font-size: 12px; font-weight: 600; color: var(--ok-fg); }
.status.pending { font-size: 12px; color: var(--fg-faint); }

.action-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px;
  margin-top: 12px;
  text-align: center;
}

/* ── Range inputs ──────────────────────────────────── */
.range-row { display: flex; align-items: center; gap: 10px; }
.range-row input[type=range] { flex: 1; accent-color: var(--gold); }
.range-value { font-size: 14px; font-weight: 600; min-width: 20px; color: var(--gold-deep); text-align: center; }
.weight-field, .score-field { margin-bottom: 10px; }
.option-block {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
  margin-bottom: 10px;
}
.option-block h3 { color: var(--fg); font-weight: 600; font-size: 13px; }

/* ── Ranking ───────────────────────────────────────── */
.ranking-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: 8px;
  background: var(--bg);
}
.ranking-item--winner {
  border-color: rgba(232, 179, 58, 0.5);
  background: rgba(232, 179, 58, 0.06);
}
.rank { font-size: 16px; font-weight: 700; min-width: 32px; text-align: center; }
.option-info { flex: 1; }
.score-bar { width: 100px; height: 4px; background: var(--border); border-radius: 999px; overflow: hidden; }
.score-fill { height: 100%; background: var(--gold); border-radius: 999px; transition: width .4s ease; }
.score-value { font-size: 13px; font-weight: 600; min-width: 40px; text-align: right; color: var(--fg-muted); }

.result-actions {
  margin-top: 32px;
  padding: 16px 20px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.result-actions form { display: contents; }
.result-actions__sep { flex: 1; min-width: 16px; }
.voted-message, .closed-message {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 40px;
  text-align: center;
}

/* ── Inline forms ──────────────────────────────────── */
.inline-form { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.inline-form input {
  flex: 1 1 140px;
  min-width: 0;
  height: 34px;
  padding: 0 10px;
  font-family: var(--f-display);
  font-size: 13px;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--border-mid);
  border-radius: var(--r);
  outline: none;
  transition: border-color .1s, box-shadow .1s;
  appearance: none;
}
.inline-form input:focus { border-color: var(--gold); box-shadow: var(--focus); }
.add-participant-form { border-top: 1px solid var(--border); margin-top: 12px; padding-top: 12px; }
.invite-link { font-size: 12px; color: var(--fg-faint); word-break: break-all; }

.simple-list { list-style: none; padding: 0; }
.simple-list li { padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.simple-list li:last-child { border-bottom: none; }
.simple-list small { color: var(--fg-faint); }

.result-link { margin-top: 12px; }
.comments-section, .comment-section { margin-top: 20px; }
.comment-section textarea {
  width: 100%;
  padding: 8px 10px;
  font-family: var(--f-display);
  font-size: 13px;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--border-mid);
  border-radius: var(--r);
  outline: none;
  resize: vertical;
  transition: border-color .1s, box-shadow .1s;
  appearance: none;
}
.comment-section textarea:focus { border-color: var(--gold); box-shadow: var(--focus); }
.comment-item {
  background: var(--bg-subtle);
  border-left: 2px solid var(--gold);
  padding: 10px 12px;
  border-radius: 0 var(--r) var(--r) 0;
  margin-bottom: 8px;
  font-size: 13px;
}
.comment-item p { margin-top: 4px; color: var(--fg-muted); }

/* ── Admin ─────────────────────────────────────────── */
.admin-table-wrap {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow-x: auto;
  margin-bottom: 16px;
}
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th,
.admin-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); text-align: left; }
.admin-table th {
  background: var(--bg-subtle);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--fg-muted);
  white-space: nowrap;
}
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: var(--bg-subtle); }
.admin-row--self { background: rgba(232, 179, 58, 0.08) !important; }
.inline-select-form { display: inline; }

.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 16px; }
.stat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
  text-align: center;
}
.stat-number { display: block; font-size: 28px; font-weight: 700; color: var(--fg); letter-spacing: -1px; }
.stat-label { font-size: 11px; color: var(--fg-faint); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; margin-top: 2px; }

/* ── Landing page ──────────────────────────────────── */
.landing { max-width: 600px; margin: 0 auto; }

.landing__hero { padding: 64px 0 48px; text-align: center; }
.landing__headline {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 16px;
}
.landing__sub {
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg-muted);
  max-width: 460px;
  margin: 0 auto 32px;
}
.landing__cta { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.landing__cta-hint { font-size: 13px; color: var(--fg-faint); }
.landing__cta-hint a { color: var(--gold-deep); text-decoration: none; font-weight: 500; }
.landing__cta-hint a:hover { text-decoration: underline; }

.landing__section { margin-bottom: 48px; }
.landing__section-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}
.landing__section-sub {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.landing__section--brand {
  background: rgba(232, 179, 58, 0.08);
  border: 1px solid rgba(232, 179, 58, 0.25);
  border-radius: var(--r-lg);
  padding: 24px;
  margin-bottom: 48px;
}
.landing__section--brand .landing__section-title { color: var(--gold-deep); }

.landing__problems { display: flex; flex-direction: column; gap: 0; margin-top: 16px; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.landing__problem {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.landing__problem:last-child { border-bottom: none; }
.landing__problem-icon { font-size: 18px; flex-shrink: 0; line-height: 1.4; }
.landing__problem strong { display: block; font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.landing__problem p { font-size: 13px; color: var(--fg-muted); line-height: 1.5; }

.landing__formula {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.landing__formula-step {
  flex: 1;
  min-width: 140px;
  background: var(--bg);
  border: 1px solid rgba(232, 179, 58, 0.25);
  border-radius: var(--r);
  padding: 12px 16px;
}
.landing__formula-step--result { border-color: var(--gold); }
.landing__formula-label { display: block; font-size: 12px; font-weight: 700; color: var(--gold-deep); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.landing__formula-desc { display: block; font-size: 12px; color: var(--fg-muted); line-height: 1.4; }
.landing__formula-desc em { font-style: normal; font-weight: 600; color: var(--fg); }
.landing__formula-op { font-size: 20px; font-weight: 700; color: var(--gold-deep); flex-shrink: 0; }

.landing__steps {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg);
  overflow: hidden;
  margin-top: 16px;
}
.landing__step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.landing__step:last-child { border-bottom: none; }
.landing__step-n {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
  font-weight: 700;
  margin-top: 1px;
}
.landing__step strong { display: block; font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.landing__step p { font-size: 13px; color: var(--fg-muted); line-height: 1.5; }

.landing__advantages { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; margin-top: 16px; }
.landing__advantage {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.landing__advantage:last-child { border-bottom: none; }
.landing__adv-icon { font-size: 16px; margin-right: 8px; }
.landing__advantage strong { font-size: 13px; font-weight: 600; }
.landing__advantage p { font-size: 13px; color: var(--fg-muted); line-height: 1.5; margin-top: 4px; }

.landing__usecases { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.landing__usecase {
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg-subtle);
  color: var(--fg-muted);
}

.landing__final-cta {
  text-align: center;
  padding: 48px 24px 64px;
  border-top: 1px solid var(--border);
}
.landing__final-cta h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 8px; }
.landing__final-cta p { font-size: 14px; color: var(--fg-muted); margin-bottom: 20px; }

/* ── Novo fluxo: publicação única ──────────────────── */
.parallel-progress {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 640px) {
  .parallel-progress { grid-template-columns: 1fr; }
}

.progress-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-deep);
  margin-left: 8px;
}

.action-box--waiting {
  background: var(--bg-subtle);
  border: 1px dashed var(--border);
  color: var(--fg-muted);
}

.hint--warning {
  color: hsl(40, 70%, 30%);
  background: hsl(40, 100%, 94%);
  border: 1px solid hsl(40, 70%, 78%);
  border-radius: var(--r-sm);
  padding: 6px 10px;
  margin-bottom: 10px;
}

/* Deadline selector */
.deadline-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.deadline-option {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  cursor: pointer;
  font-size: 14px;
  transition: border-color .15s, background .15s;
}
.deadline-option:has(input:checked) {
  border-color: var(--gold);
  background: rgba(232, 179, 58, 0.08);
  color: var(--gold-deep);
  font-weight: 600;
}
.deadline-option input[type=radio] { accent-color: var(--gold); }

/* ── Dashboard de resultado ────────────────────────── */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow-xs);
}
.stat-card--winner {
  border-color: rgba(232, 179, 58, 0.5);
  background: rgba(232, 179, 58, 0.06);
}
.stat-number { display: block; font-size: 28px; font-weight: 700; color: var(--fg); line-height: 1.1; }
.stat-number--sm { font-size: 16px; }
.stat-label { font-size: 12px; color: var(--fg-muted); margin-top: 4px; display: block; }

.result-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 4px;
}

.result-section { margin-bottom: 28px; }
.result-section h2 { font-size: 15px; font-weight: 600; margin-bottom: 12px; }

/* ── Análise com IA (result page) ──────────────────── */
.result-section--ai {
  border: 1px solid rgba(232, 179, 58, 0.25);
  border-radius: 10px;
  padding: 24px;
  background: rgba(232, 179, 58, 0.03);
}
.ai-analyze-trigger {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.ai-analyze-trigger h2 { margin-bottom: 4px; }
.ai-analyze-trigger .hint { margin: 0; }

.ai-analyze-result {
  margin-top: 24px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.ai-analyze-section {
  padding: 16px;
  border-radius: 8px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
}
.ai-analyze-section--winner {
  border-color: rgba(232, 179, 58, 0.35);
  background: rgba(232, 179, 58, 0.06);
}
.ai-analyze-section--rec {
  grid-column: 1 / -1;
  border-color: var(--ok-bg);
  background: rgba(34, 197, 94, 0.05);
}
.ai-analyze-label {
  font-size: 10px;
  font-family: var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mute);
  margin-bottom: 8px;
}
.ai-analyze-section--winner .ai-analyze-label { color: var(--gold-deep); }
.ai-analyze-section p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--fg);
  margin: 0;
}

.ai-modal__cost-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--fg);
}
.ai-modal__cost-badge {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-deep);
  background: rgba(232, 179, 58, 0.12);
  border: 1px solid rgba(232, 179, 58, 0.3);
  border-radius: 999px;
  padding: 3px 10px;
}

@media (max-width: 600px) {
  .ai-analyze-trigger { flex-direction: column; }
  .ai-analyze-result { grid-template-columns: 1fr; }
  .ai-analyze-section--rec { grid-column: auto; }
}

/* Score bar */
.score-bar-wrap { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.score-bar { flex: 1; height: 8px; background: var(--bg-hover); border-radius: 4px; overflow: hidden; min-width: 60px; }
.score-bar--sm { height: 6px; }
.score-fill { height: 100%; background: var(--gold); border-radius: 4px; transition: width .3s ease; }
.ranking-item--winner .score-fill { background: var(--gold); }
.score-value { font-size: 13px; font-weight: 600; color: var(--fg-muted); min-width: 32px; text-align: right; }

/* Criterion weights */
.criteria-weights { display: flex; flex-direction: column; gap: 8px; }
.criterion-weight-row { display: flex; align-items: center; gap: 10px; }
.criterion-weight-name { font-size: 13px; min-width: 120px; flex-shrink: 0; }
.criterion-weight-value { font-size: 12px; color: var(--fg-muted); min-width: 40px; }

/* Score matrix */
.matrix-wrap { overflow-x: auto; }
.matrix-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.matrix-table th { padding: 8px 10px; text-align: left; background: var(--bg-subtle); border-bottom: 2px solid var(--border); font-size: 12px; font-weight: 600; white-space: nowrap; }
.matrix-table th small { font-weight: 400; color: var(--fg-muted); display: block; }
.matrix-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); }
.matrix-option-name { font-weight: 500; }
.matrix-score { text-align: center; }
.matrix-final { text-align: right; font-size: 14px; }
.matrix-row--winner td { background: rgba(232, 179, 58, 0.05); }

/* Score pills */
.score-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 22px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-hover);
  color: var(--fg-muted);
}
.score-pill--5 { background: hsl(142, 71%, 88%); color: hsl(142, 71%, 22%); }
.score-pill--4 { background: hsl(180, 60%, 88%); color: hsl(180, 60%, 22%); }
.score-pill--3 { background: hsl(45, 93%, 88%);  color: hsl(35, 80%, 28%); }
.score-pill--2 { background: hsl(25, 90%, 90%);  color: hsl(25, 70%, 30%); }
.score-pill--1 { background: hsl(0, 79%, 93%);   color: hsl(0, 79%, 32%); }

/* Individual votes page */
.votes-section { margin-bottom: 28px; }
.votes-section h2 { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.votes-table-wrap { overflow-x: auto; margin-bottom: 12px; }
.votes-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.votes-table th { padding: 8px 10px; text-align: left; background: var(--bg-subtle); border-bottom: 2px solid var(--border); font-weight: 600; font-size: 12px; }
.votes-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); }
.votes-name { font-weight: 500; }
.votes-score { text-align: center; }
.votes-empty { color: var(--fg-faint); }
.participant-votes-block { margin-bottom: 24px; }
.participant-votes-name { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.participant-votes-name small { font-weight: 400; font-size: 11px; color: var(--fg-muted); margin-left: 6px; }
.participant-comment { border-left: 3px solid var(--border-mid); padding: 6px 12px; margin-top: 8px; font-size: 13px; color: var(--fg-muted); font-style: italic; }

/* Checkbox form */
.checkbox-label { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.checkbox-label input[type=checkbox] { margin-top: 2px; flex-shrink: 0; accent-color: var(--gold); }
.checkbox-label .hint { display: block; margin: 2px 0 0; font-size: 12px; }

/* Utility */
.mt-4 { margin-top: 1rem; }

/* ── Botões adicionais ─────────────────────────────── */
.btn--gold {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold-deep);
  font-weight: 600;
}
.btn--gold:hover { background: var(--gold-deep); color: var(--paper); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-mid);
}
.btn--ghost:hover { background: var(--bg-hover); }

/* ── Landing v2 ────────────────────────────────────── */
main.main--landing { max-width: none; padding: 0; margin: 0; }

.ls { padding: 80px 56px; border-top: 1px solid var(--border); }
.ls:first-child { border-top: 0; }
.ls--ink  { background: var(--ink);  color: var(--paper); border-top: 0; }
.ls--navy { background: var(--navy); color: var(--paper); border-top: 0; }
.ls--warm { background: var(--paper-2); border-top: 0; }

.ls-eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 28px;
}
.ls--ink .ls-eyebrow, .ls--navy .ls-eyebrow { color: rgba(242,238,227,0.5); }
.ls--ink .ls-eyebrow.ls-eyebrow--gold, .ls--navy .ls-eyebrow.ls-eyebrow--gold { color: var(--gold); }

/* Hero */
.ls-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: center; }

.ls-headline {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(52px, 6.5vw, 88px);
  line-height: 0.93;
  letter-spacing: -0.04em;
  margin: 20px 0 24px;
}
.ls-headline em {
  font-family: var(--f-serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
}
.ls-lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--mute);
  max-width: 46ch;
  margin-bottom: 32px;
}
.ls--ink .ls-lede, .ls--navy .ls-lede { color: rgba(242,238,227,0.7); }

.ls-cta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.ls-cta-hint { font-size: 13px; color: var(--mute-light); margin-top: 12px; }
.ls-cta-hint a { color: var(--gold-deep); text-decoration: none; font-weight: 500; }

/* Hero stats strip */
.ls-hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.ls-stat-num {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 32px;
  line-height: 1;
  color: var(--navy);
}
.ls-stat-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  margin-top: 6px;
}

/* Ranking card (hero right side) */
.ls-rank-card {
  background: var(--ink);
  color: var(--paper);
  padding: 28px;
}
.ls-rank-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}
.ls-rank-card__meta {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(242,238,227,0.45);
  margin-bottom: 4px;
}
.ls-rank-card__name {
  font-family: var(--f-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--paper);
}
.ls-rank-card__live {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--gold);
}

/* Ranking rows inside dark card */
.ls-rank { display: flex; flex-direction: column; gap: 16px; }
.ls-rank-row {
  display: grid;
  grid-template-columns: 22px 90px 1fr 44px;
  align-items: center;
  gap: 12px;
}
.ls-rank-row .pos {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 22px;
  color: rgba(242,238,227,0.25);
  line-height: 1;
}
.ls-rank-row.win .pos { color: var(--gold); }
.ls-rank-row .lbl {
  font-family: var(--f-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--paper);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ls-rank-row .trk {
  display: block;
  height: 9px;
  background: rgba(255,255,255,0.09);
  border-radius: 5px;
  overflow: hidden;
}
.ls-rank-row .fil {
  display: block;
  height: 100%;
  border-radius: 5px;
  background: rgba(242,238,227,0.18);
}
/* Hierarquia de opacidade igual à logo mark: ouro → 55% → 30% → 15% */
.ls-rank .ls-rank-row:nth-child(1) .fil { background: var(--gold); }
.ls-rank .ls-rank-row:nth-child(2) .fil { background: rgba(242,238,227,0.55); }
.ls-rank .ls-rank-row:nth-child(3) .fil { background: rgba(242,238,227,0.30); }
.ls-rank .ls-rank-row:nth-child(4) .fil { background: rgba(242,238,227,0.15); }
.ls-rank-row .scr {
  font-family: var(--f-mono);
  font-size: 11px;
  color: rgba(242,238,227,0.45);
  text-align: right;
}
.ls-rank-row.win .scr { color: var(--gold); }

/* Why section */
.ls-section-h {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(36px, 4.5vw, 52px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin: 16px 0;
}
.ls-section-h em { font-family: var(--f-serif); font-weight: 400; font-style: italic; }
.ls--ink .ls-section-h, .ls--navy .ls-section-h { color: var(--paper); }

.ls-section-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: end; margin-bottom: 48px; }

.ls-why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--ink);
}
.ls-why-card {
  padding: 28px 20px;
  border-right: 1px solid var(--border);
}
.ls-why-card:last-child { border-right: 0; }
.ls-why-num { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.1em; color: var(--mute); margin-bottom: 18px; }
.ls-why-icon { color: var(--ink); margin-bottom: 18px; }
.ls-why-title { font-family: var(--f-display); font-size: 15px; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 8px; }
.ls-why-body { font-size: 13px; line-height: 1.6; color: var(--mute); }

/* MCDA section */
.ls-mcda-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px; align-items: start; }
.ls-formula {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.12);
}
.ls-formula-part { flex: 1; }
.ls-formula-part-label {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(242,238,227,0.4);
  margin-bottom: 6px;
}
.ls-formula-part-label--gold { color: var(--gold); opacity: 1; }
.ls-formula-part-title { font-family: var(--f-display); font-size: 17px; font-weight: 500; }
.ls-formula-part-title em { font-family: var(--f-serif); font-style: italic; font-weight: 400; }
.ls-formula-scale { font-family: var(--f-mono); font-size: 11px; color: var(--gold); margin-top: 10px; }
.ls-formula-op { font-family: var(--f-serif); font-style: italic; font-size: 40px; color: rgba(242,238,227,0.3); flex-shrink: 0; }

/* How it works */
.ls-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
}
.ls-step { padding: 28px 24px 28px 0; border-right: 1px solid var(--border); }
.ls-step:not(:first-child) { padding-left: 24px; }
.ls-step:last-child { border-right: 0; padding-right: 0; }
.ls-step-num { font-family: var(--f-serif); font-style: italic; font-size: 72px; line-height: 1; color: var(--navy); }
.ls-step--win .ls-step-num { color: var(--gold-deep); }
.ls-step-title { font-family: var(--f-display); font-weight: 500; font-size: 16px; letter-spacing: -0.01em; margin: 18px 0 8px; }
.ls-step-body { font-size: 13px; line-height: 1.6; color: var(--mute); }

/* Use cases */
.ls-h-rule { display: flex; gap: 24px; align-items: center; margin-bottom: 20px; }
.ls-h-rule h2 { font-family: var(--f-display); font-weight: 500; font-size: 26px; letter-spacing: -0.02em; white-space: nowrap; margin: 0; }
.ls-rule { flex: 1; height: 1px; background: var(--border); }
.ls-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ls-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border: 1px solid var(--border-mid);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mute);
}

/* ── IA Feature section ─────────────────────────────── */
.ls-ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.ls-ai-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ls-ai-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  color: rgba(242,238,227,0.75);
  line-height: 1.5;
}
.ls-ai-list__dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 5px;
}
.ls-ai-list__dot--mute { background: rgba(242,238,227,0.3); }
.ls-ai-list strong { color: var(--gold); font-weight: 600; }

/* Mock card IA */
.ls-ai-card {
  background: var(--ink);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  overflow: hidden;
}
.ls-ai-card__head {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-family: var(--f-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.01em;
}
.ls-ai-card__body { padding: 20px; }
.ls-ai-card__label { font-size: 11px; color: rgba(242,238,227,0.45); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.ls-ai-card__input {
  font-family: var(--f-display);
  font-size: 14px;
  color: var(--paper);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 14px;
}
.ls-ai-card__chips { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.ls-ai-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-family: var(--f-display);
  border: 1px solid rgba(232,179,58,0.3);
  background: rgba(232,179,58,0.08);
  color: rgba(242,238,227,0.7);
}
.ls-ai-chip--on { border-color: rgba(232,179,58,0.5); background: rgba(232,179,58,0.12); }
.ls-ai-chip__cost { font-family: var(--f-mono); font-size: 10px; color: var(--gold); }
.ls-ai-card__result { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.08); }
.ls-ai-result-label { font-size: 10px; color: rgba(242,238,227,0.4); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.ls-ai-result-item {
  font-size: 12px;
  color: var(--paper);
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  padding: 5px 8px;
  margin-bottom: 4px;
  font-family: var(--f-display);
}

/* Analysis mock card in landing */
.ls-ai-cards { display: flex; flex-direction: column; gap: 16px; }
.ls-ai-card--analyze .ls-ai-card__head { background: rgba(74,144,217,0.1); border-color: rgba(74,144,217,0.3); color: #93c5fd; }
.ls-ai-analyze-block { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
.ls-ai-analyze-block:last-child { border-bottom: none; padding-bottom: 0; }
.ls-ai-analyze-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.07em; color: rgba(242,238,227,0.4); margin-bottom: 4px; }
.ls-ai-analyze-block--winner .ls-ai-analyze-label { color: rgba(232,179,58,0.7); }
.ls-ai-analyze-block p { font-size: 12px; line-height: 1.5; color: rgba(242,238,227,0.65); margin: 0; }

/* ── Pricing / créditos ─────────────────────────────── */
.ls-credits-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: start;
}
.ls-credits-starter {
  text-align: center;
  padding: 32px 40px;
  border: 1px solid var(--border-mid);
  border-radius: 12px;
  background: var(--bg-subtle);
  min-width: 160px;
}
.ls-credits-starter__num {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 72px;
  line-height: 1;
  color: var(--gold-deep);
}
.ls-credits-starter__label {
  font-family: var(--f-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
  margin-top: 6px;
}
.ls-credits-starter__sub {
  font-size: 12px;
  color: var(--mute);
  margin-top: 4px;
}

.ls-credits-table { display: flex; flex-direction: column; }
.ls-credit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}
.ls-credit-row:first-child { border-top: 1px solid var(--border); }
.ls-credit-action { font-size: 14px; color: var(--fg); }
.ls-credit-cost {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  background: rgba(232,179,58,0.15);
  border: 1px solid rgba(232,179,58,0.3);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}
.ls-credit-row--free .ls-credit-action { color: var(--mute); }
.ls-credit-cost--free { background: var(--bg-hover); border-color: var(--border); color: var(--mute); }

.ls-credits-recharge {
  padding: 24px 28px;
  border: 1px dashed var(--border-mid);
  border-radius: 12px;
  background: var(--bg-subtle);
  min-width: 180px;
}
.ls-credits-recharge__badge {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
  border: 1px solid var(--border-mid);
  border-radius: 999px;
  padding: 2px 8px;
  margin-bottom: 12px;
}
.ls-credits-recharge__title {
  font-family: var(--f-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 8px;
}
.ls-credits-recharge__body { font-size: 13px; line-height: 1.55; color: var(--mute); }

/* CTA section */
.ls-cta-section { text-align: center; padding-top: 100px; padding-bottom: 100px; }
.ls-cta-big {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(52px, 7vw, 88px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  max-width: 14ch;
  margin: 0 auto 24px;
  color: var(--paper);
}
.ls-cta-big em { font-family: var(--f-serif); font-weight: 400; font-style: italic; color: var(--gold); }
.ls-cta-sub { font-size: 17px; color: rgba(242,238,227,0.65); max-width: 36ch; margin: 0 auto 36px; }
.ls-cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.ls--navy .btn--ghost { color: var(--paper); border-color: rgba(242,238,227,0.35); }
.ls--navy .btn--ghost:hover { background: rgba(242,238,227,0.08); }

/* Responsive */
@media (max-width: 960px) {
  .ls { padding: 56px 32px; }
  .ls-hero { grid-template-columns: 1fr; }
  .ls-rank-card { display: none; }
  .ls-section-grid { grid-template-columns: 1fr; gap: 24px; }
  .ls-why-grid { grid-template-columns: 1fr 1fr; }
  .ls-why-card:nth-child(2) { border-right: 0; }
  .ls-why-card:nth-child(3) { border-right: 1px solid var(--border); }
  .ls-mcda-grid { grid-template-columns: 1fr; gap: 40px; }
  .ls-steps-grid { grid-template-columns: 1fr 1fr; }
  .ls-step:nth-child(2) { border-right: 0; padding-right: 0; }
  .ls-step:nth-child(3) { border-right: 1px solid var(--border); padding-left: 0; padding-right: 24px; }
  .ls-ai-grid { grid-template-columns: 1fr; gap: 48px; }
  .ls-credits-grid { grid-template-columns: 1fr; }
  .ls-credits-starter { display: flex; gap: 16px; align-items: center; padding: 20px 24px; text-align: left; }
  .ls-credits-starter__num { font-size: 48px; }
}
@media (max-width: 600px) {
  .ls { padding: 48px 20px; }
  .ls-headline { font-size: 44px; }
  .ls-why-grid, .ls-steps-grid { grid-template-columns: 1fr; }
  .ls-why-card, .ls-step { border-right: 0 !important; border-bottom: 1px solid var(--border); }
  .ls-why-card:last-child, .ls-step:last-child { border-bottom: 0; }
  .ls-hero-stats { flex-wrap: wrap; gap: 24px; }
  .ls-formula { flex-direction: column; gap: 16px; }
  .ls-cta-big { font-size: 44px; }
  .ls-ai-card__result { grid-template-columns: 1fr; gap: 12px; }
  .ls-credits-starter { flex-direction: column; text-align: center; }
}

/* ── Créditos no nav ───────────────────────────────── */
.nav-credits {
  font-size: 11px;
  font-family: var(--f-mono);
  color: var(--gold);
  background: rgba(232, 179, 58, 0.12);
  border: 1px solid rgba(232, 179, 58, 0.25);
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
}

/* ── Botão de IA ───────────────────────────────────── */
.btn--ai {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  font-size: 12px;
  font-family: var(--f-display);
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid rgba(232, 179, 58, 0.4);
  background: rgba(232, 179, 58, 0.08);
  color: var(--gold-deep);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn--ai:hover {
  background: rgba(232, 179, 58, 0.15);
  border-color: var(--gold);
}

/* ── Barra do botão de IA (abaixo do contexto) ─────── */
.ai-suggest-bar {
  margin: -4px 0 20px;
  display: flex;
}

/* ── Header do field-group (sem botão de IA agora) ─── */
.field-group-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}
.field-group-header h3 { margin: 0 0 4px; }
.field-group-header .hint { margin: 0; }

/* ── Modal da IA ───────────────────────────────────── */
.ai-modal {
  display: none;
  position: fixed;
  inset: 0;
  align-items: center;
  justify-content: center;
  z-index: 900;
}
.ai-modal.modal--open {
  display: flex;
}
.ai-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 26, 0.72);
  backdrop-filter: blur(3px);
}
.ai-modal__dialog {
  position: relative;
  z-index: 1;
  background: var(--paper);
  color: var(--ink);
  border-radius: 12px;
  padding: 32px;
  max-width: 460px;
  width: calc(100% - 40px);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
}
.ai-modal__dialog h3 {
  margin: 0 0 20px;
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.ai-modal__dialog p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 12px;
}
/* Campos de contexto dentro do modal */
.ai-modal__context { margin-bottom: 16px; }
.ai-modal__context .field { margin-bottom: 10px; }
.ai-modal__context label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.ai-modal__context input,
.ai-modal__context textarea {
  width: 100%;
  padding: 8px 10px;
  font-family: var(--f-display);
  font-size: 13px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border-mid);
  border-radius: var(--r);
  outline: none;
  box-sizing: border-box;
  transition: border-color .1s, box-shadow .1s;
  resize: none;
}
.ai-modal__context input:focus,
.ai-modal__context textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232,179,58,0.15); }

.ai-modal__subtitle {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin: 16px 0 10px !important;
}
.ai-modal__tip {
  background: rgba(232, 179, 58, 0.08);
  border: 1px solid rgba(232, 179, 58, 0.22);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 0 !important;
}

/* Choices dentro do modal */
.ai-modal__choices { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.ai-choice {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border-mid);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.ai-choice:has(input:checked) {
  border-color: rgba(232, 179, 58, 0.5);
  background: rgba(232, 179, 58, 0.04);
}
.ai-choice input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--gold-deep); cursor: pointer; }
.ai-choice__body { display: flex; flex-direction: column; gap: 2px; }
.ai-choice__label { font-size: 14px; font-weight: 500; color: var(--ink); }
.ai-choice__cost { font-size: 11px; font-family: var(--f-mono); color: var(--mute); }
.ai-choice__qty { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.ai-choice__qty label { font-size: 10px; color: var(--mute); text-transform: uppercase; letter-spacing: 0.04em; }
.ai-choice__qty select {
  font-size: 13px;
  padding: 3px 6px;
  border: 1px solid var(--border-mid);
  border-radius: 4px;
  background: var(--bg);
  color: var(--fg);
  width: 60px;
}

.ai-modal__total {
  font-size: 14px;
  color: var(--ink-soft);
  text-align: right;
  margin-bottom: 4px;
}
.ai-modal__total strong { color: var(--gold-deep); }
.ai-modal__status {
  font-size: 13px;
  color: var(--gold-deep);
  min-height: 1.4em;
  margin: 4px 0 0;
}
.ai-modal__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

/* ── Admin: gestão de créditos ─────────────────────── */
.admin-credits { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.admin-credits__count {
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 600;
  min-width: 36px;
}
.admin-credits__add { display: flex; gap: 4px; align-items: center; }
.admin-credits__input {
  width: 56px;
  height: 28px;
  padding: 0 6px;
  font-size: 13px;
  border: 1px solid var(--border-mid);
  border-radius: 4px;
  background: var(--bg);
  color: var(--fg);
}

@media (max-width: 600px) {
  .field-group-header { flex-direction: column; align-items: flex-start; }
  .ai-modal__actions { flex-direction: column; }
  .ai-choice { grid-template-columns: auto 1fr; }
  .ai-choice__qty { display: none; }
}

/* ── Impressão / Exportar PDF ───────────────────────── */
@media print {
  /* ── Página em landscape ──────────────────────── */
  @page { size: A4 landscape; margin: 12mm 15mm; }

  /* ── Base ────────────────────────────────────── */
  body {
    background: #fff !important;
    color: #1a1a1a !important;
    font-size: 11px;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* ── Ocultar chrome ──────────────────────────── */
  .app-sidebar,
  .app-page-header__right,
  .app-action-row,
  .app-danger-zone,
  header, footer,
  .result-actions,
  .ai-modal,
  .flash-messages,
  .ai-analyze-trigger > button { display: none !important; }

  /* ── App shell vira bloco simples ────────────── */
  .app-shell { display: block; }
  .app-shell main {
    padding: 0 !important;
    overflow: visible !important;
    background: #fff !important;
    min-height: auto !important;
  }

  /* ── App page header ─────────────────────────── */
  .app-page-header {
    margin-bottom: 14px;
    border-bottom: 2px solid #1a2740;
    padding-bottom: 10px;
  }
  .app-page-header__title {
    font-size: 18px !important;
    color: #1a2740 !important;
  }
  .app-page-header__meta { color: #888 !important; }
  .app-page-header__desc { color: #555 !important; }

  /* ── KPI row ─────────────────────────────────── */
  .app-kpi-row {
    border-color: #ddd !important;
    margin-bottom: 14px;
  }
  .app-kpi { border-color: #ddd !important; }
  .app-kpi__label { color: #888 !important; }
  .app-kpi__value { color: #1a2740 !important; }
  .app-kpi__sub { color: #888 !important; }
  .app-kpi__sub--gold { color: #b7861d !important; }

  /* ── Ranking ─────────────────────────────────── */
  .app-rank-list { gap: 6px; }
  .app-rank-item {
    break-inside: avoid;
    border: 1px solid #ddd !important;
    padding: 10px 14px !important;
  }
  .app-rank-item--winner {
    background: #fffbef !important;
    border-color: #c8901a !important;
  }
  .app-rank-num { color: #888 !important; font-size: 24px !important; }
  .app-rank-item--winner .app-rank-num { color: #b7861d !important; }
  .app-rank-name { color: #1a2740 !important; }
  .app-rank-score { color: #1a2740 !important; font-size: 20px !important; }
  .app-rank-bar__fill { background: #1a2740 !important; }
  .app-rank-item--winner .app-rank-bar__fill { background: #c8901a !important; }
  .app-rank-bar__rest { background: #e0e0e0 !important; }

  /* ── Pesos + Matriz em duas colunas ──────────── */
  .app-result-grid {
    display: grid !important;
    grid-template-columns: 1fr 2fr !important;
    gap: 16px !important;
  }
  .app-result-section { margin-bottom: 14px; }
  .app-result-section__label { color: #888 !important; }

  .app-weight-bar { background: #e0e0e0 !important; }
  .app-weight-bar__fill { background: #1a2740 !important; }
  .app-weight-row__val { color: #555 !important; }

  /* Matriz — aproveita a largura landscape */
  .app-matrix-wrap { overflow: visible !important; }
  .app-matrix-table { font-size: 10px !important; table-layout: auto; width: 100%; }
  .app-matrix-table th {
    background: #1a2740 !important;
    color: #fff !important;
    padding: 5px 8px !important;
    font-size: 9px !important;
    white-space: normal !important;
  }
  .app-matrix-table td { padding: 5px 8px !important; border-bottom: 1px solid #eee !important; }
  .app-matrix-row--winner td { background: #fffbef !important; }
  .app-matrix-option { color: #1a2740 !important; }
  .app-matrix-final { color: #1a2740 !important; }
  .score-pill {
    background: #f0f0f0 !important;
    color: #1a1a1a !important;
    font-size: 9px !important;
    padding: 1px 4px !important;
  }

  /* ── Comentários ─────────────────────────────── */
  .app-comment-item { break-inside: avoid; border: 1px solid #eee !important; }

  /* ── Análise IA ──────────────────────────────── */
  .result-section--ai { break-before: page; }
  .ai-analyze-result { display: grid !important; }
  .ai-analyze-section { background: #f5f5f5 !important; color: #1a1a1a !important; }
  .ai-analyze-section--winner { background: #fffbef !important; border-left: 3px solid #c8901a; }
  .ai-analyze-section--rec { background: #f0fff4 !important; grid-column: 1 / -1; border-left: 3px solid #2d7a3a; }
  .ai-analyze-label { color: #555 !important; }
  .ai-analyze-trigger { display: block !important; }
}

/* ══════════════════════════════════════════════════
   APP SHELL — Layout autenticado (sidebar + main)
   ══════════════════════════════════════════════════ */

.app-body { background: var(--paper); }

.app-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
}

/* ── Sidebar ─────────────────────────────────────── */
.app-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid rgba(10,14,26,0.12);
  background: var(--paper);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
}

.app-sidebar__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.3px;
  margin: 0 8px 32px;
}
.app-sidebar__logo:hover { opacity: 0.75; }

/* barras do logo ficam na cor ink (fundo claro) */
.app-sidebar__logo .logo__mark .bar { background: var(--ink); }
.app-sidebar__logo .logo__mark .bar--win { background: var(--gold); }
.app-sidebar__logo .logo__dot { background: var(--gold); }

.app-sidebar__label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute-light);
  padding: 0 8px;
  margin-bottom: 10px;
}

.app-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 28px;
}

.app-nav-link {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 9px 8px;
  font-size: 13px;
  color: var(--ink-soft);
  border-radius: 2px;
  text-decoration: none;
  transition: background .1s, color .1s;
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}
.app-nav-link:hover { background: var(--paper-2); color: var(--ink); }

.app-nav-link--active {
  background: var(--paper-2);
  color: var(--ink);
  font-weight: 500;
}

.app-nav-link--disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

.app-nav-link__icon { flex-shrink: 0; opacity: 0.65; }
.app-nav-link--active .app-nav-link__icon { opacity: 1; }

.app-nav-link__count {
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--mute);
}

.app-nav-link__count--soon {
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mute-light);
  opacity: 0.8;
}

.app-nav-link__badge {
  margin-left: auto;
  min-width: 18px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
}

.changelog-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 680px;
}

.changelog-entry {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: var(--card, #fff);
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 10px;
  padding: 18px 20px;
  transition: border-color .15s, background .15s, transform .15s;
}
.changelog-entry:hover {
  border-color: var(--gold, #b8860b);
  background: var(--paper-2, #fafafa);
}
.changelog-entry:focus-visible {
  outline: none;
  border-color: var(--gold, #b8860b);
  box-shadow: 0 0 0 3px rgba(232, 179, 58, 0.18);
}
.changelog-entry:active { transform: translateY(1px); }

.changelog-entry__date {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--mute);
  margin-bottom: 4px;
}

.changelog-entry__title {
  margin: 0 0 6px;
  font-size: 16px;
}

.changelog-entry__body {
  margin: 0;
  color: var(--mute);
  line-height: 1.55;
}

.changelog-entry__cta {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--f-mono);
  color: var(--gold-deep, #8a6a14);
  letter-spacing: 0.02em;
}

/* ── Modal genérico — Decidir Modals Essentials ──────
   Cabeçalho ink + mono uppercase + kicker.dot (ouro/coral).
   Painel papel com sombra em 3 camadas. Footer com border-top
   sobre fundo branco-papel. Variante --sm = 460px (confirmações). */
.modal[hidden] { display: none !important; }
.modal {
  display: none;
  position: fixed;
  inset: 0;
  align-items: center;
  justify-content: center;
  z-index: 950;
  padding: 24px;
}
.modal.modal--open { display: flex; }
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 26, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal__panel {
  position: relative;
  z-index: 1;
  background: var(--paper);
  color: var(--ink);
  border-radius: 3px;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 48px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 1px 0 rgba(10, 14, 26, 0.04),
    0 24px 48px -12px rgba(10, 14, 26, 0.35),
    0 60px 120px -20px rgba(10, 14, 26, 0.25);
}
.modal--sm .modal__panel { max-width: 460px; }

.modal__head {
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  flex-shrink: 0;
}
.modal__head .kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.modal__head .kicker .dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 1px;
  flex-shrink: 0;
}
.modal__head--warn   .kicker .dot { background: var(--gold); }
.modal__head--danger .kicker .dot { background: #FF8B7A; }
.modal__head .kicker__aside { opacity: 0.5; margin-left: 4px; }

.modal__close {
  appearance: none;
  background: transparent;
  border: 0;
  color: inherit;
  opacity: 0.65;
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
  transition: opacity .15s ease;
}
.modal__close:hover { opacity: 1; }
.modal__close:focus-visible {
  outline: none;
  opacity: 1;
  box-shadow: 0 0 0 2px rgba(232, 179, 58, 0.55);
  border-radius: 2px;
}

.modal__body {
  padding: 32px;
  overflow-y: auto;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
}
.modal__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--ink);
  text-wrap: balance;
  margin: 0;
}
.modal__title em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
}
.modal__lede {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
  text-wrap: pretty;
}
.modal__body p { margin: 0 0 10px; }
.modal__body p:last-child { margin-bottom: 0; }

.modal__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 32px;
  border-top: 1px solid var(--rule);
  background: var(--white);
  flex-shrink: 0;
}
.modal__foot-group { display: flex; gap: 8px; }

body.modal-open { overflow: hidden; }

/* ── Botões internos do modal (.mbtn) ───────────────── */
.mbtn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 500;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  background: transparent;
  color: inherit;
  text-decoration: none;
  transition: transform .12s ease, border-color .12s ease, background .12s ease, color .12s ease;
}
.mbtn:hover { transform: translateY(-1px); }
.mbtn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(232, 179, 58, 0.35);
}
.mbtn--primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.mbtn--ghost   { color: var(--ink); border-color: var(--rule); }
.mbtn--ghost:hover { border-color: var(--ink); }
.mbtn--danger  { background: var(--ink); color: #FFB4A8; border-color: var(--ink); }
.mbtn--warn    { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); }
.mbtn--link    { padding: 8px 0; color: var(--ink-soft); }
.mbtn--link:hover { color: var(--ink); transform: none; }
.mbtn .arrow { display: inline-flex; transition: transform .15s ease; }
.mbtn:hover .arrow { transform: translateX(3px); }

/* ── Lista de impacto dentro de confirmações ──────── */
.modal__impact {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  border-top: 1px dashed var(--rule);
  border-bottom: 1px dashed var(--rule);
  padding: 14px 0;
}
.modal__impact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 13px;
}
.modal__impact-row .lbl {
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}
.modal__impact-row .lbl::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--mute);
  border-radius: 50%;
}
.modal__impact-row .val {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink);
  letter-spacing: var(--tracking-mono);
}

/* ── Lista de correções no modal de changelog ─────── */
.changelog-modal__fixes-title {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--mute);
  margin: 24px 0 10px;
}
.changelog-modal__fixes {
  margin: 0;
  padding-left: 20px;
  color: var(--ink-soft);
  line-height: 1.55;
  font-size: 14px;
}
.changelog-modal__fixes li + li { margin-top: 6px; }

.app-sidebar__decisions {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.app-decision-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 8px;
  font-size: 12px;
  color: var(--ink);
  border-radius: 2px;
  text-decoration: none;
  transition: background .1s;
  overflow: hidden;
}
.app-decision-item:hover { background: var(--paper-2); }
.app-decision-item--active { background: var(--paper-2); }
.app-decision-item--archived { opacity: 0.55; }
.app-decision-item--archived:hover { opacity: 0.8; background: var(--paper-2); }

.app-decision-item > span:first-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.app-decision-item__meta {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--mute-light);
}

.app-sidebar__footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(10,14,26,0.08);
}

.app-sidebar__user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px 10px;
}

.app-sidebar__user-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.app-sidebar__credits {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--mute);
  white-space: nowrap;
}

/* ── Main content area ───────────────────────────── */
.app-shell main {
  max-width: none;
  margin: 0;
  padding: 32px 40px;
  background: var(--white);
  min-height: 100vh;
  min-width: 0;       /* evita overflow em CSS Grid */
  overflow-x: hidden;
}

/* Variante estreita para formulários */
.app-shell main.app-main--narrow > * {
  max-width: 720px;
}

/* ── App page header ─────────────────────────────── */
.app-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  gap: 20px;
}

.app-page-header__left { min-width: 0; flex: 1; }

.app-page-header__meta {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--mute-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.app-page-header__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 6px;
  line-height: 1.2;
}

.app-page-header__desc {
  font-size: 13px;
  color: var(--mute);
  margin: 0;
  max-width: 52ch;
  line-height: 1.5;
}

.app-page-header__right {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

/* ── KPI row ─────────────────────────────────────── */
.app-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(10,14,26,0.12);
  border-bottom: 1px solid rgba(10,14,26,0.12);
  margin-bottom: 32px;
}

.app-kpi {
  padding: 18px 24px;
  border-right: 1px solid rgba(10,14,26,0.12);
}
.app-kpi:first-child { padding-left: 0; }
.app-kpi:last-child  { border-right: 0; padding-right: 0; }

.app-kpi__label {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--mute-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.app-kpi__value {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}

.app-kpi__value--serif {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 28px;
  line-height: 1;
  color: var(--navy);
}

.app-kpi__value--winner {
  font-size: 18px;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-kpi__sub {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--mute-light);
  margin-top: 4px;
}

.app-kpi__sub--gold { color: var(--gold-deep); font-weight: 500; }

/* ── Decisions list (dashboard) ──────────────────── */
.app-decisions-list {
  border: 1px solid rgba(10,14,26,0.12);
  border-radius: 4px;
  overflow: hidden;
}

.app-decision-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(10,14,26,0.08);
  text-decoration: none;
  color: var(--ink);
  transition: background .1s;
}
.app-decision-row:last-child { border-bottom: 0; }
.app-decision-row:hover { background: var(--paper); }

.app-decision-row__info { min-width: 0; }

.app-decision-row__title {
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-decision-row__meta {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--mute);
}

.app-decision-row__progress {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--mute);
  text-align: right;
  white-space: nowrap;
}

/* ── Sections inside app main ────────────────────── */
.app-parallel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.app-section {
  background: var(--paper);
  border: 1px solid rgba(10,14,26,0.10);
  border-radius: 4px;
  padding: 20px;
}

.app-section h2 {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-section .progress-count {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--mute);
  background: var(--paper-2);
  padding: 1px 6px;
  border-radius: 10px;
}

.app-action-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--paper);
  border: 1px solid rgba(10,14,26,0.10);
  border-radius: 4px;
  margin-bottom: 16px;
}

.app-action-row p { font-size: 13px; color: var(--mute); margin: 0; flex: 1; }

.app-action-row--warning {
  border-color: rgba(220,38,38,0.25);
  background: hsl(0,79%,98%);
}

.app-action-row--result {
  border-color: rgba(22,163,74,0.3);
  background: hsl(142,71%,98%);
}

.app-danger-zone {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 12px 16px;
  border: 1px solid rgba(220,38,38,0.25);
  border-radius: 4px;
  opacity: 0.65;
  transition: opacity .15s;
  margin-top: 8px;
}
.app-danger-zone:hover { opacity: 1; }

.app-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.app-info-section {
  background: var(--paper);
  border: 1px solid rgba(10,14,26,0.10);
  border-radius: 4px;
  padding: 16px 20px;
}

.app-info-section h3 {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.app-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.app-info-list li {
  font-size: 13px;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.app-info-list small {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--mute);
}

/* ── Responsive: mobile fallback ─────────────────── */
@media (max-width: 768px) {
  .app-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .app-sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 12px 16px;
    gap: 8px;
    border-right: none;
    border-bottom: 1px solid rgba(10,14,26,0.12);
  }

  .app-sidebar__logo { margin: 0; }
  .app-sidebar__label,
  .app-sidebar__decisions,
  .app-sidebar__footer { display: none; }

  .app-sidebar__nav {
    flex-direction: row;
    margin-bottom: 0;
    gap: 4px;
  }

  .app-shell main {
    padding: 20px 16px;
  }

  .app-kpi-row { grid-template-columns: repeat(2, 1fr); }
  .app-parallel { grid-template-columns: 1fr; }
  .app-info-grid { grid-template-columns: 1fr; }
  .app-result-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════
   RESULT PAGE — redesign (app layout)
   ══════════════════════════════════════════════════ */

/* ── Section label ───────────────────────────────── */
.app-result-section {
  margin-bottom: 32px;
}

.app-result-section__label {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  display: block;
}

/* ── Ranking ─────────────────────────────────────── */
.app-rank-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app-rank-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 16px;
  align-items: start;
  padding: 16px 20px;
  border: 1px solid rgba(10,14,26,0.12);
  border-radius: 2px;
}

.app-rank-item--winner {
  border-color: var(--gold);
  background: #FBF6E7;
}

.app-rank-num {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 32px;
  color: var(--mute);
  line-height: 1;
  padding-top: 4px;
}

.app-rank-item--winner .app-rank-num { color: var(--gold-deep); }

.app-rank-body { min-width: 0; }

.app-rank-name-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.app-rank-name {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.015em;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-rank-score {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 24px;
  color: var(--navy);
  flex-shrink: 0;
  line-height: 1;
}

.app-rank-bar {
  display: flex;
  margin-top: 8px;
  height: 3px;
  border-radius: 2px;
  overflow: hidden;
}

.app-rank-bar__fill {
  height: 3px;
  background: var(--gold);
}

.app-rank-item:not(.app-rank-item--winner) .app-rank-bar__fill {
  background: var(--ink);
  opacity: 0.6;
}

.app-rank-bar__rest {
  flex: 1;
  height: 3px;
  background: var(--paper-3);
}

/* ── Weights + Matrix two-column grid ────────────── */
.app-result-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 24px;
  margin-bottom: 32px;
}

/* ── Weights ─────────────────────────────────────── */
.app-weights-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-weight-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
}

.app-weight-row__name {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-weight-bar {
  width: 80px;
  height: 3px;
  background: var(--paper-2);
  border-radius: 2px;
  overflow: hidden;
}

.app-weight-bar__fill {
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
}

.app-weight-row__val {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--mute);
  min-width: 28px;
  text-align: right;
}

/* ── Matrix ──────────────────────────────────────── */
.app-matrix-wrap {
  overflow-x: auto;
}

.app-matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.app-matrix-table th {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(10,14,26,0.12);
  white-space: nowrap;
}

.app-matrix-table th small {
  display: block;
  font-size: 9px;
  color: var(--mute-light);
  font-weight: 400;
  margin-top: 2px;
}

.app-matrix-table td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(10,14,26,0.06);
  vertical-align: middle;
}

.app-matrix-row--winner td { background: #FBF6E7; }

.app-matrix-option {
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

.app-matrix-final {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
}

/* ── Comments ────────────────────────────────────── */
.app-comments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app-comment-item {
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid rgba(10,14,26,0.08);
  border-radius: 2px;
}

.app-comment-item strong {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
}

.app-comment-item p {
  font-size: 13px;
  color: var(--mute);
  line-height: 1.5;
  margin: 0;
}

/* ══════════════════════════════════════════════════
   SETUP PAGE — redesign
   ══════════════════════════════════════════════════ */

/* ── Tabs ────────────────────────────────────────── */
.setup-tabs-wrap { margin-bottom: 0; }

.setup-tabs {
  display: flex;
  border-bottom: 1px solid rgba(10,14,26,0.12);
  margin-bottom: 28px;
  gap: 0;
}

.setup-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--mute);
  cursor: pointer;
  margin-bottom: -1px;
  transition: color 0.12s, border-color 0.12s;
  font-family: var(--f-display);
}

.setup-tab:hover { color: var(--ink); }
.setup-tab--active { color: var(--ink); border-bottom-color: var(--navy); }

/* ── Two-column body ─────────────────────────────── */
.setup-body {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: start;
}

/* ── Ranking list ────────────────────────────────── */
.setup-ranking {
  display: flex;
  flex-direction: column;
}

.setup-rank-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid rgba(10,14,26,0.07);
}
.setup-rank-item:last-child { border-bottom: 0; }

.setup-rank-num {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 34px;
  line-height: 1;
  color: var(--mute-light);
  min-width: 30px;
  text-align: right;
  padding-top: 2px;
  flex-shrink: 0;
}
.setup-rank-item--leader .setup-rank-num { color: var(--gold-deep); }

.setup-rank-body { flex: 1; min-width: 0; }

.setup-rank-name-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.setup-rank-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.setup-rank-score {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 20px;
  color: var(--navy);
  flex-shrink: 0;
}
.setup-rank-item--leader .setup-rank-score { color: var(--gold-deep); }

.setup-rank-bar {
  display: flex;
  height: 3px;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 12px;
  background: rgba(10,14,26,0.07);
}
.setup-rank-bar__fill {
  background: var(--navy);
  border-radius: 2px;
}
.setup-rank-item--leader .setup-rank-bar__fill { background: var(--gold); }
.setup-rank-bar__rest { background: transparent; }

.setup-rank-desc {
  font-size: 12px;
  color: var(--mute);
  margin-top: 6px;
}

/* ── Criteria mini-grid ──────────────────────────── */
.setup-criteria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 5px;
}

.setup-criteria-cell {
  background: rgba(10,14,26,0.04);
  border-radius: 4px;
  padding: 6px 8px;
}

.setup-criteria-cell__name {
  font-size: 9px;
  color: var(--mute-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.setup-criteria-cell__score {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ── Empty state ─────────────────────────────────── */
.setup-empty {
  padding: 40px 0;
  color: var(--mute);
  font-size: 13px;
  line-height: 1.6;
}
.setup-empty-text {
  color: var(--mute);
  font-size: 13px;
  padding: 24px 0;
}

.setup-waiting-hint {
  font-size: 11px;
  color: var(--mute-light);
  margin-top: 14px;
  font-style: italic;
}

.setup-criteria-cell__score--empty {
  color: var(--mute-light);
  font-weight: 400;
}

/* ── Right panels ────────────────────────────────── */
.setup-panels {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.setup-panel {
  border: 1px solid rgba(10,14,26,0.10);
  border-radius: 6px;
  padding: 16px;
}

.setup-panel__title {
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--mute-light);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.setup-panel__count {
  font-variant-numeric: tabular-nums;
}

/* Weight bar rows */
.setup-panel-weight-row {
  display: grid;
  grid-template-columns: 1fr 60px 34px;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.setup-panel-weight-row:last-child { margin-bottom: 0; }

.setup-panel-weight-row__name {
  font-size: 12px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.setup-panel-weight-bar {
  height: 4px;
  background: rgba(10,14,26,0.08);
  border-radius: 2px;
  overflow: hidden;
}

.setup-panel-weight-fill {
  height: 100%;
  background: var(--navy);
  border-radius: 2px;
  transition: width 0.3s;
}

.setup-panel-weight-row__val {
  font-size: 12px;
  font-weight: 500;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* Evaluator / participant rows */
.setup-evaluator-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(10,14,26,0.06);
}
.setup-evaluator-row:last-child { border-bottom: 0; }

.setup-evaluator-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(10,14,26,0.18);
  flex-shrink: 0;
}
.setup-evaluator-dot--done { background: #22c55e; }

.setup-evaluator-name {
  font-size: 12px;
  color: var(--ink);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.setup-evaluator-copy {
  background: none;
  border: 1px solid rgba(10,14,26,0.15);
  border-radius: 3px;
  padding: 1px 6px;
  font-size: 11px;
  color: var(--mute-light);
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.1s, border-color 0.1s;
}
.setup-evaluator-copy:hover { color: var(--ink); border-color: rgba(10,14,26,0.4); }

/* ── Roster: adicionar/remover (sidebar) ───────────── */
.plist-remove,
.plist-remove-form {
  display: inline-flex;
  margin: 0;
  padding: 0;
}
.plist-remove {
  background: none;
  border: 1px solid rgba(10,14,26,0.15);
  border-radius: 3px;
  padding: 1px 6px;
  font-size: 11px;
  color: var(--mute-light);
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.1s, border-color 0.1s, background 0.1s;
}
.plist-remove:hover {
  color: #b91c1c;
  border-color: rgba(185,28,28,0.45);
  background: rgba(185,28,28,0.06);
}

.plist-add-form {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(10,14,26,0.10);
  flex-wrap: wrap;
}
.plist-add-form input {
  flex: 1 1 110px;
  min-width: 0;
  font-size: 12px;
  padding: 5px 7px;
  border: 1px solid rgba(10,14,26,0.18);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
}
.plist-add-form input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 2px rgba(10,29,77,0.08);
}
.plist-add-form__submit {
  background: var(--ink);
  color: var(--paper);
  border: none;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}
.plist-add-form__submit:hover { background: var(--navy); }
.plist-add-form--compact { font-size: 11px; }

/* ── Participants list (tab Participantes) ────────── */
.plist-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.plist-card {
  border: 1px solid rgba(10,14,26,0.10);
  border-radius: 8px;
  overflow: hidden;
}

.plist-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: rgba(10,14,26,0.025);
  border-bottom: 1px solid rgba(10,14,26,0.08);
}

.plist-card__title {
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mute);
  font-weight: 500;
}

.plist-card__progress {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--mute-light);
  background: rgba(10,14,26,0.06);
  padding: 2px 8px;
  border-radius: 20px;
}
.plist-card__progress--done {
  color: #16a34a;
  background: rgba(34,197,94,0.12);
}

.plist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.plist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(10,14,26,0.06);
  transition: background 0.1s;
}
.plist-item:last-child { border-bottom: 0; }
.plist-item:hover { background: rgba(10,14,26,0.02); }

.plist-item__status {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.plist-item__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.plist-item__name {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plist-item__email {
  font-size: 11px;
  color: var(--mute-light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plist-item__right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.plist-item__when {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--mute-light);
}

.plist-badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.plist-badge--done {
  background: rgba(34,197,94,0.12);
  color: #16a34a;
}
.plist-badge--pending {
  background: rgba(245,158,11,0.12);
  color: #d97706;
}

.plist-copy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 1px solid rgba(10,14,26,0.15);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11px;
  color: var(--mute);
  cursor: pointer;
  transition: color 0.1s, border-color 0.1s, background 0.1s;
}
.plist-copy:hover {
  color: var(--ink);
  border-color: rgba(10,14,26,0.35);
  background: rgba(10,14,26,0.03);
}

.plist-empty {
  padding: 24px 18px;
  font-size: 13px;
  color: var(--mute);
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 960px) {
  .setup-body { grid-template-columns: 1fr; }
  .setup-criteria-grid { grid-template-columns: repeat(3, 1fr); }
  .plist-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .setup-criteria-grid { grid-template-columns: repeat(2, 1fr); }
  .setup-tab { padding: 8px 10px; font-size: 12px; }
}

/* ── Page transition overlay ─────────────────────── */
#page-loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 14, 26, 0.55);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
#page-loading.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.page-loading__card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(10, 14, 26, 0.72);
  border: 1px solid rgba(242, 238, 227, 0.1);
  border-radius: 14px;
  padding: 18px 28px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}
.page-loading__mark {
  display: inline-flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 3px;
  width: 22px;
  height: 22px;
}
.pl-bar {
  border-radius: 2px;
  transform-origin: bottom;
}
.pl-bar--1 { width: 100%; height: 6px; background: var(--gold); }
.pl-bar--2 { width: 64%; height: 4px; background: var(--paper); opacity: 0.55; }
.pl-bar--3 { width: 38%; height: 4px; background: var(--paper); opacity: 0.32; }
#page-loading.is-visible .pl-bar--1 { animation: pl-eq 1.1s ease-in-out infinite 0s; }
#page-loading.is-visible .pl-bar--2 { animation: pl-eq 1.1s ease-in-out infinite 0.22s; }
#page-loading.is-visible .pl-bar--3 { animation: pl-eq 1.1s ease-in-out infinite 0.44s; }
@keyframes pl-eq {
  0%, 100% { transform: scaleY(1); }
  45%       { transform: scaleY(2.4); }
}
.page-loading__wordmark {
  font-size: 19px;
  font-weight: 500;
  color: var(--paper);
  letter-spacing: -0.3px;
}
.page-loading__dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  margin-left: 1px;
  margin-bottom: 3px;
  vertical-align: bottom;
}

/* ── View Transitions (Turbo navegação fluida) ───── */
@keyframes vt-fade-in {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes vt-fade-out {
  from { opacity: 1; }
  to   { opacity: 0; }
}
::view-transition-old(root) {
  animation: 120ms ease-out both vt-fade-out;
}
::view-transition-new(root) {
  animation: 180ms ease-out both vt-fade-in;
}
/* sidebar permanente não participa da transição */
[data-turbo-permanent] {
  view-transition-name: none;
}

/* ── Mini-logo animada (modais IA) ───────────────── */
.ai-thinking {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-deep);
  font-size: 13px;
}
.ai-thinking__mark {
  display: inline-flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.ai-thinking__mark .pl-bar--1 { animation: pl-eq 1.1s ease-in-out infinite 0s; }
.ai-thinking__mark .pl-bar--2 { animation: pl-eq 1.1s ease-in-out infinite 0.22s; }
.ai-thinking__mark .pl-bar--3 { animation: pl-eq 1.1s ease-in-out infinite 0.44s; }

/* ── App form (padrão dashboard) ─────────────────── */
.app-form-input {
  display: block;
  width: 100%;
  max-width: 480px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 8px 12px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.app-form-input:focus {
  border-color: var(--gold);
  box-shadow: var(--focus);
}
.app-form-input--sm {
  font-size: 13px;
  padding: 6px 10px;
  max-width: none;
}
.app-form-input::placeholder { color: var(--fg-faint); }

.app-form-errors {
  background: rgba(220,38,38,0.06);
  border: 1px solid rgba(220,38,38,0.25);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #b91c1c;
}
.app-form-errors p { margin: 0 0 4px; }
.app-form-errors p:last-child { margin: 0; }

.app-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.plist-item--editable {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
}
.plist-item--editable:last-of-type { border-bottom: 0; }

.plist-item__inputs {
  display: flex;
  flex: 1;
  gap: 8px;
  flex-wrap: wrap;
}
.plist-item__inputs input { flex: 1; min-width: 140px; }

.plist-remove-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  border-radius: 4px;
  color: var(--mute);
  cursor: pointer;
  transition: color .15s, background .15s;
  padding: 0;
}
.plist-remove-btn:hover { color: #dc2626; background: rgba(220,38,38,0.08); }

.plist-add-row {
  padding: 12px 16px;
  border-top: 1px solid rgba(10,14,26,0.08);
}

/* ── Grupos ──────────────────────────────────────── */
.field-group__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.field-group__header > div { flex: 1; }
.field-group__header h3 { margin-bottom: 2px; }
.field-group__header .hint { margin-top: 0; }

.group-import {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.save-as-group {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.app-action-zone {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.groups-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.app-sidebar__see-all {
  display: block;
  font-size: 11px;
  color: var(--mute);
  padding: 4px 10px;
  text-decoration: none;
  transition: color 0.15s;
}
.app-sidebar__see-all:hover { color: var(--paper); }

/* ── Form blocks (stepped sections) ─────────────── */
.form-block {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 16px;
  background: var(--surface);
}
.form-block__header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}
.form-block__header > div { flex: 1; min-width: 0; }
.form-block__header h3 { margin: 0 0 2px; font-size: 15px; font-weight: 700; }
.form-block__header .hint { margin: 0; }
.form-block__step {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.form-block .field-group { margin-bottom: 16px; }
.form-block .field-group:last-child { margin-bottom: 0; }
.form-block h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0 0 6px;
}

/* ── Profile page ────────────────────────────────── */
.form-block--danger {
  border-left: 3px solid #e74c3c;
}
.form-block--danger .form-block__header h3 { color: #e74c3c; }
.form-block--danger p { margin: 0 0 16px; font-size: 14px; color: var(--mute); }
.danger-step { background: #e74c3c !important; }

.profile-info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.profile-info-row:last-child { border-bottom: none; }
.profile-info-label { flex: 1; color: var(--mute); }

.field-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255,255,255,.08);
  color: var(--mute);
}

.btn--danger {
  background: transparent;
  border: 1px solid #e74c3c;
  color: #e74c3c;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.btn--danger:hover { background: rgba(231,76,60,.1); }

.app-sidebar__user-name {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.app-sidebar__user-name:hover { text-decoration: underline; }

/* ── Group import panel (decision form) ──────────── */
.group-import-panel {
  margin-left: auto;
  flex-shrink: 0;
}
.group-import-panel__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  cursor: pointer;
  user-select: none;
  list-style: none;
  padding: 4px 0;
}
.group-import-panel__trigger::-webkit-details-marker { display: none; }
.group-import-panel__trigger::after {
  content: "▾";
  font-size: 11px;
  transition: transform .2s;
}
details[open] .group-import-panel__trigger::after { transform: rotate(-180deg); }
.group-import-panel__count {
  font-size: 11px;
  font-weight: 700;
  background: rgba(99,102,241,0.12);
  color: var(--brand);
  border-radius: 999px;
  padding: 1px 7px;
}
.group-import-panel__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 0 4px;
}
.group-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.group-chip:hover:not(:disabled) {
  border-color: var(--brand);
  background: rgba(99,102,241,0.06);
}
.group-chip:disabled { opacity: 0.6; cursor: default; }
.group-chip__count {
  font-size: 11px;
  font-weight: 600;
  color: var(--mute);
  background: rgba(10,14,26,0.06);
  border-radius: 999px;
  padding: 1px 6px;
}

/* ── Group role selector ─────────────────────────── */
.role-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.role-option {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  cursor: pointer;
  font-size: 13px;
  transition: border-color .15s, background .15s;
}
.role-option input[type="radio"] { margin: 0; }
.role-option:has(input:checked) {
  border-color: var(--brand);
  background: rgba(99,102,241,0.06);
  color: var(--brand);
  font-weight: 600;
}

/* ════════════════════════════════════════════════════
   AUTH — telas pré-login (split editorial)
   Tudo escopado sob .auth/.auth__brand/.auth__form para
   não vazar nas regras globais .field/.btn/.legal/etc.
   ════════════════════════════════════════════════════ */
.auth-body { background: var(--paper); }
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--paper);
}

/* ── Painel de marca ──────────────────────────────── */
.auth__brand {
  background: var(--ink);
  color: var(--paper);
  padding: 40px 56px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
  overflow: hidden;
}
.auth--navy .auth__brand { background: var(--navy); }
.auth__brand::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 800px; height: 800px;
  transform: translate(-30%, -50%);
  background: radial-gradient(circle at 30% 50%, rgba(232,179,58,0.05), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.auth__brand-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}
.auth__brand .logo.auth__wordmark { font-size: 22px; color: var(--paper); letter-spacing: -0.035em; }
.auth__brand .auth__wordmark .logo__mark { width: 20px; height: 20px; gap: 4px; }
.auth__brand .auth__wordmark .logo__mark .bar { height: 4px; background: var(--paper); }
.auth__brand .auth__wordmark .logo__mark .bar--win { background: var(--gold); }
.auth__brand .auth__wordmark .logo__dot { width: 5px; height: 5px; }
.auth__brand-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--paper-3);
  opacity: 0.7;
  text-decoration: none;
  transition: opacity .15s ease;
}
.auth__brand-back:hover { opacity: 1; }
.auth__brand-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  z-index: 2;
}
.auth__eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.auth__quote { max-width: 32ch; }
.auth__quote h1 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(40px, 4.4vw, 60px);
  line-height: 0.98;
  letter-spacing: var(--tracking-tighter);
  color: var(--paper);
}
.auth__quote h1 em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}
.auth__quote .auth__lede {
  color: var(--paper-2);
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.5;
  max-width: 38ch;
}

/* Ornamento de ranking (decoração de marca — exemplo genérico) */
.auth__ranking { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px; }
.auth__ranking-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
}
.auth__ranking-head .meta { color: var(--paper-3); opacity: 0.7; }
.auth__ranking-head .state { color: var(--gold); }
.auth__ranking .rank { display: flex; flex-direction: column; gap: 14px; }
.auth__ranking .rank-row {
  display: grid;
  grid-template-columns: 22px 110px 1fr 52px;
  align-items: center;
  gap: 14px;
}
.auth__ranking .rank-row .pos {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--paper-3);
}
.auth__ranking .rank-row.win .pos { color: var(--gold); }
.auth__ranking .rank-row .label {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 14px;
  color: var(--paper);
}
.auth__ranking .rank-row .track {
  position: relative;
  height: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1px;
  overflow: hidden;
}
.auth__ranking .rank-row .fill {
  position: absolute; inset: 0;
  background: var(--paper-3);
  transform-origin: left;
  animation: auth-grow 1.6s cubic-bezier(.2,.7,.1,1) forwards;
}
.auth__ranking .rank-row.win .fill { background: var(--gold); }
.auth__ranking .rank-row .score {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--paper);
  text-align: right;
}
@keyframes auth-grow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(var(--w)); }
}

/* Value-props (cadastro) */
.auth__values {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.auth__value {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.auth__value:last-child { border-bottom: 0; }
.auth__value svg { color: var(--gold); flex-shrink: 0; }
.auth__value-title { font-family: var(--f-display); font-weight: 500; font-size: 15px; color: var(--paper); }
.auth__value-meta {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--paper-3);
  opacity: 0.65;
  margin-top: 4px;
}

/* ── Lado do formulário ───────────────────────────── */
.auth__form {
  background: var(--paper);
  padding: 40px 56px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.auth__form-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.auth__form-tag {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--mute);
}
.auth__switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--mute);
}
.auth__switch a {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
  text-decoration: none;
}
.auth__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 0;
}
.auth__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 40px;
  line-height: 1.02;
  letter-spacing: var(--tracking-tight);
  margin-bottom: 14px;
  color: var(--ink);
}
.auth__title em { font-family: var(--f-serif); font-style: italic; font-weight: 400; }
.auth__sub { color: var(--ink-soft); font-size: 15px; margin-bottom: 32px; }
.auth__inner .flash { margin-bottom: 24px; }

/* SSO */
.auth__form .sso-row { display: grid; gap: 10px; margin-bottom: 28px; }
.auth__form .sso-row form { margin: 0; width: 100%; }
.auth__form .sso {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px;
  border: 1px solid var(--rule);
  background: var(--white);
  border-radius: 2px;
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .12s ease, transform .12s ease;
}
.auth__form .sso:hover { border-color: var(--ink); transform: translateY(-1px); }
.auth__form .sso::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23EA4335' d='M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z'/%3E%3Cpath fill='%234285F4' d='M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z'/%3E%3Cpath fill='%23FBBC05' d='M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z'/%3E%3Cpath fill='%2334A853' d='M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z'/%3E%3Cpath fill='none' d='M0 0h48v48H0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

/* Divisor */
.auth__form .divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 4px 0 28px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--mute);
}
.auth__form .divider::before,
.auth__form .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

/* Campos (underline-only) */
.auth__form .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.auth__form .field__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.auth__form .field label {
  display: inline;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--mute);
  margin: 0;
}
.auth__form .field__num {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: var(--tracking-wide);
  color: var(--ink);
  opacity: 0.4;
}
.auth__form .field input[type=text],
.auth__form .field input[type=email],
.auth__form .field input[type=password] {
  width: 100%;
  height: auto;
  font-family: var(--f-display);
  font-size: 15px;
  padding: 14px 0 12px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  color: var(--ink);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .15s ease;
}
.auth__form .field input::placeholder { color: var(--mute-light); }
.auth__form .field input:focus {
  border-bottom-color: var(--ink);
  box-shadow: none;
}
.auth__form .field--has-icon { position: relative; }
.auth__form .field--has-icon .ico {
  position: absolute;
  right: 0;
  bottom: 8px;
  display: flex;
  padding: 4px;
  color: var(--mute);
  background: transparent;
  border: 0;
  cursor: pointer;
}
.auth__form .field--has-icon .ico:hover { color: var(--ink); }
.auth__form .field-hint {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: var(--tracking-mono);
  color: var(--mute);
  margin-top: 6px;
}
.auth__form .field-hint strong { color: var(--gold-deep); font-weight: 500; }

/* Medidor de força (progressivo — só aparece com JS) */
.auth__form .strength { display: flex; gap: 4px; margin-top: 10px; }
.auth__form .strength span {
  flex: 1;
  height: 3px;
  background: var(--paper-3);
  border-radius: 1px;
  transition: background .15s ease;
}
.auth__form .strength[data-score="1"] span:nth-child(-n+1),
.auth__form .strength[data-score="2"] span:nth-child(-n+2),
.auth__form .strength[data-score="3"] span:nth-child(-n+3) { background: var(--ink); }
.auth__form .strength[data-score="4"] span { background: var(--gold); }

/* Linha inline (consentimento / esqueci a senha) */
.auth__form .inline-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 8px 0 26px;
  font-size: 13px;
}
.auth__form .check {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
}
.auth__form .check input[type=checkbox] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin: 1px 0 0;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--paper);
  position: relative;
  cursor: pointer;
}
.auth__form .check input[type=checkbox]:checked { background: var(--ink); }
.auth__form .check input[type=checkbox]:checked::after {
  content: "";
  position: absolute;
  left: 4px; top: 1px;
  width: 5px; height: 9px;
  border: solid var(--gold);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.auth__form .check a { color: var(--ink); border-bottom: 1px solid var(--rule); padding-bottom: 1px; text-decoration: none; }
.auth__form .check a:hover { border-bottom-color: var(--ink); }
.auth__form .forgot {
  font-family: var(--f-display);
  font-size: 13px;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
  text-decoration: none;
  white-space: nowrap;
}
.auth__form .forgot:hover { border-bottom-color: var(--ink); }

/* Botão grande */
.auth__form .submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 22px;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  border-radius: 2px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform .12s ease, opacity .12s ease;
}
.auth__form .submit:hover { transform: translateY(-1px); }
.auth__form .submit .arrow { color: var(--gold); transition: transform .15s ease; }
.auth__form .submit:hover .arrow { transform: translateX(3px); }
.auth__form .submit--gold { background: var(--gold); color: var(--navy-deep); }
.auth__form .submit--gold .arrow { color: var(--navy-deep); }

.auth__form .legal {
  margin-top: 20px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--mute);
  line-height: 1.6;
}
.auth__form .legal a { color: var(--ink); border-bottom: 1px solid var(--rule); padding-bottom: 1px; text-decoration: none; }

.auth__form .errors { margin-bottom: 24px; }

/* Rodapé do formulário */
.auth__foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--mute);
}
.auth__foot a { color: var(--ink); border-bottom: 1px solid var(--rule); padding-bottom: 1px; text-decoration: none; }

/* ── Responsivo ───────────────────────────────────── */
@media (max-width: 880px) {
  .auth { grid-template-columns: 1fr; }
  .auth__brand { display: none; }
  .auth__form { padding: 28px 22px; min-height: 100vh; }
  .auth__inner { padding: 24px 0; max-width: 100%; }
  .auth__title { font-size: 32px; }
  .auth__foot { flex-direction: column; gap: 6px; }
}

/* ── Print overrides for result redesign ─────────── */
