/* V19 classified library. The v17 archive host and ordinary modal geometry stay native. */
html.activity-theme.igg-skin.feicui-ui.playable-v6.fishing-ui-v10.fishing-native-v11.activity-shell-v17 #root #modal-root > .archive-page-mask > .codex-library-v19-modal > .modal-body {
  overflow:hidden!important;
}
html.fishing-native-v11 #root #modal-root .codex-library-v19-modal .ca-library-v19 {
  display:flex; flex-direction:column; height:100%!important; min-height:0;
  gap:8px; color:#3b6c6b; font-family:var(--fish-native-body),sans-serif;
}
html.fishing-native-v11 #root #modal-root .codex-library-v19-modal .ca-library-summary {
  flex:0 0 44px; display:flex; align-items:center; gap:14px; box-sizing:border-box;
  min-height:44px; padding:5px 10px; border:1px solid #bfd3bb; border-radius:9px;
  background:linear-gradient(100deg,#f7f7dc,#f0f7e6); line-height:20px;
}
html.fishing-native-v11 #root #modal-root .codex-library-v19-modal .ca-catalogue-label {
  flex:none; color:#367e72; font-family:var(--fish-native-display); font-size:21px;
}
html.fishing-native-v11 #root #modal-root .codex-library-v19-modal .ca-summary-count {
  display:flex; align-items:center; gap:12px; flex:1; min-width:0;
}
html.fishing-native-v11 #root #modal-root .codex-library-v19-modal .ca-summary-count b {
  white-space:nowrap; color:#3c7167; font-size:16px; font-weight:500;
}
html.fishing-native-v11 #root #modal-root .codex-library-v19-modal .ca-summary-count strong {
  color:#218373; font-family:var(--fish-native-display); font-size:23px; font-weight:400;
}
html.fishing-native-v11 #root #modal-root .codex-library-v19-modal .ca-summary-count > span {
  color:#748974; font-size:14px; white-space:nowrap;
}
html.fishing-native-v11 #root #modal-root .codex-library-v19-modal :is(.ca-back,.ca-preview-toggle,.ca-pager button) {
  appearance:none; flex:none; box-sizing:border-box; position:relative;
  width:auto; height:30px; min-height:0!important; margin:0!important; padding:3px 12px!important;
  border:1px solid #9fbfac!important; border-radius:7px!important; background:#eff8e5!important;
  color:#36786b!important; box-shadow:0 1px #fff8!important; cursor:pointer;
  font-family:var(--fish-native-body),sans-serif!important; font-size:14px!important;
  font-weight:500; line-height:22px!important; text-shadow:none!important; -webkit-text-stroke:0!important;
}
html.fishing-native-v11 #root #modal-root .codex-library-v19-modal :is(.ca-back,.ca-preview-toggle,.ca-pager button)::before,
html.fishing-native-v11 #root #modal-root .codex-library-v19-modal :is(.ca-back,.ca-preview-toggle,.ca-pager button)::after {
  display:none!important; content:none!important;
}
html.fishing-native-v11 #root #modal-root .codex-library-v19-modal .ca-preview-toggle[aria-pressed="true"] {
  border-color:#c9ae69!important; background:#fff4ce!important; color:#886d35!important;
}
html.fishing-native-v11 #root #modal-root .codex-library-v19-modal .ca-preview-banner {
  flex:none; padding:2px 8px; border:1px solid #d7ba77; border-radius:5px;
  background:#fff4cf; color:#82632f; font-size:14px; line-height:20px; white-space:nowrap;
}
html.fishing-native-v11 #root #modal-root .codex-library-v19-modal .ca-library-content {
  flex:1 1 auto; min-height:0; overflow:hidden;
}
/* Four catalogue columns; the third row scrolls within the existing content host. */
html.fishing-native-v11 #root #modal-root .codex-library-v19-modal .ca-catalogue {
  display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); align-content:start;
  grid-auto-rows:max-content;
  gap:18px 20px; box-sizing:border-box; height:100%; min-height:0;
  padding:2px 13px 12px 4px; overflow:auto; overscroll-behavior:contain;
  scrollbar-width:thin; scrollbar-color:#8eb4a0 #eef1dc; scrollbar-gutter:stable;
}
html.fishing-native-v11 #root #modal-root .codex-library-v19-modal button.ca-category {
  appearance:none; position:relative; display:flex; flex-direction:column; gap:6px;
  width:100%; min-width:0; height:auto!important; max-height:none!important; min-height:0!important; margin:0!important; padding:0!important;
  align-self:start;
  border:0!important; border-radius:0!important; background:none!important; box-shadow:none!important;
  color:#3b6c6b; cursor:pointer; text-shadow:none!important; -webkit-text-stroke:0!important;
}
html.fishing-native-v11 #root #modal-root .codex-library-v19-modal button.ca-category::before,
html.fishing-native-v11 #root #modal-root .codex-library-v19-modal button.ca-category::after {
  display:none!important; content:none!important;
}
html.fishing-native-v11 #root #modal-root .codex-library-v19-modal .ca-category-face {
  display:flex; flex-direction:column; align-items:center; position:relative; box-sizing:border-box;
  width:100%; padding:8px 10px 5px; border:2px solid #c5ebed; border-radius:24px 10px 24px 10px;
  background:linear-gradient(135deg,#d5f6ef,#e1edfa 62%,#eee4f8); box-shadow:inset 0 0 0 2px #ffffffe0,0 2px 2px #456c5520;
}
html.fishing-native-v11 #root #modal-root .codex-library-v19-modal .ca-category-face .ca-cover-art {
  position:relative; display:block; width:100%; aspect-ratio:1; overflow:hidden;
  border:1px solid #c1d9de; border-radius:30px 7px 30px 7px; background:#f0f9ef;
}
html.fishing-native-v11 #root #modal-root .codex-library-v19-modal .ca-category-face > strong {
  display:block; width:100%; margin:4px 0 0; font-family:var(--fish-native-display);
  font-size:22px; font-weight:400; line-height:28px; text-align:center; color:#3e6a79; white-space:nowrap;
}
html.fishing-native-v11 #root #modal-root .codex-library-v19-modal .ca-category-meter {
  position:relative; display:block; flex:none; box-sizing:border-box; height:20px; width:88%; margin:0 auto;
  overflow:hidden; border:1px solid #92b6b4; border-radius:12px; background:#6d8d9d;
  box-shadow:inset 0 1px 2px #36516138; color:#fffefa;
}
html.fishing-native-v11 #root #modal-root .codex-library-v19-modal .ca-category-meter > i {
  display:block; height:100%; max-width:100%; border-radius:inherit;
  background:linear-gradient(#b8ec7c,#70c968); box-shadow:inset 0 1px #eaffbe;
}
html.fishing-native-v11 #root #modal-root .codex-library-v19-modal .ca-category-meter > b {
  position:absolute; inset:0; font-family:var(--fish-native-body),sans-serif; font-size:14px;
  font-weight:600; line-height:18px; text-align:center; text-shadow:0 1px 2px #385c6e;
}
/* Nine real cards on the left, one category book on the right. No filler cards. */
html.fishing-native-v11 #root #modal-root .codex-library-v19-modal .ca-volume-layout {
  display:grid; grid-template-columns:minmax(0,1fr) 350px; gap:28px; box-sizing:border-box;
  height:100%; min-height:0; padding:0 16px 0 10px;
}
html.fishing-native-v11 #root #modal-root .codex-library-v19-modal .ca-entry-area {
  display:flex; flex-direction:column; min-width:0; min-height:0; gap:5px;
}
html.fishing-native-v11 #root #modal-root .codex-library-v19-modal .ca-page-heading {
  flex:0 0 28px; display:flex; align-items:center; justify-content:space-between;
  min-height:0; padding:0 8px 2px; border-bottom:1px solid #d7dbc1; line-height:25px;
}
html.fishing-native-v11 #root #modal-root .codex-library-v19-modal .ca-page-heading h3 {
  margin:0; color:#36786c; font-family:var(--fish-native-display); font-size:23px; font-weight:400;
}
html.fishing-native-v11 #root #modal-root .codex-library-v19-modal .ca-page-heading > span {
  font-size:14px; color:#6d8771;
}
html.fishing-native-v11 #root #modal-root .codex-library-v19-modal .ca-entry-grid {
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); grid-template-rows:repeat(3,minmax(0,1fr));
  flex:1 1 auto; min-height:0; gap:6px 18px; justify-items:center; align-items:center; padding:0 7px;
  box-sizing:border-box; width:420px; max-width:100%; align-self:center;
}
html.fishing-native-v11 #root #modal-root .codex-library-v19-modal button.ca-card {
  appearance:none; display:block; align-self:center; flex:none; box-sizing:border-box;
  width:auto!important; max-width:100%; height:100%!important; max-height:146px; aspect-ratio:202/294;
  min-width:0; min-height:0!important; margin:0!important; padding:0!important;
  overflow:visible; border:0!important; border-radius:0!important; background:none!important; box-shadow:none!important;
  text-shadow:none!important; -webkit-text-stroke:0!important;
}
html.fishing-native-v11 #root #modal-root .codex-library-v19-modal .ca-card > .ca-front {
  display:block; width:100%; height:100%; aspect-ratio:202/294;
}
html.fishing-native-v11 #root #modal-root .codex-library-v19-modal .ca-card .ca-art {
  left:7%; top:10%; width:86%; height:62%;
}
html.fishing-native-v11 #root #modal-root .codex-library-v19-modal .ca-card :is(.ca-rarity,.ca-status) {
  top:4px; right:auto; left:5px; padding:0 3px; max-width:calc(100% - 10px);
  border-radius:4px; font-size:14px; line-height:18px; white-space:nowrap;
}
html.fishing-native-v11 #root #modal-root .codex-library-v19-modal .ca-card .ca-rarity { display:none; }
html.fishing-native-v11 #root #modal-root .codex-library-v19-modal .ca-card .ca-status {
  top:4px; right:5px; left:auto; font-size:14px;
}
html.fishing-native-v11 #root #modal-root .codex-library-v19-modal .ca-card .ca-plaque {
  left:3%; top:74%; width:94%; height:25%;
}
html.fishing-native-v11 #root #modal-root .codex-library-v19-modal .ca-card h4.ca-name {
  left:4%; top:75%; width:92%; height:24%; margin:0!important; padding:0 1px!important;
  font-size:16px; line-height:1.04; word-break:normal; overflow-wrap:anywhere; overflow:visible;
}
html.fishing-native-v11 #root #modal-root .codex-library-v19-modal .ca-card h4.ca-name-long {
  font-size:14px; line-height:1.04;
}
html.fishing-native-v11 #root #modal-root .codex-library-v19-modal .ca-pager {
  flex:0 0 30px; display:flex; align-items:center; justify-content:center; gap:18px;
  height:30px; padding:0; margin:0; font-size:14px; line-height:20px; color:#557b70;
}
html.fishing-native-v11 #root #modal-root .codex-library-v19-modal .ca-pager button:disabled {
  opacity:.4; cursor:default; filter:grayscale(.7);
}
html.fishing-native-v11 #root #modal-root .codex-library-v19-modal .ca-volume {
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px;
  box-sizing:border-box; min-width:0; min-height:0; padding:0 10px;
  border-left:1px solid #cadbc1;
}
html.fishing-native-v11 #root #modal-root .codex-library-v19-modal .ca-book {
  position:relative; display:flex; flex-direction:column; width:294px; max-width:100%; box-sizing:border-box;
  padding:7px 7px 0 12px; overflow:hidden; border:3px solid #b1d6c4; border-radius:12px 38px 12px 24px;
  background:linear-gradient(120deg,#9dbea8,#d7e8bb 8%,#f5f3cf 12%,#d8e5b1);
  box-shadow:inset 2px 0 0 #fffbdc,5px 5px 0 #9db2a05c,0 6px 9px #4e745a30;
}
html.fishing-native-v11 #root #modal-root .codex-library-v19-modal .ca-book::before {
  content:""; position:absolute; inset:0 auto 0 7px; width:2px; background:#769a6e65; z-index:3;
}
html.fishing-native-v11 #root #modal-root .codex-library-v19-modal .ca-book-art {
  position:relative; display:block; width:100%; aspect-ratio:1; overflow:hidden;
  border-radius:4px 28px 4px 4px; background:#ebf4db;
}
html.fishing-native-v11 #root #modal-root .codex-library-v19-modal .ca-book-title {
  display:flex; flex-direction:column; align-items:center; gap:3px; padding:10px 8px 13px;
  color:#47774f; text-shadow:0 1px #fffddf; line-height:22px;
}
html.fishing-native-v11 #root #modal-root .codex-library-v19-modal .ca-book-title h3 {
  margin:0; color:#3d745e; font-family:var(--fish-native-display); font-size:28px; font-weight:400; line-height:36px;
}
html.fishing-native-v11 #root #modal-root .codex-library-v19-modal .ca-book-title > span { font-size:16px; }
html.fishing-native-v11 #root #modal-root .codex-library-v19-modal .ca-volume-progress {
  display:flex; flex-direction:column; gap:5px; width:88%; margin-top:8px; text-align:center;
  font-size:14px; color:#6b8271; line-height:20px;
}
html.fishing-native-v11 #root #modal-root .codex-library-v19-modal .ca-volume-progress .ca-category-meter { width:100%; }
html.fishing-native-v11 #root #modal-root .codex-library-v19-modal .ca-volume-hint {
  margin:0; padding:0; font-size:14px; line-height:20px; color:#7d8d76;
}
/* Image wrappers retain source art proportions and offer an explicit retry. */
html.fishing-native-v11 #root #modal-root :is(.codex-library-v19-modal,.codex-library-v19-detail) .ca-image > img {
  display:block; width:100%; height:100%; max-width:100%; max-height:100%;
  border:0; border-radius:0; object-fit:contain; background:none;
}
html.fishing-native-v11 #root #modal-root :is(.codex-library-v19-modal,.codex-library-v19-detail) .ca-art > .ca-image {
  position:relative; display:block; width:100%; height:100%; min-width:0;
}
html.fishing-native-v11 #root #modal-root :is(.codex-library-v19-modal,.codex-library-v19-detail) .ca-image-fallback { display:none; }
html.fishing-native-v11 #root #modal-root :is(.codex-library-v19-modal,.codex-library-v19-detail) .ca-image.fail > img { opacity:0; }
html.fishing-native-v11 #root #modal-root :is(.codex-library-v19-modal,.codex-library-v19-detail) .ca-image.fail > .ca-image-fallback {
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  color:#7b8674; background:#eff1d7df; font-family:var(--fish-native-body),sans-serif;
  font-size:14px; line-height:18px; text-align:center; cursor:pointer;
}
html.fishing-native-v11 #root #modal-root :is(.codex-library-v19-modal,.codex-library-v19-detail) .ca-unknown-art {
  display:flex; align-items:center; justify-content:center; width:100%; height:100%;
  font-family:var(--fish-native-display); font-size:44px; color:var(--ca-ink);
}
html.fishing-native-v11 #root #modal-root .codex-library-v19-modal .ca-library-v19.is-preview .is-locked .ca-art,
html.fishing-native-v11 #root #modal-root .codex-library-v19-modal .ca-library-v19.is-preview .is-seen .ca-art,
html.fishing-native-v11 #root #modal-root .codex-library-v19-detail.is-preview .ca-art {
  filter:none!important; opacity:1!important;
}
html.fishing-native-v11 #root #modal-root .codex-library-v19-detail .ca-detail-preview {
  display:inline-block; padding:2px 7px; border:1px solid #d5ba76; border-radius:5px;
  background:#fff4cf; color:#846832; font-size:14px; line-height:21px;
}
html.fishing-native-v11 #root #modal-root .codex-library-v19-detail .ca-detail-reward {
  margin-top:18px; padding-top:12px; border-top:1px solid #d4dcb8; color:#6b815b;
}
html.fishing-native-v11 #root #modal-root .codex-library-v19-detail .ca-detail-reward b { display:block; color:#a27d30; font-size:23px; }
html.fishing-native-v11 #root #modal-root .codex-library-v19-detail .ca-detail-reward small { display:block; margin-top:5px; font-size:14px; line-height:21px; }
html.fishing-native-v11 #root #modal-root .codex-library-v19-detail :is(.ca-rarity,.ca-status) { font-size:14px; line-height:20px; }
html.fishing-native-v11 #root #modal-root .codex-library-v19-detail h4.ca-name-long { font-size:17px; }
html.fishing-native-v11 #root #modal-root .codex-library-v19-modal :is(button.ca-category,button.ca-card,.ca-back,.ca-preview-toggle,.ca-pager button):focus-visible {
  outline:3px solid #50a78a; outline-offset:3px;
}
