*{box-sizing:border-box}html,body,#root{width:100%;height:100%;margin:0}body{overflow:hidden;background:#fff;color:#37352f;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;font-size:14px}button,input{font:inherit}.login-shell{display:grid;width:100%;min-height:100%;place-items:center;padding:20px;background:#fbfbfa}.login-panel{display:flex;width:min(360px,100%);flex-direction:column;gap:16px;border:1px solid #e4e1dc;border-radius:8px;padding:24px;background:#fff;box-shadow:0 12px 30px #0f0f0f0f}.login-panel h1{margin:0;color:#2f2d29;font-size:22px;font-weight:650;letter-spacing:0}.login-panel p{margin:6px 0 0;color:#78756f;font-size:14px}.login-field{display:flex;flex-direction:column;gap:6px;color:#55524d;font-size:13px}.login-field input{width:100%;border:1px solid #d9d7d2;border-radius:6px;padding:9px 10px;color:#37352f;outline:none}.login-field input:focus{border-color:#6f8f7b;box-shadow:0 0 0 3px #3c6f581f}.login-error{border:1px solid #eed4c8;border-radius:6px;padding:8px 10px;background:#fff4ed;color:#8f4d2f;font-size:13px}.login-button{min-height:36px;cursor:pointer;border:1px solid #2f5d49;border-radius:6px;background:#3c6f58;color:#fff;font-weight:600}.login-button:hover{background:#315f4b}.login-button:disabled{cursor:wait;opacity:.72}.app-shell{display:flex;width:100%;height:100%;min-width:0;flex-direction:column;overflow:hidden;background:#fff}.week-toolbar{display:flex;min-height:64px;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;border-bottom:1px solid #e9e7e3;padding:12px 18px;background:#fff}.toolbar-main{display:flex;min-width:0;align-items:center;gap:10px}.toolbar-main h1{margin:0;overflow:hidden;color:#2f2d29;font-size:18px;font-weight:600;letter-spacing:0;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}.loading-text{flex:0 0 auto;color:#78756f;font-size:13px}.toolbar-actions{display:flex;flex:0 0 auto;gap:8px}.toolbar-actions button{min-height:32px;cursor:pointer;border:1px solid #d9d7d2;border-radius:5px;padding:5px 11px;background:#fff;color:#37352f}.toolbar-actions button:hover{background:#f7f6f3}.toolbar-actions button:active{background:#eeeeeb}.toolbar-center{display:flex;flex:0 0 auto;align-items:center;gap:8px}.live-clock{display:inline-flex;min-height:32px;align-items:center;border:1px solid #bbf7d0;border-radius:999px;padding:5px 12px;background:linear-gradient(135deg,#f0fdf4,#eff6ff);color:#047857;font-variant-numeric:tabular-nums;font-weight:900;white-space:nowrap}.clock-wrapper{position:relative;flex:0 0 auto}.live-clock{cursor:pointer}.live-clock:hover,.live-clock:focus-visible{border-color:#34d399;background:linear-gradient(135deg,#dcfce7,#e0f2fe);outline:none}.clock-menu{position:absolute;z-index:50;top:calc(100% + 8px);left:0;display:grid;min-width:210px;gap:6px;border:1px solid #d1fae5;border-radius:14px;padding:8px;background:#fffffff5;box-shadow:0 16px 34px #0f172a24}.clock-menu button{cursor:pointer;border:0;border-radius:10px;padding:8px 10px;background:transparent;color:#0f172a;font-weight:850;text-align:left}.clock-menu button:hover,.clock-menu button.active{background:#ecfdf5;color:#047857}.board-toolbar-button.todo-button{border-color:#fbcfe8;background:#fdf2f8;color:#be185d}.board-toolbar-button.todo-button:hover,.board-toolbar-button.todo-button.active{border-color:#ec4899;background:#fce7f3}.todo-badge{display:inline-grid;min-width:19px;height:19px;place-items:center;margin-left:6px;border-radius:999px;background:#fb7185;color:#fff;font-size:12px;line-height:1}.todo-panel{flex:0 0 auto;border-bottom:1px solid #fde68a;padding:14px 18px;background:radial-gradient(circle at 24px 24px,rgba(251,191,36,.16),transparent 34px),linear-gradient(135deg,#fff7ed,#fff1f2 48%,#ecfdf5)}.todo-card{display:grid;gap:12px;width:min(860px,100%);border:1px solid rgba(251,191,36,.44);border-radius:18px;padding:14px;background:#ffffffd1;box-shadow:0 12px 30px #fb71851f}.todo-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.todo-head div{display:grid;gap:3px}.todo-head strong{color:#9f1239;font-size:18px;font-weight:950}.todo-head span{color:#667085;font-size:13px;font-weight:750}.todo-head em{flex:0 0 auto;border-radius:999px;padding:5px 10px;background:#fef3c7;color:#92400e;font-style:normal;font-size:12px;font-weight:950;white-space:nowrap}.todo-compose{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}.todo-compose.compact{width:min(540px,100%);grid-template-columns:minmax(220px,1fr) auto;justify-self:start;align-items:center;margin-top:2px}.todo-compose.compact input,.todo-compose.compact button{min-height:38px}.todo-compose input{min-height:42px;border:1px solid #fed7aa;border-radius:14px;padding:9px 12px;background:#fff;color:#111827;outline:none}.todo-compose input:focus{border-color:#fb7185;box-shadow:0 0 0 4px #fb718524}.todo-compose button{min-height:42px;cursor:pointer;border:0;border-radius:14px;padding:8px 16px;background:linear-gradient(135deg,#fb7185,#f59e0b);color:#fff;font-weight:950}.todo-compose button:disabled{cursor:not-allowed;opacity:.6}.todo-list{display:grid;gap:9px;max-height:260px;overflow:auto;padding-right:4px}.todo-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;border:1px solid #f9d5e5;border-radius:15px;padding:10px;background:linear-gradient(135deg,#fff,#fff7fb)}.todo-item.done{border-color:#d1fae5;background:#f0fdf4}.todo-checkline{display:flex;min-width:0;cursor:pointer;align-items:center;gap:9px}.todo-checkline input{position:absolute;opacity:0;pointer-events:none}.todo-checkmark{display:grid;flex:0 0 auto;width:22px;height:22px;place-items:center;border:2px solid #f9a8d4;border-radius:8px;background:#fff;color:#fff;font-size:14px;font-weight:950}.todo-checkline input:checked+.todo-checkmark{border-color:#34d399;background:#34d399}.todo-checkline input:checked+.todo-checkmark:before{content:"✓"}.todo-index{display:grid;flex:0 0 auto;min-width:22px;height:22px;place-items:center;border-radius:8px;background:#ffe4f1;color:#be185d;font-size:12px;font-weight:950}.todo-item.done .todo-index{background:#d1fae5;color:#047857}.todo-text{min-width:0;overflow-wrap:anywhere;color:#111827;font-weight:850;line-height:1.42}.todo-item.done .todo-text{color:#7c8a9a;text-decoration:line-through}.todo-item button{cursor:pointer;border:1px solid #fecdd3;border-radius:999px;padding:5px 9px;background:#fff1f2;color:#e11d48;font-size:12px;font-weight:900}.todo-item button:disabled{cursor:not-allowed;opacity:.5}.todo-empty{border:1px dashed #f9a8d4;border-radius:14px;padding:18px;background:#ffffffb8;color:#9f1239;font-weight:850;text-align:center}.message-bar{flex:0 0 auto;border-bottom:1px solid #eed4c8;padding:9px 18px;background:#fff4ed;color:#8f4d2f;font-size:13px}.board-toolbar-button{flex:0 0 auto;cursor:pointer;border:1px solid #bfdbfe;border-radius:999px;padding:7px 14px;background:#eff6ff;color:#1d4ed8;font-weight:900}.board-toolbar-button:hover,.board-toolbar-button.active{border-color:#2563eb;background:#dbeafe}.board-panel{flex:0 0 auto;border-top:1px solid rgba(191,219,254,.9);border-bottom:1px solid rgba(167,243,208,.95);padding:14px 18px;background:linear-gradient(135deg,#eff6fff5,#f0fdf4eb 52%,#fff7ede6)}.board-body{display:grid;gap:12px}.board-intro{display:flex;align-items:center;justify-content:space-between;gap:10px}.board-intro span{color:#1f3a5f;font-size:13px;font-weight:900}.board-intro small{border:1px solid rgba(20,163,127,.22);border-radius:999px;padding:4px 9px;background:#ffffffb3;color:#08735a;font-size:12px;font-weight:850}.board-compose{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:stretch}.board-compose textarea{min-height:74px;resize:vertical;border:1px solid rgba(147,197,253,.85);border-radius:16px;padding:12px 14px;background:#ffffffeb;color:#111827;outline:none;font:inherit;font-size:14px;line-height:1.6;box-shadow:inset 0 1px #ffffffd9,0 10px 24px #2563eb0f}.board-compose textarea::placeholder{color:#7a8aa0}.board-compose textarea:focus{border-color:#2563eb;box-shadow:0 0 0 4px #2563eb1f,0 12px 26px #14a37f14}.board-compose button{min-height:46px;cursor:pointer;border:0;border-radius:14px;padding:10px 17px;background:linear-gradient(135deg,#2563eb,#14a37f);color:#fff;font-weight:900;box-shadow:0 12px 24px #1476b838}.board-compose button:hover:not(:disabled){filter:saturate(1.06) brightness(1.02)}.board-compose button:disabled{cursor:wait;opacity:.7}.board-list{display:grid;grid-auto-flow:column;grid-template-rows:repeat(2,minmax(118px,auto));grid-auto-columns:minmax(260px,330px);max-height:340px;gap:18px 72px;overflow-x:auto;overflow-y:hidden;padding:18px 112px 24px 30px;align-items:center;scroll-behavior:smooth;scrollbar-color:#2563eb rgba(255,255,255,.78);scrollbar-width:auto}.board-message{position:relative;isolation:isolate;display:grid;min-height:108px;min-width:0;align-content:start;gap:7px;overflow:visible;border:2px solid #111827;border-left-width:2px;border-radius:22px;padding:14px 16px 15px;background:var(--bubble-bg, #ffffff);color:var(--bubble-text, #111827);box-shadow:4px 5px #0f172a29;translate:var(--bubble-x, 0) 0}.board-message>*{position:relative;z-index:1;min-width:0}.board-message header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:8px}.board-message header strong{min-width:0;overflow-wrap:anywhere;color:#0f172a;font-size:14px;font-weight:950;line-height:1.25}.board-message header span{justify-self:end;white-space:nowrap;color:color-mix(in srgb,var(--bubble-text, #111827) 62%,#ffffff 38%);font-size:11px;font-weight:850;line-height:1.25}.board-message p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--bubble-text, #111827);font-size:14px;line-height:1.48}.board-message button{justify-self:end;cursor:pointer;border:2px solid #111827;border-radius:999px;padding:4px 9px;background:#ffffffd1;color:#b42318;font-size:12px;font-weight:900}.week-grid{display:grid;min-height:0;flex:1 1 auto;grid-template-columns:repeat(7,minmax(0,1fr));overflow:hidden}.day-column{display:flex;min-width:0;min-height:0;flex-direction:column;border-right:1px solid #e9e7e3;background:#fff}.day-column:last-child{border-right:0}.day-header{flex:0 0 auto;min-height:62px;border-bottom:1px solid #e9e7e3;padding:10px 10px 8px;background:#fbfbfa}.day-header.today{background:#fff6d8;border-bottom-color:#ecd488}.day-title{overflow:hidden;color:#37352f;font-size:14px;font-weight:600;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}.lunar-title{margin-top:3px;overflow:hidden;color:#78756f;font-size:12px;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}.lesson-list{min-height:0;flex:1 1 auto;overflow-y:auto;overflow-x:hidden;padding:8px}.empty-day{padding:8px 3px;color:#b0ada7;font-size:13px}.lesson-row{display:flex;min-width:0;cursor:pointer;align-items:flex-start;gap:7px;border:1px solid transparent;border-radius:5px;padding:6px;color:#37352f;line-height:1.35}.lesson-row:hover{background:#f7f6f3}.lesson-row.done .lesson-copy{color:#9b9891;text-decoration:line-through}.lesson-row.cancelled{cursor:default;border-color:#f2d0d0;background:#fff1f1;color:#8f2d2d}.lesson-row.cancelled .lesson-copy,.lesson-row.cancelled .lesson-time{color:#8f2d2d}.lesson-row.pending{opacity:.68}.lesson-checkbox{width:16px;height:16px;flex:0 0 16px;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:1px solid #b9b6af;border-radius:4px;margin:1px 0 0;background-color:#fff;background-position:center;background-repeat:no-repeat;background-size:12px 12px}.lesson-checkbox:checked{border-color:#3c6f58;background-color:#3c6f58;background-image:url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.2 6.1 4.8 8.7 9.9 3.3' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}.lesson-checkbox:disabled{cursor:not-allowed;border-color:#d8d3d0;background-color:#eee9e7}.lesson-copy{display:flex;min-width:0;flex:1 1 auto;flex-direction:column;gap:2px}.lesson-time{color:#78756f;font-size:12px;line-height:1.25;white-space:nowrap}.lesson-name{overflow-wrap:anywhere;word-break:break-word;white-space:normal}.status-pill{flex:0 0 auto;border-radius:4px;padding:1px 5px;background:#f4caca;color:#8f2d2d;font-size:12px;line-height:1.4}@media(max-width:760px){.week-toolbar{align-items:flex-start;padding:10px}.toolbar-main{width:100%}.toolbar-main h1{font-size:15px}.toolbar-actions{width:100%}.toolbar-actions button{flex:1 1 0;padding-right:4px;padding-left:4px}.day-header{padding-right:4px;padding-left:4px}.day-title{font-size:12px;white-space:normal}.lunar-title,.empty-day,.lesson-row,.status-pill{font-size:12px}.lesson-list{padding:5px 3px}.lesson-row{gap:4px;padding:6px 3px}}body{background:#f6f7fb;color:#202124;font-family:-apple-system,BlinkMacSystemFont,SF Pro Text,HarmonyOS Sans SC,MiSans,PingFang SC,Microsoft YaHei,sans-serif}.app-shell{background:#f6f7fb}.week-toolbar{min-height:58px;border-bottom-color:#e7eaf0;background:#fffffff5;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.toolbar-main h1{color:#111827;font-size:19px;font-weight:800}.toolbar-actions button{min-height:34px;border-color:#dfe3ea;border-radius:11px;color:#344054;font-weight:650}.toolbar-actions .primary-action,.login-button,.save-button{border:0;background:linear-gradient(135deg,#2563eb,#14a37f);color:#fff;font-weight:750;box-shadow:0 10px 24px #2563eb2e}.day-column{background:var(--day-soft);border-right-color:#e7eaf0}.day-header{min-height:72px;background:var(--day-bg);box-shadow:inset 0 3px 0 var(--day-accent)}.day-header.today{background:linear-gradient(180deg,var(--day-bg),#ffffff 120%);box-shadow:inset 0 3px 0 var(--day-accent),inset 0 0 0 999px #ffffff24}.day-title{color:var(--day-text);font-size:15px;font-weight:800}.lunar-title{color:#1f29379e;font-weight:650}.lesson-list{padding:9px 8px 12px}.add-day-lesson{width:100%;min-height:32px;cursor:pointer;border:1px dashed #cfd6e4;border-radius:12px;margin-bottom:8px;background:#ffffffb8;color:var(--day-text);font-size:13px;font-weight:750}.add-day-lesson:hover{background:#fff}.lesson-row{gap:8px;border:1px solid rgba(255,255,255,.78);border-left:4px solid var(--day-accent);border-radius:14px;margin-bottom:8px;padding:9px 9px 9px 8px;background:#ffffffe0;box-shadow:0 7px 18px #0f172a12}.lesson-row:hover{transform:translateY(-1px);box-shadow:0 9px 22px #0f172a1a}.lesson-checkbox{width:18px;height:18px;flex-basis:18px;border:1.5px solid #b7bdc8;border-radius:6px}.lesson-checkbox:checked{border-color:var(--day-accent);background-color:var(--day-accent)}.lesson-time{color:var(--day-text);font-size:12px;font-weight:800}.lesson-name{color:#1f2937;font-size:15px;font-weight:800}.dialog-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;display:grid;place-items:center;padding:18px;background:#0f172a47;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.lesson-dialog{display:flex;width:min(520px,100%);max-height:min(720px,94vh);flex-direction:column;gap:16px;overflow-y:auto;border:1px solid rgba(255,255,255,.8);border-radius:22px;padding:20px;background:#fffffffa;box-shadow:0 24px 70px #0f172a38}.dialog-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.dialog-header h2{margin:0;color:#111827;font-size:21px;font-weight:850}.dialog-header p{margin:5px 0 0;color:#667085;font-size:13px}.icon-close{width:32px;height:32px;flex:0 0 auto;cursor:pointer;border:0;border-radius:50%;background:#f2f4f7;color:#475467;font-size:22px;line-height:1}.mode-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;border-radius:14px;padding:4px;background:#f2f4f7}.mode-tabs button{min-height:36px;cursor:pointer;border:0;border-radius:11px;background:transparent;color:#667085;font-weight:750}.mode-tabs button.active{background:#fff;color:#2563eb;box-shadow:0 5px 12px #0f172a14}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.form-field.wide{grid-column:1 / -1}.form-field input,.form-field select{min-height:40px;border:1px solid #dfe3ea;border-radius:12px;padding:9px 11px;background:#fff;color:#1f2937;outline:none}.form-field input:focus,.form-field select:focus{border-color:#4f7cff;box-shadow:0 0 0 4px #4f7cff1f}.form-field input:disabled{background:#f2f4f7;color:#98a2b3}.dialog-actions{display:flex;justify-content:flex-end;gap:10px}.dialog-actions button{min-height:38px;cursor:pointer;border:1px solid #dfe3ea;border-radius:12px;padding:7px 14px;background:#fff;color:#344054;font-weight:750}.dialog-actions .save-button{border:0;color:#fff}.lesson-error{border:1px solid #ffd0c7;border-radius:12px;padding:9px 11px;background:#fff3f1;color:#b42318;font-size:13px}@media(max-width:900px){.week-grid{grid-template-columns:repeat(7,minmax(122px,1fr))}}@media(max-width:760px){body,.toolbar-actions{overflow-x:auto}.toolbar-actions button{flex:0 0 auto}.board-toolbar-button{min-width:max-content}.board-panel{padding:10px}.board-intro{flex-direction:column;align-items:flex-start;gap:2px}.board-compose{grid-template-columns:1fr}.board-compose button{width:100%}.form-grid,.mode-tabs{grid-template-columns:1fr}.lesson-name{font-size:14px}}.settings-button{background:#fff}.settings-dialog{width:min(500px,100%)}.form-field{display:flex;min-width:0;flex-direction:column;gap:6px;color:#475467;font-size:13px;font-weight:700}.form-field span{line-height:1.3}.form-grid.single-column{grid-template-columns:1fr}.color-grid{display:grid;gap:10px}.settings-color-section{display:grid;gap:10px;border-top:1px solid #eef1f5;padding-top:12px}.settings-inline-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.settings-inline-actions button{min-height:38px;cursor:pointer;border:1px solid #dfe3ea;border-radius:12px;padding:8px 12px;background:#fff;color:#344054;font-weight:800}.settings-inline-actions .inline-save{border:0;color:#fff}.color-row{display:grid;grid-template-columns:72px 46px minmax(0,1fr);align-items:center;gap:10px;border:1px solid #e6eaf0;border-radius:14px;padding:10px;background:#fbfcfe;color:#344054;font-size:14px;font-weight:800}.color-row input[type=color]{width:42px;height:34px;cursor:pointer;border:0;padding:0;background:transparent}.color-preview{min-width:0;border:1px solid currentColor;border-radius:12px;padding:7px 10px;font-size:13px;font-weight:850;text-align:center}.split-actions{display:grid;grid-template-columns:auto 1fr auto auto;align-items:center}@media(max-width:760px){.settings-dialog{max-height:92vh}.color-row{grid-template-columns:58px 42px minmax(0,1fr);gap:8px;padding:9px}.split-actions{grid-template-columns:1fr 1fr}.split-actions span{display:none}.settings-inline-actions{grid-template-columns:1fr}}.user-actions{display:flex;align-items:center;gap:6px;border-left:1px solid #e5e7eb;padding-left:8px}.user-chip{min-height:30px;display:inline-flex;align-items:center;border-radius:999px;padding:4px 10px;background:#eef6ff;color:#1d4ed8;font-size:13px;font-weight:800;white-space:nowrap}.toolbar-actions .logout-button{border-color:#ffd7d7;background:#fff7f7;color:#b42318}.toolbar-actions .logout-button:hover{background:#ffecec}.add-day-lesson{margin-top:8px;margin-bottom:0}.lesson-dialog{overflow:auto}.dialog-actions{position:sticky;bottom:-20px;margin:2px -20px -20px;padding:10px 20px 18px;background:linear-gradient(180deg,#ffffffb8,#fff 32%)}.dialog-actions .save-button,.dialog-actions .save-button:hover,.dialog-actions .save-button:active{min-width:84px;border:0;background:linear-gradient(135deg,#2563eb,#14a37f);color:#fff;box-shadow:0 10px 24px #2563eb33}.dialog-actions .save-button:disabled{cursor:wait;opacity:.72}@media(max-width:760px){.user-actions{flex:0 0 auto;border-left:0;padding-left:0}.user-chip{display:none}.dialog-actions{bottom:-18px;margin-right:-20px;margin-left:-20px}}.operation-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;border-radius:14px;padding:4px;background:#f2f4f7}.operation-tabs button{min-height:38px;cursor:pointer;border:0;border-radius:11px;background:transparent;color:#667085;font-weight:800}.operation-tabs button.active{background:#fff;color:#2563eb;box-shadow:0 5px 12px #0f172a14}.operation-tabs button.danger.active{color:#b42318}.form-note{grid-column:1 / -1;border:1px solid #fde5b5;border-radius:12px;padding:9px 11px;background:#fffbeb;color:#92400e;font-size:13px;font-weight:700}.delete-preview{display:flex;flex-direction:column;gap:5px;border:1px solid #ffd7d7;border-radius:14px;padding:12px;background:#fff7f7;color:#7f1d1d}.delete-preview strong{color:#111827;font-size:14px}.delete-preview span{font-size:13px;font-weight:750}.dialog-actions .save-button.danger-save,.dialog-actions .save-button.danger-save:hover,.dialog-actions .save-button.danger-save:active{background:linear-gradient(135deg,#dc2626,#f97316);box-shadow:0 10px 24px #dc262633}@media(max-width:760px){.operation-tabs{grid-template-columns:repeat(3,minmax(72px,1fr))}}.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;border-radius:12px;padding:4px;background:#f2f4f7}.auth-tabs button{min-height:34px;cursor:pointer;border:0;border-radius:9px;background:transparent;color:#667085;font-weight:800}.auth-tabs button.active{background:#fff;color:#2563eb;box-shadow:0 5px 12px #0f172a14}.form-section-title,.admin-section-title,.copy-target{border-radius:12px;padding:9px 11px;background:#f8fafc;color:#344054;font-size:13px;font-weight:850}.copy-summary,.week-danger-zone{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;border:1px solid #e6eaf0;border-radius:14px;padding:12px;background:#fff}.copy-summary{grid-template-columns:1fr;background:#f9fbff}.copy-summary strong,.week-danger-zone strong{display:block;color:#111827;font-size:14px}.copy-summary span,.week-danger-zone span{display:block;margin-top:4px;color:#667085;font-size:13px;font-weight:700;line-height:1.45}.week-danger-zone{border-color:#ffd7d7;background:#fff7f7}.week-danger-zone span{color:#9f2a1d}.danger-inline{min-height:38px;cursor:pointer;border:1px solid #fecaca;border-radius:12px;padding:8px 12px;background:#fee2e2;color:#b42318;font-weight:850}.danger-inline:hover:not(:disabled){background:#fecaca}.danger-inline:disabled{cursor:not-allowed;opacity:.55}.admin-dialog{width:min(760px,100%)}.invite-panel{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end}.inline-save,.invite-code,.invite-item,.user-row button{min-height:38px;cursor:pointer;border:1px solid #dfe3ea;border-radius:12px;padding:8px 12px;background:#fff;color:#344054;font-weight:800}.inline-save{border:0;background:linear-gradient(135deg,#2563eb,#14a37f);color:#fff}.invite-code{grid-column:1 / -1;border-color:#bfdbfe;background:#eff6ff;color:#1d4ed8;text-align:left}.user-list,.invite-list{display:grid;gap:8px}.user-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #e6eaf0;border-radius:14px;padding:11px 12px;background:#fff}.user-row div,.invite-item{display:flex;min-width:0;flex-direction:column;gap:3px}.user-row strong,.invite-item strong{color:#111827;font-size:14px}.user-row span,.user-row small,.invite-item span{color:#667085;font-size:12px;font-weight:700}.user-row .user-row-actions{flex:0 0 auto;display:flex;flex-direction:row;gap:8px}.user-row button{flex:0 0 auto}.user-row .user-reset-button{border-color:#bfdbfe;background:#eff6ff;color:#1d4ed8}.user-row .user-delete-button{border-color:#ffd7d7;background:#fff7f7;color:#b42318}.user-lock{flex:0 0 auto;border-radius:999px;padding:5px 9px;background:#f2f4f7;color:#667085;font-size:12px;font-weight:850}.invite-item{align-items:flex-start;text-align:left}.invite-item.used{background:#f8fafc;color:#98a2b3}@media(max-width:760px){.invite-panel,.form-grid{grid-template-columns:1fr}.user-row{align-items:flex-start;flex-direction:column}}.login-notice{border:1px solid #b7e4c7;border-radius:10px;padding:9px 10px;background:#f0fdf4;color:#166534;font-size:13px;font-weight:700}.login-link-button{cursor:pointer;border:0;background:transparent;color:#2563eb;font-weight:750}.recovery-question{border:1px solid #dbeafe;border-radius:12px;padding:11px 12px;background:#eff6ff;color:#1d4ed8;font-weight:800}.lesson-row.leave{cursor:default;border-color:#d8c7ff;border-left-color:#8b5cf6;background:#f5f0ff;color:#5b21b6}.lesson-row.leave .lesson-copy,.lesson-row.leave .lesson-time,.lesson-row.leave .lesson-name{color:#5b21b6}.status-pill.leave{background:#e9ddff;color:#5b21b6}.operation-tabs button.leave-action.active{color:#6d28d9}.operation-tabs button.restore-action.active{color:#047857}.dialog-actions .leave-save{background:linear-gradient(135deg,#7c3aed,#06a6d8)}.dialog-actions .restore-save{background:linear-gradient(135deg,#059669,#2563eb)}.student-create-panel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;border:1px solid #e6eaf0;border-radius:16px;padding:12px;background:#f8fafc}.student-create-panel .inline-save{grid-column:1 / -1;min-height:38px;cursor:pointer;border:0;border-radius:12px}.student-list{display:grid;gap:8px}.student-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #e6eaf0;border-radius:14px;padding:11px 12px;background:#fff}.student-row div{display:flex;min-width:0;flex-direction:column;gap:3px}.student-row strong{color:#111827;font-size:14px}.student-row span,.student-row small{color:#667085;font-size:12px;font-weight:700}.student-row button{flex:0 0 auto;cursor:pointer;border:1px solid #ffd7d7;border-radius:10px;padding:7px 10px;background:#fff7f7;color:#b42318;font-weight:800}.student-row .student-row-actions{display:flex;flex:0 0 auto;flex-direction:row;gap:8px}.student-row .student-export-button{border-color:#bfdbfe;background:#eff6ff;color:#1d4ed8}.export-dialog{width:min(680px,100%)}.export-student-title{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #dbeafe;border-radius:14px;padding:12px;background:#eff6ff}.export-student-title strong{color:#1d4ed8;font-size:18px}.export-student-title span{color:#475467;font-size:13px;font-weight:750}.schedule-export-preview{display:grid;max-height:260px;gap:8px;overflow:auto;border:1px solid #e6eaf0;border-radius:14px;padding:10px;background:#fff}.export-lesson-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:center;border-radius:12px;padding:9px 10px;background:#f8fafc}.export-lesson-row span{min-width:0;color:#344054;font-size:13px;font-weight:750}.export-lesson-row strong{color:#111827;font-size:14px}.export-lesson-row em{border-radius:999px;padding:3px 7px;background:#e9ddff;color:#5b21b6;font-size:12px;font-style:normal;font-weight:850}.leave-preview{display:flex;flex-direction:column;gap:5px;border:1px solid #d8c7ff;border-radius:14px;padding:12px;background:#f5f0ff;color:#5b21b6}.restore-preview{border-color:#bbf7d0;background:#f0fdf4;color:#047857}@media(max-width:760px){.student-create-panel{grid-template-columns:1fr}.student-row .student-row-actions{width:100%}.student-row .student-row-actions button{flex:1 1 0}.export-lesson-row{grid-template-columns:1fr;align-items:start}}.invite-code-row,.invite-item{display:flex;min-width:0;align-items:center;justify-content:space-between;gap:12px;border:1px solid #dfe3ea;border-radius:12px;padding:10px 12px;background:#fff;color:#344054}.invite-code-row.generated{grid-column:1 / -1;border-color:#bfdbfe;background:#eff6ff;color:#1d4ed8}.invite-code-row strong,.invite-item strong{min-width:0;overflow-wrap:anywhere;color:#111827;font-size:14px}.invite-item div{display:flex;min-width:0;flex:1 1 auto;flex-direction:column;gap:3px}.invite-code-row button,.invite-item button{min-height:34px;flex:0 0 auto;cursor:pointer;border:0;border-radius:10px;padding:7px 12px;background:#2563eb;color:#fff;font-weight:850}.invite-item.used{background:#f8fafc}.invite-item .invite-actions{display:flex;flex:0 0 auto;flex-direction:row;gap:8px}.invite-item .invite-actions button.danger{border:1px solid #ffd7d7;background:#fff1f1;color:#b42318}@media(max-width:760px){html,body,#root{min-height:100%;height:auto}body{overflow-x:hidden;overflow-y:auto}.app-shell{min-height:100dvh;height:auto;overflow:visible}.week-toolbar{position:sticky;top:0;z-index:5;gap:8px;padding:10px 10px 8px}.toolbar-main h1{white-space:normal}.toolbar-actions{display:flex;width:100%;flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px;-webkit-overflow-scrolling:touch}.toolbar-actions button,.toolbar-actions .primary-action,.toolbar-actions .settings-button{min-width:max-content;flex:0 0 auto;padding-right:10px;padding-left:10px}.user-actions{min-width:max-content;flex:0 0 auto}.week-grid{display:flex;min-height:calc(100dvh - 126px);flex:0 0 auto;gap:10px;overflow-x:auto;overflow-y:visible;padding:10px 10px 16px;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch}.day-column{min-width:min(86vw,360px);min-height:calc(100dvh - 156px);flex:0 0 min(86vw,360px);overflow:visible;border:1px solid #e0e6ef;border-radius:16px;scroll-snap-align:start}.day-column:last-child{border-right:1px solid #e0e6ef}.day-header{position:sticky;top:112px;z-index:1;border-radius:16px 16px 0 0;padding:10px 12px 8px}.lesson-list{flex:0 0 auto;overflow:visible;padding:9px 8px 12px}.lesson-row{gap:8px;padding:9px 8px}.lesson-name{font-size:15px}.dialog-backdrop{align-items:end;overflow-y:auto;padding:10px}.lesson-dialog{width:100%;max-height:92dvh;border-radius:20px}.invite-code-row,.invite-item,.user-row,.student-row{align-items:stretch;flex-direction:column}.invite-code-row button,.invite-item button{width:100%}.copy-summary,.week-danger-zone{grid-template-columns:1fr}.danger-inline{width:100%}.invite-item .invite-actions{width:100%;flex-direction:row}.invite-item .invite-actions button{flex:1 1 0}}.readonly-bar{border-bottom:1px solid #fed7aa;padding:10px 16px;background:linear-gradient(90deg,#fff7ed,#fffbeb);color:#9a3412;font-size:13px;font-weight:800}button:disabled,input:disabled,textarea:disabled{cursor:not-allowed;opacity:.62}.user-row .readonly-reason{color:#b45309}.user-row .user-readonly-button{border:1px solid #fde68a;background:#fffbeb;color:#92400e}.lesson-row.trial{border-color:#14a37f2e;background:linear-gradient(90deg,#14a37f0f,#fffffff0)}.status-pill.trial{background:#dff7ef;color:#08735a}.status-pill.unpaid{border:1px solid #fed7aa;background:#ffedd5;color:#b45309}.status-pill.unpaid-action{cursor:pointer;font:inherit;font-size:12px;line-height:1.4}.status-pill.unpaid-action:hover:not(:disabled){background:#fed7aa;color:#92400e}.status-pill.unpaid-action:disabled{cursor:not-allowed;opacity:.58}.stats-dialog{width:min(920px,100%)}.stats-filter{display:grid;grid-template-columns:minmax(180px,260px) auto;gap:10px;align-items:end}.stats-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.stats-summary div,.stats-row,.stats-day-card{border:1px solid #e6eaf0;border-radius:14px;padding:11px 12px;background:#fff}.stats-summary div{display:grid;gap:4px;background:linear-gradient(180deg,#fff,#f8fbff)}.stats-summary span,.stats-row span,.stats-day-card span{color:#667085;font-size:12px;font-weight:800}.stats-summary strong{color:#111827;font-size:22px;line-height:1.15}.stats-summary small,.stats-row small{color:#8a94a6;font-size:12px;font-weight:750}.stats-sections{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.stats-sections h3{margin:0 0 8px;color:#344054;font-size:14px}.stats-list{display:grid;gap:8px}.stats-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;align-items:center}.stats-row strong,.stats-day-card strong{min-width:0;color:#111827;font-size:14px;overflow-wrap:anywhere}.stats-row em,.stats-day-card em{color:#08735a;font-size:13px;font-style:normal;font-weight:900}.stats-wide-section{grid-column:1 / -1}.stats-day-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px}.stats-day-card{display:grid;gap:4px}@media(max-width:760px){.stats-filter,.stats-summary,.stats-sections,.stats-row{grid-template-columns:1fr}}.student-row .student-rate-button{border-color:#bbf7d0;background:#f0fdf4;color:#047857}.rate-dialog{width:min(560px,100%)}.lesson-row.unpaid{border-color:#f59e0b57;background:linear-gradient(90deg,#f59e0b1c,#fffffff5)}.checkbox-field{display:flex;align-items:center;gap:8px;min-height:42px}.checkbox-field input{width:17px;height:17px;margin:0}.board-list::-webkit-scrollbar{height:13px}.board-list::-webkit-scrollbar-track{border:2px solid rgba(17,24,39,.18);border-radius:0;background:#ffffffb8}.board-list::-webkit-scrollbar-thumb{border:2px solid #111827;border-radius:0;background:linear-gradient(90deg,#2563eb,#14a37f)}.board-empty{grid-row:1 / -1;width:240px;align-self:center}.board-message:after{content:"";position:absolute;width:20px;height:20px;border-right:2px solid #111827;border-bottom:2px solid #111827;background:var(--bubble-bg, #ffffff);transform:rotate(45deg)}.board-message.bubble-lane-top{--bubble-x: var(--top-shift, 0px);align-self:end;margin-top:2px;margin-bottom:12px}.board-message.bubble-lane-bottom{--bubble-x: calc(62px + var(--bottom-shift, 0px));align-self:start;margin-top:18px;margin-bottom:0}.board-message.bubble-shift-0{--top-shift: 0px;--bottom-shift: 0px}.board-message.bubble-shift-1{--top-shift: -8px;--bottom-shift: 12px}.board-message.bubble-shift-2{--top-shift: 10px;--bottom-shift: 24px}.board-message.bubble-lane-top:after{bottom:-11px;left:28px}.board-message.bubble-lane-bottom:after{top:-11px;right:32px;transform:rotate(225deg)}.bubble-blue{--bubble-bg: #5c7ed1;--bubble-text: #071229}.bubble-pink{--bubble-bg: #ff73af;--bubble-text: #2c0718}.bubble-orange{--bubble-bg: #ffae32;--bubble-text: #251100}.bubble-white{--bubble-bg: #ffffff;--bubble-text: #111827}.bubble-mint{--bubble-bg: #a7f3d0;--bubble-text: #052e1b}.bubble-cloud{border-radius:34px 42px 38px 30px/30px 38px 34px 42px}.bubble-heart{border-radius:42% 58% 52% 48%/45% 42% 58% 55%}.bubble-round{border-radius:32px}.bubble-burst{border-color:transparent;border-radius:18px;background:transparent;box-shadow:none;padding:18px 20px 19px}.bubble-burst:after,.bubble-quote:after{display:none}.bubble-burst:before{content:"";position:absolute;top:-7px;right:-7px;bottom:-7px;left:-7px;z-index:-1;border:2px solid #111827;background:var(--bubble-bg, #ffffff);clip-path:polygon(8% 24%,18% 12%,28% 18%,40% 8%,50% 18%,64% 8%,72% 22%,90% 18%,82% 36%,94% 48%,82% 60%,90% 78%,72% 74%,62% 92%,50% 80%,36% 92%,28% 76%,10% 82%,16% 62%,4% 50%,16% 38%)}.bubble-pill{border-radius:999px;min-height:104px;padding-right:20px;padding-left:20px}.bubble-square{border-radius:10px}.bubble-ticket{border-radius:18px 8px 22px}.bubble-oval{border-radius:34px 46px 38px 42px/42px 34px 46px 38px;min-height:116px;padding:17px 22px}.bubble-quote{border-radius:42px 34px 46px 30px/34px 44px 30px 46px;min-height:112px}.bubble-quote:before{content:'"';position:absolute;right:14px;top:-15px;z-index:2;color:#111827;font-size:32px;font-weight:950}.bubble-zigzag{border-radius:24px 12px 28px}.bubble-zigzag:before{content:"";position:absolute;top:-6px;right:-6px;bottom:-6px;left:-6px;z-index:-1;background:#111827;clip-path:polygon(0 15%,8% 8%,16% 14%,24% 5%,32% 14%,40% 7%,48% 15%,56% 6%,64% 14%,72% 8%,80% 15%,88% 7%,100% 14%,94% 25%,100% 36%,92% 48%,100% 58%,92% 70%,100% 84%,88% 92%,78% 86%,68% 94%,58% 86%,48% 95%,38% 86%,28% 94%,18% 86%,8% 94%,0 84%,6% 72%,0 60%,8% 48%,0 36%,6% 25%)}@media(max-width:760px){.toolbar-center{width:100%;overflow-x:auto;padding-bottom:2px}.live-clock{flex:0 0 auto}.todo-panel{padding:10px}.todo-card{border-radius:16px;padding:12px}.todo-head{align-items:flex-start;flex-direction:column;gap:8px}.todo-compose{grid-template-columns:1fr}.todo-compose button{width:100%}}@media(max-width:760px){.board-list{grid-auto-columns:minmax(236px,82vw);gap:16px 42px;padding-right:64px;padding-left:18px}.board-message.bubble-lane-bottom{--bubble-x: calc(34px + var(--bottom-shift, 0px))}.board-message.bubble-shift-1{--top-shift: -4px;--bottom-shift: 6px}.board-message.bubble-shift-2{--top-shift: 5px;--bottom-shift: 12px}}@media(max-width:760px){.clock-wrapper{max-width:100%}.clock-menu{min-width:min(220px,92vw)}.todo-compose.compact{width:100%;grid-template-columns:1fr}}.student-dialog{width:min(1080px,100%)}.student-manager-layout{display:grid;grid-template-columns:minmax(260px,.9fr) minmax(360px,1.1fr);gap:12px;align-items:start}.student-list-panel,.student-profile-panel,.student-profile-stack{display:grid;gap:10px}.student-row.active{border-color:#93c5fd;background:#eff6ff;box-shadow:0 10px 26px #2563eb1a}.student-row .student-profile-button{border-color:#bbf7d0;background:#ecfdf5;color:#047857}.student-profile-panel{min-height:260px;border:1px solid #e6eaf0;border-radius:16px;padding:12px;background:linear-gradient(180deg,#fff,#f8fafc)}.student-profile-head{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #dbeafe;border-radius:14px;padding:12px;background:#eff6ff}.student-profile-head div{display:grid;gap:3px}.student-profile-head strong{color:#1d4ed8;font-size:18px}.student-profile-head span,.student-profile-head em{color:#475467;font-size:13px;font-style:normal;font-weight:800}.profile-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;border-radius:14px;padding:5px;background:#eef2f7}.profile-tabs button{min-height:36px;cursor:pointer;border:0;border-radius:10px;background:transparent;color:#475467;font-weight:850}.profile-tabs button.active{background:#fff;color:#1d4ed8;box-shadow:0 6px 18px #0f172a1a}.student-profile-form,.exam-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.student-profile-form .inline-save,.exam-form .exam-form-actions,.profile-main-action{grid-column:1 / -1}.exam-form-actions{display:flex;justify-content:flex-end;gap:8px}.exam-form-actions button:not(.inline-save){min-height:38px;cursor:pointer;border:1px solid #dfe3ea;border-radius:12px;padding:8px 12px;background:#fff;color:#344054;font-weight:800}.rate-history-list,.exam-record-list{display:grid;gap:8px}.rate-history-item,.exam-record-card{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #e6eaf0;border-radius:14px;padding:10px 12px;background:#fff}.rate-history-item strong,.exam-record-card strong{color:#111827;font-size:14px}.rate-history-item span,.exam-record-card span,.exam-record-card small{display:block;margin-top:3px;color:#667085;font-size:12px;font-weight:750}.exam-record-card>div:first-child{min-width:0}.exam-record-actions{display:flex;flex:0 0 auto;gap:8px}.exam-record-actions button{min-height:34px;cursor:pointer;border:1px solid #bfdbfe;border-radius:10px;padding:7px 10px;background:#eff6ff;color:#1d4ed8;font-weight:850}.exam-record-actions button:last-child,.danger-zone button{border-color:#ffd7d7;background:#fff7f7;color:#b42318}.student-profile-empty{display:grid;min-height:220px;place-content:center;gap:8px;border:1px dashed #cbd5e1;border-radius:14px;color:#667085;text-align:center}.student-profile-empty strong{color:#344054;font-size:16px}.danger-zone{display:grid;gap:8px;border:1px solid #fecaca;border-radius:14px;padding:12px;background:#fff7f7}.danger-zone strong{color:#b42318}.danger-zone span{color:#667085;font-size:12px;font-weight:750}.danger-zone button{min-height:38px;cursor:pointer;border-radius:12px;padding:8px 12px;font-weight:850}@media(max-width:900px){.student-manager-layout{grid-template-columns:1fr}.profile-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){.student-profile-form,.exam-form{grid-template-columns:1fr}.rate-history-item,.exam-record-card{align-items:flex-start;flex-direction:column}.exam-record-actions{width:100%}.exam-record-actions button{flex:1 1 0}}html,body,#root,.app-shell,.week-grid{touch-action:pan-x pan-y pinch-zoom}@media(max-width:760px){html{-webkit-text-size-adjust:100%;text-size-adjust:100%}.week-grid{scroll-snap-type:x proximity;overscroll-behavior-x:contain}.day-column{min-width:min(92vw,390px);flex-basis:min(92vw,390px)}.dialog-backdrop,.lesson-dialog,.board-list,.todo-list,.toolbar-actions{overscroll-behavior:contain}}
