.depth-tools,.body-section-head,.model-head,.model-tools,.edition-account,.fund-balance,.source-crown,.source-foot,.exchange-row,.coin-strip,.morph-ends{display:flex;gap:.65rem;align-items:center;justify-content:space-between;flex-wrap:wrap}.depth-tools{justify-content:flex-end;margin-bottom:12px}.source-link,.prereq-link{color:#efd19d;text-decoration:underline;text-underline-offset:3px}.prereq-link{font:inherit;padding:0}.depth-banner,.edition-tabs button,.mannequin-panel,.body-controls,.depth-panel,.trait-choices,.morph-control,.source-card,.budget-card,.edition-account,.fund-balance,.source-search{border:1px solid #77634c;border-radius:7px;background:linear-gradient(135deg,#342c36,#211e28);box-shadow:inset 0 1px #efdbad1a,1px 3px #4f3f34,0 6px 14px #0b09113d}
.depth-banner{position:relative;overflow:hidden;margin:12px 0}.depth-banner>img{width:100%;height:150px;object-fit:cover;display:block}.depth-banner>div,.edition-tabs span{position:absolute;inset:auto 0 0;padding:30px 16px 10px;color:#fff1d6;background:linear-gradient(transparent,#15131dea)}.depth-banner h3{font:600 2rem/1 var(--display)}.depth-banner p{margin:4px 0 0}.depth-panel,.fund-balance,.edition-account,.source-search,.body-controls,.mannequin-panel{padding:14px;margin:12px 0}.depth-panel h3,.body-controls h3{font:600 1.7rem/1.15 var(--display)}.depth-panel p,.source-copy p{line-height:1.52;color:#e2d8d2;white-space:pre-line}.budget-options,.source-grid,.lot-grid,.edition-tabs{display:grid;gap:12px;margin:14px 0;grid-template-columns:repeat(auto-fit,minmax(min(100%,185px),1fr))}.budget-card{display:grid;gap:5px;text-align:left;padding:13px}.budget-card strong{font:600 1.4rem var(--display)}.budget-card span,.budget-card small,.model-head,.source-crown small{color:#dbc69f}.budget-card.on,.edition-tabs .on,.trait-option.on,.source-card.selected{border-color:#efc885;box-shadow:inset 0 0 0 1px #d3aa7066,1px 3px #976d40}.coin-strip{justify-content:flex-start;color:#f7d898}.coin-strip span{white-space:nowrap}.lot-grid{grid-template-columns:repeat(auto-fit,minmax(114px,1fr))}.lot-grid>div{display:grid;gap:7px}.lot-grid .stepper{justify-self:start}.edition-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}.edition-tabs button{position:relative;overflow:hidden;padding:0}.edition-tabs img{display:block;width:100%;height:100px;object-fit:cover}.edition-tabs span{text-align:left;font:600 1.4rem var(--display)}.source-search{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:9px}.source-search label,.exchange-row label{min-width:0;display:grid;gap:4px;font-size:.84rem;color:#e2ceab}.source-search input,.source-search select,.exchange-row select{max-width:100%;width:100%;background:#211d25;color:#f3e9d8;border:1px solid #756658;border-radius:4px;padding:8px;color-scheme:dark}.source-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,257px),1fr));align-items:start}.source-card{overflow:hidden}.source-card[hidden],.source-none[hidden]{display:none}.source-picture img{display:block;width:100%;height:170px;object-fit:contain;background:#1e1b23}.source-copy{padding:12px}.source-copy h4{font-size:1.55rem;line-height:1.15;margin:7px 0}.source-copy p{margin:7px 0}.source-origin,.required-list,.price-details,.source-synergy,.pick-warning{font-size:.83rem;margin:8px 0;color:#d9c9b8}.pick-warning{color:#ecc397}.source-synergy{padding:7px 9px;border-left:2px solid #a58baf;background:#40334455}.price-details summary{cursor:pointer}.source-foot{margin-top:10px}.source-count{color:#c6b79f;font-size:.85rem}.source-none{padding:15px}.book-door{margin:14px 0}
.body-stage-grid{display:grid;grid-template-columns:minmax(200px,.75fr) minmax(0,1.2fr);gap:15px;align-items:start}.mannequin-panel{position:sticky;top:80px;overflow:hidden;background:radial-gradient(ellipse at 45% 35%,#414451,#221f2b 78%)}#body-preview{display:block;width:100%;height:auto;touch-action:none;cursor:grab;border-radius:5px}.model-tools{justify-content:center}.mannequin-panel p,.body-caption{font-size:.83rem;text-align:center;color:#d2c1ad}.body-caption{margin:6px}.body-section-head{margin:16px 0}.trait-choices,.morph-control{margin:13px 0;padding:12px;min-width:0}.trait-choices legend{font-family:var(--display);font-size:1.35rem;color:#f3dfbd}.trait-list{display:flex;flex-wrap:wrap;gap:6px}.trait-option{padding:6px 9px;border:1px solid #756455;border-radius:4px;background:#29242d;font-size:.87rem}.trait-thumb{width:38px;height:28px;object-fit:cover;vertical-align:middle;margin-right:6px;border-radius:2px}.trait-choices small,.morph-control small{display:block;margin-top:8px;font-size:.73rem}.morph-control label{font-weight:600}.morph-control output{float:right;color:#ebcc93;font-size:.84rem}.morph-ends{font-size:.78rem;color:#cabcb3}.morph-tabs{gap:5px}.body-controls .subtabs button{font-size:.85rem}.source-copy .required-list strong{color:#f4d59d}.source-card:only-child{max-width:550px}
@media(max-width:750px){.body-stage-grid{grid-template-columns:1fr}.mannequin-panel{position:static}.mannequin-panel canvas{max-height:350px;object-fit:contain}.edition-tabs{gap:6px}.edition-tabs img{height:80px}.edition-tabs span{font-size:1.04rem;padding-inline:7px}.source-search{grid-template-columns:1fr 1fr}.source-search>label:first-child{grid-column:1/-1}.model-tools button{padding:5px 9px}.body-controls{margin-top:0}.source-picture img{height:185px}}

#body-preview{width:100%;height:clamp(260px,45vw,470px)}
.quantity-line{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:8px;color:#dfceb3;font-size:.82rem}.quantity-line input{width:4rem;border:1px solid #836c56;border-radius:4px;padding:5px;background:#221d25;color:#fff}.quantity-line .soft-btn{padding:5px 8px}

.heritage-panel,.ascension-panel{display:flex;align-items:center;gap:1.2rem;padding:clamp(1rem,3vw,2rem);margin:1rem 0 1.5rem;background:radial-gradient(ellipse at top left,#55424d,#28222d 68%);border:1px solid #957652;border-radius:9px;box-shadow:inset 0 1px #d8bd9050,0 4px #463a37}
.heritage-panel h3,.ascension-panel h3{font:600 clamp(1.65rem,4vw,2.3rem)/1.12 var(--display);margin:.35rem 0;color:#fae5bf}.heritage-panel small,.ascension-panel small{color:#dbbd89}.heritage-panel p,.ascension-panel p{margin:.65rem 0;line-height:1.55}.heritage-actions,.ancestry-portraits{display:flex;gap:.5rem;flex-wrap:wrap}.ancestry-portraits{max-width:32%;flex-shrink:0}.ancestry-portraits img{width:55px;height:75px;object-fit:cover;border:1px solid #c9ae80;border-radius:5px}.ascension-art{width:min(24%,160px);height:170px;object-fit:cover;border:1px solid #987b60;border-radius:5px}
.plate-title,.source-copy,.rank-leaf-body,.source-search>label,.heritage-panel>div,.ascension-panel>div{min-width:0}.plate-title h3,.source-copy h4,.rank-line h4{overflow-wrap:anywhere}.plate-title,.rank-line{flex-wrap:wrap}.cost{max-width:100%;white-space:normal}.choice-accessories,.source-foot,.rank-actions,.plate-foot,.trait-list,.heritage-actions{flex-wrap:wrap}.source-search select,.source-search input{min-width:0;max-width:100%}.resource .res-label{white-space:normal}.alternate-art img{max-width:160px;max-height:125px;object-fit:contain}.alternate-art{margin:12px 0}.alternate-art figcaption{font-size:.82rem}
@media(max-width:560px){.heritage-panel,.ascension-panel{align-items:flex-start;flex-direction:column}.ancestry-portraits{max-width:100%}.ascension-art{width:100%;height:115px;object-position:50% 35%}.source-search{grid-template-columns:minmax(0,1fr)}.source-search>label{grid-column:1}.chapter-head{flex-wrap:wrap}.source-picture img{max-width:100%}}

.track-current,.advance-target{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap;margin:1rem 0}.advance-target{justify-content:flex-start;border-top:1px solid #78634b;padding-top:.85rem;font-size:.95rem}.advance-target input{width:5rem;padding:.45rem;color:inherit;background:#25212a;border:1px solid #89755b;border-radius:4px}.advance-target output{color:#e5c697}.lineage-route{margin:.6rem 0}

#ledger{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding-block:.55rem}#ledger .balance-main{display:flex;align-items:center;gap:.6rem;padding:.25rem 0;width:auto;text-align:left}#ledger .balance-main .gem{position:static;display:grid}#ledger .balance-main .res-body{display:flex;align-items:baseline;gap:.48rem}#ledger .balance-main strong{font-size:1.85rem}#ledger .balance-main .res-label{font-size:.9rem}.ledger-character{display:flex;flex-direction:column;flex:1;min-width:0;text-align:right}.ledger-character small{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#cfbda3}#ledger .outline-btn{flex:none;min-height:36px;padding:.35rem .75rem}
@media(max-width:600px){#ledger{gap:.45rem}#ledger .balance-main .gem{width:25px;height:25px}#ledger .balance-main strong{font-size:1.45rem}#ledger .balance-main .res-label{font-size:.78rem}.ledger-character{display:none}}
