/* Scoped styles: the promotion studio never changes existing school/shop UI. */
.sp-studio { --sp-ink:#193c35; --sp-muted:#6b7d76; --sp-green:#155944; --sp-line:#e5eae5; color:var(--sp-ink); margin:12px 0 32px; font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif; }
.sp-studio * { box-sizing:border-box; }
.sp-admin-header { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:28px 0; }
.sp-eyebrow { font-size:11px; font-weight:650; letter-spacing:1.8px; color:#5c8372; }
.sp-admin-header h2 { font-size:29px; line-height:1.35; margin:9px 0; letter-spacing:-.6px; color:var(--sp-ink); }
.sp-admin-header p { font-size:13px; color:var(--sp-muted); margin:0; }
.sp-draft-badge { background:#f3eedd; border:1px solid #e9dfbd; color:#85713f; border-radius:999px; padding:8px 14px; white-space:nowrap; font-size:12px; }
.sp-admin-grid { display:grid; grid-template-columns:minmax(400px,1fr) 410px; gap:32px; align-items:start; }
.sp-editor { min-width:0; }
.sp-editor-card { padding:26px; background:#fff; border:1px solid var(--sp-line); border-radius:18px; margin-bottom:18px; box-shadow:0 3px 15px #244c3b03; }
.sp-card-heading { display:flex; align-items:flex-start; gap:13px; margin-bottom:25px; }
.sp-card-heading > i { width:30px; height:30px; border-radius:10px; display:grid; place-items:center; background:#ecf3ee; color:#60846c; font:500 12px ui-monospace,monospace; font-style:normal; }
.sp-card-heading h3 { color:var(--sp-ink); margin:1px 0 6px; font-size:17px; }
.sp-card-heading p { margin:0; color:var(--sp-muted); font-size:12px; line-height:1.6; }
.sp-field { display:flex; flex-direction:column; gap:9px; margin-bottom:19px; font-size:12px; color:#405c50; min-width:0; }
.sp-field > span { font-weight:600; }
.sp-studio .sp-field input,.sp-studio .sp-field textarea,.sp-studio .sp-field select { width:100%; min-height:43px; border:1px solid #dfe6df; background:#fdfefd; border-radius:9px; padding:11px 12px; font:400 13px/1.5 sans-serif; font-family:inherit; color:#24483a; box-shadow:none; outline:none; }
.sp-studio .sp-field input:focus,.sp-studio .sp-field textarea:focus { border-color:#79a28b; box-shadow:0 0 0 3px #dbece347; }
.sp-field small { color:#7c8c83; font-size:11px; line-height:1.65; font-weight:400; }
.sp-fields-row { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.sp-fields-row.two { grid-template-columns:repeat(2,minmax(0,1fr)); }
.sp-scope-pill { display:flex; align-items:center; flex-wrap:wrap; gap:12px; border-radius:10px; background:#f3f7f1; padding:13px 15px; font-size:12px; }
.sp-scope-pill b { color:#266442; }.sp-scope-pill small { font-size:11px; color:#7c8c83; }
.sp-count { margin-left:6px; color:#6f927b; font-size:12px; font-weight:500; }
.sp-school-picker { margin-bottom:20px; }
.sp-picker-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:16px; }
.sp-picker-heading > div { display:flex; flex-direction:column; gap:6px; min-width:0; }
.sp-picker-heading b { font-size:14px; font-weight:600; }
.sp-picker-heading span,.sp-picker-note { color:var(--sp-muted); font-size:11px; line-height:1.7; }
.sp-studio .sp-picker-heading button { flex-shrink:0; border:1px solid #dce5dc; background:#f6f9f4; border-radius:8px; padding:9px 11px; color:#456c52; font:12px/1.5 inherit; }
.sp-picker-search { display:flex; align-items:center; gap:10px; border:1px solid #dfe7df; background:#f8faf7; border-radius:10px; padding:0 13px; }
.sp-picker-search:focus-within { border-color:#79a28b; box-shadow:0 0 0 3px #dbece347; }
.sp-picker-search > span { font-size:24px; color:#7a9584; }
.sp-studio .sp-picker-search input { min-width:0; width:100%; border:0; background:transparent; outline:none; box-shadow:none; padding:12px 0; min-height:44px; font:13px/1.5 sans-serif; font-family:inherit; color:var(--sp-ink); }
.sp-picker-controls { display:flex; align-items:center; gap:12px; flex-wrap:wrap; padding:13px 0; color:#75877a; font-size:11px; }
.sp-picker-controls label { display:flex; align-items:center; gap:6px; color:#3a654b; cursor:pointer; }
.sp-studio .sp-picker-controls input,.sp-studio .sp-picker-option input { accent-color:#256e50; width:16px; height:16px; min-height:0; padding:0; margin:0; flex-shrink:0; }
.sp-studio [data-school-clear] { margin-left:auto; border:0; background:none; color:#66816b; font:12px/1.5 sans-serif; font-family:inherit; padding:5px 0; }
.sp-picker-chips { display:flex; flex-wrap:wrap; gap:7px; max-height:150px; overflow:auto; }
.sp-picker-chips:not(:empty) { padding-bottom:14px; }
.sp-studio .sp-picker-chips button { display:flex; align-items:center; gap:7px; max-width:100%; border:1px solid #dae7d9; border-radius:7px; background:#eef6eb; color:#396447; padding:7px 9px; font:12px/1.4 sans-serif; font-family:inherit; overflow-wrap:anywhere; }
.sp-picker-chips button span { color:#75917b; font-size:16px; }
.sp-picker-chips button small { font-size:10px; }
.sp-studio .sp-picker-chips .is-unavailable { color:#9b6447; background:#fff7ed; border-color:#eedfcb; }
.sp-picker-results { max-height:292px; overflow:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#ccd9cc transparent; border:1px solid #e2e9e1; border-radius:11px; background:#fff; }
.sp-picker-option { display:flex; align-items:center; gap:12px; padding:14px; cursor:pointer; border-bottom:1px solid #eef2ec; }
.sp-picker-option:last-child { border-bottom:0; }
.sp-picker-option:hover { background:#f8faf6; }
.sp-picker-option.is-selected { background:#f3f8ee; }
.sp-picker-option > div { display:flex; flex:1; flex-direction:column; gap:6px; min-width:0; }
.sp-picker-option b { font-size:13px; font-weight:550; overflow-wrap:anywhere; }
.sp-picker-option span { font-size:11px; color:#7d8d7c; }
.sp-picker-option > small { font-size:11px; color:#8e9d8b; flex-shrink:0; }
.sp-picker-option.is-selected > small { color:#397249; }
.sp-picker-empty { padding:28px 15px; font-size:12px; color:#7b8e7b; text-align:center; line-height:1.7; }
.sp-picker-empty small { display:block; margin-top:7px; font-size:11px; color:#95a08e; }
.sp-picker-empty.is-error { color:#a35440; }
.sp-picker-note { margin:11px 0 0; }
@media(max-width:420px) { .sp-picker-heading { align-items:flex-start; flex-direction:column; }.sp-picker-option { padding:12px; gap:9px; } }
.sp-policy-note { border-top:1px solid #edf0eb; padding-top:14px; color:#7c8c83; font-size:12px; line-height:1.75; margin:0; }
.sp-readiness { padding:4px 6px 24px; }.sp-readiness h3 { font-size:14px; margin:10px 0 16px; }
.sp-readiness [data-checklist] { display:grid; grid-template-columns:1fr 1fr; gap:13px; }
.sp-readiness [data-checklist] span { font-size:11px; color:#8a968e; display:flex; align-items:center; gap:7px; }
.sp-readiness [data-checklist] i { font-style:normal; }.sp-readiness [data-checklist] .done { color:#347456; }
.sp-readiness p { font-size:11px; color:#8a968e; line-height:1.8; margin:18px 0 0; }
.sp-save-bar { display:flex; align-items:center; gap:9px; background:#fff; border:1px solid var(--sp-line); border-radius:14px; padding:15px; position:sticky; bottom:12px; z-index:3; box-shadow:0 8px 32px #2c4c3810; }
.sp-save-bar > div { flex:1; display:flex; flex-direction:column; gap:5px; min-width:0; }
.sp-save-bar b { font-size:12px; }.sp-save-bar span { font-size:10px; color:var(--sp-muted); }
.sp-studio .sp-save-bar button { border:1px solid #dfe6df; border-radius:9px; color:#3b654d; background:white; padding:12px; font-size:12px; white-space:nowrap; }
.sp-studio .sp-save-bar .sp-primary { border-color:var(--sp-green); background:var(--sp-green); color:white; }
.sp-studio button:disabled { cursor:not-allowed; opacity:.45; }.sp-studio button:not(:disabled) { cursor:pointer; }
.sp-studio [data-prepare-product],.sp-studio .sp-activity button { border:1px solid #dce5db; background:#f7faf5; border-radius:9px; padding:10px 14px; min-height:40px; color:#355e46; font-family:inherit; font-size:12px; line-height:1.5; font-weight:500; }
.sp-studio [data-prepare-product]:hover,.sp-studio .sp-activity button:hover { background:#ecf3e7; }
.sp-studio .sp-activity-controls select { min-height:40px; padding:9px 30px 9px 12px; border:1px solid #dce5db; border-radius:9px; color:#355e46; background:#fdfefd; font-size:12px; }
.sp-studio button:focus-visible,.sp-studio select:focus-visible { outline:2px solid #77a98c; outline-offset:3px; }
.sp-status { padding:2px 5px; min-height:21px; font-size:12px; color:#397254; line-height:1.7; }.sp-status.is-error { color:#a35440; }
.sp-preview-column { position:sticky; top:var(--sp-preview-top,20px); min-width:0; }
.sp-preview-toolbar { display:flex; justify-content:space-between; align-items:center; margin:0 5px 16px; }
.sp-preview-toolbar > div { display:flex; flex-direction:column; gap:5px; }
.sp-preview-toolbar b { font-size:13px; }.sp-preview-toolbar span { font-size:10px; color:#8c968d; }
.sp-studio .sp-preview-toolbar select { font-size:11px; background:transparent; border:1px solid #dce4da; border-radius:8px; padding:8px 22px 8px 10px; color:#3f6550; width:auto; }
.sp-preview-footnote { margin:16px 8px 5px; color:#89938a; font-size:11px; line-height:1.7; text-align:center; }
.sp-preview-column [data-preview-notice] { font-size:11px; color:#a07847; line-height:1.65; text-align:center; min-height:18px; }
/* Student experience: the original blue identity on a quiet white surface. */
.sp-phone{position:relative;color:#172c3d;width:100%;max-width:410px;height:812px;margin:0 auto;border:7px solid #fff;outline:1px solid #e1e7ed;border-radius:30px;overflow:hidden;background:#fff;box-shadow:0 16px 48px #163b5910;display:flex;flex-direction:column}
.sp-phone-nav{height:65px;min-height:65px;padding:18px 18px 14px;display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid #f0f2f5}
.sp-phone-nav>span:first-child{width:63px;line-height:22px}.sp-phone-nav b{font-size:14px;font-weight:600;letter-spacing:.5px}.sp-capsule{font-size:13px;border:1px solid #e5e9ed;border-radius:20px;padding:5px 9px;color:#2b3944}
.sp-phone-scroll{overflow:auto;overscroll-behavior:contain;scrollbar-width:none;flex:1;padding:0 23px 24px;min-height:0}.sp-phone-scroll::-webkit-scrollbar{display:none}
.sp-brand-header{display:flex;align-items:center;gap:10px;padding:22px 0 24px;border-bottom:1px solid #e9edf1}
.sp-brand-header>img{width:42px;height:44px;object-fit:contain;flex-shrink:0}
.sp-brand-header>div{display:flex;flex-direction:column;gap:5px;min-width:0}
.sp-brand-header b{font-size:15px;font-weight:650;letter-spacing:1.5px;color:#163b59}
.sp-brand-header>div span{font-size:10px;letter-spacing:1px;color:#7a8996}
.sp-edition{margin-left:auto;padding-left:8px;color:#778592;font-size:10px;white-space:nowrap}
.sp-student-hero{padding:0;background:#fff;border:0;border-radius:0}
.sp-student-hero h2{font-size:28px;line-height:1.4;font-weight:650;letter-spacing:-.5px;color:#172c3d;margin:24px 0 9px;overflow-wrap:anywhere}
.sp-student-hero>p{color:#71808d;font-size:13px;line-height:1.85;margin:0}
.sp-offer{margin-top:22px;background:#163b59;color:#fff;border-radius:12px;padding:20px 20px 0}
.sp-offer-main{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-bottom:18px;min-width:0}
.sp-offer-label{font-size:11px;color:#bfd0df;letter-spacing:1px}
.sp-price{display:flex;align-items:baseline;gap:3px;margin-top:4px;line-height:1.1;font-variant-numeric:tabular-nums;white-space:nowrap}
.sp-price>span{font-size:20px}.sp-price strong{font-size:49px;letter-spacing:-2px;font-weight:500}.sp-price>small{font-size:12px;margin-left:4px;color:#bfd0df}
.sp-offer-terms{display:flex;flex-direction:column;align-items:flex-end;gap:9px;min-width:0}.sp-offer-terms b{font-size:16px;font-weight:550}.sp-offer-terms span{font-size:11px;color:#bfd0df;line-height:1.5;text-align:right}
.sp-offer-bottom{display:flex;justify-content:space-between;gap:12px;padding:13px 0;border-top:1px solid #ffffff26;font-size:10px;color:#bfd0df;line-height:1.6}.sp-offer-bottom>span:last-child{white-space:nowrap}
.sp-offer.is-compact{padding-top:14px}.sp-offer.is-compact .sp-offer-main{padding-bottom:14px}.sp-offer.is-compact .sp-price strong{font-size:34px}.sp-offer.is-compact .sp-offer-bottom{display:none}
.sp-journey-strip{display:flex;justify-content:space-between;gap:8px;padding:14px 0 0;color:#7d8994;font-size:10px}.sp-journey-strip span+span{border-left:1px solid #e4e9ee;padding-left:13px}
.sp-student-card{padding:26px 0;background:#fff;border:0;border-top:1px solid #e9edf1;border-radius:0;margin-top:26px}
.sp-student-card+.sp-student-card{margin-top:0}
.sp-student-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.sp-student-head h3{margin:0;font-size:17px;font-weight:600;color:#213748}.sp-student-head>span{font-size:11px;color:#687e90;white-space:nowrap}.sp-student-head>.sp-subtle{color:#8896a1}
.sp-free-card>p,.sp-copy{color:#788692;font-size:12px;margin:13px 0 17px;line-height:1.85}
.sp-school-list{margin:0}.sp-school-list>div{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid #eef1f4}
.sp-school-list>div>span{font:11px ui-monospace,monospace;color:#9aa6af}.sp-school-list b{font-size:13px;font-weight:500;color:#344d61;min-width:0;overflow-wrap:anywhere}.sp-school-list small{font-size:10px;color:#6f869a;margin-left:auto;flex-shrink:0}.sp-school-list>p{font-size:11px;color:#80909d;line-height:1.7}
.sp-free-empty{font-size:12px;color:#85939e;padding:16px 0;line-height:1.8}
.sp-studio .sp-text-link{border:0;width:100%;background:none;border-radius:0;padding:14px 0 0;margin:10px 0 0;display:flex;align-items:center;justify-content:space-between;color:#24618d;font-weight:500;font-size:12px;line-height:1.7;min-height:44px}
.sp-studio .sp-catalog-button{border:1px solid #dce5ed;border-radius:8px;background:#fff;padding:12px;margin:18px 0 0;justify-content:center}
.sp-benefit{padding:17px 0;border-bottom:1px solid #eef1f4}.sp-benefit>div{display:flex;flex-direction:column;gap:7px}.sp-benefit b{font-size:13px;font-weight:550;color:#344d61}.sp-benefit span{font-size:12px;line-height:1.7;color:#81909c}
.sp-scope-note{color:#8b97a1;font-size:11px;line-height:1.9;margin:17px 0 0}
.sp-rules{margin:0;padding:18px 0 4px;color:#71818e;font-size:12px;line-height:1.9;border-top:1px solid #e9edf1}.sp-rules summary{list-style:none;display:flex;justify-content:space-between;cursor:pointer}.sp-rules summary::-webkit-details-marker{display:none}.sp-rules summary span{color:#91a0ab}.sp-rules p{font-size:12px;margin:12px 0}
.sp-student-card.sp-team-card{padding:20px 18px;margin-top:23px;border:1px solid #e2eaf1;border-radius:12px;background:#f6f9fc}
.sp-team-card .sp-student-head h3{font-size:15px}
.sp-team-slots{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;padding-top:21px}
.sp-team-slots>div{display:flex;flex-direction:column;align-items:center;gap:10px;flex:1;min-width:58px;max-width:86px;padding:13px 3px;border:1px dashed #cfdae3;border-radius:8px;color:#8a9aa8;background:#fff}
.sp-team-slots i{font:500 24px/1.1 ui-monospace,monospace;font-style:normal;letter-spacing:-1px;color:#b1bdc8}.sp-team-slots .is-filled{border:1px solid #c4d7e6;background:#e9f1f8}.sp-team-slots .is-filled i{color:#285778}.sp-team-slots span{font-size:10px}
.sp-team-note{color:#8494a0;font-size:11px;line-height:1.7;margin:17px 0 0}.sp-binding-note{color:#60798d;font-size:12px;line-height:1.85;padding:15px 0 0;border-top:1px solid #dfe7ef;margin:16px 0 0}
.sp-team-card .sp-copy{margin-bottom:0}
.sp-student-footer{background:#fff;border-top:1px solid #e8edf2;padding:12px 23px 14px;text-align:center;flex-shrink:0}
.sp-student-footer>span{display:block;font-size:11px;color:#788996;margin-bottom:10px;line-height:1.6}
.sp-studio .sp-student-footer>button{display:flex;align-items:center;justify-content:center;background:#165482;border:0;color:#fff;border-radius:9px;width:100%;min-height:47px;padding:13px 10px;font:600 14px/1.6 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;white-space:normal}
.sp-student-footer>small{display:block;font-size:10px;color:#8a99a5;margin-top:10px;line-height:1.6}
.sp-chevron{display:inline-block;width:6px;height:6px;border-right:1px solid currentColor;border-top:1px solid currentColor;transform:rotate(45deg);margin-right:4px;opacity:.65;flex-shrink:0}.sp-chevron.sp-back{transform:rotate(-135deg);width:9px;height:9px;border-width:2px}
.sp-chat-scene{background:#f0f2f5;padding-top:10px}.sp-scene-note{font-size:11px;line-height:1.8;color:#7e8d99;margin:16px 0}.sp-chat-note{font-size:12px;line-height:1.9;color:#7b8b98;margin:20px 0}
.sp-wechat-card{background:#fff;border:1px solid #e3e8ed;border-radius:8px;overflow:hidden;margin:12px 0}.sp-wechat-card h3{font-size:14px;font-weight:500;line-height:1.65;margin:14px 15px;color:#233e53}.sp-wechat-card canvas{display:block;width:100%;height:auto;aspect-ratio:5/4}.sp-wechat-card>div{display:flex;align-items:center;gap:7px;padding:10px 13px;font-size:10px;color:#85939f;border-top:1px solid #edf0f3}.sp-wechat-card>div img{width:17px;height:18px;object-fit:contain}
.sp-gate-mask{position:absolute;inset:65px 0 0;z-index:4;background:#122b4366;display:flex;align-items:center;justify-content:center;padding:17px}
.sp-gate{background:#fff;border:1px solid #e0e7ee;border-radius:14px;padding:23px;width:100%;max-height:100%;overflow:auto}
.sp-gate-brand{display:flex;align-items:center;gap:11px;font-size:12px;color:#55728a}.sp-gate-brand img{width:38px;height:40px;object-fit:contain}
.sp-gate h3{font-size:20px;line-height:1.5;margin:21px 0 12px;color:#1f3d53}.sp-gate p{font-size:12px;line-height:1.85;color:#7a8996;margin:12px 0}.sp-gate small{font-size:10px;color:#8c9aa5;line-height:1.8}.sp-gate>small{display:block;text-align:center;margin-top:12px}
.sp-gate-offer{display:flex;gap:18px;align-items:center;padding:17px 0;border-top:1px solid #e5ebf0;border-bottom:1px solid #e5ebf0}.sp-gate-offer b{font-size:28px;font-weight:550;color:#244e70}.sp-gate-offer span{font-size:11px;line-height:1.9;color:#708494}
.sp-studio .sp-gate button{width:100%;font-size:13px;border:0;border-radius:8px;background:#165482;color:#fff;padding:13px 8px;margin-top:10px;line-height:1.6}.sp-studio .sp-gate .sp-soft-button{background:#f0f4f8;color:#61798c}
.sp-catalog-entry{padding:22px 0;border-bottom:1px solid #e1e8ef;margin-top:6px}.sp-catalog-entry small{font-size:10px;color:#73899b}.sp-catalog-entry h3{font-size:22px;margin:14px 0;color:#1e3e57}.sp-catalog-entry p{font-size:12px;line-height:1.8;color:#7b8c99}.sp-studio .sp-catalog-entry button{border:1px solid #dce5ed;background:#f6f9fc;border-radius:7px;padding:10px 15px;color:#2e648e;font-size:12px}
.sp-preview-column .sp-phone{height:var(--sp-preview-height,812px)}
.sp-short-viewport .sp-preview-column{position:static}
@media(max-width:1240px){.sp-admin-grid{grid-template-columns:minmax(320px,1fr) 360px;gap:20px}.sp-editor-card{padding:21px}.sp-fields-row{gap:10px}.sp-save-bar{flex-wrap:wrap}.sp-save-bar>div{flex-basis:100%}}
@media(max-width:950px){.sp-admin-grid{display:flex;flex-direction:column}.sp-editor,.sp-preview-column{width:100%}.sp-preview-column{position:static;max-width:410px;margin:20px auto 0}.sp-admin-header{flex-wrap:wrap;gap:14px}.sp-fields-row{grid-template-columns:repeat(3,minmax(0,1fr))}.sp-save-bar{position:static}.sp-preview-column .sp-phone{height:780px;max-height:none}}
@media(max-width:420px){.sp-fields-row,.sp-fields-row.two{grid-template-columns:1fr;gap:0}.sp-editor-card{padding:18px}.sp-readiness [data-checklist]{grid-template-columns:1fr}.sp-phone{border-width:5px;border-radius:25px}.sp-phone-scroll{padding-left:20px;padding-right:20px}.sp-phone-nav{padding-left:16px;padding-right:16px}.sp-phone-nav>span:first-child{width:49px}.sp-capsule{font-size:11px}.sp-preview-toolbar{gap:8px}.sp-preview-toolbar b{font-size:12px}.sp-studio .sp-preview-toolbar select{max-width:145px}.sp-gate-mask{padding:12px}.sp-gate{padding:19px}.sp-offer{padding-left:16px;padding-right:16px}}
@media(max-width:350px){.sp-phone-scroll{padding-left:16px;padding-right:16px}.sp-student-hero h2{font-size:25px}.sp-offer-main{gap:9px}.sp-offer-terms b{font-size:14px}.sp-offer-terms span{font-size:10px}.sp-brand-header{gap:8px}.sp-edition{font-size:9px}.sp-brand-header b{font-size:14px}.sp-price strong{font-size:44px}.sp-offer-bottom{font-size:9px}.sp-student-footer{padding-left:16px;padding-right:16px}}
@media(prefers-reduced-motion:reduce){.sp-studio *{scroll-behavior:auto;transition:none;animation:none}}
.sp-activity-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:16px}.sp-activity-controls select{max-width:180px}.sp-activity-controls label{display:flex;align-items:center;gap:6px;font-size:12px;color:#60746a}.sp-activity-controls input[type=checkbox]{width:16px;height:16px;accent-color:#21614b}.sp-activity-row{border-top:1px solid #e7ece6;padding:16px 0;display:grid;gap:8px}.sp-activity-row>div{display:flex;align-items:center;justify-content:space-between;gap:12px}.sp-activity-row>div span,.sp-activity-row small{color:#75887c;font-size:12px}.sp-activity-row code{font-size:11px;overflow-wrap:anywhere;color:#60746a}.sp-activity-warning{margin:0;color:#a26524;font-size:12px;line-height:1.7}.sp-activity [data-activity-rows]>p{color:#75887c;font-size:12px;line-height:1.7}
.sp-student-search { display:flex; align-items:flex-end; gap:12px; margin-bottom:18px; flex-wrap:wrap; }
.sp-student-search .sp-field { flex:1; min-width:180px; margin:0; }
.sp-studio .sp-student-access button { padding:11px 14px; border:1px solid #dce5db; border-radius:9px; color:#355e46; background:#f7faf5; font-size:12px; }
.sp-student-buttons { display:flex; flex-wrap:wrap; gap:12px; }
.sp-student-access [data-student-result] { font-size:13px; overflow-wrap:anywhere; }

/* Operations ledger: compact pages, details on demand, no full-list rendering. */
.sp-activity [hidden]{display:none!important}
.sp-activity-controls .sp-activity-field{display:grid;gap:6px;min-width:130px;flex:1}
.sp-activity-controls{align-items:flex-end}
.sp-activity-controls .sp-activity-field select{max-width:none;width:100%;min-width:0}
.sp-studio .sp-activity button{min-height:38px;padding:9px 12px;border:1px solid #dce5e9;border-radius:8px;background:#fff;color:#315975;font-size:12px;white-space:nowrap;cursor:pointer}
.sp-studio .sp-activity [data-activity-unpaid]{background:#eaf2f8;border-color:#dce8f1;color:#195781}
.sp-activity-search{display:flex;gap:8px;margin:16px 0 12px;min-width:0}
.sp-studio .sp-activity-search input{flex:1;min-width:0;padding:11px 12px;border:1px solid #dde5eb;border-radius:8px;background:#fafcfd;color:#243d50;font-size:12px}
.sp-activity-meta{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;font-size:11px;color:#7c8a94;margin-bottom:15px}
.sp-activity-meta label{display:flex;align-items:center;gap:5px;font-size:12px}
.sp-activity-meta input{width:15px;height:15px;accent-color:#1c628f}
.sp-activity-list{max-height:670px;overflow:auto;overscroll-behavior:contain;border-top:1px solid #e5ebef}
.sp-activity-row{padding:17px 0;border-top:0;border-bottom:1px solid #e5ebef;gap:10px}
.sp-activity-row>.sp-ledger-main{display:grid;grid-template-columns:minmax(130px,1.8fr) minmax(80px,.9fr) minmax(100px,1.2fr) auto;gap:14px;align-items:center}
.sp-ledger-identity,.sp-ledger-state,.sp-ledger-time{min-width:0;display:grid;gap:5px}
.sp-ledger-identity b{font-size:13px;font-weight:600;color:#253f52;overflow-wrap:anywhere}
.sp-ledger-time>span{font-size:11px!important;color:#667a89!important;line-height:1.6}
.sp-activity-row small{font-size:11px;line-height:1.6;color:#84919a}
.sp-activity-row code{font-family:ui-monospace,SFMono-Regular,monospace;font-size:10px;color:#81909b;line-height:1.6;overflow-wrap:anywhere}
.sp-activity-row .sp-ledger-status{display:inline-block;justify-self:start;font-size:11px;color:#99722e;background:#fbf4e5;padding:3px 7px;border-radius:5px;line-height:1.6;white-space:normal}
.sp-activity-row .sp-ledger-status.good{color:#2f7361;background:#edf6f2}.sp-activity-row .sp-ledger-status.muted{color:#77838b;background:#f0f3f5}
.sp-activity-note{font-size:11px;color:#7c8a94;margin:0;line-height:1.7}
.sp-activity-row>.sp-activity-detail{display:block;padding:16px;background:#f7fafc;border:1px solid #e5edf2;border-radius:10px}
.sp-members-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:6px}
.sp-members-heading b{font-size:12px;color:#314f65}.sp-members-heading span{font-size:11px;color:#7c8a94}
.sp-member-row{display:grid;grid-template-columns:minmax(120px,1fr) auto;gap:10px;padding:14px 0;border-bottom:1px solid #e5ebef}
.sp-member-row:last-child{border-bottom:0;padding-bottom:0}.sp-member-row>div:nth-child(2){display:flex;gap:10px;align-items:start}
.sp-member-row strong{font-size:12px;color:#315975}.sp-member-name{display:grid;gap:4px;justify-items:start;min-width:0}
.sp-member-name b{font-size:13px;overflow-wrap:anywhere}.sp-member-role{font-size:10px;color:#59798f}
.sp-member-order{grid-column:1/-1;display:grid;gap:4px}
.sp-activity-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:16px;color:#83919b;font-size:11px}
.sp-activity-pagination>div{display:flex;gap:8px}
@media(max-width:1240px){.sp-activity-row>.sp-ledger-main{grid-template-columns:minmax(100px,1fr) minmax(80px,auto);gap:10px}.sp-ledger-time{grid-row:2}.sp-ledger-action{text-align:right}.sp-ledger-state{justify-items:end}}
@media(max-width:420px){.sp-activity-search{flex-wrap:wrap}.sp-activity-search input{flex-basis:100%}.sp-activity-meta{font-size:10px}.sp-activity-row>.sp-activity-detail{padding:12px}.sp-members-heading{display:grid}.sp-member-row{grid-template-columns:minmax(0,1fr)}.sp-member-order{grid-column:1}.sp-activity-controls .sp-activity-field{min-width:100px}}
