.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-header__brand {
  min-width: 0;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--glass-line);
  border-radius: 10px;
  background: oklch(24% 0.02 260 / 80%);
  color: var(--text);
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.icon-button:hover {
  background: oklch(32% 0.03 260 / 90%);
  border-color: oklch(58% 0.06 260 / 45%);
  color: oklch(92% 0.02 260);
}

.icon-button:focus-visible {
  outline: 2px solid oklch(68% 0.12 250);
  outline-offset: 2px;
}

.icon-button__glyph {
  width: 22px;
  height: 22px;
}

.icon-button--sm {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.icon-button--sm .icon-button__glyph {
  width: 18px;
  height: 18px;
}

.icon-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.notation-log-modal {
  width: min(560px, calc(100vw - 32px));
  max-height: min(72vh, 640px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--glass-line);
  border-radius: 14px;
  background: oklch(16% 0.02 260 / 96%);
  color: var(--text);
  box-shadow: 0 24px 64px oklch(8% 0.03 260 / 55%);
}

.notation-log-modal::backdrop {
  background: oklch(8% 0.02 260 / 62%);
  backdrop-filter: blur(4px);
}

.notation-log-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px 12px 16px;
  border-bottom: 1px solid var(--glass-line);
}

.notation-log-modal__toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.notation-log-modal__heading {
  min-width: 0;
}

.notation-log-modal__title {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.02em;
}

.notation-log-modal__count {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.notation-log-modal__body {
  display: block;
  margin: 0;
  padding: 14px 16px 16px;
  max-height: min(56vh, 520px);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: oklch(48% 0.04 260) transparent;
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  -webkit-user-select: text;
  user-select: text;
}

.notation-log-modal__body::-webkit-scrollbar {
  display: block;
  width: 8px;
}

.notation-log-modal__body::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: oklch(48% 0.04 260 / 70%);
}
