/*
  @version 1.2.7
  @changelog Login-only animace presunuty do login.css.

  @version 1.2.8
  @changelog Doplnen zaklad vzhledu pro globalni custom alert.

  @version 1.2.9
  @changelog Presunut sdileny vzhled bubliny prihlaseneho uzivatele.

  @version 1.2.10
  @changelog Doplnen chybovy vzhled globalniho custom alertu.

  @version 1.2.11
  @changelog Chybovy alert ponechava neutralni tlacitko podle projektoveho vzhledu.

  @version 1.2.12
  @changelog Zmenseno tlacitko globalniho custom alertu.

  @version 1.2.13
  @changelog Dokumentace sdilenych stylu upravena na obecny popis Motortecu.

  @version 1.2.14 2026-07-08
  @changelog Vzhled potvrzovaciho modalu upraven na jemnejsi enterprise dialog.

  @version 1.2.15 2026-07-08
  @changelog Potvrzovaci modal upraven na dialog s titulkem, popisem a klidnejsim footerem.

  @version 1.2.16 2026-07-15
  @changelog Ikony prihlasenych uzivatelu barevne odliseny podle pripravene role.

  @version 1.2.17 2026-07-15
  @changelog Do identity uzivatelske bubliny doplnen kompaktni stitek role a stabilni zkraceni jmena.
*/

:root {
  --page-bg: #f4f7fb;
  --panel-bg: #ffffff;
  --border: #dce5f1;
  --field-border: #d5ddea;
  --text: #10203a;
  --muted: #5d6c83;
  --soft: #8090a8;
  --accent: #3453d1;
  --icon: #2740a8;
  --primary: #10203a;
  --primary-text: #ffffff;
  --delete-bg: #eef4ff;
  --delete-border: #c9d8ff;
  --focus-ring: rgba(52, 83, 209, 0.24);
  --shadow: 0 6px 18px rgba(159, 180, 206, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--page-bg);
}

html.has-open-modal,
body.has-open-modal {
  overflow: hidden;
}

button {
  font: inherit;
}

.modal-customAlert[hidden] {
  display: none;
}

.modal-customAlert {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.34);
}

.modal-customAlert-content {
  width: min(380px, 100%);
  padding: 22px;
  border: 1px solid #dbe6f3;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.2);
  text-align: center;
}

.modal-customAlert-content p {
  margin: 0 0 18px;
  color: #10203a;
  font-size: 15px;
  line-height: 1.5;
}

.modal-customAlert-content--confirm {
  width: min(27.5rem, 100%);
  padding: 0;
  border-color: #d8e1ef;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow:
    0 1.5rem 3.5rem rgba(15, 23, 42, 0.2),
    0 0.375rem 1rem rgba(15, 23, 42, 0.08);
  text-align: left;
}

.modal-customAlert-confirm__body {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0.875rem;
  padding: 1.5rem 1.5rem 1.25rem;
}

.modal-customAlert-confirm__icon {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid #f5c2c2;
  border-radius: 999px;
  background: #fff8f8;
  color: #a63a3a;
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1;
}

.modal-customAlert-confirm__text h2 {
  margin: 0 0 0.375rem;
  color: #10203a;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.35;
}

.modal-customAlert-confirm__text h2[hidden] {
  display: none;
}

.modal-customAlert-content--confirm p {
  margin: 0;
  color: #5d6c83;
  font-size: 0.875rem;
  font-weight: 450;
  line-height: 1.55;
}

.modal-customAlert-content--error p {
  color: #b91c1c;
  font-weight: 700;
}

.modal-customAlert-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.625rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid #edf2f7;
  background: #f8fafc;
}

.btn-customAlert {
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #10203a;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease,
    transform 120ms ease;
}

.modal-customAlert-content--error .btn-customAlert {
  background: #ffffff;
  border-color: #cdd8e6;
  color: #0f172a;
}

.btn-customAlert--secondary {
  background: #ffffff;
  border-color: #d5deea;
  color: #263751;
}

.btn-customAlert--danger {
  border-color: #c24a4a;
  background: #b83f3f;
  color: #ffffff;
  box-shadow: 0 0.375rem 0.875rem rgba(184, 63, 63, 0.16);
}

@media (hover: hover) and (pointer: fine) {
  .btn-customAlert:hover {
    background: #1b2f55;
    transform: translateY(-1px);
  }

  .modal-customAlert-content--error .btn-customAlert:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.14);
    transform: translateY(-1px);
  }

  .btn-customAlert--secondary:hover {
    border-color: #c4cfde;
    background: #f8fafc;
    box-shadow: 0 0.25rem 0.75rem rgba(15, 23, 42, 0.1);
    transform: translateY(-1px);
  }

  .btn-customAlert--danger:hover {
    background: #a73737;
    border-color: #a73737;
    box-shadow: 0 0.5rem 1rem rgba(167, 55, 55, 0.2);
    transform: translateY(-1px);
  }
}

@media (max-width: 34rem) {
  .modal-customAlert-confirm__body {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1.25rem;
  }

  .modal-customAlert-confirm__icon {
    width: 2rem;
    height: 2rem;
  }

  .modal-customAlert-actions {
    flex-direction: column-reverse;
    padding: 1rem 1.25rem 1.25rem;
  }

  .modal-customAlert-actions .btn-customAlert {
    width: 100%;
  }
}

.btn-customAlert:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px var(--focus-ring);
}

/* Bublina prihlaseneho uzivatele pro globalni hlavickove akce. */
.admin-shell-user {
  --user-avatar-bg: #0f172a;
  --user-avatar-border: #0f172a;
  --user-avatar-text: #ffffff;
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 2500;
  max-width: calc(100vw - 1rem);
  isolation: isolate;
}

.admin-shell-user--role-super_spravce {
  --user-avatar-bg: #f3e8ff;
  --user-avatar-border: #e9d5ff;
  --user-avatar-text: #6b21a8;
}

.admin-shell-user--role-spravce {
  --user-avatar-bg: #eaf1ff;
  --user-avatar-border: #cbdafe;
  --user-avatar-text: #1d4ed8;
}

.admin-shell-user--role-kancelar {
  --user-avatar-bg: #e9f8f4;
  --user-avatar-border: #bde9dc;
  --user-avatar-text: #087466;
}

.admin-shell-user--role-mechanik {
  --user-avatar-bg: #fff4e6;
  --user-avatar-border: #fed7aa;
  --user-avatar-text: #b45309;
}

.admin-shell-user > summary::-webkit-details-marker {
  display: none;
}

.admin-shell-user > summary {
  list-style: none;
}

.admin-shell-user__trigger {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  min-height: 2.5rem;
  padding: 0.25rem 0.45rem 0.25rem 0.4rem;
  border: 0.0625rem solid #dbe6f3;
  border-radius: 999rem;
  background-color: #ffffff;
  background-clip: padding-box;
  box-shadow: 0 0.45rem 1.35rem rgba(2, 8, 23, 0.13);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  -webkit-user-select: none;
  user-select: none;
  overflow: hidden;
  contain: paint;
}

.admin-shell-user__trigger:focus-visible {
  outline: 0.125rem solid rgba(11, 103, 255, 0.45);
  outline-offset: 0.125rem;
}

.admin-shell-user__chevron {
  color: #64748b;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  transition: transform 0.2s ease;
}

.admin-shell-user[open] .admin-shell-user__chevron {
  transform: rotate(180deg);
}

.admin-shell-user__panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 0.65rem;
  min-height: 3.25rem;
  width: min(20rem, calc(100vw - 1rem));
  max-width: min(20rem, calc(100vw - 1rem));
  padding: 0.7rem 0.75rem;
  border: 0.0625rem solid #dbe6f3;
  border-radius: 0.9rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow:
    0 1rem 2rem rgba(2, 8, 23, 0.16),
    0 0.2rem 0.7rem rgba(2, 8, 23, 0.1);
  transform: translateX(0.75rem) translateY(-0.1rem) scale(0.98);
  will-change: transform;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.24s ease, opacity 0.2s ease;
  -webkit-user-select: none;
  user-select: none;
}

.admin-shell-user[open] .admin-shell-user__panel {
  transform: translateX(0) translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.admin-shell-user__identity {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
  cursor: default;
  max-width: 100%;
}

.admin-shell-user__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999rem;
  border: 0.0625rem solid var(--user-avatar-border);
  background: var(--user-avatar-bg);
  color: var(--user-avatar-text);
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
  cursor: default;
}

.admin-shell-user__meta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.2rem;
  min-width: 0;
  width: 100%;
  cursor: default;
}

.admin-shell-user__hint {
  color: #94a3b8;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.1;
  cursor: default;
}

.admin-shell-user__identity-row {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-shell-user__email {
  display: block;
  width: auto;
  min-width: 0;
  flex: 1 1 auto;
  color: #0f172a;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: default;
}

.admin-shell-user__role {
  max-width: 7.5rem;
  min-height: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0 0.45rem;
  border: 0.0625rem solid var(--user-avatar-border);
  border-radius: 999rem;
  background: var(--user-avatar-bg);
  color: var(--user-avatar-text);
  font-size: 0.65rem;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: default;
}

.admin-shell-user__avatar--panel {
  width: 2rem;
  height: 2rem;
  font-size: 0.86rem;
  box-shadow: 0 0.25rem 0.7rem rgba(2, 8, 23, 0.2);
}

.admin-shell-user__logout-form {
  margin: 0;
  flex-shrink: 0;
  width: 100%;
}

.admin-shell-user__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  min-width: 0;
  width: 100%;
}

.admin-shell-user__manage-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  width: 100%;
  min-height: 2.1rem;
  padding: 0 0.9rem;
  border: 0.0625rem solid #cbd5e1;
  border-radius: 0.625rem;
  background: #f8fafc;
  color: #1f3a5f;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-shell-user__action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  min-width: 1.15rem;
  line-height: 1;
}

.admin-shell-user__action-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-shell-user__logout-btn {
  width: 100%;
  min-height: 2.1rem;
  padding: 0 0.9rem;
  border: 0.0625rem solid #fecdd3;
  border-radius: 0.625rem;
  background: #fff1f2;
  color: #991b1b;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .admin-shell-user__trigger:hover {
    border-color: #94a3b8;
    background-color: #f8fafc;
  }

  .admin-shell-user__logout-btn:hover {
    background: #ffe4e6;
    border-color: #fda4af;
    box-shadow: 0 0.3125rem 0.875rem rgba(185, 28, 28, 0.14);
  }

  .admin-shell-user__manage-link:hover {
    background: #eef4fb;
    border-color: #8aa4c1;
    box-shadow: 0 0.3125rem 0.875rem rgba(31, 58, 95, 0.12);
  }
}

.admin-shell-user__manage-link:focus-visible {
  outline: 0.125rem solid rgba(31, 58, 95, 0.32);
  outline-offset: 0.125rem;
}

.admin-shell-user__logout-btn:focus-visible {
  outline: 0.125rem solid rgba(185, 28, 28, 0.45);
  outline-offset: 0.125rem;
}

.screen {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(8px, 2svh, 16px);
}

.app-shell,
.login-panel,
.intro-panel,
.portrait-copy,
.login-copy,
.pin-block,
.actions,
.support-copy {
  display: flex;
  flex-direction: column;
}

.app-shell {
  width: min(560px, calc(100vw - clamp(16px, 4svh, 32px)));
}

.intro-panel,
.login-panel {
  background: var(--panel-bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.intro-panel {
  display: none;
}

.login-panel {
  min-height: min(880px, calc(100svh - clamp(16px, 4svh, 32px)));
  justify-content: space-between;
  gap: clamp(8px, 1.8svh, 16px);
  padding: clamp(16px, 3svh, 32px);
  border-radius: 32px;
}

.portrait-copy {
  align-items: center;
  gap: 10px;
  text-align: center;
}

.login-copy {
  display: none;
}

h1,
p {
  margin: 0;
}

h1 {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: 0;
}

.portrait-copy h1 {
  font-size: clamp(24px, 4svh, 32px);
  line-height: 1.05;
}

.portrait-copy p {
  max-width: 34ch;
  color: var(--muted);
  font-size: clamp(12px, 1.8svh, 14px);
  line-height: 1.5;
}

.portrait-visual {
  height: clamp(72px, 18svh, 188px);
  display: grid;
  place-items: center;
}

.portrait-orb,
.intro-orb {
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.portrait-orb {
  width: clamp(64px, 16svh, 134px);
  height: clamp(64px, 16svh, 134px);
  border: 1px solid #d8e2f0;
}

.portrait-orb img,
.intro-orb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.pin-block {
  align-items: center;
  gap: clamp(6px, 1.2svh, 10px);
}

.pin-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  border: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.pin-row {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: clamp(5px, 1.2vw, 8px);
}

.pin-slot {
  position: relative;
  width: clamp(34px, 11vw, 48px);
  height: clamp(40px, 7svh, 60px);
  flex: 0 0 auto;
  border-radius: clamp(12px, 2svh, 16px);
  border: 1px solid var(--field-border);
  background: #f8fafc;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.pin-slot.is-filled::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
  content: "";
  transform: translate(-50%, -50%);
}

.pin-slot.is-active {
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 4px var(--focus-ring);
}

.pin-hint {
  color: var(--soft);
  font-size: 12px;
  line-height: 1;
}

.login-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2.4svh, 24px);
}

.login-message {
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  text-align: center;
}

.login-message-error {
  margin-bottom: clamp(18px, 3svh, 28px);
  border: 1px solid #f3b9b9;
  background: #fff1f2;
  color: #9f1d1d;
}

.login-message-success {
  margin-bottom: clamp(18px, 3svh, 28px);
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.primary:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px var(--focus-ring);
}

.actions {
  align-items: center;
}

.primary {
  width: 100%;
  height: clamp(50px, 7.5svh, 60px);
  border: 0;
  border-radius: 18px;
  background: var(--primary);
  color: var(--primary-text);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

@media (orientation: landscape) and (min-width: 800px) {
  .screen {
    padding: 32px;
  }

  .app-shell {
    width: min(960px, calc(100vw - 64px));
    height: min(704px, calc(100svh - 64px));
    min-height: 620px;
    display: flex;
    flex-direction: row;
    gap: 24px;
  }

  .intro-panel {
    width: 336px;
    flex: 0 0 336px;
    min-height: 100%;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 24px;
    border-radius: 28px;
  }

  .intro-copy {
    display: flex;
    flex-direction: column;
  }

  .intro-copy h1 {
    font-size: 30px;
    line-height: 1.12;
  }

  .intro-copy p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
  }

  .intro-visual {
    position: relative;
    height: 290px;
  }

  .intro-orb {
    position: absolute;
    left: 50px;
    top: -152px;
    width: 189px;
    height: 189px;
    border: 1px solid var(--delete-border);
  }

  .login-panel {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 100%;
    gap: 18px;
    padding: 28px;
    border-radius: 28px;
    justify-content: flex-start;
  }

  .portrait-copy,
  .portrait-visual {
   /** display: none; **/
  }

  .login-copy {
    display: flex;
    gap: 8px;
    min-height: 136px;
  }

  .login-badge {
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
  }

  .login-copy h1 {
    font-size: 32px;
    line-height: 1.1;
  }

  .login-copy p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
  }

  .pin-block {
    min-height: 110px;
  }

  .pin-row {
    gap: 10px;
  }

  .pin-slot {
    width: 46px;
    height: 56px;
  }

  .actions {
    min-height: 60px;
  }

  .primary {
    height: auto;
    min-height: 50px;
    padding: 14px 18px;
    font-size: 14px;
  }
}

@media (orientation: landscape) and (max-height: 560px) {
  .screen {
    padding: clamp(8px, 2svh, 16px);
  }

  .app-shell {
    width: calc(100vw - clamp(16px, 4svh, 32px));
    height: auto;
    min-height: 0;
    display: block;
  }

  .intro-panel,
  .login-copy {
    display: none;
  }

  .login-panel {
    width: 100%;
    min-height: 0;
    height: calc(100svh - clamp(16px, 4svh, 32px));
    display: grid;
    grid-template-columns: minmax(108px, 0.72fr) minmax(170px, 0.95fr) minmax(210px, 1.15fr);
    grid-template-rows: auto 1fr auto;
    align-items: center;
    gap: clamp(8px, 2svh, 16px) clamp(12px, 3vw, 24px);
    padding: clamp(12px, 3svh, 20px);
    border-radius: 24px;
  }

  .portrait-copy {
    grid-column: 1;
    grid-row: 1;
    align-items: flex-start;
    text-align: left;
    gap: 6px;
  }

  .portrait-copy h1 {
    font-size: clamp(18px, 5svh, 24px);
    line-height: 1.12;
  }

  .portrait-copy p {
    font-size: clamp(11px, 3svh, 13px);
    line-height: 1.35;
  }

  .portrait-visual {
    grid-column: 1;
    grid-row: 2 / span 2;
    height: auto;
    align-self: stretch;
  }

  .portrait-orb {
    width: clamp(56px, 22svh, 104px);
    height: clamp(56px, 22svh, 104px);
  }

  .pin-block {
    grid-column: 2;
    grid-row: 1 / span 2;
    gap: 6px;
  }

  .pin-row {
    flex-wrap: wrap;
    gap: 6px;
  }

  .pin-slot {
    width: clamp(32px, 7vw, 42px);
    height: clamp(34px, 10svh, 48px);
    border-radius: 12px;
  }

  .actions {
    grid-column: 2;
    grid-row: 3;
  }

  .primary {
    height: clamp(44px, 11svh, 50px);
    border-radius: 14px;
  }
}

@media (orientation: landscape) and (max-height: 560px) and (max-width: 680px) {
  .login-panel {
    grid-template-columns: minmax(92px, 0.7fr) minmax(148px, 1fr) minmax(178px, 1.12fr);
    gap: 8px 10px;
  }

  .portrait-copy p {
    display: none;
  }

  .pin-row {
    max-width: 140px;
  }

  .pin-slot {
    width: clamp(28px, 6.6vw, 36px);
    height: clamp(30px, 9svh, 42px);
  }

}

@media (max-width: 420px) {
  .screen {
    padding: 12px;
  }

  .app-shell {
    width: calc(100vw - 24px);
  }

  .login-panel {
    padding: clamp(16px, 3svh, 24px);
  }

  .portrait-copy h1 {
    font-size: clamp(24px, 4svh, 28px);
  }

  .pin-row {
    gap: 6px;
  }

  .pin-slot {
    width: clamp(34px, 11vw, 42px);
    height: clamp(40px, 7svh, 56px);
  }

}

@media (max-width: 767px) and (pointer: coarse), (max-height: 560px) and (pointer: coarse) {
  .screen {
    padding: 0;
    place-items: stretch;
  }

  .app-shell {
    width: 100vw;
    min-height: 100svh;
  }

  .login-panel {
    width: 100%;
    min-height: 100svh;
    height: 100svh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding-left: max(clamp(16px, 3svh, 24px), env(safe-area-inset-left));
    padding-right: max(clamp(16px, 3svh, 24px), env(safe-area-inset-right));
    padding-top: max(clamp(16px, 3svh, 24px), env(safe-area-inset-top));
    padding-bottom: max(clamp(16px, 3svh, 24px), env(safe-area-inset-bottom));
  }
}
