*{box-sizing:border-box}body{margin:0;background:#f7f5ef;color:#292720;font-family:Tahoma,Arial,sans-serif;line-height:1.7}header{background:white;border-bottom:3px solid #c4a65d;box-shadow:0 2px 14px #00000009}.wrap{max-width:1280px;margin:auto;padding:20px}.head{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}h1{font-size:23px;margin:0;color:#756029}h2{font-size:20px;margin:0 0 14px}h3{margin:0 0 12px}small,.muted{color:#777}nav{display:flex;gap:12px;flex-wrap:wrap}a{color:#816722;text-decoration:none}nav a,.btn,button{border:0;border-radius:9px;padding:9px 15px;background:#a8873e;color:white;cursor:pointer;font:inherit;display:inline-block}nav a{background:#f1ebda;color:#5b4c26}.btn.light{background:#eee9db;color:#5d4c22}.btn.danger{background:#b44747}.card{background:white;border:1px solid #eae4d6;border-radius:15px;padding:20px;margin:18px 0;box-shadow:0 4px 18px #00000008}.filters,.form-grid,.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}.stats .card{margin:0}label{display:block;font-weight:bold;font-size:13px;margin:4px 0}input,select,textarea{font:inherit;border:1px solid #ddd5c6;border-radius:8px;padding:10px;width:100%;background:white;color:#292720}textarea{min-height:90px}button:hover,.btn:hover{opacity:.88}.table-scroll{overflow-x:auto}table{border-collapse:collapse;width:100%;min-width:850px}th,td{text-align:right;padding:12px;border-bottom:1px solid #eee}th{background:#f6f1e5;white-space:nowrap}td{font-size:14px}.tag{display:inline-block;border-radius:20px;padding:2px 10px;background:#eee;font-size:12px}.actions{display:flex;gap:6px;flex-wrap:wrap}.notice{padding:12px;border:1px solid #a9d5b1;background:#eaf7ec;border-radius:10px;margin:12px 0}.error{background:#ffeded;border-color:#eab5b5}.form-actions{margin-top:16px;display:flex;gap:10px;align-items:center;flex-wrap:wrap}footer{text-align:center;padding:24px;color:#84754e}hr{border:0;border-top:1px solid #eee;margin:20px 0}.inline{display:inline}.mini{font-size:12px}.section{margin:20px 0}details{margin:12px 0}summary{cursor:pointer;color:#846723;font-weight:bold}@media(max-width:700px){.wrap{padding:12px}.head{align-items:flex-start}h1{font-size:18px}.card{padding:13px}nav a{padding:7px 10px}}
/* V1.2: single-row direct edits */
body:has(.student-list-card) main.wrap{max-width:1580px;width:calc(100% - 28px)}
.student-list-card .table-scroll{overflow-x:auto}
.student-table{min-width:1350px;table-layout:fixed}
.student-table th,.student-table td{padding:9px 7px;vertical-align:middle;font-size:12px;line-height:1.45}
.student-table th:nth-child(1){width:5%}.student-table th:nth-child(2){width:10%}.student-table th:nth-child(3){width:9%}.student-table th:nth-child(4){width:13%}.student-table th:nth-child(5){width:9%}.student-table th:nth-child(6){width:11%}.student-table th:nth-child(7){width:22%}.student-table th:nth-child(8){width:9%}.student-table th:nth-child(9){width:7%}.student-table th:nth-child(10){width:5%}
.student-table .student-name{font-weight:bold;overflow-wrap:anywhere}
.student-table input,.student-table select{padding:7px 5px;font-size:12px;border-radius:7px;width:100%;height:35px;min-width:0}
.student-table .last-action{font-size:11px;color:#71684f;margin-top:4px;max-height:36px;overflow:hidden;overflow-wrap:anywhere}
.student-table .meta-cell{font-size:11px;overflow-wrap:anywhere}
.student-table .controls{text-align:center}.student-table .controls button{padding:7px 9px;font-size:12px}
.student-table .history-link{display:block;font-size:11px;margin-top:5px}
.student-table tbody tr:hover{background:#fcfaf5}
@media(max-width:700px){body:has(.student-list-card) main.wrap{width:100%;padding:10px}}
