/* Desktop quick menu + services consistency fixes
   Loaded last so it only repairs the latest regressions without changing blog/mobile nav. */

.a2t-desktop-more {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.a2t-desktop-more-toggle {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--a2t-line, #e5e7eb);
  background: var(--a2t-surface, #fff);
  color: var(--a2t-text, #07111f);
  display: inline-grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.a2t-desktop-more-toggle:hover,
.a2t-desktop-more-toggle:focus-visible,
.a2t-desktop-more.is-open .a2t-desktop-more-toggle {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, .35);
  box-shadow: 0 16px 34px rgba(37, 99, 235, .15);
  outline: none;
}

.a2t-desktop-more-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  z-index: 1300;
  width: 286px;
  padding: 10px;
  border: 1px solid var(--a2t-line, #e5eaf2);
  border-radius: 22px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 28px 80px rgba(15, 23, 42, .16);
  backdrop-filter: blur(16px);
}

.a2t-desktop-more-menu::before {
  content: "";
  position: absolute;
  right: 16px;
  top: -7px;
  width: 14px;
  height: 14px;
  transform: rotate(45deg);
  border-left: 1px solid var(--a2t-line, #e5eaf2);
  border-top: 1px solid var(--a2t-line, #e5eaf2);
  background: inherit;
}

.a2t-desktop-more-item {
  width: 100%;
  min-height: 60px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--a2t-text, #07111f);
  text-align: left;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
}

.a2t-desktop-more-item:hover,
.a2t-desktop-more-item:focus-visible {
  background: #f3f7ff;
  color: #155dfc;
  outline: none;
}

.a2t-desktop-more-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #edf4ff;
  color: #155dfc;
  font-weight: 950;
}

.a2t-desktop-more-avatar {
  background: #07111f;
  color: #fff;
}

.a2t-desktop-more-item strong,
.a2t-desktop-more-item small {
  display: block;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.a2t-desktop-more-item strong {
  font-size: 14px;
  font-weight: 950;
  letter-spacing: -.02em;
}

.a2t-desktop-more-item small {
  margin-top: 3px;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.a2t-menu-theme-toggle {
  appearance: none;
}

.a2t-mobile-theme-toggle {
  display: none !important;
}

@media (max-width: 760px) {
  .a2t-desktop-more {
    display: none !important;
  }

  .a2t-mobile-theme-toggle {
    display: inline-grid !important;
  }
}

/* Remove the desktop services left rail now that cart/profile/theme live in the quick menu. */
.a2t-requests-page .a2t-service-sidebar,
.a2t-requests-page .a2t-client-nav.a2t-service-sidebar,
.a2t-requests-page .a2t-requests-sidebar {
  display: none !important;
}

.a2t-requests-page .a2t-client-portal-layout,
.a2t-requests-layout {
  grid-template-columns: minmax(0, 1fr) !important;
  width: min(1180px, calc(100vw - 72px)) !important;
  max-width: calc(100vw - 72px) !important;
  gap: 0 !important;
}

.a2t-requests-page .a2t-client-dashboard-main,
.a2t-requests-main {
  width: 100% !important;
  max-width: 100% !important;
}

.a2t-requests-brief {
  margin: 0 0 22px;
  padding: 22px;
  border: 1px solid var(--a2t-line, #e5eaf2);
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, .12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 251, 255, .96));
  box-shadow: 0 20px 55px rgba(15, 23, 42, .07);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}

.a2t-requests-brief h1 {
  margin: 8px 0 8px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: .98;
  letter-spacing: -.06em;
  font-weight: 950;
  color: var(--a2t-text, #07111f);
}

.a2t-requests-brief p {
  max-width: 640px;
  margin: 0;
  color: #5d6b82;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 650;
}

.a2t-requests-brief-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.a2t-requests-start {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  background: #07111f;
  color: #fff !important;
  font-weight: 950;
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(15, 23, 42, .16);
}

.a2t-requests-brief .a2t-requests-notification {
  min-height: 46px;
  padding: 0 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.a2t-requests-brief .a2t-requests-notification strong[hidden] {
  display: none !important;
}

.a2t-requests-brief-strip {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}

.a2t-requests-brief-strip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #dde7f5;
  background: rgba(255, 255, 255, .78);
  color: #5d6b82;
  font-size: 12px;
  font-weight: 900;
}

.a2t-requests-brief-strip strong {
  color: #155dfc;
}

/* Make notification count reflect zero cleanly wherever the shared controller hides it. */
[data-notification-count][hidden],
[data-notification-modal-count][hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  .a2t-requests-page .a2t-client-portal-layout,
  .a2t-requests-layout {
    width: 100% !important;
    max-width: 100% !important;
  }

  .a2t-requests-brief {
    margin: 0 0 16px;
    padding: 16px;
    border-radius: 22px;
    grid-template-columns: 1fr;
  }

  .a2t-requests-brief-actions {
    justify-content: stretch;
  }

  .a2t-requests-brief .a2t-requests-notification,
  .a2t-requests-start {
    flex: 1 1 150px;
  }

  .a2t-requests-brief h1 {
    font-size: 30px;
  }

  .a2t-requests-brief p {
    font-size: 14px;
  }
}

html[data-theme="dark"] .a2t-desktop-more-toggle,
body.dark-mode .a2t-desktop-more-toggle,
body.dark .a2t-desktop-more-toggle {
  background: #0f172a;
  color: #f8fafc;
  border-color: rgba(148, 163, 184, .22);
}

html[data-theme="dark"] .a2t-desktop-more-menu,
body.dark-mode .a2t-desktop-more-menu,
body.dark .a2t-desktop-more-menu {
  background: rgba(15, 23, 42, .98);
  border-color: rgba(148, 163, 184, .22);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .36);
}

html[data-theme="dark"] .a2t-desktop-more-item,
body.dark-mode .a2t-desktop-more-item,
body.dark .a2t-desktop-more-item {
  color: #f8fafc;
}

html[data-theme="dark"] .a2t-desktop-more-item:hover,
html[data-theme="dark"] .a2t-desktop-more-item:focus-visible,
body.dark-mode .a2t-desktop-more-item:hover,
body.dark-mode .a2t-desktop-more-item:focus-visible,
body.dark .a2t-desktop-more-item:hover,
body.dark .a2t-desktop-more-item:focus-visible {
  background: rgba(37, 99, 235, .16);
}

html[data-theme="dark"] .a2t-desktop-more-item small,
body.dark-mode .a2t-desktop-more-item small,
body.dark .a2t-desktop-more-item small {
  color: #94a3b8;
}

html[data-theme="dark"] .a2t-requests-brief,
body.dark-mode .a2t-requests-brief,
body.dark .a2t-requests-brief {
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, .22), transparent 34%),
    linear-gradient(180deg, rgba(15, 23, 42, .98), rgba(9, 14, 25, .96));
  border-color: rgba(148, 163, 184, .18);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .32);
}

html[data-theme="dark"] .a2t-requests-brief h1,
body.dark-mode .a2t-requests-brief h1,
body.dark .a2t-requests-brief h1 {
  color: #f8fafc;
}

html[data-theme="dark"] .a2t-requests-brief p,
body.dark-mode .a2t-requests-brief p,
body.dark .a2t-requests-brief p {
  color: #b6c2d6;
}

html[data-theme="dark"] .a2t-requests-brief-strip span,
body.dark-mode .a2t-requests-brief-strip span,
body.dark .a2t-requests-brief-strip span {
  background: rgba(15, 23, 42, .78);
  border-color: rgba(148, 163, 184, .18);
  color: #b6c2d6;
}
