/* SantoStefano P3.9: item catalogue picker based on the Cronus calculator workflow.
   Ruby / gold / violet / jade, integrated with the P3.8 character dossier. */
.modal:has(.gc39-picker){
 width:min(1050px,calc(100vw - 26px));max-width:1050px;
 max-height:94vh;overflow-y:auto;padding:22px;
 border:1px solid #b07859;border-radius:13px;
 background:radial-gradient(ellipse at 12% 0%,#512531 0,transparent 48%),
 linear-gradient(150deg,#291923,#150f1a 80%);
 box-shadow:0 25px 95px #000d,inset 0 1px #e8c18a24;
}
.modal:has(.gc39-import-screen){
 width:min(720px,calc(100vw - 26px));max-width:720px;max-height:94vh;overflow:auto;
 border:1px solid #a77659;background:linear-gradient(150deg,#311d29,#150f19);
}
.modal:has(.gc39-picker)>.close,.modal:has(.gc39-import-screen)>.close{
 position:sticky;top:0;float:right;z-index:5;
 color:#f1c996;background:#382330;border:1px solid #8a604d;border-radius:6px;
}
.gc39-picker,.gc39-import-screen{font-family:inherit;color:#e9d3bd}
.gc39-kicker{color:#eab57a;letter-spacing:1.6px;font-size:10px;font-weight:800;margin-bottom:7px}
.gc39-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;flex-wrap:wrap;padding-right:34px}
.gc39-heading h2,.gc39-import-screen h2{
 font:700 clamp(22px,2.6vw,30px)/1.2 Georgia,serif;color:#ffdfb0;margin:0 0 6px;
}
.gc39-heading h2 span{font:400 15px Georgia,serif;color:#bda5a0}
.gc39-heading p,.gc39-import-screen>p{margin:0;color:#c1aaa3;font-size:12px;line-height:1.6}
.gc39-heading a,.gc39-source{color:#d5b4f3;text-decoration:none;font-size:11px;border-bottom:1px dashed #8e6ca5}
.gc39-heading a:hover,.gc39-source:hover{color:#f4d4ff}
.gc39-current{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:15px 0 12px;padding:9px 12px;
 border:1px solid #67464a;background:#2b1d29;border-radius:6px;color:#b8a09c;font-size:11px}
.gc39-current svg{color:#d6a979}
.gc39-current strong{color:#f0d4b3}
.gc39-current b{color:#a9d8f0}
.gc39-main{display:grid;grid-template-columns:minmax(0,.94fr) minmax(0,1.06fr);gap:13px;min-width:0;align-items:start}
.gc39-catalog,.gc39-preview{min-width:0;border:1px solid #77504d;border-radius:9px;
 background:linear-gradient(150deg,#241824,#17111c);padding:13px}
.gc39-catalog{display:flex;flex-direction:column}
.gc39-search-label,.gc39-enchant-label,.gc39-special label{
 color:#d9b88d;font-size:11px;font-weight:750;display:block
}
.gc39-search-label input{display:block;width:100%;height:41px;margin:7px 0 0;padding:0 12px;
 border:1px solid #865d58;border-radius:6px;background:#100d16;color:#f8dec2;font-size:12px}
.gc39-search-label input:focus{border-color:#e2ae78;outline:2px solid #d4a27633}
.gc39-class-filter{display:flex;align-items:center;gap:8px;margin:10px 0;color:#cbb8ae;font-size:11px}
.gc39-class-filter input{margin:0;accent-color:#d6a171}
.gc39-list-meta{display:flex;justify-content:space-between;color:#aa9591;font-size:10px;
 border-bottom:1px solid #624147;padding-bottom:8px}
.gc39-list{display:grid;gap:6px;align-content:start;min-height:250px;max-height:420px;
 overflow:auto;padding:9px 3px;scrollbar-width:thin}
.gc39-item{display:flex;align-items:center;gap:10px;width:100%;min-width:0;padding:10px;
 border:1px solid #5b4148;border-radius:7px;background:linear-gradient(110deg,#32212d,#241924);
 color:#e9d3ba;text-align:left}
.gc39-item:hover{border-color:#d3a273;background:#422b36}
.gc39-item.selected{border-color:#e7b679;background:linear-gradient(110deg,#64343c,#34212e);
 box-shadow:inset 3px 0 #f3c487,0 2px 10px #0004}
.gc39-item-icon,.gc39-preview-icon{display:grid;place-items:center;flex-shrink:0;
 border:1px solid #9e725c;border-radius:7px;background:radial-gradient(circle,#604039,#291d29);color:#f0c087}
.gc39-item-icon{width:45px;height:45px}
.gc39-item-icon img,.gc39-preview-icon img{max-width:85%;max-height:85%;object-fit:contain;image-rendering:auto}
.gc39-item-text{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.gc39-item-text strong{font-size:12px;color:#f8d9b5;overflow:hidden;text-overflow:ellipsis}
.gc39-item-text small{color:#99c7dd;font-size:10px}
.gc39-item-text em{color:#b9a4a2;font-size:10px;font-style:normal;overflow:hidden;text-overflow:ellipsis;
 white-space:nowrap}
.gc39-class-warning{color:#f2a7a2;font-size:9px;white-space:nowrap}
.gc39-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;
 gap:10px;text-align:center;min-height:225px;padding:22px 12px;color:#baa39b}
.gc39-empty h3{font:700 18px Georgia,serif;color:#efc28d;margin:0}
.gc39-empty p{font-size:12px;line-height:1.6;margin:0}
.gc39-loading{padding:40px 10px;text-align:center;color:#c2a69c}
.gc39-pagination{display:flex;justify-content:space-between;align-items:center;gap:9px;
 border-top:1px solid #5c3d45;padding-top:10px;color:#ad9691;font-size:11px}
.gc39-pagination button,.gc39-footer button,.gc39-import-actions button,.gc39-enchant-control button,
.gc39-special-choices button{border:1px solid #916752;background:#352431;color:#ebc7a5;
 border-radius:5px;padding:8px 10px;font-size:11px;font-weight:650}
.gc39-pagination button:hover:not(:disabled),.gc39-footer button:hover,
.gc39-import-actions button:hover,.gc39-enchant-control button:hover:not(:disabled){
 border-color:#e5b27b;background:#4a303b
}
.gc39-pagination button:disabled,.gc39-enchant-control button:disabled{opacity:.35;cursor:not-allowed}
.gc39-preview{min-height:400px;display:flex;flex-direction:column;gap:13px}
.gc39-no-selection{min-height:340px;display:flex;flex-direction:column;align-items:center;
 justify-content:center;gap:12px;text-align:center;padding:24px}
.gc39-no-selection-icon{width:75px;height:75px;border-radius:50%;display:grid;place-items:center;
 background:radial-gradient(circle,#5c3942,#261c2c);border:1px solid #aa755f;color:#f0be87}
.gc39-no-selection h3{font:700 21px Georgia,serif;color:#f1cb9c;margin:0}
.gc39-no-selection p{font-size:12px;color:#c6aba4;line-height:1.65;max-width:330px;margin:0}
.gc39-no-selection small{color:#99878b;font-size:10px}
.gc39-preview-head{display:flex;align-items:center;gap:13px;padding-bottom:11px;border-bottom:1px solid #644249}
.gc39-preview-icon{width:69px;height:69px}
.gc39-preview-head>div:last-child{min-width:0}
.gc39-preview-head span{font-size:9px;color:#e9b57d;font-weight:800;letter-spacing:1.1px}
.gc39-preview-head h3{font:700 21px Georgia,serif;color:#f7d5a9;margin:4px 0 5px;overflow-wrap:anywhere}
.gc39-preview-head small{font-size:10px;color:#a6c6d9}
.gc39-bonus-block{border:1px solid #71514e;border-left:3px solid #d3a372;border-radius:6px;
 background:linear-gradient(100deg,#38262e,#251a27);padding:10px 12px}
.gc39-bonus-block h4,.gc39-description h4{font-size:11px;font-weight:800;color:#e9bd89;margin:0 0 6px}
.gc39-bonus-block p,.gc39-description p{font-size:12px;color:#ead1b9;white-space:pre-line;line-height:1.55;margin:0}
.gc39-variant{border-left-color:#91c6e9;background:linear-gradient(100deg,#233444,#251b2a)}
.gc39-variant h4{color:#a2d6f5}
.gc39-variant p.gc39-unknown{color:#aeb0b6;font-style:italic}
.gc39-variant small{font-size:10px;color:#a3a2ad;display:block;margin-top:6px}
.gc39-enchant-label{display:flex;align-items:center;justify-content:space-between;gap:8px}
.gc39-enchant-label strong{font:700 23px Georgia,serif;color:#f5c381}
.gc39-enchant-control{display:grid;grid-template-columns:45px 1fr 45px;gap:8px}
.gc39-enchant-control select{height:39px;width:100%;margin:0;border:1px solid #a6775b;
 border-radius:6px;background:#251b2a;color:#f5d2a5;font-size:15px;font-weight:800;text-align:center}
.gc39-enchant-control button{font-size:20px;line-height:1;padding:6px}
.gc39-special{border:1px solid #77558c;border-radius:7px;background:linear-gradient(110deg,#302139,#241c2b);
 padding:12px}
.gc39-special label{color:#d4b5f0;margin:0 0 9px}
.gc39-special-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.gc39-special-choices button{border-color:#775c89;color:#d6b8ec;background:#342640}
.gc39-special-choices button.active{border-color:#d8b4fa;background:#64467c;color:#fff0ff;
 box-shadow:inset 0 0 12px #a77fbd44}
.gc39-special p{margin:9px 0 3px;color:#edc8fa;font-size:12px;line-height:1.5}
.gc39-special small{font-size:10px;color:#b09dbb}
.gc39-description{padding:2px 1px}
.gc39-description p{color:#c7b2a9}
.gc39-source{align-self:flex-start}
.gc39-source-note{font-size:10px;color:#a28e91}
.gc39-incompatible{color:#f3a8a2;border:1px solid #945b60;background:#4a2733;
 border-radius:6px;padding:10px;font-size:11px;line-height:1.5;margin:0}
.gc39-install{width:100%;display:flex;align-items:center;justify-content:center;gap:8px;
 border:1px solid #edc48d;border-radius:6px;background:linear-gradient(115deg,#b66e57,#efc58d);
 color:#27151c;padding:12px;font-size:12px;font-weight:850}
.gc39-install:hover:not(:disabled){background:linear-gradient(115deg,#ce896b,#f8d7a6)}
.gc39-install:disabled{opacity:.5;cursor:not-allowed}
.gc39-footer{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px;padding-top:12px;border-top:1px solid #76504d}
.gc39-footer button{display:inline-flex;align-items:center;gap:6px}
.gc39-footer .gc39-danger{color:#f1a7a2;border-color:#945a61;background:#3d242f;margin-left:auto}
.gc39-footnote{color:#9e8b8c;font-size:10px;line-height:1.5;margin:10px 0 0}
.gc39-import-screen{padding:4px 5px 5px}
.gc39-import-screen form{margin-top:18px;display:grid;gap:13px}
.gc39-import-screen form label{display:block;color:#e6c3a1;font-size:12px}
.gc39-import-screen form input,.gc39-import-screen form textarea{
 display:block;width:100%;margin-top:6px;border:1px solid #805a57;border-radius:6px;
 background:#1b141e;color:#f0d6bd;padding:10px;font-size:12px
}
.gc39-import-screen form textarea{resize:vertical}
.gc39-import-screen input[type="file"]{padding:12px}
.gc39-import-hint{color:#baa69f;font-size:11px;line-height:1.6}
.gc39-import-hint code{color:#b6d7ed}
.gc39-import-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.gc39-import-actions .gc39-install{width:auto;flex:1;min-width:165px}
#gc39-import-status{font-size:12px;color:#a7dcb6;min-height:15px}
.gc39-special-badge{position:absolute;bottom:4px;right:4px;
 border:1px solid #ac84cb;background:#3f2b50;color:#ead0ff;
 border-radius:3px;padding:1px 4px;font-size:9px}
.gc36-slot:has(.gc39-special-badge){position:relative;border-color:#9b78b5}
.gc39-picker button:focus-visible,.gc39-import-screen button:focus-visible,
.gc39-picker input:focus-visible,.gc39-picker select:focus-visible{outline:2px solid #f0bd84;outline-offset:2px}
@media(max-width:800px){
 .modal:has(.gc39-picker){padding:15px}
 .gc39-main{grid-template-columns:1fr}
 .gc39-list{max-height:255px;min-height:145px}
 .gc39-preview{min-height:0}
 .gc39-heading{padding-right:30px}
}
@media(max-width:520px){
 .modal:has(.gc39-picker){padding:12px}
 .gc39-heading h2{font-size:22px}
 .gc39-item-text em{white-space:normal}
 .gc39-footer button{flex:1 1 42%;justify-content:center}
 .gc39-footer .gc39-danger{margin-left:0}
 .gc39-preview-head h3{font-size:18px}
 .gc39-import-actions button{flex:1 1 100%}
}

/* P4.0: crop original Cronus item icon from its 48px sprite cell. */
.gc39-sprite{display:inline-block;flex:0 0 48px;width:48px;height:48px;background-repeat:no-repeat;background-size:auto;image-rendering:auto;transform:scale(.72);transform-origin:center}
.gc36-slot-art .gc39-sprite{transform:scale(.56)}
.gc39-preview-icon .gc39-sprite{transform:scale(1)}
.gc36-extra-equip{display:none!important}
.gc40-bonus-summary{margin:8px 0 3px;color:#aed7ba;font-size:11px;line-height:1.5}
.gc40-bonus-summary strong{color:#e6c490}

/* P4.3: actual in-site R2 item popup, not a plain attr(data-tip) bubble. */
.gc36-slot .gc42-tooltip{display:none;position:absolute;z-index:900;left:50%;bottom:calc(100% + 10px);transform:translateX(-50%);box-sizing:border-box;width:max-content;min-width:260px;max-width:min(330px,85vw);padding:12px 13px 11px;background:#171116;border:1px solid #bd945a;border-radius:11px;color:#d8c4ad;box-shadow:0 15px 32px rgba(0,0,0,.78);pointer-events:none;font:400 11px/1.52 Arial,sans-serif;text-align:left;white-space:normal;overflow-wrap:anywhere}
.gc36-slot.filled:hover .gc42-tooltip,.gc36-slot.filled:focus-visible .gc42-tooltip{display:block}
.gc42-tooltip-title{display:block;color:#f0d19d;font:700 14px/1.35 Arial,sans-serif;white-space:normal}
.gc42-tooltip-rule{display:block;height:1px;background:#725345;margin:12px 0}
.gc42-tooltip-rows{display:flex;flex-direction:column;gap:5px}
.gc42-tooltip-rows>span{display:block;color:#e3d2bc}
.gc42-tooltip-special{color:#d9b3f2;font-size:11px}
.gc36-slot.filled:hover,.gc36-slot.filled:focus-visible{z-index:100}
@media(max-width:600px){.gc36-slot .gc42-tooltip{max-width:270px;min-width:220px;left:50%}}

/* P4.4: visible equipment values and hidden stat modifiers are distinct. */
.gc42-tooltip-rows .gc43-stat-label{color:#edaa70}
.gc42-tooltip-rows .gc43-stat-value{color:#f3a45c;font-weight:800}
.gc42-tooltip-rows .gc43-stat-hidden{color:#96949c;font-weight:600}

/* P4.5: crisp, three-level stat hierarchy for character equipment popovers. */
.gc36-slot .gc42-tooltip{
 min-width:276px;max-width:min(354px,88vw);padding:14px 15px 13px;
 background:linear-gradient(156deg,#231b21 0%,#171217 52%,#120f15 100%);
 border:1px solid #b98b55;border-radius:10px;
 box-shadow:0 18px 45px #000d,0 0 0 1px #f7cf7820 inset;
 font:500 12px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif;
}
.gc42-tooltip-title{
 font:700 14px/1.4 system-ui,-apple-system,"Segoe UI",sans-serif;
 letter-spacing:.15px;color:#f5c88c;
}
.gc42-tooltip-rule{
 height:1px;margin:11px 0;
 background:linear-gradient(90deg,#b58a58 0%,#705244 62%,transparent 100%);
}
.gc42-tooltip-rows{gap:0}
.gc42-tooltip-rows>span{
 display:block;color:#e6d9cc;
 padding:6px 3px;
 border-bottom:1px solid #66504b38;
 font-size:12px;line-height:1.42;
}
.gc42-tooltip-rows>span:last-child{border-bottom:0}
.gc42-tooltip-rows .gc43-stat-label{
 color:#dfd6ce;font-weight:500;
}
.gc42-tooltip-rows .gc43-stat-value{
 color:#ffa94f;font-weight:800;
 text-shadow:0 0 12px #d87b2a28;
 font-variant-numeric:tabular-nums;
}
.gc42-tooltip-rows .gc43-stat-hidden{
 color:#929da9;font-weight:650;
 font-variant-numeric:tabular-nums;
}
.gc42-tooltip-special{
 color:#d4b2ec;font-weight:600;
}
@media(max-width:600px){
 .gc36-slot .gc42-tooltip{min-width:220px;max-width:min(310px,88vw);padding:11px 12px;}
 .gc42-tooltip-rows>span{padding:5px 1px}
}

/* P4.6 RPG: compact hover panel without a divider on every line. */
.gc36-slot .gc42-tooltip{
 min-width:240px;max-width:min(330px,88vw);padding:11px 13px 12px;
 border:1px solid #a98452;border-radius:7px;
 background:linear-gradient(160deg,#211a1a 0%,#151016 70%,#100d11 100%);
 box-shadow:0 15px 32px #000c,inset 0 0 0 1px #e8b96d1c;
}
.gc42-tooltip-title{font-size:13px;line-height:1.4;color:#f0c58c;letter-spacing:0}
.gc42-tooltip-rule{margin:8px 0 9px;background:linear-gradient(90deg,#a9804a,#58403d 68%,transparent)}
.gc42-tooltip-rows{gap:3px}
.gc42-tooltip-rows>span{
 border:none;padding:1px 0;line-height:1.4;font-size:11px;
}
.gc42-tooltip-rows .gc43-stat-label{color:#dfd6cb}
.gc42-tooltip-rows .gc43-stat-value{color:#ffa950}
.gc42-tooltip-rows .gc43-stat-hidden{color:#9aa1ad}
.gc46-enchantable{
 display:block;margin-top:9px;padding-top:8px;border-top:1px solid #5e4a403f;
 color:#c5a4e8;font-size:10px;font-weight:600;
}
/* P4.6: class baselines are informative, not edits to saved character totals. */
.gc46-class-panel{
 margin:10px 0 15px;border:1px solid #6e5747;border-radius:10px;
 padding:14px;background:linear-gradient(130deg,#30202a,#1b1722 65%,#1b1822);
 box-shadow:inset 0 1px 0 #e5b37724;
}
.gc46-panel-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.gc46-kicker{display:block;color:#b49ac7;font:800 9px/1.4 system-ui;letter-spacing:1.3px}
.gc46-panel-head h3{margin:2px 0;color:#e9bc86;font:700 18px Georgia,serif}
.gc46-method{color:#b2a3a9;font-size:10px}
.gc46-core{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px}
.gc46-core-cell,.gc46-level-cell{
 display:flex;align-items:center;justify-content:space-between;gap:8px;
 border:1px solid #73564d;border-radius:7px;background:#251d27;padding:9px 12px;
}
.gc46-core-cell span,.gc46-level-cell span{color:#b8abb0;font-size:11px}
.gc46-core-cell strong{color:#f8c77f;font:700 22px Georgia,serif}
.gc46-level-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:8px}
.gc46-level-cell{border-color:#4c5160;background:#23232b}
.gc46-level-cell strong{color:#bed5ed;font-size:13px}
.gc46-derived{margin-top:12px;border-top:1px solid #76554e;padding-top:10px}
.gc46-derived summary{color:#ddb58c;cursor:pointer;font-size:12px;font-weight:700}
.gc46-derived-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 14px;margin-top:10px}
.gc46-derived-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:5px 2px;border-bottom:1px solid #ffffff0b}
.gc46-derived-row span{font-size:11px;color:#bfb3b7}
.gc46-derived-row b{font-size:12px;color:#e9a869}
.gc46-disclaimer{margin:11px 0 0;color:#a99ba3;font-size:10px;line-height:1.6}
@media(max-width:700px){
 .gc46-core,.gc46-level-values{grid-template-columns:1fr}
 .gc46-derived-grid{grid-template-columns:1fr}
 .gc46-class-panel{padding:10px}
}

/* P4.7 calculated stats are distinguished from manually entered figures */
.gc36-stat-row b.gc47-calculated-stat{color:#f1bf78}
.gc47-calculated-flag{display:inline-block;margin-left:5px;color:#ae9f91;font:500 9px/1.25 system-ui;vertical-align:baseline}
.gc38-metric small{line-height:1.3}

/* P4.9 — six core character stats, two columns x three rows. */
.gc37-dossier .gc49-core{
 margin:10px 0 16px;padding:15px 16px 16px;
 border:1px solid #816047;border-radius:12px;
 background:linear-gradient(155deg,#2b1d26 0%,#211821 46%,#16151f 100%);
 box-shadow:inset 0 1px 0 #f1ba7130,0 8px 24px #08080d66;
}
.gc49-core-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;flex-wrap:wrap}
.gc49-core-kicker{display:block;color:#d39e69;font:800 9px/1.4 system-ui,sans-serif;letter-spacing:1.2px}
.gc49-core-head h3{margin:3px 0 0;color:#f1c791;font:700 18px/1.3 Georgia,serif}
.gc49-core-context{color:#c6a8bd;font:600 11px system-ui,sans-serif}
.gc49-core-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.gc49-core-card{
 position:relative;min-height:74px;padding:12px 15px;
 display:flex;flex-direction:column;gap:3px;align-items:flex-start;justify-content:center;
 background:linear-gradient(125deg,#171a23,#1e1924);
 border:1px solid #554a5d;border-radius:8px;overflow:hidden;
}
.gc49-core-card::before{content:'';position:absolute;left:0;top:0;bottom:0;width:3px;background:#b18765}
.gc49-core-card--hp::before{background:#68cda5}
.gc49-core-card--mp::before{background:#b899ef}
.gc49-core-card--strength::before{background:#e6a56c}
.gc49-core-card--agility::before{background:#83c7e8}
.gc49-core-card--intellect::before{background:#c9a0f0}
.gc49-core-card--defense::before{background:#83baef}
.gc49-core-label{color:#c3b5b8;font:700 11px/1.4 system-ui,sans-serif}
.gc49-core-value{color:#f3d0a2;font:800 26px/1.15 system-ui,sans-serif;font-variant-numeric:tabular-nums}
.gc49-core-card--hp .gc49-core-value{color:#86dcb5}
.gc49-core-card--mp .gc49-core-value{color:#c9aafa}
.gc49-core-card--defense .gc49-core-value{color:#98c7fa}
.gc49-core-value.gc49-core-missing{color:#756d7c}
.gc49-core-note{color:#a59aa1;margin:10px 0 0;font:400 10px/1.45 system-ui,sans-serif}
@media(max-width:700px){
 .gc37-dossier .gc49-core{padding:11px}
 .gc49-core-grid{gap:7px}
 .gc49-core-card{min-height:66px;padding:9px 11px}
 .gc49-core-value{font-size:23px}
}

/* P4.10: restore the slim horizontal scoreboard; retain six core values. */
.gc37-dossier .gc49-core.gc410-core-row{
 margin:9px 0 12px;padding:0;border:1px solid #71515b;border-radius:9px;
 background:linear-gradient(125deg,#251923,#1a1620);
 box-shadow:inset 0 1px 0 #dfab6b20;
 overflow:hidden;
}
.gc410-core-row .gc49-core-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:0}
.gc410-core-row .gc49-core-card{
 min-width:0;min-height:80px;padding:12px 6px 11px;gap:7px;
 align-items:center;justify-content:center;text-align:center;
 border:0;border-right:1px solid #5b455040;border-radius:0;
 background:transparent;
}
.gc410-core-row .gc49-core-card:last-child{border-right:0}
.gc410-core-row .gc49-core-card::before{
 width:auto;height:3px;top:0;right:0;bottom:auto;left:0;
}
.gc410-core-row .gc49-core-label{font-size:10px;font-weight:700;white-space:nowrap;color:#cdbcc2}
.gc410-core-row .gc49-core-value{font-size:25px;line-height:1.05}
@media(max-width:680px){
 .gc37-dossier .gc49-core.gc410-core-row{overflow-x:auto}
 .gc410-core-row .gc49-core-grid{min-width:510px}
 .gc410-core-row .gc49-core-card{min-height:71px;padding:10px 5px 8px}
 .gc410-core-row .gc49-core-value{font-size:21px}
}

/* P4.11: condensed dossier layout and compact statistic panels. */
.gc37-dossier .gc411-top-notes{margin:0 0 12px;min-width:0}
.gc37-dossier .gc411-top-notes .gc36-notes{
 display:flex;align-items:center;gap:12px;flex-wrap:wrap;
 padding:10px 14px;border:1px solid #795d4b;border-radius:9px;
 background:linear-gradient(110deg,#302329,#1c1721);min-height:0;
}
.gc411-top-notes .gc36-notes header{
 display:flex;align-items:center;gap:10px;flex:0 0 auto;
 padding:0;margin:0;border:0;
}
.gc411-top-notes .gc36-notes header h3{margin:0;font-size:13px;color:#ebbf87}
.gc411-top-notes .gc36-notes p{
 margin:0;flex:1 1 210px;min-width:0;
 white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
 font-size:11px;line-height:1.5;color:#d6c4b5;
}
.gc411-top-notes .gc36-notes .gc36-mini-btn{padding:6px 9px;font-size:10px}
.gc37-dossier .gc411-layout .gc411-collections-row{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
 gap:12px;align-items:start;
}
.gc411-collections-row .gc36-panel{min-width:0}
.gc411-collections-row .gc36-collection-list{display:grid;gap:7px}
.gc411-collections-row .gc36-collection-item{min-height:55px;padding:8px 10px}
.gc411-collections-row .gc36-hint{display:none}
.gc411-full-stats{min-width:0}
.gc411-full-stats .gc411-stats{padding-bottom:11px}
.gc411-stat-grid{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
 gap:10px;align-items:start;
}
.gc411-stat-grid .gc411-stat-group{
 min-width:0;margin:0!important;padding:9px 10px!important;
 background:linear-gradient(145deg,#241925,#1a1823);
}
.gc411-stat-group>summary{
 display:flex;align-items:center;gap:8px;
 cursor:pointer;list-style:none;color:var(--stat-accent,#e0c09c);
 font-size:12px;font-weight:750;line-height:1.4;
}
.gc411-stat-group>summary::-webkit-details-marker{display:none}
.gc411-stat-group>summary:before{
 content:'▸';font-size:12px;color:var(--stat-accent,#e0c09c);
 transition:transform .15s ease;
}
.gc411-stat-group[open]>summary:before{transform:rotate(90deg)}
.gc411-stat-group .gc411-stat-body{margin-top:7px}
.gc411-stat-group .gc36-stat-header{padding:4px 2px!important;margin:0!important;font-size:9px}
.gc411-stat-group .gc36-stat-row{
 padding:4px 2px!important;min-height:27px;
 font-size:10px;line-height:1.3
}
.gc411-stat-group .gc36-stat-row span{font-size:10px}
.gc411-stat-group .gc36-stat-row b{font-size:11px!important}
.gc411-stat-extra{margin-top:10px;padding:9px 10px;border:1px solid #5b4850;border-radius:7px}
.gc411-stat-extra>summary{cursor:pointer;color:#d4b69a;font-weight:650;font-size:11px}
.gc411-stat-extra-row{display:flex;justify-content:space-between;gap:12px;padding:5px 2px;border-bottom:1px solid #ffffff0e;font-size:11px}
.gc411-stat-extra-row span{color:#b8aab2}
.gc411-stat-extra-row b{color:#e2c2a0}
.gc411-stat-foot{font-size:10px;color:#96878e;margin:9px 2px 0;line-height:1.4}
.gc37-dossier .gc411-lower{display:block}
.gc411-lower .gc411-history{width:100%;min-width:0}
.gc411-history-count{color:#af9b9c;font-size:10px}
.gc411-history-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.gc411-history-list .gc36-history-row{
 min-width:0;margin:0!important;padding:10px 11px!important;
 border:1px solid #60434b;border-radius:7px;
 background:linear-gradient(130deg,#30212c,#211924);
 display:flex;align-items:center;gap:9px
}
.gc411-history-list .gc36-history-row>div{min-width:0;flex:1}
.gc411-history-list .gc36-history-row strong{font-size:11px;line-height:1.4}
.gc411-history-list .gc36-history-row small{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
.gc411-history-list .gc36-history-row time{white-space:nowrap;font-size:9px}
@media(max-width:1050px){
 .gc37-dossier .gc411-layout .gc411-collections-row{grid-template-columns:repeat(2,minmax(0,1fr))}
 .gc411-history-list{grid-template-columns:1fr}
}
@media(max-width:700px){
 .gc37-dossier .gc411-layout .gc411-collections-row,.gc411-stat-grid{grid-template-columns:1fr}
 .gc411-top-notes .gc36-notes p{white-space:normal}
 .gc411-history-list{grid-template-columns:1fr}
}

/* P4.12: existing storage keys remain stable; visual roles now match game terminology. */
.gc37-all-sections .gc38-collection--puzzles{
 --panel-accent:#82d6b0;--panel-glow:rgba(68,182,135,.12);
}
.gc37-all-sections .gc38-collection--cards{
 --panel-accent:#f0c37b;--panel-glow:rgba(230,164,63,.12);
}
.gc37-all-sections .gc38-collection--puzzles .gc36-collection-mark{
 color:#89ddad;background:#1e44385c;border-color:#4e987355;
}
.gc37-all-sections .gc38-collection--cards .gc36-collection-mark{
 color:#f0c17d;background:#4b35275c;border-color:#85613d55;
}

/* P4.14: concise equipment catalog preview matches RPG item tooltips. */
.modal:has(.gc39-picker){max-height:min(92vh,920px)}
.modal:has(.gc39-picker) .gc39-picker{padding:16px 18px;max-height:90vh}
.gc39-picker .gc39-kicker{margin-bottom:3px;font-size:9px}
.gc39-picker .gc39-heading h2{font-size:23px}
.gc39-picker .gc39-heading p{font-size:10px}
.gc39-picker .gc39-current{margin:9px 0 11px;padding:7px 10px}
.gc39-picker .gc39-main{gap:11px}
.gc39-picker .gc39-catalog,.gc39-picker .gc39-preview{padding:11px}
.gc39-picker .gc39-preview{min-height:0;gap:10px}
.gc39-picker .gc39-preview-head{gap:10px;padding-bottom:9px}
.gc39-picker .gc39-preview-icon{width:55px;height:55px}
.gc39-picker .gc39-preview-head h3{font-size:19px;margin:2px 0 4px}
.gc39-picker .gc39-enchant-label strong{font-size:21px}
.gc39-picker .gc39-enchant-control{grid-template-columns:38px 1fr 38px;gap:6px}
.gc39-picker .gc39-enchant-control select{height:36px}
.gc39-picker .gc39-enchant-control button{padding:4px}
.gc414-bonuses{
 border:1px solid #9b744f;border-radius:8px;padding:11px 12px;
 background:linear-gradient(145deg,#241a20,#18151e);
 box-shadow:inset 0 1px 0 #e8b97619;
}
.gc414-bonuses-head{display:flex;justify-content:space-between;gap:8px;align-items:center;padding-bottom:8px;margin-bottom:5px;border-bottom:1px solid #74544155}
.gc414-bonuses-head strong{font-size:12px;color:#ecc28e}
.gc414-bonuses-head span{font-size:10px;color:#bba7a7}
.gc414-stat-lines{display:grid;gap:2px}
.gc414-stat-line{color:#dfd6cb;padding:4px 0;font:500 11px/1.5 system-ui,sans-serif}
.gc414-stat-line .gc43-stat-label{color:#e5d8c8}
.gc414-stat-line .gc43-stat-value{color:#ffa94f;font-weight:800;font-variant-numeric:tabular-nums}
.gc414-stat-line .gc43-stat-hidden{color:#9da4b0;font-weight:650;font-variant-numeric:tabular-nums}
.gc414-data-note{margin:8px 0 0;padding-top:7px;border-top:1px solid #6e554a66;color:#b6a2a1;font-size:10px;line-height:1.5}
.gc414-description{padding:4px 2px;color:#cbb9ab;font-size:10px}
.gc414-description summary{cursor:pointer;color:#d3b18a;font-weight:700}
.gc414-description p{margin:7px 0 0;line-height:1.6;white-space:pre-line}
.gc39-picker .gc39-special{padding:9px 11px}
.gc39-picker .gc39-special label{margin-bottom:7px}
.gc39-picker .gc39-special p{font-size:11px;margin:6px 0 0}
.gc39-picker .gc39-special small{font-size:9px}
.gc39-picker .gc39-install{padding:10px}
.gc39-picker .gc39-list{max-height:390px}
.gc39-picker .gc39-item{padding:8px}
.gc39-picker .gc39-item-icon{width:40px;height:40px}
@media(max-width:700px){
 .modal:has(.gc39-picker) .gc39-picker{padding:12px}
 .gc39-picker .gc39-main{grid-template-columns:minmax(0,1fr)}
 .gc39-picker .gc39-list{max-height:210px;min-height:130px}
 .gc39-picker .gc39-preview{min-height:0}
}

/* P4.20: the atlas already provides a 48x48 game icon with its own border.
 * Avoid scaling/cropping the icon inside a smaller (45px) decorative frame.
 */
.gc39-picker .gc39-item-icon{
  box-sizing:border-box;width:54px;height:54px;min-width:54px;
  display:grid;place-items:center;overflow:hidden;padding:2px;
}
.gc39-picker .gc39-item-icon .gc39-sprite{
  display:block;flex:none;justify-self:center;align-self:center;
  width:48px;height:48px;transform:none;transform-origin:center;
}
.gc39-picker .gc39-item-icon:has(.gc39-sprite),
.gc39-picker .gc39-preview-icon:has(.gc39-sprite){
  background:#161820;border-color:#a27f5a;
}
.gc39-picker .gc39-preview-icon .gc39-sprite{
  display:block;flex:none;width:48px;height:48px;
  transform:none;justify-self:center;align-self:center;
}
.gc39-picker .gc39-item-icon img{
  width:48px;height:48px;max-width:100%;max-height:100%;
}

/* P4.23: readable picker controls and RPG bonus highlights, no inline styles. */
.gc39-picker .gc39-heading{justify-content:flex-start}
.gc39-picker .gc39-class-filter{
 display:flex;align-items:center;justify-content:flex-start;
 flex-direction:row;gap:10px;margin:12px 0 10px;
 width:100%;min-height:24px;text-align:left;cursor:pointer;
}
.gc39-picker .gc39-class-filter input[type="checkbox"]{
 appearance:auto;box-sizing:border-box;display:block;
 flex:0 0 16px;width:16px;height:16px;min-width:16px;
 padding:0;margin:0;accent-color:#e5b17b;
 vertical-align:middle;align-self:center;cursor:pointer;
}
.gc39-picker .gc39-class-filter span{
 display:block;min-width:0;flex:1;
 font:500 12px/1.4 system-ui,"Segoe UI",sans-serif;
 color:#dfc8ba;
}
.gc39-picker .gc39-enchant-control{
 display:grid;grid-template-columns:42px minmax(0,1fr) 42px;
 align-items:stretch;gap:8px;min-height:48px;
}
.gc39-picker .gc39-enchant-control select{
 box-sizing:border-box;display:block;
 width:100%;min-width:0;height:48px;min-height:48px;
 margin:0;padding:0 38px 0 18px;
 line-height:normal;text-align:center;text-align-last:center;
 font-family:system-ui,"Segoe UI",sans-serif;font-size:16px;font-weight:750;
 color:#ffe2b8;background-color:#251b2a;
 appearance:auto;overflow:visible;
}
.gc39-picker .gc39-enchant-control select option{
 padding:8px 12px;color:#ffe2b8;background:#251b2a;
}
.gc39-picker .gc39-enchant-control button{
 box-sizing:border-box;display:flex;align-items:center;justify-content:center;
 width:42px;height:48px;min-height:48px;line-height:1;font-size:22px;
 padding:0;
}
.gc39-picker .gc39-install{
 box-sizing:border-box;display:flex;flex-direction:row;
 align-items:center;justify-content:center;gap:9px;
 width:100%;min-height:50px;height:auto;
 padding:11px 18px;line-height:1.35;
 font-family:system-ui,"Segoe UI",sans-serif;
 font-weight:800;font-size:13px;letter-spacing:.08px;text-align:center;
 white-space:normal;
}
.gc39-picker .gc423-install-icon{
 display:inline-flex;align-items:center;justify-content:center;
 flex:0 0 18px;line-height:1;
}
.gc39-picker .gc423-install-icon svg{display:block;width:17px;height:17px}
.gc39-picker .gc423-install-text{display:block;line-height:1.4}
.gc39-picker .gc423-icon-placeholder{
 display:inline-flex;align-items:center;justify-content:center;
 width:36px;height:36px;color:#deb585;opacity:.84;
}
.gc39-picker .gc423-icon-placeholder svg{max-width:30px;max-height:30px}
.gc39-picker .gc414-stat-line.gc423-bonus-undead,
.gc39-picker .gc414-stat-line.gc423-bonus-pvp,
.gc39-picker .gc414-stat-line.gc423-bonus-monster,
.gc39-picker .gc414-stat-line.gc423-bonus-hunter,
.gc39-picker .gc414-stat-line.gc423-bonus-defense{
 border:1px solid; border-radius:6px;padding:7px 9px;
 margin:2px 0;line-height:1.5;font-weight:650;
}
.gc39-picker .gc414-stat-line.gc423-bonus-undead{
 color:#d6bcff;background:#382b50;border-color:#75549a;
}
.gc39-picker .gc414-stat-line.gc423-bonus-pvp{
 color:#ffb7a4;background:#472834;border-color:#a5655c;
}
.gc39-picker .gc414-stat-line.gc423-bonus-monster{
 color:#f5ca86;background:#443324;border-color:#987343;
}
.gc39-picker .gc414-stat-line.gc423-bonus-hunter{
 color:#a9e4c3;background:#223d35;border-color:#478572;
}
.gc39-picker .gc414-stat-line.gc423-bonus-defense{
 color:#aee0ec;background:#213541;border-color:#487b91;
}
.gc39-picker .gc414-stat-line[class*="gc423-bonus-"] .gc43-stat-label{
 color:inherit;font-weight:700;
}
.gc39-picker .gc414-stat-line[class*="gc423-bonus-"] .gc43-stat-value{
 color:#ffcb82;font-weight:850;
}
.gc39-picker .gc414-stat-line[class*="gc423-bonus-"] .gc43-stat-hidden{
 color:#adb5c4;
}
