#neoSocialRoot {
    --social-accent: #52776e;
    --social-accent-strong: #34594f;
    --social-ink: #263b35;
    --social-muted: #50645c;
    --social-paper: #edf1eb;
    --social-panel: #fbfcf8;
    --social-line: #cbd6ce;
    --social-accent-soft: color-mix(in srgb, var(--social-accent) 12%, var(--social-panel));
    --social-warn: #a95548;
    color: var(--social-ink) !important;
    background: #f1f4ef;
    border-radius: 22px;
    max-width: 1440px;
    min-width: 0;
    margin: 0 auto;
    padding: clamp(16px, 3vw, 36px);
    box-sizing: border-box;
    font-family: inherit;
}
html[data-theme="dark"] #neoSocialRoot {
    --social-accent: #8bb8a8;
    --social-accent-strong: #b7d5c8;
    --social-ink: #e8f0eb;
    --social-muted: #bdcbc3;
    --social-paper: #1a2924;
    --social-panel: #22332d;
    --social-line: #40534a;
    --social-accent-soft: color-mix(in srgb, var(--social-accent) 19%, var(--social-panel));
    --social-warn: #e19b89;
    background: #15221d;
}
#neoSocialRoot *,
#neoSocialRoot *::before,
#neoSocialRoot *::after { box-sizing: border-box; }
#neoSocialRoot [hidden] { display:none !important; }
#neoSocialRoot h1,
#neoSocialRoot h2,
#neoSocialRoot h3,
#neoSocialRoot p { overflow-wrap: anywhere; }
#neoSocialRoot h1,
#neoSocialRoot h2,
#neoSocialRoot h3,
#neoSocialRoot p,
#neoSocialRoot strong,
#neoSocialRoot label,
#neoSocialRoot summary { color: var(--social-ink) !important; }
#neoSocialRoot h1 {
    margin: 7px 0 8px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.06;
    letter-spacing: -.035em;
}
#neoSocialRoot h2 { margin: 0 0 12px; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.2; }
#neoSocialRoot h3 { margin: 0 0 8px; font-size: 17px; line-height: 1.3; }
#neoSocialRoot p { line-height: 1.6; }
#neoSocialRoot .social-eyebrow {
    color: var(--social-accent-strong);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}
#neoSocialRoot .social-intro { max-width: 740px; margin: 0 0 22px; color: var(--social-muted) !important; opacity: 1; }
#neoSocialRoot .social-layout { display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 24px; align-items: start; }
#neoSocialRoot .social-rail { position: sticky; top: 16px; display: grid; gap: 6px; padding: 10px; border: 1px solid var(--social-line); border-radius: 18px; background: var(--social-panel); }
#neoSocialRoot .social-rail nav { display: grid; gap: 4px; }
#neoSocialRoot .social-nav-item {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    text-align: start;
    border-color: transparent;
    color: var(--social-muted);
    background: transparent;
}
#neoSocialRoot .social-nav-item[aria-current="page"] { background: var(--social-accent-soft); color: var(--social-accent-strong); border-color: transparent; }
#neoSocialRoot .social-workspace { min-width: 0; }
#neoSocialRoot .social-toolbar { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; padding: 12px; margin: 0 0 18px; border: 1px solid var(--social-line); border-radius: 16px; background: var(--social-panel); }
#neoSocialRoot .social-toolbar > div { flex: 1; min-width: min(220px, 100%); }
#neoSocialRoot .social-toolbar select { min-height: 42px; }
#neoSocialRoot button,
#neoSocialRoot .social-link,
#neoSocialRoot .social-link-button {
    min-height: 44px;
    padding: 10px 15px;
    border: 1px solid var(--social-line);
    border-radius: 12px;
    background: var(--social-panel);
    color: inherit;
    font: inherit;
    font-weight: 650;
    line-height: 1.25;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform .16s ease;
}
#neoSocialRoot button:hover:not(:disabled),
#neoSocialRoot .social-link:hover { border-color: var(--social-accent); }
#neoSocialRoot button:active:not(:disabled) { transform: translateY(1px); }
#neoSocialRoot button.primary,
#neoSocialRoot .social-nav-item[aria-current="page"] {
    color: #fbfcf8;
    background: var(--social-accent);
    border-color: var(--social-accent);
}
#neoSocialRoot button.primary:hover:not(:disabled) { background: var(--social-accent-strong); }
#neoSocialRoot button:disabled { opacity: .56; cursor: not-allowed; }
#neoSocialRoot button:focus-visible,
#neoSocialRoot a:focus-visible,
#neoSocialRoot input:focus-visible,
#neoSocialRoot textarea:focus-visible,
#neoSocialRoot select:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--social-accent) 48%, #e7c776);
    outline-offset: 3px;
}
#neoSocialRoot .social-card {
    min-width: 0;
    padding: clamp(16px, 2vw, 24px);
    border: 1px solid var(--social-line);
    border-radius: 18px;
    background: var(--social-panel);
    overflow-wrap: anywhere;
}
#neoSocialRoot .social-card + .social-card { margin-top: 14px; }
#neoSocialRoot .social-card--feature { background: var(--social-panel); }
#neoSocialRoot .social-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 14px; margin: 16px 0; }
#neoSocialRoot .social-grid--references { grid-template-columns: repeat(auto-fit, minmax(min(235px, 100%), 1fr)); }
#neoSocialRoot .social-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
#neoSocialRoot label { display: block; margin: 14px 0 6px; font-weight: 680; font-size: 14px; }
#neoSocialRoot input,
#neoSocialRoot textarea,
#neoSocialRoot select {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--social-line);
    border-radius: 11px;
    background: var(--social-paper);
    color: var(--social-ink);
    font: inherit;
}
#neoSocialRoot textarea { min-height: 115px; resize: vertical; }
#neoSocialRoot input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--social-accent); }
#neoSocialRoot .social-muted { color: var(--social-muted) !important; opacity: 1; }
#neoSocialRoot .social-notice {
    min-height: 0;
    margin: 10px 0 16px;
    padding: 10px 13px;
    border-inline-start: 3px solid var(--social-accent);
    border-radius: 0 10px 10px 0;
    background: var(--social-accent-soft);
    color: var(--social-ink);
    overflow-wrap: anywhere;
}
#neoSocialRoot .social-notice:empty { display: none; }
#neoSocialRoot .social-error { border-color: var(--social-warn); background: color-mix(in srgb, var(--social-warn) 10%, var(--social-panel)); }
#neoSocialRoot .social-kicker { color: var(--social-muted); font-size: 12px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
#neoSocialRoot .social-count { font-size: clamp(25px, 3vw, 36px); font-weight: 750; letter-spacing: -.03em; }
#neoSocialRoot .social-pill { display: inline-flex; align-items: center; padding: 5px 9px; border: 1px solid var(--social-line); border-radius: 999px; color: var(--social-muted); font-size: 12px; }
#neoSocialRoot .social-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
#neoSocialRoot .social-row > * { min-width: 0; }
#neoSocialRoot .social-source-placeholder { aspect-ratio: 9 / 16; max-height: 240px; display: grid; place-items: center; border-radius: 13px; background: color-mix(in srgb, var(--social-accent) 9%, var(--social-paper)); color: var(--social-muted); }
#neoSocialRoot .social-source-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; }
#neoSocialRoot .social-source-card .social-source-placeholder { max-height: 172px; }
#neoSocialRoot .social-tabs { display: flex; gap: 7px; overflow-x: auto; padding: 2px 1px 10px; margin: 0 0 16px; }
#neoSocialRoot .social-tabs button[aria-pressed="true"] { border-color: var(--social-accent); background: var(--social-accent-soft); color: var(--social-accent-strong); }
#neoSocialRoot a:not(.social-link) { color:var(--social-accent-strong)!important; }
#neoSocialRoot .social-link { color:var(--social-ink)!important; }
#neoSocialRoot .social-filter-row { display: grid; grid-template-columns: minmax(180px, 2fr) repeat(3, minmax(130px, 1fr)); gap: 10px; align-items: end; }
#neoSocialRoot .social-filter-row label { margin-top: 6px; }
#neoSocialRoot .social-list { display: grid; gap: 9px; }
#neoSocialRoot .social-list-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--social-line); border-radius: 14px; background: var(--social-panel); }
#neoSocialRoot .social-list-item p { margin: 4px 0; }
#neoSocialRoot .social-stage { color: var(--social-accent-strong); font-size: 12px; font-weight: 740; }
#neoSocialRoot .social-code { max-width: 100%; overflow: auto; padding: 12px; border-radius: 10px; background: var(--social-paper); font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; }
#neoSocialRoot .social-skeleton { min-height: 105px; border-radius: 15px; background: linear-gradient(135deg, color-mix(in srgb, var(--social-accent) 6%, var(--social-panel)), color-mix(in srgb, var(--social-accent) 13%, var(--social-panel)), color-mix(in srgb, var(--social-accent) 6%, var(--social-panel))); animation: social-pulse 1.6s ease-in-out infinite; }
#neoSocialRoot .social-empty { padding: clamp(22px, 4vw, 42px); border: 1px dashed var(--social-line); border-radius: 18px; text-align: center; }
#neoSocialRoot .social-empty p { margin-inline: auto; color: var(--social-muted); }
#neoSocialRoot .social-conflict { border-color: var(--social-warn); }
#neoSocialRoot .social-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
#neoSocialRoot .social-field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
#neoSocialRoot .social-inline-check { display: flex; align-items: center; gap: 9px; margin-top: 16px; }
#neoSocialRoot .social-inline-check label { margin: 0; }
#neoSocialRoot .social-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@keyframes social-pulse { 0%,100% { opacity: .66; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
    #neoSocialRoot *, #neoSocialRoot *::before, #neoSocialRoot *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (max-width: 820px) {
    #neoSocialRoot .social-layout { grid-template-columns: 1fr; gap: 14px; }
    #neoSocialRoot .social-rail { position: static; }
    #neoSocialRoot .social-rail nav { grid-template-columns: repeat(auto-fit, minmax(min(140px, 42%), 1fr)); }
    #neoSocialRoot .social-nav-item { justify-content: center; text-align: center; }
}
@media (max-width: 560px) {
    #neoSocialRoot { padding: 16px 12px 28px; }
    #neoSocialRoot .social-rail { padding: 7px; }
    #neoSocialRoot .social-rail nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #neoSocialRoot .social-nav-item { min-height: 42px; padding: 8px 6px; font-size: 13px; }
    #neoSocialRoot .social-toolbar > div { flex-basis: 100%; }
    #neoSocialRoot .social-actions > * { flex: 1 1 145px; }
    #neoSocialRoot .social-filter-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #neoSocialRoot .social-filter-row > :first-child { grid-column: 1 / -1; }
    #neoSocialRoot .social-source-card { grid-template-columns: 72px minmax(0, 1fr); gap: 10px; }
    #neoSocialRoot .social-grid--references { grid-template-columns: repeat(auto-fit, minmax(min(155px, 100%), 1fr)); }
    #neoSocialRoot .social-source-card { grid-template-columns: 1fr; }
    #neoSocialRoot .social-source-card .social-source-placeholder { max-height: 135px; aspect-ratio: 9 / 10; }
    #neoSocialRoot .social-list-item { grid-template-columns: 1fr; }
    #neoSocialRoot .social-compare,
    #neoSocialRoot .social-field-pair { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
    #neoSocialRoot .social-rail nav { grid-template-columns: 1fr; }
    #neoSocialRoot .social-filter-row { grid-template-columns: 1fr; }
    #neoSocialRoot .social-filter-row > :first-child { grid-column: auto; }
    #neoSocialRoot .social-grid--references { grid-template-columns: 1fr; }
}

/* Calendar surfaces are solid and remain legible above the Portal's ecosystem scene. */
#neoSocialRoot .social-calendar-toolbar { display:flex; align-items:end; flex-wrap:wrap; gap:10px; margin:14px 0; }
#neoSocialRoot .social-calendar-toolbar > * { min-width:0; }
#neoSocialRoot .social-calendar-toolbar label { margin:0 0 5px; }
#neoSocialRoot .social-calendar-filters { display:grid; grid-template-columns:repeat(4,minmax(125px,1fr)); gap:9px; flex:1 1 560px; }
#neoSocialRoot .social-calendar-views { display:flex; gap:6px; }
#neoSocialRoot .social-calendar-views button[aria-pressed="true"] { color:var(--social-panel); background:var(--social-accent-strong); border-color:var(--social-accent-strong); }
#neoSocialRoot .social-calendar-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:7px; margin-top:12px; }
#neoSocialRoot .social-calendar-month-viewport { min-width:0; max-width:100%; }
#neoSocialRoot .social-calendar-weekday { padding:7px 4px; color:var(--social-muted)!important; font-size:12px; font-weight:750; text-align:center; }
#neoSocialRoot .social-calendar-cell { min-width:0; min-height:126px; padding:7px; border:1px solid var(--social-line); border-radius:12px; background:var(--social-panel); }
#neoSocialRoot .social-calendar-cell.is-outside { background:var(--social-paper); }
#neoSocialRoot .social-calendar-cell.is-drop-target { border-color:var(--social-accent); outline:2px dashed var(--social-accent); outline-offset:-4px; }
#neoSocialRoot .social-calendar-date { display:flex; justify-content:space-between; align-items:center; gap:4px; margin-bottom:5px; color:var(--social-muted)!important; font-size:12px; }
#neoSocialRoot .social-calendar-event { position:relative; min-width:0; margin:5px 0; padding:7px; border:1px solid var(--social-line); border-inline-start:3px solid var(--social-accent); border-radius:8px; background:var(--social-paper); color:var(--social-ink); overflow-wrap:anywhere; }
#neoSocialRoot .social-calendar-event[draggable="true"] { cursor:grab; }
#neoSocialRoot .social-calendar-event.is-dragging { opacity:.5; }
#neoSocialRoot .social-calendar-event h3 { margin:0 0 4px; font-size:13px; }
#neoSocialRoot .social-calendar-event .social-muted { margin:2px 0; font-size:11px; }
#neoSocialRoot .social-calendar-event .social-calendar-event-actions { display:flex; gap:5px; flex-wrap:wrap; margin-top:6px; }
#neoSocialRoot .social-calendar-event .social-calendar-event-actions button,
#neoSocialRoot .social-calendar-event .social-calendar-event-actions a { min-height:32px; padding:5px 8px; font-size:12px; }
#neoSocialRoot .social-calendar-week { display:grid; grid-template-columns:repeat(7,minmax(150px,1fr)); gap:7px; overflow-x:auto; }
#neoSocialRoot .social-calendar-week .social-calendar-cell { min-height:220px; }
#neoSocialRoot .social-calendar-list { display:grid; gap:8px; margin-top:12px; }
#neoSocialRoot .social-calendar-list-day { display:grid; grid-template-columns:110px minmax(0,1fr); gap:10px; align-items:start; padding:10px; border:1px solid var(--social-line); border-radius:12px; background:var(--social-panel); }
#neoSocialRoot .social-calendar-list-day > strong { color:var(--social-accent-strong); }
#neoSocialRoot .social-calendar-blank { min-height:126px; }
#neoSocialRoot .social-calendar-sheet { position:fixed; inset:0; z-index:10050; display:grid; place-items:center; padding:18px; background:rgba(12,22,18,.58); }
#neoSocialRoot .social-calendar-sheet-card { width:min(620px,100%); max-height:min(88dvh,780px); overflow:auto; padding:clamp(18px,3vw,28px); border:1px solid var(--social-line); border-radius:20px; background:var(--social-panel); color:var(--social-ink); box-shadow:0 24px 64px rgba(10,20,15,.28); }
#neoSocialRoot .social-calendar-sheet-card h2 { color:var(--social-ink)!important; }
#neoSocialRoot .social-ai-panel {
    position:relative;
    border-color:color-mix(in srgb,var(--social-accent) 46%,var(--social-line));
    background:linear-gradient(145deg,var(--social-panel),color-mix(in srgb,var(--social-accent) 7%,var(--social-paper)));
}
#neoSocialRoot .social-ai-panel::before {
    content:"";
    position:absolute;
    inset-inline-start:0;
    inset-block:20px;
    width:3px;
    border-radius:4px;
    background:var(--social-accent);
}
#neoSocialRoot .social-ai-panel > * { position:relative; }
#neoSocialRoot .social-ai-panel .neo-context-selector > summary {
    display:block;
    padding:10px 12px;
    border:1px solid var(--social-line);
    border-radius:10px;
    background:var(--social-accent-soft);
    color:var(--social-accent-strong)!important;
    font-weight:700;
}
#neoSocialRoot .social-ai-panel .neo-model-picker {
    --nmp-bg:var(--social-panel);
    --nmp-raised:var(--social-paper);
    --nmp-text:var(--social-ink);
    --nmp-muted:var(--social-muted);
    --nmp-line:var(--social-line);
    --nmp-accent:var(--social-accent-strong);
    --nmp-primary:var(--social-accent-strong);
    --nmp-focus:var(--social-accent);
    --nmp-good:var(--social-accent-strong);
    color-scheme:light;
}
html[data-theme="dark"] #neoSocialRoot .social-ai-panel .neo-model-picker { color-scheme:dark; }
#neoSocialRoot .social-ai-panel h2,
#neoSocialRoot .social-publication-panel h2 { max-width:26ch; }
#neoSocialRoot .social-ai-drafts { margin:18px 0 20px; padding:clamp(16px,2vw,24px); border:1px solid var(--social-line); border-radius:18px; background:color-mix(in srgb,var(--social-accent) 5%,var(--social-panel)); }
#neoSocialRoot .social-ai-drafts .social-row h2 { margin:0; font-size:clamp(19px,2vw,24px); }
#neoSocialRoot .social-ai-drafts .social-list-item { background:var(--social-panel); }
#neoSocialRoot .social-ai-drafts input { max-width:260px; min-height:42px; }
#neoSocialRoot .social-quote-card {
    margin-top:14px;
    padding:clamp(15px,2vw,22px);
    border:1px solid var(--social-accent);
    border-radius:14px;
    background:var(--social-panel);
    box-shadow:0 8px 28px color-mix(in srgb,var(--social-ink) 7%,transparent);
}
#neoSocialRoot .social-quote-card h3 { color:var(--social-accent-strong)!important; }
#neoSocialRoot .social-quote-card p { overflow-wrap:anywhere; }
#neoSocialRoot .social-provenance { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
#neoSocialRoot .social-connection-platform-row { align-items:center; margin-block:5px; }
#neoSocialRoot .social-connection-platform-row p { margin:3px 0; }
#neoSocialRoot .social-analytics-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; flex-wrap:wrap; }
#neoSocialRoot .social-analytics-filters { display:grid; grid-template-columns:repeat(3,minmax(145px,1fr)); gap:12px; align-items:end; margin:18px 0; }
#neoSocialRoot .social-analytics-filters label { margin-top:0; }
#neoSocialRoot .social-analytics-note { padding:12px 14px; border-inline-start:3px solid var(--social-accent); border-radius:0 10px 10px 0; background:var(--social-accent-soft); }
#neoSocialRoot .social-analytics-post { display:grid; gap:14px; padding:clamp(15px,2vw,22px); border:1px solid var(--social-line); border-radius:15px; background:var(--social-panel); }
#neoSocialRoot .social-analytics-post + .social-analytics-post { margin-top:10px; }
#neoSocialRoot .social-analytics-meta { display:flex; align-items:center; flex-wrap:wrap; gap:7px; }
#neoSocialRoot .social-analytics-metrics { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(145px,100%),1fr)); gap:8px; }
#neoSocialRoot .social-analytics-metric { min-width:0; padding:10px 12px; border:1px solid var(--social-line); border-radius:11px; background:var(--social-paper); }
#neoSocialRoot .social-analytics-metric dt { color:var(--social-muted); font-size:12px; font-weight:680; }
#neoSocialRoot .social-analytics-metric dd { margin:4px 0 0; color:var(--social-ink); font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
#neoSocialRoot .social-analytics-eligible { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px; align-items:end; }
#neoSocialRoot .social-analytics-eligible label { margin-top:0; }
#neoSocialRoot .social-analytics-eligible .social-actions { margin:0; }
#neoSocialRoot .social-analytics-quote { margin-top:14px; padding:clamp(16px,2vw,22px); border:1px solid var(--social-accent); border-radius:14px; background:var(--social-accent-soft); }
#neoSocialRoot .social-analytics-quote h3 { margin-bottom:8px; }
#neoSocialRoot .social-analytics-loading { display:grid; gap:10px; }
#neoSocialRoot .social-analytics-loading .social-skeleton { min-height:74px; }
#neoSocialRoot .social-publication-panel { border-style:dashed; }
#neoSocialRoot button:disabled[aria-disabled="true"] { opacity:.58; }
html[dir="rtl"] #neoSocialRoot .social-ai-panel::before { inset-inline-start:0; }
@media (max-width:820px) {
    #neoSocialRoot .social-calendar-filters { grid-template-columns:repeat(2,minmax(0,1fr)); flex-basis:100%; }
    #neoSocialRoot .social-calendar-grid { gap:4px; }
    #neoSocialRoot .social-calendar-cell { min-height:104px; padding:4px; }
    #neoSocialRoot .social-calendar-event .social-drag-handle { display:none; }
}
@media (max-width:767px) {
    #neoSocialRoot .social-analytics-filters,
    #neoSocialRoot .social-analytics-eligible,
    #neoSocialRoot .social-analytics-metrics { grid-template-columns:1fr; }
}
html[data-theme="dark"] #neoSocialRoot button.primary,
html[data-theme="dark"] #neoSocialRoot .social-nav-item[aria-current="page"] { color:#15221d!important; }
@media (max-width:560px) {
    /* The existing unified product controls are fixed above the SPA panel. */
    #neoSocialRoot { margin-top:68px; }
    #neoSocialRoot .social-calendar-toolbar { align-items:stretch; }
    #neoSocialRoot .social-calendar-month-viewport { overflow-x:auto; overscroll-behavior-inline:contain; -webkit-overflow-scrolling:touch; }
    #neoSocialRoot .social-calendar-month-viewport .social-calendar-grid { min-width:560px; }
    #neoSocialRoot .social-calendar-filters { grid-template-columns:1fr 1fr; }
    #neoSocialRoot .social-calendar-views { width:100%; }
    #neoSocialRoot .social-calendar-views button { flex:1; }
    #neoSocialRoot .social-calendar-list-day { grid-template-columns:1fr; }
    #neoSocialRoot .social-calendar-week { grid-template-columns:1fr; overflow:visible; }
    #neoSocialRoot .social-calendar-week .social-calendar-cell { min-height:75px; }
    #neoSocialRoot .social-calendar-sheet { align-items:end; padding:0; }
    #neoSocialRoot .social-calendar-sheet-card { width:100%; max-height:88dvh; border-radius:20px 20px 0 0; padding:18px 16px max(22px,env(safe-area-inset-bottom)); }
    #neoSocialRoot .social-ai-drafts .social-list-item > .social-actions { width:100%; }
    #neoSocialRoot .social-ai-drafts input { max-width:none; flex:1 1 100%; }
    #neoSocialRoot .social-quote-card .social-actions > button { flex:1 1 100%; }
    #neoSocialRoot .social-analytics-filters,
    #neoSocialRoot .social-analytics-eligible { grid-template-columns:1fr; }
    #neoSocialRoot .social-analytics-eligible .social-actions > * { flex:1 1 100%; }
}

/* Saved-target refresh and recurring monitoring live inside the existing workspace. */
#neoSocialRoot .social-monitoring-config { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(260px,.85fr); gap:18px; margin-top:18px; align-items:start; }
#neoSocialRoot .social-monitoring-config fieldset { min-width:0; margin:0; padding:14px; border:1px solid var(--social-line); border-radius:14px; background:var(--social-paper); }
#neoSocialRoot .social-monitoring-config legend { padding:0 7px; color:var(--social-ink); font-weight:760; }
#neoSocialRoot .social-monitoring-target-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; max-height:340px; overflow:auto; padding:2px; }
#neoSocialRoot .social-monitoring-target { display:flex; align-items:flex-start; gap:10px; min-width:0; margin:0; padding:11px; border:1px solid var(--social-line); border-radius:11px; background:var(--social-panel); cursor:pointer; }
#neoSocialRoot .social-monitoring-target input[type="checkbox"] { flex:0 0 17px; width:17px; height:17px; margin:2px 0 0; accent-color:var(--social-accent-strong); }
#neoSocialRoot .social-monitoring-target > span { display:grid; gap:3px; min-width:0; }
#neoSocialRoot .social-monitoring-target > span > * { overflow-wrap:anywhere; }
#neoSocialRoot .social-monitoring-target > span > span { color:var(--social-muted); font-size:13px; }
#neoSocialRoot .social-monitoring-config > div { min-width:0; }
#neoSocialRoot .social-monitoring-config input[type="number"] { font-variant-numeric:tabular-nums; }
#neoSocialRoot .social-monitoring-record { margin:10px 0; padding:16px; border:1px solid var(--social-line); border-inline-start:4px solid var(--social-accent); border-radius:14px; background:var(--social-paper); }
#neoSocialRoot .social-monitoring-record h3 { margin:0; }
#neoSocialRoot .social-monitoring-record > p { overflow-wrap:anywhere; }
#neoSocialRoot .social-monitoring-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px 16px; margin:12px 0; }
#neoSocialRoot .social-monitoring-facts p { min-width:0; margin:0; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
#neoSocialRoot .social-monitoring-record code,
#neoSocialRoot .social-target-refresh code { overflow-wrap:anywhere; word-break:break-word; }
#neoSocialRoot .social-target-refresh { margin-top:12px; padding:14px; border:1px solid var(--social-line); border-radius:12px; background:var(--social-paper); }
#neoSocialRoot .social-target-refresh > p { overflow-wrap:anywhere; }
#neoSocialRoot .social-target-refresh .social-row { align-items:center; }
#neoSocialRoot .social-refresh-items { display:grid; gap:7px; margin:8px 0; padding-inline-start:20px; }
#neoSocialRoot .social-refresh-items li { padding-inline-start:3px; }
#neoSocialRoot .social-refresh-items a { overflow-wrap:anywhere; }
#neoSocialRoot .social-refresh-items .social-muted { display:inline-block; margin-inline-start:8px; }
#neoSocialRoot .social-target-refresh-panel { min-width:0; }
#neoSocialRoot .social-target-refresh-panel:empty { display:none; }
#neoSocialRoot .social-source-card .social-actions { flex-wrap:wrap; }
#neoSocialRoot .social-monitoring-target:has(input:checked) { border-color:var(--social-accent); background:var(--social-accent-soft); }
@media (max-width:767px) {
    #neoSocialRoot .social-monitoring-config { grid-template-columns:1fr; }
    #neoSocialRoot .social-monitoring-target-list { grid-template-columns:1fr; max-height:300px; }
    #neoSocialRoot .social-monitoring-facts { grid-template-columns:1fr; }
    #neoSocialRoot .social-monitoring-record .social-actions > button,
    #neoSocialRoot .social-target-refresh .social-actions > button { flex:1 1 100%; }
}

/* Owned source media stays inside the saved-example analysis flow. */
#neoSocialRoot .social-source-media { margin-top:14px; padding:clamp(15px,2vw,22px); border:1px solid var(--social-line); border-radius:15px; background:var(--social-paper); }
#neoSocialRoot .social-source-media .social-source-media-controls { display:grid; grid-template-columns:minmax(0,1fr) minmax(230px,.8fr); gap:14px; align-items:end; }
#neoSocialRoot .social-source-media .social-inline-check { align-items:flex-start; }
#neoSocialRoot .social-source-media .social-inline-check input { flex:0 0 18px; margin-top:3px; }
#neoSocialRoot .social-source-media .social-inline-check label { margin:0; font-weight:550; }
#neoSocialRoot .social-source-media-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(170px,100%),1fr)); gap:11px; margin-top:14px; }
#neoSocialRoot .social-source-frame { min-width:0; margin:0; padding:8px; border:1px solid var(--social-line); border-radius:12px; background:var(--social-panel); }
#neoSocialRoot .social-source-frame img { display:block; width:100%; aspect-ratio:9/16; object-fit:contain; border-radius:8px; background:var(--social-paper); }
#neoSocialRoot .social-source-frame figcaption { padding:8px 2px 2px; overflow-wrap:anywhere; font-size:13px; }
#neoSocialRoot .social-source-media-facts { display:flex; flex-wrap:wrap; gap:7px; margin:10px 0; }
#neoSocialRoot .social-source-media-facts .social-pill { max-width:100%; overflow-wrap:anywhere; }
#neoSocialRoot .social-source-media input[type="file"] { min-height:48px; }
#neoSocialRoot .social-source-media select { min-height:44px; }
#neoSocialRoot .social-source-media .social-actions { margin-top:12px; }
#neoSocialRoot .social-source-media-preview { min-width:0; margin-top:14px; }
@media (max-width:767px) {
    #neoSocialRoot .social-source-media .social-source-media-controls { grid-template-columns:1fr; }
    #neoSocialRoot .social-source-media-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:430px) {
    #neoSocialRoot .social-source-media-grid { grid-template-columns:1fr; }
}
#neoSocialRoot .social-stt-disclosure { padding:11px 13px; border-inline-start:3px solid var(--social-accent); background:var(--social-accent-soft); border-radius:0 10px 10px 0; }
#neoSocialRoot .social-stt-result { margin-top:13px; padding:14px; border:1px solid var(--social-line); border-radius:12px; background:var(--social-paper); }
#neoSocialRoot .social-stt-transcript { max-height:320px; overflow:auto; white-space:pre-wrap; overflow-wrap:anywhere; }
#neoSocialRoot .social-stt-pricing { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:7px 14px; }
#neoSocialRoot .social-stt-pricing dt { color:var(--social-muted); font-size:13px; }
#neoSocialRoot .social-stt-pricing dd { margin:0; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
@media (max-width:560px) {
    #neoSocialRoot .social-stt-pricing { grid-template-columns:1fr; }
}

/* Approved Neo Social finish: keep the real Portal scene visible beneath the
   native workspace without changing its API-driven content surfaces. */
#neoSocialRoot {
    --social-accent:#67e6f5;
    --social-accent-strong:#a1f1fa;
    --social-ink:#f0f5ff;
    --social-muted:#b5c6dc;
    --social-paper:rgba(8,18,38,.88);
    --social-panel:rgba(8,20,40,.84);
    --social-line:rgba(111,157,193,.34);
    --social-accent-soft:rgba(72,174,207,.14);
    --social-warn:#f1b5a7;
    width:min(1440px,100%);
    max-width:1440px;
    margin:0 auto;
    padding:clamp(16px,2.6vw,36px);
    border:0;
    border-radius:0;
    color:var(--social-ink)!important;
    background:transparent;
    font-family:inherit;
    position:relative;
    z-index:2;
}
html:not([data-theme="dark"]) #neoSocialRoot {
    --social-accent:#087e92;
    --social-accent-strong:#116d82;
    --social-ink:#142943;
    --social-muted:#536984;
    --social-paper:rgba(245,250,255,.91);
    --social-panel:rgba(246,251,255,.86);
    --social-line:rgba(73,112,148,.29);
    --social-accent-soft:rgba(35,143,165,.12);
    --social-warn:#9f493c;
}
#neoSocialRoot .social-return-row {
    display:flex;
    align-items:center;
    min-height:40px;
    margin:0 0 15px;
}
#neoSocialRoot a.social-ecosystem-return {
    display:inline-flex;
    align-items:center;
    gap:9px;
    min-height:40px;
    padding:7px 12px 7px 9px;
    border:1px solid var(--social-line);
    border-radius:11px;
    color:var(--social-ink)!important;
    background:var(--social-panel);
    font-size:13px;
    font-weight:650;
    text-decoration:none;
    transition:transform .18s ease,border-color .18s ease;
}
#neoSocialRoot .social-ecosystem-return:hover { border-color:var(--social-accent); transform:translateX(-2px); }
#neoSocialRoot .social-ecosystem-return span:first-child { color:var(--social-accent); font-size:18px; line-height:1; }
#neoSocialRoot .social-header {
    margin:0 0 18px;
    padding:0;
}
#neoSocialRoot .social-eyebrow { color:var(--social-accent-strong); }
#neoSocialRoot .social-header h1 { font-size:clamp(34px,4.5vw,54px); letter-spacing:-.05em; }
#neoSocialRoot .social-intro { max-width:780px; margin:0; font-size:14px; line-height:1.65; }
#neoSocialRoot .social-layout,
#neoSocialRoot .social-workspace { display:grid; grid-template-columns:minmax(0,1fr); gap:0; min-width:0; }
#neoSocialRoot .social-rail {
    position:static;
    display:block;
    min-width:0;
    margin:0 0 18px;
    padding:6px;
    border:1px solid var(--social-line);
    border-radius:15px;
    background:rgba(7,20,40,.80);
    box-shadow:inset 0 1px rgba(214,241,255,.06),0 12px 36px rgba(1,8,20,.12);
    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);
}
html:not([data-theme="dark"]) #neoSocialRoot .social-rail {
    background:rgba(244,249,255,.83);
    box-shadow:inset 0 1px rgba(255,255,255,.7),0 12px 34px rgba(35,68,104,.07);
}
#neoSocialRoot .social-rail nav {
    display:grid;
    grid-template-columns:repeat(7,minmax(0,1fr));
    gap:5px;
}
#neoSocialRoot .social-nav-item {
    display:flex;
    min-width:0;
    min-height:46px;
    justify-content:center;
    align-items:center;
    padding:8px 5px;
    border:1px solid transparent;
    border-radius:10px;
    color:var(--social-muted);
    font-size:12px;
    font-weight:650;
    line-height:1.2;
    text-align:center;
    overflow-wrap:anywhere;
    background:transparent;
}
#neoSocialRoot .social-nav-item[aria-current="page"] {
    color:var(--social-accent-strong);
    border-color:rgba(103,230,245,.35);
    background:linear-gradient(130deg,rgba(73,190,218,.18),rgba(147,125,232,.11));
    box-shadow:inset 0 1px rgba(224,250,255,.1);
}
html:not([data-theme="dark"]) #neoSocialRoot .social-nav-item[aria-current="page"] {
    color:#075d6c;
    border-color:rgba(8,126,146,.32);
    background:linear-gradient(130deg,rgba(38,166,186,.13),rgba(126,99,189,.08));
}
#neoSocialRoot .social-toolbar {
    margin:0 0 14px;
    padding:12px 15px;
    border-radius:14px;
    background:var(--social-panel);
    box-shadow:inset 0 1px rgba(214,241,255,.06);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
}
#neoSocialRoot .social-card {
    border-color:var(--social-line);
    border-radius:17px;
    background:var(--social-panel);
    box-shadow:inset 0 1px rgba(214,241,255,.055),0 12px 38px rgba(1,8,20,.11);
    backdrop-filter:blur(13px);
    -webkit-backdrop-filter:blur(13px);
}
html:not([data-theme="dark"]) #neoSocialRoot .social-card {
    background:var(--social-panel);
    box-shadow:inset 0 1px rgba(255,255,255,.72),0 12px 34px rgba(35,68,104,.06);
}
#neoSocialRoot .social-card--feature {
    background:linear-gradient(118deg,rgba(8,25,47,.88),rgba(11,24,47,.78));
}
html:not([data-theme="dark"]) #neoSocialRoot .social-card--feature {
    background:linear-gradient(118deg,rgba(244,250,255,.94),rgba(236,246,253,.87));
}
#neoSocialRoot .social-overview-hero {
    display:grid;
    grid-template-columns:minmax(0,.88fr) minmax(300px,1.12fr);
    min-height:315px;
    overflow:hidden;
    padding:0;
    border-color:rgba(90,168,202,.46);
    background:linear-gradient(115deg,rgba(8,24,46,.93),rgba(11,24,47,.80));
}
html:not([data-theme="dark"]) #neoSocialRoot .social-overview-hero {
    background:linear-gradient(115deg,rgba(246,251,255,.96),rgba(235,246,253,.88));
}
#neoSocialRoot .social-overview-copy { min-width:0; padding:clamp(20px,3vw,36px); align-self:center; }
#neoSocialRoot .social-overview-copy h2 {
    max-width:13ch;
    margin:9px 0 12px;
    font-size:clamp(30px,3.7vw,45px);
    line-height:1.08;
    letter-spacing:-.052em;
}
#neoSocialRoot .social-overview-copy h2 span { color:var(--social-accent-strong); }
#neoSocialRoot .social-overview-copy > p:not(.social-kicker) {
    max-width:48ch;
    color:var(--social-muted);
    font-size:14px;
    line-height:1.7;
}
#neoSocialRoot .social-overview-art {
    position:relative;
    min-width:0;
    min-height:280px;
    background:#0a192e url("/assets/neo-social-hero.webp") center/cover no-repeat;
    border-inline-start:1px solid rgba(109,166,202,.32);
}
#neoSocialRoot .social-overview-art::after {
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    background:linear-gradient(90deg,rgba(8,22,42,.26),transparent 40%),linear-gradient(0deg,rgba(5,15,33,.30),transparent 50%);
}
#neoSocialRoot .social-overview-actions { display:flex; flex-wrap:wrap; gap:9px; margin-top:20px; }
#neoSocialRoot .social-overview-actions button.primary {
    color:#07212e!important;
    border-color:#67e6f5;
    background:#67e6f5;
}
html:not([data-theme="dark"]) #neoSocialRoot .social-overview-actions button.primary {
    color:#f7fdff!important;
    border-color:#087e92;
    background:#087e92;
}
#neoSocialRoot .social-start-heading {
    display:flex;
    align-items:end;
    justify-content:space-between;
    gap:12px;
    margin:24px 2px 12px;
}
#neoSocialRoot .social-start-heading h2 { margin:0; font-size:21px; letter-spacing:-.03em; }
#neoSocialRoot .social-start-heading span { color:var(--social-muted); font-size:12px; }
#neoSocialRoot .social-start-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-bottom:14px; }
#neoSocialRoot .social-start-card {
    position:relative;
    display:block;
    min-width:0;
    min-height:148px;
    padding:17px 17px 16px;
    text-align:start;
    border-color:var(--social-line);
    border-radius:14px;
    background:var(--social-panel);
}
#neoSocialRoot .social-start-card .social-start-number {
    display:block;
    margin-bottom:15px;
    color:var(--social-accent);
    font:600 11px/1 ui-monospace,SFMono-Regular,Menlo,monospace;
    letter-spacing:.1em;
}
#neoSocialRoot .social-start-card strong { display:block; margin-bottom:6px; font-size:14px; }
#neoSocialRoot .social-start-card span:last-child { display:block; color:var(--social-muted); font-size:12px; line-height:1.55; }
#neoSocialRoot .social-studio-strip {
    display:grid;
    grid-template-columns:112px minmax(0,1fr) auto;
    align-items:center;
    gap:16px;
    padding:15px;
    border:1px solid rgba(170,142,235,.38);
    border-radius:15px;
    background:linear-gradient(110deg,rgba(48,38,80,.53),var(--social-panel));
}
html:not([data-theme="dark"]) #neoSocialRoot .social-studio-strip { background:linear-gradient(110deg,rgba(234,230,248,.8),var(--social-panel)); }
#neoSocialRoot .social-studio-thumb {
    min-height:75px;
    border-radius:9px;
    background:#111c35 url("/assets/neo-social-hero.webp") 72% center/cover no-repeat;
}
#neoSocialRoot .social-studio-strip h3 { margin:0 0 4px; font-size:15px; }
#neoSocialRoot .social-studio-strip p { margin:0; color:var(--social-muted); font-size:12px; line-height:1.5; }
#neoSocialRoot .social-studio-strip button { white-space:nowrap; }
#neoSocialRoot .social-actions button.primary { color:#07212e!important; }
html:not([data-theme="dark"]) #neoSocialRoot .social-actions button.primary { color:#fff!important; }
#neoSocialRoot .social-skeleton { background:linear-gradient(110deg,rgba(76,177,202,.09),rgba(138,119,215,.18),rgba(76,177,202,.09)); }
html[data-theme="dark"] #neoSocialRoot {
    --social-accent:#67e6f5;
    --social-accent-strong:#a1f1fa;
    --social-ink:#f0f5ff;
    --social-muted:#b5c6dc;
    --social-paper:rgba(8,18,38,.88);
    --social-panel:rgba(8,20,40,.84);
    --social-line:rgba(111,157,193,.34);
    --social-accent-soft:rgba(72,174,207,.14);
    --social-warn:#f1b5a7;
    background:transparent;
}
html[data-theme="dark"] #neoSocialRoot button.primary {
    color:#07212e!important;
    background:#67e6f5!important;
    border-color:#67e6f5!important;
}
html[data-theme="dark"] #neoSocialRoot .social-nav-item[aria-current="page"] {
    color:#a1f1fa!important;
    background:linear-gradient(130deg,rgba(73,190,218,.18),rgba(147,125,232,.11))!important;
    border-color:rgba(103,230,245,.35)!important;
}
@media(max-width:820px) {
    #neoSocialRoot { padding:14px 12px 30px; }
    #neoSocialRoot .social-rail nav { grid-template-columns:repeat(4,minmax(0,1fr)); }
    #neoSocialRoot .social-nav-item { min-height:48px; font-size:12px; }
    #neoSocialRoot .social-overview-hero { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
    #neoSocialRoot .social-start-grid { gap:8px; }
}
@media(max-width:560px) {
    #neoSocialRoot { margin-top:48px; }
    #neoSocialRoot .social-return-row { margin-bottom:12px; }
    #neoSocialRoot .social-header { margin-bottom:13px; }
    #neoSocialRoot .social-header h1 { font-size:36px; }
    #neoSocialRoot .social-intro { font-size:13px; }
    #neoSocialRoot .social-rail { margin-bottom:13px; }
    #neoSocialRoot .social-rail nav { grid-template-columns:repeat(4,minmax(0,1fr)); gap:4px; }
    #neoSocialRoot .social-nav-item { padding:7px 3px; min-height:50px; font-size:11px; }
    #neoSocialRoot .social-overview-hero { grid-template-columns:1fr; }
    #neoSocialRoot .social-overview-copy { padding:21px 19px 20px; }
    #neoSocialRoot .social-overview-copy h2 { font-size:33px; }
    #neoSocialRoot .social-overview-copy > p:not(.social-kicker) { font-size:13px; }
    #neoSocialRoot .social-overview-art { min-height:210px; border-inline-start:0; border-top:1px solid var(--social-line); }
    #neoSocialRoot .social-start-heading { align-items:flex-start; flex-direction:column; margin-top:20px; }
    #neoSocialRoot .social-start-grid { grid-template-columns:1fr; }
    #neoSocialRoot .social-start-card { min-height:0; padding:14px; }
    #neoSocialRoot .social-start-card .social-start-number { margin-bottom:9px; }
    #neoSocialRoot .social-studio-strip { grid-template-columns:74px minmax(0,1fr); gap:11px; }
    #neoSocialRoot .social-studio-thumb { min-height:68px; }
    #neoSocialRoot .social-studio-strip button { grid-column:1/-1; width:100%; }
}
@media(max-width:350px) {
    #neoSocialRoot { margin-top:0; padding:12px 9px 24px; }
    #neoSocialRoot .social-rail { padding:4px; }
    #neoSocialRoot .social-rail nav { grid-template-columns:repeat(4,minmax(0,1fr)); gap:3px; }
    #neoSocialRoot .social-nav-item { min-height:50px; padding:5px 2px; font-size:10px; }
    #neoSocialRoot .social-header h1 { font-size:32px; }
    #neoSocialRoot .social-overview-copy { padding:18px 15px; }
    #neoSocialRoot .social-overview-art { min-height:175px; }
}
@media(max-width:360px) {
    #neoSocialRoot { margin-top:0; }
    #neoSocialRoot .social-rail nav { grid-template-columns:repeat(4,minmax(0,1fr)); }
}

body.app-body:not(.neo-social-scene-active) .neo-ecosystem-scene-layer { opacity:0; }
body.app-body.neo-ecosystem-scene:not(.neo-social-scene-active) { background:var(--bg-primary)!important; }
html:not([data-theme="dark"]) body.app-body.neo-social-scene-active {
    background:#e7f0f6!important;
}
@media(max-width:560px) {
    body.app-body.neo-social-scene-active .profile-top-bar .neo-unified-brand span { display:none!important; }
    body.app-body.neo-social-scene-active .profile-top-bar .neo-unified-leading { min-width:0; flex:0 0 auto; }
    body.app-body.neo-social-scene-active .profile-top-bar .neo-unified-sections { padding-inline:7px; font-size:11px; }
}
@media(max-width:360px) {
    body.app-body.neo-social-scene-active .profile-top-bar .neo-unified-header { flex-wrap:wrap; }
    body.app-body.neo-social-scene-active .profile-top-bar .neo-unified-controls { flex:1 1 100%; flex-wrap:wrap; }
    body.app-body.neo-social-scene-active .neo-agent-float { position:fixed!important; top:auto!important; bottom:calc(12px + env(safe-area-inset-bottom,0px))!important; }
    #neoSocialRoot { margin-top:80px; }
    #neoSocialRoot .social-rail nav { grid-template-columns:repeat(3,minmax(0,1fr)); }
    #neoSocialRoot .social-nav-item { white-space:nowrap; }
    #neoSocialRoot .social-nav-item:last-child { grid-column:1/-1; }
}