body { margin: 0; font-family: system-ui, "Segoe UI", sans-serif; background: #eef1f4; color: #1a2b3a; }

/* PWA: viewport and safe area improvements */
@supports (padding: max(0px)) {
  .ad-workspace {
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
  }

  .ad-topbar {
    padding-left: max(1rem, env(safe-area-inset-left, 0));
    padding-right: max(1rem, env(safe-area-inset-right, 0));
  }

  .ad-main__inner--workspace {
    padding-left: max(1.75rem, env(safe-area-inset-left, 0));
    padding-right: max(1.75rem, env(safe-area-inset-right, 0));
  }
}

/* Improve mobile scrolling */
.ad-main {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* —— Login: painel visual + formulário (split) —— */
.ad-login {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  font-family: "Open Sans", system-ui, "Segoe UI", sans-serif;
}

.ad-login-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  min-height: 100vh;
  min-height: 100dvh;
}

.ad-login-split__visual {
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.ad-login-split__image {
  position: absolute;
  inset: 0;
  background-color: #062038;
  background-size: cover;
  background-position: center;
}

.ad-login-split__image--fallback {
  background-image: none;
  background: linear-gradient(155deg, #062038 0%, #0d2847 42%, #1a5f9e 72%, #2b8cbe 100%);
}

.ad-login-split__image--fallback::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background:
    radial-gradient(ellipse 80% 55% at 20% 20%, rgba(255, 255, 255, 0.2), transparent 50%),
    radial-gradient(ellipse 60% 50% at 85% 70%, rgba(43, 140, 190, 0.45), transparent 45%);
}

.ad-login-split__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(6, 32, 56, 0.88) 0%,
    rgba(13, 40, 71, 0.55) 52%,
    rgba(26, 95, 158, 0.28) 100%
  );
}

.ad-login-split__brandblock {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(1.75rem, 4.5vw, 3.25rem);
  color: #fff;
}

.ad-login-split__org {
  display: block;
  margin: 0 0 0.65rem;
  font-family: Merriweather, Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.25);
}

.ad-login-split__line {
  margin: 0;
  max-width: 28rem;
  font-size: clamp(0.9rem, 1.35vw, 1rem);
  font-weight: 500;
  line-height: 1.55;
  opacity: 0.94;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.2);
}

.ad-login-split__main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.35rem, 4vw, 2.5rem);
  background: #f3f6fa;
  box-sizing: border-box;
}

.ad-login-split__form-inner {
  width: 100%;
  max-width: 400px;
}

.ad-login__logo-link {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0 1.5rem;
  text-decoration: none;
  color: inherit;
}

.ad-login__logo--png {
  display: block;
  max-width: min(240px, 100%);
  height: auto;
  max-height: 56px;
  width: auto;
  object-fit: contain;
}

.ad-login__logo-mark-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.ad-login__logo-mark {
  flex-shrink: 0;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(13, 40, 71, 0.12);
}

.ad-login__logo-text {
  font-family: Merriweather, Georgia, serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #0d2847;
  letter-spacing: -0.02em;
}

.ad-login__head {
  text-align: left;
  margin-bottom: 1.25rem;
}

.ad-login__title {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: #0d2847;
  letter-spacing: -0.02em;
}

.ad-login__sub {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.48;
  color: #5a6b7a;
}

.ad-login__alert {
  padding: 0.75rem 0.85rem;
  margin: 0 0 1.1rem;
  border-radius: 8px;
  background: #fdecee;
  color: #9b1c2e;
  font-size: 0.9rem;
  line-height: 1.45;
  border: 1px solid #f5c2c7;
}

.ad-login__form {
  margin: 0;
}

.ad-login__field {
  margin: 0 0 1rem;
}

.ad-login__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #2c3b4a;
  margin-bottom: 0.35rem;
  letter-spacing: 0.02em;
}

.ad-login__input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.62rem 0.85rem;
  font: inherit;
  font-size: 1rem;
  border: 1px solid #c5d2df;
  border-radius: 8px;
  background: #fff;
  color: #1a2b3a;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ad-login__input::placeholder {
  color: #9aa8b5;
}

.ad-login__input:hover {
  border-color: #9eb5c9;
}

.ad-login__input:focus {
  outline: none;
  border-color: #5a87b0;
  box-shadow: 0 0 0 2px rgba(26, 95, 158, 0.18);
}

.ad-login__turnstile {
  margin: 0 0 1rem;
  display: flex;
  justify-content: flex-start;
  min-height: 65px;
}

.ad-login__submit {
  width: 100%;
  margin: 0.25rem 0 0;
  padding: 0.72rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  background-color: #1a5f9e;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(13, 40, 71, 0.22);
  transition: background-color 0.15s ease, transform 0.12s ease;
}

.ad-login__submit:hover {
  background-color: #155a92;
}

.ad-login__submit:active {
  transform: translateY(1px);
}

.ad-login__submit:focus-visible {
  outline: none;
  box-shadow:
    0 4px 14px rgba(13, 40, 71, 0.22),
    0 0 0 2px #fff,
    0 0 0 4px #1a5f9e;
}

.ad-login__footer {
  margin: 1.35rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid #dde5ed;
  text-align: left;
}

.ad-login__site-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a5f9e;
  text-decoration: none;
}

.ad-login__site-link:hover {
  text-decoration: underline;
  color: #0d2847;
}

@media (max-width: 900px) {
  .ad-login-split {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(180px, 30vh) auto;
  }

  .ad-login-split__visual {
    min-height: 180px;
  }

  .ad-login-split__brandblock {
    padding: 1.15rem 1.35rem;
  }

  .ad-login-split__org {
    font-size: 1.2rem;
    margin-bottom: 0.35rem;
  }

  .ad-login-split__line {
    font-size: 0.85rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .ad-login-split__main {
    align-items: flex-start;
    padding: 1.35rem 1.35rem 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ad-login__submit {
    transition: none;
  }

  .ad-metric-card {
    transition: none;
  }

  .ad-metric-card:hover {
    transform: none;
    box-shadow: none;
  }
}

/* —— Admin: cores alinhadas a app.css (Oceanic Peace) —— */
:root {
  --ad-navy: #0d2847;
  --ad-blue: #1a5f9e;
  --ad-accent: #2b8cbe;
  --ad-orange: #e85d1c;
  --ad-gold: #e8c547;
  --ad-bg: #f4f7fa;
  --ad-sidebar-bg: #eceff2;
  --ad-card: #ffffff;
  --ad-border: #d5dee8;
  --ad-text: #1a2b3a;
  --ad-muted: #5a6b7a;
  --ad-sidebar-w: 268px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.err {
  color: #b00020;
}

.ad-body {
  margin: 0;
  font-family: "Open Sans", system-ui, "Segoe UI", sans-serif;
  background: var(--ad-bg);
  color: var(--ad-text);
  line-height: 1.5;
}

.ad-body:not(.ad-login) {
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

.ad-app-wrap {
  display: flex;
  height: 100%;
  max-height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

.ad-sidebar-check {
  position: fixed;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.ad-scrim {
  display: none;
}

.ad-sidebar {
  flex: 0 0 var(--ad-sidebar-w);
  width: var(--ad-sidebar-w);
  max-width: 100%;
  background: var(--ad-sidebar-bg);
  color: var(--ad-text);
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100dvh;
  min-height: 0;
  overflow: hidden;
  border-right: 1px solid var(--ad-border);
  box-shadow: inset 3px 0 0 0 var(--ad-navy);
  z-index: 200;
}

.ad-sidebar__head {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem 0.85rem 1.05rem;
  border-bottom: 1px solid var(--ad-border);
  text-align: center;
  flex-shrink: 0;
}

.ad-sidebar__head-main {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ad-sidebar__tagline {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--ad-muted);
  font-weight: 400;
  max-width: 15rem;
}

.ad-sidebar__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  color: var(--ad-navy);
  width: 100%;
  gap: 0.35rem;
}

.ad-sidebar__brand--row {
 flex-direction: row;
  gap: 0.55rem;
}

.ad-sidebar__logo {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: min(220px, 100%);
  height: auto;
  max-height: 58px;
  width: auto;
  object-fit: contain;
}

.ad-sidebar__mark {
  flex-shrink: 0;
  border-radius: 50%;
}

.ad-sidebar__name {
  font-family: Merriweather, Georgia, serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.ad-sidebar__close {
  display: none;
  position: absolute;
  top: 0.55rem;
  right: 0.5rem;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 6px;
  color: var(--ad-navy);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--ad-border);
  padding: 0;
  flex-shrink: 0;
}

.ad-sidebar__close:hover {
  background: var(--ad-bg);
}

.ad-sidebar__nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.5rem 0.65rem 1rem;
  -webkit-overflow-scrolling: touch;
}

.ad-nav-group {
  margin: 0.85rem 0 0.35rem;
  padding: 0 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ad-muted);
  line-height: 1.3;
}

.ad-nav-link {
  display: block;
  padding: 0.5rem 0.72rem;
  margin: 0 0 2px;
  border-radius: 8px;
  color: var(--ad-text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition:
    background 0.12s ease,
    color 0.12s ease,
    border-color 0.12s ease;
}

.ad-nav-link:hover {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(213, 222, 232, 0.85);
  color: var(--ad-navy);
}

.ad-nav-link.is-active {
  background: #fff;
  color: var(--ad-navy);
  font-weight: 700;
  border-color: var(--ad-border);
  box-shadow: 0 1px 2px rgba(13, 40, 71, 0.06);
}

.ad-sidebar__locale-wrap {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--ad-border);
  flex-shrink: 0;
}

.ad-sidebar__locale-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ad-muted);
  margin-bottom: 0.35rem;
}

.ad-sidebar__site {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ad-blue);
  text-decoration: none;
  text-align: center;
}

.ad-sidebar__site:hover {
  color: var(--ad-accent);
  text-decoration: underline;
}

.ad-select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--ad-border);
  background: #fff;
  color: var(--ad-text);
  font: inherit;
  font-size: 0.85rem;
}

.ad-sidebar__locale {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.ad-sidebar__logout {
  margin: 0.55rem 0 0;
  padding: 0;
  width: 100%;
}

.ad-sidebar__logout-btn {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--ad-border);
  background: #fff;
  color: var(--ad-text);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.12s ease,
    border-color 0.12s ease;
}

.ad-sidebar__logout-btn:hover {
  background: var(--ad-bg);
  border-color: rgba(13, 40, 71, 0.22);
}

.ad-sidebar__version {
  display: block;
  margin-top: 0.6rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ad-muted);
  text-decoration: none;
  cursor: pointer;
}

.ad-sidebar__version:hover {
  color: var(--ad-text);
}

.ad-workspace {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--ad-bg);
}

.ad-workspace__chrome {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  flex-shrink: 0;
  padding: 0.85rem 1.75rem;
  background: var(--ad-card);
  border-bottom: 1px solid var(--ad-border);
  box-shadow: 0 1px 0 rgba(13, 40, 71, 0.03);
  position: relative;
  z-index: 80;
}

.ad-workspace__eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ad-muted);
}

.ad-workspace__chrome-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ad-workspace__site-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ad-blue);
  text-decoration: none;
  white-space: nowrap;
}

.ad-workspace__site-link:hover {
  color: var(--ad-accent);
  text-decoration: underline;
}

.ad-topbar {
  display: none;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 1rem;
  background: var(--ad-card);
  border-bottom: 1px solid var(--ad-border);
  flex-shrink: 0;
  z-index: 70;
  box-shadow: 0 1px 0 rgba(13, 40, 71, 0.04);
  position: relative;
}

.ad-burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: var(--ad-bg);
  cursor: pointer;
}

.ad-burger span {
  display: block;
  height: 2px;
  width: 18px;
  margin: 0 auto;
  background: var(--ad-navy);
  border-radius: 1px;
}

.ad-topbar__title {
  flex: 1;
  min-width: 0;
  font-family: Merriweather, Georgia, serif;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ad-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.ad-topbar__actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.ad-main {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 0;
  margin: 0;
  max-width: none;
}

/* Admin content: full-width white column aligned with header (no floating card). */
.ad-main--workspace {
  background: var(--ad-card);
}

.ad-leads-bell {
  position: relative;
  z-index: 125;
}

.ad-leads-bell__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  margin: 0;
  border: 1px solid var(--ad-border);
  border-radius: 50%;
  background: #fff;
  color: var(--ad-navy);
  cursor: pointer;
  line-height: 0;
  transition:
    border-color 0.1s ease,
    background 0.1s ease,
    color 0.1s ease;
}

.ad-leads-bell__btn:hover {
  border-color: #b8c5d3;
  background: var(--ad-bg);
  color: var(--ad-blue);
}

.ad-leads-bell__btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ad-blue);
}

.ad-leads-bell__icon {
  display: flex;
  pointer-events: none;
}

.ad-leads-bell__dot {
  position: absolute;
  top: 5px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c41e1e;
  border: 1.5px solid #fff;
  pointer-events: none;
}

.ad-leads-bell__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(19rem, calc(100vw - 1.5rem));
  max-height: min(320px, 55vh);
  overflow-y: auto;
  margin: 0;
  padding: 0;
  background: var(--ad-card);
  border: 1px solid var(--ad-border);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(13, 40, 71, 0.12);
}

.ad-leads-bell__empty {
  margin: 0;
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  color: var(--ad-muted);
  line-height: 1.4;
}

.ad-leads-bell__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ad-leads-bell__list li {
  margin: 0;
  border-bottom: 1px solid var(--ad-border);
}

.ad-leads-bell__list li:last-child {
  border-bottom: none;
}

.ad-leads-bell__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 0.65rem 0.85rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.08s ease;
}

.ad-leads-bell__item:hover {
  background: rgba(26, 95, 158, 0.06);
}

.ad-leads-bell__item-name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ad-navy);
  line-height: 1.3;
}

.ad-leads-bell__item-msg {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ad-muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ad-leads-bell__item-date {
  font-size: 0.68rem;
  color: var(--ad-muted);
  font-variant-numeric: tabular-nums;
}

.ad-leads-bell__foot {
  padding: 0.5rem 0.75rem 0.65rem;
  border-top: 1px solid var(--ad-border);
  background: var(--ad-bg);
}

.ad-leads-bell__all {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ad-blue);
  text-decoration: none;
}

.ad-leads-bell__all:hover {
  color: var(--ad-navy);
  text-decoration: underline;
}

.ad-user-menu {
  position: relative;
  z-index: 120;
}

.ad-user-menu__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 2px solid rgba(213, 222, 232, 0.95);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  line-height: 0;
  transition:
    border-color 0.12s ease,
    box-shadow 0.12s ease;
}

.ad-user-menu__trigger:hover {
  border-color: var(--ad-accent);
  box-shadow: 0 2px 8px rgba(13, 40, 71, 0.08);
}

.ad-user-menu__trigger:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ad-blue);
}

.ad-user-menu__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--ad-navy), var(--ad-blue));
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.ad-user-menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(17.5rem, calc(100vw - 1.5rem));
  max-height: min(70vh, 26rem);
  overflow-y: auto;
  padding: 0;
  margin: 0;
  background: var(--ad-card);
  border: 1px solid var(--ad-border);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(13, 40, 71, 0.12);
}

.ad-user-menu__panel::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 1.1rem;
  width: 10px;
  height: 10px;
  background: var(--ad-card);
  border-left: 1px solid var(--ad-border);
  border-top: 1px solid var(--ad-border);
  transform: rotate(45deg);
}

.ad-user-menu__head {
  text-align: center;
  padding: 0.95rem 1rem 0.85rem;
  border-bottom: 1px solid var(--ad-border);
}

.ad-user-menu__name {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ad-text);
  word-break: break-all;
}

.ad-user-menu__role {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: var(--ad-muted);
  font-weight: 500;
}

.ad-user-menu__list {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
}

.ad-user-menu__list li {
  margin: 0;
}

.ad-user-menu__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 1rem;
  border: none;
  background: none;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ad-text);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  border-top: 1px solid var(--ad-border);
  transition: color 0.1s ease, background 0.1s ease;
}

.ad-user-menu__list li:first-child .ad-user-menu__item {
  border-top: none;
}

.ad-user-menu__item:hover {
  color: var(--ad-blue);
  background: rgba(26, 95, 158, 0.06);
}

.ad-user-menu__logout {
  margin: 0;
  padding: 0.35rem 0 0.5rem;
  border-top: 1px solid var(--ad-border);
}

.ad-user-menu__logout .ad-user-menu__item {
  border-top: none;
}

.ad-user-menu__ic {
  flex-shrink: 0;
  display: flex;
  color: var(--ad-muted);
}

.ad-user-menu__item:hover .ad-user-menu__ic {
  color: var(--ad-blue);
}

.ad-user-menu__item--btn {
  font-weight: 600;
}

.ad-main__inner {
  max-width: min(1100px, calc(100% - 2rem));
  margin: 1rem auto 1.75rem;
  padding: 1.5rem 1.75rem 2.5rem;
  box-sizing: border-box;
  background: var(--ad-card);
  border: 1px solid var(--ad-border);
  box-shadow: 0 1px 3px rgba(13, 40, 71, 0.06);
}

.ad-main__inner--workspace {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 1.5rem 1.75rem 2.75rem;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  box-sizing: border-box;
}

.ad-main__inner--workspace .ad-page-intro {
  max-width: none;
}

.ad-main__inner--workspace .ad-page-intro--dashboard {
  margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
  padding-bottom: clamp(1rem, 2vw, 1.35rem);
}

.ad-main__inner--workspace > h1 {
  max-width: none;
}

@media (max-width: 600px) {
  .ad-main__inner {
    margin: 0.65rem;
    padding: 1.15rem 1.1rem 2rem;
  }

  .ad-main__inner--workspace {
    margin: 0;
    padding: 1rem 0.75rem 2rem;
  }

  .ad-page-intro {
    padding: 0 0.75rem 1rem;
    margin: 0 0 1rem;
  }

  .ad-page-intro h1 {
    font-size: 1.35rem;
  }

  .ad-page-intro__lead {
    font-size: 0.88rem;
  }
}

.ad-page-intro {
  margin: 0 0 1.35rem;
  padding: 0 0 1.1rem;
  border-bottom: 1px solid var(--ad-border);
  max-width: 40rem;
}

.ad-page-intro h1 {
  font-family: Merriweather, Georgia, serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ad-navy);
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.ad-page-intro__lead {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ad-muted);
  line-height: 1.5;
  font-weight: 400;
}

.ad-main__inner > h1 {
  font-family: Merriweather, Georgia, serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ad-navy);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--ad-border);
  max-width: 40rem;
}

.ad-page-footnote {
  margin: 1.35rem 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ad-muted);
  max-width: 40rem;
}

.ad-page-footnote--dashboard {
  max-width: 40rem;
  margin-top: 1.65rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ad-border);
  font-size: 0.8125rem;
}

.ad-dash {
  margin: 0;
}

.ad-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 11.5rem), 1fr));
  gap: 0.5rem 0.65rem;
  margin: 0 0 0.25rem;
}

.ad-metric-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 6.5rem;
  padding: 0.85rem 0.9rem 0.8rem;
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
  background: var(--ad-card);
  border: 1px solid var(--ad-border);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(13, 40, 71, 0.04);
  transition:
    border-color 0.12s ease,
    background 0.12s ease,
    box-shadow 0.12s ease;
}

.ad-metric-card:hover {
  background: #fafcfd;
  border-color: #c5d0db;
  box-shadow: 0 2px 8px rgba(13, 40, 71, 0.06);
}

.ad-metric-card:focus-visible {
  outline: 2px solid var(--ad-blue);
  outline-offset: 2px;
}

.ad-metric-card--accent {
  background: #fcfaf8;
  border-color: var(--ad-border);
  box-shadow:
    0 1px 2px rgba(13, 40, 71, 0.04),
    inset 0 0 0 1px rgba(232, 93, 28, 0.07);
}

.ad-metric-card--accent:hover {
  background: #faf6f3;
  border-color: #c5d0db;
  box-shadow:
    0 2px 8px rgba(13, 40, 71, 0.06),
    inset 0 0 0 1px rgba(232, 93, 28, 0.1);
}

.ad-metric-card__eyebrow {
  order: 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ad-muted);
  margin: 0 0 0.15rem;
}

.ad-metric-card__label {
  order: 1;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ad-muted);
  line-height: 1.3;
}

.ad-metric-card__value {
  order: 2;
  margin: 0.2rem 0 0;
  font-size: clamp(1.5rem, 3.2vw, 1.95rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  color: var(--ad-navy);
  letter-spacing: -0.02em;
}

.ad-metric-card__meta {
  order: 3;
  margin-top: auto;
  padding-top: 0.45rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ad-muted);
  line-height: 1.35;
}

.ad-dash-quick {
  margin-top: clamp(1.35rem, 2.5vw, 1.75rem);
  padding-top: 1.15rem;
  border-top: 1px solid var(--ad-border);
}

.ad-dash-quick--solo {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.ad-dash-quick__title {
  margin: 0 0 0.65rem;
  font-family: "Open Sans", system-ui, "Segoe UI", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ad-muted);
}

.ad-dash-quick__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.5rem;
}

.ad-dash-quick__link {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ad-text);
  text-decoration: none;
  background: var(--ad-card);
  border-radius: 2px;
  border: 1px solid var(--ad-border);
  transition:
    border-color 0.1s ease,
    color 0.1s ease,
    background 0.1s ease;
}

.ad-dash-quick__link:hover {
  border-color: var(--ad-blue);
  color: var(--ad-navy);
  background: var(--ad-card);
}

.ad-stat-sheet {
  background: var(--ad-card);
  border: 1px solid var(--ad-border);
  border-radius: 2px;
  max-width: 28rem;
  overflow: hidden;
}

.ad-stat-sheet__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.ad-stat-sheet__table th,
.ad-stat-sheet__table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--ad-border);
  vertical-align: baseline;
}

.ad-stat-sheet__table tr:last-child th,
.ad-stat-sheet__table tr:last-child td {
  border-bottom: none;
}

.ad-stat-sheet__table th {
  text-align: left;
  font-weight: 600;
  color: var(--ad-text);
}

.ad-stat-sheet__table td {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ad-blue);
}

.ad-flash {
  padding: 0.75rem 1rem;
  margin: 0 0 1.15rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
}

.ad-flash--ok {
  background: #e6f4ea;
  color: #0d4f1c;
  border: 1px solid #a8d5b5;
}

.ad-flash--err {
  background: #fdecee;
  color: #9b1c2e;
  border: 1px solid #f5c2c7;
}

.ad-subhead {
  font-family: Merriweather, Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ad-navy);
  margin: 1.5rem 0 0.5rem;
  letter-spacing: -0.02em;
}

.ad-form-actions {
  margin-top: 1rem;
}

.ad-form--narrow {
  max-width: 28rem;
}

.ad-profile-extra {
  margin-top: 1rem;
}

.ad-form--inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.ad-form--inline select {
  width: auto;
  min-width: 10rem;
  margin: 0;
}

.ad-form--inline input[type="password"] {
  flex: 1;
  min-width: 8rem;
  max-width: 14rem;
  margin: 0;
}

.ad-table--users .ad-form--inline .ad-btn {
  flex-shrink: 0;
}

.ad-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ad-table-wrap .ad-lead-actions {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

@media (max-width: 700px) {
  .ad-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .ad-table-wrap > .ad-table,
  .ad-table-wrap > table {
    width: 100%;
  }

  .ad-main__inner--workspace {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .ad-form--inline {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
  }

  .ad-form--inline select,
  .ad-form--inline input[type="password"] {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .ad-form--inline .ad-btn {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  /* Users table card layout */
  .ad-table--users thead {
    display: none;
  }

  .ad-table--users,
  .ad-table--users tbody,
  .ad-table--users tr,
  .ad-table--users td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .ad-table--users tr {
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid var(--ad-border);
  }

  .ad-table--users tr:last-child {
    border-bottom: none;
  }

  .ad-table--users td {
    padding: 0.35rem 0;
    text-align: left !important;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
  }

  .ad-table--users td:not(:last-child) {
    border-bottom: 1px solid rgba(213, 222, 232, 0.5);
    margin-bottom: 0.35rem;
    padding-bottom: 0.35rem;
  }

  /* Newsletter card layout */
  .ad-table--newsletter thead {
    display: none;
  }

  .ad-table--newsletter,
  .ad-table--newsletter tbody,
  .ad-table--newsletter tr,
  .ad-table--newsletter td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .ad-table--newsletter tr {
    padding: 0.85rem;
    margin-bottom: 0.75rem;
    border: 1px solid var(--ad-border);
    border-radius: 8px;
    background: var(--ad-card);
    box-shadow: 0 1px 2px rgba(13, 40, 71, 0.04);
  }

  .ad-table--newsletter tr:last-child {
    border-bottom: 1px solid var(--ad-border);
    margin-bottom: 0;
  }

  .ad-table--newsletter td {
    padding: 0.35rem 0;
    text-align: left !important;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
  }

  .ad-table--newsletter td:not(:last-child) {
    border-bottom: 1px solid rgba(213, 222, 232, 0.5);
    margin-bottom: 0.35rem;
    padding-bottom: 0.35rem;
  }

  .ad-newsletter-card__email {
    font-weight: 700;
    font-size: 0.95rem;
  }

  .ad-newsletter-card__email a {
    color: var(--ad-blue);
    text-decoration: none;
  }

  .ad-newsletter-card__email a:hover {
    text-decoration: underline;
  }

  .ad-newsletter-card__source {
    color: var(--ad-muted);
    font-size: 0.85rem;
  }

  .ad-newsletter-card__date {
    color: var(--ad-muted);
    font-size: 0.82rem;
    font-variant-numeric: tabular-nums;
  }

  .ad-newsletter-card__deleted {
    color: #9b1c2e;
    font-size: 0.82rem;
  }

  .ad-newsletter-card__actions {
    padding-top: 0.65rem !important;
    border-top: 1px solid rgba(213, 222, 232, 0.6);
    margin-top: 0.5rem;
  }

  .ad-newsletter-card__actions .ad-btn {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
    margin-bottom: 0.35rem;
  }

  .ad-newsletter-card__actions .ad-btn:last-child {
    margin-bottom: 0;
  }

  /* Leads - card layout on mobile */
  .ad-table--leads thead {
    display: none;
  }

  .ad-table--leads,
  .ad-table--leads tbody,
  .ad-table--leads tr,
  .ad-table--leads td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .ad-table--leads tr {
    padding: 0.85rem;
    margin-bottom: 0.75rem;
    border: 1px solid var(--ad-border);
    border-radius: 8px;
    background: var(--ad-card);
    box-shadow: 0 1px 2px rgba(13, 40, 71, 0.04);
  }

  .ad-table--leads tr:last-child {
    border-bottom: 1px solid var(--ad-border);
    margin-bottom: 0;
  }

  .ad-table--leads tr.unread {
    background: #fff8e9;
    border-left: 3px solid var(--ad-gold);
  }

  .ad-table--leads td {
    padding: 0.35rem 0;
    text-align: left !important;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
  }

  .ad-table--leads td:not(:last-child) {
    border-bottom: 1px solid rgba(213, 222, 232, 0.5);
    margin-bottom: 0.35rem;
    padding-bottom: 0.35rem;
  }

  .ad-table--leads td:last-child {
    padding-top: 0.65rem !important;
    padding-bottom: 0.25rem !important;
    border-top: 1px solid rgba(213, 222, 232, 0.6);
    margin-top: 0.5rem;
    overflow: hidden;
  }

  .ad-table--leads td:first-child {
    color: var(--ad-muted);
    font-size: 0.82rem;
    font-variant-numeric: tabular-nums;
  }

  .ad-table--leads td:nth-child(2) {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--ad-navy);
  }

  .ad-table--leads td a {
    color: var(--ad-blue);
    text-decoration: none;
  }

  .ad-table--leads td a:hover {
    text-decoration: underline;
  }

  .ad-table--leads .ad-lead-actions {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }

  .ad-table--leads .ad-lead-actions .ad-btn,
  .ad-table--leads .ad-lead-actions button {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
    margin-bottom: 0.35rem;
  }

  .ad-table--leads .ad-lead-actions .ad-btn:last-child,
  .ad-table--leads .ad-lead-actions button:last-child {
    margin-bottom: 0;
  }

  .ad-inline {
    display: block !important;
    width: 100%;
  }

  .ad-inline .ad-btn {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  .ad-inline form {
    display: block;
    width: 100%;
  }

  .ad-lead-actions {
    display: block;
    gap: 0;
  }

  .ad-lead-actions .ad-btn {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
    margin-bottom: 0.35rem;
  }

  .ad-lead-actions .ad-btn:last-child {
    margin-bottom: 0;
  }

  .ad-lead-actions .ad-inline {
    display: block;
    margin-bottom: 0.35rem;
  }

  .ad-lead-actions .ad-inline:last-child {
    margin-bottom: 0;
  }
}

.ad-users-matrix {
  margin-bottom: 1.5rem;
}

.ad-users-matrix__h {
  margin-top: 0;
}

.ad-users-matrix__list {
  margin: 0.65rem 0 0;
  padding-left: 1.15rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ad-text);
}

.ad-users-matrix__list li {
  margin-bottom: 0.45rem;
}

.ad-profile-photo {
  margin: 0.75rem 0 1rem;
}

.ad-profile-photo__img {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ad-border);
  box-shadow: 0 2px 8px rgba(13, 40, 71, 0.08);
}

.ad-profile-photo__placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--ad-navy), var(--ad-blue));
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.ad-form--photo {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--ad-border);
}

.ad-form__checkbox-wrap {
  margin: 0.65rem 0 0;
}

.ad-form__inline-check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}

.ad-user-menu__avatar--photo {
  padding: 0;
  overflow: hidden;
  background: transparent;
}

.ad-user-menu__avatar--photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ad-inline {
  display: inline;
  margin: 0;
}

.ad-form label {
  display: block;
  font-weight: 600;
  margin-top: 0.65rem;
  font-size: 0.88rem;
  color: var(--ad-text);
}

.ad-form label:first-child,
.ad-form > label:first-of-type {
  margin-top: 0;
}

.ad-form input,
.ad-form textarea,
.ad-form select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 0.65rem;
  margin-bottom: 0.4rem;
  border: 1px solid var(--ad-border);
  border-radius: 8px;
  font: inherit;
  font-size: 0.95rem;
  background: #fff;
}

.ad-form input:focus,
.ad-form textarea:focus,
.ad-form select:focus {
  outline: none;
  border-color: var(--ad-accent);
  box-shadow: 0 0 0 2px rgba(43, 140, 190, 0.22);
}

.ad-form fieldset {
  border: 1px solid var(--ad-border);
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  border-radius: 4px;
  background: var(--ad-card);
}

.ad-form legend {
  font-weight: 700;
  padding: 0 0.5rem;
  font-family: Merriweather, Georgia, serif;
}

.ad-page-intro--pages {
  max-width: 42rem;
  margin-bottom: 1.25rem;
}

.ad-pages-editor-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ad-page-intro--services {
  margin-bottom: 1.25rem;
}

.ad-page-intro--team {
  margin-bottom: 1.25rem;
}

.ad-page-intro--cases {
  margin-bottom: 1.25rem;
}

.ad-page-intro--posts {
  margin-bottom: 1.25rem;
}

.ad-page-intro--events {
  margin-bottom: 1.25rem;
}

.ad-nav-pagehead {
  margin-bottom: 0.35rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--ad-border);
}

.ad-nav-pagehead__title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 2.5vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ad-navy);
}

.ad-nav-pagehead__sub {
  margin: 0;
  max-width: 34rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ad-muted);
}

.ad-nav-tabs {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0;
  width: 100%;
  max-width: none;
  margin-top: 0.5rem;
  border-bottom: 1px solid var(--ad-border);
}

.ad-nav-tabs > .ad-nav-tabs__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ad-nav-tabs__tab {
  flex: 0 0 auto;
  cursor: pointer;
  padding: 0.6rem 1rem;
  margin-bottom: -1px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ad-muted);
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  white-space: nowrap;
  transition:
    color 0.1s ease,
    border-color 0.1s ease;
}

.ad-nav-tabs__tab:hover {
  color: var(--ad-text);
}

.ad-nav-tabs__input:focus + .ad-nav-tabs__tab {
  outline: 2px solid var(--ad-blue);
  outline-offset: 2px;
  border-radius: 2px;
}

.ad-nav-tabs__input:checked + .ad-nav-tabs__tab {
  color: var(--ad-navy);
  font-weight: 600;
  border-bottom-color: var(--ad-navy);
}

.ad-nav-tabs__panels {
  flex: 1 1 100%;
  width: 100%;
  padding: 1.15rem 0 0;
}

.ad-nav-tabs__panel {
  display: none;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: none;
}

.ad-nav-tabs__form {
  margin: 0;
  padding: 1.15rem 1.2rem 1.2rem;
  border: 1px solid var(--ad-border);
  border-radius: 0 4px 4px 4px;
  background: var(--ad-card);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}

/* Events admin: use full main column width (base .ad-nav-tabs__form is 40rem for nav links). */
.ad-nav-tabs__form--events {
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}

.ad-nav-tabs__form--services {
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}

.ad-nav-tabs--services {
  width: 100%;
}

.ad-svc-list-card {
  border: 1px solid var(--ad-border);
  border-radius: 8px;
  background: var(--ad-card);
  overflow: hidden;
}

.ad-svc-list-card__help {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--ad-muted);
}

.ad-svc-list-card__empty {
  margin: 0;
}

.ad-wp-list-table-wrap {
  border: 1px solid var(--ad-border);
  border-radius: 8px;
  background: var(--ad-card);
}

.ad-wp-list-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.ad-wp-list-table th,
.ad-wp-list-table td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--ad-border);
}

.ad-wp-list-table thead th {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ad-muted);
  background: #f4f7fa;
}

.ad-wp-list-table tbody tr:last-child td {
  border-bottom: none;
}

.ad-wp-list-table tbody tr:hover {
  background: rgba(26, 95, 158, 0.04);
}

.ad-wp-list-table__th-thumb {
  width: 5.5rem;
  max-width: 5.5rem;
}

.ad-wp-list-table__th-slug {
}

.ad-wp-list-table__th-num {
  width: 3.5rem;
  max-width: 3.5rem;
  text-align: center;
}

.ad-wp-list-table__th-actions {
  width: 1%;
  white-space: nowrap;
}

.ad-wp-list-table__slug {
  font-size: 0.8rem;
  color: var(--ad-muted);
}

.ad-wp-list-table__num {
  font-variant-numeric: tabular-nums;
}

.ad-wp-list-table__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.5rem;
}

.ad-svc-thumb {
  display: block;
  overflow: hidden;
  line-height: 0;
  border: 1px solid var(--ad-border);
  border-radius: 6px;
}

.ad-svc-thumb img {
  display: block;
}

.ad-svc-inline-form {
  display: inline-block;
  margin: 0;
  vertical-align: middle;
}

.ad-svc-edit-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem 1.25rem;
  margin: 0 0 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--ad-border);
}

.ad-svc-edit-head__thumb {
  flex-shrink: 0;
  overflow: hidden;
  line-height: 0;
  border: 1px solid var(--ad-border);
  border-radius: 8px;
}

.ad-svc-edit-head__text {
  flex: 1;
  min-width: 12rem;
}

.ad-svc-image-preview {
  margin-bottom: 0.75rem;
  border: 1px solid var(--ad-border);
  border-radius: 8px;
  padding: 0.75rem;
  background: var(--ad-bg-subtle);
}

.ad-svc-image-preview img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.ad-home-sec-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 56px;
  background: var(--ad-bg-subtle);
  color: var(--ad-text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 6px;
  border: 1px dashed var(--ad-border);
}

.ad-nav-tabs__form--sections {
  max-width: none;
  width: 100%;
  box-sizing: border-box;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ad-nav-tabs__form--team {
  max-width: none;
  width: 100%;
  box-sizing: border-box;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ad-nav-tabs__form--cases {
  max-width: none;
  width: 100%;
  box-sizing: border-box;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ad-nav-tabs__form--posts {
  max-width: none;
  width: 100%;
  box-sizing: border-box;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ad-case-thumb-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 56px;
  color: var(--ad-muted);
}

.ad-btn--small {
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
}

.ad-posts-search-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  margin-bottom: 0;
  background: var(--ad-card);
  border-bottom: 1px solid var(--ad-border);
}

.ad-posts-search-bar svg {
  color: var(--ad-muted);
  flex-shrink: 0;
}

.ad-posts-search-input {
  width: 100%;
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--ad-border);
  border-radius: 6px;
  font: inherit;
  font-size: 0.85rem;
  background: #fff;
}

.ad-posts-search-input:focus {
  outline: none;
  border-color: var(--ad-blue);
  box-shadow: 0 0 0 2px rgba(26, 95, 158, 0.12);
}

.ad-posts-no-results {
  padding: 1rem 0.75rem;
  text-align: center;
  font-size: 0.88rem;
}

/* ── Posts table: mobile card layout ───────────────────────── */
@media (max-width: 600px) {
  .ad-wp-list-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .ad-wp-list-table thead {
    display: none;
  }

  .ad-wp-list-table tbody tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem 0.65rem;
    padding: 0.7rem 0.75rem;
    border-bottom: 1px solid var(--ad-border);
  }

  .ad-wp-list-table tbody tr:last-child {
    border-bottom: none;
  }

  .ad-wp-list-table tbody td {
    padding: 0;
    border: none;
    display: block;
  }

  .ad-wp-list-table__td-thumb {
    flex: 0 0 auto;
    align-self: flex-start;
  }

  .ad-wp-list-table__td-title {
    flex: 1 1 6rem;
    font-size: 0.875rem;
  }

  .ad-wp-list-table__slug,
  .ad-wp-list-table__num {
    display: none;
  }

  .ad-wp-list-table__td-status {
    flex: 0 0 auto;
    margin-left: auto;
    align-self: flex-start;
  }

  .ad-wp-list-table__actions {
    flex: 1 1 100%;
    padding: 0;
    border: none;
    margin-top: 0.1rem;
  }
}

.ad-nav-tabs__form--pages {
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}

.ad-event-tab-meta {
  margin: -0.35rem 0 1rem;
}

.ad-page-tab-meta {
  margin: -0.35rem 0 1rem;
}

.ad-nav-tabs__form-title {
  margin: 0 0 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ad-muted);
}

.ad-nav-tabs__form-title--muted {
  text-transform: none;
  letter-spacing: -0.01em;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ad-navy);
}

.ad-nav-form__fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  max-width: none;
  width: 100%;
}

@media (min-width: 560px) {
  .ad-nav-form__fields {
    grid-template-columns: 1fr 1fr 10rem;
    gap: 0.85rem 1rem;
  }

  .ad-nav-form__field--narrow {
    max-width: none;
    align-self: end;
  }

  .ad-nav-form__field--check {
    grid-column: 1 / -1;
    align-self: end;
    padding-top: 0.15rem;
  }
}

.ad-nav-form__field label {
  display: block;
  margin: 0 0 0.28rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ad-muted);
}

.ad-nav-form__field input[type="text"],
.ad-nav-form__field input[type="number"],
.ad-nav-form__field input:not([type]) {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.ad-nav-form__field .ad-page-edit__check {
  margin: 0;
}

.ad-nav-tabs__form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ad-border);
}

.ad-nav-tabs__form-actions--split {
  justify-content: space-between;
}

@media (max-width: 480px) {
  .ad-nav-tabs__form-actions--split {
    flex-direction: column;
    align-items: stretch;
  }

  .ad-nav-tabs__form-actions--split .ad-btn {
    width: 100%;
    justify-content: center;
  }

  /* Newsletter nav buttons */
  .ad-page-intro > nav > div {
    flex-direction: column;
    gap: 0.5rem !important;
  }

  .ad-page-intro > nav .ad-btn {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
}

.ad-events-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: none;
}

.ad-posts-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: none;
}

.ad-cases-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: none;
}

.ad-team-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: none;
}

.ad-team-panel__meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--ad-muted);
}

.ad-team-panel__role {
  font-weight: 600;
  color: var(--ad-text);
}

.ad-team-photo-wrap {
  margin: 0 0 0.85rem;
}

.ad-team-photo-preview {
  display: block;
  width: 7.5rem;
  height: 7.5rem;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--ad-border);
}

.ad-services-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: none;
}

.ad-service-card--new {
  border-left: 3px solid var(--ad-blue);
}

.ad-page-edit__grid--single {
  grid-template-columns: 1fr;
  max-width: 100%;
  width: 100%;
}

.ad-page-edit__grid--single .ad-page-edit__main {
  max-width: none;
  width: 100%;
}

.ad-page-edit__head--stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

.ad-service-meta-line {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.82rem;
  line-height: 1.35;
}

.ad-page-edit__meta-sep {
  color: var(--ad-border);
  font-weight: 400;
  user-select: none;
}

.ad-service-public-link {
  font-weight: 600;
  color: var(--ad-blue);
  text-decoration: none;
}

.ad-service-public-link:hover {
  text-decoration: underline;
}

.ad-service-card__body {
  padding: 1.15rem;
}

.ad-service-card__body label:first-of-type {
  margin-top: 0;
}

.ad-form-actions--split {
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

@media (max-width: 520px) {
  .ad-form-actions--split {
    flex-direction: column;
    align-items: stretch;
  }
}

.ad-page-edit {
  margin: 0;
  padding: 0;
  border: 1px solid var(--ad-border);
  border-radius: 10px;
  background: var(--ad-card);
  box-shadow: 0 1px 3px rgba(13, 40, 71, 0.05);
  overflow: hidden;
  max-width: 100%;
}

.ad-page-edit__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1rem;
  padding: 0.95rem 1.15rem;
  background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
  border-bottom: 1px solid var(--ad-border);
}

.ad-page-edit__title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ad-navy);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.ad-page-edit__slug {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ad-muted);
}

.ad-page-edit__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(20rem, 32%);
  gap: 1.25rem 1.5rem;
  padding: 1.15rem;
  align-items: start;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .ad-page-edit__grid {
    grid-template-columns: 1fr;
  }

  .ad-page-edit__side {
    padding-top: 1rem;
    border-top: 1px solid var(--ad-border);
  }
}

.ad-page-edit__main label:first-of-type {
  margin-top: 0;
}

.ad-page-edit__side label:first-of-type {
  margin-top: 0;
}

.ad-page-edit__side {
  padding-left: 0;
  border-left: none;
}

@media (min-width: 901px) {
  .ad-page-edit__side {
    padding-left: 1.25rem;
    border-left: 1px solid var(--ad-border);
    margin-left: 0;
  }
}

.ad-page-edit__check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 1rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ad-text);
  cursor: pointer;
  user-select: none;
}

.ad-page-edit__check input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--ad-blue);
}

.ad-form-actions--page {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 1rem 1.15rem;
  background: var(--ad-bg);
  border-top: 1px solid var(--ad-border);
}

.ad-form-actions--page .ad-btn {
  margin: 0;
  padding: 0.55rem 1.15rem;
  font-size: 0.9rem;
}

.ad-wysiwyg-field-label {
  display: block;
  font-weight: 600;
  margin-top: 0.65rem;
  font-size: 0.88rem;
  color: var(--ad-text);
}

.ad-wysiwyg {
  margin-bottom: 0.35rem;
}

.ad-wysiwyg:not(.ad-wysiwyg--ready) .ad-wysiwyg-visual,
.ad-wysiwyg:not(.ad-wysiwyg--ready) .ad-wysiwyg-top {
  display: none;
}

.ad-wysiwyg:not(.ad-wysiwyg--ready) .ad-wysiwyg-store {
  display: block !important;
  min-height: 320px;
}

.ad-wysiwyg-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.45rem;
}

.ad-wysiwyg-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem;
  padding: 0.35rem 0.45rem;
  background: var(--ad-bg);
  border: 1px solid var(--ad-border);
  border-radius: 8px;
  max-width: 100%;
}

.ad-wysiwyg--html .ad-wysiwyg-toolbar {
  opacity: 0.5;
  pointer-events: none;
}

.ad-wysiwyg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.35rem;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #fff;
  color: var(--ad-navy);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1;
  transition:
    background 0.1s ease,
    border-color 0.1s ease;
}

.ad-wysiwyg-btn:hover {
  background: #eef2f6;
  border-color: var(--ad-border);
}

.ad-wysiwyg-btn:active {
  background: #e2e8f0;
}

.ad-wysiwyg-sep {
  display: inline-block;
  width: 1px;
  height: 1.25rem;
  margin: 0 0.15rem;
  background: var(--ad-border);
  vertical-align: middle;
}

.ad-wysiwyg-mode {
  flex-shrink: 0;
  font-size: 0.82rem !important;
  padding: 0.4rem 0.75rem !important;
}

.ad-wysiwyg-visual {
  border: 1px solid var(--ad-border);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.ad-wysiwyg-editor {
  min-height: min(420px, 55vh);
  max-height: 70vh;
  overflow: auto;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ad-text);
  outline: none;
}

.ad-wysiwyg-editor:focus {
  box-shadow: inset 0 0 0 2px rgba(43, 140, 190, 0.25);
}

.ad-wysiwyg--html .ad-wysiwyg-visual {
  display: none;
}

.ad-wysiwyg-store {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: min(480px, 65vh);
  margin: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--ad-border);
  border-radius: 8px;
  font-size: 0.82rem;
  line-height: 1.45;
  resize: vertical;
}

.ad-wysiwyg--visual .ad-wysiwyg-store[hidden] {
  display: none !important;
}

.ad-page-intro--sections {
  max-width: 40rem;
  margin-bottom: 1.5rem;
}

.ad-page-intro__cta {
  margin: 0.85rem 0 0;
}

.ad-page-intro__cta .ad-btn {
  text-decoration: none;
}

.ad-page-intro__hint {
  margin: 0.65rem 0 0;
  max-width: 40rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--ad-muted);
}

.ad-main__inner--workspace .ad-page-intro__hint {
  max-width: none;
}

.ad-service-panel {
  margin: 0;
  padding: 0;
  border: none;
}

.ad-service-panel__summary {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem 0.75rem;
  margin: 0;
  padding: 0.95rem 1.15rem;
  background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
  border-bottom: 1px solid var(--ad-border);
  cursor: pointer;
  list-style: none;
  box-sizing: border-box;
}

.ad-service-panel__summary::-webkit-details-marker {
  display: none;
}

.ad-service-panel:not([open]) > .ad-service-panel__summary {
  border-bottom: none;
}

.ad-service-panel__chev {
  flex-shrink: 0;
  width: 0.45rem;
  height: 0.45rem;
  margin-top: 0.45rem;
  border-right: 2px solid var(--ad-navy);
  border-bottom: 2px solid var(--ad-navy);
  transform: rotate(-135deg);
  opacity: 0.55;
  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
}

.ad-service-panel[open] .ad-service-panel__chev {
  transform: rotate(45deg);
  margin-top: 0.55rem;
}

.ad-service-panel__summary:hover .ad-service-panel__chev {
  opacity: 0.9;
}

.ad-service-panel__summary-text {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  flex: 1;
}

.ad-service-panel__title {
  font-size: 1.08rem;
}

.ad-service-panel__meta {
  margin: 0;
}

.ad-service-panel__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.1rem;
}

.ad-service-panel__tag {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  border: 1px solid var(--ad-border);
  background: var(--ad-bg);
  color: var(--ad-muted);
}

.ad-service-panel__tag--ok {
  color: #0d5c2e;
  background: rgba(13, 92, 46, 0.08);
  border-color: rgba(13, 92, 46, 0.28);
}

.ad-service-panel__tag--off {
  color: var(--ad-muted);
}

.ad-service-panel__inner {
  display: block;
}

.ad-service-panel__expand-hint {
  margin-top: 0;
  margin-bottom: 0.85rem;
}

.ad-form-actions--home-sections-save {
  margin-top: 1.25rem;
}

.ad-home-sections {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  max-width: none;
}

.ad-home-sec {
  border: 1px solid var(--ad-border);
  border-radius: 10px;
  background: var(--ad-card);
  box-shadow: 0 1px 3px rgba(13, 40, 71, 0.05);
  overflow: hidden;
}

.ad-home-sec-panel {
  margin: 0;
  padding: 0;
  border: none;
}

.ad-home-sec-panel__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.6rem 1rem;
  margin: 0;
  padding: 1rem 1.15rem;
  background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
  border-bottom: 1px solid var(--ad-border);
  cursor: pointer;
  list-style: none;
  box-sizing: border-box;
}

.ad-home-sec-panel__summary::-webkit-details-marker {
  display: none;
}

.ad-home-sec-panel:not([open]) > .ad-home-sec-panel__summary {
  border-bottom: none;
}

.ad-home-sec-panel__chev {
  flex-shrink: 0;
  width: 0.45rem;
  height: 0.45rem;
  margin-top: 0.5rem;
  border-right: 2px solid var(--ad-navy);
  border-bottom: 2px solid var(--ad-navy);
  transform: rotate(-135deg);
  opacity: 0.55;
  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
}

.ad-home-sec-panel[open] .ad-home-sec-panel__chev {
  transform: rotate(45deg);
  margin-top: 0.6rem;
}

.ad-home-sec-panel__summary:hover .ad-home-sec-panel__chev {
  opacity: 0.9;
}

.ad-home-sec-panel__summary-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ad-home-sec-panel__title {
  font-size: 1.05rem;
}

.ad-home-sec-panel__meta {
  margin: 0;
  font-size: 0.75rem;
  color: var(--ad-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.4rem;
}

.ad-home-sec-panel__tags {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.ad-home-sec-panel__inner {
  display: block;
}

.ad-home-sec-panel__expand-hint {
  margin-top: 0;
  margin-bottom: 0.85rem;
}

.ad-home-sec__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ad-navy);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.ad-home-sec__meta {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: var(--ad-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}

.ad-home-sec__badge {
  font-family: ui-monospace, monospace;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  background: var(--ad-bg);
  border: 1px solid var(--ad-border);
  color: var(--ad-muted);
}

.ad-home-sec__meta-sep {
  opacity: 0.5;
}

.ad-home-sec__publish {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  margin-left: auto;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ad-text);
  cursor: pointer;
  user-select: none;
}

@media (max-width: 540px) {
  .ad-home-sec__publish {
    margin-left: 0;
    flex-basis: 100%;
  }
}

.ad-home-sec__publish input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--ad-blue);
}

.ad-home-sec__body {
  padding: 1rem 1.15rem 1.15rem;
}

.ad-home-sec__row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
}

@media (max-width: 560px) {
  .ad-home-sec__row2 {
    grid-template-columns: 1fr;
  }
}

.ad-hint {
  margin: 0 0 0.65rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--ad-muted);
}

.ad-hint--tight {
  margin-bottom: 0.4rem;
}

.ad-details {
  margin-top: 0.85rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--ad-border);
  border-radius: 8px;
  background: var(--ad-bg);
}

.ad-details--subtle {
  margin-top: 1rem;
  background: #fafcfd;
}

.ad-details summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ad-navy);
  list-style-position: outside;
  padding: 0.15rem 0;
}

.ad-details summary::-webkit-details-marker {
  color: var(--ad-muted);
}

.ad-details[open] summary {
  margin-bottom: 0.5rem;
}

.ad-details .ad-hint {
  margin-top: 0.25rem;
}

.ad-details textarea.mono {
  margin-bottom: 0;
}

.ad-box {
  border: 1px solid var(--ad-border);
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
  border-radius: 4px;
  background: var(--ad-card);
}

.mono {
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
}

button {
  cursor: pointer;
}

.ad-btn {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  background: var(--ad-blue);
  color: #fff;
  text-decoration: none;
  transition: background 0.15s ease;
}

.ad-btn:hover {
  background: var(--ad-navy);
}

.ad-btn--secondary {
  background: #fff;
  color: var(--ad-navy);
  border: 1px solid var(--ad-border);
}

.ad-btn--secondary:hover {
  background: #f0f4f8;
}

.ad-btn--danger {
  background: #fff;
  color: #9b1c2e;
  border: 1px solid #e7bcc4;
}

.ad-btn--danger:hover {
  background: #fef5f6;
}

.ad-btn--sidebar-out {
  width: 100%;
  background: #fff;
  color: var(--ad-navy);
  border: 1px solid var(--ad-border);
  font-weight: 600;
}

.ad-btn--sidebar-out:hover {
  background: #faf8f5;
  color: var(--ad-navy);
}

.danger {
  background: #b00020;
  color: #fff;
  border: 0;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  font-weight: 600;
}

.ok {
  color: #0a6;
}

.muted {
  color: var(--ad-muted);
}

.small {
  font-size: 0.88rem;
}

.ad-table-wrap {
  overflow-x: auto;
  border-radius: 4px;
  border: 1px solid var(--ad-border);
  background: var(--ad-card);
}

.ad-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--ad-card);
}

.ad-table th,
.ad-table td {
  border-bottom: 1px solid var(--ad-border);
  padding: 0.65rem 0.85rem;
  text-align: left;
  vertical-align: top;
  font-size: 0.88rem;
}

.ad-table th {
  background: #f4f7fa;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ad-muted);
}

.ad-table tbody tr:last-child td {
  border-bottom: none;
}

.ad-table tr.unread {
  background: #fff8e9;
}

.ad-table tbody tr:target {
  background: rgba(26, 95, 158, 0.09);
  scroll-margin-top: 1rem;
}

@media (min-width: 901px) {
  .ad-workspace__chrome {
    display: flex;
  }
}

@media (max-width: 900px) {
  .ad-app-wrap {
    position: relative;
  }

  .ad-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    height: 100dvh;
    max-height: 100dvh;
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.18);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .ad-sidebar-check:checked ~ .ad-sidebar {
    transform: translateX(0);
  }

  .ad-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 150;
    background: rgba(13, 40, 71, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  .ad-sidebar-check:checked ~ .ad-scrim {
    opacity: 1;
    pointer-events: auto;
  }

  .ad-sidebar__close {
    display: inline-flex;
  }

  .ad-topbar {
    display: flex;
  }

  .ad-workspace {
    width: 100%;
  }
}
