.header-auth {
  display: none;
  align-items: center;
  gap: 8px;
}
@media (min-width: 1024px) {
  .header-auth { display: flex; }
}
.header-auth a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.header-auth__login {
  color: inherit;
  border: 1px solid rgba(0,0,0,.12);
}
.header-auth__register {
  background: #111;
  color: #fff;
}
.header-auth__guest,
.header-auth__user {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-auth.is-in .header-auth__guest { display: none; }
.header-auth:not(.is-in) .header-auth__user { display: none; }

.auth-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  padding: 8px 0;
}
.auth-card {
  width: min(360px, 100%);
  padding: 8px 4px 4px;
  color: #1f2a24;
}
.auth-tabs {
  display: flex;
  gap: 20px;
  margin-bottom: 22px;
}
.auth-tabs button {
  border: 0;
  background: none;
  padding: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: #9aa59e;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.auth-tabs button.is-active {
  color: #1f2a24;
  border-bottom-color: #3d9b6a;
}
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-form.is-hidden { display: none; }
.auth-form input[type="text"],
.auth-form input[type="password"],
.auth-form input[type="tel"] {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid #dbe6df;
  background: #fff;
  color: #1f2a24;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
}
.auth-form input::placeholder { color: #9aa59e; }
.auth-form input:focus {
  border-color: #3d9b6a;
  box-shadow: 0 0 0 3px rgba(61, 155, 106, .16);
}
.auth-form button[type="submit"] {
  margin-top: 4px;
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 650;
  color: #fff;
  background: #3d9b6a;
  cursor: pointer;
}
.auth-form button[type="submit"]:hover { background: #34875c; }
.auth-forgot {
  align-self: flex-end;
  font-size: 13px;
  color: #8a958e;
  text-decoration: none;
}
.auth-forgot:hover { color: #3d9b6a; }
.auth-msg {
  min-height: 16px;
  margin: 0;
  font-size: 12px;
  color: #b42318;
}
.auth-msg.is-ok { color: #067647; }

.console-wrap {
  min-height: 100vh;
  background: #f4f8f6;
  color: #1f2a24;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}
.console-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: #fff;
  border-bottom: 1px solid #dbe6df;
}
.console-bar a {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}
.console-bar .who { color: #6b7a72; font-size: 13px; margin-right: 12px; }
.console-out {
  border: 1px solid #dbe6df;
  background: #fff;
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
}
.console-main { max-width: 1080px; margin: 0 auto; padding: 28px 20px 80px; }
.console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.console-head h1 { margin: 0; font-size: 22px; }
.console-head p { margin: 4px 0 0; color: #6b7a72; font-size: 13px; }
.btn-green {
  border: 0;
  border-radius: 12px;
  padding: 10px 16px;
  background: #3d9b6a;
  color: #fff;
  font-weight: 650;
  cursor: pointer;
}
.btn-green:hover { background: #34875c; }
.phone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.phone-card {
  background: #fff;
  border: 1px solid #dbe6df;
  border-radius: 18px;
  padding: 14px 12px 12px;
  cursor: pointer;
  text-align: center;
}
.phone-card:hover { border-color: #3d9b6a; }
.phone-card .bezel {
  width: 92px;
  height: 168px;
  margin: 0 auto 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, #e8f4ee, #cfe6d8);
  border: 3px solid #1f2a24;
  position: relative;
}
.phone-card .dot {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #1f2a24;
  opacity: .35;
}
.phone-card h3 { margin: 0; font-size: 14px; }
.phone-card .st { margin: 4px 0 0; font-size: 12px; color: #3d9b6a; }
.phone-card.is-off .st { color: #9aa59e; }
.console-empty {
  background: #fff;
  border: 1px dashed #c9d8d0;
  border-radius: 16px;
  padding: 48px 20px;
  text-align: center;
  color: #6b7a72;
}
.stage {
  display: none;
  position: fixed;
  inset: 0;
  background: #f4f8f6;
  z-index: 20;
}
.stage.is-open { display: flex; flex-direction: column; }
.stage-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: #fff;
  border-bottom: 1px solid #dbe6df;
}
.stage-bar button {
  border: 1px solid #dbe6df;
  background: #fff;
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
}
.stage-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 24px;
}
.stage-phone {
  width: min(320px, 42vh);
  aspect-ratio: 9 / 19;
  border-radius: 28px;
  background: #111;
  padding: 10px;
  box-shadow: 0 18px 40px rgba(31, 42, 36, .18);
}
.stage-screen {
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(180deg, #d7efe4, #f7fbf8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #1f2a24;
  text-align: center;
  padding: 20px;
}
.stage-screen b { display: block; margin-bottom: 8px; }
.stage-screen span { color: #6b7a72; font-size: 13px; line-height: 1.6; }
.stage-side { width: 220px; display: flex; flex-direction: column; gap: 8px; }
.stage-side button {
  border: 1px solid #dbe6df;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  text-align: left;
}
.stage-side button:hover { border-color: #3d9b6a; }
.stage-note { margin: 8px 0 0; font-size: 12px; color: #8a958e; }
@media (max-width: 720px) {
  .stage-body { flex-direction: column; }
  .stage-side { width: min(320px, 100%); }
}
