/* ═══════════════════════════════════════
   OBRAS — Panel + Filters + Detail + Carousel + Export
   ═══════════════════════════════════════ */

.obras-panel { position: absolute; right: auto; left: 60px; top: 90px; width: 460px; max-height: calc(100vh - 120px); display: none; flex-direction: column; animation: slideInLeft .35s var(--ease-spring) both; z-index: 90; }
.obras-panel.active { display: flex; }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: translateX(0); } }

.obras-panel .panel-card { display: flex; flex-direction: column; max-height: calc(100vh - 130px); background: var(--glass-bg); backdrop-filter: blur(32px) saturate(1.4); border: 1px solid var(--border-default); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.04); }

.obras-filters { padding: 0; border-bottom: 1px solid var(--border-subtle); }
.obras-filter-toggle { display: flex; justify-content: space-between; align-items: center; padding: 9px 18px; cursor: pointer; transition: background .2s; user-select: none; }
.obras-filter-toggle:hover { background: rgba(255,255,255,0.02); }
.obras-filter-toggle-left { display: flex; align-items: center; gap: 8px; }
.obras-filter-toggle-label { font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); }
.obras-filter-active-dots { display: flex; gap: 4px; align-items: center; }
.obras-filter-active-dot { width: 5px; height: 5px; border-radius: 50%; }
.obras-filter-chevron { font-size: 10px; color: var(--text-muted); transition: transform .3s var(--ease-spring); display: inline-block; }
.obras-filters.open .obras-filter-chevron { transform: rotate(180deg); }
.obras-filter-body { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease-out), padding .35s var(--ease-out); padding: 0 18px; }
.obras-filters.open .obras-filter-body { max-height: 300px; padding: 0 18px 12px; }

.obras-summary { display: flex; gap: 5px; padding: 10px 16px; border-bottom: 1px solid var(--border-subtle); background: rgba(56,189,248,0.02); }
.obras-summary-item { flex: 1; text-align: center; padding: 7px 4px; background: rgba(255,255,255,0.02); border-radius: 7px; border: 1px solid var(--border-ghost); }
.obras-summary-value { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.obras-summary-label { font-size: 9px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; margin-top: 1px; }

.obras-search-input { width: 100%; padding: 7px 12px 7px 32px; border-radius: var(--radius-sm); border: 1px solid var(--border-default); background: rgba(255,255,255,0.03); color: var(--text-primary); font-size: 12px; font-family: 'Inter',sans-serif; outline: none; transition: border-color .2s, box-shadow .2s; }
.obras-search-input::placeholder { color: var(--text-muted); }
.obras-search-input:focus { border-color: var(--border-accent); box-shadow: 0 0 0 2px rgba(56,189,248,0.12); }
.obras-search-wrap { position: relative; }
.obras-search-icon { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 12px; pointer-events: none; }

#obrasPanel,#obrasListView,#obraDetailView { scrollbar-width: thin; scrollbar-color: rgba(56,189,248,.25) transparent; }
#obrasPanel::-webkit-scrollbar,#obrasListView::-webkit-scrollbar,#obraDetailView::-webkit-scrollbar { width: 3px; }
#obrasPanel::-webkit-scrollbar-track,#obrasListView::-webkit-scrollbar-track,#obraDetailView::-webkit-scrollbar-track { background: transparent; }
#obrasPanel::-webkit-scrollbar-thumb,#obrasListView::-webkit-scrollbar-thumb,#obraDetailView::-webkit-scrollbar-thumb { background: rgba(56,189,248,.28); border-radius: 3px; }
#obrasPanel::-webkit-scrollbar-thumb:hover,#obrasListView::-webkit-scrollbar-thumb:hover,#obraDetailView::-webkit-scrollbar-thumb:hover { background: rgba(56,189,248,.55); }

.obra-item-progress { margin-top: 5px; height: 2px; background: rgba(255,255,255,0.05); border-radius: 2px; overflow: hidden; }
.obra-item-progress-fill { height: 100%; border-radius: 2px; transition: width .5s var(--ease-smooth); }

/* ─── EBAP ACCORDION GROUPS ─── */
.ebap-accord-group { background: rgba(255,255,255,0.02); border: 1px solid rgba(56,189,248,0.08); border-radius: 10px; margin-bottom: 4px; overflow: hidden; transition: border-color .2s; }
.ebap-accord-group:hover { border-color: rgba(56,189,248,0.18); }
.ebap-accord-header { padding: 10px 14px; display: flex; align-items: center; gap: 10px; cursor: pointer; transition: background .15s; user-select: none; }
.ebap-accord-header:hover { background: rgba(56,189,248,0.03); }
.ebap-accord-dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.ebap-accord-info { flex: 1; min-width: 0; }
.ebap-accord-name { font-size: 12px; font-weight: 700; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ebap-accord-meta { font-size: 9.5px; color: var(--text-muted); margin-top: 2px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ebap-accord-badge { font-size: 9px; font-weight: 700; padding: 1px 6px; border-radius: 4px; background: rgba(56,189,248,0.1); color: var(--accent-sky); white-space: nowrap; }
.ebap-accord-toggle { flex-shrink: 0; padding: 3px 8px; border-radius: var(--radius-pill); border: 1px solid var(--border-ghost); background: transparent; color: var(--text-muted); font-family: 'Inter',sans-serif; font-size: 9px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; cursor: pointer; transition: all .18s var(--ease-out); white-space: nowrap; }
.ebap-accord-toggle:hover { border-color: var(--border-accent); color: var(--accent-sky); background: rgba(56,189,248,0.06); }
.ebap-accord-toggle.all-active { background: rgba(56,189,248,0.10); border-color: var(--border-accent); color: var(--accent-sky); }
.ebap-accord-chevron { font-size: 10px; color: var(--text-muted); transition: transform .25s var(--ease-spring); padding: 4px; }
.ebap-accord-group.open .ebap-accord-chevron { transform: rotate(180deg); color: var(--accent-sky); }
.ebap-accord-content { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .35s var(--ease-out), opacity .25s; background: rgba(0,0,0,0.12); }
.ebap-accord-group.open .ebap-accord-content { max-height: 3000px; opacity: 1; border-top: 1px solid rgba(56,189,248,0.06); }
.ebap-accord-content .obra-item { padding: 10px 14px 10px 16px; }
.ebap-accord-content .obra-item:last-child { border-bottom: none; }

.obras-filter-group { margin-bottom: 8px; }
.obras-filter-group:last-child { margin-bottom: 0; }
.obras-filter-label { font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 5px; }
.obras-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.obras-chip { padding: 4px 12px; border-radius: var(--radius-pill); font-size: 11.5px; font-weight: 600; cursor: pointer; border: 1px solid var(--border-subtle); background: transparent; color: var(--text-secondary); transition: all .2s var(--ease-out); font-family: 'Inter',sans-serif; }
.obras-chip:hover { border-color: var(--border-accent); color: var(--text-primary); }
.obras-chip.active { background: rgba(56,189,248,0.1); border-color: var(--border-accent); color: var(--accent-sky); }
.obras-chip.active-green { background: rgba(52,211,153,0.1); border-color: var(--accent-emerald); color: var(--accent-emerald); }
.obras-chip.active-amber { background: rgba(251,191,36,0.1); border-color: var(--accent-amber); color: var(--accent-amber); }
.obras-chip.active-purple { background: rgba(192,132,252,0.1); border-color: var(--accent-purple); color: var(--accent-purple); }
.obras-chip.active-red { background: rgba(251,113,133,0.1); border-color: var(--accent-rose); color: var(--accent-rose); }
.obras-chip.active-cyan { background: rgba(56,189,248,0.1); border-color: var(--accent-sky); color: var(--accent-sky); }
.obras-chip.active-pink { background: rgba(244,114,182,0.1); border-color: #f472b6; color: #f472b6; }

.obras-cost-slider { padding: 0 14px 10px; border-bottom: 1px solid var(--border-subtle); }
.obras-cost-bar { height: 2px; background: rgba(255,255,255,0.05); border-radius: 2px; position: relative; margin-top: 7px; }
.obras-cost-fill { position: absolute; left: 0; right: 0; height: 100%; background: linear-gradient(90deg, var(--accent-blue), var(--accent-sky)); border-radius: 2px; }
.obras-cost-labels { display: flex; justify-content: space-between; margin-top: 5px; font-size: 9px; font-weight: 600; color: var(--text-muted); font-family: monospace; }

.obras-results-bar { padding: 9px 18px; display: flex; justify-content: space-between; align-items: center; background: rgba(0,0,0,0.16); border-bottom: 1px solid var(--border-subtle); }
.obras-results-count { font-size: 13px; color: var(--text-secondary); }
.obras-results-count strong { color: var(--accent-sky); font-variant-numeric: tabular-nums; }
.obras-sort { font-size: 12px; color: var(--text-primary); background: rgba(8,17,31,0.95); border: 1px solid var(--border-default); padding: 4px 10px; border-radius: 6px; font-family: 'Inter',sans-serif; cursor: pointer; -webkit-appearance: none; appearance: none; }
.obras-sort option { background: #111827; color: #fff; padding: 6px; }

.obras-list { flex: 1; overflow-y: auto; max-height: 50vh; }
.obras-list::-webkit-scrollbar { width: 3px; }
.obras-list::-webkit-scrollbar-thumb { background: rgba(56,189,248,.2); border-radius: 3px; }

.obra-item { padding: 12px 18px; border-bottom: 1px solid rgba(255,255,255,0.03); cursor: pointer; transition: all .18s var(--ease-out); position: relative; }
.obra-item::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; border-radius: 0 2px 2px 0; transition: all .2s; }
.obra-item:hover { background: rgba(56,189,248,0.03); }
.obra-item:hover::before { background: var(--accent-sky); }
.obra-item.selected { background: rgba(56,189,248,0.05); }
.obra-item.selected::before { background: var(--accent-sky); }
.obra-item.multi-selected { border-left: 3px solid var(--accent-sky) !important; background: rgba(56,189,248,0.04) !important; }
.obra-item.multi-selected .obra-multi-toggle { background: rgba(56,189,248,0.12); border-color: var(--border-accent); color: var(--accent-sky); font-weight: 700; }
.obra-item-name { font-size: 13.5px; font-weight: 600; margin-bottom: 3px; color: var(--text-primary); line-height: 1.35; }
.obra-item-agency { font-size: 11.5px; color: var(--text-muted); margin-bottom: 6px; }
.obra-item-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.obra-meta-tag { font-size: 10.5px; font-weight: 700; padding: 2px 9px; border-radius: 4px; font-variant-numeric: tabular-nums; }
.meta-cost { background: rgba(56,189,248,0.1); color: var(--accent-sky); }
.meta-exec { background: rgba(52,211,153,0.1); color: var(--accent-emerald); }
.meta-plan { background: rgba(251,191,36,0.1); color: var(--accent-amber); }
.meta-licit { background: rgba(192,132,252,0.1); color: var(--accent-purple); }
.meta-conc { background: rgba(99,102,241,0.1); color: #818cf8; }
.meta-analise { background: rgba(56,189,248,0.08); color: #60a5fa; }
.meta-estudo { background: rgba(244,114,182,0.1); color: #f472b6; }

.obra-detail { display: none; flex-direction: column; overflow-y: auto; max-height: calc(100vh - 190px); }
.obra-detail.active { display: flex; }
.obra-detail-back { padding: 10px 18px; display: flex; align-items: center; gap: 7px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--accent-sky); border-bottom: 1px solid var(--border-subtle); transition: background .2s; }
.obra-detail-back:hover { background: rgba(56,189,248,0.04); }
.obra-detail-header { padding: 14px 18px; border-bottom: 1px solid var(--border-subtle); }
.obra-detail-title { font-size: 15px; font-weight: 700; line-height: 1.35; }
.obra-detail-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.obra-detail-tag { padding: 2px 9px; border-radius: var(--radius-pill); font-size: 10px; font-weight: 600; }
.obra-kpis { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--border-subtle); }
.obra-kpi { background: rgba(255,255,255,0.02); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 10px 12px; text-align: center; }
.obra-kpi-label { font-size: 9.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
.obra-kpi-value { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.obra-budget { padding: 14px 18px; border-bottom: 1px solid var(--border-subtle); }
.obra-budget-title { font-size: 10.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
.obra-budget-bar { height: 16px; background: rgba(255,255,255,0.04); border-radius: 8px; overflow: hidden; display: flex; margin-bottom: 8px; }
.obra-budget-seg { height: 100%; transition: all .5s var(--ease-smooth); }
.obra-budget-legend { display: flex; gap: 12px; flex-wrap: wrap; }
.obra-budget-legend-item { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text-secondary); }
.obra-budget-legend-dot { width: 7px; height: 7px; border-radius: 2px; }
.obra-timeline { padding: 14px 18px; border-bottom: 1px solid var(--border-subtle); }
.obra-timeline-title { font-size: 10.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; }
.obra-tl { position: relative; padding-left: 20px; }
.obra-tl::before { content: ''; position: absolute; left: 3px; top: 3px; bottom: 3px; width: 1.5px; background: rgba(255,255,255,0.06); }
.obra-tl-item { position: relative; padding-bottom: 14px; }
.obra-tl-item::before { content: ''; position: absolute; left: -19px; top: 4px; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.18); background: var(--bg-surface); }
.obra-tl-item.done::before { background: var(--accent-emerald); border-color: var(--accent-emerald); }
.obra-tl-item.now::before { background: var(--accent-sky); border-color: var(--accent-sky); box-shadow: 0 0 7px rgba(56,189,248,0.6); }
.obra-tl-item.wait::before { border-color: rgba(255,255,255,0.12); }
.obra-tl-item-name { font-size: 12.5px; font-weight: 600; color: var(--text-primary); }
.obra-tl-item-date { font-size: 11px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.obra-info { padding: 14px 18px; }
.obra-info-title { font-size: 10.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
.obra-info-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 12px; }
.obra-info-label { color: var(--text-secondary); }
.obra-info-value { font-weight: 600; color: var(--text-primary); }
.obra-fotos { padding: 14px 18px; border-bottom: 1px solid var(--border-subtle); }
.obra-fotos-title { font-size: 10.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; }
.obra-fotos-counter { font-variant-numeric: tabular-nums; font-size: 12px; color: var(--accent-sky); font-weight: 600; }
.obra-carousel { position: relative; border-radius: var(--radius-md); overflow: hidden; background: rgba(0,0,0,0.3); aspect-ratio: 16/10; }
.obra-carousel-track { display: flex; transition: transform .38s var(--ease-smooth); height: 100%; }
.obra-carousel-slide { min-width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center; position: relative; cursor: zoom-in; }
.obra-carousel-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 40%); }
.obra-carousel-caption { position: absolute; bottom: 9px; left: 10px; right: 10px; z-index: 2; font-size: 12px; color: rgba(255,255,255,0.82); font-weight: 500; }
.obra-carousel-date { font-size: 10px; color: rgba(56,189,248,0.75); font-variant-numeric: tabular-nums; margin-bottom: 2px; }
.obra-carousel-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.12); background: rgba(0,0,0,0.65); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 15px; transition: all .2s; font-family: inherit; }
.obra-carousel-nav:hover { background: rgba(56,189,248,0.25); }
.obra-carousel-prev { left: 5px; }
.obra-carousel-next { right: 5px; }
.obra-carousel-dots { display: flex; justify-content: center; gap: 4px; margin-top: 7px; }
.obra-carousel-dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,0.14); cursor: pointer; transition: all .2s; border: none; }
.obra-carousel-dot.active { background: var(--accent-sky); box-shadow: 0 0 5px rgba(56,189,248,0.5); width: 16px; border-radius: 3px; }
.obra-carousel-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 16/10; border-radius: var(--radius-md); background: rgba(255,255,255,0.02); border: 1.5px dashed rgba(255,255,255,0.07); text-align: center; padding: 24px; }
.carousel-placeholder-icon { margin-bottom: 10px; opacity: 0.5; }
.carousel-placeholder-text { font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 3px; }
.carousel-placeholder-sub { font-size: 10px; color: rgba(255,255,255,0.16); line-height: 1.45; max-width: 250px; }

.legend-obras-divider { margin: 6px 0 5px; padding: 5px 10px; font-size: 9px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: rgba(56,189,248,0.5); border-top: 1px solid rgba(56,189,248,0.1); }
.legend-obra-entry { background: rgba(56,189,248,0.03); border-radius: 5px; padding: 7px 10px; margin-bottom: 4px; border: 1px solid rgba(56,189,248,0.07); transition: background .2s; }
.legend-obra-entry:hover { background: rgba(56,189,248,0.07); }
.legend-obra-entry .obra-leg-top { display: flex; align-items: center; gap: 7px; margin-bottom: 3px; }
.legend-obra-entry .obra-leg-dot { width: 9px; height: 9px; border-radius: 2px; flex-shrink: 0; }
.legend-obra-entry .obra-leg-name { font-size: 12px; font-weight: 600; color: var(--text-primary); line-height: 1.3; }
.legend-obra-entry .obra-leg-bottom { display: flex; gap: 5px; align-items: center; padding-left: 16px; }
.legend-obra-entry .obra-leg-badge { font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 3px; }
.legend-obra-entry.selected { border-color: rgba(255,255,255,0.2); background: rgba(56,189,248,0.07); }
.legend-obra-entry.selected .obra-leg-name { color: var(--accent-sky); }
@keyframes obraPulse { 0%,100% { opacity: 0.7; } 50% { opacity: 1; } }

/* ─── EXPORT ─── */
.obras-export-bar { display: flex; gap: 6px; padding: 7px 12px; border-bottom: 1px solid var(--border-subtle); background: rgba(0,0,0,0.12); flex-wrap: wrap; align-items: center; }
.obras-export-btn { display: flex; align-items: center; gap: 3px; padding: 4px 11px; border-radius: var(--radius-sm); border: 1px solid var(--border-subtle); background: rgba(255,255,255,0.03); color: var(--text-secondary); font-size: 11px; font-weight: 600; cursor: pointer; transition: all .2s; font-family: 'Inter',sans-serif; }
.obras-export-btn:hover { background: rgba(56,189,248,0.07); color: var(--accent-sky); border-color: var(--border-accent); }
.obra-detail-export { display: flex; gap: 6px; padding: 9px 16px; border-bottom: 1px solid var(--border-subtle); }
.obra-detail-export-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 3px; padding: 6px 9px; border-radius: var(--radius-sm); border: 1px solid var(--border-subtle); background: rgba(255,255,255,0.025); color: var(--text-secondary); font-size: 11px; font-weight: 600; cursor: pointer; transition: all .2s; font-family: 'Inter',sans-serif; }
.obra-detail-export-btn:hover { background: rgba(56,189,248,0.07); color: var(--accent-sky); }

/* ─── CHART / GANTT ─── */
.obra-chart { padding: 12px 16px; border-bottom: 1px solid var(--border-subtle); }
.obra-chart-title { font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
.hbar-row { display: flex; align-items: center; gap: 7px; margin-bottom: 9px; }
.hbar-lbl { font-size: 10.5px; font-weight: 600; width: 70px; flex-shrink: 0; text-align: right; color: var(--text-secondary); }
.hbar-track { flex: 1; height: 13px; background: rgba(255,255,255,0.05); border-radius: 6px; overflow: hidden; }
.hbar-fill { height: 100%; border-radius: 6px; transition: width .6s var(--ease-smooth); min-width: 0; }
.hbar-val { font-size: 10px; font-variant-numeric: tabular-nums; color: var(--text-muted); width: 100px; flex-shrink: 0; text-align: left; padding-left: 5px; white-space: nowrap; }
.obra-gantt { padding: 12px 16px; border-bottom: 1px solid var(--border-subtle); }
.obra-gantt-title { font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
.gantt-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.gantt-row { border-bottom: 1px solid rgba(255,255,255,0.035); }
.gantt-cell-name { padding: 4px 7px 4px 0; color: var(--text-secondary); width: 36%; vertical-align: middle; font-size: 10.5px; line-height: 1.3; }
.gantt-cell-bar { padding: 3px 0; vertical-align: middle; width: 40%; }
.gantt-bar-wrap { background: rgba(255,255,255,0.05); border-radius: 3px; height: 12px; overflow: hidden; }
.gantt-bar-fill { height: 100%; border-radius: 3px; min-width: 7px; }
.gantt-cell-period { padding: 4px 0 4px 7px; color: var(--text-muted); font-size: 9.5px; width: 24%; vertical-align: middle; font-variant-numeric: tabular-nums; }
.gantt-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 5px; vertical-align: middle; flex-shrink: 0; }

/* ─── CITIZEN ─── */
.obra-citizen { padding: 12px 16px; border-bottom: 1px solid var(--border-subtle); }
.obra-citizen-title { font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
.obra-reactions { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.obra-rxn-btn { padding: 4px 11px; border-radius: var(--radius-pill); border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.02); color: var(--text-secondary); font-size: 11px; cursor: pointer; transition: all .2s; display: flex; align-items: center; gap: 4px; font-family: 'Inter',sans-serif; }
.obra-rxn-btn:hover { background: rgba(56,189,248,0.08); border-color: var(--border-accent); color: var(--accent-sky); transform: translateY(-1px); }
.obra-rxn-btn.voted { background: rgba(56,189,248,0.12); border-color: var(--border-accent); color: var(--accent-sky); }
.rxn-cnt { font-weight: 700; opacity: 0.8; font-variant-numeric: tabular-nums; }

.citizen-comment-lbl { font-size: 11px; color: var(--text-secondary); margin-bottom: 8px; }
.citizen-comment-ta { width: 100%; min-height: 70px; padding: 10px 12px; border-radius: var(--radius-md); border: 1px solid var(--border-default); background: rgba(255,255,255,0.03); color: var(--text-primary); font-size: 12.5px; font-family: 'Inter',sans-serif; resize: vertical; outline: none; transition: all .2s; margin-bottom: 8px; }
.citizen-comment-ta:focus { border-color: var(--border-accent); background: rgba(56,189,248,0.05); box-shadow: 0 0 0 2px rgba(56,189,248,0.1); }
.citizen-send-btn { width: 100%; padding: 8px; border-radius: var(--radius-md); border: 1px solid var(--border-accent); background: rgba(56,189,248,0.1); color: var(--accent-sky); font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; transition: all .2s; font-family: 'Inter',sans-serif; }
.citizen-send-btn:hover { background: rgba(56,189,248,0.15); box-shadow: 0 2px 8px rgba(56,189,248,0.15); }

.citizen-comments { margin-top: 16px; border-top: 1px solid var(--border-subtle); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.citizen-cmt { background: rgba(255,255,255,0.02); border: 1px solid var(--border-ghost); border-radius: var(--radius-md); padding: 9px 12px; }
.citizen-cmt-txt { font-size: 12px; color: var(--text-primary); line-height: 1.5; margin-bottom: 4px; }
.citizen-cmt-meta { font-size: 9px; color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* ─── OBRA LAYER TOGGLE ─── */
.obra-multi-toggle {
    flex-shrink: 0; padding: 3px 10px; border-radius: var(--radius-pill);
    border: 1px solid var(--border-ghost); background: transparent;
    color: var(--text-muted); font-family: 'Inter', sans-serif; font-size: 10px;
    font-weight: 700; letter-spacing: 0.9px; text-transform: uppercase;
    cursor: pointer; transition: all .18s var(--ease-out); white-space: nowrap; line-height: 1.6;
}
.obra-multi-toggle:hover { border-color: var(--border-accent); color: var(--accent-sky); background: rgba(56,189,248,0.06); }
.obra-multi-toggle.is-active-eye { background: rgba(56,189,248,0.10); border-color: var(--border-accent); color: var(--accent-sky); box-shadow: 0 0 8px rgba(56,189,248,0.18); }
