.clipboard-home {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.clipboard-card {
  padding: clamp(22px, 5vw, 34px);
  border-radius: 18px;
}

.clipboard-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.clipboard-receive-copy {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.clipboard-card h2,
.clipboard-receive h2,
.clipboard-state-card h2 {
  margin: 3px 0 0;
  color: #1e293b;
  font-size: 17px;
  letter-spacing: -.02em;
}

.clipboard-text-field > span {
  display: block;
  margin-bottom: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 650;
}

.clipboard-text-field textarea {
  display: block;
  width: 100%;
  min-height: 96px;
  box-sizing: border-box;
  padding: 15px 16px;
  border: 1px solid #d7dee7;
  border-radius: 12px;
  background: #fbfcfd;
  color: #263449;
  font: 14px/1.65 var(--wb-font-family-code, monospace);
  resize: vertical;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.clipboard-text-field textarea::placeholder { color: #a4afbd; }
.clipboard-text-field textarea:focus,
.station-code-input:focus {
  border-color: #94a3b8;
  outline: none;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(148, 163, 184, .16);
}

.clipboard-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: #94a3b8;
  font-size: 11px;
}

.clipboard-or::before,
.clipboard-or::after {
  height: 1px;
  flex: 1;
  background: #edf0f3;
  content: '';
}

.station-dropzone {
  position: relative;
  display: flex;
  min-height: 116px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  overflow: hidden;
  border: 1px dashed #c8d1dc;
  border-radius: 12px;
  background: #f8fafc;
  color: #475569;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}

.station-dropzone:hover,
.station-dropzone:focus-within,
.station-dropzone.is-dragging {
  border-color: #8796a8;
  background: #f1f5f9;
}

.station-dropzone.is-dragging { transform: scale(1.005); }
.station-file-input { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.station-upload-prompt,
.station-preview-wrap { display: flex; align-items: center; gap: 13px; }
.station-dropzone-icon { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 11px; background: #e8edf3; color: #526174; }
.station-dropzone-icon svg { width: 20px; height: 20px; }
.station-upload-prompt b,
.station-upload-prompt small,
.station-source-meta b,
.station-source-meta small { display: block; }
.station-upload-prompt b,
.station-source-meta b { color: #334155; font-size: 13px; }
.station-upload-prompt small,
.station-source-meta small { margin-top: 4px; color: #94a3b8; font-size: 11px; }
.station-preview-wrap { width: 100%; justify-content: flex-start; }
.station-preview-frame { padding: 5px; border: 1px solid #dbe2ea; border-radius: 9px; background: repeating-conic-gradient(#e2e8f0 0 25%, #fff 0 50%) 0 0 / 12px 12px; }
.station-preview-wrap canvas { display: block; width: 56px; height: 56px; }
.station-source-meta { min-width: 0; }
.station-source-name { max-width: 480px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.station-send-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
}

.station-send-footer wb-select { width: 180px; }
.station-send-footer wb-button { flex: 0 0 auto; }
.status-text { margin: 10px 0 0; }
.status-text:empty { min-height: 0; margin-top: 0; }

.clipboard-receive {
  display: grid;
  grid-template-columns: 140px minmax(280px, 1fr);
  gap: 12px 28px;
  align-items: center;
  padding: 20px 24px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .045);
}

.clipboard-receive-copy h2 { font-size: 14px; }
.clipboard-code-action { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
.station-code-input {
  width: 100%;
  height: 42px;
  box-sizing: border-box;
  padding: 0 14px;
  border: 1px solid #d7dee7;
  border-radius: 9px;
  background: #fbfcfd;
  color: #1e293b;
  font: 650 17px/1 var(--wb-font-family-code, monospace);
  letter-spacing: .18em;
}
.station-code-input::placeholder { color: #b2bcc8; opacity: 1; }
.clipboard-receive > .status-text { grid-column: 2; }

.clipboard-state-card {
  min-height: 410px;
  padding: clamp(28px, 7vw, 52px);
  border-radius: 18px;
}

.clipboard-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.clipboard-state-eyebrow { margin: 0 0 6px; color: #64748b; font-size: 12px; font-weight: 650; letter-spacing: .05em; }
.clipboard-success h2 { margin: 0; font-size: 20px; }
.clipboard-big-code {
  margin: 24px 0 18px;
  color: #172033;
  font: 720 clamp(38px, 9vw, 56px)/1 var(--wb-font-family-code, monospace);
  letter-spacing: .17em;
  text-indent: .17em;
}
.clipboard-state-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.clipboard-state-note { margin: 20px 0 0; color: #94a3b8; font-size: 12px; }

.clipboard-qrcode { margin: 0 0 24px; padding: 16px; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; }
.clipboard-qrcode canvas,
.clipboard-qrcode img { display: block; width: 160px; height: 160px; }
.clipboard-transfer-link { max-width: 100%; margin: 0 0 20px; color: #475569; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }

.clipboard-result-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.clipboard-result-head .clipboard-state-eyebrow { margin: 6px 0 0; }
.clipboard-text-button { border: 0; padding: 5px 0; background: transparent; color: #64748b; font: inherit; font-size: 13px; cursor: pointer; }
.clipboard-text-button:hover { color: #1e293b; }
.station-package { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px; border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc; }
.station-file-mark { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 10px; background: #e8edf3; color: #64748b; }
.station-file-mark svg { width: 21px; height: 21px; }
.station-summary { min-width: 0; margin: 0; }
.station-summary > strong,
.station-summary > span,
.station-summary > small { display: block; }
.station-summary > strong { overflow: hidden; color: #263449; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.station-summary > span { margin-top: 4px; color: #64748b; font-size: 12px; }
.station-summary > small { margin-top: 7px; color: #94a3b8; font-size: 11px; }
.station-summary > small strong { color: inherit; font-weight: 500; }
.station-package-actions { display: flex; gap: 8px; }
.text-preview { max-height: 330px; margin: 16px 0 0; padding: 18px; border-radius: 12px; background: #172033; color: #e8edf3; font-size: 13px; line-height: 1.65; }
.image-preview { width: auto; max-width: min(100%, 360px); max-height: 280px; margin: 16px auto 0; border: 1px solid #e2e8f0; border-radius: 12px; }

@media (max-width: 720px) {
  .clipboard-receive { grid-template-columns: 1fr; }
  .clipboard-receive > .status-text { grid-column: 1; }
}

@media (max-width: 520px) {
  .clipboard-private-note { display: none; }
  .station-send-footer { align-items: stretch; flex-direction: column; }
  .station-send-footer wb-select { width: 100%; }
  .station-send-footer wb-button { align-self: stretch; }
  .clipboard-code-action { grid-template-columns: 1fr; }
  .clipboard-code-action wb-button { width: 100%; }
  .clipboard-state-card { min-height: 360px; padding: 28px 22px; }
  .station-package { grid-template-columns: auto minmax(0, 1fr); }
  .station-package-actions { grid-column: 1 / -1; }
  .station-package-actions wb-button { flex: 1; }
}
