/* Responsive layer: mobile stays compact and never widens the viewport. */
html,body{max-width:100%;overflow-x:hidden}main{width:100%;max-width:1180px}.card{min-width:0}.hero{flex-wrap:wrap}.hero .button{white-space:nowrap}.card:has(table){overflow-x:auto}.table-tools{flex-wrap:wrap}.table-tools input{flex:1 1 220px}.table-tools select{flex:0 1 180px}
@media(max-width:992px){main{padding-left:18px;padding-right:18px}.twocol{grid-template-columns:1fr}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero h1{font-size:32px}}
@media(max-width:576px){
  body{font-size:14px;line-height:1.45}
  header{height:auto;min-height:54px;padding:9px 14px;gap:8px;align-items:center}
  .brand{font-size:17px}header nav{gap:10px;font-size:12px}nav span{max-width:110px}
  main{padding:18px 12px 42px}.hero{margin-bottom:14px;gap:10px}.hero h1{font-size:25px;line-height:1.15}.hero p{font-size:13px}
  .card{padding:14px 12px;border-radius:12px;margin:14px 0}.card h2{font-size:16px;margin-bottom:12px}
  .grid{grid-template-columns:1fr;gap:10px}.grid button,.grid .button{width:100%;min-height:42px}
  label{font-size:12px}input,select,button{min-height:40px;padding:9px 10px;font-size:16px}.button{min-height:40px;padding:9px 12px}
  .auth{width:calc(100% - 24px);margin:4vh auto;padding:20px 16px;border-radius:14px}.auth h1{font-size:25px}
  .modal{padding:10px}.modal-box{padding:18px 14px;max-height:calc(100vh - 20px);overflow-y:auto}
  .table-tools{display:grid;grid-template-columns:minmax(0,1fr) 105px;gap:7px;margin:0 0 12px}
  .table-tools input,.table-tools select{width:100%;max-width:none!important;min-height:36px!important;height:36px;margin:0;padding:5px 8px;font-size:13px}
  .table-tools select{font-size:12px}.card table{font-size:12px;min-width:510px}.card:has(table){margin-left:0;margin-right:0}
  th,td{padding:9px 6px}.edit-link,button.danger{white-space:nowrap;font-size:11px}.notice{font-size:13px;padding:10px 12px}
}
