.customer-body {
  padding-left: 270px;
}

.workspace-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 270px;
  background: linear-gradient(170deg,#1c233f,#191e35);
  color: #c8cbe1;
  z-index: 50;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 38px 15px 26px;
  border-right: 1px solid #252c47;
}

.sidebar-top {
  padding: 0 14px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-top p {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 750;
  color: #a8b0cf;
  margin: 0;
  line-height: 1.7;
}

.workspace-nav {
  display: grid;
  gap: 10px;
}

.workspace-link {
  display: flex;
  gap: 16px;
  align-items: center;
  min-height: 59px;
  padding: 15px 19px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: #c9cce1;
  font-size: 14px;
  font-weight: 650;
  transition: background .15s,border-color .15s,color .15s;
}

.workspace-link svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.workspace-link i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-left: auto;
  background: transparent;
  flex-shrink: 0;
}

.workspace-link:hover {
  background: #272c4a;
  color: #f0edff;
}

.workspace-link.is-active {
  background: linear-gradient(100deg,#3e356f,#2d355f);
  border-color: #5c4e9a;
  color: #e5dcff;
  box-shadow: inset 0 1px 0 #ffffff08;
}

.workspace-link.is-active i {
  background: #b59bff;
}

.sidebar-divider {
  height: 1px;
  background: #3b4262;
  margin: 19px 0 10px;
}

.sidebar-help {
  margin-top: auto;
  padding: 70px 17px 8px;
}

.sidebar-help h2 {
  font-size: 14px;
  font-weight: 700;
  color: #eeedfb;
  margin: 0 0 14px;
  letter-spacing: 0;
}

.sidebar-help p {
  font-size: 14px;
  line-height: 1.75;
  color: #b4bdd8;
  margin: 0 0 12px;
  max-width: 195px;
}

.sidebar-help a {
  font-size: 14px;
  font-weight: 700;
  color: #c0a7ff;
}

.sidebar-help a span {
  margin-left: 7px;
}

.sidebar-close,.mobile-workspace-bar {
  display: none;
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: #0d122b80;
  border: 0;
  border-radius: 0;
  z-index: 45;
}

.customer-body .site-header {
  height: 100px;
}

.customer-body .hero-grid {
  gap: 48px;
  padding-top: 48px;
  padding-bottom: 55px;
}

.customer-body .intro h1 {
  font-size: clamp(35px,3.6vw,51px);
  letter-spacing: -2px;
}

.customer-body .code-art {
  max-width: 100%;
  transform: scale(.86);
  transform-origin: left center;
}

.workspace-main {
  min-height: calc(100dvh - 195px);
}

.workspace-view {
  animation: workspace-enter .2s ease;
}

.workspace-heading {
  padding: 45px 0 25px;
}

.workspace-heading h1 {
  font-size: 34px;
  line-height: 1.3;
  letter-spacing: -1.1px;
  font-weight: 650;
  margin: 17px 0 12px;
}

.workspace-heading h1:focus {
  outline: none;
}

.workspace-heading p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 680px;
  margin: 0;
}

.workspace-tool {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 35px;
}

.workspace-input-row {
  display: flex;
  gap: 12px;
}

.workspace-input-row input {
  flex: 1;
  min-width: 0;
}

.workspace-input-row button {
  white-space: nowrap;
}

.lookup-result {
  border-top: 1px solid var(--line);
  margin-top: 25px;
  padding-top: 25px;
}

.lookup-result h3 {
  font-size: 19px;
  margin: 15px 0 10px;
}

.workspace-result-detail {
  white-space: pre-line;
  font-size: 12px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.workspace-result-detail+.button {
  margin-top: 8px;
}

.bulk-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.bulk-import {
  background: #f7f8f3;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 22px;
  padding: 14px 17px;
}

.bulk-import summary {
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.bulk-import label {
  margin-top: 15px;
}

.bulk-import textarea {
  font-family: Consolas,monospace;
  font-size: 12px;
}

.bulk-rows {
  display: grid;
  gap: 17px;
}

.bulk-account {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}

.bulk-account-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.bulk-account-heading h2 {
  font-size: 14px;
  margin: 0;
  letter-spacing: 0;
}

.bulk-account-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 17px;
}

.bulk-field-wide {
  grid-column: 1/-1;
}

.bulk-account-fields label {
  font-size: 11px;
}

.bulk-account-fields input {
  font-size: 12px;
}

.bulk-account-result {
  border-top: 1px solid var(--line);
  padding-top: 15px;
  margin-top: 20px;
}

.bulk-account-result h3 {
  font-size: 15px;
  margin: 12px 0;
}

.bulk-submit-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.workspace-notice {
  position: fixed;
  top: 16px;
  right: 20px;
  z-index: 60;
  max-width: min(380px,calc(100% - 40px));
  padding: 15px 18px;
  border: 1px solid #eed9b9;
  background: #fff9ed;
  color: #805d31;
  border-radius: 12px;
  box-shadow: 0 8px 35px #11182720;
  font-size: 12px;
  line-height: 1.8;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 280px;
  z-index: 100;
  transform: translateY(-150%);
  background: #fff;
  padding: 12px 18px;
  border: 2px solid #7762b0;
  border-radius: 8px;
  font-size: 12px;
}

.skip-link:focus {
  transform: translateY(0);
}

.workspace-link:focus-visible,.sidebar-help a:focus-visible,.sidebar-close:focus-visible {
  outline: 2px solid #c2a6ff;
  outline-offset: 3px;
}

.customer-body .availability {
  margin-bottom: 35px;
}

.workspace-view .how-section {
  border-top: 0;
  padding-top: 20px;
}

.workspace-view .faq {
  margin-top: 32px;
}

@keyframes workspace-enter {
  from {
    opacity: .3;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media(max-width:1200px) and (min-width:761px) {
  .customer-body {
    padding-left: 240px;
  }
  .workspace-sidebar {
    width: 240px;
  }
  .workspace-link {
    padding-left: 16px;
    padding-right: 14px;
    gap: 13px;
  }
  .sidebar-top {
    padding-left: 12px;
  }
  .sidebar-top p {
    font-size: 10px;
    letter-spacing: 1.6px;
  }
  .customer-body .shell {
    padding-left: 28px;
    padding-right: 28px;
  }
  .customer-body .hero-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    padding-top: 30px;
  }
  .customer-body .code-art,.customer-body .intro-note {
    display: none;
  }
  .customer-body .intro h1 {
    font-size: 39px;
  }
  .customer-body .lead {
    max-width: none;
    font-size: 13px;
  }
  .customer-body .intro {
    padding: 0;
  }
  .customer-body .redeem-panel {
    width: 100%;
  }
  .customer-body .site-header {
    height: 85px;
  }
  .skip-link {
    left: 250px;
  }
  .customer-body .how-grid {
    gap: 22px;
  }
}

@media(max-width:760px) {
  .customer-body {
    padding-left: 0;
  }
  .workspace-sidebar {
    width: 270px;
    transform: translateX(-100%);
    transition: transform .2s ease;
    padding-top: 25px;
    z-index: 50;
  }
  .sidebar-open .workspace-sidebar {
    transform: translateX(0);
  }
  .customer-body.sidebar-open {
    overflow: hidden;
  }
  .sidebar-close {
    display: grid;
    place-items: center;
    background: transparent;
    border: 0;
    padding: 4px 0 4px 15px;
    color: #cfd0e5;
    font-size: 26px;
    line-height: 1;
  }
  .sidebar-top {
    gap: 10px;
    margin-bottom: 20px;
  }
  .sidebar-help {
    padding-top: 45px;
  }
  .mobile-workspace-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 35;
    background: #1c233f;
    color: #e7e2fb;
    min-height: 59px;
    padding: 10px 20px;
    border-bottom: 1px solid #373d5b;
  }
  .mobile-workspace-bar button {
    display: flex;
    align-items: center;
    gap: 11px;
    background: transparent;
    border: 0;
    color: inherit;
    padding: 7px 0;
    font-size: 12px;
    font-weight: 650;
  }
  .mobile-workspace-bar svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
  }
  .mobile-workspace-bar>span {
    font-size: 13px;
    letter-spacing: 1px;
    font-weight: 750;
  }
  .customer-body .site-header {
    height: 77px;
  }
  .customer-body .hero-grid {
    padding-top: 26px;
    gap: 28px;
    padding-bottom: 30px;
  }
  .customer-body .intro h1 {
    font-size: 38px;
  }
  .customer-body .site-header .header-tag {
    font-size: 8px;
  }
  .workspace-heading {
    padding: 30px 0 22px;
  }
  .workspace-heading h1 {
    font-size: 28px;
    margin-top: 14px;
  }
  .workspace-heading p {
    font-size: 12px;
  }
  .workspace-tool {
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 25px;
  }
  .workspace-input-row {
    flex-direction: column;
    gap: 10px;
  }
  .workspace-input-row button {
    width: 100%;
  }
  .bulk-account {
    padding: 16px;
  }
  .bulk-account-fields {
    grid-template-columns: 1fr;
  }
  .bulk-toolbar .badge {
    font-size: 9px;
  }
  .bulk-submit-controls {
    flex-direction: column;
  }
  .bulk-submit-controls button {
    width: 100%;
  }
  .workspace-main {
    min-height: calc(100dvh - 230px);
  }
  .skip-link {
    left: 12px;
  }
  .customer-body .availability {
    margin-bottom: 24px;
  }
  .workspace-notice {
    top: 68px;
    right: 15px;
  }
  .customer-body .site-footer {
    min-height: 85px;
  }
}

@media(prefers-reduced-motion:reduce) {
  .workspace-view {
    animation: none;
  }
  .workspace-sidebar {
    transition: none;
  }
}
