/* Wala — warm v2 tokens (from the Figma style tile) */
:root {
  --canvas: #EFECE6;
  --page: #E2DCD0;
  --ink: #3A1D10;
  --mute: #7A6658;
  --peri: #5B6FC4;
  --peri-deep: #4757A8;
  --peri-pale: #E4E8F8;
  --butter: #EDD97A;
  --pbutter: #FBF5C9;
  --cream: #F6EDC9;
  --blue: #A9C0D3;
  --pblue: #DCE6EE;
  --terra: #D9804F;
  --pterra: #F4D9C8;
  --fill: #E7E2D8;
  --grass: #4F8A5B;
  --pgrass: #E1EDDC;
  --rust: #B3413B;
  --prust: #F6E0DC;
  --line: #DCD5C8;
  --white: #FFFFFF;
  --imsg: #3478F6;
  --gray: #E9E9EB;
  --sys: #8E8E93;
  --r-card: 24px;
  --font: 'Outfit', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
a { color: inherit; }
.ic { flex: none; display: block; }

/* ---------- Hub ---------- */
.hub { max-width: 1120px; margin: 0 auto; padding: 48px 24px 80px; }
.hub-top { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }
.logo { display: inline-block; background: currentColor; -webkit-mask: url(assets/wala-logo.svg) center / contain no-repeat; mask: url(assets/wala-logo.svg) center / contain no-repeat; }
.hub-mark { width: 88px; height: 88px; border-radius: 24px; background: var(--peri); color: var(--butter); display: grid; place-items: center; flex: none; }
.hub-mark .logo { width: 64px; height: 32px; }
.hub h1 { font-size: 40px; line-height: 1.05; letter-spacing: -0.04em; margin: 0 0 6px; font-weight: 600; }
.hub-sub { color: var(--mute); font-size: 16px; max-width: 680px; margin: 0; }
.flows { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.flow-card { background: var(--canvas); border-radius: 28px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.flow-card h2 { margin: 0; font-size: 22px; letter-spacing: -0.03em; font-weight: 600; }
.flow-card p { margin: 0; color: var(--mute); }
.flow-tag { align-self: flex-start; }
.flow-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.flow-steps a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.flow-steps a:hover { color: var(--peri); }
.flow-steps span { color: var(--mute); font-size: 12px; font-weight: 400; }
.flow-card .btn { margin-top: auto; }
.hub-note { margin-top: 28px; color: var(--mute); font-size: 13px; max-width: 760px; }

/* ---------- Viewer ---------- */
.viewer { min-height: 100vh; display: flex; flex-direction: column; align-items: center; }
.vbar { position: sticky; top: 0; z-index: 20; width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: rgba(226,220,208,.92); backdrop-filter: blur(8px); }
.vbar .home { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; text-decoration: none; padding: 8px 12px 8px 6px; border-radius: 999px; background: var(--canvas); }
.vbar .crumb { flex: 1; min-width: 0; text-align: center; font-size: 13px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vbar .crumb b { color: var(--ink); font-weight: 600; }
.vbar .navbtn { width: 36px; height: 36px; border-radius: 999px; background: var(--canvas); display: grid; place-items: center; }
.vbar .navbtn[disabled] { opacity: .35; cursor: default; }
.vbar .hs { font-size: 12px; font-weight: 500; padding: 8px 12px; border-radius: 999px; background: var(--canvas); }
.vbar .hs[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.stage { flex: 1; width: 100%; display: flex; justify-content: center; align-items: flex-start; padding: 12px 16px 40px; }
.device { width: 448px; max-width: 100%; height: 900px; max-height: calc(100vh - 90px); min-height: 640px; border-radius: 36px; overflow: hidden; position: relative; background: var(--canvas); box-shadow: 0 0 0 10px #1d1410, 0 30px 60px rgba(58,29,16,.25); }
.screen { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
.screen::-webkit-scrollbar { display: none; }
.screen.enter { animation: enter .28s ease both; }
.screen.enter-up { animation: enterUp .32s ease both; }
.screen.enter-back { animation: enterBack .28s ease both; }
@keyframes enter { from { transform: translateX(40px); opacity: 0; } }
@keyframes enterUp { from { transform: translateY(60px); opacity: 0; } }
@keyframes enterBack { from { transform: translateX(-40px); opacity: 0; } }
.show-hotspots [data-go], .show-hotspots [data-act] { outline: 2px solid rgba(91,111,196,.85); outline-offset: 2px; background-clip: padding-box; }
.flash [data-go], .flash [data-act] { animation: hot 0.9s ease; }
@keyframes hot { 0%,100% { box-shadow: none; } 30% { box-shadow: 0 0 0 3px rgba(91,111,196,.7); } }
@media (max-width: 520px) {
  .stage { padding: 0; }
  .device { border-radius: 0; box-shadow: none; height: calc(100dvh - 56px); max-height: none; min-height: 0; width: 100%; }
  .vbar .crumb span { display: none; }
}

/* ---------- App screens ---------- */
.s { min-height: 100%; background: var(--canvas); display: flex; flex-direction: column; }
.s.white { background: var(--white); }
.hdr { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; height: 68px; padding: 0 16px; background: var(--canvas); border-bottom: 1px solid var(--line); flex: none; }
.hdr .back { width: 36px; height: 36px; border-radius: 999px; background: var(--pbutter); display: grid; place-items: center; flex: none; }
.hdr .t { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; }
.hdr .st { font-size: 12px; color: var(--mute); }
.body { padding: 16px 16px 24px; flex: 1; display: flex; flex-direction: column; }
.body > * + * { margin-top: 12px; }
.body > .lbl { margin-top: 24px; }
.body > .lbl:first-child { margin-top: 0; }
.body > .lbl + * { margin-top: 8px; }
.body > .intro + * { margin-top: 20px; }
.foot { margin-top: auto !important; padding-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.foot.row { flex-direction: row; }
.lbl { font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.intro { font-size: 15px; line-height: 21px; margin: 0; }
.h1 { font-size: 26px; font-weight: 600; letter-spacing: -0.04em; line-height: 1.15; margin: 0; }
.h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.25; margin: 0; }
.muted { color: var(--mute); }
.small { font-size: 12px; }
.tiny { font-size: 11px; }
.strong { font-weight: 600; }
.sub { font-size: 12px; color: var(--mute); margin-top: 2px; line-height: 1.4; }

.card { background: var(--white); border-radius: var(--r-card); padding: 16px; position: relative; }
.card.fill { background: var(--fill); }
.card.butter { background: var(--butter); }
.card.pbutter { background: var(--pbutter); }
.card.blue { background: var(--blue); }
.card.pblue { background: var(--pblue); }
.card.pgrass { background: var(--pgrass); }
.card.peri { background: var(--peri); color: var(--white); }
.card.ink { background: var(--ink); color: var(--white); }
.card.selected, .opt.selected { box-shadow: inset 0 0 0 2px var(--ink); }
.card.photo { padding: 0; overflow: hidden; }
.card.photo .ph { width: 100%; height: 200px; object-fit: cover; display: block; }
.card.photo .in { padding: 16px 20px 20px; }
.tap { cursor: pointer; transition: transform .12s ease, filter .12s ease; }
.tap:active { transform: scale(.985); }

.rowx { display: flex; gap: 12px; align-items: flex-start; }
.rowx.c { align-items: center; }
.grow { flex: 1; min-width: 0; }
.ttl { font-size: 15px; font-weight: 600; line-height: 1.3; }
.ttl.lg { font-size: 17px; letter-spacing: -0.02em; }
.divide > * + * { border-top: 1px solid var(--line); }
.divide > * { padding: 12px 0; }
.divide > *:first-child { padding-top: 0; }
.divide > *:last-child { padding-bottom: 0; }
.divide.inset > * + * { border-top: 0; background-image: linear-gradient(var(--line), var(--line)); background-size: calc(100% - 52px) 1px; background-position: right top; background-repeat: no-repeat; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--fill); white-space: nowrap; line-height: 1.2; }
.pill.sm { font-size: 11px; padding: 4px 9px; }
.pill.lg { font-size: 13px; padding: 8px 14px; }
.pill.ink { background: var(--ink); color: var(--white); }
.pill.white { background: var(--white); }
.pill.butter { background: var(--butter); }
.pill.pbutter { background: var(--pbutter); }
.pill.pblue { background: var(--pblue); }
.pill.pterra { background: var(--pterra); }
.pill.pgrass { background: var(--pgrass); }
.pill.prust { background: var(--prust); color: var(--rust); }
.pill.peri { background: var(--peri); color: var(--white); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { cursor: pointer; }
.chip.on { background: var(--ink); color: var(--white); }

.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 52px; border-radius: 999px; background: var(--peri); color: var(--white); font-size: 15px; font-weight: 600; text-decoration: none; }
.btn:hover { filter: brightness(1.05); }
.btn.ghost { background: var(--fill); color: var(--ink); }
.btn.sm { height: 40px; width: auto; padding: 0 18px; font-size: 14px; }
.btn.danger { background: var(--prust); color: var(--rust); }
.link { color: var(--peri); font-weight: 500; font-size: 14px; text-align: center; display: block; }
.link.rust { color: var(--rust); }

.av { width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; font-weight: 600; font-size: 15px; flex: none; background: var(--butter); }
.av.s32 { width: 32px; height: 32px; font-size: 12px; }
.av.s36 { width: 36px; height: 36px; font-size: 13px; }
.av.s56 { width: 56px; height: 56px; font-size: 21px; }
.av.s64 { width: 64px; height: 64px; font-size: 24px; }
.av.s72 { width: 72px; height: 72px; font-size: 27px; }
.av.blue { background: var(--blue); }
.av.pterra { background: var(--pterra); }
.av.pbutter { background: var(--pbutter); }
.av.white { background: var(--white); }
.ring { width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; flex: none; color: var(--peri); }

.chk { width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; flex: none; background: var(--fill); }
.chk.done { background: var(--grass); color: var(--white); }
.chk.wait { background: var(--butter); color: var(--ink); }
.chk.bad { background: var(--rust); color: var(--white); }
.box { width: 22px; height: 22px; border-radius: 7px; flex: none; display: grid; place-items: center; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--line); }
.box.on { background: var(--ink); color: var(--white); box-shadow: none; }
.radio { width: 20px; height: 20px; border-radius: 999px; box-shadow: inset 0 0 0 2px var(--ink); flex: none; }
.selected .radio { background: var(--ink); box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 5px var(--white); }
.opt { background: var(--fill); border-radius: 20px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; cursor: pointer; }
.opt.selected { background: var(--white); }
.toggle { width: 44px; height: 26px; border-radius: 13px; background: var(--fill); position: relative; flex: none; transition: background .15s; cursor: pointer; }
.toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); transition: left .15s; box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.toggle.on { background: var(--grass); }
.toggle.on::after { left: 21px; }
.field { background: var(--fill); border-radius: 16px; padding: 15px 16px; font-size: 15px; border: 0; width: 100%; font-family: inherit; color: var(--ink); }
textarea.field { resize: none; min-height: 88px; background: var(--white); border-radius: 20px; line-height: 1.4; }
.field:focus { outline: 2px solid var(--peri); }

.timeline { position: relative; }
.tl-step { display: flex; gap: 14px; position: relative; padding-bottom: 18px; }
.tl-step:not(:last-child)::before { content: ''; position: absolute; left: 10px; top: 26px; bottom: 4px; width: 2px; background: var(--line); }
.tl-people { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }

.navbar { position: sticky; bottom: 0; display: flex; justify-content: space-around; padding: 10px 8px 14px; background: var(--white); border-top: 1px solid var(--line); margin-top: auto; flex: none; }
.navbar a { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 500; color: var(--mute); text-decoration: none; }
.navbar a .ico { width: 44px; height: 28px; border-radius: 999px; display: grid; place-items: center; }
.navbar a.on { color: var(--ink); font-weight: 600; }
.navbar a.on .ico { background: var(--pbutter); }

.bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.2); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--butter); border-radius: 3px; transition: width .3s; }

/* lock screen */
.lock { min-height: 100%; background: linear-gradient(180deg, #8A9BE0, #3E4FA0); color: var(--white); display: flex; flex-direction: column; align-items: center; padding: 96px 12px 32px; }
.lock .date { font-size: 18px; font-weight: 500; }
.lock .time { font-size: 88px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.notif { margin-top: 90px; width: 100%; background: rgba(255,255,255,.92); color: #111; border-radius: 24px; padding: 14px; display: flex; gap: 12px; text-align: left; cursor: pointer; animation: drop .6s .3s ease both; }
@keyframes drop { from { transform: translateY(-24px); opacity: 0; } }
.notif .app { width: 38px; height: 38px; border-radius: 10px; background: #34C759; color: #fff; display: grid; place-items: center; flex: none; }
.lock .hint { margin-top: auto; font-size: 12px; opacity: .8; }

/* iMessage */
.msg-hdr { position: sticky; top: 0; z-index: 5; background: #F7F7F8; border-bottom: 1px solid #E0E0E3; display: flex; flex-direction: column; align-items: center; padding: 16px 0 10px; flex: none; }
.msg-hdr .back { position: absolute; left: 14px; top: 28px; color: var(--imsg); }
.msg-av { width: 56px; height: 56px; border-radius: 999px; background: var(--peri); color: var(--butter); display: grid; place-items: center; }
.msg-av .logo { width: 40px; height: 20px; }
.msg-hdr .nm { font-size: 12px; color: #111; margin-top: 6px; }
.thread { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.sysmsg { text-align: center; font-size: 11px; color: var(--sys); margin: 6px 0; }
.bub { max-width: 300px; padding: 10px 14px; border-radius: 18px; font-size: 14px; line-height: 19px; background: var(--gray); color: var(--ink); align-self: flex-start; white-space: pre-line; }
.bub.me { background: var(--imsg); color: var(--white); align-self: flex-end; }
.bub.pop { animation: pop .3s ease both; }
@keyframes pop { from { transform: scale(.85); opacity: 0; } }
.linkprev { width: 300px; border-radius: 18px; overflow: hidden; background: var(--gray); align-self: flex-start; cursor: pointer; }
.linkprev img { width: 100%; height: 160px; object-fit: cover; display: block; }
.linkprev .in { padding: 10px 14px 12px; }
.qr { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.qr button { border: 1px solid var(--imsg); color: var(--imsg); border-radius: 999px; padding: 7px 14px; font-size: 13px; background: var(--white); }
.composer { position: sticky; bottom: 0; background: var(--white); border-top: 1px solid #E0E0E3; padding: 12px; display: flex; gap: 10px; align-items: center; margin-top: auto; flex: none; }
.composer .plus { width: 34px; height: 34px; border-radius: 50%; background: var(--gray); display: grid; place-items: center; color: var(--sys); font-size: 20px; }
.composer .in { flex: 1; height: 38px; border-radius: 19px; border: 1px solid #D1D1D6; padding: 0 14px; display: flex; align-items: center; color: var(--sys); }
.typing { align-self: flex-start; background: var(--gray); border-radius: 18px; padding: 12px 14px; display: flex; gap: 4px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #9a9aa0; animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .3; } }

/* mobile web (no-app) */
.urlbar { position: sticky; top: 0; z-index: 5; background: #F7F7F8; border-bottom: 1px solid #E0E0E3; padding: 10px 16px; flex: none; }
.urlbar .u { background: var(--gray); border-radius: 12px; height: 36px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; color: #111; }
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.otp span { height: 72px; border-radius: 16px; background: var(--white); display: grid; place-items: center; font-size: 28px; font-weight: 600; }
.otp span.cur { box-shadow: inset 0 0 0 2px var(--peri); }
.store { display: flex; gap: 8px; flex-wrap: wrap; }
.store span { background: #111; color: #fff; border-radius: 12px; padding: 12px 14px; font-size: 12px; font-weight: 600; }
.time-tag { width: 72px; height: 40px; border-radius: 12px; background: var(--pbutter); display: grid; place-items: center; font-weight: 600; font-size: 13px; flex: none; }

/* toast */
#toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--ink); color: var(--white); padding: 12px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 100; max-width: calc(100vw - 32px); text-align: center; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Admin (desktop) ---------- */
.adm-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.adm-scroll { flex: 1; overflow-x: auto; }
.adm { display: grid; grid-template-columns: 240px 1fr 400px; min-width: 1280px; min-height: calc(100vh - 56px); background: var(--canvas); }
.adm-side { background: var(--peri); color: var(--white); padding: 28px 12px 16px; display: flex; flex-direction: column; }
.adm-side .brand { padding: 0 12px; color: var(--butter); }
.adm-side .brand .logo { width: 96px; height: 47px; }
.adm-side .brand .lbl { color: #C9D1F0; margin-top: 10px; }
.adm-nav { margin-top: 28px; display: flex; flex-direction: column; gap: 6px; }
.adm-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; color: var(--peri-pale); text-decoration: none; font-weight: 500; }
.adm-nav a.on { background: var(--peri-deep); color: var(--white); font-weight: 600; }
.adm-nav a.on .ic { color: var(--butter); }
.adm-nav .cnt { margin-left: auto; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--peri-deep); color: var(--white); }
.adm-nav a.on .cnt { background: var(--butter); color: var(--ink); }
.adm-me { margin-top: auto; background: var(--peri-deep); border-radius: 14px; padding: 10px; display: flex; gap: 10px; align-items: center; }
.adm-main { padding: 32px; min-width: 0; }
.adm-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.adm-head h1 { font-size: 28px; letter-spacing: -0.04em; margin: 0; font-weight: 600; }
.adm-search { background: var(--white); border-radius: 999px; padding: 10px 16px; min-width: 240px; color: var(--mute); display: flex; gap: 8px; align-items: center; }
.adm-search input { border: 0; outline: 0; font: inherit; color: var(--ink); width: 100%; background: transparent; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px; }
.stat { background: var(--white); border-radius: 20px; padding: 14px 16px; }
.stat b { display: block; font-size: 28px; letter-spacing: -0.04em; font-weight: 600; }
.stat.hl { background: var(--pbutter); }
.stat.peri { background: var(--peri); color: var(--white); }
.stat.peri b { color: var(--butter); }
.stat.peri .muted { color: var(--peri-pale); }
.tabs { display: flex; gap: 24px; margin-top: 24px; border-bottom: 1px solid var(--line); }
.tabs button { padding: 0 0 10px; font-weight: 500; color: var(--mute); display: flex; gap: 6px; align-items: center; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--ink); font-weight: 600; border-color: var(--peri); }
.tabs .n { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--fill); color: var(--mute); }
.tabs button.on .n { background: var(--peri); color: var(--white); }
.filters { display: flex; gap: 8px; margin: 16px 0; flex-wrap: wrap; }
.tbl { background: var(--white); border-radius: 20px; overflow: hidden; }
.tbl table { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); font-weight: 600; padding: 14px 12px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { cursor: pointer; }
.tbl tbody tr:hover { background: #F7F5F0; }
.tbl tbody tr.sel { background: var(--pblue); }
.tbl .late { color: var(--rust); }
.tbl-foot { padding: 14px 16px; color: var(--mute); font-size: 12px; }
.empty { padding: 48px 16px; text-align: center; color: var(--mute); }
.drawer { background: var(--white); padding: 28px 24px 24px; display: flex; flex-direction: column; gap: 0; border-left: 1px solid var(--line); }
.drawer .sec { margin-top: 20px; }
.drawer .sec > .lbl { margin-bottom: 8px; display: block; }
.drawer .box2 { background: var(--canvas); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.drawer .acts { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); display: flex; gap: 8px; }
.drawer .acts .btn { height: 48px; }
.note { background: var(--pbutter); border-radius: 16px; padding: 12px 14px; font-size: 12px; line-height: 17px; }
.modal-bg { position: fixed; inset: 0; background: rgba(31,36,64,.45); display: grid; place-items: center; z-index: 50; padding: 16px; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--white); border-radius: 28px; width: 640px; max-width: 100%; max-height: calc(100vh - 32px); overflow-y: auto; padding: 32px; }
.modal .opts { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.modal .mopt { display: flex; gap: 12px; align-items: center; background: var(--canvas); border-radius: 14px; padding: 11px 14px; cursor: pointer; }
.modal .mopt.on { background: var(--pbutter); font-weight: 600; }
.modal .mfoot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }

/* admin: sticky side panels */
.adm { grid-template-columns: 264px 1fr 400px; }
.adm-nav a { white-space: nowrap; }
.adm-side, .drawer { position: sticky; top: 56px; height: calc(100vh - 56px); overflow-y: auto; }
.adm { align-items: start; }
.drawer { padding-bottom: 0; }
.drawer .acts { position: sticky; bottom: 0; background: var(--white); padding-bottom: 20px; margin-left: -24px; margin-right: -24px; padding-left: 24px; padding-right: 24px; }
/* admin: app-shell layout — only the middle column scrolls */
.adm { height: calc(100vh - 56px); min-height: 640px; align-items: stretch; }
.adm-main { height: 100%; overflow-y: auto; }
.adm-side, .drawer { position: static; height: 100%; overflow-y: auto; }

/* ---------- iPhone preview sizes ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.devsel select { font: inherit; font-size: 12px; font-weight: 500; color: var(--ink); background: var(--canvas); border: 0; border-radius: 999px; padding: 9px 30px 9px 12px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%233A1D10' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.devsel select:focus-visible { outline: 2px solid var(--peri); }
.dwrap { position: relative; flex: none; }
.device.framed { position: absolute; top: 0; left: 0; transform-origin: top left; max-height: none; min-height: 0; max-width: none; }
.sbar { position: absolute; top: 0; left: 0; right: 0; z-index: 8; display: flex; align-items: center; justify-content: space-between; padding: 0 22px 0 26px; font-size: 14px; font-weight: 600; color: #111; transition: background .2s; }
.sbar.tall { padding: 4px 30px 0 46px; font-size: 16px; }
.sbar .sb-r { display: flex; gap: 6px; align-items: center; }
.sbar .di { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 124px; height: 36px; border-radius: 20px; background: #000; }
.homebar { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: 134px; height: 5px; border-radius: 3px; background: #111; opacity: .85; z-index: 9; pointer-events: none; }
.has-home .navbar, .has-home .composer { padding-bottom: 30px; }
.has-home .body { padding-bottom: 44px; }
.has-home .lock { padding-bottom: 44px; }
.device.native { width: 100%; }
@media (max-width: 520px) {
  .device.native { height: calc(100dvh - 56px); border-radius: 0; box-shadow: none; }
  .device.native .body { padding-bottom: max(24px, env(safe-area-inset-bottom, 0px)); }
}

/* ---------- live test sessions ---------- */
.live-cta { background: var(--peri); color: var(--white); border-radius: 28px; padding: 24px 28px; display: flex; gap: 24px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.live-cta h2 { margin: 6px 0 6px; font-size: 24px; letter-spacing: -0.03em; font-weight: 600; }
.live-cta p { margin: 0; color: var(--peri-pale); max-width: 640px; }
.live-panel { background: var(--white); border-radius: 28px; padding: 24px; }
.live-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.live-code { font-size: 40px; letter-spacing: .12em; margin: 2px 0 8px; font-weight: 700; font-variant-numeric: tabular-nums; }
.live-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.live-actions .btn { width: auto; }
.live-roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 20px; }
.live-role { background: var(--canvas); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.live-role .qr { background: var(--white); border-radius: 14px; padding: 10px; align-self: flex-start; min-height: 132px; min-width: 132px; }
.live-role .qr img, .live-role .qr canvas { display: block; }
.live-link { display: flex; gap: 6px; align-items: center; min-width: 0; }
.live-link input { flex: 1; min-width: 0; border: 0; background: var(--white); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 12px; color: var(--mute); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); flex: none; }
.dot.on { background: var(--grass); box-shadow: 0 0 0 3px var(--pgrass); }
.live-log { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.live-log ol { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.live-log li { display: grid; grid-template-columns: 110px 64px 1fr auto; gap: 10px; font-size: 13px; align-items: baseline; font-variant-numeric: tabular-nums; }
.live-log .tm, .live-log .gap { color: var(--mute); }
.live-log .who { font-weight: 600; }
@media (max-width: 600px) { .live-log li { grid-template-columns: 1fr auto; } .live-log .tm { display: none; } }
.role-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--canvas); border-radius: 999px; padding: 4px 14px 4px 4px; font-size: 13px; white-space: nowrap; }
.live-dot { font-size: 12px; font-weight: 500; color: var(--mute); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.live-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.live-dot.on { color: var(--grass); }
.live-dot.on::before { background: var(--grass); }
.lock-wait { margin-top: 90px; display: inline-flex; gap: 8px; align-items: center; padding: 10px 16px; border-radius: 999px; background: rgba(255,255,255,.18); font-size: 14px; }
.ibanner { position: absolute; top: 58px; left: 10px; right: 10px; z-index: 30; display: flex; gap: 12px; padding: 12px 14px; border-radius: 22px; background: rgba(250,250,250,.96); color: #111; box-shadow: 0 10px 30px rgba(0,0,0,.18); font-size: 14px; line-height: 19px; cursor: pointer; animation: bannerIn .4s ease both; }
.ibanner.desk { position: fixed; top: 16px; right: 16px; left: auto; width: 360px; max-width: calc(100vw - 32px); }
.device.native .ibanner { position: fixed; top: calc(64px + env(safe-area-inset-top, 0px)); }
.ibanner .app { width: 38px; height: 38px; border-radius: 10px; background: var(--peri); color: var(--butter); display: grid; place-items: center; flex: none; }
.ibanner .app .logo { width: 28px; height: 14px; }
.ibanner.out { animation: bannerOut .4s ease both; }
@keyframes bannerIn { from { transform: translateY(-30px); opacity: 0; } }
@keyframes bannerOut { to { transform: translateY(-30px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ibanner, .ibanner.out, .notif, .screen.enter, .screen.enter-up, .screen.enter-back { animation: none; } }

/* ---------- voice ---------- */
.voicebox { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 0; }
.voicebox.done { align-items: stretch; text-align: left; }
.voicebox .opt, .voicebox .lbl { align-self: stretch; text-align: left; }
.mic { width: 88px; height: 88px; border-radius: 50%; background: var(--peri); color: var(--white); display: grid; place-items: center; margin-top: 12px; position: relative; box-shadow: 0 8px 24px rgba(91,111,196,.35); }
.mic:focus-visible { outline: 3px solid var(--butter); outline-offset: 3px; }
.mic.on { background: var(--terra); box-shadow: 0 8px 24px rgba(217,128,79,.35); }
.mic.on::before, .mic.on::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--terra); animation: ring 1.6s ease-out infinite; }
.mic.on::after { animation-delay: .8s; }
@keyframes ring { from { transform: scale(1); opacity: .7; } to { transform: scale(1.7); opacity: 0; } }
.vb-state { margin-top: 14px; font-weight: 500; font-size: 14px; max-width: 320px; }
.vb-live { margin-top: 14px; min-height: 60px; font-size: 18px; line-height: 1.4; letter-spacing: -0.01em; max-width: 360px; }
.voicebox textarea.field { margin-top: 8px; font-size: 15px; }
@media (prefers-reduced-motion: reduce) { .mic.on::before, .mic.on::after { animation: none; } }
.voicebox .link, .card .link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }

/* ---------- staged onboarding + neighborhood (exploration) ---------- */
.stg-prog { display: flex; align-items: center; gap: 10px; }
.stg-prog span { font-size: 11px; font-weight: 600; color: var(--mute); background: var(--white); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.stg-track { flex: 1; height: 6px; border-radius: 3px; background: var(--fill); overflow: hidden; }
.stg-track > i { display: block; height: 100%; background: var(--peri); border-radius: 3px; }
.stg-field { position: relative; }
.stg-hit { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); display: inline-flex; gap: 4px; align-items: center; font-size: 12px; font-weight: 600; color: var(--peri); }
.stg-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.stg-stats.two { grid-template-columns: repeat(2, 1fr); margin-top: 0; }
.stg-stats b { display: block; font-size: 30px; font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; }
.stg-stats span { font-size: 12px; color: var(--mute); }
.stg-photo { width: 80px; height: 80px; border-radius: 999px; object-fit: cover; flex: none; }
.stg-line { box-shadow: inset 0 0 0 2px var(--peri); }
.stg-line textarea, .stg-ta { width: 100%; border: 0; resize: none; font: inherit; font-size: 16px; line-height: 1.4; color: var(--ink); background: transparent; outline: none; padding: 0; margin: 0 0 8px; }
.stg-ta { font-size: 14px; margin-top: 8px; }
.stg-dash { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); border: 1.5px dashed var(--mute); }
.stg-dash { box-shadow: none; }
.stg-dim { background: #CFC7BA; }
.stg-dim .hdr { background: #CFC7BA; }
.stg-dim .body > .card { opacity: .55; }
.stg-sheet { margin: auto -16px -24px !important; background: var(--white); border-radius: 28px 28px 0 0; padding: 20px 20px 28px; display: flex; flex-direction: column; animation: enterUp .32s ease both; }
.stg-x { width: 32px; height: 32px; border-radius: 999px; background: var(--fill); display: grid; place-items: center; flex: none; }
.stg-step { display: flex; gap: 12px; align-items: center; background: var(--canvas); border-radius: 16px; padding: 12px 14px; margin-top: 10px; }
.stg-step.done { background: var(--pgrass); }
.stg-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.stg-tabs a { padding: 6px 12px; border-radius: 999px; background: var(--white); font-size: 12px; font-weight: 500; cursor: pointer; }
.stg-tabs a.on { background: var(--ink); color: var(--white); }
.stg-dir { width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center; font-weight: 700; flex: none; }
.stg-dir.up { background: var(--pgrass); color: var(--grass); }
.stg-dir.down { background: var(--pbutter); }
.stg-dogs { display: flex; padding-left: 8px; }
.stg-dogs .av { margin-left: -8px; box-shadow: 0 0 0 2px var(--canvas); }

/* ---------- Kindred sitter screens · Wala skin by default, .kd.lav = original lavender ---------- */
.kd { background: var(--canvas); color: var(--ink); }
.kd.lav {
  --canvas: #F6F6FC; --ink: #242240; --mute: #6A6980; --peri: #866BD8; --peri-deep: #6E55C4; --peri-pale: #E7E5FB;
  --fill: #F3F2FB; --line: #DDDCEB; --pbutter: #EFEAFD; --pblue: #E7E5FB; --pgrass: #E3F3EA; --grass: #3F8F6B;
  --prust: #FBE6E4; --rust: #D73337; --pterra: #FBE3D6;
  font-family: 'Inter', system-ui, sans-serif;
}
.kd-h1 { font-size: 26px; font-weight: 600; letter-spacing: -0.04em; line-height: 1.15; margin: 0; }
.kd-h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.25; margin: 0; }
.kd-h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.kd-logo { width: 72px; height: 32px; color: var(--peri); }
.kd-mark { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 18px; }
.kd-mark span { width: 30px; height: 30px; border-radius: 999px; background: var(--peri); color: #fff; display: grid; place-items: center; }
.kd-hero { position: relative; margin-top: 16px; border-radius: var(--r-card); overflow: hidden; height: 200px; }
.kd-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kd-hero .pill { position: absolute; left: 12px; bottom: 12px; }
.kd-pet { width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; font-size: 22px; flex: none; }
.kd .rowx.small .kd-pet { width: 28px; height: 28px; font-size: 14px; margin-right: -14px; box-shadow: 0 0 0 2px var(--canvas); }
.kd .rowx.small > span:last-child { margin-left: 18px; }
.kd .av.kd-av { background: var(--butter); }
.kd-ic { width: 32px; height: 32px; border-radius: 999px; background: var(--pbutter); color: var(--ink); display: grid; place-items: center; flex: none; }
.kd-step { display: flex; gap: 12px; align-items: center; background: var(--white); border-radius: 20px; padding: 12px 14px; }
.kd-step .sub { margin-top: 0; }
.kd-step.done .kd-ic { background: var(--grass); color: #fff; }
.kd-step.done .strong { text-decoration: line-through; text-decoration-color: var(--mute); }
.kd-group { background: var(--pbutter); border-radius: var(--r-card); overflow: hidden; }
.kd-group-h { padding: 16px; gap: 12px; background: var(--butter); }
.kd-group-h .kd-ic { background: var(--white); }
.kd-kicker { font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.kd-badge { background: var(--rust); color: #fff; border-radius: 999px; padding: 0 6px; font-size: 11px; margin-left: 4px; }
.kd-num { width: 26px; height: 26px; border-radius: 999px; background: var(--fill); color: var(--ink); font-weight: 700; font-size: 12px; display: grid; place-items: center; flex: none; }
.kd-ring { background: var(--white); border-radius: var(--r-card); padding: 16px; }
.kd-ring.done .kd-num { background: var(--grass); color: #fff; }
.kd-ring.now { background: var(--pbutter); box-shadow: inset 0 0 0 2px var(--ink); }
.kd-ring.now .kd-num { background: var(--butter); }
.kd-ring.later { background: var(--fill); }
.kd-ring-steps { display: flex; flex-wrap: wrap; flex-direction: column; gap: 8px; margin-top: 12px; }
.kd-ring.later .kd-ring-steps { flex-direction: row; }
.kd-check { display: flex; gap: 12px; align-items: center; background: var(--white); border-radius: 20px; padding: 14px; }
.kd-check.done { background: var(--pgrass); }
.kd-elm { box-shadow: inset 0 0 0 2px var(--ink) !important; background: var(--pbutter) !important; }
.kd .kd-outline { background: var(--fill); }
.kd .rowx .btn.sm { flex: none; }

/* original lavender look (?skin=kindred) */
.kd.lav .hdr { background: var(--canvas); }
.kd.lav .hdr .back { background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.kd.lav .hdr .t, .kd.lav .kd-h1, .kd.lav .kd-h2, .kd.lav .kd-h3, .kd.lav .ttl, .kd.lav .kd-mark { font-family: 'Fraunces', Georgia, serif; font-weight: 600; letter-spacing: -0.01em; }
.kd.lav .kd-h1 { font-size: 28px; }
.kd.lav .card { border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line); }
.kd.lav .card.fill, .kd.lav .card.pgrass, .kd.lav .card.pbutter { box-shadow: none; }
.kd.lav .btn.ghost, .kd.lav .kd-outline { background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.kd.lav .navbar a.on .ico { background: var(--peri-pale); color: var(--peri); }
.kd.lav .navbar a.on { color: var(--peri); }
.kd.lav .note { background: #FFF6CC; }
.kd.lav .chip.on, .kd.lav .box.on { background: var(--peri); }
.kd.lav .opt.selected { box-shadow: inset 0 0 0 2px var(--peri); }
.kd.lav .radio { box-shadow: inset 0 0 0 2px var(--line); }
.kd.lav .opt.selected .radio { box-shadow: inset 0 0 0 6px var(--peri); }
.kd.lav .av.kd-av { background: var(--peri-pale); color: var(--peri-deep); }
.kd.lav .kd-ic { background: var(--peri-pale); color: var(--peri); }
.kd.lav .kd-step { border-radius: 999px; padding: 10px 14px 10px 10px; box-shadow: inset 0 0 0 1px var(--line); }
.kd.lav .kd-group { background: var(--fill); box-shadow: inset 0 0 0 1px var(--line); }
.kd.lav .kd-group-h { background: var(--peri-pale); }
.kd.lav .kd-group-h .kd-ic { background: var(--peri-pale); }
.kd.lav .kd-kicker { color: var(--peri); }
.kd.lav .kd-num { background: var(--peri-pale); color: var(--peri-deep); }
.kd.lav .kd-ring { border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line); }
.kd.lav .kd-ring.now { background: var(--white); box-shadow: inset 0 0 0 2px var(--peri); }
.kd.lav .kd-ring.now .kd-num { background: var(--peri-pale); }
.kd.lav .kd-check { border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); }
.kd.lav .kd-check.done { box-shadow: none; }
.kd.lav .kd-elm { box-shadow: inset 0 0 0 2px var(--peri) !important; background: var(--white) !important; }
.kd.lav .kd-ring.done .kd-num, .kd.lav .kd-step.done .kd-ic { background: var(--grass); color: #fff; }

/* ---------- full journey ---------- */
.jcard { background: var(--peri); color: var(--white); border-radius: 32px; padding: 28px; display: flex; flex-direction: column; gap: 18px; margin-bottom: 8px; }
.jcard h2 { margin: 10px 0 6px; font-size: 30px; letter-spacing: -0.04em; font-weight: 600; }
.jcard p { margin: 0; color: var(--peri-pale); max-width: 760px; font-size: 15px; }
.jcard-ch { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.jcard-ch a { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.14); color: var(--white); text-decoration: none; border-radius: 999px; padding: 6px 12px 6px 6px; font-size: 13px; font-weight: 500; }
.jcard-ch a span { width: 22px; height: 22px; border-radius: 999px; background: var(--butter); color: var(--ink); display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.jcard-ch a:hover { background: rgba(255,255,255,.24); }
.stage.jstage { gap: 40px; align-items: flex-start; }
.jpanel { width: 340px; flex: none; background: var(--canvas); border-radius: 28px; padding: 22px; margin-top: 8px; display: flex; flex-direction: column; max-height: calc(100vh - 100px); overflow-y: auto; }
.jtitle { font-size: 24px; font-weight: 600; letter-spacing: -0.03em; margin: 8px 0 14px; line-height: 1.15; }
.jwho { display: flex; gap: 10px; align-items: center; background: var(--white); border-radius: 18px; padding: 10px 12px; }
.jnote { font-size: 15px; line-height: 1.45; margin: 14px 0 0; }
.jbtns { display: flex; gap: 8px; margin-top: 16px; }
.jbtns .btn { flex: 1; }
.jch { list-style: none; padding: 0; margin: 20px 0 0; border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 2px; }
.jch a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 12px; font-size: 13px; cursor: pointer; color: var(--mute); }
.jch a:hover { background: var(--fill); }
.jch .n { width: 22px; height: 22px; border-radius: 999px; background: var(--fill); display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; color: var(--ink); }
.jch li.done .n { background: var(--grass); color: var(--white); }
.jch li.done a { color: var(--ink); }
.jch li.on a { background: var(--pbutter); color: var(--ink); font-weight: 600; }
.jch li.on .n { background: var(--butter); }
.jdot { width: 20px; height: 20px; border-radius: 999px; background: var(--butter); font-size: 8px; font-weight: 700; display: grid; place-items: center; color: var(--ink); flex: none; }
.jdot.blue { background: var(--blue); } .jdot.pbutter { background: var(--pbutter); box-shadow: inset 0 0 0 1px var(--line); }
@media (max-width: 900px) {
  .stage.jstage { flex-direction: column; align-items: center; gap: 16px; }
  .jpanel { width: 100%; max-width: 440px; max-height: none; order: -1; margin-top: 0; }
  .jpanel .jch { display: none; }
}
@media (max-width: 520px) { .jpanel { border-radius: 0; } }

/* ---------- profile builder (profile.html) + team list (team.html) ---------- */
.pf-body { background: var(--canvas); }
.pf { max-width: 480px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; padding: 0 16px; }
.pf-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; height: 60px; background: var(--canvas); padding-top: env(safe-area-inset-top, 0px); }
.pf-logo { width: 64px; height: 28px; color: var(--peri); }
.pf-back { width: 36px; height: 36px; border-radius: 999px; background: var(--pbutter); display: grid; place-items: center; }
.pf-count { font-size: 12px; font-weight: 600; color: var(--mute); }
.pf-bar { height: 6px; border-radius: 3px; background: var(--fill); overflow: hidden; margin-bottom: 8px; }
.pf-bar i { display: block; height: 100%; background: var(--peri); border-radius: 3px; transition: width .3s; }
.pf-main { flex: 1; display: flex; flex-direction: column; gap: 16px; padding: 12px 0 24px; }
.pf-main .h1 { font-size: 30px; }
.pf-lead { margin: -4px 0 0; color: var(--mute); font-size: 15px; line-height: 1.45; }
.pf-f { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pf-row > .pf-f { flex: 1; }
.pf-f .lbl i { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--mute); opacity: .8; }
.pf-f .field { font-size: 16px; background: var(--white); }
.pf-f textarea.field { min-height: 0; }
.pf-row { display: flex; gap: 12px; }
@media (max-width: 380px) { .pf-row { flex-direction: column; } }
.pf .pills { gap: 8px; }
.pf-chip { background: var(--white); border: 0; cursor: pointer; font: inherit; font-size: 14px; color: var(--ink); }
.pf-chip.on { background: var(--ink); color: var(--white); }
.pf-roles { display: flex; flex-direction: column; gap: 10px; }
.pf-role { display: flex; gap: 14px; align-items: center; text-align: left; background: var(--white); border-radius: 22px; padding: 16px; }
.pf-role b { display: block; font-size: 16px; }
.pf-role small { display: block; color: var(--mute); font-size: 13px; margin-top: 2px; }
.pf-role.on { box-shadow: inset 0 0 0 2px var(--ink); background: var(--pbutter); }
.pf-consent ul { margin: 8px 0 12px; padding-left: 18px; font-size: 13px; line-height: 1.45; display: flex; flex-direction: column; gap: 4px; }
.pf-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; cursor: pointer; }
.pf-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }
.pf-photo { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.pf-photo > span:first-child, .pf-photo img { width: 64px; height: 64px; border-radius: 999px; background: var(--white); display: grid; place-items: center; color: var(--mute); object-fit: cover; flex: none; }
.pf-photo-t { color: var(--peri); font-weight: 600; font-size: 14px; }
.pf-pet { display: flex; flex-direction: column; gap: 14px; background: var(--fill); }
.pf-pet .field { background: var(--white); }
.pf .card.fill .field { background: var(--white); }
.pf .card.fill { display: flex; flex-direction: column; gap: 10px; }
.pf-x { width: 32px; height: 32px; border-radius: 999px; background: var(--white); display: grid; place-items: center; }
.pf-foot { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--canvas) 30%); padding: 20px 0 max(20px, env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.pf-foot .link, .pf-main .link { background: none; border: 0; font: inherit; color: var(--peri); font-weight: 500; cursor: pointer; text-align: center; }
.pf-sum-r { display: flex; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; }
.pf-sum-r:first-of-type { margin-top: 10px; }
.pf-sum-r span { color: var(--mute); width: 96px; flex: none; }
.pf-sum-r b { font-weight: 500; overflow-wrap: anywhere; }
.pf-edit { font-size: 13px !important; }
.pf .note { font-size: 13px; }
#toast { z-index: 100; }
.team { max-width: 1100px; margin: 0 auto; padding: 32px 20px 80px; }
.team-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); margin-top: 20px; }
.team-card { background: var(--white); border-radius: 24px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.team-card .ph { display: flex; gap: 8px; flex-wrap: wrap; }
.team-card .ph img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; }
.team-card details summary { cursor: pointer; color: var(--peri); font-weight: 500; font-size: 13px; margin-top: 6px; }
.team-card pre { font-size: 11px; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--canvas); border-radius: 12px; padding: 10px; max-height: 320px; overflow: auto; }
.team-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ---------- tester mode (#/t) ---------- */
body.tmode { -webkit-tap-highlight-color: transparent; overscroll-behavior: none; }
.tmode #screen { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }
.tmode #screen input, .tmode #screen textarea { -webkit-user-select: text; user-select: text; }
.tmode #screen .btn, .tmode #screen .tap, .tmode #screen .opt, .tmode #screen .chip, .tmode #screen .notif, .tmode #screen .linkprev, .tmode #screen .qr button { transition: transform .12s ease, filter .12s ease; }
.tmode #screen .btn:active, .tmode #screen .tap:active, .tmode #screen .opt:active, .tmode #screen .chip:active, .tmode #screen .notif:active, .tmode #screen .linkprev:active, .tmode #screen .qr button:active { transform: scale(.97); filter: brightness(.94); }
.tmode .btn.busy { pointer-events: none; color: transparent !important; position: relative; }
.tmode .btn.busy::after { content: ''; position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.45); border-top-color: #fff; animation: tspin .7s linear infinite; }
.tmode .btn.ghost.busy::after { border-color: rgba(0,0,0,.15); border-top-color: var(--ink); }
@keyframes tspin { to { transform: rotate(360deg); } }
.tmode .lock .notif { animation: tnotif .55s 1.6s cubic-bezier(.2,.9,.3,1.2) both; }
@keyframes tnotif { from { transform: translateY(-40px) scale(.96); opacity: 0; } }
.tstage { padding-top: 16px; }
.tbar { position: sticky; top: 0; z-index: 20; width: 100%; max-width: 560px; margin: 12px auto 0; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; background: var(--white); border-radius: 20px; box-shadow: 0 6px 24px rgba(58,29,16,.10); }
.tbar-t { flex: 1; min-width: 0; }
.tbar-k { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--mute); }
.tbar-q { font-size: 14px; line-height: 1.3; font-weight: 500; }
.tbar-next { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; padding: 9px 12px 9px 14px; border-radius: 999px; background: var(--canvas); color: var(--ink); }
@media (max-width: 520px) {
  .tbar { margin: 0; border-radius: 0; box-shadow: 0 1px 0 rgba(0,0,0,.08); padding: max(8px, env(safe-area-inset-top, 0px)) 10px 8px 12px; min-height: 56px; }
  .tbar .av { display: none; }
  .tbar-q { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .tstage { padding: 0; }
  .tmode .device.native { height: calc(100dvh - var(--tbar-h, 56px)); }
}
.thand { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(29,20,16,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .25s ease both; }
.thand.out { opacity: 0; transition: opacity .25s; }
.thand-card { width: 100%; max-width: 380px; background: var(--white); border-radius: 28px; padding: 28px 24px 22px; text-align: center; animation: pop .35s ease both; }
.thand-card h2 { margin: 6px 0 8px; font-size: 26px; letter-spacing: -0.02em; }
.thand-card p { margin: 0 0 20px; color: var(--mute); font-size: 15px; line-height: 1.45; }
.thand-av { display: flex; justify-content: center; margin-bottom: 12px; }
.twel { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.twel-card { width: 100%; max-width: 460px; background: var(--white); border-radius: 32px; padding: 32px 24px 24px; display: flex; flex-direction: column; gap: 14px; }
.twel-card h1 { margin: 0; font-size: 30px; letter-spacing: -0.03em; line-height: 1.1; }
.twel-card p { margin: 0; color: var(--mute); line-height: 1.45; }
.twel-card ul { list-style: none; margin: 4px 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.twel-card li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.4; }
.twel-card li svg { flex: none; margin-top: 2px; color: var(--peri); }
.twel-card .link { text-align: center; cursor: pointer; }
.twel-logo { width: 96px; height: 32px; color: var(--peri); }
.tres { font-size: 13px; background: var(--canvas); border-radius: 16px; padding: 12px 14px; }
.tres summary { cursor: pointer; font-weight: 600; }
.tres table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.tres td, .tres th { text-align: left; padding: 6px 4px; border-top: 1px solid rgba(0,0,0,.06); vertical-align: top; }
.ephones { display: flex; flex-direction: column; gap: 10px; }
.ephone { display: flex; align-items: center; gap: 12px; text-align: left; padding: 14px; border-radius: 20px; background: var(--canvas); color: var(--ink); width: 100%; transition: transform .12s ease; }
.ephone:active { transform: scale(.98); }
.ephone .grow { display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 1.35; }
.ephone .grow b { font-size: 15px; }
.ephone .grow span { color: var(--mute); }
.tbar .tbar-next + .tbar-next { margin-left: -4px; }
.tbar a.tbar-next { text-decoration: none; }

/* ---------- app-launch splash: the wala logo writes itself ---------- */
#boot { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; background: var(--canvas); transition: opacity .45s ease; }
#boot.out { opacity: 0; pointer-events: none; }
.boot-logo { width: min(56vw, 240px); height: auto; overflow: visible; }
.boot-ink { fill: var(--peri); }
#boot mask path { stroke-dasharray: 1 1; stroke-dashoffset: 1; animation-name: bootWrite; animation-timing-function: cubic-bezier(.45,.05,.4,1); animation-fill-mode: forwards; }
@keyframes bootWrite { to { stroke-dashoffset: 0; } }
#boot.done .boot-ink { mask: none; }
#boot.done .boot-logo { animation: bootSettle .5s ease both; }
@keyframes bootSettle { 40% { transform: scale(1.04); } }
.boot-dots { display: flex; gap: 6px; height: 8px; opacity: 0; animation: fade .3s 1.2s ease forwards; }
.boot-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--peri); opacity: .35; animation: bootDot 1s ease-in-out infinite; }
.boot-dots i:nth-child(2) { animation-delay: .15s; } .boot-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes bootDot { 50% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { #boot mask path { animation: none; stroke-dashoffset: 0; } .boot-dots { display: none; } #boot.done .boot-logo { animation: none; } }

/* ---------- zero state (#/z) ---------- */
.screen.enter-fade { animation: fade .18s ease both; }
.zempty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 26px 20px 22px; }
.zempty .sub { max-width: 300px; }
.zempty .btn.sm { width: auto; padding: 0 20px; margin-top: 6px; }
.zring { width: 56px; height: 56px; background: var(--peri-pale); color: var(--peri); margin-bottom: 4px; }
.zdash { display: flex; justify-content: center; margin-bottom: 4px; }
.zdash span { width: 40px; height: 40px; border-radius: 50%; border: 2px dashed var(--line, #d8d2c6); display: grid; place-items: center; color: var(--mute); background: var(--canvas); margin-left: -8px; }
.zdash span:first-child { margin-left: 0; }
.zstart .btn { width: 100%; }
.zlead { min-height: 100vh; }
.zlead-top { display: flex; align-items: center; gap: 12px; padding: 14px 28px; background: var(--white); border-bottom: 1px solid var(--line); }
.zlead-main { max-width: 1040px; margin: 0 auto; padding: 32px 28px 60px; }
.zlead-main h1 { margin: 0; font-size: 32px; letter-spacing: -0.03em; }
.zlead-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.zlead-empty { padding: 56px 24px; }
.zlead-empty .sub { max-width: 440px; }
@media (max-width: 720px) { .zlead-stats { grid-template-columns: repeat(2, 1fr); } .zlead-top, .zlead-main { padding-left: 16px; padding-right: 16px; } }
