    :root {
      --bg: #ffffff;
      --bg-alt: #f7f7f7;
      --fg: #1a1a1a;
      --muted: #6b6b6b;
      --border: #dddddd;
      --accent: #1a56db;
      color-scheme: light;
    }

    @media (prefers-color-scheme: dark) {
      :root:not([data-theme="light"]) {
        --bg: #121212;
        --bg-alt: #1b1b1b;
        --fg: #e9e9e9;
        --muted: #a3a3a3;
        --border: #333333;
        --accent: #7ba1ff;
        color-scheme: dark;
      }
    }

    :root[data-theme="dark"] {
      --bg: #121212;
      --bg-alt: #1b1b1b;
      --fg: #e9e9e9;
      --muted: #a3a3a3;
      --border: #333333;
      --accent: #7ba1ff;
      color-scheme: dark;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-padding-top: env(safe-area-inset-top, 0px);
    }

    body {
      margin: 0;
      padding: 0;
      font-family: Arial, Helvetica, system-ui, sans-serif;
      font-size: 16px;
      line-height: 1.6;
      background: var(--bg);
      color: var(--fg);
    }

    h1, h2, h3 {
      font-family: inherit;
      font-weight: 700;
      margin: 0 0 8px;
    }

    p {
      margin: 0 0 10px;
    }

    a {
      color: var(--accent);
    }

    img {
      max-width: 100%;
    }

    ul {
      margin: 0;
      padding: 0;
      list-style: none;
    }

    :focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 2px;
    }

    body::before {
      content: "";
      position: fixed;
      inset: 0 0 auto;
      height: env(safe-area-inset-top, 0px);
      z-index: 10;
      background: var(--bg);
    }

    .wrap {
      max-width: 880px;
      margin-inline: auto;
      padding-left: max(16px, env(safe-area-inset-left, 0px));
      padding-right: max(16px, env(safe-area-inset-right, 0px));
    }

    header {
      position: sticky;
      top: env(safe-area-inset-top, 0px);
      z-index: 9;
      background: var(--bg);
      border-bottom: 1px solid var(--border);
    }

    .header-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding-block: 14px;
      flex-wrap: wrap;
    }

    .brand {
      font-weight: 700;
      font-size: 1.05rem;
    }

    nav {
      display: flex;
      gap: 16px;
      flex-wrap: wrap;
    }

    nav a {
      font-size: 0.92rem;
      text-decoration: none;
      color: var(--fg);
    }

    nav a:hover {
      text-decoration: underline;
    }

    section {
      border-bottom: 1px solid var(--border);
    }

    section:last-of-type {
      border-bottom: none;
    }

    section.alt {
      background: var(--bg-alt);
    }

    section > .wrap {
      padding-block: 36px;
    }

    h2 {
      font-size: 1.4rem;
      margin-bottom: 6px;
    }

    .lede {
      color: var(--muted);
      margin-bottom: 20px;
      max-width: 65ch;
    }

    .info-list {
      margin-bottom: 4px;
    }

    .info-list li {
      margin-bottom: 4px;
    }

    .info-list b {
      font-weight: 700;
    }

    /* Wali Kelas & Kepala Jurusan */
    .people {
      display: flex;
      flex-wrap: wrap;
      gap: 28px;
    }

    .person {
      display: flex;
      gap: 14px;
      align-items: center;
      max-width: 320px;
    }

    .person img {
      width: 72px;
      height: 72px;
      object-fit: cover;
      border: 1px solid var(--border);
      flex-shrink: 0;
    }

    .person-role {
      font-size: 0.85rem;
      color: var(--muted);
    }

    .person-name {
      font-weight: 700;
    }

    /* Siswa */
    .toolbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
      margin-bottom: 18px;
    }

    #studentSearch {
      padding: 8px 10px;
      border: 1px solid var(--border);
      background: var(--bg);
      color: var(--fg);
      font-family: inherit;
      font-size: 0.92rem;
      min-width: 220px;
    }

    .count {
      font-size: 0.88rem;
      color: var(--muted);
    }

    .student-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
      gap: 18px 14px;
    }

    .student {
      text-align: center;
      min-width: 0;
    }

    .student img {
      width: 68px;
      height: 68px;
      border-radius: 50%;
      object-fit: cover;
      border: 1px solid var(--border);
      display: block;
      margin: 0 auto 8px;
    }

    .student-name {
      font-size: 0.86rem;
      overflow-wrap: break-word;
    }

    .student-empty {
      grid-column: 1 / -1;
      text-align: center;
      color: var(--muted);
      padding: 24px 0;
    }

    /* Materi Belajar */
    .topic-list {
      display: flex;
      flex-direction: column;
      gap: 0;
    }

    .topic {
      display: block;
      padding: 14px 0;
      border-top: 1px solid var(--border);
      text-decoration: none;
      color: var(--fg);
    }

    .topic:first-child {
      border-top: none;
    }

    .topic-title {
      font-weight: 700;
    }

    .topic-title::after {
      content: " ↗";
      font-weight: 400;
      color: var(--muted);
    }

    .topic:hover .topic-title {
      text-decoration: underline;
    }

    .topic-desc {
      color: var(--muted);
      font-size: 0.92rem;
    }

    footer {
      font-size: 0.85rem;
      color: var(--muted);
    }

    footer .wrap {
      padding-block: 20px;
      display: flex;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
    }