:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --panel-2: #f5f5f5;
  --ink: #050505;
  --muted: #666666;
  --line: #d8d8d8;
  --dark: #050505;
  --dark-2: #1b1b1b;
  --gold: #050505;
  --gold-2: #050505;
  --green: #050505;
  --red: #555555;
  --shadow: none;
  --radius: 0;
  --display-font: "Archivo", ui-sans-serif, system-ui, sans-serif;
  color-scheme: light;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body.wl-classic,
body.wl-auth-screen {
  color: var(--ink);
  background: var(--bg);
}

body.wl-classic button,
body.wl-classic input,
body.wl-classic select,
body.wl-classic textarea,
body.wl-auth-screen button,
body.wl-auth-screen input {
  border-radius: 0 !important;
}

body.wl-classic ::selection,
body.wl-auth-screen ::selection {
  background: var(--ink);
  color: var(--bg);
}

body.wl-classic ::-webkit-scrollbar,
body.wl-auth-screen ::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

body.wl-classic ::-webkit-scrollbar-track,
body.wl-auth-screen ::-webkit-scrollbar-track {
  background: var(--bg);
}

body.wl-classic ::-webkit-scrollbar-thumb,
body.wl-auth-screen ::-webkit-scrollbar-thumb {
  border: 3px solid var(--bg);
  background: var(--ink);
}

.access-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(18px, 5vw, 56px);
  background: var(--bg);
}

.access-card {
  width: min(520px, 100%);
  border: 1px solid var(--ink);
  background: var(--bg);
  padding: clamp(22px, 5vw, 42px);
}

.access-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.access-brand img,
.access-brand span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  object-fit: contain;
  font-weight: 900;
}

.access-brand strong {
  font-weight: 900;
}

.access-card h1 {
  margin: 24px 0 12px;
  font-size: clamp(38px, 7vw, 68px);
  line-height: .9;
  letter-spacing: 0;
}

.access-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.access-form {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.access-form label,
.access-error {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.access-form input {
  min-height: 48px;
  border: 1px solid var(--ink);
  padding: 12px;
  outline: 0;
}

.access-form input:focus {
  box-shadow: 0 0 0 3px var(--ink);
}

.access-form button {
  min-height: 48px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  font-weight: 900;
  cursor: pointer;
}

.access-error {
  margin-top: 18px;
  border: 1px dashed var(--ink);
  padding: 12px;
}

.project-hub {
  min-height: 100vh;
  padding: 16px 16px 24px;
  background: var(--bg);
}

.hub-shell {
  max-width: 1480px;
  gap: 14px;
}

.hub-top,
.new-project,
.project-card,
.card,
.topbar,
.summary,
.drawer-panel,
.success-toast,
.brandbook-guide,
.environment-hero,
.ai-composer,
.crm-modal__panel {
  border: 1px solid var(--ink) !important;
  border-radius: 0 !important;
  background: var(--panel) !important;
  box-shadow: none !important;
}

.hub-top {
  min-height: 126px;
  padding: 18px 22px;
}

.hub-brand img {
  max-height: 64px;
  object-fit: contain;
}

.wl-logo-slot {
  width: 220px;
  min-height: 70px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  padding: 10px;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  text-transform: lowercase;
  cursor: pointer;
}

.brand-mark .wl-logo-slot {
  width: 100%;
  min-height: 84px;
  border-color: rgba(255, 255, 255, .24);
}

.wl-logo-slot img {
  max-width: 100%;
  max-height: 76px;
  object-fit: contain;
}

.wl-logo-slot.has-logo {
  background: var(--bg);
  color: var(--ink);
}

.hub-title strong,
#projectName,
.environment-hero h2,
.access-card h1 {
  font-family: "Archivo", ui-sans-serif, system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0;
}

.hub-title span,
.project-card small,
.summary-item label,
.team-item small,
.doc-item small,
.muted,
.brain-panel-intro,
.ai-action span,
.ai-context-note {
  color: var(--muted) !important;
}

.new-project {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) auto;
  padding: 12px;
}

.new-project input,
.summary-item input,
.summary-item select,
td input,
td select,
.panel-form input,
.panel-form select,
.panel-form textarea,
.brain-field textarea,
.brain-field input,
.brain-tab,
.ai-action,
.ai-composer textarea,
.meeting-body input,
.proposal-form input,
.proposal-form select,
.proposal-form textarea {
  border: 1px solid var(--line) !important;
  background: var(--bg) !important;
  color: var(--ink) !important;
  outline: 0;
}

.new-project input:focus,
.summary-item input:focus,
.summary-item select:focus,
td input:focus,
td select:focus,
.panel-form input:focus,
.panel-form select:focus,
.panel-form textarea:focus,
.brain-field textarea:focus,
.brain-field input:focus,
.ai-composer textarea:focus,
.proposal-form input:focus,
.proposal-form select:focus,
.proposal-form textarea:focus {
  border-color: var(--ink) !important;
  box-shadow: 0 0 0 3px var(--ink) !important;
}

.project-list {
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.project-card {
  min-height: 126px;
}

.project-card:hover {
  transform: translateY(-1px);
  background: var(--soft, #f5f5f5) !important;
}

.app {
  grid-template-columns: 250px minmax(0, 1fr);
  background: var(--bg);
}

.sidebar {
  color: var(--bg);
  background: var(--ink) !important;
  box-shadow: none;
}

.brand-mark,
.quote,
.user-card {
  border-color: rgba(255, 255, 255, .18) !important;
}

.project-chip,
.quote .mark,
.signature,
.nav .active span:last-child,
.nav button.active .nav-icon,
.nav button:hover .nav-icon {
  color: var(--bg) !important;
}

.ghost-btn,
.action-btn,
.mini-btn,
.button,
.icon-button {
  border: 1px solid var(--ink) !important;
  background: var(--bg) !important;
  color: var(--ink) !important;
  font-weight: 900;
}

.action-btn.primary,
.mini-btn.primary,
.button.primary,
.brain-tab.active {
  background: var(--ink) !important;
  color: var(--bg) !important;
}

#backToProjects {
  border-color: rgba(255, 255, 255, .28) !important;
  color: var(--bg) !important;
  background: transparent !important;
}

.topbar {
  border-bottom: 0 !important;
}

.summary {
  border-top: 1px solid var(--line) !important;
}

main {
  background: var(--soft, #f5f5f5);
}

.shell {
  max-width: 1500px;
}

.card-head,
.summary-item,
th,
td,
.team-item,
.doc-item,
.deliverable-item,
.milestone-item {
  border-color: var(--line) !important;
}

.card.dark,
.environment-hero {
  color: var(--bg) !important;
  background: var(--ink) !important;
  border-color: var(--ink) !important;
}

.dark .card-head,
.card.dark .card-head {
  border-color: rgba(255, 255, 255, .2) !important;
}

.card.dark input,
.meeting-link {
  color: var(--bg) !important;
  border-color: rgba(255, 255, 255, .24) !important;
  background: transparent !important;
}

.bar-bg,
.brain-progress {
  background: #e5e5e5 !important;
}

.bar-fill,
.brain-progress span {
  background: var(--ink) !important;
  box-shadow: none !important;
}

.pill,
.pill.tag-lider,
.pill.tag-estrategia,
.pill.tag-criacao,
.pill.tag-direcao,
.pill.tag-conteudo,
.pill.tag-pesquisa {
  border: 1px solid var(--ink);
  background: var(--ink) !important;
  color: var(--bg) !important;
}

.phase-bar {
  background: #6c8d27 !important;
  box-shadow: none !important;
}

.phase-bar.in-progress,
.phase-row:nth-of-type(4n + 1) .phase-bar {
  background: #e3a90f !important;
}

.phase-bar.pending {
  background: #050505 !important;
}

.phase-bar.at-risk {
  background: #b64c36 !important;
}

.pill.gold {
  background: #e3a90f !important;
  color: #050505 !important;
}

.pill.green {
  background: #6c8d27 !important;
  color: #ffffff !important;
}

.pill.dark {
  background: #050505 !important;
  color: #ffffff !important;
}

.pill.red {
  background: #b64c36 !important;
  color: #ffffff !important;
}

.team-item .pill[style] {
  border-color: transparent !important;
}

.status-dot.done,
.status-dot.in-progress,
.status-dot.pending,
.status-dot.at-risk,
.priority-mark.high,
.priority-mark.medium,
.priority-mark.low {
  background: var(--ink) !important;
}

.donut {
  filter: grayscale(1) contrast(1.1);
}

.environment-grid,
.bottom-grid,
.content-grid {
  align-items: start;
}

.brain-score {
  border-color: rgba(255, 255, 255, .25) !important;
  background: transparent !important;
}

.brain-score strong,
.ai-badge {
  color: var(--bg) !important;
}

.ai-badge {
  border: 1px solid currentColor;
  background: transparent !important;
}

.brandbook-guide-head,
.brandbook-logo-stage,
.brandbook-showcase,
.brandbook-assets article {
  border-color: var(--line) !important;
}

.studio-crm {
  display: grid;
  gap: 16px;
  margin-top: 0;
  padding: 18px;
}

.panel-head,
.crm-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.panel-head h2,
.crm-modal__header h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1;
}

.panel-head p {
  max-width: 66ch;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.crm-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(210px, 1fr));
  gap: 10px;
  overflow-x: auto;
}

.crm-column {
  min-width: 210px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--soft, #f5f5f5);
}

.crm-column.is-drag-over {
  border-color: var(--ink);
  background: var(--bg);
}

.crm-column-head {
  display: grid;
  gap: 5px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.crm-column-title {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
}

.crm-column-title strong::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 999px;
  background: var(--status-color);
}

.crm-total,
.crm-card__value,
.crm-card__owner {
  color: var(--ink) !important;
  font-weight: 900;
}

.crm-count {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.crm-card {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--card-bg);
  color: var(--card-ink);
  cursor: grab;
}

.crm-card.is-dragging {
  opacity: .45;
}

.crm-card a,
.crm-card span {
  color: var(--card-muted);
  font-size: 12px;
}

.crm-card a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.crm-card__footer,
.proposal-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.contact-badge {
  border: 1px solid currentColor;
  padding: 5px 7px;
  font-size: 11px;
  font-weight: 900;
}

.crm-empty {
  min-height: 92px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  padding: 10px;
}

.crm-modal {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: grid;
  place-items: center;
  padding: 18px;
}

.crm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, .58);
}

.crm-modal__panel {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: min(820px, calc(100vh - 36px));
  overflow: auto;
  padding: 22px;
}

.proposal-form {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field-grid label {
  display: grid;
  gap: 7px;
}

.field-grid label span,
.interaction-history h3,
.context-line {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.full-field {
  grid-column: 1 / -1;
}

.proposal-form input,
.proposal-form select,
.proposal-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px;
}

.proposal-form textarea {
  resize: vertical;
}

.crm-modal[data-mode="quick"] .full-only {
  display: none;
}

.interaction-history {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.history-list {
  display: grid;
  gap: 8px;
}

.history-item {
  border: 1px solid var(--line);
  padding: 10px;
}

@media (hover: hover) and (pointer: fine) {
  .action-btn:hover,
  .mini-btn:hover,
  .button:hover,
  .icon-button:hover {
    background: var(--ink) !important;
    color: var(--bg) !important;
  }
}

@media (max-width: 1180px) {
  .app {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .new-project,
  .content-grid,
  .bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .project-hub,
  main {
    padding: 10px;
  }

  .hub-top,
  .new-project,
  .panel-head,
  .crm-modal__header {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .hub-brand {
    flex-direction: column;
  }

  .field-grid,
  .crm-board {
    grid-template-columns: 1fr;
  }

  .crm-column {
    min-width: 0;
  }
}
