@import "https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@500;600;700;800&family=Inter:wght@400;500;600;700;800&display=swap";
:root{--background:#faf9f7;--surface:#fff;--surface-low:#f4f3f1;--surface-mid:#efeeec;--surface-high:#e9e8e6;--ink:#1a1c1b;--muted:#45474c;--faint:#75777c;--line:#c5c6cc;--line-soft:#e5e7eb;--primary:#040b16;--primary-soft:#1a222e;--secondary:#944a00;--secondary-bright:#fc8f34;--secondary-soft:#ffdcc5;--marge-teal:#0c6b5a;--marge-mint:#d9f2eb;--marge-plum:#4a214f;--marge-rose:#f8dfe8;--ai:#0b0e70;--ai-text:#373c95;--ai-soft:#e0e0ff;--success:#126b45;--success-soft:#dff4e8;--warning:#8a6200;--warning-soft:#fff1c7;--danger:#ba1a1a;--danger-soft:#ffdad6;color:var(--ink);background:var(--background);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}html{background:var(--background)}body{margin:0}button,input,select,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background:#dadad8;border-radius:999px}h1,h2,h3,h4,p{margin-top:0}h1,h2,h3,h4{color:var(--primary);font-family:Hanken Grotesk,Inter,sans-serif}h1{margin-bottom:14px;font-size:clamp(2.25rem,5vw,3rem);font-weight:800;line-height:1.08}h2{font-size:1.5rem;font-weight:700;line-height:1.25}h3{font-size:1.15rem;line-height:1.3}h4{margin-bottom:0;font-size:1rem;line-height:1.3}a{color:var(--primary);font-weight:700}.shell{gap:24px;max-width:1440px;min-height:100vh;margin:0 auto;padding:48px 64px;display:grid}.hero{align-content:flex-end;min-height:32vh}.eyebrow{color:var(--secondary);letter-spacing:.08em;text-transform:uppercase;margin:0 0 12px;font-size:.78rem;font-weight:800}.lede{color:var(--muted);max-width:760px;font-size:1.06rem;line-height:1.65}.panel,.vault-section,.metric-card,.plan-card,.integration-card,.campaign-card,.approval-card,.library-search,.chat-panel,.chat-input,.auth-form{background:var(--surface);border:1px solid var(--line-soft);border-radius:16px;box-shadow:0 2px 12px #040b160a}.panel{padding:28px}ul{gap:10px;margin:0;padding-left:20px;display:grid}.plan-grid,.metric-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;display:grid}.plan-card,.metric-card{gap:8px;padding:22px;display:grid}.plan-card p,.metric-card p{margin-bottom:0}.metric-card span{color:var(--primary);font-family:Hanken Grotesk,Inter,sans-serif;font-size:2.35rem;font-weight:800}.metric-card strong{color:var(--muted);text-transform:uppercase;font-size:.85rem}.metric-card.approval-metric{color:var(--primary);text-decoration:none}.metric-card.approval-metric:hover{border-color:var(--secondary-bright);box-shadow:0 0 0 3px var(--secondary-soft)}.section-action{margin:18px 0 0}.workflow-rail{background:var(--primary);color:#fff;border-radius:14px;justify-content:space-between;align-items:center;gap:24px;margin:0 0 24px;padding:16px 18px;display:flex}.workflow-rail .eyebrow{color:var(--secondary-bright);margin-bottom:5px}.workflow-rail strong{font-family:Hanken Grotesk,Inter,sans-serif;font-size:1.05rem;display:block}.workflow-rail ol{align-items:center;gap:10px;margin:0;padding:0;list-style:none;display:flex}.workflow-rail li{align-items:center;gap:6px;display:flex}.workflow-rail li:not(:last-child):after{color:#ffffff8c;content:">";margin-left:4px}.workflow-rail li>span{background:#ffffff24;border:1px solid #ffffff40;border-radius:50%;justify-content:center;align-items:center;width:24px;height:24px;font-size:.76rem;font-weight:800;display:inline-flex}.workflow-rail li.is-current>span{background:var(--secondary-bright);border-color:var(--secondary-bright);color:var(--primary)}.workflow-rail a{color:#fff;white-space:nowrap;font-size:.82rem;text-decoration:none}.workflow-rail a:hover{color:var(--secondary-bright)}.app-shell{min-height:100vh}.error-shell{align-items:center;min-height:100vh;padding:24px;display:grid}.error-shell section{gap:16px;max-width:620px;margin:0 auto;display:grid}.sidebar{background:var(--surface);border-right:1px solid var(--line);color:var(--ink);z-index:50;flex-direction:column;gap:28px;width:256px;min-height:100vh;padding:32px 24px;display:flex;position:fixed;inset:0 auto 0 0}.sidebar-brand{align-items:center;gap:14px;text-decoration:none;display:flex}.brand-mark{background:var(--primary);color:#fff;border-radius:8px;justify-content:center;align-items:center;width:44px;height:44px;display:inline-flex}.brand-mark-logo{color:#fff;font-family:Hanken Grotesk,Inter,sans-serif;font-size:1.45rem;font-weight:800}.sidebar-brand-copy{gap:3px;display:grid}.sidebar-brand strong{color:var(--primary);font-family:Hanken Grotesk,Inter,sans-serif;font-size:1.55rem;line-height:1}.sidebar-brand-copy span{color:var(--muted);font-size:.88rem}.sidebar nav{flex-direction:column;flex:1;gap:18px;min-height:0;display:flex;overflow-y:auto}.sidebar-nav-group{gap:4px;display:grid}.sidebar-nav-group>strong{color:var(--faint);letter-spacing:.08em;text-transform:uppercase;padding:0 16px 4px;font-size:.72rem}.sidebar a{color:var(--muted);border-radius:10px;align-items:center;gap:14px;min-height:44px;padding:10px 16px;text-decoration:none;display:flex}.sidebar a[aria-current=page]{background:var(--surface-low);border-right:4px solid var(--secondary);color:var(--primary);padding-right:12px}.sidebar a:hover{background:var(--surface-mid);color:var(--primary)}.sidebar-utility{border-top:1px solid var(--line);gap:4px;padding-top:16px;display:grid}.sidebar-form button,.auth-form button,.action-stack button,.button-link,.campaign-card button,.inline-form button,.approval-actions button,.plain-list button,.schedule-form button,.job-actions button,.library-search button,.admin-search button,.asset-form button,.admin-form button,.admin-table button,.chat-input button{background:var(--primary);color:#fff;border:0;border-radius:10px;min-height:42px;padding:11px 16px;font-weight:800}.button-link{justify-content:center;text-decoration:none;display:inline-flex}.sidebar-form button{color:var(--muted);text-align:left;background:0 0;justify-content:flex-start;align-items:center;gap:14px;display:flex}.sidebar-form button:hover{background:var(--surface-mid);color:var(--primary)}.nav-icon{flex:none}.app-topbar{border-bottom:1px solid var(--line);z-index:40;background:#faf9f7f5;justify-content:space-between;align-items:center;gap:24px;height:88px;padding:16px 48px;display:flex;position:fixed;top:0;left:256px;right:0}.topbar-search{background:var(--surface-low);color:var(--muted);border-radius:999px;align-items:center;gap:10px;width:100%;max-width:320px;padding:0 16px;display:flex}.topbar-search input{color:var(--ink);background:0 0;border:0;outline:0;width:100%;min-height:44px}.topbar-search:focus-within{box-shadow:0 0 0 3px #040b161f}.topbar-actions{align-items:center;gap:12px;display:flex}.workspace-switch,.topbar-create,.topbar-usage,.topbar-icon{color:var(--primary);align-items:center;gap:8px;text-decoration:none;display:inline-flex}.workspace-switch{margin-right:2px;font-size:1.08rem}.topbar-create{background:var(--secondary);color:#fff;border-radius:10px;padding:11px 16px;font-size:.88rem;font-weight:800}.topbar-create:hover{background:var(--secondary-bright);color:var(--primary)}.topbar-usage{background:var(--marge-mint);color:var(--marge-teal);border:1px solid #0c6b5a38;border-radius:999px;padding:8px 12px;font-size:.78rem;font-weight:700}.topbar-icon{color:var(--muted);border-radius:999px;justify-content:center;width:40px;height:40px}.topbar-icon:hover{background:var(--surface-low);color:var(--primary)}.auth-shell{grid-template-columns:minmax(0,1fr) minmax(280px,420px);align-content:center}.auth-hero{min-height:auto}.auth-form{align-self:center;gap:14px;padding:24px;display:grid}.auth-form label,.schedule-form label,.library-search label,.admin-search label,.asset-form label,.admin-form label{color:var(--muted);gap:7px;font-size:.88rem;font-weight:800;display:grid}.asset-form .checkbox-row{align-items:center;gap:9px;display:flex}.auth-form input,.schedule-form input,.schedule-form select,.library-search input,.library-search select,.admin-search input,.asset-form input,.admin-form input,.approval-actions input,.approval-actions textarea,.caption-edit-form textarea,.chat-input textarea{background:var(--surface-low);color:var(--ink);border:1px solid #0000;border-radius:10px;padding:11px 12px}.auth-form input:focus,.schedule-form input:focus,.schedule-form select:focus,.library-search input:focus,.library-search select:focus,.admin-search input:focus,.asset-form input:focus,.admin-form input:focus,.approval-actions input:focus,.approval-actions textarea:focus,.caption-edit-form textarea:focus,.chat-input textarea:focus{border-color:var(--primary);outline:none;box-shadow:0 0 0 3px #040b161f}.workspace{background:var(--background);gap:32px;min-height:100vh;margin-left:256px;padding:120px 48px 64px;display:grid}.workspace-header{background:0 0;border:0;border-radius:0;justify-content:space-between;align-items:flex-start;gap:24px;padding:0;display:flex}.workspace-header h1{margin-bottom:10px}.score-tile{background:var(--primary);color:#fff;text-align:right;border-radius:16px;gap:2px;min-width:150px;padding:20px;display:grid}.score-tile span{color:#fff;font-family:Hanken Grotesk,Inter,sans-serif;font-size:2.25rem;font-weight:800}.score-tile small,.plain-list small,.table-row small,.section-heading span,.publishing-job span,.content-map span,.content-map small,.asset-card span,.asset-card small,.admin-table span,.admin-table small,.integration-note,.workflow-note{color:var(--muted);line-height:1.45}.workflow-note{background:var(--surface-low);border:1px solid var(--line-soft);border-radius:10px;margin:10px 0 12px;padding:9px 11px;font-size:.85rem;font-weight:800;display:block}.status-strip,.suggestion-row{flex-wrap:wrap;gap:10px;display:flex}.status-pill,.suggestion-row button,.suggestion-row a,.connection-status{background:var(--surface);border:1px solid var(--line);color:var(--muted);border-radius:999px;align-items:center;gap:8px;padding:9px 13px;font-size:.9rem;font-weight:800;text-decoration:none;display:inline-flex}.status-pill span{background:var(--danger);border-radius:50%;width:8px;height:8px}.status-pill[data-done=true] span{background:var(--success)}.vault-grid,.planning-grid,.integration-grid,.campaign-list,.admin-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;display:grid}.vault-section{gap:18px;padding:24px;display:grid}.vault-section.wide{grid-column:1/-1}.section-heading{justify-content:space-between;align-items:center;gap:16px;display:flex}.section-heading h2,.section-heading h3{margin:0}.section-heading span,.connection-status{text-transform:capitalize}.fact-list{grid-template-columns:160px minmax(0,1fr);gap:12px 20px;margin:0;display:grid}.fact-list.compact{grid-template-columns:120px minmax(0,1fr)}.fact-list dt{color:var(--muted);font-weight:800}.fact-list dd{margin:0}.swatches{gap:10px;display:flex}.swatch{border:1px solid var(--line);border-radius:12px;width:42px;height:42px;box-shadow:0 2px 8px #040b1614}.voice-note{color:var(--muted);margin-bottom:0;line-height:1.65}.tone-grid,.capability-list{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0;display:grid}.tone-grid div,.capability-list div,.content-map div,.asset-card,.content-card,.draft-preview,.table-row,.plain-list li,.publishing-job,.plan-row{background:var(--surface-low);border:1px solid #0000;border-radius:12px}.tone-grid div,.capability-list div{gap:4px;padding:12px;display:grid}.tone-grid span,.capability-list dt{color:var(--muted);font-size:.82rem;font-weight:800}.table-list,.plain-list,.content-list,.asset-form,.asset-list,.admin-table,.publishing-list,.content-map,.approval-list{gap:10px;margin:0;padding:0;display:grid}.plain-list{list-style:none}.table-row,.plain-list li{grid-template-columns:1.5fr 1fr 120px 140px;align-items:center;gap:10px;padding:13px;display:grid}.performance-row{grid-template-columns:1.5fr .8fr repeat(3,.8fr) 90px}.plain-list li{grid-template-columns:1fr;align-items:flex-start}.connection-status.CONNECTED,.capability-list div[data-enabled=true] dd{background:var(--marge-mint);color:var(--marge-teal)}.connection-status.DISCONNECTED,.connection-status.EXPIRED,.connection-status.PERMISSION_MISSING,.connection-status.PENDING_AUTHORIZATION,.capability-list dd{background:var(--marge-rose);color:var(--marge-plum)}.permission-block{gap:8px;display:grid}.permission-block ul{background:var(--surface-low);border-radius:12px;padding:12px 12px 12px 28px;font-size:.9rem}.warning-note{background:var(--warning-soft);color:var(--warning);border-radius:12px;padding:11px 13px}.success-note{background:var(--success-soft);color:var(--success);border-radius:12px;padding:11px 13px}.form-note{color:var(--muted);margin:0;font-size:.9rem}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.action-stack{align-items:flex-end;gap:10px;display:grid}.action-stack form:nth-child(2) button,.campaign-card button,.plain-list button,.library-search button,.asset-form button{background:var(--secondary)}.plan-row{grid-template-columns:1.4fr 1fr 1fr 150px 90px;gap:8px 12px;padding:14px;display:grid}.clickable-row{color:var(--ink);font-weight:500;text-decoration:none}.clickable-row:hover{border-color:var(--secondary-bright);box-shadow:0 0 0 3px var(--secondary-soft)}.plan-row p{color:var(--muted);grid-column:1/-1;margin:0;line-height:1.5}.campaign-card{gap:16px;padding:22px;display:grid}.button-link.small{min-height:34px;padding:8px 10px;font-size:.82rem}.content-map div,.source-fact-list div,.asset-card,.content-card{gap:8px;padding:13px;display:grid}.empty-state{background:var(--surface-low);border:1px dashed var(--line);border-radius:12px;gap:10px;padding:18px;display:grid}.empty-state p{color:var(--muted);margin:0;line-height:1.5}.empty-state .inline-form{justify-content:flex-start}.artwork-gallery{grid-template-columns:repeat(auto-fit,minmax(150px,220px));gap:12px;display:grid}.artwork-preview{color:var(--marge-teal);background:#fff;border:1px solid #0c6b5a33;border-radius:10px;gap:6px;padding-bottom:8px;text-decoration:none;display:grid;overflow:hidden}.artwork-preview img{aspect-ratio:1;background:var(--surface-low);object-fit:cover;width:100%;display:block}.artwork-preview span{padding:0 9px;font-size:.8rem;font-weight:800}.content-card[data-selected=true],.integration-card[data-selected=true]{border-color:var(--secondary-bright);box-shadow:0 0 0 3px var(--secondary-soft)}.source-fact-list{gap:8px;display:grid}.source-fact-list div{background:var(--surface-low);border:1px solid var(--line)}.source-summary{color:var(--muted);font-weight:800;display:block}.message-actions{flex-wrap:wrap;align-items:center;gap:8px;margin-top:4px;display:flex}.message-actions a{background:var(--marge-mint);color:var(--marge-teal);border:1px solid #0c6b5a38;border-radius:999px;padding:7px 10px;font-size:.84rem;font-weight:900;text-decoration:none}.message-actions small{color:var(--muted);flex-basis:100%;line-height:1.45}.revision-note{background:var(--warning-soft);color:var(--warning);border:1px solid #8a620038;border-radius:12px;gap:5px;padding:12px;display:grid}.revision-note span,.revision-note small{color:var(--muted);line-height:1.45}.creative-brief{background:var(--marge-mint);border:1px solid #0c6b5a33;border-radius:12px;gap:12px;padding:14px;display:grid}.creative-brief p{color:var(--marge-teal);margin-bottom:0;line-height:1.55}.creative-note{color:var(--marge-teal);font-weight:800;line-height:1.45}.creative-brief .section-heading span{color:var(--marge-teal);background:#fff;border-radius:999px;padding:6px 10px;font-size:.78rem;font-weight:800}.creative-brief .fact-list{background:#fff;border-radius:10px;padding:12px}.strategy-card,.quality-gates{background:#fff;border:1px solid #0c6b5a33;border-radius:12px;gap:12px;padding:14px;display:grid}.strategy-card{border-left:5px solid var(--marge-teal)}.strategy-card.compact{background:var(--marge-mint)}.strategy-card .section-heading span,.quality-gates .section-heading span{background:var(--marge-mint);color:var(--marge-teal);border-radius:999px;padding:6px 10px;font-size:.78rem;font-weight:800}.cost-preview{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;display:grid}.cost-preview div{background:var(--surface-low);border:1px solid var(--line-soft);border-radius:12px;gap:4px;padding:12px;display:grid}.cost-preview span,.trust-list small{color:var(--muted);line-height:1.45}.trust-list{gap:6px;display:grid}.studio-grid,.calendar-grid{grid-template-columns:minmax(280px,.8fr) minmax(0,1.5fr);gap:16px;display:grid}.calendar-board{overflow:hidden}.view-toggle{background:var(--surface-low);border:1px solid var(--line-soft);border-radius:10px;gap:4px;padding:4px;display:inline-flex}.view-toggle a{color:var(--muted);border-radius:8px;padding:8px 11px;font-size:.86rem;text-decoration:none}.view-toggle a[aria-current=page]{background:var(--primary);color:#fff}.calendar-slots{gap:10px;display:grid}.calendar-slots.day{grid-template-columns:minmax(0,1fr)}.calendar-slots.week{grid-template-columns:repeat(7,minmax(120px,1fr));overflow-x:auto}.calendar-slots.month{grid-template-columns:repeat(auto-fit,minmax(120px,1fr))}.calendar-slot{background:var(--surface-low);border:1px solid var(--line-soft);border-radius:12px;gap:7px;min-height:118px;padding:12px;display:grid}.calendar-slot span,.calendar-slot small{color:var(--muted);line-height:1.4}.library-grid{grid-template-columns:minmax(0,1.4fr) minmax(280px,.7fr);gap:16px;display:grid}.content-card h3,.content-card p,.approval-card p,.asset-card p,.integration-card h2,.integration-card p{margin-bottom:0}.inline-form{justify-content:flex-end;display:flex}.draft-preview{border-color:var(--line);gap:8px;padding:16px;line-height:1.55;display:grid}.approval-card{gap:16px;padding:24px;display:grid}.approval-actions,.admin-form{gap:10px;display:grid}.approval-actions label{color:var(--muted);gap:7px;font-size:.88rem;font-weight:800;display:grid}.decision-followup{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.approval-actions textarea{resize:vertical;min-height:72px;line-height:1.5}.approval-actions div,.job-actions,.asset-card div,.button-row{flex-wrap:wrap;gap:8px;display:flex}.approval-actions button[data-variant=secondary]{background:var(--secondary-bright);color:var(--primary)}.approval-actions button[data-variant=danger],.job-actions button[data-variant=danger]{background:var(--danger)}.schedule-form,.library-search,.admin-search{align-items:flex-end;gap:12px;display:grid}.schedule-form{grid-template-columns:minmax(180px,1fr) minmax(150px,.7fr) 112px}.schedule-readiness{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0;display:grid}.schedule-readiness div{background:var(--surface);border:1px solid var(--line-soft);border-radius:10px;gap:4px;padding:10px;display:grid}.schedule-readiness span{color:var(--muted);font-size:.78rem;font-weight:800}.platform-readiness-list{gap:8px;display:grid}.platform-readiness-list div{background:var(--success-soft);color:var(--success);border:1px solid #0000;border-radius:10px;gap:5px;padding:10px;display:grid}.platform-readiness-list div[data-status=blocked],.publishing-job[data-readiness=blocked]{background:var(--warning-soft);border-color:#8a620040}.platform-readiness-list span{color:var(--muted);line-height:1.45}.platform-readiness-list a,.publishing-job a{font-size:.86rem}.schedule-form button:disabled{cursor:not-allowed;opacity:.55}.publishing-job{grid-template-columns:1.2fr .8fr .9fr 1.2fr auto;align-items:center;gap:12px;padding:14px;display:grid}.publishing-job div,.admin-table .table-row div{gap:4px;display:grid}.library-search{grid-template-columns:minmax(220px,1fr) 180px 210px 110px;padding:18px}.admin-search{background:var(--surface);border:1px solid var(--line-soft);border-radius:16px;grid-template-columns:minmax(220px,1fr) 110px;padding:18px}.admin-table .table-row{grid-template-columns:minmax(160px,1.3fr) repeat(3,minmax(110px,.8fr));gap:12px;padding:13px;display:grid}.admin-table.compact-table .table-row{grid-template-columns:minmax(0,1fr) 90px}.asset-card div{justify-content:space-between;align-items:center}.conversation-list{border-top:1px solid var(--line);gap:8px;padding-top:18px;display:grid}.conversation-list strong{color:var(--primary)}.conversation-list a,.conversation-list span{color:var(--muted);font-size:.9rem;line-height:1.4;text-decoration:none}.chat-workspace{grid-template-rows:auto auto minmax(360px,1fr) auto}.chat-panel{align-content:flex-end;gap:16px;min-height:420px;padding:24px;display:grid;overflow:hidden}.chat-message,.empty-chat{border-radius:18px;gap:8px;max-width:780px;padding:18px;display:grid}.chat-message[data-role=USER]{background:var(--primary);color:#fff;justify-self:end}.chat-message[data-role=USER] strong,.chat-message[data-role=USER] span{color:#fff}.chat-message[data-role=ASSISTANT],.empty-chat{border-left:5px solid var(--ai);background:linear-gradient(#fff 0%,#f7f7ff 100%);justify-self:start;box-shadow:0 0 22px #0b0e7014}.chat-message[data-role=SYSTEM]{background:var(--surface-low);border:1px solid var(--line);color:var(--muted);justify-self:stretch}.chat-message div{align-items:center;gap:10px;display:flex}.chat-message span{color:var(--ai-text);text-transform:capitalize;font-size:.8rem;font-weight:800}.assistant-byline{flex-wrap:wrap;align-items:center;gap:8px;min-width:0;display:flex}.chat-message .assistant-byline-copy{align-items:flex-start;gap:1px;min-width:0;display:grid}.assistant-byline>span{overflow-wrap:anywhere}.chat-message .assistant-byline-copy small{color:var(--ai-text);font-size:.75rem;font-weight:700;line-height:1.2}.chat-message p,.empty-chat p{margin-bottom:0;line-height:1.55}.empty-chat-identity{align-items:center;gap:12px;display:flex}.empty-chat-identity>div{gap:2px;display:grid}.empty-chat-identity span{color:var(--ai-text);font-size:.78rem;font-weight:800}.marge-identity-lockup{align-items:center;gap:14px;margin-bottom:18px;display:flex}.marge-identity-lockup .eyebrow{margin-bottom:2px}.marge-identity-title,.marge-identity-note{margin-bottom:0}.marge-identity-title{color:var(--primary);font-family:Hanken Grotesk,Inter,sans-serif;font-size:1rem;font-weight:800;line-height:1.25}.marge-identity-note{color:var(--muted);margin-top:2px;font-size:.84rem;line-height:1.4}.marge-avatar{flex:none;display:block}.marge-avatar-header{width:56px;height:56px}.marge-avatar-message{width:32px;height:32px}.marge-avatar-empty{width:48px;height:48px}@media (prefers-reduced-motion:reduce){.marge-avatar{transition:none;animation:none}}@media (forced-colors:active){.marge-avatar{forced-color-adjust:auto}.marge-identity-title,.marge-identity-note,.assistant-byline-copy small,.empty-chat-identity span{color:canvastext}}.chat-input{gap:10px;padding:16px;display:grid}.chat-input label{color:var(--muted);font-weight:800}.chat-input div{grid-template-columns:minmax(0,1fr) 46px 96px;align-items:stretch;gap:10px;display:grid}.chat-input textarea{resize:vertical;min-height:84px;line-height:1.5}.chat-input button{justify-content:center;align-items:center;gap:8px;display:inline-flex}.chat-input .voice-button{background:var(--marge-plum);min-width:46px;padding-inline:0}.chat-input .voice-button[aria-pressed=true]{background:var(--secondary)}.home-dashboard{grid-template-columns:minmax(0,1.5fr) minmax(320px,.75fr);gap:24px;display:grid}.command-card{min-height:560px}.brand-panel{align-content:flex-start}.brand-preview{background:var(--surface-low);border:1px solid var(--line);border-radius:14px;gap:12px;padding:18px;display:grid}.brand-swatches{gap:10px;display:flex}.brand-swatches span{border:1px solid var(--line);border-radius:12px;width:48px;height:48px}.billing-workspace{gap:20px}.billing-grid{grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);gap:16px;display:grid}.billing-grid .wide,.billing-plan-panel{grid-column:1/-1}.billing-usage-card strong{color:var(--secondary);white-space:nowrap}.usage-meter{background:var(--surface-high);border-radius:999px;height:24px;overflow:hidden;box-shadow:inset 0 1px 3px #040b161f}.usage-meter span{background:linear-gradient(90deg, var(--ai), var(--ai-text));border-radius:inherit;min-width:8px;height:100%;display:block}.usage-scale{color:var(--muted);justify-content:space-between;font-size:.86rem;font-weight:800;display:flex}.billing-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0;display:grid}.billing-metrics div{background:var(--surface-low);border-radius:12px;gap:4px;padding:14px;display:grid}.billing-metrics dt{color:var(--muted);text-transform:uppercase;font-size:.8rem;font-weight:800}.billing-metrics dd{margin:0}.billing-plan-panel{gap:14px;display:grid}.billing-plan-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;display:grid}.billing-plan-card{background:var(--surface);border:1px solid var(--line-soft);border-radius:16px;gap:14px;padding:22px;display:grid;box-shadow:0 2px 12px #040b160a}.billing-plan-card[data-current=true]{border-color:var(--secondary-bright);box-shadow:0 0 0 3px var(--secondary-soft)}.billing-plan-card div:first-child{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.billing-plan-card h3,.billing-plan-card p{margin-bottom:0}.billing-plan-card>strong{color:var(--primary);font-family:Hanken Grotesk,Inter,sans-serif;font-size:2rem}.billing-plan-card p{color:var(--muted);line-height:1.55}.billing-plan-card .plan-fee-note{background:var(--marge-mint);color:var(--marge-teal);border-radius:10px;padding:10px;font-weight:800}.billing-plan-card span{background:var(--surface-low);border:1px solid var(--line);color:var(--muted);border-radius:999px;padding:6px 10px;font-size:.8rem;font-weight:800}.billing-plan-card form{display:grid}.billing-plan-card button{background:var(--primary);color:#fff;border:0;border-radius:10px;min-height:42px;padding:11px 16px;font-weight:800}.billing-plan-card button:disabled{cursor:not-allowed;opacity:.56}.billing-event-list{gap:10px;display:grid}.billing-event{background:var(--surface-low);border-radius:12px;grid-template-columns:minmax(0,1fr) 150px minmax(0,1.2fr);align-items:center;gap:10px;padding:13px;display:grid}.billing-event div{gap:4px;display:grid}.billing-event span{color:var(--primary);text-transform:capitalize;font-weight:800}.billing-event small{color:var(--muted);line-height:1.45}.billing-notice{border-radius:14px;margin:0;padding:14px 16px;font-weight:700;line-height:1.5}.billing-notice.success{background:var(--success-soft);color:var(--success)}.billing-notice.warning{background:var(--warning-soft);color:var(--warning)}.billing-notice.danger{background:var(--danger-soft);color:var(--danger)}.setup-workspace{gap:20px}.setup-next-step{border-color:var(--secondary-soft)}.setup-progress{background:var(--surface-high);border-radius:999px;height:18px;overflow:hidden}.setup-progress span{background:linear-gradient(90deg, var(--success), var(--secondary-bright));border-radius:inherit;min-width:8px;height:100%;display:block}.setup-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;display:grid}.setup-card{background:var(--surface);border:1px solid var(--line-soft);border-radius:16px;gap:14px;padding:20px;display:grid;box-shadow:0 2px 12px #040b160a}.setup-card[data-status=done]{border-color:#126b4559}.setup-card[data-status=ready]{border-color:var(--secondary-bright);box-shadow:0 0 0 3px var(--secondary-soft)}.setup-card[data-status=blocked]{background:var(--surface-low)}.setup-card-index{justify-content:space-between;align-items:center;display:flex}.setup-card-index span{background:var(--primary);color:#fff;border-radius:999px;justify-content:center;align-items:center;width:34px;height:34px;font-weight:800;display:inline-flex}.setup-card-index strong{background:var(--surface-low);border:1px solid var(--line);color:var(--muted);text-transform:uppercase;border-radius:999px;padding:6px 10px;font-size:.78rem}.setup-card h2,.setup-card p{margin-bottom:0}.setup-card p,.setup-card small{color:var(--muted);line-height:1.5}.setup-card a{background:var(--primary);color:#fff;border-radius:10px;justify-content:center;align-items:center;min-height:42px;padding:11px 16px;font-weight:800;text-decoration:none;display:inline-flex}.setup-card[data-status=blocked] a{background:var(--surface-high);color:var(--muted)}.setup-signal-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;display:grid}.settings-workspace{gap:20px}.settings-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;display:grid}.settings-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.settings-form-grid.single-column{grid-template-columns:1fr}.settings-form-grid label,.settings-option-list label,.settings-toggle{color:var(--muted);gap:7px;font-size:.88rem;font-weight:800;display:grid}.settings-form-grid input{background:var(--surface-low);color:var(--ink);border:1px solid #0000;border-radius:10px;padding:11px 12px}.settings-form-grid input:focus{border-color:var(--primary);outline:none;box-shadow:0 0 0 3px #040b161f}.settings-option-list{gap:10px;display:grid}.settings-option-list label,.settings-toggle{background:var(--surface-low);border:1px solid #0000;border-radius:12px;grid-template-columns:auto minmax(0,1fr);align-items:flex-start;padding:12px}.settings-option-list input,.settings-toggle input{margin-top:4px}.settings-option-list span,.settings-toggle span{gap:4px;display:grid}.settings-option-list small,.settings-toggle small{color:var(--muted);font-weight:600;line-height:1.45}.compact-options{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-submit{background:var(--surface);border:1px solid var(--line-soft);border-radius:16px;grid-column:1/-1;justify-content:flex-end;align-items:center;padding:18px;display:flex}.settings-submit button{background:var(--primary);color:#fff;border:0;border-radius:10px;min-height:42px;padding:11px 16px;font-weight:800}@media (max-width:900px){.shell{padding:32px 24px}.app-shell{display:block}.sidebar{width:auto;min-height:auto;padding:20px 24px;position:static}.sidebar nav{flex-flow:wrap;overflow:visible}.sidebar nav a{flex:220px}.sidebar-utility{grid-template-columns:repeat(2,minmax(0,1fr))}.sidebar-form{grid-column:1/-1}.app-topbar{gap:16px;height:auto;padding:14px 24px;position:sticky;left:0}.topbar-search{max-width:none}.workspace{padding:32px 24px 48px;margin-left:0;padding:22px 16px}.workspace-header{border-radius:18px;align-items:stretch;padding:22px;display:grid}.billing-grid,.billing-plan-grid,.billing-metrics{grid-template-columns:1fr}.billing-event{grid-template-columns:1fr;align-items:flex-start}.setup-grid,.setup-signal-grid,.settings-grid,.settings-form-grid,.compact-options{grid-template-columns:1fr}.score-tile{text-align:left}.home-dashboard,.vault-grid,.admin-grid,.calendar-grid,.library-grid,.library-search,.admin-search,.fact-list,.fact-list.compact,.integration-grid,.planning-grid,.campaign-list,.studio-grid,.plan-row,.tone-grid,.capability-list,.table-row,.admin-table .table-row,.chat-input div,.publishing-job,.schedule-readiness,.schedule-form{grid-template-columns:1fr}}@media (max-width:640px){h1{font-size:2rem}.shell{padding:24px 16px}.hero{min-height:auto}.auth-shell,.form-grid{grid-template-columns:1fr}.sidebar{gap:18px;padding:24px 16px}.sidebar nav{flex-direction:column}.sidebar nav a{flex-basis:auto}.sidebar-utility{grid-template-columns:1fr}.sidebar-form{grid-column:auto}.app-topbar{flex-direction:column;align-items:stretch;padding:12px 16px}.topbar-actions{justify-content:space-between}.workspace-switch{min-width:0}.workspace-switch strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.chat-message{max-width:100%}.marge-identity-lockup{align-items:flex-start}.marge-avatar-header{width:48px;height:48px}.workflow-rail{align-items:flex-start;gap:14px;display:grid}.workflow-rail ol{flex-wrap:wrap;align-items:flex-start}.workflow-rail li:not(:last-child):after{content:"·"}}
