.x-reader { padding:20px; border:1px solid var(--nw-line, #cfd9de); border-radius:16px; background:#fff; color:var(--nw-ink, #0f1419); }
[data-theme="dark"] .x-reader { background:#000; color:#e7e9ea; border-color:#2f3336; }
.x-author { display:flex; align-items:center; gap:10px; }
.x-avatar { display:flex; align-items:center; justify-content:center; flex:none; width:40px; height:40px; border-radius:50%; overflow:hidden; color:var(--nw-ink, #0f1419); background:var(--nw-card, #f7f9f9); text-decoration:none; font-weight:650; }
.x-avatar img { width:100%; height:100%; object-fit:cover; }
.x-author > div { flex:1; min-width:0; }
.x-author-name { display:block; color:inherit; font-size:15px; line-height:1.4; font-weight:700; text-decoration:none; overflow-wrap:anywhere; }
.x-author > div > span { display:block; color:var(--nw-muted, #536471); font-size:12px; line-height:1.6; overflow-wrap:anywhere; }
.x-brand { display:flex; align-items:center; justify-content:center; width:32px; height:40px; flex:none; color:inherit; }
.x-brand svg { width:22px; height:22px; fill:currentColor; stroke:none; }
.x-language { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:6px; margin:16px 0 8px; }
.x-language span { font-size:12px; color:var(--nw-muted, #536471); }
.x-language button { min-height:32px; padding:0 8px; border:0; background:transparent; color:var(--nw-link, #0969a9); font-size:12px; cursor:pointer; text-decoration:underline; text-underline-offset:3px; }
.x-body { white-space:pre-wrap; overflow-wrap:anywhere; font-size:16px; line-height:1.7; }
.x-media { display:grid; gap:8px; margin-top:16px; }
.x-media a { display:block; overflow:hidden; border-radius:12px; background:var(--nw-card, #f7f9f9); }
.x-media img { display:block; width:100%; height:auto; max-height:540px; object-fit:contain; }
.x-reader-footer { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; margin-top:18px; padding-top:12px; border-top:1px solid var(--nw-line, #cfd9de); font-size:12px; line-height:1.6; color:var(--nw-muted, #536471); }
.x-reader-footer a { color:inherit; text-decoration:none; }
.x-reader .x-partial, #detail-related .x-partial { margin-top:10px; font-size:12px; }
[data-theme="dark"] .x-reader :is(.x-language span,.x-author > div > span,.x-reader-footer,.x-partial) { color:#a1a5a9; }
[data-theme="dark"] .x-reader-footer { border-color:#2f3336; }
[data-theme="dark"] .x-language button { color:#71b7ee; }
.x-cache-missing { padding:16px 0; }
@media (max-width:599px) { .x-reader { padding:16px; } }

/* Source tabs stay available while account-only keywords load. */
.page-news > .news-scope { display:flex; justify-content:center; align-items:center; gap:24px; flex:none; padding:0 20px; border-radius:0; border-bottom:1px solid var(--nw-line); background:var(--nw-panel); }
.page-news > .news-scope button { position:relative; display:flex; align-items:center; justify-content:center; gap:7px; flex:none; min-width:0; min-height:48px; padding:0 8px; border:0; border-radius:0; background:transparent; font:inherit; font-size:15px; font-weight:600; line-height:1.3; color:var(--nw-muted); cursor:pointer; }
.page-news > .news-scope button svg { width:18px; height:18px; flex:none; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.page-news > .news-scope button .news-scope-x { width:16px; height:16px; fill:currentColor; stroke:none; }
.page-news > .news-scope button[aria-pressed="true"], html[data-theme="dark"] .page-news > .news-scope button[aria-pressed="true"] { color:var(--nw-ink); font-weight:750; background:transparent; box-shadow:none; }
.page-news > .news-scope button > span { position:relative; align-self:stretch; align-items:center; }
.page-news > .news-scope button[aria-pressed="true"] > span::after { content:""; position:absolute; bottom:0; left:0; right:0; height:3px; border-radius:3px 3px 0 0; background:var(--nw-accent); }
html[data-lang="ko"] .page-news > .news-scope button > .lang-ko,
html[data-lang="en"] .page-news > .news-scope button > .lang-en { display:flex; }
@media (hover: hover) { .page-news > .news-scope button:hover:not([aria-pressed="true"]) { color:var(--nw-ink); } }
.page-news > .news-scope button:focus-visible { outline:2px solid var(--nw-ink); outline-offset:2px; }
@media (min-width:761px) {
  .page-news { --news-brand-width:153px; --news-menu-width:44px; }
  .page-news .masthead { border-bottom-color:color-mix(in srgb, var(--line) 45%, transparent); box-shadow:none; }
  .page-news .masthead .brand { flex:0 0 var(--news-brand-width); }
  .page-news .masthead .menu-toggle { width:var(--news-menu-width); }
  /* Same 1320px header rail, menu margins (-10/-4px), brand and two shared gaps. */
  .page-news > .news-scope { justify-content:flex-start; padding-left:calc(max(var(--sp-4), (100vw - 1320px) / 2) + var(--news-menu-width) - 14px + var(--news-brand-width) + var(--sp-4) * 2); }
  .page-news > .news-scope button { padding-inline:12px; }
}
@media (max-width:599px) { .page-news > .news-scope { gap:0; padding:0 12px; } .page-news > .news-scope button { flex:1; padding:0 4px; font-size:14px; } .page-news > .news-scope button svg { width:16px; height:16px; } }
@media (max-width:599px) { html[data-lang="en"] .page-news > .news-scope button { font-size:13px; gap:5px; white-space:nowrap; } }
.page-news.is-x-feed { --nw-panel:#f7f9f9; --nw-ink:#0f1419; --nw-muted:#536471; --nw-line:#cfd9de; --nw-card:#fff; }
html[data-theme="dark"] .page-news.is-x-feed { --nw-panel:#0f1012; --nw-ink:#e7e9ea; --nw-muted:#a1a5a9; --nw-line:#2f3336; --nw-card:#000; }
.is-x-feed .news-app { overflow:auto; background:var(--nw-panel); }
.is-x-feed :is(.map-toolbar, .map-panel, .reading) { display:none !important; }
.x-feed-view { max-width:660px; margin:0 auto; padding:32px 20px calc(100px + env(safe-area-inset-bottom)); }
.x-feed-heading { margin-bottom:16px; }
.x-feed-heading h1 { margin:0 0 8px; font-size:28px; line-height:1.2; letter-spacing:-.03em; }
.x-feed-heading p { margin:0; color:var(--nw-muted); font-size:14px; line-height:1.6; }
.x-filters { display:flex; gap:8px; overflow-x:auto; padding-bottom:4px; }
.x-filters button { flex:none; min-height:44px; padding:0 16px; border:1px solid var(--nw-line); border-radius:999px; background:transparent; color:var(--nw-muted); font-size:13px; }
.x-filters button[aria-pressed="true"] { background:var(--nw-ink); border-color:var(--nw-ink); color:var(--nw-panel); font-weight:650; }
.x-feed-meta { display:flex; justify-content:space-between; align-items:center; gap:12px; margin:8px 0 12px; }
.x-feed-meta p { margin:0; color:var(--nw-muted); font-size:12px; line-height:1.6; }
.x-feed-meta button { flex:none; min-height:44px; padding:0 4px; border:0; background:transparent; color:var(--nw-link); font-size:12px; }
.x-feed-view .x-post { margin:0 0 20px; scroll-margin-top:20px; }
.x-feed-empty { padding:36px 16px; border:1px solid var(--nw-line); border-radius:16px; font-size:14px; line-height:1.7; }
.x-feed-more { display:block; width:100%; min-height:44px; border:1px solid var(--nw-line); border-radius:999px; background:transparent; color:var(--nw-link); }
.x-feed-note { color:var(--nw-muted); font-size:12px; line-height:1.7; margin:24px 0 0; }
#home-x > header { display:flex; justify-content:space-between; align-items:center; gap:12px; }
#home-x-more { flex:none; color:var(--accent); font-size:13px; text-decoration:none; padding:12px 0; }
#home-x-note { margin:0 0 16px; }
#home-x-posts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
#home-x-posts .x-post { margin:0; min-width:0; }
#home-x-posts .x-reader { height:100%; display:flex; flex-direction:column; box-sizing:border-box; }
#home-x-posts .x-language { margin:12px 0 6px; }
#home-x-posts .x-body { display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; overflow:hidden; margin:0 0 20px; font-size:14px; line-height:1.7; }
#home-x-posts .x-reader-footer { margin-top:auto; padding-top:16px; }
#home-x-posts .x-preview-open { color:var(--accent); min-height:32px; display:inline-flex; align-items:center; }
.x-reader :is(a,button):focus-visible { outline:2px solid var(--accent, #1d9bf0); outline-offset:3px; }
.x-reader button { font-family:inherit; }
@media (max-width:899px) { #home-x-posts { grid-template-columns:1fr; } }
@media (max-width:599px) { .x-feed-view { padding:20px 16px calc(100px + env(safe-area-inset-bottom)); } .x-feed-heading h1 { font-size:26px; } }
