/* „Raportează o eroare”: butonul din antet, modul de raportare și #/semnalari (site/viz/semnalari.js) */
.raport-btn { flex: none; display: inline-flex; align-items: center; gap: .4rem; min-height: 36px; min-width: 36px; justify-content: center; padding: 0 .7rem; border: 1px solid rgba(255,255,255,.3); background: transparent; color: var(--bar-ink); border-radius: 999px; cursor: pointer; font: inherit; font-size: var(--t-s); font-weight: 500; white-space: nowrap; }
.raport-btn svg { width: 17px; height: 17px; flex: none; }
.raport-btn:hover { color: var(--gold); border-color: var(--gold); }
.raport-btn[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--bar); }
@media (max-width: 1150px) { .raport-btn { padding: 0; width: 36px; } .raport-btn .sm-et { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } }
@media (max-width: 720px) { .raport-btn { margin-left: auto; } .raport-btn + .theme-btn { margin-left: 0; } }

/* modul de raportare: cadrul în jurul elementului țintit și bara de jos */
html.sm-activ, html.sm-activ * { cursor: crosshair !important; }
html.sm-activ .sm-dialog, html.sm-activ .sm-dialog *, html.sm-activ .sm-indiciu, html.sm-activ .sm-indiciu *, html.sm-activ #semnaleaza { cursor: auto !important; }
.sm-cadru { position: absolute; left: 0; top: 0; z-index: 60; pointer-events: none; border: 2px solid var(--gold); background: color-mix(in srgb, var(--gold) 14%, transparent); border-radius: 4px; box-shadow: 0 0 0 1px var(--bar); transition: transform .06s, width .06s, height .06s; }
.sm-indiciu { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); transform: translateX(-50%); z-index: 61; display: flex; align-items: center; gap: var(--s-3); max-width: min(680px, calc(100vw - 24px)); padding: .6rem .6rem .6rem 1rem; background: var(--bar); color: var(--bar-ink); border-top: 3px solid var(--gold); border-radius: 10px; box-shadow: 0 10px 28px rgba(0,0,0,.3); font-size: var(--t-s); }
.sm-indiciu .btn { flex: none; }

/* dialogul */
.sm-dialog { position: fixed; z-index: 62; right: 16px; bottom: 16px; width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; display: grid; gap: var(--s-3); padding: var(--s-4); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.3); }
.sm-dialog h2 { font-size: var(--t-l, 1.2rem); margin: 0; }
.sm-loc { display: grid; gap: 4px; padding: var(--s-2) var(--s-3); background: var(--surface-2); border-radius: 8px; font-size: var(--t-xs); }
.sm-loc-h { margin: 0; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.sm-rand { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: var(--s-2); align-items: baseline; }
.sm-rand code, .sm-rand span:last-child { overflow-wrap: anywhere; }
.sm-k { color: var(--muted); }
.sm-form textarea { min-height: 7rem; }
.sm-ok { color: var(--ok); font-weight: 600; }
@media (max-width: 520px) { .sm-dialog { left: 12px; right: 12px; bottom: 12px; width: auto; } .sm-rand { grid-template-columns: 1fr; gap: 0; } }

/* stările, peste culorile propunerilor */
.pp-stare.sm-st-deschisa { background: var(--accent-soft); color: var(--accent); }
.pp-stare.sm-st-confirmata, .pp-stare.sm-st-in-lucru { background: var(--warn-soft); color: var(--warn); }
.pp-stare.sm-st-rezolvata { background: var(--ok-soft); color: var(--ok); }
.pp-stare.sm-st-nu-se-schimba, .pp-stare.sm-st-duplicat { background: var(--auto-soft); color: var(--auto); }
