:root {
    --is-bg: #f3f5f8;
    --is-panel: #ffffff;
    --is-ink: #15202b;
    --is-muted: #667085;
    --is-line: #e6eaf0;
    --is-teal: #0aa3d1;
    --is-teal-dark: #087fa3;
    --is-green: #00a86b;
    --is-red: #e11d48;
    --is-navy: #0c1e21;
    --is-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --is-radius: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.is-body {
    font-family: Inter, sans-serif;
    background: var(--is-bg);
    color: var(--is-ink);
    min-height: 100vh;
}

.is-app { min-height: 100vh; }

.is-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: #fff;
    border-bottom: 1px solid var(--is-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 24px;
}
.is-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.is-brand img { height: 42px; width: auto; }
.is-brand-copy h1 { margin: 0; font-size: 20px; font-weight: 800; }
.is-brand-copy p { margin: 2px 0 0; color: var(--is-muted); font-size: 13px; }
.is-stats { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.is-stat {
    background: #f7fafc;
    border: 1px solid var(--is-line);
    border-radius: 12px;
    padding: 8px 12px;
    min-width: 110px;
}
.is-stat span { display: block; font-size: 11px; color: var(--is-muted); font-weight: 600; }
.is-stat strong { font-size: 18px; }
.is-reset {
    border: 1px solid var(--is-line);
    background: #fff;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 700;
    cursor: pointer;
}

.is-shell {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
    padding: 20px 24px 120px;
    max-width: 1480px;
    margin: 0 auto;
}

.is-sidebar, .is-main, .is-card {
    background: var(--is-panel);
    border-radius: var(--is-radius);
    box-shadow: var(--is-shadow);
}
.is-sidebar { padding: 18px; height: fit-content; position: sticky; top: 92px; }
.is-sidebar h2 { margin: 0 0 16px; font-size: 16px; }
.is-filter { margin-bottom: 16px; }
.is-filter label, .is-label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 8px; color: #344054; }
.is-filter select, .is-filter input[type="number"], .is-filter input[type="text"], .is-search input, #sortBy {
    width: 100%;
    height: 42px;
    border: 1px solid var(--is-line);
    border-radius: 10px;
    padding: 0 12px;
    background: #fff;
    font: inherit;
}
.is-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.is-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.is-pill {
    border: 1px solid var(--is-line);
    background: #f8fafc;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.is-pill.active { background: var(--is-navy); color: #fff; border-color: var(--is-navy); }
.is-check-list { display: grid; gap: 6px; max-height: 150px; overflow: auto; }
.is-check-list label { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; margin: 0; }

.is-main { padding: 18px; box-shadow: none; background: transparent; }
.is-toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.is-search { flex: 1; position: relative; }
.is-search i { position: absolute; left: 12px; top: 13px; color: var(--is-muted); }
.is-search input { padding-left: 36px; background: #fff; }
.is-mobile-actions { display: none; gap: 8px; }
#sortBy { width: auto; min-width: 180px; background: #fff; }
.is-ghost {
    border: 1px solid var(--is-line);
    background: #fff;
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: 700;
    cursor: pointer;
}
#closeFilters { display: none; }

.is-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.is-chip {
    border: 1px solid var(--is-line);
    background: #fff;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.is-chip.active { background: #e6f7fb; border-color: var(--is-teal); color: var(--is-teal-dark); }

.is-active-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; min-height: 20px; }
.is-active-chip {
    background: #eef2f6;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    gap: 6px;
    align-items: center;
}
.is-active-chip button { border: 0; background: none; cursor: pointer; font-weight: 800; }

.is-results-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 8px 0 12px; }
.is-results-head h3 { margin: 0; font-size: 16px; }
.is-select-all { font-size: 13px; font-weight: 700; display: flex; gap: 8px; align-items: center; }

.is-list { display: grid; gap: 10px; }
.is-row {
    display: grid;
    grid-template-columns: 36px 92px 1fr auto;
    gap: 14px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--is-line);
    border-radius: 14px;
    padding: 12px;
    box-shadow: var(--is-shadow);
}
.is-row.is-selected { border-color: var(--is-teal); background: #f4fbfe; }
.is-thumb {
    width: 92px;
    height: 68px;
    border-radius: 10px;
    background: #dbe3ea center/cover no-repeat;
    flex-shrink: 0;
    overflow: hidden;
}
.is-row-title { margin: 0 0 4px; font-size: 16px; font-weight: 800; }
.is-meta { color: var(--is-muted); font-size: 13px; margin: 0 0 6px; }
.is-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.is-badge { font-size: 10px; font-weight: 800; letter-spacing: .4px; border-radius: 999px; padding: 4px 8px; text-transform: uppercase; }
.is-badge.available { background: #e9f8ef; color: #17803a; }
.is-badge.sold { background: #fde8ee; color: #e11d48; }
.is-badge.reserved { background: #fff4d6; color: #92610a; }
.is-badge.top { background: #e6f7fb; color: #087fa3; }
.is-badge.owner { background: #eef2f6; color: #344054; }
.is-price { font-size: 18px; font-weight: 900; margin: 0; white-space: nowrap; }
.is-row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.is-stock { display: block; font-size: 11px; color: var(--is-muted); margin-top: 2px; }
.is-row-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.is-row-actions a, .is-row-actions button {
    border: 1px solid var(--is-line);
    background: #fff;
    border-radius: 9px;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}
.is-wa { background: #25D366 !important; color: #fff !important; border: 0 !important; }
.is-fav { width: 36px; height: 36px; border-radius: 50%; }

.is-empty { background: #fff; border-radius: 14px; padding: 40px; text-align: center; color: var(--is-muted); }

.is-float {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    background: var(--is-navy);
    color: #fff;
    border-radius: 16px;
    padding: 12px 16px;
    display: none;
    align-items: center;
    gap: 12px;
    z-index: 50;
    box-shadow: 0 12px 40px rgba(0,0,0,.25);
    width: min(920px, calc(100% - 24px));
}
.is-float.show { display: flex; }
.is-float strong { white-space: nowrap; }
.is-float-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.is-float-actions button, .is-float-actions a {
    border: 0;
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    color: #15202b;
    background: #fff;
}
.is-float-actions .is-wa { color: #fff !important; }

.is-modal {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 80;
    padding: 16px;
}
.is-modal.show { display: flex; }
.is-modal-card { background: #fff; width: min(640px, 100%); border-radius: 18px; padding: 20px; }
.is-modal-card h3 { margin: 0 0 12px; }
.is-modal-card textarea { width: 100%; min-height: 220px; border: 1px solid var(--is-line); border-radius: 12px; padding: 12px; font: inherit; }
.is-modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.is-modal-actions button { border: 0; border-radius: 10px; padding: 10px 14px; font-weight: 800; cursor: pointer; }
.is-primary { background: var(--is-teal); color: #fff; }

.is-toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    background: #0c1e21;
    color: #fff;
    padding: 12px 16px;
    border-radius: 12px;
    display: none;
    z-index: 90;
}
.is-toast.show { display: block; }

.is-recent { margin-top: 18px; }
.is-recent h4 { margin: 0 0 10px; }
.is-drawer-backdrop { display: none; }

@media (max-width: 991px) {
    .is-topbar { flex-wrap: wrap; }
    .is-shell { grid-template-columns: 1fr; padding: 10px 10px 110px; }
    .is-sidebar {
        display: none;
        position: fixed;
        inset: auto 0 0 0;
        z-index: 70;
        max-height: 86vh;
        overflow: auto;
        border-radius: 20px 20px 0 0;
        top: auto;
    }
    .is-sidebar.open { display: block; }
    .is-drawer-backdrop.open {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.4);
        z-index: 60;
    }
    .is-mobile-actions { display: flex; }
    .is-row {
        grid-template-columns: 24px 64px minmax(0, 1fr);
        align-items: start;
        gap: 10px;
    }
    .is-thumb {
        width: 64px;
        height: 48px;
    }
    .is-row-title {
        font-size: 14px;
        line-height: 1.3;
        overflow-wrap: anywhere;
    }
    .is-meta {
        font-size: 12px;
    }
    .is-row-side {
        grid-column: 1 / -1;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .is-row-actions {
        justify-content: flex-start;
    }
    .is-price {
        white-space: normal;
    }
    .is-float { flex-wrap: wrap; }
    .is-float-actions { width: 100%; }
    .is-float-actions .is-wa { flex: 1; }
    #closeFilters { display: block; }
}
