/* Qbiz Ai CRM UI refresh: sidebar, top bar and dashboard. Loaded after every other stylesheet. */
:root{--ink:#0b1b3a;--muted:#6b7a93;--line:#e3ebf7;--canvas:#f4f6f8;--radius:18px;--shadow:0 6px 24px rgba(57,135,229,.08);--bright:#3987e5}
html,body{background:#f4f6f8}
.ic{width:20px;height:20px;flex:none}
.workspace{min-height:100vh;background:linear-gradient(135deg,#eef3f9 0%,#ffffff 45%,#f5f7fa 100%);transition:margin .2s}

/* Sidebar */
.sidebar{width:260px;background:linear-gradient(180deg,#3987e5 0%,#2c6fc4 55%,#101010 100%);box-shadow:6px 0 30px rgba(0,0,0,.18);transition:transform .2s}
.workspace{margin-left:260px}
.app-shell.collapsed .sidebar{transform:translateX(-100%)}.app-shell.collapsed .workspace{margin-left:0}
.side-brand{height:100px;padding-right:22px!important;justify-content:center;gap:0;border:0;border-radius:0 0 46px 0;background:#fff;padding:0 14px}
.side-brand .brand-logo{width:auto;max-width:100%;height:74px;padding:0;border-radius:0;background:none;box-shadow:none;object-fit:contain}
.side-nav{padding:16px 14px 10px;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.25) transparent}
.nav-heading{margin:6px 10px 12px;color:rgba(255,255,255,.92);font-size:15px;font-weight:600;letter-spacing:0}
.nav-item{height:46px;padding:0 14px;border-radius:12px;color:rgba(255,255,255,.86);font-size:14.5px;font-weight:600}
.nav-item.sub{height:40px;padding:0 12px;font-size:14px}
.nav-icon{display:grid;width:22px;place-items:center}
.nav-item:hover{background:rgba(255,255,255,.09);color:#fff}
.nav-item.active{background:linear-gradient(180deg,#5a9cf0,#2c6fc4);color:#fff;box-shadow:0 8px 20px rgba(57,135,229,.35)}
.nav-group-head{color:rgba(255,255,255,.92)}.nav-group-head.has-active{color:#fff}
.nav-chevron{opacity:.75}
.nav-sub{border-left:1px solid rgba(255,255,255,.16)}
.nav-badge{background:#ef4444}
.side-footer{border:0;padding:14px}
.plan-card{display:flex;align-items:center;gap:12px;border:1px solid rgba(255,255,255,.1);border-radius:14px;background:rgba(255,255,255,.08);padding:13px}
.plan-mark{display:grid;width:38px;height:38px;flex:none;place-items:center;border-radius:50%;background:rgba(255,255,255,.14);color:#9cc3f2}
.plan-card b{display:block;font-size:14px}.plan-card small{display:block;margin-top:2px;color:rgba(255,255,255,.66);font-size:12px}
.logout-button{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:10px;border:1px solid rgba(255,255,255,.2);color:#fff;font-weight:600}
.logout-button:hover{background:rgba(255,255,255,.08)}
.logout-button .ic{width:17px;height:17px}

/* Top bar */
.topbar{min-height:66px;justify-content:flex-start;gap:16px;border:0;background:rgba(234,242,255,.82);padding:12px 28px;backdrop-filter:blur(12px)}
.topbar .menu-toggle{display:grid}
.topbar .icon-button{display:grid;width:40px;height:40px;place-items:center;border:0;border-radius:12px;background:transparent;color:#34506f}
.topbar .icon-button:hover{background:#fff;box-shadow:0 2px 8px rgba(57,135,229,.1)}
.topbar .search-box{flex:1;width:auto;max-width:600px;gap:11px;border:1px solid #dce1e8;border-radius:999px;background:#fff;padding:10px 16px;color:#7a8aa5;box-shadow:0 2px 10px rgba(57,135,229,.05)}
.topbar .search-box:focus-within{border-color:#b36b84;box-shadow:0 0 0 3px rgba(57,135,229,.12)}
.topbar .search-box input{font-size:14px;color:var(--ink);background:transparent}
.topbar kbd{margin-left:auto;border:1px solid #e1e8f3;border-radius:7px;background:#f1f5fb;padding:2px 8px;color:#7a8aa5;font:inherit;font-size:11px;white-space:nowrap}
.top-right{display:flex;align-items:center;gap:6px;margin-left:auto}
.top-right .top-actions{margin-right:8px}
.bell{position:relative}.bell-dot{position:absolute;top:8px;right:9px;width:9px;height:9px;border:2px solid #f4f6f8;border-radius:50%;background:#ef4444}
.user-menu{position:relative;margin-left:8px}
.user-chip{display:flex;align-items:center;gap:10px;border:0;border-radius:14px;background:transparent;padding:4px 6px;color:var(--ink);text-align:left}
.user-chip .avatar{width:42px;height:42px;background:linear-gradient(135deg,#3987e5,#2c6fc4);color:#fff;font-size:13px}
.user-meta b{display:block;font-size:14px}.user-meta small{display:block;margin-top:2px;color:var(--muted);font-size:12px}
.user-chip .ic{width:16px;height:16px;color:#6b7a93}
.user-pop{position:absolute;top:calc(100% + 8px);right:0;z-index:60;min-width:190px;border:1px solid var(--line);border-radius:14px;background:#fff;padding:6px;box-shadow:0 18px 40px rgba(10,30,80,.18)}
.user-pop[hidden]{display:none}
.user-pop button{display:flex;width:100%;align-items:center;gap:10px;border:0;border-radius:9px;background:none;padding:10px 12px;color:var(--ink);font-weight:600;text-align:left}
.user-pop button:hover{background:#edf3fb}.user-pop .ic{width:17px;height:17px;color:#4a5a78}

#assistant-open{width:42px;height:42px;flex-basis:42px;border-radius:12px;background:linear-gradient(180deg,#5a9cf0,#2c6fc4);border-color:transparent;box-shadow:0 6px 16px rgba(57,135,229,.3)}
#assistant-open .ic{width:20px;height:20px}
#assistant-open:hover{background:#2c6fc4;border-color:transparent}
#assistant-open::after{top:6px;right:6px;width:7px;height:7px}

/* Buttons that sit in .top-actions (also the ones the lead tools inject) */
.top-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:10px}
.top-actions .button{height:46px;gap:9px;border-radius:12px;padding:0 18px;font-size:14px;font-weight:700;white-space:nowrap}
.top-actions .button.secondary{border:1px solid #dce1e8;background:#fff;color:var(--ink);box-shadow:0 2px 8px rgba(57,135,229,.06)}
.top-actions .button.secondary:hover{border-color:#c9d3e0;box-shadow:0 4px 14px rgba(57,135,229,.12)}
.top-actions .button.secondary span{display:grid;place-items:center;color:#3987e5;font-size:18px}
.top-actions .button.primary{background:linear-gradient(180deg,#5a9cf0,#2c6fc4);box-shadow:0 8px 20px rgba(57,135,229,.3)}
.top-actions .button.primary .ic{width:18px;height:18px}
.li-mark{width:22px;height:22px;border-radius:5px;background:#0a66c2;color:#fff!important;font-size:13px!important;font-weight:800;line-height:22px}

/* Cards and panels everywhere */
.page{padding:8px 28px 40px}
.panel{border:0;border-radius:18px;box-shadow:var(--shadow)}
.panel-head{border-bottom:0;padding:20px 24px 10px}
.panel-head h3{font-size:17px;color:var(--ink)}
.text-button{color:var(--bright)}

/* Dashboard */
.dx-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin:6px 0 14px}
.dx-head h2{margin:0;color:var(--ink);font-size:30px;font-weight:800;letter-spacing:-.03em}
.dx-head>div:first-child{flex:0 1 580px;min-width:0}.dx-head .top-actions{flex:1 1 auto}
.dx-head p{margin:6px 0 0;color:#5b6b86;font-size:14px}
.dx-range{display:flex;width:max-content;max-width:100%;gap:2px;margin:0 0 16px auto;border:1px solid #dce1e8;border-radius:12px;background:rgba(255,255,255,.7);padding:4px}
.dx-range button{display:flex;align-items:center;gap:8px;border:0;border-radius:9px;background:transparent;padding:9px 18px;color:#5b6b86;font-size:13px;font-weight:600;white-space:nowrap}
.dx-range button.active{background:#fff;color:var(--ink);box-shadow:0 2px 8px rgba(57,135,229,.12)}
.dx-range .ic{width:16px;height:16px;color:var(--bright)}
.dx-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:16px}
.dx-kpi{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:16px;min-height:118px;border-radius:18px;background:#fff;padding:20px;box-shadow:var(--shadow)}
.dx-kpi-icon{display:grid;width:44px;height:44px;place-items:center;border-radius:13px}
.dx-kpi-icon .ic{width:22px;height:22px}
.tone-blue .dx-kpi-icon,.tone-blue>i{background:#e8f1fe;color:#3987e5}
.tone-green .dx-kpi-icon,.tone-green>i{background:#dcf7e6;color:#16a34a}
.tone-purple .dx-kpi-icon,.tone-purple>i{background:#efe7ff;color:#8c3e60}
.tone-orange .dx-kpi-icon,.tone-orange>i{background:#fff0d9;color:#f59e0b}
.tone-red .dx-kpi-icon,.tone-red>i{background:#ffe4e6;color:#ef4444}
.dx-kpi-body{min-width:0}
.dx-kpi-label{display:block;padding-right:34px;color:#4a5a78;font-size:14px}
.dx-kpi strong{display:block;margin:4px 0 8px;color:var(--ink);font-size:30px;font-weight:800;letter-spacing:-.02em;line-height:1.1}
.dx-kpi-foot{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;color:var(--muted);font-size:12.5px}
.dx-kpi.has-spark .dx-kpi-foot{padding-right:94px}
.dx-kpi small{color:var(--muted);font-size:12.5px}
.trend{font-size:13px;font-weight:700}.trend.good{color:#16a34a}.trend.bad{color:#ef4444}.trend.flat{color:#94a3b8}
.dx-kpi .spark{position:absolute;right:18px;bottom:16px;width:88px;height:44px}
.dx-kpi-go{position:absolute;top:16px;right:16px;display:grid;width:30px;height:30px;place-items:center;border:0;border-radius:50%;background:#e8f1fe;color:var(--bright)}
.dx-kpi-go:hover{background:#f2e1e8}.dx-kpi-go .ic{width:16px;height:16px}
.dx-row{display:grid;gap:16px;margin-bottom:16px}
.dx-row-3{grid-template-columns:1.25fr 1fr 1.1fr}.dx-row-2{grid-template-columns:1.5fr 1fr}
.dx-row .panel{min-width:0}
.dx-status{display:grid;grid-template-columns:minmax(120px,170px) 1fr;align-items:center;gap:22px;padding:8px 24px 24px}
.dx-donut{width:100%;height:auto}.dx-donut-n{fill:var(--ink);font-size:30px;font-weight:800}.dx-donut-l{fill:var(--muted);font-size:11px}
.dx-legend>div{display:grid;grid-template-columns:10px 1fr auto 42px;align-items:center;gap:10px;padding:6px 0;font-size:13.5px}
.dx-legend i{width:10px;height:10px;border-radius:50%}.dx-legend b{font-weight:700}.dx-legend small{color:var(--muted);text-align:right}
.dx-aging{display:grid;gap:20px;padding:14px 24px 26px}
.dx-aging>div{display:grid;grid-template-columns:78px 1fr 34px;align-items:center;gap:12px;font-size:13.5px}
.dx-aging .track{height:12px;border-radius:8px;background:#eef2f8}.dx-aging .fill{border-radius:8px}.dx-aging b{text-align:right}
.dx-cols{display:grid;grid-template-columns:30px 1fr;gap:8px;padding:10px 24px 52px}
.dx-yaxis{display:flex;height:170px;flex-direction:column;justify-content:space-between;color:#8896ae;font-size:11px;text-align:right;line-height:1}
.dx-plot{position:relative;height:170px}
.dx-grid{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:space-between}.dx-grid i{display:block;border-top:1px solid #edf1f8}
.dx-bars{position:absolute;inset:0;display:grid;grid-template-columns:repeat(var(--n),minmax(0,1fr))}
.dx-bar{position:relative;height:100%}
.dx-bar span{position:absolute;bottom:0;left:50%;width:min(44px,62%);height:var(--h);min-height:3px;border-radius:9px 9px 0 0;transform:translateX(-50%)}
.dx-bar b{position:absolute;bottom:calc(var(--h) + 6px);left:0;right:0;font-size:12.5px;text-align:center}
.dx-bar small{position:absolute;top:calc(100% + 8px);left:0;right:0;overflow:hidden;color:#4a5a78;font-size:11.5px;text-align:center;text-overflow:ellipsis;white-space:nowrap}
.dx-table{font-size:13px}
.dx-table th{background:transparent;padding:10px 10px;color:#4a5a78;font-size:12.5px;font-weight:700;letter-spacing:0;text-transform:none}
.dx-table td{padding:12px 10px}.dx-table th:first-child,.dx-table td:first-child{padding-left:24px}.dx-table th:last-child,.dx-table td:last-child{padding-right:20px}.dx-table .link-button{font-size:13px}
.dx-co-icon{display:inline-grid;width:22px;margin-right:6px;place-items:center;vertical-align:middle;color:#6b7a93}.dx-co-icon .ic{width:17px;height:17px}
.dx-owner{display:inline-flex;align-items:center;gap:8px}.dx-owner .avatar{width:30px;height:30px;background:#3987e5;color:#fff;font-size:11px}
.stage-pill{display:inline-block;border-radius:8px;background:#e8f1fe;padding:5px 12px;color:#3987e5;font-size:12px;font-weight:700;white-space:nowrap}
@supports(color:color-mix(in srgb,red 50%,blue)){.stage-pill{background:color-mix(in srgb,var(--c) 15%,#fff);color:color-mix(in srgb,var(--c) 60%,#0b1b3a)}}
.dx-act-stats{display:grid;grid-template-columns:1fr 1fr;gap:14px 18px;padding:8px 24px 18px}
.dx-act-stats>div{display:flex;align-items:center;gap:12px}
.dx-act-stats i{display:grid;width:42px;height:42px;flex:none;place-items:center;border-radius:12px}
.dx-act-stats b{display:block;font-size:20px;line-height:1.1}.dx-act-stats span{display:inline-block;margin-right:6px;color:var(--muted);font-size:12.5px}
.dx-act-stats small{font-size:12px}
.dx-act{padding-top:0;padding-bottom:46px}.dx-act .dx-yaxis,.dx-act .dx-plot{height:130px}
.dx-plot>svg{position:absolute;inset:0;width:100%;height:100%}
.dx-xaxis{position:absolute;top:calc(100% + 8px);left:0;right:0;display:flex;justify-content:space-between;color:#8896ae;font-size:11px}
.dx-attention{display:grid;grid-template-columns:1fr 1fr;column-gap:44px}

@media(min-width:1281px){.dx-head .top-actions{flex-wrap:nowrap}}
@media(max-width:1280px){.dx-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.dx-row-3{grid-template-columns:1fr 1fr}.dx-row-3 .panel:last-child{grid-column:1/-1}}
@media(max-width:1000px){.dx-row-2,.dx-row-3,.dx-attention{grid-template-columns:1fr}}
@media(max-width:760px){
  .workspace{margin-left:0}.sidebar{width:272px}
  .topbar{padding:10px 14px;min-height:60px}.user-meta,.user-chip>.ic{display:none}.topbar .search-box{display:none}.top-right{gap:2px}
  .page{padding:6px 14px 30px}
  .dx-head{flex-direction:column}.dx-head>div:first-child{flex:none}.dx-head h2{font-size:25px}.top-actions{justify-content:flex-start}
  .dx-range{width:100%;margin-left:0;overflow-x:auto}.dx-range button{flex:1;justify-content:center;padding:9px 12px}
  .dx-kpis{grid-template-columns:1fr}.dx-status{grid-template-columns:1fr}.dx-donut{max-width:190px;margin:auto}
  .dx-act-stats{grid-template-columns:1fr 1fr}
}

/* Compact top bar on pages other than the dashboard: lead tools become icon buttons (tooltips carry the name). */
.top-right .top-actions{flex-wrap:nowrap;gap:6px}
.top-right .top-actions .button{height:42px;padding:0 13px}
.top-right .top-actions .button.secondary b{display:none}
.top-right .top-actions .button.primary{padding:0 16px}
.user-meta b{white-space:nowrap}
@media(max-width:1100px){.top-right .top-actions .button.primary span{display:none}.top-right .top-actions .button.primary{padding:0 13px}}

/* Keep the logo block pinned at full size; only the menu scrolls. */
.sidebar{overflow:hidden}
.side-brand{flex:none;position:relative;z-index:1}
.side-nav{flex:1 1 auto;min-height:0}
.side-footer{flex:none}
@media(max-height:700px){.plan-card{display:none}.side-footer{padding:10px 14px}.logout-button{margin-top:0;padding:8px}}

.page-heading .right-actions .button{white-space:nowrap}
.page-heading>div:first-child{flex:1 1 0;min-width:0}.page-heading .right-actions{flex:none;align-items:center}

/* Stage log */
.sl-toolbar{flex-wrap:wrap;align-items:center}
.sl-date{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px;font-weight:600}.sl-date input{width:auto}
.sl-table td{vertical-align:top}.sl-when{white-space:nowrap}
.sl-change{white-space:normal!important}.sl-from{color:var(--muted)}.sl-arrow{margin:0 8px;color:#98a5bd}.sl-new{margin-right:6px;color:var(--muted);font-size:12px}
.sl-pipe{display:inline-block;border-radius:8px;background:#edf3fb;padding:4px 10px;color:#33466e;font-size:12px;font-weight:700;white-space:nowrap}
.sl-sales{background:#e8f1fe;color:#3987e5}.sl-contacts{background:#efe7ff;color:#7d2446}.sl-marketing{background:#fff0d9;color:#9a6208}.sl-projects{background:#dcf7e6;color:#13783a}
.sl-pager{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 2px 0;font-size:13px}
.sl-table .link-button{padding:0;font-weight:700}

/* Content planner */
.cp-kinds{display:flex;flex-wrap:wrap;gap:6px}
.cp-kinds>button,.cp-kind-pick>label{display:inline-flex;align-items:center;gap:7px;border:1px solid #dce1e8;border-radius:10px;background:#fff;padding:9px 14px;color:#4a5a78;font-size:13px;font-weight:700;cursor:pointer}
.cp-kinds>button.active,.cp-kind-pick>label.active{border-color:#3987e5;background:#e8f1fe;color:#3987e5}
.cp-kind-pick input{position:absolute;opacity:0;pointer-events:none}.cp-kinds .ic{width:16px;height:16px}
.cp-label{display:block;margin-bottom:7px;color:#384459;font-size:12px;font-weight:750}
.cp-plats{display:flex;flex-wrap:wrap;gap:6px}
.cp-plats label{margin:0!important}.cp-plats input{position:absolute;opacity:0;pointer-events:none}
.cp-plats span{display:inline-block;border:1px solid #dce1e8;border-radius:999px;background:#fff;padding:6px 13px;color:#4a5a78;font-size:12.5px;font-weight:650;cursor:pointer}
.cp-plats input:checked+span{border-color:#3987e5;background:#e8f1fe;color:#3987e5}.cp-plats input:focus-visible+span{outline:2px solid #3987e5;outline-offset:2px}
.cp-kind{display:inline-flex;align-items:center;gap:6px;border-radius:8px;padding:4px 10px;font-size:12px;font-weight:750}.cp-kind .ic{width:14px;height:14px}
.cp-kind.cp-text{background:#e8f1fe;color:#3987e5}.cp-kind.cp-image{background:#efe7ff;color:#7d2446}.cp-kind.cp-video{background:#ffe9d6;color:#b04a05}
.cp-card{border-left:4px solid #cfd8e8}.cp-card.cp-text{border-left-color:#3987e5}.cp-card.cp-image{border-left-color:#8c3e60}.cp-card.cp-video{border-left-color:#f97316}
.cp-card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.cp-link{display:grid;width:26px;height:26px;place-items:center;border-radius:8px;color:#4a5a78}.cp-link:hover{background:#edf3fb;color:#3987e5}.cp-link .ic{width:15px;height:15px}
.cp-card h4{margin:0 0 8px;font-size:14.5px;line-height:1.35;text-align:left}
.cp-chips{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:12px}
.cp-chip{border-radius:6px;background:#edf3fb;padding:3px 8px;color:#33466e;font-size:11px;font-weight:700}.cp-chip.plat{background:#f4f6fa;color:#5b6b86;font-weight:600}
.cp-card footer{display:flex;align-items:center;justify-content:space-between}
.cp-due{display:inline-flex;align-items:center;gap:5px;color:#5b6b86;font-size:12px;font-weight:650}.cp-due .ic{width:14px;height:14px}.cp-due.late{color:#d92d4b}
.cp-owner{display:grid;width:26px;height:26px;place-items:center;border-radius:50%;background:#3987e5;color:#fff;font-size:10px;font-weight:800}
.cp-kpi.cp-text strong{color:#3987e5}.cp-kpi.cp-image strong{color:#7d2446}.cp-kpi.cp-video strong{color:#b04a05}
.sl-content{background:#fde7f3;color:#a3236b}

/* Content hub generators */
.gn-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:16px;align-items:start;margin-bottom:16px}
.gn-form,.gn-result,.gn-sora{padding:22px}
.gn-prompt{display:grid;gap:7px;color:#384459;font-size:13px;font-weight:700}
.gn-prompt textarea,.gn-out{width:100%;resize:vertical;border:1px solid #dce1e8;border-radius:12px;background:#fff;padding:12px 14px;color:var(--ink);font:inherit;font-size:14px;line-height:1.55;outline:0}
.gn-prompt textarea:focus,.gn-out:focus{border-color:#3987e5;box-shadow:0 0 0 3px rgba(0,66,153,.1)}
.gn-bar{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px;margin:12px 0}
.gn-starter{display:grid;flex:1 1 220px;gap:6px;color:#384459;font-size:12px;font-weight:750}
.gn-starter select,.gn-opts select{width:100%;border:1px solid #dce1e8;border-radius:11px;background:#fff;padding:10px 12px;color:var(--ink)}
.gn-bar-actions{display:flex;gap:8px}.gn-bar-actions .button{padding:10px 13px;font-size:13px;white-space:nowrap}
.gn-opts{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:12px 0}
.gn-opts label{display:grid;gap:6px;margin:0;color:#384459;font-size:12px;font-weight:750}
.gn-check{display:flex;align-items:center;gap:9px;margin:4px 0 16px;color:#384459;font-size:13px;font-weight:650}.gn-check input{width:17px;height:17px;accent-color:#3987e5}
.gn-chips{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0}
.gn-chips button{border:1px solid #dce1e8;border-radius:999px;background:#fff;padding:7px 14px;color:#4a5a78;font-size:12.5px;font-weight:700}
.gn-chips button.active{border-color:#3987e5;background:#e8f1fe;color:#3987e5}
.gn-note{margin:10px 0 0;color:var(--muted);font-size:12px;line-height:1.5}
.gn-result-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.gn-result-head h3{margin:0}
.gn-result-head .button{padding:9px 14px;font-size:13px}
.gn-empty,.gn-wait{display:grid;min-height:260px;place-content:center;gap:6px;color:var(--muted);text-align:center}.gn-empty b{color:var(--ink);font-size:16px}.gn-empty p{max-width:340px;margin:0 auto;line-height:1.55;font-size:13.5px}
.gn-wait{place-items:center;grid-auto-flow:row;font-weight:600}
.gn-spin{width:34px;height:34px;border:3px solid #dce1e8;border-top-color:#3987e5;border-radius:50%;animation:gnspin .9s linear infinite}@keyframes gnspin{to{transform:rotate(360deg)}}
.gn-img{display:block;width:100%;max-height:560px;border-radius:14px;background:#eef2f8;object-fit:contain}
.gn-thumbs{display:flex;gap:8px;margin-top:12px;overflow-x:auto}.gn-thumbs button{flex:0 0 64px;height:64px;overflow:hidden;border:2px solid transparent;border-radius:10px;padding:0;background:#eef2f8}.gn-thumbs button.active{border-color:#3987e5}.gn-thumbs img{width:100%;height:100%;object-fit:cover}
.gn-sources{margin:10px 0 0;color:var(--muted);font-size:12px}
.gn-save{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px;border-top:1px solid #edf0f5;padding-top:14px}.gn-save label{display:flex;align-items:center;gap:8px;margin:0;color:#384459;font-size:13px;font-weight:650}.gn-save select{border:1px solid #dce1e8;border-radius:10px;padding:8px 10px}
.gn-step{display:flex;align-items:center;gap:10px;margin:0 0 14px;font-size:17px}.gn-step span{display:grid;width:26px;height:26px;place-items:center;border-radius:50%;background:#3987e5;color:#fff;font-size:13px}.gn-step small{font-weight:600}
.gn-sub{margin:18px 0 8px;font-size:13.5px;color:#384459}.gn-caption{margin:0;border-radius:12px;background:#f3f6fb;padding:12px 14px;font-size:13.5px;line-height:1.55;white-space:pre-wrap}
.gn-shots td{vertical-align:top;white-space:normal;font-size:13px}
.gn-sora{margin-bottom:16px}.gn-sora-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(220px,1fr);gap:18px;align-items:start}.gn-sora-side{display:grid;gap:12px}.gn-sora-side label{display:grid;gap:6px;color:#384459;font-size:12px;font-weight:750}.gn-sora-side select{border:1px solid #dce1e8;border-radius:11px;padding:10px 12px}
.gn-progress-wrap{margin-top:16px}.gn-progress{height:10px;overflow:hidden;border-radius:8px;background:#e3ecf7}.gn-progress span{display:block;height:100%;border-radius:8px;background:linear-gradient(90deg,#9cc3f2,#3987e5);transition:width .6s}.gn-progress-wrap small{display:block;margin-top:8px;color:var(--muted)}
.gn-player{margin-top:16px}.gn-player video{display:block;width:100%;max-height:520px;border-radius:14px;background:#0b1b3a}.gn-player .right-actions{margin-top:10px;justify-content:flex-end}
.gn-fail{margin-top:16px;background:#fff1f3;color:#a91531}
.gn-jobs{display:grid;gap:8px}.gn-job{display:flex;align-items:center;gap:12px;border:1px solid #e3ebf7;border-radius:12px;padding:10px 14px}.gn-job-main{display:grid;flex:1;min-width:0}.gn-job-main b{overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.gn-job-main small{color:var(--muted)}
@media(max-width:1000px){.gn-grid,.gn-sora-grid{grid-template-columns:1fr}}
.set-sub{margin:22px 0 4px;padding-top:16px;border-top:1px solid #edf0f5;font-size:14px;color:var(--ink)}.set-sub small{font-weight:500}

/* Lead Finder page (Marketing hub) */
.lt-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:stretch}
.lt-tool{display:flex;flex-direction:column;padding:22px}
.lt-tool>header{display:flex;align-items:center;gap:14px;margin-bottom:12px}.lt-tool h3{margin:2px 0 0;font-size:17px}.lt-tool .eyebrow{margin:0}
.lt-icon{display:grid;width:48px;height:48px;flex:none;place-items:center;border-radius:14px;background:#e8f1fe;color:#3987e5}.lt-icon .ic{width:24px;height:24px}
.lt-tool>p{margin:0 0 14px;color:#4a5a78;font-size:13.5px;line-height:1.55}
.lt-steps{display:grid;gap:10px;margin:0 0 14px;padding:0;list-style:none;counter-reset:lt}
.lt-steps li{position:relative;display:grid;gap:2px;padding-left:34px;counter-increment:lt}
.lt-steps li:before{content:counter(lt);position:absolute;top:0;left:0;display:grid;width:24px;height:24px;place-items:center;border-radius:50%;background:#e8f1fe;color:#3987e5;font-size:12px;font-weight:800}
.lt-steps b{font-size:13.5px}.lt-steps small{color:var(--muted);font-size:12.5px;line-height:1.5}
.lt-tool .lt-note{margin:auto 0 14px;border-radius:12px;background:#f3f6fb;padding:11px 13px;color:#4a5a78;font-size:12.5px;line-height:1.5}
@media(max-width:1200px){.lt-grid{grid-template-columns:1fr}}

/* Module access in Add / Edit user */
.module-access{margin:16px 0 0;border:1px solid var(--line);border-radius:14px;padding:12px 16px 14px;background:#f8fafd}.module-access legend{padding:0 6px;font-weight:700;font-size:14px}
.module-actions{display:flex;gap:14px;margin:4px 0 8px}.module-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px 20px}.module-group{display:flex;flex-direction:column;gap:2px}.module-group b{font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin-bottom:2px}
.module-group .toggle-row{display:flex;align-items:center;gap:8px;font-weight:500;font-size:14px;padding:3px 0}
#module-admin-note[hidden],.module-access[hidden]{display:none!important}

.gn-provider{grid-template-columns:minmax(200px,1fr) 2fr;align-items:end}.gn-model{color:var(--muted);font-size:12px;padding-bottom:10px}.gn-made{margin:8px 2px 0;color:var(--muted);font-size:12px}
@media(max-width:700px){.gn-provider{grid-template-columns:1fr}}

/* Live update banner */
.live-banner{position:fixed;left:50%;bottom:22px;z-index:300;display:flex;align-items:center;gap:14px;max-width:calc(100vw - 32px);padding:12px 14px 12px 18px;border-radius:14px;background:#0a2c68;color:#fff;box-shadow:0 14px 34px rgba(5,25,70,.35);transform:translateX(-50%);font-size:14px;font-weight:600}
.live-banner .button{padding:8px 14px;font-size:13px;white-space:nowrap}

/* Poster creator */
.gn-mode{display:inline-flex;gap:4px;padding:4px;border:1px solid var(--line);border-radius:14px;background:#fff}
.gn-mode button{border:0;border-radius:10px;background:transparent;padding:9px 16px;color:#4a566b;font-weight:700;font-size:14px}.gn-mode button.active{background:#3987e5;color:#fff;box-shadow:0 6px 16px rgba(0,66,153,.28)}
.gn-colors{grid-template-columns:repeat(3,minmax(0,1fr))}.gn-colors input[type=color]{width:100%;height:44px;padding:3px;border:1px solid #dce1e8;border-radius:11px;background:#fff;cursor:pointer}
.gn-form .gn-opts input:not([type=color]){width:100%;border:1px solid #dce1e8;border-radius:11px;background:#fff;padding:10px 12px;color:var(--ink)}
.gn-caption{display:grid;gap:8px;margin-top:14px}.gn-caption label{display:grid;gap:6px;font-size:12px;font-weight:750;color:#384459}.gn-caption textarea{width:100%;border:1px solid #dce1e8;border-radius:11px;padding:10px 12px;font:inherit;resize:vertical}.gn-caption .button{justify-self:start}
.gn-check .subtext{display:block;margin-top:2px;font-weight:500}
@media(max-width:700px){.gn-colors{grid-template-columns:1fr 1fr}}
.gn-hint{display:block;margin:-6px 0 4px 26px;line-height:1.4}
.gn-ideas{display:grid;gap:6px;margin:2px 0 6px}
.gn-pics{display:grid;gap:8px;margin:2px 0 12px;padding:12px 14px;border:1.5px dashed #c6d3ea;border-radius:14px;background:#f4f6f8}
.gn-pics-head{display:grid;gap:2px}.gn-pics-head b{font-size:13px;color:#233253}
.gn-pic-row{display:flex;flex-wrap:wrap;gap:10px}
.gn-pic{position:relative;width:86px;height:86px;overflow:hidden;border:1px solid #dce1e8;border-radius:12px;background:#fff}.gn-pic img{width:100%;height:100%;object-fit:cover}
.gn-pic button{position:absolute;right:4px;top:4px;display:grid;width:22px;height:22px;place-items:center;border:0;border-radius:50%;background:rgba(10,27,61,.78);color:#fff;font-size:15px;line-height:1;cursor:pointer}
.gn-pic-add{display:grid;width:86px;height:86px;place-items:center;border:1.5px dashed #9fb6dd;border-radius:12px;background:#fff;color:#3987e5;font-size:12.5px;font-weight:750;text-align:center;cursor:pointer}.gn-pic-add:hover{background:#e8f1fe}.gn-pic-add.busy{opacity:.6;pointer-events:none}
.gn-adopts{margin-top:2px}.gn-adopts input{width:100%;border:1px solid #dce1e8;border-radius:11px;background:#fff;padding:10px 12px;color:var(--ink)}
.gn-limits{margin:10px 0 0;padding:10px 14px;border-radius:12px;font-size:13px;line-height:1.45}
.gn-limits.ok{border:1px solid #bfe6cf;background:#effaf3;color:#17653a;font-weight:650}
.gn-limits.bad{border:1px solid #f3c6cd;background:#fff3f5;color:#9c1f36}.gn-limits.bad ul{margin:8px 0 0;padding-left:18px}.gn-limits.bad li{margin:3px 0}.gn-limits.bad li span{display:inline-block;margin-right:4px;padding:1px 7px;border-radius:999px;background:#fbdde2;font-size:11px;font-weight:800}.gn-limits.bad em{margin-left:4px;font-style:normal;font-weight:800;white-space:nowrap}
.gn-pic i{position:absolute;left:4px;bottom:4px;display:grid;width:22px;height:22px;place-items:center;border-radius:7px;background:rgba(10,27,61,.78);font-size:12px;font-style:normal}
.gn-pic-row .gn-pic-add{line-height:1.3}
.section-head{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:12px;margin:0 0 16px}.section-head h3{margin:0 0 4px}.section-head p{margin:0}
.settings-section .table-wrap{margin-top:4px}.settings-section .security-grid{margin:0 0 18px}.settings-section .audit-list h3{margin:18px 0 8px}
.settings-grid>.settings-panel{min-width:0}
.gn-opts.one{grid-template-columns:1fr}
.gn-hook{font-size:16px;font-weight:750;color:#0a1b3d}
.gn-lines{margin:4px 0 8px;padding-left:22px;color:#2c3a54;font-size:14px;line-height:1.7}.gn-lines small{display:inline-block;min-width:44px;color:#6b7a95;font-weight:700}
.gn-reel-facts{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0}.gn-reel-facts>div{flex:1 1 150px;padding:9px 12px;border:1px solid var(--line);border-radius:12px;background:#f4f6f8}.gn-reel-facts small{display:block;color:#6b7a95;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em}.gn-reel-facts b{font-size:13.5px}
.gn-lbl{display:block;margin:8px 0 2px;font-weight:750}
.gn-scenes{display:grid;gap:10px;margin:6px 0 14px}.gn-scene{padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:#f4f6f8}.gn-scene-head{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;align-items:center}.gn-scene-head>span{display:flex;flex-wrap:wrap;gap:6px}.gn-scene p{margin:8px 0 0;color:#2c3a54;font-size:13px;line-height:1.5}
.gn-flow-actions{align-items:center;gap:14px;margin:6px 0 4px;justify-content:flex-start}
.gn-api{margin-top:16px;padding-top:12px;border-top:1px solid var(--line)}.gn-api>summary{cursor:pointer;font-weight:750;color:#33415c}.gn-api[open]>summary{margin-bottom:10px}
.gn-ext{display:grid;gap:8px;margin:14px 0 0;padding-top:12px;border-top:1px dashed var(--line)}.gn-ext-btns{display:flex;flex-wrap:wrap;gap:8px}.gn-ext-btns .button{flex:1 1 180px}
.kb-uses{margin:0 0 14px;padding:12px 16px;border:1px solid var(--line);border-radius:14px;background:#f4f6f8}.kb-uses>summary{cursor:pointer;font-weight:750;color:#26385c}.kb-uses[open]>summary{margin-bottom:8px}.kb-uses .badge{margin:2px 3px 2px 0;white-space:nowrap}
.gn-send{display:grid;gap:8px;margin:14px 0 0;padding-top:12px;border-top:1px dashed var(--line)}.gn-send-btns{display:flex;flex-wrap:wrap;gap:8px}

/* Poster creator: numbered steps and the collapsed advanced design options. */
.gn-step { margin: 18px 0 6px; font-size: 14px; color: var(--navy, #0a1b3d); letter-spacing: .02em; }
.gn-step:first-child { margin-top: 0; }
.gn-adv { margin: 14px 0; padding: 10px 14px; border: 1px solid rgba(18, 87, 201, .18); border-radius: 14px; background: rgba(18, 87, 201, .03); }
.gn-adv > summary { cursor: pointer; font-weight: 700; color: #3987e5; padding: 4px 0; }
.gn-adv[open] > summary { margin-bottom: 8px; }
.gn-concepts button { font-size: 12px; }
.gn-made.gn-ok { color: #157a3c; }
.gn-made.gn-warn { color: #a3560b; font-weight: 700; }

/* Poster creator: searchable, grouped Requirement / service list. */
.gn-combo-wrap { margin: 0 0 10px; }
.gn-combo { position: relative; margin-top: 6px; }
.gn-combo-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid #dce1e8; border-radius: 11px; background: #fff; padding: 10px 12px; color: var(--ink); font: inherit; font-weight: 650; cursor: pointer; text-align: left; }
.gn-combo-btn:hover, .gn-combo-btn[aria-expanded="true"] { border-color: #3987e5; }
.gn-combo-pop { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid #dce1e8; border-radius: 14px; box-shadow: 0 18px 40px rgba(10, 44, 104, .16); padding: 10px; }
.gn-combo-pop input[type=search] { width: 100%; border: 1px solid #dce1e8; border-radius: 10px; padding: 9px 12px; font: inherit; margin-bottom: 8px; }
.gn-combo-list { max-height: 340px; overflow-y: auto; }
.gn-combo-head { padding: 8px 10px 4px; color: #7a869c; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.gn-combo-list [data-gn-combo-pick] { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 12px; border-radius: 8px; font: inherit; color: var(--ink); cursor: pointer; }
.gn-combo-list [data-gn-combo-pick]:hover, .gn-combo-list [data-gn-combo-pick]:focus { background: #edf3fb; outline: none; }
.gn-combo-list [data-gn-combo-pick].active { background: #e8f1fe; color: #2c6fc4; font-weight: 700; }
.gn-combo-none { padding: 10px 12px; color: #7a869c; font-size: 13px; }
.gn-req-custom { display: grid; gap: 6px; margin-top: 10px; font-size: 12px; font-weight: 750; color: #384459; }
.gn-req-custom input { border: 1px solid #dce1e8; border-radius: 11px; padding: 10px 12px; font: inherit; }
.gn-combo-list [hidden], .gn-combo-pop [hidden] { display: none !important; }
.gn-ext-text { width: 100%; min-height: 220px; border: 1px solid #dce1e8; border-radius: 12px; padding: 12px; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; resize: vertical; margin: 8px 0; }
/* Video editing: uploaded clip frames and the AI's editing advice. */
.gn-clip{display:grid;gap:8px;margin-bottom:14px}.gn-clip .gn-pics{grid-template-columns:repeat(8,minmax(0,1fr));gap:6px;margin:0;padding:8px}.gn-clip .gn-pic{width:auto;height:auto;aspect-ratio:9/16}
.gn-advice{display:grid;gap:6px;padding:12px 14px;margin:0 0 14px;border:1px solid var(--line);border-radius:14px;background:#f4f6f8}.gn-advice p,.gn-advice ul{margin:0}.gn-advice ul{padding-left:18px}.gn-advice .gn-warn{color:#a3560b}
.gn-cuts{font-size:13px}.gn-cuts td:first-child{white-space:nowrap}
@media(max-width:640px){.gn-clip .gn-pics{grid-template-columns:repeat(4,minmax(0,1fr))}}
a.nav-item{text-decoration:none}.nav-ext{margin-left:auto;opacity:.6;font-size:12px}

/* Qbiz blue palette and persistent light/dark themes */
:root{color-scheme:light;--navy:#101010;--navy-2:#181818;--blue:#3987e5;--blue-2:#2c6fc4;--accent-ink:#2563eb;--ink:#171a1f;--muted:#68707a;--line:#dce1e8;--canvas:#f4f6f8;--surface:#fff;--bright:#2f78d6;--radius:14px;--shadow:0 8px 24px rgba(20,30,45,.06)}
html,body{background:var(--canvas)}
.workspace{background:var(--canvas)}
.sidebar{background:#101010;box-shadow:none}
.side-brand,.side-footer{border-color:#292929}
.side-brand{height:100px;justify-content:flex-start;border:0;border-bottom:1px solid #292929;border-radius:0;background:#101010;padding:0 24px}
.side-brand .brand-name{color:#f2f2f2;font-size:30px}
.nav-heading{color:#858585}
.nav-item{color:#c4c4c4}
.nav-item:hover{background:#202020;color:#fff}
.nav-item.active{background:#262626;color:#fff;outline:2px solid #3987e5;outline-offset:-2px;box-shadow:none}
.topbar{background:rgba(255,255,255,.92)}
.topbar .search-box:focus-within{border-color:#3987e5;box-shadow:0 0 0 3px rgba(57,135,229,.14)}
.top-actions .button.primary,#assistant-open{background:#3987e5;box-shadow:0 5px 14px rgba(57,135,229,.22)}
.top-actions .button.primary:hover,#assistant-open:hover{background:#2c6fc4}
.top-actions .button.secondary span,.text-button{color:#2563eb}
.user-chip .avatar{background:#3987e5}

:root[data-theme="dark"]{color-scheme:dark;--ink:#ededed;--muted:#a0a0a0;--line:#303033;--canvas:#0c0c0d;--surface:#171718;--bright:#6ea8ff;--navy:#101010;--navy-2:#181818;--blue:#3987e5;--blue-2:#2c6fc4;--accent-ink:#8ab8ff;--shadow:none}
html[data-theme="dark"],html[data-theme="dark"] body{background:#0c0c0d;color:#ededed}
html[data-theme="dark"] .workspace{background:#0c0c0d}
html[data-theme="dark"] .sidebar{background:#101010;color:#f2f2f2}
html[data-theme="dark"] .side-brand,html[data-theme="dark"] .side-footer{border-color:#292929}
html[data-theme="dark"] .side-brand{height:100px;justify-content:flex-start;border:0;border-bottom:1px solid #292929;border-radius:0;background:#101010;padding:0 24px}
html[data-theme="dark"] .side-brand .brand-name{color:#f2f2f2;font-size:30px}
html[data-theme="dark"] .nav-heading{color:#858585}
html[data-theme="dark"] .nav-item{color:#c4c4c4}
html[data-theme="dark"] .nav-item:hover{background:#202020;color:#fff}
html[data-theme="dark"] .nav-item.active{background:#262626;color:#fff;outline:2px solid #3987e5;outline-offset:-2px;box-shadow:none}
html[data-theme="dark"] .topbar{background:rgba(16,16,16,.94);border-color:#303033}
html[data-theme="dark"] .topbar .icon-button,html[data-theme="dark"] .user-chip{color:#e8e8e8}
html[data-theme="dark"] .topbar .icon-button{background:#1d1d1e;border-color:#353537}
html[data-theme="dark"] .topbar .search-box{background:#1c1c1d;border-color:#38383a;color:#aaa}
html[data-theme="dark"] .topbar .search-box input{color:#f1f1f1}
html[data-theme="dark"] .topbar .search-box input::placeholder,html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#929292}
html[data-theme="dark"] .dx-range{background:#1b1b1c;border-color:#353537}
html[data-theme="dark"] .dx-range button{color:#aaa}
html[data-theme="dark"] .dx-range button.active{background:#3987e5;color:#fff;box-shadow:none}
html[data-theme="dark"] .dx-range button.active .ic{color:#fff}
html[data-theme="dark"] .panel,html[data-theme="dark"] .kpi-card,html[data-theme="dark"] .dx-kpi,html[data-theme="dark"] .tool-card,html[data-theme="dark"] .lead-card,html[data-theme="dark"] .kanban-column,html[data-theme="dark"] .settings-panel,html[data-theme="dark"] .settings-tabs,html[data-theme="dark"] .security-card,html[data-theme="dark"] .assistant-drawer,html[data-theme="dark"] .modal{background:#171718;border-color:#303033;color:#ededed;box-shadow:none}
html[data-theme="dark"] .panel-head,html[data-theme="dark"] .modal-head,html[data-theme="dark"] .modal-foot,html[data-theme="dark"] .assistant-head{border-color:#303033}
html[data-theme="dark"] .panel-head h3,html[data-theme="dark"] .page-heading h2,html[data-theme="dark"] .dx-head h2,html[data-theme="dark"] .settings-panel h3{color:#f0f0f0}
html[data-theme="dark"] .page-heading p,html[data-theme="dark"] .dx-head p,html[data-theme="dark"] .dx-kpi-label,html[data-theme="dark"] .dx-table th{color:#aaa}
html[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),html[data-theme="dark"] select,html[data-theme="dark"] textarea{background:#222223;border-color:#3b3b3d;color:#f2f2f2}
html[data-theme="dark"] .button.secondary,html[data-theme="dark"] .icon-button,html[data-theme="dark"] .select-inline{background:#222223;border-color:#3b3b3d;color:#ededed}
html[data-theme="dark"] .data-table th,html[data-theme="dark"] .owner-report tfoot td{background:#202021;color:#aaa}
html[data-theme="dark"] .data-table td,html[data-theme="dark"] .opportunity,html[data-theme="dark"] .audit-row{border-color:#303033}
html[data-theme="dark"] .data-table tr:hover td{background:#222223}
html[data-theme="dark"] .kanban-column{background:#141415}
html[data-theme="dark"] .dx-aging .track{background:#2d2d2f}
html[data-theme="dark"] .dx-grid i{border-color:#2d2d2f}
html[data-theme="dark"] .dx-yaxis,html[data-theme="dark"] .dx-xaxis{color:#929292}
html[data-theme="dark"] .assistant-message,html[data-theme="dark"] .assistant-message.user{background:#242426;color:#ededed}
html[data-theme="dark"] .assistant-intro{background:#202021}
html[data-theme="dark"] .settings-section label,html[data-theme="dark"] .modal .field-grid label,html[data-theme="dark"] .login-card>label{color:#d0d0d0}
html[data-theme="dark"] .toast{background:#202021;color:#fff}
html[data-theme="dark"] #page [class*="-card"],html[data-theme="dark"] #page [class*="-panel"],html[data-theme="dark"] #page [class*="-result"],html[data-theme="dark"] #page [class*="-column"]{background-color:#171718;border-color:#303033;color:#ededed}
html[data-theme="dark"] #page table th{background:#202021;color:#aaa}
html[data-theme="dark"] #page table td{border-color:#303033}
html[data-theme="dark"] #page label{color:#d0d0d0}

.theme-switch{position:fixed;right:14px;bottom:12px;z-index:120;display:flex;gap:4px;border:1px solid #dce1e8;border-radius:999px;background:rgba(255,255,255,.94);padding:5px;box-shadow:0 4px 18px rgba(0,0,0,.12);backdrop-filter:blur(12px)}
.theme-switch button{min-width:62px;border:0;border-radius:999px;background:transparent;padding:8px 13px;color:#60656d;font-size:12px;font-weight:700}
.theme-switch button.active{background:#3987e5;color:#fff}
html[data-theme="dark"] .theme-switch{border-color:#343436;background:rgba(28,28,29,.96);box-shadow:0 5px 18px rgba(0,0,0,.4)}
html[data-theme="dark"] .theme-switch button{color:#bbb}
html[data-theme="dark"] .theme-switch button.active{background:#3987e5;color:#fff}
@media(max-width:640px){.theme-switch{right:10px;bottom:10px}}

/* Content studio surfaces follow the active Qbiz theme. */
#content-root .ch-create-card,#content-root .ch-card{border-color:var(--line);background:var(--surface);color:var(--ink);box-shadow:0 5px 18px rgba(20,30,45,.045);transition:border-color .18s,transform .18s,box-shadow .18s}
#content-root .ch-create-card{position:relative;overflow:hidden;min-height:132px;padding:20px}
#content-root .ch-create-card:before{position:absolute;inset:0 auto 0 0;width:3px;background:#3987e5;content:""}
#content-root .ch-create-card:hover{border-color:#3987e5;box-shadow:0 10px 26px rgba(57,135,229,.12);transform:translateY(-2px)}
#content-root .ch-thumb.text{background:color-mix(in srgb,var(--blue) 8%,var(--surface));color:var(--ink)}
#content-root .ch-quick{border-color:color-mix(in srgb,var(--blue) 24%,var(--line));background:linear-gradient(135deg,color-mix(in srgb,var(--blue) 7%,var(--surface)),var(--surface));box-shadow:0 8px 24px rgba(20,30,45,.04)}
#content-root .ch-quick h3{color:var(--ink)}
#content-root .ch-quick p,#content-root .ch-thumb.text p{color:var(--muted)}
#content-root .ch-quick textarea,#content-root .ch-quick select{border-color:var(--line);background:var(--surface);color:var(--ink)}
#content-root .ch-chips span{border-color:var(--line);background:var(--surface);color:var(--ink)}
#content-root .ch-chips input:checked+span{border-color:#3987e5;background:#3987e5;color:#fff}
#content-root .ch-toolbar input{background:var(--surface);color:var(--ink)}
.modal.ch-modal{background:var(--surface);color:var(--ink)}
.ch-brief,.ch-ai{border:1px solid var(--line);background:color-mix(in srgb,var(--blue) 6%,var(--surface));color:var(--ink)}
.ch-tabs button,.ch-layouts button,.gn-mode{border-color:var(--line);background:var(--surface);color:var(--ink)}
.ch-tabs button.active,.ch-layouts button.active{border-color:#3987e5;background:color-mix(in srgb,#3987e5 12%,var(--surface));color:var(--accent-ink)}
.gn-combo-pop{border-color:var(--line);background:var(--surface);color:var(--ink)}
.gn-combo-list [data-gn-combo-pick]:hover,.gn-combo-list [data-gn-combo-pick]:focus{background:color-mix(in srgb,var(--blue) 9%,var(--surface))}
.gn-combo-list [data-gn-combo-pick].active{background:color-mix(in srgb,var(--blue) 14%,var(--surface));color:var(--accent-ink)}
.gn-pics,.gn-advice,.gn-scenes,.gn-scene,.gn-reel-facts>div,.gn-job{border-color:var(--line);background:color-mix(in srgb,var(--blue) 4%,var(--surface));color:var(--ink)}
.gn-pics-head b,.gn-hook,.gn-sub,.gn-step{color:var(--ink)}
.gn-pic,.gn-pic-add,.gn-chips button,.gn-mode button{border-color:var(--line);background:var(--surface);color:var(--ink)}
.gn-chips button.active,.gn-mode button.active{border-color:#3987e5;background:#3987e5;color:#fff}
.gn-caption,.gn-adv,.gn-quick,.gn-req-custom{background:color-mix(in srgb,var(--blue) 5%,var(--surface));color:var(--ink)}
.gn-caption label,.gn-opts label,.gn-starter,.gn-prompt,.gn-check,.gn-sora-side label,.gn-save label{color:var(--ink)}
.gn-form,.gn-result,.gn-sora,.ch-preview{color:var(--ink)}
.ch-canvas-wrap{border-radius:16px;background:color-mix(in srgb,var(--ink) 4%,var(--surface));padding:14px}
.ch-canvas-wrap canvas{max-height:62vh}
html[data-theme="dark"] #content-root .ch-create-card,html[data-theme="dark"] #content-root .ch-card{background:#171718;color:#ededed;box-shadow:none}
html[data-theme="dark"] #content-root .ch-create-card:hover{border-color:#3987e5;background:#1c1c1d;box-shadow:0 8px 24px rgba(0,0,0,.24)}
html[data-theme="dark"] #content-root .ch-quick{border-color:#303033;background:linear-gradient(135deg,#191a1c,#151516);box-shadow:none}
html[data-theme="dark"] #content-root .ch-quick p{color:#a0a0a0}
html[data-theme="dark"] #content-root .ch-quick textarea,html[data-theme="dark"] #content-root .ch-quick select{border-color:#3b3b3d;background:#222223;color:#f2f2f2}
html[data-theme="dark"] #content-root .ch-chips span{border-color:#3b3b3d;background:#222223;color:#ededed}
html[data-theme="dark"] #content-root .ch-chips input:checked+span{border-color:#3987e5;background:#3987e5;color:#fff}
html[data-theme="dark"] #content-root .ch-thumb.text{background:#202021;color:#ededed}
html[data-theme="dark"] #content-root .ch-thumb.text p{color:#b5b5b5}
html[data-theme="dark"] .ch-brief,html[data-theme="dark"] .ch-ai,html[data-theme="dark"] .gn-adv,html[data-theme="dark"] .gn-caption,html[data-theme="dark"] .gn-pics,html[data-theme="dark"] .gn-advice,html[data-theme="dark"] .gn-scenes,html[data-theme="dark"] .gn-scene,html[data-theme="dark"] .gn-reel-facts>div,html[data-theme="dark"] .gn-job,html[data-theme="dark"] .gn-quick,html[data-theme="dark"] .gn-req-custom{border-color:#303033;background:#202021;color:#ededed}
html[data-theme="dark"] .ch-tabs button,html[data-theme="dark"] .ch-layouts button,html[data-theme="dark"] .gn-mode,html[data-theme="dark"] .gn-mode button,html[data-theme="dark"] .gn-chips button,html[data-theme="dark"] .gn-pic,html[data-theme="dark"] .gn-pic-add,html[data-theme="dark"] .gn-combo-pop{border-color:#3b3b3d;background:#222223;color:#ededed}
html[data-theme="dark"] .ch-tabs button.active,html[data-theme="dark"] .ch-layouts button.active,html[data-theme="dark"] .gn-chips button.active,html[data-theme="dark"] .gn-mode button.active{border-color:#3987e5;background:#3987e5;color:#fff}
html[data-theme="dark"] .gn-combo-list [data-gn-combo-pick]:hover,html[data-theme="dark"] .gn-combo-list [data-gn-combo-pick]:focus{background:#303033}
html[data-theme="dark"] .gn-combo-list [data-gn-combo-pick].active{background:#263b55;color:#a9ccff}
html[data-theme="dark"] .gn-pics-head b,html[data-theme="dark"] .gn-hook,html[data-theme="dark"] .gn-sub,html[data-theme="dark"] .gn-step,html[data-theme="dark"] .gn-caption label,html[data-theme="dark"] .gn-opts label,html[data-theme="dark"] .gn-starter,html[data-theme="dark"] .gn-prompt,html[data-theme="dark"] .gn-check,html[data-theme="dark"] .gn-sora-side label,html[data-theme="dark"] .gn-save label{color:#ededed}
html[data-theme="dark"] .ch-canvas-wrap{background:#202021}
html[data-theme="dark"] .ch-quick+.notice,html[data-theme="dark"] .notice.ch-ai-off{border:1px solid #2d4260;background:#1a2635;color:#c7dcff}
html[data-theme="dark"] .ch-tts-out{border-color:#30483d;background:#1c2922;color:#d8f3e3}

/* Qbiz Ai wordmark: "qbiz" in white (or ink on light pages), "ai" in the brand blue, a small CRM tag. */
.brand-word{display:inline-flex;align-items:baseline;font-family:Inter,"Segoe UI",Roboto,Arial,sans-serif;font-weight:800;letter-spacing:-.04em;line-height:1;color:#fff;white-space:nowrap}
.brand-word span{color:#3987e5}
.brand-word small{align-self:center;margin-left:.45em;border:1px solid currentColor;border-radius:6px;padding:.18em .4em;font-size:.36em;font-weight:700;letter-spacing:.14em;opacity:.7}
.auth-brand .brand-word{font-size:44px}
.mobile-brand .brand-word{font-size:34px;color:var(--ink)}
html[data-theme="dark"] .mobile-brand .brand-word{color:#f2f2f2}
