/* corre. — camada de design system e refinamentos de produção */
:root {
  --brand-950: #0b332c;
  --brand-900: #0e5144;
  --brand-800: #176b5b;
  --brand-700: #1f7d69;
  --brand-100: #e1f2ed;
  --brand-50: #f1f8f6;
  --accent-600: #b68116;
  --accent-500: #d7a537;
  --neutral-950: #182026;
  --neutral-800: #35434c;
  --neutral-600: #63707a;
  --neutral-300: #ccd5da;
  --neutral-200: #dfe5e9;
  --neutral-100: #eef2f5;
  --neutral-50: #f7f8fa;
  --focus-ring: #1f7d69;
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
}

/* Foco consistente para teclado sem alterar o clique por mouse. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

:where(input, select, textarea):focus-visible {
  outline: none;
  border-color: var(--brand-800);
  box-shadow: 0 0 0 3px rgba(23, 107, 91, .16);
}

.button { min-height: 42px; padding: 9px 16px; }
.button-small { min-height: 34px; padding: 6px 11px; }

/* Destaque comprado nunca usa a mesma linguagem visual dos selos de verificação. */
.boost-pill {
  background: #fff6db !important;
  color: #78550c !important;
  border-color: #ebcf7b !important;
}

/* Painel profissional orientado a ações. */
.professional-dashboard-hero { background: linear-gradient(180deg, #fff 0%, var(--brand-50) 100%); }
.professional-dashboard-section { padding-top: 44px; }
.professional-command-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 20px;
  margin-bottom: 20px;
}
.profile-progress-card,
.attention-card { box-shadow: 0 10px 32px rgba(24, 32, 38, .06); }
.profile-progress-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.profile-progress-head h2 { margin: 2px 0 0; font-size: clamp(1.7rem, 3vw, 2.35rem); }
.profile-progress-head > strong {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--brand-50);
  border: 1px solid #cbe4dc;
  color: var(--brand-900);
  font-size: 1.05rem;
}
.profile-progress-track, .progress-track { width: 100%; appearance: none; -webkit-appearance: none; border: 0; overflow: hidden; background: var(--neutral-100); }
.profile-progress-track { height: 10px; margin: 18px 0 14px; border-radius: 999px; }
.progress-track { height: 9px; margin-bottom: 18px; border-radius: 999px; }
.profile-progress-track::-webkit-progress-bar, .progress-track::-webkit-progress-bar { background: var(--neutral-100); border-radius: 999px; }
.profile-progress-track::-webkit-progress-value, .progress-track::-webkit-progress-value { background: linear-gradient(90deg, var(--brand-800), var(--brand-700)); border-radius: 999px; }
.profile-progress-track::-moz-progress-bar, .progress-track::-moz-progress-bar { background: linear-gradient(90deg, var(--brand-800), var(--brand-700)); border-radius: 999px; }
.profile-progress-card > p { color: var(--muted); margin: 0 0 18px; max-width: 720px; }
.profile-signal-row { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 18px; }
.profile-signal-row span { padding: 7px 10px; border-radius: 9px; background: var(--surface-2); color: var(--muted); font-size: .82rem; }
.profile-signal-row strong { color: var(--text); }
.section-heading.compact { margin-bottom: 14px; }
.attention-list { display: grid; gap: 8px; }
.attention-list > a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.attention-list > a:hover { color: var(--text); border-color: #b7d8cf; transform: translateY(-1px); box-shadow: 0 7px 20px rgba(24, 32, 38, .06); }
.attention-list strong,
.attention-list small { display: block; }
.attention-list small { margin-top: 2px; color: var(--muted); line-height: 1.35; }
.attention-number { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-100); color: var(--brand-900); font-weight: 850; font-size: .82rem; }
.professional-dashboard-stats { grid-template-columns: repeat(4, 1fr); margin-bottom: 18px; }
.professional-dashboard-stats > a {
  display: flex;
  min-height: 112px;
  flex-direction: column;
  justify-content: center;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.professional-dashboard-stats > a:hover { color: var(--text); transform: translateY(-2px); border-color: #b7d8cf; box-shadow: 0 8px 24px rgba(24, 32, 38, .06); }
.professional-dashboard-stats strong { font-size: clamp(1.65rem, 3vw, 2.15rem); letter-spacing: -.035em; }
.professional-dashboard-stats span { color: var(--muted); font-size: .88rem; }
.professional-activity-grid { grid-template-columns: minmax(0, 1.55fr) minmax(280px, .65fr); align-items: start; }
.professional-recent-list > a { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.professional-recent-list > a > span:first-child { min-width: 0; }
.professional-quick-actions { position: sticky; top: 92px; }
.professional-quick-actions h2 { margin-top: 4px; }
.quick-action-note { margin: 14px 0 0; color: var(--muted); font-size: .88rem; }

/* Navegação interna do editor profissional. */
.profile-editor-index {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 0 16px;
  padding: 4px 2px 10px;
  scrollbar-width: thin;
}
.profile-editor-index a {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--neutral-800);
  font-size: .82rem;
  font-weight: 750;
}
.profile-editor-index a:hover { background: var(--brand-50); border-color: #b7d8cf; color: var(--brand-900); }
.form-section[id] { scroll-margin-top: 96px; }

/* Menos ruído visual em telas pequenas. */
@media (max-width: 900px) {
  .professional-command-grid,
  .professional-activity-grid { grid-template-columns: 1fr; }
  .professional-dashboard-stats { grid-template-columns: repeat(2, 1fr); }
  .professional-quick-actions { position: static; }
}

@media (max-width: 620px) {
  .professional-dashboard-section { padding-top: 28px; }
  .professional-dashboard-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .professional-dashboard-stats > a { min-height: 96px; padding: 14px; }
  .profile-progress-head > strong { width: 56px; height: 56px; }
  .profile-signal-row { display: grid; grid-template-columns: 1fr; }
  .attention-list > a { grid-template-columns: auto 1fr; }
  .attention-list > a > span:last-child { display: none; }
}
