/* Smiety app design kit — shared by every phase board (docs/design/r0 … r7).
   Same tokens and neumorphism as the approved auth design (docs/design/auth) and the website. */
@font-face { font-family: 'Outfit'; src: url('../auth/outfit.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-family: 'Outfit', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body { background: #DADFE3; color: #1b2530; min-height: 100vh; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
a { color: inherit; }

/* ---------- board chrome (not part of the app) ---------- */
.board { max-width: 1560px; margin: 0 auto; padding: 26px 28px 90px; }
.bhead { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: flex-end; }
.bhead .kick { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; color: #5b6672; }
.bhead h1 { font-size: 28px; letter-spacing: -.6px; margin-top: 2px; }
.bhead p { color: #4a5561; font-size: 14px; margin-top: 6px; max-width: 760px; line-height: 1.5; }
.nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 6px; }
.nav a { text-decoration: none; padding: 7px 13px; border-radius: 999px; background: #EEF1F3; font-size: 13px; font-weight: 600; color: #3a4652; }
.nav a[aria-current="page"] { background: #1b2530; color: #fff; }
.themes { display: flex; flex-wrap: wrap; gap: 7px; max-width: 520px; justify-content: flex-end; }
.sw { width: 26px; height: 26px; border-radius: 50%; position: relative; overflow: hidden; box-shadow: 0 1px 3px rgb(0 0 0 / .25); outline: 2px solid transparent; outline-offset: 2px; }
.sw::after { content: ''; position: absolute; inset: 0; background: var(--sa); clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.sw[aria-pressed="true"] { outline-color: #1b2530; }
.group { margin-top: 40px; }
.group > h2 { font-size: 20px; letter-spacing: -.3px; display: flex; align-items: center; gap: 10px; }
.group > h2 small { font-size: 12px; font-weight: 600; color: #5b6672; background: #EEF1F3; padding: 4px 10px; border-radius: 999px; letter-spacing: 0; }
.group > p { font-size: 13.5px; color: #4a5561; margin: 6px 0 0; max-width: 900px; line-height: 1.5; }
.grid { display: flex; flex-wrap: wrap; gap: 26px 26px; margin-top: 18px; }
.cell { width: 270px; display: flex; flex-direction: column; gap: 10px; }
.cell.tab { width: 432px; }
.cell .cap { font-size: 14px; font-weight: 700; color: #1b2530; }
.cell .note { font-size: 12.5px; color: #4a5561; line-height: 1.45; margin-top: -6px; }
.cell .note b { color: #1b2530; }
.frame-wrap { width: 270px; height: 585px; position: relative; cursor: zoom-in; }
.cell.tab .frame-wrap { width: 432px; height: 691px; }
.frame-wrap > .raw { width: 100%; height: 100%; display: grid; place-items: center; }
.frame-wrap > .phone, .frame-wrap > .tablet { position: absolute; top: 0; left: 0; transform: scale(.72); transform-origin: top left; }
.zoom { position: fixed; inset: 0; background: rgb(10 14 20 / .7); z-index: 1000; display: none; align-items: center; justify-content: center; padding: 20px; cursor: zoom-out; }
.zoom.on { display: flex; }
.zoom .inner { transform-origin: center; }
.legend { margin-top: 16px; background: #EEF1F3; border-radius: 18px; padding: 16px 20px; font-size: 13.5px; color: #3a4652; line-height: 1.55; max-width: 1100px; }
.legend b { color: #1b2530; }

/* ---------- device frames ---------- */
.phone { width: 375px; height: 812px; border-radius: 54px; background: #0d0f12; padding: 11px; box-shadow: 0 30px 60px -20px rgb(0 0 0 / .45), inset 0 0 0 2px #2a2e34; }
.tablet { width: 600px; height: 960px; border-radius: 40px; background: #0d0f12; padding: 18px; box-shadow: 0 30px 60px -20px rgb(0 0 0 / .45), inset 0 0 0 2px #2a2e34; }
.screen { position: relative; width: 100%; height: 100%; border-radius: 44px; overflow: hidden; background: var(--s); color: var(--fg); display: flex; flex-direction: column; font-size: 15px; }
.tablet .screen { border-radius: 24px; }
.island { position: absolute; top: 10px; left: 50%; width: 112px; height: 32px; margin-left: -56px; background: #000; border-radius: 20px; z-index: 50; }
.tablet .island { width: 10px; height: 10px; margin-left: -5px; top: 8px; border-radius: 50%; background: #1a1d22; }
.status { height: 50px; flex: none; padding: 17px 30px 0 34px; display: flex; justify-content: space-between; font-size: 15px; font-weight: 600; z-index: 40; }
.tablet .status { height: 30px; padding: 6px 20px 0; font-size: 13px; }
.status svg { height: 12px; }
.home-ind { position: absolute; bottom: 8px; left: 50%; width: 130px; height: 5px; margin-left: -65px; border-radius: 3px; background: var(--fg); opacity: .3; z-index: 60; }
.dark .home-ind { background: #fff; opacity: .5; }
.body { flex: 1; overflow: hidden; padding: 6px 20px 0; display: flex; flex-direction: column; gap: 14px; position: relative; }
.body.np { padding: 0; }
.tablet .body { padding: 8px 26px 0; gap: 18px; }

/* ---------- neumorphism ---------- */
.neu { background: var(--s); box-shadow: 8px 8px 18px var(--sd), -8px -8px 18px var(--sl); }
.neu-sm { background: var(--s); box-shadow: 4px 4px 10px var(--sd), -4px -4px 10px var(--sl); }
.neu-lg { background: var(--s); box-shadow: 14px 14px 32px var(--sd), -14px -14px 32px var(--sl); }
.neu-in { background: var(--s); box-shadow: inset 5px 5px 11px var(--sd), inset -5px -5px 11px var(--sl); }
.neu-in-sm { background: var(--s); box-shadow: inset 3px 3px 7px var(--sd), inset -3px -3px 7px var(--sl); }
.pri { background: var(--p); color: #fff; box-shadow: 8px 8px 18px var(--sd), -8px -8px 18px var(--sl); }
.pri .mu { color: rgb(255 255 255 / .72); }
.pri .ink { color: var(--ad); }

/* ---------- type ---------- */
.h1 { font-size: 26px; font-weight: 700; letter-spacing: -.7px; color: var(--p); line-height: 1.12; }
.h2 { font-size: 20px; font-weight: 700; letter-spacing: -.4px; color: var(--p); line-height: 1.2; }
.h3 { font-size: 16px; font-weight: 700; }
.mu { color: var(--mu); }
.ink { color: var(--at); }
.sm { font-size: 13px; }
.xs { font-size: 11.5px; }
.b { font-weight: 700; }
.sb { font-weight: 600; }
.cap-l { font-size: 12px; font-weight: 700; letter-spacing: .7px; color: var(--mu); text-transform: uppercase; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- layout helpers ---------- */
.row { display: flex; align-items: center; gap: 12px; }
.col { display: flex; flex-direction: column; gap: 10px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.f1 { flex: 1; min-width: 0; }
.g6 { gap: 6px; } .g8 { gap: 8px; } .g16 { gap: 16px; }
.mt-a { margin-top: auto; }
.center { text-align: center; }
.ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- components ---------- */
.appbar { display: flex; align-items: center; gap: 12px; min-height: 46px; }
.ib { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.ib.sm { width: 36px; height: 36px; border-radius: 12px; }
.card { border-radius: 22px; padding: 16px; }
.card.tight { padding: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px; border-radius: 18px; font-size: 16px; font-weight: 600; padding: 0 20px; }
.btn.sm { min-height: 40px; border-radius: 13px; font-size: 14px; padding: 0 14px; }
.btn.xl { min-height: 72px; border-radius: 22px; font-size: 19px; }
.btn-a { background: var(--a); color: var(--oa); box-shadow: 6px 6px 14px var(--sd), -6px -6px 14px var(--sl), inset 2px 2px 3px rgb(255 255 255 / .5), inset -2px -2px 4px rgb(0 0 0 / .14); }
.btn-s { background: var(--s); color: var(--fg); box-shadow: 4px 4px 10px var(--sd), -4px -4px 10px var(--sl); }
.btn-p { background: var(--p); color: #fff; box-shadow: 4px 4px 10px var(--sd), -4px -4px 10px var(--sl); }
.btn-d { background: var(--dg); color: #fff; box-shadow: 4px 4px 10px var(--sd), -4px -4px 10px var(--sl); }
.w100 { width: 100%; }
.input { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 14px; border-radius: 15px; color: var(--fg); }
.input .ph { color: var(--mu); opacity: .8; }
.lbl { font-size: 12.5px; font-weight: 600; color: var(--mu); margin: 0 0 6px 4px; display: block; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.chip.on { background: var(--a); color: var(--oa); box-shadow: 3px 3px 7px var(--sd), -3px -3px 7px var(--sl); }
.tone-ok { background: color-mix(in srgb, var(--ag) 16%, var(--s)); color: var(--at); }
.tone-warn { background: color-mix(in srgb, #D97706 16%, var(--s)); color: #92400E; }
.tone-bad { background: color-mix(in srgb, var(--dg) 14%, var(--s)); color: var(--dt); }
.tone-info { background: color-mix(in srgb, var(--p) 10%, var(--s)); color: var(--p); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.av { width: 44px; height: 44px; border-radius: 15px; display: grid; place-items: center; font-weight: 700; font-size: 15px; flex: none; color: var(--p); background: color-mix(in srgb, var(--a) 40%, var(--s)); }
.av.lg { width: 64px; height: 64px; border-radius: 20px; font-size: 22px; }
.av.photo { background: linear-gradient(145deg, color-mix(in srgb, var(--p) 25%, #fff), color-mix(in srgb, var(--a) 35%, #fff)); }
.ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; color: var(--ag); }
.ic.sm { width: 36px; height: 36px; border-radius: 12px; }
.list { border-radius: 22px; padding: 6px 14px; }
.li { display: flex; align-items: center; gap: 12px; padding: 11px 0; }
.li + .li { border-top: 1px solid color-mix(in srgb, var(--p) 8%, transparent); }
.li .t { font-weight: 600; font-size: 15px; }
.li .s { font-size: 12.5px; color: var(--mu); margin-top: 1px; }
.sec { display: flex; justify-content: space-between; align-items: baseline; margin-top: 2px; }
.sec .t { font-size: 16px; font-weight: 700; color: var(--p); }
.sec .a { font-size: 13px; font-weight: 600; color: var(--at); }
.seg { display: flex; padding: 4px; border-radius: 15px; gap: 4px; }
.seg span { flex: 1; text-align: center; padding: 9px 4px; border-radius: 11px; font-size: 13px; font-weight: 600; color: var(--mu); white-space: nowrap; }
.seg span.on { background: var(--s); color: var(--fg); box-shadow: 3px 3px 7px var(--sd), -3px -3px 7px var(--sl); }
.toggle { width: 42px; height: 25px; border-radius: 13px; position: relative; flex: none; box-shadow: inset 3px 3px 7px var(--sd), inset -3px -3px 7px var(--sl); }
.toggle::after { content: ''; position: absolute; top: 3.5px; left: 3.5px; width: 18px; height: 18px; border-radius: 50%; background: var(--s2); box-shadow: 2px 2px 4px var(--sd); }
.toggle.on::after { left: 20px; background: var(--a); }
.prog { height: 8px; border-radius: 6px; overflow: hidden; box-shadow: inset 2px 2px 4px var(--sd), inset -2px -2px 4px var(--sl); }
.prog i { display: block; height: 100%; border-radius: 6px; background: var(--a); }
.divider { height: 2px; border-radius: 2px; box-shadow: inset 1px 1px 2px var(--sd), inset -1px -1px 1px var(--sl); }
.qr { width: 160px; height: 160px; border-radius: 18px; padding: 12px; background: #fff; }
.illus { border-radius: 20px; display: grid; place-items: center; color: var(--ag); }
.badge-n { min-width: 18px; height: 18px; border-radius: 9px; padding: 0 5px; font-size: 11px; font-weight: 700; display: grid; place-items: center; background: var(--dg); color: #fff; }
.fab { position: absolute; right: 20px; bottom: 102px; width: 58px; height: 58px; border-radius: 20px; display: grid; place-items: center; z-index: 20; }
.scrim { position: absolute; inset: 0; background: rgb(6 12 20 / .45); z-index: 30; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 31; background: var(--s); border-radius: 30px 30px 0 0; padding: 12px 20px 34px; display: flex; flex-direction: column; gap: 14px; }
.handle { width: 44px; height: 5px; border-radius: 3px; margin: 0 auto 2px; box-shadow: inset 2px 2px 3px var(--sd), inset -2px -2px 3px var(--sl); }
.toast { position: absolute; left: 20px; right: 20px; bottom: 104px; z-index: 35; border-radius: 16px; padding: 12px 14px; font-size: 13.5px; font-weight: 600; background: var(--p); color: #fff; display: flex; gap: 10px; align-items: center; }

/* bottom tab bar */
.tabbar { flex: none; margin: 8px 14px 26px; border-radius: 26px; padding: 8px 6px; display: flex; justify-content: space-around; }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 600; color: var(--mu); text-decoration: none; padding: 5px 0; border-radius: 16px; position: relative; }
.tabbar a.on { color: var(--fg); box-shadow: inset 3px 3px 7px var(--sd), inset -3px -3px 7px var(--sl); }
.tabbar a.on svg { color: var(--ag); }
.tabbar a .badge-n { position: absolute; top: 0; right: 14px; }
.tablet .tabbar { margin: 10px 26px 22px; padding: 10px; }
.tablet .tabbar a { font-size: 13px; gap: 5px; }

/* hero header block */
.hero { margin: 0 -20px; padding: 6px 20px 22px; border-radius: 0 0 30px 30px; background: var(--p); color: #fff; box-shadow: 0 10px 24px var(--sd); }
.hero .mu { color: rgb(255 255 255 / .72); }
.hero .ink { color: var(--ad); }
.hero .ib { background: var(--p8); color: #fff; box-shadow: 3px 3px 8px var(--dd), -3px -3px 8px var(--dl); }
.dark-screen { background: var(--p) !important; color: #fff; }
.dark-screen .mu { color: rgb(255 255 255 / .72); }

/* guard (tablet) */
.gbig { border-radius: 26px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; min-height: 150px; }
.gbig .ic { width: 58px; height: 58px; border-radius: 18px; }
.gbig .lab { font-size: 22px; font-weight: 700; color: var(--p); }
.offline { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 14px; font-size: 13px; font-weight: 600; }

/* calendar / slots */
.days { display: flex; gap: 8px; }
.days span { flex: 1; border-radius: 15px; padding: 8px 0; text-align: center; font-size: 12px; font-weight: 600; color: var(--mu); }
.days span b { display: block; font-size: 17px; color: var(--fg); }
.days span.on { background: var(--a); color: var(--oa); box-shadow: 3px 3px 7px var(--sd), -3px -3px 7px var(--sl); }
.days span.on b { color: var(--oa); }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.slots span { border-radius: 14px; padding: 10px 0; text-align: center; font-size: 13px; font-weight: 600; }
.slots span.off { opacity: .4; text-decoration: line-through; }
.slots span.on { background: var(--a); color: var(--oa); }

/* timeline */
.tl { position: relative; padding-left: 22px; display: flex; flex-direction: column; gap: 14px; }
.tl::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: color-mix(in srgb, var(--p) 15%, transparent); }
.tl .ev { position: relative; }
.tl .ev::before { content: ''; position: absolute; left: -21px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--s); box-shadow: 0 0 0 3px var(--ag); }
.tl .ev.done::before { background: var(--ag); }

/* chat */
.bubble { max-width: 82%; padding: 11px 14px; border-radius: 18px; font-size: 14px; line-height: 1.45; }
.bubble.me { align-self: flex-end; background: var(--p); color: #fff; border-bottom-right-radius: 6px; }
.bubble.bot { align-self: flex-start; border-bottom-left-radius: 6px; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
