/* Changelog lonceng — hanya memakai variabel tema (ikut mode gelap & skin clay). */
.cl { position: relative; display: inline-flex; }
.cl__btn { position: relative; }
.cl__btn svg { width: 20px; height: 20px; }
.cl__dot {
  position: absolute; top: 5px; right: 5px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: var(--hot); color: #fff; font: 700 10px/16px var(--font-body);
  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: 190; background: transparent; }
.cl__panel {
  position: fixed; z-index: 200; top: 64px; 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(--ink); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg); 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: 700 16px var(--font-display); }
.cl__close { width: 36px; height: 36px; }
.cl__close svg { width: 18px; height: 18px; }
.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(--border); position: relative; }
.cl__item:first-child { border-top: 0; }
.cl__item.is-new { background: var(--accent-wash); border-radius: var(--r-sm); border-top-color: transparent; }
.cl__meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-faint); }
.cl__badge { padding: 1px 8px; border-radius: 999px; font-weight: 700; font-size: 11px; background: var(--accent-wash); color: var(--accent-ink); }
.cl__badge--perbaikan { background: var(--info-wash); color: var(--info); }
.cl__badge--kebijakan { background: var(--warn-wash); color: var(--warn); }
.cl__title { margin: 4px 0 2px; font: 700 14px/1.35 var(--font-body); color: var(--ink); }
.cl__text { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-soft); }
.cl__more { display: inline-block; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--accent-ink); }
.cl__empty { padding: 18px 8px; text-align: center; color: var(--ink-faint); font-size: 13px; }
.cl__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--border); }
.cl__foot a { color: var(--accent-ink); font-weight: 600; }
.cl__foot .btn[disabled] { opacity: .5; cursor: default; }

/* Ponsel: lembar bawah */
@media (max-width: 600px) {
  .cl__scrim { background: rgba(0, 0, 0, .45); }
  .cl__panel {
    top: auto; right: 0; left: 0; bottom: 0; width: 100%; max-height: 82vh;
    border-radius: var(--r-xl) var(--r-xl) 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(--border-strong); 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: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.cl-page .cl__item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 14px 16px; }
.cl-page .cl__item:first-child { border-top: 1px solid var(--border); }
.cl-page .cl__title { font-size: 16px; }
.cl-page .cl__text { font-size: 14px; }
