[hidden] { display: none !important; }
.auth-shell { width: min(980px, 100%); margin: 0 auto; padding: 64px 24px; display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 64px; }
.auth-intro { padding-top: 30px; }
.auth-intro h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.12; margin: 18px 0; letter-spacing: -1.5px; }
.auth-intro > p { font-size: 18px; line-height: 1.6; color: var(--muted); }
.auth-intro .eyebrow { font-size: 12px; color: var(--primary-dark); }
.auth-note { margin-top: 28px; border-top: 1px solid var(--line); padding: 18px 0 0; color: var(--muted); line-height: 1.6; }
.auth-panel { padding: 28px; }
.auth-panel h2 { margin-top: 0; }
.auth-form { display: grid; gap: 16px; margin: 20px 0; }
.auth-form label { display: grid; gap: 8px; font-size: 14px; font-weight: 600; }
.auth-form input { width: 100%; min-height: 46px; padding: 11px 12px; border-radius: 8px; border: 1px solid var(--line); background: white; font: inherit; }
.auth-form button, .provider-buttons button { min-height: 46px; padding: 12px 16px; border: 0; border-radius: 8px; background: var(--primary); color: white; font: inherit; font-weight: 650; cursor: pointer; }
.provider-buttons { display: grid; gap: 10px; }
.provider-buttons button[data-provider="telegram"] { background: #187eab; }
.provider-buttons button[data-provider="max"] { background: #5746ae; }
.auth-form button:disabled, .provider-buttons button:disabled { opacity: .45; cursor: not-allowed; }
.auth-small { font-size: 13px; line-height: 1.5; }
.auth-notice { padding: 12px 14px; background: #f4f6f8; border: 1px solid var(--line); border-radius: 8px; }
#emailSentAddress { overflow-wrap: anywhere; }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 24px 0; font-size: 12px; color: var(--muted); }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.auth-links { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.auth-steps { padding-left: 22px; line-height: 1.8; }
.auth-steps a, .auth-links a { color: var(--primary-dark); font-weight: 600; }
.account-narrow { max-width: 520px; }
#authStatus { font-size: 14px; line-height: 1.55; }
#authStatus:empty { display: none; }
#authStatus[data-error="true"] { color: var(--danger); }
.account-claims { display: grid; gap: 12px; }
.account-claims .item { padding: 16px; border: 1px solid var(--line); border-radius: 8px; }
.account-admin-layout { display: grid; gap: 24px; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #66bcb4; outline-offset: 3px; }
@media (max-width: 720px) {
  .auth-shell { grid-template-columns: 1fr; gap: 24px; padding: 24px 16px 40px; max-width: 500px; }
  .auth-intro { padding-top: 0; }
  .auth-intro h1 { font-size: 34px; }
  .auth-intro > p { font-size: 16px; }
  .auth-note { margin-top: 16px; font-size: 14px; }
  .auth-panel { padding: 22px; }
  .topbar { gap: 12px; }
  .topbar .nav { font-size: 12px; gap: 10px; }
}
[hidden] { display: none !important; }
.resident-report-link, .community-panel { margin: 20px 0; }
.community-panel { scroll-margin-top: 80px; }
.chat-selector { display: grid; gap: 8px; max-width: 440px; margin-top: 20px; }
.community-messages { display: grid; gap: 12px; max-height: 640px; overflow: auto; margin: 16px 0; }
.community-message { padding: 16px; border: 1px solid #e2e8f0; border-radius: 12px; }
.community-message p { white-space: pre-wrap; overflow-wrap: anywhere; }
.community-message time { font-size: 12px; color: #64748b; }
.community-settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; }
.chat-enabled { display: flex !important; align-items: center; }
.chat-enabled input { width: auto; }
.auth-links a.button { color: white; }
.resident-payment { display: grid; grid-template-columns: minmax(0, 1fr) 256px; gap: 8px 32px; margin: 24px 0; align-items: start; }
.payment-heading, .payment-details { grid-column: 1; }
.payment-heading > p, .payment-details > p { max-width: 60ch; line-height: 1.6; }
.payment-requisites { margin: 0; }
.payment-requisites > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.payment-requisites dt { color: var(--muted); }
.payment-requisites dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; overflow-wrap: anywhere; font-weight: 600; }
.payment-requisites .link-button { font-size: 13px; font-weight: 500; min-height: 36px; }
.payment-qr { grid-column: 2; grid-row: 1 / span 2; text-align: center; }
.payment-qr .auth-links { justify-content: center; }
.payment-qr .auth-links:has(a[hidden]) { display: none; }
.payment-qr figure { margin: 0; }
.payment-qr img { display: block; width: 100%; height: auto; aspect-ratio: 1; background: white; }
.payment-qr figcaption, .payment-qr > p { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 12px 0; }
.payment-qr .link-button { display: inline-flex; align-items: center; min-height: 44px; }
#paymentCopyStatus:empty { display: none; }
@media (max-width: 760px) {
  .resident-payment { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .payment-qr { grid-column: 1; grid-row: 2; width: min(256px, 100%); justify-self: center; }
  .payment-details { grid-row: 3; }
  .payment-requisites > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
