/* EduX Plus parent web app (iPhone, 2026-11-27). Look = the approved mock: sky header, white cards, Hind Siliguri + Poppins. */
:root {
  --sky: #1576AD; --sky-d: #0F5A86; --sky-l: #E3F0F9; --sky-t: #E2EEF7;
  --bg: #F3F6FA; --card: #FFFFFF; --ink: #17212B; --ink2: #2F3A46; --soft: #4E5966; --mute: #5B6572; --line: #E4E9EF;
  --green: #1B7F48; --green-l: #E8F5EE; --green-d: #155F37;
  --red: #C23A2E; --red-l: #FBE9E7; --red-d: #9E2A20;
  --amber: #9A5B00; --amber-l: #FFF6E5; --amber-b: #F1D49A;
  --xpert: #1E63C8; --xpert-d: #164A96; --xpert-l: #EEF3FA;
  --purple: #5B45A8; --purple-l: #EEEAF8; --clay: #A4501A; --clay-l: #FCEBDD; --rose: #A8325B; --rose-l: #FBE7EE;
  --safe-top: env(safe-area-inset-top, 0px); --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font: 'Poppins', 'Hind Siliguri', system-ui, -apple-system, sans-serif;
  --bn: 'Hind Siliguri', 'Poppins', system-ui, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.4; }
body { min-height: 100vh; min-height: 100dvh; overscroll-behavior-y: none; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--sky); }
img { max-width: 100%; }
p, h1, h2, h3 { margin: 0; }
.bn { font-family: var(--bn); }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.boot { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.boot img { border-radius: 18px; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(0.94); opacity: 0.8; } }

/* screen frame */
.screen { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; max-width: 560px; margin: 0 auto; background: var(--bg); }
.screen.white { background: var(--card); }
.screen.chat { background: #EAEFF4; }
.screen.xchat { background: var(--xpert-l); }
.body { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.body.flush { padding: 0; gap: 0; }
.foot { padding: 6px 0 calc(16px + var(--safe-bottom)); text-align: center; font-size: 12px; color: var(--sky); font-weight: 500; }
.spacer { flex: 1; }

/* header bar */
.bar { background: var(--sky); color: #fff; padding: calc(10px + var(--safe-top)) 8px 12px; display: flex; align-items: center; gap: 4px; position: sticky; top: 0; z-index: 5; }
.bar.xpert { background: var(--xpert); }
.bar .titles { flex: 1; min-width: 0; padding: 0 4px; }
.bar .t1 { font-size: 18px; font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .t2 { font-size: 12.5px; color: var(--sky-t); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { width: 44px; height: 44px; border: 0; background: transparent; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; position: relative; cursor: pointer; flex: none; color: inherit; padding: 0; }
.icon-btn:active { background: rgba(255,255,255,0.15); }
.icon-btn svg { width: 24px; height: 24px; }
.badge { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 600; display: flex; align-items: center; justify-content: center; border: 2px solid var(--sky); }
.school-logo { width: 42px; height: 42px; border-radius: 50%; background: #fff; padding: 3px; object-fit: contain; flex: none; }
.home-bar { padding-left: 14px; gap: 8px; }
.home-bar .titles { cursor: pointer; }

/* hero (login / found) */
.hero { background: var(--sky); color: #fff; padding: calc(34px + var(--safe-top)) 22px 24px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.hero .logo-big { width: 76px; height: 76px; border-radius: 22px; background: #fff; padding: 6px; object-fit: contain; }
.hero .h { font-family: var(--bn); font-size: 24px; font-weight: 700; line-height: 1.2; }
.hero .s { font-size: 13.5px; color: var(--sky-t); }
.hero .ok { width: 64px; height: 64px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; }
.hero .ok svg { width: 34px; height: 34px; }

/* text */
.h1 { font-family: var(--bn); font-size: 24px; font-weight: 700; line-height: 1.25; }
.lead { font-family: var(--bn); font-size: 15.5px; line-height: 1.5; color: var(--soft); }
.note { font-family: var(--bn); font-size: 13.5px; line-height: 1.5; color: var(--soft); text-align: center; }
.small { font-size: 12.5px; color: var(--mute); }
.err { font-family: var(--bn); font-size: 14.5px; line-height: 1.45; color: var(--red-d); background: var(--red-l); border-radius: 12px; padding: 10px 12px; }
.info { font-family: var(--bn); font-size: 14.5px; line-height: 1.45; color: var(--sky-d); background: var(--sky-l); border-radius: 12px; padding: 10px 12px; }

/* forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--bn); font-size: 14px; font-weight: 600; color: #3A4552; }
.input, select.input { height: 52px; padding: 0 14px; border-radius: 14px; background: #fff; border: 1.5px solid #CBD5E0; font-size: 17px; width: 100%; outline: none; -webkit-appearance: none; appearance: none; }
.input:focus { border: 2px solid var(--sky); box-shadow: 0 0 0 4px rgba(21,118,173,0.12); }
.phone-row { display: flex; gap: 8px; }
.phone-row .cc { height: 52px; padding: 0 14px; border-radius: 14px; background: #fff; border: 1.5px solid #CBD5E0; display: flex; align-items: center; font-size: 17px; font-weight: 500; }
.otp-input { height: 60px; text-align: center; font-size: 28px; font-weight: 600; letter-spacing: 12px; padding-left: 26px; }
.btn { height: 52px; border-radius: 14px; border: 0; background: var(--sky); color: #fff; font-family: var(--bn); font-size: 17px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; text-decoration: none; cursor: pointer; }
.btn svg { width: 22px; height: 22px; }
.btn.green { background: var(--green); }
.btn.amber { background: var(--amber); height: 46px; font-size: 16px; }
.btn.ghost { background: #fff; color: var(--sky-d); border: 1.5px solid var(--sky); }
.btn.danger { background: #fff; color: var(--red-d); border: 1.5px solid #E6B3AE; }
.btn:disabled { opacity: 0.55; }
.link-btn { border: 0; background: none; color: var(--sky); font-family: var(--bn); font-size: 14.5px; font-weight: 600; padding: 8px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* cards & lists */
.card { background: var(--card); border-radius: 18px; padding: 14px 16px; box-shadow: 0 2px 10px rgba(23,33,43,0.06); }
.checks { display: flex; flex-direction: column; gap: 9px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-family: var(--bn); font-size: 14.5px; line-height: 1.4; color: #3A4552; }
.check svg { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--green); }
.steps { display: flex; flex-direction: column; }
.step { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-family: var(--bn); font-size: 15.5px; }
.step:last-child { border-bottom: 0; }
.step .n { width: 30px; height: 30px; border-radius: 50%; background: var(--sky); color: #fff; font-family: var(--font); font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex: none; }
.step .tx { flex: 1; }
.step svg { width: 26px; height: 26px; color: var(--sky); }
.list { background: var(--card); border-radius: 18px; box-shadow: 0 2px 10px rgba(23,33,43,0.06); overflow: hidden; }
.row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; text-decoration: none; color: var(--ink); border: 0; background: none; width: 100%; text-align: left; cursor: pointer; }
.row + .row { border-top: 1px solid #E9EEF3; }
.row:active { background: #F2F5F8; }
.row .ic { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; }
.row .ic svg { width: 22px; height: 22px; }
.row .mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.row .t { font-size: 15.5px; font-weight: 600; }
.row .s { font-size: 12.5px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--bn); }
.row .r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.row .time { font-size: 12px; color: var(--mute); }
.row .chev, .row > svg { width: 18px; height: 18px; color: #8A96A3; flex: none; }
.sheet .row > svg { color: var(--green); width: 20px; height: 20px; }
.pill { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--green); color: #fff; font-size: 11.5px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.diary .row { padding: 13px 18px; border-radius: 0; }
.diary .row .ic { width: 50px; height: 50px; }
.diary .row .ic svg { width: 25px; height: 25px; }
.diary .row .t { font-size: 16px; }
.diary .row .s { font-size: 13.5px; }
.ic.sky { background: var(--sky-l); color: var(--sky); } .ic.purple { background: var(--purple-l); color: var(--purple); }
.ic.clay { background: var(--clay-l); color: var(--clay); } .ic.green { background: var(--green-l); color: var(--green); }
.ic.rose { background: var(--rose-l); color: var(--rose); } .ic.blue { background: #E6EEFA; color: var(--xpert); }
.ic.grey { background: #EEF1F4; color: var(--soft); }

/* children */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { height: 36px; padding: 0 16px; border-radius: 18px; border: 1.5px solid #CBD5E0; background: #fff; color: #3A4552; font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer; flex: none; }
.chip.on { background: var(--sky); border-color: var(--sky); color: #fff; font-weight: 600; }
.chip.add { width: 36px; padding: 0; border-style: dashed; border-color: #9AA8B8; display: flex; align-items: center; justify-content: center; }
.chip.add svg { width: 18px; height: 18px; color: var(--soft); }
.kid { display: flex; align-items: center; gap: 14px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--sky-l); color: var(--sky); font-size: 20px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; object-fit: cover; overflow: hidden; }
.avatar.alt { background: var(--clay-l); color: var(--clay); }
.kid .name { font-size: 18px; font-weight: 600; line-height: 1.25; }
.kid .cls { font-size: 13.5px; color: var(--soft); }
.kid-row { display: flex; align-items: center; gap: 14px; }
.kid-row .mid { flex: 1; min-width: 0; }
.kid-row .done, .kid-row > svg { width: 24px; height: 24px; color: var(--green); flex: none; }

/* attendance summary */
.month { display: flex; align-items: center; gap: 16px; }
.ring { position: relative; width: 84px; height: 84px; flex: none; }
.ring svg { width: 84px; height: 84px; transform: rotate(-90deg); }
.ring .pc { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 700; color: var(--green); }
.ring circle.fg { transition: stroke-dasharray 0.9s ease; }
.stats3 { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.stat .v { font-size: 18px; font-weight: 700; }
.stat .l { font-size: 11.5px; color: var(--soft); }
.v.green { color: var(--green); } .v.red { color: var(--red); } .v.amber { color: var(--amber); } .v.sky { color: var(--sky); }
.today { display: flex; align-items: center; gap: 8px; border-radius: 12px; padding: 9px 12px; font-family: var(--bn); font-size: 14px; font-weight: 600; }
.today svg { width: 18px; height: 18px; flex: none; }
.today.ok { background: var(--green-l); color: var(--green-d); }
.today.wait { background: #EEF1F4; color: #3A4552; }
.today.off { background: var(--amber-l); color: #6B4500; }
.today.bad { background: var(--red-l); color: var(--red-d); }
.xpert-card { background: var(--xpert); border-radius: 18px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; border: 0; width: 100%; text-align: left; cursor: pointer; }
.xpert-card .xi { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.18); display: flex; align-items: center; justify-content: center; flex: none; }
.xpert-card .xi svg, .xpert-card > svg { width: 22px; height: 22px; }
.xpert-card .t { font-size: 15.5px; font-weight: 600; }
.xpert-card .s { font-size: 12.5px; color: #E6F0FC; }
.notify-card { background: var(--amber-l); border: 1.5px solid var(--amber-b); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.notify-card .hd { display: flex; gap: 12px; align-items: flex-start; }
.notify-card .hd svg { width: 26px; height: 26px; color: var(--amber); flex: none; }
.notify-card .t { font-family: var(--bn); font-size: 16.5px; font-weight: 700; color: #5E3A00; }
.notify-card .s { font-family: var(--bn); font-size: 14px; line-height: 1.45; color: #5E4A2A; }

/* feed bubbles */
.feed { padding: 14px 14px 20px; display: flex; flex-direction: column; gap: 10px; }
.day { align-self: center; background: #fff; border-radius: 10px; padding: 4px 12px; font-family: var(--bn); font-size: 13px; font-weight: 600; color: var(--soft); }
.bubble { align-self: flex-start; max-width: 92%; background: #fff; border-radius: 4px 16px 16px 16px; padding: 10px 12px 8px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 1px 3px rgba(23,33,43,0.08); border: 0; text-align: left; cursor: pointer; color: var(--ink); width: auto; }
.bubble:active { background: #F6F8FA; }
.tag { align-self: flex-start; border-radius: 8px; padding: 2px 8px; font-size: 12px; font-weight: 600; background: var(--sky-l); color: var(--sky-d); }
.tag.t1 { background: var(--purple-l); color: #4A3790; } .tag.t2 { background: var(--green-l); color: var(--green-d); }
.tag.t3 { background: var(--clay-l); color: #7E3B10; } .tag.t4 { background: var(--rose-l); color: #86244A; }
.tag.urgent { background: var(--red-l); color: var(--red-d); }
.bubble .ti { font-size: 15.5px; font-weight: 600; }
.bubble .tx { font-family: var(--bn); font-size: 14.5px; line-height: 1.45; color: var(--ink2); white-space: pre-wrap; word-break: break-word; }
.bubble .meta { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.bubble .due { font-size: 12px; font-weight: 600; color: var(--clay); }
.bubble .tm { font-size: 11.5px; color: var(--mute); margin-left: auto; }
.thumbs { display: flex; gap: 6px; flex-wrap: wrap; }
.thumbs img, .thumbs .pdf { width: 92px; height: 92px; border-radius: 10px; object-fit: cover; background: #EEF1F4; }
.thumbs .pdf, .thumbs .gone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--red-d); text-decoration: none; }
.thumbs .pdf svg { width: 30px; height: 30px; }
.thumbs .gone { width: 92px; height: 92px; border-radius: 10px; background: #EEF1F4; color: var(--mute); font-family: var(--bn); text-align: center; padding: 6px; }
.empty { text-align: center; padding: 40px 24px; font-family: var(--bn); color: var(--soft); font-size: 15px; line-height: 1.5; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty svg { width: 44px; height: 44px; color: #9AA8B8; }
.search { padding: 10px 12px; background: var(--sky); position: sticky; top: calc(66px + var(--safe-top)); z-index: 4; }
.search input { height: 42px; border-radius: 21px; border: 0; padding: 0 16px; width: 100%; font-family: var(--bn); font-size: 15px; outline: none; }

/* item detail */
.detail { display: flex; flex-direction: column; gap: 12px; }
.detail .ti { font-size: 20px; font-weight: 600; line-height: 1.3; }
.detail .by { font-size: 13px; color: var(--soft); }
.detail .tx { font-family: var(--bn); font-size: 15.5px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: #EEF1F4; cursor: zoom-in; }
.viewer { position: fixed; inset: 0; background: rgba(8,12,18,0.96); z-index: 50; display: flex; align-items: center; justify-content: center; }
.viewer img { max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer .icon-btn { position: absolute; top: calc(8px + var(--safe-top)); right: 8px; color: #fff; }

/* attendance calendar */
.stats4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.stats4 .card { padding: 10px 6px; display: flex; flex-direction: column; align-items: center; border-radius: 14px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; }
.cal-head .icon-btn { color: #3A4552; }
.cal-head .icon-btn:disabled { opacity: 0.3; }
.cal-head .m { font-size: 15.5px; font-weight: 600; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal .wd { text-align: center; font-size: 11.5px; font-weight: 600; color: var(--mute); padding-bottom: 2px; }
.cal .d { height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; }
.d.p { background: var(--green); color: #fff; } .d.a { background: var(--red); color: #fff; } .d.h { background: #E4E9EF; color: var(--mute); }
.d.u { background: #fff; color: var(--mute); border: 1px solid #DCE3EB; } .d.w { background: #fff; color: #3A4552; border: 1.5px dashed #9AA8B8; }
.d.now { box-shadow: inset 0 0 0 2.5px var(--ink); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; padding-top: 4px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #3A4552; }
.legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.dayrow { display: flex; align-items: center; gap: 12px; padding: 11px 14px; }
.dayrow + .dayrow { border-top: 1px solid #E9EEF3; }
.dayrow .dn { width: 44px; display: flex; flex-direction: column; align-items: center; flex: none; }
.dayrow .dn b { font-size: 17px; }
.dayrow .dn span { font-size: 11px; color: var(--mute); }
.dayrow .mid { flex: 1; min-width: 0; }
.dayrow .mid b { font-size: 14px; font-weight: 600; display: block; }
.dayrow .mid span { font-size: 12px; color: var(--soft); font-family: var(--bn); }
.st { border-radius: 8px; padding: 3px 9px; font-size: 12px; font-weight: 600; flex: none; }
.st.p { background: var(--green-l); color: var(--green-d); } .st.a { background: var(--red-l); color: var(--red-d); } .st.h { background: #EEF1F4; color: var(--soft); }

/* profile */
.kv { display: flex; flex-direction: column; }
.kv div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.kv div:last-child { border-bottom: 0; }
.kv span { color: var(--soft); font-family: var(--bn); }
.kv b { font-weight: 500; text-align: right; word-break: break-word; }
.profile-top { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 0 4px; text-align: center; }
.profile-top .avatar { width: 92px; height: 92px; font-size: 30px; }

/* xpert chat */
.chatlog { flex: 1; padding: 14px 14px 10px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 86%; border-radius: 4px 16px 16px 16px; padding: 10px 13px; background: #fff; box-shadow: 0 1px 3px rgba(23,33,43,0.08); align-self: flex-start; font-family: var(--bn); font-size: 15px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.msg.me { align-self: flex-end; background: var(--xpert); color: #fff; border-radius: 16px 4px 16px 16px; font-family: var(--font); }
.msg .sub { background: #F3F6FA; border-radius: 12px; padding: 9px 11px; margin-top: 8px; display: flex; flex-direction: column; gap: 2px; white-space: normal; }
.msg .sub b { font-size: 12px; color: var(--sky-d); }
.msg a { color: var(--xpert); font-weight: 600; }
.typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #9AA8B8; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.2s; } .typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 50% { opacity: 0.25; } }
.suggest { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 14px 10px; }
.suggest button { height: 36px; padding: 0 14px; border-radius: 18px; border: 1.5px solid #B9CCEC; background: #fff; color: var(--xpert-d); font-size: 13px; font-weight: 500; cursor: pointer; font-family: var(--font); }
.composer { padding: 10px 12px calc(12px + var(--safe-bottom)); background: #fff; display: flex; align-items: center; gap: 8px; border-top: 1px solid #E1E8F2; position: sticky; bottom: 0; }
.composer input { flex: 1; min-width: 0; height: 46px; border-radius: 23px; border: 1.5px solid #D5DDE6; padding: 0 16px; font-family: var(--bn); font-size: 16px; background: #F7F9FC; outline: none; }
.composer button { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--xpert); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; cursor: pointer; }
.composer button svg { width: 20px; height: 20px; }

/* sheet menu */
.sheet-back { position: fixed; inset: 0; background: rgba(15,22,32,0.45); z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: #fff; width: 100%; max-width: 560px; border-radius: 22px 22px 0 0; padding: 10px 8px calc(14px + var(--safe-bottom)); display: flex; flex-direction: column; }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: #D5DDE6; align-self: center; margin-bottom: 8px; }
.sheet .sh { padding: 6px 12px 10px; font-size: 13px; color: var(--soft); font-family: var(--bn); }
.sheet .row { border-radius: 12px; }
.sheet .row + .row { border-top: 0; }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(24px + var(--safe-bottom)); transform: translateX(-50%); background: #1F2933; color: #fff; padding: 11px 18px; border-radius: 14px; font-family: var(--bn); font-size: 14.5px; z-index: 60; max-width: 88vw; text-align: center; box-shadow: 0 8px 24px rgba(0,0,0,0.25); }

/* install guide preview icon */
.home-icon { display: flex; align-items: center; gap: 16px; padding: 4px 6px; }
.home-icon .ico { display: flex; flex-direction: column; align-items: center; gap: 5px; flex: none; }
.home-icon .ico img { width: 62px; height: 62px; border-radius: 15px; box-shadow: 0 3px 10px rgba(23,33,43,0.14); }
.home-icon .ico span { font-size: 11.5px; }
.loading { display: flex; justify-content: center; padding: 30px; }
.spin { width: 30px; height: 30px; border-radius: 50%; border: 3px solid #D5DDE6; border-top-color: var(--sky); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
