/* Sonar layout. Visual primitives are provided by the local Vivo Dark kit. */
:root {
  color-scheme: dark;
  --sidebar-width: 248px;
  --motion: cubic-bezier(0.4, 0, 0.2, 1);
}
* { box-sizing: border-box; }
body { font-size: 16px; }
[hidden] { display:none !important; }
.session-loading { display:none; }
.auth-loading .session-loading { min-height:100vh; display:grid; place-items:center; color:var(--ink-muted); }
.auth-loading .sidebar,.auth-loading .app-shell,.auth-loading .skip-link,.auth-gated .sidebar,.auth-gated .app-shell,.auth-gated .skip-link { display:none; }
.auth-screen { min-height:100vh; display:grid; grid-template-columns:minmax(0,1.1fr) minmax(360px,1fr); background:var(--surface); }
.auth-story { padding:64px clamp(36px,6vw,100px); display:flex; flex-direction:column; position:relative; overflow:hidden; border-right:1px solid var(--line); background:var(--surface-raised); }
.auth-story:after { content:''; width:440px; height:440px; border:1px solid var(--line); box-shadow:0 0 0 70px var(--surface-raised),0 0 0 71px var(--line),0 0 0 140px var(--surface-raised),0 0 0 141px var(--line); border-radius:50%; position:absolute; right:-300px; bottom:-220px; pointer-events:none; }
.auth-story .brand { padding:0; position:relative; z-index:1; justify-content:flex-start; }

.auth-story-copy { margin:auto 0; padding:88px 0; position:relative; z-index:1; }
.auth-story-copy .section-kicker { color:var(--brand-soft-ink); font-size:11px; }
.auth-story-copy h1 { font-size:clamp(36px,4vw,62px); font-weight:500; line-height:1.1; letter-spacing:-.04em; margin:28px 0; }
.auth-story-copy h1 span { color:var(--brand-soft-ink); }
.auth-story-copy p { max-width:330px; color:var(--ink-muted); line-height:1.8; font-size:15px; }
.auth-signature { display:flex; align-items:center; gap:10px; color:var(--ink-muted); font-size:10px; letter-spacing:.12em; position:relative; z-index:1; }
.auth-panel { display:grid; place-items:center; padding:48px; }
.auth-panel-inner { width:100%; max-width:370px; }
.auth-lock { display:grid; place-items:center; width:46px; height:46px; border:1px solid var(--line); border-radius:14px; color:var(--brand-soft-ink); margin-bottom:28px; }
.auth-lock svg { width:20px; height:20px; }
.auth-panel h2 { font-size:30px; letter-spacing:-.025em; margin:0 0 12px; }
.auth-panel-inner > p { font-size:14px; color:var(--ink-muted); line-height:1.65; }
.auth-panel .editor-form { padding:26px 0 0; }
.auth-panel .editor-form .button { justify-content:space-between; width:100%; margin-top:4px; }
.auth-panel .auth-help { font-size:12px; border-top:1px solid var(--line); padding-top:24px; margin-top:32px; }
.form-error { color:var(--warning-ink); font-size:13px; margin:0; line-height:1.5; }
.form-error:empty { display:none; }
.auth-gated #toast,.auth-loading #toast { left:50%; }
.account-profile { width:100%; text-align:left; background:none; border:0; border-top:1px solid var(--line); }
.profile-copy { flex:1; min-width:0; }
.profile-copy strong { display:block; font-size:13px; font-weight:500; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.account-profile > svg { width:14px; height:14px; color:var(--ink-muted); }
.account-logout { background:none; border:0; color:var(--ink-muted); font-size:12px; padding:0 0 18px 48px; }
.account-logout:hover { color:var(--ink-strong); }
.account-shortcut { display:flex; align-items:center; gap:9px; border:0; padding:0; background:none; font-size:12px; }
.account-shortcut > span:last-child { max-width:120px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.account-shortcut .avatar { width:30px; height:30px; }
.user-row { display:flex; align-items:center; gap:20px; padding:24px; border-bottom:1px solid var(--line); }
.user-row:last-child { border-bottom:0; }
.user-info { flex:1; min-width:0; }
.user-info strong,.user-info > span,.user-info > small { display:block; overflow-wrap:anywhere; }
.user-info strong { font-size:15px; font-weight:500; }
.user-info strong small { font-size:11px; color:var(--ink-muted); }
.user-info > span { font-size:13px; color:var(--ink-muted); margin-top:5px; }
.user-info > small { font-size:11px; color:var(--ink-muted); margin-top:9px; }
.user-badges { display:flex; gap:8px; flex-wrap:wrap; }
@media(max-width:1023px){.auth-screen{grid-template-columns:minmax(0,.8fr) minmax(330px,1fr)}.auth-story{padding:40px 30px}.auth-story-copy h1{font-size:36px}.auth-panel{padding:32px}.account-shortcut > span:last-child{display:none}.user-row{flex-wrap:wrap}.user-badges{margin-left:56px}}
@media(max-width:767px){.auth-screen{grid-template-columns:1fr}.auth-story{padding:28px 28px 32px;border-right:0;border-bottom:1px solid var(--line)}.auth-story .brand{width:min(100%,320px)}.auth-story-copy{padding:30px 0 0}.auth-story-copy .section-kicker,.auth-story-copy p,.auth-signature{display:none}.auth-story-copy h1{font-size:32px;margin:0;line-height:1.14}.auth-panel{padding:34px 28px}.auth-lock{display:none}.auth-panel h2{font-size:25px}.auth-panel .editor-form{padding-top:18px}.auth-panel .auth-help{margin-top:24px}.user-row{gap:16px;padding:20px}.user-badges{margin-left:52px}.user-row > .button{margin-left:auto}}
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; color: inherit; }
a { color: inherit; text-decoration: none; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; flex-shrink: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }
button:disabled { opacity: .4; cursor: not-allowed; }
h1, h2, h3 { color: var(--ink-strong); }
.sidebar { width: var(--sidebar-width); position: fixed; inset: 0 auto 0 0; padding: var(--space-8) var(--space-4) 0; background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; z-index: 10; }
/* Shared image, cropped only in presentation to remove the source margins. */
.brand { mix-blend-mode:lighten; display:flex; align-items:center; padding:0; color:var(--ink-strong); border-radius:var(--radius-lg); }
.brand-art { position:relative; display:block; width:100%; aspect-ratio:1540/570; overflow:hidden; flex-shrink:0; border-radius:var(--radius-lg); }
.brand-art img { position:absolute; width:141.039%; max-width:none; height:auto; left:-20.779%; top:-12.281%; }
.brand-symbol { display:none; position:relative; width:44px; aspect-ratio:226/270; overflow:hidden; border-radius:var(--radius-lg); }
.brand-symbol img { position:absolute; width:961.062%; max-width:none; height:auto; left:-278.761%; top:-85.926%; }
.auth-story .brand { width:min(100%,420px); }
.topbar-brand { display:none; }
.workspace { display: flex; align-items: center; gap: var(--space-2); border: 1px solid var(--line); background: var(--surface-raised); border-radius: var(--radius-xl); margin: var(--space-8) 0; font-size: 12px; font-weight: 500; padding: var(--space-4) var(--space-3); line-height: 1.4; }
.workspace small { display: block; color: var(--ink-muted); font-size: 12px; margin-top: var(--space-1); }
.workspace-icon { background: var(--brand-soft); color: var(--brand-soft-ink); width: 36px; height: 36px; display: grid; place-items: center; font-size: 20px; font-weight: 700; border-radius: var(--radius-lg); flex-shrink: 0; }
.workspace-lock { margin-left: auto; color: var(--ink-muted); }
.workspace-lock svg { width: 16px; height: 16px; }
.nav-caption { font-size: 12px; font-weight: 500; letter-spacing: .12em; color: var(--ink-muted); padding: 0 var(--space-4); }
.sidebar nav { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-4); }
.nav-link { min-height: 48px; display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); color: var(--ink-muted); border: 1px solid transparent; border-radius: var(--radius-full); font-size: 14px; font-weight: 500; line-height: 1.4; transition: background-color 150ms var(--motion), color 150ms var(--motion); }
.nav-link:hover { background: var(--surface-overlay); color: var(--ink-strong); }
.nav-link.active { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-soft-ink); }
.nav-link svg { width: 20px; height: 20px; }
.nav-count { margin-left: auto; font-size: 12px; color: var(--ink-muted); }
.sidebar-context { margin-top: var(--space-8); border-top: 1px solid var(--line); padding-top: var(--space-6); }
.sidebar-context > div:not(.scope-tags) { font-size: 12px; display: flex; align-items: center; gap: var(--space-2); margin: var(--space-4) var(--space-3) var(--space-1); }
.sidebar-context > small { display: block; font-size: 12px; color: var(--ink-muted); margin-left: var(--space-3); }
.scope-tags { display: flex; gap: var(--space-1); flex-wrap: wrap; margin: var(--space-4) var(--space-2); }
.scope-tags span { font-size: 12px; color: var(--ink); border: 1px solid var(--line); background: var(--surface-overlay); border-radius: var(--radius-full); padding: var(--space-1) var(--space-2); }
.sidebar-bottom { margin-top: auto; padding: var(--space-6) var(--space-3) 0; }
.demo-label { display: flex; align-items: center; gap: var(--space-2); font-size: 12px; color: var(--brand); }
.demo-label svg { width: 16px; height: 16px; }
.sidebar-bottom p { font-size: 12px; color: var(--ink-muted); line-height: 1.6; }
.profile { margin-top: var(--space-6); padding: var(--space-5) 0; border-top: 1px solid var(--line); display: flex; align-items: center; gap: var(--space-3); font-size: 14px; }
.avatar { display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface-overlay); border-radius: var(--radius-full); width: 36px; height: 36px; color: var(--brand-soft-ink); font-size: 12px; font-weight: 500; flex-shrink: 0; }
.profile small { display: block; font-size: 12px; color: var(--ink-muted); margin-top: var(--space-1); }
.app-shell { margin-left: var(--sidebar-width); }
.topbar { min-height: 72px; border-bottom: 1px solid var(--line); padding: var(--space-4) var(--space-8); display: flex; align-items: center; justify-content: space-between; font-size: 12px; background: var(--surface); gap: var(--space-4); }
.breadcrumb { color: var(--ink-muted); display: flex; gap: var(--space-3); }
.breadcrumb strong { font-weight: 500; color: var(--ink); }
.topbar-right { display: flex; align-items: center; gap: var(--space-4); }
.timezone { color: var(--ink-muted); font-size: 12px; }
.topbar-divider { height: 16px; border-left: 1px solid var(--line); }
.demo-pill { font-size: 12px; }
main { max-width: 1680px; margin: auto; padding: var(--space-8) var(--space-8) 0; }
.page-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-8); gap: var(--space-6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-2xl); padding: var(--space-6); }
.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .12em; color: var(--brand); display: flex; align-items: center; gap: var(--space-2); }
.status-dot { width: 6px; height: 6px; display: inline-block; background: var(--brand); border-radius: var(--radius-full); flex-shrink: 0; }
h1 { font-weight: 700; font-size: 48px; line-height: 1.1; letter-spacing: -.04em; margin: var(--space-3) 0; }
h1 > span { color: var(--accent); }
.page-heading p { color: var(--ink-muted); font-size: 14px; margin: 0; }
.heading-actions { display: flex; align-items: center; gap: var(--space-4); flex-shrink: 0; }
.reference-date { font-size: 12px; font-weight: 500; color: var(--ink-muted); }
.button { min-height: 44px; }
.button svg { width: 20px; height: 20px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: var(--space-6); padding: var(--space-6) 0; }
.stat { padding: 0 var(--space-6); min-width: 0; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-title { font-size: 14px; font-weight: 500; color: var(--ink); display: flex; justify-content: space-between; gap: var(--space-2); line-height: 1.4; }
.stat-title svg { width: 20px; height: 20px; color: var(--brand); }
.stat-value { font-weight: 700; font-size: 40px; line-height: 1.2; letter-spacing: -.04em; color: var(--ink-strong); margin: var(--space-3) 0 var(--space-1); display: flex; align-items: center; gap: var(--space-3); }
.stat-value span { font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--brand-soft-ink); background: var(--brand-soft); padding: var(--space-1) var(--space-2); border-radius: var(--radius-full); white-space: nowrap; }
.stat-note { font-size: 12px; color: var(--ink-muted); line-height: 1.5; }
.stat.urgent .stat-value { color: var(--warning-ink); }
.stat.urgent .stat-title svg { color: var(--warning-ink); }
.morning { border: 1px solid var(--line); background: var(--surface-raised); border-radius: var(--radius-2xl); display: grid; grid-template-columns: 280px minmax(0,1fr); overflow: hidden; margin-bottom: var(--space-8); box-shadow: var(--shadow-md); }
.morning-intro { padding: var(--space-6); background: var(--gradient-brand-dark); color: var(--on-brand); position: relative; }
.section-kicker { font-size: 12px; font-weight: 500; letter-spacing: .12em; display: flex; align-items: center; gap: var(--space-2); }
.section-kicker svg { width: 20px; height: 20px; }
.morning h2 { font-size: 32px; font-weight: 700; line-height: 1.2; letter-spacing: -.03em; margin: var(--space-4) 0 var(--space-3); color: var(--on-brand); }
.morning-intro p { font-size: 12px; color: rgba(255,255,255,.82); margin: 0 0 var(--space-6); }
.morning-intro .button { white-space: normal; text-align: left; justify-content: space-between; width: 100%; }
.morning-body { padding: var(--space-6) var(--space-8); }
.morning-header { display: flex; justify-content: space-between; gap: var(--space-4); font-size: 12px; font-weight: 500; letter-spacing: .08em; color: var(--brand); margin-bottom: var(--space-5); }
.morning-header span:last-child { color: var(--ink-muted); white-space: nowrap; letter-spacing: 0; }
.brief-list { display: grid; gap: var(--space-4); margin: 0; padding: 0; list-style: none; }
.brief-list li { display: flex; align-items: flex-start; gap: var(--space-4); font-size: 16px; line-height: 1.6; color: var(--ink); }
.brief-list li > span { font-size: 14px; font-weight: 500; color: var(--brand); padding-top: 2px; }
.brief-list strong { color: var(--ink-strong); font-weight: 700; }
.brief-list button { border: 0; background: transparent; color: inherit; padding: 0; text-align: left; line-height: inherit; border-radius: var(--radius-sm); }
.brief-list button:hover strong { color: var(--brand-soft-ink); text-decoration: underline; text-underline-offset: 4px; }
.content-grid { display: grid; grid-template-columns: minmax(0,1.8fr) minmax(320px,1fr); gap: var(--space-6); align-items: start; }
.panel-heading { padding: var(--space-6); display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); gap: var(--space-3); }
.panel-heading h2 { font-size: 20px; font-weight: 500; letter-spacing: -.01em; line-height: 1.3; margin: 0; display: flex; align-items: center; gap: var(--space-3); }
.panel-heading h2 > svg { color: var(--brand); width: 20px; height: 20px; }
.panel-heading small { font-size: 12px; color: var(--ink-muted); white-space: nowrap; }
.live-badge { font-size: 12px; color: var(--ink-muted); display: flex; align-items: center; gap: var(--space-2); white-space: nowrap; }
.live-badge .status-dot { background: var(--ink-muted); }
.filter-area { padding: var(--space-5) var(--space-6); border-bottom: 1px solid var(--line); }
.search-field { display: block; position: relative; color: var(--ink-muted); }
.search-field > svg { position: absolute; left: var(--space-4); top: 50%; transform: translateY(-50%); width: 20px; height: 20px; pointer-events: none; }
.search-field input { padding-left: var(--space-12); min-width: 0; }
.filter-controls { display: flex; align-items: center; gap: var(--space-2); margin-top: var(--space-3); flex-wrap: wrap; }
.filter-controls select { width: auto; max-width: 100%; min-height: 44px; font-size: 14px; padding-top: var(--space-2); padding-bottom: var(--space-2); background-color: var(--surface-overlay); }
.filter-controls .reset { background: transparent; border: 0; border-radius: var(--radius-full); color: var(--brand); font-size: 14px; font-weight: 500; min-height: 44px; padding: var(--space-2); margin-left: auto; }
.filter-controls .reset:hover { background: var(--brand-soft); }
.results-meta { padding: var(--space-4) var(--space-6) var(--space-1); display: flex; justify-content: space-between; gap: var(--space-3); font-size: 12px; color: var(--ink-muted); line-height: 1.5; }
.news-item { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: var(--space-6); color: inherit; transition: background-color 150ms var(--motion); }
.news-item:last-child { border-bottom: 0; }
.news-item:hover { background: var(--surface-overlay); }
.news-item:focus-visible, .global-item:focus-visible { outline: 2px solid var(--focus); outline-offset: -4px; }
.news-meta { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; font-size: 12px; color: var(--ink-muted); }
.company-chip { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--ink); font-weight: 500; }
.company-chip i { display: block; width: 6px; height: 6px; border-radius: var(--radius-full); background: var(--company-color,var(--brand)); }
.meta-separator { color: var(--ink-muted); }
.news-time { margin-left: auto; font-size: 12px; color: var(--ink-muted); }
.news-item h3 { font-size: 20px; line-height: 1.35; letter-spacing: -.01em; font-weight: 500; margin: var(--space-3) 0; }
.news-item p { font-size: 16px; color: var(--ink-muted); line-height: 1.6; margin: 0 0 var(--space-4); }
.news-bottom { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.relevance { font-size: 12px; }
.news-source { color: var(--ink-muted); font-size: 12px; }
.news-bottom > svg { margin-left: auto; width: 20px; height: 20px; color: var(--brand); }
.right-column { display: flex; flex-direction: column; gap: var(--space-6); min-width: 0; }
.radar-description { color: var(--ink-muted); font-size: 14px; line-height: 1.6; margin: var(--space-5) var(--space-6) var(--space-3); }
.activity-list { padding: 0 var(--space-6) var(--space-5); }
.activity-row { display: block; background: none; border: 0; color: inherit; width: 100%; padding: var(--space-3) 0; text-align: left; border-radius: var(--radius-sm); }
.activity-row:hover .activity-name { color: var(--brand); }
.activity-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-2); font-size: 14px; }
.activity-name { display: flex; align-items: center; gap: var(--space-3); }
.company-monogram { width: 32px; height: 32px; border-radius: var(--radius-lg); background: var(--company-bg,var(--brand-soft)); color: var(--company-color,var(--brand-soft-ink)); display: grid; place-items: center; font-size: 14px; font-weight: 700; flex-shrink: 0; }
.activity-ratio { font-size: 16px; font-weight: 700; color: var(--brand); }
.activity-ratio.normal { color: var(--ink-muted); }
.activity-track { height: 6px; background: var(--line); border-radius: var(--radius-full); margin-left: 44px; position: relative; overflow: hidden; }
.activity-track:after { content: ''; position: absolute; left: 29.41%; top: 0; bottom: 0; border-left: 2px solid var(--ink-strong); }
.activity-fill { height: 100%; background: var(--brand); border-radius: var(--radius-full); }
.activity-fill.normal { background: var(--control-border); }
.radar-legend { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-2); padding: var(--space-4) var(--space-6); border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-muted); }
.radar-legend span { display: flex; align-items: center; gap: var(--space-2); }
.legend-tick { height: 10px; border-left: 2px solid var(--ink-strong); }
.global-item { padding: var(--space-5) var(--space-6); display: block; border: 0; border-bottom: 1px solid var(--line); background: none; color: inherit; text-align: left; width: 100%; transition: background-color 150ms var(--motion); }
.global-item:last-child { border: 0; }
.global-item:hover { background: var(--surface-overlay); }
.global-item .country { font-size: 12px; color: var(--ink-muted); margin-left: auto; }
.global-item h3 { font-size: 16px; font-weight: 500; line-height: 1.6; margin: var(--space-3) 0 var(--space-2); }
.global-item small { font-size: 12px; color: var(--ink-muted); }
.global-item small svg { width: 14px; height: 14px; margin-left: var(--space-1); }
.suggestion-panel { border: 1px dashed var(--control-border); }
.suggestion-body { padding: var(--space-5) var(--space-6) var(--space-6); }
.suggestion-body p { font-size: 14px; color: var(--ink-muted); line-height: 1.6; margin: 0 0 var(--space-4); }
.text-button { background: none; border: 0; border-radius: var(--radius-full); color: var(--brand); padding: var(--space-2) 0; min-height: 44px; font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: var(--space-2); }
.text-button:hover { color: var(--brand-soft-ink); text-decoration: underline; text-underline-offset: 4px; }
.text-button svg { width: 20px; height: 20px; }
.page-footer { display: flex; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-8); padding: var(--space-6); border-top: 1px solid var(--line); border-radius: var(--radius-xl) var(--radius-xl) 0 0; background: var(--surface); font-size: 12px; color: var(--ink-muted); }
.page-footer strong { color: var(--brand); font-size: 16px; margin-right: var(--space-3); }
.empty-state { padding: var(--space-12) var(--space-6); text-align: center; }
.empty-state > svg { color: var(--brand); width: 32px; height: 32px; }
.empty-state h3 { font-size: 20px; font-weight: 500; }
.empty-state p { color: var(--ink-muted); font-size: 16px; line-height: 1.6; }
.empty-state .button { margin-top: var(--space-3); }
.view-enter { animation: enter 250ms var(--motion); }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
dialog { background: var(--surface-raised); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-2xl); width: min(720px,calc(100% - 32px)); padding: var(--space-8); max-height: 85vh; box-shadow: var(--shadow-xl); }
dialog::backdrop { background: rgba(13,11,30,.82); backdrop-filter: blur(8px); }
.icon-button { border: 1px solid var(--control-border); background: var(--surface-overlay); color: var(--ink); border-radius: var(--radius-full); width: 44px; height: 44px; display: grid; place-items: center; }
.icon-button:hover { color: var(--brand); border-color: var(--brand); }
.dialog-close { position: absolute; right: var(--space-4); top: var(--space-4); }
.dialog-close svg { width: 20px; height: 20px; }
.dialog-kicker { font-size: 12px; font-weight: 500; color: var(--brand); letter-spacing: .12em; margin: var(--space-2) var(--space-10) var(--space-6) 0; }
dialog h2 { font-size: 32px; font-weight: 700; line-height: 1.2; letter-spacing: -.03em; margin: var(--space-5) 0; }
dialog p { font-size: 16px; color: var(--ink); line-height: 1.6; }
dialog h3 { font-size: 20px; font-weight: 500; margin-top: var(--space-6); }
.dialog-callout { display: block; margin: var(--space-6) 0; font-size: 16px; color: var(--ink); }
.dialog-notice { font-size: 12px; color: var(--ink-muted); border-top: 1px solid var(--line); padding-top: var(--space-5); margin-top: var(--space-6); }
.dialog-company { display: flex; align-items: center; gap: var(--space-4); margin: var(--space-6) 0; }
.dialog-company .company-monogram { width: 48px; height: 48px; font-size: 24px; }
.dialog-company h2 { margin: 0; }
.dialog-company p { font-size: 14px; margin: var(--space-1) 0 0; }
.dialog-story { background: transparent; border: 0; border-top: 1px solid var(--line); display: block; width: 100%; text-align: left; padding: var(--space-4) 0; color: var(--ink); font-size: 16px; line-height: 1.6; }
.dialog-story:hover { color: var(--brand); }
.dialog-story svg { width: 20px; height: 20px; }
#toast { position: fixed; bottom: var(--space-6); left: calc(50% + var(--sidebar-width)/2); transform: translate(-50%,12px); padding: var(--space-4) var(--space-6); border: 1px solid var(--brand); background: var(--brand-soft); color: var(--brand-soft-ink); font-size: 14px; border-radius: var(--radius-xl); opacity: 0; pointer-events: none; transition: opacity 150ms var(--motion), transform 150ms var(--motion); max-width: calc(100% - 32px); z-index: 30; box-shadow: var(--shadow-lg); }
#toast.visible { opacity: 1; transform: translate(-50%,0); }
.skip-link { position: fixed; top: -100px; left: var(--space-5); background: var(--brand-soft); color: var(--brand-soft-ink); padding: var(--space-3) var(--space-5); border-radius: var(--radius-full); z-index: 50; }
.skip-link:focus { top: var(--space-3); }
.company-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--space-6); }
.company-card { padding: var(--space-6); border: 0; text-align: left; }
.company-card .company-monogram { width: 48px; height: 48px; font-size: 20px; }
.company-card h2 { font-size: 24px; font-weight: 700; line-height: 1.3; margin-bottom: var(--space-2); }
.company-card p { font-size: 14px; color: var(--ink-muted); }
.company-card small { font-size: 12px; color: var(--brand); }
.view-note { font-size: 16px; color: var(--ink-muted); line-height: 1.6; margin: 0 0 var(--space-6); background: var(--surface-raised); border: 1px solid var(--line); padding: var(--space-5) var(--space-6); border-radius: var(--radius-xl); }
.report-row { display: flex; align-items: center; gap: var(--space-6); padding: var(--space-6); }
.report-icon { width: 48px; height: 56px; background: var(--brand-soft); color: var(--brand-soft-ink); display: grid; place-items: center; border-radius: var(--radius-lg); flex-shrink: 0; }
.report-info { flex: 1; }
.report-info h2 { font-size: 24px; font-weight: 700; line-height: 1.3; }
.report-info p { font-size: 14px; color: var(--ink-muted); }
.health-row { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-5) var(--space-6); border-bottom: 1px solid var(--line); }
.health-row:last-child { border: 0; }
.health-row span:first-child { flex: 1; }
.health-state { font-size: 12px; font-weight: 500; color: var(--ink-muted); }
.health-row small { font-size: 14px; color: var(--ink-muted); }
.suggestion-row { padding: var(--space-5) 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); }
.suggestion-row strong { font-size: 16px; font-weight: 500; }
.suggestion-row p { font-size: 12px; margin: var(--space-1) 0 0; }
.suggestion-actions { display: flex; gap: var(--space-2); }

@media (min-width: 1500px) {
  main { padding: var(--space-10) var(--space-12) 0; }
  .topbar { padding-left: var(--space-12); padding-right: var(--space-12); }
  .morning { grid-template-columns: 320px minmax(0,1fr); }
  .morning-intro, .morning-body { padding: var(--space-8); }
}
@media (max-width: 1279px) {
  :root { --sidebar-width: 216px; }
  .sidebar { padding-left: var(--space-3); padding-right: var(--space-3); }
  .nav-link { padding-left: var(--space-3); padding-right: var(--space-3); }
  .workspace { padding: var(--space-3) var(--space-2); }
  .workspace-lock { display: none; }
  main { padding: var(--space-6) var(--space-6) 0; }
  .topbar { padding-left: var(--space-6); padding-right: var(--space-6); }
  .reference-date { display: none; }
  .page-heading { padding: var(--space-5); }
  .content-grid { grid-template-columns: minmax(0,1.5fr) minmax(280px,1fr); gap: var(--space-5); }
  .morning { grid-template-columns: 248px minmax(0,1fr); }
  .morning-body { padding: var(--space-6); }
  .morning-header { flex-wrap: wrap; gap: var(--space-1); }
  .stat { padding: 0 var(--space-4); }
  .stat-title svg { display: none; }
  .stat-value { font-size: 36px; }
  .stat-value span { font-size: 12px; }
  .panel-heading { flex-wrap: wrap; }
  .company-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 1023px) {
  :root { --sidebar-width: 80px; }
  .sidebar { padding: var(--space-6) var(--space-3); }
  .sidebar .brand { justify-content:center; }
  .sidebar .brand-symbol { display:block; }
  .topbar-brand { display:flex; width:180px; flex-shrink:0; }
  .topbar .breadcrumb { display:none; }
  .sidebar .brand-art, .workspace, .nav-caption, .nav-count, .sidebar-context, .sidebar-bottom { display: none; }
  .sidebar nav { margin-top: var(--space-8); }
  .nav-link { font-size: 0; justify-content: center; padding: var(--space-3); }
  .nav-link svg { width: 24px; height: 24px; }
  .stats { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 0; }
  .stat { padding: var(--space-5) var(--space-6); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stat-title svg { display: block; }
  .content-grid { grid-template-columns: minmax(0,1fr); }
  .right-column { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; }
  .suggestion-panel { grid-column: 1/-1; }
  .morning { grid-template-columns: 240px minmax(0,1fr); }
  .morning-body { padding: var(--space-5); }
  .brief-list li { font-size: 14px; }
  .page-footer { flex-direction: column; gap: var(--space-2); }
}
@media (max-width: 767px) {
  main { padding: var(--space-5) var(--space-4) 0; }
  .topbar { padding: var(--space-4); }
  .topbar-right .timezone, .topbar-divider { display: none; }
  .page-heading { align-items: flex-start; gap: var(--space-3); }
  .page-heading h1 { font-size: 40px; }
  .page-heading p { font-size: 14px; }
  .eyebrow { font-size: 12px; letter-spacing: .08em; }
  .heading-actions .button { font-size: 0; width: 44px; padding: 0; }
  .heading-actions .button svg { width: 20px; height: 20px; }
  .morning { grid-template-columns: minmax(0,1fr); }
  .morning-intro { padding: var(--space-6); }
  .morning h2 { font-size: 32px; }
  .morning h2 br { display: none; }
  .morning-intro p { margin-bottom: var(--space-4); }
  .morning-intro .button { width: auto; }
  .morning-body { padding: var(--space-6); }
  .brief-list li { font-size: 16px; }
  .right-column { display: flex; }
  .report-row { flex-wrap: wrap; }
  .report-row .button { margin-left: 72px; }
  .company-grid { gap: var(--space-4); }
  .company-card { padding: var(--space-5); }
}
@media (max-width: 500px) {
  :root { --sidebar-width: 0px; }
  .sidebar { position: fixed; inset: auto 0 0; width: 100%; height: 76px; height: calc(76px + env(safe-area-inset-bottom,0px)); padding: 0 var(--space-1) env(safe-area-inset-bottom,0px); border: 0; border-top: 1px solid var(--line); background: var(--surface); }
  .sidebar .brand { display: none; }
  .sidebar nav { flex-direction: row; justify-content: space-around; margin: 0; height: 100%; gap: var(--space-1); }
  .nav-link { font-size: 12px; flex-direction: column; gap: var(--space-1); height: 100%; min-height: 0; flex: 1; border-radius: 0; border: 0; padding: var(--space-3) 0; white-space: nowrap; }
  .nav-link svg { width: 20px; height: 20px; }
  .nav-link.active { background: transparent; box-shadow: inset 0 3px var(--brand); }
  .app-shell { padding-bottom: calc(76px + env(safe-area-inset-bottom,0px)); }
  .topbar { min-height: 56px; padding: var(--space-3) var(--space-4); gap: var(--space-2); }
  .breadcrumb { gap: var(--space-2); }
  .demo-pill { font-size: 12px; padding: var(--space-1) var(--space-2); letter-spacing: 0; }
  .page-heading { padding: var(--space-5) var(--space-4); margin-bottom: var(--space-5); }
  .page-heading h1 { font-size: 36px; }
  .page-heading p { line-height: 1.6; }
  .eyebrow { letter-spacing: .03em; }
  .stats { margin-bottom: var(--space-5); }
  .stat { padding: var(--space-4); }
  .stat-title { font-size: 14px; min-height: 40px; }
  .stat-title svg { display: none; }
  .stat-value { font-size: 32px; flex-wrap: wrap; gap: var(--space-1); }
  .stat-value span { font-size: 12px; }
  .morning { margin-bottom: var(--space-6); }
  .morning-intro, .morning-body { padding: var(--space-5); }
  .morning h2 { font-size: 28px; }
  .morning-header { flex-direction: column; gap: var(--space-1); }
  .brief-list li { gap: var(--space-3); }
  .panel-heading { padding: var(--space-5); }
  .panel-heading h2 { font-size: 20px; gap: var(--space-2); }
  .filter-area { padding: var(--space-4); }
  .filter-controls { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .filter-controls select { width: 100%; font-size: 14px; padding-left: var(--space-2); padding-right: var(--space-6); background-position: calc(100% - 15px) 50%, calc(100% - 9px) 50%; }
  .filter-controls .reset { grid-column: 2; justify-self: end; }
  .results-meta { padding: var(--space-4) var(--space-5) 0; flex-direction: column; gap: var(--space-1); }
  .news-item { padding: var(--space-5); }
  .news-item h3 { font-size: 20px; }
  .news-meta { gap: var(--space-2); }
  .news-bottom { gap: var(--space-2); }
  .company-grid { grid-template-columns: minmax(0,1fr); }
  dialog { padding: var(--space-6); max-height: 88vh; }
  dialog h2 { font-size: 28px; }
  .suggestion-row { align-items: flex-start; flex-direction: column; }
  .health-row { flex-wrap: wrap; font-size: 14px; padding: var(--space-5); }
  .health-row small { display: none; }
  .report-row { padding: var(--space-5); gap: var(--space-4); }
  .report-info h2 { font-size: 20px; }
  .report-row .button { margin-left: 0; }
  #toast { bottom: calc(92px + env(safe-area-inset-bottom,0px)); width: max-content; text-align: center; }
  .page-footer { padding: var(--space-5); }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  body { background: white; color: black; }
  .sidebar, .app-shell, #toast, .dialog-close { display: none !important; }
  dialog[open] { display: block !important; position: static; max-height: none; width: 100%; border: 0; box-shadow: none; background: white; color: black; padding: 0; }
  dialog::backdrop { background: white; }
  dialog h2, dialog h3, dialog p, .dialog-callout, .dialog-kicker, .dialog-notice { color: black; background: white; }
  .dialog-actions { display: none; }
}

/* Persistent newsroom application, retaining the supplied Vivo visual language. */
.sidebar { overflow-y: auto; }
.sidebar nav { gap: 3px; }
.sidebar .workspace { margin-top: 24px; margin-bottom: 22px; }
.nav-link { min-height: 42px; padding-top: 9px; padding-bottom: 9px; }
.sidebar-bottom { padding-top: 28px; }
.sidebar-bottom .profile { margin-top: 12px; }
.sidebar-bottom p { margin-bottom: 0; }
.page-heading { background: transparent; border: 0; padding: 8px 0 20px; margin-bottom: 10px; }
.mode-notice { display: flex; align-items: center; gap: 12px; color: var(--ink-muted); font-size: 13px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; margin: 0 0 24px; background: var(--surface); }
.mode-notice svg { width: 18px; height: 18px; color: var(--brand); }
.mode-notice span { flex: 1; }
.mode-notice select { max-width: 188px; min-height: 34px; padding: 4px 12px; font-size: 12px; }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; }
.toolbar p { flex: 1; margin: 0; }
.toolbar .form-field { min-width: 220px; }
.muted { color: var(--ink-muted); line-height: 1.65; font-size: 14px; }
.welcome { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 40px; padding: 48px; margin-bottom: 32px; background: radial-gradient(ellipse at 0 100%, #2d006033, transparent 65%), var(--surface-raised); }
.welcome h2 { font-size: clamp(32px,3.4vw,52px); line-height: 1.12; letter-spacing: -.04em; margin: 22px 0; }
.welcome h2 span { color: var(--brand-soft-ink); }
.welcome p { color: var(--ink-muted); line-height: 1.7; max-width: 460px; }
.welcome .toolbar { margin-top: 24px; margin-bottom: 0; }
.onboarding-steps { list-style: none; padding: 0 0 0 32px; margin: 0; border-left: 1px solid var(--line); }
.onboarding-steps li { display: flex; gap: 20px; padding: 20px 0; }
.onboarding-steps li > span { color: var(--brand); font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.onboarding-steps strong { font-size: 18px; font-weight: 500; }
.onboarding-steps p { margin: 8px 0 0; font-size: 14px; }
.event-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); padding: 20px; gap: 16px; }
.content-grid .event-grid { grid-template-columns: 1fr; }
.event-card { background: var(--surface-raised); border: 1px solid var(--line); border-radius: 12px; padding: 20px; transition: border-color .2s; min-width: 0; }
.event-card:hover { border-color: var(--control-border); }
.event-card:has(input:checked) { border-color: var(--brand); background: linear-gradient(120deg,#2d006025,transparent),var(--surface-raised); }
.event-selection { display: flex; align-items: center; gap: 10px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-soft-ink); margin-bottom: 14px; }
.event-selection time { margin-left: auto; color: var(--ink-muted); letter-spacing: 0; }
.select-event { display: grid; place-items: center; padding: 6px; margin: -6px 0 -6px -6px; cursor: pointer; }
input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--brand); cursor: pointer; }
.event-open { display: block; background: none; border: 0; padding: 0; text-align: left; width: 100%; color: inherit; }
.event-open h3 { font-size: 22px; line-height: 1.3; letter-spacing: -.015em; font-weight: 500; margin: 12px 0; }
.event-open p { color: var(--ink-muted); font-size: 14px; line-height: 1.65; margin: 0 0 18px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.event-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; font-size: 12px; color: var(--ink-muted); }
.score-pill { margin-left: auto; }
.score-pill strong { font-size: 14px; color: var(--brand-soft-ink); margin-left: 4px; }
.event-card .vv-badge { font-size: 10px; padding: 2px 7px; }
.brief-list small { display: block; margin-top: 8px; color: var(--ink-muted); font-size: 12px; }
.activity-track:after { display: none; }
.coverage-list { padding: 8px 24px 20px; }
.coverage-list button { display: flex; gap: 16px; align-items: center; width: 100%; padding: 15px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; font-size: 14px; text-align: left; }
.coverage-list button:last-child { border: 0; }
.coverage-list button span { flex: 1; }
.coverage-list button svg { width: 16px; height: 16px; color: var(--brand); }
.evidence-note { padding: 28px; }
.evidence-note .section-kicker { font-size: 10px; color: var(--brand); }
.evidence-note h3 { font-size: 26px; font-weight: 500; line-height: 1.2; }
.evidence-note p { color: var(--ink-muted); font-size: 14px; line-height: 1.7; margin-bottom: 0; }
.form-field { display: flex; flex-direction: column; gap: 9px; font-size: 13px; font-weight: 500; min-width: 0; }
.form-field .vv-input { width: 100%; font-size: 14px; min-height: 44px; }
.form-field textarea { resize: vertical; line-height: 1.65; padding: 12px; font: inherit; min-height: 70px; }
textarea:focus-visible { outline: 2px solid var(--focus); }
.editor-form { display: flex; flex-direction: column; gap: 20px; padding: 24px; }
dialog .editor-form { padding: 4px 0; }
.editor-form > .button { align-self: flex-start; }
.editor-form .muted { margin: 0; font-size: 12px; }
.editor-form .toolbar { margin: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.form-divider { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--ink-muted); }
.form-divider:before,.form-divider:after { content:''; height: 1px; background: var(--line); flex: 1; }
.checkbox-field { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.composer-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px; align-items: start; }
.history-panel { margin-top: 28px; }
.selection-row { display: flex; align-items: center; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.selection-row:last-child { border: 0; }
.selection-row > span { color: var(--brand); font-size: 13px; }
.selection-row .event-open { line-height: 1.5; flex: 1; }
.selection-row small { color: var(--warning-ink); }
.source-row { display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.source-row:last-child { border: 0; }
.source-icon { padding: 12px; background: var(--surface-overlay); border-radius: 12px; color: var(--brand); }
.source-info { flex: 1; min-width: 0; }
.source-info strong { font-weight: 500; }
.source-info small { display: block; color: var(--ink-muted); margin-top: 6px; overflow-wrap: anywhere; font-size: 12px; }
.source-info > span { display: block; margin-top: 8px; font-size: 11px; color: var(--ink-muted); overflow-wrap: anywhere; }
.row-actions { display: flex; gap: 8px; }
.row-actions .button { min-height: 36px; font-size: 12px; padding: 6px 12px; }
.company-card .event-open h2 { margin-top: 20px; }
.company-edit { margin-top: 20px; }
.company-edit .button { font-size: 12px; min-height: 34px; }
.trend-card { padding: 26px; }
.trend-card h2 { font-size: 24px; line-height: 1.3; }
.trend-card p { font-size: 14px; line-height: 1.7; color: var(--ink-muted); }
.evidence-links { display: flex; flex-direction: column; }
.evidence-links .text-button { text-align: left; line-height: 1.6; border-top: 1px solid var(--line); border-radius: 0; padding: 14px 0; }
.score-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin: 28px 0; background: var(--surface); border-radius: 12px; padding: 20px; }
.score-grid small { display: block; color: var(--ink-muted); font-size: 12px; }
.score-grid strong { display: block; font-size: 28px; margin-top: 8px; color: var(--brand-soft-ink); }
.claim { border-left: 2px solid var(--brand); background: var(--surface); border-radius: 0 8px 8px 0; padding: 18px 20px; margin: 14px 0; }
.claim-kind { font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--brand-soft-ink); }
.claim-kind.hypothesis { color: var(--warning-ink); }
.claim p { margin: 10px 0; font-size: 14px; }
.source-ref { background: var(--surface-overlay); border: 1px solid var(--line); border-radius: 6px; color: var(--ink-muted); font-size: 11px; padding: 6px 8px; margin: 4px 4px 0 0; }
.source-ref svg { width: 12px; height: 12px; }
.synthesis-section { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 24px; }
.synthesis-section h3 { margin-top: 8px; }
.synthesis-section p { white-space: pre-line; font-size: 15px; }
.conflict { background: var(--warning-soft); border: 1px solid var(--warning); padding: 16px; border-radius: 8px; }
.dialog-story small { display: block; margin-top: 8px; color: var(--ink-muted); font-size: 12px; }
.article-original { margin: 24px 0; border: 1px solid var(--line); padding: 16px; border-radius: 8px; }
.article-original p { white-space: pre-wrap; font-size: 14px; }
summary { cursor: pointer; color: var(--brand-soft-ink); font-size: 14px; min-height: 32px; }
details .form-field { margin-top: 16px; }
.dialog-actions { margin-top: 24px; display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-preview { font-family: 'Vivo Type',sans-serif; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.8; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.settings-help { padding: 36px; }
.settings-help > h2 { font-size: 40px; letter-spacing: -.03em; line-height: 1.15; }
.settings-help .section-kicker { font-size: 11px; color: var(--brand); }
.rule-item { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 20px; }
.rule-item strong { color: var(--brand-soft-ink); font-weight: 500; }
.rule-item p { color: var(--ink-muted); font-size: 14px; line-height: 1.7; }
.processing .topbar:after { content:''; position: fixed; top: 0; left: 0; width: 38%; height: 3px; background: var(--accent); z-index: 100; animation: loading 1.5s infinite ease-in-out; }
@keyframes loading { from{transform:translateX(-100%)}to{transform:translateX(365%)} }
@media(min-width:1024px) and (max-height:850px){.sidebar { padding-top: 24px; }.sidebar-bottom .profile,.sidebar-bottom p {display:none}.sidebar-bottom{padding-bottom:20px}.sidebar .workspace {margin:20px 0}.nav-link {min-height:38px;padding-block:7px;}.sidebar nav{margin-top:12px}}
@media(max-width:1100px){.source-row{flex-wrap:wrap}.row-actions{margin-left:auto}.welcome{padding:32px;gap:24px}.welcome .toolbar{align-items:flex-start;flex-direction:column}}
@media(max-width:1023px){.sidebar nav{overflow-y:auto}.nav-link{min-height:44px}.nav-link span{display:none}.composer-grid{grid-template-columns:1fr}.mode-notice{font-size:12px}.event-grid{grid-template-columns:1fr}}
@media(max-width:767px){.welcome{grid-template-columns:1fr}.onboarding-steps{border-left:0;border-top:1px solid var(--line);padding:20px 0 0}.welcome .toolbar{align-items:flex-start}.mode-notice{flex-wrap:wrap}.mode-notice span{min-width:180px}.mode-notice select{margin-left:30px}.source-icon{display:none}.row-actions{width:100%;margin:0}.score-grid{padding:16px;gap:8px}.score-grid small{font-size:10px}.source-row{padding:20px}.settings-help{padding:24px}.welcome h2{font-size:40px}.form-grid{grid-template-columns:1fr}.event-grid{padding:12px}.event-card{padding:18px}}
@media(max-width:500px){.sidebar nav{overflow-x:auto;overflow-y:hidden;justify-content:flex-start;gap:0}.nav-link{flex:0 0 75px;font-size:10px;min-width:75px;min-height:0;padding:14px 4px 6px}.nav-link span{display:block;max-width:75px;overflow:hidden;text-overflow:ellipsis}.nav-link svg{width:20px;height:20px}.sidebar{padding:0 0 env(safe-area-inset-bottom,0px)}.welcome{padding:24px}.welcome h2{font-size:36px}.mode-notice{padding:12px}.event-open h3{font-size:20px}.score-grid{grid-template-columns:repeat(2,1fr)}.newsletter-preview{padding:16px}.toolbar{gap:8px}.toolbar .button{font-size:12px}.page-heading{padding-top:8px}.health-row small{display:block;width:100%}.selection-row{padding:18px;gap:12px}}
.newsletter-rendered { background: #faf9fd; color: #252038; border-radius: 12px; padding: 28px; margin-top: 28px; }
.newsletter-masthead { font-size: 28px; font-weight: 700; color: #6816b8; border-bottom: 2px solid #6816b8; padding-bottom: 14px; letter-spacing: -.03em; }
.newsletter-masthead span { font-size: 9px; letter-spacing: .12em; margin-left: 8px; font-weight: 500; }
.newsletter-rendered .newsletter-review { font-size: 11px; color: #675c79; }
.newsletter-rendered section { padding: 20px 0; border-bottom: 1px solid #ddd8e6; }
.newsletter-rendered section > small { text-transform: uppercase; color: #6816b8; font-size: 11px; letter-spacing: .08em; }
.newsletter-rendered h3 { color: #252038; font-size: 24px; margin: 12px 0 20px; }
.newsletter-rendered section p { color: #494052; font-size: 14px; line-height: 1.8; }
.newsletter-rendered section p strong { display: block; font-size: 10px; text-transform: uppercase; color: #6816b8; }
.newsletter-sources { font-size: 11px; color: #6816b8; margin-top: 20px; }
.newsletter-sources a { text-decoration: underline; }
.processing-warnings { border: 1px solid var(--warning); background: var(--warning-soft); color: var(--warning-ink); border-radius: 10px; padding: 14px 18px; margin: -8px 0 24px; }
.processing-warnings p { font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.processing-warnings summary { color: var(--warning-ink); min-height: 0; }

/* CVM desk: chronological source documents, with explicit evidence and interpretation. */
.market-intro { display:grid; grid-template-columns:1.4fr 1fr; gap:48px; padding:36px; margin-bottom:24px; }
.market-intro .section-kicker { color:var(--brand-soft-ink); font-size:11px; letter-spacing:.12em; }
.market-intro h2 { font-size:38px; line-height:1.14; letter-spacing:-.035em; margin:18px 0; }
.market-intro h2 span { color:var(--accent); }
.market-intro p { color:var(--ink-muted); font-size:14px; line-height:1.7; margin-bottom:0; }
.market-collect { align-self:center; padding-left:32px; border-left:1px solid var(--line); }
.market-collect .button { width:100%; white-space:normal; }
.market-collect p { font-size:12px; margin:16px 0; }
.market-collect a { font-size:12px; color:var(--brand-soft-ink); }
.market-collect a svg { width:14px; height:14px; }
.market-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); padding:24px 0; border-bottom:1px solid var(--line); }
.market-stats > div { padding:0 24px; border-right:1px solid var(--line); }
.market-stats > div:first-child { padding-left:0; }
.market-stats > div:last-child { border:0; }
.market-stats strong { display:block; font-size:36px; font-weight:500; color:var(--ink-strong); letter-spacing:-.035em; }
.market-stats .market-stat-date { font-size:24px; line-height:1.8; }
.market-stats span { display:block; font-size:12px; color:var(--ink-muted); margin-top:8px; }
.market-freshness { display:flex; gap:10px; align-items:center; padding:20px 0 28px; color:var(--ink-muted); font-size:12px; line-height:1.65; }
.market-freshness svg { width:18px; height:18px; color:var(--brand); }
.market-filter-options { display:flex; flex-wrap:wrap; gap:12px 24px; align-items:center; margin-top:16px; }
.market-filter-options .checkbox-field { margin:0; font-size:12px; }
.market-filter-options .reset { margin-left:auto; }
.disclosure-card { display:flex; gap:26px; padding:28px; border-bottom:1px solid var(--line); }
.disclosure-card:last-child { border-bottom:0; }
.disclosure-date { flex:0 0 52px; padding-top:3px; color:var(--ink-muted); }
.disclosure-date strong { display:block; font-size:18px; font-weight:500; color:var(--brand-soft-ink); }
.disclosure-date span { display:block; font-size:11px; margin-top:7px; }
.disclosure-body { flex:1; min-width:0; }
.disclosure-body .event-open h3 { font-size:22px; margin-top:14px; overflow-wrap:anywhere; }
.disclosure-footer { display:flex; gap:12px; flex-wrap:wrap; font-size:11px; color:var(--ink-muted); }
.disclosure-footer a { margin-left:auto; color:var(--brand-soft-ink); }
.disclosure-footer a svg { width:12px; height:12px; }
.disclosure-status:before { content:''; display:inline-block; width:5px; height:5px; margin:0 6px 2px 0; border-radius:50%; background:var(--brand); }
.disclosure-status.has-error { color:var(--warning-ink); }
.market-coverage { padding:24px; margin-top:24px; }
.market-coverage > summary { color:var(--ink-strong); font-weight:500; }
.market-coverage > summary span { font-size:12px; font-weight:400; margin-left:12px; color:var(--ink-muted); }
.coverage-companies { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:20px 0; }
.coverage-companies button { background:var(--surface); border:1px solid var(--line); border-radius:8px; padding:16px; text-align:left; }
.coverage-companies button:hover { border-color:var(--brand); }
.coverage-companies strong,.coverage-companies span,.coverage-companies small { display:block; }
.coverage-companies strong { font-size:15px; font-weight:500; }
.coverage-companies span { font-size:11px; margin-top:8px; line-height:1.5; color:var(--ink-muted); }
.coverage-companies small { font-size:11px; margin-top:10px; color:var(--brand-soft-ink); }
.market-coverage .toolbar { margin-bottom:0; }
.market-document-meta { font-size:12px; color:var(--ink-muted); line-height:1.6; overflow-wrap:anywhere; }
.market-evidence { margin-top:12px; }
.market-evidence summary { min-height:24px; font-size:12px; }
.market-evidence blockquote { margin:8px 0 0; padding:12px; background:var(--surface-overlay); border-left:2px solid var(--line); font-size:12px; line-height:1.65; color:var(--ink-muted); overflow-wrap:anywhere; }
.market-numbers { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.market-number { background:var(--surface); border:1px solid var(--line); border-radius:10px; padding:20px; min-width:0; }
.market-number > span { display:block; font-size:12px; color:var(--ink-muted); }
.market-number > strong { display:block; margin-top:10px; font-size:26px; color:var(--brand-soft-ink); line-height:1.3; overflow-wrap:anywhere; }
.market-overview .news-item { padding:18px 24px; }
.market-overview .news-item h3 { font-size:16px; line-height:1.4; margin:10px 0 0; }
.market-overview .news-meta { font-size:11px; }
.market-overview-link { padding:20px 24px; }
.company-market-fields { border-top:1px solid var(--line); padding-top:16px; }
.market-desk-header { display:flex; align-items:center; justify-content:space-between; gap:32px; padding:12px 0 24px; }
.market-desk-header .section-kicker { color:var(--brand-soft-ink); font-size:11px; letter-spacing:.12em; }
.market-desk-header h2 { font-size:34px; line-height:1.12; letter-spacing:-.03em; margin:14px 0; }
.market-desk-header h2 span { color:var(--accent); }
.market-desk-header p { color:var(--ink-muted); font-size:14px; line-height:1.6; max-width:440px; margin:0; }
.market-desk-header > .button { flex-shrink:0; }
.brief-stats { padding-top:12px; }
.market-queue { display:flex; align-items:center; justify-content:space-between; gap:24px; background:var(--surface); border:1px solid var(--line); padding:18px 22px; border-radius:12px; margin:24px 0; }
.market-queue strong { font-size:13px; font-weight:500; }
.market-queue p { font-size:12px; color:var(--ink-muted); margin:6px 0 0; }
.market-queue .button { font-size:12px; flex-shrink:0; }
.market-collection-warnings { margin:20px 0; }
.brief-stats + .market-feed { margin-top:24px; }
.market-priority { display:inline-flex; align-items:center; gap:6px; font-size:11px; font-weight:500; border-radius:100px; padding:5px 9px; background:var(--surface-overlay); color:var(--ink-muted); }
.market-priority:before { content:''; width:5px; height:5px; border-radius:50%; background:currentColor; }
.market-priority.priority-3 { background:var(--brand-soft); color:var(--brand-soft-ink); }
.market-priority.priority-2 { background:var(--warning-soft); color:var(--warning-ink); }
.market-brief-card .news-meta time { margin-left:auto; font-size:11px; color:var(--ink-muted); }
.market-brief-card .event-open h3 { font-size:24px; margin-top:18px; }
.market-brief-card .event-open .brief-what { display:block; overflow:visible; font-size:15px; color:var(--ink); line-height:1.65; margin-bottom:18px; }
.brief-impact { border-left:2px solid var(--brand); padding:2px 0 2px 16px; margin:0 0 22px; }
.brief-impact > span { font-size:10px; font-weight:500; letter-spacing:.1em; color:var(--brand-soft-ink); }
.brief-impact p { font-size:14px; color:var(--ink-muted); line-height:1.65; margin:6px 0 0; }
.market-brief-card .disclosure-footer { align-items:center; border-top:1px solid var(--line); padding-top:12px; }
.market-brief-card .disclosure-footer button { margin-left:auto; padding:4px 0; min-height:32px; font-size:12px; }
.market-brief-card .disclosure-footer button svg { width:16px; height:16px; }
.brief-relevance { display:flex; gap:14px; align-items:center; margin:22px 0 28px; padding:14px; background:var(--surface); border-radius:10px; }
.brief-relevance .market-priority { flex-shrink:0; }
.brief-relevance p { margin:0; font-size:12px; line-height:1.5; color:var(--ink-muted); }
.brief-detail-section { margin:22px 0; }
.brief-detail-section h3 { font-size:12px; letter-spacing:.02em; color:var(--brand-soft-ink); margin:0 0 10px; font-weight:500; }
.brief-detail-section p { font-size:16px; line-height:1.7; margin:0; color:var(--ink); }
.brief-source { color:var(--brand-soft-ink); font-size:12px; display:inline-flex; gap:8px; align-items:center; padding:10px 4px; }
.brief-source svg { width:14px; height:14px; }
.brief-method { border-top:1px solid var(--line); padding-top:16px; margin-top:20px; }
.brief-method summary { font-size:12px; }
@media(max-width:767px){.market-desk-header{align-items:flex-start;flex-direction:column;gap:22px}.market-desk-header h2{font-size:30px}.market-queue{align-items:flex-start;flex-direction:column;gap:16px;padding:18px}.market-brief-card .event-open h3{font-size:22px}.market-brief-card .news-meta{gap:10px}.market-brief-card .news-meta time{font-size:10px}.market-priority{font-size:10px}.brief-relevance{align-items:flex-start;flex-direction:column;gap:10px}.brief-detail-section p{font-size:15px}}
@media(max-width:1100px){.market-intro{gap:24px;padding:28px}.market-intro h2{font-size:32px}.market-collect{padding-left:24px}.market-stats > div{padding-inline:16px}.market-stats .market-stat-date{font-size:20px}.coverage-companies{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){.market-intro{grid-template-columns:1fr}.market-collect{border-left:0;border-top:1px solid var(--line);padding:24px 0 0}.market-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.market-stats > div{padding:0;border:0}.market-stats strong{font-size:28px}.market-stats .market-stat-date{font-size:21px}.disclosure-card{gap:14px;padding:20px}.disclosure-date{flex-basis:40px}.disclosure-date strong{font-size:14px}.disclosure-body .event-open h3{font-size:20px}.disclosure-body .news-meta{align-items:flex-start;gap:8px}.disclosure-body .vv-badge{font-size:10px;white-space:normal}.market-filter-options{align-items:flex-start;flex-direction:column}.market-filter-options .reset{margin-left:0}.market-numbers{grid-template-columns:1fr}.coverage-companies{grid-template-columns:1fr}.market-coverage > summary span{display:block;margin:8px 0}.market-coverage{padding:20px}.market-overview{margin-top:0}}

/* Admin-only preview uses the same reader presentation and API projection. */
.reader-preview:empty { display:none; }
.reader-preview { display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px; margin-bottom:16px; }
.reader-preview-toggle { display:flex; align-items:center; gap:10px; min-height:44px; padding:8px 14px; border:1px solid var(--line); border-radius:var(--radius-full); background:var(--surface-raised); font-size:13px; }
.reader-preview-toggle strong { width:25px; font-size:11px; color:var(--ink-muted); }
.reader-preview-track { width:34px; height:20px; border-radius:12px; background:var(--surface-overlay); border:1px solid var(--line); padding:2px; }
.reader-preview-track i { display:block; width:14px; height:14px; border-radius:50%; background:var(--ink-muted); transition:transform .18s ease; }
.reader-preview-toggle[aria-checked="true"] { border-color:var(--brand); }
.reader-preview-toggle[aria-checked="true"] strong { color:var(--brand-soft-ink); }
.reader-preview-toggle[aria-checked="true"] .reader-preview-track { background:var(--brand); border-color:var(--brand); }
.reader-preview-toggle[aria-checked="true"] .reader-preview-track i { background:white; transform:translateX(14px); }
.reader-preview-hint { color:var(--ink-muted); font-size:12px; }
@media(prefers-reduced-motion:reduce){.reader-preview-track i{transition:none}}
