:root {
  --app-header-height: 60px;
  --app-header-padding-x: 28px;
  --app-logo-font-family: "Yomogi", "Noto Sans JP", sans-serif;
  --app-logo-font-size: 34px;
  --app-header-bg: #1b1012;
  --app-header-color: #f5f5f5;
  --app-header-accent: #b12b4b;
}

.mossan-app-header,
.site-header.mossan-app-header,
body[data-auth-shell="mossan-apps"] .auth-header {
  width: 100%;
  height: var(--app-header-height);
  min-height: var(--app-header-height);
  padding: 0;
  box-sizing: border-box;
  background: var(--app-header-bg);
  color: var(--app-header-color);
}

.mossan-app-header__inner,
.mossan-app-header .mossan-app-header__inner,
body[data-auth-shell="mossan-apps"] .auth-header__inner {
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0 auto;
  padding: 0 var(--app-header-padding-x);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mossan-app-header__logo,
body[data-auth-shell="mossan-apps"] .auth-logo {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  color: var(--app-header-color);
  text-decoration: none;
}

.mossan-app-header__logo-text,
.mossan-app-header .logo-text.mossan-app-header__logo-text,
body[data-auth-shell="mossan-apps"] .auth-logo__text {
  display: inline-flex;
  min-width: 0;
  padding: 0;
  align-items: center;
  color: var(--app-header-color);
  font-family: var(--app-logo-font-family);
  font-size: var(--app-logo-font-size);
  font-weight: 900;
  line-height: 1;
  letter-spacing: .02em;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .36);
  white-space: nowrap;
}

body[data-auth-shell="mossan-apps"] .auth-header__login {
  color: var(--app-header-color);
}

.mossan-app-header__action {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: var(--app-header-accent);
  color: var(--app-header-color);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  transition: filter .18s ease;
}

.mossan-app-header__action:hover {
  filter: brightness(1.12);
}

.mossan-app-header__action:focus-visible {
  outline: 3px solid var(--app-header-accent);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  :root {
    --app-header-padding-x: 16px;
    --app-logo-font-size: 28px;
  }
}

@media (max-width: 520px) {
  :root {
    --app-logo-font-size: 25px;
  }

  .mossan-app-header__logo-text,
  .mossan-app-header .logo-text.mossan-app-header__logo-text,
  body[data-auth-shell="mossan-apps"] .auth-logo__text {
    max-width: calc(100vw - 94px);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mossan-app-header__action {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }
}
