/* Put the existing search/help controls beside the panel tiles under the header. */
.workspace-actions #panel-manager{align-items:center;flex-wrap:wrap}
body .workspace-actions #panel-manager-list{flex:0 1 auto}
.workspace-actions .workspace-command{flex:1 1 260px;min-width:0;display:flex;align-items:center;flex-wrap:nowrap;gap:6px;margin:0}
.workspace-command .fehu-rune{flex:none;width:20px;text-align:center;line-height:26px;font-size:23px}
.workspace-command .pulsix-search-form{flex:1;min-width:140px;margin:0;align-items:center}
.workspace-command input,.workspace-command button{height:26px;min-height:26px;padding:4px 8px;font-size:10px;line-height:16px}
.workspace-command #legend-help-toggle{flex:none}
.workspace-actions #restore-all{margin-left:auto}
@media(max-width:700px){
 body .workspace-actions #panel-manager-list{flex-basis:100%}
 .workspace-actions .workspace-command{flex-basis:220px}
 .workspace-command input,.workspace-command button{padding:4px 6px;font-size:9px}
 .workspace-command .pulsix-search-form{min-width:100px}
}

/* Keep return navigation beside MEDIA, visually separate from panel toggles. */
#panel-manager-list .media-return-group{display:inline-flex;align-items:center;flex:none;gap:6px;white-space:nowrap}
#panel-manager-list .grid-return-link{display:inline-flex;align-items:center;justify-content:center;min-height:26px;padding:4px 9px;border:1px solid #b9954a;border-left:3px solid #edc76c;border-radius:3px;background:linear-gradient(180deg,#302615,#17140d);color:#ffdf96;font-size:10px;font-weight:bold;line-height:16px;white-space:nowrap}
#panel-manager-list .grid-return-link:hover{border-color:#ffe3a2;background:#382d18;color:#fff2ca}
#panel-manager-list .grid-return-link:focus-visible{outline:2px solid #edc76c;outline-offset:2px}
@media(max-width:700px){#panel-manager-list .grid-return-link{padding:3px 7px;font-size:9px}}

/* Halve the wide-screen command field; keep the compact mobile row usable. */
@media(min-width:701px){.workspace-command .pulsix-search-form{flex:0 1 50%}}


/* Reset is the first control. Keep the age display beside HELP in the command bar. */
.workspace-actions #restore-all{order:-1;display:inline-flex;align-items:center;justify-content:center;gap:4px;flex:none;margin:0 6px 0 0;position:relative;isolation:isolate;overflow:hidden;border-radius:4px;border-color:color-mix(in srgb,var(--cyan) 70%,transparent);box-shadow:0 0 7px color-mix(in srgb,var(--cyan) 30%,transparent);color:var(--cyan)}
.workspace-command .forteca-age{order:0;flex:0 1 250px;width:250px;min-width:210px;max-width:270px;grid-template-columns:repeat(6,minmax(0,1fr));gap:2px;padding:3px 5px;position:relative;isolation:isolate;overflow:hidden;border:1px solid color-mix(in srgb,var(--cyan) 70%,transparent);border-radius:4px;background:rgba(0,0,0,.78);box-shadow:0 0 7px color-mix(in srgb,var(--cyan) 30%,transparent);font-size:6px;line-height:1.15}
.workspace-command .forteca-age span{gap:2px;white-space:nowrap}
.workspace-command .forteca-age b{font-size:12px;line-height:1.1}
.workspace-command .forteca-age small{font-size:7px;line-height:1.1}
.workspace-command #legend-help-toggle{position:relative;isolation:isolate;overflow:hidden;border-radius:4px;border-color:color-mix(in srgb,var(--cyan) 70%,transparent);box-shadow:0 0 7px color-mix(in srgb,var(--cyan) 30%,transparent);color:var(--cyan);}
@property --forteca-neon-angle{syntax:"<angle>";inherits:false;initial-value:0deg}
@keyframes forteca-edge-flow{to{--forteca-neon-angle:360deg}}
.workspace-actions #restore-all::before,.workspace-command #legend-help-toggle::before,.workspace-command .forteca-age::before{content:"";position:absolute;inset:-1px;z-index:1;padding:1px;border-radius:inherit;background:conic-gradient(from var(--forteca-neon-angle),transparent 0deg 278deg,var(--cyan) 302deg,#fff 318deg,var(--pink) 337deg,var(--cyan) 348deg,transparent 360deg);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;pointer-events:none;animation:forteca-edge-flow 3.2s linear infinite}
.workspace-actions #restore-all:hover,.workspace-command #legend-help-toggle:hover{border-color:var(--cyan);box-shadow:0 0 11px color-mix(in srgb,var(--cyan) 48%,transparent)}
@media(max-width:1100px){.workspace-actions .workspace-command{flex-basis:100%}}
@media(max-width:700px){.workspace-actions .workspace-command{flex-wrap:wrap;gap:5px}.workspace-command .pulsix-search-form{flex:1 1 100%;min-width:100px}.workspace-command .forteca-age{flex:1 1 220px;width:auto;min-width:190px;max-width:none}.workspace-command #legend-help-toggle{flex:none}}
@media(prefers-reduced-motion:reduce){.workspace-actions #restore-all::before,.workspace-command #legend-help-toggle::before,.workspace-command .forteca-age::before{animation:none}.workspace-actions #restore-all,.workspace-command #legend-help-toggle,.workspace-command .forteca-age{box-shadow:0 0 8px color-mix(in srgb,var(--cyan) 38%,transparent)}}

.workspace-command #legend-help-toggle::before{animation-delay:-1.1s}

.workspace-actions #restore-all i{font-size:9px}

.workspace-command .forteca-age::before{animation-delay:-2s}

/* Remove the age caption row and match the HELP control height. */
.workspace-command .forteca-age{height:26px;min-height:26px;max-height:26px;box-sizing:border-box;padding:1px 5px;align-items:center}
.workspace-command .forteca-age #age-source{display:none}

/* Keep the five former panel links beside HELP; only the search field yields space. */
.workspace-actions .workspace-command{flex:1 1 auto}
.workspace-command .pulsix-search-form{flex:1 1 180px;min-width:115px;max-width:none}
.workspace-command .forteca-age{flex:none}
.workspace-command .workspace-quick-links{display:flex;align-items:center;gap:5px;flex:none;white-space:nowrap}
.workspace-quick-links a{display:inline-flex;align-items:center;justify-content:center;gap:5px;height:26px;box-sizing:border-box;padding:3px 7px;border:1px solid color-mix(in srgb,var(--cyan) 70%,transparent);border-radius:4px;background:rgba(0,0,0,.78);color:var(--cyan);font-size:10px;font-weight:700;text-decoration:none;box-shadow:0 0 7px color-mix(in srgb,var(--cyan) 25%,transparent)}
.workspace-quick-links a:hover,.workspace-quick-links a:focus-visible{border-color:var(--cyan);background:rgba(0,45,58,.9);outline:2px solid transparent;box-shadow:0 0 10px color-mix(in srgb,var(--cyan) 48%,transparent)}
.workspace-quick-links a i{font-size:14px}
.workspace-quick-links a[title="Tip4Serv"] i{color:#89ecad}
.workspace-quick-links a[title="Steam"] i{color:#b4d2ee}
.workspace-quick-links a[title="Back to Intro"] i{color:#e8c675}
.workspace-quick-links a[title="Send"] i{color:#48ddcf}
@media(max-width:1500px){.workspace-quick-links a{padding:3px 5px;gap:3px}.workspace-command .pulsix-search-form{min-width:100px}}
@media(max-width:1250px){.workspace-actions .workspace-command{flex-wrap:wrap}.workspace-command .workspace-quick-links{flex-wrap:wrap;white-space:normal}.workspace-command .pulsix-search-form{flex:1 1 160px}}
@media(max-width:700px){.workspace-command .pulsix-search-form{flex:1 1 100%;max-width:none}.workspace-command .workspace-quick-links{width:100%}.workspace-quick-links a{min-height:30px;height:auto}}

/* Keep the existing MEDIA destination beside NETWORK and the Fehu rune. */
.workspace-actions .toolbar-media-link{display:inline-flex;align-items:center;justify-content:center;gap:4px;flex:none;min-height:26px;box-sizing:border-box;padding:4px 9px;border:1px solid #b89c55;border-radius:6px;background:var(--panel-soft);color:#fff;text-decoration:none;font:700 10px/16px system-ui,sans-serif;white-space:nowrap}
.workspace-actions .toolbar-media-link i{color:#f978cf;font-size:11px}
.workspace-actions .toolbar-media-link:hover,.workspace-actions .toolbar-media-link:focus-visible{border-color:#eac775;box-shadow:0 0 8px #eac77555;outline:none}

/* Keep MEDIA and Fehu together when the toolbar wraps. */
.workspace-actions .toolbar-media-pair{display:inline-flex;align-items:center;gap:6px;flex:none;white-space:nowrap}
.workspace-actions .toolbar-media-pair .fehu-rune{display:inline-block;flex:none;width:20px;height:26px;text-align:center;line-height:26px;font-size:23px}
