.jic-account {
  position: relative;
  z-index: 80;
  flex: 0 0 auto;
}

.jic-account-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line, rgba(23, 23, 21, 0.16));
  border-radius: 999px;
  padding: 0 12px;
  background: transparent;
  color: var(--ink, #23221e);
  cursor: pointer;
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.jic-account-button:hover,
.jic-account-button:focus-visible,
.jic-account-button[aria-expanded="true"] {
  border-color: var(--accent, var(--red, #a43b2a));
  background: var(--accent, var(--red, #a43b2a));
  color: #fffaf0;
}

.jic-account-dot {
  width: 7px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #9b978f;
  box-shadow: 0 0 0 3px rgba(155, 151, 143, 0.13);
}

.jic-account-button.is-authenticated .jic-account-dot {
  background: #47704f;
  box-shadow: 0 0 0 3px rgba(71, 112, 79, 0.14);
}

.jic-account-short { display: none; }

.jic-account-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(340px, calc(100vw - 24px));
  display: none;
  overflow: hidden;
  border: 1px solid rgba(35, 34, 30, 0.16);
  border-radius: 18px;
  background: rgba(250, 248, 242, 0.985);
  color: #23221e;
  box-shadow: 0 24px 70px rgba(35, 29, 19, 0.2);
  text-align: left;
  backdrop-filter: blur(18px);
}

.jic-account-menu.is-open { display: block; }

.jic-menu-identity {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid rgba(35, 34, 30, 0.11);
}

.jic-menu-seal {
  display: grid;
  width: 42px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: #a43b2a;
  color: #fffaf0;
  font-family: "Songti SC", "STSong", serif;
  font-size: 21px;
  font-weight: 800;
}

.jic-menu-identity-copy { min-width: 0; }
.jic-menu-identity-copy strong,
.jic-menu-identity-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jic-menu-identity-copy strong { font-size: 16px; letter-spacing: -0.01em; }
.jic-menu-identity-copy small { margin-top: 4px; color: #777169; font-size: 10px; }

.jic-menu-actions { display: grid; padding: 8px; }

.jic-menu-action {
  min-height: 39px;
  display: flex;
  align-items: center;
  border: 0;
  border-radius: 9px;
  padding: 0 10px;
  background: transparent;
  color: #35322d;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 750;
  text-decoration: none;
  text-align: left;
}

.jic-menu-action:hover,
.jic-menu-action:focus-visible { background: rgba(164, 59, 42, 0.09); color: #8f2e20; }
.jic-menu-action.is-primary { background: #a43b2a; color: #fffaf0; }
.jic-menu-action.is-primary:hover,
.jic-menu-action.is-primary:focus-visible { background: #872b1f; color: #fff; }
.jic-menu-action.is-muted { color: #7f7970; }

.jic-name-search {
  padding: 14px 16px 16px;
  border-top: 1px solid rgba(35, 34, 30, 0.11);
  background: rgba(35, 34, 30, 0.025);
}

.jic-name-search-label {
  display: block;
  margin-bottom: 8px;
  color: #6f6961;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jic-name-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(35, 34, 30, 0.16);
  border-radius: 10px;
  background: #fff;
}

.jic-name-search-input {
  width: 100%;
  min-width: 0;
  height: 40px;
  border: 0;
  outline: 0;
  padding: 0 11px;
  background: transparent;
  color: #23221e;
  font: inherit;
  font-size: 12px;
}

.jic-name-search-row:focus-within { border-color: #a43b2a; box-shadow: 0 0 0 3px rgba(164, 59, 42, 0.09); }
.jic-name-search-submit { border: 0; padding: 0 13px; background: #23221e; color: #fff; cursor: pointer; font-size: 10px; font-weight: 850; }
.jic-name-search-submit:hover,
.jic-name-search-submit:focus-visible { background: #a43b2a; }

.jic-name-search-result { min-height: 0; color: #777169; font-size: 10px; line-height: 1.5; }
.jic-name-search-result:not(:empty) { margin-top: 9px; }
.jic-name-search-result.is-error { color: #9b3023; }
.jic-name-result-link { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; color: #47704f; }
.jic-name-result-link strong { font-size: 13px; }
.jic-name-result-link small { color: #777169; font-family: ui-monospace, monospace; font-size: 9px; }

.product-jic-name {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  margin: 10px 0 0;
  border: 1px solid rgba(164, 59, 42, 0.22);
  border-radius: 9px;
  padding: 9px 11px;
  background: rgba(164, 59, 42, 0.055);
  color: #23221e;
  cursor: pointer;
  text-align: left;
}
.product-jic-name > span { color: #8f877d; font-size: 7px; font-weight: 900; letter-spacing: 0.13em; }
.product-jic-name > strong { overflow: hidden; color: #a43b2a; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.product-jic-name > i { font-style: normal; font-size: 11px; }
.product-jic-name:hover,
.product-jic-name:focus-visible { border-color: #a43b2a; background: #a43b2a; color: #fffaf0; }
.product-jic-name:hover > span,
.product-jic-name:hover > strong,
.product-jic-name:focus-visible > span,
.product-jic-name:focus-visible > strong { color: inherit; }

.chinese-jic-cloud-actions { display: contents; }

#jic-w .alien,
#jic-w .alien.show {
  width: 50px !important;
  height: 50px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  border: 1px solid rgba(164, 59, 42, 0.34) !important;
  border-radius: 50% !important;
  padding: 3px !important;
  background: rgba(255, 253, 248, 0.94) !important;
  box-shadow: 0 10px 30px rgba(57, 47, 30, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.7) !important;
  animation: chinese-dragon-float 3.6s ease-in-out infinite !important;
  backdrop-filter: blur(10px);
}

#jic-w .alien:hover {
  border-color: var(--accent, var(--red, #a43b2a)) !important;
  box-shadow: 0 14px 34px rgba(164, 59, 42, 0.24) !important;
}

#jic-w .alien img { display: block; width: 42px; height: 42px; pointer-events: none; }

@keyframes chinese-dragon-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-4px) rotate(2deg); }
}

@media (max-width: 1080px) {
  .jic-account-button { width: 34px; justify-content: center; padding: 0; }
  .jic-account-copy { display: none; }
  .jic-account-short { display: inline; font-size: 8px; }
  .jic-account-dot { display: none; }
}

@media (max-width: 820px) {
  .site-header .jic-account { position: absolute; top: -27px; left: 4vw; z-index: 3; }
  .site-header .jic-account-button {
    width: auto; min-width: 38px; min-height: 22px; height: 22px;
    border-color: rgba(255, 255, 255, 0.22); padding: 0 8px;
    background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.78); letter-spacing: 0.08em;
  }
  .site-header .jic-account-button:hover,
  .site-header .jic-account-button:focus-visible,
  .site-header .jic-account-button[aria-expanded="true"] { border-color: var(--coral, #e57358); background: var(--coral, #e57358); color: #171715; }
  .site-header .jic-account-menu { top: calc(100% + 8px); right: auto; left: 0; }
}

@media (max-width: 560px) {
  #jic-w { right: 10px !important; bottom: 10px !important; }
  #jic-w .alien,
  #jic-w .alien.show { width: 44px !important; height: 44px !important; }
  #jic-w .alien img { width: 37px; height: 37px; }
}

@media (prefers-reduced-motion: reduce) {
  #jic-w .alien,
  #jic-w .alien.show { animation: none !important; }
}
