*{box-sizing:border-box}html{color-scheme:dark}html,body{margin:0;min-height:100%;background:var(--ref-night);color:var(--ref-ivory)}body{font-family:Arial,Helvetica,sans-serif}a{color:var(--ref-turquoise);text-underline-offset:3px}button,input,textarea{font:inherit}button,a,input,summary,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.65;cursor:wait}:focus-visible{outline:2px solid var(--ref-gold);outline-offset:3px}[hidden]{display:none!important}
.sergus-access{width:100%;max-width:480px;margin:0 auto;min-height:100dvh;display:block;background:var(--ref-night)}
.sergus-header{height:72px;min-height:72px;border-bottom:1px solid var(--ref-form-border);display:flex;align-items:center;justify-content:space-between;padding:9px 21px;gap:14px}
.sergus-brand{display:block;line-height:0;flex:0 1 271px;min-width:0}.sergus-brand img{display:block;width:100%;height:auto;max-height:54px;object-fit:contain;object-position:left center}
.profile-link{width:42px;height:44px;display:grid;place-items:center;flex-shrink:0;color:var(--ref-turquoise);position:relative}.profile-link svg{width:41px;height:41px;stroke-width:.8}.profile-status{position:absolute;width:8px;height:8px;border:1px solid var(--ref-night);border-radius:50%;right:1px;bottom:5px;background:var(--ref-online)}
.access-main{padding:10px 15px 16px;display:block;min-height:calc(100dvh - 155px);min-width:0}
.welcome{padding:0 15px}.welcome h1{font-family:'Times New Roman',Times,serif;font-size:38px;font-weight:400;line-height:44px;letter-spacing:-.35px;margin:0;white-space:nowrap}.welcome p{color:var(--ref-secondary);font-family:'Times New Roman',Times,serif;font-size:16px;line-height:18px;margin:0;max-width:350px}
.login-card{margin:10px 0 0;padding:9px 14px 6px;border:1px solid var(--ref-form-border);border-radius:10px;background:var(--ref-surface)}
.login-card label{display:block;font:bold 14px/17px 'Times New Roman',Times,serif;color:var(--ref-ivory);margin:0 0 4px}.login-card .password-label{margin-top:4px}
.input-shell{position:relative;display:flex;height:36px;border:1px solid var(--ref-input-border);border-radius:7px;align-items:center;min-width:0;overflow:hidden;background:var(--ref-night)}.field-icon{height:100%;width:38px;flex-shrink:0;border-right:1px solid var(--ref-input-border);display:grid;place-items:center}.field-icon svg{width:22px;height:22px;stroke:var(--ref-ivory)}
.input-shell input{border:0;outline:none;background:transparent;color:var(--ref-ivory);padding:8px 13px;min-width:0;width:100%;font-size:14px;line-height:18px;min-height:34px}.input-shell input::placeholder{color:var(--ref-secondary);opacity:1}.input-shell:focus-within{outline:2px solid var(--ref-turquoise);outline-offset:2px}
.eye-toggle{border:0;background:transparent;color:var(--ref-ivory);width:36px;min-width:36px;height:34px;display:grid;place-items:center;padding:6px}.eye-toggle svg{width:19px;height:19px}
.show-password{border:0;background:transparent;color:var(--ref-turquoise);font-size:12px;line-height:18px;min-height:28px;display:flex;align-items:center;margin:2px 0 0;padding:0;text-decoration:underline;text-underline-offset:3px}
.enter-button{width:100%;height:38px;display:flex;align-items:center;justify-content:center;position:relative;margin:3px 0 0;border:0;border-radius:8px;background:linear-gradient(90deg,var(--ref-button-left),var(--ref-button-right));color:var(--ref-night);font-size:18px;line-height:22px;font-weight:700}.enter-button svg{position:absolute;right:14px;width:20px;height:20px}
.forgot-link{display:flex;align-items:center;justify-content:center;min-height:27px;margin-top:1px;font-size:12px;line-height:16px;text-align:center}
.signup-divider{display:flex;align-items:center;gap:11px;margin:14px 7px 10px;font-size:10.5px;line-height:18px;min-height:18px;font-weight:700;letter-spacing:2.1px;color:var(--ref-gold);white-space:nowrap}.signup-divider::before,.signup-divider::after{content:'';height:1px;background:var(--ref-gold);flex:1}
.public-choices{display:flex;flex-direction:column;gap:7px;margin:0 3px}
.choice-card{position:relative;min-height:68px;display:flex;gap:9px;align-items:center;border:1px solid var(--choice-colour);border-radius:10px;padding:5px 8px;background:var(--ref-night);color:var(--ref-ivory);text-decoration:none}
.choice-client{--choice-colour:var(--ref-client-border)}.choice-host{--choice-colour:var(--ref-host-border)}.choice-support{--choice-colour:var(--ref-support-border)}.choice-icon{flex:0 0 56px;width:56px;height:55px;object-fit:contain;display:block}.choice-copy{min-width:0;flex:1 1 auto;padding-right:0}.choice-title{display:block;font:bold 18px/22px 'Times New Roman',Times,serif;white-space:normal}.choice-description{display:block;color:var(--ref-secondary);font-size:12px;line-height:14.5px;margin-top:3px}.choice-arrow{position:static;flex:0 0 32px;width:32px;height:32px;border:1px solid var(--choice-colour);border-radius:50%;display:grid;place-items:center;color:var(--choice-colour)}.choice-arrow svg{width:18px;height:18px}
.access-links{display:flex;align-items:center;justify-content:center;gap:26px;min-height:28px;margin:10px 0 0;font-size:12px;line-height:17px}.access-links a{display:flex;align-items:center;min-height:28px}.access-links .separator{width:1px;height:15px;background:var(--ref-turquoise);flex-shrink:0}
.legal-box{margin:17px 5px 0;border:1px solid var(--ref-gold);border-radius:7px;color:var(--ref-secondary);background:var(--ref-night)}.legal-box summary{min-height:37px;padding:5px 13px;display:flex;align-items:center;gap:12px;cursor:pointer;list-style:none}.legal-box summary::-webkit-details-marker{display:none}.legal-shield{width:21px;height:24px;object-fit:contain}.legal-separator{height:22px;width:1px;background:var(--ref-gold);flex-shrink:0}.copyright{font-size:11px;line-height:14px;white-space:nowrap;flex:1}.legal-chevron{width:14px;height:14px;flex-shrink:0;stroke:var(--ref-ivory)}.legal-box[open] .legal-chevron{transform:rotate(180deg)}.legal-copy{padding:5px 14px 12px;font-size:16px;line-height:1.5}.legal-copy p{margin:6px 0}.legal-box:not([open]){margin-top:auto}.access-links+.legal-box{margin-top:17px}
.sergus-footer{min-height:83px;border-top:1px solid var(--ref-form-border);padding:10px 4px 25px}.sergus-footer nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));min-height:47px}.sergus-footer a{text-decoration:none;color:var(--ref-secondary);font-size:12px;line-height:15px;min-height:47px;display:flex;flex-direction:column;align-items:center;gap:4px;position:relative}.sergus-footer img,.sergus-footer svg{width:25px;height:25px;object-fit:contain}.sergus-footer a[aria-current=page]{color:var(--ref-turquoise)}.sergus-footer a[aria-current=page]::after{content:'';position:absolute;left:22%;right:22%;bottom:-6px;height:2px;border-radius:1px;background:var(--ref-turquoise)}
.access-status:empty{display:none}.access-status{padding:9px 11px;margin:8px 0;border:1px solid var(--ref-input-border);color:var(--ref-ivory);border-radius:6px;font-size:14px;line-height:1.4;overflow-wrap:anywhere}.access-status:focus{outline:2px solid var(--ref-gold)}
.support-form{margin-top:18px;padding:16px;border:1px solid var(--ref-support-border);border-radius:10px;font-size:16px}.support-form label{display:block;margin:12px 0 5px}.support-form input,.support-form textarea{width:100%;font-size:16px;line-height:1.5;padding:9px 11px;border:1px solid var(--ref-input-border);border-radius:6px;color:var(--ref-ivory);background:var(--ref-night)}.support-form textarea{min-height:150px;resize:vertical}.support-form button[type=submit]{margin-top:14px;min-height:44px}.support-form details{margin-top:14px;font-size:14px;line-height:1.5}.support-form summary{min-height:32px}.support-page .welcome h1{font-size:30px;white-space:normal;line-height:1.15}.support-back{display:block;margin:20px 0;text-align:center;min-height:28px}

@media(max-width:374px){.sergus-header{padding-inline:18px;gap:10px}.sergus-brand{flex-basis:253px}.welcome{padding-inline:10px}.welcome h1{font-size:38px}.choice-title{font-size:18px}.copyright{white-space:normal}.legal-box summary{gap:9px;padding-inline:10px}.access-links{gap:18px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.legal-box:not([open]) .legal-copy{display:none}

input[type=hidden]{display:none!important}


.access-main>.welcome,.access-main>.login-card,.access-main>.signup-divider,.access-main>.public-choices,.access-main>.access-links,.access-main>.legal-box,.public-choices>.choice-card{flex-shrink:0}

/* Normal document flow prevents the footer from covering content at enlarged text sizes. */


/* Controlled correction: spacing only. Font sizes, icons and touch minima unchanged. */
.access-main:not(.support-page) .choice-card{padding-top:1px;padding-bottom:1px}
.access-main:not(.support-page) .choice-description{margin-top:1px}
.access-main:not(.support-page) .public-choices{gap:5px}
.access-main:not(.support-page) .signup-divider{margin-top:7px;margin-bottom:5px}
.access-main:not(.support-page) .access-links+.legal-box{margin-top:8px}
@media(max-width:374px){
 .access-main:not(.support-page){padding-top:6px;padding-bottom:8px;min-height:calc(100dvh - 140px)}
 .access-main:not(.support-page) .login-card{margin-top:6px;padding-top:7px;padding-bottom:4px}
 .access-main:not(.support-page) .choice-card{padding-top:0;padding-bottom:0}
 .access-main:not(.support-page) .signup-divider{margin-top:3px;margin-bottom:3px}
 .access-main:not(.support-page) .access-links{margin-top:4px}
 .access-main:not(.support-page) .access-links+.legal-box{margin-top:4px}
 .sergus-access:has(.access-main:not(.support-page)) .sergus-footer{min-height:68px;padding-bottom:10px}
}

/* Restore reference line breaks without reducing the text size. */
.access-main:not(.support-page) .welcome{padding-right:0}
.access-main:not(.support-page) .show-password{margin-top:7px}
.access-main:not(.support-page) .enter-button{margin-top:10px}
.access-main:not(.support-page) .signup-divider{margin-top:10px;margin-bottom:8px}
@media(max-width:374px){
 .access-main:not(.support-page) .welcome p{width:calc(100% + 11px);max-width:none}
 .access-main:not(.support-page) .signup-divider{margin-top:3px;margin-bottom:3px}
}

/* Browser-verified vertical spacing; typography, icons and control sizes retained. */
.access-main:not(.support-page){padding-top:6px;padding-bottom:8px}
.access-main:not(.support-page) .login-card{margin-top:6px;padding-top:7px;padding-bottom:4px}
.access-main:not(.support-page) .show-password{margin-top:2px}
.access-main:not(.support-page) .enter-button{margin-top:3px}
@media(max-width:374px){
 .access-main:not(.support-page){padding-top:0;padding-bottom:0;min-height:calc(100dvh - 137px)}
 .access-main:not(.support-page) .login-card{margin-top:2px;padding-top:4px;padding-bottom:2px}
 .access-main:not(.support-page) .signup-divider{margin-top:0;margin-bottom:0}
 .access-main:not(.support-page) .access-links{margin-top:0}
 .access-main:not(.support-page) .access-links+.legal-box{margin-top:0}
 .sergus-access:has(.access-main:not(.support-page)) .sergus-footer{padding-top:7px;min-height:65px}
}

/* Founder-authorised C334 adjustment, scoped exclusively to the login view. */
.access-main.login-page{padding-top:10px}
.access-main.login-page .login-card{margin-top:12px}
.access-main.login-page .show-password{margin-top:8px;margin-bottom:3px}
.access-main.login-page .forgot-link{margin-top:7px;min-height:31px}

/* C335 final compacting: exact copy, existing icons/type, accessible bottom group. */
.sergus-access:has(.access-main.login-page){display:flex;flex-direction:column;min-height:100svh}
.sergus-access:has(.access-main.login-page) .sergus-header{flex:none}
.access-main.login-page{display:flex;flex-direction:column;flex:1 0 auto;min-height:0;padding-bottom:clamp(38px,calc(50svh - 376px),82px)}
.access-main.login-page .login-card{margin-top:8px}
.access-main.login-page .choice-card{min-height:57px;padding-top:0;padding-bottom:0;gap:6px}
.access-main.login-page .access-links{margin-top:auto}
.sergus-access:has(.access-main.login-page) .sergus-footer{flex:none;min-height:calc(62px + env(safe-area-inset-bottom,0px));padding-top:12px;padding-bottom:calc(2px + env(safe-area-inset-bottom,0px))}
.sergus-access:has(.access-main.login-page) .sergus-footer a{min-height:47px;gap:2px}
.sergus-access:has(.access-main.login-page) .sergus-footer a[aria-current=page]::after{bottom:-1px}
@media(max-width:374px){
 .sergus-access:has(.access-main.login-page) .sergus-footer{min-height:calc(59px + env(safe-area-inset-bottom,0px));padding-top:9px}
}

/* C336: only the two spacing adjustments explicitly requested. */
.access-main.login-page{padding-bottom:calc(clamp(38px,calc(50svh - 376px),82px) - 6px)}
.access-main.login-page .enter-button{margin-top:9px}


/* C337 support correction: scoped to public Contactar Apoio only. */
.sergus-access:has(.contact-page){display:flex;flex-direction:column;min-height:100svh}
.sergus-access:has(.contact-page) .sergus-header{flex:none}
.access-main.contact-page{display:flex;flex-direction:column;flex:1 0 auto;min-height:0;padding:14px 14px 14px}
.contact-page .welcome{padding:0 10px}
.contact-page .welcome h1{font:400 20px/26px 'Times New Roman',Times,serif;letter-spacing:0;white-space:normal;margin:0 0 3px}
.contact-page .welcome p{font:400 14px/18px Arial,Helvetica,sans-serif;max-width:none}
.contact-page .support-form{margin:14px 0 0;padding:12px 14px 4px;border-color:var(--ref-form-border);border-radius:9px;background:var(--ref-night)}
.contact-page .support-field+.support-field{margin-top:12px}
.contact-page .support-form label{margin:0 0 4px;font:400 16px/20px 'Times New Roman',Times,serif}
.contact-page .input-shell{height:44px;border-radius:6px}
.contact-page .input-shell input{height:42px;min-height:42px;border:0;border-radius:0;font:400 16px/20px Arial,Helvetica,sans-serif;padding:10px 13px;background:transparent}
.contact-page .field-icon{width:36px}
.contact-page .field-icon svg{width:22px;height:22px}
.contact-page .support-message-shell{position:relative;display:flex;border:1px solid var(--ref-input-border);border-radius:6px;overflow:hidden}
.contact-page .support-message-shell .field-icon{position:absolute;left:0;top:0;height:36px;border-bottom:1px solid var(--ref-input-border);border-radius:0 0 6px 0;pointer-events:none}
.contact-page .support-message-shell textarea{display:block;border:0;border-radius:0;min-height:100px;height:clamp(100px,calc(100svh - 700px),120px);padding:10px 10px 10px 48px;font:400 16px/20px Arial,Helvetica,sans-serif;resize:vertical}
.contact-page .support-message-shell textarea::placeholder{color:var(--ref-secondary);opacity:1}
.contact-page .support-message-shell:focus-within{outline:2px solid var(--ref-turquoise);outline-offset:2px}
.contact-page .support-form .enter-button{margin-top:12px;height:44px;min-height:44px;font-size:18px}
.contact-page .support-info{border:1px solid var(--ref-input-border);border-radius:8px;margin-top:14px;font:400 14px/20px Arial,Helvetica,sans-serif}
.contact-page .support-info summary{display:flex;align-items:center;gap:12px;padding:8px 12px;min-height:44px;list-style:none;cursor:pointer}
.contact-page .support-info summary::-webkit-details-marker{display:none}
.contact-page .support-info summary span{flex:1}
.contact-page .support-info svg{width:20px;height:20px;flex:none}
.contact-page .support-info[open] .info-chevron{transform:rotate(180deg)}
.contact-page .support-info>div{padding:0 12px 8px}
.contact-page .support-info p{margin:8px 0}
.contact-page .support-back{display:flex;align-items:center;justify-content:center;flex:none;min-height:44px;margin:12px 0 0;font:400 14px/20px Arial,Helvetica,sans-serif}
.sergus-access:has(.contact-page) .sergus-footer{flex:none;min-height:calc(83px + env(safe-area-inset-bottom,0px));padding-bottom:calc(25px + env(safe-area-inset-bottom,0px))}
@media(max-height:820px){
 .access-main.contact-page{padding-top:10px;padding-bottom:10px}
 .contact-page .support-form{margin-top:12px;padding-top:10px}
 .contact-page .support-field+.support-field{margin-top:10px}
 .contact-page .support-info{margin-top:10px}
}


/* C338: fit the support view in the usable Android viewport, without clipping. */
.access-main.contact-page{padding-top:6px;padding-bottom:4px}
.contact-page .support-form{margin-top:8px;padding-top:6px}
.contact-page .support-field+.support-field{margin-top:4px}
.contact-page .support-form .enter-button{margin-top:8px}
.contact-page .support-info{margin-top:8px}
.contact-page .support-back{margin-top:6px}
.sergus-access:has(.contact-page) .sergus-footer{min-height:calc(55px + env(safe-area-inset-bottom,0px));padding-top:6px;padding-bottom:calc(1px + env(safe-area-inset-bottom,0px))}
.sergus-access:has(.contact-page) .sergus-footer a{min-height:47px;gap:2px}
.sergus-access:has(.contact-page) .sergus-footer a[aria-current=page]::after{bottom:-1px}


/* C339: approved host candidacy composition, isolated from all other views. */
.sergus-access:has(.host-page){display:flex;flex-direction:column;min-height:100svh}
.sergus-access:has(.host-page) .sergus-header{flex:none}
.access-main.host-page{display:flex;flex-direction:column;flex:1 0 auto;min-height:0;padding:6px 15px 2px}
.host-page .welcome{padding:0 10px}
.host-page .welcome h1{font:400 28px/34px 'Times New Roman',Times,serif;letter-spacing:0;margin:0 0 3px;white-space:normal}
.host-page .welcome p{font:400 16px/20px 'Times New Roman',Times,serif;max-width:none}
.host-page .host-form{margin:6px 8px 0}
.host-page .host-form h2{font:400 24px/29px 'Times New Roman',Times,serif;color:var(--ref-ivory);margin:0 0 6px}
.host-page .host-field+.host-field{margin-top:4px}
.host-page .host-field label{display:block;font:400 14px/18px Arial,Helvetica,sans-serif;margin:0 0 3px;color:var(--ref-ivory)}
.host-page .input-shell{height:44px;border-color:#417083;border-radius:7px;background:var(--ref-surface)}
.host-page .field-icon{width:40px;border-color:#417083}
.host-page .field-icon svg{width:22px;height:22px}
.host-page .input-shell input{height:42px;min-height:42px;font:400 16px/20px Arial,Helvetica,sans-serif;padding:10px 12px}
.host-page .host-textarea-shell{display:flex;position:relative;border:1px solid #417083;border-radius:7px;background:var(--ref-surface);overflow:hidden}
.host-page .host-textarea-shell .field-icon{position:absolute;top:0;bottom:0;left:0;pointer-events:none;align-items:start;padding-top:10px}
.host-page .host-textarea-shell textarea{display:block;width:100%;min-height:64px;height:64px;resize:vertical;border:0;border-radius:0;background:transparent;color:var(--ref-ivory);font:400 16px/20px Arial,Helvetica,sans-serif;padding:10px 10px 10px 53px}
.host-page .host-textarea-shell textarea::placeholder{color:var(--ref-secondary);opacity:1}
.host-page .host-textarea-shell:focus-within{outline:2px solid var(--ref-turquoise);outline-offset:2px}
.host-page .enter-button{height:44px;min-height:44px;margin-top:8px;font-size:18px;background:linear-gradient(110deg,#cfa85d,#f1d38c);color:var(--ref-night)}
.sergus-access:has(.host-page) .sergus-footer{flex:none;min-height:calc(55px + env(safe-area-inset-bottom,0px));padding-top:6px;padding-bottom:calc(1px + env(safe-area-inset-bottom,0px))}
.sergus-access:has(.host-page) .sergus-footer a{min-height:47px;gap:2px}
.sergus-access:has(.host-page) .sergus-footer a[aria-current=page]::after{bottom:-1px}


/* C340: remove redundant heading, preserve button dimensions, keyboard-aware footer. */
.host-page .enter-button{margin-top:18px}
.host-page .host-form{padding-bottom:12px}
.host-page input,.host-page textarea,.host-page button{scroll-margin-block:12px}
html:has(.host-page){scroll-padding-block:12px}
.sergus-access[data-host-keyboard-open]:has(.host-page) .sergus-footer{display:none}

.sergus-access[data-host-keyboard-open]:has(.host-page){padding-bottom:var(--host-keyboard-overlap,0px)}


/* C342: client signup presentation only; registration remains disabled. */
.sergus-access:has(.client-page){display:flex;flex-direction:column;min-height:100svh}
.sergus-access:has(.client-page) .sergus-header{flex:none}
.access-main.client-page{display:flex;flex-direction:column;flex:1 0 auto;min-height:0;padding:10px 18px 12px}
.client-page .welcome{padding:0 5px}
.client-page .welcome h1{font:400 38px/44px 'Times New Roman',Times,serif;letter-spacing:-.35px;margin:0 0 3px;white-space:normal}
.client-page .welcome p{font:400 16px/20px 'Times New Roman',Times,serif;max-width:none}
.client-page .client-notice{display:flex;align-items:flex-start;gap:16px;border:1px solid var(--ref-form-border);border-radius:8px;padding:12px 10px;margin-top:16px}
.client-page .client-notice svg{width:24px;height:24px;flex:none;color:var(--ref-gold)}
.client-page .client-notice p{font:400 14px/20px Arial,Helvetica,sans-serif;margin:0;min-width:0;color:var(--ref-ivory)}
.client-page .client-form{margin:22px 0 0}
.client-page .client-form h2{font:400 28px/34px 'Times New Roman',Times,serif;margin:0 0 16px;color:var(--ref-ivory)}
.client-page .client-field+.client-field{margin-top:14px}
.client-page .client-field label{display:block;font:400 14px/18px Arial,Helvetica,sans-serif;margin:0 0 4px;color:var(--ref-ivory)}
.client-page .input-shell{height:44px;border-color:#417083;border-radius:8px;background:var(--ref-surface)}
.client-page .field-icon{width:42px;border-color:#417083}
.client-page .field-icon svg{width:22px;height:22px}
.client-page .input-shell input{height:42px;min-height:42px;padding:10px 12px;font:400 16px/20px Arial,Helvetica,sans-serif}
.client-page .enter-button{height:44px;min-height:44px;margin-top:16px;font-size:18px;background:linear-gradient(110deg,#cfa85d,#f1d38c);color:var(--ref-night)}
.client-page .enter-button:disabled{opacity:1;cursor:not-allowed}
.client-page input{scroll-margin-block:12px}
html:has(.client-page){scroll-padding-block:12px}
.sergus-access:has(.client-page) .sergus-footer{flex:none;min-height:calc(55px + env(safe-area-inset-bottom,0px));padding-top:6px;padding-bottom:calc(1px + env(safe-area-inset-bottom,0px))}
.sergus-access:has(.client-page) .sergus-footer a{min-height:47px;gap:2px}
.sergus-access:has(.client-page) .sergus-footer a[aria-current=page]::after{bottom:-1px}
.sergus-access[data-client-keyboard-open]:has(.client-page) .sergus-footer{display:none}
.sergus-access[data-client-keyboard-open]:has(.client-page){padding-bottom:var(--client-keyboard-overlap,0px)}


/* C343: direct client registration, matching the approved three-field composition. */
.client-page .client-form{margin-top:24px}
.client-page .client-field+.client-field{margin-top:18px}
.client-page .enter-button{margin-top:18px}
.client-page .eye-toggle{width:44px;min-width:44px;height:42px}

/* Client-only textual visibility control, matching the login link. */
.client-page .show-password{min-height:44px;margin-top:6px}
