/* Figma 2257:21197 / 2257:21331. Reader-only surfaces; shared dock unchanged. */
#reader-profile-screen.profile-clean { position: relative; width: 100%; height: 100%; min-height: 0; padding: 0 21px calc(125px + env(safe-area-inset-bottom)); overflow: auto; overscroll-behavior: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; background: #0b0c0a; color: #fafaf7; font-family: "Geologica Pilcrow", sans-serif; font-weight: 300; font-variation-settings: "CRSV" 0, "SHRP" 0; isolation: isolate; }
#reader-profile-screen[hidden], #reader-profile-screen [hidden] { display: none !important; }
#reader-profile-screen::-webkit-scrollbar { display: none; }
#reader-profile-screen *, #reader-profile-screen *::before, #reader-profile-screen *::after { box-sizing: border-box; }
#reader-profile-screen h1, #reader-profile-screen h2, #reader-profile-screen p { margin: 0; color: inherit; letter-spacing: normal; }
#reader-profile-screen button, #reader-profile-screen input, #reader-profile-screen a { font-family: inherit; }
#reader-profile-screen button { border: 0; padding: 0; background: none; color: inherit; font-size: inherit; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
#reader-profile-screen button:disabled { opacity: .45; cursor: wait; }
#reader-profile-screen button:focus-visible, #reader-profile-screen input:focus-visible, #reader-profile-screen a:focus-visible { outline: 2px solid #ff6c4b; outline-offset: 3px; }
#reader-profile-screen button:active, #reader-profile-screen a:active { filter: brightness(.88); }
#reader-profile-screen img { display: block; max-width: none; flex-shrink: 0; }
.profile-background { position: absolute; inset: 0 0 auto; height: 336px; overflow: hidden; z-index: -1; pointer-events: none; }
.profile-background > img { position: absolute; left: calc(50% - 215px); top: 0; width: 438px; height: 326px; object-fit: cover; }
[data-profile-page="main"] .profile-background { -webkit-mask-image: url('/assets/profile-clean/ribbon-mask.svg'); mask-image: url('/assets/profile-clean/ribbon-mask.svg'); -webkit-mask-size: 100% 336px; mask-size: 100% 336px; }
[data-profile-page="data"] .profile-background::after { content: ''; position: absolute; inset: 155px 0 0; background: linear-gradient(transparent, #0b0c0a); }
[data-profile-page="files"] .profile-background { height: 96px; }
[data-profile-page="files"] .profile-background > img { top: -8px; }
[data-profile-page="files"] .profile-background::after { content: ''; position: absolute; inset: 35px 0 0; background: linear-gradient(transparent, #0b0c0a); }
[data-profile-page="invite"] .profile-background, [data-profile-page="edit"] .profile-background { height: max(844px, 100%); }
[data-profile-page="invite"] .profile-background > img, [data-profile-page="edit"] .profile-background > img { top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.profile-header { display: flex; gap: 12px; align-items: center; padding-top: max(48px, env(safe-area-inset-top)); height: auto; }
#reader-profile-screen .profile-header h1 { font-size: 24px; line-height: 32px; font-weight: 700; }
#reader-profile-screen .profile-back { display: grid; place-items: center; flex: 0 0 24px; width: 24px; height: 32px; position: relative; }
.profile-back::before { content: ''; position: absolute; inset: -6px -8px; }
.profile-hero { display: flex; flex-direction: column; align-items: center; padding-top: 42px; }
#reader-profile-screen .profile-avatar-button { display: block; width: 96px; height: 96px; }
.profile-avatar { display: block; width: 96px; height: 96px; position: relative; }
.profile-avatar > img:first-child { position: absolute; top: 0; left: 0; }
.profile-initial { position: absolute; inset: 0; display: grid; place-items: center; color: #f1e2c9; font-size: 40px; line-height: 48px; font-weight: 700; }
#reader-profile-screen .profile-photo { position: absolute; inset: 2px; width: calc(100% - 4px); height: calc(100% - 4px); border-radius: 50%; object-fit: cover; }
#reader-profile-screen .profile-name { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; max-width: calc(100% - 48px); margin-top: 8px; font-size: 32px; font-weight: 700; line-height: 40px; text-align: center; overflow-wrap: anywhere; }
.profile-name > img { position: absolute; right: -24px; top: 10px; }
.profile-metric { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 6px; min-height: 64px; }
.profile-metric { width: 232px; margin-left: 68px; gap: 2px; }
.profile-hours { position: relative; display: block; width: 90px; flex: 0 0 90px; }
.profile-hours strong { display: block; color: #f1e2c9; font-size: 56px; font-weight: 900; line-height: 64px; text-align: left; }
.profile-hours > img { position: absolute; right: 2px; top: -4px; }
.profile-hours-label { width: 140px; font-size: 12px; line-height: 16px; white-space: pre-line; }
.profile-metric.is-wide .profile-hours strong { font-size: 38px; }
.profile-groups { margin-top: 44px; display: flex; flex-direction: column; gap: 16px; }
.profile-card { background: #171919; border: 1px solid #353637; border-radius: 14px; overflow: hidden; }
#reader-profile-screen .profile-row { position: relative; display: flex; align-items: center; gap: 16px; width: 100%; min-height: 55.33px; padding: 15px 17px; text-align: left; font-size: 14px; font-weight: 300; line-height: 20px; }
.profile-row + .profile-row::before { content: ''; position: absolute; top: 0; left: 15px; right: 15px; height: 1px; background: #2b2b2a; }
.profile-row-icon { width: 24px; min-width: 24px; display: grid; place-items: center; }
.profile-row-copy { display: flex; flex: 1; flex-direction: column; min-width: 0; gap: 2px; }
.profile-row-copy small { color: #bccbd9; font-size: 12px; line-height: 16px; font-weight: 300; }
#reader-profile-screen .profile-row.is-danger .profile-row-copy { color: #ff6c4b; }
#reader-profile-screen .profile-row.is-tall { min-height: 71px; padding-left: 23px; gap: 16px; }
#reader-profile-screen .profile-primary, #reader-profile-screen .profile-secondary { display: flex; justify-content: center; align-items: center; width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 12px; background: #ff6c4b; color: #fafaf7; font-size: 15px; font-weight: 400; line-height: 20px; text-decoration: none; text-align: center; }
#reader-profile-screen .profile-secondary { background: #202121; border: 1px solid #353637; }
.profile-invite-art { display: flex; justify-content: center; margin-top: 124px; }
#reader-profile-screen .profile-invite-title { margin-top: 28px; text-align: center; white-space: pre-line; font-size: 40px; font-weight: 700; line-height: 44px; }
#reader-profile-screen .profile-onboarding-action { height: 52px; border-radius: 26px; }
[data-profile-page="invite"] .profile-onboarding-action { margin-top: 144px; }
.profile-form { margin-top: 124px; }
#reader-profile-screen .profile-add-photo { display: flex; flex-direction: column; align-items: center; width: 100%; }
.profile-avatar.is-editing { width: 120px; height: 120px; }
.profile-avatar.is-editing > img:first-child { top: 2px; left: 2px; }
.profile-avatar.is-editing .profile-initial { font-size: 56px; line-height: 64px; font-weight: 400; }
#reader-profile-screen .profile-avatar.is-editing .profile-photo { inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); }
.profile-camera { position: absolute; top: 80px; left: 80px; width: 40px; height: 40px; border-radius: 50%; background: #ff6c4b; display: grid; place-items: center; }
.profile-add-photo strong { margin-top: 16px; font-size: 14px; line-height: 20px; font-weight: 600; }
.profile-add-photo small { margin-top: 4px; color: #969794; font-size: 12px; line-height: 16px; font-weight: 300; }
.profile-name-field { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; font-size: 14px; line-height: 20px; color: #bccbd9; }
#reader-profile-screen .profile-name-field input { width: 100%; height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid #444545; background: #171919; color: #fafaf7; font-size: 18px; font-weight: 400; line-height: 24px; }
.profile-form .profile-onboarding-action { margin-top: 104px; }
.profile-storage-summary { margin-top: 16px; height: 172px; padding: 11px 15px 16px; }
.profile-storage-total { display: block; font-size: 40px; line-height: 48px; font-weight: 900; }
#reader-profile-screen .profile-storage-label { margin: 0 2px; font-size: 14px; line-height: 20px; color: #bccbd9; }
.profile-storage-meter { height: 12px; margin: 16px 4px 12px; background: #cbc0ad; border-radius: 4px; overflow: hidden; }
.profile-storage-meter span { display: block; height: 100%; background: #ff6c4b; }
.profile-storage-legend { display: flex; justify-content: space-between; gap: 10px; margin: 0 4px; font-size: 12px; line-height: 16px; }
.profile-storage-legend > span { display: flex; align-items: flex-start; gap: 8px; white-space: pre-line; }
.profile-storage-legend > span:last-child { width: 123px; }
.profile-storage-legend img { margin-top: 6px; }
.profile-file-list { margin-top: 16px; padding: 0 15px; }
.profile-file-heading { position: relative; height: 55px; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding-top: 13px; }
.profile-file-heading::after { content: ''; position: absolute; top: 49px; left: 0; right: 0; height: 1px; background: #2b2b2a; }
#reader-profile-screen .profile-file-heading h2 { font-size: 19px; line-height: 26px; font-weight: 600; }
.profile-file-heading span { font-size: 12px; line-height: 26px; color: #bccbd9; }
.profile-file { position: relative; display: flex; align-items: flex-start; gap: 12px; height: 68px; padding-top: 0; }
.profile-file::after { content: ''; position: absolute; top: 63px; left: 0; right: 0; height: 1px; background: #2b2b2a; }
.profile-file-cover { display: grid; place-items: center; width: 48px; height: 56px; flex: 0 0 48px; margin-top: 0; border-radius: 4px; background: #2b2b2a; overflow: hidden; }
#reader-profile-screen .profile-file-cover > img:not([src$="/files.svg"]) { width: 48px; height: 56px; object-fit: cover; }
.profile-file-copy { flex: 1; min-width: 0; padding-top: 9px; }
.profile-file-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; line-height: 18px; }
.profile-file-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 3px; color: #bccbd9; font-size: 10px; line-height: 17px; }
.profile-file-size { margin-top: 20px; flex: 0 0 44px; text-align: right; font-size: 12px; line-height: 16px; }
#reader-profile-screen .profile-file-remove { flex: 0 0 24px; height: 56px; display: grid; place-items: center; position: relative; }
.profile-file-remove::after { content: ''; position: absolute; inset: 0 -8px; }
#reader-profile-screen .profile-file-expand { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 47px; color: #ff6c4b; font-size: 14px; font-weight: 300; line-height: 20px; text-align: left; }
#reader-profile-screen .profile-help { margin: 12px 16px 0; color: #bccbd9; font-size: 12px; font-weight: 300; line-height: 16px; white-space: pre-line; }
.profile-cache { margin-top: 12px; }
#reader-profile-screen .profile-empty { padding: 20px 0; color: #bccbd9; font-size: 14px; line-height: 20px; }
.profile-backup { margin-top: 120px; padding: 19px 15px 15px; }
.profile-backup-heading { display: flex; align-items: flex-start; gap: 16px; padding: 0 0 19px 6px; border-bottom: 1px solid #2b2b2a; }
.profile-backup-heading > img { margin-top: 4px; }
#reader-profile-screen .profile-backup-heading h2 { font-size: 19px; font-weight: 600; line-height: 26px; }
#reader-profile-screen .profile-backup-heading p { margin-top: 4px; font-size: 12px; line-height: 16px; font-weight: 300; color: #bccbd9; white-space: pre-line; }
.profile-backup-options { margin-top: 16px; }
.profile-backup-options label { display: block; position: relative; padding-right: 56px; font-size: 14px; line-height: 20px; }
#reader-profile-screen .profile-backup-options p { margin-top: 2px; color: #bccbd9; font-size: 12px; line-height: 16px; }
.profile-switch { display: block; position: absolute; right: 0; top: 0; width: 44px; height: 24px; }
.profile-switch input { position: absolute; inset: -10px 0; width: 44px; height: 44px; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.profile-switch input:focus-visible + img { outline: 2px solid #f1e2c9; outline-offset: 3px; border-radius: 12px; }
.profile-switch-off { display: none; position: absolute; inset: 0; background: #444545; border-radius: 12px; }
.profile-switch-off::before { content: ''; position: absolute; width: 20px; height: 20px; top: 2px; left: 2px; background: #fafaf7; border-radius: 50%; }
.profile-switch input:not(:checked) ~ .profile-switch-off { display: block; }
.profile-backup > .profile-primary { margin-top: 20px; }
.profile-backup + .profile-card { margin-top: 16px; }
#reader-profile-screen .profile-dialog { width: calc(100vw - 42px); max-width: 349px; max-height: calc(100dvh - 48px); margin: auto; padding: 23px; border: 1px solid #353637; border-radius: 24px; background: linear-gradient(to right, #171919, #111312); color: #fafaf7; box-shadow: 0 16px 36px #0006; overflow: auto; font-family: "Geologica Pilcrow", sans-serif; }
.profile-dialog::backdrop { background: #0009; }
.profile-dialog[open] { display: flex; flex-direction: column; gap: 16px; }
.profile-dialog-content { display: flex; flex-direction: column; gap: 8px; }
.profile-dialog-icon { display: grid; place-items: center; width: 24px; height: 24px; }
.profile-dialog-top { display: flex; justify-content: space-between; align-items: center; height: 24px; }
#reader-profile-screen .profile-dialog-close { position: relative; width: 24px; height: 24px; }
.profile-dialog-close::before { content: ''; position: absolute; inset: -8px; }
#reader-profile-screen .profile-dialog h2 { font-size: 24px; font-weight: 700; line-height: 32px; }
#reader-profile-screen .profile-dialog p { font-size: 14px; line-height: 20px; font-weight: 300; color: #bccbd9; white-space: pre-line; }
#reader-profile-screen .profile-dialog p.profile-dialog-warning { color: #ff6c4b; font-weight: 600; }
.profile-dialog-actions { display: flex; gap: 8px; }
.profile-dialog-actions > button { flex: 1; }
#reader-shelf-nav .shelf-nav-avatar .profile-dock-photo { position: absolute; inset: 0; width: 26px; height: 26px; object-fit: cover; border-radius: 50%; }
@media (prefers-reduced-motion: no-preference) { #reader-profile-screen button, #reader-profile-screen a { transition: filter 120ms ease; } .profile-dialog[open] { animation: profile-dialog-in 160ms ease-out; } @keyframes profile-dialog-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } } }
