html {
  --f-text: var(--text, #e6e8ea);
  --f-muted: var(--text-dim, var(--muted, #9aa3ab));
  --f-soft: var(--text-soft, var(--muted, #b4bcc3));
  --f-line: var(--border, var(--line, #2c3339));
  --f-line2: var(--border-soft, var(--line, #22282e));
  --f-surface: var(--surface, #171b1f);
  --f-surface3: var(--surface-3, #20262c);
  --f-accent: var(--accent, #7cffb2);
  --f-on-accent: var(--on-accent, #0e1113);
}



.ck-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2147483000;
  max-height: min(60vh, 560px);
  overflow-y: auto;
  background: var(--f-surface);
  color: var(--f-text);
  border-top: 1px solid var(--f-line);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.35);
  padding: 18px 24px calc(18px + env(safe-area-inset-bottom, 0px));
  font: 14px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.ck-bar *, .ck-bar *::before, .ck-bar *::after { box-sizing: border-box; }
.ck-main { max-width: 1312px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.ck-text { flex: 1 1 420px; min-width: 0; }
.ck-title { margin: 0 0 6px; font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--f-text); }
.ck-lead { margin: 0; color: var(--f-soft); }
.ck-bar a { color: var(--f-accent); }
.ck-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ck-btn {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font: 600 14px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  cursor: pointer;
  border: 1px solid var(--f-line);
  background: transparent;
  color: var(--f-text);
}
.ck-primary { background: var(--f-accent); border-color: var(--f-accent); color: var(--f-on-accent); }
.ck-secondary { border-color: var(--f-muted); color: var(--f-text); }
.ck-ghost { border-color: transparent; color: var(--f-soft); }
.ck-link { border-color: transparent; padding: 0 8px; text-decoration: underline; text-underline-offset: 3px; color: var(--f-soft); }
.ck-btn:hover { border-color: var(--f-text); }
.ck-btn:focus-visible, .ck-bar a:focus-visible, .ck-switch input:focus-visible + .ck-knob { outline: 2px solid var(--f-accent); outline-offset: 2px; }

.ck-panel { max-width: 1312px; margin: 16px auto 0; padding-top: 16px; border-top: 1px solid var(--f-line); }
.ck-panel[hidden] { display: none; }
.ck-cats { border: 0; margin: 0; padding: 0; min-width: 0; }
.ck-legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.ck-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--f-line2); cursor: pointer; }
.ck-row-text { display: flex; flex-direction: column; min-width: 0; }
.ck-row-title { font-weight: 600; }
.ck-row-desc { color: var(--f-muted); font-size: 13px; }
.ck-switch { position: relative; display: inline-block; flex: 0 0 auto; width: 48px; height: 28px; }
.ck-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.ck-switch input:disabled { cursor: not-allowed; }
.ck-knob { position: absolute; inset: 0; border-radius: 999px; background: var(--f-surface3); border: 1px solid var(--f-line); transition: background .15s; pointer-events: none; }
.ck-knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--f-muted); transition: transform .15s; }
.ck-switch input:checked + .ck-knob { background: var(--f-accent); border-color: var(--f-accent); }
.ck-switch input:checked + .ck-knob::after { transform: translateX(20px); background: var(--f-on-accent); }
.ck-switch.is-locked .ck-knob { opacity: .7; }
.ck-save { margin-top: 12px; }

.ck-details { padding-bottom: 4px; }
.ck-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ck-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ck-table th, .ck-table td { text-align: left; vertical-align: top; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--f-line2); }
.ck-table th { color: var(--f-soft); font-weight: 600; }
.ck-table code { font-size: 12px; overflow-wrap: anywhere; }
.ck-sub { color: var(--f-muted); font-size: 12px; }
.ck-details-inner p { margin: 10px 0 0; }

.cookie-open { min-height: 44px; padding: 0 18px; border-radius: 8px; border: 1px solid var(--f-accent); background: transparent; color: var(--f-accent); font: 600 14px/1 system-ui, sans-serif; cursor: pointer; }

@media (max-width: 560px) {
  .ck-bar { padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px)); max-height: 45vh; }
  .ck-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .ck-actions .ck-btn { width: 100%; }
  .ck-link { justify-content: center; }
  .ck-row { align-items: flex-start; }
}
