/* Changelog lonceng — gaya Earnice (variabel app.css). */
.cl { position: relative; display: inline-flex; }
.cl__btn { position: relative; }
.cl__dot {
    position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px;
    border-radius: 999px; background: #E5484D; color: #fff; font-size: 10px; font-weight: 700; line-height: 17px;
    text-align: center; box-shadow: 0 0 0 2px var(--surface);
}
.cl__dot[hidden], .cl__panel[hidden], .cl__scrim[hidden] { display: none; }
.cl__scrim { position: fixed; inset: 0; z-index: 1050; background: transparent; }
.cl__panel {
    position: fixed; z-index: 1060; top: calc(var(--topbar) + 4px); right: 12px; width: min(400px, calc(100vw - 24px));
    max-height: min(560px, calc(100vh - 80px)); display: flex; flex-direction: column;
    background: var(--surface); color: var(--text); border: 1px solid var(--line);
    border-radius: var(--r-lg); box-shadow: 0 16px 40px rgba(11, 18, 32, .16); text-align: left;
}
.cl__panel:focus { outline: none; }
.cl__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 8px; }
.cl__head h2 { margin: 0; font-size: 1rem; }
.cl__close { width: 34px; height: 34px; font-size: .9rem; }
.cl__list { list-style: none; margin: 0; padding: 0 8px; overflow-y: auto; flex: 1; overscroll-behavior: contain; }
.cl__item { padding: 10px 8px; border-top: 1px solid var(--line); }
.cl__item:first-child { border-top: 0; }
.cl__item.is-new { background: var(--indigo-soft); border-radius: var(--r-md); border-top-color: transparent; }
.cl__meta { display: flex; align-items: center; gap: 8px; font-size: .75rem; color: var(--muted); }
.cl__badge { padding: 1px 8px; border-radius: 999px; font-weight: 700; font-size: .7rem; background: var(--mint-soft); color: var(--mint-dark); }
.cl__badge--perbaikan { background: var(--indigo-soft); color: var(--indigo-dark); }
.cl__badge--kebijakan { background: #FFF3DC; color: #8A5A00; }
.cl__title { margin: 4px 0 2px; font-size: .92rem; font-weight: 700; line-height: 1.35; letter-spacing: 0; }
.cl__text { margin: 0; font-size: .84rem; line-height: 1.5; color: var(--muted); }
.cl__more { display: inline-block; margin-top: 4px; font-size: .84rem; font-weight: 600; }
.cl__empty { padding: 18px 8px; text-align: center; color: var(--muted); font-size: .85rem; }
.cl__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); }
.cl__foot .btn[disabled] { opacity: .5; }

@media (max-width: 600px) {
    .cl__scrim { background: rgba(11, 18, 32, .45); }
    .cl__panel {
        top: auto; right: 0; left: 0; bottom: 0; width: 100%; max-height: 82vh;
        border-radius: 20px 20px 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom);
    }
    .cl__panel::before { content: ""; width: 40px; height: 4px; border-radius: 4px; background: var(--line-2); margin: 8px auto 0; }
}
@media (prefers-reduced-motion: no-preference) {
    .cl__panel { animation: cl-in .16s ease-out; }
    @keyframes cl-in { from { opacity: 0; transform: translateY(6px); } }
}

/* Halaman /changelog */
.cl-page { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.cl-page .cl__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; }
.cl-page .cl__item:first-child { border-top: 1px solid var(--line); }
.cl-page .cl__title { font-size: 1.05rem; }
.cl-page .cl__text { font-size: .92rem; }
