/* Shared bookmark state: readable both after a POST redirect and an AJAX save. */
.bookmark-button[aria-pressed=true]{background:var(--accent-soft);border-color:var(--accent);color:var(--accent-text)}
.bookmark-button[aria-pressed=true] .icon{fill:currentColor;stroke:var(--surface);stroke-width:1.3}
.bookmark-button[aria-busy=true]{opacity:.7;cursor:wait}
.bookmark-feedback{display:block;max-width:300px;font-size:12px;line-height:1.6;color:var(--accent-text);text-align:left}
.bookmark-feedback:empty{display:none}.bookmark-feedback:not(:empty){margin-top:8px}
.detail-actions .inline-form{align-self:start}
/* Account workspace: real account actions, with a compact mobile hierarchy. */
.member-page{--workspace-blue:#58b9ef;--workspace-violet:#ab91fa;--workspace-green:#58c8ad;--workspace-amber:#e9b971;padding-top:32px}
.member-page .account-page-heading{margin-bottom:28px;padding:0;text-align:left}
.member-page .account-page-heading h1{font-size:clamp(26px,3vw,36px);margin:9px 0;line-height:1.2}
.member-page .account-page-heading p{font-size:13px;margin:0;color:var(--muted)}
.member-page .account-grid{grid-template-columns:244px minmax(0,1fr);gap:28px}
.member-page .account-sidebar{border-radius:20px;min-height:0;box-shadow:0 12px 34px #0000000b}
.member-page .member-card{border-radius:0;background:linear-gradient(145deg,#133857,#122640);padding:30px 18px 26px;gap:13px}
.member-page .member-card .member-avatar{width:76px;height:76px;font-size:30px;border:3px solid #ffffff40;box-shadow:0 0 0 6px #ffffff08}
.member-page .member-card strong{font-size:18px}.member-page .member-card small{font-size:11px;overflow-wrap:anywhere;line-height:1.5}
.member-status{display:inline-flex;align-items:center;gap:5px;margin-top:12px;font-size:9px;color:#8de0d6}.member-status .icon{width:13px;height:13px}
.member-page .account-nav{padding:18px 12px 8px}.member-page .account-nav a{padding:12px 10px;min-height:46px;font-size:12px;border:1px solid transparent}
.member-page .account-nav a.active{border-color:var(--border);background:var(--accent-soft)}
.member-page .account-sidebar>form{padding:16px}.member-page .account-logout{border-radius:11px;min-height:42px}
.member-page .account-content{gap:22px}
.workspace-welcome{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:28px 30px;background:linear-gradient(110deg,var(--surface),var(--accent-soft));overflow:hidden}
.workspace-welcome h2{font-size:clamp(25px,2.7vw,35px);line-height:1.2;margin:10px 0}.workspace-welcome p{font-size:13px;line-height:1.7;color:var(--muted);margin:0}
.workspace-emblem{width:80px;height:80px;border-radius:24px;background:var(--accent-soft);border:1px solid var(--border);display:grid;place-items:center;flex-shrink:0;transform:rotate(-8deg)}
.workspace-emblem .icon{width:42px;height:42px;color:var(--accent-text)}
.member-page .workspace-stats{gap:14px}.member-page .workspace-stats .stat-card{display:grid;grid-template-columns:32px 1fr;gap:6px 10px;padding:21px 18px}
.member-page .workspace-stats .stat-card>.icon{grid-row:1/3;width:23px;height:23px;align-self:center;margin:0}
.member-page .workspace-stats .stat-card strong{font-size:clamp(18px,2vw,25px);white-space:nowrap;letter-spacing:-.03em}
.workspace-section-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:15px}.workspace-section-heading h2{font-size:19px;line-height:1.35;margin:0}.workspace-section-heading>span{font-size:11px;color:var(--muted)}
.workspace-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.workspace-action{--action-color:var(--workspace-blue);display:grid;grid-template-columns:48px minmax(0,1fr) 16px;gap:14px;align-items:center;padding:22px 18px;border-radius:15px}
.workspace-action.tone-violet{--action-color:var(--workspace-violet)}.workspace-action.tone-green{--action-color:var(--workspace-green)}.workspace-action.tone-amber{--action-color:var(--workspace-amber)}
.workspace-action-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:color-mix(in srgb,var(--action-color,var(--accent)) 15%,transparent);color:var(--action-color,var(--accent-text));flex-shrink:0}
.workspace-action-icon .icon{width:23px;height:23px}.workspace-action strong{display:block;font-size:14px;line-height:1.4}.workspace-action small{display:block;font-size:11px;line-height:1.7;color:var(--muted);margin-top:5px}.workspace-action>.icon{width:15px;height:15px;color:var(--muted)}
.workspace-library{padding:26px}.workspace-library .workspace-section-heading .eyebrow{font-size:9px;margin-bottom:8px}.workspace-library .workspace-section-heading>.icon{width:30px;height:30px;color:var(--accent-text)}
.workspace-resources{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:24px}.workspace-resources a{padding:18px 12px;background:var(--accent-soft);border:1px solid var(--border);border-radius:13px;display:grid;justify-items:center;text-align:center;gap:8px}.workspace-resources .icon{width:26px;height:26px;color:var(--accent-text);margin-bottom:3px}.workspace-resources strong{font-size:13px}.workspace-resources small{font-size:10px;color:var(--muted)}
.workspace-preferences{display:flex;gap:16px;align-items:center;padding:22px}.workspace-preferences h2{font-size:15px;margin:0 0 6px}.workspace-preferences p{font-size:11px;color:var(--muted);margin:0}.workspace-preferences .btn{margin-left:auto;font-size:11px;min-height:42px;padding:10px 14px}
.workspace-mobile-logout{display:none}.saved-resource-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.saved-resource-icon{display:grid;place-items:center;background:var(--accent-soft);color:var(--accent-text);width:44px;height:44px;border-radius:12px}.saved-resource-state{display:flex;align-items:center;gap:6px;font-size:10px;color:var(--accent-text)}.saved-resource-state .icon{width:14px;height:14px;fill:currentColor;stroke:var(--surface)}
.member-page .profile-identity{padding:26px;gap:20px}.member-page .profile-scene{max-height:150px}.member-page .profile-scene svg{height:150px}.member-page .profile-cookie-card{margin-top:0}.member-page .profile-section-title{font-size:21px}.member-page .profile-person h2{overflow-wrap:anywhere}
#account-security{scroll-margin-top:110px}
html[data-theme=light] .member-page{--workspace-blue:#1575b8;--workspace-violet:#7454c6;--workspace-green:#128367;--workspace-amber:#9f6b11}
html[data-theme=light] .member-page .member-card{background:linear-gradient(145deg,#e5f2fc,#dfe8f8);color:#183b52}
html[data-theme=light] .member-status{color:#147166}
@media(min-width:701px) and (prefers-reduced-motion:no-preference){.workspace-action,.workspace-resources a{transition:transform .22s ease,border-color .22s ease}.workspace-action:hover,.workspace-resources a:hover{transform:translateY(-3px);border-color:var(--accent)}}
@media(min-width:701px) and (max-width:1000px){.member-page .account-grid{grid-template-columns:200px minmax(0,1fr);gap:18px}.workspace-actions{grid-template-columns:1fr}.member-page .workspace-stats .stat-card{display:flex;padding:17px 12px}.workspace-preferences{flex-wrap:wrap}.workspace-preferences .btn{margin-left:64px}}
@media(max-width:700px){
 .member-page{padding-top:18px;padding-bottom:32px}.member-page .account-grid{grid-template-columns:minmax(0,1fr);gap:18px}.member-page .account-page-heading{margin-bottom:18px}.member-page .account-page-heading h1{font-size:25px}.member-page .account-page-heading p{font-size:12px;line-height:1.6}.member-dashboard .account-page-heading{display:none}
 .member-page .account-sidebar,.member-dashboard:has(>.notice) .account-sidebar{position:static;min-height:0;border-radius:20px;display:block}.member-page .member-card,.member-page:not(.member-dashboard) .member-card{display:flex;flex-direction:column;text-align:center;padding:25px 18px;gap:12px;border-radius:0;background:linear-gradient(135deg,#22486b,#273362 65%,#344665)}
 .member-page .member-card>.eyebrow{display:none}.member-page .member-card .member-avatar{width:72px;height:72px;font-size:27px}.member-page .member-card strong{font-size:22px}.member-page .member-card small{font-size:12px}.member-status{margin-top:9px}
 .member-page .account-nav,.member-page:not(.member-dashboard) .account-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:10px 6px;gap:4px}.member-page .account-nav a,.member-page:not(.member-dashboard) .account-nav a{display:flex;flex-direction:column;padding:9px 2px;gap:6px;font-size:9px;text-align:center;border-radius:10px;line-height:1.4;min-width:0}.member-page .account-nav a>.icon{display:none}.member-page .account-sidebar>form{display:none}
 .member-page:not(.member-dashboard) .member-card{display:none}
 .member-dashboard .account-nav{display:none}.member-page .account-content{gap:18px}.workspace-welcome{display:none}.member-page .workspace-stats{gap:0;border:1px solid var(--border);border-radius:16px;overflow:hidden;background:var(--surface);margin-top:-34px;margin-inline:10px;position:relative;box-shadow:0 8px 22px #00000010}.member-dashboard .member-card{padding-bottom:46px}
 .member-page .workspace-stats .stat-card{display:flex;align-items:center;text-align:center;padding:15px 5px;gap:6px;border:0;border-right:1px solid var(--border);border-radius:0;background:transparent;box-shadow:none}.member-page .workspace-stats .stat-card:last-child{border:0}.member-page .workspace-stats .stat-card strong{font-size:clamp(15px,4.4vw,21px)}.member-page .workspace-stats .stat-card>svg{width:20px;height:20px}.member-page .workspace-stats .stat-card span{font-size:9px}
 .workspace-section-heading{margin-bottom:12px}.workspace-section-heading h2{font-size:18px}.workspace-section-heading>span{font-size:10px}.workspace-actions{grid-template-columns:1fr;gap:0;background:var(--surface);border:1px solid var(--border);border-radius:17px;overflow:hidden}.workspace-action{border:0;border-bottom:1px solid var(--border);border-radius:0;padding:18px 16px;grid-template-columns:42px minmax(0,1fr) 14px;gap:12px;background:transparent;box-shadow:none}.workspace-action:last-child{border:0}.workspace-action-icon{width:42px;height:42px;border-radius:13px}.workspace-action strong{font-size:14px}.workspace-action small{font-size:11px;line-height:1.5;margin-top:4px}
 .workspace-library{padding:20px 16px}.workspace-library h2{font-size:17px}.workspace-resources{gap:8px;margin-top:18px}.workspace-resources a{padding:15px 4px;gap:7px}.workspace-resources small{font-size:9px;line-height:1.4}.workspace-resources strong{font-size:12px}
 .workspace-preferences{padding:18px 16px;gap:12px;flex-wrap:wrap}.workspace-preferences .btn{margin-left:54px}.workspace-mobile-logout{display:block}.workspace-mobile-logout button{width:100%;display:flex;align-items:center;justify-content:center;gap:10px;padding:14px;background:var(--surface);border:1px solid var(--border);border-radius:12px;color:#d9637d;font:600 13px var(--font);cursor:pointer}.workspace-mobile-logout .icon{width:18px;height:18px}
 .member-page .profile-identity{padding:22px}.member-page .profile-scene{display:none}.member-page .profile-person{flex-wrap:wrap}.member-page .profile-person h2{font-size:23px}.member-page .profile-shortcuts{flex-wrap:wrap;gap:10px}.member-page .account-form-section,.member-page .profile-cookie-card{padding:22px 18px}.member-page .profile-section-title{font-size:20px}
}
