/* Neo Med typography and explicit action/surface colour hierarchy. */
@font-face { font-family:'Blogger Seed';src:url('/fonts/line-seed-regular.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap; }
@font-face { font-family:'Blogger Seed';src:url('/fonts/line-seed-bold.woff2') format('woff2');font-weight:700;font-style:normal;font-display:swap; }
:root {
 --head-message-width:480px;
 --primary:#003796; --secondary:#77b6e3; --tertiary:#b9daf2;
 --ink:#142030; --muted:#465971; --green:var(--primary); --blue:var(--primary);
 --bg:#edf5fc; --line:#ffffffd9;
 --glass:linear-gradient(135deg,#ffffffbf,#ffffff6e 60%,#e8f4ff9e);
 --shadow:0 10px 30px #0037960b,inset 0 1px 0 #fff,inset 0 -1px 0 #ffffff70;
}
body { font-family:'Blogger Seed','Segoe UI',Arial,sans-serif;font-size:16px;font-weight:400;line-height:1.6;color:var(--ink); }
body::before { background:radial-gradient(ellipse at 10% 10%,#b9daf2a6,transparent 55%),radial-gradient(ellipse at 90% 80%,#77b6e34a,transparent 55%),linear-gradient(140deg,#f9fcff,#eaf3fc 60%,#f4f9fe); }
button,input,select,textarea { font-family:inherit;font-size:16px;line-height:1.5;letter-spacing:0; }
button,.ghost-btn,.idea-form button,.card-actions button,.studio-section button,.audience-section button { font-size:14px;font-weight:700;color:var(--primary);border-color:#ffffffed; }
.primary-btn,.primary-btn:hover { color:#fff;background:var(--primary);border-color:#003796;box-shadow:0 6px 18px #00379620,inset 0 1px #ffffff30; }
.brand strong { font-size:22px;font-weight:700;letter-spacing:-.4px; }
.brand-mark { color:var(--primary);background:#ffffffbd; }
.nav-list a { font-size:15px;font-weight:400;line-height:1.45;color:#394e68; }
.nav-list a.active { color:var(--primary);font-weight:700;background:linear-gradient(135deg,#ffffffed,#e3f1fbd4); }
.nav-list a:hover { color:var(--primary);background:#ffffffb5; }
.topbar h1 { font-size:clamp(28px,3vw,36px);line-height:1.2;letter-spacing:-.7px;font-weight:700; }
.topbar h1 em { font-family:inherit;font-size:inherit;font-weight:700;font-style:normal;color:var(--primary); }
h2,.panel-header h2 { font-size:23px;font-weight:700;line-height:1.3;letter-spacing:-.3px; }
h3,.dash-panel-title h3,.api-settings-card h3 { font-size:18px;font-weight:700;line-height:1.4; }
h4,.connect-provider h4 { font-size:17px;font-weight:700;line-height:1.4; }
p,.workspace-intro,.dash-toolbar p,#team .team-banner p,.platform-stats p,.connect-provider p { font-size:15px;line-height:1.7; }
label,.studio-label,.studio-fields label,.auth-screen label,dialog label,.api-key-field,#team label { font-size:14px;font-weight:400;line-height:1.5;color:#344b66; }
input::placeholder,textarea::placeholder { color:#64758b; }
input,select,textarea { background:#ffffffb0;border-color:#c5d8e9; }
small,.dash-panel small,.dash-kpis small,.platform-stats small,.connect-provider small,.api-check-result,.workspace-footer,#dashNotice,#platformStatsNotice,#integrationStatus,#publicationHistory,.motion-control { font-size:13px;line-height:1.6;color:var(--muted); }
.stats-grid article>span,.dash-kpis article>span,.dash-row strong,.dash-post strong,.dash-empty,.team-thread span,#team .team-thread strong,#team .team-chat p { font-size:15px;line-height:1.6; }
.stats-grid strong,.stats-grid article:nth-child(n) strong,.dash-kpis article>strong,.platform-stats dd,#team .team-number { color:var(--primary);font-variant-numeric:tabular-nums;font-weight:700;letter-spacing:-.6px; }
.dash-kpis article>strong { font-size:36px;line-height:1.2; }
.dash-row>span,#team .team-metric-list dd { color:var(--primary);font-size:15px;font-weight:700; }
.dash-label,.dash-toolbar label,.dash-day time,.team-eyebrow,#team .team-demo-caption,#team .team-toolbar label,#team .team-chat small { font-size:12px;line-height:1.6;letter-spacing:.2px;color:var(--muted); }
.dash-stage>div:first-child { font-size:14px; }.dash-post { font-weight:400; }
.dash-track span,.dash-column span,.bar { background:linear-gradient(135deg,var(--primary),var(--secondary)); }
.dash-track,.dash-column { background:#b9daf24a; }
#team .team-tag,#teamRoleBadge { color:var(--primary);background:#e6f2fc;font-size:13px;font-weight:700; }
#team .team-tabs [aria-selected=true] { color:var(--primary);background:#ffffffd9; }
.inbox-message[data-direction=out],.inbox-threads button[aria-pressed=true],#team .team-chat .team-reply,#team .team-thread[aria-pressed=true] { background:#b9daf255; }
.workspace-footer { font-size:14px; }
.studio-settings summary { color:var(--primary);font-size:15px; }
.auth-screen h1 { color:var(--primary); }.auth-screen h2 { font-size:21px; }.auth-screen form { background:#ffffffc7; }
a { color:var(--primary); }button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline-color:var(--primary); }
@media(max-width:850px) { .nav-list a { font-size:15px; }.topbar h1 { font-size:28px; }.workspace-intro { font-size:14px; }.sidebar .nav-list { gap:8px; } }
@media(max-width:560px) { body { font-size:16px; }.topbar h1 { font-size:27px; }.dash-panel-title h3 { font-size:18px; }.dash-kpis article>strong { font-size:32px; }button,input,select,textarea { min-height:44px; }input[type=checkbox],input[type=range] { min-height:initial; } }

/* Neo Med workspace: strong blue navigation, white surfaces, clear hierarchy. */
:root { --bg:#f1f5fb;--surface:#ffffff;--ink:#142030;--muted:#45566e;--line:#d9e4f0;--glass:#ffffff;--shadow:0 8px 28px #123b6b09; }
body { background:var(--bg); }body::before { background:radial-gradient(ellipse at 100% 0,#d7eafb88,transparent 50%),#f1f5fb;animation:none; }
.app-shell { gap:26px;padding:20px; }
.workspace { padding-top:0; }
.sidebar { background:linear-gradient(165deg,#003796,#002a74);border:1px solid #ffffff30;box-shadow:0 16px 36px #00379624;border-radius:24px;padding:28px 16px;color:#fff;backdrop-filter:none;-webkit-backdrop-filter:none; }
.sidebar .brand { padding:0 10px 20px;border-bottom:1px solid #ffffff2b; }
.sidebar .brand strong { color:white;font-size:22px; }
.sidebar .brand-mark { color:var(--primary);background:white;border-radius:13px;box-shadow:none; }
.sidebar .nav-list { gap:9px; }
.sidebar .nav-list a { color:#e2edff;font-size:15px;font-weight:400;border-radius:13px;min-height:48px;border:1px solid transparent; }
.sidebar .nav-list a.active { color:var(--primary);background:#fff;border-color:#fff;font-weight:700;box-shadow:0 5px 16px #00206024; }
.sidebar .nav-list a:hover { background:#ffffff18;color:white; }.sidebar .nav-list a.active:hover { background:white;color:var(--primary); }
.sidebar .nav-list img { filter:brightness(0) invert(1);width:20px;height:20px;opacity:.88; }
.sidebar .nav-list a.active img { filter:saturate(1.1) brightness(.6);opacity:1; }
.sidebar .motion-control { color:#e0ecff;border-top:1px solid #ffffff2b;padding-top:20px; }
.sidebar .motion-control input { accent-color:#b9daf2; }
.topbar { min-height:110px;margin-bottom:24px;padding:20px 26px;background:#ffffffdc;border:1px solid #fff;border-radius:22px;box-shadow:var(--shadow);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px); }
.topbar h1 { font-size:32px;color:var(--ink);letter-spacing:-.6px; }
.workspace-intro { margin-top:8px;color:#42556e; }
#teamRoleBadge { font-size:12px;color:#003796;background:#e6f0fc;border:1px solid #d4e3f4;padding:3px 11px;margin-top:7px; }
.workspace-tools { padding:0;margin:0 0 26px;gap:12px; }
.workspace-tools input { background:white;min-height:50px; }
button,.ghost-btn,.idea-form button,.card-actions button,.studio-section button,.audience-section button { color:#003796;background:white;border:1px solid #cddded;border-radius:12px;box-shadow:none;font-weight:700; }
button:hover,.ghost-btn:hover { background:#edf5fe;color:#002c7a;box-shadow:0 4px 12px #0037960d; }
.primary-btn,.primary-btn:hover { color:white;background:#003796;border-color:#003796;box-shadow:0 6px 14px #00379624; }
input,select,textarea { color:#142030;background:#f8fbff;border:1px solid #cbd9e9;border-radius:11px;box-shadow:none; }
input:focus,select:focus,textarea:focus { border-color:#77b6e3; }
.connections,.stats-grid article,.api-settings-card,.studio-preview,.studio-scene,.audience-channel,.calendar-item,.idea-item,.post-card,.inbox-detail,.dash-panel,.dash-kpis article,.lead-box,.lead-stats article,.reference-card,.account-connect,.connect-provider,#team .team-card,.workspace-footer { background:#fff;border:1px solid #dce6f1;border-radius:20px;box-shadow:var(--shadow);backdrop-filter:none;-webkit-backdrop-filter:none; }
.dash-toolbar { margin:30px 0 12px; }.dash-toolbar h2 { font-size:26px;letter-spacing:-.5px; }.dash-toolbar p { color:#45566e; }
.dash-kpis { gap:18px;margin:20px 0 24px; }
.dash-kpis article { padding:26px 24px;min-height:174px;position:relative;overflow:hidden; }
.dash-kpis article>span { font-size:14px;font-weight:700;color:#425873; }
.dash-kpis article>strong { font-size:42px;margin:17px 0 8px; }
.dash-kpis article:first-child { background:linear-gradient(135deg,#003796,#104eae);border-color:#003796;box-shadow:0 10px 24px #00379624; }
.dash-kpis article:first-child>span,.dash-kpis article:first-child>strong { color:white; }.dash-kpis article:first-child small { color:#dceaff; }
.dash-kpis article:nth-child(2) { border-top:4px solid #77b6e3; }.dash-kpis article:nth-child(3) { border-top:4px solid #b9daf2; }.dash-kpis article:nth-child(4) { border-top:4px solid #dce9f6; }
.connections { border-left:4px solid #003796;padding:24px;margin-bottom:26px; }
#integrationStatus>* { background:#edf5fe;border:1px solid #deebf7;border-radius:9px; }
.dash-panel { padding:25px; }.dash-panel-title { padding-bottom:17px;border-bottom:1px solid #e4ecf5; }
.dash-panel-title h3 { color:#142030;font-size:19px; }.dash-row,.dash-post { border-color:#e6edf5; }
.dash-track,.dash-column { background:#edf3fa; }.dash-track span,.dash-column span,.bar { background:#77b6e3; }.dash-stage:first-child .dash-track span { background:#003796; }
.lane,.bar-chart,.insights,.inbox-layout,#studioEmptyPreview { background:#f0f6fd;border-color:#dbe6f2; }
.studio-preview { background:#edf5fc; }.studio-scenes { gap:18px; }.studio-scene { padding:20px; }
.account-connect { padding:26px; }.connect-provider { background:#f6faff;box-shadow:none; }.connect-provider .primary-btn { margin:14px 0 6px; }
.api-settings-card header { border-bottom:1px solid #e4ecf4;padding-bottom:16px; }.api-settings-card header span { background:#eef5fd;border-radius:8px;padding:4px 9px;color:#34577e; }
#team .team-banner { background:linear-gradient(125deg,#003796,#0b4fac);border:1px solid #003796;border-radius:22px;box-shadow:0 12px 26px #00379620;backdrop-filter:none; }
#team .team-banner h2,#team .team-banner .team-banner-status { color:#fff; }#team .team-banner p,#team .team-banner small,#team .team-banner .team-eyebrow { color:#dfecff; }
#team .team-tabs { background:#e7eff9;border-color:#d9e5f2; }#team .team-tabs [aria-selected=true] { color:#003796;background:white;box-shadow:0 2px 8px #00379609; }
#team .team-thread,#team .team-chat p { background:#f6f9fd;border-color:#dce7f3; }
#team .team-chat .team-reply { background:#e6f1fc;border-color:#cfe1f3; }
.auth-screen form,dialog { color:#142030;background:#fffffffa;border:1px solid #fff;box-shadow:0 25px 80px #123b6b24; }.auth-screen { background:linear-gradient(130deg,#e7f3fd,#f6faff); }
.auth-screen h1 { color:#003796;font-size:32px; }.workspace-footer { color:#45566e; }
@media(max-width:850px) { .topbar { padding:20px;border-radius:20px; }.app-shell { padding:16px; }.sidebar { padding:22px 16px; }.sidebar .brand { padding-bottom:16px; }.dash-kpis article { padding:22px;min-height:166px; } }
@media(max-width:560px) { .topbar { padding:18px;row-gap:15px;grid-template-columns:44px minmax(0,1fr) auto; }.topbar h1 { font-size:26px; }.workspace-intro { font-size:14px; }.topbar #newPostBtn { margin-left:0; }.dash-toolbar { margin-top:26px; }.dash-toolbar h2 { font-size:25px; }.dash-kpis { gap:12px; }.dash-kpis article { padding:20px; }.dash-kpis article>strong { font-size:36px; }.dash-panel,.connections { padding:20px; } }

/* Primary = main actions, secondary = supporting actions, tertiary = context. */
:root {
 --primary:#003796; --primary-hover:#00296f; --primary-soft:#e8efff;
 --secondary:#087c86; --secondary-soft:#e7f5f4;
 --tertiary:#7160a8; --tertiary-soft:#f0edf8;
 --surface:#fff; --surface-muted:#f4f7fc; --line:#d7e1ee;
 --success:#216949; --warning:#88540b; --danger:#ac3041;
}
button,.ghost-btn,.idea-form button,.card-actions button,.studio-section button,.audience-section button {
 color:var(--secondary); background:var(--secondary-soft);border-color:#b9dcde;
}
button:hover,.ghost-btn:hover {color:#065d65;background:#d4eeed;border-color:#8bc3c6;}
.primary-btn,button.primary-btn,.studio-section button.primary-btn,.audience-section button.primary-btn {
 color:#fff;background:var(--primary);border-color:var(--primary);box-shadow:0 5px 14px #00379620;
}
.primary-btn:hover,button.primary-btn:hover,.studio-section button.primary-btn:hover,.audience-section button.primary-btn:hover {
 color:#fff;background:var(--primary-hover);border-color:var(--primary-hover);
}
button:disabled {opacity:.5;box-shadow:none;cursor:not-allowed;}
.topbar {border-bottom:3px solid #cedcf6;}
.workspace-intro,.workspace-footer {color:#516178;}
h2,.panel-header h2 {color:#17365d;}
h3,.dash-panel-title h3 {color:#223a55;}
.panel-header {border-bottom:1px solid var(--line);padding-bottom:16px;}
.connections,.account-connect {border-left:4px solid var(--secondary);background:linear-gradient(120deg,#f0faf9,#fff 65%);}
.connect-provider,.audience-channel {background:var(--secondary-soft);border-color:#c7e3e2;}
.api-settings-card header span,.studio-settings summary {color:var(--tertiary);}
.lane,.bar-chart,.insights,.inbox-layout,#studioEmptyPreview {background:var(--surface-muted);}
.dash-kpis article:nth-child(2) {background:#edf8f7;border-top-color:var(--secondary);}
.dash-kpis article:nth-child(2)>strong {color:var(--secondary);}
.dash-kpis article:nth-child(3) {background:var(--tertiary-soft);border-top-color:var(--tertiary);}
.dash-kpis article:nth-child(3)>strong {color:var(--tertiary);}
.dash-kpis article:nth-child(4) {background:#fff8ec;border-top-color:#d5a456;}
.dash-kpis article:nth-child(4)>strong {color:var(--warning);}
.dash-track span,.dash-column span {background:var(--secondary);}
.bar:nth-child(4n+1) {background:var(--primary);}
.bar:nth-child(4n+2) {background:var(--secondary);}
.bar:nth-child(4n+3) {background:var(--tertiary);}
.bar:nth-child(4n) {background:#bc873c;}
#team .team-tabs {background:#e8eef8;border-color:#d5e0f0;}
#team .team-tabs button {color:#50617c;background:transparent;border-color:transparent;}
#team .team-tabs [aria-selected=true] {background:var(--primary);color:#fff;box-shadow:0 4px 12px #00379620;}
#team .team-tag {color:var(--tertiary);background:var(--tertiary-soft);border:1px solid #e1daf0;}
#teamRoleBadge {background:var(--primary-soft);color:var(--primary);}
#team .team-card {border-top:3px solid #ccd9ee;}
#team .team-card h3 {color:#17365d;}
#team .team-thread[aria-pressed=true],.inbox-threads button[aria-pressed=true] {background:var(--secondary-soft);border-color:#77b8bb;color:#075f66;}
#team .team-chat .team-reply,.inbox-message[data-direction=out] {background:#e5f4f1;border-color:#b9dcd4;color:#174d44;}
.workspace-footer {background:#edf2fa;border-color:#d6e0ee;}
input:focus-visible,textarea:focus-visible,select:focus-visible {outline:3px solid #087c8638;outline-offset:2px;border-color:var(--secondary);}
button:focus-visible,a:focus-visible {outline:3px solid #668ed0;outline-offset:3px;}
#teamTasks,#teamTabTasks,#teamVideoForm,#saveAiPosts,#generateAiPosts {display:none!important;}
.head-message-popup {width:min(var(--head-message-width),calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;box-sizing:border-box;padding:26px;border-radius:22px;}
.head-message-popup::backdrop {background:#12274870;backdrop-filter:blur(4px);}
.head-message-popup form,.head-message-popup label {display:grid;gap:14px;}
.head-message-text {white-space:pre-wrap;overflow-wrap:anywhere;}
.head-message-actions {display:flex;flex-wrap:wrap;gap:12px;}
#instagramAnalytics {margin-top:18px;}
#instagramAnalyticsData details {margin-top:14px;padding:12px;background:var(--surface-muted);border:1px solid var(--line);border-radius:12px;}
#instagramAnalyticsData summary {font-weight:700;cursor:pointer;min-height:32px;}
.ig-main-metrics dl {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.platform-stats .ig-main-metrics dl div {display:flex;flex-direction:column;gap:6px;padding:14px;background:var(--primary-soft);border:1px solid #d4e1f5;border-radius:12px;}
.platform-stats .ig-main-metrics dd {font-size:24px;overflow-wrap:anywhere;}
[data-ig-days][aria-pressed=true] {background:var(--primary);color:#fff;border-color:var(--primary);}
@media(max-width:560px) {.ig-main-metrics dl {grid-template-columns:minmax(0,1fr);}}
/* Readable text: grey helper texts were too faint on white cards. Kept last so it wins over older layers. */
:root { --muted: #3a4a60; --ink: #0f1a2b; }
body, .workspace-intro, .panel, .studio-section, .audience-section { color: var(--ink); }
small, .workspace-intro, .dash-kpi-foot, .dash-card header small, .dash-insights span, .niche-help, .niche-card header,
.niche-card footer > span, .dash-bar > div span, .dash-empty, .inbox-threads small, #inboxMeta, .api-check-result,
.studio-label, .studio-fields label, .studio-fields > label, .reference-consent, .audience-channel p, .audience-channel small,
.connect-provider p, .connect-provider small, .api-key-field, .dash-kpi header span:not(.dash-icon), .dash-bars h4 {
  color: #34445a !important;
}
.dash-grid-lines text, .dash-axis text { fill: #4d5c72 !important; }
input::placeholder, textarea::placeholder { color: #6c7a8e; opacity: 1; }

/* Keep explanatory copy as readable as the main labels, including on phones. */
p, small, label, li, td, .workspace-intro, .platform-heading p, .dash-kpi-foot,
.dash-insights span, .dash-bar > div span, .dash-empty, .connect-provider p,
.connect-provider small, .audience-channel p, .audience-channel small,
.inbox-threads small, #inboxMeta, .api-check-result, .reference-consent,
.studio-label, .studio-fields label, .api-key-field, [role="status"], [role="alert"] {
  font-weight: 600;
  color: #263b55;
  line-height: 1.65;
}
p, [role="status"], [role="alert"] { font-size: 16px; }
small, .dash-kpi-foot, .dash-card header small, .inbox-threads small,
.platform-heading p, .api-check-result, .dash-insights span { font-size: 14px; }
