/* app.css — интерфейс «Каскад · База недвижимости» */
:root {
  --bg: #f3f6fb;
  --panel: #ffffff;
  --ink: #0d1b31;
  --muted: #6d7d93;
  --line: #e5ebf4;
  --line-soft: #eef2f8;
  --accent: #2f6bf6;
  --accent-soft: #eaf1ff;
  --green: #0f9d58;
  --amber: #f59e0b;
  --purple: #8b5cf6;
  --red: #e5484d;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 32, 56, .04), 0 8px 24px rgba(16, 32, 56, .05);
  --shadow-lg: 0 20px 50px rgba(13, 27, 49, .18);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
h1 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
p { margin: 0; }
.ico { width: 18px; height: 18px; flex: 0 0 auto; }
.muted-text { color: var(--muted); font-size: 12.5px; }
.text { color: #34435c; font-size: 13.5px; line-height: 1.55; }
.text.small { font-size: 12.5px; }
.spacer { flex: 1; }
.warn-text { color: #b25b00; }
.pos { color: #0b7a44; }
.neg { color: #c02a2f; }
.no-scroll { overflow: hidden; }

/* ---------- layout ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: 250px; flex: 0 0 250px; position: sticky; top: 0; height: 100vh;
  background: radial-gradient(120% 60% at 0% 0%, #16284a 0%, #0c1a32 55%, #0a1628 100%);
  color: #c8d4e6; display: flex; flex-direction: column; padding: 18px 14px 12px; z-index: 40;
}
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.view { padding: 24px 26px 64px; flex: 1; }
.page { max-width: 1480px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }

/* ---------- sidebar ---------- */
.brand { display: flex; gap: 11px; align-items: center; padding: 4px 8px 18px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #4a86ff, #1d4ed8); box-shadow: 0 6px 18px rgba(47, 107, 246, .45);
}
.brand-mark .ico { width: 21px; height: 21px; }
.brand-name { color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .2px; }
.brand-sub { font-size: 10.5px; color: #8ea3c2; letter-spacing: .04em; text-transform: uppercase; }
.nav { display: flex; flex-direction: column; gap: 2px; overflow: auto; flex: 1; padding-right: 2px; }
.nav::-webkit-scrollbar { width: 4px; }
.nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); border-radius: 4px; }
.nav-group { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: #6d82a3; padding: 16px 10px 6px; }
.nav-link {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 9px;
  color: #c3d0e3; font-weight: 500; font-size: 13px; position: relative; transition: background .15s, color .15s;
}
.nav-link .ico { color: #93a9cb; }
.nav-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav-link:hover .ico { color: #cfe0ff; }
.nav-link.active { background: linear-gradient(90deg, rgba(47, 107, 246, .30), rgba(47, 107, 246, .06)); color: #fff; }
.nav-link.active .ico { color: #8fb6ff; }
.nav-link.active::before {
  content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px;
  background: #4d86ff; border-radius: 0 3px 3px 0;
}
.nav-link > span:first-of-type { flex: 1; }
.nav-badge { font-size: 11px; background: rgba(255, 255, 255, .1); padding: 1px 7px; border-radius: 20px; color: #dbe6f7; font-weight: 600; }
.nav-link.active .nav-badge { background: #2f6bf6; color: #fff; }
.sidebar-foot {
  margin-top: auto; display: flex; align-items: center; gap: 9px; padding: 14px 8px 4px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.user-meta { display: flex; flex-direction: column; line-height: 1.25; flex: 1; min-width: 0; }
.user-meta b { color: #fff; font-size: 12.5px; font-weight: 600; }
.user-meta small { color: #8ea3c2; font-size: 11px; }
.sidebar-foot .icon-btn { color: #93a9cb; }
.sidebar-foot .icon-btn:hover { background: rgba(255, 255, 255, .08); color: #fff; }

/* ---------- topbar ---------- */
.topbar {
  height: 62px; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 16px; padding: 0 22px; position: sticky; top: 0; z-index: 30;
}
.crumbs { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.crumbs .ico { width: 16px; height: 16px; color: #9aa9bd; }
.crumbs b { color: #2d3e57; font-weight: 600; }
.crumbs a:hover { color: var(--accent); }
.topbar .crumbs.top { color: #8391a7; }
.search-wrap { position: relative; flex: 1; max-width: 520px; margin: 0 auto; }
.search {
  display: flex; align-items: center; gap: 9px; background: #f4f7fc; border: 1px solid transparent;
  border-radius: 10px; padding: 0 12px; height: 38px; color: #8593a8; transition: .15s;
}
.search:focus-within { background: #fff; border-color: #c9dbff; box-shadow: 0 0 0 3px rgba(47, 107, 246, .1); }
.search input { flex: 1; border: 0; background: none; outline: none; font-size: 13px; color: var(--ink); min-width: 0; }
.search input::-webkit-search-cancel-button { display: none; }
.search.inline { height: 36px; background: #f5f8fd; min-width: 200px; }
.topbar-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.icon-btn { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; color: #5c6c82; transition: .15s; }
.icon-btn:hover { background: #f2f6fd; color: var(--ink); }
.bell { position: relative; }
.dot-badge { position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: #e5484d; border: 1.5px solid #fff; }
.tb-date { display: flex; align-items: center; gap: 6px; color: #7b8a9f; font-size: 12.5px; padding: 0 4px; }
.tb-date .ico { width: 15px; height: 15px; }
.burger { display: none; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center;
  background: color-mix(in srgb, var(--c, #2f6bf6) 14%, #fff);
  color: var(--c, #2f6bf6); font-weight: 700; font-size: 11.5px; letter-spacing: .02em; border: 1px solid color-mix(in srgb, var(--c, #2f6bf6) 24%, #fff);
}
.avatar.lg { width: 44px; height: 44px; font-size: 14px; }
.avatar.xl { width: 58px; height: 58px; font-size: 18px; border-radius: 16px; }
.avatar.sm { width: 24px; height: 24px; font-size: 9.5px; }

/* search pop */
.search-pop {
  position: absolute; top: 46px; left: 0; right: 0; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow-lg); padding: 8px; display: none; max-height: 70vh; overflow: auto; z-index: 60;
}
.search-pop.open { display: block; }
.search-group { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: #93a1b5; padding: 8px 10px 4px; }
.search-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; }
.search-item:hover { background: #f3f7ff; }
.search-item img { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; }
.search-item .avatar { width: 34px; height: 34px; }
.search-item b { display: block; font-size: 13px; font-weight: 600; }
.search-item small { display: block; color: var(--muted); font-size: 11.5px; }
.search-ico { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: #f1f5fd; color: #5b7ab0; }
.search-empty { padding: 16px; text-align: center; color: var(--muted); font-size: 13px; }

/* ---------- buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 15px;
  border-radius: 10px; font-size: 13px; font-weight: 600; border: 1px solid transparent; transition: .15s; white-space: nowrap;
}
.btn .ico { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 12px rgba(47, 107, 246, .28); }
.btn-primary:hover { background: #245ae0; }
.btn-soft { background: var(--accent-soft); color: #2558cd; }
.btn-soft:hover { background: #dde9ff; }
.btn-soft.on { background: #fff3d6; color: #9a6400; }
.btn-ghost { background: #fff; border-color: var(--line); color: #33445e; }
.btn-ghost:hover { border-color: #c6d6f1; color: var(--accent); }
.btn-block { width: 100%; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12px; border-radius: 8px; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 12.5px; font-weight: 600; }
.link-btn .ico { width: 14px; height: 14px; }
.link-btn:hover { color: #1b4dc0; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips.scroll { max-height: 148px; overflow: auto; padding-right: 4px; }
.chips.static { gap: 8px; }
.chip {
  padding: 6px 11px; border-radius: 8px; background: #f3f6fb; color: #55657c; font-size: 12px; font-weight: 500;
  border: 1px solid transparent; transition: .15s;
}
.chip:hover { background: #eaf0fa; color: #2e3f57; }
.chip.on { background: var(--accent-soft); color: #2558cd; border-color: #cbdcff; font-weight: 600; }
.chip.small { padding: 4px 9px; font-size: 11.5px; }
.chip.removable { display: inline-flex; align-items: center; gap: 5px; }
.chip.removable .ico { width: 12px; height: 12px; }
.pill {
  display: inline-flex; align-items: center; gap: 4px; padding: 2.5px 9px; border-radius: 20px;
  font-size: 11.5px; font-weight: 600; white-space: nowrap; line-height: 1.5;
}
.pill.free, .pill.active, .pill.done, .pill.paid { background: #e8f7ee; color: #0b7a44; }
.pill.rented, .pill.new { background: #eaf1ff; color: #2158cf; }
.pill.reserved, .pill.expiring, .pill.work, .pill.potential, .pill.pending { background: #fff3e0; color: #a36800; }
.pill.repair { background: #f3ecff; color: #6b3fd4; }
.pill.overdue { background: #ffecec; color: #c02a2f; }
.pill.terminated, .pill.former { background: #eef1f6; color: #72809a; }
.tag { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 6px; background: #f1f5fb; color: #5a6b83; font-size: 11.5px; font-weight: 500; }
.tag.light { background: rgba(255, 255, 255, .92); color: #37485f; position: absolute; top: 10px; left: 10px; font-weight: 600; }

/* ---------- page head ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-top: 2px; }
.page-head h1 { font-size: 25px; }
.page-head .muted-text { margin-top: 4px; }
.head-actions { display: flex; align-items: center; gap: 9px; }
.live-badge {
  display: inline-flex; align-items: center; gap: 7px; background: #eaf7ef; color: #0b7a44;
  padding: 7px 12px; border-radius: 20px; font-size: 12px; font-weight: 600;
}
.live-badge i { width: 7px; height: 7px; border-radius: 50%; background: #12a35d; box-shadow: 0 0 0 3px rgba(18, 163, 93, .18); }
.live-badge.neutral { background: #eef3fb; color: #45607f; }
.live-badge.neutral i { display: none; }

/* ---------- kpi ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.kpi-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 15px 16px 13px;
  display: flex; flex-direction: column; gap: 4px; box-shadow: 0 1px 2px rgba(16, 32, 56, .03);
}
.kpi-label { color: var(--muted); font-size: 12px; font-weight: 500; }
.kpi b { font-size: 23px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.kpi small { color: #8391a7; font-size: 11.5px; display: flex; align-items: center; gap: 7px; }
.kpi small b { font-size: 11.5px; font-weight: 600; }
.occ-mini { width: 64px; height: 5px; border-radius: 4px; background: #eaf0f9; overflow: hidden; display: inline-block; }
.occ-mini i { display: block; height: 100%; background: linear-gradient(90deg, #2f6bf6, #4d9dff); border-radius: 4px; }

/* ---------- panels ---------- */
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: 0 1px 2px rgba(16, 32, 56, .03); min-width: 0; }
.panel.span-2 { grid-column: span 2; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.panel-head h3 { font-size: 14.5px; font-weight: 650; }
.panel-head .pill { font-size: 11px; }
.chart-svg { width: 100%; height: 232px; display: block; }
.donut-wrap { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.donut { width: 150px; height: 150px; flex: 0 0 auto; }
.donut-legend { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 130px; }
.donut-legend > div { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #43536b; }
.donut-legend i { width: 9px; height: 9px; border-radius: 3px; }
.donut-legend b { margin-left: auto; font-weight: 650; }
.bar-list { display: flex; flex-direction: column; gap: 12px; }
.bar-row { display: block; }
.bar-label { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: #33445e; margin-bottom: 5px; }
.bar-label b { font-weight: 650; color: #0f1f38; }
.bar-track { height: 7px; border-radius: 6px; background: #edf2fa; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, #2f6bf6, #63a0ff); transition: width .4s; }
.bar-row small { color: #93a1b5; font-size: 11px; }
.rows { display: flex; flex-direction: column; }
.row-link { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--line-soft); }
.row-link:last-child { border-bottom: 0; }
.row-link:hover .row-main b { color: var(--accent); }
.row-link .ico { color: #9dabc0; }
.row-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); font-size: 12px; color: #55657c; }
.row-line:last-child { border-bottom: 0; }
.row-line b { color: #0f1f38; font-weight: 650; }
.row-main { display: flex; flex-direction: column; min-width: 0; }
.row-main b { font-size: 12.8px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 360px; }
.row-main small { color: #8391a7; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 400px; }
.row-img { width: 46px; height: 36px; object-fit: cover; border-radius: 7px; flex: 0 0 auto; }
.req-ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: 0 0 auto; background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c); }
.req-ico .ico { width: 16px; height: 16px; }
.req-ico.red { --c: #e5484d; }
.days { font-size: 11.5px; color: #8391a7; white-space: nowrap; }
.days.warn { color: #c02a2f; font-weight: 600; }
.sum { font-size: 12px; font-weight: 650; white-space: nowrap; color: #c02a2f; }
.team { display: flex; flex-direction: column; gap: 12px; }
.team-row { display: flex; align-items: center; gap: 10px; }
.team-name { display: flex; flex-direction: column; line-height: 1.25; flex: 1; min-width: 0; }
.team-name small { color: #93a1b5; font-size: 11px; }
.team-val { font-weight: 650; font-size: 13px; }
.occ-bar { height: 10px; border-radius: 8px; background: #edf2fa; overflow: hidden; }
.occ-bar div { height: 100%; background: linear-gradient(90deg, #2f6bf6, #59a2ff); border-radius: 8px; }
.occ-bar.small { height: 6px; }
.occ-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; color: #55657c; }
.occ-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.lg-green { background: #12a35d; }
.lg-blue { background: #7fb8f0; }
.lg-yellow { background: #f2b544; }
.lg-purple { background: #a184e8; }
.lg-line { background: #8dc4ff; }

/* ---------- catalog ---------- */
.catalog { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 18px; align-items: start; }
.filters {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 15px 16px;
  position: sticky; top: 80px; max-height: calc(100vh - 100px); overflow: auto; align-self: start;
}
.filters::-webkit-scrollbar { width: 5px; }
.filters::-webkit-scrollbar-thumb { background: #dbe4f1; border-radius: 5px; }
.filters-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line-soft); }
.filters-head > span { display: inline-flex; align-items: center; gap: 7px; font-weight: 650; font-size: 13px; }
.filters-head .ico { width: 16px; height: 16px; color: #7b8a9f; }
.filter-group { margin-top: 14px; }
.filter-group > label { display: block; font-size: 11.5px; color: #66788f; margin-bottom: 6px; font-weight: 500; }
.filter-group select, .filter-group input {
  width: 100%; height: 36px; border: 1px solid var(--line); border-radius: 9px; padding: 0 10px;
  font: inherit; font-size: 12.5px; color: var(--ink); background: #fff; outline: none;
}
.filter-group select:focus, .filter-group input:focus { border-color: #b9d0f8; box-shadow: 0 0 0 3px rgba(47, 107, 246, .08); }
.range { display: flex; align-items: center; gap: 6px; }
.range input { min-width: 0; }
.range span { color: #a9b5c6; font-size: 12px; }
.filter-hint { display: flex; gap: 9px; align-items: flex-start; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); color: #7f8ea4; font-size: 11.5px; line-height: 1.5; }
.filter-hint .ico { width: 16px; height: 16px; color: #9db0c9; margin-top: 1px; }
.toolbar {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 9px 11px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.cards-toolbar { margin-bottom: 2px; }
.seg { display: inline-flex; background: #f3f6fb; border-radius: 10px; padding: 3px; gap: 2px; }
.seg-btn { padding: 7px 13px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: #616f86; display: inline-flex; align-items: center; gap: 6px; }
.seg-btn span { font-size: 11px; background: #e6ecf6; color: #66788f; padding: 0 6px; border-radius: 20px; font-weight: 600; }
.seg-btn.active { background: #fff; color: #0f1f38; box-shadow: 0 1px 4px rgba(16, 32, 56, .1); }
.seg-btn.active span { background: var(--accent-soft); color: #2558cd; }
.toolbar-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.select {
  height: 36px; border: 1px solid var(--line); border-radius: 9px; padding: 0 10px; font: inherit;
  font-size: 12.5px; background: #fff; color: var(--ink); outline: none;
}
.select.compact { height: 34px; font-size: 12px; color: #4c5d75; }
.view-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.view-toggle button { width: 34px; height: 34px; display: grid; place-items: center; color: #8593a8; background: #fff; }
.view-toggle button + button { border-left: 1px solid var(--line); }
.view-toggle button.active { background: var(--accent-soft); color: #2558cd; }
.view-toggle .ico { width: 16px; height: 16px; }
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 2px 10px; font-size: 13px; }
.results-head b { font-size: 14px; }
.active-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.active-chips .chip { background: #fff; border-color: #d7e3f7; color: #40536e; }

/* ---------- object cards ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(262px, 1fr)); gap: 16px; }
.grid-cards.small-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.obj-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  transition: transform .18s, box-shadow .18s, border-color .18s; display: flex; flex-direction: column;
}
.obj-card:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(16, 32, 56, .09); border-color: #d8e4f6; }
.obj-media { position: relative; aspect-ratio: 16 / 10; background: #eef2f8; }
.obj-media-link { display: block; width: 100%; height: 100%; }
.obj-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.obj-card:hover .obj-media img { transform: scale(1.03); }
.obj-media .pill { position: absolute; top: 10px; left: 10px; box-shadow: 0 2px 8px rgba(16, 32, 56, .16); }
.fav {
  position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: #5b6c85; display: grid; place-items: center;
  box-shadow: 0 2px 8px rgba(16, 32, 56, .12);
}
.fav .ico { width: 16px; height: 16px; }
.fav.on { color: #f0a400; }
.fav.on .ico { fill: currentColor; }
.media-count {
  position: absolute; right: 9px; bottom: 9px; display: inline-flex; align-items: center; gap: 5px;
  background: rgba(9, 20, 36, .62); color: #fff; border-radius: 20px; padding: 3px 9px; font-size: 11px; backdrop-filter: blur(4px);
}
.media-count .ico { width: 13px; height: 13px; }
.obj-body { padding: 13px 14px 14px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.obj-kicker { font-size: 11px; color: #93a1b5; letter-spacing: .02em; text-transform: uppercase; }
.obj-title { font-size: 15.5px; font-weight: 650; letter-spacing: -.01em; line-height: 1.25; }
.obj-title:hover { color: var(--accent); }
.obj-addr { display: flex; gap: 5px; align-items: flex-start; color: #6d7d93; font-size: 12px; line-height: 1.4; }
.obj-addr .ico { width: 14px; height: 14px; color: #a3b2c6; margin-top: 1px; }
.obj-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.obj-meta span { font-size: 11.5px; color: #5b6c85; background: #f4f7fc; padding: 3px 8px; border-radius: 7px; }
.obj-price { font-size: 15px; font-weight: 700; color: #0f1f38; display: flex; align-items: baseline; gap: 6px; margin-top: 1px; }
.obj-price span { font-size: 11px; color: #93a1b5; font-weight: 500; }
.obj-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 9px; border-top: 1px solid var(--line-soft); }
.obj-tenant { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: #4c5d75; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.obj-tenant:hover { color: var(--accent); }
.obj-tenant.free { color: #0b7a44; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #2f6bf6; flex: 0 0 auto; }
.dot.free { background: #12a35d; }

/* buildings */
.grid-cards.buildings { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.bld-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: .18s; display: block; }
.bld-card:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(16, 32, 56, .09); }
.bld-media { position: relative; aspect-ratio: 16 / 8; background: #eef2f8; }
.bld-media img { width: 100%; height: 100%; object-fit: cover; }
.bld-body { padding: 13px 15px 15px; display: flex; flex-direction: column; gap: 8px; }
.bld-title { font-size: 15.5px; font-weight: 650; }
.bld-stats { display: flex; gap: 14px; font-size: 11.5px; color: #7b8a9f; }
.bld-stats b { color: #0f1f38; font-size: 12.5px; }
.bld-foot { display: flex; justify-content: space-between; font-size: 11.5px; color: #7b8a9f; }
.bld-foot .link { color: var(--accent); font-weight: 600; }

/* ---------- tables ---------- */
.table-wrap { overflow: auto; border-radius: 12px; }
.table-wrap.card { background: #fff; border: 1px solid var(--line); }
.table-wrap.card table { min-width: 860px; }
table.data { width: 100%; border-collapse: collapse; font-size: 12.5px; background: #fff; }
table.data th {
  text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: #8593a8;
  font-weight: 600; padding: 11px 12px; border-bottom: 1px solid var(--line); background: #fbfcfe; white-space: nowrap;
}
table.data td { padding: 11px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: #fafcff; }
table.data td.num, table.data td.b { font-weight: 600; }
table.data .sub { display: block; color: #93a1b5; font-size: 11px; margin-top: 2px; }
.strong-link { font-weight: 600; color: #1c3f7a; }
.strong-link:hover { color: var(--accent); text-decoration: underline; }
.plain-link { color: #33445e; }
.plain-link:hover { color: var(--accent); text-decoration: underline; }
table.data td.empty { text-align: center; color: #93a1b5; padding: 28px; }
.more-wrap { display: flex; justify-content: center; padding: 18px 0 4px; }

/* ---------- map ---------- */
.map-canvas { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; min-height: 460px; background: #eef3f8; }
.map-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-layer { position: absolute; inset: 0; }
.map-pin { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 6px; z-index: 2; }
.pin-dot {
  width: 15px; height: 15px; border-radius: 50%; background: #2f6bf6; border: 3px solid #fff;
  box-shadow: 0 3px 10px rgba(20, 50, 110, .35); display: block; transition: .15s;
}
.map-pin:hover .pin-dot { transform: scale(1.25); background: #1b4dc0; }
.pin-count { background: #fff; border-radius: 20px; padding: 1px 6px; font-size: 10.5px; font-weight: 700; color: #2558cd; box-shadow: 0 2px 8px rgba(16, 32, 56, .14); }
.map-pin:hover .pin-count { display: none; }
.pin-label {
  display: none; align-items: center; gap: 6px; background: #fff; border-radius: 8px; padding: 5px 9px;
  font-size: 11.5px; font-weight: 600; box-shadow: 0 6px 18px rgba(16, 32, 56, .16); white-space: nowrap;
}
.pin-label b { color: var(--accent); font-size: 11px; }
.map-pin:hover .pin-label { display: inline-flex; }
.map-legend {
  position: absolute; left: 14px; bottom: 14px; background: rgba(255, 255, 255, .94); border-radius: 9px;
  padding: 8px 12px; display: flex; gap: 14px; font-size: 11.5px; color: #55657c; box-shadow: 0 4px 14px rgba(16, 32, 56, .1); flex-wrap: wrap;
}
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- parking ---------- */
.park-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.park-plan { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 20px; }
.park-group-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.park-group-head b { font-size: 13.5px; }
.park-group-head span { display: block; color: #8391a7; font-size: 11.5px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 8px; }
.slot {
  height: 44px; border-radius: 8px; font-size: 11px; font-weight: 650; display: grid; place-items: center; position: relative;
  border: 1px solid transparent; transition: .15s; letter-spacing: .01em;
}
.slot.free { background: #e8f7ee; color: #0b7a44; border-color: #bfe8cf; }
.slot.rented { background: #e9f0ff; color: #2158cf; border-color: #c6d8fb; }
.slot.reserved { background: #fff3e0; color: #a36800; border-color: #f6dcae; }
.slot.repair { background: #f3ecff; color: #6b3fd4; border-color: #ddd0fa; }
.slot:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(16, 32, 56, .12); }
.slot.selected { outline: 2px solid #0f1f38; outline-offset: 1px; }
.slot .bolt { position: absolute; top: 3px; right: 3px; color: #0b7a44; display: flex; }
.slot .bolt .ico { width: 9px; height: 9px; fill: currentColor; }
.slot.mini { height: 30px; font-size: 9.5px; border-radius: 6px; }
.slot-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 6px; }
.park-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: #55657c; border-top: 1px solid var(--line-soft); padding-top: 14px; }
.park-legend span { display: inline-flex; align-items: center; gap: 6px; }
.park-side { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 14px; }
.park-side .side-card > .ico { width: 90px; height: 90px; color: #cdd8e8; margin: 14px auto 0; display: block; }

/* ---------- tenants ---------- */
.grid-cards.tenants { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.tenant-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 15px; display: flex; flex-direction: column; gap: 12px; transition: .18s; }
.tenant-card:hover { box-shadow: 0 14px 30px rgba(16, 32, 56, .08); transform: translateY(-2px); }
.tenant-head { display: flex; align-items: center; gap: 11px; }
.tenant-id { flex: 1; min-width: 0; }
.tenant-id a { font-weight: 650; font-size: 14px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tenant-id a:hover { color: var(--accent); }
.tenant-id small { color: #8391a7; font-size: 11.5px; }
.tenant-contacts { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #55657c; }
.tenant-contacts span { display: flex; align-items: center; gap: 7px; }
.tenant-contacts .ico { width: 14px; height: 14px; color: #9dabc0; }
.tenant-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; background: #f8fafd; border-radius: 10px; padding: 10px 11px; }
.tenant-stats div { display: flex; flex-direction: column; gap: 2px; }
.tenant-stats span { font-size: 10.5px; color: #8593a8; text-transform: uppercase; letter-spacing: .04em; }
.tenant-stats b { font-size: 12.5px; font-weight: 650; }
.tenant-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 4px; }
.tenant-foot > span { font-size: 11.5px; color: #8593a8; }

/* ---------- requests ---------- */
.kanban { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.kanban-col { background: #f7f9fd; border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.kanban-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 6px; }
.kanban-head span { font-weight: 650; font-size: 13px; }
.kanban-head b { background: #e8eef8; color: #55657c; border-radius: 20px; padding: 1px 8px; font-size: 11.5px; }
.req-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.req-card.high { border-left: 3px solid #e5484d; }
.req-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.req-type { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: var(--c); background: color-mix(in srgb, var(--c) 10%, #fff); padding: 2px 7px; border-radius: 6px; }
.req-type .ico { width: 12px; height: 12px; }
.req-card h4 { font-size: 13px; font-weight: 600; line-height: 1.35; }
.req-meta { display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; color: #7b8a9f; }
.req-meta span, .req-meta a { display: inline-flex; align-items: center; gap: 5px; }
.req-meta .ico { width: 12px; height: 12px; color: #a3b2c6; }
.req-meta a:hover { color: var(--accent); }
.req-foot { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #93a1b5; margin-top: 2px; }
.req-foot .link-btn { margin-left: auto; font-size: 11.5px; }
.done-mark { margin-left: auto; color: #12a35d; display: flex; }
.done-mark .ico { width: 16px; height: 16px; }

/* ---------- detail ---------- */
.crumbs { display: flex; align-items: center; gap: 7px; color: #8391a7; font-size: 12px; flex-wrap: wrap; margin-bottom: -4px; }
.crumbs .ico { width: 14px; height: 14px; color: #a9b5c6; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { color: #55657c; }
.detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.head-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.detail-head h1 { font-size: 25px; }
.addr { display: flex; align-items: center; gap: 6px; color: #6d7d93; font-size: 12.5px; margin-top: 6px; }
.addr .ico { width: 15px; height: 15px; color: #9dabc0; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: start; }
.detail-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.detail-side { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 14px; }
.gallery { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.gallery-main { border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; background: #eef2f8; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 8px; }
.thumb { aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0; background: #f3f6fb; position: relative; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active { border-color: var(--accent); }
.thumb.plan-thumb, .thumb.video-thumb { display: grid; place-items: center; }
.thumb.plan-thumb .plan-svg { width: 100%; height: 100%; }
.thumb .play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(10, 22, 40, .45); color: #fff; }
.thumb .play .ico { width: 20px; height: 20px; }
.tabs { display: flex; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 5px; overflow: auto; }
.tab { padding: 8px 13px; border-radius: 8px; font-size: 12.5px; font-weight: 550; color: #5b6c85; white-space: nowrap; }
.tab:hover { background: #f4f7fc; }
.tab.active { background: var(--accent-soft); color: #2558cd; font-weight: 650; }
.tab-panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.spec-grid.wide { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px 18px; column-gap: 32px; }
.spec { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 12.5px; }
.spec span { color: #7b8a9f; }
.spec b { font-weight: 600; text-align: right; }
.spec b a { color: var(--accent); }
.block-title { font-weight: 650; font-size: 13.5px; margin: 18px 0 8px; display: flex; align-items: center; gap: 8px; }
.block-title:first-child { margin-top: 0; }
.block-title .muted-text { font-weight: 400; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.info-grid > div { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.info-grid .ico { width: 17px; height: 17px; color: #7b8a9f; margin-bottom: 4px; }
.info-grid span { color: #8593a8; font-size: 11px; }
.info-grid b { font-size: 12.5px; }
.note { display: flex; gap: 9px; align-items: flex-start; margin-top: 16px; background: #f6f9fe; border: 1px solid #e3ecfa; border-radius: 10px; padding: 11px 13px; font-size: 12px; color: #526784; }
.note.warn { background: #fff9ef; border-color: #f6e3c2; color: #8a5b00; }
.note .ico { width: 16px; height: 16px; margin-top: 1px; }
.plan-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.plan-wrap { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fbfcfe; }
.plan-wrap .plan-svg { width: 100%; height: auto; display: block; }
.legend-row { display: flex; gap: 16px; flex-wrap: wrap; font-size: 11.5px; color: #6d7d93; margin-top: 10px; }
.legend-row span { display: inline-flex; align-items: center; gap: 6px; }
.docs { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.doc-row { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-bottom: 1px solid var(--line-soft); text-align: left; }
.doc-row:last-child { border-bottom: 0; }
.doc-row:hover { background: #fafcff; }
.doc-row > .ico { color: #9dabc0; width: 16px; height: 16px; }
.doc-ico { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: #fff1f1; color: #d24b4b; flex: 0 0 auto; }
.doc-ico.mp4 { background: #eef1ff; color: #5a5fd0; }
.doc-ico .ico { width: 16px; height: 16px; }
.doc-name { flex: 1; font-size: 12.5px; font-weight: 550; display: flex; flex-direction: column; gap: 1px; }
.doc-name small { color: #93a1b5; font-size: 11px; font-weight: 400; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.photo-grid img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.video-card { position: relative; margin-top: 16px; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 7; cursor: pointer; }
.video-card img { width: 100%; height: 100%; object-fit: cover; }
.video-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(10, 22, 40, .35); }
.video-play .ico { width: 46px; height: 46px; border: 2px solid #fff; border-radius: 50%; padding: 12px; }
.video-label { position: absolute; left: 14px; bottom: 12px; color: #fff; font-size: 12px; background: rgba(8, 18, 32, .6); padding: 4px 9px; border-radius: 20px; }
.util-summary { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 14px; }
.util-summary > div { display: flex; flex-direction: column; gap: 2px; }
.util-summary span { font-size: 11px; color: #8593a8; }
.util-summary b { font-size: 15px; }
.timeline { display: flex; flex-direction: column; gap: 0; }
.tl-item { display: grid; grid-template-columns: 26px 1fr; gap: 10px; position: relative; padding-bottom: 16px; }
.tl-item::before { content: ""; position: absolute; left: 6px; top: 16px; bottom: 0; width: 2px; background: #eaf0f9; }
.tl-item:last-child::before { display: none; }
.tl-dot { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid #c5d7f5; margin-top: 3px; z-index: 1; }
.tl-item.contract .tl-dot { border-color: #2f6bf6; }
.tl-item.request .tl-dot { border-color: #f0a400; }
.tl-item.end .tl-dot { border-color: #e5484d; }
.tl-title { font-size: 12.8px; font-weight: 600; }
.tl-text { font-size: 12px; color: #6d7d93; margin-top: 2px; }
.tl-date { font-size: 11px; color: #93a1b5; margin-top: 3px; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.side-title { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: #8593a8; font-weight: 600; }
.price-card { gap: 8px; }
.price-line { display: flex; align-items: baseline; gap: 7px; }
.price-line b { font-size: 27px; font-weight: 700; letter-spacing: -.02em; }
.price-line span { font-size: 11.5px; color: #7b8a9f; }
.price-total { font-size: 13px; font-weight: 600; color: #33445e; }
.price-meta { font-size: 12px; color: #8593a8; }
.side-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.side-mini { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 2px; }
.side-person { display: flex; align-items: center; gap: 10px; }
.side-person > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.side-person b { font-size: 12.8px; }
.side-person small { font-size: 11px; color: #8593a8; }
.side-person:hover b { color: var(--accent); }
.side-rows { display: flex; flex-direction: column; gap: 7px; }
.side-rows > div { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; align-items: baseline; }
.side-rows span { color: #8593a8; }
.side-rows b { font-weight: 600; text-align: right; }
.side-rows b a { color: var(--accent); }
.side-rows .pill { font-weight: 600; }
.side-contacts { display: flex; flex-direction: column; gap: 5px; margin-top: 2px; }
.side-contacts a { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #40536e; }
.side-contacts a:hover { color: var(--accent); }
.side-contacts .ico { width: 14px; height: 14px; color: #9dabc0; }
.muted-card { background: #fbfcfe; }
.muted-card .muted-text { font-size: 12px; }
.side-obj { display: flex; flex-direction: column; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.side-obj:last-child { border-bottom: 0; }
.side-obj span { font-size: 12.5px; font-weight: 550; }
.side-obj b { font-size: 11.5px; color: #7b8a9f; font-weight: 500; }
.side-obj:hover span { color: var(--accent); }
.contact-row { display: flex; flex-direction: column; gap: 1px; }
.contact-row span { font-size: 11px; color: #8593a8; }
.contact-row b { font-size: 13px; }
.contact-row small { font-size: 11.5px; color: #7b8a9f; }
.tenant-title { display: flex; align-items: center; gap: 14px; }
.kpi-grid.four .kpi b { font-size: 20px; }

/* ---------- empty ---------- */
.empty-state { background: #fff; border: 1px dashed #d7e2f2; border-radius: 16px; padding: 48px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty-state > .ico { width: 44px; height: 44px; color: #c3d2e7; margin-bottom: 6px; }
.empty-state h3 { font-size: 16px; }
.empty-state p { color: #7b8a9f; font-size: 13px; max-width: 420px; }
.empty-state .btn { margin-top: 10px; }

/* ---------- modal / toast ---------- */
.modal-root { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; }
.modal-root.hidden { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10, 20, 36, .55); backdrop-filter: blur(2px); }
.modal { position: relative; width: min(960px, 92vw); max-height: 90vh; overflow: auto; background: #fff; border-radius: 16px; padding: 22px; box-shadow: var(--shadow-lg); }
.modal-head h3 { font-size: 17px; }
.modal-close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #7b8a9f; }
.modal-close:hover { background: #f2f6fd; color: var(--ink); }
.modal-plan { margin-top: 14px; }
.toasts { position: fixed; right: 22px; bottom: 22px; z-index: 200; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px; background: #0f2038; color: #fff; padding: 12px 16px;
  border-radius: 11px; font-size: 12.5px; box-shadow: 0 14px 34px rgba(9, 20, 36, .3);
  transform: translateY(12px); opacity: 0; transition: .22s; max-width: 380px;
}
.toast.show { transform: none; opacity: 1; }
.toast .ico { width: 16px; height: 16px; color: #4ade80; }

/* ---------- responsive ---------- */
@media (max-width: 1440px) {
  .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1280px) {
  .sidebar { width: 228px; flex-basis: 228px; }
  .view { padding: 20px 20px 56px; }
  .catalog { grid-template-columns: 258px minmax(0, 1fr); }
  .detail-layout { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 1080px) {
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-100%);
    transition: transform .22s; box-shadow: 0 0 40px rgba(9, 20, 36, .3); height: 100vh;
  }
  body.nav-open .sidebar { transform: none; }
  .burger { display: grid; }
  .topbar .crumbs.top { display: none; }
  .view { padding: 18px 16px 56px; }
  .catalog { grid-template-columns: 1fr; }
  .filters { position: static; max-height: none; }
  .filters .chips.scroll { max-height: none; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-side, .park-side { position: static; flex-direction: row; flex-wrap: wrap; }
  .detail-side > .side-card, .park-side > .side-card { flex: 1 1 260px; }
  .park-layout { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .panel.span-2 { grid-column: auto; }
  .kpi-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kanban { grid-template-columns: 1fr; }
  .tb-date { display: none; }
}
@media (max-width: 720px) {
  .search-wrap { max-width: none; }
  .page-head h1 { font-size: 21px; }
  .grid-cards { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
  .spec-grid { grid-template-columns: 1fr; }
  .thumbs { grid-template-columns: repeat(5, 1fr); }
  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar-right { justify-content: space-between; }
  .toolbar-right .search.inline { flex: 1; min-width: 140px; }
  .kpi-grid, .kpi-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .head-actions { width: 100%; justify-content: flex-start; }
  .detail-head h1 { font-size: 21px; }
  .tenant-title { align-items: flex-start; }
}
