:root {
  --orange: #ff5500;
  --orange-deep: #c63f00;
  --orange-soft: #fff0e8;
  --ink: #171717;
  --ink-2: #272727;
  --slate: #5f6468;
  --steel: #d8dcde;
  --steel-dark: #aeb4b7;
  --cream: #f2f0e9;
  --paper: #fbfaf6;
  --white: #ffffff;
  --danger: #a3131f;
  --danger-soft: #fff0f1;
  --success: #176445;
  --success-soft: #eaf7f1;
  --blue: #1746d1;
  --shadow: 0 18px 50px rgba(23, 23, 23, 0.09);
  --shadow-strong: 0 30px 80px rgba(23, 23, 23, 0.18);
  --display: "Barlow Condensed", "Bahnschrift Condensed", sans-serif;
  --body: "Atkinson Hyperlegible", "Aptos", sans-serif;
  --sidebar-width: 276px;
  --cut: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(23, 23, 23, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 23, 23, 0.028) 1px, transparent 1px);
  background-size: 32px 32px;
  content: "";
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

body[data-view="public"] {
  background: var(--paper);
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 0.98;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(2.55rem, 5vw, 4.7rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: 8px;
  font-size: clamp(1.75rem, 2.5vw, 2.35rem);
  letter-spacing: -0.02em;
}

h3 {
  margin-bottom: 6px;
  font-size: 1.45rem;
}

button,
a,
input,
select,
textarea {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

::selection {
  color: var(--ink);
  background: var(--orange);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

.sr-only,
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.icon {
  width: 1.18em;
  height: 1.18em;
  flex: 0 0 auto;
}

.eyebrow {
  display: inline-block;
  color: var(--orange-deep);
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.eyebrow--light {
  color: #ff8b51;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand__mark {
  position: relative;
  width: 52px;
  height: 42px;
  overflow: hidden;
  flex: 0 0 auto;
  background: var(--white);
  clip-path: polygon(0 0, 100% 0, 91% 100%, 9% 100%);
}

.brand__mark img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center top;
}

.brand__type {
  display: grid;
  line-height: 0.78;
}

.brand__type strong {
  font-family: var(--display);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: 0.025em;
}

.brand__type span {
  color: var(--orange-deep);
  font-family: var(--display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.23em;
}

.brand--light .brand__type strong {
  color: var(--white);
}

.brand--light .brand__type span {
  color: #ff8b51;
}

.brand--compact .brand__mark {
  width: 43px;
  height: 34px;
}

.brand--compact .brand__type strong {
  font-size: 1.35rem;
}

.brand--compact .brand__type span {
  font-size: 0.58rem;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 18px;
  border: 1px solid transparent;
  background: none;
  clip-path: var(--cut);
  cursor: pointer;
  font-family: var(--display);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  line-height: 1;
  transition:
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

.button:focus-within {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.button--primary {
  color: var(--ink);
  background: var(--orange);
  box-shadow: 0 8px 22px rgba(255, 85, 0, 0.22);
}

.button--primary:hover {
  background: #ff6b21;
  box-shadow: 0 12px 25px rgba(255, 85, 0, 0.28);
}

.button--ghost {
  border-color: var(--steel-dark);
  background: rgba(255, 255, 255, 0.55);
}

.button--ghost:hover {
  border-color: var(--ink);
  background: var(--white);
}

.button--light {
  color: var(--ink);
  background: var(--white);
}

.button--small {
  min-height: 40px;
  padding: 9px 13px;
  font-size: 0.88rem;
}

.button--call {
  color: var(--white);
  background: var(--danger);
  box-shadow: 0 10px 30px rgba(163, 19, 31, 0.25);
}

.button--call:hover {
  background: #86101a;
}

.icon-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--steel);
  background: var(--white);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.icon-button:hover {
  z-index: 1;
  border-color: var(--orange);
  color: var(--orange-deep);
  transform: translateY(-1px);
}

.icon-button--light {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
  background: transparent;
}

.icon-button--danger:hover {
  border-color: var(--danger);
  color: var(--danger);
  background: var(--danger-soft);
}

.text-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 4px;
  padding: 0;
  color: var(--ink);
  background: none;
  cursor: pointer;
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.text-button:hover {
  color: var(--orange-deep);
}

.text-button--light {
  min-height: auto;
  color: #c7c7c7;
  font-size: 0.75rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-button--light:hover {
  color: var(--white);
}

.text-button--danger {
  min-height: 34px;
  margin-left: 8px;
  color: var(--danger);
  font-size: 0.78rem;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  z-index: 30;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  padding: 31px 24px 24px;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(145deg, transparent 72%, rgba(255, 85, 0, 0.16) 72.2%),
    var(--ink);
}

.sidebar::before {
  position: absolute;
  top: -50px;
  right: -105px;
  width: 220px;
  height: 220px;
  border: 34px solid rgba(255, 85, 0, 0.16);
  content: "";
  transform: rotate(17deg);
}

.sidebar::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 32%;
  background: var(--orange);
  content: "";
}

.sidebar__brand,
.sidebar__context,
.side-nav,
.sidebar__foot {
  position: relative;
  z-index: 1;
}

.sidebar__context {
  margin: 56px 8px 24px;
}

.sidebar__context p {
  margin: 9px 0 0;
  color: #d0d0d0;
  font-family: var(--display);
  font-size: 1.38rem;
  font-weight: 600;
  line-height: 1.04;
}

.side-nav {
  display: grid;
  gap: 5px;
}

.side-nav__item {
  position: relative;
  display: flex;
  min-height: 49px;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  color: #bdbdbd;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  transition:
    color 160ms ease,
    background 160ms ease;
}

.side-nav__item .icon:last-child:not(:first-child) {
  width: 0.92rem;
  margin-left: auto;
}

.side-nav__item::before {
  position: absolute;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--orange);
  content: "";
  transition: height 160ms ease;
}

.side-nav__item:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.side-nav__item.is-active {
  color: var(--white);
  background: linear-gradient(90deg, rgba(255, 85, 0, 0.2), transparent);
}

.side-nav__item.is-active::before {
  height: 60%;
}

.sidebar__foot {
  display: grid;
  gap: 18px;
  margin-top: auto;
}

.storage-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  padding: 13px;
  border: 1px solid #3c3c3c;
  color: #bcbcbc;
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.75rem;
  line-height: 1.35;
}

.storage-note .icon {
  margin-top: 2px;
  color: #ff8b51;
}

.storage-note p {
  margin: 0;
}

.storage-note strong {
  color: var(--white);
}

.shell-body {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
}

.main-content {
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: 48px clamp(26px, 4vw, 68px) 72px;
}

.mobile-header,
.mobile-drawer {
  display: none;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
}

.page-heading h1 {
  max-width: 760px;
  margin: 5px 0 8px;
}

.page-heading p {
  max-width: 660px;
  margin: 0;
  color: var(--slate);
  font-size: 1.05rem;
}

.page-heading__actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.readiness-panel {
  position: relative;
  display: grid;
  min-height: 250px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 44px;
  margin-bottom: 22px;
  padding: clamp(28px, 4vw, 52px);
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(115deg, rgba(255, 85, 0, 0.15), transparent 45%),
    var(--ink);
  clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 0 100%);
}

.readiness-panel::after {
  position: absolute;
  right: 20%;
  bottom: -95px;
  width: 220px;
  height: 220px;
  border: 42px solid rgba(255, 85, 0, 0.08);
  content: "";
  transform: rotate(45deg);
}

.readiness-panel__signal {
  position: absolute;
  top: 0;
  right: 34px;
  padding: 8px 13px 7px;
  color: var(--ink);
  background: var(--orange);
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.readiness-panel__copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.readiness-panel__copy h2 {
  max-width: 600px;
  margin: 9px 0 12px;
  font-size: clamp(2.2rem, 4.6vw, 4.05rem);
}

.readiness-panel__copy > p {
  max-width: 620px;
  margin-bottom: 20px;
  color: #c9c9c9;
}

.readiness-panel__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px;
  color: #b7b7b7;
  font-size: 0.82rem;
}

.readiness-panel__status > span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.progress-dial {
  position: relative;
  z-index: 1;
  display: grid;
  width: 146px;
  height: 146px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--orange) var(--progress), #393939 var(--progress));
  box-shadow: 0 0 0 9px rgba(255, 255, 255, 0.04);
}

.progress-dial::before {
  position: absolute;
  inset: 10px;
  border-radius: inherit;
  background: var(--ink-2);
  content: "";
}

.progress-dial > div {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
}

.progress-dial strong {
  font-family: var(--display);
  font-size: 2.65rem;
  line-height: 1;
}

.progress-dial sup {
  color: #ff8b51;
  font-size: 1.05rem;
}

.progress-dial span {
  color: #aaa;
  font-family: var(--display);
  font-size: 0.7rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.status {
  display: inline-flex;
  width: fit-content;
  min-height: 27px;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  color: var(--ink);
  background: var(--steel);
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 0 100%);
  font-family: var(--display);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.status .icon {
  width: 0.92em;
  height: 0.92em;
}

.status--active {
  color: #0a5637;
  background: #cdeedd;
}

.status--hidden {
  color: #494949;
  background: #e0e0e0;
}

.status--pending {
  color: #6b3700;
  background: #ffe1c5;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(310px, 0.78fr);
  align-items: start;
  gap: 22px;
}

.dashboard-main,
.dashboard-aside {
  display: grid;
  gap: 22px;
}

.vital-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--steel);
  background: var(--paper);
}

.vital-strip article {
  position: relative;
  min-height: 112px;
  padding: 20px;
  border-right: 1px solid var(--steel);
}

.vital-strip article:last-child {
  border-right: 0;
}

.vital-strip article::before {
  position: absolute;
  top: -1px;
  left: -1px;
  width: 29px;
  height: 3px;
  background: var(--orange);
  content: "";
}

.vital-strip span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--slate);
  font-family: var(--display);
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.vital-strip strong {
  display: block;
  margin-top: 10px;
  font-family: var(--display);
  font-size: 2.15rem;
  line-height: 1;
}

.vital-strip small {
  color: var(--slate);
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 400;
}

.content-panel {
  border: 1px solid var(--steel);
  background: var(--paper);
  box-shadow: 0 8px 30px rgba(23, 23, 23, 0.035);
}

.dashboard-main > .content-panel,
.privacy-panel,
.admin-activity .content-panel {
  padding: clamp(22px, 3vw, 32px);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--steel);
}

.section-heading > div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-heading h2 {
  margin: 3px 0 0;
}

.section-index {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--ink);
  background: var(--orange);
  clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
  font-family: var(--display);
  font-weight: 800;
}

.section-heading--compact {
  align-items: flex-start;
  margin-bottom: 14px;
}

.section-heading--compact > div {
  display: block;
}

.section-heading--compact > .icon {
  color: var(--orange-deep);
}

.medical-grid {
  display: grid;
  grid-template-columns: minmax(230px, 0.85fr) 1.15fr;
  gap: 22px;
}

.medical-alert {
  display: grid;
  min-height: 215px;
  grid-template-columns: auto 1fr;
  align-content: start;
  gap: 13px;
  padding: 22px;
  border: 1px solid var(--steel);
}

.medical-alert--danger {
  border-color: #e2a8ad;
  background: var(--danger-soft);
}

.medical-alert--clear {
  border-color: #add6c4;
  background: var(--success-soft);
}

.medical-alert__icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--white);
  background: var(--danger);
}

.medical-alert--clear .medical-alert__icon {
  background: var(--success);
}

.field-label {
  display: block;
  margin-bottom: 7px;
  color: var(--slate);
  font-family: var(--display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.medical-alert > div > strong {
  font-family: var(--display);
  font-size: 1.45rem;
}

.medical-alert p {
  margin: 5px 0 0;
  color: var(--slate);
  font-size: 0.84rem;
}

.plain-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plain-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(163, 19, 31, 0.16);
}

.plain-list strong {
  font-family: var(--display);
  font-size: 1.16rem;
}

.plain-list small {
  color: var(--danger);
  font-size: 0.71rem;
  font-weight: 700;
  text-transform: uppercase;
}

.medical-facts {
  border-top: 1px solid var(--steel);
}

.fact-row {
  padding: 16px 3px;
  border-bottom: 1px solid var(--steel);
}

.fact-row strong {
  display: block;
  font-size: 0.98rem;
}

.fact-row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.fact-row--split > span + span {
  padding-left: 20px;
  border-left: 1px solid var(--steel);
}

.medical-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px;
  margin-top: 22px;
  padding: 16px 18px;
  border-left: 4px solid var(--orange);
  background: var(--orange-soft);
}

.medical-note > .icon {
  margin-top: 2px;
  color: var(--orange-deep);
}

.medical-note p {
  margin: 0;
  font-size: 0.88rem;
}

.medical-note p span {
  display: block;
  margin-bottom: 3px;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-list {
  display: grid;
}

.contact-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 13px 0;
  border-bottom: 1px solid var(--steel);
}

.contact-row:last-child {
  border-bottom: 0;
}

.contact-row__avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--ink);
  background: var(--orange);
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 800;
  clip-path: polygon(0 0, 100% 0, 86% 100%, 14% 100%);
}

.contact-row strong,
.contact-row span {
  display: block;
}

.contact-row strong {
  font-family: var(--display);
  font-size: 1.05rem;
}

.contact-row div > span {
  color: var(--slate);
  font-size: 0.79rem;
}

.inline-empty {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  color: var(--slate);
  background: #f2f2ef;
}

.inline-empty .icon {
  color: var(--orange-deep);
}

.inline-empty p {
  margin: 0;
  font-size: 0.84rem;
}

.inline-empty strong {
  color: var(--ink);
}

.rescue-pass {
  position: relative;
  min-height: 405px;
  padding: 23px;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(145deg, rgba(255, 85, 0, 0.15), transparent 50%),
    var(--ink);
  box-shadow: var(--shadow);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}

.rescue-pass::before {
  position: absolute;
  top: 0;
  right: 22px;
  width: 60px;
  height: 6px;
  background: var(--orange);
  content: "";
}

.rescue-pass__watermark {
  position: absolute;
  right: -25px;
  bottom: -55px;
  color: rgba(255, 85, 0, 0.08);
  font-family: var(--display);
  font-size: 16rem;
  font-weight: 800;
  line-height: 1;
}

.rescue-pass > header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 19px;
  border-bottom: 1px solid #404040;
}

.rescue-pass > header > span:first-child {
  color: #ff8b51;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.rescue-pass__person {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 21px 0;
}

.rescue-pass__person div strong,
.rescue-pass__person div span {
  display: block;
}

.rescue-pass__person div strong {
  font-family: var(--display);
  font-size: 1.28rem;
}

.rescue-pass__person div span {
  color: #aaa;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.rescue-pass__person > b {
  color: var(--orange);
  font-family: var(--display);
  font-size: 2.35rem;
  line-height: 1;
}

.avatar {
  display: inline-grid;
  overflow: hidden;
  place-items: center;
  flex: 0 0 auto;
  color: var(--ink);
  background:
    linear-gradient(135deg, var(--orange), #ff8b51);
  clip-path: polygon(0 0, 100% 0, 89% 100%, 11% 100%);
  font-family: var(--display);
  font-weight: 800;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar--sm {
  width: 38px;
  height: 38px;
  font-size: 0.95rem;
}

.avatar--md {
  width: 48px;
  height: 48px;
  font-size: 1.15rem;
}

.avatar--lg {
  width: 55px;
  height: 55px;
  font-size: 1.35rem;
}

.avatar--xl {
  width: 104px;
  height: 104px;
  font-size: 2.25rem;
}

.rescue-pass__qr-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 116px 1fr;
  align-items: center;
  gap: 18px;
  padding: 17px;
  background: #282828;
}

.rescue-pass__qr-wrap > div:last-child {
  display: grid;
}

.rescue-pass__qr-wrap span {
  color: #ff8b51;
  font-family: var(--display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.rescue-pass__qr-wrap strong {
  margin-top: 4px;
  font-family: var(--display);
  font-size: 1.13rem;
}

.rescue-pass__qr-wrap small {
  margin-top: 6px;
  color: #9e9e9e;
  font-size: 0.7rem;
}

.qr-box {
  display: grid;
  width: fit-content;
  place-items: center;
  padding: 9px;
  background: var(--white);
}

.qr-box img,
.qr-box canvas {
  max-width: 100%;
  height: auto !important;
}

.qr-box--dark {
  padding: 7px;
}

.qr-fallback {
  display: grid;
  width: 100%;
  aspect-ratio: 1;
  grid-template-columns: repeat(25, 1fr);
  background: var(--white);
}

.qr-fallback i {
  display: block;
}

.qr-fallback .is-dark {
  background: var(--ink);
}

.qr-unavailable {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 10px;
  color: var(--danger);
  background: var(--danger-soft);
  text-align: center;
}

.qr-unavailable small {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1;
}

.rescue-pass__actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
  margin-top: 17px;
}

.rescue-pass__actions .button {
  flex: 1;
}

.privacy-panel > p {
  margin-bottom: 18px;
  color: var(--slate);
  font-size: 0.83rem;
}

.toggle-list {
  display: grid;
  border-top: 1px solid var(--steel);
}

.toggle-row {
  position: relative;
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--steel);
  cursor: pointer;
  font-size: 0.83rem;
}

.toggle-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mini-switch,
.switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  flex: 0 0 auto;
  border: 1px solid var(--steel-dark);
  border-radius: 20px;
  background: #dadada;
  transition: background 160ms ease;
}

.mini-switch::after,
.switch > span:first-child {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
  content: "";
  transition: transform 160ms ease;
}

.toggle-row input:checked + .mini-switch,
.switch.is-on {
  border-color: var(--orange-deep);
  background: var(--orange);
}

.toggle-row input:checked + .mini-switch::after,
.switch.is-on > span:first-child {
  transform: translateX(16px);
}

.toggle-row input:focus-visible + .mini-switch {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.publication-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 18px;
  padding: 15px;
  background: var(--orange-soft);
}

.publication-control strong,
.publication-control span {
  display: block;
}

.publication-control strong {
  font-family: var(--display);
  font-size: 0.98rem;
}

.publication-control div > span {
  color: var(--slate);
  font-size: 0.7rem;
}

.switch {
  width: 44px;
  height: 24px;
  padding: 0;
  border: 1px solid var(--steel-dark);
  cursor: pointer;
}

.switch > span:first-child {
  width: 18px;
  height: 18px;
}

.switch.is-on > span:first-child {
  transform: translateX(20px);
}

.activity-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 13px;
  padding: 19px;
  border: 1px dashed var(--steel-dark);
}

.activity-note__icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--ink);
  background: var(--orange);
}

.activity-note strong,
.activity-note p {
  display: block;
}

.activity-note strong {
  margin-top: 3px;
  font-family: var(--display);
  font-size: 1.15rem;
}

.activity-note p {
  margin: 3px 0 0;
  color: var(--slate);
  font-size: 0.75rem;
}

/* Admin */

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-bottom: 22px;
  border: 1px solid var(--steel);
  background: var(--steel);
}

.admin-stat {
  position: relative;
  min-height: 174px;
  padding: 22px;
  overflow: hidden;
  background: var(--paper);
}

.admin-stat--primary {
  color: var(--white);
  background: var(--ink);
}

.admin-stat--primary::after {
  position: absolute;
  right: -45px;
  bottom: -64px;
  width: 145px;
  height: 145px;
  border: 28px solid rgba(255, 85, 0, 0.15);
  content: "";
  transform: rotate(28deg);
}

.admin-stat > div {
  position: relative;
  z-index: 1;
}

.admin-stat > div span {
  display: block;
  color: var(--slate);
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-stat--primary > div span {
  color: #aaa;
}

.admin-stat > div strong {
  display: block;
  margin-top: 9px;
  font-family: var(--display);
  font-size: 3.15rem;
  line-height: 1;
}

.admin-stat__icon {
  position: absolute;
  top: 23px;
  right: 21px;
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  color: var(--orange-deep);
  background: var(--orange-soft);
}

.admin-stat--primary .admin-stat__icon {
  color: var(--ink);
  background: var(--orange);
}

.admin-stat > small {
  position: absolute;
  z-index: 1;
  bottom: 21px;
  left: 22px;
  color: var(--slate);
  font-size: 0.72rem;
}

.admin-stat--primary > small {
  color: #aaa;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: 22px;
}

.admin-table-panel {
  min-width: 0;
  overflow: hidden;
}

.admin-table-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 27px 17px;
}

.admin-table-header h2 {
  margin: 3px 0 0;
}

.result-count {
  color: var(--slate);
  font-family: var(--display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.admin-filters {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) 210px;
  gap: 10px;
  padding: 0 27px 20px;
}

.search-field,
.select-field {
  position: relative;
  display: flex;
  align-items: center;
}

.search-field .icon {
  position: absolute;
  left: 13px;
  color: var(--slate);
  pointer-events: none;
}

.search-field input,
.select-field select {
  width: 100%;
  height: 45px;
  border: 1px solid var(--steel);
  border-radius: 0;
  background: var(--white);
}

.search-field input {
  padding: 0 13px 0 42px;
}

.select-field select {
  padding: 0 36px 0 13px;
  cursor: pointer;
}

.search-field input:focus,
.select-field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(23, 70, 209, 0.12);
}

.table-scroll {
  overflow-x: auto;
}

.users-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  border-spacing: 0;
}

.users-table th,
.users-table td {
  padding: 15px 16px;
  border-top: 1px solid var(--steel);
  text-align: left;
  vertical-align: middle;
}

.users-table th:first-child,
.users-table td:first-child {
  padding-left: 27px;
}

.users-table th:last-child,
.users-table td:last-child {
  padding-right: 27px;
}

.users-table th {
  color: var(--slate);
  background: #f2f2ef;
  font-family: var(--display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.users-table tbody tr {
  transition: background 150ms ease;
}

.users-table tbody tr:hover {
  background: #fffaf6;
}

.table-person {
  display: flex;
  align-items: center;
  gap: 10px;
}

.table-person strong,
.table-person span {
  display: block;
}

.table-person strong {
  font-family: var(--display);
  font-size: 0.98rem;
}

.table-person span {
  max-width: 160px;
  overflow: hidden;
  color: var(--slate);
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blood-tag {
  display: inline-grid;
  min-width: 37px;
  height: 31px;
  place-items: center;
  border: 1px solid #e6b099;
  color: var(--orange-deep);
  background: var(--orange-soft);
  font-family: var(--display);
  font-weight: 800;
}

.completion-cell {
  display: flex;
  min-width: 120px;
  align-items: center;
  gap: 8px;
}

.completion-cell > span {
  width: 74px;
  height: 4px;
  overflow: hidden;
  background: var(--steel);
}

.completion-cell > span i {
  display: block;
  height: 100%;
  background: var(--orange);
}

.completion-cell strong {
  font-family: var(--display);
  font-size: 0.8rem;
}

.table-date {
  color: var(--slate);
  font-size: 0.75rem;
  white-space: nowrap;
}

.table-actions {
  display: flex;
  justify-content: flex-end;
}

.table-actions .icon-button {
  width: 37px;
  height: 37px;
  margin-left: -1px;
}

.table-empty {
  display: grid;
  min-height: 230px;
  place-items: center;
  align-content: center;
  color: var(--slate);
}

.table-empty .icon {
  width: 30px;
  height: 30px;
  margin-bottom: 8px;
  color: var(--orange-deep);
}

.table-empty strong {
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.2rem;
}

.table-empty span {
  font-size: 0.82rem;
}

.admin-activity {
  display: grid;
  gap: 15px;
}

.access-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.access-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--steel);
}

.access-item:last-child {
  border-bottom: 0;
}

.access-item__signal {
  display: grid;
  width: 33px;
  height: 33px;
  place-items: center;
  color: var(--orange-deep);
  background: var(--orange-soft);
}

.access-item strong,
.access-item span {
  display: block;
}

.access-item strong {
  overflow: hidden;
  font-family: var(--display);
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.access-item div > span {
  overflow: hidden;
  color: var(--slate);
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.access-item time {
  color: var(--slate);
  font-size: 0.65rem;
  white-space: nowrap;
}

.admin-callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 19px;
  color: var(--white);
  background: var(--ink);
  clip-path: var(--cut);
}

.admin-callout > span {
  color: #ff8b51;
}

.admin-callout strong {
  font-family: var(--display);
}

.admin-callout p {
  margin: 4px 0 0;
  color: #bbb;
  font-size: 0.76rem;
}

.side-nav__item--disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.icon-button--disabled,
.button--disabled {
  cursor: not-allowed;
  opacity: 0.48;
  pointer-events: none;
}

.rescue-pass__pending {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 150px;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 17px;
  padding: 22px;
  border: 1px dashed #5b5b5b;
  background: #242424;
}

.rescue-pass__pending > span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: var(--ink);
  background: var(--orange);
}

.rescue-pass__pending strong,
.rescue-pass__pending small {
  display: block;
}

.rescue-pass__pending strong {
  font-family: var(--display);
  font-size: 1.2rem;
}

.rescue-pass__pending small {
  margin-top: 5px;
  color: #aaa;
  font-size: 0.73rem;
}

.module-order {
  margin-bottom: 22px;
  overflow: hidden;
}

.module-order__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 25px 27px 20px;
  border-bottom: 1px solid var(--steel);
}

.module-order__header h2 {
  margin: 4px 0 7px;
}

.module-order__header p {
  max-width: 670px;
  margin: 0;
  color: var(--slate);
  font-size: 0.82rem;
}

.module-order__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 1px 0 0;
  background: var(--steel);
  list-style: none;
}

.module-order__item {
  display: grid;
  min-width: 0;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: var(--white);
}

.module-order__index {
  color: var(--steel-dark);
  font-family: var(--display);
  font-size: 0.7rem;
  font-weight: 800;
}

.module-order__icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--orange-deep);
  background: var(--orange-soft);
}

.module-order__copy {
  min-width: 0;
}

.module-order__copy strong,
.module-order__copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.module-order__copy strong {
  font-family: var(--display);
  font-size: 0.96rem;
}

.module-order__copy small {
  color: var(--slate);
  font-size: 0.66rem;
}

.module-order__actions {
  display: grid;
  grid-template-columns: 30px 30px;
}

.module-order__actions .icon-button {
  width: 30px;
  height: 30px;
  margin-left: -1px;
}

.module-order__move--up .icon {
  transform: rotate(-90deg);
}

.module-order__move--down .icon {
  transform: rotate(90deg);
}

.module-order__actions button:disabled {
  cursor: not-allowed;
  opacity: 0.25;
}

.qr-inventory-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-bottom: 22px;
  border: 1px solid var(--steel);
  background: var(--steel);
}

.qr-inventory-stats article {
  position: relative;
  min-height: 145px;
  padding: 22px;
  overflow: hidden;
  background: var(--paper);
}

.qr-inventory-stats article:first-child {
  color: var(--white);
  background: var(--ink);
}

.qr-inventory-stats article:first-child::after {
  position: absolute;
  right: -40px;
  bottom: -55px;
  width: 130px;
  height: 130px;
  border: 26px solid rgba(255, 85, 0, 0.18);
  content: "";
  transform: rotate(32deg);
}

.qr-inventory-stats span,
.qr-inventory-stats strong,
.qr-inventory-stats small {
  position: relative;
  z-index: 1;
  display: block;
}

.qr-inventory-stats span {
  color: var(--slate);
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.qr-inventory-stats article:first-child span,
.qr-inventory-stats article:first-child small {
  color: #aaa;
}

.qr-inventory-stats strong {
  margin-top: 8px;
  font-family: var(--display);
  font-size: 3.1rem;
  line-height: 1;
}

.qr-inventory-stats small {
  position: absolute;
  bottom: 18px;
  color: var(--slate);
  font-size: 0.7rem;
}

.qr-production {
  position: relative;
  display: grid;
  grid-template-columns: minmax(250px, 0.8fr) minmax(500px, 1.2fr);
  align-items: end;
  gap: 32px;
  margin-bottom: 22px;
  padding: clamp(25px, 4vw, 38px);
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(255, 85, 0, 0.12), transparent 50%),
    var(--ink);
  clip-path: var(--cut);
}

.qr-production::after {
  position: absolute;
  top: -75px;
  right: 28%;
  width: 145px;
  height: 145px;
  border: 25px solid rgba(255, 85, 0, 0.09);
  content: "";
  transform: rotate(45deg);
}

.qr-production__copy,
.qr-batch-form {
  position: relative;
  z-index: 1;
}

.qr-production__copy h2 {
  margin: 6px 0 9px;
  font-size: clamp(2rem, 3vw, 2.7rem);
}

.qr-production__copy p {
  margin: 0;
  color: #bbb;
  font-size: 0.82rem;
}

.qr-batch-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 105px auto;
  align-items: end;
  gap: 10px;
}

.qr-batch-form label {
  display: grid;
  gap: 6px;
}

.qr-batch-form label span {
  color: #bbb;
  font-family: var(--display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.qr-batch-form input {
  width: 100%;
  height: 45px;
  padding: 0 12px;
  border: 1px solid #606060;
  background: #242424;
  color: var(--white);
}

.qr-batch-form input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 2px rgba(255, 85, 0, 0.2);
}

.qr-batches-panel,
.qr-code-panel {
  margin-bottom: 22px;
  overflow: hidden;
}

.qr-batch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid var(--steel);
  background: var(--steel);
}

.qr-batch-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 17px;
  padding: 22px;
  background: var(--white);
}

.qr-batch-card__index {
  width: fit-content;
  padding: 5px 8px;
  color: var(--ink);
  background: var(--orange);
  font-family: var(--display);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.qr-batch-card h3 {
  margin: 0;
  font-size: 1.55rem;
}

.qr-batch-card time {
  color: var(--slate);
  font-size: 0.7rem;
}

.qr-batch-card dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0;
  background: var(--steel);
}

.qr-batch-card dl div {
  padding: 10px;
  background: var(--paper);
}

.qr-batch-card dt {
  color: var(--slate);
  font-size: 0.63rem;
}

.qr-batch-card dd {
  margin: 3px 0 0;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 800;
}

.qr-inventory-empty,
.qr-inventory-loading {
  display: grid;
  min-height: 190px;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 30px;
  color: var(--slate);
  background: var(--white);
  text-align: center;
}

.qr-batch-grid > .qr-inventory-empty {
  grid-column: 1 / -1;
}

.qr-inventory-empty .icon,
.qr-inventory-loading .icon {
  width: 34px;
  height: 34px;
  color: var(--orange-deep);
}

.qr-inventory-empty strong {
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.2rem;
}

.qr-inventory-empty span {
  font-size: 0.78rem;
}

.qr-code-table {
  min-width: 780px;
}

.qr-human-code {
  font-family: var(--display);
  font-size: 0.92rem;
  letter-spacing: 0.055em;
}

.qr-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  font-family: var(--display);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.qr-status--assigned {
  color: #0a5637;
  background: #cdeedd;
}

.qr-status--available {
  color: #743000;
  background: #ffe0cd;
}

.qr-status--disabled {
  color: #555;
  background: #ddd;
}

.qr-status .icon {
  width: 0.9rem;
  height: 0.9rem;
}

.qr-profile-link strong,
.qr-profile-link small {
  display: block;
}

.qr-profile-link strong {
  font-family: var(--display);
  font-size: 0.9rem;
}

.qr-profile-link small {
  color: var(--slate);
  font-size: 0.65rem;
}

.button--compact {
  min-height: 36px;
  padding: 7px 11px;
  font-size: 0.68rem;
}

/* Ficha pública */

.public-header {
  display: flex;
  width: min(1160px, calc(100% - 40px));
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
  border-bottom: 1px solid var(--steel);
}

.public-header__meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.public-header__meta > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--slate);
  font-size: 0.75rem;
}

.public-main {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 135px;
}

.emergency-stripe {
  display: flex;
  min-height: 37px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 14px;
  color: var(--ink);
  background:
    repeating-linear-gradient(135deg, rgba(23, 23, 23, 0.1) 0 8px, transparent 8px 16px),
    var(--orange);
  font-family: var(--display);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.emergency-stripe span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.emergency-stripe strong {
  font-size: 0.68rem;
}

.public-identity {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  border-right: 1px solid var(--steel);
  border-bottom: 1px solid var(--steel);
  border-left: 1px solid var(--steel);
  background: var(--white);
}

.public-identity__person {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: clamp(25px, 4vw, 45px);
}

.public-identity__person > div:last-child {
  min-width: 0;
}

.public-profile-photo {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  padding: 5px;
  border: 2px solid var(--orange);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 7px var(--orange-soft);
}

.public-profile-photo .avatar.avatar--xl {
  width: clamp(116px, 14vw, 154px);
  height: clamp(116px, 14vw, 154px);
  border-radius: 50%;
  clip-path: none;
  font-size: clamp(2.5rem, 6vw, 3.8rem);
}

.public-identity__person h1 {
  margin: 5px 0 8px;
  max-width: 100%;
  font-size: clamp(2.8rem, 6vw, 5rem);
  overflow-wrap: anywhere;
}

.public-identity__person p {
  margin: 0;
  color: var(--slate);
}

.blood-block {
  position: relative;
  display: grid;
  min-height: 220px;
  place-items: center;
  align-content: center;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.blood-block::after {
  position: absolute;
  right: -42px;
  bottom: -70px;
  width: 150px;
  height: 150px;
  border: 30px solid rgba(255, 85, 0, 0.14);
  content: "";
  transform: rotate(30deg);
}

.blood-block span,
.blood-block small {
  position: relative;
  z-index: 1;
}

.blood-block span {
  color: #bbb;
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.blood-block strong {
  position: relative;
  z-index: 1;
  margin: 7px 0;
  color: var(--orange);
  font-family: var(--display);
  font-size: 5.5rem;
  line-height: 0.85;
}

.blood-block small {
  color: #8f8f8f;
  font-size: 0.67rem;
}

.public-alert {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: clamp(22px, 4vw, 34px);
  border: 2px solid;
}

.public-alert--danger {
  border-color: var(--danger);
  color: var(--white);
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.04), transparent),
    var(--danger);
}

.public-alert--clear {
  border-color: #8fc3ad;
  background: var(--success-soft);
}

.public-alert__icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid currentColor;
}

.public-alert__icon .icon {
  width: 31px;
  height: 31px;
}

.public-alert .eyebrow {
  color: inherit;
  opacity: 0.72;
}

.public-alert h2 {
  margin: 4px 0 0;
  font-size: clamp(2rem, 5vw, 3.45rem);
}

.public-alert p {
  margin: 5px 0 0;
}

.allergy-severity {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 9px;
}

.allergy-severity span {
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  font-size: 0.73rem;
}

.public-module-list {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.public-module {
  min-width: 0;
}

.public-module > .public-section {
  width: 100%;
}

.public-blood-module {
  position: relative;
  display: grid;
  min-height: 154px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: clamp(24px, 4vw, 38px);
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(110deg, transparent 0 58%, rgba(255, 85, 0, 0.1) 58% 74%, transparent 74%),
    var(--ink);
}

.public-blood-module::after {
  position: absolute;
  right: -62px;
  bottom: -93px;
  width: 190px;
  height: 190px;
  border: 34px solid rgba(255, 85, 0, 0.16);
  content: "";
  transform: rotate(32deg);
}

.public-blood-module__icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: var(--ink);
  background: var(--orange);
}

.public-blood-module__icon .icon {
  width: 31px;
  height: 31px;
}

.public-blood-module div,
.public-blood-module strong {
  position: relative;
  z-index: 1;
}

.public-blood-module div span,
.public-blood-module div small {
  display: block;
}

.public-blood-module div span {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.public-blood-module div small {
  margin-top: 4px;
  color: #aaa;
}

.public-blood-module strong {
  color: var(--orange);
  font-family: var(--display);
  font-size: clamp(4.5rem, 10vw, 7rem);
  line-height: 0.8;
}

.public-emphasis {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 700;
}

.public-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.7fr);
  align-items: start;
  gap: 20px;
}

.public-grid__main,
.public-grid__aside {
  display: grid;
  gap: 20px;
}

.public-section {
  border: 1px solid var(--steel);
  background: var(--white);
}

.public-section > header {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--steel);
}

.public-section > header h2 {
  margin: 3px 0 0;
  font-size: 1.7rem;
}

.public-section__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--ink);
  background: var(--orange);
  clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%);
}

.public-section__body {
  padding: 23px;
}

.public-data-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.public-data-list li {
  position: relative;
  padding: 14px 10px 14px 29px;
  border-bottom: 1px solid var(--steel);
  font-family: var(--display);
  font-size: 1.28rem;
  font-weight: 600;
}

.public-data-list li:last-child {
  border-bottom: 0;
}

.public-data-list li::before {
  position: absolute;
  top: 21px;
  left: 7px;
  width: 8px;
  height: 8px;
  background: var(--orange);
  content: "";
  transform: rotate(45deg);
}

.public-none {
  margin: 0;
  color: var(--slate);
}

.medication-list {
  display: grid;
}

.medication-list article {
  display: grid;
  grid-template-columns: minmax(120px, 0.6fr) minmax(100px, 0.4fr) 1fr;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--steel);
}

.medication-list article:last-child {
  border-bottom: 0;
}

.medication-list strong {
  font-family: var(--display);
  font-size: 1.15rem;
}

.medication-list span {
  color: var(--orange-deep);
  font-weight: 700;
}

.medication-list p {
  margin: 0;
  color: var(--slate);
  font-size: 0.85rem;
}

.responder-note {
  position: relative;
  margin: 0;
  padding-left: 20px;
  border-left: 4px solid var(--orange);
  font-size: 1.05rem;
  line-height: 1.55;
}

.public-vitals dl {
  margin: 0;
  padding: 5px 22px 16px;
}

.public-vitals dl div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--steel);
}

.public-vitals dl div:last-child {
  border-bottom: 0;
}

.public-vitals dt {
  color: var(--slate);
  font-size: 0.8rem;
}

.public-vitals dd {
  margin: 0;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  text-align: right;
}

.public-contacts > div {
  padding: 7px 21px 17px;
}

.public-contact {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--steel);
}

.public-contact:last-child {
  border-bottom: 0;
}

.public-contact span strong,
.public-contact span small {
  display: block;
}

.public-contact span strong {
  font-family: var(--display);
  font-size: 1.05rem;
}

.public-contact span small {
  color: var(--slate);
}

.public-contact b {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  color: var(--white);
  background: var(--success);
}

.public-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 25px;
  margin-top: 38px;
  padding-top: 25px;
  border-top: 1px solid var(--steel);
}

.public-footer p {
  max-width: 560px;
  margin: 0;
  color: var(--slate);
  font-size: 0.78rem;
}

.public-footer > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--slate);
  font-size: 0.72rem;
}

.public-callbar {
  position: fixed;
  z-index: 25;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: center;
  gap: clamp(30px, 10vw, 150px);
  padding: 13px 20px;
  border-top: 4px solid var(--orange);
  color: var(--white);
  background: rgba(23, 23, 23, 0.97);
  box-shadow: 0 -15px 35px rgba(23, 23, 23, 0.16);
  backdrop-filter: blur(10px);
}

.public-callbar div span,
.public-callbar div strong {
  display: block;
}

.public-callbar div span {
  color: #aaa;
  font-family: var(--display);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.public-callbar div strong {
  margin-top: 3px;
  font-family: var(--display);
  font-size: 1.15rem;
}

.public-page--empty {
  min-height: 100vh;
}

.public-empty {
  display: grid;
  min-height: 100vh;
  place-items: center;
  align-content: center;
  padding: 40px 20px;
  text-align: center;
}

.public-empty > .brand {
  margin-bottom: 50px;
}

.public-empty__icon {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  margin-bottom: 20px;
  color: var(--ink);
  background: var(--orange);
  clip-path: polygon(0 0, 100% 0, 86% 100%, 14% 100%);
}

.public-empty__icon .icon {
  width: 31px;
  height: 31px;
}

.public-empty h1 {
  margin: 8px 0 12px;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
}

.public-empty p {
  max-width: 520px;
  margin-bottom: 24px;
  color: var(--slate);
}

/* Modales y formularios */

.dialog {
  width: min(680px, calc(100% - 28px));
  max-height: min(90vh, 900px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow-strong);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}

.dialog--large {
  width: min(950px, calc(100% - 28px));
}

.dialog--qr {
  width: min(520px, calc(100% - 28px));
}

.dialog--scanner {
  width: min(920px, calc(100% - 28px));
}

.dialog::backdrop {
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(5px);
}

.dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 25px;
  padding: 25px 28px 21px;
  border-bottom: 1px solid var(--steel);
  background: var(--white);
}

.dialog__header h2 {
  margin: 5px 0 5px;
  font-size: 2.25rem;
}

.dialog__header p {
  margin: 0;
  color: var(--slate);
  font-size: 0.83rem;
}

.dialog__body {
  max-height: calc(90vh - 190px);
  padding: 26px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.dialog__footer {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 28px;
  border-top: 1px solid var(--steel);
  background: var(--white);
}

.dialog__footer > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--slate);
  font-size: 0.72rem;
}

.dialog__footer > div {
  display: flex;
  gap: 8px;
}

.qr-scanner-dialog__body {
  display: grid;
  gap: 22px;
}

.qr-scanner {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(rgba(23, 23, 23, 0.2), rgba(23, 23, 23, 0.2)),
    #101010;
}

.qr-scanner__video {
  width: 100%;
  height: 390px;
  object-fit: cover;
}

.qr-scanner__frame {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(250px, 64vw);
  aspect-ratio: 1;
  border: 2px solid var(--orange);
  box-shadow:
    0 0 0 999px rgba(0, 0, 0, 0.37),
    inset 0 0 0 6px rgba(255, 85, 0, 0.1);
  pointer-events: none;
  transform: translate(-50%, -54%);
}

.qr-scanner__frame::after {
  position: absolute;
  right: 13px;
  bottom: 13px;
  left: 13px;
  height: 2px;
  background: var(--orange);
  box-shadow: 0 -205px 24px rgba(255, 85, 0, 0.9);
  content: "";
  animation: qr-scan-line 1.7s ease-in-out infinite alternate;
}

.qr-scanner > p {
  position: absolute;
  z-index: 2;
  right: 15px;
  bottom: 12px;
  left: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0;
  padding: 9px 12px;
  background: rgba(23, 23, 23, 0.84);
  font-size: 0.75rem;
  text-align: center;
}

.qr-scanner > p.is-unavailable {
  color: #ffd5bf;
}

.qr-scanner.is-manual {
  min-height: 74px;
}

.qr-scanner.is-manual .qr-scanner__video,
.qr-scanner.is-manual .qr-scanner__frame {
  display: none;
}

@keyframes qr-scan-line {
  from { transform: translateY(-190px); }
  to { transform: translateY(0); }
}

.qr-manual-lookup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--steel);
  background: var(--white);
}

.qr-lookup-loading,
.qr-lookup-error {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px;
  border: 1px solid var(--steel);
  background: var(--white);
}

.qr-lookup-loading .icon {
  color: var(--orange-deep);
}

.qr-lookup-error {
  justify-content: flex-start;
  border-color: #e0a8ad;
  color: var(--danger);
  background: var(--danger-soft);
}

.qr-lookup-error strong,
.qr-lookup-error span {
  display: block;
}

.qr-lookup-error span {
  margin-top: 3px;
  font-size: 0.75rem;
}

.qr-lookup-card {
  border: 1px solid var(--steel-dark);
  background: var(--white);
}

.qr-lookup-card > header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 18px;
  border-bottom: 1px solid var(--steel);
}

.qr-lookup-card__mark {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  color: var(--ink);
  background: var(--orange);
}

.qr-lookup-card h3 {
  margin: 3px 0 0;
  letter-spacing: 0.04em;
}

.qr-lookup-card > dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 0;
  background: var(--steel);
}

.qr-lookup-card > dl div {
  padding: 14px 18px;
  background: var(--paper);
}

.qr-lookup-card dt {
  color: var(--slate);
  font-size: 0.68rem;
}

.qr-lookup-card dd {
  margin: 4px 0 0;
  font-family: var(--display);
  font-weight: 700;
}

#qr-assignment-form {
  display: grid;
  gap: 13px;
  padding: 18px;
}

#qr-assignment-form .field select {
  width: 100%;
  height: 45px;
  padding: 0 12px;
  border: 1px solid var(--steel-dark);
  background: var(--white);
}

.qr-assignment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.qr-assignment-actions .button--primary {
  flex: 1 1 230px;
}

.button--danger {
  color: var(--danger);
  background: var(--danger-soft);
  box-shadow: inset 0 0 0 1px #d9a4a8;
}

.button--danger:hover {
  color: var(--white);
  background: var(--danger);
}

.qr-print-sheet {
  display: none;
}

.form-section {
  scroll-margin-top: 20px;
  padding-bottom: 30px;
}

.form-section + .form-section {
  padding-top: 27px;
  border-top: 1px solid var(--steel);
}

.form-section:last-child {
  padding-bottom: 0;
}

.form-section > header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 19px;
}

.form-section > header > span {
  display: grid;
  width: 34px;
  height: 32px;
  place-items: center;
  color: var(--ink);
  background: var(--orange);
  clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 800;
}

.form-section header h3 {
  margin: 0;
}

.form-section header p {
  margin: 3px 0 0;
  color: var(--slate);
  font-size: 0.76rem;
}

.photo-field {
  display: flex;
  align-items: center;
  gap: 19px;
  margin-bottom: 22px;
  padding: 17px;
  border: 1px dashed var(--steel-dark);
  background: var(--white);
}

.photo-field > div:last-child {
  flex: 1;
}

.photo-field small {
  display: block;
  margin-top: 7px;
  color: var(--slate);
  font-size: 0.7rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-grid--three {
  grid-template-columns: repeat(3, 1fr);
}

.field {
  display: grid;
  align-content: start;
  gap: 6px;
}

.field--wide {
  grid-column: 1 / -1;
}

.field > span {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.field > span b {
  color: var(--danger);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--steel-dark);
  border-radius: 0;
  background: var(--white);
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.field input,
.field select {
  height: 45px;
  padding: 0 12px;
}

.field textarea {
  min-height: 90px;
  padding: 11px 12px;
  resize: vertical;
  line-height: 1.45;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(23, 70, 209, 0.12);
}

.field small {
  color: var(--slate);
  font-size: 0.69rem;
}

.check-field {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px;
  border: 1px solid var(--steel);
  background: var(--white);
  cursor: pointer;
}

.check-field input {
  width: 19px;
  height: 19px;
  margin: 1px 0 0;
  accent-color: var(--orange-deep);
}

.check-field span strong,
.check-field span small {
  display: block;
}

.check-field span strong {
  font-family: var(--display);
  font-size: 0.9rem;
}

.check-field span small {
  margin-top: 2px;
  color: var(--slate);
  font-size: 0.7rem;
}

.check-field--strong {
  border-color: #e2b195;
  background: var(--orange-soft);
}

.inline-link {
  padding: 0;
  color: var(--blue);
  background: none;
  cursor: pointer;
  text-decoration: underline;
}

.contact-fieldset {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--steel);
  background: var(--white);
}

.contact-fieldset + .contact-fieldset {
  margin-top: 13px;
}

.contact-fieldset legend {
  padding: 0 7px;
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.form-section--consent {
  padding: 22px;
  background: #f0efea;
}

.form-section--consent .check-field + .check-field {
  margin-top: 10px;
}

.form-notice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px;
  margin-bottom: 22px;
  padding: 14px;
  border-left: 4px solid var(--orange);
  background: var(--orange-soft);
}

.form-notice .icon {
  margin-top: 2px;
  color: var(--orange-deep);
}

.form-notice p {
  margin: 0;
  font-size: 0.8rem;
}

.qr-dialog__body {
  display: grid;
  justify-items: center;
  padding: 28px;
  text-align: center;
}

.qr-dialog__code {
  margin-bottom: 18px;
  padding: 12px;
  border: 1px solid var(--steel);
  background:
    linear-gradient(135deg, var(--orange) 0 10px, transparent 10px),
    var(--white);
}

.qr-dialog__body h3 {
  margin: 7px 0 6px;
  font-size: 1.8rem;
}

.qr-dialog__body > p {
  max-width: 340px;
  margin-bottom: 17px;
  color: var(--slate);
  font-size: 0.83rem;
}

.copy-field {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) 44px;
}

.copy-field input {
  min-width: 0;
  height: 44px;
  padding: 0 11px;
  border: 1px solid var(--steel-dark);
  background: #f4f4f1;
  font-size: 0.73rem;
}

.copy-field button {
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--ink);
  cursor: pointer;
}

.demo-warning {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 13px;
  color: var(--slate);
  text-align: left;
  font-size: 0.7rem;
}

.demo-warning .icon {
  color: var(--orange-deep);
}

.terms-dialog .prose {
  line-height: 1.62;
}

.prose h3 {
  margin: 25px 0 6px;
}

.prose p {
  color: var(--slate);
}

.prose p:first-child {
  padding: 14px;
  border-left: 4px solid var(--danger);
  color: var(--ink);
  background: var(--danger-soft);
}

.toast-region,
.dialog-toast-region {
  position: fixed;
  z-index: 1000;
  top: 18px;
  right: 18px;
  display: grid;
  width: min(360px, calc(100% - 36px));
  gap: 8px;
  pointer-events: none;
}

.dialog-toast-region {
  z-index: 10;
}

.toast {
  display: grid;
  min-height: 58px;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 11px;
  padding: 12px 15px;
  border-left: 4px solid var(--orange);
  color: var(--white);
  background: var(--ink);
  box-shadow: var(--shadow-strong);
  opacity: 0;
  transform: translateX(20px);
  transition:
    opacity 200ms ease,
    transform 200ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: none;
}

.toast--success {
  border-color: #3eae7c;
}

.toast--error {
  border-color: #e34250;
}

.toast__icon {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  color: var(--ink);
  background: var(--orange);
}

.toast--success .toast__icon {
  background: #57c995;
}

.toast--error .toast__icon {
  color: var(--white);
  background: var(--danger);
}

.empty-state {
  display: grid;
  min-height: calc(100vh - 120px);
  place-items: center;
  align-content: center;
  text-align: center;
}

.empty-state > span {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  margin-bottom: 18px;
  color: var(--ink);
  background: var(--orange);
}

.empty-state h1 {
  margin-bottom: 9px;
}

.empty-state p {
  margin-bottom: 21px;
  color: var(--slate);
}

.noscript-message {
  position: fixed;
  z-index: 2000;
  right: 20px;
  bottom: 20px;
  left: 20px;
  padding: 18px;
  color: var(--white);
  background: var(--danger);
  text-align: center;
}

.reveal {
  animation: reveal-up 520ms both cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal--1 {
  animation-delay: 40ms;
}

.reveal--2 {
  animation-delay: 100ms;
}

.reveal--3 {
  animation-delay: 160ms;
}

.reveal--4 {
  animation-delay: 220ms;
}

.reveal--5 {
  animation-delay: 280ms;
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1500px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-activity {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1250px) {
  :root {
    --sidebar-width: 244px;
  }

  .sidebar {
    padding-right: 18px;
    padding-left: 18px;
  }

  .dashboard-layout {
    grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.75fr);
  }

  .vital-strip article {
    padding: 17px 14px;
  }

  .vital-strip strong {
    font-size: 1.8rem;
  }

  .rescue-pass__qr-wrap {
    grid-template-columns: 104px 1fr;
  }

  .admin-layout {
    grid-template-columns: minmax(0, 1fr) 285px;
  }

  .module-order__list,
  .qr-batch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .dashboard-layout,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-aside {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .activity-note {
    grid-column: 1 / -1;
  }

  .admin-activity {
    grid-template-columns: 1fr 1fr;
  }

  .admin-stats {
    grid-template-columns: 1fr 1fr;
  }

  .qr-production {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .sidebar {
    display: none;
  }

  .shell-body {
    margin-left: 0;
  }

  .mobile-header {
    position: sticky;
    z-index: 30;
    top: 0;
    display: flex;
    min-height: 67px;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    border-bottom: 1px solid var(--steel);
    background: rgba(251, 250, 246, 0.94);
    backdrop-filter: blur(14px);
  }

  .mobile-drawer {
    position: fixed;
    z-index: 29;
    top: 67px;
    right: 0;
    left: 0;
    display: grid;
    gap: 2px;
    padding: 12px 20px 18px;
    border-bottom: 1px solid var(--steel);
    background: var(--ink);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    visibility: hidden;
    transition:
      opacity 160ms ease,
      transform 160ms ease,
      visibility 160ms ease;
  }

  .mobile-drawer.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
    visibility: visible;
  }

  .main-content {
    padding: 34px 20px 60px;
  }

  .public-grid {
    grid-template-columns: 1fr;
  }

  .public-grid__aside {
    grid-template-columns: 1fr 1fr;
  }

  .public-footer {
    grid-template-columns: auto 1fr;
  }

  .public-footer > span {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  h1 {
    font-size: clamp(2.35rem, 12vw, 3.5rem);
  }

  .page-heading {
    display: block;
    margin-bottom: 24px;
  }

  .page-heading__actions {
    justify-content: flex-start;
    margin-top: 19px;
  }

  .readiness-panel {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 28px 24px;
  }

  .progress-dial {
    width: 120px;
    height: 120px;
    justify-self: start;
  }

  .readiness-panel__copy h2 {
    font-size: 2.5rem;
  }

  .vital-strip {
    grid-template-columns: 1fr 1fr;
  }

  .vital-strip article:nth-child(2) {
    border-right: 0;
  }

  .vital-strip article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--steel);
  }

  .medical-grid,
  .dashboard-aside,
  .admin-activity,
  .public-grid__aside {
    grid-template-columns: 1fr;
  }

  .activity-note {
    grid-column: auto;
  }

  .section-heading {
    align-items: flex-start;
  }

  .section-heading .text-button {
    font-size: 0;
  }

  .section-heading .text-button .icon {
    width: 20px;
    height: 20px;
  }

  .admin-stats {
    grid-template-columns: 1fr 1fr;
  }

  .admin-stat {
    min-height: 155px;
    padding: 18px;
  }

  .admin-stat > div strong {
    font-size: 2.6rem;
  }

  .admin-stat__icon {
    top: 18px;
    right: 16px;
    width: 31px;
    height: 31px;
  }

  .admin-stat > small {
    bottom: 17px;
    left: 18px;
  }

  .admin-filters {
    grid-template-columns: 1fr;
  }

  .module-order__header {
    align-items: flex-start;
  }

  .module-order__list,
  .qr-batch-grid {
    grid-template-columns: 1fr;
  }

  .qr-inventory-stats {
    grid-template-columns: 1fr 1fr;
  }

  .qr-inventory-stats article:first-child {
    grid-column: 1 / -1;
  }

  .qr-batch-form {
    grid-template-columns: minmax(160px, 1fr) 100px;
  }

  .qr-batch-form .button {
    grid-column: 1 / -1;
  }

  .public-header {
    width: calc(100% - 28px);
  }

  .public-header__meta > span {
    display: none;
  }

  .public-main {
    width: calc(100% - 28px);
    padding-top: 18px;
  }

  .emergency-stripe strong {
    display: none;
  }

  .public-identity {
    grid-template-columns: 1fr;
  }

  .public-identity__person {
    padding: 25px 20px;
  }

  .public-identity__person .public-profile-photo .avatar.avatar--xl {
    width: 112px;
    height: 112px;
  }

  .blood-block {
    min-height: 140px;
    grid-template-columns: 1fr auto;
    justify-items: start;
    padding: 25px;
  }

  .blood-block span {
    grid-column: 1;
  }

  .blood-block strong {
    grid-row: 1 / 3;
    grid-column: 2;
    font-size: 4.5rem;
  }

  .blood-block small {
    grid-column: 1;
  }

  .public-alert {
    grid-template-columns: 1fr;
  }

  .public-blood-module {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .public-blood-module strong {
    grid-column: 2;
    justify-self: start;
  }

  .medication-list article {
    grid-template-columns: 1fr 1fr;
  }

  .medication-list p {
    grid-column: 1 / -1;
  }

  .public-footer {
    grid-template-columns: 1fr;
  }

  .public-callbar {
    justify-content: space-between;
    gap: 12px;
  }

  .public-callbar div {
    min-width: 0;
  }

  .public-callbar div strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .dialog {
    width: calc(100% - 16px);
    max-height: calc(100vh - 16px);
  }

  .dialog__header {
    padding: 21px 19px 17px;
  }

  .dialog__body {
    max-height: calc(100vh - 170px);
    padding: 22px 19px;
  }

  .dialog__footer {
    padding: 11px 19px;
  }

  .dialog__footer > span {
    display: none;
  }

  .dialog__footer > div {
    width: 100%;
  }

  .dialog__footer > div .button {
    flex: 1;
  }

  .form-grid,
  .form-grid--three {
    grid-template-columns: 1fr;
  }

  .photo-field {
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding-right: 14px;
    padding-left: 14px;
  }

  .mobile-header {
    padding-right: 14px;
    padding-left: 14px;
  }

  .button {
    padding-right: 14px;
    padding-left: 14px;
  }

  .page-heading__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .vital-strip strong {
    font-size: 1.7rem;
  }

  .dashboard-main > .content-panel,
  .privacy-panel,
  .admin-activity .content-panel {
    padding: 20px 17px;
  }

  .rescue-pass {
    padding: 19px 16px;
  }

  .rescue-pass__qr-wrap {
    grid-template-columns: 96px 1fr;
    gap: 12px;
    padding: 12px;
  }

  .admin-stats {
    grid-template-columns: 1fr;
  }

  .admin-table-header,
  .admin-filters {
    padding-right: 18px;
    padding-left: 18px;
  }

  .module-order__header {
    display: grid;
    padding-right: 18px;
    padding-left: 18px;
  }

  .module-order__header .button {
    width: 100%;
  }

  .qr-inventory-stats {
    grid-template-columns: 1fr;
  }

  .qr-inventory-stats article:first-child {
    grid-column: auto;
  }

  .qr-production {
    padding: 24px 18px;
  }

  .qr-batch-form,
  .qr-manual-lookup {
    grid-template-columns: 1fr;
  }

  .qr-batch-form .button {
    grid-column: auto;
  }

  .qr-scanner {
    min-height: 260px;
  }

  .qr-scanner__video {
    height: 310px;
  }

  .public-header {
    width: calc(100% - 24px);
  }

  .public-main {
    width: calc(100% - 24px);
  }

  .public-identity__person {
    display: grid;
    justify-items: center;
    gap: 19px;
    text-align: center;
  }

  .public-identity__person .public-profile-photo .avatar.avatar--xl {
    width: 104px;
    height: 104px;
  }

  .public-identity__person h1 {
    font-size: clamp(2.1rem, 11vw, 2.4rem);
  }

  .public-identity__person > div:last-child {
    width: 100%;
  }

  .public-identity__person p {
    font-size: 0.78rem;
  }

  .public-alert {
    padding: 20px;
  }

  .public-blood-module {
    grid-template-columns: auto 1fr;
    gap: 15px;
    padding: 22px 18px;
  }

  .public-blood-module strong {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .public-alert h2 {
    font-size: 2.15rem;
  }

  .public-callbar div {
    display: none;
  }

  .public-callbar .button {
    width: 100%;
  }

  .photo-field {
    display: grid;
  }
}

@media (max-width: 380px) {
  .page-heading__actions {
    grid-template-columns: 1fr;
  }

  .page-heading__actions .button {
    width: 100%;
  }
}

@media print {
  @page {
    size: A4 portrait;
    margin: 8mm;
  }

  .public-header__meta,
  .public-callbar {
    display: none !important;
  }

  body,
  .public-page {
    background: var(--white);
  }

  .public-header,
  .public-main {
    width: 100%;
  }

  .public-main {
    padding-bottom: 0;
  }

  .public-section,
  .public-alert,
  .public-identity {
    break-inside: avoid;
  }

  .reveal {
    animation: none !important;
  }

  body.is-printing-qr {
    background: var(--white) !important;
  }

  body.is-printing-qr::before,
  body.is-printing-qr > *:not(#qr-print-sheet) {
    display: none !important;
  }

  body.is-printing-qr #qr-print-sheet {
    display: block !important;
    color: #111;
    background: #fff;
  }

  .qr-print-sheet__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8mm;
    margin-bottom: 4mm;
    padding-bottom: 3mm;
    border-bottom: 0.5mm solid #111;
  }

  .qr-print-sheet__header > div:last-child {
    text-align: right;
  }

  .qr-print-sheet__header strong,
  .qr-print-sheet__header span {
    display: block;
  }

  .qr-print-sheet__header strong {
    font-family: var(--display);
    font-size: 14pt;
  }

  .qr-print-sheet__header span {
    font-size: 7pt;
  }

  .qr-print-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2mm;
  }

  .qr-print-sticker {
    display: grid;
    min-width: 0;
    min-height: 42mm;
    place-items: center;
    align-content: center;
    gap: 1.2mm;
    padding: 1.5mm;
    break-inside: avoid;
    border: 0.25mm dashed #777;
    text-align: center;
  }

  .qr-print-sticker__code {
    display: grid;
    width: 27mm;
    height: 27mm;
    place-items: center;
  }

  .qr-print-sticker__code img,
  .qr-print-sticker__code canvas {
    width: 27mm !important;
    height: 27mm !important;
  }

  .qr-print-sticker span,
  .qr-print-sticker strong,
  .qr-print-sticker small {
    display: block;
  }

  .qr-print-sticker span {
    color: #ff5500;
    font-family: var(--display);
    font-size: 5.5pt;
    font-weight: 800;
    letter-spacing: 0.08em;
  }

  .qr-print-sticker strong {
    margin-top: 0.5mm;
    font-family: var(--display);
    font-size: 9pt;
    letter-spacing: 0.04em;
  }

  .qr-print-sticker small {
    max-width: 43mm;
    margin-top: 0.5mm;
    overflow-wrap: anywhere;
    font-size: 4pt;
    line-height: 1.1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Autenticación, sesión y estado del servidor */

.button:disabled,
.auth-form [disabled] {
  cursor: wait;
  opacity: 0.62;
  pointer-events: none;
}

.account-card {
  display: grid;
  min-width: 0;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #3c3c3c;
  background: rgba(255, 255, 255, 0.035);
}

.account-card__avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--ink);
  background: var(--orange);
  clip-path: polygon(0 0, 100% 0, 86% 100%, 14% 100%);
  font-family: var(--display);
  font-size: 0.87rem;
  font-weight: 800;
}

.account-card div {
  min-width: 0;
}

.account-card strong,
.account-card span,
.account-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-card strong {
  color: var(--white);
  font-family: var(--display);
  font-size: 0.88rem;
  letter-spacing: 0.025em;
}

.account-card div > span {
  color: #b9b9b9;
  font-size: 0.67rem;
}

.account-card small {
  margin-top: 2px;
  color: #ff8b51;
  font-family: var(--display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-logout {
  justify-self: start;
  gap: 7px;
}

.sync-state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  color: #ddd;
  font-family: var(--display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.025em;
}

.sync-state .icon {
  width: 0.9rem;
  height: 0.9rem;
}

.sync-state--saved,
.sync-state--local {
  color: #73d6a7;
}

.sync-state--pending {
  color: #ffb184;
}

.sync-state--syncing {
  color: #fff;
}

.sync-state--syncing .icon {
  animation: sync-pulse 900ms ease-in-out infinite alternate;
}

.sync-state--error {
  color: #ff8d96;
}

.mobile-account {
  display: grid;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #3b3b3b;
}

.mobile-account > span {
  min-width: 0;
  padding: 0 14px;
}

.mobile-account strong,
.mobile-account small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-account strong {
  color: var(--white);
  font-size: 0.75rem;
}

.mobile-account small {
  color: #ff8b51;
  font-family: var(--display);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body[data-view="auth"],
body[data-view="loading"] {
  color: var(--ink);
  background: var(--ink);
}

body[data-view="auth"]::before,
body[data-view="loading"]::before {
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  mask-image: none;
}

.auth-screen {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(360px, 0.86fr) minmax(520px, 1.14fr);
  overflow: hidden;
  background: var(--ink);
}

.auth-rail {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(30px, 5vw, 72px);
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(154deg, transparent 0 68%, rgba(255, 85, 0, 0.17) 68.2% 78%, transparent 78.2%),
    #171717;
}

.auth-rail::before {
  position: absolute;
  right: -150px;
  bottom: -190px;
  width: 520px;
  height: 520px;
  border: 72px solid rgba(255, 85, 0, 0.13);
  content: "";
  transform: rotate(18deg);
}

.auth-rail::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 5px;
  height: 38%;
  background: var(--orange);
  content: "";
}

.auth-rail__brand,
.auth-rail__copy,
.auth-rail__readout {
  position: relative;
  z-index: 1;
}

.auth-rail__copy {
  max-width: 620px;
  padding: clamp(90px, 18vh, 190px) 0 70px;
}

.auth-rail__copy h1 {
  max-width: 570px;
  margin: 15px 0 20px;
  font-size: clamp(3.8rem, 7vw, 7.4rem);
  line-height: 0.84;
  letter-spacing: -0.05em;
}

.auth-rail__copy p {
  max-width: 510px;
  margin: 0;
  color: #c8c8c8;
  font-size: clamp(0.95rem, 1.4vw, 1.12rem);
  line-height: 1.55;
}

.auth-rail__readout {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 22px;
  padding-top: 18px;
  border-top: 1px solid #3d3d3d;
  color: #858585;
  font-family: var(--display);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.auth-panel {
  position: relative;
  display: grid;
  min-width: 0;
  place-items: center;
  align-content: center;
  padding: clamp(34px, 7vw, 100px);
  background:
    linear-gradient(135deg, rgba(255, 85, 0, 0.07) 0 80px, transparent 80px),
    var(--paper);
  clip-path: polygon(7% 0, 100% 0, 100% 100%, 0 100%, 0 7%);
}

.auth-panel__inner {
  width: min(590px, 100%);
}

.auth-panel__header {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  margin-bottom: 28px;
}

.auth-panel__index {
  display: grid;
  width: 52px;
  height: 48px;
  place-items: center;
  color: var(--ink);
  background: var(--orange);
  clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 800;
}

.auth-panel__header h2 {
  margin: 5px 0 9px;
  font-size: clamp(2.7rem, 5vw, 4.5rem);
}

.auth-panel__header p {
  max-width: 490px;
  margin: 0;
  color: var(--slate);
  font-size: 0.9rem;
}

.auth-alert {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  margin-bottom: 18px;
  padding: 13px 14px;
  border-left: 4px solid var(--danger);
  color: var(--danger);
  background: var(--danger-soft);
  font-size: 0.8rem;
  font-weight: 700;
}

.auth-alert .icon {
  margin-top: 1px;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-name-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.auth-field {
  display: grid;
  gap: 6px;
}

.auth-field > span {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.045em;
}

.auth-field b {
  color: var(--orange-deep);
}

.auth-field input {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid var(--steel-dark);
  border-radius: 0;
  background: var(--white);
  box-shadow: inset 4px 0 0 transparent;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.auth-field input:focus {
  border-color: var(--ink);
  box-shadow: inset 4px 0 0 var(--orange);
}

.auth-field small {
  color: var(--slate);
  font-size: 0.68rem;
}

.auth-consent {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid #e2b195;
  background: var(--orange-soft);
}

.auth-consent label {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.76rem;
  line-height: 1.45;
}

.auth-consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--orange-deep);
}

.auth-consent .inline-link {
  justify-self: start;
  color: var(--orange-deep);
  font-size: 0.72rem;
  font-weight: 700;
}

.auth-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 3px;
  font-size: 1.05rem;
}

.auth-panel__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--steel);
  color: var(--slate);
  font-size: 0.78rem;
}

.auth-panel__security {
  position: absolute;
  right: clamp(34px, 7vw, 100px);
  bottom: 25px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #8b8f91;
  font-family: var(--display);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.loading-screen,
.connection-screen {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  place-items: center;
  align-content: center;
  padding: 36px 22px;
  text-align: center;
}

.loading-screen {
  color: var(--white);
  background:
    linear-gradient(150deg, transparent 62%, rgba(255, 85, 0, 0.16) 62.2%),
    var(--ink);
}

.loading-screen__brand {
  margin-bottom: 70px;
}

.loading-screen__signal {
  display: flex;
  height: 36px;
  align-items: flex-end;
  gap: 6px;
  margin-bottom: 22px;
}

.loading-screen__signal span {
  width: 9px;
  height: 13px;
  background: var(--orange);
  animation: rescue-signal 850ms ease-in-out infinite alternate;
}

.loading-screen__signal span:nth-child(2) {
  height: 24px;
  animation-delay: 140ms;
}

.loading-screen__signal span:nth-child(3) {
  height: 36px;
  animation-delay: 280ms;
}

.loading-screen h1 {
  max-width: 760px;
  margin: 12px 0;
  font-size: clamp(3.2rem, 8vw, 6.4rem);
}

.loading-screen p {
  max-width: 520px;
  margin: 0;
  color: #bdbdbd;
}

.connection-screen {
  background:
    linear-gradient(135deg, rgba(255, 85, 0, 0.1) 0 110px, transparent 110px),
    var(--paper);
}

.connection-card {
  display: grid;
  width: min(620px, 100%);
  justify-items: center;
  padding: clamp(34px, 7vw, 70px);
  border: 1px solid var(--steel);
  background: var(--white);
  box-shadow: var(--shadow-strong);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
}

.connection-card > .brand {
  margin-bottom: 48px;
}

.connection-card__icon {
  display: grid;
  width: 65px;
  height: 60px;
  place-items: center;
  margin-bottom: 18px;
  color: var(--white);
  background: var(--danger);
  clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%);
}

.connection-card__icon .icon {
  width: 27px;
  height: 27px;
}

.connection-card h1 {
  margin: 10px 0 12px;
  font-size: clamp(2.8rem, 7vw, 4.6rem);
}

.connection-card p {
  max-width: 430px;
  margin-bottom: 24px;
  color: var(--slate);
}

@keyframes rescue-signal {
  from {
    opacity: 0.35;
    transform: scaleY(0.55);
    transform-origin: bottom;
  }
  to {
    opacity: 1;
    transform: scaleY(1);
    transform-origin: bottom;
  }
}

@keyframes sync-pulse {
  from {
    opacity: 0.35;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1.08);
  }
}

@media (max-width: 980px) {
  .auth-screen {
    grid-template-columns: minmax(300px, 0.72fr) minmax(470px, 1.28fr);
  }

  .auth-rail {
    padding: 34px;
  }

  .auth-rail__copy h1 {
    font-size: clamp(3.3rem, 7.5vw, 5.4rem);
  }

  .auth-panel {
    padding: 50px 38px 70px;
  }
}

@media (max-width: 760px) {
  .auth-screen {
    display: block;
    overflow: visible;
  }

  .auth-rail {
    min-height: 290px;
    padding: 25px 22px 36px;
  }

  .auth-rail::after {
    width: 34%;
    height: 4px;
  }

  .auth-rail__copy {
    padding: 58px 0 0;
  }

  .auth-rail__copy h1 {
    max-width: 450px;
    margin-bottom: 13px;
    font-size: clamp(3rem, 13vw, 4.5rem);
  }

  .auth-rail__copy p {
    max-width: 480px;
    font-size: 0.85rem;
  }

  .auth-rail__readout {
    display: none;
  }

  .auth-panel {
    min-height: calc(100vh - 290px);
    padding: 42px 22px 72px;
    clip-path: polygon(24px 0, 100% 0, 100% 100%, 0 100%, 0 24px);
  }

  .auth-panel__header {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 13px;
  }

  .auth-panel__index {
    width: 44px;
    height: 41px;
  }

  .auth-panel__header h2 {
    font-size: clamp(2.55rem, 11vw, 3.7rem);
  }

  .auth-panel__security {
    right: 22px;
    bottom: 20px;
  }
}

@media (max-width: 480px) {
  .auth-name-grid {
    grid-template-columns: 1fr;
  }

  .auth-panel__footer {
    display: grid;
    justify-items: start;
  }

  .auth-panel__footer .text-button {
    min-height: 30px;
  }

  .loading-screen__brand {
    margin-bottom: 52px;
  }

  .connection-card {
    padding: 34px 22px;
  }
}
