/* ImgMach shared layout v4. Canonical source: salwks/imgmach/shared-layout.css.
   Deploy the identical file in every service. Do not customize header or rail geometry locally. */
header.machine-header{box-sizing:border-box;height:64px;min-height:64px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 32px;background:#fff;border-bottom:1px solid #e1e6f0}
header.machine-header .brand{flex:0 0 auto;display:inline-flex;align-items:center;gap:4px;font-family:Arial,sans-serif;font-size:22px;font-weight:700;line-height:1.2;letter-spacing:-1px;color:#0e142b;background:none;border:0;padding:0;text-decoration:none;white-space:nowrap;min-width:0;max-width:100%}
header.machine-header .brand span{color:#2e67ff}
header.machine-header .machine-header-actions{display:flex;align-items:center;justify-content:flex-end;flex:0 0 auto;gap:12px;margin:0 0 0 auto;padding:0;min-width:0}
header.machine-header .machine-language,header.machine-header .machine-tools>summary{box-sizing:border-box;display:flex;align-items:center;gap:6px;border:1px solid #e1e6f0;border-radius:8px;padding:0 8px;color:#64748b;height:36px;background:#fff;font:12px Arial,sans-serif;cursor:pointer}
header.machine-header .machine-language{flex:none;min-width:0;margin:0;align-self:center}
header.machine-header .machine-language svg{flex:none}
header.machine-header #language-select{font:12px Arial,sans-serif;max-width:115px;padding:6px 2px;border:0;background:white;color:#0e142b;cursor:pointer;min-height:0}
header.machine-header .machine-tools{display:block;position:relative;align-self:center;flex:none;box-sizing:border-box;height:36px;min-height:36px;margin:0;padding:0;border:0}
header.machine-header .machine-tools>summary{list-style:none;white-space:nowrap;margin:0;min-height:36px;max-height:36px;justify-content:center}
header.machine-header .machine-tools>summary::-webkit-details-marker{display:none}
header.machine-header .machine-tools>nav{position:absolute;right:0;top:calc(100% + 6px);z-index:1100;min-width:190px;background:#fff;border:1px solid #e1e6f0;border-radius:8px;padding:4px;box-shadow:0 8px 24px #0e142b20;display:grid;gap:2px}
header.machine-header .machine-tools:not([open])>nav{display:none}
header.machine-header .machine-tools a{display:block;padding:9px 12px;border-radius:4px;font:13px Arial,sans-serif;color:#0e142b;text-decoration:none;white-space:nowrap}
header.machine-header .machine-tools a:hover,header.machine-header .machine-tools a:focus-visible{background:#eef4ff;color:#2e67ff}
header.machine-header .machine-tools a[aria-current=page]{font-weight:700;color:#2e67ff}
header.machine-header .machine-tools a[aria-current=page]:after{content:'✓';float:right;margin-left:10px}
@media(max-width:600px){header.machine-header{padding:0 10px;gap:4px}header.machine-header .brand{font-size:clamp(11px,3.3vw,17px);letter-spacing:-.65px;gap:2px}header.machine-header .machine-header-actions{gap:6px}header.machine-header .machine-language{gap:2px;padding:0 3px}header.machine-header .machine-language svg{width:13px}header.machine-header #language-select{max-width:72px;font-size:11px}header.machine-header .machine-tools>summary{font-size:11px;padding:0 6px;gap:3px}}
main.home{position:relative;box-sizing:border-box}
.home-side-banner{display:none;position:absolute;top:24px;width:160px;height:600px;box-sizing:border-box;align-items:center;justify-content:center;flex-direction:column;gap:4px;border:1px dashed #dce2ec;border-radius:8px;background:#f6f7fa;color:#9aa3b3;font-size:10px;letter-spacing:1px;overflow:hidden}
.home-side-banner small{font-size:10px;letter-spacing:0}
.home-side-banner.left{right:calc(100% + 16px)}
.home-side-banner.right{left:calc(100% + 16px)}
@media(min-width:744px) and (max-width:1279px){
  main.home{width:calc(100% - 272px);max-width:1120px;margin-inline:auto}
  .home-side-banner.left,.home-side-banner.right{display:flex;width:120px}
  .home-side-banner.left{right:calc(100% + 8px)}
  .home-side-banner.right{left:calc(100% + 8px)}
  .home-side-banner small{display:none}
  .home-side-banner::after{content:"120 × 600";font-size:10px;letter-spacing:0}
}
@media(min-width:1280px){
  main.home{width:calc(100% - 384px);max-width:1120px;margin-inline:auto}
  .home-side-banner.left,.home-side-banner.right{display:flex}
}
@media(min-width:744px) and (max-width:1023px){
  .home .hero-layout{grid-template-columns:minmax(0,1fr);gap:22px}
  .home .gallery-grid,.home .tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home .print-layout{grid-template-columns:minmax(0,1fr)}
  .home .print-view{grid-row:1}
  .home .print-controls{border-right:0;border-top:1px solid var(--line,#e1e6f0)}
}
