/* E-Rapor Imarah: tambahan di atas app.css */
.topbar { background: var(--brand-dark); color: #fff; position: sticky; top: 0; z-index: 20; }
.topbar .container { display: flex; align-items: center; gap: 16px; min-height: 58px; flex-wrap: wrap; }
.topbar .brand { color: #fff; text-decoration: none; font-weight: 800; font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.topbar .brand .mark { width: 30px; height: 30px; border-radius: 9px; background: var(--gold-bright); color: var(--brand-dark); display: grid; place-items: center; font-weight: 800; }
.topbar nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.topbar nav a, .topbar .link { color: #d1fae5; text-decoration: none; padding: 6px 10px; border-radius: 8px; font-weight: 500; background: none; border: 0; font: inherit; cursor: pointer; }
.topbar nav a.active, .topbar nav a:hover, .topbar .link:hover { background: rgba(255,255,255,.12); color: #fff; }
.topbar .plan { font-size: .75rem; background: rgba(255,255,255,.15); padding: 2px 8px; border-radius: 99px; }
.page { padding: 24px 0 64px; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--muted); }
.page-head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { margin: 0; }
.actions-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.class-card { display: block; text-decoration: none; color: inherit; }
.class-card:hover { outline: 2px solid var(--brand-soft); }
.class-card .meta { color: var(--muted); font-size: .88rem; }
.status { font-size: .75rem; padding: 2px 8px; border-radius: 99px; font-weight: 600; white-space: nowrap; }
.status.kosong { background: #e2e8f0; color: #334155; }
.status.diisi { background: var(--warn-bg); color: var(--warn); }
.status.terkirim { background: var(--ok-bg); color: var(--ok); }
.status.revisi { background: var(--bad-bg); color: var(--bad); }
.grid-sheet input { width: 64px; padding: 6px; text-align: center; }
.grid-sheet th, .grid-sheet td { padding: 6px 8px; }
.grid-sheet td.name { min-width: 180px; white-space: nowrap; }
.grid-sheet th.col { text-transform: none; letter-spacing: 0; font-size: .78rem; min-width: 76px; }
.result-row textarea { min-height: 64px; font-size: .9rem; }
.result-row .score { width: 72px; text-align: center; }
.share-box { background: var(--brand-soft); border-radius: 12px; padding: 14px; margin-bottom: 16px; }
.share-box input { font-family: ui-monospace, monospace; font-size: .85rem; }
details.box { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 18px; margin-bottom: 16px; }
details.box > summary { cursor: pointer; font-weight: 700; }
.codes { columns: 2 280px; font-size: .88rem; }
.codes div { break-inside: avoid; margin-bottom: 4px; }
.codes code { background: #f1f5f9; padding: 1px 5px; border-radius: 5px; }
.hero { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; padding: 56px 0 72px; }
.hero h1 { font-size: 2.1rem; max-width: 720px; }
.hero p { font-size: 1.1rem; max-width: 640px; opacity: .92; }
.hero .btn.secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.features { margin-top: -40px; }
.price { font-size: 1.8rem; font-weight: 800; }
.plan-card.featured { outline: 2px solid var(--gold-bright); }
.footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 24px 16px; }
@media (max-width: 640px) { .hero h1 { font-size: 1.6rem; } .topbar nav { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; } }

/* Dialog aktifkan paket (pengelola) */
dialog.modal { border: 0; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; width: min(440px, calc(100vw - 32px)); text-align: left; }
dialog.modal::backdrop { background: rgb(0 0 0 / .35); }
dialog.modal h3 { margin: 0 0 12px; }
.paket-form .only-instansi { display: none; }
.paket-form.instansi .only-instansi { display: block; }
dialog.modal { max-height: calc(100vh - 32px); overflow-y: auto; }
dialog.modal .modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
dialog.modal .modal-head h3 { margin: 0; }
dialog.modal hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.logo-preview { display: inline-flex; padding: 10px; border: 1px dashed var(--line); border-radius: 10px; background: #fff; }
.logo-preview img { max-height: 96px; max-width: 220px; display: block; }
