/* Azulejos: contadores grandes que também são a navegação, e uma lista única embaixo. */
:root {
  --bg: #f2f2f7; --surface: #ffffff; --fg: #000000; --muted: #5f5f66; --line: #d9d9de; --tinta: #0060d1; --cheio: #0068e0; --cheio-fg: #ffffff; --suave: #e8f0fd;
  --ok: #1a7a3a; --ruim: #c4271b; --onda: #b35c00;
  --sys: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #000000; --surface: #1c1c1e; --fg: #ffffff; --muted: #a5a5ad; --line: #38383a; --tinta: #5aa9ff; --cheio: #0a6fe8; --suave: #16304f; --ok: #3fd46a; --ruim: #ff7a70; color-scheme: dark } }
:root[data-theme="dark"] {
  --bg: #000000; --surface: #1c1c1e; --fg: #ffffff; --muted: #a5a5ad; --line: #38383a; --tinta: #5aa9ff; --cheio: #0a6fe8; --suave: #16304f; --ok: #3fd46a; --ruim: #ff7a70; color-scheme: dark }
* { box-sizing: border-box } [hidden] { display: none !important } h1, h2, p { margin: 0 }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.35 var(--sys); -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased }
main, .porta { max-width: 42rem; margin-inline: auto; padding-block: calc(.9rem + env(safe-area-inset-top, 0px)) calc(6rem + env(safe-area-inset-bottom, 0px));
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)) }
main { display: grid; gap: 1rem }
button, .copiar { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; min-height: 44px; padding: 0; -webkit-tap-highlight-color: transparent }
button:active, .copiar:active { opacity: .6 } button:disabled { opacity: .45; cursor: default }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid var(--tinta); outline-offset: 2px }
svg { width: 1.45em; height: 1.45em; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; flex: none }

.topo { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 1rem }
h1 { font-size: 34px; font-weight: 700; letter-spacing: -.022em; line-height: 1.1 }
.controles { display: flex; gap: 1.1rem } .controles button { color: var(--tinta); font-size: 17px }
.situacao { grid-column: 1 / -1; display: flex; gap: .45rem; align-items: center; color: var(--muted); font-size: 15px }
.ponto { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none } .vivo .ponto { background: var(--ok) } .parado .ponto { background: var(--onda) } .ruim { color: var(--ruim) } .ruim .ponto { background: var(--ruim) }

.azulejos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px }
.azulejos button { border-radius: 22px; padding: 13px 15px; color: #fff; display: grid; grid-template-columns: 1fr auto; row-gap: 9px; text-align: left; align-items: start; min-height: 88px; transition: transform .2s cubic-bezier(.25, .1, .25, 1), opacity .2s }
.azulejos button:active { transform: scale(.97); opacity: 1 }
.azulejos [aria-pressed="true"] { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5.5px currentColor } .azulejos [aria-pressed="true"].azul { --r: #0068e0 } .azulejos [aria-pressed="true"] { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5.5px var(--r) }
.azulejos b { font-size: 32px; line-height: 1; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; letter-spacing: -.02em } .azulejos span { grid-column: 1 / -1; font-weight: 600; font-size: 16px }
.azul { background: #0068e0; --r: #0068e0 } .laranja { background: #b35c00; --r: #b35c00 } .ocre { background: #7a5c00; --r: #7a5c00 } .verde { background: #1a7a3a; --r: #1a7a3a } .roxo { background: #6b3fa0; --r: #6b3fa0; grid-column: 1 / -1 }

.onda { background: var(--surface); border-radius: 22px; padding: 13px 15px; display: flex; gap: 12px; align-items: center; font-size: 15.5px }
.selo { background: var(--onda); color: #fff; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; font-size: 15px }
.cabeca { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 4px 4px 0 } .cabeca h2 { font-size: 24px; font-weight: 700; letter-spacing: -.015em; color: var(--cor, var(--tinta)) } .cabeca p { color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums }
.grupo { background: var(--surface); border-radius: 22px; overflow: hidden }
.it { display: grid; grid-template-columns: 26px 1fr; gap: 13px; padding: 15px 16px 10px; min-width: 0; position: relative } .it + .it::before { content: ""; position: absolute; top: 0; left: 55px; right: 0; border-top: .5px solid var(--line) }
.it.novo { animation: chegou 1.8s ease-out } @keyframes chegou { from { background: var(--suave) } }
.bola { width: 25px; height: 25px; border-radius: 50%; border: 2px solid #8e8e96; margin-top: 1px; display: grid; place-items: center } .bola.meia { border-color: var(--cheio); border-style: dashed } .bola.cheia { background: var(--ok); border-color: var(--ok) } .bola.cheia::after { content: ""; width: 11px; height: 6px; border: solid var(--surface); border-width: 0 0 2.2px 2.2px; transform: rotate(-45deg) translate(1px, -1px) } .bola.alerta { border-color: var(--onda) }
.corpo { min-width: 0; display: grid; gap: 3px } .fala { font-size: 19px; font-weight: 600; line-height: 1.26; letter-spacing: -.01em; overflow-wrap: anywhere; user-select: text; -webkit-user-select: text } .feito .fala { font-weight: 400; color: var(--muted) }
.escrevendo { color: var(--muted); font-weight: 400 }
.versoes { display: flex; align-items: center; gap: 4px; margin: -4px 0 -4px -14px; color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums } .versoes button { width: 44px; font-size: 24px; line-height: 1; color: var(--tinta); text-align: center }
.meta, .nota { color: var(--muted); font-size: 15px } .nota { color: var(--fg); font-size: 16px }
details { font-size: 15px } summary { cursor: pointer; color: var(--muted); min-height: 40px; display: flex; align-items: center; gap: 6px; list-style: none } summary::-webkit-details-marker { display: none } summary::before { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(-45deg); transition: transform .2s; flex: none } [open] > summary::before { transform: rotate(45deg) }
.original { background: var(--bg); border-radius: 14px; padding: 10px 13px; margin-bottom: 8px; overflow-wrap: anywhere; display: grid; gap: 2px; font-size: 16px } .original b { font-weight: 600; font-size: 15px }
.acoes { display: flex; flex-wrap: wrap; gap: 4px 26px; align-items: center; margin-top: 2px } .acoes button { color: var(--tinta); font-weight: 600; font-size: 16px }
.copiar { background: var(--cheio); color: var(--cheio-fg); font-weight: 600; font-size: 16px; border-radius: 99px; padding: 0 18px; display: flex; flex: 1 1 100%; align-items: center; justify-content: center; text-decoration: none; min-height: 48px; margin-top: 2px }
.vazio { text-align: center; padding: 2.6rem 1.2rem; color: var(--muted); display: grid; gap: .2rem } .vazio strong { color: var(--fg); font-size: 20px; font-weight: 600 }
.rodape { color: var(--muted); font-size: 14px; padding: 0 16px }
.recado { position: fixed; left: 50%; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); width: min(36rem, calc(100% - 32px)); background: #1b1c20; color: #fff; border-radius: 18px; padding: .9rem 1.1rem; z-index: 5; font-size: 16px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5) }
.porta { display: grid; gap: 1rem; align-content: center; min-height: 100dvh; max-width: 26rem } .porta p { color: var(--muted) } .porta form { display: grid; gap: .6rem } .porta label { font-weight: 600; font-size: 15px } .porta input { font: inherit; min-height: 50px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); padding: 0 14px } .porta button { background: var(--cheio); color: var(--cheio-fg); font-weight: 600; border-radius: 99px; min-height: 50px }
@media (min-width: 40rem) { .azulejos { grid-template-columns: repeat(4, 1fr) } .roxo { grid-column: auto } }
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important } }
