:root{--brand:#0f766e;--ink:#14213d;--muted:#64748b;--line:#e2e8f0;--soft:#f8fafc}
*{box-sizing:border-box}
body{margin:0;background:var(--soft);color:var(--ink);font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif}
a{text-decoration:none}
.app-shell{max-width:1180px;margin:0 auto;padding:22px 16px 96px}
.topbar{box-shadow:0 1px 8px rgba(15,23,42,.04)}
.quick-btn,.btn-primary{background:var(--brand);border-color:var(--brand)}
.page-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:10px 0 22px}
.page-head h1{font-size:34px;margin:0;font-weight:800;letter-spacing:0}
.page-head p{margin:4px 0 0;color:var(--muted)}
.compact h1{font-size:28px}
.quick-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:18px}
.quick-actions a,.stat-grid>div,.property-card,.login-card,.location-panel,.property-detail{background:#fff;border:1px solid var(--line);border-radius:8px}
.quick-actions a{padding:18px;font-weight:750;color:var(--ink)}
.stat-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-bottom:26px}
.stat-grid>div{padding:18px}.stat-grid span,.detail-grid span,.muted{display:block;color:var(--muted);font-size:13px}.stat-grid strong{font-size:30px}
.section-title{font-size:20px;margin:8px 0 14px}.desktop-table{background:#fff;border:1px solid var(--line);border-radius:8px;padding:4px}
.mobile-cards{display:none}.property-card{padding:14px;margin-bottom:12px}.property-card p{margin:10px 0;color:var(--muted)}.meta{font-size:14px}.price{font-size:20px;font-weight:800;margin-top:8px}.card-actions{display:flex;gap:14px;margin-top:10px}
.filter-bar{display:grid;grid-template-columns:2fr repeat(4,1fr) auto;gap:10px;margin-bottom:16px}
.listing-purpose-tabs{display:flex;gap:6px;margin:0 0 12px}.listing-purpose-tabs a{padding:8px 14px;border:1px solid var(--line);border-radius:6px;background:#fff;color:#475569;font-size:13px;font-weight:750}.listing-purpose-tabs a.active{background:#0f172a;border-color:#0f172a;color:#fff}
.page-kicker{display:block;color:var(--brand);font-size:11px;font-weight:850;margin-bottom:4px}.page-head.compact p{color:var(--muted);margin:5px 0 0}.mobile-readiness-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:16px}.readiness-card{display:flex;gap:13px;align-items:flex-start;background:#fff;border:1px solid var(--line);border-top:4px solid #f59e0b;border-radius:8px;padding:16px}.readiness-card.ready{border-top-color:#10b981}.readiness-card>svg{width:23px;height:23px;color:#d97706}.readiness-card.ready>svg{color:#059669}.readiness-card div{display:grid;min-width:0}.readiness-card span,.readiness-card small{color:var(--muted);font-size:12px}.readiness-card strong{font-size:16px;margin:2px 0 5px}.readiness-card small{overflow-wrap:anywhere}.mobile-deploy-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(400px,1.2fr);gap:16px}.install-panel{display:flex;align-items:center;gap:24px}.install-panel h2{margin:3px 0 8px}.install-panel p{color:var(--muted)}.install-panel .btn{display:inline-flex;align-items:center;gap:8px}.install-hint{display:block;color:var(--muted);margin-top:9px}.app-preview{flex:0 0 150px;aspect-ratio:10/16;border-radius:20px;background:#101d34;color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 16px 35px rgba(15,23,42,.2)}.app-preview-logo{display:grid;place-items:center;width:58px;height:58px;border-radius:14px;background:#14b8a6;font-size:25px;font-weight:900;margin-bottom:13px}.app-preview strong{font-size:18px}.app-preview small{color:#a8b6ca}.deployment-checklist ol{list-style:none;padding:0;margin:0;display:grid;gap:12px}.deployment-checklist li{display:flex;gap:11px;align-items:flex-start}.deployment-checklist li>span{display:grid;place-items:center;flex:0 0 30px;height:30px;border-radius:50%;background:#fef3c7;color:#92400e;font-weight:850}.deployment-checklist li.done>span{background:#dcfce7;color:#166534}.deployment-checklist li div{display:grid}.deployment-checklist li small{color:var(--muted)}.mobile-note{display:flex;align-items:center;gap:10px}.mobile-note svg{flex:0 0 auto}
.save-filter-bar{display:grid;grid-template-columns:1fr auto auto;gap:10px;margin:-6px 0 16px}
.quick-form{background:#fff;border:1px solid var(--line);border-radius:8px;padding:18px;display:grid;gap:14px}.quick-form label{font-weight:700;font-size:14px}.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.quick-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.login-wrap{min-height:100vh;display:grid;place-items:center}.login-card{width:min(420px,94vw);padding:30px}.login-card h1{font-size:36px;font-weight:850;margin:0}.login-card p{color:var(--muted)}
.location-layout{display:grid;grid-template-columns:1fr 360px;gap:16px;align-items:start}.location-create{background:#fff;border:1px solid var(--line);border-radius:8px;padding:16px;display:grid;gap:12px}.location-create h2{font-size:20px;margin:0}.location-create label{font-weight:700;font-size:14px}
.location-tree{list-style:none;margin:0;padding-left:12px}.location-tree li{margin:8px 0}.location-tree a{display:flex;justify-content:space-between;padding:10px 12px;color:var(--ink);border:1px solid var(--line);border-radius:8px;background:#fff}.location-tree span{color:var(--muted)}
.property-detail{padding:20px}.property-detail header{display:flex;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line);padding-bottom:16px}.price-block{text-align:right;font-size:24px;font-weight:850}.detail-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:18px 0}.detail-grid div{border:1px solid var(--line);border-radius:8px;padding:14px}.sticky-actions{position:sticky;bottom:14px;display:flex;gap:10px;justify-content:flex-end}
.quick-section{border:1px solid var(--line);border-radius:8px;padding:12px;background:#fbfdff}.quick-section summary{font-weight:800;cursor:pointer}.detail-check{display:flex;align-items:center;gap:8px;margin-top:28px}
.photo-uploader p{margin:8px 0 0;color:var(--muted);font-size:13px}.photo-drop{display:grid;place-items:center;min-height:120px;border:2px dashed #94a3b8;border-radius:8px;background:#fff;color:var(--brand);font-weight:850;cursor:pointer;text-align:center;padding:18px}.photo-drop input{display:none}.gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px}.gallery-card{border:1px solid var(--line);border-radius:8px;background:#fff;padding:8px}.gallery-item{position:relative;display:block;aspect-ratio:4/3;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:#f1f5f9}.gallery-item img{width:100%;height:100%;object-fit:cover}.gallery-item span{position:absolute;top:8px;left:8px;background:var(--brand);color:#fff;border-radius:999px;padding:3px 8px;font-size:12px}.caption-form{display:grid;grid-template-columns:1fr auto;gap:6px;margin-top:8px}.image-actions{display:flex;gap:6px;justify-content:space-between;margin-top:8px}.image-actions form{margin:0}.inline-upload{display:flex;gap:10px;align-items:center;margin-top:12px}
.activity-list{list-style:none;margin:0;padding:0}.activity-list li{display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid var(--line);padding:9px 0}.activity-list span{color:var(--muted);font-size:13px}
.voice-recorder{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.voice-recorder audio{min-width:260px;max-width:100%}.speech-status{font-size:13px;color:var(--muted);font-weight:750}
.voice-flow{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:12px}.voice-flow div{background:#fff;border:1px solid var(--line);border-radius:8px;padding:10px;text-align:center;font-weight:800;color:var(--brand)}
.voice-upload-form{display:grid;gap:10px;border:1px solid var(--line);border-radius:8px;padding:12px;background:#fff;margin-top:12px}.voice-note-list{display:grid;gap:10px}.voice-note-list article{background:#fff;border:1px solid var(--line);border-radius:8px;padding:12px}.voice-note-list audio{width:100%}.voice-note-list p{margin:8px 0}.voice-note-list span{display:block;color:var(--muted);font-size:12px;margin-bottom:8px}
.price-helper{align-self:end;border:1px solid var(--line);border-radius:8px;background:#f8fafc;color:var(--muted);font-size:13px;font-weight:750;padding:10px 12px}
.admin-grid{display:grid;grid-template-columns:330px 1fr;gap:16px;align-items:start}.inline-master{display:grid;grid-template-columns:minmax(150px,1fr) 90px 120px auto;gap:8px;align-items:center}
.custom-inline{grid-template-columns:minmax(130px,1fr) 110px 120px 100px 100px auto}.custom-value-grid strong{font-size:15px;white-space:normal}
.diagnostic-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.diagnostic-grid div{border:1px solid var(--line);border-radius:8px;padding:12px;background:#fff}.diagnostic-grid span{display:block;color:var(--muted);font-size:13px}.diagnostic-grid strong{font-size:18px}
.approval-badge{display:inline-block;border-radius:999px;padding:4px 10px;font-size:12px;font-weight:800;background:#e2e8f0;color:#334155}.approval-badge.pending{background:#fef3c7;color:#92400e}.approval-badge.rejected{background:#fee2e2;color:#991b1b}.approval-badge.approved{background:#dcfce7;color:#166534}.approval-panel{display:flex;gap:10px;align-items:center;background:#fff7ed;border:1px solid #fed7aa;border-radius:8px;padding:12px;margin:16px 0}.approval-panel form{display:flex;gap:8px}.notification-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;margin-bottom:20px}.notification-strip div{background:#fff;border:1px solid var(--line);border-radius:8px;padding:12px}.notification-strip span{display:block;color:var(--muted);font-size:12px;margin-top:4px}
.saved-filter-grid,.price-index-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}.saved-filter-card,.price-index-grid a{background:#fff;border:1px solid var(--line);border-radius:8px;padding:16px;color:var(--ink)}.saved-filter-card h2{font-size:18px;margin:0 0 6px}.saved-filter-card p{color:var(--muted);font-size:13px;min-height:38px;word-break:break-word}.price-index-grid a span{display:block;color:var(--muted)}.price-index-grid a strong{font-size:22px}
.mobile-nav{display:none}
.field-capture-head{margin-bottom:14px}.capture-ai-state{border:1px solid #f59e0b;background:#fffbeb;color:#92400e;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:800}.capture-ai-state.ready{border-color:#86efac;background:#f0fdf4;color:#166534}
.capture-progress{display:grid;grid-template-columns:repeat(6,1fr);gap:6px;margin-bottom:12px}.capture-progress button{min-width:0;border:1px solid var(--line);background:#fff;color:var(--muted);padding:8px 4px;font-size:12px;font-weight:750}.capture-progress button span{display:grid;place-items:center;width:24px;height:24px;margin:0 auto 3px;border-radius:50%;background:#e2e8f0;color:#334155}.capture-progress button.active{border-color:var(--brand);color:var(--brand)}.capture-progress button.active span{background:var(--brand);color:#fff}.capture-progress button.done span{background:#166534;color:#fff}
.capture-assistant{position:sticky;top:72px;z-index:10;display:grid;grid-template-columns:auto 1fr auto auto;gap:12px;align-items:center;background:#14213d;color:#fff;border:1px solid #253557;border-radius:8px;padding:13px 14px;margin-bottom:12px;box-shadow:0 8px 24px rgba(15,23,42,.14)}.assistant-pulse{width:13px;height:13px;border-radius:50%;background:#2dd4bf;box-shadow:0 0 0 6px rgba(45,212,191,.17)}.capture-assistant strong,.capture-assistant small{display:block}.capture-assistant strong{font-size:15px}.capture-assistant small{color:#cbd5e1;margin-top:2px}.assistant-label{display:block;color:#5eead4;font-size:11px;font-weight:850;text-transform:uppercase}.capture-assistant .btn{white-space:nowrap}
.field-capture-form{display:block}.capture-step{display:none;background:#fff;border:1px solid var(--line);border-radius:8px;padding:20px;min-height:390px}.capture-step.active{display:grid;gap:16px}.capture-section-head{display:flex;justify-content:space-between;align-items:start;border-bottom:1px solid var(--line);padding-bottom:13px}.capture-section-head span{display:block;color:var(--brand);font-size:12px;font-weight:850;text-transform:uppercase}.capture-section-head h2{font-size:22px;margin:2px 0 0}.capture-section-head>strong{color:#9a3412;background:#fff7ed;border:1px solid #fed7aa;padding:5px 8px;border-radius:6px;font-size:12px}.capture-hint{color:var(--muted);margin:0}.capture-label{font-weight:750}
.capture-record-panel{display:grid;grid-template-columns:auto auto 1fr;gap:10px;align-items:center;background:#f8fafc;border:1px solid var(--line);padding:14px;border-radius:8px}.capture-record-panel audio{grid-column:1/-1;width:100%;height:40px}.capture-record-button{display:flex;align-items:center;gap:9px;border:0;border-radius:8px;background:#b91c1c;color:#fff;font-weight:850;padding:12px 16px}.capture-record-button span{width:12px;height:12px;border-radius:50%;background:#fff}.capture-result{border:1px solid var(--line);border-radius:8px;padding:12px;font-weight:750}.capture-result.loading{background:#eff6ff;color:#1d4ed8}.capture-result.success{background:#f0fdf4;border-color:#86efac;color:#166534}.capture-result.error{background:#fef2f2;border-color:#fecaca;color:#991b1b}
.location-capture-box,.field-photo-box{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--line);background:#f8fafc;border-radius:8px;padding:14px}.location-capture-box strong,.location-capture-box small{display:block}.location-capture-box small{color:var(--muted);margin-top:3px}.photo-capture-button{display:inline-flex;align-items:center;justify-content:center;background:var(--brand);color:#fff;border-radius:8px;padding:11px 15px;font-weight:800;cursor:pointer}.photo-capture-button input{display:none}.field-photo-preview{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:8px}.field-photo-preview>div{position:relative;aspect-ratio:4/3;border:1px solid var(--line);border-radius:8px;overflow:hidden}.field-photo-preview img{width:100%;height:100%;object-fit:cover}.field-photo-preview button{position:absolute;top:5px;right:5px;width:28px;height:28px;border:0;border-radius:50%;background:rgba(15,23,42,.86);color:#fff;font-size:20px;line-height:20px}
.capture-checklist{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.capture-checklist div{display:grid;grid-template-columns:auto 1fr;gap:2px 7px;align-items:center;border:1px solid #fecaca;background:#fef2f2;border-radius:8px;padding:10px}.capture-checklist div.complete{border-color:#bbf7d0;background:#f0fdf4}.capture-checklist div>span{grid-row:1/3;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#dc2626;color:#fff;font-weight:900}.capture-checklist div.complete>span{background:#16a34a}.capture-checklist strong{font-size:12px}.capture-checklist small{color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.capture-review{display:grid;grid-template-columns:repeat(5,1fr);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.capture-review div{padding:12px;border-right:1px solid var(--line)}.capture-review div:last-child{border-right:0}.capture-review span{display:block;color:var(--muted);font-size:12px}.capture-review strong{display:block;margin-top:3px}.capture-nav{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;margin-top:12px}.capture-nav span{text-align:center;color:var(--muted);font-size:13px;font-weight:750}
@media(max-width:760px){
  .app-shell{padding:16px 12px 86px}.page-head{align-items:flex-start}.page-head h1{font-size:26px}.page-head .btn{display:none}.mobile-readiness-grid,.mobile-deploy-layout{grid-template-columns:1fr}.install-panel{align-items:flex-start}.app-preview{flex-basis:112px}.listing-purpose-tabs{overflow:auto}.filter-bar{grid-template-columns:1fr}
  .quick-actions,.stat-grid,.grid-2,.grid-3,.detail-grid,.location-layout,.admin-grid,.save-filter-bar,.voice-flow,.diagnostic-grid{grid-template-columns:1fr}.filter-bar{grid-template-columns:1fr}.desktop-table{display:none}.mobile-cards{display:block}
  .quick-form{padding:14px}.property-detail header{display:block}.price-block{text-align:left;margin-top:12px}.sticky-actions{position:fixed;left:10px;right:10px;bottom:66px;background:#fff;border:1px solid var(--line);border-radius:8px;padding:8px}
  .approval-panel,.approval-panel form{display:grid;grid-template-columns:1fr}
  .inline-upload{display:grid;grid-template-columns:1fr}.gallery-grid{grid-template-columns:repeat(2,1fr)}
  .capture-progress{overflow-x:auto;grid-template-columns:repeat(6,70px);padding-bottom:4px}.capture-progress button{font-size:11px}.capture-assistant{position:relative;top:auto;grid-template-columns:auto 1fr;gap:9px}.capture-assistant .btn{width:100%}.capture-assistant .btn-primary{grid-column:1/2}.capture-assistant .btn-outline-secondary{grid-column:2/3}.capture-step{padding:14px;min-height:0}.capture-section-head h2{font-size:19px}.capture-section-head>strong{max-width:100px;text-align:center}.capture-record-panel{grid-template-columns:1fr 1fr}.capture-record-panel .speech-status{grid-column:1/-1}.capture-record-button{justify-content:center}.location-capture-box,.field-photo-box{display:grid;grid-template-columns:1fr}.location-capture-box .btn,.photo-capture-button{width:100%}.field-photo-preview{grid-template-columns:repeat(2,1fr)}.capture-checklist{grid-template-columns:1fr 1fr}.capture-review{grid-template-columns:1fr 1fr}.capture-review div{border-bottom:1px solid var(--line)}
  .mobile-nav{position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(5,1fr);z-index:20}.mobile-nav a{padding:10px 4px;text-align:center;color:var(--muted);font-size:13px}.mobile-nav a.active{color:var(--brand);font-weight:800}.mobile-nav .add{width:48px;height:48px;border-radius:50%;background:var(--brand);color:#fff;font-size:28px;line-height:28px;margin:-16px auto 4px;padding:8px}
}

.lead-profile-actions .btn-primary,.lead-profile-actions .btn-success{color:#fff!important}
.lead-profile-actions .btn-outline-success{color:#15803d!important}

/* Final inventory record */
.inventory-record{max-width:1180px;margin:0 auto 70px;color:#172033}.inventory-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:14px;padding:4px 0 15px;border-bottom:1px solid #dfe6ec}.inventory-identity{display:flex;align-items:center;gap:12px;min-width:0}.inventory-back{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border:1px solid #d7e0e8;border-radius:7px;background:#fff;color:#334155}.inventory-back svg{width:18px}.inventory-eyebrow{display:block;color:#0f766e;font-size:10px;font-weight:850}.inventory-identity h1{margin:2px 0;font-size:28px;line-height:1.15}.inventory-identity p{margin:0;color:#64748b;font-size:13px}.inventory-hero-actions{display:flex;align-items:center;gap:12px}.inventory-hero-actions .btn,.inventory-section-head .btn,.inventory-upload-row .btn,.inventory-document-upload .btn{display:inline-flex;align-items:center;justify-content:center;gap:7px}.inventory-hero-actions svg,.inventory-section-head .btn svg,.inventory-upload-row .btn svg,.inventory-document-upload .btn svg{width:16px}.inventory-price{text-align:right}.inventory-price>span,.inventory-price>strong{display:block}.inventory-price>span{color:#64748b;font-size:10px;font-weight:750}.inventory-price>strong{font-size:23px}.status-dot{display:flex;align-items:center;justify-content:flex-end;gap:6px;color:#475569;font-size:10px}.status-dot i{width:7px;height:7px;border-radius:50%}.inventory-media-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(290px,.65fr);gap:14px;margin-bottom:14px}.inventory-gallery{min-width:0}.inventory-main-photo{position:relative;display:block;aspect-ratio:16/8.5;overflow:hidden;border-radius:8px;background:#e8edf2}.inventory-main-photo img{width:100%;height:100%;object-fit:cover}.inventory-main-photo>span{position:absolute;right:10px;bottom:10px;display:flex;align-items:center;gap:6px;padding:7px 9px;border-radius:6px;background:rgba(15,23,42,.78);color:#fff;font-size:11px;font-weight:750}.inventory-main-photo svg{width:15px}.inventory-thumbnails{display:flex;gap:7px;margin-top:8px;overflow-x:auto}.inventory-thumbnails .property-thumbnail{flex:0 0 72px;width:72px;height:54px;padding:0;border:2px solid transparent;border-radius:6px;overflow:hidden;background:#fff}.inventory-thumbnails .property-thumbnail.active{border-color:#0f766e}.inventory-thumbnails img{width:100%;height:100%;object-fit:cover}.inventory-photo-empty{display:grid;place-items:center;align-content:center;gap:5px;aspect-ratio:16/8.5;border:1px dashed #aebbc7;border-radius:8px;background:#f8fafc;text-align:center;color:#64748b}.inventory-photo-empty svg{width:34px;height:34px;color:#0f766e}.inventory-photo-empty strong{color:#334155}.inventory-photo-empty span{font-size:11px}.inventory-facts{display:grid;grid-template-columns:1fr 1fr;border:1px solid #dfe6ec;border-radius:8px;background:#fff;overflow:hidden}.inventory-facts>div{padding:14px;border-right:1px solid #e7edf2;border-bottom:1px solid #e7edf2;min-width:0}.inventory-facts>div:nth-child(2n){border-right:0}.inventory-facts>div:nth-last-child(-n+2){border-bottom:0}.inventory-facts span,.inventory-facts strong{display:block}.inventory-facts span{color:#64748b;font-size:10px;font-weight:700}.inventory-facts strong{margin-top:3px;font-size:13px;overflow-wrap:anywhere}.inventory-facts .approval-badge{display:inline-flex}.inventory-sections{display:grid;grid-template-columns:1fr 1fr;gap:14px}.inventory-section{min-width:0;padding:18px;border:1px solid #dfe6ec;border-radius:8px;background:#fff}.inventory-section:nth-child(n+4){grid-column:1/-1}.inventory-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:13px;border-bottom:1px solid #edf1f5}.inventory-section-head>div{display:flex;align-items:center;gap:10px}.inventory-section-head>div>svg{width:20px;color:#0f766e}.inventory-section-head span{display:grid}.inventory-section-head strong{font-size:16px}.inventory-section-head small{color:#718096;font-size:10px}.inventory-section-head>b{display:grid;place-items:center;min-width:27px;height:25px;border-radius:6px;background:#e8f5f3;color:#0f766e;font-size:11px}.inventory-definition-grid{display:grid;grid-template-columns:1fr 1fr;margin:0}.inventory-definition-grid>div{padding:11px 10px 10px 0;border-bottom:1px solid #edf1f5}.inventory-definition-grid>div:nth-child(odd){padding-right:16px}.inventory-definition-grid>div:nth-child(even){padding-left:16px;border-left:1px solid #edf1f5}.inventory-definition-grid>div.wide{grid-column:1/-1;padding-left:0;border-left:0}.inventory-definition-grid dt{color:#718096;font-size:10px}.inventory-definition-grid dd{margin:3px 0 0;color:#172033;font-size:13px;font-weight:700;overflow-wrap:anywhere}.inventory-photo-manager{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding-top:13px}.inventory-photo-card{min-width:0;border:1px solid #dfe6ec;border-radius:7px;overflow:hidden;background:#f8fafc}.inventory-photo-card>a{position:relative;display:block;aspect-ratio:4/3}.inventory-photo-card>a img{width:100%;height:100%;object-fit:cover}.cover-label{position:absolute;left:7px;top:7px;padding:4px 6px;border-radius:4px;background:#0f766e;color:#fff;font-size:9px;font-weight:800}.inventory-photo-card>form{display:grid;grid-template-columns:1fr 34px;gap:5px;padding:7px}.inventory-photo-card .form-control{min-width:0;height:34px;font-size:11px}.inventory-photo-actions{display:flex;justify-content:space-between;gap:6px;padding:0 7px 7px}.inventory-photo-actions form{margin:0}.inventory-photo-actions .btn{display:inline-flex;align-items:center;gap:5px;font-size:10px}.inventory-photo-actions svg{width:13px}.icon-button.danger{border-color:#fecaca;color:#be123c;background:#fff}.inventory-upload-row{display:grid;grid-template-columns:1fr auto;align-items:end;gap:10px;margin-top:13px;padding-top:13px;border-top:1px solid #edf1f5}.inventory-upload-row label,.inventory-document-upload label{margin:0;font-size:11px;font-weight:750}.inventory-upload-row label span,.inventory-document-upload label span{display:block;margin-bottom:5px}.inventory-document-list{display:grid;padding-top:6px}.inventory-document-list article{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:11px;padding:10px 0;border-bottom:1px solid #edf1f5}.document-icon{position:relative;display:grid;place-items:center;width:42px;height:42px;border-radius:7px;background:#ecfdf5;color:#0f766e}.document-icon svg{width:20px}.document-icon span{position:absolute;right:2px;bottom:2px;padding:1px 3px;border-radius:3px;background:#0f766e;color:#fff;font-size:7px;font-weight:850}.inventory-document-list article>div:nth-child(2){min-width:0}.inventory-document-list a{font-size:13px;font-weight:800;overflow-wrap:anywhere}.inventory-document-list p{margin:2px 0;color:#475569;font-size:11px}.inventory-document-list small{color:#8190a2;font-size:9px}.inventory-document-list form{margin:0}.inventory-document-upload{display:grid;grid-template-columns:1.3fr .7fr 1fr auto;align-items:end;gap:9px;margin-top:13px;padding-top:13px;border-top:1px solid #edf1f5}.inventory-document-upload>small{grid-column:1/-1;color:#718096}.inventory-empty-copy{margin:14px 0 0;color:#718096;font-size:12px}.inventory-copy-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding-top:13px}.inventory-copy-grid span{color:#718096;font-size:10px;font-weight:750}.inventory-copy-grid p{margin:5px 0 0;color:#334155;font-size:13px;white-space:normal}.inventory-copy-grid>div+div{padding-left:20px;border-left:1px solid #edf1f5}.inventory-audio-list{display:grid;gap:8px;padding-top:12px}.inventory-audio-list article{position:relative;padding:11px 48px 11px 11px;border:1px solid #e2e8f0;border-radius:7px}.inventory-audio-list audio{width:100%;height:36px}.inventory-audio-list p{margin:7px 0 2px;color:#475569;font-size:12px}.inventory-audio-list small{color:#8190a2;font-size:9px}.inventory-audio-list form{position:absolute;right:9px;top:9px}.inventory-voice-upload{display:grid;grid-template-columns:auto 180px 1fr auto;align-items:center;gap:8px;margin-top:13px;padding-top:13px;border-top:1px solid #edf1f5}.inventory-voice-upload>div{display:flex;gap:5px}.inventory-voice-upload audio{width:180px;height:38px}.inventory-voice-upload textarea{min-height:42px}.inventory-activity-section ul{display:grid;gap:0;margin:8px 0 0;padding:0;list-style:none}.inventory-activity-section li{display:grid;grid-template-columns:12px 1fr;gap:9px;padding:8px 0}.inventory-activity-section li>i{width:8px;height:8px;margin-top:5px;border-radius:50%;background:#0f766e}.inventory-activity-section li strong,.inventory-activity-section li span{display:block}.inventory-activity-section li strong{font-size:12px}.inventory-activity-section li span{color:#718096;font-size:9px}.inventory-sticky-actions{position:sticky;z-index:8;bottom:12px;display:flex;justify-content:center;gap:7px;width:max-content;max-width:100%;margin:16px auto 0;padding:7px;border:1px solid #d7e0e8;border-radius:8px;background:rgba(255,255,255,.96);box-shadow:0 8px 28px rgba(15,23,42,.14);backdrop-filter:blur(8px)}.inventory-sticky-actions .btn{display:inline-flex;align-items:center;gap:6px}.inventory-sticky-actions svg{width:16px}
@media(max-width:900px){.inventory-media-layout{grid-template-columns:1fr}.inventory-facts{grid-template-columns:repeat(3,1fr)}.inventory-facts>div:nth-child(n){border-right:1px solid #e7edf2;border-bottom:1px solid #e7edf2}.inventory-facts>div:nth-child(3n){border-right:0}.inventory-facts>div:nth-last-child(-n+3){border-bottom:0}.inventory-photo-manager{grid-template-columns:repeat(3,1fr)}.inventory-document-upload{grid-template-columns:1fr 1fr}.inventory-document-upload .btn{height:46px}.inventory-voice-upload{grid-template-columns:1fr 1fr}.inventory-voice-upload textarea,.inventory-voice-upload>button{grid-column:1/-1}.inventory-voice-upload audio{width:100%}}
@media(max-width:700px){.admin-content:has(.inventory-record){padding:10px 10px 90px}.inventory-record{margin-bottom:0}.inventory-hero{align-items:flex-start}.inventory-identity{align-items:flex-start}.inventory-identity h1{font-size:22px}.inventory-hero-actions{display:grid;justify-items:end}.inventory-price>strong{font-size:18px}.inventory-hero-actions .btn{padding:7px 9px;font-size:11px}.inventory-media-layout{gap:9px}.inventory-main-photo,.inventory-photo-empty{aspect-ratio:4/3}.inventory-facts{grid-template-columns:1fr 1fr}.inventory-facts>div:nth-child(n){border-right:1px solid #e7edf2;border-bottom:1px solid #e7edf2}.inventory-facts>div:nth-child(2n){border-right:0}.inventory-facts>div:nth-last-child(-n+2){border-bottom:0}.inventory-sections{grid-template-columns:1fr;gap:9px}.inventory-section:nth-child(n){grid-column:1}.inventory-section{padding:14px}.inventory-photo-manager{grid-template-columns:1fr 1fr}.inventory-document-upload{grid-template-columns:1fr}.inventory-document-list article{grid-template-columns:auto minmax(0,1fr) auto}.inventory-document-list article>form{grid-column:3}.inventory-copy-grid{grid-template-columns:1fr;gap:10px}.inventory-copy-grid>div+div{padding:10px 0 0;border-left:0;border-top:1px solid #edf1f5}.inventory-upload-row{grid-template-columns:1fr}.inventory-upload-row .btn{height:46px}.inventory-sticky-actions{position:fixed;left:8px;right:8px;bottom:74px;width:auto;margin:0;padding:6px}.inventory-sticky-actions .btn{flex:1;min-width:0;padding:8px 5px;justify-content:center;font-size:10px}.inventory-sticky-actions .btn span{overflow:hidden;text-overflow:ellipsis}.inventory-voice-upload{grid-template-columns:1fr}.inventory-voice-upload>*{grid-column:1!important}.inventory-voice-upload audio{width:100%}}
@media(max-width:390px){.inventory-definition-grid{grid-template-columns:1fr}.inventory-definition-grid>div:nth-child(n){padding:10px 0;border-left:0}.inventory-photo-manager{grid-template-columns:1fr}.inventory-sticky-actions .btn span{display:none}.inventory-sticky-actions .btn{height:40px}.inventory-hero-actions .btn span{display:none}}

/* Advanced lead CRM */
.lead-head-actions,.lead-profile-actions,.activity-media-row,.lead-row-title,.section-heading{display:flex;align-items:center;gap:10px}.lead-quick-add{display:grid;grid-template-columns:210px minmax(160px,1fr) minmax(190px,1fr) auto;gap:12px;align-items:end;background:#fff;border:1px solid #dbe4ea;padding:14px;margin-bottom:16px}.lead-quick-add label,.lead-profile-form>label,.activity-more-grid label{display:grid;gap:5px;font-size:12px;font-weight:700;color:#475569}.lead-crm-grid{display:grid;grid-template-columns:minmax(270px,330px) minmax(0,1fr);gap:18px;align-items:start}.lead-crm-sidebar{display:grid;gap:14px;position:sticky;top:78px}.lead-profile-form,.lead-followups,.lead-activity-composer,.lead-photo-strip,.lead-timeline,.lead-custom-details{background:#fff;border:1px solid #dbe4ea;padding:18px}.lead-profile-form{display:grid;gap:12px}.section-heading{justify-content:space-between}.section-heading h2{font-size:18px;margin:0}.section-heading>span{font-size:12px;color:#64748b}.form-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}.lead-labels{border:0;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:7px}.lead-labels legend{font-size:12px;font-weight:700;color:#475569;margin-bottom:7px}.lead-labels label{border:1px solid color-mix(in srgb,var(--label) 40%,#dbe4ea);padding:5px 8px;font-size:11px;color:#334155;display:flex;align-items:center;gap:5px}.lead-priority,.lead-stage{font-size:10px;font-weight:800;text-transform:uppercase;padding:4px 7px;border-radius:999px}.lead-priority.hot{background:#fee2e2;color:#b91c1c}.lead-priority.warm{background:#ffedd5;color:#c2410c}.lead-priority.cold{background:#e0f2fe;color:#0369a1}.lead-stage{background:color-mix(in srgb,var(--stage) 12%,white);color:var(--stage)}.lead-row-main{min-width:0}.lead-row-title{flex-wrap:wrap}.lead-time small{line-height:1.35}.lead-followups{display:grid;gap:10px}.followup-item{display:flex;justify-content:space-between;gap:10px;border-left:3px solid #f59e0b;padding:8px 0 8px 10px}.followup-item.completed{opacity:.55;border-color:#16a34a}.followup-item div{display:grid;gap:2px}.followup-item small{color:#64748b}.followup-item button{width:30px;height:30px;border:1px solid #bbf7d0;background:#f0fdf4;color:#15803d;display:grid;place-items:center}.lead-crm-main{display:grid;gap:16px}.lead-activity-composer{display:grid;gap:12px;border-top:4px solid #0f766e}.form-control.compact{width:auto;max-width:210px}.activity-type-tabs{display:flex;gap:6px;overflow-x:auto}.activity-type-tabs label input{position:absolute;opacity:0}.activity-type-tabs span{display:block;border:1px solid #cbd5e1;padding:8px 11px;font-size:12px;font-weight:750;white-space:nowrap}.activity-type-tabs input:checked+span{background:#0f766e;border-color:#0f766e;color:#fff}.activity-media-row{flex-wrap:wrap}.activity-file{min-height:40px;border:1px dashed #94a3b8;padding:8px 12px;display:flex;align-items:center;gap:7px;cursor:pointer;font-size:13px;font-weight:700}.activity-file input{position:absolute;opacity:0;pointer-events:none}.activity-more{border-top:1px solid #e2e8f0;padding-top:10px}.activity-more summary,.lead-custom-details>summary{cursor:pointer;font-weight:750;color:#0f766e}.activity-more-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:12px;padding-top:14px}.property-multi{min-height:125px}.lead-activity-save{justify-self:end}.lead-photo-strip>div:last-child{display:flex;gap:8px;overflow-x:auto;margin-top:12px}.lead-photo-strip img{width:92px;height:92px;object-fit:cover;border:1px solid #dbe4ea}.lead-timeline>.section-heading{margin-bottom:18px}.lead-timeline article header>div{display:grid;gap:2px}.lead-timeline article header small{color:#64748b;font-size:11px}.timeline-properties{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0}.timeline-properties a{display:flex;align-items:center;gap:5px;background:#ecfdf5;color:#047857;padding:6px 8px;font-size:12px;font-weight:700}.timeline-followup{display:block;margin-top:9px;padding:8px;background:#fff7ed;color:#9a3412}.lead-custom-details .lead-custom-form{margin-top:16px}.master-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.master-grid>section{background:#fff;border:1px solid #dbe4ea;padding:20px}.master-items{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 22px}.master-items span{border-left:4px solid var(--master-color);background:#f8fafc;padding:7px 10px;font-weight:700;font-size:12px}.master-form{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.master-form label{display:grid;gap:4px;font-size:12px;font-weight:700}.muted{color:#64748b;font-size:13px}
@media(max-width:900px){.lead-quick-add{grid-template-columns:1fr 1fr}.lead-quick-add .lead-contact-picker{grid-column:1/-1}.lead-crm-grid{grid-template-columns:1fr}.lead-crm-main{order:1}.lead-crm-sidebar{position:static;order:2}.master-grid{grid-template-columns:1fr}.lead-profile-head{flex-wrap:wrap}.lead-profile-actions{margin-left:0;width:100%}.lead-profile-actions .btn{flex:1}.lead-activity-save{width:100%;justify-self:stretch}.activity-more-grid{grid-template-columns:1fr}}
@media(max-width:560px){.lead-quick-add{grid-template-columns:1fr}.lead-quick-add .lead-contact-picker{grid-column:auto}.lead-quick-add .btn{min-height:48px}.lead-crm-grid{margin:0 -10px}.lead-profile-form,.lead-followups,.lead-activity-composer,.lead-photo-strip,.lead-timeline,.lead-custom-details{border-left:0;border-right:0;padding:14px}.form-pair{grid-template-columns:1fr}.section-heading{align-items:flex-start}.section-heading .compact{max-width:165px;font-size:12px}.activity-media-row{display:grid;grid-template-columns:1fr 1fr}.activity-media-row .btn{grid-column:1/-1;grid-row:2}.activity-file{justify-content:center}.lead-row{grid-template-columns:auto minmax(0,1fr)}.lead-row .lead-time{grid-column:2;justify-self:start}.lead-row-title{gap:5px}.lead-profile-head h1{font-size:22px}}
.rough-capture{display:grid;gap:14px}.rough-head{margin-bottom:14px}.rough-user-chip{display:grid;background:#fff;border:1px solid var(--line);border-radius:8px;padding:9px 13px;text-align:right}.rough-user-chip span{font-size:11px;color:var(--muted);text-transform:uppercase;font-weight:800}.rough-voice-panel,.rough-fields-panel,.rough-review-form,.rough-evidence{background:#fff;border:1px solid var(--line);border-radius:8px;padding:18px}.rough-voice-panel{display:grid;gap:12px;border-top:4px solid var(--brand)}.rough-voice-panel>p{margin:0;color:var(--muted)}.rough-section-title{display:flex;justify-content:space-between;align-items:start;gap:12px}.rough-section-title h2{font-size:21px;margin:2px 0 0}.rough-section-title small{color:var(--muted)}.rough-kicker{display:block;color:var(--brand);font-size:11px;font-weight:850}.rough-record-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.rough-voice-panel audio{width:100%;height:40px}.rough-fields-panel{display:grid;gap:14px}.rough-grid label,.rough-review-form>form>label{font-weight:750;font-size:13px}.rough-save-bar{position:sticky;bottom:12px;z-index:12;display:flex;justify-content:space-between;align-items:center;gap:14px;background:#14213d;color:#fff;border-radius:8px;padding:12px 14px;box-shadow:0 10px 28px rgba(15,23,42,.22)}.rough-save-bar span{display:block;color:#cbd5e1;font-size:12px}.rough-filter-strip{display:flex;gap:7px;overflow:auto;margin-bottom:12px}.rough-filter-strip a{white-space:nowrap;color:#475569;background:#fff;border:1px solid var(--line);border-radius:6px;padding:7px 11px;font-size:13px;font-weight:750}.rough-filter-strip a.active{background:var(--brand);border-color:var(--brand);color:#fff}.rough-queue{display:grid;gap:8px}.rough-queue-row{display:grid;grid-template-columns:105px 1.6fr 1fr 1fr 80px;gap:12px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:8px;padding:13px;color:var(--ink)}.rough-queue-row:hover{border-color:#94a3b8}.rough-main,.rough-meta,.rough-quick{display:grid;min-width:0}.rough-main span,.rough-meta span,.rough-quick span,.rough-media-count{color:var(--muted);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rough-status{display:inline-flex;width:max-content;border-radius:999px;padding:5px 9px;background:#e2e8f0;color:#334155;font-size:11px;font-weight:850;text-transform:capitalize}.rough-status.new{background:#dbeafe;color:#1d4ed8}.rough-status.under_review{background:#fef3c7;color:#92400e}.rough-status.converted{background:#dcfce7;color:#166534}.rough-status.rejected{background:#fee2e2;color:#991b1b}.empty-state{background:#fff;border:1px dashed #94a3b8;border-radius:8px;padding:40px;text-align:center}.rough-review-layout{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(0,1.7fr);gap:14px;align-items:start}.rough-evidence{display:grid;gap:12px;position:sticky;top:78px}.rough-evidence h2{font-size:19px;margin:0}.rough-evidence audio{width:100%}.rough-transcript{border:1px solid var(--line);border-radius:8px;padding:12px;background:#f8fafc}.rough-transcript span{color:var(--muted);font-size:11px;font-weight:800;text-transform:uppercase}.rough-transcript p{margin:6px 0 0}.rough-photo-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:7px}.rough-photo-grid a{aspect-ratio:4/3;overflow:hidden;border-radius:6px}.rough-photo-grid img{width:100%;height:100%;object-fit:cover}.rough-review-form{display:grid;gap:14px}.rough-review-form form{display:grid;gap:12px}.rough-review-actions{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--line);padding-top:14px}.rough-readonly{display:grid;gap:0}.rough-readonly div{display:grid;grid-template-columns:150px 1fr;border-bottom:1px solid var(--line);padding:10px 0}.rough-readonly dt{color:var(--muted)}.rough-readonly dd{margin:0;font-weight:700}
@media(max-width:760px){.rough-user-chip{display:none}.rough-voice-panel,.rough-fields-panel,.rough-review-form,.rough-evidence{padding:14px}.rough-section-title{display:grid}.rough-record-row{display:grid;grid-template-columns:1fr 1fr}.rough-record-row .speech-status{grid-column:1/-1}.rough-record-row .capture-record-button{justify-content:center}.rough-save-bar{position:fixed;left:8px;right:8px;bottom:66px}.rough-save-bar>div{display:none}.rough-save-bar .btn{display:block;width:100%}.rough-capture{padding-bottom:62px}.rough-queue-row{grid-template-columns:1fr auto;gap:7px}.rough-status{grid-column:2;grid-row:1}.rough-main{grid-column:1;grid-row:1}.rough-meta{grid-column:1}.rough-quick{grid-column:1}.rough-media-count{grid-column:2;grid-row:2}.rough-review-layout{grid-template-columns:1fr}.rough-evidence{position:relative;top:auto}.rough-review-actions{display:grid}.rough-readonly div{grid-template-columns:110px 1fr}}
.workspace-head{display:flex;justify-content:space-between;align-items:end;gap:18px;padding:18px 0 24px}.workspace-head>div>span,.dashboard-band-head>div>span{color:var(--brand);font-size:11px;font-weight:850}.workspace-head h1{font-size:34px;margin:3px 0}.workspace-head p{color:var(--muted);margin:0}.dashboard-band{margin-bottom:18px;background:#fff;border:1px solid var(--line);border-radius:8px;padding:18px}.dashboard-band-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:14px}.dashboard-band-head h2{font-size:23px;margin:2px 0 0}.dashboard-band-head>a{color:var(--brand);font-weight:750}.inventory-stat-row,.rough-stat-row{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--line);border-radius:8px;overflow:hidden;margin-bottom:14px}.inventory-stat-row>div,.rough-stat-row>a{padding:13px 15px;border-right:1px solid var(--line);color:var(--ink)}.inventory-stat-row>:last-child,.rough-stat-row>:last-child{border-right:0}.inventory-stat-row span,.rough-stat-row span{display:block;color:var(--muted);font-size:12px}.inventory-stat-row strong,.rough-stat-row strong{font-size:23px}.property-type-tabs{display:flex;gap:8px;overflow:auto;padding:2px 0 12px}.property-type-tabs a{min-width:150px;border:1px solid var(--line);border-radius:7px;padding:11px 12px;color:var(--ink);background:#f8fafc}.property-type-tabs strong,.property-type-tabs span{display:block}.property-type-tabs span{color:var(--muted);font-size:12px;margin-top:3px}.dashboard-property-grid,.inventory-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.dashboard-property-grid>a,.inventory-grid-card{border:1px solid var(--line);border-radius:8px;padding:14px;color:var(--ink);background:#fff}.dashboard-property-grid>a>div,.inventory-grid-card header{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:12px}.status-dot{width:9px;height:9px;border-radius:50%}.dashboard-property-grid h3,.inventory-grid-card h2{font-size:16px;margin:9px 0 5px}.dashboard-property-grid p,.inventory-grid-card p{color:var(--muted);font-size:13px;margin:0 0 10px}.rough-inbox-band{border-left:4px solid #2563eb}.rough-stat-row>a:hover{background:#f8fafc}.dashboard-subtitle{font-size:14px;margin:18px 0 9px}.rough-user-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.rough-user-grid>a{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:8px;padding:10px;color:var(--ink)}.rough-user-grid>a>span{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#dbeafe;color:#1d4ed8;font-weight:850}.rough-user-grid strong,.rough-user-grid small{display:block}.rough-user-grid small{color:var(--muted)}.admin-tool-links{display:flex;gap:8px;flex-wrap:wrap}.admin-tool-links a{border:1px solid var(--line);border-radius:7px;padding:10px 12px;color:var(--ink);font-weight:700}.master-card-grid,.user-access-list{display:grid;gap:10px}.master-card{display:grid;background:#fff;border:1px solid var(--line);border-radius:8px;padding:15px}.master-card span,.master-card small{color:var(--muted)}.user-access-card{background:#fff;border:1px solid var(--line);border-radius:8px;padding:0}.user-access-card summary{display:flex;justify-content:space-between;align-items:center;cursor:pointer;padding:14px}.user-access-card summary strong,.user-access-card summary small{display:block}.user-access-card summary small{color:var(--muted)}.user-access-card form{border-top:1px solid var(--line);padding:14px}.user-access-card form>p{color:var(--muted);font-size:13px}.permission-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-bottom:12px}.permission-grid label{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:6px;padding:9px;font-size:13px}.permission-grid input{width:17px;height:17px}
@media(max-width:760px){.workspace-head{align-items:start}.workspace-head h1{font-size:27px}.workspace-head .btn{display:block;padding:9px 10px}.dashboard-band{padding:14px;margin-left:-4px;margin-right:-4px}.inventory-stat-row,.rough-stat-row{grid-template-columns:repeat(2,1fr)}.inventory-stat-row>:nth-child(2),.rough-stat-row>:nth-child(2){border-right:0}.inventory-stat-row>:nth-child(-n+2),.rough-stat-row>:nth-child(-n+2){border-bottom:1px solid var(--line)}.dashboard-property-grid,.inventory-card-grid,.rough-user-grid,.permission-grid{grid-template-columns:1fr}.property-type-tabs a{min-width:135px}.dashboard-band-head{align-items:start}.dashboard-band-head>a{font-size:13px}.admin-tool-links{display:grid}.admin-grid{grid-template-columns:1fr}}
.admin-body{background:#f4f6f8;color:#172033}.admin-frame{min-height:100vh;display:grid;grid-template-columns:248px minmax(0,1fr)}.admin-sidebar{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;background:#111827;color:#e5e7eb;border-right:1px solid #263244;z-index:40}.sidebar-brand{display:flex;align-items:center;gap:11px;padding:19px 18px;color:#fff;border-bottom:1px solid #263244}.sidebar-brand>span{display:grid;place-items:center;width:38px;height:38px;border-radius:7px;background:#0f766e;color:#fff;font-weight:900}.sidebar-brand strong,.sidebar-brand small{display:block}.sidebar-brand strong{font-size:16px}.sidebar-brand small{font-size:11px;color:#93a4ba}.sidebar-nav{padding:12px 10px;overflow-y:auto}.sidebar-label{display:block;padding:14px 10px 6px;color:#6f829b;font-size:10px;font-weight:850;text-transform:uppercase}.sidebar-nav a{display:flex;align-items:center;gap:11px;color:#b9c4d3;padding:10px;border-radius:6px;font-size:13px;font-weight:650;margin:2px 0}.sidebar-nav a:hover,.sidebar-nav a.active{color:#fff;background:#203047}.sidebar-nav a.active{box-shadow:inset 3px 0 #2dd4bf}.sidebar-nav svg{width:18px;height:18px;stroke-width:1.8}.sidebar-profile{margin-top:auto;display:grid;grid-template-columns:auto 1fr auto;gap:9px;align-items:center;padding:14px;border-top:1px solid #263244}.sidebar-profile>div{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#334155;color:#fff;font-weight:850}.sidebar-profile strong,.sidebar-profile small{display:block}.sidebar-profile strong{font-size:12px}.sidebar-profile small{font-size:10px;color:#93a4ba}.sidebar-profile a{color:#93a4ba}.sidebar-profile svg{width:17px}.admin-main{min-width:0;display:flex;min-height:100vh;flex-direction:column}.admin-topbar{height:68px;position:sticky;top:0;z-index:30;display:flex;align-items:center;gap:16px;padding:0 22px;background:rgba(255,255,255,.97);border-bottom:1px solid #dce3ea}.icon-button{display:grid;place-items:center;width:38px;height:38px;border:1px solid var(--line);background:#fff;border-radius:6px;color:#334155}.sidebar-toggle{display:none}.topbar-context{min-width:180px}.topbar-context span,.topbar-context strong{display:block}.topbar-context span{color:#7a8798;font-size:10px;text-transform:uppercase;font-weight:800}.topbar-context strong{font-size:15px}.topbar-search{margin-left:auto;width:min(390px,35vw);position:relative}.topbar-search svg{position:absolute;left:11px;top:10px;width:17px;color:#8491a3}.topbar-search input{width:100%;height:39px;border:1px solid #dce3ea;background:#f7f9fb;border-radius:6px;padding:0 12px 0 37px;font-size:13px}.topbar-add{display:inline-flex;align-items:center;gap:7px;border-radius:6px}.topbar-add svg{width:17px}.admin-content{width:100%;max-width:1460px;margin:0 auto;padding:22px 24px 54px;flex:1}.admin-footer{display:flex;justify-content:space-between;padding:14px 24px;color:#7a8798;font-size:11px;border-top:1px solid #dce3ea;background:#fff}.app-flash{display:flex;align-items:center;gap:9px}.app-flash svg{width:19px}.sidebar-scrim{display:none}.mobile-nav{display:none}
.workspace-head{padding-top:4px}.workspace-head>div>span,.dashboard-band-head>div>span{letter-spacing:0}.dashboard-band{box-shadow:0 1px 2px rgba(15,23,42,.035)}.inventory-stat-row>div:nth-child(1){border-top:3px solid #0f766e}.inventory-stat-row>div:nth-child(2){border-top:3px solid #2563eb}.inventory-stat-row>div:nth-child(3){border-top:3px solid #d97706}.inventory-stat-row>div:nth-child(4){border-top:3px solid #7c3aed}.rough-stat-row>a:nth-child(1){border-top:3px solid #475569}.rough-stat-row>a:nth-child(2){border-top:3px solid #dc2626}.rough-stat-row>a:nth-child(3){border-top:3px solid #d97706}.rough-stat-row>a:nth-child(4){border-top:3px solid #16a34a}.property-type-tabs.visual-tabs a{position:relative;min-height:112px;overflow:hidden;background:#111827;border:0;color:#fff;padding:0}.property-type-tabs.visual-tabs img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.54}.property-type-tabs.visual-tabs a:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 20%,rgba(5,10,20,.85))}.property-type-tabs.visual-tabs a>span,.property-type-tabs.visual-tabs a>strong{position:absolute;z-index:2;left:12px}.property-type-tabs.visual-tabs a>strong{bottom:27px}.property-type-tabs.visual-tabs a>span{bottom:9px;color:#d7e0eb}.dashboard-property-grid>a,.inventory-grid-card{padding:0;overflow:hidden;transition:transform .15s,border-color .15s,box-shadow .15s}.dashboard-property-grid>a:hover,.inventory-grid-card:hover{transform:translateY(-2px);border-color:#aab7c6;box-shadow:0 8px 20px rgba(15,23,42,.08)}.inventory-card-media{position:relative;height:150px;background:#dbe2ea;overflow:hidden}.inventory-card-media img{width:100%;height:100%;object-fit:cover}.inventory-card-media .purpose-badge{position:absolute;left:10px;top:10px;background:#fff;color:#172033;border-radius:5px;padding:4px 7px;font-size:10px;font-weight:850;text-transform:uppercase}.inventory-card-media .code-badge{position:absolute;right:10px;top:10px;background:rgba(17,24,39,.82);color:#fff;border-radius:5px;padding:4px 7px;font-size:10px}.inventory-card-body{padding:13px}.inventory-card-body h2{font-size:16px;margin:2px 0 5px}.inventory-card-body .inventory-kind{font-size:11px;color:#0f766e;font-weight:800;text-transform:uppercase}.inventory-card-footer{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);margin-top:11px;padding-top:10px}.inventory-card-footer .price{font-size:17px;margin:0}.inventory-card-footer a{font-size:12px;font-weight:800;color:var(--brand)}
@media(max-width:900px){.admin-frame{display:block}.admin-sidebar{position:fixed;left:-265px;width:248px;transition:left .2s}.sidebar-open .admin-sidebar{left:0}.sidebar-open .sidebar-scrim{display:block;position:fixed;inset:0;background:rgba(15,23,42,.48);z-index:35}.sidebar-toggle{display:grid}.topbar-context{min-width:0}.topbar-search{display:none}.admin-content{padding:16px 13px 88px}.admin-footer{display:none}.mobile-nav{position:fixed;bottom:0;left:0;right:0;height:62px;background:#fff;border-top:1px solid #dce3ea;display:flex;align-items:center;justify-content:space-around;z-index:32;padding:4px 6px}.mobile-nav a,.mobile-nav button{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:2px;border:0;background:transparent;color:#718096;font-size:10px;height:52px}.mobile-nav a.active{color:#0f766e;font-weight:800}.mobile-nav svg{width:19px;height:19px}.mobile-nav .mobile-add{flex:0 0 52px;width:48px;height:48px;margin-top:-24px;border-radius:50%;background:#0f766e;color:#fff;box-shadow:0 5px 14px rgba(15,118,110,.3)}.topbar-add span{display:none}.topbar-add{width:39px;height:39px;padding:0;justify-content:center}.admin-topbar{height:60px;padding:0 12px;gap:10px}.workspace-head{padding-top:0}.workspace-head>div>span{font-size:9px}.workspace-head p{font-size:12px}.workspace-head .btn{display:none}.dashboard-property-grid,.inventory-card-grid{grid-template-columns:1fr 1fr}.inventory-card-media{height:130px}}
@media(max-width:560px){.dashboard-property-grid,.inventory-card-grid{grid-template-columns:1fr}.property-type-tabs.visual-tabs a{min-width:158px}.inventory-card-media{height:175px}}
.activation-login-box{margin-top:18px;padding:14px;background:#f0fdfa;border:1px solid #99f6e4;border-radius:8px}.activation-login-box>div{display:flex;gap:10px;align-items:flex-start;margin-bottom:10px}.activation-login-box svg{width:22px;color:#0f766e}.activation-login-box span{display:grid}.activation-login-box strong{font-size:13px}.activation-login-box small{font-size:11px;color:var(--muted)}.activation-code-input{text-transform:uppercase;letter-spacing:2px;font-weight:800}
.category-showcase-head,.recent-inventory-head,.device-security-head{display:flex;justify-content:space-between;align-items:end;gap:16px}.category-showcase-head{padding:3px 1px 12px}.category-showcase-head div{display:grid}.category-showcase-head span,.recent-inventory-head span{color:var(--brand);font-size:10px;font-weight:850}.category-showcase-head strong{font-size:18px}.category-showcase-head small{color:var(--muted)}.category-showcase-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-bottom:24px}.category-showcase-grid>a{position:relative;min-height:126px;border-radius:7px;overflow:hidden;background:#172033;color:#fff}.category-showcase-grid>a:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(15,23,42,.04),rgba(15,23,42,.9))}.category-showcase-grid img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .25s}.category-showcase-grid>a:hover img{transform:scale(1.04)}.category-showcase-grid>a>div{position:absolute;z-index:2;left:12px;right:34px;bottom:11px;display:grid}.category-showcase-grid strong{font-size:14px}.category-showcase-grid small{color:#dbe5f0;font-size:10px}.category-showcase-grid svg{position:absolute;z-index:2;right:10px;bottom:13px;width:17px}.category-count{position:absolute;z-index:2;right:8px;top:8px;min-width:25px;height:25px;display:grid;place-items:center;padding:0 7px;border-radius:5px;background:rgba(255,255,255,.92);color:#172033;font-size:11px;font-weight:850}.recent-inventory-head{margin:0 0 10px}.recent-inventory-head h3{font-size:18px;margin:2px 0 0}.recent-inventory-head a{font-size:12px;color:var(--brand);font-weight:800}
.device-security-head{margin:28px 0 14px}.device-security-head h2{margin:2px 0 3px}.device-security-head p{margin:0;color:var(--muted)}.device-security-head .btn,.activation-create-form .btn,.activation-code-reveal .btn{display:inline-flex;align-items:center;gap:7px}.activation-code-reveal{display:flex;justify-content:space-between;align-items:center;gap:16px;background:#0f766e;color:#fff;border-radius:8px;padding:18px;margin-bottom:14px}.activation-code-reveal div{display:grid}.activation-code-reveal span,.activation-code-reveal small{color:#ccfbf1}.activation-code-reveal span{font-size:10px;font-weight:850}.activation-code-reveal strong{font-size:28px;letter-spacing:3px}.activation-create-form{display:grid;grid-template-columns:1.3fr 1.3fr .8fr auto;gap:10px;align-items:end}.activation-create-form label{font-size:12px;font-weight:750}.activation-create-form input,.activation-create-form select{margin-top:5px}.device-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:14px 0}.device-kpis>div{background:#fff;border:1px solid var(--line);border-left:4px solid var(--brand);border-radius:7px;padding:13px}.device-kpis span{display:block;color:var(--muted);font-size:11px}.device-kpis strong{font-size:24px}.device-table-wrap{overflow:auto}.device-table{width:100%;border-collapse:collapse;font-size:12px}.device-table th{color:var(--muted);text-align:left;font-size:10px;text-transform:uppercase;padding:9px;border-bottom:1px solid var(--line)}.device-table td{padding:11px 9px;border-bottom:1px solid var(--line);vertical-align:middle}.device-table td strong,.device-table td small{display:block}.device-table td small{color:var(--muted)}.device-status{display:inline-flex;width:max-content;padding:4px 7px;border-radius:999px;background:#e2e8f0;color:#475569;font-size:10px;font-weight:850;text-transform:uppercase}.device-status.active,.device-status.used{background:#dcfce7;color:#166534}.device-status.revoked,.device-status.expired{background:#fee2e2;color:#991b1b}.security-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.compact-record-list,.activity-timeline{display:grid;gap:7px;max-height:430px;overflow:auto}.compact-record-list article{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:9px;border:1px solid var(--line);border-radius:6px;padding:10px}.compact-record-list article div,.activity-timeline article div{display:grid}.compact-record-list small,.activity-timeline small{color:var(--muted);font-size:11px}.compact-record-list .icon-button{width:30px;height:30px}.compact-record-list svg{width:15px}.activity-timeline article{display:flex;gap:10px;border-bottom:1px solid var(--line);padding:7px 0 11px}.event-icon{display:grid;place-items:center;flex:0 0 32px;height:32px;border-radius:50%;background:#e6fffb;color:#0f766e}.event-icon svg{width:15px}
.enhanced-property-detail{padding:0;overflow:hidden}.enhanced-property-detail>header,.enhanced-property-detail>section,.enhanced-property-detail>.sticky-actions{margin-left:20px;margin-right:20px}.enhanced-property-detail>header{padding-top:20px}.property-media-showcase{display:grid;grid-template-columns:minmax(0,2fr) minmax(180px,.7fr);gap:10px;margin-top:18px}.property-main-image{position:relative;display:block;min-height:390px;border-radius:8px;overflow:hidden;background:#e2e8f0}.property-main-image img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.property-main-image>span{position:absolute;right:12px;bottom:12px;display:flex;align-items:center;gap:6px;background:rgba(15,23,42,.82);color:#fff;padding:7px 10px;border-radius:5px;font-size:11px;font-weight:750}.property-main-image svg{width:15px}.property-thumbnail-rail{display:grid;grid-template-columns:1fr;gap:7px;max-height:390px;overflow:auto}.property-thumbnail{position:relative;display:block;width:100%;height:90px;border:2px solid transparent;border-radius:7px;overflow:hidden;padding:0;background:#e2e8f0;text-align:left}.property-thumbnail.active{border-color:var(--brand)}.property-thumbnail img{width:100%;height:100%;object-fit:cover}.property-thumbnail span{position:absolute;left:7px;right:7px;bottom:5px;color:#fff;font-size:10px;font-weight:750;text-shadow:0 1px 3px #000;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.property-photo-empty{grid-column:1/-1;min-height:260px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px dashed #94a3b8;border-radius:8px;background:#f8fafc;color:var(--muted)}.property-photo-empty svg{width:35px;height:35px;margin-bottom:9px}.property-photo-empty strong{color:var(--ink)}.notes-section-head{display:flex;justify-content:space-between;align-items:center}.notes-section-head span{font-size:10px;color:var(--brand);font-weight:850}.notes-section-head h2{margin:1px 0}.notes-section-head small{color:var(--muted)}
@media(max-width:1100px){.category-showcase-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.activation-create-form{grid-template-columns:1fr 1fr}.activation-create-form .btn{height:38px}}
@media(max-width:760px){.category-showcase-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.category-showcase-grid>a{min-height:116px}.category-showcase-head small{display:none}.recent-inventory-head{align-items:center}.device-security-head{align-items:flex-start}.device-security-head p{font-size:12px}.device-security-head .btn{white-space:nowrap}.activation-code-reveal{align-items:flex-start}.activation-code-reveal strong{font-size:21px;letter-spacing:2px}.activation-create-form,.device-kpis,.security-grid{grid-template-columns:1fr 1fr}.property-media-showcase{grid-template-columns:1fr}.property-main-image{min-height:260px}.property-thumbnail-rail{grid-template-columns:repeat(4,100px);max-height:none;overflow-x:auto}.property-thumbnail{height:72px}.enhanced-property-detail>header,.enhanced-property-detail>section{margin-left:13px;margin-right:13px}}
@media(max-width:520px){.activation-create-form,.device-kpis,.security-grid{grid-template-columns:1fr}.device-security-head{display:grid}.activation-code-reveal{display:grid}.category-showcase-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.category-showcase-grid strong{font-size:12px}.property-main-image{min-height:225px}}
.apk-login-label{display:flex;gap:10px;align-items:center;margin-top:16px;padding:11px;border:1px solid #bfdbfe;background:#eff6ff;border-radius:7px}.apk-login-label svg{width:20px;color:#2563eb}.apk-login-label span{display:grid}.apk-login-label strong{font-size:13px}.apk-login-label small{font-size:11px;color:var(--muted)}
.app-activation-wrap{min-height:100vh;display:grid;place-items:center;padding:20px}.app-activation-card{width:min(440px,96vw);display:grid;gap:14px;background:#fff;border:1px solid var(--line);border-radius:8px;padding:28px;box-shadow:0 18px 50px rgba(15,23,42,.12)}.app-activation-card h1{font-size:29px;margin:0}.app-activation-card p{color:var(--muted);margin:0}.app-activation-card label{font-size:13px;font-weight:750}.app-activation-card input{margin-top:6px}.app-activation-card>small{color:var(--muted);text-align:center}.activation-app-icon{display:grid;place-items:center;width:52px;height:52px;border-radius:8px;background:#0f766e;color:#fff}.activation-app-icon svg{width:27px}
.apk-admin-head{display:flex;justify-content:space-between;align-items:end;gap:18px;margin-bottom:16px}.apk-admin-head h1{font-size:30px;margin:2px 0}.apk-admin-head p{margin:0;color:var(--muted)}.apk-admin-head .btn{display:flex;align-items:center;gap:7px}.apk-result-banner{background:#ecfdf5;border:1px solid #a7f3d0;border-left:4px solid #10b981;border-radius:7px;padding:14px;margin-bottom:12px}.apk-result-banner div{display:grid}.apk-result-banner span{font-size:10px;font-weight:850;color:#047857}.apk-result-banner small{color:#64748b}.activation-code-reveal.compact{padding:14px}.activation-code-reveal.compact strong{font-size:24px}.apk-summary-strip{display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border:1px solid var(--line);border-radius:8px;overflow:hidden;margin-bottom:14px}.apk-summary-strip>div{display:flex;align-items:center;gap:10px;padding:13px;border-right:1px solid var(--line)}.apk-summary-strip>div:last-child{border-right:0}.apk-summary-strip svg{width:19px;color:#0f766e}.apk-summary-strip span{display:grid;color:var(--muted);font-size:11px}.apk-summary-strip strong{color:var(--ink);font-size:14px}.apk-summary-strip .hosting-state svg{color:#d97706}.apk-summary-strip .hosting-state.ready svg{color:#059669}.apk-user-panel{background:#fff;border:1px solid var(--line);border-radius:8px;padding:17px}.apk-panel-head{display:flex;justify-content:space-between;align-items:end;border-bottom:1px solid var(--line);padding-bottom:12px}.apk-panel-head span{font-size:10px;font-weight:850;color:var(--brand)}.apk-panel-head h2{font-size:20px;margin:2px 0 0}.apk-panel-head>small{color:var(--muted)}.apk-user-list{display:grid}.apk-user-row{display:grid;grid-template-columns:minmax(180px,1fr) minmax(260px,1.5fr) minmax(140px,.8fr) auto;gap:14px;align-items:center;padding:14px 2px;border-bottom:1px solid var(--line)}.apk-user-row:last-child{border-bottom:0}.apk-user-identity,.apk-state,.apk-web-access{display:flex;align-items:center;gap:10px;min-width:0}.apk-user-identity>span{display:grid;place-items:center;flex:0 0 38px;height:38px;border-radius:7px;background:#e2e8f0;color:#334155;font-weight:850}.apk-user-identity div,.apk-state div,.apk-web-access div{display:grid;min-width:0}.apk-user-identity small,.apk-state small,.apk-web-access small,.apk-device-mini small{color:var(--muted);font-size:11px}.apk-state svg,.apk-web-access svg{flex:0 0 auto;width:21px;color:#0f766e}.apk-state strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.apk-device-mini{display:grid;gap:4px}.apk-row-actions{display:flex;justify-content:flex-end;gap:6px;flex-wrap:wrap}.apk-row-actions form{display:inline-flex}.apk-row-actions .btn{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}.apk-row-actions svg{width:14px}.web-admin-row{background:#fafcff}.apk-audit-details{margin-top:13px;background:#fff;border:1px solid var(--line);border-radius:8px}.apk-audit-details summary{display:flex;justify-content:space-between;align-items:center;padding:14px;cursor:pointer}.apk-audit-details summary>span{display:flex;align-items:center;gap:9px}.apk-audit-details summary svg{width:18px}.apk-audit-details summary small{color:var(--muted)}.apk-audit-details .activity-timeline{border-top:1px solid var(--line);padding:12px 16px}.apk-build-note{display:flex;align-items:flex-start;gap:10px;margin-top:13px;padding:12px 14px;background:#fffbeb;border:1px solid #fde68a;border-radius:7px;color:#92400e;font-size:12px}.apk-build-note svg{flex:0 0 auto;width:18px}
@media(max-width:1000px){.apk-user-row{grid-template-columns:1fr 1.4fr}.apk-user-row>.device-status,.apk-device-mini{grid-column:1}.apk-row-actions{grid-column:2;grid-row:2;justify-content:flex-start}}
@media(max-width:700px){.apk-admin-head{align-items:flex-start}.apk-admin-head .btn{font-size:0;padding:9px}.apk-admin-head .btn svg{margin:0}.apk-summary-strip{grid-template-columns:1fr 1fr}.apk-summary-strip>div:nth-child(2){border-right:0}.apk-summary-strip>div:nth-child(-n+2){border-bottom:1px solid var(--line)}.apk-user-row{grid-template-columns:1fr}.apk-user-row>.device-status,.apk-device-mini,.apk-row-actions{grid-column:1;grid-row:auto}.apk-row-actions{justify-content:flex-start}.apk-panel-head>small{display:none}.apk-audit-details summary small{display:none}}
.recording-profile-panel,.sync-history-panel{margin-top:14px}.recording-profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px}.recording-profile-card{border:1px solid var(--line);border-radius:7px;padding:13px;background:#fbfcfd}.recording-profile-card header{display:grid;grid-template-columns:38px 1fr auto;align-items:center;gap:9px}.recording-profile-card header>div{display:grid;min-width:0}.recording-profile-card header small{color:var(--muted);font-size:10px}.recording-phone-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:7px;background:#e6fffb;color:#0f766e}.recording-phone-icon svg{width:19px}.recording-profile-card dl{display:grid;gap:7px;margin:12px 0}.recording-profile-card dl>div{display:grid;grid-template-columns:90px minmax(0,1fr);gap:8px;padding-top:7px;border-top:1px solid #e8edf1}.recording-profile-card dt{font-size:10px;color:var(--muted)}.recording-profile-card dd{margin:0;font-size:11px;font-weight:700;overflow-wrap:anywhere}.recording-profile-card footer{display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:9px}.sync-history-summary{display:grid;grid-template-columns:repeat(4,1fr);margin:14px 0;border:1px solid var(--line);border-radius:7px;overflow:hidden}.sync-history-summary>div{display:grid;padding:11px;border-right:1px solid var(--line)}.sync-history-summary>div:last-child{border-right:0}.sync-history-summary span{color:var(--muted);font-size:10px}.sync-history-summary strong{font-size:20px}.sync-run-list{display:grid;gap:8px;max-height:620px;overflow:auto}.sync-run-row{display:grid;grid-template-columns:34px minmax(170px,1fr) minmax(330px,2fr) auto;gap:10px;align-items:center;padding:11px;border:1px solid var(--line);border-left:4px solid #10b981;border-radius:7px;background:#fff}.sync-run-row.is-failed{border-left-color:#dc2626}.sync-run-row.is-running{border-left-color:#2563eb}.sync-run-state{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#ecfdf5;color:#047857}.is-failed .sync-run-state{background:#fef2f2;color:#b91c1c}.is-running .sync-run-state{background:#eff6ff;color:#1d4ed8}.is-running .sync-run-state svg{animation:spin 1.1s linear infinite}.sync-run-state svg{width:16px}.sync-run-main,.sync-run-result{display:grid;min-width:0}.sync-run-main strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sync-run-main small,.sync-run-result small{font-size:9px;color:var(--muted)}.sync-run-counts{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.sync-run-counts span{font-size:9px;color:var(--muted)}.sync-run-counts b{color:var(--ink);font-size:11px}.sync-run-result{justify-items:end}.sync-run-error{grid-column:2/-1;margin:0;padding:7px 9px;border-radius:5px;background:#fef2f2;color:#991b1b;font-size:10px}.device-status.ready,.device-status.completed{background:#dcfce7;color:#166534}.device-status.warning,.device-status.partial{background:#fef3c7;color:#92400e}.device-status.blocked,.device-status.failed{background:#fee2e2;color:#991b1b}.device-status.running{background:#dbeafe;color:#1d4ed8}@keyframes spin{to{transform:rotate(360deg)}}
@media(max-width:900px){.recording-profile-grid{grid-template-columns:1fr}.sync-run-row{grid-template-columns:34px 1fr auto}.sync-run-counts{grid-column:2/-1}.sync-run-error{grid-column:2/-1}}
@media(max-width:600px){.sync-history-summary{grid-template-columns:1fr 1fr}.sync-history-summary>div:nth-child(2){border-right:0}.sync-history-summary>div:nth-child(-n+2){border-bottom:1px solid var(--line)}.sync-run-row{grid-template-columns:30px 1fr}.sync-run-result{grid-column:2;justify-items:start}.sync-run-counts{grid-template-columns:repeat(2,1fr)}.recording-profile-card header{grid-template-columns:34px 1fr}.recording-profile-card header>.device-status{grid-column:2}.recording-profile-card dl>div{grid-template-columns:72px 1fr}.recording-profile-card footer{display:grid}}
.simple-dashboard{max-width:1240px;margin:0 auto}.simple-dashboard-head{display:flex;align-items:end;justify-content:space-between;gap:18px;margin:2px 0 20px}.simple-dashboard-head h1{font-size:28px;margin:2px 0}.simple-dashboard-head p{margin:0;color:var(--muted)}.simple-dashboard-head .btn{display:inline-flex;align-items:center;gap:7px}.simple-dashboard-head .btn svg{width:17px}.simple-kpis{display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border:1px solid var(--line);border-radius:8px;margin-bottom:14px;overflow:hidden}.simple-kpis>a{position:relative;padding:17px 18px;color:var(--ink);border-right:1px solid var(--line)}.simple-kpis>a:last-child{border-right:0}.simple-kpis span,.simple-kpis small{display:block}.simple-kpis span{font-size:11px;color:var(--muted);font-weight:750}.simple-kpis strong{display:block;font-size:27px;margin:2px 0}.simple-kpis small{font-size:10px;color:#94a3b8}.simple-kpis>a:after{content:"";position:absolute;left:18px;right:18px;bottom:0;height:2px;background:#0f766e}.simple-kpis>a:nth-child(2):after{background:#2563eb}.simple-kpis>a:nth-child(3):after{background:#d97706}.simple-kpis>a:nth-child(4):after{background:#7c3aed}.simple-dashboard-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(320px,.8fr);gap:14px;align-items:start}.simple-panel{background:#fff;border:1px solid var(--line);border-radius:8px;padding:17px}.simple-panel-head{display:flex;justify-content:space-between;align-items:end;padding-bottom:12px;border-bottom:1px solid var(--line)}.simple-panel-head span{font-size:10px;font-weight:850;color:var(--brand)}.simple-panel-head h2{font-size:20px;margin:2px 0 0}.simple-panel-head>a{font-size:12px;color:var(--brand);font-weight:800}.type-count-list{display:grid;grid-template-columns:repeat(3,1fr);gap:0 18px;padding-top:7px}.type-count-list a{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:9px 2px;border-bottom:1px solid #edf1f5;color:#334155;font-size:12px}.type-count-list strong{display:grid;place-items:center;min-width:24px;height:21px;border-radius:5px;background:#f1f5f9;color:#475569;font-size:10px}.rough-simple-stats{display:grid;grid-template-columns:repeat(3,1fr);margin-top:12px;border:1px solid var(--line);border-radius:7px;overflow:hidden}.rough-simple-stats a{padding:12px;color:var(--ink);border-right:1px solid var(--line)}.rough-simple-stats a:last-child{border-right:0}.rough-simple-stats strong,.rough-simple-stats span{display:block}.rough-simple-stats strong{font-size:21px}.rough-simple-stats span{font-size:10px;color:var(--muted)}.simple-user-activity{margin-top:14px}.simple-user-activity h3{font-size:12px;margin:0 0 5px;color:#475569}.simple-user-activity>a{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:9px;padding:7px 1px;color:var(--ink)}.simple-user-activity>a>span{display:grid;place-items:center;width:28px;height:28px;border-radius:6px;background:#e2e8f0;font-size:11px;font-weight:850}.simple-user-activity strong,.simple-user-activity small{display:block}.simple-user-activity strong{font-size:12px}.simple-user-activity small,.simple-user-activity b{font-size:10px;color:var(--muted)}.simple-capture-action{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;margin-top:13px;padding:11px;background:#f0fdfa;border:1px solid #99f6e4;border-radius:7px;color:#0f766e}.simple-capture-action>i{width:18px}.simple-capture-action span{display:grid}.simple-capture-action small{font-size:10px;color:#52756f}.user-password-reset{display:grid!important;grid-template-columns:1fr auto;gap:10px;align-items:end}.user-password-reset label{font-size:12px;font-weight:750}.user-password-reset input{margin-top:5px}
@media(max-width:1000px){.simple-dashboard-grid{grid-template-columns:1fr}.type-count-list{grid-template-columns:repeat(3,1fr)}}
@media(max-width:700px){.simple-dashboard-head{align-items:flex-start}.simple-dashboard-head h1{font-size:24px}.simple-dashboard-head .btn{font-size:0;width:40px;height:40px;justify-content:center;padding:0}.simple-kpis{grid-template-columns:1fr 1fr}.simple-kpis>a:nth-child(2){border-right:0}.simple-kpis>a:nth-child(-n+2){border-bottom:1px solid var(--line)}.simple-kpis strong{font-size:23px}.type-count-list{grid-template-columns:1fr 1fr;gap:0 12px}.simple-panel{padding:14px}.user-password-reset{grid-template-columns:1fr}}

/* Mobile app gate and quick PIN unlock */
.mobile-gate{background:#f3f7f8}.pin-unlock-card{justify-items:center;text-align:center}.pin-unlock-card .activation-app-icon{margin-bottom:2px}.pin-native-input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.pin-dots{display:flex;justify-content:center;gap:16px;margin:8px 0 4px}.pin-dots span{width:15px;height:15px;border:2px solid #94a3b8;border-radius:50%;background:#fff;transition:.15s}.pin-dots span.filled{border-color:#0f766e;background:#0f766e;box-shadow:0 0 0 4px #ccfbf1}.pin-keypad{display:grid;grid-template-columns:repeat(3,64px);gap:10px;justify-content:center}.pin-keypad button,.pin-keypad a{display:grid;place-items:center;width:64px;height:52px;border:1px solid #d7e0e8;border-radius:8px;background:#f8fafc;color:#172033;font-size:21px;font-weight:800}.pin-keypad button:active{background:#dff7f2;transform:scale(.97)}.pin-keypad svg{width:20px}.pin-unlock-button{width:100%;margin-top:3px}.pin-help-link{font-size:12px;font-weight:750;color:#0f766e}.pin-shake{animation:pin-shake .3s linear}.apk-pin-create{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.apk-pin-create label{margin:0;font-size:12px;font-weight:750}.apk-pin-create input{margin-top:5px;text-align:center;letter-spacing:6px;font-weight:850}@keyframes pin-shake{25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}

/* Field capture: fast, thumb-friendly mobile workflow */
.mobile-capture{max-width:920px;margin:0 auto}.capture-command-panel{padding:20px}.capture-primary-actions{display:grid;grid-template-columns:1fr auto;gap:10px}.capture-record-hero{min-height:76px;justify-content:flex-start;padding:12px 16px;border-radius:8px}.capture-record-hero>i{width:27px;height:27px}.capture-record-hero>span{display:grid;text-align:left}.capture-record-hero strong{font-size:17px}.capture-record-hero small{font-size:11px;font-weight:500;opacity:.82}.capture-stop-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:88px;border:1px solid #fecaca;border-radius:8px;background:#fff1f2;color:#be123c;font-weight:800}.capture-stop-button:disabled{opacity:.45}.capture-stop-button svg{width:18px}.capture-live-status{min-height:20px}.capture-proof-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.capture-proof-button{display:flex;align-items:center;gap:10px;min-height:64px;margin:0;border:1px solid #cbd5e1;border-radius:8px;background:#f8fafc;color:#172033;padding:10px 12px;text-align:left;cursor:pointer}.capture-proof-button>svg{flex:0 0 23px;color:#0f766e}.capture-proof-button>span{display:grid;min-width:0}.capture-proof-button strong{font-size:13px}.capture-proof-button small{font-size:10px;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.capture-proof-button input{display:none}.capture-location-accuracy{color:#64748b;margin-top:-6px}.capture-transcript-details{border-top:1px solid #e2e8f0;padding-top:8px}.capture-transcript-details summary,.capture-more-panel>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;list-style:none}.capture-transcript-details summary::-webkit-details-marker,.capture-more-panel>summary::-webkit-details-marker{display:none}.capture-transcript-details summary span{font-size:13px;font-weight:800}.capture-transcript-details summary small,.capture-more-panel>summary small{color:#64748b}.capture-transcript-details[open] summary{margin-bottom:9px}.visually-clean{font-size:12px;font-weight:750}.capture-analyze-button{display:flex;align-items:center;justify-content:center;gap:8px}.capture-analyze-button svg{width:18px}.capture-essential-panel{border-left:4px solid #0f766e}.capture-essential-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:11px}.capture-essential-grid label,.capture-details-grid label{font-weight:750;font-size:12px}.capture-essential-grid input,.capture-essential-grid select,.capture-details-grid input,.capture-details-grid select{margin-top:5px}.capture-more-panel{padding:0!important}.capture-more-panel>summary{padding:16px 18px}.capture-more-panel>summary>span{display:flex;align-items:center;gap:9px}.capture-more-panel>summary svg{width:18px;color:#0f766e}.capture-more-panel[open]>summary{border-bottom:1px solid #e2e8f0}.capture-more-panel .capture-details-grid{padding:16px 18px}.capture-notes-field{grid-column:1/-1}.capture-save-bar button{display:inline-flex;align-items:center;justify-content:center;gap:7px}.capture-save-bar button svg{width:18px}
@media(max-width:760px){.admin-content:has(.mobile-capture){padding:10px 10px 92px}.mobile-capture-head{margin:0 2px 10px}.mobile-capture-head h1{font-size:23px;margin:1px 0}.mobile-capture-head p{font-size:12px}.capture-command-panel{padding:14px;margin:0 -2px;border-top-width:3px}.capture-command-title{display:flex}.capture-command-title h2{font-size:18px}.capture-command-title .capture-ai-state{font-size:9px;white-space:nowrap}.capture-primary-actions{grid-template-columns:1fr 72px}.capture-record-hero{min-height:70px}.capture-stop-button{min-width:72px}.capture-proof-actions{gap:7px}.capture-proof-button{padding:9px;min-height:60px}.capture-essential-panel{padding:14px!important;margin:0 -2px}.capture-essential-panel .rough-section-title{display:flex}.capture-essential-panel .rough-section-title h2{font-size:18px}.capture-essential-panel .rough-section-title small{font-size:10px}.capture-essential-grid{grid-template-columns:1fr 1fr;gap:9px 7px}.capture-essential-grid label:nth-child(2),.capture-essential-grid label:nth-child(3){grid-column:1/-1}.capture-more-panel{margin:0 -2px}.capture-more-panel>summary{padding:14px}.capture-more-panel .capture-details-grid{padding:13px;grid-template-columns:1fr 1fr}.capture-more-panel .capture-details-grid label:nth-last-child(1){grid-column:1/-1}.field-photo-preview:not(:empty){margin-top:2px}.capture-save-bar{left:8px;right:8px;bottom:61px;padding:8px}.capture-save-bar .btn{height:48px;font-size:15px}.apk-pin-create{grid-template-columns:1fr 1fr}.app-activation-card{padding:22px 18px}.pin-keypad{grid-template-columns:repeat(3,62px)}.pin-keypad button,.pin-keypad a{width:62px}}
@media(max-width:390px){.capture-essential-grid,.capture-more-panel .capture-details-grid{grid-template-columns:1fr}.capture-essential-grid label:nth-child(n),.capture-more-panel .capture-details-grid label:nth-child(n){grid-column:1}.capture-proof-button small{max-width:105px}.apk-pin-create{grid-template-columns:1fr}}
.capture-record-button.capture-record-hero>span{width:auto;height:auto;border-radius:0;background:transparent;flex:1}.capture-spinner{display:inline-block!important;flex:0 0 17px!important;width:17px!important;height:17px!important;border:2px solid currentColor;border-right-color:transparent;border-radius:50%!important;background:transparent!important;animation:capture-spin .7s linear infinite}@keyframes capture-spin{to{transform:rotate(360deg)}}

/* Shared recording feedback for web, PWA and APK WebView */
.recording-ticker{display:inline-flex!important;align-items:center;justify-content:center;gap:5px;flex:0 0 auto!important;width:auto!important;height:30px!important;padding:0 8px;border-radius:6px!important;background:#7f1d1d!important;color:#fff!important;font-variant-numeric:tabular-nums;box-shadow:0 4px 12px rgba(127,29,29,.25)}
.recording-ticker[hidden]{display:none!important}.recording-ticker b{font-size:9px;letter-spacing:.08em}.recording-ticker time{font-size:12px;font-weight:900;letter-spacing:0}.recording-dot{width:8px!important;height:8px!important;flex:0 0 8px!important;border-radius:50%!important;background:#fecaca!important;animation:recording-pulse 1s ease-in-out infinite}.recording-wave{display:flex!important;align-items:center;gap:2px;width:auto!important;height:15px!important;background:transparent!important}.recording-wave i{display:block;width:2px;height:6px;border-radius:2px;background:#fff;animation:recording-bar .75s ease-in-out infinite}.recording-wave i:nth-child(2){animation-delay:.14s}.recording-wave i:nth-child(3){animation-delay:.28s}.recording-ticker.compact{height:26px!important;padding:0 6px}
.capture-record-button,.capture-stop-button,#record-start,#record-stop,#property-record-start,#property-record-stop,#correction-record-start,#correction-record-stop{transition:transform .14s ease,background .18s ease,color .18s ease,border-color .18s ease,box-shadow .18s ease}.capture-record-button:active,.capture-stop-button:active,#record-start:active,#record-stop:active,#property-record-start:active,#property-record-stop:active,#correction-record-start:active,#correction-record-stop:active{transform:scale(.97)}
.capture-record-button.is-arming{border-color:#f59e0b!important;background:#fffbeb!important;color:#92400e!important}.capture-record-button.is-recording,#record-start.is-recording,#property-record-start.is-recording,#correction-record-start.is-recording{border-color:#b91c1c!important;background:#dc2626!important;color:#fff!important;box-shadow:0 0 0 4px rgba(220,38,38,.14),0 8px 22px rgba(185,28,28,.24);opacity:1!important}.capture-record-button.is-captured{border-color:#059669!important;background:#ecfdf5!important;color:#047857!important}.capture-stop-button.is-ready,#record-stop.is-ready,#property-record-stop.is-ready,#correction-record-stop.is-ready{border-color:#be123c!important;background:#be123c!important;color:#fff!important;opacity:1!important;box-shadow:0 7px 18px rgba(190,18,60,.22)}.capture-stop-button.is-stopping,#record-stop.is-stopping,#property-record-stop.is-stopping,#correction-record-stop.is-stopping{transform:scale(.96);background:#881337!important;color:#fff!important}.btn.recording{border-color:#b91c1c!important;background:#dc2626!important;color:#fff!important;box-shadow:0 0 0 4px rgba(220,38,38,.13)}
@keyframes recording-pulse{0%,100%{opacity:.4;transform:scale(.75)}50%{opacity:1;transform:scale(1)}}@keyframes recording-bar{0%,100%{height:5px}50%{height:14px}}
@media(max-width:480px){.capture-record-hero{padding:10px 11px}.capture-record-hero strong{font-size:15px}.recording-wave{display:none!important}.recording-ticker{padding:0 7px;gap:4px}.recording-ticker time{font-size:11px}}

/* Call recording leads */
.lead-head .btn{display:inline-flex;align-items:center;gap:7px}.lead-head .btn svg{width:17px}.lead-search{display:flex;align-items:center;gap:9px;background:#fff;border:1px solid var(--line);border-radius:8px;padding:8px 12px;margin-bottom:12px}.lead-search svg{width:18px;color:#64748b}.lead-search input{border:0;box-shadow:none}.lead-list{display:grid;gap:8px}.lead-row{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;padding:14px;background:#fff;border:1px solid var(--line);border-radius:8px;color:var(--ink)}.lead-row:hover{border-color:#94a3b8}.lead-avatar{display:grid;place-items:center;width:42px;height:42px;border-radius:8px;background:#dff7f2;color:#0f766e;font-weight:900}.lead-avatar.large{width:54px;height:54px;font-size:20px}.lead-row>div{min-width:0}.lead-row strong,.lead-row small{display:block}.lead-row small{color:#64748b}.lead-row p{margin:4px 0 0;color:#475569;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lead-time{display:flex;align-items:center;gap:8px;color:#64748b;font-size:11px}.lead-time svg{width:17px}.lead-import{max-width:850px;margin:0 auto;display:grid;gap:12px}.lead-import-hero,.lead-analysis-fields,.lead-overview,.lead-timeline{display:grid;gap:13px;background:#fff;border:1px solid var(--line);border-radius:8px;padding:18px}.lead-import-hero{border-top:4px solid #0f766e}.lead-contact-row{display:grid;grid-template-columns:auto 1fr 1fr;gap:10px;align-items:end}.lead-contact-row label,.lead-call-meta label,.lead-analysis-fields>label{font-size:12px;font-weight:750}.lead-contact-picker{display:flex;align-items:center;gap:9px;height:58px;border:1px solid #99f6e4;border-radius:8px;background:#f0fdfa;color:#0f766e;padding:9px 12px;text-align:left}.lead-contact-picker svg{width:22px}.lead-contact-picker span{display:grid}.lead-contact-picker small{font-size:10px;color:#52756f}.lead-recording-picker{display:flex;align-items:center;gap:12px;min-height:78px;border:1px dashed #0f766e;border-radius:8px;background:#f0fdfa;padding:14px;cursor:pointer}.lead-recording-picker svg{width:29px;color:#0f766e}.lead-recording-picker span{display:grid;min-width:0}.lead-recording-picker strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lead-recording-picker small{color:#64748b}.lead-recording-picker input{display:none}.lead-call-meta{display:grid;grid-template-columns:1fr 1fr;gap:10px}.lead-analysis-fields h2{font-size:20px;margin:2px 0}.lead-consent{display:flex;align-items:flex-start;gap:10px;padding:12px;border:1px solid #fde68a;background:#fffbeb;border-radius:8px;font-size:12px;color:#713f12}.lead-consent input{margin-top:2px;width:18px;height:18px}.lead-save{display:flex;align-items:center;justify-content:center;gap:8px}.lead-profile-head{display:grid;grid-template-columns:auto auto 1fr auto;align-items:center;gap:12px;margin-bottom:14px}.lead-profile-head>a:first-child{display:grid;place-items:center;width:36px;height:36px;border:1px solid var(--line);border-radius:7px;color:#334155}.lead-profile-head>a svg{width:18px}.lead-profile-head h1{font-size:26px;margin:1px 0}.lead-profile-head>div>a{color:#0f766e;font-weight:800}.lead-detail-grid{display:grid;grid-template-columns:minmax(280px,.75fr) minmax(0,1.4fr);gap:14px;align-items:start}.lead-overview h2,.lead-timeline h2{font-size:19px}.lead-overview>p{color:#475569}.lead-overview dl{display:grid;margin:0}.lead-overview dl div{display:grid;grid-template-columns:110px 1fr;gap:8px;padding:9px 0;border-bottom:1px solid #edf2f7}.lead-overview dt{color:#64748b;font-size:12px}.lead-overview dd{margin:0;font-weight:700;font-size:13px}.lead-custom-form{display:grid;gap:9px;border-top:1px solid var(--line);padding-top:14px}.lead-custom-form label{font-size:12px;font-weight:750}.lead-custom-form input,.lead-custom-form textarea,.lead-custom-form select{margin-top:4px}.lead-timeline article{display:grid;grid-template-columns:auto 1fr;gap:10px;padding-bottom:14px;border-bottom:1px solid var(--line)}.lead-timeline article>div{min-width:0}.lead-timeline header{display:flex;justify-content:space-between;gap:10px}.lead-timeline time{font-size:11px;color:#64748b}.lead-timeline p{font-size:13px;color:#475569}.lead-timeline audio{width:100%;height:40px}.lead-timeline details{margin-top:8px}.lead-timeline summary{font-size:12px;font-weight:800;color:#0f766e;cursor:pointer}.lead-timeline details p{white-space:pre-wrap;max-height:240px;overflow:auto}.lead-field-builder{display:grid;grid-template-columns:1.2fr .8fr 1.4fr .6fr auto auto;gap:10px;align-items:end;margin-bottom:12px}.lead-field-builder label{font-size:12px;font-weight:750}.lead-required{display:flex;align-items:center;gap:7px;height:38px}.lead-required input{width:17px;height:17px}
@media(max-width:760px){.lead-head{align-items:flex-start}.lead-head h1{font-size:24px}.lead-head .btn{padding:9px;font-size:12px}.lead-row{grid-template-columns:auto 1fr;padding:11px}.lead-time{grid-column:2}.lead-time svg{display:none}.lead-import-hero,.lead-analysis-fields,.lead-overview,.lead-timeline{padding:14px}.lead-contact-row{grid-template-columns:1fr 1fr}.lead-contact-picker{grid-column:1/-1}.lead-call-meta{grid-template-columns:1fr 1fr}.lead-profile-head{grid-template-columns:auto auto 1fr}.lead-profile-head>.btn{grid-column:1/-1}.lead-detail-grid{grid-template-columns:1fr}.lead-field-builder{grid-template-columns:1fr 1fr}.lead-field-builder label:nth-child(3){grid-column:1/-1}.lead-field-builder .btn{grid-column:1/-1}.mobile-nav a,.mobile-nav button{min-width:0}}
@media(max-width:420px){.lead-contact-row,.lead-call-meta,.lead-field-builder{grid-template-columns:1fr}.lead-contact-picker,.lead-field-builder label:nth-child(3){grid-column:1}.lead-profile-head h1{font-size:21px}}
.apk-code-form{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}.apk-code-form input{width:112px;text-align:center;font-weight:850;letter-spacing:2px}.activation-pin-reveal{font-size:18px!important;color:#fef08a}.pin-help-link{border:0;background:transparent;cursor:pointer}.app-activation-card>label{width:100%;text-align:left;font-size:12px;font-weight:750}.app-activation-card>label input{margin-top:5px}@media(max-width:760px){.apk-code-form{display:grid;grid-template-columns:105px 1fr;width:100%}.apk-code-form input{width:100%}.apk-code-form .btn{width:100%;justify-content:center}}

/* Native mobile shell */
.mobile-app-actions{display:none}

/* Final property entry */
.section-eyebrow{display:block;color:#0f766e;font-size:10px;font-weight:900;letter-spacing:.08em;margin-bottom:5px}.final-entry-head{align-items:end}.final-entry-form{display:grid;gap:14px;max-width:1180px}.entry-section{background:#fff;border:1px solid #dfe6ec;border-radius:8px;overflow:hidden;box-shadow:0 3px 14px rgba(15,23,42,.035)}.entry-section>header{display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:11px;padding:14px 17px;border-bottom:1px solid #e8edf2;background:#fbfcfd}.entry-section>header h2{font-size:17px;margin:0;color:#172033}.entry-section>header p{font-size:11px;color:#718096;margin:2px 0 0}.entry-section>header>b{color:#cbd5e1;font-size:13px}.entry-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:7px;background:#e6f5f2;color:#0f766e}.entry-icon svg{width:19px}.entry-icon.amber{background:#fff4d6;color:#a16207}.entry-icon.blue{background:#e8f1ff;color:#2563eb}.entry-icon.rose{background:#fff0f3;color:#be123c}.entry-icon.slate{background:#edf2f7;color:#475569}.entry-grid{padding:16px 18px}.entry-grid label{font-size:12px;font-weight:800;color:#344054}.entry-grid .form-control,.entry-grid .form-select{margin-top:5px;min-height:44px}.entry-wide{grid-column:1/-1}.entry-location-bar{display:flex;align-items:center;gap:12px;padding:0 18px 16px}.entry-location-bar .btn{display:inline-flex;align-items:center;gap:7px}.entry-location-bar svg{width:17px}.entry-location-bar span{font-size:11px;color:#64748b}.entry-price-helper{align-self:end;min-height:44px;display:flex;align-items:center}.entry-media-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:16px 18px 4px}.entry-upload{display:grid;grid-template-columns:42px 1fr;grid-template-rows:auto auto;gap:0 12px;align-items:center;min-height:92px;padding:14px;border:1px dashed #94a3b8;border-radius:8px;background:#f8fafc;cursor:pointer}.entry-upload>svg{grid-row:1/3;width:24px;height:24px;padding:9px;box-sizing:content-box;border-radius:7px;background:#e6f5f2;color:#0f766e}.entry-upload.document>svg{background:#fff0f3;color:#be123c}.entry-upload strong{font-size:13px}.entry-upload span{font-size:11px;color:#64748b}.entry-upload input{position:absolute;width:1px;height:1px;opacity:0}.entry-document-meta{padding-top:10px}.entry-submit-bar{position:sticky;bottom:10px;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;background:rgba(255,255,255,.97);border:1px solid #dce4eb;border-radius:8px;box-shadow:0 8px 30px rgba(15,23,42,.13)}.entry-submit-bar .btn{display:inline-flex;align-items:center;gap:8px}.entry-submit-bar svg{width:18px}

/* Colony plan library */
.colony-search{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;max-width:720px;margin-bottom:14px}.colony-search>svg{width:19px;color:#64748b}.colony-upload-panel{background:#fff;border:1px solid #dfe6ec;border-radius:8px;margin-bottom:15px}.colony-upload-panel>summary{display:flex;align-items:center;justify-content:space-between;padding:15px 17px;cursor:pointer}.colony-upload-panel>summary span{display:flex;align-items:center;gap:9px}.colony-upload-panel>summary svg{width:19px;color:#0f766e}.colony-upload-panel>summary small{color:#64748b}.colony-upload-panel>form{border-top:1px solid #e7ecf1;padding:0 17px 17px}.colony-plan-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.colony-plan-card{display:grid;grid-template-columns:92px 1fr;min-height:150px;background:#fff;border:1px solid #dde5eb;border-radius:8px;overflow:hidden}.plan-preview{display:grid;place-items:center;align-content:center;gap:7px;background:#eef5f4;color:#0f766e;text-decoration:none}.plan-preview svg{width:31px;height:31px}.plan-preview span{font-size:9px;font-weight:900}.colony-plan-card>div{padding:14px;min-width:0}.plan-area{font-size:9px;font-weight:900;color:#0f766e;text-transform:uppercase}.colony-plan-card h2{font-size:16px;margin:5px 0 2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.colony-plan-card p{font-size:12px;color:#64748b;margin:0 0 18px}.colony-plan-card footer{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#94a3b8}.colony-plan-card footer a{display:flex;align-items:center;gap:4px;color:#0f766e;font-weight:800;text-decoration:none}.colony-plan-card footer svg{width:13px}.colony-view-head{align-items:end}.back-link{display:inline-flex;align-items:center;gap:5px;font-size:11px;text-decoration:none;margin-bottom:7px}.back-link svg{width:14px}.page-actions{display:flex;gap:8px}.page-actions form{margin:0}.page-actions .btn{display:inline-flex;align-items:center;gap:6px}.page-actions svg{width:17px}.colony-description{background:#fff;border:1px solid #dfe6ec;border-radius:8px;padding:12px 15px}.pdf-workspace{height:calc(100vh - 235px);min-height:520px;border:1px solid #cfd8e3;border-radius:8px;overflow:hidden;background:#475569}.pdf-workspace iframe{width:100%;height:100%;border:0}.pdf-mobile-fallback{display:none;color:#fff;text-align:center;padding:24px}.pdf-mobile-fallback svg{width:36px}.rough-document-list{display:grid;gap:8px;margin-top:12px}.rough-document-list a{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;padding:10px 12px;border:1px solid #dfe6ec;border-radius:7px;text-decoration:none}.rough-document-list svg{width:18px}.rough-document-list span{display:grid;min-width:0}.rough-document-list strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rough-document-list small{font-size:10px;color:#64748b}

/* Provider settings */
.settings-workspace{display:grid;gap:14px}.settings-section{background:#fff;border:1px solid #dfe6ec;border-radius:8px;padding:17px}.settings-section>header{display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:11px;margin-bottom:16px}.settings-section>header>span:first-child{display:grid;place-items:center;width:40px;height:40px;border-radius:7px;background:#e6f5f2;color:#0f766e}.settings-section>header svg{width:20px}.settings-section h2{font-size:18px;margin:0}.settings-section header p{font-size:11px;color:#64748b;margin:2px 0 0}.switch-row{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:800}.switch-row input{width:18px;height:18px}.provider-picker{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-bottom:14px}.provider-picker label{cursor:pointer}.provider-picker input{position:absolute;opacity:0}.provider-picker label>span{display:grid;min-height:61px;padding:10px;border:1px solid #dce4eb;border-radius:7px;background:#fbfcfd}.provider-picker input:checked+span{border-color:#0f766e;background:#eaf7f4;box-shadow:inset 0 0 0 1px #0f766e}.provider-picker strong{font-size:12px}.provider-picker small{font-size:9px;color:#64748b;margin-top:3px}.provider-settings-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:11px}.provider-settings-grid article{padding:13px;border:1px solid #e3e8ee;border-radius:7px;background:#fcfdfe}.provider-settings-grid .local-provider-card{grid-column:1/-1}.provider-settings-grid h3{font-size:13px;margin:0 0 10px}.provider-settings-grid label{display:block;font-size:10px;font-weight:800;margin-top:8px}.provider-settings-grid .form-control{margin-top:4px}.provider-settings-grid p{font-size:10px;color:#64748b;margin:9px 0 0}.provider-status{display:flex;align-items:center;gap:10px;margin-top:13px;padding:11px;border-radius:7px;background:#fff7ed;color:#9a3412}.provider-status.ready{background:#ecfdf5;color:#047857}.provider-status>svg{width:20px}.provider-status div{display:grid}.provider-status strong{font-size:12px}.provider-status span{font-size:10px}.compact-setting>header{margin:0}.settings-save{justify-self:end;display:inline-flex;align-items:center;gap:7px}.settings-save svg{width:18px}.settings-test{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px;padding:13px 16px;background:#fff;border:1px solid #dfe6ec;border-radius:8px}.settings-test div{display:grid}.settings-test strong{font-size:13px}.settings-test span{font-size:10px;color:#64748b}.ai-log-section{margin-top:14px}.ai-log-section h2{margin-bottom:12px}
.active-provider-control{display:grid;grid-template-columns:minmax(240px,.8fr) minmax(320px,1.2fr);align-items:end;gap:18px;margin-bottom:16px;padding:16px;border:2px solid #0f766e;border-radius:8px;background:#f0fdfa}.active-provider-copy{display:grid}.active-provider-copy>span{font-size:9px;font-weight:900;color:#0f766e;letter-spacing:.08em}.active-provider-copy>strong{font-size:14px;margin-top:3px}.active-provider-copy>small{font-size:10px;color:#64748b;margin-top:3px}.active-provider-control label{font-size:11px;font-weight:850;color:#134e4a}.active-provider-control select{margin-top:5px;border-color:#5eead4;font-weight:750;background-color:#fff}
.user-voice-profiles{margin-bottom:14px}.voice-profile-note{display:flex;align-items:flex-start;gap:10px;padding:12px 14px;border:1px solid #bae6fd;border-radius:7px;background:#f0f9ff;color:#075985}.voice-profile-note>svg{width:20px;flex:0 0 auto}.voice-profile-note>div{display:grid}.voice-profile-note strong{font-size:12px}.voice-profile-note span{font-size:10px;color:#475569;margin-top:2px}.voice-profile-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-top:13px}.voice-profile-card{display:grid;gap:12px;padding:14px;border:1px solid #dce4eb;border-radius:8px;background:#fbfcfd}.voice-profile-user{display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:10px}.voice-profile-user>span{display:grid;place-items:center;width:42px;height:42px;border-radius:8px;background:#e2e8f0;color:#0f172a;font-weight:900}.voice-profile-user>div{display:grid;min-width:0}.voice-profile-user strong{font-size:13px}.voice-profile-user small{font-size:10px;color:#64748b}.engine-badge{font-style:normal;font-size:9px;font-weight:900;padding:5px 7px;border-radius:999px;background:#ccfbf1;color:#115e59}.voice-profile-controls{display:grid;grid-template-columns:1.25fr .75fr;gap:9px}.voice-profile-controls label{font-size:10px;font-weight:850;color:#334155}.voice-profile-controls select{margin-top:4px;font-size:12px}.voice-profile-device{display:grid;grid-template-columns:1fr 1fr;gap:8px}.voice-profile-device>span{display:grid;grid-template-columns:22px 1fr;column-gap:7px;align-items:center;padding:9px;border-radius:6px;background:#f1f5f9}.voice-profile-device svg{grid-row:1/3;width:18px;color:#0f766e}.voice-profile-device b{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.voice-profile-device small{font-size:9px;color:#64748b}.voice-profile-actions{display:flex;align-items:center;gap:13px}.voice-profile-actions label{display:flex;align-items:center;gap:5px;font-size:10px;font-weight:750}.voice-profile-actions .btn{margin-left:auto;display:inline-flex;align-items:center;gap:5px;font-size:11px}.voice-profile-actions .btn svg{width:15px}

@media(max-width:900px){.colony-plan-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.provider-picker{grid-template-columns:repeat(2,1fr)}.provider-settings-grid{grid-template-columns:1fr 1fr}.voice-profile-list{grid-template-columns:1fr}}
@media(max-width:760px){.final-entry-head{align-items:flex-start}.final-entry-form{gap:10px}.entry-section>header{padding:12px}.entry-grid{padding:13px;grid-template-columns:1fr 1fr}.entry-section .grid-3 label:last-of-type{grid-column:1/-1}.entry-location-bar{align-items:flex-start;padding:0 13px 13px}.entry-location-bar span{display:none}.entry-media-grid{grid-template-columns:1fr;padding:13px 13px 3px}.entry-document-meta{padding-top:9px}.entry-submit-bar{bottom:72px}.entry-submit-bar .form-check{font-size:10px}.entry-submit-bar .btn{font-size:13px}.capture-proof-actions{grid-template-columns:1fr 1fr}.capture-proof-actions .capture-proof-button:last-child{grid-column:1/-1}.colony-plan-grid{grid-template-columns:1fr}.colony-search{grid-template-columns:auto 1fr}.colony-search .btn{grid-column:2}.colony-view-head{align-items:flex-start}.page-actions{width:100%}.pdf-workspace{height:calc(100vh - 300px);min-height:420px}.provider-picker{grid-template-columns:1fr 1fr}.active-provider-control{grid-template-columns:1fr;gap:10px;padding:13px}.provider-settings-grid{grid-template-columns:1fr}.provider-settings-grid .local-provider-card{grid-column:auto}.settings-section{padding:13px}.settings-section>header{grid-template-columns:38px 1fr}.settings-section>header .switch-row{grid-column:2}.user-voice-profiles>header .super-admin-only{grid-column:2;justify-self:start;white-space:nowrap}.settings-test{align-items:flex-start;flex-direction:column}.voice-profile-controls,.voice-profile-device{grid-template-columns:1fr}.voice-profile-actions{align-items:stretch;display:grid;grid-template-columns:1fr 1fr}.voice-profile-actions .btn{grid-column:1/-1;margin:0;justify-content:center}.voice-profile-user{grid-template-columns:38px 1fr auto}.voice-profile-user>span{width:38px;height:38px}.voice-profile-note span{line-height:1.45}body:has(.user-voice-profiles) .mobile-capture-fab{display:none}}
@media(max-width:900px){
  body.native-app{background:#f3f6f8;overscroll-behavior-y:none}
  .native-app .admin-topbar{height:64px;padding-top:max(0px,env(safe-area-inset-top));border-bottom-color:#e5eaf0;box-shadow:0 2px 9px rgba(15,23,42,.05)}
  .native-app .topbar-context span{display:none}
  .native-app .topbar-context strong{font-size:17px}
  .native-app .admin-content{padding:14px 12px calc(84px + env(safe-area-inset-bottom))}
  .native-app .mobile-nav{height:68px;padding:5px 8px calc(5px + env(safe-area-inset-bottom));box-shadow:0 -5px 18px rgba(15,23,42,.08)}
  .native-app .mobile-nav a,.native-app .mobile-nav button{height:55px;font-size:10px;font-weight:700}
  .native-app .mobile-nav .mobile-add{height:54px;width:54px;flex-basis:58px;margin-top:-27px;border:4px solid #f3f6f8;box-shadow:0 7px 18px rgba(15,118,110,.32)}
  .native-app .mobile-nav .mobile-add span{display:block;font-size:9px;margin-top:1px}
  .native-app .form-control,.native-app .form-select{min-height:46px;font-size:16px}
  .mobile-app-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:-6px 0 14px}
  .mobile-app-actions a{display:flex;align-items:center;gap:10px;min-height:70px;padding:12px;background:#fff;border:1px solid #dfe6ec;border-radius:8px;color:#172033;box-shadow:0 3px 10px rgba(15,23,42,.035)}
  .mobile-app-actions a>svg{flex:0 0 35px;width:35px;height:35px;padding:8px;border-radius:8px;background:#e8f5f3;color:#0f766e}
  .mobile-app-actions a.primary{background:#0f766e;border-color:#0f766e;color:#fff}
  .mobile-app-actions a.primary>svg{background:rgba(255,255,255,.16);color:#fff}
  .mobile-app-actions span,.mobile-app-actions strong,.mobile-app-actions small{display:block;min-width:0}
  .mobile-app-actions strong{font-size:13px}
  .mobile-app-actions small{font-size:9px;color:#708092;margin-top:2px}
  .mobile-app-actions a.primary small{color:#ccfbf1}
  .native-app .simple-dashboard-head{margin:0 0 14px}
  .native-app .simple-dashboard-head p{font-size:11px}
  .native-app .simple-dashboard-head .btn{display:none}
  .native-app .simple-kpis{box-shadow:0 3px 12px rgba(15,23,42,.035)}
}

/* 2026-10 mobile CRM polish */
.guest-body{background:#f5f8fa}.guest-body .app-shell{max-width:none;min-height:100vh;padding:0}
.mobile-login-brand{display:flex;align-items:center;gap:12px;padding-bottom:16px;border-bottom:1px solid #e7edf2}
.mobile-login-brand .activation-app-icon{flex:0 0 46px;width:46px;height:46px;font-weight:900;font-size:16px}
.mobile-login-brand div{display:grid}.mobile-login-brand strong{font-size:17px;line-height:1.2}.mobile-login-brand small{font-size:11px;color:#718096;margin-top:3px}
.mobile-login-copy{display:grid;gap:3px}.mobile-login-copy h1{font-size:28px;line-height:1.15;margin:0}.mobile-login-copy p{font-size:13px;margin:0;color:#64748b}
.mobile-login-field{display:grid;gap:6px;font-size:12px;font-weight:800;color:#425166}.mobile-login-field>div{position:relative}.mobile-login-field svg{position:absolute;left:14px;top:15px;width:18px;height:18px;color:#718096;z-index:1}.mobile-login-field .form-control{height:50px;margin:0!important;padding:0 14px 0 44px;border-color:#cfdae4;border-radius:7px;font-size:16px}.mobile-login-field .form-control:focus{border-color:#0f766e;box-shadow:0 0 0 3px rgba(15,118,110,.12)}
.mobile-login-submit{height:50px;display:flex;align-items:center;justify-content:space-between;padding:0 17px;border-radius:7px;font-weight:800}.mobile-login-submit svg{width:19px}
.mobile-device-note{display:flex;align-items:flex-start;gap:8px;padding:10px;background:#f1f5f9;border-radius:7px;color:#64748b;font-size:10px;line-height:1.4}.mobile-device-note svg{flex:0 0 16px;width:16px;color:#0f766e}
.lead-filter-bar{display:grid;grid-template-columns:minmax(210px,1.5fr) repeat(5,minmax(110px,1fr)) auto auto;gap:8px;margin:0 0 14px}.lead-filter-bar input,.lead-filter-bar select{width:100%;height:42px;border:1px solid #d6e0e8;border-radius:7px;background:#fff;padding:0 10px;font-size:12px;color:#334155}.lead-filter-search{position:relative}.lead-filter-search svg{position:absolute;left:11px;top:12px;width:17px;color:#718096}.lead-filter-search input{padding-left:35px}.lead-filter-bar .btn{display:flex;align-items:center;gap:6px}.lead-filter-bar .btn svg,.lead-filter-bar .icon-button svg{width:16px}
.lead-head h1 b{display:inline-grid;place-items:center;min-width:28px;height:24px;padding:0 7px;border-radius:999px;background:#dff7f2;color:#0f766e;font-size:12px;vertical-align:middle}.lead-segment-chips{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}.lead-segment-chips span{padding:4px 7px;border:1px solid #d7e3eb;border-radius:999px;background:#f7fafc;color:#526173;font-size:10px;font-weight:750}.timeline-key-points{display:grid;gap:5px;margin:9px 0 10px;padding:10px 10px 10px 27px;background:#f7fafc;border-left:3px solid #14b8a6;color:#334155;font-size:12px}.timeline-recording-pending{display:flex;margin-top:8px;padding:8px 10px;background:#fff8e6;border:1px solid #fde7a5;border-radius:6px;color:#8a5b08;font-size:10px}
.mobile-capture-fab{display:none}

@media(max-width:900px){
  .mobile-nav{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;justify-content:stretch!important;padding:4px max(8px,env(safe-area-inset-right)) calc(4px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))!important;height:calc(64px + env(safe-area-inset-bottom))!important}
  .mobile-nav a,.mobile-nav button{width:100%;height:54px!important;padding:5px 2px;touch-action:manipulation}
  .mobile-capture-fab{position:fixed;right:14px;bottom:calc(76px + env(safe-area-inset-bottom));z-index:31;display:flex;align-items:center;gap:8px;height:44px;padding:0 15px;border:1px solid #0d655f;border-radius:8px;background:#0f766e;color:#fff;font-size:12px;font-weight:850;box-shadow:0 8px 22px rgba(15,118,110,.25);touch-action:manipulation}
  .mobile-capture-fab svg{width:18px}.mobile-capture-fab.active{background:#0b5f58;color:#fff}
  .admin-content{padding-bottom:calc(132px + env(safe-area-inset-bottom))}
  .lead-filter-bar{display:flex;overflow-x:auto;scroll-snap-type:x proximity;padding:1px 1px 7px;margin-right:-13px}.lead-filter-bar>*{flex:0 0 145px;scroll-snap-align:start}.lead-filter-bar .lead-filter-search{flex-basis:245px}.lead-filter-bar .btn{flex-basis:88px;justify-content:center}.lead-filter-bar .icon-button{flex:0 0 42px}
  .lead-profile-head{position:relative;padding:13px;margin:0 -2px 12px;background:#fff;border:1px solid #dde6ed;border-radius:8px}.lead-profile-head .lead-avatar.large{width:46px;height:46px}.lead-profile-head .rough-kicker{font-size:8px}.lead-profile-head h1{font-size:20px!important}.lead-profile-head>div>a{font-size:12px}.lead-profile-actions{gap:7px}.lead-profile-actions .btn{min-height:42px;justify-content:center}
  .lead-crm-main{gap:10px}.lead-timeline>.section-heading{margin-bottom:12px}.lead-timeline article{padding:4px 0 14px}.lead-timeline article header{display:grid;gap:4px}.lead-timeline time{order:2}.lead-timeline p{margin:7px 0}.lead-segment-chips{max-height:54px;overflow:hidden}
}

@media(max-width:560px){
  .mobile-gate{min-height:100dvh;align-items:center;padding:calc(18px + env(safe-area-inset-top)) 16px calc(18px + env(safe-area-inset-bottom))}
  .app-activation-card.app-login-card,.login-card{width:100%;max-width:390px;padding:20px 18px;border:0;box-shadow:0 8px 26px rgba(15,23,42,.08);gap:15px}
  .login-wrap{min-height:100dvh;padding:18px 16px}.login-card h1,.app-activation-card h1{font-size:28px}
  .lead-row{align-items:start}.lead-row .lead-avatar{width:38px;height:38px}.lead-row p{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.lead-time{font-size:10px}.lead-row-title strong{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}

/* Native app shell and Document Studio */
.brand-image{overflow:hidden}.brand-image img{width:100%;height:100%;object-fit:cover}
.super-admin-only{padding:5px 8px;border-radius:6px;background:#172033;color:#fff;font-size:9px;letter-spacing:.04em}.branding-settings-grid{display:grid;grid-template-columns:minmax(360px,1.3fr) minmax(230px,.7fr);gap:14px;align-items:end}.branding-settings-grid>label{font-size:11px;font-weight:800}.app-icon-setting{display:grid;grid-template-columns:64px 1fr;align-items:center;gap:13px}.app-icon-setting>img,.app-icon-setting>span{display:grid;place-items:center;width:64px;height:64px;border-radius:8px;object-fit:cover;background:#0f766e;color:#fff;font-weight:900}.app-icon-setting label{font-size:11px;font-weight:800}.app-icon-setting small{display:block;margin-top:4px;color:#718096;font-size:9px}.visibility-switches{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-top:15px}.visibility-switches label{position:relative;cursor:pointer}.visibility-switches input{position:absolute;opacity:0}.visibility-switches span{display:grid;grid-template-columns:24px 1fr;column-gap:7px;min-height:69px;padding:10px;border:1px solid #dce4eb;border-radius:7px;background:#f8fafc}.visibility-switches svg{grid-row:1/3;width:20px;color:#718096}.visibility-switches b{font-size:11px}.visibility-switches small{font-size:9px;color:#718096}.visibility-switches input:checked+span{border-color:#0f766e;background:#eaf7f4;box-shadow:inset 0 0 0 1px #0f766e}.visibility-switches input:checked+span svg{color:#0f766e}

.mobile-login-hero{display:none}.mobile-login-copy h2{margin:0;font-size:24px;line-height:1.2}.app-login-card{align-content:start}
.lead-document-shelf{background:#fff;border:1px solid #cfe3df;border-left:4px solid #0f766e;padding:15px}.lead-document-shelf>.section-heading{margin-bottom:10px}.lead-document-shelf>div:last-child{display:grid}.lead-document-shelf article{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:9px;padding:9px 0;border-bottom:1px solid #edf2f5}.lead-document-shelf article:last-child{border-bottom:0}.lead-document-shelf article>span{display:grid;place-items:center;width:36px;height:36px;border-radius:7px;background:#e9f7f4;color:#0f766e}.lead-document-shelf article>span svg{width:18px}.lead-document-shelf article>div{display:grid;min-width:0}.lead-document-shelf article strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lead-document-shelf article small{font-size:9px;color:#718096}.lead-document-shelf .whatsapp{color:#15803d;border-color:#bbf7d0}

.document-studio{max-width:1120px;margin:0 auto 80px}.studio-head{display:flex;align-items:center;gap:12px;margin-bottom:14px}.studio-head>div{min-width:0}.studio-head span{font-size:9px;font-weight:900;color:#0f766e;letter-spacing:.08em}.studio-head h1{font-size:28px;margin:1px 0}.studio-head p{margin:0;color:#64748b;font-size:12px}.studio-command{display:grid;gap:11px;padding:18px;border:1px solid #cfdde4;border-top:4px solid #0f766e;border-radius:8px;background:#fff;box-shadow:0 5px 18px rgba(15,23,42,.05)}.studio-assistant{display:flex;align-items:center;gap:10px}.studio-assistant>span{display:grid;place-items:center;width:40px;height:40px;border-radius:8px;background:#e7f7f3;color:#0f766e}.studio-assistant svg{width:20px}.studio-assistant div{display:grid}.studio-assistant strong{font-size:15px}.studio-assistant small{font-size:10px;color:#718096}.studio-command textarea{min-height:98px;font-size:15px;line-height:1.5}.studio-command-actions{display:flex;justify-content:flex-end;gap:8px}.studio-command-actions .btn{display:flex;align-items:center;gap:7px}.studio-command-actions svg{width:17px}.studio-command .speech-status{text-align:right}.studio-results{display:grid;gap:13px;margin-top:14px}.studio-options,.studio-property-results{padding:17px;border:1px solid #dbe4ea;border-radius:8px;background:#fff}.studio-options>header{display:flex;align-items:end;justify-content:space-between;margin-bottom:12px}.studio-options header span{font-size:9px;font-weight:900;color:#0f766e}.studio-options h2{font-size:19px;margin:1px 0}.studio-options header b{padding:5px 8px;border-radius:6px;background:#e9f7f4;color:#0f766e;font-size:10px}.studio-title{display:grid;gap:5px;font-size:11px;font-weight:800;margin-bottom:12px}.studio-option-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.studio-option-grid label{cursor:pointer}.studio-option-grid input{position:absolute;opacity:0}.studio-option-grid span{display:flex;align-items:center;gap:7px;min-height:42px;padding:9px;border:1px solid #dae3ea;border-radius:7px;background:#f9fbfc;font-size:11px;font-weight:750}.studio-option-grid svg{width:16px;color:#718096}.studio-option-grid input:checked+span{border-color:#0f766e;background:#eaf7f4;color:#0b5f58}.studio-option-grid input:checked+span svg{color:#0f766e}.studio-property-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px}.studio-property-card{position:relative;display:grid;grid-template-columns:92px 1fr;min-height:106px;border:1px solid #dae3ea;border-radius:8px;overflow:hidden;background:#fff;cursor:pointer}.studio-property-card>input{position:absolute;opacity:0}.studio-property-card>img{width:92px;height:100%;object-fit:cover}.studio-property-card>div{display:grid;align-content:center;min-width:0;padding:9px}.studio-property-card small{font-size:8px;color:#0f766e;font-weight:900}.studio-property-card strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.studio-property-card p{margin:3px 0;color:#64748b;font-size:9px}.studio-property-card b{font-size:11px}.studio-check{position:absolute;left:6px;top:6px;display:grid;place-items:center;width:22px;height:22px;border-radius:6px;background:rgba(255,255,255,.92);color:transparent;border:1px solid #cbd5e1}.studio-check svg{width:14px}.studio-property-card:has(input:checked){border-color:#0f766e;box-shadow:inset 0 0 0 1px #0f766e}.studio-property-card input:checked~.studio-check{background:#0f766e;color:#fff;border-color:#0f766e}.studio-generate-bar{position:sticky;bottom:10px;z-index:8;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 13px;border:1px solid #cfd9e0;border-radius:8px;background:rgba(255,255,255,.96);box-shadow:0 10px 30px rgba(15,23,42,.14);backdrop-filter:blur(10px)}.studio-generate-bar>div{display:flex;align-items:center;gap:9px}.studio-generate-bar>div>svg{width:22px;color:#0f766e}.studio-generate-bar span{display:grid}.studio-generate-bar strong{font-size:12px}.studio-generate-bar small{font-size:9px;color:#718096}.studio-generate-bar .btn{display:flex;align-items:center;gap:7px}.studio-empty{display:grid;justify-items:center;text-align:center;padding:50px 20px;color:#64748b}.studio-empty svg{width:38px;color:#94a3b8}.studio-empty h2{font-size:20px;color:#334155;margin:9px 0 3px}.studio-empty p{margin:0}

@media(max-width:900px){.visibility-switches{grid-template-columns:repeat(2,1fr)}.branding-settings-grid{grid-template-columns:1fr}.studio-property-grid{grid-template-columns:1fr 1fr}.native-app .admin-body{background:#eef3f5}.native-app .admin-topbar{height:58px;background:#0d443f;color:#fff;border:0;box-shadow:none}.native-app .admin-topbar .icon-button{border-color:rgba(255,255,255,.22);background:transparent;color:#fff}.native-app .topbar-context strong{color:#fff;font-size:16px}.native-app .topbar-add{background:#fff;color:#0f766e;border-color:#fff}.native-app .admin-content{padding:12px 11px calc(136px + env(safe-area-inset-bottom));background:#eef3f5}.native-app .mobile-nav{background:#fff;border-top-color:#d7e2e7;box-shadow:0 -7px 22px rgba(15,23,42,.09)}.native-app .mobile-nav a.active{position:relative}.native-app .mobile-nav a.active:before{content:"";position:absolute;top:0;width:24px;height:3px;border-radius:0 0 3px 3px;background:#0f766e}.native-app .mobile-capture-fab{right:11px;height:46px;border:0;box-shadow:0 9px 24px rgba(15,118,110,.34)}.native-app .simple-dashboard-head{padding:4px 2px 8px}.native-app .simple-dashboard-head h1{font-size:22px;line-height:1.15}.native-app .simple-dashboard-head p{font-size:11px}.native-app .simple-kpis{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;margin:0 -11px 12px;padding:0 11px 7px;box-shadow:none}.native-app .simple-kpis a{flex:0 0 150px;scroll-snap-align:start;border-radius:8px;box-shadow:0 3px 12px rgba(15,23,42,.05)}.native-app .simple-dashboard-grid{grid-template-columns:1fr;gap:10px}.native-app .simple-panel{border-radius:8px;box-shadow:0 3px 14px rgba(15,23,42,.045)}.native-app .mobile-app-actions{display:flex;overflow-x:auto;margin:0 -11px 13px;padding:0 11px 6px;scroll-snap-type:x mandatory}.native-app .mobile-app-actions a{flex:0 0 158px;min-height:76px;scroll-snap-align:start}.native-app .workspace-head{margin-bottom:12px}.native-app .lead-quick-add{border-radius:8px;box-shadow:0 3px 12px rgba(15,23,42,.04)}.native-app .lead-row{border:0;box-shadow:0 2px 9px rgba(15,23,42,.055)}.native-app .lead-profile-form,.native-app .lead-followups,.native-app .lead-activity-composer,.native-app .lead-photo-strip,.native-app .lead-timeline,.native-app .lead-custom-details,.native-app .lead-document-shelf{border-radius:8px;border-left:1px solid #dbe4ea;border-right:1px solid #dbe4ea}.native-app button,.native-app a{-webkit-tap-highlight-color:transparent}.native-app button:active,.native-app .btn:active,.native-app .mobile-app-actions a:active{transform:scale(.985)} }

@media(max-width:600px){.guest-body .app-shell{padding:0}.mobile-gate{display:grid;grid-template-rows:minmax(220px,38vh) 1fr;min-height:100dvh;padding:0;background:#fff}.mobile-login-hero{display:grid;align-content:space-between;padding:calc(26px + env(safe-area-inset-top)) 22px 38px;background:#0d443f;color:#fff}.mobile-login-hero-brand{display:flex;align-items:center;gap:11px}.mobile-login-hero-brand>img,.mobile-login-hero-brand>span{display:grid;place-items:center;width:46px;height:46px;border-radius:8px;object-fit:cover;background:#fff;color:#0f766e;font-weight:900}.mobile-login-hero-brand div{display:grid}.mobile-login-hero-brand strong{font-size:16px}.mobile-login-hero-brand small{font-size:9px;color:#b9d8d4}.mobile-login-hero-copy>span{font-size:8px;font-weight:900;letter-spacing:.12em;color:#8de1d6}.mobile-login-hero-copy h1{font-size:28px;line-height:1.08;margin:5px 0;letter-spacing:0}.mobile-login-hero-copy p{max-width:310px;margin:0;color:#c9dfdc;font-size:11px}.app-activation-card.app-login-card{align-self:stretch;width:100%;max-width:none;margin-top:-20px;padding:25px 20px calc(18px + env(safe-area-inset-bottom));border:0;border-radius:8px 8px 0 0;box-shadow:0 -8px 24px rgba(6,39,36,.14);gap:14px}.app-login-card .mobile-login-copy h2{font-size:22px}.app-login-card .mobile-login-field .form-control{height:52px}.app-login-card .mobile-login-submit{height:52px}.document-studio{margin:0 -1px}.studio-head{align-items:flex-start}.studio-head h1{font-size:22px}.studio-command{padding:14px}.studio-command textarea{font-size:16px}.studio-command-actions{display:grid;grid-template-columns:1fr 1fr}.studio-command-actions .btn{justify-content:center;min-height:46px;font-size:11px}.studio-command .speech-status{text-align:left;font-size:10px}.studio-options,.studio-property-results{padding:13px}.studio-option-grid{grid-template-columns:1fr 1fr}.studio-property-grid{grid-template-columns:1fr}.studio-property-card{grid-template-columns:105px 1fr}.studio-property-card>img{width:105px}.studio-generate-bar{bottom:72px}.studio-generate-bar>div{display:none}.studio-generate-bar .btn{width:100%;justify-content:center;height:48px}.lead-profile-actions{display:grid;grid-template-columns:1fr 1fr}.lead-profile-actions .btn:first-child{grid-column:1/-1}.lead-document-shelf article{grid-template-columns:auto minmax(0,1fr) auto auto}}

/* Mobile lead workspace and document studio */
.lead-profile-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px}.lead-profile-back{display:grid;place-items:center;width:40px;height:40px;border:1px solid #d7e0e8;border-radius:7px;background:#fff;color:#334155}.lead-profile-back svg{width:18px}.lead-profile-identity{display:flex;align-items:center;gap:11px;min-width:0}.lead-profile-identity>div{min-width:0}.lead-profile-identity h1{margin:1px 0;font-size:26px;line-height:1.12;overflow-wrap:anywhere}.lead-profile-identity a{color:#0f766e;font-size:12px;font-weight:850}.lead-profile-actions{justify-content:flex-end}.lead-profile-actions .btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px}.lead-profile-actions svg{width:17px}.lead-profile-panel{overflow:hidden;background:#fff;border:1px solid #dbe4ea;border-radius:8px}.lead-profile-panel>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;list-style:none;cursor:pointer}.lead-profile-panel>summary::-webkit-details-marker{display:none}.lead-profile-panel>summary>span:first-child{display:grid;grid-template-columns:28px 1fr;column-gap:8px;align-items:center;min-width:0}.lead-profile-panel>summary svg{grid-row:1/3;width:19px;color:#0f766e}.lead-profile-panel>summary b{font-size:14px}.lead-profile-panel>summary small{font-size:10px;color:#718096;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lead-profile-panel[open]>summary{border-bottom:1px solid #e7edf2}.lead-profile-panel .lead-profile-form{border:0;border-radius:0}.lead-timeline article>.event-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:7px;background:#e8f5f3;color:#0f766e}.lead-timeline article>.event-icon svg{width:17px}.lead-timeline article:last-child{border-bottom:0}.lead-activity-save{display:inline-flex;align-items:center;justify-content:center;gap:7px}

@media(max-width:900px){
  html,body{max-width:100%;overflow-x:hidden}
  .admin-main,.admin-content,.lead-crm-grid,.lead-crm-sidebar,.lead-crm-main,.document-studio,.studio-results{min-width:0;max-width:100%}
  .lead-crm-sidebar{order:1;position:static}.lead-crm-main{order:2}
  .admin-body:has(.lead-profile-head) .mobile-capture-fab,.admin-body:has(.document-studio) .mobile-capture-fab{display:none}
}

@media(max-width:600px){
  .admin-content:has(.lead-profile-head),.admin-content:has(.document-studio){padding:10px 10px calc(84px + env(safe-area-inset-bottom))}
  .lead-profile-head{grid-template-columns:40px minmax(0,1fr);gap:10px;margin:0 0 10px;padding:12px;border:1px solid #dbe4ea;border-radius:8px;background:#fff;box-shadow:0 3px 14px rgba(15,23,42,.045)}
  .lead-profile-back{align-self:start}.lead-profile-identity{align-items:flex-start}.lead-profile-head .lead-avatar.large{flex:0 0 46px;width:46px;height:46px}.lead-profile-identity h1{font-size:21px!important}.lead-profile-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:7px;width:100%;margin:1px 0 0}.lead-profile-actions .btn{min-height:44px;padding:8px;font-size:12px}.lead-profile-actions .btn:first-child{grid-column:1/-1}.lead-profile-actions svg{width:18px}
  .lead-crm-grid{margin:0;gap:10px}.lead-crm-sidebar{gap:10px}.lead-profile-panel,.lead-followups,.lead-activity-composer,.lead-photo-strip,.lead-timeline,.lead-custom-details,.lead-document-shelf{border:1px solid #dbe4ea!important;border-radius:8px!important;padding:0;margin:0}.lead-profile-panel>summary{min-height:62px;padding:12px 13px}.lead-profile-panel .lead-profile-form{padding:13px}.lead-followups,.lead-activity-composer,.lead-photo-strip,.lead-timeline,.lead-custom-details,.lead-document-shelf{padding:13px}
  .lead-activity-composer>.section-heading{display:grid;grid-template-columns:1fr;gap:9px}.lead-activity-composer>.section-heading .compact{width:100%;max-width:none}.activity-type-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;overflow:visible}.activity-type-tabs label{min-width:0}.activity-type-tabs span{display:grid;place-items:center;min-height:40px;padding:6px 2px;border-radius:6px;font-size:9px;text-align:center;white-space:normal}.activity-media-row{display:grid;grid-template-columns:1fr 1fr;gap:7px}.activity-media-row .activity-file{min-width:0;min-height:44px;padding:8px 6px;border-radius:7px}.activity-media-row .btn{grid-column:1/-1;grid-row:auto;min-height:44px;justify-content:center}.activity-more{overflow:hidden}.activity-more summary{font-size:12px;line-height:1.35}.lead-activity-save{width:100%;min-height:48px}
  .lead-timeline>.section-heading{align-items:center}.lead-timeline>.section-heading h2{font-size:17px}.lead-timeline article{grid-template-columns:34px minmax(0,1fr);gap:9px;margin:0 -2px;padding:12px 2px;border-bottom:1px solid #e6edf2}.lead-timeline article header{display:grid;gap:3px}.lead-timeline article header strong{font-size:13px}.lead-timeline article header small,.lead-timeline time{font-size:9px}.lead-timeline article p{font-size:12px;line-height:1.45}.lead-timeline audio{height:42px}.timeline-key-points{font-size:11px}.timeline-properties a{font-size:10px}.timeline-followup{font-size:10px;line-height:1.4;border-radius:6px}
  .lead-document-shelf article{grid-template-columns:36px minmax(0,1fr) 38px 38px;gap:6px}.lead-document-shelf .icon-button{width:38px;height:38px}
  .document-studio{margin:0}.studio-head{display:grid;grid-template-columns:40px minmax(0,1fr);gap:9px;margin-bottom:10px}.studio-head .icon-button{width:40px;height:40px}.studio-head h1{font-size:21px;line-height:1.15}.studio-head p{font-size:10px}.studio-command{padding:13px;border-radius:8px}.studio-assistant>span{width:38px;height:38px}.studio-assistant strong{font-size:14px}.studio-command textarea{min-height:116px}.studio-command-actions{grid-template-columns:1fr}.studio-command-actions .btn{min-height:48px;font-size:12px}.studio-command-actions .btn-primary{order:-1}.studio-options,.studio-property-results{padding:13px;border-radius:8px}.studio-options>header{align-items:center}.studio-option-grid{gap:6px}.studio-option-grid span{min-height:46px;padding:8px;font-size:10px}.studio-property-results>.section-heading{align-items:center}.studio-property-grid{gap:8px}.studio-property-card{grid-template-columns:104px minmax(0,1fr);min-height:112px}.studio-property-card>img{width:104px}.studio-property-card strong{font-size:13px}.studio-property-card p{font-size:10px;white-space:normal}.studio-property-card b{font-size:12px}.studio-generate-bar{bottom:72px;padding:8px}.studio-generate-bar .btn{height:50px}
  .mobile-capture-fab{width:48px;height:48px;padding:0;justify-content:center;border-radius:50%}.mobile-capture-fab span{display:none}.mobile-capture-fab svg{width:20px}
}

/* Real Index Android shell v3: vertical-first, safe-area aware and thumb friendly. */
html.native-webview,
html.native-webview body{width:100%;min-height:100%;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior-y:auto!important;touch-action:pan-y pinch-zoom;-webkit-overflow-scrolling:touch}
html.native-webview body.native-app{position:static!important;height:auto!important;min-height:100dvh!important}
html.native-webview .admin-frame,
html.native-webview .admin-main{position:static!important;width:100%!important;min-width:0!important;min-height:100dvh!important;height:auto!important;overflow:visible!important}
html.native-webview .admin-topbar{position:sticky!important;top:0;z-index:30;height:calc(58px + env(safe-area-inset-top))!important;padding:env(safe-area-inset-top) 12px 0!important;display:grid!important;grid-template-columns:42px minmax(0,1fr) 42px;gap:9px;align-items:center;background:#0b4f49!important}
html.native-webview .admin-topbar .sidebar-toggle{width:42px;height:42px;margin:0!important}
html.native-webview .topbar-context{min-width:0}
html.native-webview .topbar-context strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:17px!important}
html.native-webview .topbar-search{display:none!important}
html.native-webview .topbar-add{display:grid!important;place-items:center;width:42px!important;height:42px!important;min-width:42px;padding:0!important;border-radius:10px!important;font-size:0!important}
html.native-webview .topbar-add svg{width:21px;height:21px;margin:0}
html.native-webview .admin-content{width:100%!important;min-width:0!important;padding:14px 12px calc(92px + env(safe-area-inset-bottom))!important;overflow:visible!important}
html.native-webview .admin-footer{display:none!important}
html.native-webview .mobile-nav{grid-template-columns:repeat(5,minmax(0,1fr))!important;height:calc(68px + env(safe-area-inset-bottom))!important;padding:4px 5px calc(4px + env(safe-area-inset-bottom))!important;z-index:40!important}
html.native-webview .mobile-nav a,
html.native-webview .mobile-nav button{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:100%!important;height:58px!important;min-width:0!important;padding:4px 1px!important;border:0;background:transparent;color:#64748b;font-size:10px!important;font-weight:750;line-height:1.1}
html.native-webview .mobile-nav svg{width:21px;height:21px}
html.native-webview .mobile-nav .mobile-nav-capture{align-self:start;width:52px!important;height:52px!important;margin:-13px auto 0!important;border-radius:50%!important;background:#0f766e!important;color:#fff!important;box-shadow:0 8px 20px rgba(15,118,110,.3)}
html.native-webview .mobile-nav .mobile-nav-capture span{position:absolute;top:49px;color:#0f766e;font-size:9px}
html.native-webview .mobile-nav-more{display:none!important}
html.native-webview .mobile-capture-fab{display:none!important}
html.native-webview .simple-dashboard{width:100%;min-width:0}
html.native-webview .simple-dashboard-head{padding:2px 1px 8px!important;margin:0 0 10px!important}
html.native-webview .simple-dashboard-head h1{font-size:23px!important;line-height:1.16;margin-top:2px}
html.native-webview .mobile-app-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;margin:0 0 12px!important;padding:0!important;overflow:visible!important}
html.native-webview .mobile-app-actions a{width:auto!important;min-width:0!important;min-height:74px!important;padding:11px!important;overflow:hidden}
html.native-webview .mobile-app-actions a>svg{flex:0 0 34px!important;width:34px!important;height:34px!important;padding:8px!important}
html.native-webview .mobile-app-actions strong{font-size:12px!important;white-space:normal}
html.native-webview .mobile-app-actions small{white-space:normal;line-height:1.25}
html.native-webview .simple-kpis{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%;margin:0 0 12px!important;padding:0!important;overflow:visible!important;border:1px solid #dfe6ec;border-radius:10px;background:#fff}
html.native-webview .simple-kpis a{width:auto!important;min-width:0!important;min-height:112px!important;padding:14px 12px!important;border-right:1px solid #e5ebef;border-bottom:1px solid #e5ebef;box-shadow:none!important}
html.native-webview .simple-kpis a:nth-child(2n){border-right:0}
html.native-webview .simple-kpis a:nth-last-child(-n+2){border-bottom:0}
html.native-webview .simple-kpis span,
html.native-webview .simple-kpis small{white-space:normal!important;overflow-wrap:anywhere}
html.native-webview .simple-dashboard-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%;gap:10px!important}
html.native-webview .simple-panel{width:100%;min-width:0;padding:14px!important;overflow:hidden}
html.native-webview .type-count-list{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:0 10px}
html.native-webview .type-count-list a{min-width:0}
html.native-webview .type-count-list span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.native-webview .lead-profile-head{width:100%;min-width:0;margin:0 0 10px!important;padding:12px!important}
html.native-webview .lead-profile-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
html.native-webview .lead-profile-actions .btn{width:100%;min-width:0!important;white-space:normal;line-height:1.2}
html.native-webview .lead-profile-actions .btn:first-child{grid-column:auto}
html.native-webview .lead-crm-grid,
html.native-webview .lead-crm-sidebar,
html.native-webview .lead-crm-main,
html.native-webview .lead-activity-composer{width:100%;min-width:0!important;max-width:100%!important;overflow:visible!important}
html.native-webview .activity-type-tabs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}
html.native-webview .activity-type-tabs span{min-height:44px!important;font-size:10px!important}
html.native-webview textarea{max-width:100%;resize:vertical}
@media(max-width:380px){html.native-webview .mobile-app-actions,html.native-webview .simple-kpis,html.native-webview .type-count-list{grid-template-columns:1fr!important}html.native-webview .simple-kpis a{border-right:0!important;border-bottom:1px solid #e5ebef!important}html.native-webview .simple-kpis a:last-child{border-bottom:0!important}}

/* Keep one document scroller; nested body scrolling breaks sticky mobile chrome. */
@media(max-width:900px){
  html,html.native-webview{height:auto!important;min-height:100%;overflow-x:clip!important;overflow-y:auto!important}
  body.admin-body,html.native-webview body.native-app{height:auto!important;min-height:100dvh!important;overflow:visible!important;touch-action:pan-y pinch-zoom}
  .admin-frame,.admin-main{height:auto!important;min-height:100dvh;min-width:0;overflow:visible!important}
  .lead-profile-head .lead-profile-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;align-items:stretch}
  .lead-profile-head .lead-profile-actions>.btn{width:100%;min-width:0!important;max-width:100%;min-height:48px;white-space:normal;overflow-wrap:break-word;line-height:1.3;padding:10px 8px;font-size:12px;grid-column:auto}
  .lead-profile-actions>.btn svg{flex:0 0 18px;width:18px;height:18px}
  .lead-profile-actions>.btn span{min-width:0}
  .lead-profile-actions>.btn:last-child{grid-column:1/-1}
  html:has(body.sidebar-open),html:has(body.visit-panel-open){overflow:hidden!important}
  body.admin-body.sidebar-open,body.admin-body.visit-panel-open{overflow:hidden!important;touch-action:none}
  .visit-panel-body,.sidebar-nav{touch-action:pan-y;overscroll-behavior-y:contain}
}

/* Mobile navigation drawer must own the full interaction layer while open. */
.sidebar-close{display:none;position:absolute;right:10px;top:10px;z-index:2;width:40px;height:40px;place-items:center;border:1px solid #334155;border-radius:7px;background:#1e293b;color:#fff}
.sidebar-close svg{width:20px;height:20px}
@media(max-width:900px){
  body.sidebar-open{overflow:hidden!important;touch-action:none}
  body.sidebar-open .admin-sidebar{left:0!important;top:0;bottom:0;height:100dvh;z-index:1002!important}
  body.sidebar-open .sidebar-scrim{display:block!important;position:fixed;inset:0;background:rgba(15,23,42,.62);z-index:1001!important}
  body.sidebar-open .mobile-nav{pointer-events:none!important;z-index:30!important}
  body.sidebar-open .mobile-capture-fab{pointer-events:none!important}
  .sidebar-close{display:grid}
  .sidebar-brand{padding-right:58px}
}

/* CRM ownership, handover and accountability. */
.lead-team-panel,.lead-audit-panel{padding:18px;border:1px solid #dbe4ea;border-radius:8px;background:#fff}
.lead-participant-list{display:grid;gap:8px;margin:12px 0}
.lead-participant-list>div{display:flex;align-items:center;gap:10px;padding:9px;border:1px solid #e6edf2;border-radius:7px}
.lead-participant-list>div>span{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:7px;background:#dff7f2;color:#0f766e;font-weight:800}
.lead-participant-list p{display:grid;gap:1px;margin:0;min-width:0}.lead-participant-list small{color:#64748b}
.lead-assignment-form{display:grid;gap:9px;margin-top:12px;padding-top:12px;border-top:1px solid #e6edf2}.lead-assignment-form label{display:grid;gap:5px;font-size:12px;font-weight:700}
.assignment-history{margin-top:12px;border-top:1px solid #e6edf2;padding-top:10px}.assignment-history summary{cursor:pointer;color:#0f766e;font-weight:800}
.assignment-history p{display:grid;gap:2px;margin:8px 0;padding-left:10px;border-left:3px solid #99e3d6}.assignment-history span{font-size:11px;color:#64748b}
.lead-audit-panel{margin-top:12px}.lead-audit-panel>summary{display:flex;align-items:center;gap:8px;cursor:pointer;font-weight:800}.lead-audit-panel>summary svg{width:18px;color:#0f766e}
.lead-audit-panel>div{display:grid;gap:0;margin-top:12px}.lead-audit-panel p{display:grid;grid-template-columns:30px minmax(0,1fr);gap:8px;margin:0;padding:9px 0;border-top:1px solid #edf1f4}.lead-audit-panel p>i{width:16px;color:#0f766e}.lead-audit-panel p span{display:grid;gap:2px}.lead-audit-panel small{color:#64748b}
@media(max-width:900px){.lead-team-panel,.lead-audit-panel{padding:13px;border-radius:8px}.lead-filter-bar{grid-template-columns:1fr 1fr}.lead-filter-search{grid-column:1/-1}.lead-filter-bar .btn{min-height:44px}}
@media(max-width:520px){.lead-filter-bar{grid-template-columns:1fr}.lead-filter-search{grid-column:auto}.lead-filter-bar>*{width:100%;min-width:0}.lead-team-panel{order:2}}
.lead-live-status{display:flex;align-items:center;gap:7px;min-height:34px;color:#475569;font-size:13px;padding:4px 2px 10px}.lead-live-status small{margin-left:auto;color:#64748b}.lead-live-dot{width:8px;height:8px;border-radius:50%;background:#10b981;box-shadow:0 0 0 4px #d1fae5}.lead-live-status.is-loading .lead-live-dot{background:#0f766e;animation:lead-live-pulse .75s ease-in-out infinite}.lead-live-status.has-error .lead-live-dot{background:#dc2626;box-shadow:0 0 0 4px #fee2e2}.filter-money{display:grid;gap:3px}.filter-money span{font-size:10px;font-weight:700;color:#64748b;text-transform:uppercase}.filter-money input{min-width:130px}.lead-filter-bar input,.lead-filter-bar select{transition:border-color .15s ease,box-shadow .15s ease}.lead-filter-bar input:focus,.lead-filter-bar select:focus{border-color:#0f766e;box-shadow:0 0 0 3px rgba(15,118,110,.12)}#lead-results[aria-busy="true"]{opacity:.58;pointer-events:none}.lead-row{content-visibility:auto;contain-intrinsic-size:112px}@keyframes lead-live-pulse{50%{transform:scale(.65);opacity:.45}}
@media(max-width:700px){.lead-filter-bar{display:grid;grid-template-columns:1fr 1fr;gap:9px}.lead-filter-search{grid-column:1/-1;position:sticky;top:64px;z-index:4;background:#fff}.lead-filter-bar>input,.lead-filter-bar>select,.lead-filter-bar>.filter-money{min-width:0;width:100%}.lead-filter-submit{display:none}.lead-live-status{position:sticky;top:122px;z-index:3;background:#f3f6f8;padding:8px 2px}.lead-live-status small{display:none}.lead-row{touch-action:manipulation}.lead-row:active{transform:scale(.992);background:#f0fdfa}}
