/* One-time secret pages (/share and /s).
   Additive only: every colour, font and shadow comes from styles.css, so both
   themes work with nothing redefined here. No width is capped by character
   count; the column is the measure. */

.share-shell {
  max-width: 900px;
}

.share-home {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
}
.share-home:hover { color: var(--accent-2); }
.share-home .dot { color: var(--accent); }

.share-wordmark {
  margin: 6px 0 0;
  font-family: var(--display);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 850;
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--ink);
}

.share-panel {
  margin-bottom: 56px;
}

.share-lede {
  margin: 20px 0 0;
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  text-wrap: pretty;
}

.share-note {
  margin: 14px 0 0;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.share-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.share-form .wide { grid-column: 1 / -1; }

.share-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.share-field > span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.share-field textarea,
.share-field input,
.share-field select {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: 10px 12px;
  width: 100%;
}
.share-field textarea { resize: vertical; }
.share-field textarea:focus-visible,
.share-field input:focus-visible,
.share-field select:focus-visible {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: var(--shadow-px-sm);
}

.share-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.status-line {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
}
.status-line[data-state="working"] { color: var(--accent-2); }
.status-line[data-state="done"] { color: var(--accent-3); }
.status-line[data-state="error"] { color: var(--crit); }

/* The link and the secret are both long, unbroken, and must be selectable in
   full. Wrapping on any character keeps them inside the column without a
   horizontal scrollbar. */
.share-link,
.share-secret {
  margin: 20px 0 0;
  padding: 16px;
  background: var(--term-bg, var(--bg-elev));
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-px);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.share-secret {
  border-color: var(--accent-3);
  min-height: 3lh;
}

.share-link {
  border-color: var(--accent-2);
}

@media (max-width: 680px) {
  .share-form { grid-template-columns: minmax(0, 1fr); }
}
