/* One popup shell: fixed header/actions, scrollable content, consistent insets. */
:root{--popup-inset:24px;--popup-radius:12px;--popup-control:40px}
/* Lock the viewport without turning body into a new sticky scroll container. */
html:has(dialog[open]){overflow:hidden!important;scrollbar-gutter:stable!important}
body:has(dialog[open]){overflow:visible!important}
html body dialog [hidden][hidden][hidden]{display:none!important}
html body :is(dialog.reader-dialog,dialog.email-settings,dialog.preferences,dialog.submission-dialog,dialog.share-link-dialog,dialog.kb-sheet){box-sizing:border-box!important;margin:auto!important;inset:0!important;padding:0!important;border:1px solid var(--line,#e5e5e5)!important;border-radius:var(--popup-radius)!important;max-height:calc(100dvh - 48px)!important;background:var(--paper,#fff)!important;color:var(--ink,#191919)!important;overflow:hidden!important;box-shadow:0 20px 70px #0002!important}
html body :is(dialog.reader-dialog,dialog.email-settings,dialog.preferences,dialog.submission-dialog,dialog.share-link-dialog,dialog.kb-sheet)::backdrop{background:#0006;backdrop-filter:none}
html body :is(dialog.email-settings,dialog.preferences,dialog.submission-dialog,dialog.share-link-dialog){width:min(500px,calc(100vw - 48px))!important;max-width:none!important;height:fit-content!important}
html body :is(dialog.reader-dialog,dialog.email-settings,dialog.preferences,dialog.submission-dialog,dialog.kb-sheet)[open]{display:flex!important;flex-direction:column!important}
html body dialog.reader-dialog{width:min(880px,calc(100vw - 48px))!important;max-width:none!important;height:min(800px,calc(100dvh - 48px))!important}
html body dialog.reader-dialog:is([data-record-type=Events],[data-record-type=Research],[data-record-type=Markets]){height:fit-content!important}
html body dialog.kb-sheet{width:min(600px,calc(100vw - 48px))!important;height:fit-content!important;max-width:none!important}
html body :is(.reader-top,dialog>.dialog-top,.email-settings>header,.submission-dialog>header,.kb-sheet>header){box-sizing:border-box!important;display:flex!important;align-items:center!important;gap:12px!important;min-height:56px!important;padding:8px var(--popup-inset)!important;margin:0!important;flex:0 0 auto!important;border:0!important;border-bottom:1px solid var(--line,#e5e5e5)!important;background:var(--paper,#fff)!important;position:relative!important}
html body :is(dialog>.dialog-top,.email-settings>header,.submission-dialog>header,.kb-sheet>header){justify-content:space-between!important}
html body :is(dialog>.dialog-top h2,.email-settings>header h2,.submission-dialog>header h2,.kb-sheet>header>span){font:500 16px/22px var(--ui-font)!important;letter-spacing:0!important;margin:0!important}
html body .reader-top #detail-label{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:13px;color:var(--ink)}
html body .reader-top #reader-original{flex:none;margin:0;font-size:12px}
html body :is(.reader-top .icon-button,dialog>.dialog-top .icon-button,.email-settings [data-email-close],.submission-dialog [data-close-submission].icon-button,.kb-sheet>header button){box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:none!important;min-width:var(--popup-control)!important;width:var(--popup-control)!important;min-height:var(--popup-control)!important;height:var(--popup-control)!important;padding:8px!important;border:0!important;border-radius:6px!important;background:transparent!important;color:var(--ink)!important}
html body .kb-sheet>header button{width:auto!important;font-size:12px!important}
html body :is(.reader-top,dialog>.dialog-top,.email-settings>header,.submission-dialog>header) svg{width:18px!important;height:18px!important}
html body .reader-tabs{box-sizing:border-box;gap:22px;padding:0 var(--popup-inset);height:44px;min-height:44px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;border-bottom:1px solid var(--line)}
html body .reader-tabs button{flex:none;white-space:nowrap;height:44px;font-size:13px;line-height:20px;font-weight:400;padding:0;border:0;border-bottom:1px solid transparent;background:transparent}
html body .reader-tabs [aria-selected=true]{border-bottom-color:var(--ink);color:var(--ink)}
html body :is(.reader-body,.popup-scroll,.email-settings-body,.kb-sheet-body){min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain!important;scrollbar-width:thin!important;scrollbar-gutter:stable!important}
html body :is(.popup-scroll,.email-settings-body,.kb-sheet-body){padding:20px var(--popup-inset)!important;flex:1 1 auto!important;max-height:none!important}
html body .reader-dialog .profile-content{padding:20px var(--popup-inset)}
html body .reader-dialog .profile-section-body>h2{font-size:16px;font-weight:500;line-height:24px;margin:24px 0 12px;letter-spacing:-.2px}
html body .reader-dialog .record-list .record-row{padding:16px 0;gap:12px}
html body .reader-dialog .record-row:hover{background:transparent!important}
html body .reader-dialog .record-row-main strong{font-size:14px;line-height:21px;font-weight:500;letter-spacing:0}
html body .reader-dialog .record-row-main>span{font-size:13px;line-height:20px;margin-top:6px}
html body :is(.reader-actions,.popup-footer,.email-settings-footer,.submission-dialog form>footer){box-sizing:border-box;flex:none;padding:8px var(--popup-inset);min-height:52px;border:0;border-top:1px solid var(--line);background:var(--paper);margin:0;gap:12px}
html body .reader-actions{display:flex;flex-wrap:wrap;align-items:center}
html body .reader-actions button{min-height:36px;font-size:12px;padding:7px 2px;border:0;border-radius:0;background:transparent;box-shadow:none;gap:6px}
html body .reader-actions button:is(:hover,[aria-pressed=true]){background:transparent;border:0}
html body .reader-actions [data-submit-correction]{margin-left:auto;color:var(--muted)}
html body .email-settings form{flex:1 1 auto;min-height:0}
html body .email-settings-footer{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px 18px;padding-block:12px}
html body .email-settings-footer .email-submit{grid-column:2;grid-row:1;width:auto;min-width:104px;height:36px;padding:0 16px;font-size:12px}
html body .email-settings-footer .email-consent{grid-column:1;grid-row:1;margin:0;font-size:11px;line-height:16px}
html body .email-settings-footer .feed-email-status{grid-column:1/-1;margin:0}
html body #preferences{padding-bottom:0!important}
html body #preferences :is(.preference-intro,.interest-search,#topic-picker,.preference-row,.preference-explainer,#interest-empty){margin-left:0;margin-right:0}
html body #preferences .preference-intro{margin-top:0}
html body #preferences .preference-explainer{margin-bottom:0}
html body #preferences .preference-bottom{margin:0;gap:16px;min-height:36px}
html body #preferences .preference-bottom .primary{min-width:88px;height:36px;margin:0;font-size:12px;padding:7px 16px;border-radius:6px}
html body #preferences .local-note{margin:6px 0 0;min-height:0;font-size:11px}
html body #preferences .local-note:empty{display:none}
html body #preferences .topic.selected{background:transparent;color:var(--ink);border-color:var(--line);text-decoration:underline;text-underline-offset:3px}
html body .submission-dialog form{display:flex;flex-direction:column;gap:0;min-height:0;overflow:hidden;margin:0}
html body .submission-dialog form>.popup-scroll{display:grid;gap:14px}
html body .submission-dialog .submission-context{margin:0;font-size:12px;color:var(--muted)}
html body .submission-dialog form>footer{display:flex;align-items:center;justify-content:space-between}
html body .submission-dialog footer>span{font-size:11px}
html body .submission-dialog form>footer button{min-height:36px;font-size:12px}
html body .submission-dialog>.popup-footer{text-align:right}
html body .share-link-dialog>input{display:block;box-sizing:border-box;width:calc(100% - 2 * var(--popup-inset));margin:20px var(--popup-inset) 12px}
html body .share-link-dialog>p{margin:0 var(--popup-inset) 20px;font-size:12px;color:var(--muted)}
@media(max-width:760px){
 :root{--popup-inset:18px;--popup-control:44px}
 html body :is(dialog.reader-dialog,dialog.email-settings,dialog.preferences,dialog.submission-dialog,dialog.share-link-dialog,dialog.kb-sheet){width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px)!important;border-radius:12px!important}
 html body dialog.reader-dialog{height:calc(100dvh - 24px)!important}
 html body :is(.reader-top,dialog>.dialog-top,.email-settings>header,.submission-dialog>header,.kb-sheet>header){min-height:56px!important;padding-block:8px!important}
 html body .reader-tabs{gap:20px}
 html body .reader-dialog .profile-content{padding:18px var(--popup-inset)}
 html body #reader-actions{padding:6px 12px;gap:10px;min-height:52px;flex-wrap:nowrap}
 html body #reader-actions button{font-size:11px;min-height:40px;padding:6px 0;white-space:nowrap}
 html body .reader-actions [data-reader-follow]{max-width:45%;min-width:0;flex:0 1 auto;overflow:hidden}
 html body .reader-actions [data-reader-follow]>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 html body .reader-actions [data-submit-correction]{font-size:11px}
 html body .email-settings-footer{grid-template-columns:1fr;padding-block:12px}
 html body .email-settings-footer .email-consent{grid-column:1;grid-row:1}
 html body .email-settings-footer .email-submit{grid-column:1;grid-row:2;justify-self:end;min-height:40px}
 html body :is(.popup-scroll,.email-settings-body,.kb-sheet-body){padding-block:16px!important}
}

/* Readable article measure; the title arrives before media on every surface. */
.article-reader-heading h1{font-size:30px;line-height:1.2;font-weight:500;letter-spacing:-.75px;margin:0;text-wrap:pretty}
.article-reader-hero{margin:24px 0}
.article-reader-hero .article-reader-image{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:contain;background:var(--tone-f5f5f5,#f5f5f5);border-radius:6px}
.article-reader-hero figcaption{font-size:12px;line-height:1.5;color:var(--muted);margin-top:8px}
html body dialog.reader-dialog[data-record-type=Articles]{width:min(800px,calc(100vw - 48px))!important}
html body .reader-dialog .article-reader-copy{box-sizing:border-box;width:100%;max-width:704px;margin:auto;padding:28px 28px 36px}
html body .reader-dialog .article-reader-heading h1{font-size:28px;line-height:1.22;letter-spacing:-.65px;margin:0}
html body .reader-dialog .article-deck{font-size:15px;line-height:1.65;color:var(--muted);margin:14px 0}
html body .reader-dialog .article-byline{font-size:12px;line-height:1.5;gap:12px;flex-wrap:wrap;margin:14px 0}
html body .reader-dialog .article-reader-heading .entity-pills{gap:8px;margin:14px 0 0;flex-wrap:wrap}
html body .reader-dialog .article-reader-heading .entity-pill{font-size:12px;min-height:36px;padding:6px 9px;max-width:100%;white-space:normal;text-align:left}
html body .reader-dialog .article-reader-hero{margin:22px 0}
html body .reader-dialog .article-reader-image{max-height:240px;aspect-ratio:16/9;margin:0}
html body .reader-dialog .article-reader-copy .profile-prose{font-size:16px;line-height:1.75;color:var(--ink);overflow-wrap:anywhere}
html body .reader-dialog .article-reader-copy .profile-prose p{margin:0 0 18px}
html body .reader-dialog .article-reader-copy .profile-prose h2{font-size:21px;line-height:1.35;margin:28px 0 12px}
html body .reader-dialog .article-reader-copy .profile-prose h3{font-size:18px;line-height:1.4;margin:24px 0 10px}
html body dialog :is(.profile-prose img,.profile-prose video,.profile-prose iframe){max-width:100%}
html body dialog :is(.profile-prose,.record-row-main,.submission-context){overflow-wrap:anywhere}
html body dialog :is(button,a,input,select,textarea):focus-visible{outline:2px solid var(--ink);outline-offset:3px}
html body .reader-top #reader-original{display:inline-flex;align-items:center;min-height:40px}
html body :is(.reader-body,.popup-scroll,.email-settings-body,.kb-sheet-body){overflow-x:hidden;scroll-padding-block:20px}
html body :is(.reader-actions,.popup-footer,.email-settings-footer,.submission-dialog form>footer){padding-bottom:max(8px,env(safe-area-inset-bottom))}
html body dialog .table-scroll{max-width:100%;overflow-x:auto}
@media(max-width:760px){
 html body dialog.reader-dialog,html body dialog.reader-dialog[data-record-type=Articles]{width:100%!important;height:100dvh!important;max-height:100dvh!important;max-width:100%!important;margin:0!important;border:0!important;border-radius:0!important}
 html body .reader-top{padding-top:max(6px,env(safe-area-inset-top))!important;padding-inline:14px!important;gap:8px!important}
 html body .reader-top #reader-original{font-size:12px;min-height:44px}
 html body .reader-dialog .article-reader-copy{max-width:660px;padding:22px 20px 28px}
 .article-reader-heading h1{font-size:25px;line-height:1.24;letter-spacing:-.5px}
 html body .reader-dialog .article-reader-heading h1{font-size:25px;line-height:1.24;letter-spacing:-.5px}
 html body .reader-dialog .article-deck{font-size:15px;line-height:1.6;margin:12px 0}
 html body .reader-dialog .article-reader-copy .profile-prose{font-size:16px;line-height:1.7}
 html body .reader-dialog .article-reader-heading .entity-pill{min-height:40px}
 html body .reader-dialog .article-reader-hero{margin:20px 0}
 html body .reader-dialog .article-reader-image{max-height:230px}
 html body #reader-actions{padding:4px 16px max(4px,env(safe-area-inset-bottom));gap:12px;min-height:52px}
 html body #reader-actions button{min-height:44px;font-size:12px}
 html body .reader-actions [data-submit-correction]{font-size:12px}
 html body dialog :is(input,select,textarea){font-size:16px}
 html body :is(.popup-footer,.email-settings-footer,.submission-dialog form>footer) button{min-height:44px!important}
 html body .submission-dialog form>footer{flex-wrap:wrap;gap:8px}
 html body .submission-dialog form>footer>span{flex:1 1 160px}
}
@media(max-height:500px) and (min-width:761px){
 html body dialog.reader-dialog{height:calc(100dvh - 16px)!important;max-height:calc(100dvh - 16px)!important}
}

/* One neutral product-photo stage across cards, profiles and discovery in both themes. */
.product-cover,.profile-product-grid .product-cover,.product-profile-image,.standalone-profile .product-profile-image,.radar-item .radar-img{background:#fff;isolation:isolate;color-scheme:light}
.product-cover img,.product-profile-image img,.radar-item .radar-img{object-fit:contain;mix-blend-mode:normal;filter:none}
.radar-item .radar-img{display:block;width:96px;height:54px;aspect-ratio:16/9;object-fit:contain}

/* Account entry stays compact; provider availability comes from Auth settings. */
html body .account-sign-in{max-width:480px}
html body .account-providers{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}
html body .account-provider{min-height:44px;padding:10px 20px;background:transparent;color:inherit;border:1px solid var(--tone-e8e8e8);border-radius:8px;box-shadow:none}
html body .account-provider:disabled{opacity:.45;cursor:not-allowed}
html body .account-provider[aria-busy=true]{cursor:progress}
html body .account-provider-status{margin-top:12px;color:var(--tone-767676);font-size:13px}

html body .account-panel{max-width:760px;width:100%}
html body .account-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:20px}
html body .account-heading h1{font-size:24px;font-weight:500;line-height:1.3;margin:0}
html body .account-heading p{font-size:13px;margin-top:6px;overflow-wrap:anywhere}
html body .account-heading .button{flex:none}
html body .account-tabs{margin:0;gap:8px;overflow-x:auto;white-space:nowrap}
html body .account-tabs a,html body .account-tabs button{padding:10px 12px;font-size:13px;flex:none}
html body .account-section{padding:22px 0;border-bottom:1px solid var(--tone-e8e8e8)}
html body .account-section h2{font-size:15px;font-weight:500;margin:0 0 14px}
html body .account-section>p{font-size:13px;line-height:1.6;margin:0 0 16px}
html body .account-profile-form{max-width:520px;display:grid;grid-template-columns:1fr 1fr;gap:18px}
html body .account-profile-form label{font-size:13px;min-width:0}
html body .account-profile-form input{width:100%;min-height:42px;box-sizing:border-box;margin-top:7px;border-radius:6px}
html body .account-form-actions{grid-column:1/-1;display:flex;gap:14px;align-items:center}
html body .account-form-actions .form-status{margin:0;font-size:12px;line-height:1.5}
html body .account-form-actions button{flex:none}
html body .account-panel .button{min-height:40px;padding:9px 14px;background:transparent;color:inherit;border:1px solid var(--tone-e8e8e8);border-radius:6px;box-shadow:none}
html body .account-panel button:disabled{opacity:.5;cursor:wait}
html body .account-section>a{font-size:13px}
html body .account-membership,.account-follow-row{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:12px 0;border-bottom:1px solid var(--tone-e8e8e8)}
html body .account-memberships:not(:empty){margin-bottom:16px}
html body .account-membership small,.account-follow-row small{font-size:12px;color:var(--muted)}
html body .account-follow-row>button:first-child{min-width:0;text-align:left;padding:0;display:grid;gap:5px}
html body .account-follow-row strong{font-size:14px;font-weight:500;overflow-wrap:anywhere}
html body .account-follow-row>button:last-child{flex:none}
html body .account-data{border-bottom:0}
@media(max-width:600px){html body .account-profile-form{grid-template-columns:1fr}html body .account-heading h1{font-size:22px}html body .account-tabs{gap:0}html body .account-tabs a,html body .account-tabs button{padding-inline:10px}html body .account-section{padding-block:18px}}

html body .account-profile-form{margin:0}html body .account-profile-form label{display:flex;flex-direction:column;gap:0}html body .account-profile-form label>span{display:block}html body .account-profile-form input{font-size:16px}

html body .account-form-actions button{margin:0}html body .account-membership>span{min-width:0;overflow-wrap:anywhere}html body .account-membership small{flex:none}
html body .account-profile-form label{margin:0}
/* Compact company management; no filled tab or action highlights. */
html body .company-workspace{max-width:1000px;margin:0}
html body .company-back{font-size:12px;color:var(--muted);display:inline-block;margin-bottom:16px}
html body .company-workspace-heading{display:flex;align-items:center;gap:12px;margin:0 0 18px}
html body .company-workspace-heading h1{font-size:24px;line-height:1.2;letter-spacing:-.6px;font-weight:500;margin:0}
html body .company-workspace-heading>div{min-width:0}
html body .company-workspace-heading>div>span{display:block;font-size:12px;color:var(--muted);margin-top:5px}
html body .company-workspace-heading>a{margin-left:auto;font-size:12px;white-space:nowrap}
html body .company-tabs{gap:24px;margin:0 0 24px;overflow-x:auto;white-space:nowrap}
html body .company-tabs>a{padding:10px 0;font-size:13px;flex:none}
html body .company-section h2,html body .company-section-heading h2{font-size:17px;font-weight:500;margin:0 0 12px}
html body .company-section p{font-size:13px;line-height:1.6}
html body .company-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
html body .company-section-heading h2{margin:0}
html body .company-section-heading>a,.company-status{font-size:12px}
html body .company-workspace :is(.button,select){background:transparent;color:var(--ink);box-shadow:none;border:1px solid var(--line);border-radius:6px;min-height:38px;padding:8px 12px;font-size:13px;width:auto;display:inline-flex;align-items:center}
html body .company-workspace select{display:block}
html body .company-form{max-width:600px;margin:18px 0 0;display:grid;gap:16px}
html body .company-form label{display:flex;flex-direction:column;gap:7px;margin:0;font-size:13px;color:var(--muted)}
html body .company-form :is(input,textarea,select){width:100%;box-sizing:border-box;border-radius:6px;margin:0;font-size:14px;color:var(--ink);min-height:40px;padding:10px 12px;background:transparent;border:1px solid var(--line)}
html body .company-form textarea{resize:vertical}
html body .company-form-pair{display:grid;grid-template-columns:1fr 1fr;gap:16px}
html body .company-form-actions{display:flex;align-items:center;gap:16px}
html body .company-form-actions :is(button,p){margin:0}
html body .company-form-actions button{flex:none}
html body .company-workspace .company-caption{font-size:12px;line-height:1.6;color:var(--muted);margin:12px 0 20px}
html body .company-metrics{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:0}
html body .company-metrics>div{padding:20px 0}
html body .company-metrics dt{font-size:12px;color:var(--muted)}
html body .company-metrics dd{font-size:28px;line-height:1.25;font-weight:500;letter-spacing:-.7px;margin:8px 0 0;font-variant-numeric:tabular-nums}
html body .company-report-grid{display:grid;grid-template-columns:1fr 1fr;gap:32px;margin-top:30px}
html body .company-report-grid h3{font-size:14px;font-weight:500;margin:0 0 12px}
html body .company-report-row{display:grid;grid-template-columns:minmax(0,1fr) 48px 80px;gap:10px;align-items:center;border-bottom:1px solid var(--line);padding:12px 0;font-size:12px}
html body .company-report-row>span:not(:first-child){text-align:right;font-variant-numeric:tabular-nums}
html body .company-report-row small{display:block;color:var(--muted);font-size:11px;margin-top:4px}
html body .company-report-label{color:var(--muted);font-size:11px}
html body .company-metric-help{margin-top:24px;font-size:12px;line-height:1.6;color:var(--muted)}
html body .company-metric-help summary{cursor:pointer;list-style:none;display:inline-block;border-bottom:1px solid var(--line)}
html body .company-metric-help summary::-webkit-details-marker{display:none}
html body .company-empty{color:var(--muted);font-size:13px;margin:24px 0}
html body .company-notice{font-size:12px}
html body .company-request{padding:18px 0;border-bottom:1px solid var(--line)}
html body .company-request header{display:flex;justify-content:space-between;gap:12px;font-size:13px}
html body .company-request strong{font-weight:500}
html body .company-request :is(header>span,small){color:var(--muted);font-size:12px}
@media(max-width:600px){html body .company-workspace-heading h1{font-size:21px}html body .company-tabs{gap:20px;margin-bottom:20px}html body .company-form-pair{grid-template-columns:1fr}html body .company-form :is(input,textarea,select){font-size:16px}html body .company-metrics{grid-template-columns:repeat(2,1fr)}html body .company-metrics>div{padding:16px 0}html body .company-report-grid{grid-template-columns:1fr;gap:24px}html body .company-form-actions{align-items:flex-start;flex-wrap:wrap}html body .company-workspace-heading{gap:10px}}

html body .company-report-period{font-size:12px;color:var(--muted)}

/* Prose links wrap as text, rather than atomic button boxes. */
html body .profile-prose :is(a.inline-link,a){display:inline!important;white-space:normal!important;font:inherit;line-height:inherit;padding:0!important;margin:0!important;border:0!important;background:transparent!important;box-shadow:none!important;vertical-align:baseline;overflow-wrap:anywhere;text-decoration:none;color:var(--ink)}
html body .profile-prose a:hover{color:var(--muted)}
html body .profile-prose a:focus-visible{outline:1px solid currentColor;outline-offset:2px}
html body .reader-dialog[data-record-type=Articles] .profile-prose figure{margin:24px 0;max-width:100%}
html body .reader-dialog[data-record-type=Articles] .profile-prose img{display:block;max-width:100%;height:auto}
html body .reader-dialog[data-record-type=Articles] .profile-prose figcaption{font-size:12px;line-height:1.5;margin-top:8px;color:var(--muted)}

/* Article quick view: compact editorial heading and an unboxed, contained photo. */
html body dialog.reader-dialog[data-record-type=Articles]{width:min(760px,calc(100vw - 48px))!important;height:min(880px,calc(100dvh - 32px))!important;max-height:calc(100dvh - 32px)!important}
html body .reader-dialog[data-record-type=Articles] .reader-top{min-height:48px!important;padding:4px 20px!important}
html body .reader-dialog[data-record-type=Articles] .reader-body{overflow-anchor:none;scroll-behavior:auto}
html body .reader-dialog[data-record-type=Articles] .article-reader-copy{max-width:680px;padding:24px 24px 32px}
html body .reader-dialog[data-record-type=Articles] .article-reader-heading h1{font-size:26px;line-height:1.22;letter-spacing:-.6px;text-wrap:pretty}
html body .reader-dialog[data-record-type=Articles] .article-deck{font-size:14px;line-height:1.6;margin:12px 0 16px;color:var(--muted)}
html body .reader-dialog[data-record-type=Articles] .article-reader-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px;padding-bottom:16px;border-bottom:1px solid var(--line)}
html body .reader-dialog[data-record-type=Articles] .article-byline{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:0;font-size:11px;line-height:1.5}
html body .reader-dialog[data-record-type=Articles] .entity-pills{display:flex;gap:8px 12px;margin:0;flex-wrap:wrap}
html body .reader-dialog[data-record-type=Articles] .entity-pills:empty{display:none}
html body .reader-dialog[data-record-type=Articles] .entity-pill{gap:6px;min-height:28px;padding:2px 0;border:0;border-radius:0;font-size:11px;line-height:1.4;background:transparent}
html body .reader-dialog[data-record-type=Articles] .entity-pill:hover{color:var(--ink);text-decoration:underline;text-underline-offset:3px}
html body .reader-dialog[data-record-type=Articles] .entity-pill .company-logo{--logo-size:20px!important;width:20px;height:20px;flex-basis:20px}
html body .reader-dialog[data-record-type=Articles] .article-reader-hero{margin:18px 0 20px;background:transparent}
html body .reader-dialog[data-record-type=Articles] .article-reader-hero .article-reader-image{display:block;width:100%;height:auto;max-width:100%;max-height:none;aspect-ratio:auto;object-fit:contain;margin:0;background:transparent;border-radius:4px}
html body .reader-dialog[data-record-type=Articles] .article-reader-hero figcaption{text-align:left;margin:7px 0 0;font-size:11px;line-height:1.5;color:var(--muted)}
html body .reader-dialog[data-record-type=Articles] .profile-prose{font-size:15px;line-height:1.75}
html body .reader-dialog[data-record-type=Articles] .profile-prose p{margin:0 0 16px}
html body .reader-dialog[data-record-type=Articles] .reader-actions{min-height:44px;padding:4px 20px;gap:12px}
html body .reader-dialog[data-record-type=Articles] .reader-actions button{min-height:36px;font-size:11px}
@media(max-width:760px){
 html body dialog.reader-dialog[data-record-type=Articles]{width:100%!important;height:100dvh!important;max-height:100dvh!important}
 html body .reader-dialog[data-record-type=Articles] .reader-top{padding:4px 16px!important;padding-top:max(4px,env(safe-area-inset-top))!important;min-height:52px!important}
 html body .reader-dialog[data-record-type=Articles] .article-reader-copy{padding:20px 20px 28px}
 html body .reader-dialog[data-record-type=Articles] .article-reader-heading h1{font-size:24px;line-height:1.25;letter-spacing:-.45px}
 html body .reader-dialog[data-record-type=Articles] .article-deck{font-size:14px;margin:12px 0}
 html body .reader-dialog[data-record-type=Articles] .article-reader-meta{gap:6px 14px;padding-bottom:12px}
 html body .reader-dialog[data-record-type=Articles] .entity-pill{min-height:36px}
 html body .reader-dialog[data-record-type=Articles] .article-reader-hero .article-reader-image{height:auto;max-height:none}
 html body .reader-dialog[data-record-type=Articles] .profile-prose{font-size:16px;line-height:1.65}
 html body .reader-dialog[data-record-type=Articles] .reader-actions{padding:2px 16px max(2px,env(safe-area-inset-bottom));min-height:48px}
 html body .reader-dialog[data-record-type=Articles] .reader-actions button{min-height:44px;font-size:12px}
}

html body .reader-dialog[data-record-type=Articles] [aria-busy=true] .profile-prose:empty::before{content:'Loading article…';display:block;padding:8px 0;color:var(--muted);font-size:13px}

/* Compact popup actions preserve their established primary colours. */
html body :is(.email-settings-footer .email-submit,.submission-dialog footer .button,#preferences .preference-bottom .primary){
 box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;flex:none;
 width:auto;min-width:0;height:28px;min-height:28px;margin:0;padding:0 10px;
 border-radius:6px;
 font-family:inherit;font-size:11px;font-weight:400;line-height:16px;letter-spacing:0;
 box-shadow:none;white-space:nowrap;transition:background-color 100ms ease;
}
html body :is(.email-settings-footer .email-submit,.submission-dialog footer .button,#preferences .preference-bottom .primary):disabled{opacity:.55}
@media(max-width:760px){
 html body :is(.email-settings-footer .email-submit,.submission-dialog footer .button,#preferences .preference-bottom .primary){height:32px;min-height:32px}
}
html body :is(dialog.email-settings,dialog.submission-dialog,dialog.preferences) :is(button,input,textarea,select,summary):focus-visible{outline:none!important;box-shadow:none!important}

/* Inline icon baselines must not move the close glyph within its hit target. */
html body dialog button [data-icon="x"]{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;flex:0 0 18px;line-height:0}
html body dialog button [data-icon="x"] svg{display:block;width:18px!important;height:18px!important;flex:0 0 18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
