.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
  margin-bottom: 6px; font-size: 13.5px; color: var(--muted);
}
.crumbs button {
  border: 0; background: none; padding: 2px 4px; border-radius: 6px;
  color: var(--muted); cursor: pointer;
}
.crumbs button:hover { color: var(--brand); background: var(--sky); }
.crumbs svg { width: 14px; height: 14px; opacity: .6; }
.page-head h1 .count { font-size: 18px; font-weight: 500; color: var(--muted); margin-left: 8px; letter-spacing: 0; }

.apt-layout {
  display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start;
}

/* ------------------------------------------------------------------ */
/* Structure tree                                                      */
/* ------------------------------------------------------------------ */

.tree-card { position: sticky; top: 92px; max-height: calc(100vh - 112px); display: flex; flex-direction: column; }
.tree-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 18px 18px 10px;
}
.tree-toggle {
  display: flex; align-items: center; gap: 10px;
  border: 0; background: none; padding: 0; cursor: default;
}
.tree-toggle svg { width: 18px; height: 18px; color: var(--brand); }
.tree-toggle h2 { font-size: 16px; }

.tree { overflow: auto; padding: 4px 10px 14px; }
.tree ul { list-style: none; margin: 0; padding: 0; }
.tree ul ul { padding-left: 14px; margin-left: 11px; border-left: 1px solid var(--line-soft); }

.node {
  position: relative;
  display: flex; align-items: center; gap: 4px;
  min-height: 38px; padding: 0 6px 0 2px; border-radius: 12px;
  cursor: pointer; user-select: none;
  transition: background .15s var(--ease);
}
.node:hover { background: var(--bg); }
.node[aria-selected="true"] { background: var(--sky); }
.node[aria-selected="true"] .node-label { color: var(--brand-ink); font-weight: 600; }

.caret {
  display: grid; place-items: center; flex: none;
  width: 24px; height: 24px; border: 0; border-radius: 6px; background: none;
  color: var(--muted); cursor: pointer;
}
.caret svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.caret[aria-expanded="true"] svg { transform: rotate(90deg); }
.caret.leaf { visibility: hidden; }

.node-label {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 14px; color: var(--ink);
}
.node[data-type="complex"] > .node-label { font-weight: 600; }
.node[data-type="all"] { padding-left: 8px; margin-bottom: 4px; }
.node[data-type="all"] .node-label { font-weight: 600; }
.node[data-type="all"] svg.lead { width: 16px; height: 16px; color: var(--brand); margin-right: 6px; }

.node-count {
  flex: none; min-width: 26px; padding: 1px 8px; border-radius: var(--r-pill);
  font-size: 12px; text-align: center; color: var(--muted); background: var(--line-soft);
  font-variant-numeric: tabular-nums;
}
.node[aria-selected="true"] .node-count { background: #fff; color: var(--brand-ink); }

.node-actions {
  display: none; gap: 0; flex: none;
}
.node:hover .node-actions, .node:focus-within .node-actions, .node[aria-selected="true"] .node-actions { display: flex; }
.node:hover .node-count, .node:focus-within .node-count { display: none; }
.node[aria-selected="true"]:not(:hover):not(:focus-within) .node-count { display: none; }

.tree-empty { padding: 18px 10px 8px; font-size: 14px; color: var(--muted); }
.tree-empty .btn { margin-top: 12px; }

/* ------------------------------------------------------------------ */
/* Toolbar + chips                                                     */
/* ------------------------------------------------------------------ */

.toolbar { display: flex; gap: 12px; }
.toolbar .search { flex: 1; }
.toolbar .search > svg { width: 18px; height: 18px; }
.toolbar .rooms { width: 190px; flex: none; }

/* .chips / .chip live in app.css - the products page uses them too. */

/* ------------------------------------------------------------------ */
/* Apartment list (grid-based so it can fold into cards on mobile)     */
/* ------------------------------------------------------------------ */

.list-card { overflow: hidden; }

.apt-table { --cols: 92px minmax(150px, 1.3fr) 70px 90px minmax(150px, 1.4fr); }
.stages-link { margin-top: 16px; }

.apt-head, .apt-row {
  display: grid; grid-template-columns: var(--cols); gap: 16px; align-items: center;
  padding: 0 22px;
}
.apt-head {
  height: 46px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid var(--line-soft);
}
.apt-row {
  width: 100%; min-height: 66px; text-align: left;
  border: 0; border-bottom: 1px solid var(--line-soft); background: #fff;
  cursor: pointer; transition: background .15s var(--ease);
}
.apt-row:last-child { border-bottom: 0; }
.apt-row:hover { background: #FAFCFF; }
.apt-row:focus-visible { outline-offset: -2px; border-radius: 0; }

.apt-no { display: flex; align-items: baseline; gap: 3px; font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.apt-no small { font-size: 12px; color: var(--muted); font-weight: 500; }
.apt-where { font-size: 14px; line-height: 1.35; }
.apt-where span { display: block; font-size: 12.5px; color: var(--muted); }
.apt-owner { font-size: 14px; line-height: 1.35; min-width: 0; }
.apt-owner span { display: block; font-size: 12.5px; color: var(--muted); }
.apt-owner .none { color: #BDB9B9; }
.cell-num { font-variant-numeric: tabular-nums; font-size: 14px; }
.cell-num small { color: var(--muted); }
.cell-label { display: none; }

.pager {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px 12px 22px; border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--muted);
}
.pager .nav-btns { display: flex; gap: 6px; }
.pager .icon-btn { border: 1px solid var(--line); }
.pager .icon-btn:disabled { opacity: .4; cursor: default; background: none; }

/* ------------------------------------------------------------------ */
/* Drawer extras                                                       */
/* ------------------------------------------------------------------ */

.where-line { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.where-line .tag {
  font-size: 12.5px; padding: 4px 10px; border-radius: var(--r-pill);
  background: var(--bg); color: var(--ink-2);
}
.meta-line { margin-top: 18px; font-size: 12.5px; color: var(--muted); }

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 1180px) {
  .apt-table { --cols: 80px minmax(140px, 1.3fr) 60px 80px minmax(130px, 1.2fr); }
  .apt-head, .apt-row { gap: 12px; padding: 0 16px; }
}

@media (max-width: 1000px) {
  .apt-layout { grid-template-columns: minmax(0, 1fr); }
  .tree-card { position: static; max-height: none; }
  .tree-toggle { cursor: pointer; }
  .tree-toggle::after {
    content: ''; width: 8px; height: 8px; margin-left: 4px;
    border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
    transform: rotate(45deg) translateY(-3px); transition: transform .2s var(--ease);
  }
  .tree-toggle[aria-expanded="true"]::after { transform: rotate(225deg) translateY(-1px); }
  .tree-card:not(.open) .tree { display: none; }
  .tree { max-height: 55vh; }
  .node-actions { display: flex; }
  .node .node-count { display: none; }
}

@media (max-width: 760px) {
  .toolbar { flex-direction: column; }
  .toolbar .rooms { width: 100%; }

  .apt-head { display: none; }
  .apt-row {
    grid-template-columns: auto 1fr auto; grid-template-areas: "no where where" "no owner owner" "no meta meta";
    gap: 4px 14px; padding: 16px; align-items: start;
  }
  .apt-row .apt-no { grid-area: no; font-size: 22px; padding-top: 2px; }
  .apt-row .apt-where { grid-area: where; }
  .apt-row .apt-owner { grid-area: owner; }
  .apt-row .c-rooms, .apt-row .c-area { grid-area: meta; }
  .apt-row .c-rooms { justify-self: start; }
  .apt-row .c-area { justify-self: start; margin-left: 74px; }
  .cell-label { display: inline; color: var(--muted); }
  .page-head .actions { width: 100%; }
  .page-head .actions .btn { flex: 1; }
}

/* Grid items default to min-width:auto - without this the chip row stretches the column on phones. */
.apt-main { min-width: 0; }

@media (max-width: 760px) {
  .apt-row .apt-owner:has(.none) { display: none; }
}

/* Number + category stacked in the first column */
.apt-id { display: grid; gap: 2px; min-width: 0; }
.apt-cat { font-size: 12px; color: var(--brand-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apt-table { --cols: 120px minmax(150px, 1.3fr) 70px 90px minmax(150px, 1.2fr) 170px; }
@media (max-width: 1180px) { .apt-table { --cols: 104px minmax(140px, 1.3fr) 60px 80px minmax(130px, 1fr) 160px; } }
@media (max-width: 760px) { .apt-row .apt-id { grid-area: no; } .apt-row .apt-no { grid-area: auto; } }

/* --- Drawer: product picks per norm category --- */
.pick-note { font-size: 14px; color: var(--muted); line-height: 1.5; padding: 14px 16px; border-radius: 16px; background: var(--bg); }
.pick-note a { font-weight: 500; }
.pick-row {
  display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--line-soft);
}
.pick-row:first-child { padding-top: 2px; }
.pick-kind strong { display: block; font-weight: 600; font-size: 14.5px; }
.pick-kind span { font-size: 12.5px; color: var(--muted); }
.pick-sum { font-weight: 600; font-variant-numeric: tabular-nums; }
.pick-row.unpicked .pick-sum { color: var(--muted); font-weight: 500; }
.pick-row .select { grid-column: 1 / -1; height: 42px; font-size: 14px; }
.pick-row.unpicked .select { color: var(--muted); }
.pick-total {
  display: grid; gap: 6px;
  margin-top: 12px; padding: 12px 16px; border-radius: 16px; background: var(--sky); font-size: 14px; color: var(--ink-2);
}
.pick-total > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pick-total strong { font-size: 17px; color: var(--ink); margin-left: 6px; }
.pick-actual { grid-column: 1 / -1; display: grid; grid-template-columns: auto 150px 1fr; gap: 10px; align-items: center; }
.pick-actual label { font-size: 13px; color: var(--ink-2); }
.act-wrap { position: relative; }
.act-wrap .input { height: 38px; padding-right: 46px; text-align: right; font-variant-numeric: tabular-nums; }
.act-wrap .u { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--muted); pointer-events: none; }
.pick-actual .var { font-size: 13px; font-weight: 600; }
.var.over { color: var(--danger); }
.var.under { color: #2E9E5B; }
.var.ok { color: var(--muted); font-weight: 500; }
@media (max-width: 520px) { .pick-actual { grid-template-columns: 1fr 140px; } .pick-actual .var { grid-column: 1 / -1; } }
/* «Faktiki gedən» = write-offs: which warehouse, and what saving will move */
.pick-wh { display: grid; gap: 6px; margin-bottom: 14px; padding: 12px 14px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line-soft); }
.pick-wh label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.pick-wh .select { height: 42px; font-size: 14px; }
.pick-wh .hint { font-size: 12px; color: var(--muted); }
.act-stock { grid-column: 2 / -1; font-size: 12.5px; color: var(--muted); }
.act-stock:empty { display: none; }
.act-stock.is-over { color: var(--danger); font-weight: 600; }
.pick-docs { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; font-weight: 500; color: var(--brand-ink); }
.pick-docs svg { width: 17px; height: 17px; }
@media (max-width: 520px) { .act-stock { grid-column: 1 / -1; } }

/* --- Garages, sectors, places and objects --- */
.node > svg.kind { flex: none; width: 15px; height: 15px; margin-right: 2px; color: var(--muted); }
.node[aria-selected="true"] > svg.kind { color: var(--brand); }
.node-count.spot-count { background: none; border: 1px solid var(--line); }

.apt-main.is-extra > :is(.toolbar, .chips, .list-card), .apt-main:not(.is-extra) > .extra { display: none; }
.extra { display: grid; gap: 16px; }
.extra .empty > svg { color: var(--brand); }

.sector-card { padding: 20px 22px 22px; }
.sector-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sector-head h3 { font-size: 17px; font-weight: 600; }
.sector-head span { font-size: 13px; color: var(--muted); }
.sector-empty { font-size: 14px; color: var(--muted); }
.spots { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.spot {
  display: grid; place-items: center; height: 46px; padding: 0 6px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
button.spot { cursor: pointer; transition: border-color .15s var(--ease), background .15s var(--ease), color .15s var(--ease); }
button.spot:hover, button.spot:focus-visible { border-color: var(--brand); background: var(--sky); color: var(--brand-ink); }

.obj-card { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 22px; }
.obj-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--sky); color: var(--brand); }
.obj-icon svg { width: 26px; height: 26px; }
.obj-card h3 { font-size: 19px; font-weight: 600; }
.obj-card p { font-size: 14px; color: var(--muted); margin-top: 2px; }
.obj-card dl { text-align: right; }
.obj-card dt { font-size: 13px; color: var(--muted); }
.obj-card dd { margin: 2px 0 0; font-size: 20px; font-weight: 600; }
@media (max-width: 520px) {
  .obj-card { grid-template-columns: auto 1fr; }
  .obj-card dl { grid-column: 1 / -1; text-align: left; }
  .sector-head { flex-wrap: wrap; }
}

/* --- Scope tabs: Mənzillər | Obyektlər | Qarajlar --- */
.scope-tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 16px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--line); width: max-content; max-width: 100%; overflow-x: auto; }
.scope-tabs [role="tab"] {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 0; border-radius: var(--r-pill);
  background: none; font: inherit; font-size: 14.5px; font-weight: 500; color: var(--ink-2); cursor: pointer; white-space: nowrap;
}
.scope-tabs [role="tab"] svg { width: 17px; height: 17px; }
.scope-tabs [role="tab"] .n { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.scope-tabs [role="tab"]:hover { color: var(--ink); background: var(--bg); }
.scope-tabs [role="tab"][aria-selected="true"] { background: var(--ink); color: #fff; }
.scope-tabs [role="tab"][aria-selected="true"] .n { color: rgba(255, 255, 255, .7); }

.apt-owner .tenant { color: var(--brand-ink); }

/* Objects table */
.obj-table { --cols: minmax(140px, 1fr) minmax(160px, 1.3fr) 90px minmax(150px, 1fr) minmax(150px, 1fr); }
.obj-head, .obj-row { display: grid; grid-template-columns: var(--cols); gap: 14px; align-items: center; padding: 0 22px; }
.obj-head { height: 46px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line-soft); }
.obj-row { width: 100%; min-height: 60px; border: 0; border-bottom: 1px solid var(--line-soft); background: none; font: inherit; text-align: left; color: var(--ink); }
button.obj-row { cursor: pointer; }
button.obj-row:hover { background: var(--bg); }
.obj-row .nm { font-weight: 600; }
.obj-row .where, .obj-row .who span { display: block; font-size: 12.5px; color: var(--muted); }
.obj-row .who { font-size: 14px; }
.obj-row .none { color: var(--muted); }

/* Garage sections + spot status */
.garage-title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 6px 2px -4px; font-size: 18px; font-weight: 600; }
.garage-title svg { width: 18px; height: 18px; color: var(--brand); align-self: center; }
.garage-title small { font-size: 13px; font-weight: 400; color: var(--muted); }
.extra .chips { margin: 0; }
.spots { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
.spot { height: 58px; grid-template-rows: auto auto; align-content: center; gap: 1px; position: relative; }
.spot b { font-size: 15px; font-weight: 600; line-height: 1.1; }
.spot small { font-size: 11px; font-weight: 500; line-height: 1.1; color: var(--muted); }
.spot.st-Sold { background: #EAF7EF; border-color: #BFE5CC; }
.spot.st-Sold small { color: #1F7A45; }
.spot.st-Rented { background: #FFF5E6; border-color: #F5D9A8; }
.spot.st-Rented small { color: #8A4B00; }
.spot .who-dot { position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.chip .sw { width: 10px; height: 10px; border-radius: 3px; border: 1px solid var(--line); background: #fff; }
.chip .sw.st-Sold { background: #BFE5CC; border-color: #BFE5CC; }
.chip .sw.st-Rented { background: #F5D9A8; border-color: #F5D9A8; }
.obj-card .occ { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.occ dt { font-size: 13px; color: var(--muted); }
.occ dd { margin: 2px 0 0; font-weight: 500; }
.occ dd span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 400; }

@media (max-width: 1000px) {
  .obj-head { display: none; }
  .obj-row { grid-template-columns: 1fr 1fr; gap: 6px 14px; padding: 14px 16px; }
  .obj-row .nm, .obj-row .where { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .obj-card .occ { grid-template-columns: 1fr; }
  .scope-tabs { width: 100%; }
  .scope-tabs [role="tab"] { flex: 1; justify-content: center; padding: 0 10px; }
}

/* --- «Digər» element panel --- */
.other-card { padding: 22px; }
.other-head { display: flex; gap: 14px; align-items: flex-start; }
.other-head h2 { margin: 2px 0 2px; font-size: 22px; }
.other-head p { margin: 0; color: var(--muted); font-size: 13.5px; }
.other-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--sky); color: var(--brand); flex: none; }
.other-ic svg { width: 22px; height: 22px; }
.other-kids { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.other-kids button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; text-align: left;
  border: 1px solid var(--line-soft); border-radius: 12px; background: var(--surface, #fff); color: inherit; cursor: pointer; font: inherit;
}
.other-kids button:hover { background: var(--bg); }
.other-kids button span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.other-kids svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.other-foot { display: flex; align-items: center; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.other-foot .spacer { flex: 1; }
.node .kind { flex: none; }
.other-head .eyebrow { font-size: 13px; color: var(--muted); }

/* Phones: number, category and marks on top, then where, then rooms and area - long category names wrap
   instead of squeezing the other columns. */
@media (max-width: 760px) {
  .apt-row {
    grid-template-columns: auto 1fr; grid-template-areas: "no no" "where where" "owner owner" "rooms area";
    gap: 6px 16px;
  }
  .apt-row .apt-id { grid-area: no; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
  .apt-row .apt-no { font-size: 20px; padding-top: 0; }
  .apt-row .apt-cat { white-space: normal; overflow: visible; flex: 1 1 160px; min-width: 0; }
  .apt-row .apt-id .dm-row { margin-top: 0; flex-basis: 100%; }
  .apt-row .c-rooms { grid-area: rooms; }
  .apt-row .c-area { grid-area: area; margin-left: 0; justify-self: start; }
}

/* Desktop: number and marks on one line, the category in full under them (up to two lines). */
@media (min-width: 761px) {
  .apt-table { --cols: 210px minmax(150px, 1.2fr) 90px 100px minmax(150px, 1.2fr) 170px; }
  .apt-row .apt-id {
    display: grid; grid-template-columns: auto 1fr; grid-template-areas: "no marks" "cat cat";
    align-items: center; column-gap: 10px; row-gap: 3px;
  }
  .apt-row .apt-no { grid-area: no; }
  .apt-row .apt-id .dm-row { grid-area: marks; margin-top: 0; justify-self: start; }
  .apt-row .apt-cat {
    grid-area: cat; white-space: normal; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
}
@media (min-width: 761px) and (max-width: 1180px) {
  .apt-table { --cols: 190px minmax(140px, 1.2fr) 80px 90px minmax(130px, 1fr) 160px; }
}

/* ------------------------------------------------------------------ */
/* Phones / tablets: touch-friendly tree, scope tabs that fit           */
/* ------------------------------------------------------------------ */
.node-more { display: none; flex: none; }
@media (max-width: 1000px) {
  .node { flex-wrap: wrap; min-height: 46px; padding-right: 2px; }
  .caret { width: 36px; height: 40px; }
  .caret svg { width: 16px; height: 16px; }
  .node-label { white-space: normal; overflow-wrap: anywhere; line-height: 1.3; padding: 8px 0; }
  .tree .node .node-count, .tree .node:hover .node-count, .tree .node:focus-within .node-count,
  .tree .node[aria-selected="true"]:not(:hover):not(:focus-within) .node-count { display: inline-block; }
  .node-more { display: inline-grid; width: 40px; height: 40px; color: var(--muted); }
  .node-more svg { width: 20px; height: 20px; }
  .node.acts-open .node-more { background: var(--sky); color: var(--brand-ink); }
  /* The actions row: hidden until «⋯» is tapped, then a full-width row of 40px buttons under the name. */
  .node-actions, .node:hover .node-actions, .node:focus-within .node-actions, .node[aria-selected="true"] .node-actions { display: none; }
  .node.acts-open .node-actions {
    display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; flex-basis: 100%;
    padding: 2px 0 8px;
  }
  .node.acts-open .node-actions .icon-btn { width: 40px; height: 40px; border: 1px solid var(--line); background: #fff; }
  .node.acts-open .node-actions .icon-btn svg { width: 17px; height: 17px; }
  .node.acts-open .node-actions [data-act="del"] { color: var(--danger); }
  .tree ul ul { padding-left: 8px; margin-left: 17px; }
  .tree { max-height: 65vh; }
}

@media (max-width: 520px) {
  .scope-tabs { gap: 2px; }
  .scope-tabs [role="tab"] { flex: 1 1 0; min-width: 0; gap: 5px; padding: 0 6px; font-size: 13.5px; }
  .scope-tabs [role="tab"] svg { display: none; }
}
@media (max-width: 374px) {
  .scope-tabs [role="tab"] { font-size: 13px; padding: 0 4px; gap: 4px; }
  .scope-tabs [role="tab"] .n { font-size: 11.5px; }
}
@media (max-width: 760px) {
  .crumbs { gap: 0 2px; }
  .crumbs button { min-height: 32px; padding: 4px 6px; }
}

/* Tree head: «Geniş bax» next to «Kompleks» */
.tree-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.tree-acts .btn svg { width: 15px; height: 15px; }
