/* ==========================================================
   app.css — Design system da plataforma Ciclos de UX
   Compartilhado por todas as páginas da plataforma.
   ========================================================== */

/* --- Tokens ----------------------------------------------- */
:root {
  /* Marca */
  --brand:        #1bacb6;
  --brand-dark:   #145d8e;
  --brand-darker: #0a2543;
  --brand-soft:   #eff6ff;
  --brand-border: #bfdbfe;
  --accent:       #dd3a81;

  /* Semântica compartilhada de UI */
  --primary:      var(--brand);
  --primary-dark: var(--brand-dark);
  --primary-soft: var(--brand-soft);
  --primary-border: var(--brand-border);

  /* Feedback */
  --success:      #05965a;
  --success-soft: #ecfdf5;
  --success-border:#6ee7b7;
  --warning:      #d97706;
  --warning-soft: #fffbeb;
  --danger:       #dc2626;
  --danger-soft:  #fef2f2;
  --danger-border:#fca5a5;

  /* Neutros */
  --bg:           #f1f5f9;
  --surface:      #ffffff;
  --text:         #0f172a;
  --text-muted:   #64748b;
  --text-light:   #94a3b8;
  --line:         #e2e8f0;
  --line-dark:    #cbd5e1;

  /* Radii */
  --radius:       16px;
  --radius-md:    10px;
  --radius-sm:    6px;

  /* Sombras */
  --shadow-sm:    0 1px 3px rgba(15,23,42,.07), 0 1px 2px rgba(15,23,42,.04);
  --shadow:       0 4px 16px rgba(15,23,42,.08), 0 2px 6px rgba(15,23,42,.04);
  --shadow-lg:    0 12px 40px rgba(15,23,42,.12), 0 4px 12px rgba(15,23,42,.06);

  /* Transições */
  --t: .18s ease;
}

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

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

body {
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100dvh;
}

img, svg {display: block;width: clamp(4em, 50%, 16em);}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { list-style: none; }

/* --- Tipografia ------------------------------------------- */
h1, h2, h3, h4 { line-height: 1.3; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(1.375rem, 3vw, 1.625rem); }
h2 { font-size: 1.2rem; }
h3 { font-size: 1rem;   font-weight: 600; }

p + p { margin-top: .75em; }

/* --- Utilitários ------------------------------------------ */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.hidden { display: none !important; }

/* ==========================================================
   LAYOUT: PAGE-AUTH — tela dividida (login, cadastro, etc.)
   ========================================================== */
body.page-auth {
  display: grid;
  grid-template-columns: 380px 1fr;
  min-height: 100dvh;
}

/* --- Painel da marca (esquerdo) --------------------------- */
.brand-panel {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 36px 32px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse at 20% 85%, rgba(6,182,212,.40) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 10%, rgba(99,102,241,.45) 0%, transparent 50%),
    linear-gradient(155deg, var(--brand-darker) 0%, var(--brand-dark) 45%, var(--brand) 100%);
}

/* Grade de pontos decorativos */
.brand-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* Logo */
.brand-header { 
  position: relative; 
  z-index: 1; 
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}
.brand-logo:hover { text-decoration: none; }

.brand-logo img {
  width: 64px;
  height: 64px;
}
.brand-logomark {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.3);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 800;
  flex-shrink: 0;
  letter-spacing: -.02em;
}

.brand-wordmark {
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
}

.brand-wordmark small {
  display: block;
  font-size: .7rem;
  font-weight: 400;
  opacity: .7;
  letter-spacing: .03em;
  text-transform: uppercase;
}

/* Corpo: tagline + decoração */
.brand-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.brand-tagline { margin-top: 40px; }

.brand-tagline h2 {
  color: #fff;
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  line-height: 1.25;
  margin-bottom: 14px;
}

.brand-tagline p {
  opacity: .75;
  font-size: .875rem;
  line-height: 1.65;
  max-width: 280px;
}

/* Anéis decorativos */
.brand-deco {
  position: relative;
  margin-top: 44px;
  height: 160px;
  flex-shrink: 0;
}

.brand-deco-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18);
}
.brand-deco-ring:nth-child(1) {
  width: 68px; height: 68px;
  top: 46px; left: 28px;
  background: rgba(255,255,255,.07);
}
.brand-deco-ring:nth-child(2) {
  width: 120px; height: 120px;
  top: 26px; left: 76px;
}
.brand-deco-ring:nth-child(3) {
  width: 176px; height: 176px;
  top: -4px; left: 48px;
}

/* Rodapé */
.brand-footer {
  position: relative;
  z-index: 1;
  font-size: .75rem;
  display: flex;
  flex-flow: column nowrap;
  gap: 1em;
}
.brand-footer small {
  opacity: .55;
}
.brand-footer a { color: #fff; }

/* Barra de usuário (dentro do aside) */
.user-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-md);
}
.user-bar__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  border: 1.5px solid rgba(255,255,255,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .875rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  text-transform: uppercase;
}
.user-bar__name {
  font-size: .8125rem;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-bar__logout {
  font-size: .75rem;
  color: rgba(255,255,255,.6);
  flex-shrink: 0;
}
.user-bar__logout:hover { color: #fff; text-decoration: underline; }

/* --- Painel do formulário (direito) ----------------------- */
.form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  overflow-y: auto;
}

/* Barra de usuário ----------------------------------------- */
.user-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .8125rem;
  color: var(--text-muted);
}
.user-bar__name {
  font-weight: 600;
}

/* Card do formulário */
.form-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 44px 40px;
  width: 100%;
  max-width: 488px;
}

.form-card__header { margin-bottom: 6px; }

/* Aviso / "fala" da Cicleide */
.cicleide-notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--brand-soft);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin: 20px 0 28px;
}

.cicleide-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(37,99,235,.2);
  flex-shrink: 0;
  object-fit: cover;
  align-self: flex-start;
}

.cicleide-notice p {
  margin: 0;
  font-size: .825rem;
  line-height: 1.55;
  color: var(--brand-darker);
}

.cicleide-notice strong {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--brand-dark);
  letter-spacing: .02em;
  text-transform: uppercase;
}

/* ==========================================================
   FORMULÁRIOS
   ========================================================== */
form fieldset {
  border: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field > label,
label.field-label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: .03em;
  text-transform: uppercase;
}

.field-hint {
  font-size: .8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Inputs e selects */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="url"],
select,
textarea {
  width: 100%;
  border: 1.5px solid var(--line-dark);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  font: inherit;
  font-size: .9375rem;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
  -webkit-appearance: none;
  appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

input::placeholder { color: var(--text-light); }

textarea {
  resize: vertical;
  min-height: 96px;
}

/* Select customizado com chevron */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

/* Erros de campo */
.field-error {
  font-size: .8125rem;
  color: var(--danger);
}

/* ==========================================================
   BOTÕES
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  padding: 8px 16px;
  font: inherit;
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--t), border-color var(--t), box-shadow var(--t), opacity var(--t);
}

.btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.btn:disabled,
.btn[data-loading] {
  opacity: .55;
  cursor: not-allowed;
}

/* Variantes */
.btn-primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.btn-primary:not(:disabled):not([data-loading]):hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}
.btn-primary:not(:disabled):not([data-loading]):active {
  background: var(--brand-darker);
}

.btn-out {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand-border);
}
.btn-out:not(:disabled):hover {
  background: var(--brand-soft);
  border-color: var(--brand);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--line-dark);
}
.btn-ghost:not(:disabled):hover {
  background: var(--bg);
  color: var(--text);
  border-color: var(--line-dark);
}

.btn-selected {
  background: var(--brand-soft);
  color: var(--brand);
  border-color: var(--brand);
}

.btn-full { width: 100%; }

/* Spinner de loading */
.btn-spinner {
  display: none;
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .65s linear infinite;
  flex-shrink: 0;
}
.btn[data-loading] .btn-spinner { display: block; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================
   ORG PICKER
   ========================================================== */
.org-picker {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Estado: sem org */
.org-picker-empty .field-hint { margin-bottom: 4px; }

/* Estado: org única — botões lado a lado */
.org-choices {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.org-choices li { flex: 1; min-width: 140px; }

.org-choice {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1.5px solid var(--line-dark);
  border-radius: var(--radius-md);
  background: var(--surface);
  font: inherit;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: border-color var(--t), background var(--t), color var(--t);
}
.org-choice:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
}
.org-choice[aria-pressed="true"] {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}

.org-choice__icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  flex-shrink: 0;
  transition: background var(--t), color var(--t);
}
.org-choice[aria-pressed="true"] .org-choice__icon {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.org-choice__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.org-choice--new { color: var(--text-muted); }
.org-choice--new:hover {
  color: var(--brand);
  border-color: var(--brand);
  background: var(--brand-soft);
}

/* Estado: múltiplas orgs — select + link */
.org-new-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: inherit;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--brand);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: opacity var(--t);
}
.org-new-link:hover { text-decoration: underline; }

/* Estado de carregamento */
.org-loading {
  font-size: .875rem;
  color: var(--text-light);
  font-style: italic;
}

/* ==========================================================
   RODAPÉ DO FORMULÁRIO
   ========================================================== */
.form-actions {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-error {
  font-size: .8125rem;
  color: var(--danger);
  min-height: 0;
  transition: min-height var(--t);
}

/* ==========================================================
   USER SWITCHER (dev — remover em produção)
   ========================================================== */

/* Container fixo na borda direita */
.dev-switcher {
  position: fixed;
  top: 30%;
  right: 0;
  z-index: 9999;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  font-size: .75rem;
}

/* Aba vertical "DEV" sempre visível */
.dev-switcher__tab {
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  background: #1e1b4b;
  color: #a5b4fc;
  border: none;
  border-radius: 0 6px 6px 6px; /* borda inferior quando rotacionado = esquerda visual */
  padding: 14px 7px 12px 7px;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
  transition: background .15s;
  outline: none;
}
.dev-switcher__tab:hover { background: #312e81; }
.dev-switcher__tab:focus-visible { outline: 2px solid #818cf8; outline-offset: 2px; }

/* Painel lateral */
.dev-switcher__panel {
  width: 292px;
  background: var(--surface);
  border: 1px solid var(--line-dark);
  border-right: none;
  border-radius: 8px 0 0 8px;
  box-shadow: -4px 0 24px rgba(0,0,0,.15);
  display: flex;
  flex-direction: column;
  max-height: 80vh;
  overflow: hidden;
}
.dev-switcher__panel[hidden] { display: none; }

.dev-switcher__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  background: #1e1b4b;
  color: #a5b4fc;
  font-weight: 600;
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  user-select: none;
  flex-shrink: 0;
}

.dev-switcher__header-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dev-switcher__badge {
  background: #4f46e5;
  color: #fff;
  border-radius: 4px;
  padding: 0 5px;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.dev-switcher__close {
  background: none;
  border: none;
  color: #a5b4fc;
  cursor: pointer;
  padding: 0 2px;
  font-size: .9rem;
  line-height: 1;
  opacity: .7;
  transition: opacity .15s;
}
.dev-switcher__close:hover { opacity: 1; }

.dev-switcher__body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.dev-switcher__search-wrap {
  padding: 8px 8px 4px;
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1;
  border-bottom: 1px solid var(--line);
}

.dev-switcher__search {
  width: 100%;
  padding: 6px 10px;
  font-size: .75rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  outline: none;
}
.dev-switcher__search:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99,102,241,.15);
}

.dev-switcher__loading {
  padding: 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: .75rem;
}

.dev-user-list {
  list-style: none;
  margin: 0;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dev-user-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background .15s, border-color .15s;
}
.dev-user-item:hover { background: var(--bg); }
.dev-user-item[aria-current="true"] {
  background: #ede9fe;
  border-color: #a5b4fc;
}
.dev-user-item[data-original="true"] {
  background: #fffbeb;
  border-color: #fcd34d;
}
.dev-user-item[data-original="true"][aria-current="true"] {
  background: #fef3c7;
  border-color: #fbbf24;
}
.dev-tag--you   { background: #fef3c7; color: #92400e; }

.dev-user-item__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e0e7ff;
  color: #4f46e5;
  font-weight: 700;
  font-size: .8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-transform: uppercase;
}

.dev-user-item__info {
  flex: 1;
  min-width: 0;
}

.dev-user-item__name {
  font-weight: 600;
  color: var(--text);
  font-size: .75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dev-user-item__tags {
  display: flex;
  gap: 4px;
  margin-top: 3px;
  flex-wrap: wrap;
}

.dev-tag {
  font-size: .6rem;
  font-weight: 600;
  border-radius: 3px;
  padding: 1px 5px;
  text-transform: uppercase;
  letter-spacing: .03em;
  white-space: nowrap;
}
.dev-tag--role    { background: #dbeafe; color: #1d4ed8; }
.dev-tag--status  { background: #d1fae5; color: #065f46; }
.dev-tag--org     { background: #fef9c3; color: #854d0e; }
.dev-tag--noorg   { background: #fee2e2; color: #991b1b; }

.dev-switcher__footer {
  padding: 8px 12px;
  border-top: 1px solid var(--line);
  text-align: center;
  flex-shrink: 0;
}

.dev-switcher__restore {
  background: none;
  border: none;
  font-size: .7rem;
  color: #6366f1;
  cursor: pointer;
  font-weight: 600;
}
.dev-switcher__restore:hover { text-decoration: underline; }


/* ==========================================================
   LOGIN — Abas de autenticação
   ========================================================== */

.auth-tabs {
  display: flex;
  gap: 2px;
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 4px;
  margin: 20px 0 28px;
}

.auth-tab {
  flex: 1;
  padding: 8px 6px;
  border: none;
  background: transparent;
  border-radius: calc(var(--radius-md) - 2px);
  font: inherit;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--t), color var(--t);
  white-space: nowrap;
}
.auth-tab:hover { color: var(--text); }
.auth-tab[aria-selected="true"] {
  background: var(--surface);
  color: var(--brand);
  box-shadow: var(--shadow-sm);
}

/* Painel de conteúdo de cada aba */
.auth-panel { display: none; }
.auth-panel.active { display: block; }

/* Divider "ou" */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--text-light);
  font-size: .8125rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* Rodapé de ações secundárias */
.auth-footer-link {
  margin-top: 18px;
  text-align: center;
  font-size: .8125rem;
  color: var(--text-muted);
}
.auth-footer-link a {
  font-weight: 600;
}

/* Link-botão (para "Esqueci minha senha") */
.btn-text {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: .8125rem;
  color: var(--brand);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.btn-text:hover { text-decoration: underline; }

/* Feedback de magic link enviado */
.magic-sent-card {
  text-align: center;
  padding: 20px 0;
}
.magic-sent-card .magic-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}
.magic-sent-card h3 { margin-bottom: 8px; }
.magic-sent-card p  { color: var(--text-muted); font-size: .875rem; }

/* Verificação de magic link */
.verify-card {
  text-align: center;
  padding: 24px 0 12px;
}
.verify-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--line);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 0 auto 16px;
}
.verify-card p { color: var(--text-muted); font-size: .875rem; }

/* Botões de login social */
.social-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-social {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
  border: 1.5px solid var(--line-dark);
  border-radius: var(--radius-md);
  background: var(--surface);
  font: inherit;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: border-color var(--t), background var(--t), box-shadow var(--t);
}
.btn-social:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: var(--shadow-sm);
}
.btn-social:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.btn-social svg { flex-shrink: 0; }

.btn-social .social-btn-label { flex: 1; text-align: center; }

/* ==========================================================
   DIALOG — Nova Organização
   ========================================================== */

dialog {
  border: none;
  border-radius: var(--radius);
  padding: 0;
  margin: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,.22);
  width: min(520px, 95vw);
  max-height: 90vh;
  overflow: auto;
  background: var(--surface);
}

dialog::backdrop {
  background: rgba(15,23,42,.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.dialog-card {
  display: flex;
  flex-direction: column;
}

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 0;
  gap: 12px;
}

.dialog-header h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.dialog-close {
  all: unset;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 6px;
  transition: background .15s, color .15s;
}
.dialog-close:hover { background: var(--line); color: var(--text); }

.dialog-card form {
  padding: 20px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dialog-card fieldset {
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.logo-upload-label {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}

.logo-preview {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  border: 2px dashed var(--line-dark);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--bg);
  transition: border-color .2s;
}
.logo-preview:hover { border-color: var(--brand); }
.logo-preview img   { width: 100%; height: 100%; object-fit: cover; }
.logo-preview .logo-placeholder {
  font-size: .75rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
  padding: 4px;
}

.logo-upload-label input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

.logo-upload-info .upload-btn-text {
  font-size: .875rem;
  font-weight: 600;
  color: var(--brand);
  display: block;
}
.logo-upload-info .upload-hint {
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: 2px;
  display: block;
}

.dialog-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ==========================================================
   WIZARD (projeto-definicoes e steps seguintes)
   ========================================================== */

.page-wizard {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  background: var(--bg);
}

/* --- Header fixo do wizard -------------------------------- */
.wizard-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: var(--shadow-sm);
}

.wizard-title-area { display: flex; flex-direction: column; gap: 4px; }

.wizard-project-name {
  display: flex;
  align-items: center;
  gap: 6px;
}

.wizard-project-name h1 { font-size: 1.375rem; }

.wizard-title-input {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text);
  border: none;
  border-bottom: 2px solid var(--brand);
  background: transparent;
  outline: none;
  width: 320px;
  max-width: 100%;
  padding: 0 2px;
  line-height: 1.3;
}

.wizard-org-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .875rem;
  color: var(--text-muted);
}

.wizard-org-avatar {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .6rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.btn-edit-inline {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 2px;
  display: inline-flex;
  align-items: center;
  opacity: 0.45;
  transition: opacity var(--t);
  line-height: 1;
}
.btn-edit-inline:hover { opacity: 1; }

/* --- Step navigator --------------------------------------- */
.wizard-steps {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.wizard-step {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wizard-step__bubble {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 700;
  background: var(--line-dark);
  color: var(--text-muted);
  flex-shrink: 0;
}

.wizard-step--active .wizard-step__bubble {
  background: var(--brand);
  color: #fff;
}

.wizard-step__label {
  font-size: .8125rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.wizard-step--active .wizard-step__label {
  color: var(--text);
  font-weight: 600;
}

.wizard-step-connector {
  width: 36px;
  height: 2px;
  background: var(--line-dark);
  margin: 0 6px;
  flex-shrink: 0;
}

/* --- Corpo scrollável ------------------------------------- */
.wizard-body {
  flex: 1;
  overflow-y: auto;
  padding: 32px;
  padding-bottom: 88px;
}

.wizard-2col {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  max-width: 920px;
  margin: 0 auto;
}

/* --- Card de imagem --------------------------------------- */
.wizard-image-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  cursor: pointer;
  border: 2px dashed var(--line-dark);
  transition: border-color var(--t), background var(--t);
  position: sticky;
  top: 88px;
  align-self: start;
}

.wizard-image-card:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.wizard-image-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--brand-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.wizard-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wizard-image-card h3 { font-size: .9rem; }

.wizard-image-card p {
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* --- Campos de texto -------------------------------------- */
.wizard-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wizard-field-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px 24px 16px;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.wizard-field-card__header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.wizard-field-card__num {
  font-size: .7rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: .06em;
}

.wizard-field-card__label {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--text);
}

.wizard-field-card__ai {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 1rem;
  color: var(--brand);
  opacity: 0.6;
  line-height: 1;
  pointer-events: none;
}

.wizard-textarea {
  width: 100%;
  border: none;
  resize: none;
  font-family: inherit;
  font-size: .875rem;
  line-height: 1.65;
  color: var(--text);
  background: transparent;
  outline: none;
  overflow: hidden;
}

.wizard-textarea::placeholder { color: var(--text-light); }

.wizard-char-count {
  display: block;
  text-align: right;
  font-size: .65rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-top: 6px;
  user-select: none;
}

.wizard-char-count--warn { color: var(--warning); }
.wizard-char-count--over { color: var(--danger); }

/* --- Rodapé fixo ------------------------------------------ */
.wizard-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.btn-nav {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 4px;
  transition: color var(--t);
  color: var(--text-muted);
}

.btn-nav:hover { color: var(--text); }

.btn-nav--next {
  color: var(--brand);
}

.btn-nav--next:hover { color: var(--brand-dark); }

.btn-nav--next:only-child { margin-left: auto; }

/* --- Wizard dentro de page-auth (coluna direita) ---------- */
.wizard-panel {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
}

.wizard-panel .wizard-body {
  flex: 1;
  overflow-y: auto;
}

.wizard-panel .wizard-footer {
  position: static;
}

/* --- Responsivo ------------------------------------------- */
@media (max-width: 767px) {
  .wizard-header { padding: 12px 16px; flex-wrap: wrap; gap: 12px; }
  .wizard-steps .wizard-step__label { display: none; }
  .wizard-step--active .wizard-step__label { display: block; }
  .wizard-body { padding: 20px 16px 80px; }
  .wizard-2col { grid-template-columns: 1fr; }
  .wizard-image-card { position: static; text-align: left; padding: 16px; }
  .wizard-image-preview { flex-shrink: 0; }
  .wizard-footer { padding: 12px 16px; }
}

/* ==========================================================
   PARTICIPAÇÃO — área de atuação, papel, horários
   ========================================================== */

.part-body {
  max-width: 660px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* --- Card de seção genérico ---------------------------- */
.part-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px 24px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.part-card__title {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--text);
}

.part-card__hint {
  font-size: .8125rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-top: -6px;
}

/* --- Área de atuação ----------------------------------- */
.part-area-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.part-area-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 10px 14px;
  border: 1.5px solid var(--line-dark);
  border-radius: var(--radius-md);
  background: var(--bg);
  cursor: pointer;
  font-family: inherit;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: border-color var(--t), background var(--t), color var(--t);
  line-height: 1.2;
  text-align: center;
}

.part-area-btn svg { flex-shrink: 0; transition: stroke var(--t); }

.part-area-btn:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
}

.part-area-btn[aria-pressed="true"] {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
  box-shadow: 0 0 0 2px rgba(37,129,194,.18);
}

/* --- Seu papel ---------------------------------------- */
.part-papel-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.part-papel-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 16px;
  border: 1.5px solid var(--line-dark);
  border-radius: var(--radius-md);
  background: var(--bg);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: border-color var(--t), background var(--t);
  width: 100%;
}

.part-papel-option:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.part-papel-option[aria-pressed="true"] {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 0 2px rgba(37,129,194,.18);
}

.part-papel-option__radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--line-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  transition: border-color var(--t), background var(--t);
}

.part-papel-option[aria-pressed="true"] .part-papel-option__radio {
  border-color: var(--brand);
  background: var(--brand);
}

.part-papel-option[aria-pressed="true"] .part-papel-option__radio::after {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  display: block;
}

.part-papel-option__text { display: flex; flex-direction: column; gap: 2px; }
.part-papel-option__name { font-size: .875rem; font-weight: 600; color: var(--text); }
.part-papel-option__desc { font-size: .75rem; color: var(--text-muted); }

/* --- Horários das reuniões ---------------------------- */
.part-days {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.part-day-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--line-dark);
  background: var(--bg);
  cursor: pointer;
  font-family: inherit;
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--t), background var(--t), color var(--t);
  flex-shrink: 0;
}

.part-day-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
}

.part-day-btn[aria-pressed="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 2px 6px rgba(37,129,194,.35);
}

.part-time-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.part-time-label {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.part-time-input {
  height: 40px;
  border: 1.5px solid var(--line-dark);
  border-radius: var(--radius-md);
  padding: 0 12px;
  font-family: inherit;
  font-size: .875rem;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
  cursor: pointer;
}

.part-time-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37,129,194,.12);
}

.part-time-separator {
  font-size: .8125rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* --- Responsivo --------------------------------------- */
@media (max-width: 480px) {
  .part-area-grid { grid-template-columns: repeat(2, 1fr); }
  .part-day-btn   { width: 36px; height: 36px; font-size: .7rem; }
}

/* ==========================================================
   EQUIPE — campo de convite + lista de convites
   ========================================================== */

.invite-section {
  max-width: 660px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Campo de busca/convite */
.invite-field-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}

.invite-field-card label {
  display: block;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
  letter-spacing: .01em;
}

.invite-input-row {
  display: flex;
  gap: 10px;
}

.invite-input {
  flex: 1;
  height: 42px;
  border: 1.5px solid var(--line-dark);
  border-radius: var(--radius-md);
  padding: 0 14px;
  font-family: inherit;
  font-size: .875rem;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
}
.invite-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 129, 194, .12);
}
.invite-input::placeholder { color: var(--text-light); }

/* Dropdown de sugestões */
.invite-suggestions {
  list-style: none;
  margin-top: 6px;
  background: var(--surface);
  border: 1.5px solid var(--line-dark);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.invite-suggestions[hidden] { display: none; }

.invite-suggestion {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  cursor: pointer;
  transition: background var(--t);
}
.invite-suggestion:hover { background: var(--brand-soft); }

.invite-suggestion__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e0e7ff;
  color: var(--brand-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}
.invite-suggestion__avatar img { width: 100%; height: 100%; object-fit: cover; }

.invite-suggestion__info { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.invite-suggestion__name  { display: block; font-size: .8125rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.invite-suggestion__email { display: block; font-size: .725rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Lista de convites */
.invite-list-section { display: flex; flex-direction: column; gap: 12px; }

.invite-list-header {
  font-size: .8125rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.invite-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.invite-item {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color var(--t);
}

.invite-item__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e0e7ff;
  color: var(--brand-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8125rem;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}
.invite-item__avatar img { width: 100%; height: 100%; object-fit: cover; }
.invite-item__avatar--ghost { background: var(--bg); color: var(--text-light); border: 1.5px dashed var(--line-dark); }

.invite-item__main { flex: 1; min-width: 0; }
.invite-item__name { font-size: .875rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.invite-item__email { font-size: .75rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.invite-item__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.invite-item__date { font-size: .7rem; color: var(--text-light); }

/* Status badges */
.invite-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 20px;
}
.invite-status--enviado  { background: #eff6ff; color: #1d4ed8; }
.invite-status--aceito   { background: var(--success-soft); color: var(--success); }
.invite-status--recusado { background: var(--danger-soft); color: var(--danger); }

.invite-item__remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  padding: 4px;
  display: flex;
  align-items: center;
  border-radius: 4px;
  transition: color var(--t), background var(--t);
}
.invite-item__remove:hover { color: var(--danger); background: var(--danger-soft); }

.invite-empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-muted);
  font-size: .875rem;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1.5px dashed var(--line-dark);
}

/* ==========================================================
   RESPONSIVO
   ========================================================== */

/* Tablet: 768 – 1024px */
@media (max-width: 1024px) {
  body.page-auth {
    grid-template-columns: 300px 1fr;
  }
  .brand-panel { padding: 28px 24px; }
  .brand-deco  { display: none; }
  .form-card   { padding: 36px 32px; }
}

/* Mobile: ≤ 767px */
@media (max-width: 767px) {
  body.page-auth {
    display: flex;
    flex-direction: column;
  }

  /* Painel da marca vira barra superior */
  .brand-panel {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
  }
  .brand-panel::before,
  .brand-body { display: none; }
  .brand-footer small { display: none; }

  .form-panel {
    flex: 1;
    align-items: flex-start;
    padding: 24px 16px 48px;
  }

  .form-card {
    padding: 24px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
  }

  .org-choices { flex-direction: column; }
  .org-choices li { flex: none; min-width: 0; }
}

/* ==========================================================
   REVISÃO — resumo do draft antes de criar
   ========================================================== */
.review-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-section {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px 24px 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.review-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.review-section__title {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--text);
}

.review-edit-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity var(--t);
}
.review-edit-link:hover { opacity: .75; }

/* Tabela descritiva */
.review-dl {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

.review-dl__row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 8px 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.review-dl__row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.review-dl__row dt {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--text-muted);
  padding-top: 1px;
}

.review-dl__row dd {
  font-size: .875rem;
  color: var(--text);
  line-height: 1.55;
  margin: 0;
  word-break: break-word;
}

/* Lista de convidados */
.review-invite-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.review-invite-list__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.review-invite-list__item:last-child { border-bottom: none; }

.review-project-image {
  max-width: 180px;
  max-height: 120px;
  border-radius: var(--radius-md);
  object-fit: cover;
  display: block;
}

.review-invite-list__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: .8125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.review-invite-list__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-invite-list__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.review-invite-list__name {
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
}

.review-invite-list__email {
  font-size: .8rem;
  color: var(--text-muted);
}

.review-invite-list__status {
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--line-dark);
  border-radius: 99px;
  padding: 2px 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.review-invite-list__empty {
  font-size: .875rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Alerta de erro */
.review-error {
  font-size: .875rem;
  color: #c0392b;
  background: #fdecea;
  border: 1px solid #f5b7b1;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-top: 4px;
}

@media (max-width: 600px) {
  .review-dl__row {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

/* ==========================================================
   DASHBOARD
   ========================================================== */
.page-dashboard {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100dvh;
}

/* --- Topbar ------------------------------------------------ */
.dash-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 32px;
  height: 60px;
}

.dash-topbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: .9375rem;
  flex-shrink: 0;
}
.dash-topbar__logo:hover { text-decoration: none; }
.dash-topbar__logo img { width: 32px; height: 32px; }

.dash-topbar__nav-link {
  display: none;
  text-decoration: none;
  color: var(--text);
  font-size: .875rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 4px;
  transition: background 0.2s ease;
}
.dash-topbar__nav-link:hover {
  background: var(--bg-secondary);
  text-decoration: none;
}
@media (min-width: 600px) {
  .dash-topbar__nav-link { display: inline-block; }
}

.dash-topbar__spacer { flex: 1; }

.dash-topbar__user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .8125rem;
}

.dash-topbar__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.dash-topbar__avatar img { width: 100%; height: 100%; object-fit: cover; }

.dash-topbar__name {
  font-weight: 600;
  color: var(--text);
  display: none;
}
@media (min-width: 640px) { .dash-topbar__name { display: block; } }

.dash-topbar__coef {
  display: none;
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--surface-2, rgba(255,255,255,.08));
  border: 1px solid var(--border-muted, rgba(255,255,255,.12));
  border-radius: 999px;
  padding: 1px 8px;
  line-height: 1.6;
  letter-spacing: .02em;
  min-width: 32px;
  text-align: center;
}
.dash-topbar__coef:not(:empty) { display: inline-block; }
@media (min-width: 640px) { .dash-topbar__coef:not(:empty) { display: inline-block; } }

.dash-topbar__logout {
  all: unset;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: color var(--t);
}
.dash-topbar__logout:hover { color: var(--danger); }

/* --- Topbar: user dropdown ------------------------------- */
.dash-topbar__user-wrap {
  position: relative;
}

.dash-topbar__user-trigger {
  all: unset;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius-sm);
}

.dash-topbar__avatar-wrap {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

.dash-topbar__badge {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--danger);
  border: 2px solid var(--surface);
  pointer-events: none;
}

.dash-topbar__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 240px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .12);
  z-index: 50;
  padding: 6px 0;
}

.dash-topbar__menu-header {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 16px 10px;
}

.dash-topbar__menu-header .dash-topbar__coef {
  margin-top: 4px;
  align-self: flex-start;
}

.dash-topbar__menu-role {
  font-size: .7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.dash-topbar__menu-email {
  font-size: .8125rem;
  color: var(--text);
  word-break: break-all;
}

.dash-topbar__menu-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 4px 0;
}

.dash-topbar__menu-item {
  all: unset;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  width: 100%;
  box-sizing: border-box;
  font-size: .875rem;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--t);
}
.dash-topbar__menu-item:hover {
  background: var(--bg);
}
.dash-topbar__menu-item--danger {
  color: var(--danger);
}
.dash-topbar__menu-item--danger:hover {
  background: var(--danger-soft);
}

/* --- Conteúdo principal ----------------------------------- */
.dash-main {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 32px 80px;
}

.dash-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.dash-hero__title { font-size: clamp(1.25rem, 3vw, 1.5rem); }
.dash-hero__sub {
  font-size: .875rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* --- Filtros / barra de busca ----------------------------- */
.dash-filters {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.dash-search {
  flex: 1;
  min-width: 180px;
  max-width: 360px;
  position: relative;
}
.dash-search__icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.dash-search input {
  width: 100%;
  padding: 8px 12px 8px 36px;
  border: 1.5px solid var(--line-dark);
  border-radius: var(--radius-md);
  background: var(--surface);
  font: inherit;
  font-size: .875rem;
  color: var(--text);
  transition: border-color var(--t), box-shadow var(--t);
}
.dash-search input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(27,172,182,.12);
}

.dash-filter-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg);
  padding: 4px;
  border-radius: var(--radius-md);
}

.dash-filter-tab {
  padding: 6px 14px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--t), color var(--t);
  white-space: nowrap;
}
.dash-filter-tab:hover { color: var(--text); }
.dash-filter-tab[aria-selected="true"] {
  background: var(--surface);
  color: var(--brand);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* --- Container principal de projetos ------------------- */
.dash-projects {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* --- Seção de projetos ---------------------------------- */
.dash-section { display: flex; flex-direction: column; gap: 16px; }

.dash-section__title {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin: 0;
}

/* --- Grade de projetos ----------------------------------- */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* --- Card de projeto ------------------------------------- */
.project-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow var(--t), transform var(--t), border-color var(--t);
}
.project-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-color: var(--brand-border);
  text-decoration: none;
  color: var(--text);
}

.project-card__image {
  width: 160px;
  height: 160px;
  object-fit: contain;
  display: block;
  background: linear-gradient(135deg, var(--brand-soft), var(--bg));
  border-radius: 100em;
  margin: 1em auto;
}


.project-card__image-placeholder {
  width: 100%;
  height: 140px;
  background: linear-gradient(135deg, var(--brand-soft) 0%, #e0f2fe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-card__image-placeholder svg { opacity: .25; }

.project-card__body {
  padding: 18px 20px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}

.project-card__org {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.project-card__org-logo {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg), var(--surface));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .5rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}
.project-card__org-logo img { width: 100%; height: 100%; object-fit: cover; }

.project-card__name {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin: 0;
}

.project-card__objetivo {
  font-size: .8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  line-clamp: 2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px 14px;
  border-top: 1px solid var(--line);
  gap: 8px;
  flex-wrap: wrap;
}

.project-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .75rem;
  color: var(--text-muted);
}

.project-card__meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.project-card__role {
  font-size: .7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  white-space: nowrap;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-card__status {
  font-size: .7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}
.project-card__status--ativo     { background: #dcfce7; color: #166534; }
.project-card__status--concluido { background: #dbeafe; color: #1e40af; }
.project-card__status--cancelado { background: var(--danger-soft); color: var(--danger); }

/* --- Estado vazio / loading ------------------------------ */
.dash-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.dash-empty__icon { opacity: .2; }
.dash-empty__title { font-size: 1.125rem; font-weight: 700; }
.dash-empty__sub   { font-size: .875rem; color: var(--text-muted); max-width: 320px; }

.dash-skeleton {
  background: linear-gradient(90deg, var(--bg) 25%, var(--line) 50%, var(--bg) 75%);
  background-size: 200% 100%;
  animation: skeleton-shine 1.4s infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton-shine { to { background-position: -200% 0; } }

/* --- Responsivo ------------------------------------------ */
@media (max-width: 640px) {
  .dash-topbar { padding: 0 16px; }
  .dash-main   { padding: 24px 16px 60px; }
  .dash-hero   { margin-bottom: 24px; }
  .dash-filters { gap: 8px; }
}

/* ==========================================================
   PÁGINA DE PROJETO (projeto.html)
   ========================================================== */

/* --- Layout raiz ----------------------------------------- */
.page-proj {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100dvh;
}

/* --- Hero (capa + nome + org) ---------------------------- */
.proj-hero {
  position: relative;
  background: var(--brand-darker);
  color: #fff;
  overflow: hidden;
}

.proj-hero__cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  pointer-events: none;
  filter: blur(10px) invert(1);
}

.proj-hero__overlay {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 32px 36px;
}

.proj-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  font-weight: 500;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  margin-bottom: 20px;
  transition: color var(--t);
}
.proj-hero__back:hover { color: #fff; text-decoration: none; }

.proj-hero__upper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.proj-hero__info { flex: 1; min-width: 0; }

.proj-hero__org {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 500;
  color: rgba(255,255,255,.7);
  margin-bottom: 10px;
}

.proj-hero__org-logo {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: rgba(255,255,255,0.9);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  font-weight: 700;
  padding: 0.125em;
}
.proj-hero__org-logo img {width: 100%;height: 100%;object-fit: cover;border-radius: 4px;}

.proj-hero__name {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -.02em;
  word-break: break-word;
  color: var(--bg);
}

.proj-hero__project-logo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
}

.proj-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.proj-hero__status {
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.proj-hero__status--ativo     { background: rgba(5,150,105,.3);  color: #a7f3d0; }
.proj-hero__status--concluido { background: rgba(37,99,235,.3);  color: #bfdbfe; }
.proj-hero__status--cancelado { background: rgba(220,38,38,.3);  color: #fca5a5; }

.proj-hero__role {
  font-size: .7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.85);
}

.proj-hero__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  align-self: flex-start;
}

/* --- Body (conteúdo + sidebar) --------------------------- */
.proj-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 32px 80px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

/* --- Seção de conteúdo ----------------------------------- */
.proj-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  margin-bottom: 20px;
}
.proj-section:last-child { margin-bottom: 0; }

.proj-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
}

.proj-section__title {
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.proj-section__title svg {
  opacity: .45;
  flex-shrink: 0;
}

.proj-section__empty {
  color: var(--text-muted);
  font-size: .875rem;
  font-style: italic;
}

.proj-field { margin-bottom: 20px; }
.proj-field:last-child { margin-bottom: 0; }

.proj-field__label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.proj-field__value {
  font-size: .9375rem;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}

/* --- Participantes --------------------------------------- */
.proj-participants {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.proj-participant {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.proj-participant__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  color: #fff;
}
.proj-participant__avatar img { width: 100%; height: 100%; object-fit: cover; }

.proj-participant__info { flex: 1; min-width: 0; }

.proj-participant__name {
  font-size: .875rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.proj-participant__sub {
  font-size: .75rem;
  color: var(--text-muted);
}

.proj-participant__role {
  font-size: .65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Convite pendente */
.proj-participant--invite {
  opacity: .75;
  border: 1px dashed var(--line-dark);
  background: transparent;
}
.proj-participant--invite .proj-participant__role {
  background: var(--warning-soft);
  color: var(--warning);
}

/* Próprio usuário — clicável para editar participação */
.proj-participant--me {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background .15s, box-shadow .15s;
}
.proj-participant--me:hover {
  background: var(--brand-soft, rgba(var(--brand-rgb, 99,91,255),.06));
  box-shadow: 0 0 0 2px var(--brand-light, #c7c4ff);
}

/* --- Sidebar --------------------------------------------- */
.proj-sidebar { display: flex; flex-direction: column; gap: 16px; }

.proj-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.proj-card__title {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.proj-card__title svg { opacity: .5; }

.proj-meta-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.proj-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.proj-meta-item__label {
  font-size: .7rem;
  color: var(--text-muted);
  font-weight: 500;
}

.proj-meta-item__value {
  font-size: .875rem;
  font-weight: 600;
  word-break: break-word;
}

.proj-org-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.proj-org-logo {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--line);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-muted);
}
.proj-org-logo img { width: 100%; height: 100%; object-fit: cover; }

/* --- Skeleton de carregamento ---------------------------- */
.proj-skeleton-hero {
  height: 200px;
  background: var(--brand-darker);
  position: relative;
  overflow: hidden;
}
.proj-skeleton-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 25%, rgba(255,255,255,.06) 50%, transparent 75%);
  background-size: 200% 100%;
  animation: skeleton-shine 1.4s infinite;
}

/* =========================================================
   WORKSHOPS — seção principal
   ========================================================= */

/* Barra de progresso */
.proj-ws-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.proj-ws-progress__bar {
  flex: 1;
  height: 6px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
}
.proj-ws-progress__fill {
  height: 100%;
  background: var(--success, #22c55e);
  border-radius: 99px;
  transition: width .4s ease;
}
.proj-ws-progress__label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Card de ação (próximo / ativo) */
.proj-ws-action {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 14px;
}
.proj-ws-action--active {
  border-color: var(--warning, #f59e0b);
  background: color-mix(in srgb, var(--warning, #f59e0b) 8%, var(--bg));
}
.proj-ws-action__icon {
  opacity: .5;
  flex-shrink: 0;
}
.proj-ws-action--active .proj-ws-action__icon { opacity: 1; color: var(--warning, #f59e0b); }
.proj-ws-action__body { flex: 1; min-width: 0; }
.proj-ws-action__label { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); margin-bottom: 2px; }
.proj-ws-action--active .proj-ws-action__label { color: var(--warning, #f59e0b); }
.proj-ws-action__name  { font-size: .9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proj-ws-action__time  { font-size: .75rem; color: var(--text-muted); margin-top: 2px; }
.proj-ws-action__btn {
  flex-shrink: 0;
  font-size: .75rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--t), border-color var(--t);
}
.proj-ws-action__btn:hover { background: var(--surface); }
.proj-ws-action__btn--checkout {
  background: var(--warning, #f59e0b);
  border-color: var(--warning, #f59e0b);
  color: #fff;
}
.proj-ws-action__btn--checkout:hover { opacity: .9; }

/* Lista de workshops */
.proj-ws-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.proj-ws-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  transition: background var(--t);
  font-size: .85rem;
}
.proj-ws-item:hover { background: var(--bg); }
.proj-ws-item--done .proj-ws-item__name { color: var(--text-muted); }
.proj-ws-item__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--line);
  flex-shrink: 0;
}
.proj-ws-item--done .proj-ws-item__dot { background: var(--success, #22c55e); }
.proj-ws-item__name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proj-ws-item__date { font-size: .75rem; color: var(--text-muted); white-space: nowrap; }
.proj-ws-item__dur  { font-size: .75rem; color: var(--text-muted); white-space: nowrap; min-width: 44px; text-align: right; }
.proj-ws-more {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-size: .8rem;
  color: var(--brand);
  text-decoration: none;
}
.proj-ws-more:hover { text-decoration: underline; }

/* =========================================================
   SIDEBAR — Minha participação (reformulado)
   ========================================================= */

/* Badges de área e papel */
.proj-part-badge {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 8px;
}
.proj-part-badge--papel { margin-bottom: 14px; }
.proj-part-badge__name { font-size: .875rem; font-weight: 700; margin-bottom: 2px; }
.proj-part-badge__desc { font-size: .75rem; color: var(--text-muted); }

/* Métricas de desempenho */
.proj-perf {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.proj-perf-gauge__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}
.proj-perf-gauge__label { font-size: .75rem; color: var(--text-muted); font-weight: 500; }
.proj-perf-gauge__value { font-size: .9rem; font-weight: 700; }
.proj-perf-gauge__bar {
  height: 5px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
}
.proj-perf-gauge__fill {
  height: 100%;
  border-radius: 99px;
  transition: width .4s ease;
}

/* Ícones de indicações */
.proj-perf-icons {
  display: flex;
  gap: 12px;
}
.proj-perf-icon {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  font-size: .7rem;
  color: var(--text-muted);
  text-align: center;
}
.proj-perf-icon svg { opacity: .5; }
.proj-perf-icon strong { font-size: 1.1rem; font-weight: 700; color: var(--text); }

/* Row de avaliação */
.proj-perf-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .8rem;
  padding-top: 4px;
}
.proj-perf-row svg { opacity: .5; flex-shrink: 0; }
.proj-perf-row__label { color: var(--text-muted); flex-shrink: 0; }
.proj-perf-row__value { font-weight: 600; margin-left: auto; }
.proj-perf-row--alert svg { opacity: 1; color: var(--warning, #f59e0b); }

/* =========================================================
   SIDEBAR — Pendências
   ========================================================= */
.proj-pendencia {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .82rem;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
}
.proj-pendencia--ok   { color: var(--success, #22c55e); background: color-mix(in srgb, var(--success, #22c55e) 8%, transparent); }
.proj-pendencia--warn { color: var(--warning, #f59e0b); background: color-mix(in srgb, var(--warning, #f59e0b) 8%, transparent); }
.proj-pendencia--link { text-decoration: none; cursor: pointer; transition: filter .15s; }
.proj-pendencia--link:hover { filter: brightness(.92); }
.proj-pendencia svg  { flex-shrink: 0; margin-top: 1px; }
.proj-pendencia a    { color: inherit; font-weight: 600; }
.proj-pendencia__info { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.proj-pendencia__info strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proj-pendencia__date { font-size: .75rem; opacity: .75; }
.proj-pendencia__cta  { font-size: .75rem; font-weight: 600; white-space: nowrap; margin-left: auto; opacity: .85; }

/* --- Responsivo ------------------------------------------ */
@media (max-width: 900px) {
  .proj-body {
    grid-template-columns: 1fr;
    padding: 24px 20px 60px;
  }
  .proj-hero__overlay { padding: 24px 20px 28px; }
}
