/* Mobile app shell shared by the Student and Employer apps (PWA; mirrors the native Kotlin/Swift layout) */
body.app { background: #e9e0f1; }
.shell { max-width: 460px; margin: 0 auto; min-height: 100vh; background: var(--lav); position: relative; padding-bottom: 84px; }
@media (min-width: 600px) { .shell { box-shadow: 0 0 0 1px #ddd0e9, 0 20px 60px rgba(36,22,74,.12); } }
.topbar { position: sticky; top: 0; z-index: 50; background: var(--indigo); color: #fff; padding: 14px 16px 12px; display: flex; align-items: center; gap: 10px; }
.topbar .t { flex: 1; min-width: 0; } .topbar h2 { color: #fff; margin: 0; font-size: 1.08rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .s { font-size: .74rem; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .topbar .icon-btn { color: #fff; position: relative; }
.topbar .dot { position: absolute; top: 3px; right: 3px; width: 8px; height: 8px; background: var(--gold); border-radius: 50%; }
.sos-btn { background: var(--red); color: #fff; border: 0; border-radius: 99px; padding: 6px 11px; font: inherit; font-weight: 800; font-size: .75rem; cursor: pointer; letter-spacing: .05em; }
.view { padding: 14px; } .view > h2 { margin: 4px 2px 12px; }
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 460px; background: #fff; display: flex; border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); z-index: 60; }
.tabbar a { flex: 1; text-align: center; text-decoration: none; color: var(--muted); font-size: .68rem; font-weight: 700; padding: 4px 0; border-radius: 10px; }
.tabbar a i { display: block; font-style: normal; font-size: 1.25rem; line-height: 1.3; filter: grayscale(1); opacity: .7; }
.tabbar a.on { color: var(--accent); } .tabbar a.on i { filter: none; opacity: 1; }
.hero { background: linear-gradient(135deg, var(--indigo), var(--purple)); color: #fff; border-radius: 18px; padding: 18px; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.07); }
.hero .l { font-size: .78rem; opacity: .8; font-weight: 600; } .hero .v { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; } .hero h3 { color: #fff; }
.hero.magenta { background: linear-gradient(135deg, var(--magenta), var(--purple)); } .hero.teal { background: linear-gradient(135deg, var(--teal), #0d5a55); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tile { background: #fff; border-radius: 14px; padding: 12px 4px; text-align: center; text-decoration: none; color: var(--ink); font-size: .72rem; font-weight: 700; box-shadow: var(--shadow); border: 1px solid #efe7f5; }
.tile i { display: block; font-style: normal; font-size: 1.4rem; margin-bottom: 4px; }
.section-h { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 2px 8px; } .section-h h3 { margin: 0; } .section-h a { font-size: .8rem; font-weight: 700; text-decoration: none; }
.job { display: block; text-decoration: none; color: inherit; }
.job .meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: .8rem; color: var(--muted); margin-top: 6px; }
.wage { color: var(--green); font-weight: 800; }
.timer { font-variant-numeric: tabular-nums; font-size: 2.2rem; font-weight: 800; letter-spacing: .02em; }
.shift-live { background: linear-gradient(135deg, var(--green), #155c33); }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: #7dffb0; display: inline-block; animation: pulse 1.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(125,255,176,.7); } 70% { box-shadow: 0 0 0 10px rgba(125,255,176,0); } 100% { box-shadow: 0 0 0 0 rgba(125,255,176,0); } }
.seg { display: flex; background: #fff; border-radius: 12px; padding: 4px; gap: 4px; box-shadow: var(--shadow); margin-bottom: 12px; overflow-x: auto; }
.seg button { flex: 1; border: 0; background: none; padding: 8px 10px; border-radius: 9px; font: inherit; font-weight: 700; font-size: .82rem; color: var(--muted); cursor: pointer; white-space: nowrap; }
.seg button.on { background: var(--accent); color: #fff; }
.search { position: relative; margin-bottom: 12px; } .search input { padding-left: 38px; margin: 0; } .search::before { content: '🔍'; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: .9rem; opacity: .6; }
.tree details { background: #fff; border-radius: 12px; margin-bottom: 8px; box-shadow: var(--shadow); border: 1px solid #efe7f5; }
.tree summary { padding: 12px 14px; font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.tree summary::-webkit-details-marker { display: none; } .tree summary::after { content: '›'; transition: transform .2s; color: var(--muted); } .tree details[open] > summary::after { transform: rotate(90deg); }
.tree .inner { padding: 0 10px 10px; } .tree .inner details { box-shadow: none; background: var(--lav); }
.chapter { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 10px; background: #fff; margin-top: 6px; cursor: pointer; font-size: .88rem; font-weight: 600; }
.q-card .opt { display: flex; gap: 10px; align-items: center; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px; margin-top: 8px; cursor: pointer; font-size: .9rem; }
.q-card .opt:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, #fff); }
.q-card .opt.right { border-color: var(--green); background: #e9f6ee; } .q-card .opt.wrong { border-color: var(--red); background: #fdeceb; }
.qnav { display: flex; flex-wrap: wrap; gap: 6px; } .qnav button { width: 34px; height: 34px; border-radius: 9px; border: 1.5px solid var(--line); background: #fff; font: inherit; font-weight: 700; font-size: .8rem; cursor: pointer; }
.qnav button.done { background: var(--lav2); border-color: var(--purple); color: var(--purple); } .qnav button.cur { background: var(--accent); color: #fff; border-color: var(--accent); }
.pdf-frame { width: 100%; height: 70vh; border: 0; border-radius: 12px; background: #fff; }
.month-card summary { list-style: none; cursor: pointer; } .month-card summary::-webkit-details-marker { display: none; }
.sticky-cta { position: sticky; bottom: 76px; margin-top: 12px; z-index: 5; padding-top: 14px; background: linear-gradient(to bottom, transparent, var(--lav) 14px); }
.sticky-cta .btn:disabled { opacity: 1; background: #ece6f2; color: var(--muted); border-color: #e2d8ec; }

.shell .g3 { grid-template-columns: repeat(3, minmax(0,1fr)); } .shell .g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.shell .stat .v { font-size: 1.25rem; }
.pdf-pages { max-height: 72vh; overflow: auto; background: #ece6f2; border-radius: 12px; padding: 8px; } .pdf-pages canvas { width: 100%; display: block; margin: 0 auto 8px; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,.12); background: #fff; }

/* ---- V4+ : assistant, store, language ---- */
.lang-btn { font-weight: 800; font-size: .85rem !important; border: 1.5px solid rgba(255,255,255,.35) !important; border-radius: 8px !important; padding: 3px 7px !important; }
.fab { position: fixed; right: max(16px, calc(50% - 214px)); bottom: 92px; z-index: 55; width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(135deg, var(--magenta), var(--purple)); color: #fff; display: grid; place-items: center; font-size: 1.5rem; text-decoration: none; box-shadow: 0 10px 24px rgba(90,46,145,.45); }
.coin-chip { background: rgba(255,255,255,.18); color: #fff; text-decoration: none; font-weight: 800; font-size: .78rem; padding: 3px 9px; border-radius: 99px; }
.chat { display: flex; flex-direction: column; gap: 8px; padding-bottom: 6px; }
.msg { max-width: 85%; padding: 10px 13px; border-radius: 16px; font-size: .9rem; white-space: pre-wrap; line-height: 1.45; box-shadow: var(--shadow); }
.msg.bot { background: #fff; border-bottom-left-radius: 4px; align-self: flex-start; color: var(--ink); }
.msg.me { background: var(--magenta); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg.typing span { display: inline-block; width: 7px; height: 7px; margin: 0 2px; background: var(--muted); border-radius: 50%; animation: blink 1.2s infinite; }
.msg.typing span:nth-child(2) { animation-delay: .2s; } .msg.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.sugg { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0; } .sugg .chip { white-space: nowrap; margin: 0; }
.chat-in { position: sticky; bottom: 76px; display: flex; gap: 8px; background: var(--lav); padding: 8px 0; } .chat-in input { margin: 0; border-radius: 99px; padding-left: 16px; } .chat-in .btn { border-radius: 99px; }
.product { display: flex; flex-direction: column; padding: 12px; } .product .p-icon { font-size: 2rem; margin-bottom: 4px; }
.tiles { row-gap: 8px; }

/* ---- Alignment fixes ---- */
.seg.four { display: grid; grid-template-columns: repeat(4, 1fr); overflow: visible; }
.seg.four button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 2px; font-size: .7rem; line-height: 1.2; white-space: normal; }
.seg.four button span { font-size: 1.05rem; }
.tree summary .t { display: flex; align-items: center; gap: 8px; min-width: 0; }
.product { height: 100%; } .product > .tiny { flex: 1; } .product .btn { margin-top: auto; }
.grid > .product { margin-top: 0; }
.shell .stat { display: flex; flex-direction: column; justify-content: flex-start; }
.chat { min-height: calc(100vh - 330px); justify-content: flex-end; }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; line-height: 1.2; }
.meta > span { white-space: nowrap; }

.star-pick { display: inline-flex; gap: 2px; } .star { background: none; border: 0; font-size: 1.45rem; color: #d9cfe6; cursor: pointer; padding: 0 1px; line-height: 1; } .star.on { color: var(--gold); }
.kids { display: flex; gap: 6px; padding: 10px 14px 0; overflow-x: auto; } .kids .chip { margin: 0; }
/* V10: voice command button, low-data mode */
.vfab { position: fixed; left: max(16px, calc(50% - 214px)); bottom: 92px; z-index: 55; width: 50px; height: 50px; border-radius: 50%; border: 0; background: #fff; color: var(--purple); font-size: 1.4rem; box-shadow: 0 8px 20px rgba(90,46,145,.3); cursor: pointer; }
.vpulse { font-size: 2.6rem; width: 84px; height: 84px; margin: 6px auto 8px; border-radius: 50%; display: grid; place-items: center; background: var(--lav2); animation: vp 1.4s infinite; }
@keyframes vp { 0%, 100% { box-shadow: 0 0 0 0 rgba(179,54,126,.45); } 50% { box-shadow: 0 0 0 16px rgba(179,54,126,0); } }
html.lite *, html.lite *::before, html.lite *::after { animation: none !important; transition: none !important; box-shadow: none !important; }
html.lite .hero { background: var(--purple) !important; } html.lite .hero::after, html.lite .hero::before { display: none !important; }
html.lite img:not(.keep) { display: none !important; } html.lite .card { border: 1px solid var(--line); }
