:root{--brand-pink:#ed006b}.theme-toggle{font-size:12px;white-space:nowrap}.auth-gate{overflow:hidden;background:radial-gradient(ellipse at 20% 25%,#1c315b 0,transparent 60%),#0e1830;isolation:isolate;gap:6vw;padding:6vw;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(320px,440px)}.auth-gate.hidden{display:none}.auth-visual{position:relative;min-height:480px;display:flex;flex-direction:column;justify-content:center;color:#fff;max-width:730px}.auth-visual>small{letter-spacing:.22em;color:#ff94c5}.auth-visual h2{font-size:clamp(40px,5vw,82px);letter-spacing:-.055em;line-height:1.06;margin:28px 0;animation:welcome-enter .9s both}.auth-visual h2 em{font-style:normal;color:#ff398f}.auth-visual>p{max-width:400px;color:#c1cee4;line-height:1.8;animation:welcome-enter 1.2s both}.auth-constellation{position:absolute;inset:-140px -10vw -140px -20vw;z-index:-1;opacity:.55;pointer-events:none}.auth-ring{position:absolute;inset:18%;border:1px solid #95b4e82f;border-radius:50%;transform:rotate(-25deg);animation:login-orbit 36s linear infinite}.auth-ring:after{content:'';position:absolute;top:10%;left:18%;width:13px;height:13px;border-radius:50%;background:#ed006b;box-shadow:0 0 40px #ed006b88}.auth-ring:nth-child(2){inset:6% 22%;animation-duration:48s;animation-direction:reverse;transform:rotate(48deg)}.auth-ring:nth-child(2):after{background:#94bfff}.auth-ring:nth-child(3){inset:30% 1%;animation-duration:60s}.auth-card{position:relative;text-align:left;width:100%;padding:40px;border-radius:28px;box-shadow:0 30px 100px #0005;animation:welcome-enter .75s both}.auth-card .auth-logo{display:block;margin:0 0 24px}.auth-card h1{font-size:30px;line-height:1.2;letter-spacing:-.04em}.auth-card .google-login-button{width:100%;margin-top:20px}.auth-card>small{display:block;margin-top:20px;line-height:1.6}.auth-card .theme-toggle{margin-top:24px;background:transparent}.auth-welcome-line{height:3px;background:linear-gradient(90deg,#ed006b,#70b5ff,transparent);margin:26px 0;border-radius:5px;animation:welcome-line 2s both}.task-terminal-summary{margin-bottom:18px}.task-detail-card details{transition:background .2s}.task-detail-card details>summary{cursor:pointer}.task-deadline-period{display:flex;gap:8px;align-items:center}.task-deadline-period input{width:90px}.task-deadline-period select{flex:1}#taskDeadlineComputed{color:var(--muted);font-size:12px}.task-support-search{margin-top:12px}.task-support-chips{display:flex;gap:6px;flex-wrap:wrap}.task-support-chip{font-size:12px;border:1px solid var(--border);border-radius:9px;background:var(--surface-soft);padding:7px;color:var(--text)}.task-support-chip button{border:0;background:transparent;color:var(--primary)}.column-list-actions{display:flex;flex-wrap:wrap;gap:6px;padding-top:12px}.column-list-actions button{font-size:11px}.task-card{animation:task-appear .22s both;transition:box-shadow .18s,translate .18s}.task-card:hover{translate:0 -2px}.task-card.task-pointer-dragging{animation:none}.task-section-times{display:flex;flex-wrap:wrap;gap:10px}.task-section-times>span{padding:10px;border:1px solid var(--border);border-radius:10px;background:var(--surface-soft)}.task-create-layer .modal{width:100%;max-width:100%;min-width:0}.task-create-layer{grid-template-columns:240px minmax(0,960px)!important;align-items:start!important;padding:28px!important;gap:22px}.task-create-layer>.task-detail-sidebar{position:sticky;top:0}.task-create-layer .modal>form{max-height:none}.task-support [hidden],.task-deadline-period[hidden],#taskDeadline[hidden]{display:none!important}
html[data-theme=dark]{--bg:#0c1529;--surface:#14213b;--surface-soft:#1b2c49;--text:#edf3ff;--muted:#b1c1dc;--border:#91acd342;--primary:#ff3992;--primary-soft:#4c1a3a;--secondary:#b3d0ff;--secondary-soft:#233b60;--shadow:0 15px 40px #0004;color-scheme:dark}
html[data-theme=dark] body{background:var(--bg);color:var(--text)}html[data-theme=dark] :is(.topbar,.sidebar,.auth-card,.panel,.toolbar,.modal,.task-detail-card,.task-move-dialog,.operations-dialog,.nav-dropdown-panel,.role-panel,.portal-choice-popup,.task-context-menu,.workspace-composer,.commercial-sidebar,.crm-form-section,.crm-stage-panel,.meeting-window-card){background:var(--surface);color:var(--text);border-color:var(--border)}html[data-theme=dark] :is(input,select,textarea,.secondary-button,.sector-tab,.workspace-file-card,.task-support-chip,.task-side-tabs button,.task-quick-nav button,.task-quick-nav summary){background:var(--surface-soft);color:var(--text);border-color:var(--border)}html[data-theme=dark] :is(.kanban-column,.crm-column,.crm-filter-bar,.task-facts,.task-description,.task-audit-section,.detail-item,.workspace-item,.workspace-attachment-preview,.workspace-message-other,.workspace-selected-file){background:var(--surface-soft);color:var(--text);border-color:var(--border)}html[data-theme=dark] :is(.task-card,.crm-card,.contact-card,.member-card,.task-message,.workspace-message-file){background:#1a2a47;color:var(--text);border-color:var(--border)}html[data-theme=dark] :is(.column-head,.crm-column-head){background:#233a5c;color:var(--text)}html[data-theme=dark] :is(.task-id,.task-type,.task-meta,.crm-card p,.crm-card strong,.crm-card small,.crm-column h4,.task-facts dd,.task-facts dt){color:var(--text)}html[data-theme=dark] :is(.primary-button,.google-login-button){background:#d70061;color:#fff}html[data-theme=dark] :is(.workspace-message-own,.task-message.own){background:#42223f;color:#fff}html[data-theme=dark] :is(a,.workspace-message-file a){color:#add0ff}html[data-theme=dark] :is(.task-legacy-label,small,.v2-muted){color:var(--muted)}html[data-theme=dark] .auth-visual>small{color:#ff94c5}html[data-theme=dark] :is(.task-status-picker,.task-move-hint,.filter-summary,.page){color:var(--text)}html[data-theme=dark] :is(.sector-tab.active,.sector-tab.selected,.nav-item.active){background:#294569;color:#fff}html[data-theme=dark] .portal-choice-option:hover{background:#2a456a}html[data-theme=dark] .crm-total-card{background:#4c1a3a;color:#fff}
@keyframes welcome-enter{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}@keyframes welcome-line{from{transform:scaleX(0);transform-origin:left}to{transform:scaleX(1);transform-origin:left}}@keyframes login-orbit{to{rotate:360deg}}@keyframes task-appear{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}
@media(max-width:900px){.auth-gate{grid-template-columns:1fr;padding:30px;gap:24px}.auth-visual{min-height:180px}.auth-visual h2{font-size:42px;margin:12px 0}.auth-visual>p{display:none}.auth-card{max-width:520px;justify-self:center}.task-create-layer{grid-template-columns:160px minmax(0,1fr)!important;padding:12px!important;gap:12px}}
@media(prefers-reduced-motion:reduce){.auth-ring,.auth-card,.auth-visual h2,.auth-visual p,.auth-welcome-line,.task-card{animation:none!important;transition:none!important}.task-card:hover{translate:none}}

.task-create-layer{display:grid!important}.task-create-layer.hidden{display:none!important}.task-create-layer>.task-detail-sidebar{left:auto;bottom:auto;width:100%;height:calc(100vh - 56px)}
.task-custom-color :is(.task-id,.task-title,.task-type,.task-badges,.task-parent-notice,.task-meta,.task-footer,.task-legacy-label,.column-count){color:var(--task-card-ink)!important}.task-custom-color .task-type{background:transparent}.task-custom-color .task-quick-actions button{background:#ffffffdf;color:#13213a}.task-custom-color>strong,.task-custom-color>strong small{color:var(--task-card-ink)!important}
html[data-theme=dark] :is(.orbit-area-card,.orbit-dashboard-panel,.orbit-stat,.orbit-finance,.orbit-attention,.task-notices,.orbit-workflow,.orbit-toolkit,.sales-card,.sales-toolbar,.sales-form,.commercial-workspace,.crm-form-section,.meeting-window,.contact-detail){background:var(--surface);color:var(--text);border-color:var(--border)}html[data-theme=dark] :is(.orbit-stat>strong,.orbit-stat>span,.orbit-stat>small,.orbit-finance strong,.orbit-finance span,.orbit-attention strong,.orbit-dashboard-panel h2,.orbit-workload-row span,.orbit-method,.sales-card h3,.sales-card p,.contact-detail h2,.task-detail-card summary,.portal-choice-popup button){color:var(--text)}html[data-theme=dark] :is(.orbit-workload-track,.sales-badge,.task-badges span,.filter-chip){background:var(--surface-soft);color:var(--text)}

.v24-layer form{display:grid;gap:16px}.v24-layer label{display:grid;gap:7px}.v24-layer input:not([type=checkbox]),.v24-layer textarea{width:100%;box-sizing:border-box;padding:12px;border:1px solid var(--border,#c3cfe5);border-radius:10px;background:var(--surface,#fff);color:inherit}.v24-layer [type=checkbox]{width:auto}.support-badge{display:inline-block;padding:5px 9px;border-radius:8px;background:#dbe7fa;color:#16365e;font-weight:600}.support-pending{background:#fff0c7;color:#714000}.support-rejected{background:#ffe0e9;color:#8a1540}.support-approved{background:#d4f3e7;color:#15513e}.required{color:#ed006b}

html[data-theme=dark] .task-detail-summary>span{background:var(--surface-soft);color:var(--text);border:1px solid var(--border)}html[data-theme=dark] .task-detail-card button:not(.primary-button){background:var(--surface-soft);color:var(--text);border-color:var(--border)}html[data-theme=dark] .task-detail-summary small{color:var(--muted)}

/* Layered surfaces stay distinct from both the backdrop and the page. */
html[data-theme=dark] :is(dialog,.modal,.task-detail-card,.meeting-window-card){background:#223653;color:#f2f6ff;border:1px solid #7b96be;box-shadow:0 24px 90px #000b}
html[data-theme=dark] :is(.modal-backdrop,.task-detail-layer){background:#030918b8;backdrop-filter:blur(7px)}
html[data-theme=dark] :is(.type-pill,.task-type,.filter-chip,.task-detail-summary>span){background:#304c73;color:#f4f7ff;border-color:#7896c0}
html[data-theme=dark] :is(.simple-table th,.simple-table td,.contact-profile-hero,.profile-main,.contact-profile-hero h2){color:#f2f6ff;background-color:transparent}
html[data-theme=dark] :is(.simple-table thead,.contact-profile-hero){background:#243d60}
html[data-theme=dark] :is(.operations-dialog label,.google-form label,.crm-form-section label){color:#f0f5ff}
.task-card.task-custom-color :is(.task-title,.task-id,.task-meta,.task-responsibles,.task-type){color:var(--task-card-ink)!important}
[hidden]{display:none!important}
