/* Warsha v9.2 web layout. Below 768px nothing changes (phone layout). */
.sitefoot{display:none}
@media (min-width:768px){
  html{background:var(--cream)}
  body{max-width:none; box-shadow:none; background:var(--cream); padding-bottom:56px}
  /* top navigation bar */
  .appbar{position:sticky; top:0; z-index:60; height:68px; display:flex; align-items:center; border-radius:0; box-shadow:0 2px 14px rgba(0,0,0,.12); padding:0 max(24px,calc((100vw - 1240px)/2 + 32px))}
  .appbar-title{width:100%; font-size:1.3rem}
  .appbar-title .optbtn{margin-inline-start:auto}
  .tabbar{position:fixed; top:0; bottom:auto; left:0; right:0; height:68px; max-width:none; width:auto; margin:0; padding:0; border-radius:0; background:none !important; box-shadow:none !important; border:0; backdrop-filter:none; display:flex; flex-direction:row; justify-content:center; align-items:center; gap:4px; z-index:70; pointer-events:none}
  .tabbtn{pointer-events:auto; flex:none; flex-direction:row; gap:8px; padding:9px 14px; border-radius:12px; color:rgba(255,255,255,.82); background:none}
  .tabbtn span{font-size:.92rem; font-weight:700}
  .tabbtn svg{width:18px; height:18px}
  .tabbtn:hover{background:rgba(255,255,255,.14); color:#fff}
  .tabbtn.active{background:rgba(255,255,255,.22); color:#fff}
  .tabbtn.active svg{transform:none}
  .tabbtn.active span{font-weight:900}
  /* page content */
  main{max-width:1240px; margin:0 auto; padding:0 32px 24px}
  .page-h{margin:0 0 28px; padding:40px 0 26px; font-size:2.4rem; background:color-mix(in srgb,var(--h1) 9%,var(--cream)); box-shadow:0 0 0 100vmax color-mix(in srgb,var(--h1) 9%,var(--cream)); clip-path:inset(0 -100vmax)}
  .page-h small{font-size:1.05rem; margin-top:8px}
  .stats{grid-template-columns:repeat(4,1fr)}
  .size-row{flex-wrap:wrap}
  .size-row .info{flex:1 1 150px}
  /* single-column forms stay readable, centred */
  .tool,#tab-quotes>*,#tab-briefs>*,#tab-account>*:not(.page-h){max-width:860px; margin-inline:auto}
  #tab-quotes>.page-h,#tab-briefs>.page-h,#tab-account>.page-h{max-width:none; margin-inline:0}
  #acOut.card{max-width:560px}
  .spage-bar{padding-inline:max(16px,calc((100vw - 860px)/2))}
}
@media (min-width:768px){#tab-account{max-width:none}}

@media (min-width:768px){
  /* rows always fill the container: tiles and cards share the full width, no gaps, no loose card */
  .tgrid,#sizeList,#clientList,#savedQuotes,#savedBriefs{display:flex; flex-wrap:wrap; gap:16px; margin-top:0}
  .tgrid>.tile{flex:1 1 200px; margin:0}
  #sizeList>*,#clientList>*,#savedQuotes>*,#savedBriefs>*{flex:1 1 340px; margin:0; min-width:0}
  #sizeList>.empty-note,#clientList>.empty-note,#savedQuotes>.empty-note,#savedBriefs>.empty-note{flex-basis:100%}
  .tgrid .tile:last-child:nth-child(odd){display:flex; flex-direction:column; align-items:flex-start}
  .tgrid .tile:last-child:nth-child(odd) .tile-ic{grid-row:auto}
  .chips{flex-wrap:wrap; overflow:visible}
  /* navbar: logo | equal-width links centred as one group | settings */
  .tabbar{padding-inline:calc(max(24px,(100vw - 1240px)/2 + 32px) + 110px); gap:6px}
  .tabbtn{flex:1 1 0; max-width:150px; justify-content:center; padding:9px 8px}
  .tabbtn svg{display:none}
  .tabbtn span{white-space:nowrap; font-size:.85rem}
  #tab-quotes>.page-h,#tab-briefs>.page-h,#tab-account>.page-h{text-align:center}
  /* sticky footer */
  body{min-height:100vh; display:flex; flex-direction:column; padding-bottom:0}
  main{width:100%; flex:1 0 auto}
  .sitefoot{display:block; margin-top:48px; background:color-mix(in srgb,var(--h1) 9%,var(--cream)); border-top:1px solid var(--bd,#0001)}
  .sitefoot-in{max-width:1240px; margin:0 auto; padding:28px 32px; display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; color:var(--muted); font-size:.9rem; font-weight:600}
  .sitefoot b{color:var(--ink); font-weight:900}
  .sitefoot nav{display:flex; gap:20px; flex-wrap:wrap}
  .sitefoot button{background:none; border:0; padding:4px 0; font:inherit; color:var(--muted); cursor:pointer}
  .sitefoot button:hover{color:var(--ink)}
  body.auth-gated .sitefoot{display:none}
}
@media (min-width:1100px){
  .tabbtn svg{display:block; width:18px; height:18px}
  .tabbtn span{font-size:.92rem}
  .tabbtn{gap:8px}
}
@media print{.sitefoot{display:none !important}}
