:root {
  color-scheme: dark;
  --bg: #111210;
  --panel: #181a17;
  --panel-raised: #1d201c;
  --line: #2b2e29;
  --line-soft: #242722;
  --text: #e8e7df;
  --muted: #85877e;
  --faint: #5e625a;
  --accent: #d8a67d;
  --mint: #8cae9a;
  --coral: #d57b6d;
  --lilac: #a393bc;
  --mono: "DM Mono", monospace;
  --sans: "DM Sans", sans-serif;
  --serif: "Playfair Display", Georgia, serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.app-shell { max-width: 1600px; margin: 0 auto; padding: 0 54px; }
.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; }
.brand-mark { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid #a16c4f; color: var(--accent); font: 600 15px var(--serif); }
.brand-name { letter-spacing: .19em; font-size: 12px; font-weight: 700; }
.brand-dot { color: var(--accent); }
.topbar-center { display: flex; gap: 16px; align-items: center; color: var(--muted); font: 10px var(--mono); letter-spacing: .11em; }
.topbar-divider { width: 1px; height: 15px; background: var(--line); }
.today-label { color: #c0c1b8; }
.about-button { display: flex; align-items: center; gap: 9px; padding: 8px 0 8px 8px; border: 0; background: none; color: #c0c1b8; cursor: pointer; font-size: 12px; }
.about-icon { display: grid; place-items: center; width: 17px; height: 17px; border: 1px solid #666a61; border-radius: 50%; color: #b7b8b0; font: 11px var(--serif); }

.intro { display: flex; justify-content: space-between; align-items: end; padding: 51px 0 34px; }
.eyebrow, .section-kicker, .filter-label, .map-footer, .map-date, .map-scale, .map-legend, .side-index, .page-footer, .dialog-foot {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .12em;
}
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--accent); margin: 0 0 15px; }
.eyebrow-line { display: inline-block; width: 25px; height: 1px; background: var(--accent); }
h1 { margin: 0; font: 500 clamp(36px, 4vw, 54px)/1.08 var(--serif); letter-spacing: -.04em; }
h1 em, .about-dialog h2 em { color: var(--accent); font-weight: 500; }
.intro-description { margin: 15px 0 0; color: #999b92; font-size: 12px; }
.live-status { display: flex; align-items: center; gap: 12px; margin: 0 2px 7px 20px; }
.live-status > div { display: grid; gap: 5px; }
.live-status strong { color: #a9c5ad; font: 9px var(--mono); letter-spacing: .1em; }
.live-status > div > span { color: var(--muted); font-size: 10px; }
.status-icon { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #544032; border-radius: 50%; }
.status-icon span { width: 6px; height: 6px; background: var(--mint); border-radius: 50%; }
.status-icon.status-error span { background: var(--coral); }
.status-icon.status-loading span { background: var(--accent); animation: breathe 1.3s ease-out infinite; }
.refresh-button { display: grid; place-items: center; width: 30px; height: 30px; margin-left: 2px; border: 1px solid #343730; background: transparent; color: #a6a89d; cursor: pointer; }
.refresh-button:disabled { cursor: wait; opacity: .65; }
.refresh-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.refresh-button.refreshing svg { animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.demo-notice { min-height: 40px; display: flex; align-items: center; gap: 10px; padding: 0 13px; border: 1px solid #38322b; background: #1a1915; color: #b7b2a6; }
.notice-symbol { color: var(--accent); font-size: 13px; }
.demo-notice p { flex: 1; margin: 0; font-size: 11px; }
.demo-notice strong { color: #e0c0a2; font-weight: 600; }

.visual-board { margin-top: 18px; padding: 17px; border: 1px solid var(--line); background: var(--panel); }
.visual-board-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
.visual-board-heading h2 { margin: 5px 0 0; font: 500 20px var(--serif); letter-spacing: -.02em; }
.visual-board-heading h2 span { margin-left: 4px; color: var(--accent); font: 9px var(--mono); vertical-align: top; }
.visual-board-note { display: inline-flex; align-items: center; gap: 7px; color: #777a70; font: 8px var(--mono); letter-spacing: .09em; }
.visual-grid { display: grid; grid-template-columns: 1.55fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 8px; height: 300px; }
.visual-grid.visual-count-1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.visual-grid.visual-count-2 { grid-template-columns: 1.35fr 1fr; grid-template-rows: 1fr; }
.visual-grid.visual-count-3 .visual-card-featured { grid-row: span 2; }
.visual-card { position: relative; display: block; min-width: 0; min-height: 0; overflow: hidden; border: 1px solid #33372f; background: #20231e; color: var(--text); text-decoration: none; }
.visual-card:hover { border-color: #82715e; }
.visual-media { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(ellipse at 70% 28%, #596258 0, #303a32 28%, #1a211c 70%); }
.visual-tone-rassemblement { background: radial-gradient(ellipse at 70% 25%, #66533f 0, #39362e 30%, #1a1d19 74%); }
.visual-tone-tensions { background: radial-gradient(ellipse at 68% 25%, #68433e 0, #3a302c 32%, #1a1d19 74%); }
.visual-tone-degradations { background: radial-gradient(ellipse at 68% 25%, #574b61 0, #36313a 32%, #1a1d19 74%); }
.visual-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .88; transition: transform .35s ease, opacity .2s ease; }
.visual-card:hover .visual-image { transform: scale(1.035); opacity: 1; }
.visual-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #c3ad94; }
.visual-initials { display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid #b38c68a0; color: #ddbd9a; font: 500 19px var(--serif); letter-spacing: .04em; }
.visual-placeholder-label { color: #aaa99e; font: 8px var(--mono); letter-spacing: .12em; }
.visual-shade { position: absolute; inset: 0; background: linear-gradient(180deg, #0000 25%, #0b0d0cd9 100%); }
.visual-caption { position: absolute; inset: auto 14px 13px; display: grid; gap: 6px; }
.visual-meta { color: #d3b18f; font: 8px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.visual-title { display: -webkit-box; overflow: hidden; color: #f1efe7; font-size: 14px; font-weight: 600; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.visual-card-featured .visual-caption { inset: auto 18px 17px; }
.visual-card-featured .visual-title { font: 500 21px/1.28 var(--serif); }
.visual-link-hint { color: #c3c4ba; font: 8px var(--mono); letter-spacing: .04em; }
.visual-empty { grid-column: 1 / -1; display: grid; place-items: center; padding: 26px; border: 1px dashed #3b3e36; color: #8e9087; font-size: 11px; text-align: center; }
.live-board { margin-top: 12px; padding: 17px; border: 1px solid var(--line); background: var(--panel); }
.live-privacy-note { margin: 9px 0 13px; color: #888b82; font-size: 10px; line-height: 1.5; }
.live-stream-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.live-stream-card { min-width: 0; border: 1px solid #343730; background: #141512; }
.stream-poster { position: relative; display: grid; place-items: center; overflow: hidden; aspect-ratio: 16 / 8.6; background: radial-gradient(ellipse at 50% 20%, #46534a 0, #252d27 38%, #151814 78%); }
.live-stream-card[data-channel="bfmtv"] .stream-poster { background: radial-gradient(ellipse at 50% 20%, #51423a 0, #302a27 38%, #151814 78%); }
.live-stream-card[data-channel="cnews"] .stream-poster { background: radial-gradient(ellipse at 50% 20%, #4a3b43 0, #2c252b 38%, #151814 78%); }
.stream-poster::after { position: absolute; inset: 0; background: linear-gradient(180deg, #0000 30%, #0b0d0cc7 100%); content: ""; pointer-events: none; }
.stream-badge { position: absolute; z-index: 1; top: 12px; left: 13px; display: inline-flex; align-items: center; gap: 7px; color: #eee9df; font: 9px var(--mono); letter-spacing: .14em; }
.stream-badge > span { width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
.stream-play { position: relative; z-index: 1; display: grid; place-items: center; width: 46px; height: 46px; padding-left: 3px; border: 1px solid #d6c2a69c; border-radius: 50%; color: #e9d3b5; font-size: 13px; }
.stream-poster-hint { position: absolute; z-index: 1; bottom: 13px; left: 13px; color: #aaa99e; font: 8px var(--mono); letter-spacing: .1em; }
.stream-player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #080908; }
.stream-caption { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.stream-caption strong { color: #deddd5; font-size: 11px; }
.stream-caption > span { flex: 1; color: #777a70; font: 8px var(--mono); }
.load-stream { padding: 7px 9px; border: 1px solid #4a473e; background: #1b1c18; color: #d5b18e; font-size: 9px; cursor: pointer; }
.stream-open { flex: 0 0 auto; color: #d5b18e; font: 8px var(--mono); text-decoration: none; }
.stream-site-link { padding: 7px 9px; border: 1px solid #4a473e; }
.stream-open:hover { color: #f0c7a1; text-decoration: underline; }
.load-stream:hover:not(:disabled) { border-color: var(--accent); color: #f0c7a1; }
.load-stream:disabled { color: #808278; cursor: default; }
.social-board { margin-top: 12px; padding: 17px; border: 1px solid var(--line); background: var(--panel); }
.social-search { display: flex; align-items: center; gap: 12px; max-width: 460px; padding: 9px 11px; border: 1px solid #343730; background: #141512; }
.social-search span { flex: 0 0 auto; color: #777a70; font: 8px var(--mono); letter-spacing: .12em; }
.social-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #deddd5; font: 11px var(--sans); }
.social-privacy-note { max-width: 820px; margin: 9px 0 13px; color: #888b82; font-size: 10px; line-height: 1.5; }
.social-platform-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.social-platform-card { display: grid; align-content: start; gap: 8px; min-width: 0; min-height: 110px; padding: 12px; border: 1px solid #343730; background: #171814; color: var(--text); }
.social-platform-name { color: #e4e1d9; font: 500 14px var(--serif); }
.social-platform-detail { color: #888b82; font-size: 9px; line-height: 1.45; }
.social-platform-action { align-self: end; margin-top: auto; color: #d5b18e; font: 8px var(--mono); letter-spacing: .04em; text-decoration: none; }
.social-platform-action:hover { color: #f0c7a1; text-decoration: underline; }
.social-platform-status { color: #888b82; font-size: 9px; line-height: 1.45; }
.social-platform-status.ok { color: #a9c39d; }
.social-platform-status.configuration_required, .social-platform-status.authorization_required { color: #d5b18e; }
.social-platform-status.unavailable { color: #e08c80; }
.social-feed { margin-top: 12px; }
.social-feed-heading { margin: 0 0 8px; color: #b7b9ae; font: 9px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.social-result-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 7px; }
.social-result { display: grid; gap: 6px; padding: 10px; border: 1px solid #343730; color: #deddd5; text-decoration: none; }
.social-result:hover { border-color: #82715e; }
.social-result-image, .social-result-placeholder { display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #0c0d0c; color: #e2b3a9; font: 9px var(--mono); }
.social-result strong { font-size: 10px; line-height: 1.4; }
.social-result span { color: #888b82; font: 8px/1.4 var(--mono); }
.social-embed-form { display: flex; align-items: end; gap: 9px; margin-top: 12px; }
.social-embed-input { display: grid; gap: 6px; flex: 1; max-width: 620px; padding: 9px 11px; border: 1px solid #343730; background: #141512; }
.social-embed-input span { color: #777a70; font: 8px var(--mono); letter-spacing: .1em; }
.social-embed-input input { width: 100%; border: 0; outline: 0; background: transparent; color: #deddd5; font: 10px var(--sans); }
#add-social-post { min-height: 36px; padding: 0 12px; border: 1px solid #4a473e; background: #1b1c18; color: #d5b18e; font-size: 10px; cursor: pointer; }
#add-social-post:hover { border-color: var(--accent); color: #f0c7a1; }
.social-embed-status { margin: 7px 0 0; color: #777a70; font-size: 9px; }
.social-embed-status.error { color: #e08c80; }
.social-embed-feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 9px; margin-top: 9px; }
.social-embed-card { min-width: 0; overflow: hidden; border: 1px solid #343730; background: #10110f; }
.social-embed-card iframe { display: block; width: 100%; height: 520px; border: 0; background: #080908; }
.social-embed-facebook iframe { height: 460px; }
.social-embed-twitch iframe { height: auto; aspect-ratio: 16 / 9; }
.social-embed-card > a { display: block; padding: 8px 10px; color: #d5b18e; font: 8px var(--mono); text-decoration: none; }
.social-embed-card > a:hover { color: #f0c7a1; text-decoration: underline; }

.workspace { display: grid; grid-template-columns: 208px minmax(400px, 1fr) 310px; height: clamp(560px, calc(100vh - 150px), 760px); margin-top: 19px; border: 1px solid var(--line); background: var(--panel); }
.sidebar { display: flex; min-height: 0; flex-direction: column; overflow-y: auto; padding: 22px 17px 17px; border-right: 1px solid var(--line); }
.sidebar-heading, .map-topline, .feed-heading { display: flex; align-items: center; justify-content: space-between; }
.section-kicker { color: var(--muted); }
.side-index { color: #585c54; font-size: 8px; }
.search-field { display: flex; align-items: center; gap: 9px; margin-top: 22px; padding: 0 9px; height: 37px; border: 1px solid #343730; background: #141512; }
.search-field svg { flex: none; width: 15px; height: 15px; fill: none; stroke: #777a70; stroke-width: 1.5; }
.search-field input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 11px; }
.search-field input::placeholder { color: #777a70; }
.search-field kbd { flex: none; color: #66695f; font: 9px var(--mono); }
.filter-group { margin-top: 26px; }
.filter-label { color: #777a70; margin: 0 0 10px; font-size: 8px; }
.filter-note { margin: 8px 4px 0; color: #73766d; font-size: 9px; line-height: 1.5; }
.filter-options, .type-list { display: grid; gap: 3px; }
.filter-option, .type-option { min-height: 30px; display: flex; align-items: center; gap: 8px; padding: 0 8px; border: 0; background: none; color: #a5a79e; text-align: left; font-size: 11px; cursor: pointer; }
.filter-option { justify-content: space-between; border-left: 1px solid transparent; }
.filter-option.active { background: #22241f; border-left-color: var(--accent); color: #eee9e0; }
.option-count { color: #a8aa9f; font: 9px var(--mono); }
.type-option { color: #a0a198; }
.type-option.active { color: #e8e7df; }
.type-dot { width: 7px; height: 7px; border-radius: 50%; background: #999b90; }
.all-dot { background: var(--accent); }
.dot-amber { background: #d7a260; }
.dot-coral { background: var(--coral); }
.dot-lilac { background: var(--lilac); }
.sources-section { margin-top: 22px; }
.sources-section summary { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; cursor: pointer; list-style: none; }
.sources-section summary::-webkit-details-marker { display: none; }
.sources-section summary span { color: #62665d; font-size: 8px; }
.source-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 7px; margin: 0; padding: 0; list-style: none; }
.source-list li { display: flex; justify-content: space-between; align-items: center; gap: 4px; min-width: 0; }
.source-list a { overflow: hidden; color: #a1a398; font-size: 9px; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.source-list a:hover { color: var(--text); text-decoration: underline; }
.source-status { flex: none; min-width: 12px; color: var(--mint); text-align: right; font: 8px var(--mono); }
.source-status.indisponible { color: var(--coral); }
.sidebar-bottom { display: flex; gap: 9px; align-items: start; margin-top: auto; padding-top: 17px; border-top: 1px solid var(--line); color: #878980; }
.source-icon { color: var(--mint); font-size: 14px; }
.sidebar-bottom p { margin: 0; font-size: 10px; line-height: 1.55; }

.map-panel { min-width: 0; display: flex; flex-direction: column; padding: 22px 24px 15px; border-right: 1px solid var(--line); }
.map-topline { align-items: start; }
.map-topline h2, .feed-heading h2 { margin: 6px 0 0; font: 500 21px var(--serif); letter-spacing: -.02em; }
.map-date { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; color: #777a70; font-size: 8px; }
.mini-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.map-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; margin-top: 5px; background: #070808; }
.geographic-map { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; background: #070808; }
.map-empty { position: absolute; z-index: 1000; top: 50%; left: 50%; width: min(90%, 290px); transform: translate(-50%, -50%); padding: 12px; background: #141713e8; color: #c7c7bd; text-align: center; font: 10px/1.6 var(--mono); pointer-events: none; }
.map-empty span { color: #85877e; font: 9px/1.5 var(--sans); }
.map-tile-warning { position: absolute; z-index: 800; top: 8px; right: 8px; max-width: 240px; padding: 7px 9px; background: #17110fe8; color: #ff9ba2; font: 8px var(--mono); }
.map-panel .leaflet-container { font-family: var(--sans); }
.map-panel .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.7) contrast(.9); }
.map-panel .leaflet-control-attribution { background: #090a0bd9; color: #a4a69e; font-size: 9px; }
.map-panel .leaflet-control-attribution a { color: #d1d1c8; }
.map-panel .leaflet-control-zoom a { border-color: #343730; background: #11120ff0; color: #e0dfd7; }
.map-panel .leaflet-popup-content-wrapper, .map-panel .leaflet-popup-tip { background: #1b1e19; color: #e7e4dc; box-shadow: 0 3px 18px #0008; }
.map-panel .leaflet-popup-content { min-width: 190px; max-width: 340px; margin: 12px 14px; font-size: 11px; }
.map-popup strong { display: block; color: #ddb18b; font: 500 12px var(--mono); }
.map-popup p { margin: 6px 0 8px; color: #a3a59c; font-size: 10px; line-height: 1.45; }
.map-popup ul { display: grid; max-height: min(52vh, 430px); gap: 8px; overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 0 10px 0 17px; scrollbar-color: #76614e #20221d; scrollbar-gutter: stable; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.map-popup ul::-webkit-scrollbar { width: 7px; }
.map-popup ul::-webkit-scrollbar-track { background: #20221d; }
.map-popup ul::-webkit-scrollbar-thumb { border: 1px solid #20221d; border-radius: 6px; background: #76614e; }
.map-popup li::marker { color: #d8a67d; }
.map-popup a { color: #e7e4dc; line-height: 1.4; text-decoration-color: #7a6b58; }
.map-popup a:hover { color: #f3c299; }
.leaflet-interactive { transition: fill-opacity .2s ease, stroke-width .2s ease; }
.map-footer { display: flex; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line); color: #777a70; font-size: 8px; }

.feed-panel { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; padding: 22px 16px 0; }
.feed-heading { align-items: start; margin-bottom: 14px; }
.feed-heading h2 { font-size: 20px; }
.feed-count { display: inline-block; margin-left: 3px; color: var(--accent); font: 9px var(--mono); vertical-align: top; }
.sort-button { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #343730; background: transparent; color: #96988e; cursor: pointer; }
.sort-button svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.feed-list { display: grid; min-height: 0; flex: 1; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: #44473e transparent; scrollbar-width: thin; }
.event-card { position: relative; padding: 0 5px 0 12px; border-top: 1px solid var(--line-soft); border-left: 1px solid transparent; transition: background .18s, border-color .18s; }
.event-card:hover, .event-card.selected { background: #1d1f1b; border-left-color: var(--accent); }
.event-summary { display: block; width: 100%; padding: 13px 0 15px; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.event-summary:focus-visible { outline-offset: -1px; }
.event-meta { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-bottom: 8px; }
.event-type { display: flex; align-items: center; gap: 6px; color: #a3a59b; font: 8px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.event-type .type-dot { width: 6px; height: 6px; }
.event-time { color: #777a70; font: 8px var(--mono); white-space: nowrap; }
.event-title { margin: 0 0 7px; color: #e0e0d8; font-size: 12px; font-weight: 500; line-height: 1.4; }
.event-place { display: flex; align-items: center; gap: 5px; color: #96988f; font-size: 10px; }
.event-place svg { width: 12px; height: 12px; fill: none; stroke: #8b8e82; stroke-width: 1.4; }
.article-excerpt { display: -webkit-box; overflow: hidden; margin: 0 5px 10px 0; color: #b6b8ae; font-size: 10px; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.article-attribution { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 5px 13px 0; }
.article-publisher { color: #c5a383; font: 8px var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.event-detail { margin: 0 5px 13px 0; padding-top: 10px; border-top: 1px solid #30332d; color: #a8a99f; font-size: 10px; line-height: 1.55; }
.event-detail p { margin: 0 0 9px; }
.article-disclaimer { margin-top: 9px !important; color: #8c8e84; font-size: 9px; }
.event-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.event-tags span { padding: 3px 6px; border: 1px solid #353831; color: #9a9c91; font: 8px var(--mono); }
.event-source { display: inline-block; margin-top: 2px; color: #d0a785; font: 8px var(--mono); letter-spacing: .04em; text-decoration: none; }
.event-source:hover { color: #efc5a2; text-decoration: underline; }
.feed-footer { display: flex; align-items: center; gap: 9px; margin-top: auto; padding: 13px 2px 15px; border-top: 1px solid var(--line); color: #797c73; font: 9px var(--mono); }
.feed-footer-mark { color: var(--accent); font: 600 14px var(--serif); }
.empty-state { display: grid; justify-items: center; text-align: center; padding: 56px 10px; color: #92948a; }
.empty-state > span { color: var(--accent); font-size: 27px; }
.empty-state strong { margin-top: 9px; color: var(--text); font: 500 16px var(--serif); }
.empty-state p { max-width: 180px; font-size: 10px; line-height: 1.5; }
.empty-state button { margin-top: 6px; padding: 7px 9px; border: 1px solid #45483f; background: none; color: #c4a587; font-size: 10px; cursor: pointer; }
.page-footer { display: flex; justify-content: space-between; gap: 15px; padding: 17px 0 23px; color: #666960; font-size: 8px; }
.about-dialog { position: fixed; max-width: 430px; padding: 34px; border: 1px solid #42443b; background: #181a17; color: var(--text); box-shadow: 0 25px 90px #0009; }
.about-dialog::backdrop { background: #080908c9; backdrop-filter: blur(3px); }
.dialog-close { position: absolute; top: 12px; right: 13px; border: 0; background: none; color: #a7a89e; font-size: 22px; cursor: pointer; }
.about-dialog h2 { margin: 14px 0 18px; font: 500 32px/1.2 var(--serif); }
.about-dialog p { color: #a4a69c; font-size: 12px; line-height: 1.7; }
.dialog-rule { height: 1px; margin: 23px 0 13px; background: var(--line); }
.dialog-foot { color: #c7a383; font-size: 8px; }

@media (max-width: 1120px) {
  .app-shell { padding: 0 28px; }
  .workspace { grid-template-columns: 180px minmax(300px, 1fr) 280px; }
  .sidebar { padding-right: 13px; padding-left: 13px; }
  .map-panel { padding-right: 17px; padding-left: 17px; }
  .live-stream-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
  .app-shell { padding: 0 20px; }
  .workspace { height: auto; grid-template-columns: 180px minmax(0, 1fr); }
  .map-panel { min-height: 480px; border-right: 0; }
  .feed-panel { grid-column: 1 / -1; max-height: 700px; border-top: 1px solid var(--line); }
  .feed-list { max-height: 560px; flex: none; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }
  .feed-heading { margin-bottom: 10px; }
  .feed-footer { margin-top: 0; }
  .visual-grid { height: 250px; }
  .visual-grid.visual-count-3 { grid-template-columns: 1.35fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); }
  .visual-grid.visual-count-3 .visual-card-featured { grid-row: span 2; }
  .stream-caption { flex-wrap: wrap; }
  .stream-caption > span { min-width: 95px; }
  .social-platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .social-embed-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .app-shell { padding: 0 14px; }
  .topbar { height: 62px; }
  .topbar-center { display: none; }
  .intro { align-items: start; flex-direction: column; gap: 18px; padding: 35px 0 23px; }
  h1 { font-size: 39px; }
  .intro-description { max-width: 280px; line-height: 1.6; }
  .live-status { margin: 0; }
  .demo-notice { align-items: start; padding: 10px; }
  .demo-notice p { line-height: 1.5; }
  .visual-board { margin-top: 12px; padding: 12px; }
  .visual-board-heading { align-items: start; flex-direction: column; gap: 8px; }
  .visual-board-note { font-size: 7px; }
  .visual-grid { height: auto; grid-template-columns: 1fr !important; grid-template-rows: none !important; }
  .visual-card, .visual-grid.visual-count-3 .visual-card-featured { grid-row: auto; min-height: 180px; }
  .visual-card-featured .visual-title { font-size: 17px; }
  .visual-grid.visual-count-3 .visual-card-featured { min-height: 220px; }
  .visual-empty { min-height: 160px; }
  .live-board { padding: 12px; }
  .live-stream-grid { grid-template-columns: 1fr; }
  .stream-poster { aspect-ratio: 16 / 9; }
  .social-board { padding: 12px; }
  .social-platform-grid { grid-template-columns: 1fr; }
  .social-platform-card { min-height: 90px; }
  .social-embed-form { align-items: stretch; flex-direction: column; }
  #add-social-post { min-height: 38px; }
  .social-embed-feed { grid-template-columns: 1fr; }
  .workspace { display: flex; flex-direction: column; margin-top: 12px; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--line); padding: 16px; }
  .search-field { margin-top: 13px; }
  .filter-group { margin-top: 17px; }
  .filter-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filter-option { justify-content: center; padding: 0 4px; font-size: 10px; }
  .filter-option .option-count { display: none; }
  .type-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sources-section { margin-top: 17px; }
  .sidebar-bottom { margin-top: 15px; }
  .map-panel { min-height: 435px; padding: 18px 15px 13px; border-bottom: 1px solid var(--line); }
  .map-stage { min-height: 330px; }
  .feed-panel { max-height: 620px; padding: 17px 14px 0; }
  .feed-list { max-height: 500px; grid-template-columns: 1fr; }
  .page-footer { flex-wrap: wrap; line-height: 1.6; }
  .page-footer span:nth-child(2) { order: 3; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
