/* Cookie banner and footer. Uses the app design tokens when app.css is loaded,
   and the same indigo as the public pages when those tokens are absent. */
.cc-root {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: flex;
  justify-content: center;
  padding: 16px;
  pointer-events: none;
}
.cc-root[hidden] { display: none; }
.cc-panel {
  pointer-events: auto;
  width: min(640px, 100%);
  background: var(--surface, #fff);
  color: var(--text, #0F172A);
  border: 1px solid var(--border, #E3E6EC);
  border-radius: var(--radius-card, 14px);
  box-shadow: var(--shadow-modal, 0 30px 60px -20px rgba(15, 23, 42, .4));
  padding: 18px 18px 14px;
  font-family: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
.cc-panel h2 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text, #0F172A);
}
.cc-panel p { margin: 0 0 12px; color: var(--text-3, #334155); }
.cc-actions {
  display: flex;
  gap: 10px;
}
.cc-btn-choice {
  flex: 1 1 0;
  min-width: 0;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--radius-btn, 10px);
  border: 1px solid transparent;
  background: var(--accent, #4338CA);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .1);
}
.cc-btn-choice:hover { background: var(--accent-hover, #3730A3); color: #fff; }
.cc-btn-choice:focus-visible {
  outline: 2px solid var(--accent, #4338CA);
  outline-offset: 2px;
}
.cc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 12px;
}
.cc-text {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent, #4338CA);
  font: inherit;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
}
.cc-links a {
  color: var(--accent, #4338CA);
  font-weight: 600;
  font-size: 13px;
  text-decoration: underline;
}
.cc-cat {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  margin: 0 0 10px;
  border: 1px solid var(--border, #E3E6EC);
  border-radius: 12px;
  background: var(--surface-2, #FAFBFC);
}
.cc-cat strong { display: block; margin-bottom: 2px; }
.cc-cat p { margin: 0; font-size: 13px; color: var(--muted, #5B6678); }
.cc-cat input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--accent, #4338CA);
}
.cc-badge {
  flex-shrink: 0;
  margin-top: 2px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent-soft, #EEF0FF);
  color: var(--accent-text, #3730A3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.cc-page-footer {
  position: relative;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  justify-content: center;
  align-items: center;
  padding: 16px 16px 20px;
  font-family: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 13px;
  color: var(--muted, #5B6678);
}
.cc-page-footer button {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}
.cc-page-footer a { color: inherit; text-decoration: underline; }
body.cc-banner-open { padding-bottom: 200px; }
@media (max-width: 640px) {
  .cc-actions { flex-direction: column; }
  .cc-btn-choice { width: 100%; }
}
