/* LockerPad's original materials and lighting, scoped to an embeddable vault. */
.lockerpad {
  container-type: inline-size;
  container-name: lp-vault;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 20px 0;
  color: #edf0f3;
  font:
    16px/1.5 Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  text-align: left;
}
.lockerpad * {
  box-sizing: border-box;
}
.lockerpad [hidden] {
  display: none !important;
}
.lockerpad button,
.lockerpad input {
  font: inherit;
}
.lockerpad button {
  cursor: pointer;
}
.lockerpad .lp-lock {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 24px 28px 28px;
  border: 1px solid #4a4d4f;
  border-radius: 4px;
  background: #17191a url(lockerpad-vault-surface.svg) center/256px 256px repeat;
  box-shadow:
    inset 0 0 0 3px #090a0b,
    inset 0 0 0 5px #44484b,
    inset 0 0 60px #0009,
    0 10px 25px #0003;
}
.lockerpad .lp-lock:before {
  content: "";
  position: absolute;
  inset: 4px;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 46% 40%, transparent 16%, #0005 85%),
    linear-gradient(105deg, #ffffff08, transparent 40%, #0003);
  z-index: -1;
}
.lockerpad .lp-brand {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 0 0 22px;
  text-shadow: 0 2px 3px #000;
}
.lockerpad .lp-brand > div > span {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #e5e8eb;
}
.lockerpad .lp-brand small {
  display: block;
  margin-top: 5px;
  font-size: 8px;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: #a5a8ac;
}
.lockerpad .lp-sound,
.lockerpad .lp-reveal {
  min-height: 36px;
  border: 1px solid #858b914f;
  border-radius: 3px;
  background: #0c0e105c;
  box-shadow: inset 0 1px #ffffff0a;
  color: #d2d6db;
  font-size: 10px;
  padding: 8px 10px;
  white-space: nowrap;
}
.lockerpad .lp-sound:hover,
.lockerpad .lp-reveal:hover {
  background: #252a2f;
}
.lockerpad .lp-mechanism {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(20px, 4cqw, 48px);
  align-items: center;
  padding: 10px 0 4px;
}
.lockerpad.lp-mode-dial .lp-mechanism,
.lockerpad.lp-mode-phrase .lp-mechanism {
  grid-template-columns: minmax(0, 1fr);
}
.lockerpad .lp-instrument {
  min-width: 0;
  text-align: center;
  width: 100%;
  max-width: 560px;
  margin: auto;
}
.lockerpad .lp-dial {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  margin: auto;
  border-radius: 50%;
  touch-action: none;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  outline-offset: 5px;
  filter: drop-shadow(0 16px 16px #0009);
}
.lockerpad .lp-dial:active {
  cursor: grabbing;
}
.lockerpad .lp-dial:focus-visible {
  outline: 2px solid #bccddd;
}
.lockerpad .lp-dial img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  pointer-events: none;
  clip-path: circle(47% at 50% 50%);
}
.lockerpad .lp-scale {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  will-change: transform;
  clip-path: circle(47% at 50% 50%);
}
.lockerpad .lp-scale line {
  stroke: #17191b;
  stroke-width: 2.4;
}
.lockerpad .lp-scale line.major {
  stroke-width: 4.8;
}
.lockerpad .lp-scale text {
  fill: #17191b;
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 37px;
  font-weight: 600;
  text-anchor: middle;
  dominant-baseline: central;
}
.lockerpad .lp-dial > i {
  position: absolute;
  top: 1%;
  left: 50%;
  width: 5.8%;
  height: 7.8%;
  transform: translateX(-50%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: linear-gradient(
    110deg,
    #680c13 0%,
    #ff7278 13%,
    #cf202e 53%,
    #ff9b9f 72%,
    #700c16 100%
  );
  filter: drop-shadow(0 2px 2px #000);
  z-index: 2;
}
.lockerpad .lp-dial > i:after {
  content: "";
  position: absolute;
  inset: 2px 2px 5px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: linear-gradient(135deg, #f34650, #a50e1c);
}
.lockerpad .lp-number-hint {
  position: absolute;
  z-index: 5;
  min-width: 38px;
  padding: 7px 9px;
  background: #0b0f14ed;
  border: 1px solid #ffffff80;
  color: #fff;
  text-align: center;
  border-radius: 4px;
  font-size: 15px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  box-shadow: 0 4px 15px #0008;
  transform: translate(-50%, -130%);
}
.lockerpad .lp-combination-caption {
  font-size: 9px;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: #c4c8cd;
  margin: 16px 0 10px;
  padding: 0;
  text-shadow: 0 1px 2px #000;
}
.lockerpad .lp-stop-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
.lockerpad .lp-stops {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin: 0;
}
.lockerpad .lp-stops :is(span, input) {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(32px, 6cqw, 58px);
  height: 51px;
  border: 1px solid #b0bac75c;
  border-radius: 3px;
  color: #f2f4f7;
  background: linear-gradient(130deg, #232930eb, #0e1115);
  box-shadow:
    inset 0 1px #ffffff1a,
    inset 0 -2px 5px #0009,
    0 3px 5px #0006;
  font-size: 22px;
  font-weight: 450;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}
.lockerpad .lp-stops :is(span, input).current {
  border-color: #bccddd;
  background: linear-gradient(130deg, #3c4856e3, #151d26f2);
  box-shadow:
    inset 0 1px #ffffff2b,
    0 0 20px #9cbedc0c;
}
.lockerpad .lp-reset {
  padding: 4px;
  border: 0;
  background: transparent;
  font-size: 25px;
  line-height: 1;
  color: #d2d6db;
}
.lockerpad .lp-dial-help {
  font-size: 9px;
  line-height: 1.6;
  color: #aeb6c1;
  margin: 11px auto 0;
  padding: 0;
  max-width: 280px;
}
.lockerpad .lp-chamber {
  width: 100%;
  min-width: 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid #090a0b;
  border-radius: 4px;
  background: #05080e;
  box-shadow:
    0 1px 1px #ffffff24,
    0 -1px 2px #0009,
    inset 0 0 0 2px #000;
}
.lockerpad.lp-mode-phrase .lp-chamber {
  max-width: 560px;
  margin: auto;
}
.lockerpad .lp-compartment-rim {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  border: 3px solid #0b0d0f;
  border-radius: 3px;
  box-shadow:
    inset 0 0 0 1px #8c91963d,
    inset 0 0 0 4px #06090b,
    inset 0 9px 8px #0009,
    inset 0 -9px 8px #0009;
}
.lockerpad .lp-cover-toggle {
  position: absolute;
  inset: 0;
  z-index: 4;
  border: 0;
  border-radius: 3px;
  width: 100%;
  height: 100%;
  background: transparent;
  color: #c4c8cd;
  padding: 0;
  isolation: isolate;
}
.lockerpad .lp-cover-toggle:before,
.lockerpad .lp-cover-toggle:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 50%;
  background-color: #1b1d1e;
  background-image:
    linear-gradient(110deg, #ffffff04, transparent 45%, #0003),
    url(lockerpad-vault-surface.svg);
  background-size:
    auto,
    256px 256px;
  transition: transform 1.75s cubic-bezier(0.66, 0.01, 0.2, 1);
  z-index: -1;
  pointer-events: none;
}
.lockerpad .lp-cover-toggle:before {
  top: 0;
  background-position:
    center,
    center bottom;
  border-bottom: 0;
  box-shadow: inset 0 1px #ffffff0a;
}
.lockerpad .lp-cover-toggle:after {
  bottom: 0;
  background-position:
    center,
    center top;
  border-top: 0;
  box-shadow: inset 0 -1px #0009;
}
.lockerpad .lp-cover-label {
  position: absolute;
  bottom: 9%;
  left: 0;
  right: 0;
  font-size: 9px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  text-shadow: 0 1px 3px #000;
  transition: opacity 0.2s;
}
.lockerpad .lp-cover-label span {
  font-size: 14px;
  margin-left: 6px;
}
.lockerpad .lp-phrase-open .lp-cover-toggle {
  pointer-events: none;
}
.lockerpad .lp-phrase-open .lp-cover-toggle:before {
  transform: translateY(-100%);
}
.lockerpad .lp-phrase-open .lp-cover-toggle:after {
  transform: translateY(100%);
}
.lockerpad .lp-phrase-open .lp-cover-label {
  opacity: 0;
}
.lockerpad .lp-word-panel {
  position: absolute;
  inset: 7px;
  padding: 11% 7% 7%;
  background:
    radial-gradient(ellipse at 50% 40%, #2142740a, #000b 100%),
    url(lockerpad-vault-felt.jpg) center/cover;
  box-shadow:
    inset 0 0 0 2px #102642,
    inset 0 7px 14px #000b,
    inset 0 -6px 14px #000b;
}
.lockerpad .lp-word-panel:before {
  content: "";
  position: absolute;
  inset: 12px 9px;
  pointer-events: none;
  border: 1px solid #84a4d51a;
  box-shadow:
    0 0 7px #0008,
    inset 0 0 6px #0009;
  border-radius: 7px;
}
.lockerpad .lp-form {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  height: 100%;
  padding: 0;
  margin: 0;
}
.lockerpad .lp-close-panel {
  position: absolute;
  right: -8px;
  top: -20px;
  border: 0;
  background: transparent;
  font-size: 22px;
  color: #b6c7dc;
  padding: 0 5px;
  line-height: 1;
}
.lockerpad .lp-words {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 4%;
  row-gap: 12px;
  margin: 0;
  padding: 0;
  width: 100%;
}
.lockerpad .lp-words label {
  position: relative;
  display: block;
  min-width: 0;
  height: clamp(40px, 7cqw, 70px);
  margin: 0;
  border-radius: 4px;
  border: 2px solid #a8a295;
  background: linear-gradient(
    150deg,
    #fffef9,
    #eee9db 45%,
    #fffdf5 75%,
    #ded9ca
  );
  box-shadow:
    0 0 0 1px #131719,
    0 3px 2px 1px #000b,
    0 7px 8px #0006,
    inset 0 0 9px #d6ccae,
    inset 0 0 2px 1px #fff,
    0 0 15px #fff5dd1a;
}
.lockerpad .lp-words label:after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 2px;
  background: linear-gradient(
    135deg,
    #fff8,
    transparent 40%,
    #fff3 60%,
    transparent
  );
  box-shadow: inset 0 1px 1px #fff9;
  pointer-events: none;
  z-index: 3;
}
.lockerpad .lp-seed-index {
  position: absolute;
  top: 5px;
  left: 5px;
  font-size: 8px;
  line-height: 1;
  color: #5d625e;
  z-index: 3;
  pointer-events: none;
}
.lockerpad .lp-words input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  border: 0;
  border-radius: 2px;
  padding: 6px 4px 0;
  outline: none;
  background: transparent;
  color: #273036;
  caret-color: #273036;
  font-family: inherit;
  font-size: clamp(11px, 1.7cqw, 17px);
  font-weight: 500;
  text-align: center;
  line-height: 1;
  appearance: none;
  -webkit-appearance: none;
  color-scheme: light;
  text-shadow: 0 1px 0 #fff8;
  box-shadow: none;
}
.lockerpad .lp-words label:focus-within {
  border-color: #e7e4d8;
  box-shadow:
    0 0 0 1px #8ca9cd,
    0 4px 5px #000b,
    inset 0 0 10px #c8c1a66b,
    0 0 19px #fff4d96b;
  outline: 1px solid #d1e1f259;
  outline-offset: 3px;
}
.lockerpad .lp-unlock {
  align-self: flex-end;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid #c1ccd24d;
  border-radius: 3px;
  background: linear-gradient(150deg, #313c49cc, #0e1928dd);
  color: #eef0ed;
  font-size: 11px;
  letter-spacing: 0.04em;
  box-shadow:
    inset 0 1px #ffffff1c,
    0 3px 6px #0006;
}
.lockerpad .lp-unlock:hover {
  background: linear-gradient(150deg, #4b5a6bcc, #182a40ee);
}
.lockerpad .lp-unlock:disabled {
  opacity: 0.35;
  cursor: wait;
}
.lockerpad .lp-status {
  font-size: 11px;
  line-height: 1.5;
  color: #e0e5eb;
  margin: 16px 0 0;
  padding: 0;
  text-align: center;
}
.lockerpad .lp-status:empty {
  display: none;
}
.lockerpad .lp-cover-toggle:focus-visible {
  outline: 2px solid #bccddd;
  outline-offset: -9px;
}
.lockerpad .lp-close-panel:focus-visible {
  outline: 2px solid #bccddd;
}
.lockerpad.lp-unlocking .lp-lock {
  animation: lp-release 0.7s ease;
}
@keyframes lp-release {
  50% {
    filter: brightness(1.15);
  }
  100% {
    filter: brightness(1);
  }
}
.lockerpad .lp-open {
  background: #fcfafc;
  color: #17273b;
  border: 1px solid #d8cce3;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 10px 32px #4020570d;
}
.lockerpad .lp-open > header {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e2d8e9;
  margin-bottom: 22px;
  padding-bottom: 16px;
}
.lockerpad .lp-open h3 {
  font-family: inherit;
  font-size: 24px;
  font-weight: 750;
  color: #662d91;
  padding: 0;
  margin: 0;
}
.lockerpad .lp-lock-again {
  font-size: 12px;
  background: white;
  border: 1px solid #bca5cc;
  border-radius: 8px;
  padding: 8px 12px;
  white-space: nowrap;
  color: #662d91;
}
.lockerpad .lp-material {
  overflow-wrap: anywhere;
}
.lockerpad .lp-material video,
.lockerpad .lp-material img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  margin: 10px 0;
}
.lockerpad .lp-asset {
  border-top: 1px solid #e4dce9;
  margin-top: 20px;
  padding-top: 20px;
}
.lockerpad .lp-asset h4 {
  font-family: inherit;
  font-size: 17px;
  line-height: 1.4;
  color: #3d254b;
  font-weight: 650;
}
.lockerpad .lp-download {
  display: inline-flex;
  gap: 20px;
  background: #662d91;
  color: #fff;
  border-radius: 8px;
  padding: 12px 18px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
  margin-top: 16px;
}
.lockerpad .lp-session-note {
  font-size: 11px;
  color: #76657e;
  margin-top: 22px;
}
.lockerpad .lp-material p {
  margin-bottom: 12px;
}
.lockerpad .lp-material a {
  overflow-wrap: anywhere;
}
@container (max-width:620px) {
  .lockerpad .lp-mechanism {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }
  .lockerpad .lp-lock {
    padding: 20px 16px 24px;
  }
  .lockerpad .lp-instrument {
    max-width: 440px;
  }
  .lockerpad .lp-chamber {
    max-width: 440px;
    margin: auto;
  }
  .lockerpad .lp-words input {
    font-size: 14px;
  }
  .lockerpad .lp-words label {
    height: 60px;
  }
  .lockerpad .lp-open > header {
    align-items: flex-start;
    flex-direction: column;
  }
}
@container (max-width:360px) {
  .lockerpad .lp-brand > div > span {
    font-size: 18px;
  }
  .lockerpad .lp-brand small {
    font-size: 6px;
  }
  .lockerpad .lp-sound,
  .lockerpad .lp-reveal {
    font-size: 9px;
    padding: 6px;
  }
  .lockerpad .lp-lock {
    padding: 20px 12px;
  }
  .lockerpad .lp-words {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .lockerpad .lp-chamber {
    aspect-ratio: auto;
    min-height: calc(110px + 2 * 62px);
  }
  .lockerpad[data-phrase-count="8"] .lp-chamber {
    min-height: 358px;
  }
  .lockerpad[data-phrase-count="12"] .lp-chamber {
    min-height: 482px;
  }
  .lockerpad[data-phrase-count="16"] .lp-chamber {
    min-height: 606px;
  }
  .lockerpad .lp-words label {
    height: 50px;
  }
  .lockerpad .lp-word-panel {
    padding: 38px 8% 24px;
  }
  .lockerpad .lp-stops {
    gap: 6px;
  }
  .lockerpad .lp-stops :is(span, input) {
    width: 34px;
    height: 43px;
    font-size: 19px;
  }
  .lockerpad .lp-open {
    padding: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lockerpad .lp-cover-toggle:before,
  .lockerpad .lp-cover-toggle:after {
    transition: none;
  }
  .lockerpad.lp-unlocking .lp-lock {
    animation: none;
  }
}
@media print {
  .lockerpad .lp-lock {
    display: none;
  }
  .lockerpad .lp-open {
    box-shadow: none;
    border: 0;
  }
  .lockerpad .lp-lock-again {
    display: none;
  }
}
.lockerpad[data-phrase-count="16"] .lp-words label {
  height: clamp(30px, 4cqw, 44px);
}
@container (min-width:361px) and (max-width:680px) {
  .lockerpad .lp-mechanism {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }
  .lockerpad .lp-instrument,
  .lockerpad .lp-chamber {
    max-width: 440px;
    margin: auto;
  }
}
@container (max-width:360px) {
  .lockerpad[data-phrase-count="16"] .lp-words label {
    height: 50px;
  }
}

.lockerpad .lp-session-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border-block: 1px solid #ded8e3;
  padding: 14px 0;
  margin: 0 0 22px;
}
.lockerpad .lp-session-controls .lp-session-note {
  margin: 0;
  color: #473a50;
  font-size: 14px;
}
.lockerpad .lp-countdown {
  font-variant-numeric: tabular-nums;
  font-size: 18px;
  margin-left: 6px;
}
.lockerpad .lp-extend {
  border: 1px solid #662d91;
  background: #f3edf8;
  color: #662d91;
  border-radius: 8px;
  padding: 9px 14px;
  font: 600 13px/1.3 system-ui;
  cursor: pointer;
}
.lockerpad .lp-extend:hover {
  background: #e9dcf3;
}
.lockerpad .lp-extend:disabled {
  opacity: 0.55;
  cursor: default;
}
.lockerpad .lp-extension-status {
  font-size: 12px;
  color: #665371;
}
@media print {
  .lockerpad .lp-session-controls {
    display: none;
  }
}

.lockerpad .lp-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
@container (max-width:430px) {
  .lockerpad .lp-brand {
    align-items: flex-start;
  }
  .lockerpad .lp-header-actions {
    max-width: 105px;
    gap: 6px;
  }
}

/* Compact layout uses the vault's available width, not the visitor's screen width. */
.lockerpad.lp-compact .lp-lock {
  padding: 18px 20px 20px;
}
.lockerpad.lp-compact .lp-brand {
  padding-bottom: 14px;
  max-width: 900px;
  margin: auto;
  flex-wrap: wrap;
  gap: 8px;
}
.lockerpad.lp-compact .lp-brand > div > span {
  font-size: 18px;
}
.lockerpad.lp-compact .lp-brand small {
  font-size: 7px;
  margin-top: 3px;
}
.lockerpad.lp-compact .lp-header-actions {
  max-width: none;
  gap: 6px;
}
.lockerpad.lp-compact .lp-mechanism {
  max-width: 900px;
  margin: auto;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 24px;
  padding: 0;
  align-items: center;
}
.lockerpad.lp-compact.lp-mode-dial .lp-mechanism,
.lockerpad.lp-compact.lp-mode-phrase .lp-mechanism {
  grid-template-columns: minmax(0, 1fr);
}
.lockerpad.lp-compact .lp-instrument {
  display: grid;
  grid-template-columns: minmax(0, 280px) 72px;
  gap: 10px;
  align-items: center;
  max-width: 362px;
}
.lockerpad.lp-compact .lp-dial {
  width: 100%;
  max-width: 280px;
  filter: drop-shadow(0 8px 9px #0009);
}
.lockerpad.lp-compact .lp-readout {
  min-width: 0;
}
.lockerpad.lp-compact .lp-combination-caption {
  font-size: 8px;
  letter-spacing: 0.07em;
  line-height: 1.5;
  margin: 0 0 8px;
}
.lockerpad.lp-compact .lp-stop-row {
  flex-direction: column;
  gap: 7px;
}
.lockerpad.lp-compact .lp-stops {
  flex-direction: column;
  gap: 6px;
}
.lockerpad.lp-compact .lp-stops :is(span, input) {
  width: 46px;
  height: 34px;
  font-size: 18px;
}
.lockerpad.lp-compact .lp-reset {
  min-width: 34px;
  min-height: 30px;
  font-size: 23px;
}
.lockerpad.lp-compact .lp-dial-help {
  grid-column: 1/-1;
  max-width: 320px;
  font-size: 10px;
  margin: 0 auto;
  line-height: 1.45;
}
.lockerpad.lp-compact .lp-number-hint {
  font-size: 18px;
  min-width: 44px;
  padding: 8px 10px;
}
.lockerpad.lp-compact .lp-chamber {
  container-type: inline-size;
  container-name: lp-seeds;
  aspect-ratio: auto;
  max-width: 380px;
  width: 100%;
  height: 210px;
  min-height: 0;
  margin: auto;
}
.lockerpad.lp-compact[data-phrase-count="4"] .lp-chamber {
  height: 210px;
}
.lockerpad.lp-compact[data-phrase-count="12"] .lp-chamber {
  height: 260px;
}
.lockerpad.lp-compact[data-phrase-count="16"] .lp-chamber {
  height: 310px;
}
.lockerpad.lp-compact .lp-word-panel {
  padding: 33px 12px 14px;
}
.lockerpad.lp-compact .lp-form {
  gap: 10px;
  min-height: 0;
}
.lockerpad.lp-compact .lp-close-panel {
  top: -25px;
  right: -4px;
  min-width: 30px;
  min-height: 28px;
}
.lockerpad.lp-compact .lp-words {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  grid-auto-rows: 44px;
  align-content: start;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #8dabc8 #112944;
  min-height: 0;
  padding: 4px;
  flex: 1;
}
.lockerpad.lp-compact .lp-words label {
  height: 44px;
  border-width: 1px;
}
.lockerpad.lp-compact .lp-words input {
  font-size: 13px;
  padding: 8px 3px 0;
}
.lockerpad.lp-compact .lp-seed-index {
  top: 3px;
  left: 4px;
  font-size: 8px;
}
.lockerpad.lp-compact .lp-unlock {
  min-height: 36px;
  padding: 7px 12px;
  flex-shrink: 0;
}
.lockerpad.lp-compact .lp-status {
  margin-top: 10px;
}
.lockerpad.lp-compact .lp-open {
  padding: 18px;
}
.lockerpad.lp-compact .lp-open h3 {
  font-size: 20px;
}
.lockerpad.lp-compact .lp-open > header {
  margin-bottom: 14px;
  padding-bottom: 12px;
}
.lockerpad.lp-compact .lp-session-controls {
  gap: 8px;
  margin-bottom: 14px;
  padding: 10px 0;
}
.lockerpad.lp-compact .lp-download {
  gap: 10px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
@container (max-width:560px) {
  .lockerpad.lp-compact .lp-mechanism {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .lockerpad.lp-compact .lp-instrument {
    grid-template-columns: minmax(0, 230px) 66px;
    max-width: 306px;
  }
  .lockerpad.lp-compact .lp-lock {
    padding: 16px;
  }
}
@container (max-width:400px) {
  .lockerpad.lp-compact .lp-instrument {
    grid-template-columns: minmax(0, 210px) 54px;
    gap: 8px;
    max-width: 272px;
  }
  .lockerpad.lp-compact .lp-lock {
    padding: 14px 12px;
  }
  .lockerpad.lp-compact .lp-words {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lockerpad.lp-compact .lp-chamber {
    height: 260px;
  }
  .lockerpad.lp-compact[data-phrase-count="4"] .lp-chamber {
    height: 210px;
  }
  .lockerpad.lp-compact[data-phrase-count="12"] .lp-chamber,
  .lockerpad.lp-compact[data-phrase-count="16"] .lp-chamber {
    height: 260px;
  }
  .lockerpad.lp-compact .lp-words input {
    font-size: 14px;
  }
  .lockerpad.lp-compact .lp-sound,
  .lockerpad.lp-compact .lp-reveal {
    min-height: 32px;
    padding: 6px 8px;
    font-size: 10px;
  }
  .lockerpad.lp-compact .lp-dial-help {
    font-size: 9px;
  }
  .lockerpad.lp-compact .lp-open > header {
    align-items: flex-start;
    flex-direction: column;
  }
}
@container (max-width:280px) {
  .lockerpad.lp-compact .lp-brand > div:first-child {
    width: 100%;
  }
  .lockerpad.lp-compact .lp-header-actions {
    justify-content: flex-start;
  }
  .lockerpad.lp-compact .lp-instrument {
    grid-template-columns: minmax(0, 1fr) 46px;
    gap: 4px;
  }
  .lockerpad.lp-compact .lp-stops :is(span, input) {
    width: 38px;
    height: 32px;
    font-size: 17px;
  }
  .lockerpad.lp-compact .lp-combination-caption {
    font-size: 7px;
  }
  .lockerpad.lp-compact .lp-word-panel {
    padding-inline: 8px;
  }
}

@container (max-width:300px) {
  .lockerpad.lp-compact .lp-words {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lockerpad.lp-compact .lp-words input {
    font-size: 14px;
  }
}
@container (max-width:560px) {
  .lockerpad.lp-compact:is(.lp-mode-both, .lp-mode-either)
    .lp-chamber:not(.lp-phrase-open) {
    height: 48px;
  }
  .lockerpad.lp-compact:is(.lp-mode-both, .lp-mode-either)
    .lp-chamber:not(.lp-phrase-open)
    .lp-cover-label {
    bottom: 14px;
  }
  .lockerpad.lp-compact:is(.lp-mode-both, .lp-mode-either)
    .lp-mechanism:has(.lp-phrase-open)
    .lp-instrument {
    display: none;
  }
}
@container (max-width:400px) {
  .lockerpad.lp-compact .lp-stops :is(span, input) {
    height: 28px;
    font-size: 16px;
  }
  .lockerpad.lp-compact .lp-stops {
    gap: 4px;
  }
  .lockerpad.lp-compact .lp-reset {
    min-height: 26px;
    font-size: 21px;
  }
  .lockerpad.lp-compact .lp-stop-row {
    gap: 4px;
  }
  .lockerpad.lp-compact .lp-combination-caption {
    font-size: 8px;
    letter-spacing: 0;
    line-height: 1.4;
  }
}

/* Compact seed tiles: four across when the panel has room, without tall fields. */
.lockerpad.lp-compact .lp-words {
  grid-auto-rows: 36px;
  gap: 6px;
}
.lockerpad.lp-compact .lp-words label {
  height: 36px;
}
.lockerpad.lp-compact .lp-words input {
  font-size: 12px;
  padding: 7px 2px 0;
}
.lockerpad.lp-compact[data-phrase-count="4"] .lp-chamber {
  height: 160px;
}
.lockerpad.lp-compact[data-phrase-count="8"] .lp-chamber {
  height: 194px;
}
.lockerpad.lp-compact[data-phrase-count="12"] .lp-chamber {
  height: 236px;
}
.lockerpad.lp-compact[data-phrase-count="16"] .lp-chamber {
  height: 278px;
}
@container lp-seeds (min-width:224px) {
  .lockerpad.lp-compact .lp-words {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@container lp-seeds (max-width:223px) {
  .lockerpad.lp-compact .lp-words {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@container lp-vault (max-width:560px) {
  .lockerpad.lp-compact:is(.lp-mode-both, .lp-mode-either)
    .lp-chamber:not(.lp-phrase-open) {
    height: 48px;
  }
}

/* Half-width combined locks: keep the readout below the dial, leaving more room for words. */
@container lp-vault (min-width:561px) and (max-width:900px) {
  .lockerpad.lp-compact:is(.lp-mode-both, .lp-mode-either) .lp-mechanism {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 16px;
  }
  .lockerpad.lp-compact:is(.lp-mode-both, .lp-mode-either) .lp-instrument {
    grid-template-columns: minmax(0, 1fr);
    max-width: 260px;
    gap: 10px;
  }
  .lockerpad.lp-compact:is(.lp-mode-both, .lp-mode-either) .lp-readout {
    width: 100%;
  }
  .lockerpad.lp-compact:is(.lp-mode-both, .lp-mode-either) .lp-stop-row {
    flex-direction: row;
    gap: 5px;
  }
  .lockerpad.lp-compact:is(.lp-mode-both, .lp-mode-either) .lp-stops {
    flex-direction: row;
    gap: 5px;
    min-width: 0;
  }
  .lockerpad.lp-compact:is(.lp-mode-both, .lp-mode-either)
    .lp-stops
    :is(span, input) {
    width: clamp(25px, 4.5cqw, 39px);
    height: 32px;
    font-size: 16px;
  }
  .lockerpad.lp-compact:is(.lp-mode-both, .lp-mode-either) .lp-reset {
    min-width: 24px;
    padding: 2px;
    font-size: 23px;
  }
  .lockerpad.lp-compact:is(.lp-mode-both, .lp-mode-either)
    .lp-combination-caption {
    margin: 0 0 6px;
  }
  .lockerpad.lp-compact:is(.lp-mode-both, .lp-mode-either) .lp-chamber {
    max-width: none;
  }
}

/* Official LockerPad wordmark on the dark safe, retaining the tagline. */
.lockerpad .lp-brand-identity {
  min-width: 0;
  flex-shrink: 0;
}
.lockerpad .lp-brand-logo {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border: 0;
  margin: 0;
  padding: 0;
}
.lockerpad.lp-compact .lp-brand-logo {
  width: 180px;
}
@container lp-vault (max-width:400px) {
  .lockerpad .lp-brand {
    flex-wrap: wrap;
  }
  .lockerpad .lp-brand-logo,
  .lockerpad.lp-compact .lp-brand-logo {
    width: 160px;
  }
}

/* Password panels share the seed enclosure; the entered value alone determines visible rows. */
.lockerpad.lp-methods-1 .lp-mechanism {
  grid-template-columns: minmax(0, 1fr);
}
.lockerpad.lp-methods-1 .lp-chamber {
  max-width: 560px;
  margin: auto;
}
.lockerpad .lp-password-chamber {
  container-type: inline-size;
  container-name: lp-password;
  aspect-ratio: 1.35;
  min-height: 310px;
  max-width: 560px;
}
.lockerpad .lp-password-panel {
  padding: 34px 12px 14px;
  background:
    radial-gradient(ellipse at 50% 42%, #95062b26, #14040bdd),
    linear-gradient(#640621a8, #47071eaa),
    url(lockerpad-vault-felt.jpg) center/cover;
  background-blend-mode: normal, color, normal;
  box-shadow:
    inset 0 0 0 2px #240511,
    inset 0 7px 14px #000b,
    inset 0 -6px 14px #000b;
}
.lockerpad .lp-password-panel:before {
  display: none;
}
.lockerpad .lp-password-form {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 100%;
  margin: 0;
  padding: 0;
}
.lockerpad .lp-password-entry {
  width: 100%;
  margin: 0;
  min-width: 0;
}
.lockerpad .lp-password-rows {
  --lp-password-line: 46px;
  --lp-password-gap: 9px;
  --lp-password-step: 55px;
  position: relative;
  height: calc(
    var(--lp-password-rows) * var(--lp-password-step) - var(--lp-password-gap)
  );
  width: 100%;
  overflow: clip;
}
.lockerpad .lp-password-pearls {
  display: grid;
  gap: var(--lp-password-gap);
}
.lockerpad .lp-password-pearls > div {
  height: var(--lp-password-line);
  border: 2px solid #aaa595;
  border-radius: 5px;
  background: linear-gradient(
    145deg,
    #fffef9,
    #eeeadb 45%,
    #fffcf3 76%,
    #ded9ca
  );
  box-shadow:
    inset 0 0 9px #d6ccae,
    inset 0 0 2px 1px #fff,
    0 3px 5px #0007,
    0 0 14px #fff5dd1a;
}
.lockerpad .lp-password-rows textarea,
.lockerpad .lp-password-rows input {
  position: absolute;
  left: 0;
  top: calc(var(--lp-password-gap) / -2);
  height: calc(100% + var(--lp-password-gap));
  width: 100%;
  resize: none;
  overflow: hidden;
  margin: 0;
  padding: 0 5px;
  border: 0;
  background: transparent;
  border-radius: 0;
  outline: 0;
  box-shadow: none;
  color: #25363b;
  caret-color: #25363b;
  font:
    500 clamp(12px, 5.4cqw, 26px)/var(--lp-password-step) ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  text-align: center;
  letter-spacing: 0;
  white-space: pre;
  text-shadow: 0 1px #fff9;
  appearance: none;
}
.lockerpad .lp-password-rows input {
  top: 0;
  height: var(--lp-password-line);
  line-height: var(--lp-password-line);
}
.lockerpad .lp-password-rows textarea.lp-concealed {
  -webkit-text-security: disc;
}
.lockerpad .lp-password-rows:focus-within .lp-password-pearls > div {
  box-shadow:
    inset 0 0 10px #d6ccae,
    0 0 17px #fff3cf2a;
}
.lockerpad .lp-password-entry-note {
  display: block;
  color: #ffe3dc;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
  margin-top: 6px;
}
.lockerpad .lp-password-entry-note:empty {
  display: none;
}
.lockerpad .lp-password-form .lp-close-panel {
  position: absolute;
  top: -25px;
  right: 0;
  min-height: 30px;
}
.lockerpad .lp-password-form .lp-unlock {
  min-height: 34px;
  padding: 6px 15px;
  align-self: center;
  font-size: 14px;
}
.lockerpad.lp-compact .lp-password-chamber {
  height: 320px !important;
  min-height: 320px;
  max-width: 560px;
}
.lockerpad.lp-methods-2:has(.lp-password-chamber) .lp-chamber {
  height: 340px;
  min-height: 340px;
  aspect-ratio: auto;
}
.lockerpad .lp-word-panel:before {
  display: none;
}
.lockerpad .lp-seed-index {
  display: none;
}
.lockerpad .lp-words input,
.lockerpad.lp-compact .lp-words input {
  padding: 0 2px;
  line-height: normal;
}
.lockerpad.lp-compact .lp-words {
  align-content: center;
  gap: 4px;
  padding: 2px;
  overflow: clip;
}
.lockerpad .lp-words label:focus-within {
  outline: 0;
  border-color: #bdb59f;
  box-shadow:
    inset 0 0 10px #d4c9ad,
    0 0 12px #fff3cf24;
}
@container lp-vault (max-width:680px) {
  .lockerpad.lp-methods-2 .lp-mechanism {
    grid-template-columns: minmax(0, 1fr);
  }
  .lockerpad .lp-password-chamber {
    max-width: 560px;
    width: 100%;
    margin-inline: auto;
  }
}

/* Numeric cards drive the safe dial without capturing touch scrolling. */
.lockerpad .lp-dial,
.lockerpad .lp-dial:active {
  cursor: default;
  touch-action: auto;
  pointer-events: none;
}
.lockerpad .lp-stops input {
  display: block;
  box-sizing: border-box;
  min-width: 0;
  padding: 0 2px;
  text-align: center;
  font-family: inherit;
  outline: 0;
  appearance: none;
  -webkit-appearance: none;
  caret-color: #f2f4f7;
}
.lockerpad .lp-stops input::placeholder {
  color: #cbd2d9;
  opacity: 1;
}
.lockerpad .lp-stops input:focus {
  border-color: #c9dae7;
  outline: 0;
  box-shadow:
    inset 0 1px #ffffff33,
    inset 0 0 8px #b9daf322;
}
.lockerpad .lp-stops input.turning {
  background: linear-gradient(130deg, #435361, #17222d);
}

/* Seed frames reserve four rows regardless of the chosen word count or cover state. */
.lockerpad .lp-chamber:not(.lp-password-chamber),
.lockerpad.lp-compact .lp-chamber:not(.lp-password-chamber) {
  height: 320px;
  min-height: 320px;
  max-width: 560px;
  aspect-ratio: auto;
  margin-inline: auto;
}
.lockerpad.lp-methods-2 .lp-chamber:not(.lp-password-chamber) {
  height: 340px;
  min-height: 340px;
}
.lockerpad .lp-word-panel:not(.lp-password-panel),
.lockerpad.lp-compact .lp-word-panel:not(.lp-password-panel) {
  padding: 36px 8px;
}
.lockerpad .lp-form,
.lockerpad.lp-compact .lp-form {
  align-items: center;
  justify-content: center;
  gap: 0;
}
.lockerpad .lp-words,
.lockerpad.lp-compact .lp-words {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 44px;
  gap: 6px 4px;
  flex: none;
  align-content: center;
  padding: 0;
  overflow: clip;
}
.lockerpad .lp-words label,
.lockerpad.lp-compact .lp-words label,
.lockerpad[data-phrase-count="16"] .lp-words label {
  height: 44px;
}
.lockerpad .lp-words input,
.lockerpad.lp-compact .lp-words input {
  font-size: 16px;
  padding: 0 2px;
}
.lockerpad .lp-form > .lp-unlock {
  position: absolute;
  bottom: -26px;
  right: 0;
  min-height: 30px;
  padding: 4px 12px;
}
.lockerpad .lp-form > .lp-close-panel {
  top: -28px;
  right: 0;
  min-height: 28px;
}
