/* Share: the card for the feed, the places, and the private or public choice */
.sh { display: grid; gap: 22px; padding: 18px 20px 40px; }
.sh-head { display: grid; gap: 6px; }
.sh-title { font: var(--display, 400) 40px/1.04 var(--serif); letter-spacing: var(--title-track, -0.01em); text-wrap: balance; }
.sh-sub { font-size: 16px; color: var(--soft); max-width: 34em; }
.sh-h2 { font: var(--display, 400) 24px/1.15 var(--serif); letter-spacing: var(--title-track, normal); }
.sh-h3 { font: var(--display, 400) 22px/1.15 var(--serif); letter-spacing: var(--title-track, normal); }
.sh-end { height: 20px; }

/* the stage the card sits on */
.sh-stage { display: grid; justify-items: center; gap: 16px; padding: 14px 14px 22px; border-radius: calc(26px * var(--round, 1)); background: var(--wash); }
.sh-kinds { display: inline-flex; gap: 2px; padding: 3px; border-radius: calc(14px * var(--round, 1)); background: var(--paper); border: 1px solid var(--line); }
.sh-kind { display: grid; gap: 0; padding: 6px 14px; border: 0; border-radius: calc(11px * var(--round, 1)); background: none; cursor: pointer; text-align: left; }
.sh-kind span { font-size: 14px; font-weight: 500; }
.sh-kind small { font: 10.5px/1.3 var(--mono); color: var(--muted); }
.sh-kind.is-on { background: var(--deep); color: var(--paper); }
.sh-kind.is-on small { color: #b9cbc1; }
.sh-frame { width: 236px; }
.sh-frame-square { width: 100%; max-width: 318px; }

/* the card: drawn in container units so it is the same picture at every size */
.sh-card { margin: 0; container-type: inline-size; border-radius: calc(20px * var(--round, 1)); background: var(--deep); color: var(--paper); box-shadow: 0 24px 50px -18px rgb(27 26 36 / 0.45), 0 2px 6px rgb(27 26 36 / 0.12); overflow: hidden; }
.sh-card-story { aspect-ratio: 9 / 16; }
.sh-card-square { aspect-ratio: 1 / 1; }
.sh-card-in { height: 100%; display: flex; flex-direction: column; padding: 8cqw 7.5cqw 7cqw; background: radial-gradient(120% 70% at 85% 0%, rgb(244 239 231 / 0.08), transparent 60%); }
.sh-card-square .sh-card-in { padding: 6.5cqw 7cqw 6cqw; }
.sh-card-top { display: flex; align-items: center; gap: 2.6cqw; }
.sh-card-top .gami { width: 10cqw; height: 10cqw; }
.sh-card-square .sh-card-top .gami { width: 7.5cqw; height: 7.5cqw; }
.sh-card-brand { font: var(--display, 400) 6.4cqw/1 var(--serif); letter-spacing: var(--title-track, normal); white-space: nowrap; }
.sh-card-min { margin-left: auto; padding: 1.2cqw 2.8cqw; border-radius: var(--pill, 999px); border: 1px solid rgb(244 239 231 / 0.25); font: 400 3.4cqw/1 var(--mono); color: #cfdcd4; white-space: nowrap; }
.sh-card-square .sh-card-brand { font-size: 5cqw; }
.sh-card-square .sh-card-min { font-size: 2.8cqw; }
.sh-card-words { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 3cqw; padding: 4cqw 0; }
.sh-card-square .sh-card-words { gap: 1.8cqw; padding: 2.5cqw 0; }
.sh-card-hook { font: italic 400 7cqw/1.15 var(--serif); color: #b9cbc1; }
.sh-card-title { font: var(--display, 400) 13.5cqw/0.98 var(--serif); letter-spacing: var(--title-track, -0.01em); text-wrap: balance; }
.sh-card-kind { font: 400 3.4cqw/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: #b9cbc1; }
.sh-card-square .sh-card-hook { font-size: 5cqw; }
.sh-card-square .sh-card-title { font-size: 9cqw; }
.sh-card-square .sh-card-kind { font-size: 2.6cqw; }
.sh-card-plan { display: grid; gap: 1.6cqw; }
.sh-card-plan .curve { height: 27cqw; }
.sh-card-square .sh-card-plan .curve { height: 15cqw; }
.sh-card-plan .curve-labels { margin-top: 0; }
.sh-card .curve-area { fill: rgb(244 239 231 / 0.08); }
.sh-card .curve-line { stroke: var(--paper); stroke-width: 1.6; }
.sh-card .curve-tick { stroke: rgb(244 239 231 / 0.14); }
.sh-card .curve-dot { --ring: var(--deep); }
.sh-card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 3cqw; margin-top: 6cqw; padding-top: 4.5cqw; border-top: 1px solid rgb(244 239 231 / 0.18); }
.sh-card-square .sh-card-foot { margin-top: 3.6cqw; padding-top: 3cqw; }
.sh-card-by { display: flex; align-items: center; gap: 2.4cqw; font: 400 5cqw/1.1 var(--serif); }
.sh-card-by small, .sh-card-url small { display: block; font: 400 2.8cqw/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: #bccbc3; }
.sh-card-av svg { width: 60%; height: 60%; }
.sh-card-av { display: grid; place-items: center; width: 9cqw; height: 9cqw; border-radius: 50%; background: var(--paper); color: var(--deep); font: 400 5cqw/1 var(--serif); }
.sh-card-url { text-align: right; font: 400 3.2cqw/1.3 var(--mono); color: var(--paper); white-space: nowrap; flex: none; }
.sh-card-square .sh-card-by { font-size: 3.8cqw; }
.sh-card-square .sh-card-av { width: 6.5cqw; height: 6.5cqw; font-size: 3.6cqw; }
.sh-card-square .sh-card-by small, .sh-card-square .sh-card-url small { font-size: 2.1cqw; }
.sh-card-square .sh-card-url { font-size: 2.5cqw; }

/* sending it: the link, and the socials sheet */
.sh-send { display: grid; gap: 14px; }
.sh-send > .btn { justify-self: start; min-height: 48px; }
.sh-send > .why { margin: -6px 6px 0; }
.sx { display: grid; gap: 14px; }
.sx-title { font: var(--display, 400) 28px/1.1 var(--serif); letter-spacing: var(--title-track, normal); padding-right: 48px; }
.sx-sub { font-size: 15px; color: var(--soft); margin-top: -6px !important; }
.sx-row { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; border: 1px solid var(--line); border-radius: calc(18px * var(--round, 1)); background: var(--sheet); }
.sx-row > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.sx-row b { font-weight: 600; font-size: 15px; }
.sx-row small { font-size: 13px; color: var(--muted); }
.sx-row .btn { flex: none; min-height: 44px; }
.sx-cap { font-size: 14px; color: var(--soft); }
.sx-done { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--free-soft, var(--wash)); color: var(--free-ink, var(--deep)); }
.sx-done svg { width: 14px; height: 14px; }
.sx-places { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sx-place { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 8px 10px; border: 1px solid var(--line); border-radius: calc(16px * var(--round, 1)); background: var(--sheet); color: var(--ink); font: 500 14.5px var(--sans); cursor: pointer; }
.sx-place:hover { border-color: var(--line-2); background: var(--panel); }
.sx-place > svg { width: 22px; height: 22px; flex: none; }
.sx-place .sx-done { position: absolute; right: -6px; top: -6px; width: 22px; height: 22px; }
.sx-fine { font-size: 13px; color: var(--muted); }
.sh-link { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border: 1px solid var(--line); border-radius: var(--pill, 999px); background: var(--sheet); }
.sh-link-icon { display: grid; color: var(--muted); }
.sh-link-icon svg { width: 20px; height: 20px; }
.sh-link-url { flex: 1; min-width: 0; font: 13.5px/1.2 var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-link .btn { min-height: 44px; padding: 9px 18px; font-size: 15px; }
.sh-link-note { font-size: 13px; color: var(--muted); margin-top: -6px; padding: 0 6px; }
.sh-trail { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sh-trail .label { margin-right: 2px; }
.sh-trail-item { padding: 2px 10px; border-radius: var(--pill, 999px); background: var(--wash); font-size: 12.5px; color: var(--deep); }

/* the choice */
.sh-choice { display: grid; gap: 12px; }
.sh-options { display: grid; gap: 10px; }
.sh-option { display: grid; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: calc(22px * var(--round, 1)); background: var(--sheet); }
.sh-option p { font-size: 14.5px; color: var(--soft); }
.sh-option .btn { justify-self: start; margin-top: 4px; }
.sh-option-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--wash); color: var(--deep); }
.sh-option-icon svg { width: 19px; height: 19px; }

/* publishing: the part the script page and the share screen both draw */
.pub { display: grid; gap: 12px; padding: 18px; border-radius: calc(22px * var(--round, 1)); border: 1px solid var(--line); background: var(--sheet); color: var(--ink); min-width: 0; text-align: left; container: pub / inline-size; flex: 1 1 100%; }
/* the part keeps its own colours wherever a host draws it, even inside a dark card */
.app .pub .label { color: var(--muted); }
.app .pub .btn-primary { background: var(--deep); color: var(--paper); }
.pub-head { display: flex; align-items: center; gap: 12px; }
.pub-head > div { display: grid; gap: 2px; min-width: 0; }
.pub-mark { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--go-soft); color: var(--go-ink); }
.pub-mark svg { width: 21px; height: 21px; }
.pub-mark-ai { background: var(--ai-soft); color: var(--ai-ink); }
.pub-mark-free { background: var(--free); color: #fff; }
.pub-mark-held { background: var(--wash); color: var(--soft); }
.pub-sub { font-size: 14px; color: var(--muted); }
.pub-text { font-size: 14.5px; line-height: 1.5; color: var(--soft); }
.pub-small { font-size: 12.5px; color: var(--muted); }
.pub-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; font-size: 14.5px; color: var(--soft); }
.pub-list li { position: relative; padding-left: 20px; }
.pub-list li::before { content: ""; position: absolute; left: 3px; top: 0.55em; width: 8px; height: 8px; border-radius: 50%; background: var(--free); }
.pub-go { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 2px; }

/* who hears what they told us */
.pub-wish { display: grid; gap: 10px; }
.pub-wish-lead { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--soft); }
.pub-wish-lead svg { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--free-ink); }
.pub-wish-lead b { font-weight: 500; color: var(--ink); }
.pub-tiles { display: grid; gap: 8px; }
.pub-tile { display: grid; gap: 6px; padding: 11px 13px; border: 1px solid var(--line); border-radius: calc(16px * var(--round, 1)); background: var(--paper); text-align: left; cursor: pointer; font: inherit; color: inherit; }
.pub-tile-head { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.pub-tile-head b { font-weight: 500; }
.pub-radio { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--sheet); }
.pub-tile-line { font: italic 400 17px/1.3 var(--serif); color: var(--soft); }
.pub-tile.is-on { border-color: var(--free); background: var(--free-soft); box-shadow: inset 0 0 0 1px var(--free); }
.pub-tile.is-on .pub-radio { border: 5px solid var(--free-ink); background: var(--paper); }
.pub-tile.is-on .pub-tile-line { color: var(--free-ink); }

/* why we check, said once, plainly */
.pub-why { display: flex; gap: 9px; align-items: flex-start; padding: 10px 12px; border-radius: calc(14px * var(--round, 1)); background: var(--ai-soft); color: var(--ai-ink); font-size: 13.5px; line-height: 1.45; }
.pub-why svg { flex: none; width: 18px; height: 18px; margin-top: 1px; }

/* the check reading: the lines pass under a reading mark */
.pub-checking { border-color: var(--ai); box-shadow: inset 0 0 0 1px var(--ai-soft); }
.pub-reel { position: relative; height: 90px; overflow: hidden; border-radius: calc(14px * var(--round, 1)); background: var(--paper); -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 28%, #000 72%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 28%, #000 72%, transparent 100%); }
.pub-reel::after { content: ""; position: absolute; left: 8px; right: 8px; top: 30px; height: 30px; border-radius: calc(10px * var(--round, 1)); background: var(--ai-soft); z-index: 0; }
.pub-reel-in { position: relative; z-index: 1; }
.pub-reel-line { display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: center; height: 30px; padding: 0 14px; font: 400 16px/1 var(--serif); color: var(--muted); }
.pub-reel-n { font: 10.5px/1 var(--mono); color: var(--muted); }
.pub-reel-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pub-reel-line.is-read { color: var(--soft); }
.pub-reel-line.is-now { color: var(--ai-ink); }
.pub-reel-line.is-now .pub-reel-n { color: var(--ai-ink); }
.pub-meter { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; font: 12px/1 var(--mono); color: var(--muted); }
.pub-meter b { font-weight: 500; color: var(--ai-ink); }
.pub-bar { height: 4px; border-radius: 2px; background: var(--ai-soft); overflow: hidden; }
.pub-bar i { display: block; height: 100%; background: var(--ai); }
.pub-rules { display: flex; flex-wrap: wrap; gap: 6px; }
.pub-rules span { padding: 2px 9px; border-radius: var(--pill, 999px); border: 1px solid var(--line); font: 11px/1.5 var(--mono); color: var(--soft); }

/* checked and live */
.pub-live { background: var(--free-soft); border-color: var(--free); }
.pub-live .pub-text { color: var(--free-ink); }
.pub-jev { display: inline-flex; align-items: center; gap: 5px; font: 400 12px/1.2 var(--mono); color: var(--free-ink); }
.pub-jev svg { width: 15px; height: 15px; flex: none; }
.pub-live .btn-quiet { justify-self: start; padding-inline: 0; color: var(--free-ink); }

/* held back: private, calm, the rule and the way forward */
.pub-held { background: var(--paper); }
.pub-rule { display: grid; gap: 3px; padding: 10px 12px; border-left: 3px solid var(--go); border-radius: 4px calc(12px * var(--round, 1)) calc(12px * var(--round, 1)) 4px; background: var(--go-soft); }
.app .pub-rule .label { color: var(--go-ink); }
.pub-rule p { font-size: 14.5px; line-height: 1.45; color: var(--ink); }
.pub-quote { margin: 0; display: grid; gap: 3px; padding: 4px 0 4px 12px; border-left: 2px solid var(--line); }
.pub-quote span:last-child { font: italic 400 18px/1.35 var(--serif); color: var(--soft); }
.pub-name { display: grid; gap: 8px; width: 100%; }
.pub-name-row { display: flex; flex-wrap: wrap; gap: 8px; }

@container pub (min-width: 460px) {
  .pub-tiles { grid-template-columns: 1fr 1fr; }
}

/* what a friend gets from the link */
.sh-friend { display: grid; gap: 6px; padding: 16px 18px; border: 1px solid var(--line); border-radius: calc(18px * var(--round, 1)); background: var(--sheet); }
.sh-friend p { font: 400 20px/1.25 var(--serif); color: var(--ink); text-wrap: pretty; }
.sh-friend-note { font-size: 14px; line-height: 1.45; color: var(--muted); }

@container app (min-width: 700px) {
  .sh-desk { grid-template-columns: 500px minmax(0, 1fr); gap: 56px; align-items: start; padding-top: 32px; padding-bottom: 80px; }
  .sh-left { position: sticky; top: 86px; }
  .sh-right { display: grid; gap: 24px; min-width: 0; }
  .sh-stage { padding: 18px 24px 30px; min-height: 640px; align-content: start; }
  .sh-frame { width: 300px; }
  .sh-frame-square { width: 100%; max-width: 420px; margin-top: 56px; }
  .sh-title { font-size: 52px; }
  .sh-places { grid-template-columns: repeat(4, 84px); justify-content: start; gap: 14px; }
}
.pub-changes { display: grid; gap: 10px; margin: 4px 0 2px; padding: 12px 14px; border-radius: calc(14px * var(--round, 1)); background: var(--ai-soft); color: var(--ai-ink); }
.pub-changes .pub-text { margin: 0; color: inherit; }

/* the check stopped it: a person to ask, quietly under the way on */
.pub-ask { padding: 0; border: 0; background: none; color: var(--soft); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 32px; }
.pub-ask:hover { color: var(--ink); }
.pub-then svg { width: 15px; height: 15px; flex: none; color: var(--free-ink, var(--deep)); }
@container app (max-width: 560px) {
  .sx-row { flex-wrap: wrap; }
  .sx-row > div { flex: 1 1 calc(100% - 40px); }
  .sx-row .btn { flex: 1 1 100%; }
  .sx-place { flex-direction: column; gap: 4px; min-height: 64px; font-size: 13.5px; white-space: nowrap; }
}
