/* General visual system for the homepage and /dashboard/each.
   Tokens follow monitor/static/monitor/general.css. Loaded after home-v20.css,
   whose layout and interaction rules stay in force underneath. */

body.pw-v20.pw-general {
  --blue: #4378ff;
  --link: #3361e0;
  --ink: #18212d;
  --muted: #687589;
  --line: #e6eaf1;
  --surface: #fff;
  --panel-border: #dce4fc;
  --tint: #edf2ff;
  --page-bg: #f0f2f5;
  --amber: #d97706;
  --rail-ink: #1c1e21;
  --nav-width: 48px;
  --bg: #fff;
  --card: #fff;
  --border: #e6eaf1;
  --text: #18212d;
  --accent: #4378ff;
  --up: #0a8a5c;
  --down: #d1342f;
  margin: 0 0 0 var(--nav-width);
  background: var(--surface);
  color: var(--ink);
  font: 14px/1.45 'DM Sans', system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}
body.pw-v20.pw-general[data-pw-nav="expanded"] { --nav-width: 224px; }
body.pw-v20.pw-general :focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
body.pw-v20.pw-general .pw-anchor { display: block; height: 0; scroll-margin-top: 12px; }
body.pw-v20.pw-general #pw-trending, body.pw-v20.pw-general #pw-activity-head, body.pw-v20.pw-general #pw-feed-head { scroll-margin-top: 12px; }

/* ── Left rail ─────────────────────────────────────────── */
.pw-rail { position: fixed; inset: 0 auto 0 0; z-index: 40; width: var(--nav-width); display: flex; flex-direction: column; padding: 6px 4px; border-right: 1px solid var(--line); background: var(--surface); transition: width .18s ease; }
.pw-rail nav { margin-top: 12px; display: grid; gap: 2px; }
.pw-rail a, .pw-rail-toggle { display: flex; align-items: center; gap: 13px; width: 100%; height: 40px; padding: 9px; border: 0; border-radius: 8px; background: transparent; color: var(--rail-ink); font: inherit; font-size: 13px; text-decoration: none; white-space: nowrap; cursor: pointer; }
.pw-rail a:hover, .pw-rail-toggle:hover { background: var(--tint); }
.pw-rail a[aria-current] { background: var(--tint); color: var(--rail-ink); }
.pw-rail-toggle { font-size: 16px; }
.pw-rail-icon { width: 20px; height: 20px; flex: 0 0 20px; color: var(--rail-ink); }
.pw-rail-letter { width: 20px; flex: 0 0 20px; text-align: center; font-size: 18px; font-weight: 600; color: var(--rail-ink); }
.pw-rail-label { display: none; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
body[data-pw-nav="expanded"] .pw-rail-label, body[data-pw-nav="mobile-open"] .pw-rail-label { display: inline; }
.pw-rail-backdrop { position: fixed; inset: 0; z-index: 39; border: 0; background: #18212d60; }
.pw-rail-backdrop[hidden] { display: none; }
.pw-mobile-toggle { display: none; }

/* ── Masthead ──────────────────────────────────────────── */
body.pw-v20.pw-general .app-shell { max-width: none !important; width: 100%; min-height: 100vh; padding: 0 0 24px; container-type: normal; background: var(--page-bg); }
body.pw-v20.pw-general .topbar,
body.pw-v20.pw-general .topbar.tz-hitch {
  display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 10px;
  max-width: 1440px; height: 48.5px; margin: 0 auto; padding: 0 36px;
  background: var(--surface); border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  /* full-bleed white band while content keeps General's 1440px measure */
  box-shadow: 0 0 0 100vmax var(--surface), 0 1px 0 100vmax var(--line); clip-path: inset(0 -100vmax -1px);
}
body.pw-v20.pw-general .topbar-title-row, body.pw-v20.pw-general .topbar-controls { display: contents; }
body.pw-v20.pw-general .pw-mobile-toggle { order: 0; }
body.pw-v20.pw-general .topbar h1.app-name { order: 1; flex: 0 0 auto !important; display: flex; align-items: center; gap: 6px; margin: 0 auto 0 0; color: var(--ink) !important; }
body.pw-v20.pw-general .pw-setting-window { order: 3; }
body.pw-v20.pw-general .topbar-controls .window-toggle:not(.locale-toggle) { order: 4; }
body.pw-v20.pw-general .pw-setting-clock { order: 5; }
body.pw-v20.pw-general .topbar .tz-pill { order: 6; }
body.pw-v20.pw-general .pw-setting-language { order: 7; }
body.pw-v20.pw-general .topbar-title-row .locale-toggle { order: 8; }
body.pw-v20.pw-general .topbar-title-row .app-name .app-mark { flex: 0 0 24px; width: 24px; height: 29px; margin: 0; color: var(--ink) !important; }
body.pw-v20.pw-general .topbar h1.app-name .pw-wordmark { font: italic 500 15px/1 'DM Sans', system-ui, sans-serif; letter-spacing: 0; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
body.pw-v20.pw-general .topbar h1.app-name .pw-wm-pushin { letter-spacing: 0.06em; }
body.pw-v20.pw-general .topbar h1.app-name .pw-wm-weight { font-weight: 800; }
.pw-setting-label { color: var(--muted); font-size: 10px; white-space: nowrap; }
.pw-setting-label + * { margin-left: -5px !important; }

/* segmented controls (window, language) */
body.pw-v20.pw-general .topbar .window-toggle,
body.pw-v20.pw-general .topbar-controls .window-toggle:not(.locale-toggle),
body.pw-v20.pw-general .topbar-title-row .locale-toggle {
  display: flex; flex: 0 0 auto; width: auto; gap: 0; margin: 0 6px 0 0; padding: 2px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 7px; overflow: visible;
}
body.pw-v20.pw-general .topbar .window-toggle button,
body.pw-v20.pw-general .topbar .window-toggle:not(.locale-toggle) button,
body.pw-v20.pw-general .topbar-title-row .locale-toggle button,
body.pw-v20.pw-general [data-pw-locale-btn] {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: auto; height: 22px;
  padding: 0 8px; border: 0; border-radius: 4px; background: transparent; color: var(--ink);
  font: 500 11px/1 'DM Sans', system-ui, sans-serif;
}
body.pw-v20.pw-general .topbar .window-toggle button:hover { background: #f4f6fb; }
body.pw-v20.pw-general .topbar .window-toggle button.is-active,
body.pw-v20.pw-general .topbar .window-toggle button[aria-pressed="true"] { background: var(--tint); color: var(--blue); }

/* clock: local ⇄ California, as a two-segment control */
body.pw-v20.pw-general .topbar .tz-pill,
body.pw-v20.pw-general.desktop-shell .tz-pill {
  width: auto; height: 28px; margin: 0 6px 0 0; padding: 2px; gap: 0; grid-template-columns: auto 0 auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 7px; color: var(--ink); font-size: 11px;
}
body.pw-v20.pw-general .topbar .tz-pill:hover, body.pw-v20.pw-general .topbar .tz-pill:focus { border-color: var(--panel-border); }
body.pw-v20.pw-general .topbar .tz-pill .tz-choice { height: 22px; padding: 0 8px; border-radius: 4px; color: var(--muted); }
body.pw-v20.pw-general .topbar .tz-pill .tz-choice.is-selected { background: var(--tint); color: var(--blue); }
body.pw-v20.pw-general .topbar .tz-pill .tz-choice.is-selected .tz-zone { color: var(--blue); }
body.pw-v20.pw-general .topbar .tz-pill .tz-zone.is-ca { color: var(--muted); }
body.pw-v20.pw-general .topbar .tz-pill .tz-divider { width: 0; }
body.pw-v20.pw-general .topbar .tz-pill .tz-time { font-weight: 650; }
body.pw-v20.pw-general .tz-pill [data-tz-local-label] { text-transform: capitalize; }

/* ── Page sections ────────────────────────────────────── */
body.pw-v20.pw-general .app-shell > :not(.topbar):not(.site-footer) { width: calc(100% - 72px); max-width: 1368px; margin-left: auto; margin-right: auto; }
body.pw-v20.pw-general .pw-panel-head { display: flex; align-items: center; gap: 7px; min-height: 38px; scroll-margin-top: 12px; }
body.pw-v20.pw-general .pw-panel-head h2,
body.pw-v20.pw-general .pw-panel-head h3,
body.pw-v20.pw-general.desktop-shell .feed-strip .pw-panel-head h3 { display: flex; align-items: center; gap: 7px; margin: 0; color: var(--ink); font-size: 18px; font-weight: 650; line-height: 24px; letter-spacing: 0; text-transform: none; white-space: nowrap; }
body.pw-v20.pw-general .pw-panel-icon { width: 20px; height: 20px; flex: 0 0 20px; color: var(--blue); }

.pw-panel, body.pw-v20.pw-general .pulse-bar-wrap, body.pw-v20.pw-general .headline-strip, body.pw-v20.pw-general .feed-strip {
  border: 1px solid var(--panel-border); border-radius: 18px; background: var(--surface); box-shadow: 0 2px 10px #5474b408;
}

/* trending chips */
body.pw-v20.pw-general .pulse-bar-wrap { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; margin-top: 14px; padding: 4px 14px; }
body.pw-v20.pw-general .pulse-bar-wrap .pulse-state { grid-column: 1; margin: 0 0 6px; }
body.pw-v20.pw-general .pulse-bar { gap: 6px; padding: 8px 0 !important; scrollbar-width: thin; scrollbar-color: #d5dceb transparent; }
body.pw-v20.pw-general.desktop-shell .pulse-bar::-webkit-scrollbar-track { background: transparent; }
body.pw-v20.pw-general.desktop-shell .pulse-bar::-webkit-scrollbar-thumb { background: #d5dceb; }
body.pw-v20.pw-general .pulse-chip,
body.pw-v20.pw-general.desktop-shell .pulse-chip {
  gap: 6px; padding: 5px 10px 5px 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  color: var(--ink); font-size: 12px; line-height: 1;
}
body.pw-v20.pw-general .pulse-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--chip-color, var(--blue)); flex: 0 0 8px; }
body.pw-v20.pw-general .pulse-chip:hover { border-color: var(--panel-border); background: #fafbff; }
body.pw-v20.pw-general .pulse-chip-name, body.pw-v20.pw-general .pulse-chip .name { color: var(--ink); font-weight: 550; }
body.pw-v20.pw-general .pulse-chip .delta { font-size: 11px; font-weight: 650; }
body.pw-v20.pw-general .pulse-chip .delta.flat { color: var(--muted); }
body.pw-v20.pw-general .pulse-chip[aria-pressed="true"] { background: var(--tint); border-color: var(--blue); color: var(--blue); }
body.pw-v20.pw-general .pulse-chip[aria-pressed="true"] .pulse-chip-name { color: var(--blue); }
body.pw-v20.pw-general .pulse-chip[aria-pressed="true"] .delta.up,
body.pw-v20.pw-general .pulse-chip[aria-pressed="true"] .delta.new { color: var(--up); }
body.pw-v20.pw-general .pulse-chip[aria-pressed="true"] .delta.down { color: var(--down); }
body.pw-v20.pw-general .pulse-chip[aria-pressed="true"] .delta.flat { color: var(--muted); }

/* filters */
body.pw-v20.pw-general .filter-bar { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 0 2px; background: transparent; border: 0; border-radius: 0; }
body.pw-v20.pw-general .pw-filter-label { flex: 0 0 auto; }
body.pw-v20.pw-general .filter-bar-scroller { flex: 1 1 auto; min-width: 0; gap: 6px; padding: 2px; }
body.pw-v20.pw-general .filter-pill,
body.pw-v20.pw-general.desktop-shell .filter-pill {
  gap: 6px; padding: 5px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px;
  color: var(--ink); font-size: 12px; font-weight: 500;
}
body.pw-v20.pw-general .filter-pill:hover { background: #fafbff; border-color: var(--panel-border); }
body.pw-v20.pw-general .filter-pill:focus, body.pw-v20.pw-general .filter-pill.is-open { border-color: var(--blue); }
body.pw-v20.pw-general .filter-pill.is-open { background: var(--tint); color: var(--blue); }
body.pw-v20.pw-general .filter-pill .status-dot.is-default { border-color: #a9b3c2; }
body.pw-v20.pw-general .filter-pill .status-dot.is-changed { background: var(--blue); border-color: var(--blue); }
body.pw-v20.pw-general .filter-dropdown {
  background: var(--surface); border: 1px solid var(--panel-border); border-radius: 14px; padding: 12px 14px 14px;
  box-shadow: 0 10px 35px #18212d20; color: var(--ink);
}
body.pw-v20.pw-general .filter-dropdown label { color: var(--ink); }
body.pw-v20.pw-general .filter-dropdown input[type="checkbox"] { accent-color: var(--blue); }
body.pw-v20.pw-general .filter-dropdown .dd-toolbar { border-bottom-color: var(--line); }
body.pw-v20.pw-general .filter-dropdown .dd-toolbar button { background: var(--surface); border: 1px solid var(--line); border-radius: 7px; color: var(--ink); }
body.pw-v20.pw-general .filter-dropdown .dd-toolbar button:hover { background: var(--tint); color: var(--blue); }
body.pw-v20.pw-general .dd-segment { background: var(--surface); border: 1px solid var(--line); border-radius: 7px; }
body.pw-v20.pw-general .dd-segment button { color: var(--muted); border-radius: 4px; }
body.pw-v20.pw-general .dd-segment button.is-active { background: var(--tint); color: var(--blue); }
body.pw-v20.pw-general .filter-dropdown .dd-subtitle { color: var(--muted); font-size: 11px; font-weight: 600; margin: 14px 0 4px; text-transform: capitalize; }
body.pw-v20.pw-general .filter-dropdown .dd-subtitle.pw-dd-header { margin-top: 0; }
body.pw-v20.pw-general .filter-dropdown .tone-positive, body.pw-v20.pw-general .feed-signals .tone-positive { color: var(--up); }
body.pw-v20.pw-general .filter-dropdown .tone-negative, body.pw-v20.pw-general .feed-signals .tone-negative { color: var(--down); }
body.pw-v20.pw-general .filter-dropdown .tone-mixed, body.pw-v20.pw-general .feed-signals .tone-mixed { color: var(--amber); }
body.pw-v20.pw-general .filter-dropdown .role-official, body.pw-v20.pw-general .feed-row .account-role.role-official { color: var(--amber); }
body.pw-v20.pw-general .filter-dropdown .role-staff, body.pw-v20.pw-general .feed-row .account-role.role-staff { color: #6d4fd1; }
body.pw-v20.pw-general .filter-dropdown .role-community, body.pw-v20.pw-general .feed-row .account-role.role-community { color: #1d8a4e; }
/* an option without a glyph keeps the glyph's space, so option text aligns */
body.pw-v20.pw-general .filter-dropdown .filter-option-icon:empty,
body.pw-v20.pw-general .filter-dropdown [data-pw-semantic-icon]:empty { display: inline-flex !important; flex: 0 0 16px; width: 16px; height: 16px; visibility: hidden; }

/* ── Main grid: summary | chart, then the feed ──────────── */
body.pw-v20.pw-general .desktop-grid {
  display: grid !important; grid-template-columns: minmax(300px, .91fr) minmax(0, 2.09fr) !important;
  grid-template-areas: "summary chart" "feed feed"; gap: 20px; margin-top: 16px; align-items: stretch;
}
body.pw-v20.pw-general .desktop-col-main, body.pw-v20.pw-general .desktop-col-feed { display: contents !important; }
body.pw-v20.pw-general .pw-anchor { grid-area: summary; align-self: start; }

/* chart panel */
.pw-panel.pw-activity { grid-area: chart; min-width: 0; padding: 0 14px 12px; }
body.pw-v20.pw-general .pw-activity .home-chart-wrap { margin: 0; padding: 4px 0 0 !important; min-height: 0; background: transparent; border: 0; border-radius: 0; overflow: visible; }
body.pw-v20.pw-general .pw-canvas-box { position: relative; height: 300px; }
body.pw-v20.pw-general .pw-canvas-box canvas.home-chart { width: 100% !important; height: 100% !important; touch-action: pan-y; }
body.pw-v20.pw-general .legend { gap: 6px 12px; flex-wrap: wrap; margin: 10px 0 0 !important; overflow: visible; color: var(--muted); font-size: 11px; }
body.pw-v20.pw-general .legend i { width: 8px; height: 8px; }
body.pw-v20.pw-general .chart-state, body.pw-v20.pw-general .pulse-state { color: var(--muted); font-size: 11px; }

/* chart legend: swatch (the brand's line pattern ending in its beacon shape), logo, name */
body.pw-v20.pw-general .legend [data-pw-chart-brand] { display: inline-flex; align-items: center; gap: 5px; padding: 1px 3px; border: 0; border-radius: 6px; background: none; color: inherit; font: inherit; cursor: default; transition: opacity .15s ease; }
body.pw-v20.pw-general .legend [data-pw-chart-brand]:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
body.pw-v20.pw-general .legend .pw-legend-logo { width: 14px; height: 14px; flex: 0 0 14px; border-radius: 3px; object-fit: contain; }
body.pw-v20.pw-general .legend .pw-swatch { flex: 0 0 26px; overflow: visible; }
body.pw-v20.pw-general .legend .pw-swatch-ping { opacity: 0; transform-box: fill-box; transform-origin: center; }
body.pw-v20.pw-general .legend .pw-legend-dim { opacity: .56; }
body.pw-v20.pw-general .legend .pw-legend-focus { color: var(--ink); font-weight: 650; }
body.pw-v20.pw-general .legend .pw-legend-focus .pw-swatch-ping {
  animation: pw-ping 2.25s cubic-bezier(0, 0, .58, 1) infinite; animation-delay: var(--pw-ping-delay, 0ms);
}
@keyframes pw-ping { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(4); opacity: 0; } }

/* trend summary as an editorial panel (General's Chatter treatment) */
body.pw-v20.pw-general .headline-strip,
body.pw-v20.pw-general.desktop-shell .headline-strip,
body.pw-v20.pw-general .desktop-grid .headline-strip {
  grid-area: summary; margin: 0; padding: 0 16px 16px; background: var(--surface); border-color: var(--panel-border);
  min-width: 0; max-height: 440px; overflow: auto; scrollbar-width: thin;
}
body.pw-v20.pw-general .headline-strip .kicker {
  position: sticky; top: 0; z-index: 1; min-height: 38px; margin: 0 -16px 2px; padding: 0 16px; gap: 7px;
  background: var(--surface); color: var(--ink); font-size: 18px; font-weight: 650; letter-spacing: 0; text-transform: none;
}
body.pw-v20.pw-general .headline-strip .pulse { width: 9px; height: 9px; background: var(--blue); box-shadow: 0 0 0 3px var(--tint); }
body.pw-v20.pw-general .headline-strip .headline-state { color: var(--muted); font-size: 10px; font-weight: 500; }
body.pw-v20.pw-general .headline-strip[data-pw-state="stale"] .headline-state, body.pw-v20.pw-general .headline-item[data-pw-state="stale"] .headline-item-state { color: var(--muted); }
body.pw-v20.pw-general .headline-selection { color: var(--muted); font-size: 11px; margin: 0 0 4px; }
body.pw-v20.pw-general .headline-items { gap: 0; }
body.pw-v20.pw-general .headline-item { padding: 12px 0; border-top: 1px solid var(--line); }
body.pw-v20.pw-general .headline-item + .headline-item { padding-top: 12px; border-top-color: var(--line); }
body.pw-v20.pw-general .headline-item-meta { font-size: 11px; margin-bottom: 7px; }
body.pw-v20.pw-general .headline-item-meta .brand, body.pw-v20.pw-general .headline-strip .body .brand { padding: 1px 7px; border-radius: 20px; background: var(--tint); color: #446aca; font-weight: 600; }
body.pw-v20.pw-general .headline-item-meta a.brand:hover, body.pw-v20.pw-general .headline-item-meta a.brand:focus-visible { color: #2f55b8; }
body.pw-v20.pw-general .headline-item-state { color: var(--muted); font-size: 10px; }
body.pw-v20.pw-general .headline-item[data-pw-state="data_quality_unavailable"] .headline-item-state, body.pw-v20.pw-general .headline-item[data-pw-state="unavailable"] .headline-item-state { color: var(--down); }
body.pw-v20.pw-general .headline-item-title,
body.pw-v20.pw-general.desktop-shell .headline-item-title {
  color: var(--ink); font: 550 23px/1.14 'Newsreader', Georgia, 'Songti SC', 'STSong', 'Noto Serif CJK SC', 'Hiragino Mincho ProN', serif;
  letter-spacing: -.2px;
}
body.pw-v20.pw-general .headline-disclosure { margin-left: 6px; color: var(--link); font: 600 12px/1 'DM Sans', system-ui, sans-serif; text-decoration: none; vertical-align: 3px; }
body.pw-v20.pw-general .headline-disclosure:hover, body.pw-v20.pw-general .headline-disclosure:focus-visible { color: var(--blue); text-decoration: underline; }
body.pw-v20.pw-general .headline-item-secondary, body.pw-v20.pw-general .headline-empty, body.pw-v20.pw-general .headline-observations { color: #3d4a5c; font-size: 13px; line-height: 1.6; }
body.pw-v20.pw-general .headline-strip .body { color: var(--ink); }
body.pw-v20.pw-general .headline-strip .body .delta { color: var(--up); }
body.pw-v20.pw-general .headline-strip .body .voice { color: var(--muted); }
body.pw-v20.pw-general .headline-status { color: var(--muted); }

/* feed as a grid of General cards */
body.pw-v20.pw-general .feed-strip,
body.pw-v20.pw-general.desktop-shell .feed-strip,
body.pw-v20.pw-general .desktop-grid .feed-strip {
  grid-area: feed; margin: 0; padding: 0 14px 12px; height: min(78vh, 760px); max-height: none; min-height: 420px;
}
body.pw-v20.pw-general .feed-strip .pw-panel-head { flex: 0 0 auto; min-width: 0; }
/* The feed title carries the frozen slot's local and Beijing times; let it wrap. */
body.pw-v20.pw-general .feed-strip .pw-panel-head h3,
body.pw-v20.pw-general.desktop-shell .feed-strip .pw-panel-head h3 { flex: 0 1 auto; min-width: 0; white-space: normal; overflow-wrap: anywhere; }
body.pw-v20.pw-general .feed-scroll { padding-right: 4px; scrollbar-color: #d5dceb transparent; }
body.pw-v20.pw-general .feed-scroll::-webkit-scrollbar-thumb { background: #d5dceb; }
body.pw-v20.pw-general .feed-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; align-items: start; padding: 2px 0 4px; }
body.pw-v20.pw-general .feed-row, body.pw-v20.pw-general .feed-rows > * { margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); }
body.pw-v20.pw-general .feed-row:first-of-type { padding-top: 0; border-top: 1px solid var(--line); }
body.pw-v20.pw-general .feed-row:hover { border-color: var(--panel-border); box-shadow: 0 2px 10px #5474b412; }
body.pw-v20.pw-general .feed-row-shell { gap: 8px; padding: 10px 10px 9px; border-radius: 11px; }
body.pw-v20.pw-general .feed-row-shell.tint-positive { background: #0a8a5c0f; }
body.pw-v20.pw-general .feed-row-shell.tint-negative { background: #d1342f0f; }
body.pw-v20.pw-general .feed-row-shell.tint-mixed { background: #8b5cf60f; }
body.pw-v20.pw-general .feed-row-shell.tint-pos-neg { background: linear-gradient(90deg, #0a8a5c10, #d1342f10); }
body.pw-v20.pw-general .feed-row-shell.tint-pos-mixed { background: linear-gradient(90deg, #0a8a5c10, #8b5cf610); }
body.pw-v20.pw-general .feed-row-shell.tint-neg-mixed { background: linear-gradient(90deg, #d1342f10, #8b5cf610); }
body.pw-v20.pw-general .feed-row-shell.tint-pos-neg-mixed { background: linear-gradient(90deg, #0a8a5c10, #8b5cf610 50%, #d1342f10); }
body.pw-v20.pw-general .feed-row .head { font-size: 11px; }
body.pw-v20.pw-general .feed-row .handle, body.pw-v20.pw-general.desktop-shell .feed-row .handle, body.pw-v20.pw-general .feed-strip .feed-handle-link { color: var(--ink); font-size: 13px; font-weight: 650; }
body.pw-v20.pw-general .feed-strip .feed-handle-link:hover { color: var(--link); }
body.pw-v20.pw-general .feed-row .meta, body.pw-v20.pw-general .feed-row .meta .ts-abs { color: var(--muted); font-size: 10px; }
body.pw-v20.pw-general .feed-row .text, body.pw-v20.pw-general.desktop-shell .feed-row .text { color: var(--ink); font-size: 12.5px; line-height: 1.45; margin-top: 3px; }
body.pw-v20.pw-general .feed-row .text:hover { background: #f4f6fb; }
body.pw-v20.pw-general .feed-row .text .text-layer-tag, body.pw-v20.pw-general .feed-row .text .post-language-tag { color: #446aca; background: var(--tint); padding: 2px 5px; border-radius: 20px; font-size: 9px; }
body.pw-v20.pw-general .feed-row .text .post-language-tag.enrichment-status-pending { color: var(--muted); background: #f1f3f6; }
body.pw-v20.pw-general .feed-row .follower-lead { --follower-color: #9aa5b5; }
body.pw-v20.pw-general .feed-row .follower-bin-1k-10k { --follower-color: #687589; }
body.pw-v20.pw-general .feed-row .follower-bin-10k-50k { --follower-color: #3d4a5c; }
body.pw-v20.pw-general .feed-row .follower-bin-50k-plus { --follower-color: #18212d; }
body.pw-v20.pw-general .feed-row .follower-count { color: var(--muted); font-size: 9px; }
/* Flags on white cards: a hairline that follows the painted flag keeps white-field
   flags (Japan and others) visible; the 16:9 sprite drawing is narrowed to 3:2. */
body.pw-v20.pw-general .feed-row .account-country-flag,
body.pw-v20.pw-general svg.country-flag {
  filter: drop-shadow(0.5px 0 0 rgba(24, 33, 45, .22)) drop-shadow(-0.5px 0 0 rgba(24, 33, 45, .22))
          drop-shadow(0 0.5px 0 rgba(24, 33, 45, .22)) drop-shadow(0 -0.5px 0 rgba(24, 33, 45, .22));
  opacity: 1;
  transform: scaleX(.844);
}
body.pw-v20.pw-general .feed-row .account-geography-connector, body.pw-v20.pw-general .feed-row .geography-hierarchy .account-geography-elbow { border-color: #b8c1cf; }
body.pw-v20.pw-general .feed-row .account-geography .account-geography-text { color: var(--muted); }
body.pw-v20.pw-general .feed-row .engagement { color: var(--muted); font-size: 10px; }
body.pw-v20.pw-general .feed-row .engagement .likes .engagement-icon { color: var(--down); }
body.pw-v20.pw-general .feed-row .engagement .feed-x-link { color: var(--ink); }
body.pw-v20.pw-general .feed-row .engagement .feed-x-link:hover, body.pw-v20.pw-general .feed-row .engagement .feed-x-link:focus-visible { color: var(--blue); background: var(--tint); outline: 0; }
body.pw-v20.pw-general .feed-row .pw-inspection-trigger:hover, body.pw-v20.pw-general .feed-row .pw-inspection-trigger:focus-visible { outline: 1px solid var(--panel-border); background: var(--tint); }
body.pw-v20.pw-general .feed-signals .classification-state-label, body.pw-v20.pw-general .feed-signals .nationalism-region { color: var(--muted); }
body.pw-v20.pw-general .feed-row .official-job-link { border-color: var(--panel-border); color: var(--link); }
body.pw-v20.pw-general .feed-scroll-status { color: var(--muted); font-size: 11px; }
/* brands on each post: logos above the sentiment signals */
body.pw-v20.pw-general .feed-signals .pw-post-brands { display: flex; flex-wrap: wrap; gap: 3px; align-items: center; }
body.pw-v20.pw-general .pw-post-brand { display: inline-flex; align-items: center; justify-content: center; padding: 1px; border: 0; background: none; border-radius: 4px; cursor: default; line-height: 0; }
body.pw-v20.pw-general .pw-post-brand img { width: 14px; height: 14px; border-radius: 3px; object-fit: contain; }
body.pw-v20.pw-general .pw-post-brand span { font-size: 10px; line-height: 14px; color: var(--muted); }
body.pw-v20.pw-general .pw-post-brand:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }

/* explanation popovers, in General's drawer style */
body.pw-v20.pw-general .pw-feed-inspection-popover { padding: 9px 11px; border: 1px solid var(--panel-border); border-radius: 10px; color: var(--ink); background: var(--surface); box-shadow: 0 10px 35px #18212d24; font-weight: 550; }

body.pw-v20.pw-general .site-footer { max-width: 1368px; margin: 22px auto 0; padding: 0 36px; color: var(--muted); font-size: 11px; text-align: center; }

/* /dashboard/each: the per-brand category chart in the same white panel; tabs as pills */
body.pw-v20.pw-general[data-pw-page="each"] .pw-each-panel { padding: 12px 14px; }
body.pw-v20.pw-general[data-pw-page="each"] .each-chart-wrap { margin: 0; }
body.pw-v20.pw-general[data-pw-page="each"] .each-tabs { gap: 6px; padding: 0 0 10px; flex-wrap: wrap; overflow: visible; }
body.pw-v20.pw-general[data-pw-page="each"] .each-tab { bottom: 0; padding: 6px 12px; border: 1px solid var(--line); border-radius: 20px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 500; }
body.pw-v20.pw-general[data-pw-page="each"] .each-tab:hover { background: var(--tint); }
body.pw-v20.pw-general[data-pw-page="each"] .each-tab.is-active { background: var(--tint); border-color: #c9d6fb; color: var(--blue); font-weight: 650; }
body.pw-v20.pw-general[data-pw-page="each"] .each-tab:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
body.pw-v20.pw-general[data-pw-page="each"] .each-chart-panel { padding: 0; background: transparent; border: 0; border-radius: 0; overflow: visible; }
body.pw-v20.pw-general[data-pw-page="each"] .each-chart-mode { color: var(--ink); font-size: 12px; }
body.pw-v20.pw-general[data-pw-page="each"] .each-chart-mode input { accent-color: var(--blue); }
body.pw-v20.pw-general[data-pw-page="each"] .each-chart-panel .legend i { border-color: #0000001a; }
body.pw-v20.pw-general[data-pw-page="each"] .headline-voices .voice-chip { background: var(--tint); color: #446aca; }
body.pw-v20.pw-general[data-pw-page="each"] .headline-voices .voice-chip:hover { background: #dfe8ff; color: var(--blue); }

/* ── Responsive (General breakpoints) ─────────────────── */
@media (max-width: 1320px) {
  body.pw-v20.pw-general .topbar, body.pw-v20.pw-general .topbar.tz-hitch { padding: 0 24px; }
  body.pw-v20.pw-general .app-shell > :not(.topbar):not(.site-footer) { width: calc(100% - 48px); }
}
@media (max-width: 1160px) {
  .pw-setting-label:not(.pw-filter-label) { display: none; }
  .pw-setting-label + * { margin-left: 0 !important; }
}
@media (max-width: 960px) {
  body.pw-v20.pw-general .desktop-grid { grid-template-columns: minmax(0, 1fr) !important; grid-template-areas: "chart" "summary" "feed"; }
  body.pw-v20.pw-general .headline-strip { max-height: none; }
  body.pw-v20.pw-general .pw-canvas-box { height: 240px; }
}
@media (max-width: 700px) {
  body.pw-v20.pw-general, body.pw-v20.pw-general[data-pw-nav="expanded"] { --nav-width: 0px; }
  .pw-rail { width: 224px; transform: translateX(-100%); visibility: hidden; transition: transform .18s ease, visibility .18s; }
  /* Visible at once on open so focus can move into the drawer; hidden only after it slides out. */
  body[data-pw-nav="mobile-open"] .pw-rail { transform: none; visibility: visible; transition: transform .18s ease, visibility 0s; }
  .pw-rail .pw-rail-label { display: inline; }
  body.pw-v20.pw-general .pw-mobile-toggle { display: block; padding: 2px 4px; border: 0; background: transparent; color: var(--rail-ink); font-size: 20px; line-height: 1; }
  body.pw-v20.pw-general .topbar, body.pw-v20.pw-general .topbar.tz-hitch { flex-wrap: wrap; height: auto; padding: 8px 14px; row-gap: 8px; }
  body.pw-v20.pw-general .topbar-title-row .locale-toggle { order: 2 !important; margin-right: 0; }
  body.pw-v20.pw-general .topbar-controls .window-toggle:not(.locale-toggle) { flex: 1 1 auto; justify-content: space-between; }
  body.pw-v20.pw-general .topbar .window-toggle button { padding: 0 7px; }
  body.pw-v20.pw-general .app-shell > :not(.topbar):not(.site-footer) { width: calc(100% - 28px); }
  body.pw-v20.pw-general .pulse-bar-wrap { grid-template-columns: minmax(0, 1fr); padding: 2px 12px 4px; }
  /* touch: the chips scroll without a visible scrollbar */
  body.pw-v20.pw-general .pulse-bar { scrollbar-width: none; }
  body.pw-v20.pw-general .pulse-bar-wrap .pulse-state { grid-column: 1; }
  body.pw-v20.pw-general .filter-bar { flex-direction: column; align-items: stretch; gap: 6px; }
  body.pw-v20.pw-general .desktop-grid { gap: 14px; }
  .pw-panel.pw-activity { padding: 0 10px 10px; }
  body.pw-v20.pw-general .pw-canvas-box { height: 200px; }
  body.pw-v20.pw-general .headline-item-title, body.pw-v20.pw-general.desktop-shell .headline-item-title { font-size: 21px; }
  body.pw-v20.pw-general .feed-strip, body.pw-v20.pw-general.desktop-shell .feed-strip, body.pw-v20.pw-general .desktop-grid .feed-strip { height: 78vh; padding: 0 10px 10px; }
  body.pw-v20.pw-general .feed-rows { grid-template-columns: minmax(0, 1fr); }
  body.pw-v20.pw-general .site-footer { padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .pw-rail { transition: none; }
  body.pw-v20.pw-general .legend [data-pw-chart-brand] { transition: none; }
  body.pw-v20.pw-general .legend .pw-legend-focus .pw-swatch-ping { animation: none; opacity: 0; }
}
