.mobile-app {
  --ink:#1d293e;--muted:#647086;--line:#e0e4ea;--green:#a94520;--lime:#ffdc9d;
  --orange:#c64c1e;--navy:#192a43;--surface:#f5f6f8;
  background:#eaeef2;color:var(--ink);font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;
}
.mobile-app button,.mobile-app input,.mobile-app select {font:inherit;}
.mobile-app a,.m-link {color:var(--orange);}
.m-family-frame {width:100%;max-width:610px;min-height:100dvh;margin:auto;padding:18px clamp(14px,4vw,24px) max(24px,env(safe-area-inset-bottom));background:var(--surface);}
.m-family-brand {display:flex;align-items:center;gap:8px;margin-bottom:14px;color:var(--navy);font-size:14px;font-weight:650;}
.m-family-head {background:var(--navy);color:white;border-radius:14px;padding:20px;}
.m-family-head h1 {font-size:clamp(21px,5.8vw,31px);line-height:1.35;margin:6px 0;overflow-wrap:anywhere;}
.m-family-head p {font-size:13px;color:#ffd1a7;}
.m-family-head small {color:#d4dce6;}
.m-family-frame .sp-visits>div {background:white;}
.m-family-frame .sp-evidence-title,.m-family-frame .sp-family-summary {overflow-wrap:anywhere;}
.m-family-visit {border-bottom:1px solid var(--line);padding:5px 0;}
.m-family-visit summary {min-height:44px;padding:10px 0;cursor:pointer;font-size:14px;font-weight:650;}
.m-family-visit summary span {color:var(--muted);white-space:nowrap;}
.m-family-visit p,.m-family-visit dl {font-size:13px;}
.m-family-visit dl>div {display:flex;justify-content:space-between;gap:12px;padding:6px 0;}
.m-family-visit dd {margin:0;text-align:right;}
.m-share-sheet p {margin:10px 0 14px;line-height:1.65;}
.m-share-sheet .m-share-local {font-size:13px;color:var(--muted);}
.mobile-app :is(button,a,input,select):focus-visible {outline:3px solid #eaa25f;outline-offset:2px;}
.m-auth,.m-shell {width:100%;max-width:600px;margin:0 auto;min-height:100dvh;background:white;box-shadow:0 0 0 1px #dce2e8,0 12px 40px #1b283611;}
.m-auth-hero,.m-home-hero {position:relative;overflow:hidden;isolation:isolate;background:var(--navy);color:white;}
.m-auth-hero {padding:calc(21px + env(safe-area-inset-top)) clamp(22px,5vw,34px) 24px;}
.m-brand,.m-bar-brand {display:flex;align-items:center;gap:10px;}
.m-brand img,.m-bar-brand img {border-radius:11px;flex:none;}
.m-brand>div {display:flex;align-items:center;gap:9px;}
.m-brand strong {font-size:21px;letter-spacing:.04em;}
.m-brand small {padding-left:10px;border-left:1px solid #7c8797;color:#dce2ec;font-size:13px;}
.m-auth-hero h1 {font-size:clamp(27px,7.5vw,37px);letter-spacing:-.035em;margin:23px 0 6px;font-weight:750;}
.m-auth-hero p {display:flex;align-items:center;gap:9px;font-size:13px;color:#cfd9e6;}
.m-auth-hero p i {width:3px;height:3px;background:#ed996b;border-radius:50%;}
.m-ball {pointer-events:none;position:absolute;z-index:-1;width:205px;height:205px;right:-55px;bottom:-58px;color:#aabbce;opacity:.2;transform:rotate(-28deg);}
.m-auth-body {padding:19px clamp(19px,5vw,32px) max(18px,env(safe-area-inset-bottom));}
.m-auth-tabs {display:flex;background:#f0f2f5;border-radius:12px;padding:4px;gap:3px;}
.m-auth-tabs button {flex:1;min-height:43px;border:0;border-radius:9px;font-weight:650;color:#5b677a;background:transparent;}
.m-auth-tabs button.selected {color:var(--orange);background:white;box-shadow:0 2px 7px #1c2d4114;}
.m-benefit {background:#fff5e9;border:1px solid #f5d9b8;border-radius:13px;padding:13px 17px 11px;margin:16px 0 20px;}
.m-benefit-head {display:flex;align-items:center;gap:7px;color:#854422;font-size:13px;font-weight:650;}
.m-benefit-head svg {color:#b35c26;}
.m-benefit-figures {display:grid;grid-template-columns:1fr 1px 1fr;gap:14px;align-items:center;margin-top:6px;}
.m-benefit-figures>div {display:flex;gap:8px;align-items:baseline;}
.m-benefit-figures>div:last-child {justify-content:center;}
.m-benefit-figures strong,.m-counts strong,.m-big strong {font-family:Inter,Arial,sans-serif;font-variant-numeric:tabular-nums;}
.m-benefit-figures strong {font-size:34px;line-height:1.1;font-weight:690;letter-spacing:-.065em;color:#c24c20;}
.m-benefit-figures span {color:#704e39;font-size:13px;}
.m-benefit-figures i {height:25px;background:#e8cbae;}
.m-field {display:grid;gap:7px;margin-bottom:15px;font-size:14px;font-weight:600;}
.m-field small {font-size:12px;font-weight:400;color:var(--muted);}
.m-field input,.mobile-app dialog input,.mobile-app dialog select {width:100%;font-size:16px;min-height:47px;padding:10px 12px;border-radius:9px;border:1px solid #d6dce4;color:var(--ink);}
.m-field input::placeholder {color:#7e899a;}
.m-password,.m-code-line {display:flex;align-items:stretch;position:relative;}
.m-password input {padding-right:62px;}
.m-password .m-code {position:absolute;right:3px;top:2px;bottom:2px;}
.m-code {border:0;border-radius:8px;background:transparent;padding:0 12px;color:var(--orange);font-weight:650;white-space:nowrap;min-height:43px;font-size:14px!important;}
.m-code-line {gap:8px;}.m-code-line .m-code {background:#fff3e9;border:1px solid #f2d1bc;}
.m-code-note:not(:empty) {background:#fff6e8;color:#784c20;padding:9px 12px;font-size:13px;border-radius:8px;margin:0 0 12px;}
.m-button,.mobile-app .button {display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:9px 15px;border:1px solid var(--line);border-radius:9px;font-weight:640;cursor:pointer;}
.m-primary,.mobile-app .button.primary {background:var(--orange);border-color:var(--orange);color:white;}
.m-primary:hover:not(:disabled),.mobile-app .button.primary:hover {background:#ab411b;}
.m-light {background:#fff2dd;color:#6d371b;border:0;}
.m-outline {background:white;color:var(--ink);}
.m-full,.m-form-foot .m-button {width:100%;}
.m-form-foot {margin:17px 0 0;}
.m-form-foot .m-button {min-height:48px;}
.m-auth-links,.m-sheet-actions {display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;}
.m-link,.m-icon,.m-account {border:0;background:none;min-height:44px;padding:5px;font-weight:600;}
.m-link {font-size:14px!important;}.m-icon,.m-account {display:inline-grid;place-items:center;min-width:44px;color:var(--ink);}
.m-auth-note {display:flex;align-items:flex-start;gap:10px;background:#f5f7fa;border-radius:10px;padding:13px 15px;margin:12px 0 5px;}
.m-auth-note>svg {margin-top:2px;color:#5b6b83;flex:none;}
.m-auth-note b {font-size:13px;}
.m-auth-note p,.m-muted {font-size:13px;line-height:1.65;color:var(--muted);margin:4px 0 0;}
.m-campus {display:inline-flex;align-items:center;gap:5px;color:#65738a!important;min-height:44px;font-size:12px;}
.m-shell {background:var(--surface);padding-bottom:calc(78px + env(safe-area-inset-bottom));}
.m-bar,.m-section-head,.m-side,.m-plan-line,.m-info,.m-account-meta,.m-student-row {display:flex;align-items:center;justify-content:space-between;gap:10px;}
.m-bar {background:#fff;border-bottom:1px solid var(--line);padding:calc(8px + env(safe-area-inset-top)) 18px 8px;}
.m-bar-brand {min-width:0;}.m-bar-brand>div {min-width:0;}.m-bar-brand b {display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:100%;font-size:16px;}
.m-bar-brand small,.m-person small {display:block;color:var(--muted);font-size:12px;margin-top:3px;}
.m-bar-brand img {width:34px;height:34px;border-radius:9px;}
.m-account {background:#f2f4f7;border-radius:50%;height:44px;flex:none;}
#m-main {padding:22px clamp(14px,4vw,24px) 14px;}
.m-title {margin-bottom:16px;}
.m-title h1,.mobile-app .sp-heading h1 {font-size:27px;letter-spacing:-.04em;line-height:1.2;}
.m-title p,.mobile-app .sp-heading p {font-size:13px;color:var(--muted);line-height:1.5;margin-top:5px;}
.m-home-hero {border-radius:15px;padding:21px 20px;}
.m-home-hero small {font-size:12px;color:#f6bb93;}.m-home-hero h2 {font-size:27px;margin:7px 0 3px;}.m-home-hero p {font-size:13px;color:#d0d9e4;margin:0 0 15px;}
.m-home-hero .m-ball {color:#efb48f;width:225px;height:225px;right:-30px;bottom:-65px;opacity:.27;}
.m-stats {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:12px 0;background:white;border:1px solid var(--line);border-radius:12px;padding:15px 0;}
.m-stats div {text-align:center;border-left:1px solid var(--line);}
.m-stats div:first-child {border:0;}
.m-stats b,.m-stats span {display:block;}
.m-stats b {font:680 clamp(19px,5vw,25px)/1.3 Inter,system-ui,sans-serif;font-variant-numeric:tabular-nums;}
.m-stats span,.m-drill small {font-size:12px;color:var(--muted);}
.m-tools,.m-double,.m-filters {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;}
.m-tools a {min-height:52px;display:flex;align-items:center;gap:9px;background:white;color:var(--ink);border:1px solid var(--line);border-radius:10px;padding:9px 12px;font-size:14px;}
.m-tools svg {color:var(--orange);}
.m-tools span {margin-left:auto;color:var(--muted);}
.m-back {display:inline-flex;align-items:center;min-height:44px;font-size:13px;}
.m-filters label {min-width:0;display:grid;gap:5px;font-size:13px;}
.m-filters :is(input,select) {width:100%;min-width:0;min-height:44px;font-size:16px;background:white;border-radius:9px;}
.m-record {display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:62px;padding:9px 0;color:var(--ink)!important;}
.m-record+.m-record,.m-drill+.m-drill {border-top:1px solid var(--line);}
.m-record div:first-child {min-width:0;overflow-wrap:anywhere;}
.m-record div:last-child {text-align:right;flex:none;}
.m-record strong {color:var(--orange);font-size:21px;font-variant-numeric:tabular-nums;}
.m-record div>small {display:block;color:var(--muted);font-size:12px;margin-top:3px;}
.m-record strong small {font-size:11px;font-weight:500;}
.m-pager {display:flex;justify-content:center;gap:10px;}
.m-drill {padding:15px 0;}
.m-drill h3 {font-size:16px;margin:3px 0;}
.m-drill p {font-size:14px;line-height:1.65;color:var(--ink);}
.m-counts {display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0;}
.m-counts>div,.m-section,.m-plan-line {background:white;border:1px solid var(--line);border-radius:12px;padding:15px;}
.m-counts span {display:block;color:var(--muted);font-size:13px;}
.m-counts strong {display:block;font-size:27px;line-height:1.25;margin-top:4px;}
.m-counts small {font:400 12px system-ui;color:var(--muted);}
.m-section,.m-plan-line {margin:12px 0;}
.m-section-head {margin-bottom:6px;}.m-section-head h2,.m-section h2 {font-size:17px;letter-spacing:-.03em;}
.m-section-head a,.m-plan-line {font-size:13px;}.m-section-head a {display:flex;align-items:center;min-height:44px;}
.m-plan-line {justify-content:flex-start;color:#35455c!important;flex-wrap:wrap;}.m-plan-line b {margin-left:auto;}
.m-student-row {padding:7px 0;min-height:60px;}.m-student-row+.m-student-row,.m-info+.m-info {border-top:1px solid var(--line);}
.m-person {min-width:0;display:flex;align-items:center;gap:11px;text-align:left;background:transparent;border:0;padding:2px;min-height:44px;color:var(--ink);flex:1;}
.m-person>span:last-child {min-width:0;overflow-wrap:anywhere;}.m-person b {font-size:15px;}
.m-initial {display:grid;place-items:center;width:38px;height:38px;flex:none;border-radius:11px;background:#ffead7;color:#985024;font-weight:700;}
.m-initial.tone-1 {background:#e1edf3;color:#3b6374;}.m-initial.tone-2 {background:#eee6f4;color:#6e5085;}
.m-search {display:flex;align-items:center;padding:0 12px;gap:8px;background:white;border:1px solid var(--line);border-radius:9px;color:var(--muted);}
.m-search input {flex:1;border:0;min-height:45px;font-size:16px;padding-left:0;}
.m-roster-empty {border:0!important;padding:21px 10px!important;}
.m-roster-empty h2 {margin:6px 0;}.m-roster-empty .m-primary {margin-top:10px;}
.m-pill {color:#80481c;background:#fff0db;border-radius:20px;padding:4px 10px;font-size:12px;}
.m-big {font-size:13px;color:var(--muted);margin:12px 0 2px;}.m-big strong {font-size:34px;color:var(--navy);}
.mobile-app progress {width:100%;height:6px;accent-color:var(--orange);}
.m-account-meta,.m-info {font-size:13px;color:var(--muted);}.m-account-meta {flex-wrap:wrap;margin-top:6px;}
.m-info {padding:9px 0;min-height:40px;}.m-info b {margin-left:auto;color:var(--ink);overflow-wrap:anywhere;text-align:right;}
.m-bottom {position:fixed;z-index:3;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,600px);display:grid;grid-template-columns:repeat(4,1fr);padding:4px 6px calc(4px + env(safe-area-inset-bottom));background:#fff;border:1px solid var(--line);border-bottom:0;box-shadow:0 -3px 14px #1b293807;}
.m-bottom a {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:51px;color:#5b687b;font-size:11px;}
.m-bottom a[aria-current=page] {color:var(--orange);font-weight:700;}
.mobile-app .sp-banner {background:var(--navy);}.mobile-app .sp-banner p,.mobile-app .sp-banner-score strong {color:#ffd1a7;}.mobile-app .sp-banner small {color:#d5e0eb;}
.mobile-app .sp-sports [aria-pressed=true] {background:var(--navy);}
.mobile-app .sp-dose {background:#fff3e6;}.mobile-app .sp-dose strong,.mobile-app .sp-insight strong {color:#914221;}
.mobile-app .sp-milestone.done>span {background:#96522d;}
.mobile-app .sp-filters {gap:9px;}.mobile-app .sp-filters label {min-width:0;max-width:100%;}
.mobile-app .sp-sports button,.mobile-app .sp-tabs button,.mobile-app .sp-report-tools button {min-height:44px;}
.mobile-app .sp-heading {align-items:center;justify-content:space-between;gap:8px;flex-wrap:nowrap;margin-bottom:15px;}.mobile-app .sp-heading p {max-width:31ch;}
.mobile-app .sp-heading .button {white-space:nowrap;}
.mobile-app .sp-tabs {margin-top:9px;gap:18px;}.mobile-app .sp-growth-grid,.mobile-app .sp-plan-grid,.mobile-app .sp-analysis {grid-template-columns:1fr;}
.mobile-app .sp-report-tools select,.mobile-app .sp-filters select {min-height:44px;font-size:16px;}
.mobile-app .sp-report-tools {row-gap:8px;}.mobile-app dialog {color:var(--ink);padding:18px;border-radius:17px;border:1px solid var(--line);max-width:550px;}
.mobile-app dialog .form-grid {grid-template-columns:1fr;}
.mobile-app dialog h3 {font-size:16px;margin:18px 0 9px;}
.mobile-app dialog .dialog-head {margin-bottom:12px;}
.mobile-app dialog .hint {font-size:13px;}
.mobile-app dialog .entry-ident {background:#f1f3f7;}
.mobile-app .m-loading {text-align:center;padding:48px 15px;color:var(--muted);}
.mobile-app #toast {bottom:calc(75px + env(safe-area-inset-bottom));background:var(--navy);font-size:13px;z-index:10;}
@media (max-width:620px){
  .mobile-app dialog,.mobile-app dialog.wide {width:100%;max-width:100%;max-height:90dvh;margin:auto 0 0;border-radius:19px 19px 0 0;padding:8px 18px calc(15px + env(safe-area-inset-bottom));}
  .m-sheet-handle {width:36px;height:4px;border-radius:3px;background:#d4dae3;margin:1px auto 8px;}
  .mobile-app .sp-filters select {max-width:min(83vw,340px);}
  .mobile-app .sp-card.table-panel:not(.sp-comparison) table {width:100%;table-layout:fixed;white-space:normal;font-size:12px;}
  .mobile-app .sp-card.table-panel:not(.sp-comparison) :is(th,td) {padding:8px 3px;text-align:center;}
  .mobile-app .sp-card.table-panel:not(.sp-comparison) :is(th,td):first-child {width:31%;text-align:left;padding-left:9px;}
}
@media (min-width:650px){
  .m-auth {margin:24px auto;max-width:480px;min-height:auto;border-radius:18px;overflow:hidden;}
  .m-auth-body {padding:22px 28px 13px;}.m-auth-hero {padding:23px 28px;}
}
@media print {
  .mobile-app,.m-shell {background:white;box-shadow:none;max-width:none;}
  .mobile-app :is(.m-bar,.m-bottom,#toast,.sp-heading,.sp-filters,.sp-tabs,.sp-report-tools){display:none;}
  .m-shell {padding:0;}.mobile-app #m-main {padding:0;}.mobile-app .sp-trend {max-height:150px;}
}
