:root {
  --canvas: #f5f7fa;
  --surface: #ffffff;
  --ink: #263c50;
  --secondary: #6c7885;
  --line: #dde5ee;
  --brand-blue: #1d5c96;
  --brand-navy: #143b60;
  --brand-soft: #edf4fc;
  --accent-orange: #f18b32;
  --amber-soft: #fff0df;
  --amber: #8a521c;
  --red-soft: #fce9e6;
  --red: #9b453b;
  --blue-soft: #eaf0fa;
  --blue: #476487;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-size: 14px;
  line-height: 1.5;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
button:disabled { cursor: not-allowed; }
button { color: inherit; }
a { color: var(--brand-blue); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #1d5c96; outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 30px; font-weight: 600; letter-spacing: -1.1px; line-height: 1.2; }
h2 { font-size: 18px; font-weight: 600; letter-spacing: -.35px; }
h3 { font-size: 16px; font-weight: 600; }
.skip-link { position: absolute; top: -60px; left: 16px; z-index: 20; background: white; padding: 12px; border-radius: 8px; }
.skip-link:focus { top: 10px; }
.app-shell { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--brand-navy); color: #edf4fc; padding: 34px 19px 24px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; font-size: 20px; font-weight: 600; letter-spacing: -.8px; line-height: 1.1; margin: 0 8px 47px; }
.brand > span:last-child { white-space: nowrap; }
.brand-mark { width: 40px; height: 42px; background: var(--accent-orange); color: var(--brand-navy); display: flex; align-items: center; justify-content: center; border-radius: 13px 13px 13px 3px; font-family: Georgia, serif; letter-spacing: -5px; padding-right: 4px; font-size: 30px; font-weight: 400; flex-shrink: 0; }
.brand-mark span { transform: translateY(-4px); display: inline-block; }
.brand-caption { display: block; font-size: 7px; letter-spacing: 1.2px; margin-top: 7px; color: #b8ccdf; font-weight: 500; }
.sidebar-label { color: #9cb6cf; font-size: 10px; font-weight: 600; letter-spacing: 1.4px; padding: 0 16px; margin-bottom: 14px; }
.main-nav { display: flex; flex-direction: column; gap: 7px; }
.nav-item { width: 100%; border: 0; border-radius: 8px; padding: 12px 13px; display: flex; gap: 11px; align-items: center; background: transparent; color: #bdcfe0; text-align: left; font-size: 13px; font-weight: 500; }
.nav-item > span:first-child { width: 20px; font-size: 21px; line-height: 1; text-align: center; font-weight: 400; }
.ui-icon { display: block; width: 20px; height: 20px; flex-shrink: 0; }
.nav-icon { display: inline-flex; align-items: center; justify-content: center; }
.nav-item:hover { background: #214c73; color: white; }
.nav-item.active { background: var(--accent-orange); color: var(--brand-navy); }
.nav-count { font-size: 10px; margin-left: auto; background: #315e86; color: #e8f1fb; border-radius: 5px; min-width: 22px; padding: 1px 4px; text-align: center; }
.nav-item.active .nav-count { background: #ffb36d; color: #173b60; }
.sidebar-bottom { margin-top: auto; padding-top: 36px; }
.sidebar-note { margin: 0 8px 29px; padding: 17px 14px; background: #20496f; border-radius: 11px; font-family: Georgia, serif; font-size: 16px; line-height: 1.45; color: #dbe7f2; }
.note-spark { display: block; color: var(--accent-orange); font-family: inherit; font-size: 22px; margin-bottom: 7px; }
.local-status { display: flex; gap: 8px; align-items: center; margin: 0 15px; font-size: 11px; color: #d2e1f0; }
.local-status > span { width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: var(--accent-orange); }
.workspace { min-width: 0; display: flex; flex-direction: column; }
.demo-banner { padding: 8px 24px; background: var(--amber-soft); color: #865221; text-align: center; font-size: 12px; font-weight: 600; border-bottom: 1px solid #f4d7b8; }
.topbar { height: 77px; padding: 0 38px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); background: #f9fbfd; }
.breadcrumb { display: flex; align-items: center; gap: 14px; font-size: 11px; color: var(--secondary); }
.breadcrumb strong { color: var(--ink); font-weight: 500; }
.topbar-right { display: flex; align-items: center; gap: 19px; }
.signed-in-user { color: #4c6680; font-size: 11px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logout-button { padding: 6px 10px; border: 1px solid #d4dbe2; border-radius: 6px; background: transparent; color: #4c6781; font-size: 11px; }
.logout-button:hover { background: #e6ecf2; }
.date-label { font-size: 11px; color: var(--secondary); }
.help-button { width: 29px; height: 29px; border: 1px solid #d2d8de; background: transparent; border-radius: 50%; color: var(--secondary); }
main { padding: 33px 38px 40px; flex: 1; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.page-heading p { color: var(--secondary); margin-top: 8px; font-size: 12px; }
.eyebrow { text-transform: uppercase; letter-spacing: 1.5px; color: var(--secondary); font-size: 9px; font-weight: 600; margin-bottom: 9px; }
.button { border: 1px solid #d3d9df; border-radius: 7px; background: white; padding: 10px 14px; color: var(--brand-blue); font-size: 12px; font-weight: 500; display: inline-flex; gap: 8px; align-items: center; justify-content: center; text-decoration: none; min-height: 40px; white-space: nowrap; }
.button:hover { background: #ecf0f5; border-color: #a8b6c5; }
.button.primary { background: var(--brand-blue); border-color: var(--brand-blue); color: #fff; }
.button.primary:hover { background: #164b7d; }
.button.small { padding: 7px 11px; min-height: 33px; font-size: 11px; }
.button.ghost { background: transparent; border-color: transparent; padding-left: 0; padding-right: 0; }
.button:disabled { opacity: .55; }
.plus { font-size: 20px; line-height: .8; font-weight: 400; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 25px; }
.stats.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 20px; min-width: 0; }
.stat-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--secondary); font-size: 11px; }
.stat-symbol { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 27px; height: 27px; border-radius: 7px; background: #eaeef3; color: #4e5f72; font-size: 16px; }
.stat-value { margin-top: 12px; font-size: 27px; letter-spacing: -1px; font-weight: 500; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; line-height: 1.2; }
.stat-caption { color: var(--secondary); font-size: 10px; margin-top: 8px; }
.stat.highlight { background: var(--brand-soft); border-color: #d0e0f0; }
.stat.highlight .stat-symbol { background: #dbe9f8; }
.section-card { border: 1px solid var(--line); border-radius: 11px; background: var(--surface); overflow: hidden; margin-bottom: 22px; }
.section-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 21px 23px; }
.section-header p { font-size: 11px; color: var(--secondary); margin-top: 4px; }
.section-header h2 { font-size: 15px; }
.section-tag { font-size: 10px; color: var(--secondary); padding: 3px 8px; border: 1px solid var(--line); border-radius: 20px; }
.intro-card { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 27px; background: #e8f0f9; border-radius: 11px; margin-bottom: 24px; }
.intro-card h2 { font-family: Georgia, serif; font-size: 22px; font-weight: 400; line-height: 1.3; }
.intro-card p { color: #556e88; font-size: 11px; margin-top: 7px; max-width: 450px; }
.intro-glyph { width: 66px; height: 66px; border-radius: 50%; border: 1px solid #bdd1e5; display: flex; align-items: center; justify-content: center; font-size: 36px; color: #517aa2; flex-shrink: 0; }
.onboarding { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 6px 23px 24px; gap: 20px; }
.onboarding-step { padding-right: 12px; }
.step-number { width: 25px; height: 25px; display: inline-flex; justify-content: center; align-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand-blue); margin-bottom: 11px; font-size: 11px; }
.onboarding-step h3 { font-size: 12px; margin-bottom: 5px; }
.onboarding-step p { font-size: 11px; color: var(--secondary); line-height: 1.6; }
.lower-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 22px; }
.followup-row { display: flex; align-items: center; gap: 13px; padding: 15px 23px; border-top: 1px solid #e7ebf0; }
.followup-copy { flex: 1; min-width: 0; }
.followup-copy strong { display: block; font-size: 12px; font-weight: 500; }
.followup-copy span { display: block; color: var(--secondary); font-size: 10px; margin-top: 3px; overflow-wrap: anywhere; }
.followup-date { font-size: 10px; color: var(--secondary); white-space: nowrap; }
.followup-date.late { color: var(--red); }
.avatar { height: 34px; width: 34px; border-radius: 50%; background: #e6ebf0; color: #516377; display: inline-flex; align-items: center; justify-content: center; font-family: Georgia, serif; font-size: 14px; flex-shrink: 0; }
.partner-mini { display: flex; gap: 12px; align-items: center; padding: 15px 23px; border-top: 1px solid #e7ebf0; }
.partner-mini .avatar { border-radius: 9px; }
.partner-mini .followup-copy span { margin-top: 2px; }
.partner-mini .commission-mini { color: var(--brand-blue); font-size: 11px; white-space: nowrap; }
.empty-state { padding: 35px 24px; text-align: center; color: var(--secondary); }
.empty-icon { color: #5981a5; background: #e9eef4; border-radius: 50%; width: 43px; height: 43px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin: 0 auto 14px; }
.empty-state h3 { font-size: 14px; color: var(--ink); font-weight: 500; margin-bottom: 6px; }
.empty-state p { font-size: 11px; max-width: 360px; margin: 0 auto; }
.empty-state .button { margin-top: 17px; }
.filters { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.search-field { position: relative; flex: 1; min-width: 180px; max-width: 380px; }
.search-field input { width: 100%; border: 1px solid #d4dbe2; border-radius: 7px; padding: 11px 12px 11px 35px; color: var(--ink); background: white; font-size: 12px; min-height: 41px; }
.search-field > span { position: absolute; left: 12px; top: 7px; font-size: 20px; color: #7c8690; pointer-events: none; }
.filter-group { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-select { border: 1px solid #d4dbe2; border-radius: 7px; background: white; color: #4e5b68; padding: 9px 30px 9px 11px; font-size: 11px; min-height: 41px; max-width: 100%; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 21px; }
.filter-tab { padding: 8px 13px; background: transparent; border: 1px solid transparent; color: var(--secondary); font-size: 11px; border-radius: 6px; }
.filter-tab.active { background: #dce4ed; color: var(--brand-blue); border-color: #c9d4df; }
.return-filters { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 20px 15px; }
.return-filters .filter-tab { font-size: 11px; padding: 7px 11px; }
.partner-card-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.partner-footer:has(.partner-card-actions) { flex-wrap: wrap; }
.work-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 19px; }
.work-strip > button { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; text-align: left; color: #315373; background: #edf3fa; border: 1px solid #d7e3ef; border-radius: 9px; padding: 14px 18px; min-width: 0; }
.work-strip > button:hover { background: #e4eef8; }
.work-strip > button > span { font-size: 12px; align-self: center; }
.work-strip > button > strong { grid-column: 2; grid-row: 1 / 3; align-self: center; font-size: 25px; font-weight: 500; color: #1d5c96; font-variant-numeric: tabular-nums; }
.work-strip > button > small { font-size: 10px; color: #74899c; }
.desk-schedule { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.desk-schedule > div { min-width: 0; padding: 17px 23px 20px; }
.desk-schedule > div + div { border-left: 1px solid var(--line); }
.desk-column-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 7px; }
.desk-column-heading h3 { font-size: 12px; }
.desk-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #edf1f6; }
.desk-item:last-child { border-bottom: 0; padding-bottom: 0; }
.desk-item > div { min-width: 0; }
.desk-item strong { display: block; font-size: 12px; font-weight: 500; overflow-wrap: anywhere; }
.desk-item span { display: block; color: var(--secondary); font-size: 11px; margin-top: 4px; }
.desk-empty { padding: 14px 0 0; color: var(--secondary); font-size: 11px; }
.desk-empty .button { margin-top: 12px; }
.overdue-text { color: var(--red) !important; }
.campaign-list { display: grid; gap: 16px; }
.campaign-card { border: 1px solid var(--line); border-radius: 10px; background: white; padding: 23px; min-width: 0; }
.campaign-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.campaign-heading > div { min-width: 0; }
.campaign-heading h2 { font-size: 16px; overflow-wrap: anywhere; }
.campaign-heading p { font-size: 11px; color: var(--secondary); margin-top: 5px; }
.campaign-preview { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 17px; color: #52697f; font-size: 12px; line-height: 1.75; }
.campaign-meta { display: flex; flex-wrap: wrap; gap: 7px 18px; color: #7a8c9d; font-size: 11px; margin-top: 18px; }
.campaign-meta > span { overflow-wrap: anywhere; }
.campaign-actions { display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 18px; }
.publication-title { font-size: 16px; font-weight: 500; margin-bottom: 15px; overflow-wrap: anywhere; }
.field > textarea.campaign-message-input { min-height: 175px; line-height: 1.65; }
.channel-fieldset { padding: 0; margin: 20px 0; border: 0; min-width: 0; }
.channel-fieldset legend { font-size: 11px; font-weight: 500; color: #455c72; margin-bottom: 9px; padding: 0; }
.channel-fieldset > p { font-size: 11px; color: var(--secondary); background: #f3f6fa; padding: 12px 14px; border-radius: 6px; }
.channel-choices { display: grid; gap: 1px; max-height: 220px; overflow-y: auto; background: #f3f6fa; border-radius: 6px; padding: 5px; }
.channel-choice { display: flex; align-items: flex-start; gap: 10px; padding: 10px; color: #3e5972; font-size: 12px; }
.channel-choice input { accent-color: var(--brand-blue); width: 16px; height: 16px; flex-shrink: 0; margin: 2px 0 0; }
.channel-choice span { min-width: 0; overflow-wrap: anywhere; }
.channel-choice small { display: block; font-size: 10px; color: var(--secondary); margin-top: 3px; }
.task-list { display: grid; }
.task-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 20px 23px; border-bottom: 1px solid var(--line); }
.task-row:last-child { border-bottom: 0; }
.task-copy { min-width: 0; }
.task-copy > strong { font-size: 13px; font-weight: 500; overflow-wrap: anywhere; display: block; }
.task-meta { display: flex; flex-wrap: wrap; gap: 5px 14px; margin-top: 7px; color: var(--secondary); font-size: 11px; }
.task-actions { display: flex; gap: 7px; flex-shrink: 0; }
.task-completed .task-copy > strong { text-decoration: line-through; color: #6a7d8d; }
.priority-high { color: #95591e; }
.connections-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.connection-card { border: 1px solid var(--line); border-radius: 10px; background: white; padding: 23px; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.connection-card-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; }
.connection-icon { width: 35px; height: 35px; border-radius: 9px; background: #fff0e3; color: #985920; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; }
.connection-card h2 { font-size: 16px; margin-top: 18px; }
.connection-card > p { color: var(--secondary); font-size: 12px; line-height: 1.7; margin-top: 7px; flex: 1; }
.connection-card > .button { margin-top: 23px; min-width: 100px; }
.connection-account { font-size: 11px; color: #55738e; margin-top: 10px; overflow-wrap: anywhere; }
@media (min-width: 641px) and (max-height: 820px) {
  .sidebar-note { display: none; }
  .sidebar-bottom { padding-top: 20px; }
  .sidebar > .brand { margin-bottom: 28px; }
  .sidebar { min-height: 640px; }
}
@media (max-width: 820px) { .work-strip { gap: 10px; } .work-strip > button { padding: 13px; } .desk-schedule { grid-template-columns: 1fr; } .desk-schedule > div + div { border-left: 0; border-top: 1px solid var(--line); } }
.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 11px; table-layout: auto; }
.data-table th { background: #f4f7fa; font-size: 9px; font-weight: 600; letter-spacing: .6px; text-align: left; color: #767e86; text-transform: uppercase; padding: 12px 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table td { padding: 17px 20px; border-bottom: 1px solid #e8ecf0; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table strong { font-size: 11px; font-weight: 500; display: block; }
.cell-sub { display: block; font-size: 10px; color: var(--secondary); margin-top: 4px; max-width: 200px; overflow-wrap: anywhere; }
.numeric { font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table .money { font-size: 12px; font-weight: 500; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 5px; font-size: 9px; font-weight: 500; white-space: nowrap; }
.badge::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.badge.indicada, .badge.pendente { color: #647687; background: #e9edf2; }
.badge.contato { color: var(--blue); background: var(--blue-soft); }
.badge.contratada, .badge.a_receber { color: var(--amber); background: var(--amber-soft); }
.badge.concluida, .badge.recebida { color: #376b9a; background: #e8f1fb; }
.badge.cancelada { color: #8c6d66; background: #f4ece9; }
.row-actions { display: flex; justify-content: flex-end; gap: 6px; }
.table-footer { font-size: 10px; color: var(--secondary); padding: 12px 22px; border-top: 1px solid var(--line); background: #f8fafc; }
.partner-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.partner-card { border: 1px solid var(--line); background: white; border-radius: 10px; padding: 21px; min-width: 0; }
.partner-card.inactive { background: #f6f8fa; }
.partner-card-top { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 17px; }
.partner-card-top .avatar { height: 40px; width: 40px; border-radius: 10px; font-size: 18px; }
.partner-card h2 { font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.partner-category { display: block; color: var(--secondary); font-size: 10px; margin-top: 4px; }
.partner-detail { margin-top: 17px; padding-top: 13px; border-top: 1px solid #e8ecf0; display: grid; gap: 6px; color: var(--secondary); font-size: 11px; }
.partner-detail > span { overflow-wrap: anywhere; }
.partner-deal { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 17px; font-size: 10px; color: var(--secondary); }
.partner-deal strong { color: var(--brand-blue); font-size: 13px; font-weight: 500; }
.partner-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid #e8ecf0; }
.partner-footer > span { color: var(--secondary); font-size: 10px; }
.context-note { display: flex; gap: 11px; align-items: flex-start; padding: 15px 17px; background: #e5ebf1; border-radius: 8px; color: #525f6d; font-size: 11px; margin-bottom: 21px; }
.context-note > span:first-child { font-size: 17px; line-height: 1.2; }
.form-context-note { margin: 18px 0 0; }
.spaced-form-grid { margin-top: 18px; }
.connection-error, .form-error { padding: 12px 15px; border: 1px solid #eec2b9; background: var(--red-soft); color: #8d3d34; border-radius: 7px; font-size: 12px; margin-bottom: 18px; }
.connection-error button { margin-left: 10px; text-decoration: underline; background: none; color: inherit; border: 0; }
.loading-state { padding: 80px 24px; text-align: center; color: var(--secondary); }
.workspace-footer { padding: 17px 38px 23px; color: #8797a7; font-size: 9px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px; }
.workspace-footer > div { display: flex; gap: 12px; flex-wrap: wrap; }
.workspace-footer a { text-decoration: none; color: #5d7894; }
.workspace-footer a:hover { text-decoration: underline; }
.app-dialog { width: min(640px, calc(100% - 28px)); max-height: calc(100dvh - 40px); padding: 0; border: 1px solid #cfd7df; border-radius: 13px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 90px #143b6029; }
.app-dialog::backdrop { background: #143b605e; backdrop-filter: blur(2px); }
.dialog-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 24px 27px 20px; border-bottom: 1px solid var(--line); }
.dialog-header h2 { font-size: 21px; }
.dialog-header p { font-size: 11px; color: var(--secondary); margin-top: 6px; }
.dialog-close { border: 0; background: #ebeff3; border-radius: 50%; width: 30px; height: 30px; font-size: 21px; line-height: 1; flex-shrink: 0; }
.dialog-body { padding: 23px 27px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 11px; font-weight: 500; color: #424d58; }
.field.full { grid-column: 1 / -1; }
.field > input, .field > select, .field > textarea { border: 1px solid #cfd7df; background: #fff; border-radius: 6px; width: 100%; padding: 10px 11px; color: var(--ink); font-size: 13px; font-weight: 400; min-height: 42px; }
.field > textarea { resize: vertical; min-height: 76px; }
.field > input:disabled, .field > select:disabled { background: #eef1f4; color: #747c85; cursor: not-allowed; }
.field small { color: var(--secondary); font-size: 10px; font-weight: 400; }
.specialty-options { display: flex; flex-wrap: wrap; gap: 6px; }
.form-section-label { margin: 22px 0 13px; font-size: 11px; font-weight: 600; letter-spacing: .15px; color: #3d4b59; border-top: 1px solid var(--line); padding-top: 18px; }
.check-field { display: flex; align-items: flex-start; gap: 9px; font-size: 12px; color: #424d58; grid-column: 1 / -1; padding: 7px 0; }
.check-field input { accent-color: var(--brand-blue); margin: 2px 0 0; width: 16px; height: 16px; flex-shrink: 0; }
.check-field small { display: block; color: var(--secondary); font-size: 10px; margin-top: 3px; }
.form-preview { background: var(--brand-soft); border-radius: 7px; padding: 13px 15px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: #465464; font-size: 11px; margin-top: 17px; }
.form-preview strong { color: var(--brand-blue); font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; }
.form-preview small { flex-basis: 100%; font-size: 10px; color: #526274; }
.dialog-footer { border-top: 1px solid var(--line); background: #f7f9fb; padding: 17px 27px; display: flex; gap: 10px; justify-content: flex-end; border-radius: 0 0 13px 13px; }
.received-note { background: #e8f1fb; color: #415469; padding: 12px 14px; border-radius: 7px; font-size: 11px; margin-bottom: 19px; }
.receive-amount { font-size: 32px; font-weight: 500; letter-spacing: -.8px; margin: 10px 0 3px; }
.receive-sub { font-size: 11px; color: var(--secondary); margin-bottom: 23px; }
.help-steps { padding-left: 19px; margin: 0; display: grid; gap: 18px; font-size: 12px; }
.help-steps strong { display: block; font-weight: 600; margin-bottom: 3px; }
.help-steps p { color: var(--secondary); font-size: 11px; }
.history-section { margin-top: 23px; border-top: 1px solid var(--line); padding-top: 19px; }
.history-section > h3 { font-size: 13px; margin-bottom: 17px; }
.history-list { list-style: none; padding: 0 0 0 16px; margin: 0; }
.history-entry { position: relative; border-left: 1px solid #d5e1ee; padding: 0 0 21px 19px; }
.history-entry:last-child { padding-bottom: 0; border-left-color: transparent; }
.history-entry::before { content: ""; position: absolute; width: 7px; height: 7px; background: #ed994f; border: 3px solid white; border-radius: 50%; left: -7px; top: 2px; box-sizing: content-box; }
.history-entry-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 15px; flex-wrap: wrap; }
.history-entry-heading strong { font-size: 11px; font-weight: 500; }
.history-entry-heading time { color: var(--secondary); font-size: 10px; }
.history-changes { list-style: none; padding: 0; margin: 7px 0 0; color: #5d6772; font-size: 11px; display: grid; gap: 4px; }
.history-changes li { overflow-wrap: anywhere; }
.history-changes li > span:first-child { color: #4d5966; }
.history-notes { padding: 10px 12px; margin-top: 9px; background: #edf1f6; border-radius: 5px; font-size: 11px; color: #4c5763; white-space: pre-wrap; overflow-wrap: anywhere; }
.history-empty { font-size: 11px; color: var(--secondary); margin-top: 7px; }
.history-limit { margin-top: 16px; }
.toast { position: fixed; bottom: 24px; left: calc(50% + 100px); transform: translateX(-50%); max-width: calc(100% - 32px); background: var(--brand-navy); color: #e9f0f7; border: 1px solid #3f668c; border-radius: 9px; padding: 13px 21px; font-size: 12px; box-shadow: 0 10px 35px #143b6026; z-index: 30; }
.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; }
.auth-screen { min-height: 100vh; width: 100%; max-width: none; margin: 0; padding: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #eff3f8; }
.auth-layout { width: 100%; max-width: 960px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: white; border: 1px solid #d5dde6; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 65px #143b600b; }
.auth-intro { color: #e3edf7; background: var(--brand-navy); padding: 42px 42px 30px; display: flex; flex-direction: column; min-height: 530px; }
.auth-brand { margin: 0; font-size: 25px; }
.auth-brand .brand-caption { color: #b6cce2; }
.auth-intro-copy { padding: 75px 0 65px; }
.auth-eyebrow { display: block; font-size: 9px; letter-spacing: 1.6px; font-weight: 500; color: #ffb878; margin-bottom: 20px; }
.auth-intro-copy h2 { font: 400 35px/1.25 Georgia, serif; letter-spacing: -.6px; color: #e6eff8; }
.auth-intro-copy p { font-size: 12px; color: #b4c9df; line-height: 1.8; margin-top: 22px; max-width: 270px; }
.auth-intro-footer { display: flex; align-items: center; gap: 11px; color: #b8cde2; font-size: 10px; margin-top: auto; }
.auth-intro-footer > span { font-size: 20px; color: #f6aa66; }
.auth-card { padding: 53px 46px 43px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.auth-card h1 { font-size: 25px; line-height: 1.3; letter-spacing: -.8px; margin-top: 19px; }
.auth-card > p, .auth-loading > p { font-size: 12px; color: var(--secondary); margin-top: 9px; line-height: 1.7; }
.auth-lock { width: 39px; height: 39px; display: inline-flex; justify-content: center; align-items: center; background: #fff0e3; color: #875221; border-radius: 10px; font-size: 21px; }
.auth-form { margin-top: 29px; display: grid; gap: 18px; }
.auth-form .field { font-size: 12px; gap: 8px; }
.auth-form .field > input { min-height: 46px; font-size: 14px; }
.auth-password { position: relative; }
.auth-password > input { border: 1px solid #cfd7df; background: white; border-radius: 6px; width: 100%; padding: 11px 77px 11px 11px; min-height: 46px; color: var(--ink); font-size: 14px; }
.password-toggle { position: absolute; top: 5px; right: 5px; height: 36px; padding: 5px 9px; border: 0; border-radius: 4px; background: #ecf0f5; color: #526273; font-size: 11px; }
.password-toggle:hover { background: #dde5ed; }
.auth-form .button { min-height: 46px; font-size: 13px; margin-top: 2px; }
.auth-form .auth-exit { justify-self: start; }
.auth-form .form-error { margin-bottom: 0; font-size: 11px; }
.auth-personal-note { display: flex; align-items: center; gap: 7px; font-size: 10px; color: #778b9f; margin-top: 25px; }
.auth-personal-note > span { width: 5px; height: 5px; border-radius: 50%; background: #e5954c; }
.auth-footer { font-size: 11px; color: #7c8fa2; margin-top: 22px; }
.auth-message { margin-top: 19px; font-size: 11px; color: #536e88; border-radius: 6px; background: #e9eef4; padding: 11px 13px; }
.auth-message.error { color: #8d3d34; background: var(--red-soft); }
.auth-retry { margin-top: 24px; align-self: flex-start; }
.auth-loading { padding: 10px 0; }
@media (max-width: 760px) {
  .auth-screen { padding: 24px; }
  .auth-layout { grid-template-columns: 1fr; max-width: 460px; }
  .auth-intro { min-height: 0; padding: 25px 29px; }
  .auth-brand { font-size: 23px; }
  .auth-intro-copy { padding: 29px 0 0; }
  .auth-intro-copy h2 { font-size: 27px; }
  .auth-eyebrow { font-size: 9px; margin-bottom: 12px; }
  .auth-intro-copy h2 br { display: none; }
  .auth-intro-copy p, .auth-intro-footer { display: none; }
  .auth-card { padding: 29px; }
  .auth-card h1 { font-size: 24px; margin-top: 15px; }
  .auth-form { margin-top: 24px; }
}
@media (max-width: 420px) {
  .auth-screen { padding: 16px; }
  .auth-intro, .auth-card { padding: 25px 23px; }
  .auth-intro-copy h2 { font-size: 25px; }
  .auth-form .field > input, .auth-password > input { font-size: 16px; }
  .topbar { gap: 8px; }
  .topbar-right { gap: 6px; }
  .signed-in-user { max-width: 80px; font-size: 11px; }
}
@media (min-width: 1600px) { main, .topbar, .workspace-footer { padding-left: 55px; padding-right: 55px; } main { max-width: 1500px; width: 100%; margin: 0 auto; } }
@media (max-width: 1120px) { .app-shell { grid-template-columns: 195px minmax(0, 1fr); } .sidebar { padding-left: 13px; padding-right: 13px; } .brand { font-size: 19px; gap: 10px; margin-left: 5px; margin-right: 5px; } .brand-mark { width: 35px; height: 38px; } main { padding: 29px 25px 33px; } .topbar, .workspace-footer { padding-left: 25px; padding-right: 25px; } .stat { padding: 17px 15px; } .stat-value { font-size: 23px; } .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .data-table td, .data-table th { padding-left: 14px; padding-right: 14px; } .lower-grid { grid-template-columns: 1fr; gap: 0; } }
@media (max-width: 820px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .data-table { min-width: 640px; } .date-label { display: none; } .onboarding { grid-template-columns: 1fr; gap: 18px; } .onboarding-step { display: grid; grid-template-columns: 25px 1fr; column-gap: 12px; } .step-number { grid-row: 1 / 3; margin: 0; } }
@media (max-width: 640px) {
  .work-strip { grid-template-columns: 1fr; gap: 9px; }
  .work-strip > button { padding: 12px 16px; }
  .work-strip > button > span { font-size: 12px; }
  .work-strip > button > small { font-size: 11px; }
  .desk-schedule > div { padding: 15px 17px 18px; }
  .campaign-card { padding: 19px 17px; }
  .campaign-heading { gap: 10px; }
  .campaign-heading h2 { font-size: 15px; }
  .campaign-actions { gap: 7px; }
  .campaign-actions > .button { white-space: normal; }
  .connections-grid { grid-template-columns: 1fr; gap: 13px; }
  .connection-card { padding: 20px; }
  .task-row { align-items: flex-start; flex-direction: column; gap: 13px; padding: 18px 17px; }
  .task-actions { align-self: flex-end; }
  .partner-card-actions { width: 100%; }
  .channel-choice small { font-size: 11px; }
  .app-shell { display: block; }
  .sidebar { height: auto; position: static; padding: 19px 17px 12px; }
  .brand { margin: 0 3px 21px; font-size: 22px; }
  .brand-caption { font-size: 7px; }
  .brand-mark { width: 35px; height: 37px; }
  .sidebar-label, .sidebar-bottom { display: none; }
  .main-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .nav-item { padding: 9px 3px; gap: 5px; justify-content: center; flex-direction: column; font-size: 10px; white-space: normal; flex: 1; min-width: 0; text-align: center; }
  .nav-item > span:first-child { width: auto; font-size: 16px; }
  .nav-count { display: none; }
  .topbar { height: 54px; padding: 0 20px; }
  .topbar-right { gap: 7px; }
  .breadcrumb { font-size: 10px; gap: 9px; }
  main { padding: 26px 18px 18px; }
  h1 { font-size: 26px; }
  .page-heading { margin-bottom: 22px; gap: 15px; align-items: flex-start; }
  .page-heading p { font-size: 11px; max-width: 220px; }
  .page-heading .button { padding: 9px 11px; font-size: 10px; min-height: 39px; white-space: normal; text-align: center; flex-shrink: 0; max-width: 125px; }
  .stats { gap: 10px; margin-bottom: 21px; }
  .stat { padding: 14px; }
  .stat-header { font-size: 10px; gap: 5px; }
  .stat-symbol { width: 23px; height: 23px; font-size: 14px; }
  .stat-value { font-size: 24px; margin-top: 10px; }
  .stat-caption { font-size: 9px; }
  .intro-card { padding: 20px; }
  .intro-card h2 { font-size: 20px; }
  .intro-glyph { display: none; }
  .section-header { padding: 19px 17px; }
  .section-header .button { font-size: 10px; }
  .section-header h2 { font-size: 14px; }
  .section-header p { font-size: 10px; }
  .onboarding { padding-left: 17px; padding-right: 17px; }
  .partner-grid { grid-template-columns: 1fr; gap: 13px; }
  .followup-row, .partner-mini { padding: 14px 17px; gap: 10px; }
  .followup-row { flex-wrap: wrap; }
  .followup-date { margin-left: 44px; }
  .followup-row > .button { margin-left: auto; }
  .filters { gap: 10px; }
  .search-field { max-width: none; flex-basis: 100%; }
  .filter-group { width: 100%; }
  .filter-select { flex: 1; min-width: 0; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; min-width: 0; width: 100%; }
  .data-table thead { display: none; }
  .data-table tr { padding: 16px 17px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 16px; }
  .data-table td { padding: 0; border: 0; min-width: 0; }
  .data-table td::before { content: attr(data-label); display: block; font-size: 9px; color: #767e86; margin-bottom: 5px; }
  .data-table td:first-child { grid-column: 1 / -1; }
  .data-table td:last-child { grid-column: 1 / -1; }
  .data-table .row-actions { justify-content: flex-start; }
  .cell-sub { max-width: 100%; }
  .table-wrap { overflow-x: visible; }
  .table-footer { padding: 12px 17px; }
  .workspace-footer { padding: 17px 20px 22px; font-size: 9px; }
  .dialog-header { padding: 20px 21px 16px; }
  .dialog-body { padding: 20px 21px; }
  .dialog-header h2 { font-size: 19px; }
  .form-grid { gap: 15px; }
  .field { font-size: 11px; }
  .field > input, .field > select, .field > textarea { font-size: 16px; padding: 10px 9px; }
  .field.mobile-full { grid-column: 1 / -1; }
  .dialog-footer { padding: 16px 21px; }
  .toast { left: 50%; bottom: 17px; width: max-content; }
  .context-note { font-size: 10px; }
}
@media (max-width: 520px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .dialog-footer { flex-wrap: wrap; }
  .dialog-footer .button { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
  .stat-caption, .data-table td::before, .workspace-footer { font-size: 11px; }
  .nav-item { font-size: 11px; }
  .stat-header, .followup-copy span, .followup-date, .partner-mini .followup-copy span,
  .partner-category, .partner-deal, .partner-footer > span, .cell-sub, .table-footer,
  .context-note, .field small, .check-field small, .form-preview small,
  .dialog-header p, .history-entry-heading time, .section-header p { font-size: 11px; }
}
@media (max-width: 420px) {
  .breadcrumb > span { display: none; }
  .topbar { gap: 8px; }
  .topbar-right { gap: 7px; }
  .signed-in-user { max-width: 75px; }
  .logout-button { padding-left: 8px; padding-right: 8px; }
}
@media (prefers-reduced-motion: no-preference) { .button, .nav-item, .filter-tab { transition: background .15s ease, border-color .15s ease; } }
@media (pointer: coarse) { .button, .filter-tab, .help-button, .dialog-close, .logout-button { min-height: 44px; } .help-button, .dialog-close { width: 44px; height: 44px; } .nav-item { min-height: 44px; } .password-toggle { height: 44px; top: 1px; right: 1px; } }

/* Mapa de Samambaia */
.map-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(230px, 1fr); gap: 18px; align-items: start; }
.map-surface { overflow: hidden; }
.map-controls { padding: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
#samambaia-map { display: block; width: 100%; height: clamp(310px, 55vh, 640px); background: #edf3f8; }
.map-boundary { fill: #e3eee5; stroke: #738d7f; stroke-width: 1.3; }
.map-quadra { fill: #d2e2ed; stroke: #788fa3; stroke-width: .65; cursor: pointer; }
.map-quadra:hover, .map-quadra.selected { fill: #f5ad69; stroke: #a55520; }
.map-marker { cursor: pointer; }
.map-marker circle { fill: #155c87; stroke: white; stroke-width: 1.3; }
.map-marker text { fill: white; font-size: 8px; font-weight: 700; pointer-events: none; }
.map-caption, .map-message { padding: 13px 16px; color: var(--secondary); font-size: 12px; }
.map-caption a { color: var(--brand-blue); }
.map-partner { padding: 13px 16px; border-top: 1px solid var(--line); display: grid; gap: 5px; overflow-wrap: anywhere; }
.map-partner > span { color: var(--secondary); font-size: 12px; }
@media (max-width: 850px) { .map-layout { grid-template-columns: minmax(0, 1fr); } }

.agenda-card { display: grid; gap: 14px; max-width: 740px; padding: 24px; }
.agenda-card p { color: var(--secondary); font-size: 13px; }
.agenda-card a { color: var(--brand-blue); }
.agenda-card .help-steps { gap: 8px; }
.agenda-actions { display: flex; flex-wrap: wrap; gap: 8px; }
