/* The kana chart dialog (kana_chart.js). Sits on the card editor's dialog
   (.ce-backdrop / .ce-dialog) for the backdrop, colours and phone sizing. */
.kana-chart-btn {
  font-family: "Noto Sans JP", "Meiryo", "Yu Gothic", sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}

.kc-dialog { max-width: 520px; padding: 14px 16px 18px; }
.kc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.kc-tabs { display: flex; gap: 6px; }
.kc-tab {
  font: inherit;
  font-size: 14px;
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}
.kc-tab span { font-family: "Noto Sans JP", "Meiryo", sans-serif; }
.kc-tab.is-on { border-color: var(--accent); color: var(--text); background: var(--hl); }

.kc-heading {
  margin: 14px 0 6px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.kc-grid { display: grid; gap: 5px; }
.kc-cols-5 { grid-template-columns: repeat(5, 1fr); }
.kc-cols-3 { grid-template-columns: repeat(3, 1fr); }
.kc-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 2px 5px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2, transparent);
}
.kc-gap { border-color: transparent; background: transparent; }
.kc-glyph { font-family: "Noto Sans JP", "Meiryo", "Yu Gothic", sans-serif; font-size: 22px; font-weight: 500; line-height: 1.2; color: var(--text); }
.kc-romaji { font-size: 11px; color: var(--text-muted); }

@media (max-width: 600px) {
  .kc-dialog { padding: 12px 10px 14px; }
  .kc-glyph { font-size: 19px; }
  .kc-grid { gap: 4px; }
}

/* A dark scrollbar, not the OS's white one, on the dark dialog. */
.kc-dialog { scrollbar-color: var(--line) transparent; scrollbar-width: thin; }
