/* ===== "DROP AN IDEA" / "EDIT YOUR IDEA" modal (share/profile agent) ===== */
/* z: above the bottom nav (120) and the idea sheet (150); below profile (220), palette, splash, auth, toast */
.share-root { position: fixed; inset: 0; z-index: 210; display: none; }
.share-root.is-open, .share-root.is-closing { display: block; }
.share-root.is-closing { pointer-events: none; }

.sh-wrap { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; }
.sh-backdrop {
  position: fixed; inset: 0;
  background: color-mix(in srgb, #0e0e10 55%, transparent);
  backdrop-filter: blur(3px) saturate(0.8);
  animation: sh-fade 0.25s ease both;
}
.share-root.is-closing .sh-backdrop { animation: sh-fade 0.22s ease reverse both; }
@keyframes sh-fade { from { opacity: 0; } }

.sh-dialog {
  position: relative; z-index: 1;
  width: min(1080px, 100%);
  height: min(860px, calc(100dvh - 40px));
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.9fr);
  grid-template-rows: minmax(0, 1fr) auto;
  background: var(--card); color: var(--ink);
  border: var(--bw) solid var(--line); border-radius: var(--r-md);
  box-shadow: 10px 10px 0 var(--ink);
  overflow: hidden;
  animation: sh-in 0.42s var(--ease-spring) both;
}

.share-root.is-closing .sh-dialog { animation: sh-out 0.22s var(--ease-out) both; }
@keyframes sh-in { from { opacity: 0; transform: translateY(40px) rotate(-2deg) scale(0.94); } }
@keyframes sh-out { to { opacity: 0; transform: translateY(20px) rotate(1deg) scale(0.97); } }

/* Pantom-ish plus grid texture */
.sh-plus {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Cpath d='M14 9v10M9 14h10' stroke='%230e0e10' stroke-width='1.6'/%3E%3C/svg%3E");
  background-size: 28px 28px;
}

.sh-x {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  width: 38px; height: 38px; display: grid; place-items: center;
  font-size: 24px; line-height: 1; background: var(--card);
  border: var(--bw) solid var(--line); border-radius: 50%;
  transition: transform 0.25s var(--ease-spring), background 0.2s;
}
.sh-x:hover { background: var(--hot); color: #0e0e10; transform: rotate(90deg); }

/* ---------- layout: form + action bar on the left, preview on the right ---------- */
.sh-left { grid-row: 1; grid-column: 1; position: relative; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.sh-actions { grid-row: 2; grid-column: 1; }
.sh-right { grid-row: 1 / 3; grid-column: 2; }
.sh-bar { display: none; }
.sh-form { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.sh-scroll {
  flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  padding: 26px 34px 22px; scroll-padding: 20px;
}
.sh-top { margin-bottom: 16px; }
.sh-kicker {
  margin: 0 0 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-family: var(--f-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.12em;
}
.sh-sq { width: 12px; height: 12px; background: var(--ink); display: inline-block; }
.sh-kicker-dim { color: var(--ink-3); font-weight: 400; letter-spacing: 0.06em; }
.sh-h {
  margin: 0; font-family: var(--f-display); font-style: italic; font-weight: 400;
  font-size: clamp(38px, 4.8vw, 58px); line-height: 0.95; letter-spacing: -0.025em;
}
.sh-hey {
  display: inline-block; padding: 0 10px 0 6px; margin-right: 2px;
  background: var(--acid); color: #0e0e10; border: var(--bw) solid #0e0e10;
  transform: rotate(-3deg); box-shadow: 4px 4px 0 #0e0e10;
}
.sh-w { font-style: italic; }
.sh-nowrap { white-space: nowrap; }
.sh-w1 { color: var(--hot); }
.sh-w2 { color: var(--violet); }
.sh-w3 { color: var(--cyan); -webkit-text-stroke: 1.5px var(--ink); display: inline-block; animation: sh-wobble 2.4s ease-in-out infinite; }

@keyframes sh-wobble { 50% { transform: rotate(14deg) translateY(-3px); } }
.sh-sub { margin: 12px 0 0; font-size: 15px; color: var(--ink-2); max-width: 46ch; }
.sh-mk { padding: 0 4px; color: #0e0e10; border-radius: 2px; }
.sh-mk-a { background: var(--pi-pink); }
.sh-mk-b { background: var(--pi-cyan); }
.sh-mk-c { background: var(--pi-lime); }

/* ---------- restore-draft banner ---------- */
.sh-restore {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 0 0 16px; padding: 10px 12px;
  background: var(--pi-yellow); color: #0e0e10;
  border: var(--bw) solid #0e0e10; border-radius: var(--r-sm); box-shadow: 4px 4px 0 #0e0e10;
  transform: rotate(-0.6deg);
  animation: sh-drop 0.5s var(--ease-spring) both;
  transition: opacity 0.2s, transform 0.2s;
}
.sh-restore.is-gone { opacity: 0; transform: translateY(-8px) rotate(-2deg); }
@keyframes sh-drop { from { opacity: 0; transform: translateY(-14px) rotate(-4deg); } }
.sh-restore-ico { font-size: 22px; }
.sh-restore-txt { flex: 1; min-width: 160px; display: flex; flex-direction: column; font-size: 13px; line-height: 1.3; }
.sh-restore-txt b { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.sh-restore-txt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-restore-yes { height: 34px; background: #0e0e10; color: var(--pi-yellow); box-shadow: 2px 2px 0 var(--hot); }
.sh-restore-no { background: none; border: 0; font-family: var(--f-mono); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; color: #0e0e10; }

/* ---------- steps (accordion) ---------- */
.sh-steps { display: flex; flex-direction: column; gap: 10px; }
.sh-step {
  border: var(--bw) solid var(--line); border-radius: var(--r-md);
  background: var(--card);
  transition: box-shadow 0.2s, border-style 0.2s;
}
.sh-step:not(.is-open) { border-style: dashed; background: color-mix(in srgb, var(--paper) 60%, var(--card)); }
.sh-step.is-open { box-shadow: var(--shadow-hard-sm); }
.sh-step-head {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; background: none; border: 0; text-align: left; border-radius: var(--r-md);
}
.sh-step-head:hover .sh-step-n { transform: rotate(-8deg) scale(1.08); }
.sh-step-n {
  flex: none; width: 28px; height: 28px; display: grid; place-items: center;
  font-family: var(--f-mono); font-weight: 700; font-size: 13px;
  background: var(--ink); color: var(--paper);
  transition: transform 0.25s var(--ease-spring), background 0.2s, color 0.2s;
}
.sh-step.is-open .sh-step-n { background: var(--acid); color: #0e0e10; border: 2px solid #0e0e10; }
.sh-step-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.sh-step-title { font-family: var(--f-mono); font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; }
.sh-opt { font-weight: 400; color: var(--ink-3); letter-spacing: 0.04em; text-transform: lowercase; }
.sh-step-sub { font-size: 13px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-step-status {
  flex: none; font-family: var(--f-mono); font-size: 11px; font-weight: 600;
  padding: 3px 8px; border-radius: var(--r-pill); border: 1.5px dashed var(--ink-3); color: var(--ink-3);
  white-space: nowrap;
}
.sh-step-status.is-done { border: 1.5px solid #0e0e10; background: var(--pi-lime); color: #0e0e10; }
.sh-step-status.is-req { border-color: var(--ink-2); color: var(--ink-2); }
.sh-step-status.is-err { border: 1.5px solid #0e0e10; background: var(--hot); color: #0e0e10; }
.sh-step-chev {
  flex: none; width: 9px; height: 9px; margin: -4px 4px 0 2px; font-size: 0;
  border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink);
  transform: rotate(45deg); transition: transform 0.3s var(--ease-spring), margin 0.3s;
}
.sh-step.is-open .sh-step-chev { transform: rotate(225deg); margin-top: 4px; }

.sh-step-panel { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 0fr; transition: grid-template-rows 0.35s var(--ease-out); }
.sh-step.is-open .sh-step-panel { grid-template-rows: 1fr; }
.sh-step-inner { min-height: 0; min-width: 0; overflow: hidden; }
.sh-step.is-open .sh-step-inner { overflow: visible; animation: sh-unclip 0.35s step-end; }
@keyframes sh-unclip { from { overflow: hidden; } }
.sh-step-fields {
  display: flex; flex-direction: column; gap: 14px;
  padding: 4px 16px 14px;
  opacity: 0; transform: translateY(-6px);
  transition: opacity 0.25s, transform 0.3s var(--ease-out);
}
.sh-step.is-open .sh-step-fields { opacity: 1; transform: none; }
.sh-next {
  display: block; margin: -4px 16px 12px auto; padding: 4px 2px;
  background: none; border: 0; font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-3);
  text-decoration: underline dashed; text-underline-offset: 4px;
}
.sh-next:hover { color: var(--ink); }
.sh-next[hidden] { display: none; }

/* ---------- fields ---------- */
.sh-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.sh-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.sh-label { font-family: var(--f-mono); font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; }
.sh-label-note { font-weight: 400; letter-spacing: 0.02em; color: var(--ink-3); text-transform: none; }
.sh-note { font-family: var(--f-marker); font-size: 13px; color: var(--hot-ink); transform: rotate(-2deg); }
.sh-count { font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.sh-count.is-warn { color: var(--hot-ink); font-weight: 600; }

.sh-input {
  width: 100%; padding: 11px 13px;
  background: var(--paper); color: var(--ink);
  border: var(--bw) solid var(--line); border-radius: var(--r-sm);
  outline: none; resize: none;
  transition: box-shadow 0.15s, transform 0.15s var(--ease-spring), background 0.2s;
}
.sh-input::placeholder, .sh-ask-input::placeholder { color: var(--ink-3); opacity: 0.85; }
.sh-input:focus { background: var(--card); box-shadow: 4px 4px 0 var(--acid), 4px 4px 0 2px var(--ink); transform: translate(-1px, -1px); }
.sh-input-title { font-family: var(--f-sans); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.sh-input-pitch { font-size: 15.5px; line-height: 1.4; min-height: 66px; }
.sh-input-desc { font-size: 15px; line-height: 1.5; min-height: 132px; overflow-y: auto; }

/* category stickers */
.sh-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 4px 4px 6px 0; }
.sh-cat {
  --c: var(--acid); --r: 0deg;
  display: flex; align-items: center; gap: 7px; min-width: 0;
  padding: 9px 9px; text-align: left;
  background: color-mix(in srgb, var(--c) 18%, var(--card));
  border: var(--bw) solid var(--line); border-radius: 10px;
  transform: rotate(var(--r));
  transition: transform 0.22s var(--ease-spring), box-shadow 0.15s, background 0.2s;
}
.sh-cat-e { font-size: 20px; line-height: 1; flex: none; }
.sh-cat-n { font-family: var(--f-mono); font-size: 11px; font-weight: 600; line-height: 1.15; overflow-wrap: anywhere; }
.sh-cat:hover { transform: rotate(0deg) translateY(-3px) scale(1.04); box-shadow: 3px 3px 0 var(--ink); }
.sh-cat.is-on {
  background: var(--c); color: #0e0e10; border-color: #0e0e10;
  transform: rotate(calc(var(--r) * -1.4)) scale(1.06); box-shadow: 4px 4px 0 #0e0e10;
}
.sh-cat.is-on .sh-cat-e { animation: sh-bounce 0.5s var(--ease-spring); }
@keyframes sh-bounce { 40% { transform: scale(1.5) rotate(-12deg); } }

/* stage segmented */
.sh-seg { display: flex; border: var(--bw) solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: var(--card); }
.sh-seg-btn {
  flex: 1; min-width: 0; min-height: 38px; padding: 6px 4px; border: 0; background: none;
  font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase;
  line-height: 1.15; text-wrap: balance; overflow-wrap: anywhere;
  transition: background 0.15s;
}
.sh-seg-btn + .sh-seg-btn { border-left: 1.5px solid var(--line); }
.sh-seg-btn:hover { background: var(--paper-2); }
.sh-seg-btn.is-on { background: var(--ink); color: var(--paper); }

/* asks chip input */
.sh-askbox {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 46px;
  padding: 6px 8px; background: var(--paper);
  border: var(--bw) dashed var(--line); border-radius: var(--r-sm); cursor: text;
}
.sh-askbox:focus-within { border-style: solid; background: var(--card); box-shadow: 4px 4px 0 var(--acid), 4px 4px 0 2px var(--ink); }
.sh-asks { display: contents; }
.sh-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--f-mono); font-size: 12px; font-weight: 600;
  padding: 3px 4px 3px 9px; background: var(--acid); color: #0e0e10;
  border: 1.5px dashed #0e0e10; border-radius: 4px;
  animation: sh-chip-in 0.3s var(--ease-spring);
}
.sh-chip button {
  width: 18px; height: 18px; display: grid; place-items: center; padding: 0;
  border: 0; border-radius: 3px; background: none; color: #0e0e10; font-size: 14px; line-height: 1;
}
.sh-chip button:hover { background: #0e0e10; color: var(--acid); }
@keyframes sh-chip-in { from { transform: scale(0.6) rotate(-6deg); opacity: 0; } }
.sh-ask-input { flex: 1; min-width: 110px; border: 0; outline: 0; background: none; font-family: var(--f-mono); font-size: 13px; padding: 4px; }
.sh-sugg { display: flex; flex-wrap: wrap; gap: 6px; }
.sh-sugg-btn {
  font-family: var(--f-mono); font-size: 11px; padding: 3px 8px;
  background: none; color: var(--ink-2);
  border: 1.2px dashed var(--ink-3); border-radius: var(--r-pill);
  transition: transform 0.15s var(--ease-spring), background 0.15s, color 0.15s;
}
.sh-sugg-btn:hover:not(:disabled) { background: var(--ink); color: var(--paper); border-style: solid; transform: translateY(-1px) rotate(-2deg); }
.sh-sugg-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.sh-prompt-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sh-prompt-row[hidden] { display: none; }
.sh-prompt-l { font-family: var(--f-marker); font-size: 13px; color: var(--hot-ink); transform: rotate(-2deg); }

/* links */
.sh-link-box { position: relative; display: flex; align-items: center; }
.sh-link-ico {
  position: absolute; left: 9px; z-index: 1; width: 26px; height: 26px; display: grid; place-items: center;
  font-size: 12px; border-radius: 4px; background: var(--ink); color: var(--paper); pointer-events: none;
}
.sh-link[data-key="video"] .sh-link-ico { background: #ff2e2e; color: #fff; }
.sh-soc-badge { font-family: var(--f-mono); font-weight: 700; font-size: 11px; }
.sh-soc-badge.is-linkedin { background: #2e6bff; color: #fff; }
.sh-soc-badge.is-instagram { background: linear-gradient(135deg, #ff6b1a, #ff2e88 55%, #7b2eff); color: #fff; }
.sh-link-input { padding-left: 44px; font-family: var(--f-mono); font-size: 13.5px; }
.sh-link.is-ok .sh-link-input { border-color: var(--line); }
.sh-link.is-bad .sh-link-input { border-color: var(--hot); border-style: dashed; background: color-mix(in srgb, var(--hot) 8%, var(--paper)); }
.sh-link-out:empty { display: none; }
.sh-link-rm { background: none; border: 0; font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); padding: 0; }
.sh-link-rm:hover { color: var(--hot-ink); }
.sh-yt {
  display: flex; align-items: center; gap: 12px; padding: 8px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--paper);
  animation: sh-chip-in 0.35s var(--ease-spring);
}
.sh-yt-thumb { position: relative; width: 120px; aspect-ratio: 16 / 9; flex: none; border: 1.5px solid #0e0e10; border-radius: 4px; overflow: hidden; background: #0e0e10; }
.sh-yt-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-yt-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 34px; height: 24px; display: grid; place-items: center; font-size: 11px;
  background: #ff2e2e; color: #fff; border: 1.5px solid #0e0e10; border-radius: 6px;
}
.sh-yt-meta { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.sh-yt-meta b { font-family: var(--f-mono); font-size: 12px; }
.sh-yt-meta span { color: var(--ink-3); }
.sh-site {
  display: flex; align-items: center; gap: 8px; padding: 6px 10px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--paper);
  font-size: 13px; animation: sh-chip-in 0.3s var(--ease-spring);
}
.sh-site b { font-family: var(--f-mono); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-site-k { margin-left: auto; font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.sh-fav { width: 18px; height: 18px; border-radius: 3px; flex: none; background: #fff; }
.sh-fav.is-broken, .sh-page-video img.is-broken { visibility: hidden; }
.sh-err {
  margin: 0; font-size: 13px; color: var(--ink);
  padding: 7px 10px; border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--hot) 16%, var(--card)); border: 1.5px dashed var(--hot);
  animation: sh-chip-in 0.3s var(--ease-spring);
}
.sh-err-fix {
  margin-left: 6px; background: var(--ink); color: var(--paper); border: 0;
  font-family: var(--f-mono); font-size: 11px; padding: 2px 8px; border-radius: 4px;
}
.sh-addlink {
  align-self: flex-start; background: none; border: 1.5px dashed var(--line); border-radius: var(--r-sm);
  padding: 8px 12px; font-family: var(--f-mono); font-size: 12px; font-weight: 600;
  transition: background 0.15s, transform 0.15s var(--ease-spring);
}
.sh-addlink:hover { background: var(--acid); color: #0e0e10; border-style: solid; transform: rotate(-1deg); }
.sh-addlink[hidden] { display: none; }
.sh-more { display: contents; }

/* sign it */
.sh-socials { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sh-social-out { min-height: 16px; font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-soc-res b { color: var(--ink); }
.sh-soc-res.is-bad { color: var(--hot-ink); }
.sh-fyi {
  margin: 0; font-size: 13px; color: var(--ink-2); padding: 8px 10px;
  background: var(--counsel-bg); border-radius: var(--r-sm); border: 1.5px dashed var(--counsel-ink);
}
.sh-fyi b { color: var(--counsel-ink); }

/* ---------- sticky submit bar ---------- */
.sh-actions {
  flex: none; position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: nowrap;
  padding: 12px 34px 14px;
  background: var(--card); border-top: var(--bw) solid var(--line);
}
.sh-hint-wrap { flex: 1 1 0; display: flex; align-items: center; gap: 10px; min-width: 0; }
.sh-act-btns { flex: none; display: flex; align-items: center; gap: 10px; }
.sh-pv-toggle { display: none; }
.sh-hint { min-width: 0; font-family: var(--f-mono); font-size: 11.5px; line-height: 1.35; color: var(--ink-3); }
.sh-submit { flex: none; }
.sh-hint.is-ready { font-family: var(--f-marker); font-size: 15px; color: var(--hot-ink); transform: rotate(-2deg); display: inline-block; }
.sh-hint.is-err { color: var(--hot-ink); font-weight: 600; }
.sh-hint.is-shake { animation: sh-shake 0.4s; }
@keyframes sh-shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.sh-kbd { display: inline-flex; gap: 3px; color: var(--ink-3); }
.sh-submit { height: 50px; padding: 0 22px; justify-content: center; font-size: 14.5px; letter-spacing: 0.06em; box-shadow: var(--shadow-hard); }
.sh-submit .sh-arrow { display: inline-block; font-size: 18px; transition: transform 0.25s var(--ease-spring); }
.sh-submit:hover:not(.is-blocked) { box-shadow: 6px 6px 0 var(--ink); }
.sh-submit:hover:not(.is-blocked) .sh-arrow { transform: translateX(5px); }
.sh-submit.is-blocked {
  transform: none; box-shadow: none;
  background: repeating-linear-gradient(-45deg, var(--paper-2) 0 8px, var(--paper) 8px 16px);
  color: var(--ink-3); border-color: var(--ink-3); border-style: dashed;
}
.sh-submit.is-blocked:hover { color: var(--ink-2); border-color: var(--ink-2); }

/* ---------- right: live preview ---------- */
.sh-right {
  position: relative; min-width: 0; min-height: 0;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 18px 22px 18px; overflow-y: auto; overscroll-behavior: contain;
  border-left: var(--bw) solid var(--line);
  background-color: var(--paper);
  background-image: radial-gradient(circle at 1.5px 1.5px, var(--dot) 1.5px, transparent 1.8px);
  background-size: 22px 22px;
}
.sh-right-top { display: flex; align-items: center; gap: 10px; align-self: stretch; padding-right: 46px; }
.sh-ptabs { display: flex; border: var(--bw) solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: var(--card); box-shadow: var(--shadow-hard-sm); }
.sh-ptab {
  border: 0; background: none; padding: 7px 11px;
  font-family: var(--f-mono); font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; white-space: nowrap;
}
.sh-ptab + .sh-ptab { border-left: var(--bw) solid var(--line); }
.sh-ptab:hover { background: var(--paper-2); }
.sh-ptab.is-on { background: var(--ink); color: var(--paper); }
.sh-pv { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.sh-pv[hidden] { display: none; }
.sh-wall-label { display: flex; flex-direction: column; align-items: center; gap: 2px; transform: rotate(-3deg); }
.sh-marker {
  font-family: var(--f-marker); font-size: 19px; color: #0e0e10;
  background: var(--pi-yellow); padding: 3px 12px; border: 1.5px solid #0e0e10; box-shadow: 3px 3px 0 #0e0e10;
}
.sh-marker-pink { background: var(--pi-pink); font-size: 16px; }
.sh-swoop { font-family: var(--f-marker); font-size: 30px; line-height: 1; color: var(--hot); animation: sh-nudge 1.4s ease-in-out infinite; }
@keyframes sh-nudge { 50% { transform: translateY(5px); } }

.sh-preview-stage { position: relative; padding: 18px 10px 14px; }
@media (min-width: 1200px) and (min-height: 760px) {
  .sh-preview-stage { zoom: 1.22; padding-block: 14px 8px; }
  .sh-page-wrap { max-width: 410px; }
}
.sh-preview-card { width: 280px; height: 236px; position: relative; }
/* reuse board .card visuals, but make it static */
.sh-card.card {
  position: relative; left: auto; top: auto;
  transform: rotate(-2deg); cursor: default;
  transition: transform 0.4s var(--ease-spring), box-shadow 0.2s;
}
.sh-card.card.is-enter { animation: sh-card-in 0.6s var(--ease-spring) both 0.1s; }
.sh-card.card:hover { transform: rotate(0.5deg) translateY(-3px); }
@keyframes sh-card-in { from { opacity: 0; transform: rotate(6deg) translateY(30px) scale(0.9); } }
.sh-card .sh-tape { z-index: 3; }
.sh-card .is-ghost { opacity: 0.5; font-style: italic; }
.sh-card .card-title.is-ghost { font-weight: 600; }
.sh-preview-foot { margin: 0; font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-2); }

/* "what happens next" — fills the bottom of the preview pane with the payoff */
.sh-whatnext {
  list-style: none; margin: 0; padding: 12px 14px; width: min(420px, 100%);
  display: grid; gap: 8px; counter-reset: none;
  background: var(--card); border: 1.5px dashed var(--line); border-radius: var(--r-sm);
}
.sh-whatnext li { display: flex; align-items: baseline; gap: 10px; font-size: 13px; line-height: 1.35; color: var(--ink-2); }
.sh-whatnext b {
  flex: none; font-family: var(--f-mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em;
  padding: 1px 5px; background: var(--ink); color: var(--paper); border-radius: 3px;
}
.sh-whatnext li:first-child b { background: var(--acid); color: #0e0e10; }
.sh-preview-foot b { color: var(--ink); }

/* mini idea page mock */
.sh-page-wrap { width: 100%; max-width: 380px; padding: 10px 4px 6px; }
.sh-page {
  --cat: var(--acid);
  background: var(--card); border: var(--bw) solid var(--line); border-radius: var(--r-sm);
  box-shadow: 6px 6px 0 var(--ink); overflow: hidden;
  transform: rotate(0.8deg);
  animation: sh-card-in 0.5s var(--ease-spring) both;
}

.sh-page-bar {
  display: flex; align-items: center; gap: 5px; padding: 6px 9px;
  background: var(--ink); color: var(--paper); border-bottom: 4px solid var(--cat);
}
.sh-page-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--paper); opacity: 0.6; }
.sh-page-bar i:first-child { background: var(--hot); opacity: 1; }
.sh-page-url { margin-left: 6px; font-family: var(--f-mono); font-size: 10px; opacity: 0.8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-page-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.sh-page-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sh-page-title {
  margin: 0; font-family: var(--f-display); font-style: italic; font-weight: 400;
  font-size: 30px; line-height: 0.98; letter-spacing: -0.02em; overflow-wrap: anywhere;
}
.sh-page-pitch { margin: 0; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.sh-page-title.is-ghost, .sh-page-pitch.is-ghost { opacity: 0.5; }
.sh-page-by {
  display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap;
  padding: 8px 0; border-block: 1.5px dashed color-mix(in srgb, var(--ink) 30%, transparent);
}
.sh-page-by-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; font-size: 12px; }
.sh-page-by-t b { font-family: var(--f-mono); font-size: 11.5px; }
.sh-page-sign { font-family: var(--f-marker); font-size: 13px; line-height: 1.25; color: var(--counsel-ink); }
.sh-page-socs { display: flex; gap: 6px; flex-wrap: wrap; }
.sh-pg-soc { display: inline-flex; align-items: center; gap: 4px; font-family: var(--f-mono); font-size: 10.5px; padding: 1px 6px 1px 1px; border: 1.2px solid var(--line); border-radius: 3px; }
.sh-pg-soc i { font-style: normal; font-weight: 700; font-size: 9px; padding: 1px 3px; background: var(--ink); color: var(--paper); border-radius: 2px; }
.sh-page-video { position: relative; aspect-ratio: 16 / 9; border: var(--bw) solid #0e0e10; border-radius: 4px; overflow: hidden; background: #0e0e10; }
.sh-page-video img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-page-video .sh-yt-play { width: 48px; height: 34px; font-size: 15px; }
.sh-page-links { display: flex; gap: 6px; flex-wrap: wrap; }
.sh-page-link {
  display: inline-flex; align-items: center; gap: 5px; max-width: 100%;
  font-family: var(--f-mono); font-size: 11px; font-weight: 600;
  padding: 3px 8px 3px 4px; border: 1.5px solid var(--line); border-radius: var(--r-pill); background: var(--paper);
}
.sh-page-link .sh-fav { width: 14px; height: 14px; }
.sh-page-k { font-family: var(--f-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.14em; color: var(--ink-3); }
.sh-page-story, .sh-page-asks, .sh-page-counsel { display: flex; flex-direction: column; gap: 5px; }
.sh-page-paras { font-size: 12.5px; line-height: 1.45; color: var(--ink-2); max-height: 7.5em; overflow: hidden; mask-image: linear-gradient(#000 60%, transparent); }
.sh-page-paras p { margin: 0 0 6px; }
.sh-page-asks > div { display: flex; gap: 5px; flex-wrap: wrap; }
.sh-page-counsel { padding: 8px; margin: 2px -4px -4px; background: var(--counsel-bg); border-radius: var(--r-sm); }
.sh-page-pis { display: flex; gap: 8px; }
.sh-pi { font-family: var(--f-marker); font-size: 12px; color: #0e0e10; padding: 8px 8px 14px; box-shadow: var(--shadow-postit); }
.sh-pi-y { background: var(--pi-yellow); transform: rotate(-3deg); }
.sh-pi-p { background: var(--pi-pink); transform: rotate(2deg); }
.sh-pi-c { background: var(--pi-cyan); transform: rotate(-1deg); }
.sh-ghost {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%;
  padding: 10px 10px; text-align: left; background: none;
  border: 1.5px dashed var(--ink-3); border-radius: var(--r-sm); color: var(--ink-3);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.sh-page-by .sh-ghost { width: auto; flex: 1 1 100%; padding: 6px 8px; }
.sh-page-body > .sh-ghost { aspect-ratio: 16 / 6; }
.sh-ghost-l { font-family: var(--f-mono); font-size: 11.5px; }
.sh-ghost-s { flex: none; font-family: var(--f-marker); font-size: 12px; color: var(--hot-ink); }
.sh-ghost:hover { background: var(--acid); color: #0e0e10; border-color: #0e0e10; border-style: solid; }
.sh-ghost:hover .sh-ghost-s { color: #0e0e10; }

/* ---------- confirm-on-close ---------- */
.sh-confirm {
  position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; padding: 20px;
  background: color-mix(in srgb, var(--card) 70%, transparent); backdrop-filter: blur(2px);
  animation: sh-fade 0.18s ease both;
}
.sh-confirm-card {
  width: min(420px, 100%); padding: 20px 20px 16px;
  background: var(--pi-yellow); color: #0e0e10;
  border: var(--bw) solid #0e0e10; box-shadow: 8px 8px 0 #0e0e10; transform: rotate(-1.2deg);
  animation: sh-drop 0.4s var(--ease-spring) both;
}
.sh-confirm-t { margin: 0 0 4px; font-family: var(--f-display); font-style: italic; font-size: 36px; line-height: 1; }
.sh-confirm-d { margin: 0 0 14px; font-size: 14px; }
.sh-confirm-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sh-confirm .btn-acid { background: #0e0e10; color: var(--pi-yellow); box-shadow: 3px 3px 0 var(--hot); }
.sh-confirm .btn:not(.btn-acid) { background: #fff; color: #0e0e10; border-color: #0e0e10; box-shadow: 2px 2px 0 #0e0e10; }
.sh-confirm-toss { background: none; border: 0; padding: 0 2px; font-family: var(--f-mono); font-size: 12px; color: #0e0e10; text-decoration: underline; text-underline-offset: 3px; }

body.share-lock .toolbar, body.share-lock .zoom-hud { pointer-events: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .sh-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Two columns need ~860px to breathe (form >= 500px + preview >= 320px). Below that, on phones and
   portrait tablets, it becomes a full-screen sheet: sticky top bar, the form, and a sticky action bar
   with PIN IT + a PREVIEW / EDIT flip. It covers the bottom nav (z 210 > 120). */
@media (max-width: 860px) {
  .share-root.is-kb { top: var(--vvt, 0px); bottom: auto; height: var(--vvh, 100%); }
  .sh-wrap { padding: 0; place-items: stretch; }
  .sh-dialog {
    width: 100%; height: 100vh; height: 100%;
    grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto;
    border: 0; border-radius: 0; box-shadow: none;
    animation: sh-sheet 0.32s var(--ease-out) both;
  }
  @keyframes sh-sheet { from { transform: translateY(40px); opacity: 0; } }
  .share-root.is-closing .sh-dialog { animation: sh-sheet-out 0.22s var(--ease-out) both; }
  @keyframes sh-sheet-out { to { transform: translateY(30px); opacity: 0; } }

  .sh-bar {
    grid-row: 1; grid-column: 1; position: relative; z-index: 5;
    display: flex; align-items: center; gap: 8px; min-height: 56px;
    padding: env(safe-area-inset-top) 68px 0 max(16px, env(safe-area-inset-left));
    background: var(--card); border-bottom: var(--bw) solid var(--line);
    font-family: var(--f-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.12em;
  }
  .sh-x { top: calc(env(safe-area-inset-top) + 6px); right: max(10px, env(safe-area-inset-right)); z-index: 6; width: 44px; height: 44px; }
  .sh-left { grid-row: 2; }
  .sh-right { grid-row: 2; grid-column: 1; }
  .sh-actions { grid-row: 3; }

  /* keep line length sane on tablets: content column max ~680px, centred */
  .sh-scroll { padding: 18px max(16px, calc((100% - 680px) / 2)) 28px; scroll-padding: 16px 0 24px; }
  .sh-top .sh-kicker { display: none; }  /* the top bar says it */
  .sh-h { font-size: clamp(32px, 7.5vw, 48px); }
  .sh-sub { font-size: 14px; }
  .sh-step-head { min-height: 56px; padding: 10px 12px; gap: 10px; }
  .sh-step-fields { padding: 4px 12px 14px; }
  .sh-kbd { display: none; }
  /* 16px+ in every text field: no iOS zoom on focus */
  .sh-input-pitch, .sh-input-desc, .sh-link-input, .sh-ask-input { font-size: 16px; }

  .sh-actions {
    flex-direction: column; align-items: stretch; gap: 6px;
    padding: 8px max(16px, calc((100% - 680px) / 2)) calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 14px -10px rgba(14,14,16,.35);
  }
  .sh-hint-wrap { justify-content: center; text-align: center; min-height: 16px; }
  .sh-hint.is-ready { font-size: 14px; }
  .sh-act-btns { width: 100%; }
  .sh-pv-toggle {
    flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 48px; padding: 0 14px;
    font-family: var(--f-mono); font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; white-space: nowrap;
    background: var(--card); border: var(--bw) solid var(--line); border-radius: var(--r-sm);
    box-shadow: var(--shadow-hard-sm);
  }
  .sh-pv-toggle[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
  .sh-submit { flex: 1; min-width: 0; height: 48px; padding: 0 14px; }

  /* the preview sits on top of the form in the same row; the bars stay put */
  .sh-right {
    position: relative; z-index: 4; border-left: 0;
    padding: 14px max(14px, calc((100% - 560px) / 2)) 24px;
    visibility: hidden; opacity: 0; transform: translateY(16px);
    transition: opacity 0.2s, transform 0.3s var(--ease-out), visibility 0s linear 0.3s;
  }
  .share-root.is-preview .sh-right { visibility: visible; opacity: 1; transform: none; transition: opacity 0.2s, transform 0.3s var(--ease-out); }
  .sh-right-top { padding-right: 0; }
  .sh-ptabs { flex: 1; }
  .sh-ptab { flex: 1; min-height: 44px; }
  .sh-pv { justify-content: flex-start; flex: none; }
  .sh-page-wrap { max-width: 420px; }

  /* keyboard up: give the field the room, the action bar shrinks to its buttons */
  .share-root.is-kb .sh-hint-wrap { display: none; }
  .share-root.is-kb .sh-actions { padding-bottom: 8px; }
}
@media (min-width: 701px) and (max-width: 860px) {
  .sh-actions { flex-direction: row; align-items: center; }
  .sh-hint-wrap { justify-content: flex-start; text-align: left; }
  .sh-act-btns { width: auto; }
  .sh-submit { flex: none; padding: 0 22px; }
}
@media (max-width: 700px) {
  .sh-h { font-size: 34px; padding-right: 0; }
  .sh-hey { padding: 0 8px 0 5px; box-shadow: 3px 3px 0 #0e0e10; }
  .sh-steps { gap: 8px; }
  .sh-input-title { font-size: 20px; }
  .sh-label, .sh-count, .sh-label-note, .sh-sugg-btn, .sh-step-status, .sh-link-rm, .sh-hint { font-size: 11.5px; }
  .sh-step-sub { font-size: 12.5px; white-space: normal; line-height: 1.3; }
  .sh-step-title { font-size: 12px; letter-spacing: 0.08em; }
  .sh-cats { gap: 8px; }
  .sh-cat { min-height: 48px; padding: 8px; }
  .sh-cat-n { font-size: 11.5px; }
  /* "need help with" suggestions: one swipeable row instead of three rows of pills */
  .sh-sugg:not(.sh-prompts) {
    flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
    margin-inline: -12px; padding: 2px 12px 4px; scroll-padding-inline: 12px;
    mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 28px), transparent);
  }
  .sh-sugg:not(.sh-prompts)::-webkit-scrollbar { display: none; }
  .sh-sugg-btn { flex: none; white-space: nowrap; }
  .sh-yt-thumb { width: 96px; }
  .sh-socials { grid-template-columns: 1fr; }
  .sh-long { display: none; }    /* "PIN IT" fits next to PREVIEW at 360px */
  .sh-whatnext li { font-size: 14px; }
  .sh-page-pitch, .sh-page-paras { font-size: 14px; }
  .sh-preview-foot { font-size: 12px; }
}
@media (max-width: 480px) {
  .sh-seg { flex-wrap: wrap; }
  .sh-seg-btn { flex: 1 1 33%; border-left: 0 !important; border-top: 1.5px solid var(--line); }
  .sh-seg-btn:nth-child(-n+3) { border-top: 0; }
  .sh-seg-btn:nth-child(2), .sh-seg-btn:nth-child(3), .sh-seg-btn:nth-child(5) { border-left: 1.5px solid var(--line) !important; }
  .sh-step-status { padding: 2px 6px; }
  .sh-restore-txt { min-width: 0; flex-basis: calc(100% - 40px); }
  .sh-confirm-row { flex-direction: column; align-items: stretch; }
  .sh-confirm-row .btn { justify-content: center; height: 46px; }
  .sh-confirm-toss { align-self: center; }
  .sh-confirm-t { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .share-root.is-closing .sh-dialog, .sh-dialog, .sh-card.card, .sh-w3, .sh-swoop, .sh-page, .sh-restore, .sh-confirm-card { animation: none !important; }
  .sh-step-panel { transition: none; }
}

/* --ink-3 (#7a7a82) misses AA for small mono labels — deepen it in here */
:root .share-root { --ink-3: #5f5f67; }
/* hot pink as TEXT needs a deeper shade on cream to pass AA */
.share-root { --hot-ink: #c40f5a; }

.sh-kbd kbd { opacity: 1; }

/* touch: every tap target >= 44px */
@media (hover: none), (pointer: coarse) {
  .sh-x { width: 44px; height: 44px; }
  .sh-seg-btn { min-height: 44px; }
  .sh-sugg-btn { min-height: 44px; padding: 4px 14px; font-size: 12px; }
  .sh-sugg { gap: 8px; }
  .sh-next { min-height: 44px; padding: 8px 4px; }
  .sh-ptab { min-height: 44px; }
  .sh-ask-input { min-height: 40px; }
  .sh-chip { padding-block: 0; }
  .sh-chip button { width: 36px; height: 36px; }
  .sh-addlink { min-height: 44px; }
  .sh-link-rm, .sh-restore-no, .sh-confirm-toss { min-height: 44px; }
  .sh-restore-yes { height: 44px; }
  .sh-err-fix { min-height: 36px; padding: 4px 10px; }
  .sh-ghost { min-height: 44px; }
  .sh-input-pitch, .sh-input-desc, .sh-link-input, .sh-ask-input { font-size: 16px; }
  .sh-cat:not(.is-on):hover, .sh-sugg-btn:hover:not(:disabled), .sh-x:hover { transform: none; }
}

/* consistent press: translate + shadow collapse */
.sh-x:active { transform: rotate(90deg) scale(0.9); }
.sh-cat:active { transform: translate(2px, 2px) scale(1); box-shadow: none; }
.sh-pv-toggle:active, .sh-addlink:active, .sh-ghost:active { transform: translate(2px, 2px); box-shadow: none; }
.sh-submit.is-blocked:active { transform: none; }
