/* Final compact panels share the same parchment, ink and optical spacing. */
.relic-card{height:calc(246px + max(0px,(var(--valgard-text-scale,.9) - .9) * 100px));contain-intrinsic-size:auto 246px;}
.relic-card.card-visible{content-visibility:visible;overflow:visible;}
.relic-equipment{height:170px;}
#bag .item-grid{padding:5px 3px 8px;gap:12px;}
#bag .relic-card .inventory-art{height:74px;margin:3px 0 4px;}
#bag .relic-card .inventory-art img{max-height:74px;}
#bag .relic-card .inventory-properties{flex:1;align-content:flex-start;}
.item-front-note{display:none!important;}
.relic-card{user-select:none;}
.is-turning{user-select:none!important;}
.relic-face.relic-front{transform:translateZ(2.5px);}
.relic-face.relic-back{transform:rotateY(180deg) translateZ(2.5px);}
.card-edge{position:absolute;display:block;pointer-events:none;background:linear-gradient(90deg,#8b977f,#e7e5d0,#9caa92);}
.card-edge.edge-left,.card-edge.edge-right{top:9px;bottom:9px;width:5px;}
.card-edge.edge-left{left:0;transform-origin:left center;transform:translateZ(2.5px) rotateY(90deg);}
.card-edge.edge-right{right:0;transform-origin:right center;transform:translateZ(2.5px) rotateY(-90deg);}
.card-edge.edge-top,.card-edge.edge-bottom{left:9px;right:9px;height:5px;}
.card-edge.edge-top{top:0;transform-origin:center top;transform:translateZ(2.5px) rotateX(-90deg);}
.card-edge.edge-bottom{bottom:0;transform-origin:center bottom;transform:translateZ(2.5px) rotateX(90deg);}
.item-refined .card-edge{background:linear-gradient(90deg,#3e809f,#bdefff,#4c9cbb);}
.item-finish-boss .card-edge{background:linear-gradient(90deg,#983f2d,#f5c16b,#a85731);}
#modal-root .modal.item-dossier-modal{overflow:visible!important;max-height:none!important;}
.item-dossier-surface>.relic-turn>.relic-face{padding:0!important;overflow:visible;}
.item-full-body{max-height:calc(100dvh - 90px);overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:15px;scrollbar-width:thin;scrollbar-color:#a6b49a transparent;}
.item-full-body .modal-header{margin-bottom:14px;}
.item-dossier-surface .item-stat-chip{height:34px;min-height:34px;box-sizing:border-box;font-size:12px;}
.item-dossier-surface .item-stat-chip>.icon,.item-dossier-surface .item-stat-chip>img{width:20px;height:20px;font-size:18px;object-fit:contain;}
.item-inscription{padding:13px;border-color:#c9c6aa;background:linear-gradient(140deg,#fffdf2,#f4f2e2);}
.item-inscription>header{border:0;margin:0;}
.item-inscription>footer>button{width:auto;flex:none;min-width:120px;max-width:160px;border-radius:8px;}
.item-inscription>footer>small{flex:1;}
.item-inscription .inscription-paper{min-height:46px;display:flex;align-items:center;}
.item-inscription .inscription-clear-note{text-align:left;}
.item-refined-label{cursor:pointer;min-height:18px;}
.relic-equipment .item-refined-label{min-height:13px;}
.item-dossier-modal .valgard-effect-note{font-family:Interface,sans-serif;}
.owner-admin-access{display:flex;align-items:center;gap:12px;width:100%;margin:18px 0 0;padding:12px 14px;border:1px solid #a8bf9e;border-radius:11px;background:linear-gradient(130deg,#eaf1df,#f7f6e8);color:#467466;text-align:left;}
.owner-admin-access>span:not(.icon){flex:1;}
.owner-admin-access strong,.owner-admin-access small{display:block;}
.owner-admin-access strong{font:700 12px/1.4 Interface,sans-serif;}
.owner-admin-access small{font:9px/1.5 Interface,sans-serif;color:#8c937a;}
.settings-page{padding:20px 16px 22px;}
.settings-page .v13-settings-character{margin-bottom:17px;border-radius:12px;padding:12px;background:linear-gradient(125deg,#f5f7e9,#eaf0df);}
.settings-page .settings-group-title{margin-top:17px;letter-spacing:.5px;}
.settings-page .v13-preferences{border-radius:12px;background:#fffdf2;box-shadow:0 1px 3px #47633c0d;}
.settings-page .toggle-row{min-height:58px;align-items:center;}
.settings-page .v13-account-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
.settings-page .v13-account-actions button{min-width:0;font-size:10px;}
.settings-page .v13-settings-footer{margin:18px 0 4px;}
.character-picker-intro{margin:0 0 14px;color:#8a917b;font:11px/1.6 Interface,sans-serif;}
.character-roster{display:flex;flex-direction:column;gap:10px;}
.character-roster-row{display:flex;align-items:center;gap:12px;width:100%;min-width:0;padding:12px;border:1px solid #c9d2b7;border-radius:12px;background:#fffdf3;text-align:left;transition:none;animation:none;}
.character-roster-row>img{flex:none;width:55px;height:65px;object-fit:contain;object-position:center bottom;border:1px solid #e2dbc4;border-radius:8px;background:#f7f3e5;}
.character-roster-row>span:not(.character-new-symbol){flex:1;min-width:0;}
.character-roster-row strong{display:block;font:700 14px/1.35 Interface,sans-serif;color:#427062;overflow-wrap:anywhere;}
.character-roster-row small{display:block;margin-top:4px;font:9px/1.4 Interface,sans-serif;color:#8c917b;}
.character-roster-row>b{flex:none;font:700 10px/1.3 Interface,sans-serif;color:#7d9b6b;}
.character-roster-row.selected{background:#eaf2df;border-color:#95b27d;opacity:1;}
.character-roster-row:disabled:not(.selected){opacity:.65;}
.character-new-symbol{width:55px;height:55px;display:grid;place-items:center;flex:none;border:1px dashed #c7d1b4;border-radius:9px;font:30px/1 Interface,sans-serif;color:#a4b58e;}
.character-modal .character-blocked{font-size:10px;line-height:1.5;margin-top:14px;}
.chat-sheet-close{position:absolute;right:10px;top:9px;z-index:3;}
.chat-modal{position:relative;}
.chat-modal .online-chat-tabs{margin-top:0;padding-right:47px;min-height:43px;align-items:center;}
.chat-modal .online-chat-tabs>button{padding:10px 6px;}
.chat-modal #shore-chat-banner:empty{display:none;}
.chat-modal .shore-messages{margin-top:5px;}
#modal-root .admin-modal{overflow-y:auto!important;overscroll-behavior:contain;touch-action:pan-y;scrollbar-width:thin;}
.admin-modal .admin-tabs{scroll-snap-type:x proximity;}
.admin-modal .admin-tabs>button{scroll-snap-align:center;}
.party-sheet-code{border-radius:12px!important;background:linear-gradient(#fffdf2,#f0f3e4)!important;border-color:#bbcaaa!important;box-shadow:0 7px 18px #33583b24!important;}
.party-invite-code-line{background:#f5f6e9;border-color:#cad3b7;}
.party-sheet-code .friends-empty{padding:18px 9px;font-size:10px;line-height:1.5;}
.party-sheet-code .friends-section-title{font-size:9px;letter-spacing:.4px;}
@media(max-width:350px){.character-roster-row{padding:9px;gap:9px;}.character-roster-row>img{width:47px;height:57px;}.character-roster-row strong{font-size:12px;}.item-full-body{padding:12px;}}
/* Pixel-aligned rest: depth is temporary while the card actually turns. */
.relic-face.relic-front{transform:none;}
.relic-face.relic-back{transform:rotateY(180deg);}
.is-turning>.relic-turn>.relic-front{transform:translateZ(2.5px);}
.is-turning>.relic-turn>.relic-back{transform:rotateY(180deg) translateZ(2.5px);}
.item-full-body{box-sizing:border-box;min-width:0;width:100%;padding:15px;}
.item-full-body .item-dossier-copy{min-width:0;}
.item-full-body .item-dossier-copy h2{overflow-wrap:anywhere;}
.item-full-body>.modal-header{padding:0;}
.item-dossier-surface .relic-face{min-width:0;}
/* Front content determines row height; the reverse never participates in sizing. */
.relic-card:not(.relic-equipment){height:auto;min-height:0;contain-intrinsic-size:auto 190px;align-self:stretch;}
.relic-card:not(.relic-equipment)>.relic-turn{height:100%;}
.relic-card:not(.relic-equipment)>.relic-turn>.relic-front{position:relative;inset:auto;height:100%;min-height:186px;}
#bag .relic-card .inventory-card,.slot-choice .relic-card .inventory-card{height:100%;min-height:186px;padding:10px;}
#bag .relic-card .inventory-card h3,.slot-choice .relic-card .inventory-card h3{height:auto!important;min-height:0!important;margin:1px 0 7px;}
#bag .relic-card .inventory-art,.slot-choice .relic-card .inventory-art{height:68px;margin:3px 0 5px;}
#bag .relic-card .inventory-art img,.slot-choice .relic-card .inventory-art img{max-height:68px;}
#bag .relic-card .inventory-properties,.slot-choice .relic-card .inventory-properties{flex:none;min-height:0;}
#bag .relic-card .inventory-footer,.slot-choice .relic-card .inventory-footer{margin-top:auto;padding-top:7px;}
#bag .relic-card .inventory-properties:not(:empty)+.inventory-footer,.slot-choice .relic-card .inventory-properties:not(:empty)+.inventory-footer{margin-top:9px;}
#bag .relic-card .inventory-condition,.slot-choice .relic-card .inventory-condition{margin-top:5px;}
.relic-card:not(.relic-equipment)>.relic-turn>.relic-back{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;}
.relic-card.item-finish-admin,.item-dossier-surface.item-finish-admin{--item-edge:#4b9dbb;--item-wash:#c2e8fa;--spark-color:#7cdaf8;--edge-a:#398fca;--edge-b:#b0f3ff;--edge-c:#5bc4e6;}
.item-finish-admin .relic-face{background:radial-gradient(ellipse at 75% 5%,#b7ebfd,#effaff 48%,#c4e3f2 85%,#a5cddd)!important;}
.relic-card.item-finish-bloom,.item-dossier-surface.item-finish-bloom{--item-edge:#a4b653;--item-wash:#eafaaf;--spark-color:#e8a3b6;--edge-a:#b5cf55;--edge-b:#f2bdd3;--edge-c:#a1cb70;}
.item-finish-bloom .relic-face{background:radial-gradient(ellipse at 18% 8%,#e5f6a6,transparent 64%),radial-gradient(ellipse at 100% 85%,#f6bfd5,#fffbec 72%)!important;}
.item-finish-admin .card-edge{background:linear-gradient(90deg,#3484ae,#bdefff,#4c9cbb);}
.item-finish-bloom .card-edge{background:linear-gradient(90deg,#8cae4c,#e8c8d4,#c2d47a);}
.item-curated .item-refined-label{font-size:7px;}
.item-finish-admin .item-refined-label{background:#e5f6fd;border-color:#99c7da;color:#5a8293;}
.item-sparks>i{width:5px;height:5px;background:#fff3c6;box-shadow:0 0 5px 1px var(--spark-color);}
.item-sparks>i:before,.item-sparks>i:after{left:2px;top:-3px;height:11px;width:1px;background:var(--spark-color);}
.item-finish-bloom .item-sparks>i:nth-child(even){--spark-color:#ed9fc6;}
.relic-card:not(.relic-equipment)>.relic-turn>.relic-back{overflow:hidden!important;gap:5px;padding:10px;}
.relic-card .relic-back>small{display:none;}
.relic-card .relic-back>.item-provenance>small{display:none;}
.relic-card .relic-back .item-provenance{padding-top:5px;font-size:9px;line-height:1.3;}
.relic-card .relic-back .item-provenance strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.relic-card .relic-back .item-lore{-webkit-line-clamp:2;font-size:10px;line-height:1.4;}
.relic-card .relic-back .item-signature{padding-top:5px;font-size:11px;line-height:1.4;}
.relic-card .relic-back .item-signature cite{font-size:8px;line-height:1.3;}
.relic-card .relic-back{cursor:pointer;}
.item-full-body>strong{display:block;font:700 14px/1.4 Interface,sans-serif;color:#457364;margin-bottom:8px;}
.item-full-body>.item-refined-label{display:block;width:max-content;max-width:100%;margin:0 0 10px;}
.item-full-body>.item-provenance{margin-bottom:10px;}
.item-full-body>.item-lore{margin-bottom:12px;}
.item-dossier-surface.adaptive-height>.relic-turn{position:relative;transition:transform .48s cubic-bezier(.2,.7,.2,1),height .3s ease;}
.item-dossier-surface.adaptive-height.is-turning>.relic-turn{transition-property:transform}
.reduced-motion .item-dossier-surface.adaptive-height>.relic-turn{transition:none}
@media(prefers-reduced-motion:reduce){.item-dossier-surface.adaptive-height>.relic-turn{transition:none}}
.item-dossier-surface.adaptive-height>.relic-turn>.relic-face{position:absolute;inset:0;height:100%;}
.item-dossier-surface.adaptive-height .item-full-body{height:auto;max-height:100%;}
.item-usage-guide{padding:11px;margin:12px 0 0;border:1px solid #d4dac3;border-radius:9px;background:#fffdf28c;}
.item-usage-guide h3{margin:0 0 7px;color:#65816b;font:700 11px/1.4 Interface,sans-serif;}
.item-usage-guide p{margin:7px 0 0;color:#7c8974;font:11px/1.6 Interface,sans-serif;}
.item-use-facts{display:flex;flex-wrap:wrap;gap:5px;}
.valgard-effect-note.hero-note{max-width:min(340px,calc(100vw - 16px));box-sizing:border-box;}
.item-discard-button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:9px 15px;border:1px solid #a65e50;border-radius:9px;background:linear-gradient(#bd7868,#a95e52);box-shadow:0 2px 0 #854a40;color:#fff5ec;font:700 11px/1.3 Interface,sans-serif;}
.item-discard-button:disabled{opacity:.45;}
.discard-modal{max-width:360px!important;}
.discard-review{display:flex;align-items:center;gap:13px;padding:12px;border:1px solid #d7d3b9;border-radius:10px;background:#fffdf3;}
.discard-review>img{flex:none;width:70px;height:78px;object-fit:contain;}
.discard-review strong{display:block;color:#476d5f;font:700 15px/1.35 Interface,sans-serif;}
.discard-review small{display:block;margin-top:5px;color:#97917b;font:10px/1.4 Interface,sans-serif;}
.discard-copy{margin:14px 0;color:#8b826d;font:11px/1.6 Interface,sans-serif;}
.discard-count{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#6a7d67;font:700 11px/1.4 Interface,sans-serif;}
.discard-count>input{width:75px;padding:8px;border:1px solid #c7d0b6;border-radius:7px;background:#fffdf3;color:#466c5e;font:12px/1.3 Interface,sans-serif;}
.discard-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:17px;}
.item-grade-tags{display:flex;flex-wrap:wrap;gap:4px;align-items:center;}
.item-full-body>.item-grade-tags{margin:0 0 11px;}
.relic-equipment .item-grade-tags{gap:3px;}
.relic-equipment .item-grade-tags .item-refined-label{font-size:6px;min-height:12px;padding:2px 3px;}
.item-full-body{scrollbar-width:none;}
.item-full-body::-webkit-scrollbar{width:0;height:0;display:none;}
#modal-root .modal-shade:has(>.item-dossier-modal){display:flex;align-items:center;justify-content:center;padding:14px 10px;}
.relic-back-facts{display:flex;flex-wrap:wrap;gap:4px;flex:none;margin:1px 0 3px;}
.relic-back-facts .item-stat-chip{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:20px;height:20px;padding:3px 5px;border:1px solid #ccd8c0;border-radius:5px;background:#fffdf1bd;color:#52705e;font:700 9px/1 Interface,sans-serif;}
.relic-back-facts .item-stat-chip>img,.relic-back-facts .item-stat-chip>.icon{width:13px;height:13px;object-fit:contain;font-size:13px;}
.relic-equipment .relic-back .item-lore{display:-webkit-box;-webkit-line-clamp:2;line-height:1.35;font-size:8px;}
.relic-equipment .relic-back-facts{gap:3px;}
.relic-equipment .relic-back-facts .item-stat-chip{min-height:17px;height:17px;padding:2px 4px;font-size:8px;}
.relic-equipment .relic-back-facts .item-stat-chip>img,.relic-equipment .relic-back-facts .item-stat-chip>.icon{width:11px;height:11px;font-size:11px;}
.relic-equipment .item-grade-tags .item-refined-label{font-size:8px!important;min-height:14px;padding:2px 5px;line-height:1.1;}
.item-full-body .item-grade-tags .item-refined-label{font-size:9px;min-height:19px;padding:3px 6px;}
.discard-note{width:min(285px,calc(100vw - 24px));padding:11px 12px!important;}
.discard-note>header{gap:10px;margin-bottom:8px;}
.discard-note h3{font-size:13px;}
.discard-note .effect-note-text{font-size:11px;line-height:1.5;}
.discard-note .discard-actions{margin-top:12px;gap:7px;}
.discard-note .discard-actions button{min-height:31px;font-size:10px;padding:6px 9px;box-shadow:none;}
.discard-note .discard-count{margin-top:8px;font-size:10px;}
.discard-note .discard-count>input{padding:5px;width:65px;font-size:11px;}
.modal-header .icon-button[data-close],.chat-sheet-close .icon-button{display:grid;place-items:center;padding:0;line-height:1;}
.modal-header .icon-button[data-close]>.icon,.chat-sheet-close .icon-button>.icon{width:20px;height:20px;display:grid;place-items:center;font-size:20px;line-height:20px;transform:translateY(-.025em);}
.valgard-effect-note>header>button{display:grid;place-items:center;padding:0;width:24px;height:24px;line-height:1;font-size:18px;}

/* One restrained label per miniature; full cards have a readable metadata row. */
.relic-back>.item-grade-tags{display:flex;align-items:center;min-width:0;flex:none;margin:0 0 2px;}
.relic-back>.item-grade-tags>.item-refined-label{max-width:100%;font:700 9px/1.2 Interface,sans-serif;letter-spacing:0;padding:3px 6px;border-radius:4px;min-height:18px;white-space:normal;text-align:left;box-sizing:border-box;}
.relic-equipment .relic-back>.item-grade-tags>.item-refined-label{font-size:8px!important;line-height:1.2;padding:2px 4px;min-height:15px;}
.item-full-body>.item-grade-tags>.item-refined-label{font:700 10px/1.3 Interface,sans-serif;letter-spacing:0;min-height:21px;padding:3px 7px;}
.relic-back>strong{margin:0;overflow-wrap:anywhere;}
.attribute-symbol>img{display:block;width:24px;height:24px;object-fit:contain;flex:none;}
.item-sparks>i{background:transparent url('art/ui/polish-20261025/card-spark.webp') center/contain no-repeat!important;width:12px;height:12px;box-shadow:none!important;filter:drop-shadow(0 0 2px var(--spark-color));}
.item-sparks>i:before,.item-sparks>i:after{display:none!important;}

/* A closed 5px rim, including rounded corners, only while the cover turns. */
.card-rim{position:absolute;inset:0;display:block;transform-style:preserve-3d;pointer-events:none;visibility:hidden;}
.is-turning>.relic-turn>.card-rim{visibility:visible;}
.relic-card>.relic-turn>.relic-face,.item-dossier-surface>.relic-turn>.relic-face{border-radius:13px;}
.card-rim .card-edge,.card-rim-facet{background:linear-gradient(0deg,var(--item-edge),var(--edge-b,#e4e6d8) 47%,var(--item-edge));}
.card-rim .edge-left,.card-rim .edge-right{top:13px;bottom:13px;width:5px;transform-origin:center center;}
.card-rim .edge-left{left:0;transform:translateX(-50%) rotateY(90deg);}
.card-rim .edge-right{right:0;transform:translateX(50%) rotateY(90deg);}
.card-rim .edge-top,.card-rim .edge-bottom{left:13px;right:13px;height:5px;transform-origin:center center;}
.card-rim .edge-top{top:0;transform:translateY(-50%) rotateX(90deg);}
.card-rim .edge-bottom{bottom:0;transform:translateY(50%) rotateX(90deg);}
.card-rim-corner{position:absolute;width:26px;height:26px;transform-style:preserve-3d;}
.card-rim-corner.corner-tr{right:0;top:0;}
.card-rim-corner.corner-br{right:0;bottom:0;transform:rotateZ(90deg);}
.card-rim-corner.corner-bl{left:0;bottom:0;transform:rotateZ(180deg);}
.card-rim-corner.corner-tl{left:0;top:0;transform:rotateZ(270deg);}
.card-rim-facet{position:absolute;display:block;width:3.8px;height:5px;transform-origin:center center;}
/* Workshop stage: registered feet and item handoff, with no sprite scaling. */
.workshop-cutscene.v15-forge-scene{height:auto!important;aspect-ratio:1.6;max-height:none;border:1px solid #a99e78;background:#413d2f;}
.workshop-cutscene>.v15-forge-background{filter:brightness(.85) saturate(.9);object-position:center top;transform:translateX(-2%) scale(1.3);transform-origin:center top;}
.workshop-cutscene>.v15-smith{width:58.75%!important;max-width:none;left:19.4%;bottom:4%;transform:none;animation:none!important;filter:drop-shadow(0 2px 2px #20170f55);}
.smith-previous{position:absolute;inset:0;background:inherit;opacity:0;pointer-events:none;}
.workshop-cutscene>.v15-forge-held-item{display:block;width:18%;height:23%;left:75%;top:31%;opacity:1;z-index:4;animation:none!important;transition:left .2s ease,top .2s ease;filter:drop-shadow(0 1px 2px #30211177);}
.workshop-cutscene.working>.v15-forge-held-item{transition:none;}
.workshop-cutscene.failure>.v15-forge-held-item{opacity:0;transition:opacity .5s;}
.workshop-cutscene>.v15-smith-caption{bottom:7px;font-size:9px;}
.forge-strike-sparks{position:absolute;left:67%;top:73%;pointer-events:none;z-index:5;}
.forge-strike-sparks>i{position:absolute;width:6px;height:6px;opacity:0;background:url('art/ui/polish-20261025/card-spark.webp') center/contain;}
.workshop-modal .store-keeper{background:linear-gradient(125deg,#f8f2df,#edf1df);border-color:#c8cdb4;border-radius:11px;min-height:68px;padding:9px;gap:10px;}
.workshop-modal .store-keeper>img{width:46px;height:54px;object-fit:contain;border:0;border-radius:7px;}
.workshop-modal .store-keeper strong{font-size:14px;color:#466e60;}
.workshop-modal .store-tabs{margin:3px 0 12px;background:#e9eddd;border:1px solid #cbd3b9;padding:4px;gap:4px;border-radius:10px;}
.workshop-modal .store-tabs>button{border:1px solid transparent;border-radius:7px;background:transparent;min-height:35px;padding:7px 4px;font-size:10px;}
.workshop-modal .store-tabs>button.active{background:#fffdf3;border-color:#c9c6a7;box-shadow:0 1px 3px #4e563016;}
.workshop-modal .store-list{gap:11px;scrollbar-width:thin;scrollbar-color:#b5c0a2 transparent;}
.workshop-modal .store-card{padding:12px;border:1px solid #c6ccb5;border-radius:11px;background:linear-gradient(140deg,#fffefa,#f2f3e6);box-shadow:0 2px 4px #46603f0a;animation:workshop-card-enter .24s ease both;}
.workshop-modal .store-item-head{display:grid;grid-template-columns:72px minmax(0,1fr);gap:12px;align-items:center;}
.workshop-modal .store-art{height:84px;width:72px;padding:4px;background:#faf7ed;border-radius:8px;border:1px solid #e3dcc6;}
.workshop-modal .store-item-head>div{min-width:0;}
.workshop-modal .store-art img{width:100%;height:100%;object-fit:contain;}
.workshop-modal .store-item-head h3{font:700 14px/1.35 Interface,sans-serif;margin:5px 0 8px;overflow-wrap:anywhere;color:#396960;}
.workshop-modal .store-item-head .eyebrow{font-size:8px;letter-spacing:.2px;color:#9a9379;}
.workshop-facts{display:flex;flex-wrap:wrap;gap:4px;}
.workshop-facts>.item-stat-chip{display:inline-flex;align-items:center;justify-content:center;height:23px;gap:4px;padding:3px 6px;background:#f6f8ec;border:1px solid #cdd8c0;border-radius:6px;color:#55705f;font:700 10px/1 Interface,sans-serif;}
.workshop-facts>.item-stat-chip>img,.workshop-facts>.item-stat-chip>.icon{width:15px;height:15px;font-size:14px;object-fit:contain;}
.workshop-modal .recipe-materials{display:flex;flex-wrap:wrap;gap:5px;margin-top:10px;}
.workshop-modal .recipe-material{display:grid;grid-template-columns:25px minmax(0,1fr) auto;align-items:center;gap:6px;flex:1 1 100%;padding:6px 8px;min-height:35px;background:#f8ecdc;border:1px solid #e3cda7;border-radius:7px;font-size:9px;}
.workshop-modal .recipe-material.enough{background:#eff4e6;border-color:#c8d5b6;}
.workshop-modal .recipe-material>img{width:25px;height:25px;object-fit:contain;}
.workshop-modal .recipe-material strong{font-size:10px;color:#6e8262;white-space:nowrap;}
.workshop-modal .store-action{padding-top:10px;margin-top:11px;border-color:#ddd9c4;}
.workshop-modal .store-price{font-size:16px;gap:5px;}
.workshop-modal .store-price small{display:none;}
.workshop-modal .store-action>button{min-height:35px;min-width:112px;font-size:10px;padding:7px 12px;border-radius:8px;}
.workshop-modal .store-description,.workshop-modal .repair-state{font-size:10px;line-height:1.5;}
.crafted-modal .work-success{padding:4px 0 12px;}
.crafted-modal .work-success h2{font-size:23px;color:#42705d;}
.crafted-modal .reward-row{border-radius:10px;background:#f3f5e8;}
@keyframes workshop-card-enter{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.workshop-modal .store-card{animation:none}.smith-previous{display:none}.workshop-cutscene>.v15-forge-held-item{transition:none}}
.workshop-cutscene>.v15-forge-held-item{transition:left .07s linear,top .07s linear,transform .07s linear;}
.workshop-cutscene.working>.v15-forge-held-item{transition:left .07s linear,top .07s linear,transform .07s linear;}
.workshop-cutscene .forge-strike-sparks{left:69%;top:70%;}
.shop-cutscene.v15-forge-scene{height:auto!important;aspect-ratio:1.6;max-height:none;background:#665744;}
.shop-cutscene>.v17-shop-background,.shop-cutscene>.v17-shop-counter{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.shop-cutscene>.v17-shop-counter{z-index:3;clip-path:inset(73% 0 0);pointer-events:none;}
.v17-lara{background:none;aspect-ratio:1;position:absolute;width:81.25%;left:5%;bottom:-35%;z-index:2;}
.shop-cutscene>.v15-forge-held-item{opacity:1;width:18%;height:24%;z-index:4;animation:none;transition:left .1s linear,top .1s linear,transform .1s linear;}
.shop-cutscene>.v15-smith-caption{bottom:7px;z-index:5;}
@media(prefers-reduced-motion:reduce){.workshop-cutscene>.v15-forge-held-item,.shop-cutscene>.v15-forge-held-item{transition:none}}
.relic-back .relic-back-seal{position:absolute!important;right:12px;bottom:28px;width:54px;height:60px;object-fit:contain;opacity:.10;z-index:0!important;pointer-events:none;filter:saturate(.55);}
.relic-back-summary{margin-top:auto;display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px;width:100%;padding-top:7px;border-top:1px solid #8b987940;color:#7e8a73;font:8px/1.4 Interface,sans-serif;}
.relic-back-summary>b{font-weight:600;}
.relic-back-condition{display:block;flex:1 1 100%;height:2px;border-radius:2px;background:#cbd7bf66;}
.relic-back-condition>i{display:block;height:100%;background:#97af89;border-radius:2px;}
.relic-card:not(.relic-equipment)>.relic-turn>.relic-back .item-lore{-webkit-line-clamp:4;line-height:1.5;flex:none;}
.relic-equipment .relic-back-summary{font-size:7px;padding-top:4px;gap:2px;}
.relic-equipment .relic-back .relic-back-seal{width:37px;height:42px;bottom:22px;right:8px;}
.relic-equipment .relic-back .item-signature{font-size:9px;padding-top:3px;}
/* The location frame and respawn clock stay fixed; only active contents turn. */
.opponent-card>.opponent-active{padding:0!important;gap:0;transform-style:preserve-3d;transition:transform .4s ease,opacity .32s ease,visibility .32s;}
.opponent-card.is-inspected>.opponent-active{transform:rotateY(180deg);}
.opponent-front,.opponent-reverse{position:absolute;inset:0;box-sizing:border-box;display:flex;flex-direction:column;gap:clamp(2px,1.8cqw,5px);padding:clamp(4px,3.8cqw,9px);backface-visibility:hidden;border-radius:7px;background:radial-gradient(ellipse at 50% 10%,#fffbed,#f0e7d4);}
.opponent-reverse{transform:rotateY(180deg);text-align:left;overflow:hidden;color:#6c7862;font:8px/1.35 Interface,sans-serif;}
.opponent-reverse>strong{font-size:9px;line-height:1.25;color:#476c58;flex:none;}
.opponent-reverse>p{margin:2px 0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-height:0;}
.opponent-back-facts{display:grid;grid-template-columns:1fr 1fr;gap:3px;flex:none;}
.opponent-back-facts>span{display:flex;align-items:center;gap:3px;border:1px solid #d7d9bc;border-radius:4px;padding:3px;background:#fffef3;font-weight:700;font-size:8px;}
.opponent-back-facts .icon,.opponent-back-facts img{width:12px;height:12px;object-fit:contain;font-size:12px;flex:none;}
.opponent-back-reward{margin-top:auto;color:#9a8b5b;font-size:8px;flex:none;}
.opponent-return{flex:none;display:flex;align-items:center;justify-content:center;gap:4px;min-height:22px;padding:3px;border:1px solid #c7cbb2;border-radius:5px;background:#f9f6e8;color:#5c7a63;font:700 8px/1.2 Interface,sans-serif;}
.relic-card>.relic-turn>.relic-back>.item-lore{min-height:0;flex:0 1 auto;overflow:hidden;}
.relic-card>.relic-turn>.relic-back>strong,.relic-card>.relic-turn>.relic-back>.item-signature,.relic-back-summary{flex-shrink:0;}
@media(prefers-reduced-motion:reduce){.opponent-card>.opponent-active{transition:none}}
.relic-back>.mini-back-title{display:block;flex:none!important;min-width:0;width:100%;white-space:nowrap;overflow:hidden;height:1.4em;line-height:1.4;}
.mini-back-title>span{display:block;width:max-content;max-width:none;white-space:nowrap;}
.is-flipped .mini-back-title.has-overflow>span{animation:mini-title-pan var(--title-time,5s) ease-in-out infinite alternate;}
.relic-back-meta{display:flex;align-items:center;flex-wrap:wrap;gap:5px;flex:none;min-width:0;}
.relic-back-meta>.item-grade-tags{display:inline-flex;flex:none;margin:0;max-width:100%;}
.relic-back-meta>.relic-back-facts{display:contents;}
.relic-back-meta .item-refined-label{font:700 9px/1.2 Interface,sans-serif;letter-spacing:0;padding:3px 6px;min-height:20px;box-sizing:border-box;}
.relic-back-meta .item-stat-chip{margin:0;min-height:20px;height:20px;}
.relic-equipment .relic-back-meta{gap:3px;}
.relic-equipment .relic-back-meta .item-refined-label{font-size:8px!important;min-height:17px;height:17px;line-height:1;padding:3px 4px;}
.relic-equipment .relic-back-meta .item-stat-chip{height:17px;min-height:17px;}
@keyframes mini-title-pan{0%,18%{transform:translateX(0)}82%,100%{transform:translateX(var(--title-pan))}}
@media(prefers-reduced-motion:reduce){.mini-back-title.has-overflow>span{animation:none!important;}}
.workshop-cutscene>.v15-smith{width:63.646%!important;left:16.927%;bottom:4%;}
.workshop-cutscene>.v15-forge-held-item,.workshop-cutscene.working>.v15-forge-held-item{transition:left .025s linear,top .025s linear,transform .025s linear;}

.relic-card:not(.relic-equipment)>.relic-turn>.relic-back .item-lore{-webkit-line-clamp:6;line-height:1.55;}
.relic-card>.relic-turn>.relic-back>.item-signature{margin-top:auto;padding-top:8px;}
.relic-card,.item-dossier-surface{--card-depth:5px;}
.item-dossier-surface{--card-depth:11px;}
.is-turning>.relic-turn>.relic-front{transform:translateZ(calc(var(--card-depth)/2));}
.is-turning>.relic-turn>.relic-back{transform:rotateY(180deg) translateZ(calc(var(--card-depth)/2));}
.card-rim .edge-left,.card-rim .edge-right{width:var(--card-depth);}
.card-rim .edge-top,.card-rim .edge-bottom,.card-rim-facet{height:var(--card-depth);}
.v15-smith{background-size:600% 1000%;}
.smith-previous{display:none!important;}
canvas.v15-smith,canvas.v17-lara{background:none!important;}
.npc-hand-layer{position:absolute;z-index:5;aspect-ratio:1;height:auto;pointer-events:none;}
.shop-cutscene>.v17-lara{width:88.021%;left:1.615%;bottom:-35%;}
.monster-relic-modal{max-width:360px!important;}
.monster-relic-surface .monster-card-portrait{height:115px;display:grid;place-items:center;padding:6px;}
.monster-card-portrait>img{width:100%;height:100%;object-fit:contain;}
.monster-relic-surface .item-full-body>h2{margin:5px 0;text-align:center;color:#3d6b59;font:700 17px/1.3 Interface,sans-serif;}
.monster-card-caption{font:9px/1.4 Interface,sans-serif;color:#93917a;margin:5px 0 10px;text-align:center;}
.monster-card-facts{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:12px 0;}
.monster-card-facts>span{display:grid;grid-template-columns:20px 1fr;align-items:center;gap:3px 7px;border:1px solid #d5d8c1;border-radius:7px;padding:8px;background:#f4f6e8;}
.monster-card-facts>span>img,.monster-card-facts>span>.icon{width:20px;height:20px;font-size:18px;grid-row:span 2;object-fit:contain;}
.monster-card-facts b{color:#446c5b;font-size:12px;}
.monster-card-facts small{font-size:8px;color:#94917a;}
.monster-card-behavior{padding:10px;border:1px solid #d5d7bb;border-radius:7px;background:#f5f5e8;font:10px/1.5 Interface,sans-serif;color:#75816b;}
.monster-card-drops{display:flex;flex-direction:column;gap:5px;margin-top:9px;}
.monster-card-drops>button{display:flex;align-items:center;gap:9px;padding:6px 8px;border:1px solid #d4dbc1;border-radius:6px;background:#fafbf2;color:#647c65;text-align:left;font:10px/1.4 Interface,sans-serif;}
.monster-card-drops img{width:33px;height:33px;object-fit:contain;}
.monster-card-drops small{display:block;color:#999078;font-size:8px;}
.monster-card-rewards{margin-top:11px;padding-top:9px;border-top:1px solid #dbd6bd;color:#a18b57;font:700 11px/1.4 Interface,sans-serif;}
/* Monster cards use the same complete turning cover and rounded rim as items. */
.world-opponents>.opponent-card.monster-collectible{border:0!important;box-shadow:none!important;background:transparent!important;overflow:visible!important;contain:layout!important;content-visibility:visible;isolation:auto;--item-edge:#a7b690;--edge-b:#e6ecd4;--card-depth:5px;perspective:900px;touch-action:auto;}
.monster-collectible>.opponent-active{display:grid;transform-style:preserve-3d;}
.monster-collectible>.opponent-active>.relic-face{border:1px solid var(--item-edge);border-radius:9px;padding:clamp(5px,4.5cqw,10px);background:radial-gradient(ellipse at 15% 5%,#e8f1d6,transparent 60%),linear-gradient(145deg,#fffdf3,#f0f1e0);box-shadow:inset 0 0 0 3px #fffdf54d;}
.monster-collectible>.opponent-active>.relic-back{transform:rotateY(180deg);gap:5px;overflow:hidden;}
.monster-collectible>.opponent-active>.relic-front{transform:none;}
.monster-collectible.is-turning>.opponent-active>.relic-front{transform:translateZ(2.5px);}
.monster-collectible.is-turning>.opponent-active>.relic-back{transform:rotateY(180deg) translateZ(2.5px);}
.monster-collectible.is-boss{--item-edge:#b77f42;--edge-b:#ffe2a1;}
.monster-collectible.is-boss>.opponent-active>.relic-face{background:radial-gradient(ellipse at 80% 5%,#f5c376,transparent 63%),linear-gradient(145deg,#fff5d7,#e8bb97)!important;}
.monster-collectible:not(.is-boss):not(.is-wandering) .item-contour,.monster-collectible:not(.is-boss) .item-sparks{display:none;}
.monster-collectible .opponent-frame{pointer-events:none;z-index:3;opacity:.50;}
.monster-collectible .opponent-inspect,.monster-collectible .opponent-reverse{touch-action:pan-y;}
.monster-collectible .opponent-art{width:100%;max-height:54px;align-self:center;justify-self:center;padding:0 5px;}
.monster-collectible .opponent-art>svg{width:100%;max-height:54px;}
.monster-collectible .opponent-reverse>.mini-back-title{font:700 10px/1.35 Interface,sans-serif;color:#426650;height:1.4em;margin:0 0 2px;}
.monster-collectible .opponent-reverse>p{font:8px/1.45 Interface,sans-serif;color:#7d856f;margin:1px 0;-webkit-line-clamp:3;}
.monster-collectible .opponent-back-facts{gap:4px;margin:2px 0;}
.monster-collectible .opponent-back-facts>span{min-height:24px;box-sizing:border-box;gap:4px;border-radius:5px;justify-content:center;padding:4px;background:#fafcf0;}
.monster-collectible .opponent-back-facts b{font-size:9px;color:#5c725c;}
.monster-collectible .opponent-back-facts .health>.icon{color:#d67d67;}
.monster-collectible .opponent-back-facts .attack>.icon{color:#80976a;}
.monster-collectible .opponent-back-facts .physical{background:#eff5f7;border-color:#c7d7d7;}
.monster-collectible .opponent-back-facts .magic{background:#f1f0f8;border-color:#d4d1e0;}
.monster-collectible .opponent-back-reward{display:grid;grid-template-columns:1fr 1fr;gap:4px;width:100%;margin-top:auto;padding-top:7px;border-top:1px solid #c4ccb240;}
.monster-collectible .opponent-back-reward>span{display:flex;align-items:center;justify-content:center;gap:3px;min-height:24px;box-sizing:border-box;border:1px solid #d6ccaa;border-radius:5px;background:#faf4df;color:#a58a4d;font-size:9px;}
.monster-collectible .opponent-back-reward .monster-xp{background:#edf3e4;border-color:#c6d4b6;color:#78986b;}
.monster-collectible .opponent-back-reward .icon{font-size:13px;width:14px;height:14px;}
.monster-collectible .opponent-back-reward small{font-size:7px;}
@container enemy-card (max-height:200px){.monster-collectible .opponent-back-facts>span{min-height:21px;}.monster-collectible .opponent-reverse>p{-webkit-line-clamp:2;}.monster-collectible .opponent-art,.monster-collectible .opponent-art>svg{max-height:45px;}}
.world-panel-body .world-opponents{padding:9px 5px;}
.monster-collectible>.opponent-active>.relic-face{border-radius:13px;}
.monster-collectible .relic-face>.opponent-frame{position:absolute!important;inset:0;}
.monster-collectible .opponent-back-facts>span{min-width:0;}
.monster-collectible .opponent-back-facts b{white-space:nowrap;font-size:8px;}
#world .monster-collectible .opponent-back-reward>span{display:grid;grid-template-columns:13px minmax(0,1fr);grid-template-rows:13px 9px;gap:1px 4px;align-items:center;justify-content:initial;height:33px;min-height:33px;padding:5px 6px;border-radius:6px;text-align:left;background:linear-gradient(135deg,#fff7df,#f3e9cd);box-shadow:inset 0 1px #fff9;}
#world .monster-collectible .opponent-back-reward>.monster-xp{background:linear-gradient(135deg,#eff6e6,#e4edda);}
#world .monster-collectible .opponent-back-reward .icon{display:grid;place-items:center;width:13px!important;height:15px!important;font-size:13px!important;line-height:1!important;grid-row:1/3;}
#world .monster-collectible .opponent-back-reward b{font:700 10px/1.1 Interface,sans-serif;letter-spacing:0;white-space:nowrap;}
#world .monster-collectible .opponent-back-reward small{font:7px/1.1 Interface,sans-serif;letter-spacing:0;color:#9a977e;}
.monster-collectible .opponent-reverse>.mini-back-title{font-size:11px;line-height:1.35;}
.monster-collectible .opponent-reverse>.monster-back-lore{font:9px/1.45 Interface,sans-serif;display:-webkit-box;-webkit-line-clamp:2;min-height:2.9em;flex:none;margin:0;color:#7b866e;}
.monster-collectible .opponent-reverse>.opponent-back-behavior{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;min-height:2.9em;max-height:2.9em;overflow:hidden;flex:none;padding:0;margin:0;border:0;border-radius:0;box-shadow:none;background:transparent;text-align:left;color:#768266;font:9px/1.45 Interface,sans-serif;text-decoration:underline dotted #b8bfa4;text-underline-offset:2px;cursor:help;}
#world .monster-collectible .opponent-back-reward>span{display:flex;align-items:center;justify-content:center;gap:5px;min-height:27px;height:27px;padding:5px;}
#world .monster-collectible .opponent-back-reward .icon{grid-row:auto;}
.monster-collectible>.opponent-respawn.relic-turn{display:grid;transform-style:preserve-3d;background:transparent!important;overflow:visible;isolation:auto;}
.monster-collectible .opponent-ritual-face{position:absolute;inset:0;box-sizing:border-box;border:1px solid var(--item-edge);border-radius:13px;background:radial-gradient(ellipse at 25% 10%,#edf3de,#d9e1cb);overflow:hidden;}
.monster-collectible.is-boss .opponent-ritual-face{background:radial-gradient(ellipse at 70% 10%,#f0c888,#ead7b5 40%,#d4a080);}
.monster-collectible .opponent-ritual-stage{position:absolute!important;inset:0;display:grid;place-items:center;}
.monster-collectible .opponent-respawn .opponent-frame{position:absolute!important;inset:0;}
.monster-collectible .opponent-ritual-face .opponent-remaining{color:#6c775c;background:#f8f6e5d9;border:1px solid #bbc6a5;border-radius:5px;padding:3px 6px;}
/* Monster frames have fixed dimensions; intrinsic inventory sizing must not apply. */
.world-opponents>.opponent-card.monster-collectible{height:100%!important;min-height:0!important;max-height:100%!important;align-self:stretch;}
.monster-collectible>.opponent-active.relic-turn,.monster-collectible>.opponent-respawn.relic-turn{position:absolute!important;inset:0!important;height:100%!important;min-height:0!important;max-height:100%;}
.monster-collectible>.relic-turn>.relic-face{position:absolute!important;inset:0!important;height:100%!important;min-height:0!important;box-sizing:border-box;}
.monster-collectible .opponent-ritual-face .opponent-remaining{background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0;padding:0;color:#6c775c;}
/* Close buttons share one square hit area; the icon itself has no inherited shift. */
#modal-root .modal-header{align-items:center;}
#modal-root .modal-header>button.icon-button[data-close],#modal-root .chat-sheet-close>button.icon-button{display:grid!important;place-items:center!important;width:34px!important;min-width:34px!important;height:34px!important;min-height:34px!important;max-height:34px;padding:0!important;flex:none;line-height:1;box-sizing:border-box;}
#modal-root button[data-close]>.icon,#modal-root button[aria-label^="Закрыть"]>.icon{display:grid!important;place-items:center!important;width:18px!important;height:18px!important;min-width:18px!important;font-size:18px!important;font-weight:400!important;font-style:normal!important;line-height:18px!important;letter-spacing:0!important;text-indent:0!important;transform:none!important;margin:0!important;padding:0!important;}
.valgard-effect-note>header>button{display:grid!important;place-items:center!important;width:26px!important;min-width:26px!important;height:26px!important;min-height:26px!important;padding:0!important;font:20px/1 Interface,sans-serif;}
#knowledge-root button[aria-label^="Закрыть"]{display:grid;place-items:center;padding:0;}
.v15-forge-intro>.forge-master-portrait{width:60px;height:70px;object-fit:contain;flex:none;border:0;padding:0;background:transparent;}
/* Monster card numbers fit their chips at every phone width and text size; --fit/--page-fit is the text width in em. */
#world .monster-collectible .opponent-stats>.opponent-stat-page{grid-template-columns:auto auto;justify-content:space-evenly;column-gap:2px;container-type:inline-size;}
#world .monster-collectible .opponent-stat-page>span{gap:2px;}
#world .monster-collectible .opponent-stat-page .opponent-stat-token,#world .monster-collectible .opponent-stat-page .opponent-defense-icon{flex-basis:15px;width:15px;height:15px;}
#world .monster-collectible .opponent-stat-page .opponent-defense-icon img{width:12px!important;height:12px!important;}
#world .monster-collectible .opponent-stats .opponent-stat-page b{font-size:min(calc(10px * var(--valgard-text-scale,.9)),calc((100cqi - 36px) / var(--page-fit,5.6)));}
#world .monster-collectible .opponent-back-facts,#world .monster-collectible .opponent-back-reward{grid-template-columns:repeat(2,minmax(0,1fr));}
#world .monster-collectible .opponent-back-facts>span,#world .monster-collectible .opponent-back-reward>span{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-width:0;height:auto;padding:2px;container-type:inline-size;}
#world .monster-collectible .opponent-back-facts>span{min-height:25px;}
#world .monster-collectible .opponent-back-reward>span{min-height:29px;}
#world .monster-collectible .opponent-back-facts .icon,#world .monster-collectible .opponent-back-facts img{width:10px;height:10px;font-size:10px;line-height:10px;}
#world .monster-collectible .opponent-back-reward .icon{width:12px!important;height:12px!important;font-size:12px!important;}
#world .monster-collectible .opponent-back-facts b,#world .monster-collectible .opponent-back-reward b{display:block;white-space:nowrap;line-height:1.15;font-size:min(calc(8px * var(--valgard-text-scale,.9)),calc(100cqi / var(--fit,3.5)));}
#world .monster-collectible .opponent-back-reward b{font-size:min(calc(10px * var(--valgard-text-scale,.9)),calc(100cqi / var(--fit,3.5)));}
/* Fixed title/rewards, one scrollable middle: never clamp or hide a creature's description. */
#world .monster-collectible>.opponent-active>.opponent-reverse{gap:4px;padding:6px 5px;min-width:0;}
#world .monster-collectible .opponent-back-content{display:flex;flex-direction:column;gap:5px;flex:1 1 0;min-width:0;min-height:0;width:100%;box-sizing:border-box;overflow-x:hidden;overflow-y:auto;scrollbar-width:none;overscroll-behavior-y:contain;touch-action:pan-y;}
#world .monster-collectible .opponent-back-content::-webkit-scrollbar{display:none;width:0;height:0;}
#world .monster-collectible .opponent-back-content>.opponent-back-type{flex:none;align-self:center;min-width:0;max-width:100%;box-sizing:border-box;margin:0;padding:1px 4px;font-size:8px;line-height:1.3;white-space:normal;overflow-wrap:anywhere;}
#world .monster-collectible .opponent-back-content>.opponent-back-facts{flex:none;min-width:0;width:100%;margin:0;}
#world .monster-collectible .opponent-back-content>.opponent-back-behavior{display:block;flex:none;min-width:0;min-height:0;width:100%;max-width:100%;max-height:none;box-sizing:border-box;padding:0;margin:0;border:0;background:transparent;white-space:normal;overflow:visible;overflow-wrap:anywhere;word-break:normal;-webkit-line-clamp:unset;text-align:left;font:9px/1.45 Interface,sans-serif;}
#world .monster-collectible .opponent-reverse>.opponent-back-reward{min-width:0;margin-top:0;padding-top:4px;}
/* Roster: the heart glyph and the Might/Mana drawing share one centre and the digits' optical middle (frame unchanged). */
.spell-panel-battle .roster-meter.health .roster-meter-label .icon{transform:translate(.13em,-.07em);}
.spell-panel-battle .roster-meter:not(.health) .roster-meter-label .resource-icon{transform:translateY(-.135em);}
/* Party cards: the level is never cut; names and roles stop before the kick button. */
.party-modal .party-card-copy{padding-right:4px;}
.party-modal .party-card-class{display:flex;align-items:center;gap:3px;max-width:100%;min-width:0;white-space:nowrap;font-size:8px;}
.party-modal .party-card-role{min-width:0;overflow:hidden;text-overflow:ellipsis;}
.party-modal .party-card-level{flex:none;}
.party-modal .party-card-name{max-width:100%;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12.5px;}
.party-modal .party-card:has(.party-card-kick) .party-card-name{padding-right:15px;}
/* Friends: rows span the list (no reserved scrollbar gutter). */
.friends-list{scrollbar-gutter:auto;scrollbar-width:thin;}
.friends-list>.friend-row{width:100%;max-width:none;box-sizing:border-box;}
/* Administration: one compact column of heroes with vertical scrolling only. */
.admin-console #admin-players{grid-template-columns:minmax(0,1fr);gap:4px;max-height:200px;overflow-x:hidden;overflow-y:auto;}
.admin-console .admin-player{min-height:0;padding:4px 8px 4px 5px;gap:8px;}
.admin-console .admin-player>.portrait-window{width:26px;height:30px;flex:none;}
.admin-console .admin-player>span{display:flex;align-items:baseline;gap:6px;min-width:0;}
.admin-console .admin-player strong{flex:0 1 auto;min-width:0;font-size:12px;}
.admin-console .admin-player small{flex:none;white-space:nowrap;line-height:1.2;}
.admin-console .admin-player>.admin-presence{margin-left:auto;flex:none;}
/* Technique buttons share one height and border. */
#hero .hero-technique-detail>footer>button{height:34px;min-height:34px;margin:0;border:1px solid transparent;box-sizing:border-box;}
#hero .hero-technique-detail>footer>button.secondary{border-color:#d9c9a4;}
/* Close crosses: one 34px square in every sheet header; kick crosses share one inset. */
#modal-root .party-sheet-head .icon-button{width:34px!important;min-width:34px!important;max-width:34px;height:34px!important;min-height:34px!important;padding:0!important;display:grid!important;place-items:center!important;}
.party-modal .party-card-kick{top:6px;right:6px;display:grid;place-items:center;padding:0;line-height:1;}
/* The collapse arrow keeps only its visible button; the skill list starts right after it (old 25px margin removed). */
#app #battle-root .spell-panel-battle .combat-skills-list{margin-left:0;max-width:none;}

/* Unknown-location eye keeps one size at every panel height. */
#location-preview>.location-eye{flex:none!important;width:92px!important;height:76px!important;min-height:0!important;max-height:76px!important}
#location-preview{justify-content:center}
