.account-shell{max-width:660px;margin:32px auto 55px;padding:0 16px}
.account-card{background:var(--white);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:var(--radius);padding:clamp(20px,4vw,36px)}
.account-card h1{font-family:var(--serif);font-size:clamp(29px,5vw,38px);margin:0 0 13px}
.account-card h2{font-size:18px;margin:0 0 13px}
.account-card>.subtle{margin-bottom:15px}
.account-card label:not(.account-check){font-size:13px;font-weight:750;display:block;margin:14px 0 5px}
.account-card input:not([type="checkbox"]),.account-card select{width:100%;border:1px solid #b9c8be;background:white;color:var(--ink);border-radius:12px;min-height:45px;padding:10px 12px;max-width:100%}
.account-card input:focus-visible,.account-card select:focus-visible{outline:3px solid #b68a3880;border-color:var(--gold)}
.account-card button{border-radius:12px;min-height:45px;padding:10px 16px;font-weight:750}
.account-card button:disabled{opacity:.55}
.account-section{margin-top:21px;padding-top:19px;border-top:1px solid var(--line)}
.account-section form{display:flex;flex-direction:column;align-items:stretch}
.account-section form button{margin-top:18px}
.account-card button.account-text-link{display:inline-flex;align-items:center;justify-content:flex-end;align-self:flex-end;min-height:30px;padding:4px 2px;border:0;border-radius:3px;background:transparent;color:var(--green);font-size:13px;font-weight:700;text-decoration:underline;text-underline-offset:3px;line-height:1.5;text-align:right;max-width:100%}
.account-card button.account-text-link:hover{color:var(--deep)}
.account-section form button.account-text-link{margin-top:8px;margin-bottom:0}
.account-card button.account-back-link{margin-top:16px}
.account-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;background:var(--mint);padding:6px;border-radius:13px;margin-top:25px}
.account-tabs button{background:transparent;color:var(--green);border:0}
.account-tabs button[aria-pressed="true"]{background:var(--white);box-shadow:0 2px 9px #233c381b}
.primary-button{background:var(--green);color:white;border:1px solid var(--green)}
.primary-button:hover{background:var(--deep)}
.secondary-button{background:var(--white);border:1px solid var(--green);color:var(--green)}
.secondary-button:hover{background:var(--mint)}
.account-message{margin-top:22px;padding:13px 16px;border-radius:12px;background:#e8f2e9;border:1px solid #b6d5bd;color:var(--deep);white-space:pre-wrap;overflow-wrap:anywhere}
.account-message.error{background:var(--red-bg);border-color:#dbb1aa;color:var(--red)}
.account-check{display:flex;align-items:flex-start;justify-content:flex-start;gap:10px;margin:17px 0 2px;font-size:13px;line-height:1.5;width:100%;max-width:100%}
.account-check input[type=checkbox]{width:18px;height:18px;min-width:18px;max-width:18px;flex:0 0 18px;padding:0;margin:2px 0 0;accent-color:var(--green)}
.account-check span{flex:1;min-width:0;overflow-wrap:anywhere}
.account-card details{margin-top:12px;background:#f1f5ef;border-radius:12px;padding:12px 14px;font-size:13px}
.account-card summary{cursor:pointer;font-weight:700}
.account-card details p{margin-top:9px}
.account-footer{text-align:center;color:var(--muted);padding:14px 15px 35px;font-size:12px}
.back-link{font-weight:700;font-size:14px}
#profile-details{margin:14px 0;display:grid;gap:8px}
.profile-row{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:7px;gap:12px}
.profile-row>span:last-child{font-weight:750;text-align:right;overflow-wrap:anywhere}
@media(max-width:560px){.bar-inner{padding:10px 16px}.brand-logo{height:44px}.account-shell{margin:14px auto 30px}}
[hidden]{display:none!important}

.account-guest-entry{margin-top:22px;padding-top:20px;border-top:1px solid var(--line);display:grid;gap:10px}
.account-guest-entry button{width:100%}

/* Choose from the actual eight approved portraits, without trait captions. */
.account-register-avatar-picker{margin:17px 0 6px;padding:0;border:0;min-width:0}
.account-register-avatar-picker legend{font-size:13px;font-weight:750;color:var(--ink);margin:0 0 10px;padding:0}
.account-register-avatar-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}
.account-card label.account-register-avatar{display:block;position:relative;min-width:0;aspect-ratio:1;margin:0;cursor:pointer}
.account-register-avatar .avatar-art{display:block;width:100%;height:100%;max-width:100%;aspect-ratio:1;object-fit:cover;border:3px solid #dce4d9;border-radius:15px;background:#eef2ed;transition:transform .15s ease,border-color .15s ease}
.account-register-avatar:hover .avatar-art{border-color:#9dbba6}
.account-register-avatar input[type=radio]{position:absolute;inset:0;opacity:0;width:100%;height:100%;min-height:0;margin:0;padding:0;border:0;cursor:pointer;z-index:1}
.account-register-avatar input:focus-visible + .avatar-art{outline:3px solid #ad8636;outline-offset:2px}
.account-register-avatar input:checked + .avatar-art{border-color:#ad8539;box-shadow:0 0 0 3px #ddbd774a;transform:translateY(-1px)}
.account-register-avatar:has(input:checked)::after{content:"✓";position:absolute;right:6px;top:6px;background:#205e51;color:white;line-height:1;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;font-size:15px;font-weight:900;pointer-events:none}
.account-legacy-profile-head{display:grid;justify-items:center;gap:7px;padding:18px;margin:15px 0;background:#e9f1e7;border-radius:16px;text-align:center}
.account-legacy-profile-head .avatar-art{display:block;width:110px;height:110px;border:3px solid #c19a51;border-radius:20px;object-fit:cover;background:#fff}
.account-legacy-profile-head strong{font-family:Georgia,serif;font-size:22px;color:#235f54}
@media(max-width:420px){.account-register-avatar-grid{gap:6px}.account-register-avatar .avatar-art{border-radius:11px}}


/* KVKK and privacy documents: accessible native modal with internal scrolling. */
.account-privacy-summary{font-size:13px;color:var(--muted);margin:14px 0 5px}
.account-check a,.account-footer a{color:var(--green);text-decoration:underline;text-underline-offset:2px}
.account-legal-dialog{
  position:fixed;inset:0;margin:auto;border:1px solid var(--line);border-radius:19px;
  padding:0;width:min(690px,calc(100vw - 28px));max-width:690px;
  max-height:min(88dvh,900px);color:var(--ink);background:var(--white);
  box-shadow:0 24px 72px #0b292850;overflow:hidden
}
.account-legal-dialog::backdrop{background:#102c29b5}
.account-legal-shell{display:flex;flex-direction:column;max-height:min(88dvh,900px)}
.account-legal-head{
  display:flex;align-items:center;justify-content:space-between;gap:15px;
  padding:15px 20px;background:var(--mint);border-bottom:1px solid var(--line);flex:none
}
.account-legal-head h2{font-family:var(--serif);font-size:20px;margin:0}
.account-legal-head button{
  display:grid;place-items:center;border:1px solid var(--line);border-radius:10px;
  background:var(--white);color:var(--ink);width:40px;height:40px;min-height:40px;
  font-size:19px;cursor:pointer
}
.account-legal-body{overflow-y:auto;overscroll-behavior:contain;padding:20px 24px;
  min-height:0;line-height:1.65;flex:1}
.legal-copy{font-size:14px}
.legal-copy h3{font-size:16px;color:var(--green);margin:24px 0 8px}
.legal-copy p{margin:0 0 13px}
.legal-copy .legal-revision{font-size:12px;color:var(--muted)}
.account-legal-dialog :focus-visible{outline:3px solid #b68a3880;outline-offset:2px}
@media(max-width:560px){
 .account-legal-dialog{width:calc(100vw - 16px);max-height:92dvh}
 .account-legal-shell{max-height:92dvh}
 .account-legal-body{padding:16px 18px}
 .account-legal-head{padding:12px 15px}
}
