.terrain-shell{max-width:520px;margin:auto;background:#f4f8fb;min-height:calc(100vh - 130px);border-radius:22px;overflow:hidden;box-shadow:0 15px 40px rgba(7,26,54,.12);border:1px solid #dfe7ef}.terrain-head{background:white;padding:1rem 1.1rem;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.terrain-head img{width:105px;height:38px;object-fit:cover;object-position:center}.terrain-head b{font-size:1.05rem}.offline-bar{background:#c65b24;color:white;padding:.55rem 1rem;font-size:.72rem;font-weight:800}.terrain-body{padding:1rem}.agent-card{background:linear-gradient(130deg,#09243e,#075b72);color:white;border-radius:18px;padding:1rem;display:flex;gap:.8rem;align-items:center}.agent-avatar{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.17);font-weight:900}.agent-card small{display:block;color:#b9d3da;margin-top:.25rem}.goal-card,.sync-card{background:white;border:1px solid var(--line);border-radius:16px;padding:1rem;margin-top:1rem}.goal-top{display:flex;justify-content:space-between;font-size:.76rem;font-weight:800}.goal-top strong{color:#0797c2}.progress-track{height:8px;border-radius:9px;background:#e8edf2;margin-top:.8rem;overflow:hidden}.progress-fill{height:100%;width:30%;background:#0797c2}.terrain-label{font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;color:#657386;margin:1.3rem 0 .75rem}.terrain-kpis{display:grid;grid-template-columns:1fr 1fr;gap:.7rem}.terrain-kpi{background:white;border:1px solid var(--line);border-radius:16px;padding:1rem}.terrain-kpi span{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:#e9f4ff;color:#1471a7}.terrain-kpi b{display:block;font-size:1.55rem;margin:.7rem 0 .2rem}.terrain-kpi small{color:var(--muted)}.terrain-actions{display:grid;gap:.7rem}.terrain-action{border:1px solid var(--line);background:white;border-radius:16px;padding:.9rem;display:flex;align-items:center;gap:.8rem;text-align:left}.terrain-action.primary{background:#0797bd;color:white;border:0}.terrain-action i{font-style:normal;width:42px;height:42px;border-radius:11px;display:grid;place-items:center;background:#e7f5f9;font-size:1.2rem;color:#087a9a}.terrain-action.primary i{background:rgba(255,255,255,.18);color:white}.terrain-action b,.terrain-action small{display:block}.terrain-action small{opacity:.7;margin-top:.2rem}.terrain-action em{margin-left:auto;font-style:normal;font-size:1.2rem}.sync-card button{margin-top:.8rem;width:100%;border:0;border-radius:11px;background:#0797bd;color:white;padding:.8rem;font-weight:800}.terrain-tabs{position:sticky;bottom:0;background:white;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(5,1fr);padding:.6rem}.terrain-tabs button{border:0;background:white;color:#6f7d8c;font-size:.62rem}.terrain-tabs button span{display:block;font-size:1.15rem;margin-bottom:.2rem}.terrain-tabs button.active{color:#0797bd;font-weight:800}.mobile-form{display:grid;gap:.7rem}.mobile-form label{font-size:.72rem;font-weight:800}.mobile-form input,.mobile-form select{width:100%;padding:.8rem;border:1px solid #d5dfe8;border-radius:11px;margin-top:.35rem;background:white}.id-preview{background:#e8f7f2;border:1px solid #cce8df;border-radius:12px;padding:.9rem;color:#126c57}.switch-mobile{display:flex!important;justify-content:space-between;align-items:center;background:white;padding:.8rem;border-radius:12px}.switch-mobile input{width:18px;margin:0}.terrain-back{border:0;background:transparent;font-size:1.1rem}@media(max-width:780px){.terrain-shell{border-radius:0;min-height:calc(100vh - 70px);box-shadow:none}.terrain-body{padding:.9rem}.content-wrap:has(.terrain-shell){padding:0}}
.terrain-online{border:0;background:#e5f7ef;color:#16835e;border-radius:999px;padding:.35rem .55rem;font-size:.62rem;font-weight:900}.terrain-online.offline{background:#fff0e7;color:#a84c1f}.offline-bar.online{background:#14795d}.location-button{width:100%;border:1px solid #b8ddec;background:#e9f8ff;color:#087a9a;border-radius:11px;padding:.8rem;font-weight:900}.location-button:disabled{opacity:.55}.location-result{margin:-.25rem 0 .25rem;color:#64778b;font-size:.67rem}.scanner-box{position:relative;background:#061a2e;border-radius:18px;overflow:hidden;aspect-ratio:4/3;margin:1rem 0;color:white;display:grid;place-items:center}.scanner-box video{width:100%;height:100%;object-fit:cover}.scanner-box .scan-target{position:absolute;font-size:6rem;color:rgba(255,255,255,.76);text-shadow:0 0 20px #0797bd}.scanner-box p{position:absolute;left:0;right:0;bottom:0;margin:0;padding:.65rem;background:rgba(4,17,34,.78);text-align:center;font-size:.68rem}.control-card{margin-top:1rem;border-radius:16px;padding:1rem;background:white;border:1px solid var(--line)}.control-card.valid{border-top:5px solid #18a874}.control-card.danger{border-top:5px solid #d95662}.control-card>b{color:#13805b}.control-card.danger>b{color:#c94250}.control-card h3{margin:.75rem 0 .3rem}.control-card p{font-size:.75rem;line-height:1.65;color:#53677e}.control-card label{display:block;font-size:.7rem;font-weight:800;margin-top:.7rem}.control-card select,.control-card textarea{width:100%;margin-top:.35rem;padding:.75rem;border:1px solid #d5dfe8;border-radius:10px;background:white}.control-card .action-button{width:100%;margin-top:.85rem}.terrain-search{width:100%;box-sizing:border-box}@media(max-width:780px){.terrain-body{padding-bottom:5.3rem}.terrain-tabs{position:fixed;left:0;right:0;bottom:0;z-index:15;box-shadow:0 -8px 24px rgba(7,26,54,.09)}}
.merchant-photo-field{display:grid;gap:.65rem;padding:1rem;border:1px dashed #a9bfd8;border-radius:16px;background:#f7fbff}.merchant-photo-field input{padding:.75rem;background:#fff;border:1px solid #d6e0eb;border-radius:12px}.merchant-photo-preview{width:112px;height:112px;object-fit:cover;border-radius:16px;border:3px solid #fff;box-shadow:0 4px 18px rgba(8,42,83,.16)}.merchant-photo-field small{color:#62758b}.terrain-action i img{width:100%;height:100%;object-fit:cover;border-radius:11px}.control-merchant-photo{width:120px;height:120px;object-fit:cover;border-radius:18px;border:4px solid #fff;box-shadow:0 6px 22px rgba(8,42,83,.18);display:block;margin:0 auto 1rem}
.merchant-profile-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:1.2rem;margin-top:1rem;text-align:center}.merchant-profile-photo,.merchant-profile-placeholder{width:132px;height:132px;border-radius:22px;object-fit:cover;margin:0 auto 1rem;border:4px solid #fff;box-shadow:0 8px 25px rgba(8,42,83,.18)}.merchant-profile-placeholder{display:grid;place-items:center;background:#246bfd;color:#fff;font-size:2.6rem;font-weight:900}.merchant-profile-card h2{margin:.4rem 0}.merchant-profile-details{display:grid;grid-template-columns:1fr 1fr;gap:.7rem;text-align:left;margin:1.2rem 0}.merchant-profile-details>div{display:grid;gap:.25rem;padding:.75rem;border-radius:12px;background:#f4f8fb}.merchant-profile-details small{color:#75869a}.merchant-profile-details strong{font-size:.76rem;color:#132944}.merchant-profile-card>.action-button{width:100%}@media(max-width:420px){.merchant-profile-details{grid-template-columns:1fr}}
