/* A personal homepage: identity first, useful shortcuts second, stories below. */
.profile-page .profile-shell { max-width:1280px;gap:28px;padding:24px 28px 64px; }
.profile-page .profile-main { padding:0; }
.profile-home-topbar { display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:36px;margin:0 0 14px; }
.profile-home-tools { display:flex;align-items:center;gap:6px;margin-left:auto; }
.profile-home-tools[hidden] { display:none; }
#profile-appearance { display:flex;align-items:center; }
#profile-appearance .appearance-toggle { display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;border:0;border-radius:10px;background:transparent;color:var(--site-muted);cursor:pointer; }
#profile-appearance .appearance-toggle:hover { background:var(--site-soft);color:var(--site-accent); }
#profile-appearance .appearance-toggle:focus-visible { outline:2px solid var(--site-accent);outline-offset:2px; }
.profile-panel-footer { display:grid;flex:none;gap:4px;margin:0;border-top:1px solid var(--site-border);padding:10px 18px calc(10px + env(safe-area-inset-bottom,0px)); }
.profile-panel-footer button { display:flex;align-items:center;justify-content:space-between;width:100%;min-height:44px;padding:10px 12px;border:0;border-radius:8px;background:transparent;color:var(--site-ink);font:inherit;font-size:13px;text-align:left;cursor:pointer; }
.profile-panel-footer button:hover { background:var(--site-soft); }
.profile-panel-footer .toolbar-menu-hint { color:var(--site-muted);font-size:11px; }
.profile-page[data-profile-panel="history"] .profile-sidebar { display:none; }
.profile-page[data-profile-panel="history"] .profile-shell { max-width:1000px; }
.profile-page[data-profile-panel="history"] #profile-load-state { display:none; }
.profile-page[data-profile-panel="history"] #story-return { display:none; }
.profile-page[data-profile-panel="history"] .profile-home-caption { color:var(--site-ink);font-size:22px;font-weight:650;letter-spacing:0; }
.profile-page[data-profile-panel="history"] .profile-home-topbar { margin-bottom:18px; }
.profile-home-caption { font-size:12px;letter-spacing:1px;color:var(--site-muted); }
.profile-home-back { display:inline-flex;align-items:center;gap:3px;min-height:44px;color:var(--site-muted);font-size:13px;text-decoration:none; }
.profile-home-header { position:relative;padding:30px 30px 0;border:1px solid var(--site-border);border-radius:22px;background:radial-gradient(ellipse at 100% 0,var(--site-soft),transparent 65%),var(--site-paper);overflow:hidden; }
.profile-home-identity { display:flex;align-items:center;gap:18px;min-width:0; }
.profile-home-avatar { display:grid;place-items:center;flex-shrink:0;width:80px;height:80px;overflow:hidden;border-radius:50%;background:var(--site-soft);color:var(--site-accent);font-size:30px;text-decoration:none;border:3px solid var(--site-paper);box-shadow:0 4px 18px #29395312;box-sizing:border-box; }
.profile-home-avatar img { display:block;width:100%;height:100%;object-fit:cover; }
.profile-home-name { flex:1;min-width:0; }
.profile-home-name h1 { font-family:inherit;font-size:25px;font-weight:650;line-height:1.5;margin:0;color:var(--site-ink);overflow-wrap:anywhere; }
.profile-home-name > span { display:block;margin-top:5px;color:var(--site-muted);font-size:11px;line-height:1.8; }
.profile-home-edit { display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;min-height:40px;padding:0 16px;color:var(--site-ink);font-size:12px;text-decoration:none;border:1px solid var(--site-border);border-radius:999px;background:var(--site-paper); }
.profile-home-bio { max-width:65ch;margin:22px 0 8px;font-size:13px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--site-ink); }
.profile-home-public { display:inline-flex;align-items:center;gap:6px;font-size:11px;line-height:1.8;min-height:28px;margin-bottom:14px;color:var(--site-muted);text-decoration:none; }
.profile-home-utilities { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid var(--site-border);padding:16px 0 18px;gap:16px; }
.profile-home-utilities > a { display:flex;align-items:center;gap:12px;min-height:52px;padding:3px 0;text-decoration:none;color:var(--site-ink);min-width:0; }
.profile-home-utilities > a + a { border-left:1px solid var(--site-border);padding-left:18px; }
.profile-home-utilities > a > svg { width:24px;height:24px;flex-shrink:0;color:var(--site-muted); }
.profile-home-utilities > a > span:not(.profile-home-arrow) { display:block;font-size:12px;line-height:1.8;min-width:0;overflow-wrap:anywhere; }
.profile-home-utilities strong { display:block;font-size:19px;font-weight:650;line-height:1.6;font-variant-numeric:tabular-nums; }
.profile-home-utilities small { display:block;font-size:11px;color:var(--site-muted);line-height:1.8; }
.profile-home-arrow { margin-left:auto;color:var(--site-muted);font-size:18px; }
.profile-content-tabs { display:flex;align-items:center;gap:34px;margin:22px 0 20px;border-bottom:1px solid var(--site-border); }
.profile-content-tabs a { position:relative;display:flex;align-items:center;justify-content:center;min-height:49px;font-size:14px;font-weight:500;white-space:nowrap;text-decoration:none;color:var(--site-muted);padding:8px 3px;box-sizing:border-box; }
.profile-content-tabs a[aria-current] { color:var(--site-ink);font-weight:650; }
.profile-content-tabs a[aria-current]::after { content:'';position:absolute;bottom:-1px;left:15%;right:15%;height:3px;border-radius:3px;background:var(--site-accent); }
.profile-page :is(.profile-home-header,.profile-content-tabs,.profile-home-topbar) a:focus-visible { outline:2px solid var(--site-accent);outline-offset:3px; }
.profile-page #profile-load-state:not([hidden]) { margin-bottom:18px; }
.profile-page #panel-overview .resume-shelf { border:0;background:transparent;padding:0;border-radius:0; }
.profile-page #panel-overview .resume-shelf-heading h2 { font-size:15px; }
.profile-page #panel-overview .resume-shelf-heading { margin-bottom:0; }
.profile-page .profile-resume-list { grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:16px; }
.profile-page .profile-resume-list article { background:var(--site-paper);padding:20px;border-radius:16px; }
.profile-page .profile-resume-main { flex-wrap:wrap;align-items:flex-start;gap:16px; }
.profile-page .profile-resume-main > div { width:100%; }
.profile-page .profile-resume-main .btn { margin-left:0;min-height:40px; }
.profile-page .profile-resume-main p { margin-top:8px;line-height:1.8; }
.profile-page :is(#panel-favorites,#panel-history) > .profile-page-heading > div { display:none; }
.profile-page :is(#panel-favorites,#panel-history) > .profile-page-heading { justify-content:flex-end;margin-bottom:18px; }
.profile-page #panel-works .works-head > div { display:none; }
.profile-page #panel-works .works-head { justify-content:flex-end;margin-bottom:15px; }
.profile-page .favorites-library .fav-grid { grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:20px; }
.profile-page .favorites-library .fav-card { border:0;background:transparent;border-radius:0; }
.profile-page .favorites-library .fav-card:hover { box-shadow:none; }
.profile-page .favorites-library .fc-book { padding:0; }
.profile-page .favorites-library .fc-cover-wrap { border-radius:12px; }
.profile-page .favorites-library .fav-card .fc-body { padding:10px 1px; }
.profile-page #panel-works .works-toolbar { border:0;padding:0;background:transparent; }
.profile-page #panel-works .works-search input { background:var(--site-paper); }
.profile-page #panel-works .works-filters { gap:8px;margin-top:14px; }
.profile-page #panel-works .works-filters button { background:var(--site-paper);border-radius:999px; }
.profile-page #panel-works .works-filters button[aria-pressed=true] { background:var(--site-soft); }
.profile-page #panel-works .works-backups { border:0;padding:10px 0;margin:8px 0 0; }
.profile-page #panel-works .works-result { margin:10px 0 14px; }
@media(hover:hover) {
  .profile-home-edit:hover { background:var(--site-soft); }
  .profile-home-public:hover,.profile-home-back:hover { color:var(--site-accent); }
  .profile-home-utilities > a:hover { color:var(--site-accent); }
}
@media(max-width:1100px) {
  .profile-home-utilities { gap:12px; }
  .profile-home-utilities > a { gap:8px; }
  .profile-home-utilities > a + a { padding-left:12px; }
  .profile-home-arrow { display:none; }
  .profile-page .profile-resume-list { grid-template-columns:minmax(0,1fr); }
}
@media(max-width:800px) {
  .profile-page .profile-shell { padding:0 18px 40px; }
  .profile-home-topbar { margin:0 -18px;padding:8px 18px 6px;min-height:48px;background:var(--site-paper); }
  .profile-home-topbar .profile-mobile-navigation { display:block;margin:0;padding:0;border:0;background:transparent; }
  .profile-home-topbar .profile-panel-trigger { max-width:none;background:transparent;gap:8px;font-size:12px;padding:7px 0 7px 8px; }
  .profile-home-caption { font-size:13px;letter-spacing:0; }
  .profile-home-header { margin:0 -18px;padding:16px 20px 0;border:0;border-radius:0 0 22px 22px; }
  .profile-home-identity { gap:13px; }
  .profile-home-avatar { width:68px;height:68px;font-size:25px; }
  .profile-home-name h1 { font-size:21px; }
  .profile-home-edit { font-size:11px;padding:0 12px;min-height:44px; }
  .profile-home-bio { margin-top:17px;font-size:13px; }
  .profile-home-public { min-height:44px; }
  .profile-home-utilities { padding:14px 0 17px;gap:13px; }
  .profile-home-utilities > a { display:flex;flex-direction:column;justify-content:flex-start;align-items:center;gap:7px;text-align:center;padding:0; }
  .profile-home-utilities > a + a { padding-left:0;border:0; }
  .profile-home-utilities > a > svg { width:24px;height:24px; }
  .profile-home-utilities strong { font-size:12px;font-weight:500;line-height:1.8;color:var(--site-muted); }
  .profile-content-tabs { gap:0;justify-content:space-between;margin:15px 0 20px; }
  .profile-content-tabs a { flex:1;padding:10px 1px;font-size:13px; }
  .profile-content-tabs a[aria-current]::after { left:25%;right:25%; }
  .profile-page .favorites-library .fav-grid { grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 14px; }
  .profile-page .profile-resume-list { gap:12px; }
  .profile-page .profile-resume-main { flex-wrap:nowrap;align-items:center; }
  .profile-page .profile-resume-main > div { width:auto; }
  .profile-page .profile-resume-main .btn { min-height:44px; }
  .profile-page .profile-resume-list article { padding:16px; }
  .profile-page .profile-home-topbar + #profile-load-state:not([hidden]) { margin-top:16px; }
  .profile-page .profile-home-header[hidden] ~ .panel.active { padding-top:16px; }
  .profile-page #panel-works .works-filters { flex-wrap:nowrap;overflow-x:auto;padding-bottom:5px;scrollbar-width:thin; }
  .profile-page #panel-works .works-filters button { flex-shrink:0;min-height:44px; }
}
@media(max-width:360px) {
  .profile-home-avatar { width:56px;height:56px; }
  .profile-home-name h1 { font-size:18px; }
  .profile-home-identity { gap:10px; }
  .profile-home-header { padding-inline:16px; }
  .profile-home-edit { padding-inline:10px; }
  .profile-home-utilities { gap:8px; }
  .profile-home-utilities small { font-size:10px; }
  .profile-page .profile-resume-main { flex-wrap:wrap; }
}

/* Social homepage: a single identity area, quiet utilities, cover-first content. */
.profile-home-header { padding:28px 28px 0;background:var(--site-paper);border:0;border-radius:18px; }
.profile-home-identity { align-items:center; }
.profile-home-name > span { font-size:12px;letter-spacing:.3px;font-variant-numeric:tabular-nums; }
.profile-home-name h1 { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.profile-home-edit { display:none; }
.profile-home-bio { margin:18px 0 3px;line-height:1.7; }
.profile-home-public { margin-bottom:0;min-height:36px;font-size:12px; }
.profile-social-bar { display:flex;align-items:center;justify-content:space-between;gap:20px;padding:12px 0 22px; }
.profile-social-numbers { display:flex;align-items:center;gap:28px; }
.profile-social-numbers > :is(button,span) { display:flex;align-items:baseline;gap:6px;padding:0;min-height:44px;align-content:center;flex-wrap:wrap;border:0;background:none;font:inherit;color:var(--site-muted);font-size:12px; }
.profile-social-numbers > button { cursor:pointer; }
.profile-social-numbers strong { color:var(--site-ink);font-size:20px;font-weight:650;font-variant-numeric:tabular-nums; }
.profile-social-edit { display:flex;justify-content:center;align-items:center;min-height:40px;padding:0 22px;background:var(--site-soft);border-radius:8px;color:var(--site-ink);text-decoration:none;font-size:13px;white-space:nowrap; }
.profile-home-utilities { grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:0 0 22px;border:0; }
.profile-home-utilities > a { min-height:64px;padding:12px 16px;border-radius:12px;background:var(--site-page);gap:12px;box-sizing:border-box; }
.profile-home-utilities > a + a { border:0;padding-left:16px; }
.profile-home-utilities > .profile-home-checkin { background:color-mix(in srgb,#d6a54d 9%,var(--site-paper)); }
.profile-home-utilities > .profile-home-feedback { display:none; }
.profile-home-utilities > a > svg { width:22px;height:22px; }
.profile-home-utilities > a > span:not(.profile-home-arrow) { display:flex;align-items:center;gap:12px;flex:1; }
.profile-home-utilities strong { font-size:18px;line-height:1.4;color:var(--site-ink); }
.profile-home-utilities small { font-size:12px; }
.profile-content-tabs { gap:40px;margin-top:16px; }
.profile-content-tabs a { min-height:52px;font-size:15px; }
.profile-page #panel-works .works-grid { grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 18px;align-items:start; }
.profile-page #panel-works .work-card { padding:0;border:0;border-radius:0;background:transparent;box-shadow:none; }
.profile-page #panel-works .work-heading { display:block;position:relative; }
.profile-page #panel-works .work-heading h3 a { text-decoration:none;color:inherit; }
.profile-page #panel-works .work-cover-frame { display:block; }
.profile-page #panel-works .works-head { display:none; }
.profile-page #panel-works .works-create { display:flex;align-items:center;justify-content:center;min-height:40px;padding:0 14px;border-radius:9px;background:var(--site-soft);color:var(--site-ink);font-size:12px;text-decoration:none;white-space:nowrap; }
.profile-page #panel-works .works-refresh { width:40px;height:40px;min-height:40px;overflow:hidden;font-size:0;padding:10px;justify-content:center;flex-shrink:0; }
.profile-page #panel-works .works-refresh svg { display:block;flex-shrink:0;width:17px;height:17px; }
.profile-page #panel-works .works-result { position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap; }
.profile-page #panel-works .works-toolbar { margin-bottom:18px; }
.profile-page #panel-works .works-filters { scrollbar-width:none; }
.profile-page #panel-works .works-filters::-webkit-scrollbar { display:none; }
.profile-page #panel-works .work-cover-frame { width:100%;aspect-ratio:3/4;border:0;border-radius:12px; }
.profile-page #panel-works .work-cover { object-fit:cover; }
.profile-page #panel-works .work-status-line { position:absolute;top:8px;left:8px;right:8px; }
.profile-page #panel-works .work-badge { color:var(--work-state-ink);background:var(--work-state-paper);border:1px solid color-mix(in srgb,var(--work-state-ink) 20%,var(--work-state-paper));border-radius:6px;padding:4px 7px;font-size:11px;line-height:1.5;box-shadow:0 2px 7px #18243b12; }
.profile-page #panel-works .work-heading h3 { margin:10px 0 0;font-size:14px;line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden; }
.profile-page #panel-works :is(.work-theme,.work-description,.work-heading-text > .work-meta,.work-next) { display:none; }
.profile-page #panel-works .work-actions > :not(:first-child) { display:none; }
.profile-page #panel-works .work-review { font-size:12px; }
.profile-page .favorites-library .fav-grid { grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 18px; }
.profile-page .favorites-library .fc-cover-wrap { aspect-ratio:3/4; }
.profile-page .favorites-library .fc-book { text-decoration:none;color:var(--site-ink); }
.profile-page .favorites-library .fc-title { display:block;white-space:normal;line-height:1.6; }
.profile-page #panel-likes .fc-meta { color:var(--site-muted);font-size:12px; }
.connection-tabs { display:flex;gap:24px;border-bottom:1px solid var(--site-border);margin:0 0 12px; }
.connection-tabs button { padding:12px 4px;min-height:48px;border:0;border-bottom:2px solid transparent;background:none;font:inherit;font-size:15px;color:var(--site-muted);cursor:pointer; }
.connection-tabs button[aria-pressed=true] { color:var(--site-ink);border-bottom-color:var(--site-accent); }
.connection-person { display:flex;align-items:center;gap:16px;padding:20px 0;border-bottom:1px solid var(--site-border); }
.connection-identity { display:flex;align-items:center;gap:14px;min-width:0;flex:1;color:var(--site-ink);text-decoration:none; }
.connection-identity > span:last-child { min-width:0; }
.connection-avatar { display:grid;place-items:center;width:52px;height:52px;flex-shrink:0;border-radius:50%;overflow:hidden;background:var(--site-soft);color:var(--site-accent); }
.connection-avatar img { width:100%;height:100%;object-fit:cover; }
.connection-identity strong { display:block;font-size:14px;overflow-wrap:anywhere; }
.connection-identity small { display:block;font-size:11px;color:var(--site-muted);margin-top:5px;overflow-wrap:anywhere; }
.connection-identity p { margin:6px 0 0;font-size:12px;line-height:1.6;color:var(--site-muted);display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden; }
.connection-follow { min-height:40px;min-width:72px;border:1px solid var(--site-border);border-radius:8px;padding:6px 12px;font:inherit;font-size:12px;background:var(--site-soft);color:var(--site-ink);cursor:pointer; }
.connection-follow[aria-pressed=true] { background:transparent;color:var(--site-muted); }
.profile-social-bar :is(a,button):focus-visible,.connection-tabs button:focus-visible,.connection-follow:focus-visible { outline:2px solid var(--site-accent);outline-offset:3px; }
@media(max-width:1000px) {
  .profile-page #panel-works .works-grid,.profile-page .favorites-library .fav-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:800px) {
  .profile-home-header { border-radius:0;margin-inline:-18px;padding:12px 20px 0; }
  .profile-home-avatar { width:76px;height:76px;box-shadow:none;border:0; }
  .profile-home-name h1 { font-size:23px; }
  .profile-home-name > span { font-size:11px;margin-top:4px; }
  .profile-home-bio { margin-top:16px;font-size:13px; }
  .profile-home-public { min-height:34px; }
  .profile-social-bar { gap:14px;padding:8px 0 18px; }
  .profile-social-numbers { gap:14px;flex:1;min-width:0;max-width:260px;justify-content:space-between; }
  .profile-social-numbers strong { font-size:18px; }
  .profile-social-numbers > :is(button,span) { flex-direction:column;justify-content:center;align-items:center;gap:2px;font-size:12px;min-width:0; }
  .profile-social-edit { min-height:40px;padding-inline:16px;font-size:12px; }
  .profile-home-utilities { gap:10px;padding-bottom:18px; }
  .profile-home-utilities > a { flex-direction:row;text-align:left;min-height:68px;gap:9px;padding:10px 12px; }
  .profile-home-utilities > a + a { padding-left:12px; }
  .profile-home-utilities > a > span:not(.profile-home-arrow) { display:block;font-size:12px;line-height:1.6; }
  .profile-home-utilities strong { font-size:17px;line-height:1.6; }
  .profile-home-utilities small { font-size:11px;line-height:1.8; }
  .profile-content-tabs { margin-top:2px;gap:0;margin-bottom:18px; }
  .profile-content-tabs a { font-size:14px; }
  .profile-page #panel-works .works-grid,.profile-page .favorites-library .fav-grid { gap:20px 12px; }
  .profile-page #panel-works .work-heading h3 { font-size:13px; }
}
@media(max-width:360px) {
  .profile-home-header { padding-inline:16px; }
  .profile-home-avatar { width:64px;height:64px; }
  .profile-home-name h1 { font-size:21px; }
  .profile-social-numbers { gap:14px; }
  .profile-social-numbers > :is(button,span) { flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:11px; }
  .profile-social-edit { padding-inline:20px; }
  .profile-home-utilities > a > svg { width:18px;height:18px; }
}
@media(min-width:801px) {
  .profile-home-header { display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:36px; }
  .profile-home-identity,.profile-home-bio,.profile-home-public { grid-column:1; }
  .profile-home-bio { margin-top:12px; }
  .profile-home-public { justify-self:start;margin-bottom:12px; }
  .profile-social-bar { grid-column:2;grid-row:1 / 4;flex-direction:column;align-items:flex-end;justify-content:space-between;gap:12px;padding:0 0 18px; }
  .profile-home-utilities,#profile-social-status { grid-column:1 / -1; }
  .profile-page #panel-works .works-grid,.profile-page .favorites-library .fav-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
@media(min-width:801px) and (max-width:1100px) {
  .profile-home-header { column-gap:20px;padding-inline:22px; }
  .profile-social-numbers { gap:16px; }
  .profile-social-numbers > :is(button,span) { flex-direction:column;justify-content:center;align-items:center;gap:2px; }
  .profile-page #panel-works .works-grid,.profile-page .favorites-library .fav-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}

/* Quiet, recognizable card controls rather than bare management links. */
.profile-page #panel-works .work-footer { --work-action-gap:8px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px var(--work-action-gap);align-items:start;margin-top:10px;padding-top:0;border:0; }
.profile-page #panel-works .work-actions { grid-column:1;grid-row:1;min-width:0;position:relative;z-index:1; }
/* The native disclosure keeps its semantics; only its summary occupies column two. */
.profile-page #panel-works .work-manage { grid-column:1 / -1;grid-row:1;min-width:0; }
.profile-page #panel-works .work-actions .btn,
.profile-page #panel-works .work-manage > summary,
.profile-page .favorites-library .profile-card-action {
  display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:38px;padding:7px 10px;box-sizing:border-box;
  border:1px solid var(--site-border);border-radius:8px;background:var(--site-paper);color:var(--site-ink);font:inherit;font-size:12px;line-height:1.4;text-decoration:none;cursor:pointer;box-shadow:none;
}
.profile-page #panel-works .work-actions .btn,
.profile-page #panel-works .work-manage > summary { width:100%;min-height:36px;padding:7px 6px;border-radius:999px;white-space:nowrap;transition:background-color .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease,transform .16s ease; }
.profile-page #panel-works .work-actions .btn { background:color-mix(in srgb,var(--site-accent) 7%,var(--site-paper));border-color:color-mix(in srgb,var(--site-accent) 14%,var(--site-paper));color:var(--site-ink); }
.profile-page #panel-works .work-actions > .btn:not(:first-child) { display:none; }
.profile-page #panel-works .work-manage > summary { display:flex;width:calc((100% - var(--work-action-gap))/2);margin-left:auto;background:transparent;border-color:transparent;color:var(--site-muted);gap:5px;list-style:none; }
.profile-page #panel-works .work-manage > summary::marker { content:''; }
.profile-page #panel-works .work-manage[open] > summary { background:var(--site-paper);border-color:var(--site-border);color:var(--site-ink); }
.profile-page #panel-works .work-manage-content { margin:10px 0 0;padding:8px;border:1px solid var(--site-border);border-radius:12px;background:var(--site-paper);box-shadow:0 4px 14px #18243b06; }
.profile-page #panel-works .work-manage-content nav { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px; }
.profile-page #panel-works .work-manage-content nav a { display:flex;align-items:center;min-height:38px;padding:7px 8px;border-radius:7px;box-sizing:border-box;font-size:12px;line-height:1.5;color:var(--site-ink);text-decoration:none;transition:background-color .16s ease; }
.profile-page #panel-works .work-manage-content .work-stats { margin:8px 4px 0;padding-top:10px; }
.profile-page #panel-works .work-actions .btn:active,
.profile-page #panel-works .work-manage > summary:active { transform:scale(.97); }
.profile-page .favorites-library .fc-meta { display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:4px;margin-top:4px; }
.profile-page .favorites-library .fc-meta > span { flex:1;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:var(--site-muted); }
.profile-page .favorites-library .profile-card-action { flex-shrink:0;color:var(--site-muted); }
.profile-page .favorites-library :is(.fc-unfav,.fc-unlike) { display:inline-grid;place-items:center;width:36px;height:36px;min-height:36px;padding:8px;border:0;border-radius:9px;background:transparent;cursor:pointer; }
.profile-page .favorites-library :is(.fc-unfav,.fc-unlike) svg { width:19px;height:19px;fill:color-mix(in srgb,var(--site-accent) 16%,transparent); }
.profile-page .favorites-library .fc-unlike svg { fill:currentColor;color:var(--site-accent); }
.fc-progress { display:flex;align-items:center;justify-content:space-between;gap:5px;padding-top:10px;margin-top:5px;border-top:1px solid var(--site-border);font-size:11px;line-height:1.8;color:var(--site-muted); }
.fc-progress > span { white-space:nowrap; }
.fc-progress a { color:var(--site-accent);text-decoration:none;min-height:36px;display:inline-flex;align-items:center;gap:3px; }
.fc-progress a:hover { text-decoration:underline; }
.fc-progress a:focus-visible { outline:2px solid var(--site-accent);outline-offset:3px;border-radius:4px; }
.fc-progress.is-finished > span { color:var(--site-accent); }
/* Fill the shared portrait frame; the frame supplies rounded corners. */
.profile-page :is(.fc-cover-wrap,.work-cover-frame,.hi-cover) { display:grid;place-items:center;overflow:hidden; }
.profile-page .favorites-library .fc-cover-wrap > img.fc-cover,
.profile-page #panel-works .work-cover-frame > img.work-cover,
.profile-page .history-item .hi-cover > img {
  position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;max-height:none;min-width:0;min-height:0;object-fit:cover;border-radius:0;
}
.profile-page .history-item .hi-cover > img { border-radius:7px; }
.profile-page :is(.fc-cover-wrap,.hi-cover) > :is(.fc-cover-placeholder,[data-cover-placeholder]) { grid-area:1 / 1; }
.profile-page :is(.fc-cover-wrap,.hi-cover) > img { grid-area:1 / 1; }
.profile-card-action svg { width:14px;height:14px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round; }
.profile-card-action:disabled { opacity:.55;cursor:wait; }
.profile-page :is(.profile-card-action,.work-manage > summary):focus-visible { outline:2px solid var(--site-accent);outline-offset:3px; }
.profile-page #panel-history > .profile-page-heading { display:none; }
.profile-page #panel-history .profile-record-section { padding:20px 24px;border-radius:16px; }
@media(hover:hover) {
  .profile-page .favorites-library .profile-card-action:hover { background:var(--site-soft);color:var(--site-ink); }
  .profile-page #panel-works .work-actions .btn:hover { background:color-mix(in srgb,var(--site-accent) 17%,var(--site-paper));border-color:color-mix(in srgb,var(--site-accent) 35%,var(--site-paper));box-shadow:0 3px 9px color-mix(in srgb,var(--site-accent) 12%,transparent);transform:translateY(-1px); }
  .profile-page #panel-works .work-manage > summary:hover { background:var(--site-paper);border-color:var(--site-border);color:var(--site-ink); }
  .profile-page #panel-works .work-manage-content nav a:hover { background:var(--site-soft); }
}
.profile-page #panel-works .work-actions .btn:active { background:color-mix(in srgb,var(--site-accent) 22%,var(--site-paper));box-shadow:inset 0 1px 3px #18243b12; }
.profile-page #panel-works .work-manage > summary:active { background:var(--site-soft); }
@media(max-width:800px) {
  .profile-page #panel-works .work-footer { --work-action-gap:6px; }
  .profile-page #panel-works .work-actions .btn,
  .profile-page #panel-works .work-manage > summary,
  .profile-page .favorites-library .profile-card-action { min-height:44px;padding:7px 6px;font-size:11px; }
  .profile-page #panel-works .work-manage-content nav a { min-height:44px;font-size:11px; }
  .profile-page .favorites-library .fc-meta { align-items:center;flex-direction:row;gap:4px; }
  .profile-page .favorites-library .profile-card-action { width:auto;font-size:11px;min-height:44px; }
  .profile-page .favorites-library :is(.fc-unfav,.fc-unlike) { width:44px;height:44px;padding:12px; }
  .fc-progress a { min-height:44px; }
  .profile-page #panel-history .profile-record-section { padding:16px; }
}
@media(max-width:360px) {
  .profile-page #panel-works .work-manage-content nav { grid-template-columns:minmax(0,1fr); }
}
@media(prefers-reduced-motion:reduce) {
  .profile-page #panel-works :is(.work-actions .btn,.work-manage > summary,.work-manage-content nav a,.work-manage-chevron) { transition:none; }
  .profile-page #panel-works .work-actions .btn:is(:hover,:active),.profile-page #panel-works .work-manage > summary:active { transform:none; }
}
