[hidden] {
  display: none !important;
}
#page {
  height: 100%;
}
:where(span[style*="background-image"]) {
  display: block;
  background-repeat: no-repeat;
}
.team-mates__code-content {
  box-sizing: border-box;
  width: 100%;
  padding-left: 0.5rem;
  /* gap: 0.08rem; */
}
.team-mates__code-label {
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 0.2rem;
}
.team-mates__code-value {
  white-space: nowrap;
  margin-left: 0;
  min-width: 0;
  /* flex: 1; */
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.22rem;
}
.team-mates__copy-icon {
  width: 0.32rem;
  height: 0.32rem;
  flex: 0 0 0.32rem;
  margin-left: 0;
}
body {
  font-family: "Noto Sans JP", "Noto Sans", sans-serif;
}
button,
input,
select,
textarea {
  font-family: inherit;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 2px solid #e0b765;
  outline-offset: 3px;
}
input,
textarea,
.native-scroll {
  user-select: text;
}
button[aria-disabled="true"] {
  cursor: default;
}
.native-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  /* background: radial-gradient(circle at 35% 25%, #d4b776, #64532f 65%, #302a22); */
  background-color: #64532f;
  color: #fff0cf;
  font-weight: 700;
  font-size: 0.34rem;
  text-shadow: 0 2px 3px #332611;
}
.team-mates__avatar.native-avatar {
  display: flex;
  font-size: 0.5rem;
  /* 暫不顯示使用者名稱首字：text-shadow 不受 color 影響，要一併關掉 */
  color: transparent;
  text-shadow: none;
}
.server-partitions__role-name,
.server-partitions__role-id {
  display: block;
}
.native-message {
  margin: 0;
  white-space: pre-wrap;
  font-size: 0.24rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
#modal-root [data-modal-view="error"],
#modal-root #modal-error-message {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.native-scroll {
  width: 5.8rem;
  max-height: 4.24rem;
  overflow: auto;
  box-sizing: border-box;
  text-align: left;
  font-size: 0.22rem;
  line-height: 1.55;
  padding-right: 0.14rem;
  overflow-wrap: anywhere;
}
.native-scroll p {
  margin: 0 0 0.18rem;
}
.native-scroll h3 {
  font-weight: 700;
  margin: 0 0 0.12rem;
}
.native-fine-print {
  opacity: 0.75;
  font-size: 0.18rem;
}
.manual-copy {
  width: 90%;
  border: 1px solid #987341;
  border-radius: 4px;
  margin: 0.2rem auto 0;
  padding: 0.1rem;
  font-size: 0.23rem;
  color: #4b2f0f;
  background: #f9eccb;
}
.clipboard-buffer {
  position: fixed;
  top: -1000px;
  left: -1000px;
}
.native-tooltip {
  position: fixed;
  z-index: 80;
  max-width: min(320px, 75vw);
  box-sizing: border-box;
  padding: 8px 12px;
  color: #fff0cf;
  background: #28221deb;
  border: 1px solid #b6a17e;
  box-shadow: 0 3px 15px #0008;
  border-radius: 3px;
  font: 14px/1.4 sans-serif;
  pointer-events: none;
  overflow-wrap: anywhere;
}
.demo-toolbar {
  position: fixed;
  left: 10px;
  bottom: 8px;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 9px;
  border: 1px solid #8a745960;
  border-radius: 4px;
  background: #19140ecd;
  color: #c9b891;
  font: 11px/1.4 sans-serif;
}
.demo-toolbar button {
  color: #f2d59b;
  font-size: 11px;
  padding: 3px 0;
  text-decoration: underline;
}
.demo-settings select {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: #f3e2bb;
  border: 1px solid #ac8c53;
  color: #4b2f0f;
  padding: 0.08rem;
  margin: 0.07rem 0 0.14rem;
  font-size: 0.22rem;
}
.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.08rem;
  margin-bottom: 0.14rem;
}
.native-button {
  background: #65502f;
  color: #fff0cd;
  border: 1px solid #937548;
  border-radius: 3px;
  padding: 0.1rem 0.12rem;
  font-size: 0.2rem;
}
.native-button:disabled {
  opacity: 0.45;
}
.native-button--danger {
  background: #814339;
}
.cookie-settings__cookie-header summary,
.cookie-settings summary {
  cursor: pointer;
}
.cookie-settings__cookie-description {
  padding: 0.08rem 0.1rem;
}
.cookie-settings__cookie-item-row {
  gap: 0.15rem;
}
.cookie-settings__cookie-name {
  text-align: left;
}
.cookie-settings {
  z-index: 60;
}
.cookie-settings__drawer {
  max-width: 95vw;
}
.native-rotate {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 35px;
  background: #171612;
  color: #e4d4af;
  padding: 30px;
  font: 16px/1.6 sans-serif;
  text-align: center;
}
.native-phone {
  width: 50px;
  height: 90px;
  border: 3px solid #d6bd7f;
  border-radius: 10px;
  position: relative;
  animation: phone-rotate 2.8s ease-in-out infinite;
}
.native-phone::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 20px;
  width: 10px;
  height: 3px;
  border-radius: 2px;
  background: #d6bd7f;
}
.storage-warning {
  position: fixed;
  left: 10px;
  top: 8px;
  z-index: 80;
  background: #534325;
  color: #fff0cd;
  padding: 6px 10px;
  font: 12px/1.5 sans-serif;
}
.noscript {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  color: #eee;
  font: 20px sans-serif;
}
@keyframes phone-rotate {
  0%,
  20% {
    transform: rotate(0);
  }
  60%,
  100% {
    transform: rotate(90deg);
  }
}
@media (max-width: 800px) {
  .demo-toolbar span {
    display: none;
  }
  .demo-toolbar {
    left: 5px;
    bottom: 4px;
    padding: 3px 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
.demo-toolbar,
.termsbtn,
.activity-main__footer {
  display: none !important;
}
/* LIPass 登入面板（由 Milo SDK 注入到 body）：固定居中、加遮罩與關閉按鈕 */
#milo-intl-login-component {
  position: fixed !important;
  left: 50% !important;
  top: 50% !important;
  margin: 0 !important;
  transform: translate(-50%, -50%);
  z-index: 1001;
  max-width: 96vw;
  max-height: 96vh;
  overflow: auto;
}
.login-component-mask {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #000a;
}
.login-component-close {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0006;
  color: #fff;
  font: 22px/32px sans-serif;
  text-align: center;
  cursor: pointer;
}
.login-component-close::before {
  content: "\00d7";
}
