/* WHITE BROKER / graphite workspace — shared visual layer, no business rules. */
:root{color-scheme:dark;--navy:#131c21;--navy2:#202b32;--bg:#10181d;--paper:#182228;--white:#1a242b;--ink:#f0f3f5;--muted:#a1adb6;--line:#303d46;--orange:#ff5b23;--green:#63ce95;--red:#ff8890;--shadow:0 12px 36px #0002}
body{background:var(--bg);color:var(--ink);font-size:14px;line-height:1.55}a{color:#ff9975}button,input,select,textarea{color:var(--ink);accent-color:var(--orange)}button{transition:background .15s,border-color .15s}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--orange);outline-offset:3px}button:disabled{cursor:not-allowed;opacity:.45}
.sidebar,.shell>aside{width:252px;padding:0 16px 20px;background:#111a1f;border-right:1px solid var(--line);z-index:5;overflow-y:auto}.sidebar-brand,.shell .brand{background:transparent;color:#f0f3f5;border-bottom:1px solid var(--line);min-height:104px;padding:22px 16px;margin:0 -16px 25px;gap:10px;flex-shrink:0}.sidebar-brand strong,.shell .brand b{font-size:17px;letter-spacing:.01em;white-space:nowrap}.sidebar-brand span,.shell .brand span{color:#a1adb6;font-size:10px;letter-spacing:.18em}.brand-logo.small,.shell .brand img{width:38px;height:auto;object-fit:contain;flex-shrink:0;filter:none}.sidebar nav{gap:5px}.nav,.shell .nav{font-size:14px;font-weight:500;border-radius:6px;color:#c9d2d8;min-height:42px;text-decoration:none;display:block}.nav.active,.nav:hover,.shell .nav.active,.shell .nav:hover{background:#263139;color:#fff}.nav.active{box-shadow:inset 3px 0 var(--orange)}.agents-nav{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:12px 0;margin:12px 0}.agents-nav summary{color:var(--muted);font-size:13px}.agents-nav .agent-link{margin-left:0;padding-left:18px}.sidebar-bottom,.shell .profile{font-size:14px;padding-top:28px}.sync-state{font-size:13px;padding:12px 4px}.user-line,.shell .profile{border-color:var(--line)}.user-line button{font-size:15px}.sidebar-bottom #user-name{overflow-wrap:anywhere}
main,.shell main{margin-left:252px;padding:28px 28px 48px;max-width:none;min-width:0}.topbar,.shell header{gap:20px;margin-bottom:22px;align-items:center}.topbar h1,.shell header h1{font-size:clamp(27px,2.6vw,42px);line-height:1.15;letter-spacing:-.035em;margin:8px 0}.eyebrow,.topbar .eyebrow{font-size:12px;font-weight:600;letter-spacing:.08em}.top-actions{font-size:13px;flex-wrap:wrap;justify-content:flex-end}.panel,.kpis article,.kc-summary article{background:#192329;border:1px solid var(--line);box-shadow:0 8px 24px #00000012;border-radius:10px}.kpis article:after{display:none}.kpis span,.kpis small{font-size:13px}.kpis strong,.kpis b{font-weight:650;font-variant-numeric:tabular-nums}.kpis article{padding:17px}.kpis article:first-child strong{color:var(--orange)}
.filters{flex-wrap:wrap;padding:18px;gap:12px}.filters .quick-periods{width:100%;flex-wrap:wrap;white-space:normal}.filters label,.login-card label{color:var(--muted);font-size:14px}.filters input,.filters select,.login-card input,.user-form input,.user-form select,input,select,textarea{background:#111a20;border:1px solid #3a4851;color:var(--ink);border-radius:6px;min-height:40px;max-width:100%}input::placeholder{color:#86959f}.ghost,.exports button,.segmented button,.quick-periods button,.pagination button,.kc-tabs button,.kc-people button,.tool-row button,.mode-row button,#tools-content button,.detail-head button{background:#202b32;border:1px solid #38464f;color:#dfe6ea;border-radius:6px;font-size:14px}.primary,#apply{background:#ff5b23;color:#fff;border-radius:6px;box-shadow:0 3px 12px #ff5b2317}.primary:hover,#apply:hover{background:#e94b15}.quick-periods button.active,.segmented button.active,.kc-tabs button.active{color:#fff;border-color:var(--orange);background:#59301f}.warning,.analytics-warning{background:#372d1e;color:#f4d295;border-color:#ad8139}.green{color:var(--green)!important}.red,.error{color:var(--red)!important}
.calendar-grid{border-color:var(--line);border-radius:7px;overflow:hidden}.calendar-day,.kc-day{background:#182228;color:var(--ink)}.calendar-day:hover{background:#25313a}.calendar-day.outside,.kc-day.outside{background:#121b21;color:#73828e}.calendar-week span{font-size:12px}.day-total{color:#e5edf2}.calendar-day.today{background:#202c34}.calendar-day.today .day-number{background:var(--orange)}.workspace{border-radius:10px}.section-head h2{font-size:20px}.section-head p{font-size:14px}.section-head{gap:16px;flex-wrap:wrap}.calendar-controls{gap:8px}.table-wrap{border-radius:6px}th,.analytics-table th{background:#202b33;color:#b8c5cf;font-size:12px}td,.analytics-table td{border-color:var(--line)}tbody tr:hover{background:#202d35}.object-link,#kc-register td a{color:#ffad8f}.subtext{font-size:13px}.status,.badge,.cc-badge{background:#2a3640;color:#dbe4ea;font-size:12px;border-radius:5px}.status.completed,.kc-tag.good,.cc-badge.completed{background:#173c2d;color:#84dfa9}.status.cancelled,.kc-tag.bad,.cc-badge.failed{background:#47252c;color:#ff9ea5}.status.no_result,.kc-tag.wait{background:#40341e;color:#f4ca7d}.status.rescheduled{background:#342b4e;color:#c9afff}.insight-card,.kc-detail-grid div{background:#222f38}.manager-bar-track,.manager-bar-track::-webkit-progress-bar{background:#2d3b44}.kc-people strong{color:var(--orange)}.kc-method p{color:#b4c0c8}.kc-event{color:#d5dee5;background:#25323c}.kc-event.good{background:#1d362d}.kc-event.bad{background:#39252a}.kc-detail-grid div,.criterion{background:#202c34}
dialog,#kc-detail{background:#19242c;color:var(--ink);border:1px solid #46545e;box-shadow:0 28px 100px #0008}dialog::backdrop{background:#030a10bb}.toast{background:#253640;color:white;border:1px solid #4a5b66}.login-screen,.login{background:#111a20}.login-card{color:var(--ink);background:#1b262e;border:1px solid #34434d;border-radius:12px}.login-card .brand-logo,.login-card img{background:transparent;border-radius:0;padding:0;width:62px;height:auto;object-fit:contain}.login-card h1{font-size:30px}.login-card .muted{font-size:15px}
/* CreativeCloud */
.cc-object{background:#111c23;border:1px solid var(--line)}.cc-object a{color:#ff9e7a}.cc-muted,.cc-service small,.cc-step p,.cc-submit p{color:var(--muted)}.cc-service{border-color:#35444e;background:#1c2830}.cc-service:hover{background:#26343d}.cc-service:has(input:checked){background:#38281f;border-color:var(--orange)}.cc-divider,.cc-submit,.cc-order{border-color:var(--line)}.cc-divider{background:var(--line)}.cc-health{background:#382b1e;color:#f3d5b8}.cc-health.good{background:#1b332a;color:#b6e9cc}.cc-order-actions a{background:var(--orange);border-color:var(--orange);color:#fff;font-weight:600}.cc-badge.processing{background:#433020;color:#ffbc8c}.cc-output-types span{border-color:#40505b}.cc-context .panel:first-child{background:#202e37}.cc-step>span{color:var(--orange)}
/* Natalia — keep source classification colours and transcript semantics. */
.shell .section-title,.shell .detail-head{background:#1d2931}.shell .chat{color:var(--ink);background:#192329;border-color:var(--line)}.shell .chat:hover,.shell .chat.active{background:#2c302d}.shell .chat p{color:#a9b6bf}.shell .message{background:#25333e}.shell .message.out{background:#403025}.shell .decision-grid div{background:#23313b}.shell .source-customer,.shell .speaker-0{background:#1c3048!important;color:#dce9ff}.shell .source-manager,.shell .speaker-2{background:#1c382f!important;color:#dcf5e5}.shell .source-natalia,.shell .speaker-1{background:#332845!important;color:#f0e2ff}.shell .source-auto,.shell .source-system{background:#2d3339!important;color:#e0e5e8}.shell .source-unknown,.shell .speaker-3{background:#40351f!important;color:#f6e8c7}.shell .criterion blockquote{background:#16222b;color:#c4d0d8}.shell .transcript-turn small{color:#b0bdc7}.shell .evidence-link{color:#ffab89}.shell .nav a{text-decoration:none}.shell .workspace{grid-template-columns:minmax(280px,340px) minmax(0,1fr)}
/* Overview: real operational surfaces, not mock metrics. */
.portal-overview{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:20px;margin-bottom:24px}.portal-overview-primary{min-width:0}.agent-map{padding:24px;background-color:#151f26;background-image:linear-gradient(#ffffff03 1px,transparent 1px),linear-gradient(90deg,#ffffff03 1px,transparent 1px);background-size:24px 24px}.agent-map h2{margin:0;font-size:20px}.agent-map>p{color:var(--muted);margin:6px 0 20px;font-size:14px}.agent-map-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.agent-map-card{display:flex;flex-direction:column;border:1px solid #3b4b55;background:#202c34;border-radius:9px;padding:20px;text-decoration:none;color:var(--ink);min-height:175px;position:relative}.agent-map-card:hover{border-color:var(--orange);background:#29353b}.agent-map-card h3{font-size:18px;margin:12px 0 6px}.agent-map-card p{font-size:14px;color:#adbcc6;margin:0 0 18px}.agent-map-card>span:last-child{margin-top:auto;color:#ff9a71;font-size:14px}.agent-symbol{display:grid;place-items:center;width:40px;height:40px;border-radius:10px;border:1px solid #53606a;color:#ff7a48;font-size:16px;font-weight:700}.overview-chart{padding:22px;margin-top:18px}.overview-chart h2{margin:0;font-size:19px}.overview-chart p{margin:5px 0 16px;color:var(--muted)}.overview-chart svg{width:100%;height:180px;overflow:visible;display:block}.overview-chart text{fill:#a8b7c1;font-size:13px;font-family:inherit}.overview-rail{padding:20px;border-left:1px solid #3c4b55;background:#172127;border-radius:8px}.overview-rail h2{font-size:18px;margin:0 0 18px}.attention-card{border:1px solid #34434c;border-left:3px solid var(--orange);background:#222d35;border-radius:7px;padding:16px;margin-bottom:14px}.attention-card p{color:var(--muted);font-size:14px}.attention-card button{background:var(--orange);border:0;border-radius:5px;color:white;padding:9px 14px;width:100%}.attention-card strong{font-size:15px;overflow-wrap:anywhere}.overview-empty{color:var(--muted);font-size:14px}.overview-meta{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding:13px 0;gap:12px;font-size:14px}.overview-meta b{color:var(--orange);font-size:18px}.overview-chart-caption{display:flex;justify-content:space-between;gap:16px;font-size:13px;color:var(--muted)}.portal-section-label{font-size:13px;color:var(--muted);margin:22px 0 8px}.portal-nav-label{display:block;font-size:12px;letter-spacing:.05em;color:var(--muted);padding:14px 12px 4px}
@media(min-width:1700px){main,.shell main{padding:32px 36px 48px}.portal-overview{grid-template-columns:minmax(0,1fr) 310px}}
@media(max-width:1350px){.portal-overview{grid-template-columns:1fr}.overview-rail{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.overview-rail h2,.overview-rail>p,.overview-rail .overview-rail-stats{grid-column:1/-1}.attention-card{margin-bottom:0}.cc-workspace{grid-template-columns:minmax(0,1fr) 255px;gap:16px}.kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.shell .filters{flex-wrap:wrap}}
@media(max-width:1050px){.cc-workspace{grid-template-columns:1fr}.cc-context{grid-template-columns:1fr}.sidebar,.shell>aside{width:220px}.sidebar-brand strong,.shell .brand b{font-size:14px}main,.shell main{margin-left:220px;padding:24px 18px}.agent-map-grid{gap:10px}.agent-map-card{padding:15px}.shell .workspace{grid-template-columns:1fr;height:auto}.shell .list{max-height:440px}.shell .detail{min-height:420px}}
@media(max-width:760px){.sidebar,.shell>aside{position:static;width:100%;padding:0 14px 14px;overflow:visible}.sidebar-brand,.shell .brand{margin:0 -14px 10px;min-height:80px;padding:16px 20px}.sidebar nav,.shell nav{display:flex;gap:6px;overflow-x:auto;align-items:flex-start}.sidebar nav>.nav,.shell nav>.nav{white-space:nowrap;width:auto;flex-shrink:0}.agents-nav{margin:0;padding:0;border:0;flex-shrink:0}.agents-nav summary{padding:12px}.agents-nav .agent-link{padding:9px 14px}.sidebar-bottom,.shell .profile{display:flex;justify-content:space-between;padding:10px 0 0;gap:10px}.user-line{padding:0;border:0;gap:10px}.sync-state{display:none}main,.shell main{margin:0;padding:22px 14px}.topbar,.shell header{align-items:flex-start}.top-actions{max-width:145px}.topbar h1{font-size:29px}.agent-map{padding:18px}.agent-map-grid{grid-template-columns:1fr}.agent-map-card{min-height:0;padding:16px}.agent-map-card h3{margin:8px 0}.overview-rail{grid-template-columns:1fr}.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.filters label,.filters input,.filters select{min-width:0;width:100%}.quick-periods{grid-column:1/-1}.calendar-week span{font-size:12px}.portal-nav-label{display:none}.cc-context{display:flex}.shell .filters{display:flex}.overview-chart{padding:18px}.overview-chart svg{height:150px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
@media(max-width:1350px){#overview-attention{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}}
@media(max-width:760px){#overview-attention{grid-template-columns:1fr}.cc-search input{min-height:46px}.shell .profile{flex-wrap:wrap}}
