/* Quiet preferences beside market connection status on the homepage. */
.market-utilities{display:flex;align-items:center;justify-content:flex-end;gap:16px;min-width:0;letter-spacing:0}
.hero-preferences{display:flex;align-items:center;gap:3px;flex-shrink:0;color:var(--muted)}
.hero-preferences .guanshi-sound-controls,.hero-preferences .appearance-control{display:flex;align-items:center;position:relative;margin:0;flex:0 0 auto}
.hero-preferences .guanshi-sound-controls{order:1}.hero-preferences .appearance-control{order:2}
.hero-preferences .guanshi-sound-toggle,.hero-preferences .appearance-toggle{display:grid;place-items:center;width:28px;height:28px;min-height:28px;flex:0 0 28px;margin:0;padding:5px;border:1px solid transparent;border-radius:5px;background:transparent;color:var(--muted,#7c8276);cursor:pointer;transition:background .15s,color .15s,border-color .15s}
.hero-preferences .guanshi-sound-toggle svg,.hero-preferences .appearance-toggle svg{display:block;width:17px;height:17px;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.hero-preferences .guanshi-sound-toggle[aria-pressed=true]{color:var(--blue,#486652)}
.hero-preferences .guanshi-sound-toggle:hover,.hero-preferences .guanshi-sound-toggle:focus-visible,.hero-preferences .appearance-toggle:hover,.hero-preferences .appearance-toggle[aria-expanded=true]{color:var(--text,#303d34);background:var(--panel2,#ecefe5);border-color:var(--line,#dddfd3)}
.hero-preferences button:focus-visible{outline:1px solid var(--muted);outline-offset:3px}
/* Keep popup padding outside the native range so its thumb reaches both ends. */
.hero-preferences .guanshi-sound-volume-panel{position:absolute;z-index:12;right:0;top:calc(100% + 6px);bottom:auto;display:flex;align-items:center;box-sizing:border-box;width:144px;height:36px;padding:7px 10px;border:1px solid var(--line,#dddfd3);border-radius:7px;background:var(--panel,#fafaf4);box-shadow:0 5px 18px #111a2010;opacity:0;visibility:hidden;transition:opacity .15s}
.hero-preferences .guanshi-sound-volume{display:block;box-sizing:border-box;width:100%;min-width:0;height:20px;padding:0;margin:0;border:0;border-radius:0;background:transparent;accent-color:var(--blue,#486652);cursor:ew-resize;touch-action:none}
.hero-preferences .guanshi-sound-controls:after{content:"";position:absolute;top:100%;right:0;width:144px;height:6px}
.hero-preferences .guanshi-sound-volume-panel[hidden]{display:none}
.hero-preferences .guanshi-sound-controls:hover .guanshi-sound-volume-panel,.hero-preferences .guanshi-sound-controls:focus-within .guanshi-sound-volume-panel,.hero-preferences .guanshi-sound-controls.is-adjusting .guanshi-sound-volume-panel{opacity:1;visibility:visible}
@media(max-width:480px){.market-utilities{gap:6px}.hero-preferences{gap:0}.hero-preferences .guanshi-sound-toggle,.hero-preferences .appearance-toggle{width:26px;height:28px;flex-basis:26px}.hero-preferences .guanshi-sound-toggle svg,.hero-preferences .appearance-toggle svg{width:16px;height:16px}.market-heading{gap:8px}.market-utilities .connection{gap:4px;font-size:9px}}
@media(prefers-reduced-motion:reduce){.hero-preferences button,.hero-preferences .guanshi-sound-volume-panel{transition:none}}

/* The shared content utility row keeps preferences out of navigation everywhere. */
.page-preferences-row{width:100%;min-height:28px;margin:0 0 8px;box-sizing:border-box;justify-content:flex-end}
.hero-preferences .guanshi-sound-volume-panel{overflow:visible}
.hero-preferences .guanshi-sound-volume{box-shadow:none;font:inherit;vertical-align:middle}
.hero-preferences .guanshi-sound-toggle:before,.hero-preferences .guanshi-sound-toggle:after{content:none}
