#viewCompendium{max-width:none}.item-compendium-tabs,.item-kind-selector,#itemPages,#vendorList{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}.item-compendium-tabs button,.item-kind-selector button,#itemPages button,#vendorList button,#viewCompendium button,#itemDialog button,.item-loot-tools button,#monsterEntryEditor [data-loot-browse]{background:#213047;color:#e2e8f0;border:1px solid #52647a;border-radius:6px;padding:7px 10px;font-size:12px;cursor:pointer}.item-compendium-tabs button[aria-pressed=true],.item-kind-selector button[aria-pressed=true],#vendorList button[aria-pressed=true]{border-color:#d9a229;background:#3a2d14;color:#fde68a}.item-library-heading{display:flex;justify-content:space-between;gap:12px;align-items:center}.item-library-heading p,#itemCount{color:#94a3b8;font-size:12px}.item-filters{display:flex;flex-wrap:wrap;gap:10px;align-items:end;margin:14px 0}.item-filters>input{flex:1;min-width:240px}.item-filters label{display:flex;flex-direction:column;gap:5px;font-size:11px;color:#9cb0c7}.item-filters input,.item-filters select,#itemDialog input,#itemDialog select,#itemDialog textarea,.vendor-table input{background:#0b1422;color:#e2e8f0;border:1px solid #42546b;border-radius:6px;padding:8px;min-width:0}.item-library-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(235px,1fr));gap:10px;margin-top:10px}.item-card{text-align:left;display:flex;flex-direction:column;gap:8px;padding:12px!important;min-height:134px;background:#101c2c!important}.item-card:hover{border-color:#d9a229!important}.item-card strong{font-size:13px}.item-card small{font-size:10px;color:#9cb0c7}.item-tags{display:flex;gap:5px;flex-wrap:wrap}.item-tags span{font-size:10px;padding:3px 6px;background:#1f2c3e;border:1px solid #46576b;border-radius:5px;color:#c6d6e7}.item-tags .rarity-2{color:#86efac;border-color:#3a7c55}.item-tags .rarity-3{color:#93c5fd;border-color:#4268a6}.item-tags .rarity-4{color:#d8b4fe;border-color:#8b5ca9}.item-tags .rarity-5,.item-tags .rarity-6{color:#fcd38a;border-color:#b87f38}.item-tags .item-attune{color:#f0abfc;border-color:#9b548e}#itemPages{justify-content:center;align-items:center;color:#94a3b8;font-size:12px;margin:16px}#itemDialog{width:min(760px,94vw);max-height:90vh;overflow:auto;border:1px solid #46576b;border-radius:12px;background:#0f1a2b;color:#e2e8f0;padding:0}#itemDialog::backdrop{background:#020617bb}.item-dialog-head{display:flex;align-items:center;justify-content:space-between;padding:15px;border-bottom:1px solid #334155;position:sticky;top:0;background:#0f1a2b;z-index:2}.item-dialog-head h2{font-size:17px;margin:0}.item-dialog-body{padding:16px}.item-detail-facts{display:flex;gap:12px;flex-wrap:wrap;margin:14px 0;color:#9cb0c7;font-size:12px}.item-rules{font-size:13px;line-height:1.65}.item-attunement-detail{color:#f0abfc;font-size:12px}.item-dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}.item-source{font-size:11px;color:#94a3b8;margin-top:16px;border-top:1px solid #334155;padding-top:10px}.item-source a{color:#93c5fd}#itemDialog form{display:grid;gap:12px}#itemDialog label{display:flex;flex-direction:column;gap:5px;font-size:12px}#itemDialog .item-checkbox{flex-direction:row;align-items:center}#itemDialog .item-checkbox input{width:auto}.item-primary{background:#6b351c!important;border-color:#c56d38!important;font-weight:600}.item-vendor-head{display:flex;gap:10px;align-items:center}.item-vendor-head span{color:#94a3b8}.vendor-table{width:100%;border-collapse:collapse}.vendor-table td,.vendor-table th{text-align:left;border-bottom:1px solid #334155;padding:8px}.vendor-table td:first-child{width:65%}.vendor-table td input{width:100px}.vendor-table small{display:block;font-size:10px;color:#94a3b8;margin-top:4px}.item-loot-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.item-loot-tools small{color:#94a3b8;font-size:10px}#monsterEntryEditor [data-loot-browse]{margin-top:5px}#itemPickerNotice{background:#3a2d14;border:1px solid #d9a229;border-radius:8px;padding:10px;color:#fde68a;font-size:12px;margin:10px 0}#viewCompendium [hidden]{display:none!important}@media(max-width:700px){.vendor-table td input{width:64px}.item-filters{flex-direction:column;align-items:stretch}.item-library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

#compReferenceDialog{width:min(900px,94vw);max-height:90vh;overflow:auto;background:#0f1a2b;color:#e2e8f0;border:1px solid #46576b;border-radius:12px;padding:0;font-family:Arial,sans-serif}#compReferenceDialog::backdrop{background:#020617bb}#compReferenceDialog button{background:#213047;color:#e2e8f0;border:1px solid #52647a;border-radius:6px;padding:8px;cursor:pointer}.comp-field{border-left:2px solid #334155;padding-left:12px;margin:14px 0}.comp-field h4{color:#9cb0c7;text-transform:capitalize;font-size:12px;margin:6px 0}.comp-prose{font-size:13px;line-height:1.65;overflow-wrap:anywhere}#compPagination{display:flex;justify-content:center;align-items:center;gap:10px;margin:16px}#viewCompendium{font-family:Arial,sans-serif;color:#e2e8f0}
.comp-rule-table{width:100%;border-collapse:collapse;margin:10px 0}.comp-rule-table td{border:1px solid #334155;padding:7px}.comp-rule-table tr:first-child{background:#213047;font-weight:bold}
.comp-workspace{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(360px,1fr);gap:16px;height:calc(100dvh - 175px);min-height:420px}.comp-browse{min-width:0;overflow:auto;padding-right:5px;scrollbar-gutter:stable}.comp-details{min-width:0;overflow:auto;scrollbar-gutter:stable;background:#0b1422;border:1px solid #405168;border-radius:10px}.comp-detail-heading{position:sticky;top:0;z-index:1;padding:16px 18px;background:#101c2c;border-bottom:1px solid #334155}.comp-detail-heading>span{font-size:10px;letter-spacing:.1em;color:#94a3b8}.comp-detail-heading h2{font-size:19px;color:#f8fafc;margin:6px 0 0}#compDetailBody{padding:18px}.comp-detail-empty{color:#9cb0c7;font-size:14px;line-height:1.7}.comp-entry-selected{border-color:#e0ac3b!important;background:#30291a!important;box-shadow:inset 3px 0 #e0ac3b}.comp-browse .item-library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.comp-browse .item-card{min-height:112px}.comp-details button{background:#213047;color:#e2e8f0;border:1px solid #52647a;border-radius:6px;padding:8px;cursor:pointer}.comp-details .item-dialog-actions:empty{display:none}.comp-details .comp-rule-table{font-size:12px}.comp-details .comp-rule-table td{overflow-wrap:anywhere}@media(max-width:850px){.comp-workspace{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}.comp-browse .item-library-grid{grid-template-columns:1fr}.comp-detail-heading,#compDetailBody{padding:12px}}@media(max-width:520px){.comp-workspace{grid-template-columns:1fr;height:auto}.comp-browse{max-height:45dvh}.comp-details{height:45dvh}}

#compDetailBody strong,#compRelatedBody strong{color:#f6d78b}#compDetailBody em,#compRelatedBody em{color:#c4b5fd}#compDetailBody h3,#compRelatedBody h3{color:#8dd5ed;font-size:15px;margin:18px 0 10px}.comp-reference-link{color:#7dd3fc!important;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:3px;cursor:pointer}.comp-reference-link:hover{color:#fde68a!important;text-decoration-style:solid}#compDetailsPanel code{background:#1e293b;color:#a7f3d0;padding:2px 4px;border-radius:4px}#compDetailsPanel ul,#compDetailsPanel ol{padding-left:22px;margin:10px 0;list-style:revert}#compDetailsPanel li{margin:5px 0}#compDetailsPanel pre{white-space:pre-wrap}#compRelated{border-top:2px solid #4c92ac;overflow:auto;min-height:0;background:#101e30}#compRelated header{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;background:#152b40;position:sticky;top:0;z-index:1}#compRelated small{color:#7dd3fc;font-size:10px;letter-spacing:.1em}#compRelated header h3{margin:5px 0 0;font-size:16px;color:#f8fafc}#compRelatedBody{padding:16px;font-size:13px;line-height:1.65}.comp-details.has-related{display:flex;flex-direction:column;overflow:hidden}.comp-details.has-related .comp-detail-heading{flex:none}.comp-details.has-related #compDetailBody{flex:1;overflow:auto;min-height:120px}.comp-details.has-related #compRelated{flex:0 0 38%}

#compDetailsPanel blockquote{border-left:3px solid #7dd3fc;padding:8px 12px;margin:12px 0;background:#142438;color:#cbd5e1}#compDetailsPanel hr{border:0;border-top:1px solid #405168;margin:16px 0}
.comp-details.has-related{display:grid;grid-template-rows:auto minmax(0,1fr) minmax(0,1fr)}.comp-details.has-related #compDetailBody,.comp-details.has-related #compRelated{min-height:0;overflow:auto;box-sizing:border-box}.comp-detail-heading{position:relative;padding-right:120px}#compHistory{position:absolute;right:14px;top:20px}.comp-related-controls{display:flex;gap:5px}.comp-related-controls button:disabled{opacity:.35;cursor:default}#compHistoryDialog{width:min(720px,92vw);max-height:85dvh;overflow:auto;background:#101c2c;color:#e2e8f0;border:1px solid #52647a;border-radius:12px;padding:18px;font-family:Arial,sans-serif}#compHistoryDialog::backdrop{background:#020617bb}#compHistoryDialog header{display:flex;align-items:center;justify-content:space-between}#compHistoryDialog h2{font-size:18px}#compHistoryDialog p{font-size:12px;color:#94a3b8}#compHistoryDialog button{background:#1f3048;color:#e2e8f0;border:1px solid #42546b;border-radius:6px;padding:9px;cursor:pointer}.comp-history-list{display:grid;gap:7px}.comp-history-list button{text-align:left;display:flex;flex-direction:column;gap:5px}.comp-history-list small{font-size:11px;color:#9cb0c7}

#viewCompendium .item-kind-selector button[aria-pressed="true"]{background:#493617;color:#fde68a;border:2px solid #e7b33f;font-weight:700;box-shadow:0 0 0 1px #e7b33f33}#viewCompendium .item-kind-selector button[aria-pressed="true"]::before{content:"✓ ";color:#fcd34d}#viewCompendium .item-kind-selector button[aria-pressed="false"]{border:2px solid transparent;background:#1b293d;color:#9cb0c7}