.mini-preview-body {
  background: #0d3024;
  color: #fff;
  overflow-x: hidden;
}
.mini-nav {
  position: relative; z-index: 10; width: min(1240px, calc(100% - 64px)); margin: 0 auto;
  height: 78px; display: flex; align-items: center; justify-content: space-between;
}
.mini-brand { display: flex; align-items: center; gap: 11px; }
.mini-brand-mark { width: 36px; height: 36px; border-radius: 11px; background: #e8d9b8; color: #123d2e; display: grid; place-items: center; font-family: var(--serif); font-size: 17px; }
.mini-brand b { display: block; font-size: 17px; letter-spacing: .03em; }
.mini-brand small { display: block; font-size: 8px; letter-spacing: .15em; color: rgba(255,255,255,.4); margin-top: 2px; }
.mini-nav-links { display: flex; align-items: center; gap: 26px; font-size: 12px; color: rgba(255,255,255,.55); }
.mini-nav-links a:hover { color: #e9c27c; }
.mini-tag { font-size: 10px; border: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.45); border-radius: 30px; padding: 5px 10px; }
.mini-hero {
  width: min(1240px, calc(100% - 64px)); margin: 0 auto; padding: 64px 0 36px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
  background: radial-gradient(circle at 70% 0%, rgba(217,119,87,.12), transparent 30%);
}
.mini-kicker { font-size: 9px; font-weight: 700; letter-spacing: .22em; color: #e9c27c; }
.mini-kicker.light { color: rgba(255,255,255,.4); }
.mini-hero h1 { font-size: clamp(36px, 4.2vw, 56px); line-height: 1.28; letter-spacing: -.04em; margin: 15px 0 16px; }
.mini-hero h1 em { font-family: var(--serif); font-style: normal; font-weight: 500; color: #e9c27c; }
.mini-hero-copy p { font-size: 13px; line-height: 1.9; color: rgba(255,255,255,.5); max-width: 560px; }
.mini-role-tabs { display: inline-flex; margin-top: 26px; padding: 4px; border-radius: 11px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); }
.mini-role { border: 0; background: transparent; color: rgba(255,255,255,.48); border-radius: 8px; padding: 8px 18px; font-size: 11.5px; transition: .2s; }
.mini-role:hover { color: #fff; }
.mini-role.active { background: #e9c27c; color: #233b2f; font-weight: 700; }
.mini-hero-side { display: flex; gap: 32px; padding-bottom: 8px; }
.mini-fact { text-align: right; }
.mini-fact b { display: block; font-family: var(--serif); font-size: 38px; font-weight: 500; color: #f4efe3; line-height: 1; }
.mini-fact span { display: block; font-size: 9px; color: rgba(255,255,255,.35); margin-top: 5px; }

.phone-section { position: relative; padding: 22px 0 60px; }
.phone-halo { position: absolute; left: 50%; top: 30%; transform: translate(-50%, -50%); width: 900px; height: 600px; border-radius: 50%; background: radial-gradient(ellipse, rgba(92,141,118,.24), transparent 65%); filter: blur(40px); }
.phones { position: relative; z-index: 1; display: flex; justify-content: center; align-items: flex-start; gap: 24px; padding: 38px 20px 0; }
.phone-wrap { transition: transform .4s var(--ease), opacity .3s; }
.phone-wrap:not(.active) { opacity: .45; transform: scale(.96); }
.phone-wrap.active { transform: translateY(-10px); }
.phone-caption { text-align: center; font-size: 10px; color: rgba(255,255,255,.5); margin-bottom: 13px; display: flex; justify-content: center; align-items: center; gap: 6px; }
.phone-caption .dot { width: 6px; height: 6px; border-radius: 50%; background: #d97757; }
.phone-caption .dot.teacher { background: #5c8d76; }
.phone-caption .dot.principal { background: #e9c27c; }
.phone {
  position: relative; width: 277px; height: 586px; padding: 7px;
  border-radius: 39px; background: #1b2a23;
  box-shadow: 0 45px 90px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.12);
}
.phone-notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 82px; height: 19px; border-radius: 20px; background: #080d0b; z-index: 5; }
.status-bar { display: flex; justify-content: space-between; padding: 7px 17px 6px; font-size: 7px; color: #e9e6dc; background: #123d2e; border-radius: 32px 32px 0 0; }
.wx-nav { display: flex; align-items: center; justify-content: space-between; height: 34px; padding: 0 12px; background: #123d2e; color: #fff; font-size: 9px; }
.wx-nav b { font-size: 11px; font-weight: 600; }
.wx-nav span { font-size: 10px; color: rgba(255,255,255,.75); }
.screen { height: calc(100% - 48px); background: #f6f2e9; border-radius: 0 0 31px 31px; overflow: hidden; position: relative; color: #1e2a24; }
.screen-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 12px 12px 8px; }
.screen-greet { font-size: 13px; font-weight: 700; letter-spacing: -.03em; }
.screen-date { font-size: 7px; color: #8b958d; margin-top: 2px; }
.screen-role { font-size: 7px; color: #1e5b45; background: #e8f0e9; border-radius: 20px; padding: 3px 7px; font-weight: 600; }
.screen-role.teacher { color: #b45b3d; background: #fbede7; }
.screen-role.principal { color: #8e681f; background: #f8f0dc; }
.m-hero { margin: 0 10px; background: linear-gradient(135deg,#1d5a44,#123d2e); color: #fff; border-radius: 15px; padding: 12px 12px 10px; position: relative; overflow: hidden; }
.m-hero::after { content: ""; position: absolute; width: 100px; height: 100px; right: -35px; top: -45px; border-radius: 50%; background: radial-gradient(circle, rgba(233,194,124,.22), transparent 65%); }
.m-hero-label { font-size: 6.8px; color: rgba(255,255,255,.5); letter-spacing: .05em; }
.m-child { display: flex; align-items: center; gap: 7px; margin-top: 7px; }
.m-avatar { width: 30px; height: 30px; border-radius: 50%; background: #e9c9b6; color: #8f4b39; display: grid; place-items: center; font-size: 10px; font-weight: 700; flex: none; }
.m-avatar.sm { width: 20px; height: 20px; font-size: 7px; }
.m-child b { display: block; font-size: 11px; }
.m-child small { display: block; font-size: 6px; color: rgba(255,255,255,.5); margin-top: 1px; }
.m-state { margin-left: auto; font-size: 6px; background: rgba(255,255,255,.12); border-radius: 20px; padding: 3px 6px; }
.m-state i { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: #93d4a7; margin-right: 3px; }
.m-hero-stats { display: flex; margin-top: 9px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.12); }
.m-hero-stats > div { flex: 1; }
.m-hero-stats b { display: block; font-size: 11px; font-weight: 700; }
.m-hero-stats span { display: block; font-size: 5.8px; color: rgba(255,255,255,.42); margin-top: 1px; }
.m-quick { display: grid; grid-template-columns: repeat(4,1fr); gap: 5px; margin: 9px 10px 0; }
.m-quick span { background: #fffdf8; border: 1px solid #e8e2d5; border-radius: 8px; text-align: center; padding: 7px 2px 5px; font-size: 6.5px; color: #4f5d54; }
.m-quick i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: #e8f0e9; color: #1e5b45; font-family: var(--serif); font-style: normal; font-size: 8px; margin: 0 auto 3px; }
.m-quick i.coral { background: #fbede7; color: #c46345; }
.m-quick i.gold { background: #f8f0dc; color: #a77c28; }
.m-quick i.blue { background: #eaf0f6; color: #5c7fa3; }
.m-banner { margin: 8px 10px 0; padding: 6px 7px; background: #fdf1e8; border: 1px solid #f5dccb; border-radius: 6px; font-size: 6.2px; color: #8f4d36; line-height: 1.5; display: flex; gap: 4px; }
.m-banner b { width: 10px; height: 10px; border-radius: 50%; background: #f4d5c1; display: grid; place-items: center; font-size: 6px; flex: none; }
.m-section { display: flex; justify-content: space-between; align-items: center; margin: 9px 11px 5px; }
.m-section b { font-size: 8px; }
.m-section span { font-size: 6px; color: #1e5b45; }
.m-card { background: #fffdf8; border: 1px solid #e8e2d5; border-radius: 10px; margin: 0 10px; padding: 8px 9px; }
.m-timeline > div { display: flex; gap: 6px; padding: 4px 0; position: relative; }
.m-timeline > div::before { content: ""; position: absolute; left: 3px; top: 10px; bottom: -2px; width: 1px; background: #e8e2d5; }
.m-timeline > div:last-child::before { display: none; }
.m-timeline i { width: 6px; height: 6px; border-radius: 50%; background: #5c8d76; flex: none; margin-top: 3px; position: relative; z-index: 1; }
.m-timeline i.gray { background: #b5bdb7; }
.m-timeline p { margin: 0; }
.m-timeline b { display: block; font-size: 6.7px; font-weight: 600; }
.m-timeline small { display: block; font-size: 5.8px; color: #8b958d; margin-top: 1px; }
.m-notice { display: flex; gap: 6px; align-items: center; }
.m-notice-icon { width: 24px; height: 24px; border-radius: 7px; background: #fbede7; color: #c46345; display: grid; place-items: center; font-family: var(--serif); font-size: 8px; flex: none; }
.m-notice b { display: block; font-size: 6.8px; line-height: 1.4; }
.m-notice small { display: block; font-size: 5.8px; color: #8b958d; margin-top: 2px; }
.tabbar { position: absolute; bottom: 0; left: 0; right: 0; height: 38px; background: #fffdf8; border-top: 1px solid #e8e2d5; display: flex; padding-bottom: 4px; }
.tabbar span { flex: 1; text-align: center; font-size: 5.8px; color: #8a958d; padding-top: 6px; }
.tabbar i { display: block; font-style: normal; font-size: 11px; margin-bottom: 1px; }
.tabbar .on { color: #1e5b45; font-weight: 600; }

/* teacher screen */
.teacher-hero { padding-bottom: 12px; }
.t-big { font-size: 23px; font-weight: 700; letter-spacing: -.04em; margin-top: 3px; }
.t-big span { font-size: 7px; color: rgba(255,255,255,.5); font-weight: 400; letter-spacing: 0; margin-left: 3px; }
.m-primary { display: block; width: calc(100% - 20px); margin: 8px 10px 0; height: 29px; border: 0; border-radius: 8px; background: #1e5b45; color: #fff; font-size: 8px; font-weight: 600; line-height: 29px; }
.m-roster { padding: 3px 9px; }
.m-child-row { display: flex; align-items: center; gap: 6px; padding: 5px 0; border-bottom: 1px solid #f0ece3; }
.m-child-row:last-child { border-bottom: 0; }
.m-child-row p { margin: 0; flex: 1; }
.m-child-row b { display: block; font-size: 6.8px; }
.m-child-row small { display: block; font-size: 5.5px; color: #8b958d; margin-top: 1px; }
.m-status { font-size: 5.5px; border-radius: 20px; padding: 2px 5px; }
.m-status.ok { color: #4e8768; background: #edf5ef; }
.m-status.late { color: #b8862f; background: #f8f0dc; }
.m-schedule > div { display: flex; gap: 6px; padding: 4px 0; border-bottom: 1px solid #f0ece3; }
.m-schedule > div:last-child { border-bottom: 0; }
.m-schedule b { font-size: 6.5px; color: #1e5b45; width: 26px; flex: none; }
.m-schedule p { margin: 0; }
.m-schedule small { display: block; font-size: 5.5px; color: #8b958d; }

/* principal screen */
.p-big { font-size: 24px; font-weight: 700; letter-spacing: -.04em; margin-top: 2px; }
.p-big span { font-size: 7px; color: rgba(255,255,255,.5); font-weight: 400; letter-spacing: 0; margin-left: 3px; }
.p-alert { display: flex; align-items: center; gap: 6px; margin: 8px 10px 0; padding: 6px 7px; background: #fdf1e8; border: 1px solid #f5dccb; border-radius: 7px; }
.p-alert > b { width: 12px; height: 12px; border-radius: 50%; background: #d97757; color: #fff; display: grid; place-items: center; font-size: 6px; flex: none; }
.p-alert div { flex: 1; }
.p-alert strong { display: block; font-size: 6.3px; color: #8f4d36; }
.p-alert small { display: block; font-size: 5.3px; color: #a88675; }
.p-alert > span { font-size: 5.2px; color: #b45b3d; }
.p-classes > div { display: flex; align-items: center; gap: 5px; margin-bottom: 5px; }
.p-classes > div:last-child { margin-bottom: 0; }
.p-classes i { width: 4px; height: 4px; border-radius: 50%; flex: none; }
.p-classes span { width: 24px; font-size: 5.6px; color: #5e6b62; }
.p-classes em { flex: 1; height: 4px; background: #f0ece3; border-radius: 4px; overflow: hidden; }
.p-classes em b { display: block; height: 100%; border-radius: 4px; background: #5c8d76; }
.p-classes > div > b { font-size: 5.2px; color: #8b958d; width: 24px; text-align: right; }
.p-ai { display: flex; gap: 6px; margin: 8px 10px 0; padding: 7px 8px; background: #123d2e; border-radius: 8px; color: #fff; }
.p-ai > span { color: #e9c27c; font-size: 10px; }
.p-ai b { display: block; font-size: 6.4px; }
.p-ai small { display: block; font-size: 5.4px; color: rgba(255,255,255,.55); line-height: 1.5; margin-top: 2px; }
.p-approvals { padding: 3px 9px; }
.p-approvals > div { display: flex; align-items: center; gap: 6px; padding: 5px 0; border-bottom: 1px solid #f0ece3; }
.p-approvals > div:last-child { border-bottom: 0; }
.p-approvals span { width: 20px; height: 20px; border-radius: 6px; background: #f4f0e7; color: #7a877e; display: grid; place-items: center; font-family: var(--serif); font-size: 7px; flex: none; }
.p-approvals p { margin: 0; flex: 1; }
.p-approvals b { display: block; font-size: 6.2px; }
.p-approvals small { display: block; font-size: 5.3px; color: #8b958d; }
.p-approvals i { font-style: normal; font-size: 8px; color: #b3bbb4; }
.phone-note { text-align: center; font-size: 9px; color: rgba(255,255,255,.3); margin-top: 34px; }

/* features / bottom */
.mini-features { background: #f6f2e9; color: var(--ink); padding: 84px 0; }
.mini-features-head, .mini-feature-grid { width: min(1060px, calc(100% - 64px)); margin: 0 auto; }
.mini-features-head h2 { font-size: 40px; line-height: 1.3; letter-spacing: -.04em; margin-top: 12px; }
.mini-features-head h2 em { font-family: var(--serif); font-style: normal; font-weight: 500; color: var(--green); }
.mini-feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 38px; }
.mini-feature-grid article { border: 1px solid var(--line); background: #fffdf8; border-radius: 18px; padding: 26px; }
.mf-icon { width: 38px; height: 38px; border-radius: 11px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-family: var(--serif); font-size: 17px; margin-bottom: 17px; }
.mf-icon.teacher { background: var(--coral-soft); color: var(--coral); }
.mf-icon.principal { background: var(--gold-soft); color: #a77c28; }
.mini-feature-grid h3 { font-size: 19px; margin-bottom: 8px; }
.mini-feature-grid p { font-size: 12px; line-height: 1.85; color: var(--muted); }
.mini-bottom { background: #123d2e; color: #fff; padding: 72px 0; }
.mini-bottom > div { width: min(1060px, calc(100% - 64px)); margin: 0 auto; }
.mini-bottom { display: flex; justify-content: space-between; align-items: center; gap: 50px; }
.mini-bottom > div:first-child { max-width: 620px; }
.mini-bottom h2 { font-size: 37px; line-height: 1.3; letter-spacing: -.04em; margin: 12px 0 12px; }
.mini-bottom h2 em { font-family: var(--serif); font-style: normal; font-weight: 500; color: #e9c27c; }
.mini-bottom p { font-size: 12px; line-height: 1.9; color: rgba(255,255,255,.5); }
.mini-bottom code { background: rgba(255,255,255,.08); border-radius: 4px; padding: 1px 5px; color: #e9c27c; font-size: 11px; }
.mini-actions { display: flex; flex-direction: column; gap: 12px; align-items: center; flex: none; }
.light-btn { background: #e9c27c; color: #233b2f; }
.mini-back { font-size: 10px; color: rgba(255,255,255,.45); border-bottom: 1px solid rgba(255,255,255,.2); }
.mini-footer { display: flex; justify-content: space-between; width: min(1240px, calc(100% - 64px)); margin: 0 auto; padding: 22px 0; font-size: 9px; color: rgba(255,255,255,.25); border-top: 1px solid rgba(255,255,255,.07); }

@media (max-width: 1000px) {
  .phones { justify-content: flex-start; overflow-x: auto; padding-bottom: 20px; scroll-snap-type: x mandatory; }
  .phone-wrap { flex: none; scroll-snap-align: center; }
  .phone-wrap:not(.active) { opacity: .7; transform: none; }
  .mini-hero-side { display: none; }
  .mini-feature-grid { grid-template-columns: 1fr; }
  .mini-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 680px) {
  .mini-nav, .mini-hero, .mini-footer { width: calc(100% - 36px); }
  .mini-nav-links a, .mini-tag { display: none; }
  .mini-nav-links { display: block; }
  .mini-hero { padding-top: 38px; }
  .mini-hero h1 { font-size: 34px; }
  .mini-hero-copy p { font-size: 12px; }
  .phones { padding-left: 12px; }
  .phone { width: 260px; height: 554px; }
  .mini-features-head, .mini-feature-grid, .mini-bottom > div { width: calc(100% - 36px); }
  .mini-features { padding: 56px 0; }
  .mini-bottom h2, .mini-features-head h2 { font-size: 30px; }
  .mini-footer { flex-direction: column; gap: 5px; }
}
