/* =========================================================
   SOS Buddy · app.css
   Layout do aplicativo (menu lateral, cabeçalho, barra do
   celular) e o visual de cada página.
   ========================================================= */

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 10px;
}
.skip:focus { top: 12px; color: #fff; }

.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: calc(100vh - 37px); }

/* ---------- Menu lateral ---------- */
.sidebar {
  background: var(--navy); color: #FFFFFF;
  padding: 28px 18px;
  display: flex; flex-direction: column; gap: 32px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; padding: 0 8px; }
.brand:hover { color: inherit; }
.brand img { width: 38px; height: 38px; }
.brand span { font-family: var(--display); font-weight: 900; font-size: 21px; }

.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 12px;
  color: #C9D6EA; text-decoration: none; font-size: 15px; font-weight: 500;
  transition: background .15s ease, color .15s ease;
}
.nav a:hover { background: rgba(255, 255, 255, .07); color: #FFFFFF; }
.nav a[aria-current="page"] { background: var(--blue-ink); color: #FFFFFF; font-weight: 700; }
.nav .count {
  margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  background: var(--danger); color: #fff; font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}

.account-box {
  margin-top: auto;
  background: rgba(255, 255, 255, .07);
  border-radius: 14px; padding: 12px;
  display: flex; align-items: center; gap: 12px;
}
.account-box .who { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.account-box strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-box small { font-size: 12px; color: #B9C8DE; }
.account-box a { color: #C9D6EA; display: inline-flex; padding: 8px; border-radius: 8px; }
.account-box a:hover { color: #fff; background: rgba(255, 255, 255, .08); }

/* ---------- Conteúdo ---------- */
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  padding: 32px 40px 0;
}
.topbar h1 { font-size: 30px; font-weight: 900; }
.topbar p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.mobile-brand { display: none; }

.bell {
  position: relative; width: 44px; height: 44px; border-radius: 12px;
  background: var(--surface); color: var(--text); box-shadow: var(--shadow);
  display: inline-flex; align-items: center; justify-content: center;
}
.bell:hover { color: var(--text); box-shadow: var(--shadow-lg); }
.bell-count {
  position: absolute; top: -4px; right: -4px;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--danger); color: #fff; font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.bell-count:empty { display: none; }
.account-chip {
  background: var(--surface); border-radius: 12px; padding: 6px 14px 6px 6px;
  display: inline-flex; align-items: center; gap: 10px; box-shadow: var(--shadow);
  text-decoration: none; color: var(--text); font-weight: 600; font-size: 14px;
}
.account-chip:hover { color: var(--text); box-shadow: var(--shadow-lg); }

#view { padding: 28px 40px 56px; display: flex; flex-direction: column; gap: 24px; outline: none; }

.row-wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.col-main { flex: 2 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.col-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.col-half { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* Faixa de boas-vindas com o mascote */
.welcome {
  background: var(--sky); border-radius: var(--r-lg);
  padding: 18px 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 22px;
}
.welcome img { width: 74px; height: auto; }
.welcome .txt { flex: 1 1 300px; min-width: 0; }
.welcome strong { font-family: var(--display); font-size: 20px; display: block; }
.welcome p { color: var(--text-2); margin-top: 2px; }
.dot-red { width: 10px; height: 10px; border-radius: 50%; background: var(--red); flex: 0 0 auto; }

/* Indicadores */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat {
  background: var(--surface); border-radius: 18px; padding: 20px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--text);
}
.stat:hover { color: var(--text); }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--muted); font-weight: 500; }
.stat-ico { width: 38px; height: 38px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.stat-val { display: flex; align-items: baseline; gap: 8px; }
.stat-val strong { font-family: var(--display); font-size: 36px; line-height: 1; }
.stat-val span { font-size: 13px; color: var(--muted); }
.tone-blue { background: var(--sky); color: var(--blue-ink); }
.tone-green { background: var(--ok-bg); color: var(--ok-ink); }
.tone-red { background: var(--off-bg); color: var(--off-ink); }
.tone-yellow { background: var(--warn-bg); color: var(--warn-ink); }
.tone-gray { background: var(--surface-2); color: var(--text-2); }

/* Cartões pequenos de criança (Dashboard) */
.mini-kids { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.mini-kid {
  border: 1.5px solid var(--line); border-radius: var(--r); padding: 16px;
  text-decoration: none; color: var(--text);
  display: flex; flex-direction: column; gap: 10px;
}
.mini-kid:hover { color: var(--text); }
.person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.person .who { display: flex; flex-direction: column; min-width: 0; }
.person strong { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person small { font-size: 13px; color: var(--muted); }

/* Situação do sistema */
.status-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border-radius: 14px; text-decoration: none; color: var(--text);
}
.status-row:hover { color: var(--text); filter: brightness(.98); }
.status-row .dot { width: 12px; height: 12px; border-radius: 50%; flex: 0 0 auto; }
.status-row .who { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.status-row strong { font-size: 14px; }
.status-row small { font-size: 12px; color: var(--text-2); }
.st-ok { background: var(--ok-bg); } .st-ok .dot { background: var(--green); } .st-ok .lbl { color: var(--ok-ink); }
.st-warn { background: var(--warn-bg); } .st-warn .dot { background: var(--yellow); } .st-warn .lbl { color: var(--warn-ink); }
.st-off { background: var(--off-bg); } .st-off .dot { background: var(--red); } .st-off .lbl { color: var(--off-ink); }
.status-row .lbl { font-size: 12px; font-weight: 700; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* Listas com divisórias */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.list-item:first-child { border-top: 0; }
.list-item .txt { flex: 1 1 auto; min-width: 0; font-size: 14px; }
.list-item .txt small { display: block; color: var(--muted); font-size: 13px; }
.list-item time { font-size: 13px; color: var(--muted); white-space: nowrap; }
.ico-box { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }

/* Estado vazio com o ursinho */
.empty {
  text-align: center; padding: 36px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.empty img { width: 96px; height: auto; opacity: .95; }
.empty strong { font-family: var(--display); font-size: 19px; }
.empty p { color: var(--muted); max-width: 380px; }

/* ---------- Crianças ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.search {
  flex: 1 1 280px; max-width: 420px;
  background: var(--surface); border-radius: 12px; padding: 0 14px;
  display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow); color: var(--muted);
}
.search input { border: 0; outline: none; background: transparent; flex: 1 1 auto; min-height: 46px; color: var(--text); min-width: 0; }
.search:focus-within { box-shadow: 0 0 0 3px rgba(52, 120, 246, .25); }

.kid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.kid-card { display: flex; flex-direction: column; gap: 16px; }
.kid-card .person strong { font-family: var(--display); font-size: 19px; }
.kid-card .person { flex: 1 1 auto; }
.kid-card-top { display: flex; align-items: center; gap: 10px; }
.facts {
  margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
  background: var(--surface-2); border-radius: 14px; padding: 14px;
}
.facts dt { font-size: 12px; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.facts .span-2 { grid-column: span 2; }
.card-actions { display: flex; gap: 8px; }
.card-actions .btn { flex: 1 1 auto; min-height: 42px; font-size: 14px; }
.card-actions .btn-icon { flex: 0 0 44px; }

.photo-pick { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.photo-pick .who { display: flex; flex-direction: column; gap: 8px; }

/* Detalhe da criança */
.crumbs { font-size: 14px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.crumbs a { font-weight: 600; text-decoration: none; }
.profile { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.profile .who { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.profile h2 { font-size: 30px; font-weight: 900; }
.note { background: var(--warn-bg); color: var(--warn-ink); padding: 10px 12px; border-radius: 10px; }
.buddy-card { background: var(--sky); border-radius: var(--r-lg); padding: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.buddy-card img { width: 92px; height: auto; }
.buddy-card .who { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.buddy-card strong { font-family: var(--display); font-size: 21px; }

/* ---------- Dispositivo ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--field); background: var(--surface); color: var(--text);
  font-weight: 600; font-size: 14px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.chip[aria-pressed="true"], .chip[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #FFFFFF; }
:root[data-theme="dark"] .chip[aria-pressed="true"], :root[data-theme="dark"] .chip[aria-selected="true"] { background: var(--blue-ink); border-color: var(--blue-ink); }

.device-hero {
  background: linear-gradient(180deg, var(--sky) 0%, var(--surface) 100%);
  border-radius: 24px; padding: 28px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center;
}
.device-hero .tags { align-self: stretch; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.code-tag { background: var(--surface); color: var(--blue-dark); font-size: 12px; font-weight: 700; letter-spacing: .05em; padding: 6px 12px; border-radius: 999px; }
.bear-wrap { position: relative; width: 280px; max-width: 100%; }
.bear-wrap img { width: 100%; height: auto; }
.bear-wrap .sos-dot {
  position: absolute; left: 50%; top: 73.6%;
  width: 23%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%;
}
.bear-wrap.off img { filter: grayscale(.85); opacity: .7; }
.bear-wrap.off .sos-dot { animation: none; }
.device-hero h2 { font-size: 22px; }

.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.info { background: var(--surface); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.info span { font-size: 13px; color: var(--muted); }
.info strong { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 17px; overflow-wrap: anywhere; }
.bar { margin-top: 10px; height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 4px; }

.sim-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sim-actions .btn { flex: 1 1 210px; }
.btn-sos { background: var(--danger); color: #FFFFFF; font-weight: 800; font-size: 16px; min-height: 54px; border-radius: 14px; }
.btn-sos:hover { background: #A93226; color: #fff; }

/* Janela da emergência simulada */
.modal.sos { padding: 0; overflow: hidden; width: 480px; margin-top: 8vh; }
.sos-head { background: var(--danger); color: #FFFFFF; padding: 28px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.sos-head .ring { width: 66px; height: 66px; border-radius: 50%; background: #FFFFFF; color: var(--danger); display: inline-flex; align-items: center; justify-content: center; }
.sos-head h2 { font-size: 26px; font-weight: 900; }
.sos-body { padding: 22px 28px 26px; display: flex; flex-direction: column; gap: 12px; }
.sos-body .done { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.sos-body .done svg { color: var(--ok-ink); }
.sos-body .disclaimer { font-size: 13px; color: var(--muted); background: var(--surface-2); border-radius: 10px; padding: 10px 12px; }
.sos-body .row { display: flex; gap: 10px; margin-top: 4px; }
.sos-body .row .btn { flex: 1 1 0; }
.sos-backdrop { background: rgba(110, 20, 12, .55); }

/* ---------- Alertas ---------- */
.alert-head, .alert-row {
  display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.3fr) 110px 80px 110px;
  align-items: center; gap: 12px; padding: 12px 20px;
}
.alert-head { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; padding-top: 16px; }
.alert-row {
  width: 100%; border: 0; border-top: 1px solid var(--line); background: none;
  text-align: left; cursor: pointer; color: var(--text); font-size: 14px;
  transition: background .15s ease;
}
.alert-row:hover { background: var(--surface-2); }
.alert-row:focus-visible { outline-offset: -3px; }
.ar-type { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ar-type strong { display: block; font-weight: 600; }
.ar-type small { display: block; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-type > span:last-child { min-width: 0; }
.ar-date, .ar-time { color: var(--text-2); }
@media (max-width: 760px) {
  .alert-head { display: none; }
  .alert-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "type status" "meta meta"; row-gap: 6px; padding: 14px 16px; }
  .ar-type { grid-area: type; }
  .ar-status { grid-area: status; }
  .ar-kid, .ar-date, .ar-time { display: none; }
  .alert-row::after { content: attr(data-meta); grid-area: meta; color: var(--muted); font-size: 13px; padding-left: 48px; }
}
.table-box { overflow-x: auto; }
.table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; padding: 16px 12px; }
.table th:first-child, .table td:first-child { padding-left: 20px; }
.table td { padding: 12px; border-top: 1px solid var(--line); }
.table tr.sel td { background: var(--sky); }
.row-btn { all: unset; cursor: pointer; display: flex; align-items: center; gap: 12px; font-weight: 600; border-radius: 8px; }
.row-btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.detail-head { padding: 22px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.detail-head strong { font-family: var(--display); font-size: 22px; }
.detail-body { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.card.flush { padding: 0; overflow: hidden; }

/* Mapa ilustrativo e linha do tempo do alerta */
.mapa-ilustrativo { position: relative; border-radius: 14px; overflow: hidden; }
.mapa-ilustrativo img { width: 100%; height: 100%; object-fit: cover; }
.mapa-pin { position: absolute; left: 44%; top: 26%; display: inline-flex; border-radius: 50%; animation: pulse-red 2.2s ease-out infinite; }
.mapa-tip { position: absolute; right: 10px; bottom: 10px; background: #FFFFFF; color: #55657D; border-radius: 10px; padding: 6px 10px; font-size: 12px; line-height: 1.4; box-shadow: 0 6px 16px rgba(20, 43, 74, .12); }
.mapa-tip code { color: #142B4A; font-weight: 700; font-family: ui-monospace, Consolas, monospace; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.timeline li { position: relative; padding: 0 0 14px 22px; font-size: 14px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--blue-ink); }
.timeline li::after { content: ""; position: absolute; left: 8px; top: 18px; bottom: 0; width: 1.5px; background: var(--line); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline time { display: block; color: var(--muted); font-size: 12px; }
.timeline li.novo { animation: pop .35s ease; }
.status-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.status-actions .btn { min-height: 40px; font-size: 14px; padding: 0 14px; }
.status-actions .btn[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Contatos ---------- */
.contact-card { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; border: 2px solid transparent; }
.contact-card.is-main { border-color: var(--blue); }
.contact-card .who { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.contact-card .name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.contact-card .name strong { font-family: var(--display); font-size: 18px; }
.contact-card .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.contact-card .acts .btn { min-height: 40px; font-size: 14px; padding: 0 14px; }

/* ---------- Configurações ---------- */
.pref { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.pref:first-of-type { border-top: 0; }
.pref .txt { flex: 1 1 auto; min-width: 0; }
.pref .txt strong { font-size: 15px; display: block; }
.pref .txt small { color: var(--muted); font-size: 13px; }
.data-actions { display: flex; flex-direction: column; gap: 10px; }
.data-actions .btn { justify-content: flex-start; min-height: 52px; padding: 0 16px; white-space: normal; text-align: left; }

/* ---------- Mais (celular) ---------- */
.menu-list { display: flex; flex-direction: column; }
.menu-list a, .menu-list button {
  display: flex; align-items: center; gap: 12px; padding: 16px 4px;
  border: 0; border-top: 1px solid var(--line); background: none;
  text-decoration: none; color: var(--text); font-weight: 600; font-size: 15px; cursor: pointer; text-align: left; width: 100%;
}
.menu-list > :first-child { border-top: 0; }
.menu-list .ico-box { background: var(--sky); color: var(--blue-ink); }
.menu-list .end { margin-left: auto; color: var(--muted); }

/* ---------- Barra inferior (celular) ---------- */
.bottom-nav { display: none; }

/* Visualização compacta */
:root[data-compact="true"] #view { gap: 16px; padding-top: 20px; }
:root[data-compact="true"] .card { padding: 16px; }
:root[data-compact="true"] .stat { padding: 14px; }
:root[data-compact="true"] .stat-val strong { font-size: 28px; }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .topbar { padding: 16px 16px 0; }
  .topbar h1 { font-size: 24px; }
  .topbar p { font-size: 14px; }
  .mobile-brand { display: flex; align-items: center; gap: 8px; width: 100%; justify-content: space-between; }
  .mobile-brand a.brand { padding: 0; }
  .mobile-brand .brand span { font-size: 19px; color: var(--text); }
  .mobile-brand .brand img { width: 34px; height: 34px; }
  .topbar .top-actions { display: none; }
  .mobile-brand .top-actions { display: flex; }
  .account-chip .name { display: none; }
  .account-chip { padding: 6px; }
  #view { padding: 18px 16px 104px; gap: 18px; }
  .card { padding: 18px; }
  .welcome { padding: 16px 18px; }
  .welcome img { width: 56px; }

  .bottom-nav {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--surface); border-top: 1px solid var(--line);
    padding: 6px 6px calc(10px + env(safe-area-inset-bottom));
  }
  .bottom-nav a {
    position: relative;
    min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    text-decoration: none; font-size: 11px; font-weight: 500; color: var(--muted);
  }
  .bottom-nav a[aria-current="page"] { color: var(--blue-ink); font-weight: 700; }
  :root[data-theme="dark"] .bottom-nav a[aria-current="page"] { color: #9EC0FF; }
  .bottom-nav .count {
    position: absolute; top: 4px; left: 54%;
    min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
    background: var(--danger); color: #fff; font-size: 10px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
  }
}

@media (max-width: 560px) {
  .stats { gap: 10px; }
  .stat { padding: 14px; gap: 10px; }
  .stat-val strong { font-size: 28px; }
  .stat-top { font-size: 12px; }
  .stat-ico { width: 32px; height: 32px; }
  .kid-grid { grid-template-columns: 1fr; }
  .info-grid { gap: 10px; }
  .info { padding: 14px; }
  .info strong { font-size: 15px; }
  .device-hero { padding: 18px; }
  .bear-wrap { width: 180px; }
  .profile h2 { font-size: 24px; }
  .facts { grid-template-columns: 1fr; }
  .facts .span-2 { grid-column: auto; }
}
