:root {
    color-scheme: light;
    --latar: #f3f5f9;
    --sorot: rgba(99, 102, 241, 0.12);
    --permukaan: #ffffff;
    --permukaan-2: #f7f9fc;
    --bilah: rgba(255, 255, 255, 0.86);
    --garis: #e3e8f0;
    --garis-kuat: #cbd3e1;
    --teks: #334155;
    --teks-redup: #5b6678;
    --judul: #0f172a;
    --utama: #4f46e5;
    --utama-hover: #4338ca;
    --utama-teks: #ffffff;
    --utama-lembut: #eef0ff;
    --utama-teks-lembut: #4338ca;
    --utama-cincin: rgba(79, 70, 229, 0.28);
    --hero-1: #4f46e5;
    --hero-2: #7c3aed;
    --naik: #047857;
    --naik-lembut: #d9f5e8;
    --turun: #be123c;
    --turun-lembut: #ffe3e8;
    --tirai: rgba(15, 23, 42, 0.5);
    --avatar-bg-s: 75%;
    --avatar-bg-l: 92%;
    --avatar-fg-s: 60%;
    --avatar-fg-l: 28%;
    --bayangan: 0 1px 2px rgba(15, 23, 42, 0.05), 0 6px 20px rgba(15, 23, 42, 0.05);
    --bayangan-kecil: 0 1px 2px rgba(15, 23, 42, 0.12);
    --bayangan-tombol: 0 1px 2px rgba(79, 70, 229, 0.35);
    --radius: 16px;
    --radius-kecil: 10px;
    --tinggi-kontrol: 44px;
    --lebar-maks: 1200px;
}

:root[data-tema="gelap"] {
    color-scheme: dark;
    --latar: #0a0f1e;
    --sorot: rgba(129, 140, 248, 0.14);
    --permukaan: #131a2e;
    --permukaan-2: #18213a;
    --bilah: rgba(19, 26, 46, 0.86);
    --garis: #232e49;
    --garis-kuat: #34415f;
    --teks: #cfd6e6;
    --teks-redup: #9aa6bd;
    --judul: #f1f5f9;
    --utama: #818cf8;
    --utama-hover: #a5b4fc;
    --utama-teks: #0a0f1e;
    --utama-lembut: #1f2650;
    --utama-teks-lembut: #b4bdfc;
    --utama-cincin: rgba(129, 140, 248, 0.38);
    --hero-1: #3730a3;
    --hero-2: #5b21b6;
    --naik: #34d399;
    --naik-lembut: rgba(52, 211, 153, 0.16);
    --turun: #fb7185;
    --turun-lembut: rgba(251, 113, 133, 0.16);
    --tirai: rgba(2, 6, 18, 0.7);
    --avatar-bg-s: 40%;
    --avatar-bg-l: 22%;
    --avatar-fg-s: 80%;
    --avatar-fg-l: 82%;
    --bayangan: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 20px rgba(0, 0, 0, 0.25);
    --bayangan-kecil: 0 1px 2px rgba(0, 0, 0, 0.5);
    --bayangan-tombol: 0 1px 2px rgba(0, 0, 0, 0.4);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(1100px 460px at 88% -12%, var(--sorot), transparent 70%),
        var(--latar);
    background-repeat: no-repeat;
    color: var(--teks);
    font: 15px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

[hidden] {
    display: none !important;
}

h1,
h2 {
    margin: 0;
    color: var(--judul);
    line-height: 1.25;
    text-wrap: balance;
}

p {
    margin: 0;
}

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

.sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.ikon {
    width: 1.2em;
    height: 1.2em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tersembunyi {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.lewati {
    position: absolute;
    top: -3rem;
    left: 1rem;
    z-index: 100;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-kecil);
    background: var(--utama);
    color: var(--utama-teks);
    font-weight: 600;
    text-decoration: none;
}

.lewati:focus {
    top: 0.75rem;
}

.appbar {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--garis);
    background: var(--bilah);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.appbar-isi {
    max-width: var(--lebar-maks);
    height: 62px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.merek {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--judul);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-decoration: none;
}

.merek-logo,
.logo-besar {
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

.merek-logo {
    width: 34px;
    height: 34px;
    border-radius: 10px;
}

.menu-utama {
    display: flex;
    gap: 0.25rem;
    margin-right: auto;
}

.menu-tautan {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-kecil);
    color: var(--teks-redup);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s, color 0.15s;
}

.menu-tautan:hover {
    background: var(--permukaan-2);
    color: var(--judul);
}

.menu-tautan[aria-current="page"] {
    background: var(--utama-lembut);
    color: var(--utama-teks-lembut);
}

.appbar-aksi {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.form-keluar {
    margin: 0;
}

.tema-ikon {
    display: grid;
}

.tema-ikon > .ikon {
    grid-area: 1 / 1;
    transition: opacity 0.2s;
}

:root[data-tema="gelap"] .ikon-bulan,
:root:not([data-tema="gelap"]) .ikon-matahari {
    opacity: 0;
}

.pojok-tema {
    position: fixed;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 20;
}

.isi {
    flex: 1;
    width: 100%;
    max-width: var(--lebar-maks);
    margin: 0 auto;
    padding: 1.75rem 1rem 2.5rem;
}

.isi:focus {
    outline: none;
}

.kaki {
    padding: 1.25rem 1rem;
    text-align: center;
    color: var(--teks-redup);
    font-size: 0.8rem;
}

.kaki a {
    color: inherit;
}

.kepala-halaman {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 1.5rem;
}

.judul-halaman {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.subjudul {
    margin-top: 0.2rem;
    color: var(--teks-redup);
}

.meta-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.chip,
.status-bursa {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.32rem 0.75rem;
    border: 1px solid var(--garis);
    border-radius: 999px;
    background: var(--permukaan);
    color: var(--teks-redup);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.titik-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teks-redup);
}

.status-bursa-buka {
    border-color: transparent;
    background: var(--naik-lembut);
    color: var(--naik);
}

.status-bursa-buka .titik-status {
    background: var(--naik);
    animation: denyut 2s ease-out infinite;
}

.status-bursa-penutupan {
    border-color: transparent;
    background: var(--utama-lembut);
    color: var(--utama-teks-lembut);
}

.status-bursa-penutupan .titik-status {
    background: var(--utama);
}

@keyframes denyut {
    0% { box-shadow: 0 0 0 0 var(--naik-lembut); }
    70% { box-shadow: 0 0 0 7px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
}

@keyframes masuk {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes putar {
    to { transform: rotate(360deg); }
}

.kartu {
    min-width: 0;
    padding: 1.25rem;
    border: 1px solid var(--garis);
    border-radius: var(--radius);
    background: var(--permukaan);
    box-shadow: var(--bayangan);
    animation: masuk 0.4s ease backwards;
}

.bagian {
    margin-bottom: 1.25rem;
}

.kartu-kepala {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.kartu-aksi {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.judul-bagian {
    font-size: 1.05rem;
    font-weight: 650;
    letter-spacing: -0.01em;
}

.kpi-kisi {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.kpi {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1.1rem 1.25rem;
    overflow: hidden;
}

.kpi-lebar {
    grid-column: span 2;
}

.kpi-kepala {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.kpi-label {
    color: var(--teks-redup);
    font-size: 0.82rem;
    font-weight: 600;
}

.kpi-ikon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: none;
    border-radius: 10px;
    background: var(--utama-lembut);
    color: var(--utama-teks-lembut);
}

.kpi-nilai {
    color: var(--judul);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.kpi-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2rem 0.75rem;
    min-height: 1.7em;
    color: var(--teks-redup);
    font-size: 0.8rem;
}

.kpi-utama {
    border-color: transparent;
    background: linear-gradient(135deg, var(--hero-1), var(--hero-2));
    color: #ffffff;
}

.kpi-utama::before,
.kpi-utama::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.kpi-utama::before {
    top: -60px;
    right: -40px;
    width: 180px;
    height: 180px;
}

.kpi-utama::after {
    right: 70px;
    bottom: -70px;
    width: 130px;
    height: 130px;
}

.kpi-utama > * {
    position: relative;
    z-index: 1;
}

.kpi-utama .kpi-label,
.kpi-utama .kpi-foot {
    color: rgba(255, 255, 255, 0.88);
}

.kpi-utama .kpi-nilai {
    color: #ffffff;
    font-size: 2rem;
}

.kpi-utama .kpi-ikon {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.pil {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: var(--permukaan-2);
    font-size: 0.82rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.pil:empty {
    display: none;
}

.naik {
    color: var(--naik);
}

.turun {
    color: var(--turun);
}

.netral {
    color: var(--teks);
}

.pil.naik {
    background: var(--naik-lembut);
}

.pil.turun {
    background: var(--turun-lembut);
}

.progres {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--permukaan-2);
    box-shadow: inset 0 0 0 1px var(--garis);
}

.progres-isi {
    width: var(--lebar, 0%);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--utama), var(--hero-2));
    transition: width 0.6s ease;
}

.tabel-bungkus {
    overflow-x: auto;
}

.tabel {
    width: 100%;
    border-collapse: collapse;
}

.tabel th,
.tabel td {
    padding: 0.8rem 0.75rem;
    border-bottom: 1px solid var(--garis);
    text-align: left;
    vertical-align: middle;
}

.tabel thead th {
    padding-top: 0.5rem;
    padding-bottom: 0.65rem;
    color: var(--teks-redup);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.tabel tbody tr:last-child th,
.tabel tbody tr:last-child td {
    border-bottom: 0;
}

.tabel tbody tr:hover {
    background: var(--permukaan-2);
}

.tabel .angka {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.sel-ganda {
    display: block;
    color: var(--judul);
    font-weight: 600;
}

.sel-kecil {
    display: block;
    color: var(--teks-redup);
    font-size: 0.78rem;
    font-weight: 500;
}

.tabel .sel-ganda.naik,
.tabel .sel-kecil.naik {
    color: var(--naik);
}

.tabel .sel-ganda.turun,
.tabel .sel-kecil.turun {
    color: var(--turun);
}

.mini-bar {
    display: block;
    width: 64px;
    height: 4px;
    margin: 0.35rem 0 0 auto;
    overflow: hidden;
    border-radius: 999px;
    background: var(--garis);
}

.mini-bar > span {
    display: block;
    width: var(--lebar, 0%);
    height: 100%;
    border-radius: inherit;
    background: var(--utama);
}

.baris-info td {
    padding: 2rem 1rem;
    color: var(--teks-redup);
    text-align: center;
}

.saham {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.avatar {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: none;
    border-radius: 12px;
    background: hsl(var(--h, 230) var(--avatar-bg-s) var(--avatar-bg-l));
    color: hsl(var(--h, 230) var(--avatar-fg-s) var(--avatar-fg-l));
    font-size: 0.78rem;
    font-weight: 700;
}

.saham-teks {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.saham-kode {
    color: var(--judul);
    font-weight: 700;
}

.saham-nama {
    max-width: 240px;
    overflow: hidden;
    color: var(--teks-redup);
    font-size: 0.78rem;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lencana-usang {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0 0.45rem;
    border-radius: 999px;
    background: var(--turun-lembut);
    color: var(--turun);
    font-size: 0.7rem;
    font-weight: 700;
}

.aksi-baris {
    display: flex;
    justify-content: flex-end;
    gap: 0.4rem;
}

.form-hapus {
    margin: 0;
}

.grafik-kisi {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.grafik-kanvas {
    position: relative;
    height: 300px;
}

.donat-isi {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.donat-kanvas {
    position: relative;
    width: 220px;
    height: 220px;
}

.donat-tengah {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    text-align: center;
    color: var(--teks-redup);
    font-size: 0.8rem;
    line-height: 1.2;
    pointer-events: none;
}

.donat-tengah strong {
    color: var(--judul);
    font-size: 1.6rem;
    font-weight: 700;
}

.legenda {
    display: grid;
    gap: 0.55rem;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.legenda li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.88rem;
}

.legenda-titik {
    width: 10px;
    height: 10px;
    flex: none;
    border-radius: 3px;
}

.legenda-kode {
    color: var(--judul);
    font-weight: 600;
}

.legenda-persen {
    margin-left: auto;
    color: var(--judul);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.catatan {
    margin-top: 0.9rem;
    color: var(--teks-redup);
    font-size: 0.82rem;
}

.catatan:empty {
    display: none;
}

.kosong {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem 1rem;
    color: var(--teks-redup);
    text-align: center;
}

.kosong strong {
    color: var(--judul);
}

.kosong .tombol {
    margin-top: 0.5rem;
}

.kosong-ikon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--utama-lembut);
    color: var(--utama-teks-lembut);
}

.kosong-ikon .ikon {
    width: 24px;
    height: 24px;
}

.pesan {
    margin-bottom: 1rem;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    background: var(--utama-lembut);
    color: var(--utama-teks-lembut);
    font-size: 0.9rem;
    font-weight: 500;
}

.pesan-galat {
    background: var(--turun-lembut);
    color: var(--turun);
}

.pesan-sukses {
    background: var(--naik-lembut);
    color: var(--naik);
}

.pesan a {
    color: inherit;
    font-weight: 700;
}

.formulir .medan {
    margin-bottom: 1.1rem;
}

.formulir label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--judul);
    font-size: 0.85rem;
    font-weight: 600;
}

.formulir input[type="text"],
.formulir input[type="password"],
.pilihan {
    width: 100%;
    height: var(--tinggi-kontrol);
    padding: 0 0.9rem;
    border: 1px solid var(--garis-kuat);
    border-radius: var(--radius-kecil);
    background: var(--permukaan);
    color: var(--judul);
    font: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.pilihan {
    padding-right: 2.4rem;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238492a6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-position: right 0.8rem center;
    background-repeat: no-repeat;
    cursor: pointer;
}

.formulir input::placeholder {
    color: var(--teks-redup);
    opacity: 0.7;
}

.formulir input:focus,
.pilihan:focus {
    outline: none;
    border-color: var(--utama);
    box-shadow: 0 0 0 3px var(--utama-cincin);
}

.input-kode {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bantuan {
    margin-top: 0.35rem;
    color: var(--teks-redup);
    font-size: 0.78rem;
}

.kelompok-input {
    display: flex;
    overflow: hidden;
    border: 1px solid var(--garis-kuat);
    border-radius: var(--radius-kecil);
    background: var(--permukaan);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.kelompok-input:focus-within {
    border-color: var(--utama);
    box-shadow: 0 0 0 3px var(--utama-cincin);
}

.kelompok-input.tidak-valid {
    border-color: var(--turun);
}

.kelompok-input.tidak-valid:focus-within {
    box-shadow: 0 0 0 3px var(--turun-lembut);
}

.awalan,
.akhiran {
    display: grid;
    place-items: center;
    padding: 0 0.85rem;
    background: var(--permukaan-2);
    color: var(--teks-redup);
    font-size: 0.9rem;
    font-weight: 600;
}

.awalan {
    border-right: 1px solid var(--garis);
}

.akhiran {
    border-left: 1px solid var(--garis);
}

.formulir .kelompok-input input[type="text"] {
    height: calc(var(--tinggi-kontrol) - 2px);
    min-width: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.galat-medan {
    margin-top: 0.35rem;
    color: var(--turun);
    font-size: 0.78rem;
    font-weight: 500;
}

.aksi-formulir {
    display: flex;
    gap: 0.6rem;
}

.dua-kolom {
    display: grid;
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.kartu-form {
    position: sticky;
    top: 82px;
}

.saham-form {
    margin-bottom: 1.1rem;
    padding: 0.75rem;
    border-radius: 12px;
    background: var(--permukaan-2);
}

.kartu-sempit {
    max-width: 440px;
}

.kalkulator-kisi {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 1.25rem;
    align-items: start;
    margin-bottom: 1.25rem;
}

.rumus {
    margin-top: 0.25rem;
    color: var(--teks-redup);
    font-size: 0.8rem;
}

.petunjuk {
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background: var(--permukaan-2);
    color: var(--teks-redup);
    font-size: 0.88rem;
    text-align: center;
}

.info-saham {
    display: grid;
    gap: 0.5rem;
    margin: 0 0 1.1rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--garis);
    border-radius: 12px;
    background: var(--permukaan-2);
}

.info-saham > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.2rem 1rem;
    font-size: 0.86rem;
}

.info-saham dt {
    color: var(--teks-redup);
}

.info-saham dd {
    margin: 0;
    color: var(--judul);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.hasil {
    padding: 1rem;
    border: 1px solid var(--garis);
    border-radius: 14px;
    background: var(--permukaan-2);
}

.hasil-utama {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--garis);
}

.hasil-utama > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    min-width: 0;
}

.hasil-label {
    color: var(--teks-redup);
    font-size: 0.8rem;
    font-weight: 600;
}

.hasil-nilai {
    color: var(--judul);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.hasil-daftar {
    display: grid;
    gap: 0.6rem;
    margin: 1rem 0 0;
}

.hasil-daftar > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.2rem 1rem;
    font-size: 0.88rem;
}

.hasil-daftar dt {
    color: var(--teks-redup);
}

.hasil-daftar dd {
    margin: 0;
    color: var(--judul);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.hasil-daftar dd.naik,
.hasil-nilai.naik {
    color: var(--naik);
}

.hasil-daftar dd.turun,
.hasil-nilai.turun {
    color: var(--turun);
}

.rumus-daftar {
    display: grid;
    gap: 0.9rem;
    margin: 0;
}

.rumus-daftar dt {
    color: var(--judul);
    font-size: 0.88rem;
    font-weight: 600;
}

.rumus-daftar dd {
    margin: 0.1rem 0 0;
    color: var(--teks-redup);
    font-size: 0.86rem;
}

.tombol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: var(--tinggi-kontrol);
    padding: 0 1.1rem;
    border: 1px solid var(--garis-kuat);
    border-radius: var(--radius-kecil);
    background: var(--permukaan);
    color: var(--judul);
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.tombol:hover {
    background: var(--permukaan-2);
}

.tombol:disabled {
    cursor: progress;
    opacity: 0.6;
}

.tombol-utama {
    border-color: var(--utama);
    background: var(--utama);
    color: var(--utama-teks);
    box-shadow: var(--bayangan-tombol);
}

.tombol-utama:hover {
    border-color: var(--utama-hover);
    background: var(--utama-hover);
}

.tombol-penuh {
    width: 100%;
}

.tombol-hantu {
    border-color: transparent;
    background: transparent;
    color: var(--teks-redup);
}

.tombol-hantu:hover,
.tombol-hantu[aria-current="page"] {
    background: var(--permukaan-2);
    color: var(--judul);
}

.tombol-kecil {
    height: 36px;
    padding: 0 0.85rem;
    font-size: 0.85rem;
}

.tombol-ikon {
    width: 38px;
    height: 38px;
    padding: 0;
}

.tombol-bahaya {
    color: var(--turun);
}

.tombol-bahaya:hover {
    border-color: var(--turun);
    background: var(--turun-lembut);
}

.tombol-bahaya-penuh {
    border-color: var(--turun);
    background: var(--turun);
    color: var(--permukaan);
}

.tombol-bahaya-penuh:hover {
    background: var(--turun);
    opacity: 0.9;
}

.berputar .ikon {
    animation: putar 0.9s linear infinite;
}

.tombol:focus-visible,
.menu-tautan:focus-visible,
.segmen button:focus-visible,
.tombol-pin:focus-visible,
.merek:focus-visible {
    outline: 2px solid var(--utama);
    outline-offset: 2px;
}

.segmen {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--garis);
    border-radius: 12px;
    background: var(--permukaan-2);
}

.segmen button {
    height: 32px;
    padding: 0 0.75rem;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--teks-redup);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.segmen button[aria-pressed="true"] {
    background: var(--permukaan);
    box-shadow: var(--bayangan-kecil);
    color: var(--judul);
}

.dialog {
    width: calc(100vw - 2rem);
    max-width: 400px;
    padding: 1.5rem;
    border: 1px solid var(--garis);
    border-radius: var(--radius);
    background: var(--permukaan);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    color: var(--teks);
}

.dialog::backdrop {
    background: var(--tirai);
}

.dialog-teks {
    margin-top: 0.5rem;
}

.dialog-aksi {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    margin-top: 1.25rem;
}

.halaman-masuk .isi {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 2rem;
}

.kartu-masuk {
    width: 100%;
    max-width: 390px;
    padding: 2rem 1.5rem 1.75rem;
    border: 1px solid var(--garis);
    border-radius: 22px;
    background: var(--permukaan);
    box-shadow: var(--bayangan);
    animation: masuk 0.4s ease backwards;
}

.logo-besar {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 16px;
}

.logo-besar .ikon {
    width: 26px;
    height: 26px;
}

.judul-masuk {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
}

.subjudul-masuk {
    margin: 0.4rem 0 1.5rem;
    color: var(--teks-redup);
    font-size: 0.9rem;
    text-align: center;
}

.titik-pin {
    display: flex;
    justify-content: center;
    gap: 0.9rem;
    margin-bottom: 1.6rem;
}

.titik {
    width: 14px;
    height: 14px;
    border: 2px solid var(--garis-kuat);
    border-radius: 50%;
    transition: background-color 0.12s, transform 0.12s, border-color 0.12s;
}

.titik.terisi {
    border-color: var(--utama);
    background: var(--utama);
    transform: scale(1.1);
}

.titik-pin.getar {
    animation: getar-pin 0.4s ease;
}

@keyframes getar-pin {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

.papan-pin {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem 0.5rem;
}

.tombol-pin {
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    width: 4.2rem;
    height: 4.2rem;
    border: 1px solid var(--garis);
    border-radius: 50%;
    background: var(--permukaan-2);
    color: var(--judul);
    font: inherit;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.12s, transform 0.12s;
}

.tombol-pin:hover {
    background: var(--utama-lembut);
}

.tombol-pin:active {
    transform: scale(0.94);
}

.tombol-pin-hapus {
    border-color: transparent;
    background: transparent;
    color: var(--teks-redup);
}

.tombol-pin-kosong {
    visibility: hidden;
}

@media (max-width: 1024px) {
    .kpi-kisi {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grafik-kisi {
        grid-template-columns: minmax(0, 1fr);
    }

    .donat-isi {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .legenda {
        width: auto;
        min-width: 220px;
    }
}

@media (max-width: 960px) {
    .dua-kolom {
        grid-template-columns: minmax(0, 1fr);
    }

    .kartu-form {
        position: static;
    }

    .tabel-kartu thead {
        display: none;
    }

    .tabel-kartu,
    .tabel-kartu tbody {
        display: block;
    }

    .tabel-kartu tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.7rem 1rem;
        padding: 1rem 0;
        border-bottom: 1px solid var(--garis);
    }

    .tabel-kartu tbody tr:first-child {
        padding-top: 0.25rem;
    }

    .tabel-kartu tbody tr:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }

    .tabel-kartu tbody tr:hover {
        background: transparent;
    }

    .tabel-kartu th,
    .tabel-kartu td {
        display: block;
        padding: 0;
        border: 0;
    }

    .tabel-kartu td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 0.1rem;
        color: var(--teks-redup);
        font-size: 0.72rem;
        font-weight: 600;
    }

    .tabel-kartu .angka {
        text-align: left;
    }

    .tabel-kartu .sel-saham,
    .tabel-kartu .sel-aksi,
    .tabel-kartu .baris-info td {
        grid-column: 1 / -1;
    }

    .tabel-kartu .baris-info td::before {
        content: none;
    }

    .mini-bar {
        margin-left: 0;
    }

    .saham-nama {
        max-width: none;
    }

    .aksi-baris {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .appbar-isi {
        height: 56px;
        gap: 0.5rem;
    }

    .merek {
        margin-right: auto;
    }

    .merek-nama {
        font-size: 0.98rem;
    }

    .menu-utama {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 30;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0.25rem;
        margin: 0;
        padding: 0.4rem 0.5rem calc(0.4rem + env(safe-area-inset-bottom));
        border-top: 1px solid var(--garis);
        background: var(--bilah);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
    }

    .menu-tautan {
        flex-direction: column;
        justify-content: center;
        gap: 0.15rem;
        min-height: 52px;
        padding: 0.4rem 0.25rem;
        font-size: 0.72rem;
        text-align: center;
    }

    .menu-tautan .ikon {
        width: 22px;
        height: 22px;
    }

    .tombol-keluar {
        width: 38px;
        padding: 0;
    }

    .tombol-keluar span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .halaman-dalam .kaki {
        padding-bottom: calc(5.5rem + env(safe-area-inset-bottom));
    }

    .isi {
        padding-top: 1.25rem;
    }

    .judul-halaman {
        font-size: 1.5rem;
    }

    .kartu {
        padding: 1rem;
    }

    .kpi {
        padding: 0.95rem 1rem;
    }

    .kpi-nilai {
        font-size: 1.15rem;
    }

    .kpi-utama .kpi-nilai {
        font-size: 1.75rem;
    }

    .kpi-kisi {
        gap: 0.75rem;
    }

    .grafik-kanvas {
        height: 250px;
    }

    .segmen {
        width: 100%;
    }

    .segmen button {
        flex: 1;
        height: 36px;
        padding: 0 0.3rem;
    }

    .tabel-kartu tr {
        gap: 0.6rem 1rem;
    }

    .hasil-utama {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
