.cl-banner{
  position: fixed; top: 64px; left: 50%; transform: translateX(-50%);
  z-index: 9700; width: calc(100% - 28px); max-width: 360px;
  max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px);
  display:flex; flex-direction:column;
}
.cl-banner-inner{
  background: var(--surface); border:1px solid var(--gold); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 10px 12px; animation: clSlideDown .3s ease;
  display:flex; flex-direction:column; min-height:0; max-height:inherit;
}
@keyframes clSlideDown{ from{ opacity:0; transform:translateY(-14px); } to{ opacity:1; transform:translateY(0); } }
.cl-banner-head{ display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:6px; flex:0 0 auto; }
.cl-banner-title{ font-weight:800; color: var(--gold-bright); font-size:.84rem; font-family: var(--font-display); line-height:1.4; }
.cl-banner-x{
  flex:0 0 auto; width:30px; height:30px; border-radius:50%; border:1px solid var(--border);
  background: var(--surface-2); color:var(--text); font-size:1rem; line-height:1; cursor:pointer; font-family:inherit;
}
.cl-banner-list{ overflow-y:auto; min-height:0; flex:1 1 auto; -webkit-overflow-scrolling:touch; }
.cl-banner-inner ul{ margin:0 0 8px; padding-inline-start:16px; font-size:.72rem; color:var(--text); line-height:1.55; }
.cl-banner-inner li{ margin-bottom:2px; }
.cl-banner-close{
  flex:0 0 auto; width:100%; border:1px solid var(--gold); background: var(--surface-2); color:var(--gold-bright); font-weight:700;
  padding:8px; border-radius:10px; cursor:pointer; font-family:inherit; font-size:.8rem;
}

.cl-more{
  display:block; width:100%; margin:2px 0 8px; padding:6px 8px; border-radius:10px; cursor:pointer; font-family:inherit; font-size:.74rem; font-weight:700;
  border:1px dashed var(--border); background:transparent; color:var(--gold-bright);
}
[data-theme="light"] .cl-more{ color: color-mix(in srgb, var(--gold-bright, #fbbf24) 55%, #000); }
.cl-rest[hidden]{ display:none; }

.cl-modal{ position:fixed; inset:0; background:rgba(0,0,0,.65); z-index:9995; display:none; align-items:center; justify-content:center; padding:20px; }
.cl-modal.open{ display:flex; }
.cl-modal-card{ position:relative; background: var(--surface); border:1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding:20px; max-width:420px; width:100%; max-height:70vh; overflow-y:auto; }
.cl-modal-close{ position:absolute; top:10px; left:12px; background:none; border:none; color:var(--text-dim); font-size:1rem; cursor:pointer; }
.cl-modal-card h3{ font-family: var(--font-display); color: var(--gold-bright); margin-bottom:14px; }
.cl-entry{ margin-bottom:16px; padding-bottom:12px; border-bottom:1px dashed var(--border); }
.cl-entry:last-child{ border-bottom:none; margin-bottom:0; padding-bottom:0; }
.cl-date{ font-size:.72rem; color: var(--text-dim); margin-bottom:6px; }
.cl-entry ul{ margin:0; padding-inline-start:18px; font-size:.82rem; line-height:1.8; color: var(--text); }

@media (max-width:420px){
  .cl-banner{ top: 58px; }
}
