:root {
  --bg: #050706;
  --panel: #0b110f;
  --panel2: #0f1714;
  --text: #d7ffe3;
  --muted: #7da88b;
  --line: #1f3d2d;
  --accent: #36ff7a;
  --green: #36ff7a;
  --accent2: #00d9ff;
  --danger: #ff5f72;
  --shadow: 0 18px 70px rgba(0, 0, 0, .55);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background:
    linear-gradient(rgba(54, 255, 122, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(54, 255, 122, .035) 1px, transparent 1px),
    radial-gradient(circle at 20% 0%, rgba(0, 217, 255, .11), transparent 28rem),
    radial-gradient(circle at 90% 80%, rgba(54, 255, 122, .10), transparent 30rem),
    var(--bg);
  background-size: 28px 28px, 28px 28px, auto, auto, auto;
  color: var(--text);
}

.binary-rain {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 0;
  color: rgba(54, 255, 122, .08);
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  font-size: clamp(3rem, 11vw, 10rem);
  font-weight: 900;
  letter-spacing: -.08em;
  transform: translateY(18%);
}

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
  position: relative;
  z-index: 1;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.prompt-mark {
  color: var(--accent);
  text-shadow: 0 0 16px rgba(54, 255, 122, .7);
}

.tag { color: var(--muted); font-size: .88rem; }
.grid-two { display: grid; grid-template-columns: 1fr 460px; gap: 42px; align-items: center; }
.hero { min-height: 72vh; }
.eyebrow { color: var(--accent); text-transform: lowercase; font-weight: 800; font-size: .8rem; letter-spacing: .04em; margin: 0 0 14px; }
h1 { font-size: clamp(2.2rem, 7vw, 5.1rem); line-height: .96; letter-spacing: -.075em; margin: 0 0 22px; }
.lead { color: var(--muted); font-size: 1.05rem; line-height: 1.65; max-width: 58ch; }
.lead.small { font-size: .96rem; }
.muted { color: var(--muted); }

.terminal-card {
  margin-top: 28px;
  border: 1px solid var(--line);
  background: rgba(11, 17, 15, .72);
  box-shadow: inset 0 0 0 1px rgba(54,255,122,.04), var(--shadow);
  padding: 18px;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  color: var(--text);
}

.card, .mini-card, .protected-shell {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 23, 20, .94), rgba(8, 13, 11, .94));
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.form-card { padding: 22px; }
label { display: grid; gap: 8px; font-weight: 800; color: var(--text); margin-bottom: 16px; }
.optional { color: var(--muted); font-size: .78rem; font-weight: 600; }

input, textarea, select {
  width: 100%;
  border: 1px solid #244a35;
  border-radius: 6px;
  padding: 12px 12px;
  background: #060a08;
  color: var(--text);
  outline: none;
  font: inherit;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(54, 255, 122, .10);
}

textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: #53705c; }
input::file-selector-button {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 12px;
  margin-right: 10px;
  background: #102118;
  color: var(--accent);
  font-weight: 900;
  font-family: inherit;
}
small { color: var(--muted); font-weight: 500; line-height: 1.5; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.range-label { margin-top: 2px; }
.range-row { display: grid; grid-template-columns: 1fr 88px; align-items: center; gap: 12px; }
input[type="range"] { padding: 0; accent-color: var(--accent); }
output {
  border: 1px solid var(--line);
  background: #060a08;
  color: var(--accent);
  border-radius: 6px;
  padding: 10px 8px;
  text-align: center;
  font-weight: 900;
}

.btn {
  appearance: none;
  border: 1px solid rgba(54,255,122,.85);
  border-radius: 6px;
  padding: 13px 16px;
  background: var(--accent);
  color: #041007;
  font-weight: 950;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 0 22px rgba(54,255,122,.22);
}
.btn:hover { filter: brightness(1.08); }
.btn.secondary { background: #0d1913; color: var(--accent); }
.btn.ghost { margin-top: 14px; background: transparent; color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.truth-note { color: #6f8d78; font-size: .82rem; line-height: 1.55; }
.truth-note.center { text-align: center; }

.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.mini-card { padding: 18px; display: grid; gap: 8px; }
.mini-card strong { color: var(--accent); }
.mini-card span { color: var(--muted); }

.center-wrap { min-height: 72vh; display: grid; place-items: center; }
.success-card, .lock-card, .password-card, .expired-card { width: min(700px, 100%); padding: 30px; text-align: center; }
.password-card { text-align: left; }
.password-card h1, .password-card .eyebrow, .password-card .lock-icon { text-align: center; }
.lock-icon { color: var(--accent2); font-weight: 900; margin-bottom: 12px; }
.copy-box { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin: 24px 0 10px; }
.countdown { font-size: clamp(2rem, 8vw, 4.5rem); font-weight: 950; letter-spacing: -.08em; margin: 22px 0; color: var(--accent); text-shadow: 0 0 18px rgba(54,255,122,.22); }
.error { color: var(--danger); font-weight: 800; text-align: center; }

.viewer-wrap { width: min(920px, 100%); margin: 0 auto; }
.viewer-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 22px; }
.viewer-head h1 { font-size: clamp(2rem, 5vw, 4rem); }
.timer-chip { border: 1px solid var(--line); background: #060a08; border-radius: 6px; padding: 10px 12px; color: var(--muted); white-space: nowrap; }
.timer-chip span { color: var(--accent); font-weight: 900; }
.protected-shell { position: relative; padding: 24px; overflow: hidden; }
.protected-shell::after {
  content: attr(data-watermark);
  position: absolute;
  inset: -20%;
  display: grid;
  place-items: center;
  transform: rotate(-24deg);
  color: rgba(54, 255, 122, .055);
  font-size: 4rem;
  font-weight: 950;
  pointer-events: none;
  white-space: nowrap;
}
.protected-content { user-select: none; -webkit-user-select: none; position: relative; z-index: 1; }
.message-box { white-space: pre-wrap; font-size: 1rem; line-height: 1.7; background: #060a08; border: 1px solid var(--line); padding: 20px; border-radius: 8px; margin-bottom: 18px; }
.file-box { border: 1px solid var(--line); background: #060a08; padding: 18px; border-radius: 8px; }
.file-name { color: var(--muted); margin-top: 0; }
.preview-img { width: 100%; max-height: 70vh; object-fit: contain; border-radius: 6px; background: #030504; pointer-events: none; }
.preview-frame { width: 100%; height: 70vh; border: 0; border-radius: 6px; background: #fff; }
.unsupported { display: grid; gap: 8px; padding: 28px; border: 1px dashed var(--line); border-radius: 6px; color: var(--muted); }

.privacy-shade {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  z-index: 9999;
  background: rgba(5, 7, 6, .96);
  color: var(--accent);
  font-size: clamp(1.4rem, 5vw, 3.5rem);
  font-weight: 950;
}
.privacy-shade.show { display: grid; }

@media (max-width: 880px) {
  .grid-two, .how { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .viewer-head { display: grid; }
  .tag { display: none; }
  .copy-box { grid-template-columns: 1fr; }
}

.dynamic-box {
  border: 1px solid var(--line);
  background: rgba(6, 10, 8, .62);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 16px;
}

.compact-label { margin-bottom: 12px; }
.duration-controls { display: grid; gap: 10px; }
.unit-row { display: grid; grid-template-columns: minmax(96px, .8fr) 1.2fr; gap: 10px; }
.quick-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  border: 1px solid var(--line);
  background: #07100b;
  color: var(--accent);
  border-radius: 999px;
  padding: 8px 11px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 900;
}
.pill:hover { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(54,255,122,.08); }
.hidden { display: none !important; }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-link { color: var(--accent); text-decoration: none; font-weight: 900; font-size: .9rem; }
.nav-link:hover { text-decoration: underline; }
.save-box { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 20px; }
.flash { margin-bottom: 18px; color: var(--accent); }
.drop-list { display: grid; gap: 16px; }
.drop-row { padding: 18px; display: grid; grid-template-columns: 1fr minmax(260px, 420px); gap: 18px; align-items: start; }
.drop-row h2 { margin: 0 0 10px; color: var(--text); font-size: 1.25rem; letter-spacing: -.04em; }
.drop-actions { display: grid; gap: 10px; }
.btn.danger { background: transparent; color: var(--danger); border-color: rgba(255,95,114,.6); box-shadow: none; width: 100%; }
@media (max-width: 880px) { .drop-row { grid-template-columns: 1fr; } .nav-actions { gap: 9px; } }
.toggle-row { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; color: var(--text); }
.toggle-row input { width: auto; accent-color: var(--green); }
.unit-static { align-self: center; color: var(--muted); padding: 0 10px; white-space: nowrap; }

.section-label {
  color: var(--green);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.tiny-copy {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
}

.radio-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.45rem 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(0, 255, 136, 0.18);
  background: rgba(0, 255, 136, 0.035);
  border-radius: 12px;
  cursor: pointer;
}

.radio-row input {
  width: auto;
  accent-color: var(--green);
}

.radio-row span {
  color: var(--text);
  font-size: 0.95rem;
}

.nested-controls {
  margin: 0.35rem 0 0.8rem 1.65rem;
  padding-left: 0.85rem;
  border-left: 1px solid rgba(0, 255, 136, 0.25);
}

/* v8 polish: softer suggestions + standard over-limit feedback */
input::placeholder,
textarea::placeholder {
  color: rgba(125, 168, 139, 0.38);
}

.counter {
  display: inline-flex;
  justify-content: flex-end;
  font-size: 0.78rem;
  min-height: 1.1rem;
}

.counter.over,
.field-over-message,
#fileHelp.over,
#waitlistStatus.error {
  color: var(--danger);
}

input.over-limit,
textarea.over-limit {
  border-color: rgba(255, 95, 114, 0.82);
  box-shadow: 0 0 0 3px rgba(255, 95, 114, 0.10);
}

.waitlist-box {
  border: 1px solid rgba(0, 217, 255, 0.28);
  background: rgba(0, 217, 255, 0.045);
  border-radius: 8px;
  padding: 14px;
  margin: 0 0 16px;
  display: grid;
  gap: 10px;
}

.waitlist-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.waitlist-inline input { margin: 0; }

@media (max-width: 640px) {
  .waitlist-inline { grid-template-columns: 1fr; }
}

/* v9 theme system: theme classes only adjust visual presentation. Functionality remains shared. */
body.theme-cipher {
  --bg: #050706;
  --panel: #0b110f;
  --panel2: #0f1714;
  --text: #d7ffe3;
  --muted: #7da88b;
  --line: #1f3d2d;
  --accent: #36ff7a;
  --green: #36ff7a;
  --accent2: #00d9ff;
  --danger: #ff5f72;
  --shadow: 0 18px 70px rgba(0, 0, 0, .55);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

body.theme-love {
  --bg: #fff6f3;
  --panel: #fffaf7;
  --panel2: #fff3ee;
  --text: #421622;
  --muted: #9b6671;
  --line: #ead0cc;
  --accent: #a93652;
  --green: #a93652;
  --accent2: #c79075;
  --danger: #b81f45;
  --shadow: 0 24px 70px rgba(82, 27, 43, .16);
  font-family: Georgia, "Times New Roman", serif;
}

body.theme-love {
  background:
    radial-gradient(circle at 12% 4%, rgba(255, 197, 202, .42), transparent 24rem),
    radial-gradient(circle at 90% 12%, rgba(199, 144, 117, .24), transparent 26rem),
    linear-gradient(135deg, #fff9f4 0%, #fdebee 52%, #fff7ed 100%);
  background-size: auto;
}

body.theme-love .binary-rain { display: none; }
.love-glow { display: none; }
body.theme-love .love-glow {
  display: block;
  position: fixed;
  right: -2rem;
  bottom: -2rem;
  z-index: 0;
  pointer-events: none;
  color: rgba(169, 54, 82, .10);
  font-size: clamp(5rem, 18vw, 13rem);
  letter-spacing: -.08em;
  transform: rotate(-12deg);
}

body.theme-love .brand,
body.theme-love h1,
body.theme-love .viewer-head h1,
body.theme-love .drop-tile h2 {
  letter-spacing: -.045em;
}

body.theme-love .prompt-mark {
  color: var(--accent2);
  text-shadow: 0 0 18px rgba(199, 144, 117, .28);
}

body.theme-love .card,
body.theme-love .mini-card,
body.theme-love .protected-shell,
body.theme-love .terminal-card,
body.theme-love .dynamic-box {
  background: linear-gradient(180deg, rgba(255, 250, 247, .92), rgba(255, 243, 238, .88));
  border-color: rgba(169, 54, 82, .18);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

body.theme-love .terminal-card::before,
body.theme-love .protected-shell::before,
body.theme-love .success-card::before,
body.theme-love .lock-card::before,
body.theme-love .expired-card::before,
body.theme-love .password-card::before {
  content: "♡";
  display: block;
  color: rgba(169, 54, 82, .34);
  font-size: 1.25rem;
  margin-bottom: .35rem;
}

body.theme-love input,
body.theme-love textarea,
body.theme-love select,
body.theme-love .message-box,
body.theme-love .file-box,
body.theme-love .timer-chip,
body.theme-love output {
  background: rgba(255,255,255,.72);
  border-color: rgba(169, 54, 82, .22);
  color: var(--text);
  border-radius: 14px;
}

body.theme-love input::placeholder,
body.theme-love textarea::placeholder {
  color: rgba(155, 102, 113, .46);
}

body.theme-love input:focus,
body.theme-love textarea:focus,
body.theme-love select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(169, 54, 82, .10);
}

body.theme-love .btn {
  background: linear-gradient(135deg, #a93652, #c79075);
  border-color: rgba(169,54,82,.35);
  color: #fffaf7;
  border-radius: 999px;
  box-shadow: 0 14px 32px rgba(169,54,82,.18);
}

body.theme-love .btn.secondary {
  background: rgba(255,255,255,.62);
  color: var(--accent);
}

body.theme-love .btn.ghost {
  background: transparent;
  color: var(--text);
}

body.theme-love .radio-row {
  background: rgba(255, 255, 255, .46);
  border-color: rgba(169,54,82,.16);
  border-radius: 18px;
}

body.theme-love .radio-row:has(input:checked),
body.theme-cipher .radio-row:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}

.theme-choice span { display: grid; gap: 3px; }
.theme-choice small { color: var(--muted); font-weight: 500; }
.theme-picker { transition: border-color .2s ease, background .2s ease; }

body.theme-love .protected-shell::after {
  color: rgba(169, 54, 82, .055);
  font-family: Georgia, "Times New Roman", serif;
}

body.theme-love .privacy-shade {
  background: rgba(255, 246, 243, .96);
  color: var(--accent);
}

/* Compact dashboard tiles */
.dashboard-wrap .viewer-head { align-items: start; }
.upgrade-strip {
  border: 1px solid var(--line);
  background: rgba(0, 217, 255, .04);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 18px;
  display: grid;
  gap: 8px;
}
body.theme-love .upgrade-strip { background: rgba(255,255,255,.54); border-radius: 20px; }
.drop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.drop-tile {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 23, 20, .92), rgba(8, 13, 11, .92));
  border-radius: 12px;
  padding: 14px;
  display: grid;
  gap: 10px;
  min-height: 260px;
  box-shadow: 0 10px 35px rgba(0,0,0,.18);
}
.drop-tile.tile-theme-love {
  --tile-accent: #a93652;
  --tile-muted: #9b6671;
  background: linear-gradient(145deg, rgba(255,250,247,.96), rgba(253,235,238,.88));
  border-color: rgba(169,54,82,.22);
  color: #421622;
  border-radius: 22px;
}
.drop-tile.tile-theme-cipher {
  --tile-accent: #36ff7a;
  --tile-muted: #7da88b;
  background:
    linear-gradient(rgba(54, 255, 122, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(54, 255, 122, .028) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15, 23, 20, .94), rgba(8, 13, 11, .94));
  background-size: 18px 18px, 18px 18px, auto;
}
.tile-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tile-date { margin-left: auto; color: var(--muted); font-size: .72rem; }
.status-pill, .theme-pill {
  border: 1px solid var(--line);
  color: var(--accent);
  background: rgba(54,255,122,.045);
  border-radius: 999px;
  padding: 5px 8px;
  font-size: .72rem;
  font-weight: 900;
}
.tile-theme-love .status-pill,
.tile-theme-love .theme-pill {
  border-color: rgba(169,54,82,.22);
  color: #a93652;
  background: rgba(255,255,255,.55);
}
.drop-tile h2 { font-size: 1.05rem; margin: 0; line-height: 1.2; overflow-wrap: anywhere; }
.tile-meta { margin: 0; color: var(--muted); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile-stats div { border: 1px solid var(--line); border-radius: 10px; padding: 8px; display: grid; gap: 3px; min-width: 0; }
.tile-theme-love .tile-stats div { border-color: rgba(169,54,82,.15); background: rgba(255,255,255,.45); }
.tile-stats span { color: var(--muted); font-size: .68rem; }
.tile-stats strong { font-size: .78rem; overflow-wrap: anywhere; }
.tile-link { font-size: .78rem; padding: 9px; }
.tile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: stretch; }
.tile-actions form { margin: 0; grid-column: 1 / -1; }
.btn.disabled { opacity: .55; cursor: not-allowed; }
@media (max-width: 640px) {
  .drop-grid { grid-template-columns: 1fr; }
  .tile-stats { grid-template-columns: 1fr; }
}

/* v10 launch polish: tighter above-the-fold layout + stronger visual themes */
.page {
  padding-top: 14px;
}

.nav {
  margin-bottom: 24px;
}

.create-preview-shell,
.grid-two.create-preview-shell {
  align-items: start;
  gap: 28px;
}

.hero {
  min-height: auto;
}

.hero-copy {
  position: sticky;
  top: 16px;
  align-self: start;
}

.create-preview-shell h1 {
  font-size: clamp(2.1rem, 6.2vw, 4.65rem);
  margin-bottom: 16px;
}

.create-preview-shell .lead {
  margin-top: 0;
  margin-bottom: 18px;
}

.side-theme-picker {
  margin: 18px 0 18px;
  position: relative;
  overflow: hidden;
}

.side-theme-picker::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 88% 18%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 9rem);
  opacity: .75;
}

.theme-choice {
  position: relative;
  z-index: 1;
}

/* More cinematic Cipher background */
body.theme-cipher {
  background:
    linear-gradient(rgba(54, 255, 122, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(54, 255, 122, .032) 1px, transparent 1px),
    radial-gradient(circle at 14% 12%, rgba(0, 217, 255, .18), transparent 20rem),
    radial-gradient(circle at 84% 16%, rgba(54, 255, 122, .12), transparent 24rem),
    radial-gradient(circle at 50% 110%, rgba(54, 255, 122, .09), transparent 24rem),
    linear-gradient(145deg, #020403 0%, #07100c 52%, #020302 100%);
  background-size: 26px 26px, 26px 26px, auto, auto, auto, auto;
}

body.theme-cipher::before {
  content: "0101  ACCESS_GRANTED  1100  DROP_ARMED  0011";
  position: fixed;
  top: 9.5rem;
  left: -8rem;
  z-index: 0;
  pointer-events: none;
  color: rgba(54, 255, 122, .06);
  font-size: clamp(2.4rem, 10vw, 9rem);
  font-weight: 950;
  letter-spacing: -.08em;
  transform: rotate(-8deg);
  white-space: nowrap;
}

body.theme-cipher .card,
body.theme-cipher .mini-card,
body.theme-cipher .protected-shell,
body.theme-cipher .terminal-card,
body.theme-cipher .dynamic-box {
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .48), inset 0 0 0 1px rgba(54, 255, 122, .035);
}

/* Love Drop: make it feel like a private romantic letter, not just a recolor */
body.theme-love {
  --bg: #fff6f2;
  --panel: #fffaf7;
  --panel2: #fff0ef;
  --text: #401320;
  --muted: #94606d;
  --line: rgba(154, 63, 82, .22);
  --accent: #a93652;
  --green: #a93652;
  --accent2: #d5a075;
  --danger: #b81f45;
  --shadow: 0 24px 80px rgba(103, 27, 49, .18);
  background:
    radial-gradient(circle at 16% 8%, rgba(255, 205, 213, .72), transparent 17rem),
    radial-gradient(circle at 84% 6%, rgba(213, 160, 117, .34), transparent 20rem),
    radial-gradient(circle at 50% 92%, rgba(169, 54, 82, .10), transparent 24rem),
    linear-gradient(135deg, #fffaf5 0%, #fde8ec 44%, #fff5e9 100%);
  font-family: Georgia, "Times New Roman", serif;
}

body.theme-love::before {
  content: "♡   ✉︎   ♥   ✦   ribbon   ♡   sealed   ✉︎";
  position: fixed;
  top: 6rem;
  left: -5rem;
  right: -5rem;
  z-index: 0;
  pointer-events: none;
  color: rgba(169, 54, 82, .075);
  font-size: clamp(2.6rem, 8vw, 7.5rem);
  font-weight: 700;
  letter-spacing: .05em;
  transform: rotate(-10deg);
  white-space: nowrap;
}

body.theme-love::after {
  content: "♥  ♡  ✉︎  ✦  ♡  ♥  ✉︎  ♡  ✦";
  position: fixed;
  bottom: 1.5rem;
  left: -4rem;
  right: -4rem;
  z-index: 0;
  pointer-events: none;
  color: rgba(213, 160, 117, .14);
  font-size: clamp(1.6rem, 4.8vw, 4.2rem);
  letter-spacing: .55em;
  transform: rotate(7deg);
  white-space: nowrap;
}

body.theme-love .love-glow {
  display: block;
  position: fixed;
  right: -3rem;
  top: 18%;
  bottom: auto;
  z-index: 0;
  pointer-events: none;
  color: rgba(169, 54, 82, .12);
  font-size: clamp(8rem, 24vw, 18rem);
  letter-spacing: -.1em;
  transform: rotate(-12deg);
  filter: blur(.2px);
}

body.theme-love h1,
body.theme-love .brand,
body.theme-love .viewer-head h1,
body.theme-love .drop-tile h2 {
  font-family: Georgia, "Times New Roman", serif;
}

body.theme-love h1 {
  text-shadow: 0 12px 32px rgba(169, 54, 82, .12);
}

body.theme-love .card,
body.theme-love .mini-card,
body.theme-love .protected-shell,
body.theme-love .terminal-card,
body.theme-love .dynamic-box {
  background:
    linear-gradient(180deg, rgba(255, 252, 249, .86), rgba(255, 239, 238, .76)),
    radial-gradient(circle at 90% 0%, rgba(255,255,255,.95), transparent 10rem);
  border-color: rgba(169, 54, 82, .18);
  border-radius: 26px;
  box-shadow: 0 22px 70px rgba(103, 27, 49, .14), inset 0 0 0 1px rgba(255,255,255,.48);
  backdrop-filter: blur(18px);
}

body.theme-love .form-card {
  position: relative;
  overflow: hidden;
}

body.theme-love .form-card::before,
body.theme-love .protected-shell::before,
body.theme-love .terminal-card::before {
  content: "✉︎ sealed with a little mystery";
  display: block;
  color: rgba(169, 54, 82, .42);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: lowercase;
  margin-bottom: .6rem;
}

body.theme-love .form-card::after {
  content: "♡";
  position: absolute;
  right: 18px;
  top: 8px;
  color: rgba(169,54,82,.12);
  font-size: 5rem;
  pointer-events: none;
}

body.theme-love .side-theme-picker::after {
  background:
    radial-gradient(circle at 88% 22%, rgba(169,54,82,.14), transparent 7rem),
    radial-gradient(circle at 16% 90%, rgba(213,160,117,.16), transparent 6rem);
}

body.theme-love .drop-tile.tile-theme-love {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255,252,249,.96), rgba(253,232,236,.90)),
    radial-gradient(circle at 100% 0%, rgba(213,160,117,.20), transparent 8rem);
}

body.theme-love .drop-tile.tile-theme-love::after {
  content: "♡";
  position: absolute;
  right: 12px;
  bottom: -18px;
  font-size: 5rem;
  color: rgba(169,54,82,.10);
  pointer-events: none;
}

body.theme-love .btn {
  background: linear-gradient(135deg, #8f2942 0%, #c16f7d 48%, #d5a075 100%);
  box-shadow: 0 16px 36px rgba(169,54,82,.22);
}

@media (max-width: 880px) {
  .hero-copy {
    position: static;
  }
  .create-preview-shell,
  .grid-two.create-preview-shell {
    gap: 20px;
  }
  .side-theme-picker {
    margin-bottom: 16px;
  }
}

@media (max-width: 640px) {
  .page {
    width: min(100% - 22px, 1120px);
    padding-top: 10px;
  }
  .nav {
    margin-bottom: 18px;
  }
  .create-preview-shell h1 {
    font-size: clamp(2.35rem, 15vw, 4rem);
  }
}

/* v11 visual cleanup: calmer copy hierarchy + more expressive themes */
.page {
  padding-top: 12px;
}
.nav {
  margin-bottom: 18px;
  padding-bottom: 12px;
}
.grid-two,
.grid-two.create-preview-shell {
  align-items: start;
  gap: 34px;
}
.hero {
  min-height: auto;
}
.hero-copy {
  padding-top: 4px;
}
.create-preview-shell h1 {
  font-size: clamp(2.25rem, 5.8vw, 4.4rem);
  margin-bottom: 10px;
}
.create-preview-shell .lead {
  font-size: .98rem;
  line-height: 1.5;
  max-width: 42ch;
  opacity: .92;
  margin-bottom: 14px;
}
.eyebrow {
  font-size: .72rem;
  opacity: .86;
  margin-bottom: 10px;
}
.form-card {
  padding: 19px;
}
.form-card label {
  gap: 6px;
  font-size: .86rem;
  margin-bottom: 13px;
}
.optional {
  font-size: .68rem;
  opacity: .68;
}
input,
textarea,
select {
  padding: 10px 11px;
  font-size: .92rem;
}
input::placeholder,
textarea::placeholder {
  font-size: .82rem;
  opacity: .62;
}
textarea {
  min-height: 88px;
}
small,
.tiny-copy,
.truth-note {
  font-size: .73rem;
  opacity: .76;
}
.counter {
  font-size: .68rem;
  opacity: .78;
}
.dynamic-box {
  padding: 12px;
  margin-bottom: 13px;
}
.section-label {
  font-size: .72rem;
  opacity: .9;
}
.radio-row {
  padding: .52rem .62rem;
  margin: .35rem 0;
}
.radio-row span {
  font-size: .86rem;
}
.theme-choice small {
  font-size: .68rem;
  opacity: .72;
}
.terminal-card {
  margin-top: 14px;
  padding: 13px;
  gap: 5px;
  font-size: .74rem;
  opacity: .82;
}
.how {
  margin-top: 14px;
}
.mini-card {
  padding: 14px;
}
.mini-card span {
  font-size: .78rem;
}

/* theme selector: make it feel like a small left-side control panel */
.side-theme-picker {
  max-width: 430px;
  padding: 13px;
  margin: 14px 0 14px;
}
.side-theme-picker .theme-choice {
  display: flex;
  min-height: 58px;
}
.side-theme-picker .theme-choice::before {
  content: "";
  width: 26px;
  height: 26px;
  border-radius: 10px;
  flex: 0 0 auto;
  align-self: center;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent2) 70%, var(--accent)));
  opacity: .7;
  box-shadow: 0 0 22px color-mix(in srgb, var(--accent) 20%, transparent);
}
.side-theme-picker .theme-choice:has(input[value="cipher"])::before {
  content: "01";
  display: grid;
  place-items: center;
  color: #041007;
  font-size: .62rem;
  font-weight: 950;
}
.side-theme-picker .theme-choice:has(input[value="love"])::before {
  content: "♡";
  display: grid;
  place-items: center;
  color: #fffaf7;
  font-size: 1rem;
}

/* richer Cipher without changing the existing identity */
body.theme-cipher::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(118deg, transparent 0 18px, rgba(54,255,122,.018) 18px 19px, transparent 19px 36px),
    radial-gradient(circle at 72% 40%, rgba(0,217,255,.055), transparent 18rem);
  mix-blend-mode: screen;
}
body.theme-cipher .side-theme-picker .theme-choice:has(input[value="cipher"]),
body.theme-cipher .radio-row:has(input:checked) {
  background: rgba(54,255,122,.06);
}

/* Love theme: warmer, more premium, more intentionally designed */
body.theme-love {
  --bg: #fff7f1;
  --panel: #fffaf7;
  --panel2: #fff0ec;
  --text: #3c1020;
  --muted: #9a6470;
  --line: rgba(122, 35, 61, .18);
  --accent: #8f2945;
  --green: #8f2945;
  --accent2: #c88773;
  --danger: #b81f45;
  --shadow: 0 24px 80px rgba(83, 20, 45, .16);
  background:
    radial-gradient(ellipse at 18% 10%, rgba(255, 207, 213, .78), transparent 28rem),
    radial-gradient(ellipse at 80% 4%, rgba(231, 178, 149, .45), transparent 24rem),
    radial-gradient(ellipse at 48% 110%, rgba(122, 35, 61, .16), transparent 30rem),
    linear-gradient(135deg, #fffaf4 0%, #fde5e9 38%, #fff4ea 78%, #fffaf7 100%);
}
body.theme-love .page::before {
  content: "♡        ✉︎        ✦        ♡        sealed        ✉︎        ♡";
  position: fixed;
  left: -8vw;
  top: 7.5rem;
  z-index: -1;
  pointer-events: none;
  color: rgba(143, 41, 69, .10);
  font-size: clamp(1.7rem, 5vw, 4.8rem);
  letter-spacing: .38em;
  white-space: nowrap;
  transform: rotate(-10deg);
  filter: blur(.1px);
}
body.theme-love .page::after {
  content: "";
  position: fixed;
  right: -8rem;
  top: 22%;
  width: min(38vw, 420px);
  aspect-ratio: 1.25;
  z-index: -1;
  pointer-events: none;
  border: 1px solid rgba(143,41,69,.16);
  border-radius: 22px;
  transform: rotate(-12deg);
  background:
    linear-gradient(145deg, rgba(255,255,255,.30), rgba(255,230,230,.10)),
    linear-gradient(32deg, transparent 48%, rgba(143,41,69,.12) 49%, rgba(143,41,69,.12) 51%, transparent 52%),
    linear-gradient(148deg, transparent 48%, rgba(199,136,115,.14) 49%, rgba(199,136,115,.14) 51%, transparent 52%);
  box-shadow: 0 30px 80px rgba(83,20,45,.12);
}
body.theme-love .love-glow {
  right: -2rem;
  top: 12%;
  color: rgba(143, 41, 69, .085);
  font-size: clamp(7rem, 22vw, 17rem);
}
body.theme-love .binary-rain { display: none; }
body.theme-love .eyebrow::after {
  content: "  / sealed note";
  color: rgba(143,41,69,.45);
}
body.theme-love h1 {
  letter-spacing: -.055em;
  color: #3c1020;
}
body.theme-love .lead {
  color: rgba(60,16,32,.70);
}
body.theme-love .card,
body.theme-love .mini-card,
body.theme-love .protected-shell,
body.theme-love .terminal-card,
body.theme-love .dynamic-box {
  background:
    linear-gradient(180deg, rgba(255,252,248,.84), rgba(255,239,238,.70)),
    radial-gradient(circle at 100% 0%, rgba(255,255,255,.9), transparent 9rem);
  border-color: rgba(122,35,61,.16);
  border-radius: 28px;
  box-shadow: 0 24px 80px rgba(83,20,45,.13), inset 0 0 0 1px rgba(255,255,255,.52);
}
body.theme-love .form-card {
  border-radius: 30px;
  overflow: hidden;
}
body.theme-love .form-card::before {
  content: "private note mode";
  color: rgba(143,41,69,.36);
  font-size: .66rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin-bottom: .45rem;
}
body.theme-love .form-card::after {
  content: "♡";
  position: absolute;
  right: 16px;
  top: 2px;
  color: rgba(143,41,69,.10);
  font-size: 5.4rem;
  pointer-events: none;
}
body.theme-love .section-label {
  color: rgba(143,41,69,.82);
}
body.theme-love .radio-row,
body.theme-love input,
body.theme-love textarea,
body.theme-love select {
  background: rgba(255,255,255,.62);
  border-color: rgba(122,35,61,.16);
}
body.theme-love input::placeholder,
body.theme-love textarea::placeholder {
  color: rgba(154,100,112,.34);
}
body.theme-love .theme-choice:has(input[value="love"]),
body.theme-love .radio-row:has(input:checked) {
  background: rgba(255,255,255,.76);
  border-color: rgba(143,41,69,.34);
}
body.theme-love .terminal-card {
  display: none;
}
body.theme-love .btn {
  border: 0;
  background: linear-gradient(135deg, #7f203c 0%, #b85a70 48%, #d8a07b 100%);
  color: #fffaf7;
  box-shadow: 0 18px 38px rgba(143,41,69,.20);
}
body.theme-love .btn.secondary,
body.theme-love .btn.ghost {
  border: 1px solid rgba(122,35,61,.16);
  background: rgba(255,255,255,.68);
  color: #7f203c;
}
body.theme-love .mini-card {
  background: rgba(255,255,255,.52);
}
body.theme-love .mini-card strong {
  color: #8f2945;
}
body.theme-love .drop-tile.tile-theme-love {
  background:
    radial-gradient(circle at 100% 0%, rgba(216,160,123,.24), transparent 8rem),
    linear-gradient(145deg, rgba(255,252,249,.96), rgba(253,229,233,.88));
}
body.theme-love .drop-tile.tile-theme-love::before {
  content: "♡";
  position: absolute;
  right: 12px;
  top: 8px;
  color: rgba(143,41,69,.12);
  font-size: 2.2rem;
}

@media (max-width: 880px) {
  .grid-two,
  .grid-two.create-preview-shell {
    gap: 18px;
  }
  .side-theme-picker {
    max-width: none;
  }
  body.theme-love .page::after {
    width: 260px;
    right: -120px;
    top: 18%;
  }
}

@media (max-width: 640px) {
  .page {
    padding-top: 8px;
  }
  .nav {
    margin-bottom: 12px;
  }
  .create-preview-shell h1 {
    font-size: clamp(2.15rem, 13vw, 3.6rem);
  }
  .create-preview-shell .lead {
    font-size: .88rem;
  }
  .form-card {
    padding: 16px;
  }
}

.notice-strip {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  font-size: .78rem;
  opacity: .82;
  text-align: center;
  backdrop-filter: blur(12px);
}

.post-create-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1rem;
}

.post-create-actions .btn {
  min-width: 150px;
}
