/* FileSahi responsive polish — preserves the approved orange/white theme */
:root{--fs-orange:#F47721;--fs-orange-dark:#D95D0B;--fs-ink:#29231F;--fs-muted:#6B625C;--fs-border:#FFD3B5;--fs-soft:#FFF4EB}
*,*::before,*::after{box-sizing:border-box}
html{max-width:100%;overflow-x:clip;scroll-behavior:smooth}
body{max-width:100%;overflow-x:clip;margin:0}
img,video,canvas,svg,iframe{max-width:100%}
img,video{height:auto}
button,input,select,textarea{max-width:100%;font:inherit}
button,a,[role="button"]{-webkit-tap-highlight-color:transparent}
pre,code{white-space:pre-wrap;overflow-wrap:anywhere}
table{max-width:100%}
/* prevent long labels and URLs from pushing layouts wider than the screen */
h1,h2,h3,h4,p,a,button,label,span,td,th{overflow-wrap:anywhere}
/* Desktop: keep readable content width while allowing existing layouts to lead */
@media (min-width:1200px){
  body{font-size:16px}
  img{object-fit:contain}
}
/* Tablet and mobile */
@media (max-width:900px){
  .container,.wrap,.page-container,.main-container,.content-wrap,.section-inner{max-width:100%;width:100%;}
  input,select,textarea{min-width:0}
  button,a.button,.btn{touch-action:manipulation}
}
@media (max-width:640px){
  html{font-size:16px}
  body{font-size:15px}
  h1{font-size:clamp(1.7rem,7vw,2.45rem);line-height:1.12}
  h2{font-size:clamp(1.35rem,5.5vw,1.9rem);line-height:1.2}
  h3{font-size:clamp(1.05rem,4.4vw,1.35rem);line-height:1.25}
  p{line-height:1.55}
  input,select,textarea{width:100%;min-height:44px}
  button,.btn,a.button{min-height:42px}
  /* Data tables remain usable without expanding the page */
  table{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  /* Keep fixed overlays inside the viewport */
  dialog,[role="dialog"],.modal,.modal-content,.popup,.toast{max-width:calc(100vw - 24px)}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
