/* Shared frame for the profile dashboard and range editor. */
.profile-dashboard { width: min(1180px, 100%); min-height: 100%; margin: 0 auto; user-select: none; -webkit-user-select: none; background: var(--app-bg); }
.profile-dashboard input, .profile-dashboard textarea, .profile-dashboard [contenteditable="true"] { user-select: text; -webkit-user-select: text; }
.profile-dashboard__header { padding: 22px 28px 18px; border-bottom: 1px solid var(--app-border); }
.profile-dashboard__content { display: grid !important; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; padding: 24px 28px 40px; background: var(--app-bg); }
.profile-settings-modal {
  z-index: 180;
  padding: clamp(16px, 4vw, 32px);
  background: rgb(var(--theme-overlay-rgb) / .68);
  backdrop-filter: blur(10px);
}
.profile-settings-modal__dialog {
  display: grid;
  gap: 0;
  width: min(700px, 100%);
  max-height: min(860px, calc(100% - 16px));
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--app-border) 82%, var(--app-accent));
  border-radius: 30px;
  background: var(--app-surface);
  box-shadow: 0 24px 70px rgb(var(--theme-overlay-rgb) / .34), 0 0 0 1px rgb(var(--theme-text-rgb) / .04);
  overflow: auto;
}
.profile-settings-modal__header {
  position: sticky;
  z-index: 1;
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 28px 20px;
  border-bottom: 1px solid var(--app-border);
  background: color-mix(in srgb, var(--app-surface) 94%, transparent);
  backdrop-filter: blur(14px);
}
.profile-settings-modal__header .project-library__eyebrow { color: var(--app-accent); }
.profile-settings-modal__header .project-confirm__title {
  margin-top: 6px;
  color: var(--app-text);
  font: 800 clamp(24px, 4vw, 30px)/1.05 var(--font-heading);
  letter-spacing: -.03em;
}
.profile-settings-modal__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.profile-settings-modal__actions .secondary-button { min-height: 40px; border-radius: 999px; padding-inline: 15px; }
.profile-settings-modal__hint {
  margin: 0;
  padding: 20px 28px 0;
  color: var(--app-muted);
  font: 400 14px/1.5 var(--font-text);
}
.profile-settings-modal__range-host { min-width: 0; padding: 0 28px; margin-top: 18px; }
.profile-settings-modal__range-host .vocal-range-editor {
  width: 100%;
  height: min(520px, 62vh);
  min-height: 380px;
  border-color: var(--app-border);
  border-radius: 24px;
  background: var(--app-surface-deep);
  box-shadow: inset 0 1px 0 rgb(var(--theme-text-rgb) / .05), 0 12px 28px rgb(var(--theme-overlay-rgb) / .18);
}
.profile-settings-modal__calibrate {
  justify-self: start;
  min-height: 44px;
  margin: 18px 28px 28px;
  border-radius: 999px;
  padding-inline: 17px;
}
html[data-device-kind="desktop"] #profile-page > .profile-panel {
  display: block;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
}
html[data-device-kind="desktop"] #profile-page > .profile-panel > .profile-panel__card {
  height: auto;
  min-height: 100%;
  overflow: visible;
}
html[data-device-kind="tablet"] .profile-dashboard__content { padding: 18px; }
html[data-device-kind="mobile"] .profile-dashboard__header { padding: 16px; }
html[data-device-kind="mobile"] .profile-dashboard__content { display: grid !important; grid-template-columns: 1fr; gap: 12px; padding-top: 12px; padding-right: 12px; padding-left: 12px; }
html[data-device-kind="mobile"] #profile-page .profile-panel__content.profile-dashboard__content,
html[data-device-kind="tablet"] #profile-page .profile-panel__content.profile-dashboard__content {
  display: grid !important;
  grid-template-columns: 1fr;
  flex-direction: initial;
}
html[data-device-kind="mobile"] .profile-settings-modal { padding: 12px; }
html[data-device-kind="mobile"] .profile-settings-modal__header { flex-wrap: wrap; padding: 20px 18px 16px; }
html[data-device-kind="mobile"] .profile-settings-modal__header > div:first-child { min-width: 0; }
html[data-device-kind="mobile"] .profile-settings-modal__actions { width: 100%; justify-content: flex-start; }
html[data-device-kind="mobile"] .profile-settings-modal__hint { padding: 16px 18px 0; }
html[data-device-kind="mobile"] .profile-settings-modal__range-host { padding: 0 18px; }
html[data-device-kind="mobile"] .profile-settings-modal__calibrate { margin: 14px 18px 18px; }
html[data-device-kind="mobile"] .profile-settings-modal__dialog { max-height: calc(100% - 8px); }
html[data-device-kind="mobile"] .profile-settings-modal__range-host .vocal-range-editor { height: 420px; min-height: 360px; }
