/* Prumo Análise — extends landing design system */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(26, 26, 26, 0.06);
}
.app-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}
.app-header .logo { display: inline-flex; align-items: center; gap: 0.35rem; }
.app-header .logo-word {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  color: var(--charcoal);
}
.app-header-meta {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}
.app-header-meta strong { color: var(--teal); font-weight: 700; }

.app-main {
  padding: 1.5rem 0 4rem;
  min-height: calc(100vh - 64px);
  background: linear-gradient(180deg, var(--mint) 0%, var(--white) 180px);
}

/* Progress */
.progress-wrap {
  margin-bottom: 1.75rem;
}
.progress-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.55rem;
  gap: 1rem;
}
.progress-label h1 {
  font-size: clamp(1.25rem, 3vw, 1.55rem);
}
.progress-step-text {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}
.progress-track {
  height: 8px;
  background: var(--mint-2);
  border-radius: var(--pill);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--teal);
  border-radius: var(--pill);
  transition: width 0.35s ease;
  width: 25%;
}
.progress-dots {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}
.progress-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0.25rem 0.65rem;
  border-radius: var(--pill);
  background: var(--white);
  border: 1px solid var(--border);
}
.progress-dot[aria-current="step"] {
  color: var(--teal);
  border-color: var(--teal);
  background: var(--mint);
}
.progress-dot.is-done {
  color: var(--teal-deep);
  border-color: var(--mint-2);
  background: var(--mint);
}
.progress-dot .n {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  background: var(--gray-bg);
  color: var(--muted);
}
.progress-dot[aria-current="step"] .n,
.progress-dot.is-done .n {
  background: var(--teal);
  color: var(--white);
}

/* Narrow: keep dots from overflowing */
@media (max-width: 520px) {
  .progress-label {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  .progress-dots {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.35rem;
    width: 100%;
  }
  .progress-dot {
    justify-content: center;
    padding: 0.3rem 0.25rem;
    font-size: 0.65rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .progress-dot .n {
    flex-shrink: 0;
  }
  /* Hide text labels on very narrow — keep numbers */
  .progress-dot {
    font-size: 0;
    gap: 0;
  }
  .progress-dot .n {
    font-size: 0.7rem;
    width: 1.4rem;
    height: 1.4rem;
  }
}
@media (min-width: 521px) and (max-width: 720px) {
  .progress-dots {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.15rem;
  }
  .progress-dots::-webkit-scrollbar { display: none; }
  .progress-dot { flex: 0 0 auto; white-space: nowrap; }
}

/* Panels */
.panel {
  display: none;
  animation: fadeIn 0.28s ease;
}
.panel.is-active { display: block; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.panel-card {
  background: var(--white);
  border: 1px solid rgba(26, 26, 26, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}
@media (min-width: 720px) {
  .panel-card { padding: 2rem; }
}
.panel-lead {
  color: var(--muted);
  margin: 0.5rem 0 1.35rem;
  max-width: 38rem;
}
.panel-title {
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
}

/* Goal cards */
.goal-grid {
  display: grid;
  gap: 0.85rem;
}
@media (min-width: 720px) {
  .goal-grid { grid-template-columns: repeat(3, 1fr); }
}
.goal-card {
  text-align: left;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.1rem;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
  color: var(--charcoal);
}
.goal-card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
}
.goal-card:focus-visible {
  outline: 3px solid var(--indigo);
  outline-offset: 2px;
}
.goal-card[aria-pressed="true"],
.goal-card.is-selected {
  border-color: var(--teal);
  background: var(--mint);
}
.goal-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--mint);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}
.goal-card.is-selected .goal-icon {
  background: var(--teal);
  color: var(--white);
}
.goal-card strong {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}
.goal-card span {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Dropzone */
.dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  text-align: center;
  background: var(--gray-bg);
  transition: border-color 0.15s, background 0.15s;
  cursor: pointer;
}
.dropzone.is-dragover {
  border-color: var(--teal);
  background: var(--mint);
}
.dropzone:focus-within {
  outline: 3px solid var(--indigo);
  outline-offset: 2px;
}
.dropzone-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.75rem;
  border-radius: 12px;
  background: var(--mint);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
}
.dropzone strong { display: block; margin-bottom: 0.25rem; }
.dropzone p { color: var(--muted); font-size: 0.9rem; }
.dropzone .file-name {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal);
}
.dropzone input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.or-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.15rem 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.or-divider::before,
.or-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}
.field .hint {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.8rem;
}
.field input[type="text"],
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--charcoal);
  resize: vertical;
  transition: border-color 0.15s;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 81, 73, 0.12);
}
.field textarea { min-height: 140px; line-height: 1.5; }
.field-error {
  color: var(--maroon);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.4rem;
  display: none;
}
.field-error.is-visible { display: block; }

.sample-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--charcoal);
  border-radius: var(--pill);
  padding: 0.55rem 1rem;
  font-family: inherit;
  font-weight: 650;
  font-size: 0.85rem;
  cursor: pointer;
}
.btn-ghost:hover { background: var(--mint); border-color: var(--teal); color: var(--teal); }
.btn-ghost:focus-visible {
  outline: 3px solid var(--indigo);
  outline-offset: 2px;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
  align-items: center;
}
.panel-actions .spacer { flex: 1; }

.notice {
  background: var(--mint);
  border: 1px solid var(--mint-2);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  color: var(--charcoal-soft);
  margin-top: 1rem;
}
.notice strong { color: var(--teal); }

/* Analyzing */
.analyzing {
  text-align: center;
  padding: 2.5rem 1rem;
}
.loader {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  border: 4px solid var(--mint-2);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.analyzing h2 { margin-bottom: 0.5rem; }
.analyzing-status {
  color: var(--muted);
  font-weight: 600;
  min-height: 1.5em;
}
.analyzing-disclaimer {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 28rem;
  margin-inline: auto;
}

/* Results */
.results-layout {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 900px) {
  .results-layout {
    grid-template-columns: 320px 1fr;
    align-items: start;
  }
}
.score-card {
  background: var(--white);
  border: 1px solid rgba(26, 26, 26, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.75rem 1.5rem;
  text-align: center;
  position: sticky;
  top: 80px;
}
.score-ring-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 1rem;
}
.score-ring-wrap svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-ring-bg { fill: none; stroke: var(--gray-bg); stroke-width: 10; }
.score-ring-fg {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.1s cubic-bezier(0.22, 1, 0.36, 1), stroke 0.3s;
}
.score-ring-value {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: none;
}
.score-ring-value .num {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.score-ring-value .of {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}
.score-label {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}
.score-summary {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.score-card .btn { width: 100%; margin-bottom: 0.5rem; }
.score-card .btn + .btn { margin-bottom: 0; }

.results-col { display: grid; gap: 1.25rem; }

.section-card {
  background: var(--white);
  border: 1px solid rgba(26, 26, 26, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.35rem 1.35rem 1.15rem;
}
.section-card h3 {
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.breakdown-row {
  display: grid;
  grid-template-columns: 110px 1fr 40px;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 0.7rem;
  font-size: 0.88rem;
}
.breakdown-row span:first-child { font-weight: 600; color: var(--charcoal-soft); }
.breakdown-row .val { font-weight: 700; text-align: right; color: var(--teal); }
.bar-track {
  height: 12px;
  background: var(--gray-bg);
  border-radius: var(--pill);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.06);
}
.bar-fill {
  height: 100%;
  width: 0;
  border-radius: var(--pill);
  background: var(--teal);
  transition: width 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--i, 0) * 0.07s);
}

.issues-list { display: grid; gap: 0.65rem; }
.issue {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  padding: 0.85rem 0.95rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
}
.issue-sev {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.25rem 0.5rem;
  border-radius: var(--pill);
  height: fit-content;
  white-space: nowrap;
}
.issue-sev.critico { background: #fde8e8; color: var(--maroon); }
.issue-sev.atencao { background: #fff3d6; color: #8a6400; }
.issue-sev.dica { background: var(--mint); color: var(--teal); }
.issue strong { display: block; font-size: 0.92rem; margin-bottom: 0.2rem; }
.issue p { font-size: 0.85rem; color: var(--muted); }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.chip {
  font-size: 0.8rem;
  font-weight: 650;
  padding: 0.35rem 0.7rem;
  border-radius: var(--pill);
  border: 1px solid transparent;
}
.chip.matched {
  background: var(--mint);
  color: var(--teal);
  border-color: var(--mint-2);
}
.chip.missing {
  background: #fdecea;
  color: #b33a2b;
  border-color: #f5c4bc;
}
.chip.ok {
  background: var(--mint);
  color: var(--teal);
  border-color: var(--mint-2);
}
.chip.warn {
  background: #fff4e5;
  color: #9a5b00;
  border-color: #f5d9a8;
}
.chip.risk {
  background: #fdecea;
  color: #b33a2b;
  border-color: #f5c4bc;
}
.ats-parse-risk {
  margin-bottom: 0.65rem;
}
.score-honesty {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--muted);
  max-width: 22rem;
}
.chips-group { margin-bottom: 1rem; }
.chips-group:last-child { margin-bottom: 0; }
.chips-group h4 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}
.empty-hint {
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
}

.honest-banner {
  background: var(--mint);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  color: var(--charcoal-soft);
  border: 1px solid var(--mint-2);
}
.honest-banner strong { color: var(--teal); }

/* Soft gate modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.45);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.modal-backdrop.is-open { display: flex; }
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 420px;
  width: 100%;
  padding: 1.75rem 1.5rem;
  position: relative;
}
.modal h3 { margin-bottom: 0.5rem; font-size: 1.2rem; }
.modal p { color: var(--muted); font-size: 0.92rem; margin-bottom: 1.15rem; }
.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: none;
  background: var(--gray-bg);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--charcoal);
}
.modal-close:focus-visible {
  outline: 3px solid var(--indigo);
  outline-offset: 2px;
}
.modal .field { margin-bottom: 0.85rem; }
.modal-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.85rem;
  text-align: center;
}

.app-footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid rgba(26, 26, 26, 0.06);
}
.app-footer a { color: var(--teal); font-weight: 650; text-decoration: underline; text-underline-offset: 2px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.score-tone-red .num,
.score-tone-red .score-label { color: var(--maroon); }
.score-tone-amber .num,
.score-tone-amber .score-label { color: #b8860b; }
.score-tone-teal .num,
.score-tone-teal .score-label { color: var(--teal); }


/* --- Upgrades: checklist, ATS preview, optimize panel, print --- */
.char-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}
.char-warn {
  color: #8a6400;
  font-weight: 650;
}

.keyword-match-big {
  background: var(--mint);
  border: 1px solid var(--mint-2);
  border-radius: var(--radius);
  padding: 0.85rem 0.75rem;
  margin-bottom: 1rem;
}
.keyword-match-num {
  display: block;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.keyword-match-label {
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.now-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}
.now-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--gray-bg);
  font-size: 0.88rem;
}
.now-item.now-ok {
  grid-template-columns: 1fr;
  background: var(--mint);
  border-color: var(--mint-2);
  color: var(--teal);
  font-weight: 650;
}

.path100-lead {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--charcoal-soft);
  line-height: 1.45;
}
.path100-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
}
.path100-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: start;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--gray-bg);
  font-size: 0.86rem;
}
.path100-mark {
  font-weight: 800;
  color: var(--teal);
  line-height: 1.3;
}
.path100-item.path100-ok {
  background: var(--mint);
  border-color: var(--mint-2);
}
.path100-item.path100-gap {
  background: #fff;
  border-color: #e8d9a8;
}
.path100-item.path100-gap .path100-mark { color: #b8860b; }
.path100-tip {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: var(--charcoal-soft);
  line-height: 1.4;
  font-weight: 500;
}
.goodbad-details {
  border: none;
}
.goodbad-details > summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--teal);
  list-style: none;
  padding: 0.15rem 0;
}
.goodbad-details > summary::-webkit-details-marker { display: none; }
.goodbad-details > summary::before {
  content: "▸ ";
  color: var(--teal);
}
.goodbad-details[open] > summary::before { content: "▾ "; }
.goodbad-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-top: 0.85rem;
}
@media (max-width: 720px) {
  .goodbad-grid { grid-template-columns: 1fr; }
}
.goodbad-col {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 0.85rem;
  background: var(--gray-bg);
}
.goodbad-col h4 {
  margin: 0 0 0.45rem;
  font-size: 0.88rem;
  color: var(--teal);
}
.goodbad-bad h4 { color: var(--maroon); }
.goodbad-col ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--charcoal-soft);
}
.goodbad-col li { margin-bottom: 0.35rem; }
.goodbad-note {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  color: var(--charcoal-soft);
  line-height: 1.4;
}

.priority-badge {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.45rem;
  border-radius: var(--pill);
  height: fit-content;
  white-space: nowrap;
}
.priority-badge.P0 { background: #fde8e8; color: var(--maroon); }
.priority-badge.P1 { background: #fff3d6; color: #8a6400; }
.priority-badge.P2 { background: var(--mint); color: var(--teal); }

.issue-badges {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-start;
}
.issue-body { min-width: 0; }

.fix-toggle {
  margin-top: 0.45rem;
  background: transparent;
  border: none;
  color: var(--teal);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.fix-toggle:focus-visible {
  outline: 3px solid var(--indigo);
  outline-offset: 2px;
}
.fix-toggle::after { content: " ▾"; }
.fix-toggle.is-open::after { content: " ▴"; }
.fix-panel {
  margin-top: 0.5rem;
  background: var(--mint);
  border: 1px solid var(--mint-2);
  border-radius: var(--radius);
  padding: 0.75rem 0.85rem;
}
.fix-example {
  margin: 0;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--charcoal);
}

.ats-tokens {
  font-size: 0.85rem;
  color: var(--charcoal-soft);
  line-height: 1.5;
  margin-bottom: 0.75rem;
  word-break: break-word;
}

.panel-otimizado .badge-heuristic {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #fff3d6;
  color: #8a6400;
  padding: 0.2rem 0.5rem;
  border-radius: var(--pill);
  vertical-align: middle;
  margin-left: 0.35rem;
}
.opt-disclaimer {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
}
.opt-disclaimer code {
  font-size: 0.8rem;
  background: var(--gray-bg);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}
.opt-score-delta {
  background: var(--mint);
  border: 1px solid var(--mint-2);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.opt-score-delta .score-before { font-weight: 800; color: var(--maroon); }
.opt-score-delta .score-after { font-weight: 800; color: var(--teal); font-size: 1.15rem; }
.score-delta-note { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 0.25rem; font-weight: 500; }

.opt-compare {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}
@media (min-width: 800px) {
  .opt-compare { grid-template-columns: 1fr 1fr; }
}
.opt-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.opt-pre {
  margin: 0;
  max-height: 360px;
  overflow: auto;
  padding: 0.85rem 1rem;
  background: var(--gray-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}
.opt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.opt-actions .btn { width: auto; margin: 0; }
.opt-copy-status {
  font-size: 0.85rem;
  color: var(--teal);
  font-weight: 650;
  margin: 0.35rem 0 0.75rem;
}
.opt-waitlist-row {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border);
}

.breakdown-row {
  grid-template-columns: 120px 1fr 40px;
}

/* ---- Editor de currículo ---- */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.editor-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
}
.editor-tab {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  border-radius: var(--pill);
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.editor-tab:hover {
  border-color: var(--teal);
  color: var(--teal);
}
.editor-tab.is-active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.editor-tab:focus-visible {
  outline: 3px solid var(--indigo);
  outline-offset: 2px;
}

.editor-insert-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}
.editor-insert-label {
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.btn-chip {
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.28rem 0.55rem;
  border-radius: var(--pill);
  border: 1px solid var(--mint-2);
  background: var(--mint);
  color: var(--teal);
  cursor: pointer;
}
.btn-chip:hover {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

.opt-textarea {
  width: 100%;
  min-height: 360px;
  max-height: 560px;
  resize: vertical;
  padding: 0.85rem 1rem;
  background: var(--gray-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--charcoal);
  box-sizing: border-box;
}
.opt-textarea:focus {
  outline: 3px solid rgba(0, 81, 73, 0.25);
  border-color: var(--teal);
  background: #fff;
}

.editor-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.45rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.opt-live-score {
  font-weight: 700;
  color: var(--teal);
}
.opt-live-score.is-muted { color: var(--muted); font-weight: 550; }

.cv-preview-wrap {
  background: #e8efee;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  max-height: 560px;
  overflow: auto;
}

/* Clean résumé paper — teal accents, no yellow pills in body */
.cv-preview {
  background: #fff;
  color: #1a1a1a;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 11pt;
  line-height: 1.45;
  max-width: 210mm;
  margin: 0 auto;
  padding: 18mm 16mm 16mm;
  box-shadow: 0 4px 24px rgba(0, 40, 36, 0.12);
  position: relative;
  box-sizing: border-box;
}
.cv-preview::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: #005149;
}
.cv-preview .cv-name {
  font-size: 18pt;
  font-weight: 800;
  color: #005149;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.cv-preview .cv-contact {
  font-size: 9.5pt;
  color: #3d4a48;
  margin: 0 0 1.1rem;
  line-height: 1.4;
}
.cv-preview .cv-section {
  margin: 0 0 0.95rem;
  page-break-inside: avoid;
}
.cv-preview .cv-section-title {
  font-size: 10.5pt;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #005149;
  border-bottom: 1.5px solid #005149;
  padding-bottom: 0.2rem;
  margin: 0 0 0.45rem;
}
.cv-preview .cv-body {
  font-size: 10.5pt;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  color: #222;
}
.cv-preview .cv-body p {
  margin: 0 0 0.35rem;
}
.cv-preview .cv-footer-note {
  margin-top: 1.25rem;
  padding-top: 0.5rem;
  border-top: 1px dashed #c5d4d1;
  font-size: 8pt;
  color: #6a7a77;
}

.cv-preview-pdf-root {
  position: fixed;
  left: -10000px;
  top: 0;
  width: 210mm;
  pointer-events: none;
  opacity: 1;
  z-index: -1;
}
.cv-preview--pdf {
  box-shadow: none;
  width: 210mm;
  min-height: 297mm;
  padding: 16mm 15mm 18mm;
}


@media (max-width: 799px) {
  .opt-col-original { display: none; }
}


/* ---- Templates ---- */
.template-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}
.template-chip.is-active,
.jd-chip.is-active,
.btn-chip.is-active {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

/* Classic = ATS puro: no top bar, stark headers */
.cv-preview--classic::before {
  display: none;
}
.cv-preview--classic {
  padding-top: 14mm;
}
.cv-preview--classic .cv-name {
  color: #111;
  font-size: 17pt;
}
.cv-preview--classic .cv-section-title {
  color: #111;
  border-bottom-color: #222;
  letter-spacing: 0.08em;
}

/* Modern = barra teal (default look) */
.cv-preview--modern::before {
  display: block;
  height: 6px;
  background: #005149;
}
.cv-preview--modern .cv-name,
.cv-preview--modern .cv-section-title {
  color: #005149;
}
.cv-preview--modern .cv-section-title {
  border-bottom-color: #005149;
}

/* Compact = denser */
.cv-preview--compact {
  font-size: 10pt;
  line-height: 1.32;
  padding: 12mm 12mm 12mm;
}
.cv-preview--compact::before {
  height: 4px;
  background: #005149;
}
.cv-preview--compact .cv-name {
  font-size: 15pt;
  margin-bottom: 0.2rem;
  color: #005149;
}
.cv-preview--compact .cv-contact {
  font-size: 8.5pt;
  margin-bottom: 0.65rem;
}
.cv-preview--compact .cv-section {
  margin-bottom: 0.55rem;
}
.cv-preview--compact .cv-section-title {
  font-size: 9.5pt;
  margin-bottom: 0.25rem;
  padding-bottom: 0.12rem;
  color: #005149;
  border-bottom-color: #005149;
}
.cv-preview--compact .cv-body,
.cv-preview--compact .cv-body p {
  font-size: 9.5pt;
  margin-bottom: 0.2rem;
}
.cv-preview--compact .cv-footer-note {
  font-size: 7.5pt;
  margin-top: 0.75rem;
}

/* ---- History ---- */
.history-wrap {
  position: relative;
  margin: 0.65rem 0 0.35rem;
  width: 100%;
}
.btn-history {
  width: 100%;
}
.history-panel {
  margin-top: 0.45rem;
  padding: 0.65rem 0.7rem;
  background: var(--mint, #e9f3f3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: left;
  max-height: 280px;
  overflow: auto;
}
.history-empty {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.history-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  width: 100%;
  text-align: left;
  font-family: inherit;
  font-size: 0.8rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  border: 1px solid var(--mint-2, #c5d4d1);
  background: #fff;
  color: var(--charcoal);
  cursor: pointer;
}
.history-item:hover {
  border-color: var(--teal);
  background: #f7fbfa;
}
.history-item-top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--teal);
}
.history-item-meta {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.75rem;
}

#btn-opt-pdf-ats:disabled,
#btn-opt-pdf:disabled {
  opacity: 0.65;
  cursor: wait;
}


/* ---- Sample JD chips ---- */
.jd-samples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 1.15rem;
}
.jd-samples-label {
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  width: 100%;
}
@media (min-width: 520px) {
  .jd-samples-label { width: auto; }
}
.jd-chip,
.btn-chip,
.template-chip,
.history-item {
  min-height: 44px;
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
  touch-action: manipulation;
}
.template-chip,
.editor-insert-row .btn-chip {
  min-height: 40px;
}
.history-item {
  padding: 0.65rem 0.75rem;
}
.history-empty {
  padding: 0.35rem 0.15rem 0.5rem;
  line-height: 1.45;
}
.history-panel:focus-visible,
.panel-otimizado:focus-visible {
  outline: 3px solid rgba(0, 81, 73, 0.35);
  outline-offset: 2px;
}

/* Mobile editor / compare polish */
@media (max-width: 799px) {
  .opt-compare {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }
  .opt-col,
  .opt-col-original,
  .opt-editor-col {
    min-width: 0;
    max-width: 100%;
  }
  .opt-col-original .diff-legend {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .opt-pre,
  .opt-pre-diff {
    max-height: 220px;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .opt-textarea {
    min-height: 280px;
    max-height: 50vh;
    font-size: 16px; /* avoid iOS zoom */
    max-width: 100%;
  }
  .cv-preview-wrap {
    max-height: 55vh;
    padding: 0.65rem;
  }
  .template-row,
  .editor-insert-row {
    gap: 0.45rem;
  }
  .opt-actions {
    gap: 0.45rem;
  }
  .opt-actions .btn {
    flex: 1 1 calc(50% - 0.45rem);
    min-height: 44px;
    justify-content: center;
  }
  #btn-opt-pdf-ats {
    flex: 1 1 100%;
  }
  .app-main {
    padding-bottom: 5.5rem;
  }
  .results-layout {
    gap: 1rem;
  }
  .score-card {
    position: static;
  }
}

/* Sticky bottom actions (mobile) */
.sticky-actions {
  display: none;
}
@media (max-width: 799px) {
  .sticky-actions {
    display: flex;
    gap: 0.5rem;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    padding: 0.65rem 0.85rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(26, 26, 26, 0.08);
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.06);
  }
  .sticky-actions[hidden] {
    display: none !important;
  }
  .sticky-actions .btn {
    flex: 1;
    margin: 0;
    min-height: 48px;
    width: auto;
  }
  /* Hide duplicate primary in score card when sticky is up — keep edit/again */
  body.has-sticky-result #btn-optimize {
    display: none;
  }
  body.has-sticky-editor #btn-opt-pdf-ats {
    /* keep in list too for desktop-like scroll access; sticky mirrors */
  }
}

@media print {
  .sticky-actions,
  .jd-samples {
    display: none !important;
  }
}

@media print {
  .app-header,
  .app-footer,
  .progress-wrap,
  .print-hide,
  .modal-backdrop,
  #btn-optimize,
  #btn-edit-resume,
  #btn-again,
  .opt-actions,
  .opt-waitlist-row,
  .fix-toggle,
  .sample-row,
  .panel-actions,
  .skip-link,
  .editor-tabs,
  .editor-insert-row,
  .editor-meta,
  #editor-pane-edit,
  .opt-col-original,
  .opt-disclaimer,
  .opt-score-delta,
  .honest-banner,
  #checklist-card,
  #ats-preview-card,
  .cv-preview-pdf-root {
    display: none !important;
  }
  .app-main {
    background: white;
    padding: 0;
    min-height: 0;
  }
  .score-card {
    position: static;
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
  .section-card {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
  .panel-otimizado {
    display: block !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  .panel-otimizado > h3 { display: none !important; }
  #editor-pane-preview {
    display: block !important;
  }
  .cv-preview-wrap {
    background: transparent;
    border: none;
    padding: 0;
    max-height: none;
    overflow: visible;
  }
  .cv-preview {
    box-shadow: none;
    max-width: none;
    padding: 0;
  }
  .cv-preview::before {
    height: 4px;
  }
  .opt-pre { max-height: none; overflow: visible; }
  .results-layout { display: block; }
  .results-col > .section-card:not(.panel-otimizado) { display: none !important; }
  .score-card { display: none !important; }
  a[href]::after { content: ""; }
}


/* --- Batch 3: share / print results / breakdown polish --- */
.share-cluster {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0 0 0.9rem;
  padding: 0.65rem 0.7rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(233, 243, 243, 0.55);
}
.share-cluster-title {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.share-actions {
  display: grid;
  gap: 0.4rem;
  margin: 0;
}
.share-actions .btn {
  width: 100%;
  margin: 0;
  font-size: 0.82rem;
  padding: 0.55rem 0.75rem;
  white-space: normal;
  line-height: 1.25;
}
.share-status {
  font-size: 0.8rem;
  color: var(--teal);
  font-weight: 700;
  margin: 0;
  text-align: center;
  min-height: 1.15em;
}
.share-status.is-visible {
  animation: share-toast-in 0.18s ease-out;
}
@keyframes share-toast-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.breakdown-label { font-weight: 600; color: var(--charcoal-soft); }
.breakdown-row {
  display: grid;
  grid-template-columns: 120px 1fr 40px;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 0.85rem;
  font-size: 0.88rem;
}
.print-results-banner {
  display: none;
  background: #f3f7f6;
  border: 1px solid rgba(0,81,73,0.2);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}
.print-results-banner strong { display: block; color: var(--teal); margin-bottom: 0.2rem; }

@media print {
  body.print-results .print-results-banner {
    display: block !important;
  }
  body.print-results .app-header,
  body.print-results .app-footer,
  body.print-results .progress-wrap,
  body.print-results .print-hide,
  body.print-results .share-cluster,
  body.print-results .share-actions,
  body.print-results .history-wrap,
  body.print-results #btn-optimize,
  body.print-results #btn-edit-resume,
  body.print-results #btn-again,
  body.print-results .sticky-actions,
  body.print-results .opt-actions,
  body.print-results .opt-waitlist-row,
  body.print-results .panel-otimizado,
  body.print-results .cv-preview-pdf-root,
  body.print-results .modal-backdrop {
    display: none !important;
  }
  body.print-results .score-card {
    display: block !important;
    position: static !important;
    box-shadow: none !important;
    border: 1px solid #ccc !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  body.print-results .results-layout { display: block !important; }
  body.print-results .results-col > .section-card {
    display: block !important;
    box-shadow: none !important;
    border: 1px solid #ccc !important;
    break-inside: avoid;
  }
  body.print-results .honest-banner { display: none !important; }
  body.print-results .bar-fill {
    transition: none !important;
    /* ensure bars paint at target width when printing */
  }
  body.print-results .fix-toggle,
  body.print-results .fix-panel { display: none !important; }
  body.print-cv .score-card,
  body.print-cv .results-col > .section-card:not(.panel-otimizado) {
    display: none !important;
  }
}


/* Line diff (original vs otimizado) */
.diff-legend {
  font-size: 0.78rem;
  color: var(--muted);
  margin: -0.35rem 0 0.55rem;
  line-height: 1.35;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.diff-swatch {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 2px;
  vertical-align: -0.1rem;
  margin-right: 0.15rem;
}
.diff-swatch-removed { background: #f3d6de; border: 1px solid #c97a90; }
.opt-pre-diff .diff-line {
  display: block;
  white-space: pre-wrap;
  word-break: break-word;
  border-radius: 3px;
  padding: 0 0.2rem;
}
.opt-pre-diff .diff-removed {
  background: rgba(121, 30, 63, 0.08);
  color: #6b3a4a;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.opt-pre-diff .diff-added {
  background: rgba(0, 81, 73, 0.1);
  color: var(--teal);
}


button.chip.chip-copy {
  font: inherit;
  cursor: pointer;
  appearance: none;
}
button.chip.chip-copy:hover,
button.chip.chip-copy:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
button.chip.chip-copy.is-copied {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}


@media (prefers-reduced-motion: reduce) {
  .score-ring-fg,
  .bar-fill,
  .progress-fill {
    transition: none !important;
  }
}


.history-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  height: 72px;
  margin: 0 0 0.75rem;
  padding: 0.35rem 0.25rem 0;
  border-bottom: 1px dashed var(--border);
}
.history-chart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 0.2rem;
  min-width: 0;
}
.history-chart-bar {
  width: 100%;
  max-width: 28px;
  border-radius: 4px 4px 2px 2px;
  min-height: 4px;
}
.history-chart-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--muted);
}

.keywords-hint {
  font-size: 0.82rem;
  color: var(--muted);
  margin: -0.35rem 0 0.85rem;
  line-height: 1.4;
}

.history-chart-wrap {
  margin: 0 0 0.55rem;
}
.history-chart-caption {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.history-chart-hint {
  margin: 0 0 0.55rem;
  padding: 0.45rem 0.55rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--muted);
  background: rgba(255,255,255,0.65);
  border: 1px dashed var(--border);
  border-radius: 6px;
}
.history-chart-hint strong { color: var(--teal); }
.keyword-copy-status {
  font-size: 0.82rem;
  color: var(--teal);
  font-weight: 700;
  margin: -0.15rem 0 0.65rem;
  min-height: 1.2em;
}



.extract-honesty {
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Dual scores (Prontidão × Match) — open-ATS inspired */
.dual-scores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin: 0.85rem 0 0.35rem;
  width: 100%;
  max-width: 22rem;
}
.dual-score-item {
  background: var(--mint);
  border: 1px solid var(--mint-2);
  border-radius: 12px;
  padding: 0.55rem 0.65rem;
  text-align: center;
}
.dual-score-num {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1.1;
}
.dual-score-label {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--charcoal-soft);
  line-height: 1.25;
}

/* Como calculamos */
.how-score-details {
  margin-top: 0.85rem;
  border-top: 1px solid var(--mint-2);
  padding-top: 0.55rem;
}
.how-score-details > summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--teal);
  list-style: none;
}
.how-score-details > summary::-webkit-details-marker { display: none; }
.how-score-details > summary::before { content: "▸ "; }
.how-score-details[open] > summary::before { content: "▾ "; }
.how-we-score { margin-top: 0.55rem; }
.how-score-arith {
  background: var(--mint);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  margin-bottom: 0.55rem;
}
.how-score-arith code {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--teal);
}
.how-score-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  color: var(--charcoal-soft);
  line-height: 1.45;
}
.how-score-list li { margin-bottom: 0.35rem; }
.how-score-disclaimer {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}

/* Keyword chips: inferred / injectable tags */
.chip.inferred {
  background: #e8f4f2;
  color: #0a6b5f;
  border-color: #b7ddd6;
  border-style: dashed;
}
.chip .chip-tag {
  display: inline-block;
  margin-left: 0.25rem;
  font-size: 0.65rem;
  font-weight: 700;
  opacity: 0.85;
}
.chip-injectable { border-color: #7ebfb4; }
.chip-confirm { border-style: dashed; }

/* IA opcional panel */
.llm-settings {
  margin: 1rem 0 0.25rem;
  padding: 0.75rem 0.9rem;
  background: var(--mint);
  border: 1px solid var(--mint-2);
  border-radius: 14px;
}
.llm-settings > summary {
  cursor: pointer;
  font-weight: 750;
  color: var(--teal);
  list-style: none;
}
.llm-settings > summary::-webkit-details-marker { display: none; }
.llm-privacy, .llm-hint, .llm-cors-note {
  font-size: 0.82rem;
  color: var(--charcoal-soft);
  line-height: 1.4;
  margin: 0.55rem 0;
}
.llm-cors-note code, .llm-privacy code, .llm-hint code {
  font-size: 0.78rem;
  background: #fff;
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
}
.llm-fields .field { margin-bottom: 0.55rem; }

/* Toast */
.prumo-toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%) translateY(120%);
  background: var(--teal);
  color: #fff;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 650;
  z-index: 9999;
  box-shadow: 0 8px 24px rgba(0, 81, 73, 0.25);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  max-width: min(92vw, 28rem);
  text-align: center;
  pointer-events: none;
}
.prumo-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
