:root {
  --customer-teal: #20e0c4;
  --customer-gold: #f4b947;
  --customer-paper: #07100f;
  --customer-line: rgba(126, 232, 216, 0.24);
}

.customer-service-brand-cluster {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 0 1 auto;
}

.customer-service-brand-cluster > .brand {
  flex: 0 1 auto !important;
  min-width: 0;
}

.topbar.has-customer-service {
  grid-template-columns: minmax(230px, 280px) minmax(360px, 1fr) minmax(130px, 180px);
}

.customer-service-entry {
  display: grid;
  place-items: center;
  gap: 2px;
  width: 58px;
  min-width: 58px;
  min-height: 58px;
  margin-left: 8px;
  padding: 4px 3px;
  border: 1px solid rgba(244, 185, 71, 0.42);
  border-radius: 12px;
  color: #fff6c8;
  background:
    linear-gradient(180deg, rgba(255, 211, 90, 0.16), rgba(32, 224, 196, 0.08)),
    rgba(7, 16, 15, 0.72);
  box-shadow: 0 0 18px rgba(32, 224, 196, 0.12);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  line-height: 1;
}

.customer-service-entry svg {
  width: 26px;
  height: 26px;
  color: var(--customer-teal);
  filter: drop-shadow(0 0 10px rgba(32, 224, 196, 0.35));
}

.customer-service-entry span {
  display: block;
  font-size: 12px;
  letter-spacing: 0;
}

.customer-service-entry:hover,
.customer-service-entry:focus-visible {
  color: #07100f;
  background: linear-gradient(135deg, var(--customer-teal), var(--customer-gold));
  outline: none;
}

.customer-service-entry:hover svg,
.customer-service-entry:focus-visible svg {
  color: #07100f;
}

.safety-guard-entry {
  display: none;
  border-color: rgba(255, 100, 92, 0.72);
  color: #fff4dc;
  background:
    radial-gradient(circle at 25% 10%, rgba(255, 223, 112, 0.34), transparent 32%),
    linear-gradient(145deg, rgba(198, 25, 45, 0.96), rgba(88, 7, 22, 0.94) 58%, rgba(244, 76, 38, 0.72));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 0 20px rgba(255, 42, 62, 0.34),
    0 0 18px rgba(255, 170, 64, 0.16);
}

.safety-guard-overlay[hidden] {
  display: none;
}

.customer-chat-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  padding: 0;
  pointer-events: none;
  background: transparent;
  backdrop-filter: none;
}

.customer-chat-overlay[hidden] {
  display: none;
}

.customer-chat-panel {
  position: fixed;
  left: var(--customer-chat-left, 12px);
  top: var(--customer-chat-top, 12px);
  width: var(--customer-chat-size, 520px);
  height: var(--customer-chat-height, var(--customer-chat-size, 520px));
  min-width: 300px;
  min-height: 300px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 24px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  pointer-events: auto;
  border: 1px solid rgba(126, 232, 216, 0.26);
  border-radius: 18px;
  color: #edf8f6;
  background:
    radial-gradient(circle at 14% 5%, rgba(32, 255, 211, 0.34), transparent 34%),
    radial-gradient(circle at 92% 12%, rgba(255, 211, 75, 0.32), transparent 28%),
    linear-gradient(145deg, rgba(4, 38, 44, 0.98), rgba(12, 58, 42, 0.98) 48%, rgba(72, 46, 8, 0.96));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.52), inset 0 0 38px rgba(32, 224, 196, 0.13);
}

.customer-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--customer-line);
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.customer-chat-panel.is-moving .customer-chat-head {
  cursor: grabbing;
}

.customer-chat-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.customer-chat-title i {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  place-items: center;
  width: 55px;
  height: 55px;
  border-radius: 12px;
  color: #07100f;
  background: linear-gradient(135deg, var(--customer-teal), var(--customer-gold));
  font-size: 15px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.customer-chat-title i span {
  display: grid;
  place-items: center;
}

.customer-chat-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
  color: #fff6c8;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.08;
}

.customer-chat-copy strong,
.customer-chat-copy span {
  display: block;
}

.customer-chat-copy span {
  color: rgba(237, 248, 246, 0.68);
}

.customer-chat-copy .customer-language-tabs {
  margin-top: 2px;
}

.customer-chat-close {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(126, 232, 216, 0.22);
  border-radius: 10px;
  color: #edf8f6;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-size: 20px;
}

.customer-translate-bar {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(126, 232, 216, 0.14);
  background: rgba(255, 255, 255, 0.035);
}

.customer-translate-bar label {
  display: grid;
  gap: 4px;
  color: rgba(237, 248, 246, 0.7);
  font-size: 12px;
  font-weight: 900;
}

.customer-language-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.customer-language-tabs button,
.customer-target-language {
  min-height: 34px;
  border: 1px solid rgba(126, 232, 216, 0.2);
  border-radius: 999px;
  color: #edf8f6;
  background: rgba(255, 255, 255, 0.06);
  font: inherit;
  font-weight: 900;
}

.customer-language-tabs button {
  padding: 0 12px;
  cursor: pointer;
}

.customer-language-tabs button.is-active {
  color: #07100f;
  background: linear-gradient(135deg, var(--customer-teal), var(--customer-gold));
}

.customer-target-language {
  padding: 0 12px;
}

.customer-chat-messages {
  display: grid;
  align-content: start;
  gap: 0.5em;
  overflow-y: auto;
  padding: 10px 12px;
  scrollbar-width: thin;
}

.customer-message {
  width: fit-content;
  max-width: min(76%, 620px);
  display: grid;
  gap: 4px;
  padding: 6px 8px;
  border: 1px solid rgba(126, 232, 216, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 70%;
}

.customer-message.is-me {
  justify-self: end;
  border-color: rgba(244, 185, 71, 0.28);
  background: rgba(244, 185, 71, 0.1);
}

.customer-message b {
  color: #fff6c8;
  font-size: 8px;
}

.customer-message p {
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
}

.customer-attachment {
  display: grid;
  gap: 4px;
}

.customer-attachment img {
  width: min(150px, 100%);
  max-height: 110px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(126, 232, 216, 0.18);
}

.customer-attachment span {
  color: rgba(237, 248, 246, 0.72);
  font-size: 9px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.customer-attachment a {
  color: #22e9d8;
  font-size: 9px;
  font-weight: 800;
  text-decoration: none;
}

.customer-translation {
  padding-top: 4px;
  border-top: 1px dashed rgba(126, 232, 216, 0.18);
  color: rgba(237, 248, 246, 0.72);
  font-size: 8px;
  line-height: 1.35;
}

.customer-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px 72px;
  gap: 8px;
  align-items: center;
  padding: 8px 16px;
  border-top: 1px solid rgba(126, 232, 216, 0.16);
}

.customer-chat-form textarea {
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  resize: none;
  border: 1px solid rgba(126, 232, 216, 0.2);
  border-radius: 10px;
  color: #edf8f6;
  background: rgba(0, 0, 0, 0.28);
  padding: 0 12px;
  font: inherit;
  line-height: 38px;
  overflow-y: hidden;
}

.customer-attach-wrap {
  position: relative;
  height: 40px;
}

.customer-attach-toggle {
  width: 40px;
  height: 40px;
  min-height: 40px;
  border: 1px solid rgba(255, 246, 200, 0.9);
  border-radius: 7px;
  color: #06110f;
  background: linear-gradient(135deg, #fff6c8, #f4b947);
  box-shadow: inset 0 0 0 1px rgba(6, 17, 15, 0.12), 0 0 14px rgba(244, 185, 71, 0.2);
  cursor: pointer;
  font: inherit;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.customer-attach-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 3;
  width: 58px;
  overflow: hidden;
  border: 1px solid rgba(255, 246, 200, 0.45);
  border-radius: 8px;
  background: rgba(255, 246, 200, 0.98);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
}

.customer-attach-menu button {
  width: 100%;
  min-height: 34px;
  border: 0;
  border-bottom: 1px solid rgba(6, 17, 15, 0.12);
  color: #06110f;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
}

.customer-attach-menu button:last-child {
  border-bottom: 0;
}

.customer-send-button {
  height: 40px;
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  color: #07100f;
  background: linear-gradient(135deg, var(--customer-teal), var(--customer-gold));
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.customer-chat-resize {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border: 0;
  border-radius: 0 0 0 18px;
  color: #06110f;
  background: transparent;
  cursor: nesw-resize;
  font: inherit;
  font-size: 0;
  font-weight: 900;
  pointer-events: auto;
  touch-action: none;
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.customer-chat-resize::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
}

.customer-chat-resize::after {
  content: "";
  position: absolute;
  left: 4px;
  bottom: 4px;
  z-index: 1;
  width: 22px;
  height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306110f' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20 12 8M12 8H7M12 8v5M4 20h5M4 20v-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.customer-chat-resize .resize-arrow {
  display: none;
}

.customer-chat-panel.is-resizing {
  cursor: nesw-resize;
}

@media (max-width: 767px) {
  .marketplace-screen .site-header.has-customer-service {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px;
    min-height: 54px;
    padding: 5px 8px;
    overflow: hidden;
  }

  .marketplace-screen .site-header.has-customer-service > * {
    min-width: 0;
  }

  .marketplace-screen .site-header.has-customer-service .customer-service-brand-cluster {
    flex: 1 1 auto;
    gap: 4px;
    min-width: 0;
    max-width: calc(100% - 132px);
    overflow: hidden;
  }

  .marketplace-screen .site-header.has-customer-service .customer-service-brand-cluster > .brand {
    flex: 0 1 auto !important;
    gap: 6px;
    min-width: 0;
  }

  .marketplace-screen .site-header.has-customer-service .brand-logo {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
  }

  .marketplace-screen .site-header.has-customer-service .brand span {
    min-width: 0;
    overflow: hidden;
  }

  .marketplace-screen .site-header.has-customer-service .brand strong {
    display: block;
    max-width: 66px;
    overflow: hidden;
    font-size: 16px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .marketplace-screen .site-header.has-customer-service .customer-service-entry {
    flex: 0 0 42px;
    width: 42px;
    min-width: 42px;
    min-height: 42px;
    margin-left: 0;
    padding: 2px;
    border-radius: 9px;
  }

  .marketplace-screen .site-header.has-customer-service .customer-service-entry svg {
    width: 19px;
    height: 19px;
  }

  .marketplace-screen .site-header.has-customer-service .customer-service-entry span {
    overflow: hidden;
    max-width: 100%;
    font-size: 10px;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .marketplace-screen .site-header.has-customer-service .safety-guard-entry {
    flex: 0 0 58px;
    width: 58px;
    min-width: 58px;
    min-height: 42px;
    padding: 2px 3px;
    border-radius: 9px;
  }

  .marketplace-screen .site-header.has-customer-service .safety-guard-entry svg {
    width: 16px;
    height: 16px;
  }

  .marketplace-screen .site-header.has-customer-service .safety-guard-entry span,
  .marketplace-screen .site-header.has-customer-service .safety-guard-entry small {
    overflow: hidden;
    max-width: 100%;
    line-height: 1;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .marketplace-screen .site-header.has-customer-service .safety-guard-entry span {
    font-size: 9px;
  }

  .marketplace-screen .site-header.has-customer-service .safety-guard-entry small {
    font-size: 8px;
  }

  .marketplace-screen .site-header.has-customer-service .header-actions {
    flex: 0 0 auto;
    width: auto;
    gap: 4px;
    margin-left: 0;
    overflow: hidden;
  }

  .marketplace-screen .site-header.has-customer-service .header-actions .link-button,
  .marketplace-screen .site-header.has-customer-service .header-actions .primary-button,
  .marketplace-screen .site-header.has-customer-service .header-actions .ghost-button,
  .marketplace-screen .site-header.has-customer-service .header-actions button {
    width: 62px;
    min-width: 0;
    min-height: 42px;
    padding: 0 5px;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.05;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .publish-screen .site-header.has-customer-service {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px;
    min-height: 56px;
    padding: 5px 8px;
    overflow: hidden;
  }

  .publish-screen .site-header.has-customer-service > * {
    min-width: 0;
  }

  .publish-screen .site-header.has-customer-service .customer-service-brand-cluster {
    flex: 1 1 auto;
    gap: 4px;
    min-width: 0;
    max-width: calc(100% - 126px);
    overflow: hidden;
  }

  .publish-screen .site-header.has-customer-service .customer-service-brand-cluster > .brand {
    flex: 0 1 auto !important;
    gap: 5px;
    min-width: 0;
  }

  .publish-screen .site-header.has-customer-service .brand-logo {
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
  }

  .publish-screen .site-header.has-customer-service .brand span {
    min-width: 0;
    overflow: hidden;
  }

  .publish-screen .site-header.has-customer-service .brand strong {
    display: block;
    max-width: 54px;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .publish-screen .site-header.has-customer-service .customer-service-entry {
    flex: 0 0 38px;
    width: 38px;
    min-width: 38px;
    min-height: 40px;
    margin-left: 0;
    padding: 2px;
    border-radius: 9px;
  }

  .publish-screen .site-header.has-customer-service .customer-service-entry svg {
    width: 17px;
    height: 17px;
  }

  .publish-screen .site-header.has-customer-service .customer-service-entry span {
    overflow: hidden;
    max-width: 100%;
    font-size: 9px;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .publish-screen .site-header.has-customer-service .safety-guard-entry {
    flex: 0 0 52px;
    width: 52px;
    min-width: 52px;
    min-height: 40px;
    padding: 2px 3px;
    border-radius: 9px;
  }

  .publish-screen .site-header.has-customer-service .safety-guard-entry svg {
    width: 15px;
    height: 15px;
  }

  .publish-screen .site-header.has-customer-service .safety-guard-entry span,
  .publish-screen .site-header.has-customer-service .safety-guard-entry small {
    overflow: hidden;
    max-width: 100%;
    line-height: 1;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .publish-screen .site-header.has-customer-service .safety-guard-entry span {
    font-size: 8px;
  }

  .publish-screen .site-header.has-customer-service .safety-guard-entry small {
    font-size: 7px;
  }

  .publish-screen .site-header.has-customer-service .header-actions {
    flex: 0 0 auto;
    width: auto;
    gap: 4px;
    margin-left: 0;
    overflow: hidden;
  }

  .publish-screen .site-header.has-customer-service .header-actions .link-button,
  .publish-screen .site-header.has-customer-service .header-actions .primary-button,
  .publish-screen .site-header.has-customer-service .header-actions .ghost-button,
  .publish-screen .site-header.has-customer-service .header-actions button {
    width: 58px;
    min-width: 0;
    min-height: 40px;
    padding: 0 4px;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.05;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .publish-screen .site-header.has-customer-service + .publish-page {
    padding-top: 14px;
  }

  .home-page .customer-service-entry {
    min-height: 44px;
    width: 44px;
    min-width: 44px;
    padding: 3px 2px;
  }

  .home-page .customer-service-entry span {
    line-height: 1;
  }

  .customer-service-brand-cluster {
    gap: 6px;
  }

  .topbar.has-customer-service {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .customer-service-entry {
    width: 46px;
    min-width: 46px;
    min-height: 46px;
    border-radius: 10px;
  }

  .customer-service-entry svg {
    width: 21px;
    height: 21px;
  }

  .customer-service-entry span {
    font-size: 10px;
  }

  body:not(.home-page):not(.marketplace-screen):not(.publish-screen) .site-header.has-customer-service {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px;
    min-height: 52px;
    padding: 5px 7px;
    overflow: hidden;
  }

  body:not(.home-page):not(.marketplace-screen):not(.publish-screen) .site-header.has-customer-service > * {
    min-width: 0;
  }

  body:not(.home-page):not(.marketplace-screen):not(.publish-screen) .site-header.has-customer-service .customer-service-brand-cluster {
    flex: 1 1 auto;
    gap: 4px;
    min-width: 0;
    overflow: hidden;
  }

  body:not(.home-page):not(.marketplace-screen):not(.publish-screen) .site-header.has-customer-service .customer-service-brand-cluster > .brand {
    flex: 0 1 auto !important;
    gap: 5px;
    min-width: 0;
    overflow: hidden;
  }

  body:not(.home-page):not(.marketplace-screen):not(.publish-screen) .site-header.has-customer-service .brand-logo {
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    border-radius: 7px;
  }

  body:not(.home-page):not(.marketplace-screen):not(.publish-screen) .site-header.has-customer-service .brand span {
    min-width: 0;
    overflow: hidden;
  }

  body:not(.home-page):not(.marketplace-screen):not(.publish-screen) .site-header.has-customer-service .brand strong {
    display: block;
    max-width: 58px;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body:not(.home-page):not(.marketplace-screen):not(.publish-screen) .site-header.has-customer-service .brand small {
    display: none;
  }

  body:not(.home-page):not(.marketplace-screen):not(.publish-screen) .site-header.has-customer-service .customer-service-entry {
    flex: 0 0 36px;
    width: 36px;
    min-width: 36px;
    min-height: 38px;
    margin-left: 0;
    padding: 2px;
    border-radius: 8px;
  }

  body:not(.home-page):not(.marketplace-screen):not(.publish-screen) .site-header.has-customer-service .customer-service-entry svg {
    width: 16px;
    height: 16px;
  }

  body:not(.home-page):not(.marketplace-screen):not(.publish-screen) .site-header.has-customer-service .customer-service-entry span {
    overflow: hidden;
    max-width: 100%;
    font-size: 9px;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body:not(.home-page):not(.marketplace-screen):not(.publish-screen) .site-header.has-customer-service .safety-guard-entry {
    flex: 0 0 50px;
    width: 50px;
    min-width: 50px;
    min-height: 38px;
    margin-left: 0;
    padding: 2px;
    border-radius: 8px;
  }

  body:not(.home-page):not(.marketplace-screen):not(.publish-screen) .site-header.has-customer-service .safety-guard-entry svg {
    width: 14px;
    height: 14px;
  }

  body:not(.home-page):not(.marketplace-screen):not(.publish-screen) .site-header.has-customer-service .safety-guard-entry span,
  body:not(.home-page):not(.marketplace-screen):not(.publish-screen) .site-header.has-customer-service .safety-guard-entry small {
    overflow: hidden;
    max-width: 100%;
    line-height: 1;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body:not(.home-page):not(.marketplace-screen):not(.publish-screen) .site-header.has-customer-service .safety-guard-entry span {
    font-size: 8px;
  }

  body:not(.home-page):not(.marketplace-screen):not(.publish-screen) .site-header.has-customer-service .safety-guard-entry small {
    font-size: 7px;
  }

  body:not(.home-page):not(.marketplace-screen):not(.publish-screen) .site-header.has-customer-service .header-actions {
    flex: 0 0 auto;
    width: auto;
    gap: 3px;
    margin-left: 0;
    overflow: hidden;
  }

  body:not(.home-page):not(.marketplace-screen):not(.publish-screen) .site-header.has-customer-service .header-actions .link-button,
  body:not(.home-page):not(.marketplace-screen):not(.publish-screen) .site-header.has-customer-service .header-actions .primary-button,
  body:not(.home-page):not(.marketplace-screen):not(.publish-screen) .site-header.has-customer-service .header-actions .ghost-button,
  body:not(.home-page):not(.marketplace-screen):not(.publish-screen) .site-header.has-customer-service .header-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    min-width: 0;
    min-height: 38px;
    padding: 0 4px;
    overflow: hidden;
    font-size: 10px;
    line-height: 1.05;
    text-align: center;
    text-overflow: ellipsis;
    white-space: normal;
  }

  .topbar.has-customer-service .customer-service-brand-cluster {
    grid-column: 1;
    grid-row: 1;
    gap: 5px;
    min-width: 0;
    overflow: visible;
  }

  .topbar.has-customer-service .customer-service-brand-cluster > .brand {
    flex: 0 0 auto !important;
    gap: 5px;
    min-width: 0;
    overflow: visible;
  }

  .topbar.has-customer-service .brand-logo {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 7px;
  }

  .topbar.has-customer-service .brand-text,
  .topbar.has-customer-service .brand span {
    display: block;
    width: 5em;
    max-width: 5em;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar.has-customer-service .customer-service-entry {
    flex: 0 0 36px;
    width: 36px;
    min-width: 36px;
    min-height: 38px;
    margin-left: 0;
    padding: 2px;
    border-radius: 8px;
  }

  .topbar.has-customer-service .customer-service-entry svg {
    width: 16px;
    height: 16px;
  }

  .topbar.has-customer-service .customer-service-entry span {
    overflow: hidden;
    max-width: 100%;
    font-size: 9px;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar.has-customer-service .safety-guard-entry {
    flex: 0 0 50px;
    width: 50px;
    min-width: 50px;
    min-height: 38px;
    margin-left: 0;
    padding: 2px;
    border-radius: 8px;
  }

  .topbar.has-customer-service .safety-guard-entry svg {
    width: 14px;
    height: 14px;
  }

  .topbar.has-customer-service .safety-guard-entry span,
  .topbar.has-customer-service .safety-guard-entry small {
    overflow: hidden;
    max-width: 100%;
    line-height: 1;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar.has-customer-service .safety-guard-entry span {
    font-size: 8px;
  }

  .topbar.has-customer-service .safety-guard-entry small {
    font-size: 7px;
  }

  .topbar.has-customer-service .back-button {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    min-width: 80px;
    width: 80px;
    height: 38px;
    min-height: 38px;
    padding: 0 5px;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.05;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar.has-customer-service .back-button span:not(.back-icon) {
    white-space: nowrap;
  }

}

@media (max-width: 390px) {
  .marketplace-screen .site-header.has-customer-service {
    gap: 3px;
    padding-inline: 6px;
  }

  .marketplace-screen .site-header.has-customer-service .customer-service-brand-cluster {
    max-width: calc(100% - 118px);
    gap: 3px;
  }

  .marketplace-screen .site-header.has-customer-service .brand-logo {
    width: 31px;
    height: 31px;
    flex-basis: 31px;
  }

  .marketplace-screen .site-header.has-customer-service .brand strong {
    max-width: 54px;
    font-size: 14px;
  }

  .marketplace-screen .site-header.has-customer-service .customer-service-entry {
    flex-basis: 38px;
    width: 38px;
    min-width: 38px;
    min-height: 40px;
  }

  .marketplace-screen .site-header.has-customer-service .customer-service-entry svg {
    width: 17px;
    height: 17px;
  }

  .marketplace-screen .site-header.has-customer-service .customer-service-entry span {
    font-size: 9px;
  }

  .marketplace-screen .site-header.has-customer-service .safety-guard-entry {
    flex-basis: 52px;
    width: 52px;
    min-width: 52px;
    min-height: 40px;
  }

  .marketplace-screen .site-header.has-customer-service .header-actions .link-button,
  .marketplace-screen .site-header.has-customer-service .header-actions .primary-button,
  .marketplace-screen .site-header.has-customer-service .header-actions .ghost-button,
  .marketplace-screen .site-header.has-customer-service .header-actions button {
    width: 56px;
    min-height: 40px;
    padding-inline: 4px;
    font-size: 11px;
  }

  .publish-screen .site-header.has-customer-service {
    gap: 3px;
    padding-inline: 6px;
  }

  .publish-screen .site-header.has-customer-service .customer-service-brand-cluster {
    max-width: calc(100% - 112px);
    gap: 3px;
  }

  .publish-screen .site-header.has-customer-service .brand-logo {
    width: 29px;
    height: 29px;
    flex-basis: 29px;
  }

  .publish-screen .site-header.has-customer-service .brand strong {
    max-width: 48px;
    font-size: 13px;
  }

  .publish-screen .site-header.has-customer-service .customer-service-entry {
    flex-basis: 36px;
    width: 36px;
    min-width: 36px;
    min-height: 38px;
  }

  .publish-screen .site-header.has-customer-service .safety-guard-entry {
    flex-basis: 50px;
    width: 50px;
    min-width: 50px;
    min-height: 38px;
  }

  .publish-screen .site-header.has-customer-service .header-actions .link-button,
  .publish-screen .site-header.has-customer-service .header-actions .primary-button,
  .publish-screen .site-header.has-customer-service .header-actions .ghost-button,
  .publish-screen .site-header.has-customer-service .header-actions button {
    width: 52px;
    min-height: 38px;
    padding-inline: 3px;
    font-size: 10px;
  }

  body:not(.home-page):not(.marketplace-screen):not(.publish-screen) .site-header.has-customer-service {
    gap: 3px;
    padding-inline: 6px;
  }

  body:not(.home-page):not(.marketplace-screen):not(.publish-screen) .site-header.has-customer-service .customer-service-brand-cluster {
    gap: 3px;
  }

  body:not(.home-page):not(.marketplace-screen):not(.publish-screen) .site-header.has-customer-service .brand-logo {
    width: 29px;
    height: 29px;
    flex-basis: 29px;
  }

  body:not(.home-page):not(.marketplace-screen):not(.publish-screen) .site-header.has-customer-service .brand strong {
    max-width: 52px;
    font-size: 12.5px;
  }

  body:not(.home-page):not(.marketplace-screen):not(.publish-screen) .site-header.has-customer-service .customer-service-entry {
    flex-basis: 34px;
    width: 34px;
    min-width: 34px;
    min-height: 36px;
  }

  body:not(.home-page):not(.marketplace-screen):not(.publish-screen) .site-header.has-customer-service .safety-guard-entry {
    flex-basis: 48px;
    width: 48px;
    min-width: 48px;
    min-height: 36px;
  }

  body:not(.home-page):not(.marketplace-screen):not(.publish-screen) .site-header.has-customer-service .header-actions .link-button,
  body:not(.home-page):not(.marketplace-screen):not(.publish-screen) .site-header.has-customer-service .header-actions .primary-button,
  body:not(.home-page):not(.marketplace-screen):not(.publish-screen) .site-header.has-customer-service .header-actions .ghost-button,
  body:not(.home-page):not(.marketplace-screen):not(.publish-screen) .site-header.has-customer-service .header-actions button {
    width: 48px;
    min-height: 36px;
    padding-inline: 3px;
    font-size: 9px;
  }

  .topbar.has-customer-service .customer-service-brand-cluster {
    gap: 3px;
  }

  .topbar.has-customer-service .brand-logo {
    width: 31px;
    height: 31px;
    flex-basis: 31px;
  }

  .topbar.has-customer-service .brand-text,
  .topbar.has-customer-service .brand span {
    width: 5em;
    max-width: 5em;
    font-size: 13px;
  }

  .topbar.has-customer-service .customer-service-entry {
    flex-basis: 34px;
    width: 34px;
    min-width: 34px;
    min-height: 36px;
  }

  .topbar.has-customer-service .safety-guard-entry {
    flex-basis: 48px;
    width: 48px;
    min-width: 48px;
    min-height: 36px;
  }

  .topbar.has-customer-service .back-button {
    min-width: 76px;
    width: 76px;
    height: 36px;
    min-height: 36px;
    padding-inline: 4px;
    font-size: 10px;
    white-space: nowrap;
  }
}

.safety-guard-entry {
    display: grid;
    place-items: center;
    gap: 1px;
    width: 72px;
    min-width: 72px;
    min-height: 46px;
    padding: 3px 4px;
    border: 1px solid rgba(255, 85, 85, 0.52);
    border-radius: 10px;
    color: #fff2df;
    background:
      linear-gradient(180deg, rgba(255, 85, 85, 0.22), rgba(244, 185, 71, 0.1)),
      rgba(7, 16, 15, 0.76);
    box-shadow: 0 0 16px rgba(255, 85, 85, 0.14);
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    line-height: 1;
  }

  .safety-guard-entry svg {
    width: 18px;
    height: 18px;
    color: #ffef87;
  }

  .safety-guard-entry span,
  .safety-guard-entry small {
    display: block;
    letter-spacing: 0;
  }

  .safety-guard-entry span {
    font-size: 10px;
  }

  .safety-guard-entry small {
    font-size: 9px;
  }

@media (min-width: 768px) {
  .site-header.has-customer-service {
    justify-content: flex-start;
    gap: clamp(10px, 2vw, 24px);
    min-width: 0;
    overflow: visible;
  }

  .site-header.has-customer-service > *,
  .topbar.has-customer-service > * {
    min-width: 0;
  }

  .site-header.has-customer-service .customer-service-brand-cluster {
    flex: 1 1 auto;
    max-width: 100%;
    min-width: 0;
    gap: 8px;
  }

  .site-header.has-customer-service .customer-service-brand-cluster > .brand,
  .topbar.has-customer-service .customer-service-brand-cluster > .brand {
    flex: 0 1 auto !important;
    min-width: 0;
  }

  .site-header.has-customer-service .brand span,
  .topbar.has-customer-service .brand span,
  .topbar.has-customer-service .brand-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-header.has-customer-service .brand strong {
    max-width: clamp(88px, 14vw, 168px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-header.has-customer-service .brand-logo {
    width: clamp(46px, 4.5vw, 60px);
    height: clamp(46px, 4.5vw, 60px);
    flex-basis: clamp(46px, 4.5vw, 60px);
  }

  .site-header.has-customer-service .header-actions {
    flex: 0 1 auto;
    justify-content: flex-end;
    margin-left: auto;
    min-width: 0;
    gap: 8px;
  }

  .site-header.has-customer-service .header-actions .link-button,
  .site-header.has-customer-service .header-actions .primary-button,
  .site-header.has-customer-service .header-actions .ghost-button,
  .site-header.has-customer-service .header-actions button {
    min-width: 0;
    padding-inline: clamp(9px, 1.2vw, 16px);
    white-space: nowrap;
  }

  .site-header.has-customer-service .customer-service-entry,
  .topbar.has-customer-service .customer-service-entry {
    width: 54px;
    min-width: 54px;
    min-height: 54px;
    margin-left: 0;
  }

  .site-header.has-customer-service .customer-service-entry svg,
  .topbar.has-customer-service .customer-service-entry svg {
    width: 23px;
    height: 23px;
  }

  .site-header.has-customer-service .safety-guard-entry,
  .topbar.has-customer-service .safety-guard-entry {
    width: 68px;
    min-width: 68px;
    min-height: 46px;
  }

  .topbar.has-customer-service {
    height: auto;
    min-height: 76px;
    grid-template-columns: minmax(300px, max-content) minmax(300px, 1fr) minmax(118px, auto);
    align-items: center;
    overflow: visible;
  }

  .topbar.has-customer-service .customer-service-brand-cluster {
    width: 100%;
    max-width: 100%;
  }

  .topbar.has-customer-service .brand-text {
    max-width: 120px;
  }

  .topbar.has-customer-service .search-group {
    min-width: 0;
  }

  .topbar.has-customer-service .back-button {
    justify-self: end;
    min-width: 112px;
  }
}

@media (min-width: 768px) and (max-width: 1100px) {
  .site-header.has-customer-service {
    gap: 8px;
    padding-inline: clamp(12px, 2vw, 24px);
  }

  .site-header.has-customer-service .customer-service-brand-cluster {
    gap: 6px;
  }

  .site-header.has-customer-service .brand-logo {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .site-header.has-customer-service .brand strong {
    max-width: 104px;
    font-size: 16px;
  }

  .site-header.has-customer-service .customer-service-entry {
    width: 48px;
    min-width: 48px;
    min-height: 48px;
  }

  .site-header.has-customer-service .customer-service-entry svg {
    width: 20px;
    height: 20px;
  }

  .site-header.has-customer-service .customer-service-entry span {
    font-size: 10px;
  }

  .site-header.has-customer-service .safety-guard-entry {
    width: 62px;
    min-width: 62px;
    min-height: 44px;
  }

  .site-header.has-customer-service .header-actions {
    gap: 6px;
  }

  .site-header.has-customer-service .header-actions .link-button,
  .site-header.has-customer-service .header-actions .primary-button,
  .site-header.has-customer-service .header-actions .ghost-button,
  .site-header.has-customer-service .header-actions button {
    padding-inline: 8px;
    font-size: 12px;
  }
}

@media (min-width: 768px) and (max-width: 980px) {
  .topbar.has-customer-service {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand back"
      "search search";
    gap: 10px 14px;
    padding: 12px 18px;
  }

  .topbar.has-customer-service .customer-service-brand-cluster {
    grid-area: brand;
  }

  .topbar.has-customer-service .search-group {
    grid-area: search;
    width: 100%;
  }

  .topbar.has-customer-service .back-button {
    grid-area: back;
    min-width: 108px;
  }
}

  .safety-guard-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    padding: 8px;
    background: rgba(0, 0, 0, 0.44);
    backdrop-filter: blur(8px);
  }

  .safety-guard-panel {
    position: relative;
    width: 100%;
    height: min(100%, calc(100svh - 16px));
    display: block;
    overflow: hidden;
    border: 1px solid rgba(255, 211, 90, 0.32);
    border-radius: 16px;
    color: #f6fffb;
    background:
      radial-gradient(circle at 10% 0%, rgba(255, 85, 85, 0.28), transparent 32%),
      radial-gradient(circle at 90% 8%, rgba(32, 224, 196, 0.22), transparent 28%),
      linear-gradient(145deg, rgba(4, 22, 22, 0.98), rgba(31, 29, 16, 0.98));
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
  }

  .safety-guard-head {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    padding: 0;
    border-bottom: 0;
  }

  .safety-guard-head strong,
  .safety-guard-head span {
    display: block;
  }

  .safety-guard-head strong {
    color: #ffef87;
    font-size: 18px;
  }

  .safety-guard-head span {
    margin-top: 3px;
    color: rgba(246, 255, 251, 0.66);
    font-size: 12px;
  }

  .safety-guard-close {
    width: 36px;
    height: 36px;
    min-height: 36px;
    border: 1px solid rgba(255, 211, 90, 0.24);
    border-radius: 10px;
    color: #f6fffb;
    background: rgba(255, 255, 255, 0.07);
    font-size: 22px;
  }

  .safety-guard-overlay[data-safety-view="detail"][data-safety-detail-type="final"] .safety-guard-close,
  .safety-guard-overlay[data-safety-view="detail"][data-safety-detail-type="initial"] .safety-guard-close,
  .safety-guard-overlay[data-safety-view="detail"][data-safety-detail-type="personal"] .safety-guard-close {
    display: none;
  }

  .safety-guard-body {
    height: 100%;
    min-height: 0;
    display: grid;
    gap: 8px;
    padding: 10px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .safety-guard-body > section > .safety-guard-status:first-child {
    padding-right: 56px;
  }

  .safety-password-login[hidden],
  .safety-password-dashboard[hidden],
  .safety-guard-home[hidden],
  .safety-home-detail[hidden],
  .safety-ultimate-alarm[hidden] {
    display: none !important;
  }

  .safety-password-login,
  .safety-password-dashboard,
  .safety-guard-home,
  .safety-home-detail,
  .safety-ultimate-alarm {
    min-height: 100%;
    display: grid;
    align-content: start;
    gap: 9px;
  }

  .safety-guard-status,
  .safety-home-notice,
  .safety-guard-location,
  .safety-guard-preview,
  .safety-guard-form label,
  .safety-password-form label,
  .safety-password-setup label,
  .safety-ultimate-alarm {
    border: 1px solid rgba(126, 232, 216, 0.16);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.055);
  }

  .safety-guard-status {
    display: grid;
    gap: 3px;
    padding: 9px 10px;
  }

  .safety-guard-status strong {
    color: #ffef87;
    font-size: 17px;
  }

  .safety-guard-status span {
    color: rgba(246, 255, 251, 0.72);
    font-size: 12px;
  }

  .safety-guard-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .safety-guard-form label {
    display: grid;
    gap: 4px;
    padding: 7px;
  }

  .safety-guard-form label span,
  .safety-guard-location strong,
  .safety-guard-preview strong {
    color: #20e0c4;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.2;
  }

  .safety-guard-form input,
  .safety-guard-form textarea,
  .safety-password-form input,
  .safety-password-setup input,
  .safety-guard-preview textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(126, 232, 216, 0.18);
    border-radius: 8px;
    color: #f6fffb;
    background: rgba(1, 8, 10, 0.58);
    font: inherit;
    font-size: 13px;
  }

  .safety-password-form,
  .safety-password-setup {
    display: grid;
    gap: 8px;
  }

  .safety-password-setup {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .safety-password-form label,
  .safety-password-setup label {
    display: grid;
    gap: 5px;
    padding: 8px;
  }

  .safety-password-form label span,
  .safety-password-setup label span,
  .safety-ultimate-alarm strong {
    color: #20e0c4;
    font-size: 12px;
    font-weight: 900;
  }

  .safety-guard-form input {
    min-height: 34px;
    padding: 0 7px;
  }

  .safety-password-form input,
  .safety-password-setup input {
    min-height: 40px;
    padding: 0 10px;
  }

  .safety-guard-form textarea {
    min-height: 70px;
    padding: 9px;
    resize: vertical;
  }

  .safety-guard-wide {
    grid-column: 1 / -1;
  }

  .safety-guard-location,
  .safety-guard-preview {
    display: grid;
    gap: 7px;
    padding: 9px 10px;
  }

  .safety-guard-location p {
    margin: 0;
    color: rgba(246, 255, 251, 0.74);
    font-size: 12px;
    line-height: 1.5;
  }

  .safety-guard-location a {
    color: #ffef87;
  }

  .safety-guard-location button,
  .safety-guard-send-row a,
  .safety-guard-send-row button,
  .safety-guard-actions button,
  .safety-password-form button,
  .safety-password-actions button,
  .safety-home-menu button,
  .safety-home-login-chip,
  .safety-home-entry-button,
  .safety-home-back,
  [data-safety-detail-save],
  .safety-home-detail-back,
  .safety-ultimate-alarm button {
    min-height: 38px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(255, 211, 90, 0.28);
    border-radius: 9px;
    color: #06110f;
    background: linear-gradient(135deg, #20e0c4, #f4b947);
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
  }

  .safety-guard-location button.secondary,
  .safety-guard-actions button.secondary,
  .safety-password-actions button.secondary,
  .safety-home-back.secondary,
  .safety-home-detail-back.secondary {
    color: #f6fffb;
    background: rgba(255, 255, 255, 0.07);
  }

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

  .safety-password-actions button[hidden] {
    display: none !important;
  }

  .safety-home-entry-button {
    width: 100%;
  }

  .safety-home-menu {
    display: grid;
    gap: 7px;
  }

  .safety-home-menu button {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 42px;
    padding: 8px 54px 8px 10px;
    line-height: 1.35;
    white-space: normal;
    text-align: center;
  }

  .safety-home-header-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 8px;
  }

  .safety-home-title {
    min-width: 0;
    display: grid;
    gap: 3px;
  }

  .safety-home-login-chip {
    width: 150px;
    max-width: 45vw;
    min-height: 45px;
    padding: 3px 4px;
    border-color: rgba(255, 239, 135, 0.48);
    color: #f3d77c;
    background:
      radial-gradient(circle at 18% 18%, rgba(255, 239, 135, 0.22), transparent 34%),
      radial-gradient(circle at 82% 8%, rgba(32, 224, 196, 0.2), transparent 32%),
      linear-gradient(145deg, rgba(9, 32, 31, 0.96), rgba(28, 24, 14, 0.96));
    box-shadow:
      inset 0 0 0 1px rgba(32, 224, 196, 0.14),
      inset 0 -10px 22px rgba(255, 239, 135, 0.08),
      0 8px 18px rgba(0, 0, 0, 0.22);
    font-size: 8px;
    line-height: 1.08;
    white-space: normal;
    text-align: center;
  }

  .safety-home-login-chip span {
    display: block;
    text-align: center;
  }

  .safety-home-white {
    color: #ffffff;
    white-space: nowrap;
  }

  .safety-home-alert-button,
  .safety-home-ultimate-button {
    min-height: 66px;
    gap: 3px;
  }

  .safety-home-main,
  .safety-home-note {
    display: block;
  }

  .safety-home-main {
    font-size: 13px;
    font-weight: 900;
  }

  .safety-home-emphasis {
    font-size: 16px;
    font-weight: 950;
  }

  .safety-home-note {
    font-size: 11px;
    line-height: 1.35;
  }

  .safety-home-status-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 0 9px 0 28px;
    color: #fff;
    background: linear-gradient(135deg, #ff4b4b, #b00020);
    box-shadow:
      inset 0 -1px 0 rgba(255, 255, 255, 0.24),
      0 4px 10px rgba(0, 0, 0, 0.22);
    font-size: 10px;
    font-weight: 950;
    line-height: 1;
  }

  .safety-home-status-button[data-safety-complete="true"] .safety-home-status-badge {
    background: linear-gradient(135deg, #22d68d, #058a51);
  }

  .safety-home-fill-rule {
    margin: 0;
    padding: 7px 9px;
    border: 1px solid rgba(255, 239, 135, 0.22);
    border-radius: 8px;
    color: rgba(246, 255, 251, 0.82);
    background: rgba(255, 255, 255, 0.045);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.45;
  }

  .safety-home-fill-rule strong {
    color: #ffef87;
  }

  .safety-home-countdown-zone {
    min-height: 220px;
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 7px;
    padding: 6px 0 10px;
  }

  .safety-home-countdown-circle {
    position: relative;
    isolation: isolate;
    overflow: visible;
    width: min(62vw, 204px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    border: 1px solid rgba(255, 239, 135, 0.46);
    border-radius: 50%;
    color: #06110f;
    background:
      radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.92), transparent 20%),
      radial-gradient(circle at 70% 76%, rgba(255, 239, 135, 0.82), transparent 28%),
      linear-gradient(135deg, #20e0c4, #f4b947);
    box-shadow:
      inset 0 0 0 8px rgba(255, 255, 255, 0.14),
      0 0 28px rgba(32, 224, 196, 0.24),
      0 18px 34px rgba(0, 0, 0, 0.34);
    font: inherit;
    text-align: center;
  }

  .safety-home-countdown-circle::before {
    content: "";
    position: absolute;
    inset: -7px;
    z-index: 0;
    padding: 5px;
    border-radius: 50%;
    background: conic-gradient(
      from 0deg,
      rgba(255, 239, 135, 0.08),
      #ffef87,
      #20e0c4,
      rgba(255, 255, 255, 0.85),
      #ffef87,
      rgba(255, 239, 135, 0.08)
    );
    pointer-events: none;
    animation: safetyCountdownRingSpin 2.8s linear infinite;
    -webkit-mask:
      linear-gradient(#000 0 0) content-box,
      linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
  }

  .safety-home-countdown-circle[data-safety-ready="false"]::before {
    background: conic-gradient(
      from 0deg,
      rgba(255, 75, 75, 0.08),
      #ff5a5a,
      #ffef87,
      rgba(255, 255, 255, 0.72),
      #ff5a5a,
      rgba(255, 75, 75, 0.08)
    );
  }

  @keyframes safetyCountdownRingSpin {
    to {
      transform: rotate(360deg);
    }
  }

  .safety-home-countdown-circle > span,
  .safety-home-countdown-circle > small {
    position: relative;
    z-index: 1;
  }

  .safety-home-countdown-circle span {
    width: 100%;
    color: transparent;
    background: linear-gradient(90deg, #06110f, #ffef87, #20e0c4, #ffffff, #f4b947, #06110f);
    background-size: 360% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 5px rgba(255, 239, 135, 0.36));
    font-size: clamp(46px, 12vw, 52px);
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1;
    animation:
      safetyProtectTextFlash 1s steps(2, end) infinite,
      safetyProtectTextGradient 2.4s linear infinite;
  }

  @keyframes safetyProtectTextFlash {
    0%,
    49% {
      opacity: 1;
    }

    50%,
    100% {
      opacity: 0.32;
    }
  }

  @keyframes safetyProtectTextGradient {
    to {
      background-position: 360% 0;
    }
  }

  .safety-home-countdown-circle small {
    max-width: 78%;
    color: rgba(6, 17, 15, 0.72);
    font-size: 11px;
    font-weight: 900;
    line-height: 1.35;
  }

  .safety-home-countdown-circle[data-safety-ready="false"] {
    color: rgba(246, 255, 251, 0.92);
    background:
      radial-gradient(circle at 26% 22%, rgba(255, 255, 255, 0.2), transparent 20%),
      linear-gradient(135deg, rgba(255, 75, 75, 0.76), rgba(46, 20, 20, 0.9));
  }

  .safety-home-countdown-circle[data-safety-ready="false"] small {
    color: rgba(246, 255, 251, 0.76);
  }

  .safety-home-countdown-circle[data-safety-active="true"] {
    padding: 28px 18px;
    color: #f6fffb;
    background:
      radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.18), transparent 23%),
      radial-gradient(circle at 50% 62%, rgba(255, 75, 75, 0.34), transparent 42%),
      linear-gradient(145deg, rgba(18, 48, 38, 0.96), rgba(59, 8, 12, 0.94));
  }

  .safety-home-circle-countdowns {
    position: relative;
    z-index: 1;
    width: min(82%, 178px);
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
    gap: 4px;
    padding: 10px 8px;
    border: 1px solid rgba(255, 239, 135, 0.2);
    border-radius: 18px;
    background: rgba(1, 8, 10, 0.42);
    box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.28);
  }

  .safety-home-circle-countdowns[hidden] {
    display: none !important;
  }

  .safety-home-circle-countdowns b {
    color: #20e0c4;
    font-size: 11px;
    font-weight: 950;
    line-height: 1;
  }

  .safety-home-circle-countdowns strong {
    color: #ffef87;
    font-size: clamp(14px, 4vw, 17px);
    font-weight: 950;
    line-height: 1.12;
    text-shadow: 0 0 10px rgba(255, 239, 135, 0.2);
  }

  .safety-home-countdown-panel {
    width: 100%;
    display: grid;
    gap: 8px;
    padding: 9px;
    border: 1px solid rgba(126, 232, 216, 0.18);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.055);
  }

  .safety-home-countdown-panel[hidden] {
    display: none !important;
  }

  .safety-home-countdown-panel strong {
    color: #ffef87;
    font-size: 13px;
    text-align: center;
  }

  .safety-home-countdown-row {
    position: relative;
    display: block;
    min-height: 48px;
    padding: 9px 92px 9px 10px;
    border: 1px solid rgba(126, 232, 216, 0.2);
    border-radius: 9px;
    background:
      radial-gradient(circle at 0% 0%, rgba(32, 224, 196, 0.18), transparent 42%),
      rgba(1, 8, 10, 0.58);
  }

  .safety-home-countdown-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding-top: 1px;
    color: rgba(246, 255, 251, 0.86);
  }

  .safety-home-countdown-copy i {
    color: #20e0c4;
    font-style: normal;
    font-size: 13px;
    font-weight: 950;
    line-height: 1.16;
  }

  .safety-home-countdown-copy small {
    color: rgba(246, 255, 251, 0.74);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.28;
  }

  .safety-home-countdown-row > span:not(.safety-home-countdown-copy) {
    color: #20e0c4;
    font-size: 12px;
    font-weight: 950;
  }

  .safety-home-countdown-row b {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 76px;
    min-height: 27px;
    display: grid;
    place-items: center;
    padding: 0 7px 0 11px;
    border-radius: 0 8px 0 24px;
    color: #fff;
    background: linear-gradient(135deg, #ff4b4b, #b00020);
    box-shadow:
      inset 0 -1px 0 rgba(255, 255, 255, 0.24),
      0 4px 10px rgba(0, 0, 0, 0.22);
    color: #f6fffb;
    font-size: 10px;
    font-weight: 950;
    line-height: 1.12;
    text-align: center;
    white-space: normal;
  }

  .safety-home-countdown-row[data-safety-complete="true"] b {
    background: linear-gradient(135deg, #22d68d, #058a51);
  }

  .safety-home-notice {
    display: grid;
    gap: 6px;
    padding: 10px;
  }

  .safety-home-notice strong {
    color: #ffef87;
    font-size: 13px;
    font-weight: 900;
  }

  .safety-home-notice p {
    margin: 0;
    color: rgba(246, 255, 251, 0.72);
    font-size: 12px;
    line-height: 1.55;
  }

  .safety-detail-body {
    min-width: 0;
  }

  .safety-detail-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .safety-detail-form label {
    min-width: 0;
    display: grid;
    gap: 4px;
    padding: 7px;
    border: 1px solid rgba(126, 232, 216, 0.16);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.055);
  }

  .safety-repeat-field {
    min-width: 0;
    display: grid;
    gap: 6px;
    padding: 7px;
    border: 1px solid rgba(126, 232, 216, 0.16);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.055);
  }

  .safety-detail-form span,
  .safety-repeat-field > span {
    color: #20e0c4;
    font-size: 11px;
    font-weight: 950;
    line-height: 1.2;
  }

  .safety-detail-form input,
  .safety-detail-form select,
  .safety-detail-form textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(126, 232, 216, 0.18);
    border-radius: 8px;
    color: #f6fffb;
    background: rgba(1, 8, 10, 0.58);
    font: inherit;
    font-size: 13px;
  }

  .safety-repeat-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 32px 32px;
    align-items: center;
    gap: 6px;
  }

  .safety-repeat-row:not(.has-remove) {
    grid-template-columns: minmax(0, 1fr) 32px;
  }

  .safety-repeat-box {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(84px, 0.72fr) minmax(0, 1fr);
    gap: 6px;
    padding: 5px;
    border: 1px solid rgba(255, 239, 135, 0.18);
    border-radius: 8px;
    background: rgba(1, 8, 10, 0.42);
  }

  .safety-social-row .safety-repeat-box {
    position: relative;
    grid-template-columns: minmax(82px, 0.62fr) minmax(0, 1fr);
  }

  .safety-email-row .safety-repeat-box {
    grid-template-columns: minmax(0, 1fr) minmax(82px, 0.5fr);
  }

  .safety-native-social-select {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
  }

  .safety-social-picker {
    position: relative;
    min-width: 0;
  }

  .safety-social-choice,
  .safety-social-option {
    width: 100%;
    min-height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(235, 215, 150, 0.2);
    background: rgba(235, 231, 215, 0.055);
    color: rgba(232, 228, 208, 0.86);
    font-size: 12px;
    font-weight: 800;
    text-align: left;
  }

  .safety-social-choice {
    justify-content: space-between;
    padding: 0 8px 0 6px;
  }

  .safety-social-choice > span:first-child,
  .safety-social-option {
    min-width: 0;
  }

  .safety-social-choice > span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .safety-social-caret {
    flex: 0 0 auto;
    color: rgba(225, 199, 106, 0.82);
    font-size: 12px;
  }

  .safety-social-menu {
    position: absolute;
    z-index: 30;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    max-height: 176px;
    overflow-y: auto;
    display: none;
    padding: 5px;
    border: 1px solid rgba(235, 215, 150, 0.24);
    border-radius: 10px;
    background: rgba(7, 16, 18, 0.98);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.34);
  }

  .safety-social-picker[data-open="true"] .safety-social-menu {
    display: grid;
    gap: 4px;
  }

  .safety-social-option {
    padding: 4px 6px;
    cursor: pointer;
  }

  .safety-social-option:hover {
    background: rgba(225, 199, 106, 0.1);
  }

  .safety-social-icon {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    line-height: 1;
    font-size: 13px;
    font-weight: 900;
    color: var(--safety-social-icon-color, #f0eee4);
    background: var(--safety-social-icon-bg, rgba(111, 111, 111, 0.86));
    border-radius: 6px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  }

  .safety-social-icon i {
    line-height: 1;
    font-size: 13px;
    pointer-events: none;
  }

  .safety-social-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: none;
  }

  .safety-social-icon-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 8px;
    letter-spacing: 0;
    text-align: center;
  }

  .safety-social-icon-instagram {
    background: linear-gradient(135deg, #405DE6 0%, #5851DB 25%, #833AB4 50%, #C13584 75%, #E1306C 100%) !important;
  }

  .safety-social-icon-douyin {
    background: linear-gradient(135deg, #000000 0%, #25F4EE 30%, #FE2C55 100%) !important;
  }

  .safety-repeat-add {
    width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
    border: 1px solid rgba(255, 239, 135, 0.34);
    border-radius: 50%;
    color: #06110f;
    background: linear-gradient(135deg, #20e0c4, #f4b947);
    display: grid;
    place-items: center;
    appearance: none;
    font-family: Arial, sans-serif;
    font-size: 20px;
    font-weight: 950;
    line-height: 32px;
    text-align: center;
  }

  .safety-repeat-remove {
    width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
    border: 1px solid rgba(255, 114, 114, 0.36);
    border-radius: 50%;
    color: #8b1c1c;
    background: linear-gradient(135deg, rgba(255, 114, 114, 0.68), rgba(255, 193, 117, 0.3));
    display: grid;
    place-items: center;
    appearance: none;
    font-family: Arial, sans-serif;
    font-size: 22px;
    font-weight: 950;
    line-height: 32px;
    text-align: center;
  }

  .safety-detail-form input,
  .safety-detail-form select {
    min-height: 34px;
    padding: 0 8px;
  }

  .safety-detail-form textarea {
    min-height: 86px;
    padding: 8px;
    resize: vertical;
  }

  .safety-owner-note {
    min-height: 138px !important;
  }

  .safety-detail-wide {
    grid-column: 1 / -1;
  }

  .safety-initial-message-field {
    min-width: 0;
    display: grid;
    gap: 4px;
    padding: 7px;
    border: 1px solid rgba(126, 232, 216, 0.16);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.055);
  }

  .safety-initial-message-field > span {
    color: #20e0c4;
    font-size: 11px;
    font-weight: 950;
    line-height: 1.2;
  }

  .safety-message-textarea-wrap {
    position: relative;
    min-width: 0;
    padding: 1px;
    border-radius: 10px;
    overflow: hidden;
    isolation: isolate;
    animation: safetyMessageFlash 1s ease-in-out infinite;
  }

  .safety-message-textarea-wrap::before,
  .safety-final-message-input::before {
    content: "";
    position: absolute;
    inset: -55%;
    z-index: 0;
    pointer-events: none;
    background: conic-gradient(
      from 0deg,
      rgba(32, 224, 196, 0),
      rgba(32, 224, 196, 0.95),
      rgba(244, 185, 71, 0.92),
      rgba(255, 112, 67, 0.95),
      rgba(32, 224, 196, 0)
    );
    animation: safetyMessageMarquee 1s linear infinite;
  }

  .safety-message-textarea-wrap textarea {
    position: relative;
    z-index: 1;
    padding-right: 84px;
    padding-bottom: 48px;
  }

  .safety-message-icon-actions {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(2, 34px);
    gap: 7px;
  }

  .safety-message-icon-actions button {
    width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    color: #fff8e4;
    background: linear-gradient(135deg, #ff7a2f, #f2c94c);
    box-shadow: 0 0 12px rgba(255, 122, 47, 0.24);
  }

  .safety-message-icon-actions button + button {
    background: linear-gradient(135deg, #2f8cff, #22d3ee);
    box-shadow: 0 0 12px rgba(47, 140, 255, 0.24);
  }

  .safety-message-icon-actions svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .safety-message-media-field {
    display: grid;
    gap: 6px;
  }

  .safety-message-media-preview:empty {
    display: none;
  }

  .safety-message-media-preview {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
    margin-top: 6px;
  }

  .safety-message-media-preview figure {
    min-width: 0;
    display: grid;
    gap: 3px;
    margin: 0;
  }

  .safety-message-media-preview img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border: 1px solid rgba(126, 232, 216, 0.18);
    border-radius: 7px;
    background: #050909;
  }

  .safety-message-media-preview button {
    min-height: 24px;
    padding: 0 5px;
    border: 1px solid rgba(255, 114, 114, 0.34);
    border-radius: 999px;
    color: #ffe8e8;
    background: rgba(160, 32, 32, 0.42);
    font-size: 10px;
    font-weight: 950;
  }

  .safety-message-video-chip {
    grid-column: 1 / -1;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
    padding: 6px;
    border: 1px solid rgba(47, 140, 255, 0.22);
    border-radius: 8px;
    background: rgba(47, 140, 255, 0.12);
  }

  .safety-message-video-chip span,
  .safety-message-video-chip small {
    min-width: 0;
    color: rgba(246, 255, 251, 0.84);
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .safety-message-video-chip span {
    color: #9ee8ff;
    font-weight: 950;
  }

  [data-safety-message-media-area] > video {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    background: #050909;
  }

  [data-safety-message-media-area] > video[hidden] {
    display: none !important;
  }

  .safety-initial-time {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    padding: 7px;
    border: 1px solid rgba(126, 232, 216, 0.16);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.055);
  }

  .safety-initial-time-selects {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .safety-initial-time-selects label,
  .safety-initial-contact-box label {
    min-width: 0;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    gap: 4px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .safety-vertical-label {
    min-height: 34px;
    display: grid;
    place-items: center;
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 0;
    line-height: 1;
  }

  .safety-vertical-label-days {
    font-size: 10px;
  }

  .safety-initial-time-selects select {
    text-align: center;
    border-radius: 999px;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
      rgba(1, 8, 10, 0.66);
    box-shadow:
      inset 0 9px 12px rgba(255, 255, 255, 0.035),
      inset 0 -9px 12px rgba(0, 0, 0, 0.2);
  }

  .safety-initial-time-preview {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 7px;
    position: relative;
    overflow: hidden;
    padding: 7px;
    border: 1px solid rgba(255, 239, 135, 0.18);
    border-radius: 8px;
    background: rgba(1, 8, 10, 0.48);
  }

  .safety-initial-pulse {
    position: absolute;
    right: 8px;
    top: 8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(32, 224, 196, 0.12);
    box-shadow: 0 0 0 0 rgba(32, 224, 196, 0.46);
    animation: safetyPulseRing 1.4s ease-out infinite;
  }

  .safety-initial-time-preview span,
  .safety-initial-time-preview em,
  .safety-initial-time-preview small {
    color: rgba(246, 255, 251, 0.78);
    font-size: 11px;
    line-height: 1.35;
    position: relative;
    z-index: 1;
  }

  .safety-initial-start-box,
  .safety-initial-countdown-box {
    min-width: 0;
    display: grid;
    align-content: center;
    justify-items: center;
    place-items: center;
    gap: 3px;
    padding: 6px;
    border: 1px solid rgba(255, 239, 135, 0.12);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.12);
    text-align: center;
  }

  .safety-initial-countdown-box {
    text-align: center;
  }

  .safety-initial-start-box span,
  .safety-initial-countdown-box span {
    color: #e1c76a;
    font-weight: 950;
  }

  .safety-initial-time-preview em {
    color: rgba(255, 239, 135, 0.9);
    font-style: normal;
    font-size: 12px;
    font-weight: 950;
  }

  .safety-initial-time-preview small {
    color: rgba(32, 224, 196, 0.86);
    font-weight: 900;
  }

  .safety-initial-contact-row {
    align-items: center;
  }

  .safety-initial-contact-row.has-remove {
    grid-template-columns: minmax(0, 1fr) 32px;
  }

  .safety-initial-contact-box {
    display: grid;
    grid-template-columns: minmax(92px, 0.62fr) minmax(0, 1fr) minmax(0, 0.72fr);
    gap: 6px;
    padding: 5px;
    border: 1px solid rgba(255, 239, 135, 0.18);
    border-radius: 8px;
    background: rgba(1, 8, 10, 0.42);
  }

  .safety-initial-contact-actions {
    display: grid;
    gap: 7px;
    place-items: center;
    align-self: center;
  }

  .safety-initial-code-field select {
    min-width: 0;
    width: 100%;
  }

  .safety-initial-contact-note {
    grid-column: 1 / -1;
  }

  .safety-stack-label {
    min-height: 34px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 1px;
    color: #20e0c4;
    font-size: 10px;
    font-weight: 950;
    line-height: 1.08;
    text-align: center;
  }

  .safety-stack-label b {
    color: inherit;
    font: inherit;
  }

  .safety-stack-label .is-optional {
    color: rgba(246, 255, 251, 0.84);
  }

  .safety-initial-contact-note textarea {
    min-height: 52px;
    resize: vertical;
  }

  .safety-initial-video {
    display: grid;
    gap: 7px;
    padding: 7px;
    border: 1px solid rgba(126, 232, 216, 0.16);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.055);
  }

  .safety-initial-video-head {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 7px;
    align-items: stretch;
  }

  .safety-initial-video-head button {
    min-height: 58px;
    border: 1px solid rgba(255, 239, 135, 0.34);
    border-radius: 10px;
    color: #06110f;
    background: linear-gradient(135deg, #20e0c4, #f4b947);
    font-weight: 950;
  }

  .safety-initial-video-head p {
    margin: 0;
    color: rgba(246, 255, 251, 0.72);
    font-size: 11px;
    line-height: 1.45;
  }

  .safety-video-stage {
    position: relative;
    min-height: 0;
  }

  .safety-video-stage.is-recording {
    position: fixed;
    z-index: 2147483646;
    inset: 0;
    display: grid;
    place-items: center;
    background: #000;
    padding: 0;
  }

  .safety-initial-video video {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    background: #050909;
    filter: brightness(1.38) contrast(1.08);
  }

  .safety-video-stage.is-recording video {
    width: min(100vw, 56.25vh);
    height: min(100vh, 177.78vw);
    aspect-ratio: 9 / 16;
    object-fit: cover;
    border-radius: 0;
    background: #000;
  }

  .safety-video-start {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 116px;
    height: 116px;
    min-height: 116px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.24);
    color: #fff;
    background: rgba(0, 0, 0, 0.82);
    font-size: 46px;
    font-weight: 950;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38);
  }

  .safety-video-timer,
  .safety-video-cancel {
    position: absolute;
    top: max(14px, env(safe-area-inset-top));
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, 0.78);
    font-size: 13px;
    font-weight: 950;
    line-height: 34px;
    display: inline-grid;
    place-items: center;
    text-align: center;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.32);
  }

  .safety-video-timer {
    left: max(12px, env(safe-area-inset-left));
    min-width: 96px;
  }

  .safety-video-cancel {
    right: max(12px, env(safe-area-inset-right));
  }

  .safety-video-save {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 116px;
    height: 116px;
    min-height: 116px;
    padding: 0;
    border: 2px solid rgba(49, 255, 94, 0.72);
    border-radius: 50%;
    color: #39ff62;
    background: #b91418;
    font-size: 12px;
    font-weight: 950;
    line-height: 1.24;
    text-align: center;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.36);
    animation: safetyVideoSaveFlash 1s ease-in-out infinite;
  }

  .safety-video-stage.is-recording .safety-video-save {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
  }

  .safety-video-start[hidden],
  .safety-video-timer[hidden],
  .safety-video-cancel[hidden],
  .safety-video-save[hidden] {
    display: none !important;
  }

  @keyframes safetyVideoSaveFlash {
    0%, 100% {
      transform: scale(1);
      filter: brightness(1);
      box-shadow: 0 8px 18px rgba(0, 0, 0, 0.36), 0 0 0 rgba(57, 255, 98, 0);
    }
    50% {
      transform: scale(1.08);
      filter: brightness(1.22);
      box-shadow: 0 8px 18px rgba(0, 0, 0, 0.36), 0 0 24px rgba(57, 255, 98, 0.65);
    }
  }

  .safety-video-delete {
    min-height: 34px;
    border: 1px solid rgba(255, 114, 114, 0.34);
    border-radius: 999px;
    color: #ffe8e8;
    background: rgba(160, 32, 32, 0.42);
    font-size: 12px;
    font-weight: 950;
  }

  .safety-video-delete[hidden] {
    display: none !important;
  }

  .safety-initial-video small {
    color: rgba(225, 199, 106, 0.9);
    font-size: 11px;
    line-height: 1.4;
  }

  .safety-save-toast {
    position: fixed;
    z-index: 2147483647;
    left: 50%;
    top: 50%;
    width: min(72vw, 280px);
    aspect-ratio: 1 / 1;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    border: 1px solid rgba(255, 239, 135, 0.32);
    border-radius: 26px;
    background: rgba(3, 12, 13, 0.94);
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.48);
    color: #f6fffb;
  }

  .safety-save-toast button {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 30px;
    height: 30px;
    min-height: 30px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #f6fffb;
    background: rgba(255, 255, 255, 0.08);
    font-size: 18px;
    line-height: 1;
  }

  .safety-save-toast-icon {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #06110f;
    background: linear-gradient(135deg, #20e0c4, #f4b947);
    font-size: 62px;
    font-weight: 950;
  }

  .safety-save-toast.is-saving .safety-save-toast-icon {
    border: 9px solid rgba(255, 255, 255, 0.14);
    border-top-color: #20e0c4;
    background: transparent;
    animation: safetySaveSpin 0.8s linear infinite;
  }

  .safety-save-toast strong {
    color: #ffef87;
    font-size: 20px;
    font-weight: 950;
  }

  @keyframes safetyPulseRing {
    0% { transform: scale(0.82); box-shadow: 0 0 0 0 rgba(32, 224, 196, 0.46); opacity: 0.95; }
    100% { transform: scale(1.18); box-shadow: 0 0 0 16px rgba(32, 224, 196, 0); opacity: 0.2; }
  }

  @keyframes safetySaveSpin {
    to { transform: rotate(360deg); }
  }

  .safety-final-level {
    display: inline-grid;
    place-items: center;
    margin-left: 6px;
    padding: 3px 7px;
    border: 1px solid rgba(255, 151, 61, 0.34);
    border-radius: 999px;
    color: #ff9b42;
    background: linear-gradient(135deg, rgba(255, 141, 50, 0.2), rgba(0, 0, 0, 0.28));
    font-size: 10px;
    font-style: normal;
    font-weight: 950;
    white-space: nowrap;
    vertical-align: middle;
  }

  .safety-final-form {
    display: grid;
    gap: 10px;
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }

  .safety-final-fixed-actions {
    position: fixed;
    top: max(18px, env(safe-area-inset-top));
    right: max(18px, env(safe-area-inset-right));
    z-index: 100004;
    display: grid;
    grid-template-columns: auto auto;
    gap: 6px;
    pointer-events: auto;
  }

  .safety-final-fixed-actions button {
    min-height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255, 211, 90, 0.26);
    font: inherit;
    font-size: 12px;
    font-weight: 950;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  }

  .safety-final-top-back {
    padding: 0 9px;
    color: #f6fffb;
    background: rgba(0, 8, 7, 0.74);
  }

  .safety-final-top-save {
    min-width: 52px;
    color: #06110f;
    background: linear-gradient(135deg, #20e0c4, #f4b947);
  }

  .safety-final-card {
    min-width: 0;
    position: relative;
    display: grid;
    gap: 9px;
    padding: 10px;
    border: 1px solid rgba(32, 224, 196, 0.18);
    border-radius: 13px;
    background:
      radial-gradient(circle at 95% 0%, rgba(32, 224, 196, 0.12), transparent 34%),
      linear-gradient(135deg, rgba(1, 17, 13, 0.82), rgba(0, 7, 6, 0.72));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.04),
      0 0 18px rgba(32, 224, 196, 0.045);
    overflow: hidden;
  }

  .safety-final-section-title h4 {
    margin: 0;
    color: #20e0c4;
    font-size: 14px;
    font-weight: 950;
    line-height: 1.25;
  }

  .safety-final-section-title small {
    color: rgba(246, 255, 251, 0.62);
    font-size: 11px;
    font-weight: 700;
  }

  .safety-final-time-selects,
  .safety-final-contact-row {
    display: grid;
    gap: 7px;
  }

  .safety-final-time-selects {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .safety-final-contact-row {
    position: relative;
    grid-template-columns: minmax(66px, 0.7fr) minmax(118px, 1.2fr) minmax(76px, 0.85fr);
    align-items: stretch;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(126, 232, 216, 0.1);
  }

  .safety-final-contact-row.has-remove {
    grid-template-columns: minmax(66px, 0.7fr) minmax(118px, 1.2fr) minmax(76px, 0.85fr);
  }

  .safety-final-contact-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .safety-final-time-selects label,
  .safety-final-contact-row label,
  .safety-final-note,
  .safety-final-message {
    min-width: 0;
    display: grid;
    grid-template-rows: 15px 38px;
    gap: 4px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .safety-final-time-selects span,
  .safety-final-contact-row span,
  .safety-final-note span {
    color: #20e0c4;
    font-size: 11px;
    font-weight: 950;
  }

  .safety-final-contact-row label {
    grid-template-columns: 18px minmax(0, 1fr);
    grid-template-rows: 38px;
    align-items: center;
    gap: 4px;
  }

  .safety-final-contact-row label span {
    min-height: 38px;
    display: grid;
    place-items: center;
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 0;
    line-height: 1;
    text-align: center;
  }

  .safety-final-contact-row input,
  .safety-final-contact-row select {
    height: 38px;
    min-height: 38px;
    padding-top: 0;
    padding-bottom: 0;
  }

  .safety-final-form input,
  .safety-final-form select,
  .safety-final-form textarea {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    border: 1px solid rgba(32, 224, 196, 0.18);
    border-radius: 9px;
    color: #f6fffb;
    background: rgba(0, 8, 7, 0.78);
    box-shadow: inset 0 0 11px rgba(0, 0, 0, 0.24);
    font: inherit;
    font-size: 13px;
    line-height: 1.1;
  }

  .safety-final-form textarea::placeholder,
  .safety-final-form input::placeholder {
    color: rgba(246, 255, 251, 0.42);
  }

  .safety-final-time-preview {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    border: 1px solid rgba(126, 232, 216, 0.18);
    border-radius: 10px;
    background: rgba(0, 9, 7, 0.84);
    overflow: hidden;
  }

  .safety-final-time-preview div {
    display: grid;
    place-items: center;
    gap: 4px;
    min-height: 72px;
    padding: 9px 6px;
    text-align: center;
  }

  .safety-final-time-preview span {
    color: #d8c873;
    font-size: 12px;
    font-weight: 950;
  }

  .safety-final-time-preview b,
  .safety-final-time-preview strong {
    color: #f2e98c;
    font-size: 14px;
    line-height: 1.2;
  }

  .safety-final-time-preview strong {
    color: #ff4f55;
  }

  .safety-final-contact-list {
    display: grid;
    gap: 7px;
    padding-right: 45px;
  }

  .safety-final-contact-add,
  .safety-final-contact-row-add,
  .safety-final-contact-remove {
    border: 0;
    border-radius: 999px;
    color: #06110f;
    background: linear-gradient(135deg, #16dcc6, #d5f071);
    font-size: 24px;
    font-weight: 950;
    box-shadow: 0 0 14px rgba(32, 224, 196, 0.28);
  }

  .safety-final-contact-add {
    position: absolute;
    right: 11px;
    top: 47px;
    width: 38px;
    height: 38px;
  }

  .safety-final-contact-card .safety-final-contact-add {
    top: 65px;
    transform: none;
  }

  .safety-final-contact-remove {
    width: 30px;
    height: 30px;
    align-self: center;
    color: #ffef87;
    background: rgba(255, 98, 67, 0.26);
    box-shadow: none;
  }

  .safety-final-contact-row-add {
    width: 30px;
    height: 30px;
    align-self: center;
    font-size: 21px;
  }

  .safety-final-contact-row-actions {
    position: absolute;
    right: -38px;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    gap: 7px;
    place-items: center;
  }

  .safety-final-contact-row .safety-final-note {
    grid-column: 1 / -1;
    grid-template-columns: 34px minmax(0, 1fr);
    grid-template-rows: 48px;
    align-items: stretch;
    padding-right: 0;
  }

  .safety-final-contact-row.has-remove .safety-final-note {
    grid-column: 1 / -1;
  }

  .safety-final-contact-row .safety-final-note span {
    min-height: 48px;
    display: grid;
    place-items: center;
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 0;
    line-height: 1;
    text-align: center;
  }

  .safety-final-contact-row .safety-final-note small {
    display: none;
  }

  .safety-final-note textarea {
    min-height: 48px;
    resize: vertical;
  }

  .safety-final-send-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
  }

  .safety-final-send-chip {
    width: 100%;
    min-width: 0;
    min-height: 30px;
    display: inline-grid;
    grid-template-columns: minmax(0, 1fr) 14px;
    align-items: center;
    gap: 2px;
    padding: 0 3px;
    border: 1px solid rgba(126, 232, 216, 0.13);
    border-radius: 999px;
    color: rgba(246, 255, 251, 0.78);
    background: rgba(0, 8, 7, 0.72);
    font-size: 10px;
  }

  .safety-final-send-chip span {
    min-width: 0;
    overflow: hidden;
    text-overflow: clip;
    white-space: nowrap;
    text-align: center;
  }

  .safety-final-send-chip i {
    display: grid;
    place-items: center;
    width: 14px;
    height: 14px;
    border: 1px solid rgba(32, 224, 196, 0.42);
    border-radius: 50%;
    color: transparent;
    font-style: normal;
    font-size: 9px;
  }

  .safety-final-send-chip.is-active i {
    color: #20e0c4;
    background: rgba(32, 224, 196, 0.12);
  }

  .safety-final-message {
    position: relative;
    grid-template-rows: auto;
    gap: 6px;
  }

  .safety-final-message-input {
    position: relative;
    display: block;
    min-width: 0;
    padding: 1px;
    border-radius: 10px;
    overflow: hidden;
    isolation: isolate;
    animation: safetyMessageFlash 1s ease-in-out infinite;
  }

  .safety-final-message textarea {
    position: relative;
    z-index: 1;
    min-height: 82px;
    padding-right: 84px;
    padding-bottom: 48px;
    resize: vertical;
  }

  .safety-final-message em {
    position: absolute;
    right: 92px;
    bottom: 12px;
    z-index: 3;
    color: rgba(246, 255, 251, 0.55);
    font-size: 11px;
    font-style: normal;
  }

  .safety-message-media-field,
  .safety-message-media-preview {
    position: relative;
    z-index: 2;
  }

  @keyframes safetyMessageFlash {
    0%,
    100% {
      box-shadow: 0 0 0 rgba(32, 224, 196, 0), 0 0 12px rgba(255, 143, 67, 0.06);
      filter: brightness(1);
    }

    50% {
      box-shadow: 0 0 18px rgba(32, 224, 196, 0.4), 0 0 30px rgba(255, 143, 67, 0.24);
      filter: brightness(1.12);
    }
  }

  @keyframes safetyMessageMarquee {
    to {
      transform: rotate(360deg);
    }
  }

  .safety-final-warning {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    padding: 12px;
    border: 1px solid rgba(255, 142, 67, 0.36);
    border-radius: 12px;
    color: #ffb757;
    background: rgba(43, 17, 5, 0.38);
    box-shadow: 0 0 18px rgba(255, 142, 67, 0.08);
  }

  .safety-final-warning b {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 2px solid #ff8e43;
    border-radius: 14px;
    color: #ff8e43;
    font-size: 30px;
    line-height: 1;
  }

  .safety-final-warning p {
    margin: 0;
    color: #ffc45f;
    font-size: 12px;
    line-height: 1.55;
  }

  .safety-duress-card {
    border-color: rgba(255, 142, 67, 0.3);
    background:
      radial-gradient(circle at 90% 8%, rgba(255, 142, 67, 0.16), transparent 36%),
      linear-gradient(135deg, rgba(17, 8, 1, 0.8), rgba(0, 12, 10, 0.76));
  }

  .safety-duress-card .safety-final-section-title h4 {
    color: #ffb757;
  }

  .safety-duress-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .safety-duress-fields label {
    min-width: 0;
    display: grid;
    gap: 4px;
  }

  .safety-duress-fields span {
    color: #20e0c4;
    font-size: 11px;
    font-weight: 950;
  }

  .safety-duress-card p {
    margin: 0;
    color: rgba(255, 196, 95, 0.82);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.45;
  }

  .safety-final-save,
  .safety-final-back {
    width: 100%;
    min-height: 50px;
    border-radius: 11px;
    font: inherit;
    font-weight: 950;
  }

  .safety-final-save {
    border: 0;
    color: #06110f;
    background: linear-gradient(90deg, #16d4ca, #a7ea82 52%, #ffad3d);
    box-shadow: 0 0 17px rgba(32, 224, 196, 0.18);
  }

  .safety-final-back {
    border: 1px solid rgba(246, 255, 251, 0.16);
    color: #f6fffb;
    background: rgba(255, 255, 255, 0.055);
  }

  @media (max-width: 430px) {
    .safety-final-contact-row {
      grid-template-columns: minmax(58px, 0.7fr) minmax(104px, 1.2fr) minmax(68px, 0.85fr);
    }

    .safety-final-contact-row.has-remove {
      grid-template-columns: minmax(58px, 0.7fr) minmax(104px, 1.2fr) minmax(68px, 0.85fr);
    }

    .safety-final-contact-row-actions {
      right: -37px;
      gap: 6px;
    }

    .safety-final-contact-row.has-remove .safety-final-contact-remove,
    .safety-final-contact-row.has-remove .safety-final-contact-row-add {
      width: 28px;
      height: 28px;
    }

  }

  .safety-detail-message {
    margin: 0;
    padding: 7px 9px;
    border: 1px solid rgba(32, 224, 196, 0.22);
    border-radius: 8px;
    color: #20e0c4;
    background: rgba(32, 224, 196, 0.08);
    font-size: 12px;
    font-weight: 900;
    text-align: center;
  }

  .safety-detail-message[hidden],
  [data-safety-detail-save][hidden],
  [data-safety-detail-back][hidden] {
    display: none !important;
  }

  .safety-password-login small,
  .safety-password-dashboard small {
    color: rgba(246, 255, 251, 0.64);
    font-size: 11px;
    line-height: 1.5;
  }

  .safety-login-nowrap {
    display: block;
    width: 118%;
    max-width: none;
    overflow: visible;
    white-space: nowrap;
    font-size: 9px !important;
    letter-spacing: 0;
    line-height: 1.4;
    transform: scaleX(0.84);
    transform-origin: left center;
  }

  .safety-ultimate-alarm {
    padding: 14px;
  }

  .safety-ultimate-alarm strong {
    color: #ffef87;
    font-size: 19px;
  }

  .safety-ultimate-alarm span {
    color: rgba(246, 255, 251, 0.78);
    font-size: 13px;
    line-height: 1.6;
  }

  .safety-guard-preview textarea {
    min-height: 138px;
    padding: 9px;
    resize: none;
    line-height: 1.45;
  }

  .safety-guard-send-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .safety-guard-send-row:empty {
    display: none;
  }

  .safety-guard-preview small {
    color: rgba(246, 255, 251, 0.62);
    font-size: 11px;
    line-height: 1.45;
  }

  .safety-guard-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
    border-top: 1px solid rgba(255, 211, 90, 0.16);
    background: rgba(4, 14, 14, 0.96);
  }

  .safety-guard-actions button {
    min-height: 40px;
    padding: 0 6px;
    font-size: 12px;
  }

@media (min-width: 768px) {
  .safety-guard-overlay {
    display: grid;
    place-items: center;
    padding: 24px;
  }

  .safety-guard-panel {
    width: min(980px, calc(100vw - 48px));
    height: min(860px, calc(100svh - 48px));
    border-radius: 18px;
  }

  .safety-guard-body {
    gap: 14px;
    padding: 18px;
  }

  .safety-password-login,
  .safety-password-dashboard,
  .safety-guard-home,
  .safety-home-detail,
  .safety-ultimate-alarm {
    width: 100%;
    max-width: 920px;
    margin-inline: auto;
  }

  .safety-home-header-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px;
    align-items: center;
  }

  .safety-home-login-chip {
    width: 210px;
    max-width: none;
    min-height: 58px;
    font-size: 10px;
  }

  .safety-home-menu {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .safety-home-menu button {
    min-height: 92px;
    padding-inline: 18px 64px;
  }

  .safety-home-countdown-zone {
    min-height: 320px;
  }

  .safety-home-countdown-circle {
    width: 270px;
  }

  .safety-home-notice {
    padding: 16px;
  }

  .safety-detail-form {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }

  .safety-detail-wide,
  .safety-repeat-field,
  .safety-initial-message-field,
  .safety-initial-video {
    grid-column: 1 / -1;
  }

  .safety-password-setup {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .safety-repeat-box {
    grid-template-columns: minmax(140px, 0.45fr) minmax(0, 1fr);
  }

  .safety-social-row .safety-repeat-box {
    grid-template-columns: minmax(150px, 0.42fr) minmax(0, 1fr);
  }

  .safety-email-row .safety-repeat-box {
    grid-template-columns: minmax(0, 1fr) minmax(140px, 0.34fr);
  }

  .safety-initial-time,
  .safety-final-card,
  .safety-duress-card,
  .safety-final-warning {
    padding: 16px;
  }

  .safety-initial-contact-box {
    grid-template-columns: minmax(150px, 0.45fr) minmax(0, 1fr) minmax(140px, 0.4fr);
  }

  .safety-final-form {
    gap: 14px;
  }

  .safety-final-fixed-actions {
    top: 24px;
    right: calc(50vw - min(490px, calc(50vw - 24px)) + 18px);
  }

  .safety-final-time-selects {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .safety-final-contact-row,
  .safety-final-contact-row.has-remove {
    grid-template-columns: minmax(110px, 0.8fr) minmax(180px, 1.4fr) minmax(160px, 1fr) minmax(0, 1.2fr) 44px;
    align-items: center;
  }

  .safety-final-contact-row .safety-final-note {
    grid-column: auto;
  }

  .safety-final-contact-row .safety-final-note textarea {
    min-height: 38px;
  }

  .safety-final-contact-row-actions {
    position: static;
    align-self: center;
    justify-self: center;
  }

  .safety-final-send-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .safety-final-message textarea {
    min-height: 150px;
  }
}

@media (max-width: 767px) {

  .customer-chat-overlay {
    padding: 0;
  }

  .customer-chat-panel {
    min-width: 220px;
    min-height: 220px;
    max-width: calc(100vw - 12px);
    max-height: calc(100svh - 12px);
    grid-template-rows: auto minmax(0, 1fr) auto;
    border-radius: 14px;
  }

  .customer-chat-head {
    gap: 8px;
    padding: 8px 10px;
  }

  .customer-chat-title {
    gap: 8px;
  }

  .customer-chat-title i {
    width: 42px;
    height: 42px;
    border-radius: 9px;
    font-size: 11px;
  }

  .customer-chat-copy {
    gap: 2px;
    font-size: 12px;
  }

  .customer-chat-close {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .customer-translate-bar {
    gap: 5px;
    padding: 8px 10px;
  }

  .customer-language-tabs {
    gap: 5px;
  }

  .customer-language-tabs button {
    min-height: 30px;
    padding: 0 9px;
    font-size: 12px;
  }

  .customer-target-language {
    width: 100%;
  }

  .customer-message {
    max-width: min(92%, 100%);
    padding: 5px 7px;
  }

  .customer-chat-messages {
    gap: 0.5em;
    padding: 8px;
  }

  .customer-chat-form {
    grid-template-columns: minmax(0, 1fr) 36px 54px;
    gap: 6px;
    padding: 6px 10px;
  }

  .customer-chat-form textarea {
    height: 36px;
    min-height: 36px;
    max-height: 36px;
    padding: 0 9px;
    line-height: 34px;
  }

  .customer-attach-wrap,
  .customer-attach-toggle {
    width: 36px;
    height: 36px;
    min-height: 36px;
  }

  .customer-attach-toggle {
    border-radius: 7px;
    font-size: 22px;
  }

  .customer-attach-menu {
    width: 54px;
    bottom: calc(100% + 6px);
  }

  .customer-attach-menu button {
    min-height: 32px;
    font-size: 12px;
  }

  .customer-send-button {
    height: 36px;
    min-height: 36px;
  }

  .customer-chat-resize {
    width: 29px;
    height: 29px;
    border-radius: 0 0 0 14px;
  }

  .customer-chat-resize::after {
    left: 3px;
    bottom: 3px;
    width: 19px;
    height: 19px;
  }
}

@media (max-width: 767px) {
  :root {
    --service-dream-ink: #f8fbff;
    --service-dream-muted: rgba(222, 238, 255, 0.72);
    --service-dream-glass: rgba(8, 18, 30, 0.76);
    --service-dream-line: rgba(125, 243, 255, 0.36);
    --service-dream-cyan: #28f5e1;
    --service-dream-lime: #b8ff7c;
    --service-dream-gold: #ffe16c;
    --service-dream-pink: #ff78d4;
  }

  :is(.customer-service-entry, .safety-guard-entry) {
    border-color: rgba(255, 225, 108, 0.44);
    color: var(--service-dream-ink);
    background:
      linear-gradient(135deg, rgba(40, 245, 225, 0.16), rgba(255, 120, 212, 0.14)),
      rgba(5, 13, 24, 0.82);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.16),
      0 0 16px rgba(40, 245, 225, 0.18),
      0 0 18px rgba(255, 120, 212, 0.12);
  }

  :is(.customer-service-entry svg, .safety-guard-entry svg) {
    color: var(--service-dream-cyan);
    filter:
      drop-shadow(0 0 6px rgba(40, 245, 225, 0.58))
      drop-shadow(0 0 9px rgba(255, 225, 108, 0.28));
  }

  :is(.customer-chat-panel, .safety-guard-panel, .safety-guard-home, .safety-home-detail) {
    border-color: var(--service-dream-line);
    color: var(--service-dream-ink);
    background:
      linear-gradient(135deg, rgba(40, 245, 225, 0.15), rgba(155, 125, 255, 0.1) 45%, rgba(255, 120, 212, 0.12)),
      linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
      var(--service-dream-glass);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.16),
      inset 0 -16px 38px rgba(0, 0, 0, 0.24),
      0 0 0 1px rgba(255, 255, 255, 0.035),
      0 18px 48px rgba(0, 0, 0, 0.36),
      0 0 28px rgba(40, 245, 225, 0.14);
    backdrop-filter: blur(18px) saturate(1.25);
  }

  :is(.customer-chat-head, .customer-chat-form, .safety-guard-status, .safety-home-notice, .safety-guard-location, .safety-guard-preview, .safety-home-menu button, .safety-home-fill-rule, .safety-home-declaration, .safety-home-timer-card) {
    border-color: rgba(125, 243, 255, 0.32);
    background:
      linear-gradient(135deg, rgba(40, 245, 225, 0.12), rgba(255, 120, 212, 0.1)),
      rgba(4, 14, 25, 0.72);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      0 0 18px rgba(40, 245, 225, 0.1);
  }

  :is(.customer-message, .safety-guard-form label, .safety-final-section, .safety-detail-section, .safety-owner-row, .safety-contact-row) {
    border-color: rgba(125, 243, 255, 0.28);
    background:
      linear-gradient(135deg, rgba(255, 225, 108, 0.08), rgba(40, 245, 225, 0.08)),
      rgba(3, 12, 20, 0.74);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }

  .customer-message.is-me {
    border-color: rgba(255, 225, 108, 0.44);
    background:
      linear-gradient(135deg, rgba(255, 225, 108, 0.18), rgba(255, 120, 212, 0.12)),
      rgba(18, 15, 27, 0.82);
  }

  :is(.customer-chat-form textarea, .safety-guard-form input, .safety-guard-form select, .safety-guard-form textarea, .safety-home-detail input, .safety-home-detail select, .safety-home-detail textarea) {
    border-color: rgba(125, 243, 255, 0.34);
    color: var(--service-dream-ink);
    background:
      linear-gradient(135deg, rgba(40, 245, 225, 0.09), rgba(155, 125, 255, 0.1)),
      rgba(3, 10, 18, 0.82);
    box-shadow:
      inset 0 0 14px rgba(40, 245, 225, 0.08),
      0 0 12px rgba(255, 120, 212, 0.08);
  }

  :is(.customer-send-button, .customer-attach-toggle, .safety-detail-save, .safety-home-countdown-circle, .safety-home-menu button.is-complete) {
    border-color: rgba(255, 238, 155, 0.54);
    color: #07110f;
    background:
      linear-gradient(100deg, var(--service-dream-cyan), var(--service-dream-lime) 44%, var(--service-dream-gold) 72%, #ff9f57);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.5),
      0 0 24px rgba(40, 245, 225, 0.3),
      0 0 30px rgba(255, 225, 108, 0.22);
  }

  :is(.customer-chat-close, .safety-guard-close, .safety-detail-back, .customer-language-tabs button, .customer-attach-menu button) {
    border-color: rgba(125, 243, 255, 0.38);
    color: var(--service-dream-ink);
    background:
      linear-gradient(135deg, rgba(40, 245, 225, 0.12), rgba(255, 120, 212, 0.12)),
      rgba(7, 17, 31, 0.76);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.13),
      0 0 18px rgba(155, 125, 255, 0.16);
  }

  :is(.customer-chat-title strong, .safety-guard-head strong, .safety-home-title h2, .safety-home-countdown-circle span) {
    text-shadow:
      0 0 10px rgba(40, 245, 225, 0.26),
      0 0 18px rgba(255, 225, 108, 0.16);
  }

  :is(.customer-chat-copy span, .customer-message small, .safety-guard-head span, .safety-home-title p, .safety-home-declaration p) {
    color: var(--service-dream-muted);
  }

  :is(.customer-service-entry, .safety-guard-entry, .customer-send-button, .safety-home-countdown-circle) {
    animation: serviceDreamBreath 5.8s ease-in-out infinite;
  }

  @keyframes serviceDreamBreath {
    0%,
    100% {
      filter: saturate(1) brightness(1);
    }
    50% {
      filter: saturate(1.18) brightness(1.05);
    }
  }
}

.safety-guard-entry,
.site-header.has-customer-service .safety-guard-entry,
.topbar.has-customer-service .safety-guard-entry {
  border-color: rgba(255, 104, 94, 0.78);
  color: #fff2d3;
  background:
    radial-gradient(circle at 24% 10%, rgba(255, 227, 117, 0.36), transparent 34%),
    linear-gradient(145deg, rgba(225, 33, 48, 0.98), rgba(118, 8, 28, 0.96) 56%, rgba(255, 94, 38, 0.78));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 0 20px rgba(255, 42, 62, 0.36),
    0 0 20px rgba(255, 166, 66, 0.18);
}

.safety-guard-entry svg,
.site-header.has-customer-service .safety-guard-entry svg,
.topbar.has-customer-service .safety-guard-entry svg {
  color: #ffe66d;
  filter:
    drop-shadow(0 0 6px rgba(255, 230, 109, 0.66))
    drop-shadow(0 0 10px rgba(255, 47, 64, 0.46));
}

.safety-guard-entry span,
.safety-guard-entry small,
.site-header.has-customer-service .safety-guard-entry span,
.site-header.has-customer-service .safety-guard-entry small,
.topbar.has-customer-service .safety-guard-entry span,
.topbar.has-customer-service .safety-guard-entry small {
  color: #fff4dc;
  text-shadow: 0 0 8px rgba(255, 67, 67, 0.46);
}

@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  :is(.customer-service-entry, .safety-guard-entry, .customer-send-button, .safety-home-countdown-circle) {
    animation: none;
  }
}
