.content.content--pin {
  max-width: 1220px;
  width: 100%;
  margin: 0 auto;
  gap: 28px;
}

.hidden {
  display: none !important;
}

.pin-page-title {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.pin-topbar-icon svg {
  display: block;
}

.pin-alert {
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 700;
}

.pin-alert.is-error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.pin-empty {
  min-height: 420px;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 42px 24px;
}

.pin-empty-mark {
  width: 82px;
  height: 82px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  color: var(--primary-700);
  background: var(--primary-soft);
}

.pin-empty h2 {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.pin-empty p {
  max-width: 500px;
  color: var(--muted);
  line-height: 1.65;
  font-weight: 600;
  margin-bottom: 22px;
}

.pin-primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid rgba(79, 70, 229, 0.22);
}

.pin-primary-link {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #4f46e5);
  padding: 12px 20px;
  box-shadow: 0 14px 30px rgba(79, 70, 229, 0.25);
}

.pin-workspace {
  display: grid;
  grid-template-columns: minmax(290px, 380px) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

.pin-side {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.pin-card,
.pin-access-panel,
.pin-activity-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.pin-active-card {
  padding: 28px 30px;
}

.pin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
}

.pin-eyebrow {
  color: #53627d;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.pin-badge,
.pin-door-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #047857;
  background: #dcfce7;
}

.pin-badge.is-warn {
  color: #b45309;
  background: #fef3c7;
}

.pin-locker-summary {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.pin-locker-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: var(--primary-700);
  background: rgba(79, 70, 229, 0.1);
  flex-shrink: 0;
}

.pin-locker-id {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.pin-locker-size {
  color: #53627d;
  font-size: 14px;
  font-weight: 700;
  margin-top: 5px;
}

.pin-detail-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 22px;
}

.pin-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  color: #24324b;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.pin-detail-ico {
  color: #334155;
  display: inline-flex;
  flex-shrink: 0;
}

.pin-switch-card {
  padding: 20px;
}

.pin-switch-title {
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.pin-switch-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pin-switch-btn {
  width: 100%;
  min-height: 58px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  font-family: inherit;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.pin-switch-btn:hover {
  border-color: rgba(79, 70, 229, 0.28);
  background: #f8faff;
}

.pin-switch-btn.is-active {
  border-color: rgba(79, 70, 229, 0.4);
  background: var(--primary-soft);
  box-shadow: var(--shadow-sm);
}

.pin-switch-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.pin-switch-locker {
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pin-switch-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pin-switch-state {
  flex-shrink: 0;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--primary-700);
  background: #eef2ff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.pin-access-panel {
  position: relative;
  min-height: 640px;
  padding: 38px 34px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.pin-access-panel::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -120px;
  width: 360px;
  height: 300px;
  background:
    linear-gradient(90deg, rgba(79, 70, 229, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(79, 70, 229, 0.04) 1px, transparent 1px);
  background-size: 18px 18px;
  transform: rotate(-16deg);
  pointer-events: none;
}

.locker-stage {
  position: relative;
  z-index: 1;
  width: min(360px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

.locker-model {
  width: 320px;
  max-width: 88vw;
  aspect-ratio: 0.78;
  display: grid;
  place-items: center;
  perspective: 1150px;
}

.locker-cabinet {
  position: relative;
  width: 230px;
  height: 300px;
  border: 4px solid #dfe5ef;
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  box-shadow: 0 30px 52px rgba(15, 23, 42, 0.08);
  transform-style: preserve-3d;
}

.locker-inner {
  position: absolute;
  inset: 10px;
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(79, 70, 229, 0.08), rgba(255, 255, 255, 0.08)),
    #eef2f7;
  border: 1px solid #dbe3ee;
  overflow: hidden;
}

.locker-shelf {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 3px;
  background: #cbd5e1;
}

.locker-hook {
  position: absolute;
  top: 68px;
  left: 50%;
  width: 48px;
  height: 4px;
  border-radius: 999px;
  background: #bfccd9;
  transform: translateX(-50%);
}

.locker-shadow {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 22px;
  height: 16px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.12);
  filter: blur(8px);
}

.locker-door {
  position: absolute;
  inset: -2px;
  border-radius: 8px;
  background: linear-gradient(180deg, #f7f9fd 0%, #eef3f9 48%, #ffffff 49%, #ffffff 100%);
  border: 2px solid #dfe5ef;
  transform-origin: left center;
  transform: rotateY(0deg);
  transition: transform 780ms cubic-bezier(.2, .8, .2, 1), box-shadow 780ms ease;
  transform-style: preserve-3d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75);
}

.locker-model.is-open .locker-door {
  transform: rotateY(-64deg);
  box-shadow: 18px 24px 34px rgba(15, 23, 42, 0.12);
}

.locker-vent {
  position: absolute;
  top: 72px;
  left: 50%;
  width: 44px;
  height: 4px;
  border-radius: 999px;
  background: #c5cfdd;
  transform: translateX(-50%);
}

.locker-keyhole {
  position: absolute;
  left: 50%;
  top: 186px;
  width: 74px;
  height: 74px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #9aa8ff;
  border: 4px solid #dfe5ff;
  background: rgba(255, 255, 255, 0.82);
  transform: translateX(-50%);
}

.locker-handle {
  position: absolute;
  right: 18px;
  top: 200px;
  width: 16px;
  height: 48px;
  border-radius: 4px;
  background: #dbe3ee;
}

.pin-connection-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--primary-700);
  background: rgba(79, 70, 229, 0.1);
  font-size: 13px;
  font-weight: 800;
}

.pin-panel-copy {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 28px;
}

.pin-door-pill {
  margin-bottom: 16px;
  color: #1d4ed8;
  background: #dbeafe;
}

.pin-door-pill.is-open {
  color: #047857;
  background: #dcfce7;
}

.pin-door-pill.is-setup {
  color: #b45309;
  background: #fef3c7;
}

.pin-panel-copy h2 {
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}

.pin-panel-copy p {
  max-width: 460px;
  color: #53627d;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 700;
}

.pin-form {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.pin-input-row {
  display: grid;
  grid-template-columns: repeat(4, 60px);
  justify-content: center;
  gap: 14px;
  width: 100%;
}

.pin-digit {
  width: 60px;
  height: 70px;
  border: 2px solid #dbe3ee;
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  text-align: center;
  font-size: 30px;
  font-weight: 900;
  font-family: inherit;
  box-shadow: var(--shadow-sm);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.pin-digit:focus {
  border-color: #a5b4fc;
  box-shadow: 0 0 0 5px rgba(79, 70, 229, 0.12);
}

.pin-submit-btn,
.pin-secondary-btn {
  width: 100%;
  min-height: 64px;
  border: none;
  border-radius: 16px;
  font-family: inherit;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease, box-shadow 180ms ease;
}

.pin-submit-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #4338ca);
  box-shadow: 0 18px 34px rgba(67, 56, 202, 0.3);
}

.pin-submit-btn:hover:not(:disabled),
.pin-secondary-btn:hover:not(:disabled) {
  filter: brightness(1.04);
}

.pin-submit-btn:active:not(:disabled),
.pin-secondary-btn:active:not(:disabled) {
  transform: translateY(1px);
}

.pin-submit-btn:disabled,
.pin-secondary-btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.pin-secondary-btn {
  color: #0f172a;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  box-shadow: var(--shadow-sm);
}

.pin-text-btn {
  border: none;
  background: transparent;
  color: #53627d;
  font-size: 14px;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
}

.pin-text-btn:hover {
  color: var(--primary-700);
}

.pin-result {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  margin-top: 30px;
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-radius: 16px;
  border: 1px solid #86efac;
  background: #ecfdf5;
  color: #166534;
}

.pin-result.is-error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.pin-result-icon {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #22c55e;
  flex-shrink: 0;
}

.pin-result.is-error .pin-result-icon {
  background: #ef4444;
}

.pin-result strong {
  display: block;
  font-size: 17px;
  font-weight: 900;
  margin-bottom: 4px;
}

.pin-result p {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.pin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.pin-section-head h2 {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.pin-section-head a {
  color: var(--primary-700);
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
}

.pin-activity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pin-activity-card {
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.pin-activity-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #64748b;
  background: #f1f5f9;
  flex-shrink: 0;
}

.pin-activity-title {
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 4px;
}

.pin-activity-time {
  font-size: 13px;
  color: #53627d;
  font-weight: 700;
}

.pin-auth-modal {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.48);
}

.pin-auth-dialog {
  position: relative;
  width: min(430px, 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  padding: 32px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.2);
  text-align: center;
}

.pin-auth-close {
  position: absolute;
  top: 13px;
  right: 15px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #64748b;
  font-size: 29px;
  line-height: 1;
  cursor: pointer;
}

.pin-auth-close:hover {
  background: #f1f5f9;
}

.pin-auth-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 17px;
  border-radius: 16px;
  color: var(--primary-700);
  background: var(--primary-soft);
}

.pin-auth-dialog h2 {
  margin-bottom: 9px;
  color: var(--text);
  font-size: 23px;
  font-weight: 900;
}

.pin-auth-dialog p {
  color: #53627d;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
  margin-bottom: 24px;
}

.pin-auth-form {
  text-align: left;
}

.pin-auth-form label {
  display: block;
  margin-bottom: 8px;
  color: #53627d;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.pin-auth-form input {
  width: 100%;
  height: 52px;
  padding: 0 15px;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  color: var(--text);
  background: #fff;
  font: inherit;
  font-weight: 700;
  outline: none;
}

.pin-auth-form input:focus {
  border-color: #a5b4fc;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.pin-auth-primary,
.pin-auth-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  margin-top: 15px;
  border-radius: 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.pin-auth-primary {
  border: none;
  color: #fff;
  background: var(--primary);
}

.pin-auth-google {
  border: 1px solid #dbe3ee;
  color: var(--text);
  background: #fff;
}

.pin-google-g {
  color: #4285f4;
  font-size: 18px;
  font-weight: 900;
}

.pin-auth-primary:disabled,
.pin-auth-google:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.pin-auth-status {
  margin-top: 17px;
  padding: 11px 12px;
  border: 1px solid #fecaca;
  border-radius: 11px;
  color: #b91c1c;
  background: #fef2f2;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.pin-auth-status.is-info {
  border-color: #c7d2fe;
  color: var(--primary-700);
  background: #eef2ff;
}

.pin-auth-cancel {
  margin-top: 19px;
  border: none;
  color: #53627d;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 1040px) {
  .pin-workspace {
    grid-template-columns: 1fr;
  }

  .pin-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .pin-side,
  .pin-activity-grid {
    grid-template-columns: 1fr;
  }

  .pin-access-panel {
    min-height: 0;
    padding: 28px 18px;
  }

  .pin-input-row {
    grid-template-columns: repeat(4, minmax(46px, 1fr));
    gap: 10px;
  }

  .pin-digit {
    width: 100%;
    height: 62px;
    font-size: 26px;
  }

  .locker-model {
    width: 270px;
  }

  .locker-cabinet {
    width: 198px;
    height: 260px;
  }

  .pin-auth-dialog {
    padding: 30px 20px 24px;
  }
}
