[hidden]{display:none!important}
.auth-gate{min-height:100vh;display:grid;place-items:center;padding:30px 16px;background:linear-gradient(145deg,#eff8ef 0%,#fbf7e9 100%);font-family:system-ui,-apple-system,'Segoe UI',sans-serif}
.auth-box{width:100%;max-width:475px;background:#fff;border:1px solid #dae8db;border-radius:22px;padding:30px;box-shadow:0 24px 65px rgba(29,85,51,.1)}
.auth-logo{display:flex;align-items:center;gap:10px;color:#145c42;font-weight:800;font-size:21px;letter-spacing:-.6px}.auth-logo:first-letter{font-size:30px}
/* Üyeliksiz seçenek: login kutusunun en üstünde, sade açık yeşil tema. */
.guest-option{background:#eaf6eb;border:1px solid #b6d9bd;border-radius:14px;padding:17px 17px 13px;margin:22px 0 18px;box-shadow:0 3px 12px rgba(24,85,47,.04)}
.guest-option #guest-entry{width:100%;margin:0;background:#d5ecda;color:#145c42;border:1px solid #9dcaac;border-radius:10px;padding:13px 15px;font-size:15px;font-weight:800}
.guest-option #guest-entry:hover{background:#c2e2cc;border-color:#79b48b}
.guest-option #guest-entry:disabled{opacity:.65;cursor:wait}
.guest-option .auth-field-hint{margin:9px 2px 0;color:#4d7858;text-align:center;font-size:11px}
.auth-login-divider{display:flex;align-items:center;gap:10px;margin:14px 0 16px;color:#749181;font-size:11px;text-align:center}
.auth-login-divider::before,.auth-login-divider::after{content:'';flex:1;min-width:10px;border-top:1px solid #d9e6db}
.auth-login-divider span{flex-shrink:0}

.auth-box h1{font-size:23px;letter-spacing:-.6px;margin:8px 0}.auth-subtitle{color:#738478;margin:4px 0 12px;font-size:13px}
.auth-box form label{display:block;margin:13px 0 5px;font-size:12px;font-weight:700;color:#345846}.auth-box input{width:100%;border:1px solid #cadcca;border-radius:10px;padding:12px;margin-top:5px;line-height:1.3;font-size:14px}.auth-box input:focus{outline:2px solid #f1d26d}
.auth-primary{width:100%;background:#145c42;color:white;border:0;border-radius:10px;padding:13px 18px;font-weight:700;margin-top:18px}.auth-secondary{border:1px solid #b8cfbf;border-radius:10px;background:white;color:#155c43;padding:10px 14px;width:100%;margin-top:10px}.auth-primary:disabled{opacity:.65;cursor:wait}
#auth-switch{display:flex;justify-content:center;gap:16px;flex-wrap:wrap;margin-top:18px}.link-button{color:#176f4a;background:none;border:0;text-decoration:underline;padding:5px;font-size:12px;font-weight:700}
#auth-message{min-height:17px;padding-top:5px;font-size:12px}.auth-error{color:#b53231}.auth-success{color:#126c3f}
.auth-privacy{font-size:11px;color:#7c9082;text-align:center;line-height:1.6;margin:25px 0 0}
#account-panel p{font-size:13px;line-height:1.6;color:#4d6955}.account-button{border:1px solid #c1dbc5;background:#fff;color:#155c43;border-radius:7px;padding:5px 8px;font-size:11px;margin-left:6px}#account-state{font-size:11px;color:#57815f;margin-left:7px}
@media(max-width:520px){.auth-box{padding:23px 18px}.auth-logo{font-size:18px}.auth-gate{padding:15px}.account-button{margin-left:3px}}

@media(max-width:790px){.topbar{flex-wrap:wrap}.top-pill{display:flex!important;flex-wrap:wrap;width:100%;justify-content:flex-start;font-size:10px}.account-button{padding:5px 8px}#account-state{display:inline-block}}


/* Yeni profil ve üyelik alanları */
.auth-field-hint{font-size:11px;color:#607a65;line-height:1.5;margin:5px 0 9px}
.auth-register-fields{border-top:1px solid #e6ece4;margin-top:15px;padding-top:5px}
.profile-field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.auth-bottomline{border-top:1px solid #e6ece4;padding-top:15px;margin-top:25px;display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:10px;color:#7c9082}
.profile-summary{font-weight:700;color:#23593d}
@media(max-width:470px){.profile-field-row{grid-template-columns:1fr}.auth-bottomline{font-size:9.5px}}

/* Giriş görünümü: eski/önbellekten yüklenmiş JS bir paneli yanlışlıkla hidden bıraksa
   bile misafir kartı ve e-posta/şifre alanları birlikte görünür. Diğer ekranlara uygulanmaz. */
#auth-gate[data-auth-view="login"] #guest-option{display:block!important}
#auth-gate[data-auth-view="login"] #auth-form,
#auth-gate[data-auth-view="login-no-guest"] #auth-form{display:block!important}
#auth-gate[data-auth-view="login"] #auth-switch,
#auth-gate[data-auth-view="login-no-guest"] #auth-switch{display:flex!important}
#auth-gate[data-auth-view="login"] .auth-login-divider{display:flex!important}

/* Giriş: eşit ölçülü iki panel. Sadece girişteki persentil formu kompaktlaştırılır. */
.auth-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:20px;width:min(970px,100%);margin:auto}
.auth-layout>.auth-box{max-width:none;min-width:0;align-self:stretch;margin:0;width:100%;box-sizing:border-box}
.growth-auth-slot{min-width:0;display:flex;flex-direction:column}
.growth-auth-slot .growth-manager{flex:1 1 auto;min-width:0;width:100%;box-sizing:border-box;margin:0;padding:22px;background:white;border:1px solid #dae8db;border-radius:22px;box-shadow:0 24px 65px rgba(29,85,51,.1)}
.growth-auth-slot .growth-head{gap:8px;padding-bottom:9px;margin-bottom:10px}
.growth-auth-slot .growth-head .eyebrow{font-size:9.5px;line-height:1.3;margin-bottom:3px}
.growth-auth-slot .growth-head h2{font-size:20px;line-height:1.25;margin:0}
.growth-auth-slot .growth-grid{grid-template-columns:minmax(0,1fr);gap:8px}
.growth-auth-slot .growth-form,.growth-auth-slot .growth-results{min-width:0;padding:9px;border-radius:10px}
.growth-auth-slot .growth-fields{gap:4px 8px}
.growth-auth-slot .growth-fields label{font-size:11px;line-height:1.3;margin:0}
.growth-auth-slot .growth-fields input,.growth-auth-slot .growth-fields select{height:32px;padding:4px 6px;font-size:12px;border-radius:7px;margin-top:3px}
.growth-auth-slot .growth-tip{font-size:10px;line-height:1.4;margin:6px 0 0}
.growth-auth-slot .growth-actions{gap:6px;margin-top:7px}
.growth-auth-slot .growth-actions button{font-size:11px;padding:6px 9px;min-height:29px}
.growth-auth-slot .growth-results h3{font-size:13px;margin:0 0 3px}
.growth-auth-slot #growth-state{min-height:0;font-size:10.5px;line-height:1.4;margin:0 0 5px}
.growth-auth-slot .growth-result-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
.growth-auth-slot .growth-result-grid:empty{display:none}
.growth-auth-slot .growth-metric{min-height:0;padding:6px 8px;gap:2px;border-radius:7px}
.growth-auth-slot .growth-metric-label,.growth-auth-slot .growth-metric-sds{font-size:10px;line-height:1.35;overflow-wrap:anywhere}
.growth-auth-slot .growth-metric strong{font-size:14px;line-height:1.25}
.growth-auth-slot .growth-note-preview{margin-top:6px}
.growth-auth-slot .growth-note-preview strong{font-size:11px}
.growth-auth-slot #growth-note-preview{display:block;width:100%;height:64px;min-height:64px;margin-top:3px;padding:6px 8px;font-size:11px;line-height:1.4;resize:vertical}
.growth-auth-slot .growth-source{margin:7px 0 0;padding-top:6px;font-size:10px;line-height:1.35;overflow-wrap:anywhere}
@media(max-width:790px){
 .auth-layout{grid-template-columns:minmax(0,1fr);gap:16px;width:min(475px,100%)}
 .auth-layout>.auth-box{grid-row:1;align-self:start}
 .growth-auth-slot{grid-row:2}
 .growth-auth-slot .growth-manager{padding:18px}
}
@media(max-width:370px){.growth-auth-slot .growth-fields{gap:4px 5px}.growth-auth-slot .growth-manager{padding:13px}.growth-auth-slot .growth-fields input,.growth-auth-slot .growth-fields select{font-size:11px;padding-inline:3px}}

.account-identity #account-state{margin-left:0;text-align:left;line-height:1.4}
.top-pill .account-button{margin-left:0}

/* Misafir kimliği: içeriği kadar geniş, küçük ve tek satırlı kutu. */
.top-pill:has(#guest-avatar:not([hidden])){width:fit-content;max-width:100%;flex:0 0 auto;flex-wrap:nowrap;align-items:center;gap:8px;padding:5px 8px;border-radius:10px}
.top-pill:has(#guest-avatar:not([hidden])) .account-identity{width:auto;flex:0 1 auto;gap:6px}
.top-pill:has(#guest-avatar:not([hidden])) .account-identity-text{gap:0}
.top-pill:has(#guest-avatar:not([hidden])) .guest-avatar{width:28px;height:28px;flex-basis:28px}
.top-pill:has(#guest-avatar:not([hidden])) .guest-avatar svg{width:17px;height:17px}
.top-pill:has(#guest-avatar:not([hidden])) .header-doctor{font-size:13px;line-height:1.35;white-space:nowrap}
.top-pill:has(#guest-avatar:not([hidden])) #account-state{font-size:11px;line-height:1.3}
.top-pill:has(#guest-avatar:not([hidden])) #logout-button{flex:0 1 auto;white-space:nowrap;margin-left:0;padding:4px 6px;font-size:12px;line-height:1.3}
@media(max-width:420px){.top-pill:has(#guest-avatar:not([hidden])){gap:5px;padding:5px 6px}.top-pill:has(#guest-avatar:not([hidden])) #logout-button{white-space:normal}}

/* Oturum açmış hekimin hesap/profil/abonelik ekranları tek, ortalanmış paneldir. */
#auth-gate:is([data-auth-view="account"],[data-auth-view="profile"],[data-auth-view="billing"]) .growth-auth-slot{display:none!important}
#auth-gate:is([data-auth-view="account"],[data-auth-view="profile"],[data-auth-view="billing"]) .auth-layout{display:flex;justify-content:center;align-items:center;width:100%}
#auth-gate:is([data-auth-view="account"],[data-auth-view="profile"],[data-auth-view="billing"]) .auth-box{width:100%;max-width:475px}
#auth-gate:is([data-auth-view="account"],[data-auth-view="profile"],[data-auth-view="billing"]) .auth-subtitle{display:none}

/* Giriş ekranında marka adı ve alan adı alt alta. */
.auth-logo-name{display:flex;flex-direction:column;align-items:flex-start;line-height:1.25}
.auth-logo .brand-domain{font-size:12px;font-weight:600;line-height:1.3;letter-spacing:.2px;color:#57815f;margin-top:3px}

/* Üye ve misafir için eşit, sabit ölçülü hesap çerçevesi. */
@media(min-width:1001px){
 .topbar .top-pill,.topbar .top-pill:has(#guest-avatar:not([hidden])){width:300px;max-width:300px;height:100px;flex:0 0 300px;align-self:center;padding:8px 10px;border-radius:12px;align-content:center}
 .topbar .top-pill:not(:has(#guest-avatar:not([hidden]))){row-gap:7px}
 .topbar .top-pill:has(#guest-avatar:not([hidden])){gap:8px}
}
@media(max-width:1000px){
 .topbar .top-pill,.topbar .top-pill:has(#guest-avatar:not([hidden])){width:300px;max-width:100%;min-height:64px;flex:0 1 300px;align-content:center;padding:6px 9px;border-radius:12px}
}
