.owner-workspace,
.owner-auth {
    --owner-ink: #17382e;
    --owner-muted: #536961;
    --owner-line: #dce5df;
    --owner-surface: #fff;
    --owner-accent: #23634e;
    background: #f3f6f3 !important;
    color: var(--owner-ink);
}

.owner-navigation {
    position: sticky;
    z-index: 1020;
    top: 0;
    background: var(--owner-surface);
    border-bottom: 1px solid var(--owner-line);
}

.owner-nav-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: .65rem 1rem;
}

.owner-nav-brand img { object-fit: contain; object-position: left; }
.owner-menu-toggle { width: 44px; height: 44px; font-size: 1.45rem; padding: 0; }
.owner-nav-content { max-height: calc(100dvh - 64px); overflow-y: auto; padding-inline: .8rem; }
.owner-nav-list { list-style: none; padding: .4rem 0; margin: 0; }
.owner-nav-list li + li { margin-top: .18rem; }
.workspace-nav-group { padding: .85rem .75rem .2rem; color: var(--owner-muted); font-size: .76rem; font-weight: 700; }
.owner-nav-list a,
.owner-nav-account a,
.owner-nav-name {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .65rem .75rem;
    min-height: 44px;
    color: var(--owner-muted);
    border-radius: .65rem;
    overflow-wrap: anywhere;
    text-decoration: none;
    font-weight: 600;
}

.owner-nav-list a[aria-current="page"],
.owner-nav-list a:hover,
.owner-nav-account a:hover { color: #174d3b; background: #e9f3ed; }
.owner-nav-list a[aria-current="page"] { box-shadow: inset 3px 0 #227454; }
.owner-nav-account { margin-block: .6rem; padding-top: .6rem; border-top: 1px solid var(--owner-line); }
.owner-nav-name { font-size: .9rem; color: var(--owner-ink); }
.owner-skip:focus { position: fixed; top: .5rem; left: .5rem; z-index: 1100; background: white; padding: .75rem; }

.owner-content { min-width: 0; min-height: 62vh; }
.owner-content > .container { max-width: 1160px; padding-inline: clamp(1rem, 3vw, 2.5rem); }
.owner-page-title,
.owner-dashboard-hero h1 {
    font-family: inherit;
    font-size: clamp(1.7rem, 4vw, 2.65rem);
    letter-spacing: -.035em;
    line-height: 1.12;
    font-weight: 760;
    margin-bottom: .5rem;
    overflow-wrap: anywhere;
}

.owner-section-title { font-family: inherit; font-size: 1.1rem; font-weight: 700; margin-bottom: .8rem; }
.owner-content .text-muted { color: var(--owner-muted) !important; }
.owner-content .card,
.owner-content .table-responsive,
.owner-content .modal-content,
.owner-quick-actions a {
    background: var(--owner-surface);
    border: 1px solid var(--owner-line);
    border-radius: .9rem;
    box-shadow: 0 3px 8px rgb(27 60 46 / 5%) !important;
}

.owner-content .card-header { background: #edf4ee; border-color: var(--owner-line); }
.owner-content .table { margin-bottom: 0; --bs-table-border-color: var(--owner-line); }
.owner-content .table th { background: #edf4ee; color: var(--owner-ink); white-space: nowrap; }
.owner-content .table :is(th, td) { padding: .7rem .85rem; }
.owner-content .table td { overflow-wrap: anywhere; }
.owner-content pre { max-width: 100%; overflow-x: auto; }
.owner-content .row > * { min-width: 0; }
.owner-content .btn:not(.btn-close),
.owner-auth .btn { min-height: 42px; border-radius: .62rem; font-weight: 650; }
.owner-content .form-label,
.owner-auth .form-label { font-weight: 650; }
.owner-content :is(.form-control, .form-select),
.owner-auth :is(.form-control, .form-select) {
    min-height: 44px;
    background-color: #f8fbf9;
    border-color: #cddbd3;
    border-radius: .65rem;
    color: var(--owner-ink);
}

.owner-content :is(.form-control, .form-select):focus,
.owner-auth :is(.form-control, .form-select):focus {
    border-color: var(--owner-accent);
    box-shadow: 0 0 0 .2rem rgb(35 99 78 / 14%);
}

.owner-view-add-property form[data-state-district],
.owner-view-edit-property form[enctype] {
    background: var(--owner-surface);
    border: 1px solid var(--owner-line);
    padding: clamp(1rem, 3vw, 2rem);
    border-radius: 1rem;
}
.owner-view-add-property form[enctype] input[type="file"] { max-width: 100%; }

.owner-dashboard-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: clamp(1.2rem, 4vw, 2.6rem);
    background: linear-gradient(120deg, #122f25, #245d49);
    color: #fff;
    border-radius: 1.1rem;
}

.owner-dashboard-hero h1 { color: #fff; }
.owner-dashboard-hero p { margin: 0; color: #d6e9dd; }
.owner-dashboard-hero .owner-hero-action { background: #e4f3e8; color: #183d30; }
.owner-dashboard-hero .owner-hero-action:hover { background: #fff; color: #183d30; }
.owner-metrics .card { height: 100%; text-align: left !important; }
.owner-metrics .card .h4 { display: grid; place-items: center; width: 38px; height: 38px; border-radius: .65rem; background: #e8f4eb; color: var(--owner-accent); font-size: 1rem; }
.owner-metrics .card h4 { font-size: clamp(1.2rem, 3vw, 1.9rem); font-weight: 750; }
.owner-quick-actions { display: grid; gap: .7rem; }
.owner-quick-actions a { display: flex; align-items: center; gap: .7rem; color: var(--owner-ink); font-weight: 650; min-height: 54px; text-decoration: none; padding: .75rem 1rem; }
.owner-quick-actions a .bi:last-child { margin-left: auto; }
.owner-quick-actions a:hover { border-color: var(--owner-accent); color: var(--owner-accent); }
.owner-property-list { display: grid; gap: .75rem; }
.owner-property-row { display: flex; flex-direction: column; gap: .85rem; padding: clamp(.9rem, 2.5vw, 1.35rem); overflow-wrap: anywhere; }
.owner-auth .auth-page-wrapper { border-radius: 1.15rem; overflow: hidden; }
.owner-auth .auth-card { background: #fff; border-color: var(--owner-line); }
.owner-auth .auth-card h3 { font-family: inherit; font-weight: 750; letter-spacing: -.025em; }
.owner-auth .auth-page-media { background-image: linear-gradient(145deg, #17382e30, #17382e90), url("../img/hero-interior.jpg"); }

@media (min-width: 768px) {
    .owner-quick-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .owner-property-row { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 992px) {
    .owner-workspace { padding-left: 224px; }
    .owner-navigation { position: fixed; inset: 0 auto 0 0; width: 224px; display: flex; flex-direction: column; border-bottom: 0; border-right: 1px solid var(--owner-line); }
    .owner-nav-brand { padding: 1.35rem; }
    .owner-menu-toggle { display: none; }
    .owner-nav-content.collapse { display: flex; flex: 1; flex-direction: column; justify-content: space-between; max-height: none; }
}

@media (max-width: 575.98px) {
    .owner-dashboard-hero .owner-hero-action { width: 100%; }
    .owner-content .form-control, .owner-content .form-select { font-size: 1rem; }
    .owner-content .table :is(th, td) { padding: .65rem; }
}

@media (prefers-reduced-motion: no-preference) {
    .owner-quick-actions a { transition: border-color .18s ease, color .18s ease; }
}
