:root{--bg: #f7f5f1;--card: #ffffff;--border: #e8e4dc;--text: #1f2328;--text-sub: #6b7280;--primary: #1e3a5f;--accent: #d4a84b;--green: #10b981;--red: #ef4444;--tag-bg: #eef2f7}*{box-sizing:border-box;margin:0;padding:0}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;background:var(--bg);color:var(--text);font-size:14px;line-height:1.5}.page{max-width:1280px;margin:0 auto;padding:24px 32px}.topbar{display:flex;align-items:center;justify-content:space-between;padding:12px 0 20px}.topbar-brand{font-size:18px;font-weight:700}.topbar-brand span{color:var(--text-sub);font-weight:400;margin-left:8px;font-size:13px}.card{background:var(--card);border:1px solid var(--border);border-radius:12px;padding:16px 20px;margin-bottom:16px}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px}.stat-card{background:var(--card);border:1px solid var(--border);border-radius:12px;padding:14px 18px}.stat-card .label{color:var(--text-sub);font-size:13px}.stat-card .value{font-size:26px;font-weight:700;margin-top:4px}.stat-card .sub{color:var(--text-sub);font-size:12px;margin-top:4px}.stat-card .sub.up{color:var(--green)}.section-title{font-size:13px;color:var(--text-sub);margin:20px 0 8px}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:16px}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:10px 12px;border-bottom:1px solid var(--border);font-size:13px}th{color:var(--text-sub);font-weight:500;background:#faf9f6}.tag{display:inline-block;padding:2px 10px;border-radius:10px;font-size:12px;background:var(--tag-bg)}.tag.new{background:#e0edff;color:#1e5fb4}.tag.dealing{background:#dcfce7;color:#15803d}.tag.private-coach{background:#ede9fe;color:#6d28d9}.tag.deal{background:#fef3c7;color:#92400e}.btn{display:inline-flex;align-items:center;gap:6px;padding:7px 14px;border-radius:8px;border:1px solid var(--border);background:#fff;cursor:pointer;font-size:13px}.btn.primary{background:var(--primary);color:#fff;border-color:var(--primary)}.btn.accent{background:var(--accent);color:#fff;border-color:var(--accent)}.search-box{width:100%;padding:10px 14px;border:1px solid var(--border);border-radius:10px;font-size:14px;margin-bottom:12px;background:#fff}.login-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center}.login-card{background:#fff;border:1px solid var(--border);border-radius:16px;padding:36px;width:360px}.login-card h1{font-size:20px;margin-bottom:4px}.login-card p{color:var(--text-sub);font-size:13px;margin-bottom:24px}.login-card input{width:100%;padding:10px 12px;border:1px solid var(--border);border-radius:8px;margin-bottom:12px;font-size:14px}.login-card .btn{width:100%;justify-content:center}.topbar-right{display:flex;align-items:center;gap:12px;color:var(--text-sub);font-size:13px}.toolbar{display:flex;align-items:stretch;gap:8px;margin:18px 0 12px;flex-wrap:wrap}.toolbar .search-box{flex:1 1 280px;margin:0}.toolbar select{min-width:130px}.toolbar select,.modal input,.modal select,.modal textarea{border:1px solid var(--border);border-radius:8px;background:#fff;padding:9px 10px;font:inherit}.table-wrap{overflow-x:auto}.table-wrap table{min-width:1050px}.row-actions{white-space:nowrap}.row-actions button{border:0;background:transparent;color:var(--primary);cursor:pointer;padding:4px}.row-actions button:last-child{color:#b42318}.empty-cell{text-align:center;color:var(--text-sub);padding:25px}.todo-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid var(--border)}.muted{color:var(--text-sub);font-size:13px}.card-heading{font-size:16px;margin-bottom:8px}.alert{display:flex;justify-content:space-between;align-items:center;background:#fef3f2;color:#b42318;padding:10px 14px;border-radius:8px;margin-bottom:14px}.alert button{border:0;background:transparent;cursor:pointer;font-size:20px}.error-text{color:#b42318!important;margin:8px 0!important}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#1f232888;display:grid;place-items:center;z-index:10;padding:18px}.modal{width:min(640px,100%);max-height:90vh;overflow-y:auto;background:#fff;border-radius:14px;padding:22px;box-shadow:0 18px 60px #0003}.modal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.modal h2{font-size:18px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:12px}.modal label{display:flex;flex-direction:column;gap:5px;color:var(--text-sub);font-size:13px}.modal input,.modal select,.modal textarea{width:100%;color:var(--text)}.wide-label{margin-bottom:16px}.crm-dashboard{max-width:1540px;padding-top:18px}.crm-dashboard .topbar{padding-bottom:16px}.brand-mark{display:grid;place-items:center;flex:0 0 58px;height:48px;border-radius:12px;color:#fff;background:#315f98;font-weight:800;letter-spacing:-1px}.brand-title{display:flex;flex-direction:column;gap:2px}.brand-title small{color:var(--text-sub);font-size:12px;font-weight:400}.topbar-brand{display:flex;align-items:center;gap:12px}.header-total{border:1px solid var(--border);border-radius:99px;background:#fff;padding:7px 14px}.insight-card{border:1px solid #e1e2e5;border-radius:17px;background:#f3f3f4;padding:19px 22px;margin-bottom:16px}.insight-label{color:#bd9200;font-size:13px;font-weight:750;margin-bottom:5px}.insight-card p{font-size:clamp(15px,1.5vw,19px);font-weight:650;line-height:1.65;margin-bottom:13px}.insight-card .btn{padding:8px 15px}.crm-dashboard .btn.primary{background:#8567d8;border-color:#8567d8}.kpi-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) minmax(175px,1.05fr);align-items:stretch;margin-bottom:16px;border:1px solid #e1e2e5;border-radius:15px;background:#f3f3f4;padding:17px 8px}.kpi-item{display:flex;min-width:0;flex-direction:column;align-items:center;justify-content:center;text-align:center;border-right:1px solid #e0e0e2;padding:1px 10px}.kpi-item strong{color:#315f98;font-size:26px;line-height:1.2}.kpi-item.green strong{color:#19826b}.kpi-item.gold strong{color:#c99900}.kpi-item span{color:var(--text-sub);font-size:13px}.kpi-item small{color:#92969c;font-size:11px}.kpi-item.total{border-right:0}.kpi-item.total strong{color:#c99900;font-size:24px}.operation-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:stretch}.operation-card{--tone: #315f98;min-width:0;overflow:hidden;background:#f3f3f4;border:1px solid #e1e2e5;border-top:4px solid var(--tone);border-radius:15px;padding:17px 18px 13px}.operation-card.acquisition{--tone: #315f98}.operation-card.sales{--tone: #32b48a}.operation-card.followup{--tone: #edbd08}.operation-card>header{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:12px}.operation-card>header h2{color:var(--tone);font-size:19px;margin:0}.operation-card>header p{color:var(--text-sub);font-size:12px}.operation-card>header>strong{font-size:21px}.operation-note{min-height:46px;border-left:4px solid #efc311;border-radius:8px;background:#f7f2df;padding:10px 12px;line-height:1.45;margin:6px 0 14px;color:#42444a}.channel-list,.funnel-list{min-height:118px}.channel-row,.funnel-row{display:grid;grid-template-columns:minmax(58px,auto) minmax(45px,1fr) 28px;align-items:center;gap:9px;margin:10px 0;font-size:12px}.channel-row b,.funnel-row b{text-align:right}.mini-track{height:13px;overflow:hidden;border-radius:99px;background:#fff}.mini-track i{display:block;height:100%;border-radius:inherit;background:#b9cee3}.sales .mini-track i{background:#67c8ab}.channel-row:nth-child(2n) .mini-track i{background:#3bb58b}.operation-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid #dedfe1;padding-top:11px;margin-top:12px;color:var(--text-sub);font-size:12px}.text-action{border:0;background:transparent;color:#315f98;cursor:pointer;font:inherit}.operation-card .card{padding:0;border:0;background:transparent;box-shadow:none;margin:0}.operation-card .card-heading{display:none}.operation-card .todo-row{font-size:12px;align-items:flex-start;padding:9px 0}.operation-card .todo-row strong{font-size:12px}.operation-card .todo-row .muted{font-size:11px}.operation-card .todo-row .btn{flex:0 0 auto;padding:5px 9px}.operation-card .todo-row:last-child{border-bottom:0}.operation-card .card>div:first-child{margin-bottom:5px}.support-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:14px;margin-top:16px}.support-card{min-width:0;overflow:hidden;isolation:isolate;background:#f3f3f4;border-color:#e1e2e5;border-radius:15px}.support-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:8px}.support-heading h2{font-size:17px}.support-heading p,.support-heading>span{color:var(--text-sub);font-size:12px}.support-card .recharts-responsive-container,.support-card>div{max-width:100%}.total-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}.total-grid>div{display:flex;flex-direction:column;border-radius:10px;background:#fff;padding:10px 12px}.total-grid strong{font-size:20px}.total-grid span{color:var(--text-sub);font-size:11px}.channel-chart{position:relative;z-index:0;height:150px;max-height:150px;overflow:hidden}.channel-chart>div{height:150px!important;max-height:150px}.crm-dashboard .toolbar{position:relative;z-index:1;display:grid;grid-template-columns:minmax(260px,1fr) auto auto auto;align-items:center;margin-top:17px}.crm-dashboard .toolbar .search-box{min-width:0;width:100%}.crm-dashboard .toolbar select,.crm-dashboard .toolbar .btn{min-height:42px;white-space:nowrap}.crm-dashboard .table-wrap,.crm-dashboard>.card{border-radius:13px}.load-error{max-width:560px;margin:12vh auto;padding:26px;border:1px solid var(--border);border-radius:14px;background:#fff}.load-error h1{margin:0 0 12px;font-size:20px}.load-error p{margin:8px 0;color:var(--text-sub)}.load-error .btn{margin-top:12px}.data-warning{align-items:flex-start}.data-warning ul{padding:5px 0 0 20px}.course-page{max-width:1480px}.course-topbar,.course-heading,.course-calendar-toolbar,.course-date-nav,.course-heading-actions,.section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.course-topbar{padding:8px 0 16px;border-bottom:1px solid var(--border)}.course-topbar .topbar-brand{font-size:18px}.course-topbar .topbar-brand span{margin:0 0 0 8px}.course-heading{align-items:flex-end;margin:18px 0 14px}.course-heading h1{font-size:23px}.course-heading p,.section-heading p{margin-top:4px;color:var(--text-sub);font-size:12px}.course-heading-actions{justify-content:flex-end;flex-wrap:wrap}.course-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}.course-summary article{display:flex;min-height:80px;flex-direction:column;justify-content:center;gap:4px;padding:12px 15px;border:1px solid var(--border);border-radius:12px;background:#fff}.course-summary article>span{color:var(--text-sub);font-size:12px}.course-summary strong{color:var(--primary);font-size:23px}.course-summary small{color:var(--text-sub);font-size:12px;font-weight:400}.course-calendar{padding:16px}.course-calendar-toolbar{margin-bottom:12px;flex-wrap:wrap}.course-date-nav{justify-content:flex-start}.course-date-nav strong{min-width:220px;text-align:center}.course-calendar-toolbar select{min-height:38px;padding:7px 10px;border:1px solid var(--border);border-radius:8px;background:#fff;font:inherit}.view-switch{display:flex;padding:3px;border:1px solid var(--border);border-radius:8px;background:#fff}.view-switch button{padding:5px 12px;border:0;border-radius:6px;background:transparent;color:var(--text-sub);cursor:pointer}.view-switch button.active{background:var(--primary);color:#fff}.student-filter-banner{display:flex;align-items:center;gap:5px;margin-bottom:10px;padding:8px 10px;border-radius:8px;background:#edf2f8;color:var(--primary);font-size:12px}.student-filter-banner button{margin-left:auto;border:0;background:transparent;color:var(--primary);text-decoration:underline;cursor:pointer}.week-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));overflow:hidden;border:1px solid var(--border);border-radius:10px}.week-day{min-width:0;min-height:295px;padding:9px 7px;border:0;border-right:1px solid var(--border);background:#fff;color:var(--text);text-align:left;cursor:pointer}.week-day:last-child{border-right:0}.week-day.selected{background:#f0f4f9;box-shadow:inset 0 0 0 2px #7894b5}.week-day.is-today>strong{color:#fff;background:var(--primary)}.week-day>span{display:block;color:var(--text-sub);font-size:11px}.week-day>strong{display:grid;width:29px;height:29px;place-items:center;margin:4px 0;border-radius:50%;font-size:14px}.week-day>small{color:var(--text-sub);font-size:10px}.week-day-events{display:grid;gap:5px;margin-top:7px}.course-chip{display:flex;min-width:0;flex-direction:column;gap:1px;padding:5px;border-left:3px solid #7193b9;border-radius:5px;background:#eaf0f7;color:#284e77;font-size:10px;overflow-wrap:anywhere}.course-chip em{color:var(--text-sub);font-size:9px;font-style:normal}.course-chip.done{border-color:#2aa17b;background:#e8f5ef;color:#187457}.course-chip.cancelled{border-color:#bdc1c7;background:#f1f1f2;color:#747982}.month-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));overflow:hidden;border:1px solid var(--border);border-radius:10px}.month-weekday{padding:8px;border-right:1px solid var(--border);background:#faf9f6;color:var(--text-sub);text-align:center;font-size:11px}.month-day{min-width:0;min-height:95px;padding:5px;border:0;border-top:1px solid var(--border);border-right:1px solid var(--border);background:#fff;color:var(--text);text-align:left;cursor:pointer}.month-day.selected{background:#f0f4f9;box-shadow:inset 0 0 0 2px #7894b5}.month-day.outside{color:#a7a9ad;background:#fafafa}.month-day.is-today>strong{color:#fff;background:var(--primary)}.month-day>strong{display:inline-grid;width:23px;height:23px;place-items:center;margin-bottom:3px;border-radius:50%;font-size:11px}.month-course{display:block;overflow:hidden;margin:2px 0;padding:2px 4px;border-radius:4px;background:#eaf0f7;color:#284e77;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.month-course.done{background:#e8f5ef;color:#187457}.month-day>small{color:var(--text-sub);font-size:9px}.course-legend{display:flex;gap:14px;margin-top:10px;color:var(--text-sub);font-size:11px}.course-legend i{display:inline-block;width:8px;height:8px;margin-right:5px;border-radius:50%;background:#7193b9}.course-legend .legend-done{background:#2aa17b}.course-legend .legend-cancel{background:#bdc1c7}.day-courses,.student-packages{margin-top:14px}.section-heading{margin-bottom:12px}.section-heading h2{font-size:17px}.course-list{display:grid;gap:8px}.course-row{display:grid;grid-template-columns:92px minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px;border:1px solid var(--border);border-radius:9px;background:#fff}.course-time{display:flex;flex-direction:column;color:var(--primary)}.course-time strong{font-size:17px}.course-time span{color:var(--text-sub);font-size:11px}.course-row-title{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.course-row-title>span{color:var(--text-sub);font-size:12px}.course-status{padding:2px 8px;border-radius:99px;background:#eaf0f7;color:#315f98!important;font-size:10px!important}.course-status.complete{background:#e8f5ef;color:#187457!important}.course-status.cancel{background:#f1f1f2;color:#747982!important}.course-meta{margin-top:4px;color:var(--text-sub);font-size:11px}.course-row-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.course-row-actions button{font-size:12px}.course-row-actions .danger{color:#b42318}.empty-cell{padding:24px 12px;color:var(--text-sub);text-align:center}.student-package-list{display:grid}.student-package-row{display:grid;grid-template-columns:minmax(110px,1.1fr) minmax(110px,1fr) repeat(4,minmax(100px,.8fr)) auto;align-items:center;gap:8px;padding:11px 6px;border-top:1px solid var(--border);font-size:11px}.student-package-row.active{background:#f0f4f9}.student-package-row>span{color:var(--text-sub)}.student-calendar-link{border:0;background:transparent;color:var(--primary);text-align:left;font:inherit;font-weight:700;cursor:pointer}.student-calendar-link span{display:block;color:var(--text-sub);font-size:9px;font-weight:400}.form-hint{margin:4px 0 12px;color:var(--text-sub);font-size:11px}.course-modal{width:min(700px,100%)}@media (max-width: 820px){.course-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.week-calendar{overflow-x:auto;grid-template-columns:repeat(7,minmax(115px,1fr))}.student-package-row{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (max-width: 560px){.course-heading,.section-heading{align-items:flex-start;flex-direction:column}.course-heading-actions{justify-content:flex-start}.course-calendar{padding:10px}.course-date-nav strong{min-width:150px;font-size:12px}.course-row{grid-template-columns:64px minmax(0,1fr)}.course-row-actions{grid-column:2;justify-content:flex-start}.month-day{min-height:72px;padding:3px}.month-course{font-size:8px}}@media (max-width: 760px){.page{padding:16px}.topbar{align-items:flex-start;gap:10px}.brand-title small{display:none}.topbar-right{flex-direction:column;align-items:flex-end}.stat-grid,.two-col{grid-template-columns:1fr 1fr}.kpi-strip{grid-template-columns:repeat(2,1fr);gap:10px 0}.kpi-item{min-height:74px}.kpi-item:nth-child(2n){border-right:0}.operation-grid,.support-grid{grid-template-columns:1fr}.crm-dashboard .toolbar{grid-template-columns:minmax(0,1fr) auto}.crm-dashboard .toolbar .search-box{grid-column:1 / -1}.operation-card .card{padding:0}.form-grid{grid-template-columns:1fr}}@media (max-width: 460px){.stat-grid,.two-col{grid-template-columns:1fr}.crm-dashboard .toolbar{grid-template-columns:1fr 1fr}.crm-dashboard .toolbar .search-box,.crm-dashboard .toolbar select{grid-column:1 / -1}.crm-dashboard .toolbar .btn{justify-content:center}}
