/*
 * Dark Horse Virtue customer portal v2 preview
 * Loaded only when ?dhv_portal_ui=v2 is present.
 */

.dhv-p2 {
  --p2-ink: #07141c;
  --p2-muted: #61717d;
  --p2-line: #dce5e9;
  --p2-soft: #f4f7f8;
  --p2-surface: #ffffff;
  --p2-night: #071217;
  --p2-night-2: #0d2028;
  --p2-brand: #09c5d4;
  --p2-brand-dark: #007e8b;
  --p2-good: #087a5b;
  --p2-good-bg: #e6f8f1;
  --p2-warn: #9a5b00;
  --p2-warn-bg: #fff4dc;
  --p2-danger: #a12727;
  --p2-danger-bg: #fff0ef;
  --p2-radius: 18px;
  --p2-shadow: 0 18px 48px rgba(10, 28, 36, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.page-id-17608:has(.dhv-p2) {
  background: var(--p2-soft);
}

body.page-id-17608 .dhv-account-shell.dhv-p2 {
  grid-template-columns: 264px minmax(0, 1fr);
  background: var(--p2-soft);
}

.dhv-p2 .dhv-account-sidebar {
  gap: 30px;
  padding: 24px 18px 18px;
  border: 0;
  background:
    radial-gradient(circle at 30% 0%, rgba(9, 197, 212, 0.13), transparent 28%),
    linear-gradient(180deg, var(--p2-night) 0%, #09171e 100%);
  box-shadow: 14px 0 44px rgba(7, 18, 23, 0.08);
}

.dhv-p2 .dhv-account-brand {
  min-height: 52px;
  padding: 2px 10px;
}

.dhv-p2 .dhv-account-brand img {
  width: min(164px, 100%);
}

.dhv-p2 .dhv-account-menu {
  gap: 7px;
}

.dhv-p2 .dhv-account-menu a,
.dhv-p2 .dhv-account-menu button {
  position: relative;
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px 11px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: rgba(239, 248, 250, 0.68);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 750;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: 150ms ease;
}

.dhv-p2 .dhv-account-menu a::before,
.dhv-p2 .dhv-account-menu button::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border: 2px solid currentColor;
  border-radius: 50%;
  opacity: 0.72;
}

.dhv-p2 .dhv-account-menu a:hover,
.dhv-p2 .dhv-account-menu a:focus-visible,
.dhv-p2 .dhv-account-menu button:hover,
.dhv-p2 .dhv-account-menu button:focus-visible,
.dhv-p2 .dhv-account-menu a.is-active {
  border-color: rgba(9, 197, 212, 0.22);
  outline: none;
  background: rgba(9, 197, 212, 0.11);
  color: #ffffff;
  transform: none;
}

.dhv-p2 .dhv-account-menu a.is-active::after {
  content: "";
  position: absolute;
  inset-block: 10px;
  left: 0;
  width: 3px;
  border-radius: 99px;
  background: var(--p2-brand);
  box-shadow: 0 0 18px rgba(9, 197, 212, 0.72);
}

.dhv-p2 .dhv-sidebar-account {
  position: relative;
  padding: 11px;
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.dhv-p2-profile {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  align-items: center;
  gap: 8px;
}

.dhv-p2-profile__copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.dhv-p2-profile__copy b,
.dhv-p2-profile__copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dhv-p2-profile__copy b {
  color: #ffffff;
  font-size: 0.82rem;
  line-height: 1.2;
}

.dhv-p2-profile__copy small {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.67rem;
  font-weight: 650;
}

.dhv-p2 .dhv-p2-profile__copy a {
  position: relative;
  z-index: 2;
  width: fit-content;
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.66rem;
  font-weight: 700;
  text-decoration: none;
}

.dhv-p2 .dhv-p2-profile__copy a:hover,
.dhv-p2 .dhv-p2-profile__copy a:focus-visible {
  color: var(--p2-brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dhv-p2-account-trigger {
  width: 30px;
  height: 34px;
  display: grid;
  grid-template-columns: repeat(3, 3px);
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  cursor: pointer;
}

.dhv-p2-account-trigger i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  transform: translateY(0);
}

.dhv-p2-account-trigger:hover,
.dhv-p2-account-trigger:focus-visible {
  border-color: rgba(9, 197, 212, 0.35);
  outline: 3px solid rgba(9, 197, 212, 0.16);
  background: rgba(9, 197, 212, 0.12);
  color: #ffffff;
}

.dhv-p2-account-trigger:hover i,
.dhv-p2-account-trigger:focus-visible i {
  animation: dhv-p2-dot-wave 620ms ease-in-out both;
}

.dhv-p2-account-trigger:hover i:nth-child(2),
.dhv-p2-account-trigger:focus-visible i:nth-child(2) {
  animation-delay: 80ms;
}

.dhv-p2-account-trigger:hover i:nth-child(3),
.dhv-p2-account-trigger:focus-visible i:nth-child(3) {
  animation-delay: 160ms;
}

@keyframes dhv-p2-dot-wave {
  0%,
  60%,
  100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-4px);
    background: var(--p2-brand);
  }
}

.dhv-p2-mobile-account {
  display: none;
}

.dhv-p2 .dhv-account-workspace {
  grid-template-rows: 78px minmax(0, 1fr);
}

.dhv-p2 .dhv-account-topbar {
  padding: 13px 30px;
  border-color: var(--p2-line);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px) saturate(140%);
}

.dhv-p2 .dhv-account-topbar .dhv-kicker {
  color: var(--p2-brand-dark);
  font-size: 0.67rem;
  letter-spacing: 0.13em;
}

.dhv-p2 .dhv-account-topbar h1 {
  font-size: 1.42rem;
  font-weight: 780;
}

.dhv-p2 .dhv-button,
.dhv-p2 .dhv-section-actions a,
.dhv-p2 .dhv-account-topbar .dhv-button--light {
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid var(--p2-ink);
  border-radius: 11px;
  background: var(--p2-ink);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 780;
  box-shadow: none;
}

.dhv-p2 .dhv-account-topbar .dhv-button--light {
  border-color: var(--p2-line);
  background: var(--p2-surface);
  color: var(--p2-ink);
}

.dhv-p2 .dhv-button:hover,
.dhv-p2 .dhv-button:focus-visible,
.dhv-p2 .dhv-section-actions a:hover,
.dhv-p2 .dhv-section-actions a:focus-visible {
  border-color: var(--p2-brand-dark);
  outline: 3px solid rgba(9, 197, 212, 0.18);
  outline-offset: 2px;
  background: var(--p2-brand);
  color: var(--p2-ink);
}

body.page-id-17608 .dhv-p2 .dhv-account-main {
  display: block;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: clamp(20px, 3vw, 38px);
  background:
    radial-gradient(circle at 88% -10%, rgba(9, 197, 212, 0.08), transparent 27%),
    var(--p2-soft);
  scroll-behavior: auto;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
  scrollbar-color: #aabcc3 transparent;
  scrollbar-width: thin;
}

body.page-id-17608 .dhv-p2 .dhv-account-main::-webkit-scrollbar {
  width: 10px;
}

body.page-id-17608 .dhv-p2 .dhv-account-main::-webkit-scrollbar-track {
  background: transparent;
}

body.page-id-17608 .dhv-p2 .dhv-account-main::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: #aabcc3;
  background-clip: padding-box;
}

.dhv-p2 .dhv-account-main > * {
  width: min(100%, 1440px);
  margin-inline: auto;
}

body.page-id-17608 .dhv-p2 .dhv-account-main > .dhv-p2-home,
body.page-id-17608 .dhv-p2 .dhv-account-main > .dhv-account-section {
  min-height: auto;
  max-height: none;
  overflow: visible;
}

body.page-id-17608 .dhv-p2 #hosting.is-active {
  display: block;
  overflow: visible;
}

body.page-id-17608 .dhv-p2 #hosting .dhv-service-list,
body.page-id-17608 .dhv-p2 #hosting .dhv-service-detail-stack {
  min-height: auto;
  max-height: none;
  overflow: visible;
}

.dhv-p2-home {
  display: grid;
  gap: 20px;
  padding-bottom: 4px;
}

.dhv-p2-home[hidden] {
  display: none;
}

.dhv-p2-welcome {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 6px 2px 12px;
}

.dhv-p2-eyebrow,
.dhv-p2-section-head span {
  display: block;
  margin: 0 0 7px;
  color: var(--p2-brand-dark);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dhv-p2-welcome h2 {
  max-width: 840px;
  margin: 0;
  color: var(--p2-ink);
  font-size: clamp(2rem, 3.6vw, 3.55rem);
  font-weight: 760;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.dhv-p2-welcome p:not(.dhv-p2-eyebrow) {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--p2-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.dhv-p2-health {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  padding: 9px 13px;
  border: 1px solid #bce9d9;
  border-radius: 999px;
  background: var(--p2-good-bg);
  color: var(--p2-good);
  font-size: 0.82rem;
  font-weight: 800;
}

.dhv-p2-health i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 14%, transparent);
}

.dhv-p2-health.has-attention {
  border-color: #efd39f;
  background: var(--p2-warn-bg);
  color: var(--p2-warn);
}

.dhv-p2-attention,
.dhv-p2-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--p2-line);
  border-radius: var(--p2-radius);
  background: var(--p2-surface);
  box-shadow: var(--p2-shadow);
}

.dhv-p2-attention {
  border-color: #edd9b5;
  background: linear-gradient(135deg, #fffaf0 0%, #ffffff 64%);
}

.dhv-p2-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 17px;
}

.dhv-p2-section-head h3 {
  margin: 0;
  color: var(--p2-ink);
  font-size: 1.15rem;
  font-weight: 780;
  line-height: 1.15;
  letter-spacing: -0.018em;
}

.dhv-p2-section-head > p {
  max-width: 440px;
  margin: 2px 0 0;
  color: var(--p2-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.dhv-p2-section-head > a {
  color: var(--p2-brand-dark);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.dhv-p2-section-head > a:hover,
.dhv-p2-section-head > a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.dhv-p2-attention-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.dhv-p2-attention-grid a {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 14px;
  border: 1px solid #eadfc9;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--p2-ink);
  text-decoration: none;
}

.dhv-p2-attention-grid a:hover,
.dhv-p2-attention-grid a:focus-visible {
  border-color: var(--p2-brand);
  outline: 3px solid rgba(9, 197, 212, 0.15);
}

.dhv-p2-attention-grid a > span,
.dhv-p2-attention-grid small {
  color: var(--p2-muted);
  font-size: 0.76rem;
  font-style: normal;
}

.dhv-p2-attention-grid strong {
  font-size: 1rem;
}

.dhv-p2-attention-grid a.is-urgent {
  border-color: #efc2bd;
  background: var(--p2-danger-bg);
}

.dhv-p2-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.dhv-p2-card--services {
  grid-row: span 2;
}

.dhv-p2-card--billing,
.dhv-p2-card--support {
  grid-column: 1;
}

.dhv-p2-card--support {
  grid-column: 2;
  grid-row: 2 / span 2;
}

.dhv-p2-service-list,
.dhv-p2-ticket-list,
.dhv-p2-card--actions nav {
  display: grid;
  gap: 8px;
}

.dhv-p2-service-list > button {
  width: 100%;
  min-height: 68px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto 22px;
  align-items: center;
  gap: 13px;
  padding: 11px 10px;
  border: 0;
  border-bottom: 1px solid #edf1f3;
  background: transparent;
  color: var(--p2-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.dhv-p2-service-list > button:last-child {
  border-bottom: 0;
}

.dhv-p2-service-list > button:hover,
.dhv-p2-service-list > button:focus-visible {
  border-radius: 12px;
  outline: 3px solid rgba(9, 197, 212, 0.14);
  background: #f6fbfc;
}

.dhv-p2-service-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--p2-night);
  color: var(--p2-brand);
  font-size: 0.78rem;
  font-weight: 850;
}

.dhv-p2-service-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.dhv-p2-service-copy strong,
.dhv-p2-service-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dhv-p2-service-copy strong {
  font-size: 0.93rem;
}

.dhv-p2-service-copy small {
  color: var(--p2-muted);
  font-size: 0.79rem;
}

.dhv-p2-status {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--p2-good-bg);
  color: var(--p2-good);
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: capitalize;
}

.dhv-p2-arrow {
  color: var(--p2-brand-dark);
  font-size: 1.05rem;
}

.dhv-p2-card--actions nav a {
  min-height: 57px;
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--p2-ink);
  text-decoration: none;
}

.dhv-p2-card--actions nav a:hover,
.dhv-p2-card--actions nav a:focus-visible {
  border-color: #cce8eb;
  outline: none;
  background: #f2fafb;
}

.dhv-p2-card--actions nav strong {
  font-size: 0.86rem;
}

.dhv-p2-card--actions nav small {
  color: var(--p2-muted);
  font-size: 0.75rem;
}

.dhv-p2-billing-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 5px 16px;
}

.dhv-p2-billing-summary strong {
  grid-row: span 2;
  color: var(--p2-ink);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 730;
  line-height: 1;
  letter-spacing: -0.05em;
}

.dhv-p2-billing-summary span {
  color: var(--p2-ink);
  font-size: 0.9rem;
  font-weight: 750;
}

.dhv-p2-billing-summary small {
  color: var(--p2-muted);
  font-size: 0.78rem;
}

.dhv-p2-ticket-list a {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #edf1f3;
  color: var(--p2-ink);
  text-decoration: none;
}

.dhv-p2-ticket-list a:last-child {
  border-bottom: 0;
}

.dhv-p2-ticket-list a > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.dhv-p2-ticket-list strong,
.dhv-p2-ticket-list small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dhv-p2-ticket-list strong {
  font-size: 0.84rem;
}

.dhv-p2-ticket-list small {
  color: var(--p2-muted);
  font-size: 0.73rem;
}

.dhv-p2-ticket-list em {
  flex: 0 0 auto;
  color: var(--p2-brand-dark);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 850;
}

.dhv-p2-empty {
  display: grid;
  gap: 5px;
  padding: 20px;
  border: 1px dashed #cdd9de;
  border-radius: 13px;
  background: var(--p2-soft);
}

.dhv-p2-empty span {
  color: var(--p2-muted);
  font-size: 0.84rem;
}

/* Existing feature workspaces, restyled but functionally unchanged. */
body.page-id-17608 .dhv-p2 .dhv-account-section {
  margin: 0 auto;
  padding: clamp(18px, 2.5vw, 28px);
  border: 1px solid var(--p2-line);
  border-radius: var(--p2-radius);
  background: var(--p2-surface);
  box-shadow: var(--p2-shadow);
}

.dhv-p2 .dhv-section-heading {
  align-items: center;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid #edf1f3;
}

.dhv-p2-service-switcher {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: -4px 0 20px;
  padding: 8px 10px 8px 13px;
  border: 1px solid var(--p2-line);
  border-radius: 13px;
  background: rgba(249, 252, 252, 0.94);
  box-shadow: 0 8px 24px rgba(7, 20, 28, 0.07);
  backdrop-filter: blur(14px) saturate(140%);
}

.dhv-p2-service-switcher > span {
  color: var(--p2-muted);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.dhv-p2-service-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px;
  border: 1px solid var(--p2-line);
  border-radius: 11px;
  background: var(--p2-soft);
}

.dhv-p2-service-nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: var(--p2-muted) !important;
  font-size: 0.76rem !important;
  font-weight: 800 !important;
  text-decoration: none;
}

.dhv-p2-service-nav a.is-active,
.dhv-p2-service-nav a:hover,
.dhv-p2-service-nav a:focus-visible {
  outline: none;
  background: var(--p2-surface) !important;
  color: var(--p2-ink) !important;
  box-shadow: 0 3px 10px rgba(7, 20, 28, 0.07);
}

.dhv-p2 .dhv-section-heading h2 {
  color: var(--p2-ink);
  font-size: clamp(1.65rem, 2.5vw, 2.35rem);
  font-weight: 750;
  letter-spacing: -0.035em;
}

.dhv-p2 .dhv-kicker {
  color: var(--p2-brand-dark);
  font-size: 0.67rem;
  letter-spacing: 0.12em;
}

.dhv-p2 .dhv-service-grid,
.dhv-p2 .dhv-ai-solution-grid {
  gap: 14px;
}

body.page-id-17608 .dhv-p2 .dhv-service-item,
body.page-id-17608 .dhv-p2 .dhv-ai-solution-card,
body.page-id-17608 .dhv-p2 .dhv-ticket-form,
body.page-id-17608 .dhv-p2 .dhv-empty-state {
  border-color: var(--p2-line);
  border-radius: 15px;
  background: #fbfcfc;
  box-shadow: none;
}

body.page-id-17608 .dhv-p2 .dhv-service-item:hover,
body.page-id-17608 .dhv-p2 .dhv-service-item:focus-visible,
body.page-id-17608 .dhv-p2 .dhv-ai-solution-card:hover,
body.page-id-17608 .dhv-p2 .dhv-ai-solution-card:focus-visible {
  border-color: #9bdce2;
  box-shadow: 0 14px 34px rgba(9, 73, 82, 0.1);
  transform: translateY(-2px);
}

.dhv-p2 .dhv-service-detail__hero,
.dhv-p2 .dhv-ai-solution-hero {
  border-radius: 16px;
  background:
    radial-gradient(circle at 85% 0%, rgba(9, 197, 212, 0.19), transparent 32%),
    var(--p2-night);
}

.dhv-p2 .dhv-service-tool-tabs {
  padding: 5px;
  border: 1px solid var(--p2-line);
  border-radius: 13px;
  background: #f4f7f8;
}

.dhv-p2 .dhv-service-tool-tabs button {
  min-height: 40px;
  border: 0;
  border-radius: 9px;
}

.dhv-p2 .dhv-service-tool-tabs button.is-active {
  background: var(--p2-surface);
  color: var(--p2-ink);
  box-shadow: 0 4px 14px rgba(7, 20, 28, 0.08);
}

.dhv-p2 .dhv-table-wrap {
  border: 1px solid var(--p2-line);
  border-radius: 14px;
  overflow: auto;
}

.dhv-p2 .dhv-account-table {
  border: 0;
  border-radius: 0;
}

.dhv-p2 .dhv-account-table thead {
  background: #f4f7f8;
}

.dhv-p2 .dhv-account-table tr:last-child td {
  border-bottom: 0;
}

.dhv-p2 .dhv-support-layout {
  gap: 16px;
}

.dhv-p2 .dhv-ticket-workspace,
.dhv-p2 .dhv-ticket-thread,
.dhv-p2 .dhv-ticket-list {
  border-color: var(--p2-line);
  border-radius: 14px;
}

.dhv-p2 .dhv-account-alert {
  margin: 0 auto 18px;
  border-radius: 13px;
}

.dhv-p2 :where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid rgba(9, 197, 212, 0.45);
  outline-offset: 2px;
}

@media (max-width: 1120px) {
  body.page-id-17608 .dhv-account-shell.dhv-p2 {
    grid-template-columns: 224px minmax(0, 1fr);
  }

  .dhv-p2-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(270px, 0.8fr);
  }
}

@media (max-width: 860px) {
  .dhv-p2-grid {
    grid-template-columns: 1fr;
  }

  .dhv-p2-card--services,
  .dhv-p2-card--billing,
  .dhv-p2-card--support {
    grid-column: auto;
    grid-row: auto;
  }

  .dhv-p2-welcome {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  body.page-id-17608 .dhv-account-shell.dhv-p2 {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) 68px;
  }

  .dhv-p2 .dhv-account-sidebar {
    grid-row: 2;
    padding: 7px 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(7, 18, 23, 0.97);
    backdrop-filter: blur(16px);
  }

  .dhv-p2 .dhv-account-menu {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3px;
  }

  .dhv-p2 .dhv-account-menu a,
  .dhv-p2 .dhv-account-menu button {
    min-height: 52px;
    justify-content: center;
    padding: 7px 3px;
    border-radius: 9px;
    font-size: 0.67rem;
    text-align: center;
  }

  .dhv-p2 .dhv-account-menu a::before,
  .dhv-p2 .dhv-account-menu button::before,
  .dhv-p2 .dhv-account-menu a.is-active::after {
    display: none;
  }

  .dhv-p2 .dhv-account-workspace {
    grid-row: 1;
    grid-template-rows: 62px minmax(0, 1fr);
  }

  .dhv-p2 .dhv-account-topbar {
    padding: 10px 12px;
  }

  .dhv-p2 .dhv-account-topbar .dhv-kicker,
  .dhv-p2 .dhv-topbar-actions .dhv-button--light {
    display: none;
  }

  .dhv-p2 .dhv-account-topbar h1 {
    font-size: 1.2rem;
  }

  .dhv-p2-mobile-account {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid #b9e4e8;
    border-radius: 50%;
    background: #eaf9fa;
    color: var(--p2-brand-dark);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 850;
    cursor: pointer;
  }

  body.page-id-17608 .dhv-p2 .dhv-account-main {
    padding: 15px 12px 24px;
    scrollbar-gutter: auto;
  }

  .dhv-p2-welcome {
    padding-top: 0;
  }

  .dhv-p2-welcome h2 {
    font-size: clamp(2rem, 10vw, 2.65rem);
  }

  .dhv-p2-attention,
  .dhv-p2-card,
  body.page-id-17608 .dhv-p2 .dhv-account-section {
    padding: 17px;
    border-radius: 15px;
  }

  .dhv-p2-section-head {
    display: grid;
  }

  .dhv-p2-service-nav {
    width: 100%;
    overflow-x: auto;
  }

  .dhv-p2-service-switcher {
    position: sticky;
    display: grid;
    gap: 7px;
    margin-bottom: 15px;
    padding: 9px;
  }

  .dhv-p2-service-switcher > span {
    padding-inline: 3px;
  }

  .dhv-p2-section-head > p {
    max-width: none;
  }

  .dhv-p2-service-list > button {
    grid-template-columns: 36px minmax(0, 1fr) 18px;
  }

  .dhv-p2-service-mark {
    width: 36px;
    height: 36px;
  }

  .dhv-p2-status {
    display: none;
  }

  .dhv-p2-billing-summary {
    grid-template-columns: 1fr;
  }

  .dhv-p2-billing-summary strong {
    grid-row: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dhv-p2 *,
  .dhv-p2 *::before,
  .dhv-p2 *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .dhv-p2-account-trigger:hover i,
  .dhv-p2-account-trigger:focus-visible i {
    animation: none !important;
    background: var(--p2-brand);
  }
}

/* Platform-neutral hosting identity and selected-service hero. */
.dhv-p2 .dhv-hosting-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #b9e4e8;
  border-radius: 10px;
  background: #eaf9fa;
  color: var(--p2-brand-dark);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.dhv-p2 .dhv-hosting-mark--large {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 0.88rem;
}

.dhv-p2 .dhv-service-detail__hero {
  min-height: 176px;
  align-items: flex-start;
  gap: 28px;
  overflow: hidden;
  padding: 26px 28px;
  border: 1px solid rgba(131, 225, 233, 0.18);
  color: #ffffff;
}

.dhv-p2 .dhv-service-detail__hero > div:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.dhv-p2 .dhv-service-detail__hero .dhv-detail-back {
  margin: 0 8px 0 0;
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.08);
  color: #dffbfe;
}

.dhv-p2 .dhv-service-detail__hero .dhv-detail-back:hover,
.dhv-p2 .dhv-service-detail__hero .dhv-detail-back:focus-visible {
  border-color: #91e8ef;
  background: #91e8ef;
  color: #07141c;
}

.dhv-p2 .dhv-service-detail__hero .dhv-status {
  border: 1px solid rgba(151, 238, 210, 0.28);
  background: rgba(135, 232, 199, 0.16);
  color: #bff9e5;
}

.dhv-p2 .dhv-service-detail__hero .dhv-service-titleline--detail {
  align-items: center;
  margin-top: 22px;
}

.dhv-p2 .dhv-service-detail__hero .dhv-hosting-mark {
  border-color: rgba(145, 232, 239, 0.36);
  background: rgba(9, 197, 212, 0.14);
  color: #a9f5fb;
}

.dhv-p2 .dhv-service-detail__hero h3 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.dhv-p2 .dhv-service-detail__hero p {
  margin-top: 10px;
  color: #b9ccd4;
  font-size: 1rem;
  font-weight: 700;
}

.dhv-p2 .dhv-service-detail__actions {
  flex: 0 0 auto;
}

.dhv-p2 .dhv-service-detail__actions .dhv-button {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.dhv-p2 .dhv-service-detail__actions .dhv-button--light {
  border-color: #ffffff;
  background: #ffffff;
  color: #07141c;
}

.dhv-p2 .dhv-service-detail__actions .dhv-button:hover,
.dhv-p2 .dhv-service-detail__actions .dhv-button:focus-visible {
  border-color: #91e8ef;
  background: #91e8ef;
  color: #07141c;
}

@media (max-width: 720px) {
  .dhv-p2 .dhv-service-detail__hero {
    min-height: 0;
    flex-direction: column;
    gap: 22px;
    padding: 21px;
  }

  .dhv-p2 .dhv-service-detail__actions {
    width: 100%;
    justify-content: flex-start;
  }
}
