/* Familia W: Focus W tiene identidad índigo, sin alterar las otras apps. */
:root{--navy:#08275B;--focus:#6554C8;--focus-hover:#5141ae;--blue:var(--focus);--sky:#008F88;--teal:var(--focus);--lime:#eeebfb;--bg:#F5F7FA;--white:#FFFFFF;--ink:#08275B;--muted:#334155;--line:#dfe3ec;--focus-soft:#f0edfc}
.sidebar{background:linear-gradient(175deg,#342c67,#25204a 60%,#08275B)}
.brand{display:block;line-height:1}
.logo-frame{display:block;padding:10px 8px;background:white;border-radius:12px;box-shadow:0 3px 15px #001d4033}
.brand-logo{display:block;width:100%;aspect-ratio:4.5/1;object-fit:cover;object-position:50% 50%}
.brand-sub{text-align:center;margin:12px 0 36px;letter-spacing:1.6px;color:#d7d1f1}
.nav button.active{background:var(--focus);color:#fff;box-shadow:inset 3px 0 #d8d0ff}
.nav button:hover{background:#ffffff18}
.org-mini{border-color:#ffffff26}
.avatar{background:var(--focus-soft);color:var(--navy)}
.wordmark{display:block;font-size:0;width:86px;height:84px;border-radius:9px;margin:10px auto 0;background:white url('/company-logo.png') center/68px auto no-repeat}
.sidebar-footer{text-align:center;color:#d3cfe8}
.metric.featured{background:linear-gradient(130deg,#443588,var(--focus));border-color:var(--focus)}
.metric.featured .metric-label,.metric.featured small{color:#eeeaff}
.featured .delta{color:#dcf8d9}
.featured .delta.negative{color:#ffe1df}
.insight-panel{background:var(--focus-soft);border-color:#d8d0f4}
.insight-panel p{color:var(--muted)}
.spark{background:#e0daf7;color:var(--focus)}
.tag{color:var(--blue)}
.insight-footer{color:var(--muted)}
.secondary{background:var(--focus-soft);color:var(--focus-hover);border-color:#d8d0f4}
.primary{background:var(--focus);border-color:var(--focus);color:#fff}
.primary:hover{background:var(--focus-hover);border-color:var(--focus-hover)}
.text-button,a{color:var(--focus-hover)}
.dot.blue{background:var(--sky)}
.bar.facebook{background:var(--focus)}
.bar.linkedin{background:#b56a23}
.network-bars>div:nth-child(2) .bar{background:var(--sky)}
.switch-label input{accent-color:var(--blue)}
@media(max-width:760px){.brand{max-width:205px}.brand-sub{display:none}}

/* Administración: lectura cómoda sin aumentar la densidad del dashboard. */
.admin-workspace{font-size:16px;line-height:1.6}
.admin-workspace h2{font-size:21px}
.admin-workspace h3{font-size:18px}
.admin-workspace .page-heading p,.admin-workspace .panel-heading p{font-size:15px}
.admin-workspace .form label,.admin-workspace .mapping label{font-size:15px;font-weight:500;gap:7px}
.admin-workspace input,.admin-workspace select,.admin-workspace textarea{font-size:16px;padding:11px 13px;min-height:46px}
.admin-workspace textarea{min-height:240px;line-height:1.7}
.admin-workspace button{font-size:15px;min-height:42px}
.admin-workspace table{font-size:15px}
.admin-workspace th{font-size:14px}
.admin-workspace th,.admin-workspace td{padding:13px 14px}
.admin-workspace td button{font-size:14px;padding:7px 11px;min-height:36px}
.admin-workspace small,.admin-workspace .help,.admin-workspace .notice,.admin-workspace .status,.admin-workspace .field-error,.admin-workspace .steps{font-size:14px}
.admin-workspace .filters label{font-size:13px}
.admin-workspace .switch-label{font-size:15px!important}
.admin-workspace .switch-label input{min-height:20px;width:20px;height:20px}
.admin-workspace .success,.admin-workspace .errors{font-size:15px}

/* Dashboard: tamaño legible en pantalla, sin depender del zoom. */
.metric-action{display:block;width:100%;text-align:left;color:var(--ink);font-family:inherit;cursor:pointer}
.metric-action:hover{border-color:var(--focus);box-shadow:0 4px 16px #6554c820;transform:translateY(-2px)}
.metric-action.featured:hover{color:white;background:var(--focus-hover)}
.metric-action:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.metric-network{display:inline-block;margin-bottom:12px;border-radius:6px;padding:4px 8px;font-size:13px;font-weight:650;line-height:1.4;background:var(--focus-soft);color:var(--focus-hover)}
.metric-coverage{display:block;margin-top:9px;line-height:1.5;font-weight:400}
.client-networks{display:block;margin-top:7px;white-space:normal}
.story-hero{padding:40px 42px;border:1px solid var(--focus);background:linear-gradient(115deg,var(--navy),var(--focus));border-radius:22px;margin-bottom:24px;color:white;box-shadow:0 14px 36px #08275b18}
.story-hero .eyebrow{color:white;opacity:.85}
.story-hero h2{font-size:clamp(28px,2.6vw,38px)!important;margin:10px 0 18px;color:white;line-height:1.25}
.story-hero p{font-size:clamp(19px,1.7vw,23px);line-height:1.7;max-width:1000px;color:white}
.story-hero small{display:block;font-size:13px;margin-top:22px;max-width:850px;color:white;opacity:.85}
.story-charts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin-bottom:28px}
.story-charts .panel{min-width:0;margin:0;padding:24px}
.summary-bar{fill:var(--focus);transition:opacity .15s}
.summary-bar-negative{fill:var(--muted)}
.summary-bar:hover,.summary-bar:focus{opacity:.75;stroke:var(--navy);stroke-width:2;outline:none}
.bar-baseline{stroke:var(--muted);stroke-width:1.2}
.chart-detail{border:0;background:transparent;color:var(--focus-hover);padding:8px 0;font-size:14px;font-weight:600;margin-top:8px}
.chart-detail:hover{background:transparent;text-decoration:underline}
.story-networks{padding:28px!important;margin-bottom:30px}
.story-networks p{font-size:15px;color:var(--muted);margin:8px 0 22px}
.social-menu{display:flex;flex-wrap:wrap;gap:12px}
.social-menu button{display:flex;align-items:center;gap:12px;padding:12px 17px;border:1px solid var(--line);background:white;color:var(--navy);border-radius:13px;font-size:16px;font-weight:600;min-height:58px}
.social-menu button:hover{border-color:var(--focus);background:var(--focus-soft);color:var(--focus-hover)}
.social-icon{display:grid;place-items:center;width:32px;height:32px;color:var(--focus)}
.social-icon svg{display:block;width:25px;height:25px}
.social-menu button:focus-visible,.chart-detail:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
@media(max-width:1000px){.story-charts{grid-template-columns:1fr}}
@media(max-width:600px){.story-networks{padding:20px!important}.social-menu{display:grid;grid-template-columns:1fr}.social-menu button>span:last-child{margin-left:auto}.story-charts .panel{padding:18px}}
.story-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:34px}
.story-metric{display:flex;flex-direction:column;align-items:start;text-align:left;gap:12px;padding:25px;border-radius:17px;border:1px solid var(--line);background:white;color:var(--ink);line-height:1.6}
.story-metric:hover{border-color:var(--focus);background:white;box-shadow:0 8px 24px #6554c815}
.story-card-title{font-size:16px;font-weight:600}
.story-metric>strong{font-size:39px;font-weight:650;line-height:1.2;letter-spacing:-1px}
.story-metric>span:not(.story-card-title){font-size:14px;color:var(--muted)}
.story-metric small{font-size:12px;line-height:1.6}
.story-card-link{color:var(--focus-hover)!important;margin-top:auto;padding-top:5px;font-weight:600}
.story-section{margin-bottom:32px}
.story-editorial{padding:30px;margin:30px 0}
.story-editorial>.muted{font-size:15px;margin:8px 0 22px}
.story-editorial article+article{border-top:1px solid var(--line);padding-top:20px;margin-top:20px}
.story-editorial h3{text-transform:capitalize;color:var(--focus-hover);margin:0 0 12px}
.story-analysis{white-space:pre-wrap;line-height:1.9;font-size:17px;max-width:980px}
.story-detail-callout{padding:28px;border-radius:16px;background:#eae6f7;display:flex;justify-content:space-between;align-items:center;gap:25px}
.story-detail-callout p{font-size:15px;margin-top:7px;max-width:680px}
.story-detail-callout button{white-space:nowrap;min-height:48px;font-size:16px}
.report-back{display:flex;align-items:center;gap:20px;margin-bottom:24px;font-size:14px;color:var(--muted)}
@media(max-width:900px){.story-metrics{grid-template-columns:1fr}.story-metric{gap:8px}.story-hero{padding:24px}.story-hero p{font-size:18px}.story-detail-callout{align-items:start;flex-direction:column}.story-editorial{padding:22px}}
.metric-action[data-network="X"]{border-top:4px solid #182432}
.metric-action[data-network="TikTok"]{border-top:4px solid #a82b65}
.metric-action[data-network="X"] .metric-network{background:#e9edf1;color:#182432}
.metric-action[data-network="TikTok"] .metric-network{background:#fbeaf2;color:#8b2153}
.workspace:not(.admin-workspace) .metric-grid:has([data-network="Todas"]){grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:760px){.workspace:not(.admin-workspace) .metric-grid:has([data-network="Todas"]){grid-template-columns:repeat(2,minmax(0,1fr))}}
.metric-action[data-network="Todas"]{border-top:4px solid var(--focus)}
.metric-action[data-network="Facebook"]{border-top:4px solid #1877f2}
.metric-action[data-network="Facebook"] .metric-network{background:#e8f0fe;color:#164b9c}
.metric-action[data-network="Instagram"]{border-top:4px solid #b73584}
.metric-action[data-network="Instagram"] .metric-network{background:#fbeaf5;color:#922669}
.metric-action[data-network="LinkedIn"]{border-top:4px solid #0a66c2}
.metric-action[data-network="LinkedIn"] .metric-network{background:#e6f1fb;color:#074e96}
.metric-action.featured .metric-network{background:white;color:var(--focus-hover)}
.network-choice{display:grid;gap:12px;margin-top:20px}
.network-choice button{font-size:17px;padding:14px;text-align:left;min-height:50px}
.workspace:not(.admin-workspace){font-size:16px;line-height:1.6}
.workspace:not(.admin-workspace) .page-heading p{font-size:16px}
.workspace:not(.admin-workspace) h2{font-size:21px}
.workspace:not(.admin-workspace) .filters label{font-size:13px}
.workspace:not(.admin-workspace) .filters select,.workspace:not(.admin-workspace) .filters input{font-size:16px;min-height:44px}
.workspace:not(.admin-workspace) .switch-label{font-size:15px!important}
.workspace:not(.admin-workspace) .metric{min-height:156px}
.workspace:not(.admin-workspace) .metric-label{font-size:15px;line-height:1.4}
.workspace:not(.admin-workspace) .metric-value{font-size:32px}
.workspace:not(.admin-workspace) .metric-value.unavailable{font-size:20px}
.workspace:not(.admin-workspace) .metric small,.workspace:not(.admin-workspace) .delta{font-size:13px}
.workspace:not(.admin-workspace) .metric-note{font-size:13px;line-height:1.7}
.workspace:not(.admin-workspace) .panel-heading p,.workspace:not(.admin-workspace) .legend{font-size:13px}
.workspace:not(.admin-workspace) .panel-heading select,.workspace:not(.admin-workspace) .section-title select{font-size:15px;min-height:40px;max-width:190px}
.workspace:not(.admin-workspace) .axis-label{font-size:12px}
.workspace:not(.admin-workspace) .bar-label,.workspace:not(.admin-workspace) .format-row{font-size:15px}
.workspace:not(.admin-workspace) .format-row{grid-template-columns:100px 1fr 70px}
.workspace:not(.admin-workspace) .bar-note,.workspace:not(.admin-workspace) .insight-footer{font-size:13px}
.workspace:not(.admin-workspace) .insight-panel p,.workspace:not(.admin-workspace) .analysis{font-size:16px}
.workspace:not(.admin-workspace) .notice{font-size:15px}
.workspace:not(.admin-workspace) .notice small{font-size:14px}
.workspace:not(.admin-workspace) .tag{font-size:12px}
.workspace:not(.admin-workspace) .post-meta,.workspace:not(.admin-workspace) .post-stats small,.workspace:not(.admin-workspace) .post-body>small{font-size:13px}
.workspace:not(.admin-workspace) .post-body h3,.workspace:not(.admin-workspace) .post-stats{font-size:16px}
.workspace:not(.admin-workspace) .post a{font-size:15px}
.workspace:not(.admin-workspace) .section-title small{font-size:14px}
.workspace:not(.admin-workspace) .footer{font-size:13px;gap:16px}
.nav button{font-size:15px}
.crumb{font-size:14px}
/* Focus: interfaz analítica ligera. Conserva todos los controles existentes. */
@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url('/inter-regular.ttf') format('truetype')}
@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url('/inter-medium.ttf') format('truetype')}
@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url('/inter-semibold.ttf') format('truetype')}
@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url('/inter-bold.ttf') format('truetype')}
:root{--bg:#F7F8FC;--ink:#172b4d;--muted:#5b667b;--line:#e7eaf2;--focus-soft:#f2f0fc;--track:#f0f2f8;--chart-four:#9d8dde;--chart-five:#b97a58;--radius:14px}
body{font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:15px;line-height:1.6}
.app{display:block;min-height:100vh}
.main{min-width:0}
.topbar{height:auto;min-height:88px;gap:24px;padding:14px 34px;position:relative;background:white;flex-wrap:wrap}
.app-brand{display:flex;align-items:center;gap:22px;text-decoration:none;color:var(--navy);flex-shrink:0}
.logo-frame{padding:0;background:transparent;box-shadow:none;border-radius:0;width:155px}
.brand-logo{aspect-ratio:4.5/1;width:100%;object-fit:cover}
.brand-credit{padding-left:20px;border-left:1px solid var(--line);font-size:11px;line-height:1.6;color:var(--muted);font-weight:400}
.brand-credit strong{font-size:12px;font-weight:600;color:var(--navy)}
.nav{display:flex;align-items:center;gap:4px;margin:0;flex:1;justify-content:center}
.nav button{border:0;background:transparent;color:var(--muted);border-radius:8px;padding:10px 14px;white-space:nowrap;font-weight:500;font-size:14px;box-shadow:none}
.nav button.active{background:var(--focus-soft);color:var(--focus);box-shadow:none}
.nav button:hover{background:var(--focus-soft);color:var(--focus)}
.topbar-right{gap:14px;margin-left:auto}
.demo-badge{color:var(--focus-hover);background:var(--focus-soft);font-size:11px;letter-spacing:.4px;text-transform:uppercase;padding:4px 8px}
.avatar{width:32px;height:32px;border-radius:50%;font-size:13px}
.profile-menu{position:relative;font-size:13px}
.profile-menu summary{display:flex;align-items:center;gap:9px;cursor:pointer;list-style:none;padding:4px}
.profile-menu summary::-webkit-details-marker{display:none}
.profile-options{position:absolute;right:0;top:48px;min-width:215px;background:white;border:1px solid var(--line);box-shadow:0 10px 30px #172b4d12;z-index:20;border-radius:12px;padding:18px;display:grid;gap:8px}
.profile-options small{font-size:12px}
.profile-options button{text-align:left;margin-top:5px}
.workspace{max-width:1420px;padding:32px 36px 40px}
.workspace:not(.admin-workspace){font-size:15px;line-height:1.6}
.workspace h1{font-size:25px;font-weight:650;letter-spacing:-.6px;color:var(--navy)}
.workspace:not(.admin-workspace) h2{font-size:18px;letter-spacing:-.25px;color:var(--navy)}
.workspace h3{font-size:15px}
.page-heading{margin-bottom:24px}
.client-heading h1 span{font-weight:450;color:var(--muted)}
.workspace:not(.admin-workspace) .page-heading p{font-size:14px;margin-top:5px}
.eyebrow{font-size:10px;letter-spacing:1.5px;color:var(--focus);margin-bottom:7px}
.account-select{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--muted);margin:0 0 20px;justify-content:flex-end}
.account-select select{max-width:300px;min-height:40px;font-size:14px}
button,input,select,textarea{transition:border-color .15s,background .15s,box-shadow .15s}
button:hover{background:var(--focus-soft);border-color:#c9c2ec}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
button.primary,.primary{background:var(--focus);color:white;border-color:var(--focus)}
.primary:hover{background:var(--focus-hover);color:white}
input,select,textarea{border-color:var(--line);border-radius:8px;min-height:40px}
.notice,.workspace:not(.admin-workspace) .notice{font-size:13px;padding:12px 16px;background:white;border:1px solid var(--line);color:var(--muted);border-radius:10px}
.demo-notice strong{color:var(--navy);font-weight:600}
.filters{padding:16px 18px;gap:18px;border-radius:12px;margin-bottom:22px;align-items:end;box-shadow:0 2px 5px #172b4d02}
.workspace:not(.admin-workspace) .filters label{font-size:10px;font-weight:600;letter-spacing:.6px}
.workspace:not(.admin-workspace) .filters select,.workspace:not(.admin-workspace) .filters input{font-size:14px;min-height:40px}
.workspace:not(.admin-workspace) .switch-label{font-size:13px!important;font-weight:400;letter-spacing:0}
.switch-label input{min-height:16px!important;height:16px;width:16px}
.story-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:16px;margin-bottom:20px}
.story-metric{padding:20px;gap:8px;min-height:155px;border-radius:12px;box-shadow:0 2px 6px #172b4d03;line-height:1.5;transform:none}
.story-metric:hover{box-shadow:0 5px 16px #6554c80a;background:white;transform:none}
.kpi-heading{display:flex;justify-content:space-between;align-items:center;width:100%;font-size:13px!important;color:var(--muted)!important;gap:12px}
.kpi-icon{height:19px;width:19px;flex-shrink:0;color:var(--focus);opacity:.8}
.story-metric>strong{font-size:31px;font-weight:650;letter-spacing:-.8px;color:var(--navy);line-height:1.25}
.story-metric>strong.is-missing{font-size:20px;letter-spacing:0}
.story-metric>span.kpi-subtitle{font-size:12px}
.story-metric>span.kpi-comparison{font-size:11px;margin-top:6px}
.kpi-comparison .delta{padding:3px 6px;border-radius:5px;background:#eef7f3;font-size:11px;color:#237558}
.kpi-comparison .delta.negative{background:#fff2f1;color:#a9474c}
.workspace:not(.admin-workspace) .metric-note{font-size:12px;line-height:1.6;margin:0 0 20px}
.panel{border-radius:14px;box-shadow:0 2px 6px #172b4d03;padding:24px}
.panel-heading{margin-bottom:22px}
.workspace:not(.admin-workspace) .panel-heading p{font-size:12px;margin-top:5px}
.story-charts,.platform-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-bottom:22px}
.story-charts .panel{padding:24px}
.plot{height:auto;aspect-ratio:630/250;display:block;margin:8px 0}
.workspace:not(.admin-workspace) .axis-label{font-size:11px}
.gridline{stroke:var(--line);stroke-dasharray:3 5}
.summary-bar{fill:var(--focus);opacity:.85}
.bar-baseline{stroke:#c4cada;stroke-width:1}
.chart-detail{font-size:12px;min-height:32px;margin-top:7px}
.platform-label{display:inline-flex;align-items:center;gap:9px;font-size:13px;white-space:nowrap}
.platform-label svg{width:17px;height:17px;color:var(--focus);flex-shrink:0}
.platform-label small{font-size:11px;margin-left:auto}
.network-bars{gap:24px}
.workspace:not(.admin-workspace) .bar-label{font-size:13px}
.track{height:7px;background:var(--track)}
.bar,.bar.facebook,.bar.linkedin,.network-bars>div:nth-child(2) .bar{background:var(--focus)}
.network-bars>div:nth-child(2) .bar{opacity:.7}
.network-bars>div:nth-child(3) .bar{opacity:.45}
.distribution-layout{display:flex;align-items:center;gap:24px;min-height:215px}
.distribution-donut{width:190px;max-width:48%;height:auto;flex-shrink:0}
.donut-total{font-size:23px;font-weight:650;fill:var(--navy)}
.donut-label{font-size:10px;fill:var(--muted)}
.distribution-legend{display:grid;gap:15px;flex:1;min-width:0}
.distribution-legend>div{display:flex;align-items:center;gap:8px;font-size:12px}
.distribution-legend i{width:8px;height:8px;border-radius:50%;flex-shrink:0}
.distribution-legend strong{margin-left:auto;font-weight:600}
.platform-performance{margin-bottom:22px}
.platform-performance .panel-heading{margin-bottom:12px}
table{font-size:13px}
th{font-size:11px;letter-spacing:.3px;background:#fafbfe}
th,td{padding:13px 14px;border-color:var(--line)}
td button{font-size:12px;min-height:32px}
.story-networks{background:transparent;border:0;box-shadow:none;padding:0!important;margin-bottom:24px}
.story-networks>div:first-child{display:none}
.social-menu{gap:8px;flex-wrap:wrap}
.social-menu button{border-radius:8px;min-height:40px;font-size:13px;gap:8px;padding:7px 12px}
.social-icon{width:20px;height:20px}
.social-icon svg{width:17px;height:17px}
.compact-highlights{margin-bottom:22px}
.compact-posts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.compact-posts article{padding:2px 18px 2px 0;min-width:0}
.compact-posts article+article{padding-left:18px;border-left:1px solid var(--line)}
.compact-posts .platform-label{display:flex}
.compact-posts h3{margin:12px 0 14px;font-weight:550;line-height:1.5}
.compact-stat{font-size:12px;color:var(--muted)}
.compact-stat strong{color:var(--navy);font-size:16px;margin-right:4px}
.compact-posts a{display:block;font-size:12px;margin-top:10px}
.story-hero{padding:24px;background:white;border:1px solid var(--line);box-shadow:none;color:var(--ink);border-radius:14px;margin-bottom:22px}
.story-hero .eyebrow{color:var(--focus);opacity:1}
.story-hero h2{font-size:18px!important;margin:8px 0 10px;color:var(--navy)}
.story-hero p{font-size:15px;line-height:1.8;color:var(--muted);max-width:1050px}
.story-hero small{font-size:11px;color:var(--muted);opacity:1;margin-top:12px}
.story-editorial{margin:22px 0;padding:24px}
.story-editorial>.muted{font-size:13px;margin:6px 0 20px}
.story-editorial h3{font-size:13px;font-weight:600}
.story-analysis{font-size:14px;line-height:1.85;max-width:1050px}
.story-detail-callout{background:white;border:1px solid var(--line);border-radius:14px;padding:24px}
.story-detail-callout p{font-size:13px}
.story-detail-callout button{font-size:13px;min-height:40px}
.metric.featured,.metric-action.featured:hover{background:var(--focus-soft);color:var(--navy);border-color:#c9c1ee}
.metric.featured .metric-label,.metric.featured small{color:var(--muted)}
.metric.featured .metric-network{background:white}
.featured .delta{color:#237558}.featured .delta.negative{color:#a9474c}
.metric-action[data-network]{border-top:1px solid var(--line)}
.metric-action:hover{transform:none}
.workspace:not(.admin-workspace) .metric-value{font-size:29px}
.workspace:not(.admin-workspace) .metric-label{font-size:13px}
.workspace:not(.admin-workspace) .metric-grid{grid-template-columns:repeat(auto-fit,minmax(185px,1fr))!important}
.insight-panel{background:white;border-color:var(--line)}
.workspace:not(.admin-workspace) .insight-panel p,.workspace:not(.admin-workspace) .analysis{font-size:14px}
.post-art{height:110px;font-size:17px;background:var(--focus-soft)!important;color:var(--focus-hover)}
.workspace:not(.admin-workspace) .post-body h3,.workspace:not(.admin-workspace) .post-stats{font-size:14px}
.workspace:not(.admin-workspace) .footer{font-size:11px;margin-top:30px}
.admin-workspace{font-size:15px}
.admin-workspace h2{font-size:19px}
.admin-workspace .form label,.admin-workspace .mapping label{font-size:14px}
.admin-workspace button{font-size:14px}
.admin-workspace input,.admin-workspace select,.admin-workspace textarea{font-size:15px;min-height:42px}
.admin-workspace table{font-size:13px}
.admin-tabs button.active{background:var(--focus-soft);border-color:#d5cfef;color:var(--focus-hover)}
.empty,.chart-empty{font-size:13px;color:var(--muted);padding:30px}
dialog{border-radius:14px}
.loading{font-size:15px;color:var(--muted);padding:80px 24px}
.loading::before{content:"";display:block;width:24px;height:24px;margin:0 auto 18px;border-radius:50%;border:2px solid var(--line);border-top-color:var(--focus);animation:focus-spin .8s linear infinite}
@keyframes focus-spin{to{transform:rotate(360deg)}}
@media(max-width:1100px){.topbar{padding:16px 22px;gap:16px}.brand-credit{display:none}.nav{justify-content:flex-start}.workspace{padding:26px 22px}.distribution-layout{gap:14px}.platform-grid{grid-template-columns:1fr 1fr}}
@media(max-width:850px){.nav{order:3;flex-basis:100%;justify-content:flex-start;overflow:auto;border-top:1px solid var(--line);padding-top:10px}.topbar{gap:10px}.story-charts,.platform-grid{grid-template-columns:1fr}.story-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.compact-posts{grid-template-columns:1fr}.compact-posts article+article{border-left:0;border-top:1px solid var(--line);padding:18px 0 0}.compact-posts article{padding:0 0 4px}.distribution-layout{max-width:480px;margin:auto}.workspace{padding:24px 18px}.page-heading h1{font-size:23px}}
@media(max-width:540px){.topbar{padding:14px 16px}.logo-frame{width:135px}.nav button{font-size:13px;padding:9px 11px}.topbar-right{gap:8px}.profile-menu summary>span:not(.avatar){display:none}.client-heading{align-items:start;flex-direction:column;gap:10px}.client-heading .status{font-size:10px}.story-metric{padding:16px;min-height:150px}.story-metric>strong{font-size:27px}.kpi-heading{font-size:12px!important;align-items:start}.kpi-icon{width:16px;height:16px}.story-metric>span.kpi-comparison{font-size:10px}.story-charts .panel,.panel{padding:19px}.story-hero{padding:20px}.story-networks{padding:0!important}.social-menu{display:flex}.social-menu button>span:last-child{display:none}.distribution-layout{gap:14px}.distribution-donut{width:155px}.distribution-legend>div{font-size:11px;gap:6px}.story-detail-callout{align-items:start;flex-direction:column}.account-select{justify-content:flex-start}.filters{gap:12px}.filters label{min-width:120px}.footer{display:block}.brand-credit{display:none}.profile-options{right:0}.workspace:not(.admin-workspace) .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(max-width:540px){.filters label:not(.switch-label){flex:1 1 160px}.filters .switch-label{flex-basis:100%}}
.client-identity{display:flex;align-items:center;gap:16px;min-width:0}
.client-mark{width:64px;height:64px;flex-shrink:0;border:1px solid var(--line);border-radius:14px;background:white;display:grid;place-items:center;overflow:hidden}
.client-mark img{display:block;width:100%;height:100%;max-height:64px;object-fit:contain;padding:7px}
.logo-fallback{display:grid;place-items:center;width:100%;height:100%;background:var(--focus-soft);color:var(--focus-hover);font-size:22px;font-weight:600;letter-spacing:-.5px}
.logo-fallback[hidden],.post-placeholder[hidden],.client-mark img[hidden],.compact-media img[hidden]{display:none}
.client-table-identity{display:flex;align-items:center;gap:10px}
.client-table-identity .client-mark{width:36px;height:36px;border-radius:9px}
.client-table-identity .client-mark img{max-height:36px;padding:4px}
.client-table-identity .logo-fallback{font-size:13px}
.summary-heading{display:flex;align-items:center;gap:14px;margin-bottom:12px}
.summary-symbol{display:grid;place-items:center;width:45px;height:45px;border-radius:12px;color:var(--focus);background:var(--focus-soft);flex-shrink:0}
.summary-symbol .kpi-icon{width:25px;height:25px;opacity:1}
.summary-heading .eyebrow{margin-bottom:4px}
.summary-heading h2{margin:0}
.story-hero{border-left:3px solid var(--focus)}
.kpi-heading>.kpi-icon{background:var(--focus-soft);width:30px;height:30px;padding:6px;border-radius:8px;opacity:1}
.compact-media{height:138px;width:100%;border:1px solid var(--line);border-radius:10px;background:var(--focus-soft);margin-bottom:16px;overflow:hidden}
.compact-media img{width:100%;height:100%;display:block;object-fit:cover}
.post-placeholder{height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:9px;color:var(--focus)}
.post-placeholder svg{width:34px;height:34px;opacity:.75}
.post-placeholder small{font-size:11px;color:var(--muted)}
@media(max-width:540px){.client-identity{gap:12px}.client-mark{width:50px;height:50px;border-radius:11px}.client-mark img{max-height:50px}.logo-fallback{font-size:18px}.client-heading h1{font-size:21px}.client-heading .eyebrow{font-size:9px}.summary-symbol{width:38px;height:38px}.summary-heading{gap:10px}.compact-media{height:160px}}
:root{--social-facebook:#1877f2;--social-instagram:#c13584;--social-linkedin:#0a66c2;--social-dark:#172b4d}
.recovery-page{max-width:520px;margin:60px auto;padding:0 20px}
.recovery-page>.app-brand,.recovery-page>.logo-frame{margin-bottom:28px}
.recovery-page h1{font-size:24px;line-height:1.3;margin:8px 0 15px}
.recovery-page p{font-size:14px;color:var(--muted);line-height:1.8;margin-bottom:24px}
.recovery-page .form{margin-bottom:20px}
.recovery-page .form label{font-size:14px}
.recovery-enter{display:inline-block;text-decoration:none;border-radius:8px;padding:10px 16px}
.summary-branding{display:flex;gap:20px;align-items:center;margin-bottom:17px}
.summary-branding .client-mark{width:180px;height:112px;border-radius:12px;align-self:center}
.summary-branding .client-mark img{max-height:112px;padding:8px}
.summary-brand-copy{min-width:0}
.summary-brand-copy .eyebrow{margin-bottom:5px}
.summary-brand-copy h2{margin:0 0 10px}
.summary-networks{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.summary-network{width:29px;height:29px;border-radius:8px;background:white;border:1px solid var(--line);display:grid;place-items:center;color:var(--social-dark)}
.summary-network svg{width:18px;height:18px}
.summary-network[data-network="Facebook"]{color:var(--social-facebook)}
.summary-network[data-network="Instagram"]{color:var(--social-instagram)}
.summary-network[data-network="LinkedIn"]{color:var(--social-linkedin)}
@media(max-width:540px){.summary-branding{gap:13px;align-items:start;flex-wrap:wrap}.summary-branding .client-mark{width:144px;height:90px;margin-top:4px}.summary-branding .client-mark img{max-height:90px;padding:6px}.summary-brand-copy h2{font-size:17px!important;line-height:1.4}.summary-network{width:27px;height:27px}.summary-network svg{width:17px;height:17px}}
.client-color-preview{font-size:26px;font-weight:600;margin:0}
#rename-form input[type=color]{width:80px;height:44px;padding:4px;cursor:pointer}
.client-heading h1 strong{font-weight:inherit}
.monthly-section{margin:26px 0}
.monthly-section>p{color:var(--muted);margin:8px 0 18px;line-height:1.6}
.monthly-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:18px}
.monthly-grid h3{margin:0 0 18px;font-size:18px}
.monthly-numbers{margin:0 0 16px}
.monthly-numbers>div{display:flex;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid var(--line)}
.monthly-numbers dt{font-size:14px;color:var(--muted)}
.monthly-numbers dd{font-size:17px;font-weight:600;margin:0}
.country-row{display:grid;grid-template-columns:1fr auto;gap:8px;margin:15px 0;font-size:15px}
.country-row .track{grid-column:1/-1}
.import-guide dt{font-weight:600;margin-top:18px}
.import-guide dd{margin:6px 0 16px;line-height:1.65;color:var(--muted)}
@media(min-width:1450px){.workspace:not(.admin-workspace) .metric-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:760px){.workspace:not(.admin-workspace) .format-row{grid-template-columns:85px 1fr 55px;gap:8px}.workspace:not(.admin-workspace) .metric{padding:14px}.workspace:not(.admin-workspace) .metric-label{font-size:14px}.workspace:not(.admin-workspace) .metric-value{font-size:29px}.crumb{font-size:12px}.nav button{font-size:14px}}
/* Dashboard layout: shared Focus tokens, desktop navigation and editorial rail. */
.app .main{margin-left:220px;min-width:0}
.app .topbar{position:fixed;inset:0 auto 0 0;width:220px;height:100dvh;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;padding:28px 18px;gap:30px;background:var(--white);border:0;border-right:1px solid var(--line);z-index:30}
.topbar .app-brand{display:flex;flex-direction:column;align-items:flex-start;gap:17px;width:100%}
.topbar .logo-frame{width:176px;box-shadow:none;padding:4px 0}
.topbar .brand-credit{display:block;font-size:11px;line-height:1.7;color:var(--muted);padding:0 12px}
.topbar .nav{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:8px;width:100%;margin:10px 0;flex:none;padding:0;border:0;overflow:visible}
.topbar .nav button{display:flex;align-items:center;gap:12px;text-align:left;padding:13px 12px;border-radius:10px;min-height:48px;font-size:13px;color:var(--muted);background:transparent;white-space:normal}
.topbar .nav button:hover{background:var(--focus-soft);color:var(--focus)}
.topbar .nav button.active{background:var(--focus);color:var(--white);box-shadow:none}
.topbar .nav .kpi-icon{width:23px;height:23px;flex-shrink:0;opacity:1}
.topbar .topbar-right{margin-top:auto;display:flex;flex-direction:column;align-items:stretch;gap:14px;width:100%}
.topbar .demo-badge{align-self:flex-start}
.topbar .profile-menu summary{font-size:12px;flex-wrap:wrap}
.topbar .profile-options{bottom:100%;top:auto;left:0;right:auto;max-width:185px}
.app .workspace{max-width:1700px;margin:0 auto;padding:30px 32px;min-width:0}
.dashboard-workspace .client-heading{margin-bottom:20px}
.dashboard-workspace .filters{padding:16px 18px;background:var(--white);border:1px solid var(--line);border-radius:12px;gap:18px;margin:0 0 26px;align-items:end}
.dashboard-workspace .filters label{font-size:10px;letter-spacing:.7px;min-width:130px}
.dashboard-workspace .filters select{min-height:40px;background:var(--bg)}
.dashboard-workspace .filters .switch-label{font-size:12px;letter-spacing:0;min-height:40px}
.dashboard-workspace .demo-notice{padding:10px 14px;font-size:12px;line-height:1.6;margin-bottom:18px}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:24px;align-items:start}
.dashboard-center,.dashboard-aside{min-width:0}
.dashboard-section-heading{margin:0 0 16px}
.dashboard-section-heading h2{font-size:19px;margin:0 0 5px;color:var(--navy)}
.dashboard-section-heading p{font-size:12px;color:var(--muted);margin:0}
.dashboard-workspace .story-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0}
.dashboard-workspace .story-metric{padding:20px;min-height:176px;border-radius:12px;text-align:left}
.dashboard-workspace .story-metric>strong{font-size:34px;letter-spacing:-1.4px;margin:12px 0 8px}
.dashboard-workspace .kpi-heading{font-size:12px!important;line-height:1.5;align-items:center;gap:10px}
.dashboard-workspace .kpi-heading>.kpi-icon{width:42px;height:42px;padding:9px;flex-shrink:0;border-radius:12px}
.dashboard-workspace .kpi-subtitle{font-size:11px}
.dashboard-workspace .kpi-comparison{font-size:11px;margin-top:12px;line-height:1.7}
.dashboard-workspace .metric-note{font-size:11px;line-height:1.7;margin:12px 0 20px}
.dashboard-charts{display:grid;grid-template-columns:1.2fr 1fr;gap:16px;margin:20px 0}
.dashboard-charts .panel{margin:0;padding:20px;min-width:0}
.dashboard-charts h2,.dashboard-center .panel-heading h2{font-size:16px;line-height:1.4}
.dashboard-charts .panel-heading p{font-size:11px;line-height:1.6}
.dashboard-charts .network-bars{padding-top:12px}
.dashboard-charts .plot{min-height:180px;width:100%}
.dashboard-workspace .platform-label svg{width:26px;height:26px;flex-shrink:0}
.dashboard-workspace .platform-performance{margin:20px 0;padding:20px}
.dashboard-workspace .platform-performance th{font-size:10px;white-space:normal}
.dashboard-workspace .platform-performance td{font-size:12px;padding:15px 10px}
.dashboard-workspace .platform-performance td button{font-size:11px;padding:7px}
.dashboard-aside{display:flex;flex-direction:column;gap:18px}
.dashboard-aside .story-hero{margin:0;padding:22px;background:var(--focus-soft);border:1px solid var(--line);border-top:3px solid var(--focus);border-radius:12px}
.dashboard-aside .summary-branding{flex-direction:column;align-items:flex-start;gap:18px;margin-bottom:16px}
.dashboard-aside .summary-branding .client-mark{width:150px;height:86px;align-self:flex-start}
.dashboard-aside .summary-branding .client-mark img{max-height:86px}
.dashboard-aside h2{font-size:18px!important;line-height:1.4}
.dashboard-aside .story-hero p{font-size:14px;line-height:1.9}
.dashboard-aside .story-hero small{display:block;font-size:10px;line-height:1.6;color:var(--muted);margin-top:15px}
.dashboard-aside .summary-network{width:38px;height:38px;border-radius:10px}
.dashboard-aside .summary-network svg{width:25px;height:25px}
.dashboard-aside .story-editorial{margin:0;padding:22px;border-radius:12px}
.dashboard-aside .story-editorial .eyebrow{font-size:9px;line-height:1.7}
.dashboard-aside .story-editorial p,.dashboard-aside .story-analysis{font-size:13px;line-height:1.9}
.dashboard-aside .story-editorial article{margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}
.dashboard-aside .story-editorial h3{font-size:12px}
.dashboard-workspace .compact-highlights{padding:20px;margin:20px 0}
.dashboard-workspace .compact-media{height:165px}
.dashboard-workspace .compact-posts h3{font-size:14px;line-height:1.5}
.dashboard-more{margin:20px 0;padding:20px}
.dashboard-more>summary{font-size:14px;font-weight:600;cursor:pointer;color:var(--navy);line-height:1.7}
.dashboard-more>summary span{float:right;color:var(--focus);font-size:12px}
.dashboard-workspace .story-detail-callout{margin-top:24px}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--focus);outline-offset:4px}
@media(min-width:1650px){.dashboard-grid{grid-template-columns:minmax(0,1fr) 320px}.app .workspace{padding:36px 42px}}
@media(max-width:1250px){.app .main{margin-left:190px}.app .topbar{width:190px;padding:24px 14px}.topbar .logo-frame{width:156px}.app .workspace{padding:24px}.dashboard-grid{grid-template-columns:minmax(0,1fr) 250px;gap:18px}.dashboard-charts{grid-template-columns:1fr}.dashboard-workspace .story-metric{padding:14px}.dashboard-workspace .kpi-heading{flex-direction:column-reverse;align-items:flex-start}.dashboard-workspace .story-metric>strong{font-size:30px}}
@media(max-width:1000px){.dashboard-grid{grid-template-columns:1fr}.dashboard-aside{display:grid;grid-template-columns:1fr 1fr;grid-row:2}.dashboard-charts{grid-template-columns:1fr 1fr}.dashboard-workspace .kpi-heading{flex-direction:row}.topbar .nav{order:initial}.dashboard-aside .summary-branding{flex-direction:row;flex-wrap:wrap}}
@media(max-width:760px){.app .main{margin-left:0}.app .topbar{position:relative;width:100%;height:auto;inset:auto;padding:16px;display:grid;grid-template-columns:1fr auto;gap:14px;border-bottom:1px solid var(--line)}.topbar .app-brand{width:auto}.topbar .logo-frame{width:140px}.topbar .brand-credit{display:none}.topbar .topbar-right{margin:0;width:auto;flex-direction:row;align-items:center}.topbar .nav{grid-column:1/-1;flex-direction:row;margin:0;overflow-x:auto;gap:6px}.topbar .nav button{flex:1;white-space:nowrap;justify-content:center;padding:10px;font-size:12px;min-height:44px;gap:7px}.topbar .nav .kpi-icon{width:20px;height:20px}.topbar .profile-options{top:100%;bottom:auto;right:0;left:auto}.app .workspace{padding:22px 16px}.dashboard-workspace .story-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.dashboard-workspace .kpi-heading{flex-direction:column-reverse;align-items:flex-start}.dashboard-aside{grid-template-columns:1fr 1fr}.dashboard-charts{grid-template-columns:1fr}.dashboard-workspace .compact-posts{grid-template-columns:1fr}.dashboard-workspace .compact-media{height:190px}}
@media(max-width:480px){.dashboard-workspace .story-metrics{grid-template-columns:1fr 1fr}.dashboard-workspace .story-metric:first-child{grid-column:1/-1}.dashboard-workspace .story-metric:first-child .kpi-heading{flex-direction:row}.dashboard-workspace .story-metric{min-height:160px}.dashboard-aside{grid-template-columns:1fr}.topbar .nav button{flex-direction:column;font-size:11px;gap:5px}.dashboard-more>summary span{float:none;display:block}.dashboard-workspace .filters{padding:14px;gap:12px}.dashboard-workspace .platform-performance{padding:14px}.topbar #open-login{font-size:12px;padding:9px}}
.topbar .nav .kpi-icon{color:inherit}
.dashboard-workspace .story-metric{display:block;min-height:176px}
.dashboard-workspace .client-heading{padding-bottom:0}
.dashboard-workspace .kpi-comparison{display:block}
.dashboard-workspace .story-metric>strong{display:block}
