/* Dedicated admin workspace; the consumer layout returns when leaving admin. */
body.admin-mode {
  background: #111410;
}
body.admin-mode > header,
body.admin-mode > main > .location,
body.admin-mode > main > footer {
  display: none;
}
body.admin-mode > main {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}
.admin-shell {
  --ad-line: #30372c;
  --ad-surface: #1a1f18;
  --ad-muted: #99a58e;
  --ad-accent: #d5fa66;
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: 100vh;
  color: #edf2e6;
}
.ad-icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  vertical-align: middle;
}
.admin-shell .ad-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #171b14;
  border-right: 1px solid var(--ad-line);
  padding: 32px 18px 20px;
  gap: 0;
}
.ad-brand {
  padding: 0 15px;
  align-self: flex-start;
}
.ad-mode-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #a0af91;
  padding: 7px 15px 37px;
}
.ad-nav-label {
  font-size: 9px;
  letter-spacing: 1.8px;
  color: #76836c;
  padding: 0 16px;
  margin: 0 0 12px;
}
/* Dedicated sidebar navigation. */
.ad-navigation {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  width: 100%;
}
.ad-navigation button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: none;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 13px;
  text-align: left;
  font-size: 12px;
  color: #aeba9f;
  min-height: 45px;
}
.ad-navigation button:hover {
  background: #242d1e;
}
.ad-navigation button[aria-current='page'] {
  background: #303e23;
  border-color: #445b2f;
  color: #e1ff97;
}
.ad-navigation button b {
  margin-left: auto;
  background: #d5fa66;
  color: #233313;
  padding: 2px 6px;
  font-size: 10px;
  border-radius: 5px;
  min-width: 19px;
  text-align: center;
}
.ad-sidebar-bottom {
  margin-top: auto;
  padding-top: 30px;
}
.ad-sidebar-bottom > a {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 11px;
  color: #aaba9c;
  padding: 14px;
}
.ad-profile {
  display: flex;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--ad-line);
  margin-top: 15px;
  padding: 20px 10px 0;
  min-width: 0;
}
.ad-profile > span {
  background: #343f2b;
  color: #dcf3c3;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 12px;
  flex-shrink: 0;
}
.ad-profile > div {
  min-width: 0;
}
.ad-profile strong {
  display: block;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 150px;
}
.ad-profile small {
  display: block;
  font-size: 10px;
  color: var(--ad-muted);
  margin-top: 5px;
}
.ad-workspace {
  min-width: 0;
}
.ad-topbar {
  height: 76px;
  padding: 0 38px;
  border-bottom: 1px solid var(--ad-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--ad-muted);
  background: #151912;
}
.ad-topbar > div {
  display: flex;
  align-items: center;
  gap: 24px;
}
.ad-topbar strong {
  font-weight: 500;
  color: #d5ddcd;
}
.ad-slash {
  margin: 0 12px;
  color: #59664d;
}
.ad-environment {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.2px;
  border: 1px solid #465338;
  color: #c0d29e;
  border-radius: 5px;
  padding: 6px 9px;
}
.ad-icon-button {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border: 1px solid #3b4631;
  background: #22291c;
  border-radius: 7px;
  color: #c4d3b1;
}
.ad-main {
  max-width: 1600px;
  margin: 0 auto;
  padding: 35px 38px 55px;
}
.ad-page-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 30px;
}
.ad-eyebrow {
  font-size: 8px;
  letter-spacing: 2px;
  font-weight: 700;
  color: #a5bb85;
  margin: 0 0 10px;
}
.ad-page-heading h1 {
  font-size: 32px;
  letter-spacing: -1.1px;
  line-height: 1.2;
  margin: 0;
  color: #f3f6ee;
}
.ad-page-heading > div > p:last-child {
  font-size: 12px;
  line-height: 1.6;
  color: var(--ad-muted);
  margin: 10px 0 0;
}
.ad-updated {
  font-size: 10px;
  color: #829173;
  white-space: nowrap;
}
/* Overview metrics and attention cards. */
.ad-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.ad-metric {
  border: 1px solid var(--ad-line);
  border-radius: 12px;
  background: linear-gradient(135deg, #22291c, #1b2017);
  padding: 22px;
}
.ad-metric > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  color: #b8c6a8;
  font-size: 11px;
}
.ad-metric .ad-icon {
  color: #a9c483;
}
.ad-metric > strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 38px;
  letter-spacing: -1px;
  font-weight: 500;
  margin: 19px 0 10px;
}
.ad-metric p {
  font-size: 10px;
  color: var(--ad-muted);
  line-height: 1.5;
  margin: 0;
}
.ad-overview-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.ad-card {
  min-width: 0;
  border: 1px solid var(--ad-line);
  border-radius: 12px;
  background: var(--ad-surface);
  overflow: hidden;
}
.ad-card-heading {
  padding: 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid #2b3325;
}
.ad-card-heading h2 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
  line-height: 1.5;
  margin: 0;
}
.ad-card-heading p:not(.ad-eyebrow) {
  font-size: 10px;
  line-height: 1.6;
  color: var(--ad-muted);
  margin: 5px 0 0;
}
.ad-card-heading > .ad-icon {
  color: #a6b590;
}
.ad-card-heading > span {
  color: var(--ad-muted);
  font-size: 10px;
}
.ad-live-dot {
  width: 7px;
  height: 7px;
  background: #d5fa66;
  border-radius: 50%;
  box-shadow: 0 0 0 5px #d5fa660b;
}
.ad-attention-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 21px 23px;
  background: none;
  border: 0;
  border-bottom: 1px solid #2b3325;
  color: #d4deca;
  width: 100%;
  text-align: left;
}
.ad-attention-row:last-child {
  border-bottom: 0;
}
.ad-attention-row:hover {
  background: #242d1d;
}
.ad-tile-icon {
  display: grid;
  place-items: center;
  background: #303d24;
  color: #c3df9a;
  width: 39px;
  height: 39px;
  border: 1px solid #415231;
  border-radius: 10px;
  flex-shrink: 0;
}
.ad-attention-row > span:nth-child(2) {
  flex: 1;
}
.ad-attention-row strong {
  font-size: 12px;
  font-weight: 600;
  display: block;
}
.ad-attention-row small {
  display: block;
  font-size: 10px;
  color: var(--ad-muted);
  line-height: 1.5;
  margin-top: 6px;
}
.ad-attention-row > b {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 19px;
  color: #e2efce;
}
.ad-attention-row > .ad-icon {
  width: 15px;
  color: #839773;
  margin-left: 10px;
}
.ad-service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 23px;
  border-bottom: 1px solid #2b3325;
  font-size: 11px;
}
.ad-service-row:last-child {
  border-bottom: 0;
}
.ad-service-row strong {
  font-size: 12px;
  font-weight: 500;
}
.ad-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #3c4732;
  background: #293121;
  color: #bec9b0;
  border-radius: 5px;
  padding: 4px 7px;
  font-size: 9px;
  line-height: 1.4;
  max-width: 100%;
  text-transform: capitalize;
}
.ad-badge.good {
  background: #2a3b22;
  border-color: #486336;
  color: #c5e5a3;
}
.ad-badge.warn {
  background: #3c3420;
  border-color: #66552d;
  color: #e2cb91;
}
.ad-badge.bad {
  background: #3c2725;
  border-color: #68423b;
  color: #e6b0a1;
}
.ad-text-button {
  border: 0;
  background: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #c6df9d;
  font-size: 10px;
  padding: 18px 23px;
}
.ad-text-button .ad-icon {
  width: 14px;
}
.ad-card-heading .ad-text-button {
  padding: 0;
  white-space: nowrap;
}
.ad-timeline {
  padding: 0 23px;
}
.ad-timeline > div {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px 0;
  border-bottom: 1px solid #2b3325;
  min-width: 0;
}
.ad-timeline > div:last-child {
  border-bottom: 0;
}
.ad-timeline-icon {
  width: 30px;
  height: 30px;
  background: #252e1e;
  border: 1px solid #39472e;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #9db682;
  flex-shrink: 0;
}
.ad-timeline-icon .ad-icon {
  width: 14px;
}
.ad-timeline > div > div {
  min-width: 0;
  flex: 1;
}
.ad-timeline strong {
  display: block;
  font-size: 11px;
  font-weight: 500;
  text-transform: capitalize;
  overflow-wrap: anywhere;
}
.ad-timeline p {
  font-size: 10px;
  margin: 5px 0 0;
  line-height: 1.5;
  color: var(--ad-muted);
  overflow-wrap: anywhere;
}
.ad-timeline time {
  font-size: 9px;
  color: #829173;
  white-space: nowrap;
}
.ad-empty {
  padding: 55px 24px;
  text-align: center;
  color: var(--ad-muted);
}
.ad-empty > .ad-icon {
  width: 35px;
  height: 35px;
  color: #a9c987;
  padding: 6px;
  border: 1px solid #405231;
  border-radius: 10px;
  box-sizing: content-box;
}
.ad-empty h3 {
  font-size: 15px;
  color: #dbe6d0;
  margin: 17px 0 9px;
}
.ad-empty p {
  font-size: 11px;
  line-height: 1.7;
  max-width: 320px;
  margin: auto;
}
.ad-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 20px 23px;
  border-bottom: 1px solid var(--ad-line);
}
.ad-toolbar > span {
  font-size: 10px;
  color: var(--ad-muted);
  white-space: nowrap;
}
.ad-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  width: 100%;
  max-width: 390px;
  color: #91a17e;
}
.ad-search > .ad-icon {
  position: absolute;
  left: 12px;
  width: 16px;
}
.ad-search input {
  margin: 0;
  padding: 11px 12px 11px 37px;
  background: #141a10;
  border-color: #39452e;
  font-size: 11px;
  border-radius: 7px;
  min-width: 0;
}
/* Keep wide management tables scrollable inside their panel. */
.ad-table-scroll {
  overflow: auto;
  width: 100%;
  scrollbar-width: thin;
}
.ad-table {
  border-collapse: collapse;
  min-width: 640px;
  width: 100%;
  font-size: 11px;
}
.ad-table th {
  background: #20271b;
  font-size: 9px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #9caa8e;
  padding: 15px 22px;
  white-space: nowrap;
  font-weight: 600;
  text-align: left;
}
.ad-table td {
  border-bottom: 1px solid #2d3527;
  padding: 17px 22px;
  color: #c3cfb8;
  text-align: left;
  vertical-align: middle;
  max-width: 300px;
  overflow-wrap: anywhere;
}
.ad-table tbody tr:last-child td {
  border-bottom: 0;
}
.ad-table tbody tr:hover {
  background: #20281a;
}
.ad-table strong {
  font-size: 11px;
  font-weight: 500;
  color: #e2ead9;
}
.ad-table code {
  font-size: 10px;
}
.ad-subtext {
  display: block;
  color: var(--ad-muted);
  font-size: 9px;
  line-height: 1.5;
  margin-top: 6px;
  overflow-wrap: anywhere;
}
.ad-row-button {
  border: 1px solid #424f35;
  background: #242d1e;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 10px;
  color: #d0dfb9;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.ad-row-button .ad-icon {
  width: 13px;
  height: 13px;
}
.ad-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  border: 1px solid #43542e;
  background: #222d18;
  border-radius: 9px;
  margin-bottom: 22px;
  color: #b6c69e;
}
.ad-note > .ad-icon {
  width: 19px;
  color: #c3df98;
  flex-shrink: 0;
}
.ad-note p {
  font-size: 11px;
  line-height: 1.7;
  margin: 0;
}
.ad-error {
  background: #382523;
  border: 1px solid #745043;
  color: #e0b9ac;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 12px;
}
.ad-access {
  padding: 65px 25px;
  max-width: 650px;
  margin: auto;
  line-height: 1.6;
}
.ad-access > .ad-icon {
  width: 38px;
  height: 38px;
  color: var(--lime);
  margin-bottom: 20px;
}
.ad-access p {
  font-size: 13px;
  color: var(--muted);
}
.ad-access button,
.ad-access a {
  display: inline-block;
  margin-right: 10px;
}
/* Manual verification queue and evidence inspector. */
.ad-review-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.5fr);
  gap: 22px;
  align-items: start;
}
.ad-count {
  display: inline-grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  margin-left: 6px;
  font-size: 10px;
  background: #354628;
  color: #d9f4b6;
  border-radius: 6px;
}
.ad-queue-filters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 17px;
  border-bottom: 1px solid var(--ad-line);
}
.ad-queue-filters .ad-search {
  max-width: none;
}
.ad-queue-filters select {
  background: #20291a;
  border-color: #3f4b32;
  font-size: 11px;
  padding: 10px;
  margin: 0;
}
.ad-queue-item {
  background: none;
  border: 0;
  border-bottom: 1px solid #30392a;
  padding: 18px 20px;
  color: #c8d5bd;
  display: block;
  width: 100%;
  text-align: left;
  border-left: 3px solid transparent;
}
.ad-queue-item.selected {
  background: #28351f;
  border-left-color: #d5fa66;
}
.ad-queue-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.ad-queue-item-top > small {
  font-size: 8px;
  letter-spacing: 1px;
  color: #a6b591;
}
.ad-queue-item > strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.ad-queue-item > span:not(.ad-queue-item-top) {
  display: block;
  font-size: 10px;
  color: #acbc9c;
  margin-top: 8px;
  overflow-wrap: anywhere;
}
.ad-queue-item > small {
  display: block;
  font-size: 9px;
  color: #8fa17d;
  margin-top: 10px;
}
.ad-review-body {
  padding: 22px;
}
.ad-ticket-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
  margin: 0;
}
.ad-ticket-facts dt {
  font-size: 9px;
  color: #93a080;
  margin-bottom: 6px;
}
.ad-ticket-facts dd {
  font-size: 11px;
  line-height: 1.6;
  color: #d8e3cb;
  margin: 0;
  overflow-wrap: anywhere;
}
.ad-reference {
  font-size: 9px;
  color: #7f926d;
  overflow-wrap: anywhere;
  border-bottom: 1px solid var(--ad-line);
  padding-bottom: 20px;
  margin: 20px 0;
}
.ad-review-body h3 {
  font-size: 13px;
  margin: 20px 0 14px;
}
.ad-findings {
  background: #22291c;
  border: 1px solid #3a482e;
  border-radius: 8px;
  padding: 0 14px;
}
.ad-findings > div {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #36412b;
}
.ad-findings > div:last-child {
  border-bottom: 0;
}
.ad-findings .ad-icon {
  width: 15px;
  color: #bdce99;
  margin-top: 2px;
}
.ad-findings p {
  margin: 0;
  font-size: 11px;
  line-height: 1.6;
  color: #bdcbaa;
}
.ad-findings strong {
  display: block;
  font-size: 8px;
  letter-spacing: 0.6px;
  color: #dfebca;
  margin-bottom: 4px;
}
.ad-findings span {
  display: block;
}
.ad-document-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  margin: 18px 0 0;
  line-height: 1.6;
}
.ad-document-link .ad-icon {
  width: 15px;
}
.ad-prior-note {
  margin-top: 20px;
  border-left: 2px solid #789252;
  padding-left: 12px;
  font-size: 11px;
  line-height: 1.6;
  color: #b8c9a3;
}
/* Audited ticket review decisions. */
.ad-review-form {
  margin-top: 25px;
  border-top: 1px solid var(--ad-line);
  padding-top: 6px;
}
.ad-review-form label {
  font-size: 11px;
  color: #b8c6a7;
  margin-top: 17px;
}
.ad-review-form select,
.ad-review-form textarea {
  font-family: inherit;
  background: #141b0f;
  border: 1px solid #455435;
  border-radius: 7px;
  color: #e2ecd5;
  width: 100%;
  font-size: 11px;
  padding: 12px;
  line-height: 1.6;
}
.ad-review-form textarea {
  display: block;
  margin-top: 8px;
  resize: vertical;
}
.ad-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.7;
}
.ad-checkbox input {
  margin: 3px 0 0;
  flex-shrink: 0;
  width: auto;
  accent-color: var(--ad-accent);
}
.ad-review-form button {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  padding: 12px 17px;
}
.ad-review-form button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.ad-fine {
  font-size: 9px;
  color: #859574;
  line-height: 1.7;
  margin: 14px 0 0;
}
.ad-error-text {
  color: #e3ac9b;
  font-size: 11px;
  line-height: 1.6;
}
.ad-flagged {
  margin-top: 24px;
}
.ad-card-copy {
  font-size: 11px;
  color: var(--ad-muted);
  line-height: 1.8;
  padding: 20px 23px;
  margin: 0;
}
.ad-card-copy p {
  margin: 0 0 14px;
}
.ad-settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.ad-dev-card {
  grid-column: 1/-1;
  border-color: #64502f;
}
.ad-dev-card .ad-card-heading {
  background: #312b1c;
  border-bottom-color: #51452b;
}
.ad-dev-card button {
  font-size: 11px;
}
.admin-mode #modal .ad-icon {
  width: 16px;
  height: 16px;
}
.admin-shell input:focus-visible,
.admin-shell select:focus-visible,
.admin-shell textarea:focus-visible {
  outline: 2px solid var(--ad-accent);
  outline-offset: 2px;
}
.admin-shell button:focus-visible {
  outline-offset: 2px;
}
@media (min-width: 1600px) {
  .admin-shell {
    grid-template-columns: 260px minmax(0, 1fr);
  }
  .ad-main {
    padding: 42px 50px;
  }
  .ad-topbar {
    padding: 0 50px;
  }
}
@media (max-width: 1150px) {
  .admin-shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .ad-main {
    padding: 28px 24px;
  }
  .ad-topbar {
    padding: 0 24px;
  }
  .ad-sidebar {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .ad-navigation button {
    font-size: 11px;
    gap: 9px;
  }
  .ad-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ad-overview-grid {
    grid-template-columns: 1fr;
  }
  .ad-review-layout {
    grid-template-columns: minmax(230px, 0.8fr) minmax(0, 1.2fr);
  }
  .ad-review-body {
    padding: 18px;
  }
  .ad-ticket-facts {
    gap: 18px 12px;
  }
  .ad-updated {
    display: none;
  }
}
@media (max-width: 850px) {
  .admin-shell {
    grid-template-columns: 184px minmax(0, 1fr);
  }
  .ad-brand {
    font-size: 26px;
    padding: 0 10px;
  }
  .ad-navigation button {
    padding: 11px 9px;
    font-size: 10px;
  }
  .ad-navigation button .ad-icon {
    width: 16px;
  }
  .ad-mode-label {
    font-size: 7px;
    padding-left: 10px;
  }
  .ad-main {
    padding: 25px 18px;
  }
  .ad-topbar {
    padding: 0 18px;
  }
  .ad-topbar > div {
    gap: 10px;
  }
  .ad-review-layout,
  .ad-settings-grid {
    grid-template-columns: 1fr;
  }
  .ad-page-heading h1 {
    font-size: 28px;
  }
  .ad-queue #ad-ticket-list {
    max-height: 330px;
    overflow: auto;
  }
  .ad-timeline time {
    font-size: 8px;
  }
  .ad-timeline > div {
    flex-wrap: wrap;
  }
  .ad-timeline time {
    margin-left: 43px;
  }
  .ad-profile strong {
    max-width: 105px;
  }
}
/* Mobile admin navigation becomes a horizontally scrollable section bar. */
@media (max-width: 600px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .admin-shell .ad-sidebar {
    position: relative;
    height: auto;
    padding: 20px 16px 0 !important;
    border-right: 0;
    border-bottom: 1px solid var(--ad-line);
  }
  .ad-brand {
    font-size: 26px;
  }
  .ad-mode-label {
    position: absolute;
    right: 20px;
    top: 37px;
    padding: 0;
    font-size: 7px;
  }
  .ad-nav-label,
  .ad-sidebar-bottom {
    display: none;
  }
  .ad-navigation {
    flex-direction: row;
    overflow-x: auto;
    gap: 6px;
    padding: 20px 0 13px;
    scrollbar-width: thin;
  }
  .ad-navigation button {
    width: auto;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 9px 11px;
    min-height: 37px;
  }
  .ad-navigation button b {
    font-size: 8px;
    min-width: 16px;
  }
  .ad-navigation button .ad-icon {
    width: 15px;
  }
  .ad-topbar {
    height: 62px;
    padding: 0 18px;
    font-size: 10px;
  }
  .ad-environment {
    font-size: 7px;
    letter-spacing: 0.5px;
    padding: 5px;
  }
  .ad-main {
    padding: 25px 16px 35px;
  }
  .ad-page-heading {
    margin-bottom: 23px;
  }
  .ad-page-heading h1 {
    font-size: 27px;
  }
  .ad-page-heading > div > p:last-child {
    font-size: 11px;
  }
  .ad-metrics {
    gap: 10px;
    margin-bottom: 18px;
  }
  .ad-metric {
    padding: 16px;
  }
  .ad-metric > div {
    font-size: 10px;
  }
  .ad-metric > div .ad-icon {
    width: 16px;
  }
  .ad-metric > strong {
    font-size: 30px;
    margin: 15px 0 8px;
  }
  .ad-metric p {
    font-size: 9px;
  }
  .ad-overview-grid {
    gap: 18px;
    margin-bottom: 18px;
  }
  .ad-card-heading {
    padding: 18px;
  }
  .ad-card-heading h2 {
    font-size: 14px;
  }
  .ad-attention-row {
    padding: 18px;
    gap: 10px;
  }
  .ad-attention-row strong {
    font-size: 11px;
  }
  .ad-attention-row small {
    font-size: 9px;
  }
  .ad-attention-row > .ad-icon {
    margin-left: 0;
  }
  .ad-tile-icon {
    width: 32px;
    height: 32px;
  }
  .ad-service-row {
    padding: 17px 18px;
  }
  .ad-timeline {
    padding: 0 18px;
  }
  .ad-note {
    padding: 13px;
    gap: 9px;
  }
  .ad-note p {
    font-size: 10px;
  }
  .ad-toolbar {
    padding: 16px;
    gap: 10px;
  }
  .ad-toolbar > span {
    font-size: 9px;
  }
  .ad-queue-filters {
    padding: 15px;
  }
  .ad-ticket-facts {
    grid-template-columns: 1fr 1fr;
  }
  .ad-inspector .ad-card-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .ad-review-body {
    padding: 17px;
  }
  .ad-text-button {
    padding: 16px 18px;
  }
  .ad-card-heading .ad-text-button {
    font-size: 9px;
  }
  .ad-profile {
    display: none;
  }
  .ad-settings-grid {
    gap: 18px;
  }
  .ad-card-copy {
    padding: 18px;
  }
  .ad-topbar .ad-slash {
    margin: 0 6px;
  }
}
/* Keep horizontally scrollable navigation and tables inside their grid tracks. */
.admin-shell {
  width: 100%;
  min-width: 0;
}
.admin-shell .ad-sidebar {
  min-width: 0;
  max-width: 100%;
}
.ad-workspace,
.ad-topbar,
.ad-main {
  min-width: 0;
  max-width: 100%;
}
.ad-navigation {
  max-width: 100%;
}
@media (max-width: 600px) {
  .admin-shell {
    grid-template-columns: minmax(0, 1fr);
  }
}
body.admin-mode #admin {
  padding: 0;
  min-height: 100vh;
}
.ad-navigation {
  justify-content: flex-start;
  flex-wrap: nowrap;
}

/* Email editing and one-to-one correspondence use the existing admin card layout. */
.ad-email-workbench {
  padding: 24px;
}
.ad-email-workbench label,
.ad-email-form label {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}
.ad-email-workbench input,
.ad-email-workbench textarea,
.ad-email-workbench select {
  width: 100%;
  min-width: 0;
}
.ad-email-workbench textarea {
  resize: vertical;
  font: inherit;
  line-height: 1.5;
}
.ad-email-workbench p {
  line-height: 1.6;
}
.ad-email-workbench [hidden] {
  display: none;
}
