@font-face {
  font-family: "TT Bluescreens Pro";
  src: url("../assets/fonts/TT_Bluescreens_Pro_Normal_Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "TT Bluescreens Pro";
  src: url("../assets/fonts/TT_Bluescreens_Pro_Normal_Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
}

@font-face {
  font-family: "TT Bluescreens Pro";
  src: url("../assets/fonts/TT_Bluescreens_Pro_Normal_Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
}

:root {
  --bg: #f2f5f7;
  --card: #ffffff;
  --text: #001946;
  --muted: #718096;
  --blue: #0078af;
  --blue-dark: #00326e;
  --green: #4baf46;
  --green-bg: #ecf8ef;
  --sky: #2f82ca;
  --sky-bg: #edf5fd;
  --purple: #7b57d1;
  --purple-bg: #f2edff;
  --red: #f04f4f;
  --red-bg: #fff0f0;
  --yellow: #d89b26;
  --yellow-bg: #fff7e6;
  --shadow: 0 6px 18px rgba(23, 54, 79, .07);
  --radius: 18px;
  --radius-small: 14px;
  --surface-border: 1px solid rgba(0, 50, 110, .06);
  --app-width: 460px;
  --page-gutter: 16px;
  --motion-fast: 160ms;
  --motion-base: 340ms;
  --motion-slow: 560ms;
  --motion-ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }

html.auth-pending body { visibility: hidden; }

html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "TT Bluescreens Pro", Arial, sans-serif;
}

button,
a,
input,
textarea { font: inherit; }

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

body {
  display: flex;
  justify-content: center;
}

.app {
  position: relative;
  width: min(100%, var(--app-width));
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: calc(94px + env(safe-area-inset-bottom));
  background: var(--bg);
}

.top-wrap {
  padding: calc(12px + env(safe-area-inset-top)) var(--page-gutter) 10px;
}

.topbar {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 64px;
  padding: 0 8px 0 14px;
  border: 1px solid rgba(0, 50, 110, .07);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.top-click {
  position: relative;
  display: grid;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--blue-dark);
  cursor: pointer;
  text-decoration: none;
}

.top-click:active,
.nav-item:active {
  transform: scale(.96);
  background: #eef5f8;
}

.top-click,
.nav-item {
  transition: transform var(--motion-fast) var(--motion-ease),
    background-color var(--motion-fast) ease,
    color var(--motion-fast) ease;
}

.top-click:focus-visible,
.nav-item:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.top-click.logo {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  padding: 0 12px 0 0;
  overflow: hidden;
}

.brand-logo {
  display: block;
  width: min(192px, 100%);
  height: 34px;
  object-fit: contain;
  object-position: left center;
}

.top-click.bell {
  flex: 0 0 44px;
  margin-left: auto;
}

.top-click.bell svg {
  width: 23px;
  height: 23px;
}

.notification-badge {
  position: absolute;
  top: 3px;
  right: 1px;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  border: 2px solid #fff;
  border-radius: 10px;
  background: #e84949;
  color: #fff;
  font-family: "TT Bluescreens Pro", Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 15px;
}

.top-click.avatar { flex: 0 0 50px; }

.avatar-circle {
  display: block;
  width: 40px;
  height: 40px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #edf1f5;
  box-shadow: 0 0 0 1px rgba(0, 50, 110, .12);
  overflow: hidden;
  clip-path: circle(50% at 50% 50%);
}

.avatar-circle img {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  object-fit: cover;
  object-position: 50% 50%;
  transition: opacity .38s ease;
}

.avatar-circle img.is-loaded { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .avatar-circle img { transition: none; }
}

main { padding: 6px var(--page-gutter) 22px; }

.page-head {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  margin: 2px 0 18px;
  gap: 10px;
}

.page-head h1 {
  margin: 0;
  color: #100a28;
  font-size: 26px;
  line-height: 1.05;
  text-align: center;
}

.round-control {
  position: relative;
  display: grid;
  width: 52px;
  height: 52px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow);
  color: #172233;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--motion-base) var(--motion-ease), box-shadow var(--motion-base) ease;
}

.round-control:active { transform: scale(.94); box-shadow: 0 4px 12px rgba(0, 25, 70, .09); }
.round-control svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.page-head-spacer { width: 52px; height: 52px; }

.floating-back {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top));
  left: max(var(--page-gutter), calc(50% - 230px + var(--page-gutter)));
  z-index: 55;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-10px) scale(.92);
  box-shadow: 0 8px 24px rgba(18, 46, 70, .16);
  transition: opacity var(--motion-fast) ease, transform var(--motion-base) var(--motion-ease);
}
.floating-back.is-visible { opacity: 1; pointer-events: auto; transform: translateX(0) scale(1); }

.card {
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: min(100%, var(--app-width));
  min-height: 78px;
  padding: 7px 8px max(10px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  border-top: 1px solid rgba(0, 50, 110, .10);
  border-radius: 18px 18px 0 0;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 -7px 22px rgba(0, 25, 70, .08);
  backdrop-filter: blur(16px);
}
body.embedded-page > .bottom-nav { display: none !important; }

.bottom-nav::after {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  height: 40px;
  background: #fff;
  content: "";
}

.nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 50px;
  padding: 4px 2px 2px;
  gap: 3px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #78879a;
  cursor: pointer;
  text-decoration: none;
}

.nav-item svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--motion-base) var(--motion-ease);
}

.nav-item span {
  font-size: 11px;
  white-space: nowrap;
}

.nav-item.active {
  color: var(--blue-dark);
  font-weight: 700;
}

.nav-item.active svg { transform: translateY(-1px) scale(1.06); }

.nav-item.active::before {
  position: absolute;
  top: -7px;
  width: 30px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--green);
  content: "";
}

.nav-item.problem { color: var(--red); }
.nav-item.problem.active { color: #d92f2f; }

.toast {
  position: fixed;
  bottom: 105px;
  left: 50%;
  z-index: 70;
  max-width: calc(100% - 40px);
  padding: 11px 15px;
  transform: translate(-50%, 20px);
  border-radius: 13px;
  background: #24364d;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
  color: #fff;
  font-size: 13px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: .22s ease;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(25, 40, 54, calc(.36 - var(--swipe-fade, 0)));
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--motion-base) ease, visibility 0s linear var(--motion-base);
}

.modal.open {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.sheet {
  width: min(100%, var(--app-width));
  padding: 12px 16px calc(18px + env(safe-area-inset-bottom));
  border-radius: 24px 24px 0 0;
  background: #fff;
  box-shadow: 0 -20px 45px rgba(0, 0, 0, .18);
  transform: translateY(28px);
  transition: transform 300ms var(--motion-ease);
}

.modal.open .sheet { transform: translateY(0); }

.account-modal {
  position: fixed;
  inset: 0;
  z-index: 88;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(15, 31, 46, calc(.42 - var(--swipe-fade, 0)));
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--motion-base) ease, visibility 0s linear var(--motion-base);
}

.account-modal.open {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.account-sheet {
  position: relative;
  width: min(100%, var(--app-width));
  max-height: calc(100dvh - env(safe-area-inset-top));
  padding: 16px 20px calc(24px + env(safe-area-inset-bottom));
  overflow-y: auto;
  border-radius: 24px 24px 0 0;
  outline: none;
  background: #fff;
  box-shadow: 0 -20px 45px rgba(0, 0, 0, .18);
  text-align: center;
  transform: translateY(28px);
  transition: transform 300ms var(--motion-ease);
}

.account-modal.open .account-sheet { transform: translateY(0); }

.account-sheet > img {
  width: 72px;
  height: 72px;
  margin-top: 2px;
  border-radius: 50%;
  object-fit: cover;
}

.account-sheet h2 {
  margin: 12px 0 4px;
  font-size: 20px;
}

.account-sheet p {
  margin: 0 0 24px;
  color: var(--muted);
  font-family: "TT Bluescreens Pro", Arial, sans-serif;
  font-size: 13px;
}

.account-data {
  margin: 0 -20px;
  padding: 20px;
  border-top: 1px solid #e5eaee;
  text-align: left;
}

.account-data h3 {
  margin: 0 0 12px;
  color: var(--green);
  font-family: "TT Bluescreens Pro", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.account-data dl { margin: 0; }

.account-data dl div {
  padding: 12px 0;
  border-bottom: 1px solid #e5eaee;
}

.account-data dt,
.account-data dd {
  margin: 0;
  font-family: "TT Bluescreens Pro", Arial, sans-serif;
}

.account-data dt {
  color: #34455a;
  font-size: 15px;
  font-weight: 700;
}

.account-data dd {
  margin-top: 4px;
  color: #7e8793;
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.account-close {
  position: absolute;
  top: 12px;
  right: 16px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #eef3f6;
  color: var(--text);
  cursor: pointer;
}

.account-close svg,
.account-logout svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  gap: 8px;
  border: 1px solid #e5b8b8;
  border-radius: var(--radius-small);
  background: #fff4f4;
  color: #bd3535;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.account-data + .account-logout { margin-top: 20px; }

.profile-open { overflow: hidden; }

.employee-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: calc(88px + env(safe-area-inset-top)) var(--page-gutter) 20px;
  overflow-y: auto;
  background: rgba(15, 31, 46, calc(.44 - var(--swipe-fade, 0)));
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--motion-base) ease, visibility 0s linear var(--motion-base);
}

.employee-modal.open {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.employee-card {
  position: relative;
  width: min(100%, 420px);
  padding: 24px 20px 20px;
  border: var(--surface-border);
  border-radius: var(--radius);
  outline: none;
  background: #fff;
  box-shadow: 0 24px 70px rgba(8, 30, 48, .26);
  text-align: center;
  transform: translateY(-22px) scale(.97);
  transition: transform 480ms var(--motion-ease);
}
.swipe-dismiss-surface.is-swipe-dragging { transition: none !important; user-select: none; }
.swipe-dismiss-surface.is-swipe-returning { transition: transform 240ms var(--motion-ease) !important; }

.employee-modal.open .employee-card { transform: translateY(0) scale(1); }

.employee-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f0f3f5;
  color: #536476;
  cursor: pointer;
}

.employee-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.employee-card [hidden] { display: none; }
.employee-identity { padding: 2px 28px 20px; }
.employee-photo-wrap { display: block; width: 88px; height: 88px; margin-inline: auto; border: 4px solid #eef6f1; border-radius: 50%; background: #edf1f5; overflow: hidden; }
.employee-photo-wrap img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.employee-card h2 { margin: 13px 0 4px; color: #100a28; font-size: 24px; line-height: 1.1; }
.employee-identity > p { margin: 0 auto; max-width: 310px; color: #8a929d; font-family: "TT Bluescreens Pro", Arial, sans-serif; font-size: 15px; line-height: 1.35; }
.employee-data-section { margin: 0; padding: 15px 0 0; border-top: 1px solid #e7ebef; text-align: left; }
.employee-data-section + .employee-data-section { margin-top: 12px; }
.employee-data-section h3 { margin: 0 0 9px; color: var(--green); font-family: "TT Bluescreens Pro", Arial, sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; }
.employee-card dl { margin: 0; }
.employee-card dl div { display: grid; grid-template-columns: 120px minmax(0, 1fr); padding: 7px 0; gap: 8px; }
.employee-card dt { color: #8b97a5; font-family: "TT Bluescreens Pro", Arial, sans-serif; font-size: 13px; }
.employee-card dd { min-width: 0; margin: 0; color: #33455a; font-family: "TT Bluescreens Pro", Arial, sans-serif; font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
.employee-card dd a { color: var(--blue-dark); text-decoration: none; }
.employee-action { display: grid; width: 100%; min-height: 46px; margin-top: 16px; place-items: center; border: 0; border-radius: var(--radius-small); background: var(--blue); color: #fff; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; }
.employee-action[hidden] { display: none; }
.employee-birthday-action { position: relative; display: grid; grid-template-columns: 60px minmax(0, 1fr); align-items: center; width: 100%; min-height: 64px; margin-top: 14px; padding: 4px 14px 4px 0; gap: 8px; border: 0; border-radius: 32px; background: transparent; color: #34455a; text-align: left; cursor: pointer; transition: color var(--motion-fast) ease, transform var(--motion-fast) var(--motion-ease); isolation: isolate; }
.employee-birthday-action::before { content: ""; position: absolute; z-index: -1; inset: 6px 0 6px 27px; border: 2px solid #a9cdb9; border-radius: 27px; background: #f7fbf8; transition: background-color var(--motion-fast) ease, border-color var(--motion-fast) ease; }
.employee-birthday-action[hidden] { display: none; }
.employee-birthday-action .employee-birthday-icon { position: relative; display: grid; width: 60px; height: 60px; place-items: center; border: 2px solid #a9cdb9; border-radius: 50%; background: #fff; box-shadow: 0 4px 12px rgba(10, 62, 38, .14); font-size: 26px; filter: grayscale(1); transition: background-color var(--motion-fast) ease, border-color var(--motion-fast) ease, filter var(--motion-fast) ease, transform var(--motion-fast) var(--motion-ease); }
.employee-birthday-action strong, .employee-birthday-action small { display: block; }
.employee-birthday-action strong { font-size: 15px; line-height: 1.15; }
.employee-birthday-action small { margin-top: 3px; color: #758496; font-family: "TT Bluescreens Pro", Arial, sans-serif; font-size: 12px; }
.employee-birthday-action.active { color: #176d3e; }
.employee-birthday-action.active::before { border-color: #159957; background: #e7f7ed; }
.employee-birthday-action.active .employee-birthday-icon { border-color: #159957; background: #159957; filter: none; transform: scale(1.03); }
.employee-birthday-action:active { transform: scale(.985); }
.employee-close:focus-visible, .employee-action:focus-visible { outline: 2px solid var(--blue-dark); outline-offset: 2px; }

.app main > * {
  animation: page-reveal var(--motion-slow) var(--motion-ease) both;
}

.app main > *:nth-child(2) { animation-delay: 55ms; }
.app main > *:nth-child(3) { animation-delay: 100ms; }
.app main > *:nth-child(4) { animation-delay: 145ms; }
.app main > *:nth-child(5) { animation-delay: 190ms; }
.app main > *:nth-child(n+6) { animation-delay: 220ms; }

@keyframes page-reveal {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.grab {
  width: 44px;
  height: 5px;
  margin: 0 auto 14px;
  border-radius: 99px;
  background: #d9e0e6;
}

.diagnostic-sheet {
  display: flex;
  max-height: min(82dvh, 760px);
  padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
  flex-direction: column;
  outline: none;
}

.diagnostic-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.diagnostic-head h2 {
  margin: 0 0 3px;
  font-size: 22px;
  line-height: 1.1;
}

.diagnostic-head p {
  margin: 0;
  color: var(--muted);
  font-family: "TT Bluescreens Pro", Arial, sans-serif;
  font-size: 13px;
}

.diagnostic-close {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  flex: 0 0 44px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #eef3f6;
  color: var(--text);
  cursor: pointer;
}

.diagnostic-close svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.diagnostic-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  margin: 12px 0 8px;
  gap: 8px;
  border-top: 1px solid #e5eaee;
  border-bottom: 1px solid #e5eaee;
}

.diagnostic-toolbar > span {
  color: var(--muted);
  font-family: "TT Bluescreens Pro", Arial, sans-serif;
  font-size: 13px;
}

.diagnostic-toolbar > div {
  display: flex;
  gap: 4px;
}

.diagnostic-toolbar button {
  min-height: 36px;
  padding: 0 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--blue-dark);
  font-family: "TT Bluescreens Pro", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.diagnostic-toolbar button:last-child { color: #bd3535; }

.diagnostic-list {
  min-height: 150px;
  padding: 0 2px 2px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.diagnostic-item {
  margin-bottom: 8px;
  border: 1px solid #dfe7ed;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.diagnostic-item summary {
  position: relative;
  display: grid;
  padding: 12px 36px 12px 12px;
  gap: 6px;
  cursor: pointer;
  list-style: none;
}

.diagnostic-item summary::-webkit-details-marker { display: none; }

.diagnostic-item summary::after {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #8493a2;
  border-bottom: 2px solid #8493a2;
  content: "";
  transform: translateY(-65%) rotate(45deg);
  transition: transform var(--motion-fast) ease;
}

.diagnostic-item[open] summary::after { transform: translateY(-30%) rotate(225deg); }

.diagnostic-summary-top {
  display: flex;
  align-items: center;
  gap: 7px;
}

.diagnostic-summary-top time {
  margin-left: auto;
  color: var(--muted);
  font-family: "TT Bluescreens Pro", Arial, sans-serif;
  font-size: 12px;
}

.diagnostic-method,
.diagnostic-status {
  padding: 3px 7px;
  border-radius: 7px;
  font-family: "TT Bluescreens Pro", Arial, sans-serif;
  font-size: 11px;
  line-height: 1.2;
}

.diagnostic-method {
  background: var(--sky-bg);
  color: var(--blue-dark);
}

.diagnostic-status {
  background: var(--red-bg);
  color: #b72e2e;
}

.diagnostic-item.is-success .diagnostic-status {
  background: var(--green-bg);
  color: #18733e;
}

.diagnostic-endpoint {
  color: #263d55;
  font-family: "TT Bluescreens Pro", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.diagnostic-item summary > small {
  color: var(--muted);
  font-family: "TT Bluescreens Pro", Arial, sans-serif;
  font-size: 11px;
}

.diagnostic-body {
  padding: 0 12px 12px;
  border-top: 1px solid #edf1f4;
}

.diagnostic-payload h4 {
  margin: 12px 0 6px;
  color: #34455a;
  font-family: "TT Bluescreens Pro", Arial, sans-serif;
  font-size: 13px;
}

.diagnostic-payload pre {
  max-height: 340px;
  margin: 0;
  padding: 10px;
  overflow: auto;
  border: 1px solid #e1e8ed;
  border-radius: 10px;
  background: #f6f8fa;
  color: #24364d;
  font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.diagnostic-empty {
  display: grid;
  min-height: 180px;
  padding: 24px;
  place-content: center;
  gap: 6px;
  color: var(--muted);
  font-family: "TT Bluescreens Pro", Arial, sans-serif;
  text-align: center;
}

.diagnostic-empty strong {
  color: var(--text);
  font-size: 16px;
}

.diagnostic-empty span {
  max-width: 280px;
  font-size: 13px;
  line-height: 1.45;
}

.diagnostic-close:focus-visible,
.diagnostic-toolbar button:focus-visible,
.diagnostic-item summary:focus-visible {
  outline: 2px solid var(--blue-dark);
  outline-offset: 2px;
}

.image-reveal {
  opacity: 0;
  transition: opacity 420ms ease;
}
.image-reveal.is-loaded { opacity: 1; }

@media (max-width: 360px) {
  :root { --page-gutter: 12px; }
  .bottom-nav { padding-inline: 4px; }
  .nav-item span { font-size: 10px; }
}

@media (min-width: 700px) {
  .app {
    min-height: 100vh;
    min-height: 100dvh;
    box-shadow: 0 24px 70px rgba(26, 55, 79, .18);
  }

  .bottom-nav {
    bottom: 0;
    border-radius: 18px 18px 0 0;
  }

  .bottom-nav::after { display: block; }
}

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