.profile-page{background:var(--page-background-containers)}
.profile-page :is(.simulation,.preview-footer,.interaction-status){display:none}
.profile-page #surface{width:100%;max-width:640px;margin-inline:auto;padding:var(--space-24) var(--screen-gutter) var(--space-40)}
.profile-page h1{margin:0 0 var(--space-24)}
.profile-identity{display:flex;align-items:center;gap:var(--space-16);margin-bottom:var(--space-32)}
.profile-initial{width:64px;height:64px;display:grid;place-items:center;border-radius:50%;background:var(--container-suggested-background);border:2px solid var(--container-suggested-border);font:var(--heading-weight) var(--heading-sm)/1 var(--font-heading)}
.profile-identity h2{margin:0 0 var(--space-4);font-size:var(--heading-sm)}
.profile-identity p{margin:0;color:var(--text-secondary)}
.profile-section+.profile-section{margin-top:var(--space-24)}
.profile-section>h2{margin:0 0 var(--space-12);font:var(--body-weight) var(--body-xs)/var(--body-leading) var(--font-body);color:var(--text-secondary)}
.profile-card{background:white;border:1px solid var(--border-subtle-color);border-radius:var(--radius-container);overflow:hidden}
.profile-card-heading{padding:var(--space-16) var(--space-16) 0}
.profile-card-heading h2{margin:0;font:var(--heading-weight) var(--body-xs)/var(--body-leading) var(--font-heading);color:var(--ink)}
.profile-row{width:100%;display:flex;align-items:center;gap:var(--space-12);padding:var(--space-16);border-radius:0;background:transparent;color:var(--ink);text-align:left;min-height:0}
.profile-row+.profile-row{border-top:1px solid var(--divider-subtle-color)}
.profile-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:var(--space-4);font-size:var(--body-md)}
.profile-copy h3,.profile-row-title{margin:0;font-size:var(--body-md);font-weight:var(--body-weight)}
.profile-copy p,.profile-secondary{margin:0;font-size:var(--body-sm);color:var(--text-secondary)}
.profile-provider{width:32px;height:32px;flex:0 0 32px;display:grid;place-items:center;background:var(--background-subtle-light);border-radius:var(--radius-container-nested);font-size:var(--body-md)}
.profile-connect,.profile-logout{color:var(--rose-strong);font-size:var(--body-sm)}
.profile-switch{flex:0 0 40px;width:40px;height:24px;min-height:0;padding:2px;border-radius:24px;background:var(--text-subtle);transition:background var(--motion-default) var(--motion-ease)}
.profile-switch>span{display:block;width:20px;height:20px;border-radius:50%;background:white;transition:transform var(--motion-default) var(--motion-ease)}
.profile-switch[aria-checked=true]{background:var(--cta-primary-start)}
.profile-switch[aria-checked=true]>span{transform:translateX(16px)}
.profile-dialog{width:calc(100% - 48px);max-width:400px;padding:var(--space-24);border:1px solid var(--border-subtle-color);border-radius:var(--radius-container);color:var(--ink);background:white;animation:profile-dialog-in var(--motion-default) var(--motion-ease)}
.profile-dialog::backdrop{background:rgb(5 22 46 / .25)}
.profile-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:var(--space-16);margin-bottom:var(--space-16)}
.profile-dialog h2{margin:0;font-size:var(--heading-sm)}
.profile-close{background:transparent;color:var(--text-secondary);padding:0;width:24px;height:24px;min-height:0;font-size:24px}
.profile-primary{width:100%;background:var(--ink);padding:var(--space-8) var(--space-24);min-height:0}
@keyframes profile-dialog-in{from{opacity:0;transform:translateY(-24px)}to{opacity:1;transform:translateY(0)}}
.profile-copy .profile-focus-description{font-size:var(--body-xs)}
.profile-monika-identity{display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;margin-bottom:24px}
.profile-monika-avatar{width:96px;height:96px;object-fit:cover;border-radius:50%;border:4px solid var(--container-suggested-border);margin-bottom:8px}
.profile-page .profile-monika-identity h1{margin:0;font-size:var(--heading-sm)}
.profile-monika-identity p{margin:0;color:var(--text-secondary);font-size:var(--body-sm)}
.profile-about{padding:16px}.profile-about p{margin:0;font-size:var(--body-sm);line-height:1.5}.profile-about p+p{margin-top:8px}
.profile-card-heading+.profile-thought{padding-top:var(--space-8)}
.profile-skills{display:flex;flex-wrap:wrap;gap:8px;padding:16px}
.profile-skills-note{margin:0;padding:0 16px 16px;font-size:.875rem;color:var(--text-muted,#68666c);line-height:1.5}
.profile-skills button{font:inherit;cursor:pointer;min-height:44px}
.profile-skills button:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.profile-skills-group{flex-basis:100%;margin:4px 0;font-size:.875rem;font-weight:600}
.profile-skill{padding:4px var(--space-16);border-radius:var(--radius-button-pill);background:var(--badge-connection-background);color:var(--badge-connection-text);font-size:var(--body-xs)}
.profile-note-icon{font-size:24px;flex-shrink:0}
.profile-settings-owner{display:flex;gap:12px;align-items:center;margin-bottom:24px}
.profile-settings-owner .profile-initial{width:44px;height:44px;font-size:var(--body-md)}
.profile-settings-owner h2{margin:0;font-size:var(--body-md)}.profile-settings-owner p{margin:4px 0 0;color:var(--text-secondary);font-size:var(--body-xs)}

.profile-tabs.calendar-view-switch{width:100%;margin-bottom:24px}
.profile-avatar-wrap{position:relative;width:96px;height:96px;margin-bottom:8px}
.profile-avatar-wrap .profile-monika-avatar{display:block;margin:0}
.profile-presence{position:absolute;right:3px;bottom:3px;width:18px;height:18px;border:3px solid var(--page-background-containers);border-radius:50%;background:#9b9b9b;transition:background var(--motion-default) var(--motion-ease)}
.profile-presence[data-online=true]{background:#36a775}
.profile-monika-identity .profile-last-active{margin:4px 0 0;font-size:var(--body-xs);color:var(--text-secondary)}
.profile-focus-title{display:flex;align-items:center;gap:4px}.profile-info{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;min-height:0;padding:0;background:transparent;color:var(--text-secondary);font:20px/1 sans-serif;border:0;border-radius:50%}

.profile-about p{font-size:var(--body-xs)}
.profile-trust{--profile-trust-accent:var(--text-subtle);display:flex;flex-direction:column;align-items:stretch;gap:var(--space-12);width:100%;min-height:44px;padding:var(--space-16);border:0;border-radius:0;background:transparent;color:var(--ink);text-align:left}
.profile-trust-summary,.profile-trust-footer{display:flex;align-items:center;justify-content:space-between;gap:var(--space-12);width:100%}
.profile-trust-label{font:var(--heading-weight) var(--body-xs)/var(--body-leading) var(--font-heading)}
.profile-trust-score{font:var(--body-weight) var(--body-sm)/var(--body-leading) var(--font-body)}
.profile-trust-score{color:var(--profile-trust-text,var(--text-secondary));white-space:nowrap}
.profile-trust-note{font:var(--body-weight) var(--body-xs)/var(--body-leading) var(--font-body);color:var(--text-secondary);text-align:right}
.profile-trust-action{position:relative;min-height:32px;padding:0;border:0;border-radius:0;background:transparent;color:var(--link-color);font:var(--body-weight) var(--body-xs)/var(--body-leading) var(--font-body);text-decoration:none;cursor:pointer}
.profile-trust-action::after{content:"";position:absolute;left:0;right:0;bottom:3px;height:1px;background:currentColor}
.profile-trust-action:focus-visible{outline:2px solid var(--rose-strong);outline-offset:3px}
.profile-trust-track{display:block;width:100%;height:12px;border-radius:var(--radius-button-pill);background:var(--background-subtle-light);overflow:hidden}
.profile-trust-fill{display:block;height:100%;width:0;border-radius:inherit;background:var(--profile-trust-accent);transition:width var(--motion-default) var(--motion-ease),background var(--motion-default) var(--motion-ease)}
.profile-trust[data-band=attention]{--profile-trust-accent:var(--button-required-background);--profile-trust-text:var(--rose-strong)}
.profile-trust[data-band=building]{--profile-trust-accent:var(--rating-yellow);--profile-trust-text:#8a6510}
.profile-trust[data-band=good]{--profile-trust-accent:var(--color-teal-light);--profile-trust-text:var(--badge-connection-text)}
.profile-trust[data-band=excellent]{--profile-trust-accent:var(--badge-connection-text);--profile-trust-text:var(--badge-connection-text)}
.profile-trust[data-state=unavailable] .profile-trust-track{opacity:.45}
@media(max-width:420px){.profile-trust-footer{align-items:flex-start;flex-direction:column;gap:var(--space-4)}.profile-trust-note{text-align:left}}
.profile-trust-areas{margin-block:20px;max-height:42vh;overflow:auto}
.profile-trust-area{padding-block:12px;border-top:1px solid var(--border-subtle-color)}
.profile-trust-area-heading{display:flex;justify-content:space-between;gap:12px;font-size:14px}
.profile-trust-area-heading span{white-space:nowrap;color:var(--text-secondary)}
.profile-trust-area p{font-size:14px;line-height:1.5;margin:6px 0 0}
.profile-thought p{white-space:pre-wrap;overflow-wrap:anywhere}
.profile-thought-time{display:block;margin-top:12px;color:var(--muted,#716c72);font-size:.875rem}
.profile-thought-time[hidden]{display:none}
.profile-thought-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}
.profile-thought-meta .profile-thought-time{margin:0}
.profile-thought-history{display:flex;align-items:center;gap:4px;min-height:32px;padding:0;background:transparent;color:var(--text-secondary);font:inherit;font-size:.875rem}
.profile-thought-history[hidden]{display:none}
.thought-history-sheet{height:min(62dvh,560px)}
.thought-history-list{display:flex;flex-direction:column;gap:0;margin-top:4px;overflow:auto}
.thought-history-entry{padding:16px 0;border-top:1px solid var(--divider-subtle-color)}
.thought-history-entry:first-child{border-top:0}
.thought-history-entry p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:var(--body-sm);line-height:1.5}
.thought-history-entry time{display:block;margin-top:8px;color:var(--text-secondary);font-size:var(--body-xs)}

