/* Local Learner Profile System for Pool iPads & Shared Devices */

#local-profile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 13px;
  margin-left: auto;
  border: 1.5px solid #9ab4cc;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fc 100%);
  color: #17324d;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(23, 50, 77, 0.08);
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
  flex-shrink: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

#local-profile-btn:hover {
  border-color: #164f9d;
  background: #eef5ff;
  transform: translateY(-1px);
  box-shadow: 0 3px 0 rgba(22, 79, 157, 0.14);
}

#local-profile-btn:active {
  transform: translateY(0);
}

#local-profile-btn:focus-visible {
  outline: 3px solid #175cd3;
  outline-offset: 2px;
}

#local-profile-btn.is-active {
  border-color: #d8a73c;
  background: linear-gradient(180deg, #fffdf5 0%, #fff2c8 100%);
  color: #17324d;
  box-shadow: 0 2px 0 rgba(216, 167, 60, 0.28);
}

#local-profile-btn.is-active:hover {
  border-color: #b7841e;
  background: linear-gradient(180deg, #fff9e6 0%, #ffeaad 100%);
}

#local-profile-btn .lp-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(22, 79, 157, 0.1);
  color: #164f9d;
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
  overflow: hidden;
}

#local-profile-btn .lp-avatar svg {
  width: 22px;
  height: 22px;
  display: block;
}

#local-profile-btn .lp-guest-icon svg {
  width: 18px;
  height: 18px;
}

#local-profile-btn.is-active .lp-avatar {
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(23, 50, 77, 0.14);
}

#local-profile-btn .lp-name {
  max-width: 115px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#local-profile-btn .lp-star-pill,
#local-profile-btn .lp-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.2;
}

#local-profile-btn .lp-star-pill svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

#local-profile-btn .lp-star-pill {
  background: #176b5c;
  color: #ffffff;
}

#local-profile-btn .lp-count-pill {
  background: #164f9d;
  color: #ffffff;
}

/* Keep language picker right next to profile button without double auto-margins */
#local-profile-btn + .site-language,
#local-profile-btn + .escape-language {
  margin-left: 10px !important;
}

.lighthouse-header-actions #local-profile-btn,
.topbar-actions #local-profile-btn {
  margin-left: 0;
}

.lighthouse-header-actions #local-profile-btn {
  min-height: 54px;
  padding-inline: 15px;
  border-radius: 16px;
  border-color: #b9d5cf;
  background: rgba(255, 255, 255, 0.85);
}

/* Dark header adaptation for Zahlenburg (.escape-header) & Sternenwarte (.topbar) */
.escape-header #local-profile-btn,
.topbar #local-profile-btn {
  border-color: rgba(244, 209, 139, 0.55);
  background: rgba(19, 39, 68, 0.82);
  color: #fff8eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.escape-header #local-profile-btn:hover,
.topbar #local-profile-btn:hover {
  border-color: #f5d96d;
  background: rgba(31, 58, 96, 0.95);
}

.escape-header #local-profile-btn.is-active,
.topbar #local-profile-btn.is-active {
  border-color: #f5d96d;
  background: linear-gradient(180deg, #28456c 0%, #1b3252 100%);
  color: #fff8eb;
}

.escape-header #local-profile-btn .lp-avatar,
.topbar #local-profile-btn .lp-avatar {
  background: rgba(255, 248, 235, 0.14);
  color: #f5d96d;
}

.escape-header #local-profile-btn .lp-star-pill,
.topbar #local-profile-btn .lp-star-pill {
  background: #f5d96d;
  color: #172838;
}

/* Responsive Header Layout Rules (Desktop, iPad <= 1180px, Mobile <= 700px) */
@media (max-width: 1180px) {
  :is(body[data-view], body.worksheets-page, body:has(.division-main)) > header {
    flex-wrap: wrap;
    height: auto;
    row-gap: 12px;
  }
  :is(body[data-view], body.worksheets-page, body:has(.division-main)) header nav.site-navigation {
    order: 3;
    display: grid;
    flex: 0 0 100%;
    width: 100%;
    margin: 0;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.3fr) minmax(0, 0.8fr) minmax(0, 1.25fr);
  }
  :is(body[data-view], body.worksheets-page, body:has(.division-main)) header nav.site-navigation a {
    min-width: 0;
    width: 100%;
    padding-inline: 5px;
    font-size: 14px;
  }
}

@media (max-width: 700px) {
  :is(body[data-view] > header, body.worksheets-page .download-header, body:has(.division-main) .division-header) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    align-items: center;
    column-gap: 6px !important;
    row-gap: 10px;
    height: auto;
  }
  :is(body[data-view] > header, body.worksheets-page .download-header, body:has(.division-main) .division-header) > .brand {
    grid-row: 1;
    grid-column: 1;
    min-width: 0;
  }
  :is(body[data-view] > header, body.worksheets-page .download-header, body:has(.division-main) .division-header) > #local-profile-btn {
    grid-row: 1;
    grid-column: 2;
    margin: 0;
    padding: 5px 10px;
    font-size: 0.82rem;
  }
  :is(body[data-view] > header, body.worksheets-page .download-header, body:has(.division-main) .division-header) > .site-language {
    grid-row: 1;
    grid-column: 3;
    margin: 0;
  }
  :is(body[data-view] > header, body.worksheets-page .download-header, body:has(.division-main) .division-header) > .worksheet-entry {
    grid-row: 2;
    grid-column: 1 / -1;
    width: 100%;
  }
  body:has(.division-main) .division-header > .division-back {
    grid-row: 2;
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .lighthouse-header-actions {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  .lighthouse-header-actions #local-profile-btn {
    flex: 1 1 auto;
    min-height: 46px;
  }
}

@media (max-width: 540px) {
  :is(body[data-view], body.worksheets-page) header nav.site-navigation {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  #local-profile-btn .lp-name {
    max-width: 72px;
  }
  #local-profile-btn.is-guest .lp-name {
    display: none;
  }
}

/* Dialog Modal Styling */
.lp-dialog {
  width: min(94vw, 620px);
  max-height: 90vh;
  margin: auto;
  padding: 0;
  border: 2px solid #17324d;
  border-radius: 24px;
  background: #fffaf0;
  color: #17324d;
  box-shadow: 0 22px 60px rgba(15, 35, 58, 0.32), 0 6px 0 #17324d;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
}

.lp-dialog::backdrop {
  background: rgba(15, 32, 52, 0.58);
  backdrop-filter: blur(3px);
}

.lp-dialog-shell {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lp-dialog-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.lp-kicker {
  margin: 0 0 4px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #176b5c;
}

.lp-dialog-top h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  line-height: 1.15;
  color: #17324d;
}

.lp-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1.5px solid #b8cadb;
  border-radius: 12px;
  background: #ffffff;
  color: #17324d;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
}

.lp-close-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}

.lp-close-btn:hover {
  border-color: #17324d;
  background: #f0f6fc;
}

.lp-feedback {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
}

.lp-feedback.is-error {
  background: #fff1ee;
  border: 1.5px solid #d9534f;
  color: #8a1f1c;
}

.lp-feedback.is-success {
  background: #eaf7ef;
  border: 1.5px solid #2f855a;
  color: #1b5237;
}

/* Active Profile Banner */
.lp-active-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border: 2px solid #d8a73c;
  border-radius: 18px;
  background: linear-gradient(135deg, #fffdf6 0%, #fff3ca 100%);
  box-shadow: 0 3px 0 rgba(216, 167, 60, 0.25);
}

.lp-active-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lp-active-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #ffffff;
  border: 1.5px solid #e6c670;
  font-size: 2rem;
  box-shadow: 0 2px 6px rgba(23, 50, 77, 0.08);
  overflow: hidden;
}

.lp-active-avatar svg {
  width: 44px;
  height: 44px;
  display: block;
}

.lp-active-info > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lp-active-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8d6210;
}

.lp-active-name {
  font-size: 1.2rem;
  font-weight: 900;
  color: #17324d;
}

.lp-active-stats {
  font-size: 0.88rem;
  font-weight: 600;
  color: #36526d;
}

.lp-active-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lp-btn-logout {
  min-height: 44px;
  padding: 8px 16px;
  border: 1.5px solid #17324d;
  border-radius: 12px;
  background: #17324d;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 0 #0d1e30;
}

.lp-btn-logout:hover {
  background: #23476b;
}

/* Profile Grid */
.lp-section-title {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #17324d;
}

.lp-empty-note {
  margin: 0;
  padding: 14px 16px;
  border: 1.5px dashed #b9cce0;
  border-radius: 14px;
  background: #ffffff;
  color: #3d5a73;
  font-size: 0.94rem;
  line-height: 1.5;
}

.lp-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}

.lp-profile-card {
  position: relative;
  display: flex;
  align-items: center;
  border: 1.5px solid #c3d4e4;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 3px 0 rgba(23, 50, 77, 0.06);
  transition: border-color 0.14s ease, transform 0.14s ease;
}

.lp-profile-card:hover {
  border-color: #164f9d;
  transform: translateY(-1px);
}

.lp-profile-card.is-current {
  border: 2px solid #176b5c;
  background: #f2fbf8;
}

.lp-profile-select {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 10px 40px 10px 12px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.lp-card-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #f0f6fc;
  font-size: 1.65rem;
  flex-shrink: 0;
  overflow: hidden;
}

.lp-card-avatar svg {
  width: 38px;
  height: 38px;
  display: block;
}

.lp-card-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.lp-card-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.lp-card-name {
  font-size: 1.04rem;
  font-weight: 800;
  color: #17324d;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lp-card-lock {
  display: inline-flex;
  align-items: center;
  color: #8d6210;
}

.lp-card-lock svg {
  width: 16px;
  height: 16px;
  display: block;
}

.lp-card-active-pill {
  padding: 2px 7px;
  border-radius: 999px;
  background: #176b5c;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
}

.lp-card-subtitle {
  font-size: 0.82rem;
  font-weight: 600;
  color: #49657e;
}

.lp-card-delete {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #6d8499;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
}

.lp-card-delete svg {
  width: 15px;
  height: 15px;
  display: block;
}

.lp-card-delete:hover {
  background: #fee2e2;
  color: #b91c1c;
}

.lp-delete-confirm {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 14px;
  background: #fff5f5;
  font-size: 0.84rem;
  font-weight: 800;
  color: #8a1f1c;
}

.lp-btn-danger-confirm {
  min-height: 36px;
  padding: 4px 10px;
  border: 0;
  border-radius: 9px;
  background: #dc2626;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.lp-btn-cancel-delete {
  min-height: 36px;
  padding: 4px 10px;
  border: 1px solid #b8cadb;
  border-radius: 9px;
  background: #ffffff;
  color: #17324d;
  font-weight: 700;
  cursor: pointer;
}

/* Create New Profile Section */
.lp-create-section {
  padding: 18px;
  border: 1.5px solid #d5e1ec;
  border-radius: 18px;
  background: #ffffff;
}

.lp-create-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lp-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.lp-field label,
.lp-field-label {
  font-size: 0.9rem;
  font-weight: 800;
  color: #17324d;
}

.lp-field input[type="text"] {
  min-height: 46px;
  padding: 8px 13px;
  border: 1.5px solid #9ab4cc;
  border-radius: 12px;
  background: #fbfdff;
  color: #17324d;
  font-size: 1rem;
  font-weight: 700;
}

.lp-field input[type="text"]:focus-visible {
  outline: 3px solid #175cd3;
  outline-offset: 2px;
  border-color: #164f9d;
}

.lp-avatar-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.lp-avatar-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 68px;
  padding: 6px 2px;
  border: 1.5px solid #cbd9e6;
  border-radius: 14px;
  background: #f8fbff;
  color: #17324d;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}

.lp-avatar-option-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
}

.lp-avatar-option-icon svg {
  width: 38px;
  height: 38px;
  display: block;
}

.lp-avatar-option-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #294661;
  max-width: 100%;
  white-space: nowrap;
}

.lp-avatar-option:hover {
  border-color: #164f9d;
  transform: translateY(-1px);
}

.lp-avatar-option.is-selected {
  border: 2px solid #164f9d;
  background: #fff2c8;
  box-shadow: 0 3px 0 #d8a73c;
}

.lp-avatar-option.is-selected .lp-avatar-option-label {
  color: #123663;
}

/* Secret PIN Picker & Prompt */
.lp-pin-mode-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lp-mode-btn {
  flex: 1 1 180px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1.5px solid #c3d4e4;
  border-radius: 11px;
  background: #f8fbff;
  color: #264563;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
}

.lp-mode-lock {
  display: inline-flex;
  align-items: center;
}

.lp-mode-lock svg {
  width: 17px;
  height: 17px;
  display: block;
}

.lp-mode-btn.is-selected {
  border-color: #164f9d;
  background: #e8f2ff;
  color: #123c79;
  box-shadow: inset 0 0 0 1px #164f9d;
}

.lp-pin-builder {
  padding: 12px 14px;
  border: 1.5px solid #d8e4f0;
  border-radius: 13px;
  background: #f8fbff;
}

.lp-pin-builder-hint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #234666;
}

.lp-chosen-pin-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px 3px 6px;
  border-radius: 999px;
  background: #fff3ca;
  border: 1.5px solid #d8a73c;
  color: #17324d;
  font-size: 0.82rem;
  font-weight: 800;
}

.lp-chosen-pin-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
}

.lp-chosen-pin-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.lp-pin-builder-symbols,
.lp-pin-pad {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.lp-pin-sym-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 62px;
  padding: 6px 4px;
  border: 1.5px solid #b8cce0;
  border-radius: 12px;
  background: #ffffff;
  color: #17324d;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(23, 50, 77, 0.08);
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.lp-pin-sym-btn svg {
  width: 28px;
  height: 28px;
  display: block;
}

.lp-pin-sym-label {
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.1;
  color: #36526d;
}

.lp-pin-sym-btn:hover {
  border-color: #164f9d;
  background: #fff9e6;
  transform: translateY(-1px);
}

.lp-adopt-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #b8dec8;
  border-radius: 12px;
  background: #f3faf6;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1c4b3c;
  cursor: pointer;
}

.lp-adopt-check input {
  width: 20px;
  height: 20px;
  accent-color: #176b5c;
  flex-shrink: 0;
}

.lp-btn-primary {
  min-height: 50px;
  padding: 12px 20px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #1d63c2 0%, #164f9d 100%);
  color: #ffffff;
  font-size: 1.02rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 0 #0f366d;
}

.lp-btn-primary:hover {
  background: linear-gradient(180deg, #246fd4 0%, #1959b0 100%);
}

.lp-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 14px;
  border: 1.5px solid #a8bfd6;
  border-radius: 12px;
  background: #ffffff;
  color: #17324d;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
}

.lp-btn-secondary:hover {
  border-color: #164f9d;
  background: #f0f6ff;
}

.lp-btn-text {
  margin-top: 6px;
  padding: 6px 4px;
  border: 0;
  background: transparent;
  color: #35587a;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

/* PIN Unlock View */
.lp-pin-prompt {
  padding: 20px;
  border: 2px solid #164f9d;
  border-radius: 18px;
  background: #ffffff;
  text-align: center;
}

.lp-pin-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: #fff2c8;
  font-size: 2.2rem;
  margin-bottom: 8px;
  overflow: hidden;
}

.lp-pin-avatar svg {
  width: 48px;
  height: 48px;
  display: block;
}

.lp-pin-header h3 {
  margin: 0 0 4px;
  font-size: 1.25rem;
}

.lp-pin-header p {
  margin: 0 0 14px;
  color: #49657e;
  font-size: 0.94rem;
}

.lp-pin-slots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.lp-pin-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: 2px dashed #9ab4cc;
  border-radius: 16px;
  background: #f8fbff;
  font-size: 1.9rem;
  font-weight: 800;
  color: #7c97b0;
}

.lp-pin-slot svg {
  width: 34px;
  height: 34px;
  display: block;
}

.lp-pin-slot.is-filled {
  border-style: solid;
  border-color: #d8a73c;
  background: #fff9e6;
  color: #17324d;
}

.lp-pin-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

/* Backup Section */
.lp-backup {
  border: 1px solid #d8cfb8;
  border-radius: 14px;
  background: #fdf6e4;
  padding: 10px 14px;
}

.lp-backup summary {
  font-size: 0.9rem;
  font-weight: 800;
  color: #3b4f63;
  cursor: pointer;
}

.lp-backup-body {
  margin-top: 10px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #495e71;
}

.lp-backup-body p {
  margin: 0 0 10px;
}

.lp-backup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lp-file-label {
  cursor: pointer;
}

@media (max-width: 520px) {
  .lp-dialog-shell {
    padding: 16px;
  }
  .lp-avatar-grid,
  .lp-pin-builder-symbols,
  .lp-pin-pad {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
