/* Touch-first layout; desktop keeps its existing presentation. */
@media(max-width:700px){
  body{font-size:15px;line-height:1.45}
  button,input,select{min-height:48px}
  input,select,textarea{font-size:16px}
  textarea{min-height:130px}
  label{font-size:14px}
  button{touch-action:manipulation}
  aside{position:sticky;top:0;z-index:20;padding:10px 12px;box-shadow:0 3px 12px #0002}
  aside .brand{font-size:17px;padding:0 0 6px;gap:9px}
  aside .brand-icon{width:30px;height:30px;font-size:21px}
  aside .brand small{margin-top:2px}
  nav{gap:5px;padding:3px 0;scrollbar-width:thin;overscroll-behavior-x:contain}
  nav a{font-size:13px;min-height:44px;align-items:center;padding:10px 12px;margin:0;flex-shrink:0}
  .workspace{padding:0 12px}
  header{padding:14px 0;gap:10px}
  header h1{font-size:23px}
  .account{justify-content:space-between;gap:8px}
  .account span{display:block;font-size:12px;overflow-wrap:anywhere;flex:1 1 100%}
  .account button{font-size:14px;min-height:44px;flex:1;padding:10px}
  .shift-picker{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:14px 0}
  .shift-picker label{width:auto;font-size:13px;min-width:0}
  .shift-picker button{grid-column:1/-1;font-size:14px;min-height:44px}
  .shift-context{display:block;grid-column:1/-1;margin:0;font-size:13px}
  .panel{padding:16px 12px}
  .notice{font-size:14px;padding:12px}
  .toolbar{gap:12px}
  .toolbar input{max-width:none;flex:1 1 100%;min-width:0}
  .toolbar .push{margin-left:0}
  .hourly-item{padding:17px;gap:10px;border-radius:10px;min-width:0}
  .hourly-item strong{font-size:18px;line-height:1.4}
  .hourly-item small{font-size:13px}
  .hourly-time{font-size:23px}
  .hourly-item .badge{font-size:12px;padding:7px 10px}
  .terminal-tile{padding:20px;gap:12px}
  .terminal-tile strong{font-size:25px}
  .terminal-tile small,.terminal-tile span{font-size:14px}
  .terminal-hour-section .table-wrap{overflow:visible;max-height:none}
  .terminal-hour-section table,.terminal-hour-section tbody{display:block;width:100%}
  .terminal-hour-section thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .terminal-hour-section tr{display:block;background:#f7faf5;border:1px solid var(--line);border-radius:9px;margin:12px 0;padding:15px}
  .terminal-hour-section td{display:block;padding:0;border:0;overflow-wrap:anywhere}
  .terminal-hour-section td+td{margin-top:12px}
  .terminal-component{font-size:21px}
  .terminal-hour-section td small{font-size:13px;line-height:1.5;margin-top:8px}
  .terminal-operation{width:100%;font-size:16px;min-height:48px;margin-top:12px}
  .terminal-hour-section .badge{font-size:13px}
  .table-wrap{overscroll-behavior:contain}
  dialog[open]{position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:none;max-height:90vh;max-height:90dvh;border-radius:18px 18px 0 0;padding:20px 16px calc(16px + env(safe-area-inset-bottom));overflow-y:auto;overscroll-behavior:contain}
  .modal-head{gap:12px;align-items:flex-start;margin-bottom:18px}
  .modal-head h2{font-size:21px;line-height:1.35}
  .modal-head button{min-width:44px;min-height:44px}
  .form-actions{position:sticky;bottom:0;background:white;padding:14px 0 4px;gap:12px;z-index:2}
  .form-actions button{flex:1;font-size:15px;min-width:0;white-space:normal;min-height:48px}
  .auth-card{padding:28px 22px}
  .auth-card p{font-size:14px}
  #toast{left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));font-size:14px}
  .admin-tabs{gap:8px}
  .admin-tabs button{font-size:13px;min-height:44px}
}
