/* 24/7Agent Copilot — v40.6 premium executive Overview
   UI-only layer: no data, RAG, model or HITL behavior changes. */
:root{
  --v406-forest:#0f2b22;
  --v406-forest-2:#12382b;
  --v406-forest-3:#1f6048;
  --v406-sage:#e9f2ec;
  --v406-sage-2:#dcece2;
  --v406-ivory:#f7f4ec;
  --v406-card:#fffefd;
  --v406-ink:#17251e;
  --v406-muted:#69756e;
  --v406-line:#e5e3dc;
  --v406-good:#2c6a50;
  --v406-good-soft:#f3faf6;
  --v406-amber:#bd731e;
  --v406-amber-soft:#fff8ee;
  --v406-red:#bd4338;
  --v406-red-soft:#fff6f4;
  --v406-shadow:0 14px 38px rgba(23,45,34,.07);
}

/* Global shell */
html,body{background:linear-gradient(135deg,#f7f4ec 0%,#faf8f3 55%,#f6f3eb 100%)}
.app-shell{grid-template-columns:238px 1fr}
.sidebar{width:238px;padding:22px 15px;background:linear-gradient(180deg,#0d2a21 0%,#103227 60%,#0b251d 100%);border-right:1px solid rgba(255,255,255,.035);box-shadow:8px 0 30px rgba(12,35,27,.06)}
.workspace{grid-column:2}
.side-brand{padding:0 7px 28px;gap:12px}.side-brand .logo-mark.small{width:50px;height:50px;border-radius:14px;background:linear-gradient(145deg,#22634c,#174934);box-shadow:inset 0 1px 0 rgba(255,255,255,.08);font-size:14px}.side-brand strong{font:800 17px Manrope,sans-serif;letter-spacing:-.02em}.side-brand span{font-size:12px;color:#b5c8bd;margin-top:2px}
.sidebar nav{gap:5px}.nav-item{position:relative;min-height:43px;align-items:center;padding:11px 12px 11px 43px;border-radius:11px;color:#c1cec7;font-weight:500;transition:background .18s ease,color .18s ease,transform .18s ease}.nav-item:hover{background:rgba(51,117,88,.38);transform:translateX(1px)}.nav-item.active{background:linear-gradient(90deg,#245f49,#2d7056);color:#fff;box-shadow:0 8px 20px rgba(6,23,17,.18)}
.nav-item::before{position:absolute;left:14px;top:50%;transform:translateY(-50%);width:18px;height:18px;display:grid;place-items:center;font-size:15px;color:currentColor;opacity:.94}
.nav-item[data-screen="overview"]::before{content:"⌂"}.nav-item[data-screen="operations"]::before{content:"◉"}.nav-item[data-screen="agents"]::before{content:"♙"}.nav-item[data-screen="report"]::before,.nav-item[data-screen="reports"]::before{content:"▣"}.nav-item[data-screen="sources"]::before{content:"◫"}.nav-item[data-screen="standards"]::before{content:"▤"}.nav-item[data-screen="analytics"]::before{content:"⌁"}.nav-item[data-screen="history"]::before,.nav-item[data-screen="storico"]::before{content:"↶"}.nav-item[data-screen="audit"]::before{content:"⊙"}.nav-item[data-screen="onboarding"]::before{content:"◎"}.nav-item[onclick*="organization"]::before{content:"⚙"}
.nav-item b{background:#e0f1e6;color:#214d3b;min-width:22px;text-align:center;padding:2px 6px;font-size:10px}.security-chip{color:#b7c9bf;margin:14px 10px;font-size:10px}.logout{height:42px;border-color:rgba(207,229,216,.25);color:#d6e2db;background:rgba(255,255,255,.018);border-radius:11px}.logout:hover{background:rgba(255,255,255,.05)}

/* Header and page hierarchy */
.topbar{height:78px;padding:0 30px;background:rgba(255,254,251,.9);border-bottom:1px solid #e8e4da;box-shadow:0 1px 0 rgba(26,49,38,.02);backdrop-filter:blur(18px)}.topbar strong{font:800 17px Manrope,sans-serif;color:#17251e}.tenant-label{font-size:9px;color:#918c81;letter-spacing:.13em}.top-actions{gap:12px}.avatar{width:38px;height:38px;background:#e2eee6;color:#255841}
.screen{padding:30px 30px 104px;max-width:1540px}.page-head{margin-bottom:22px;align-items:end}.page-head .kicker{color:#286a50;font-size:10px;letter-spacing:.1em}.page-head h1{font:750 clamp(30px,3vw,40px) Manrope,sans-serif;color:#17251e;letter-spacing:-.045em;margin:8px 0 6px}.page-head p{color:#73786f;font-size:14px}.btn.ghost{background:rgba(255,255,255,.72);border-color:#ddd8cd;border-radius:11px;padding:11px 16px;box-shadow:0 2px 8px rgba(23,41,32,.025)}.btn.ghost:hover{border-color:#bfcfc4;background:#fff}

/* OGGI master card */
.today-executive{margin:0 0 26px;padding:20px;border:1px solid #e5e3dc;border-radius:20px;background:rgba(255,255,255,.9);box-shadow:var(--v406-shadow);overflow:hidden}.today-executive::before{content:"";display:block;height:1px;margin:-20px -20px 16px;background:linear-gradient(90deg,transparent,#d8e9df 30%,#eadfd7 70%,transparent)}
.today-head{align-items:flex-start}.today-kicker{display:inline-flex;align-items:center;gap:6px;margin-bottom:7px;padding:5px 10px;border-radius:999px;background:#edf5ef;color:#255e47;font-size:10px;letter-spacing:.08em}.today-kicker::before{content:"▣";font-size:11px}.today-head h2{font:800 23px Manrope,sans-serif;letter-spacing:-.03em;color:#182720}.today-head p{font-size:12px;color:#777d76}.today-head button{min-height:42px;padding:0 16px;border-radius:11px;background:linear-gradient(135deg,#164f3a,#0e392a);box-shadow:0 8px 18px rgba(24,74,54,.16);transition:transform .15s ease,box-shadow .15s ease}.today-head button::before{content:"✦";margin-right:7px}.today-head button:hover{transform:translateY(-1px);box-shadow:0 10px 22px rgba(24,74,54,.22)}

/* Three executive answers */
.today-questions{gap:12px;margin-top:15px}.today-questions article{position:relative;min-height:122px;padding:19px 18px 18px 72px!important;border-radius:15px!important;box-shadow:none!important;display:flex;flex-direction:column;justify-content:center}.today-questions article::before{position:absolute;left:17px;top:22px;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;font:800 20px Manrope,sans-serif;border:1px solid currentColor}.today-questions article::after{content:"";position:absolute;inset:0;border-radius:15px;pointer-events:none;box-shadow:inset 0 1px 0 rgba(255,255,255,.8)}
#today-card-going::before{content:"↗";color:#23644a;background:#e8f4ed;border-color:#cfe6d8}#today-card-attention::before{content:"!";color:#c06d17;background:#fff0df;border-color:#f0d0ab}#today-card-now::before{content:"⌖";color:#b73d34;background:#fde8e5;border-color:#efc5bf}
.today-executive.v405 .today-questions article.today-status-positive{border-color:#b9d9c6;background:linear-gradient(135deg,#f6fbf8,#fbfdfc);box-shadow:none}.today-executive.v405 .today-questions article.today-status-stable{border-color:#c9ddd0;background:linear-gradient(135deg,#f7fbf8,#fbfdfc);box-shadow:none}.today-executive.v405 .today-questions article.today-status-attention{border-color:#efc6be;background:linear-gradient(135deg,#fff9f6,#fffdfc);box-shadow:none}.today-executive.v405 .today-questions article.today-status-neutral{border-color:#e3ddd3;background:#fcfbf8}
.today-questions span{font-size:10px;letter-spacing:.08em;font-weight:800}.today-card-going span,#today-card-going span{color:#216449}.today-questions #today-card-attention span{color:#ad641b}.today-questions #today-card-now span{color:#ad3932}.today-questions p{margin:7px 0 0;font-size:14px;line-height:1.45;color:#26372f;font-weight:500}

/* Signals / criticalities */
.today-signal-grid{grid-template-columns:1.35fr .65fr;gap:12px;margin:14px 0 18px}.today-signal-grid>section{min-height:104px;padding:15px 16px;border-radius:15px;box-shadow:none}.today-positive{background:linear-gradient(135deg,#f6fbf8,#fbfdfc)!important;border-color:#cce2d4!important}.today-alert-summary{background:linear-gradient(135deg,#fff9f7,#fffdfc)!important;border-color:#edd0ca!important}.today-subhead{margin-bottom:10px}.today-subhead strong{display:flex;align-items:center;gap:8px;font:750 13px Manrope,sans-serif;color:#26352e}.today-positive .today-subhead strong::before{content:"✓";width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#e8f3ec;color:#266248}.today-alert-summary .today-subhead strong::before{content:"▲";width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#fdebea;color:#b54238;font-size:10px}.today-subhead span{font-size:9px;letter-spacing:.09em;color:#858b85}.today-positive-chip{margin:3px 6px 3px 0;padding:7px 11px;background:linear-gradient(180deg,#eaf5ee,#e2f0e7);color:#225d45;border:1px solid #d9eadf;font-size:10.5px;font-weight:750;line-height:1.25}.today-alert-summary #today-alert-count{gap:10px}.today-alert-summary #today-alert-count strong{font:800 30px Manrope,sans-serif;color:#bd4237}.today-alert-summary #today-alert-count span{font-size:11px;color:#6e746f}

/* Executive briefs */
.today-brief-head{margin-top:16px;padding-top:15px;border-top-color:#ece9e2;align-items:center}.today-brief-head strong{font:800 14px Manrope,sans-serif;color:#1e2d26}.today-brief-head span{font-size:11px}.today-coverage{padding:6px 11px;background:#f0f4f0;color:#6b756e!important;border:1px solid #e5ebe6}
.today-briefs{gap:12px;margin-top:11px}.today-brief{position:relative;padding:14px 14px 13px;border-radius:15px;background:#fff;box-shadow:0 5px 16px rgba(32,52,42,.035);overflow:hidden}.today-brief.priority-alta{border-color:#efb9b2;box-shadow:inset 3px 0 0 #c8463b,0 5px 16px rgba(65,33,29,.035)}.today-brief.priority-media{border-color:#ecd1a9;box-shadow:inset 3px 0 0 #c78223,0 5px 16px rgba(65,48,28,.035)}.today-brief-top{font-size:9px;letter-spacing:.05em}.today-priority{display:inline-flex;align-items:center;padding:4px 7px;border-radius:999px;background:#fff3de;color:#a96817}.today-priority.alta{background:#fde7e4;color:#b84035}.today-brief-top>span:last-child{padding:4px 8px;border-radius:999px;background:#f5f4f1;color:#727772}.today-brief h3{margin:8px 0 3px;font:800 15px Manrope,sans-serif;letter-spacing:-.015em;color:#1d2b24}.today-brief>p{margin-bottom:10px;font-size:11.5px;color:#707771}.today-brief dl{gap:5px;margin-bottom:10px}.today-brief dl div{grid-template-columns:90px 1fr;gap:7px;align-items:start}.today-brief dt{position:relative;padding-left:17px;font-size:9px;color:#65726b;letter-spacing:.04em}.today-brief dt::before{position:absolute;left:0;top:-1px;width:12px;text-align:center;color:#53665c}.today-brief dl div:nth-child(1) dt::before{content:"✧"}.today-brief dl div:nth-child(2) dt::before{content:"♙"}.today-brief dl div:nth-child(3) dt::before{content:"◷"}.today-brief dl div:nth-child(4) dt::before{content:"▣"}.today-brief dd{font-size:10.8px;line-height:1.35;color:#38473f}.today-brief button{padding:9px 13px;border-radius:9px;background:linear-gradient(135deg,#155039,#0e3828);box-shadow:0 5px 12px rgba(20,63,45,.14);font-size:11px}.today-brief button::before{content:"✦";margin-right:6px}.today-no-alerts{border-radius:15px}

/* Copilot dock */
.copilot-dock{left:255px;right:20px;bottom:14px;min-height:54px;padding:7px 9px;border-radius:15px;background:linear-gradient(100deg,rgba(14,42,32,.98),rgba(20,54,42,.97));border-color:rgba(221,241,229,.12);box-shadow:0 16px 42px rgba(9,30,22,.26)}.dock-brand span{width:32px;height:32px;border-radius:9px;background:#e1f1e7;color:#1b533d}.dock-brand strong{font-size:11px}.copilot-dock input{height:39px;border-radius:9px;background:rgba(255,255,255,.075);border-color:rgba(255,255,255,.11)}.copilot-dock form button{border-radius:9px;background:#e3f3e9;color:#154732;padding:0 17px}.dock-approvals{height:39px;border-radius:9px;background:rgba(255,255,255,.025)}

/* Subtle polish */
button{transition:filter .15s ease,transform .15s ease,background .15s ease}.today-executive button:active,.btn:active{transform:translateY(1px)}

@media(max-width:1100px){.app-shell{display:block}.sidebar{position:static;width:100%;box-shadow:none}.workspace{display:block}.copilot-dock{left:18px}.screen{padding-left:24px;padding-right:24px}.today-signal-grid{grid-template-columns:1fr}.today-questions{grid-template-columns:1fr}.today-questions article{min-height:108px}}
@media(max-width:720px){.screen{padding:22px 15px 96px}.today-executive{padding:15px;border-radius:16px}.today-executive::before{margin:-15px -15px 13px}.today-head{gap:12px}.today-head h2{font-size:21px}.today-head button{width:100%}.today-questions article{padding-left:64px!important}.today-questions article::before{left:14px;width:36px;height:36px}.today-signal-grid{margin-bottom:14px}.today-brief-head{align-items:flex-start}.today-coverage{max-width:100%}.today-briefs{grid-template-columns:1fr}.today-brief dl div{grid-template-columns:80px 1fr}.copilot-dock{left:10px;right:10px}}
