/* Wordbook/phrasebook screens follow the legacy dark header, stage strip and
   centered navy workspace. Kept last in index.php to replace stale white-shell
   overrides without changing the word learning data/actions. */
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) {
  overflow: hidden !important;
  background: #edf3f8 !important;
  color: #18304a !important;
}

#wordbank-view .wb-entry-title .wb-expand-word {
  border: 1px solid #cbb6dd;
  border-radius: 6px;
  background: linear-gradient(180deg, #fbf7ff, #efe5f7);
  color: #68438a;
  padding: 3px 8px;
  font: inherit;
  font-size: 10px;
  cursor: pointer;
}
#wordbank-view .wb-entry-title .wb-expand-word:disabled {
  opacity: .65;
  cursor: wait;
}

/* The original no-match state is a raised paper card on the navy workspace. */
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-empty.wb-no-results {
  display: block !important;
  box-sizing: border-box !important;
  min-height: 0 !important;
  padding: 52px 20px !important;
  border: 1px solid #d2deea !important;
  border-radius: 12px !important;
  background: linear-gradient(145deg, #fff, #f1f6fa) !important;
  box-shadow: 0 5px 0 #dfe7ee, 0 10px 18px rgba(28, 51, 74, .075), inset 0 1px #fff !important;
  color: #748194 !important;
  font: 400 13px/1.8 "Microsoft YaHei UI", "Microsoft YaHei", sans-serif !important;
  text-align: center !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) .topbar {
  position: fixed !important;
  z-index: 10002 !important;
  top: 0 !important;
  right: 0 !important;
  left: 0 !important;
  display: flex !important;
  box-sizing: border-box !important;
  width: 100vw !important;
  height: 62px !important;
  min-height: 62px !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 20px !important;
  border-bottom: 2px solid #c99a35 !important;
  background: linear-gradient(105deg, #0d1b2d 0%, #18324e 55%, #203f5b 100%) !important;
  box-shadow: 0 4px 12px #07111d55 !important;
  color: #f5f0e6 !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) .topbar .brand,
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) .topbar .top-meta,
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) .topbar .top-actions {
  color: #d5e0eb !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) .topbar .brand-copy small {
  color: #aebed0 !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #detail-page-header {
  display: none !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #homeLibraryShell > .workbench-main {
  background: #edf3f8 !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view:not(.wordbank-launcher):not([hidden]) {
  position: fixed !important;
  z-index: 10001 !important;
  top: 62px !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  display: block !important;
  box-sizing: border-box !important;
  width: 100vw !important;
  height: calc(100vh - 62px) !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 0 22px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #edf3f8 !important;
  box-shadow: none !important;
  color: #18304a !important;
  scrollbar-color: #8398ac #dce5ed !important;
  scrollbar-width: thin !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view::-webkit-scrollbar {
  width: 10px;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view::-webkit-scrollbar-track {
  background: #dce5ed;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view::-webkit-scrollbar-thumb {
  border: 2px solid #dce5ed;
  border-radius: 10px;
  background: #8398ac;
}

/* Module masthead and the original upload/sync/speech controls. */
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-legacy-header {
  position: relative !important;
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 10px 0 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-bottom: 2px solid #c99a35 !important;
  border-radius: 0 !important;
  background: linear-gradient(105deg, #102238 0%, #173652 58%, #224560 100%) !important;
  box-shadow: 0 4px 0 #07142155 !important;
  color: #f3f0e8 !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-title-row {
  position: relative !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
  min-height: 66px !important;
  margin: 0 !important;
  padding: 5px 30px 9px !important;
  border: 0 !important;
  background: transparent !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-kicker {
  display: block !important;
  margin: 0 0 4px !important;
  color: #e5b94c !important;
  font: 800 10px/1.25 "Segoe UI", "Microsoft YaHei UI", sans-serif !important;
  letter-spacing: 2px !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-title-row h2 {
  margin: 0 !important;
  color: #fffaf0 !important;
  font: 800 23px/1.3 "Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", sans-serif !important;
  letter-spacing: .2px !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-title-row p {
  margin: 2px 0 0 !important;
  color: #bfcede !important;
  font: 400 11px/1.45 "Microsoft YaHei UI", "Microsoft YaHei", sans-serif !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-page-head {
  position: absolute !important;
  top: 3px !important;
  right: 24px !important;
  left: auto !important;
  z-index: 4 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  pointer-events: auto !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-page-head button {
  box-sizing: border-box !important;
  min-height: 36px !important;
  border: 1px solid #d8e7f255 !important;
  border-radius: 9px !important;
  background: #ffffff12 !important;
  color: #f0f4f7 !important;
  box-shadow: 0 3px 0 #06112040, inset 0 1px #ffffff20 !important;
  font: 700 12px/1.2 "Microsoft YaHei UI", "Microsoft YaHei", sans-serif !important;
  cursor: pointer !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-page-head .wb-back {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 13px !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-page-head .wb-close {
  position: static !important;
  width: 38px !important;
  min-width: 38px !important;
  padding: 0 !important;
  font-size: 18px !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-page-head button:hover {
  border-color: #e5b94c !important;
  background: #d5a83d33 !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-header-tools {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  box-sizing: border-box !important;
  min-height: 37px !important;
  margin: 0 !important;
  padding: 0 30px 8px !important;
  border: 0 !important;
  background: transparent !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-header-tools > button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  min-height: 30px !important;
  padding: 0 11px !important;
  border: 1px solid #d4e0eb66 !important;
  border-radius: 8px !important;
  background: #ffffff0c !important;
  color: #e5edf5 !important;
  box-shadow: inset 0 1px #ffffff12 !important;
  font: 600 11px/1.2 "Microsoft YaHei UI", "Microsoft YaHei", sans-serif !important;
  white-space: nowrap !important;
  cursor: pointer !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-header-tools > button:hover {
  border-color: #e5b94c !important;
  background: #d5a83d28 !important;
  color: #fff5d4 !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-header-tools .wb-speech-tools {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: auto !important;
  height: auto !important;
  min-height: 30px !important;
  margin: 0 0 0 auto !important;
  padding: 0 !important;
  color: #d5e0eb !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-header-tools .wb-speech-tools select {
  min-height: 30px !important;
  border: 1px solid #d4e0eb66 !important;
  border-radius: 7px !important;
  background: #10243a !important;
  color: #edf3f8 !important;
  font: 500 10px/1.2 "Microsoft YaHei UI", "Microsoft YaHei", sans-serif !important;
}

/* Legacy dark tab bar with live counts, followed by the pale stage switcher. */
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-tabs {
  display: flex !important;
  align-items: stretch !important;
  gap: 3px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-height: 43px !important;
  margin: 0 !important;
  padding: 0 20px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  border-top: 1px solid #ffffff12 !important;
  border-bottom: 1px solid #d9e5ed77 !important;
  background: linear-gradient(90deg, #12233a, #1a304a 55%, #102139) !important;
  scrollbar-color: #71869b #172a40 !important;
  scrollbar-width: thin !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-tab {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  min-height: 39px !important;
  margin: 2px 0 0 !important;
  padding: 0 12px !important;
  border: 1px solid transparent !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 9px 9px 0 0 !important;
  background: transparent !important;
  color: #d7e1eb !important;
  font: 600 11px/1.2 "Microsoft YaHei UI", "Microsoft YaHei", sans-serif !important;
  white-space: nowrap !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-tab:hover {
  background: #ffffff0e !important;
  color: #fffaf0 !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-tab.active {
  border-color: #e2c26c !important;
  border-bottom-color: #e2b747 !important;
  background: #f5f7f7 !important;
  color: #173856 !important;
  font-weight: 750 !important;
  box-shadow: 0 3px 0 #c19a41 !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-tab b {
  margin-left: 4px !important;
  color: #c99725 !important;
  font-weight: 800 !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-count-strip {
  display: none !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-stage-bar {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-height: 61px !important;
  margin: 0 !important;
  padding: 9px 24px 9px 30px !important;
  border: 0 !important;
  border-bottom: 1px solid #cad9e4 !important;
  border-radius: 0 !important;
  background: linear-gradient(180deg, #f7fafb, #e7f0f5) !important;
  box-shadow: inset 0 1px #fff !important;
  color: #183b5c !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-stage-bar-copy {
  position: static !important;
  display: flex !important;
  align-items: baseline !important;
  gap: 10px !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal !important;
  border: 0 !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-stage-bar-label {
  color: #b27b13 !important;
  font: 800 12px/1.4 "Microsoft YaHei UI", "Microsoft YaHei", sans-serif !important;
  white-space: nowrap !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view #wbStageHint {
  color: #183b5c !important;
  font: 700 12px/1.4 "Microsoft YaHei UI", "Microsoft YaHei", sans-serif !important;
  white-space: nowrap !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-stage-bar-note {
  color: #758ba0 !important;
  font: 400 10px/1.4 "Microsoft YaHei UI", "Microsoft YaHei", sans-serif !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .learning-stage-buttons {
  display: flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  gap: 2px !important;
  margin: 0 !important;
  padding: 2px !important;
  border: 1px solid #bdcddb !important;
  border-radius: 7px !important;
  background: #173754 !important;
  box-shadow: inset 0 1px #ffffff25 !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .learning-stage-btn {
  min-height: 31px !important;
  padding: 0 13px !important;
  border: 1px solid transparent !important;
  border-radius: 5px !important;
  background: transparent !important;
  color: #e5edf4 !important;
  font: 700 11px/1.2 "Microsoft YaHei UI", "Microsoft YaHei", sans-serif !important;
  cursor: pointer !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .learning-stage-btn.active {
  border-color: #e3bf5d !important;
  background: linear-gradient(180deg, #d9a52e, #b47b11) !important;
  color: #fffaf0 !important;
  box-shadow: 0 2px 0 #7d5a1b !important;
}

/* The reading/list workspace is centered on the old light page surround. */
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-body {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  min-height: calc(100vh - 228px) !important;
  margin: 0 !important;
  padding: 0 0 28px !important;
  overflow: visible !important;
  background: #edf3f8 !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-body-shell {
  box-sizing: border-box !important;
  width: min(86.5vw, 1300px) !important;
  min-height: calc(100vh - 228px) !important;
  margin: 0 auto !important;
  padding: 24px 26px 34px !important;
  border: 1px solid #263f5a !important;
  border-top: 0 !important;
  border-radius: 0 0 15px 15px !important;
  background: linear-gradient(145deg, #142a42 0%, #10253d 55%, #0e2037 100%) !important;
  box-shadow: 0 5px 0 #c8d2dc, 0 12px 26px #172f481c, inset 0 1px #ffffff0c !important;
  color: #e7eef5 !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-add-form {
  display: flex !important;
  align-items: stretch !important;
  gap: 7px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-add-fields {
  display: flex !important;
  flex: 1 1 auto !important;
  align-items: stretch !important;
  gap: 7px !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-add-fields > label {
  display: flex !important;
  flex: 1 1 0 !important;
  align-items: stretch !important;
  min-width: 0 !important;
  margin: 0 !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-add-fields > label.wb-pos-field {
  flex: 0 0 80px !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-add-fields input {
  box-sizing: border-box !important;
  width: 100% !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 13px !important;
  border: 1px solid #c4d2de !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, #fff 0%, #f4f7f8 100%) !important;
  color: #20374e !important;
  box-shadow: 0 3px 0 #c5d0da, inset 0 1px #fff !important;
  font: 400 13px/1.3 "Microsoft YaHei UI", "Microsoft YaHei", sans-serif !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-add-fields input[name="term"] {
  font-family: Georgia, "Segoe UI", sans-serif !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-add-fields input::placeholder,
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-toolbar input::placeholder {
  color: #788b9e !important;
  opacity: 1 !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-add-actions {
  display: contents !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-add-actions [data-wb-cancel] {
  display: none !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-add-actions [type="submit"] {
  flex: 0 0 auto !important;
  min-width: 54px !important;
  min-height: 34px !important;
  padding: 0 10px !important;
  border: 1px solid #e0bd59 !important;
  border-radius: 10px !important;
  background: linear-gradient(180deg, #d5a323, #b8810d) !important;
  color: #fffaf0 !important;
  box-shadow: 0 3px 0 #755720 !important;
  font: 700 12px/1.2 "Microsoft YaHei UI", "Microsoft YaHei", sans-serif !important;
  cursor: pointer !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-toolbar {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 39px !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-toolbar input[type="search"] {
  flex: 0 1 330px !important;
  width: min(330px, 100%) !important;
  min-width: 180px !important;
  height: 38px !important;
  padding: 0 13px !important;
  border: 1px solid #c4d2de !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, #fff 0%, #f4f7f8 100%) !important;
  color: #20374e !important;
  box-shadow: 0 3px 0 #c5d0da, inset 0 1px #fff !important;
  font: 400 12px/1.3 "Microsoft YaHei UI", "Microsoft YaHei", sans-serif !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-toolbar button,
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-import {
  min-height: 34px !important;
  border: 1px solid #b88719 !important;
  border-radius: 8px !important;
  background: #173653 !important;
  color: #e8eef4 !important;
  font: 600 10px/1.2 "Microsoft YaHei UI", "Microsoft YaHei", sans-serif !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-status:not(.error):not(:empty) {
  display: block !important;
  min-height: 0 !important;
  margin: 2px 0 7px !important;
  padding: 0 !important;
  color: #f0ce78 !important;
  font-size: 10px !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-status:empty {
  display: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-status.error {
  display: block !important;
  margin: 5px 0 8px !important;
  color: #ffc1ae !important;
}

/* Old word cards: light raised panels with a gold leading edge. */
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-list-heading {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  min-height: 23px !important;
  margin: 0 0 6px !important;
  padding: 0 1px !important;
  color: #c4d2df !important;
  font: 400 10px/1.4 "Microsoft YaHei UI", "Microsoft YaHei", sans-serif !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-entry-list {
  display: grid !important;
  gap: 9px !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-entry {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  box-sizing: border-box !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 13px 15px !important;
  border: 1px solid #d2deea !important;
  border-left: 4px solid #c59a45 !important;
  border-radius: 12px !important;
  background: linear-gradient(145deg, #fff, #f3f7fa) !important;
  box-shadow: 0 5px 0 #dfe7ee, 0 10px 18px rgba(28, 51, 74, .075), inset 0 1px #fff !important;
  color: #17365d !important;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-entry:hover {
  transform: translateY(-2px) !important;
  border-color: #aebfd0 !important;
  border-left-color: #c59a45 !important;
  box-shadow: 0 7px 0 #d8e3ec, 0 14px 22px rgba(28, 51, 74, .11), inset 0 1px #fff !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-entry-main {
  flex: 1 1 480px !important;
  min-width: 0 !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-entry-title {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 0 !important;
  flex-wrap: wrap !important;
  color: #183653 !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-entry-title .wb-word-display {
  color: #17365d !important;
  font: 700 17px/1.3 Cambria, Georgia, serif !important;
  letter-spacing: .15px !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-entry-title .wb-phonetic {
  color: #118d83 !important;
  font: 500 12px/1.4 Georgia, "Times New Roman", serif !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-entry-meaning {
  margin-top: 5px !important;
  color: #7389a0 !important;
  font: 400 11px/1.55 "Microsoft YaHei UI", "Microsoft YaHei", sans-serif !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-entry-meaning i {
  padding: 0 5px !important;
  color: #d3bd82 !important;
  font-style: normal !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-entry-meta {
  display: flex !important;
  gap: 6px !important;
  margin-top: 6px !important;
  color: #8b9cad !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-entry-title .wb-pos-tag,
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-entry-title .wb-multi-badge,
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-entry-title .wb-badge,
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-review-meta,
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-entry-forms .wb-form-row {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 20px !important;
  padding: 2px 7px !important;
  border: 1px solid #e5ddc8 !important;
  border-radius: 6px !important;
  background: #f5f0e4 !important;
  color: #667b90 !important;
  font: 500 9px/1.3 "Microsoft YaHei UI", "Microsoft YaHei", sans-serif !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-entry-title .wb-badge-mastered {
  border-color: #a9d3bb !important;
  background: #e5f4ea !important;
  color: #24744a !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-entry-title .wb-badge-new {
  border-color: #eadbb7 !important;
  background: #f8f0dc !important;
  color: #9c731f !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-entry-title button,
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-entry-actions button {
  box-sizing: border-box !important;
  min-height: 27px !important;
  padding: 0 9px !important;
  border: 1px solid #cdd9e2 !important;
  border-radius: 8px !important;
  background: linear-gradient(180deg, #fff, #edf3f7) !important;
  color: #24445f !important;
  box-shadow: 0 2px 0 #ced8df !important;
  font: 600 10px/1.2 "Microsoft YaHei UI", "Microsoft YaHei", sans-serif !important;
  cursor: pointer !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-entry-title .wb-word-image-button,
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-entry-title .wb-speak {
  width: 31px !important;
  min-width: 31px !important;
  padding: 0 !important;
  font-size: 13px !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-entry-title .wb-memorize-btn {
  border-color: #f0d37c !important;
  background: linear-gradient(180deg, #fff5cb, #e9c865) !important;
  color: #5f4a16 !important;
  box-shadow: 0 2px 0 #b18a2c, 0 0 13px #f3d16b66 !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-entry-title .wb-memorize-btn.is-known {
  border-color: #8bc5a4 !important;
  background: linear-gradient(180deg, #e8f8ee, #c7e8d2) !important;
  color: #1e6b43 !important;
  box-shadow: 0 2px 0 #6f9f7f !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-entry-title .wb-expand-word {
  border-color: #cbb6dd !important;
  background: linear-gradient(180deg, #fbf7ff, #efe5f7) !important;
  color: #68438a !important;
  box-shadow: 0 2px 0 #d5c4e3 !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-entry-actions {
  display: flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 6px !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-entry-actions button:first-child {
  border-color: #bdcfdb !important;
  background: #f7fafc !important;
  color: #24445f !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-entry-actions button.danger {
  border-color: #e4b9af !important;
  background: #fff8f5 !important;
  color: #a8483d !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-entry-actions button {
  border-radius: 8px !important;
  box-shadow: 0 2px 0 #e0e8ef !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-entry-forms {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 5px !important;
  margin-top: 7px !important;
  padding-top: 6px !important;
  border-top: 1px dashed #d7dfdf !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-entry-forms .wb-form-row {
  min-height: 19px !important;
  background: #eef3f6 !important;
  border-color: #d9e2e9 !important;
  color: #536e85 !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-entry-forms .wb-form-row b {
  margin-right: 5px !important;
  color: #b27d13 !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-empty {
  min-height: 180px !important;
  border: 1px dashed #526e89 !important;
  border-radius: 11px !important;
  background: #ffffff08 !important;
  color: #c4d2df !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-empty b {
  color: #f3f0e8 !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-empty span {
  color: #aebfd0 !important;
}
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-flash-card,
body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-quiz-box {
  border-color: #d0dce5 !important;
  background: linear-gradient(150deg, #fff 0%, #f7fafc 70%, #eaf1f6 100%) !important;
  box-shadow: 0 5px 0 #c2ced8, 0 12px 24px #07182a35 !important;
  color: #183653 !important;
}

@media (max-width: 760px) {
  body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) .topbar {
    height: 54px !important;
    min-height: 54px !important;
    padding: 0 10px !important;
  }
  body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) .topbar .top-meta,
  body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) .topbar .legacy-header-nav,
  body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) .topbar .power-topbar,
  body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) .topbar .ai-quota-brief,
  body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) .topbar #top-sync-button {
    display: none !important;
  }
  body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view:not(.wordbank-launcher):not([hidden]) {
    top: 54px !important;
    height: calc(100vh - 54px) !important;
  }
  body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-title-row {
    min-height: 70px !important;
    padding: 7px 12px 8px !important;
  }
  body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-title-row > div:first-child {
    max-width: calc(100% - 128px) !important;
  }
  body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-title-row h2 {
    font-size: 18px !important;
  }
  body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-title-row p {
    max-width: 46ch !important;
    font-size: 9px !important;
  }
  body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-page-head {
    top: 7px !important;
    right: 10px !important;
    gap: 5px !important;
  }
  body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-page-head button {
    min-height: 31px !important;
    font-size: 10px !important;
  }
  body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-page-head .wb-close {
    width: 32px !important;
    min-width: 32px !important;
    font-size: 15px !important;
  }
  body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-header-tools {
    min-height: 36px !important;
    gap: 5px !important;
    padding: 0 9px 7px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
  }
  body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-header-tools > button {
    min-height: 28px !important;
    padding: 0 7px !important;
    font-size: 9px !important;
  }
  body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-header-tools .wb-speech-tools {
    display: none !important;
  }
  body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-tabs {
    min-height: 40px !important;
    padding: 0 8px !important;
  }
  body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-tab {
    min-height: 36px !important;
    padding: 0 9px !important;
    font-size: 10px !important;
  }
  body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-stage-bar {
    align-items: flex-start !important;
    gap: 7px !important;
    min-height: 58px !important;
    padding: 8px 9px !important;
  }
  body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-stage-bar-copy {
    flex-wrap: wrap !important;
    gap: 3px 7px !important;
  }
  body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-stage-bar-label,
  body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view #wbStageHint {
    font-size: 9px !important;
  }
  body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-stage-bar-note {
    flex-basis: 100% !important;
    font-size: 8px !important;
  }
  body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .learning-stage-btn {
    min-height: 27px !important;
    padding: 0 7px !important;
    font-size: 9px !important;
  }
  body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-body-shell {
    width: 100% !important;
    min-height: calc(100vh - 228px) !important;
    padding: 14px 10px 24px !important;
    border-right: 0 !important;
    border-left: 0 !important;
    border-radius: 0 !important;
  }
  body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-add-form {
    flex-wrap: wrap !important;
    gap: 7px !important;
  }
  body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-add-fields {
    flex-wrap: wrap !important;
    width: 100% !important;
  }
  body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-add-fields > label {
    flex: 1 1 calc(50% - 5px) !important;
  }
  body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-add-fields > label.wb-pos-field {
    flex: 1 1 calc(50% - 5px) !important;
  }
  body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-toolbar {
    flex-wrap: wrap !important;
  }
  body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-toolbar input[type="search"] {
    flex: 1 1 100% !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-entry {
    gap: 8px !important;
    min-height: 0 !important;
    padding: 12px 11px !important;
  }
  body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-entry-actions {
    justify-content: flex-start !important;
  }
}

@media (min-width: 1401px) {
  body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-body-shell {
    padding-right: 29px !important;
    padding-left: 29px !important;
  }
  body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-add-fields > label.wb-pos-field {
    flex-basis: 88px !important;
  }
  body.detail-view-active:has(#wordbank-view:not([hidden]) .wb-legacy-header) #wordbank-view .wb-add-actions [type="submit"] {
    min-width: 58px !important;
    padding-right: 15px !important;
    padding-left: 15px !important;
  }
}
