/* Space of Steresia Reborn 0.3.10
   1) Accueil mobile : événements en bannières pleine largeur, tous affichés.
   2) Ordinateur (>= 1080 px) : en-tête complet, contenu élargi (voir pc0310.js). */

/* ---------- 1. Bannières d'événements pleine largeur ---------- */
body.sos-b .rb-evlist{display:flex;flex-direction:column;gap:10px}
body.sos-b .rb-evb{position:relative;display:flex;align-items:center;gap:10px;width:100%;min-height:92px;padding:12px 12px 12px 14px;border-radius:18px;overflow:hidden;
  border:1px solid var(--rb-line);background:linear-gradient(115deg,#121b33,#1b2448 60%,#141a33);color:var(--rb-text);text-align:left;cursor:pointer;font:inherit;isolation:isolate}
body.sos-b .rb-evb>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:70% 40%;z-index:-2}
body.sos-b .rb-evb-veil{position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(5,7,15,.94) 0%,rgba(5,7,15,.78) 42%,rgba(5,7,15,.18) 78%,rgba(5,7,15,.05) 100%)}
body.sos-b .rb-evb-copy{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:3px;line-height:1.2}
body.sos-b .rb-evb-tag{align-self:flex-start;max-width:100%;font:700 10px/1 var(--rb-font);letter-spacing:.06em;text-transform:uppercase;padding:4px 7px;border-radius:7px;
  background:rgba(5,7,15,.62);border:1px solid rgba(142,230,244,.35);color:var(--rb-cyan);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.sos-b .rb-evb-copy b{font:700 16px/1.2 var(--rb-font);text-shadow:0 1px 6px rgba(0,0,0,.6);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body.sos-b .rb-evb-copy small{font-size:12.5px;color:var(--rb-mut);text-shadow:0 1px 4px rgba(0,0,0,.7);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.sos-b .rb-evb-side{flex:0 0 auto;display:flex;flex-direction:column;align-items:flex-end;gap:8px}
body.sos-b .rb-evb-chip{font:600 11.5px/1 var(--rb-font);padding:6px 8px;border-radius:10px;background:rgba(5,7,15,.78);border:1px solid var(--rb-line2);color:var(--rb-text);white-space:nowrap}
body.sos-b .rb-evb-chip b{font-weight:800}
body.sos-b .rb-evb-chip.hot{color:#ffc170;border-color:rgba(255,193,112,.5)}
body.sos-b .rb-evb-go{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:rgba(5,7,15,.6);border:1px solid var(--rb-line2);color:var(--rb-text)}
body.sos-b .rb-evb:focus-visible{outline:2px solid var(--rb-cyan);outline-offset:2px}
body.sos-b .rb-evb-danger{border-color:rgba(239,84,110,.7)}
body.sos-b .rb-evb-danger .rb-evb-tag{background:rgba(109,16,33,.87);border-color:#f07885;color:#ffe1e3}
body.sos-b .rb-evb-live .rb-evb-tag{border-color:rgba(98,224,160,.45);color:#a9f3cc}
body.sos-b .rb-evb-soon .rb-evb-tag{border-color:rgba(245,187,94,.48);color:#ffe2aa}
@media (hover:hover){body.sos-b .rb-evb:hover{border-color:var(--rb-line2)}body.sos-b .rb-evb:hover .rb-evb-go{background:var(--rb-orange);color:var(--rb-orange-ink);border-color:transparent}}
@media (max-width:359px){body.sos-b .rb-evb{min-height:84px;padding:10px}body.sos-b .rb-evb-copy b{font-size:15px}}

/* ---------- 2. Ordinateur : en-tête, barre planète et ressources, contenu élargi ---------- */
#pcHead[hidden]{display:none!important}
body.sos-b.sos-pc{--pc-w:1440px;--pc-pad:max(20px,calc((100vw - var(--pc-w)) / 2));--pc-head:60px;--pc-bar:56px}
@media (max-width:1599px){body.sos-b.sos-pc{--pc-w:calc(100vw - 48px)}}
@media (max-width:1439px){body.sos-b.sos-pc{--pc-w:calc(100vw - 40px)}}
@media (max-width:1199px){body.sos-b.sos-pc{--pc-w:calc(100vw - 28px);--pc-pad:14px}}
body.sos-b.sos-pc::before{display:none!important}
body.sos-b.sos-pc #tabs,body.sos-b.sos-pc #top #sosMenuToggle,body.sos-b.sos-pc #sosDrawer{display:none!important}

/* Ligne 1 : marque, rubriques, récompenses et profil */
body.sos-b.sos-pc #pcHead{position:fixed;top:0;left:0;right:0;height:var(--pc-head);z-index:62;display:flex;align-items:center;gap:14px;padding:0 var(--pc-pad);box-sizing:border-box;
  background:rgba(5,7,15,.94);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-bottom:1px solid var(--rb-line);font-family:var(--rb-font);color:var(--rb-text)}
body.sos-b.rb-auth #pcHead{display:none!important}
.pc-brand{display:flex;align-items:center;gap:10px;flex:none;background:none;border:0;padding:0;color:inherit;cursor:pointer;text-align:left}
.pc-brand img{width:34px;height:34px;border-radius:10px;display:block}
.pc-brand span{display:flex;flex-direction:column;line-height:1.05}
.pc-brand b{font:800 15px var(--rb-font);letter-spacing:-.2px;white-space:nowrap}
.pc-brand small{font:700 10px var(--rb-font);letter-spacing:.24em;text-transform:uppercase;color:#ffd38a}
.pc-nav{flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:2px}
.pc-group{position:relative}
.pc-item{position:relative;height:40px;display:inline-flex;align-items:center;gap:6px;padding:0 10px;border-radius:20px;border:1px solid transparent;background:none;color:var(--rb-mut);
  font:600 14px var(--rb-font);white-space:nowrap;cursor:pointer}
.pc-item svg{flex:none}
.pc-item .pc-chev{opacity:.7;transition:transform .15s}
.pc-item[aria-expanded="true"] .pc-chev{transform:rotate(180deg)}
.pc-item:hover,.pc-item[aria-expanded="true"]{color:var(--rb-text);background:rgba(255,255,255,.06)}
.pc-item.on{color:var(--rb-orange);background:rgba(255,180,84,.12);border-color:rgba(255,180,84,.32)}
.pc-item:focus-visible,.pc-link:focus-visible,.pc-brand:focus-visible,.pc-me:focus-visible,.pc-rewards:focus-visible{outline:2px solid var(--rb-cyan);outline-offset:2px}
.pc-dot{min-width:18px;height:18px;padding:0 5px;box-sizing:border-box;border-radius:9px;background:var(--rb-orange);color:var(--rb-orange-ink);font:800 11px/18px var(--rb-font);text-align:center}
.pc-dot[hidden]{display:none}
.pc-panel{position:absolute;top:calc(100% + 10px);left:0;z-index:70;width:340px;max-height:calc(100vh - 90px);overflow-y:auto;padding:8px;box-sizing:border-box;border-radius:18px;
  background:#0d1427;border:1px solid var(--rb-line2);box-shadow:0 22px 50px rgba(0,0,0,.6);display:flex;flex-direction:column;gap:2px}
.pc-panel::before{content:"";position:absolute;left:0;right:0;top:-12px;height:12px}
.pc-panel[hidden]{display:none!important}
.pc-panel.pc-wide{width:620px;display:grid;grid-template-columns:1fr 1fr;gap:2px 6px}
.pc-link{position:relative;display:flex;align-items:center;gap:11px;width:100%;padding:9px 10px;border-radius:12px;border:0;background:none;color:var(--rb-text);text-align:left;cursor:pointer;font:inherit}
.pc-link:hover{background:rgba(255,255,255,.06)}
.pc-link.on{background:rgba(255,180,84,.11)}
.pc-link.on b{color:var(--rb-orange)}
.pc-sym{flex:none;width:36px;height:36px;border-radius:11px;display:grid;place-items:center;background:rgba(142,230,244,.08);border:1px solid rgba(142,230,244,.2);color:var(--rb-cyan);font-size:17px;line-height:1}
.pc-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.pc-copy b{font:700 14px/1.2 var(--rb-font)}
.pc-copy small{font:500 12px/1.3 var(--rb-font);color:var(--rb-mut2);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pc-badge{flex:none;min-width:20px;height:20px;padding:0 6px;box-sizing:border-box;border-radius:10px;background:var(--rb-orange);color:var(--rb-orange-ink);font:800 11px/20px var(--rb-font);text-align:center}
.pc-tools{flex:none;display:flex;align-items:center;gap:8px}
.pc-rewards{height:40px;display:inline-flex;align-items:center;gap:7px;padding:0 12px 0 10px;border-radius:20px;border:1px solid rgba(255,180,84,.5);background:rgba(255,180,84,.12);color:var(--rb-orange);font:800 14px var(--rb-font);cursor:pointer}
.pc-rewards[hidden]{display:none}
.pc-me{height:44px;display:inline-flex;align-items:center;gap:9px;padding:0 12px 0 4px;border-radius:22px;border:1px solid var(--rb-line);background:rgba(255,255,255,.05);color:var(--rb-text);cursor:pointer;text-align:left}
.pc-me:hover,.pc-rewards:hover{filter:brightness(1.12)}
.pc-me-av{width:36px;height:36px;border-radius:50%;overflow:hidden;flex:none;display:block;position:relative;background:#18213d}
.pc-me-av>*{width:100%!important;height:100%!important}
.pc-me-av img{width:100%;height:100%;object-fit:cover}
.pc-me-copy{display:flex;flex-direction:column;line-height:1.1}
.pc-me-copy b{font:700 13px var(--rb-font);max-width:110px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pc-me-copy small{font:600 11.5px var(--rb-font);color:var(--rb-mut)}
.pc-me-copy small i{font-style:normal;margin-left:4px;padding:0 5px;border-radius:7px;background:var(--rb-orange);color:var(--rb-orange-ink);font-weight:800}
.pc-me.on{border-color:rgba(255,180,84,.45)}
/* 1024 à 1359 px : libellés seuls, pour que les sept rubriques tiennent sur une ligne. */
@media (max-width:1535px){.pc-item>svg:not(.pc-chev){display:none}.pc-item{gap:5px}}
@media (max-width:1365px){.pc-brand span{display:none}}
@media (max-width:1279px){.pc-brand span{display:none}.pc-me-copy{display:none}.pc-me{padding:0 4px}.pc-item{font-size:13.5px;padding:0 9px}}
@media (max-width:1099px){.pc-nav{gap:0}.pc-item{padding:0 7px;font-size:13px}.pc-rewards{padding:0 9px}}

/* Ligne 2 : planète, ressources, Or et messagerie (barre du jeu replacée) */
body.sos-b.sos-pc #top{top:var(--pc-head)!important;left:0!important;right:0!important;height:var(--pc-bar)!important;padding:0 var(--pc-pad)!important;box-sizing:border-box;flex-wrap:nowrap!important;gap:10px!important;
  background:rgba(7,10,20,.9)!important;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)!important;border-bottom:1px solid var(--rb-line)!important;z-index:61}
body.sos-b.sos-pc #top .bar{display:contents!important}
body.sos-b.sos-pc #pl{order:1;max-width:260px;height:40px!important;min-height:40px!important}
body.sos-b.sos-pc #res{order:2;flex:0 1 auto!important;gap:8px!important;min-width:0}
body.sos-b.sos-pc #res .rc{flex:0 1 auto!important;min-width:118px;height:36px!important;min-height:36px!important;border-radius:18px!important;padding:0 12px 0 4px!important;gap:7px}
body.sos-b.sos-pc #res .rc:last-child{flex:0 1 auto!important}
body.sos-b.sos-pc #res .rc .nm i.dot{width:28px!important;height:28px!important;border-radius:14px!important}
body.sos-b.sos-pc #res .rc b{font-size:14px!important}
body.sos-b.sos-pc #top .sos-gold-chip{order:3;margin-left:auto!important;height:40px!important;min-height:40px!important}
body.sos-b.sos-pc #top .mail-trigger{order:4;height:40px!important;min-height:40px!important;width:40px;min-width:40px}
body.sos-b.sos-pc.rb-hero-on #top{background:rgba(7,10,20,.72)!important}

/* Page : pleine largeur, contenu centré */
body.sos-b.sos-pc #sheet{top:var(--sos-top-clearance,124px)!important;left:0!important;right:0!important;bottom:0!important}
body.sos-b.sos-pc #shHead,body.sos-b.sos-pc #shNav{padding-left:var(--pc-pad)!important;padding-right:var(--pc-pad)!important}
body.sos-b.sos-pc #shBody{padding:6px var(--pc-pad) 48px!important;scrollbar-gutter:stable}
body.sos-b.sos-pc #shHead{padding-top:10px!important;padding-bottom:8px!important}
body.sos-b.sos-pc #shHead h2{font-size:24px!important}
body.sos-b.sos-pc #chatFab{right:24px!important;bottom:24px!important}
body.sos-b.sos-pc #rbHero{left:0!important;right:0!important}
body.sos-b.sos-pc #rbHero .rb-hero-veil{background:linear-gradient(180deg,rgba(5,7,15,.92) 0%,rgba(5,7,15,.55) 30%,rgba(5,7,15,.35) 55%,rgba(5,7,15,.8) 85%,#05070f 100%)}
body.sos-b.sos-pc .rb-dock-action{left:var(--pc-pad)!important;right:var(--pc-pad)!important;bottom:20px!important}
body.sos-b.sos-pc .seg{flex-wrap:wrap!important;overflow:visible}

/* Planètes : panneau centré plutôt que feuille du bas */
body.sos-b.sos-pc #rbPlanetSheet{justify-content:center;align-items:center;z-index:70}
body.sos-b.sos-pc #rbPlanetSheet .rb-ps{width:640px;max-height:min(80vh,760px);border-radius:24px;border:1px solid var(--rb-line2);padding:16px 18px 20px}
body.sos-b.sos-pc #rbPlanetSheet .rb-ps-handle{display:none}
body.sos-b.sos-pc #rbPlanetSheet .rb-ps-back img{height:100%}

/* Accueil : blocs neutres sur téléphone (même ordre qu'avant) */
body.sos-b .rb-home-top,body.sos-b .rb-home-a,body.sos-b .rb-home-b,body.sos-b .rb-home-c{display:contents}

/* Accueil sur ordinateur : événements à gauche, compte et activité à droite */
body.sos-b.sos-pc .rb-home{display:grid;grid-template-columns:minmax(0,1fr) 400px;grid-template-rows:auto auto 1fr;grid-template-areas:"top top" "main side" "main side2";gap:16px 20px;align-items:start}
body.sos-b.sos-pc .rb-home-top{display:flex;flex-direction:column;gap:12px;grid-area:top}
body.sos-b.sos-pc .rb-home-a{display:flex;flex-direction:column;gap:12px;grid-area:side}
body.sos-b.sos-pc .rb-home-b{display:flex;flex-direction:column;gap:12px;grid-area:main;grid-row:2 / 4}
body.sos-b.sos-pc .rb-home-c{display:flex;flex-direction:column;gap:12px;grid-area:side2}
body.sos-b.sos-pc .rb-home-c:empty{display:none}
body.sos-b.sos-pc .rb-home .rb-evlist{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:12px}
body.sos-b.sos-pc .rb-home .rb-evb{min-height:118px;padding:14px 14px 14px 16px}
body.sos-b.sos-pc .rb-home .rb-evb-copy b{font-size:17px}
body.sos-b.sos-pc .rb-home .rb-identity{padding:14px;border-radius:20px;background:var(--rb-card);border:1px solid var(--rb-line)}
body.sos-b.sos-pc .rb-home .rb-label{margin:2px 2px -4px}
@media (max-width:1279px){body.sos-b.sos-pc .rb-home{grid-template-columns:minmax(0,1fr) 340px}}
body.sos-b.sos-pc .rb-home-a .rb-name b{font-size:21px}
body.sos-b.sos-pc .rb-home-a .rb-crest img{width:56px;height:56px}
body.sos-b.sos-pc .rb-home-a .rb-crest{width:56px;height:56px;flex:none}

/* Ressources toujours visibles sur ordinateur (la colonne mobile les masquait sur certaines pages) */
body.sos-b.sos-pc.rb-empire #res{display:flex!important}
body.sos-b.sos-pc.rb-empire #pl{width:auto!important;max-width:260px!important;min-width:0!important;padding:0 10px 0 6px!important;justify-content:flex-start!important;gap:7px!important}
body.sos-b.sos-pc.rb-empire #pl #plName,body.sos-b.sos-pc.rb-empire #pl .rb-count,body.sos-b.sos-pc.rb-empire #pl>svg{display:inline-flex!important}
body.sos-b.sos-pc.rb-empire #pl .rb-raid-badge{right:-10px}

/* Largeur de lecture : pages faites de listes et de textes */
body.sos-b.sos-pc:is([data-pc-view="admin"],[data-pc-view="campaign"],[data-pc-view="battles"],[data-pc-view="event"],[data-pc-view="journal"],[data-pc-view="corridors"],
  [data-pc-view="dashboard:daily"],[data-pc-view="dashboard:monthly"],[data-pc-view="dashboard:shop"],[data-pc-view="dashboard:history"],[data-pc-view="squad"],
  [data-pc-view="fleet:debris"],[data-pc-view="chests"],[data-pc-view="messages"],[data-pc-view="galaxy"],[data-pc-view="hunt"],[data-pc-view="factions"],[data-pc-view="report"],
  [data-pc-view="avatar60"],[data-pc-view="target"],[data-pc-view="rbevents"]) #shBody>*{max-width:1080px;margin-left:auto!important;margin-right:auto!important}
body.sos-b.sos-pc:is([data-pc-view="dashboard:achs"],[data-pc-view="dashboard:quests"],[data-pc-view="command"],[data-pc-view="fleet:formations"]) #shBody>*{max-width:1240px;margin-left:auto!important;margin-right:auto!important}

/* Deux colonnes : contenu à gauche, fiche et action à droite */
body.sos-b.sos-pc .pc-split{display:grid!important;grid-template-columns:minmax(0,1fr) var(--pc-side,420px);grid-template-areas:"top top" "main side";gap:14px 24px;align-items:start}
body.sos-b.sos-pc .pc-split-top{grid-area:top;display:flex;flex-direction:column;gap:10px;min-width:0}
body.sos-b.sos-pc .pc-split-main{grid-area:main;display:flex;flex-direction:column;gap:12px;min-width:0}
body.sos-b.sos-pc .pc-split-side{grid-area:side;display:flex;flex-direction:column;gap:12px;min-width:0;position:sticky;top:8px;max-height:calc(100vh - var(--sos-top-clearance,124px) - 24px);overflow-y:auto;overscroll-behavior:contain;
  padding:14px;border-radius:22px;background:rgba(10,15,30,.82);border:1px solid var(--rb-line);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-sizing:border-box;scrollbar-width:thin}
@media (max-width:1279px){body.sos-b.sos-pc .pc-split{--pc-side:360px}}

/* Bandeaux à faire défiler du doigt : sur ordinateur, ils passent à la ligne (pas de défilement horizontal caché) */
body.sos-b.sos-pc .rb-carousel,body.sos-b.sos-pc .rb-thumbs,body.sos-b.sos-pc .rb-dcards,body.sos-b.sos-pc .rb-sysband,body.sos-b.sos-pc .rb-pchips{flex-wrap:wrap;overflow:visible;margin:0;padding:2px 0 4px}
body.sos-b.sos-pc .rb4-filters,body.sos-b.sos-pc .rb4-chips{flex-wrap:wrap!important;overflow:visible!important;margin-left:0!important;margin-right:0!important}
body.sos-b.sos-pc .rb-dcards{display:grid;grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:10px}
body.sos-b.sos-pc .rb-dcard{width:auto}
body.sos-b.sos-pc .pc-split-fleet-def .rb-orbit{margin:8px auto}

/* Missions et défis : Drake et Tour côte à côte */
body.sos-b.sos-pc .rb4-command{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px 16px;align-items:stretch}
body.sos-b.sos-pc .rb4-command>*{grid-column:1/-1}
body.sos-b.sos-pc .rb4-command>.rb4-drake{grid-column:1}
body.sos-b.sos-pc .rb4-command>.rb4-tower{grid-column:2}
/* Quêtes : deux colonnes de quêtes */
body.sos-b.sos-pc .rb4-quests{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px 14px;align-items:start}
body.sos-b.sos-pc .rb4-quests>*{grid-column:1/-1}
body.sos-b.sos-pc .rb4-quests>.rb4-qrow,body.sos-b.sos-pc .rb4-quests>.rb4-done-card{grid-column:auto}
/* Succès : grille */
body.sos-b.sos-pc #shBody .sos632-quest-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(380px,1fr))!important;gap:10px!important}
body.sos-b.sos-pc .sos632-quest-grid>*{margin:0!important}
/* Avant-postes : une colonne par galaxie */
body.sos-b.sos-pc[data-pc-view="outposts"] #shBody{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(360px,1fr));align-content:start;gap:12px 16px}
body.sos-b.sos-pc[data-pc-view="outposts"] #shBody>:not(.op-galaxy){grid-column:1/-1}
body.sos-b.sos-pc[data-pc-view="outposts"] #shBody>.op-galaxy{margin:0!important}
/* Messagerie : lignes plus aérées */
body.sos-b.sos-pc .rb4-mail .rb4-mrow{min-height:60px}
body.sos-b.sos-pc .rb-home-a .rb-name{flex-wrap:wrap;row-gap:4px}
@media (max-width:1279px){body.sos-b.sos-pc .rb-home-a .rb-crest{display:none}}

/* Niveau et spécialité : trois spécialités et trois branches côte à côte */
body.sos-b.sos-pc .r038{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 16px;align-items:start}
body.sos-b.sos-pc .r038>*{grid-column:1/-1;margin-top:0;margin-bottom:0}
body.sos-b.sos-pc .r038>.r038-branch{grid-column:auto;height:100%;box-sizing:border-box;display:flex;flex-direction:column}
body.sos-b.sos-pc .r038>.r038-branch .r038-btn{margin-top:auto}
body.sos-b.sos-pc .r038-jobs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
body.sos-b.sos-pc .r038-jobs>legend{grid-column:1/-1}
body.sos-b.sos-pc .r038-cta{max-width:560px;width:100%;justify-self:center}

/* Accueil sur ordinateur : production et chantiers dans la colonne de droite */
body.sos-b:not(.sos-pc) .rb-pc-only{display:none!important}
body.sos-b.sos-pc .rb-pcprod{display:flex;flex-direction:column;gap:10px;padding:12px 14px;text-align:left;cursor:pointer;color:var(--rb-text);width:100%}
body.sos-b.sos-pc .rb-pcprod .rb-row{display:flex;justify-content:space-between;align-items:center;font-size:13px}
body.sos-b.sos-pc .rb-pcprod-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
body.sos-b.sos-pc .rb-pcprod-r{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:6px;align-items:center;padding:8px;border-radius:12px;background:rgba(255,255,255,.04);border:1px solid var(--rb-line)}
body.sos-b.sos-pc .rb-pcprod-r i{grid-row:1/3}
body.sos-b.sos-pc .rb-pcprod-r b{font:700 13px var(--rb-font);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.sos-b.sos-pc .rb-pcprod-r small{font-size:11px;color:var(--rb-mut2)}
body.sos-b.sos-pc .rb-pcact .card{margin:0!important;padding:12px 14px!important}
body.sos-b.sos-pc .rb-pcact h3{font-size:14px!important;margin:0 0 8px!important}
body.sos-b.sos-pc .rb-pcact .sos60-mission{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:6px 0;border-top:1px solid var(--rb-line);font-size:13px}
body.sos-b.sos-pc .rb-pcact .sos60-mission span{display:flex;flex-direction:column}
/* Atelier de conception : caractéristiques, jauges et enregistrement dans la colonne de droite */
body.sos-b.sos-pc .pc-split-side .rb-dock-action{position:static!important;left:auto!important;right:auto!important;bottom:auto!important;box-shadow:none;background:transparent;border:0;padding:0}
body.sos-b.sos-pc .pc-split-design .rb-stats5{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
body.sos-b.sos-pc[data-pc-view="design"] #shBody{padding-bottom:48px!important}
body.sos-b.sos-pc[data-pc-view="design"] #res .rc{flex:0 1 auto!important}
/* Sur ordinateur, l'atelier garde la barre planète et ressources (la page n'a plus besoin de sa propre ligne de ressources) */
body.sos-b.sos-pc[data-rb-view^="design"] #top{display:flex!important}
body.sos-b.sos-pc[data-rb-view^="design"] #top .bar{display:contents!important}
body.sos-b.sos-pc[data-rb-view^="design"] #top .chip:not(#sosMenuToggle):not(.sos-objectives-trigger){display:inline-flex!important}
body.sos-b.sos-pc[data-rb-view^="design"] .rb-design .rb-resrow{display:none!important}
body.sos-b.sos-pc #sheet{top:max(var(--sos-top-clearance,124px),calc(var(--pc-head) + 8px))!important}

/* ---------- 0.3.11 : vaisseaux plus grands sur ordinateur ---------- */
body.sos-b .rb-thumb-name{display:none}
/* Vaisseaux : vignettes en grille, avec le nom */
body.sos-b.sos-pc .rb-thumbs{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
body.sos-b.sos-pc .rb-thumb{width:auto;height:auto;aspect-ratio:4/3;display:flex;flex-direction:column;border-radius:16px}
body.sos-b.sos-pc .rb-thumb img{flex:1 1 auto;min-height:0;width:100%;height:auto}
body.sos-b.sos-pc .rb-thumb-name{display:block;flex:none;padding:6px 8px;font:700 13px/1.2 var(--rb-font);color:var(--rb-text);background:rgba(5,7,15,.85);text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.sos-b.sos-pc .rb-thumb.on .rb-thumb-name{color:var(--rb-orange)}
body.sos-b.sos-pc .rb-thumb-n{top:6px;right:6px;bottom:auto;height:22px;padding:0 7px;border-radius:8px;font-size:12px;line-height:22px}
body.sos-b.sos-pc .rb-thumb.new{flex-direction:column;justify-content:center;gap:8px}
body.sos-b.sos-pc .rb-thumb.new svg{width:30px;height:30px}
body.sos-b.sos-pc .rb-thumb.new .rb-thumb-name{background:none;color:var(--rb-orange);text-align:center;padding:0}
@media (hover:hover){body.sos-b.sos-pc .rb-thumb:not(.on):hover{border-color:rgba(255,180,84,.6)}}
/* Atelier : coques plus hautes */
body.sos-b.sos-pc .rb-hull{height:auto;min-height:130px;padding-bottom:8px}
body.sos-b.sos-pc .rb-hull img{height:96px}
body.sos-b.sos-pc .rb-hull b{font-size:14px;margin-top:6px}
body.sos-b.sos-pc .rb-hull small{font-size:11.5px}
/* Défenses : orbite et cartes agrandies */
body.sos-b.sos-pc .pc-split-fleet-def .rb-orbit{transform:scale(1.3);transform-origin:50% 50%;margin:46px auto 56px}
body.sos-b.sos-pc .rb-dcards{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
body.sos-b.sos-pc .rb-dcard{height:170px}
/* Hangar sécurisé et anciennes grilles : tuiles plus grandes */
body.sos-b.sos-pc #shBody .sos423-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))!important;max-width:none!important;gap:10px!important}
/* Formations : illustration du vaisseau à la place du pictogramme */
body.sos-b.sos-pc #shBody .s57-ship-mark.pc-ship-art{width:96px;height:64px;flex:none;border-radius:12px;overflow:hidden;background:#0b1324;border:1px solid var(--rb-line2);display:block;font-size:0}
body.sos-b.sos-pc #shBody .s57-ship-mark.pc-ship-art img{width:100%;height:100%;object-fit:cover;display:block}
body.sos-b.sos-pc #shBody .s57-ship-head{align-items:center;gap:12px}
body.sos-b.sos-pc #shBody .s57-ship-head b{font-size:16px}
/* Fiches illustrées (hangar sécurisé, fiches complètes) : image plus grande */
body.sos-b.sos-pc #shBody .sos41-illustrated{grid-template-columns:220px minmax(0,1fr)!important;column-gap:16px!important}
body.sos-b.sos-pc #shBody .sos41-illustrated>.sos41-visual{width:220px;height:150px;margin:0 0 8px 0}
@media (min-width:1600px){body.sos-b.sos-pc .rb-thumbs{grid-template-columns:repeat(auto-fill,minmax(176px,1fr))}}

/* ---------- 0.3.12 : formations par placement (téléphone et ordinateur) ---------- */
#shBody .s57-rowbtn-a,#shBody .s57-place-line-a,#shBody .s57-ship-a{--s57-tone:#ff957b;--s57-bg:rgba(137,52,57,.42)}
#shBody .s57-rowbtn-b,#shBody .s57-place-line-b,#shBody .s57-ship-b{--s57-tone:#edc37e;--s57-bg:rgba(127,96,42,.36)}
#shBody .s57-rowbtn-c,#shBody .s57-place-line-c,#shBody .s57-ship-c{--s57-tone:#77d9e5;--s57-bg:rgba(38,95,121,.38)}
#shBody .s57-form-intro{margin:2px 2px 4px;font-size:13px;line-height:1.45;color:var(--rb-mut,#c3cbe3)}
#shBody .s57-suggest-row{display:flex;align-items:center;justify-content:space-between;gap:8px 12px;flex-wrap:wrap;font-size:12.5px;color:var(--rb-mut2,#a9b3cc)}
#shBody .s57-suggest-row .btn{margin:0}
#shBody .s57-ship{border-left:3px solid var(--s57-tone,rgba(114,160,211,.29))!important}
#shBody .s57-rowpick{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
#shBody .s57-rowbtn{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:58px;padding:7px 4px;border-radius:12px;cursor:pointer;
  border:1px solid rgba(255,255,255,.14);border-top:3px solid var(--s57-tone);background:rgba(255,255,255,.04);color:var(--rb-mut,#c3cbe3);font:inherit}
#shBody .s57-rowbtn b{font:800 16px/1 var(--rb-font,inherit);color:var(--s57-tone)}
#shBody .s57-rowbtn span{font-size:12px;font-weight:700}
#shBody .s57-rowbtn small{font-size:10px;color:var(--rb-mut2,#a9b3cc);letter-spacing:.02em}
#shBody .s57-rowbtn.on{background:var(--s57-bg);border-color:var(--s57-tone);color:#fff;box-shadow:0 0 0 1px var(--s57-tone) inset}
#shBody .s57-rowbtn.on::after{content:"✓";position:absolute;top:5px;right:7px;font-size:12px;font-weight:800;color:var(--s57-tone)}
#shBody .s57-rowbtn:focus-visible{outline:2px solid var(--rb-cyan,#8ee6f4);outline-offset:2px}
@media (hover:hover){#shBody .s57-rowbtn:not(.on):hover{border-color:var(--s57-tone);color:#fff}}
#shBody .s57-place-sum{display:grid;gap:6px}
#shBody .s57-place-line{display:flex;align-items:baseline;gap:8px;padding:7px 10px;border-radius:10px;background:var(--s57-bg);border-left:3px solid var(--s57-tone);font-size:12.5px;line-height:1.35}
#shBody .s57-place-line b{flex:none;display:inline-flex;align-items:center;gap:6px;min-width:76px;color:#fff}
#shBody .s57-place-line b i{font-style:normal;width:18px;height:18px;border-radius:5px;display:grid;place-items:center;background:rgba(0,0,0,.28);color:var(--s57-tone);font-size:11px}
#shBody .s57-place-line span{min-width:0;color:var(--rb-text,#eef1fb)}
#shBody .s57-place-line em{font-style:normal;color:var(--rb-mut2,#a9b3cc)}
#shBody .s57-place-compact .s57-place-line{padding:5px 8px;font-size:12px}
#shBody .s57-pick-note{margin:6px 0 0;font-size:12px;color:var(--rb-mut2,#a9b3cc)}
#shBody .s57-live .s57-place-sum{margin-top:6px}
/* Ordinateur : résumés sur trois colonnes, cartes de vaisseaux sur deux colonnes */
body.sos-b.sos-pc #shBody .s57-place-sum{grid-template-columns:repeat(3,minmax(0,1fr))}
body.sos-b.sos-pc #shBody .s57-place-line{flex-direction:column;gap:4px}
body.sos-b.sos-pc #shBody .s57-ship-list{grid-template-columns:repeat(2,minmax(0,1fr))}
body.sos-b.sos-pc #shBody .s57-saved-list{grid-template-columns:repeat(2,minmax(0,1fr))}

/* ---------- 0.3.13 : nouvel écran des formations (liste C, éditeur A, départ B) ---------- */
#shBody .s313-l-a{--t:#ff957b;--bg:rgba(137,52,57,.46)}
#shBody .s313-l-b{--t:#edc37e;--bg:rgba(127,96,42,.40)}
#shBody .s313-l-c{--t:#77d9e5;--bg:rgba(38,95,121,.42)}
#shBody .s313{display:flex;flex-direction:column;gap:12px;font-family:var(--rb-font,inherit);color:var(--rb-text,#eef1fb)}
#shBody .s313 button{font:inherit}
#shBody .s313-intro,#shBody .s313-caption,#shBody .s313-dnote,#shBody .s313-hintline{margin:0;font-size:12.5px;line-height:1.45;color:var(--rb-mut2,#a9b3cc)}
#shBody .s313-caption{text-align:center}
#shBody .s313-intro b{color:var(--rb-text,#eef1fb)}
/* lettres de ligne et images */
#shBody .s313-mhead i,#shBody .s313-rail i,#shBody .s313-dcolhead i{font-style:normal;flex:none;display:inline-flex;align-items:center;justify-content:center;border:1.5px solid var(--t);color:var(--t);background:rgba(0,0,0,.28);font-weight:900}
#shBody .s313-av,#shBody .s313-tokimg,#shBody .s313-moveimg,#shBody .s313-dimg{position:relative;display:block;overflow:hidden;background:#0b1324;flex:none}
#shBody .s313-av img,#shBody .s313-tokimg img,#shBody .s313-moveimg img,#shBody .s313-dimg img{position:relative;z-index:1;width:100%;height:100%;object-fit:cover;display:block}
#shBody .s313-av>i,#shBody .s313-tokimg>i,#shBody .s313-moveimg>i,#shBody .s313-dimg>i{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-style:normal;color:#8ee6f4;opacity:.6}
/* 1. Mes formations */
#shBody .s313-fcard{all:unset;box-sizing:border-box;cursor:pointer;width:100%;display:flex;flex-direction:column;gap:10px;padding:12px;border-radius:18px;background:rgba(12,18,36,.86);border:1px solid rgba(255,255,255,.12)}
#shBody .s313-fcard:focus-visible{outline:2px solid var(--rb-cyan,#8ee6f4);outline-offset:2px}
@media (hover:hover){#shBody .s313-fcard:hover{border-color:rgba(255,180,84,.5)}}
#shBody .s313-fhead{display:flex;align-items:center;gap:8px;color:#8f9ab8}
#shBody .s313-fhead b{flex:1;min-width:0;font-size:16px;font-weight:800;color:var(--rb-text,#eef1fb);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#shBody .s313-def{height:24px;padding:0 9px;border-radius:12px;background:rgba(98,224,160,.14);color:#9ee8c4;font-size:11px;font-weight:800;display:inline-flex;align-items:center;gap:5px}
#shBody .s313-mlanes{display:flex;gap:6px}
#shBody .s313-mlane{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px;padding:8px;border-radius:12px;background:var(--bg);border-top:2px solid var(--t)}
#shBody .s313-mhead{display:flex;align-items:center;gap:5px;min-width:0}
#shBody .s313-mhead i{width:18px;height:18px;border-radius:6px;font-size:10px}
#shBody .s313-mhead b{font-size:11px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#shBody .s313-mhead small{margin-left:auto;font-size:10px;font-weight:800;color:var(--t)}
#shBody .s313-avs{display:flex;align-items:center;min-height:34px}
#shBody .s313-av{width:34px;height:34px;border-radius:17px;border:2px solid #0c1324;margin-left:-12px}
#shBody .s313-av:first-child{margin-left:0}
#shBody .s313-more{display:flex;align-items:center;justify-content:center;background:#1b2442;font-size:11px;font-weight:800}
#shBody .s313-none{font-size:11px;color:#8f9ab8}
#shBody .s313-new{width:100%;min-height:52px!important;font-size:15px!important;display:flex;align-items:center;justify-content:center;gap:8px}
/* 2. Éditeur : champ de bataille */
#shBody .s313-top{display:flex;align-items:center;gap:10px}
#shBody .s313-back{all:unset;box-sizing:border-box;cursor:pointer;width:44px;height:44px;border-radius:22px;flex:none;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.16)}
#shBody .s313-top>span{flex:1;min-width:0;display:flex;flex-direction:column}
#shBody .s313-top>span b{font-size:17px;font-weight:800}
#shBody .s313-top>span small{font-size:12px;color:var(--rb-mut2,#a9b3cc)}
#shBody .s313-namerow{display:flex;gap:8px}
#shBody .s313-name{flex:1;min-width:0;height:44px;border-radius:14px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.16);display:flex;align-items:center;gap:8px;padding:0 12px;box-sizing:border-box}
#shBody .s313-name small{font-size:11px;font-weight:800;color:#8f9ab8}
body.sos-b #shBody .s313-name input{flex:1;min-width:0;height:100%!important;min-height:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;font:700 15px var(--rb-font,inherit)!important;color:var(--rb-text,#eef1fb)!important}
#shBody .s313-sug{flex:none;min-height:44px!important;display:inline-flex;align-items:center;gap:6px;background:rgba(255,255,255,.07)!important;border:1px solid rgba(255,255,255,.18)!important;color:var(--rb-text,#eef1fb)!important;font-weight:700!important}
#shBody .s313-sug svg{color:#ffd38a}
#shBody .s313-field{position:relative;border-radius:22px;overflow:hidden;border:1px solid rgba(255,255,255,.12);background:radial-gradient(ellipse at 70% 0%,rgba(120,30,50,.35),transparent 55%),#070b18}
#shBody .s313-enemy{position:relative;height:66px;overflow:hidden}
#shBody .s313-enemy img{position:absolute;right:-40px;top:-30px;width:300px;height:150px;object-fit:cover;opacity:.9}
#shBody .s313-enemy::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(40,6,12,.96) 30%,rgba(60,10,18,.55) 70%,rgba(60,10,18,.2))}
#shBody .s313-enemy-copy{position:absolute;left:14px;top:12px;z-index:1;display:flex;flex-direction:column;gap:2px}
#shBody .s313-enemy-copy small{font-size:10.5px;font-weight:800;letter-spacing:.16em;color:#ff9aa5}
#shBody .s313-enemy-copy b{font-size:14px}
#shBody .s313-enemy-arrows{position:absolute;right:16px;bottom:8px;z-index:1;display:flex;gap:8px;color:#ff9aa5}
#shBody .s313-lane{position:relative;display:flex;gap:10px;padding:12px 12px 10px;background:linear-gradient(90deg,var(--bg),rgba(10,16,32,.55) 60%);border-top:1px solid rgba(255,255,255,.12)}
#shBody .s313-lane::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--t)}
#shBody .s313-lane.is-target::after{content:"";position:absolute;inset:6px;border-radius:16px;border:2px dashed var(--t);pointer-events:none}
#shBody .s313-rail{width:58px;flex:none;display:flex;flex-direction:column;align-items:flex-start;gap:4px}
#shBody .s313-rail i{width:30px;height:30px;border-radius:10px;font-size:15px}
#shBody .s313-rail b{font-size:12px;letter-spacing:.06em;text-transform:uppercase}
#shBody .s313-rail span{display:flex;align-items:center;gap:4px;font-size:12px;font-weight:800;color:var(--t)}
#shBody .s313-rail small{font-size:10px;color:var(--rb-mut2,#a9b3cc)}
#shBody .s313-lanebody{flex:1;min-width:0;display:flex;flex-direction:column;gap:8px}
#shBody .s313-toks{display:flex;flex-wrap:wrap;gap:10px 8px;min-height:82px}
#shBody .s313-empty{align-self:center;font-size:12px;color:#8f9ab8}
#shBody .s313-tok{all:unset;box-sizing:border-box;cursor:pointer;width:72px;display:flex;flex-direction:column;align-items:center;gap:4px;transition:transform .15s,opacity .15s}
#shBody .s313-tokart{position:relative;width:72px;height:52px;border-radius:14px;overflow:hidden;box-shadow:0 0 0 1.5px var(--t);display:block}
#shBody .s313-tokimg{width:100%;height:100%}
#shBody .s313-n{position:absolute;right:4px;bottom:4px;z-index:2;height:18px;padding:0 6px;border-radius:7px;background:rgba(5,7,15,.86);font-size:11px;font-weight:800;line-height:18px}
#shBody .s313-hint{position:absolute;left:4px;top:4px;z-index:2;height:16px;padding:0 5px;border-radius:6px;background:rgba(5,7,15,.86);border:1px solid var(--t);color:var(--t);font-size:9.5px;font-weight:800;font-style:normal;line-height:14px}
#shBody .s313-tokname{font-size:11px;font-weight:700;text-align:center;line-height:1.15;max-width:78px}
#shBody .s313-tok.on{transform:translateY(-4px) scale(1.06)}
#shBody .s313-tok.on .s313-tokart{box-shadow:0 0 0 3px #ffb454,0 0 22px rgba(255,180,84,.55)}
#shBody .s313-tok.on .s313-tokname{color:#ffd38a}
#shBody .s313-tok.dim{opacity:.45}
#shBody .s313-tok:focus-visible .s313-tokart{outline:2px solid var(--rb-cyan,#8ee6f4);outline-offset:2px}
#shBody .s313-tot{display:flex;flex-wrap:wrap;gap:4px 12px;font-size:11px;color:#c3cbe3}
#shBody .s313-tot span{display:flex;align-items:center;gap:4px}
#shBody .s313-tot span:first-child svg{color:#ff9aa5}#shBody .s313-tot span:nth-child(2) svg{color:#8ee6f4}
#shBody .s313-drop{all:unset;box-sizing:border-box;cursor:pointer;position:absolute;right:14px;top:50%;transform:translateY(-50%);z-index:4;height:38px;padding:0 14px;border-radius:19px;background:var(--t);color:#10131f;display:flex;align-items:center;gap:6px;font-size:13px;font-weight:900;box-shadow:0 6px 18px rgba(0,0,0,.45)}
#shBody .s313-drop:focus-visible{outline:2px solid #fff;outline-offset:2px}
#shBody .s313-hintline{display:flex;align-items:center;gap:6px;padding:0 4px}
#shBody .s313-hintline svg{color:#8ee6f4}
#shBody .s313-extra{display:flex;gap:8px;flex-wrap:wrap}
#shBody .s313-extra .btn{flex:1 1 auto;display:inline-flex;align-items:center;justify-content:center;gap:6px}
/* barre du bas : enregistrer, ou déplacer le type sélectionné */
#shBody .s313-bar{position:sticky;bottom:0;z-index:6;margin-top:4px}
body.sos-b:has(#shBody .s313-editor) #chatFab{display:none!important}
#shBody .s313-save{display:flex;gap:10px;padding:10px;border-radius:24px;background:#0a0f1e!important;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.1);box-shadow:0 -8px 24px rgba(0,0,0,.45)}
#shBody .s313-save .btn{min-height:50px!important;font-size:15px!important}
#shBody .s313-save .btn.s{flex:1}#shBody .s313-save .btn:not(.s){flex:2}
#shBody .s313-move{display:flex;flex-direction:column;gap:10px;padding:12px;border-radius:22px;background:#0e1528;border:1px solid rgba(255,180,84,.45);box-shadow:0 -10px 30px rgba(0,0,0,.5)}
#shBody .s313-move-head{display:flex;align-items:center;gap:10px}
#shBody .s313-moveimg{width:56px;height:40px;border-radius:10px}
#shBody .s313-move-head>span{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
#shBody .s313-move-head b{font-size:15px}
#shBody .s313-move-head small{font-size:12px;color:var(--rb-mut2,#a9b3cc)}
#shBody .s313-move-head em{font-style:normal;font-weight:800;color:var(--t)}
#shBody .s313-x{all:unset;box-sizing:border-box;cursor:pointer;width:36px;height:36px;border-radius:18px;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.07);font-size:20px}
#shBody .s313-move-btns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
#shBody .s313-mbtn{all:unset;box-sizing:border-box;cursor:pointer;min-height:54px;border-radius:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;padding:4px;border:1.5px solid rgba(255,255,255,.16);border-top:3px solid var(--t);background:rgba(255,255,255,.04);text-align:center}
#shBody .s313-mbtn b{font-size:13px;font-weight:800;color:var(--t)}
#shBody .s313-mbtn small{font-size:10.5px;color:#c3cbe3}
#shBody .s313-mbtn.on{background:var(--bg);border-color:var(--t)}
#shBody .s313-mbtn:focus-visible,#shBody .s313-x:focus-visible,#shBody .s313-back:focus-visible{outline:2px solid var(--rb-cyan,#8ee6f4);outline-offset:2px}
/* 4. Départ de flotte : colonnes */
#shBody .s313-depart{gap:10px;margin:4px 0 8px}
#shBody .s313-dhead{display:flex;align-items:center;gap:8px}
#shBody .s313-dhead b{font-size:15px}
#shBody .s313-chips{display:flex;flex-wrap:wrap;gap:6px}
#shBody .s313-chip{all:unset;box-sizing:border-box;cursor:pointer;height:36px;padding:0 14px;border-radius:18px;display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:700;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.14)}
#shBody .s313-chip.on{background:#ffb454;border-color:#ffb454;color:#221403;font-weight:800}
#shBody .s313-chip:focus-visible{outline:2px solid var(--rb-cyan,#8ee6f4);outline-offset:2px}
#shBody .s313-dcols{display:flex;gap:6px}
#shBody .s313-dcol{flex:1;min-width:0;display:flex;flex-direction:column;gap:7px;padding:8px;border-radius:14px;background:linear-gradient(180deg,var(--bg),rgba(10,16,32,.6));border-top:3px solid var(--t)}
#shBody .s313-dcolhead{display:flex;align-items:center;gap:5px}
#shBody .s313-dcolhead i{width:20px;height:20px;border-radius:6px;font-size:11px}
#shBody .s313-dcolhead b{font-size:11px;text-transform:uppercase}
#shBody .s313-ditem{display:flex;align-items:center;gap:6px;min-width:0}
#shBody .s313-dimg{width:40px;height:28px;border-radius:7px}
#shBody .s313-ditem>span{min-width:0;display:flex;flex-direction:column}
#shBody .s313-ditem b{font-size:11px;line-height:1.1;overflow:hidden;text-overflow:ellipsis}
#shBody .s313-ditem small{font-size:10.5px;font-weight:800;color:var(--t)}
#shBody .s313-dtot{margin-top:auto;font-size:10px;color:#c3cbe3}
/* Ordinateur */
body.sos-b.sos-pc #shBody .s313-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
body.sos-b.sos-pc #shBody .s313-list>.s313-intro,body.sos-b.sos-pc #shBody .s313-list>.s313-new,body.sos-b.sos-pc #shBody .s313-list>.s313-caption{grid-column:1/-1}
body.sos-b.sos-pc #shBody .s313-list>.s313-new{max-width:420px;justify-self:center}
body.sos-b.sos-pc #shBody .s313-bar{bottom:0}
body.sos-b.sos-pc #shBody .s313-tok{width:96px}
body.sos-b.sos-pc #shBody .s313-tokart{width:96px;height:68px}
body.sos-b.sos-pc #shBody .s313-tokname{max-width:100px;font-size:12px}
body.sos-b.sos-pc #shBody .s313-rail{width:76px}
body.sos-b.sos-pc #shBody .s313-enemy{height:76px}
body.sos-b.sos-pc #shBody .s313-enemy img{width:520px;height:200px;right:-20px;top:-60px}
body.sos-b.sos-pc #shBody .s313-av{width:40px;height:40px;border-radius:20px}
body.sos-b.sos-pc #shBody .s313-dimg{width:56px;height:38px}
body.sos-b.sos-pc #shBody .s313-ditem b{font-size:12.5px}
#shBody .s313-move-head>.s313-moveimg{flex:none;width:56px;height:40px}
#shBody .s313-ditem>.s313-dimg{display:block}
/* Téléphone : l'éditeur occupe tout l'écran (comme la maquette), barre du bas du jeu masquée */
body.sos-b:not(.sos-pc):has(#shBody .s313-editor) #tabs,body.sos-b:not(.sos-pc):has(#shBody .s313-editor) #shNav,body.sos-b:not(.sos-pc):has(#shBody .s313-editor) #shBody>.rb-pagehead{display:none!important}
body.sos-b:not(.sos-pc):has(#shBody .s313-editor) #shBody{padding-bottom:calc(14px + env(safe-area-inset-bottom))!important}
