.icon-btn.danger {
  color: #bd3e48;
  border-color: #f2cdd1;
  background: #fff7f8;
}

.gate-tabs{display:none}

@media (max-width:760px){
  .main{padding:14px 12px 32px}
  .topbar{height:58px;padding:0 12px}
  .topbar h1{font-size:16px}
  .topbar p{font-size:10px}
  .page-head{margin-bottom:14px;gap:8px}
  .page-head h2{font-size:23px;margin-top:3px}
  .page-head p{font-size:12px;line-height:1.4}
  .card{border-radius:12px;margin-bottom:12px}
  .card-head{padding:13px 14px}
  .card-body{padding:12px}
  .btn{min-height:44px}
  .stats{gap:8px;margin-bottom:12px}
  .stat b{font-size:24px;margin-top:8px}
  .table{min-width:720px}
  .modal-layer{padding:0;place-items:end center}
  .modal{width:100%;max-height:96dvh;border-radius:18px 18px 0 0}
  .modal-head{padding:15px 16px;position:sticky;top:0;background:#fff;z-index:2}
  .modal-head h3{font-size:17px}
  .close{width:40px;height:40px;font-size:22px}
  .modal-body{padding:16px}
  .modal-foot{position:sticky;bottom:0;background:#fff;padding:12px 16px calc(12px + env(safe-area-inset-bottom));z-index:2}
  .modal-foot .btn{flex:1;min-height:52px}
}

@media (max-width:760px){
  body.porter-mode{background:#eef3f0}
  body.porter-mode .shell{display:block}
  body.porter-mode .side{display:none}
  body.porter-mode .mobile-menu{display:none}
  body.porter-mode .topbar{justify-content:space-between;background:#12362f;color:#fff;border:0}
  body.porter-mode .topbar p{color:#bcd0c8}
  body.porter-mode .main{padding:10px 10px calc(24px + env(safe-area-inset-bottom))}
  body.porter-mode .page-head{display:block;margin:2px 2px 10px}
  body.porter-mode .page-head .eyebrow{display:none}
  body.porter-mode .page-head h2{font-size:20px;margin:0}
  body.porter-mode .page-head p{margin:4px 0 0;font-size:11px}
  body.porter-mode .plate-search{position:sticky;top:66px;z-index:8;margin:0 0 10px;padding:14px;border-radius:14px;box-shadow:0 8px 24px rgba(18,54,47,.18)}
  body.porter-mode .plate-search h3{font-size:14px;margin-bottom:3px}
  body.porter-mode .plate-search p{font-size:10px;margin-bottom:10px}
  body.porter-mode .plate-search .search input{height:58px;padding:10px 12px 10px 40px;font-size:24px;text-align:center;letter-spacing:.16em;border-radius:11px}
  body.porter-mode .search:before{top:12px;font-size:24px}
  body.porter-mode .gate-tabs{display:grid;grid-template-columns:1fr 1fr;gap:5px;background:#dde7e2;padding:4px;border-radius:12px;margin-bottom:10px}
  body.porter-mode .gate-tab{border:0;border-radius:9px;padding:11px 8px;background:transparent;color:#52645d;font-size:12px;font-weight:800}
  body.porter-mode .gate-tab.active{background:#fff;color:#12362f;box-shadow:0 2px 8px rgba(18,54,47,.08)}
  body.porter-mode .gate-grid{display:block}
  body.porter-mode .gate-panel{display:none}
  body.porter-mode .gate-panel.active{display:block}
  body.porter-mode .gate-panel .card-head{padding:12px 13px}
  body.porter-mode .gate-panel .card-head h3{font-size:14px}
  body.porter-mode .gate-panel .card-body{padding:9px}
  body.porter-mode .schedule-list{gap:7px}
  body.porter-mode .schedule-item{grid-template-columns:58px minmax(0,1fr);gap:9px;padding:10px;border-radius:10px;background:#fff}
  body.porter-mode .schedule-time{padding-right:8px}
  body.porter-mode .schedule-time b{font-size:14px}
  body.porter-mode .schedule-main{min-width:0}
  body.porter-mode .schedule-main b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}
  body.porter-mode .schedule-main p{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10px}
  body.porter-mode .schedule-item>.actions,body.porter-mode .schedule-item>.badge{grid-column:1/-1}
  body.porter-mode .schedule-item .actions .btn{width:100%;min-height:42px}
  body.porter-mode [data-gate-panel="forecast"] .schedule-item>.actions{display:none}
  body.porter-mode .notice{font-size:11px;margin-bottom:9px}
  body.porter-mode .detail-grid{grid-template-columns:1fr 1fr;gap:10px}
  body.porter-mode .detail small{font-size:9px}
  body.porter-mode .detail b{font-size:12px;overflow-wrap:anywhere}
  body.porter-mode .modal-body{padding:14px}
  body.porter-mode .modal-foot{display:grid;grid-template-columns:1fr 1fr}
  body.porter-mode .modal-foot .btn:only-child{grid-column:1/-1}
}
