/* LA PRESA — salgo.css (T22). ¿Salgo ya?, Avisá (#scr-reporta) and Chat. */
:is(#scr-salgo, #scr-reporta, #scr-chat) { color: var(--ink); }
:is(#scr-salgo, #scr-reporta, #scr-chat) .tiny { margin-top: 8px; }
[data-sober="true"] :is(#scr-chat [data-regla], #scr-reporta :is(.rep-beat > p, .inc-meta)) { filter: grayscale(1); }

/* ¿Salgo ya? */
.segmentado { display: flex; gap: 4px; margin-top: 16px; padding: 4px; border-radius: var(--r-md); background: var(--soft); }
.segmentado button { flex: 1; min-height: 48px; border: 1px solid transparent; border-radius: 14px; background: none; color: var(--ink); font-size: 16px; font-weight: 400; }
.segmentado [aria-pressed="true"] { background: var(--surface); border-color: var(--ink); font-weight: 700; }
.sal-veredicto .eyebrow { padding-right: 96px; line-height: 1.2; }
.sal-veredicto h2 { margin: 14px 0 8px; font-size: 25px; }
@media (max-width: 319px) { .sal-veredicto .eyebrow { padding: 0; } .sal-veredicto .ah-cr { position: static; float: right; } }
.sal-fila { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.sal-hora { font-size: 28px; }
#scr-salgo .ah-inc { margin-top: 20px; }
#scr-salgo .spark-caption { font-size: 13px; color: var(--ink-dim); }
#dep-slider { width: 100%; height: 44px; appearance: none; background: none; }
#dep-slider::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: var(--line-campo); }
#dep-slider::-moz-range-track { height: 6px; border-radius: 3px; background: var(--line-campo); }
#dep-slider::-webkit-slider-thumb { appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%; background: var(--accent); }

/* Avisá (route 'reporta') */
#scr-reporta .fld { margin-top: 0; }
#scr-reporta .dir-fixtures { grid-template-columns: repeat(auto-fit, minmax(min(100%, 7rem), 1fr)); }
#scr-reporta .dir-fixtures button { display: flex; flex-direction: column; justify-content: flex-start; min-width: 0; min-height: 64px; padding: 10px 12px; border-radius: var(--r-btn); overflow-wrap: anywhere; font-size: 15px; color: var(--ink); }
#scr-reporta .dir-fixtures b { font-size: 12px; color: var(--ink-dim); }
.rep-beat .msg.user { margin-left: auto; }
.rep-beat .ah-inc { margin-bottom: 8px; }
.rep-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rep-chips span { padding: 4px 10px; border-radius: 14px; background: var(--soft); font-size: 13px; font-weight: 700; }
.rep-beat p, .rep-protocolo p { margin-top: 8px; }

/* Chat */
@media (min-height: 600px) {
  #scr-chat .chat-log { max-height: var(--alto, calc(100svh - 490px)); overflow-y: auto; padding-top: 16px; mask-image: linear-gradient(transparent, #000 16px, #000 calc(100% - 12px), transparent); }
}
#scr-chat .ah-inc { margin-top: 10px; }
#scr-chat .emergencia-callout { background: none; }
#scr-chat .chat-log:is(:empty, :has(> details:only-child)) { min-height: 0; }
.chat-sello { display: block; margin-bottom: 4px; font-size: 13px; color: var(--ink-dim); }
.chat-archivo { margin: 0; padding: 0 16px; }
.chat-archivo summary { padding: 12px 0; font-size: 15px; font-weight: 700; }
.chat-arch { display: flex; flex-direction: column; gap: 10px; padding-bottom: 14px; }
@media (max-height: 599px) {
  #scr-chat .volver { float: left; margin: 0 8px 0 0; }
  #scr-chat .pantalla-titulo { margin: 0; font-size: 17px; line-height: 44px; }
  #scr-chat .ah-inc h2 { font-size: 17px; }
  #scr-chat .chat-log { min-height: 0; max-height: var(--alto); overflow-y: auto; padding: 4px 0; }
  #scr-chat .chat-chips { padding-bottom: 4px; }
  #scr-chat .emergencia-callout { margin-top: 6px; padding: 0; }
  .chat-inputrow { padding: 4px 0; }
}
.chat-fila { display: flex; gap: 8px; align-items: flex-start; }
.msg { font-size: 16px; }
.msg.presa { border-top-left-radius: 6px; }
.msg.user { border-bottom-right-radius: 6px; }
.chat-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px; padding: 4px 20px 10px; }
@media (pointer: coarse) { .chat-chips { scrollbar-width: none; } }
@media (min-width: 700px) and (min-height: 701px) {
  .chat-chips { flex-wrap: wrap; }
  #scr-chat .chat-log { min-height: 0; max-height: var(--alto, calc(100svh - 600px)); }
}
.chat-chips .pill { flex: none; background: var(--surface); border-color: var(--line); border-radius: 14px; font-weight: 700; }
#scr-chat [data-regla] { color: var(--ink); font-size: 14px; }
.chat-inputrow .btn { min-height: 48px; }
