/* Traffic Land — Abyssal Bioluminescent interface
   Brand layer: Traffic Land gold + restrained mint data glow. */
:root{
  --ink:#effcf9;--muted:#93aaa6;--bg:#031d1c;--panel:#062a28;--panel-2:#093330;
  --line:rgba(204,255,249,.105);--green:#c89b3c;--green-dark:#a87928;
  --green-soft:rgba(200,155,60,.115);--orange:#d8ad59;--bio:#7de6d5;
  --bio-soft:rgba(125,230,213,.1);--lavender:#fde9ff;--danger:#ff8f9b;
  --shadow:none;--card-radius:16px;--control-radius:7px
}

/* Project workspace tools */
.stats-detail-hint{display:flex;align-items:center;gap:9px;padding:14px 20px;color:var(--text-muted,#89a09c);font-size:13px;border-bottom:1px solid rgba(113,226,202,.1)}
.stats-day-row{cursor:pointer;transition:background .18s ease}.stats-day-row:hover,.stats-day-row.is-open{background:rgba(94,226,199,.07)}
.stats-day-toggle{display:flex;align-items:center;gap:9px;border:0;background:none;color:inherit;font:inherit;font-weight:700;cursor:pointer;white-space:nowrap}.stats-day-toggle span{width:25px;height:25px;display:grid;place-items:center;border:1px solid rgba(213,166,73,.35);border-radius:8px;color:#dfad4c}
.stats-campaign-row{background:rgba(0,0,0,.16);font-size:13px}.stats-campaign-row td{color:var(--text-muted,#96aaa7);padding-top:12px!important;padding-bottom:12px!important}.campaign-indent{display:block;padding-left:34px;color:var(--text,#e9f4f1);font-weight:600}

.creo-manager{display:grid;gap:16px;min-height:460px}.creo-actions,.creo-bulk,.creo-toolbar{display:flex;align-items:center;gap:10px}.creo-toolbar{justify-content:space-between;padding:11px 14px;border:1px solid rgba(112,224,200,.14);border-radius:14px;background:rgba(6,35,33,.42)}
.creo-breadcrumbs{display:flex;align-items:center;gap:8px;min-width:0;overflow:auto}.creo-breadcrumbs button,.creo-bulk button{border:0;background:none;color:var(--text,#e9f4f1);font:inherit;font-weight:650;cursor:pointer;padding:7px 8px;border-radius:8px}.creo-breadcrumbs button:hover,.creo-bulk button:hover:not(:disabled){background:rgba(98,225,199,.1)}.creo-breadcrumbs span{color:#d5a649}.creo-bulk label{display:flex;align-items:center;gap:7px;color:var(--text-muted,#91a7a3);font-size:13px}.creo-bulk button:disabled{opacity:.35;cursor:not-allowed}.creo-bulk .danger-text{color:#ff8d8d}
.creo-upload{position:relative;display:inline-flex;align-items:center;cursor:pointer}.creo-dropzone{border:1px dashed rgba(103,226,200,.32);border-radius:18px;padding:18px;display:flex;justify-content:center;align-items:center;gap:8px;color:var(--text-muted,#91a7a3);background:rgba(62,210,182,.025);transition:.2s}.creo-dropzone.drag-over{border-color:#e0ad4a;background:rgba(224,173,74,.09);transform:scale(.995)}.creo-dropzone small{opacity:.65}
.creo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:14px}.creo-item{position:relative;min-width:0;border:1px solid rgba(115,225,203,.14);border-radius:18px;background:linear-gradient(145deg,rgba(14,55,51,.78),rgba(5,31,30,.64));overflow:hidden;transition:transform .18s,border-color .18s,box-shadow .18s}.creo-item:hover{transform:translateY(-2px);border-color:rgba(224,173,74,.42);box-shadow:0 14px 35px rgba(0,0,0,.22)}.creo-item>label{position:absolute;z-index:3;top:10px;left:10px;width:27px;height:27px;display:grid;place-items:center;border-radius:9px;background:rgba(4,21,21,.76);backdrop-filter:blur(8px)}.creo-open{width:100%;height:100%;border:0;background:none;color:inherit;text-align:left;padding:0;cursor:pointer;display:flex;flex-direction:column}.creo-open strong{padding:12px 14px 3px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.creo-open small{padding:0 14px 14px;color:var(--text-muted,#91a7a3)}.creo-thumb{height:128px;background:rgba(0,0,0,.25);display:block;overflow:hidden}.creo-thumb img,.creo-thumb video{width:100%;height:100%;object-fit:cover}.creo-folder .creo-open{min-height:190px;justify-content:flex-end}.folder-icon{font-size:62px;line-height:1;color:#d8a84a;padding:24px 14px 10px;filter:drop-shadow(0 10px 18px rgba(213,166,73,.16))}.creo-more{position:absolute;top:10px;right:10px;border:0;border-radius:9px;background:rgba(4,21,21,.76);color:#e7f2ef;padding:7px 9px;cursor:pointer}.creo-empty{grid-column:1/-1;min-height:220px;display:grid;place-items:center;align-content:center;text-align:center;color:var(--text-muted,#91a7a3)}.creo-empty span{font-size:48px;color:#d7a649}.creo-empty h4{color:var(--text,#eef7f5);font-size:20px;margin:8px 0}.creo-empty p{margin:0}.creo-preview-modal{max-width:min(1100px,92vw)!important}.creo-preview-head{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:18px}.creo-preview-head h3{margin:4px 0}.creo-preview-head small,.creo-preview-head span{color:var(--text-muted,#91a7a3)}#creoPreview>img,#creoPreview>video{display:block;max-width:100%;max-height:70vh;margin:auto;border-radius:18px;background:#020b0b}

.pdf-report{position:fixed;left:-10000px;top:0;width:1100px;padding:34px;background:#f5f1e8;color:#17201e;font-family:Geist,Arial,sans-serif}.pdf-report header{display:flex;justify-content:space-between;align-items:center;padding-bottom:20px;border-bottom:2px solid #c99a3d}.pdf-brand{display:flex;align-items:center;gap:12px}.pdf-brand>span{width:44px;height:44px;border-radius:13px;background:#092d2a;color:#e4b758;display:grid;place-items:center;font-weight:800}.pdf-brand b{display:block;font-size:18px}.pdf-brand small{color:#a37727;letter-spacing:2px}.pdf-date{text-align:right;color:#65706d;line-height:1.55}.pdf-title{padding:26px 0 18px}.pdf-title small{color:#a17423;letter-spacing:2px;font-weight:700}.pdf-title h1{font-size:32px;margin:8px 0 4px}.pdf-title p{margin:0;color:#68716f}.pdf-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:22px}.pdf-metrics article{border:1px solid #d8d2c5;border-radius:14px;padding:15px;background:#fff}.pdf-metrics small{display:block;color:#837b6e;letter-spacing:1px}.pdf-metrics b{display:block;font-size:23px;margin:7px 0}.pdf-metrics span{color:#8b6a2e}.pdf-report table{width:100%;border-collapse:collapse;font-size:10px;background:#fff;border-radius:12px;overflow:hidden}.pdf-report th{background:#092d2a;color:#e5b75c;padding:10px 7px;text-align:right}.pdf-report th:first-child,.pdf-report td:first-child{text-align:left}.pdf-report td{padding:9px 7px;text-align:right;border-bottom:1px solid #e6e0d5}.pdf-report tbody tr:nth-child(even){background:#f9f7f2}.pdf-report footer{display:flex;justify-content:space-between;color:#777f7c;border-top:1px solid #d8d2c5;margin-top:18px;padding-top:12px}

[data-theme="light"] .stats-campaign-row{background:#eef4f1}[data-theme="light"] .creo-toolbar{background:#f5f9f7;border-color:#dbe8e3}[data-theme="light"] .creo-item{background:linear-gradient(145deg,#fff,#f3f8f5);border-color:#d9e7e2}[data-theme="light"] .creo-item>label,[data-theme="light"] .creo-more{background:rgba(255,255,255,.9);color:#17312e}[data-theme="light"] .creo-dropzone{background:#f8fbfa;border-color:#b9d6ce}
@media(max-width:760px){.creo-toolbar,.project-tab-head{align-items:stretch!important;flex-direction:column}.creo-actions{display:grid;grid-template-columns:1fr 1fr}.creo-bulk{flex-wrap:wrap}.creo-dropzone{display:none}.creo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.creo-thumb{height:104px}.creo-folder .creo-open{min-height:168px}.stats-detail-hint{font-size:12px}.pdf-report{width:1000px}}
*{scrollbar-color:#315653 #041c1b}
html{background:var(--bg)}
body{font-family:Geist,Inter,system-ui,sans-serif;font-size:15px;background:
  radial-gradient(70% 55% at 86% -8%,rgba(62,130,118,.16),transparent 72%),
  radial-gradient(45% 42% at 42% 104%,rgba(200,155,60,.055),transparent 74%),var(--bg);color:var(--ink)}
body:before{content:"";position:fixed;inset:0;pointer-events:none;z-index:0;opacity:.16;background-image:radial-gradient(rgba(202,255,249,.55) .55px,transparent .7px);background-size:31px 31px;mask-image:linear-gradient(to bottom,black,transparent 74%)}
button,input,select,textarea{font-family:inherit}.app-shell{position:relative;z-index:1}
.tl-atmosphere{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:0}
.tl-atmosphere i{position:absolute;display:block;border-radius:50%;background:radial-gradient(circle at 35% 32%,rgba(242,255,252,.92) 0 3%,rgba(117,224,204,.38) 6%,rgba(37,119,105,.1) 28%,transparent 67%);filter:blur(.2px)}
.tl-atmosphere i:nth-child(1){width:150px;height:150px;right:3%;top:19%;opacity:.26}
.tl-atmosphere i:nth-child(2){width:52px;height:52px;right:23%;top:7%;opacity:.3}
.tl-atmosphere i:nth-child(3){width:24px;height:24px;left:34%;bottom:12%;opacity:.28}
.tl-atmosphere i:nth-child(4){width:11px;height:11px;right:39%;top:36%;opacity:.4}
.tl-atmosphere i:nth-child(5){width:7px;height:7px;left:29%;top:15%;opacity:.44}

/* Structure */
.sidebar{background:rgba(2,22,21,.94);border-right:1px solid var(--line);backdrop-filter:blur(18px)}
.brand{height:84px;padding-inline:24px;color:#f4eee0;font-size:15px;font-weight:650;letter-spacing:.16em}
.brand img{width:43px;height:43px;border:1px solid rgba(200,155,60,.32);border-radius:50%}.brand small{color:var(--green);font-size:9px;letter-spacing:.44em;margin-top:5px}
.nav{padding:10px 15px 26px}.nav-group{margin-bottom:3px}
.nav-item{min-height:55px;padding:0 15px;border:1px solid transparent;border-radius:11px;color:#9eb2ae;font-size:16px;font-weight:600;letter-spacing:-.015em}
.nav-item:hover{background:rgba(125,230,213,.045);border-color:rgba(125,230,213,.07);color:#f2fffc}
.nav-item.active{background:linear-gradient(90deg,rgba(200,155,60,.15),rgba(125,230,213,.045));border-color:rgba(200,155,60,.32);color:#fff5dc}
.nav-item.active:before{content:"";width:3px;height:22px;border-radius:4px;background:var(--green);margin-left:-16px;margin-right:13px}
.nav-icon{color:#89a29d}.nav-item.active .nav-icon{color:#f0cc7c}.nav-item b{background:rgba(200,155,60,.11);border:1px solid rgba(200,155,60,.18);color:#e4bd69}
.nav-submenu{margin:3px 0 10px 47px;gap:2px}.nav-sub{min-height:35px;padding:6px 8px;color:#718d87;font:600 11px Geist;letter-spacing:.045em}
.nav-sub:before{background:#365b55}.nav-sub:hover,.nav-sub.active{color:#d7f6f0}.nav-sub.active:before{background:var(--bio);box-shadow:0 0 0 4px rgba(125,230,213,.08)}
.profile{margin:14px;border:1px solid var(--line);border-radius:14px;background:rgba(7,44,42,.64)}
.topbar{height:82px;background:rgba(3,29,28,.8);border-bottom:1px solid var(--line);backdrop-filter:blur(18px)}
.main{background:transparent}.content{padding:44px 48px 70px}

/* Search, controls, theme */
.search,.search.inner{height:46px;background:rgba(3,24,23,.68);border:1px solid var(--line);border-radius:8px}.search:focus-within{border-color:rgba(125,230,213,.34);background:#041f1e}.search input{color:var(--ink);font-size:13px}.search input::placeholder{color:#6f8984}
.icon-btn,.theme-toggle{background:rgba(5,39,37,.7);border:1px solid var(--line);color:#bbd4cf;border-radius:8px;box-shadow:none}.icon-btn:hover{border-color:rgba(200,155,60,.35);color:#f0c86e}
.role-switcher select,.stats-toolbar select,.lead-filters select,.modal input,.modal select,.modal textarea{border-radius:var(--control-radius)!important}

/* Typography and page rhythm */
.page-heading{align-items:flex-end;margin-bottom:30px;padding-bottom:24px;border-bottom:1px solid var(--line)}
.page-heading h1{font-size:clamp(36px,4vw,58px);font-weight:520;letter-spacing:-.052em;line-height:.98;color:#f5fffc;margin:8px 0 12px}
.page-heading.compact h1{font-size:clamp(34px,3.5vw,52px)}
.page-heading>div>p:last-child,.panel-head p{color:var(--muted);font-size:13px;line-height:1.55}
.eyebrow{color:#e0b65e;font-size:10px;font-weight:700;letter-spacing:.25em;text-transform:uppercase}
.panel-head h2{font-size:18px;font-weight:560;letter-spacing:-.025em}.metric h3,.lead-metric strong,.role-overview strong{color:var(--lavender);font-weight:520;letter-spacing:-.045em}

/* Panels */
.panel,.metric,.deal-card,.client-card,.task-item,.lead-metric,.pixel-card,.role-overview>div,.finance-card,.meta-account-card,.infrastructure-stat-card,.infrastructure-table-panel,.infrastructure-kanban-col,.infrastructure-board-card{background:rgba(6,42,40,.82);border:1px solid var(--line);border-radius:var(--card-radius);box-shadow:none!important}
.panel:hover,.metric:hover,.deal-card:hover,.client-card:hover,.pixel-card:hover,.infrastructure-board-card:hover{border-color:rgba(125,230,213,.2)}
.dashboard-grid{gap:18px}.metric{padding:20px}.metric-icon{background:var(--bio-soft);color:var(--bio);border-radius:9px}.metric h3{font-size:30px}
.panel-head{border-color:var(--line)}.period,.filters{background:rgba(2,23,22,.72);border:1px solid var(--line);border-radius:8px;padding:3px}.period button,.filters button{color:#819a95;font-size:11px;border-radius:5px}.period button.active,.filters button.active{background:#0d3b37;color:#d8f8f2;box-shadow:none}
.chart{border-color:var(--line);background:repeating-linear-gradient(to bottom,transparent 0,transparent 46px,rgba(203,255,249,.055) 47px)}.bar.revenue{background:#cfaa59}.bar.spend{background:#4ba392}.progress,.profit-visual{background:#103b37}.progress i{background:var(--bio)}

/* Primary actions: the only pronounced gradient */
.primary-btn{min-height:43px;padding:0 17px;border:0;border-radius:7px;background:linear-gradient(100deg,#b9852b 0%,#ebca80 48%,#a9e8dc 100%);color:#08211f;font-size:12px;font-weight:760;box-shadow:none!important;letter-spacing:.01em}
.primary-btn:hover{background:linear-gradient(100deg,#c99538 0%,#f4d994 48%,#c3f6ed 100%);transform:translateY(-1px)}
.secondary-btn{min-height:43px;border:1px solid rgba(200,155,60,.3);background:rgba(200,155,60,.075);color:#e6c477;border-radius:7px;font:650 11px Geist}.secondary-btn:hover{background:rgba(200,155,60,.13);border-color:rgba(200,155,60,.48)}

/* Data tables */
.table-wrap{border-radius:14px;overflow:hidden;border:1px solid var(--line)}
table{background:rgba(3,28,27,.3)}th{height:48px;background:rgba(2,23,22,.82);color:#809b96;border-color:var(--line);font-size:9px;letter-spacing:.14em}td{height:62px;border-color:var(--line);font-size:11px;color:#d7e9e5}tbody tr{transition:background .16s}tbody tr:hover{background:rgba(125,230,213,.035)}
.client-logo,.mini-avatar{background:rgba(200,155,60,.12);color:#e5c16f}

/* Tabs and kanban */
.project-tabs,.card-tabs{gap:4px}.project-tabs button,.card-tabs button{min-height:38px;background:rgba(2,23,22,.58);border:1px solid var(--line);border-radius:6px;color:#819993;font-size:11px}.project-tabs button.active,.card-tabs button.active{background:rgba(125,230,213,.09);border-color:rgba(125,230,213,.22);color:#d8faf3}
.kanban-col,.client-kanban-col{background:rgba(2,24,23,.48);border:1px solid var(--line);border-top:2px solid rgba(125,230,213,.18);border-radius:14px}.kanban-head{color:#bcd0cc;letter-spacing:.06em}.kanban-head span{background:#0b3734;color:#a6c3bd}.deal-card,.client-card{background:#082e2c}.deal-card:hover,.client-card:hover{transform:translateY(-1px)}.deal-meta,.client-card-meta{border-color:var(--line)}.empty-column{border-color:rgba(125,230,213,.15);color:#66827d}

/* Forms and modals */
.modal-backdrop{background:rgba(0,14,14,.78);backdrop-filter:blur(10px)}
.modal{background:#052522;border:1px solid rgba(200,155,60,.22);border-radius:18px;color:var(--ink);box-shadow:none}.modal h2{font-weight:540;letter-spacing:-.035em}.modal-close{background:#0d3430;border:1px solid var(--line);color:#b9d0cb;border-radius:50%;box-shadow:none}.modal-close:hover{color:#f0c970;border-color:rgba(200,155,60,.35)}
.modal label{color:#a8bbb7;font-size:11px}.modal input,.modal select,.modal textarea{background:#031d1c;border:1px solid var(--line);color:#ebf9f6;font-size:13px;box-shadow:none}.modal input:focus,.modal select:focus,.modal textarea:focus{border-color:rgba(125,230,213,.45);outline:2px solid rgba(125,230,213,.06)}
.placeholder-tab,.no-linked,.linked-project,.client-stats>div,.brief-question,.connection-steps>div{background:#062a28;border-color:var(--line)}.linked-project:hover{background:#0b3935;border-color:rgba(125,230,213,.28)}.linked-project strong{color:#effbf8}.secure-warning{background:rgba(200,155,60,.08);border-color:rgba(200,155,60,.22)}
.toast{background:#d7b35f;color:#08211f;border-radius:8px;font-weight:750;box-shadow:none}

/* Authentication — a calm brand portal, not a separate visual language */
.login-screen{background:
  radial-gradient(circle at 18% 18%,rgba(125,230,213,.09),transparent 30%),
  radial-gradient(circle at 82% 78%,rgba(200,155,60,.07),transparent 31%),#021615;isolation:isolate}
.login-screen:before{background-image:radial-gradient(rgba(196,255,248,.5) .6px,transparent .8px);background-size:34px 34px;opacity:.11;backdrop-filter:none}
.login-screen:after{inset:9% 13%;background:
  radial-gradient(circle at 21% 72%,rgba(239,255,252,.65) 0 2px,rgba(125,230,213,.18) 3px,transparent 10px),
  radial-gradient(circle at 84% 18%,rgba(239,255,252,.6) 0 2px,rgba(125,230,213,.15) 3px,transparent 16px),
  radial-gradient(circle at 91% 81%,rgba(239,255,252,.65) 0 1px,rgba(200,155,60,.16) 2px,transparent 11px)}
.login-card{background:rgba(5,36,34,.92);border:1px solid rgba(200,155,60,.24);border-radius:18px;box-shadow:none;backdrop-filter:blur(20px)}
.login-brand{color:#f4eee0}.login-brand img{border-color:rgba(200,155,60,.34)}.login-brand small{color:#d9ac51}
.login-card h2{font-size:36px;font-weight:540;letter-spacing:-.045em}.login-card>p:not(.eyebrow){color:#91a9a4}
.login-card label{color:#a8bbb7}.login-card input{height:52px;background:#031d1c;border:1px solid var(--line);border-radius:7px;color:#f1fbf9;font-family:Geist,Inter,sans-serif;box-shadow:none}
.login-card input:focus{background:#041f1e;border-color:rgba(125,230,213,.43);box-shadow:0 0 0 3px rgba(125,230,213,.055)}
.login-card .primary-btn{height:52px;border-radius:7px}.login-card>small{color:#66817c}

/* Integrations and infrastructure */
.facebook-connect{background:rgba(6,42,40,.82)}.fb-mark{border-radius:12px}.pixel-icon{background:#173f3b;color:#9df0e2;border:1px solid rgba(125,230,213,.16)}
.infrastructure-controls,.infrastructure-toolbar,.lead-filters{background:rgba(6,42,40,.72);border-color:var(--line)}
.infrastructure-tab,.infrastructure-view-toggle button{background:#041f1e;border-color:var(--line);color:#829a95}.infrastructure-tab.active,.infrastructure-view-toggle button.active{background:#0d3b37;border-color:rgba(125,230,213,.22);color:#d9f8f2}
.infra-tag,.infrastructure-tag{border-radius:5px;background:rgba(125,230,213,.08);color:#a7ddd3;border-color:rgba(125,230,213,.14)}
.connection-status.active,.lead-status.approved,.capi-ok,.activity.active{background:rgba(89,211,171,.11);color:#7ce0b9}.lead-status.pending,.capi-wait{background:rgba(200,155,60,.11);color:#e1bd70}.lead-status.trash{background:rgba(255,112,126,.11);color:#ff9ba5}

/* Light theme — pearl lagoon, same identity */
html[data-theme="light"]{--ink:#102a27;--muted:#617b76;--bg:#edf4ef;--panel:#f8fbf7;--panel-2:#e5f0ea;--line:rgba(21,74,67,.13);--green:#a87524;--green-dark:#825b1d;--green-soft:rgba(168,117,36,.09);--bio:#207e71;--bio-soft:rgba(32,126,113,.09);--lavender:#542b57}
html[data-theme="light"] body{background:radial-gradient(75% 55% at 88% -10%,rgba(89,167,151,.13),transparent 72%),#edf4ef;color:var(--ink)}
html[data-theme="light"] body:before{opacity:.08}html[data-theme="light"] .tl-atmosphere{opacity:.32}
html[data-theme="light"] .sidebar{background:rgba(240,247,242,.94)}html[data-theme="light"] .brand{color:#1b332f}html[data-theme="light"] .topbar{background:rgba(237,244,239,.84)}
html[data-theme="light"] .nav-item{color:#57726c}html[data-theme="light"] .nav-item:hover{background:rgba(32,126,113,.05);color:#143e38}html[data-theme="light"] .nav-item.active{background:linear-gradient(90deg,rgba(168,117,36,.12),rgba(32,126,113,.06));color:#6d4d18}
html[data-theme="light"] .page-heading h1{color:#102a27}html[data-theme="light"] .search,html[data-theme="light"] .search.inner,html[data-theme="light"] .icon-btn,html[data-theme="light"] .theme-toggle{background:rgba(248,251,247,.82)}
html[data-theme="light"] .search input{color:#16332e}html[data-theme="light"] .panel,html[data-theme="light"] .metric,html[data-theme="light"] .deal-card,html[data-theme="light"] .client-card,html[data-theme="light"] .task-item,html[data-theme="light"] .lead-metric,html[data-theme="light"] .pixel-card,html[data-theme="light"] .role-overview>div,html[data-theme="light"] .finance-card,html[data-theme="light"] .meta-account-card,html[data-theme="light"] .infrastructure-stat-card,html[data-theme="light"] .infrastructure-table-panel,html[data-theme="light"] .infrastructure-board-card{background:rgba(248,251,247,.88)}
html[data-theme="light"] .kanban-col,html[data-theme="light"] .client-kanban-col{background:rgba(224,238,231,.62)}html[data-theme="light"] .deal-card,html[data-theme="light"] .client-card{background:#f8fbf7}
html[data-theme="light"] th{background:#e6f0ea;color:#58716b}html[data-theme="light"] td{color:#29453f}html[data-theme="light"] tbody tr:hover{background:rgba(32,126,113,.035)}
html[data-theme="light"] .modal{background:#f5faf6;color:#17322d}html[data-theme="light"] .modal input,html[data-theme="light"] .modal select,html[data-theme="light"] .modal textarea{background:#fff;color:#18332e}html[data-theme="light"] .modal-backdrop{background:rgba(14,44,39,.48)}
html[data-theme="light"] .placeholder-tab,html[data-theme="light"] .no-linked,html[data-theme="light"] .linked-project,html[data-theme="light"] .client-stats>div,html[data-theme="light"] .brief-question{background:#edf5f0}html[data-theme="light"] .linked-project strong{color:#17322d}
html[data-theme="light"] .login-screen{background:radial-gradient(circle at 18% 18%,rgba(32,126,113,.11),transparent 30%),radial-gradient(circle at 82% 78%,rgba(168,117,36,.09),transparent 31%),#e9f2ec}
html[data-theme="light"] .login-card{background:rgba(248,251,247,.92);color:#17322d}html[data-theme="light"] .login-brand{color:#17322d}html[data-theme="light"] .login-card input{background:#fff;color:#18332e}

@media(max-width:1100px){.content{padding:34px 28px 60px}.page-heading h1{font-size:42px}}
@media(max-width:760px){.content{padding:26px 16px 50px}.topbar{height:70px}.page-heading{align-items:flex-start;padding-bottom:18px}.page-heading h1,.page-heading.compact h1{font-size:34px}.tl-atmosphere i:nth-child(1){right:-70px}.nav-item{font-size:15px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* Glass v2 — contemporary geometry, calmer density and clearer hierarchy */
:root{
  --glass:linear-gradient(145deg,rgba(10,54,51,.78),rgba(4,31,30,.68));
  --glass-strong:linear-gradient(145deg,rgba(12,59,55,.92),rgba(4,31,30,.88));
  --glass-line:rgba(224,255,250,.095);
  --glass-shadow:0 18px 54px rgba(0,12,12,.24),inset 0 1px 0 rgba(255,255,255,.045);
  --glass-blur:blur(22px) saturate(132%);
  --card-radius:22px;
  --control-radius:13px;
}
html{font-size:16px}
body{font-size:16px;background:
  radial-gradient(900px 560px at 68% -12%,rgba(58,145,130,.15),transparent 68%),
  radial-gradient(720px 520px at 102% 72%,rgba(200,155,60,.09),transparent 70%),
  linear-gradient(145deg,#031817 0%,#062321 44%,#021514 100%)}

/* Floating application frame */
.app-shell{grid-template-columns:292px minmax(0,1fr)!important}
.sidebar{position:fixed!important;inset:12px auto 12px 12px!important;width:268px!important;height:auto!important;border:1px solid var(--glass-line)!important;border-radius:25px!important;background:linear-gradient(160deg,rgba(7,39,37,.94),rgba(2,23,22,.88))!important;box-shadow:var(--glass-shadow)!important;backdrop-filter:var(--glass-blur)!important;overflow:hidden}
.main{grid-column:2!important;min-width:0;padding:12px 14px 0 0}
.topbar{top:12px!important;height:72px!important;margin:0!important;padding:0 20px!important;border:1px solid var(--glass-line)!important;border-radius:21px!important;background:rgba(5,34,32,.68)!important;box-shadow:0 10px 34px rgba(0,12,12,.18),inset 0 1px 0 rgba(255,255,255,.035)!important;backdrop-filter:var(--glass-blur)!important}
.view{padding:36px 38px 64px!important}
.brand{padding:23px 20px 19px!important;font-size:15px!important;letter-spacing:.18em}.brand img{width:42px!important;height:42px!important;border-radius:13px!important;box-shadow:0 8px 22px rgba(0,0,0,.22)}
.nav{padding:10px 12px!important;gap:5px!important}.nav-item{min-height:48px!important;padding:0 14px!important;border:1px solid transparent!important;border-radius:14px!important;font-size:15.5px!important;font-weight:620!important;letter-spacing:-.012em}.nav-item svg{width:21px!important;height:21px!important}.nav-item:hover{background:rgba(255,255,255,.035)!important;border-color:rgba(255,255,255,.045)!important}.nav-item.active{background:linear-gradient(100deg,rgba(200,155,60,.18),rgba(125,230,213,.075))!important;border-color:rgba(218,180,95,.2)!important;box-shadow:inset 3px 0 0 #d2a44a,0 8px 22px rgba(0,0,0,.12)!important}
.subnav{margin:2px 7px 7px 30px!important;padding-left:11px!important}.subnav a{min-height:38px!important;border-radius:11px!important;font-size:13px!important}.sidebar-profile{margin:8px 12px 12px!important;padding:13px!important;border:1px solid rgba(255,255,255,.06)!important;border-radius:17px!important;background:rgba(255,255,255,.026)!important}

/* Type and controls */
.page-heading{margin-bottom:25px!important;padding-bottom:0!important;border-bottom:0!important}.page-heading h1,.page-heading.compact h1{font-size:clamp(42px,4.2vw,62px)!important;font-weight:610!important;line-height:.98!important;letter-spacing:-.055em!important}.page-heading>div>p:last-child{max-width:720px;font-size:15px!important;line-height:1.55!important}.eyebrow{font-size:11px!important;letter-spacing:.23em!important}.panel-head h2{font-size:21px!important;font-weight:650!important}.panel-head p{font-size:13px!important}
.search,.search.inner{height:44px!important;border-radius:14px!important;background:rgba(255,255,255,.035)!important;border-color:rgba(255,255,255,.075)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.025)!important}.search input{font-size:14px!important}.icon-btn,.theme-toggle{width:44px!important;height:44px!important;border-radius:14px!important;background:rgba(255,255,255,.035)!important}.primary-btn,.secondary-btn{min-height:42px!important;border-radius:13px!important;font-size:13px!important}.primary-btn{padding:0 19px!important;box-shadow:0 9px 24px rgba(200,155,60,.12)!important}.secondary-btn{padding:0 16px!important}
input,select,textarea,.role-switcher select,.stats-toolbar select,.lead-filters select,.modal input,.modal select,.modal textarea{min-height:44px!important;border-radius:var(--control-radius)!important;font:550 14px/1.35 Geist,Inter,sans-serif!important}

/* One consistent glass surface language */
:is(.panel,.metric,.deal-card,.client-card,.task-item,.lead-metric,.pixel-card,.role-overview>div,.finance-card,.meta-account-card,.infrastructure-stat-card,.infrastructure-table-panel,.infrastructure-kanban-col,.infrastructure-board-card,.infrastructure-summary article,.infrastructure-panel,.infra-kanban-column,.infra-kanban-card,.infra-detail-grid>div,.infra-map-node,.credential-card,.infra-meta-grid>div,.meta-sync-result,.facebook-connect){background:var(--glass)!important;border:1px solid var(--glass-line)!important;border-radius:var(--card-radius)!important;box-shadow:var(--glass-shadow)!important;backdrop-filter:var(--glass-blur)!important}
:is(.panel,.metric,.deal-card,.client-card,.pixel-card,.finance-card,.infrastructure-stat-card,.infrastructure-board-card,.infra-kanban-card,.infra-map-node){transition:transform .18s ease,border-color .18s ease,background .18s ease!important}
:is(.panel,.metric,.deal-card,.client-card,.pixel-card,.finance-card,.infrastructure-stat-card,.infrastructure-board-card,.infra-kanban-card,.infra-map-node):hover{transform:translateY(-2px)!important;border-color:rgba(141,235,219,.19)!important;background:linear-gradient(145deg,rgba(13,62,58,.84),rgba(5,36,34,.76))!important}
.dashboard-grid{gap:14px!important}.panel{padding:18px!important}.panel-head{padding-bottom:14px!important;margin-bottom:14px!important}.metric,.lead-metric,.infrastructure-stat-card{padding:17px 18px!important;min-height:112px!important}.metric h3{font-size:34px!important}.metric p,.lead-metric span{font-size:12px!important}.metric-icon{width:38px!important;height:38px!important;border-radius:12px!important}
.client-card,.deal-card,.task-item,.pixel-card,.finance-card,.meta-account-card,.infrastructure-board-card,.infra-kanban-card{padding:16px!important}.client-stats{gap:9px!important}.client-stats>div{padding:12px!important;border-radius:14px!important}

/* Compact tables and filters */
.table-wrap,.infrastructure-table-panel{border-radius:20px!important;overflow:hidden!important}.table-wrap{box-shadow:0 14px 40px rgba(0,12,12,.15)!important}th{height:43px!important;padding:0 14px!important;font-size:10px!important;letter-spacing:.12em!important}td{height:55px!important;padding:10px 14px!important;font-size:12.5px!important}tbody tr:last-child td{border-bottom:0!important}
.infrastructure-controls,.infrastructure-toolbar,.lead-filters,.stats-toolbar{padding:12px!important;gap:10px!important;border:1px solid var(--glass-line)!important;border-radius:18px!important;background:rgba(7,43,40,.58)!important;backdrop-filter:var(--glass-blur)!important}.infrastructure-controls label,.lead-filters label{font-size:11px!important}.infrastructure-tabs,.project-tabs,.card-tabs{gap:7px!important;padding:4px!important;border-radius:15px!important;background:rgba(0,19,18,.35)!important}.infrastructure-tab,.project-tabs button,.card-tabs button,.infrastructure-view-toggle button{min-height:38px!important;padding:0 14px!important;border-radius:11px!important;font-size:12px!important}.infrastructure-tab.active,.project-tabs button.active,.card-tabs button.active,.infrastructure-view-toggle button.active{box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 7px 18px rgba(0,0,0,.12)!important}

/* Kanban, relations and infrastructure details */
.kanban-board,.client-kanban,.infrastructure-kanban,.infra-kanban{gap:12px!important}.kanban-col,.client-kanban-col,.infra-kanban-column,.infrastructure-kanban-col{padding:12px!important;border-radius:20px!important;background:rgba(2,27,26,.48)!important}.kanban-head{padding:2px 4px 10px!important;font-size:12px!important}.infra-kanban-card,.infrastructure-board-card{border-radius:17px!important}.infra-tag,.infrastructure-tag{padding:5px 9px!important;border-radius:999px!important;font-size:10px!important;font-weight:700!important}.infra-detail-grid,.infra-meta-grid{gap:10px!important}.infra-detail-grid>div,.infra-meta-grid>div{padding:14px!important;border-radius:16px!important}.infra-map-node{padding:14px!important;border-radius:18px!important}.credential-card{padding:15px!important;border-radius:18px!important}

/* Modal sheets */
.modal-backdrop{background:rgba(0,16,15,.64)!important;backdrop-filter:blur(16px) saturate(115%)!important}.modal{max-height:calc(100vh - 34px)!important;padding:24px!important;border-radius:25px!important;background:var(--glass-strong)!important;border-color:rgba(238,255,252,.12)!important;box-shadow:0 28px 90px rgba(0,8,8,.5),inset 0 1px 0 rgba(255,255,255,.06)!important;backdrop-filter:blur(28px) saturate(135%)!important}.modal h2{font-size:28px!important;font-weight:650!important}.modal-close{width:42px!important;height:42px!important}.modal label{font-size:12px!important}.modal textarea{min-height:92px!important}.modal-actions{gap:9px!important;margin-top:18px!important}
.toast{border-radius:14px!important;box-shadow:0 16px 44px rgba(0,12,12,.3)!important}

/* Light glass remains crisp, never milky */
html[data-theme="light"] body{background:radial-gradient(880px 520px at 72% -10%,rgba(48,139,123,.16),transparent 68%),radial-gradient(620px 460px at 104% 75%,rgba(184,130,37,.1),transparent 70%),#eaf2ed!important}
html[data-theme="light"] .sidebar{background:linear-gradient(155deg,rgba(250,253,250,.93),rgba(229,240,234,.88))!important;box-shadow:0 18px 56px rgba(36,77,68,.14),inset 0 1px 0 #fff!important}
html[data-theme="light"] .topbar{background:rgba(247,251,248,.69)!important;box-shadow:0 10px 34px rgba(36,77,68,.1),inset 0 1px 0 #fff!important}
html[data-theme="light"] :is(.panel,.metric,.deal-card,.client-card,.task-item,.lead-metric,.pixel-card,.role-overview>div,.finance-card,.meta-account-card,.infrastructure-stat-card,.infrastructure-table-panel,.infrastructure-kanban-col,.infrastructure-board-card,.infrastructure-summary article,.infrastructure-panel,.infra-kanban-column,.infra-kanban-card,.infra-detail-grid>div,.infra-map-node,.credential-card,.infra-meta-grid>div,.meta-sync-result,.facebook-connect){background:linear-gradient(145deg,rgba(255,255,255,.86),rgba(242,248,244,.74))!important;border-color:rgba(30,90,80,.11)!important;box-shadow:0 16px 44px rgba(38,82,73,.095),inset 0 1px 0 #fff!important}
html[data-theme="light"] :is(.panel,.metric,.deal-card,.client-card,.pixel-card,.finance-card,.infrastructure-stat-card,.infrastructure-board-card,.infra-kanban-card,.infra-map-node):hover{background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(239,248,243,.86))!important;border-color:rgba(32,126,113,.2)!important}
html[data-theme="light"] .search,html[data-theme="light"] .search.inner,html[data-theme="light"] .icon-btn,html[data-theme="light"] .theme-toggle{background:rgba(255,255,255,.64)!important;border-color:rgba(30,90,80,.11)!important}
html[data-theme="light"] .infrastructure-controls,html[data-theme="light"] .infrastructure-toolbar,html[data-theme="light"] .lead-filters,html[data-theme="light"] .stats-toolbar{background:rgba(250,253,250,.64)!important;border-color:rgba(30,90,80,.11)!important}
html[data-theme="light"] .modal{background:linear-gradient(145deg,rgba(252,255,253,.96),rgba(235,245,239,.94))!important}

@media(max-width:1100px){.app-shell{grid-template-columns:270px minmax(0,1fr)!important}.sidebar{width:246px!important}.view{padding:30px 24px 56px!important}.page-heading h1,.page-heading.compact h1{font-size:44px!important}}
@media(max-width:760px){.app-shell{display:block!important}.main{padding:0!important}.sidebar{inset:0 auto 0 0!important;width:min(86vw,300px)!important;border-radius:0 22px 22px 0!important}.topbar{top:0!important;margin:8px!important;height:64px!important;border-radius:17px!important}.view{padding:24px 15px 48px!important}.page-heading h1,.page-heading.compact h1{font-size:38px!important}.panel{padding:15px!important}.modal{padding:19px!important;border-radius:21px!important}.dashboard-grid{gap:11px!important}}

/* ================================================================
   UI integrity + complete light theme · 2026-08-23
   ================================================================ */
[hidden]{display:none!important}
.login-screen.hidden{display:none!important}
*,*::before,*::after{box-sizing:border-box}
button,input,select,textarea{max-width:100%}
input[type="checkbox"],input[type="radio"],input[type="hidden"]{min-height:0!important}
input[type="checkbox"],input[type="radio"]{width:17px!important;height:17px!important;padding:0!important;border-radius:5px!important}

/* Sidebar: the menu scrolls, the user card never overlaps it. */
.sidebar{padding:0!important;display:flex!important;flex-direction:column!important;min-height:0!important}
.brand{flex:0 0 auto!important}
.nav{display:block!important;flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;padding:8px 10px 16px!important;scrollbar-width:thin;scrollbar-color:rgba(210,164,74,.34) transparent}
.nav::-webkit-scrollbar{width:5px}.nav::-webkit-scrollbar-thumb{background:rgba(210,164,74,.34);border-radius:99px}
.nav-group,.nav-item,.nav-submenu,.nav-sub{min-width:0!important;max-width:100%!important}
.nav-item{width:100%!important;overflow:hidden!important;gap:11px!important}
.nav-item .nav-icon,.nav-item>svg:first-child{flex:0 0 22px!important}
.nav-item span:not(.nav-count){min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nav-item .nav-count,.nav-item .nav-chevron{flex:0 0 auto!important;margin-left:auto}
.nav-submenu,.infrastructure-nav{margin:3px 2px 8px 38px!important;padding:0 3px 0 8px!important;max-height:none!important;overflow:visible!important;border-left:1px solid rgba(128,224,209,.11)!important}
.nav-sub{width:100%!important;min-height:36px!important;padding:8px 10px!important;border-radius:10px!important;font-size:12.5px!important;line-height:1.25!important;white-space:normal!important;overflow-wrap:anywhere!important}
.sidebar-bottom{position:relative!important;inset:auto!important;flex:0 0 auto!important;margin:0!important;padding:9px 10px 10px!important;background:linear-gradient(180deg,transparent,rgba(2,23,22,.96) 18%)!important;z-index:3}
.support-card{margin:0 0 7px!important;padding:10px 11px!important;border-radius:14px!important}
.profile,.sidebar-profile{width:100%!important;min-width:0!important;margin:0!important;padding:10px 11px!important;border-radius:15px!important;gap:10px!important}
.profile>div,.sidebar-profile>div{min-width:0!important}.profile strong,.profile small,.sidebar-profile strong,.sidebar-profile small{display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.profile img,.sidebar-profile img{flex:0 0 38px!important;width:38px!important;height:38px!important}

/* Header controls keep their intended shape. */
.topbar,.top-actions{min-width:0!important}.top-actions{display:flex!important;align-items:center!important;gap:9px!important;flex-wrap:nowrap!important}
.theme-toggle{width:auto!important;min-width:92px!important;height:44px!important;padding:4px 9px!important;flex:0 0 auto!important}
.icon-btn{width:44px!important;min-width:44px!important;height:44px!important;flex:0 0 44px!important;padding:0!important}
.profile-chip{height:44px!important;max-width:156px!important;min-width:0!important;padding:4px 10px 4px 5px!important;overflow:hidden!important}
.profile-chip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.admin-create{min-height:44px!important;white-space:nowrap!important;flex:0 0 auto!important}

/* Page headings and actions no longer collide. */
.infrastructure-heading{display:grid!important;grid-template-columns:minmax(300px,1fr) minmax(0,680px)!important;align-items:end!important;gap:22px 30px!important}
.infrastructure-heading>div:first-child{min-width:0!important}
.infrastructure-heading h1{font-size:clamp(40px,4.2vw,60px)!important;line-height:1.02!important;overflow-wrap:anywhere!important}
.heading-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;flex-wrap:wrap!important;gap:9px!important;min-width:0!important}
.heading-actions button{min-height:42px!important;white-space:normal!important;line-height:1.2!important}

/* Infrastructure density and responsive grids. */
.infrastructure-summary{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:10px!important}
.infrastructure-summary article{min-width:0!important;min-height:104px!important;padding:15px!important;border-radius:18px!important}
.infrastructure-summary article strong{font-size:28px!important;line-height:1!important}
.infrastructure-summary article span{font-size:11px!important;line-height:1.25!important}
.infrastructure-tabs{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;width:100%!important;overflow:visible!important}
.infrastructure-tab{min-width:0!important;min-height:58px!important;padding:10px 12px!important;white-space:normal!important;line-height:1.2!important}
.infrastructure-section-head{display:flex!important;align-items:center!important;justify-content:space-between!important;flex-wrap:wrap!important;gap:12px!important;min-width:0!important}
.project-tabs,.card-tabs,.infrastructure-view-toggle{max-width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:thin}
.project-tabs button,.card-tabs button,.infrastructure-view-toggle button{flex:0 0 auto!important;white-space:nowrap!important}
.infrastructure-controls,.infrastructure-toolbar{display:grid!important;grid-template-columns:minmax(210px,1.35fr) repeat(3,minmax(150px,.8fr)) auto!important;align-items:end!important}
.infrastructure-controls>* ,.infrastructure-toolbar>*{min-width:0!important}
.infrastructure-controls select,.infrastructure-toolbar select{width:100%!important;min-width:0!important}
.infrastructure-table-panel,.table-wrap{max-width:100%!important;overflow:auto!important}
.meta-sync-result{min-height:0!important}

/* Full light theme: neutral paper, dark ink, restrained mint + gold. */
html[data-theme="light"]{
  --bg:#edf3ef;--surface:#f8fbf9;--surface-2:#eef5f1;--surface-3:#e5efea;
  --text:#18312d;--muted:#667b75;--line:rgba(31,82,72,.14);--gold:#a87920;
  --glass:linear-gradient(145deg,rgba(255,255,255,.94),rgba(241,247,243,.9));
  --glass-strong:linear-gradient(145deg,#fff,#edf5f0);--glass-line:rgba(31,82,72,.14);
  --glass-shadow:0 14px 38px rgba(32,73,64,.09),inset 0 1px 0 #fff
}
html[data-theme="light"] body{color:var(--text)!important;background:radial-gradient(850px 520px at 72% -10%,rgba(71,151,135,.12),transparent 68%),radial-gradient(620px 460px at 103% 72%,rgba(190,144,58,.09),transparent 70%),var(--bg)!important}
html[data-theme="light"] .main,html[data-theme="light"] .view{color:var(--text)!important}
html[data-theme="light"] :is(h1,h2,h3,h4,h5,h6,strong,b,.panel-head h2,.page-heading h1){color:#142c28!important}
html[data-theme="light"] :is(p,small,.muted,.page-heading p,.panel-head p,.metric p,.lead-metric span){color:var(--muted)!important}
html[data-theme="light"] .sidebar{background:linear-gradient(155deg,rgba(252,254,252,.98),rgba(232,241,236,.96))!important;border-color:var(--line)!important}
html[data-theme="light"] .sidebar-bottom{background:linear-gradient(180deg,transparent,rgba(238,246,241,.98) 18%)!important}
html[data-theme="light"] .brand,html[data-theme="light"] .topbar{border-color:var(--line)!important}
html[data-theme="light"] .topbar{background:rgba(250,253,251,.9)!important}
html[data-theme="light"] .nav-item{color:#526b65!important}
html[data-theme="light"] .nav-item:hover{color:#19342f!important;background:rgba(45,111,98,.06)!important;border-color:rgba(35,94,82,.08)!important}
html[data-theme="light"] .nav-item.active{color:#18312d!important;background:linear-gradient(100deg,rgba(190,143,48,.16),rgba(63,139,124,.08))!important;border-color:rgba(167,120,31,.2)!important}
html[data-theme="light"] .nav-sub{color:#6c817c!important}
html[data-theme="light"] .nav-sub:hover,html[data-theme="light"] .nav-sub.active{color:#17342f!important;background:rgba(46,113,99,.08)!important}
html[data-theme="light"] :is(.profile,.sidebar-profile,.support-card,.profile-chip,.icon-btn,.theme-toggle,.search,.search.inner){color:var(--text)!important;background:rgba(255,255,255,.72)!important;border-color:var(--line)!important;box-shadow:inset 0 1px 0 #fff!important}
html[data-theme="light"] :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea,.role-switcher select,.stats-toolbar select,.lead-filters select){color:#18312d!important;background:#fff!important;border-color:rgba(31,82,72,.17)!important;box-shadow:inset 0 1px 2px rgba(22,66,57,.035)!important}
html[data-theme="light"] :is(input,textarea)::placeholder{color:#879993!important}
html[data-theme="light"] select{color-scheme:light!important}
html[data-theme="light"] :is(.secondary-btn,.period-btn,.filter-chip,.infrastructure-tab,.project-tabs button,.card-tabs button,.infrastructure-view-toggle button){color:#405b55!important;background:rgba(255,255,255,.72)!important;border-color:var(--line)!important}
html[data-theme="light"] :is(.secondary-btn,.period-btn,.filter-chip,.infrastructure-tab,.project-tabs button,.card-tabs button,.infrastructure-view-toggle button):hover{color:#17342f!important;background:#fff!important;border-color:rgba(167,120,31,.28)!important}
html[data-theme="light"] :is(.period-btn.active,.filter-chip.active,.infrastructure-tab.active,.project-tabs button.active,.card-tabs button.active,.infrastructure-view-toggle button.active){color:#19322d!important;background:linear-gradient(135deg,rgba(200,155,60,.2),rgba(99,179,163,.13))!important;border-color:rgba(167,120,31,.32)!important}
html[data-theme="light"] :is(.infrastructure-controls,.infrastructure-toolbar,.lead-filters,.stats-toolbar,.infrastructure-tabs,.project-tabs,.card-tabs){background:rgba(247,251,248,.78)!important;border-color:var(--line)!important}
html[data-theme="light"] :is(.kanban-col,.client-kanban-col,.infra-kanban-column,.infrastructure-kanban-col){background:rgba(229,239,234,.68)!important;border:1px solid var(--line)!important}
html[data-theme="light"] th{color:#61756f!important;background:#eaf2ee!important;border-color:var(--line)!important}
html[data-theme="light"] td{color:#29433d!important;background:rgba(255,255,255,.55)!important;border-color:var(--line)!important}
html[data-theme="light"] tbody tr:hover td{background:#f4f9f6!important}
html[data-theme="light"] :is(.modal,.dropdown-menu,.context-menu){color:var(--text)!important;background:linear-gradient(145deg,#fff,#edf5f0)!important;border-color:var(--line)!important}
html[data-theme="light"] .modal-backdrop{background:rgba(30,55,49,.34)!important}
html[data-theme="light"] :is(.infra-tag,.infrastructure-tag,.badge,.status-badge){border-color:rgba(31,82,72,.14)!important}
html[data-theme="light"] :focus-visible{outline:3px solid rgba(167,120,31,.32)!important;outline-offset:2px!important}

@media(max-width:1500px){
  .infrastructure-heading{grid-template-columns:1fr!important;align-items:start!important}.heading-actions{justify-content:flex-start!important;max-width:100%!important}
  .infrastructure-summary{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .infrastructure-controls,.infrastructure-toolbar{grid-template-columns:minmax(220px,1.4fr) repeat(2,minmax(150px,1fr))!important}
}
@media(max-width:1100px){
  .top-actions .profile-chip{display:none!important}.infrastructure-tabs{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .infrastructure-controls,.infrastructure-toolbar{grid-template-columns:1fr 1fr!important}
}
@media(max-width:760px){
  .sidebar{padding:0!important}.nav{padding-top:8px!important}.support-card{display:none!important}
  .theme-toggle{min-width:44px!important;width:44px!important;padding:4px!important}.theme-toggle .theme-track{display:none!important}
  .admin-create span{display:none!important}.admin-create{width:44px!important;padding:0!important}
  .infrastructure-heading h1{font-size:36px!important}.heading-actions{display:grid!important;grid-template-columns:1fr 1fr!important;width:100%!important}.heading-actions button{width:100%!important}
  .infrastructure-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important}.infrastructure-tabs{grid-template-columns:1fr!important}
  .infrastructure-controls,.infrastructure-toolbar{grid-template-columns:1fr!important}
}

/* ================================================================
   Collapsible navigation + mobile application shell · responsive v4
   ================================================================ */
.sidebar-toggle{margin-left:auto;flex:0 0 36px;width:36px;height:36px;display:grid;place-items:center;border:1px solid var(--glass-line);border-radius:11px;background:rgba(255,255,255,.035);color:#9fb8b2;cursor:pointer;transition:background .18s ease,color .18s ease,transform .24s ease}
.sidebar-toggle:hover{color:#f0c86e;background:rgba(255,255,255,.065)}.sidebar-toggle svg{width:18px;height:18px}
.sidebar-scrim{display:none;position:fixed;inset:0;z-index:18;border:0;background:rgba(0,18,17,.68);backdrop-filter:blur(5px);opacity:0;pointer-events:none;transition:opacity .24s ease}

@media(min-width:761px){
  body.sidebar-collapsed .app-shell{grid-template-columns:104px minmax(0,1fr)!important}
  body.sidebar-collapsed .sidebar{width:80px!important}
  body.sidebar-collapsed .main{grid-column:2!important}
  body.sidebar-collapsed .brand{justify-content:center!important;padding:17px 10px 13px!important}
  body.sidebar-collapsed .brand img{width:42px!important;height:42px!important}
  body.sidebar-collapsed .brand>span{display:none!important}
  body.sidebar-collapsed .brand .sidebar-toggle{display:grid!important;position:absolute!important;left:21px!important;top:68px!important;z-index:6!important;background:#0b302d!important}
  body.sidebar-collapsed .brand .sidebar-toggle svg{transform:rotate(180deg)}
  body.sidebar-collapsed .nav{padding:50px 10px 14px!important;overflow-x:visible!important}
  body.sidebar-collapsed .nav-group{position:relative!important}
  body.sidebar-collapsed .nav-item{justify-content:center!important;min-height:52px!important;padding:0!important;font-size:0!important;gap:0!important;overflow:visible!important}
  body.sidebar-collapsed .nav-item .nav-icon,body.sidebar-collapsed .nav-item>svg:first-child{flex:0 0 24px!important;width:24px!important}
  body.sidebar-collapsed .nav-item .nav-icon svg{width:23px!important;height:23px!important}
  body.sidebar-collapsed .nav-item .nav-count,body.sidebar-collapsed .nav-item>b{position:absolute!important;right:-3px!important;top:-3px!important;min-width:20px!important;height:20px!important;display:grid!important;place-items:center!important;padding:0 5px!important;font-size:9px!important}
  body.sidebar-collapsed .nav-chevron,body.sidebar-collapsed .nav-submenu{display:none!important}
  body.sidebar-collapsed .support-card{display:none!important}
  body.sidebar-collapsed .sidebar-bottom{padding:8px 10px 10px!important}
  body.sidebar-collapsed .profile,body.sidebar-collapsed .sidebar-profile{justify-content:center!important;padding:8px!important}
  body.sidebar-collapsed .profile>div,body.sidebar-collapsed .profile>span:last-child,body.sidebar-collapsed .sidebar-profile>div{display:none!important}
  body.sidebar-collapsed .profile .avatar,body.sidebar-collapsed .sidebar-profile img{width:40px!important;height:40px!important;flex-basis:40px!important}
  body.sidebar-collapsed .nav-item::after{content:attr(aria-label);position:absolute;left:calc(100% + 12px);top:50%;transform:translate(5px,-50%);z-index:90;max-width:220px;padding:8px 11px;border:1px solid var(--glass-line);border-radius:10px;background:#092b29;color:#e7f4f0;font:650 12px/1.2 Geist,Inter,sans-serif;white-space:nowrap;box-shadow:0 12px 30px rgba(0,12,12,.3);opacity:0;pointer-events:none;transition:.16s}
  body.sidebar-collapsed .nav-item:hover::after{opacity:1;transform:translate(0,-50%)}
  body.sidebar-collapsed .sidebar::after{content:"";position:absolute;right:-5px;top:50%;width:10px;height:46px;border-radius:99px;background:rgba(200,155,60,.4);box-shadow:0 0 16px rgba(200,155,60,.18)}
}

@media(max-width:760px){
  body{overflow-x:hidden!important}.app-shell{min-height:100dvh!important}.main{width:100%!important;min-width:0!important}
  .sidebar{display:flex!important;position:fixed!important;inset:0 auto 0 0!important;width:min(88vw,340px)!important;height:100dvh!important;border-width:0 1px 0 0!important;border-radius:0 24px 24px 0!important;transform:translate3d(-105%,0,0)!important;transition:transform .26s cubic-bezier(.2,.8,.2,1)!important;z-index:30!important;box-shadow:24px 0 70px rgba(0,12,12,.38)!important}
  .sidebar.open{transform:translate3d(0,0,0)!important}.sidebar .brand{padding:15px 14px 12px!important}.sidebar-toggle{display:grid!important;transform:rotate(180deg)}
  .sidebar-scrim{display:block!important}.sidebar-scrim.visible{opacity:1;pointer-events:auto}.mobile-nav-open{overflow:hidden!important;touch-action:none}
  .nav{overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important}.nav-item{min-height:50px!important;font-size:15px!important}.nav-sub{min-height:42px!important;font-size:13.5px!important}
  .topbar{position:sticky!important;top:8px!important;margin:8px!important;width:calc(100% - 16px)!important;height:62px!important;padding:0 10px!important;gap:8px!important;border-radius:17px!important}
  .menu-btn{display:grid!important;place-items:center;flex:0 0 42px;width:42px;height:42px;margin:0!important;padding:0!important;border:1px solid var(--glass-line)!important;border-radius:13px!important;background:rgba(255,255,255,.04)!important;color:#d5e8e3!important;font-size:0!important}.menu-btn svg{width:21px;height:21px}
  .topbar>.search{flex:1 1 auto!important;width:auto!important;min-width:0!important;height:42px!important;padding:0 10px!important}.topbar>.search span{font-size:17px!important}.topbar>.search input{min-width:0!important;font-size:13px!important}
  .top-actions{flex:0 0 auto!important;gap:6px!important}.top-actions .profile-chip,.top-actions .icon-btn,.top-actions .admin-create{display:none!important}.theme-toggle{display:grid!important;place-items:center!important;width:42px!important;min-width:42px!important;height:42px!important;padding:0!important}.theme-toggle .theme-track,.theme-toggle .theme-sun{display:none!important}.theme-toggle .theme-moon{display:grid!important}html[data-theme="light"] .theme-toggle .theme-moon{display:none!important}html[data-theme="light"] .theme-toggle .theme-sun{display:grid!important}
  .view{padding:22px 14px calc(42px + env(safe-area-inset-bottom))!important}.page-heading,.page-heading.compact{display:grid!important;grid-template-columns:1fr!important;align-items:start!important;gap:14px!important;margin-bottom:20px!important}.page-heading h1,.page-heading.compact h1{font-size:clamp(30px,10vw,40px)!important;line-height:1.04!important}.page-heading>button,.page-heading>.primary-btn{width:100%!important}
  .metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}.metric,.lead-metric,.infrastructure-stat-card{min-width:0!important;min-height:104px!important;padding:14px!important}.metric h3{font-size:24px!important;overflow-wrap:anywhere}
  .dashboard-grid,.task-layout,.role-overview,.project-insights-grid,.infra-detail-grid,.infra-meta-grid{grid-template-columns:1fr!important}.chart-panel,.sources-panel,.panel{min-width:0!important}.chart{height:175px!important;overflow:hidden!important}.legend{flex-wrap:wrap!important;gap:7px!important}
  .toolbar,.panel-head,.infrastructure-section-head{align-items:stretch!important}.toolbar{display:grid!important;grid-template-columns:1fr!important}.filters,.period,.project-tabs,.card-tabs,.infrastructure-view-toggle{display:flex!important;max-width:100%!important;overflow-x:auto!important;overscroll-behavior-inline:contain!important;padding-bottom:4px!important}.filters button,.period button{flex:0 0 auto!important;white-space:nowrap!important}
  .table-wrap,.infrastructure-table-panel{width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch!important}.table-wrap table,.infrastructure-table-panel table{min-width:720px!important}
  .kanban,.client-kanban,.kanban-board,.infrastructure-kanban,.infra-kanban{display:flex!important;overflow-x:auto!important;scroll-snap-type:x mandatory!important;gap:11px!important;padding-bottom:14px!important}.kanban-col,.client-kanban-col,.infra-kanban-column,.infrastructure-kanban-col{flex:0 0 min(84vw,330px)!important;min-width:0!important;scroll-snap-align:start!important}
  .form-grid{grid-template-columns:1fr!important}.modal-backdrop{padding:0!important;align-items:end!important}.modal,.modal.small{width:100%!important;max-width:none!important;max-height:92dvh!important;margin:0!important;padding:22px 17px calc(20px + env(safe-area-inset-bottom))!important;border-radius:24px 24px 0 0!important}.modal h2{padding-right:42px!important;font-size:24px!important}.modal-close{position:sticky!important;float:right!important;top:0!important;right:0!important;z-index:2!important}
  .toast{left:12px!important;right:12px!important;bottom:calc(12px + env(safe-area-inset-bottom))!important;text-align:center!important}
  .login-screen:not(.hidden){display:block!important;padding:0!important;overflow:auto!important}.login-screen.hidden{display:none!important}.login-visual{display:none!important}.login-card{width:100%!important;min-height:100dvh!important;margin:0!important;padding:28px 20px calc(28px + env(safe-area-inset-bottom))!important;border:0!important;border-radius:0!important;align-content:center!important}.login-card .primary-btn{min-height:48px!important;touch-action:manipulation!important}.login-error:not(:empty){padding:10px 12px!important;border:1px solid rgba(220,91,91,.3)!important;border-radius:11px!important;background:rgba(220,91,91,.1)!important}
}

@media(max-width:430px){
  .topbar>.search input::placeholder{color:transparent!important}.metrics,.infrastructure-summary{grid-template-columns:1fr!important}.heading-actions{grid-template-columns:1fr!important}.view{padding-inline:11px!important}.modal{padding-inline:14px!important}.infrastructure-summary article{min-height:92px!important}
}

html[data-theme="light"] .sidebar-toggle,html[data-theme="light"] .menu-btn{color:#35554e!important;background:rgba(255,255,255,.74)!important;border-color:var(--line)!important}
html[data-theme="light"] .sidebar-scrim{background:rgba(29,52,47,.42)!important}
@media(min-width:761px){html[data-theme="light"] body.sidebar-collapsed .nav-item::after{background:#fff;color:#18312d;border-color:var(--line);box-shadow:0 12px 28px rgba(32,73,64,.16)}}
/* Project decomposition v7 */
.decomp-progress{padding:17px;border:1px solid var(--line);border-radius:18px;background:rgba(4,37,34,.5)}.decomp-progress-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.decomp-progress-head small{color:#d5a64a;letter-spacing:1.5px}.decomp-progress-head h4{margin:4px 0 0;font-size:18px}.decomp-progress-head>span{color:var(--muted)}.decomp-progress-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.decomp-progress-grid article header{display:flex;justify-content:space-between;gap:8px;margin-bottom:8px}.decomp-progress-grid article small{color:var(--muted);font-size:11px}.decomp-meter,.allocation-bar{display:flex;height:7px;overflow:hidden;margin:7px 0;border-radius:999px;background:rgba(255,255,255,.07)}.decomp-meter i{display:block;background:linear-gradient(90deg,#c99a3d,#72dcca)}.allocation-bar i:nth-child(1){background:#d7a542}.allocation-bar i:nth-child(2){background:#55b7a6}.allocation-bar i:nth-child(3){background:#7564be}.decomp-note{margin:0;color:var(--muted);font-size:11px;line-height:1.6}
.pdf-render-target{position:absolute!important;left:0!important;z-index:-1!important;visibility:visible!important;opacity:1!important;pointer-events:none!important}
html[data-theme="light"] .decomp-inputs input,html[data-theme="light"] .decomp-allocation input{background:rgba(255,255,255,.82);color:#19322d}html[data-theme="light"] :is(.decomp-allocation,.decomp-kpis article,.decomp-scenario,.decomp-progress){background:rgba(255,255,255,.7)}
@media(max-width:900px){.decomp-inputs{grid-template-columns:repeat(2,1fr)}.decomp-kpis{grid-template-columns:repeat(2,1fr)}.decomp-scenarios,.decomp-progress-grid{grid-template-columns:1fr}.decomp-allocation{grid-template-columns:1fr 1fr}.decomp-allocation>strong{align-self:stretch;display:grid;place-items:center}}
@media(max-width:560px){.decomp-inputs,.decomp-kpis,.decomp-allocation{grid-template-columns:1fr}.decomp-scenario{grid-template-columns:1fr 1fr}.decomp-health{justify-self:start}.decomp-progress-grid article header{font-size:12px}}
.decomposition{display:grid;gap:16px}.decomp-health{align-self:center;padding:9px 13px;border:1px solid var(--line);border-radius:999px;color:var(--muted);font-size:12px;font-weight:750}.decomp-health.success{color:#77e1b5;background:rgba(21,142,94,.13);border-color:rgba(50,190,130,.3)}.decomp-health.warning{color:#e7bd63;background:rgba(200,155,60,.11)}.decomp-health.danger{color:#ff9898;background:rgba(183,55,64,.13);border-color:rgba(224,84,94,.3)}
.decomp-inputs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.decomp-inputs label{display:grid;gap:7px;color:var(--muted);font-size:12px}.decomp-inputs input,.decomp-allocation input{min-height:42px;border:1px solid var(--line);border-radius:12px;background:rgba(2,23,22,.58);color:var(--text);font:inherit;padding:0 12px}
.decomp-allocation{display:grid;grid-template-columns:repeat(3,1fr) auto;align-items:end;gap:10px;padding:14px;border:1px solid var(--line);border-radius:16px;background:rgba(4,36,33,.5)}.decomp-allocation>div{display:flex;justify-content:space-between;align-items:center;gap:10px}.decomp-allocation span{color:var(--muted);font-size:12px}.decomp-allocation label{display:flex;align-items:center;gap:4px}.decomp-allocation input{width:70px}.decomp-allocation>strong{padding:10px 12px;border-radius:10px;color:#70d9c7;background:rgba(49,157,139,.12)}.decomp-allocation>strong.invalid{color:#ff9999;background:rgba(190,55,64,.15)}
.decomp-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.decomp-kpis article{display:grid;gap:6px;padding:15px;border:1px solid var(--line);border-radius:16px;background:rgba(4,39,36,.52)}.decomp-kpis small{color:var(--muted)}.decomp-kpis strong{font-size:21px}.decomp-kpis span{color:#8fa59f;font-size:11px}
.decomp-scenarios{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.decomp-scenario{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;padding:17px;border:1px solid var(--line);border-radius:18px;background:rgba(3,28,27,.58)}.decomp-scenario.base{border-color:rgba(211,163,67,.42);box-shadow:inset 0 1px 0 rgba(245,197,99,.08)}.decomp-scenario header,.decomp-scenario footer{grid-column:1/-1}.decomp-scenario header{display:flex;justify-content:space-between;gap:8px}.decomp-scenario header span{font-weight:750}.decomp-scenario header b{color:#75dfbd}.decomp-scenario.low header b{color:#ff9999}.decomp-scenario div{display:grid;gap:3px}.decomp-scenario small,.decomp-scenario footer{color:var(--muted);font-size:11px}.decomp-scenario strong{font-size:17px}
