.member-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  white-space: nowrap;
  font-size: 14px;
}

.member-actions a,
.member-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 4px 14px;
  border: 1px solid #d8e0ea;
  border-radius: 4px;
  background: #fff;
  color: #20304a;
  cursor: pointer;
}

.member-actions .member-login {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

.member-phone { color: #536177; }
.member-actions button:disabled { cursor: wait; opacity: 0.6; }

.sim-embed-body .library-header {
  grid-template-columns: 180px minmax(0, 1fr) auto;
}

.auth-page-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: #f7f9fc;
}

.auth-page-header {
  display: flex;
  justify-content: space-between;
  flex-shrink: 0;
  height: 58px;
  padding: 0 28px;
}

.auth-back { color: #66758d; font-size: 14px; }
.auth-back span { margin-left: 8px; }

.auth-page-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  align-items: center;
  gap: 72px;
  width: min(1080px, 100%);
  flex: 1;
  align-self: center;
  padding: 56px 32px;
}

.auth-eyebrow {
  margin-bottom: 20px;
  color: #2563eb;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
}

.auth-intro h1 {
  margin-bottom: 24px;
  color: #20304a;
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1.35;
  font-weight: 800;
}

.auth-intro h1 span { color: #2563eb; }
.auth-intro-copy { color: #66758d; font-size: 16px; line-height: 1.9; }
.auth-feature-list { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 28px; font-size: 13px; color: #536177; }
.auth-feature-list i { margin-right: 4px; color: #126b55; font-style: normal; }
.auth-circuit { display: block; width: 100%; max-width: 440px; margin-top: 42px; }
.auth-circuit text { fill: #66758d; font-size: 12px; }
.auth-circuit-wire { fill: none; stroke: #8da8dc; stroke-width: 2; }
.auth-circuit-node { fill: #fff; stroke: #d0dbed; stroke-width: 2; }
.auth-circuit-detail { fill: none; stroke: #2563eb; stroke-width: 2; stroke-linecap: round; }
.auth-circuit-contact { fill: #2563eb; }
.auth-circuit-lamp { fill: #edf3ff; stroke: #2563eb; stroke-width: 2; }

.auth-card {
  padding: 30px 32px 24px;
  border: 1px solid #e2e7f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(32, 48, 74, 0.05);
}

.auth-tabs { display: flex; gap: 28px; margin-bottom: 30px; border-bottom: 1px solid #e7ebf2; }
.auth-tabs button { position: relative; padding: 0 2px 12px; border: 0; background: none; color: #8a96a8; font-weight: 700; cursor: pointer; }
.auth-tabs button.on { color: #2563eb; }
.auth-tabs button.on::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; border-radius: 3px; background: #2563eb; content: ""; }
.auth-card h2 { margin-bottom: 8px; color: #20304a; font-size: 26px; line-height: 1.4; }
.auth-card-description { margin-bottom: 24px; color: #66758d; font-size: 13px; }
.auth-field { margin-top: 18px; }
.auth-field[hidden] { display: none; }
.auth-field label { display: block; margin-bottom: 8px; color: #20304a; font-size: 14px; font-weight: 700; }
.auth-input-group { display: flex; align-items: center; min-height: 46px; border: 1px solid #d8e0ea; border-radius: 6px; transition: border-color 0.15s, box-shadow 0.15s; }
.auth-input-group:focus-within { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08); }
.auth-input-group input { width: 100%; min-width: 0; height: 44px; padding: 0 13px; border: 0; outline: 0; border-radius: 6px; background: transparent; color: #20304a; font-size: 14px; }
.auth-input-group input::placeholder { color: #9aa6b7; }
.auth-country-code { margin-left: 13px; padding-right: 12px; border-right: 1px solid #e7ebf2; color: #66758d; font-size: 14px; }
.auth-password-toggle { align-self: stretch; padding: 0 13px; border: 0; background: none; color: #66758d; font-size: 12px; white-space: nowrap; cursor: pointer; }
.auth-code-row { display: grid; grid-template-columns: minmax(0, 1fr) 122px; gap: 8px; }
.auth-send-code { min-height: 46px; padding: 0 8px; border: 1px solid #d8e0ea; border-radius: 6px; background: #f7f9fc; color: #2563eb; font-size: 13px; white-space: nowrap; cursor: pointer; }
.auth-send-code:hover:not(:disabled) { border-color: #2563eb; background: #edf3ff; }
.auth-send-code:disabled { color: #8a96a8; cursor: default; }
.auth-message { min-height: 21px; margin: 12px 0; color: #b64122; font-size: 13px; }
.auth-message.success { color: #126b55; }
.auth-submit { width: 100%; min-height: 46px; border: 0; border-radius: 6px; background: #2563eb; color: #fff; font-weight: 700; cursor: pointer; }
.auth-submit:hover { background: #1d4ed8; }
.auth-submit:disabled { opacity: 0.65; cursor: wait; }
.auth-switch-line { display: flex; justify-content: center; gap: 4px; margin: 20px 0 24px; color: #66758d; font-size: 13px; }
.auth-switch-line button { padding: 0; border: 0; background: none; color: #2563eb; font-size: inherit; cursor: pointer; }
.auth-card-note { padding-top: 16px; border-top: 1px solid #eef1f6; color: #8a96a8; text-align: center; font-size: 12px; }
.auth-card-note span { margin-right: 6px; }
.auth-page-footer { padding: 16px; color: #8a96a8; text-align: center; font-size: 12px; }
.simulator-embed-placeholder h2 { margin-bottom: 10px; color: #20304a; font-size: 24px; }
.simulator-login-link { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; margin-top: 10px; padding: 0 24px; border-radius: 4px; background: #2563eb; color: #fff; }

@media (max-width: 1100px) {
  .library-body .library-header { position: relative; }
  .library-body .member-actions { position: absolute; top: 10px; right: 12px; }
  .library-body .library-search input { min-width: 0; }
}

@media (max-width: 900px) {
  .auth-page-main { grid-template-columns: minmax(0, 1fr); gap: 28px; max-width: 480px; padding: 36px 20px; }
  .auth-intro h1 { margin-bottom: 12px; font-size: 30px; }
  .auth-eyebrow { margin-bottom: 12px; }
  .auth-intro-copy, .auth-circuit { display: none; }
  .auth-feature-list { margin-top: 16px; gap: 8px 16px; }
}

@media (max-width: 680px) {
  .member-actions { gap: 6px; font-size: 12px; }
  .member-actions a, .member-logout { min-height: 32px; padding: 4px 10px; }
  .sim-embed-body .library-header { grid-template-columns: minmax(0, 1fr) auto; }
  .sim-embed-body .sim-header-title { display: none; }
  .sim-embed-body .member-actions { grid-column: 2; grid-row: 1; }
  .auth-page-header { padding: 0 16px; }
  .auth-card { padding: 24px; }
  .auth-page-main { padding: 28px 16px; }
}
