
:where(.console-ui) {
  --ink: #162c26;
  --muted: #566b60;
  --line: #dce3dd;
  --green: #174c3a;
  --lime: #d2f196;
  font: 15px/1.55 Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #f6f8f5;
  color-scheme: light;
  -webkit-text-size-adjust: 100%;

  * { box-sizing: border-box; }
  body, h1, h2, p { margin: 0; }
  h1 { font-size: clamp(2rem, 3.3vw, 3.1rem); font-weight: 650; line-height: 1.22; letter-spacing: -.035em; }
  h2 { font-size: 1.25rem; line-height: 1.4; letter-spacing: -.03em; }
  a { color: inherit; text-decoration: none; }
  button, input { font: inherit; color: inherit; }
  button, summary { cursor: pointer; }
  button { border: 0; background: none; }
  button:disabled { opacity: .6; cursor: wait; }
  button, a, summary { -webkit-tap-highlight-color: transparent; }
  :focus-visible { outline: 3px solid #529873; outline-offset: 3px; }
  svg { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
  input:not([type=checkbox]) {
    width: 100%; min-width: 0; padding: .72rem .95rem; border: 1px solid #bdcbbf;
    border-radius: 9px; background: #fff; line-height: 1.5; outline: none;
  }
  input::placeholder { color: #76837a; }
  input:not([type=checkbox]):focus { border-color: #50826b; box-shadow: 0 0 0 3px #3878541a; }
  input:disabled { background: #eef2ed; color: #788579; }
  [hidden] { display: none !important; }
}

.wordmark { display: inline-flex; align-items: center; gap: .65rem; font-size: 1.5rem; font-weight: 680; line-height: 1; letter-spacing: -.06em; }
.brand-mark { position: relative; display: grid; place-items: center; width: 32px; height: 32px; background: var(--lime); border-radius: 9px; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; width: 9px; height: 17px; background: #173c30; transform: skew(-22deg); }
.brand-mark::before { margin-left: -8px; }
.brand-mark::after { height: 9px; margin: 8px 0 0 11px; }
.intro, .form-note, .login-help { color: var(--muted); }
.primary { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .77rem 1.2rem; background: var(--green); color: white; border: 1px solid var(--green); border-radius: 9px; font-weight: 600; line-height: 1.4; }
.primary:hover:enabled { background: #103b2c; }
.field { display: grid; gap: .45rem; }
.field label, .limit-pair legend { font-size: .93rem; font-weight: 600; }
.feedback { color: #943d32; background: #fff2ee; border-radius: 8px; padding: .7rem .9rem; overflow-wrap: anywhere; }
.feedback:empty { display: none; }

/* Login */
.login-page { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 16px; background: #fafbf8; }
.login-art {
  isolation: isolate; position: relative; overflow: hidden; display: flex; flex-direction: column;
  justify-content: space-between; min-height: 570px; padding: clamp(28px, 3.5vw, 64px);
  background: radial-gradient(ellipse at 65% 54%, #1f4133 0, #152e25 48%, #0e221b 95%); color: #edfae6; border-radius: 22px;
}
.login-art::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .33;
  background-image: radial-gradient(circle, #71927e 1px, transparent 1px);
  background-size: 24px 24px; mask-image: linear-gradient(155deg, transparent 8%, #000 53%, transparent 95%);
}
.login-art .wordmark { font-size: 1.65rem; }
.art-stage { position: absolute; inset: 13% 0 12%; z-index: -1; }
#orbit { display: block; width: 100%; height: 100%; }
.art-caption { display: flex; align-items: center; gap: .85rem; color: #d1dfd2; font-size: .95rem; letter-spacing: .12em; }
.art-rule { width: 2.5rem; height: 1px; background: var(--lime); }
.login-panel { position: relative; display: grid; align-items: center; justify-items: center; padding: 5.2rem clamp(26px, 4vw, 80px); }
.mobile-brand { display: none; }
.login-content { width: min(100%, 378px); }
.login-symbol { display: grid; place-items: center; width: 49px; height: 49px; border-radius: 14px; color: var(--green); background: #e7efdf; margin-bottom: 1.65rem; }
.login-symbol svg { width: 25px; height: 25px; }
.login-content .intro { margin: .8rem 0 2.1rem; }
#login { display: grid; gap: 1.12rem; }
#login input { height: 49px; }
.password-field { position: relative; }
.console-ui .password-field input { padding-right: 3.2rem; }
.eye-button { position: absolute; right: 3px; top: 3px; bottom: 3px; width: 42px; display: grid; place-items: center; color: var(--muted); border-radius: 7px; }
.eye-button:hover { background: #f1f5ee; }
.eye-button[aria-pressed=false] .eye-slash { display: none; }
.login-submit { position: relative; height: 49px; margin-top: .45rem; letter-spacing: .08em; }
.login-submit svg { position: absolute; right: 1rem; width: 17px; }
.login-help { font-size: .86rem; text-align: center; margin-top: 1.6rem; }
.instance { position: absolute; bottom: 1.85rem; color: var(--muted); font-size: .78rem; text-align: center; overflow-wrap: anywhere; max-width: 95%; }
.instance bdi { font-family: ui-monospace, Consolas, monospace; margin-left: .5rem; }

@media (max-width: 700px) {
  .login-page { display: block; padding: 0; }
  .login-art { display: none; }
  .login-panel { min-height: 100vh; min-height: 100svh; padding: 100px 24px 76px; }
  .mobile-brand { display: inline-flex; position: absolute; top: 26px; left: 24px; }
  .login-content h1 { font-size: 2.35rem; }
}
