html.cc-locked,
body.cc-locked { overflow: hidden; }

/* ---------- Common buttons ---------- */
.cc-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .04s ease, background .2s ease, border-color .2s ease;
}
.cc-btn:active { transform: translateY(1px); }
.cc-btn:focus-visible {
  outline: 3px solid var(--cc-focus);
  outline-offset: 2px;
}
.cc-btn.primary {
  background: var(--cc-primary);
  color: #fff;
}
.cc-btn.primary:hover { background: var(--cc-primary-h); }
.cc-btn.ghost {
  background: var(--cc-neutral);
  color: var(--cc-card-text);
}
.cc-btn.ghost:hover { background: var(--cc-neutral-h); }
.cc-btn.link {
  border: 0;
  background: transparent;
  color: var(--cc-muted);
  text-decoration: underline;
  padding: 8px 6px;
}

/* ---------- Settings sheet (modal) ---------- */

.cc-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 25, .45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 24px 16px;
  z-index: 10000;
}
.cc-hidden { display: none !important; }

.cc-sheet {
  width: min(820px, 100%);
  background: var(--cc-card);
  color: var(--cc-card-text);
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius);
  box-shadow: var(--cc-shadow);
  padding: 20px;
  transform: translateY(8px);
  animation: cc-in .18s ease forwards;
}
@keyframes cc-in { to { transform: translateY(0); } }

.cc-title {
  font-size: 20px;
  font-weight: 700;
  margin: 2px 0 10px;
}
.cc-desc {
  margin: 0 0 14px;
  color: #43516a;
  font-size: 14px;
  line-height: 1.5;
}
.cc-opt {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--cc-border);
  border-radius: 10px;
  margin: 8px 0;
  background: #f9fbff;
}
.cc-opt input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--cc-primary);
}
.cc-sheet-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 14px;
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 720px) {
  .cc-sheet { padding: 16px; }
  .cc-title { font-size: 18px; }
}
