@layer er-earth {
html.er-earth body #app .er-owner-root{min-height:100dvh!important;background:var(--er-bg,#f4f6f5)!important;color:var(--er-ink,#25382d)!important;font-family:system-ui,sans-serif!important}
html.er-earth body #app .er-owner-header{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;padding:20px max(20px,calc((100vw - 1040px)/2))!important;background:#234c38!important;color:#fff!important}
html.er-earth body #app .er-owner-header>span b{font-size:23px!important;letter-spacing:-.04em!important}
html.er-earth body #app .er-owner-header small{display:block!important;font-size:12px!important;color:#dce9df!important}
html.er-earth body #app .er-owner-header>div{display:flex!important;align-items:center!important;gap:16px!important}
html.er-earth body #app .er-owner-header .er-owner-button{color:#fff!important;background:transparent!important;border-color:#7b9b87!important;min-height:38px!important}
html.er-earth body #app .er-owner-main{max-width:1000px!important;margin:auto!important;padding:36px 20px 60px!important}
html.er-earth body #app .er-owner-heading{margin-bottom:24px!important}
html.er-earth body #app .er-owner-heading>span{font-size:11px!important;font-weight:700!important;letter-spacing:.12em!important;color:var(--er-muted,#66786b)!important}
html.er-earth body #app .er-owner-heading h1{font-size:clamp(25px,4vw,34px)!important;line-height:1.2!important;letter-spacing:-.035em!important;margin:8px 0 10px!important}
html.er-earth body #app .er-owner-heading p,html.er-earth body #app .er-owner-card p{font-size:14px!important;line-height:1.6!important;color:var(--er-muted,#66786b)!important;margin:8px 0 16px!important;overflow-wrap:anywhere!important}
html.er-earth body #app .er-owner-card{padding:24px!important;background:var(--er-paper,#fff)!important;border:1px solid var(--er-line,#dae2dd)!important;border-radius:14px!important;box-shadow:0 3px 14px #18382505!important}
html.er-earth body #app .er-owner-card h2{font-size:18px!important;line-height:1.35!important;margin:10px 0 6px!important}
html.er-earth body #app .er-owner-form{display:grid!important;gap:16px!important;max-width:480px!important;min-width:0!important}
html.er-earth body #app .er-owner-form label{display:grid!important;gap:7px!important;font-size:13px!important;font-weight:600!important;min-width:0!important}
html.er-earth body #app .er-owner-form label small{font-weight:400!important;color:var(--er-muted,#66786b)!important}
html.er-earth body #app .er-owner-form input,html.er-earth body #app .er-owner-form textarea{box-sizing:border-box!important;min-width:0!important;max-width:100%!important;width:100%!important;height:46px!important;padding:10px 12px!important;border:1px solid var(--er-line,#d5dfd8)!important;border-radius:9px!important;background:var(--er-paper,#fff)!important;color:var(--er-ink,#25382d)!important;font:400 16px/24px system-ui!important}
html.er-earth body #app .er-owner-form textarea{height:90px!important}
html.er-earth body #app .er-owner-button{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:44px!important;padding:10px 16px!important;border:1px solid var(--er-line,#d5dfd8)!important;border-radius:9px!important;background:var(--er-paper,#fff)!important;color:var(--er-ink,#25382d)!important;font:600 13px/20px system-ui!important;cursor:pointer!important;box-shadow:none!important}
html.er-earth body #app .er-owner-button.primary{background:#245d47!important;border-color:#245d47!important;color:#fff!important}
html.er-earth body #app .er-owner-button:disabled{opacity:.55!important;cursor:wait!important}
html.er-earth body #app .er-owner-root :is(button,input,textarea,summary):focus-visible{outline:2px solid #a5bc89!important;outline-offset:3px!important}
html.er-earth body #app .er-owner-actions,html.er-earth body #app .er-owner-toolbar{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:10px!important}
html.er-earth body #app .er-owner-toolbar{margin-bottom:16px!important}
html.er-earth body #app .er-owner-companies{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr))!important;gap:16px!important}
html.er-earth body #app .er-owner-company{display:flex!important;flex-direction:column!important;justify-content:space-between!important;gap:12px!important}
html.er-earth body #app .er-owner-status{display:inline-block!important;padding:5px 8px!important;border-radius:6px!important;background:#eff2f0!important;color:#50685a!important;font-size:11px!important;font-weight:650!important}
html.er-earth body #app .er-owner-status.pending_approval{background:#e9f2eb!important;color:#245a40!important}
html.er-earth body #app .er-owner-status.pending_verification{background:#fff4db!important;color:#855f27!important}
html.er-earth body #app .er-owner-error{padding:12px 16px!important;border:1px solid #d8bc9c!important;border-radius:10px!important;background:#fbf2e7!important;color:#7b4c2f!important;font-size:13px!important;line-height:1.5!important;margin-bottom:20px!important}
html.er-earth body #app .er-owner-error[hidden]{display:none!important}
html.er-earth body #app .er-owner-footer{padding:20px!important;text-align:center!important;font-size:12px!important;color:var(--er-muted,#66786b)!important}
html.er-earth body #app .er-owner-qr{display:block!important;width:200px!important;height:200px!important;max-width:100%!important;margin:16px auto!important;padding:8px!important;background:#fff!important;border:1px solid #dae2dd!important;border-radius:8px!important}
html.er-earth body #app .er-owner-secret{font:500 14px/1.8 monospace!important;overflow-wrap:anywhere!important;user-select:all!important}
html.er-earth body #app .er-owner-card details summary{padding:10px 0!important;min-height:44px!important;cursor:pointer!important;font-size:13px!important}
@media(max-width:600px){html.er-earth body #app .er-owner-header{padding:16px!important;align-items:flex-start!important}html.er-earth body #app .er-owner-header>div{flex-direction:column!important;align-items:flex-end!important;gap:8px!important}html.er-earth body #app .er-owner-main{padding:24px 16px 40px!important}html.er-earth body #app .er-owner-card{padding:18px!important}html.er-earth body #app .er-owner-actions .er-owner-button{flex:1!important}}
}

.er-owner-company[data-owner-company="westwonders"]{border-color:#b9ccb8;background:#f5f8f1}.er-owner-owned-label{display:block;margin:10px 0 0;color:#476149;font-size:13px;line-height:1.7;font-weight:600}

/* V1452.33: clearer owner totals and active-company status. Shared by both owner entry points. */
@layer er-earth {
html.er-earth body #app .er-owner-counts{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;margin:0 0 20px!important}
html.er-earth body #app .er-owner-counts>.er-owner-count{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:6px!important;min-width:0!important;min-height:40px!important;padding:7px 10px!important;border:1px solid #c3cfb9!important;border-top:1px solid #7c926b!important;border-radius:11px!important;background:#f1f5eb!important;color:#334b38!important;box-shadow:0 3px 9px #17352209!important}
html.er-earth body #app .er-owner-counts>.er-owner-count b{display:block!important;margin:0!important;color:inherit!important;font-size:18px!important;font-weight:750!important;line-height:1!important;font-variant-numeric:tabular-nums!important}
html.er-earth body #app .er-owner-counts>.er-owner-count small{display:block!important;color:inherit!important;font-size:12px!important;font-weight:650!important;line-height:1.4!important}
html.er-earth body #app .er-owner-counts>.er-owner-count.pending{background:#fff4df!important;border-color:#dbc391!important;border-top-color:#b37a25!important;color:#79551e!important}
html.er-earth body #app .er-owner-counts>.er-owner-count.active{background:#245d47!important;border-color:#245d47!important;border-top-color:#418365!important;color:#fff!important}
html.er-earth body #app .er-owner-status.active{display:inline-flex!important;align-items:center!important;gap:6px!important;min-height:30px!important;padding:6px 10px!important;border:1px solid #246342!important;border-radius:7px!important;background:#246342!important;color:#fff!important;font-size:12px!important;font-weight:700!important;line-height:1.4!important}
html.er-earth body #app .er-owner-status.active::before{content:"";display:block;width:6px;height:6px;flex:0 0 6px;border-radius:50%;background:currentColor}
@media(max-width:600px){html.er-earth body #app .er-owner-counts{gap:8px!important}html.er-earth body #app .er-owner-counts>.er-owner-count{min-height:38px!important;padding:7px 6px!important}html.er-earth body #app .er-owner-counts>.er-owner-count b{font-size:17px!important}html.er-earth body #app .er-owner-counts>.er-owner-count small{font-size:11.5px!important}}
}

@layer er-earth {html.er-earth body #app .er-owner-actions .er-owner-recovery{flex-basis:100%;border-top:1px solid #d6ddcd;margin-top:8px}html.er-earth body #app .er-owner-check{display:flex!important;align-items:center!important}html.er-earth body #app .er-owner-check input{width:20px!important;height:20px!important}}

/* V1452.42: the three totals are now actual filter controls. */
@layer er-earth {
html.er-earth body #app .er-owner-counts>button.er-owner-count{font:inherit;cursor:pointer;touch-action:manipulation;appearance:none;box-shadow:none!important;}
html.er-earth body #app .er-owner-counts>button.er-owner-count[aria-pressed=true]{outline:2px solid #799f7f;outline-offset:1px;}
html.er-earth body #app .er-owner-counts>button.er-owner-count[aria-pressed=false]{filter:saturate(.78);}
html.er-earth body #app .er-owner-status.active{min-height:22px!important;padding:3px 7px!important;border-color:#bcd5bd!important;border-radius:6px!important;background:#e7f2e7!important;color:#346c48!important;font-size:10px!important;line-height:1.2!important;}
html.er-earth body #app .er-owner-status.active::before{width:5px!important;height:5px!important;flex-basis:5px!important;}
}
