/* Shared page headings for the customer service and administrator workspaces. */
.role-topbar.role-topbar:is(.topbar,.header) {
  box-sizing: border-box;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: auto;
  min-height: calc(86px + env(safe-area-inset-top,0px));
  padding: calc(13px + env(safe-area-inset-top,0px)) max(20px,env(safe-area-inset-right,0px)) 13px max(20px,env(safe-area-inset-left,0px));
  border: 0;
  background: linear-gradient(180deg,#f7f8fa,#f2f4f7);
  color: #202630;
  box-shadow: none;
}
.role-topbar::before { content: none !important; }
.role-topbar .role-page-heading {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  margin: 0;
  padding: 0;
}
.role-topbar .role-page-badge {
  display: block;
  flex: none;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #9299a5;
  font-size: 10px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 1.5px;
  white-space: nowrap;
  text-shadow: none;
}
.role-page-badge::before { content: none; }
.role-page-badge::after { content: "端"; }
.role-topbar .role-page-name {
  position: relative;
  isolation: isolate;
  display: block;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow: visible;
  color: #202630;
  font-size: 24px;
  font-weight: 750;
  line-height: 33px;
  letter-spacing: .5px;
  white-space: nowrap;
  text-shadow: none;
  animation: role-heading-enter .3s cubic-bezier(.2,.8,.2,1) both;
}
.role-topbar .role-page-name::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: auto;
  right: auto;
  bottom: 3px;
  left: 1px;
  width: 30px;
  height: 7px;
  border-radius: 2px;
  background: linear-gradient(90deg,#e2ee91,#ecf3c3);
  transform: skewX(-16deg);
}
.role-topbar > :is(.state,.count) {
  flex: none;
  margin: 0;
  padding: 7px 11px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}
.workspace .topbar.role-topbar {
  padding-right: max(20px,calc((100% - 1060px)/2),env(safe-area-inset-right,0px));
  padding-left: max(20px,calc((100% - 1060px)/2),env(safe-area-inset-left,0px));
}
.workspace .role-topbar .topbar-actions { gap: 6px; }
.workspace .role-topbar .button,
.dsclub-service-switch.dsclub-identity-switch {
  box-sizing: border-box;
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid #e4e8ed;
  border-radius: 12px;
  background: #ffffffeb;
  color: #5f6977;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 2px 3px #1e2c3b03;
  transition: background .2s,border-color .2s,transform .2s;
}
.workspace .role-topbar #switch-identity::before,
.dsclub-service-switch.dsclub-identity-switch::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background: #7e8794;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h15l-4-4M20 16H5l4 4'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h15l-4-4M20 16H5l4 4'/%3E%3C/svg%3E") center/contain no-repeat;
}
.dsclub-service-switch.dsclub-identity-switch {
  top: calc(25px + env(safe-area-inset-top,0px)) !important;
  right: max(18px,env(safe-area-inset-right,0px)) !important;
  min-width: 94px;
}
.workspace .role-topbar .button:hover,
.dsclub-service-switch.dsclub-identity-switch:hover { background: #fff; border-color: #d2d9e2; }
.workspace .role-topbar .button:active,
.dsclub-service-switch.dsclub-identity-switch:active { transform: scale(.97); }
.workspace[data-page=paymentCenter] .topbar.role-topbar {
  min-height: calc(78px + env(safe-area-inset-top,0px));
  gap: 10px;
  padding-right: max(14px,env(safe-area-inset-right,0px));
  padding-left: max(16px,env(safe-area-inset-left,0px));
}
.workspace[data-page=paymentCenter] .role-topbar .role-page-name { font-size: 22px; }
@keyframes role-heading-enter {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 480px) {
  .role-topbar.role-topbar:is(.topbar,.header) {
    min-height: calc(86px + env(safe-area-inset-top,0px));
    padding-right: max(18px,env(safe-area-inset-right,0px));
    padding-left: max(18px,env(safe-area-inset-left,0px));
  }
  .workspace .topbar.role-topbar {
    padding-right: max(18px,env(safe-area-inset-right,0px));
    padding-left: max(18px,env(safe-area-inset-left,0px));
  }
  .role-topbar .role-page-name { font-size: 23px; }
}
@media (max-width: 359px) {
  .role-topbar.role-topbar:is(.topbar,.header) { gap: 10px; }
  .role-topbar .role-page-name,
  .workspace[data-page=paymentCenter] .role-topbar .role-page-name { font-size: 21px; }
  .workspace .role-topbar .topbar-actions { gap: 4px; }
  .workspace .role-topbar .button { padding-inline: 8px; font-size: 11px; }
  .workspace .role-topbar #switch-identity { gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .role-topbar .role-page-name { animation: none; }
  .workspace .role-topbar .button,
  .dsclub-service-switch.dsclub-identity-switch { transition: none; }
}
