.workspace-global-nav,
html:lang(en) body,
html:lang(en) button,
html:lang(en) input,
html:lang(en) select,
html:lang(en) textarea {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
html:lang(zh-TW) body,
html:lang(zh-TW) button,
html:lang(zh-TW) input,
html:lang(zh-TW) select,
html:lang(zh-TW) textarea {
  font-family: Inter, "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
}
html:lang(ja) body,
html:lang(ja) button,
html:lang(ja) input,
html:lang(ja) select,
html:lang(ja) textarea {
  font-family: Inter, "Noto Sans JP", "Yu Gothic", Meiryo, system-ui, sans-serif;
}
html:lang(ko) body,
html:lang(ko) button,
html:lang(ko) input,
html:lang(ko) select,
html:lang(ko) textarea {
  font-family: Inter, "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
}

.workspace-global-nav {
  position: relative;
  z-index: 80;
  width: min(1480px, calc(100% - 32px));
  margin: 16px auto 0;
  border: 1px solid rgba(199, 157, 115, .38);
  border-radius: 12px;
  color: #fff;
  background: #070b3f;
  box-shadow: 0 16px 40px rgba(7, 11, 63, .15);
  font-family: inherit;
}
.workspace-nav-row {
  display: grid;
  grid-template-columns: minmax(210px, 280px) minmax(500px, 1fr) auto;
  gap: 22px;
  align-items: center;
  min-height: 82px;
  padding: 14px 18px;
}
.workspace-brand { display: flex; align-items: center; gap: 13px; min-width: 0; color: inherit; text-decoration: none; }
.workspace-brand img { width: 132px; height: 48px; flex: 0 0 auto; object-fit: contain; }
.workspace-brand-copy { min-width: 0; padding-left: 13px; border-left: 1px solid rgba(255, 255, 255, .18); }
.workspace-brand-copy strong, .workspace-brand-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-brand-copy strong { color: #f2d0a9; font-size: 15px; }
.workspace-brand-copy span { margin-top: 3px; color: #aeb3cf; font-size: 11px; }
.workspace-primary-nav { display: flex; justify-content: center; gap: 3px; min-width: 0; }
.workspace-nav-link {
  position: relative;
  min-height: 42px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #d9dced;
  text-decoration: none;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 750;
  transition: color .16s ease, background .16s ease;
}
.workspace-nav-link:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.workspace-nav-link.is-disabled {
  gap: 5px;
  color: #7f849f;
  background: rgba(255, 255, 255, .035);
  cursor: not-allowed;
}
.workspace-nav-link.is-disabled small {
  padding: 2px 5px;
  border-radius: 999px;
  color: #9196ae;
  background: rgba(255, 255, 255, .07);
  font-size: 9px;
  font-weight: 700;
}
.workspace-nav-link.is-active { color: #fff; background: #101657; }
.workspace-nav-link.is-active::after {
  content: "";
  position: absolute;
  right: 13px;
  bottom: 5px;
  left: 13px;
  height: 2px;
  border-radius: 999px;
  background: #c79d73;
}
.workspace-utilities { display: flex; justify-content: flex-end; align-items: center; gap: 7px; }
.workspace-credit-pill, .workspace-account summary, .workspace-notifications summary, .workspace-locale, .workspace-recharge-link, .workspace-menu-button {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 8px;
  color: #eef0f8;
  background: rgba(255, 255, 255, .07);
  font-size: 12px;
}
.workspace-credit-pill { padding: 0 10px; display: inline-flex; align-items: center; color: #9be4d2; font-weight: 800; white-space: nowrap; }
.workspace-credit-pill b { margin-right: 4px; }
.workspace-notifications { position: relative; }
.workspace-notifications summary {
  position: relative;
  min-width: 64px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}
.workspace-notifications summary::-webkit-details-marker { display: none; }
.workspace-notification-icon { font-size: 14px; line-height: 1; }
.workspace-notifications summary b {
  position: absolute;
  top: -7px;
  right: -6px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  color: #fff;
  background: #e11d48;
  font-size: 10px;
  line-height: 19px;
  text-align: center;
}
.workspace-notification-panel {
  position: absolute;
  z-index: 100;
  top: calc(100% + 9px);
  right: 0;
  width: min(390px, calc(100vw - 32px));
  max-height: min(520px, 70vh);
  overflow: auto;
  padding: 9px;
  border: 1px solid #e7d7c7;
  border-radius: 12px;
  color: #101426;
  background: #fffdf9;
  box-shadow: 0 20px 52px rgba(7, 11, 63, .24);
}
.workspace-notifications:not([open]) .workspace-notification-panel { display: none; }
.workspace-notification-head {
  position: sticky;
  top: -9px;
  z-index: 1;
  padding: 10px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fffdf9;
}
.workspace-notification-head button {
  border: 0;
  color: #3156b8;
  background: transparent;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.workspace-notification-item {
  padding: 10px;
  border-radius: 8px;
  display: grid;
  gap: 4px;
  color: #101426;
  text-decoration: none;
}
.workspace-notification-item:hover, .workspace-notification-item.is-unread { background: #f2f4fb; }
.workspace-notification-item.is-unread { box-shadow: inset 3px 0 #3156b8; }
.workspace-notification-item span, .workspace-notification-item small { color: #68708a; font-size: 12px; line-height: 1.5; }
.workspace-notification-empty { padding: 26px 12px; color: #7c8399; text-align: center; font-size: 13px; }
.workspace-recharge-link { padding: 0 13px; display: inline-flex; align-items: center; color: #070b3f; background: #f1d0aa; text-decoration: none; font-weight: 900; }
.workspace-locale { width: 108px; padding: 0 28px 0 10px; color: #070b3f; background: #fffdf9; font-weight: 750; }
.workspace-account { position: relative; }
.workspace-account summary { max-width: 112px; padding: 0 10px; display: flex; align-items: center; gap: 5px; cursor: pointer; list-style: none; }
.workspace-account summary::-webkit-details-marker { display: none; }
.workspace-account-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-account-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 176px;
  padding: 8px;
  border: 1px solid #e7d7c7;
  border-radius: 10px;
  color: #101426;
  background: #fffdf9;
  box-shadow: 0 18px 42px rgba(7, 11, 63, .2);
}
.workspace-account-menu a, .workspace-account-menu button {
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  display: flex;
  align-items: center;
  color: #101426;
  background: transparent;
  text-decoration: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.workspace-account-menu a:hover, .workspace-account-menu button:hover { background: #f5ede4; }
[data-workspace-admin][hidden] { display: none !important; }
.workspace-menu-button { display: none; width: 42px; padding: 0; font-size: 20px; cursor: pointer; }
.workspace-mobile-panel { display: none; }
.workspace-context-row {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 36px;
  padding: 8px 18px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: #b8bdd5;
  font-size: 12px;
}
.workspace-context-row[hidden] { display: none; }
.workspace-context-row a { color: #f2d0a9; text-decoration: none; font-weight: 750; }
body.workspace-nav-ready .container.app-shell > nav.nav,
body.workspace-nav-ready .shell > nav.nav { display: none !important; }
body.workspace-nav-ready .works-main #historySection > .flex-between .btn { display: none !important; }
@media (max-width: 1240px) {
  .workspace-nav-row { grid-template-columns: minmax(190px, 250px) 1fr auto; gap: 12px; }
  .workspace-brand-copy { display: none; }
  .workspace-nav-link { padding: 0 9px; font-size: 13px; }
  .workspace-account summary { max-width: 86px; }
  .workspace-notifications summary > span:not(.workspace-notification-icon) { display: none; }
  .workspace-notifications summary { min-width: 44px; width: 44px; min-height: 44px; padding: 0; }
}
@media (max-width: 1040px) {
  .workspace-global-nav { width: min(100% - 24px, 760px); margin-top: 12px; }
  .workspace-nav-row { grid-template-columns: 1fr auto; min-height: 68px; padding: 10px 12px; }
  .workspace-brand img { width: 118px; height: 42px; }
  .workspace-primary-nav, .workspace-utilities > .workspace-locale, .workspace-utilities > .workspace-account { display: none; }
  .workspace-utilities { gap: 6px; }
  .workspace-menu-button { display: inline-flex; align-items: center; justify-content: center; }
  .workspace-mobile-panel.is-open { display: block; padding: 5px 10px 13px; border-top: 1px solid rgba(255, 255, 255, .12); }
  .workspace-mobile-links { display: grid; gap: 3px; }
  .workspace-mobile-links .workspace-nav-link { justify-content: space-between; min-height: 46px; padding: 0 13px; }
  .workspace-mobile-links .workspace-nav-link.is-active::after { top: 10px; right: auto; bottom: 10px; left: 3px; width: 3px; height: auto; }
  .workspace-mobile-utilities { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .12); }
  .workspace-mobile-utilities .workspace-locale { width: 100%; }
  .workspace-menu-button { width: 44px; min-height: 44px; }
  .workspace-mobile-action { min-height: 44px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .17); border-radius: 8px; display: flex; align-items: center; color: #eef0f8; background: rgba(255, 255, 255, .07); text-decoration: none; font-size: 12px; }
  button.workspace-mobile-action { font: inherit; cursor: pointer; }
}
@media (max-width: 520px) {
  .workspace-global-nav { width: calc(100% - 16px); margin-top: 8px; border-radius: 10px; }
  .workspace-credit-pill { display: none; }
  .workspace-recharge-link { min-height: 44px; padding: 0 10px; }
  .workspace-context-row { padding: 7px 12px; }
  .workspace-notification-panel { position: fixed; top: 68px; right: 8px; width: calc(100vw - 16px); }
}
