:root { color-scheme: dark; font-family: system-ui, sans-serif; background: #16181b; color: #e1e3e6; font-size: 14px; }
* { box-sizing: border-box; }
body { margin: 0; height: 100vh; display: flex; flex-direction: column; }
button, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.app-header { min-height: 54px; padding: 14px 22px; border-bottom: 1px solid #34383e; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #1b1e22; }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: 16px; font-weight: 650; }
h1 span { color: #9da5af; font-weight: 400; margin-left: 5px; }
.local-label, .metadata, .list-hint { color: #9da5af; font-size: 12px; }
.workbench { display: grid; grid-template-columns: 320px minmax(0, 1fr); flex: 1; min-height: 0; }
.news-panel { border-right: 1px solid #34383e; overflow-y: auto; background: #1b1e22; }
.panel-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 18px 12px; }
.panel-header h2 { font-size: 13px; font-weight: 650; }
.panel-header > span { color: #9da5af; font-size: 12px; }
.list-hint { padding: 0 18px 14px; border-bottom: 1px solid #34383e; }
.news-row { width: 100%; display: flex; text-align: left; gap: 12px; border: 0; border-bottom: 1px solid #30343a; border-left: 3px solid transparent; border-radius: 0; background: transparent; color: inherit; padding: 14px 14px 14px 12px; }
.news-row:hover { background: #272b31; }
.news-row.is-open { background: #252a30; border-left-color: #9aa5b3; }
.score { font: 600 16px ui-monospace, monospace; color: #9da5af; width: 23px; flex-shrink: 0; padding-top: 1px; }
.row-content { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.headline { line-height: 1.45; font-size: 13px; overflow-wrap: anywhere; }
.review-label { font-size: 11px; color: #8f98a3; }
[data-status='relevant'] .review-label { color: #a4bd99; }
[data-status='done'] .review-label { color: #91b3cc; }
[data-status='not-relevant'] .review-label { color: #b6a096; }
.workspace { position: relative; overflow: auto; min-width: 0; padding: 0 12px 24px; }
.workspace.drag-over { outline: 2px dashed #a6b7ca; outline-offset: -8px; background: #1c2229; }
.cards { position: relative; min-height: 1000px; isolation: isolate; }
.news-card { position: absolute; width: min(370px, 100%); background: #202328; border: 1px solid #41464e; border-radius: 3px; padding: 14px; min-width: 0; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.card-score { font: 600 17px ui-monospace, monospace; margin-left: auto; color: #9da5af; }
.close-card, #retry { border: 1px solid #454b54; background: #292e35; color: #d2d7df; border-radius: 3px; padding: 5px 9px; font-size: 12px; }
.close-card:hover, #retry:hover { background: #363d47; }
.card-headline { font-size: 16px; line-height: 1.4; font-weight: 600; margin: 10px 0 12px; cursor: text; overflow-wrap: anywhere; }
.record-fields { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 7px 12px; font-size: 12px; line-height: 1.4; margin: 0 0 18px; }
dt { color: #9da5af; } dd { margin: 0; overflow-wrap: anywhere; }
.review-control { border-top: 1px solid #383e46; border-bottom: 1px solid #383e46; padding: 12px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; color: #b3bcc7; }
select { background: #292e35; color: #e1e3e6; border: 1px solid #505762; padding: 6px 9px; border-radius: 3px; }
.record-section { margin-top: 12px; }
h4 { font-size: 11px; color: #aab3bf; text-transform: uppercase; letter-spacing: .07em; font-weight: 600; margin-bottom: 8px; }
.prose { line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.games { list-style: none; margin: 0; padding: 0; }
.games li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px solid #343a42; overflow-wrap: anywhere; }
.source-link { color: #a3c1de; font-size: 12px; overflow-wrap: anywhere; line-height: 1.6; }
.debug { margin-top: 12px; border-top: 1px solid #383e46; padding-top: 12px; color: #9da5af; font: 11px ui-monospace, monospace; overflow-wrap: anywhere; }
summary { cursor: pointer; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.empty-state { position: absolute; top: 60px; left: 0; right: 0; pointer-events: none; padding: 100px 24px; text-align: center; color: #9da5af; }
.empty-state h3 { font-size: 16px; color: #c3cad3; font-weight: 500; margin-bottom: 12px; }
.empty-state p { line-height: 1.8; font-size: 13px; }
#load-state { padding: 24px 18px; color: #aeb7c3; line-height: 1.6; }
#retry { margin: 0 18px 18px; }
#notice, #file-errors { padding: 10px 22px; background: #302b21; color: #d7c7a0; font-size: 12px; border-bottom: 1px solid #524735; }
#file-errors ul { line-height: 1.7; }
:focus-visible { outline: 2px solid #a3c1de; outline-offset: 2px; }
.news-card:focus { outline: 2px solid #a3c1de; outline-offset: 2px; }
@media (max-width: 900px) { .workbench { grid-template-columns: 270px minmax(0, 1fr); } }
@media (max-width: 620px) { body { height: auto; min-height: 100vh; } .app-header { padding: 14px; } .local-label { display: none; } .workbench { display: flex; flex-direction: column; } .news-panel { max-height: 38vh; border-right: 0; border-bottom: 1px solid #454b54; } .workspace { overflow: visible; min-height: 55vh; } .cards { padding: 0; } .empty-state { padding: 60px 16px; } }

/* Shared editorial semantics in the list and spatial nodes. */
[data-relevance='1'] { color: #929ba5; }
[data-relevance='2'] { color: #b5b293; }
[data-relevance='3'] { color: #cfb16f; }
[data-relevance='4'] { color: #d49a72; }
[data-relevance='5'] { color: #e08080; }
.region { text-transform: uppercase; font-size: 11px; font-weight: 600; }
[data-region='brazil'] { color: #d8bf73; }
[data-region='international'] { color: #94b8dc; }
.editorial-metadata { display: block; line-height: 1.5; }
.node-header { cursor: grab; touch-action: none; }
.node-header button { cursor: pointer; }
.is-dragging .node-header { cursor: grabbing; }
.is-dragging { user-select: none; }
.published-date { font: 600 13px ui-monospace, monospace; color: #d5dbe3; }
.collapsible { border-bottom: 1px solid #343a42; padding-bottom: 10px; }
.collapsible > summary { color: #bfc7d1; font-size: 12px; font-weight: 600; line-height: 1.6; }
.collapsible[open] > summary { margin-bottom: 8px; }
.created-at { margin-top: 12px; line-height: 1.6; }

/* Editorial selection affects only list visibility and emphasis. */
.news-row[data-status='not-relevant'] { opacity: .38; }
.category-pill { display: inline-block; padding: 1px 5px; border: 1px solid #525963; border-radius: 3px; font-size: 10px; font-weight: 600; line-height: 1.5; }
[data-category='board_game'] { color: #d9a17a; }
[data-category='rpg'] { color: #b69bd3; }
.category-pill[data-category='board_game'] { background: #33271f; border-color: #72503a; }
.category-pill[data-category='rpg'] { background: #2c2436; border-color: #5e496f; }
.filters { padding: 0 16px 12px; }
.filter-group { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.filter-label { width: 100%; color: #9da5af; font-size: 10px; }
.filter-button { padding: 3px 6px; font-size: 10px; line-height: 1.5; border: 1px solid #424951; border-radius: 3px; background: transparent; }
.filter-button:hover { background: #2a3038; }
.filter-button[aria-pressed='true'] { border-color: currentColor; background: #353d48; box-shadow: inset 0 -2px currentColor; font-weight: 700; }
.filter-button[data-status='pending'] { color: #9da5af; }
.filter-button[data-status='relevant'] { color: #a4bd99; }
.filter-button[data-status='not-relevant'] { color: #b6a096; }
.filter-button[data-status='done'] { color: #91b3cc; }
.open-selected { margin-top: 3px; padding: 6px 10px; font-size: 12px; border: 1px solid #59636f; border-radius: 3px; background: #292e35; color: #e1e3e6; }
.open-selected:hover { background: #363d47; }
.filter-empty { color: #9da5af; padding: 20px 18px; font-size: 12px; line-height: 1.6; }
.header-controls { display: flex; align-items: center; gap: 18px; }
.language-control { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #aab3bf; }
.language-control select { font-size: 12px; max-width: 160px; }
.app-header h1 > span:first-child { color: #e1e3e6; font-weight: 650; margin-left: 0; }
.filter-panel > summary { display: none; }
.news-item { position: relative; }
.news-item-body { position: relative; }
.swipe-actions, .swipe-legend, .mobile-feedback, .mobile-details { display: none; }
@media (max-width: 700px) {
    body { height: auto; min-height: 100vh; }
    .app-header { padding: 12px; gap: 10px; flex-wrap: wrap; }
    .app-header h1 { font-size: 14px; }
    .app-header h1 > span:last-child, .local-label { display: none; }
    .header-controls { margin-left: auto; }
    .language-control { gap: 5px; }
    .language-control select { min-height: 36px; font-size: 12px; }
    .workbench { display: block; }
    .news-panel { width: 100%; max-height: none; border: 0; overflow: visible; }
    .workspace, .open-selected { display: none; }
    .panel-header { padding: 14px 16px 10px; }
    .filter-panel { margin: 0 12px 10px; border: 1px solid #424951; border-radius: 3px; }
    .filter-panel > summary { display: list-item; padding: 10px 12px; font-size: 12px; }
    .filters { padding: 0 12px 8px; }
    .filter-button { padding: 7px 10px; font-size: 11px; min-height: 34px; }
    .filter-group { gap: 6px; margin-bottom: 10px; }
    .swipe-legend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 7px; padding: 0 16px 12px; font-size: 12px; }
    .swipe-legend .keep { color: #a4bd99; }
    .swipe-legend .reject { color: #d29a9a; }
    .swipe-legend small { width: 100%; color: #9da5af; font-size: 11px; }
    .mobile-feedback { display: block; min-height: 0; padding: 0 16px; font-size: 12px; color: #a4bd99; }
    .mobile-feedback:not(:empty) { padding-bottom: 10px; }
    .mobile-feedback.not-relevant { color: #d29a9a; }
    .news-item { overflow: hidden; }
    .news-item-body { background: #1b1e22; }
    .news-row { padding: 16px 14px; min-height: 88px; touch-action: pan-y; background: #1b1e22; }
    .headline { font-size: 14px; line-height: 1.5; }
    .news-row[data-status='not-relevant'] { opacity: 1; }
    .news-item[data-status='not-relevant'] .news-item-body { opacity: .38; }
    .swipe-actions { display: flex; position: absolute; inset: 0; align-items: flex-start; padding: 28px 18px; opacity: var(--swipe-strength, 0); font-size: 14px; font-weight: 600; }
    .swipe-actions > span { display: none; }
    .swiping-right .swipe-actions { background: #2b3d2b; color: #b5d2aa; justify-content: flex-start; }
    .swiping-right .swipe-keep { display: inline; }
    .swiping-left .swipe-actions { background: #492c2d; color: #e1aaaa; justify-content: flex-end; }
    .swiping-left .swipe-reject { display: inline; }
    .mobile-details { display: block; padding: 16px; border-bottom: 1px solid #424951; }
    .mobile-details .node-header { cursor: auto; touch-action: auto; }
    .mobile-details .close-card { min-height: 36px; }
    .mobile-details .review-control select { min-height: 40px; }
    .mobile-details .prose { font-size: 14px; }
}
/* Selected stories remain restrained, with a shared warm editorial accent. */
.news-row[data-status='relevant'] { border-left-color: #d3ad65; background: #302b22; }
.news-row[data-status='relevant'] .review-label { color: #d3ad65; }
.news-card[data-status='relevant'], .mobile-details[data-status='relevant'] { border-color: #94733e; background: #28251f; }
.news-card[data-status='relevant'] .review-control, .mobile-details[data-status='relevant'] .review-control { color: #d3ad65; }
.workbench { grid-template-columns: 300px minmax(370px, 1fr) 320px; overflow-x: auto; }
.roundup-panel { border-left: 1px solid #34383e; background: #1b1e22; overflow-y: auto; min-height: 0; }
.roundup-empty { padding: 12px 18px; color: #9da5af; font-size: 12px; line-height: 1.6; }
.roundup-entry { margin: 0 12px 12px; padding: 12px; border: 1px solid #41464e; border-radius: 3px; background: #202328; }
.roundup-entry-header { display: flex; gap: 9px; align-items: baseline; cursor: grab; line-height: 1.5; }
.roundup-position { color: #d3ad65; font: 12px ui-monospace, monospace; }
.roundup-name { font-size: 13px; overflow-wrap: anywhere; }
.roundup-metadata { color: #aab3bf; font-size: 11px; line-height: 1.5; margin: 6px 0; overflow-wrap: anywhere; }
.roundup-campaign { display: inline-block; font-size: 10px; color: #d3ad65; margin-bottom: 8px; }
.roundup-one-liner { width: 100%; resize: vertical; min-height: 48px; font: 12px/1.5 system-ui, sans-serif; background: #191c20; color: #e1e3e6; border: 1px solid #464e59; border-radius: 3px; padding: 7px; }
.roundup-edit { margin-top: 8px; font-size: 11px; color: #aab3bf; }
.roundup-field { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.roundup-field input { width: 100%; min-width: 0; background: #191c20; color: #e1e3e6; border: 1px solid #464e59; border-radius: 3px; padding: 6px; font: 12px system-ui, sans-serif; }
.roundup-field input[type='checkbox'] { width: 16px; height: 16px; accent-color: #d3ad65; }
.roundup-controls { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.roundup-controls button, .add-roundup { background: #292e35; color: #d5dbe3; border: 1px solid #505762; border-radius: 3px; font-size: 10px; padding: 4px 6px; }
.roundup-controls button:hover, .add-roundup:hover { background: #363d47; }
.roundup-controls button:disabled, .add-roundup:disabled { opacity: .5; cursor: default; }
.roundup-controls .roundup-remove { margin-left: auto; }
.games .game-name { flex: 1; }
.games .add-roundup { flex-basis: auto; }
.roundup-dragging { opacity: .55; }
.roundup-drop { outline: 2px solid #d3ad65; outline-offset: -2px; }
@media (max-width: 1100px) and (min-width: 701px) { .workbench { grid-template-columns: 260px minmax(350px, 1fr) 280px; } }
@media (max-width: 700px) {
    .workbench { display: block; overflow-x: visible; }
    .roundup-panel { display: none; }
    .news-item[data-status='relevant'] .news-item-body { background: #302b22; }
    .add-roundup { padding: 8px 10px; min-height: 36px; font-size: 11px; }
}
.new-news, .edit-news, .news-editor button { border: 1px solid #505762; background: #292e35; color: #d5dbe3; border-radius: 3px; padding: 5px 8px; font: 12px system-ui, sans-serif; cursor: pointer; }
.news-editor { background: #202328; color: #e1e3e6; border: 1px solid #59636f; border-radius: 3px; padding: 20px; width: min(600px, calc(100% - 24px)); max-height: 90vh; overflow-y: auto; }
.news-editor::backdrop { background: #0009; }
.editor-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.editor-top h2 { font-size: 16px; }
.editor-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font-size: 12px; color: #bfc7d1; }
.editor-field input, .editor-field textarea, .editor-game input { border: 1px solid #505762; background: #191c20; color: #e1e3e6; border-radius: 3px; padding: 8px; font: 13px system-ui, sans-serif; min-width: 0; }
.editor-field textarea { resize: vertical; }
.editor-games-section h3 { font-size: 13px; margin: 14px 0 10px; }
.editor-game { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.editor-game input { flex: 1; }
#editor-error { color: #e08080; margin: 12px 0; line-height: 1.5; }
#editor-save { margin-top: 16px; }
@media (max-width: 700px) { .edit-news, .new-news { min-height: 36px; } .header-controls { flex-wrap: wrap; gap: 8px; } }
.user-menu { position: relative; }
.user-menu summary { cursor: pointer; padding: 6px; }
.user-menu[open] { z-index: 100; background: var(--panel, #202027); border-radius: 6px; }
.user-menu button { display: block; margin: 6px; }
#refresh-feedback { font-size: 11px; color: #aeb0b9; }
.login-page { display: grid; min-height: 100vh; place-items: center; }
.login-card { width: min(360px, calc(100vw - 32px)); padding: 24px; background: #1a1b20; border: 1px solid #363840; border-radius: 10px; }
.login-card label, #user-form label { display: grid; gap: 6px; margin: 14px 0; }
.login-card input, #user-form input { width: 100%; padding: 9px; background: #101116; color: #eee; border: 1px solid #454752; border-radius: 5px; }
.login-card [role=alert], #user-error { color: #f5a1a1; }
.header-controls { flex-wrap: wrap; }
