/* Integrations page — extends dashboard shell */

:root {
  --int-purple: var(--dash-accent);
  --int-purple-soft: var(--dash-surface-hover);
  --int-card-elevated: var(--dash-elevated);
  --int-border: rgba(255, 255, 255, 0.08);
  --int-text: #f4f4f5;
  --int-success: #22c55e;
  --int-warning: #f59e0b;
  --int-danger: #ef4444;
  --int-right-w: 320px;
}

body.int-page {
  --dash-purple: var(--int-purple);
  --dash-purple-soft: var(--int-purple-soft);
}

.int-page .dash-new-btn,
.int-page .dash-pro__btn {
  background: var(--dash-accent);
  color: var(--dash-accent-text);
}

.int-page .dash-new-btn:hover,
.int-page .dash-pro__btn:hover {
  background: var(--dash-accent-hover);
}

.int-page .dash-pro__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.int-page .dash-search input:focus {
  border-color: var(--dash-border-strong);
  box-shadow: 0 0 0 3px var(--dash-surface-hover);
}

.int-page .int-connect-header {
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}



/* Layout */
.int-content {
  padding: var(--dash-content-y, 32px) var(--dash-page-x, 32px);
  padding-left: calc(var(--dash-page-x, 32px) + var(--dash-mobile-nav-gutter, 0px));
  padding-bottom: calc(var(--dash-content-y, 32px) + var(--dash-content-pad-bottom, 0px));
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  container-type: inline-size;
  container-name: int-content;
}

.int-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, var(--int-right-w));
  gap: 24px;
  align-items: start;
}

.int-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.int-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 24px;
}

.int-title {
  margin: 0;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--int-text);
}

.int-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.int-chips {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.int-chips::-webkit-scrollbar {
  display: none;
}

/* KPI strip */
.int-kpi-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--dash-island-gap);
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}

.int-kpi {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 86px;
  padding: 16px 18px;
  background: var(--dash-card);
  border: none;
  border-radius: var(--dash-radius-card);
  min-width: 0;
}

.int-kpi__icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  flex: 0 0 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--int-purple-soft);
  color: var(--int-purple);
  flex-shrink: 0;
}

.int-kpi__icon--green {
  background: rgba(34, 197, 94, 0.14);
  color: var(--int-success);
}

.int-kpi__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.int-kpi__label {
  font-size: 13px;
  color: var(--dash-text-muted);
}

.int-kpi__value {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--int-text);
}

.int-kpi__status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--int-success);
  margin-top: 2px;
}

.int-kpi__status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--int-success);
  animation: int-pulse 2s ease infinite;
}

@keyframes int-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* Section cards */
.int-section {
  background: var(--dash-card);
  border: none;
  border-radius: 20px;
  box-shadow: var(--dash-shadow);
  padding: 20px;
  transition: box-shadow 150ms ease;
}

.int-section:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.32);
}

.int-section__title {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--int-text);
}

/* Integration grid */
.int-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.int-grid.is-hidden,
.int-app.is-hidden {
  display: none;
}

.int-app {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  border: none;
  background: var(--dash-card);
  transition: background 150ms ease, transform 150ms ease;
}

.int-app:hover {
  background: rgba(255, 255, 255, 0.05);
}

.int-app--available:hover {
  transform: translateY(-1px);
}

.int-app__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.int-app__logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.055);
  transition: transform 150ms ease;
}

.int-app:hover .int-app__logo {
  transform: scale(1.02);
}

.int-app__logo img {
  width: 68%;
  height: 68%;
  display: block;
  object-fit: contain;
}

.int-menu-btn {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--dash-text-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 150ms ease, color 150ms ease;
}

.int-menu-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--int-text);
}

.int-menu-btn[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.08);
  color: var(--int-text);
}

.int-action-menu {
  position: fixed;
  z-index: var(--z-dropdown, 9000);
  min-width: 210px;
  padding: 6px;
  border: 1px solid var(--dash-border);
  border-radius: 14px;
  background: var(--dash-popover-bg, #202020);
  box-shadow: var(--dash-popover-shadow, 0 18px 44px rgba(0, 0, 0, 0.32));
}

.int-action-menu[hidden] {
  display: none;
}

.int-action-menu__item {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--int-text);
  display: flex;
  align-items: center;
  gap: 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.int-action-menu__item svg {
  flex: 0 0 15px;
  color: var(--dash-text-muted);
}

.int-action-menu__item:hover,
.int-action-menu__item:focus-visible {
  background: var(--dash-surface-hover);
  outline: none;
}

.int-action-menu__item--danger {
  color: var(--dash-red, #ff453a);
}

.int-action-menu__item--danger svg {
  color: currentColor;
}

.int-app__name {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--int-text);
}

.int-app__desc {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--dash-text-muted);
  line-height: 1.4;
  flex: 1;
}

.int-app__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.int-app__sync {
  font-size: 12px;
  color: var(--dash-text-muted);
}

/* Badges */
.int-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
}

.int-badge--connected,
.int-badge--healthy {
  background: rgba(34, 197, 94, 0.14);
  color: var(--int-success);
}

.int-badge--syncing {
  background: rgba(245, 158, 11, 0.14);
  color: var(--int-warning);
}

.int-badge--paused {
  background: rgba(255, 255, 255, 0.08);
  color: var(--dash-text-muted);
}

.int-badge--syncing::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--int-warning);
  animation: int-pulse 1.5s ease infinite;
}

/* Buttons — aligned with design-buttons.css (.nv-btn) */
.int-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--dash-radius-btn);
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background var(--dash-transition), color var(--dash-transition), box-shadow var(--dash-transition), opacity var(--dash-transition);
}

.int-btn--primary {
  background: var(--dash-accent);
  color: var(--dash-accent-text);
}

.int-btn--primary:hover:not(:disabled) {
  background: var(--dash-accent-hover);
  box-shadow: none;
}

.int-btn--ghost {
  background: rgba(255, 255, 255, 0.035);
  color: var(--dash-text-muted);
}

.int-btn--ghost:hover:not(:disabled) {
  color: var(--dash-text);
  background: rgba(255, 255, 255, 0.05);
}

.int-btn--block { width: 100%; }

.int-btn--danger {
  background: rgba(255, 69, 58, 0.1);
  color: var(--dash-red, #ff453a);
}

.int-btn--danger:hover:not(:disabled) {
  background: rgba(255, 69, 58, 0.16);
}

.int-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.int-btn.is-connected {
  background: rgba(34, 197, 94, 0.14);
  color: var(--int-success);
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.int-detail-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: min(820px, calc(100vh - 32px));
  padding: 0;
  border: 1px solid var(--dash-border);
  border-radius: 24px;
  background: var(--flow-modal-surface, #121212);
  color: var(--int-text);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.56);
  overflow: hidden;
}

.int-detail-dialog::backdrop {
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.int-detail {
  display: flex;
  flex-direction: column;
  max-height: min(820px, calc(100vh - 32px));
  background: var(--flow-modal-surface, #121212);
}

.int-detail__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--dash-border);
  background: var(--flow-modal-surface, #121212);
}

.int-detail__identity {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.int-detail__logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 44px;
  background: var(--flow-modal-card, #222222);
}

.int-detail__logo img {
  width: 68%;
  height: 68%;
  display: block;
  object-fit: contain;
}

.int-detail__eyebrow {
  margin: 0 0 5px;
  color: var(--dash-text-muted);
  font-size: 12px;
}

.int-detail h2,
.int-detail h3,
.int-detail p {
  margin: 0;
}

.int-detail h2 {
  color: var(--int-text);
  font-size: 22px;
  font-weight: 650;
  letter-spacing: 0;
}

.int-detail__identity p:last-child {
  margin-top: 6px;
  color: var(--dash-text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.int-detail__close {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 10px;
  background: var(--flow-modal-card, #222222);
  color: var(--dash-text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.int-detail__close:hover {
  color: var(--int-text);
  background: rgba(255, 255, 255, 0.07);
}

.int-detail__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 24px;
  overflow-y: auto;
  background: var(--flow-modal-surface, #121212);
}

.int-detail__section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.int-detail__section h3 {
  color: var(--int-text);
  font-size: 14px;
  font-weight: 650;
}

.int-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.int-detail-row {
  min-height: 58px;
  padding: 12px;
  border-radius: 14px;
  background: var(--flow-modal-card, #222222);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
}

.int-detail-row > span {
  color: var(--dash-text-muted);
  font-size: 12px;
}

.int-detail-row > strong {
  color: var(--int-text);
  font-size: 13px;
  font-weight: 600;
}

.int-detail-checks,
.int-detail-perms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.int-detail-check,
.int-detail-perms span {
  min-height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  background: var(--flow-modal-card, #222222);
  color: var(--dash-text);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.int-detail-check input {
  accent-color: var(--dash-accent);
}

.int-detail-events {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.int-detail-event {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  background: var(--flow-modal-card, #222222);
}

.int-detail-event span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dash-green);
}

.int-detail-event p {
  color: var(--dash-text);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.int-detail-event time {
  color: var(--dash-text-muted);
  font-size: 12px;
}

.int-detail__foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px 22px;
  border-top: 1px solid var(--dash-border);
  background: var(--flow-modal-surface, #121212);
  flex-wrap: wrap;
}

.int-detail__foot .int-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.int-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: var(--z-tooltip, 9500);
  max-width: min(340px, calc(100vw - 32px));
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--dash-border);
  background: var(--dash-popover-bg, #202020);
  color: var(--dash-text);
  font-size: 13px;
  box-shadow: var(--dash-popover-shadow, 0 18px 44px rgba(0, 0, 0, 0.32));
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 150ms ease, transform 150ms ease;
}

.int-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Build CTA */
.int-build {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.int-build__copy {
  flex: 1;
  min-width: 240px;
}

.int-build__title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
  color: var(--int-text);
}

.int-build__desc {
  margin: 0;
  font-size: 14px;
  color: var(--dash-text-muted);
  line-height: 1.45;
}

.int-build__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Right panel */
.int-panel {
  background: var(--dash-card);
  border: none;
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--dash-shadow);
  transition: box-shadow 150ms ease;
}

.int-panel:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.32);
}

.int-panel--hero {
  text-align: center;
}

.int-panel__title {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--int-text);
}

.int-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.int-panel__head .int-panel__title {
  margin-bottom: 0;
}

/* Health ring */
.int-health {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 12px;
}

.int-health__ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.int-health__center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.int-health__pct {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--int-text);
}

.int-health-meta {
  margin-bottom: 16px;
}

.int-health-stats {
  list-style: none;
  margin: 16px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.int-health-stats li {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--dash-text-muted);
}

.int-health-stats strong {
  color: var(--int-text);
  font-weight: 600;
}

.int-live-panel__desc {
  margin: -4px 0 14px;
  color: var(--dash-text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.int-live-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.int-live-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.int-live-row__main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.int-live-row__title {
  color: var(--int-text);
  font-size: 13px;
  font-weight: 600;
}

.int-live-row__meta {
  color: var(--dash-text-muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.int-live-row__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--dash-text);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.int-live-row__link:hover {
  background: rgba(255, 255, 255, 0.08);
}

.int-badge--warning {
  background: rgba(245, 158, 11, 0.14);
  color: var(--int-warning);
}

.int-badge--danger {
  background: rgba(239, 68, 68, 0.13);
  color: var(--int-danger);
}

.int-link-btn {
  display: inline-flex;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--dash-text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: color 150ms ease;
}

.int-link-btn:hover { color: var(--int-purple); }

/* Activity */
.int-activity {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.int-activity__row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 0;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 150ms ease;
}

.int-activity__row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.int-activity__logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.055);
}

.int-activity__logo img {
  width: 68%;
  height: 68%;
  display: block;
  object-fit: contain;
}

.int-activity__label {
  font-size: 14px;
  color: var(--int-text);
}

.int-activity__time {
  font-size: 12px;
  color: var(--dash-text-muted);
}

/* Recommended */
.int-recs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.int-rec {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-radius: 14px;
  transition: background 150ms ease;
}

.int-rec:hover {
  background: rgba(255, 255, 255, 0.04);
}

.int-rec__logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.055);
}

.int-rec__logo img {
  width: 68%;
  height: 68%;
  display: block;
  object-fit: contain;
}

.int-rec__body {
  flex: 1;
  min-width: 0;
}

.int-rec__name {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--int-text);
}

.int-rec__desc {
  display: block;
  font-size: 12px;
  color: var(--dash-text-muted);
  margin-top: 2px;
}

/* Resource rows */
.int-resource-rows {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.int-section.is-hidden {
  display: none;
}

.int-btn--sm {
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
}

a.int-btn.int-btn--primary {
  color: var(--dash-accent-text);
}

a.int-btn.int-btn--ghost {
  color: var(--dash-text-muted);
}

a.int-btn.int-btn--ghost:hover {
  color: var(--dash-text);
}

.int-resource-row {
  display: grid;
  grid-template-columns: 28px 1fr 14px;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 0;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--int-text);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: background 150ms ease;
}

.int-resource-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.int-resource-row__icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  color: var(--dash-text-muted);
}

.int-resource-row__chev {
  color: var(--dash-text-muted);
}

@container int-content (max-width: 1080px) {
  .int-layout {
    grid-template-columns: 1fr;
  }

  .int-aside {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@container int-content (max-width: 720px) {
  .int-content {
    padding-inline: 16px;
  }

  .int-title {
    font-size: 28px;
  }

  .int-aside,
  .int-kpi-card,
  .int-grid {
    grid-template-columns: 1fr;
  }

  .int-build {
    align-items: stretch;
  }

  .int-build__actions {
    width: 100%;
  }

  .int-build__actions .int-btn {
    flex: 1;
  }
}

@media (max-width: 720px) {
  .int-detail-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    border-radius: 20px;
  }

  .int-detail {
    max-height: calc(100vh - 20px);
  }

  .int-detail__head,
  .int-detail__body,
  .int-detail__foot {
    padding-inline: 16px;
  }

  .int-detail__identity {
    gap: 12px;
  }

  .int-detail-grid,
  .int-detail-checks,
  .int-detail-perms {
    grid-template-columns: 1fr;
  }

  .int-detail__foot {
    align-items: stretch;
    flex-direction: column;
  }

  .int-detail__foot .int-btn {
    width: 100%;
  }

  .int-toast {
    right: 16px;
    bottom: 16px;
  }
}
