.ad-main {
  min-width: 0;
  width: 100%;
  max-width: 1440px;
  padding: 28px 36px 64px;
  color: var(--text, #1f1f1f);
}

.ad-nav {
  width: 256px;
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: var(--text, #1f1f1f);
}

.ad-nav-heading {
  padding: 22px 18px 7px;
  color: var(--muted, #5f6368);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}

.ad-nav-link {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 42px;
  width: 100%;
  border: 0;
  border-radius: 0 24px 24px 0;
  padding: 0 18px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.ad-nav-link:hover,
.ad-nav-link.is-active {
  background: var(--selection, #d3e3fd);
}

.ad-nav-link.is-active {
  font-weight: 700;
}

.ad-page-head,
.ad-card-head,
.ad-actions,
.ad-filters,
.ad-pagination,
.ad-profile,
.ad-person,
.ad-secret {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ad-page-head {
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.ad-page-head h1 {
  margin: 4px 0 0;
  font-size: 28px;
  font-weight: 500;
}

.ad-crumbs {
  min-height: 20px;
  color: var(--muted, #5f6368);
  font-size: 13px;
}

.ad-crumbs a {
  color: inherit;
  text-decoration: none;
}

.ad-crumbs a:hover {
  text-decoration: underline;
}

.ad-actions {
  flex-wrap: wrap;
}

.ad-button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 6px 14px;
  border: 1px solid transparent;
  border-radius: 20px;
  background: transparent;
  color: var(--accent, #0b57d0);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.ad-button:hover {
  background: color-mix(in srgb, currentColor 8%, transparent);
}

.ad-button--primary {
  background: var(--accent, #0b57d0);
  color: white;
}

.ad-button--primary:hover {
  background: var(--accent, #0b57d0);
  filter: brightness(1.1);
}

.ad-button--danger {
  color: #b3261e;
}

.ad-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.ad-card,
.ad-table-wrap {
  border-radius: 16px;
  background: var(--surface, #fff);
  box-shadow: 0 1px 3px #00000012;
}

.ad-card {
  margin-bottom: 18px;
  padding: 22px 24px;
}

.ad-card-head {
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.ad-card h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
}

.ad-card h3 {
  font-size: 14px;
}

.ad-card p {
  margin: 8px 0;
}

.ad-metric {
  font-size: 36px;
  font-weight: 500;
}

.ad-muted {
  color: var(--muted, #5f6368);
  font-size: 13px;
}

.ad-simple-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ad-simple-list li {
  min-height: 38px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #80808020;
}

.ad-status {
  color: var(--muted, #5f6368);
}

.ad-status.is-on {
  color: #137333;
}

.ad-filters {
  margin: 0 0 16px;
}

.ad-chip {
  padding: 7px 12px;
  border-radius: 18px;
  background: var(--selection, #d3e3fd);
  font-size: 12px;
}

.ad-table-wrap {
  overflow-x: auto;
}

.ad-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.ad-table th,
.ad-table td {
  height: 52px;
  padding: 8px 16px;
  border-bottom: 1px solid #80808024;
  white-space: nowrap;
}

.ad-table th {
  color: var(--muted, #5f6368);
  font-weight: 600;
}

.ad-table tbody tr {
  cursor: pointer;
}

.ad-table tbody tr:hover {
  background: color-mix(in srgb, var(--accent, #0b57d0) 5%, transparent);
}

.ad-table th .ad-button {
  padding-left: 0;
  color: inherit;
}

.ad-pagination {
  justify-content: flex-end;
  padding: 10px 16px;
  color: var(--muted, #5f6368);
  font-size: 12px;
}

.ad-person {
  min-width: 150px;
}

.ad-profile {
  margin-bottom: 20px;
  padding: 20px 24px;
  border-radius: 16px;
  background: var(--surface, #fff);
}

.ad-profile p {
  margin: 4px 0;
}

.ad-details {
  line-height: 1.65;
}

.ad-form {
  display: grid;
  gap: 16px;
}

.ad-field {
  display: grid;
  gap: 6px;
  font-size: 13px;
}

.ad-field input,
.ad-field select {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #80808070;
  border-radius: 6px;
  background: var(--surface, #fff);
  color: inherit;
  font: inherit;
}

.ad-field input:focus,
.ad-field select:focus {
  outline: 2px solid var(--accent, #0b57d0);
  outline-offset: 1px;
}

.ad-check {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
}

.ad-secret {
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 10px;
  border-radius: 8px;
  background: color-mix(in srgb, currentColor 5%, transparent);
}

.ad-denied {
  max-width: 620px;
  margin: 15vh auto;
  text-align: center;
}

@media (max-width: 900px) {
  .ad-main {
    padding: 18px 16px 48px;
  }

  .ad-nav {
    width: 100%;
  }

  .ad-page-head h1 {
    font-size: 23px;
  }

  .ad-table th,
  .ad-table td {
    padding: 8px 10px;
  }
}
