:root {
  --mf601-shell-primary: #1f6feb;
  --mf601-shell-ink: #1d1d1f;
  --mf601-shell-muted: #6b7280;
  --mf601-shell-border: #d2d2d7;
  --mf601-shell-bg: #f7f8fa;
  --mf601-shell-radius: 8px;
}

html.mf601-shell-enabled {
  scroll-behavior: smooth;
}

.mf601-shell {
  color: var(--mf601-shell-ink);
  background: #fff;
  border-bottom: 1px solid var(--mf601-shell-border);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 13px;
  line-height: 1.5;
  position: relative;
  z-index: 9999;
}

.mf601-shell[data-mf601-shell="bottom"] {
  border-top: 1px solid var(--mf601-shell-border);
  border-bottom: 0;
  background: var(--mf601-shell-bg);
  color: var(--mf601-shell-muted);
}

.mf601-shell__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.mf601-shell__brand {
  color: var(--mf601-shell-primary);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
}

.mf601-shell__tagline {
  color: var(--mf601-shell-muted);
}

.mf601-shell__contact {
  margin-left: auto;
}

.mf601-shell a {
  color: inherit;
  text-decoration: none;
}

.mf601-shell a:hover {
  color: var(--mf601-shell-primary);
}

html.mf601-shell-enabled button,
html.mf601-shell-enabled .el-button,
html.mf601-shell-enabled .btn,
html.mf601-shell-enabled input[type="submit"] {
  border-radius: var(--mf601-shell-radius);
}

html.mf601-shell-enabled input[type="text"],
html.mf601-shell-enabled input[type="email"],
html.mf601-shell-enabled input[type="tel"],
html.mf601-shell-enabled input[type="password"],
html.mf601-shell-enabled select,
html.mf601-shell-enabled textarea {
  border-radius: var(--mf601-shell-radius);
}

/* Login/regist pages: keep native Vue form, only align the visual shell. */
html.mf601-shell-enabled[data-mf601-area="clientarea"] .login-container .container-back {
  background: linear-gradient(135deg, #0b1f33 0%, #123a5c 100%);
}
html.mf601-shell-enabled[data-mf601-area="clientarea"] .login-container .text-welcome {
  display: none;
}
html.mf601-shell-enabled[data-mf601-area="clientarea"] .login-container .text-title {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 1px;
}

@media (max-width: 640px) {
  .mf601-shell__inner {
    padding: 8px 14px;
    gap: 8px 14px;
  }
  .mf601-shell__contact {
    margin-left: 0;
  }
}
