/* Hand-maintained profile workspace. Shares theme.js and theme tokens. */
.profile-shell{max-width:1160px;padding:24px 5% 64px}
.profile-shell [hidden]{display:none!important}
.profile-shell h1,.profile-shell h2,.profile-shell h3,.profile-shell p{margin-top:0}
.profile-shell a{color:var(--text-primary);text-decoration:none;font-weight:650}
.profile-shell a:hover{text-decoration:underline;text-underline-offset:5px}
.profile-shell button{font:inherit;min-height:44px;cursor:pointer}
.profile-hero{display:flex;align-items:center;gap:24px;padding:32px 0 40px;border-bottom:1px solid var(--border)}
.profile-initials{display:grid;place-items:center;flex:none;width:84px;height:84px;border-radius:50%;background:var(--action-bg);color:var(--action-text);font-size:30px;font-weight:800;letter-spacing:-1px}
.profile-identity{min-width:0;flex:1}.profile-identity h1{font-size:clamp(28px,4vw,46px);line-height:1.1;letter-spacing:-1.5px;margin-bottom:12px;overflow-wrap:anywhere}
.profile-kicker{font-size:10px;font-weight:750;letter-spacing:2px;color:var(--text-secondary);margin-bottom:14px}
.profile-email{margin-bottom:8px;overflow-wrap:anywhere}.profile-member{font-size:11px;color:var(--text-secondary);margin-bottom:0}
.profile-hero-actions{display:flex;gap:12px;flex-wrap:wrap}.profile-hero-actions button,.profile-shell #profileProjectsRetry{padding:10px 14px;border:1px solid var(--border);border-radius:6px;background:transparent;color:var(--text-primary)}
.profile-hero-actions button:hover{background:var(--control-hover)}
.profile-stats{display:flex;margin:0;padding:30px 0 36px;border-bottom:1px solid var(--border);gap:0}
.profile-stats>div{display:flex;flex-direction:column-reverse;gap:10px;padding:0 32px;min-width:0;border-left:1px solid var(--border);flex:1}.profile-stats>div:first-child{padding-left:0;border-left:0}
.profile-stats dt{font-size:10px;font-weight:700;letter-spacing:1.6px;color:var(--text-secondary)}.profile-stats dd{margin:0;font-size:clamp(30px,4vw,46px);line-height:1;font-weight:750;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.profile-workspace{padding-bottom:30px}.profile-section-heading{display:flex;justify-content:space-between;align-items:baseline;gap:20px;padding-top:32px}.profile-shell h2{font-size:20px;letter-spacing:-.5px;margin-bottom:20px}.profile-section-heading a{font-size:12px}
.profile-recent article{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:24px;border-bottom:1px solid var(--border);padding:21px 0}.profile-recent h3{font-size:17px;margin-bottom:6px;overflow-wrap:anywhere}.profile-recent p,.profile-recent time{font-size:12px;color:var(--text-secondary);margin:0}.profile-recent a{padding:12px 0;font-size:13px}
.profile-empty{padding:32px 0}.profile-empty p{font-size:24px;letter-spacing:-.5px}.profile-empty a{display:inline-block;padding:12px 0;margin-right:24px;font-size:13px}
.profile-weekly{display:flex;justify-content:space-between;align-items:center;gap:24px;border-top:1px solid var(--border);border-bottom:1px solid var(--border);padding:30px 0}.profile-weekly h2{font-size:clamp(26px,3vw,38px);letter-spacing:-1px;margin-bottom:12px}.profile-weekly p:last-child{margin:0;color:var(--text-secondary);font-size:13px}.profile-weekly>a{flex-shrink:0;padding:14px 0}
/* Compact read-only account rows; the original form appears only in edit mode. */
.profile-shell .profile-card{max-width:640px;margin:0;padding:28px 0 12px;border:0;border-radius:0;background:transparent}
.profile-card>h2{padding-bottom:16px;border-bottom:1px solid var(--border)}
.profile-account-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.profile-account-heading h3{font-size:14px;margin:0}
.profile-card .profile-account-heading button,.profile-card #profileCancel,.profile-card #profileSignOut{padding:8px 0;border:0;border-radius:0;background:transparent;color:var(--text-primary);font-size:13px}
.profile-card #profileSignOut{color:var(--text-secondary)}.profile-card #profileCancel{padding:8px 12px}
.profile-card .profile-account-heading button:hover,.profile-card #profileCancel:hover,.profile-card #profileSignOut:hover{text-decoration:underline;text-underline-offset:5px}
.profile-account-rows{margin:8px 0 16px}.profile-account-rows>div{display:grid;grid-template-columns:140px minmax(0,1fr);gap:16px;padding:12px 0;border-bottom:1px solid var(--border);font-size:13px}
.profile-account-rows dt{color:var(--text-secondary)}.profile-account-rows dd{margin:0;overflow-wrap:anywhere}
.profile-card form{max-width:520px;margin-top:12px}.profile-card input{background:var(--control-bg)}.profile-card #profileSave{background:var(--action-bg);color:var(--action-text);border-color:var(--border)}
.profile-form-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:6px}
.profile-session-row{display:grid;grid-template-columns:140px minmax(0,1fr);align-items:center;gap:16px;font-size:13px}.profile-session-row>span{color:var(--text-secondary)}.profile-session-row>button{justify-self:start}
@media(max-width:760px){.profile-hero{flex-wrap:wrap;gap:18px}.profile-hero-actions{width:100%}.profile-initials{width:64px;height:64px;font-size:25px}.profile-stats>div{padding:0 14px}.profile-stats dt{letter-spacing:.7px;font-size:9px}.profile-section-heading{align-items:flex-start;flex-direction:column;gap:0}.profile-recent article{grid-template-columns:minmax(0,1fr) auto;gap:10px}.profile-recent time{grid-column:1;grid-row:2}.profile-recent a{grid-column:2;grid-row:1/span 2}.profile-weekly{flex-direction:column;align-items:flex-start;gap:8px}.profile-shell{padding-left:5%;padding-right:5%}}

@media(max-width:480px){.profile-account-rows>div{grid-template-columns:minmax(0,1fr);gap:6px}.profile-session-row{grid-template-columns:100px minmax(0,1fr)}.profile-form-actions>button{max-width:100%}}
.profile-initials[data-team-accent="true"]{box-shadow:0 0 0 2px var(--favorite-primary),0 0 0 5px var(--favorite-secondary)}
.profile-favorite{border-top:1px solid var(--border);margin-top:24px;padding-top:20px}
.profile-favorite h3{font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:var(--text-secondary);margin:0 0 16px}
.profile-favorite-row{display:grid;grid-template-columns:1fr 1fr auto;align-items:center;gap:12px;font-size:14px}
.profile-favorite-name{overflow-wrap:anywhere;font-weight:600}
.profile-favorite button{min-height:44px;cursor:pointer;background:transparent;color:var(--text-primary);border:0;font:inherit;padding:8px}
.profile-favorite button:disabled{opacity:.5;cursor:default}
.profile-favorite button:focus-visible,.profile-team:focus-within{outline:2px solid var(--focus);outline-offset:3px}
.profile-favorite-picker{margin-top:18px}
.profile-favorite-picker fieldset{border:0;padding:0;margin:0;min-width:0}
.profile-favorite-picker legend{font-size:13px;margin-bottom:12px}
.profile-team-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.profile-team{display:grid;grid-template-columns:16px 14px minmax(0,1fr);gap:8px;align-items:center;border:1px solid var(--border);border-radius:6px;padding:10px;min-height:44px;cursor:pointer;font-size:13px}
.profile-team[data-selected="true"]{border-color:var(--text-primary)}
.profile-favorite .profile-team{margin-top:0}
.profile-favorite .profile-team input{margin:0;padding:0;width:16px;height:16px;min-height:0}
.profile-team-color{width:12px;height:20px;border-radius:3px;background:linear-gradient(90deg,var(--club-primary,var(--border)) 50%,var(--club-secondary,var(--border)) 50%)}
.profile-team-name{overflow-wrap:anywhere}
.profile-team-check{grid-column:3;font-size:11px}
.profile-team-check:empty{display:none}
.profile-favorite-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.profile-favorite-status{font-size:12px;color:var(--text-secondary);line-height:1.6}
.profile-favorite-status:empty{display:none}
@media(max-width:540px){.profile-favorite-row{grid-template-columns:1fr auto}.profile-favorite-row>span:first-child{grid-column:1/-1}.profile-team-grid{grid-template-columns:1fr}}

/* Local saved Weekly XI entries use the same compact editorial rhythm. */
.profile-weekly{display:block}
.profile-weekly>.profile-section-heading{margin-bottom:12px}
.profile-weekly-entry{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:16px;padding:16px 0;border-top:1px solid var(--border);color:var(--text-primary);text-decoration:none}
.profile-weekly-entry h3{margin:0 0 5px;font-size:15px}.profile-weekly-entry p{margin:0;font-size:12px;color:var(--text-secondary)}
.profile-weekly-entry time{font-size:12px;color:var(--text-secondary)}.profile-weekly-entry>span{font-size:13px;font-weight:700}
.profile-weekly-entry:hover{color:var(--selected-text);background:var(--selected-bg)}
@media(max-width:600px){.profile-weekly-entry{grid-template-columns:minmax(0,1fr) auto;gap:8px}.profile-weekly-entry time{grid-column:1;grid-row:2}.profile-weekly-entry>span{grid-column:2;grid-row:1/3}}

/* Account: one label/value/action rhythm, including favourite team and session. */
#profileAccount{--account-label:140px;padding:28px 0 12px;max-width:none}
#profileAccount>.profile-account-heading{display:flex;justify-content:space-between;align-items:center;margin:24px 0 12px}
#profileAccount .profile-account-rows{margin:0;display:grid;gap:0}
#profileAccount .profile-account-rows>div{display:grid;grid-template-columns:var(--account-label) minmax(0,1fr);gap:16px;padding:12px 0;border-bottom:1px solid var(--border)}
#profileAccount dt,#profileAccount dd{margin:0;overflow-wrap:anywhere}
#profileAccount dt{font-size:13px;color:var(--text-secondary)}
#profileAccount .profile-favorite{border-top:0;padding:24px 0;margin:0;border-bottom:1px solid var(--border)}
#profileAccount .profile-favorite h3{margin:0 0 12px}
#profileAccount .profile-favorite-row{grid-template-columns:var(--account-label) minmax(0,1fr) auto;gap:16px}
#profileAccount .profile-session-row{display:grid;grid-template-columns:var(--account-label) minmax(0,1fr);gap:16px;align-items:center;padding:20px 0 0;margin:0;border:0}
#profileAccount .profile-session-row button{justify-self:end}
#profileAccount button{min-height:36px;padding:7px 12px;font-size:13px}
@media(max-width:540px){#profileAccount{--account-label:110px;padding:24px 0 12px}#profileAccount .profile-favorite-row{grid-template-columns:var(--account-label) minmax(0,1fr)}#profileAccount .profile-favorite-row>span:first-child{grid-column:auto}#profileAccount .profile-favorite-row>button{grid-column:2;justify-self:start}#profileAccount .profile-account-rows>div{gap:10px}}
#weeklyCollection>div>section{margin:28px 0}#weeklyCollection h2{font-size:18px}
/* ACCOUNT1: Profile → Hesap → Tehlikeli Bölge and the account deletion dialog (shared theme tokens). */
.profile-danger{border-top:1px solid var(--border);margin-top:24px;padding-top:20px}
.profile-danger:empty{display:none}
.profile-danger-title{font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:var(--error);margin:0 0 8px}
.profile-danger .profile-help{margin:0 0 14px}
.profile-card .profile-danger-button,.weekly-collection-item .profile-danger-button{font:inherit;font-weight:700;padding:10px 16px;border:1px solid var(--error);border-radius:7px;background:transparent;color:var(--error);cursor:pointer}
.profile-card .profile-danger-button:hover:not(:disabled),.weekly-collection-item .profile-danger-button:hover:not(:disabled){background:var(--error);color:var(--bg-surface)}
.profile-card .profile-danger-button:disabled,.weekly-collection-item .profile-danger-button:disabled{opacity:.5;cursor:not-allowed}
.profile-danger-button:focus-visible,.account-delete-dialog :focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.account-delete-dialog{max-width:520px;width:calc(100% - 32px);box-sizing:border-box;max-height:calc(100vh - 32px);overflow:auto;padding:24px;border:1px solid var(--border);border-top:4px solid var(--error);border-radius:12px;color:var(--text-primary);background:var(--bg-surface);box-shadow:var(--shadow)}
.account-delete-dialog::backdrop{background:#0b1410b3}
.account-delete-dialog h2{font:800 22px/1.25 Manrope,Arial,sans-serif;margin:0 0 8px}
.account-delete-dialog h3{font-size:12px;text-transform:uppercase;letter-spacing:.1em;color:var(--text-secondary);margin:18px 0 6px}
.account-delete-dialog ul{margin:0;padding-left:20px;font-size:14px;line-height:1.6}
.account-delete-intro{margin:0;font-size:14px;line-height:1.6;color:var(--text-secondary)}
.profile-card .account-delete-form label{display:block;margin:16px 0 6px;font-size:14px;font-weight:600}
.profile-card .account-delete-form input{box-sizing:border-box;width:100%;min-width:0;font:inherit;font-size:15px;padding:10px 12px;border:1px solid var(--border);border-radius:7px;background:var(--control-bg);color:var(--text-primary)}
.account-delete-status{min-height:1.4em;margin:14px 0 0;font-size:14px;line-height:1.5;color:var(--error)}
.account-delete-status:empty{min-height:0}
.account-delete-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;margin-top:18px}
.profile-card .account-delete-actions button:not(.profile-danger-button){font:inherit;padding:10px 16px;border:1px solid var(--border);border-radius:7px;background:var(--control-bg);color:var(--text-primary);cursor:pointer}
@media(max-width:560px){.account-delete-actions{flex-direction:column-reverse}.account-delete-actions button{width:100%}}
/* SEC2.2 İlk 11’lerim: record link with a separate delete button; usage line. */
.weekly-collection-item{display:flex;align-items:center;gap:12px;border-top:1px solid var(--border)}.weekly-collection-item>.profile-weekly-entry{flex:1;min-width:0;border-top:0}.weekly-delete{flex:none;min-height:44px}.weekly-usage{margin:0 0 12px;font-size:13px;color:var(--text-secondary)}
