.owner-welcome-pop {
  animation: owner-welcome-pop 1.8s cubic-bezier(.2,.8,.2,1) both;
  transform-origin: top center;
}

.owner-summary-link {
  display: inline-block;
  max-width: 760px;
  color: var(--muted);
  text-decoration: none;
}

.owner-summary-link:hover,
.owner-summary-link:focus-visible {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.poll-choice-mode {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  margin-top: .35rem;
  padding: .4rem .65rem;
  border-radius: 999px;
  background: #eef2ee;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
}

.poll-choice-mode-multiple {
  background: #fff3c9;
  color: #8a6412;
}

.owner-lookup-error-dialog {
  max-width: 560px;
  padding: 2.2rem;
  border-top: 6px solid #d99032;
  text-align: center;
}

.owner-lookup-error-dialog h2 {
  margin-top: 0;
}

.owner-lookup-error-dialog p {
  line-height: 1.65;
}

.owner-lookup-error-dialog p a {
  color: var(--green);
  font-weight: 800;
  white-space: nowrap;
}

.owner-lookup-error-dialog .button {
  width: 100%;
  margin-top: .6rem;
}

.cabinet-body[data-owner-authorized="false"] .cabinet-shell {
  grid-template-columns: 1fr;
}

.cabinet-body[data-owner-authorized="false"] .cabinet-sidebar,
.cabinet-body[data-owner-authorized="false"] .cabinet-metrics,
.cabinet-body[data-owner-authorized="false"] .cabinet-workspace > section:not(#summary) {
  display: none;
}

.cabinet-body[data-owner-authorized="false"] .cabinet-shell {
  min-height: calc(100vh - 92px);
  align-content: center;
}

.cabinet-body[data-owner-authorized="false"] .owner-hero {
  grid-template-columns: minmax(0, 820px);
  justify-content: center;
  justify-items: center;
  text-align: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: clamp(1rem, 5vw, 3rem) 1rem;
}

.cabinet-body[data-owner-authorized="false"] .owner-hero > div:first-child {
  width: 100%;
}

.cabinet-body[data-owner-authorized="false"] .owner-hero h1 {
  margin-top: 1.4rem;
}

.cabinet-body[data-owner-authorized="false"] .owner-login-panel {
  margin-inline: auto;
}

.cabinet-body[data-owner-authorized="false"] .owner-status {
  width: min(100%, 420px);
  min-height: 0;
  margin-top: .5rem;
  padding: 1.1rem 1.3rem;
  border-radius: 18px;
  text-align: center;
  justify-content: center;
}

.cabinet-body[data-owner-authorized="false"] .owner-status strong {
  font-size: 1.45rem;
}

@keyframes owner-welcome-pop {
  0% { transform: scale(1); }
  30% { transform: scale(1.12); text-shadow: 0 12px 30px rgba(8,120,63,.24); }
  100% { transform: scale(1); }
}

.owner-activity-alert {
  display: inline-block;
  padding: .7rem 1rem;
  border: 2px solid #8fc5a0;
  border-radius: 12px;
  background: #f1f9f2;
  color: var(--green-dark) !important;
  font-weight: 800;
  animation: owner-activity-alert 2.4s ease 1.8s infinite;
}

@keyframes owner-activity-alert {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(8,120,63,0); }
  50% { transform: scale(1.035); box-shadow: 0 10px 28px rgba(8,120,63,.22), 0 0 0 4px rgba(185,239,77,.3); }
}

@media (prefers-reduced-motion: reduce) {
  .owner-welcome-pop,
  .owner-activity-alert { animation: none; }
}
