/* MusicTools by senote - minimal theme layer on top of Bootstrap */
:root{
  --page-max-width: 1140px;
  --radius: 12px;
  --accent: #3b82f6; /* default; override per page via inline style */
  --bg-soft: #f7f7f8;
}

body{
  font-family: "Noto Sans JP", "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.container{ max-width: var(--page-max-width); }
.card,.btn,.form-control,.navbar,.dropdown-menu,.accordion-item{ border-radius: var(--radius); }
.card{ overflow: hidden; }
a{ text-underline-offset: .15em; }
.navbar-brand{
  padding-left: 12px;
  font-family: "Noto Sans JP", "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.page-hero{
  background: linear-gradient(180deg, var(--bg-soft), #fff);
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.accent-bar{
  height: 4px;
  background: var(--accent);
  border-radius: 999px;
}

.tool-frame{
  min-height: 420px;
  background: #fff;
}

.small-muted{ color: rgba(0,0,0,.65); }

/* Cookie banner (site-wide) */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  max-width: 420px;
  width: calc(100% - 40px);
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.2);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner h2 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.85rem;
  color: #374151;
  line-height: 1.5;
}

.cookie-choice {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cookie-choice button {
  width: 100%;
}

.cookie-preferences[hidden] {
  display: none;
}

.cookie-preferences {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cookie-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cookie-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #f3f4f6;
  font-size: 0.9rem;
  color: #111827;
}

.cookie-option input {
  margin: 0;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-actions button {
  flex: 1 1 120px;
  min-width: 120px;
}

button.ghost {
  background: #e5e7eb;
  color: #111827;
}

button.ghost:hover {
  background: #d1d5db;
}

.cookie-note {
  font-size: 0.75rem;
  color: #6b7280;
}

button.secondary {
  background: #fff;
  color: #1f2933;
  border: 1px solid rgba(15, 23, 42, 0.2);
}

button.secondary:hover {
  background: #f9fafb;
}

@media (max-width: 600px) {
  .cookie-banner {
    right: 12px;
    left: 12px;
    width: auto;
  }
}
