* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #14233A;
  background: #e9edf3;
  -webkit-text-size-adjust: 100%;
}
button, a { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
.app {
  min-height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  background: #F4F6FA;
  display: flex;
  flex-direction: column;
  position: relative;
}
.msg-error {
  margin: 14px 22px 0;
  color: #B3261E;
  font-weight: 700;
  font-size: 16px;
  text-align: center;
}
.copia-notice {
  background: #E8EEF7;
  color: #12305C;
  font-size: 13.5px;
  font-weight: 700;
  text-align: center;
  padding: 8px 14px;
  line-height: 1.35;
}
.demo-banner {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #B3261E;
  color: #fff;
  font-weight: 800;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  text-align: center;
  padding: 10px 16px;
  line-height: 1.35;
}
.top, .nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px 8px;
}
.logo { display: flex; align-items: center; gap: 8px; font-size: 21px; font-weight: 700; color: #12305C; }
.logo b { color: #E8890C; font-weight: 800; }
.coin {
  width: 30px; height: 30px; border-radius: 50%; background: #E8890C; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800;
}
.user { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; color: #415670; }
.av {
  width: 30px; height: 30px; border-radius: 50%; background: #12305C; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 14px;
}
.back {
  font-size: 19px; font-weight: 700; color: #12305C; min-height: 48px; padding: 0 4px;
  display: inline-flex; align-items: center;
}
.main { flex: 1; display: flex; flex-direction: column; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
h1 { font-size: 26px; font-weight: 800; padding: 4px 22px 0; line-height: 1.2; }
.sub { font-size: 16px; color: #6A7B94; padding: 6px 22px 12px; }
.codebox {
  margin: 0 18px; background: #fff; border: 2px solid #12305C; border-radius: 20px; height: 92px;
  display: flex; align-items: center; justify-content: center; letter-spacing: 10px;
  font-size: 52px; font-weight: 800; color: #12305C;
}
.codebox.empty { color: #C5CDD8; letter-spacing: 14px; }
.codebox.long { letter-spacing: 4px; font-size: 40px; }
.codebox.err { border-color: #B3261E; color: #B3261E; }
.pad { margin: 16px 22px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.key {
  height: 58px; min-height: 48px; background: #fff; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700; box-shadow: 0 1px 2px rgba(18, 48, 92, .08);
  touch-action: manipulation;
}
.key:active { background: #E7EDF6; }
.key.ghost { background: transparent; box-shadow: none; color: #12305C; font-size: 26px; }
.btn {
  min-height: 56px; border-radius: 14px; background: #E8890C; color: #fff; font-weight: 800;
  font-size: 19px; margin: 14px 18px 0; text-align: center; display: flex; align-items: center; justify-content: center; gap: 8px;
  touch-action: manipulation;
}
.btn:active { filter: brightness(.96); }
.btn:disabled { opacity: .45; }
.btn.ghost { background: #12305C; }
.btn.wide { width: calc(100% - 36px); }
.rec { margin: 16px 18px 0; }
.rec h2 { font-size: 14px; letter-spacing: .6px; color: #6A7B94; font-weight: 700; text-transform: uppercase; margin-bottom: 8px; }
.rit {
  width: 100%; background: #fff; border-radius: 14px; padding: 12px 14px; min-height: 52px;
  display: flex; align-items: center; gap: 12px; margin-top: 8px; text-align: left;
  box-shadow: 0 1px 2px rgba(18, 48, 92, .07);
}
.rit .cd { font-size: 20px; font-weight: 800; color: #12305C; width: 64px; flex: none; }
.rit .nm { font-size: 16px; font-weight: 600; flex: 1; line-height: 1.2; }
.rit .go { color: #E8890C; font-weight: 700; font-size: 22px; }
.upd {
  margin-top: auto; padding: 14px 22px 8px; font-size: 13.5px; color: #6A7B94;
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dot.ok { background: #16A34A; }
.dot.bad { background: #F87171; }
.dot.copy { background: #E8890C; }
.msg { margin: 28px 24px 0; text-align: center; }
.eic {
  width: 76px; height: 76px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; font-size: 36px; font-weight: 800;
}
.eic.red { background: #FFD9D6; color: #B3261E; }
.eic.soft { background: #FFE8C8; color: #9A4A00; font-size: 40px; }
.msg h2 { font-size: 26px; line-height: 1.2; padding: 0; }
.msg p { font-size: 17px; color: #415670; margin: 10px 0 6px; line-height: 1.4; }
.lastok {
  margin: 22px 0 0; background: #fff; border-radius: 14px; padding: 14px;
  font-size: 15.5px; color: #6A7B94; line-height: 1.5; text-align: center;
}
.lastok b { color: #14233A; font-size: 19px; display: block; }
.small { font-size: 14.5px; color: #8A98AD; margin-top: 16px; }
.dh { padding: 2px 18px 10px; }
.dn { font-size: 24px; font-weight: 800; line-height: 1.15; }
.dc { font-size: 15.5px; color: #6A7B94; margin-top: 5px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; background: #E8EEF7; color: #12305C;
  font-weight: 700; font-size: 13.5px; padding: 3px 10px; border-radius: 12px;
}
.warn {
  margin: 0 14px 10px; background: #FFF4D6; color: #7A4E00; border-radius: 14px;
  padding: 12px 14px; font-weight: 800; font-size: 16px; line-height: 1.35;
}
.dupnote {
  margin: 0 18px 10px; color: #9A4A00; font-weight: 700; font-size: 15px; line-height: 1.35;
}
.ficha + .ficha { margin-top: 18px; padding-top: 8px; border-top: 8px solid #E7EDF6; }
.bigcard { margin: 0 14px; background: #12305C; color: #fff; border-radius: 20px; padding: 16px 18px 14px; }
.bigcard.favor { background: #0E4D45; }
.tl { font-size: 13px; letter-spacing: 1.2px; opacity: .75; font-weight: 700; }
.tv { font-size: 40px; font-weight: 800; letter-spacing: -.5px; margin-top: 2px; line-height: 1.1; }
.badge { display: inline-block; margin-top: 10px; padding: 6px 12px; border-radius: 14px; font-size: 15px; font-weight: 700; }
.badge.g { background: #DCF5E4; color: #17703A; }
.badge.y { background: #FFF1BF; color: #8A6200; }
.badge.o { background: #FFDDBB; color: #9A4A00; }
.badge.r { background: #FFD9D6; color: #B3261E; }
.badge.w { background: rgba(255, 255, 255, .16); color: #fff; }
.badge.s { font-size: 12.5px; padding: 2px 8px; margin-top: 0; }
.info { margin: 10px 14px 0; background: #fff; border-radius: 16px; padding: 4px 16px; }
.info .row { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid #EAEFF6; font-size: 15.5px; gap: 12px; }
.info .row:last-child { border: 0; }
.info .k { color: #6A7B94; }
.info .v { font-size: 17px; font-weight: 800; text-align: right; }
.info .addr { flex-wrap: wrap; }
.info .addr .v { width: 100%; text-align: left; margin-top: 2px; font-weight: 800; }
.map {
  display: inline-flex; align-items: center; min-height: 44px; color: #E8890C; font-weight: 800;
  text-decoration: none; width: 100%;
}
.sec { margin: 14px 18px 4px; font-size: 16.5px; font-weight: 800; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sec em { font-style: normal; color: #12305C; font-size: 16px; }
.lines { margin: 4px 14px 0; background: #fff; border-radius: 16px; padding: 0 14px; }
.ln { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #EAEFF6; gap: 8px; }
.ln:last-child { border: 0; }
.ld { font-size: 16.5px; font-weight: 700; }
.lsub { font-size: 12.5px; color: #8A98AD; margin-top: 1px; }
.lr { text-align: right; display: flex; align-items: center; gap: 8px; }
.la { font-size: 17px; font-weight: 700; }
.admin-h { padding: 4px 18px 8px; }
.admin-h h1 { padding: 0; font-size: 26px; }
.admin-h p { color: #6A7B94; font-size: 15.5px; margin-top: 6px; line-height: 1.4; }
.counts { display: flex; gap: 8px; padding: 8px 18px 4px; }
.count {
  background: #fff; border-radius: 14px; padding: 10px 12px; flex: 1;
  box-shadow: 0 1px 2px rgba(18, 48, 92, .06);
}
.count b { display: block; font-size: 22px; color: #12305C; }
.count span { color: #6A7B94; font-size: 13px; font-weight: 700; }
.icard { margin: 10px 14px; background: #fff; border-radius: 16px; padding: 12px 14px; box-shadow: 0 1px 2px rgba(18, 48, 92, .06); }
.icard .nm { font-size: 17px; font-weight: 800; line-height: 1.25; }
.icard .meta { color: #6A7B94; font-size: 14px; margin-top: 3px; }
.icard .pend { margin-top: 6px; font-weight: 800; color: #12305C; }
.motivo { margin-top: 8px; background: #FFF4D6; color: #7A4E00; border-radius: 10px; padding: 8px 10px; font-size: 14.5px; font-weight: 650; line-height: 1.35; }
details.bajas { margin: 12px 14px 20px; }
details.bajas summary { font-weight: 800; color: #12305C; min-height: 48px; display: flex; align-items: center; cursor: pointer; }
.empty { margin: 28px 22px; color: #415670; font-size: 17px; line-height: 1.4; }
:focus-visible { outline: 3px solid #E8890C; outline-offset: 2px; }
