    .hasil-wrap {
      max-width: 920px;
      min-height: 100vh;
      margin: 0 auto;
      padding: 2rem 1.25rem 3rem;
      display: flex;
      align-items: center;
      justify-content: center;
      box-sizing: border-box;
    }
    #resultScreen { max-width: 640px; width: 100%; margin-inline: auto; }
    .hasil-card {
      background: #fff;
      border: 1px solid var(--border);
      border-radius: var(--radius-xl);
      box-shadow: var(--shadow-lg);
      padding: 2.2rem 2rem;
      text-align: center;
      position: relative;
      overflow: hidden;
    }
    .hasil-card::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 5px;
      background: var(--gradient);
    }
    .hasil-eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      background: var(--brand-100);
      color: var(--primary-dark);
      font-size: 0.72rem;
      font-weight: 800;
      letter-spacing: 1.4px;
      text-transform: uppercase;
      padding: 0.3rem 0.9rem;
      border-radius: 999px;
      margin-bottom: 0.8rem;
    }
    .hasil-eyebrow svg.lucide { width: 13px; height: 13px; flex-shrink: 0; }
    .hasil-card h1 {
      font-size: 1.6rem;
      font-weight: 800;
      color: var(--text);
      margin-bottom: 0.3rem;
    }
    .hasil-sub {
      color: var(--text-muted);
      font-size: 0.92rem;
      margin-bottom: 1.5rem;
    }
    .hasil-form { display: flex; flex-direction: column; gap: 0.9rem; text-align: left; }
    /* Medallion ikon di atas judul */
    /* ===== Login split-panel ala login ujian/admin ===== */
    #loginScreen.hasil-login { width: 100%; max-width: none; display: grid; grid-template-columns: 1fr 1fr; padding: 0; overflow: hidden; text-align: left; }
    .hasil-brand { background: var(--gradient); color: #fff; padding: 2.4rem 2.2rem; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
    .hasil-brand::before, .hasil-brand::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,0.12); }
    .hasil-brand::before { width: 280px; height: 280px; right: -90px; top: -90px; }
    .hasil-brand::after { width: 200px; height: 200px; left: -60px; bottom: -70px; background: rgba(255,255,255,0.08); }
    .hasil-brand-badge { display: inline-flex; align-items: center; gap: 0.6rem; background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.25); border-radius: 999px; padding: 0.4rem 0.9rem 0.4rem 0.5rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; width: fit-content; position: relative; z-index: 1; }
    .hasil-brand-badge .cap { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,0.2); display: inline-flex; align-items: center; justify-content: center; }
    .hasil-brand-badge .cap svg.lucide { width: 15px; height: 15px; }
    .hasil-brand h2 { font-size: 1.7rem; line-height: 1.2; margin: 1.1rem 0 0.5rem; color: #fff; text-align: left; position: relative; z-index: 1; }
    .hasil-brand > p { color: rgba(255,255,255,0.88); font-size: 0.93rem; margin: 0; position: relative; z-index: 1; }
    .hasil-features { list-style: none; margin: 1.4rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; position: relative; z-index: 1; }
    .hasil-features li { display: flex; align-items: center; gap: 0.7rem; font-size: 0.88rem; font-weight: 600; color: rgba(255,255,255,0.95); }
    .hasil-features .check { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.25); display: inline-flex; align-items: center; justify-content: center; }
    .hasil-features .check svg.lucide { width: 14px; height: 14px; }
    .hasil-brand-foot { margin-top: 1.8rem; font-size: 0.78rem; color: rgba(255,255,255,0.75); position: relative; z-index: 1; }
    .hasil-side { padding: 2.4rem 2.2rem; display: flex; flex-direction: column; justify-content: center; }
    .hasil-side h2 { text-align: left; font-size: 1.45rem; margin: 0.4rem 0 0.3rem; color: var(--text); }
    .hasil-side .hasil-sub { text-align: left; margin-bottom: 1.2rem; }
    .hasil-side .hasil-links { margin-top: 1rem; }
    /* Animasi masuk login: kartu + isi berjenjang (murni CSS, tanpa pustaka) */
    #loginScreen.hasil-login { animation: hasilCardIn 0.6s cubic-bezier(0.16,1,0.3,1) backwards; }
    .hasil-brand > *, .hasil-side > * { animation: hasilIn 0.55s ease-out backwards; }
    .hasil-brand > *:nth-child(5), .hasil-side > *:nth-child(5) { animation-delay: 0.32s; }
    @keyframes hasilCardIn {
      from { opacity: 0; transform: translateY(24px) scale(0.98); }
      to { opacity: 1; transform: none; }
    }
    @keyframes hasilIn {
      from { opacity: 0; transform: translateY(16px); }
      to { opacity: 1; transform: none; }
    }
    @media (prefers-reduced-motion: reduce) {
      #loginScreen.hasil-login, .hasil-brand > *, .hasil-side > * { animation: none !important; }
    }
    /* Field NIS dengan floating label + ikon kiri di dalam kolom */
    .hasil-field { position: relative; }
    .hasil-input {
      width: 100%;
      padding: 0.7rem 1rem 0.7rem 3rem;
      border: 1.5px solid var(--border);
      border-radius: 999px;
      font-size: 0.95rem;
      min-height: 46px;
      line-height: 1.5;
      outline: none;
    }
    .hasil-input::placeholder { color: transparent; }
    .hasil-input:hover { border-color: var(--brand-200); }
    .hasil-input:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.14);
    }
    .hasil-input-icon {
      position: absolute;
      left: 1rem;
      top: 50%;
      transform: translateY(-50%);
      width: 20px;
      height: 20px;
      max-width: 20px;
      max-height: 20px;
      color: var(--text-muted);
      pointer-events: none;
    }
    .hasil-field:focus-within .hasil-input-icon { color: var(--primary); }
    .hasil-floating-label {
      position: absolute;
      left: 3rem;
      top: 50%;
      z-index: 1;
      transform: translateY(-50%);
      padding: 0 0.35rem;
      color: var(--text-muted);
      font-size: 0.9rem;
      font-weight: 500;
      pointer-events: none;
      background: #fff;
      transition: top 0.2s ease, transform 0.2s ease, color 0.2s ease, font-size 0.2s ease;
    }
    .hasil-input:focus + .hasil-floating-label,
    .hasil-input:not(:placeholder-shown) + .hasil-floating-label {
      top: 0;
      transform: translateY(-50%);
      color: var(--primary);
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 0.8px;
      text-transform: uppercase;
    }
    /* (Button hasil pindah ke css/style.css) */
    .hasil-btn:disabled { opacity: 0.6; cursor: wait; }
    #loginScreen .hasil-btn { font-weight: 500; }
    .hasil-error {
      position: absolute;
      z-index: 3;
      left: 0.75rem;
      bottom: calc(100% + 0.55rem);
      width: max-content;
      max-width: calc(100% - 1.5rem);
      display: none;
      align-items: flex-start;
      gap: 0.55rem;
      margin: 0;
      padding: 0.7rem 0.9rem;
      font-size: 0.85rem;
      font-weight: 600;
      background: var(--danger-100);
      color: var(--danger-700);
      border: 1px solid #fecaca;
      border-radius: 12px;
      text-align: left;
      animation: toastIn 0.22s ease;
    }
    .hasil-error.show { display: flex; }
    .hasil-error svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; }
    @keyframes toastIn {
      from { opacity: 0; transform: translateY(-4px); }
      to { opacity: 1; transform: none; }
    }
    .hasil-links {
      display: flex;
      gap: 0.6rem;
      justify-content: center;
      flex-wrap: nowrap;
      margin-top: 1.4rem;
      font-size: 0.86rem;
    }
    .hasil-links a {
      flex: 1 1 0;
      min-width: 0;
      display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
      color: var(--primary-dark);
      font-weight: 800;
      font-size: 0.8rem;
      text-decoration: none;
      padding: 0.55rem 0.9rem;
      min-height: 40px;
      background: #fff;
      border: 1.5px solid var(--border);
      border-radius: 999px;
      transition: background 0.2s;
      white-space: nowrap;
    }
    .hasil-links a:hover { background: var(--brand-50); }
    .hasil-links a { display: inline-flex; align-items: center; gap: 0.4rem; }
    .hasil-links a svg.lucide { width: 15px; height: 15px; flex-shrink: 0; }
    /* HP: tombol aksi + link tetap sebaris (tidak menumpuk vertikal) */
    @media (max-width: 480px) {
      .hasil-card { padding: 1.8rem 1rem; }
      .hasil-actions { flex-wrap: nowrap; justify-content: center; }
      .hasil-actions .hasil-btn, .hasil-actions .hasil-ghost {
        flex: 0 0 auto;
        min-width: 0;
        font-size: 0;
        gap: 0;
        padding: 0.7rem 0.9rem;
        line-height: 1;
      }
      .hasil-actions .hasil-btn svg.lucide, .hasil-actions .hasil-ghost svg.lucide {
        width: 20px;
        height: 20px;
      }
      .hasil-links { flex-wrap: nowrap; gap: 0.5rem; justify-content: center; }
      .hasil-links a {
        flex: 0 0 auto;
        justify-content: center;
        font-size: 0;
        gap: 0;
        padding: 0.55rem 0.8rem;
      }
      .hasil-links a svg.lucide { width: 18px; height: 18px; }
    }
    /* Login split-panel runtuh 1 kolom di layar kecil (brand disembunyikan) */
    @media (max-width: 720px) {
      #loginScreen.hasil-login { grid-template-columns: 1fr; }
      .hasil-brand { display: none; }
      .hasil-side { padding: 1.8rem 1.4rem; }
      .hasil-side h2 { font-size: 1.35rem; text-align: center; }
      .hasil-side .hasil-sub { text-align: center; }
    }
    /* ===== Kartu nilai ===== */
    #resultScreen { display: none; }
    .nilai-badge {
      display: inline-block;
      padding: 0.35rem 1rem;
      border-radius: 999px;
      font-size: 0.78rem;
      font-weight: 800;
      letter-spacing: 0.6px;
      margin-bottom: 0.6rem;
      border: 1.5px solid currentColor;
    }
    .nilai-badge.tuntas { color: var(--success-700); background: rgba(22, 163, 74, 0.08); }
    .nilai-badge.remedial { color: #92400e; background: rgba(245, 158, 11, 0.12); }
    .nilai-nama { font-size: 1.45rem; font-weight: 800; }
    .nilai-nis {
      color: var(--text-muted);
      font-size: 0.9rem;
      margin-bottom: 1.2rem;
    }
    .nilai-angka {
      font-size: 4rem;
      font-weight: 800;
      line-height: 1;
      background: var(--gradient);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }
    .nilai-detail {
      list-style: none;
      margin: 1.3rem 0 0;
      padding: 0;
      text-align: left;
      border-top: 1px solid var(--border);
    }
    .nilai-detail li {
      display: flex;
      justify-content: space-between;
      gap: 0.75rem;
      padding: 0.65rem 0.2rem;
      font-size: 0.92rem;
      border-bottom: 1px solid var(--border);
    }
    .nilai-detail li span:first-child { color: var(--text-muted); font-weight: 600; }
    .nilai-detail li span:last-child { font-weight: 800; color: var(--primary-dark); }
    .hasil-actions {
      display: flex;
      gap: 0.6rem;
      margin-top: 1.4rem;
      flex-wrap: wrap;
    }
    .hasil-actions .hasil-btn { flex: 1; min-width: 150px; }
    /* (Ghost button + ikon Lucide pindah ke css/style.css) */
    /* ===== Ikon perayaan hasil (trofi / emoticon) ===== */
    .celebration-emoji {
      display: block;
      font-size: clamp(3.5rem, 14vw, 4.5rem);
      line-height: 1;
      margin-bottom: 0.4rem;
    }
    .celebration-emoji:empty { display: none; }
    .celebration-emoji.pop { animation: emoPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }
    .celebration-emoji.sad { animation: emoPop 0.6s ease, crySway 3s ease-in-out 0.6s infinite; }
    @keyframes emoPop {
      0% { transform: scale(0) rotate(-12deg); opacity: 0; }
      60% { transform: scale(1.15) rotate(3deg); opacity: 1; }
      100% { transform: scale(1) rotate(0); }
    }
    @keyframes crySway {
      0%, 100% { transform: translateY(0) rotate(-3deg); }
      50% { transform: translateY(8px) rotate(3deg); }
    }
    @media print {
      .header, .hasil-links, .hasil-actions, .footer { display: none !important; }
      .hasil-wrap { min-height: auto; display: block; padding: 0; }
      .hasil-card { box-shadow: none; }
    }
  