:root {
    --bg:#f5f0e8; --panel:#fffaf2; --panel-2:#fdf7ed; --text:#16120c; --muted:#746858;
    --line:#e6d9c8; --primary:#b8892f; --primary-2:#f2c46b; --danger:#b42318; --success:#057a55; --warning:#9a6700;
    --shadow:0 24px 70px rgba(64,42,12,.12); --radius:22px;
}
:root[data-theme="dark"] {
    --bg:#08090d; --panel:#11141b; --panel-2:#151a23; --text:#f7ead0; --muted:#a69a86;
    --line:#2a3140; --primary:#d6a84a; --primary-2:#f1d38a; --danger:#ff7262; --success:#35d09b; --warning:#f5c451;
    --shadow:0 24px 80px rgba(0,0,0,.45);
}
* { box-sizing:border-box; }
body { margin:0; font-family:Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Tahoma, Arial, sans-serif; background:radial-gradient(circle at top right, rgba(214,168,74,.14), transparent 36%), var(--bg); color:var(--text); }
a { color:var(--primary); text-decoration:none; }
.app-shell { min-height:100vh; display:flex; }
.sidebar { width:286px; background:linear-gradient(180deg,#08090d,#111827 54%,#0b0f17); color:white; padding:24px; display:flex; flex-direction:column; gap:22px; border-inline-end:1px solid rgba(214,168,74,.2); position:sticky; top:0; height:100vh; overflow:auto; }
.brand-block { display:flex; align-items:center; gap:13px; }
.brand-mark { width:46px; height:46px; display:grid; place-items:center; border-radius:15px; background:linear-gradient(135deg,#f1d38a,#9b6b18); color:#111; font-weight:950; box-shadow:0 16px 45px rgba(214,168,74,.28); }
.brand { font-weight:900; font-size:21px; letter-spacing:.2px; } .brand-block span { color:#c7b98f; font-size:12px; text-transform:uppercase; letter-spacing:.16em; }
.sidebar nav { display:flex; flex-direction:column; gap:6px; }
.sidebar a { color:#d5deee; padding:10px 12px; border-radius:13px; font-weight:700; }
.sidebar a:hover { background:rgba(214,168,74,.16); color:#fff; }
.sidebar-footer { margin-top:auto; display:grid; gap:10px; }
.logout-form button, .ghost-button { width:100%; background:#1f2937; color:white; }
.main-panel { flex:1; padding:34px; max-width:1500px; }
.page-header { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:24px; }
h1 { margin:0 0 6px; font-size:34px; letter-spacing:-.04em; } h2 { margin-top:0; } h3 { margin-bottom:8px; }
p { color:var(--muted); line-height:1.65; }
.panel, .card, .auth-card, .assistant-response, .stat { background:linear-gradient(180deg,var(--panel),var(--panel-2)); border:1px solid var(--line); border-radius:var(--radius); padding:24px; box-shadow:var(--shadow); }
.auth-card { max-width:460px; margin:8vh auto; }
.narrow { max-width:680px; }
.card-grid, .stats-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:16px; margin-bottom:18px; }
.stat span { display:block; color:var(--muted); margin-bottom:8px; font-weight:800; font-size:13px; text-transform:uppercase; letter-spacing:.08em; }
.stat strong { font-size:30px; letter-spacing:-.03em; }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.wide { grid-column:1 / -1; }
label { display:flex; flex-direction:column; gap:8px; font-weight:750; }
label.checkbox { flex-direction:row; align-items:center; font-weight:650; }
input, select, textarea { width:100%; border:1px solid var(--line); border-radius:14px; padding:12px 13px; font:inherit; background:rgba(255,255,255,.78); color:#111827; }
:root[data-theme="dark"] input, :root[data-theme="dark"] select, :root[data-theme="dark"] textarea { background:#0c111a; color:#f8fafc; }
textarea { resize:vertical; }
button, .button { display:inline-flex; align-items:center; justify-content:center; gap:8px; border:0; border-radius:14px; padding:12px 17px; background:linear-gradient(135deg,var(--primary),#8f6113); color:white; font-weight:900; cursor:pointer; box-shadow:0 12px 28px rgba(139,97,19,.18); }
.button.secondary, .quick-links a, .ghost-button { background:rgba(214,168,74,.13); color:var(--primary-2); border:1px solid rgba(214,168,74,.24); box-shadow:none; }
:root:not([data-theme="dark"]) .button.secondary, :root:not([data-theme="dark"]) .quick-links a, :root:not([data-theme="dark"]) .ghost-button { color:#7b5010; }
table { width:100%; border-collapse:collapse; }
th, td { text-align:start; border-bottom:1px solid var(--line); padding:12px 8px; vertical-align:top; }
th { color:var(--muted); font-size:12px; text-transform:uppercase; letter-spacing:.08em; }
.alert { padding:13px 15px; border-radius:14px; margin-bottom:16px; font-weight:750; }
.success { background:rgba(5,122,85,.12); color:var(--success); } .error { background:rgba(180,35,24,.12); color:var(--danger); } .warning { background:rgba(154,103,0,.12); color:var(--warning); }
.assistant-response { margin-bottom:18px; border-color:rgba(214,168,74,.45); }
.grid-2 { display:grid; grid-template-columns:repeat(auto-fit,minmax(340px,1fr)); gap:18px; margin-bottom:18px; }
.two-column { display:grid; grid-template-columns:2fr 1fr; gap:22px; align-items:start; }
.quick-links { display:grid; gap:10px; }
.button-row { display:flex; gap:10px; flex-wrap:wrap; }
.badge-row { display:flex; gap:8px; flex-wrap:wrap; margin-top:12px; }
.badge-row span, .badge { background:rgba(214,168,74,.12); border:1px solid var(--line); padding:6px 10px; border-radius:999px; color:var(--muted); font-size:12px; font-weight:800; }
.stacked-form { display:flex; gap:10px; margin-top:12px; }
.stacked-form input { flex:1; }
pre { white-space:pre-wrap; background:#05070a; color:#e2e8f0; border-radius:18px; padding:18px; overflow:auto; border:1px solid #1f2937; }
.danger { background:#dc2626; }
.small-text { font-size:13px !important; word-break:break-all; }
.chat-log { display:flex; flex-direction:column; gap:14px; max-width:900px; }
.chat-message { background:var(--panel); border:1px solid var(--line); border-radius:18px; padding:16px; }
.chat-message.ai { margin-inline-start:35px; border-color:rgba(214,168,74,.5); }
.chat-message.customer { margin-inline-end:35px; }
.hero-panel { background:linear-gradient(135deg, rgba(214,168,74,.2), rgba(59,130,246,.06)), var(--panel); border:1px solid rgba(214,168,74,.28); border-radius:28px; padding:34px; box-shadow:var(--shadow); }
.micbar { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.qr-frame { display:inline-block; background:white; padding:16px; border-radius:24px; box-shadow:var(--shadow); }
.public-page { min-height:100vh; display:grid; place-items:center; padding:24px; }
@media (max-width: 900px) { .app-shell { display:block; } .sidebar { width:auto; height:auto; position:relative; } .form-grid, .two-column { grid-template-columns:1fr; } .page-header { align-items:flex-start; flex-direction:column; } .main-panel { padding:22px; } }

/* Connected AI command center */
.sidebar a.nav-primary { background:linear-gradient(135deg, rgba(214,168,74,.35), rgba(241,211,138,.12)); color:#fff; border:1px solid rgba(241,211,138,.28); box-shadow:0 14px 32px rgba(0,0,0,.22); }
.nav-more { color:#d5deee; }
.nav-more summary { cursor:pointer; padding:10px 12px; border-radius:13px; font-weight:800; color:#c7b98f; }
.nav-more[open] summary, .nav-more summary:hover { background:rgba(214,168,74,.10); color:#fff; }
.nav-more a { margin-inline-start:10px; font-size:14px; padding:9px 12px; }
.command-center { display:grid; grid-template-columns:minmax(0, 1fr) 360px; gap:22px; align-items:start; }
.command-main { min-width:0; display:flex; flex-direction:column; gap:16px; }
.command-hero { display:flex; justify-content:space-between; gap:18px; align-items:flex-start; background:linear-gradient(135deg, rgba(214,168,74,.2), rgba(99,102,241,.10), rgba(20,184,166,.05)), var(--panel); border:1px solid rgba(214,168,74,.32); border-radius:30px; padding:28px; box-shadow:var(--shadow); }
.command-hero h1 { max-width:840px; font-size:42px; }
.eyebrow { color:var(--primary-2); font-weight:950; letter-spacing:.16em; text-transform:uppercase; font-size:12px; margin-bottom:8px; }
.hero-actions { display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; }
.context-strip { display:flex; gap:10px; flex-wrap:wrap; }
.context-strip span { background:rgba(214,168,74,.11); border:1px solid var(--line); border-radius:999px; padding:9px 12px; color:var(--muted); font-weight:850; font-size:13px; }
.context-strip strong { color:var(--text); margin-inline-start:4px; }
.chat-window { height:calc(100vh - 392px); min-height:430px; overflow:auto; background:rgba(255,255,255,.025); border:1px solid var(--line); border-radius:30px; padding:22px; display:flex; flex-direction:column; gap:16px; scroll-behavior:smooth; }
.chat-turn { display:flex; gap:12px; align-items:flex-start; }
.ai-turn { margin-inline-end:48px; }
.user-turn { flex-direction:row-reverse; margin-inline-start:48px; }
.avatar { width:38px; height:38px; border-radius:14px; display:grid; place-items:center; font-weight:950; flex:0 0 auto; }
.avatar.user { background:#1f2937; color:white; }
.avatar.ai { background:linear-gradient(135deg, #f1d38a, #9b6b18); color:#111; box-shadow:0 12px 30px rgba(214,168,74,.22); }
.avatar.large { width:64px; height:64px; border-radius:22px; margin:auto; }
.bubble { max-width:100%; border-radius:22px; padding:15px 16px; border:1px solid var(--line); box-shadow:0 14px 34px rgba(0,0,0,.08); }
.user-bubble { background:linear-gradient(135deg, rgba(214,168,74,.20), rgba(214,168,74,.08)); }
.ai-bubble { background:linear-gradient(180deg, var(--panel), var(--panel-2)); border-color:rgba(214,168,74,.28); }
.bubble-meta { color:var(--muted); font-size:12px; font-weight:850; letter-spacing:.02em; margin-bottom:8px; }
.bubble-tools { display:flex; gap:8px; flex-wrap:wrap; margin-top:12px; }
.tiny-button { padding:7px 10px; border-radius:999px; font-size:12px; box-shadow:none; background:rgba(214,168,74,.15); color:var(--primary-2); border:1px solid rgba(214,168,74,.24); }
:root:not([data-theme="dark"]) .tiny-button { color:#7b5010; }
.empty-chat { margin:auto; text-align:center; max-width:560px; }
.composer { position:sticky; bottom:16px; background:linear-gradient(180deg, var(--panel), var(--panel-2)); border:1px solid rgba(214,168,74,.30); border-radius:28px; padding:16px; box-shadow:var(--shadow); display:grid; gap:12px; }
.composer textarea { border-radius:20px; min-height:92px; }
.composer-top { display:grid; grid-template-columns: 1fr auto 220px; gap:10px; align-items:center; }
.compact-check { display:flex; flex-direction:row; align-items:center; gap:8px; white-space:nowrap; font-size:13px; color:var(--muted); font-weight:850; }
.compact-check input { width:auto; }
.advanced-share { border:1px dashed rgba(214,168,74,.32); border-radius:20px; padding:10px 12px; }
.advanced-share summary { cursor:pointer; color:var(--primary-2); font-weight:900; }
.share-grid { display:grid; grid-template-columns:1fr 180px; gap:12px; margin-top:12px; }
.composer-actions { display:flex; gap:10px; flex-wrap:wrap; }
.command-tools { display:flex; flex-direction:column; gap:14px; position:sticky; top:24px; max-height:calc(100vh - 48px); overflow:auto; }
.tool-card { background:linear-gradient(180deg,var(--panel),var(--panel-2)); border:1px solid var(--line); border-radius:24px; padding:18px; box-shadow:var(--shadow); }
.primary-tool { border-color:rgba(214,168,74,.35); }
.tool-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.tool-grid a, .tool-card > button, .inline-run button, .data-row { display:block; width:100%; text-align:start; border-radius:14px; padding:10px 12px; margin:0 0 8px; background:rgba(214,168,74,.10); border:1px solid var(--line); color:var(--text); box-shadow:none; font-weight:850; }
.tool-card > button:hover, .tool-grid a:hover, .data-row:hover { border-color:rgba(214,168,74,.55); }
.data-row strong, .data-row span { display:block; }
.data-row span { color:var(--muted); font-size:12px; margin-top:3px; }
.full { width:100%; }
@media (max-width: 1150px) { .command-center { grid-template-columns:1fr; } .command-tools { position:relative; max-height:none; top:0; } .chat-window { height:520px; } }
@media (max-width: 760px) { .command-hero { flex-direction:column; } .command-hero h1 { font-size:30px; } .composer-top { grid-template-columns:1fr; } .share-grid { grid-template-columns:1fr; } .ai-turn, .user-turn { margin:0; } }

/* Command Center reliability and voice-first polish */
.pro-command { grid-template-columns:minmax(0,1fr) 390px; }
.command-topbar {
    display:flex; justify-content:space-between; align-items:center; gap:22px;
    padding:28px; border-radius:32px; border:1px solid rgba(214,168,74,.34);
    background:radial-gradient(circle at top left, rgba(214,168,74,.24), transparent 42%), radial-gradient(circle at bottom right, rgba(99,102,241,.16), transparent 34%), linear-gradient(180deg,var(--panel),var(--panel-2));
    box-shadow:0 30px 80px rgba(0,0,0,.18);
}
.command-topbar h1 { font-size:42px; margin-bottom:6px; letter-spacing:-.05em; }
.mode-console { display:flex; gap:8px; background:rgba(0,0,0,.18); border:1px solid var(--line); padding:8px; border-radius:20px; box-shadow:inset 0 1px 0 rgba(255,255,255,.04); }
.mode-pill { box-shadow:none; border:1px solid transparent; background:transparent; color:var(--muted); padding:10px 13px; border-radius:15px; white-space:nowrap; }
.mode-pill.active { color:#111827; background:linear-gradient(135deg,#f7d77e,#c28a26); border-color:rgba(255,255,255,.24); box-shadow:0 18px 38px rgba(214,168,74,.22); }
.command-status-grid { display:grid; grid-template-columns:repeat(6,minmax(120px,1fr)); gap:10px; }
.status-card { background:linear-gradient(180deg,var(--panel),var(--panel-2)); border:1px solid var(--line); border-radius:22px; padding:14px; min-height:92px; }
.status-card span, .status-card small { display:block; color:var(--muted); font-size:12px; font-weight:850; }
.status-card strong { display:block; font-size:25px; margin:7px 0 3px; letter-spacing:-.04em; }
.status-card.live { border-color:rgba(214,168,74,.48); box-shadow:0 0 0 1px rgba(214,168,74,.12) inset; }
.chat-shell { display:flex; flex-direction:column; gap:14px; }
.command-chat { min-height:520px; height:calc(100vh - 430px); background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.015)); backdrop-filter: blur(12px); }
.command-empty .starter-prompts { display:flex; gap:8px; flex-wrap:wrap; justify-content:center; margin-top:18px; }
.command-empty .starter-prompts button { background:rgba(214,168,74,.12); color:var(--primary-2); border:1px solid rgba(214,168,74,.24); box-shadow:none; }
.command-composer { bottom:12px; border-radius:30px; background:linear-gradient(180deg,rgba(24,31,42,.96),rgba(12,17,26,.98)); backdrop-filter:blur(18px); }
:root:not([data-theme="dark"]) .command-composer { background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(246,240,226,.98)); }
.composer-control-row { display:grid; grid-template-columns:1fr 165px auto 190px; gap:10px; align-items:center; }
.premium-select, .small-select { height:46px; }
.composer-input-wrap { display:grid; grid-template-columns:58px 1fr 96px; gap:10px; align-items:end; }
.composer-input-wrap textarea { min-height:74px; border-radius:22px; font-size:16px; line-height:1.55; }
.orb-button, .send-orb { height:58px; align-self:stretch; border-radius:22px; }
.orb-button { font-size:24px; background:radial-gradient(circle at 30% 20%, #fff7d6, #d6a84a 42%, #8f6113); color:#111; }
.send-orb { background:linear-gradient(135deg,#f1d38a,#a56f18); color:#111; }
.composer-bottom-row { display:flex; flex-wrap:wrap; gap:8px; }
.premium-share { background:rgba(214,168,74,.06); }
.command-rail .tool-card { border-radius:26px; }
.brain-card { background:radial-gradient(circle at top left, rgba(214,168,74,.22), transparent 38%), linear-gradient(180deg,var(--panel),var(--panel-2)); }
.premium-tools a { display:flex; flex-direction:column; gap:3px; }
.premium-tools a span { color:var(--muted); font-size:12px; font-weight:700; }
.voice-hud { display:grid; grid-template-columns:74px 1fr; gap:14px; align-items:center; margin:12px 0; }
.voice-ring { width:70px; height:70px; border-radius:28px; display:grid; place-items:center; background:radial-gradient(circle,rgba(214,168,74,.28),rgba(214,168,74,.07)); border:1px solid rgba(214,168,74,.33); position:relative; }
.voice-ring span { font-size:28px; z-index:1; }
.voice-ring.listening:before, .voice-active-ui .voice-ring:before { content:""; position:absolute; inset:-7px; border-radius:32px; border:2px solid rgba(214,168,74,.45); animation:voicePulse 1.15s infinite; }
.voice-ring.listening { box-shadow:0 0 50px rgba(214,168,74,.32); }
@keyframes voicePulse { 0%{transform:scale(.92);opacity:.9} 100%{transform:scale(1.2);opacity:0} }
.voice-active-ui .command-topbar { border-color:rgba(20,184,166,.45); box-shadow:0 30px 100px rgba(20,184,166,.09); }
.voice-active-ui .orb-button { animation:voiceGlow 1.6s infinite alternate; }
@keyframes voiceGlow { from{box-shadow:0 0 18px rgba(214,168,74,.22)} to{box-shadow:0 0 48px rgba(20,184,166,.32)} }
@media (max-width: 1250px) { .pro-command { grid-template-columns:1fr; } .command-rail { position:relative; top:0; max-height:none; } .command-status-grid { grid-template-columns:repeat(3,1fr); } }
@media (max-width: 760px) { .command-topbar { flex-direction:column; align-items:flex-start; } .mode-console { width:100%; overflow:auto; } .composer-control-row, .composer-input-wrap { grid-template-columns:1fr; } .command-status-grid { grid-template-columns:repeat(2,1fr); } .command-topbar h1 { font-size:32px; } }

/* Wasla Nova UI — polished command-center interface */
:root {
    --nova-bg:#f4efe6;
    --nova-ink:#17130b;
    --nova-muted:#756a5a;
    --nova-card:rgba(255,252,246,.82);
    --nova-card-solid:#fffaf1;
    --nova-glass:rgba(255,255,255,.54);
    --nova-line:rgba(127,94,34,.18);
    --nova-gold:#d9ab4d;
    --nova-gold-2:#ffe19a;
    --nova-teal:#17c7b0;
    --nova-violet:#8b7cff;
    --nova-red:#ff6b5f;
    --nova-shadow:0 30px 90px rgba(73,50,12,.16);
    --nova-radius:30px;
}
:root[data-theme="dark"] {
    --nova-bg:#05070d;
    --nova-ink:#fff4df;
    --nova-muted:#a99f90;
    --nova-card:rgba(15,19,30,.74);
    --nova-card-solid:#111622;
    --nova-glass:rgba(12,17,27,.72);
    --nova-line:rgba(255,220,151,.14);
    --nova-shadow:0 36px 110px rgba(0,0,0,.58);
}
body {
    background:
        radial-gradient(circle at 8% -8%, rgba(217,171,77,.25), transparent 34%),
        radial-gradient(circle at 88% 4%, rgba(23,199,176,.16), transparent 28%),
        radial-gradient(circle at 50% 112%, rgba(139,124,255,.17), transparent 31%),
        var(--nova-bg) !important;
    color:var(--nova-ink);
    min-height:100vh;
}
.aurora-bg { position:fixed; inset:0; overflow:hidden; z-index:-1; pointer-events:none; }
.aurora-bg span { position:absolute; width:420px; height:420px; border-radius:999px; filter:blur(80px); opacity:.25; animation:novaFloat 14s ease-in-out infinite alternate; }
.aurora-bg span:nth-child(1){ background:#d9ab4d; left:-120px; top:-140px; }
.aurora-bg span:nth-child(2){ background:#17c7b0; right:-100px; top:10%; animation-delay:2s; }
.aurora-bg span:nth-child(3){ background:#8b7cff; left:40%; bottom:-180px; animation-delay:4s; }
@keyframes novaFloat { from{ transform:translate3d(0,0,0) scale(.9);} to{ transform:translate3d(40px,30px,0) scale(1.12);} }
.nova-shell { background:transparent; }
.nova-sidebar {
    width:292px;
    background:linear-gradient(180deg, rgba(7,10,17,.88), rgba(8,12,20,.76));
    backdrop-filter:blur(24px);
    border-inline-end:1px solid rgba(255,222,157,.13);
    box-shadow:22px 0 70px rgba(0,0,0,.26);
    padding:22px 18px;
}
.nova-brand { padding:8px 8px 18px; border-bottom:1px solid rgba(255,222,157,.12); }
.nova-brand .brand-mark {
    width:52px; height:52px; border-radius:19px;
    background:linear-gradient(135deg,#fff0b8,#d9ab4d 48%,#8f6113);
    color:#12110c; font-size:24px;
}
.workspace-chip {
    display:block; margin:4px 6px 12px; padding:14px;
    border-radius:20px; background:linear-gradient(135deg,rgba(217,171,77,.16),rgba(23,199,176,.07));
    border:1px solid rgba(255,222,157,.13); color:#fff !important;
}
.workspace-chip span { display:block; color:#b9ae98; font-size:11px; text-transform:uppercase; letter-spacing:.15em; font-weight:900; }
.workspace-chip strong { display:block; margin-top:5px; line-height:1.25; }
.nova-nav { gap:5px !important; }
.nova-nav a {
    display:flex; align-items:center; gap:11px;
    color:#dbe5f5 !important; border:1px solid transparent;
    padding:11px 12px !important; border-radius:17px !important;
    font-weight:800; letter-spacing:-.01em;
}
.nova-nav a b { width:24px; height:24px; display:grid; place-items:center; border-radius:9px; background:rgba(255,255,255,.06); color:#f3cd73; font-weight:900; }
.nova-nav a:hover, .nova-nav a.nav-primary {
    background:linear-gradient(135deg, rgba(217,171,77,.22), rgba(23,199,176,.08));
    border-color:rgba(255,222,157,.18); color:#fff !important;
}
.nova-footer { padding:14px 6px 4px; }
.nova-main { padding:26px; max-width:none; width:100%; }
.alert { border:1px solid var(--nova-line); box-shadow:var(--nova-shadow); }
.nova-command { display:flex; flex-direction:column; gap:18px; }
.nova-command-top {
    display:flex; align-items:center; justify-content:space-between; gap:22px;
    padding:28px 30px; border-radius:34px;
    background:linear-gradient(135deg,rgba(255,255,255,.08),rgba(255,255,255,.02)), var(--nova-card);
    border:1px solid var(--nova-line); box-shadow:var(--nova-shadow); backdrop-filter:blur(24px);
}
.nova-command-top h1 { font-size:48px; line-height:1; letter-spacing:-.065em; margin:0 0 10px; }
.nova-command-top p { max-width:850px; margin:0; color:var(--nova-muted); font-size:16px; }
.nova-top-actions { display:flex; gap:10px; align-items:center; flex-wrap:wrap; justify-content:flex-end; }
.pill-live { background:rgba(23,199,176,.10); color:var(--nova-teal); border:1px solid rgba(23,199,176,.25); box-shadow:none; }
.pill-live span { width:9px; height:9px; border-radius:50%; background:var(--nova-teal); box-shadow:0 0 20px var(--nova-teal); }
.nova-metrics { display:grid; grid-template-columns:repeat(6,minmax(130px,1fr)); gap:12px; }
.nova-metrics > div {
    min-height:108px; padding:16px; border-radius:26px;
    background:linear-gradient(180deg, var(--nova-card), rgba(255,255,255,.03));
    border:1px solid var(--nova-line); box-shadow:0 18px 58px rgba(0,0,0,.12); backdrop-filter:blur(18px);
}
.nova-metrics span, .nova-metrics small { display:block; color:var(--nova-muted); font-size:12px; font-weight:900; text-transform:uppercase; letter-spacing:.08em; }
.nova-metrics strong { display:block; font-size:34px; margin:8px 0 5px; letter-spacing:-.06em; color:var(--nova-ink); }
.nova-grid { display:grid; grid-template-columns:minmax(0,1fr) 390px; gap:18px; align-items:start; }
.nova-chat-card, .nova-right-panel .tool-card, .operator-card {
    background:linear-gradient(180deg, var(--nova-card), rgba(255,255,255,.025));
    border:1px solid var(--nova-line); box-shadow:var(--nova-shadow); backdrop-filter:blur(24px);
    border-radius:34px;
}
.nova-chat-card { padding:16px; display:flex; flex-direction:column; gap:14px; min-height:calc(100vh - 238px); }
.chat-card-head { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:8px 8px 0; }
.chat-card-head h2 { margin:0 0 4px; font-size:24px; letter-spacing:-.04em; }
.chat-card-head p { margin:0; color:var(--nova-muted); }
.mode-switcher {
    display:flex; gap:6px; padding:7px; border-radius:21px;
    background:rgba(0,0,0,.18); border:1px solid var(--nova-line);
}
:root:not([data-theme="dark"]) .mode-switcher { background:rgba(255,255,255,.5); }
.mode-switcher .mode-pill, .mode-list button {
    box-shadow:none; border:1px solid transparent; background:transparent; color:var(--nova-muted);
    border-radius:16px; padding:11px 14px; white-space:nowrap;
}
.mode-switcher .mode-pill.active, .mode-list button.active {
    background:linear-gradient(135deg,#fff0af,#d9ab4d 52%,#a46d16); color:#15120b;
    border-color:rgba(255,255,255,.28); box-shadow:0 20px 45px rgba(217,171,77,.22);
}
.voice-command-strip {
    display:flex; align-items:center; gap:14px; padding:13px 15px; margin:0 4px;
    border-radius:24px; border:1px solid rgba(23,199,176,.18);
    background:linear-gradient(135deg,rgba(23,199,176,.10),rgba(217,171,77,.06));
}
.voice-command-strip strong, .voice-command-strip span { display:block; }
.voice-command-strip span { color:var(--nova-muted); font-size:13px; margin-top:2px; }
.voice-orb-mini { width:42px; height:42px; border-radius:17px; background:radial-gradient(circle,#fff5c4,#d9ab4d 46%,#7f520e); box-shadow:0 0 34px rgba(217,171,77,.24); position:relative; }
.voice-orb-mini:after { content:""; position:absolute; inset:13px; border-radius:50%; background:#15120b; }
.voice-orb-mini.listening { animation:novaMic 1s infinite alternate; }
.voice-orb-mini.listening:before { content:""; position:absolute; inset:-9px; border-radius:24px; border:2px solid rgba(23,199,176,.45); animation:voicePulse 1s infinite; }
@keyframes novaMic { from{box-shadow:0 0 24px rgba(217,171,77,.35)} to{box-shadow:0 0 64px rgba(23,199,176,.46)} }
.nova-chat-window {
    flex:1; min-height:480px; height:calc(100vh - 522px); overflow:auto; padding:24px;
    border-radius:30px; border:1px solid var(--nova-line);
    background:linear-gradient(180deg,rgba(5,8,14,.32),rgba(5,8,14,.10));
}
:root:not([data-theme="dark"]) .nova-chat-window { background:linear-gradient(180deg,rgba(255,255,255,.72),rgba(255,248,233,.55)); }
.nova-message { display:flex; gap:13px; margin-bottom:18px; align-items:flex-start; }
.nova-message-user { flex-direction:row-reverse; margin-left:12%; }
.nova-message-ai { margin-right:12%; }
.nova-avatar { width:42px; height:42px; border-radius:16px; display:grid; place-items:center; font-weight:950; flex:0 0 auto; }
.nova-avatar.user { background:linear-gradient(135deg,#283142,#0b1020); color:#fff; }
.nova-avatar.ai { background:linear-gradient(135deg,#fff0af,#d9ab4d 52%,#a46d16); color:#111; box-shadow:0 16px 38px rgba(217,171,77,.25); }
.nova-bubble { max-width:880px; padding:16px 18px; border-radius:24px; border:1px solid var(--nova-line); line-height:1.62; }
.nova-bubble.user-bubble { background:linear-gradient(135deg,rgba(217,171,77,.20),rgba(23,199,176,.08)); }
.nova-bubble.ai-bubble { background:linear-gradient(180deg,var(--nova-card-solid),rgba(255,255,255,.04)); }
:root[data-theme="dark"] .nova-bubble.ai-bubble { background:linear-gradient(180deg,rgba(16,22,34,.96),rgba(14,18,28,.86)); }
.bubble-meta { color:var(--nova-muted) !important; font-size:12px !important; font-weight:900 !important; letter-spacing:.02em; margin-bottom:9px; }
.nova-empty-state { text-align:center; max-width:650px; margin:auto; padding:46px 20px; }
.empty-orb { width:86px; height:86px; border-radius:30px; display:grid; place-items:center; margin:0 auto 18px; color:#111; font-size:38px; font-weight:950; background:linear-gradient(135deg,#fff0af,#d9ab4d 55%,#9b6b18); box-shadow:0 24px 70px rgba(217,171,77,.28); }
.nova-empty-state h2 { font-size:34px; letter-spacing:-.055em; margin-bottom:8px; }
.starter-prompts, .composer-quick-row { display:flex; flex-wrap:wrap; gap:8px; }
.starter-prompts button, .composer-quick-row button, .tiny-button {
    background:rgba(217,171,77,.10); border:1px solid var(--nova-line); color:var(--nova-ink); box-shadow:none; border-radius:999px; padding:9px 12px; font-weight:850;
}
.nova-composer {
    padding:14px; border-radius:30px; border:1px solid rgba(217,171,77,.23);
    background:linear-gradient(180deg,rgba(13,18,29,.88),rgba(7,10,17,.94));
    box-shadow:0 30px 90px rgba(0,0,0,.28); backdrop-filter:blur(26px); display:grid; gap:11px;
}
:root:not([data-theme="dark"]) .nova-composer { background:linear-gradient(180deg,rgba(255,255,255,.92),rgba(255,248,234,.96)); }
.composer-toolbar { display:grid; grid-template-columns:1fr 155px 126px 180px; gap:9px; align-items:center; }
.composer-toolbar input, .composer-toolbar select { height:44px; }
.composer-input-row { display:grid; grid-template-columns:62px 1fr 108px; gap:10px; align-items:end; }
.composer-input-row textarea { min-height:78px; max-height:220px; border-radius:24px; font-size:16px; padding:16px; background:rgba(255,255,255,.04); }
:root:not([data-theme="dark"]) .composer-input-row textarea { background:rgba(255,255,255,.76); }
.mic-orb, .send-orb { min-height:62px; border-radius:24px; }
.mic-orb { font-size:25px; color:#111; background:radial-gradient(circle at 30% 20%,#fff7d5,#d9ab4d 45%,#81530e); }
.send-orb { color:#111; background:linear-gradient(135deg,#fff0af,#d9ab4d 58%,#a46d16); }
.voice-active-ui .mic-orb { animation:voiceGlow 1.2s infinite alternate; }
.business-context-drawer {
    border:1px dashed rgba(217,171,77,.28); border-radius:24px; padding:10px 13px;
    background:rgba(217,171,77,.06);
}
.business-context-drawer summary { cursor:pointer; font-weight:950; color:var(--nova-gold-2); }
:root:not([data-theme="dark"]) .business-context-drawer summary { color:#8a5b10; }
.nova-right-panel { display:flex; flex-direction:column; gap:14px; position:sticky; top:22px; max-height:calc(100vh - 44px); overflow:auto; }
.operator-card { padding:18px; }
.operator-ring { width:82px; height:82px; border-radius:30px; display:grid; place-items:center; margin-bottom:14px; background:radial-gradient(circle,#fff3bd,#d9ab4d 52%,#70480d); color:#111; box-shadow:0 25px 70px rgba(217,171,77,.26); }
.operator-ring span { font-weight:950; font-size:22px; }
.operator-card h3, .nova-tool-card h3 { margin:0 0 7px; }
.operator-card p, .nova-tool-card p { margin-top:0; }
.mode-list { display:grid; gap:8px; margin:12px 0; }
.mode-list button { width:100%; text-align:start; border:1px solid var(--nova-line); background:rgba(255,255,255,.04); }
.mode-list button strong, .mode-list button span { display:block; }
.mode-list button span { font-size:12px; color:var(--nova-muted); margin-top:3px; }
.nova-tool-card { padding:18px !important; }
.nova-tool-grid { grid-template-columns:1fr 1fr; gap:9px; }
.nova-tool-grid a, .inline-run button, .data-row {
    background:rgba(255,255,255,.045) !important; border:1px solid var(--nova-line) !important; border-radius:18px !important;
    padding:12px !important; color:var(--nova-ink) !important; transition:.18s ease;
}
.nova-tool-grid a:hover, .inline-run button:hover, .data-row:hover { transform:translateY(-2px); border-color:rgba(217,171,77,.38) !important; background:rgba(217,171,77,.10) !important; }
.nova-tool-grid a span, .data-row span { display:block; color:var(--nova-muted); font-size:12px; margin-top:4px; }
.auto-speak-row { padding-top:10px; }
input, select, textarea { border-color:var(--nova-line) !important; }
@media (max-width: 1320px) {
    .nova-grid { grid-template-columns:1fr; }
    .nova-right-panel { position:relative; top:0; max-height:none; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
    .operator-card { grid-column:1/-1; }
}
@media (max-width: 980px) {
    .nova-shell { display:block; }
    .nova-sidebar { width:auto; height:auto; position:relative; }
    .nova-nav { display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)); }
    .nova-metrics { grid-template-columns:repeat(3,1fr); }
    .nova-command-top { flex-direction:column; align-items:flex-start; }
    .composer-toolbar, .composer-input-row { grid-template-columns:1fr; }
}
@media (max-width: 700px) {
    .nova-main { padding:14px; }
    .nova-command-top h1 { font-size:34px; }
    .nova-metrics { grid-template-columns:repeat(2,1fr); }
    .nova-right-panel { display:flex; }
    .nova-message-user, .nova-message-ai { margin-left:0; margin-right:0; }
    .chat-card-head { flex-direction:column; align-items:flex-start; }
    .mode-switcher { width:100%; overflow:auto; }
}

/* Human Voice AI mode */
.human-voice-stage {
    display:none;
    position:relative;
    overflow:hidden;
    border-radius:34px;
    padding:30px;
    border:1px solid rgba(23,199,176,.22);
    background:
        radial-gradient(circle at 50% 0%, rgba(23,199,176,.18), transparent 34%),
        radial-gradient(circle at 20% 70%, rgba(217,171,77,.18), transparent 32%),
        linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
    text-align:center;
    min-height:430px;
    place-items:center;
    gap:18px;
}
:root:not([data-theme="dark"]) .human-voice-stage {
    background:
        radial-gradient(circle at 50% 0%, rgba(23,199,176,.15), transparent 34%),
        radial-gradient(circle at 20% 70%, rgba(217,171,77,.20), transparent 32%),
        linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,248,235,.72));
}
.human-voice-mode .human-voice-stage { display:grid; }
.human-voice-mode .nova-chat-window { display:none; }
.human-voice-mode .composer-toolbar,
.human-voice-mode .composer-quick-row,
.human-voice-mode .business-context-drawer { display:none; }
.human-voice-mode .composer-input-row { grid-template-columns:1fr; }
.human-voice-mode .composer-input-row textarea,
.human-voice-mode .composer-input-row .mic-orb,
.human-voice-mode .composer-input-row .send-orb {
    position:absolute !important;
    opacity:0 !important;
    pointer-events:none !important;
    width:1px !important;
    height:1px !important;
    min-height:1px !important;
    padding:0 !important;
    border:0 !important;
}
.human-orb-wrap { position:relative; width:168px; height:168px; margin:auto; display:grid; place-items:center; }
.human-orb {
    width:132px; height:132px; border-radius:45px; display:grid; place-items:center;
    background:radial-gradient(circle at 35% 20%, #fff8d6, #d9ab4d 48%, #755016 78%);
    box-shadow:0 30px 90px rgba(217,171,77,.30), inset 0 1px 18px rgba(255,255,255,.45);
    color:#111; font-weight:950; font-size:48px; position:relative; z-index:2;
}
.human-orb:after {
    content:""; position:absolute; inset:25px; border-radius:50%;
    background:radial-gradient(circle, rgba(11,16,28,.96), rgba(11,16,28,.68));
    box-shadow:inset 0 0 28px rgba(23,199,176,.28);
}
.human-orb span { position:relative; z-index:3; color:#fff0af; text-shadow:0 0 24px rgba(241,211,138,.55); }
.human-rings, .human-rings:before, .human-rings:after {
    content:""; position:absolute; inset:0; border-radius:52px; border:1px solid rgba(23,199,176,.22);
}
.human-rings:before { inset:18px; border-color:rgba(217,171,77,.25); }
.human-rings:after { inset:-18px; border-color:rgba(23,199,176,.12); }
.human-orb.listening { animation:humanListening 1s infinite alternate; }
.human-orb.speaking { animation:humanSpeaking .7s infinite alternate; }
@keyframes humanListening { from{transform:scale(1); box-shadow:0 30px 90px rgba(217,171,77,.34)} to{transform:scale(1.04); box-shadow:0 34px 120px rgba(23,199,176,.40)} }
@keyframes humanSpeaking { from{filter:saturate(1); transform:translateY(0)} to{filter:saturate(1.3); transform:translateY(-3px)} }
.human-stage-copy h2 { margin:0; font-size:42px; letter-spacing:-.055em; }
.human-stage-copy p { margin:8px auto 0; max-width:620px; font-size:16px; color:var(--nova-muted); }
.voice-language-pills { display:flex; gap:10px; flex-wrap:wrap; justify-content:center; }
.voice-lang-pill {
    background:rgba(255,255,255,.06); color:var(--nova-ink); border:1px solid var(--nova-line); box-shadow:none;
    border-radius:999px; padding:11px 18px; min-width:104px;
}
.voice-lang-pill.active {
    background:linear-gradient(135deg,#fff0af,#d9ab4d 58%,#a46d16); color:#111;
    box-shadow:0 18px 46px rgba(217,171,77,.22);
}
.human-controls { display:flex; align-items:center; justify-content:center; gap:10px; flex-wrap:wrap; }
.listen-main {
    min-width:190px; min-height:56px; border-radius:20px; color:#10131c;
    background:linear-gradient(135deg,#d6fff8,#17c7b0 55%,#087467);
    box-shadow:0 22px 64px rgba(23,199,176,.24);
}
.voice-debug-drawer {
    width:min(720px,100%); margin:auto; text-align:start; border:1px dashed rgba(217,171,77,.26);
    border-radius:22px; padding:12px 14px; background:rgba(0,0,0,.08);
}
.voice-debug-drawer summary { cursor:pointer; font-weight:950; color:var(--nova-gold-2); }
.voice-hidden-transcript {
    margin-top:12px; padding:14px; border-radius:16px; background:rgba(0,0,0,.22); border:1px solid var(--nova-line);
    color:var(--nova-ink); min-height:52px; white-space:pre-wrap;
}
:root:not([data-theme="dark"]) .voice-hidden-transcript { background:rgba(255,255,255,.62); }
.voice-pill.active { position:relative; }
.voice-pill.active:after { content:""; width:7px; height:7px; border-radius:50%; background:#17c7b0; box-shadow:0 0 18px #17c7b0; position:absolute; top:9px; right:9px; }

/* Connected operations: CRM, ERP, growth and executive intelligence */
.inline-filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.inline-filters label{min-width:220px;flex:1}.table-wrap{overflow:auto}.status-chip{display:inline-flex;align-items:center;padding:5px 10px;border-radius:999px;background:rgba(255,255,255,.07);border:1px solid var(--nova-line);font-size:12px;font-weight:900;text-transform:capitalize}.status-good{color:#72ead9}.status-warn{color:#f1d38a}.text-danger{color:#ff8585!important}.muted{color:var(--nova-muted)}
.pipeline-board{display:grid;grid-template-columns:repeat(6,minmax(220px,1fr));gap:12px;overflow:auto;padding:4px 2px 18px;margin:18px 0}.pipeline-column{background:rgba(255,255,255,.025);border:1px solid var(--nova-line);border-radius:22px;padding:12px;min-height:220px}.pipeline-column>header{display:flex;justify-content:space-between;padding:6px 5px 12px;text-transform:capitalize}.pipeline-column>header span{color:var(--nova-muted)}.deal-card{display:block;padding:15px;margin-bottom:10px;border:1px solid var(--nova-line);border-radius:16px;background:rgba(255,255,255,.045);color:var(--nova-ink);transition:.2s}.deal-card:hover{transform:translateY(-2px);border-color:rgba(23,199,176,.5)}.deal-card>span,.deal-card>small{display:block;color:var(--nova-muted);margin-top:5px}.deal-card>div{display:flex;justify-content:space-between;margin-top:13px}.modal-card{width:min(840px,calc(100% - 32px));border:1px solid var(--nova-line);border-radius:28px;background:#111827;color:var(--nova-ink);padding:26px}.modal-card::backdrop{background:#02040bbb;backdrop-filter:blur(8px)}:root:not([data-theme="dark"]) .modal-card{background:#fff}.crm-detail-grid{align-items:start}.timeline article{display:grid;grid-template-columns:16px 1fr;gap:12px;padding-bottom:22px}.timeline article>span{width:10px;height:10px;border-radius:50%;margin-top:5px;background:var(--nova-teal);box-shadow:0 0 18px rgba(23,199,176,.55)}.timeline article small{display:block;color:var(--nova-muted);margin-top:4px}.timeline article p{margin:8px 0}.grid-stack{display:grid;gap:16px}.task-list article{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:13px 0;border-bottom:1px solid var(--nova-line)}.task-list small{display:block;color:var(--nova-muted);margin-top:4px}
.connection-panel{display:grid;grid-template-columns:minmax(250px,.8fr) minmax(420px,1.2fr);gap:30px;align-items:start}.account-card{margin-bottom:16px}.permission-row{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.permission-row span{padding:6px 10px;border-radius:99px;background:rgba(23,199,176,.09);color:#72ead9;font-size:12px}.permission-row strong{color:#f1d38a}.account-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.account-actions small{color:var(--nova-muted);margin-inline-end:auto}.danger-button{background:#7f1d1d!important}.subpanel{padding:18px;border:1px solid var(--nova-line);border-radius:18px;background:rgba(255,255,255,.025);margin-top:16px}.subpanel summary{cursor:pointer;font-weight:900}.subpanel fieldset{border:1px solid var(--nova-line);border-radius:14px}.compact-check{display:inline-flex!important;align-items:center;gap:7px;font-size:12px}.compact-check input{width:auto!important;margin:0!important}
.briefing-hero{display:flex;justify-content:space-between;align-items:end;gap:24px;padding:34px;border-radius:30px;background:radial-gradient(circle at 90% 10%,rgba(23,199,176,.17),transparent 32%),linear-gradient(135deg,rgba(217,171,77,.13),rgba(255,255,255,.025));border:1px solid var(--nova-line);margin-bottom:26px}.briefing-hero span{color:var(--nova-gold-2);font-weight:900}.briefing-hero h2{font-size:clamp(28px,4vw,48px);margin:8px 0}.briefing-hero p{color:var(--nova-muted);max-width:760px}.section-title{margin:30px 0 14px;font-size:15px;text-transform:uppercase;letter-spacing:.13em;color:var(--nova-muted)}.diagnosis-list,.action-list{display:grid;gap:12px}.diagnosis{display:flex;gap:12px;padding:15px;border:1px solid var(--nova-line);border-radius:16px}.diagnosis>span{width:9px;height:9px;border-radius:50%;margin-top:6px;background:#92a0b8}.diagnosis.warning>span{background:#f1d38a}.diagnosis.positive>span{background:#17c7b0}.diagnosis p,.action-list p{margin:5px 0 0;color:var(--nova-muted)}.action-list a{display:grid;grid-template-columns:38px 1fr auto;gap:12px;align-items:start;padding:15px;border:1px solid var(--nova-line);border-radius:16px;color:var(--nova-ink)}.action-list a>span{display:grid;place-items:center;width:34px;height:34px;border-radius:12px;background:rgba(23,199,176,.12);color:#72ead9;font-weight:900}.action-list a>small{color:var(--nova-gold-2);text-transform:uppercase}.bar-row{display:grid;grid-template-columns:minmax(110px,.7fr) 1.5fr 42px;gap:12px;align-items:center;margin:13px 0}.bar-row>div{height:8px;border-radius:99px;background:rgba(255,255,255,.07);overflow:hidden}.bar-row i{display:block;height:100%;background:linear-gradient(90deg,var(--nova-teal),var(--nova-gold));border-radius:99px}.coverage-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}.coverage-grid>div{padding:15px;border:1px solid var(--nova-line);border-radius:16px}.coverage-grid>div span,.coverage-grid>div small{display:block}.coverage-grid>div.connected span{color:#72ead9}.coverage-grid>div.missing span{color:#f1d38a}.coverage-grid small{color:var(--nova-muted);margin-top:4px}
.command-queue{margin:18px 0}.command-action-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px}.command-action-card{padding:18px;border:1px solid var(--nova-line);border-radius:20px;background:rgba(255,255,255,.025)}.command-action-card>div:first-child{display:flex;justify-content:space-between}.command-action-card h3{margin:13px 0 6px}.command-action-card p{color:var(--nova-muted)}.command-action-card dl{font-size:12px}.command-action-card dl>div{display:flex;justify-content:space-between;gap:12px;padding:6px 0;border-bottom:1px solid var(--nova-line)}.command-action-card dd{margin:0;text-align:end}.command-action-buttons{display:flex;gap:8px;align-items:end}.command-action-buttons form:first-child{flex:1}.command-action-buttons label{margin-bottom:8px}
@media(max-width:900px){.connection-panel{grid-template-columns:1fr}.briefing-hero{display:block}.briefing-hero .button{display:inline-block;margin-top:16px}.pipeline-board{grid-template-columns:repeat(6,240px)}}

/* Wasla Axis — professional operating-system interface */
:root {
    color-scheme:light;
    --bg:#f5f7fa;--panel:#fff;--panel-2:#f8fafc;--text:#101828;--muted:#667085;
    --line:#e4e7ec;--line-strong:#d0d5dd;--primary:#4f46e5;--primary-2:#4338ca;
    --success:#067647;--warning:#b54708;--danger:#b42318;--info:#175cd3;
    --shadow:0 1px 2px rgba(16,24,40,.04),0 8px 24px rgba(16,24,40,.06);--radius:14px;
    --nova-bg:var(--bg);--nova-ink:var(--text);--nova-muted:var(--muted);--nova-card:#fff;
    --nova-card-solid:#fff;--nova-glass:#fff;--nova-line:var(--line);--nova-gold:var(--primary);
    --nova-gold-2:var(--primary);--nova-teal:#079455;--nova-violet:var(--primary);--nova-red:var(--danger);
    --nova-shadow:var(--shadow);--nova-radius:var(--radius);
}
:root[data-theme="dark"] {
    color-scheme:dark;
    --bg:#0c111d;--panel:#161b26;--panel-2:#1d2433;--text:#f5f7fa;--muted:#98a2b3;
    --line:#293056;--line-strong:#344054;--primary:#818cf8;--primary-2:#a5b4fc;
    --success:#47cd89;--warning:#fdb022;--danger:#f97066;--info:#84adff;
    --shadow:0 1px 2px rgba(0,0,0,.2),0 12px 28px rgba(0,0,0,.22);
    --nova-card:#161b26;--nova-card-solid:#1d2433;--nova-glass:#161b26;
}
html{background:var(--bg)}
body{margin:0;background:var(--bg)!important;color:var(--text);font-family:Inter,"Segoe UI",Tahoma,Arial,sans-serif;font-size:14px;line-height:1.5;min-height:100vh}
*{box-sizing:border-box}a{color:var(--primary);text-decoration:none}button,input,select,textarea{font:inherit}svg{display:block}
.workspace-shell{min-height:100vh;display:flex;background:var(--bg)}
.workspace-sidebar{position:fixed;inset:0 auto 0 0;z-index:40;width:248px;display:flex;flex-direction:column;background:#101828;color:#f9fafb;border-right:1px solid #1d2939;overflow:auto}
[dir="rtl"] .workspace-sidebar{left:auto;right:0;border-right:0;border-left:1px solid #1d2939}
.sidebar-brand{height:68px;padding:14px 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #1d2939}
.brand-lockup{display:flex;align-items:center;gap:10px;color:#fff}.brand-lockup:hover{color:#fff}
.brand-symbol{width:34px;height:34px;display:grid;place-items:center;border-radius:9px;background:#fff;color:#101828;font-weight:850;font-size:16px;letter-spacing:-.04em}
.brand-lockup>span:last-child{display:flex;flex-direction:column;line-height:1.1}.brand-lockup strong{font-size:16px}.brand-lockup small{margin-top:4px;color:#98a2b3;font-size:10px;text-transform:uppercase;letter-spacing:.12em;font-weight:700}
.workspace-switcher{margin:14px 12px 8px;padding:10px;display:grid;grid-template-columns:32px minmax(0,1fr) 16px;align-items:center;gap:9px;border:1px solid #344054;border-radius:10px;color:#f9fafb!important;background:#1d2939}
.workspace-switcher:hover{background:#263243}.workspace-switcher svg{width:16px;fill:#98a2b3}.workspace-avatar{width:32px;height:32px;display:grid;place-items:center;border-radius:8px;background:#3538cd;color:#fff;font-weight:800}
.workspace-switcher small,.workspace-switcher strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.workspace-switcher small{color:#98a2b3;font-size:10px}.workspace-switcher strong{font-size:12px;margin-top:2px}
.primary-navigation{padding:6px 10px 20px;display:flex;flex-direction:column;gap:13px}.nav-section{display:grid;gap:2px}.nav-label{padding:6px 9px 4px;color:#667085;font-size:10px;text-transform:uppercase;letter-spacing:.12em;font-weight:800}
.primary-navigation a{height:38px;padding:0 10px;display:flex;align-items:center;gap:10px;border-radius:7px;color:#d0d5dd!important;font-size:13px;font-weight:600;transition:background .14s,color .14s}
.primary-navigation a svg,.settings-menu summary svg{width:18px;height:18px;fill:currentColor;flex:0 0 auto}.primary-navigation a:hover{background:#1d2939;color:#fff!important}.primary-navigation a.active{background:#3538cd;color:#fff!important}
.sidebar-utilities{margin-top:auto;padding:8px 10px 12px;border-top:1px solid #1d2939}.settings-menu{margin-bottom:8px}.settings-menu summary{height:38px;padding:0 10px;display:flex;align-items:center;gap:10px;border-radius:7px;cursor:pointer;color:#d0d5dd;font-size:13px;font-weight:600;list-style:none}.settings-menu summary::-webkit-details-marker{display:none}.settings-menu summary:hover{background:#1d2939;color:#fff}.settings-menu a{display:block;padding:8px 12px 8px 38px;color:#98a2b3;font-size:12px}.settings-menu a:hover{color:#fff}
.sidebar-account{display:grid;grid-template-columns:32px minmax(0,1fr) 30px;gap:9px;align-items:center;padding:10px 8px 0;border-top:1px solid #1d2939}.user-avatar{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:#344054;color:#fff;font-size:12px;font-weight:800}.sidebar-account strong,.sidebar-account small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-account strong{font-size:12px}.sidebar-account small{color:#667085;font-size:10px;margin-top:2px}.sidebar-account form{margin:0}
.icon-button{width:34px;height:34px;padding:0;display:grid;place-items:center;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--muted);box-shadow:none;cursor:pointer}.icon-button:hover{color:var(--text);background:var(--panel-2)}.icon-button svg{width:18px;height:18px;fill:currentColor}.sidebar-account .icon-button{border:0;background:transparent;color:#98a2b3}.sidebar-close,.sidebar-open{display:none}
.workspace-main{min-width:0;flex:1;margin-left:248px}.workspace-topbar{position:sticky;top:0;z-index:25;height:68px;padding:0 28px;display:flex;align-items:center;justify-content:space-between;background:color-mix(in srgb,var(--panel) 94%,transparent);border-bottom:1px solid var(--line);backdrop-filter:blur(12px)}
[dir="rtl"] .workspace-main{margin-left:0;margin-right:248px}.topbar-context{display:flex;align-items:center;gap:8px;min-width:0}.topbar-product{color:var(--muted)}.topbar-separator{color:var(--line-strong)}.topbar-context strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.topbar-actions{display:flex;align-items:center;gap:8px}.topbar-command{height:36px;min-width:220px;padding:0 8px 0 11px;display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--muted);box-shadow:0 1px 2px rgba(16,24,40,.04)}.topbar-command:hover{border-color:var(--line-strong);color:var(--text)}.topbar-command svg{width:16px;fill:var(--primary)}.topbar-command span{flex:1}.topbar-command kbd{padding:2px 5px;border:1px solid var(--line);border-radius:4px;background:var(--panel-2);font-size:10px;color:var(--muted)}
.content-area{width:100%;max-width:1680px;margin:0 auto;padding:28px 30px 48px}
h1,h2,h3,h4{color:var(--text);line-height:1.22}h1{margin:0 0 7px;font-size:28px;letter-spacing:-.035em}h2{font-size:18px;letter-spacing:-.02em}h3{font-size:15px}p{color:var(--muted);line-height:1.6}.eyebrow{margin-bottom:7px;color:var(--primary);font-size:10px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.page-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin:0 0 22px}.page-header p{margin:0;max-width:760px}.page-header h1,.page-header h2{margin-bottom:6px}
.panel,.card,.auth-card,.assistant-response,.stat,.hero-panel,.tool-card,.operator-card,.nova-chat-card,.nova-right-panel .tool-card{padding:20px;background:var(--panel)!important;border:1px solid var(--line)!important;border-radius:12px!important;box-shadow:var(--shadow)!important;backdrop-filter:none!important}
.hero-panel{background:var(--panel)!important}.auth-card{max-width:440px;margin:8vh auto}.narrow{max-width:720px}
.stats-grid,.card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin-bottom:18px}.stat{min-height:112px}.stat span{display:block;margin-bottom:10px;color:var(--muted);font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:none}.stat strong{font-size:25px;letter-spacing:-.04em}
.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:16px}.two-column{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);gap:16px;align-items:start}.grid-stack{display:grid;gap:16px}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.wide{grid-column:1/-1}label{display:flex;flex-direction:column;gap:6px;color:var(--text);font-size:12px;font-weight:650}label.checkbox{flex-direction:row;align-items:center}input,select,textarea{width:100%;min-height:40px;padding:9px 11px;border:1px solid var(--line-strong)!important;border-radius:8px;background:var(--panel)!important;color:var(--text)!important;outline:0}textarea{resize:vertical}input:focus,select:focus,textarea:focus{border-color:var(--primary)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 12%,transparent)}fieldset{border:1px solid var(--line);border-radius:10px;padding:14px}
button,.button{min-height:38px;padding:8px 13px;display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid transparent;border-radius:8px;background:var(--primary);color:#fff;font-size:12px;font-weight:700;box-shadow:none;cursor:pointer}button:hover,.button:hover{background:var(--primary-2);color:#fff}.button.secondary,.ghost-button,.quick-links a,.tiny-button{background:var(--panel)!important;color:var(--text)!important;border:1px solid var(--line-strong)!important}.button.secondary:hover,.ghost-button:hover,.tiny-button:hover{background:var(--panel-2)!important}.danger-button,.danger{background:var(--danger)!important;color:#fff!important}.full{width:100%}.button-row,.badge-row,.account-actions,.permission-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.badge-row span,.badge,.status-chip,.permission-row span{padding:4px 8px;border:1px solid var(--line);border-radius:999px;background:var(--panel-2);color:var(--muted);font-size:11px;font-weight:650}.status-chip{display:inline-flex;text-transform:capitalize}.status-good{color:var(--success);background:color-mix(in srgb,var(--success) 8%,var(--panel))}.status-warn{color:var(--warning)}.text-danger{color:var(--danger)!important}.muted{color:var(--muted)}
.alert{padding:12px 14px;margin-bottom:16px;border:1px solid var(--line);border-radius:9px;box-shadow:none;font-weight:600}.alert.success{background:color-mix(in srgb,var(--success) 8%,var(--panel));color:var(--success);border-color:color-mix(in srgb,var(--success) 24%,var(--line))}.alert.error{background:color-mix(in srgb,var(--danger) 8%,var(--panel));color:var(--danger);border-color:color-mix(in srgb,var(--danger) 24%,var(--line))}
.table-wrap{overflow:auto;margin-inline:-4px}table{width:100%;border-collapse:separate;border-spacing:0}th,td{padding:12px;border-bottom:1px solid var(--line);text-align:start;vertical-align:middle}th{background:var(--panel-2);color:var(--muted);font-size:10px;font-weight:750;letter-spacing:.06em;text-transform:uppercase}tbody tr:hover td{background:color-mix(in srgb,var(--primary) 2.5%,var(--panel))}td small{color:var(--muted)}
.subpanel{padding:0;border:1px solid var(--line);border-radius:10px;background:var(--panel-2);margin-top:15px}.subpanel>summary{padding:14px 16px;cursor:pointer;font-weight:700}.subpanel[open]>summary{border-bottom:1px solid var(--line)}.subpanel>p,.subpanel>form{margin:16px}.connection-panel{grid-template-columns:minmax(260px,.75fr) minmax(420px,1.25fr)}
.pipeline-board{grid-template-columns:repeat(6,minmax(240px,1fr));gap:10px}.pipeline-column{padding:10px;background:var(--panel-2);border:1px solid var(--line);border-radius:10px}.deal-card{padding:13px;border:1px solid var(--line);border-radius:9px;background:var(--panel);box-shadow:0 1px 2px rgba(16,24,40,.04)}.deal-card:hover{transform:none;border-color:var(--primary)}
.briefing-hero{padding:24px;border:1px solid var(--line);border-radius:12px;background:var(--panel);box-shadow:var(--shadow)}.briefing-hero span{color:var(--primary)}.briefing-hero h2{font-size:28px}.section-title{margin:26px 0 12px;color:var(--muted);font-size:10px}.diagnosis,.action-list a,.coverage-grid>div,.command-action-card{border-radius:10px;background:var(--panel);border-color:var(--line)}.diagnosis>span{background:var(--muted)}.diagnosis.warning>span{background:var(--warning)}.diagnosis.positive>span{background:var(--success)}.action-list a>span{background:color-mix(in srgb,var(--primary) 10%,var(--panel));color:var(--primary)}.action-list a>small{color:var(--primary)}.bar-row>div{background:var(--panel-2)}.bar-row i{background:var(--primary)}

/* Command OS */
.nova-command{display:flex;flex-direction:column;gap:14px}.nova-command-top{padding:0 0 6px;display:flex;align-items:flex-start;justify-content:space-between;gap:20px;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important}.nova-command-top h1{font-size:28px;line-height:1.2;letter-spacing:-.04em;margin-bottom:7px}.nova-command-top p{max-width:820px;font-size:14px}.nova-top-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.pill-live{background:color-mix(in srgb,var(--success) 8%,var(--panel));color:var(--success);border:1px solid color-mix(in srgb,var(--success) 25%,var(--line))}.pill-live span{width:6px;height:6px;background:var(--success);box-shadow:none}
.nova-metrics{display:grid;grid-template-columns:repeat(6,minmax(120px,1fr));gap:10px}.nova-metrics>div{min-height:92px;padding:14px;border-radius:10px;background:var(--panel);border:1px solid var(--line);box-shadow:none;backdrop-filter:none}.nova-metrics span,.nova-metrics small{font-size:10px;letter-spacing:.03em;text-transform:none}.nova-metrics strong{font-size:24px;margin:7px 0 3px}
.nova-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:14px;align-items:start}.nova-chat-card{padding:0!important;gap:0;overflow:hidden;min-height:calc(100vh - 240px)}.chat-card-head{padding:17px 18px;border-bottom:1px solid var(--line);align-items:flex-start}.chat-card-head h2{font-size:16px}.chat-card-head p{font-size:12px}.mode-switcher{padding:3px;border-radius:8px;background:var(--panel-2)!important;border:1px solid var(--line)}.mode-switcher .mode-pill,.mode-list button{min-height:32px;padding:6px 9px;border-radius:6px;font-size:11px;background:transparent;color:var(--muted)}.mode-switcher .mode-pill.active,.mode-list button.active{background:var(--panel);color:var(--text);border:1px solid var(--line);box-shadow:0 1px 2px rgba(16,24,40,.06)}
.voice-command-strip{margin:12px 14px 0;padding:10px 12px;border-radius:8px;background:var(--panel-2);border:1px solid var(--line)}.voice-orb-mini{width:28px;height:28px;border-radius:50%;background:var(--primary);box-shadow:none}.voice-orb-mini:after{inset:9px;background:#fff}.nova-chat-window{min-height:420px;height:calc(100vh - 475px);padding:20px;border:0;border-radius:0;background:var(--panel-2)!important}.nova-message{gap:9px;margin-bottom:15px}.nova-message-user{margin-left:16%}.nova-message-ai{margin-right:16%}.nova-avatar{width:30px;height:30px;border-radius:8px;font-size:11px}.nova-avatar.user{background:#344054}.nova-avatar.ai{background:var(--primary);color:#fff;box-shadow:none}.nova-bubble{padding:11px 13px;border-radius:10px;line-height:1.55}.nova-bubble.user-bubble{background:color-mix(in srgb,var(--primary) 9%,var(--panel));border-color:color-mix(in srgb,var(--primary) 22%,var(--line))}.nova-bubble.ai-bubble,:root[data-theme="dark"] .nova-bubble.ai-bubble{background:var(--panel);border-color:var(--line)}.bubble-meta{font-size:10px!important;margin-bottom:6px}.bubble-tools{margin-top:8px}
.nova-empty-state{padding:36px 20px}.empty-orb{width:52px;height:52px;border-radius:13px;margin-bottom:14px;background:var(--primary);color:#fff;font-size:22px;box-shadow:none}.nova-empty-state h2{font-size:22px}.starter-prompts button,.composer-quick-row button,.tiny-button{padding:6px 9px;border-radius:6px;font-size:11px}
.nova-composer{padding:13px;border:0;border-top:1px solid var(--line);border-radius:0;background:var(--panel)!important;box-shadow:none;backdrop-filter:none;gap:9px}.composer-toolbar{grid-template-columns:1fr 145px 115px 160px}.composer-toolbar input,.composer-toolbar select{height:36px;min-height:36px}.composer-input-row{grid-template-columns:42px 1fr 80px;gap:8px}.composer-input-row textarea{min-height:62px;padding:11px;border-radius:9px;font-size:14px;background:var(--panel)!important}.mic-orb,.send-orb{min-height:42px;border-radius:8px}.mic-orb{background:var(--panel-2);color:var(--primary);border:1px solid var(--line);font-size:18px}.send-orb{background:var(--primary);color:#fff}.business-context-drawer{padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:var(--panel-2)}.business-context-drawer summary{color:var(--text);font-size:11px}
.nova-right-panel{gap:12px;top:84px;max-height:calc(100vh - 104px)}.operator-card,.nova-tool-card{padding:16px!important}.operator-ring{width:44px;height:44px;margin-bottom:12px;border-radius:11px;background:var(--primary);color:#fff;box-shadow:none}.operator-ring span{font-size:14px}.mode-list{gap:5px}.mode-list button{text-align:left;border:1px solid var(--line);background:var(--panel-2)}.nova-tool-grid{gap:6px}.nova-tool-grid a,.inline-run button,.data-row{padding:9px!important;border-radius:8px!important;background:var(--panel-2)!important;border:1px solid var(--line)!important}.nova-tool-grid a:hover,.inline-run button:hover,.data-row:hover{transform:none;border-color:var(--primary)!important;background:var(--panel)!important}
.human-voice-stage{min-height:380px;border-radius:0;border:0;background:var(--panel-2)!important}.human-orb-wrap{width:130px;height:130px}.human-orb{width:96px;height:96px;border-radius:50%;background:var(--primary);box-shadow:0 0 0 12px color-mix(in srgb,var(--primary) 9%,transparent)}.human-orb:after{background:var(--primary)}.human-orb span{color:#fff;text-shadow:none}.human-rings,.human-rings:before,.human-rings:after{border-radius:50%;border-color:color-mix(in srgb,var(--primary) 22%,transparent)}.human-stage-copy h2{font-size:27px}.voice-lang-pill,.listen-main{border-radius:8px}.voice-lang-pill.active,.listen-main{background:var(--primary);color:#fff;box-shadow:none}

/* Meta ad-set planner */
.creative-stage{padding:16px;display:grid;gap:12px}.creative-row{padding:10px 12px;display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:8px}.creative-row>div{flex:1}.creative-row strong,.creative-row small{display:block}.creative-row small{color:var(--muted);font-size:10px}.ad-assembly{padding-top:12px;border-top:1px solid var(--line)}
.team-access-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,.55fr);gap:16px}.email-builder{display:flex;align-items:center;border:1px solid var(--line-strong);border-radius:8px;background:var(--panel);overflow:hidden}.email-builder:focus-within{border-color:var(--primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 12%,transparent)}.email-builder input{border:0!important;box-shadow:none!important}.email-builder span{padding:0 11px;color:var(--muted);white-space:nowrap}.permission-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.permission-picker label{padding:9px;border:1px solid var(--line);border-radius:8px;background:var(--panel-2);align-items:flex-start}.permission-picker label>span strong,.permission-picker label>span small{display:block}.permission-picker label>span small{margin-top:2px;color:var(--muted);font-size:9px}.team-policy{align-self:start}.policy-list{display:grid}.policy-list>div{padding:13px 0;border-bottom:1px solid var(--line)}.policy-list strong,.policy-list span{display:block}.policy-list span{margin-top:4px;color:var(--muted);font-size:11px}.credential-banner{margin-bottom:16px;padding:18px;display:flex;align-items:center;justify-content:space-between;gap:20px;border:1px solid color-mix(in srgb,var(--success) 28%,var(--line));border-radius:11px;background:color-mix(in srgb,var(--success) 7%,var(--panel))}.credential-banner h2,.credential-banner p{margin:0}.credential-values{display:grid;gap:7px}.credential-values code{padding:7px 10px;border:1px solid var(--line);border-radius:6px;background:var(--panel);font-size:13px}.team-member-list{display:grid}.team-member-row{padding:13px 2px;display:grid;grid-template-columns:34px minmax(170px,1fr) auto auto;align-items:center;gap:11px;border-bottom:1px solid var(--line)}.team-member-row:last-child{border:0}.team-member-row strong,.team-member-row small{display:block}.team-member-row small{margin-top:2px;color:var(--muted);font-size:10px}.member-authority-form{display:flex;align-items:center;gap:7px}.member-authority-form select{width:auto;min-height:34px}.member-authority-form details{position:relative}.member-authority-form summary{padding:7px 9px;border:1px solid var(--line);border-radius:7px;cursor:pointer;font-size:11px}.member-permissions{position:absolute;right:0;z-index:10;width:300px;padding:12px;display:grid;gap:7px;border:1px solid var(--line);border-radius:9px;background:var(--panel);box-shadow:var(--shadow)}
.adset-planner{margin-top:16px}.adset-campaigns{display:grid;gap:10px}.adset-campaign{border:1px solid var(--line);border-radius:10px;background:var(--panel-2);overflow:hidden}.adset-campaign>summary{padding:13px 15px;display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer;list-style:none}.adset-campaign>summary::-webkit-details-marker{display:none}.adset-campaign>summary span:first-child{min-width:0}.adset-campaign>summary strong,.adset-campaign>summary small{display:block}.adset-campaign>summary small{margin-top:3px;color:var(--muted);font-size:11px}.adset-campaign>summary>span:last-child{color:var(--muted);font-size:11px}.adset-content{padding:15px;border-top:1px solid var(--line);background:var(--panel)}.adset-drafts{display:grid;gap:8px;margin-bottom:12px}.adset-draft{padding:12px;display:grid;grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) auto auto;align-items:center;gap:12px;border:1px solid var(--line);border-radius:9px;background:var(--panel)}.adset-draft strong,.adset-draft small{display:block}.adset-draft small{margin-top:2px;color:var(--muted);font-size:10px}.adset-target-summary{display:flex;gap:5px;flex-wrap:wrap}.adset-target-summary span{padding:3px 6px;border-radius:4px;background:var(--panel-2);color:var(--muted);font-size:10px}.adset-publish{display:flex;align-items:center;gap:7px}.adset-form-action{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:4px}.adset-form-action p{margin:0;font-size:11px}

/* Overview */
.overview-header{margin-bottom:22px;display:flex;align-items:flex-end;justify-content:space-between;gap:20px}.overview-header h1{font-size:30px}.overview-header p{margin:0}.overview-date{color:var(--muted);font-size:12px;font-weight:600}.overview-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.kpi-card{padding:17px;background:var(--panel);border:1px solid var(--line);border-radius:11px;box-shadow:0 1px 2px rgba(16,24,40,.04)}.kpi-card header{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:11px;font-weight:650}.kpi-icon{width:28px;height:28px;display:grid;place-items:center;border-radius:7px;background:color-mix(in srgb,var(--primary) 9%,var(--panel));color:var(--primary)}.kpi-icon svg{width:15px;fill:currentColor}.kpi-card strong{display:block;margin:14px 0 3px;font-size:25px;letter-spacing:-.04em}.kpi-card small{color:var(--muted)}.overview-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(300px,.8fr);gap:16px}.overview-section{padding:0!important;overflow:hidden}.section-heading{padding:17px 19px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.section-heading h2{margin:0;font-size:15px}.section-heading a{font-size:11px;font-weight:700}.operations-list{display:grid}.operation-row{padding:14px 18px;display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:11px;border-bottom:1px solid var(--line);color:var(--text)}.operation-row:last-child{border-bottom:0}.operation-row:hover{background:var(--panel-2)}.operation-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:8px;background:var(--panel-2);color:var(--muted);font-weight:800}.operation-row strong,.operation-row small{display:block}.operation-row small{margin-top:2px;color:var(--muted);font-size:11px}.operation-row>span:last-child{color:var(--muted);font-size:11px}.health-list{padding:6px 18px}.health-row{padding:12px 0;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.health-row:last-child{border:0}.health-row span{display:flex;align-items:center;gap:8px}.health-dot{width:7px;height:7px;border-radius:50%;background:var(--success)}.health-dot.warning{background:var(--warning)}.health-row strong{font-size:11px}.quick-action-grid{padding:16px;display:grid;grid-template-columns:1fr 1fr;gap:8px}.quick-action-grid a{min-height:70px;padding:12px;display:flex;flex-direction:column;justify-content:space-between;border:1px solid var(--line);border-radius:9px;color:var(--text);font-size:12px;font-weight:700}.quick-action-grid a:hover{border-color:var(--primary);background:color-mix(in srgb,var(--primary) 3%,var(--panel))}.quick-action-grid small{color:var(--muted);font-weight:500}

@media(max-width:1280px){.nova-grid{grid-template-columns:1fr}.nova-right-panel{position:relative;top:0;max-height:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.operator-card{grid-column:1/-1}.overview-kpis{grid-template-columns:repeat(2,1fr)}}
@media(max-width:1024px){.workspace-sidebar{transform:translateX(-100%);transition:transform .2s ease}.sidebar-visible .workspace-sidebar{transform:none}.sidebar-backdrop{display:none;position:fixed;inset:0;z-index:35;background:rgba(16,24,40,.55)}.sidebar-visible .sidebar-backdrop{display:block}.workspace-main,[dir="rtl"] .workspace-main{margin:0}.sidebar-open,.sidebar-close{display:grid}.workspace-topbar{padding:0 20px}.content-area{padding:24px 20px 40px}.overview-grid,.two-column,.team-access-grid{grid-template-columns:1fr}.topbar-command{min-width:170px}.team-member-row{grid-template-columns:34px 1fr}.member-authority-form{grid-column:1/-1;flex-wrap:wrap}}
@media(max-width:760px){.workspace-topbar{height:60px;padding:0 14px}.topbar-product,.topbar-separator,.topbar-command kbd{display:none}.topbar-command{min-width:0;width:38px;padding:0;justify-content:center}.topbar-command span{display:none}.content-area{padding:18px 14px 32px}.page-header,.overview-header,.nova-command-top{flex-direction:column;align-items:flex-start}.grid-2,.form-grid,.connection-panel,.overview-kpis{grid-template-columns:1fr}.stats-grid{grid-template-columns:repeat(2,1fr)}.nova-metrics{grid-template-columns:repeat(2,1fr)}.nova-right-panel{display:flex}.chat-card-head{flex-direction:column}.mode-switcher{width:100%;overflow:auto}.composer-toolbar,.composer-input-row{grid-template-columns:1fr}.nova-message-user,.nova-message-ai{margin-left:0;margin-right:0}.overview-header h1{font-size:25px}.quick-action-grid{grid-template-columns:1fr}.pipeline-board{grid-template-columns:repeat(6,240px)}.adset-draft{grid-template-columns:1fr}.adset-form-action,.credential-banner{align-items:flex-start;flex-direction:column}.permission-picker{grid-template-columns:1fr}.member-permissions{position:fixed;inset:15% 14px auto;width:auto}}
@media(max-width:420px){.stats-grid{grid-template-columns:1fr}.nova-metrics{grid-template-columns:1fr 1fr}.workspace-sidebar{width:min(288px,88vw)}}
/* Connected operations control plane */
.operations-grid{grid-template-columns:minmax(0,1.45fr) minmax(300px,.55fr)}
.operations-grid .span-2{grid-row:span 2}.record-list.compact article{padding:12px 0}.danger-text,.text-danger{color:#dc5b61}.success-text{color:#1f9d70}.secret-block{display:block;overflow-wrap:anywhere;padding:16px;border:1px solid var(--border);border-radius:12px;background:var(--surface-muted)}
.recovery-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin:16px 0}.recovery-grid code{padding:10px;border:1px solid var(--border);border-radius:8px;text-align:center}.score-orb{width:104px;height:104px;border-radius:50%;display:grid;place-content:center;text-align:center;background:linear-gradient(145deg,var(--accent),#8d62ff);color:#fff;box-shadow:0 18px 55px color-mix(in srgb,var(--accent) 30%,transparent)}.score-orb strong{font-size:32px}.score-orb span{font-size:11px}.timeline>article{position:relative;display:grid;grid-template-columns:18px 1fr;gap:14px;padding:0 0 24px}.timeline-dot{width:12px;height:12px;border-radius:50%;background:var(--accent);margin-top:5px;box-shadow:0 0 0 5px color-mix(in srgb,var(--accent) 15%,transparent)}.timeline>article:after{content:"";position:absolute;left:5px;top:20px;bottom:0;border-left:1px solid var(--border)}.danger-zone{border-color:color-mix(in srgb,#dc5b61 40%,var(--border))}.command-toolbox{margin-top:24px}.inline-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
@media(max-width:900px){.operations-grid{grid-template-columns:1fr}.operations-grid .span-2{grid-row:auto}.score-orb{width:82px;height:82px}.recovery-grid{grid-template-columns:1fr}}

/* Wasla Atelier UI · spacious operational design system */
:root {
    --ui-sidebar:276px;
    --ui-topbar:76px;
    --ui-canvas:#f4f6fb;
    --ui-surface:#fff;
    --ui-surface-soft:#f8f9fc;
    --ui-ink:#111827;
    --ui-muted:#667085;
    --ui-border:#e3e7ef;
    --ui-border-strong:#d3d9e5;
    --ui-gold:#d6a84a;
    --ui-gold-deep:#9a6818;
    --ui-indigo:#4f46e5;
    --ui-teal:#0e9f83;
    --ui-radius-sm:12px;
    --ui-radius-md:18px;
    --ui-radius-lg:26px;
    --ui-radius-xl:34px;
    --ui-shadow-sm:0 1px 2px rgba(16,24,40,.035),0 5px 16px rgba(16,24,40,.035);
    --ui-shadow-md:0 2px 4px rgba(16,24,40,.035),0 18px 45px rgba(16,24,40,.075);
    --ui-shadow-lg:0 8px 18px rgba(16,24,40,.07),0 35px 80px rgba(16,24,40,.12);
}
:root[data-theme="dark"] {
    --ui-canvas:#090e18;
    --ui-surface:#121927;
    --ui-surface-soft:#171f2f;
    --ui-ink:#f3f5f8;
    --ui-muted:#98a2b3;
    --ui-border:#273044;
    --ui-border-strong:#354057;
    --ui-shadow-sm:0 1px 2px rgba(0,0,0,.18),0 8px 20px rgba(0,0,0,.12);
    --ui-shadow-md:0 4px 8px rgba(0,0,0,.18),0 24px 54px rgba(0,0,0,.22);
    --ui-shadow-lg:0 12px 26px rgba(0,0,0,.25),0 42px 90px rgba(0,0,0,.32);
}

html { scroll-behavior:smooth; }
body {
    background:
        radial-gradient(circle at 76% -10%,color-mix(in srgb,var(--primary) 7%,transparent),transparent 31rem),
        var(--ui-canvas)!important;
    color:var(--ui-ink);
    letter-spacing:-.005em;
}
.workspace-shell { background:transparent; }
.workspace-sidebar {
    width:var(--ui-sidebar);
    padding-bottom:12px;
    background:
        radial-gradient(circle at 5% 4%,rgba(214,168,74,.14),transparent 17rem),
        linear-gradient(180deg,#111a2a 0%,#0d1421 56%,#0a101b 100%);
    border-right:1px solid rgba(255,255,255,.075);
    box-shadow:14px 0 40px rgba(9,14,24,.08);
}
[dir="rtl"] .workspace-sidebar { border-left:1px solid rgba(255,255,255,.075); }
.sidebar-brand {
    height:84px;
    padding:19px 20px;
    border-bottom:1px solid rgba(255,255,255,.07);
}
.brand-lockup { gap:13px; }
.brand-symbol {
    width:42px;
    height:42px;
    border-radius:13px;
    background:linear-gradient(145deg,#fff4c7 0%,#d6a84a 54%,#a36e19 100%);
    color:#17130b;
    box-shadow:0 12px 30px rgba(214,168,74,.18),inset 0 1px rgba(255,255,255,.75);
}
.brand-lockup strong { font-size:17px;letter-spacing:-.025em; }
.brand-lockup small { margin-top:5px;color:#8590a4;letter-spacing:.14em; }
.workspace-switcher {
    margin:17px 14px 13px;
    padding:12px;
    grid-template-columns:38px minmax(0,1fr) 16px;
    gap:11px;
    border-color:rgba(255,255,255,.11);
    border-radius:14px;
    background:rgba(255,255,255,.055);
    box-shadow:inset 0 1px rgba(255,255,255,.035);
}
.workspace-switcher:hover { background:rgba(255,255,255,.085);border-color:rgba(214,168,74,.28); }
.workspace-avatar { width:38px;height:38px;border-radius:11px;background:linear-gradient(145deg,#5d5ce2,#3730a3); }
.workspace-switcher small { color:#7f8a9e;font-size:10px;letter-spacing:.035em; }
.workspace-switcher strong { margin-top:3px;font-size:13px; }
.primary-navigation { padding:5px 12px 24px;gap:16px; }
.nav-section { gap:4px; }
.nav-label { padding:7px 10px 5px;color:#596578;font-size:9px;letter-spacing:.18em; }
.primary-navigation a {
    height:43px;
    padding:0 11px;
    gap:11px;
    border:1px solid transparent;
    border-radius:11px;
    color:#b7c1d1!important;
    font-size:13px;
    font-weight:650;
}
.primary-navigation a svg { width:19px;height:19px;color:#7f8a9e; }
.primary-navigation a:hover { background:rgba(255,255,255,.055);border-color:rgba(255,255,255,.05); }
.primary-navigation a.active {
    background:linear-gradient(135deg,rgba(214,168,74,.2),rgba(79,70,229,.12));
    border-color:rgba(229,196,125,.17);
    color:#fff!important;
    box-shadow:inset 3px 0 #d6a84a,0 12px 25px rgba(0,0,0,.08);
}
.primary-navigation a.active svg { color:#f0ce83; }
[dir="rtl"] .primary-navigation a.active { box-shadow:inset -3px 0 #d6a84a,0 12px 25px rgba(0,0,0,.08); }
.sidebar-utilities { padding:12px 13px 12px;border-top-color:rgba(255,255,255,.07); }
.settings-menu summary { height:42px;border-radius:11px; }
.sidebar-account { grid-template-columns:38px minmax(0,1fr) 34px;gap:10px;padding:14px 6px 1px;border-top-color:rgba(255,255,255,.07); }
.user-avatar { width:38px;height:38px;background:linear-gradient(145deg,#485467,#283346); }
.sidebar-account strong { font-size:13px; }
.sidebar-account small { color:#748095;font-size:10px; }

.workspace-main { margin-left:var(--ui-sidebar); }
[dir="rtl"] .workspace-main { margin-right:var(--ui-sidebar); }
.workspace-topbar {
    height:var(--ui-topbar);
    padding:0 clamp(24px,3vw,50px);
    background:color-mix(in srgb,var(--ui-canvas) 86%,transparent);
    border-bottom:1px solid color-mix(in srgb,var(--ui-border) 82%,transparent);
    backdrop-filter:blur(22px) saturate(140%);
}
.topbar-context { gap:10px; }
.topbar-product { font-size:12px;letter-spacing:.02em; }
.topbar-context strong { font-size:13px; }
.topbar-actions { gap:10px; }
.topbar-command {
    height:42px;
    min-width:244px;
    padding:0 9px 0 13px;
    border-color:var(--ui-border);
    border-radius:12px;
    background:color-mix(in srgb,var(--ui-surface) 88%,transparent);
    box-shadow:var(--ui-shadow-sm);
}
.topbar-command:hover { border-color:color-mix(in srgb,var(--primary) 35%,var(--ui-border));box-shadow:0 0 0 4px color-mix(in srgb,var(--primary) 6%,transparent); }
.icon-button { width:40px;height:40px;border-radius:12px;background:var(--ui-surface);border-color:var(--ui-border); }
.content-area {
    max-width:1760px;
    padding:clamp(34px,3.5vw,58px) clamp(24px,3.6vw,58px) 90px;
}

h1,h2,h3,h4 { color:var(--ui-ink); }
h1 { font-size:clamp(32px,3vw,46px);line-height:1.06;letter-spacing:-.055em; }
h2 { font-size:22px;letter-spacing:-.035em; }
h3 { font-size:16px;letter-spacing:-.02em; }
p { color:var(--ui-muted);line-height:1.68; }
.eyebrow { margin-bottom:10px;color:var(--primary);font-size:10px;letter-spacing:.17em; }
.page-header { align-items:flex-end;gap:28px;margin-bottom:32px; }
.page-header p { max-width:760px;font-size:14px; }
.page-header h1 { margin-bottom:11px; }
.page-header h2 { margin-bottom:9px;font-size:24px; }

.panel,.card,.auth-card,.assistant-response,.stat,.hero-panel,.tool-card,.operator-card,.nova-chat-card,.nova-right-panel .tool-card {
    padding:clamp(22px,2vw,30px)!important;
    background:var(--ui-surface)!important;
    border:1px solid var(--ui-border)!important;
    border-radius:var(--ui-radius-lg)!important;
    box-shadow:var(--ui-shadow-md)!important;
}
.grid-2,.two-column { gap:24px;margin-bottom:24px; }
.stats-grid,.card-grid { gap:18px;margin-bottom:26px; }
.stat { min-height:132px;position:relative;overflow:hidden; }
.stat:after { content:"";position:absolute;right:-35px;top:-40px;width:110px;height:110px;border-radius:50%;background:color-mix(in srgb,var(--primary) 7%,transparent); }
.stat span { margin-bottom:14px;font-size:10px;letter-spacing:.08em;text-transform:uppercase; }
.stat strong { font-size:31px; }
.section-title { margin:46px 0 18px;color:var(--ui-muted);font-size:10px;letter-spacing:.16em; }

.form-grid { gap:20px; }
label { gap:8px;font-size:11px;font-weight:750;letter-spacing:.015em; }
label small { color:var(--ui-muted);font-weight:500;line-height:1.45; }
input,select,textarea {
    min-height:47px;
    padding:11px 13px;
    border-color:var(--ui-border-strong)!important;
    border-radius:12px;
    background:var(--ui-surface)!important;
    transition:border-color .16s,box-shadow .16s,background .16s;
}
textarea { line-height:1.6; }
input:hover,select:hover,textarea:hover { border-color:color-mix(in srgb,var(--primary) 32%,var(--ui-border-strong))!important; }
input:focus,select:focus,textarea:focus { box-shadow:0 0 0 4px color-mix(in srgb,var(--primary) 10%,transparent); }
button,.button {
    min-height:43px;
    padding:10px 16px;
    border-radius:12px;
    font-size:12px;
    box-shadow:0 6px 14px color-mix(in srgb,var(--primary) 16%,transparent);
    transition:transform .16s,box-shadow .16s,background .16s,border-color .16s;
}
button:hover,.button:hover { transform:translateY(-1px);box-shadow:0 10px 22px color-mix(in srgb,var(--primary) 20%,transparent); }
.button.secondary,.ghost-button,.quick-links a,.tiny-button { background:var(--ui-surface)!important;border-color:var(--ui-border-strong)!important;box-shadow:var(--ui-shadow-sm); }
.button.secondary:hover,.ghost-button:hover,.tiny-button:hover { border-color:color-mix(in srgb,var(--primary) 28%,var(--ui-border-strong))!important;background:var(--ui-surface-soft)!important; }
.button-row { gap:10px; }
.badge-row span,.badge,.status-chip,.permission-row span { padding:5px 10px;border-radius:999px; }
.alert { padding:15px 18px;margin-bottom:22px;border-radius:14px; }

.table-wrap { margin-inline:0;border:1px solid var(--ui-border);border-radius:16px; }
table { overflow:hidden; }
th,td { padding:15px 17px; }
th { height:44px;background:var(--ui-surface-soft);font-size:9px;letter-spacing:.1em; }
tbody tr:last-child td { border-bottom:0; }
tbody tr:hover td { background:color-mix(in srgb,var(--primary) 3.5%,var(--ui-surface)); }
.subpanel { margin-top:20px;border-radius:16px;background:var(--ui-surface-soft); }
.subpanel>summary { padding:17px 19px; }

/* Executive overview */
.overview-header {
    margin-bottom:26px;
    padding:34px 36px;
    align-items:flex-end;
    border:1px solid var(--ui-border);
    border-radius:var(--ui-radius-xl);
    background:
        radial-gradient(circle at 91% 10%,color-mix(in srgb,var(--ui-gold) 18%,transparent),transparent 15rem),
        linear-gradient(135deg,var(--ui-surface),color-mix(in srgb,var(--ui-surface-soft) 92%,var(--primary)));
    box-shadow:var(--ui-shadow-md);
}
.overview-header h1 { font-size:clamp(34px,3.3vw,50px);margin-bottom:12px; }
.overview-header p { max-width:740px;font-size:15px; }
.overview-date { padding:8px 12px;border:1px solid var(--ui-border);border-radius:999px;background:color-mix(in srgb,var(--ui-surface) 78%,transparent);font-size:11px; }
.overview-kpis { gap:18px;margin-bottom:24px; }
.kpi-card {
    min-height:150px;
    padding:22px 23px;
    border-radius:20px;
    background:var(--ui-surface);
    border-color:var(--ui-border);
    box-shadow:var(--ui-shadow-sm);
    transition:transform .18s,box-shadow .18s,border-color .18s;
}
.kpi-card:hover { transform:translateY(-3px);border-color:color-mix(in srgb,var(--primary) 24%,var(--ui-border));box-shadow:var(--ui-shadow-md); }
.kpi-card header { font-size:10px;letter-spacing:.035em;text-transform:uppercase; }
.kpi-icon { width:38px;height:38px;border-radius:12px; }
.kpi-icon svg { width:18px; }
.kpi-card strong { margin:21px 0 5px;font-size:32px; }
.overview-grid { grid-template-columns:minmax(0,1.55fr) minmax(330px,.72fr);gap:24px; }
.overview-section { padding:0!important; }
.section-heading { padding:23px 25px; }
.section-heading h2 { font-size:18px; }
.operation-row { padding:17px 24px;grid-template-columns:42px minmax(0,1fr) auto;gap:14px; }
.operation-icon { width:40px;height:40px;border-radius:12px; }
.health-list { padding:8px 24px; }
.health-row { padding:15px 0; }
.quick-action-grid { padding:22px;gap:12px; }
.quick-action-grid a { min-height:92px;padding:15px;border-radius:14px; }

/* Reports and operating screens */
.briefing-hero {
    padding:38px 40px;
    border-radius:var(--ui-radius-xl);
    border-color:var(--ui-border);
    background:
        radial-gradient(circle at 88% 0%,color-mix(in srgb,var(--ui-gold) 17%,transparent),transparent 18rem),
        linear-gradient(145deg,var(--ui-surface),var(--ui-surface-soft));
    box-shadow:var(--ui-shadow-md);
}
.briefing-hero h2 { max-width:900px;font-size:clamp(28px,3vw,42px);line-height:1.12;letter-spacing:-.05em; }
.diagnosis,.action-list a,.coverage-grid>div,.command-action-card { padding:20px;border-radius:18px;box-shadow:var(--ui-shadow-sm); }
.action-list { gap:12px; }
.coverage-grid { gap:16px; }
.pipeline-board { gap:16px; }
.pipeline-column { padding:15px;border-radius:18px; }
.deal-card { padding:16px;border-radius:14px;box-shadow:var(--ui-shadow-sm); }

/* Command OS cockpit */
.nova-command { gap:24px; }
.nova-command-top {
    position:relative;
    isolation:isolate;
    overflow:hidden;
    padding:34px 36px!important;
    align-items:center;
    border:1px solid var(--ui-border)!important;
    border-radius:var(--ui-radius-xl)!important;
    background:
        radial-gradient(circle at 86% 4%,rgba(214,168,74,.24),transparent 18rem),
        radial-gradient(circle at 68% 112%,color-mix(in srgb,var(--primary) 16%,transparent),transparent 22rem),
        linear-gradient(135deg,var(--ui-surface),var(--ui-surface-soft))!important;
    box-shadow:var(--ui-shadow-md)!important;
}
.nova-command-top:after { content:"و";position:absolute;right:27%;top:-45px;z-index:-1;color:color-mix(in srgb,var(--primary) 5%,transparent);font-size:190px;font-weight:900;line-height:1;transform:rotate(-9deg); }
.nova-command-top h1 { margin-bottom:12px;font-size:clamp(37px,3.7vw,57px);line-height:1;letter-spacing:-.065em; }
.nova-command-top p { max-width:840px;font-size:15px; }
.nova-top-actions { gap:10px; }
.pill-live { border-radius:999px;box-shadow:none; }
.pill-live span { width:8px;height:8px;box-shadow:0 0 0 5px color-mix(in srgb,var(--success) 12%,transparent); }
.nova-metrics { gap:14px; }
.nova-metrics>div {
    min-height:122px;
    padding:19px 20px;
    position:relative;
    overflow:hidden;
    border-radius:19px;
    background:var(--ui-surface);
    border-color:var(--ui-border);
    box-shadow:var(--ui-shadow-sm);
}
.nova-metrics>div:after { content:"";position:absolute;right:-24px;bottom:-30px;width:76px;height:76px;border-radius:50%;background:color-mix(in srgb,var(--primary) 6%,transparent); }
.nova-metrics>div:nth-child(1):after,.nova-metrics>div:nth-child(5):after { background:rgba(214,168,74,.11); }
.nova-metrics>div:nth-child(2):after,.nova-metrics>div:nth-child(6):after { background:rgba(14,159,131,.09); }
.nova-metrics span,.nova-metrics small { font-size:9px;letter-spacing:.09em;text-transform:uppercase; }
.nova-metrics strong { margin:11px 0 5px;font-size:31px; }
.nova-grid { grid-template-columns:minmax(0,1fr) 366px;gap:24px; }
.nova-chat-card { min-height:calc(100vh - 250px);padding:0!important;gap:0;border-radius:30px!important;overflow:hidden; }
.chat-card-head { padding:25px 27px 21px;border-bottom:1px solid var(--ui-border);align-items:center; }
.chat-card-head h2 { margin-bottom:6px;font-size:21px; }
.chat-card-head p { max-width:710px;font-size:12px;line-height:1.55; }
.mode-switcher { padding:5px;border-radius:13px;background:var(--ui-surface-soft)!important;border-color:var(--ui-border); }
.mode-switcher .mode-pill,.mode-list button { min-height:36px;padding:8px 12px;border-radius:9px;font-size:11px; }
.mode-switcher .mode-pill.active,.mode-list button.active { border-color:var(--ui-border);box-shadow:var(--ui-shadow-sm); }
.voice-command-strip { margin:16px 18px 0;padding:13px 15px;border-radius:14px;background:linear-gradient(135deg,color-mix(in srgb,var(--ui-teal) 7%,var(--ui-surface-soft)),var(--ui-surface-soft)); }
.voice-orb-mini { width:36px;height:36px;border-radius:12px;background:linear-gradient(145deg,#f0ce83,#c58e2a); }
.voice-orb-mini:after { inset:11px; }
.voice-command-strip .button { margin-left:auto; }
.nova-chat-window {
    min-height:500px;
    height:calc(100vh - 505px);
    padding:28px;
    border:0;
    border-radius:0;
    background:
        linear-gradient(color-mix(in srgb,var(--ui-surface-soft) 92%,transparent),color-mix(in srgb,var(--ui-surface-soft) 92%,transparent)),
        radial-gradient(circle at 50% 20%,color-mix(in srgb,var(--primary) 6%,transparent),transparent 22rem)!important;
}
.nova-message { gap:12px;margin-bottom:22px; }
.nova-message-user { margin-left:18%; }
.nova-message-ai { margin-right:11%; }
.nova-avatar { width:38px;height:38px;border-radius:13px;box-shadow:var(--ui-shadow-sm); }
.nova-avatar.ai { background:linear-gradient(145deg,#f3d792,#c78f29);color:#16120a; }
.nova-bubble { padding:15px 18px;border-radius:18px;line-height:1.66;box-shadow:var(--ui-shadow-sm); }
.nova-bubble.user-bubble { border-radius:18px 5px 18px 18px; }
.nova-bubble.ai-bubble,:root[data-theme="dark"] .nova-bubble.ai-bubble { border-radius:5px 18px 18px 18px;background:var(--ui-surface); }
.bubble-meta { margin-bottom:8px;font-size:9px!important;letter-spacing:.04em; }
.nova-empty-state { padding:64px 24px; }
.empty-orb { width:74px;height:74px;margin-bottom:23px;border-radius:24px;background:linear-gradient(145deg,#f5d98d,#c38621);box-shadow:0 20px 45px rgba(190,132,28,.21); }
.nova-empty-state h2 { font-size:30px; }
.starter-prompts { justify-content:center;margin-top:18px; }
.starter-prompts button,.composer-quick-row button,.tiny-button { padding:8px 11px;border-radius:9px;font-size:10px; }
.nova-composer {
    margin:0;
    padding:18px 20px 20px;
    gap:12px;
    border:0;
    border-top:1px solid var(--ui-border);
    border-radius:0;
    background:var(--ui-surface)!important;
    box-shadow:0 -14px 35px rgba(16,24,40,.035);
}
.composer-toolbar { grid-template-columns:1fr 160px 130px 190px;gap:10px; }
.composer-toolbar input,.composer-toolbar select { height:42px;min-height:42px; }
.composer-input-row { grid-template-columns:48px 1fr 94px;gap:10px; }
.composer-input-row textarea { min-height:72px;padding:14px 16px;border-radius:15px;font-size:14px;background:var(--ui-surface-soft)!important; }
.mic-orb,.send-orb { min-height:48px;border-radius:14px; }
.mic-orb { background:var(--ui-surface-soft);color:var(--primary);border:1px solid var(--ui-border);font-size:19px;box-shadow:none; }
.send-orb { background:linear-gradient(135deg,var(--primary),color-mix(in srgb,var(--primary) 75%,#111827)); }
.business-context-drawer { padding:11px 13px;border-radius:13px;background:var(--ui-surface-soft); }
.nova-right-panel { gap:18px;top:100px;max-height:calc(100vh - 120px);padding-right:3px; }
.operator-card,.nova-tool-card { padding:23px!important; }
.operator-ring { width:58px;height:58px;margin-bottom:17px;border-radius:18px;background:linear-gradient(145deg,#f1d185,#bd7f1e);color:#17130b;box-shadow:0 15px 35px rgba(193,132,27,.2); }
.operator-ring span { font-size:16px; }
.operator-card h3,.nova-tool-card h3 { font-size:17px; }
.mode-list { gap:8px;margin:16px 0; }
.mode-list button { padding:11px 12px;text-align:left;border-radius:11px;background:var(--ui-surface-soft); }
.nova-tool-grid { gap:9px; }
.nova-tool-grid a,.inline-run button,.data-row { padding:13px!important;border-radius:12px!important;background:var(--ui-surface-soft)!important;border-color:var(--ui-border)!important; }
.nova-tool-grid a:hover,.inline-run button:hover,.data-row:hover { transform:translateY(-2px);border-color:color-mix(in srgb,var(--primary) 30%,var(--ui-border))!important;box-shadow:var(--ui-shadow-sm); }
.command-queue { padding:27px!important; }
.command-action-grid { gap:16px; }
.command-bottom-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-top:28px; }
.command-toolbox { margin-top:0; }
.command-toolbox .page-header { align-items:flex-start;margin-bottom:26px; }
.command-vault { position:relative;overflow:hidden; }
.command-vault:after { content:"";position:absolute;right:-55px;top:-55px;width:180px;height:180px;border-radius:50%;background:color-mix(in srgb,var(--ui-gold) 8%,transparent);pointer-events:none; }
.vault-mark { width:48px;height:48px;display:grid;place-items:center;flex:0 0 auto;border-radius:16px;background:color-mix(in srgb,var(--ui-gold) 13%,var(--ui-surface));color:var(--ui-gold-deep);font-size:22px; }

/* Website Studio */
.studio-page-header { margin-bottom:34px; }
.studio-page-header>div:first-child { max-width:900px; }
.studio-layout { display:grid;grid-template-columns:minmax(360px,440px) minmax(0,1fr);gap:30px;align-items:start; }
.studio-control-panel {
    overflow:hidden;
    border:1px solid var(--ui-border);
    border-radius:var(--ui-radius-lg);
    background:var(--ui-surface);
    box-shadow:var(--ui-shadow-md);
}
.studio-panel-intro {
    padding:21px 23px;
    display:grid;
    grid-template-columns:42px minmax(0,1fr) auto;
    gap:13px;
    align-items:center;
    border-bottom:1px solid var(--ui-border);
    background:linear-gradient(135deg,var(--ui-surface-soft),var(--ui-surface));
}
.studio-step { width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:#111827;color:#fff;font-size:10px;font-weight:800;letter-spacing:.08em; }
:root[data-theme="dark"] .studio-step { background:#e9edf5;color:#111827; }
.studio-panel-intro strong,.studio-panel-intro small { display:block; }
.studio-panel-intro strong { font-size:13px; }
.studio-panel-intro small { margin-top:4px;color:var(--ui-muted);font-size:10px;line-height:1.35; }
.studio-form-section { padding:25px 24px 27px;border-bottom:1px solid var(--ui-border); }
.studio-form-section>header { margin-bottom:20px;display:flex;justify-content:space-between;align-items:baseline;gap:14px; }
.studio-form-section>header span { font-size:15px;font-weight:800;letter-spacing:-.02em; }
.studio-form-section>header small { color:var(--ui-muted);font-size:9px;text-align:right; }
.studio-form-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px; }
.color-field>span { min-height:47px;padding:6px 9px;display:flex;align-items:center;gap:9px;border:1px solid var(--ui-border-strong);border-radius:12px;background:var(--ui-surface); }
.color-field input[type="color"] { width:35px;height:33px;min-height:33px;padding:2px;border:0!important;border-radius:8px; }
.color-field small { color:var(--ui-muted); }
.studio-upload-zone { padding:17px;display:grid;gap:14px;border:1px dashed color-mix(in srgb,var(--primary) 32%,var(--ui-border));border-radius:15px;background:color-mix(in srgb,var(--primary) 3%,var(--ui-surface-soft)); }
.studio-upload-zone>div strong,.studio-upload-zone>div small { display:block; }
.studio-upload-zone>div small { margin-top:4px;color:var(--ui-muted);font-size:10px; }
.studio-toggle { padding:14px 15px;gap:12px;border:1px solid var(--ui-border);border-radius:14px;background:var(--ui-surface-soft); }
.studio-toggle input { width:18px;min-height:18px; }
.studio-toggle span strong,.studio-toggle span small { display:block; }
.studio-toggle span small { margin-top:4px; }
.studio-save-bar {
    position:sticky;
    bottom:0;
    z-index:3;
    padding:18px 22px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:14px;
    background:color-mix(in srgb,var(--ui-surface) 92%,transparent);
    backdrop-filter:blur(18px);
    box-shadow:0 -12px 28px rgba(16,24,40,.055);
}
.studio-save-bar span strong,.studio-save-bar span small { display:block; }
.studio-save-bar span strong { font-size:11px; }
.studio-save-bar span small { margin-top:3px;color:var(--ui-muted);font-size:9px; }
.studio-save-bar button { white-space:nowrap; }
.studio-preview-panel { position:sticky;top:calc(var(--ui-topbar) + 20px);min-width:0; }
.studio-preview-meta { padding:0 4px 13px;display:flex;align-items:center;justify-content:space-between;gap:18px; }
.studio-preview-meta>div { display:flex;align-items:center;gap:8px; }
.studio-preview-meta strong { font-size:11px;text-transform:uppercase;letter-spacing:.08em; }
.studio-preview-meta small { color:var(--ui-muted);font-size:10px; }
.studio-preview-meta>span { padding:5px 9px;border:1px solid var(--ui-border);border-radius:999px;color:var(--ui-muted);font-size:9px;letter-spacing:.08em; }
.pulse-dot { width:8px;height:8px;border-radius:50%;background:var(--ui-teal);box-shadow:0 0 0 5px color-mix(in srgb,var(--ui-teal) 12%,transparent); }
.studio-browser { padding:10px;overflow:hidden;border:1px solid rgba(255,255,255,.085);border-radius:28px;background:linear-gradient(145deg,#121a29,#080d16);box-shadow:var(--ui-shadow-lg); }
.studio-browser-bar { height:50px;padding:0 10px;display:grid;grid-template-columns:74px minmax(0,1fr) 34px;align-items:center;gap:12px; }
.browser-lights { display:flex;gap:7px; }
.browser-lights i { width:9px;height:9px;border-radius:50%;background:#fb7185; }
.browser-lights i:nth-child(2) { background:#fbbf24; }
.browser-lights i:nth-child(3) { background:#4ade80; }
.studio-browser-url { height:30px;padding:0 12px;display:flex;align-items:center;justify-content:center;gap:7px;overflow:hidden;border:1px solid rgba(255,255,255,.075);border-radius:9px;background:rgba(255,255,255,.055);color:#8f9bad;font-size:10px;text-overflow:ellipsis;white-space:nowrap; }
.studio-browser-url span { color:#667085;font-size:14px; }
.studio-browser-bar>a { width:31px;height:31px;display:grid;place-items:center;border-radius:9px;color:#b6c0ce;background:rgba(255,255,255,.055); }
.studio-browser iframe { width:100%;height:calc(100vh - 196px);min-height:680px;display:block;border:0;border-radius:18px;background:white; }
.studio-preview-note { max-width:700px;margin:14px auto 0;text-align:center;font-size:10px;line-height:1.5; }

@media(max-width:1450px) {
    .nova-metrics { grid-template-columns:repeat(3,minmax(130px,1fr)); }
    .nova-grid { grid-template-columns:minmax(0,1fr) 340px; }
    .studio-layout { grid-template-columns:390px minmax(0,1fr); }
}
@media(max-width:1280px) {
    .nova-grid { grid-template-columns:1fr; }
    .nova-right-panel { position:relative;top:0;max-height:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr)); }
    .operator-card { grid-column:1/-1; }
}
@media(max-width:1140px) {
    .studio-layout { grid-template-columns:1fr; }
    .studio-control-panel { order:2; }
    .studio-preview-panel { position:relative;top:0;order:1; }
    .studio-browser iframe { height:70vh;min-height:600px; }
}
@media(max-width:1024px) {
    .workspace-sidebar { width:276px; }
    [dir="rtl"] .workspace-sidebar { transform:translateX(100%); }
    [dir="rtl"] .sidebar-visible .workspace-sidebar { transform:none; }
    .workspace-main,[dir="rtl"] .workspace-main { margin:0; }
    .content-area { padding:32px 24px 64px; }
    .overview-grid,.command-bottom-grid { grid-template-columns:1fr; }
}
@media(max-width:760px) {
    :root { --ui-topbar:64px; }
    .topbar-command { min-width:0;width:42px;padding:0;justify-content:center; }
    .topbar-command span,.topbar-command kbd { display:none; }
    .content-area { padding:24px 15px 50px; }
    .page-header,.overview-header,.nova-command-top { align-items:flex-start; }
    .page-header { margin-bottom:25px; }
    .overview-header,.nova-command-top { padding:27px 24px!important;border-radius:24px!important; }
    .overview-kpis { gap:12px; }
    .kpi-card { min-height:132px;padding:18px; }
    .nova-metrics { grid-template-columns:repeat(2,1fr);gap:10px; }
    .nova-metrics>div { min-height:108px;padding:16px; }
    .nova-right-panel { display:flex; }
    .chat-card-head { padding:21px;align-items:flex-start; }
    .nova-chat-window { height:auto;min-height:480px;padding:20px 14px; }
    .nova-message-user,.nova-message-ai { margin-left:0;margin-right:0; }
    .composer-toolbar,.composer-input-row { grid-template-columns:1fr; }
    .nova-composer { padding:16px; }
    .studio-form-section { padding:22px 18px; }
    .studio-control-panel { order:1; }
    .studio-preview-panel { order:2; }
    .studio-form-grid { grid-template-columns:1fr; }
    .studio-form-grid .wide { grid-column:auto; }
    .studio-panel-intro { grid-template-columns:42px 1fr; }
    .studio-panel-intro>.status-chip { grid-column:2;justify-self:start; }
    .studio-save-bar { align-items:flex-start;flex-direction:column; }
    .studio-save-bar button { width:100%; }
    .studio-browser { padding:7px;border-radius:20px; }
    .studio-browser-bar { grid-template-columns:62px minmax(0,1fr) 31px;gap:7px; }
    .studio-browser iframe { min-height:540px;border-radius:14px; }
}

/* Wasla connected operating-system experience */
:root {
    --os-bg:#f3f1ec;
    --os-paper:#fbfaf7;
    --os-paper-2:#f6f4ef;
    --os-ink:#15181d;
    --os-muted:#667085;
    --os-rule:#d9d6ce;
    --os-rule-dark:#bbb6aa;
    --os-gold:#a87926;
    --os-gold-soft:#ead8af;
    --os-navy:#111722;
    --os-green:#177d64;
    --os-red:#b34538;
    --os-amber:#a56b18;
    --os-shadow:0 18px 55px rgba(30,34,42,.075);
}
:root[data-theme="dark"] {
    --os-bg:#0d1015;
    --os-paper:#151920;
    --os-paper-2:#11151b;
    --os-ink:#f3f1ec;
    --os-muted:#98a2b3;
    --os-rule:#2c333d;
    --os-rule-dark:#46505e;
    --os-gold:#d1a34d;
    --os-gold-soft:#4b3a1c;
    --os-navy:#090c11;
    --os-green:#48b99a;
    --os-red:#ef7a6c;
    --os-amber:#e6aa4f;
    --os-shadow:0 20px 65px rgba(0,0,0,.28);
}
html { background:var(--os-bg);scroll-padding-top:80px; }
body { background:var(--os-bg);color:var(--os-ink); }
.nova-shell { min-height:100dvh;background:var(--os-bg); }
.nova-sidebar {
    width:276px;
    flex:0 0 276px;
    padding:22px 18px 18px;
    gap:18px;
    background:var(--os-navy);
    border:0;
    border-inline-end:1px solid rgba(255,255,255,.08);
    box-shadow:none;
    z-index:80;
}
.nova-brand { min-height:52px;padding:0 5px; }
.nova-brand .brand-mark { width:38px;height:38px;border-radius:10px;background:#c79a43;color:#10151d;box-shadow:none;font-size:17px; }
.nova-brand .brand { font-size:18px;letter-spacing:-.02em;color:#fff; }
.nova-brand span { display:block;margin-top:2px;color:#778395;font-size:8px;letter-spacing:.17em; }
.mobile-nav-close { display:none;margin-inline-start:auto;padding:5px 10px;background:transparent;box-shadow:none;color:#fff;font-size:24px; }
.workspace-chip {
    display:grid!important;
    grid-template-columns:1fr auto;
    gap:4px 10px;
    padding:13px 14px!important;
    border:1px solid #2c3542;
    border-radius:10px!important;
    background:#161d28;
    color:#fff!important;
}
.workspace-chip span { grid-column:1/-1;color:#788596;font-size:9px;text-transform:uppercase;letter-spacing:.1em; }
.workspace-chip strong { min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px; }
.workspace-chip b { color:#9ba6b6;font-size:9px;text-transform:uppercase;letter-spacing:.08em; }
.outcome-nav { display:flex;flex-direction:column;gap:5px; }
.outcome-home,.outcome-group summary {
    min-height:46px;
    display:grid;
    grid-template-columns:28px 1fr auto;
    align-items:center;
    gap:10px;
    padding:9px 10px!important;
    border:1px solid transparent;
    border-radius:8px!important;
    color:#b8c0cc!important;
    cursor:pointer;
    list-style:none;
}
.outcome-home::-webkit-details-marker,.outcome-group summary::-webkit-details-marker { display:none; }
.outcome-home>b,.outcome-group summary>b {
    width:27px;height:27px;display:grid;place-items:center;border:1px solid #374150;border-radius:7px;
    color:#8d99aa;font-size:8px;letter-spacing:.03em;
}
.outcome-home span { display:grid;gap:2px; }
.outcome-home strong,.outcome-group summary span { color:inherit;font-size:11px;font-weight:800; }
.outcome-home small { color:#707c8c;font-size:8px;font-weight:500; }
.outcome-home:hover,.outcome-home.active,.outcome-group[open]>summary,.outcome-group summary:hover { background:#1a2230;color:#fff!important;border-color:#303b4a; }
.outcome-home.active { border-inline-end:2px solid var(--os-gold); }
.outcome-home.active>b,.outcome-group[open]>summary>b { border-color:#8a682e;color:#e2bc70;background:#2b251a; }
.outcome-group summary i { color:#667384;font-size:15px;font-style:normal;font-weight:400;transition:transform .18s ease; }
.outcome-group[open] summary i { transform:rotate(45deg);color:#c9a258; }
.outcome-group>div { margin:2px 0 6px 46px;padding:4px 0 4px 12px;border-inline-start:1px solid #303946;display:grid;gap:1px; }
.outcome-group>div a { padding:7px 8px!important;border-radius:5px!important;color:#7f8b9b!important;font-size:10px;font-weight:650; }
.outcome-group>div a:hover,.outcome-group>div a.active { color:#fff!important;background:#1b2430; }
.nova-footer { gap:7px; }
.nova-footer .ghost-button,.nova-footer .logout-form button { min-height:34px;padding:7px 10px;border-radius:7px;background:transparent;border:1px solid #293341;color:#8e9aaa;font-size:10px;box-shadow:none; }
.nova-main { min-width:0;max-width:none;width:calc(100% - 276px);padding:0 32px 48px;background:var(--os-bg); }
.workspace-topbar {
    height:64px;
    margin:0 -32px 30px;
    padding:0 32px;
    position:sticky;
    top:0;
    z-index:50;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    border-bottom:1px solid var(--os-rule);
    background:color-mix(in srgb,var(--os-bg) 91%,transparent);
    backdrop-filter:blur(16px);
}
.topbar-crumb { min-width:0;display:flex;align-items:center;gap:10px;color:var(--os-muted);font-size:10px; }
.topbar-crumb span { max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.topbar-crumb b { color:var(--os-rule-dark);font-weight:400; }
.topbar-crumb strong { color:var(--os-ink);font-size:10px; }
.topbar-command { min-width:230px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;padding:8px 10px 8px 12px;border:1px solid var(--os-rule);border-radius:8px;background:var(--os-paper);box-shadow:0 2px 8px rgba(0,0,0,.03); }
.topbar-command span { padding:3px 5px;border:1px solid var(--os-rule);border-radius:4px;color:var(--os-muted);font:8px ui-monospace,monospace; }
.topbar-command strong { color:var(--os-muted);font-size:10px;font-weight:650; }
.topbar-command i { width:26px;height:26px;display:grid;place-items:center;border-radius:6px;background:var(--os-navy);color:#d6aa58;font-style:normal;font-weight:900; }
.mobile-nav-open { display:none;width:38px;height:38px;padding:9px;background:var(--os-paper);border:1px solid var(--os-rule);border-radius:8px;box-shadow:none; }
.mobile-nav-open span { display:block;height:1px;margin:4px 0;background:var(--os-ink); }
.toast-stack { position:fixed;z-index:120;top:76px;inset-inline-end:24px;width:min(380px,calc(100vw - 32px));display:grid;gap:8px;pointer-events:none; }
.toast-stack .alert { margin:0;display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid currentColor;border-radius:8px;background:var(--os-paper);box-shadow:var(--os-shadow);pointer-events:auto;transition:opacity .2s ease,transform .2s ease; }
.toast-stack .alert button { padding:0;background:transparent;color:inherit;box-shadow:none;font-size:18px; }
.toast-stack .toast-idle { opacity:.78; }
.mobile-nav-backdrop { position:fixed;z-index:70;inset:0;background:rgba(4,7,11,.68);backdrop-filter:blur(3px); }

/* Command Center */
.os-briefing-hero { max-width:1480px;margin:0 auto 18px;display:grid;grid-template-columns:minmax(0,1fr) 340px;border:1px solid var(--os-rule-dark);background:var(--os-paper);box-shadow:var(--os-shadow); }
.os-briefing-copy { min-width:0;padding:48px 54px 44px;border-inline-end:1px solid var(--os-rule);background:linear-gradient(125deg,var(--os-paper),var(--os-paper-2)); }
.os-live-line { display:flex;align-items:center;gap:8px;margin-bottom:28px;color:var(--os-muted);font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.13em; }
.os-live-line span { width:7px;height:7px;border-radius:50%;background:var(--os-green);box-shadow:0 0 0 5px color-mix(in srgb,var(--os-green) 13%,transparent); }
.os-briefing-copy h1 { max-width:900px;margin:0;color:var(--os-ink);font-size:clamp(38px,5vw,76px);line-height:.98;letter-spacing:-.065em;font-weight:800; }
.os-briefing-copy h1 em { color:var(--os-gold);font-family:Georgia,serif;font-weight:400; }
.os-briefing-copy>p { max-width:760px;margin:22px 0 28px;font-size:14px;line-height:1.7; }
.command-launcher { max-width:850px;display:grid;grid-template-columns:38px 1fr auto;align-items:center;gap:10px;padding:7px;border:1px solid var(--os-rule-dark);background:var(--os-paper);box-shadow:0 10px 28px rgba(33,37,45,.08); }
.command-launcher-mark { width:35px;height:35px;display:grid;place-items:center;background:var(--os-navy);color:#ddb45f;font-weight:900; }
.command-launcher input { min-width:0;padding:9px 4px;border:0;background:transparent!important;box-shadow:none;font-size:13px; }
.command-launcher button { border-radius:3px;padding:12px 18px;background:var(--os-navy);box-shadow:none;font-size:10px;text-transform:uppercase;letter-spacing:.05em; }
.briefing-shortcuts { display:flex;gap:20px;flex-wrap:wrap;margin-top:18px; }
.briefing-shortcuts a { color:var(--os-muted);font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;border-bottom:1px solid var(--os-rule);padding-bottom:3px; }
.operator-readiness-card { padding:38px 30px;display:flex;flex-direction:column;background:var(--os-navy);color:#fff; }
.readiness-score { display:flex;align-items:flex-start;line-height:.8;margin-bottom:28px; }
.readiness-score strong { font-size:78px;letter-spacing:-.08em; }
.readiness-score span { margin:7px 0 0 7px;color:#cba455;font-size:18px; }
.operator-readiness-card>div:nth-child(2) small { color:#7f8996;font-size:8px;text-transform:uppercase;letter-spacing:.13em; }
.operator-readiness-card h2 { margin:7px 0 18px;color:#fff;font-size:18px;letter-spacing:-.03em; }
.operator-readiness-card .readiness-track { height:3px;background:#2b3440;border:0; }
.operator-readiness-card .readiness-track i { background:#d1a24b; }
.operator-readiness-card dl { display:grid;grid-template-columns:repeat(3,1fr);margin:25px 0 30px;border-top:1px solid #29313d;border-bottom:1px solid #29313d; }
.operator-readiness-card dl div { padding:16px 2px;border-inline-end:1px solid #29313d; }
.operator-readiness-card dl div:last-child { border:0; }
.operator-readiness-card dt { color:#788493;font-size:8px;text-transform:uppercase; }
.operator-readiness-card dd { margin:5px 0 0;font-size:17px;font-weight:850; }
.operator-readiness-card>a { margin-top:auto;display:grid;gap:5px;padding:17px;border:1px solid #364151;background:#171f2a;color:#fff; }
.operator-readiness-card>a span { color:#bf9546;font-size:8px;text-transform:uppercase;letter-spacing:.1em; }
.operator-readiness-card>a strong { font-size:12px; }
.operator-readiness-card>a small { color:#818d9d;font-size:9px; }
.operator-alert-rail { max-width:1480px;margin:0 auto 18px;display:grid;gap:6px; }
.operator-alert-rail a { min-height:44px;display:grid;grid-template-columns:22px 1fr auto;align-items:center;gap:10px;padding:8px 14px;border:1px solid var(--os-rule);background:var(--os-paper);color:var(--os-ink);font-size:10px; }
.operator-alert-rail a>span { width:20px;height:20px;display:grid;place-items:center;border-radius:50%;background:color-mix(in srgb,var(--os-amber) 12%,transparent);color:var(--os-amber); }
.operator-alert-rail a.urgent>span { background:color-mix(in srgb,var(--os-red) 12%,transparent);color:var(--os-red); }
.business-signal-row { max-width:1480px;margin:0 auto 18px;display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--os-rule);background:var(--os-paper); }
.business-signal-row article { min-width:0;padding:21px 24px;border-inline-end:1px solid var(--os-rule); }
.business-signal-row article:last-child { border:0; }
.business-signal-row span,.business-signal-row small { display:block;color:var(--os-muted);font-size:8px; }
.business-signal-row span { text-transform:uppercase;letter-spacing:.1em;font-weight:800; }
.business-signal-row strong { display:block;margin:9px 0 5px;font-size:25px;letter-spacing:-.04em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.os-layer-map { max-width:1480px;margin:0 auto 18px;display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--os-rule-dark);background:var(--os-navy); }
.os-layer-map a { min-width:0;min-height:88px;padding:17px;display:grid;grid-template-columns:25px 1fr;gap:6px 10px;align-content:center;border-inline-end:1px solid #2d3642;color:#fff; }
.os-layer-map a:last-child { border:0; }
.os-layer-map a>span { grid-row:1/3;color:#c59b4a;font:9px ui-monospace,monospace; }
.os-layer-map strong,.os-layer-map small { display:block; }
.os-layer-map strong { font-size:11px; }
.os-layer-map small { margin-top:4px;color:#7f8b9a;font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.os-layer-map b { grid-column:2;color:#aab3bf;font-size:8px;font-weight:600;text-transform:uppercase;letter-spacing:.06em; }
.command-center-grid { max-width:1480px;margin:0 auto 18px;display:grid;grid-template-columns:minmax(0,1.7fr) minmax(310px,.7fr);gap:18px;align-items:stretch; }
.command-center-grid.lower { grid-template-columns:1fr 1fr; }
.operator-briefing-board,.objective-compact-board,.operator-work-queue,.channel-status-board,.health-status-board { border:1px solid var(--os-rule);background:var(--os-paper);box-shadow:var(--os-shadow); }
.os-section-heading { min-height:68px;margin:0!important;padding:17px 20px;display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid var(--os-rule); }
.os-section-heading span { color:var(--os-gold);font-size:8px;font-weight:850;text-transform:uppercase;letter-spacing:.12em; }
.os-section-heading h2 { margin:4px 0 0;font-size:17px;letter-spacing:-.025em; }
.os-section-heading>a,.os-section-heading>small { color:var(--os-muted);font-size:9px;font-weight:750; }
.briefing-list article { min-height:110px;display:grid;grid-template-columns:36px 1fr auto;align-items:center;gap:20px;padding:19px 20px;border-bottom:1px solid var(--os-rule); }
.briefing-list article:last-child { border:0; }
.briefing-index { color:var(--os-rule-dark);font:12px ui-monospace,monospace; }
.briefing-list h3 { margin:0 0 6px;font-size:13px; }
.briefing-list p { margin:0;font-size:10px;line-height:1.55; }
.briefing-list article>a { color:var(--os-ink);font-size:9px;font-weight:800;white-space:nowrap; }
.briefing-list article.urgent { border-inline-start:3px solid var(--os-red); }
.briefing-list article.attention { border-inline-start:3px solid var(--os-amber); }
.briefing-list article.positive { border-inline-start:3px solid var(--os-green); }
.objective-compact-board { padding:22px; }
.objective-compact-board>header { display:flex;align-items:center;justify-content:space-between;color:var(--os-gold);font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.1em; }
.objective-compact-board>header a { color:var(--os-muted);font-size:8px; }
.objective-compact-board>h2 { margin:22px 0;font-size:24px;line-height:1.15;letter-spacing:-.045em; }
.objective-progress-orbit { width:150px;height:150px;margin:15px auto 24px;display:grid;place-items:center;align-content:center;border-radius:50%;background:conic-gradient(var(--os-gold) var(--progress),var(--os-rule) 0);position:relative; }
.objective-progress-orbit:after { content:"";position:absolute;inset:8px;border-radius:50%;background:var(--os-paper); }
.objective-progress-orbit strong,.objective-progress-orbit span { position:relative;z-index:1; }
.objective-progress-orbit strong { font-size:34px;letter-spacing:-.05em; }
.objective-progress-orbit span { color:var(--os-muted);font-size:8px;text-transform:uppercase; }
.objective-compact-board dl { display:grid;grid-template-columns:1fr 1fr;margin:0;border:1px solid var(--os-rule); }
.objective-compact-board dl div { padding:12px;border-bottom:1px solid var(--os-rule);border-inline-end:1px solid var(--os-rule); }
.objective-compact-board dt { color:var(--os-muted);font-size:8px;text-transform:uppercase; }
.objective-compact-board dd { margin:5px 0 0;font-size:11px;font-weight:800; }
.objective-compact-board>p { margin:15px 0 0;font-size:9px;line-height:1.55; }
.operator-work-queue { max-width:1480px;margin:0 auto 18px; }
.operator-action-list { display:grid;grid-template-columns:repeat(3,1fr); }
.operator-action-list article { min-height:150px;padding:20px;display:flex;flex-direction:column;border-inline-end:1px solid var(--os-rule);border-bottom:1px solid var(--os-rule); }
.operator-action-list article>span { color:var(--os-gold);font:9px ui-monospace,monospace; }
.operator-action-list h3 { margin:18px 0 6px;font-size:13px; }
.operator-action-list p { margin:0;font-size:9px;line-height:1.55; }
.operator-action-list a { margin-top:auto;padding-top:15px;color:var(--os-ink);font-size:9px;font-weight:800; }
.channel-status-list,.health-status-list { padding:8px 18px 16px; }
.channel-status-list article,.health-status-list article { min-height:58px;display:grid;grid-template-columns:8px 1fr auto;align-items:center;gap:12px;border-bottom:1px solid var(--os-rule); }
.channel-status-list article>i,.health-status-list article>i { width:7px;height:7px;border-radius:50%;background:var(--os-green); }
.channel-status-list article:not(.connected)>i,.health-status-list article.needs_attention>i { background:var(--os-amber); }
.health-status-list article.unknown>i { background:var(--os-rule-dark); }
.channel-status-list strong,.channel-status-list small,.health-status-list strong,.health-status-list small { display:block; }
.channel-status-list strong,.health-status-list strong { font-size:10px; }
.channel-status-list small,.health-status-list small { max-width:430px;margin-top:4px;color:var(--os-muted);font-size:8px;line-height:1.4; }
.channel-status-list article>span,.health-status-list article>span { color:var(--os-muted);font-size:8px;text-transform:uppercase; }

/* Setup, actions and operator suggestions */
.setup-hero,.catalog-hero { max-width:1480px;margin:0 auto 24px;padding:38px 42px;display:grid;grid-template-columns:1fr 310px;gap:48px;border:1px solid var(--os-rule-dark);background:var(--os-paper);box-shadow:var(--os-shadow); }
.setup-hero h1,.catalog-hero h1 { max-width:850px;margin:8px 0 12px;font-size:clamp(34px,4.5vw,62px);line-height:1;letter-spacing:-.06em; }
.setup-hero>div>p,.catalog-hero>div>p { max-width:760px;margin:0;font-size:13px; }
.setup-path-chip { margin-top:24px;padding:14px 16px;display:grid;gap:4px;border-inline-start:3px solid var(--os-gold);background:var(--os-paper-2); }
.setup-path-chip span,.setup-path-chip small { color:var(--os-muted);font-size:8px; }
.setup-path-chip strong { font-size:13px; }
.setup-hero>aside { padding:24px;background:var(--os-navy);color:#fff; }
.setup-score-large { display:flex;align-items:baseline;gap:8px; }
.setup-score-large strong { font-size:68px;letter-spacing:-.07em; }
.setup-score-large span { color:#8d98a6;font-size:10px;text-transform:uppercase; }
.setup-hero aside dl { display:grid;grid-template-columns:repeat(3,1fr);margin:22px 0 0; }
.setup-hero aside dt { color:#768291;font-size:8px; }
.setup-hero aside dd { margin:5px 0 0;font-weight:800; }
.installation-group { max-width:1480px;margin:0 auto 22px;border:1px solid var(--os-rule);background:var(--os-paper); }
.installation-list article { min-height:138px;display:grid;grid-template-columns:130px 1fr 190px;gap:24px;align-items:center;padding:22px;border-bottom:1px solid var(--os-rule); }
.installation-list article:last-child { border:0; }
.installation-list article.connected { border-inline-start:3px solid var(--os-green); }
.installation-list article.missing { border-inline-start:3px solid var(--os-amber); }
.installation-list article.needs_attention { border-inline-start:3px solid var(--os-red); }
.installation-list article.skipped { opacity:.7;border-inline-start:3px solid var(--os-rule-dark); }
.installation-state { display:flex;align-items:center;gap:8px;color:var(--os-muted);font-size:8px;text-transform:uppercase;letter-spacing:.07em; }
.installation-state i { width:8px;height:8px;border-radius:50%;background:var(--os-amber); }
.connected .installation-state i { background:var(--os-green); }
.needs_attention .installation-state i { background:var(--os-red); }
.skipped .installation-state i { background:var(--os-rule-dark); }
.installation-copy h3 { margin:0 0 7px;font-size:15px; }
.installation-copy p { margin:0;font-size:10px; }
.installation-copy dl { display:flex;gap:24px;margin:12px 0 0; }
.installation-copy dl div { display:flex;gap:6px;font-size:8px; }
.installation-copy dt { color:var(--os-muted); }
.installation-copy dd { margin:0;font-weight:750; }
.installation-actions { display:grid;gap:8px;justify-items:stretch;text-align:center; }
.installation-actions .button { border-radius:4px;padding:10px;font-size:9px; }
.installation-actions>a:not(.button),.link-button { padding:3px;background:transparent;color:var(--os-muted);box-shadow:none;font-size:8px;font-weight:750; }
.catalog-readiness { display:grid;align-content:center;justify-items:center;border-inline-start:1px solid var(--os-rule); }
.catalog-readiness strong { font-size:80px;line-height:.9;letter-spacing:-.08em; }
.catalog-readiness span { margin-top:9px;color:var(--os-gold);font-size:10px;font-weight:800;text-transform:uppercase; }
.catalog-readiness small { margin-top:5px;color:var(--os-muted);font-size:8px; }
.action-filter-bar { max-width:1480px;margin:0 auto 16px;display:flex;gap:5px;overflow:auto;padding-bottom:3px; }
.action-filter-bar button { flex:0 0 auto;padding:9px 13px;border:1px solid var(--os-rule);border-radius:3px;background:var(--os-paper);color:var(--os-muted);box-shadow:none;font-size:9px; }
.action-filter-bar button.active { background:var(--os-navy);color:#fff;border-color:var(--os-navy); }
.action-catalog-grid { max-width:1480px;margin:0 auto;display:grid;grid-template-columns:repeat(3,1fr);gap:12px; }
.action-catalog-grid>article { min-height:320px;padding:22px;display:flex;flex-direction:column;border:1px solid var(--os-rule);border-top:3px solid var(--os-rule-dark);background:var(--os-paper);box-shadow:0 8px 28px rgba(30,34,42,.045); }
.action-catalog-grid>article.ready { border-top-color:var(--os-green); }
.action-catalog-grid>article.needs_api,.action-catalog-grid>article.needs_setup { border-top-color:var(--os-amber); }
.action-catalog-grid header { display:flex;align-items:center;justify-content:space-between;gap:12px; }
.action-catalog-grid header span,.action-catalog-grid header b { color:var(--os-muted);font-size:8px;text-transform:uppercase;letter-spacing:.08em; }
.action-catalog-grid header b { color:var(--os-gold); }
.action-catalog-grid h2 { margin:25px 0 22px;font-size:22px;letter-spacing:-.04em; }
.action-requirements { display:flex;gap:5px;flex-wrap:wrap; }
.action-requirements small { width:100%;margin-bottom:3px;color:var(--os-muted);font-size:8px;text-transform:uppercase; }
.action-requirements span { padding:5px 7px;border:1px solid var(--os-rule);background:var(--os-paper-2);font-size:8px; }
.action-catalog-grid dl { margin:22px 0;display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--os-rule);border-bottom:1px solid var(--os-rule); }
.action-catalog-grid dl div { padding:12px 0; }
.action-catalog-grid dt { color:var(--os-muted);font-size:8px; }
.action-catalog-grid dd { margin:5px 0 0;font-size:10px;font-weight:800; }
.action-catalog-grid footer { margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:12px; }
.action-catalog-grid footer .button { border-radius:3px;padding:10px 12px;font-size:9px; }
.action-catalog-grid footer>a:not(.button) { color:var(--os-muted);font-size:9px;font-weight:750; }
.wasla-suggests-panel { margin:0 0 18px;border:1px solid var(--os-rule);background:var(--os-paper);box-shadow:0 6px 22px rgba(25,30,38,.04); }
.wasla-suggests-panel>header { min-height:60px;padding:14px 18px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--os-rule); }
.wasla-suggests-panel>header span { color:var(--os-gold);font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.1em; }
.wasla-suggests-panel>header h2 { margin:3px 0 0;font-size:15px; }
.wasla-suggests-panel>header a { color:var(--os-muted);font-size:8px;font-weight:750; }
.wasla-suggests-panel>div { display:grid;grid-template-columns:repeat(3,1fr); }
.wasla-suggests-panel article { min-width:0;display:grid;grid-template-columns:7px 1fr auto;align-items:center;gap:11px;padding:16px;border-inline-end:1px solid var(--os-rule); }
.wasla-suggests-panel article>i { width:7px;height:7px;border-radius:50%;background:var(--os-rule-dark); }
.wasla-suggests-panel article.attention>i { background:var(--os-amber); }
.wasla-suggests-panel article.urgent>i { background:var(--os-red); }
.wasla-suggests-panel article.positive>i { background:var(--os-green); }
.wasla-suggests-panel strong { display:block;font-size:10px; }
.wasla-suggests-panel p { margin:4px 0 0;font-size:8px;line-height:1.45; }
.wasla-suggests-panel article>a { color:var(--os-ink);font-size:8px;font-weight:800;white-space:nowrap; }
.purpose-empty-state { width:100%;padding:30px;border:1px dashed var(--os-rule-dark);background:var(--os-paper-2); }
.purpose-empty-state>span { color:var(--os-gold);font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.1em; }
.purpose-empty-state h3,.purpose-empty-state h2 { margin:9px 0 6px; }
.purpose-empty-state p { max-width:660px;margin:0 0 16px;font-size:10px; }
.purpose-empty-state>div { display:flex;align-items:center;gap:15px;flex-wrap:wrap; }
.purpose-empty-state .button { border-radius:3px;padding:10px 12px;font-size:9px; }
.purpose-empty-state.compact { padding:18px; }
.integration-guide { margin:0 0 18px;border:1px solid var(--os-rule);background:var(--os-paper); }
.integration-explainer-grid { display:grid;grid-template-columns:repeat(3,1fr); }
.integration-explainer-grid>article { min-height:285px;padding:19px;border-inline-end:1px solid var(--os-rule);border-bottom:1px solid var(--os-rule);border-top:3px solid var(--os-rule-dark); }
.integration-explainer-grid>article.connected { border-top-color:var(--os-green); }
.integration-explainer-grid>article.missing { border-top-color:var(--os-amber); }
.integration-explainer-grid article>header { display:flex;justify-content:space-between;gap:8px; }
.integration-explainer-grid article>header span,.integration-explainer-grid article>header b { color:var(--os-muted);font-size:7px;text-transform:uppercase;letter-spacing:.06em; }
.integration-explainer-grid article.connected>header span { color:var(--os-green); }
.integration-explainer-grid h3 { margin:20px 0 7px;font-size:16px; }
.integration-explainer-grid p { min-height:48px;margin:0;font-size:9px; }
.integration-explainer-grid dl { margin:16px 0 0;border-top:1px solid var(--os-rule); }
.integration-explainer-grid dl div { padding:9px 0;border-bottom:1px solid var(--os-rule); }
.integration-explainer-grid dt { color:var(--os-muted);font-size:7px;text-transform:uppercase; }
.integration-explainer-grid dd { margin:4px 0 0;font-size:8px;line-height:1.4; }
.import-decision-hero { margin-bottom:18px;padding:22px;display:grid;grid-template-columns:260px 1fr;gap:30px;align-items:center;border:1px solid var(--os-rule-dark);background:var(--os-navy);color:#fff; }
.import-decision-hero>div>span { color:#8d98a6;font-size:8px;text-transform:uppercase; }
.import-decision-hero>div>strong { display:block;margin:7px 0 15px;font-size:45px;letter-spacing:-.05em; }
.import-decision-hero dl { display:grid;grid-template-columns:repeat(4,1fr);margin:0; }
.import-decision-hero dl div { padding:13px;border-inline-start:1px solid #303946; }
.import-decision-hero dt { color:#7d8998;font-size:8px; }
.import-decision-hero dd { margin:6px 0 0;font-size:13px;font-weight:800; }
.detected-type-list { display:grid;gap:6px;margin-top:18px; }
.detected-type-list article { min-height:54px;padding:9px 11px;display:grid;grid-template-columns:42px 1fr;align-items:center;gap:10px;border:1px solid var(--os-rule);background:var(--os-paper-2); }
.detected-type-list article>span { color:var(--os-gold);font-size:9px;font-weight:800; }
.detected-type-list strong,.detected-type-list small { display:block; }
.detected-type-list strong { font-size:10px; }
.detected-type-list small { margin-top:3px;color:var(--os-muted);font-size:8px; }
.raw-source-drawer summary { cursor:pointer;font-size:11px;font-weight:800; }

/* Prompt-first modular Website Studio */
.website-prompt-first { padding:28px;border:1px solid var(--os-rule-dark);background:var(--os-navy);color:#fff; }
.website-prompt-first span,.website-purpose-picker header span { color:#d0a451;font-size:8px;font-weight:850;text-transform:uppercase;letter-spacing:.1em; }
.website-prompt-first h2 { margin:8px 0;font-size:25px;letter-spacing:-.04em; }
.website-prompt-first p { max-width:760px;margin:0 0 18px;color:#99a4b2;font-size:10px; }
.website-prompt-first textarea { min-height:150px;border:1px solid #394352;border-radius:4px;background:#0d121a!important;color:#fff;font-size:14px;line-height:1.65; }
.website-purpose-picker { padding:22px;border:1px solid var(--os-rule);background:var(--os-paper); }
.website-purpose-picker header { display:flex;align-items:center;justify-content:space-between;margin-bottom:14px; }
.website-purpose-picker header small { color:var(--os-muted);font-size:8px; }
.website-purpose-picker>div { display:grid;grid-template-columns:repeat(3,1fr);gap:8px; }
.website-purpose-picker button { min-height:105px;padding:14px;display:grid;grid-template-columns:28px 1fr;align-content:center;gap:4px 10px;text-align:start;border:1px solid var(--os-rule);border-radius:4px;background:var(--os-paper-2);color:var(--os-ink);box-shadow:none; }
.website-purpose-picker button>span { width:27px;height:27px;grid-row:1/3;display:grid;place-items:center;border:1px solid var(--os-rule);font-size:8px; }
.website-purpose-picker button strong { font-size:11px; }
.website-purpose-picker button small { color:var(--os-muted);font-size:8px;line-height:1.35; }
.website-purpose-picker button.active { border-color:var(--os-gold);background:color-mix(in srgb,var(--os-gold) 8%,var(--os-paper)); }
.website-purpose-picker button.active>span { background:var(--os-gold);color:#fff;border-color:var(--os-gold); }
.modular-section-picker { padding:22px;border:1px solid var(--os-rule); }
.modular-section-picker legend { padding:0 8px;color:var(--os-gold);font-size:10px;font-weight:850; }
.modular-section-picker>p { margin:0 0 14px;font-size:9px; }
.modular-section-picker>div { display:grid;grid-template-columns:repeat(4,1fr);gap:6px; }
.modular-section-picker label { min-height:38px;padding:8px 9px;display:flex;flex-direction:row;align-items:center;gap:7px;border:1px solid var(--os-rule);background:var(--os-paper-2);font-size:9px; }
.modular-section-picker input { width:auto; }
.blueprint-section-board { display:grid!important;grid-template-columns:1fr!important;gap:6px!important; }
.blueprint-section-board article { min-height:54px;display:grid;grid-template-columns:22px 1fr 28px;align-items:center;gap:8px;padding:8px 10px;border:1px solid var(--os-rule);background:var(--os-paper-2);cursor:grab; }
.blueprint-section-board .section-drag { color:var(--os-muted);font-size:13px; }
.blueprint-section-board label { flex-direction:row;align-items:center; }
.blueprint-section-board label input { width:auto; }
.blueprint-section-board label span { display:grid;gap:3px; }
.blueprint-section-board label strong { font-size:10px; }
.blueprint-section-board label small { color:var(--os-muted);font-size:8px; }
.blueprint-section-board article>button { padding:3px;background:transparent;color:var(--os-muted);box-shadow:none;font-size:17px; }
.prompt-edit-chips { display:flex;gap:5px;flex-wrap:wrap; }
.prompt-edit-chips button { padding:6px 8px;border:1px solid var(--os-rule);border-radius:3px;background:var(--os-paper-2);color:var(--os-muted);box-shadow:none;font-size:8px; }

/* AI operator conversation: chat is the product */
.nova-command { max-width:1560px;margin:0 auto;display:flex;flex-direction:column; }
.chat-operator-header { order:0;min-height:118px;margin-bottom:14px;padding:20px 24px;display:flex;align-items:center;justify-content:space-between;gap:24px;border:1px solid var(--os-rule-dark);background:var(--os-paper);box-shadow:var(--os-shadow); }
.chat-operator-identity { min-width:0;display:flex;align-items:center;gap:16px; }
.chat-operator-identity>span { width:54px;height:54px;flex:0 0 54px;display:grid;place-items:center;border-radius:13px;background:var(--os-navy);color:#d6aa58;font-size:20px;font-weight:900; }
.chat-operator-identity small { color:var(--os-gold);font-size:8px;font-weight:850;text-transform:uppercase;letter-spacing:.1em; }
.chat-operator-identity h1 { margin:4px 0 3px;font-size:24px;letter-spacing:-.045em; }
.chat-operator-identity p { margin:0;font-size:9px; }
.chat-operator-state { display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end; }
.chat-operator-state>a,.chat-operator-state>span { padding:8px 10px;border:1px solid var(--os-rule);background:var(--os-paper-2);color:var(--os-muted);font-size:8px;font-weight:750; }
.chat-operator-state i { width:6px;height:6px;display:inline-block;margin-inline-end:5px;border-radius:50%;background:var(--os-green); }
.nova-command>.nova-command-top,.nova-command>.nova-metrics,.nova-command>.command-capability-map,.nova-command>.setup-command-panel { display:none!important; }
.nova-command>.nova-grid { order:1; }
.nova-command>.command-queue { order:2;margin-top:16px; }
.command-bottom-grid { display:none!important; }
.nova-grid { grid-template-columns:minmax(0,1fr) 282px!important;gap:14px!important;align-items:start; }
.nova-chat-card { min-height:calc(100dvh - 215px)!important;border:1px solid var(--os-rule-dark)!important;border-radius:8px!important;background:var(--os-paper)!important;box-shadow:var(--os-shadow)!important; }
.chat-card-head { min-height:67px;padding:14px 17px!important;background:var(--os-paper); }
.chat-card-head h2 { margin:0 0 3px;font-size:14px; }
.chat-card-head p { max-width:650px;margin:0;font-size:8px!important; }
.chat-head-actions { gap:7px; }
.new-chat-button { min-height:31px!important;padding:6px 9px!important;border-radius:4px!important;font-size:8px!important; }
.mode-switcher { border-radius:4px!important; }
.voice-command-strip { min-height:48px;margin:9px 12px 0!important;padding:8px 10px!important;border-radius:4px!important; }
.voice-command-strip strong { font-size:9px; }
.voice-command-strip span { font-size:8px; }
.voice-command-strip .button { padding:6px 8px;border-radius:3px;font-size:8px; }
.nova-chat-window { height:calc(100dvh - 455px)!important;min-height:420px!important;padding:24px clamp(15px,3vw,46px)!important;background:var(--os-paper-2)!important;overscroll-behavior:contain;scroll-behavior:smooth; }
.nova-message { max-width:980px;width:100%; }
.nova-message-user { margin-inline-start:auto!important;padding-inline-start:14%; }
.nova-message-ai { margin-inline-end:auto!important;padding-inline-end:8%; }
.nova-avatar { width:31px!important;height:31px!important;flex:0 0 31px;border-radius:7px!important; }
.nova-bubble { max-width:none!important;padding:13px 15px!important;border-radius:7px!important;box-shadow:0 3px 12px rgba(24,29,37,.035); }
.nova-bubble .assistant-text,.nova-bubble .user-text { white-space:pre-wrap;word-break:break-word;font-size:12px;line-height:1.65; }
.nova-message.is-thinking .nova-bubble { border-style:dashed!important; }
.nova-message.is-thinking .assistant-text:after { content:"";width:14px;height:4px;display:inline-block;margin-inline-start:7px;background:radial-gradient(circle,var(--os-gold) 2px,transparent 3px) 0 0/7px 4px;animation:operator-thinking .8s linear infinite; }
@keyframes operator-thinking { to { transform:translateX(7px); } }
.inline-command-receipt { margin-top:12px;padding:11px 12px;display:grid;grid-template-columns:1fr auto;gap:3px 14px;border:1px solid var(--os-gold);background:color-mix(in srgb,var(--os-gold) 6%,var(--os-paper));color:var(--os-ink); }
.inline-command-receipt span { grid-column:1/-1;color:var(--os-gold);font-size:7px;text-transform:uppercase;letter-spacing:.08em; }
.inline-command-receipt strong { font-size:10px; }
.inline-command-receipt b { font-size:8px; }
.friend-briefing-strip { padding:8px 10px!important;gap:5px!important;border-top:1px solid var(--os-rule);background:var(--os-paper)!important;overflow:auto; }
.friend-briefing-strip button { flex:0 0 auto!important;padding:7px 9px!important;border-radius:3px!important; }
.friend-briefing-strip strong { font-size:8px!important; }
.friend-briefing-strip span { display:none!important; }
.nova-composer { padding:10px 12px 12px!important;border-top:1px solid var(--os-rule);background:var(--os-paper)!important; }
.composer-toolbar { margin-bottom:7px; }
.composer-input-row { padding:5px!important;border:1px solid var(--os-rule-dark)!important;border-radius:5px!important;background:var(--os-paper-2)!important; }
.composer-input-row textarea { min-height:45px!important;max-height:150px;padding:10px!important;border:0!important;background:transparent!important;font-size:12px;line-height:1.45; }
.mic-orb,.send-orb { width:38px!important;height:38px!important;min-width:38px!important;border-radius:5px!important;padding:0!important;box-shadow:none!important;font-size:9px!important; }
.composer-quick-row { gap:5px!important;overflow:auto;flex-wrap:nowrap!important; }
.composer-quick-row button { flex:0 0 auto;padding:6px 8px!important;border-radius:3px!important;font-size:7px!important; }
.nova-right-panel { top:78px!important;max-height:calc(100dvh - 95px)!important;gap:10px!important;overflow:auto;scrollbar-width:thin; }
.nova-right-panel .tool-card,.operator-card { padding:14px!important;border-radius:6px!important;box-shadow:none!important; }
.nova-right-panel h3,.operator-card h3 { font-size:11px; }
.nova-right-panel p,.operator-card p { font-size:8px;line-height:1.45; }

@media(max-width:1180px) {
    .business-signal-row { grid-template-columns:repeat(2,1fr); }
    .business-signal-row article:nth-child(2) { border-inline-end:0; }
    .business-signal-row article:nth-child(-n+2) { border-bottom:1px solid var(--os-rule); }
    .os-layer-map { grid-template-columns:repeat(2,1fr); }
    .os-layer-map a:nth-child(2) { border-inline-end:0; }
    .os-layer-map a:nth-child(-n+2) { border-bottom:1px solid #2d3642; }
    .command-center-grid,.command-center-grid.lower { grid-template-columns:1fr; }
    .operator-action-list { grid-template-columns:repeat(2,1fr); }
    .action-catalog-grid { grid-template-columns:repeat(2,1fr); }
    .integration-explainer-grid { grid-template-columns:repeat(2,1fr); }
    .wasla-suggests-panel>div { grid-template-columns:1fr; }
    .wasla-suggests-panel article { border-inline-end:0;border-bottom:1px solid var(--os-rule); }
    .nova-grid { grid-template-columns:minmax(0,1fr) 250px!important; }
}

@media(max-width:900px) {
    .nova-sidebar { position:fixed!important;inset-block:0;inset-inline-start:0;transform:translateX(-105%);transition:transform .22s ease;width:min(310px,88vw)!important; }
    [dir="rtl"] .nova-sidebar { transform:translateX(105%); }
    body.nav-open .nova-sidebar { transform:translateX(0); }
    .mobile-nav-close,.mobile-nav-open { display:block; }
    .nova-main { width:100%;padding:0 20px 36px; }
    .workspace-topbar { margin:0 -20px 22px;padding:0 20px; }
    .topbar-crumb { margin-inline-end:auto; }
    .topbar-command { min-width:0;width:44px;height:40px;padding:6px;display:grid;place-items:center; }
    .topbar-command span,.topbar-command strong { display:none; }
    .os-briefing-hero,.setup-hero,.catalog-hero { grid-template-columns:1fr; }
    .os-briefing-copy { padding:38px 30px;border-inline-end:0;border-bottom:1px solid var(--os-rule); }
    .operator-readiness-card { min-height:360px; }
    .setup-hero,.catalog-hero { padding:30px;gap:24px; }
    .catalog-readiness { min-height:160px;border-inline-start:0;border-top:1px solid var(--os-rule); }
    .installation-list article { grid-template-columns:105px 1fr; }
    .installation-actions { grid-column:2;grid-template-columns:repeat(2,auto);justify-content:start;align-items:center;text-align:start; }
    .import-decision-hero { grid-template-columns:1fr; }
    .nova-grid { grid-template-columns:1fr!important; }
    .nova-right-panel { position:relative!important;top:0!important;max-height:none!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;overflow:visible; }
    .operator-card { grid-column:1/-1; }
    .nova-chat-card { min-height:calc(100dvh - 205px)!important; }
    .nova-chat-window { height:calc(100dvh - 450px)!important;min-height:430px!important; }
}

@media(max-width:680px) {
    .nova-main { padding:0 12px 28px; }
    .workspace-topbar { height:58px;margin:0 -12px 14px;padding:0 12px; }
    .topbar-crumb span { max-width:110px; }
    .topbar-crumb strong { display:none; }
    .toast-stack { top:68px;inset-inline:12px;width:auto; }
    .os-briefing-hero,.operator-briefing-board,.objective-compact-board,.operator-work-queue,.channel-status-board,.health-status-board,.setup-hero,.catalog-hero,.installation-group { margin-bottom:12px;box-shadow:none; }
    .os-briefing-copy { padding:28px 20px; }
    .os-briefing-copy h1 { font-size:39px; }
    .os-briefing-copy>p { font-size:11px; }
    .command-launcher { grid-template-columns:34px 1fr; }
    .command-launcher button { grid-column:1/-1;width:100%; }
    .operator-readiness-card { min-height:330px;padding:28px 22px; }
    .business-signal-row { grid-template-columns:1fr 1fr; }
    .business-signal-row article { padding:16px; }
    .business-signal-row strong { font-size:19px; }
    .os-layer-map { grid-template-columns:1fr; }
    .os-layer-map a { min-height:70px;border-inline-end:0!important;border-bottom:1px solid #2d3642!important; }
    .briefing-list article { grid-template-columns:25px 1fr;gap:10px;padding:16px; }
    .briefing-list article>a { grid-column:2; }
    .operator-action-list,.action-catalog-grid { grid-template-columns:1fr; }
    .operator-action-list article { min-height:130px;border-inline-end:0; }
    .setup-hero,.catalog-hero { padding:24px 18px; }
    .setup-hero h1,.catalog-hero h1 { font-size:38px; }
    .installation-list article { grid-template-columns:1fr;gap:12px;padding:18px; }
    .installation-actions { grid-column:1; }
    .installation-copy dl { display:grid;gap:7px; }
    .action-catalog-grid>article { min-height:285px; }
    .integration-explainer-grid { grid-template-columns:1fr; }
    .import-decision-hero dl { grid-template-columns:repeat(2,1fr); }
    .wasla-suggests-panel>header { align-items:flex-start; }
    .wasla-suggests-panel article { grid-template-columns:7px 1fr; }
    .wasla-suggests-panel article>a { grid-column:2; }
    .website-purpose-picker>div { grid-template-columns:1fr; }
    .modular-section-picker>div { grid-template-columns:repeat(2,1fr); }
    .chat-operator-header { min-height:0;margin-bottom:8px;padding:14px;align-items:flex-start; }
    .chat-operator-identity>span { width:42px;height:42px;flex-basis:42px; }
    .chat-operator-identity h1 { font-size:18px; }
    .chat-operator-identity p { display:none; }
    .chat-operator-state { display:none; }
    .chat-card-head { min-height:58px; }
    .chat-card-head p { display:none; }
    .chat-head-actions { width:100%;justify-content:space-between; }
    .voice-command-strip { display:none!important; }
    .nova-chat-window { height:calc(100dvh - 330px)!important;min-height:360px!important;padding:16px 10px!important; }
    .nova-message-user { padding-inline-start:8%!important; }
    .nova-message-ai { padding-inline-end:1%!important; }
    .nova-avatar { width:27px!important;height:27px!important;flex-basis:27px; }
    .nova-bubble { padding:10px 11px!important; }
    .nova-bubble .assistant-text,.nova-bubble .user-text { font-size:11px; }
    .composer-toolbar .action-title-input,.composer-toolbar .compact-check { display:none; }
    .premium-select { max-width:100%!important; }
    .friend-briefing-strip { display:none!important; }
    .nova-right-panel { grid-template-columns:1fr!important; }
    .operator-card { grid-column:auto; }
}
@media(max-width:420px) {
    .overview-kpis { grid-template-columns:1fr; }
    .nova-metrics { grid-template-columns:1fr 1fr; }
    .nova-command-top h1 { font-size:34px; }
}

/* Wasla System UI v5 · architectural, information-first, no decorative backgrounds */
:root {
    --sys-canvas:#f3f3f1;
    --sys-paper:#ffffff;
    --sys-paper-2:#f8f8f6;
    --sys-ink:#15171b;
    --sys-muted:#6f737b;
    --sys-faint:#9b9fa7;
    --sys-rule:#dddeda;
    --sys-rule-dark:#c9cbc7;
    --sys-gold:#c6953e;
    --sys-gold-soft:#f4ead6;
    --sys-green:#16856f;
    --sys-red:#bf4d4d;
    --sys-shadow:0 1px 2px rgba(20,23,27,.035),0 10px 28px rgba(20,23,27,.045);
}
:root[data-theme="dark"] {
    --sys-canvas:#0b0e13;
    --sys-paper:#131820;
    --sys-paper-2:#171d26;
    --sys-ink:#f2f1ed;
    --sys-muted:#9a9fa9;
    --sys-faint:#717783;
    --sys-rule:#29303a;
    --sys-rule-dark:#39414e;
    --sys-gold-soft:#292215;
    --sys-shadow:0 1px 2px rgba(0,0,0,.2),0 14px 32px rgba(0,0,0,.16);
}
body {
    background:var(--sys-canvas)!important;
    color:var(--sys-ink);
}
body:before,body:after { display:none!important; }
.workspace-shell { background:var(--sys-canvas); }
.workspace-sidebar {
    background:#111722;
    border-color:#202938;
    box-shadow:none;
}
.sidebar-brand { border-color:#202938; }
.brand-symbol {
    background:transparent;
    color:#e0b969;
    border:1px solid #80632d;
    box-shadow:none;
    font-family:Georgia,serif;
}
.workspace-switcher {
    background:#171e2b;
    border-color:#2b3545;
    box-shadow:none;
}
.workspace-switcher:hover { background:#1b2432;border-color:#66532f; }
.workspace-avatar { background:#242e3e;border:1px solid #384458;color:#e4c37d; }
.primary-navigation a { border-radius:8px; }
.primary-navigation a:hover { background:#171f2c;border-color:transparent; }
.primary-navigation a.active {
    background:#1b2230;
    border-color:#2e394a;
    box-shadow:inset 2px 0 var(--sys-gold);
}
[dir="rtl"] .primary-navigation a.active { box-shadow:inset -2px 0 var(--sys-gold); }
.primary-navigation a.active svg { color:#d5b163; }
.sidebar-context-status { margin:0 0 12px;padding:12px;border:1px solid #293344;border-radius:10px;background:#151c28; }
.sidebar-context-status span,.sidebar-context-status small { display:block; }
.sidebar-context-status span { color:#dce2eb;font-size:10px;font-weight:750;letter-spacing:.02em; }
.sidebar-context-status span i { width:6px;height:6px;display:inline-block;margin-inline-end:6px;border-radius:50%;background:#42b89f;box-shadow:0 0 0 3px rgba(66,184,159,.1); }
.sidebar-context-status small { margin-top:5px;color:#727d8e;font-size:9px;line-height:1.45; }
.workspace-topbar {
    background:color-mix(in srgb,var(--sys-canvas) 94%,transparent);
    border-color:var(--sys-rule);
    box-shadow:none;
}
.topbar-command,.icon-button { background:var(--sys-paper);border-color:var(--sys-rule);box-shadow:none; }
.content-area { max-width:1640px;padding-top:38px; }
h1,h2,h3,h4 { color:var(--sys-ink); }
p { color:var(--sys-muted); }
.panel,.card,.auth-card,.assistant-response,.stat,.hero-panel,.tool-card,.operator-card,.nova-chat-card,.nova-right-panel .tool-card {
    background:var(--sys-paper)!important;
    border-color:var(--sys-rule)!important;
    border-radius:18px!important;
    box-shadow:var(--sys-shadow)!important;
}
.button.secondary,.ghost-button,.quick-links a,.tiny-button { background:var(--sys-paper)!important;border-color:var(--sys-rule-dark)!important; }
input,select,textarea { background:var(--sys-paper)!important;border-color:var(--sys-rule-dark)!important;border-radius:9px; }
.table-wrap { border-color:var(--sys-rule);border-radius:12px; }
th { background:var(--sys-paper-2); }

/* Bespoke executive workspace */
.executive-masthead {
    min-height:330px;
    display:grid;
    grid-template-columns:minmax(0,1.45fr) minmax(320px,.62fr);
    border:1px solid var(--sys-rule);
    background:var(--sys-paper);
    box-shadow:var(--sys-shadow);
}
.masthead-copy { padding:42px 46px 40px;display:flex;flex-direction:column;align-items:flex-start; }
.masthead-kicker { width:100%;display:flex;align-items:center;justify-content:space-between;color:var(--sys-muted);font-size:10px;font-weight:750;letter-spacing:.12em;text-transform:uppercase; }
.masthead-kicker time { color:var(--sys-faint);font-weight:600;letter-spacing:.05em; }
.masthead-copy h1 { margin:42px 0 17px;font-size:clamp(45px,5vw,72px);line-height:.92;letter-spacing:-.072em;font-weight:720; }
.masthead-copy h1 em { color:var(--sys-gold);font-family:Georgia,"Times New Roman",serif;font-weight:400;letter-spacing:-.045em; }
.masthead-copy>p { max-width:720px;margin:0;font-size:14px;line-height:1.7; }
.masthead-actions { margin-top:auto;padding-top:26px;display:flex;align-items:center;gap:24px; }
.masthead-actions .button { min-height:46px;padding-inline:20px;background:#171b22;color:#fff;box-shadow:none; }
:root[data-theme="dark"] .masthead-actions .button { background:#eeeae1;color:#171b22; }
.text-action { display:inline-flex;align-items:center;gap:10px;color:var(--sys-ink);font-size:11px;font-weight:750; }
.text-action span { color:var(--sys-gold);font-size:16px;transition:transform .16s; }
.text-action:hover span { transform:translateX(3px); }
[dir="rtl"] .text-action:hover span { transform:translateX(-3px); }
.readiness-panel { padding:29px 28px;border-inline-start:1px solid var(--sys-rule);background:var(--sys-paper-2); }
.readiness-head { display:flex;align-items:baseline;justify-content:space-between;gap:12px; }
.readiness-head span { color:var(--sys-muted);font-size:10px;font-weight:800;letter-spacing:.12em;text-transform:uppercase; }
.readiness-head strong { font-size:27px;letter-spacing:-.045em; }
.readiness-track { height:3px;margin:17px 0 25px;background:var(--sys-rule); }
.readiness-track i { height:100%;display:block;background:var(--sys-gold); }
.readiness-matrix { border-top:1px solid var(--sys-rule); }
.readiness-matrix>div { min-height:49px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--sys-rule); }
.readiness-matrix span { color:var(--sys-muted);font-size:10px; }
.readiness-matrix strong { font-size:11px; }
.readiness-panel>p { margin:19px 0 0;font-size:9px;line-height:1.55; }
.signal-ledger { margin:18px 0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--sys-rule);background:var(--sys-paper);box-shadow:var(--sys-shadow); }
.signal-ledger article { min-height:118px;padding:19px 20px;display:grid;grid-template-columns:28px 1fr;grid-template-rows:1fr auto;column-gap:12px;border-inline-end:1px solid var(--sys-rule); }
.signal-ledger article:last-child { border-inline-end:0; }
.signal-index { padding-top:2px;color:var(--sys-faint);font-size:9px;font-weight:800;letter-spacing:.1em; }
.signal-ledger article>div small,.signal-ledger article>div strong { display:block; }
.signal-ledger article>div small { color:var(--sys-muted);font-size:10px; }
.signal-ledger article>div strong { margin-top:7px;font-size:27px;letter-spacing:-.045em; }
.signal-ledger article>em { grid-column:2;color:var(--sys-muted);font-size:9px;font-style:normal; }
.signal-ledger article>em.positive { color:var(--sys-green); }
.signal-ledger article>em.negative { color:var(--sys-red); }
.owner-brief { min-height:84px;margin-bottom:18px;padding:17px 21px;display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:16px;border:1px solid #313846;background:#171c24;color:#fff; }
.brief-marker { width:38px;height:38px;display:grid;place-items:center;position:relative;border:1px solid #555f6d;font-family:Georgia,serif;color:#deb96a; }
.brief-marker i { position:absolute;right:-4px;top:-4px;width:8px;height:8px;border-radius:50%;background:#43b69d;border:2px solid #171c24; }
.owner-brief small,.owner-brief strong { display:block; }
.owner-brief small { margin-bottom:5px;color:#828c99;font-size:9px;text-transform:uppercase;letter-spacing:.12em; }
.owner-brief strong { max-width:850px;color:#f1f3f6;font-size:12px;line-height:1.55; }
.owner-brief>a { color:#e1bd71;font-size:10px;font-weight:750;white-space:nowrap; }
.owner-brief>a span { margin-inline-start:7px; }
.executive-workbench { display:grid;grid-template-columns:minmax(0,1.6fr) minmax(330px,.63fr);gap:18px;align-items:start; }
.workbench-primary,.workbench-secondary { display:grid;gap:18px; }
.workbench-panel { border:1px solid var(--sys-rule);background:var(--sys-paper);box-shadow:var(--sys-shadow); }
.workbench-heading { min-height:78px;padding:19px 22px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--sys-rule); }
.workbench-heading small,.workbench-heading h2 { display:block;margin:0; }
.workbench-heading small { margin-bottom:5px;color:var(--sys-faint);font-size:9px;font-weight:800;letter-spacing:.11em;text-transform:uppercase; }
.workbench-heading h2 { font-size:18px; }
.workbench-heading>a,.workbench-heading>span,.period-label { color:var(--sys-muted);font-size:9px;font-weight:700; }
.pulse-layout { display:grid;grid-template-columns:minmax(0,1.5fr) minmax(210px,.55fr);min-height:310px; }
.pulse-chart { padding:28px 26px 23px;display:grid;grid-template-columns:28px 1fr;gap:14px;border-inline-end:1px solid var(--sys-rule); }
.chart-scale { padding-bottom:28px;display:flex;flex-direction:column;justify-content:space-between;color:var(--sys-faint);font-size:8px; }
.chart-columns { min-height:240px;padding-top:8px;display:grid;grid-template-columns:repeat(5,1fr);gap:16px;align-items:end;border-bottom:1px solid var(--sys-rule-dark);background:repeating-linear-gradient(to bottom,transparent 0,transparent calc(25% - 1px),var(--sys-rule) 25%); }
.chart-columns>div { height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:9px; }
.chart-columns i { width:min(38px,60%);min-height:10px;display:block;background:#252a32;border-top:3px solid var(--sys-gold); }
:root[data-theme="dark"] .chart-columns i { background:#b8bec8; }
.chart-columns span { height:19px;color:var(--sys-muted);font-size:8px;font-weight:700; }
.pulse-legend { display:flex;flex-direction:column; }
.pulse-legend>div { flex:1;padding:22px;border-bottom:1px solid var(--sys-rule);display:flex;flex-direction:column;justify-content:center; }
.pulse-legend>div:last-child { border:0; }
.pulse-legend span,.pulse-legend strong,.pulse-legend small { display:block; }
.pulse-legend span { color:var(--sys-faint);font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.1em; }
.pulse-legend strong { margin:6px 0 4px;font-size:18px; }
.pulse-legend small { color:var(--sys-muted);font-size:9px; }
.operating-map-list>a { min-height:76px;padding:14px 20px;display:grid;grid-template-columns:45px minmax(0,1fr) auto 18px;align-items:center;gap:14px;border-bottom:1px solid var(--sys-rule);color:var(--sys-ink); }
.operating-map-list>a:last-child { border:0; }
.operating-map-list>a:hover { background:var(--sys-paper-2); }
.map-code { color:var(--sys-faint);font:700 9px/1.2 "Segoe UI",sans-serif;letter-spacing:.1em; }
.operating-map-list strong,.operating-map-list small { display:block; }
.operating-map-list strong { font-size:12px; }
.operating-map-list small { margin-top:5px;color:var(--sys-muted);font-size:9px; }
.operating-map-list em { padding:5px 8px;border:1px solid var(--sys-rule);color:var(--sys-muted);font-size:8px;font-style:normal; }
.operating-map-list b { color:var(--sys-faint);font-weight:400; }
.decision-stack ol { margin:0;padding:0 22px;list-style:none; }
.decision-stack li { min-height:92px;padding:18px 0;display:grid;grid-template-columns:28px 1fr;gap:12px;border-bottom:1px solid var(--sys-rule); }
.decision-stack li>span { color:var(--sys-gold);font-size:9px;font-weight:800; }
.decision-stack li strong,.decision-stack li small { display:block; }
.decision-stack li strong { font-size:11px;line-height:1.45; }
.decision-stack li small { margin-top:6px;color:var(--sys-muted);font-size:9px;line-height:1.45; }
.decision-action { margin:18px 22px 22px;min-height:43px;display:flex;align-items:center;justify-content:center;border:1px solid var(--sys-rule-dark);color:var(--sys-ink);font-size:10px;font-weight:750; }
.decision-action:hover { border-color:var(--sys-gold); }
.quick-console>div { display:grid;grid-template-columns:1fr 1fr; }
.quick-console>div>a { min-height:82px;padding:16px;display:flex;flex-direction:column;justify-content:space-between;border-inline-end:1px solid var(--sys-rule);border-bottom:1px solid var(--sys-rule);color:var(--sys-ink); }
.quick-console>div>a:nth-child(2n) { border-inline-end:0; }
.quick-console>div>a:nth-last-child(-n+2) { border-bottom:0; }
.quick-console>div>a:hover { background:var(--sys-paper-2); }
.quick-console span { font-size:10px;font-weight:750; }
.quick-console small { color:var(--sys-faint);font-size:8px;text-transform:uppercase;letter-spacing:.1em; }

/* Command OS: dense contextual cockpit */
.nova-command-top {
    min-height:340px;
    padding:0!important;
    display:grid;
    grid-template-columns:minmax(0,1.45fr) minmax(300px,.55fr);
    align-items:stretch;
    overflow:hidden;
    border-radius:0!important;
    background:#171c24!important;
    border-color:#313846!important;
    box-shadow:none!important;
}
.nova-command-top:after { display:none; }
.command-hero-copy { padding:42px 45px;display:flex;flex-direction:column;align-items:flex-start; }
.command-hero-copy .eyebrow { color:#cba252; }
.nova-command-top h1 { margin:30px 0 17px;color:#f5f6f7;font-size:clamp(46px,5vw,72px);line-height:.92;letter-spacing:-.07em; }
.nova-command-top h1 em { color:#d9b668;font-family:Georgia,"Times New Roman",serif;font-weight:400;letter-spacing:-.045em; }
.nova-command-top p { max-width:720px;color:#aab0ba;font-size:13px; }
.nova-top-actions { margin-top:auto;padding-top:25px;justify-content:flex-start; }
.nova-top-actions .ghost-button { background:transparent!important;border-color:#4b5564!important;color:#e9ebef!important;box-shadow:none; }
.nova-top-actions .text-action { margin-inline-start:8px;color:#d8dce3; }
.pill-live { background:transparent;border-color:#38675d;color:#7fc8b6;box-shadow:none; }
.command-context-ledger { padding:29px 28px;display:flex;flex-direction:column;border-inline-start:1px solid #313846;background:#131820; }
.command-context-ledger header { padding-bottom:18px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #2c3440;color:#788390;font-size:9px;text-transform:uppercase;letter-spacing:.12em; }
.command-context-ledger header strong { color:#d5b36a;font-size:11px; }
.command-context-ledger>div { min-height:49px;display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid #29313c; }
.command-context-ledger>div span { color:#788390;font-size:9px; }
.command-context-ledger>div strong { max-width:175px;color:#e3e6eb;font-size:10px;text-align:end; }
.command-context-ledger footer { margin-top:auto;padding-top:18px;color:#8d97a4;font-size:9px; }
.command-context-ledger footer i { width:6px;height:6px;display:inline-block;margin-inline-end:7px;border-radius:50%;background:#43b69d; }
.nova-metrics { gap:0;border:1px solid var(--sys-rule);background:var(--sys-paper);box-shadow:var(--sys-shadow); }
.nova-metrics>div { min-height:105px;padding:17px 19px 19px;border:0;border-inline-end:1px solid var(--sys-rule);border-radius:0;background:var(--sys-paper);box-shadow:none; }
.nova-metrics>div:last-child { border-inline-end:0; }
.nova-metrics>div:after { display:none; }
.nova-metrics span,.nova-metrics small { font-size:8px; }
.nova-metrics strong { margin:8px 0 7px;font-size:25px; }
.nova-metrics>div>i { height:2px;display:block;position:relative;margin-top:8px;background:var(--sys-rule); }
.nova-metrics>div>i:after { content:"";position:absolute;inset:0 auto 0 0;width:var(--metric);background:var(--sys-gold); }
[dir="rtl"] .nova-metrics>div>i:after { inset:0 0 0 auto; }
.nova-grid { gap:18px; }
.nova-chat-card { border-radius:14px!important;box-shadow:var(--sys-shadow)!important; }
.chat-card-head { padding:20px 22px 18px; }
.chat-card-head h2 { font-size:18px; }
.voice-command-strip { border-radius:8px;background:var(--sys-paper-2); }
.nova-chat-window { background:var(--sys-paper-2)!important; }
.nova-composer { background:var(--sys-paper)!important; }
.nova-bubble { border-radius:10px;box-shadow:none; }
.nova-bubble.user-bubble { border-radius:10px 2px 10px 10px; }
.nova-bubble.ai-bubble,:root[data-theme="dark"] .nova-bubble.ai-bubble { border-radius:2px 10px 10px 10px;background:var(--sys-paper); }
.operator-card,.nova-tool-card { border-radius:14px!important;box-shadow:var(--sys-shadow)!important; }
.operator-ring { width:44px;height:44px;border:1px solid var(--sys-rule-dark);border-radius:8px;background:transparent;color:var(--sys-ink);box-shadow:none; }
.nova-tool-grid a,.inline-run button,.data-row { border-radius:8px!important;background:var(--sys-paper-2)!important; }

/* Remove the previous decorative treatments across shared pages */
.overview-header,.briefing-hero,.hero-panel {
    background:var(--sys-paper)!important;
    border-color:var(--sys-rule)!important;
    box-shadow:var(--sys-shadow)!important;
}
.briefing-hero { border-radius:0;border-inline-start:4px solid var(--sys-gold)!important; }
.stat:after,.kpi-card:after { display:none!important; }
.kpi-icon { width:auto;height:auto;background:transparent;color:var(--sys-muted);border-radius:0; }
.kpi-icon svg { width:16px; }
.studio-control-panel { border-radius:14px;box-shadow:var(--sys-shadow); }
.studio-panel-intro,.studio-form-section,.studio-save-bar { background:var(--sys-paper); }
.studio-step { border-radius:6px;background:#1b2028; }
.studio-browser { border-radius:14px;background:#111722;box-shadow:var(--sys-shadow); }
.studio-browser iframe { border-radius:7px; }

@media(max-width:1280px) {
    .executive-masthead { grid-template-columns:minmax(0,1.2fr) minmax(280px,.7fr); }
    .masthead-copy { padding:36px; }
    .signal-ledger { grid-template-columns:repeat(2,1fr); }
    .signal-ledger article:nth-child(2) { border-inline-end:0; }
    .signal-ledger article:nth-child(-n+2) { border-bottom:1px solid var(--sys-rule); }
    .executive-workbench { grid-template-columns:1fr; }
    .workbench-secondary { grid-template-columns:1fr 1fr; }
    .nova-command-top { grid-template-columns:minmax(0,1.2fr) minmax(270px,.7fr); }
    .command-hero-copy { padding:36px; }
}
@media(max-width:900px) {
    .executive-masthead,.nova-command-top { grid-template-columns:1fr; }
    .readiness-panel,.command-context-ledger { border-inline-start:0;border-top:1px solid var(--sys-rule); }
    .masthead-copy,.command-hero-copy { min-height:340px; }
    .pulse-layout { grid-template-columns:1fr; }
    .pulse-chart { border-inline-end:0;border-bottom:1px solid var(--sys-rule); }
    .pulse-legend { display:grid;grid-template-columns:repeat(3,1fr); }
    .pulse-legend>div { border-bottom:0;border-inline-end:1px solid var(--sys-rule); }
    .pulse-legend>div:last-child { border-inline-end:0; }
}
@media(max-width:760px) {
    .content-area { padding-top:18px; }
    .executive-masthead { min-height:0; }
    .masthead-copy,.command-hero-copy { min-height:0;padding:27px 23px; }
    .masthead-copy h1,.nova-command-top h1 { margin-top:30px;font-size:45px; }
    .masthead-actions { align-items:flex-start;flex-direction:column;gap:15px; }
    .readiness-panel,.command-context-ledger { padding:24px 22px; }
    .signal-ledger { grid-template-columns:1fr; }
    .signal-ledger article,.signal-ledger article:nth-child(2) { border-inline-end:0;border-bottom:1px solid var(--sys-rule); }
    .signal-ledger article:last-child { border-bottom:0; }
    .owner-brief { grid-template-columns:38px 1fr; }
    .owner-brief>a { grid-column:2; }
    .workbench-secondary { grid-template-columns:1fr; }
    .pulse-legend { grid-template-columns:1fr; }
    .pulse-legend>div { border-inline-end:0;border-bottom:1px solid var(--sys-rule); }
    .operating-map-list>a { grid-template-columns:38px minmax(0,1fr) 18px; }
    .operating-map-list em { display:none; }
    .nova-metrics { grid-template-columns:repeat(2,1fr); }
    .nova-metrics>div { border-bottom:1px solid var(--sys-rule); }
    .nova-metrics>div:nth-child(2n) { border-inline-end:0; }
    .nova-metrics>div:nth-last-child(-n+2) { border-bottom:0; }
}

/* Executive intelligence composition */
.intelligence-report .page-header { min-height:150px;margin:0;padding:10px 0 30px;align-items:flex-end;border-bottom:1px solid var(--sys-rule-dark); }
.intelligence-report .page-header h1 { font-size:clamp(40px,4.5vw,64px); }
.intelligence-report .page-header form { min-width:170px; }
.intelligence-report .page-header label { color:var(--sys-faint);font-size:8px;text-transform:uppercase;letter-spacing:.1em; }
.intelligence-report .briefing-hero { min-height:240px;margin:24px 0 0;padding:0;display:grid;grid-template-columns:54px minmax(0,1fr) 220px;align-items:stretch;border:1px solid var(--sys-rule)!important;border-inline-start:1px solid var(--sys-rule)!important;background:var(--sys-paper)!important; }
.briefing-number { padding:29px 0;text-align:center;border-inline-end:1px solid var(--sys-rule);color:var(--sys-gold);font-size:9px;font-weight:800;letter-spacing:.1em; }
.intelligence-report .briefing-hero>div:nth-child(2) { padding:34px 36px;display:flex;flex-direction:column;justify-content:center; }
.intelligence-report .briefing-hero span { color:var(--sys-gold);font-size:9px;font-weight:800;letter-spacing:.1em;text-transform:uppercase; }
.intelligence-report .briefing-hero h2 { max-width:760px;margin:16px 0 12px;font-size:clamp(30px,3vw,45px);line-height:1.05; }
.intelligence-report .briefing-hero p { margin:0; }
.intelligence-report .briefing-hero aside { padding:28px 24px;display:flex;flex-direction:column;justify-content:center;border-inline-start:1px solid var(--sys-rule);background:var(--sys-paper-2); }
.intelligence-report .briefing-hero aside small,.intelligence-report .briefing-hero aside strong { display:block; }
.intelligence-report .briefing-hero aside small { color:var(--sys-faint);font-size:8px;text-transform:uppercase;letter-spacing:.1em; }
.intelligence-report .briefing-hero aside strong { margin:7px 0 28px;font-size:13px; }
.intelligence-report .briefing-hero .button { background:#1a1f27;color:#fff;box-shadow:none; }
:root[data-theme="dark"] .intelligence-report .briefing-hero .button { background:#eeece7;color:#171b22; }
.intelligence-report .section-title { margin:42px 0 13px;padding-bottom:11px;border-bottom:1px solid var(--sys-rule);color:var(--sys-faint);font-size:9px;letter-spacing:.15em; }
.intelligence-report .stats-grid { gap:0;margin:0;border:1px solid var(--sys-rule);background:var(--sys-paper);box-shadow:var(--sys-shadow); }
.intelligence-report .stat { min-height:115px;padding:20px!important;border:0!important;border-inline-end:1px solid var(--sys-rule)!important;border-bottom:1px solid var(--sys-rule)!important;border-radius:0!important;box-shadow:none!important; }
.intelligence-report .stat span { margin-bottom:16px;font-size:8px;letter-spacing:.1em; }
.intelligence-report .stat strong { font-size:27px; }
.intelligence-report .stat small { color:var(--sys-muted);font-size:8px; }
.intelligence-report .grid-2 { margin-top:24px;gap:18px; }
.intelligence-report .grid-2>.panel { border-radius:0!important;box-shadow:var(--sys-shadow)!important; }
.intelligence-report .grid-2>.panel>h2 { margin:0 0 22px;padding-bottom:16px;border-bottom:1px solid var(--sys-rule);font-size:18px; }
.intelligence-report .diagnosis,.intelligence-report .action-list a { border-radius:0;background:var(--sys-paper-2);box-shadow:none; }
.intelligence-report>.panel { margin-top:24px;border-radius:0!important; }
.intelligence-report .coverage-grid { gap:0;border:1px solid var(--sys-rule); }
.intelligence-report .coverage-grid>div { min-height:92px;padding:16px;border:0;border-inline-end:1px solid var(--sys-rule);border-radius:0;background:var(--sys-paper-2);box-shadow:none; }
.intelligence-report .coverage-grid>div span { width:auto;height:auto;display:block;margin-bottom:10px;background:transparent;color:var(--sys-green);font-size:8px;text-transform:uppercase;letter-spacing:.08em; }
.intelligence-report .coverage-grid>div.missing span { color:var(--sys-red); }
@media(max-width:760px) {
    .intelligence-report .briefing-hero { grid-template-columns:40px 1fr; }
    .intelligence-report .briefing-hero aside { grid-column:1/-1;border-inline-start:0;border-top:1px solid var(--sys-rule); }
    .intelligence-report .briefing-hero>div:nth-child(2) { padding:28px 22px; }
}

/* Website Studio + commerce integrations */
.website-generator-hero h1 { max-width:960px;font-size:clamp(36px,4.5vw,62px);line-height:.98;letter-spacing:-.065em; }
.builder-intent-grid { display:grid;grid-template-columns:repeat(3,1fr);gap:0;margin:0 0 18px;border:1px solid var(--sys-rule);background:var(--sys-paper);box-shadow:var(--sys-shadow); }
.intent-card { min-height:145px;padding:23px;border-inline-end:1px solid var(--sys-rule); }
.intent-card:last-child { border-inline-end:0; }
.intent-card span { color:var(--sys-gold);font-size:9px;font-weight:900;letter-spacing:.1em; }
.intent-card strong { display:block;margin:16px 0 8px;font-size:15px; }
.intent-card p { margin:0;color:var(--sys-muted);font-size:10px;line-height:1.6; }
.website-generation-form { border-radius:0!important;box-shadow:var(--sys-shadow)!important; }
.website-generation-form textarea[name="design_prompt"] { min-height:150px;font-size:14px;line-height:1.65; }
.studio-design-director { border-inline-start:4px solid var(--sys-gold); }
.studio-section-board { display:flex;flex-wrap:wrap;gap:9px;padding:14px;border:1px dashed var(--sys-rule-dark);background:var(--sys-paper-2); }
.studio-section-board button { cursor:grab;border:1px solid var(--sys-rule);background:var(--sys-paper);color:var(--sys-ink);box-shadow:none; }
.studio-section-board button.dragging { opacity:.45;cursor:grabbing;border-color:var(--sys-gold); }
.studio-product-shelf { display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px; }
.studio-product-shelf article { padding:12px;border:1px solid var(--sys-rule);background:var(--sys-paper-2);display:flex;flex-direction:column;gap:8px; }
.studio-product-thumb { aspect-ratio:4/3;display:grid;place-items:center;background:linear-gradient(145deg,var(--sys-paper),#d8c497);overflow:hidden; }
.studio-product-thumb img { width:100%;height:100%;object-fit:cover; }
.studio-product-thumb span { color:#fff;font-family:Georgia,serif;font-size:38px; }
.studio-product-shelf strong { font-size:11px;line-height:1.35; }
.studio-product-shelf small { color:var(--sys-muted);font-size:8px;line-height:1.45; }
.studio-product-shelf em { width:max-content;padding:4px 7px;border:1px solid #7c6030;color:var(--sys-gold);font-size:8px;font-style:normal;text-transform:uppercase;letter-spacing:.08em; }
.integration-vault-form { border:1px solid var(--sys-rule);padding:18px;background:var(--sys-paper-2); }
.integration-record-list article { align-items:flex-start; }
.shopify-import-panel { display:block!important;border-color:#c79b4b!important;background:linear-gradient(135deg,var(--sys-paper),color-mix(in srgb,var(--sys-gold) 8%,var(--sys-paper)))!important; }
.shopify-import-panel h3 { margin:0 0 8px;font-size:17px; }
.shopify-product-review { display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:10px;margin:15px 0; }
.shopify-product-row { margin:0!important;padding:11px!important;display:grid!important;grid-template-columns:22px 46px minmax(0,1fr);gap:10px;align-items:center;border:1px solid var(--sys-rule);background:var(--sys-paper);font-weight:700!important; }
.shopify-product-row input { width:auto;margin:0; }
.shopify-product-row span { width:46px;height:46px;display:grid;place-items:center;background:var(--sys-paper-2);overflow:hidden; }
.shopify-product-row img { width:100%;height:100%;object-fit:cover; }
.shopify-product-row strong { font-size:10px;line-height:1.3; }
.shopify-product-row small { grid-column:3;color:var(--sys-muted);font-size:8px; }

@media(max-width:820px) {
    .builder-intent-grid { grid-template-columns:1fr; }
    .intent-card { border-inline-end:0;border-bottom:1px solid var(--sys-rule); }
    .intent-card:last-child { border-bottom:0; }
}

/* Omnichannel inbox */
.omnichannel-inbox { border-radius:0!important;box-shadow:var(--sys-shadow)!important; }
.inbox-channel-strip { display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--sys-rule);margin-bottom:16px;background:var(--sys-paper-2); }
.inbox-channel-strip span { padding:13px;border-inline-end:1px solid var(--sys-rule);color:var(--sys-muted);font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.08em; }
.inbox-channel-strip span:last-child { border-inline-end:0; }
.omnichannel-inbox .record-list article.needs-handoff { border-color:#a26b20;background:color-mix(in srgb,var(--sys-gold) 10%,var(--sys-paper)); }
.omnichannel-inbox .record-list p { margin:8px 0;color:var(--sys-muted);font-size:10px;line-height:1.55; }
.conversation-intelligence { border-radius:0!important;box-shadow:var(--sys-shadow)!important; }
.conversation-profile { display:grid;grid-template-columns:repeat(4,1fr);gap:0;border:1px solid var(--sys-rule); }
.conversation-profile div { padding:15px;border-inline-end:1px solid var(--sys-rule);background:var(--sys-paper-2); }
.conversation-profile div:last-child { border-inline-end:0; }
.conversation-profile span,.conversation-profile strong { display:block; }
.conversation-profile span { color:var(--sys-faint);font-size:8px;text-transform:uppercase;letter-spacing:.1em; }
.conversation-profile strong { margin-top:7px;font-size:11px; }
.omnichannel-chat-log { display:grid;gap:12px;margin-top:18px; }
.omnichannel-chat-log .chat-message { max-width:760px;padding:16px 18px;border:1px solid var(--sys-rule);background:var(--sys-paper);box-shadow:var(--sys-shadow); }
.omnichannel-chat-log .chat-message.customer { margin-inline-end:auto;border-inline-start:4px solid var(--sys-rule-dark); }
.omnichannel-chat-log .chat-message.ai { margin-inline-start:auto;border-inline-end:4px solid var(--sys-gold); }
.omnichannel-chat-log .chat-message.system { margin-inline:auto;border-style:dashed;background:var(--sys-paper-2); }
.omnichannel-chat-log .chat-message.needs_handoff { border-color:#a26b20; }
.omnichannel-chat-log header { display:flex;justify-content:space-between;gap:18px;margin-bottom:10px;color:var(--sys-muted);font-size:9px; }
.omnichannel-chat-log p { margin:0;color:var(--sys-ink);line-height:1.65; }

@media(max-width:760px) {
    .inbox-channel-strip,.conversation-profile { grid-template-columns:1fr 1fr; }
}

/* Wasla OS v6: professional product UI and discoverability pass */
.primary-navigation a {
    min-height:48px;
    height:auto!important;
    padding:9px 11px!important;
    align-items:flex-start;
}
.primary-navigation a>span {
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:2px;
}
.primary-navigation a>span strong {
    overflow:hidden;
    color:inherit;
    font-size:12px;
    line-height:1.2;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.primary-navigation a>span small {
    overflow:hidden;
    color:#758197;
    font-size:8.5px;
    font-weight:650;
    line-height:1.2;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.primary-navigation a.active>span small,
.primary-navigation a:hover>span small { color:#aeb8c8; }
.sidebar-service-stack {
    margin:0 12px 14px;
    padding:12px;
    display:grid;
    gap:7px;
    border:1px solid #263244;
    background:#141b28;
}
.sidebar-service-stack>span {
    color:#738097;
    font-size:8px;
    font-weight:850;
    letter-spacing:.14em;
    text-transform:uppercase;
}
.sidebar-service-stack a {
    min-height:36px;
    padding:7px 8px!important;
    display:grid;
    grid-template-columns:32px minmax(0,1fr);
    gap:8px;
    align-items:center;
    border:1px solid transparent;
    color:#d7dde7!important;
}
.sidebar-service-stack a:hover {
    border-color:#3a4658;
    background:#182132;
}
.sidebar-service-stack i {
    width:32px;
    height:24px;
    display:grid;
    place-items:center;
    border:1px solid #3a4658;
    color:#d6ad5e;
    font-size:8px;
    font-style:normal;
    font-weight:900;
}
.sidebar-service-stack strong {
    overflow:hidden;
    font-size:10px;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.sidebar-utilities {
    padding:9px 12px 10px!important;
}
.sidebar-context-status {
    padding:9px 10px!important;
    margin-bottom:8px!important;
}
.settings-menu { margin-bottom:6px!important; }
.settings-menu summary {
    min-height:36px!important;
    height:36px!important;
}
.settings-menu a { padding-top:6px!important;padding-bottom:6px!important; }
.sidebar-account {
    padding-top:10px!important;
    grid-template-columns:32px minmax(0,1fr) 32px!important;
}
.sidebar-account .user-avatar {
    width:32px;
    height:32px;
}
.sidebar-account strong { font-size:11px!important; }
.sidebar-account small { font-size:9px!important; }

.command-capability-map {
    display:grid;
    grid-template-columns:repeat(6,minmax(0,1fr));
    border:1px solid var(--sys-rule);
    background:var(--sys-paper);
    box-shadow:var(--sys-shadow);
}
.command-capability-map a {
    min-height:132px;
    padding:18px 17px;
    display:flex;
    flex-direction:column;
    gap:9px;
    border-inline-end:1px solid var(--sys-rule);
    color:var(--sys-ink);
}
.command-capability-map a:last-child { border-inline-end:0; }
.command-capability-map a:hover {
    background:var(--sys-paper-2);
}
.command-capability-map span {
    width:max-content;
    padding:4px 7px;
    border:1px solid var(--sys-rule-dark);
    color:var(--sys-gold);
    font-size:8px;
    font-weight:900;
    letter-spacing:.1em;
}
.command-capability-map strong {
    font-size:12px;
    line-height:1.35;
}
.command-capability-map small {
    margin-top:auto;
    color:var(--sys-muted);
    font-size:9px;
    line-height:1.5;
}
.chat-head-actions {
    display:flex;
    align-items:center;
    gap:10px;
}
.new-chat-button {
    min-height:36px!important;
    white-space:nowrap;
}
.nova-chat-card {
    min-height:auto!important;
}
.nova-chat-window {
    height:clamp(420px,54vh,640px)!important;
    min-height:420px!important;
    max-height:640px;
    overflow-y:auto!important;
    scroll-behavior:smooth;
}
.nova-message {
    margin-bottom:14px!important;
}
.nova-composer {
    position:sticky;
    bottom:0;
    z-index:5;
    padding:12px 14px 14px!important;
}
.composer-toolbar {
    grid-template-columns:minmax(200px,1fr) auto minmax(120px,170px)!important;
}
.composer-toolbar .compact-check {
    min-height:36px;
}
.composer-toolbar .action-title-input {
    min-width:0;
}
.composer-input-row textarea {
    min-height:58px!important;
    max-height:150px!important;
}
.composer-quick-row {
    display:flex;
    gap:7px;
    overflow-x:auto;
    padding-bottom:2px;
    scrollbar-width:thin;
}
.composer-quick-row button {
    white-space:nowrap;
    flex:0 0 auto;
}
.business-context-drawer:not([open]) {
    padding:8px 11px!important;
}
.business-context-drawer:not([open]) summary {
    font-size:10px;
}

.product-command-center {
    margin-bottom:24px;
    padding:0!important;
    overflow:hidden;
}
.product-command-head {
    padding:24px 26px;
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:24px;
    align-items:end;
    border-bottom:1px solid var(--sys-rule);
}
.product-command-head h2 {
    margin:0 0 8px;
    font-size:24px;
}
.product-command-head p {
    max-width:840px;
    margin:0;
}
.product-source-summary {
    display:grid;
    grid-template-columns:repeat(3,max-content);
    gap:8px;
}
.product-source-summary span {
    min-height:34px;
    padding:0 10px;
    display:flex;
    align-items:center;
    gap:7px;
    border:1px solid var(--sys-rule);
    background:var(--sys-paper-2);
    color:var(--sys-muted);
    font-size:9px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.06em;
}
.source-dot {
    width:7px;
    height:7px;
    border-radius:999px;
    background:var(--sys-rule-dark);
}
.source-dot.source-shopify { background:#21a67a; }
.source-dot.source-ai { background:#8b7cff; }
.source-dot.source-manual { background:var(--sys-gold); }
.product-action-strip {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    border-bottom:1px solid var(--sys-rule);
}
.product-action-strip a {
    min-height:52px;
    padding:0 18px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-inline-end:1px solid var(--sys-rule);
    color:var(--sys-ink);
    font-size:11px;
    font-weight:800;
}
.product-action-strip a:last-child { border-inline-end:0; }
.product-action-strip a:hover {
    background:var(--sys-paper-2);
    color:var(--sys-gold);
}
.catalog-product-grid {
    padding:18px;
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
    gap:14px;
    background:var(--sys-paper-2);
}
.catalog-product-card {
    min-height:210px;
    display:grid;
    grid-template-columns:96px minmax(0,1fr);
    border:1px solid var(--sys-rule);
    background:var(--sys-paper);
    box-shadow:0 1px 2px rgba(20,23,27,.025);
}
.catalog-product-card.source-shopify { border-top:3px solid #21a67a; }
.catalog-product-card.source-ai { border-top:3px solid #8b7cff; }
.catalog-product-card.source-manual { border-top:3px solid var(--sys-gold); }
.catalog-product-thumb {
    min-height:100%;
    display:grid;
    place-items:center;
    overflow:hidden;
    border-inline-end:1px solid var(--sys-rule);
    background:linear-gradient(145deg,var(--sys-paper-2),color-mix(in srgb,var(--sys-gold) 12%,var(--sys-paper)));
}
.catalog-product-thumb img {
    width:100%;
    height:100%;
    object-fit:cover;
}
.catalog-product-thumb span {
    color:var(--sys-gold);
    font-family:Georgia,"Times New Roman",serif;
    font-size:42px;
}
.catalog-product-body {
    min-width:0;
    padding:15px 16px;
}
.catalog-product-topline {
    display:flex;
    justify-content:space-between;
    gap:10px;
    align-items:center;
}
.catalog-product-topline small {
    color:var(--sys-faint);
    font-size:8px;
    font-weight:800;
    text-transform:uppercase;
}
.product-source-badge {
    display:inline-flex;
    align-items:center;
    gap:6px;
    color:var(--sys-muted);
    font-size:8px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.07em;
}
.product-source-badge i {
    min-width:24px;
    height:20px;
    padding:0 5px;
    display:grid;
    place-items:center;
    border:1px solid var(--sys-rule-dark);
    color:var(--sys-gold);
    font-size:8px;
    font-style:normal;
}
.product-source-badge.source-shopify i { color:#21a67a; }
.product-source-badge.source-ai i { color:#8b7cff; }
.catalog-product-body h3 {
    margin:15px 0 7px;
    font-size:15px;
    line-height:1.28;
}
.catalog-product-body p {
    min-height:42px;
    margin:0 0 13px;
    font-size:10px;
    line-height:1.55;
}
.catalog-product-body dl {
    margin:0;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    border-top:1px solid var(--sys-rule);
}
.catalog-product-body dl div {
    min-width:0;
    padding:10px 8px 0 0;
}
.catalog-product-body dt {
    margin-bottom:4px;
    color:var(--sys-faint);
    font-size:8px;
    font-weight:850;
    text-transform:uppercase;
    letter-spacing:.08em;
}
.catalog-product-body dd {
    overflow:hidden;
    margin:0;
    color:var(--sys-ink);
    font-size:11px;
    font-weight:800;
    text-overflow:ellipsis;
    white-space:nowrap;
}

@media(max-width:1280px) {
    .command-capability-map { grid-template-columns:repeat(3,1fr); }
    .command-capability-map a:nth-child(3n) { border-inline-end:0; }
    .command-capability-map a:nth-child(-n+3) { border-bottom:1px solid var(--sys-rule); }
}
@media(max-width:900px) {
    .chat-head-actions {
        width:100%;
        align-items:stretch;
        flex-direction:column;
    }
    .mode-switcher { width:100%; }
    .product-command-head {
        grid-template-columns:1fr;
        align-items:start;
    }
    .product-source-summary {
        grid-template-columns:repeat(3,1fr);
    }
}
@media(max-width:760px) {
    .primary-navigation a>span small,
    .sidebar-service-stack { display:none; }
    .command-capability-map { grid-template-columns:1fr; }
    .command-capability-map a,
    .command-capability-map a:nth-child(3n) {
        border-inline-end:0;
        border-bottom:1px solid var(--sys-rule);
    }
    .command-capability-map a:last-child { border-bottom:0; }
    .nova-chat-window {
        height:58vh!important;
        min-height:360px!important;
    }
    .composer-toolbar {
        grid-template-columns:1fr!important;
    }
    .product-action-strip,
    .product-source-summary {
        grid-template-columns:1fr;
    }
    .product-action-strip a {
        border-inline-end:0;
        border-bottom:1px solid var(--sys-rule);
    }
    .catalog-product-grid {
        grid-template-columns:1fr;
        padding:12px;
    }
    .catalog-product-card {
        grid-template-columns:82px minmax(0,1fr);
    }
}

/* Command OS balance pass: make conversation dominant, shrink the utility rail */
.nova-grid {
    grid-template-columns:minmax(0,1fr) 248px!important;
    gap:14px!important;
}
.nova-right-panel {
    width:248px;
    gap:10px!important;
    top:86px!important;
    max-height:calc(100vh - 104px)!important;
}
.nova-chat-card {
    min-width:0;
}
.chat-card-head {
    padding:18px 20px 15px!important;
}
.nova-chat-window {
    padding-inline:clamp(22px,2.5vw,40px)!important;
}
.nova-message-user {
    margin-left:22%!important;
}
.nova-message-ai {
    margin-right:6%!important;
}
.operator-card,
.nova-tool-card {
    padding:12px!important;
    border-radius:10px!important;
}
.operator-card {
    display:grid;
    grid-template-columns:32px minmax(0,1fr);
    gap:8px 10px;
    align-items:start;
}
.operator-card .operator-ring {
    width:32px!important;
    height:32px!important;
    margin:0!important;
    border-radius:7px!important;
}
.operator-card .operator-ring span {
    font-size:10px!important;
}
.operator-card h3,
.nova-tool-card h3 {
    margin:0 0 7px!important;
    font-size:12px!important;
    line-height:1.25;
}
.operator-card p,
.nova-tool-card p {
    margin:0!important;
    font-size:9px!important;
    line-height:1.35!important;
}
.operator-card>div:nth-child(2) p {
    display:none;
}
.mode-list {
    grid-column:1 / -1;
    display:grid!important;
    grid-template-columns:1fr 1fr;
    gap:6px!important;
    margin:4px 0 0!important;
}
.mode-list button {
    min-height:36px!important;
    padding:7px 8px!important;
}
.mode-list button strong {
    font-size:10px;
    line-height:1.2;
}
.mode-list button span {
    display:none!important;
}
.nova-tool-grid {
    grid-template-columns:1fr!important;
    gap:5px!important;
}
.nova-tool-grid a,
.inline-run button,
.data-row {
    min-height:34px;
    margin-bottom:5px!important;
    padding:7px 8px!important;
    border-radius:7px!important;
}
.nova-tool-grid a strong,
.data-row strong {
    display:block;
    overflow:hidden;
    font-size:10px;
    line-height:1.2;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.nova-tool-grid a span,
.data-row span {
    margin-top:2px!important;
    overflow:hidden;
    font-size:8px!important;
    line-height:1.2;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.nova-tool-card .inline-run button {
    font-size:9px!important;
    line-height:1.25;
}
.nova-tool-card>a:not(.data-row) {
    display:block;
    margin-top:6px;
    font-size:9px;
}

@media(max-width:1180px) {
    .nova-grid {
        grid-template-columns:1fr!important;
    }
    .nova-right-panel {
        width:auto;
        position:relative!important;
        top:0!important;
        max-height:none!important;
        display:grid!important;
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
    .operator-card {
        grid-column:1 / -1!important;
    }
    .nova-tool-grid {
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
    }
}

@media(max-width:760px) {
    .nova-right-panel {
        display:flex!important;
    }
    .nova-message-user,
    .nova-message-ai {
        margin-left:0!important;
        margin-right:0!important;
    }
}

/* Command OS installation planner */
.setup-command-panel {
    display:grid;
    grid-template-columns:300px minmax(0,1fr);
    gap:14px;
    align-items:stretch;
}
.setup-score-card,
.setup-request-board {
    border:1px solid var(--sys-rule);
    background:var(--sys-paper);
    box-shadow:var(--sys-shadow);
}
.setup-score-card {
    padding:20px;
    display:flex;
    flex-direction:column;
    gap:16px;
}
.setup-score-card h2 {
    margin:0;
    font-size:22px;
    line-height:1.05;
}
.setup-score-card p {
    margin:0;
    font-size:10px;
}
.setup-score-ring {
    width:132px;
    height:132px;
    margin:4px 0;
    display:grid;
    place-items:center;
    align-self:center;
    position:relative;
    border-radius:50%;
    background:
        radial-gradient(circle at center,var(--sys-paper) 0 58%,transparent 59%),
        conic-gradient(var(--sys-gold) var(--setup-score),var(--sys-rule) 0);
}
.setup-score-ring strong,
.setup-score-ring span {
    display:block;
    text-align:center;
}
.setup-score-ring strong {
    font-size:28px;
    line-height:1;
}
.setup-score-ring span {
    max-width:86px;
    margin-top:5px;
    color:var(--sys-muted);
    font-size:8px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.08em;
}
.setup-next-request {
    margin-top:auto;
    padding:13px;
    border:1px solid var(--sys-rule);
    background:var(--sys-paper-2);
}
.setup-next-request span,
.setup-next-request strong,
.setup-next-request small {
    display:block;
}
.setup-next-request span {
    color:var(--sys-gold);
    font-size:8px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.1em;
}
.setup-next-request strong {
    margin:7px 0 5px;
    font-size:12px;
}
.setup-next-request small {
    color:var(--sys-muted);
    font-size:9px;
    line-height:1.45;
}
.setup-request-board {
    min-width:0;
    display:grid;
    grid-template-rows:auto minmax(0,1fr);
}
.setup-api-summary {
    display:grid;
    grid-template-columns:1fr 1fr;
    border-bottom:1px solid var(--sys-rule);
}
.setup-api-summary>div {
    min-height:74px;
    padding:14px 16px;
    display:flex;
    flex-wrap:wrap;
    gap:7px;
    align-content:center;
    border-inline-end:1px solid var(--sys-rule);
}
.setup-api-summary>div:last-child {
    border-inline-end:0;
}
.setup-api-summary span {
    flex:1 0 100%;
    color:var(--sys-faint);
    font-size:8px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.1em;
}
.setup-api-summary strong {
    padding:5px 8px;
    border:1px solid var(--sys-rule);
    color:var(--sys-muted);
    background:var(--sys-paper-2);
    font-size:8px;
    text-transform:uppercase;
    letter-spacing:.06em;
}
.setup-api-summary strong.connected {
    color:var(--sys-green);
}
.setup-api-summary strong.missing {
    color:var(--sys-red);
}
.system-request-grid {
    max-height:430px;
    padding:12px;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    overflow:auto;
}
.system-request-card {
    min-height:168px;
    padding:13px;
    display:flex;
    flex-direction:column;
    gap:8px;
    border:1px solid var(--sys-rule);
    background:var(--sys-paper);
}
.system-request-card.mandatory {
    border-top:3px solid var(--sys-gold);
}
.system-request-card.optional {
    border-top:3px solid var(--sys-rule-dark);
}
.system-request-card.done {
    border-top-color:var(--sys-green);
}
.system-request-card header,
.system-request-card footer {
    display:flex;
    justify-content:space-between;
    gap:8px;
    align-items:center;
}
.system-request-card header span {
    color:var(--sys-faint);
    font-size:8px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.08em;
}
.system-request-card header strong {
    color:var(--sys-ink);
    font-size:12px;
}
.system-request-card h3 {
    margin:0;
    font-size:13px;
    line-height:1.25;
}
.system-request-card p {
    margin:0;
    color:var(--sys-muted);
    font-size:9px;
    line-height:1.45;
}
.system-request-card i {
    height:3px;
    display:block;
    margin-top:auto;
    position:relative;
    background:var(--sys-rule);
}
.system-request-card i:after {
    content:"";
    position:absolute;
    inset:0 auto 0 0;
    width:var(--request-progress);
    background:var(--sys-gold);
}
.system-request-card.done i:after {
    background:var(--sys-green);
}
.system-request-card footer a,
.system-request-card footer button {
    min-height:30px;
    padding:0 9px;
    border:1px solid var(--sys-rule-dark);
    border-radius:0;
    background:var(--sys-paper-2);
    color:var(--sys-ink);
    box-shadow:none;
    font-size:9px;
    font-weight:850;
}
.system-request-card footer button {
    cursor:pointer;
}
.friend-briefing-strip {
    padding:10px 14px;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:8px;
    border-top:1px solid var(--sys-rule);
    background:var(--sys-paper);
}
.friend-briefing-strip button {
    min-height:50px;
    padding:9px 11px;
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    justify-content:center;
    border:1px solid var(--sys-rule);
    border-radius:0;
    background:var(--sys-paper-2);
    color:var(--sys-ink);
    box-shadow:none;
    text-align:start;
}
.friend-briefing-strip strong,
.friend-briefing-strip span {
    display:block;
}
.friend-briefing-strip strong {
    font-size:11px;
}
.friend-briefing-strip span {
    margin-top:3px;
    color:var(--sys-muted);
    font-size:8px;
}

@media(max-width:1180px) {
    .setup-command-panel {
        grid-template-columns:1fr;
    }
    .setup-score-card {
        display:grid;
        grid-template-columns:minmax(0,1fr) 150px minmax(220px,.7fr);
        align-items:center;
    }
    .setup-next-request {
        margin-top:0;
    }
}

@media(max-width:760px) {
    .setup-score-card,
    .setup-api-summary,
    .friend-briefing-strip {
        grid-template-columns:1fr;
    }
    .system-request-grid {
        grid-template-columns:1fr;
        max-height:none;
    }
}

/* Mobile/tablet stability pass: keep every workspace screen usable on narrow viewports */
html,
body {
    max-width:100%;
    overflow-x:hidden;
}
img,
svg,
video,
iframe,
canvas {
    max-width:100%;
}
input,
select,
textarea,
button {
    min-width:0;
}
.workspace-shell,
.workspace-main,
.content-area,
.panel,
.card,
.tool-card,
.nova-chat-card {
    min-width:0;
}

@media(max-width:1180px) {
    .workspace-sidebar {
        width:min(304px,88vw)!important;
    }
    .workspace-topbar {
        padding-inline:18px!important;
    }
    .content-area {
        max-width:none!important;
        padding:24px 18px 54px!important;
    }
    .nova-command-top,
    .executive-masthead {
        min-height:0!important;
    }
    .command-hero-copy,
    .masthead-copy {
        min-height:0!important;
        padding:28px!important;
    }
    .command-context-ledger,
    .readiness-panel {
        padding:20px!important;
    }
    .command-capability-map {
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
    }
    .command-capability-map a {
        min-height:116px;
        border-bottom:1px solid var(--sys-rule);
    }
    .command-capability-map a:nth-child(2n) {
        border-inline-end:0;
    }
    .command-capability-map a:nth-last-child(-n+2) {
        border-bottom:0;
    }
    .setup-score-card {
        grid-template-columns:minmax(0,1fr) 132px!important;
    }
    .setup-next-request {
        grid-column:1 / -1;
    }
    .system-request-grid {
        max-height:none;
    }
    .nova-chat-window {
        height:clamp(390px,58vh,620px)!important;
    }
    .command-bottom-grid,
    .grid-2,
    .two-column,
    .overview-grid,
    .team-access-grid,
    .operations-grid {
        grid-template-columns:1fr!important;
    }
    .studio-layout {
        grid-template-columns:1fr!important;
    }
    .studio-preview-panel {
        position:relative!important;
        top:0!important;
    }
}

@media(max-width:820px) {
    .workspace-sidebar {
        position:fixed!important;
        inset:0 auto 0 0!important;
        z-index:120!important;
        width:min(306px,88vw)!important;
        max-width:88vw;
        transform:translateX(-105%)!important;
        transition:transform .22s ease!important;
        box-shadow:18px 0 48px rgba(0,0,0,.22)!important;
    }
    [dir="rtl"] .workspace-sidebar {
        inset:0 0 0 auto!important;
        transform:translateX(105%)!important;
        box-shadow:-18px 0 48px rgba(0,0,0,.22)!important;
    }
    .sidebar-visible .workspace-sidebar,
    [dir="rtl"] .sidebar-visible .workspace-sidebar {
        transform:translateX(0)!important;
    }
    .sidebar-backdrop {
        display:none;
        position:fixed!important;
        inset:0!important;
        z-index:110!important;
        background:rgba(3,7,18,.58)!important;
        backdrop-filter:blur(4px);
    }
    .sidebar-visible .sidebar-backdrop {
        display:block!important;
    }
    .sidebar-open,
    .sidebar-close {
        display:grid!important;
    }
    .sidebar-close {
        color:#d0d5dd!important;
        background:#172033!important;
        border-color:#2c3648!important;
    }
    .primary-navigation {
        padding-bottom:16px!important;
    }
    .primary-navigation a {
        min-height:44px!important;
    }
    .sidebar-service-stack {
        display:grid!important;
    }
    .workspace-topbar {
        height:58px!important;
        padding-inline:12px!important;
        gap:8px;
    }
    .topbar-context {
        min-width:0;
        flex:1;
    }
    .topbar-context strong {
        max-width:48vw;
    }
    .topbar-actions {
        flex:0 0 auto;
    }
    .topbar-command {
        width:38px!important;
        min-width:38px!important;
        height:38px!important;
        padding:0!important;
        justify-content:center!important;
    }
    .topbar-command span,
    .topbar-command kbd,
    .topbar-product,
    .topbar-separator {
        display:none!important;
    }
    .icon-button {
        width:38px!important;
        height:38px!important;
    }
    .content-area {
        padding:18px 12px 42px!important;
    }
    .page-header,
    .overview-header,
    .studio-page-header {
        gap:12px!important;
        margin-bottom:18px!important;
        align-items:flex-start!important;
        flex-direction:column!important;
    }
    h1 {
        font-size:clamp(25px,9vw,36px)!important;
        line-height:1.05!important;
    }
    h2 {
        font-size:20px!important;
    }
    .stats-grid,
    .overview-kpis,
    .nova-metrics {
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
        gap:8px!important;
    }
    .stat,
    .kpi-card,
    .nova-metrics>div {
        min-height:92px!important;
        padding:13px!important;
    }
    .stat strong,
    .kpi-card strong,
    .nova-metrics strong {
        font-size:22px!important;
    }
    .nova-command-top {
        grid-template-columns:1fr!important;
        border-radius:0!important;
    }
    .nova-command-top h1,
    .masthead-copy h1 {
        margin-top:18px!important;
        font-size:clamp(36px,13vw,48px)!important;
    }
    .nova-top-actions,
    .masthead-actions {
        width:100%;
        gap:8px!important;
        align-items:stretch!important;
        flex-direction:column!important;
    }
    .nova-top-actions .ghost-button,
    .nova-top-actions .text-action,
    .masthead-actions .button,
    .masthead-actions .text-action {
        width:100%;
        justify-content:center;
    }
    .command-capability-map {
        grid-template-columns:1fr!important;
    }
    .command-capability-map a,
    .command-capability-map a:nth-child(2n),
    .command-capability-map a:nth-child(3n) {
        min-height:88px;
        border-inline-end:0!important;
        border-bottom:1px solid var(--sys-rule)!important;
    }
    .command-capability-map a:last-child {
        border-bottom:0!important;
    }
    .setup-command-panel {
        grid-template-columns:1fr!important;
        gap:10px;
    }
    .setup-score-card {
        display:grid!important;
        grid-template-columns:1fr!important;
        padding:15px!important;
    }
    .setup-score-ring {
        width:112px!important;
        height:112px!important;
        justify-self:center;
    }
    .setup-api-summary {
        grid-template-columns:1fr!important;
    }
    .setup-api-summary>div {
        min-height:0;
        border-inline-end:0!important;
        border-bottom:1px solid var(--sys-rule);
    }
    .setup-api-summary>div:last-child {
        border-bottom:0;
    }
    .system-request-grid {
        grid-template-columns:1fr!important;
        padding:10px;
    }
    .system-request-card {
        min-height:0;
    }
    .system-request-card footer {
        flex-wrap:wrap;
    }
    .system-request-card footer a,
    .system-request-card footer button {
        flex:1 1 120px;
    }
    .chat-card-head {
        padding:15px!important;
        align-items:flex-start!important;
        flex-direction:column!important;
    }
    .chat-head-actions {
        width:100%;
    }
    .mode-switcher {
        width:100%;
        display:grid!important;
        grid-template-columns:1fr 1fr;
    }
    .voice-command-strip {
        margin:10px!important;
        display:grid!important;
        grid-template-columns:30px minmax(0,1fr);
        gap:9px;
    }
    .voice-command-strip .button,
    #stop-speaking {
        grid-column:1 / -1;
        width:100%;
        margin:0!important;
    }
    .nova-chat-window {
        height:56vh!important;
        min-height:330px!important;
        max-height:none!important;
        padding:14px 10px!important;
    }
    .nova-message {
        align-items:flex-start;
    }
    .nova-avatar {
        width:28px!important;
        height:28px!important;
        border-radius:7px!important;
        font-size:10px!important;
    }
    .nova-bubble {
        max-width:calc(100vw - 92px)!important;
        padding:10px 11px!important;
        font-size:13px;
        line-height:1.55!important;
        overflow-wrap:anywhere;
    }
    .friend-briefing-strip {
        grid-template-columns:1fr!important;
        padding:10px!important;
    }
    .nova-composer {
        position:relative!important;
        padding:12px!important;
    }
    .composer-toolbar,
    .composer-input-row,
    .share-grid {
        grid-template-columns:1fr!important;
    }
    .composer-toolbar .compact-check {
        justify-content:flex-start;
        white-space:normal;
    }
    .composer-input-row textarea {
        min-height:86px!important;
    }
    .mic-orb,
    .send-orb {
        width:100%;
    }
    .composer-quick-row {
        gap:6px!important;
        margin-inline:-2px;
        padding-bottom:8px;
        overflow-x:auto;
    }
    .composer-quick-row button {
        flex:0 0 auto;
        max-width:78vw;
    }
    .business-context-drawer[open] {
        padding:12px!important;
    }
    .nova-right-panel {
        width:auto!important;
        display:grid!important;
        grid-template-columns:1fr!important;
        gap:10px!important;
        visibility:visible!important;
        opacity:1!important;
        transform:none!important;
    }
    .operator-card {
        grid-template-columns:32px minmax(0,1fr)!important;
    }
    .nova-tool-grid {
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
    }
    .table-wrap {
        margin-inline:-8px!important;
        border-inline:0!important;
        overflow-x:auto!important;
        -webkit-overflow-scrolling:touch;
    }
    .table-wrap table {
        min-width:680px;
    }
    th,
    td {
        padding:10px!important;
        font-size:12px;
    }
    .catalog-product-grid,
    .studio-product-shelf,
    .shopify-product-review {
        grid-template-columns:1fr!important;
    }
    .catalog-product-card {
        grid-template-columns:76px minmax(0,1fr)!important;
        min-height:164px!important;
    }
    .product-command-head,
    .studio-panel-intro,
    .conversation-profile,
    .inbox-channel-strip {
        grid-template-columns:1fr!important;
    }
    .product-source-summary,
    .product-action-strip {
        grid-template-columns:1fr!important;
    }
    .product-action-strip a {
        border-inline-end:0!important;
        border-bottom:1px solid var(--sys-rule);
    }
    .inline-filters,
    .member-authority-form,
    .adset-form-action,
    .credential-banner {
        align-items:stretch!important;
        flex-direction:column!important;
    }
    .inline-filters input,
    .inline-filters select,
    .inline-filters button {
        width:100%;
    }
    .record-list article,
    .task-list article,
    .team-member-row,
    .operation-row {
        min-width:0;
    }
    .studio-browser {
        border-radius:12px!important;
        padding:6px!important;
    }
    .studio-browser-bar {
        height:42px!important;
        grid-template-columns:48px minmax(0,1fr) 28px!important;
        gap:6px!important;
    }
    .studio-browser iframe {
        height:62vh!important;
        min-height:420px!important;
        border-radius:8px!important;
    }
}

@media(max-width:460px) {
    .content-area {
        padding-inline:10px!important;
    }
    .stats-grid,
    .overview-kpis,
    .nova-metrics {
        grid-template-columns:1fr!important;
    }
    .command-hero-copy,
    .masthead-copy {
        padding:20px!important;
    }
    .command-context-ledger,
    .readiness-panel {
        padding:16px!important;
    }
    .command-context-ledger>div {
        align-items:flex-start;
        flex-direction:column;
        gap:4px;
        padding-block:10px;
    }
    .command-context-ledger>div strong {
        max-width:100%!important;
        text-align:start!important;
    }
    .catalog-product-card {
        grid-template-columns:1fr!important;
    }
    .catalog-product-thumb {
        min-height:150px;
        border-inline-end:0;
        border-bottom:1px solid var(--sys-rule);
    }
    .catalog-product-body dl {
        grid-template-columns:1fr;
        gap:4px;
    }
    .nova-tool-grid {
        grid-template-columns:1fr!important;
    }
    .system-request-card footer a,
    .system-request-card footer button {
        flex-basis:100%;
    }
    .member-permissions {
        inset:10% 10px auto!important;
        max-height:78vh;
        overflow:auto;
    }
}

/* Growth Objectives / AI Growth Operator */
.objective-hero {
    align-items:stretch;
    padding:28px;
    border:1px solid var(--sys-rule, var(--line));
    background:
        radial-gradient(circle at 8% 0, rgba(214,168,74,.22), transparent 34%),
        linear-gradient(135deg,var(--panel),var(--panel-2));
    box-shadow:var(--shadow);
}
.objective-hero h1 {
    max-width:920px;
    font-size:clamp(34px,5vw,62px);
    line-height:.95;
}
.objective-hero-score {
    min-width:220px;
    padding:20px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    border:1px solid var(--line);
    background:rgba(255,255,255,.42);
}
.objective-hero-score span,
.objective-hero-score small {
    color:var(--muted);
    font-size:12px;
    font-weight:850;
    text-transform:uppercase;
    letter-spacing:.08em;
}
.objective-hero-score strong {
    font-size:58px;
    line-height:1;
    letter-spacing:-.07em;
}
.objective-install-board,
.overview-installation-grid {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:10px;
    margin-bottom:18px;
}
.objective-install-board a,
.overview-installation-grid a,
.objective-requirements a {
    min-height:108px;
    padding:14px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    border:1px solid var(--line);
    background:linear-gradient(180deg,var(--panel),var(--panel-2));
    color:var(--text);
}
.objective-install-board a.connected,
.overview-installation-grid a.connected,
.objective-requirements a.connected {
    border-color:rgba(5,122,85,.38);
}
.objective-install-board a.missing,
.overview-installation-grid a.missing,
.objective-requirements a.missing {
    border-color:rgba(180,35,24,.28);
}
.objective-install-board span,
.overview-installation-grid span,
.objective-requirements span {
    color:var(--muted);
    font-size:10px;
    font-weight:950;
    text-transform:uppercase;
    letter-spacing:.1em;
}
.objective-install-board strong,
.overview-installation-grid strong,
.objective-requirements strong {
    color:var(--text);
    font-size:15px;
}
.objective-install-board small,
.overview-installation-grid small,
.objective-requirements small {
    color:var(--muted);
    font-size:11px;
    line-height:1.45;
}
.objective-layout {
    display:grid;
    grid-template-columns:minmax(360px,.8fr) minmax(0,1.2fr);
    gap:18px;
    align-items:start;
}
.objective-form {
    position:sticky;
    top:88px;
}
.objective-permissions {
    border:1px solid var(--line);
    border-radius:18px;
    padding:16px;
}
.objective-permissions legend {
    padding:0 8px;
    color:var(--primary);
    font-weight:950;
}
.objective-permissions>div {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
}
.objective-permissions label {
    min-height:96px;
    padding:12px;
    display:grid;
    grid-template-columns:18px minmax(0,1fr);
    align-items:start;
    border:1px solid var(--line);
    background:rgba(255,255,255,.28);
}
.objective-permissions input {
    width:auto;
    margin-top:3px;
}
.objective-permissions small {
    display:block;
    margin-top:4px;
    color:var(--muted);
    font-size:11px;
    line-height:1.45;
}
.objective-list {
    display:grid;
    gap:16px;
}
.objective-card {
    padding:20px;
    border:1px solid var(--line);
    background:linear-gradient(180deg,var(--panel),var(--panel-2));
    box-shadow:var(--shadow);
}
.objective-card header {
    display:flex;
    justify-content:space-between;
    gap:12px;
    align-items:flex-start;
}
.objective-card h2 {
    margin:8px 0 4px;
    font-size:28px;
    letter-spacing:-.05em;
}
.objective-progress {
    display:grid;
    grid-template-columns:138px minmax(0,1fr);
    gap:16px;
    margin:18px 0;
    align-items:center;
}
.objective-ring {
    width:132px;
    height:132px;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:
        radial-gradient(circle at center,var(--panel) 0 57%,transparent 58%),
        conic-gradient(var(--primary) var(--objective-progress),var(--line) 0);
}
.objective-ring strong,
.objective-ring span {
    display:block;
    text-align:center;
}
.objective-ring strong {
    font-size:28px;
    line-height:1;
}
.objective-ring span {
    color:var(--muted);
    font-size:10px;
    font-weight:900;
    text-transform:uppercase;
}
.objective-progress dl {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    margin:0;
    border:1px solid var(--line);
}
.objective-progress dl div {
    padding:13px;
    border-inline-end:1px solid var(--line);
}
.objective-progress dl div:last-child {
    border-inline-end:0;
}
.objective-progress dt {
    color:var(--muted);
    font-size:10px;
    font-weight:950;
    text-transform:uppercase;
}
.objective-progress dd {
    margin:6px 0 0;
    font-size:22px;
    font-weight:950;
}
.objective-estimate {
    margin-bottom:14px;
    padding:14px;
    border:1px solid var(--line);
    background:rgba(255,255,255,.28);
}
.objective-estimate.estimated {
    border-color:rgba(5,122,85,.35);
}
.objective-estimate.missing {
    border-color:rgba(154,103,0,.28);
}
.objective-estimate strong,
.objective-estimate span {
    display:block;
}
.objective-estimate p {
    margin:6px 0;
}
.objective-website-link {
    margin-bottom:14px;
    padding:14px;
    display:block;
    border:1px solid rgba(214,168,74,.36);
    background:rgba(214,168,74,.08);
}
.objective-website-link span,
.objective-website-link strong,
.objective-website-link small {
    display:block;
}
.objective-website-link strong {
    color:var(--text);
}
.objective-requirements {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
    gap:8px;
}
.objective-phases {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
    gap:8px;
    margin-top:14px;
}
.objective-phases>div {
    padding:13px;
    border:1px solid var(--line);
    background:rgba(255,255,255,.22);
}
.objective-phases span,
.objective-phases strong,
.objective-phases small {
    display:block;
}
.objective-phases span {
    color:var(--primary);
    font-size:10px;
    font-weight:950;
    text-transform:uppercase;
    letter-spacing:.1em;
}
.objective-phases small {
    margin-top:5px;
    color:var(--muted);
    line-height:1.45;
}
.objective-details {
    margin-top:14px;
    padding-top:12px;
    border-top:1px solid var(--line);
}
.objective-details summary {
    cursor:pointer;
    font-weight:950;
}
.objective-events {
    display:grid;
    gap:8px;
    margin-top:12px;
}
.objective-events>div {
    padding:12px;
    border:1px solid var(--line);
    background:rgba(255,255,255,.20);
}
.objective-events span,
.objective-events strong,
.objective-events small {
    display:block;
}
.objective-events span {
    color:var(--muted);
    font-size:11px;
}
.overview-installation-board {
    display:grid;
    grid-template-columns:320px minmax(0,1fr);
    gap:14px;
    margin:18px 0;
    padding:18px;
    border:1px solid var(--line);
    background:linear-gradient(135deg,rgba(214,168,74,.12),rgba(255,255,255,.22));
    box-shadow:var(--shadow);
}
.overview-installation-copy h2 {
    margin-bottom:8px;
    letter-spacing:-.04em;
}
.overview-installation-copy a {
    font-weight:950;
}
.lead-ai-row {
    display:flex;
    gap:6px;
    flex-wrap:wrap;
    margin:10px 0 0;
}
.qualification-grid {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
    gap:10px;
    margin-top:14px;
}
.qualification-grid>div,
.qualification-attribution {
    padding:14px;
    border:1px solid var(--line);
    border-radius:12px;
    background:color-mix(in srgb,var(--primary) 3%,var(--panel));
}
.qualification-grid span,
.qualification-grid strong,
.qualification-attribution strong,
.qualification-attribution span,
.qualification-attribution a {
    display:block;
}
.qualification-grid span {
    color:var(--muted);
    font-size:10px;
    font-weight:850;
    letter-spacing:.08em;
    text-transform:uppercase;
}
.qualification-grid strong {
    margin-top:6px;
    font-size:14px;
    line-height:1.45;
}
.qualification-attribution {
    margin-top:12px;
}
.qualification-attribution span {
    margin:5px 0;
    color:var(--muted);
}
@media(max-width:1180px) {
    .objective-layout,
    .overview-installation-board {
        grid-template-columns:1fr;
    }
    .objective-form {
        position:relative;
        top:0;
    }
}
@media(max-width:760px) {
    .objective-hero {
        padding:18px;
    }
    .objective-hero-score {
        width:100%;
    }
    .objective-permissions>div,
    .objective-progress,
    .objective-progress dl,
    .objective-card header {
        grid-template-columns:1fr;
    }
    .objective-card header {
        display:grid;
    }
    .objective-progress dl div {
        border-inline-end:0;
        border-bottom:1px solid var(--line);
    }
    .objective-progress dl div:last-child {
        border-bottom:0;
    }
}
