:root{--text: #18181b;--muted: #8b8b92;--subtle: #f7f7f8;--surface: #ffffff;--line: #e8e8ed;--accent: #ff7a1a;--danger: #ff2d55;--positive: #22b64b;--blue: #0a84ff;--surface-raised: rgba(255, 255, 255, .92);--surface-soft: #fbfbfc;--accent-soft: #fff3e8;--dock-reserved-height: calc(96px + env(safe-area-inset-bottom)) ;--bottom-dock-safe-area: calc(56px + env(safe-area-inset-bottom)) ;--shadow-float: 0 12px 30px rgba(17, 24, 39, .07);--shadow-soft: 0 8px 22px rgba(17, 24, 39, .045);--shadow-card: 0 10px 28px rgba(17, 24, 39, .035);font-family:SF Pro Text,-apple-system,BlinkMacSystemFont,PingFang SC,Microsoft YaHei,sans-serif;color:var(--text);background:var(--subtle);font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;color:var(--text);background:var(--subtle);font-weight:400;letter-spacing:0}button,input,select,textarea{font:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color .14s ease,color .14s ease,box-shadow .14s ease,transform .12s ease}.app-shell{position:relative;width:min(100%,520px);min-height:100vh;margin:0 auto;overflow-x:hidden;background:var(--surface)}.calendar-screen,.utility-screen{min-height:0;height:calc(100vh - var(--dock-reserved-height));overflow-y:auto;overscroll-behavior:contain;padding-bottom:var(--bottom-dock-safe-area);scroll-padding-bottom:var(--bottom-dock-safe-area);-webkit-overflow-scrolling:touch}.calendar-screen{position:relative}.portal-screen{min-height:100vh;overflow-y:auto;padding:calc(28px + env(safe-area-inset-top)) 18px calc(30px + env(safe-area-inset-bottom));background:linear-gradient(180deg,#fff,#fbfbfc 48%,#f5f5f7);-webkit-overflow-scrolling:touch}.portal-hero{display:grid;gap:8px;padding:10px 2px 18px}.portal-hero span,.portal-model-card span,.role-preview-header span,.role-section-title small{color:#8b8b92;font-size:13px;font-weight:700}.portal-hero h1,.role-preview-header h1{margin:0;color:var(--text);font-size:36px;line-height:1.02;font-weight:850;letter-spacing:0}.portal-hero p,.portal-model-card p,.role-preview-card p{margin:0;color:#6f6f76;font-size:15px;line-height:1.55}.portal-role-grid{display:grid;gap:12px}.portal-role-card{display:grid;grid-template-columns:48px minmax(0,1fr);gap:14px;width:100%;padding:16px;color:var(--text);text-align:left;background:#fffffff2;border:1px solid rgba(17,24,39,.06);border-radius:22px;box-shadow:var(--shadow-card)}.portal-role-card.teacher{border-color:#ff7a1a3d;background:linear-gradient(180deg,#fff8f1,#fff 72%)}.portal-role-icon{display:grid;place-items:center;width:48px;height:48px;color:var(--text);background:#f2f2f4;border-radius:18px}.portal-role-card.teacher .portal-role-icon{color:#fff;background:linear-gradient(180deg,#ff9d3d,#ff7a1a)}.portal-role-copy,.portal-role-title,.portal-role-stats{display:grid;min-width:0}.portal-role-copy{gap:8px}.portal-role-copy>span:not(.portal-role-title):not(.portal-role-stats){color:#6f6f76;font-size:13.5px;line-height:1.42}.portal-role-title{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px}.portal-role-title strong{overflow:hidden;font-size:19px;line-height:1.15;font-weight:820;text-overflow:ellipsis;white-space:nowrap}.portal-role-title em{padding:4px 8px;color:#d76614;background:#fff1e8;border-radius:999px;font-size:11px;font-style:normal;font-weight:750;white-space:nowrap}.portal-role-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.portal-role-stats small{overflow:hidden;padding:7px 9px;color:#4f4f55;background:#f6f6f8;border-radius:12px;font-size:12px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.portal-model-card,.role-preview-card,.role-preview-list{margin-top:14px;padding:18px;background:#fffffff2;border:1px solid rgba(17,24,39,.06);border-radius:24px;box-shadow:var(--shadow-card)}.portal-model-card{display:grid;gap:16px}.portal-model-card h2{margin:5px 0 8px;font-size:22px;line-height:1.16}.portal-model-flow{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}.portal-model-flow span,.portal-model-flow strong{display:grid;place-items:center;min-height:38px;padding:6px;color:#64646c;background:#f6f6f8;border-radius:12px;font-size:11px;line-height:1.2;text-align:center}.portal-model-flow strong{color:#fff;background:#111}.role-preview-screen{padding-top:calc(18px + env(safe-area-inset-top))}.role-preview-header{display:grid;grid-template-columns:48px minmax(0,1fr);gap:12px;align-items:center;padding-bottom:14px}.role-preview-header button{display:grid;place-items:center;width:48px;height:48px;color:var(--text);background:#ffffffe6;border:0;border-radius:24px;box-shadow:var(--shadow-soft)}.role-preview-header h1{font-size:30px}.role-preview-card{display:grid;gap:16px;margin-top:0}.role-primary-action{min-height:48px;color:#fff;background:linear-gradient(180deg,#ff9638,#ff7a1a);border:0;border-radius:18px;font-weight:820}.role-metric-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px}.role-metric-grid button{display:grid;gap:6px;min-height:86px;padding:12px;color:var(--text);text-align:left;background:#fff;border:1px solid rgba(17,24,39,.06);border-radius:18px;box-shadow:var(--shadow-soft)}.role-metric-grid span{color:#8b8b92;font-size:12px;font-weight:700}.role-metric-grid strong{overflow:hidden;font-size:17px;line-height:1.2;font-weight:850;text-overflow:ellipsis;white-space:nowrap}.role-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.role-section-title span{font-size:19px;font-weight:820}.role-lesson-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:13px 0;border-top:1px solid rgba(17,24,39,.06)}.role-lesson-row:first-of-type{border-top:0}.role-lesson-row div{display:grid;min-width:0;gap:4px}.role-lesson-row strong{overflow:hidden;font-size:16px;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}.role-lesson-row span{overflow:hidden;color:#777780;font-size:12.5px;text-overflow:ellipsis;white-space:nowrap}.role-lesson-row small{padding:5px 8px;color:#d76614;background:#fff1e8;border-radius:999px;font-size:12px;font-weight:760;white-space:nowrap}.portal-empty{margin:12px 0 0;color:#8b8b92;font-size:14px;line-height:1.5}.polished-role-screen{display:grid;align-content:start;gap:12px;padding-top:calc(16px + env(safe-area-inset-top))}.polished-role-topbar{display:flex;align-items:center;gap:12px;min-height:52px}.polished-role-topbar button{display:grid;place-items:center;width:48px;height:48px;color:var(--text);background:#ffffffeb;border:0;border-radius:24px;box-shadow:var(--shadow-float)}.polished-role-topbar span{color:#6f6f76;font-size:14px;font-weight:760}.polished-role-hero,.polished-next-card,.polished-role-note{background:#fffffff5;border:1px solid rgba(17,24,39,.055);border-radius:26px;box-shadow:var(--shadow-card)}.polished-role-hero{display:grid;gap:16px;padding:20px}.polished-role-heading{display:grid;grid-template-columns:54px minmax(0,1fr);gap:14px;align-items:start}.polished-role-icon{display:grid;place-items:center;width:54px;height:54px;color:#fff;background:linear-gradient(180deg,#2b2b2f,#111);border-radius:20px;box-shadow:0 12px 24px #11182729}.polished-role-heading small,.polished-role-kpi span,.metric-copy small{color:#8b8b92;font-size:12px;font-weight:780}.polished-role-heading h1{margin:3px 0 6px;color:var(--text);font-size:34px;line-height:1.04;font-weight:880;letter-spacing:0}.polished-role-heading p{margin:0;color:#6f6f76;font-size:14px;line-height:1.48}.polished-role-kpi{display:grid;gap:5px;padding:15px 16px;background:linear-gradient(180deg,#f8f8fa,#fff);border:1px solid rgba(17,24,39,.045);border-radius:20px}.polished-role-kpi strong{overflow:hidden;color:var(--text);font-size:31px;line-height:1;font-weight:880;text-overflow:ellipsis;white-space:nowrap}.polished-chip-row{display:flex;gap:8px;overflow-x:auto;padding-bottom:2px;scrollbar-width:none}.polished-chip-row::-webkit-scrollbar{display:none}.polished-chip-row span{flex:0 0 auto;padding:8px 11px;color:#5f5f66;background:#f4f4f6;border-radius:999px;font-size:12px;font-weight:760;white-space:nowrap}.polished-primary{min-height:50px;border-radius:20px;box-shadow:0 14px 26px #ff7a1a38,inset 0 1px #ffffff59}.polished-metric-stack{display:grid;gap:10px}.polished-metric-stack button{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:12px;align-items:center;width:100%;min-height:72px;padding:13px 14px;color:var(--text);text-align:left;background:#fffffff5;border:1px solid rgba(17,24,39,.055);border-radius:22px;box-shadow:var(--shadow-soft)}.metric-icon{display:grid;place-items:center;width:42px;height:42px;color:var(--text);background:#f4f4f6;border-radius:16px}.metric-copy{display:grid;min-width:0;gap:4px}.metric-copy em{overflow:hidden;color:#787880;font-size:12px;font-style:normal;text-overflow:ellipsis;white-space:nowrap}.polished-metric-stack strong{max-width:96px;overflow:hidden;color:#d76614;font-size:18px;font-weight:850;text-overflow:ellipsis;white-space:nowrap}.polished-next-card{padding:18px}.polished-next-lesson{display:grid;grid-template-columns:50px minmax(0,1fr) auto;gap:12px;align-items:center;min-height:74px;padding-top:4px}.next-date-badge{display:grid;place-items:center;width:50px;height:58px;color:#fff;background:#111;border-radius:18px}.next-date-badge strong{font-size:24px;line-height:1}.next-date-badge span{color:#ffffffc7;font-size:11px;font-weight:760}.polished-next-lesson div:not(.next-date-badge){display:grid;min-width:0;gap:5px}.polished-next-lesson div:not(.next-date-badge) strong{overflow:hidden;font-size:17px;line-height:1.15;font-weight:850;text-overflow:ellipsis;white-space:nowrap}.polished-next-lesson div:not(.next-date-badge) span{overflow:hidden;color:#777780;font-size:12.5px;text-overflow:ellipsis;white-space:nowrap}.polished-next-lesson>small{padding:6px 9px;color:#d76614;background:#fff1e8;border-radius:999px;font-size:12px;font-weight:780;white-space:nowrap}.polished-list{margin-top:0}.polished-role-note{display:grid;grid-template-columns:34px minmax(0,1fr);gap:12px;align-items:start;padding:16px}.polished-role-note>svg{color:#d76614;margin-top:2px}.polished-role-note div{display:grid;gap:5px}.polished-role-note strong{font-size:15px;line-height:1.2}.polished-role-note span{color:#72727a;font-size:13px;line-height:1.45}.polished-role-screen.parent .polished-role-icon,.polished-role-screen.parent .next-date-badge{background:linear-gradient(180deg,#ff9f45,#ff7a1a)}.polished-role-screen.student .polished-role-icon,.polished-role-screen.student .next-date-badge{background:linear-gradient(180deg,#2f7cff,#0a54d6)}.polished-role-screen.institution .polished-role-icon,.polished-role-screen.institution .next-date-badge{background:linear-gradient(180deg,#242428,#111)}.ios-hero{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:calc(18px + env(safe-area-inset-top)) 18px 8px}.year-pill,.hero-tools,.floating-today-button,.dock-group{box-shadow:var(--shadow-float)}.year-pill,.hero-tools{display:inline-flex;align-items:center;min-height:54px;background:#ffffffeb;border:0;border-radius:26px;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.year-pill{gap:4px;max-width:48%;padding:0 18px 0 10px;color:var(--text);font-size:21px;font-weight:700;white-space:nowrap}.hero-tools{gap:3px;padding:0 9px}.hero-tools button,.dock-group button{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;color:var(--text);background:transparent;border:0;border-radius:23px}.hero-tools button:active,.dock-group button:active,.year-pill:active,.today-pill:active{transform:scale(.97)}.month-title-row{display:flex;align-items:center;justify-content:space-between;padding:14px 22px 12px}.month-title-row h1{margin:0;font-size:clamp(40px,12.5vw,58px);line-height:.95;font-weight:780;letter-spacing:0}.month-title-row button{min-height:34px;padding:0 12px;color:var(--accent);background:#fff1e9;border:0;border-radius:17px;font-size:14px;font-weight:700}.calendar-mode-panel,.year-overview{animation:calendar-panel-in .18s cubic-bezier(.2,.8,.2,1)}.year-screen{background:#fff}.year-hero{display:flex;justify-content:flex-end;padding:calc(18px + env(safe-area-inset-top)) 18px 18px}.year-tools{justify-content:center}.year-overview{padding:42px 18px var(--bottom-dock-safe-area)}.year-title-row{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;padding-bottom:14px;border-bottom:1px solid #e5e5ea}.year-title-row h1{margin:0;color:var(--danger);font-size:clamp(42px,13vw,58px);line-height:.95;font-weight:780;letter-spacing:0}.year-lunar-note{display:grid;gap:5px;padding-bottom:5px;color:var(--muted);font-size:14px;font-weight:650;text-align:left;white-space:nowrap}.year-lunar-note span{display:inline-flex;align-items:center;gap:7px}.year-lunar-note i{display:block;width:15px;height:2px;background:#d1d1d6;border-radius:999px}.year-lunar-note span:first-child i{background:var(--danger)}.year-months-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:20px;row-gap:36px;padding-top:22px}.year-month-card{display:grid;gap:14px;min-width:0;padding:0;color:#111;text-align:left;background:transparent;border:0}.year-month-card>strong{color:var(--text);font-size:clamp(28px,7.4vw,38px);line-height:1;font-weight:780;letter-spacing:0}.year-month-card.active>strong{color:var(--danger)}.mini-month-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:7px 2px;align-items:center;color:#111;font-size:11px;font-variant-numeric:tabular-nums;font-weight:700;line-height:1}.mini-day{position:relative;display:grid;place-items:center;min-width:0;aspect-ratio:1;border-radius:999px}.mini-day.empty{visibility:hidden}.mini-day.today:not(.selected),.mini-day.has-lesson:not(.selected){color:#111}.mini-day.today:not(.selected):after,.mini-day.has-lesson:not(.selected):after{content:"";position:absolute;left:18%;right:18%;bottom:-4px;height:2px;background:#ff2d55;border-radius:999px}.mini-day.selected{color:#fff;background:#ff2d55}@keyframes calendar-panel-in{0%{opacity:0;transform:translateY(12px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes sheet-up{0%{opacity:0;transform:translateY(26px)}to{opacity:1;transform:translateY(0)}}.ios-month{--swipe-offset: 0px;overflow:hidden;background:var(--surface);touch-action:pan-y;-webkit-user-select:none;user-select:none;overscroll-behavior-x:contain}.ios-month.swiping{cursor:grabbing}.ios-month-motion{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:300%;transform:translate3d(calc(-33.333333% + var(--swipe-offset)),0,0);transition:none;will-change:transform}.ios-month.settling .ios-month-motion{transition:transform .18s cubic-bezier(.2,.8,.2,1)}.ios-month-page{min-width:0}.ios-month-page[aria-hidden=true]{pointer-events:none}.ios-weekdays{display:grid;grid-template-columns:28px repeat(7,minmax(0,1fr));align-items:center;height:34px;padding:0 8px;border-bottom:1px solid var(--line);color:var(--text);font-size:15px;font-weight:760;text-align:center;transition:opacity .12s ease}.ios-weekdays span:nth-last-child(-n+2){color:#86868b}.ios-month-grid{display:grid;grid-template-columns:28px repeat(7,minmax(0,1fr));padding:0 8px 8px;transition:opacity .12s ease}.week-number{display:flex;align-items:center;justify-content:center;height:66px;color:var(--muted);border-top:1px solid var(--line);font-size:13px;font-weight:700}.week-number.current{color:var(--danger)}.ios-day{position:relative;display:grid;grid-template-rows:44px 14px;align-items:start;justify-items:center;height:66px;padding:4px 2px 3px;color:var(--text);background:var(--surface);border:0;border-top:1px solid var(--line);border-radius:0}.ios-day.outside{color:#a6a6ab}.date-badge{display:grid;place-items:center;width:42px;height:42px;border-radius:21px}.date-badge strong{display:block;font-size:21px;line-height:1;font-weight:760}.date-badge em{display:block;margin-top:3px;color:inherit;font-size:11px;line-height:1;font-style:normal;font-weight:600}.ios-day.selected .date-badge{color:#fff;background:#000}.ios-day.today:not(.selected){color:var(--danger)}.event-marks{display:flex;align-items:center;justify-content:center;gap:3px;width:100%;min-height:10px}.event-marks i{display:block;width:7px;height:7px;border-radius:999px}.event-marks i:first-child:last-child{width:25px;height:6px}.event-marks i:nth-child(2){width:16px;height:6px}.week-table{--swipe-offset: 0px;position:relative;overflow-x:hidden;padding-bottom:78px;background:var(--surface);touch-action:pan-y;-webkit-user-select:none;user-select:none;overscroll-behavior-x:contain}.week-table-motion{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:300%;transform:translate3d(calc(-33.333333% + var(--swipe-offset)),0,0);transition:none;will-change:transform}.week-table.settling .week-table-motion{transition:transform .17s cubic-bezier(.2,.8,.2,1)}.week-table-page{min-width:0}.week-table-page[aria-hidden=true]{pointer-events:none}.week-table-title{display:flex;align-items:baseline;gap:8px;padding:0 18px 12px}.week-table-title h2{margin:0;font-size:26px;line-height:1;font-weight:780}.week-table-title span{color:var(--muted);font-size:14px}.week-grid{display:grid;grid-template-columns:46px repeat(7,minmax(0,1fr));width:100%;border-top:1px solid var(--line);border-left:1px solid var(--line)}.week-table.dragging,.week-table.swiping{cursor:grabbing}.period-head,.week-day-head,.period-label,.period-cell{border-right:1px solid var(--line);border-bottom:1px solid var(--line)}.period-head,.week-day-head{min-height:64px;background:var(--surface)}.period-head{display:grid;place-items:center;color:var(--muted);font-size:13px}.week-day-head{display:grid;align-content:center;gap:4px;color:var(--muted);border-top:0;border-left:0}.week-day-head span{font-size:12px}.week-day-head strong{color:var(--text);font-size:18px;line-height:1}.week-day-head.active strong{display:inline-grid;place-items:center;width:32px;height:32px;margin:0 auto;color:#fff;background:var(--accent);border-radius:16px}.period-label{display:grid;align-content:center;justify-items:center;min-height:68px;color:var(--muted);text-align:center;background:#fbfbfc;letter-spacing:0}.period-label strong{color:var(--text);font-size:17px;line-height:1;letter-spacing:0}.period-label span{font-size:11px;font-weight:650}.period-label.custom-period{background:#fbfbfc}.period-label.custom-period strong{color:var(--text)}.period-add-label{min-height:64px;background:#fffaf5}.period-add-button{display:inline-grid;place-items:center;width:36px;height:36px;color:#fff;background:var(--accent);border:0;border-radius:50%;box-shadow:0 10px 20px #ff751f38}.period-add-button:disabled{color:#fff;background:#c7c7cc;box-shadow:none}.period-cell{position:relative;display:flex;flex-direction:column;justify-content:stretch;align-items:stretch;gap:4px;min-height:68px;padding:4px;color:#c7c7cc;background:var(--surface);border-top:0;border-left:0;letter-spacing:0;transition:background-color .12s ease,box-shadow .12s ease}.period-add-spacer{min-height:64px;padding:0;pointer-events:none;background:#fffdfb}.period-add-spacer:after{content:"";align-self:center;width:100%;height:1px;background:linear-gradient(90deg,transparent,rgba(255,117,31,.16),transparent)}.period-cell.drop-origin{background:#fff8f2}.period-cell.drop-target{background:#fff1e5;box-shadow:inset 0 0 0 2px var(--accent)}.mini-lesson{display:flex;flex:1 1 0;flex-direction:column;align-items:center;justify-content:stretch;gap:0;width:100%;min-height:0;padding:0;overflow:hidden;color:#fff;border-radius:8px;font-weight:720;letter-spacing:0;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;box-shadow:0 6px 14px #1018281f;line-height:1.1}.period-cell.has-multiple-lessons{gap:4px;padding:4px}.period-cell.has-multiple-lessons .mini-lesson{flex:0 0 calc((100% - 4px)/2);min-height:38px;border-radius:7px;box-shadow:0 5px 12px #1018281c}.mini-lesson-time,.mini-lesson-time span{display:block;width:100%;overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap}.mini-lesson-name{display:grid;flex:1 1 auto;place-items:center;min-height:0;width:100%;padding:6px 4px 4px;overflow:hidden;font-size:10.5px;font-weight:800;line-height:1.1;text-align:center;white-space:normal;word-break:break-all;overflow-wrap:anywhere;letter-spacing:0}.mini-lesson-name.two-by-two{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;word-break:keep-all;overflow-wrap:normal}.mini-lesson-name.two-by-two .mini-lesson-name-line{display:block;width:100%;line-height:1.05;white-space:nowrap}.mini-lesson-time{display:grid;grid-template-columns:1fr;flex:0 0 auto;gap:1px;place-items:center;min-height:28px;padding:3px 2px;background:#00000014;border-top:1px solid rgba(255,255,255,.24);font-size:9px;font-weight:700;line-height:1;letter-spacing:0;opacity:.9}.mini-lesson-time span{line-height:1}.period-cell.has-multiple-lessons .mini-lesson-name{flex:0 0 auto;min-height:16px;padding:3px 2px 0;font-size:9px;line-height:1.05}.period-cell.has-multiple-lessons .mini-lesson-time{min-height:18px;padding:0 2px 3px;background:transparent;border-top:0;font-size:7.8px;letter-spacing:0;opacity:.96}.mini-lesson-more{position:absolute;right:4px;bottom:4px;display:grid;place-items:center;min-width:18px;height:16px;padding:0 5px;color:#fff;background:#18181bad;border-radius:999px;font-size:8px;font-weight:850;line-height:1;pointer-events:none}.week-add-fab{position:absolute;right:20px;bottom:18px;z-index:8;display:grid;place-items:center;width:68px;height:68px;color:#fff;background:var(--accent);border:0;border-radius:50%;box-shadow:0 14px 28px #ff7a1a47;cursor:grab;touch-action:none;transition:box-shadow .12s ease,transform .12s ease;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.week-add-fab:active{transform:scale(.96)}.week-add-fab.dragging{cursor:grabbing;box-shadow:0 18px 34px #ff7a1a57;transform:scale(1.04)}.mini-lesson.dragging-source{opacity:.35}.drag-lesson-ghost{position:fixed;z-index:90;display:grid;gap:2px;width:128px;min-height:50px;padding:8px 10px;color:#fff;border-radius:11px;box-shadow:0 14px 28px #00000029;pointer-events:none;transform:translate(-50%,-50%) scale(1.04)}.drag-lesson-ghost strong,.drag-lesson-ghost span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.drag-lesson-ghost strong{font-size:14px;font-weight:850}.drag-lesson-ghost span{font-size:11px;opacity:.92}.day-events{margin-top:10px;border-top:1px solid var(--line);background:var(--surface)}.day-events-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 22px 6px}.day-events-head div{display:grid;gap:4px}.day-events-head span{color:var(--muted);font-size:14px}.day-events-head strong{font-size:20px;font-weight:780}.day-events-head button,.small-button,.action-button,.submit-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:0}.day-events-head button{min-height:42px;padding:0 14px;color:#fff;background:var(--accent);border-radius:18px;font-size:15px;font-weight:760}.event-list{display:grid;padding:0 20px}.swipe-row{position:relative;overflow:hidden;border-bottom:1px solid var(--line);user-select:none;-webkit-user-select:none}.swipe-row:last-child{border-bottom:0}.swipe-delete{position:absolute;top:0;right:0;bottom:0;display:grid;place-items:center;width:112px;color:#fff;background:#ff3b30;border:0;font-size:17px;font-weight:850;line-height:1}.calendar-event{position:relative;display:grid;grid-template-columns:5px minmax(0,1fr) auto;gap:12px;overflow:hidden;padding:14px 0;background:var(--surface);transition:transform .18s ease;touch-action:pan-y;user-select:none;-webkit-user-select:none;will-change:transform}.calendar-event:after{content:"";position:absolute;top:0;right:-18px;bottom:0;width:22px;background:var(--surface);pointer-events:none}.event-color{display:block;width:4px;min-height:58px;border-radius:999px}.event-copy{min-width:0}.event-copy strong{display:block;overflow:hidden;font-size:18px;line-height:1.22;font-weight:760;text-overflow:ellipsis;white-space:nowrap}.event-copy p{margin:4px 0 0;color:var(--muted);font-size:14px}.repeat-inline{color:#ff3b30!important;font-weight:700}.event-side{display:grid;justify-items:end;align-content:start;gap:2px;min-width:80px;max-width:92px;overflow:hidden;text-align:right}.event-side strong{font-size:18px;font-weight:700}.event-side span{color:var(--muted);font-size:16px}.event-side em{max-width:100%;overflow:hidden;margin-top:7px;font-size:12px;font-style:normal;font-weight:800;text-overflow:ellipsis;white-space:nowrap}.event-side em.paid{color:#34c759}.event-side em.partial,.event-side em.unpaid{color:var(--accent)}.event-actions{display:flex;align-items:center;gap:9px;margin-top:9px}.event-actions button{display:inline-flex;align-items:center;gap:4px;min-height:28px;padding:0 9px;color:#007aff;background:#eef6ff;border:0;border-radius:13px;font-size:12px;font-weight:800}.event-actions .delete-link{width:28px;padding:0;color:#ff3b30;background:transparent}.detail-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:55;overflow:auto;background:var(--subtle)}.lesson-detail{width:min(100%,520px);min-height:100vh;margin:0 auto;padding:calc(18px + env(safe-area-inset-top)) 18px calc(132px + env(safe-area-inset-bottom));background:var(--subtle)}.detail-nav{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:28px}.detail-nav button{display:inline-flex;align-items:center;gap:4px;min-height:52px;padding:0 18px;color:var(--text);background:#ffffffeb;border:0;border-radius:26px;box-shadow:var(--shadow-float);font-size:19px;font-weight:760}.detail-title{padding:0 22px 24px}.detail-title h1{margin:0 0 22px;font-size:clamp(30px,8.5vw,40px);line-height:1.1;font-weight:780}.detail-title p{margin:3px 0;color:var(--text);font-size:22px;line-height:1.3}.detail-title strong{display:block;margin-top:8px;color:#ff3b30;font-size:21px}.timeline-card,.detail-card{margin:0 0 22px;background:var(--surface);border-radius:18px}.timeline-card{position:relative;min-height:146px;padding:22px 22px 22px 84px;overflow:hidden}.timeline-hour{position:absolute;left:28px;color:var(--muted);font-size:16px}.timeline-hour.top{top:26px}.timeline-hour.middle{top:68px}.timeline-hour.bottom{bottom:25px}.timeline-lines{position:absolute;top:32px;right:22px;bottom:32px;left:86px;background:repeating-linear-gradient(to bottom,transparent 0 42px,var(--line) 42px 44px)}.timeline-event{position:absolute;left:118px;right:28px;min-height:58px;padding:10px 16px;color:#fff;background:var(--event-color);border-radius:8px;box-shadow:0 8px 16px #0000001a}.timeline-event strong,.timeline-event span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.timeline-event svg{position:absolute;top:12px;right:12px}.detail-card{overflow:hidden}.detail-row{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:58px;padding:0 22px;border-bottom:1px solid var(--line)}.detail-row:last-child{border-bottom:0}.detail-row span{font-size:18px;font-weight:700}.detail-row strong{display:inline-flex;align-items:center;gap:10px;color:var(--muted);font-size:17px;font-weight:700;text-align:right}.detail-row i{width:16px;height:16px;border-radius:8px}.note-card p{margin:0;padding:18px 22px;color:#4a4a4f;font-size:16px;line-height:1.5}.payment-detail-card{padding-bottom:16px}.payment-detail-card .detail-row{margin-bottom:14px}.detail-payment-button{display:flex;align-items:center;justify-content:center;width:calc(100% - 44px);min-height:50px;margin:0 22px;color:#fff;background:var(--accent);border:0;border-radius:25px;box-shadow:0 12px 22px #ff701f2e;font-size:17px;font-weight:780}.detail-payment-button.is-paid{color:#ff3b30;background:#ff3b3014;box-shadow:none}.detail-delete-button{display:block;width:min(72%,240px);min-height:58px;margin:30px auto 0;padding:0 26px;color:#ff3b30;background:#fffffff0;border:0;border-radius:29px;box-shadow:var(--shadow-soft);font-size:18px;font-weight:760}.ios-empty{display:grid;justify-items:center;gap:8px;min-height:240px;padding:58px 24px;color:#d1d1d6;text-align:center}.ios-empty.compact{min-height:280px}.ios-empty p{margin:12px 0 0;color:var(--text);font-size:18px;font-weight:700}.ios-empty span{color:var(--muted);font-size:14px}.floating-dock{position:fixed;left:50%;bottom:calc(18px + env(safe-area-inset-bottom));z-index:30;display:flex;align-items:center;justify-content:center;gap:12px;width:min(calc(100% - 24px),492px);transform:translate(-50%);pointer-events:none}.floating-dock button{pointer-events:auto}.today-pill,.dock-group{min-height:56px;background:#fffffff0;border:0;border-radius:28px;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.today-pill{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:88px;min-height:48px;padding:0 18px;color:#fff;background:linear-gradient(180deg,#ffa34d,#ff8726);border:1px solid rgba(255,255,255,.72);border-radius:26px;font-size:16px;font-weight:850;letter-spacing:0;box-shadow:0 14px 26px #ff7a1a47,0 5px 12px #ff7a1a26,inset 0 1px #ffffff6b;transition:box-shadow .14s ease,transform .14s ease}.today-pill:before{content:"";width:8px;height:8px;background:#fff;border-radius:50%;box-shadow:0 0 0 4px #ffffff38}.today-pill:after{position:absolute;top:-5px;right:-5px;bottom:-5px;left:-5px;content:"";border:1px solid rgba(255,122,26,.24);border-radius:31px;pointer-events:none}.floating-today-button{position:relative;z-index:12;flex:0 0 auto;touch-action:none;-webkit-user-select:none;user-select:none}.month-title-row .floating-today-button{min-width:88px;min-height:48px;padding:0 18px;color:#fff;background:linear-gradient(180deg,#ffa34d,#ff8726);border:1px solid rgba(255,255,255,.72);border-radius:26px;font-size:16px;font-weight:850;box-shadow:0 14px 26px #ff7a1a47,0 5px 12px #ff7a1a26,inset 0 1px #ffffff6b}.floating-today-button.is-floating{position:absolute;z-index:32;right:auto}.floating-today-button.dragging{cursor:grabbing;box-shadow:0 22px 40px #ff7a1a6b,inset 0 1px #ffffff59}.dock-group{display:inline-flex;align-items:center;flex:0 1 auto;gap:0;padding:6px;touch-action:none}.dock-group button{position:relative;width:39px;touch-action:none;user-select:none;-webkit-user-select:none}.dock-group button.active{color:#fff;background:#111}.dock-group.reordering{box-shadow:0 14px 34px #11182721}.dock-group button.reorder-dragging{z-index:2;background:#f2f2f7;box-shadow:0 8px 18px #11182729;transform:scale(1.1)}.dock-group button.active.reorder-dragging{color:#fff;background:#111;box-shadow:0 10px 20px #11182738}.dock-group button[aria-disabled=true],.undo-dock-button{color:#c7c7cc}.undo-dock-button.ready{color:var(--accent);background:#fff1e9}.year-pill{font-weight:560}.hero-tools svg,.dock-group svg{stroke-width:1.85}.month-title-row h1,.year-title-row h1{font-weight:640}.month-title-row button,.day-events-head button,.submit-button{font-weight:620}.ios-weekdays{font-weight:500}.week-number{font-weight:520}.date-badge strong{font-weight:610}.date-badge em{font-weight:430}.ios-day.selected .date-badge strong,.week-table-title h2,.day-events-head strong,.detail-title h1,.editor-nav h2{font-weight:650}.week-day-head strong,.period-label strong,.event-copy strong,.student-detail-hero strong,.student-detail-section h3{font-weight:620}.mini-lesson,.mini-lesson-name{font-weight:650}.mini-lesson-time{font-weight:500}.event-side strong,.detail-row span,.detail-row strong,.editor-row span,.editor-row input,.editor-row select,.readonly-pill,.editor-unit,.title-card input{font-weight:560}.event-side em,.repeat-inline,.weekday-pills button,.fee-card strong{font-weight:620}.today-pill{font-weight:850}.dock-group button.active{font-weight:600}.dock-group button[aria-disabled=true]{cursor:default;opacity:.78}.utility-screen{background:var(--subtle)}.utility-header{display:grid;grid-template-columns:44px minmax(0,1fr);align-items:center;gap:10px;padding:calc(16px + env(safe-area-inset-top)) 16px 14px;background:var(--surface)}.utility-header>button{display:inline-grid;place-items:center;width:44px;height:44px;color:var(--text);background:transparent;border:0;border-radius:22px}.utility-header h1{margin:0;font-size:24px;font-weight:780;white-space:nowrap}.utility-panel{margin:14px;overflow:hidden;background:var(--surface);border-radius:16px}.settings-view{display:grid;gap:12px;padding:14px 14px var(--bottom-dock-safe-area)}.settings-summary-card,.settings-card{overflow:hidden;background:var(--surface);border-radius:16px}.settings-summary-card{display:grid;gap:14px;padding:16px}.settings-summary-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.settings-summary-head span,.settings-card-title span,.period-preview-row em{color:#8e8e93;font-size:14px}.settings-summary-head strong{color:var(--text);font-size:16px;font-weight:620}.settings-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.settings-summary-metric{display:flex;min-width:0;min-height:46px;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;background:#f7f7f8;border:1px solid #f0f0f2;border-radius:12px}.settings-summary-metric span{min-width:0;overflow:hidden;color:var(--muted);font-size:12px;font-weight:520;text-overflow:ellipsis;white-space:nowrap}.settings-summary-metric strong{display:flex;min-width:0;align-items:baseline;justify-content:flex-end;gap:2px;color:var(--text);font-size:17px;font-weight:680;line-height:1.35;white-space:nowrap}.settings-summary-metric em{flex:0 1 auto;color:var(--muted);font-size:11px;font-style:normal;font-weight:520;white-space:nowrap}.settings-summary-card p{margin:0;color:var(--muted);font-size:13px;font-weight:520;line-height:1.45}.settings-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:4px;background:#e9eaee;border-radius:15px}.settings-tabs button{min-height:40px;color:var(--muted);background:transparent;border:0;border-radius:12px;font-size:15px;font-weight:700}.settings-tabs button.active{color:var(--text);background:var(--surface);box-shadow:0 3px 10px #11182714}.settings-card-title{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px 8px}.settings-card-title h2{margin:0;font-size:18px;font-weight:780}.settings-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;min-height:58px;padding:0 18px;border-bottom:1px solid var(--line)}.settings-row:last-child{border-bottom:0}.settings-row span:first-child{color:var(--text);font-size:16px;font-weight:680}.settings-row input{width:min(178px,42vw);min-height:42px;color:var(--text);text-align:right;background:transparent;border:0;outline:none;font-size:16px;font-weight:680}.settings-row input[type=time],.settings-row input[type=number]{color:var(--accent)}.number-unit{display:inline-flex;align-items:center;justify-content:flex-end;gap:5px}.number-unit input{width:72px}.number-unit em{color:#8e8e93;font-style:normal;font-weight:700}.price-settings-card .number-unit input{width:92px}.student-price-list{border-top:1px solid var(--line)}.student-price-list .settings-row{min-height:58px}.settings-note{margin:0;padding:14px 18px 18px;color:var(--muted);border-top:1px solid var(--line);font-size:13px;line-height:1.55}.session-settings+.session-settings{border-top:8px solid var(--subtle)}.session-title{padding:15px 18px 4px;color:var(--accent);font-size:15px;font-weight:760}.period-preview-list{display:grid}.period-preview-row{display:grid;grid-template-columns:74px minmax(0,1fr) 44px;align-items:center;gap:10px;width:100%;min-height:56px;padding:0 18px;color:inherit;text-align:left;background:transparent;border:0;border-top:1px solid var(--line)}.period-preview-row:active{background:#f6f6f7}.period-preview-row span{color:var(--text);font-size:16px;font-weight:700}.period-preview-row strong{justify-self:end;font-size:17px}.period-preview-row.customized strong{color:var(--accent)}.period-time-editor{position:relative;z-index:1;width:min(calc(100% - 28px),430px);max-height:calc(100vh - 128px);margin:0 auto calc(66px + env(safe-area-inset-bottom));overflow:auto;padding:22px 20px calc(20px + env(safe-area-inset-bottom));background:#fff;border-radius:26px;box-shadow:0 24px 54px #11182738;animation:sheet-up .18s cubic-bezier(.2,.8,.2,1) forwards}.period-time-editor header{display:grid;gap:7px;margin-bottom:18px;padding-bottom:16px;border-bottom:1px solid var(--line)}.period-time-editor header span{color:var(--accent);font-size:13px;font-weight:760}.period-time-editor h2,.period-time-editor p{margin:0}.period-time-editor h2{font-size:24px;line-height:1.12;font-weight:800}.period-time-editor p{color:var(--muted);font-size:14px;line-height:1.5}.period-time-editor label{display:grid;grid-template-columns:minmax(0,1fr) 124px;align-items:center;gap:14px;min-height:62px;margin-bottom:10px;padding:10px 12px 10px 16px;background:#f7f7f9;border:1px solid #eeeeef;border-radius:18px}.period-time-editor label span{color:var(--text);font-size:16px;font-weight:680}.period-time-editor input{width:100%;min-height:42px;color:var(--accent);text-align:center;background:#fff;border:1px solid #ededf0;border-radius:14px;outline:none;font-size:17px;font-weight:780;font-variant-numeric:tabular-nums}.period-time-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;padding-top:12px}.period-time-actions button{min-height:48px;border:0;border-radius:24px;font-size:15px;font-weight:760}.period-time-reset{color:var(--text);background:#f2f2f7}.period-time-save{color:#fff;background:var(--accent)}.settings-save-bar{position:sticky;bottom:calc(86px + env(safe-area-inset-bottom));display:grid;gap:8px;padding-top:2px}.settings-save-button{width:100%;min-height:56px;color:#fff;background:var(--accent);border:0;border-radius:28px;box-shadow:0 10px 24px #ff7a1a2e;font-size:17px;font-weight:780}.settings-save-bar p{margin:0;padding:9px 12px;color:#1d7a35;text-align:center;background:#eef9f1;border-radius:14px;font-size:13px;font-weight:750}.ios-search{display:flex;align-items:center;gap:8px;min-height:46px;margin:14px;padding:0 12px;color:#8e8e93;background:#f2f2f7;border-radius:14px}.ios-search input{width:100%;color:#111;background:transparent;border:0;outline:none}.student-list,.compact-list{display:grid}.student-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;padding:16px;border-top:1px solid #efeff0}.student-main-button{min-width:0;padding:0;color:inherit;text-align:left;background:transparent;border:0}.student-main-button:active{opacity:.68}.student-row strong{font-size:18px}.student-row p,.student-side span,.quiet-text{margin:4px 0 0;color:#7a7a80;font-size:13px;line-height:1.4}.student-side{display:grid;justify-items:end;gap:6px;text-align:right}.student-actions{display:flex;justify-content:flex-end;gap:8px}.small-button{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:30px;padding:0 10px;color:#007aff;background:#eef6ff;border-radius:15px;font-size:13px;font-weight:800}.export-student-button{color:#2c7d46;background:#eef9f1}.subsection{padding:16px;border-bottom:1px solid #efeff0}.subsection:last-child{border-bottom:0}.subsection h2{margin:0 0 12px;font-size:19px}.compact-row{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr) auto;gap:10px;align-items:center;width:100%;padding:12px 0;color:#111;text-align:left;background:transparent;border:0;border-bottom:1px solid #efeff0}.compact-row:last-child{border-bottom:0}.compact-row span{color:#7a7a80;font-size:13px}.compact-row strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.compact-row em{color:#ff7a1a;font-style:normal;font-weight:800;white-space:nowrap}.compact-row.passive{cursor:default}.payment-record-row{grid-template-columns:minmax(0,1.05fr) minmax(0,.8fr) auto auto}.payment-record-row button{min-height:32px;padding:0 12px;color:#0b7a45;background:#ecfbf2;border:0;border-radius:16px;font-size:13px;font-weight:760}.payment-record-row button:active{background:#dcf6e8;transform:scale(.98)}.payment-row-button{margin:0 -6px;padding-right:6px;padding-left:6px;border-radius:12px;cursor:pointer}.payment-row-button:active{background:#fff7ef;transform:scale(.995)}.payment-row-button:focus-visible{outline:2px solid rgba(255,122,26,.45);outline-offset:-2px}.payments-panel{margin-bottom:calc(128px + env(safe-area-inset-bottom))}.payments-panel .subsection{padding:18px 18px 20px}.payments-panel .subsection h2{margin-bottom:16px;font-size:20px;font-weight:660;letter-spacing:0}.payments-panel .compact-list{display:grid}.payments-panel .compact-row{grid-template-columns:minmax(116px,.96fr) minmax(0,1fr) minmax(96px,max-content);column-gap:10px;min-height:56px;padding:13px 4px}.payments-panel .compact-row span{color:#707076;font-size:14px;font-variant-numeric:tabular-nums;font-weight:500;line-height:1.22;white-space:nowrap}.payments-panel .compact-row .payment-date-time{display:inline-flex;align-items:center;gap:4px;min-width:0;font-size:12.5px}.payments-panel .compact-row .payment-date-time small,.payments-panel .compact-row .payment-date-time time{color:inherit;font:inherit;white-space:nowrap}.payments-panel .compact-row strong{justify-self:start;font-size:16px;font-weight:640;line-height:1.2}.payments-panel .compact-row em{justify-self:end;color:#f26f18;font-size:16px;font-weight:680;letter-spacing:0;line-height:1.2;text-align:right}.payments-panel .payment-due-amount{display:grid;grid-template-columns:2.25em 7ch;column-gap:4px;align-items:baseline;min-width:calc(2.25em + 4px + 7ch);white-space:nowrap;font-variant-numeric:tabular-nums}.payments-panel .payment-row-button .payment-due-amount{grid-template-columns:2.25em 5.8ch;column-gap:6px;min-width:calc(2.25em + 6px + 5.8ch)}.payments-panel .payment-due-amount:before{content:"待收";text-align:left}.payments-panel .payment-row-button{grid-template-columns:116px minmax(0,1fr) minmax(96px,max-content);margin:0;padding-right:4px;padding-left:4px;border-radius:10px}.payments-panel .payment-row-button strong{display:-webkit-box;min-width:0;max-width:100%;align-self:center;overflow:hidden;text-overflow:clip;white-space:normal;word-break:break-word;overflow-wrap:anywhere;-webkit-box-orient:vertical;-webkit-line-clamp:2}.payments-panel .payment-row-button:active{background:#fff7ef}.payments-panel .payment-record-row{grid-template-columns:minmax(104px,1fr) minmax(42px,.7fr) minmax(54px,auto) 48px;column-gap:8px}.payments-panel .payment-record-row em{font-size:15px}.payments-panel .payment-record-row button{justify-self:end;min-height:30px;padding:0 10px;font-size:12px;font-weight:640}.payments-panel .payment-record-row i{width:48px}.payments-panel .compact-total-row{grid-template-columns:minmax(132px,1.32fr) minmax(48px,.64fr) minmax(104px,max-content);column-gap:12px;min-height:52px;margin-top:12px;padding:12px 14px}.payments-panel .compact-total-row span,.payments-panel .compact-total-row strong,.payments-panel .compact-total-row em{line-height:1.2}.payments-panel .compact-total-row span{font-size:14px;font-weight:600}.payments-panel .compact-total-row strong{justify-self:start;font-size:16px;font-weight:660;text-align:left}.payments-panel .compact-total-row em{justify-self:end;font-size:16px;font-weight:700;text-align:right}.compact-total-row{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr) auto;gap:10px;align-items:center;margin-top:8px;padding:12px 14px;color:var(--text);background:#fff7ef;border:1px solid rgba(255,122,26,.14);border-radius:14px;letter-spacing:0}.compact-total-row span{color:var(--muted);font-size:14px;font-weight:760}.compact-total-row strong{min-width:0;font-size:15px;font-weight:820;text-align:center}.compact-total-row em{color:#ff7a1a;font-size:16px;font-style:normal;font-weight:860;white-space:nowrap}.metric-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1px;overflow:hidden;background:#efeff0}.metric{padding:16px;background:#fff}.metric span{display:block;color:#7a7a80;font-size:13px}.metric strong{display:block;margin-top:7px;font-size:22px}.analytics-section,.chart-card{padding:16px;border-bottom:1px solid #efeff0}.analytics-section{display:grid;gap:14px;background:linear-gradient(180deg,#fff,#fbfbfd)}.analytics-heading,.chart-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.analytics-heading span,.chart-title-row span{color:var(--muted);font-size:13px;font-weight:650}.analytics-heading h2,.chart-title-row h3{margin:4px 0 0;color:var(--text)}.analytics-heading h2{font-size:30px;line-height:1.05}.analytics-heading p,.chart-title-row strong{margin:3px 0 0;color:var(--muted);text-align:right;font-size:12px;font-weight:720}.analytics-range-button{display:inline-flex;max-width:58%;min-height:34px;align-items:center;justify-content:flex-end;gap:6px;padding:7px 10px;color:var(--muted);background:#f5f5f7;border:1px solid rgba(17,24,39,.06);border-radius:999px;box-shadow:inset 0 1px #ffffffb8;font-size:12px;font-weight:760;line-height:1.15;text-align:right}.analytics-range-button.custom{color:#c55f10;background:#fff7ed;border-color:#f973162e}.analytics-range-button span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.analytics-range-button svg{flex:0 0 auto}.analytics-range-sheet{gap:18px}.analytics-range-fields{display:grid;gap:10px}.analytics-range-fields label{display:grid;grid-template-columns:82px minmax(0,1fr);min-height:54px;align-items:center;gap:12px;padding:0 14px;background:#f7f7f8;border:1px solid #ededf0;border-radius:16px}.analytics-range-fields span{color:var(--muted);font-size:13px;font-weight:720}.analytics-range-fields input{width:100%;min-width:0;color:var(--text);background:#fff;border:1px solid #e7e7eb;border-radius:12px;padding:10px 12px;font-size:16px;font-weight:760}.analytics-range-actions{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.2fr);gap:10px}.analytics-range-actions button{min-height:48px;border:0;border-radius:999px;font-size:15px;font-weight:780}.range-reset-button{color:var(--text);background:#f1f1f4}.range-save-button{color:#fff;background:var(--orange);box-shadow:0 10px 22px #f9731638}.period-switch{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding:4px;background:#ececf1;border-radius:15px}.period-switch button{min-height:36px;color:var(--muted);background:transparent;border:0;border-radius:12px;font-size:14px;font-weight:740}.period-switch button.active{color:var(--text);background:var(--surface);box-shadow:0 3px 10px #11182714}.analytics-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.analytics-summary-grid .metric{min-width:0;padding:12px 10px;background:#f5f5f7;border-radius:14px}.analytics-summary-grid .metric strong{overflow:hidden;text-overflow:ellipsis;font-size:15px;white-space:nowrap}.chart-card{display:grid;gap:12px;background:var(--surface)}.line-chart-card{padding-bottom:calc(96px + env(safe-area-inset-bottom))}.chart-title-row h3{font-size:18px;font-weight:760}.line-basis-switch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:4px;background:#f1f1f4;border-radius:13px}.line-basis-switch button{min-width:0;min-height:34px;padding:0 8px;overflow:hidden;color:var(--muted);background:transparent;border:0;border-radius:10px;font-size:13px;font-weight:760;text-overflow:ellipsis;white-space:nowrap}.line-basis-switch button.active{color:var(--text);background:var(--surface);box-shadow:0 3px 10px #11182714}.income-line-chart{width:100%;max-width:100%;height:auto;overflow:visible}.income-line-chart line{stroke:#e6e6ea;stroke-width:1}.income-line-chart .line-area{fill:#34c7591f}.income-line-chart .line-path{fill:none;stroke:#34c759;stroke-linecap:round;stroke-linejoin:round;stroke-width:4}.income-line-chart circle{fill:#34c759;stroke:#fff;stroke-width:2}.income-line-chart text{fill:var(--muted);font-size:10px;font-weight:700;text-anchor:middle}.chart-axis-labels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));color:var(--muted);font-size:12px;font-weight:650}.chart-axis-labels span:nth-child(2){text-align:center}.chart-axis-labels span:last-child{text-align:right}.chart-empty{margin:0;color:var(--muted);font-size:13px;line-height:1.45}.chart-empty.inline{padding:8px 0}.pie-switch-stack{display:grid;gap:8px;margin-bottom:14px}.pie-group-switch,.pie-period-switch,.pie-metric-switch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:4px;background:#f1f1f4;border-radius:13px}.pie-period-switch{grid-template-columns:repeat(4,minmax(0,1fr))}.pie-metric-switch{background:#fff3e9;grid-template-columns:repeat(3,minmax(0,1fr))}.pie-group-switch button,.pie-period-switch button,.pie-metric-switch button{min-height:34px;color:var(--muted);border:0;border-radius:10px;background:transparent;font-size:14px;font-weight:760}.pie-group-switch button.active,.pie-period-switch button.active,.pie-metric-switch button.active{color:var(--text);background:var(--surface);box-shadow:0 5px 14px #10182814}.pie-metric-switch button.active{color:#fff;background:var(--accent);box-shadow:0 8px 18px #ff7a1a33}.pie-chart-layout{display:grid;grid-template-columns:112px minmax(0,1fr);align-items:center;gap:14px}.pie-donut{position:relative;display:grid;place-items:center;width:112px;aspect-ratio:1;border-radius:50%;box-shadow:inset 0 0 0 1px #1118270a}.pie-donut:after{position:absolute;top:22px;right:22px;bottom:22px;left:22px;content:"";background:var(--surface);border-radius:50%}.pie-donut div{position:relative;z-index:1;color:var(--text);font-size:13px;font-weight:760}.pie-legend{display:grid;gap:8px}.pie-legend-row{display:grid;grid-template-columns:10px minmax(0,1fr) minmax(94px,auto);align-items:center;gap:8px;min-height:26px}.pie-legend-button{width:100%;border:0;border-radius:10px;background:transparent;color:inherit;cursor:pointer;font:inherit;text-align:left;transition:background .16s ease,transform .16s ease}.pie-legend-button:active{background:#0000000a;transform:scale(.985)}.pie-legend-dot{width:10px;height:10px;border-radius:50%}.pie-legend-row strong{overflow:hidden;color:var(--text);font-size:14px;text-overflow:ellipsis;white-space:nowrap}.pie-legend-metrics{display:flex;align-items:baseline;justify-content:flex-end;gap:7px;min-width:0}.pie-legend-metrics b{overflow:hidden;color:var(--text);font-size:13px;font-weight:760;text-overflow:ellipsis;white-space:nowrap}.pie-legend-metrics em{color:var(--muted);font-size:12px;font-style:normal;font-weight:700;white-space:nowrap}.pie-legend-total{margin-top:2px;padding-top:8px;border-top:1px solid rgba(17,24,39,.08)}.pie-legend-total .pie-legend-dot{background:transparent}.pie-legend-total strong,.pie-legend-total .pie-legend-metrics b{font-size:14px;font-weight:820}.bar-chart-list{display:grid;gap:11px}.bar-chart-row{display:grid;grid-template-columns:44px minmax(0,1fr) 72px;align-items:center;gap:10px}.bar-chart-row>span{color:var(--text);font-size:13px;font-weight:740}.bar-chart-row>em{color:var(--muted);text-align:right;font-size:12px;font-style:normal;font-weight:700}.bar-track-group{display:grid;gap:4px}.bar-track{height:7px;overflow:hidden;background:#f0f0f3;border-radius:999px}.bar-track i{display:block;height:100%;border-radius:inherit}.bar-track.due i{background:#ffd6bd}.bar-track.paid i{background:#34c759}.bar-legend{display:flex;gap:14px;color:var(--muted);font-size:12px;font-weight:700}.bar-legend span{display:inline-flex;align-items:center;gap:6px}.bar-legend i{width:9px;height:9px;border-radius:999px}.due-dot{background:#ffd6bd}.paid-dot{background:#34c759}.ink{color:#111}.green{color:#34c759}.amber{color:#ff7a1a}.backup-actions{display:flex;gap:10px;flex-wrap:wrap}.action-button{min-height:42px;padding:0 14px;color:#fff;background:#111;border-radius:21px;font-weight:800}.action-button.secondary{color:#111;background:#f2f2f7}.file-button{position:relative;overflow:hidden}.file-button input,.calendar-import-button input{position:absolute;top:0;right:0;bottom:0;left:0;opacity:0}.calendar-import-button{position:relative;overflow:hidden;background:#ff7a1a}.import-result{margin:10px 0 0;padding:10px 12px;color:#1d7a35;background:#eef9f1;border-radius:12px;font-size:13px;font-weight:700}.editor-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;overflow:auto;background:var(--subtle)}.course-editor{width:min(100%,520px);min-height:100vh;margin:0 auto;padding-bottom:calc(28px + env(safe-area-inset-bottom));background:var(--subtle)}.editor-nav{position:sticky;top:0;z-index:3;display:grid;grid-template-columns:64px minmax(0,1fr) 78px;align-items:center;gap:8px;padding:calc(16px + env(safe-area-inset-top)) 16px 12px;background:color-mix(in srgb,var(--subtle),transparent 8%);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.editor-nav button{display:inline-grid;place-items:center;min-height:44px;color:var(--text);background:transparent;border:0;border-radius:22px}.editor-nav h2{margin:0;text-align:center;font-size:20px;font-weight:780}.editor-nav .done-button{justify-self:end;min-width:72px;min-height:42px;color:#fff;background:var(--accent);font-size:16px;font-weight:780;box-shadow:0 10px 24px #ff701f38}.editor-nav .done-button:disabled{color:#fff;background:#d1d1d6;box-shadow:none}.round-nav-button{width:58px;height:58px;color:var(--text)!important;background:var(--surface)!important;border-radius:29px!important;box-shadow:var(--shadow-float)}.round-nav-button.confirm{color:#fff!important;background:var(--accent)!important;box-shadow:0 12px 26px #ff701f3d!important}.recurring-scope-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:72;display:grid;align-items:start;justify-items:center;padding:calc(96px + env(safe-area-inset-top)) 18px 18px;background:#12121433;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.recurring-scope-card{position:relative;width:min(100%,390px);padding:20px 16px 16px;color:var(--text);background:#ffffffeb;border:1px solid rgba(255,255,255,.72);border-radius:24px;box-shadow:var(--shadow-float)}.recurring-scope-close{position:absolute;top:12px;left:12px;display:grid;place-items:center;width:36px;height:36px;color:var(--text);background:#f1f1f4;border:0;border-radius:18px}.recurring-scope-card p,.recurring-scope-card span{display:block;margin:0;color:#8e8e93;text-align:center;font-size:13px;font-weight:560}.recurring-scope-card h3{margin:26px 0 8px;text-align:center;font-size:21px;font-weight:650;letter-spacing:0}.recurring-scope-actions{display:grid;gap:10px;margin-top:18px}.recurring-scope-actions button{min-height:54px;color:var(--text);background:#eeeeef;border:0;border-radius:18px;font-size:17px;font-weight:620;letter-spacing:0}.recurring-scope-actions button:last-child{color:#c65f12;background:#fff1e8}.title-card,.editor-list,.fee-card,.payment-sheet{margin:18px;background:var(--surface);border-radius:16px}.title-card{padding:20px 18px 15px}.title-card label{position:relative;display:flex;align-items:center;min-height:48px}.input-stripe{width:3px;height:33px;margin-right:9px;border-radius:3px}.title-card input{min-width:0;width:100%;color:var(--text);background:transparent;border:0;outline:none;font-size:22px;font-weight:700}.title-card input::placeholder{color:#a1a1a8}.color-row{display:flex;align-items:center;gap:7px;margin-top:16px;overflow-x:auto;padding:1px 2px 5px;scrollbar-width:none}.color-row::-webkit-scrollbar{display:none}.color-row button,.custom-color-swatch{flex:0 0 auto;width:30px;height:30px;background:var(--swatch);border:3px solid var(--surface);border-radius:15px;box-shadow:0 0 0 1px var(--line)}.color-row button.active,.custom-color-swatch.active{box-shadow:0 0 0 3px color-mix(in srgb,var(--swatch),transparent 55%)}.custom-color-swatch{position:relative;display:inline-grid;place-items:center;color:#fff;cursor:pointer;overflow:hidden}.custom-color-swatch:before{content:"";position:absolute;top:-3px;right:-3px;bottom:-3px;left:-3px;background:conic-gradient(#ff3b30,#ff9500,#fc0,#34c759,#30d5c8,#0a84ff,#af52de,#ff2d55,#ff3b30)}.custom-color-swatch.active:before{display:none}.custom-color-swatch svg{position:relative;z-index:1;filter:drop-shadow(0 1px 2px rgba(0,0,0,.28))}.custom-color-swatch input{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;opacity:0;cursor:pointer}.editor-list{overflow:hidden}.editor-row{display:grid;grid-template-columns:32px 92px minmax(0,1fr);align-items:center;gap:10px;min-height:58px;padding:0 16px;color:var(--muted);border-bottom:1px solid var(--line)}.editor-row:last-child{border-bottom:0}.editor-row span{color:var(--text);font-size:16px;font-weight:680}.editor-row input,.editor-row select{min-width:0;width:100%;min-height:42px;color:var(--accent);text-align:right;background:transparent;border:0;outline:none;font-size:16px;font-weight:680}.editor-row select{-webkit-appearance:none;-moz-appearance:none;appearance:none}.time-range-control{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:6px;min-width:0;min-height:42px;padding:4px;background:#f2f2f6;border-radius:22px}.time-range-control input{min-height:34px;padding:0 4px;color:var(--text);text-align:center;background:var(--surface);border-radius:17px;font-size:15px;font-weight:760}.time-range-control em{color:var(--muted);font-size:12px;font-style:normal;font-weight:760;white-space:nowrap}.editor-map-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;padding:12px 16px;border-bottom:1px solid var(--line)}.editor-map-row button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:42px;padding:0 12px;color:var(--text);background:var(--subtle);border:0;border-radius:21px;font-size:15px;font-weight:700;white-space:nowrap}.editor-map-row button:first-child{color:var(--accent)}.editor-map-row p{grid-column:1 / -1;margin:0;color:var(--muted);font-size:13px;line-height:1.45}.editor-row:has(input+input),.editor-row:has(select+select),.editor-row:has(input+select),.editor-row:has(input+.editor-unit),.editor-row:has(.readonly-pill+.readonly-pill){grid-template-columns:32px 92px minmax(0,1fr) minmax(0,1fr)}.editor-row.time-range-row{grid-template-columns:32px 92px minmax(0,1fr)}.editor-row:has(input[type=date]+input[type=time]),.editor-row:has(.readonly-pill+.readonly-pill){grid-template-columns:32px 62px minmax(128px,1fr) 82px}.readonly-pill{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:0 12px;color:var(--text);background:var(--subtle);border-radius:19px;font-size:15px;font-weight:700;white-space:nowrap}.editor-unit{color:var(--muted);font-size:14px;font-style:normal;font-weight:700;text-align:right;white-space:nowrap}.editor-row input:disabled{color:#c7c7cc}.weekday-pills{display:grid;grid-template-columns:repeat(7,1fr);gap:10px;padding:14px 16px 10px;border-bottom:1px solid var(--line)}.weekday-pills button{display:grid;place-items:center;min-height:38px;border:0;color:var(--muted);background:var(--subtle);border-radius:19px;font-size:16px;font-weight:760}.weekday-pills button.active{color:#fff;background:var(--accent)}.fee-card{display:flex;align-items:center;justify-content:space-between;padding:18px}.fee-card span{color:var(--muted);font-size:15px}.fee-card strong{color:var(--accent);font-size:22px}.editor-textarea-row{display:grid;gap:10px;min-height:160px;padding:16px}.editor-textarea-row span{color:var(--text);font-size:16px;font-weight:680}.editor-textarea-row textarea{width:100%;min-height:112px;color:var(--text);background:var(--subtle);border:0;border-radius:14px;outline:none;resize:vertical;padding:12px}.editor-delete-button{width:calc(100% - 36px);min-height:56px;margin:0 18px 24px;color:#ff3b30;background:var(--surface);border:0;border-radius:18px;font-size:18px;font-weight:760}.post-class-sheet-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:72;display:grid;align-items:end;background:#11182747;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.post-class-sheet{width:min(100%,520px);margin:0 auto;padding:10px 16px calc(16px + env(safe-area-inset-bottom));background:#f5f5f7;border-radius:24px 24px 0 0;box-shadow:0 -18px 46px #1118272e;animation:sheet-up .18s cubic-bezier(.2,.8,.2,1)}.sheet-grabber{width:42px;height:5px;margin:0 auto 14px;background:#d1d1d6;border-radius:999px}.post-class-sheet header{display:grid;gap:4px;padding:0 4px 14px}.post-class-sheet header span,.post-class-sheet header p{margin:0;color:var(--muted);font-size:13px;font-weight:680}.post-class-sheet h2{margin:0;color:var(--text);font-size:24px;line-height:1.1;font-weight:820;letter-spacing:0}.post-class-options{display:grid;gap:10px}.post-class-option{display:grid;grid-template-columns:44px minmax(0,1fr);align-items:center;gap:12px;width:100%;min-height:74px;padding:12px;color:var(--text);text-align:left;background:var(--surface);border:0;border-radius:18px;box-shadow:var(--shadow-soft)}.post-class-option-icon{display:grid;place-items:center;width:44px;height:44px;color:#fff;background:#fc0;border-radius:22px}.post-class-option span:last-child{display:grid;gap:4px}.post-class-option strong{font-size:18px;font-weight:780}.post-class-option em{color:var(--muted);font-style:normal;font-size:13px;font-weight:660}.post-class-cancel{width:100%;min-height:52px;margin-top:12px;color:var(--text);background:var(--surface);border:0;border-radius:18px;font-size:17px;font-weight:760}.note-editor-backdrop{position:fixed;top:var(--note-visual-offset-top, 0px);right:0;bottom:auto;left:0;z-index:82;height:var(--note-visual-height, 100dvh);overflow:hidden;background:#fff}.note-editor{display:grid;grid-template-rows:auto minmax(0,1fr) auto;width:min(100%,520px);height:var(--note-visual-height, 100dvh);max-height:var(--note-visual-height, 100dvh);margin:0 auto;background:#fff}.note-topbar{position:relative;z-index:2;display:grid;grid-template-columns:62px minmax(0,1fr) auto;align-items:center;gap:8px;min-height:76px;padding:calc(14px + env(safe-area-inset-top)) 16px 8px;background:#ffffffeb;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.note-title-meta{min-width:0;text-align:center}.note-title-meta span{display:block;color:#b88a00;font-size:12px;font-weight:760}.note-title-meta strong{display:block;overflow:hidden;color:var(--text);font-size:15px;font-weight:780;text-overflow:ellipsis;white-space:nowrap}.note-top-actions{display:inline-flex;align-items:center;gap:8px}.note-top-actions button{display:grid;place-items:center;width:42px;height:42px;color:var(--text);background:#f6f6f7;border:0;border-radius:21px}.note-top-actions button:disabled{color:#a1a1a8}.note-top-actions .note-done-button{color:#fff;background:#f0c400;box-shadow:0 8px 18px #f0c4003d}.note-main{overflow:auto;padding:18px 24px 24px}.note-lesson-strip{display:grid;grid-template-columns:4px minmax(0,1fr);gap:12px;align-items:center;margin-bottom:14px;padding-bottom:14px;border-bottom:1px solid #f0f0f2}.note-lesson-strip>span{width:4px;height:42px;border-radius:4px}.note-lesson-strip div{display:grid;gap:3px}.note-lesson-strip strong{font-size:19px;font-weight:800}.note-lesson-strip em{color:var(--muted);font-style:normal;font-size:13px;font-weight:660}.note-editable{min-height:min(54vh,520px);padding:8px 0 28px;color:var(--text);outline:none;font-size:21px;line-height:1.55;letter-spacing:0;white-space:pre-wrap;word-break:break-word}.note-editable.empty:before{color:#b5b5bd;content:attr(data-placeholder)}.note-editable b,.note-editable strong{font-weight:820}.note-editable u{text-decoration-thickness:1.5px;text-underline-offset:3px}.note-inline-table{width:100%;margin:12px 0;border-collapse:collapse}.note-inline-table td{min-width:88px;height:40px;border:1px solid #c7c7cc}.note-attachments{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:10px}.note-attachment{position:relative;min-width:0;overflow:hidden;background:#f6f6f7;border-radius:16px}.note-attachment.file-attachment{display:grid;grid-template-columns:54px minmax(0,1fr) 34px;align-items:center;gap:12px;grid-column:1 / -1;min-height:66px;padding:8px 10px}.note-attachment.image-attachment{display:grid;grid-template-rows:auto minmax(48px,auto);align-items:stretch;min-height:174px;padding:0}.note-attachment.image-attachment img{display:block;width:100%;aspect-ratio:1;height:auto;object-fit:cover;background:#ececf0}.note-file-icon{width:54px;height:50px;border-radius:11px}.note-file-icon{display:grid;place-items:center;color:#6f6f77;background:#fff}.note-attachment div{display:grid;gap:3px;min-width:0}.note-attachment.image-attachment div{align-content:center;padding:8px 10px 10px}.note-attachment strong{overflow:hidden;font-size:14px;font-weight:760;text-overflow:ellipsis;white-space:nowrap}.note-attachment em{color:var(--muted);font-style:normal;font-size:12px;font-weight:650}.note-attachment button{display:grid;place-items:center;width:30px;height:30px;color:#7a7a80;background:#fff;border:0;border-radius:15px}.note-attachment.image-attachment button{position:absolute;top:8px;right:8px;background:#fffffff0;box-shadow:0 6px 14px #1118271f}.note-toolbar{display:grid;gap:10px;padding:10px 14px calc(12px + env(safe-area-inset-bottom));background:linear-gradient(180deg,#ffffffe0,#f6f6f8f5);border-top:1px solid #f0f0f2;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.note-message{margin:0;color:#1d7a35;text-align:center;font-size:12px;font-weight:720}.note-toolbar-window{min-height:58px;overflow:hidden;padding:6px 10px;touch-action:pan-y;-webkit-user-select:none;user-select:none;background:#fffffffa;border:1px solid rgba(229,229,234,.7);border-radius:26px;box-shadow:0 12px 28px #11182714}.note-toolbar-track{display:flex;width:200%;transition:transform .22s cubic-bezier(.2,.8,.2,1);will-change:transform}.note-toolbar-track.is-swiping{transition:none}.note-toolbar-row{display:flex;align-items:center;justify-content:space-between;flex:0 0 50%;width:50%;gap:6px;min-height:46px}.note-toolbar-row[aria-hidden=true] button{pointer-events:none}.note-toolbar-row button{position:relative;display:grid;place-items:center;flex:0 0 auto;width:42px;min-width:42px;min-height:46px;color:var(--text);background:transparent;border:0;border-radius:18px;box-shadow:none;touch-action:none;user-select:none;-webkit-user-select:none;transition:background-color .14s ease,transform .14s ease,box-shadow .14s ease}.note-toolbar-row.reordering{box-shadow:0 14px 32px #1118271f}.note-toolbar-row button.reorder-dragging{z-index:2;background:#f2f2f7;box-shadow:0 7px 16px #11182724;transform:scale(1.08)}.note-color-tool.active{color:#fff;background:#111}.note-color-strip{display:flex;align-items:center;gap:8px;overflow-x:auto;padding:6px 8px;background:#f3f3f5;border-radius:18px;scrollbar-width:none}.note-color-strip::-webkit-scrollbar{display:none}.note-color-swatch{flex:0 0 auto;width:32px;height:32px;background:var(--note-color);border:2px solid #ffffff;border-radius:50%;box-shadow:0 2px 8px #1118271a}.note-color-swatch:first-child{box-shadow:inset 0 0 0 1px #d7d7dc,0 2px 8px #11182714}.note-color-swatch:focus-visible,.note-toolbar-row button:focus-visible,.note-color-tool:focus-visible{outline:2px solid rgba(242,111,24,.42);outline-offset:2px}.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;display:grid;align-items:end;background:#00000059}.payment-sheet{width:min(100%,520px);max-height:min(82vh,720px);margin:0 auto;overflow:auto;padding:18px 18px calc(18px + env(safe-area-inset-bottom));border-radius:22px 22px 0 0}.sheet-header{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:10px;margin-bottom:16px}.sheet-header button{display:grid;place-items:center;width:38px;height:38px;color:var(--text);background:var(--subtle);border:0;border-radius:19px}.sheet-header p{margin:0;color:#8e8e93;font-size:13px}.sheet-header h2{margin:2px 0 0;font-size:21px;font-weight:780}.field{display:grid;gap:7px;margin-bottom:12px;color:var(--text);font-size:14px;font-weight:720}.field input,.field textarea{width:100%;min-height:46px;padding:10px 12px;color:var(--text);background:var(--subtle);border:0;border-radius:14px;outline:none}.field textarea{min-height:82px;resize:vertical}.export-sheet,.student-detail-sheet{display:grid;gap:14px}.student-detail-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(104px,auto);gap:10px;padding:14px;background:var(--subtle);border-radius:16px}.student-detail-hero div{display:grid;gap:5px;min-width:0}.student-detail-hero span,.student-profile-list span,.student-stat-grid span,.student-recent-row span{color:var(--muted);font-size:12px;font-weight:700}.student-detail-hero strong{color:var(--text);font-size:20px;font-weight:840}.student-detail-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.student-detail-actions button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;border:0;border-radius:16px;font-size:15px;font-weight:820}.student-detail-actions button.primary{color:#fff;background:var(--accent)}.student-detail-section{display:grid;gap:10px;padding:14px;background:#fff;border:1px solid var(--line);border-radius:16px}.student-detail-section h3{margin:0;color:var(--text);font-size:17px;font-weight:850}.student-profile-list,.student-stat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.student-profile-list div,.student-stat-grid div{display:grid;gap:5px;min-width:0;padding:10px;background:var(--subtle);border-radius:12px}.student-profile-list div.wide{grid-column:1 / -1}.student-profile-list strong,.student-stat-grid strong{min-width:0;color:var(--text);font-size:15px;font-weight:780;line-height:1.38;word-break:break-word}.student-recent-lessons{display:grid;gap:0;overflow:hidden;border:1px solid var(--line);border-radius:14px}.student-recent-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:12px;border-bottom:1px solid var(--line)}.student-recent-row:last-child{border-bottom:0}.student-recent-row div{display:grid;gap:4px;min-width:0}.student-recent-row div:last-child{justify-items:end;text-align:right}.student-recent-row strong{color:var(--text);font-size:14px;font-weight:820}.export-summary-card{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.export-summary-card div{min-height:66px;padding:12px;background:var(--subtle);border-radius:14px}.export-summary-card .export-range-card{display:grid;grid-column:1 / -1;grid-template-columns:1fr;gap:8px;min-height:118px}.export-range-card label{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:8px;min-width:0}.export-range-card em{color:var(--muted);font-size:12px;font-style:normal;font-weight:720}.export-range-card input{min-width:0;width:100%;height:36px;padding:0 10px;color:var(--text);background:#fff;border:1px solid var(--line);border-radius:12px;font-size:15px;font-weight:760}.export-summary-card span{display:block;color:var(--muted);font-size:12px;font-weight:700}.export-summary-card strong{display:block;margin-top:6px;font-size:clamp(16px,4.3vw,18px);font-weight:820}.export-preview{overflow:hidden;background:#fff;border:1px solid var(--line);border-radius:16px}.export-preview table{width:100%;border-collapse:collapse;font-size:12px}.export-preview th,.export-preview td{padding:9px 8px;text-align:left;border-bottom:1px solid var(--line);white-space:nowrap}.export-preview th{color:var(--muted);background:var(--subtle);font-weight:760}.export-preview p{margin:0;padding:10px 12px;color:var(--muted);font-size:12px;font-weight:700}.export-options{display:grid;gap:10px}.export-options button{display:grid;grid-template-columns:36px minmax(0,1fr);align-items:center;gap:10px;width:100%;min-height:58px;padding:10px 12px;color:var(--text);text-align:left;background:#fff;border:1px solid var(--line);border-radius:16px}.export-options button:disabled{opacity:.58}.export-options svg{color:var(--accent)}.export-options strong,.export-options em{display:block}.export-options strong{font-size:15px;font-weight:780}.export-options em{margin-top:3px;color:var(--muted);font-size:12px;font-style:normal;font-weight:650}.sheet-status{margin:0;padding:10px 12px;color:#1d7a35;text-align:center;background:#eef9f1;border-radius:14px;font-size:13px;font-weight:750}.submit-button{width:100%;min-height:50px;color:#fff;background:var(--accent);border-radius:25px;font-size:17px;font-weight:780}.payment-action-stack{display:grid;gap:10px;margin-top:6px}.settle-button{width:100%;min-height:50px;color:#fff;background:var(--accent);border:0;border-radius:25px;font-size:17px;font-weight:780}.secondary-payment-button{color:var(--accent);background:#fff4eb;border:1px solid rgba(255,122,26,.16)}.undo-toast{position:fixed;left:50%;bottom:calc(104px + env(safe-area-inset-bottom));z-index:80;display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:10px;width:min(calc(100% - 32px),488px);min-height:54px;padding:9px 10px 9px 16px;color:#fff;background:#1c1c1ef0;border-radius:18px;box-shadow:0 18px 42px #0000003d;transform:translate(-50%);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.undo-toast span{overflow:hidden;font-size:15px;font-weight:750;text-overflow:ellipsis;white-space:nowrap}.undo-action,.undo-close{border:0}.undo-action{min-height:36px;padding:0 12px;color:#ff9f0a;background:#ffffff1f;border-radius:18px;font-size:15px;font-weight:850}.undo-close{display:grid;place-items:center;width:36px;height:36px;color:#fff;background:#ffffff1a;border-radius:18px}.app-shell{background:linear-gradient(180deg,#fff,#fbfbfc 46%,#f6f6f8)}.calendar-screen{background:linear-gradient(180deg,#fff,#fff 62%,#fafafb)}.utility-screen{background:linear-gradient(180deg,#fff,#f6f6f8 118px,#f6f6f8)}.utility-header{position:sticky;top:0;z-index:24;border-bottom:1px solid rgba(17,24,39,.045);background:#ffffffe6;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.utility-header h1{font-size:23px;font-weight:720}.utility-header>button{background:#ffffffb8}.utility-panel,.settings-summary-card,.settings-card,.analytics-section,.chart-card,.payment-sheet,.student-detail-sheet,.export-sheet{border:1px solid rgba(17,24,39,.055);box-shadow:var(--shadow-card)}.utility-panel{margin:16px;border-radius:24px}.settings-summary-card,.settings-card,.analytics-section,.chart-card{border-radius:22px}.ios-search{min-height:44px;margin:16px;padding:0 14px;background:#f1f1f4;border:1px solid rgba(17,24,39,.045);border-radius:18px}.ios-search input{font-size:15px}.student-row{align-items:center;gap:12px;padding:18px;border-top:0;border-bottom:1px solid rgba(17,24,39,.06)}.student-row:last-child{border-bottom:0}.student-row strong{font-size:17.5px;line-height:1.18}.student-row p,.student-side span,.quiet-text{color:#72727a;font-size:12.5px;line-height:1.34}.student-side{gap:8px}.student-side>strong{display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:0 10px;border-radius:999px;font-size:15.5px;font-weight:780;white-space:nowrap}.student-side>strong.amber{color:#d76614;background:#fff2e6}.student-side>strong.green{color:#159447;background:#ecf8ef}.student-actions{gap:7px}.small-button{min-height:32px;padding:0 11px;border:1px solid rgba(10,132,255,.08);border-radius:16px;font-size:12.5px;font-weight:720}.export-student-button{border-color:#2c7d461a}.payments-panel .subsection{padding:18px}.payments-panel .subsection h2{font-size:19px;font-weight:700}.payments-panel .compact-list{gap:8px}.payments-panel .compact-row{grid-template-columns:minmax(106px,.86fr) minmax(0,1fr) minmax(82px,max-content);min-height:60px;padding:12px 8px;border-bottom:0;border-radius:16px;background:#fbfbfc}.payments-panel .compact-row span{color:#72727a;font-size:13px}.payments-panel .compact-row strong{font-size:15.5px;font-weight:700}.payments-panel .compact-row em{color:#e96716;font-size:15.5px;font-weight:760}.payments-panel .compact-total-row{margin-top:10px;background:#fff8f2;border:1px solid rgba(255,122,26,.16)}.payments-panel .payment-record-row{grid-template-columns:minmax(96px,.85fr) minmax(0,1fr) minmax(58px,max-content) 52px}.payments-panel .payment-record-row button{justify-self:end}.analytics-section{gap:16px;padding:18px;border-bottom:0;background:linear-gradient(180deg,#fff,#fcfcfd)}.analytics-heading h2{font-size:28px;font-weight:760}.analytics-heading span,.chart-title-row span{color:#82828a}.period-switch,.line-basis-switch,.pie-group-switch,.pie-period-switch,.pie-metric-switch,.settings-tabs{background:#f0f0f3;border:1px solid rgba(17,24,39,.045)}.period-switch button.active,.line-basis-switch button.active,.pie-group-switch button.active,.pie-period-switch button.active,.pie-metric-switch button.active,.settings-tabs button.active{box-shadow:0 5px 14px #11182712}.analytics-summary-grid .metric{background:#fff;border:1px solid rgba(17,24,39,.045)}.chart-card{border-bottom:0}.income-line-chart .line-path{stroke-width:3.4}.income-line-chart .line-area{fill:#34c7591a}.settings-summary-card,.settings-card{background:#fffffff5}.settings-row{min-height:56px;border-bottom-color:#1118270f}.settings-summary-metric{background:#fafafa;border-color:#1118270b}.settings-save-bar{position:static;padding:4px 0 12px}.week-grid{border-top-color:#1118270f;border-left-color:#1118270a}.period-head,.week-day-head,.period-label,.period-cell{border-right-color:#1118270f;border-bottom-color:#1118270f}.period-head,.week-day-head,.period-label{background:#fbfbfc}.week-day-head span{color:#888891;font-size:11.5px;font-weight:560}.week-day-head strong{font-size:17px;font-weight:650}.period-label strong{font-size:16px;font-weight:660}.period-cell{background:#fffffff5}.mini-lesson{border-radius:10px;box-shadow:0 7px 16px #1018281f}.mini-lesson-name{font-size:10px;font-weight:760}.mini-lesson-time{background:#00000012;font-weight:660}.week-add-fab{width:64px;height:64px;background:linear-gradient(180deg,#ff922f,#ff7618);box-shadow:0 16px 30px #ff7a1a3d}.day-events{border-top-color:#1118270e}.calendar-event{padding:15px 0}.event-copy strong{font-size:17px;font-weight:700}.event-side strong{font-weight:720}.event-side em{font-weight:760}.today-pill,.month-title-row .floating-today-button{min-width:82px;min-height:44px;padding:0 16px;border-radius:24px;font-size:15px;box-shadow:0 12px 22px #ff7a1a38,0 4px 10px #ff7a1a1f,inset 0 1px #ffffff6b}.today-pill:before{width:7px;height:7px;box-shadow:0 0 0 4px #fff3}.today-pill:after{top:-4px;right:-4px;bottom:-4px;left:-4px;border-color:#ff7a1a33}.floating-dock{bottom:calc(20px + env(safe-area-inset-bottom))}.dock-group{min-height:54px;border:1px solid rgba(17,24,39,.055);background:#ffffffe6;box-shadow:0 14px 34px #11182714}.dock-group button{width:38px;height:42px;color:#202124}.dock-group button.active{color:#fff;background:#17171a;box-shadow:0 7px 16px #1118272e}.ios-hero{padding-bottom:4px}.year-pill,.hero-tools,.round-nav-button,.detail-nav button{border:1px solid rgba(17,24,39,.045);background:#ffffffe6}.month-title-row{padding:10px 22px}.month-title-row h1{font-size:clamp(38px,11.4vw,54px)}.ios-weekdays{height:31px;border-bottom-color:#1118270d;color:#222226;font-size:14px;font-weight:600}.ios-month-grid{padding-bottom:4px}.week-number,.ios-day{height:62px;border-top-color:#1118270e}.ios-day{grid-template-rows:40px 12px;padding-top:3px}.date-badge{width:39px;height:39px}.date-badge strong{font-size:20px;font-weight:700}.date-badge em{font-size:10.5px;font-weight:540}.ios-day.selected .date-badge{box-shadow:0 7px 14px #11182724}.event-marks{min-height:8px}.event-marks i{width:6px;height:6px}.event-marks i:first-child:last-child{width:22px;height:5px}.event-marks i:nth-child(2){width:14px;height:5px}.day-events{margin-top:4px;background:linear-gradient(180deg,#fff,#fbfbfc)}.day-events-head{padding:14px 22px 8px}.day-events-head span{font-size:13px}.day-events-head strong{font-size:19px;font-weight:720}.day-events-head button{min-height:40px;padding:0 15px;border-radius:20px;background:linear-gradient(180deg,#ff8d2b,#ff7418);box-shadow:0 8px 18px #ff7a1a29}.event-list{gap:10px;padding:0 20px 18px}.swipe-row{overflow:hidden;border:1px solid rgba(17,24,39,.055);border-radius:18px;background:#fff;box-shadow:0 7px 18px #11182706}.calendar-event{grid-template-columns:5px minmax(0,1fr) auto;padding:14px}.event-color{min-height:54px}.event-copy strong{font-size:16.5px}.event-copy p{font-size:13px}.event-actions button{min-height:27px;border:1px solid rgba(10,132,255,.08)}.event-side{min-width:76px}.event-side strong{font-size:17px}.event-side span{font-size:15px}.event-side em{margin-top:6px;font-size:11.5px}.editor-nav{grid-template-columns:58px minmax(0,1fr) 74px;padding-bottom:10px}.editor-nav h2{font-size:19px;font-weight:720}.round-nav-button{width:52px;height:52px;border-radius:26px!important}.round-nav-button.confirm{background:linear-gradient(180deg,#ff8d2b,#ff7418)!important;box-shadow:0 10px 22px #ff701f33!important}.title-card,.editor-list,.fee-card{margin:14px 18px;border:1px solid rgba(17,24,39,.05);border-radius:22px;box-shadow:var(--shadow-card)}.title-card{padding:18px 16px 14px}.title-card label{min-height:44px}.input-stripe{width:4px;height:30px;margin-right:10px}.title-card input{font-size:20px;font-weight:690}.color-row{gap:8px;margin-top:14px;padding-bottom:3px}.color-row button,.custom-color-swatch{width:28px;height:28px;border-width:2px}.editor-row{grid-template-columns:30px 96px minmax(0,1fr);min-height:54px;padding:0 15px;border-bottom-color:#1118270e}.editor-row svg{width:20px;height:20px;color:#8a8a92}.editor-row span{font-size:15px;font-weight:650;line-height:1.2;word-break:keep-all}.editor-row input,.editor-row select{min-height:40px;color:#f26f18;font-size:15px;font-weight:650}.time-range-control{min-height:40px;border:1px solid rgba(17,24,39,.04);background:#f4f4f7}.time-range-control input{min-height:32px;font-size:14px;font-weight:720}.weekday-pills{padding:12px 16px}.weekday-pills button{width:38px;height:38px;border-radius:19px;font-size:15px;font-weight:690}.fee-card{padding:16px}.fee-card strong{font-size:20px}.modal-backdrop{background:#1212144d;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.payment-sheet{max-height:min(84vh,740px);padding:18px 18px calc(16px + env(safe-area-inset-bottom));border:1px solid rgba(255,255,255,.78);border-radius:28px 28px 0 0;box-shadow:0 -18px 46px #11182729}.sheet-header{grid-template-columns:42px minmax(0,1fr);margin-bottom:14px}.sheet-header button{background:#f3f3f5}.sheet-header h2{font-size:20px;font-weight:720}.field{gap:8px;margin-bottom:14px;font-size:13px;font-weight:690}.field input,.field textarea{min-height:44px;background:#f7f7f9;border:1px solid rgba(17,24,39,.045);border-radius:16px}.submit-button,.settle-button{min-height:48px;background:linear-gradient(180deg,#ff8d2b,#ff7418);box-shadow:0 10px 22px #ff7a1a2e;font-size:16px;font-weight:740}.secondary-payment-button{border-color:#ff7a1a38;background:#fff6ee;box-shadow:none}.lesson-detail{padding-left:18px;padding-right:18px}.detail-title{padding:0 18px 22px}.detail-title h1{margin-bottom:18px;font-size:clamp(29px,8vw,38px);font-weight:720}.detail-title p{font-size:20px}.timeline-card,.detail-card,.note-card,.payment-detail-card{border:1px solid rgba(17,24,39,.05);border-radius:22px;box-shadow:var(--shadow-card)}.timeline-card{min-height:138px}.timeline-event{border-radius:14px;box-shadow:0 10px 22px #0000001a}.detail-row{min-height:54px;padding:0 20px;border-bottom-color:#1118270e}.detail-row span{font-size:16.5px;font-weight:660}.detail-row strong{font-size:15.5px;font-weight:650}.detail-delete-button{min-height:52px;font-size:17px}.student-detail-hero{border:1px solid rgba(17,24,39,.045);background:linear-gradient(180deg,#fafafa,#f5f5f7)}.student-detail-hero strong{font-size:19px;font-weight:760}.student-detail-actions button{min-height:42px;font-size:14px;font-weight:760}.student-detail-actions button.primary{background:linear-gradient(180deg,#ff8d2b,#ff7418)}.student-detail-section{border-color:#1118270e;border-radius:20px;box-shadow:var(--shadow-card)}.student-profile-list div,.student-stat-grid div{border:1px solid rgba(17,24,39,.035);background:#fafafa;border-radius:14px}.student-profile-list strong,.student-stat-grid strong{font-size:14.5px;font-weight:720}.analytics-section{padding:17px}.analytics-heading h2{font-size:27px}.analytics-summary-grid{gap:9px}.chart-card{padding:17px}.chart-title-row h3{font-size:17.5px;font-weight:720}.line-chart-card{padding-bottom:22px}.income-line-chart{max-height:260px}.settings-summary-card,.settings-card{border-radius:24px}.settings-summary-card{gap:12px}.settings-summary-metric{min-height:44px}.settings-summary-metric strong{font-size:16px;font-weight:720}.settings-card-title h2{font-size:17px;font-weight:720}.settings-row{min-height:54px}.settings-row span:first-child,.settings-row input{font-size:15.5px;font-weight:660}.week-table-title h2{font-size:24px;font-weight:720}.week-table-title span{font-size:13px}.week-day-head strong,.period-label strong{font-weight:620}.period-cell{padding:3px}.mini-lesson{border-radius:11px;box-shadow:0 8px 18px #1018281a}.mini-lesson-name{font-weight:730}.week-add-fab{width:60px;height:60px;right:22px;bottom:20px;box-shadow:0 14px 26px #ff7a1a33}.dock-group{min-height:52px;padding:5px 6px}.dock-group button{height:40px}.dock-group svg,.hero-tools svg{stroke-width:1.75}@media(max-width:380px){.ios-hero{padding-left:12px;padding-right:12px}.year-pill{font-size:20px;padding-right:13px}.hero-tools button{width:40px}.year-overview{padding-left:18px;padding-right:18px}.year-title-row{gap:12px}.year-title-row h1{font-size:42px}.year-lunar-note{font-size:12px}.year-months-grid{column-gap:20px;row-gap:32px}.mini-month-grid{gap:7px 3px;font-size:11px}.floating-dock{gap:8px;width:min(calc(100% - 16px),492px)}.today-pill{min-width:86px;min-height:46px;padding:0 16px;font-size:16px}.month-title-row .floating-today-button{min-width:86px;min-height:46px;padding:0 16px;border-radius:25px}.dock-group{padding:6px 5px}.dock-group button{width:35px}.ios-month-grid,.ios-weekdays{grid-template-columns:24px repeat(7,minmax(0,1fr));padding-left:4px;padding-right:4px}.date-badge{width:42px;height:42px}.date-badge strong{font-size:21px}.week-number,.ios-day{height:76px}.calendar-event{grid-template-columns:5px minmax(0,1fr)}.event-side{grid-column:2;justify-items:start;text-align:left}.editor-row{grid-template-columns:28px 82px minmax(0,1fr)}.editor-row:has(select){grid-template-columns:28px 82px minmax(0,1fr)}.editor-row:has(input+.editor-unit){grid-template-columns:28px 82px minmax(0,1fr) 46px}.editor-row:has(input[type=date]+input[type=time]),.editor-row:has(.readonly-pill+.readonly-pill){grid-template-columns:28px 58px minmax(120px,1fr) 76px}}.swipe-row:not(.open) .swipe-delete{transform:translate(116px)}.swipe-row.open .swipe-delete{transform:translate(0)}.calendar-event:after{right:-20px;width:24px}.editor-row.time-range-row{grid-template-columns:28px 76px minmax(0,1fr);gap:8px}.time-range-control{gap:4px;padding:3px}.time-range-control input{min-width:0;padding:0 1px;font-size:13.5px}.time-range-control input::-webkit-calendar-picker-indicator{width:13px;height:13px;margin-left:-4px;padding:0}@media(max-width:380px){.editor-row.time-range-row{grid-template-columns:26px 68px minmax(0,1fr);gap:7px}.time-range-control input{font-size:12.5px}}.payments-panel .payment-row-button{grid-template-columns:114px minmax(0,1fr) 88px;column-gap:8px;min-height:58px;padding:12px 9px;overflow:hidden}.payments-panel .payment-row-button .payment-date-time{display:inline-grid;grid-template-columns:max-content max-content;align-items:baseline;justify-content:start;min-width:114px;max-width:114px;gap:4px;overflow:hidden;color:#6f7077;font-size:11.3px;font-weight:570;line-height:1;white-space:nowrap}.payments-panel .payment-row-button .payment-date-time small{display:block;min-width:0;overflow:visible;text-overflow:clip;white-space:nowrap}.payments-panel .payment-row-button .payment-date-time time{min-width:34px;color:#4c4d54;font-size:11.3px;font-weight:650;font-variant-numeric:tabular-nums;white-space:nowrap}.payments-panel .payment-row-button strong{display:block;min-width:0;overflow:hidden;align-self:center;font-size:15.2px;line-height:1.12;text-overflow:ellipsis;white-space:nowrap;word-break:normal;overflow-wrap:normal;-webkit-line-clamp:initial}.payments-panel .payment-row-button .payment-due-amount{justify-self:end;grid-template-columns:2em 5.6ch;min-width:88px;column-gap:5px;font-size:15.2px}.payments-panel .payment-record-row strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(max-width:380px){.payments-panel .payment-row-button{grid-template-columns:110px minmax(0,1fr) 86px;column-gap:6px;padding-right:8px;padding-left:8px}.payments-panel .payment-row-button .payment-date-time{min-width:110px;max-width:110px;gap:3px;font-size:10.9px}.payments-panel .payment-row-button .payment-date-time time{min-width:32px;font-size:10.9px}.payments-panel .payment-row-button strong{font-size:14.6px}.payments-panel .payment-row-button .payment-due-amount{min-width:86px;font-size:14.8px}}
