/* Complementos do app real. O visual base vem dos CSS do protótipo v7 (copiados sem alteração). */
a.project-station, a.studio-desk { text-decoration: none; color: inherit; display: block; }
a.strategy-station { text-decoration: none; color: white; }
a.strategy-station h2 { color: white; }
a.project-station { display: flex; }
.studio-desk.is-locked { opacity: .55; cursor: not-allowed; }
.tabs a { padding: 8px 14px; font-size: 12px; border-radius: 5px; text-decoration: none; color: inherit; }
.tabs a.active { background: white; box-shadow: 0 2px 3px #26114b09; color: var(--purple); }
a.btn { text-decoration: none; color: inherit; }
button.nav-item { background: none; border: 0; cursor: pointer; font: inherit; }
.boot, .loading { padding: 60px; color: var(--muted); text-align: center; }
.flex.wrap { flex-wrap: wrap; gap: 12px; align-items: center; }
.spacer { height: 24px; }

/* Login */
.login-page { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(circle at 20% 10%, #efe4ff, transparent 45%), var(--bg); padding: 16px; }
.login-card { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 36px; width: min(420px, 100%); box-shadow: 0 30px 80px #2a145010; }
.login-card .logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-bottom: 26px; }
.login-card .logo img { width: 34px; }
.login-card .logo span { font-family: var(--heading); font-size: 20px; }
.login-card h1 { font-family: var(--heading); font-size: 30px; margin: 0 0 6px; }
.login-card input { width: 100%; }
.login-card .btn { width: 100%; margin-top: 22px; }
.form-error { color: #c65e70; font-size: 13px; margin: 12px 0 0; }
.fine { font-size: 12px; color: var(--muted); margin-top: 20px; }

/* Estado vazio / restrito */
.empty-state { max-width: 560px; margin: 40px auto; text-align: center; display: grid; gap: 14px; justify-items: center; }
.empty-state h1 { font-family: var(--heading); }

/* Tráfego */
.weekly-board section.is-today { outline: 2px solid #d9c4fb; outline-offset: -2px; }
.client-work .carry-note { font-size: 11px; color: #8a7ca6; margin: 6px 0 0; }
.client-work .carry-note.warn, .flow-item small.warn { color: #b47922; }
.flow-item { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; font-size: 14px; letter-spacing: 0; color: var(--ink); }
.flow-item input { width: auto; margin-top: 3px; }
.flow-item small { grid-column: 2; font-size: 11px; color: var(--muted); }
.flow-item.carried { grid-template-columns: 1fr; color: var(--muted); }
.flow-item.carried small { grid-column: 1; }
.inline-form { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; align-items: center; }
.inline-form input { flex: 1; min-width: 140px; width: auto; }
.inline-form .btn { margin-top: 0; width: auto; align-self: stretch; }
.source-note { white-space: pre-wrap; }
.history-entry { font-size: 12px; }
.audit-list > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.audit-list label { margin: 0; font-size: 13px; letter-spacing: 0; color: var(--ink); display: flex; gap: 8px; align-items: center; }
.audit-list input { width: auto; }

/* Design */
.quota { margin-left: auto; font-size: 11px; font-weight: 600; color: #7737c5; background: #f1e8ff; padding: 3px 7px; border-radius: 5px; }
.quota.example { color: #b47922; background: #fff2df; }
.compact-client header .quota + .textbtn { margin-left: 6px; }
.post-status.st-aguardando_cliente { background: #fff2df; color: #b47922; }
.post-status.st-alteracoes_solicitadas { background: #fff0f1; color: #c65e70; }
.post-status.st-postado { background: #e4f7ef; color: #198363; }
.status-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; margin: 0; font-size: 13px; letter-spacing: 0; color: var(--ink); cursor: pointer; }
.chip input { width: auto; margin: 0; }
.chip:has(input:checked) { border-color: var(--purple); background: #f6f0ff; color: var(--purple); }
.edit-details { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 14px; }
.edit-details summary { cursor: pointer; font-weight: 600; font-size: 13px; }
.sector-boxes { border: 0; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sector-boxes legend { font-size: 12px; margin-bottom: 8px; padding: 0; }

/* Clientes */
.client-search { width: min(360px, 100%); }
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 18px; }
.client-tile { display: flex; gap: 14px; align-items: center; background: white; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.client-tile h3 { margin: 0 0 4px; font-size: 15px; }
.client-tile small { color: var(--muted); font-size: 12px; }
.client-tile .textbtn { margin-left: auto; white-space: nowrap; }
.client-monogram.big { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 14px; }

/* Administração */
.admin-table { overflow-x: auto; background: white; border: 1px solid var(--line); border-radius: 14px; margin-top: 18px; }
.admin-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.admin-table th { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.admin-table tr.inactive td { opacity: .55; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 18px; }
.card.narrow { max-width: 520px; }
.card input { width: 100%; }
ul.plain { list-style: none; padding: 0; margin: 10px 0; font-size: 13px; }
ul.plain li { padding: 5px 0; border-bottom: 1px solid var(--line); }
.temp-password code { font-size: 22px; letter-spacing: .08em; background: #f6f0ff; padding: 10px 16px; border-radius: 10px; display: inline-block; user-select: all; }

@media (max-width: 720px) {
  .main { padding-left: 16px; padding-right: 16px; }
  .admin-table table { min-width: 640px; }
}

/* Ajustes de formulário sobre as regras genéricas do protótipo */
.dialog-body label.chip, .status-choices label.chip, .sector-boxes label.chip { display: inline-flex; margin: 0; width: auto; }
.dialog-body .chip input[type=radio], .dialog-body .chip input[type=checkbox], .flow-item input[type=checkbox], .audit-list input[type=checkbox] { width: auto; padding: 0; border: 0; margin: 0; accent-color: var(--purple); }
.main p a, .dialog-body p a { color: var(--purple); font-weight: 600; }

/* Gestão de marketing */
.plan-layout { display: grid; grid-template-columns: 260px 1fr; gap: 18px; margin-top: 18px; align-items: start; }
.plan-clients { display: grid; gap: 6px; max-height: 75vh; overflow: auto; }
.plan-chip { display: grid; gap: 5px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: white; text-decoration: none; color: var(--ink); font-size: 13px; }
.plan-chip .tag { justify-self: start; }
.plan-chip.active { border-color: var(--purple); box-shadow: 0 0 0 2px #f1e8ff; }
.plan-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.plan-grid textarea, .plan-grid input { width: 100%; }
.plan-side .btn { width: 100%; margin-top: 10px; }
.plan-side h3 { margin-top: 22px; }

/* Gestor de projetos */
.briefing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 18px 0; }
.briefing-card { text-align: left; background: white; border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 6px; cursor: pointer; font: inherit; color: var(--ink); }
.briefing-card:hover { border-color: #c4afe6; }
.briefing-card h3 { margin: 6px 0 0; font-size: 15px; }
.briefing-card p { margin: 0; font-size: 13px; color: var(--muted); }
.briefing-card small { color: var(--muted); font-size: 11px; }

@media (max-width: 900px) {
  .plan-layout, .plan-grid { grid-template-columns: 1fr; }
  .plan-clients { max-height: none; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
.plan-grid label { display: block; font-size: 12px; color: var(--muted); margin: 16px 0 6px; letter-spacing: 0; }
.plan-grid h2 { margin: 0 0 6px; font-size: 22px; }
