/* Shared work surfaces: clear hierarchy, consistent controls, existing theme tokens. */
html[data-theme] #app.shell .btn{border-radius:10px!important;font-size:14px!important;line-height:1.45!important;min-height:44px;box-shadow:none!important;letter-spacing:normal!important}
html[data-theme] #app.shell :is(.overview-panel,.detail-panel){border-radius:14px;box-shadow:none;background:var(--v-surface);border-color:var(--v-line)}
html[data-theme] #app.shell :is(.overview-panel,.detail-panel) :is(.overview-panel,.detail-panel){box-shadow:none;border-radius:8px}
html[data-theme] #app.shell :is(input,textarea,select){font-size:16px}
html[data-theme] #app.shell :is(button,a,input,textarea,select):focus-visible{outline:2px solid var(--v-accent);outline-offset:3px}
/* Instagram keeps one destination family, styled as navigation rather than action pills. */
html[data-theme] #app.shell #instagramPanel{gap:16px;max-width:1320px;margin-inline:auto;width:100%}
html[data-theme] #app.shell .ig-account-bar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:0;margin:0}
html[data-theme] #app.shell .ig-account-bar>strong{width:auto;flex:1;font-size:15px;margin:0}
html[data-theme] #app.shell .ig-account-bar #igConnectAccount{order:2;flex:0 1 auto;background:transparent!important;color:var(--v-ink)!important;border:1px solid var(--v-line)!important;padding:9px 14px;min-height:44px;font-size:14px!important}
html[data-theme] #app.shell .ig-account-bar #igAccountStatus{background:transparent;padding:4px 0;border-radius:0;color:var(--v-muted);font-size:13px;min-height:32px;max-width:100%;overflow-wrap:anywhere}
.ig-welcome{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:28px 0 24px}
.ig-welcome h2{font-size:clamp(24px,3vw,32px);line-height:1.2;letter-spacing:-.025em;margin:0 0 10px;font-weight:650}
.ig-welcome p{font-size:15px;line-height:1.6;color:var(--v-muted);margin:0;max-width:540px}
html[data-theme] #app.shell .ig-workspace .ig-account-controls{padding:0;border:0;background:transparent;box-shadow:none}
.ig-account-controls>summary{font-size:14px;min-height:44px;align-content:center;color:var(--v-muted);cursor:pointer}
.ig-workspace .ig-account-controls[open]{padding:16px;background:var(--v-surface2);border-radius:12px}
.ig-workspace .ig-account-controls>.connection-assistant{margin:0 0 16px;padding:0;background:transparent;border:0}
.ig-workspace .ig-account-controls .ig-connection{padding:16px 0;margin:0;border:0;border-radius:0;background:transparent;box-shadow:none}
html[data-theme] #app.shell #igDashboardColumns{grid-template-columns:1fr}
.ig-workspace .ig-dashboard{margin:0;gap:20px}
.ig-workspace #igAccountDetails{padding-block:12px}
.ig-workspace #igMediaPanel{border:0;padding:20px 0;background:transparent}
.ig-workspace #igMedia{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:16px}
.ig-workspace .ig-inbox-page{min-width:0}
.ig-workspace .ig-inbox-page #igClientInbox{margin:0;border:0;padding:20px 0;background:transparent}
.ig-workspace .ig-auto-replies{padding:16px;background:var(--v-surface2);border-radius:12px;border:0;margin-bottom:24px}
.ig-workspace .ig-auto-help{margin-top:12px}.ig-workspace .ig-auto-help summary{min-height:44px;align-content:center;cursor:pointer;font-size:14px;color:var(--v-muted)}
.ig-workspace .ig-auto-replies .ig-actions{gap:8px}
.ig-workspace #igInboxList{min-height:220px;border-radius:10px;background:var(--v-surface2);padding:12px}
.ig-workspace #igInboxConversation{min-width:0;padding:12px}
.ig-workspace #igAgents{margin-top:24px;border-radius:12px;box-shadow:none}
.ig-workspace #igInstagramStudio{margin-top:24px;padding:16px 0;border:0;border-top:1px solid var(--v-line);border-radius:0;background:transparent}
.ig-workspace #igInstagramStudio h3{font-size:17px}.ig-workspace #igInstagramStudio p{font-size:14px}
.ig-workspace>.ig-storage{display:none}.ig-workspace>.ig-notice:empty{display:none}
@media(max-width:600px){
 .ig-welcome{display:block;padding:20px 0}.ig-welcome .btn{margin-top:18px;width:100%}
 html[data-theme] #app.shell .ig-account-bar #igConnectAccount{font-size:13px!important;padding:8px 10px}
 .ig-workspace .ig-inbox-layout{grid-template-columns:1fr}.ig-workspace #igInboxConversation{padding:12px 0}
}
/* Apply after legacy workspace styles so selected state has one meaning. */
html[data-skin][data-theme] #app.shell .top::after{display:none!important}
html[data-theme] body:has(>#app.shell:not([hidden]))>.home-vibes{display:none!important}
html[data-theme] #app.shell .top h1{background:none!important;color:var(--v-ink)!important;-webkit-text-fill-color:currentColor!important;font-size:28px;letter-spacing:-.025em}
#igAnalyticsSummary [data-known=false]{display:none!important}
html[data-theme] #app.shell #igAnalyticsSummary{display:flex;flex-wrap:wrap;gap:32px}
html[data-theme] #app.shell #igAnalyticsSummary>.ig-business-stat{background:transparent!important;border:0;border-radius:0;padding:8px 0;min-width:100px}
@media(max-width:600px){html[data-theme] #app.shell .top h1{font-size:24px}}
html[data-theme] #app.shell .ig-account-bar>strong{display:none}
html[data-theme] #app.shell .ig-account-bar #igAccountStatus{margin-inline-end:auto}
html[data-skin][data-theme] #app.shell .top{padding-bottom:0;margin-bottom:20px}
/* Everyday AI work: composer first; model diagnostics and agent details on demand. */
html[data-theme] #app.shell .sw-connection-options{padding:0 16px;border-bottom:1px solid var(--v-line);background:var(--v-surface)}
html[data-theme] #app.shell .sw-connection-options>summary,html[data-theme] #app.shell .sw-agent-guide>summary{font-size:14px;min-height:44px;align-content:center;cursor:pointer;color:var(--v-muted)}
html[data-theme] #app.shell .sw-connection-options .sw-readiness{padding:10px 0;font-size:13px;gap:10px;flex-wrap:wrap;border:0}
html[data-theme] #app.shell .sw-connection-options .sw-readiness button{font-size:14px;min-height:44px}
html[data-theme] #app.shell .sw-agent-guide{margin:0 0 8px;padding:0 10px}
html[data-theme] #app.shell .sw-agent-guide .sw-agent-help{margin:0;padding:0 0 12px;line-height:1.6;font-size:14px;max-height:none;overflow:visible}
html[data-theme] #app.shell .sw-welcome .sw-eyebrow{display:none}
html[data-theme] #app.shell .sw-welcome h2{font-size:clamp(26px,3vw,38px);line-height:1.2;background:none;color:var(--v-ink);-webkit-text-fill-color:currentColor}
html[data-theme] #app.shell .sw-welcome-sub{font-size:15px;line-height:1.6;max-width:440px}
html[data-theme] #app.shell .sw-starters button{box-shadow:none;border-radius:10px}
html[data-theme] #app.shell .sw-starters strong{font-size:14px}
html[data-theme] #app.shell .sw-composer{border-radius:14px}
html[data-theme] #app.shell .sw-modes button{font-size:13px;min-height:44px;line-height:1.4}
html[data-theme] #app.shell .sw-send-tools :is(.sw-attach,.sw-attach-drive){display:inline-flex;align-items:center;justify-content:center;gap:7px;width:auto;min-width:44px;min-height:44px;padding:7px 10px;border-radius:10px;color:var(--v-ink);font-size:13px;line-height:1.4}
html[data-theme] #app.shell .sw-send-tools .sw-attach-label{white-space:nowrap}
html[data-theme] #app.shell .sw-thread-heading{font-size:14px}
/* Automation keeps status and deliberate controls, without exposing every utility. */
html[data-theme] #app.shell #automationControl>h3{font-size:22px;margin:4px 0 12px}
html[data-theme] #app.shell #automationControl>details{border:0;border-bottom:1px solid var(--v-line);border-radius:0;padding:0;margin:8px 0}
html[data-theme] #app.shell #automationControl>details>summary{min-height:48px;font-size:15px;align-content:center;cursor:pointer}
html[data-theme] #app.shell #automationReadiness{display:grid;gap:10px;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));margin:16px 0}
html[data-theme] #app.shell .automation-workflow{background:var(--v-surface2);border-radius:10px;padding:14px;min-width:0}
html[data-theme] #app.shell .automation-workflow strong{display:block;font-size:15px;line-height:1.5}
html[data-theme] #app.shell .automation-workflow p{margin:8px 0;font-size:14px}
html[data-theme] #app.shell .automation-workflow .btn{margin-top:8px}
html[data-theme] #app.shell #autoHub .ah-control-card{padding:16px;border-radius:10px;box-shadow:none}
html[data-theme] #app.shell #automationUtilities{margin:16px 0}
html[data-theme] #app.shell #settingsPanel{max-width:1040px;display:grid;grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:20px;align-items:start}
html[data-theme] #app.shell #settingsPanel>.detail-panel,
html[data-theme] #app.shell #settingsPanel>details>.detail-panel{padding:24px;border-radius:18px;background:var(--v-surface);border:1px solid var(--v-line);box-shadow:var(--d-shadow);display:flex;flex-direction:column;gap:16px;position:relative;overflow:hidden;transition:border-color .2s ease,box-shadow .2s ease}
html[data-theme] #app.shell #settingsPanel>.detail-panel:hover,
html[data-theme] #app.shell #settingsPanel>details>.detail-panel:hover{border-color:var(--v-line2)}
html[data-theme] #app.shell #settingsPanel>.flow-details{margin:0;grid-column:1/-1}
html[data-theme] #app.shell .settings-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}
html[data-theme] #app.shell .settings-card-badge{display:inline-block;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--v-accent,#70a5ff);background:rgba(112,165,255,.12);border:1px solid rgba(112,165,255,.25);border-radius:6px;padding:3px 8px;margin-bottom:8px}
html[data-theme] #app.shell .settings-card h2{font-size:18px;font-weight:700;margin:0 0 4px 0;color:var(--v-ink)}
html[data-theme] #app.shell .settings-card p{font-size:13px;color:var(--v-muted);margin:0;line-height:1.45}
html[data-theme] #app.shell .settings-card .theme-toggle{background:var(--v-surface2);border:1px solid var(--v-line);color:var(--v-ink);width:40px;height:40px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;font-size:18px;cursor:pointer;flex-shrink:0;transition:all .2s ease}
html[data-theme] #app.shell .settings-card .theme-toggle:hover{border-color:var(--v-accent,#70a5ff);transform:scale(1.05)}
html[data-theme] #app.shell .settings-rows-group{display:flex;flex-direction:column;gap:12px;background:var(--v-surface2);padding:14px 16px;border-radius:14px;border:1px solid var(--v-line)}
html[data-theme] #app.shell .settings-row-modern{display:flex;flex-direction:column}
html[data-theme] #app.shell .settings-rows-group .setting-row{margin:0;padding:6px 0;border-bottom:1px solid var(--v-line)}
html[data-theme] #app.shell .settings-rows-group .setting-row:last-child{border-bottom:none;padding-bottom:0}
html[data-theme] #app.shell .settings-rows-group .setting-row:first-child{padding-top:0}
html[data-theme] #app.shell .modern-swatch-group{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-top:8px}
html[data-theme] #app.shell .modern-swatch-group label{display:flex;align-items:center;gap:8px;background:var(--v-surface);border:1px solid var(--v-line);padding:8px 12px;border-radius:10px;cursor:pointer;font-size:13px;font-weight:500;color:var(--v-ink);transition:all .15s ease}
html[data-theme] #app.shell .modern-swatch-group label:hover{border-color:var(--v-line2)}
html[data-theme] #app.shell .modern-swatch-group label:has(input:checked){border-color:var(--v-accent,#70a5ff);background:rgba(112,165,255,.08)}
html[data-theme] #app.shell .modern-swatch-group input[type=radio]{margin:0}
html[data-theme] #app.shell .settings-meta-chips{display:flex;flex-wrap:wrap;gap:8px;margin:0}
html[data-theme] #app.shell .settings-meta-chips div{flex:1;min-width:120px;background:var(--v-surface2);border:1px solid var(--v-line);border-radius:10px;padding:8px 12px;display:flex;flex-direction:column;gap:2px}
html[data-theme] #app.shell .settings-meta-chips dt{font-size:11px;color:var(--v-muted);text-transform:uppercase;letter-spacing:.05em}
html[data-theme] #app.shell .settings-meta-chips dd{font-size:13px;font-weight:600;color:var(--v-ink);margin:0}
html[data-theme] #app.shell .settings-stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:0}
html[data-theme] #app.shell .settings-stat-grid div{background:var(--v-surface2);border:1px solid var(--v-line);border-radius:12px;padding:12px 8px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px}
html[data-theme] #app.shell .settings-stat-grid dt{font-size:11px;color:var(--v-muted);text-transform:uppercase;letter-spacing:.04em;margin:0}
html[data-theme] #app.shell .settings-stat-grid dd{font-size:14px;font-weight:700;color:var(--v-ink);margin:0}
html[data-theme] #app.shell .settings-action-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 18px;border-radius:12px;font-weight:600;font-size:14px;background:linear-gradient(135deg,rgba(112,165,255,.2),rgba(112,165,255,.06));border:1px solid rgba(112,165,255,.35);color:var(--v-ink);text-decoration:none;transition:all .2s ease;width:100%;box-sizing:border-box}
html[data-theme] #app.shell .settings-action-btn:hover{background:linear-gradient(135deg,rgba(112,165,255,.3),rgba(112,165,255,.12));border-color:var(--v-accent,#70a5ff);transform:translateY(-1px)}
html[data-theme] #app.shell .merged-head small{font-size:13px;line-height:1.5}
@media(max-width:600px){html[data-theme] #app.shell .sw-welcome{margin:16px auto}html[data-theme] #app.shell .sw-welcome-sub{margin:12px 0 18px}html[data-theme] #app.shell .sw-starters{gap:6px}html[data-theme] #app.shell .sw-starters strong{font-size:12px}html[data-theme] #app.shell .sw-modes{gap:4px}html[data-theme] #app.shell .sw-modes button{font-size:12px;padding-inline:6px}}
@media(max-width:600px){
 html[data-theme] #app.shell .sw-workspace .sw-composer-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
 html[data-theme] #app.shell .sw-workspace .sw-modes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;gap:4px}
 html[data-theme] #app.shell .sw-workspace .sw-modes button{font-size:13px!important;padding:8px 3px!important;gap:3px}
 html[data-theme] #app.shell .sw-workspace .sw-send-tools{display:flex;width:100%;margin:0;gap:6px}
 html[data-theme] #app.shell .sw-workspace .sw-send-tools :is(.sw-attach,.sw-attach-drive){flex:1 1 auto;width:auto;min-width:0;border:1px solid var(--v-line);background:var(--v-surface2)}
 html[data-theme] #app.shell .sw-workspace .sw-send-tools :is(.sw-send,.sw-stop){flex:0 0 48px;min-width:48px;min-height:44px}
}
html[data-theme] #app.shell #autoHub .ah-reply-controls>.overview-panel-head p{display:none}
html[data-theme] #app.shell #autoHub .ah-reply-controls{margin-top:0;box-shadow:none}
html[data-theme] #app.shell #automationControl{padding-top:20px;border-top:1px solid var(--v-line);margin-top:20px}
html[data-theme] #app.shell #automationControl>p:last-child{font-size:14px;line-height:1.5}
html[data-theme] #app.shell:is([data-view=settings],[data-view=providers],[data-view=modelcatalog],[data-view=capabilities],[data-view=integrations],[data-view=monitoring],[data-view=aiworkspace]) #headerReplySwitch{display:none!important}
html[data-theme] #app.shell .top .eyebrow{display:none}
html[data-theme] #app.shell #automationReadiness>p{font-size:14px;line-height:1.5;margin:0;padding:8px 0}
/* Shared housekeeping: predictable spacing, readable forms and quiet secondary controls. */
html[data-theme] #app.shell .panel-grid{min-width:0;gap:16px}
html[data-theme] #app.shell .panel-grid>.detail-panel{min-width:0;padding:20px;border-top:1px solid var(--v-line)}
html[data-theme] #app.shell .detail-panel :is(h2,h3){line-height:1.4;overflow-wrap:anywhere}
html[data-theme] #app.shell .detail-panel>p{max-width:68ch;line-height:1.65;margin-block:10px 18px}
html[data-theme] #app.shell .model-field{min-width:0;margin-block:16px}
html[data-theme] #app.shell .model-field>label{display:block;margin-bottom:8px;line-height:1.5}
html[data-theme] #app.shell .model-field :is(input:not([type=checkbox]):not([type=radio]),select,textarea){max-width:100%;box-sizing:border-box}
html[data-theme] #app.shell :is(.model-note,.model-notice,.info-note){line-height:1.6;overflow-wrap:anywhere}
html[data-theme] #app.shell .model-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
html[data-theme] #app.shell .flow-details>summary{min-height:48px;align-content:center;cursor:pointer;line-height:1.5;font-size:15px}
html[data-theme] #app.shell .flow-details>summary:focus-visible{outline:2px solid var(--v-accent);outline-offset:4px;border-radius:6px}
html[data-theme] #app.shell details.detail-panel.flow-details{padding:0 20px}
html[data-theme] #app.shell details.detail-panel.flow-details[open]{padding-bottom:20px}
html[data-theme] #app.shell .detail-panel :is(pre,code){max-width:100%;overflow-wrap:anywhere}
@media(max-width:600px){
 html[data-theme] #app.shell .panel-grid>.detail-panel{padding:16px}
 html[data-theme] #app.shell details.detail-panel.flow-details{padding:0 16px}
 html[data-theme] #app.shell details.detail-panel.flow-details[open]{padding-bottom:16px}
 html[data-theme] #app.shell .model-actions>.btn{flex:1 1 auto;white-space:normal}
}
/* Development setup remains readable alongside the shared button sizing. */
html[data-theme] #app.shell #developmentPanel :is(button,.btn){font-size:15px!important}
/* Account rows follow the panel width, including a phone using desktop-site mode. */
html[data-theme] #app.shell .accounts-page .acc-list{container:account-list / inline-size;min-width:0}
html[data-theme] #app.shell .accounts-page .acc-row>.acc-controls{display:flex;flex:0 1 auto;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;min-width:0;max-width:66%}
html[data-theme] #app.shell .accounts-page .acc-controls>button{min-height:44px;max-width:100%;white-space:normal}
html[data-theme] #app.shell .accounts-page .acc-controls>.acc-selected{white-space:normal;overflow-wrap:anywhere;max-width:100%}
@container account-list (max-width:900px){
 html[data-theme] #app.shell .accounts-page .acc-row{display:grid;grid-template-columns:40px minmax(0,1fr);align-items:start;gap:8px 12px}
 html[data-theme] #app.shell .accounts-page .acc-row>.acc-avatar{grid-column:1;grid-row:1}
 html[data-theme] #app.shell .accounts-page .acc-row>.acc-info{grid-column:2;grid-row:1;width:100%;min-width:0}
 html[data-theme] #app.shell .accounts-page .acc-info strong{display:block;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 html[data-theme] #app.shell .accounts-page .acc-info small{display:block;max-width:100%;overflow-wrap:anywhere}
 html[data-theme] #app.shell .accounts-page .acc-row>.acc-controls{grid-column:2;grid-row:2;justify-content:flex-start;width:100%;max-width:100%}
}
@container account-list (max-width:420px){
 html[data-theme] #app.shell .accounts-page .acc-row>.acc-controls{grid-column:1 / -1}
}

/* Desigma workbench: shared tokens, reusable components and responsive frames.
   Scoped to the signed-in app; native inputs, forms and view controllers stay mounted. */
html[data-theme="dark"] #app.shell{
 --v-bg:#0e111a;--v-side:#121520;--v-surface:#191d2a;--v-surface2:#202637;
 --v-line:#30384b;--v-line2:#73809b;--v-ink:#f1f3fc;--v-muted:#b3bdd3;
 --v-accent:#c4b5fd;--v-accent2:#a99aef;--v-soft:#30294b;
 --v-warn:#f1c77f;--v-danger:#ffaaa7;--button-ink:#201832;
 --d-shadow:0 8px 24px #00000012;
}
html[data-theme="disabled-light"] #app.shell{
 --v-bg:#f5f6fa;--v-side:#ffffff;--v-surface:#ffffff;--v-surface2:#eff1f7;
 --v-line:#d9deea;--v-line2:#78849a;--v-ink:#20263a;--v-muted:#566179;
 --v-accent:#6543b5;--v-accent2:#513498;--v-soft:#eee8fc;
 --v-warn:#855706;--v-danger:#ad3636;--button-ink:#ffffff;
 --d-shadow:0 8px 24px #20263a06;
}
html[data-theme="dark"][data-accent="teal"] #app.shell{--v-accent:#7dd4c7;--v-accent2:#68c1b3;--v-soft:#193c3c;--button-ink:#102725}
html[data-theme="dark"][data-accent="blue"] #app.shell{--v-accent:#b4caff;--v-accent2:#96b5f0;--v-soft:#263858;--button-ink:#19243b}
html[data-theme="dark"][data-accent="amber"] #app.shell{--v-accent:#efd09a;--v-accent2:#dbb477;--v-soft:#45371f;--button-ink:#332818}
html[data-theme="disabled-light"][data-accent="teal"] #app.shell{--v-accent:#176d61;--v-accent2:#115649;--v-soft:#e1f2ec}
html[data-theme="disabled-light"][data-accent="blue"] #app.shell{--v-accent:#315eac;--v-accent2:#244a91;--v-soft:#e7effc}
html[data-theme="disabled-light"][data-accent="amber"] #app.shell{--v-accent:#825a11;--v-accent2:#684608;--v-soft:#fcf0d8}
html[data-theme] #app.shell{background:var(--v-bg)!important;color:var(--v-ink);font-size:16px;line-height:1.6}
html[data-theme] #app.shell .content{background:var(--v-bg)!important;min-width:0}
html[data-theme] #app.shell .side{background:var(--v-side)!important;border-right:1px solid var(--v-line)!important;box-shadow:none!important}
html[data-theme] #app.shell .side .brand .mark{border-radius:11px;background:#8871d5!important;box-shadow:none!important;color:#fff}
html[data-theme] #app.shell .side .brand strong{color:var(--v-ink)!important;letter-spacing:.12em;font-size:13px}
html[data-theme] #app.shell .side .brand small{color:var(--v-muted)!important;font-size:9px;letter-spacing:.08em}
html[data-theme] #app.shell .workspace-card{border:1px solid var(--v-line)!important;background:var(--v-surface)!important;border-radius:10px!important;padding:12px!important}
html[data-theme] #app.shell #workspaceAccount{color:var(--v-ink)!important;font-size:13px!important}
html[data-theme] #app.shell .workspace-card-foot{color:var(--v-muted)!important;font-size:12px!important}
html[data-theme] #app.shell .menu-search{border:1px solid var(--v-line)!important;background:var(--v-surface)!important;color:var(--v-muted)!important;border-radius:8px!important}
html[data-theme] #app.shell .workspace-nav{gap:3px}
html[data-theme] #app.shell .workspace-nav .nav{min-height:44px;padding:10px 12px;border:1px solid transparent!important;border-radius:9px!important;background:transparent!important;color:var(--v-muted)!important;font-size:14px;line-height:1.5;font-weight:500;box-shadow:none!important}
html[data-theme] #app.shell .workspace-nav .nav b{background:transparent!important;color:inherit!important;border:0!important}
html[data-theme] #app.shell .workspace-nav .nav.active{background:var(--v-soft)!important;border-color:color-mix(in srgb,var(--v-accent) 30%,var(--v-line))!important;color:var(--v-accent)!important;font-weight:650;box-shadow:none!important}
html[data-theme] #app.shell .workspace-nav .nav:hover{background:var(--v-surface2)!important;color:var(--v-ink)!important}
html[data-theme] #app.shell .workspace-nav .nav::before{display:none!important}
html[data-theme] #app.shell .nav-links{border-color:var(--v-line)!important}
html[data-theme] #app.shell .top{gap:20px;padding-bottom:22px!important;margin-bottom:26px!important;border-bottom:1px solid var(--v-line)!important}
html[data-theme] #app.shell .top h1{font-size:30px!important;line-height:1.2;letter-spacing:-.035em;font-weight:650;color:var(--v-ink)!important}
html[data-theme] #app.shell .top p{color:var(--v-muted)!important;font-size:14px;line-height:1.6;margin-top:8px}
html[data-theme] #app.shell .top-actions{gap:8px!important;align-items:center}
html[data-theme] #app.shell .top-actions .btn{font-size:13px!important}
html[data-theme] #app.shell :is(.btn,button.primary,.primary-action,.ig-primary){min-height:44px;border-radius:8px!important;box-shadow:none!important;letter-spacing:normal;transform:none!important}
html[data-theme] #app.shell .btn{border:1px solid var(--v-line)!important;background:var(--v-surface2)!important;color:var(--v-ink)!important}
html[data-theme] #app.shell :is(button.primary,.btn.primary,.primary-action,.ig-primary,#igWelcomeAction){background:var(--v-accent)!important;color:var(--button-ink)!important;border-color:var(--v-accent)!important}
html[data-theme] #app.shell .btn:hover{border-color:var(--v-accent)!important;background:var(--v-soft)!important}
html[data-theme] #app.shell :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),textarea,select){border-radius:8px!important;color:var(--v-ink);background-color:var(--v-bg);border-color:var(--v-line2);font-size:16px}
html[data-theme] #app.shell select option{background:var(--v-surface);color:var(--v-ink)}
html[data-theme] #app.shell :is(button,a,input,textarea,select,summary):focus-visible{outline:3px solid var(--v-accent)!important;outline-offset:3px}
html[data-theme] #app.shell :is(.overview-panel,.detail-panel,.merged-card,.sw-workspace,#igAgents,.ig-section){border:1px solid var(--v-line)!important;border-radius:14px!important;background:var(--v-surface)!important;box-shadow:none!important;min-width:0}
html[data-theme] #app.shell .merged-head{padding:17px 20px!important;min-height:64px;background:transparent!important;border-radius:14px;color:var(--v-ink)}
html[data-theme] #app.shell .merged-head strong{font-size:16px;line-height:1.5}
html[data-theme] #app.shell .merged-head small{color:var(--v-muted);font-size:13px}
html[data-theme] #app.shell :is(.detail-panel,.overview-panel)>p{font-size:14px!important;line-height:1.65}
html[data-theme] #app.shell .setting-row strong{font-size:14px!important;line-height:1.5}
html[data-theme] #app.shell .setting-row small{font-size:14px!important;line-height:1.6;margin-top:5px}
html[data-theme] #app.shell .setting-row>div{min-width:0}
html[data-theme] #app.shell :is(.detail-panel dl,.detail-panel dt,.detail-panel dd,.model-field>label,.accent-picker legend,.accent-picker label){font-size:14px!important;line-height:1.6}
html[data-theme] #app.shell :is(.model-note,.model-notice,.model-field-help){font-size:14px!important;line-height:1.65}
html[data-theme] #app.shell .merged-card.is-open{border-color:color-mix(in srgb,var(--v-accent) 45%,var(--v-line))!important}
html[data-theme] #app.shell .merged-body>.detail-panel{border:0!important;border-radius:0!important;background:transparent!important}
html[data-theme] #app.shell :is(.panel-work-tabs,.section-navigation,.ig-agent-tabs){border:1px solid var(--v-line)!important;background:var(--v-bg)!important;border-radius:10px!important;padding:4px;gap:4px;box-shadow:none!important}
html[data-theme] #app.shell :is(.panel-work-tabs,.section-navigation,.ig-agent-tabs) button{min-height:44px;border-radius:7px!important;font-size:14px;background:transparent;color:var(--v-muted);box-shadow:none!important}
html[data-theme] #app.shell :is(.panel-work-tabs,.section-navigation,.ig-agent-tabs) button[aria-selected=true],html[data-theme] #app.shell .section-navigation button[aria-current=page]{background:var(--v-surface2)!important;color:var(--v-accent)!important;border-color:var(--v-line)!important}
/* The six real task destinations form one reusable card component. */
html[data-theme] #app.shell .task-launcher{margin:0 0 8px}
html[data-theme] #app.shell .task-launcher h2{font-size:23px;line-height:1.3;margin-bottom:6px;letter-spacing:-.025em}
html[data-theme] #app.shell .task-launcher>p{font-size:14px;line-height:1.6;margin-bottom:18px}
html[data-theme] #app.shell .task-launcher-grid{gap:12px;grid-template-columns:repeat(3,minmax(0,1fr))}
html[data-theme] #app.shell .task-launcher-card{display:grid;grid-template-columns:36px minmax(0,1fr) 16px;grid-template-rows:auto 1fr;align-items:start;gap:6px 14px;min-height:140px;padding:20px;border:1px solid var(--v-line)!important;border-radius:12px!important;background:var(--v-surface)!important;box-shadow:var(--d-shadow);color:var(--v-ink)!important;transition:border-color .15s,background-color .15s}
html[data-theme] #app.shell .task-launcher-card .task-icon{grid-column:1;grid-row:1 / 3;width:36px;height:36px;padding:7px;border:1px solid color-mix(in srgb,var(--v-accent) 20%,var(--v-line));border-radius:10px;background:var(--v-soft);color:var(--v-accent);fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
html[data-theme] #app.shell .task-launcher-card>strong{grid-column:2;grid-row:1;min-width:0;font-size:16px;line-height:1.5;font-weight:600}
html[data-theme] #app.shell .task-launcher-card>span{grid-column:2;grid-row:2;min-width:0;font-size:14px;line-height:1.6;color:var(--v-muted)}
html[data-theme] #app.shell .task-launcher-card .task-arrow{grid-column:3;grid-row:1 / 3;color:var(--v-muted);width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
html[data-theme] #app.shell .task-launcher-card:hover{background:var(--v-surface2)!important;border-color:var(--v-accent)!important}
html[data-theme] #app.shell #overviewPanel .command-hero{border:1px solid var(--v-line)!important;background:var(--v-surface)!important;border-radius:14px!important;padding:22px;box-shadow:none!important;text-align:left;justify-items:stretch}
html[data-theme] #app.shell #overviewPanel .command-copy{text-align:left!important;align-items:flex-start}
html[data-theme] #app.shell #overviewPanel .command-copy h2{font-size:19px!important;line-height:1.4}
html[data-theme] #app.shell #overviewPanel .command-copy>p{font-size:14px!important;line-height:1.6;max-width:65ch}
html[data-theme] #app.shell #overviewPanel #commandSummary{text-align:left!important;margin-inline:0}
html[data-theme] #app.shell #overviewPanel :is(.command-actions,.command-status-row){justify-content:flex-start!important}
html[data-theme] #app.shell #overviewPanel .command-service{border:1px solid var(--v-line)!important;background:var(--v-bg)!important;border-radius:9px}
/* Instagram uses the same navigation, field and card vocabulary. */
html[data-theme] #app.shell .ig-welcome{padding:22px 0}
html[data-theme] #app.shell .ig-welcome h2{font-size:25px;line-height:1.35;letter-spacing:-.025em}
html[data-theme] #app.shell .ig-welcome p{font-size:14px;line-height:1.65}
html[data-theme] #app.shell :is(.ops-connection,.ops-check,.automation-workflow,.ah-control-card,.client-reply-check){border:1px solid var(--v-line)!important;background:var(--v-surface2)!important;border-radius:10px!important;box-shadow:none!important}
html[data-theme] #app.shell .acc-row{background:var(--v-bg)!important;border-color:var(--v-line)!important;border-radius:10px}
html[data-theme] #app.shell .acc-row.active{background:var(--v-soft)!important;border-color:var(--v-accent)!important;box-shadow:none!important}
html[data-theme] #app.shell .sw-welcome h2{font-size:clamp(26px,3vw,36px);font-weight:600;letter-spacing:-.035em}
html[data-theme] #app.shell .sw-composer{background:var(--v-bg)!important;border:1px solid var(--v-line2)!important;border-radius:12px!important;box-shadow:none!important}
@media(min-width:1181px){
 html[data-theme] #app.shell{grid-template-columns:244px minmax(0,1fr)!important}
 html[data-theme] #app.shell .side{width:244px!important;padding:24px 16px!important}
 html[data-theme] #app.shell .content{width:100%;max-width:1600px;padding:30px 36px 56px!important;margin-inline:auto}
 html[data-theme] #app.shell .top{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center}
 html[data-theme] #app.shell .top-actions{display:flex!important;flex-wrap:wrap;width:auto;max-width:620px;justify-content:flex-end}
}
@media(min-width:781px) and (max-width:1180px){
 html[data-theme] #app.shell .task-launcher-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 html[data-theme] #app.shell .task-launcher-card{padding:16px;gap:6px 10px}
}
@media(max-width:780px){
 html[data-theme] #app.shell .side{border-right:0!important;border-bottom:1px solid var(--v-line)!important}
 html[data-theme] #app.shell .content{padding:22px 16px 40px!important}
 html[data-theme] #app.shell .top{gap:14px!important;margin-bottom:22px!important;padding-bottom:18px!important}
 html[data-theme] #app.shell .top h1{font-size:25px!important;line-height:1.3}
 html[data-theme] #app.shell .top p{font-size:14px;margin-top:5px}
 html[data-theme] #app.shell .task-launcher h2{font-size:21px}
 html[data-theme] #app.shell .task-launcher-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 html[data-theme] #app.shell .task-launcher-card{grid-template-columns:minmax(0,1fr) 18px;grid-template-rows:32px auto;min-height:124px;gap:10px 6px;padding:14px}
 html[data-theme] #app.shell .task-launcher-card .task-icon{grid-column:1;grid-row:1;width:32px;height:32px;padding:6px;border-radius:8px}
 html[data-theme] #app.shell .task-launcher-card>strong{grid-column:1 / -1;grid-row:2;font-size:14px;line-height:1.5;align-self:start}
 html[data-theme] #app.shell .task-launcher-card>span{display:none}
 html[data-theme] #app.shell .task-launcher-card .task-arrow{grid-column:2;grid-row:1}
 html[data-theme] #app.shell #overviewPanel .command-hero{padding:18px}
 html[data-theme] #app.shell .merged-head{padding:14px 16px!important}
 html[data-theme] #app.shell .ig-welcome h2{font-size:23px}
}
@media(prefers-reduced-motion:reduce){html[data-theme] #app.shell .task-launcher-card{transition:none}}
html[data-motion=reduced] #app.shell .task-launcher-card{transition:none}

/* User's October glass-dashboard video: static highlights, floating surfaces,
   existing navy/purple accents and native controls. No extra rendering loop. */
html[data-theme=dark] #app.shell{
 --v-bg:#0e1520;--v-surface:rgba(30,39,53,.83);--v-surface2:rgba(43,54,72,.85);
 --v-line:rgba(196,215,243,.16);--v-line2:rgba(196,215,243,.5);
 --v-ink:#f3f6fc;--v-muted:#bbc8dc;
 --d-shadow:inset 0 1px 0 rgba(255,255,255,.13),0 16px 42px rgba(0,0,0,.19);
}
html[data-theme=light] #app.shell{
 --v-bg:#edf2fa;--v-surface:rgba(255,255,255,.9);--v-surface2:rgba(250,252,255,.95);
 --v-line:rgba(65,89,125,.19);--v-line2:rgba(65,89,125,.33);
 --d-shadow:inset 0 1px 0 #fff,0 12px 32px rgba(34,55,88,.08);
}
html[data-theme] #app.shell .content{
 background-image:radial-gradient(ellipse at 86% 9%,rgba(160,194,245,.1),transparent 36%),radial-gradient(ellipse at 8% 76%,rgba(144,112,226,.085),transparent 42%)!important;
}
html[data-theme] #app.shell :is(.merged-card,.overview-panel,.task-launcher-card,.sw-workspace,.ig-card,.detail-panel,#igAgents,.ig-section){
 border-color:var(--v-line)!important;box-shadow:var(--d-shadow)!important;
}
html[data-theme] #app.shell :is(.merged-card,.overview-panel,.ig-card){border-radius:16px!important}
html[data-theme] #app.shell .side{
 background:var(--v-side,var(--v-bg))!important;
 background-image:none!important;
 box-shadow:inset -1px 0 0 rgba(226,236,255,.06)!important;
}
html[data-theme] #app.shell .top{border-bottom-color:var(--v-line)!important}
html[data-theme] #app.shell .workspace-nav .nav[aria-current=page]{
 box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 4px 14px rgba(0,0,0,.08)!important;
}
html[data-theme] #app.shell .merged-body>.detail-panel{box-shadow:none!important}
html[data-motion=reduce] #app.shell .task-launcher-card{transition:none}
