.notes-dashboard-page {
  --ink: #0a1b50;
  --muted: #7085aa;
  --accent: #397bff;
  --accent-deep: #2869dd;
  --line: #dfeafd;
  --surface: #fff;
  --surface-strong: #f7fbff;
  color: var(--ink);
  min-height: 100vh;
  background: radial-gradient(ellipse at 12% 16%, #d9edff 0%, transparent 48%), linear-gradient(145deg, #edf7ff, #f8fbff 65%, #eef8ff);
}

.notes-dashboard-page .notes-dashboard-shell { width: min(1380px, calc(100% - 30px)); padding: 14px 0 48px; }
.notes-dashboard { display: grid; gap: 26px; }

.notes-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 80px;
  margin-bottom: 26px;
  padding: 14px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .88);
}
.notes-brand { display: inline-flex; align-items: center; gap: 12px; color: #0a1b50; text-decoration: none; }
.notes-brand > span:last-child { display: grid; }
.notes-brand strong { font-size: 20px; line-height: 1.35; }
.notes-brand small { color: #7085aa; font-size: .92rem; }
.notes-brand__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid #d1e2ff;
  border-radius: 50%;
  color: #3d7dff;
  background: #eaf4ff;
  box-shadow: inset 0 0 0 5px #f3f9ff;
  font-size: 24px;
  font-weight: 800;
}
.notes-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 32px;
  color: #3478ff;
  background: #eef5ff;
  box-shadow: 0 8px 22px #b4d0f330;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}
.notes-back:hover { background: #e2efff; }

.notes-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 335px;
  padding: 34px;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(90deg, #f1faff 0%, #eff9fff0 25%, #eaf7ff9c 43%, transparent 65%), url('../../../assets/jlpt-vocab-hero-v2.webp') center / cover no-repeat;
}
.notes-hero__copy { position: relative; z-index: 1; }
.notes-eyebrow { margin: 0; color: #397bff; font-size: 13px; font-weight: 750; letter-spacing: .24em; }
.notes-hero .notes-eyebrow { margin-bottom: 14px; }
.notes-hero h1 { margin: 0; color: #09194c; font-size: clamp(34px, 4.8vw, 60px); font-weight: 900; letter-spacing: -.045em; line-height: 1.23; }
.notes-hero h1 span { color: #2869ff; }
.notes-hero__description { margin: 18px 0; color: #5c77a0; font-size: 18px; line-height: 1.65; }
.notes-hero__tags { display: flex; flex-wrap: wrap; gap: 12px; }
.notes-hero__tags span { padding: 7px 20px; border: 1px solid #d5e4ff; border-radius: 24px; color: #3075ff; background: #ffffffed; box-shadow: 0 5px 14px #8bb6ed12; font-size: .92rem; font-weight: 650; }
.notes-hero__bubble {
  position: absolute;
  top: 46px;
  right: 7%;
  padding: 14px 19px;
  border-radius: 24px;
  color: #3779ff;
  background: #fffffff2;
  box-shadow: 0 8px 20px #8bb6ed22;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.4;
  transform: rotate(-9deg);
}
.notes-hero__bubble::after { content: ''; position: absolute; left: 30px; bottom: -10px; border: 12px solid transparent; border-top-color: #fffffff2; border-bottom: 0; }

.notes-filter-card {
  display: grid;
  gap: 24px;
  padding: 26px 30px 30px;
  border: 1px solid #e4efff;
  border-radius: 20px;
  background: #ffffffed;
  box-shadow: 0 12px 26px #aacbf412;
}
.notes-filter-card__heading { display: flex; align-items: center; gap: 16px; min-width: 0; }
.notes-filter-card__icon,
.notes-result-heading__icon {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #70a9ff, #2c70ff);
  box-shadow: 0 8px 14px #4c88ff30;
  font-size: 24px;
}
.notes-filter-card__copy { min-width: 0; }
.notes-filter-card__copy .notes-eyebrow { margin-bottom: 3px; font-size: 10px; letter-spacing: .16em; }
.notes-filter-card h2 { margin: 0; color: #0a1b50; font-size: 22px; line-height: 1.35; }
.notes-filter-card__copy > p:last-child { margin: 4px 0 0; color: #7085aa; font-size: 14px; line-height: 1.5; }
.notes-level-badge { flex: 0 0 auto; margin-left: auto; padding: 10px 17px; border: 1px solid #d4e5ff; border-radius: 999px; color: #3275ee; background: #eff6ff; font-size: 14px; }
.notes-dashboard-page .notes-toolbar { grid-template-columns: minmax(150px, .85fr) minmax(170px, 1fr) minmax(220px, 1.55fr) auto auto; gap: 12px; }
.notes-dashboard-page .notes-toolbar label { color: #6581a8; font-size: 13px; }
.notes-dashboard-page .notes-toolbar select,
.notes-dashboard-page .notes-toolbar input { min-height: 48px; border: 1px solid #d8e7fb; border-radius: 13px; color: #17305d; background: #f8fbff; }
.notes-dashboard-page .notes-toolbar select:focus,
.notes-dashboard-page .notes-toolbar input:focus { border-color: #72a7ff; outline: 3px solid #a9ceff55; }
.notes-dashboard-page .notes-toolbar .word-action { min-height: 48px; padding: 10px 20px; border-radius: 13px; white-space: nowrap; font-weight: 700; }
.notes-dashboard-page #notesSearchButton { border: 0; color: #fff; background: linear-gradient(120deg, #548bff, #2468ff); box-shadow: 0 7px 15px #3477ee25; }
.notes-dashboard-page #notesQuickNoteButton { border: 1px solid #c9dcff; color: #3478ee; background: #eff6ff; }

.notes-dashboard-page .notes-result-section { gap: 16px; margin: 0; }
.notes-result-heading { display: flex; align-items: center; gap: 16px; margin: 3px 0 0; }
.notes-result-heading__icon { flex-basis: 42px; width: 42px; height: 42px; border-radius: 12px; color: #568cff; background: #e6f0ff; box-shadow: none; font-size: 22px; }
.notes-result-heading h2 { margin: 0; color: #0a1b50; font-size: 24px; line-height: 1.35; }
.notes-dashboard-page .notes-status { min-height: 0; margin: 2px 0 0; color: #7085aa; font-size: 14px; }
.notes-dashboard-page .notes-status.is-error { color: #c54d5f; }
.notes-dashboard-page .notes-list { gap: 14px; }

.notes-dashboard-page .note-review-card,
.notes-dashboard-page .notes-empty {
  gap: 15px;
  padding: 22px 24px;
  border: 1px solid #dfeaff;
  border-radius: 19px;
  background: linear-gradient(120deg, #fff 28%, #f5f9ff);
  box-shadow: 0 10px 25px #b6d1f218;
}
.notes-dashboard-page .note-review-card[data-module="grammar"] { border-color: #e8e1ff; background: linear-gradient(120deg, #fff 28%, #faf7ff); }
.notes-dashboard-page .note-review-card[data-module="vocab"] { border-color: #dceaff; background: linear-gradient(120deg, #fff 28%, #f5f9ff); }
.notes-dashboard-page .note-review-card[data-module="reading"] { border-color: #daf2ed; background: linear-gradient(120deg, #fff 28%, #f5fcfa); }
.notes-dashboard-page .note-review-card__top { gap: 12px; }
.notes-dashboard-page .note-review-card__meta { gap: 7px; }
.notes-dashboard-page .note-review-card__meta span { padding: 6px 11px; border-radius: 999px; color: #3977e8; background: #eaf2ff; font-size: 12px; font-weight: 700; }
.notes-dashboard-page .note-review-card[data-module="grammar"] .note-review-card__meta span { color: #8058ce; background: #f1ebff; }
.notes-dashboard-page .note-review-card[data-module="reading"] .note-review-card__meta span { color: #1b9a85; background: #e6f8f2; }
.notes-dashboard-page .note-review-card__edit,
.notes-dashboard-page .note-review-card__delete { min-height: 34px; padding: 7px 13px; border-radius: 999px; font-size: 12px; }
.notes-dashboard-page .note-review-card__edit { border-color: #cfe0fa; color: #3476e8; background: #f6faff; }
.notes-dashboard-page .note-review-card__delete { border-color: #ffe1e5; color: #d45e70; background: #fff7f8; }
.notes-dashboard-page .note-review-card__edit:hover { border-color: #8db6f7; background: #eaf3ff; }
.notes-dashboard-page .note-review-card__delete:hover { border-color: #f2afbb; background: #fff0f3; }
.notes-dashboard-page .note-review-card__content { color: #17305d; font-size: 15px; font-weight: 600; line-height: 1.9; }
.notes-dashboard-page .note-review-card__question { padding: 0; border: 1px solid #e3ecfa; border-radius: 13px; background: #fff; overflow: hidden; }
.notes-dashboard-page .note-review-card__question summary { padding: 12px 15px; color: #3e75d6; font-size: 13px; }
.notes-dashboard-page .note-review-card__question p { margin: 0; padding: 0 15px 15px; color: #61799d; }
.notes-dashboard-page .note-review-card__quiz-trigger { min-height: 44px; padding: 12px 15px; border: 1px solid #e3ecfa; border-radius: 13px; color: #3e75d6; background: #fff; font-size: 13px; }
.notes-dashboard-page .note-review-card__quiz-trigger:hover { background: #edf5ff; }
.notes-dashboard-page .note-review-card__footer { padding-top: 3px; color: #8194b1; font-size: 12px; }
.notes-dashboard-page .note-review-card__editor-input { border-color: #d8e7fb; background: #fff; }
.notes-dashboard-page .note-review-card__editor-input:focus { border-color: #72a7ff; box-shadow: 0 0 0 3px #a9ceff55; }
.notes-dashboard-page .note-review-card__save { border-color: #367aff; background: #367aff; }
.notes-dashboard-page .note-review-card__cancel { border-color: #d3e3fa; color: #3975dd; background: #f3f8ff; }
.notes-dashboard-page .note-quiz-panel { border-color: #d9e8fd; background: #f7fbff; }
.notes-dashboard-page .note-quiz-option { border-color: #dce9fa; color: #17305d; background: #fff; }
.notes-dashboard-page .note-quiz-option span { color: #3975e8; background: #eaf3ff; }
.notes-dashboard-page .note-quiz-option:hover,
.notes-dashboard-page .note-quiz-option.selected { border-color: #8eb6fa; background: #edf5ff; }
.notes-dashboard-page .note-quiz-option.correct { border-color: #74cdb4; background: #ebf9f4; }
.notes-dashboard-page .note-quiz-option.wrong { border-color: #f2adb7; background: #fff0f2; }
.notes-dashboard-page .notes-empty { min-height: 180px; align-content: center; text-align: center; }
.notes-dashboard-page .notes-empty strong { color: #17305d; font-size: 20px; }
.notes-dashboard-page .notes-empty p { color: #7085aa; }

.notes-dashboard-page .mixed-note-overlay { background: rgba(13, 34, 79, .46); }
.notes-dashboard-page .mixed-note-dialog { border-color: #dfeaff; border-radius: 22px; background: #fff; }
.notes-dashboard-page .mixed-note-dialog__eyebrow { color: #397bff; }
.notes-dashboard-page .mixed-note-dialog__head h2 { color: #0a1b50; }
.notes-dashboard-page .mixed-note-field select,
.notes-dashboard-page .mixed-note-field textarea { border-color: #d8e7fb; color: #17305d; background: #f8fbff; }
.notes-dashboard-page .mixed-note-actions .primary-btn { border-color: #397bff; background: #397bff; }
.notes-dashboard-page .mixed-note-actions .secondary-link { border-color: #cfe0fa; color: #3975dd; background: #eff6ff; }
.notes-dashboard-page a:focus-visible,
.notes-dashboard-page button:focus-visible,
.notes-dashboard-page select:focus-visible,
.notes-dashboard-page input:focus-visible { outline: 3px solid #79aaff; outline-offset: 3px; }

@media (max-width: 1000px) {
  .notes-hero__bubble { display: none; }
  .notes-hero__description { max-width: 70%; }
  .notes-dashboard-page .notes-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .notes-dashboard-page .notes-toolbar__search { grid-column: 1 / -1; }
  .notes-dashboard-page .notes-toolbar .word-action { width: 100%; }
}

@media (max-width: 650px) {
  .notes-dashboard-page .notes-dashboard-shell { width: calc(100% - 24px); padding: 12px 0 32px; }
  .notes-dashboard { gap: 16px; }
  .notes-topbar { min-height: 64px; margin-bottom: 16px; padding: 10px 12px; border-radius: 17px; }
  .notes-brand { gap: 8px; }
  .notes-brand__icon { width: 36px; height: 36px; font-size: 19px; }
  .notes-brand strong { font-size: 14px; }
  .notes-brand small { font-size: 11px; }
  .notes-back { padding: 9px 11px; font-size: 12px; }
  .notes-hero { min-height: 260px; padding: 25px 18px; border-radius: 18px; background-position: 60% center; }
  .notes-hero .notes-eyebrow { margin-bottom: 14px; font-size: 10px; letter-spacing: .16em; }
  .notes-hero h1 { font-size: clamp(26px, 7vw, 39px); }
  .notes-hero__description { max-width: 88%; margin: 15px 0; font-size: 12px; line-height: 1.65; }
  .notes-hero__description br { display: none; }
  .notes-hero__tags { gap: 6px; }
  .notes-hero__tags span { padding: 6px 10px; font-size: 11px; }
  .notes-hero__bubble { display: none; }
  .notes-filter-card { gap: 19px; padding: 19px 15px; border-radius: 18px; }
  .notes-filter-card__heading { gap: 10px; align-items: flex-start; }
  .notes-filter-card__icon { flex-basis: 38px; width: 38px; height: 38px; border-radius: 11px; font-size: 18px; }
  .notes-filter-card h2 { font-size: 18px; }
  .notes-filter-card__copy > p:last-child { font-size: 11px; }
  .notes-level-badge { padding: 6px 9px; font-size: 11px; }
  .notes-dashboard-page .notes-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .notes-dashboard-page .notes-toolbar label { font-size: 12px; }
  .notes-dashboard-page .notes-toolbar select,
  .notes-dashboard-page .notes-toolbar input { min-height: 42px; font-size: 13px; }
  .notes-dashboard-page .notes-toolbar .word-action { min-height: 42px; font-size: 12px; }
  .notes-result-heading { gap: 10px; }
  .notes-result-heading__icon { flex-basis: 36px; width: 36px; height: 36px; font-size: 18px; }
  .notes-result-heading h2 { font-size: 20px; }
  .notes-dashboard-page .notes-status { font-size: 11px; }
  .notes-dashboard-page .note-review-card,
  .notes-dashboard-page .notes-empty { gap: 12px; padding: 16px 14px; border-radius: 16px; }
  .notes-dashboard-page .note-review-card__top { flex-direction: column; align-items: stretch; }
  .notes-dashboard-page .note-review-card__top-actions { justify-content: flex-start; }
  .notes-dashboard-page .note-review-card__content { font-size: 13px; line-height: 1.8; }
  .notes-dashboard-page .note-review-card__meta span { font-size: 10px; }
}

@media (max-width: 400px) {
  .notes-brand strong { font-size: 12px; }
  .notes-back span { display: none; }
  .notes-level-badge { align-self: center; }
  .notes-filter-card__heading { flex-wrap: wrap; }
  .notes-level-badge { margin-left: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .notes-dashboard-page .notes-hero__bubble { transform: none; }
}
