/* Space of Steresia Reborn 6.3.13 : formations lisibles, debris compacts, progression allégée. */
#shBody .s57-formation-board{display:grid;gap:14px;min-width:0}
#shBody .s57-formation-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
#shBody .s57-formation-top h3{margin:0;font-size:18px}
#shBody .s57-form-count{padding:5px 10px;border:1px solid rgba(115,166,210,.35);border-radius:20px;background:rgba(34,58,85,.45);font-size:12px;color:#aacfea;white-space:nowrap}
#shBody .s57-lane-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;min-width:0}
#shBody .s57-lane{position:relative;min-width:0;display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;padding:13px 7px 12px;border:1px solid rgba(156,184,222,.4);border-top:3px solid var(--s57-tone);border-radius:12px;background:linear-gradient(155deg,var(--s57-bg),rgba(16,29,47,.91));box-shadow:inset 0 1px rgba(255,255,255,.04)}
#shBody .s57-lane-a,#shBody .s57-ship-row-a,#shBody .s57-place-a{--s57-tone:#ff957b;--s57-bg:rgba(137,52,57,.35)}
#shBody .s57-lane-b,#shBody .s57-ship-row-b,#shBody .s57-place-b{--s57-tone:#edc37e;--s57-bg:rgba(127,96,42,.28)}
#shBody .s57-lane-c,#shBody .s57-ship-row-c,#shBody .s57-place-c{--s57-tone:#77d9e5;--s57-bg:rgba(38,95,121,.29)}
#shBody .s57-lane-letter{display:grid;place-items:center;width:37px;height:37px;border:1px solid var(--s57-tone);border-radius:11px;color:var(--s57-tone);background:rgba(5,16,34,.5);font-size:22px;font-weight:900}
#shBody .s57-lane b{color:#f0f6ff;font-size:12px;letter-spacing:.035em}
#shBody .s57-lane small{font-size:11px;color:#bad1e3}
#shBody .s57-lane strong{font-size:12px;color:var(--s57-tone)}
#shBody .s57-section-caption{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:2px 0 0;color:#d9ebff;font-size:13px}
#shBody .s57-saved-list{display:grid;gap:8px}
#shBody .s57-saved{display:grid;gap:10px;padding:11px;border:1px solid rgba(111,165,203,.31);border-radius:11px;background:rgba(20,37,59,.78)}
#shBody .s57-saved-header{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
#shBody .s57-saved-header b{font-size:14px;color:#eef6ff}
#shBody .s57-defense-chip{padding:4px 7px;border:1px solid rgba(105,224,184,.44);border-radius:20px;font-size:10px;font-weight:750;background:rgba(25,95,73,.25);color:#9deecb}
#shBody .s57-lane-chips{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
#shBody .s57-chip{display:flex;align-items:center;justify-content:center;gap:9px;min-width:0;padding:7px 6px;border-radius:8px;background:rgba(9,19,35,.66);border:1px solid rgba(113,149,184,.24);font-size:12px;font-variant-numeric:tabular-nums;color:#dfedff}
#shBody .s57-chip b{width:19px;height:19px;display:grid;place-items:center;border-radius:6px;background:rgba(255,255,255,.09);font-size:11px}
#shBody .s57-chip-a b{color:#ffab99}#shBody .s57-chip-b b{color:#f2ce8c}#shBody .s57-chip-c b{color:#87d9e5}
#shBody .s57-saved-actions{display:flex;flex-wrap:wrap;gap:7px}
#shBody .s57-saved-actions .btn{flex:1 0 auto;min-height:34px;margin:0;padding:7px 9px;font-size:11px}
#shBody .s57-editor{display:grid;gap:11px;padding:12px;border-radius:13px;border:1px solid rgba(120,177,216,.4);background:linear-gradient(150deg,rgba(24,47,72,.91),rgba(14,27,45,.95))}
#shBody .s57-editor-heading{display:flex;align-items:center;justify-content:space-between;gap:6px}
#shBody .s57-editor-heading b{font-size:14px}
#shBody .s57-name{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px;font-size:12px;color:#c3dcee}
#shBody .s57-name input{min-width:0;width:100%;padding:10px 12px;min-height:40px;border:1px solid rgba(128,183,225,.44);border-radius:9px;background:rgba(5,20,38,.78);color:#eff7ff;box-sizing:border-box}
#shBody .s57-ship-list{display:grid;gap:8px}
#shBody .s57-ship{display:grid;gap:10px;padding:11px;border:1px solid rgba(114,160,211,.29);border-radius:11px;background:rgba(11,27,48,.72)}
#shBody .s57-ship.is-assigned{border-color:rgba(101,198,220,.52)}
#shBody .s57-ship-head{display:flex;align-items:center;gap:8px;min-width:0}
#shBody .s57-ship-mark{width:32px;height:32px;flex:none;display:grid;place-items:center;border:1px solid rgba(126,183,227,.38);border-radius:9px;background:rgba(37,77,106,.34);font-size:17px}
#shBody .s57-ship-head>span:nth-child(2){display:grid;gap:2px;min-width:0;flex:1}
#shBody .s57-ship-head b{font-size:13px;color:#eff6ff;overflow-wrap:anywhere}
#shBody .s57-ship-head small{font-size:11px;color:#a8c1d9}
#shBody .s57-ship-total{font-size:12px;min-width:28px;text-align:center;color:#9ed8e8;border:1px solid rgba(94,179,209,.3);background:rgba(9,28,45,.7);border-radius:7px;padding:5px}
#shBody .s57-ship-rows{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
#shBody .s57-ship-row{display:grid;justify-items:stretch;gap:5px;min-width:0;padding:7px;border-top:2px solid var(--s57-tone);border-radius:8px;background:var(--s57-bg);font-size:10px;font-weight:750;color:#ecf5ff}
#shBody .s57-ship-row span{text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#shBody .s57-ship-row input{width:100%;box-sizing:border-box;min-width:0;min-height:38px;text-align:center;padding:7px 2px;background:rgba(9,20,38,.79);border-radius:8px;border:1px solid rgba(141,178,208,.33);color:#f4f8ff;font-size:15px;font-weight:800;font-variant-numeric:tabular-nums}
#shBody .s57-ship-quick{display:flex;align-items:center;justify-content:flex-end;gap:7px;color:#a4c2db;font-size:10.5px}
#shBody .s57-place{min-width:31px;min-height:30px;appearance:none;border:1px solid var(--s57-tone);color:var(--s57-tone);border-radius:7px;background:rgba(11,22,38,.78);font-weight:800;cursor:pointer}
#shBody .s57-place:active{background:var(--s57-bg)}
#shBody .s57-other-models{border:1px solid rgba(116,168,207,.29);border-radius:9px;min-width:0}
#shBody .s57-other-models>summary{list-style-position:inside;padding:11px;color:#b7d1e5;cursor:pointer;font-size:12px}
#shBody .s57-other-models .s57-ship-list{padding:7px}
#shBody .s57-live{display:grid;gap:8px;margin-top:3px;padding-top:10px;border-top:1px solid rgba(126,175,210,.25);font-size:12px;color:#dceeff}
#shBody .s57-editor-actions{display:flex;gap:8px;flex-wrap:wrap}
#shBody .s57-editor-actions .btn{flex:1 1 100px;min-height:39px}
#shBody .s57-formation-picker{display:grid;gap:8px;margin:9px 0;padding:10px;border-radius:10px;border:1px solid rgba(100,154,205,.35);background:rgba(15,36,58,.76)}
#shBody .s57-formation-picker>select{width:100%;min-height:40px;box-sizing:border-box;border:1px solid rgba(121,169,211,.48);border-radius:8px;padding:8px;background:#142339;color:#e9f3ff}
#shBody .s57-pick-empty{display:flex;align-items:center;gap:8px;margin:10px 0}
#shBody .s57-limit{font-size:12px;color:#f5d0a4;padding:8px;border:1px solid rgba(216,166,103,.4);border-radius:8px}
/* Debris : une seule ligne de statut, ressources en icones, regles dans le bouton d'aide. */
#shBody .s57-debris-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0 12px}
#shBody .s57-debris-top h3{margin:0;font-size:17px}
#shBody .s57-debris-top>b{white-space:nowrap;font-size:11px;color:#9dd0df}
#shBody .s57-debris-lock{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;border:1px solid rgba(238,179,108,.45);padding:9px;border-radius:10px;font-size:12px}
#shBody .s57-debris-empty{margin:8px 0 14px;font-size:12px;color:#a2bdd3}
#shBody .s57-debris-grid{display:grid;gap:9px}
#shBody .s57-debris-card{display:grid;grid-template-columns:1fr auto;align-items:center;gap:9px;padding:10px 12px;border:1px solid rgba(101,159,205,.32);border-radius:11px;background:rgba(17,35,55,.8)}
#shBody .s57-debris-card>div:first-child{min-width:0;display:grid;gap:3px}
#shBody .s57-debris-card strong{font-size:13px}
#shBody .s57-debris-card small{font-size:11px;color:#a6c0d8;overflow-wrap:anywhere}
#shBody .s57-debris-card .s57-debris-res{grid-column:1/-1}
#shBody .s57-debris-card .btn{grid-column:2;grid-row:1;min-height:35px}
#shBody .s57-debris-res{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:5px 0}
#shBody .s57-debris-res>span{display:inline-flex;align-items:center;gap:3px;min-width:0;padding:5px 7px;border:1px solid rgba(114,164,211,.26);border-radius:7px;background:rgba(8,20,37,.56)}
#shBody .s57-debris-res .sos632-resource-icon{width:19px;height:19px;margin:0}
#shBody .s57-debris-res b{font-size:12px;font-variant-numeric:tabular-nums}
#shBody .sos5713-head{align-items:center;margin-top:12px}
#shBody .sos5713-field{gap:9px;padding:9px;border-radius:10px}
#shBody .sos5713-details{gap:6px}
#shBody .sos5713-field .s57-debris-res{margin:0}
#shBody .sos5713-details .codecoord{font-size:12px}
#shBody .sos5713-details small{font-size:11px}
#shBody .sos6313-profile .sos619-inline-heading{justify-content:space-between}
#shBody .sos6313-profile h3{font-size:17px;margin:0}
#shBody .sos6313-profile-points{display:flex;justify-content:space-between;align-items:center;gap:9px;color:#c6dcec;font-size:12px;margin:10px 0}
#shBody .sos6313-profile-points strong{color:#7fe1c0}
@media(max-width:590px){
 #shBody .s57-lane-overview{gap:5px}
 #shBody .s57-lane{gap:3px;padding:10px 3px 9px}
 #shBody .s57-lane-letter{width:31px;height:31px;font-size:19px}
 #shBody .s57-lane b{font-size:10.5px}
 #shBody .s57-lane small{font-size:10px}
 #shBody .s57-editor{padding:9px}
 #shBody .s57-ship{padding:8px}
 #shBody .s57-ship-rows{gap:4px}
 #shBody .s57-ship-row{padding:5px 3px}
 #shBody .s57-ship-row span{font-size:9px}
 #shBody .s57-saved-actions .btn{font-size:10px;padding:7px 6px}
 #shBody .s57-ship-quick{justify-content:flex-start}
 #shBody .sos5713-field .btn,#shBody .sos5713-wait{width:auto;flex:0 0 auto}
}

/* v0.3.20 : accelerations lisibles et qualite des objets */
.sos320-speed {display:flex;flex-direction:column;gap:6px;align-items:flex-start;margin-top:12px;padding:12px 14px;border:1px solid var(--border,#344259);border-radius:10px;background:rgba(10,20,36,.43)}
.sos320-speed>strong{font-size:.94rem}
.sos320-speed>small{display:block;line-height:1.4;opacity:.85}
.sos320-speed .btns{display:flex;gap:8px;flex-wrap:wrap;margin:6px 0}
.sos320-speed .btns .btn{white-space:normal;text-align:center}
.sos320-speed-hint{max-width:48em}
.sos320-quality{display:inline-block;margin:4px 0 5px;padding:3px 8px;border:1px solid rgba(140,160,190,.35);border-radius:8px;font-size:.77rem;color:#cbd5e1;background:rgba(25,36,58,.48)}
.sos320-quality.is-perfect{border-color:rgba(235,190,92,.55);color:#ffe49b;background:rgba(100,69,15,.2)}
@media(max-width:700px){.sos320-speed{padding:10px}.sos320-speed .btns{width:100%}.sos320-speed .btns .btn{flex:1 1 100%}}
