.personal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.personal-grid>.card{padding:24px}.personal-grid h2{margin:0 0 20px}.personal-grid button{margin:8px 8px 8px 0}.personal-grid small{display:block}.personal-grid ul{padding-left:20px}.personal-grid li{margin:12px 0}.personal-toolbar{padding:20px;margin-bottom:20px}.personal-toolbar input{max-width:540px}.personal-grid .table-scroll{margin-top:20px}@media(max-width:850px){.personal-grid{grid-template-columns:1fr}.personal-grid>.card{padding:18px}}
.personal-grid>.card{min-width:0;overflow-wrap:anywhere}.personal-grid .table-scroll{max-width:100%;overflow-x:auto}@media(max-width:850px){.personal-grid{grid-template-columns:minmax(0,1fr)}}
.assigned-history{padding:16px;min-width:0}.assigned-history h3{margin:0 0 16px}#assigned-students>tbody>tr>td:nth-child(5),#assigned-students>tbody>tr>td:nth-child(6){white-space:nowrap}#assigned-students small{display:block}#assigned-table{max-width:100%;overflow-x:auto}#assigned-students [hidden]{display:none}
#assigned-students{table-layout:fixed;min-width:1050px;white-space:normal}#assigned-students>thead th,#assigned-students>tbody>tr>td{padding:14px 10px}#assigned-students>thead th:first-child{width:20%}#assigned-students>thead th:nth-child(2){width:12%}#assigned-students>thead th:nth-child(3),#assigned-students>thead th:nth-child(4){width:10%}#assigned-students>thead th:nth-child(5),#assigned-students>thead th:nth-child(6){width:12%}#assigned-students>thead th:last-child{width:24%}#assigned-students>thead .table-sort-button{white-space:normal;text-align:left}#assigned-students td{overflow-wrap:anywhere}.assigned-history table{white-space:normal;table-layout:fixed}.assigned-history th,.assigned-history td{padding:12px 8px}
#assigned-students .assigned-actions{display:flex;align-items:center;gap:8px;flex-wrap:nowrap}#assigned-students .assigned-actions button{flex:none;white-space:nowrap;min-height:42px;padding:10px 12px;font-size:12px}
#assigned-students>thead .table-sort-button{min-width:0;max-width:100%;width:100%;gap:8px;letter-spacing:.35px}
.personal-alias{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;margin-bottom:18px;border:1px solid var(--line);border-radius:12px;background:var(--surface-raised)}.personal-alias>div{min-width:0}.personal-alias small{margin-bottom:6px;color:var(--muted)}.personal-alias strong{display:block;overflow-wrap:anywhere}.personal-alias button{flex-shrink:0;margin:0}@media(max-width:500px){.personal-alias{align-items:flex-start;flex-direction:column;gap:10px}}
/* Compact identity/access summaries; other personnel cards keep their layout. */
.personal-grid>.personal-summary-card{padding:14px 16px;display:flex;flex-direction:column;gap:10px}
.personal-summary-heading{display:flex;align-items:center;gap:10px;min-width:0}
.personal-summary-heading h2{margin:0;font-size:16px;line-height:1.35;letter-spacing:-.2px;min-width:0}
.personal-summary-icon{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:9px;color:var(--selection-text);background:var(--surface-raised)}
.personal-summary-icon svg{width:18px;height:18px}
.personal-summary-heading .badge{margin-left:auto;flex:none;font-size:12px}
.personal-summary-data{display:grid;gap:10px 16px;margin:0;min-width:0}
.personal-summary-contacts{grid-template-columns:1fr 1fr 1.5fr}
.personal-summary-account{grid-template-columns:repeat(2,minmax(0,1fr))}
.personal-summary-data>div{min-width:0}
.personal-summary-data dt{color:var(--muted);font-size:12px;line-height:1.4;margin:0 0 4px}
.personal-summary-data dd{margin:0;font-size:14px;font-weight:600;line-height:1.5;overflow-wrap:anywhere}
.personal-summary-data .personal-summary-empty,.personal-summary-empty{font-weight:400;color:var(--muted)}
.personal-summary-card .personal-summary-message,.personal-summary-card .personal-summary-notes{margin:0;font-size:13px;line-height:1.5}
.personal-summary-notes{white-space:pre-wrap;overflow-wrap:anywhere;border-left:2px solid var(--line);padding-left:10px;color:var(--muted)}
.personal-summary-card .personal-summary-help{margin:0;color:var(--muted);font-size:12px;line-height:1.5}
.personal-summary-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin-top:auto;padding-top:12px;border-top:1px solid var(--line)}
.personal-summary-card .personal-summary-actions button{margin:0;min-height:42px;max-width:100%;font-size:12px;line-height:1.4;padding:9px 12px}
.personal-summary-actions .text-button{text-align:left;justify-content:flex-start;padding-left:6px;padding-right:6px}
@media(max-width:1150px){.personal-summary-contacts{grid-template-columns:repeat(2,minmax(0,1fr))}.personal-summary-email{grid-column:1/-1}}
@media(max-width:500px){.personal-grid>.personal-summary-card{padding:16px}.personal-summary-heading{flex-wrap:wrap;gap:8px}.personal-summary-heading .badge{font-size:11px}.personal-summary-account{grid-template-columns:1fr}.personal-summary-actions{gap:4px 8px}}
/* Teacher configuration: only the options scroll, never the save actions. */
.personal-teaching-grid,.personal-resource-grid{display:grid;gap:18px;margin-top:18px;grid-template-columns:repeat(3,minmax(0,1fr))}
.personal-resource-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.personal-work-card{display:flex;flex-direction:column;min-width:0;padding:20px;gap:14px;overflow-wrap:anywhere}
.personal-work-heading{display:flex;align-items:center;gap:10px}.personal-work-heading h2{font-size:16px;margin:0;line-height:1.4}
.personal-work-card>.badge{align-self:flex-start;font-size:12px}
.personal-config-name{display:block;font-size:15px;line-height:1.5;margin-bottom:4px}
.personal-work-card .personal-work-caption{display:block;margin:0;font-size:12px;line-height:1.6;color:var(--muted)}
.personal-config-data{margin:0;display:grid;gap:12px}.personal-config-data dt{font-size:12px;color:var(--muted);margin-bottom:4px}.personal-config-data dd{margin:0;font-size:13px;line-height:1.5}
.personal-work-total{margin:0;display:flex;align-items:baseline;gap:10px;color:var(--muted);font-size:12px}.personal-work-total strong{font-size:30px;line-height:1.1;color:var(--ink);font-variant-numeric:tabular-nums}
.personal-progress-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0}.personal-progress-grid>div{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 10px;border-radius:8px;background:var(--surface-soft)}.personal-progress-grid dt{font-size:12px;color:var(--muted);line-height:1.4}.personal-progress-grid dd{margin:0;font-size:16px;font-weight:650;font-variant-numeric:tabular-nums}
.personal-work-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;margin-top:auto;padding-top:14px;border-top:1px solid var(--line)}.personal-work-actions button{max-width:100%;min-height:42px;margin:0;padding:9px 12px;font-size:12px;line-height:1.4}.personal-work-actions .text-button{padding-left:4px;padding-right:4px;text-align:left}
.personal-work-card .personal-hours-summary{margin:0;padding:12px;border-radius:9px;background:var(--surface-soft)}.personal-work-card .personal-hours-summary strong{font-size:16px}.personal-work-card .personal-hours-summary small{display:block;font-size:12px;line-height:1.5;margin-top:5px}
.personal-work-details summary{font-size:13px;cursor:pointer;line-height:1.5}.personal-work-details summary:focus-visible{outline:2px solid var(--focus);outline-offset:4px}
.personal-resource-list{list-style:none;padding:0;margin:0;max-height:190px;overflow:auto}.personal-resource-list li{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--line);font-size:13px}.personal-resource-list li:last-child{border-bottom:0}.personal-resource-list li>div{min-width:0}.personal-resource-list strong{font-weight:600}.personal-resource-list small{display:block;margin-top:5px;color:var(--muted);line-height:1.5}.personal-resource-list button{flex:none;font-size:12px}
.personal-payroll-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0}.personal-payroll-summary dt{font-size:12px;color:var(--muted);line-height:1.4}.personal-payroll-summary dd{font-size:25px;font-weight:650;margin:6px 0 0;line-height:1.1;font-variant-numeric:tabular-nums}
.personal-payroll-latest{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;margin:0;padding:10px 12px;background:var(--surface-soft);border-radius:8px;font-size:12px;align-items:center}.personal-payroll-latest>span{color:var(--muted)}.personal-payroll-latest strong{font-size:15px}.personal-payroll-latest small{font-size:11px;font-weight:400}
.pt-alias{padding:14px;margin-bottom:22px;border:1px solid var(--line);border-radius:10px;background:var(--surface-soft)}.pt-alias p{font-size:12px;line-height:1.5;color:var(--muted);margin:8px 0 0}.pt-alias .text-button{padding:5px 0;font-size:12px;min-height:32px}
@media(max-width:1150px){.personal-teaching-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.personal-teaching-grid>[data-personal-card=agenda]{grid-column:1/-1}.personal-work-card{padding:18px}}
@media(max-width:850px){.personal-teaching-grid,.personal-resource-grid{grid-template-columns:minmax(0,1fr)}.personal-teaching-grid>[data-personal-card=agenda]{grid-column:auto}.personal-work-card{padding:16px}.personal-payroll-summary{gap:10px}}
dialog.pt-dialog{width:calc(100% - 32px);max-width:760px;max-height:92vh;max-height:92dvh;padding:0;overflow:hidden}
.pt-dialog>form{display:flex;flex-direction:column;max-height:calc(92vh - 2px);max-height:calc(92dvh - 2px);min-width:0}
.pt-heading{flex:none;padding:24px 26px 20px;border-bottom:1px solid var(--line)}
.pt-heading h2{margin:0 0 12px;font-size:22px;line-height:1.3}.pt-heading>strong{display:block;font-size:14px;overflow-wrap:anywhere;color:var(--selection-text)}.pt-heading p{font-size:13px;line-height:1.5;color:var(--muted);margin:6px 0 0}
.pt-content{padding:22px 26px;overflow-y:auto;overscroll-behavior:contain;min-height:0}
.pt-group{min-width:0;border:0;padding:0;margin:0 0 24px}
.pt-group legend{padding:0;width:100%;font-size:15px;font-weight:700;line-height:1.5}
.pt-group legend span{float:right;font-size:11px;font-weight:500;color:var(--muted);padding:2px 7px;border-radius:5px;background:var(--surface-raised);margin-left:8px}
.pt-group>p{font-size:12px;color:var(--muted);line-height:1.5;margin:7px 0 12px}
.pt-sections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.pt-permits{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}
.pt-choice{display:flex;align-items:center;gap:10px;min-height:52px;min-width:0;padding:12px;border:1px solid var(--line);border-radius:9px;background:var(--surface);cursor:pointer;font-size:14px}
.pt-choice span{overflow-wrap:anywhere}.pt-permits .pt-choice{gap:8px;justify-content:center;padding:10px 6px;font-weight:650}
.pt-choice:hover{background:var(--surface-soft);border-color:var(--muted)}
.pt-choice:has(input:checked){border-color:var(--focus);background:var(--selection);color:var(--selection-text)}
.pt-choice:has(input:focus-visible){outline:2px solid var(--focus);outline-offset:2px}
.pt-dialog input[type=checkbox]{flex:0 0 17px;width:17px;min-width:17px;min-height:17px;height:17px;padding:0;margin:0;accent-color:var(--focus);cursor:pointer}
.pt-dialog input[type=checkbox]:focus-visible{outline:none}
.pt-note{font-size:12px;line-height:1.6;color:var(--muted);margin:0;padding-left:12px;border-left:2px solid var(--line)}
.pt-footer{flex:none;padding:18px 26px 20px;border-top:1px solid var(--line);background:var(--surface-soft)}
.pt-confirm{display:flex;align-items:flex-start;gap:10px;font-size:12px;line-height:1.6;cursor:pointer}.pt-confirm input{margin-top:2px!important}.pt-confirm:has(input:focus-visible){outline:2px solid var(--focus);outline-offset:4px;border-radius:4px}
.pt-footer .error-text{margin:10px 0 0;font-size:13px;max-height:64px;overflow:auto}.pt-footer .error-text:empty{display:none}
.pt-footer .practice-actions{justify-content:flex-end;gap:10px;margin:16px 0 0}.pt-footer button{min-height:44px}
@media(max-width:600px){.pt-heading{padding:20px}.pt-heading h2{font-size:20px}.pt-content{padding:20px}.pt-footer{padding:16px 20px}.pt-permits{grid-template-columns:repeat(4,minmax(0,1fr))}.pt-group legend span{font-size:10px}.pt-sections{grid-template-columns:1fr}.pt-footer .practice-actions button{flex:1}}
@media(max-height:600px){.pt-heading{padding:14px 20px}.pt-heading h2{margin-bottom:6px;font-size:18px}.pt-heading p{display:none}.pt-footer{padding:12px 20px}.pt-footer .practice-actions{margin-top:10px}}
