:root {
  --identity-rule: color-mix(in srgb, var(--ink-700) 22%, transparent);
  --identity-soft: color-mix(in srgb, var(--accent-500) 7%, var(--paper));
}

/* Dentro do chrome logado o braço herda o material canônico do workspace;
   as declarações em :root permanecem só para as folhas servidas ao público. */
.workspace-chrome.identity-shell {
  --identity-rule: var(--workspace-rule);
  --identity-soft: var(--workspace-accent-soft);
  --form-error-color: var(--workspace-danger);
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.identity-main { width: min(100%, 78rem); box-sizing: border-box; margin-inline: auto; padding-top: var(--workspace-section-space, clamp(2rem, 5vw, 4.5rem)); padding-right: calc(1rem + env(safe-area-inset-right, 0px)); padding-bottom: calc(var(--workspace-section-space, clamp(2rem, 5vw, 4.5rem)) + env(safe-area-inset-bottom, 0px)); padding-left: calc(1rem + env(safe-area-inset-left, 0px)); }
.identity-main--reading { max-width: var(--workspace-reading-width, 60rem); }
.identity-page-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 2rem; margin-bottom: var(--workspace-section-space, clamp(2rem, 5vw, 3.5rem)); }
.identity-page-header h1 { max-width: 20ch; font-size: clamp(2rem, 4vw, 3.5rem); }
.identity-page-header p:not(.identity-eyebrow) { max-width: 62ch; margin: .8rem 0 0; color: var(--ink-700); line-height: 1.7; }
.identity-page-header__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .6rem; }
.identity-eyebrow { margin: 0 0 .65rem; color: var(--accent-700); font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.identity-statline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 3rem; border-block: 1px solid var(--identity-rule); }
.identity-statline > div { padding: 1rem 1.25rem 1rem 0; }
.identity-statline > div + div { border-left: 1px solid var(--identity-rule); padding-left: 1.25rem; }
.identity-statline dt { color: var(--ink-500); font-size: .7rem; }
.identity-statline dd { margin: .35rem 0 0; font-family: var(--font-display); font-size: 1.9rem; line-height: 1; }

.identity-columns { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(16rem, .65fr); gap: var(--workspace-section-space, clamp(2rem, 5vw, 4rem)); }
.identity-section { border-top: 1px solid var(--ink-900); padding-block: 1.25rem 2.5rem; }
.identity-section + .identity-section { margin-top: 1rem; }
.identity-section__header { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.identity-section h2 { font-size: 1.35rem; }
.identity-section__header a { font-size: .75rem; }

.identity-rows { margin: 0; padding: 0; list-style: none; }
.identity-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 1.25rem; border-bottom: 1px solid var(--identity-rule); padding-block: 1rem; }
.identity-row:first-child { border-top: 1px solid var(--identity-rule); }
.identity-row h2,
.identity-row h3 { margin: 0; font-family: var(--font-display); font-size: 1.08rem; }
.identity-row p { max-width: 64ch; margin: .4rem 0 0; color: var(--ink-700); font-size: .84rem; line-height: 1.65; }
.identity-row small { display: block; margin-bottom: .4rem; color: var(--ink-500); font-size: .7rem; }
.identity-row__actions { display: flex; flex-wrap: wrap; justify-content: end; gap: .45rem; }
.identity-row--unread h2,
.identity-row--unread h3 { color: var(--accent-700); }
.identity-recommendation { scroll-margin-top: 5rem; }
.identity-recommendation:target { background: var(--identity-soft); box-shadow: 0 0 0 .75rem var(--identity-soft); }
.identity-recommendation > article { min-width: 0; }
.identity-recommendation__header { display: flex; min-width: 0; align-items: flex-start; gap: .9rem; }
.identity-recommendation__header > div { min-width: 0; }
.identity-recommendation__header p { overflow-wrap: anywhere; }
.identity-recommendation__body { max-width: 68ch; margin: 1rem 0 0; border-left: 2px solid var(--accent-700); padding-left: 1rem; }
.identity-recommendation__body p { margin: 0; color: var(--ink-900); font-family: var(--font-display); font-size: 1rem; line-height: 1.7; overflow-wrap: anywhere; }
.identity-recommendation__decision { display: flex; flex-wrap: wrap; gap: .25rem; align-items: baseline; }

.identity-filters { display: flex; flex-wrap: wrap; align-items: end; gap: .8rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--identity-rule); padding-bottom: 1rem; }

.identity-filters .form-field { min-width: 9rem; }
.identity-filters .form-field:has(input[type="search"]) { min-width: min(100%, 22rem); flex: 1; }

.identity-results-summary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .35rem 1rem; margin-bottom: 1.25rem; color: var(--ink-500); font-size: .78rem; }
.identity-results-summary p { margin: 0; }
.identity-results-summary strong { color: var(--ink-900); }

.identity-pagination { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; color: var(--ink-500); font-size: .75rem; }
.identity-pagination div { display: flex; gap: .5rem; }

.identity-form { display: grid; gap: 1.5rem; }
.identity-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.identity-form__wide { grid-column: 1 / -1; }
.identity-form__footer { position: sticky; z-index: 8; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; border-top: 1px solid var(--ink-900); background: color-mix(in srgb, var(--bone) 94%, transparent); padding-top: 1rem; padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); backdrop-filter: blur(16px); }
.identity-form__footer > p { max-width: 45ch; margin: 0; color: var(--ink-500); font-size: .75rem; line-height: 1.5; }
.identity-form__footer > div { display: flex; gap: .6rem; }
.identity-errors { margin-bottom: 2rem; border: 1px solid color-mix(in srgb, var(--workspace-danger, var(--danger)) 32%, var(--identity-rule)); border-left: 4px solid var(--workspace-danger, var(--danger)); background: color-mix(in srgb, var(--workspace-danger, var(--danger)) 8%, var(--paper)); padding: 1rem 1.15rem; color: var(--workspace-danger, var(--danger)); font-size: .82rem; }
.identity-errors h2 { color: var(--ink-900); font-size: 1.15rem; }
.identity-errors h3 { margin: 0; color: var(--ink-900); font-family: var(--font-display); font-size: 1.05rem; }
.identity-errors ul { margin: .65rem 0 0; padding-left: 1.15rem; line-height: 1.6; }

.identity-main--account { width: min(100%, 76rem); }
.identity-page-header--account { align-items: start; }
.identity-page-header--account h1 { max-width: 14ch; font-size: clamp(2.2rem, 3.8vw, 3.35rem); }
.account-ledger { display: grid; grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); margin-bottom: clamp(2rem, 4vw, 3rem); border-block: 1px solid var(--ink-900); }
.account-ledger > div { min-width: 0; padding: 1rem 1.2rem 1rem 0; }
.account-ledger > div + div { border-left: 1px solid var(--identity-rule); padding-left: 1.2rem; }
.account-ledger > div > span:not(.workspace-status) { display: block; color: var(--ink-500); font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; }
.account-ledger strong { display: block; overflow: hidden; margin-top: .4rem; font-family: var(--font-display); font-size: .95rem; text-overflow: ellipsis; white-space: nowrap; }
.account-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, .34fr); align-items: start; gap: clamp(2.5rem, 7vw, 6rem); }
.account-layout__primary { min-width: 0; }
.account-section { padding-bottom: clamp(3.5rem, 7vw, 5.5rem); }
.account-section + .account-section { margin-top: 0; }
.account-section__header { display: flex; align-items: start; justify-content: space-between; gap: 1.5rem; margin-bottom: .8rem; }
.account-section__header h2 { max-width: 21ch; font-size: clamp(1.65rem, 3vw, 2.3rem); line-height: 1.1; }
.account-section__lead { max-width: 66ch; margin: 0 0 1.5rem; color: var(--ink-700); font-size: .86rem; line-height: 1.65; }

.account-action-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 1rem 1.5rem; }
.account-action-row--password-only { grid-template-columns: minmax(0, 42rem); }
.account-inline-form { grid-template-columns: minmax(14rem, 1fr) auto; align-items: end; gap: .75rem; }
.account-inline-form .account-recovery-help { grid-column: 1 / -1; }
.account-recovery-help a { color: var(--accent-700); font-weight: 750; }
.account-provider-action { display: flex; align-items: center; gap: .75rem; padding-bottom: .05rem; }
.account-provider-action > span { color: var(--ink-500); font-size: .68rem; }
.account-password-form { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.account-form-action { grid-column: 1 / -1; display: flex; align-items: center; gap: 1rem; }
.account-form-action > a { color: var(--accent-700); font-size: .74rem; }
.account-operation { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1.5rem; border-block: 1px solid var(--identity-rule); padding-block: 1.2rem; }
.account-operation + .account-operation { border-top: 0; }
.account-operation strong { font-family: var(--font-display); font-size: 1rem; }
.account-operation p { max-width: 62ch; margin: .35rem 0 0; color: var(--ink-500); font-size: .76rem; line-height: 1.55; }
.account-operation__form { margin: 0; }
.account-legal-list { margin-bottom: 1.5rem; border-top: 1px solid var(--identity-rule); }
.account-legal-list article { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1rem; border-bottom: 1px solid var(--identity-rule); padding-block: 1rem; }
.account-legal-list h3 { margin: 0; font-family: var(--font-display); font-size: 1rem; }
.account-legal-list h3 a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.account-legal-list p { margin: .25rem 0 0; color: var(--ink-500); font-size: .7rem; }
.account-legal-form { margin: 0 0 1.5rem; border-left: 2px solid var(--accent-700); padding-left: 1rem; }
.account-legal-form fieldset { display: grid; gap: .75rem; margin: 0; border: 0; padding: 0; }
.account-legal-form legend { margin-bottom: .8rem; color: var(--ink-900); font-family: var(--font-display); font-size: 1rem; font-weight: 700; }
.account-legal-form label { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: .65rem; color: var(--ink-700); font-size: .76rem; line-height: 1.55; }
.account-legal-form input { width: 1rem; height: 1rem; margin-top: .15rem; accent-color: var(--accent-700); }
.account-legal-form .workspace-button { width: fit-content; margin-top: .35rem; }
.account-layout__rail { min-width: 0; position: sticky; top: 6rem; }
.account-rail-section { padding-bottom: 2.5rem; }
.account-rail-section + .account-rail-section { margin-top: 1rem; }
.account-rail-section h2 { font-size: 1.25rem; }
.account-rail-section > p:not(.identity-eyebrow) { margin: .75rem 0 0; color: var(--ink-700); font-size: .8rem; line-height: 1.65; }
.account-rail-section > a { min-height: 2.75rem; display: inline-flex; align-items: center; color: var(--accent-700); font-size: .75rem; font-weight: 750; }
.account-methods { display: grid; margin: 1rem 0 0; }
.account-methods > div { border-bottom: 1px solid var(--identity-rule); padding-block: .8rem; }
.account-methods dt { color: var(--ink-500); font-size: .68rem; }
.account-methods dd { overflow-wrap: anywhere; margin: .3rem 0 0; font-size: .78rem; line-height: 1.45; }
.account-methods small { color: var(--ink-500); font-size: .66rem; }
.account-danger { display: grid; grid-template-columns: minmax(0, 1fr) minmax(18rem, .72fr); align-items: start; gap: clamp(2rem, 6vw, 5rem); margin-top: clamp(2rem, 5vw, 4rem); border-block: 1px solid var(--workspace-danger, var(--danger)); padding-block: clamp(1.5rem, 4vw, 2.5rem); }
.account-danger h2 { color: var(--workspace-danger, var(--danger)); font-size: clamp(1.7rem, 3vw, 2.45rem); }
.account-danger > div > p:last-child { max-width: 66ch; margin: .7rem 0 0; color: var(--ink-700); font-size: .82rem; line-height: 1.65; }
.account-danger__blocked { margin: 0; border-left: 2px solid var(--workspace-danger, var(--danger)); color: var(--ink-700); padding-left: .9rem; font-size: .78rem; line-height: 1.6; }
.account-danger__confirmation { min-width: 0; }
.account-deletion-form { gap: 1rem; }
.account-deletion-form .workspace-button { width: 100%; }

.identity-main--profile-editor { width: min(100%, 76rem); }
.identity-page-header--editor { align-items: start; }
.identity-page-header--editor h1 { max-width: 20ch; font-size: clamp(2.2rem, 3.8vw, 3.35rem); }
.identity-page-header--editor > div > p:last-child { max-width: 58ch; font-size: .92rem; }

.identity-profile-editor { grid-template-columns: minmax(9rem, 11rem) minmax(0, 1fr); align-items: start; gap: clamp(2rem, 5vw, 4.5rem); }
.identity-profile-editor__index { position: sticky; top: 6rem; border-top: 2px solid var(--ink-900); padding-top: 1rem; }
.identity-profile-editor__index > p:first-child { margin: 0 0 .85rem; color: var(--ink-900); font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; }
.identity-profile-editor__index ol { margin: 0; padding: 0; list-style: none; }
.identity-profile-editor__index li { border-top: 1px solid var(--identity-rule); }
.identity-profile-editor__index li:last-child { border-bottom: 1px solid var(--identity-rule); }
.identity-profile-editor__index a { min-height: 2.75rem; display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); align-items: center; gap: .35rem; color: var(--ink-500); font-size: .7rem; font-variant-numeric: tabular-nums; text-decoration: none; transition: color var(--motion-fast) ease, padding var(--motion-fast) ease; }
.identity-profile-editor__index a span { color: var(--ink-700); font-size: .78rem; }
.identity-profile-editor__index a:hover { color: var(--accent-700); padding-left: .25rem; }
.identity-profile-editor__privacy { margin: 1rem 0 0; border-left: 2px solid var(--accent-700); color: var(--ink-500); padding-left: .65rem; font-size: .7rem; line-height: 1.5; }
.identity-profile-editor__content { min-width: 0; }

.identity-form-section { scroll-margin-top: 6rem; border-top: 1px solid var(--ink-900); padding-block: 1.5rem clamp(3rem, 7vw, 5rem); }
.identity-form-section__header { display: grid; grid-template-columns: minmax(6rem, .28fr) minmax(0, 1fr); gap: clamp(1rem, 4vw, 3rem); margin-bottom: 1.75rem; }
.identity-form-section__header > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: .65rem; color: var(--accent-700); font-size: .7rem; font-variant-numeric: tabular-nums; }
.identity-form-section__header > div:first-child p { margin: 0; color: var(--ink-500); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.identity-form-section__header h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); line-height: 1.05; }
.identity-form-section__header > div:last-child > p { max-width: 58ch; margin: .7rem 0 0; color: var(--ink-500); font-size: .84rem; line-height: 1.65; }
.identity-form__grid--compact { margin-top: 1.25rem; }
.identity-field--editorial textarea { min-height: 12rem; font-family: var(--font-display); font-size: 1.08rem; line-height: 1.7; }
.identity-field__prefix { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; }
.identity-field__prefix > span { padding-inline: .4rem .8rem; color: var(--ink-500); font-size: .78rem; }

.identity-form-disclosure { margin-top: 1.5rem; border-block: 1px solid var(--identity-rule); }
.identity-form-disclosure summary { min-height: 3.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--ink-900); font-family: var(--font-display); font-size: 1rem; font-weight: 700; cursor: pointer; }
.identity-form-disclosure summary span { color: var(--ink-500); font-family: var(--font-sans); font-size: .7rem; font-weight: 450; }
.identity-form-disclosure[open] summary { border-bottom: 1px solid var(--identity-rule); }
.identity-form-disclosure > .identity-form__grid { padding-block: 1.25rem; }

.identity-repeater { display: grid; gap: .9rem; margin: 0; border: 0; border-top: 1px solid var(--identity-rule); padding: 1.25rem 0 2rem; }
.identity-repeater + .identity-repeater { margin-top: 1rem; }
.identity-repeater > legend { width: 100%; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; color: var(--ink-900); font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; }
.identity-repeater > legend small { color: var(--ink-500); font-family: var(--font-sans); font-size: .7rem; font-variant-numeric: tabular-nums; font-weight: 500; }
.identity-repeater__help { max-width: 62ch; margin: -.35rem 0 0; color: var(--ink-500); font-size: .75rem; line-height: 1.55; }
.identity-repeater__list { display: grid; }
.identity-repeater__row { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1rem; border-top: 1px solid var(--identity-rule); padding: 1rem 12rem 1rem 0; }
.identity-repeater__row:last-child { border-bottom: 1px solid var(--identity-rule); }
.identity-repeater__row--single { grid-template-columns: minmax(0, 1fr); }
.identity-repeater__row--link { grid-template-columns: minmax(10rem, .7fr) minmax(0, 1.3fr); }
.identity-repeater__wide { grid-column: 1 / -1; }
.identity-repeater__row textarea { min-height: 6rem; }
.identity-repeater__actions { position: absolute; top: 1rem; right: 0; display: flex; align-items: center; gap: .15rem; }
.identity-repeater__actions button { min-width: 2.75rem; }

.identity-repeater__add { width: fit-content; margin-top: .15rem; }

.identity-asset-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--identity-rule); }
.identity-asset-group { min-width: 0; margin: 0; border: 0; padding: 1.1rem; }
.identity-asset-group + .identity-asset-group { border-left: 1px solid var(--identity-rule); }
.identity-asset-group legend { padding: 0; color: var(--ink-900); font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; }
.identity-asset-group ul { display: grid; gap: .45rem; margin: .8rem 0 0; padding: 0; list-style: none; }
.identity-asset-group li { position: relative; }
.identity-asset-group input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.identity-asset-group label { min-height: 3rem; display: grid; align-content: center; gap: .15rem; border-left: 2px solid var(--identity-rule); padding: .45rem .65rem; color: var(--ink-700); cursor: pointer; transition: border-color var(--motion-fast) ease, background var(--motion-fast) ease; }
.identity-asset-group label strong { overflow: hidden; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.identity-asset-group label span { color: var(--ink-500); font-size: .68rem; text-transform: capitalize; }
.identity-asset-group input:checked + label { border-left-color: var(--accent-700); background: var(--identity-soft); color: var(--accent-700); }
.identity-asset-group input:focus-visible + label { outline: 3px solid var(--workspace-focus, var(--focus-ring)); outline-offset: 2px; }
.identity-asset-group > p { color: var(--ink-500); font-size: .75rem; line-height: 1.55; }

.identity-profile-media-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 1rem; margin-top: 1.25rem; }
.identity-profile-media { min-width: 0; display: grid; grid-template-rows: auto 1fr; overflow: hidden; border: 1px solid var(--identity-rule); border-radius: var(--workspace-radius-surface, .5rem); background: var(--paper); }
.identity-profile-media__preview { min-height: 10rem; display: grid; place-items: center; overflow: hidden; background: var(--identity-soft); color: var(--accent-700); font-family: var(--font-display); font-size: 1rem; }
.identity-profile-media--photo .identity-profile-media__preview { width: 8rem; min-height: 8rem; margin: 1rem auto 0; border-radius: 50%; }
.identity-profile-media__preview img { width: 100%; height: 100%; object-fit: cover; }
.identity-profile-media--banner .identity-profile-media__preview { aspect-ratio: 16 / 5.2; min-height: 0; }
.identity-profile-media__body { display: flex; flex-direction: column; align-items: flex-start; gap: .65rem; padding: 1rem; }
.identity-profile-media__body h3 { margin: 0; font-family: var(--font-display); font-size: 1rem; }
.identity-profile-media__body > p { margin: 0; color: var(--ink-500); font-size: .72rem; line-height: 1.55; }
.identity-profile-media__input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; }

.identity-profile-media__progress { width: 100%; height: .45rem; accent-color: var(--accent-700); }

.identity-profile-media__actions { display: flex; flex-wrap: wrap; gap: .5rem; }

.identity-avatar { width: 2.75rem; height: 2.75rem; flex: none; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: var(--identity-soft); color: var(--accent-700); font-family: var(--font-display); }
.identity-avatar img { width: 100%; height: 100%; object-fit: cover; }
.identity-person { display: flex; align-items: flex-start; gap: .9rem; }

.identity-profile-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--identity-rule); background: var(--paper); }
.identity-profile-hero__banner { height: clamp(12rem, 29vw, 23rem); background: linear-gradient(125deg, color-mix(in srgb, var(--accent-700) 14%, var(--paper)), var(--identity-soft) 54%, var(--paper)); }
.identity-profile-hero__banner img { width: 100%; height: 100%; object-fit: cover; }
.identity-profile-hero__body { width: min(100%, 80rem); box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr) minmax(14rem, auto); align-items: end; gap: clamp(1.5rem, 5vw, 4rem); margin: -3rem auto 0; padding-right: calc(1rem + env(safe-area-inset-right, 0px)); padding-bottom: clamp(2rem, 4vw, 3.5rem); padding-left: calc(1rem + env(safe-area-inset-left, 0px)); position: relative; }
.identity-profile-hero--without-banner .identity-profile-hero__banner { height: clamp(.5rem, 1vw, .85rem); }
.identity-profile-hero--without-banner .identity-profile-hero__body { margin-top: 0; padding-top: clamp(2.5rem, 6vw, 5rem); }
.identity-profile-hero__identity { display: flex; align-items: end; gap: 1.25rem; }
.identity-profile-hero__identity .identity-avatar { width: clamp(5.5rem, 9vw, 7.5rem); height: clamp(5.5rem, 9vw, 7.5rem); border: .4rem solid var(--paper); box-shadow: 0 .8rem 2.5rem color-mix(in srgb, var(--shadow-color) 14%, transparent); font-size: 2rem; }
.identity-profile-hero h1 { max-width: 18ch; font-size: clamp(2.5rem, 5.7vw, 5rem); }
.identity-profile-hero__identity p { margin: .4rem 0 0; color: var(--ink-700); }
.identity-profile-content { width: min(100%, 80rem); box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(15rem, .45fr); gap: clamp(2.5rem, 7vw, 6.5rem); margin-inline: auto; padding-top: clamp(3rem, 7vw, 6rem); padding-right: calc(1rem + env(safe-area-inset-right, 0px)); padding-bottom: clamp(3rem, 7vw, 6rem); padding-left: calc(1rem + env(safe-area-inset-left, 0px)); }
.identity-profile-copy { color: var(--ink-700); line-height: 1.8; white-space: pre-line; }
.identity-profile-meta { display: grid; gap: .8rem; margin: 0; }
.identity-profile-meta div { border-bottom: 1px solid var(--identity-rule); padding-bottom: .8rem; }
.identity-profile-meta dt { color: var(--ink-500); font-size: .7rem; }
.identity-profile-meta dd { margin: .25rem 0 0; }
.identity-taglist { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.identity-taglist li { border: 1px solid var(--identity-rule); border-radius: 99rem; padding: .28rem .58rem; color: var(--ink-700); font-size: .72rem; }

.identity-profile-hero__copy { min-width: 0; padding-bottom: .2rem; }
.identity-profile-hero__claim { max-width: 50ch; font-size: clamp(.95rem, 1.8vw, 1.18rem); line-height: 1.55; text-wrap: pretty; }
.identity-profile-hero__affiliation { color: var(--ink-500) !important; font-size: .78rem; }
.identity-profile-actions { max-width: 25rem; align-items: stretch; }
.identity-profile-actions form { display: flex; }
.identity-profile-actions .workspace-button { min-width: 7rem; }

.identity-profile-dossier { min-width: 0; }
.identity-profile-dossier > .identity-section { padding-block: 1.5rem clamp(3.5rem, 8vw, 6.5rem); }
.identity-profile-dossier > .identity-section > h2 { max-width: 24ch; font-size: clamp(1.65rem, 3.5vw, 2.65rem); line-height: 1.06; letter-spacing: -.025em; }
.identity-profile-about .identity-profile-copy { max-width: 68ch; margin-top: 1.3rem; font-family: var(--font-display); font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.72; }
.identity-profile-about .identity-taglist { margin-top: 1.5rem; }
.identity-profile-about .identity-taglist li { border-radius: .25rem; padding: .38rem .65rem; font-size: .75rem; }

.identity-profile-organization { display: grid; grid-template-columns: minmax(10rem, .45fr) minmax(0, 1fr); gap: .4rem clamp(1.5rem, 5vw, 4rem); }
.identity-profile-organization > .identity-eyebrow { grid-column: 1 / -1; }
.identity-profile-organization h2 { grid-row: 2 / span 3; }
.identity-profile-organization .identity-profile-copy { margin: 0; }
.identity-profile-organization__location { margin: .4rem 0 0; color: var(--ink-500); font-size: .78rem; }
.identity-profile-link { width: fit-content; min-height: 2.75rem; display: inline-flex; align-items: center; border-bottom: 1px solid var(--accent-700); color: var(--accent-700); font-size: .78rem; font-weight: 750; text-decoration: none; }

.identity-profile-declared-proof__notice { max-width: 58ch; margin: 1rem 0 0; border-left: 2px solid var(--accent-700); color: var(--ink-500); padding-left: .8rem; font-size: .75rem; line-height: 1.55; }
.identity-profile-metrics { margin: 2rem 0 0; }
.identity-profile-metrics dd { font-size: clamp(1.8rem, 4vw, 2.7rem); }
.identity-profile-metrics small { display: block; margin-top: .45rem; color: var(--ink-500); font-size: .68rem; line-height: 1.4; }
.identity-profile-proof-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; margin: 1.5rem 0 0; border-top: 1px solid var(--identity-rule); padding: 0; list-style: none; }
.identity-profile-proof-points li { position: relative; border-bottom: 1px solid var(--identity-rule); padding: 1rem 0 1rem 1.5rem; color: var(--ink-700); font-size: .86rem; line-height: 1.6; }
.identity-profile-proof-points li::before { position: absolute; top: 1.1rem; left: 0; color: var(--accent-700); content: "—"; }

.identity-profile-verified-proof { background: linear-gradient(135deg, var(--identity-soft), color-mix(in srgb, var(--paper) 85%, var(--identity-soft))); margin-inline: clamp(-1rem, -2vw, -1.5rem); padding-inline: clamp(1rem, 2vw, 1.5rem); }
.identity-profile-validations,
.identity-profile-recommendations { margin-top: 2rem; }
.identity-profile-validations h3,
.identity-profile-recommendations h3,
.identity-profile-work__group > h3 { margin: 0 0 .8rem; color: var(--ink-900); font-family: var(--font-sans); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.identity-profile-validations ol { margin: 0; border-top: 1px solid var(--identity-rule); padding: 0; list-style: none; }
.identity-profile-validations li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1rem; border-bottom: 1px solid var(--identity-rule); padding-block: .9rem; }
.identity-profile-validations strong { display: block; font-family: var(--font-display); font-size: 1.02rem; }
.identity-profile-validations small { display: block; margin-top: .25rem; color: var(--ink-500); font-size: .7rem; }
.identity-profile-validations a { min-height: 2.75rem; display: inline-flex; align-items: center; font-size: .75rem; font-weight: 750; }
.identity-profile-recommendations__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-block: 1px solid var(--identity-rule); }
.identity-profile-recommendations figure { margin: 0; padding: 1.25rem; }
.identity-profile-recommendations figure + figure { border-left: 1px solid var(--identity-rule); }
.identity-profile-recommendations blockquote { margin: 0; font-family: var(--font-display); font-size: 1rem; line-height: 1.65; }
.identity-profile-recommendations blockquote p { margin: 0; }
.identity-profile-recommendations figcaption { display: grid; gap: .15rem; margin-top: 1rem; color: var(--ink-500); font-size: .7rem; }
.identity-profile-recommendations figcaption strong { color: var(--ink-900); }

.identity-profile-timeline { margin: 2rem 0 0; border-top: 1px solid var(--identity-rule); padding: 0; list-style: none; }
.identity-profile-timeline > li { position: relative; display: grid; grid-template-columns: minmax(0, .42fr) minmax(0, 1fr); gap: .5rem clamp(1.5rem, 5vw, 4rem); border-bottom: 1px solid var(--identity-rule); padding-block: 1.25rem; }
.identity-profile-timeline__heading { grid-row: 1 / span 2; }
.identity-profile-timeline__heading h3 { margin: 0; font-family: var(--font-display); font-size: 1.12rem; line-height: 1.25; }
.identity-profile-timeline__heading span { display: block; margin-top: .35rem; color: var(--ink-500); font-size: .7rem; }
.identity-profile-timeline p { margin: 0; color: var(--ink-700); font-size: .82rem; line-height: 1.65; }
.identity-profile-timeline p + p { margin-top: .35rem; }

.identity-profile-work__group { margin-top: 2.25rem; }
.identity-profile-work__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 18.5rem)); gap: 1rem; }
.identity-profile-work__item { min-width: 0; display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--identity-rule); background: var(--paper); }
.identity-profile-work__media { aspect-ratio: 4 / 3; display: block; overflow: hidden; background: var(--identity-soft); color: inherit; text-decoration: none; }
.identity-profile-work__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--motion-deliberate) var(--ease-standard); }
.identity-profile-work__item:hover .identity-profile-work__media img { transform: scale(1.025); }
.identity-profile-work__fallback { width: 100%; height: 100%; display: grid; place-items: end start; background: linear-gradient(145deg, color-mix(in srgb, var(--accent-700) 18%, var(--paper)), var(--identity-soft)); color: var(--accent-700); padding: 1rem; font-family: var(--font-display); font-size: clamp(1.15rem, 2.5vw, 1.7rem); }
.identity-profile-work__body { min-width: 0; padding: 1rem; }
.identity-profile-work__body .identity-eyebrow { margin-bottom: .45rem; font-size: .62rem; }
.identity-profile-work__body h3 { margin: 0; font-family: var(--font-display); font-size: 1.08rem; line-height: 1.25; }
.identity-profile-work__body h3 a { color: var(--ink-900); text-decoration: none; }
.identity-profile-work__body > p:last-child { display: -webkit-box; overflow: hidden; margin: .55rem 0 0; color: var(--ink-500); font-size: .75rem; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }

.identity-profile-rail { min-width: 0; }
.identity-profile-rail > .identity-section { padding-bottom: 2.25rem; }
.identity-profile-rail > .identity-section:first-child { position: sticky; top: 6rem; }
.identity-profile-rail h2 { font-size: 1.25rem; }
.identity-profile-links { margin: 1.25rem 0 0; border-top: 1px solid var(--identity-rule); padding: 0; list-style: none; }
.identity-profile-links li { border-bottom: 1px solid var(--identity-rule); }
.identity-profile-links a { min-height: 2.75rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--ink-700); font-size: .78rem; text-decoration: none; }
.identity-profile-links a::after { color: var(--accent-700); content: "↗"; }

.identity-tabs { display: flex; gap: 1rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--identity-rule); }
.identity-tabs a { min-height: var(--control-min-height, 2.75rem); box-sizing: border-box; display: inline-flex; align-items: center; border-bottom: 2px solid transparent; color: var(--ink-500); padding: .7rem .1rem; font-size: .78rem; text-decoration: none; }
.identity-tabs a[aria-current="page"] { border-color: var(--accent-700); color: var(--accent-700); font-weight: 750; }
.identity-tabs--scrollable { max-width: 100%; overflow-x: auto; scroll-padding-inline: .1rem; scroll-snap-type: x proximity; overscroll-behavior-inline: contain; scrollbar-width: thin; scrollbar-color: var(--identity-rule) transparent; -webkit-overflow-scrolling: touch; }
.identity-tabs--scrollable a { flex: 0 0 auto; scroll-snap-align: start; white-space: nowrap; }

.identity-search-groups { display: grid; gap: 2rem; }
.identity-search-group > header { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--ink-900); padding-bottom: .7rem; }
.identity-search-group > header h2 { font-size: 1.35rem; }
.identity-search-badges { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }

turbo-frame[busy] { opacity: .58; transition: opacity var(--workspace-motion-fast, var(--motion-fast)) var(--workspace-ease, ease); }

@media (max-width: 900px) {
  .identity-columns,
  .identity-profile-content { grid-template-columns: 1fr; }
  .identity-profile-content { gap: 1rem; }
  .identity-profile-rail > .identity-section:first-child { position: static; }
  .identity-profile-work__list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 18.5rem)); }
  .identity-profile-editor { grid-template-columns: 1fr; gap: 1rem; }
  .identity-profile-editor__index { position: static; overflow: visible; border-top-width: 1px; padding-top: .6rem; }
  .identity-profile-editor__index > p { display: none; }
  .identity-profile-editor__index ol { min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--identity-rule); }
  .identity-profile-editor__index li { min-width: 0; border: 0; border-top: 1px solid var(--identity-rule); }
  .identity-profile-editor__index li:not(:nth-child(3n + 1)) { border-left: 1px solid var(--identity-rule); }
  .identity-profile-editor__index li:last-child { border-bottom: 0; }
  .identity-profile-editor__index a { min-width: 0; grid-template-columns: 1.2rem minmax(0, 1fr); padding: .45rem .5rem; }
  .identity-profile-editor__index a span { overflow: hidden; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
  .identity-profile-editor__index a:hover { padding-left: .5rem; }
  .identity-asset-groups { grid-template-columns: 1fr; }
  .identity-asset-group + .identity-asset-group { border-left: 0; border-top: 1px solid var(--identity-rule); }
  .account-layout { grid-template-columns: 1fr; gap: 1rem; }
  .account-layout__rail { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
  .account-rail-section + .account-rail-section { margin-top: 0; }
}

@media (max-width: 640px) {
  .identity-main { width: 100%; padding-top: 1.5rem; padding-right: calc(1rem + env(safe-area-inset-right, 0px)); padding-left: calc(1rem + env(safe-area-inset-left, 0px)); }
  .identity-page-header,
  .identity-profile-hero__body { grid-template-columns: 1fr; align-items: start; }
  .identity-page-header { gap: .9rem; margin-bottom: 1.5rem; }
  .identity-page-header h1,
  .identity-page-header--account h1,
  .identity-page-header--editor h1 { max-width: 22ch; font-size: clamp(1.9rem, 9vw, 2.55rem); }
  .identity-page-header p:not(.identity-eyebrow) { margin-top: .55rem; font-size: .88rem; line-height: 1.55; }

.identity-page-header .workspace-button { width: 100%; }
  .identity-page-header__actions { width: 100%; display: grid; }
  .identity-statline { grid-template-columns: repeat(2, 1fr); margin-bottom: 2rem; }
  .identity-statline > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--identity-rule); }
  .identity-statline > div:nth-child(4) { border-top: 1px solid var(--identity-rule); }
  .identity-form__grid { grid-template-columns: 1fr; }
  .identity-profile-editor { gap: .75rem; }
  .identity-profile-editor__index a { grid-template-columns: 1fr; gap: .1rem; padding: .45rem .35rem; }
  .identity-profile-editor__index a:hover { padding-left: .35rem; }
  .identity-profile-editor__index a span { font-size: .68rem; }
  .identity-form-section { scroll-margin-top: 1rem; padding-bottom: 3rem; }
  .identity-form-section__header { grid-template-columns: 1fr; gap: .65rem; }
  .identity-form-section__header > div:first-child { justify-content: start; }
  .identity-form-section__header > div:first-child p { margin-left: .3rem; }
  .identity-form-disclosure summary { align-items: flex-start; flex-direction: column; justify-content: center; gap: .2rem; padding-block: .7rem; }
  .identity-repeater__row,
  .identity-repeater__row--link { grid-template-columns: 1fr; padding: 1rem 0 4rem; }
  .identity-repeater__actions { top: auto; right: auto; bottom: .55rem; left: 0; }
  .identity-repeater__add { width: 100%; }
  .identity-form__footer { position: static; align-items: stretch; flex-direction: column; }
  .identity-form__footer > div { display: grid; }
.identity-form__footer .workspace-button { width: 100%; }
  .identity-profile-media-grid { grid-template-columns: 1fr; }
  .identity-section { padding-block: 1.1rem 1.75rem; }
  .identity-section + .identity-section { margin-top: .5rem; }
  .identity-row { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .75rem; padding-block: .9rem; }
  .identity-row p { margin-top: .25rem; font-size: .8rem; line-height: 1.5; }
  .identity-row__actions { justify-content: end; }
.identity-row__actions .workspace-button { white-space: nowrap; }
  .identity-profile-hero__identity { align-items: flex-start; flex-direction: column; }
  .identity-profile-hero__body { margin-top: -2.5rem; }
  .identity-profile-hero--without-banner .identity-profile-hero__body { margin-top: 0; }
  .identity-profile-actions { width: 100%; max-width: none; }
.identity-profile-actions form,
  .identity-profile-actions .workspace-button { flex: 1 1 9rem; }
  .identity-profile-organization { grid-template-columns: 1fr; }
  .identity-profile-organization > .identity-eyebrow { grid-column: auto; }
  .identity-profile-organization h2 { grid-row: auto; }
  .identity-profile-proof-points,
  .identity-profile-recommendations__list,
  .identity-profile-work__list { grid-template-columns: 1fr; }
  .identity-profile-recommendations figure + figure { border-top: 1px solid var(--identity-rule); border-left: 0; }
  .identity-profile-timeline > li { grid-template-columns: 1fr; gap: .6rem; }
  .identity-profile-timeline__heading { grid-row: auto; }
  .identity-profile-validations li { grid-template-columns: 1fr; }
  .identity-profile-validations a { width: fit-content; }
  .identity-profile-work__media { aspect-ratio: 16 / 9; }
  .account-ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-ledger > div:nth-child(3) { border-top: 1px solid var(--identity-rule); border-left: 0; padding-left: 0; }
  .account-ledger > div:nth-child(4) { border-top: 1px solid var(--identity-rule); }
  .account-section__header { align-items: flex-start; flex-direction: column; gap: .55rem; }
  .account-action-row,
  .account-inline-form,
  .account-password-form,
  .account-operation,
  .account-legal-list article,
  .account-layout__rail,
  .account-danger { grid-template-columns: 1fr; }
  .account-provider-action { align-items: stretch; flex-direction: column; }
  .account-provider-action > span { text-align: center; }
  .account-form-action { align-items: stretch; flex-direction: column; }
.account-operation .workspace-button,
  .account-operation__form,
  .account-operation__form .workspace-button { width: 100%; }
  .account-legal-list article { align-items: start; }
  .account-danger { gap: 1.5rem; }
}

@media (max-width: 440px) {
  .identity-tabs--recommendations {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 .75rem;
    overflow: visible;
    scroll-snap-type: none;
  }
  .identity-tabs--recommendations a {
    min-width: 0;
    justify-content: center;
    text-align: center;
    white-space: normal;
  }
  .identity-row { grid-template-columns: 1fr; align-items: start; }
  .identity-row__actions { width: 100%; justify-content: start; }
.identity-row__actions .workspace-button { flex: 1 1 8rem; white-space: normal; }
  .identity-row__actions > form { flex: 1 1 8rem; margin: 0; }
.identity-row__actions > form .workspace-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  turbo-frame[busy] { transition: none; transform: none !important; }
}
