/* Bounded information panes replace the previous five-section vertical dump. */
#sheet[data-view=character] .sheet-scroll,#sheet.gear-detail .sheet-scroll{display:flex;flex-direction:column;overflow:hidden;padding-top:10px}
[data-panel-body=character],[data-panel-body=detail]{min-height:0;flex:1;height:100%}
#character-body{display:flex;flex-direction:column;height:100%;min-height:0}
.character-subnav,.gear-tabs{display:flex;flex:none;gap:6px;margin:0 0 12px;padding:0 0 10px;border-bottom:1px solid #a3895f55}
.character-subnav button,.gear-tabs button{flex:1;min-width:0;min-height:44px;padding:5px 7px;font-size:14px}
.character-subnav button[aria-pressed=true],.gear-tabs button[aria-pressed=true]{background:#294d42;border-color:#e5b86c;color:#f7e1aa}
.gear-tabs small{border-radius:10px;min-width:17px;background:#c7ab6d30;color:#e8ce92;padding:0 3px;font-size:10px}
.character-content{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:0 3px}
.character-paperdoll{height:270px}
.character-hero{margin:6px 0 13px}.character-hero .help{margin:5px 0;font-size:12px}.character-hero h3{font-size:21px}.experience-meter{height:7px}
.equipment-summary{display:grid;grid-template-columns:1fr 1fr 1.3fr;gap:8px;align-items:stretch;margin:10px 0}.equipment-summary>div{display:flex;flex-direction:column;gap:3px;background:#183430;border:1px solid #84906c55;border-radius:6px;padding:8px 11px}.equipment-summary>div>span{font-size:12px;color:#b6c2ad}.equipment-summary strong{font-size:23px;color:#eddfbc}.equipment-summary button{padding:6px;font-size:13px}.equipment-summary button span{font-size:20px;margin-left:auto}.equipment-hint{font-size:12px;text-align:center;line-height:1.6}
.character-footer{flex:none;padding:11px 0 0;border-top:1px solid #a3895f55;background:#0b2227}.character-footer>button{width:100%;min-height:46px;font-size:16px}.character-footer #equip-result{margin:6px 0 0;min-height:0;line-height:1.5;font-size:12px;color:#bdd89b}.character-footer #equip-result:empty{display:none}
#sheet.gear-detail #detail-body{display:flex;flex-direction:column;min-height:0;height:100%}
.gear-detail .detail-hero{flex:none;min-height:90px;padding:0 0 12px;gap:15px;margin:0 0 12px}.gear-detail .detail-hero>.item-icon{width:88px;height:88px;min-width:88px;background:#0c272c;border:1px solid #a18b5c88;border-radius:8px}.gear-detail .detail-hero .icon{width:72px;height:72px}.gear-detail .detail-hero>div{min-width:0}.gear-detail .detail-hero h3{font-size:22px;line-height:1.45;white-space:normal;overflow-wrap:anywhere}.gear-detail .detail-hero small{font-size:12px;color:#c3c8b3}.gear-meta{font-size:12px;color:#b4bda9;line-height:1.7;margin:4px 0 0}
.gear-inspector{display:flex;flex-direction:column;flex:1;min-height:0;height:auto}.gear-content{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:0 2px 8px}.gear-section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:4px 0 13px}.gear-section-title h3{font-size:18px;margin:0;padding:0;border:0}.gear-section-title>span{font-size:12px;color:#ceb985;line-height:1.5;text-align:right}
.gear-table{width:100%;border-collapse:collapse;font-size:14px;line-height:1.6;font-variant-numeric:tabular-nums}.gear-table thead{position:sticky;top:0;z-index:1;background:#173330}.gear-table thead th{font-size:11px;font-weight:500;color:#c8c5ad;padding:11px 7px;border-bottom:1px solid #ba9b6155}.gear-table td{padding:13px 7px;text-align:right;white-space:nowrap;border-bottom:1px solid #7b8a6733}.gear-table tbody th{padding:13px 7px;text-align:left;font-weight:500;color:#ddd6bb;border-bottom:1px solid #7b8a6733}.gear-table tbody tr:nth-child(even){background:#15302d88}.gear-table th:first-child{text-align:left}.gear-table td:last-child{color:#f2e1ad}.gear-table .positive,.positive{color:#afc48b}.gear-table .negative,.negative{color:#d79587}.gear-table .unchanged{color:#98aaa3}.gear-footnote{font-size:11px;line-height:1.7;color:#aab5a7;margin:14px 2px 2px}.comparison-target{font-size:12px;line-height:1.7;color:#bdc5b0;margin:6px 0 14px}
.gear-detail .detail-actions{position:static;flex:none;margin:0;padding:12px 0 0;min-height:46px}.gear-detail .detail-actions>button{flex:1;min-height:46px}
.affix-list{display:grid;gap:10px}.affix-row{display:flex;gap:12px;align-items:center;min-height:64px;padding:10px 13px;border:1px solid #9f966655;border-radius:7px;background:#16322e}.affix-mark{font-size:24px;color:#b3ba81}.affix-row small{font-size:11px;color:#a9baa2;display:block;margin-bottom:4px}.affix-row strong{font-size:16px;color:#dedab5;line-height:1.6}
.equipment-empty{padding:30px 15px;margin:0;text-align:center;font-size:14px;color:#b6c0ad;line-height:1.9;border:1px dashed #9a936450;border-radius:8px;background:#102a2b}.equipment-empty strong{display:block;font-family:"Songti TC",serif;font-size:19px;color:#d9c698}.equipment-empty p{font-size:13px;margin:12px 0 0}
.set-selector{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:7px;min-width:0;flex:none;padding:0 0 10px;margin:0 0 10px;scrollbar-width:thin}.set-selector button{flex:0 0 auto;min-height:44px;gap:8px;padding:7px 12px;font-size:13px}.set-selector small{font-size:11px;color:#cabb93}
.equipment-set-card{margin:0;padding:15px;border:1px solid #b2985b75;border-radius:7px;background:#18332f}.equipment-set-card>header{display:flex;align-items:center;gap:10px;padding:0 0 13px}.set-emblem{display:grid;place-items:center;width:44px;height:44px;color:#d4ba7e;border:1px solid #ba9a5b88;border-radius:50%;background:#304b38;font-size:25px;flex:none}.equipment-set-card>header>div{flex:1;min-width:0}.equipment-set-card>header strong{font-family:"Songti TC",serif;font-size:22px;color:#ead09a;display:block}.equipment-set-card>header small{font-size:11px;color:#b8c1a9;display:block;margin-top:4px}.set-count{font-size:26px;color:#e8cf91;font-weight:500;text-align:right;white-space:nowrap}.set-count small{font-size:11px}.set-piece-meter{display:flex;gap:6px;margin:0 0 18px}.set-piece-meter i{flex:1;height:6px;border-radius:3px;background:#071c20;border:1px solid #7d8d6855}.set-piece-meter i.filled{background:#b1b477;border-color:#d5c88a}.set-stage{padding:12px 0;border-top:1px solid #b1a37244}.set-stage-label{display:flex;justify-content:space-between;gap:10px;font-size:13px}.set-stage-label>b{font-weight:500;color:#e4d09d}.set-stage-label>span{color:#b5c28f}.set-stage p{margin:9px 0 0;font-size:13px;line-height:1.85;color:#d0d6bc}.set-stage.set-inactive{opacity:.55}.set-stage.set-inactive .set-stage-label>span{color:#b8bcae}
@media(min-width:1000px) and (min-height:650px){#panel-modal:has(.gear-detail){width:min(850px,calc(100vw - 60px));height:min(740px,calc(var(--visible-height) - 48px))}.gear-detail .detail-hero{gap:20px}.gear-detail .detail-hero>.item-icon{width:102px;height:102px}.gear-detail .detail-hero .icon{width:86px;height:86px}.gear-inspector{min-height:0}.gear-table td,.gear-table tbody th{padding:15px 16px}.gear-table thead th{padding:12px 16px}.gear-content{padding:0 8px 8px}.affix-row{min-height:76px;padding:13px 20px}.equipment-set-card{padding:20px}.gear-tabs button{font-size:16px;min-height:46px}}
@media(max-width:599px){.character-subnav{gap:5px;margin-bottom:10px;padding-bottom:9px}.character-subnav button{font-size:13px}.character-paperdoll{height:242px}.equipment-paperdoll button{height:73px;min-height:73px;width:25%}.equipment-paperdoll [data-equipment-slot=off],.equipment-paperdoll [data-equipment-slot=feet]{top:84px}.equipment-paperdoll [data-equipment-slot=head],.equipment-paperdoll [data-equipment-slot=accessory],.equipment-paperdoll [data-equipment-slot=lantern]{top:168px}.paperdoll-avatar{top:25px;bottom:45px}.character-hero h3{font-size:19px}.equipment-summary{gap:6px}.equipment-summary>div{padding:7px 9px}.equipment-summary strong{font-size:21px}.equipment-summary button{font-size:12px}.gear-detail .detail-hero{gap:11px;min-height:80px;padding-bottom:10px;margin-bottom:10px}.gear-detail .detail-hero>.item-icon{width:73px;height:73px;min-width:73px}.gear-detail .detail-hero .icon{width:62px;height:62px}.gear-detail .detail-hero h3{font-size:18px;line-height:1.45}.gear-detail .detail-hero small{font-size:11px}.gear-meta{font-size:10px;margin-top:3px}.gear-tabs{gap:5px;margin-bottom:10px;padding-bottom:9px}.gear-tabs button{font-size:13px;padding:5px 3px}.gear-table{font-size:12px}.gear-table thead th{font-size:10px;padding:10px 5px}.gear-table td,.gear-table tbody th{padding:12px 5px}.gear-section-title h3{font-size:17px}.gear-section-title>span{font-size:10px}.affix-row{min-height:62px;padding:9px 12px}.affix-row strong{font-size:14px}.equipment-set-card{padding:13px}.equipment-set-card>header strong{font-size:21px}.set-stage p{font-size:12px;line-height:1.85}.set-stage-label{font-size:12px}.set-count{font-size:23px}.set-emblem{width:38px;height:38px;font-size:22px}}
@media(max-height:560px){.gear-detail .detail-hero{min-height:55px;margin-bottom:6px;padding-bottom:6px}.gear-detail .detail-hero>.item-icon{width:54px;height:54px;min-width:54px}.gear-detail .detail-hero .icon{width:46px;height:46px}.gear-detail .detail-hero h3{font-size:17px}.gear-detail .detail-hero small{display:none}.gear-meta{margin:2px 0}.gear-tabs{margin-bottom:6px;padding-bottom:6px}.gear-detail .detail-actions{padding-top:8px}}
.character-powerline{display:flex;justify-content:center;align-items:center;gap:25px;margin:17px 0 12px;padding:13px 0 12px;border-top:1px solid #a18e5b50;border-bottom:1px solid #a18e5b50;background:none}
.character-powerline>span{display:flex;align-items:center;gap:9px}.character-powerline .icon{width:34px;height:34px}.character-powerline small{font-size:12px;color:#c4c7ad}.character-powerline strong{font-family:"Songti TC",Georgia,serif;font-size:25px;color:#f0dfb7;font-weight:600}.character-powerline>i{height:24px;border-left:1px solid #b59a5c50}
.set-emblem{border:0;background:none;width:43px;height:43px;border-radius:0}.set-emblem .icon{width:100%;height:100%}
.set-count{position:relative;flex:none;display:flex;align-items:center;justify-content:center;gap:3px;width:66px;height:66px;box-sizing:border-box;padding:7px;background:#102a2b url('/assets/ui-dark-fairytale-v1/painted-ring.png') center/100% 100% no-repeat;border-radius:50%;font-family:"Songti TC",Georgia,serif;color:#eddbb2}
.set-count>span{font-size:30px;line-height:1;font-weight:600;text-shadow:0 1px 1px #000a}.set-count small{font-family:"PingFang TC",sans-serif;font-size:11px;color:#c9c5a6;margin-top:13px}.set-count-change{width:102px;border-radius:7px;background:#0a2528;border:1px solid #b1985b}.set-count-change>span{font-size:23px}.affix-mark{width:30px;height:30px;display:flex;flex:none}.affix-mark .icon{width:100%;height:100%}
@media(max-width:599px){.character-powerline{gap:21px;padding:12px 0}.character-powerline .icon{width:31px;height:31px}.character-powerline strong{font-size:24px}.set-count{width:62px;height:62px}.set-count-change{width:94px}.set-count>span{font-size:28px}.set-count-change>span{font-size:21px}.set-count small{font-size:10px}}
