/* mhs.css - Portal mahasiswa RPL STK St. Yakobus (ringan, lembut, ramah HP) */
:root {
    --ungu: #667eea;
    --ungu-tua: #764ba2;
    --ungu-muda: #eef0ff;
    --hijau: #16a34a;
    --hijau-muda: #e8f7ee;
    --merah: #dc2626;
    --merah-muda: #fdecec;
    --kuning: #b45309;
    --kuning-muda: #fff4e0;
    --teks: #1f2937;
    --teks-redup: #6b7280;
    --garis: #e5e7eb;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--teks);
    background: #f4f5fb;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
}

body.auth {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--ungu) 0%, var(--ungu-tua) 100%) fixed;
    display: flex;
    flex-direction: column;
}

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

/* ───── Halaman autentikasi ───── */
.auth-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1rem;
}

.auth-card {
    background: #fff;
    width: 100%;
    max-width: 480px;
    border-radius: 18px;
    padding: 2rem 1.75rem;
    box-shadow: 0 18px 40px rgba(40, 20, 90, .25);
}

.auth-card .logo { text-align: center; margin-bottom: 1.4rem; }
.auth-card .logo img { width: 68px; height: 68px; object-fit: contain; margin-bottom: .6rem; }
.auth-card .logo h1 { font-size: 1.2rem; font-weight: 700; }
.auth-card .logo p { color: var(--teks-redup); font-size: .9rem; margin-top: .2rem; }

.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.field small { display: block; color: var(--teks-redup); font-size: .78rem; margin-top: .3rem; }

.field input[type=text],
.field input[type=password],
.field input[type=date],
.field input[type=tel],
.field input[type=url],
.field select {
    width: 100%;
    padding: .75rem .85rem;
    font-size: 1rem;
    border: 1.5px solid var(--garis);
    border-radius: 10px;
    background: #fff;
    color: var(--teks);
    transition: border-color .2s, box-shadow .2s;
}

.field input:focus, .field select:focus {
    outline: none;
    border-color: var(--ungu);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, .15);
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
@media (max-width: 520px) { .grid-2 { grid-template-columns: 1fr; gap: 0; } }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .75rem 1.2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    background: var(--ungu);
    color: #fff;
    transition: background .2s, transform .1s, opacity .2s;
}
.btn:hover { background: #5568d8; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-ghost { background: var(--ungu-muda); color: var(--ungu); }
.btn-ghost:hover { background: #e0e4ff; }
.btn-danger-ghost { background: var(--merah-muda); color: var(--merah); }
.btn-danger-ghost:hover { background: #fbd9d9; }
.btn-sm { padding: .45rem .8rem; font-size: .85rem; border-radius: 8px; }

.alert { padding: .8rem 1rem; border-radius: 10px; margin-bottom: 1rem; font-size: .92rem; }
.alert-error { background: var(--merah-muda); color: #991b1b; border: 1px solid #f5b5b5; }
.alert-ok { background: var(--hijau-muda); color: #166534; border: 1px solid #b6e3c5; }
.alert-info { background: var(--ungu-muda); color: #3b4cb8; border: 1px solid #d3d9ff; }

.auth-links { text-align: center; margin-top: 1.1rem; font-size: .9rem; color: var(--teks-redup); }
.auth-links a { font-weight: 600; text-decoration: none; }
.auth-links a:hover { text-decoration: underline; }
.auth-links span { margin: 0 .35rem; }

.captcha-box {
    display: flex;
    align-items: center;
    gap: .7rem;
    background: var(--ungu-muda);
    border-radius: 10px;
    padding: .6rem .85rem;
}
.captcha-box strong { font-size: 1.1rem; white-space: nowrap; color: #3b4cb8; }
.captcha-box input { max-width: 110px; }

/* Kartu kredensial */
.cred-box {
    background: var(--ungu-muda);
    border: 2px dashed var(--ungu);
    border-radius: 14px;
    padding: 1.1rem 1.2rem;
    margin: 1rem 0;
}
.cred-row { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .35rem 0; }
.cred-row .k { color: var(--teks-redup); font-size: .85rem; }
.cred-row .v { font-family: Consolas, 'Courier New', monospace; font-size: 1.25rem; font-weight: 700; letter-spacing: .04em; word-break: break-all; text-align: right; }

/* ───── Footer kredit pengembang ───── */
.credit-login {
    text-align: center;
    padding: 1rem;
    font-size: .8rem;
    color: rgba(255, 255, 255, .8);
}
.credit-login a { color: #fff; font-weight: 600; }

/* ───── Dashboard mahasiswa ───── */
.topbar {
    background: linear-gradient(135deg, var(--ungu) 0%, var(--ungu-tua) 100%);
    color: #fff;
    padding: .85rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 2px 10px rgba(60, 30, 120, .25);
}
.topbar h1 { font-size: 1.05rem; font-weight: 700; }
.topbar .who { font-size: .85rem; opacity: .92; }
.topbar .btn { background: rgba(255, 255, 255, .18); color: #fff; padding: .45rem .9rem; font-size: .85rem; }
.topbar .btn:hover { background: rgba(255, 255, 255, .3); }

.container { max-width: 900px; margin: 0 auto; padding: 1.25rem 1rem 2rem; }

.card {
    background: #fff;
    border-radius: 16px;
    padding: 1.25rem 1.35rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 12px rgba(40, 30, 90, .06);
}
.card h2 { font-size: 1.05rem; margin-bottom: .2rem; }
.card .sub { color: var(--teks-redup); font-size: .88rem; margin-bottom: .9rem; }

.sks { display: inline-block; background: var(--ungu-muda); color: var(--ungu); font-size: .72rem; font-weight: 700; padding: .12rem .55rem; border-radius: 20px; margin-left: .4rem; vertical-align: middle; }

.progress { height: 10px; background: var(--garis); border-radius: 20px; overflow: hidden; margin: .6rem 0 .3rem; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--ungu), var(--ungu-tua)); border-radius: 20px; transition: width .4s; }

details.panduan summary { cursor: pointer; font-weight: 600; color: var(--ungu); }
details.panduan ol { margin: .7rem 0 .2rem 1.2rem; font-size: .9rem; color: #374151; }
details.panduan li { margin-bottom: .3rem; }

.slot { border-top: 1px solid var(--garis); padding: .9rem 0; }
.slot:first-of-type { border-top: none; }
.slot-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; margin-bottom: .5rem; }
.slot-head .nama { font-weight: 600; font-size: .95rem; }

.badge { display: inline-block; font-size: .74rem; font-weight: 700; padding: .15rem .6rem; border-radius: 20px; white-space: nowrap; }
.badge-ok { background: var(--hijau-muda); color: #166534; }
.badge-kosong { background: #f3f4f6; color: var(--teks-redup); }
.badge-lama { background: var(--kuning-muda); color: var(--kuning); }
.badge-kunci { background: var(--ungu-muda); color: #3b4cb8; }

.slot-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.slot-form input[type=url] {
    flex: 1 1 260px;
    min-width: 0;
    padding: .65rem .8rem;
    font-size: .95rem;
    border: 1.5px solid var(--garis);
    border-radius: 10px;
}
.slot-form input[type=url]:focus { outline: none; border-color: var(--ungu); box-shadow: 0 0 0 4px rgba(102, 126, 234, .15); }
.slot-form input[type=url]:disabled { background: #f9fafb; color: var(--teks-redup); }

.slot-info { font-size: .8rem; color: var(--teks-redup); margin-top: .4rem; word-break: break-word; }
.slot-info a { font-weight: 600; }
.slot-pesan { font-size: .85rem; margin-top: .45rem; padding: .5rem .7rem; border-radius: 8px; display: none; }
.slot-pesan.err { display: block; background: var(--merah-muda); color: #991b1b; }
.slot-pesan.ok { display: block; background: var(--hijau-muda); color: #166534; }

details.semester { border: 1px solid var(--garis); border-radius: 12px; padding: .1rem 1rem; margin-top: .6rem; }
details.semester > summary { cursor: pointer; padding: .7rem 0; font-weight: 600; list-style-position: inside; }
details.semester[open] > summary { border-bottom: 1px solid var(--garis); margin-bottom: .2rem; }

.credit-bar {
    background: #0a1c30;
    border-top: 1px solid rgba(255, 255, 255, .07);
    padding: .65rem 0;
    text-align: center;
}

/* ───── Admin: monitoring ───── */
.tabel-wrap { overflow-x: auto; }
table.tabel { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.tabel th, table.tabel td { padding: .6rem .7rem; text-align: left; border-bottom: 1px solid var(--garis); white-space: nowrap; }
table.tabel th { background: #f9fafb; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--teks-redup); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.stat { background: #fff; border-radius: 14px; padding: 1rem; text-align: center; box-shadow: 0 2px 12px rgba(40, 30, 90, .06); }
.stat b { display: block; font-size: 1.7rem; color: var(--ungu); }
.stat span { font-size: .8rem; color: var(--teks-redup); }
.filter-bar { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .9rem; }
.filter-bar input, .filter-bar select { padding: .55rem .75rem; border: 1.5px solid var(--garis); border-radius: 10px; font-size: .9rem; }
.filter-bar input[type=text] { flex: 1 1 200px; }
.paging { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .9rem; }
.paging a, .paging span { padding: .35rem .7rem; border-radius: 8px; background: #fff; border: 1px solid var(--garis); text-decoration: none; font-size: .85rem; }
.paging span.now { background: var(--ungu); color: #fff; border-color: var(--ungu); }

@media (max-width: 520px) {
    .auth-card { padding: 1.5rem 1.2rem; }
    .card { padding: 1.05rem 1rem; }
    .slot-form .btn { flex: 1 1 auto; }
}

/* =====================================================================
   TAHAP 2 - countdown, legenda skor, navigasi bidang, finalisasi
   ===================================================================== */
html { scroll-behavior: smooth; }
.alert-warn { background: #fff7e6; color: #8a4b00; border: 1px solid #ffd9a0; }
.btn-besar { padding: .95rem 2rem; font-size: 1.1rem; border-radius: 14px; }
.btn-final { background: linear-gradient(135deg, #f97316, #e11d48); box-shadow: 0 8px 20px rgba(225, 29, 72, .28); }
.btn-final:hover { background: linear-gradient(135deg, #ea580c, #be123c); }

/* ───── Hero countdown ───── */
.hero { color: #fff; padding: 1.4rem 1rem 1.6rem; position: relative; overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .09); pointer-events: none; }
.hero::before { width: 260px; height: 260px; right: -70px; top: -110px; }
.hero::after { width: 180px; height: 180px; left: -60px; bottom: -90px; }
.hero-jauh     { background: linear-gradient(120deg, #6d28d9, #db2777); }
.hero-dekat    { background: linear-gradient(120deg, #f59e0b, #ef4444); }
.hero-mendesak { background: linear-gradient(120deg, #ef4444, #9f1239); }
.hero-lewat    { background: linear-gradient(120deg, #374151, #7f1d1d); }
.hero-terkirim { background: linear-gradient(120deg, #059669, #14b8a6); }
.hero-isi { max-width: 900px; margin: 0 auto; position: relative; z-index: 1; text-align: center; }
.hero-atas { display: flex; justify-content: center; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .8rem; }
.hero-label { font-weight: 700; font-size: .95rem; letter-spacing: .02em; }
.hero-periode { background: rgba(255, 255, 255, .2); border-radius: 20px; padding: .12rem .75rem; font-size: .78rem; font-weight: 700; }
.hero-besar { font-size: 1.5rem; font-weight: 800; margin: .3rem 0; }
.hero-tgl { font-size: .9rem; opacity: .95; margin-top: .55rem; }
.hero-pesan { font-size: .92rem; margin-top: .75rem; opacity: .97; }
.hitung { display: flex; justify-content: center; gap: .6rem; }
.kotak { background: rgba(255, 255, 255, .17); border: 1px solid rgba(255, 255, 255, .28); border-radius: 14px; min-width: 76px; padding: .6rem .5rem .5rem; }
.kotak b { display: block; font-size: 2.1rem; line-height: 1.1; font-weight: 800; font-variant-numeric: tabular-nums; }
.kotak span { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; opacity: .9; }
.timeline { height: 8px; background: rgba(255, 255, 255, .25); border-radius: 20px; margin: .9rem auto 0; max-width: 560px; overflow: hidden; }
.timeline i { display: block; height: 100%; width: 0; background: #fff; border-radius: 20px; transition: width .6s; }
.hero-mendesak .kotak { animation: denyut 1.6s ease-in-out infinite; }
@keyframes denyut { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .hero-mendesak .kotak { animation: none; } html { scroll-behavior: auto; } }
@media (max-width: 520px) {
    .kotak { min-width: 0; flex: 1; padding: .5rem .2rem .4rem; }
    .kotak b { font-size: 1.6rem; }
    .hero-besar { font-size: 1.2rem; }
}

/* ───── Navigasi bidang (lengket) ───── */
.bidang-nav { position: sticky; top: 0; z-index: 15; display: flex; gap: .45rem; overflow-x: auto; padding: .6rem 1rem; background: rgba(244, 245, 251, .94); border-bottom: 1px solid var(--garis); scrollbar-width: none; }
.bidang-nav::-webkit-scrollbar { display: none; }
.bidang-nav a { flex: 0 0 auto; text-decoration: none; font-size: .82rem; font-weight: 700; color: var(--w); background: #fff; border: 1.5px solid var(--w); border-radius: 20px; padding: .3rem .8rem; white-space: nowrap; transition: background .2s, color .2s; }
.bidang-nav a span { font-weight: 600; opacity: .8; margin-left: .25rem; }
.bidang-nav a:hover, .bidang-nav a.penuh { background: var(--w); color: #fff; }
@media (min-width: 900px) { .bidang-nav { justify-content: center; } }
.kartu-bidang { scroll-margin-top: 64px; }

/* ───── Ringkasan ───── */
.ringkas { display: flex; align-items: center; gap: 1.2rem; }
.cincin { --p: 0; flex: 0 0 auto; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center;
    background: conic-gradient(var(--ungu) calc(var(--p) * 1%), #e5e7eb 0); position: relative; }
.cincin::before { content: ""; position: absolute; inset: 9px; background: #fff; border-radius: 50%; }
.cincin span { position: relative; font-size: 1.25rem; font-weight: 800; color: var(--ungu-tua); }
.ringkas-teks { min-width: 0; }
.ringkas-angka { margin-top: .25rem; font-size: .95rem; }
.periode-info { margin-top: .6rem; background: var(--ungu-muda); border-radius: 10px; padding: .5rem .75rem; font-size: .84rem; color: #3b4cb8; }
@media (max-width: 520px) { .ringkas { flex-direction: column; text-align: center; } }

/* ───── Kartu bidang ───── */
.kartu-kepala { display: flex; align-items: center; gap: .85rem; margin-bottom: .9rem; }
.no-bidang { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; box-shadow: 0 6px 14px rgba(0, 0, 0, .12); }
.kk-teks { flex: 1; min-width: 0; }
.kk-teks h2 { font-size: 1.02rem; line-height: 1.3; margin: 0; }
.kk-teks .sub { margin: .1rem 0 0; }
.pill-hitung { flex: 0 0 auto; background: #f3f4f6; border-radius: 20px; padding: .25rem .75rem; font-weight: 800; font-size: .85rem; color: var(--teks); }

/* ───── Legenda skor 85-100 ───── */
.legenda { --w: var(--ungu); border: 1px solid #e0e3f5; background: #fafaff; border-left: 5px solid var(--w); border-radius: 12px; margin-bottom: .9rem; }
.legenda > summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; padding: .7rem .95rem; list-style: none; }
.legenda > summary::-webkit-details-marker { display: none; }
.lg-judul { font-weight: 800; color: var(--teks); }
.lg-chip { background: var(--w); color: #fff; border-radius: 20px; padding: .1rem .65rem; font-size: .72rem; font-weight: 800; }
.lg-isi { padding: 0 .95rem .85rem; }
.lg-syarat { list-style: none; display: grid; gap: .55rem; margin-bottom: .75rem; }
.lg-syarat li { display: flex; gap: .65rem; align-items: flex-start; }
.lg-ikon { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; background: #fff; display: grid; place-items: center; font-size: 1rem; box-shadow: 0 1px 4px rgba(0, 0, 0, .1); }
.lg-k { display: block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--teks-redup); }
.lg-v { display: block; font-size: .9rem; line-height: 1.45; }
.lg-tips, .lg-turun { font-size: .83rem; border-radius: 9px; padding: .5rem .7rem; margin-top: .45rem; }
.lg-tips { background: #ecfdf5; color: #065f46; }
.lg-turun { background: #fff7e6; color: #8a4b00; }
.lg-sumber { font-size: .72rem; color: var(--teks-redup); margin-top: .5rem; }

/* ───── Slot: keadaan ───── */
.slot { transition: background .6s; border-radius: 10px; }
.slot.berhasil { background: #ecfdf5; }
.slot.bermasalah { background: #fef2f2; box-shadow: inset 3px 0 0 var(--merah); padding-left: .6rem; }

/* ───── Kartu finalisasi ───── */
.final-card { text-align: center; padding: 1.8rem 1.4rem; border: 2px dashed #f9a8d4; background: linear-gradient(180deg, #fff, #fff7fb); }
.final-card.sudah { border: 2px solid #86efac; background: linear-gradient(180deg, #fff, #f0fdf4); }
.final-ikon { font-size: 2.4rem; }
.final-card h2 { font-size: 1.25rem; margin: .2rem 0 .3rem; }
.final-sub { color: var(--teks-redup); font-size: .92rem; }
.final-catatan { font-size: .9rem; max-width: 520px; margin: .5rem auto 0; color: #374151; }
.final-chips { display: flex; justify-content: center; gap: .4rem; flex-wrap: wrap; margin: .8rem 0; }
.fchip { font-size: .78rem; font-weight: 700; border-radius: 20px; padding: .2rem .7rem; }
.fchip.penuh { background: var(--hijau-muda); color: #166534; }
.fchip.sebagian { background: var(--kuning-muda); color: var(--kuning); }
.fchip.kosong { background: #f3f4f6; color: var(--teks-redup); }
.final-peringatan { max-width: 560px; margin: .6rem auto 1.1rem; text-align: left; }
.final-aksi { display: flex; flex-direction: column; align-items: center; gap: .7rem; }
.final-card .slot-pesan { max-width: 560px; margin: .9rem auto 0; text-align: left; }

/* ───── Dialog ───── */
.dialog { border: none; border-radius: 20px; padding: 0; width: min(94vw, 480px); max-height: 92vh; overflow: auto; margin: auto; /* reset global * { margin:0 } menghapus margin:auto bawaan dialog */
    box-shadow: 0 25px 60px rgba(20, 10, 60, .4); }
.dialog::backdrop { background: rgba(20, 10, 50, .55); }
.dlg-isi { padding: 1.5rem 1.4rem 1.2rem; }
.dlg-ikon { font-size: 2.2rem; text-align: center; }
.dlg-isi h3 { text-align: center; font-size: 1.2rem; margin-bottom: .4rem; }
.dlg-isi > p { font-size: .92rem; text-align: center; margin-bottom: .8rem; color: #374151; }
.cek { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; margin: .4rem 0 1rem; cursor: pointer; }
.cek input { margin-top: .2rem; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--ungu); }
.dlg-aksi { display: flex; gap: .6rem; justify-content: flex-end; flex-wrap: wrap; }
.dlg-status { border-radius: 10px; padding: .6rem .8rem; font-size: .88rem; margin-bottom: .7rem; background: var(--ungu-muda); color: #3b4cb8; }
.dlg-status.err { background: var(--merah-muda); color: #991b1b; }
.dlg-status.ok { background: var(--hijau-muda); color: #166534; }
.dlg-daftar { margin: 0 0 .8rem 1.2rem; font-size: .85rem; color: #991b1b; max-height: 160px; overflow: auto; }

/* ───── Toast ───── */
.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 30px); background: #111827; color: #fff; padding: .6rem 1.1rem; border-radius: 30px;
    font-size: .88rem; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 50; max-width: 90vw; }
.toast.tampil { opacity: .96; transform: translate(-50%, 0); }

/* ───── Foto & identitas ───── */
.foto-unggah { display: flex; gap: 1rem; align-items: flex-start; }
.foto-frame { flex: 0 0 auto; width: 120px; height: 160px; border-radius: 12px; border: 2px dashed #b9c0ee; background: linear-gradient(135deg, #f3f4ff, #fff);
    display: grid; place-items: center; overflow: hidden; cursor: pointer; position: relative; text-align: center; color: var(--teks-redup); font-size: .78rem; }
.foto-frame img { display: none; width: 100%; height: 100%; object-fit: cover; }
.foto-frame.ada { border: 3px solid var(--ungu); }
.foto-frame.ada img { display: block; }
.foto-frame.ada .foto-ph { display: none; }
.foto-aksi { min-width: 0; }
.foto-aksi small { display: block; margin: .5rem 0 0; color: var(--teks-redup); font-size: .78rem; }
.foto-pesan { font-size: .82rem; margin-top: .4rem; }
.foto-pesan.ok { color: #166534; }
.foto-pesan.err { color: #991b1b; font-weight: 600; }
.hp-info.ok { color: #166534; }
.hp-info.err { color: #991b1b; font-weight: 600; }
.hp-info a { color: #128c7e; font-weight: 700; }
@media (max-width: 420px) { .foto-unggah { flex-direction: column; align-items: center; text-align: center; } }

.identitas { display: flex; gap: 1.2rem; align-items: flex-start; }
.id-foto { flex: 0 0 auto; text-align: center; }
.id-foto .foto-id { width: 120px; height: 160px; border-radius: 12px; overflow: hidden; border: 3px solid var(--ungu); box-shadow: 0 6px 16px rgba(60, 40, 140, .22); background: #eef0ff; display: grid; place-items: center; font-size: 3rem; }
.id-foto .foto-id.kosong { border: 3px dashed var(--merah); animation: denyut 1.8s ease-in-out infinite; }
.id-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.id-foto .btn { margin-top: .55rem; }
.id-info { flex: 1; min-width: 0; }
.id-info h2 { font-size: 1.15rem; margin-bottom: .15rem; }
.id-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .65rem 1rem; margin-top: .75rem; }
.id-item .k { display: block; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--teks-redup); }
.id-item .v { display: block; font-size: .92rem; word-break: break-word; }
.btn-wa { background: linear-gradient(135deg, #25d366, #128c7e); color: #fff; }
.btn-wa:hover { background: linear-gradient(135deg, #1fb855, #0f7a6c); }
.id-peringatan { margin-top: .7rem; }
@media (max-width: 560px) { .identitas { flex-direction: column; align-items: center; text-align: center; } .id-grid { text-align: left; width: 100%; } }

/* Dashboard mahasiswa: bilah navigasi bidang yang lengket, topbar tidak */
.topbar.statis { position: static; }

/* ───── Kolom wajib ───── */
.wajib { color: var(--merah); font-weight: 800; }
.catatan-wajib { font-size: .82rem; color: var(--teks-redup); margin: 0 0 .9rem; }
.field.salah input, .field.salah select { border-color: var(--merah); background: #fffafa; }
.field-err { color: #991b1b; font-size: .8rem; font-weight: 600; margin-top: .3rem; }
.ringkas-salah { background: var(--merah-muda); color: #991b1b; border: 1px solid #f5b5b5; border-radius: 10px; padding: .65rem .85rem; font-size: .88rem; margin-bottom: .8rem; }

/* ───── Unduh kartu akun ───── */
.unduh-baris { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .55rem; }
.unduh-baris .btn { flex: 1 1 180px; font-size: .92rem; }
.unduh-info { font-size: .8rem; color: var(--teks-redup); margin-top: .5rem; text-align: center; }

/* ───── Masa kerja & SK pengangkatan ───── */
.masa-kerja-info { margin-top: .5rem; border-radius: 10px; padding: .55rem .8rem; font-size: .86rem; line-height: 1.5; }
.masa-kerja-info.ok { background: #ecfdf5; color: #065f46; border: 1px solid #b6e3c5; }
.masa-kerja-info.err { background: var(--merah-muda); color: #991b1b; border: 1px solid #f5b5b5; font-weight: 600; }

/* ───── Kewajiban pelaporan menurut masa kerja ───── */
.id-lebar { grid-column: 1 / -1; }
.kurang { color: var(--merah); font-weight: 700; }
.kewajiban { margin-top: .9rem; background: linear-gradient(135deg, #eef0ff, #f7f0ff); border: 1px solid #d3d9ff; border-left: 5px solid var(--ungu); border-radius: 12px; padding: .75rem .95rem; }
.kewajiban.kurang-data { background: #fff7e6; border-color: #ffd9a0; border-left-color: #f59e0b; }
.kw-judul { font-weight: 800; font-size: .92rem; margin-bottom: .25rem; }
.kw-isi { font-size: .92rem; }
.kw-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin: .5rem 0 .3rem; }
.kw-chips span { background: #fff; border: 1px solid #c8cffb; color: #3b4cb8; border-radius: 20px; padding: .12rem .65rem; font-size: .76rem; font-weight: 700; }
.kw-sub { font-size: .78rem; color: var(--teks-redup); }
.form-masa-kerja { margin-top: .7rem; border: 1.5px dashed #b9c0ee; border-radius: 12px; padding: .85rem .95rem; }
.lg-naik { background: #eef0ff; color: #3b4cb8; border-radius: 9px; padding: .55rem .75rem; font-size: .84rem; margin-bottom: .7rem; line-height: 1.5; }

.legenda-tunggu { padding: .8rem .95rem; }
.legenda-tunggu p { font-size: .88rem; margin-top: .3rem; line-height: 1.5; }

/* ───── Keterangan pengangkatan pertama ───── */
.info-tmt { margin: .5rem 0 .6rem; background: #f4f6ff; border: 1px solid #d3d9ff; border-left: 5px solid var(--ungu); border-radius: 12px; padding: .7rem .9rem; font-size: .84rem; line-height: 1.5; }
.info-tmt .it-judul { font-weight: 800; margin-bottom: .35rem; }
.info-tmt ul { list-style: none; display: grid; gap: .35rem; }
.info-tmt .it-ya { color: #166534; font-weight: 800; white-space: nowrap; }
.info-tmt .it-tidak { color: #991b1b; font-weight: 800; white-space: nowrap; }
.info-tmt .it-catatan { margin-top: .55rem; background: #fff7e6; border: 1px solid #ffd9a0; color: #8a4b00; border-radius: 9px; padding: .5rem .7rem; }
.info-tmt .it-kalender { margin-top: .5rem; color: var(--teks-redup); font-size: .8rem; }

/* Keterangan pengangkatan pertama berupa dropdown (details) agar tidak memakan tempat */
details.info-tmt { padding: 0; }
details.info-tmt > summary.it-judul { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .65rem .9rem; margin: 0; }
details.info-tmt > summary.it-judul::-webkit-details-marker { display: none; }
details.info-tmt > summary.it-judul small { display: block; font-weight: 500; color: var(--teks-redup); font-size: .76rem; margin-top: .1rem; }
details.info-tmt .it-panah { flex: 0 0 auto; width: 9px; height: 9px; border-right: 2.5px solid var(--ungu); border-bottom: 2.5px solid var(--ungu); transform: rotate(45deg); transition: transform .2s; margin-right: .2rem; }
details.info-tmt[open] .it-panah { transform: rotate(-135deg); }
details.info-tmt[open] > summary.it-judul { border-bottom: 1px solid #d3d9ff; margin-bottom: .55rem; }
details.info-tmt > ul, details.info-tmt > .it-catatan, details.info-tmt > .it-kalender { margin-left: .9rem; margin-right: .9rem; }
details.info-tmt > .it-kalender { margin-bottom: .75rem; }

/* ───── Status pemeriksaan tautan ───── */
.link-status { margin-top: .45rem; border-radius: 9px; padding: .45rem .7rem; font-size: .84rem; font-weight: 600; }
.link-status.menunggu { background: #eef0ff; color: #3b4cb8; }
.link-status.ok { background: #ecfdf5; color: #065f46; border: 1px solid #b6e3c5; }
.link-status.err { background: var(--merah-muda); color: #991b1b; border: 1px solid #f5b5b5; }

/* ───── Form pendaftaran lebar (langkah 2) untuk laptop/desktop; HP & tablet tetap satu kolom ───── */
.auth-card.lebar { max-width: 1200px; }
.form-lebar { display: block; }
.isian-grid { display: block; }
@media (min-width: 900px) {
    .auth-card.lebar { padding: 2rem 2.4rem 1.6rem; }
    .auth-card.lebar .logo { display: flex; align-items: center; gap: 1rem; text-align: left; margin-bottom: 1.1rem; }
    .auth-card.lebar .logo img { width: 62px; height: 62px; margin: 0; }
    .auth-card.lebar .logo p { margin: 0; }
    .form-lebar { display: grid; grid-template-columns: 270px 1fr; gap: 1rem 2.2rem; align-items: start; }
    .kolom-foto { position: sticky; top: 1rem; }
    .kolom-foto .foto-unggah { flex-direction: column; align-items: center; text-align: center; }
    .kolom-foto .foto-frame { width: 210px; height: 280px; }
    .isian-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.4rem; }
    .isian-grid .grid-2 { display: contents; }
    .isian-grid .field.penuh { grid-column: 1 / -1; }
    .auth-card.lebar #frmDaftar > .btn { margin-top: .4rem; }
}

/* ───── Hasil penilaian untuk mahasiswa ───── */
.hasil-nilai.final { border-left: 5px solid #10b981; }
.hasil-nilai.proses { border-left: 5px solid #f59e0b; }
.hasil-nilai.belum { border-left: 5px solid #9ca3af; }
.status-nilai { font-size: .92rem; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.nilai-tabel tfoot td { background: #f9fafb; }
.nilai-tabel .kol-bidang { white-space: normal; min-width: 220px; }
@media (max-width: 520px) { /* HP: tabel muat tanpa geser; keterangan sudah terwakili huruf mutu */
    .tabel.nilai-tabel .kol-bidang { min-width: 0; }
    .tabel.nilai-tabel th:nth-child(5), .tabel.nilai-tabel td:nth-child(5) { display: none; }
    .tabel.nilai-tabel th, .tabel.nilai-tabel td { padding-left: .3rem; padding-right: .3rem; font-size: .8rem; letter-spacing: 0; }
    .tabel.nilai-tabel th { font-size: .66rem; }
    .tabel.nilai-tabel .mutu { min-width: 1.6rem; padding: .1rem .3rem; }
}
.mutu { display: inline-block; min-width: 2rem; text-align: center; font-weight: 800; border-radius: 8px; padding: .1rem .5rem; }
.mutu-A { background: #dcfce7; color: #166534; }
.mutu-B { background: #e0f2fe; color: #075985; }
.mutu-C { background: #fef9c3; color: #854d0e; }
.mutu-D { background: #ffedd5; color: #9a3412; }
.mutu-E { background: #fee2e2; color: #991b1b; }
.catatan-dosen { margin-top: 1rem; background: #f4f6ff; border: 1px solid #d3d9ff; border-left: 5px solid var(--ungu); border-radius: 12px; padding: .75rem .95rem; }
.cd-judul { font-weight: 800; font-size: .9rem; margin-bottom: .3rem; }
.cd-isi { font-size: .92rem; line-height: 1.55; white-space: normal; word-break: break-word; }
/* Catatan dosen per bidang (anonim), tampil tepat di bawah baris nilai bidangnya */
.nilai-tabel tr.ada-catatan td { border-bottom: 0; }
.nilai-tabel tr.baris-catatan td { padding-top: 0; white-space: normal; }
.cat-bidang { background: #f4f6ff; border: 1px solid #d3d9ff; border-left: 4px solid var(--ungu); border-radius: 10px; padding: .55rem .8rem; font-size: .9rem; line-height: 1.55; word-break: break-word; }
.cat-bidang.perlu-perhatian { background: #fffbeb; border-color: #fde68a; border-left-color: #f59e0b; }
.cat-judul { display: block; font-weight: 800; font-size: .78rem; margin-bottom: .15rem; color: var(--teks-redup); }

/* ───── Lapor diri ───── */
.field textarea { width: 100%; padding: .75rem .85rem; font-size: 1rem; border: 1.5px solid var(--garis); border-radius: 10px; background: #fff; color: var(--teks);
    font-family: inherit; resize: vertical; min-height: 84px; transition: border-color .2s, box-shadow .2s; }
.field input[type=email], .field input[type=number] { width: 100%; padding: .75rem .85rem; font-size: 1rem; border: 1.5px solid var(--garis); border-radius: 10px; background: #fff; color: var(--teks); }
.field textarea:focus, .field input[type=email]:focus { outline: none; border-color: var(--ungu); box-shadow: 0 0 0 4px rgba(102, 126, 234, .15); }
.field input:disabled, .field select:disabled, .field textarea:disabled { background: #f9fafb; color: var(--teks-redup); cursor: not-allowed; }

.lp-wrap { max-width: 760px; }
.lp-langkah { list-style: none; display: flex; gap: .5rem; margin-bottom: 1rem; }
.lp-langkah li { flex: 1; display: flex; align-items: center; gap: .6rem; background: #fff; border: 1.5px solid var(--garis); border-radius: 14px; padding: .55rem .8rem; color: var(--teks-redup); font-weight: 700; font-size: .9rem; }
.lp-langkah li b { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #f3f4f6; font-size: .85rem; }
.lp-langkah li.aktif { border-color: var(--ungu); color: var(--ungu-tua); background: var(--ungu-muda); }
.lp-langkah li.aktif b { background: linear-gradient(135deg, var(--ungu), var(--ungu-tua)); color: #fff; }
.lp-langkah li.bisa { border-color: #b6e3c5; color: #166534; background: var(--hijau-muda); }
.lp-langkah li.bisa b { background: var(--hijau); color: #fff; }

.lp-intro { background: linear-gradient(135deg, #fdf4ff, #eef2ff); border: 1px solid #e0d7fb; border-radius: 16px; padding: 1.1rem 1.25rem; margin-bottom: 1rem; }
.lp-intro h2 { font-size: 1.1rem; margin-bottom: .3rem; }
.lp-intro p { font-size: .92rem; color: #374151; }
.lp-info-baris { display: flex; flex-wrap: wrap; gap: .5rem .9rem; margin: .7rem 0 .2rem; font-size: .9rem; }
.lp-info-baris span { background: #fff; border-radius: 10px; padding: .3rem .7rem; box-shadow: 0 1px 4px rgba(40, 30, 90, .08); }
.lp-catatan { margin-top: .6rem; font-size: .84rem !important; color: var(--teks-redup) !important; }

.lp-sukses { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; background: linear-gradient(120deg, #059669, #14b8a6); color: #fff; border-radius: 16px; padding: 1rem 1.25rem; margin-bottom: 1rem; }
.lp-sukses-ikon { font-size: 2rem; }
.lp-sukses-teks { flex: 1 1 260px; }
.lp-sukses-teks h2 { color: #fff; font-size: 1.1rem; }
.lp-sukses-teks p { font-size: .88rem; opacity: .95; }
.lp-sukses .btn { text-decoration: none; }

.lp-ringkas { display: flex; align-items: center; gap: 1.2rem; }

.lp-tab { position: sticky; top: 0; z-index: 14; display: flex; gap: .4rem; overflow-x: auto; padding: .5rem .1rem .6rem; margin: 0 0 .6rem; background: rgba(244, 245, 251, .96); scrollbar-width: none; }
.lp-tab::-webkit-scrollbar { display: none; }
.lp-tab button { flex: 0 0 auto; display: flex; align-items: center; gap: .4rem; border: 1.5px solid var(--garis); background: #fff; border-radius: 22px; padding: .35rem .8rem; font-size: .82rem; font-weight: 700;
    color: var(--teks-redup); cursor: pointer; font-family: inherit; white-space: nowrap; transition: all .2s; }
.lp-tab button:hover { border-color: var(--ungu); color: var(--ungu); }
.lp-tab button.aktif { background: linear-gradient(135deg, var(--ungu), var(--ungu-tua)); border-color: transparent; color: #fff; box-shadow: 0 4px 12px rgba(102, 126, 234, .35); }
.lp-tab button.penuh:not(.aktif) { border-color: #b6e3c5; background: var(--hijau-muda); color: #166534; }
.lp-tab-hit { font-size: .72rem; opacity: .85; }
@media (max-width: 520px) { .lp-tab-nama { display: none; } .lp-tab button.aktif .lp-tab-nama { display: inline; } }

.lp-bagian { scroll-margin-top: 64px; }
.lp-kepala { margin-bottom: 1rem; }
.lp-kepala .sub { margin-bottom: .2rem; }
.lp-f { position: relative; margin-bottom: 1.1rem; }
.lp-f.salah input, .lp-f.salah select, .lp-f.salah textarea { border-color: var(--merah); background: #fffafa; }
input.lp-kapital { text-transform: uppercase; }
.lp-baca { background: #f9fafb !important; color: var(--teks-redup) !important; }
.lp-umpan { min-height: 1.1rem; font-size: .8rem; margin-top: .25rem; display: flex; flex-wrap: wrap; gap: .1rem .7rem; }
.lp-st { color: var(--teks-redup); }
.lp-st.ok { color: var(--hijau); font-weight: 600; }
.lp-st.proses { color: var(--ungu); }
.lp-err { color: #991b1b; font-weight: 600; }
.lp-warn { color: var(--kuning); font-weight: 600; }

.lp-radio { display: grid; gap: .45rem; }
.lp-opsi { display: flex !important; align-items: flex-start; gap: .6rem; font-weight: 500 !important; font-size: .95rem !important; margin: 0 !important; padding: .55rem .75rem; border: 1.5px solid var(--garis); border-radius: 10px; background: #fff; cursor: pointer; transition: border-color .2s, background .2s; }
.lp-opsi input { margin-top: .22rem; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--ungu); }
.lp-opsi:has(input:checked) { border-color: var(--ungu); background: var(--ungu-muda); }
.lp-cek { align-items: flex-start; font-weight: 500 !important; line-height: 1.5; }

.lp-nav { display: flex; justify-content: space-between; gap: .6rem; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--garis); }
.lp-masakerja { margin-top: .4rem; }

.lp-privasi { font-size: .86rem; }
.lp-dok .nama, .lp-foto .nama { font-size: .95rem; }
.lp-bantuan { display: block; color: var(--teks-redup); font-size: .8rem; margin-bottom: .5rem; }
.lp-pernyataan-tautan { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .5rem; }
.lp-kirim { margin-top: 1.2rem; text-align: center; }
.lp-kirim .alert { text-align: left; }
.lp-kirim .slot-pesan { text-align: left; }
.lp-kurang { list-style: none; text-align: left; margin-top: .7rem; display: grid; gap: .35rem; }
.lp-kurang li a { display: block; padding: .5rem .75rem; border-radius: 10px; background: var(--merah-muda); color: #991b1b; font-size: .86rem; font-weight: 600; text-decoration: none; }
.lp-kurang li a:hover { background: #fbd9d9; }
.lp-langkah a { color: inherit; text-decoration: none; }
.id-lapor { margin-top: .7rem; background: var(--ungu-muda); border-radius: 10px; padding: .5rem .75rem; font-size: .84rem; color: #3b4cb8; }
@media (max-width: 520px) {
    .lp-ringkas { gap: .9rem; padding: .9rem 1rem; }
    .lp-ringkas .cincin { width: 72px; height: 72px; }
    .lp-ringkas .cincin::before { inset: 7px; }
    .lp-ringkas .cincin span { font-size: 1rem; }
    .lp-catatan { display: none; }
    .lp-langkah li span { font-size: .84rem; }
}
.btn-yt { background: linear-gradient(135deg, #ff0000, #cc0000); color: #fff; }
.btn-yt:hover { background: linear-gradient(135deg, #e60000, #a80000); }
