/* Expanded runtime CSS entrypoint. Keep this file import-free for WebView route transitions. */

/* brigade-cabinet-desktop/01-brigade-cabinet-desktop.css */
/* Source: 4. Стройбан - Кабинет рабочего (десктоп).html
   Extracted from v3 mock on 2026-07-13. */

/* кабинет рабочего: крупнее кегль, сильный контраст, большие тапы */

.brigade-cabinet-page-shell { --brigade-cabinet-chrome-height: var(--sb-chrome-header-height); --brigade-cabinet-layout-top-gap: 56px; --brigade-cabinet-message-gap: 40px; font-size: 16px; color: var(--foreground); background: var(--background); }

.brigade-cabinet-page-shell .wrap { max-width: none; margin: 0; padding: 0 32px 0 calc(264px + 32px); }

.brigade-cabinet-page-shell a { color: inherit; text-decoration: none; }

/* header (утверждён, из проекта «Расценки») */

.brigade-cabinet-page-shell .sb-header { position: sticky; top: 0; z-index: 40; }

.brigade-cabinet-page-shell .hdr-inner { display: flex; align-items: center; gap: 28px; width: 100%; max-width: 1344px; margin: 0 auto; padding: 0 24px; }

.brigade-cabinet-page-shell .hdr-user { display: flex; align-items: center; gap: 10px; padding: 5px 10px 5px 5px; border: 1px solid var(--border); border-radius: 999px; cursor: pointer; }

.brigade-cabinet-page-shell .hdr-user .av { width: 32px; height: 32px; border-radius: 50%; background: #1f6feb; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }

.brigade-cabinet-page-shell .hdr-user .nm { font-size: 14px; font-weight: 600; }

.brigade-cabinet-page-shell .hdr-user i, .brigade-cabinet-page-shell .hdr-user svg.lucide { width: 16px; height: 16px; color: var(--muted-foreground); }

/* layout — sidebar fixed to viewport left */

.brigade-cabinet-page-shell .layout { display: block; padding: calc(var(--brigade-cabinet-chrome-height) + var(--brigade-cabinet-layout-top-gap)) 0 80px; }

.brigade-cabinet-page-shell .cab-nav { position: fixed; top: var(--brigade-cabinet-chrome-height); left: 0; bottom: 0; width: 264px; z-index: 30; display: flex; flex-direction: column; gap: 4px; background: #1f1f22; border: none; border-radius: 0; padding: 16px 12px; overflow-y: auto; box-shadow: 2px 0 14px oklch(0.145 0 0 / 0.1); }

.brigade-cabinet-page-shell .cab-nav .nav-sep { height: 1px; background: #34343a; margin: 10px 8px; }

.brigade-cabinet-page-shell .cab-nav .nav-item { display: flex; align-items: center; justify-content: flex-start; gap: 14px; min-height: 54px; height: auto; padding: 0 16px; border-radius: 12px; font-size: 16px; font-weight: 600; line-height: 1.25; text-align: left; white-space: normal; color: var(--on-surface-inverse); cursor: pointer; border: 2px solid transparent; }

.brigade-cabinet-page-shell .cab-nav .nav-item:hover { background: #2c2c30; color: #fff; }

.brigade-cabinet-page-shell .cab-nav .nav-item.is-active { background: var(--primary); color: #111; }

.brigade-cabinet-page-shell .cab-nav .nav-item > :is(i, svg), .brigade-cabinet-page-shell .cab-nav .nav-item > [data-slot="icon-anchor"] > :is(i, svg) { display: block; width: 22px; height: 22px; flex: 0 0 22px; }

.brigade-cabinet-page-shell .cab-nav .nav-item .count { margin-left: auto; font-size: 13px; font-weight: 700; background: var(--primary); color: #000; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center; }

.brigade-cabinet-page-shell .cab-nav .nav-item.is-active .count { background: #111; color: #fff; }

.brigade-cabinet-page-shell .cab-nav .nav-item .soon { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--on-surface-inverse); background: #2c2c30; padding: 3px 9px; border-radius: 999px; }

/* What is not open yet is said by the «скоро» chip, by the grey icon and by a lighter weight,
 * never by the colour of the words. The menu is dark (#1f1f22), so the label is the menu's own
 * white, as its open neighbours are: 16:1. Given the page's black on 12.10 -- the contrast was
 * reckoned against white -- it read black on near-black, 1.2:1, the least readable line on the
 * screen. */
.brigade-cabinet-page-shell .cab-nav .nav-item.is-soon:not(.is-active) { color: var(--on-surface-inverse); font-weight: 500; }
.brigade-cabinet-page-shell .cab-nav .nav-item.is-soon:not(.is-active) i, .brigade-cabinet-page-shell .cab-nav .nav-item.is-soon:not(.is-active) svg { color: #9a9a9a; }

.brigade-cabinet-page-shell .sb-chrome-footer { padding-left: 264px; }

@media (min-width: 1025px){
    .brigade-cabinet-page-shell [data-slot="page-container"][data-active-screen="messages"] { padding: 0 0 0 264px; }
    .brigade-cabinet-page-shell .layout[data-active-screen="messages"] { padding: var(--brigade-cabinet-chrome-height) 0 0; }
  }

@media (min-width: 1181px) and (max-width: 1440px){
    .brigade-cabinet-page-shell { --brigade-cabinet-layout-top-gap: 40px; --brigade-cabinet-message-gap: 32px; font-size: 15px; }
    .brigade-cabinet-page-shell .wrap { padding: 0 24px 0 calc(232px + 24px); }
    .brigade-cabinet-page-shell [data-slot="page-container"][data-active-screen="messages"] { padding: 0 0 0 232px; }
    .brigade-cabinet-page-shell .cab-nav { width: 232px; padding: 12px 10px; }
    .brigade-cabinet-page-shell .cab-nav .nav-item { min-height: 48px; padding: 0 12px; gap: 12px; font-size: 15px; }
    .brigade-cabinet-page-shell .cab-nav .nav-item > :is(i, svg), .brigade-cabinet-page-shell .cab-nav .nav-item > [data-slot="icon-anchor"] > :is(i, svg) { width: 20px; height: 20px; flex-basis: 20px; }
    .brigade-cabinet-page-shell .cab-nav .nav-item .count { min-width: 22px; height: 22px; font-size: 12px; }
    .brigade-cabinet-page-shell .sb-chrome-footer { padding-left: 232px; }
    .brigade-cabinet-page-shell main { gap: 16px; }
    .brigade-cabinet-page-shell .resp-head { margin-bottom: 16px; }
    .brigade-cabinet-page-shell .resp-h1 { font-size: 28px; }
    .brigade-cabinet-page-shell .resp-sub { font-size: 15px; }
  }

@media (max-width: 1024px){
    .brigade-cabinet-page-shell .cab-nav { position: static; width: auto; top: auto; bottom: auto; flex-direction: row; flex-wrap: wrap; border-radius: 14px; margin-top: 16px; box-shadow: none; }
    .brigade-cabinet-page-shell .wrap { max-width: none; margin: 0; padding: 0 16px; }
    .brigade-cabinet-page-shell .sb-chrome-footer { padding-left: 0; }
  }

.brigade-cabinet-page-shell main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.brigade-cabinet-page-shell main[data-cab="messages"] {
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    gap: 0;
    height: calc(100dvh - var(--brigade-cabinet-chrome-height));
    min-height: 0;
    overflow: hidden;
  }

.brigade-cabinet-page-shell main[data-cab="messages"] .stroyban-order-chat, .brigade-cabinet-page-shell main[data-cab="messages"] .rchat {
    width: 100%;
    height: 100%;
    min-height: 0;
    border-radius: 0;
    box-shadow: none;
  }

/* ===== profile hero (dark, high contrast) ===== */

.brigade-cabinet-page-shell .phero { background: #111; color: #fff; border-radius: 18px; padding: 28px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }

/* Занятость в шапке кабинета. Чип называет состояние, строка под ним — дату, которую это
   состояние подразумевает. Цвет свободного берётся из токена --success: замерено на тёмной
   шапке #111 — 5.59:1 при норме 4.5:1, поэтому свой светло-зелёный из макета не нужен.
   Занятый и скрытый остаются белыми (15:1): выделять их цветом значило бы красить в тревожное
   то, что тревогой не является. */
.phero-avail {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      margin-top: 10px;
      padding: 5px 12px;
      border: 0;
      border-radius: 999px;
      background: rgb(255 255 255 / 0.1);
      color: #fff;
      font: inherit;
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
    }

.phero-avail:hover { background: rgb(255 255 255 / 0.16); }

.phero-avail i, .phero-avail svg { width: 14px; height: 14px; opacity: .75; }

.phero-avail-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      flex: none;
      background: currentColor;
    }

.phero-avail[data-state="AVAILABLE"] { color: var(--success); background: color-mix(in oklab, var(--success) 16%, transparent); }

.phero-avail-line {
      margin-top: 8px;
      font-size: 15px;
      font-weight: 600;
      color: #fff;
    }

.phero-avail[data-state="AVAILABLE"] + .phero-avail-line { color: var(--success); }

/* Диалог занятости: те же поля, что у редактора условий, поэтому и раскладка та же. */
.avail-form {
      display: grid;
      gap: 14px;
      margin-top: 4px;
    }

.avail-form label {
      display: flex;
      flex-direction: column;
      gap: 7px;
      font-size: 13px;
      font-weight: 600;
      color: var(--foreground);
    }

.avail-form [data-slot="segmented-control-item"] { color: var(--foreground); }

.avail-actions {
      display: flex;
      justify-content: flex-end;
      gap: 10px;
      margin-top: 18px;
    }

.brigade-cabinet-page-shell .phero .pic { width: 116px; height: 116px; border-radius: 20px; background: #222; flex: none; display: grid; place-items: center; color: var(--on-surface-inverse); overflow: hidden; position: relative; border: 2px solid #2a2a2a; }

.brigade-cabinet-page-shell .phero .pic i, .brigade-cabinet-page-shell .phero .pic svg.lucide { width: 40px; height: 40px; }

/* The initials are the avatar until there is a photo: white and large on the dark tile, set
   above the middle so the camera button in the corner never sits on a letter. They inherited
   #666 at body size, which on #222 is 2.6:1. */
.brigade-cabinet-page-shell .phero .pic .pic-initials { align-self: center; padding-bottom: 14px; font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: 0.02em; color: #fff; }

.brigade-cabinet-page-shell .phero .pic .cam { position: absolute; right: 8px; bottom: 8px; width: 34px; height: 34px; border-radius: 10px; background: var(--primary); color: #000; display: grid; place-items: center; cursor: pointer; }

.brigade-cabinet-page-shell .phero .pic .cam i, .brigade-cabinet-page-shell .phero .pic .cam svg.lucide { width: 18px; height: 18px; }

.brigade-cabinet-page-shell .phero-main { flex: 1; min-width: 240px; }

.brigade-cabinet-page-shell .phero-name { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.brigade-cabinet-page-shell .phero-name h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin: 0; }

.brigade-cabinet-page-shell .ver-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,204,53,.16); color: var(--primary); font-size: 13px; font-weight: 700; padding: 5px 11px; border-radius: 999px; }

.brigade-cabinet-page-shell .ver-badge i, .brigade-cabinet-page-shell .ver-badge svg.lucide { width: 15px; height: 15px; }

.brigade-cabinet-page-shell .phero-spec { font-size: 17px; color: var(--on-surface-inverse); margin: 8px 0 0; }

.brigade-cabinet-page-shell .phero-meta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

.brigade-cabinet-page-shell .phero-meta .m { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; color: var(--on-surface-inverse); }

.brigade-cabinet-page-shell .phero-meta .m i, .brigade-cabinet-page-shell .phero-meta .m svg.lucide { width: 17px; height: 17px; color: #9a9a9a; }

.brigade-cabinet-page-shell .phero-meta .rate { color: var(--primary); font-weight: 700; }

.brigade-cabinet-page-shell .phero-meta .rate i, .brigade-cabinet-page-shell .phero-meta .rate svg.lucide { color: var(--primary); }

.brigade-cabinet-page-shell .phero-act { display: flex; flex-direction: column; gap: 10px; }

.brigade-cabinet-page-shell .brigade-profile-hero-edit-action { background: #fff; color: #111; }

.brigade-cabinet-page-shell .brigade-profile-hero-edit-action:hover { background: #f0f0f0; }

.brigade-cabinet-page-shell .brigade-profile-hero-public-link { background: transparent; color: #fff; border: 1px solid #3a3a3a; }

.brigade-cabinet-page-shell .brigade-profile-hero-public-link:hover { background: #1e1e1e; }

.brigade-cabinet-page-shell .about-text.editing { outline: 2px solid var(--primary); border-radius: 10px; padding: 10px 12px; background: var(--card); }

/* preview modal */

.brigade-cabinet-page-shell #previewModal.sb-overlay { position: fixed; inset: 0; background: oklch(0.145 0 0 / 0.45); display: grid; place-items: center; z-index: 90; padding: 24px; }

.brigade-cabinet-page-shell .pv-card { border: 1px solid var(--border); border-radius: 14px; padding: 18px; box-shadow: var(--shadow-sm); }

.brigade-cabinet-page-shell .pv-top { display: flex; align-items: center; gap: 12px; }

.brigade-cabinet-page-shell .pv-av { width: 52px; height: 52px; border-radius: 12px; background: #1f6feb; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 17px; flex: none; }

.brigade-cabinet-page-shell .pv-name { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 6px; }

.brigade-cabinet-page-shell .pv-name i, .brigade-cabinet-page-shell .pv-name svg { width: 16px; height: 16px; color: var(--primary-hover); }

.brigade-cabinet-page-shell .pv-spec { font-size: 14px; color: var(--foreground); margin-top: 2px; }

.brigade-cabinet-page-shell .pv-meta { display: flex; align-items: center; justify-content: space-between; margin: 14px 0; }

.brigade-cabinet-page-shell .pv-rate { font-size: 17px; font-weight: 800; }

.brigade-cabinet-page-shell .pv-star { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }

.brigade-cabinet-page-shell .pv-star i, .brigade-cabinet-page-shell .pv-star svg { width: 15px; height: 15px; color: #E0A800; }

.brigade-cabinet-page-shell .pv-skills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }

.brigade-cabinet-page-shell .pv-skills span { font-size: 12px; font-weight: 500; background: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px; }

.brigade-cabinet-page-shell .pv-actions { display: flex; gap: 8px; }

.brigade-cabinet-page-shell .pv-hint { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--foreground); margin-top: 14px; }

.brigade-cabinet-page-shell .pv-hint i, .brigade-cabinet-page-shell .pv-hint svg { width: 15px; height: 15px; flex: none; color: var(--primary-hover); }

/* brigade-cabinet-desktop/02-brigade-cabinet-desktop.css */
/* big tappable buttons everywhere in cabinet */

.brigade-cabinet-page-shell .sb-btn { height: 2.875rem; font-size: 15px; }

.brigade-cabinet-page-shell .sb-btn--lg { height: 3.25rem; font-size: 16px; }

/* ===== stat tiles ===== */

.brigade-cabinet-page-shell .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

@media (max-width: 640px){ .brigade-cabinet-page-shell .stats { grid-template-columns: 1fr 1fr; } }

.brigade-cabinet-page-shell .stat-tile { padding: 18px 20px; }

.brigade-cabinet-page-shell .stat-tile .v { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 7px; }

.brigade-cabinet-page-shell .stat-tile .v i, .brigade-cabinet-page-shell .stat-tile .v svg.lucide { width: 24px; height: 24px; color: var(--primary); }

.brigade-cabinet-page-shell .stat-tile .l { font-size: 14px; color: var(--foreground); margin-top: 8px; }

/* card section */

.brigade-cabinet-page-shell .cabinet-section-card { padding: 24px; }

.brigade-cabinet-page-shell .cabinet-section-card-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }

.brigade-cabinet-page-shell .cabinet-section-card-header h2 { font-size: 20px; font-weight: 700; margin: 0; }

/* ===== my team: who wants to join ===== */

.brigade-cabinet-page-shell .crew-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }

.brigade-cabinet-page-shell .crew-head h2 { font-size: 19px; font-weight: 700; margin: 0; }

.brigade-cabinet-page-shell .crew-count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--primary); color: var(--primary-foreground); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }

.brigade-cabinet-page-shell .crew-list { display: flex; flex-direction: column; gap: 10px; }

.brigade-cabinet-page-shell .crew-req { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; flex-wrap: wrap; }

.brigade-cabinet-page-shell .crew-av { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--secondary); color: var(--secondary-foreground); font-weight: 700; }

/* `min-width` so a long note wraps inside the row instead of pushing the buttons off it. */
.brigade-cabinet-page-shell .crew-who { flex: 1; min-width: 220px; }

.brigade-cabinet-page-shell .crew-line { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }

.brigade-cabinet-page-shell .crew-name { font-size: 16px; font-weight: 600; }

.brigade-cabinet-page-shell .crew-role { font-size: 14px; }

.brigade-cabinet-page-shell .crew-rating { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }

.brigade-cabinet-page-shell .crew-rating i, .brigade-cabinet-page-shell .crew-rating svg { width: 14px; height: 14px; color: var(--primary); }

.brigade-cabinet-page-shell .crew-msg { font-size: 14px; margin: 4px 0 0; }

.brigade-cabinet-page-shell .crew-actions { display: flex; align-items: center; gap: 8px; flex: none; }

/* The empty state of a section that has nothing in it yet. */
.brigade-cabinet-page-shell .placeholder { display: flex; align-items: center; gap: 12px; padding: 18px; border: 1px dashed var(--border); border-radius: 14px; }

.brigade-cabinet-page-shell .placeholder i, .brigade-cabinet-page-shell .placeholder svg { width: 22px; height: 22px; flex: none; color: var(--muted-foreground); }

.brigade-cabinet-page-shell .placeholder p { font-size: 15px; margin: 0; }

@media (max-width: 640px){
  .brigade-cabinet-page-shell .crew-actions { width: 100%; }
  .brigade-cabinet-page-shell .crew-actions [data-slot="button"] { flex: 1; }
}

.brigade-cabinet-page-shell .cabinet-section-card-header .cabinet-section-card-action { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 600; color: var(--foreground); cursor: pointer; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--card); }

.brigade-cabinet-page-shell .cabinet-section-card-header .cabinet-section-card-action:hover { background: var(--muted); }

.brigade-cabinet-page-shell .cabinet-section-card-header .cabinet-section-card-action i, .brigade-cabinet-page-shell .cabinet-section-card-header .cabinet-section-card-action svg.lucide { width: 17px; height: 17px; }

.brigade-cabinet-page-shell .profile-editor { display: grid; gap: 18px; }

.brigade-cabinet-page-shell .profile-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 920px; }

.brigade-cabinet-page-shell .profile-form-wide { grid-column: 1 / -1; }

.brigade-cabinet-page-shell .profile-form label { display: grid; gap: 7px; min-width: 0; font-size: 13px; font-weight: 700; color: var(--foreground); }

.brigade-cabinet-page-shell .profile-form [data-slot="input"], .brigade-cabinet-page-shell .profile-form [data-slot="textarea"] {
    width: 100%;
    border: 1px solid var(--input);
    border-radius: 10px;
    background: var(--card);
    color: var(--foreground);
    font: inherit;
    font-size: 14.5px;
    outline: none;
    box-shadow: var(--shadow-xs);
  }

.brigade-cabinet-page-shell .profile-form [data-slot="input"] { height: 46px; padding: 0 13px; }

.brigade-cabinet-page-shell .profile-form [data-slot="textarea"] { min-height: 156px; padding: 12px 13px; line-height: 1.5; resize: vertical; }

.brigade-cabinet-page-shell .profile-form [data-slot="input"]::placeholder, .brigade-cabinet-page-shell .profile-form [data-slot="textarea"]::placeholder { color: var(--muted-foreground); }

.brigade-cabinet-page-shell .profile-form [data-slot="input"]:focus, .brigade-cabinet-page-shell .profile-form [data-slot="textarea"]:focus { border-color: var(--selected); box-shadow: 0 0 0 3px color-mix(in srgb, #111 10%, transparent); }

.brigade-cabinet-page-shell .profile-avatar-upload { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--muted); }

.brigade-cabinet-page-shell .profile-avatar-preview { width: 88px; height: 88px; padding: 0; border: 0; border-radius: 50%; overflow: hidden; background: #111; color: #fff; display: grid; place-items: center; font: inherit; font-size: 28px; font-weight: 800; cursor: pointer; box-shadow: var(--shadow-xs); }

.brigade-cabinet-page-shell .profile-avatar-preview img { width: 100%; height: 100%; object-fit: cover; }

.brigade-cabinet-page-shell .profile-avatar-preview:disabled { cursor: not-allowed; opacity: .65; }

.brigade-cabinet-page-shell .profile-avatar-copy { min-width: 0; display: grid; gap: 3px; font-size: 13px; color: var(--foreground); }

.brigade-cabinet-page-shell .profile-avatar-copy b { font-size: 15px; color: var(--foreground); }

.brigade-cabinet-page-shell .profile-avatar-copy em { color: var(--destructive); font-style: normal; font-weight: 600; }

.brigade-cabinet-page-shell .profile-avatar-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); color: var(--foreground); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; box-shadow: var(--shadow-xs); }

.brigade-cabinet-page-shell .profile-avatar-button:hover { background: var(--background); }

.brigade-cabinet-page-shell .profile-avatar-button:disabled { cursor: not-allowed; opacity: .65; }

.brigade-cabinet-page-shell .profile-avatar-button i, .brigade-cabinet-page-shell .profile-avatar-button svg { width: 17px; height: 17px; }

.brigade-cabinet-page-shell .profile-avatar-input { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }

.brigade-cabinet-page-shell .profile-form-error { margin: 0; color: var(--destructive); font-size: 14px; font-weight: 700; }

.brigade-cabinet-page-shell .profile-form-actions { display: flex; align-items: center; gap: 10px; }

@media (max-width: 768px) {
    .brigade-cabinet-page-shell .profile-form { grid-template-columns: 1fr; max-width: none; }
    .brigade-cabinet-page-shell .profile-avatar-upload { grid-template-columns: 72px minmax(0, 1fr); align-items: start; }
    .brigade-cabinet-page-shell .profile-avatar-preview { width: 72px; height: 72px; font-size: 23px; }
    .brigade-cabinet-page-shell .profile-avatar-button { grid-column: 2; justify-self: start; }
    .brigade-cabinet-page-shell .profile-form-actions [data-slot="button"] { width: 100%; }
  }

/* completeness */

.brigade-cabinet-page-shell .complete { padding: 22px 24px; border: 2px solid var(--primary); background: var(--surface-accent-subtle); }

.brigade-cabinet-page-shell .complete-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }

.brigade-cabinet-page-shell .complete-top h2 { font-size: 19px; font-weight: 700; margin: 0; }

.brigade-cabinet-page-shell .complete-pct { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }

.brigade-cabinet-page-shell .profile-promotion-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  border: 2px solid oklch(0.84 0.16 85);
  background: linear-gradient(135deg, var(--surface-accent-subtle), var(--card));
}

.brigade-cabinet-page-shell .profile-promotion-card__main {
  display: flex;
  min-width: 0;
  gap: 16px;
}

.brigade-cabinet-page-shell .profile-promotion-card__icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: none;
  place-items: center;
  border-radius: 16px;
  background: var(--primary);
  color: #111;
}

.brigade-cabinet-page-shell .profile-promotion-card__icon i, .brigade-cabinet-page-shell .profile-promotion-card__icon svg.lucide {
  width: 22px;
  height: 22px;
}

.brigade-cabinet-page-shell .profile-promotion-card__eyebrow {
  margin: 0 0 4px;
  color: var(--foreground);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.brigade-cabinet-page-shell .profile-promotion-card h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.brigade-cabinet-page-shell .profile-promotion-card p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--foreground);
  font-size: 15px;
  line-height: 1.45;
}

.brigade-cabinet-page-shell .profile-promotion-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.brigade-cabinet-page-shell .profile-promotion-card li {
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  font-size: 13px;
  font-weight: 700;
}

.brigade-cabinet-page-shell .profile-promotion-card__side {
  display: grid;
  gap: 12px;
  justify-items: end;
}

.brigade-cabinet-page-shell .profile-promotion-card__price {
  text-align: right;
}

.brigade-cabinet-page-shell .profile-promotion-card__price b {
  display: block;
  font-size: 28px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -.03em;
}

.brigade-cabinet-page-shell .profile-promotion-card__price span {
  color: var(--foreground);
  font-size: 14px;
}

.brigade-cabinet-page-shell .profile-promotion-card__side [data-slot="button"] {
  min-width: 220px;
}

.brigade-cabinet-page-shell .profile-promotion-card__side [data-slot="button"] svg, .brigade-cabinet-page-shell .profile-promotion-card__side [data-slot="button"] i {
  width: 17px;
  height: 17px;
}

.brigade-cabinet-page-shell .bar { height: 12px; border-radius: 999px; background: var(--muted); overflow: hidden; margin-bottom: 18px; }

.brigade-cabinet-page-shell .bar > span { display: block; height: 100%; background: var(--primary); border-radius: 999px; }

.brigade-cabinet-page-shell .checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

@media (max-width: 640px){ .brigade-cabinet-page-shell .checklist { grid-template-columns: 1fr; } }

.brigade-cabinet-page-shell .check { display: flex; align-items: center; justify-content: flex-start; gap: 12px; min-height: 56px; height: auto; padding: 12px 14px; font-size: 16px; font-weight: 500; line-height: 1.25; text-align: left; white-space: normal; border-radius: 12px; background: var(--card); border: 1px solid var(--border); }

.brigade-cabinet-page-shell .check .ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; }

.brigade-cabinet-page-shell .check-label { min-width: 0; line-height: 1.25; text-align: left; }

.brigade-cabinet-page-shell .check.done .ico { background: oklch(0.62 0.17 149 / 0.16); color: var(--text-success); }

.brigade-cabinet-page-shell .check.done:disabled { opacity: 1; color: var(--foreground); }

.brigade-cabinet-page-shell .check.todo .ico { background: var(--muted); color: var(--muted-foreground); }

.brigade-cabinet-page-shell .check .ico i, .brigade-cabinet-page-shell .check .ico svg.lucide { width: 18px; height: 18px; }

.brigade-cabinet-page-shell .check.todo { cursor: pointer; }

.brigade-cabinet-page-shell .check.todo:hover { border-color: var(--primary); }

.brigade-cabinet-page-shell .check .go { margin-left: auto; color: var(--foreground); }

.brigade-cabinet-page-shell .check .go i, .brigade-cabinet-page-shell .check .go svg.lucide { width: 18px; height: 18px; }

.brigade-cabinet-page-shell .check.is-soon { cursor: default; opacity: .72; }

.brigade-cabinet-page-shell .check.is-soon:hover { border-color: var(--border); }

.brigade-cabinet-page-shell .check.is-soon .ico { background: var(--muted); color: var(--muted-foreground); }

.brigade-cabinet-page-shell .soon-badge { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--foreground); background: var(--muted); border: 1px solid var(--border); padding: 3px 9px; border-radius: 999px; }

/* spec chips */

.brigade-cabinet-page-shell .spec-chips { display: flex; flex-wrap: wrap; gap: 10px; }

.brigade-cabinet-page-shell .spec-chip { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 12px; background: var(--selected); color: var(--on-selected); font-size: 15px; font-weight: 600; }

.brigade-cabinet-page-shell .spec-chip i, .brigade-cabinet-page-shell .spec-chip svg.lucide { width: 17px; height: 17px; color: var(--primary); }

.brigade-cabinet-page-shell .spec-chip.add { background: var(--card); color: var(--foreground); border: 2px dashed var(--border); cursor: pointer; }

.brigade-cabinet-page-shell .spec-chip.add i, .brigade-cabinet-page-shell .spec-chip.add svg.lucide { color: var(--muted-foreground); }

.brigade-cabinet-page-shell .spec-chip.add:hover { border-color: var(--primary); }

/* about */

.brigade-cabinet-page-shell .about-text { font-size: 17px; line-height: 1.6; color: var(--foreground); margin: 0; }

/* services / prices */

.brigade-cabinet-page-shell .price-row { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--border); }

.brigade-cabinet-page-shell .price-row:first-of-type { border-top: none; }

.brigade-cabinet-page-shell .price-row .pi { width: 44px; height: 44px; border-radius: 11px; background: var(--muted); display: grid; place-items: center; flex: none; }

.brigade-cabinet-page-shell .price-row .pi i, .brigade-cabinet-page-shell .price-row .pi svg.lucide { width: 22px; height: 22px; }

.brigade-cabinet-page-shell .price-row .pn { font-size: 16px; font-weight: 600; }

.brigade-cabinet-page-shell .price-row .pu { font-size: 14px; color: var(--foreground); margin-top: 2px; }

.brigade-cabinet-page-shell .price-row .pp { margin-left: auto; font-weight: 700; font-size: 18px; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* brigade-cabinet-desktop/03-brigade-cabinet-desktop.css */
/* portfolio */

.brigade-cabinet-page-shell #pfModal .pf-vm, .brigade-cabinet-page-shell #pfModal .pf-field label, .brigade-cabinet-page-shell #pfModal .pf-drop, .brigade-cabinet-page-shell #pfModal .svc-dialog-head .t, .brigade-cabinet-page-shell #pfModal label, .brigade-cabinet-page-shell #pfModal .pf-view-desc { color: var(--foreground) !important; }

.brigade-cabinet-page-shell #pfModal .sb-input::placeholder { color: oklch(0.55 0 0); }

.brigade-cabinet-page-shell #pfModal #pfBody { padding-bottom: 40px; }

.brigade-cabinet-page-shell .pf-view-img { height: 220px; border-radius: 12px; background: var(--muted); display: grid; place-items: center; color: var(--foreground); margin-bottom: 14px; }

.brigade-cabinet-page-shell .pf-view-img i, .brigade-cabinet-page-shell .pf-view-img svg { width: 34px; height: 34px; opacity: .4; }

.brigade-cabinet-page-shell .pf-view-meta { display: flex; gap: 16px; margin-bottom: 10px; }

.brigade-cabinet-page-shell .pf-vm { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--foreground); }

.brigade-cabinet-page-shell .pf-vm i, .brigade-cabinet-page-shell .pf-vm svg { width: 15px; height: 15px; }

.brigade-cabinet-page-shell .pf-view-desc { font-size: 15px; line-height: 1.55; margin: 0; }

.brigade-cabinet-page-shell .pf-drop { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; border: 2px dashed var(--border); border-radius: 12px; padding: 26px; cursor: pointer; color: var(--foreground); font-size: 14px; }

.brigade-cabinet-page-shell .pf-drop:hover { border-color: var(--primary); background: var(--surface-accent-subtle); }

.brigade-cabinet-page-shell .pf-drop i, .brigade-cabinet-page-shell .pf-drop svg { width: 28px; height: 28px; }

.brigade-cabinet-page-shell .pf-field { margin-top: 14px; }

.brigade-cabinet-page-shell .pf-field label { display: block; font-size: 13px; font-weight: 600; color: var(--foreground); margin-bottom: 7px; }

.brigade-cabinet-page-shell .pf-field .sb-input-group { width: 100%; height: 3rem; }

.brigade-cabinet-page-shell .pf-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.brigade-cabinet-page-shell .pf-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

.brigade-cabinet-page-shell .portfolio-file-input { display: none; }

.brigade-cabinet-page-shell .portfolio-error { margin: 0 0 12px; color: var(--destructive); font-size: 14px; font-weight: 600; }

.brigade-cabinet-page-shell .portfolio-preview-card { gap: 0; }

.brigade-cabinet-page-shell .portfolio-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 320px)); gap: 14px; justify-content: start; }

.brigade-cabinet-page-shell .portfolio-preview-item { overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: var(--card); }

.brigade-cabinet-page-shell .portfolio-preview-image { min-height: 120px; background: var(--muted); display: grid; place-items: center; color: var(--foreground); }

.brigade-cabinet-page-shell .portfolio-preview-image.has-image { display: block; min-height: 0; background: var(--muted); }

/* The frame is capped, and the photo fills the frame. Capping the photo alone left the frame at
   the photo's full proportions: on a 723px card a 4:3 photo stopped at 420px inside a 542px
   frame, with 122px of empty grey under it. */
.brigade-cabinet-page-shell .portfolio-image { display: block; width: 100%; height: 100%; max-height: 420px; object-fit: contain; }

.brigade-cabinet-page-shell .portfolio-preview-image i, .brigade-cabinet-page-shell .portfolio-preview-image svg { width: 28px; height: 28px; opacity: .45; }

.brigade-cabinet-page-shell .portfolio-preview-title { padding: 10px 12px; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.brigade-cabinet-page-shell .portfolio-preview-empty { width: 100%; min-height: 120px; border: 2px dashed var(--border); border-radius: 14px; background: transparent; color: var(--foreground); display: grid; place-items: center; gap: 8px; cursor: pointer; font: inherit; font-weight: 600; }

.brigade-cabinet-page-shell .portfolio-preview-empty:hover { border-color: var(--primary); color: var(--foreground); background: var(--surface-accent-subtle); }

.brigade-cabinet-page-shell .portfolio-preview-empty i, .brigade-cabinet-page-shell .portfolio-preview-empty svg { width: 30px; height: 30px; }

.brigade-cabinet-page-shell .pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 320px)); gap: 14px; justify-content: start; }

/*
  One project per row on a phone.

  Two columns suited a photo tile with a one-line caption; a project card carries fact rows and a
  paragraph, and at 390px two columns left the value 49px to wrap "Фундамент УШП" into nine lines
  of fragments.
*/
@media (max-width: 640px){ .brigade-cabinet-page-shell .pf-grid { grid-template-columns: minmax(0, 1fr); } }

.brigade-cabinet-page-shell .pf { border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--card); }

.brigade-cabinet-page-shell .pf-img { min-height: 150px; background: var(--muted); display: grid; place-items: center; color: var(--foreground); position: relative; }

.brigade-cabinet-page-shell .pf-img.has-image { display: block; width: 100%; min-height: 0; max-height: 420px; background: var(--muted); }

.brigade-cabinet-page-shell .pf-img > i, .brigade-cabinet-page-shell .pf-img > [data-slot="icon-anchor"] > i, .brigade-cabinet-page-shell .pf-img > svg.lucide, .brigade-cabinet-page-shell .pf-img > [data-slot="icon-anchor"] > svg.lucide { width: 30px; height: 30px; opacity: .4; }

.brigade-cabinet-page-shell .pf-cap { padding: 12px 14px; }

.brigade-cabinet-page-shell .pf-cap .t { font-size: 15px; font-weight: 600; }

.brigade-cabinet-page-shell .pf-cap .s { font-size: 13px; color: var(--foreground); margin-top: 2px; }

/* A portfolio entry is a project: its facts, and the form that fills them in. */

.brigade-cabinet-page-shell .pf-badge { display: inline-flex; align-items: center; margin-top: 8px; margin-right: 6px; padding: 2px 9px; border-radius: 999px; background: var(--muted); color: var(--foreground); font-size: 12px; font-weight: 700; }

.brigade-cabinet-page-shell .pf-badge--featured { background: var(--primary); color: var(--primary-foreground); }

.brigade-cabinet-page-shell .pf-facts { display: grid; gap: 4px; margin: 10px 0 0; padding: 0; }

.brigade-cabinet-page-shell .pf-fact { display: flex; gap: 8px; align-items: baseline; min-width: 0; }

.brigade-cabinet-page-shell .pf-fact dt { flex: none; font-size: 12px; font-weight: 600; color: var(--foreground); }

.brigade-cabinet-page-shell .pf-fact dd { margin: 0; min-width: 0; font-size: 13px; color: var(--foreground); overflow-wrap: anywhere; }

@media (max-width: 640px){
  .brigade-cabinet-page-shell .pf-fact { display: grid; gap: 1px; }
}

.brigade-cabinet-page-shell .pf-note { margin: 10px 0 0; font-size: 13px; line-height: 1.45; color: var(--foreground); overflow-wrap: anywhere; }

.brigade-cabinet-page-shell .pf-edit { margin-top: 12px; width: 100%; }

.brigade-cabinet-page-shell .pf-empty { grid-column: 1 / -1; padding: 22px; border: 1px dashed var(--border); border-radius: 14px; text-align: center; }

.brigade-cabinet-page-shell .pf-empty-title { font-size: 16px; font-weight: 700; color: var(--foreground); }

.brigade-cabinet-page-shell .pf-empty-body { margin: 6px 0 0; font-size: 14px; color: var(--foreground); }

.brigade-cabinet-page-shell .pf-editor { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px; border-top: 1px solid var(--border); background: var(--muted); }

.brigade-cabinet-page-shell .pf-field { display: grid; gap: 5px; min-width: 0; }

.brigade-cabinet-page-shell .pf-field--wide { grid-column: 1 / -1; }

.brigade-cabinet-page-shell .pf-field-label { font-size: 12px; font-weight: 600; color: var(--foreground); }

.brigade-cabinet-page-shell .pf-featured { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; }
/* The title and its hint are stacked, and the box is centred on the title's own 18px line: left
   inline, the title sat on the label's taller line and the box rode 5px above it. */
.brigade-cabinet-page-shell .pf-featured > span { display: flex; flex-direction: column; min-width: 0; }
.brigade-cabinet-page-shell .pf-featured .pf-field-label { line-height: 18px; }
.brigade-cabinet-page-shell .pf-featured .sb-checkbox { margin-top: 1px; }

.brigade-cabinet-page-shell .pf-featured-hint { display: block; margin-top: 2px; font-size: 12px; line-height: 1.35; color: var(--foreground); }

.brigade-cabinet-page-shell .pf-editor-actions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
/* Removing a project sits apart from saving it, at the far end of the row, and is asked twice. */
.brigade-cabinet-page-shell .pf-remove { margin-left: auto; color: var(--destructive); }
/* The form for a project that does not exist yet: a card of its own in the grid, with the photo
   as one field among the facts. */
.brigade-cabinet-page-shell .pf--new { grid-column: 1 / -1; max-width: 560px; }
.brigade-cabinet-page-shell .pf--new .pf-editor { border-top: 0; background: var(--card); }
.brigade-cabinet-page-shell .pf-editor-title { grid-column: 1 / -1; font-size: 18px; font-weight: 700; color: var(--foreground); }
.brigade-cabinet-page-shell .pf-photo { justify-items: start; }
.brigade-cabinet-page-shell .pf-photo-preview { width: 100%; aspect-ratio: 4 / 3; border-radius: 12px; border: 1px solid var(--border); background: var(--muted) center / cover no-repeat; }
.brigade-cabinet-page-shell .pf-photo-hint { font-size: 12px; line-height: 1.4; color: var(--foreground); }
.brigade-cabinet-page-shell .pf-field-error { font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--destructive); }
.brigade-cabinet-page-shell p.pf-field-error { margin: 0; }

/* The project form: its photos as a row of thumbs, the first the cover, and a number beside its
   unit. Thumbs are a fixed 104px so ten of them wrap instead of stretching one across the form. */
.brigade-cabinet-page-shell .pf-photos { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; margin: 0; padding: 0; list-style: none; }
.brigade-cabinet-page-shell .pf-photos-item { position: relative; display: grid; gap: 6px; justify-items: start; width: 104px; }
.brigade-cabinet-page-shell .pf-photos-item .pf-photo-preview { aspect-ratio: 1; border-radius: 10px; }
.brigade-cabinet-page-shell .pf-photos-item [data-slot="button"] { width: 100%; min-height: 32px; height: auto; padding: 4px 6px; font-size: 12px; line-height: 1.25; white-space: normal; }
.brigade-cabinet-page-shell .pf-photos-item .pf-photos-remove { position: absolute; top: 4px; right: 4px; width: 28px; min-height: 28px; height: 28px; padding: 0; border-radius: 999px; background: var(--background); }
.brigade-cabinet-page-shell .pf-photos-remove i, .brigade-cabinet-page-shell .pf-photos-remove svg { width: 14px; height: 14px; }
.brigade-cabinet-page-shell .pf-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.brigade-cabinet-page-shell .pf-pair [data-slot="select-trigger"] { width: 100%; }
.brigade-cabinet-page-shell .pf-editor [data-slot="select-trigger"], .brigade-cabinet-page-shell .pf-editor [role="combobox"] { min-width: 0; background: var(--background); }
.brigade-cabinet-page-shell .pf-img { position: relative; }
.brigade-cabinet-page-shell .pf-photo-count { position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: #111; color: #fff; font-size: 12px; font-weight: 600; line-height: 1.3; }
.brigade-cabinet-page-shell .pf-photo-count i, .brigade-cabinet-page-shell .pf-photo-count svg { width: 13px; height: 13px; }
@media (max-width: 767px) {
  /* 44px touch targets in the form a thumb fills in. */
  .brigade-cabinet-page-shell .pf-editor [data-slot="input"], .brigade-cabinet-page-shell .pf-editor-actions [data-slot="button"], .brigade-cabinet-page-shell .pf-photo-pick { min-height: 44px; }
  .brigade-cabinet-page-shell .pf-photo-pick { width: 100%; }
}
.brigade-cabinet-page-shell .pf-remove-confirm { grid-column: 1 / -1; display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border); }
.brigade-cabinet-page-shell .pf-remove-confirm p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--foreground); }

@media (max-width: 640px){ .brigade-cabinet-page-shell .pf-editor { grid-template-columns: minmax(0, 1fr); } }

.brigade-cabinet-page-shell .pf.add { border: 2px dashed var(--border); display: grid; place-items: center; min-height: 196px; color: var(--foreground); cursor: pointer; }

.brigade-cabinet-page-shell .pf.add:hover { border-color: var(--primary); color: var(--foreground); }

.brigade-cabinet-page-shell .pf.add:disabled { cursor: progress; opacity: .68; }

.brigade-cabinet-page-shell .pf.add .inner { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }

.brigade-cabinet-page-shell .pf.add .inner i, .brigade-cabinet-page-shell .pf.add .inner svg.lucide { display: block; width: 30px; height: 30px; margin: 0 auto; }

.brigade-cabinet-page-shell .pf.add .inner div { font-size: 15px; font-weight: 600; margin-top: 8px; }

/* reviews */

.brigade-cabinet-page-shell .review { padding: 18px 0; border-top: 1px solid var(--border); display: flex; gap: 14px; }

.brigade-cabinet-page-shell .review:first-of-type { border-top: none; padding-top: 0; }

/* The ratings summary above the list: the average, and how the ratings split. */

.brigade-cabinet-page-shell .rev-body { flex: 1; min-width: 0; }

/* No reviews yet. Previously drawn as a review card with an em dash for a face and the empty
   message where a name goes, which read as a review from somebody called "—". */

.brigade-cabinet-page-shell .rev-empty { padding: 22px; border: 1px dashed var(--border); border-radius: 14px; text-align: center; }

.brigade-cabinet-page-shell .rev-empty-title { font-size: 16px; font-weight: 700; color: var(--foreground); }

.brigade-cabinet-page-shell .rev-empty-body { margin: 6px 0 0; font-size: 14px; color: var(--foreground); }

.brigade-cabinet-page-shell .rev-summary { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }

.brigade-cabinet-page-shell .rev-score { display: grid; gap: 4px; justify-items: center; flex: none; }

.brigade-cabinet-page-shell .rev-score-value { font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; color: var(--foreground); }

.brigade-cabinet-page-shell .rev-score-stars { display: inline-flex; gap: 2px; color: var(--primary); }

.brigade-cabinet-page-shell .rev-score-stars svg, .brigade-cabinet-page-shell .rev-score-stars i { width: 17px; height: 17px; }

.brigade-cabinet-page-shell .rev-score-total { font-size: 14px; font-weight: 600; color: var(--foreground); }

.brigade-cabinet-page-shell .rev-breakdown { flex: 1; min-width: 220px; display: grid; gap: 7px; list-style: none; margin: 0; padding: 0; }

.brigade-cabinet-page-shell .rev-breakdown-row { display: flex; align-items: center; gap: 10px; }

.brigade-cabinet-page-shell .rev-breakdown-stars { width: 12px; flex: none; font-size: 13px; font-weight: 700; color: var(--foreground); }

.brigade-cabinet-page-shell .rev-breakdown-bar { flex: 1; min-width: 0; height: 8px; border-radius: 999px; background: var(--muted); overflow: hidden; }

.brigade-cabinet-page-shell .rev-breakdown-fill { display: block; height: 100%; border-radius: 999px; background: var(--primary); }

.brigade-cabinet-page-shell .rev-breakdown-count { width: 26px; flex: none; text-align: right; font-size: 13px; font-weight: 600; color: var(--foreground); }

.brigade-cabinet-page-shell .review .rav { width: 46px; height: 46px; border-radius: 50%; background: var(--secondary); color: var(--secondary-foreground); display: grid; place-items: center; font-weight: 700; flex: none; }

.brigade-cabinet-page-shell .review .rtop { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.brigade-cabinet-page-shell .review .rn { font-size: 16px; font-weight: 600; }

.brigade-cabinet-page-shell .review .stars { display: inline-flex; gap: 2px; color: var(--primary); }

.brigade-cabinet-page-shell .review .stars i, .brigade-cabinet-page-shell .review .stars svg.lucide { width: 16px; height: 16px; }

.brigade-cabinet-page-shell .review .rd { font-size: 13px; color: var(--foreground); margin-left: auto; }

.brigade-cabinet-page-shell .review .rp { font-size: 13px; color: var(--foreground); margin: 5px 0 7px; display: flex; align-items: flex-start; gap: 6px; }
.brigade-cabinet-page-shell .review .rp i, .brigade-cabinet-page-shell .review .rp svg.lucide { width: 13px; height: 13px; flex: none; margin-top: 3px; }
/* On a phone the date does not fit beside the name and the stars; pushed right, it hung on a
   line of its own at the far edge. It takes the line under the name instead. */
@media (max-width: 767px) { .brigade-cabinet-page-shell .review .rtop { row-gap: 2px; } .brigade-cabinet-page-shell .review .rtop .rd { flex-basis: 100%; margin-left: 0; } }

.brigade-cabinet-page-shell .review .rtext { font-size: 16px; line-height: 1.55; margin: 0; }

/* ===== responses ===== */

.brigade-cabinet-page-shell .resp-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; margin-bottom: 22px; }

.brigade-cabinet-page-shell .resp-head > div { min-width: 0; }

.brigade-cabinet-page-shell .resp-h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 6px; }

.brigade-cabinet-page-shell .resp-sub { font-size: 16px; color: var(--foreground); margin: 0; max-width: none; }

.brigade-cabinet-page-shell .responses-find-orders-action { flex: none; }

.brigade-cabinet-page-shell .add-work-action { background: var(--selected); color: var(--on-selected); }

.brigade-cabinet-page-shell .add-work-action:hover { background: color-mix(in oklch, var(--selected) 86%, var(--on-selected)); }

.brigade-cabinet-page-shell .resp-invites { margin-bottom: 22px; padding: 20px 22px; border: 2px solid var(--primary); border-radius: 16px; background: var(--card); }

.brigade-cabinet-page-shell .resp-invites-head h2 { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 700; color: var(--foreground); }

.brigade-cabinet-page-shell .resp-invites-head p { margin: 4px 0 0; font-size: 14px; line-height: 1.45; color: var(--foreground); }

.brigade-cabinet-page-shell .resp-invites-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }

.brigade-cabinet-page-shell .resp-invite { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; min-width: 0; padding-top: 12px; border-top: 1px solid var(--border); }

.brigade-cabinet-page-shell .resp-invite-main { display: flex; flex: 1 1 240px; flex-direction: column; gap: 4px; min-width: 0; }

.brigade-cabinet-page-shell .resp-invite-title { font-size: 16px; line-height: 1.35; font-weight: 600; color: var(--foreground); overflow-wrap: anywhere; }

.brigade-cabinet-page-shell .resp-invite-meta { font-size: 13px; line-height: 1.45; color: var(--foreground); overflow-wrap: anywhere; }

.brigade-cabinet-page-shell .resp-invite [data-slot="button"] { flex: 0 1 auto; min-width: 0; }

.brigade-cabinet-page-shell .resp-invite-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; min-width: 0; }

.brigade-cabinet-page-shell .resp-invite-status { flex: 0 0 auto; padding: 2px 8px; border: 1px solid var(--border); border-radius: 999px; font-size: 12px; line-height: 1.4; font-weight: 600; color: var(--foreground); }

.brigade-cabinet-page-shell .resp-invite-status[data-invitation-status="SENT"] { border-color: var(--primary); background: var(--primary); color: var(--primary-foreground); }

.brigade-cabinet-page-shell .resp-invite-actions { display: flex; flex: 0 1 auto; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }

.brigade-cabinet-page-shell .resp-invite-error { flex: 1 0 100%; margin: 0; font-size: 13px; line-height: 1.45; color: var(--foreground); }

.brigade-cabinet-page-shell .resp-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }

.brigade-cabinet-page-shell .resp-filters [data-slot="button"] { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 12px; border: 2px solid var(--border); background: var(--card); font-family: inherit; font-size: 15px; font-weight: 600; color: var(--foreground); cursor: pointer; transition: all .12s ease; }

.brigade-cabinet-page-shell .resp-filters [data-slot="button"] span { font-size: 13px; color: var(--foreground); font-variant-numeric: tabular-nums; }

.brigade-cabinet-page-shell .resp-filters [data-slot="button"][data-active="true"] { background: var(--selected); color: var(--on-selected); border-color: var(--selected); }

.brigade-cabinet-page-shell .resp-filters [data-slot="button"][data-active="true"] span { color: var(--on-selected); }

.brigade-cabinet-page-shell .resp-list { display: flex; flex-direction: column; gap: 14px; }

.brigade-cabinet-page-shell .resp-empty { display: grid; min-height: 260px; place-items: center; gap: 14px; padding: 42px 24px; border: 1px solid var(--border); border-radius: 16px; background: var(--card); color: var(--foreground); text-align: center; }

.brigade-cabinet-page-shell .resp-empty-icon { display: grid; width: 64px; height: 64px; place-items: center; border-radius: 18px; background: var(--muted); color: var(--foreground); }

.brigade-cabinet-page-shell .resp-empty-icon i, .brigade-cabinet-page-shell .resp-empty-icon svg { width: 30px; height: 30px; }

.brigade-cabinet-page-shell .resp-empty h2 { margin: 0; color: var(--foreground); font-size: 22px; font-weight: 800; line-height: 1.12; }

.brigade-cabinet-page-shell .resp-empty p { max-width: 440px; margin: 8px 0 0; font-size: 15px; line-height: 1.45; }

.brigade-cabinet-page-shell .resp-empty [data-slot="button"] { margin-top: 4px; }

.brigade-cabinet-page-shell .resp-item { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 20px 22px; display: grid; grid-template-columns: 1fr auto auto; gap: 28px; align-items: center; transition: border-color .12s ease, box-shadow .12s ease; }

.brigade-cabinet-page-shell .resp-item:hover { border-color: oklch(0.8 0 0); box-shadow: var(--shadow-sm); }

@media (max-width: 768px){ .brigade-cabinet-page-shell .resp-item { grid-template-columns: 1fr; gap: 16px; } }

.brigade-cabinet-page-shell .resp-badges { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }

.brigade-cabinet-page-shell .resp-badges .sb-badge { height: 26px; padding: 0 11px; font-size: 13px; }

.brigade-cabinet-page-shell .resp-badges .sb-badge--secondary { background: var(--surface-strong); color: var(--foreground); }

.brigade-cabinet-page-shell .resp-date { font-size: 13px; color: var(--foreground); }

.brigade-cabinet-page-shell .resp-item h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; line-height: 1.3; }

.brigade-cabinet-page-shell .resp-ometa { font-size: 14px; color: var(--foreground); }

/* What the customer wrote, on one line. The full text lives on the order page; a paragraph here
   would push the next card off a phone screen. */
.brigade-cabinet-page-shell .resp-desc { margin: 8px 0 0; font-size: 14px; line-height: 1.45; color: var(--foreground); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Who posted the order. */
.brigade-cabinet-page-shell .resp-customer { display: flex; align-items: center; gap: 10px; margin-top: 12px; min-width: 0; }

.brigade-cabinet-page-shell .resp-customer-avatar { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--muted); font-size: 13px; font-weight: 700; color: var(--foreground); }

.brigade-cabinet-page-shell .resp-customer-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }

.brigade-cabinet-page-shell .resp-customer-name { display: inline-flex; align-items: center; gap: 5px; min-width: 0; font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Sized here rather than left to the icon default, so a long name cannot squeeze the tick. */

.brigade-cabinet-page-shell .resp-customer-rating { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--foreground); }

.brigade-cabinet-page-shell .resp-bid { display: flex; gap: 26px; }

.brigade-cabinet-page-shell .resp-bid .bid span { font-size: 13px; color: var(--foreground); display: block; margin-bottom: 3px; }

.brigade-cabinet-page-shell .resp-bid .bid b { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

.brigade-cabinet-page-shell .resp-actions { display: flex; flex-direction: column; gap: 8px; min-width: 190px; }

@media (max-width: 768px){ .brigade-cabinet-page-shell .resp-actions { min-width: 0; } }

.brigade-cabinet-page-shell .resp-actions { align-items: stretch; }

.brigade-cabinet-page-shell .resp-ico { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 40px; gap: 6px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); color: var(--foreground); cursor: pointer; font-family: inherit; font-size: 13px; }

.brigade-cabinet-page-shell .resp-ico:hover { background: var(--muted); color: var(--foreground); }

.brigade-cabinet-page-shell .resp-ico--del:hover { background: oklch(0.6 0.2 25 / 0.1); border-color: var(--destructive); color: color-mix(in oklab, var(--destructive) 78%, var(--foreground)); }

/* brigade-cabinet-desktop/04-brigade-cabinet-desktop.css */
.brigade-cabinet-page-shell .resp-ico i, .brigade-cabinet-page-shell .resp-ico svg { width: 16px; height: 16px; }

.brigade-cabinet-page-shell .resp-actions .resp-ico { width: 44px; }

.brigade-cabinet-page-shell .resp-actions { flex-direction: row; align-items: center; flex-wrap: wrap; justify-content: flex-end; max-width: 340px; }

/* The card is `1fr auto auto`, so the actions take whatever width their buttons ask for and
   the text column gets the remainder. A third button -- "Удалить отклик" -- put all three on
   one row and pulled the column to 526px, squeezing the order's title and description into
   174px. The cap makes them wrap instead, which is what `flex-wrap` above was already for. */
.brigade-cabinet-page-shell .resp-left { min-width: 0; }

.brigade-cabinet-page-shell .resp-actions [data-slot="button"] { flex: 1; min-width: 160px; margin-right: 10px; }

.brigade-cabinet-page-shell [data-cab="settings"] .resp-head { margin-bottom: 4px; }

/* ===== services & prices ===== */

.brigade-cabinet-page-shell .svc-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }

.brigade-cabinet-page-shell .svc-item { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; display: grid; grid-template-columns: 1fr auto auto auto; gap: 24px; align-items: center; }

@media (max-width: 768px){ .brigade-cabinet-page-shell .svc-item { grid-template-columns: 1fr; gap: 14px; } }

.brigade-cabinet-page-shell .svc-work { min-width: 0; }

.brigade-cabinet-page-shell .svc-cat { font-size: 12px; font-weight: 600; color: var(--foreground); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 5px; }

.brigade-cabinet-page-shell .svc-name { font-size: 17px; font-weight: 700; }

.brigade-cabinet-page-shell .svc-unit { font-size: 13px; color: var(--foreground); margin-top: 2px; }

.brigade-cabinet-page-shell .svc-market { text-align: right; }

.brigade-cabinet-page-shell .svc-market .lbl { font-size: 12px; color: var(--foreground); margin-bottom: 4px; }

.brigade-cabinet-page-shell .svc-market .val { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

.brigade-cabinet-page-shell .svc-price { text-align: right; }

.brigade-cabinet-page-shell .svc-price .lbl { font-size: 12px; color: var(--foreground); margin-bottom: 4px; }

.brigade-cabinet-page-shell .price-edit { display: inline-flex; align-items: center; gap: 4px; border: 2px solid var(--border); border-radius: 10px; padding: 0 12px; height: 44px; background: var(--card); transition: border-color .12s ease; }

.brigade-cabinet-page-shell .price-edit:focus-within { border-color: var(--primary); }

.brigade-cabinet-page-shell .price-edit input { width: 78px; border: none; outline: none; font-family: inherit; font-size: 17px; font-weight: 700; text-align: right; background: transparent; font-variant-numeric: tabular-nums; color: var(--foreground); }

.brigade-cabinet-page-shell .price-edit .cur { font-size: 14px; color: var(--foreground); white-space: nowrap; }

.brigade-cabinet-page-shell .svc-delta { font-size: 12px; font-weight: 600; margin-top: 6px; display: inline-flex; align-items: center; gap: 3px; justify-content: flex-end; width: 100%; }

.brigade-cabinet-page-shell .svc-delta i { width: 13px; height: 13px; }

.brigade-cabinet-page-shell .svc-delta.up { color: var(--destructive); }

.brigade-cabinet-page-shell .svc-delta.down { color: var(--success); }

.brigade-cabinet-page-shell .svc-delta.flat { color: var(--foreground); }

.brigade-cabinet-page-shell .svc-del { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border); background: var(--card); display: grid; place-items: center; cursor: pointer; color: var(--foreground); }

.brigade-cabinet-page-shell .svc-del:hover { background: var(--surface-danger-subtle); color: color-mix(in oklab, var(--destructive) 78%, var(--foreground)); border-color: var(--destructive); }

.brigade-cabinet-page-shell .svc-del i, .brigade-cabinet-page-shell .svc-del svg.lucide { width: 19px; height: 19px; }

.brigade-cabinet-page-shell .svc-empty { display: flex; min-height: 220px; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 40px 24px; border: 2px dashed var(--border); border-radius: 16px; color: var(--foreground); }

.brigade-cabinet-page-shell .svc-empty i, .brigade-cabinet-page-shell .svc-empty svg { display: block; width: 32px; height: 32px; flex: none; margin: 0 auto; opacity: .5; }

.brigade-cabinet-page-shell .svc-empty p { max-width: 420px; margin: 0; font-size: 15px; line-height: 1.45; }

.brigade-cabinet-page-shell .cond-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

@media (max-width: 640px){ .brigade-cabinet-page-shell .cond-grid { grid-template-columns: 1fr; } }

.brigade-cabinet-page-shell .cond { display: flex; align-items: center; gap: 13px; }

.brigade-cabinet-page-shell .cond .ci { width: 44px; height: 44px; border-radius: 11px; background: var(--muted); display: grid; place-items: center; flex: none; }

.brigade-cabinet-page-shell .cond .ci i, .brigade-cabinet-page-shell .cond .ci svg.lucide { width: 21px; height: 21px; }

.brigade-cabinet-page-shell .cond .cl { font-size: 13px; color: var(--foreground); }

.brigade-cabinet-page-shell .cond .cv { font-size: 16px; font-weight: 600; margin-top: 2px; }

/* ===== catalog drawer ===== */

body.sb-drawer-open { overflow: hidden; }

.drawer-overlay { position: fixed; inset: 0; background: oklch(0.145 0 0 / 0.45); z-index: 80; display: flex; justify-content: flex-end; overscroll-behavior: contain; }

.drawer { width: 460px; max-width: 92vw; height: 100dvh; max-height: 100dvh; background: var(--card); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }

.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 16px; border-bottom: 1px solid var(--border); }

.drawer-title { font-size: 19px; font-weight: 700; }

.drawer-sub { font-size: 13px; color: var(--foreground); margin-top: 3px; }

.drawer-close { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--card); display: grid; place-items: center; cursor: pointer; color: var(--foreground); flex: none; }

.drawer-close:hover { background: var(--muted); color: var(--foreground); }

.drawer-close i, .drawer-close svg.lucide { width: 19px; height: 19px; }

.drawer-search { padding: 16px 24px; border-bottom: 1px solid var(--border); }

.drawer-search .sb-input-group { width: 100%; height: 2.75rem; }

.drawer-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px 0 24px; }

.cat-group-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--foreground); padding: 16px 24px 8px; }

/*
  The rules of this sheet -- overlay, panel, head, rows -- carry no page-shell scope: a dialog is
  portalled to the end of <body>, outside the shell, so a scoped rule names an ancestor it does
  not have. Every one of them was scoped, and the sheet rendered with none of them: no background,
  no stacking above the cabinet's bars, and each row a kit button -- one fixed-height nowrap line,
  as wide as its title, with the "+" wherever the title ended. Found by the owner on a phone.

  A row is a kit Button, which is a single 36px nowrap line. A work's name is a sentence: it
  wraps, and the row grows to hold it.
*/
.cat-work { display: flex; align-items: center; gap: 14px; width: 100%; height: auto; min-height: 56px; padding: 12px 24px; border: none; border-radius: 0; background: transparent; font: inherit; text-align: left; white-space: normal; cursor: pointer; transition: background-color .1s ease; }

.cat-work:hover { background: var(--muted); }

.cat-work .cw-main { flex: 1; min-width: 0; }

.cat-work .cw-name { font-size: 15px; font-weight: 600; line-height: 1.25; text-align: left; overflow-wrap: anywhere; }

.cat-work .cw-market { font-size: 13px; color: var(--foreground); margin-top: 2px; line-height: 1.25; text-align: left; }

.cat-work .cw-add { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--border); background: var(--card); display: grid; place-items: center; color: var(--foreground); flex: none; }

.cat-work:hover .cw-add { background: var(--primary); border-color: var(--primary); color: #000; }

.cat-work.is-added { opacity: .5; pointer-events: none; }

.cat-work.is-added .cw-add { background: var(--success); border-color: var(--success); color: #fff; }

.cat-work .cw-add i, .cat-work .cw-add svg.lucide { width: 18px; height: 18px; }

.brigade-cabinet-page-shell .toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: #111; color: #fff; font-size: 15px; padding: 13px 20px; border-radius: 12px; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; display: flex; align-items: center; gap: 10px; z-index: 90; }

.brigade-cabinet-page-shell .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.brigade-cabinet-page-shell .toast i, .brigade-cabinet-page-shell .toast svg.lucide { width: 18px; height: 18px; color: var(--primary); }

/* services editor (profi-style) */

.brigade-cabinet-page-shell .svc-selcount { font-size: 14px; color: var(--foreground); align-self: center; }

.brigade-cabinet-page-shell .svc-selcount b { color: var(--foreground); font-weight: 700; }

.brigade-cabinet-page-shell .svc-editor { padding: 0; }

.brigade-cabinet-page-shell .svc-tabs { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }

.brigade-cabinet-page-shell .svc-tab { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); background: var(--card); font-family: inherit; padding: 9px 16px 9px 10px; border-radius: 13px; cursor: pointer; text-align: left; transition: border-color .12s ease, background .12s ease; }

.brigade-cabinet-page-shell .svc-tab:hover { border-color: var(--foreground); }

.brigade-cabinet-page-shell .svc-tab-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--muted); display: grid; place-items: center; flex: none; }

.brigade-cabinet-page-shell .svc-tab-ic i, .brigade-cabinet-page-shell .svc-tab-ic svg { width: 19px; height: 19px; color: var(--foreground); }

.brigade-cabinet-page-shell .svc-tab-l { min-width: 0; font-size: 14px; font-weight: 700; color: var(--foreground); line-height: 1.15; white-space: nowrap; }

.brigade-cabinet-page-shell .svc-tab-ch { width: 16px; height: 16px; color: var(--foreground); flex: none; }

.brigade-cabinet-page-shell .svc-tab[data-active="true"] { background: var(--selected); border-color: var(--selected); }

.brigade-cabinet-page-shell .svc-tab[data-active="true"] .svc-tab-l { color: var(--on-selected); }

.brigade-cabinet-page-shell .svc-tab[data-active="true"] .svc-tab-ic { background: var(--primary); }

.brigade-cabinet-page-shell .svc-tab[data-active="true"] .svc-tab-ic i, .brigade-cabinet-page-shell .svc-tab[data-active="true"] .svc-tab-ic svg { color: #111; }

.brigade-cabinet-page-shell .svc-tab[data-active="true"] .svc-tab-ch { color: var(--on-selected); }

.brigade-cabinet-page-shell .svc-layout { display: grid; grid-template-columns: 280px minmax(0,1fr); }

@media (max-width: 1024px){ .brigade-cabinet-page-shell .svc-layout { grid-template-columns: 1fr; } .brigade-cabinet-page-shell .svc-side { border-right: none !important; border-bottom: 1px solid var(--border); } }

.brigade-cabinet-page-shell .svc-side { border-right: 1px solid var(--border); padding: 14px 12px; }

.brigade-cabinet-page-shell .svc-side-t { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--foreground); padding: 4px 10px 10px; }

.brigade-cabinet-page-shell .svc-type { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px 11px 14px; border: none; background: transparent; border-radius: 10px; font-family: inherit; font-size: 15px; font-weight: 700; color: var(--foreground); cursor: pointer; text-align: left; }

.brigade-cabinet-page-shell .svc-type:hover { background: var(--muted); }

.brigade-cabinet-page-shell .svc-type[data-active="true"] { background: var(--surface-accent-subtle); }

/* ===== Услуги и цены: справочник расценок ===== */

/* The object categories. Fixed columns rather than auto-fit: the cabinet's own rule is that a
   wide monitor must not spread four cards into a row nobody scans. */
.brigade-cabinet-page-shell .svc-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }

.brigade-cabinet-page-shell .svc-cat { display: flex; align-items: center; gap: 14px; width: 100%; padding: 18px 20px; background: var(--card); border: 1px solid var(--border); border-radius: 16px; cursor: pointer; text-align: left; font-family: inherit; color: var(--foreground); }

.brigade-cabinet-page-shell .svc-cat[data-available="false"] { cursor: default; opacity: .62; }

.brigade-cabinet-page-shell .svc-cat[data-available="true"]:hover { border-color: var(--primary); }

.brigade-cabinet-page-shell .svc-cat-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--primary); color: var(--primary-foreground); }

.brigade-cabinet-page-shell .svc-cat-icon svg { width: 21px; height: 21px; }

.brigade-cabinet-page-shell .svc-cat-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }

.brigade-cabinet-page-shell .svc-cat-name { font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em; }

.brigade-cabinet-page-shell .svc-cat-meta { font-size: 13px; }

.brigade-cabinet-page-shell .svc-cat-chev { width: 18px; height: 18px; flex: none; }

.brigade-cabinet-page-shell .svc-cat-soon { flex: none; padding: 4px 10px; border-radius: 999px; background: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; }

.brigade-cabinet-page-shell .svc-cat-head { margin-bottom: 18px; }

.brigade-cabinet-page-shell .svc-back { margin-bottom: 12px; }

/* The rate table. One grid definition drives the head and every row, so a column added to one
   without the other cannot shift the whole table sideways -- the orders board lost a table that
   way once. */
.brigade-cabinet-page-shell .svc-table { background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; margin-bottom: 22px; }

.brigade-cabinet-page-shell .svc-search { padding: 16px 18px; border-bottom: 1px solid var(--border); }

.brigade-cabinet-page-shell .svc-thead, .brigade-cabinet-page-shell .svc-row { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr) 96px 104px 150px; gap: 20px; align-items: center; padding: 12px 18px; }

.brigade-cabinet-page-shell .svc-thead { background: #111; color: #fff; font-size: 15px; font-weight: 700; white-space: nowrap; }

.brigade-cabinet-page-shell .svc-trade-head { display: flex; align-items: center; gap: 11px; width: 100%; padding: 11px 18px; background: var(--surface-sunken); border: none; border-top: 1px solid var(--border); cursor: pointer; font-family: inherit; text-align: left; color: var(--foreground); }

.brigade-cabinet-page-shell .svc-trade-icon { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 7px; background: var(--primary); color: var(--primary-foreground); }

.brigade-cabinet-page-shell .svc-trade-icon svg { width: 15px; height: 15px; }

.brigade-cabinet-page-shell .svc-trade-label { flex: 1; min-width: 0; font-size: 15.5px; font-weight: 700; overflow-wrap: anywhere; }

.brigade-cabinet-page-shell .svc-trade-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 7px; flex: none; border-radius: 999px; background: var(--primary); color: var(--primary-foreground); font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; }

.brigade-cabinet-page-shell .svc-trade-chev { width: 17px; height: 17px; flex: none; }

.brigade-cabinet-page-shell .svc-row { border-top: 1px solid var(--border); }
/* The offers the directory does not list: name, unit, price, and the way out. */
.brigade-cabinet-page-shell .own-rates { margin-top: 6px; }
.brigade-cabinet-page-shell .own-rates-hint { margin: 4px 0 0; font-size: 13px; line-height: 1.45; color: var(--foreground); }
.brigade-cabinet-page-shell .own-rates-list { display: grid; }
.brigade-cabinet-page-shell .own-rate { display: grid; grid-template-columns: minmax(0, 1fr) 96px 150px auto; gap: 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--border); }
.brigade-cabinet-page-shell .own-rate-name { min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.brigade-cabinet-page-shell .own-rate-unit { font-size: 13px; color: var(--foreground); }
/* "Убрать" is a control: outlined, with an icon, in the destructive colour. As ghost text it read
   as a red caption beside the price. */
.brigade-cabinet-page-shell .own-rate-remove { border-color: color-mix(in oklab, var(--destructive) 45%, var(--border)); color: var(--destructive); }
.brigade-cabinet-page-shell .own-rate-remove:hover { background: color-mix(in oklab, var(--destructive) 8%, var(--card)); color: var(--destructive); }
/* The question takes its own line and the two answers sit in a row under it. As one wrapping
   flex line, "Убрать" landed in the middle of the sentence on a phone. */
.brigade-cabinet-page-shell .own-rate-confirm { grid-column: 1 / -1; display: grid; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--muted); }
.brigade-cabinet-page-shell .own-rate-confirm-question { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--foreground); }
.brigade-cabinet-page-shell .own-rate-confirm-actions { display: flex; gap: 8px; }
/* Where a rate change is between the tap and the server -- the screen has no Save button. */
.brigade-cabinet-page-shell .svc-save-status { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--muted); color: var(--foreground); font-size: 14px; font-weight: 600; line-height: 1.35; }
.brigade-cabinet-page-shell .svc-save-status-line { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.brigade-cabinet-page-shell .svc-save-status-line i, .brigade-cabinet-page-shell .svc-save-status-line svg { flex: none; width: 18px; height: 18px; }
.brigade-cabinet-page-shell .svc-save-status[data-state="saved"] { border-color: color-mix(in oklab, var(--success) 45%, var(--border)); background: color-mix(in oklab, var(--success) 10%, var(--card)); }
.brigade-cabinet-page-shell .svc-save-status[data-state="error"] { border-color: color-mix(in oklab, var(--destructive) 45%, var(--border)); background: color-mix(in oklab, var(--destructive) 8%, var(--card)); }
@media (prefers-reduced-motion: no-preference) {
  .brigade-cabinet-page-shell .svc-save-status[data-state="saving"] .svc-save-status-line svg { animation: svc-save-spin 0.9s linear infinite; }
}
@keyframes svc-save-spin { to { transform: rotate(360deg); } }
@media (max-width: 767px) {
  .brigade-cabinet-page-shell .own-rate { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
  /* The name and the unit are two lines with air between them: run together they read as one
     word, "Кладка₽/м²". */
  .brigade-cabinet-page-shell .own-rate-name { grid-column: 1 / -1; line-height: 1.3; }
  .brigade-cabinet-page-shell .own-rate-unit { grid-column: 1 / -1; display: block; }
  /* 44px is the touch target; the kit's default button is 36. */
  .brigade-cabinet-page-shell .own-rate-price, .brigade-cabinet-page-shell .own-rate-remove { min-height: 44px; }
  .brigade-cabinet-page-shell .own-rate-confirm-actions [data-slot="button"] { flex: 1 1 0; min-width: 0; min-height: 44px; }
}

.brigade-cabinet-page-shell .svc-row[data-on="true"] { background: var(--surface-subtle); }

.brigade-cabinet-page-shell .svc-row-work { display: flex; align-items: center; gap: 12px; min-width: 0; cursor: pointer; }

.brigade-cabinet-page-shell .svc-row-name { flex: 1; min-width: 0; font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }

.brigade-cabinet-page-shell .svc-row-desc { min-width: 0; font-size: 13px; overflow-wrap: anywhere; }

.brigade-cabinet-page-shell .svc-row-unit, .brigade-cabinet-page-shell .svc-row-market { font-size: 13.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }

.brigade-cabinet-page-shell .svc-row-price { display: flex; align-items: center; gap: 8px; min-width: 0; }

.brigade-cabinet-page-shell .svc-price-input { height: 36px; font-size: 14px; font-variant-numeric: tabular-nums; }

/* How far the price sits from the median. Colour carries the direction, but the sign is written
   out as well: on a greyscale screen red and green are the same grey. */
.brigade-cabinet-page-shell .svc-row-diff { flex: none; padding: 3px 9px; border-radius: 9px; font-size: 10.5px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--text-success); background: var(--surface-success-subtle); }

.brigade-cabinet-page-shell .svc-row-diff[data-above="true"] { color: color-mix(in oklab, var(--destructive) 78%, var(--foreground)); background: var(--surface-danger-subtle); }

/* The rate directory's description field is empty for every rate in production today. Without
   this the table keeps a heading over 650 blank cells and gives them a full grid track; the
   column comes back on its own once the directory has descriptions to show. */
.brigade-cabinet-page-shell .svc-table[data-descriptions="false"] .svc-col-desc { display: none; }

.brigade-cabinet-page-shell .svc-table[data-descriptions="false"] .svc-thead, .brigade-cabinet-page-shell .svc-table[data-descriptions="false"] .svc-row { grid-template-columns: minmax(0, 1fr) 96px 104px 150px; }

@media (max-width: 1024px) {
  .brigade-cabinet-page-shell .svc-thead .svc-col-desc, .brigade-cabinet-page-shell .svc-row-desc { display: none; }

  .brigade-cabinet-page-shell .svc-thead, .brigade-cabinet-page-shell .svc-row { grid-template-columns: minmax(0, 1fr) 96px 104px 150px; }
}

@media (max-width: 768px) {
  .brigade-cabinet-page-shell .svc-cats { grid-template-columns: minmax(0, 1fr); }

  /* The head is a table head with no table under it once the row stacks, so it goes. */
  .brigade-cabinet-page-shell .svc-thead { display: none; }

  .brigade-cabinet-page-shell .svc-row, .brigade-cabinet-page-shell .svc-table[data-descriptions="false"] .svc-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }

  .brigade-cabinet-page-shell .svc-row-unit, .brigade-cabinet-page-shell .svc-row-market { font-size: 13px; }

  /* The head is hidden here, so each of these two carries its own name. */
  .brigade-cabinet-page-shell .svc-row-unit[data-label]::before, .brigade-cabinet-page-shell .svc-row-market[data-label]::before { content: attr(data-label) ": "; font-weight: 500; }

  .brigade-cabinet-page-shell .svc-price-input { width: 100%; }
}

/* brigade-cabinet-desktop/05-brigade-cabinet-desktop.css */
.brigade-cabinet-page-shell .svc-type .svc-type-n { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--foreground); font-variant-numeric: tabular-nums; }

.brigade-cabinet-page-shell .svc-type[data-active="true"] .svc-type-n { color: var(--foreground); }

.brigade-cabinet-page-shell .svc-type .svc-type-chev { width: 16px; height: 16px; color: var(--muted-foreground); flex: none; margin-left: 2px; }

.brigade-cabinet-page-shell .svc-main { min-width: 0; }

.brigade-cabinet-page-shell .svc-toolbar { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); }

.brigade-cabinet-page-shell .svc-searchbox { flex: 1; height: 2.75rem; }

.brigade-cabinet-page-shell .svc-collapse-all { display: inline-flex; align-items: center; gap: 7px; height: 2.75rem; padding: 0 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); font-family: inherit; font-size: 13px; font-weight: 600; color: var(--foreground); cursor: pointer; white-space: nowrap; }

.brigade-cabinet-page-shell .svc-collapse-all:hover { background: var(--muted); }

.brigade-cabinet-page-shell .svc-collapse-all i, .brigade-cabinet-page-shell .svc-collapse-all svg { width: 16px; height: 16px; }

.brigade-cabinet-page-shell .svc-addown { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-top: 1px solid var(--border); background: var(--surface-subtle); flex-wrap: wrap; }

.brigade-cabinet-page-shell .svc-addown-btn { display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 16px; border: 1px dashed var(--border); border-radius: 10px; background: var(--card); font-family: inherit; font-size: 14px; font-weight: 600; color: var(--primary-hover); cursor: pointer; }

.brigade-cabinet-page-shell .svc-addown-btn:hover { border-color: var(--primary); background: var(--surface-accent-subtle); }

.brigade-cabinet-page-shell .svc-addown-btn i, .brigade-cabinet-page-shell .svc-addown-btn svg { width: 16px; height: 16px; }

.brigade-cabinet-page-shell .svc-addown-hint { font-size: 13px; color: var(--foreground); }

.brigade-cabinet-page-shell .svcr { border-top: none; }

.brigade-cabinet-page-shell .svcr-head, .brigade-cabinet-page-shell .svcr-row { display: grid; grid-template-columns: 40px minmax(110px,0.7fr) minmax(110px,0.82fr) 82px 232px 184px; align-items: center; gap: 14px; padding: 8px 20px; min-height: 56px; }

.brigade-cabinet-page-shell .svcr-unit { font-size: 13px; color: var(--foreground); white-space: nowrap; }

.brigade-cabinet-page-shell .svcr-desc { font-size: 12.5px; color: var(--foreground); line-height: 1.35; }

.brigade-cabinet-page-shell .svcr-head { background: var(--surface-inverse); color: var(--on-surface-inverse); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; min-height: 0; }

.brigade-cabinet-page-shell .svcr-head .num { text-align: right; }

.brigade-cabinet-page-shell .svcr-gbar { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 20px; background: var(--surface-sunken); border: none; border-top: 1px solid oklch(0.9 0 0); cursor: pointer; font-family: inherit; text-align: left; }

.brigade-cabinet-page-shell .svcr-gic { width: 30px; height: 30px; border-radius: 8px; background: var(--card); border: 1px solid var(--border); display: grid; place-items: center; flex: none; }

.brigade-cabinet-page-shell .svcr-gic i, .brigade-cabinet-page-shell .svcr-gic svg { width: 16px; height: 16px; }

.brigade-cabinet-page-shell .svcr-gname { font-size: 14px; font-weight: 700; }

.brigade-cabinet-page-shell .svcr-gcount { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--foreground); background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; }

.brigade-cabinet-page-shell .svcr-gchev { width: 16px; height: 16px; color: var(--muted-foreground); transition: transform .18s ease; margin-left: 12px; flex: none; }

.brigade-cabinet-page-shell .svcr-group.open .svcr-gchev { transform: rotate(180deg); }

.brigade-cabinet-page-shell .svcr-rows[hidden] { display: none; }

.brigade-cabinet-page-shell .svcr-row { border-top: 1px solid oklch(0.92 0 0); background: var(--background); }

.brigade-cabinet-page-shell .svcr-row.on { background: var(--surface-accent-subtle); }

.brigade-cabinet-page-shell .svcr-pick { display: grid; place-items: center; }

.brigade-cabinet-page-shell .svcr-pick .sb-checkbox { width: 20px; height: 20px; }

.brigade-cabinet-page-shell .svcr-work { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.brigade-cabinet-page-shell .svcr-name { font-size: 14px; font-weight: 500; }

.brigade-cabinet-page-shell .svcr-u { font-size: 12px; color: var(--foreground); }

.brigade-cabinet-page-shell .svcr-my { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }

.brigade-cabinet-page-shell .svcr-mkt { text-align: right; }

.brigade-cabinet-page-shell .svcr-mval { display: block; font-weight: 700; font-variant-numeric: tabular-nums; }

.brigade-cabinet-page-shell .svcr-ml { font-size: 11px; color: var(--foreground); }

.brigade-cabinet-page-shell .svcr-dyn { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }

.brigade-cabinet-page-shell .svcr-delta { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }

.brigade-cabinet-page-shell .svcr-delta i, .brigade-cabinet-page-shell .svcr-delta svg { width: 13px; height: 13px; }

.brigade-cabinet-page-shell .svcr-delta.up { color: var(--price-up); }

.brigade-cabinet-page-shell .svcr-delta.down { color: var(--price-down); }

.brigade-cabinet-page-shell .svcr-delta.flat { color: var(--price-flat); }

.brigade-cabinet-page-shell .svcr-inline { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--input); border-radius: 9px; padding: 0 10px; height: 40px; background: var(--background); }

.brigade-cabinet-page-shell .svcr-inline:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px oklch(0.85 0.12 95 / 0.35); }

.brigade-cabinet-page-shell .svcr-price { width: 80px; border: none; outline: none; background: transparent; font-family: inherit; font-size: 15px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

.brigade-cabinet-page-shell .svcr-unit2 { font-size: 12px; color: var(--foreground); white-space: nowrap; }

.brigade-cabinet-page-shell .svcr-range { font-size: 12px; color: var(--foreground); white-space: nowrap; }

.brigade-cabinet-page-shell .svcr-edit { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--card); display: grid; place-items: center; cursor: pointer; color: var(--foreground); flex: none; }

.brigade-cabinet-page-shell .svcr-edit:hover { background: var(--muted); }

.brigade-cabinet-page-shell .svcr-edit i, .brigade-cabinet-page-shell .svcr-edit svg { width: 17px; height: 17px; }

.brigade-cabinet-page-shell .svcr-addprice { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border: 1px solid var(--primary); border-radius: 9px; background: var(--primary); font-family: inherit; font-size: 13px; font-weight: 700; color: #000; cursor: pointer; }

.brigade-cabinet-page-shell .svcr-addprice:hover { background: var(--primary-hover); border-color: var(--primary-hover); }

.brigade-cabinet-page-shell .svcr-addprice i, .brigade-cabinet-page-shell .svcr-addprice svg { width: 15px; height: 15px; }

.brigade-cabinet-page-shell .svcr-note { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--foreground); line-height: 1.5; padding: 14px 20px 4px; }

.brigade-cabinet-page-shell .svcr-note i, .brigade-cabinet-page-shell .svcr-note svg { width: 15px; height: 15px; flex: none; margin-top: 1px; color: var(--primary-hover); }

@media (max-width: 768px){
      .brigade-cabinet-page-shell .svcr-head { display: none; }
      .brigade-cabinet-page-shell .svcr-row { grid-template-columns: 34px minmax(0,1fr); row-gap: 10px; }
      .brigade-cabinet-page-shell .svcr-desc, .brigade-cabinet-page-shell .svcr-my, .brigade-cabinet-page-shell .svcr-mkt, .brigade-cabinet-page-shell .svcr-dyn { grid-column: 2; justify-content: flex-start; text-align: left; }
    }

/* rates-style services table (как база расценок) */

.brigade-cabinet-page-shell .svc-rates { width: 100%; border-collapse: collapse; }

.brigade-cabinet-page-shell .svc-rates thead th { text-align: left; padding: 12px 16px; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--on-surface-inverse); background: var(--surface-inverse); border-bottom: none; white-space: nowrap; }

.brigade-cabinet-page-shell .svc-rates th.num, .brigade-cabinet-page-shell .svc-rates td.num { text-align: right; }

.brigade-cabinet-page-shell .svc-rates td { padding: 12px 16px; border-bottom: 1px solid oklch(0.92 0 0); vertical-align: middle; background: var(--background); }

.brigade-cabinet-page-shell .svc-cat-row td { background: var(--surface-sunken); border-top: 1px solid oklch(0.9 0 0); border-bottom: 1px solid oklch(0.9 0 0); padding: 11px 16px; }

.brigade-cabinet-page-shell .svc-cat-name { font-size: 14px; font-weight: 700; }

.brigade-cabinet-page-shell .svc-cat-count { font-size: 12px; font-weight: 500; color: var(--foreground); text-align: right; }

.brigade-cabinet-page-shell .svc-cx { display: inline-flex; align-items: center; gap: 11px; cursor: pointer; }

.brigade-cabinet-page-shell .svc-work { display: flex; flex-direction: column; gap: 2px; }

.brigade-cabinet-page-shell .svc-wt { font-size: 14px; font-weight: 500; }

.brigade-cabinet-page-shell .svc-wu { font-size: 12px; color: var(--foreground); }

.brigade-cabinet-page-shell .svc-row2.on { background: var(--surface-accent-subtle); }

.brigade-cabinet-page-shell .svc-my { white-space: nowrap; }

.brigade-cabinet-page-shell .svc-my .svc-row-edit { margin-left: 6px; vertical-align: middle; }

.brigade-cabinet-page-shell .svc-mkt .mn { font-family: var(--font-mono); font-weight: 600; display: block; }

.brigade-cabinet-page-shell .svc-mkt-l { font-size: 11px; color: var(--foreground); }

.brigade-cabinet-page-shell .svc-add-price { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border: 1px dashed var(--border); border-radius: 9px; background: var(--card); font-family: inherit; font-size: 13px; font-weight: 600; color: var(--primary-hover); cursor: pointer; }

.brigade-cabinet-page-shell .svc-add-price:hover { border-color: var(--primary); background: var(--surface-accent-subtle); }

.brigade-cabinet-page-shell .svc-add-price i, .brigade-cabinet-page-shell .svc-add-price svg { width: 15px; height: 15px; }

.brigade-cabinet-page-shell .svc-dyn { display: inline-flex; align-items: center; gap: 10px; justify-content: flex-end; }

.brigade-cabinet-page-shell .svc-delta { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }

.brigade-cabinet-page-shell .svc-delta i, .brigade-cabinet-page-shell .svc-delta svg { width: 13px; height: 13px; }

.brigade-cabinet-page-shell .svc-delta.up { color: var(--price-up); }

.brigade-cabinet-page-shell .svc-delta.down { color: var(--price-down); }

.brigade-cabinet-page-shell .svc-delta.flat { color: var(--price-flat); }

.brigade-cabinet-page-shell .svc-note { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--foreground); line-height: 1.5; padding: 14px 4px 2px; }

.brigade-cabinet-page-shell .svc-note i, .brigade-cabinet-page-shell .svc-note svg { width: 15px; height: 15px; flex: none; margin-top: 1px; color: var(--primary-hover); }

/* brigade-cabinet-desktop/06-brigade-cabinet-desktop.css */
.brigade-cabinet-page-shell .svc-row-range { font-size: 12px; color: var(--foreground); margin-top: 3px; }

.brigade-cabinet-page-shell .svc-search { margin-bottom: 8px; }

.brigade-cabinet-page-shell .svc-search .sb-input-group { width: 100%; height: 3rem; }

.brigade-cabinet-page-shell .svc-grp { border-top: 1px solid var(--border); }

.brigade-cabinet-page-shell .svc-grp:first-child { border-top: none; }

.brigade-cabinet-page-shell .svc-grp-head { display: flex; align-items: center; gap: 6px; }

.brigade-cabinet-page-shell .svc-cx .sb-checkbox { width: 20px; height: 20px; flex: none; }

.brigade-cabinet-page-shell .svc-grp-btn { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; background: none; border: none; cursor: pointer; font-family: inherit; padding: 15px 8px; text-align: left; }

.brigade-cabinet-page-shell .svc-grp-name { font-size: 16px; font-weight: 700; }

.brigade-cabinet-page-shell .svc-grp-count { font-size: 12px; font-weight: 600; color: var(--foreground); background: var(--muted); border-radius: 999px; padding: 3px 10px; }

.brigade-cabinet-page-shell .svc-grp-chev { width: 18px; height: 18px; color: var(--muted-foreground); margin-left: auto; transition: transform .18s ease; }

.brigade-cabinet-page-shell .svc-grp.open .svc-grp-chev { transform: rotate(180deg); }

.brigade-cabinet-page-shell .svc-grp-items { padding: 2px 8px 12px 44px; display: flex; flex-direction: column; }

.brigade-cabinet-page-shell .svc-grp-items[hidden] { display: none; }

.brigade-cabinet-page-shell .svc-row-tx { flex: 1; min-width: 0; }

.brigade-cabinet-page-shell .svc-row-mkt { font-size: 12px; color: var(--foreground); margin-top: 1px; }

.brigade-cabinet-page-shell .svc-row-val { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

.brigade-cabinet-page-shell .svc-row-empty { font-size: 13px; color: var(--foreground); }

.brigade-cabinet-page-shell .svc-row-edit { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--card); display: grid; place-items: center; cursor: pointer; color: var(--foreground); flex: none; }

.brigade-cabinet-page-shell .svc-row-edit:hover { background: var(--muted); }

.brigade-cabinet-page-shell .svc-row-edit i, .brigade-cabinet-page-shell .svc-row-edit svg { width: 17px; height: 17px; }

.brigade-cabinet-page-shell .svc-row-editph { width: 40px; flex: none; }

/* service edit modal */

.brigade-cabinet-page-shell #svcModal.sb-overlay { position: fixed; inset: 0; background: oklch(0.145 0 0 / 0.45); display: grid; place-items: center; z-index: 90; padding: 24px; }

.brigade-cabinet-page-shell .svc-dialog { width: min(520px, 94vw); background: var(--card); border-radius: 16px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; }

.brigade-cabinet-page-shell .svc-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px 18px; }

.brigade-cabinet-page-shell .svc-dialog-head .t { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }

.brigade-cabinet-page-shell .svc-dialog-close { width: 36px; height: 36px; border-radius: 10px; border: none; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--foreground); flex: none; }

.brigade-cabinet-page-shell .svc-dialog-close:hover { background: var(--muted); color: var(--foreground); }

.brigade-cabinet-page-shell .svc-dialog-close i, .brigade-cabinet-page-shell .svc-dialog-close svg { width: 20px; height: 20px; }

.brigade-cabinet-page-shell .svc-dialog-body { padding: 0 24px 8px; display: flex; flex-direction: column; gap: 16px; }

.brigade-cabinet-page-shell .svc-dialog-body .field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }

.brigade-cabinet-page-shell .svc-price-fields { display: flex; align-items: center; gap: 10px; }

.brigade-cabinet-page-shell .svc-price-fields .sb-input-group { flex: 1; height: 3rem; }

.brigade-cabinet-page-shell .svc-unit-sel { height: 3rem; min-width: 110px; }

.brigade-cabinet-page-shell .svc-range-dash { color: var(--foreground); }

.brigade-cabinet-page-shell .svc-range-toggle { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; cursor: pointer; }

.brigade-cabinet-page-shell input.sb-switch { -webkit-appearance: none; appearance: none; width: 44px; height: 24px; border-radius: 999px; background: var(--input); position: relative; cursor: pointer; flex: none; transition: background-color .15s ease; }

.brigade-cabinet-page-shell input.sb-switch:checked { background: var(--primary); }

.brigade-cabinet-page-shell input.sb-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-xs); transition: transform .15s ease; }

.brigade-cabinet-page-shell input.sb-switch:checked::after { transform: translateX(20px); }

.brigade-cabinet-page-shell .svc-dialog-body .sb-textarea { width: 100%; min-height: 90px; resize: vertical; }

.brigade-cabinet-page-shell .svc-dialog-foot { display: flex; gap: 12px; padding: 18px 24px 22px; }

.brigade-cabinet-page-shell .svc-dialog-foot .sb-btn { flex: 1; height: 3rem; }

/* inline price in row */

.brigade-cabinet-page-shell .svc-inline { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--input); border-radius: 9px; padding: 0 10px; height: 40px; background: var(--background); }

.brigade-cabinet-page-shell .svc-inline:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px oklch(0.85 0.12 95 / 0.35); }

.brigade-cabinet-page-shell .svc-inline-price { width: 92px; border: none; outline: none; background: transparent; font-family: inherit; font-size: 15px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

.brigade-cabinet-page-shell .svc-inline-unit { font-size: 12px; color: var(--foreground); white-space: nowrap; }

.brigade-cabinet-page-shell .svc-row-range { font-size: 12px; color: var(--foreground); white-space: nowrap; }

/* settings */

.brigade-cabinet-page-shell .set-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

@media (max-width: 640px){ .brigade-cabinet-page-shell .set-grid { grid-template-columns: 1fr; } }

.brigade-cabinet-page-shell .set-field label { display: block; font-size: 13px; font-weight: 600; color: var(--foreground); margin-bottom: 7px; }

.brigade-cabinet-page-shell .set-field .sb-input-group, .brigade-cabinet-page-shell .set-field .sb-select-trigger { width: 100%; height: 2.75rem; }

.brigade-cabinet-page-shell .set-field .sb-input, .brigade-cabinet-page-shell .set-field .sb-select-trigger { font-size: 14px; }

.brigade-cabinet-page-shell .set-actions { margin-top: 18px; }

.brigade-cabinet-page-shell .set-verify { display: flex; flex-direction: column; gap: 10px; }

.brigade-cabinet-page-shell .vrow { display: flex; align-items: center; gap: 13px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; }

.brigade-cabinet-page-shell .vrow.ok { background: oklch(0.62 0.17 149 / 0.06); border-color: oklch(0.62 0.17 149 / 0.3); }

.brigade-cabinet-page-shell .vic { width: 40px; height: 40px; border-radius: 10px; background: var(--muted); display: grid; place-items: center; flex: none; }

.brigade-cabinet-page-shell .vic i, .brigade-cabinet-page-shell .vic svg { width: 19px; height: 19px; }

.brigade-cabinet-page-shell .vtx { flex: 1; min-width: 0; }

.brigade-cabinet-page-shell .vt { font-size: 15px; font-weight: 600; }

.brigade-cabinet-page-shell .vs { font-size: 13px; color: var(--foreground); margin-top: 1px; }

.brigade-cabinet-page-shell .vbadge { font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; }

.brigade-cabinet-page-shell .vbadge.ok { background: oklch(0.62 0.17 149 / 0.16); color: var(--text-success); }

.brigade-cabinet-page-shell .vbadge i, .brigade-cabinet-page-shell .vbadge svg { width: 13px; height: 13px; }

.brigade-cabinet-page-shell .set-toggle { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--border); cursor: pointer; }

.brigade-cabinet-page-shell .set-toggle:first-of-type { border-top: none; }

.brigade-cabinet-page-shell .set-toggle .stx { flex: 1; display: flex; flex-direction: column; }

.brigade-cabinet-page-shell .set-toggle .st-t { font-size: 15px; font-weight: 600; }

.brigade-cabinet-page-shell .set-toggle .st-s { font-size: 13px; color: var(--muted-foreground); margin-top: 2px; }

.brigade-cabinet-page-shell .set-account { display: flex; gap: 12px; flex-wrap: wrap; }

.brigade-cabinet-page-shell .set-del { color: var(--destructive); }

/* Telegram-style messenger */

.brigade-cabinet-page-shell .tg { display: grid; grid-template-columns: 340px 1fr; height: calc(100vh - 128px); background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }

@media (max-width: 767px){ .brigade-cabinet-page-shell .tg { grid-template-columns: 1fr; } .brigade-cabinet-page-shell .tg-conv { display: none; } }

.brigade-cabinet-page-shell .tg-list { border-right: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; }

.brigade-cabinet-page-shell .tg-search { padding: 12px; border-bottom: 1px solid var(--border); }

.brigade-cabinet-page-shell .tg-search .sb-input-group { width: 100%; height: 2.5rem; }

.brigade-cabinet-page-shell .tg-chats { flex: 1; overflow-y: auto; }

.brigade-cabinet-page-shell .tg-chat { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; border: none; background: none; cursor: pointer; font-family: inherit; text-align: left; border-bottom: 1px solid var(--border); }

/* brigade-cabinet-desktop/07-brigade-cabinet-desktop.css */
.brigade-cabinet-page-shell .tg-chat:hover { background: var(--muted); }

.brigade-cabinet-page-shell .tg-chat.on { background: var(--muted); }

.brigade-cabinet-page-shell .tg-av { width: 48px; height: 48px; border-radius: 50%; background: #111; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 16px; flex: none; position: relative; }

.brigade-cabinet-page-shell .tg-on { position: absolute; right: 0; bottom: 0; width: 12px; height: 12px; border-radius: 50%; background: #4ade80; border: 2px solid var(--card); }

.brigade-cabinet-page-shell .tg-cm { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }

.brigade-cabinet-page-shell .tg-cn { font-size: 15px; font-weight: 600; }

.brigade-cabinet-page-shell .tg-cl { font-size: 13px; color: var(--foreground); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.brigade-cabinet-page-shell .tg-cr { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }

.brigade-cabinet-page-shell .tg-ct { font-size: 12px; color: var(--foreground); }

.brigade-cabinet-page-shell .tg-unread { background: var(--primary); color: #000; font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; }

.brigade-cabinet-page-shell .tg-conv { display: flex; flex-direction: column; min-height: 0; background: var(--muted); }

.brigade-cabinet-page-shell .tg-conv-head { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--card); border-bottom: 1px solid var(--border); }

.brigade-cabinet-page-shell .tg-conv-head .tg-av { width: 42px; height: 42px; font-size: 14px; }

.brigade-cabinet-page-shell .tg-ch-tx { flex: 1; min-width: 0; }

.brigade-cabinet-page-shell .tg-ch-n { font-size: 15px; font-weight: 700; }

.brigade-cabinet-page-shell .tg-ch-s { font-size: 12px; color: var(--foreground); }

.brigade-cabinet-page-shell .tg-ic { width: 40px; height: 40px; border-radius: 50%; border: none; background: none; display: grid; place-items: center; cursor: pointer; color: var(--foreground); flex: none; }

.brigade-cabinet-page-shell .tg-ic:hover { background: var(--muted); }

.brigade-cabinet-page-shell .tg-ic i, .brigade-cabinet-page-shell .tg-ic svg { width: 20px; height: 20px; }

.brigade-cabinet-page-shell .tg-scroll { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 6px; }

.brigade-cabinet-page-shell .tg-day { align-self: center; background: color-mix(in oklch, var(--foreground) 14%, transparent); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 12px; border-radius: 999px; margin-bottom: 6px; }

.brigade-cabinet-page-shell .tg-msg { display: flex; }

.brigade-cabinet-page-shell .tg-msg.out { justify-content: flex-end; }

.brigade-cabinet-page-shell .tg-bub { position: relative; max-width: 78%; padding: 8px 12px 8px; border-radius: 14px; font-size: 15px; line-height: 1.4; box-shadow: var(--shadow-xs); }

.brigade-cabinet-page-shell .tg-msg.in .tg-bub { background: var(--card); border-bottom-left-radius: 5px; }

.brigade-cabinet-page-shell .tg-msg.out .tg-bub { background: var(--surface-accent-subtle); border-bottom-right-radius: 5px; }

.brigade-cabinet-page-shell .tg-time { font-size: 11px; color: var(--foreground); margin-left: 10px; float: right; position: relative; top: 6px; }

.brigade-cabinet-page-shell .tg-input { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--card); border-top: 1px solid var(--border); }

.brigade-cabinet-page-shell .tg-input input { flex: 1; border: none; outline: none; background: var(--muted); border-radius: 999px; height: 42px; padding: 0 16px; font-family: inherit; font-size: 15px; }

.brigade-cabinet-page-shell .tg-send { width: 44px; height: 44px; border-radius: 50%; border: none; background: var(--primary); color: #000; display: grid; place-items: center; cursor: pointer; flex: none; }

.brigade-cabinet-page-shell .tg-send:hover { background: var(--primary-hover); }

.brigade-cabinet-page-shell .tg-send i, .brigade-cabinet-page-shell .tg-send svg { width: 20px; height: 20px; }

/* photo upload modal */

.brigade-cabinet-page-shell #photoModal.sb-overlay { position: fixed; inset: 0; background: oklch(0.145 0 0 / 0.45); display: grid; place-items: center; z-index: 90; padding: 24px; }

.brigade-cabinet-page-shell .photo-drop { border: 2px dashed var(--border); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; transition: border-color .12s ease, background-color .12s ease; }

.brigade-cabinet-page-shell .photo-drop.drag { border-color: var(--primary); background: var(--surface-accent-subtle); }

.brigade-cabinet-page-shell .photo-preview { width: 120px; height: 120px; border-radius: 20px; background: var(--muted); display: grid; place-items: center; color: var(--foreground); overflow: hidden; }

.brigade-cabinet-page-shell .photo-preview img { width: 100%; height: 100%; object-fit: cover; }

.brigade-cabinet-page-shell .photo-preview i, .brigade-cabinet-page-shell .photo-preview svg { width: 34px; height: 34px; opacity: .5; }

.brigade-cabinet-page-shell .photo-dz-tx { display: flex; flex-direction: column; gap: 2px; }

.brigade-cabinet-page-shell .photo-dz-tx b { font-size: 15px; }

.brigade-cabinet-page-shell .photo-dz-tx span { font-size: 13px; color: var(--foreground); }

.brigade-cabinet-page-shell .photo-hint { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--foreground); line-height: 1.5; margin-top: 14px; }

.brigade-cabinet-page-shell .photo-hint i, .brigade-cabinet-page-shell .photo-hint svg { width: 15px; height: 15px; flex: none; margin-top: 1px; color: var(--primary-hover); }

/* Product contracts preserved on top of the v3 mock styles. */

.brigade-cabinet-page-shell .check {
      font: inherit;
      color: inherit;
      text-align: left;
      width: 100%;
    }

.brigade-cabinet-page-shell .check:focus-visible {
      outline: 2px solid var(--primary);
      outline-offset: 2px;
    }

.brigade-cabinet-page-shell .pf.add .inner { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100%; width: 100%; }

.brigade-cabinet-page-shell .pf.add .inner i, .brigade-cabinet-page-shell .pf.add .inner svg.lucide { display: block; margin: 0 auto; }

.conditions-editor {
      margin-top: 18px;
      border-top: 1px solid var(--border);
      padding-top: 18px;
    }

.conditions-editor-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 16px;
    }

.conditions-editor-head > div {
      min-width: 0;
    }

.conditions-editor-head h3 {
      margin: 0;
      font-size: 18px;
      font-weight: 700;
    }

.conditions-editor-head p {
      margin: 4px 0 0;
      color: var(--foreground);
      font-size: 14px;
      line-height: 1.45;
    }

.conditions-cancel {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      min-width: 120px;
      min-inline-size: 120px;
      height: 44px;
      padding: 0 16px;
      border: 1px solid var(--border);
      border-radius: 12px;
      background: var(--card);
      color: var(--foreground);
      font: inherit;
      font-size: 14px;
      font-weight: 700;
      cursor: pointer;
      flex: 0 0 auto;
      white-space: nowrap;
    }

.conditions-cancel:hover { background: var(--muted); }

.conditions-cancel:disabled { cursor: default; opacity: .55; }

.conditions-cancel i, .conditions-cancel svg { width: 18px; height: 18px; flex: none; }

.conditions-form {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
    }

.conditions-readonly {
      min-height: 76px;
      border: 1px solid var(--border);
      border-radius: 12px;
      background: var(--muted);
      padding: 12px 14px;
    }

/* brigade-cabinet-desktop/08-brigade-cabinet-desktop.css */
.conditions-readonly span, .conditions-readonly small {
      display: block;
      color: var(--foreground);
      font-size: 13px;
      line-height: 1.35;
    }

.conditions-readonly strong {
      display: block;
      margin-top: 4px;
      color: var(--foreground);
      font-size: 16px;
      font-weight: 800;
      line-height: 1.2;
    }

.conditions-readonly small { margin-top: 6px; }

.conditions-form label {
      display: flex;
      flex-direction: column;
      gap: 7px;
      font-size: 13px;
      font-weight: 600;
      color: var(--foreground);
    }

.conditions-form input {
      height: 44px;
      border: 1px solid var(--input);
      border-radius: 10px;
      padding: 0 12px;
      font: inherit;
      font-size: 14px;
      color: var(--foreground);
      background: var(--background);
    }

.conditions-form input:focus {
      border-color: var(--primary);
      outline: none;
      box-shadow: 0 0 0 3px oklch(0.85 0.12 95 / 0.35);
    }

.conditions-form-wide {
      grid-column: 1 / -1;
    }

/* Сегменты радиуса: неактивный шаг тоже чёрный. Кит приносит `text-muted-foreground` своим
   дефолтом, а запрет на серый текст наш, поэтому правится здесь. Выбранный шаг отличается фоном
   и тенью, как уже решено для переключателя темы в `.settings-segmented` чуть ниже, — иерархия
   строится насыщенностью и фоном, а не цветом. */
.conditions-form-wide [data-slot="segmented-control-item"] {
      color: var(--foreground);
    }

.conditions-form .sb-textarea {
      width: 100%;
      min-height: 112px;
      resize: vertical;
    }

.conditions-editor-actions {
      display: flex;
      justify-content: flex-start;
      gap: 10px;
      margin-top: 16px;
    }

.brigade-cabinet-page-shell .settings-card {
      padding: 22px 24px;
    }

.brigade-cabinet-page-shell .settings-list {
      display: flex;
      flex-direction: column;
    }

.brigade-cabinet-page-shell .settings-row {
      display: grid;
      grid-template-columns: 44px minmax(0, 1fr) auto auto;
      align-items: center;
      gap: 14px;
      padding: 15px 0;
      border-top: 1px solid var(--border);
    }

.brigade-cabinet-page-shell .settings-row:first-child {
      border-top: 0;
      padding-top: 0;
    }

.brigade-cabinet-page-shell .settings-row:last-child {
      padding-bottom: 0;
    }

.brigade-cabinet-page-shell .settings-row--stacked {
      grid-template-columns: 44px minmax(0, 1fr) auto;
    }

.brigade-cabinet-page-shell .settings-icon {
      display: grid;
      width: 38px;
      height: 38px;
      place-items: center;
      border-radius: 11px;
      background: var(--muted);
      color: var(--foreground);
    }

.brigade-cabinet-page-shell .settings-icon i, .brigade-cabinet-page-shell .settings-icon svg {
      width: 20px;
      height: 20px;
    }

.brigade-cabinet-page-shell .settings-copy {
      min-width: 0;
      display: grid;
      gap: 4px;
    }

.brigade-cabinet-page-shell .settings-title {
      color: var(--foreground);
      font-size: 15px;
      font-weight: 800;
      line-height: 1.25;
    }

.brigade-cabinet-page-shell .settings-sub {
      max-width: 72ch;
      color: var(--foreground);
      font-size: 14px;
      line-height: 1.4;
      text-wrap: pretty;
    }

.brigade-cabinet-page-shell .settings-state {
      justify-self: end;
      color: var(--foreground);
      font-size: 13px;
      font-weight: 700;
      white-space: nowrap;
    }

.brigade-cabinet-page-shell .settings-state.is-success {
      color: var(--text-success);
    }

.brigade-cabinet-page-shell .settings-state.is-danger {
      color: var(--destructive);
    }

.brigade-cabinet-page-shell .settings-state.is-muted {
      color: var(--foreground);
    }

.brigade-cabinet-page-shell .settings-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }

.brigade-cabinet-page-shell .settings-danger {
      color: var(--destructive);
    }

.brigade-cabinet-page-shell .settings-switch {
      justify-self: end;
      width: 54px;
      height: 30px;
      border: 1px solid var(--border);
      border-radius: 999px;
      background: var(--muted);
      padding: 2px;
      display: inline-flex;
      align-items: center;
      cursor: pointer;
      transition: background-color .15s ease, border-color .15s ease;
      flex: none;
    }

/* brigade-cabinet-desktop/09-brigade-cabinet-desktop.css */
.brigade-cabinet-page-shell .settings-switch span {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      background: var(--card);
      box-shadow: var(--shadow-xs);
      transform: translateX(0);
      transition: transform .15s ease;
    }

.brigade-cabinet-page-shell .settings-switch.is-on {
      background: oklch(0.62 0.17 149 / 0.22);
      border-color: oklch(0.62 0.17 149 / 0.55);
    }

.brigade-cabinet-page-shell .settings-switch.is-on span {
      background: oklch(0.62 0.17 149);
      transform: translateX(24px);
    }

.brigade-cabinet-page-shell .settings-switch:disabled {
      cursor: not-allowed;
      opacity: .7;
    }

.brigade-cabinet-page-shell .settings-segmented {
      justify-self: end;
      display: inline-grid;
      grid-template-columns: repeat(3, minmax(96px, 1fr));
      align-items: center;
      min-width: 304px;
      padding: 4px;
      gap: 2px;
      border-radius: 12px;
      background: var(--muted);
      border: 1px solid var(--border);
    }

.brigade-cabinet-page-shell .settings-segmented button {
      box-sizing: border-box;
      min-width: 0;
      height: 36px;
      padding: 0 12px;
      border: none;
      border-radius: 9px;
      background: transparent;
      color: var(--foreground);
      font: inherit;
      font-size: 14px;
      font-weight: 700;
      cursor: pointer;
      white-space: nowrap;
    }

.brigade-cabinet-page-shell .settings-segmented button.is-active {
      background: var(--card);
      color: var(--foreground);
      box-shadow: var(--shadow-xs);
    }

.brigade-cabinet-page-shell .settings-segmented button:disabled {
      cursor: not-allowed;
      opacity: .7;
    }

@media (max-width: 640px) {
      .conditions-form { grid-template-columns: 1fr; }
      .conditions-editor-head { flex-direction: column; }
      .conditions-cancel { width: 100%; }
      .conditions-editor-actions { justify-content: stretch; }
      .conditions-editor-actions .sb-btn { flex: 1; }
      .brigade-cabinet-page-shell .settings-segmented { width: 100%; }
      .brigade-cabinet-page-shell .settings-segmented button { min-width: 0; flex: 1; }
    }

/* «Избранные бригады» (14.10.2026): the profiles starred on the site and the private contact
   book -- folders up to five deep, cards typed by hand, links to profiles. Rows carry explicit
   min-width: 0 so a long name or number wraps inside the card instead of widening it, and wrap
   with `break-word`, not `anywhere`: `anywhere` lets a flex item shrink below its longest word,
   and on a 393px phone «Плиточники» broke as «Плиточни / ки». */
/* The kit card spaces its children 24px apart; these sections space their own rows. */
.brigade-cabinet-page-shell .ctb-saved,
.brigade-cabinet-page-shell .ctb-book { gap: 0; }

.brigade-cabinet-page-shell .ctb-section-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }

.brigade-cabinet-page-shell .ctb-section-head h2 { font-size: 19px; font-weight: 700; margin: 0; }

.brigade-cabinet-page-shell .ctb-status-card { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

.brigade-cabinet-page-shell .ctb-status-card p { margin: 0; font-size: 15px; }

.brigade-cabinet-page-shell .ctb-empty { flex-wrap: wrap; }

.brigade-cabinet-page-shell .ctb-empty p { flex: 1 1 240px; min-width: 0; }

.brigade-cabinet-page-shell .ctb-saved-list,
.brigade-cabinet-page-shell .ctb-list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }

.brigade-cabinet-page-shell .ctb-saved-item,
.brigade-cabinet-page-shell .ctb-row { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px 8px 10px 12px; border: 1px solid var(--border); border-radius: 12px; }

.brigade-cabinet-page-shell .ctb-row-folder { padding: 4px 8px 4px 4px; }

.brigade-cabinet-page-shell .ctb-av { display: grid; place-items: center; flex: none; width: 44px; height: 44px; overflow: hidden; border-radius: 50%; background: var(--muted) center / cover no-repeat; font-size: 15px; font-weight: 700; color: var(--foreground); }

.brigade-cabinet-page-shell .ctb-av i, .brigade-cabinet-page-shell .ctb-av svg { width: 20px; height: 20px; color: var(--muted-foreground); }

.brigade-cabinet-page-shell .ctb-who { display: flex; flex: 1 1 auto; flex-direction: column; gap: 3px; min-width: 0; }

.brigade-cabinet-page-shell .ctb-name { min-width: 0; font-size: 16px; font-weight: 600; color: var(--foreground); overflow-wrap: break-word; }

.brigade-cabinet-page-shell a.ctb-name { text-decoration: none; }

.brigade-cabinet-page-shell a.ctb-name:hover { text-decoration: underline; text-underline-offset: 3px; }

.brigade-cabinet-page-shell .ctb-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 14px; }

.brigade-cabinet-page-shell .ctb-meta-place { min-width: 0; overflow-wrap: break-word; }

.brigade-cabinet-page-shell .ctb-rating { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-variant-numeric: tabular-nums; }

.brigade-cabinet-page-shell .ctb-rating i, .brigade-cabinet-page-shell .ctb-rating svg { width: 14px; height: 14px; color: var(--primary); }

.brigade-cabinet-page-shell .ctb-saved-actions,
.brigade-cabinet-page-shell .ctb-row-actions { display: flex; flex: none; align-items: center; gap: 4px; }

.brigade-cabinet-page-shell .ctb-saved-actions { gap: 8px; }

.brigade-cabinet-page-shell .ctb-book-lead { margin: -6px 0 14px; font-size: 15px; }

.brigade-cabinet-page-shell .ctb-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }

.brigade-cabinet-page-shell .ctb-crumbs { display: flex; flex: 1 1 320px; align-items: center; gap: 8px; min-width: 0; }

.brigade-cabinet-page-shell .ctb-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; min-width: 0; margin: 0; padding: 0; list-style: none; }

.brigade-cabinet-page-shell .ctb-crumbs li { display: inline-flex; align-items: center; gap: 2px; min-width: 0; }

.brigade-cabinet-page-shell .ctb-crumbs li i, .brigade-cabinet-page-shell .ctb-crumbs li svg { flex: none; width: 16px; height: 16px; color: var(--muted-foreground); }

.brigade-cabinet-page-shell .ctb-crumb { display: block; max-width: 220px; padding: 0 8px; overflow: hidden; font-weight: 600; text-overflow: ellipsis; }

.brigade-cabinet-page-shell .ctb-crumb[aria-current="page"] { font-weight: 800; }

.brigade-cabinet-page-shell .ctb-toolbar-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.brigade-cabinet-page-shell .ctb-hint { margin: 0 0 12px; font-size: 14px; font-weight: 600; }

.brigade-cabinet-page-shell .ctb-folder-open { flex: 1 1 auto; justify-content: flex-start; gap: 12px; min-width: 0; height: auto; min-height: 48px; padding: 6px 10px; font-size: 16px; text-align: left; white-space: normal; }

.brigade-cabinet-page-shell .ctb-folder-open i, .brigade-cabinet-page-shell .ctb-folder-open svg { flex: none; width: 22px; height: 22px; color: var(--foreground); }

.brigade-cabinet-page-shell .ctb-folder-open .ctb-name { flex: 1 1 auto; }

.brigade-cabinet-page-shell .ctb-folder-count { display: inline-grid; flex: none; place-items: center; min-width: 24px; height: 24px; margin-left: auto; padding: 0 7px; border-radius: 999px; background: var(--muted); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }

.brigade-cabinet-page-shell .ctb-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; }

.brigade-cabinet-page-shell .ctb-tag i, .brigade-cabinet-page-shell .ctb-tag svg,
.brigade-cabinet-page-shell .ctb-channel i, .brigade-cabinet-page-shell .ctb-channel svg { flex: none; width: 14px; height: 14px; }

.brigade-cabinet-page-shell .ctb-channels { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 14px; }

.brigade-cabinet-page-shell .ctb-channel { display: inline-flex; align-items: center; gap: 5px; min-width: 0; color: var(--foreground); overflow-wrap: break-word; }

.brigade-cabinet-page-shell a.ctb-channel { text-decoration: underline; text-underline-offset: 3px; }

.brigade-cabinet-page-shell .ctb-note { margin: 2px 0 0; font-size: 14px; white-space: pre-line; overflow-wrap: break-word; }

.brigade-cabinet-page-shell .ctb-usage { margin: 14px 0 0; font-size: 13px; font-variant-numeric: tabular-nums; }

/* The contact book's dialogs are portalled outside the page shell, so these are not scoped. */
.ctb-form { display: grid; gap: 14px; margin-top: 4px; }

.ctb-form label,
.ctb-phones { display: flex; flex-direction: column; gap: 7px; min-width: 0; font-size: 13px; font-weight: 600; color: var(--foreground); }

.ctb-phones { margin: 0; padding: 0; border: 0; }

.ctb-phones legend { margin-bottom: 7px; padding: 0; }

.ctb-phone-row { display: flex; align-items: center; gap: 6px; }

.ctb-phone-row [data-slot="input"] { flex: 1 1 auto; min-width: 0; }

.ctb-add-phone { align-self: flex-start; }

.ctb-form-error { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; font-weight: 600; color: var(--foreground); }

.ctb-form-error i, .ctb-form-error svg { flex: none; width: 16px; height: 16px; color: var(--destructive); }

.ctb-dest-list { display: flex; flex-direction: column; gap: 2px; max-height: min(52vh, 420px); margin: 4px 0; overflow-y: auto; }

.ctb-dest { justify-content: flex-start; gap: 10px; width: 100%; height: auto; min-height: 44px; font-size: 15px; text-align: left; white-space: normal; }

.ctb-dest[data-selected="true"] { background: var(--accent); font-weight: 700; }

.ctb-dest-name { flex: 1 1 auto; min-width: 0; overflow-wrap: break-word; }

.ctb-dest-note { font-size: 13px; font-weight: 500; }

.ctb-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
