.profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.profile-section { min-width: 0; padding: 24px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface-1); }
.profile-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; min-height: 44px; margin-bottom: 24px; }
.profile-heading h2 { margin: 0; font-size: 18px; font-weight: 600; }
.profile-details { display: grid; gap: 0; margin: 0; }
.profile-details > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.profile-details dt { color: var(--muted); }
.profile-details dd { margin: 0; overflow-wrap: anywhere; }
.profile-session { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 24px; }
.profile-session p { margin: 0; color: var(--muted); font-size: 12px; }
.profile-password { display: flex; flex-direction: column; gap: 16px; }
.profile-password .input { width: 100%; min-height: 44px; }
.profile-password .hint { margin: 0; line-height: 1.8; }
.profile-password .btn { align-self: flex-start; }
.profile-show-password { display: flex; align-items: center; gap: 8px; min-height: 32px; font-size: 13px; color: var(--text-dim); }
.profile-show-password input { accent-color: var(--accent); }
.profile-notice { margin: 0; font-size: 13px; line-height: 1.8; padding: 12px 16px; background: var(--surface-2); border-radius: var(--r-sm); overflow-wrap: anywhere; }
.profile-notice[data-state=error] { color: var(--danger); }
.profile-notice[data-state=success] { color: var(--accent); }
.profile-tools { grid-column: 1 / -1; }
.profile-tools .profile-heading { margin-bottom: 8px; }
.profile-description { margin: 0 0 16px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.profile-tool-list { list-style: none; padding: 0; margin: 0; }
.profile-tool-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--border); }
.profile-tool-list strong { font-size: 14px; font-weight: 600; }
.profile-tool-list p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.profile-tool-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.profile-permission { color: var(--muted); font-size: 12px; }
.profile-permission[data-allowed=true] { color: var(--accent); }
.profile-loading { min-height: 260px; border-top: 1px solid var(--border); padding-top: 24px; color: var(--muted); }
.user-chip { min-height: 44px; }
.user-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.rail a.rail-btn { display: grid; place-items: center; }
@media (max-width: 1000px) {
  .profile-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .profile-grid { gap: 16px; }
  .profile-section { padding: 20px; }
  .profile-details > div { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
  .profile-heading { margin-bottom: 16px; }
  .profile-tool-list li { align-items: flex-start; flex-direction: column; }
  .profile-password .input { font-size: 16px; }
}
