/* X Rental UI V2 — scoped design system.
   IMPORTANT: rules apply only under .xr-ui-v2 / .xr2-*.
   The feature flag is OFF by default in UI2-1 Foundation. */

.xr-ui-v2 {
  --xr2-bg: #f5f7fa;
  --xr2-surface: #ffffff;
  --xr2-surface-soft: #f8fafc;
  --xr2-border: #e2e8f0;
  --xr2-text: #17202a;
  --xr2-muted: #667085;
  --xr2-primary: #2563eb;
  --xr2-primary-hover: #1d4ed8;
  --xr2-success: #159a63;
  --xr2-warning: #c98510;
  --xr2-danger: #d64b45;
  --xr2-neutral: #87919c;
  --xr2-radius-sm: 6px;
  --xr2-radius: 8px;
  --xr2-control: 34px;
  --xr2-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 18px rgba(16, 24, 40, .04);
  color: var(--xr2-text);
  background: var(--xr2-bg);
}

.xr-ui-v2 *,
.xr-ui-v2 *::before,
.xr-ui-v2 *::after {
  box-sizing: border-box;
}

.xr2-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 12px;
}

.xr2-page-title h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.xr2-page-title p,
.xr2-section-head p,
.xr2-empty p {
  margin: 4px 0 0;
  color: var(--xr2-muted);
  font-size: 12px;
  line-height: 1.45;
}

.xr2-page-actions,
.xr2-section-actions,
.xr2-toolbar,
.xr2-empty-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.xr2-button {
  min-height: var(--xr2-control);
  padding: 0 10px;
  border: 1px solid var(--xr2-border);
  border-radius: var(--xr2-radius-sm);
  background: var(--xr2-surface);
  color: var(--xr2-text);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.xr2-button-primary {
  border-color: var(--xr2-primary);
  background: var(--xr2-primary);
  color: #fff;
}

.xr2-button-primary:hover {
  background: var(--xr2-primary-hover);
}

.xr2-button-danger {
  border-color: #f3cecb;
  background: #fff7f6;
  color: #b43d37;
}

.xr2-segmented {
  display: inline-flex;
  padding: 2px;
  border: 1px solid var(--xr2-border);
  border-radius: var(--xr2-radius);
  background: var(--xr2-surface-soft);
}

.xr2-segmented button,
.xr2-tabs button {
  min-height: 29px;
  padding: 0 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--xr2-muted);
  font-size: 11px;
  cursor: pointer;
}

.xr2-segmented button.active {
  background: #fff;
  color: var(--xr2-primary);
  box-shadow: 0 1px 3px rgba(16, 24, 40, .08);
}

.xr2-kpi-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 6px;
}

.xr2-kpi {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding: 6px 9px;
  border: 1px solid var(--xr2-border);
  border-radius: var(--xr2-radius);
  background: var(--xr2-surface);
  color: var(--xr2-text);
  cursor: pointer;
}

.xr2-kpi span {
  color: var(--xr2-muted);
  font-size: 10px;
}

.xr2-kpi strong {
  font-size: 16px;
}

.xr2-kpi.active {
  border-color: #a9c3f8;
  background: #eef4ff;
}

.xr2-section {
  border: 1px solid var(--xr2-border);
  border-radius: var(--xr2-radius);
  background: var(--xr2-surface);
  box-shadow: var(--xr2-shadow);
}

.xr2-section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--xr2-border);
}

.xr2-section-head h2 {
  margin: 0;
  font-size: 14px;
}

.xr2-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  max-width: 180px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.xr2-badge-neutral { background: #f1f3f5; color: #59636f; }
.xr2-badge-info { background: #edf4ff; color: #245fae; }
.xr2-badge-success { background: #eaf8f0; color: #117347; }
.xr2-badge-warning { background: #fff5df; color: #966612; }
.xr2-badge-danger { background: #fff0ef; color: #b83e38; }

.xr2-table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--xr2-border);
  border-radius: var(--xr2-radius);
  background: var(--xr2-surface);
}

.xr2-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.xr2-table th,
.xr2-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #edf0f3;
  text-align: left;
  vertical-align: middle;
}

.xr2-table th {
  background: var(--xr2-surface-soft);
  color: #7b8591;
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.xr2-table td {
  font-size: 12px;
}

.xr2-table tbody tr:last-child td {
  border-bottom: 0;
}

.xr2-tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--xr2-border);
}

.xr2-tabs button {
  border-radius: 0;
  border-bottom: 2px solid transparent;
}

.xr2-tabs button.active {
  border-bottom-color: var(--xr2-primary);
  color: var(--xr2-primary);
}

.xr2-empty {
  display: grid;
  justify-items: start;
  gap: 3px;
  padding: 24px 16px;
  color: var(--xr2-text);
}

@media (max-width: 820px) {
  .xr2-page-header,
  .xr2-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .xr2-kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* === XR UI2 SHELL V1 START === */

.xr2-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 212px minmax(0, 1fr);
  background: var(--xr2-bg);
  color: var(--xr2-text);
  font-family: Inter, "Segoe UI Variable", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  font-variant-numeric: tabular-nums;
}

.xr2-shell svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.xr2-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 16px 12px 12px;
  overflow: hidden;
  border-right: 1px solid #2a2d33;
  background: #191a1d;
  color: #f7f8fa;
  z-index: 30;
}

.xr2-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 2px 6px 12px;
}

.xr2-brand-mark {
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #0b6cff;
  overflow: hidden;
}

.xr2-brand-mark img {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.xr2-brand-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.xr2-brand-copy strong {
  color: #f7f8fa;
  font-size: 13px;
  line-height: 1.15;
}

.xr2-brand-copy span {
  overflow: hidden;
  color: #8f96a1;
  font-size: 10px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.xr2-search-button,
.xr2-top-search {
  border: 1px solid var(--xr2-border);
  background: #fff;
  color: #44505d;
  cursor: pointer;
}

.xr2-sidebar .xr2-search-button {
  border-color: #34373e;
  background: #222429;
  color: #d9dce2;
}

.xr2-search-button {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  margin: 3px 0 10px;
  padding: 0 8px;
  border-radius: 7px;
}

.xr2-search-button:hover,
.xr2-top-search:hover {
  border-color: #c7d1de;
  background: #f8fafc;
}

.xr2-sidebar .xr2-search-button:hover {
  border-color: #454952;
  background: #292c32;
  color: #ffffff;
}

.xr2-search-left {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 650;
}

.xr2-search-button kbd,
.xr2-top-search kbd {
  padding: 1px 5px;
  border: 1px solid #e0e6ed;
  border-bottom-width: 2px;
  border-radius: 5px;
  background: #f8fafc;
  color: #8a94a1;
  font-size: 9px;
  font-family: inherit;
}

.xr2-sidebar .xr2-search-button kbd {
  border-color: #3d4149;
  background: #2b2e34;
  color: #9299a4;
}

.xr2-navigation {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
}

.xr2-nav-group + .xr2-nav-group {
  margin-top: 9px;
}

.xr2-nav-group-label {
  padding: 0 8px 4px;
  color: #6f7681;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.xr2-nav-group-items {
  display: grid;
  gap: 2px;
}

.xr2-nav-button {
  position: relative;
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #adb3bd;
  font-family: inherit;
  font-size: 11px;
  font-weight: 620;
  text-align: left;
  cursor: pointer;
}

.xr2-nav-button:hover {
  background: #25272c;
  color: #ffffff;
}

.xr2-nav-button.active {
  background: #0b6cff;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(11, 108, 255, .22);
}

.xr2-nav-button.active::before {
  display: none;
}

.xr2-nav-button.locked {
  opacity: .48;
}

.xr2-nav-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  display: inline-grid;
  place-items: center;
}

.xr2-sidebar-footer {
  flex: 0 0 auto;
  display: grid;
  gap: 7px;
  padding: 9px 4px 1px;
  border-top: 1px solid #2b2e34;
}

.xr2-account-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
}

.xr2-avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #0b6cff;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
}

.xr2-account-row > div {
  min-width: 0;
  display: grid;
}

.xr2-account-row strong {
  overflow: hidden;
  font-size: 10px;
  line-height: 1.25;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #f4f5f7;
}

.xr2-account-row span:not(.xr2-avatar) {
  color: #7f8793;
  font-size: 9px;
}

.xr2-sync-state {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #969da8;
  font-size: 9px;
}

.xr2-sync-state > span:last-child {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.xr2-status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #b3bbc4;
}

.xr2-status-dot.online {
  background: #159a63;
}

.xr2-status-dot.offline {
  background: #d64b45;
}

.xr2-status-dot.warning {
  background: #c98510;
}

.xr2-status-dot.syncing {
  background: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.xr2-footer-button {
  min-height: 28px;
  width: 100%;
  border: 1px solid #393c43;
  border-radius: 6px;
  background: #24262b;
  color: #b7bcc5;
  font-family: inherit;
  font-size: 10px;
  cursor: pointer;
}

.xr2-footer-button:hover {
  border-color: #4b4f58;
  background: #2d3036;
  color: #ffffff;
}

.xr2-workspace {
  min-width: 0;
  min-height: 100vh;
  display: grid;
  grid-template-rows: 52px minmax(0, 1fr);
  background: var(--xr2-bg);
}

.xr2-topbar {
  position: sticky;
  top: 0;
  z-index: 24;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 20px;
  border-bottom: 1px solid var(--xr2-border);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
}

.xr2-topbar-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.xr2-topbar-title strong {
  overflow: hidden;
  color: #30343a;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.xr2-mobile-brand {
  display: none;
}

.xr2-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.xr2-top-search {
  min-height: 30px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 7px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 10px;
}

.xr2-top-search .xr2-nav-icon {
  width: 14px;
  height: 14px;
  flex-basis: 14px;
}

.xr2-top-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #7b8591;
  font-size: 10px;
}

.xr2-main {
  min-width: 0;
  min-height: 0;
}

.xr2-page-host {
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: 18px 20px 30px;
}

/* Legacy bridge inside the new shell.
   This is temporary and deliberately scoped; migrated V2 views will replace it screen-by-screen. */
.xr2-page-host > .page-header,
.xr2-page-host .page-header {
  min-height: 0 !important;
  align-items: flex-start !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.xr2-page-host .page-header::before,
.xr2-page-host .page-header::after {
  display: none !important;
}

.xr2-page-host .page-header h1 {
  margin: 0 !important;
  color: var(--xr2-text, #202328) !important;
  font-size: 23px !important;
  font-weight: 760 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
}

.xr2-page-host .page-header p {
  max-width: 760px !important;
  margin: 3px 0 0 !important;
  color: var(--xr2-muted, #747a84) !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}

.xr2-page-host .eyebrow {
  margin-bottom: 3px !important;
  color: var(--xr2-muted, #8b919b) !important;
  font-size: 9px !important;
  letter-spacing: 0 !important;
}

.xr2-page-host .panel,
.xr2-page-host .card,
.xr2-page-host .form-panel,
.xr2-page-host .module-mini-dashboard,
.xr2-page-host .metric,
.xr2-page-host .order-card,
.xr2-page-host .event-card,
.xr2-page-host .document-card,
.xr2-page-host .client-card,
.xr2-page-host .equipment-card,
.xr2-page-host .roadmap-card,
.xr2-page-host .alert-card,
.xr2-page-host .inventory-filter-panel,
.xr2-page-host .trash-panel,
.xr2-page-host .trash-item,
.xr2-page-host .document-side-tabs,
.xr2-page-host .access-denied-panel {
  border-color: var(--xr2-border, #e4e2dc) !important;
  background: var(--xr2-surface, #fff) !important;
  box-shadow: 0 2px 4px rgba(28,31,36,.035), 0 10px 28px rgba(28,31,36,.04) !important;
  backdrop-filter: none !important;
}

.xr2-page-host .panel,
.xr2-page-host .form-panel {
  border-radius: 8px !important;
}

.xr2-page-host .module-mini-dashboard {
  border-radius: 8px !important;
}

.xr2-page-host .metric,
.xr2-page-host .mini-dashboard-item,
.xr2-page-host .fact,
.xr2-page-host .tag,
.xr2-page-host .status-chip,
.xr2-page-host .document-card-note,
.xr2-page-host .cabinet-edit-panel,
.xr2-page-host .qr-card,
.xr2-page-host .empty,
.xr2-page-host .empty-state {
  backdrop-filter: none !important;
}

.xr2-mobile-nav {
  display: none;
}

/* Global-search overlay/modals remain outside .xr2-page-host and retain existing behavior. */

@media (max-width: 980px) {
  .xr2-shell {
    grid-template-columns: 1fr;
    padding-bottom: 58px;
  }

  .xr2-sidebar {
    display: none;
  }

  .xr2-workspace {
    grid-template-rows: 46px minmax(0, 1fr);
  }

  .xr2-topbar {
    padding: 0 12px;
  }

  .xr2-mobile-brand {
    display: inline;
    padding-right: 9px;
    border-right: 1px solid #e5e9ee;
    font-size: 12px;
    font-weight: 800;
  }

  .xr2-top-search span:not(.xr2-nav-icon),
  .xr2-top-search kbd,
  .xr2-top-status {
    display: none;
  }

  .xr2-top-search {
    width: 32px;
    min-width: 32px;
    justify-content: center;
    padding: 0;
  }

  .xr2-page-host {
    padding: 12px 10px 18px;
  }

  .xr2-mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    height: 58px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid #dde3ea;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(12px);
  }

  .xr2-mobile-nav-button {
    min-width: 0;
    min-height: 56px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    padding: 4px;
    border: 0;
    background: transparent;
    color: #7c8793;
    font-family: inherit;
    font-size: 9px;
    font-weight: 650;
    cursor: pointer;
  }

  .xr2-mobile-nav-button .xr2-nav-icon {
    width: 19px;
    height: 19px;
    flex-basis: 19px;
  }

  .xr2-mobile-nav-button.active {
    color: #2563eb;
  }

  .xr2-mobile-more {
    position: relative;
  }

  .xr2-mobile-more > summary {
    list-style: none;
  }

  .xr2-mobile-more > summary::-webkit-details-marker {
    display: none;
  }

  .xr2-mobile-more[open] .xr2-mobile-more-menu {
    display: grid;
  }

  .xr2-mobile-more-menu {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 66px;
    display: none;
    max-height: min(68vh, 520px);
    overflow: auto;
    padding: 10px;
    border: 1px solid #dde3ea;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(16,24,40,.18);
  }

  .xr2-mobile-more-group + .xr2-mobile-more-group {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #edf0f3;
  }

  .xr2-mobile-more-group > strong {
    display: block;
    padding: 0 7px 4px;
    color: #9aa3ad;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .05em;
  }

  .xr2-mobile-more-menu .xr2-nav-button {
    min-height: 38px;
  }
}

@media (max-width: 560px) {
  .xr2-topbar-title strong {
    max-width: 52vw;
  }

  .xr2-page-host .page-header h1 {
    font-size: 19px !important;
  }
}

/* === XR UI2 SHELL V1 END === */

/* === XR UI2 VIEW BRIDGE V1 COMPONENTS START === */

.xr2-alert-strip {
  display: flex;
  align-items: stretch;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 1px;
}

.xr2-alert {
  min-width: 128px;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 6px 9px;
  border: 1px solid var(--xr2-border);
  border-radius: var(--xr2-radius);
  background: #fff;
  color: var(--xr2-text);
  font: inherit;
  cursor: pointer;
}

.xr2-alert span {
  color: var(--xr2-muted);
  font-size: 10px;
  white-space: nowrap;
}

.xr2-alert strong {
  font-size: 14px;
}

.xr2-alert-info { border-left: 3px solid var(--xr2-primary); }
.xr2-alert-success { border-left: 3px solid var(--xr2-success); }
.xr2-alert-warning { border-left: 3px solid var(--xr2-warning); }
.xr2-alert-danger { border-left: 3px solid var(--xr2-danger); }

.xr2-filterbar {
  display: flex;
  align-items: end;
  gap: 6px;
  flex-wrap: wrap;
  padding: 7px;
  border: 1px solid var(--xr2-border);
  border-radius: var(--xr2-radius);
  background: #fff;
}

.xr2-field {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.xr2-field > span {
  color: var(--xr2-muted);
  font-size: 10px;
  font-weight: 650;
}

.xr2-field input,
.xr2-field select,
.xr2-field textarea {
  width: 100%;
  min-height: var(--xr2-control);
  padding: 0 9px;
  border: 1px solid var(--xr2-border);
  border-radius: var(--xr2-radius-sm);
  outline: 0;
  background: #fff;
  color: var(--xr2-text);
  font: inherit;
  font-size: 12px;
}

.xr2-field input:focus,
.xr2-field select:focus,
.xr2-field textarea:focus {
  border-color: #9dbbf7;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .08);
}

.xr2-stat {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border-left: 3px solid var(--xr2-border);
  background: #fff;
}

.xr2-stat span {
  color: var(--xr2-muted);
  font-size: 10px;
}

.xr2-stat strong {
  font-size: 18px;
  line-height: 1.2;
}

.xr2-stat small {
  color: #8a94a1;
  font-size: 10px;
}

.xr2-stat-info { border-left-color: var(--xr2-primary); }
.xr2-stat-success { border-left-color: var(--xr2-success); }
.xr2-stat-warning { border-left-color: var(--xr2-warning); }
.xr2-stat-danger { border-left-color: var(--xr2-danger); }

.xr2-split {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr);
  gap: 10px;
  align-items: start;
}

.xr2-split-main,
.xr2-split-side {
  min-width: 0;
}

.xr2-drawer {
  position: fixed;
  top: 48px;
  right: 0;
  bottom: 0;
  z-index: 90;
  width: min(440px, 94vw);
  display: none;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border-left: 1px solid var(--xr2-border);
  background: #fff;
  box-shadow: -16px 0 44px rgba(16,24,40,.14);
}

.xr2-drawer.open {
  display: grid;
}

.xr2-drawer-head,
.xr2-drawer-footer {
  padding: 12px;
  border-bottom: 1px solid var(--xr2-border);
}

.xr2-drawer-footer {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  border-top: 1px solid var(--xr2-border);
  border-bottom: 0;
}

.xr2-drawer-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.xr2-drawer-head h2 {
  margin: 0;
  font-size: 16px;
}

.xr2-drawer-head p {
  margin: 3px 0 0;
  color: var(--xr2-muted);
  font-size: 11px;
}

.xr2-drawer-body {
  overflow: auto;
  padding: 12px;
}

.xr2-icon-button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--xr2-border);
  border-radius: 6px;
  background: #fff;
  color: #667085;
  font-size: 18px;
  cursor: pointer;
}

.xr2-view {
  display: grid;
  gap: 10px;
}

.xr2-view-stack {
  display: grid;
  gap: 8px;
}

.xr2-registry-debug {
  display: none !important;
}

@media (max-width: 980px) {
  .xr2-split {
    grid-template-columns: 1fr;
  }

  .xr2-drawer {
    top: 46px;
    bottom: 58px;
    width: 100%;
  }
}

/* === XR UI2 VIEW BRIDGE V1 COMPONENTS END === */
