html.auth-pending .shell,
html.auth-locked .shell { visibility: hidden; }
.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #f5f6f7;
  font-family: 'Open Sans', sans-serif;
}
.auth-card {
  width: min(430px, 100%);
  padding: 34px;
  border: 1px solid #dedfe1;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0,0,0,.09);
  text-align: center;
}
.auth-brand {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  background: #83C341;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.auth-card h1 {
  margin: 18px 0 8px;
  color: #27282a;
  font-family: 'Montserrat', sans-serif;
  font-size: 25px;
  line-height: 1.2;
}
.auth-desc, .auth-status, .auth-foot { color: #676a6d; }
.auth-desc { margin: 0 0 22px; font-size: 14px; }
.auth-status {
  min-height: 22px;
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.5;
}
.auth-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  border: 1px solid #cfd2d5;
  border-radius: 8px;
  background: #fff;
  color: #303235;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.auth-google-btn:hover {
  border-color: #9fa3a7;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
  transform: translateY(-1px);
}
.auth-google-mark {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid #e0e1e3;
  border-radius: 50%;
  font-weight: 700;
}
.auth-foot { margin: 18px 0 0; font-size: 11px; }
.auth-user {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
}
.auth-user-main {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 5px 10px 5px 6px;
  border: 1px solid var(--border, #e1e3e5);
  border-radius: 9px;
  background: var(--bg, #fff);
  color: var(--text, #303235);
  cursor: default;
}
.auth-avatar {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: rgba(131,195,65,.16);
  color: #568a20;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
}
.auth-user-copy { display: flex; flex-direction: column; text-align: left; line-height: 1.2; }
.auth-user-copy strong { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.auth-user-copy small { margin-top: 2px; color: var(--muted, #777); font-size: 10px; }
.auth-logout {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--border, #e1e3e5);
  border-radius: 8px;
  background: transparent;
  color: var(--muted, #666);
  font-size: 11px;
  cursor: pointer;
}
.auth-logout:hover { background: var(--bg2, #f5f6f7); color: var(--text, #303235); }
@media (max-width: 860px) {
  .auth-user-copy { display: none; }
  .auth-user-main { padding-right: 6px; }
  .auth-logout { display: none; }
}
.auth-preview-control {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 4px 8px;
  border: 1px solid var(--border, #e1e3e5);
  border-radius: 9px;
  background: var(--bg, #fff);
  color: var(--muted, #666);
  font-size: 10px;
  white-space: nowrap;
}
.auth-preview-control select {
  max-width: 230px;
  min-height: 28px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text, #303235);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.auth-preview-banner {
  margin: 12px 18px 0;
  padding: 8px 12px;
  border: 1px solid #e8c76f;
  border-radius: 8px;
  background: #fff8df;
  color: #675015;
  font-size: 12px;
  line-height: 1.4;
}
@media (max-width: 1100px) {
  .auth-preview-control span { display: none; }
  .auth-preview-control select { max-width: 160px; }
}
