:root {
  --nav: #171a24;
  --brand: #263184;
  --brand-dark: #1d276f;
  --coral: #f05a47;
  --teal: #178b73;
  --ink: #1b1d24;
  --muted: #656b78;
  --line: #e2e5ea;
  --surface: #ffffff;
  --canvas: #f4f6f8;
  --success: #14745a;
  --warning: #9a650f;
  --danger: #b13f3b;
  --shadow: 0 18px 54px rgba(26, 30, 45, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, "Avenir Next", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
}

.app-shell {
  min-height: 100vh;
}

.platform-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--nav);
  text-decoration: none;
}

.brand-lockup img {
  width: 38px;
  height: 38px;
}

.brand-name {
  font-size: 20px;
  font-weight: 750;
}

.brand-name span {
  color: var(--coral);
}

.platform-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.platform-nav a,
.link-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: #444a57;
  text-decoration: none;
  cursor: pointer;
}

.platform-nav a:hover,
.link-button:hover {
  color: var(--brand);
}

.page {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 38px 0 72px;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
}

h2 {
  margin-bottom: 14px;
  font-size: 21px;
}

h3 {
  margin-bottom: 8px;
  font-size: 16px;
}

.muted {
  color: var(--muted);
}

.heading-with-help,
.label-with-help {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.help-trigger {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid #c9ced8;
  border-radius: 50%;
  background: #fff;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.help-trigger:hover,
.help-trigger:focus-visible {
  border-color: var(--brand);
  outline: 3px solid rgba(38, 49, 132, 0.12);
}

.help-popover {
  position: fixed;
  z-index: 1000;
  max-width: 300px;
  padding: 13px 14px;
  border: 1px solid #cbd0d9;
  border-radius: 7px;
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.help-popover[hidden] {
  display: none;
}

.filter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.filter-form label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.filter-form input,
.filter-form select {
  min-height: 42px;
  min-width: 180px;
  padding: 8px 10px;
  border: 1px solid #cbd0d9;
  border-radius: 5px;
  background: #fff;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.pagination a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.table-action-menu summary {
  color: var(--brand);
  font-weight: 700;
  cursor: pointer;
}

.table-action-menu[open] {
  position: relative;
}

.table-action-menu div {
  position: absolute;
  right: 0;
  z-index: 5;
  min-width: 150px;
  padding: 8px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.table-action-menu form {
  display: grid;
  gap: 8px;
}

.table-action-menu select {
  min-height: 42px;
  padding: 7px 9px;
  border: 1px solid #cbd0d9;
  border-radius: 5px;
  background: #fff;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--brand-dark);
}

.button.secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.button.secondary:hover {
  border-color: #b9bfca;
  background: #f8f9fb;
}

.button.danger {
  background: var(--danger);
}

.button.danger:hover {
  background: #8f302d;
}

.grid-admin {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 38px;
  padding-top: 32px;
}

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

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}

.data-table th,
.data-table td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

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

.data-table a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.status {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  border-radius: 4px;
  background: #eef0ff;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}

.status.active {
  background: #eaf7f2;
  color: var(--success);
}

.form-panel {
  align-self: start;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.field {
  margin-bottom: 17px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field select {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid #cbd0d9;
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
}

.field input:focus,
.field select:focus {
  border-color: var(--brand);
  outline: 3px solid rgba(38, 49, 132, 0.12);
}

.field .helptext {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.errorlist {
  margin: 5px 0 0;
  padding: 0;
  color: var(--danger);
  font-size: 12px;
  list-style: none;
}

.messages {
  display: grid;
  gap: 8px;
  width: min(1240px, calc(100% - 48px));
  margin: 16px auto 0;
}

.message {
  padding: 12px 15px;
  border-left: 3px solid var(--brand);
  background: #fff;
}

.message.success {
  border-left-color: var(--success);
}

.login-layout {
  display: grid;
  min-height: calc(100vh - 68px);
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
}

.login-context {
  position: relative;
  isolation: isolate;
  display: flex;
  overflow: hidden;
  min-height: 560px;
  align-items: flex-end;
  padding: 64px;
  background: #171a24
    url("/static/brand/social-monkeys-login-hero-v1.060ec3bcf825.webp") 58% center / cover;
  color: #fff;
}

.login-context::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgba(12, 15, 28, 0.58);
  content: "";
}

.login-context > div {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.login-context .login-context-brand {
  position: absolute;
  top: 54px;
  left: 64px;
  display: flex;
  align-items: center;
  gap: 13px;
  max-width: none;
  font-size: 21px;
  font-weight: 750;
}

.login-context-brand img {
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.24));
}

.login-context-brand span {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.login-context-brand b {
  color: #f05a47;
}

.login-context h1 {
  font-size: clamp(38px, 6vw, 72px);
}

.login-panel {
  display: flex;
  align-items: center;
  padding: 48px;
  background: #fff;
}

.login-panel form,
.login-panel .auth-copy {
  width: min(100%, 430px);
  margin: 0 auto;
}

.auth-intro {
  margin-bottom: 28px;
}

.auth-intro img {
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
}

.full-button {
  width: 100%;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 38px;
  padding-top: 32px;
}

.stack {
  display: grid;
  gap: 28px;
}

.danger-zone {
  display: grid;
  gap: 18px;
  padding: 26px 0 0;
  border-top: 2px solid #e8c9c7;
}

.danger-text,
.destructive-warning {
  color: var(--danger);
}

.deletion-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  border: 1px solid #e8c9c7;
  background: #fffafa;
}

.operational-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-color: var(--line);
  background: #fff;
}

.operational-summary div {
  border-color: var(--line);
}

.deletion-summary div {
  min-width: 0;
  padding: 13px;
  border-right: 1px solid #e8c9c7;
}

.deletion-summary div:last-child {
  border-right: 0;
}

.deletion-summary dt {
  color: var(--muted);
  font-size: 11px;
}

.deletion-summary dd {
  margin: 4px 0 0;
  font-size: 20px;
  font-weight: 750;
}

.destructive-action summary {
  width: fit-content;
  list-style: none;
}

.destructive-action summary::-webkit-details-marker {
  display: none;
}

.destructive-action[open] summary {
  margin-bottom: 18px;
}

.destructive-action form {
  max-width: 620px;
  padding: 20px;
  border: 1px solid #e8c9c7;
  background: #fffafa;
}

.checkbox-field {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  column-gap: 9px;
}

.checkbox-field label {
  grid-column: 2;
  grid-row: 1;
}

.checkbox-field input {
  grid-column: 1;
  grid-row: 1;
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.checkbox-field .errorlist {
  grid-column: 2;
}

.one-time-link {
  margin-bottom: 24px;
  padding: 16px;
  border-left: 4px solid var(--teal);
  background: #eaf7f2;
}

.copy-row {
  display: flex;
  gap: 8px;
}

.copy-row input {
  min-width: 0;
  flex: 1;
  padding: 10px;
  border: 1px solid #b9d8cf;
  background: #fff;
}

.empty-state {
  padding: 42px 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.configuration-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbfc;
}

.configuration-card > div:first-child span {
  display: block;
  margin-top: 4px;
}

.configuration-card dl {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 2px 0 0;
}

.configuration-card dl div {
  min-width: 0;
}

.configuration-card dt {
  color: var(--muted);
  font-size: 11px;
}

.configuration-card dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.template-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.template-chip {
  display: grid;
  gap: 3px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--muted);
  font-size: 11px;
}

.template-chip strong {
  color: var(--ink);
}

.technical-details {
  grid-column: 1 / -1;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.technical-details summary {
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.technical-details dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 0;
}

.automation-error {
  display: grid;
  gap: 4px;
  margin: 12px 0 0;
  padding: 10px 12px;
  border-left: 3px solid var(--danger);
  background: #fff4f2;
  color: #8b2f27;
  font-size: 12px;
}

.technical-details dt {
  color: var(--muted);
  font-size: 10px;
}

.technical-details dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  font-size: 12px;
}

.agency-page {
  width: min(1420px, calc(100% - 48px));
}

.agency-header .muted {
  max-width: 720px;
  margin-bottom: 0;
}

.agency-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 28px 0 36px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.agency-metric {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-right: 1px solid var(--line);
}

.agency-metric:last-child {
  border-right: 0;
}

.agency-metric-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 6px;
  background: #eef0f4;
  color: #535a68;
}

.agency-metric.primary .agency-metric-icon {
  background: #e9ecff;
  color: var(--brand);
}

.agency-metric-icon.success {
  background: #e7f5ee;
  color: #177052;
}

.agency-metric strong,
.agency-metric small {
  display: block;
}

.agency-metric strong {
  font-size: 24px;
  line-height: 1.1;
}

.agency-metric small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

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

.agency-pipeline {
  margin-bottom: 40px;
}

.agency-pipeline-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(112px, 1fr));
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.agency-stage {
  position: relative;
  display: flex;
  min-height: 88px;
  min-width: 112px;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-right: 1px solid var(--line);
  color: #5f6673;
}

.agency-stage:last-child {
  border-right: 0;
}

.agency-stage.active {
  background: #f0f2ff;
  color: var(--brand);
}

.agency-stage > svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.agency-stage strong,
.agency-stage small {
  display: block;
}

.agency-stage strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
}

.agency-stage small {
  margin-top: 5px;
  color: inherit;
  font-size: 11px;
  line-height: 1.25;
}

.agency-queue {
  display: grid;
  gap: 12px;
}

.bulk-review-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8f9fb;
}

.bulk-review-toolbar label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.bulk-review-toolbar .bulk-select-all {
  display: flex;
  align-items: center;
  min-height: 42px;
  margin-right: auto;
  color: var(--ink);
}

.bulk-review-toolbar select {
  min-height: 42px;
  min-width: 220px;
  padding: 8px 10px;
  border: 1px solid #cbd0d9;
  border-radius: 5px;
  background: #fff;
}

.agency-review-item {
  display: grid;
  grid-template-columns: 28px 124px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.agency-review-select {
  align-self: start;
  display: grid;
  min-width: 28px;
  min-height: 44px;
  place-items: center;
}

.agency-review-item.overdue {
  border-left: 3px solid var(--danger);
}

.agency-review-media {
  width: 124px;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 6px;
  background: #eceff3;
  color: var(--muted);
}

.agency-review-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agency-review-copy {
  min-width: 0;
}

.agency-review-copy h3 {
  margin: 8px 0 6px;
  font-size: 18px;
}

.agency-review-copy > p {
  display: -webkit-box;
  margin-bottom: 12px;
  overflow: hidden;
  color: var(--muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.agency-review-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.tenant-pill {
  color: var(--brand);
  font-size: 12px;
  font-weight: 750;
}

.agency-review-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0;
}

.agency-review-facts div {
  min-width: 110px;
}

.agency-review-facts dt {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.agency-review-facts dd {
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 700;
}

.agency-review-action {
  align-self: stretch;
  display: flex;
  align-items: center;
  padding-left: 4px;
}

.agency-side {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.agency-health-list {
  display: grid;
}

.agency-health-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.agency-health-list span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.agency-side-note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 12px;
}

.agency-tenants {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.agency-recent {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.agency-recent-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.agency-recent-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto 18px;
  min-width: 0;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}

.agency-recent-item:hover {
  background: #f7f8fa;
}

.agency-recent-state {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #e7f5ee;
  color: #177052;
}

.agency-recent-copy {
  min-width: 0;
}

.agency-recent-copy strong,
.agency-recent-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agency-recent-copy small,
.agency-recent-item time {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.agency-tenants .section-head a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.agency-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 160px;
  text-align: left;
}

.agency-empty h3,
.agency-empty p {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .grid-admin,
  .detail-grid,
  .login-layout,
  .agency-layout {
    grid-template-columns: 1fr;
  }

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

  .agency-metric:nth-child(2) {
    border-right: 0;
  }

  .agency-metric:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .agency-side {
    padding: 24px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .agency-recent-list {
    grid-template-columns: 1fr;
  }

  .login-context {
    min-height: 420px;
    padding: 108px 28px 38px;
    background-position: 62% center;
  }

  .login-context .login-context-brand {
    top: 24px;
    left: 28px;
    gap: 9px;
    font-size: 16px;
  }

  .login-context-brand img {
    width: 42px;
    height: 42px;
  }

  .login-panel {
    padding: 40px 28px 64px;
  }

  .platform-bar {
    padding: 0 20px;
  }

  .platform-nav .nav-label {
    display: none;
  }

  .deletion-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .deletion-summary div:nth-child(3) {
    border-right: 0;
  }

  .deletion-summary div:nth-child(n + 4) {
    border-top: 1px solid #e8c9c7;
  }
}

@media (max-width: 620px) {
  .help-popover {
    top: auto !important;
    right: 12px;
    bottom: 12px;
    left: 12px !important;
    width: auto !important;
    max-width: none;
  }

  .configuration-card dl {
    grid-template-columns: 1fr;
  }

  .page,
  .messages {
    width: min(100% - 28px, 1240px);
  }

  .page {
    padding-top: 24px;
  }

  .page-header {
    display: block;
  }

  .page-header .button {
    margin-top: 16px;
  }

  .platform-bar {
    gap: 10px;
    padding: 0 14px;
  }

  .platform-nav {
    gap: 2px;
  }

  .platform-nav a,
  .link-button {
    width: 42px;
    height: 42px;
    justify-content: center;
    padding: 0 8px;
  }

  .brand-lockup {
    gap: 7px;
  }

  .brand-lockup img {
    width: 32px;
    height: 32px;
  }

  .data-table.responsive-table,
  .agency-tenants .data-table {
    display: block;
    background: transparent;
  }

  .responsive-table thead,
  .agency-tenants .data-table thead {
    display: none;
  }

  .responsive-table tbody,
  .responsive-table tr,
  .responsive-table td,
  .agency-tenants .data-table tbody,
  .agency-tenants .data-table tr,
  .agency-tenants .data-table td {
    display: block;
    width: 100%;
  }

  .responsive-table tr,
  .agency-tenants .data-table tr {
    margin-bottom: 12px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
  }

  .responsive-table td,
  .agency-tenants .data-table td {
    display: grid;
    grid-template-columns: minmax(90px, 0.8fr) minmax(0, 1.2fr);
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
    overflow-wrap: anywhere;
  }

  .responsive-table td:last-child,
  .agency-tenants .data-table td:last-child {
    border-bottom: 0;
  }

  .responsive-table td::before,
  .agency-tenants .data-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
  }

  .data-table:not(.responsive-table) {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }

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

  .deletion-summary div:nth-child(3) {
    border-right: 1px solid #e8c9c7;
  }

  .deletion-summary div:nth-child(even) {
    border-right: 0;
  }

  .deletion-summary div:nth-child(n + 3) {
    border-top: 1px solid #e8c9c7;
  }

  .destructive-action form {
    padding: 16px;
  }

  .brand-name {
    font-size: 15px;
  }

  .agency-page {
    width: min(100% - 28px, 1420px);
  }

  .agency-metrics {
    grid-template-columns: 1fr;
  }

  .agency-metric,
  .agency-metric:nth-child(2) {
    border-right: 0;
  }

  .agency-metric:nth-child(n + 2) {
    border-top: 1px solid var(--line);
  }

  .agency-review-item {
    grid-template-columns: 28px 82px minmax(0, 1fr);
  }

  .agency-review-media {
    width: 82px;
  }

  .agency-review-action {
    grid-column: 1 / -1;
    padding-left: 0;
  }

  .agency-review-action .button {
    width: 100%;
  }

  .agency-pipeline {
    margin-bottom: 30px;
  }

  .agency-recent-item {
    grid-template-columns: 36px minmax(0, 1fr) 18px;
  }

  .agency-recent-item time {
    display: none;
  }

  .filter-form {
    align-items: stretch;
  }

  .filter-form label,
  .filter-form input,
  .filter-form select,
  .filter-form .button {
    width: 100%;
    min-width: 0;
  }

  .bulk-review-toolbar,
  .bulk-review-toolbar label,
  .bulk-review-toolbar select,
  .bulk-review-toolbar .button {
    width: 100%;
    min-width: 0;
  }

  .technical-details dl {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .brand-name {
    display: none;
  }

  .platform-bar {
    min-height: 60px;
  }

  .platform-nav a {
    width: auto;
  }

  .platform-nav form {
    margin: 0;
  }
}
