/* Space of Steresia Reborn 6.3.12. Nouvelle hierarchie visuelle. Styles cumulatifs en dernier. */
/* Quetes : plateau compact inspire de la reference, mais conserve le theme Steresia. */
#shBody .sos632-quest-board{padding:12px;margin:0 0 16px;border:1px solid rgba(95,181,219,.32);border-radius:15px;background:linear-gradient(145deg,rgba(21,41,66,.92),rgba(12,21,37,.97));box-shadow:0 6px 25px rgba(0,0,0,.14)}
#shBody .sos632-quest-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px}
#shBody .sos632-quest-head .sos619-inline-heading{display:flex;align-items:center;gap:6px;min-width:0}
#shBody .sos632-quest-head h3{font-size:16px;font-weight:750;margin:0;color:#ecf6ff}
#shBody .sos632-quest-head .sos619-help-btn{width:26px;height:26px;flex-basis:26px;min-width:26px;font-size:15px}
#shBody .sos632-quest-count{color:#9addf0;font-size:14px;font-variant-numeric:tabular-nums}
#shBody .sos632-rewards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:0 0 7px}
#shBody .sos632-reward{appearance:none;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;min-height:65px;border-radius:10px;border:1px solid rgba(119,154,196,.38);background:linear-gradient(135deg,#20334e,#111d31);color:#ecf7ff;text-align:center;box-shadow:inset 0 1px 0 rgba(255,255,255,.07);padding:7px 3px;text-decoration:none}
#shBody button.sos632-reward{cursor:pointer}
#shBody button.sos632-reward:disabled{opacity:.67;cursor:default}
#shBody .sos632-reward-pict{font-size:25px;line-height:1.15;filter:drop-shadow(0 2px 3px rgba(0,0,0,.35))}
#shBody .sos632-reward-need{font-size:11px;font-weight:750;color:#e2ebf5}
#shBody .sos632-reward.is-ticket{background:linear-gradient(135deg,rgba(77,57,118,.77),#1d243d)}
#shBody .sos632-reward.is-ready{border-color:#fbd187;box-shadow:0 0 0 1px rgba(255,194,93,.17),inset 0 0 16px rgba(234,169,69,.14);animation:sos632RewardGlow 2.4s ease-in-out infinite}
#shBody .sos632-reward.is-claimed{border-color:rgba(100,204,159,.32);background:rgba(26,70,64,.4);color:#a2eacd}
#shBody .sos632-reward.is-claimed .sos632-reward-pict{font-size:27px;color:#72e4b2}
#shBody .sos632-rewards-track{height:5px;border-radius:8px;overflow:hidden;background:rgba(4,12,27,.82);margin-bottom:12px}
#shBody .sos632-rewards-track span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#41a9c7,#60e2bf);transition:width .25s ease}
#shBody .sos632-quest-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;align-items:stretch}
#shBody .sos632-quest-tile{position:relative;min-width:0;display:flex;flex-direction:column;gap:7px;min-height:103px;padding:9px;border:1px solid rgba(120,165,213,.24);border-radius:10px;background:rgba(19,31,50,.85);box-shadow:inset 0 1px 0 rgba(255,255,255,.04)}
#shBody .sos632-quest-tile.is-ready{border-color:rgba(252,197,95,.72);background:linear-gradient(145deg,rgba(75,55,28,.65),rgba(31,34,45,.94))}
#shBody .sos632-quest-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;min-height:36px;font-size:12.6px;line-height:1.4;font-weight:700;color:#e7f1ff;overflow-wrap:anywhere}
#shBody .sos632-quest-footer{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:3px;color:#bad0e5;font-size:11px;margin-top:auto}
#shBody .sos632-quest-progress{font-variant-numeric:tabular-nums;font-weight:650}
#shBody .sos632-quest-gold{display:inline-flex;align-items:center;gap:4px;font-weight:800;color:#ffe0a1;white-space:nowrap}
#shBody .sos632-quest-track{height:4px;overflow:hidden;border-radius:6px;background:#0a1425}
#shBody .sos632-quest-track i{display:block;height:100%;width:0;background:linear-gradient(90deg,#42abcf,#58dfcf);border-radius:6px}
#shBody .sos632-quest-tile.is-ready .sos632-quest-track i{background:#ffcc81}
#shBody .sos632-quest-claim{appearance:none;border:1px solid rgba(255,213,130,.77);border-radius:8px;background:linear-gradient(125deg,#e6a34f,#ffd887);color:#251a0d;font-size:11.5px;font-weight:800;min-height:28px;padding:3px 6px}
#shBody .sos632-quest-complete{padding:18px 10px;text-align:center;color:#74dfb1;font-weight:700;font-size:13px}
#shBody .sos632-ach-list{grid-template-columns:1fr}
@keyframes sos632RewardGlow{50%{box-shadow:0 0 0 2px rgba(250,203,118,.3),0 0 16px rgba(255,198,112,.15)}}
/* Les raccourcis remplacent les grandes cartes du haut d'Ingenierie. */
#shBody .sos632-base-tools{display:flex;align-items:stretch;gap:6px;flex-wrap:nowrap;margin:0 0 10px;position:relative;isolation:isolate;z-index:3}
#shBody .sos632-base-tools .sos632-tool{flex:1 1 0;min-width:0;position:relative;border:1px solid rgba(105,159,198,.37);border-radius:9px;background:rgba(22,43,64,.9);color:#e6f2ff;font-size:12px;font-weight:700;margin:0;padding:0;text-align:left;box-shadow:none;white-space:nowrap}
#shBody .sos632-tool>summary,#shBody .sos632-tool-job{list-style:none;min-height:38px;display:flex;align-items:center;justify-content:center;gap:5px;padding:7px 5px;cursor:pointer}
#shBody .sos632-tool>summary::-webkit-details-marker{display:none}
#shBody .sos632-tool-icon{font-size:16px;line-height:1;color:#a7ebf1}
#shBody .sos632-tool b{font-size:11px;color:#b1e0f2;white-space:nowrap}
#shBody .sos632-tool[open]{z-index:6;border-color:#68d2e8}
#shBody .sos632-tool .sos-collapse-content{position:absolute;top:calc(100% + 6px);left:0;width:min(380px,calc(100vw - 34px));max-height:min(59vh,490px);overflow-y:auto;z-index:9;border:1px solid rgba(101,199,225,.51);border-radius:12px;background:#142339;box-shadow:0 18px 30px rgba(0,0,0,.55);padding:12px;white-space:normal}
#shBody .sos632-base-tools .sos632-tool:last-child .sos-collapse-content{left:auto;right:0}
#shBody .sos632-tool .sos-collapse-content p{font-size:12px;line-height:1.5;color:#c0d5e7}
#shBody .sos632-tool .sos619-inline-heading{justify-content:space-between;align-items:center;margin:0 0 8px}
#shBody .sos632-tool .sos53-specs{grid-template-columns:1fr;max-height:38vh;overflow-y:auto}
#shBody .sos632-tool-job{appearance:none;flex-basis:auto;cursor:pointer}
/* Le changement d'ere a sa propre premiere affiche et un bouton d'aide non imbrique. */
#shBody .sos632-era-feature,#shBody .sos632-event-wrap{position:relative;min-width:0}
#shBody .sos632-era-feature{margin:10px 0 11px}
#shBody .sos632-era-open{position:relative;isolation:isolate;width:100%;overflow:hidden;display:flex;min-height:122px;border-radius:12px;align-items:center;text-align:left;padding:10px 15px;background:linear-gradient(110deg,#182b4b,#2c2356 70%,#11172b);border:1px solid rgba(165,123,228,.45);color:#fff;cursor:pointer}
#shBody .sos632-era-art,#shBody .sos632-era-fog{position:absolute;inset:0;pointer-events:none;z-index:-1}
#shBody .sos632-era-art{background:radial-gradient(circle at 81% 50%,rgba(170,99,225,.62),transparent 47%)}
#shBody .sos632-era-art img{height:100%;width:100%;object-fit:cover}
#shBody .sos632-era-fog{background:linear-gradient(90deg,rgba(6,12,31,.96),rgba(11,21,42,.7) 55%,rgba(11,21,42,.07))}
#shBody .sos632-era-copy{display:flex;flex-direction:column;align-items:flex-start;gap:6px;text-shadow:0 2px 8px rgba(0,0,0,.7);padding-right:40px}
#shBody .sos632-era-copy>small{font-size:11px;color:#d2b7ff;font-weight:750}
#shBody .sos632-era-copy>b{font-size:clamp(15px,3vw,22px);line-height:1.12}
#shBody .sos632-era-timer{font-size:13px;color:#ffe0a3}
#shBody .sos632-era-locked{color:#ffb9b9}
#shBody .sos632-era-feature>.sos619-help-btn,#shBody .sos632-event-wrap>.sos619-help-btn{position:absolute;z-index:3;top:9px;right:9px;width:30px;height:30px;min-width:30px;border:1px solid rgba(169,219,244,.74);background:rgba(6,19,43,.88);color:#e9f9ff;box-shadow:0 2px 9px rgba(0,0,0,.4)}
#shBody .sos632-event-wrap>.sos619-help-btn{top:7px;right:7px}
#shBody .sos632-event-wrap .sos633-event-info{padding-right:45px}
#shBody .sos632-event-wrap .sos633-event-info small{max-width:55ch;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#shBody .sos633-events-title>span{display:none}
/* Raid : rouge profond translucide, pas de rouge opaque ni de clignotement du texte. */
#shBody .sos636-raid-alert{background:linear-gradient(120deg,rgba(153,34,57,.43),rgba(65,18,36,.36));backdrop-filter:blur(7px);border:1px solid rgba(255,102,125,.67);border-left:4px solid #ed6074;box-shadow:inset 0 1px 0 rgba(255,220,226,.09),0 5px 14px rgba(46,1,16,.18);border-radius:11px;padding:10px 11px}
#shBody .sos636-raid-alert strong{font-size:13px;color:#fff0f1}
#shBody .sos636-raid-alert span{font-size:12px;color:#ffd9e0}
#shBody .sos636-raid-btn{font-size:11px;background:rgba(148,35,56,.4)!important;border:1px solid rgba(255,171,183,.54)!important;min-height:32px}
.sos637-raid-sign{background:linear-gradient(125deg,rgba(129,29,49,.84),rgba(31,13,32,.9));backdrop-filter:blur(9px);border-color:rgba(249,111,126,.82);box-shadow:0 5px 23px rgba(30,0,15,.42)}
/* Details longs : aides a la demande, visibles sans monopoliser l'espace. */
#shBody .sos632-auto-help{display:inline-flex;align-items:center;justify-content:flex-start;margin:3px 0 5px}
#shBody .sos632-auto-help .sos619-help-btn{height:26px;min-width:26px;width:26px;font-size:14px}
/* Ressources gagnees ou perdues dans les courriers, rapports et contrats. */
.sos632-resource-icon{display:inline-block;vertical-align:-3px;flex:none;width:17px;height:17px;border-radius:5px;border:1px solid rgba(177,195,228,.42);background-color:#233b56;background-position:center;background-size:cover;background-repeat:no-repeat;margin-right:3px;box-shadow:0 0 8px rgba(0,0,0,.18)}
.sos632-resource-ferrite{background-image:var(--sos-art-ferrite)}
.sos632-resource-prismite{background-image:var(--sos-art-prismite)}
.sos632-resource-nebulium{background-image:var(--sos-art-nebulium)}
.sos632-resource-or{background-image:var(--sos-art-or);border-color:rgba(255,209,122,.63)}
.sos632-resource-energie{background-image:var(--sos-art-energie)}
.sos632-mail-inline-resource{display:inline-flex;gap:3px;align-items:center;white-space:nowrap;padding:1px 4px;border:1px solid rgba(117,163,201,.28);border-radius:6px;background:rgba(14,28,48,.6);vertical-align:middle;margin:1px 2px}
.sos632-mail-inline-resource .sos632-resource-icon{width:16px;height:16px;margin-right:0}
.sos632-mail-inline-resource b{font-size:12px;font-weight:800}
.sos632-mail-inline-resource b.dn{color:#ffaaa5}
.sos632-mail-inline-resource b.up{color:#92e6bd}
.sos632-mail-inline-resource small{font-size:10px;color:#cce4f7}
.sos617-mail-resource .sos632-resource-icon{width:23px;height:23px;position:relative;z-index:2;margin:0}
.sos617-mail-prose .sos632-mail-note summary{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:28px;border-radius:50%;border:1px solid #6bb7dc;color:#d5f5ff;background:rgba(35,98,135,.42);font-size:17px;font-weight:800;cursor:pointer;list-style:none}
.sos617-mail-prose .sos632-mail-note summary::-webkit-details-marker{display:none}
.sos617-mail-prose .sos632-mail-note p{margin-top:9px;white-space:pre-line;line-height:1.55}
.sos617-mail-entry-copy p{display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
@media(max-width:650px){
 #shBody .sos632-quest-board{padding:9px 8px;margin-bottom:11px;border-radius:11px}
 #shBody .sos632-quest-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 #shBody .sos632-quest-tile{min-height:100px;padding:7px;gap:6px}
 #shBody .sos632-quest-name{font-size:12px;min-height:32px}
 #shBody .sos632-reward{min-height:61px;gap:3px}
 #shBody .sos632-reward-pict{font-size:23px}
 #shBody .sos632-reward-need{font-size:10px}
 #shBody .sos632-quest-head h3{font-size:15px}
 #shBody .sos632-base-tools{gap:5px}
 #shBody .sos632-base-tools .sos632-tool{font-size:11px}
 #shBody .sos632-tool b{font-size:10px}
 #shBody .sos632-tool-icon{font-size:15px}
 #shBody .sos632-era-open{min-height:109px;padding:8px 11px}
 #shBody .sos632-era-copy{gap:4px}
 #shBody .sos632-era-feature>.sos619-help-btn{right:8px;top:8px}
 #shBody .sos636-raid-alert{gap:7px}
 #shBody .sos636-raid-btn{flex:0 1 auto}
}
@media(max-width:350px){#shBody .sos632-base-tools .sos632-tool{font-size:10px}#shBody .sos632-tool-icon{font-size:13px}#shBody .sos632-quest-footer{font-size:10px}}
@media(prefers-reduced-motion:reduce){#shBody .sos632-reward.is-ready{animation:none}}

/* Une seule ligne pour les récompenses disponibles. */
#shBody .sos632-claims-strip{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 10px}
#shBody .sos632-claims-action{display:inline-flex;align-items:center;justify-content:center;gap:5px;appearance:none;border:1px solid rgba(232,183,87,.47);border-radius:9px;padding:8px 12px;min-height:35px;background:rgba(82,59,29,.35);color:#ffe1a8;font-weight:750;font-size:12px;cursor:pointer}
#shBody .sos632-claims-action:hover{background:rgba(120,84,36,.5)}
#shBody .sos632-tool .sos423-queue{margin:0 0 7px;padding:7px}
#shBody .sos632-tool .sos423-queue .sos423-queue-now{flex-wrap:wrap}

#shBody .sos632-auto-help{margin:0 0 0 7px;vertical-align:middle}
#shBody .sos632-auto-help .sos619-help-btn{vertical-align:middle}
.orbital-metric[hidden]{display:none!important}

/* Onglets quotidiens / hebdomadaires, evitent d'empiler trente quetes. */
#shBody .sos632-quest-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:0 0 9px}
#shBody .sos632-quest-tab{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:34px;background:rgba(20,45,65,.75);border:1px solid rgba(104,168,196,.35);color:#c7e3f2;border-radius:8px;font-weight:750;font-size:12.5px;cursor:pointer}
#shBody .sos632-quest-tab small{font-weight:700;color:#82b9d5}
#shBody .sos632-quest-tab.is-active{background:linear-gradient(130deg,rgba(21,96,124,.83),rgba(20,61,85,.9));border-color:#4dbecf;color:#fff;box-shadow:inset 0 -2px 0 #53d8dd}
