main{width:min(1100px,calc(100% - 32px))}.record{border:1px solid #e0d4f0;border-radius:16px;padding:20px;margin:16px 0}.record h3{margin:0 0 12px;font-size:22px;overflow-wrap:anywhere}.record dl{display:grid;grid-template-columns:180px 1fr;gap:8px 20px}.record dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.pagination{display:flex;flex-wrap:wrap;gap:12px}#count{color:#6e627b}@media(max-width:600px){.record{padding:16px}.record dl{display:block}.record dd{margin-bottom:16px}nav{flex-wrap:wrap}}
.admin-main{background:transparent;border:0;box-shadow:none;padding:0;margin-top:32px}.list-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:32px}.list-heading h2{margin-bottom:8px}.list-heading button{font-size:16px;flex-shrink:0}#items{display:grid;grid-template-columns:1fr 1fr;gap:20px}.record{margin:0;background:white;padding:24px;min-width:0}.record dl{grid-template-columns:130px minmax(0,1fr);font-size:16px;line-height:1.6}.record h3{font-size:24px}.record dt{font-size:14px}.pagination{margin-top:24px}#count{font-size:15px;margin:0 0 20px}#status:empty{display:none}
@media(max-width:850px){#items{grid-template-columns:1fr}}
@media(max-width:600px){.record dl{display:block}.list-heading{align-items:flex-start;flex-direction:column;margin-bottom:20px}.list-heading button{width:100%}.record{padding:20px}.admin-main h1{font-size:28px}.pagination button{flex:1}}
#student-editor,#credentials{margin:20px 0}#issued-password{font-family:monospace;overflow-wrap:anywhere;user-select:all}.student-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}.student-actions button{font-size:14px}#create-student{margin-bottom:20px}#student-form{display:grid;grid-template-columns:1fr 1fr;gap:12px 20px}#student-form input{margin-bottom:0}@media(max-width:600px){#student-form{grid-template-columns:1fr}}

#student-form-status{grid-column:1 / -1;margin:0;overflow-wrap:anywhere}#student-form input[readonly]{background:#f1edf6;color:#736980}

#items.trial-list{display:block}.trial-record{margin-bottom:12px;padding:0}.trial-record summary{display:grid;grid-template-columns:minmax(140px,1fr) minmax(120px,.7fr) minmax(100px,.7fr) auto;gap:14px;align-items:center;cursor:pointer;padding:20px;list-style:none}.trial-record summary:before{content:'+';font-weight:700;color:#6410ed;grid-column:1;grid-row:1;margin-left:-12px}.trial-record[open] summary:before{content:'−'}.trial-record summary strong{padding-left:8px;grid-column:1;grid-row:1;overflow-wrap:anywhere}.trial-record summary .badge{margin:0}.trial-date,.trial-courses{font-size:14px;color:#736980}.trial-record>dl,.trial-editor{margin:0;padding:0 24px 24px}.trial-editor fieldset{border:0;margin:0;padding:0;display:grid;gap:14px;grid-template-columns:1fr 1fr;min-width:0}.trial-editor textarea{width:100%;resize:vertical;min-height:90px;font:inherit;color:inherit;border:1px solid #b9a7d1;border-radius:10px;padding:12px;display:block;margin-top:6px}.trial-editor label:has(textarea),.trial-editor .student-actions,.trial-editor .small{grid-column:1 / -1}.trial-editor input{margin-bottom:0}.trial-editor [role=status]{margin:12px 0 0;overflow-wrap:anywhere}#trial-controls select,.trial-editor select{width:100%;font:inherit;color:inherit;background:white;border:1px solid #b9a7d1;border-radius:10px;padding:12px;min-height:48px;margin-top:6px}#trial-filters{display:flex;gap:16px;align-items:end;flex-wrap:wrap}#trial-filters label:first-child{flex:2;min-width:200px}#trial-filters label:nth-child(2){flex:1;min-width:170px}#trial-filters input{margin-bottom:0}.trial-tabs{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:20px}.trial-tabs .badge{margin:0}.trial-record>dl{padding-top:12px;border-top:1px solid #eee5fc}@media(max-width:700px){.trial-record summary{grid-template-columns:1fr auto}.trial-record summary strong{grid-column:1 / -1}.trial-record summary .badge{grid-column:2;grid-row:2 / 4}.trial-date,.trial-courses{grid-column:1}.trial-editor fieldset{grid-template-columns:1fr}#trial-filters button{flex:1}}

#items.student-list{display:block}.student-table-scroll{overflow-x:auto;background:white;border:1px solid #e7dff0;border-radius:16px}.student-table{width:100%;border-collapse:collapse;text-align:left;font-size:15px}.student-table caption{text-align:left;padding:18px 20px;font-weight:600;font-size:17px}.student-table td,.student-table th{padding:16px 14px;border-bottom:1px solid #ece5f5;vertical-align:top}.student-table th{font-weight:600;color:#736980;white-space:nowrap}.student-table td:first-child{font-weight:600;min-width:140px}.student-table td:nth-child(2){overflow-wrap:anywhere;min-width:140px}.student-table .student-money{white-space:nowrap}.student-debt{color:#ad283b;font-weight:700}.student-debt-label{display:block;font-weight:400;font-size:12px}.student-table-actions{min-width:220px}.student-table-actions>a,.student-table-actions>button{display:inline-block;margin:0 6px 8px 0;font-size:14px;min-height:40px;padding:8px 10px;border:1px solid #d9cbed;border-radius:8px;text-decoration:none}.student-table-actions summary{cursor:pointer;font-size:14px}.student-table-actions details button{display:block;font-size:14px;margin-top:8px}.student-table-scroll>p{padding:20px}#student-filters{display:flex;gap:14px;align-items:end;flex-wrap:wrap}#student-filters label:first-child{flex:2;min-width:200px}#student-filters label{flex:1;min-width:160px}#student-filters input{margin-bottom:0}#student-filters select{font:inherit;width:100%;color:inherit;background:white;border:1px solid #b9a7d1;border-radius:10px;padding:12px;min-height:48px;margin-top:6px}@media(max-width:700px){#student-filters button{flex:1}}

#student-form select{display:block;width:100%;box-sizing:border-box;font:inherit;color:inherit;background:white;border:1px solid #b9a7d1;border-radius:10px;padding:12px;min-height:48px;margin-top:6px}

#home-calendar.schedule-main{padding:0;max-width:none;margin:0;width:100%}#home-calendar .panel{margin-top:16px}#overview{display:block}#overview[hidden]{display:none}#admin-homework{margin-top:28px}#recent-materials{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.home-material-card{border:1px solid #e5dcf3;border-radius:12px;padding:16px;min-width:0}.home-material-card h3{font-size:18px;margin:0 0 8px;overflow-wrap:anywhere}.home-material-card p{margin:8px 0}.home-material-card a{display:inline-block;margin-top:8px}#management[hidden]{display:none}@media(max-width:700px){#recent-materials{grid-template-columns:1fr}}

#quick-payment-dialog{width:min(520px,calc(100vw - 40px));box-sizing:border-box;max-height:90vh;overflow:auto;border:1px solid #d8c9ee;border-radius:18px;padding:24px;color:#321653;background:white}#quick-payment-dialog::backdrop{background:#24103a66}#quick-payment-form{display:grid;gap:12px}#quick-payment-form label{display:grid;gap:6px}#quick-payment-form input,#quick-payment-form select{width:100%;box-sizing:border-box;font:inherit;color:inherit;background:white;border:1px solid #b9a7d1;border-radius:10px;padding:12px;min-height:44px}#quick-payment-form p{margin:0}

.calendar-heading{display:grid;grid-template-columns:minmax(220px,1fr) max-content max-content;gap:12px;align-items:center;margin:24px 0 12px}
.calendar-heading h2{margin:0;font-size:22px;line-height:1.3}
.calendar-heading>button,.calendar-heading>a{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:48px;margin:0;padding:10px 16px;border:1px solid #d8c9ee;border-radius:10px;background:white;font-size:14px;line-height:20px;white-space:nowrap;text-decoration:none}
.calendar-heading>a:hover{background:#f5efff}
@media(max-width:850px){.calendar-heading{grid-template-columns:repeat(2,minmax(0,1fr))}.calendar-heading h2{grid-column:1/-1}.calendar-heading>button,.calendar-heading>a{width:100%;white-space:normal;text-align:center}}
@media(max-width:480px){.calendar-heading{grid-template-columns:1fr}}

.student-directory-tabs{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:20px}.student-directory-tabs button[aria-pressed=true]{background:#eee4ff;border-color:#bca0eb;color:#5410c9}.student-delete-dialog{width:min(560px,calc(100vw - 32px));max-height:90vh;overflow:auto;box-sizing:border-box;padding:24px;border:1px solid #dfc5cd;border-radius:16px;background:white;color:#321653}.student-delete-dialog::backdrop{background:#24103a66}.student-delete-dialog dl{display:grid;grid-template-columns:1fr 1fr;gap:8px}.student-delete-dialog dd{margin:0}.student-delete-dialog input{display:block;width:100%;box-sizing:border-box;margin:8px 0 16px}.student-delete-dialog button{min-height:44px;margin-top:12px}.student-delete-button{color:#a52036!important;border-color:#dca6b0!important}.student-delete-warning{color:#962339}

.student-information-dialog{width:min(620px,calc(100vw - 32px));max-height:90vh;overflow:auto;box-sizing:border-box;padding:24px;border:1px solid #d8c9ee;border-radius:16px;background:white;color:#321653}.student-information-dialog::backdrop{background:#24103a66}.student-information-dialog h2{margin-top:0}.student-information-dialog h3{font-size:17px;margin:20px 0 12px}.student-information-dialog dl{display:grid;grid-template-columns:160px minmax(0,1fr);gap:8px 16px;margin:0}.student-information-dialog dt{color:#736980;font-size:14px}.student-information-dialog dd{margin:0;overflow-wrap:anywhere}.student-information-dialog button{min-height:44px}.student-information-dialog>button{margin-top:20px}@media(max-width:480px){.student-information-dialog dl{grid-template-columns:1fr;gap:4px}.student-information-dialog dd{margin-bottom:10px}}
