.battle-inspection-shade{position:absolute;inset:0;z-index:13200;background:#18352b70;display:grid;place-items:center;padding:16px;box-sizing:border-box}
.battle-inspection{width:min(100%,420px);max-height:calc(100% - 8px);display:flex;flex-direction:column;border:1px solid #a6b091;border-radius:18px;background:#fffdf2;box-shadow:0 8px 30px #18312833,inset 0 0 0 4px #f5f1e2;overflow:hidden;color:#365c50}
.battle-inspection>header{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:15px 16px 11px;border-bottom:1px solid #e0dcc5;flex:none}
.battle-inspection h2{font:700 18px/1.2 Interface,sans-serif;margin:0 0 4px}.battle-inspection header small{font:10px/1.3 Interface,sans-serif;color:#8b8e74}
.battle-inspection [data-inspection-close]{width:34px;height:34px;flex:none;border:1px solid #d4c9a9;border-radius:9px;background:#fff8e9;color:#467466;font:24px/1 Interface,sans-serif;display:grid;place-items:center;padding:0}
.battle-inspection-scroll{overflow-y:auto;min-height:0;padding:0 15px 15px;scrollbar-width:thin;overscroll-behavior:contain}
.inspection-figure{height:clamp(190px,35dvh,330px);display:grid;place-items:center;margin:8px 0;background:radial-gradient(ellipse at 50% 75%,#e4e9d18c,transparent 66%)}
.inspection-figure>img{width:100%;height:100%;max-height:330px;object-fit:contain;object-position:center;min-height:0}
.inspection-facts,.inspection-attributes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.inspection-facts>span,.inspection-attributes>span{display:grid;grid-template-columns:18px auto;align-items:center;justify-content:center;column-gap:5px;border:1px solid #d5ddbf;background:#f5f8ec;border-radius:7px;padding:7px 3px;min-width:0}
.inspection-facts img,.inspection-attributes img{width:17px;height:17px;object-fit:contain}.inspection-facts b,.inspection-attributes b{font:700 12px/1.2 Interface,sans-serif}.inspection-facts small,.inspection-attributes small{grid-column:1/-1;text-align:center;font:9px/1.2 Interface,sans-serif;color:#899176;margin-top:4px}
.battle-inspection h3{font:700 12px/1.2 Interface,sans-serif;margin:14px 0 8px}
.inspection-equipment{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}.inspection-gear{display:grid;grid-template-rows:22px 45px 27px;gap:3px;align-items:center;text-align:center;padding:5px 2px;border:1px solid #d7d6bd;border-radius:7px;background:#f9f7eb;min-width:0}.inspection-gear small{font:8px/1.1 Interface,sans-serif;color:#8b8c72}.inspection-gear img{width:100%;height:45px;object-fit:contain}.inspection-gear b{font:700 8px/1.15 Interface,sans-serif;overflow:hidden}.inspection-empty{font-size:22px;color:#acb199}.inspection-gear.is-shared{filter:grayscale(1);background:#e9ece5}
.inspection-description{font:12px/1.5 Interface,sans-serif;color:#818871;margin:12px 0 0}.battle-inspection.is-summon{border-color:#788f43}.battle-inspection.is-summon .inspection-figure{background:radial-gradient(ellipse at 50% 75%,#dfe9bd99,transparent 66%)}
@media(max-height:650px){.inspection-figure{height:190px}.battle-inspection>header{padding-top:10px;padding-bottom:8px}}

.card-field #battle-root .card-portrait,.card-field #combat-profile>img{pointer-events:auto;cursor:zoom-in}

.inspection-magic{font:17px/1 Icons;color:#8c66a4;width:17px;height:17px;text-align:center}

.battle-inspection-scroll{scrollbar-width:none}.battle-inspection-scroll::-webkit-scrollbar{display:none}
.inspection-equipment{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;padding:2px}
.inspection-equipment .relic-equipment,.inspection-equipment>.inspection-gear{height:154px!important;min-height:154px!important;max-height:154px!important;width:100%;box-sizing:border-box}
.inspection-equipment .relic-front .equipment-slot{width:100%;height:100%;min-height:0;padding:7px 5px;display:grid;grid-template-rows:20px 62px 30px 3px 12px;gap:2px;background:transparent;border:0;box-sizing:border-box}
.inspection-equipment .equipment-slot-art>img{width:100%;height:60px;object-fit:contain}.inspection-equipment .equipment-slot-label{font-size:8px;line-height:1.15;text-align:center}
.inspection-equipment .equipment-slot strong{font:700 9px/1.2 Interface,sans-serif;text-align:center;overflow:hidden}.inspection-equipment .equipment-slot small{font:8px/1 Interface,sans-serif;text-align:center}
.inspection-equipment .relic-back{padding:8px!important;font-size:9px}.inspection-equipment .relic-back .item-lore{font-size:9px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.inspection-equipment .inspection-gear{grid-template-rows:22px 80px 27px}.inspection-equipment .inspection-gear img{height:72px}

/* Six fixed slots around the full figure, with independent image/name rows. */
.inspection-loadout{grid-template-columns:minmax(66px,1fr) minmax(0,1.7fr) minmax(66px,1fr);gap:7px;align-items:stretch;margin:10px 0 14px;padding:0}
.inspection-loadout .inspection-side{display:grid;grid-template-rows:repeat(3,126px);gap:8px;min-width:0}
.inspection-loadout .inspection-figure{height:auto;min-height:0;margin:0;position:relative;overflow:hidden}
.inspection-loadout .inspection-figure>img{position:absolute;inset:0;width:100%;height:100%;max-height:none;object-fit:contain}
.inspection-loadout .relic-equipment,.inspection-loadout .inspection-gear{height:126px!important;min-height:126px!important;max-height:126px!important;min-width:0;width:100%;box-sizing:border-box}
.inspection-loadout .relic-front .equipment-slot{padding:6px 4px!important;grid-template-rows:17px 46px 25px 3px 10px!important;gap:2px!important;align-items:center}
.inspection-loadout .equipment-slot-art{height:46px!important;min-height:0!important;display:grid!important;place-items:center;margin:0!important;overflow:hidden}
.inspection-loadout .equipment-slot-art>img{width:100%!important;height:44px!important;max-height:44px!important;object-fit:contain!important}
.inspection-loadout .equipment-slot strong{height:25px;min-height:0!important;margin:0!important;display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;font:700 8px/1.35 Interface,sans-serif!important;overflow:hidden;overflow-wrap:anywhere}
.inspection-loadout .equipment-slot-label{font:700 7px/1.15 Interface,sans-serif!important;margin:0!important;align-self:center}
.inspection-loadout .equipment-slot-condition{width:100%;height:3px;margin:0!important}
.inspection-loadout .equipment-slot>small{font:7px/1 Interface,sans-serif!important;margin:0!important}
.inspection-loadout .inspection-gear{padding:6px 4px;grid-template-rows:17px 57px 23px;gap:4px}
.inspection-loadout .inspection-gear img{width:100%;height:54px;object-fit:contain;opacity:.36;filter:grayscale(.65)}
.inspection-loadout .inspection-gear.is-shared img{opacity:.7;filter:grayscale(1)}
.inspection-loadout .relic-back{padding:6px!important;gap:4px!important;overflow:hidden;font-size:8px}
.v14-equipment-panel>.equipment-summary{display:flex;justify-content:center;align-items:center;gap:6px;margin:10px 0 0;color:#8c9478;font:10px/1.2 Interface,sans-serif}
.equipment-slot-art>.empty-slot-art{opacity:.3;filter:grayscale(.6)}
@media(max-width:350px){.inspection-loadout{gap:5px;grid-template-columns:minmax(62px,1fr) minmax(0,1.35fr) minmax(62px,1fr)}.battle-inspection-scroll{padding-inline:10px}}

/* Keep equipment subordinate to the hero, not three oversized item columns. */
.inspection-loadout{grid-template-columns:62px minmax(0,1fr) 62px;gap:6px}
.inspection-loadout .inspection-side{grid-template-rows:repeat(3,104px);gap:7px}
.inspection-loadout .relic-equipment,.inspection-loadout .inspection-gear{height:104px!important;min-height:104px!important;max-height:104px!important}
.inspection-loadout .relic-front .equipment-slot{grid-template-rows:13px 35px 23px 3px 8px!important;padding:5px 3px!important;gap:2px!important}
.inspection-loadout .equipment-slot-art{height:35px!important}.inspection-loadout .equipment-slot-art>img{height:34px!important;max-height:34px!important}
.inspection-loadout .equipment-slot strong{font-size:7px!important;height:23px}.inspection-loadout .equipment-slot>small{font-size:6px!important}
.inspection-loadout .inspection-gear{grid-template-rows:14px 44px 18px;gap:3px;padding:5px 3px}
.inspection-loadout .inspection-gear img{height:40px;opacity:.75;filter:none}
.inspection-loadout .inspection-gear b{font-size:7px}
.inspection-loadout .inspection-figure{overflow:visible}
.inspection-loadout .inspection-figure>img{width:calc(100% - 12px);left:6px;right:auto;object-fit:contain}
.equipment-slot-art>.empty-slot-art{opacity:.7;filter:none}
.item-dossier .item-dossier-status{justify-content:flex-start;align-items:center;flex-wrap:wrap;gap:7px;font-size:9px}
.item-dossier .item-dossier-status>.item-requirements{display:inline-flex;align-items:center;gap:5px;border-left:1px solid #d4cfb7;padding-left:8px;flex-wrap:wrap;min-width:0}
.item-requirement{display:inline-flex;align-items:center;padding:3px 5px;border:1px solid #d8dfc7;border-radius:5px;background:#f4f7ec;color:#657d61;font:700 8px/1.15 Interface,sans-serif;white-space:nowrap}
.item-requirement.unmet{border-color:#d5b19e;background:#faece2;color:#a65a48}
@media(max-width:350px){.inspection-loadout{grid-template-columns:54px minmax(0,1fr) 54px;gap:5px}.inspection-loadout .equipment-slot-label{font-size:6px!important}}
img[src$="/normal-viper.webp"],img[src$="/portraits/viper.png"]{scale:-1 1}
.inspection-loadout .equipment-slot-condition,.inspection-loadout .equipment-slot>small{display:none!important}
.inspection-loadout .relic-front .equipment-slot{grid-template-rows:13px 39px minmax(0,1fr)!important;gap:4px!important}
.inspection-loadout .equipment-slot strong{font:700 8.5px/1.25 Interface,sans-serif!important;height:auto;max-height:34px;-webkit-line-clamp:3;align-self:center}
.hero-character{padding:12px!important;overflow:visible}
#hero .hero-identity-plain{display:block;padding:0 0 12px!important;margin:0!important;border:0;box-shadow:none;background:transparent;min-height:0;position:relative}
#hero .hero-identity-plain .v13-identity-copy{width:100%;min-width:0}
#hero .hero-identity-plain .v13-identity-title{padding-right:36px;align-items:center;gap:7px}
#hero .hero-identity-plain h2{font-size:19px;line-height:1.15}
#hero .hero-identity-plain .v13-identity-tools{top:0;right:0}
#hero .hero-identity-plain .v13-identity-meta{margin:5px 0 9px}
#hero .hero-paperdoll{grid-template-columns:70px minmax(0,1fr) 70px;margin:0;gap:6px}
#hero .hero-paperdoll .inspection-side{grid-template-rows:repeat(3,112px)}
#hero .hero-paperdoll .relic-equipment,#hero .hero-paperdoll .inspection-gear{height:112px!important;min-height:112px!important;max-height:112px!important}
#hero .hero-paperdoll .inspection-figure>img{width:calc(100% - 12px);left:6px}
#hero .hero-paperdoll button.inspection-gear{width:100%;color:#72816c;cursor:pointer}
#hero .hero-paperdoll .is-shared>img{filter:grayscale(1);opacity:.7}
@media(max-width:350px){#hero .hero-paperdoll{grid-template-columns:61px minmax(0,1fr) 61px;gap:4px}.hero-character{padding:9px!important}}
#hero .hero-identity-plain{background:#faf8ed!important;border:1px solid #d6d7bf!important;border-radius:10px;padding:10px!important;margin-bottom:8px!important}
#hero .hero-identity-plain .v13-identity-tools{top:8px;right:8px}
#hero .hero-identity-plain .v13-xp-label,#hero .hero-identity-plain .v13-xp-label small{font:9px/1.3 Interface,sans-serif}
#hero .hero-identity-plain .v13-identity-copy{display:grid!important;grid-template-columns:minmax(0,1fr) 34px;grid-template-areas:'title tools' 'meta tools' 'label label' 'xp xp';gap:4px 8px;align-items:center}
#hero .hero-identity-plain .v13-identity-title{grid-area:title;display:flex;align-items:center;padding:0;gap:7px;min-width:0}
#hero .hero-identity-plain .v13-identity-title h2{font:700 19px/1.25 Interface,sans-serif!important;margin:0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#hero .hero-identity-plain .v13-identity-level{flex:none;align-self:center;line-height:1.1;margin:0}
#hero .hero-identity-plain .v13-identity-meta{grid-area:meta;margin:0!important;line-height:1.3}
#hero .hero-identity-plain .v13-identity-tools{grid-area:tools;position:static!important;align-self:start;margin:0!important}
#hero .hero-identity-plain .v13-identity-tools button{width:34px;height:34px;min-height:34px;display:grid;place-items:center;padding:0}
#hero .hero-identity-plain .v13-xp-label{grid-area:label;margin:5px 0 0;display:flex;justify-content:space-between;gap:8px}
#hero .hero-identity-plain .v13-xp{grid-area:xp;margin:0;height:3px}
#hero .hero-paperdoll .relic-front .equipment-slot{grid-template-rows:12px 56px minmax(0,1fr)!important;padding:5px 3px!important;gap:3px!important}
#hero .hero-paperdoll .equipment-slot-art{height:56px!important;overflow:visible}
#hero .hero-paperdoll .equipment-slot-art>img{height:55px!important;max-height:55px!important;width:100%!important;object-fit:contain!important}
#hero .hero-paperdoll .equipment-slot strong{font-size:8.5px!important;line-height:1.2!important;max-height:25px;margin:0!important}
#hero .hero-paperdoll .inspection-gear{grid-template-rows:12px 56px minmax(0,1fr);gap:3px;padding:5px 3px}
#hero .hero-paperdoll .inspection-gear>img{height:54px;max-height:54px}
.inspection-loadout .relic-front .equipment-slot-label{display:none!important}
.inspection-loadout .relic-front .equipment-slot{grid-template-rows:64px minmax(0,1fr)!important;gap:3px!important}
.inspection-loadout .equipment-slot-art{height:64px!important}
.inspection-loadout .equipment-slot-art>img{height:62px!important;max-height:62px!important}
#hero .hero-paperdoll .relic-front .equipment-slot{grid-template-rows:70px minmax(0,1fr)!important}
#hero .hero-paperdoll .equipment-slot-art{height:70px!important}
#hero .hero-paperdoll .equipment-slot-art>img{height:68px!important;max-height:68px!important}

.hero-edit-pencil{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;display:block;margin:auto}
#modal-root .hero-rename-modal{width:min(360px,calc(100% - 24px));padding:20px;border:1px solid #c5c9b1;border-radius:15px;background:linear-gradient(145deg,#fffdf4,#f2f3e4)}
.hero-rename-modal .modal-header{align-items:center;margin:0 0 13px}.hero-rename-modal .modal-header h2{font-size:20px;margin:0}.hero-rename-modal .modal-header button{display:grid;place-items:center;width:32px;height:32px;min-height:32px;padding:0;line-height:1;font-size:23px;flex:none}
.rename-intro{font:11px/1.5 Interface,sans-serif;color:#8a8f79;margin:0 0 16px}.rename-field{display:grid;gap:8px;margin:0 0 18px;color:#71866a;font:700 10px/1.3 Interface,sans-serif}.rename-field small{font:9px/1.3 Interface,sans-serif;color:#a09d88}.rename-field .rename-input{box-sizing:border-box;width:100%;margin:0;padding:12px;min-height:44px;border:1px solid #cbd4b7;border-radius:9px;background:#fffef9;font:700 16px/1.3 Interface,sans-serif;color:#426a5a}.hero-rename-modal>.primary{width:100%}
.battle-inspection-scroll{scrollbar-width:none}.battle-inspection-scroll::-webkit-scrollbar{display:none}
.battle-inspection.is-creature{width:min(360px,calc(100% - 12px));max-height:80dvh}
.battle-inspection.is-creature .inspection-figure{height:145px;margin:10px 0 12px;border-radius:12px;background:radial-gradient(ellipse,#e7eddb99,transparent 72%)}
.battle-inspection.is-creature .inspection-figure>img{width:180px;height:135px;max-height:135px;object-fit:contain}
.battle-inspection.is-creature .inspection-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.battle-inspection.is-creature .inspection-facts>span{padding:10px 5px;border-radius:9px}
.battle-inspection.is-creature .inspection-description{margin:12px 0 0;padding:12px;border:1px solid #d9dfc8;border-radius:9px;background:#f7f7ed;font-size:11px;line-height:1.6}

/* Collected soul species stay readable even when the stock has been spent. */
.soul-library .soul-library-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;scrollbar-width:none;}.soul-library .soul-library-row{position:relative;display:grid;grid-template-columns:1fr;gap:7px;align-content:start;padding:10px;border:1px solid #c8cfb3;border-radius:11px;background:linear-gradient(#faf9ef,#edf0e2);text-align:center;min-width:0;opacity:1;filter:none;}.soul-library .soul-library-portrait{width:100%;height:78px;display:grid;place-items:center;}.soul-library .soul-library-portrait img{max-width:100%;height:76px;object-fit:contain;}.soul-library .soul-library-copy{display:grid;gap:4px;min-width:0;}.soul-library .soul-library-copy strong{font:650 12px/1.3 Interface,sans-serif;color:#44685a;}.soul-library .soul-library-copy small{font:10px/1.3 Interface,sans-serif;color:#8d876b;}.soul-library .soul-library-copy i{height:3px;border-radius:3px;overflow:hidden;background:#dce2cc;}.soul-library .soul-library-copy em{display:block;height:100%;background:#9bab83;}.soul-library .soul-library-stock{display:flex;justify-content:center;align-items:baseline;gap:4px;color:#587365;}.soul-library .soul-library-stock b{font:650 16px/1.2 Interface,sans-serif;}.soul-library .soul-library-stock small{font:10px/1.2 Interface,sans-serif;color:#939174;}.soul-library .soul-library-arrow{display:none;}.soul-library .soul-library-empty{grid-column:1/-1;padding:24px 14px;display:grid;justify-items:center;gap:9px;border:1px solid #d1d4b9;border-radius:11px;background:#f1f3e6;text-align:center;color:#6f8066;}.soul-library .soul-library-empty img{width:38px;height:38px;object-fit:contain;}.soul-library .soul-library-empty p{font:12px/1.5 Interface,sans-serif;margin:0;}.soul-library::-webkit-scrollbar{display:none;}.shore-message.system p{color:#899184;font-weight:400;}
@media(min-width:700px){.soul-library .soul-library-list{grid-template-columns:repeat(3,minmax(0,1fr));}}

/* Keep the whole figure inside its column; the artwork's transparent inset supplies breathing room. */
#hero .hero-paperdoll .inspection-figure{overflow:hidden!important;z-index:0}
#hero .hero-paperdoll .inspection-figure>img{inset:8px 0!important;width:100%!important;height:calc(100% - 16px)!important;max-width:100%!important;aspect-ratio:auto;transform:none;object-fit:contain!important;object-position:center;pointer-events:none}
#hero .hero-paperdoll .inspection-side{position:relative;z-index:1}
/* 05.11.2026: figure fills its column by its visible area (object-view-box from ValgardHeroArt.figureStyle) and keeps clear of the slots */
#hero .hero-paperdoll .inspection-figure>img{inset:26px 12px!important;width:calc(100% - 24px)!important;height:calc(100% - 52px)!important;max-width:none!important}
/* 05.11.2026: большая карточка предмета поверх окна профиля */
#app.inspection-card-open #modal-root{z-index:13300}
/* облик в окне профиля — по тем же правилам размера, что и на экране героя */
.battle-inspection .inspection-loadout .inspection-figure>img{inset:26px 12px!important;left:12px!important;width:calc(100% - 24px)!important;height:calc(100% - 52px)!important;max-width:none!important;object-fit:contain!important}

.inspection-resistances{margin-top:8px;border-block:1px solid #d9d2b8}
.inspection-resistances summary{cursor:pointer;min-height:32px;box-sizing:border-box;padding:6px 3px;color:#456254;font:600 12px/1.25 Interface,sans-serif;display:flex;align-items:center;justify-content:space-between;list-style:none}
.inspection-resistances summary::-webkit-details-marker{display:none}
.inspection-resistances summary::after{content:"";width:6px;height:6px;margin-right:4px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);transition:transform .15s ease}
.inspection-resistances summary[aria-expanded=true]::after{transform:rotate(225deg)}
.inspection-resistances .inspection-stat-lines{overflow:hidden;margin:0}
.inspection-resistances .inspection-stat-lines>div{font-size:11px;padding-block:4px}
@media(prefers-reduced-motion:reduce){.inspection-resistances summary::after{transition:none}}
