
    :root { --ink:#18332e; --muted:#627a70; --green:#14664e; --line:#dce9e1; --cream:#f5f8f3; }
    * { box-sizing:border-box; }
    body { font-family:Prompt,"DM Sans",sans-serif; color:var(--ink); }
    .shell { width:100%; min-height:100%; background:radial-gradient(circle at 95% 0%,#e2f2e7 0,transparent 34%),#f5f8f3; }
    .surface { background:#fff; border:1px solid var(--line); border-radius:20px; box-shadow:0 10px 28px rgba(24,51,46,.045); }
    .field { min-width:0; width:100%; background:#fff; border:1px solid #cbdcd2; border-radius:10px; padding:10px 12px; color:var(--ink); }
    .field:focus,button:focus-visible,.row-input:focus { outline:3px solid #88d8b2; outline-offset:2px; }
    .primary { background:#14664e; color:white; border-radius:10px; padding:10px 18px; font-weight:600; }
    .primary:hover { background:#10543f; }
    .nav-button { padding:12px 18px; border-radius:11px; font-weight:600; color:#496a5d; }
    .nav-button.active { background:#14664e; color:white; }
    .table-wrap { width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; border-radius:0 0 16px 16px; }
    table { width:100%; border-collapse:separate; border-spacing:0; min-width:690px; }
    th { text-align:left; font-size:13px; color:#537164; font-weight:600; background:#f1f7f2; }
    th,td { padding:13px 15px; border-bottom:1px solid #e9f0eb; vertical-align:middle; }
    tr:last-child td { border-bottom:0; }
    .row-input { width:100%; min-width:65px; border:1px solid #cbdcd2; border-radius:8px; padding:7px; background:white; }
    .action { color:#14664e; font-weight:600; padding:6px; border-radius:6px; white-space:nowrap; }
    .danger { color:#ad4538; }
    .chart-box { height:275px; position:relative; }
    .staff-chart-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
    .staff-chart-card { min-width:0; }
    @media(max-width:760px) { .staff-chart-grid { grid-template-columns:1fr; } }
    .student-summary-table { width:100%; min-width:760px; table-layout:fixed; border-collapse:separate; border-spacing:0; background:#fff; overflow:hidden; }
    .student-summary-table th, .student-summary-table td { border-right:1px solid #b8ced0; border-bottom:1px solid #b8ced0; text-align:center; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .student-summary-table th:first-child, .student-summary-table td:first-child { border-left:1px solid #b8ced0; }
    .student-summary-table th { font-size:clamp(10px, 1.1vw, 13px); padding:10px 7px; line-height:1.25; }
    .student-summary-table td { font-size:clamp(11px, 1.2vw, 14px); padding:11px 7px; line-height:1.25; }
    .student-summary-table thead tr:first-child th { background:#b9ddec; color:#18332e; font-weight:700; }
    .student-summary-table thead tr:nth-child(2) th { background:#d8edf4; color:#244a4d; }
    .student-summary-table thead tr:nth-child(3) th { background:#eef7f8; color:#31585b; }
    .student-summary-table tbody tr:nth-child(even) td { background:#f7fbfa; }
    .student-summary-table tbody tr:hover td { background:#edf7f1; }
    .student-summary-table tbody td:first-child { font-weight:600; color:#31584d; background:#f1f7f3; }
    .student-summary-table tfoot td { background:#c4e5f1; color:#18332e; font-weight:700; padding-top:12px; padding-bottom:12px; }
    .student-summary-table td[contenteditable="true"] { cursor:text; transition:background .15s, box-shadow .15s; }
    .student-summary-table td[contenteditable="true"]:focus { outline:2px solid #63b99a; outline-offset:-2px; background:#fffdf2; box-shadow:inset 0 0 0 2px #fff; }
    .student-summary-table col { width: auto; }
    .student-summary-table th:last-child, .student-summary-table td:last-child { min-width:0; }
    .student-summary-table th, .student-summary-table td { width:auto; }
    #staff-summary-table tbody tr:nth-last-child(-n+2) td { background:#c4e5f1; color:#18332e; font-weight:700; }
    #staff-summary-table tbody tr:not(:nth-last-child(-n+2)) td:first-child { text-align:left; }
    [hidden] { display:none!important; }
    .viewer-mode #student-form, .viewer-mode #staff-form { display:none!important; }
    .viewer-mode [contenteditable="true"] { cursor:default!important; }
    .viewer-mode .action { display:none!important; }
    .access-panel { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
    .access-panel .field { width:auto; min-width:170px; }
    @media(max-width:640px) {
      .student-summary-table { min-width:760px; }
      .student-summary-table th, .student-summary-table td { padding:9px 5px; }
      .chart-box { height:230px; }
    }
  