:root{color-scheme:light}.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid #dce5ee;border-radius:9px;padding:8px 10px;background:#f6f9fc;color:#48647c;white-space:nowrap;font-size:11px;min-height:35px}.theme-toggle svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.theme-toggle:hover{background:#eaf1f7;border-color:#9fb4c7}.login-panel{position:relative}.login-panel>.theme-toggle{position:absolute;top:22px;right:24px}
:root[data-theme=dark]{color-scheme:dark;--bg:#0c1520;--paper:#142131;--ink:#e2ebf4;--muted:#9eb0c3;--line:#2b3d50;--green:#149b8e;--lime:#bdf4dd;--surface:#142131;--raised:#1b2b3e;--soft:#101c2a;--text:#e2ebf4;--secondary-text:#a4b6c9;--accent:#64d8c5}
html[data-theme=dark] body{background:var(--bg);color:var(--text)}
html[data-theme=dark] :is(.board,.stat,dialog,.creator-card,.deal-card,.pipeline-card,.tools-grid article,.work-summary>button,#account-menu){background:var(--surface);border-color:var(--line);box-shadow:none;color:var(--text)}
html[data-theme=dark] :is(.topbar,.dialog-head,.dialog-footer,.board-footer,.crm-footnote,.work-hint,.forecast-box,.actual-box,.brand-preview,.pipeline-column,.search,.table-wrap){background:var(--soft);border-color:var(--line)}
html[data-theme=dark] :is(.sidebar,.login-story){background:#0d1e2d;border-color:var(--line)}
html[data-theme=dark] .login-panel{background:var(--bg)}
html[data-theme=dark] :is(input,select,textarea,.work-filters input,.work-filters select,.pipeline-card select){background:#101d2b;color:var(--text);border-color:#34495f}
html[data-theme=dark] :is(input,textarea)::placeholder{color:#8da2b8}
html[data-theme=dark] :is(input,select,textarea):focus{border-color:var(--accent);box-shadow:0 0 0 3px #64d8c519}
html[data-theme=dark] input{accent-color:#38bda7}html[data-theme=dark] input:-webkit-autofill{-webkit-text-fill-color:var(--text);box-shadow:0 0 0 1000px #172b3b inset}
html[data-theme=dark] .search input{background:transparent}html[data-theme=dark] .search:focus-within{background:#172637;border-color:var(--accent)}
html[data-theme=dark] :is(.page-heading h1,.login-panel h2,.dialog-head h2,.brand-cell strong,.brand-preview strong,.creator-name,.work-heading h2,.work-empty strong,.tools-grid h3,.empty h3,.pipeline-column h3,.stage-overview strong,.chat-empty strong,.breadcrumb strong,.contact-person,.stat>span,.stat strong,label){color:var(--text)}
html[data-theme=dark] :is(.page-heading p,.login-panel .muted,.muted,.login-note,.eyebrow,.breadcrumb,.quiet,.toolbar>span,.owner-chip,.contact-date-cell,.contacts-cell,.contact-line,.brand-history,.field-help,.website-link,.brand-cell small,.brand-preview small,.empty p,.recent-strip p,.page-footer,.page-footer span,.activity-item small,.activity-item time,.section-heading span,.crm-toolbar p,.creator-identity small,.creator-bottom,.creator-bottom strong,.deal-card-heading p,.deal-card-heading small,.deal-terms p,.deal-terms p span,.deal-results span,.crm-footnote,.work-help,.work-heading p,.work-empty,.work-summary span,.work-summary small,.task-copy small,.task-date small,.due-label,.due-none,.followup-row small,.work-hint,.pipeline-card>small,.pipeline-last,.pipeline-empty,.journal-card small,.journal-card p,.journal-top time,.tools-grid p,.tools-grid li,.next-step p,.stat small,.no-contact){color:var(--secondary-text)}
html[data-theme=dark] :is(.deal-sides p,.forecast-box p,.actual-box p,#deal-calculation small,.deal-results small,#deal-calculation span,#actual-calculation,.deal-terms small,.currency-summary span,.currency-summary small,.creator-bottom,.team-contact small,.record-tools h4){color:var(--secondary-text)}
html[data-theme=dark] :is(.text-link,.website-link:hover,.creator-name:hover,.quiet:hover,.positive,.connection.live,.tabs button.active,.pipeline-amount){color:var(--accent)}
html[data-theme=dark] .primary{background:#117e76;border-color:#269e92;color:white;box-shadow:none}html[data-theme=dark] .primary:hover{background:#159387}
html[data-theme=dark] :is(.secondary,.claim,.today-button,.row-arrow,.icon-button,.task-check,.theme-toggle){background:var(--raised);border-color:#38546a;color:#b4e6dd}
html[data-theme=dark] :is(.secondary:hover,.claim:hover,.today-button:hover,.row-arrow:hover,.icon-button:hover,.task-check:hover,.theme-toggle:hover){background:#244252;border-color:#5a9e99;color:#e6fff8}
html[data-theme=dark] :is(.tabs button,.copy-contact,.search kbd,.search svg){color:var(--secondary-text)}html[data-theme=dark] .copy-contact:hover{background:#204839;color:#8ee4c9}
html[data-theme=dark] .brand-row:hover{background:#1b3041}html[data-theme=dark] th{background:#1a2a3c;color:#a9bed2}
html[data-theme=dark] :is(th,td,.brand-row .brand-info-cell,.brand-row .contacts-cell,.brand-row .contact-date-cell,.activity-item,.section-heading,.board-top,.board-footer,.brand-history p,.creator-contacts,.deal-terms,.currency-summary>div+div,#creator-linked-deals p,#deal-calculation,#actual-calculation,.task-row,.followup-row,.stage-overview,.stage-overview>div,.pipeline-card-actions,.journal-card,.record-tools){border-color:var(--line)}
html[data-theme=dark] :is(.brand-tile,.brand-tile.has-logo){background:#23344a;border-color:#3b4e63;color:#b9d3e6}
html[data-theme=dark] .brand-tile img{background:transparent}
html[data-theme=dark] :is(.creator-avatar,.platform-tag){background:#302943;color:#d0b6f1;border-color:#4c3e63}
html[data-theme=dark] :is(.mini-avatar,.account .avatar,.owner-chip .mini-avatar,.journal-dot,.tool-symbol){background:#243d55;color:#b8d8ef}
html[data-theme=dark] .owner-chip.sousa .mini-avatar{background:#36304e;color:#c9bbef}
html[data-theme=dark] :is(.stat.green,.currency-summary,.next-step,.deal-sides section){background:#142f2c;border-color:#2b4c45}
html[data-theme=dark] :is(.stat.green strong,.stat.green>span,.stat.green small,.currency-summary strong,.currency-summary b){color:#92dbc2}
html[data-theme=dark] #deal-dialog .deal-sides section+section{background:#25243c;border-color:#3e3c59}
html[data-theme=dark] :is(.notice,.work-summary .attention){background:#342b21;border-color:#5c4732;color:#f0c68d}html[data-theme=dark] .work-summary .attention strong{color:#f2bd78}
html[data-theme=dark] :is(.badge,.priority-alta){background:#3c3020;color:#f0c37d}html[data-theme=dark] .badge.em_contacto{background:#203555;color:#a1c5ff}
html[data-theme=dark] .badge.respondeu{background:#2e3153;color:#c1c0ff}html[data-theme=dark] .badge.negociacao{background:#382a4d;color:#dbb5fb}
html[data-theme=dark] :is(.badge.parceria,.badge.ativa){background:#183e32;color:#8ee3b8}html[data-theme=dark] :is(.badge.sem_interesse,.badge.cancelada,.priority,.priority-baixa){background:#283443;color:#b5c2d1}
html[data-theme=dark] .priority-alta{background:#3c3020;color:#f0c37d}html[data-theme=dark] .badge.proposta{background:#3c3020;color:#f0c37d}html[data-theme=dark] .badge.concluida{background:#233c50;color:#a1d2eb}
html[data-theme=dark] :is(.negative,.form-error,.due-label.overdue){color:#f3a296}html[data-theme=dark] .due-label.due-today{color:#7ce0ce}
html[data-theme=dark] :is(.task-done .task-check,.tabs button span){background:#1d3b33;color:#90d8bd;border-color:#345b4b}
html[data-theme=dark] .task-done .creator-name{color:#a5b8c8}html[data-theme=dark] .pipeline-column header b{background:#2b4055;color:#b4c8dd}
html[data-theme=dark] .tools-grid kbd{background:#26374b;border-color:#3c5268;color:#c1d2e3}
html[data-theme=dark] .stat:after{background:#253955;color:#abc5f7}html[data-theme=dark] .stat[data-stat=por_contactar]:after{background:#44331f;color:#f0cb8d}html[data-theme=dark] .stat[data-stat=progress]:after{background:#353052;color:#cdc1fb}html[data-theme=dark] .stat[data-stat=parceria]:after{background:#20473b;color:#a0e6c8}
html[data-theme=dark] #account-menu button:hover{background:#254051}html[data-theme=dark] #account-menu small{color:var(--secondary-text)}
html[data-theme=dark] dialog::backdrop{background:#020a13bb}html[data-theme=dark] #toast{background:#274d60;color:#edf7ff;border:1px solid #3d6b7d}html[data-theme=dark] #toast.error{background:#5a2933;border-color:#965461}
html[data-theme=dark] #team-chat{--chat-ink:#e2ebf4;--chat-muted:#a4b6c9}
html[data-theme=dark] :is(#chat-panel,#online-notice){background:var(--surface);border-color:#3b5068;box-shadow:0 16px 65px #0005}
html[data-theme=dark] :is(#chat-panel header,#chat-form){background:var(--soft);border-color:var(--line)}html[data-theme=dark] .chat-private{border-color:var(--line);color:#a3b5c7}
html[data-theme=dark] :is(#chat-peer,#chat-input){color:var(--text)}html[data-theme=dark] #chat-input{background:#142436;border-color:#3a5068}
html[data-theme=dark] :is(.chat-message.theirs,#chat-older,#notice-chat,.chat-avatar){background:#24384e;color:#d6e7f7}
html[data-theme=dark] .chat-message.mine{background:#315dc4;color:#fff}html[data-theme=dark] :is(#chat-status.is-online,.chat-online-dot){color:#79ddba}
html[data-theme=dark] :is(.chat-day,.chat-empty,#chat-form small,#chat-close,#notice-close){color:#9db2c9}html[data-theme=dark] #chat-error{color:#f3a296}
html[data-theme=dark] :is(#chat-close:hover,#notice-close:hover,.team-contact:hover:not(:disabled)){background:#253b50}html[data-theme=dark] .chat-online-dot{box-shadow:0 0 0 4px #204a3e}
@media(max-width:760px){.header-actions>.theme-toggle{padding:7px;width:33px;min-height:33px;flex-shrink:0}.header-actions>.theme-toggle span{display:none}.header-actions{gap:7px}.login-panel>.theme-toggle{top:12px;right:15px}.login-panel{padding-top:65px}html[data-theme=dark] .brand-row{background:var(--surface);border-color:var(--line)}html[data-theme=dark] .copy-contact{background:var(--raised)}.breadcrumb{gap:4px}}
@media(max-width:380px){.breadcrumb>span,.breadcrumb>strong{display:none}.account{gap:4px}.header-actions{gap:5px}}
