body[data-spell-check] .page > :not(#spell-check) { display: none !important; }
body:not([data-spell-check]) #spell-check { display: none !important; }
html.verba-pro.elegant-ui body[data-spell-check] #eToolsDialog #nav button:hover { background: #fff !important; }
#nav #spell-menu { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 12px; border-radius: 10px; color: #4b4757; text-decoration: none; font-size: 14px; }
#nav #spell-menu[aria-current="page"] { background: #f0ebf8; color: #6c53a8; font-weight: 650; }
#nav #spell-menu > span:first-child { color: #7962b5; font-size: 12px; width: 19px; }
#nav #spell-menu[aria-current="page"]::after { content: '✓'; margin-inline-start: auto; }
#nav #spell-menu[hidden] { display: none; }
#spell-check { --spell-purple: #7962b5; --spell-border: #e4dfed; --spell-muted: #667085; }
#spell-check [hidden] { display: none !important; }
#spell-check .spell-heading { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
#spell-check .spell-icon { display: grid; place-items: center; flex: 0 0 48px; height: 48px; border-radius: 13px; background: #f0ebf8; color: var(--spell-purple); font-weight: 700; }
#spell-check h1 { font-size: 24px; line-height: 1.4; font-weight: 650; margin: 0; }
#spell-check .spell-heading p { font-size: 14px; color: var(--spell-muted); margin: 4px 0 0; }
#spell-check .spell-note { margin: 0 0 16px; background: #f5f2f9; border: 1px solid var(--spell-border); padding: 11px 16px; border-radius: 10px; color: #5f5375; font-size: 13px; line-height: 1.65; }
#spell-check .spell-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
#spell-check .spell-panel { background: #fff; border: 1px solid var(--spell-border); border-radius: 14px; min-width: 0; }
#spell-check .spell-panel-head { min-height: 64px; padding: 10px 17px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--spell-border); font-weight: 650; }
#spell-check h2 { font: inherit; margin: 0; }
#spell-count { font-size: 13px; font-weight: 500; color: var(--spell-muted); }
html.verba-pro.elegant-ui #spell-check #spell-source, #spell-check .spell-review { width: 100%; min-height: 240px; max-height: 480px; overflow: auto; margin: 0; padding: 16px 17px; font-size: 16px !important; line-height: 1.85 !important; }
html.verba-pro.elegant-ui #spell-check #spell-source { display: block; border: 0 !important; border-radius: 0 !important; }
#spell-check #spell-source:focus-visible { outline-offset: -3px !important; }
#spell-check .spell-review { white-space: pre-wrap; overflow-wrap: anywhere; }
#spell-check .spell-placeholder { color: var(--spell-muted); font-size: 14px; margin: 0; }
#spell-check button { min-height: 40px; padding: 6px 12px; border: 1px solid var(--spell-border); border-radius: 8px; background: #fff; color: #67528f; font-size: 13px; font-weight: 600; cursor: pointer; }
#spell-check button:disabled { opacity: .62; cursor: default; }
#spell-check .spell-mark { display: inline; min-height: 0; padding: 0; border: 0; border-radius: 3px; color: inherit; background: transparent; font: inherit; line-height: inherit; text-decoration: underline wavy #b73554; text-underline-offset: 4px; }
#spell-check .spell-mark[aria-pressed="true"] { background: #faedf2; }
#spell-check .spell-choice { padding: 12px 17px; border-top: 1px solid var(--spell-border); background: #faf7fc; }
#spell-check .spell-choice p { margin: 0 0 7px; overflow-wrap: anywhere; }
#spell-check .spell-primary { color: #fff; background: var(--spell-purple); }
#spell-check .spell-primary:not(:disabled):hover { background: #6c53a8; }
#spell-check .spell-next, #spell-check .spell-footer { border-top: 1px solid var(--spell-border); margin: 0; padding: 11px 17px; color: var(--spell-muted); font-size: 13px; }
#spell-check .spell-next p { margin: 6px 0 0; }
#spell-check .spell-bank-link { margin-inline-start: auto; align-self: center; padding: 8px 12px; border: 1px solid var(--spell-border); border-radius: 9px; text-decoration: none; color: #66548d; background: #fff; font-size: 13px; white-space: nowrap; }
#spell-check .bank-card-note, #spell-check .bank-example { font-size: 14px; margin: 7px 0; line-height: 1.65; }
#spell-check .bank-source { font-size: 11px; margin: 7px 0; color: var(--spell-muted); overflow-wrap: anywhere; }
#spell-check .bank-source a, #spell-check .bank-credits a { color: #65508e; }
#spell-check .bank-example { background: #f5f2f9; border-radius: 8px; padding: 7px 10px; overflow-wrap: anywhere; }
#spell-check .spell-choice .bank-example { background: #fff; }
#spell-check .bank-filters { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 14px; background: #fff; border: 1px solid var(--spell-border); border-radius: 14px; margin-bottom: 14px; }
#spell-check .bank-filters label { display: grid; gap: 5px; min-width: 0; font-size: 13px; font-weight: 650; }
#spell-check .bank-filters input, #spell-check .bank-filters select { width: 100%; min-width: 0; min-height: 42px; padding: 7px 10px; }
#spell-check #bank-summary { font-size: 14px; color: var(--spell-muted); }
#spell-check .bank-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
#spell-check .bank-card { min-width: 0; background: #fff; border: 1px solid var(--spell-border); border-radius: 12px; padding: 12px 14px; }
#spell-check .bank-card summary { cursor: pointer; font-weight: 650; line-height: 1.7; overflow-wrap: anywhere; }
#spell-check .bank-category { color: #685480; background: #f0ebf8; display: inline-block; border-radius: 6px; padding: 3px 7px; margin-top: 8px; }
#spell-check .bank-pages { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 18px 0; font-size: 13px; }
#spell-check .bank-pages button { width: auto !important; }
#spell-check .bank-pages span { white-space: nowrap; }
#spell-check .bank-credits { color: var(--spell-muted); font-size: 13px; }
#spell-check .bank-credits ul { padding-inline-start: 22px; }

@media (max-width: 760px) {
  body[data-spell-check] .ph-btn { display: none !important; }
  #spell-check .spell-heading { gap: 12px; margin-bottom: 15px; }
  #spell-check .spell-heading { display: grid; grid-template-columns: auto minmax(0, 1fr); }
  #spell-check .spell-bank-link { grid-column: 2; margin-inline-start: 0; justify-self: start; }
  #spell-check .spell-icon { flex-basis: 44px; width: 44px; height: 44px; }
  #spell-check h1 { font-size: 22px; }
  #spell-check .spell-columns { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  #spell-check .spell-panel-head { min-height: 53px; }
  #spell-check .bank-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #spell-check .bank-filters label:first-child { grid-column: 1 / -1; }
  #spell-check .bank-grid { grid-template-columns: 1fr; }
  html.verba-pro.elegant-ui #spell-check #spell-source, #spell-check .spell-review { min-height: 145px; max-height: 280px; }
}
