/* Profile page — extends dashboard shell */

:root {
  --prof-purple: var(--color-cosmos-accent);
  --prof-purple-soft: var(--dash-surface-hover);
  --prof-card-elevated: var(--dash-elevated);
  --prof-border: var(--color-border-secondary);
  --prof-text: var(--dash-text, #f4f4f5);
  --prof-danger: #ef4444;
  --prof-danger-soft: rgba(239, 68, 68, 0.12);
  --prof-right-w: 376px;
  --prof-avatar-bg: var(--dash-profile-avatar-bg);
  --prof-avatar-fg: var(--dash-profile-avatar-fg);
}

body.prof-page {
  --dash-purple: var(--prof-purple);
  --dash-purple-soft: var(--prof-purple-soft);
}

.prof-page .dash-pro__btn {
  background: var(--prof-purple);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.prof-page .dash-search input:focus {
  border-color: var(--dash-border-strong);
  box-shadow: 0 0 0 3px var(--dash-surface-hover);
}

.prof-content {
  padding: var(--dash-content-y, 32px) var(--dash-page-x, 32px);
  padding-left: calc(var(--dash-page-x, 32px) + var(--dash-mobile-nav-gutter, 0px));
  padding-bottom: calc(var(--dash-content-y, 32px) + var(--dash-content-pad-bottom, 0px));
  flex: 1;
  min-width: 0;
  container: prof-content / inline-size;
}

.prof-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, var(--prof-right-w));
  gap: 24px;
  align-items: start;
}

.prof-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
  container: prof-main / inline-size;
}

.prof-aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: static;
  top: 0;
  min-width: 0;
  margin-top: 0;
}

.prof-head {
  margin-bottom: 4px;
}

.prof-head__link {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--dash-text-muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color 150ms ease;
}

.prof-head__link:hover {
  color: var(--prof-purple);
}

.prof-title {
  margin: 0;
  font-family: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
  font-size: 40px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  color: var(--prof-text);
}

.prof-subtitle {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--dash-text-muted);
  line-height: 1.5;
  max-width: 560px;
}

/* Cards */
.prof-card {
  background: var(--dash-card);
  border: var(--dash-island-border);
  border-radius: var(--dash-radius-card, 20px);
  box-shadow: none;
  overflow: hidden;
  transition: background 150ms ease;
}

.prof-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 0;
}

.prof-card__title {
  margin: 0;
  padding: 20px 20px 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.25;
  color: var(--prof-text);
}

.prof-card__head .prof-card__title {
  padding: 0;
}

.prof-card__subtitle {
  margin: 6px 0 0;
  color: var(--dash-text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.prof-rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 20px;
}

.prof-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px;
  align-items: center;
  gap: 6px 12px;
  width: 100%;
  min-height: 76px;
  padding: 12px 14px;
  border: none;
  border-radius: 14px;
  background: var(--color-well);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 150ms ease;
}

.prof-row:hover {
  background: var(--color-well-hover);
}

.prof-row--readonly {
  grid-template-columns: minmax(0, 1fr);
  cursor: default;
}

.prof-row--readonly:hover {
  background: var(--color-well);
}

.prof-row[hidden],
.prof-card[hidden],
.prof-panel[hidden] {
  display: none;
}

.prof-row[data-profile-edit="avatarInitials"] {
  grid-column: 1 / -1;
  grid-template-columns: 80px minmax(0, 1fr) 16px;
  min-height: 104px;
  padding: 12px 0;
  background: transparent;
}

.prof-row[data-profile-edit="avatarInitials"]::after {
  grid-column: 2;
  content: "JPEG, PNG or WebP up to 10 MB, cropped to a square.";
  color: var(--dash-text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.prof-row[data-profile-edit="avatarInitials"] .prof-row__icon {
  display: none;
}

.prof-row[data-profile-edit="avatarInitials"] .prof-row__value--photo {
  grid-column: 1;
  grid-row: 1 / span 2;
  justify-content: flex-start;
}

.prof-row[data-profile-edit="avatarInitials"] .prof-row__avatar {
  width: 80px;
  height: 80px;
  font-size: 22px;
}

.prof-row[data-profile-edit="avatarInitials"] .prof-row__label {
  grid-column: 2;
}

.prof-row[data-profile-edit="avatarInitials"] .prof-row__chev {
  grid-column: 3;
  grid-row: 1 / span 2;
}

.prof-row:not([data-profile-edit="avatarInitials"]) .prof-row__icon {
  display: none;
}

.prof-row__label {
  font-size: 15px;
  font-weight: 500;
  color: var(--prof-text);
  min-width: 0;
}

.prof-row:not([data-profile-edit="avatarInitials"]) .prof-row__label {
  grid-column: 1 / -1;
  color: var(--dash-text-muted);
  font-size: 12px;
  font-weight: 500;
}

.prof-row__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--prof-purple-soft);
  color: var(--prof-purple);
  flex-shrink: 0;
}

.prof-row__value {
  font-size: 14px;
  color: var(--dash-text-muted);
  text-align: right;
  min-width: 0;
  max-width: 18rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prof-row:not([data-profile-edit="avatarInitials"]) .prof-row__value {
  grid-column: 1;
  grid-row: 2;
  max-width: none;
  color: var(--prof-text);
  text-align: left;
}

.prof-row:not([data-profile-edit="avatarInitials"]) .prof-row__chev {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.prof-row__value--photo {
  display: flex;
  justify-content: flex-end;
}

.prof-row__avatar {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 400 17px/1 'Instrument Serif', serif;
  color: var(--prof-avatar-fg);
  background: var(--prof-avatar-bg);
}

.prof-row__avatar::before,
.prof-panel__avatar::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: var(--dash-profile-avatar-ring);
  pointer-events: none;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

.prof-row__chev {
  color: var(--dash-text-muted);
  opacity: 0.6;
  flex-shrink: 0;
  justify-self: end;
}

/* Profile composition mirrors the Settings/Profile module in the design system. */
.prof-card--details {
  box-sizing: border-box;
  padding: 24px;
  overflow: visible;
}

.prof-card--details .prof-card__head {
  min-height: 32px;
  margin-bottom: 20px;
  padding: 0;
}

.prof-card--details .prof-card__title {
  padding: 0;
  font-size: 16px;
  line-height: 1.25;
}

.prof-photo {
  position: relative;
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
}

.prof-avatar-editor {
  position: relative;
  display: grid;
  width: 80px;
  height: 80px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.prof-avatar-editor .prof-row__avatar {
  width: 80px;
  height: 80px;
  font-size: 36px;
}

.prof-avatar-editor__camera {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgb(0 0 0 / 52%);
  color: #f0f0f2;
  opacity: 0;
  transition: opacity 150ms ease;
}

.prof-avatar-editor:hover .prof-avatar-editor__camera,
.prof-avatar-editor:focus-visible .prof-avatar-editor__camera { opacity: 1; }

.prof-avatar-editor:focus-visible {
  outline: 2px solid var(--dash-text-muted);
  outline-offset: 3px;
}

.prof-photo__input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.prof-photo__body p {
  margin: 0;
  color: var(--dash-text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.prof-photo__body .prof-btn { margin-top: 12px; }

.prof-details-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.prof-form-field {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  color: var(--prof-text);
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
}

.prof-form-field input {
  box-sizing: border-box;
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 0;
  border-radius: 14px;
  outline: none;
  background: var(--dash-inner-surface);
  color: var(--prof-text);
  font: 400 16px/1.2 Inter, sans-serif;
}

.prof-form-field input:hover { background: var(--color-well-hover); }
.prof-form-field input:focus-visible { box-shadow: 0 0 0 2px var(--dash-text-muted); }
.prof-form-field input[readonly] { color: var(--dash-text-muted); cursor: default; }

.prof-form-field small {
  color: var(--dash-text-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
}

.prof-details-form__foot {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-start;
  margin-top: 4px;
}

.prof-card--details .prof-btn--primary {
  min-height: 40px;
  height: 40px;
  padding-inline: 20px;
  background: #f0f0f2;
  color: #111113;
  font-weight: 600;
}

.prof-panel--record {
  padding: 24px;
}

.prof-panel--record .prof-panel__head {
  min-height: 32px;
  margin-bottom: 20px;
}

.prof-record-copy-all {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--dash-inner-surface);
  color: var(--prof-text);
  font: 500 13px/1 Inter, sans-serif;
  cursor: pointer;
}

.prof-panel--record .prof-meta { gap: 2px; }

.prof-panel--record .prof-meta__row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) minmax(0, auto) 28px;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0;
}

.prof-meta__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--dash-inner-surface);
  color: var(--dash-text-muted);
}

.prof-meta__icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.prof-panel--record .prof-meta__row dt { color: var(--dash-text-muted); }
.prof-panel--record .prof-meta__row dd { color: var(--prof-text); }

.prof-panel--record .prof-meta__row > button {
  width: 28px;
  height: 28px;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: transparent;
  cursor: pointer;
}

.prof-panel--record .prof-meta__row > button::before {
  display: block;
  width: 14px;
  height: 14px;
  margin: auto;
  border: 1.5px solid var(--dash-text-muted);
  border-radius: 3px;
  box-shadow: 3px -3px 0 -1px var(--dash-card), 3px -3px 0 0 var(--dash-text-muted);
  content: "";
}

@container prof-content (max-width: 760px) {
  .prof-details-form { grid-template-columns: minmax(0, 1fr); }
}

/* Payment identity */
.prof-payment-id__form {
  padding: 16px 20px 20px;
}

.prof-payment-id__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.prof-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.prof-field span,
.prof-url-mode legend,
.prof-payment-id__sample span {
  color: var(--dash-text-muted);
  font-size: 13px;
  line-height: 1.35;
}

.prof-field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--prof-card-elevated);
  color: var(--prof-text);
  font: inherit;
  font-size: 15px;
  padding: 0 14px;
  outline: none;
  box-sizing: border-box;
}

.prof-field input[readonly] {
  color: var(--dash-text-muted);
}

.prof-field input:focus-visible {
  border-color: var(--dash-border-strong);
  box-shadow: 0 0 0 3px var(--dash-surface-hover);
}

.prof-field input:user-invalid {
  border-color: rgba(255, 69, 58, 0.72);
}

.prof-field__hint {
  margin: 10px 0 0;
  color: var(--dash-text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.prof-url-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  border: 0;
}

.prof-url-mode legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
}

.prof-url-mode label {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 14px;
  background: var(--prof-card-elevated);
  color: var(--prof-text);
  font-size: 14px;
  cursor: pointer;
  transition: background 150ms ease;
}

.prof-url-mode input {
  accent-color: var(--prof-text);
}

.prof-url-mode label:has(input:checked) {
  background: var(--color-well-hover);
}

.prof-payment-id__sample {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  padding: 14px;
  border-radius: 14px;
  background: var(--color-well);
}

.prof-payment-id__sample code {
  color: var(--prof-text);
  font-family: ui-monospace, SFMono-Regular, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.prof-payment-id__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 18px;
  margin-top: 12px;
}

.prof-payment-id__status {
  color: var(--dash-text-muted);
  font-size: 13px;
}

.prof-payment-id__status.is-success {
  color: var(--dash-green);
}

.prof-payment-id__status.is-error {
  color: var(--dash-red);
}

/* Buttons */
.prof-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: none;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.prof-btn--sm {
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

.prof-btn--primary {
  background: var(--prof-purple);
  color: var(--dash-accent-text, #0a0a0a);
}

.prof-btn--primary:hover {
  background: color-mix(in srgb, var(--prof-purple) 90%, white);
}

.prof-btn--ghost {
  background: var(--prof-card-elevated);
  border: none;
  color: var(--prof-text);
}

.prof-btn--ghost:hover {
  background: var(--color-well-hover);
}

.prof-btn--block {
  width: 100%;
  margin-top: 16px;
}

/* Badges */
.prof-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.prof-badge--success {
  background: var(--dash-green-soft);
  color: var(--dash-green);
}

.prof-badge--muted {
  background: var(--color-well-hover);
  color: var(--dash-text-muted);
  text-transform: none;
  font-weight: 500;
  font-size: 12px;
}

/* Connected accounts */
.prof-connected {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 12px 16px;
}

.prof-connected__row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 14px;
  background: var(--prof-card-elevated);
  border: none;
}

.prof-connected__row[hidden] {
  display: none;
}

.prof-connected__empty {
  margin: 0;
  padding: 20px 12px;
  color: var(--dash-text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.prof-connected__logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.prof-connected__logo img {
  width: 68%;
  height: 68%;
  display: block;
  object-fit: contain;
}

.prof-connected__logo--google {
  background: var(--color-well-hover);
  color: var(--prof-text);
}

.prof-connected__logo--github {
  background: var(--color-well-hover);
  color: var(--prof-text);
}

.prof-connected__logo--apple {
  background: var(--color-well-hover);
  color: var(--prof-text);
}

.prof-connected__logo--slack {
  background: var(--color-well-hover);
  color: var(--prof-text);
}

.prof-connected__info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.prof-connected__name {
  font-size: 15px;
  font-weight: 500;
  color: var(--prof-text);
}

.prof-card__link {
  color: var(--dash-text-muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color 150ms ease;
  white-space: nowrap;
}

.prof-card__link:hover {
  color: var(--prof-text);
}

/* Sessions */
.prof-sessions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 8px 8px;
}

.prof-session {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 12px;
  border-radius: 14px;
  background: transparent;
  color: inherit;
}

.prof-session__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--prof-card-elevated);
  color: var(--dash-text-muted);
}

.prof-session--current .prof-session__icon {
  background: var(--prof-purple-soft);
  color: var(--prof-purple);
}

.prof-session__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.prof-session__name {
  color: var(--prof-text);
  font-size: 15px;
  font-weight: 500;
}

.prof-session__meta,
.prof-session__status {
  color: var(--dash-text-muted);
  font-size: 13px;
  line-height: 1.35;
}

.prof-session__status {
  text-align: right;
  white-space: nowrap;
}

/* Right panel */
.prof-panel {
  background: var(--dash-card);
  border: var(--dash-island-border);
  border-radius: var(--dash-radius-card, 20px);
  padding: 20px;
  box-shadow: none;
  transition: background 150ms ease;
}

.prof-panel--hero {
  text-align: center;
}

.prof-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.prof-panel__link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--dash-text-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: color 150ms ease;
}

.prof-panel__link:hover {
  color: var(--prof-text);
}

.prof-panel__avatar {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  font: 400 33px/1 'Instrument Serif', serif;
  color: var(--prof-avatar-fg);
  background: var(--prof-avatar-bg);
}

.prof-panel__name {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--prof-text);
}

.prof-panel__email {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--dash-text-muted);
}

.prof-panel__title {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.25;
  color: var(--prof-text);
}

.prof-panel__head .prof-panel__title {
  margin-bottom: 0;
}

.prof-meta {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.prof-meta__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
  padding: 6px 0;
}

.prof-meta__row dt {
  font-size: 13px;
  color: var(--dash-text-muted);
  font-weight: 400;
}

.prof-meta__row dd {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--prof-text);
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prof-action-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) minmax(0, auto) 16px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 10px 8px;
  margin: 0;
  border: none;
  border-radius: 12px;
  background: var(--color-well);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 150ms ease;
}

.prof-panel > .prof-panel__title + .prof-action-row {
  margin-top: 0;
}

.prof-action-row + .prof-action-row {
  margin-top: 2px;
}

.prof-action-row:hover {
  background: var(--color-well);
}

.prof-action-row__label {
  font-size: 14px;
  color: var(--prof-text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prof-action-row__icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--prof-card-elevated);
  color: var(--dash-text-muted);
}

.prof-action-row__meta {
  color: var(--dash-text-muted);
  font-size: 12px;
  text-align: right;
  white-space: nowrap;
}

.prof-action-row__meta--on {
  color: var(--dash-green);
}

.prof-complete__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.prof-complete__head .prof-panel__title {
  margin-bottom: 0;
}

.prof-complete__pct {
  font-size: 14px;
  font-weight: 600;
  color: var(--prof-purple);
}

.prof-link-btn {
  display: inline-flex;
  width: 100%;
  min-height: 36px;
  margin-top: 16px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--prof-card-elevated);
  color: var(--prof-text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: color 150ms ease;
}

.prof-link-btn:hover {
  background: var(--color-well-hover);
  color: var(--prof-text);
}

.prof-dialog {
  width: min(440px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid var(--color-border-secondary);
  border-radius: 20px;
  background: #151515;
  color: var(--prof-text);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

.prof-dialog::backdrop {
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
}

.prof-dialog__panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px;
}

.prof-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.prof-dialog__head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: 0;
}

.prof-dialog__close {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--color-well-hover);
  color: var(--prof-text);
  cursor: pointer;
  font: inherit;
  font-size: 20px;
}

.prof-dialog__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--dash-text-muted);
  font-size: 13px;
}

.prof-dialog__input,
.prof-dialog__select {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  background: var(--color-well-hover);
  color: var(--prof-text);
  font: inherit;
  padding: 0 14px;
  outline: none;
  box-sizing: border-box;
}

.prof-dialog__select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--dash-text-muted) 50%),
    linear-gradient(135deg, var(--dash-text-muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 20px,
    calc(100% - 13px) 20px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.prof-dialog__input:focus,
.prof-dialog__select:focus {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18);
}

.prof-dialog__error {
  margin: 0;
  color: #ef4444;
  font-size: 13px;
}

.prof-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.prof-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  max-width: min(320px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: 999px;
  background: #f5f5f5;
  color: #111;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.prof-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@container prof-content (max-width: 860px) {
  .prof-layout {
    grid-template-columns: 1fr;
  }

  .prof-aside {
    position: static;
    margin-top: 0;
  }
}

@container prof-main (max-width: 620px) {
  .prof-card__head {
    align-items: flex-start;
  }

  .prof-rows {
    grid-template-columns: minmax(0, 1fr);
  }

  .prof-row:not([data-profile-edit="avatarInitials"]) {
    grid-template-columns: minmax(0, 1fr) 16px;
  }

  .prof-row[data-profile-edit="avatarInitials"] {
    grid-template-columns: 64px minmax(0, 1fr) 16px;
  }

  .prof-row[data-profile-edit="avatarInitials"] .prof-row__avatar {
    width: 64px;
    height: 64px;
  }

  .prof-payment-id__grid,
  .prof-url-mode {
    grid-template-columns: 1fr;
  }

  .prof-connected__row,
  .prof-session {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .prof-connected__row .prof-btn,
  .prof-session > .prof-badge,
  .prof-session__status {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 800px) {
  .prof-content {
    padding-right: var(--dash-page-x, 20px);
  }
}
