/* GouveaTech Agency — Direção visual SaaS comercial para agências
   Paleta: petróleo profundo (navegação), petróleo vibrante (primária), âmbar (destaque), neutros frios. */
:root {
  --c-primary: #0E6B6B;
  --c-primary-600: #0B5555;
  --c-primary-700: #083F40;
  --c-primary-50: #E8F3F2;
  --c-primary-100: #CFE6E4;
  --c-sidebar: #0D2023;
  --c-sidebar-2: #152D31;
  --c-sidebar-border: rgba(255, 255, 255, .09);
  --c-accent: #F4A938;
  --c-accent-600: #D88A1A;
  --c-accent-50: #FEF5E7;

  --c-bg: #F4F6F8;
  --c-surface: #FFFFFF;
  --c-surface-alt: #FAFBFD;
  --c-border: #E4E8EE;
  --c-border-strong: #CBD2DC;
  --c-text: #131B24;
  --c-text-2: #475467;
  --c-muted: #667085;

  --c-success: #127A4B;
  --c-success-bg: #E6F4EC;
  --c-danger: #B42318;
  --c-danger-bg: #FDECEA;
  --c-info: #1D5FA8;
  --c-info-bg: #E8F0FA;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04);
  --shadow: 0 2px 6px rgba(16, 24, 40, .05), 0 10px 24px rgba(16, 24, 40, .05);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sidebar-w: 264px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5;
  color: var(--c-text); background: var(--c-bg); -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.02em; }
h1 { font-size: 1.65rem; font-weight: 700; }
h2 { font-size: 1.04rem; font-weight: 650; }
h3 { font-size: .95rem; font-weight: 650; }
p { margin: 0; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-size: .85em; background: var(--c-bg); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--c-border); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--c-primary-100); outline-offset: 2px; }

.icon { width: 18px; height: 18px; flex-shrink: 0; }
.muted { color: var(--c-muted); font-size: .88rem; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.link { font-size: .88rem; font-weight: 600; }
.section-spacer { margin-top: 22px; }

/* ---------- Marca ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--c-text); }
.brand-mark { width: 32px; height: 32px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: .98rem; letter-spacing: -.015em; font-weight: 700; }
.brand-text span { font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--c-primary); }
.brand-inverse { color: #fff; }
.brand-inverse .brand-text span { color: var(--c-accent); }

/* ---------- Shell & Navegação ---------- */
.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); z-index: 40;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--c-sidebar) 0%, #0A181B 100%);
  color: rgba(255, 255, 255, .88);
  border-right: 1px solid var(--c-sidebar-border);
  padding: 20px 14px 14px;
}
.sidebar-brand { padding: 2px 8px 18px; }
.sidebar-agency {
  margin: 0 4px 18px; padding: 10px 12px; border-radius: var(--radius);
  background: var(--c-sidebar-2); border: 1px solid var(--c-sidebar-border);
  display: flex; align-items: center; gap: 10px;
}
.sidebar-agency-mark {
  width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
  display: grid; place-items: center; font-size: .76rem; font-weight: 700;
  background: rgba(244, 169, 56, .16); color: var(--c-accent); border: 1px solid rgba(244, 169, 56, .3);
}
.sidebar-agency-meta { min-width: 0; display: flex; flex-direction: column; }
.sidebar-agency-label { font-size: .67rem; font-weight: 600; text-transform: uppercase; letter-spacing: .09em; color: rgba(255, 255, 255, .52); }
.sidebar-agency strong { font-size: .9rem; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sidebar-nav { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.nav-section { margin: 16px 12px 6px; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255, 255, 255, .44); }
.nav-section:first-child { margin-top: 2px; }
.nav-link {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, .74); font-weight: 550; font-size: .92rem;
  transition: background .15s, color .15s;
}
.nav-link:hover { background: rgba(255, 255, 255, .07); color: #fff; text-decoration: none; }
.nav-link.is-active {
  background: linear-gradient(90deg, rgba(14, 107, 107, .55) 0%, rgba(14, 107, 107, .28) 100%);
  color: #fff; box-shadow: inset 3px 0 0 var(--c-accent);
}
.nav-link.is-active .icon { color: var(--c-accent); }

.sidebar-user {
  display: flex; align-items: center; gap: 10px; padding: 12px 8px 4px;
  border-top: 1px solid var(--c-sidebar-border);
}
.sidebar-user-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sidebar-user-info strong { font-size: .86rem; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user-info span { font-size: .76rem; color: rgba(255, 255, 255, .58); }
.sidebar-backdrop { display: none; }

.main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  position: sticky; top: 0; z-index: 20; height: 60px; padding: 0 36px;
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-border);
}
.topbar-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar-menu, .topbar-brand { display: none; }
.topbar-context { display: flex; align-items: center; gap: 8px; font-size: .86rem; min-width: 0; }
.topbar-workspace { color: var(--c-muted); font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.topbar-sep { color: var(--c-border-strong); }
.topbar-page { color: var(--c-text); font-weight: 650; white-space: nowrap; }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.content { width: 100%; max-width: 1200px; padding: 28px 36px 56px; }

.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; flex-shrink: 0;
  background: var(--c-primary); color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .02em;
}
.avatar-soft { background: var(--c-primary-50); color: var(--c-primary); }
.avatar-primary { background: var(--c-primary); color: #fff; }
.avatar-inverse { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .18); }
.avatar-lg { width: 48px; height: 48px; font-size: .98rem; border-radius: 14px; }

.icon-button {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0;
  border-radius: var(--radius-sm); background: transparent; color: var(--c-text-2); cursor: pointer;
}
.icon-button:hover { background: var(--c-bg); color: var(--c-text); }
.icon-button-inverse { color: rgba(255, 255, 255, .72); }
.icon-button-inverse:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* ---------- Cabeçalho de página ---------- */
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-title-row { display: flex; align-items: center; gap: 14px; }
.page-subtitle { margin-top: 4px; color: var(--c-muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .93rem; }
.back-link { display: inline-block; margin-bottom: 6px; font-size: .85rem; color: var(--c-muted); font-weight: 600; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: var(--radius-sm); border: 1px solid transparent; font: inherit; font-size: .91rem; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s, transform .1s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn .icon { width: 16px; height: 16px; }
.btn-primary { background: var(--c-primary); color: #fff; box-shadow: 0 1px 2px rgba(14, 107, 107, .24); }
.btn-primary:hover { background: var(--c-primary-600); }
.btn-secondary { background: var(--c-surface); border-color: var(--c-border-strong); color: var(--c-text); }
.btn-secondary:hover { background: var(--c-bg); border-color: var(--c-muted); }
.btn-ghost { background: transparent; color: var(--c-text-2); }
.btn-ghost:hover { background: var(--c-bg); }
.btn-block { width: 100%; }

/* ---------- Cards & Indicadores ---------- */
.card {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm);
}
.card-flush { padding: 0; overflow: hidden; }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-subtitle { margin-top: 2px; font-size: .84rem; color: var(--c-muted); }
.stack { display: flex; flex-direction: column; gap: 20px; }

.banner {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  padding: 12px 16px; margin-bottom: 20px; border-radius: var(--radius);
  background: linear-gradient(90deg, var(--c-accent-50) 0%, #FFF9EE 100%);
  border: 1px solid #F6D59B; font-size: .9rem; color: #734405;
}
.banner-icon {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0;
  background: rgba(244, 169, 56, .22); color: #9C5B04;
}
.banner-copy { flex: 1; min-width: 200px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.banner-link { display: inline-flex; align-items: center; gap: 5px; font-weight: 650; color: #734405; font-size: .86rem; }
.banner-link .icon { width: 15px; height: 15px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat-card {
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg);
  padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
.stat-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--c-primary); opacity: .85; }
.stat-card--accent::before { background: var(--c-accent); }
.stat-card--success::before { background: var(--c-success); }
.stat-card--neutral::before { background: var(--c-border-strong); }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stat-label { font-size: .82rem; font-weight: 600; color: var(--c-muted); }
.stat-icon {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: var(--c-primary-50); color: var(--c-primary);
}
.stat-card--accent .stat-icon { background: var(--c-accent-50); color: #A66304; }
.stat-card--success .stat-icon { background: var(--c-success-bg); color: var(--c-success); }
.stat-card--neutral .stat-icon { background: var(--c-bg); color: var(--c-text-2); }
.stat-icon .icon { width: 16px; height: 16px; }
.stat-value { font-size: 1.95rem; font-weight: 750; letter-spacing: -.03em; line-height: 1.1; }
.stat-foot { font-size: .8rem; color: var(--c-muted); }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; align-items: start; }

/* ---------- Módulos futuros (linguagem visual criativa) ---------- */
.modules-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.module-tile {
  padding: 16px; border-radius: var(--radius); border: 1px solid var(--c-border);
  background: var(--c-surface-alt); display: flex; flex-direction: column; gap: 8px;
}
.module-tile-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.module-icon {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: var(--c-primary-50); color: var(--c-primary);
}
.module-tile--amber .module-icon { background: var(--c-accent-50); color: #A66304; }
.module-tile--slate .module-icon { background: #EEF2F6; color: #344054; }
.module-tile--emerald .module-icon { background: var(--c-success-bg); color: var(--c-success); }
.module-tile h3 { font-size: .95rem; color: var(--c-text); }
.module-tile p { font-size: .83rem; color: var(--c-muted); line-height: 1.45; }

.portal-hero-inner { display: flex; align-items: center; gap: 16px; }
.portal-hero-inner .empty-icon { margin-bottom: 0; flex-shrink: 0; }
.portal-hero-inner h2 { font-size: 1.12rem; margin-bottom: 4px; }

/* ---------- Listas ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--c-border); }
.list-item:first-child { border-top: 0; padding-top: 0; }
.list-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.list-main a, .list-main strong { font-weight: 600; color: var(--c-text); }

.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checklist li { display: flex; align-items: center; gap: 10px; font-size: .91rem; }
.checklist .check { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--c-border-strong); display: grid; place-items: center; color: transparent; flex-shrink: 0; }
.checklist .check .icon { width: 13px; height: 13px; }
.checklist li.is-done .check { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.checklist li.is-done span:last-child { color: var(--c-muted); text-decoration: line-through; }
.checklist a { font-weight: 600; }

.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.timeline li { display: flex; gap: 12px; font-size: .9rem; }
.timeline-dot { width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--c-accent); flex-shrink: 0; box-shadow: 0 0 0 3px var(--c-accent-50); }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px;
  border-radius: 999px; font-size: .75rem; font-weight: 600; white-space: nowrap;
  background: var(--c-bg); color: var(--c-text-2);
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-success { background: var(--c-success-bg); color: var(--c-success); }
.badge-muted { background: #EEF1F5; color: var(--c-muted); }
.badge-neutral { background: var(--c-bg); color: var(--c-text-2); border: 1px solid var(--c-border); }
.badge-accent { background: var(--c-accent-50); color: #8A5300; }
.badge-role-admin { background: var(--c-primary); color: #fff; }
.badge-role-manager { background: var(--c-primary-50); color: var(--c-primary); }
.badge-role-collaborator { background: #EEF1F5; color: var(--c-text-2); }
.badge-role-client { background: var(--c-accent-50); color: #8A5300; }

/* ---------- Tabelas ---------- */
.toolbar { display: flex; gap: 10px; padding: 16px; border-bottom: 1px solid var(--c-border); flex-wrap: wrap; background: var(--c-surface-alt); }
.toolbar select { width: auto; min-width: 140px; }
.search { position: relative; flex: 1; min-width: 200px; display: flex; align-items: center; }
.search .icon { position: absolute; left: 12px; color: var(--c-muted); }
.search input { padding-left: 38px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th {
  text-align: left; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--c-muted); padding: 12px 16px; background: var(--c-surface-alt); border-bottom: 1px solid var(--c-border);
}
.table td { padding: 14px 16px; border-bottom: 1px solid var(--c-border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #F9FBFD; }
.cell-sub { display: block; font-size: .8rem; color: var(--c-muted); }
.cell-person { display: flex; align-items: center; gap: 12px; }
.cell-actions { text-align: right; }
.strong-link { font-weight: 600; color: var(--c-text); }
.empty-inline { padding: 32px 16px; text-align: center; color: var(--c-muted); }
.callout {
  display: flex; gap: 12px; align-items: center; padding: 14px 16px;
  background: var(--c-primary-50); color: var(--c-primary-600); font-size: .9rem; border-bottom: 1px solid var(--c-primary-100);
}

/* ---------- Estados vazios ---------- */
.empty-state { text-align: center; padding: 28px 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty-state p { max-width: 380px; color: var(--c-muted); font-size: .9rem; margin-bottom: 8px; }
.empty-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--c-primary-50); color: var(--c-primary); margin-bottom: 4px;
}
.empty-icon .icon { width: 24px; height: 24px; }

/* ---------- Formulários ---------- */
.form-stack { display: flex; flex-direction: column; gap: 16px; }
.form-card { display: flex; flex-direction: column; gap: 4px; }
.form-section { border: 0; margin: 0 0 14px; padding: 0; }
.form-section legend { font-weight: 700; font-size: .98rem; margin-bottom: 14px; padding: 0; color: var(--c-text); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.span-2 { grid-column: span 2; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--c-text-2); }
.req { color: var(--c-danger); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=search], select, textarea {
  width: 100%; height: 42px; padding: 0 12px; font: inherit; font-size: .93rem; color: var(--c-text);
  background: var(--c-surface); border: 1px solid var(--c-border-strong); border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; padding: 10px 12px; resize: vertical; }
select:disabled { background: var(--c-bg); color: var(--c-muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-primary-100); }
.field-error { color: var(--c-danger); font-size: .82rem; font-weight: 550; }
.field:has(.field-error) input, .field:has(.field-error) select { border-color: var(--c-danger); }
.hint { font-size: .8rem; color: var(--c-muted); }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 18px; margin-top: 8px; border-top: 1px solid var(--c-border); }
.role-help { margin-top: 18px; padding: 14px 16px; border-radius: var(--radius); background: var(--c-bg); border: 1px solid var(--c-border); font-size: .85rem; color: var(--c-text-2); }
.role-help ul { margin: 6px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 3px; }

.details { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.details dt { font-size: .78rem; font-weight: 600; color: var(--c-muted); }
.details dd { margin: 2px 0 0; font-size: .93rem; overflow-wrap: anywhere; font-weight: 500; }
.notes { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--c-border); }
.notes p { margin-top: 6px; color: var(--c-text-2); font-size: .92rem; }

/* ---------- Alertas ---------- */
.alert {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border-radius: var(--radius-sm); font-size: .9rem; font-weight: 550; margin-bottom: 18px;
}
.alert-success { background: var(--c-success-bg); color: var(--c-success); border: 1px solid #BFE3CE; }
.alert-error { background: var(--c-danger-bg); color: var(--c-danger); border: 1px solid #F7C6C2; }
.alert-info { background: var(--c-info-bg); color: var(--c-info); border: 1px solid #C5DAF3; }
.alert-close {
  border: 0; background: transparent; color: currentColor; opacity: .7; cursor: pointer;
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; padding: 0;
}
.alert-close:hover { opacity: 1; background: rgba(0, 0, 0, .06); }
.alert-close .icon { width: 15px; height: 15px; }

/* ---------- Autenticação ---------- */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.auth-aside {
  background: radial-gradient(circle at 85% 15%, rgba(244, 169, 56, .16) 0%, transparent 45%),
              linear-gradient(155deg, var(--c-sidebar) 0%, var(--c-primary-700) 58%, var(--c-primary) 100%);
  color: #fff; padding: 44px 52px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  position: relative; overflow: hidden;
}
.auth-aside::after {
  content: ""; position: absolute; right: -140px; bottom: -140px; width: 380px; height: 380px;
  border-radius: 50%; border: 56px solid rgba(244, 169, 56, .15);
}
.auth-aside-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: relative; z-index: 1; }
.auth-pill {
  padding: 5px 11px; border-radius: 999px; font-size: .74rem; font-weight: 650; letter-spacing: .04em;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: var(--c-accent);
}
.auth-aside-copy { position: relative; z-index: 1; }
.auth-aside-copy h2 { font-size: 2rem; font-weight: 700; line-height: 1.18; max-width: 440px; letter-spacing: -.025em; }
.auth-aside-copy p { margin-top: 14px; max-width: 410px; color: rgba(255, 255, 255, .78); }
.auth-preview-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; max-width: 430px; }
.auth-preview-pills span {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .14);
  font-size: .82rem; font-weight: 550; color: rgba(255, 255, 255, .92);
}
.auth-preview-pills .icon { width: 15px; height: 15px; color: var(--c-accent); }
.auth-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-weight: 550; position: relative; z-index: 1; }
.auth-points li { display: flex; align-items: center; gap: 10px; }
.auth-points .icon { color: var(--c-accent); }
.auth-aside .brand-mark rect { fill: #fff; }
.auth-aside .brand-mark path:first-of-type { stroke: var(--c-primary); }
.auth-main { display: grid; place-items: center; padding: 40px 24px; background: var(--c-bg); }
.auth-card {
  width: 100%; max-width: 440px; background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow);
}
.auth-card-brand { display: none; margin-bottom: 24px; }
.auth-title { font-size: 1.6rem; }
.auth-subtitle { margin: 6px 0 24px; color: var(--c-muted); font-size: .92rem; }
.auth-switch { margin-top: 22px; text-align: center; font-size: .9rem; color: var(--c-muted); }
.auth-switch a { font-weight: 600; }
.error-state { text-align: center; }
.error-code {
  display: inline-block; margin-bottom: 10px; font-size: .8rem; font-weight: 700; letter-spacing: .1em;
  color: var(--c-primary); background: var(--c-primary-50); padding: 4px 10px; border-radius: 999px;
}

/* ---------- Responsivo ---------- */
@media (max-width: 1120px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modules-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow); }
  .nav-open .sidebar { transform: none; }
  .nav-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(16, 24, 40, .42); z-index: 30; }
  .main { margin-left: 0; }
  .topbar { padding: 0 14px; }
  .topbar-menu, .topbar-brand { display: inline-flex; }
  .topbar-context { display: none; }
  .content { padding: 22px 16px 40px; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-card-brand { display: block; }
  .auth-card { padding: 24px; }
}

@media (max-width: 600px) {
  h1 { font-size: 1.38rem; }
  .stats-grid { gap: 10px; }
  .stat-card { padding: 14px; }
  .stat-value { font-size: 1.55rem; }
  .modules-grid { grid-template-columns: 1fr; }
  .form-grid, .details, .form-row { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .hide-sm { display: none; }
  .page-header .btn { width: 100%; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions .btn { width: 100%; }
  .card { padding: 18px; }
  .card-flush { padding: 0; }
  .portal-hero-inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- Projetos e tarefas (Missão 102) ---------- */
/* Mesmos tokens e componentes da direção visual da Missão 101. */
input[type=date] {
  width: 100%; height: 42px; padding: 0 12px; font: inherit; font-size: .93rem; color: var(--c-text);
  background: var(--c-surface); border: 1px solid var(--c-border-strong); border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
.field:has(.field-error) input[type=date] { border-color: var(--c-danger); }

.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;
}

.badge-info { background: var(--c-info-bg); color: var(--c-info); }
.badge-danger { background: var(--c-danger-bg); color: var(--c-danger); }
.badge-priority { height: 22px; padding: 0 8px; font-size: .72rem; }

.stat-card--danger::before { background: var(--c-danger); }
.stat-card--danger .stat-icon { background: var(--c-danger-bg); color: var(--c-danger); }
.stats-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.section-block { margin-bottom: 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.section-head h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); font-weight: 700; }
.section-links { display: flex; gap: 16px; font-size: .88rem; font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.meta-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inline-form { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.inline-form select { width: auto; min-width: 150px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: .82rem; }
select.select-sm { height: 32px; min-width: 132px; padding: 0 8px; font-size: .82rem; }
.check-inline { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--c-text-2); white-space: nowrap; }
.check-inline input { width: 16px; height: 16px; accent-color: var(--c-primary); }

.card-header-padded { padding: 20px 20px 0; }
.details-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.project-details { margin-bottom: 20px; }
/* Contém rótulos .sr-only das linhas: sem isso eles alargam a página no celular. */
.table-wrap { position: relative; }

.progress-cell { display: flex; align-items: center; gap: 10px; min-width: 130px; }
.progress-text { font-size: .8rem; color: var(--c-muted); }
progress.progress {
  -webkit-appearance: none; appearance: none; width: 100%; max-width: 120px; height: 8px;
  border: 0; border-radius: 999px; background: var(--c-bg); overflow: hidden; color: var(--c-primary);
}
progress.progress::-webkit-progress-bar { background: var(--c-bg); border-radius: 999px; }
progress.progress::-webkit-progress-value { background: var(--c-primary); border-radius: 999px; }
progress.progress::-moz-progress-bar { background: var(--c-primary); border-radius: 999px; }

.due { white-space: nowrap; }
.due.is-overdue { color: var(--c-danger); font-weight: 600; }
.due-flag {
  display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px; font-size: .7rem; font-weight: 700;
  background: var(--c-danger-bg); color: var(--c-danger); text-transform: uppercase; letter-spacing: .04em;
}
.text-danger { color: var(--c-danger); }

.task-title { font-weight: 600; color: var(--c-text); }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 46ch; }
.cell-person-sm { gap: 8px; }
.cell-person-sm .avatar { width: 26px; height: 26px; font-size: .68rem; }
.row-overdue td:first-child { box-shadow: inset 3px 0 0 var(--c-danger); }
.row-closed .task-title { color: var(--c-muted); }
.row-actions { display: inline-flex; align-items: center; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }

.module-tile.is-available { border-color: var(--c-primary-100); }
.module-tile h3 a { color: inherit; }

@media (max-width: 1120px) {
  .stats-grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .details-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .stats-grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-actions, .inline-form { width: 100%; }
  .header-actions .inline-form select { flex: 1; }
  .row-actions { justify-content: flex-start; }
  .card-header-padded { padding: 18px 18px 0; }
  .check-inline { white-space: normal; }

  /* Tarefas em lista empilhada: a troca de status continua ao alcance no celular. */
  .task-table thead { display: none; }
  .task-table, .task-table tbody, .task-table td { display: block; width: 100%; }
  .task-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 14px 16px; border-bottom: 1px solid var(--c-border); }
  .task-table tr:last-child { border-bottom: 0; }
  .task-table td { padding: 0; border: 0; }
  .task-table td:first-child, .task-table td.cell-actions { grid-column: 1 / -1; }
  .task-table td.hide-sm { display: none; }
  .task-table tr.row-overdue { box-shadow: inset 3px 0 0 var(--c-danger); }
  .task-table tr.row-overdue td:first-child { box-shadow: none; }
  .task-table .cell-actions { text-align: left; }
  .task-table .row-actions, .task-table .inline-form { width: 100%; justify-content: flex-start; }
  .task-table .inline-form select { flex: 1; }
  .task-table .clamp { max-width: none; }
}

/* ---------- Calendário editorial (Missão 103) ---------- */
.badge-warning { background: #FFF1E0; color: #B54708; }
.badge-primary { background: var(--c-primary-50); color: var(--c-primary); }
input[type=time] {
  width: 100%; height: 42px; padding: 0 12px; font: inherit; font-size: .93rem; color: var(--c-text);
  background: var(--c-surface); border: 1px solid var(--c-border-strong); border-radius: var(--radius-sm);
}
.details-1 { grid-template-columns: minmax(0, 1fr); }
.briefing { white-space: normal; line-height: 1.6; color: var(--c-text-2); overflow-wrap: anywhere; }
.studio-slot { border-style: dashed; background: var(--c-surface-alt); }

/* Sigla do canal */
.channel {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  min-width: 24px; height: 18px; padding: 0 4px; border-radius: 5px;
  font-size: .64rem; font-weight: 800; letter-spacing: .02em; line-height: 1;
  background: var(--c-primary-50); color: var(--c-primary-700);
}

.calendar-card { overflow: hidden; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; flex-wrap: wrap; }
.cal-nav { display: flex; align-items: center; gap: 8px; }
.cal-nav .icon-button { font-size: 1.35rem; line-height: 1; text-decoration: none; }
.cal-month { font-size: 1.15rem; min-width: 11ch; text-align: center; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 10px 20px; list-style: none; font-size: .78rem; color: var(--c-muted); border-bottom: 1px solid var(--c-border); }
.cal-legend li { display: inline-flex; align-items: center; gap: 6px; }
.cal-dot { width: 9px; height: 9px; border-radius: 3px; background: var(--c-border-strong); }

/* Tons de status (pontos da legenda e borda dos itens) */
.cal-dot--muted, .cal-item--muted { --tone: #98A2B3; }
.cal-dot--neutral, .cal-item--neutral { --tone: #475467; }
.cal-dot--info, .cal-item--info { --tone: var(--c-info); }
.cal-dot--accent, .cal-item--accent { --tone: var(--c-accent-600); }
.cal-dot--warning, .cal-item--warning { --tone: #DC6803; }
.cal-dot--primary, .cal-item--primary { --tone: var(--c-primary); }
.cal-dot--success, .cal-item--success { --tone: var(--c-success); }
.cal-dot { background: var(--tone, var(--c-border-strong)); }

.cal-grid { display: grid; }
.cal-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-weekday { padding: 8px 10px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); background: var(--c-surface-alt); border-bottom: 1px solid var(--c-border); }
.cal-weekday abbr { text-decoration: none; }
.cal-day {
  min-height: 118px; padding: 6px 6px 8px; display: flex; flex-direction: column; gap: 4px; min-width: 0;
  border-right: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); background: var(--c-surface);
}
.cal-row .cal-day:last-child { border-right: 0; }
.cal-grid .cal-row:last-child .cal-day { border-bottom: 0; }
.cal-day.is-outside { background: var(--c-surface-alt); }
.cal-day.is-outside .cal-day-number { color: var(--c-border-strong); }
.cal-day-head { display: flex; align-items: center; justify-content: space-between; min-height: 26px; }
.cal-day-number { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; font-size: .82rem; font-weight: 650; color: var(--c-text-2); }
.cal-day.is-today { background: var(--c-accent-50); box-shadow: inset 0 0 0 2px var(--c-accent); }
.cal-day.is-today .cal-day-number { background: var(--c-accent); color: var(--c-sidebar); }
.cal-add { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 6px; color: var(--c-muted); opacity: 0; transition: opacity .15s, background .15s; }
.cal-add .icon { width: 14px; height: 14px; }
.cal-day:hover .cal-add, .cal-add:focus-visible { opacity: 1; }
.cal-add:hover { background: var(--c-primary-50); color: var(--c-primary); text-decoration: none; }
@media (hover: none) { .cal-add { opacity: 1; } }

.cal-item {
  display: flex; align-items: center; gap: 5px; min-width: 0; padding: 4px 6px; border-radius: 6px;
  font-size: .76rem; line-height: 1.25; color: var(--c-text); text-decoration: none;
  background: var(--c-surface); border: 1px solid var(--c-border); border-left: 3px solid var(--tone, var(--c-border-strong));
}
.cal-item:hover { text-decoration: none; border-color: var(--tone, var(--c-border-strong)); background: var(--c-surface-alt); }
.cal-time { font-size: .7rem; font-weight: 700; color: var(--c-muted); flex-shrink: 0; }
.cal-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cal-item.is-cancelled .cal-title { text-decoration: line-through; color: var(--c-muted); }

/* Agenda (celular) */
.cal-agenda { display: none; }
.agenda-day { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--c-border); }
.agenda-day:last-child { border-bottom: 0; }
.agenda-day.is-today { background: var(--c-accent-50); }
.agenda-date { display: flex; flex-direction: column; align-items: center; gap: 2px; padding-top: 2px; }
.agenda-date strong { font-size: 1.3rem; line-height: 1; }
.agenda-date span { font-size: .72rem; color: var(--c-muted); text-transform: uppercase; letter-spacing: .04em; text-align: center; }
.agenda-day.is-today .agenda-date strong { color: #A66304; }
.agenda-items { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.agenda-items .cal-item { font-size: .85rem; padding: 8px 10px; }
.agenda-add { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; }
.agenda-add .icon { width: 14px; height: 14px; }

@media (max-width: 760px) {
  .cal-grid { display: none; }
  .cal-agenda { display: block; }
  .cal-head { padding: 14px 16px; }
  .cal-legend { padding: 10px 16px; }
}

/* ---------- Estúdio de Criação: telas administrativas (Missão 104) ---------- */
input[type=number] {
  width: 100%; height: 42px; padding: 0 12px; font: inherit; font-size: .93rem; color: var(--c-text);
  background: var(--c-surface); border: 1px solid var(--c-border-strong); border-radius: var(--radius-sm);
}
.section-gap { margin-bottom: 16px; }

.doc-grid { list-style: none; margin: 0; padding: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.doc-card { display: flex; flex-direction: column; border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; background: var(--c-surface); transition: box-shadow .15s, border-color .15s; }
.doc-card:hover { border-color: var(--c-primary-100); box-shadow: var(--shadow); }
.doc-thumb { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: #E6EBEF; overflow: hidden; }
.doc-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; box-shadow: 0 1px 4px rgba(16, 24, 40, .14); }
.doc-thumb-empty { color: var(--c-muted); }
.doc-thumb-empty .icon { width: 32px; height: 32px; }
.doc-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.doc-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.doc-meta .muted { font-size: .76rem; }

.template-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.template-card { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--c-border); border-radius: var(--radius); }
.template-card > div { flex: 1; min-width: 0; }
.template-ratio, .template-thumb { width: 48px; height: 48px; flex-shrink: 0; border-radius: 8px; background: var(--c-primary-50); color: var(--c-primary); display: inline-flex; align-items: center; justify-content: center; object-fit: cover; }

.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.choice { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--c-border-strong); border-radius: 10px; cursor: pointer; background: var(--c-surface); }
.choice:has(input:checked) { border-color: var(--c-primary); background: var(--c-primary-50); box-shadow: 0 0 0 1px var(--c-primary); }
.choice input { accent-color: var(--c-primary); width: 16px; height: 16px; flex-shrink: 0; }
.choice-body { display: flex; flex-direction: column; min-width: 0; font-size: .9rem; }
.choice-body .muted { font-size: .78rem; }
.format-shape { display: inline-block; flex-shrink: 0; width: 26px; height: 26px; border: 2px solid var(--c-primary); border-radius: 4px; background: var(--c-surface); }
.custom-size { margin-top: 14px; }

.version-list { list-style: none; margin: 0; padding: 0; }
.version-item { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--c-border); }
.version-item:last-child { border-bottom: 0; }
.version-thumb { width: 72px; height: 72px; flex-shrink: 0; border-radius: 8px; background: #E6EBEF; display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--c-muted); }
.version-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.version-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: .9rem; }
.version-main .muted { font-size: .8rem; }

/* Peças do conteúdo editorial */
.piece-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.piece-item { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--c-border); border-radius: 10px; }
.piece-thumb { width: 64px; height: 64px; flex-shrink: 0; border-radius: 8px; background: #E6EBEF; display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--c-muted); }
.piece-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.piece-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.piece-main .muted { font-size: .78rem; }

@media (max-width: 600px) {
  .doc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px; }
  .version-item { flex-wrap: wrap; }
  .version-item .row-actions { width: 100%; }
  .piece-item { flex-wrap: wrap; }
}

/* Correção: a regra genérica de input[type=search] (declarada depois) zerava o recuo do
   ícone de busca, que ficava por cima do texto em Clientes, Projetos e Estúdio. */
.search input[type=search] { padding-left: 38px; }

/* ---------- Integrações e Canva (Missão 105) ---------- */
.tabs { display: flex; gap: 4px; margin: 0 0 16px; border-bottom: 1px solid var(--c-border); }
.tabs a { padding: 10px 14px; font-weight: 600; font-size: .9rem; color: var(--c-text-2); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { text-decoration: none; color: var(--c-text); }
.tabs a[aria-current="page"] { color: var(--c-primary); border-bottom-color: var(--c-accent); }

.integration-card .callout { margin: 0 0 16px; }
.integration-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.integration-title { flex: 1; min-width: 0; }
.integration-logo {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--c-primary-50); color: var(--c-primary); font-weight: 800; font-size: 1.2rem;
}
.integration-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.integration-actions form { margin: 0; }
.integration-actions .hint { flex-basis: 100%; }
.is-danger-text { color: var(--c-danger); }
.howto { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; color: var(--c-text-2); font-size: .9rem; }

.canva-link-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--c-border); background: var(--c-accent-50); }
.canva-link-bar select { width: auto; min-width: 280px; max-width: 100%; }
.canva-error { margin: 16px; }
.pager { display: flex; justify-content: space-between; gap: 10px; padding: 0 16px 16px; }
.pager .btn:only-child { margin-left: auto; }
.section-gap-top { margin-top: 12px; }

/* Menu suspenso (antes só no editor): ações compactas nas listas */
.menu { position: relative; display: inline-block; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 260px; padding: 6px;
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 12px; box-shadow: var(--shadow);
}
.menu-panel form { margin: 0; }
.menu-panel button { display: block; width: 100%; text-align: left; padding: 9px 10px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: .88rem; color: var(--c-text); cursor: pointer; }
.menu-panel button:hover { background: var(--c-primary-50); color: var(--c-primary-700); }
.menu-hint { padding: 6px 10px 4px; font-size: .74rem; color: var(--c-muted); border-top: 1px solid var(--c-border); margin-top: 4px; }

@media (max-width: 600px) {
  .integration-head { flex-wrap: wrap; }
  .canva-link-bar select { min-width: 0; width: 100%; }
  .menu-panel { right: auto; left: 0; min-width: min(260px, calc(100vw - 48px)); }
}

/* Diagnóstico do retorno OAuth local (Missão 105-A) */
.details-callback { margin: 0 0 16px; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.details-callback code { overflow-wrap: anywhere; }
@media (max-width: 600px) { .details-callback { grid-template-columns: minmax(0, 1fr); } }

/* Problemas de configuração da integração (Missão 105-B) */
.callout-danger { background: var(--c-danger-bg); border-color: #F5C2BC; color: #7A1A12; margin-bottom: 16px; }
.problem-list { margin: 6px 0 0; padding-left: 18px; }

/* Página intermediária "Abrindo o Canva…" (Missão 105-C) */
.handoff { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: var(--c-bg); }
.handoff-card { width: min(440px, 100%); text-align: center; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 32px 28px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.handoff-card .brand-mark { width: 44px; height: 44px; }
.handoff-card h1 { font-size: 1.35rem; }
.handoff-card p { color: var(--c-text-2); font-size: .92rem; }
.handoff-hint { font-size: .85rem; color: #8A5300; background: var(--c-accent-50); border-radius: 8px; padding: 8px 12px; }
.handoff-back { font-size: .85rem; }

/* Missão 106: sincronização dos designs do Canva */
.sync-state { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.sync-list .piece-main { min-width: 0; }
.piece-item.has-sync-conflict { flex-wrap: wrap; }
.has-sync-conflict .sync-conflict { flex: 1 0 100%; margin-top: 4px; display: block; }
.sync-conflict .row-actions { justify-content: flex-start; flex-wrap: wrap; margin-bottom: 6px; }
.sync-conflict .hint { margin: 0; }
.sync-conflict p { margin: 0 0 8px; }
.sync-compare { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; }
.sync-compare figure { margin: 0; width: 140px; max-width: 45%; }
.sync-compare img { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--c-border); background: var(--c-bg); }
.sync-compare figcaption { font-size: .78rem; color: var(--c-muted); margin-top: 4px; }
.cal-flag { display: inline-flex; flex: 0 0 auto; margin-left: auto; color: #B54708; }
.cal-flag .icon { width: 12px; height: 12px; }
