html[dir=rtl] .header,html[dir=rtl] .project-rail,html[dir=rtl] .page-content{direction:rtl}html[dir=rtl] .scene-wrap,html[dir=rtl] .hc-viewport,html[dir=rtl] canvas{direction:ltr}html[dir=rtl] .hc-sidebar,html[dir=rtl] .hc-settings,html[dir=rtl] .capscene-label{direction:rtl}html[dir=rtl] input[type=number],html[dir=rtl] input[type=email],html[dir=rtl] input[type=tel]{direction:ltr}html[dir=rtl] .menu a,html[dir=rtl] label{text-align:start}@media(max-width:1300px){.header nav{gap:3px}}@media(max-width:700px){.header-actions{gap:4px}}

.header nav{min-width:0;max-width:calc(100vw - 630px);overflow-x:auto;scrollbar-width:none}.header nav a{flex-shrink:0}.market .actions,.market-head{flex-wrap:wrap}.market select,.market input{max-width:100%;min-width:0}.market-card{min-width:0;overflow-wrap:anywhere}@media(max-width:700px){.header{max-width:100vw;box-sizing:border-box}.header .brand strong{display:none}.header .brand{min-width:0}.header .header-actions{min-width:0}.header #account-button{max-width:80px;overflow:hidden;text-overflow:ellipsis}.market-head{display:block}.market .actions{gap:6px}.market-head h1{font-size:28px}.market-filters{grid-template-columns:minmax(0,1fr)!important}.page-content{min-width:0;max-width:100%;box-sizing:border-box}.market{min-width:0}}

/* Language is a quiet utility alongside the existing header actions. */
html:root body #language-select {
  appearance:none!important;-webkit-appearance:none!important;
  height:44px;min-height:44px;min-width:132px;max-width:180px;width:auto;
  box-sizing:border-box;flex:0 0 auto;border:1px solid var(--cap-border,#b7c7bd);
  border-radius:var(--ui-radius-control,8px)!important;background-color:var(--cap-surface,#f3f7f4)!important;
  color:var(--cap-ink,#20372e)!important;font:500 13px/1.25 "Golos Text",sans-serif!important;
  letter-spacing:0;cursor:pointer;padding:0 30px 0 38px!important;
  background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23315747%22%20stroke-width%3D%221.65%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%2F%3E%3Cpath%20d%3D%22M3%2012h18M12%203a18%2018%200%200%201%200%2018%2018%2018%200%200%201%200-18Z%22%2F%3E%3C%2Fsvg%3E"),url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20stroke%3D%22%23315747%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m4%206%204%204%204-4%22%2F%3E%3C%2Fsvg%3E")!important;
  background-repeat:no-repeat!important;background-size:18px 18px,12px 12px!important;
  background-position:left 12px center,right 10px center!important;
  transition:background-color .15s ease,border-color .15s ease;
}
html:root body #language-select:hover{background-color:var(--cap-control,#e4eee7)!important;border-color:var(--cap-focus,#227e68)}
html:root body #language-select:focus-visible{outline:2px solid var(--cap-focus,#227e68);outline-offset:3px}
html:root body #language-select:disabled{opacity:.55;cursor:wait}
html[dir=rtl]:root body #language-select{padding:0 38px 0 30px!important;background-position:right 12px center,left 10px center!important}
@media(max-width:480px){
 html:root body.ui-system .header{flex-wrap:wrap;height:auto;min-height:64px;padding-block:10px;gap:8px}
 html:root body.ui-system .header .brand{flex-basis:100%;line-height:20px}
 html:root body.ui-system .header .brand strong{display:block;font-size:13px;letter-spacing:.12em}
 html:root body.ui-system .header-actions{width:100%;justify-content:space-between;gap:6px}
 html:root body #language-select{min-width:124px;font-size:13px!important;padding-inline:34px 26px!important;background-position:left 10px center,right 8px center!important}
 html[dir=rtl]:root body #language-select{padding-inline:34px 26px!important;background-position:right 10px center,left 8px center!important}
 html:root body.ui-system #account-button{min-width:48px;padding-inline:8px}
}
@media(prefers-reduced-motion:reduce){html:root body #language-select{transition:none}}

@media(min-width:1281px) and (max-width:1500px){html:root body.ui-system .header nav.glass-control-bar a{padding-inline:6px!important}}
@media(min-width:1281px) and (max-width:1500px){html:root body.ui-system .header nav .glass-tab-icon{display:none}}
