/* Organiser page pieces, built from app.css tokens only. */

/* ---- profile card (step 1, and the dashboard hero) ---- */
.profile { padding: .75rem; gap: 0; }
.pf-photo { position: relative; display: grid; place-items: center; aspect-ratio: 3 / 2; border-radius: var(--r-m); overflow: hidden; cursor: pointer;
  background: var(--bg-neutral); color: var(--interactive-primary); }
.pf-photo:hover { background: var(--bg-neutral-hover); }
.pf-photo:has(input:focus-visible) { box-shadow: var(--focus-ring); }
.pf-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pf-photo .ph { display: grid; justify-items: center; gap: .5rem; text-align: center; padding: 1rem; }
.pf-photo .ph .ico { width: 2.5rem; height: 2.5rem; stroke-width: 1.5; }
.pf-photo .ph b { font: var(--t-body-l-bold); color: var(--content-primary); }
.pf-photo .ph span { font: var(--t-body); color: var(--content-secondary); }
.pf-photo .pf-edit { position: absolute; top: .75rem; right: .75rem; display: inline-flex; align-items: center; gap: .375rem; height: 2rem; padding: 0 .75rem;
  border-radius: var(--r-full); background: rgba(11, 11, 12, .55); color: #fff; font: var(--t-body-bold); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pf-photo .pf-edit .ico { width: 1rem; height: 1rem; }
.pf-photo.busy::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .5); }
.pf-body { padding: 1rem .75rem .25rem; display: grid; gap: .25rem; }
.pf-name { width: 100%; height: 2.75rem; padding: 0 .25rem; margin: 0 -.25rem; border: 0; border-radius: var(--r-s); background: transparent;
  font: var(--t-sub); font-size: 1.625rem; letter-spacing: var(--track-tight); color: var(--content-primary); }
.pf-name::placeholder { color: var(--content-tertiary); }
.pf-name:hover { background: var(--bg-neutral); }
.pf-name:focus { outline: none; background: var(--bg-neutral); box-shadow: inset 0 -2px 0 var(--interactive-primary); }
.pf-body .t-body { padding: 0 .0625rem; }
.pf-stats { display: grid; grid-template-columns: 1fr 1fr; margin-top: .75rem; padding-top: .75rem; box-shadow: 0 -1px 0 var(--border-neutral); }
.pf-stat { display: grid; justify-items: center; gap: .125rem; padding: .5rem .5rem; border-radius: var(--r-m); text-align: center; color: var(--content-primary); }
.pf-stat + .pf-stat { position: relative; }
.pf-stat + .pf-stat::before { content: ""; position: absolute; left: 0; top: 20%; bottom: 20%; width: 1px; background: var(--border-neutral); }
.pf-stat:hover { background: var(--bg-neutral); }
.pf-stat .ico { width: 1.25rem; height: 1.25rem; color: var(--interactive-primary); margin-bottom: .25rem; }
.pf-stat b { font: var(--t-body-l-bold); }
.pf-stat b.ph { color: var(--content-link); }
.pf-stat span { font: var(--t-body); color: var(--content-secondary); }
.field.invalid .pf-stat b.ph, .pf-stats.invalid .ph { color: var(--sentiment-negative); }

/* ---- video shape options ---- */
.shape-ill { flex: none; width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 50%; background: var(--bg-neutral); }
.shape-ill i { display: block; border: 2px solid var(--interactive-primary); border-radius: 4px; }
.shape-ill i.land { width: 1.75rem; height: 1.125rem; }
.shape-ill i.port { width: 1.125rem; height: 1.75rem; }
.li:has(input:checked) { background: var(--bg-neutral); }

/* ---- style tiles ---- */
.styles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-between-cards); }
@media (min-width: 560px) { .styles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.st-tile { position: relative; display: grid; gap: .375rem; align-content: start; cursor: pointer; }
.st-tile input { position: absolute; opacity: 0; pointer-events: none; }
.st-tile .sw { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-m); overflow: hidden; background: var(--sw, var(--bg-neutral)); display: grid; place-items: center; transition: box-shadow var(--dur-fast) var(--ease); }
.st-tile .sw img { width: 100%; height: 100%; object-fit: cover; }
.st-tile .sw .ico { width: 1.75rem; height: 1.75rem; color: var(--interactive-primary); }
.st-tile .sw::after { content: ""; position: absolute; top: .5rem; right: .5rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--bg-elevated); box-shadow: inset 0 0 0 2px var(--border-input); opacity: 0; transition: opacity var(--dur-fast); }
.st-tile input:checked + .sw { box-shadow: 0 0 0 3px var(--interactive-primary); }
.st-tile input:checked + .sw::after { opacity: 1; background: var(--interactive-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 70% no-repeat; box-shadow: none; }
.st-tile input:focus-visible + .sw { box-shadow: var(--focus-ring); }
.st-tile b { font: var(--t-body-bold); }
.st-tile small { font: var(--t-body); color: var(--content-secondary); margin-top: -.25rem; }

/* ---- dashboard hero ---- */
.hero-top { display: flex; align-items: center; gap: 1rem; }
.hero-top .who { min-width: 0; display: grid; gap: .125rem; }
.hero-top .who h1 { font: var(--t-section); letter-spacing: var(--track-tight); overflow-wrap: anywhere; }
.hero-top .badge { justify-self: start; margin-bottom: .25rem; }
.hero .kv { padding: 1rem 0; border-radius: var(--r-m); background: var(--bg-neutral); }
.hero .kv > * + * { box-shadow: -1px 0 0 var(--border-neutral); }
.hero .kv b { font-variant-numeric: tabular-nums; }
.closes { font: var(--t-body); color: var(--content-secondary); }
.closes b { color: var(--content-primary); }

/* ---- empty state ---- */
.empty { display: grid; justify-items: center; gap: .5rem; padding: 1.5rem 1rem; text-align: center; }
.empty .av { margin-bottom: .25rem; }
.empty .t-body { max-width: 20rem; }

/* ---- thank-you sheet ---- */
.thanks { display: grid; justify-items: center; gap: var(--sp-display-bottom); padding: 1rem 0 .5rem; text-align: center; }
.thanks .av { --s: 4.5rem; }
.thanks .av .ico { stroke-width: 2.4; }
.thanks .t-display { font-size: 2.25rem; }

/* ---- invite card preview ---- */
.invite-prev { border-radius: var(--r-m); background: var(--bg-neutral); aspect-ratio: 1200 / 630; min-height: max-content; }
.invite-prev img { display: block; width: 100%; height: auto; border-radius: var(--r-m); }
#share-sheet .sh-body { grid-auto-rows: max-content; }   /* never squeeze the image under the message */
.msg-prev { padding: 1rem; border-radius: var(--r-m); background: var(--bg-neutral); font: var(--t-body); white-space: pre-wrap; overflow-wrap: anywhere; }
/* setup: the invite as a message in a chat */
.chat { margin: 0; padding: var(--pad-s); border-radius: var(--r-m); background: var(--bg-neutral); }
.chat-msg { padding: .375rem; border-radius: 1.25rem 1.25rem .375rem 1.25rem; background: var(--bg-elevated); box-shadow: 0 1px 2px rgba(0, 17, 38, .08); }
.chat-img { aspect-ratio: 1200 / 630; min-height: max-content; border-radius: .9rem; background: var(--bg-neutral); }
.chat-img canvas { display: block; width: 100%; height: auto; border-radius: .9rem; }
.chat-text { padding: .625rem; font: var(--t-body); white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-text .lk { color: var(--content-link); }
textarea.grow { field-sizing: content; min-height: 8.5rem; max-height: 18rem; }

/* ---- rating ---- */
.stars { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; }
.stars label { position: relative; }
.stars input { position: absolute; opacity: 0; }
.stars span { display: grid; place-items: center; height: 3rem; border-radius: var(--r-m); background: var(--bg-neutral); font: var(--t-body-l-bold); cursor: pointer; }
.stars input:checked + span { background: var(--interactive-primary); color: #fff; }
.stars input:focus-visible + span { box-shadow: var(--focus-ring); }
.scale { display: flex; justify-content: space-between; font: var(--t-body); color: var(--content-secondary); }

/* bullet list inside sheets */
.ticks { display: grid; gap: .75rem; }
.ticks li { display: flex; gap: .75rem; font: var(--t-body-l); }
.ticks .ico { width: 1.25rem; height: 1.25rem; margin-top: .125rem; color: var(--interactive-primary); }
.lock-note, .cast-tip { display: flex; gap: .5rem; align-items: center; }
.lock-note { padding: .75rem 1.5rem 0; }
.close-early { margin-top: var(--sp-between-cards); }
.close-early b { color: var(--content-primary); }
.card > .list { margin: 0 calc(-1 * var(--pad-s)); }
.card > .list .li { padding-left: var(--pad-s); padding-right: var(--pad-s); }
/* inside a sheet, cards flatten into sections (no white-on-white boxes) */
.sheet .card:not(.profile) { padding: 0; border-radius: 0; background: none; }
.sheet .card + .card { margin-top: var(--sp-component); padding-top: var(--sp-between-sections); box-shadow: 0 -1px 0 var(--border-neutral); }
.sheet .card.profile { box-shadow: inset 0 0 0 1px var(--border-neutral); }

/* ---- step 1: occasion + date rows (read as tappable list items, not stats) ---- */
.pf-rows { display: grid; margin: .75rem calc(-1 * .75rem) 0; padding-top: .25rem; box-shadow: 0 -1px 0 var(--border-neutral); }
.pf-rows .field { gap: 0; }
.pf-rows .msg-err:not(:empty) { padding: 0 1.5rem .5rem; }
.pf-row { width: 100%; text-align: left; padding-left: 1.5rem; padding-right: 1.25rem; }
.pf-row .txt { display: grid; gap: .125rem; }
.pf-row .dsc { order: -1; }
.pf-row .ttl { font: var(--t-body-l-bold); }
.pf-row .ttl.ph { color: var(--content-link); }
.pf-row .av { background: var(--interactive-secondary); color: var(--interactive-primary); }
.field.invalid .pf-row .ttl.ph { color: var(--sentiment-negative); }
/* invite step: how it works, in three small cards (they scroll sideways on phones) */
.points { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(10.75rem, 1fr); gap: var(--sp-between-chips); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); scroll-padding: 0 var(--gutter); overscroll-behavior-x: contain; }
.points::-webkit-scrollbar { display: none; }
.points > div { display: grid; align-content: start; gap: .125rem; padding: .8125rem; border-radius: var(--r-m); background: var(--interactive-secondary); scroll-snap-align: start; }
.points .ico { width: 1.25rem; height: 1.25rem; margin-bottom: .375rem; color: var(--interactive-primary); }
.points b { font: var(--t-body-bold); }
.points span { font: var(--t-body); color: var(--content-secondary); }
.sheet .points { margin: 0 calc(-1 * var(--pad-s)); padding: 0 var(--pad-s); scroll-padding: 0 var(--pad-s); }
@media (min-width: 768px) { .points, .sheet .points { margin: 0; padding: 0; grid-auto-columns: minmax(0, 1fr); } }
.li .when { flex: none; color: var(--content-secondary); text-align: right; }

/* ---- start flow: what happens next, and the price ---- */
.list.next { counter-reset: none; }
.list.next .li { cursor: default; }
.pay-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.pay-price { display: flex; align-items: baseline; gap: .5rem; font: var(--t-screen, var(--t-body-title)); }
.pay-price s { font: var(--t-body-l); color: var(--content-secondary); }
.cur-seg { width: 12rem; }
.cur-seg button { height: 2.5rem; border: 0; border-radius: var(--r-full); background: none; font: var(--t-body-bold); color: var(--content-secondary); cursor: pointer; }
.cur-seg button[aria-pressed="true"] { background: var(--bg-elevated); color: var(--content-primary); box-shadow: 0 1px 3px rgba(11, 11, 12, .12); }
.dock #pay { display: grid; gap: .5rem; }
.dock #pay-status { margin-top: .5rem; }
/* the cookie question sits above the dock, never over Continue */
body[data-flow="start"] #keeps-consent { bottom: calc(6.5rem + env(safe-area-inset-bottom)); }
/* "Your own theme": a row whose box opens right under it */
.stack-m { display: grid; gap: var(--sp-between-cards); }
.own { border-radius: var(--r-m); border: 1px solid var(--border-input); overflow: hidden; margin: 0; padding: 0; }
.own .li, .own .li:hover, .own .li:has(input:checked) { background: none; border-radius: 0; margin: 0; }
.own .li input { position: absolute; opacity: 0; pointer-events: none; }
.own:has(input:checked) { border-color: var(--interactive-primary); box-shadow: 0 0 0 1px var(--interactive-primary); }
.own:has(input:focus-visible) { box-shadow: var(--focus-ring); }
.own-box { padding: .25rem 1rem 1rem; }
.card-link [data-all-styles] { padding: .25rem 0; border: 0; background: none; font: var(--t-body-bold); color: var(--content-link); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.own-note { min-height: 5.5rem; }
/* the "see all" tile: a peek at the styles behind it */
button.st-tile { padding: 0; border: 0; background: none; text-align: left; font: inherit; color: inherit; }
.st-tile.more .sw { grid-template-columns: 1fr 1fr; gap: 3px; place-items: stretch; background: var(--bg-elevated); }
.st-tile.more .sw img { min-height: 0; }
.st-tile.more .sw em { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 17, 38, .55); color: #fff; font: var(--t-screen); font-style: normal; }
.st-tile.more .sw::after { content: none; }
.st-tile.more b { color: var(--content-link); text-decoration: underline; text-underline-offset: .2em; }
.st-tile.more:hover em { background: rgba(0, 17, 38, .68); }
.st-tile.more:focus-visible { outline: none; } .st-tile.more:focus-visible .sw { box-shadow: var(--focus-ring); }
/* what's set so far */
.so-far .edit { flex: none; font: var(--t-body-bold); color: var(--content-link); text-decoration: underline; text-underline-offset: .2em; }
.so-far .dsc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.steps li button { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.steps li button:hover { color: var(--content-primary); text-decoration: underline; }
