/* MINIMALLOW · phone layer (2026-11-01). Desktop is untouched: every rule is inside a max-width query. */
@media (max-width:760px){
  body{-webkit-tap-highlight-color:rgba(10,45,68,.1)}
  .wrap{padding:0 1.25rem}

  /* compact sticky header: brand and one swipeable row of links */
  .hdr .wrap{display:block;min-height:0;padding-top:.7rem;padding-bottom:0}
  .brand{display:inline-flex;flex-direction:column;justify-content:center;min-height:44px}
  .nav{flex-wrap:nowrap;gap:1.2rem;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;margin:0 -1.25rem;padding:0 1.25rem}
  .nav::-webkit-scrollbar{display:none}
  .nav a{flex:none;display:flex;align-items:center;min-height:44px;font-size:.7rem;letter-spacing:.14em}

  /* readable small print (≥ 11px) */
  .label,.form label,.fld,.kpi span,.card .top,.card .du small,.toolbar .count,th,.foot .wrap{font-size:.7rem;letter-spacing:.12em}
  .pill{font-size:.72rem;padding:.3rem .62rem}
  .surface .num,.brand small,.btn{font-size:.7rem}
  .btn.small{font-size:.68rem}
  .note{font-size:.86rem}

  /* no zoom-on-focus in iOS Safari */
  input,select,textarea,td input,td select{font-size:16px!important}

  /* thumb-sized controls */
  .btn,.btn.small{min-height:44px;padding:.7rem 1.1rem}
  summary{display:flex;align-items:center;min-height:44px}
  .chk{min-height:44px;align-items:center}
  .chk input,.form .inline input{width:22px;height:22px;flex:none;margin-top:0}
  .foot .wrap{gap:.9rem}
  .foot a{display:inline-flex;align-items:center;min-height:40px}
  .card .act .note,.card .act a{display:inline-flex;align-items:center;min-height:44px}

  /* sections */
  .hero{padding:2.2rem 0 1.8rem}
  .hero h1{font-size:clamp(2rem,9vw,2.6rem)}
  .sec{padding:2rem 0}
  .kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem}
  .kpi{padding:1rem}
  .kpi b{font-size:1.6rem}
  .form{grid-template-columns:minmax(0,1fr)}
  .toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem}
  .toolbar .fld{min-width:0}
  .toolbar .fld:last-of-type,.toolbar .count{grid-column:1 / -1}
  dialog{max-width:100vw;width:100%;margin:auto auto 0;border-radius:var(--r-lg) var(--r-lg) 0 0;max-height:92vh}
  dialog .in{padding:1.3rem 1.25rem 1.6rem}

  /* tables that become cards on a phone (rows carry data-label on each cell) */
  table.stack{min-width:0}
  table.stack thead{display:none}
  table.stack,table.stack tbody,table.stack tr,table.stack td{display:block;width:100%}
  table.stack tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem .9rem;padding:1rem 1.1rem;border-bottom:1px solid var(--rock-12)}
  table.stack tr:last-child{border-bottom:0}
  table.stack td{padding:0;border:0;text-align:left!important}
  table.stack td[data-label]::before{content:attr(data-label);display:block;font-family:var(--font-label);font-size:.66rem;font-weight:500;letter-spacing:.12em;text-transform:uppercase;color:var(--steel);margin-bottom:.2rem}
  table.stack td.wide{grid-column:1 / -1}
  table.stack td input,table.stack td select{max-width:none;width:100%;min-height:44px}
  table.stack td input[type=checkbox]{width:24px;min-height:24px;height:24px}
  table.stack td.noprint a{display:inline-flex;align-items:center;min-height:44px;padding:0 .2rem}
  .callout a.link{display:inline-block;padding:.55rem 0;margin:-.55rem 0}
  table.stack td.empty{grid-column:1 / -1}
  .tbl:has(table.stack){background:var(--foam-white)}
}
@media (max-width:360px){
  .kpis{grid-template-columns:minmax(0,1fr)}
  .toolbar{grid-template-columns:minmax(0,1fr)}
}
