:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f6f7fb;
  color: #172033;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #eef3ff 0%, #f8fafc 34%, #f6f7fb 100%);
}

.container {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 10px 10px 24px;
}

.slots {
  display: grid;
  gap: 16px;
}

.slot {
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 16px;
}

.textarea-wrap {
  position: relative;
}

textarea {
  display: block;
  width: 100%;
  min-height: 180px;
  resize: vertical;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 12px 46px 12px 12px;
  font: inherit;
  font-size: 16px;
  line-height: 1.45;
  background: #fff;
  color: #111827;
  outline: none;
}

textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

textarea[readonly] {
  background: #f8fafc;
  color: #475569;
}

.slot.is-hidden textarea {
  border-style: dashed;
  color: #111827;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.12em;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 58px;
  gap: 9px;
  margin-top: 10px;
}

button {
  min-height: 46px;
  border: 0;
  border-radius: 13px;
  background: #1d4ed8;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}

button:active {
  transform: translateY(1px);
}

button[data-action="copy"] {
  background: #0f766e;
}

button[data-action="toggle"] {
  background: #334155;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.delete-x {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  width: 32px;
  min-height: 32px;
  place-items: center;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: #334155;
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  z-index: 1;
}

.delete-x:active {
  background: rgba(220, 38, 38, 0.16);
  color: #b91c1c;
}

.eye-toggle {
  display: grid;
  place-items: center;
}

.eye-svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.eye-slash {
  display: none;
}

.slot.is-hidden .eye-slash {
  display: block;
}

.status {
  min-height: 20px;
  margin: 8px 2px 0;
  color: #64748b;
  font-size: 13px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 640px) {
  .container {
    padding-top: 18px;
  }

  .slot {
    padding: 18px;
  }
}
