:root {
  --red: #d12027;
  --red-dark: #a8171d;
  --yellow: #ffce00;
  --blue: #1aa3e0;
  --blue-dark: #0d7cb0;
  --green: #2e9e5b;
  --orange: #e8820c;
  --ink: #1e2430;
  --muted: #6b7684;
  --line: #e4e8ee;
  --bg: #f4f6f9;
  --card: #ffffff;
  --shadow: 0 2px 10px rgba(20, 30, 50, .07);
  --radius: 16px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

/* ---------- Antet ---------- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  padding-top: calc(10px + env(safe-area-inset-top));
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  box-shadow: 0 2px 12px rgba(168, 23, 29, .3);
}
.app-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  padding: 2px;
  flex: 0 0 auto;
}
.app-title { display: flex; flex-direction: column; line-height: 1.1; }
.app-title strong { font-size: 20px; letter-spacing: .5px; }
.app-title span { font-size: 12px; opacity: .9; }
.demo-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .5px;
  background: var(--yellow);
  color: var(--red-dark);
  padding: 4px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ---------- Layout ---------- */
.view {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 16px 96px;
}
.page-head { margin: 4px 2px 16px; }
.page-head h1 { font-size: 22px; margin: 0; }
.page-head .date { color: var(--muted); font-size: 14px; }

/* ---------- Carduri ---------- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 14px;
}
.card h2 { font-size: 15px; margin: 0 0 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }

/* ---------- Statistici mari ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.stat {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 12px;
  text-align: center;
  border-top: 4px solid var(--blue);
}
.stat.red { border-color: var(--red); }
.stat.blue { border-color: var(--blue); }
.stat.orange { border-color: var(--orange); }
.stat .num { font-size: 34px; font-weight: 800; line-height: 1; }
.stat .lbl { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ---------- Rânduri categorii ---------- */
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.row:last-child { border-bottom: none; }
.row .row-label { display: flex; align-items: center; gap: 10px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); flex: 0 0 auto; }
.row .count { font-weight: 700; font-size: 18px; }
.bar { height: 8px; border-radius: 6px; background: var(--line); overflow: hidden; margin-top: 6px; }
.bar > span { display: block; height: 100%; background: var(--blue); border-radius: 6px; }

/* ---------- Gauge documentare ---------- */
.gauge { display: flex; align-items: center; gap: 18px; }
.gauge .ring {
  --p: 0;
  width: 96px; height: 96px; border-radius: 50%;
  background: conic-gradient(var(--green) calc(var(--p) * 1%), var(--line) 0);
  display: grid; place-items: center; flex: 0 0 auto;
}
.gauge .ring::after {
  content: attr(data-val);
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--card);
  display: grid; place-items: center;
  font-weight: 800; font-size: 18px; color: var(--green);
}
.gauge .g-text strong { font-size: 16px; }
.gauge .g-text p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

/* ---------- Butoane ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 12px;
  padding: 13px 18px;
  font-size: 16px; font-weight: 700;
  cursor: pointer;
  width: 100%;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:active { background: var(--red-dark); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-ghost { background: #eef2f7; color: var(--ink); }
.btn-ghost:active { background: #e2e8f0; }
.btn-row { display: flex; gap: 10px; margin-top: 8px; }
.btn-row .btn { width: auto; flex: 1; }
.btn[disabled] { opacity: .5; }

/* ---------- Înregistrare vocală ---------- */
.mic-wrap { text-align: center; padding: 8px 0 4px; }
.mic-btn {
  width: 110px; height: 110px; border-radius: 50%;
  border: none; cursor: pointer;
  background: radial-gradient(circle at 30% 30%, #ff5a60, var(--red));
  color: #fff; font-size: 44px;
  box-shadow: 0 8px 24px rgba(209, 32, 39, .4);
  transition: transform .1s;
}
.mic-btn:active { transform: scale(.95); }
.mic-btn.rec { animation: pulse 1.3s infinite; background: radial-gradient(circle at 30% 30%, #ff3b41, var(--red-dark)); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(209,32,39,.45); }
  70% { box-shadow: 0 0 0 22px rgba(209,32,39,0); }
  100% { box-shadow: 0 0 0 0 rgba(209,32,39,0); }
}
.mic-hint { color: var(--muted); font-size: 14px; margin-top: 10px; }
.transcript {
  min-height: 70px;
  background: #f7f9fc;
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 12px;
  margin-top: 12px;
  font-size: 15px;
  white-space: pre-wrap;
}
.transcript .interim { color: var(--muted); }
.transcript.empty { color: var(--muted); font-style: italic; }

/* ---------- Formular ---------- */
.section-title {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; margin: 18px 0 8px; color: var(--red-dark);
}
.section-title .n {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--red); color: #fff;
  display: grid; place-items: center; font-size: 13px;
}
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 5px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 16px;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
}
.field textarea { min-height: 64px; resize: vertical; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Vitale cu 3 stări */
.vital {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.vital:last-child { border-bottom: none; }
.vital .v-name { font-weight: 600; font-size: 14px; }
.vital .v-input { display: flex; align-items: center; gap: 6px; }
.vital .v-input input { width: 92px; text-align: center; }
.vital .v-input .unit { font-size: 12px; color: var(--muted); min-width: 40px; }
.state-pills { display: flex; gap: 4px; margin-top: 6px; grid-column: 1 / -1; }
.state-pill {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 11px;
  cursor: pointer;
  color: var(--muted);
}
.state-pill.on-normal { background: var(--green); color: #fff; border-color: var(--green); }
.state-pill.on-abn { background: var(--orange); color: #fff; border-color: var(--orange); }
.state-pill.on-na { background: #94a3b8; color: #fff; border-color: #94a3b8; }

/* Checkbox grup */
.chk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chk {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 10px;
  padding: 10px; font-size: 14px; cursor: pointer;
}
.chk input { width: 18px; height: 18px; }
.chk.on { border-color: var(--blue); background: #eaf6fd; }

/* ---------- Tabel cazuri ---------- */
.case-list { display: flex; flex-direction: column; gap: 10px; }
.case-item {
  background: var(--card);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 12px 14px;
  border-left: 4px solid var(--blue);
}
.case-item.urg { border-left-color: var(--red); }
.case-item .ci-top { display: flex; justify-content: space-between; align-items: baseline; }
.case-item .ci-code { font-weight: 700; }
.case-item .ci-time { color: var(--muted); font-size: 13px; }
.case-item .ci-cat { font-size: 13px; color: var(--blue-dark); font-weight: 600; margin-top: 2px; }
.case-item .ci-desc { font-size: 14px; color: var(--ink); margin-top: 4px; }
.case-item .ci-flags { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.flag { font-size: 11px; padding: 3px 8px; border-radius: 16px; font-weight: 600; }
.flag.ok { background: #e6f6ec; color: var(--green); }
.flag.warn { background: #fdf0e0; color: var(--orange); }
.flag.inc { background: #fce8e9; color: var(--red); }
.flag.mon { background: #eaf6fd; color: var(--blue-dark); }

.empty-state { text-align: center; color: var(--muted); padding: 40px 20px; }
.empty-state .big { font-size: 48px; opacity: .4; }

/* ---------- Raport ---------- */
.report {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
.report h1 { font-size: 20px; margin: 0 0 2px; }
.report .sub { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.report h3 { font-size: 15px; margin: 18px 0 8px; color: var(--red-dark); border-bottom: 2px solid var(--line); padding-bottom: 4px; }
.report ul { margin: 6px 0; padding-left: 20px; }
.report li { margin: 3px 0; font-size: 14px; }
.report table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 8px 0; }
.report th, .report td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.report th { color: var(--muted); font-weight: 600; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 8px 0; }
.kpi { background: #f7f9fc; border-radius: 10px; padding: 10px 12px; }
.kpi .k { font-size: 12px; color: var(--muted); }
.kpi .v { font-size: 20px; font-weight: 800; }

/* ---------- Navigare jos ---------- */
.tabbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  background: var(--card);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -2px 10px rgba(20,30,50,.06);
}
.tab {
  flex: 1;
  border: none; background: none;
  padding: 8px 4px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 11px; color: var(--muted);
  cursor: pointer;
}
.tab .tab-ico { font-size: 20px; line-height: 1; }
.tab.active { color: var(--red); font-weight: 700; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%; bottom: 80px;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff;
  padding: 11px 18px; border-radius: 24px;
  font-size: 14px;
  opacity: 0; pointer-events: none;
  transition: all .25s;
  z-index: 50;
  max-width: 90%;
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.note {
  font-size: 12px; color: var(--muted);
  text-align: center; margin: 10px 2px 0;
  font-style: italic;
}

@media print {
  .app-header, .tabbar, .btn-row, .btn { display: none !important; }
  .view { padding: 0; }
  .report { box-shadow: none; }
}

/* ---------- SAM-GUIDE (ghid interactiv) ---------- */
.guide-top {
  display: flex; align-items: center; gap: 8px;
  margin: -4px -2px 12px;
}
.gt-back, .gt-close, .gt-spk {
  border: none; background: #eef2f7; color: var(--ink);
  border-radius: 10px; padding: 8px 12px; font-size: 14px; font-weight: 700; cursor: pointer;
}
.gt-close { margin-left: auto; }
.gt-spk { margin-left: auto; }
.gt-spk + .gt-close { margin-left: 6px; }
.gt-title { font-weight: 700; font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.guide-wrap { padding-top: 4px; }
.step-ind {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: .4px;
  color: var(--blue-dark); background: #eaf6fd;
  padding: 4px 10px; border-radius: 20px; margin-bottom: 14px;
}
.step-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 18px;
  border-top: 5px solid var(--blue);
}
.step-card.w { border-top-color: var(--orange); }
.step-card.stop { border-top-color: var(--red); }
.step-card.final { border-top-color: var(--green); }
.step-card.i { border-top-color: var(--blue); }
.step-card.c { border-top-color: var(--blue-dark); }

.step-badge {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .5px;
  color: var(--blue-dark); background: #eaf6fd;
  padding: 4px 10px; border-radius: 16px; margin-bottom: 10px;
}
.step-badge.warn { color: #fff; background: var(--orange); }
.step-badge.stopb { color: #fff; background: var(--red); }
.step-badge.okb { color: #fff; background: var(--green); }

.step-text { font-size: 20px; font-weight: 600; line-height: 1.35; margin-bottom: 18px; }

.opt-list { display: flex; flex-direction: column; gap: 10px; }
.opt-btn {
  width: 100%;
  border: 2px solid var(--blue);
  background: #fff; color: var(--blue-dark);
  border-radius: 14px; padding: 16px;
  font-size: 17px; font-weight: 700; cursor: pointer;
  text-align: left;
  display: flex; flex-direction: column; gap: 3px;
}
.opt-btn:active { background: #eaf6fd; }
.opt-btn.risc { border-color: var(--orange); color: var(--orange); }
.opt-btn.escal { border-color: var(--red); color: var(--red-dark); }
.opt-t { font-weight: 700; }
.opt-h { font-size: 13px; font-weight: 400; color: var(--muted); }

/* Test de cunoștințe (instruire) */
.q-opt.q-correct { border-color: var(--green); background: var(--green); color: #fff; }
.q-opt.q-wrong { border-color: var(--red); background: var(--red); color: #fff; }
.q-feedback { border-radius: 10px; padding: 12px; font-size: 14px; margin-top: 4px; }
.q-feedback.ok { background: #e6f6ec; color: #216e41; }
.q-feedback.no { background: #fce8e9; color: var(--red-dark); }

/* Fișă de citit (read mode) */
.rd-card { display: flex; flex-direction: column; gap: 2px; }
.rd-item { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.4; }
.rd-item:last-child { border-bottom: none; }
.rd-ic { flex: 0 0 auto; width: 22px; text-align: center; }
.rd-warn { color: var(--orange); }
.rd-stop { color: var(--red-dark); font-weight: 600; }
.rd-final { color: var(--green); }
.rd-expl { font-size: 13px; color: #216e41; background: #e9f7ee; border-radius: 8px; padding: 6px 8px; margin-top: 4px; }
.rd-opt { font-size: 14px; color: var(--muted); margin-top: 2px; }
.rd-list { margin: 6px 0 0; padding-left: 18px; }
.rd-list li { margin: 3px 0; font-size: 14px; }
.rd-h { color: var(--muted); }

/* Blocuri de comunicare (ce spui / ce întrebi) */
.com-card { border-left: 4px solid var(--blue); }
.com-row { padding: 7px 0; border-bottom: 1px solid var(--line); }
.com-row:last-child { border-bottom: none; }
.com-q { font-size: 15px; line-height: 1.4; }

/* Identificarea ambulanței */
.amb-badge {
  margin-left: auto;
  font-size: 11px; font-weight: 800; letter-spacing: .3px;
  background: rgba(255,255,255,.22); color: #fff;
  padding: 4px 10px; border-radius: 20px; white-space: nowrap;
}
.amb-badge + .demo-badge { margin-left: 6px; }
.amb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.amb-btn {
  border: 2px solid var(--blue); background: #fff; color: var(--blue-dark);
  border-radius: 14px; padding: 18px 10px; font-size: 17px; font-weight: 800; cursor: pointer;
}
.amb-btn:active { background: #eaf6fd; }
.amb-btn.on { background: var(--blue); color: #fff; }

/* Heatmap (analiză) */
.hm-wrap { display: flex; gap: 2px; overflow-x: auto; }
.hm-cell { flex: 1 0 9px; height: 26px; border-radius: 3px; }

/* Caz de discutat — apăsabil */
.caz-item {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: #f7f9fc; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; margin-bottom: 8px;
}
.caz-item:active { background: #eef2f7; }

.chk-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.chk-list .chk { font-size: 16px; padding: 14px; }
.chk.chk-col { flex-direction: column; align-items: flex-start; gap: 4px; }
.chk-top { display: flex; align-items: center; gap: 8px; }
.chk-t { font-weight: 600; }
.chk-h { font-size: 13px; color: var(--muted); font-weight: 400; padding-left: 26px; line-height: 1.35; }

.escal {
  background: #fce8e9; color: var(--red-dark);
  border-radius: 10px; padding: 10px 12px; font-size: 14px; font-weight: 600;
  margin-bottom: 16px;
}

.sop-btn { width: 100%; }

.sbar-box {
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0 0 14px;
}
.report .sbar-box { font-size: 12px; margin: 6px 0 12px; }

/* ---------- Mod Misiune / Instruire ---------- */
.mode-switch, .per-switch {
  display: flex; gap: 8px; margin-bottom: 8px;
}
.mode-opt, .per-opt {
  flex: 1; border: 2px solid var(--line); background: #fff; color: var(--muted);
  border-radius: 12px; padding: 12px 8px; font-size: 14px; font-weight: 700; cursor: pointer;
}
.mode-opt.on { border-color: var(--red); color: var(--red); background: #fdecec; }
.per-opt.on { border-color: var(--blue); color: var(--blue-dark); background: #eaf6fd; }

/* Buton urgențe */
.btn-urg { border: 2px solid var(--red); background: #fff; color: var(--red-dark); }
.btn-urg:active { background: #fdecec; }

/* Explicație (mod instruire) */
.expl {
  background: #e9f7ee; border-left: 4px solid var(--green);
  border-radius: 8px; padding: 10px 12px; font-size: 14px; color: #216e41;
  margin-bottom: 16px;
}

/* STOP – VERIFICĂ! */
.verif-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.verif-row {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px;
}
.verif-q { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.verif-btns { display: flex; gap: 8px; }
.vb {
  flex: 1; border: 2px solid var(--line); background: #fff; color: var(--muted);
  border-radius: 10px; padding: 10px; font-size: 14px; font-weight: 700; cursor: pointer;
}
.vb.sel-ok { border-color: var(--green); background: var(--green); color: #fff; }
.vb.sel-no { border-color: var(--red); background: var(--red); color: #fff; }

/* Bibliotecă vizuală */
.biblio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.biblio-card { background: var(--card); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.biblio-img {
  height: 110px; display: grid; place-items: center;
  background: #eef2f7; color: var(--muted); font-size: 32px;
}
.biblio-img.ph span { display: block; font-size: 11px; margin-top: 4px; }
.biblio-img img { width: 100%; height: 100%; object-fit: cover; }
.biblio-body { padding: 10px 12px; }
.biblio-title { font-weight: 700; font-size: 14px; }
.biblio-desc { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ---------- Monitorizare ABCDE (modul D) ---------- */
.abcde-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.abcde-row:last-of-type { border-bottom: none; }
.abcde-name { font-weight: 600; font-size: 14px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.abcde-l { width: 26px; height: 26px; border-radius: 8px; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 800; }
.abcde-opts { display: flex; gap: 6px; flex-wrap: wrap; }
.ab-opt {
  border: 2px solid var(--line); background: #fff; color: var(--muted);
  border-radius: 10px; padding: 8px 12px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.ab-opt.sel-ok { border-color: var(--green); background: var(--green); color: #fff; }
.ab-opt.sel-warn { border-color: var(--orange); background: var(--orange); color: #fff; }
.ab-opt.sel-crit { border-color: var(--red); background: var(--red); color: #fff; }

.param-row { display: flex; flex-direction: column; gap: 6px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.param-row:last-of-type { border-bottom: none; }
.param-name { font-size: 14px; font-weight: 600; }
.param-ref { font-size: 11px; color: var(--muted); font-weight: 400; }
.param-input { display: flex; gap: 8px; }
.param-input .pv { flex: 1; }
.param-input .ps { flex: 0 0 auto; width: 120px; }

.trend-wrap { overflow-x: auto; }
table.trend { border-collapse: collapse; width: 100%; font-size: 13px; }
table.trend th, table.trend td { border: 1px solid var(--line); padding: 6px 8px; text-align: center; white-space: nowrap; }
table.trend th { background: #f7f9fc; color: var(--muted); font-weight: 600; }
table.trend td.pname, table.trend th:first-child { text-align: left; font-weight: 600; position: sticky; left: 0; background: #fff; }
table.trend th:first-child { background: #f7f9fc; }
table.trend td.muted { color: #b0b8c2; }
table.trend td.cell-warn { background: #fdf0e0; color: var(--orange); font-weight: 700; }
.src-r { font-size: 10px; color: var(--blue-dark); }
.crit-dot { color: var(--red); font-size: 10px; }

/* ---------- Mod MISIUNE: butoane mari (tile-uri) ---------- */
.tile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.tile {
  border: none; border-radius: 18px; cursor: pointer;
  color: #fff; font-size: 18px; font-weight: 800; line-height: 1.2;
  padding: 22px 12px; min-height: 120px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  text-align: center;
  box-shadow: var(--shadow);
}
.tile small { font-size: 12px; font-weight: 500; opacity: .9; }
.tile .tile-ic { font-size: 40px; line-height: 1; }
.tile:active { transform: scale(.97); }
.tile-red { background: linear-gradient(135deg, #e5484d, var(--red)); }
.tile-blue { background: linear-gradient(135deg, #39b0e8, var(--blue)); }
.tile-blue2 { background: linear-gradient(135deg, #2f7fd1, var(--blue-dark)); }
.tile-green { background: linear-gradient(135deg, #39b56a, var(--green)); }
.tile-orange { background: linear-gradient(135deg, #f0962c, var(--orange)); }
.tile-grey { background: linear-gradient(135deg, #5b6677, #39414f); }
.view-inner { padding-top: 2px; }
