/* Phone-sized app shell for the SpotOn mock. */
.phone { --bg:#fbf3ec; --ink:#5c1142; --fg:#7c3e64; --muted:#8c5575; --orange:#f4782d; --line:rgba(244,120,45,.28); --tint:rgba(244,120,45,.11);
  position:relative; width:390px; max-width:100%; height:min(760px, calc(100vh - 120px)); min-height:600px; margin:0 auto; display:flex; flex-direction:column; overflow:hidden;
  background:var(--bg); color:var(--fg); border:10px solid #fff; outline:1px solid var(--line); border-radius:38px;
  box-shadow:0 24px 60px -24px rgba(92,17,66,.28); font-size:15px; line-height:1.5; }
.phone *, .phone *::before, .phone *::after { box-sizing:border-box; }
.phone button { font:inherit; cursor:pointer; }
.phone button:focus-visible, .phone input:focus-visible { outline:2px solid var(--orange); outline-offset:2px; }
.phone b, .phone strong { color:var(--ink); }

.app-head { flex:none; display:flex; align-items:center; justify-content:space-between; gap:10px; padding:16px 18px 12px;
  background:#fff; border-bottom:1px solid var(--line); }
.app-head .brand { display:flex; align-items:center; gap:8px; color:var(--ink); font-weight:700; font-size:1.02rem; letter-spacing:-0.01em; }
.app-head .mark { width:22px; height:22px; border-radius:7px; background:var(--orange); position:relative; flex:none; }
.app-head .mark::after { content:""; position:absolute; inset:6px; border-radius:50%; background:#fff; }
.app-head .ctx { font-size:0.78rem; color:var(--muted); text-align:right; line-height:1.3; }
.app-head .back { border:0; background:none; color:var(--ink); padding:4px 6px 4px 0; font-size:0.95rem; }

.app-view { flex:1; min-height:0; display:flex; flex-direction:column; }
.app-view[hidden], .app-nav[hidden], .phone [hidden] { display:none !important; }
.scroll { flex:1; min-height:0; overflow-y:auto; padding:16px; }

.app-nav { flex:none; display:flex; background:#fff; border-top:1px solid var(--line); padding:6px 8px 10px; }
.app-nav button { flex:1; border:0; background:none; color:var(--muted); display:flex; flex-direction:column; align-items:center; gap:2px;
  font-size:0.74rem; padding:6px 4px; border-radius:10px; position:relative; }
.app-nav button svg { width:22px; height:22px; stroke:currentColor; fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.app-nav button[aria-current="page"] { color:var(--ink); font-weight:600; }
.app-nav button[aria-current="page"] svg { stroke:var(--orange); }
.app-nav .badge { position:absolute; top:2px; left:calc(50% + 6px); min-width:17px; height:17px; padding:0 5px; border-radius:9px;
  background:var(--orange); color:#3a0a2a; font-size:0.68rem; font-weight:700; line-height:17px; text-align:center; }
.app-nav .badge:empty { display:none; }

/* Chat */
.log { flex:1; min-height:0; overflow-y:auto; padding:16px 14px 8px; display:flex; flex-direction:column; gap:8px; }
.log > * { flex-shrink:0; }
.bub { max-width:84%; padding:9px 13px; border-radius:18px; animation:pop .3s ease both; white-space:pre-line; }
.bub.bot { align-self:flex-start; background:#fff; border:1px solid var(--line); border-bottom-left-radius:6px; }
.bub.me { align-self:flex-end; background:var(--ink); color:#fff; border-bottom-right-radius:6px; }
.bub[lang="ja"] { line-height:1.6; }
.typing { align-self:flex-start; display:flex; gap:4px; padding:12px 14px; background:#fff; border:1px solid var(--line); border-radius:18px; }
.typing i { width:6px; height:6px; border-radius:50%; background:var(--orange); animation:blink 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay:.15s; } .typing i:nth-child(3) { animation-delay:.3s; }
.qchips { flex:none; display:flex; gap:6px; overflow-x:auto; padding:8px 14px 2px; scrollbar-width:none; }
.qchips::-webkit-scrollbar { display:none; }
.qchips:empty { display:none; }
/* A single row fades at the edge to show it scrolls; multi-select wraps so Done stays in view. */
.qchips:not(.wrap) { -webkit-mask-image:linear-gradient(90deg, #000 85%, transparent); mask-image:linear-gradient(90deg, #000 85%, transparent); padding-right:28px; }
.qchips.wrap { flex-wrap:wrap; overflow:visible; }
.qchip { flex:none; border:1px solid var(--line); background:#fff; color:var(--ink); border-radius:999px; padding:7px 13px; font-size:0.86rem; }
.qchip:hover { border-color:var(--orange); }
.qchip[aria-pressed="true"] { background:var(--orange); border-color:var(--orange); color:#3a0a2a; font-weight:600; }
.qchip.done { background:var(--ink); border-color:var(--ink); color:#fff; }
.composer { flex:none; display:flex; gap:8px; padding:10px 12px 12px; }
.composer input { flex:1; min-width:0; font:inherit; font-size:16px; color:var(--ink); background:#fff; border:1px solid var(--line);
  border-radius:999px; padding:9px 15px; }
.composer input::placeholder { color:var(--muted); }
.composer button { border:0; border-radius:999px; background:var(--ink); color:#fff; width:42px; flex:none; display:grid; place-items:center; }
.composer button svg { width:18px; height:18px; stroke:#fff; fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.composer.busy button { opacity:.5; }

/* Cards and buttons */
.card { align-self:stretch; background:#fff; border:1px solid var(--line); border-radius:16px; padding:14px; animation:pop .3s ease both; }
.card h4 { margin:0 0 8px; font-size:0.72rem; letter-spacing:0.12em; text-transform:uppercase; color:var(--ink); }
.btn { border:1px solid var(--ink); background:var(--ink); color:#fff; border-radius:999px; padding:10px 18px; font-size:0.92rem; font-weight:600; }
.btn:hover { background:#4a0d35; }
.btn.ghost { background:#fff; color:var(--ink); border-color:var(--line); font-weight:500; }
.btn.ghost:hover { border-color:var(--orange); background:#fff; }
.btn.wide { width:100%; }
.btn[disabled] { opacity:.45; cursor:default; }
.eyebrow { display:block; font-size:0.7rem; font-weight:600; letter-spacing:0.12em; text-transform:uppercase; color:var(--muted); }
.big { font-size:2.3rem; font-weight:700; line-height:1.1; color:var(--orange); letter-spacing:-0.02em; }
.muted { color:var(--muted); }
.small { font-size:0.82rem; }
.tag { display:inline-block; font-size:0.68rem; font-weight:600; letter-spacing:0.06em; text-transform:uppercase; color:var(--ink);
  border:1px solid var(--orange); border-radius:999px; padding:1px 7px; vertical-align:1px; }
.tag.soft { border-color:var(--line); color:var(--muted); }

.plan { list-style:none; margin:0; padding:0; counter-reset:p; }
.plan li { counter-increment:p; position:relative; padding:8px 0 8px 32px; border-top:1px solid var(--line); }
.plan li:first-child { border-top:0; }
.plan li::before { content:counter(p); position:absolute; left:0; top:10px; width:22px; height:22px; border-radius:50%;
  background:var(--orange); color:#3a0a2a; font-size:0.76rem; font-weight:700; display:grid; place-items:center; }
.plan .meta { display:block; font-size:0.8rem; color:var(--muted); }

/* Lists and footers */
.sect { margin:22px 0 10px; display:flex; justify-content:space-between; align-items:baseline; }
.sect:first-child { margin-top:0; }
.sect h4 { margin:0; font-size:0.72rem; letter-spacing:0.12em; text-transform:uppercase; color:var(--ink); }
.clist { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; }
.passfoot { flex:none; display:flex; gap:8px; padding:10px 16px 12px; background:#fff; border-top:1px solid var(--line); }
.passfoot .btn { flex:1; }

/* Sheets, toasts, overlays */
.scrim { position:absolute; inset:0; background:rgba(92,17,66,.28); display:flex; align-items:flex-end; z-index:5; animation:fade .2s ease both; }
.scrim[hidden] { display:none; }
.sheet { width:100%; background:#fff; border-radius:22px 22px 0 0; padding:18px 18px 22px; animation:up .3s ease both; max-height:88%; overflow-y:auto; }
.sheet h3 { margin:0 0 4px; font-size:1.1rem; color:var(--ink); letter-spacing:0; text-transform:none; }
.sheet .row { display:flex; justify-content:space-between; padding:10px 0; border-bottom:1px solid var(--line); }
.sheet .actions { display:flex; flex-direction:column; gap:8px; margin-top:16px; }
.toast { position:absolute; left:16px; right:16px; bottom:76px; background:var(--ink); color:#fff; border-radius:14px; padding:10px 14px;
  font-size:0.88rem; z-index:6; animation:up .25s ease both; }

/* SpotOn */
.center { text-align:center; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.qchip.upload { cursor:pointer; position:relative; }
.qchip.upload:focus-within { outline:2px solid var(--orange); outline-offset:2px; }

/* Photos: an uploaded image or an illustration */
.photo { flex:none; overflow:hidden; background:#fde3d2; border-radius:14px; }
.photo svg, .photo img { display:block; width:100%; height:100%; object-fit:cover; }
.photo.sm { width:46px; height:46px; border-radius:50%; }
.photo.round { width:64px; height:64px; border-radius:50%; box-shadow:0 0 0 3px #fff; }
.photo.faded { opacity:.6; }

/* Profile card */
.prof { padding:0; overflow:hidden; }
.prof-media { display:grid; grid-template-columns:42% 1fr; height:132px; }
.prof-media .photo { border-radius:0; height:132px; }
.prof-media .work { overflow:hidden; border-left:1px solid var(--line); }
.prof-media .work svg { display:block; width:100%; height:100%; }
.prof > :not(.prof-media) { margin-left:14px; margin-right:14px; }
.prof-hd { display:flex; align-items:flex-start; gap:10px; margin-top:12px; }
.prof-hd > div:first-child { flex:1; display:flex; flex-direction:column; line-height:1.35; }
.prof .owner { color:var(--ink); }
.prof .story { margin-top:10px; margin-bottom:0; padding:2px 0 2px 12px; border-left:3px solid var(--orange); font-size:0.88rem; line-height:1.55; color:var(--fg); }
.prof > h4 { margin:14px 14px 4px; }
.prof p { margin-top:0; margin-bottom:0; }
.prof > :last-child { margin-bottom:14px; }
.fit { display:flex; flex-direction:column; align-items:flex-end; line-height:1; }
.fit .big { font-size:1.7rem; }
.spot { touch-action:pan-y; user-select:none; cursor:grab; }
.spot-row h4 { margin:14px 0 6px; }
.pills { display:flex; flex-wrap:wrap; gap:6px; }
.pill { font-size:0.82rem; color:var(--ink); background:var(--tint); border-radius:999px; padding:3px 10px; }
.pills.good { margin-top:12px; }
.pills.good .pill { background:#fff; border:1px solid var(--orange); }
.spot-act { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:14px; }
.spot-act + .center { margin:8px 0 0; }

/* Requests and matches */
.note { background:#fff; border:1px solid var(--orange); border-radius:16px; padding:12px 14px; margin-bottom:12px; }
.note p { margin:4px 0 0; color:var(--ink); }
.mrow { width:100%; display:flex; align-items:center; gap:12px; text-align:left; background:#fff; border:1px solid var(--line); border-radius:14px; padding:10px 12px; color:var(--fg); }
.mrow > div:nth-child(2) { flex:1; display:flex; flex-direction:column; line-height:1.35; gap:1px; }
.mrow:not(.static):hover { border-color:var(--orange); }
.mrow.req { align-items:flex-start; }
.idea { width:100%; display:flex; gap:10px; align-items:flex-start; justify-content:space-between; text-align:left; background:#fff;
  border:1.5px solid var(--line); border-radius:14px; padding:12px; color:var(--fg); }
.idea > div:first-child { display:flex; flex-direction:column; line-height:1.4; gap:2px; }
.idea .for { font-size:0.68rem; font-weight:600; letter-spacing:0.08em; text-transform:uppercase; color:var(--muted); }
.idea[aria-pressed="true"] { border-color:var(--orange); background:#fffaf5; }
.idea .heart { flex:none; font-size:0.74rem; font-weight:600; color:var(--ink); border:1px solid var(--line); border-radius:999px; padding:3px 9px; white-space:nowrap; }
.idea[aria-pressed="true"] .heart { background:var(--orange); border-color:var(--orange); color:#3a0a2a; }
.idea.both { border-color:var(--orange); box-shadow:inset 4px 0 0 var(--orange); }
.idea .who { display:flex; flex-direction:column; gap:4px; align-items:flex-end; flex:none; }
.fee { margin:12px 0 0; }
.pair { display:flex; justify-content:center; margin:6px 0 12px; }
.pair .photo + .photo { margin-left:-12px; }
.pair.sm { margin:0 0 8px; }
.pair.sm .photo { width:52px; height:52px; }
.scrim.center { align-items:center; justify-content:center; padding:20px; }
.matchbox { width:100%; background:#fff; border-radius:22px; padding:22px 20px; text-align:center; animation:pop .35s ease both; }
.matchbox h3 { margin:0 0 6px; font-size:1.5rem; color:var(--ink); letter-spacing:-0.01em; text-transform:none; }
.matchbox p { margin:0 0 4px; }
.matchbox .actions { display:flex; flex-direction:column; gap:8px; margin-top:16px; }
.sheet-h { margin:16px 0 6px; font-size:0.72rem; letter-spacing:0.12em; text-transform:uppercase; color:var(--ink); }
.opts { display:flex; flex-wrap:wrap; gap:6px; }
.actions { display:flex; flex-direction:column; gap:8px; }

/* Groups */
.photo.xs { width:28px; height:28px; border-radius:50%; box-shadow:0 0 0 2px #fff; }
.faces { flex:none; display:flex; }
.faces .photo + .photo { margin-left:-9px; }
.g-hd { display:flex; align-items:center; gap:12px; }
.g-hd > div:last-child { display:flex; flex-direction:column; line-height:1.35; }
.g-top { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:6px; }
.group-inv { border-color:var(--orange); margin-bottom:10px; }
.approvals { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:6px; }
.approvals li { display:flex; align-items:center; gap:8px; }
.approvals li .small { flex:1; color:var(--ink); }
.field { width:100%; font:inherit; font-size:16px; color:var(--ink); background:#fff; border:1px solid var(--line); border-radius:12px; padding:9px 12px; }
.field:focus-visible { outline:2px solid var(--orange); outline-offset:1px; }
.mrow.pick .box { flex:none; width:22px; height:22px; border-radius:7px; border:1.5px solid var(--line); display:grid; place-items:center; }
.mrow.pick[aria-checked="true"] { border-color:var(--orange); background:#fffaf5; }
.mrow.pick[aria-checked="true"] .box { background:var(--orange); border-color:var(--orange); }
.mrow.pick[aria-checked="true"] .box::after { content:""; width:9px; height:5px; border-left:2px solid #3a0a2a; border-bottom:2px solid #3a0a2a; transform:rotate(-45deg) translate(1px,-1px); }
.app-nav button { min-width:0; }

/* Profile tab: private numbers and privacy switches */
.stats { display:grid; grid-template-columns:repeat(4,1fr); gap:6px; margin:0 0 12px; }
.stats > div { background:#fff; border:1px solid var(--line); border-radius:14px; padding:8px 4px; display:flex; flex-direction:column; align-items:center; text-align:center; line-height:1.2; }
.stats .big { font-size:1.5rem; }
.switches { list-style:none; margin:0 0 12px; padding:0; }
.switches li { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:9px 0; border-top:1px solid var(--line); }
.switches li:first-child { border-top:0; }
.switches li > div { display:flex; flex-direction:column; line-height:1.35; }
.switch { flex:none; min-width:72px; border-radius:999px; border:1px solid var(--line); background:#fff; color:var(--muted); font-size:0.76rem; font-weight:600; padding:5px 10px; }
.switch[aria-checked="true"] { background:var(--orange); border-color:var(--orange); color:#3a0a2a; }
.switch[disabled] { cursor:default; opacity:.75; }
.privacy .btn { margin-top:4px; }

@keyframes pop { from { opacity:0; transform:translateY(6px) scale(.98); } to { opacity:1; transform:none; } }
@keyframes blink { 0%,100% { opacity:.3; } 50% { opacity:1; } }
@keyframes fade { from { opacity:0; } to { opacity:1; } }
@keyframes up { from { transform:translateY(24px); opacity:0; } to { transform:none; opacity:1; } }

@media (max-width: 520px) {
  .phone { border-width:1px; outline:0; border-color:var(--line); border-radius:20px; height:calc(100svh - 96px); min-height:560px; max-height:760px; }
}
@media (prefers-reduced-motion: reduce) {
  .phone *, .phone *::before, .phone *::after { animation:none !important; transition:none !important; }
}
