:root{--sky:#55acca;--lime:#a6c900;--purple:#4a1e75;--purple-soft:#4a1e751a;--white:#fff;--gray-light:#f5f7f8;--gray-dark:#343a40;--text-muted:#6b737a;--line:#343a4014;--shadow:0 1px 2px #343a400a, 0 10px 28px #343a400d;--sidebar:268px;color:var(--gray-dark);background:var(--gray-light);font-family:Segoe UI,system-ui,-apple-system,sans-serif;line-height:1.5}*{box-sizing:border-box}body{min-width:320px;margin:0}button,h1,h2,h3,p{margin:0}button{font:inherit;color:inherit;background:0 0;border:0;padding:0}.icon{fill:none;stroke:currentColor;stroke-width:1.7px;stroke-linecap:round;stroke-linejoin:round;flex:none;width:20px;height:20px}.shell{min-height:100vh;display:flex}.sidebar{width:var(--sidebar);background:var(--white);border-right:1px solid var(--line);flex-direction:column;height:100vh;padding:24px 16px 20px;display:flex;position:sticky;top:0}.brand{justify-content:space-between;align-items:center;min-height:48px;margin-bottom:28px;padding:0 8px;display:flex}.brand img{width:168px;height:auto}.sidebar-close,.menu-button,.backdrop{display:none}.menu{flex-direction:column;gap:4px;display:flex}.menu-item{width:100%;min-height:44px;color:var(--text-muted);text-align:left;cursor:pointer;border-left:3px solid #0000;border-radius:12px;align-items:center;gap:12px;padding:0 12px;text-decoration:none;display:flex}.menu-item[aria-current=page]{border-left-color:var(--purple);background:var(--purple-soft);color:var(--purple);font-weight:600}.menu-logout{margin-top:auto}.workspace{flex:1;min-width:0}.topbar{z-index:5;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#f5f7f8eb;align-items:center;gap:16px;padding:22px 40px 18px;display:flex;position:sticky;top:0}.topbar-title{flex:1;min-width:0}.topbar-title h1{color:var(--purple);font-size:28px;font-weight:700;line-height:1.2}.topbar-title p,.welcome p,.metric-description,.quick-card p,.panel-lead,.panel-note,.activity-when{color:var(--text-muted)}.profile{align-items:center;gap:10px;display:flex}.avatar{background:var(--purple);width:40px;height:40px;color:var(--white);border-radius:50%;place-items:center;font-size:16px;font-weight:700;display:grid}.profile-name{font-size:15px;font-weight:600}.page{flex-direction:column;gap:28px;width:min(1120px,100% - 80px);margin:0 auto;padding-bottom:48px;display:flex}.welcome,.card{background:var(--white);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:16px}.welcome{padding:22px 24px}.welcome h2,.block h2{font-size:20px;font-weight:700;line-height:1.3}.welcome p{max-width:62ch;margin-top:6px;font-size:15px}.summary,.quick-grid{gap:16px;display:grid}.summary{grid-template-columns:repeat(4,minmax(0,1fr))}.metric,.quick-card{padding:20px}.metric{gap:14px;display:flex}.metric-icon{background:var(--purple-soft);width:40px;height:40px;color:var(--purple);border-radius:12px;flex:none;place-items:center;display:grid}.metric-label,.activity-head{color:var(--text-muted);font-size:13px;font-weight:600}.metric-value{margin-top:2px;font-size:28px;font-weight:700;line-height:1.2}.metric-description{margin-top:4px;font-size:13px}.block h2{margin-bottom:16px}.quick-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.quick-card h3{margin-top:14px;font-size:16px;line-height:1.3}.quick-card p{margin-top:6px;font-size:14px}.split{grid-template-columns:minmax(0,1.7fr) minmax(280px,.8fr);align-items:start;gap:16px;display:grid}.block.card{padding:22px 24px 8px}.split .block:last-child{padding-bottom:24px}.activity-row{border-top:1px solid var(--line);grid-template-columns:160px minmax(0,1fr) 120px;align-items:center;gap:16px;padding:14px 0;font-size:14px;display:grid}.activity-head{border-top:0;padding-top:0}.activity-name{font-weight:600}.panel-lead{margin-top:-8px;margin-bottom:20px;font-size:14px}.accuracy{--percent:0%;place-items:center;display:grid}.accuracy-ring{background:conic-gradient(var(--lime) var(--percent), var(--gray-light) 0);border-radius:50%;place-items:center;width:168px;height:168px;display:grid}.accuracy-hole{background:var(--white);border-radius:50%;flex-direction:column;justify-content:center;align-items:center;width:124px;height:124px;display:flex}.accuracy-hole strong{font-size:32px;line-height:1}.accuracy-hole span{color:var(--text-muted);margin-top:4px;font-size:13px}.panel-note{text-align:center;margin-top:18px;font-size:13px}@media (width<=1100px){.summary{grid-template-columns:repeat(2,minmax(0,1fr))}.split{grid-template-columns:1fr}}@media (width<=860px){.sidebar{z-index:20;transition:transform .18s;position:fixed;transform:translate(-105%)}.sidebar.is-open{transform:none}.sidebar-close,.menu-button{width:40px;height:40px;color:var(--gray-dark);border-radius:12px;place-items:center;display:inline-grid}.backdrop{z-index:15;cursor:pointer;background:#343a4047;display:block;position:fixed;inset:0}.topbar,.page{width:auto}.topbar{padding:18px 20px 14px}.page{width:min(1120px,100% - 40px)}.quick-grid,.activity-row{grid-template-columns:1fr}.activity-head{display:none}.activity-row{gap:2px;padding:12px 0}}@media (width<=640px){.summary{grid-template-columns:1fr}.profile-name{display:none}}.demo-note,.empty-copy,.modal-lead,.form-notice{color:var(--text-muted);font-size:14px}.summary-three{grid-template-columns:repeat(3,minmax(0,1fr))}.students-panel{padding:20px}.students-toolbar{flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:16px;display:flex}.students-toolbar .primary-button{margin-left:auto}.search{border:1px solid var(--line);background:var(--gray-light);min-height:44px;color:var(--text-muted);border-radius:12px;flex:260px;align-items:center;gap:8px;padding:0 12px;display:flex}.search input,.sort select,.performance-filter select,.field input:not([type=checkbox]),.field select{font:inherit;color:var(--gray-dark);background:0 0;border:0}.search input{outline:none;width:100%;min-height:42px}.search input::placeholder{color:#8b939a}.filters{flex-wrap:wrap;gap:8px;display:flex}.filter-button,.sort select,.performance-filter select,.ghost-button,.text-button,.primary-button{cursor:pointer}.filter-button{background:var(--gray-light);min-height:40px;color:var(--text-muted);border-radius:999px;padding:0 14px;font-weight:600}.filter-button[aria-pressed=true]{background:var(--sky);color:var(--white)}.sort select,.performance-filter select{border:1px solid var(--line);background:var(--white);border-radius:12px;min-height:44px;padding:0 12px}.primary-button,.ghost-button{border-radius:12px;justify-content:center;align-items:center;min-height:44px;padding:0 16px;font-weight:600;line-height:1.2;display:inline-flex}.primary-button{background:var(--sky);color:var(--white)}.ghost-button{color:var(--text-muted)}.text-button{color:var(--sky);white-space:nowrap;font-weight:600}.form-notice{margin-bottom:12px}.table-scroll{overflow-x:auto}.student-table{border-collapse:collapse;width:100%;min-width:760px}.student-table th,.student-table td{border-top:1px solid var(--line);text-align:left;vertical-align:middle;padding:14px 12px;font-size:14px}.student-table th{color:var(--text-muted);font-size:13px;font-weight:600}.student-identity{align-items:center;gap:10px;display:flex}.avatar-small{width:36px;height:36px;font-size:13px}.progress-line{align-items:center;gap:10px;min-width:140px;display:flex}.progress-track{background:var(--gray-light);border-radius:99px;flex:1;height:8px;overflow:hidden}.progress-track span{border-radius:inherit;background:var(--lime);height:100%;display:block}.progress-value{min-width:36px;font-size:13px;font-weight:600}.status-badge{background:var(--gray-light);min-height:26px;color:var(--text-muted);border-radius:999px;align-items:center;padding:0 10px;font-size:12px;font-weight:700;display:inline-flex}.status-badge.is-active{color:var(--gray-dark);background:#a6c90033}.student-profile{flex-direction:column;align-items:flex-start;gap:16px;display:flex}.student-profile>.card,.student-profile>.summary{align-self:stretch}.profile-hero{align-items:center;gap:16px;padding:22px 24px;display:flex}.profile-hero h2{font-size:22px;line-height:1.3}.profile-hero p{color:var(--text-muted)}.profile-hero .status-badge{margin-top:8px}.student-lessons{padding-bottom:8px}.lesson-list{flex-direction:column;display:flex}.lesson-row{border-top:1px solid var(--line);grid-template-columns:minmax(0,1.4fr) 120px 140px;align-items:center;gap:12px;padding:14px 0;font-size:14px;display:grid}.modal-backdrop{z-index:30;background:#343a4059;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.modal{background:var(--white);width:min(440px,100%);box-shadow:var(--shadow);border-radius:16px;padding:24px}.modal h2{font-size:22px;line-height:1.3}.modal-lead{margin:8px 0 18px}.student-form{flex-direction:column;gap:14px;display:flex}.field{flex-direction:column;gap:6px;font-size:14px;font-weight:600;display:flex}.field input:not([type=checkbox]),.field select{border:1px solid var(--line);background:var(--gray-light);border-radius:12px;min-height:44px;padding:0 12px}.field small{color:#b42318;font-weight:600}.access-list{gap:8px;margin:4px 0 0;padding:0;list-style:none;display:grid}.access-option{border:1px solid var(--line);background:var(--white);border-radius:12px;align-items:center;gap:12px;min-height:44px;margin:0;padding:8px 12px;font-weight:600;display:flex}.access-option input{width:18px;height:18px;accent-color:var(--sky);flex:none;margin:0}.book-grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px;display:grid}.book-card{border:1px solid var(--line);background:var(--gray-light);min-height:132px;color:inherit;cursor:pointer;border-radius:16px;flex-direction:column;justify-content:space-between;gap:18px;padding:18px;text-decoration:none;display:flex}.book-card strong{color:var(--purple);font-size:20px}.book-card:hover{border-color:var(--purple);background:var(--purple-soft)}.book-card span{color:var(--text-muted);font-size:14px;font-weight:600}.assigned-book{border:1px solid var(--line);background:var(--white);border-radius:12px;justify-content:space-between;align-items:center;gap:12px;min-height:44px;padding:8px 12px;font-weight:600;display:flex}.assign-book{align-items:flex-end;gap:12px;margin-top:16px;display:flex}.assign-book .field{flex:1}.modal-actions{justify-content:flex-end;gap:8px;margin-top:4px;display:flex}.visually-hidden{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;padding:0;position:absolute;overflow:hidden}.empty-copy{text-align:center;padding:28px 8px}@media (width<=900px){.summary-three,.lesson-row{grid-template-columns:1fr}}@media (width<=640px){.students-toolbar .primary-button,.modal-actions{width:100%}.modal-actions{flex-direction:column-reverse}}.row-actions,.question-actions,.editor-toolbar,.editor-save{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.row-actions{flex-wrap:nowrap}.icon-button{width:36px;height:36px;color:var(--sky);background:var(--gray-light);cursor:pointer;border-radius:10px;justify-content:center;align-items:center;text-decoration:none;transition:background .15s,color .15s;display:inline-flex}.icon-button:hover{color:#3d8eab;background:#55acca2e}.icon-button.is-danger{color:#b42318}.icon-button.is-danger:hover{color:#8f1c14;background:#b423181f}.icon-button:disabled,.icon-button:disabled:hover{opacity:.4;cursor:default;background:var(--gray-light);color:#b42318}.you-note{color:var(--purple);margin-left:8px;font-size:12px;font-weight:700}.editor-toolbar,.editor-save{justify-content:space-between}.html-field-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.html-field-actions{align-items:center;gap:16px;display:flex}.html-file-input{display:none}.html-preview iframe{border:1px solid var(--line);background:var(--white);border-radius:12px;width:100%;min-height:360px}.editor-actions{flex-direction:column;align-items:flex-start;gap:12px;margin-top:24px;display:flex}.editor{align-items:stretch}.editor>.text-button{align-self:flex-start}.editor-identity,.question-card,.preview-shell{padding:22px 24px}.editor-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:16px;display:grid}.question-list{flex-direction:column;gap:16px;display:flex}.question-header{justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;display:flex}.question-header h3,.phone-preview h3{font-size:18px;line-height:1.3}.options{border:0;margin:16px 0;padding:0}.options legend{margin-bottom:10px;font-size:14px;font-weight:600}.option-row{grid-template-columns:110px minmax(0,1fr) auto auto auto;align-items:center;gap:8px;margin-bottom:8px;display:grid}.option-row input[type=text],.option-row input:not([type=radio]){border:1px solid var(--line);background:var(--gray-light);min-height:44px;font:inherit;color:var(--gray-dark);border-radius:12px;padding:0 12px}.correct-option{align-items:center;gap:6px;font-size:13px;font-weight:600;display:flex}.field textarea{border:1px solid var(--line);background:var(--gray-light);min-height:88px;font:inherit;color:var(--gray-dark);resize:vertical;border-radius:12px;padding:10px 12px}.form-errors,.field-error{color:#b42318;font-size:14px;font-weight:600}.form-errors{margin:12px 0 0;padding-left:18px}.text-button:disabled{opacity:.4;cursor:default}.preview-shell{flex-direction:column;align-items:center;display:flex}.preview-shell h2,.preview-shell .modal-lead{align-self:stretch}.phone-preview{border:1px solid var(--line);background:var(--white);border-radius:24px;flex-direction:column;gap:14px;width:min(380px,100%);margin-top:8px;padding:20px;display:flex}.preview-progress{color:var(--sky);font-size:14px;font-weight:700}.preview-choices{flex-direction:column;gap:10px;display:flex}.preview-choice{border:1.5px solid var(--gray-light);background:var(--white);width:100%;min-height:52px;color:var(--gray-dark);text-align:left;cursor:pointer;border-radius:14px;align-items:center;gap:12px;padding:0 14px;display:flex}.preview-choice.is-selected{border-color:var(--sky);background:#e8f5fa}.preview-radio{border:2px solid #8b939a;border-radius:50%;flex:none;width:18px;height:18px}.preview-radio.is-selected{border-color:var(--sky);background:var(--sky)}.preview-feedback{border-radius:14px;padding:14px}.preview-feedback p{color:var(--text-muted);margin-top:4px;font-size:14px}.preview-feedback.is-correct{background:#f3f8e4}.preview-feedback.is-wrong{background:#fdecec}.pending-card{flex-direction:column;align-items:flex-start;gap:8px;padding:28px;display:flex}.pending-card p{color:var(--text-muted)}.auth-screen{background:var(--gray-light);place-items:center;min-height:100vh;padding:32px 16px;display:grid}.auth-card{background:var(--white);width:min(440px,100%);box-shadow:var(--shadow);border-radius:20px;flex-direction:column;align-items:flex-start;gap:8px;padding:40px 36px;display:flex}.auth-card img{width:180px;margin-bottom:12px}.auth-card h1{color:var(--purple);font-size:28px;line-height:1.2}.auth-lead,.auth-note{color:var(--text-muted)}.auth-form{flex-direction:column;gap:14px;width:100%;margin:18px 0 8px;display:flex}.password-field{gap:8px;display:flex}.password-field input{flex:1;min-width:0}.form-error{color:#b42318;margin:0;font-size:14px;font-weight:600}.auth-note{margin-top:18px;font-size:14px}.auth-note a{color:var(--sky);font-weight:600}.performance-section{flex-direction:column;align-items:flex-start;gap:12px;padding:22px 24px;display:flex}.performance-section h2,.performance-section h3{font-size:20px;line-height:1.3}.performance-section h3{margin-top:8px;font-size:16px}.section-note,.missing-list{color:var(--text-muted);font-size:14px}.missing-list{margin:0;padding-left:18px}.performance-filters{flex-wrap:wrap;align-items:flex-end;gap:16px;display:flex}.performance-filter{min-width:160px;color:var(--text-muted);flex-direction:column;flex:0 220px;gap:6px;font-size:13px;font-weight:600;display:flex}.performance-filters .ghost-button{border:1px solid var(--line);background:var(--gray-light);color:var(--gray-dark)}.performance-filters .ghost-button:hover:not(:disabled){border-color:var(--purple);color:var(--purple)}.accuracy-chart{width:100%;margin:0}.accuracy-chart svg{width:100%;height:auto}.accuracy-chart line{stroke:#343a401f}.accuracy-chart polyline{fill:none;stroke:var(--sky);stroke-width:3px;stroke-linejoin:round;stroke-linecap:round}.accuracy-chart circle{fill:var(--lime)}.accuracy-chart text{fill:var(--text-muted);font-size:12px}a.text-button,a.primary-button,a.quick-card{text-decoration:none}a.quick-card{color:inherit}.primary-button:disabled,.ghost-button:disabled{cursor:wait;opacity:.7}.field input:focus-visible,.ghost-button:focus-visible,.primary-button:focus-visible,.menu-item:focus-visible{outline:2px solid var(--sky);outline-offset:2px}@media (width<=900px){.editor-grid,.option-row{grid-template-columns:1fr}}
