.secrex-card {
  min-width: 0;
}

.secrex-guide {
  background: var(--paper, #fff);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px 18px;
  margin-bottom: 22px;
}

.secrex-guide h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.secrex-guide p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 10px;
}

.secrex-guide p:last-child {
  margin-bottom: 0;
}

.secrex-steps {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
}

.secrex-fields {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  min-width: 0;
}

.secrex-card [hidden] {
  display: none;
}

.secrex-fields label {
  font-size: 15px;
  font-weight: 700;
  margin-top: 8px;
}

.secrex-fields input[type="password"],
.secrex-fields input[type="text"],
.secrex-fields textarea {
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #b9c6ce;
  border-radius: 5px;
  background: var(--white, #fff);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
}

.secrex-fields textarea {
  resize: vertical;
  min-height: 130px;
}

.secrex-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

#secrex-qr {
  display: block;
  width: min(192px, 100%);
  height: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  margin: 8px 0;
}

#secrex-result {
  margin: 0;
  min-height: 112px;
  padding: 14px;
  border: 1px solid #b9c6ce;
  border-radius: 5px;
  background: var(--white, #fff);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.secrex-note,
.secrex-share-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.secrex-status {
  min-height: 1.5rem;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.secrex-new {
  display: inline-block;
  margin-top: 10px;
}

@media (max-width: 760px) {
  .secrex-fields input[type="password"],
  .secrex-fields input[type="text"],
  .secrex-fields textarea {
    font-size: 16px;
  }
}

@media (max-width: 440px) {
  .secrex-copy {
    grid-template-columns: 1fr;
  }

  .secrex-copy button {
    width: 100%;
  }
}
