@layer app {
.profile-page { background: var(--data-table-header); }
.profile-container { padding-inline: var(--site-content-gutter); }
.profile-hero { color: var(--text-on-dark-primary); background: var(--hero); }
.profile-hero .editorial-hero-inner { min-height: 240px; }
.profile-hero-copy { max-width: 690px; }
.profile-eyebrow { color: var(--lavender); font-size: var(--type-caption); font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.profile-hero h1 { margin: 0; font: 700 clamp(30px, 3.4vw, 42px)/1.12 "Golos Text", sans-serif; letter-spacing: -.025em; }
.profile-hero-copy > p:last-child { max-width: 560px; color: var(--status-neutral-border); font-size: var(--type-button); }
.profile-illustration { position: absolute; z-index: 1; top: 50%; right: var(--site-content-gutter); width: min(38vw, 460px); height: auto; transform: translateY(-50%); }
.profile-panel { min-width: 0; padding: var(--content-panel-padding); display: grid; grid-template-columns: minmax(250px, 2fr) minmax(0, 3fr); gap: var(--panel-stack-gap); align-items: center; border: 1px solid var(--data-border); border-radius: var(--data-radius); background: var(--data-surface); box-shadow: var(--data-shadow); }
.profile-panel-intro { min-width: 0; }
.profile-panel-intro h2 { display: flex; align-items: center; gap: 9px; margin: 0 0 8px; color: var(--ink); font: 650 22px/1.2 "Golos Text", sans-serif; letter-spacing: -.015em; }
.profile-heading-icon { width: 22px; height: 22px; flex: 0 0 22px; fill: none; stroke: var(--violet); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.profile-panel-intro > p { margin: 0; color: var(--text-secondary); font-size: var(--type-button); line-height: 1.5; }
.profile-note { margin-top: 14px; padding: 10px 0; display: flex; align-items: flex-start; gap: 9px; border-radius: var(--control-radius); color: var(--text-secondary); font-size: var(--type-data-label); }
body .profile-note + .profile-note { margin-top: 0; padding-top: 0; }
.profile-note svg { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: var(--violet); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.profile-note a { color: var(--brand-link); font-weight: 600; }
.profile-note a:hover { color: var(--violet); }
.profile-readonly-grid { min-width: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.profile-readonly-grid > div { min-width: 0; }
.profile-readonly-grid dt,.profile-field label,.profile-field-label { display: block; margin-bottom: 5px; color: var(--text-secondary); font-size: var(--type-field-label); line-height: 1.35; }
.profile-readonly-grid dd { min-width: 0; min-height: 38px; margin: 0; padding: 9px 11px; overflow-wrap: anywhere; border: 1px solid var(--data-border); border-radius: 7px; color: var(--surface-inverse-soft); background: var(--data-table-header); font-size: var(--type-button); }
.profile-form { min-width: 0; display: grid; gap: var(--form-stack-gap); }
.profile-contact-form { width: 100%; align-items: stretch; }
.profile-fields { min-width: 0; display: grid; row-gap: var(--form-stack-gap); column-gap: var(--gap-md); }
.profile-fields-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.profile-fields-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.profile-field { min-width: 0; display: flex; flex-direction: column; gap: var(--gap-xs); }
.profile-field label span { color: var(--status-error-strong); }
.profile-field input { width: 100%; min-width: 0; height: var(--control-height); padding: 0 11px; border: 1px solid var(--outline); border-radius: 7px; color: var(--ink); background: var(--surface-card); font: 16px/1.35 Roboto, Arial, sans-serif; }
.profile-field input[aria-invalid="true"] { border-color: var(--status-error-strong); }
.profile-field input:focus-visible { outline: none; border-color: var(--violet); box-shadow: 0 0 0 2px rgb(101 62 206 / 16%); }
.profile-submit { width: calc((100% - 12px) / 2); margin-left: 0; display: flex; font-size: var(--type-button); line-height: 1.3; white-space: normal; }
.profile-email { align-items: start; }
.profile-email-management { min-width: 0; }
.profile-current-email { min-width: 0; padding: 0 0 var(--form-stack-gap); display: flex; align-items: end; justify-content: space-between; gap: var(--gap-md); border-bottom: 1px solid var(--data-row-border); }
.profile-current-email strong { display: block; color: var(--ink); font-size: var(--type-lead); font-weight: 600; overflow-wrap: anywhere; }
.profile-active,.profile-current-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 6px; color: var(--status-success-text); background: var(--status-success-bg); font-size: var(--type-caption); white-space: nowrap; }
.profile-email-management form { padding-top: var(--form-stack-gap); }
.profile-form h3 { margin: 0; display: flex; align-items: center; gap: 7px; color: var(--ink); font: 600 16px/1.3 "Golos Text", sans-serif; }
.profile-password-control { position: relative; min-width: 0; }
.profile-email-submit { font-size: var(--type-compact-button); }
.profile-password-fields { min-width: 0; display: grid; gap: var(--gap-xs); }
.profile-help { margin: 0; color: var(--text-secondary); font-size: var(--type-caption); }
.profile-contact .profile-panel-intro,.profile-password .profile-panel-intro { align-self: start; }
.profile-sessions { display: block; }
.profile-sessions-heading { margin-bottom: 14px; display: flex; justify-content: space-between; align-items: flex-start; gap: var(--gap-xl); }
.profile-sessions-heading .profile-panel-intro { max-width: 580px; }
.profile-revoke-all { font-size: var(--type-data-label); }
.profile-session-table-wrap { min-width: 0; overflow-x: auto; }
.profile-session-table {  min-width: 800px;  table-layout: fixed;   }
.profile-session-table th,.profile-session-table td { text-align: left; vertical-align: middle; border-bottom: 1px solid var(--status-neutral-bg); }
.profile-session-table thead th {  background: var(--data-table-header);  }
.profile-session-table thead th:first-child { border-radius: 7px 0 0 7px; }
.profile-session-table thead th:last-child { border-radius: 0 7px 7px 0; }
.profile-session-table tbody tr:last-child > * { border-bottom: 0; }
.profile-session-table tbody th { font-weight: 500; }
.profile-session-table tbody th:first-child { width: 27%; }
.profile-session-device-heading { min-width: 0; display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.profile-session-table th:nth-child(2) { width: 19%; }
.profile-session-table th:nth-child(3) { width: 17%; }
.profile-session-table th:nth-child(4) { width: 18%; }
.profile-session-table th:nth-child(5) { width: 19%; }
.profile-device { display: inline-flex; align-items: center; gap: var(--gap-sm); flex: 0 0 auto; white-space: nowrap; }
.profile-device svg { width: 19px; height: 19px; flex: 0 0 19px; fill: none; stroke: var(--status-neutral-text); stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.profile-current-badge { flex: 0 0 auto; padding: 4px 7px; }
.profile-session-table code { color: var(--surface-inverse-soft); font: var(--type-meta)/1.4 Roboto, Arial, sans-serif; white-space: nowrap; }
body .profile-session-action { text-align: right; }
.profile-revoke { min-height: 34px; padding-inline: var(--gap-md); border-radius: 7px; font-size: var(--type-caption); }
.profile-privacy { align-items: start; }
.profile-privacy-list { margin: 0; padding: 0; display: grid; gap: var(--gap-sm); list-style: none; }
.profile-privacy-list li { display: flex; align-items: flex-start; gap: 9px; color: var(--text-secondary); font-size: var(--type-data-label); line-height: 1.45; }
.profile-privacy-list svg { width: 20px; height: 20px; flex: 0 0 20px; fill: none; stroke: var(--violet); stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.profile-requisites-note { margin: 12px 0 0; color: var(--text-secondary); font-size: var(--type-meta); }
.profile-requisites-link { padding: 0; border: 0; color: var(--brand-link); background: transparent; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.profile-requisites-link:hover, .profile-requisites-link:focus-visible { color: var(--brand-primary); }
.profile-pending-email { margin-top: 14px; padding: 12px 14px; display: grid; gap: var(--gap-sm); border: 1px solid var(--status-warning-border); border-radius: var(--control-radius); background: var(--status-warning-bg); }
.profile-pending-email strong { color: var(--text-primary); font-size: var(--type-data-value); overflow-wrap: anywhere; }
.profile-pending-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap-md); }
.profile-resend { min-height: var(--button-height-compact); font-size: var(--type-compact-button); }
.profile-resend-note { color: var(--text-secondary); font-size: var(--type-meta); font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .profile-hero .editorial-hero-inner { min-height: 0; }
  .profile-hero-copy { padding-block: 27px 110px; }
  .profile-illustration { top: auto; right: var(--site-content-gutter); bottom: 7px; width: min(40vw, 340px); transform: none; }
  .profile-panel { grid-template-columns: minmax(220px, 2fr) minmax(0, 3fr); }
  .profile-fields-three { grid-template-columns: 1fr; }
  .profile-password .profile-fields-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-password .profile-field:first-child { grid-column: 1 / -1; }
  .profile-revoke { min-width: 120px; }
}
@media (max-width: 620px) {
  .profile-hero-copy { padding-block: 24px 106px; }
  .profile-hero h1 { font-size: clamp(28px, 8vw, 35px); }
  .profile-hero-copy > p:last-child { max-width: 340px; font-size: var(--type-button); }
  .profile-illustration { width: min(54vw, 260px); }
  .profile-content { gap: var(--content-block-gap); padding-top: calc(var(--content-after-hero-gap) * 2); }
  .profile-panel { grid-template-columns: minmax(0, 1fr); }
  .profile-panel-intro h2 { font-size: var(--type-section-heading); }
  body .profile-note { margin-top: 10px; }
  .profile-fields-three,.profile-password .profile-fields-three { grid-template-columns: minmax(0, 1fr); }
  .profile-password .profile-field:first-child { grid-column: auto; }
  .profile-submit { width: 100%; }
  .profile-sessions-heading { flex-direction: column; gap: var(--gap-md); }
  .profile-revoke-all { width: 100%; }
  .profile-privacy { gap: 10px; }
}
@media (max-width: 360px) {
  .profile-readonly-grid,.profile-fields-two { grid-template-columns: minmax(0, 1fr); }
  .profile-current-email { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 1100px) {
  .profile-session-table { table-layout: auto; }
}
@media (min-width: 768px) and (max-width: 900px) {
  .profile-readonly-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 414px) {
  .profile-readonly-grid, .profile-fields, .profile-fields-two { grid-template-columns: minmax(0, 1fr); }
}
}
