/* Portal-specific styling. Shared Citófono assets remain unchanged. */
.portal-auth{max-width:600px;margin:0 auto;padding:36px 20px 70px}.portal-auth>.brand{display:inline-flex;margin:0 0 38px}.portal-login{text-align:left;align-self:start;min-width:0;box-shadow:var(--shadow)}.portal-login h2{font-family:inherit;font-size:26px;line-height:1.25}.portal-login form{display:grid;gap:16px}.portal-login .button{justify-content:center}.login-error{color:var(--red);margin:0}.other-access{border-top:1px solid var(--line);padding-top:20px;margin:22px 0;display:grid;gap:12px}.other-access .text-button{text-align:left;display:flex;align-items:center;justify-content:space-between}.hero{align-items:start}.hero>.portal-login{margin-top:0}.module-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:22px}.module-card{text-align:left;border:1px solid var(--line);border-radius:var(--radius);padding:28px;background:var(--paper);color:var(--ink);display:flex;flex-direction:column;align-items:flex-start;gap:12px;min-width:0;transition:border-color .15s,transform .15s}.module-card h2,.module-card p{margin:0}.module-card p{color:var(--muted);line-height:1.7;flex:1}.module-card:hover{border-color:var(--forest);transform:translateY(-2px)}.module-card:focus-visible{outline:3px solid var(--clay);outline-offset:3px}.profile-options{display:grid;gap:12px}.request-item{padding:20px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.request-item:last-child{border-bottom:0}.request-item h3{margin:10px 0}.preserve-lines{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65}.pill{display:inline-block;background:var(--soft);border-radius:20px;color:var(--forest);font-size:12px;padding:4px 9px;white-space:nowrap}.security-terms{padding:18px 0}.security-terms summary{cursor:pointer;font-weight:600}.security-terms h3{font-size:15px}.document-list{display:grid;gap:10px;margin:16px 0}.document-list button{overflow-wrap:anywhere;text-align:left}.contact-list{display:grid;gap:12px}.panel>.actions{flex-wrap:wrap}.header-right{flex-wrap:wrap;justify-content:flex-end}.shell-nav{overflow-x:auto;flex-wrap:nowrap}.shell-nav .nav-item{flex-shrink:0}.section-title h1{max-width:100%;overflow-wrap:anywhere}.small{font-size:13px}.portal-login label{gap:8px}.portal-login .muted{line-height:1.6}.admin-grid>.panel{min-width:0}
@media(max-width:800px){.hero{gap:35px}.hero .portal-login{width:100%}.header-right .operator-label{display:none}.header-right{gap:6px}.header-right .connection{display:none}.shell-header{gap:12px}.module-grid{grid-template-columns:1fr}.module-card{padding:24px}.portal-auth{padding-top:24px}.shell-brand .tenant-label{max-width:140px}.header-right #choose-profile{font-size:12px}.panel .actions>.button{max-width:100%;white-space:normal}.section-title{flex-wrap:wrap}}
.visitor-suggestions{background:var(--paper);border:1px solid var(--line);border-radius:12px;margin-top:3px;max-height:260px;overflow:auto;box-shadow:var(--shadow);z-index:5}.visitor-suggestions[hidden]{display:none}.visitor-suggestions button{display:flex;flex-direction:column;width:100%;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--ink);padding:12px;text-align:left;gap:5px}.visitor-suggestions button:hover,.visitor-suggestions button[aria-selected=true]{background:var(--soft)}.visitor-suggestions small{color:var(--muted);font-weight:400}.porteria-selector{display:flex;align-items:center;gap:20px;margin-bottom:20px}.porteria-selector label{margin:0;flex:1}.resident-portal-nav{display:flex;overflow-x:auto;border-bottom:1px solid var(--line);gap:8px;padding:8px 0}.resident-portal-nav button{white-space:nowrap;flex-shrink:0}.resident-portal{max-width:900px;margin:0 auto;padding:20px}.resident-portal #workspace{padding:24px 0}.resident-portal .module-grid{grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}.resident-shell .resident-portal-nav{margin-bottom:16px}.phone-contact{display:flex;gap:10px;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--line)}.resident-portal .resident-header{margin-bottom:16px}.resident-portal .section-title h1{font-size:28px}.dark .module-card,.dark .portal-login{color:var(--ink);background:var(--paper)}.dark .pill{color:var(--ink)}.dark .text-link,.dark .text-button{color:var(--ink)}
@media(max-width:600px){.porteria-selector{display:block}.porteria-selector>span{display:block;margin-top:8px}.resident-portal{padding:16px}.resident-portal .admin-grid{grid-template-columns:1fr}.resident-portal-nav .button{padding:10px;font-size:13px}}
