/* Final flat 3D button layer: one warm style, no gradients, no black edge. */
body :is(
  .btn,
  .meow-btn,
  .kp-btn,
  .admin-btn,
  .hero-btn,
  .overview-btn,
  .activation-btn,
  .filter-btn,
  .favorite-filter,
  .plan-action,
  .promo-apply,
  .meow-game-action,
  .meow-game-window-open,
  .meow-save-lib-btn,
  .meow-taskgen-btn,
  .meow-template-btn,
  .play-btn,
  .create-quiz-btn,
  .process-btn,
  .start-btn,
  .primary,
  .secondary,
  .danger,
  .gh-listen-btn,
  .gh-sw-btn,
  .gh-concept-btn,
  .gh-match-btn,
  .gh-formula-btn,
  .gh-code-btn,
  .gh-parsons-btn,
  .gh-snake-btn,
  .gh-text-btn,
  .gh-flash-btn,
  .gh-solver-btn,
  .gh-solver-hint-btn,
  .q-action-btn,
  .meow-dialog-btn
):not(.status-action):not(.demo-cta):not(.word):not(.gh-sw-word):not(.dialog-btn):not(.game-card):not(.game-choice):not(.choice-option):not(.nav-tab):not(.line-btn):not(.option):not(.math-spot-line):not(.math-line):not([data-answer]):not(.meow-user-card):not(.meow-language-trigger):not(.emoji-trigger):not(.close-btn):not(.meow-template-close):not(.meow-taskgen-close):not(.back-btn):not(.icon-btn):not(.meow-notes-launcher):not(.meow-notes-inline-marker):not(.toggle-password):not([data-toggle-password]) {
  background: #fff7e8 !important;
  background-image: none !important;
  border: 1.5px solid #b98545 !important;
  color: #3b2817 !important;
  box-shadow: 0 3px 0 #9b6b34, 0 12px 22px rgba(111, 75, 32, .14) !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}

body :is(
  .btn,
  .meow-btn,
  .kp-btn,
  .admin-btn,
  .hero-btn,
  .overview-btn,
  .activation-btn,
  .filter-btn,
  .favorite-filter,
  .plan-action,
  .promo-apply,
  .meow-game-action,
  .meow-game-window-open,
  .meow-save-lib-btn,
  .meow-taskgen-btn,
  .meow-template-btn,
  .play-btn,
  .create-quiz-btn,
  .process-btn,
  .start-btn,
  .primary,
  .secondary,
  .danger,
  .gh-listen-btn,
  .gh-sw-btn,
  .gh-concept-btn,
  .gh-match-btn,
  .gh-formula-btn,
  .gh-code-btn,
  .gh-parsons-btn,
  .gh-snake-btn,
  .gh-text-btn,
  .gh-flash-btn,
  .gh-solver-btn,
  .gh-solver-hint-btn,
  .q-action-btn,
  .meow-dialog-btn
):not(.status-action):not(.demo-cta):not(.word):not(.gh-sw-word):not(.dialog-btn):not(.game-card):not(.game-choice):not(.choice-option):not(.nav-tab):not(.line-btn):not(.option):not(.math-spot-line):not(.math-line):not([data-answer]):not(.meow-user-card):not(.meow-language-trigger):not(.emoji-trigger):not(.close-btn):not(.meow-template-close):not(.meow-taskgen-close):not(.back-btn):not(.icon-btn):not(.meow-notes-launcher):not(.meow-notes-inline-marker):not(.toggle-password):not([data-toggle-password]):hover {
  transform: translateY(-2px) scale(1.015) !important;
  background: #fff7e8 !important;
  background-image: none !important;
  border-color: #b98545 !important;
  box-shadow: 0 6px 0 #9b6b34, 0 18px 30px rgba(111, 75, 32, .20) !important;
}

body :is(
  .btn,
  .meow-btn,
  .kp-btn,
  .admin-btn,
  .hero-btn,
  .overview-btn,
  .activation-btn,
  .filter-btn,
  .favorite-filter,
  .plan-action,
  .promo-apply,
  .meow-game-action,
  .meow-save-lib-btn,
  .meow-taskgen-btn,
  .meow-template-btn,
  .play-btn,
  .create-quiz-btn,
  .process-btn,
  .start-btn,
  .primary,
  .secondary,
  .danger,
  .gh-listen-btn,
  .gh-sw-btn,
  .gh-concept-btn,
  .gh-match-btn,
  .gh-formula-btn,
  .gh-code-btn,
  .gh-parsons-btn,
  .gh-snake-btn,
  .gh-text-btn,
  .gh-flash-btn,
  .gh-solver-btn,
  .gh-solver-hint-btn,
  .q-action-btn,
  .meow-dialog-btn
):not(.status-action):not(.demo-cta):not(.word):not(.gh-sw-word):not(.dialog-btn):not(.game-card):not(.game-choice):not(.choice-option):not(.nav-tab):not(.line-btn):not(.option):not(.math-spot-line):not(.math-line):not([data-answer]):not(.meow-user-card):not(.meow-language-trigger):not(.emoji-trigger):not(.close-btn):not(.meow-template-close):not(.meow-taskgen-close):not(.back-btn):not(.icon-btn):not(.meow-notes-launcher):not(.meow-notes-inline-marker):not(.toggle-password):not([data-toggle-password]):active,
body :is(
  .btn.active,
  .btn.is-active,
  .meow-btn.active,
  .meow-btn.is-active,
  .meow-game-action.active,
  .meow-game-action.is-active,
  .meow-template-btn.active,
  .meow-template-btn.is-active,
  .filter-btn.is-active,
  .plan-action.is-current:not(.status-action),
  .plan-action[aria-current="true"]:not(.status-action)
) {
  transform: translateY(3px) !important;
  background: #f5d59d !important;
  background-image: none !important;
  border-color: #b98545 !important;
  box-shadow: 0 1px 0 #9b6b34, 0 8px 14px rgba(111, 75, 32, .12) !important;
}

body :is(.danger, .btn.danger, .admin-btn.danger):not(.meow-dialog-btn) {
  background: #ffe9e9 !important;
  background-image: none !important;
  border-color: #c77b7b !important;
  color: #6f1f1f !important;
  box-shadow: 0 3px 0 #9c5a5a, 0 12px 22px rgba(123, 65, 65, .12) !important;
}

body :is(.danger, .btn.danger, .admin-btn.danger):not(.meow-dialog-btn):hover {
  box-shadow: 0 4px 0 #9c5a5a, 0 15px 24px rgba(123, 65, 65, .14) !important;
}

body :is(.btn:disabled, .meow-game-action:disabled, .meow-save-lib-btn:disabled) {
  background: #fffaf2 !important;
  background-image: none !important;
  border-color: #d8c4a7 !important;
  color: #9a8d7c !important;
  box-shadow: 0 2px 0 #c7ad86 !important;
  transform: none !important;
}

html[data-theme="dark"] body :is(
  .btn,
  .meow-btn,
  .kp-btn,
  .admin-btn,
  .hero-btn,
  .overview-btn,
  .activation-btn,
  .filter-btn,
  .favorite-filter,
  .plan-action,
  .promo-apply,
  .meow-game-action,
  .meow-save-lib-btn,
  .meow-taskgen-btn,
  .meow-template-btn,
  .play-btn,
  .create-quiz-btn,
  .process-btn,
  .start-btn,
  .primary,
  .secondary,
  .danger,
  .gh-listen-btn,
  .gh-sw-btn,
  .gh-concept-btn,
  .gh-match-btn,
  .gh-formula-btn,
  .gh-code-btn,
  .gh-parsons-btn,
  .gh-snake-btn,
  .gh-text-btn,
  .gh-flash-btn,
  .gh-solver-btn,
  .gh-solver-hint-btn,
  .q-action-btn,
  .meow-dialog-btn
):not(.status-action):not(.demo-cta):not(.word):not(.gh-sw-word):not(.dialog-btn):not(.game-card):not(.game-choice):not(.choice-option):not(.nav-tab):not(.line-btn):not(.option):not(.math-spot-line):not(.math-line):not([data-answer]):not(.meow-user-card):not(.meow-language-trigger):not(.emoji-trigger):not(.close-btn):not(.meow-template-close):not(.meow-taskgen-close):not(.back-btn):not(.icon-btn):not(.meow-notes-launcher):not(.meow-notes-inline-marker):not(.toggle-password):not([data-toggle-password]),
body.meow-dark :is(
  .btn,
  .meow-btn,
  .kp-btn,
  .admin-btn,
  .hero-btn,
  .overview-btn,
  .activation-btn,
  .filter-btn,
  .favorite-filter,
  .plan-action,
  .promo-apply,
  .meow-game-action,
  .meow-save-lib-btn,
  .meow-taskgen-btn,
  .meow-template-btn,
  .play-btn,
  .create-quiz-btn,
  .process-btn,
  .start-btn,
  .primary,
  .secondary,
  .danger,
  .gh-listen-btn,
  .gh-sw-btn,
  .gh-concept-btn,
  .gh-match-btn,
  .gh-formula-btn,
  .gh-code-btn,
  .gh-parsons-btn,
  .gh-snake-btn,
  .gh-text-btn,
  .gh-flash-btn,
  .gh-solver-btn,
  .gh-solver-hint-btn,
  .q-action-btn,
  .meow-dialog-btn
):not(.status-action):not(.demo-cta):not(.word):not(.gh-sw-word):not(.dialog-btn):not(.game-card):not(.game-choice):not(.choice-option):not(.nav-tab):not(.line-btn):not(.option):not(.math-spot-line):not(.math-line):not([data-answer]):not(.meow-user-card):not(.meow-language-trigger):not(.emoji-trigger):not(.close-btn):not(.meow-template-close):not(.meow-taskgen-close):not(.back-btn):not(.icon-btn):not(.meow-notes-launcher):not(.meow-notes-inline-marker):not(.toggle-password):not([data-toggle-password]) {
  background: #202838 !important;
  background-image: none !important;
  border-color: #4b5568 !important;
  color: #f4f0ff !important;
  box-shadow: 0 3px 0 #0f172a, 0 12px 22px rgba(0, 0, 0, .24) !important;
}

html[data-theme="dark"] body :is(
  .btn,
  .meow-btn,
  .kp-btn,
  .admin-btn,
  .hero-btn,
  .overview-btn,
  .activation-btn,
  .filter-btn,
  .favorite-filter,
  .plan-action,
  .promo-apply,
  .meow-game-action,
  .meow-save-lib-btn,
  .meow-taskgen-btn,
  .meow-template-btn,
  .play-btn,
  .create-quiz-btn,
  .process-btn,
  .start-btn,
  .primary,
  .secondary,
  .danger,
  .gh-listen-btn,
  .gh-sw-btn,
  .gh-concept-btn,
  .gh-match-btn,
  .gh-formula-btn,
  .gh-code-btn,
  .gh-parsons-btn,
  .gh-snake-btn,
  .gh-text-btn,
  .gh-flash-btn,
  .gh-solver-btn,
  .gh-solver-hint-btn,
  .q-action-btn,
  .meow-dialog-btn
):not(.status-action):not(.demo-cta):not(.word):not(.gh-sw-word):not(.dialog-btn):not(.game-card):not(.game-choice):not(.choice-option):not(.nav-tab):not(.line-btn):not(.option):not(.math-spot-line):not(.math-line):not([data-answer]):not(.meow-user-card):not(.meow-language-trigger):not(.emoji-trigger):not(.close-btn):not(.meow-template-close):not(.meow-taskgen-close):not(.back-btn):not(.icon-btn):not(.meow-notes-launcher):not(.meow-notes-inline-marker):not(.toggle-password):not([data-toggle-password]):hover,
body.meow-dark :is(
  .btn,
  .meow-btn,
  .kp-btn,
  .admin-btn,
  .hero-btn,
  .overview-btn,
  .activation-btn,
  .filter-btn,
  .favorite-filter,
  .plan-action,
  .promo-apply,
  .meow-game-action,
  .meow-save-lib-btn,
  .meow-taskgen-btn,
  .meow-template-btn,
  .play-btn,
  .create-quiz-btn,
  .process-btn,
  .start-btn,
  .primary,
  .secondary,
  .danger,
  .gh-listen-btn,
  .gh-sw-btn,
  .gh-concept-btn,
  .gh-match-btn,
  .gh-formula-btn,
  .gh-code-btn,
  .gh-parsons-btn,
  .gh-snake-btn,
  .gh-text-btn,
  .gh-flash-btn,
  .gh-solver-btn,
  .gh-solver-hint-btn,
  .q-action-btn,
  .meow-dialog-btn
):not(.status-action):not(.demo-cta):not(.word):not(.gh-sw-word):not(.dialog-btn):not(.game-card):not(.game-choice):not(.choice-option):not(.nav-tab):not(.line-btn):not(.option):not(.math-spot-line):not(.math-line):not([data-answer]):not(.meow-user-card):not(.meow-language-trigger):not(.emoji-trigger):not(.close-btn):not(.meow-template-close):not(.meow-taskgen-close):not(.back-btn):not(.icon-btn):not(.meow-notes-launcher):not(.meow-notes-inline-marker):not(.toggle-password):not([data-toggle-password]):hover {
  transform: translateY(-2px) scale(1.015) !important;
  background: #202838 !important;
  background-image: none !important;
  border-color: #64748b !important;
  color: #ffffff !important;
  box-shadow: 0 6px 0 #0f172a, 0 18px 30px rgba(0, 0, 0, .34) !important;
}

html[data-theme="dark"] body :is(
  .btn.active,
  .btn.is-active,
  .meow-btn.active,
  .meow-btn.is-active,
  .filter-btn.active,
  .filter-btn.is-active,
  .favorite-filter.active,
  .favorite-filter.is-active,
  .meow-game-action.active,
  .meow-game-action.is-active,
  .meow-template-btn.active,
  .meow-template-btn.is-active,
  .plan-action.is-current:not(.status-action),
  .plan-action[aria-current="true"]:not(.status-action)
),
body.meow-dark :is(
  .btn.active,
  .btn.is-active,
  .meow-btn.active,
  .meow-btn.is-active,
  .filter-btn.active,
  .filter-btn.is-active,
  .favorite-filter.active,
  .favorite-filter.is-active,
  .meow-game-action.active,
  .meow-game-action.is-active,
  .meow-template-btn.active,
  .meow-template-btn.is-active,
  .plan-action.is-current:not(.status-action),
  .plan-action[aria-current="true"]:not(.status-action)
) {
  transform: translateY(3px) !important;
  background: #2c3648 !important;
  background-image: none !important;
  border-color: #64748b !important;
  color: #ffffff !important;
  box-shadow: 0 1px 0 #0f172a, 0 8px 14px rgba(0, 0, 0, .26) !important;
}

html[data-theme="dark"] body :is(.danger, .btn.danger, .admin-btn.danger):not(.meow-dialog-btn),
body.meow-dark :is(.danger, .btn.danger, .admin-btn.danger):not(.meow-dialog-btn) {
  background: #3a2026 !important;
  background-image: none !important;
  border-color: #7f4b55 !important;
  color: #ffd8de !important;
  box-shadow: 0 3px 0 #241116, 0 12px 22px rgba(0, 0, 0, .24) !important;
}

html[data-theme="dark"] body :is(.btn:disabled, .meow-game-action:disabled, .meow-save-lib-btn:disabled),
body.meow-dark :is(.btn:disabled, .meow-game-action:disabled, .meow-save-lib-btn:disabled) {
  background: #1a2230 !important;
  background-image: none !important;
  border-color: #374151 !important;
  color: #7d8798 !important;
  box-shadow: 0 2px 0 #0f172a !important;
  transform: none !important;
}

/* Notes and tiny icon controls own their visuals; global button skin must not flatten them. */
body .meow-notes-launcher {
  border: 1px solid rgba(217, 190, 151, .82) !important;
  border-radius: 999px !important;
  padding: 7px 18px 7px 5px !important;
  min-height: 60px !important;
  color: #2f2444 !important;
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(255,243,220,.96)) !important;
  box-shadow: 0 12px 30px rgba(82,51,22,.16), inset 0 1px 0 rgba(255,255,255,.72) !important;
  font: 900 15px/1 "Segoe UI", system-ui, sans-serif !important;
  transform: none !important;
}

body .meow-notes-launcher:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(176, 127, 216, .52) !important;
  box-shadow: 0 16px 34px rgba(82,51,22,.18), 0 0 0 4px rgba(185,133,69,.10) !important;
}

html[data-theme="dark"] body .meow-notes-launcher,
body.meow-dark .meow-notes-launcher,
html[data-theme="dark"] body .meow-notes-launcher:hover,
body.meow-dark .meow-notes-launcher:hover {
  color: #2f2444 !important;
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(255,243,220,.96)) !important;
}

html[data-theme="dark"] body .meow-notes-launcher,
body.meow-dark .meow-notes-launcher {
  box-shadow: 0 12px 30px rgba(82,51,22,.16), inset 0 1px 0 rgba(255,255,255,.72) !important;
}

html[data-theme="dark"] body .meow-notes-launcher:hover,
body.meow-dark .meow-notes-launcher:hover {
  box-shadow: 0 16px 34px rgba(82,51,22,.18), 0 0 0 4px rgba(185,133,69,.10) !important;
}

body .meow-notes-panel :is(.mn-icon, .mn-tool) {
  border: 1.5px solid #b98545 !important;
  border-radius: 999px !important;
  background: #fff7e8 !important;
  background-image: none !important;
  color: #3b2817 !important;
  padding: 0 16px !important;
  min-width: 0 !important;
  min-height: 40px !important;
  width: auto !important;
  height: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  font: 800 14px/1 "Segoe UI", system-ui, sans-serif !important;
  letter-spacing: 0 !important;
  box-shadow: 0 3px 0 #9b6b34, 0 12px 22px rgba(111,75,32,.14) !important;
  transform: none !important;
  transition: transform .14s ease, box-shadow .14s ease, background-color .14s ease, border-color .14s ease !important;
}

body .meow-notes-panel .mn-icon {
  min-width: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  color: #3f2a17 !important;
  background: #fff7e8 !important;
  border-color: #b98545 !important;
  box-shadow: 0 2px 0 #9b6b34, 0 10px 18px rgba(111,75,32,.12) !important;
}

body .meow-notes-panel :is(.mn-icon, .mn-tool):hover:not(:disabled) {
  background: #f5d59d !important;
  transform: translateY(-2px) scale(1.015) !important;
  box-shadow: 0 6px 0 #9b6b34, 0 18px 30px rgba(111,75,32,.20) !important;
}

body .meow-notes-panel .mn-tool.active {
  background: #f5d59d !important;
  color: #3b2817 !important;
  transform: translateY(3px) !important;
  box-shadow: 0 1px 0 #9b6b34, 0 8px 14px rgba(111,75,32,.12) !important;
}

body .meow-notes-panel .mn-tool.save {
  background: #f1c77e !important;
  color: #3b2817 !important;
  border-color: #b98545 !important;
}

body .meow-notes-panel .mn-tool.danger {
  color: #5b381d !important;
  background: #fff7e8 !important;
  border-color: #b98545 !important;
}

body .meow-notes-panel .mn-tool:disabled {
  opacity: .45 !important;
  cursor: default !important;
  transform: none !important;
}

body .meow-notes-panel .mn-pan-pad button {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  padding: 0 !important;
  border: 1.5px solid #b98545 !important;
  border-radius: 999px !important;
  background: #fff7e8 !important;
  color: #3b2817 !important;
  box-shadow: 0 3px 0 #9b6b34, 0 12px 22px rgba(111,75,32,.14) !important;
  font-size: 18px !important;
  font-weight: 950 !important;
  transform: none !important;
}

body .meow-notes-panel .mn-pan-pad button:hover {
  background: #f5d59d !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 0 #9b6b34, 0 18px 30px rgba(111,75,32,.20) !important;
}

body .meow-notes-inline-marker {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: #fff !important;
  background: linear-gradient(135deg, #111827, #2f80ed) !important;
  box-shadow: 0 8px 18px rgba(47,128,237,.28) !important;
}

body :is(.toggle-password, [data-toggle-password]) {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #717889 !important;
  transform: none !important;
  padding: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  font-weight: 700 !important;
}

html[data-theme="dark"] body :is(.toggle-password, [data-toggle-password]),
body.meow-dark :is(.toggle-password, [data-toggle-password]) {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #a8b0bf !important;
}

html[data-theme="dark"] body .meow-notes-panel :is(.mn-tool, .mn-toolbar select),
body.meow-dark .meow-notes-panel :is(.mn-tool, .mn-toolbar select) {
  background: #252b3a !important;
  color: #eef0f5 !important;
  border-color: rgba(255,255,255,.12) !important;
}

html[data-theme="dark"] body .meow-notes-panel .mn-tool.active,
body.meow-dark .meow-notes-panel .mn-tool.active {
  background: #2f80ed !important;
}

html[data-theme="dark"] body .meow-notes-panel .mn-tool.save,
body.meow-dark .meow-notes-panel .mn-tool.save {
  background: linear-gradient(135deg, #00b894, #0984e3) !important;
  color: #fff !important;
}

html[data-theme="dark"] body .meow-notes-panel .mn-pan-pad button,
body.meow-dark .meow-notes-panel .mn-pan-pad button {
  background: rgba(17,24,39,.86) !important;
  color: #eef0f5 !important;
  border-color: rgba(255,255,255,.16) !important;
}

/* Compact notes toolbar buttons (sheet) вЂ” small so the drawing area is visible. */
@media (max-width: 760px) {
  body .meow-notes-panel .mn-toolbar :is(.mn-icon, .mn-tool) {
    min-height: 32px !important;
    padding: 0 9px !important;
    font-size: 12px !important;
    gap: 5px !important;
    box-shadow: 0 2px 0 #9b6b34 !important;
  }
}
