.cc-nav-auth > .text-button {
  display: none;
}

.cc-nav .cc-nav-auth {
  margin-left: auto;
}

.cc-nav .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  background: transparent;
  box-shadow: none;
}

.cc-nav .okmy-script-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 38px;
  flex: 0 0 auto;
  background: url('/signbee/editor/okmy-red-shape.svg') center / 100% 100% no-repeat;
}

.cc-nav .okmy-script-badge .brand-logo {
  display: block;
  width: 68px;
  height: 32px;
  object-fit: contain;
  /* Render white ink with a transparent backdrop, without blend layers. */
  background: transparent;
  filter: grayscale(1) contrast(2) url(#clearcut-wordmark-alpha);
}

.okmy-clearcut-name {
  color: #14221c;
  font: 700 28px/1 Georgia, 'Times New Roman', serif;
}

/* The shared widget initializes in a shadow root. Keep its floating button
   out of the first paint until the header integration has been applied. */
#okmy-ask-widget:not([data-clearcut-header-ready]) {
  visibility: hidden;
}

.okmy-global-controls {
  position: relative;
  z-index: 160;
  display: flex;
  align-items: center;
  gap: 8px;
  order: 2;
}

.cc-nav-auth .cc-nav-cta {
  display: none;
}

.okmy-support-trigger,
.okmy-language-trigger,
.okmy-account-trigger {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: transform .24s ease, filter .24s ease;
}

.okmy-support-trigger img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: url(#clearcut-headset-alpha);
}

.okmy-support-trigger:hover {
  background: transparent;
}

.okmy-support-trigger:focus-visible {
  outline: 2px solid #428b9e;
  outline-offset: 3px;
}

.okmy-support-trigger:disabled {
  opacity: .5;
  cursor: wait;
}

.okmy-language-trigger:hover,
.okmy-language-trigger[aria-expanded="true"] {
  transform: scale(1.08);
  filter: saturate(1.35) brightness(1.12) drop-shadow(0 0 7px rgba(72,174,255,.72)) drop-shadow(0 0 15px rgba(38,153,255,.4));
}

.okmy-earth-globe {
  position: relative;
  display: block;
  width: 28px;
  height: 28px;
  overflow: hidden;
  border-radius: 50%;
  background: url('/earth-surface-nasa.webp') repeat-x 0 50% / auto 100%;
  animation: okmy-earth-rotate 12s linear infinite;
  box-shadow: inset -5px -1px 6px rgba(0,5,18,.58), inset 4px 2px 5px rgba(172,226,255,.34), 0 0 6px rgba(61,176,255,.48);
}

.okmy-earth-globe::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 34% 28%,rgba(255,255,255,.28),transparent 27%), linear-gradient(90deg,rgba(0,0,0,.2),transparent 32% 61%,rgba(0,0,0,.55));
  box-shadow: inset 0 0 2px rgba(219,245,255,.85);
  pointer-events: none;
}

.okmy-account-trigger {
  position: relative;
  isolation: isolate;
}

.okmy-account-trigger::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: conic-gradient(from 35deg,rgba(234,67,53,.82),rgba(251,188,5,.75),rgba(52,168,83,.75),rgba(66,133,244,.86),rgba(234,67,53,.82));
  filter: blur(10px);
  opacity: 0;
  transform: translate(-50%,-50%) scale(.68);
  transition: opacity .24s ease, transform .24s ease;
  pointer-events: none;
}

.okmy-account-trigger img {
  position: relative;
  z-index: 1;
  display: block;
  width: 24px;
  height: 24px;
  transition: transform .24s ease;
}

.okmy-account-trigger:hover {
  transform: scale(1.06);
}

.okmy-account-trigger:hover::after {
  opacity: .86;
  transform: translate(-50%,-50%) scale(1);
}

.okmy-account-trigger:hover img {
  transform: scale(1.04);
}

.okmy-language-menu {
  position: absolute;
  z-index: 180;
  top: 48px;
  right: 48px;
  width: 232px;
  max-height: min(620px,calc(100vh - 110px));
  padding: 7px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(16,35,53,.16);
  background: #fff;
  color: #102335;
  box-shadow: 0 18px 55px rgba(0,0,0,.24);
  scrollbar-width: thin;
}

.okmy-language-menu[hidden] {
  display: none;
}

.okmy-language-menu button {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  width: 100%;
  padding: 10px 11px;
  border: 0;
  background: transparent;
  color: #102335;
  font: 600 13px/1.2 Arial,"Noto Sans KR","Noto Sans JP",sans-serif;
  text-align: left;
  cursor: pointer;
}

.okmy-language-menu button:hover {
  background: #edf2f4;
}

.okmy-language-menu button.active {
  background: #31678f;
  color: #fff;
}

.okmy-language-menu img {
  display: block;
  width: 22px;
  height: 16px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(16,35,53,.12);
}

.okmy-language-menu p {
  margin: 7px 6px 2px;
  padding-top: 8px;
  border-top: 1px solid rgba(16,35,53,.14);
  color: #7b8790;
  font: 700 8px/1.3 monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@keyframes okmy-earth-rotate {
  from { background-position: 0 50%; }
  to { background-position: -56px 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .okmy-earth-globe { animation: none; }
}

@media (max-width: 720px) {
  .okmy-global-controls { gap: 2px; }
  .okmy-support-trigger,
  .okmy-language-trigger,
  .okmy-account-trigger { width: 34px; height: 34px; }
  .okmy-earth-globe { width: 25px; height: 25px; }
  .okmy-language-menu { right: 36px; width: 218px; max-height: calc(100vh - 92px); }
  .cc-nav-auth { gap: 5px !important; }
}

@media (max-width: 480px) {
  .cc-nav-inner { width: calc(100% - 24px); gap: 8px; justify-content: space-between; }
  .cc-nav .brand { gap: 6px; }
  .cc-nav .okmy-script-badge { width: 72px; height: 34px; }
  .cc-nav .okmy-script-badge .brand-logo { width: 58px; height: 28px; }
  .okmy-clearcut-name { font-size: 23px; }
}
