/* Space of Steresia Reborn - version officielle 0.1.
   Design system commun, avec densite adaptee au mobile et au mode minimaliste.
   Les actions et informations essentielles restent visibles, les details s'ouvrent a la demande. */
:root{
 --sos010-radius:12px;
 --sos010-stroke:rgba(127,175,213,.29);
 --sos010-surface:rgba(16,34,55,.90);
 --sos010-surface-alt:rgba(10,23,41,.92);
 --sos010-text:#e7f2fd;
 --sos010-muted:#a6bdd3;
 --sos010-cyan:#73d9e9;
 --sos010-good:#83e3ba;
 --sos010-alert:#ff9aa5;
}
#shBody .card,#shBody .item,#shBody .v4-panel{
 border-color:var(--sos010-stroke);
 background-color:var(--sos010-surface-alt);
 border-radius:var(--sos010-radius);
}
#shBody .card.hl{background:linear-gradient(150deg,rgba(24,56,80,.88),rgba(11,25,44,.95));border-color:rgba(95,192,220,.44)}
#shBody :is(.card,.item) :is(h3,h4){letter-spacing:.005em}
#shBody .btn{font-weight:720;transition:border-color .16s ease,background-color .16s ease,filter .16s ease}
#shBody .btn:not(:disabled):hover{filter:brightness(1.1)}
#shBody .btn:disabled{cursor:not-allowed;opacity:.48;filter:saturate(.55)}
#shBody :is(button,input,select,summary,textarea):focus-visible{outline:2px solid #85e4f6;outline-offset:3px}
#shBody .sos619-help-btn{flex:none;border-color:rgba(111,192,220,.56);background:rgba(34,93,121,.3);color:#c2f2ff}
#shBody .sos619-help-btn:hover{background:rgba(50,122,154,.4)}
#shBody .sos632-quest-tile,#shBody .s57-saved,#shBody .s57-ship{border-radius:var(--sos010-radius)}
#shBody .sos633-event-banner{border-radius:var(--sos010-radius)}
#shBody .sos632-quest-tile.is-ready{box-shadow:inset 0 1px rgba(255,230,188,.09)}
#shBody .sos416-equipment{display:grid;grid-template-columns:1fr;gap:0;margin-top:18px}
#shBody .sos416-equipment-head{gap:10px;align-items:center;margin:0 0 11px}
#shBody .sos010-equipment-controls{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:7px;margin-left:auto}
#shBody .sos010-unload-all{min-height:34px;padding:6px 11px;border:1px solid rgba(252,153,162,.59);color:#ffd2d6;background:rgba(130,36,55,.19);font-size:12px}
#shBody .sos010-unload-all:not(:disabled):hover{background:rgba(147,47,66,.37)}
#shBody .sos416-inventory-row{margin:0 0 10px;padding:7px 10px;min-height:38px;background:var(--sos010-surface-alt);border-radius:10px}
#shBody .sos416-equipped-slot{min-width:0;margin:0 0 8px;border:1px solid var(--sos010-stroke);border-radius:12px;padding:9px;background:linear-gradient(140deg,rgba(19,43,66,.7),rgba(9,22,39,.86))}
#shBody .sos416-equipped-slot>h4{font-size:12px;letter-spacing:.04em;text-transform:uppercase;margin:0 0 7px;color:#b8d1e8}
#shBody .sos416-equipped-slot>.item{padding:8px 9px;margin:0;background:rgba(8,21,38,.6);border-radius:9px}
#shBody .sos416-equipped-slot>.item .asset-img.thumb{width:54px;height:54px;object-fit:cover;border-radius:8px;margin-right:9px}
#shBody .sos416-equipped-slot>.item .row{min-width:0;flex-wrap:wrap}
#shBody .sos416-equipped-slot>.item .g{min-width:0}
#shBody .sos010-item-stats{font-size:11.5px;color:#aed1e2;line-height:1.4;margin:4px 0;overflow-wrap:anywhere}
#shBody .sos010-stat-expand{font-size:11px;color:var(--sos010-muted);margin-top:4px}
#shBody .sos010-stat-expand>summary{cursor:pointer;color:#8fcfdf;padding:4px 1px;width:max-content;max-width:100%}
#shBody .sos010-stat-expand>p{max-width:100%;font-size:11px;line-height:1.45;margin:5px 0}
#shBody .sos010-socket-mini{display:flex;flex-wrap:wrap;gap:5px;margin:7px 0 2px;clear:both}
#shBody .sos010-socket-mini span{border:1px solid color-mix(in srgb,var(--socket-tier) 55%,transparent);border-left:3px solid var(--socket-tier);background:rgba(11,26,44,.8);border-radius:6px;font-size:10px;color:#dbeaf8;padding:4px 6px;max-width:100%;overflow-wrap:anywhere}
#shBody .sos416-equipped-slot .btns{display:flex;align-items:flex-start;flex-wrap:wrap;gap:6px}
#shBody .sos416-equipped-slot .sos416-socket-btn{min-height:34px;min-width:100px;flex:0 1 auto;font-size:12px;box-shadow:none}
#shBody .sos010-piece-options{min-width:100px;flex:0 1 auto;align-self:stretch;position:relative;font-size:12px;color:var(--sos010-text)}
#shBody .sos010-piece-options summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:center;min-height:34px;padding:7px 10px;border:1px solid rgba(116,161,205,.39);background:rgba(26,54,82,.6);border-radius:8px;font-weight:710;color:#d4eafb}
#shBody .sos010-piece-options summary::-webkit-details-marker{display:none}
#shBody .sos010-piece-options summary::after{content:'+';margin-left:8px;color:#91c8df}
#shBody .sos010-piece-options[open] summary::after{content:'-'}
#shBody .sos010-piece-actions{display:flex;align-items:flex-start;flex-wrap:wrap;gap:5px;border:1px solid rgba(105,154,196,.27);border-radius:9px;background:rgba(10,25,44,.92);padding:8px;margin-top:6px}
#shBody .sos010-piece-actions button{flex:1 1 130px}
#shBody .sos010-trio{display:flex;align-items:center;gap:8px;min-width:0;margin:7px 0 0;padding:7px 9px;border-radius:9px;border:1px solid rgba(119,161,202,.29);background:rgba(10,24,42,.66);color:#c0d5e8}
#shBody .sos010-trio.is-active{border-color:rgba(119,225,175,.55);background:linear-gradient(115deg,rgba(27,90,71,.4),rgba(8,28,41,.67));color:#b6f3d6}
#shBody .sos010-trio-glyph{font-size:19px;color:#8aacc5;line-height:1}
#shBody .sos010-trio.is-active .sos010-trio-glyph{color:var(--sos010-good)}
#shBody .sos010-trio-label{display:flex;align-items:baseline;flex:1 1 auto;flex-wrap:wrap;gap:4px 9px;min-width:0;line-height:1.3}
#shBody .sos010-trio-label b{font-size:12px;font-weight:780}
#shBody .sos010-trio-label small{font-size:11px;color:#abc4d9;overflow-wrap:anywhere}
#shBody .sos010-trio.is-active small{color:#91e7bb}
#shBody .sos010-trio .sos619-help-btn{width:27px;height:27px;min-width:27px;font-size:14px}
#shBody .sos010-empty-slot{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:31px;padding:3px 2px;color:#8faec6;font-size:12px}
#shBody .sos010-empty-slot .btn{min-height:31px;font-size:11px}
#shBody .sos010-key-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:9px 0 6px}
#shBody .sos010-key-stats>div{min-width:0;background:rgba(6,23,41,.8);border:1px solid rgba(116,171,209,.24);padding:9px 6px;border-radius:9px;display:flex;flex-direction:column;gap:4px;text-align:center}
#shBody .sos010-key-stats span{color:#a8bed5;font-size:11px}
#shBody .sos010-key-stats b{font-size:clamp(12px,2vw,17px);color:#eff8ff;font-variant-numeric:tabular-nums;overflow:hidden;text-overflow:ellipsis}
#shBody .sos010-more-stats{border-bottom:1px solid rgba(108,162,206,.2);padding:5px 0 7px;margin:5px 0}
#shBody .sos010-more-stats>summary{cursor:pointer;font-size:11px;color:#8fcddd;list-style-position:inside}
#shBody .sos010-more-stats .stat{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:8px 0}
#shBody .sos010-more-stats .stat div{padding:6px 4px}
#shBody .sos010-flag-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:8px 0 0;color:#a8c4db;font-size:11px}
#shBody .sos010-flag-meta>span{padding:5px 7px;border-radius:8px;border:1px solid rgba(104,170,205,.2);background:rgba(6,23,42,.57)}
#shBody .sos010-flag-meta b{color:#e3f5ff;font-variant-numeric:tabular-nums}
#shBody .sos010-empty-commander{font-size:11px;margin:6px 0;color:#93b1c6}
.sos010-release-kicker{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.14em;color:#8bddf2;margin:0 0 8px}
@media(min-width:900px){
 #shBody .sos416-equipment{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 #shBody .sos416-equipment-head,#shBody .sos416-inventory-row,#shBody .sos416-lock-note{grid-column:1/-1}
 #shBody .sos416-equipped-slot{margin-bottom:0}
}
@media(max-width:420px){
 #shBody .sos416-equipment-head h3{font-size:14px}
 #shBody .sos416-materia-total{font-size:10px;padding:5px 8px}
 #shBody .sos010-unload-all{font-size:11px}
 #shBody .sos010-piece-options{min-width:85px}
 #shBody .sos010-key-stats{gap:4px}
 #shBody .sos010-key-stats>div{padding:7px 4px}
 #shBody .sos010-key-stats b{font-size:13px}
 #shBody .sos010-trio-label{flex-direction:column;gap:2px}
}
body.sos-minimal #shBody .sos416-equipped-slot{border-radius:7px;padding:6px;margin-bottom:6px}
body.sos-minimal #shBody .sos010-trio{border-radius:6px;padding:5px 7px;margin:5px 0 0}
body.sos-minimal #shBody .sos010-trio-label b{font-size:11px}
body.sos-minimal #shBody .sos010-trio-label small{font-size:10px}
body.sos-minimal #shBody .sos010-piece-options summary{min-height:30px;font-size:11px}
body.sos-minimal #shBody .sos010-unload-all{min-height:29px;font-size:10px}
@media(prefers-reduced-motion:reduce){#shBody .btn{transition:none}}
