/* Pani Doktor, academic/medical teal & blue, mobile-first RWD */

/*  Inter, self-hosted, no CDN  */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter/Inter-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter/Inter-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter/Inter-SemiBold.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter/Inter-Bold.woff2") format("woff2");
}

:root {
  --um-text: #142130;
  --um-muted: #5a6675;
  --um-card: #f8f9fb;
  --um-border: #cfd5de;
  --um-danger: #b42318;
  --um-accent: #0284c7;
  --um-accent-warm: #0f766e;
  --um-accent-glow: #38bdf8;
  --um-radius: 0.625rem;
  --um-ui: "Inter", ui-sans-serif, "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
  --um-mono: ui-monospace, Consolas, "Cascadia Mono", monospace;
  --um-sticky-h: 4.25rem;
  --bs-body-font-family: var(--um-ui);
}

/*  Typography tweaks (Fila-like)  */
.h1, .h2, .h3, .h4, .h5, .h6,
h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.02em;
}

.um-section-title,
.pp-topbar-title {
  letter-spacing: -0.03em;
}

/*  Shared base  */
.um-login-page,
.um-app-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--um-ui);
  font-size: 0.9375rem;
  color: #0f172a;
  background: #eff3f9;
  line-height: 1.5;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.um-login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: max(1.25rem, env(safe-area-inset-top));
  padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
  position: relative;
  overflow-x: hidden;
  background: linear-gradient(135deg, #040b18 0%, #07142a 45%, #0b1d3b 100%);
}

.um-app-page {
  display: flex;
  flex-direction: column;
}

/*  Login: particles.js (jak _wtx.pl), tło teal  */
.um-particles-js {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: radial-gradient(
    circle at 18% -10%,
    rgba(255, 210, 26, 0.12) 0%,
    rgba(10, 22, 42, 1) 28%,
    rgba(6, 16, 32, 1) 52%,
    rgba(3, 10, 22, 1) 75%,
    rgba(1, 4, 12, 1) 100%
  );
}

.um-particles-js canvas.particles-js-canvas-el {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.85)) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55));
}

@media (max-width: 768px) {
  .um-particles-js {
    background: radial-gradient(
      circle at 22% -15%,
      rgba(255, 210, 26, 0.1) 0%,
      rgba(8, 18, 36, 1) 38%,
      rgba(2, 8, 18, 1) 100%
    );
  }
}

@media (prefers-reduced-motion: reduce) {
  .um-particles-js canvas.particles-js-canvas-el {
    display: none;
  }
}

.um-login-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 44rem;
  padding-left: max(0.75rem, env(safe-area-inset-left));
  padding-right: max(0.75rem, env(safe-area-inset-right));
}

.um-login-card {
  color: var(--um-text);
  background: #fff;
  border-radius: var(--um-radius);
  overflow: hidden;
  box-shadow: rgba(0, 0, 0, 0.55) 0 0 30px 0;
  position: relative;
}

.um-login-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--g-gold-soft) 0%, var(--g-gold) 50%, var(--g-gold-deep) 100%);
  z-index: 3;
}

.um-login-brand-panel {
  background: linear-gradient(160deg, #1a3055 0%, #152a46 50%, #0a1f3c 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.75rem 1.5rem 1.5rem;
  min-height: 12rem;
  position: relative;
  overflow: hidden;
  color: #f8fafc;
}

.um-login-illustration {
  width: min(15rem, 80%);
  height: auto;
  display: block;
  margin: 0 auto 0.75rem;
  filter: drop-shadow(0 18px 42px rgba(2, 132, 199, 0.22)) drop-shadow(0 8px 18px rgba(0, 0, 0, 0.18));
}

.um-login-logo-frame {
  display: inline-block;
  background: #f8fafc;
  border-radius: 1.6rem;
  padding: 0.85rem;
  margin: 0 auto 1rem;
  box-shadow:
    0 0 0 1.5px rgba(255, 210, 26, 0.55),
    0 1.2rem 2.5rem rgba(0, 0, 0, 0.45),
    0 0.3rem 0.8rem rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.95);
  position: relative;
}

.um-login-logo-frame::before {
  content: "";
  position: absolute;
  inset: -0.45rem;
  border-radius: 2rem;
  background: radial-gradient(circle at 30% 30%, rgba(255, 210, 26, 0.25) 0%, transparent 65%);
  z-index: -1;
  pointer-events: none;
}

.um-login-logo {
  width: min(9rem, 100%);
  height: auto;
  display: block;
  margin: 0;
  border-radius: 1.1rem;
  box-shadow: none;
}

.um-login-brand-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 15%, rgba(255, 210, 26, 0.22) 0%, transparent 55%),
    radial-gradient(circle at 82% 85%, rgba(255, 159, 0, 0.14) 0%, transparent 55%);
  pointer-events: none;
}

.um-login-brand-panel .um-login-brand-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.um-login-tagline {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.85rem;
  margin: 0.5rem 0 1.1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.um-login-features {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  text-align: left;
  max-width: 13rem;
  margin-inline: auto;
}

.um-login-features li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.3;
}

.um-login-features li svg {
  flex-shrink: 0;
  color: var(--g-gold);
  filter: drop-shadow(0 1px 2px rgba(255, 210, 26, 0.35));
}

@media (min-width: 768px) {
  .um-login-brand-panel {
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 18.75rem;
  }
}

.um-brand-mark {
  width: 5.5rem;
  height: 5.5rem;
  margin: 0 auto 1rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--um-accent-warm) 0%, var(--um-accent-glow) 40%, var(--um-accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  box-shadow: 0 10px 28px rgba(2, 132, 199, 0.28);
}

.um-login-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.25rem 1.75rem;
}

@media (min-width: 768px) {
  .um-login-form-panel {
    padding: 1.5rem 2rem;
  }
}

.um-login-form-inner {
  width: 100%;
  max-width: 18.75rem;
}

.um-login-greeting {
  margin-bottom: 1.25rem;
}

.um-login-greeting-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 0.2rem;
  color: var(--g-accent);
  letter-spacing: -0.01em;
}

.um-login-greeting-sub {
  margin: 0;
  font-size: 0.85rem;
  color: var(--g-text-muted);
}

@media (max-width: 767.98px) {
  .um-login-container {
    max-width: min(20.5rem, 88vw);
    padding-left: max(0.5rem, env(safe-area-inset-left));
    padding-right: max(0.5rem, env(safe-area-inset-right));
  }

  .um-login-card {
    box-shadow: rgba(0, 0, 0, 0.45) 0 0 20px 0;
  }

  .um-login-brand-panel {
    min-height: auto;
    padding: 0.75rem 1rem 0.65rem;
  }

  .um-login-brand-panel h1 {
    font-size: 0.95rem;
    margin-bottom: 0.15rem !important;
  }

  .um-login-brand-panel .small {
    font-size: 0.72rem;
  }

  .um-brand-mark {
    width: 3rem;
    height: 3rem;
    margin-bottom: 0.45rem;
    font-size: 1rem;
    border-radius: 0.65rem;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.28);
  }

  .um-login-form-panel {
    padding: 0.85rem 1rem 1rem;
  }

  .um-login-form-inner {
    max-width: 100%;
  }

  .um-login-form-inner .form-label {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
  }

  .um-login-form-inner .form-control-lg {
    padding: 0.45rem 0.6rem;
    font-size: 0.95rem;
    min-height: 2.35rem;
    border-radius: 0.4rem;
  }

  .um-login-form-inner .btn-lg {
    padding: 0.5rem 0.85rem;
    font-size: 0.95rem;
    min-height: 2.5rem;
  }

  .um-login-form-inner .mb-3 {
    margin-bottom: 0.6rem !important;
  }

  .um-login-form-inner .mt-2 {
    margin-top: 0.35rem !important;
  }

  .um-login-card .alert {
    padding: 0.45rem 0.6rem;
    font-size: 0.8rem;
    margin-bottom: 0.55rem;
  }

  .um-login-features,
  .um-login-tagline {
    display: none;
  }

  .um-login-brand-panel {
    min-height: 8.5rem;
  }

  .um-login-logo-frame {
    padding: 0.5rem;
    border-radius: 1rem;
    margin-bottom: 0.5rem;
  }

  .um-login-logo {
    width: min(5.5rem, 70%);
    border-radius: 0.7rem;
  }
}

/*  App layout  */
.um-card {
  color: var(--um-text);
  background: var(--um-card);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--um-radius);
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.06);
}

.um-card:hover {
  box-shadow: 0 14px 38px rgba(2, 6, 23, 0.09);
}

.pp-content .alert {
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.um-prompt {
  min-height: 10rem;
  font-family: var(--um-mono);
  font-size: 0.875rem;
  line-height: 1.45;
  resize: vertical;
}

.um-answer-key {
  min-height: 8rem;
  font-family: var(--um-mono);
  font-size: 0.875rem;
  line-height: 1.5;
  resize: vertical;
  tab-size: 2;
}

@media (min-width: 992px) {
  .um-prompt {
    min-height: 14rem;
  }

  .um-answer-key {
    min-height: 10rem;
  }
}

.um-field-vision {
  display: none;
}

.um-mode-vision .um-field-vision {
  display: block;
}

.um-btn-gradient {
  color: #fff;
  background: linear-gradient(135deg, var(--um-accent-warm) 0%, var(--um-accent) 100%);
  border: none;
  font-weight: 600;
}

.um-btn-gradient:hover,
.um-btn-gradient:focus {
  color: #fff;
  filter: brightness(1.05);
  background: linear-gradient(135deg, var(--um-accent-warm) 0%, var(--um-accent) 100%);
}

.um-btn-gradient:disabled {
  opacity: 0.55;
}

.um-sticky-submit {
  position: sticky;
  bottom: 0;
  z-index: 20;
  margin: 0 -0.25rem;
  padding: 0.75rem 0.25rem;
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--um-card) 70%, rgba(248, 249, 251, 0.92) 90%, transparent);
}

@media (min-width: 992px) {
  .um-sticky-submit {
    position: static;
    margin: 0;
    padding: 0;
    background: none;
  }
}

.um-main-col {
  padding-bottom: calc(var(--um-sticky-h) + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 992px) {
  .um-main-col {
    padding-bottom: 0;
  }
}

.um-result-block {
  border-top: 1px solid var(--um-border);
}

.um-output {
  margin: 0;
  padding: 0.75rem;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 0.375rem;
  font-family: var(--um-mono);
  font-size: 0.78rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 28rem;
  overflow: auto;
}

.um-error-msg {
  color: var(--um-danger);
  font-size: 0.9rem;
}

.um-hint {
  font-size: 0.78rem;
  color: var(--um-muted);
}

.um-raw-json summary,
.um-correct summary {
  cursor: pointer;
  color: var(--um-accent);
  font-weight: 500;
}

.um-app-page .form-control:focus,
.um-app-page .form-select:focus,
.um-login-page .form-control:focus {
  border-color: var(--g-accent);
  box-shadow: 0 0 0 0.2rem rgba(21, 42, 70, 0.18);
}

/*  Fila-like shell (sidebar + topbar)  */
.pp-shell {
  display: grid;
  grid-template-columns: 16.5rem minmax(0, 1fr);
  min-height: 100vh;
}

.pp-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #ffffff;
  border-right: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

.pp-sidebar-head { padding-bottom: 0.75rem; border-bottom: 1px solid rgba(15, 23, 42, 0.06); }
.pp-sidebar-foot { margin-top: auto; padding-top: 0.75rem; border-top: 1px solid rgba(15, 23, 42, 0.06); }

.pp-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}
.pp-brand-image {
  width: min(8.25rem, 100%);
  height: auto;
  display: block;
  border-radius: 1.15rem;
  box-shadow: 0 1rem 2rem rgba(2, 5, 12, 0.28);
}
.pp-brand-image--horizontal {
  width: min(12.5rem, 100%);
  border-radius: 0;
  box-shadow: none;
}
.pp-brand-image--transparent {
  width: min(9rem, 100%);
  border-radius: 0;
  box-shadow: none;
}
.pp-offcanvas-logo {
  width: 6rem;
  height: auto;
  display: block;
  border-radius: 0.9rem;
}
.pp-offcanvas-logo--horizontal {
  width: 12.25rem;
  border-radius: 0;
}
.pp-footer-brand {
  width: 6.25rem;
  height: auto;
  display: inline-block;
  vertical-align: middle;
}
.pp-brand-logo {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.6rem;
  background: linear-gradient(135deg, var(--um-accent) 0%, var(--um-accent-glow) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
}
.pp-brand-name { font-weight: 700; }

.pp-nav { display: grid; gap: 0.25rem; padding-top: 0.75rem; }
.pp-nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.6rem;
  text-decoration: none;
  color: #0f172a;
  border: 1px solid transparent;
}

.pp-nav-ico {
  width: 1.45rem;
  height: 1.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.45rem;
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.14);
  font-size: 0.9rem;
  line-height: 1;
  flex: 0 0 auto;
}
.pp-nav-link:hover {
  background: rgba(2, 132, 199, 0.06);
  border-color: rgba(2, 132, 199, 0.18);
  color: #0f172a;
}
.pp-nav-link.active {
  background: rgba(2, 132, 199, 0.1);
  border-color: rgba(2, 132, 199, 0.22);
  font-weight: 700;
}
.pp-nav-link--muted { color: rgba(15, 23, 42, 0.7); }

.pp-user { font-size: 0.85rem; color: rgba(15, 23, 42, 0.7); margin-bottom: 0.5rem; }

.pp-main { min-width: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.pp-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(239, 243, 249, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.pp-topbar-titles { display: grid; gap: 0.1rem; min-width: 0; }
.pp-topbar-crumb {
  font-size: 0.78rem;
  color: rgba(15, 23, 42, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pp-topbar-title {
  font-weight: 900;
  letter-spacing: -0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pp-content { flex: 1 0 auto; padding: 1rem; max-width: 72rem; width: 100%; margin: 0 auto; }
.pp-footer { flex-shrink: 0; margin-top: auto; padding: 1.25rem 1rem; color: rgba(15, 23, 42, 0.55); font-size: 0.78rem; }

.pp-offcanvas .offcanvas-header { border-bottom: 1px solid rgba(15, 23, 42, 0.08); }

@media (max-width: 991.98px) {
  .pp-shell { grid-template-columns: minmax(0, 1fr); }
  .pp-sidebar { display: none; }
  .pp-content { padding: 0.85rem; }
}

/*  Section headers  */
.um-section {
  margin-bottom: 1rem;
}

.um-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.85rem;
}

.um-section-title {
  margin: 0;
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight: 700;
  color: #f4f6fb;
}

.um-section-sub {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: rgba(220, 228, 245, 0.55);
}

.um-empty-state {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--um-muted);
}

/*  History list (dashboard)  */
.um-history-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.um-history-item {
  display: flex;
  gap: 0.85rem;
  padding: 0.85rem;
  border: 1px solid var(--um-border);
  border-radius: 0.5rem;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.um-history-item:hover {
  border-color: rgba(109, 40, 217, 0.45);
  box-shadow: 0 6px 20px rgba(109, 40, 217, 0.12);
  transform: translateY(-1px);
  color: inherit;
}

.um-history-item--verify {
  border-color: rgba(245, 158, 11, 0.75);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}

.um-history-item--verify:hover {
  border-color: rgba(245, 158, 11, 0.9);
  box-shadow: 0 10px 26px rgba(245, 158, 11, 0.18);
}

.um-history-item--invalid {
  border-color: rgba(239, 68, 68, 0.75);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.um-history-item--invalid:hover {
  border-color: rgba(239, 68, 68, 0.9);
  box-shadow: 0 10px 26px rgba(239, 68, 68, 0.18);
}

.um-history-thumb {
  flex: 0 0 auto;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 0.45rem;
  overflow: hidden;
  background: #0f172a;
}

.um-history-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.um-history-thumb--text {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(180, 83, 9, 0.25) 0%, rgba(109, 40, 217, 0.35) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}

.um-history-body {
  flex: 1;
  min-width: 0;
}

.um-history-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.45rem;
}

.um-history-time {
  margin-left: auto;
  font-size: 0.72rem;
  color: var(--um-muted);
  white-space: nowrap;
}

.um-history-label {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--um-muted);
}

.um-history-text {
  margin: 0.15rem 0 0.5rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--um-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.um-history-text--a {
  margin-bottom: 0;
  color: var(--um-muted);
}

/*  Badges  */
.um-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.3em 0.65em;
}

.um-badge-mode {
  background: rgba(2, 132, 199, 0.12);
  color: var(--um-accent);
}

.um-badge-model {
  background: rgba(20, 33, 48, 0.08);
  color: var(--um-text);
}

.um-badge-ok {
  background: rgba(22, 163, 74, 0.15);
  color: #15803d;
}

.um-badge-err {
  background: rgba(180, 35, 24, 0.12);
  color: var(--um-danger);
}

/*  Result page  */
.um-result-layout {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.um-result-image {
  width: 100%;
  max-width: min(22rem, 100%);
  margin: 0 auto;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #0f172a;
}

.um-result-image img {
  width: 100%;
  height: auto;
  max-height: min(75vh, 40rem);
  object-fit: contain;
  object-position: top center;
  display: block;
}

.um-result-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.5rem;
}

.um-result-heading {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--um-muted);
  margin-bottom: 0.5rem;
}

.um-result-block + .um-result-block {
  margin-top: 1rem;
}

.um-wrong-answers {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.35rem;
  max-height: min(50vh, 28rem);
  overflow-y: auto;
  font-size: 0.95rem;
  line-height: 1.45;
}

@media (min-width: 768px) {
  .um-wrong-answers,
  .um-correction-answers,
  .um-verify-answers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1rem;
  }
}

.um-wrong-answers li {
  padding: 0.45rem 0.65rem;
  background: rgba(220, 53, 69, 0.08);
  border: 1px solid rgba(220, 53, 69, 0.22);
  border-radius: 0.375rem;
}

.um-correction-answers {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.35rem;
  max-height: min(40vh, 22rem);
  overflow-y: auto;
  font-size: 0.95rem;
  line-height: 1.45;
}

.um-correction-answers li {
  padding: 0.45rem 0.65rem;
  background: rgba(180, 83, 9, 0.08);
  border: 1px solid rgba(180, 83, 9, 0.28);
  border-radius: 0.375rem;
}

.um-verify-answers {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .um-verify-answers {
    grid-template-columns: 1fr;
  }
}

.um-verify-row {
  padding: 0.65rem 0.75rem;
  border-radius: 0.375rem;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.12);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.um-verify-row--pending {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.14);
}

.um-verify-row--ok {
  background: #f0fdf4;
  border-color: #86efac;
}

.um-verify-row--bad {
  background: #fef2f2;
  border-color: #fca5a5;
}

.um-verify-row-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 576px) {
  .um-verify-row-body {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }
}

.um-verify-row-text {
  font-size: 0.95rem;
  line-height: 1.45;
}

.um-verify-letter {
  min-width: 2.25rem;
  font-weight: 600;
}

.um-verify-edit-btn {
  flex-shrink: 0;
  padding: 0.2rem 0.45rem;
}

.um-verify-row--saved .um-verify-summary {
  width: 100%;
}

.um-verify-row--editing {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.45);
}

.um-verify-resolved {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 0.35rem;
}

.um-verify-resolved--ok {
  color: #166534;
  background: #dcfce7;
}

.um-verify-resolved--bad {
  color: #991b1b;
  background: #fee2e2;
}

.um-ans-wrong {
  color: #dc2626;
  font-weight: 700;
}

.um-ans-correct {
  color: #16a34a;
  font-weight: 700;
}

.um-history-correction {
  margin-top: 0.35rem;
}

.um-correction-note {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #0369a1;
  background: #e0f2fe;
  border: 1px solid #7dd3fc;
  border-radius: 0.35rem;
  padding: 0.15rem 0.45rem;
}

.um-result-score {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.um-output--light {
  background: #f1f5f9;
  color: var(--um-text);
  max-height: 12rem;
}

.um-result-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--um-border);
}

/*  Result layout on desktop  */
@media (min-width: 992px) {
  .um-result-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.75rem;
  }

  .um-result-image {
    flex: 0 0 auto;
    width: min(22rem, 38vw);
    max-width: 22rem;
    margin: 0;
  }

  .um-result-content {
    flex: 1;
    min-width: 0;
  }

  .um-result-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .um-result-actions .btn-lg {
    width: auto;
    min-width: 12rem;
  }
}

@media (min-width: 768px) {
  .um-history-thumb {
    width: 5.5rem;
    height: 5.5rem;
  }

  .um-history-item {
    padding: 1rem 1.1rem;
    gap: 1rem;
  }
}

@media (max-width: 575.98px) {
  .um-history-time {
    width: 100%;
    margin-left: 0;
    margin-top: 0.15rem;
  }

  .um-history-meta {
    gap: 0.35rem;
  }
}

/* =================================================================
 * Gentelella-inspired theme (dark sidebar + light content)
 * Wszystko poniżej nadpisuje wcześniejsze deklaracje dla shell'a app'ki.
 * Nie rusza login page (.um-login-page), ta zachowuje swój styl.
 * ================================================================= */

:root {
  --g-sidebar-bg: #2a3f54;
  --g-sidebar-bg-2: #25374a;
  --g-sidebar-border: rgba(255, 255, 255, 0.06);
  --g-sidebar-text: #e7e7e7;
  --g-sidebar-text-muted: #97a8b9;
  --g-accent: #152a46;        /* navy z tła logo Pani Doktor */
  --g-accent-hover: #1f3a5e;  /* jaśniejszy navy dla hover */
  --g-gold: #ffd21a;          /* żółty z checkmarka logo */
  --g-gold-soft: #ffe568;     /* jaśniejszy żółty (badges, tła) */
  --g-gold-deep: #ff9f00;     /* bursztynowy z gradientu logo */
  --g-accent-shadow: rgba(21, 42, 70, 0.28);
  --g-gold-shadow: rgba(255, 210, 26, 0.35);
  --g-content-bg: #f7f7f7;
  --g-card-bg: #ffffff;
  --g-border: #e6e9ed;
  --g-text: #34495e;
  --g-text-muted: #73879c;
  --g-shadow: 0 1px 2px rgba(34, 41, 47, 0.08), 0 1px 1px rgba(34, 41, 47, 0.04);
  --g-shadow-hover: 0 2px 6px rgba(34, 41, 47, 0.12), 0 1px 2px rgba(34, 41, 47, 0.06);

  /* Status tokens, jedno źródło prawdy dla kolorów statusów wyniku */
  --st-ok: #15803d;
  --st-ok-bg: rgba(22, 163, 74, 0.14);
  --st-verify: #b45309;
  --st-verify-bg: rgba(245, 158, 11, 0.16);
  --st-invalid: #b42318;
  --st-invalid-bg: rgba(217, 83, 79, 0.14);
}

/*  Status badges (helper um_status_meta)  */
.um-stbadge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.32em 0.7em;
  border-radius: 0.4rem;
  letter-spacing: 0.01em;
}

.um-stbadge--ok {
  background: var(--st-ok-bg);
  color: var(--st-ok);
}

.um-stbadge--verify {
  background: var(--st-verify-bg);
  color: var(--st-verify);
}

.um-stbadge--invalid {
  background: var(--st-invalid-bg);
  color: var(--st-invalid);
}

.um-stbadge--none {
  background: rgba(115, 135, 156, 0.14);
  color: var(--g-text-muted);
}

/* Content background */
.um-app-page {
  background: var(--g-content-bg);
  color: var(--g-text);
}

/* Shell layout (slightly tighter sidebar like Gentelella) */
.pp-shell {
  grid-template-columns: 15rem minmax(0, 1fr);
}

/*  SIDEBAR  */
.pp-sidebar {
  background: var(--g-sidebar-bg);
  border-right: 1px solid var(--g-sidebar-border);
  color: var(--g-sidebar-text);
  padding: 0;
}

.pp-sidebar-head {
  padding: 1.15rem 1.1rem 0.9rem;
  border-bottom: 1px solid var(--g-sidebar-border);
}

.pp-sidebar-foot {
  padding: 0.9rem 1.1rem 1rem;
  border-top: 1px solid var(--g-sidebar-border);
  background: var(--g-sidebar-bg-2);
}

.pp-brand {
  color: var(--g-sidebar-text);
}

.pp-brand-logo {
  background: linear-gradient(135deg, var(--g-accent) 0%, #2ecdb1 100%);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.pp-brand-name {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.pp-nav {
  padding: 0.65rem 0.5rem;
  gap: 0.15rem;
}

.pp-nav-link {
  color: var(--g-sidebar-text);
  border: 0;
  border-radius: 0.35rem;
  padding: 0.6rem 0.75rem;
  font-size: 0.93rem;
  letter-spacing: 0.005em;
  position: relative;
  transition: background 0.15s ease, color 0.15s ease;
}

.pp-nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
  border: 0;
  color: #ffffff;
}

.pp-nav-link.active {
  background: var(--g-accent);
  border: 0;
  color: #ffffff;
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--g-gold), 0 2px 5px rgba(21, 42, 70, 0.32);
}

.pp-nav-link.active:hover {
  background: var(--g-accent-hover);
  color: #ffffff;
  box-shadow: inset 3px 0 0 var(--g-gold), 0 2px 5px rgba(21, 42, 70, 0.32);
}

.pp-nav-link.active .pp-nav-ico {
  background: var(--g-gold);
  color: var(--g-accent);
}

.pp-nav-ico {
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  color: var(--g-sidebar-text-muted);
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.5rem;
  transition: background 0.15s, color 0.15s;
}

.pp-nav-link:hover .pp-nav-ico {
  background: var(--g-accent);
  color: #ffffff;
}

.pp-nav-ico svg {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
}

.pp-nav-link--muted {
  color: var(--g-sidebar-text-muted);
  font-size: 0.88rem;
}

.pp-nav-link--muted:hover {
  color: #ffffff;
}

.pp-user {
  color: var(--g-sidebar-text-muted);
  font-size: 0.82rem;
  margin-bottom: 0.6rem;
}

.pp-user strong {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
}

/*  TOPBAR (light, Gentelella-style)  */
.pp-topbar {
  background: #ffffff;
  backdrop-filter: none;
  border-bottom: 1px solid var(--g-border);
  box-shadow: var(--g-shadow);
  padding: 0.85rem 1.25rem;
}

.pp-topbar-crumb {
  color: var(--g-text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.pp-topbar-title {
  color: var(--g-text);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 1.15rem;
}

.pp-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.5rem;
  flex: 0 0 auto;
}

.pp-topbar-actions .btn {
  white-space: nowrap;
}

/*  CONTENT  */
.pp-content {
  padding: 1.5rem 1.25rem;
  max-width: 80rem;
}

.pp-footer {
  padding: 1rem 1.25rem;
  color: var(--g-text-muted);
  font-size: 0.78rem;
  background: #ffffff;
  border-top: 1px solid var(--g-border);
  text-align: center;
}

/*  CARDS (Gentelella x_panel feel, nieco bardziej przyjazne radiusy)  */
.um-card {
  background: var(--g-card-bg);
  border: 1px solid var(--g-border) !important;
  border-radius: 0.6rem !important;
  box-shadow: var(--g-shadow);
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.um-card:hover {
  box-shadow: var(--g-shadow-hover);
  border-color: #d0d4d9 !important;
}

/* Tighter spacing inside cards on small screens */
.um-card .card-body {
  border-radius: inherit;
}

/* Bootstrap rounded-3 helper inside our cards should match the card radius */
.um-card .rounded-3 {
  border-radius: 0.5rem !important;
}

/*  SECTION TITLES  */
.um-section-title {
  color: var(--g-text);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.005em;
}

.um-section-sub {
  color: var(--g-text-muted);
  font-size: 0.875rem;
}

/*  BUTTON: primary gradient (kept tealish to match brand)  */
.um-btn-gradient {
  background: var(--g-accent);
  border: 1px solid var(--g-accent);
  color: #ffffff;
  font-weight: 600;
  border-radius: 0.55rem;
  letter-spacing: 0.005em;
  box-shadow: 0 1px 2px rgba(21, 42, 70, 0.22);
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.um-btn-gradient:hover,
.um-btn-gradient:focus {
  background: var(--g-accent-hover);
  border-color: var(--g-accent-hover);
  color: #ffffff;
  filter: none;
  box-shadow: 0 3px 8px rgba(21, 42, 70, 0.36);
}

.um-btn-gradient:active {
  transform: translateY(1px);
}

/* Outline buttons inside the new theme, softer rounding, accent color on hover */
.um-app-page .btn-outline-secondary {
  border-radius: 0.5rem;
  border-color: var(--g-border);
  color: var(--g-text);
}

.um-app-page .btn-outline-secondary:hover {
  background: var(--g-accent);
  border-color: var(--g-accent);
  color: #ffffff;
}

/*  HISTORY ITEMS  */
.um-history-item {
  border: 1px solid var(--g-border);
  border-radius: 0.6rem;
  background: var(--g-card-bg);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.um-history-item:hover {
  border-color: var(--g-accent);
  box-shadow: 0 3px 10px rgba(21, 42, 70, 0.14);
}

.um-history-item--verify {
  border-left: 4px solid #f0ad4e;
}

.um-history-item--verify:hover {
  border-color: var(--g-accent);
  border-left-color: #f0ad4e;
}

.um-history-item--invalid {
  border-left: 4px solid #d9534f;
}

.um-history-item--invalid:hover {
  border-color: var(--g-accent);
  border-left-color: #d9534f;
}

/*  OFFCANVAS (mobile sidebar), match dark theme  */
.pp-offcanvas {
  background: var(--g-sidebar-bg);
  color: var(--g-sidebar-text);
}

.pp-offcanvas .offcanvas-header {
  border-bottom: 1px solid var(--g-sidebar-border);
  padding: 1.15rem 1.25rem;
}

.pp-offcanvas .offcanvas-title {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: -0.005em;
}

.pp-offcanvas .btn-close {
  filter: invert(1) brightness(1.5);
}

.pp-offcanvas .offcanvas-body {
  padding: 0.5rem 0.5rem 1rem;
  display: flex;
  flex-direction: column;
}

.pp-offcanvas-nav {
  display: grid;
  gap: 0.15rem;
}

.pp-offcanvas-foot {
  margin-top: auto;
  padding: 0.85rem 0.6rem 0;
  border-top: 1px solid var(--g-sidebar-border);
}

.pp-user-block {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.85rem;
}

.pp-user-block-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--g-gold-soft) 0%, var(--g-gold) 50%, var(--g-gold-deep) 100%);
  color: var(--g-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.pp-user-block-info {
  min-width: 0;
}

.pp-user-block-label {
  font-size: 0.7rem;
  color: var(--g-sidebar-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.pp-user-block-name {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  word-break: break-word;
  line-height: 1.25;
  margin-top: 0.1rem;
}

.pp-sidebar-sep {
  border-color: var(--g-sidebar-border) !important;
  opacity: 1;
  margin: 0.5rem 0.85rem;
}

/*  Clickable test card (dashboard)  */
.um-test-card {
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.um-test-card:hover {
  border-color: var(--g-accent) !important;
  box-shadow: 0 3px 10px rgba(21, 42, 70, 0.14);
}

/* Keep action buttons clickable above the stretched-link overlay */
.um-test-actions {
  z-index: 2;
}

.um-test-stats li + li {
  margin-top: 0.15rem;
}

.um-test-stats-verify-wrap {
  position: relative;
  z-index: 2;
}

.um-test-stats-verify {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  margin-left: -0.5rem;
  border-radius: 0.35rem;
  font-weight: 600;
  color: #b45309;
  text-decoration: none;
  background: #fffbeb;
  border: 1px solid #fcd34d;
}

.um-test-stats-verify:hover {
  color: #92400e;
  background: #fef3c7;
  border-color: #f59e0b;
}

/*  Clickable dashboard / stat tiles  */
.um-dash-tile--link {
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.um-dash-tile--link:hover {
  border-color: #f59e0b !important;
  box-shadow: 0 3px 10px rgba(180, 83, 9, 0.18);
  transform: translateY(-1px);
}

.um-dash-tile--verify {
  border-left: 3px solid #f59e0b;
}

/*  Mobile collapse  */
@media (max-width: 991.98px) {
  .pp-shell {
    grid-template-columns: 1fr;
  }
  .pp-sidebar {
    display: none;
  }
  .pp-topbar {
    padding: 0.75rem 1rem;
  }
  .um-card {
    border-radius: 0.55rem !important;
  }
}

/*  Photo preview (ask.php)  */
.um-preview-frame {
  width: 100%;
  max-width: 22rem;
  margin: 0 auto;
  border-radius: 0.6rem;
  overflow: hidden;
  background: #0f172a;
  border: 1px solid var(--g-border);
  aspect-ratio: 3 / 4;
}

.um-preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/*  Loading overlay (analiza AI)  */
.um-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(3px);
}

.um-loading-box {
  background: var(--g-card-bg);
  color: var(--g-text);
  border-radius: 0.75rem;
  padding: 1.75rem 1.5rem 1.6rem;
  max-width: 22rem;
  width: 100%;
  text-align: center;
  box-shadow: 0 18px 48px rgba(2, 6, 23, 0.3);
  position: relative;
}

.um-loading-logo-wrap {
  display: inline-block;
  margin-bottom: 1rem;
}

.um-loading-logo {
  width: 8rem;
  max-width: 100%;
  height: auto;
  display: block;
}

.um-loading-title {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.005em;
  color: var(--g-accent);
  min-height: 1.4em;
  transition: opacity 0.3s ease;
}

.um-loading-sub {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--g-text-muted);
  letter-spacing: 0.02em;
}

/* =================================================================
 * Compact typography, buttony / inputy / tytuły mniejsze.
 * Stosuje się TYLKO do .um-app-page (login zachowuje swoje rozmiary).
 * ================================================================= */

.um-app-page {
  font-size: 0.875rem;
}

.um-app-page .btn {
  font-size: 0.825rem;
  padding: 0.4rem 0.85rem;
  border-radius: 0.45rem;
}

.um-app-page .btn-sm {
  font-size: 0.78rem;
  padding: 0.28rem 0.65rem;
  border-radius: 0.4rem;
}

.um-app-page .btn-lg {
  font-size: 0.92rem;
  padding: 0.55rem 1.1rem;
  border-radius: 0.55rem;
}

.um-app-page .form-control,
.um-app-page .form-select {
  font-size: 0.875rem;
  padding: 0.4rem 0.65rem;
}

.um-app-page .form-control-lg,
.um-app-page .form-select-lg {
  font-size: 0.92rem;
  padding: 0.5rem 0.75rem;
}

.um-app-page .form-control-sm,
.um-app-page .form-select-sm {
  font-size: 0.78rem;
  padding: 0.3rem 0.55rem;
}

.um-app-page .form-label {
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.um-app-page .form-text {
  font-size: 0.75rem;
}

.um-app-page .alert {
  font-size: 0.85rem;
  padding: 0.55rem 0.85rem;
}

.um-app-page .badge {
  font-size: 0.7rem;
  font-weight: 500;
}

.um-app-page .pp-topbar-title {
  font-size: 1.02rem;
}

.um-app-page .um-section-title {
  font-size: 1rem;
}

.um-app-page .um-section-sub {
  font-size: 0.8rem;
}

.um-app-page .um-history-text--a {
  font-size: 0.85rem;
}

/* Liczbowe duże wartości na dashboard tile'ach, zmniejszamy umiarkowanie żeby nie utracic czytelnosci */
.um-app-page .um-card .fw-bold[style*="1.6rem"],
.um-app-page .um-card .fw-bold[style*="1.5rem"] {
  font-size: 1.35rem !important;
}

/* "Edytuj test", na mobile sama ikonka (mała rzadka akcja, nie blokować Sprawdź) */
@media (max-width: 767.98px) {
  .um-edit-test-btn {
    padding: 0.3rem 0.45rem;
    gap: 0;
  }
}

/* =================================================================
 * Login, wąska, jednokolumnowa, elegancka karta (override starych szerokich styli).
 * ================================================================= */

.um-login-page .um-login-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 42rem;
  padding-left: max(0.75rem, env(safe-area-inset-left));
  padding-right: max(0.75rem, env(safe-area-inset-right));
  margin-inline: auto;
}

.um-login-page .um-login-card {
  background: #ffffff;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.55), 0 0.5rem 1.2rem rgba(0, 0, 0, 0.35);
  position: relative;
  border: 0;
}

.um-login-page .um-login-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 18rem;
}

@media (max-width: 575.98px) {
  .um-login-page .um-login-row {
    flex-direction: column;
    min-height: 0;
  }
}

.um-login-page .um-login-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--g-gold-soft) 0%, var(--g-gold) 50%, var(--g-gold-deep) 100%);
  z-index: 3;
  pointer-events: none;
}

.um-login-page .um-login-brand-band {
  flex: 0 0 45%;
  background: #152a46;
  padding: 1.75rem 1.25rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.um-login-page .um-login-logo {
  width: 14rem;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 0;
  box-shadow: none;
  position: relative;
  z-index: 1;
}

@media (max-width: 575.98px) {
  .um-login-page .um-login-brand-band {
    flex: none;
    padding: 1.5rem;
    min-height: 0;
    aspect-ratio: 1 / 1;
  }
  .um-login-page .um-login-logo {
    width: 14rem;
  }
}

.um-login-page .um-login-form-panel {
  background: #ffffff;
  padding: 1.4rem 1.6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
}

.um-login-page .um-login-form-inner {
  width: 100%;
  max-width: none;
}

.um-login-page .um-login-form-inner .form-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--g-text-muted);
  margin-bottom: 0.3rem;
}

.um-login-page .um-login-form-inner .form-control {
  font-size: 0.92rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.55rem;
  border: 1px solid var(--g-border);
}

.um-login-page .um-login-form-inner .btn {
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 0.6rem;
}

.um-login-page .um-login-form-inner .mb-3 {
  margin-bottom: 0.85rem !important;
}

.um-login-page .um-login-form-inner .mt-2 {
  margin-top: 0.5rem !important;
}

.um-login-page .um-login-form-inner .alert {
  padding: 0.5rem 0.7rem;
  font-size: 0.8rem;
  margin-bottom: 0.8rem;
  border-radius: 0.5rem;
}

@media (max-width: 575.98px) {
  .um-login-page .um-login-container {
    max-width: min(22rem, 92vw);
  }

  .um-login-page .um-login-form-panel {
    padding: 1.15rem 1.15rem 1.25rem;
  }
}
