:root {
  --ink: #071a1f;
  --muted: #58717a;
  --line: #d9e6ea;
  --soft: #eef7fa;
  --blue: #02a8df;
  --blue-dark: #0077a8;
  --panel: #ffffff;
  --warning: #fff3cf;
  --danger: #ffe0df;
  --ok: #def7e8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #fbfdfe;
}

main {
  overflow: clip;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(7, 26, 31, 0.08);
  background: rgba(251, 253, 254, 0.92);
  backdrop-filter: blur(12px);
}

.brand img {
  display: block;
  width: 156px;
  max-width: 42vw;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-weight: 700;
}

nav a {
  text-decoration: none;
}

.customer-side-nav {
  position: fixed;
  left: 18px;
  top: 50%;
  z-index: 18;
  display: grid;
  gap: 14px;
  transform: translateY(-50%);
}

.customer-side-nav a,
.customer-side-nav button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0, 119, 168, 0.32);
  border-radius: 8px;
  background: #ffffff;
  color: var(--blue-dark);
  box-shadow: 0 12px 34px rgba(7, 26, 31, 0.13);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
}

.customer-side-nav a::after,
.customer-side-nav button::after {
  content: attr(data-side-label);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  display: none;
  min-width: max-content;
  transform: translateY(-50%);
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  box-shadow: 0 12px 30px rgba(7, 26, 31, 0.14);
  font-size: 0.88rem;
}

.customer-side-nav a:hover::after,
.customer-side-nav button:hover::after,
.customer-side-nav a:focus-visible::after,
.customer-side-nav button:focus-visible::after {
  display: block;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--blue-dark);
  font: inherit;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(7, 26, 31, 0.07);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.language-toggle:hover,
.language-toggle:focus-visible {
  box-shadow: 0 12px 26px rgba(7, 26, 31, 0.12);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 82px);
  padding: clamp(42px, 7vw, 94px) clamp(18px, 4vw, 56px);
  background:
    linear-gradient(120deg, rgba(2, 168, 223, 0.12), rgba(255, 255, 255, 0) 46%),
    radial-gradient(circle at 82% 18%, rgba(2, 168, 223, 0.18), transparent 30%);
  scroll-snap-align: start;
}

.hero-copy,
.hero-panel,
.section-heading,
.support-stack,
.dashboard,
.case-form,
.account-form,
.auth-form {
  min-width: 0;
}

.hero h1,
.section h2 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(2.35rem, 6vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.section h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.hero p,
.section-heading p,
.split-section p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-actions,
.oauth-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.oauth-button {
  gap: 10px;
}

.oauth-icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
}

.microsoft-icon {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

.microsoft-icon span:nth-child(1) {
  background: #f25022;
}

.microsoft-icon span:nth-child(2) {
  background: #7fba00;
}

.microsoft-icon span:nth-child(3) {
  background: #00a4ef;
}

.microsoft-icon span:nth-child(4) {
  background: #ffb900;
}

.oauth-button > span:not(.oauth-icon),
.oauth-button svg + span {
  line-height: 1;
}

.oauth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(7, 26, 31, 0.08);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.oauth-button:hover,
.oauth-button:focus-visible {
  box-shadow: 0 14px 30px rgba(7, 26, 31, 0.13);
  transform: translateY(-1px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(7, 26, 31, 0.07);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.button:hover,
.button:focus-visible {
  box-shadow: 0 12px 26px rgba(7, 26, 31, 0.12);
  transform: translateY(-1px);
}

.button.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: white;
}

.button.secondary {
  background: transparent;
}

.button.ghost {
  min-height: 38px;
  color: var(--blue-dark);
}

.button.full {
  width: 100%;
}

.oauth-button.microsoft {
  border-color: #d5dce3;
  background: #ffffff;
  color: #2f2f2f;
}

.oauth-button.google {
  border-color: #dadce0;
  background: #ffffff;
  color: #3c4043;
}

.hero-panel {
  display: grid;
  gap: 16px;
}

.status-card,
.service-grid article,
.auth-form,
.account-form,
.case-form,
.dashboard {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(7, 26, 31, 0.08);
}

.status-card {
  padding: 28px;
}

.status-card span,
.status-card small,
.metric-grid span {
  color: var(--muted);
}

.status-card strong {
  display: block;
  margin: 8px 0;
  color: var(--blue-dark);
  font-size: clamp(3.4rem, 8vw, 6rem);
  line-height: 1;
}

.metric-grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.metric-grid div {
  min-height: 118px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.metric-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.3rem;
}

.section {
  position: sticky;
  top: 82px;
  min-height: calc(100vh - 82px);
  padding: clamp(56px, 8vw, 104px) clamp(18px, 4vw, 56px);
  scroll-snap-align: start;
  transform: translateZ(0);
}

.section-heading {
  margin-bottom: 28px;
}

.service-grid article {
  padding: 24px;
}

.services-overview-button {
  margin-top: 24px;
}

.service-grid h3,
.dashboard h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.service-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
  background: var(--soft);
}

.auth-form,
.account-form,
.case-form,
.dashboard {
  padding: 22px;
}

.auth-form {
  margin-top: 24px;
}

.auth-form.compact {
  margin-top: 14px;
}

.auth-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.forgot-button,
.logout-button {
  margin-top: 14px;
}

.form-row {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

label {
  font-weight: 800;
}

.label-line,
.checkbox-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.label-line {
  flex-wrap: wrap;
}

.checkbox-label {
  min-width: max-content;
  justify-content: flex-start;
  color: var(--muted);
  font-size: 0.95rem;
}

.label-with-help {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.help-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--blue-dark);
  border-radius: 999px;
  color: var(--blue-dark);
  font-size: 0.82rem;
  font-weight: 900;
  cursor: help;
}

.tooltip-bubble {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 20;
  display: none;
  min-width: 220px;
  transform: translateX(-50%);
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  box-shadow: 0 16px 38px rgba(7, 26, 31, 0.16);
  line-height: 1.45;
  text-align: left;
}

.help-tooltip:hover .tooltip-bubble,
.help-tooltip:focus .tooltip-bubble {
  display: block;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #cbdde2;
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  font: inherit;
  background: white;
}

input[type="checkbox"] {
  width: auto;
  min-width: 16px;
  height: 16px;
  padding: 0;
  accent-color: var(--blue);
}

input:focus,
textarea:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(2, 168, 223, 0.32);
  outline-offset: 2px;
}

input:disabled {
  color: var(--muted);
  background: #f2f6f8;
}

.form-note {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--blue-dark);
  font-weight: 800;
}

.form-note.error {
  color: #a5271f;
}

.hidden {
  display: none !important;
}

.support-section {
  position: relative;
  top: auto;
  min-height: auto;
  background: white;
}

.customer-profile-section {
  position: relative;
  top: auto;
  min-height: auto;
  background: var(--soft);
}

.support-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  align-items: start;
}

.case-create-panel {
  display: grid;
  gap: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.case-create-panel .eyebrow {
  margin-bottom: 12px;
  font-size: 1.12rem;
  letter-spacing: 0.06em;
}

.section-heading.compact {
  margin-bottom: 0;
}

.dashboard-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.case-list {
  display: grid;
  gap: 12px;
}

.case-filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(130px, 1fr));
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfe;
}

.case-filter-panel .form-row {
  margin-bottom: 0;
}

.case-filter-panel input,
.case-filter-panel select {
  height: 48px;
  min-height: 48px;
}

.case-filter-panel select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  line-height: 1.2;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--blue-dark) 50%),
    linear-gradient(135deg, var(--blue-dark) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 14px) 50%;
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
}

.empty-state {
  margin: 0;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
}

.case-item {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfe;
}

.case-item h4 {
  margin: 0;
  font-size: 1.05rem;
}

.case-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.case-inline-form {
  display: grid;
  gap: 8px;
  padding-top: 4px;
}

.inline-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.case-reports {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.case-updates {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f5fbfd;
}

.case-updates article {
  display: grid;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.case-updates article:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.case-update-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.case-update-head small {
  color: var(--muted);
  font-weight: 800;
}

.update-toggle {
  justify-self: start;
}

.case-reports article {
  display: grid;
  gap: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.case-reports article:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.case-reports small {
  color: var(--muted);
  font-weight: 800;
}

.profile-card {
  max-width: 920px;
}

.profile-list {
  display: grid;
  gap: 12px;
}

.profile-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfe;
}

.profile-row span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.profile-row strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 1.05rem;
}

.profile-edit-form {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
}

.profile-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 850;
}

.pill.critical {
  background: var(--danger);
}

.pill.urgent {
  background: var(--warning);
}

.pill.done {
  background: var(--ok);
}

.quota-panel {
  display: grid;
  gap: 14px;
}

.quota-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.quota-bar {
  width: 100%;
  height: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #eef7fa;
}

.quota-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--blue-dark));
}

.quota-text {
  margin: 0;
  color: var(--muted);
  font-weight: 850;
}

.payment-toggle {
  justify-self: start;
  width: auto;
  border-color: var(--blue-dark);
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: white;
  box-shadow: 0 14px 32px rgba(0, 119, 168, 0.24);
  padding: 0 24px;
}

.payment-toggle:hover,
.payment-toggle:focus-visible {
  background: linear-gradient(135deg, #11b9ef, #006c9a);
  color: white;
}

.payment-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.payment-tabs button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: white;
  color: var(--muted);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.payment-tabs button.active {
  border-color: var(--blue);
  background: var(--soft);
  color: var(--blue-dark);
}

.payment-tab-panels {
  min-height: 58px;
}

.payment-service-description {
  max-width: 760px;
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.6;
}

.paypal-container {
  min-height: 48px;
}

footer {
  position: relative;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 28px 18px;
  border-top: 1px solid var(--line);
  background: #fbfdfe;
  color: var(--muted);
}

.header-actions .logout-button {
  margin-top: 0;
}

footer img {
  width: 72px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(7, 26, 31, 0.58);
}

.modal {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 28px;
  border-radius: 8px;
  background: white;
  box-shadow: 0 30px 80px rgba(7, 26, 31, 0.28);
}

.modal h2 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.modal p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.services-modal {
  width: min(760px, 100%);
}

.public-services-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.public-service-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfe;
}

.public-service-item h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.public-service-item p {
  color: var(--muted);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: 1.4rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  html {
    scroll-snap-type: none;
  }

  main {
    overflow: visible;
  }

  .site-header {
    position: sticky;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px 12px;
    align-items: start;
    justify-content: space-between;
    min-height: auto;
    padding: 10px 14px 48px;
    overflow: hidden;
  }

  .brand {
    justify-self: start;
  }

  .brand img {
    width: 92px;
    max-width: 26vw;
  }

  .header-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    justify-self: end;
    min-width: 0;
    max-width: 100%;
  }

  .header-actions nav {
    position: absolute;
    right: 14px;
    bottom: 10px;
    left: 14px;
    width: auto;
    gap: 12px;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 2px 0 0;
    scrollbar-width: none;
  }

  .header-actions nav::-webkit-scrollbar {
    display: none;
  }

  .language-toggle,
  .header-actions .button {
    flex: 0 0 auto;
    width: auto;
    min-height: 36px;
    padding: 0 10px;
    white-space: nowrap;
  }

  .dashboard-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .section {
    position: relative;
    top: auto;
    min-height: auto;
    padding: 42px 14px;
  }

  .hero,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero {
    display: block;
    width: 100vw;
    max-width: 100vw;
    overflow: visible;
  }

  .hero-copy,
  .hero-copy p,
  .hero-copy h1,
  .hero-copy .eyebrow {
    width: min(100%, 340px);
    max-width: min(100%, 340px);
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .hero-panel {
    margin-top: 28px;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .case-filter-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    min-height: auto;
    padding: 38px 14px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(1.25rem, 5.5vw, 1.55rem);
    line-height: 1.12;
    overflow-wrap: anywhere;
  }

  .section h2 {
    max-width: 100%;
    font-size: clamp(1.85rem, 8vw, 2.5rem);
    line-height: 1.04;
    overflow-wrap: anywhere;
  }

  .hero p,
  .section-heading p,
  .split-section p {
    font-size: 0.96rem;
    line-height: 1.6;
  }

  .customer-side-nav {
    left: 8px;
  }
}

@media (max-width: 560px) {
  .metric-grid,
  .service-grid,
  .case-filter-panel {
    grid-template-columns: 1fr;
  }

  .button,
  .oauth-button {
    width: 100%;
  }

  .site-header .button,
  .site-header .language-toggle {
    width: auto;
  }

  .brand img {
    width: 84px;
  }

  .auth-actions {
    grid-template-columns: 1fr;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-row {
    grid-template-columns: 1fr;
  }

  .public-service-item {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 861px) {
  .customer-side-nav {
    left: 18px;
    grid-template-columns: 10px;
    grid-auto-rows: 10px;
    grid-auto-flow: row;
    gap: 10px;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: 1px solid rgba(0, 119, 168, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 34px rgba(7, 26, 31, 0.13);
    backdrop-filter: blur(12px);
  }

  .customer-side-nav:hover,
  .customer-side-nav:focus-within {
    grid-template-columns: max-content;
    grid-auto-rows: 44px;
    gap: 8px;
    padding: 8px;
    border-radius: 16px;
  }

  .customer-side-nav a,
  .customer-side-nav button {
    width: 10px;
    height: 10px;
    min-width: 10px;
    border-color: transparent;
    border-radius: 999px;
    background: var(--blue);
    color: transparent;
    box-shadow: none;
    font-size: 0;
    overflow: hidden;
  }

  .customer-side-nav:hover a,
  .customer-side-nav:hover button,
  .customer-side-nav:focus-within a,
  .customer-side-nav:focus-within button {
    width: auto;
    min-width: 54px;
    height: 44px;
    padding: 0 10px;
    border-color: rgba(0, 119, 168, 0.28);
    background: #ffffff;
    color: var(--blue-dark);
    box-shadow: 0 10px 28px rgba(7, 26, 31, 0.12);
    font-size: 1rem;
    overflow: visible;
  }

  .customer-side-nav a::after,
  .customer-side-nav button::after {
    position: static;
    display: none;
    min-width: 0;
    margin-left: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: var(--ink);
    font-size: 0.72rem;
    line-height: 1;
    transform: none;
  }

  .customer-side-nav:hover a::after,
  .customer-side-nav:hover button::after,
  .customer-side-nav:focus-within a::after,
  .customer-side-nav:focus-within button::after {
    display: inline;
  }
}

@media (max-width: 860px) {
  .customer-side-nav {
    left: 8px;
    top: 50%;
    grid-template-columns: 44px;
    grid-auto-rows: 44px;
    gap: 14px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    transform: translateY(-50%);
  }

  .customer-side-nav a,
  .customer-side-nav button {
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 0;
    border: 1px solid rgba(0, 119, 168, 0.32);
    border-radius: 8px;
    background: #ffffff;
    color: var(--blue-dark);
    box-shadow: 0 12px 34px rgba(7, 26, 31, 0.13);
    font-size: 1.05rem;
    overflow: visible;
  }

  .customer-side-nav a::after,
  .customer-side-nav button::after {
    display: none !important;
  }
}

@media (max-width: 560px) {
  .customer-side-nav {
    bottom: 10px;
    left: 50%;
    top: auto;
    grid-template-columns: repeat(4, 44px);
    grid-auto-rows: 44px;
    transform: translateX(-50%);
  }
}
