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

.gate-tabs{display:none}
.loading-skeleton{display:grid;gap:14px;padding:4px}.loading-skeleton span{display:block;height:92px;border-radius:14px;background:linear-gradient(90deg,#e8eeeb 20%,#f7faf8 45%,#e8eeeb 70%);background-size:300% 100%;animation:skeletonMove 1.1s ease-in-out infinite}.loading-skeleton span:first-child{height:54px}.loading-skeleton span:nth-child(3){height:160px}@keyframes skeletonMove{0%{background-position:100% 0}100%{background-position:0 0}}

@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}
}

/* MALMO Utilities */
.water-actions{display:flex;gap:10px;flex-wrap:wrap}.utility-tabs{display:flex;gap:8px;overflow:auto;margin:18px 0;padding:5px;background:#eef3f8;border-radius:14px}.utility-tabs button{border:0;background:transparent;padding:11px 16px;border-radius:10px;font-weight:700;white-space:nowrap;cursor:pointer;color:#486176}.utility-tabs button.active{background:#fff;color:#132f47;box-shadow:0 3px 12px #19364b18}.water-stats{margin-bottom:6px}.meter-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(285px,1fr));gap:14px;margin:14px 0 20px}.meter-card{background:#fff;border:1px solid #dfe8ef;border-left:5px solid #9aaaba;border-radius:16px;padding:17px;box-shadow:0 8px 26px #16344a0c}.meter-card.online{border-left-color:#20a464}.meter-card.atrasado{border-left-color:#e0a21a}.meter-card.offline{border-left-color:#d84b4b}.meter-card-top,.meter-foot{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.meter-card h3{margin:3px 0 0}.meter-card small,.meter-foot{color:#698092}.status-dot{font-size:12px;font-weight:800;background:#edf3f6;padding:6px 9px;border-radius:999px}.meter-values{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:18px 0}.meter-values div{background:#f6f9fb;padding:10px;border-radius:10px}.meter-values b,.meter-values small{display:block}.meter-values b{font-size:15px;margin-top:4px}.meter-foot{font-size:12px;border-top:1px solid #edf1f4;padding-top:12px}.usage-row{display:flex;justify-content:space-between;padding:12px 0;border-bottom:1px solid #edf1f4}.tariff-card{display:grid;grid-template-columns:1fr auto;gap:5px 15px;padding:14px;border:1px solid #e1e9ee;border-radius:12px;margin-bottom:10px}.tariff-card small,.tariff-card span{display:block;color:#6d8292}.tariff-card span{grid-column:1/-1}.alert-row{display:flex;justify-content:space-between;gap:15px;padding:15px;border-left:4px solid #7a9bb0;background:#f8fafb;border-radius:10px;margin-bottom:10px}.alert-row.alta{border-left-color:#d94a4a}.alert-row.media{border-left-color:#e5a526}.alert-row p{margin:5px 0}.alert-row small{color:#758896}.powered-malmo{text-align:center;color:#7b8c99;font-size:12px;padding:24px 0 6px;letter-spacing:.04em}.powered-malmo b{color:#273b4d}@media(max-width:700px){.meter-values{grid-template-columns:1fr}.utility-tabs{border-radius:10px}.meter-card-top,.meter-foot{flex-direction:column}}
