* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
:root { --brand: #2b5876; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif; background: #eef2f6; color: #1f2a36; max-width: 480px; margin: 0 auto; min-height: 100vh; padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); position: relative; }
.topbar { background: linear-gradient(135deg, #2b5876, #4e92c4); color: #fff; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 5; }
.brand .logo { font-size: 19px; font-weight: 700; letter-spacing: 1px; }
.brand .logo-en { font-size: 11px; opacity: .85; letter-spacing: 1px; }
.top-right { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; gap: 6px; }
.lang-btn { background: rgba(255,255,255,.18); color: #fff; border: none; border-radius: 8px; padding: 6px 12px; font-size: 13px; cursor: pointer; }
.lang-btn.active { background: #fff; color: #2b5876; font-weight: 600; }
.ghost { background: transparent; border: 1px solid rgba(255,255,255,.4); color: #fff; border-radius: 10px; padding: 5px 12px; font-size: 12px; cursor: pointer; }
.hidden { display: none !important; }

/* ---------- HOME / techno ---------- */
.home { position: relative; min-height: calc(100vh - 56px); background: linear-gradient(160deg, #060a16 0%, #0b1228 55%, #0a0f22 100%); overflow: hidden; padding: 26px 18px 96px; display: flex; flex-direction: column; gap: 22px; }
.aurora { position: absolute; top: -25%; left: -30%; width: 160%; height: 60%; background: radial-gradient(circle at 30% 40%, rgba(0,229,255,.45), transparent 55%), radial-gradient(circle at 75% 35%, rgba(124,92,255,.5), transparent 55%); filter: blur(50px); opacity: .55; animation: drift 14s ease-in-out infinite alternate; pointer-events: none; }
@keyframes drift { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(6%, 8%) scale(1.15); } }
.hero { position: relative; text-align: center; margin-top: 14px; }
.badge { display: inline-block; padding: 6px 14px; border: 1px solid rgba(0,229,255,.4); border-radius: 20px; color: #9fe9ff; font-size: 12px; letter-spacing: 1px; background: rgba(0,229,255,.08); }
.hero h1 { font-size: 26px; color: #eaf6ff; margin: 14px 0 8px; font-weight: 800; letter-spacing: .5px; text-shadow: 0 0 26px rgba(0,229,255,.35); }
.hero .sub { color: #9fb0c8; font-size: 13px; line-height: 1.7; }
.features { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.features span { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: #cfe3ff; font-size: 12px; padding: 7px 12px; border-radius: 12px; backdrop-filter: blur(6px); }
.auth.glass { position: relative; background: rgba(16,22,40,.55); border: 1px solid rgba(124,92,255,.35); border-radius: 20px; padding: 18px; backdrop-filter: blur(14px); box-shadow: 0 20px 60px rgba(0,0,0,.45), inset 0 0 30px rgba(0,229,255,.05); }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.auth-tabs button { flex: 1; padding: 11px; border: none; border-radius: 12px; background: rgba(255,255,255,.06); color: #9fb0c8; font-size: 14px; cursor: pointer; }
.auth-tabs button.active { background: linear-gradient(135deg, #00e5ff, #7c5cff); color: #06121f; font-weight: 700; }
#authForm input { width: 100%; padding: 13px; margin-bottom: 10px; border-radius: 12px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); color: #eaf6ff; font-size: 16px; }
#authForm input::placeholder { color: #7f93ad; }
.primary { display: block; width: 100%; padding: 13px; background: #2b5876; color: #fff; border: none; border-radius: 12px; font-size: 15px; font-weight: 600; cursor: pointer; }
.primary.glow { background: linear-gradient(135deg, #00e5ff, #7c5cff); color: #06121f; box-shadow: 0 8px 30px rgba(0,229,255,.4); }
.primary.small { width: auto; padding: 9px 16px; font-size: 13px; margin: 0; }
.msg { font-size: 13px; margin-top: 6px; min-height: 16px; }
.msg.err { color: #ff8585; } .msg.ok { color: #7dffb0; }
.demo { font-size: 11px; color: #6f84a0; text-align: center; margin-top: 10px; }

/* ---------- APP views (light) ---------- */
.view { display: none; padding: 18px; }
.view.active { display: block; }
h2 { font-size: 19px; margin-bottom: 4px; color: #1f3a52; }
.muted { color: #7c8896; font-size: 13px; line-height: 1.6; margin-bottom: 14px; }
.check-list .grp { margin-bottom: 16px; }
.check-list .cat { font-size: 12px; font-weight: 700; color: #2b5876; text-transform: uppercase; letter-spacing: .5px; margin: 10px 0 6px; }
.check-list .item { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; }
.check-list .item input { width: 20px; height: 20px; accent-color: #2b5876; }
.check-list .item .t { font-size: 15px; }
.check-list .item.done .t { text-decoration: line-through; color: #aab2bc; }
.progress { margin-top: 10px; padding: 12px; background: #e3edf5; border-radius: 12px; font-size: 14px; color: #2b5876; text-align: center; font-weight: 600; }
.nudge { margin-top: 8px; padding: 12px 14px; background: linear-gradient(135deg, rgba(0,229,255,.12), rgba(124,92,255,.12)); border: 1px solid rgba(0,229,255,.35); border-radius: 12px; font-size: 13px; color: #1c2b36; }
.nudge .btn-sm { margin-left: 6px; }
.admin-overview { margin: 10px 0 16px; }
.ovgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ovcell { background: #fff; border: 1px solid #dce3ea; border-radius: 12px; padding: 12px 8px; text-align: center; }
.ovcell b { display: block; font-size: 20px; color: #2b5876; }
.ovcell span { font-size: 11px; color: #8a94a0; }
.admin-products .ap, .admin-qa .aq { background: #fff; border: 1px solid #dce3ea; border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.apn { font-weight: 700; margin-bottom: 8px; }
.apc { font-weight: 400; font-size: 11px; color: #8a94a0; margin-left: 6px; }
.ap label { display: block; font-size: 12px; color: #5b6670; margin: 6px 0 2px; }
.ap input { width: 100%; padding: 8px; border: 1px solid #dce3ea; border-radius: 8px; font-size: 13px; }
.ap .apurl input { font-size: 11px; }
.apsave { margin-top: 8px; }
.admin-form { background: #fff; border: 1px solid #dce3ea; border-radius: 12px; padding: 12px; margin-bottom: 14px; }
.admin-form .afrow { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.admin-form .afrow label { font-size: 12px; color: #5b6670; display: block; }
.admin-form .afrow select, .admin-form .afrow input { padding: 8px; border: 1px solid #dce3ea; border-radius: 8px; font-size: 13px; min-width: 120px; }
.admin-form .afrow label:last-child, .admin-form > label { display: block; font-size: 12px; color: #5b6670; margin: 6px 0 2px; }
.admin-form > label input { width: 100%; padding: 8px; border: 1px solid #dce3ea; border-radius: 8px; font-size: 13px; }
.apout { background: #0f1722; color: #9fe9d6; font-size: 11px; padding: 10px; border-radius: 8px; margin-top: 8px; max-height: 200px; overflow: auto; white-space: pre-wrap; }
.apwarn { font-size: 11px; color: #c0392b; margin-left: 6px; }
.apok { font-size: 11px; color: #1e8e3e; margin-left: 6px; }
.apmeta { font-size: 12px; color: #5b6670; margin-top: 4px; }
.aqh { font-weight: 700; margin-bottom: 4px; }
.aqt { font-weight: 400; color: #2b5876; }
.aqans { margin: 8px 0; }
.aa { font-size: 13px; padding: 4px 0; border-top: 1px dashed #eef2f6; }
.adel, .adelq { margin: 4px 4px 0 0; }
.city-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 8px; }
.city-tabs .ct { flex: none; padding: 8px 14px; background: #fff; border: 1px solid #dce3ea; border-radius: 20px; font-size: 13px; cursor: pointer; white-space: nowrap; }
.city-tabs .ct.active { background: #2b5876; color: #fff; border-color: #2b5876; }
.mode-toggle { display: flex; gap: 8px; margin-bottom: 12px; }
.mode-toggle .mt { flex: 1; padding: 10px; background: #fff; border: 1px solid #dce3ea; border-radius: 12px; font-size: 13px; cursor: pointer; color: #44515f; }
.mode-toggle .mt.active { background: linear-gradient(135deg, #2b5876, #16e0bd); color: #fff; border-color: #2b5876; font-weight: 600; }
.wiki-list .w { background: #fff; border-radius: 12px; padding: 14px; margin-bottom: 10px; }
.wiki-list .w .wc { display: inline-block; background: #e3edf5; color: #2b5876; font-size: 11px; padding: 2px 8px; border-radius: 8px; margin-bottom: 6px; }
.wiki-list .w h3 { font-size: 15px; margin-bottom: 6px; }
.wiki-list .w p { font-size: 14px; line-height: 1.6; color: #44515f; }
.qa-filter { display: flex; gap: 8px; margin-bottom: 12px; }
.qa-filter select { flex: 1; border: 1px solid #dce3ea; border-radius: 10px; padding: 10px; font-size: 14px; background: #fff; }
.qa-list .q { background: #fff; border-radius: 12px; padding: 14px; margin-bottom: 10px; }
.qa-list .q .qh { font-weight: 600; font-size: 15px; }
.qa-list .q .qm { font-size: 12px; color: #7c8896; margin: 4px 0 6px; }
.qa-list .q .qb { font-size: 14px; line-height: 1.6; color: #44515f; }
.qa-list .q .ans { margin-top: 8px; padding-top: 8px; border-top: 1px dashed #e1e7ee; font-size: 13px; color: #2b5876; }
.qa-list .q .ansbox { margin-top: 8px; display: flex; gap: 6px; }
.qa-list .q .ansbox input { flex: 1; border: 1px solid #dce3ea; border-radius: 10px; padding: 9px; font-size: 13px; }
.qa-list .q .ansbox button { background: #2b5876; color: #fff; border: none; border-radius: 10px; padding: 0 14px; font-size: 13px; }
.qa-form { margin-top: 14px; background: #fff; border-radius: 12px; padding: 14px; }
.qa-form select, .qa-form input, .qa-form textarea { width: 100%; border: 1px solid #dce3ea; border-radius: 10px; padding: 10px; font-size: 14px; margin-bottom: 8px; }
.qa-form textarea { min-height: 70px; resize: none; }
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; display: flex; background: #fff; border-top: 1px solid #e1e7ee; overflow-x: auto; padding-bottom: env(safe-area-inset-bottom, 0px); scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.tab { flex: none; min-width: 62px; padding: 12px 4px; background: none; border: none; font-size: 12px; color: #7c8896; cursor: pointer; scroll-snap-align: start; }
.tab.active { color: #2b5876; font-weight: 600; }
/* shop */
.cat-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 8px; }
.cat-chips .chip { flex: none; padding: 7px 13px; background: #fff; border: 1px solid #dce3ea; border-radius: 18px; font-size: 12px; cursor: pointer; white-space: nowrap; }
.cat-chips .chip.active { background: #2b5876; color: #fff; border-color: #2b5876; }
.shop-list .p { background: #fff; border-radius: 12px; padding: 14px; margin-bottom: 10px; border-left: 3px solid #7c5cff; }
.shop-list .p .pn { font-weight: 700; font-size: 15px; }
.shop-list .p .pd { font-size: 13px; color: #55636f; margin: 4px 0 8px; line-height: 1.5; }
.shop-list .p .pm { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.shop-list .p .pp { font-size: 13px; color: #2b5876; }
.shop-list .p .pc { font-size: 11px; color: #b06fd6; background: #f6ecff; padding: 2px 8px; border-radius: 8px; }
.btn-sm { background: linear-gradient(135deg,#00c2a8,#2b5876); color: #fff; border: none; border-radius: 10px; padding: 8px 16px; font-size: 13px; cursor: pointer; }
/* kit */
.kit-list .k, .kit-mine .k { background: #fff; border-radius: 12px; padding: 14px; margin-bottom: 10px; border-top: 3px solid #00c2a8; }
.kit-list .k .kn { font-weight: 700; font-size: 15px; }
.kit-list .k .kd { font-size: 13px; color: #55636f; margin: 5px 0 8px; line-height: 1.5; }
.kit-list .k .kp { color: #e0682b; font-weight: 700; margin-right: 8px; }
.kit-list .k .row, .kit-mine .k .row { display: flex; gap: 8px; align-items: center; }
.kit-mine .k .kn { color: #2b5876; }
.kit-content { background: #fff; border-radius: 12px; padding: 16px; margin-top: 10px; white-space: pre-wrap; font-size: 13px; line-height: 1.7; color: #33414e; max-height: 52vh; overflow-y: auto; }
.kit-content h3 { margin: 10px 0 4px; color: #1f3a52; }
/* mentor */
.mentor-list .m, .booking-list .b { background: #fff; border-radius: 12px; padding: 14px; margin-bottom: 10px; }
.mentor-list .m .mn { font-weight: 700; font-size: 15px; }
.mentor-list .m .ms { font-size: 12px; color: #2b5876; margin-bottom: 4px; }
.mentor-list .m .mb { font-size: 13px; color: #55636f; line-height: 1.5; margin: 4px 0; }
.mentor-list .m .me { font-size: 11px; color: #b06fd6; background: #f6ecff; padding: 2px 8px; border-radius: 8px; display: inline-block; margin-bottom: 8px; }
.mentor-list .m .mp { float: right; color: #e0682b; font-weight: 700; }
.booking-list .b .bn { font-weight: 700; }
.booking-list .b .bs { font-size: 12px; color: #55636f; }
.booking-list .b .st { font-size: 11px; padding: 2px 8px; border-radius: 8px; }
.st.pending { background: #fff3da; color: #b5791a; }
.st.confirmed { background: #e3f6ec; color: #1a8a4a; }
.sec { font-size: 15px; color: #1f3a52; margin: 16px 0 8px; }
.school-pick { display: flex; align-items: center; gap: 10px; margin: 6px 0 10px; }
.school-pick select { flex: 1; padding: 11px; border-radius: 10px; border: 1px solid #dce3ea; font-size: 14px; background: #fff; color: #1c2b36; }
/* --- subscription / Pro --- */
.pro-badge { background: linear-gradient(135deg,#6a5cff,#22d3ee); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 8px; }
.sub-card { background: #fff; border: 1px solid #e3eaf1; border-radius: 16px; padding: 18px; margin-top: 10px; box-shadow: 0 6px 20px rgba(31,58,82,.07); }
.sub-card.is-pro { border-color: #6a5cff; box-shadow: 0 6px 24px rgba(106,92,255,.18); }
.sub-badge { display: inline-block; background: linear-gradient(135deg,#6a5cff,#22d3ee); color: #fff; font-weight: 700; padding: 4px 12px; border-radius: 10px; font-size: 13px; margin-bottom: 10px; }
.sub-plans { display: flex; gap: 10px; margin-top: 12px; }
.sub-btn { flex: 1; padding: 14px; border: 1px solid #6a5cff; border-radius: 12px; background: #f5f3ff; color: #4326d6; font-size: 14px; cursor: pointer; }
.sub-btn:hover { background: #ece8ff; }
.sub-btn.ghost { flex: none; background: #fff; color: #6a5cff; }
.sub-btn.danger { width: 100%; margin-top: 4px; background: #fff; color: #d6453b; border-color: #f0b4af; }
.sub-btn.danger:hover { background: #fdeceb; }
.sub-manage { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.sub-danger { margin-top: 16px; }
.switch { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #5a6b7b; cursor: pointer; }
.note { background: linear-gradient(135deg,#eaf3ff,#f3ecff); border-left: 3px solid #2b5876; border-radius: 12px; padding: 12px 14px; font-size: 13px; line-height: 1.7; color: #33414e; margin-top: 10px; }
/* --- Tools tab --- */
.tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.tool-card { text-align: left; background: #fff; border: 1px solid #e3eaf1; border-radius: 16px; padding: 16px; box-shadow: 0 6px 20px rgba(31,58,82,.07); cursor: pointer; }
.tool-card:hover { border-color: #6a5cff; }
.tool-ic { font-size: 26px; }
.tool-n { font-weight: 700; margin-top: 6px; color: #1c2b36; }
.tool-s { font-size: 12px; color: #5b6670; margin-top: 4px; line-height: 1.5; }
.ov { position: fixed; inset: 0; background: rgba(20,28,40,.55); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.ovbox { background: #fff; border-radius: 18px; width: 100%; max-width: 420px; overflow: hidden; }
.ovhead { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid #eef2f6; font-size: 15px; }
.ovhead button { border: none; background: #f1f4f8; color: #5b6670; border-radius: 8px; width: 30px; height: 30px; cursor: pointer; }
.ovbody { padding: 16px; }
.fld { width: 100%; padding: 12px; border-radius: 10px; border: 1px solid #dce3ea; font-size: 15px; margin-bottom: 10px; box-sizing: border-box; }
.res { background: #f5f8fc; border-radius: 10px; padding: 12px; font-size: 15px; color: #1c2b36; margin-bottom: 10px; min-height: 20px; }
.emgcard { background: linear-gradient(135deg,#fff3f3,#fff8ee); border: 1px solid #ffd9d9; border-radius: 12px; padding: 14px; line-height: 1.8; }
.emgcard h3 { margin: 0 0 8px; color: #c0392b; }
.phr-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f0f3f7; font-size: 14px; }
.phr-row b { color: #2b5876; font-weight: 600; text-align: right; }
/* ---------- Smooth & slick feel layer ---------- */
/* #1 view entrance animation (fade + slide up) */
.view { animation: viewIn .26s cubic-bezier(.22,.61,.36,1); }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
/* #4 smooth scrolling on iOS */
html { -webkit-text-size-adjust: 100%; }
body { -webkit-overflow-scrolling: touch; }
.view { -webkit-overflow-scrolling: touch; }
/* #2 tap feedback on interactive elements */
.btn-sm, .primary, .tab, .tool-card, .chip, .cat-chips .chip, .sub-btn, .tool-card {
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn-sm:active, .primary:active, .tool-card:active, .sub-btn:active { transform: scale(.96); }
.tab:active { transform: scale(.92); }
/* #3 loading shimmer (skeleton placeholder) */
.skeleton { background: linear-gradient(90deg,#eef2f6 25%,#f6f9fc 37%,#eef2f6 63%); background-size: 400% 100%; animation: shimmer 1.2s ease-in-out infinite; border-radius: 10px; min-height: 16px; margin: 8px 0; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.sk-card { background: #fff; border-radius: 12px; padding: 14px; margin-bottom: 10px; border: 1px solid #eef2f6; }
/* #7 refined tabbar + safe-area + active pill indicator */
.tabbar { background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-top: 1px solid #e1e7ee; box-shadow: 0 -4px 20px rgba(31,58,82,.08); border-radius: 18px 18px 0 0; }
.tabbar::-webkit-scrollbar { display: none; }
.tabbar { scrollbar-width: none; -ms-overflow-style: none; }
.tab { position: relative; }
.tab.active::before { content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 22px; height: 3px; border-radius: 3px; background: linear-gradient(135deg,#00e5ff,#7c5cff); }
/* checkbox tick micro-interaction */
input[type="checkbox"] { width: 18px; height: 18px; accent-color: #2b5876; }
/* ---- Plan tab ---- */
.sec-h { font-weight: 700; color: #2b5876; margin: 18px 0 8px; font-size: 15px; }
.plan-row { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.plan-row .fld { flex: 1; min-width: 120px; }
.plan-list { display: flex; flex-direction: column; gap: 8px; }
.pli { background: #fff; border: 1px solid #eef2f6; border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.6; display: flex; flex-direction: column; gap: 4px; }
.pli label { display: flex; gap: 8px; align-items: flex-start; }
.favbtn { align-self: flex-end; border: none; border-radius: 8px; width: 34px; height: 30px; font-size: 15px; cursor: pointer; margin-top: 4px; }
/* ---- Community tab ---- */
.seg { display: flex; gap: 6px; margin: 8px 0 12px; background: #eef2f6; border-radius: 12px; padding: 4px; }
.seg-btn { flex: 1; border: none; background: transparent; padding: 8px; border-radius: 9px; font-size: 13px; color: #5a6b7b; cursor: pointer; }
.seg-btn.active { background: #fff; color: #2b5876; font-weight: 700; box-shadow: 0 1px 4px rgba(43,88,118,0.12); }
.fld { width: 100%; padding: 10px 12px; border: 1px solid #e2e8ee; border-radius: 10px; font-size: 14px; background: #fff; }
textarea.fld { resize: vertical; font-family: inherit; }
/* ---- Countdown hero ---- */
.countdown { display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, rgba(0,229,255,0.12), rgba(124,92,255,0.12)); border: 1px solid #d6e6f0; border-radius: 16px; padding: 14px 16px; margin-bottom: 12px; }
.cd-inner { display: flex; align-items: baseline; gap: 10px; flex: 1; }
.cd-num { font-size: 34px; font-weight: 800; color: #00b3cc; line-height: 1; }
.cd-label { font-size: 14px; color: #3a5161; font-weight: 600; }
.cd-task { font-size: 13px; color: #5a6b7b; margin-top: 2px; }
.cd-edit { border: none; background: #fff; border-radius: 10px; padding: 8px 12px; font-size: 12px; color: #2b5876; cursor: pointer; white-space: nowrap; }
/* ---- Community hero ---- */
.comm-hero { background: linear-gradient(135deg, rgba(124,92,255,0.10), rgba(0,229,255,0.10)); border: 1px solid #e3def7; border-radius: 14px; padding: 12px 14px; font-size: 14px; color: #3a5161; margin-bottom: 12px; }
.comm-hero b { color: #7c5cff; }
/* ---- Parent-share card ---- */
.share-card { margin-top: 12px; }
.sc-inner { background: linear-gradient(160deg, #2b5876, #4e4376); color: #fff; border-radius: 18px; padding: 18px 18px 16px; box-shadow: 0 8px 24px rgba(43,88,118,0.25); max-width: 360px; }
.sc-top { font-size: 12px; opacity: 0.85; letter-spacing: 0.5px; }
.sc-title { font-size: 19px; font-weight: 800; margin: 6px 0 14px; }
.sc-row { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
.sc-row b { font-weight: 700; }
.sc-bar { height: 8px; background: rgba(255,255,255,0.18); border-radius: 6px; margin: 8px 0 4px; overflow: hidden; }
.sc-fill { height: 100%; background: #5ef0c5; border-radius: 6px; }
.sc-foot { margin-top: 12px; font-size: 14px; font-weight: 700; text-align: center; color: #5ef0c5; }
/* ---- Offline badge ---- */
.offline-badge { position: sticky; top: 0; z-index: 30; text-align: center; font-size: 12px; padding: 6px 10px; background: #fff4e5; color: #b26a00; border-bottom: 1px solid #ffe0b3; }
/* ---- Onboarding modal ---- */
.modal { position: fixed; inset: 0; background: rgba(20,30,45,0.55); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.modal-card { background: #fff; border-radius: 18px; padding: 22px; width: 100%; max-width: 380px; box-shadow: 0 12px 40px rgba(0,0,0,0.25); }
.ob-step { font-size: 16px; font-weight: 800; color: #2b5876; margin-bottom: 12px; }
.ob-dots { display: flex; gap: 6px; margin-bottom: 14px; }
.ob-dots .dot { width: 8px; height: 8px; border-radius: 50%; background: #d7e0e8; transition: .2s; }
.ob-dots .dot.active { background: #00b3cc; width: 22px; border-radius: 6px; }
.ob-peers { margin: 8px 0; }
.ob-mode-toggle { display: flex; gap: 8px; margin-bottom: 12px; }
.ob-mode-toggle .mt-btn { flex: 1; padding: 10px 12px; border: 1px solid #dce3ea; border-radius: 10px; background: #fff; color: #55636f; font-size: 14px; cursor: pointer; transition: .15s; }
.ob-mode-toggle .mt-btn.active { background: linear-gradient(135deg,#00e5ff,#7c5cff); color: #fff; border-color: transparent; font-weight: 600; }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(20px); background: #2b5876; color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 13px; opacity: 0; pointer-events: none; transition: .25s; z-index: 200; max-width: 80%; text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
/* ---- PWA install hint ---- */
.pwa-hint { position: sticky; top: 0; z-index: 31; text-align: center; font-size: 12px; padding: 8px 10px; background: #eaf6ff; color: #1d5b86; border-bottom: 1px solid #cfe8fb; }
.pwa-hint button { border: none; background: #1d5b86; color: #fff; border-radius: 8px; padding: 4px 10px; margin-left: 8px; font-size: 12px; cursor: pointer; }
/* ---- Deadline tracker ---- */
.dl-over { color: #e04848; font-weight: 700; }
.dl-soon { color: #e08e00; font-weight: 700; }
/* ---- B2B partner page ---- */
.b2b-tiers { display: flex; gap: 12px; flex-wrap: wrap; margin: 14px 0; }
.b2b-tiers .plan-card { flex: 1 1 180px; background: #fff; border: 1px solid #dce3ea; border-radius: 12px; padding: 14px; }
.b2b-tiers .plan-card.hot { border: 2px solid var(--brand, #4ea1ff); box-shadow: 0 4px 16px rgba(78,161,255,.15); }
.b2b-tiers .plan-card h3 { margin: 0 0 6px; font-size: 15px; }
.b2b-tiers .price { font-size: 22px; font-weight: 700; color: var(--brand, #2b6cff); margin-bottom: 8px; }
.b2b-tiers .plan-card ul { margin: 0; padding-left: 18px; font-size: 13px; color: #44505e; }
.b2b-tiers .plan-card li { margin: 4px 0; }
/* ---- Cohort (同案抵达圈) ---- */
.cohort .mates, #cohortBox .mates { list-style: none; padding: 0; margin: 0 0 10px; }
.cohort .mates li, #cohortBox .mates li { padding: 6px 0; border-bottom: 1px dashed #eef2f6; }
#cohortBox .card { background: #fff; border: 1px solid #dce3ea; border-radius: 14px; padding: 16px; margin-top: 8px; }
#cohortBox .fld { display: block; margin: 12px 0; font-size: 13px; color: #44505e; }
#cohortBox .fld input { width: 100%; margin-top: 6px; padding: 9px 10px; border: 1px solid #d4dde6; border-radius: 9px; font-size: 14px; }
#cohortBox .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
#cohortBox .chip { border: 1px solid #cdd8e2; background: #f5f8fb; color: #3a4856; border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; }
#cohortBox .chip.active { background: var(--brand, #2b6cff); color: #fff; border-color: var(--brand, #2b6cff); }
#cohortBox .msgs { background: #f6f9fc; border-radius: 10px; padding: 10px; max-height: 200px; overflow-y: auto; margin-bottom: 6px; }
#cohortBox .msgs .msg { padding: 5px 0; font-size: 14px; border-bottom: 1px solid #eef2f6; }
#cohortBox .msgs .msg b { color: var(--brand, #2b6cff); }

/* ---- T-minus checklist badge ---- */
.tminus { display: inline-block; margin-left: 8px; font-size: 11px; padding: 1px 7px; border-radius: 999px; vertical-align: middle; font-weight: 600; }
.tminus.before { background: #fff3e0; color: #c8741a; }
.tminus.after { background: #e6f4ea; color: #1f9254; }

/* ---- Document vault (证件保险箱) ---- */
.doc { background: #fff; border: 1px solid #dce3ea; border-left: 4px solid #1f9254; border-radius: 10px; padding: 10px 12px; margin: 8px 0; }
.doc.soon { border-left-color: #e0a321; }
.doc.expired { border-left-color: #d6453d; }
.doc-kind { font-size: 11px; color: #8a95a5; background: #f0f3f7; border-radius: 6px; padding: 1px 6px; margin-left: 4px; }
.alert { background: #fff4e5; color: #9a6a12; border: 1px solid #f3dca0; border-radius: 10px; padding: 10px 12px; margin: 8px 0; font-size: 13px; }

/* ---- Budget tracker (预算记账) ---- */
.bud-total { display: flex; align-items: baseline; gap: 8px; }
.bud-amt { font-size: 28px; font-weight: 800; color: var(--brand, #2b6cff); }
.bud-cats { margin: 10px 0; }
.bud-cat { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-radius: 8px; background: #f8f9fb; margin: 4px 0; flex-wrap: wrap; gap: 6px; }
.bud-cat.over { background: #fff0ef; }
.bud-cat-name { font-weight: 600; }
.bud-cat-amt { font-size: 15px; font-weight: 700; }
.bud-cat.over .bud-cat-amt { color: #d6453d; }
.bud-bar { width: 100%; height: 5px; background: #e7edf3; border-radius: 999px; overflow: hidden; }
.bud-fill { height: 100%; background: var(--brand, #2b6cff); border-radius: 999px; transition: width .3s; }
.bud-fill.over { background: #d6453d; }
.bud-row { display: flex; align-items: center; justify-content: space-between; background: #fff; border: 1px solid #e7edf3; border-radius: 10px; padding: 10px 12px; margin: 6px 0; }
.bud-cat-tag { font-size: 11px; color: #8a95a5; background: #f0f3f7; border-radius: 6px; padding: 1px 7px; margin-left: 4px; }
.bud-lim-row { display: flex; align-items: center; gap: 8px; margin: 5px 0; }
.bud-lim-row span { min-width: 70px; font-size: 14px; }
.bud-lim-row input { flex: 1; }
/* ---- Waitlist box ---- */
.waitlist-box { background: #f8f9fb; border: 1px solid #e7edf3; border-radius: 12px; padding: 14px; margin: 8px 0; }
/* ---- Quick start overlay ---- */
.qs-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.qs-box { background: #fff; border-radius: 20px; padding: 24px; max-width: 360px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.qs-box h3 { margin: 0 0 4px; font-size: 20px; }
.qs-card { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; border: 1px solid #e7edf3; border-radius: 14px; margin-bottom: 8px; background: #fff; cursor: pointer; text-align: left; transition: border-color .15s; }
.qs-card:hover { border-color: #2b6cff; }
.qs-card:active { transform: scale(.98); }
.qs-icon { font-size: 28px; flex: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: #f0f4ff; border-radius: 12px; }


/* ---- App footer (privacy + ICP 备案) ---- */
.app-footer { display: flex; flex-direction: column; gap: 4px; align-items: center; padding: 18px 12px 26px; font-size: 12px; color: #8a95a5; border-top: 1px solid #e7edf3; margin-top: 18px; }
.app-footer a { color: var(--brand, #2b6cff); text-decoration: none; }
.app-footer .beian { color: #8a95a5; }
/* ---- Settings gear + modal ---- */
.gear { background: rgba(255,255,255,.18); color: #fff; border: none; border-radius: 8px; padding: 6px 11px; font-size: 16px; cursor: pointer; margin-left: 6px; }
.gear:hover { background: rgba(255,255,255,.3); }
.set-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 4px; border-bottom: 1px solid #eef2f6; font-size: 15px; color: #1d2733; text-decoration: none; width: 100%; background: none; border-left: none; border-right: none; border-top: none; cursor: pointer; }
.set-row:last-of-type { border-bottom: none; }
.set-row.danger { color: #e04848; justify-content: center; font-weight: 600; }

