.auth-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg);
}
.auth-page .account-panel {
  width: min(440px, 100%);
}
.auth-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin-bottom: 20px;
}
.account-page {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}
.account-group-label {
  padding: 20px 12px 8px;
  font-size: 11px;
  font-weight: 650;
  color: var(--muted);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.theme-options {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.theme-options legend {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 550;
}
.account-panel .theme-option {
  position: relative;
  border: 2px solid var(--line);
  padding: 10px;
  border-radius: 16px;
  cursor: pointer;
  text-align: center;
}
.account-panel .theme-option:has(:checked) {
  border-color: var(--blue);
  background: var(--blue-bg);
}
.account-panel .theme-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  min-height: 0;
  padding: 0;
}
.theme-option:focus-within {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.theme-preview {
  height: 72px;
  border-radius: 9px;
  background: #eef1f5;
  display: flex;
  gap: 6px;
  padding: 10px;
}
.theme-preview i {
  background: white;
  border-radius: 4px;
  flex: 1;
}
.theme-preview i:first-child {
  flex: 0.35;
}
.theme-preview[data-preview='dark'] {
  background: #1c2029;
}
.theme-preview[data-preview='dark'] i {
  background: #353b48;
}
.theme-preview[data-preview='auto'] {
  background: linear-gradient(90deg, #eef1f5 50%, #1c2029 50%);
}
.theme-preview[data-preview='auto'] i:last-child {
  background: linear-gradient(90deg, white 30%, #353b48 30%);
}
@media (max-width: 700px) {
  .theme-options {
    gap: 6px;
  }
  .theme-preview {
    height: 56px;
    padding: 6px;
  }
}
.account-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}
.account-panel h1 {
  font-size: 28px;
  margin: 0 0 10px;
}
.account-panel h2 {
  font-size: var(--type-section);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 4px 0 10px;
}
.account-panel p,
.account-panel small {
  color: var(--muted);
  line-height: 1.6;
}
.account-panel form {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}
.account-panel label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 550;
}
.account-panel input:not([type='checkbox']),
.account-panel select {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--surface-alt);
  color: var(--text);
  font: inherit;
}
.account-panel input:focus-visible,
.account-panel select:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.account-identity {
  display: flex;
  align-items: center;
  gap: 16px;
}
.account-identity > div {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.account-identity h2 {
  font-size: 19px;
}
.setup-step {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
}
.setup-step > span {
  border-radius: 50%;
  background: var(--blue-bg);
  color: var(--blue);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-weight: 600;
}
.setup-step > div {
  display: grid;
  gap: 12px;
}
.setup-step a {
  color: var(--blue);
  font-weight: 550;
}
.account-panel .ai-consent {
  display: flex;
  align-items: flex-start;
  font-weight: 400;
  line-height: 1.5;
}
.ai-consent input {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  padding: 0;
  margin: 3px 0 0;
  accent-color: var(--blue);
}
.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
#ai-setup-status,
#auth-error {
  color: var(--text);
}
@media (max-width: 600px) {
  .account-panel {
    padding: 20px;
  }
  .account-identity {
    flex-wrap: wrap;
  }
}
.admin-user {
  display: grid;
  grid-template-columns: minmax(160px, 1.3fr) repeat(3, minmax(120px, 1fr));
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.admin-user small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.admin-user label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  align-content: start;
}
.admin-user select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: var(--surface);
  color: var(--text);
}
.admin-user .account-actions {
  grid-column: 1/-1;
}
.admin-event {
  display: grid;
  gap: 5px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.admin-event small {
  color: var(--muted);
}
@media (max-width: 800px) {
  .admin-user {
    grid-template-columns: 1fr 1fr;
  }
  .admin-user > div:first-child {
    grid-column: 1/-1;
  }
}
@media (max-width: 430px) {
  .admin-user {
    grid-template-columns: 1fr;
  }
}
.workspace-banner {
  position: sticky;
  top: 90px;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  margin-bottom: 18px;
  border: 1px solid var(--blue);
  border-radius: 14px;
  background: var(--surface);
  color: var(--blue);
  font-weight: 600;
}
.workspace-banner span {
  overflow-wrap: anywhere;
  min-width: 0;
}
.admin-password {
  grid-column: 1/-1;
}
.admin-password summary {
  cursor: pointer;
  padding: 10px 0;
}
.admin-password input {
  max-width: 350px;
}
@media (max-width: 600px) {
  .workspace-banner {
    flex-direction: column;
    align-items: stretch;
    top: 72px;
  }
}
.account-layout {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 32px;
  max-width: 1180px;
  margin: 0 auto;
  align-items: start;
}
.account-navigation {
  position: sticky;
  top: 100px;
  min-width: 0;
  max-height: calc(100dvh - 120px);
  overflow-y: auto;
  scrollbar-width: thin;
  padding: 16px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 4px 20px #00000003;
}
.account-nav-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 4px 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.account-nav-identity .avatar {
  width: 43px;
  height: 43px;
  border-radius: 15px;
  font-size: 14px;
  flex-shrink: 0;
}
.account-nav-identity > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.account-nav-identity strong {
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.account-nav-identity small {
  color: var(--muted);
  font-size: var(--type-caption);
  overflow-wrap: anywhere;
}
.account-navigation nav {
  display: grid;
  gap: 19px;
}
.account-nav-group {
  display: grid;
  gap: 3px;
}
.account-nav-group .account-group-label {
  margin: 0;
  padding: 0 12px 7px;
  text-transform: none;
  letter-spacing: 0;
  font-size: var(--type-caption);
  font-weight: 550;
}
.account-navigation nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 10px;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background 160ms ease;
}
.account-navigation nav button:hover {
  background: var(--surface-alt);
}
.account-navigation nav button > span:nth-child(2) {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}
.account-navigation nav button[aria-current] {
  background: var(--selection);
  border-color: transparent;
  box-shadow: none;
  font-weight: 550;
}
.account-navigation nav button small {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
  max-width: none;
  line-height: 1.3;
}
.account-section-icon {
  --account-tone: var(--blue);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 9px;
  color: var(--account-tone);
  background: color-mix(in srgb, var(--account-tone) 11%, transparent);
}
.account-section-icon > .icon {
  width: 17px;
  height: 17px;
}
.tone-security {
  --account-tone: var(--teal);
}
.tone-appearance,
.tone-ai {
  --account-tone: var(--indigo);
}
.tone-fmh {
  --account-tone: var(--teal);
}
.tone-administration {
  --account-tone: var(--muted);
}
.account-nav-chevron {
  display: none;
  color: var(--muted);
  flex: 0 0 auto;
}
.account-nav-chevron .icon {
  width: 14px;
  height: 14px;
}
.account-signout {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  padding: 16px 10px 4px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.account-signout:hover {
  color: var(--red);
}
.account-signout .icon {
  width: 17px;
  height: 17px;
}
.account-detail {
  min-width: 0;
}
.account-section-heading {
  margin: 10px 0 22px;
}
.account-section-heading > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.account-section-heading h1 {
  margin: 0;
  font-size: var(--type-page);
  font-weight: 600;
  letter-spacing: -0.025em;
  outline: none;
}
.account-section-heading .account-section-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  flex-basis: 36px;
}
.account-mobile-back {
  display: none;
}
.account-mobile-heading {
  display: none;
}
.account-detail:focus {
  outline: none;
}
.account-content {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.account-content [hidden] {
  display: none !important;
}
.account-content > .account-page {
  margin: 0;
  width: 100%;
  max-width: none;
}
.account-content .admin-user {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.account-content .admin-user > div:first-child {
  grid-column: 1/-1;
}
.account-content .admin-user .account-actions .button {
  font-size: 12px;
  min-height: 35px;
  padding: 8px 12px;
}
.account-content .account-panel {
  padding: 26px;
}
.account-content .account-panel h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.35px;
  margin: 0 0 10px;
}
.account-content .account-panel p {
  font-size: 13px;
}
.account-content .account-panel small {
  font-size: 12px;
  font-weight: 400;
}
.account-panel .account-section-intro {
  margin-top: 4px;
  max-width: 60ch;
}
.account-content .account-identity {
  margin-bottom: 28px;
}
.account-content .account-identity .avatar {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  font-size: 19px;
  flex-shrink: 0;
}
.account-content .account-identity h2 {
  margin: 0 0 5px;
  font-size: 21px;
  letter-spacing: -0.5px;
}
.account-content .account-identity p {
  margin: 0 0 8px;
  font-size: 13px;
}
.account-role {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  border-radius: 7px;
  background: var(--hover);
  padding: 4px 7px;
}
.account-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.account-fields > label {
  min-width: 0;
}
.account-profile-hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  margin: 20px 0;
}
.account-backup-scope {
  margin-top: 20px;
}
.account-backup-scope summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--muted);
}
.account-backup-scope p {
  font-size: 12px;
  line-height: 1.6;
}
@media (max-width: 600px) {
  .account-fields {
    grid-template-columns: minmax(0, 1fr);
  }
}
.account-form-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  border-top: 1px solid var(--line);
  margin-top: 5px;
  padding-top: 20px;
}
.account-form-footer > p {
  flex: 1;
  margin: 0;
  font-size: 12px;
}
.account-form-footer > .button {
  min-width: 116px;
}
.account-content input:not([type='checkbox']):not([type='radio']),
.account-content select {
  min-width: 0;
  min-height: 46px;
  border-radius: 13px;
  background: var(--surface-alt);
}
.account-content input[readonly] {
  color: var(--muted);
  border-color: transparent;
  background: var(--hover);
}
.account-content .account-panel form {
  margin-top: 18px;
  gap: 20px;
}
.account-content .account-appearance-form {
  margin: 0;
  gap: 26px;
}
.account-panel .account-language-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.account-language-row select {
  width: auto;
  min-width: 160px;
}
.theme-choice-check {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}
.theme-choice-check .icon {
  width: 11px;
  height: 11px;
  opacity: 0;
}
.theme-option:has(:checked) .theme-choice-check {
  background: var(--action);
  border-color: var(--action);
  color: var(--on-action);
}
.theme-option:has(:checked) .theme-choice-check .icon {
  opacity: 1;
}
.account-panel .theme-option {
  border-width: 1px;
  padding: 11px 11px 13px;
  text-align: left;
  font-size: 12px;
}
.account-panel .theme-option > span:not(.theme-preview):not(.theme-choice-check) {
  padding-top: 5px;
}
.account-row-icon {
  width: 37px;
  height: 37px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--hover);
  color: var(--muted);
  display: grid;
  place-items: center;
}
.account-row-icon .icon {
  width: 19px;
  height: 19px;
}
.account-disclosure > summary {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  list-style: none;
}
.account-disclosure > summary::-webkit-details-marker {
  display: none;
}
.account-disclosure > summary > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.account-disclosure summary strong {
  display: block;
  font-size: 15px;
  font-weight: 550;
}
.account-disclosure summary small {
  display: block;
  margin-top: 5px;
  line-height: 1.4;
}
.account-disclosure > summary > .icon {
  width: 17px;
  height: 17px;
  color: var(--muted);
  transition: transform 0.18s;
}
.account-disclosure[open] > summary > .icon {
  transform: rotate(180deg);
}
.account-disclosure[open] > form {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  margin-top: 24px;
}
.account-app-name {
  display: flex;
  align-items: center;
  gap: 12px;
}
.account-access-pill {
  background: var(--hover);
  padding: 6px 10px;
  border-radius: 9px;
  font-size: 12px;
  align-self: center;
}
.account-content .application-access:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.account-sessions-panel .session-row {
  gap: 12px;
  padding: 18px 0;
}
.account-sessions-panel .session-row > div {
  flex: 1;
}
.account-sessions-panel .session-row strong {
  font-size: 13px;
  font-weight: 550;
}
.account-sessions-panel .session-row small {
  font-size: var(--type-caption);
}
.account-sessions-panel .session-row .button {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 12px;
}
.account-content .account-backup-download {
  display: flex;
  align-items: flex-start;
  gap: 22px;
}
.account-backup-symbol {
  display: grid;
  place-items: center;
  flex: 0 0 52px;
  height: 58px;
  border-radius: 17px;
  color: var(--blue);
  background: var(--blue-bg);
}
.account-backup-symbol > .icon {
  width: 27px;
  height: 27px;
}
.account-backup-download h2 {
  margin-top: 3px !important;
}
.account-backup-download p {
  margin: 0 0 22px;
}
.account-backup-download #backup-status:empty {
  display: none;
}
.account-backup-download #backup-status {
  margin: 14px 0 0;
  font-size: 12px;
}
.account-backup-notice {
  display: flex;
  gap: 12px;
  color: var(--muted);
  padding: 0 9px;
}
.account-backup-notice > .icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 2px;
}
.account-backup-notice strong {
  font-size: 12px;
  font-weight: 550;
}
.account-backup-notice p {
  font-size: 12px;
  line-height: 1.5;
  margin: 5px 0 6px;
}
.account-panel .account-file-choice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px dashed var(--line);
  background: var(--surface-alt);
  border-radius: 15px;
  position: relative;
  padding: 22px 16px;
  color: var(--blue);
  font-size: 13px;
  cursor: pointer;
  overflow: hidden;
}
.account-file-choice input[type='file'] {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.account-file-choice:focus-within {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.account-file-choice > .icon {
  width: 20px;
  height: 20px;
}
.account-ai-setup > header p {
  margin: 5px 0 0;
}
.account-content .setup-step {
  padding: 6px 0 16px;
  gap: 14px;
}
.account-content .setup-step > span {
  width: 27px;
  height: 27px;
  font-size: 12px;
  background: var(--hover);
  color: var(--muted);
  margin-top: 4px;
}
.account-content .setup-step > div {
  gap: 10px;
  min-width: 0;
}
.account-provider-help {
  display: grid;
  gap: 7px;
}
.account-provider-help p {
  margin: 0;
  font-size: 12px;
}
.account-provider-help a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  text-decoration: none;
  width: fit-content;
}
.account-provider-help a .icon {
  width: 14px;
  height: 14px;
  transform: rotate(-45deg);
}
.account-key-entry {
  display: flex;
  gap: 10px;
  align-items: center;
}
.account-key-entry > input {
  flex: 1;
  min-width: 0;
}
.account-key-entry .button {
  flex-shrink: 0;
  padding: 11px 13px;
  font-size: 12px;
}
.account-provider-heading {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 5px 0 30px;
}
.account-provider-heading > div {
  flex: 1;
  min-width: 0;
}
.account-provider-heading h2 {
  margin: 0 0 5px !important;
}
.account-provider-heading p {
  margin: 0;
  overflow-wrap: anywhere;
}
.account-provider-symbol {
  display: grid;
  place-items: center;
  width: 49px;
  height: 49px;
  background: var(--indigo-bg);
  color: var(--indigo);
  border-radius: 16px;
  flex-shrink: 0;
}
.account-connected-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border-radius: 9px;
  color: var(--teal);
  background: var(--teal-bg);
  font-size: 11px;
}
.account-connected-pill .icon {
  width: 13px;
  height: 13px;
}
.account-ai-connected .account-actions {
  justify-content: flex-end;
}
.account-ai-remove {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.account-ai-remove .button,
.account-danger-link {
  color: var(--red);
  font-size: 12px;
  padding-right: 0;
}
.account-ai-setup .ai-consent {
  font-size: 12px;
  color: var(--muted);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  gap: 9px;
}
.account-content .fmh-module-settings {
  padding: 0;
}
.fmh-account-settings {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.fmh-account-heading {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 4px 8px;
}
.fmh-account-symbol {
  flex: 0 0 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--blue);
  background: var(--blue-bg);
}
.fmh-account-heading h1 {
  margin: 0 0 5px;
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -0.045em;
}
.fmh-account-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.fmh-module-settings {
  padding: 0;
  overflow: hidden;
}
.account-panel .fmh-settings-form {
  margin: 0;
  gap: 0;
}
.fmh-module-settings-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px;
}
.fmh-module-settings-heading > div {
  min-width: 0;
}
.fmh-module-settings-heading h2 {
  margin: 0 0 4px;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.025em;
}
.fmh-module-settings-heading small {
  font-size: 12px;
}
.account-hospital-field {
  min-width: 0;
}
.account-fields .account-hospital-default {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
}
.account-hospital-default strong {
  display: block;
  font-size: 12px;
  font-weight: 550;
}
.account-hospital-default small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
}
.account-fields .account-hospital-default input[type='checkbox'] {
  appearance: none;
  position: relative;
  flex: 0 0 38px;
  width: 38px;
  height: 23px;
  min-height: 23px;
  padding: 2px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-alt);
  cursor: pointer;
  transition: background 180ms ease;
}
.account-fields .account-hospital-default input::after {
  content: '';
  display: block;
  width: 17px;
  height: 17px;
  background: #fff;
  box-shadow: 0 1px 3px #0002;
  border-radius: 50%;
  transition: transform 180ms ease;
}
.account-fields .account-hospital-default input:checked {
  background: var(--blue);
  border-color: var(--blue);
}
.account-fields .account-hospital-default input:checked::after {
  transform: translateX(15px);
}
.account-panel .fmh-module-switch-label {
  display: flex;
  flex: 0 0 auto;
  padding: 6px 0 6px 6px;
  cursor: pointer;
}
.fmh-module-switch-label > span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.fmh-settings-form input[type='checkbox'][role='switch'] {
  appearance: none;
  position: relative;
  flex: 0 0 44px;
  width: 44px;
  height: 26px;
  min-height: 0;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: var(--line);
  cursor: pointer;
  transition: background 180ms ease;
}
.fmh-settings-form input[type='checkbox'][role='switch']::after {
  content: '';
  position: absolute;
  inset: 3px auto 3px 3px;
  width: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px #0002;
  transition: transform 180ms ease;
}
.fmh-settings-form input[type='checkbox'][role='switch']:checked {
  background: var(--action);
}
.fmh-settings-form input[type='checkbox'][role='switch']:checked::after {
  transform: translateX(18px);
}
.fmh-settings-form input[type='checkbox'][role='switch']:disabled {
  opacity: 0.55;
  cursor: default;
}
.fmh-module-preferences {
  border-top: 1px solid var(--line);
}
.fmh-settings-form:has(input[name='active']:not(:checked)) .fmh-module-preferences {
  display: none;
}
.account-panel .fmh-fiche-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 26px;
  font-weight: 500;
  cursor: pointer;
}
.fmh-fiche-option > span {
  display: flex;
  align-items: center;
  gap: 11px;
}
.fmh-fiche-option .icon {
  color: var(--muted);
  flex-shrink: 0;
}
.fmh-settings-periods {
  display: grid;
  gap: 24px;
  padding: 20px 26px 26px;
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
}
.fmh-period-group {
  display: grid;
  gap: 13px;
  min-width: 0;
}
.fmh-period-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.fmh-period-group-heading h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
}
.fmh-period-group-heading .fmh-period-add {
  padding: 4px;
  min-height: 30px;
  font-size: 12px;
  gap: 5px;
}
.fmh-period-add .icon {
  width: 16px;
  height: 16px;
}
.fmh-period-rows {
  display: grid;
  gap: 12px;
}
.fmh-period-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 10px minmax(0, 1fr) 32px;
  align-items: end;
  gap: 10px;
  min-width: 0;
  animation: fmh-period-enter 180ms ease both;
}
.account-panel .fmh-period-row label {
  min-width: 0;
  gap: 5px;
}
.fmh-period-row label > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 450;
}
.account-panel .fmh-period-row input[type='date'] {
  min-width: 0;
  min-height: 42px;
  padding: 9px 11px;
  border-radius: 12px;
  background: var(--surface);
  font-size: 13px;
}
.account-panel .fmh-period-row input[type='hidden'] {
  display: none;
}
.fmh-period-divider {
  align-self: end;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
}
.fmh-period-row .fmh-period-remove {
  align-self: end;
  width: 32px;
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--muted);
}
.fmh-period-remove .icon {
  width: 16px;
  height: 16px;
}
.account-panel .fmh-period-empty {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}
.fmh-module-settings-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  padding: 16px 26px;
  border-top: 1px solid var(--line);
}
.fmh-module-settings-footer .fmh-error {
  flex: 1;
  margin: 0;
  font-size: 12px;
}
.fmh-module-settings-footer .button {
  min-height: 39px;
  font-size: 13px;
}
@keyframes fmh-period-enter {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 600px) {
  .fmh-account-heading {
    align-items: flex-start;
    padding: 8px 2px;
    gap: 12px;
  }
  .fmh-account-heading h1 {
    font-size: 23px;
  }
  .account-panel.fmh-module-settings {
    padding: 0;
  }
  .fmh-module-settings-heading,
  .account-panel .fmh-fiche-option,
  .fmh-settings-periods {
    padding: 20px;
  }
  .fmh-module-settings-heading h2 {
    font-size: 17px;
  }
  .fmh-module-settings-footer {
    padding: 14px 20px;
  }
  .fmh-period-row {
    gap: 6px;
    grid-template-columns: minmax(0, 1fr) 6px minmax(0, 1fr) 44px;
  }
  .account-panel .fmh-period-row input[type='date'] {
    padding: 8px;
    font-size: 1rem;
  }
  .fmh-period-row .fmh-period-remove {
    width: 44px;
    height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fmh-period-row {
    animation: none;
  }
  .fmh-settings-form input[type='checkbox'][role='switch'],
  .fmh-settings-form input[type='checkbox'][role='switch']::after {
    transition: none;
  }
}
.application-access {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.application-access span {
  color: var(--muted);
  text-align: right;
}
.session-row small {
  display: block;
  margin-top: 6px;
}
.session-row > div {
  min-width: 0;
}
.session-row {
  align-items: center;
  flex-wrap: wrap;
}
@media (max-width: 1100px) {
  .account-layout {
    grid-template-columns: 224px minmax(0, 1fr);
    gap: 22px;
  }
  .account-content .admin-user {
    grid-template-columns: 1fr 1fr;
  }
  .account-content .admin-user > div:first-child {
    grid-column: 1/-1;
  }
}
@media (max-width: 700px) {
  .account-mobile-heading {
    display: block;
  }
  .account-layout {
    grid-template-columns: 1fr;
  }
  .account-navigation {
    position: static;
    padding: 18px 14px;
    max-height: none;
    overflow: visible;
  }
  .account-nav-identity {
    padding: 4px 6px 20px;
    border-radius: 0;
    background: transparent;
    margin-bottom: 20px;
  }
  .account-navigation nav {
    display: grid;
    gap: 24px;
  }
  .account-nav-group {
    gap: 0;
    border-radius: 19px;
    background: transparent;
    padding: 0;
  }
  .account-nav-group .account-group-label {
    background: transparent;
    margin: 0;
    padding: 0 6px 10px;
  }
  .account-navigation nav button {
    padding: 13px 14px;
    background: var(--surface);
    border-radius: 0;
    border: 0;
    min-height: 58px;
    font-size: 14px;
  }
  .account-navigation nav button + button {
    border-top: 1px solid var(--line);
  }
  .account-navigation nav button[aria-current] {
    background: var(--surface);
    box-shadow: none;
    border-color: var(--line);
    font-weight: 450;
  }
  .account-navigation nav button:first-of-type {
    border-radius: 18px 18px 0 0;
  }
  .account-navigation nav button:last-of-type {
    border-radius: 0 0 18px 18px;
  }
  .account-navigation nav button:only-of-type {
    border-radius: 18px;
  }
  .account-nav-chevron {
    display: flex;
  }
  .account-layout:not(.has-detail) .account-detail {
    display: none;
  }
  .account-layout.has-detail .account-navigation {
    display: none;
  }
  .account-section-heading {
    margin: 0 0 20px;
  }
  .account-section-heading > div > .account-section-icon {
    display: none;
  }
  .account-section-heading h1 {
    font-size: 26px;
    margin: 14px 3px 0;
  }
  .account-mobile-back {
    display: inline-flex;
    padding: 0;
    min-height: 30px;
    font-size: 13px;
  }
  .account-content .account-panel {
    padding: 22px;
    border-radius: 22px;
  }
  .account-content .fmh-module-settings {
    padding: 0;
  }
  .account-form-footer {
    gap: 12px;
    flex-wrap: wrap;
  }
  .account-form-footer > p {
    flex-basis: 100%;
  }
  .account-form-footer > p:empty {
    display: none;
  }
  .account-content .account-backup-download {
    gap: 15px;
  }
  .account-backup-symbol {
    flex-basis: 40px;
    height: 47px;
    border-radius: 13px;
  }
  .account-backup-download .button {
    width: 100%;
  }
  .account-provider-heading {
    flex-wrap: wrap;
  }
  .account-ai-remove {
    flex-direction: column;
    align-items: flex-start;
  }
  .account-ai-connected .account-actions {
    flex-direction: column;
  }
  .account-key-entry {
    align-items: stretch;
    flex-direction: column;
  }
  .account-key-entry .button {
    align-self: flex-end;
  }
  .account-panel .theme-option {
    padding: 8px;
  }
  .theme-choice-check {
    display: none;
  }
  .account-content .account-identity {
    gap: 13px;
  }
  .account-content .account-identity .avatar {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }
  .account-content .account-identity h2 {
    font-size: 18px;
  }
  .account-section-heading + .account-content {
    min-width: 0;
  }
  .account-language-row select {
    min-width: 125px;
    max-width: 160px;
  }
  .account-signout {
    justify-content: center;
    color: var(--red);
    margin-top: 12px;
    padding: 18px;
  }
  .account-sessions-panel .session-row > .account-row-icon {
    display: none;
  }
  .account-sessions-panel .session-row > div {
    flex-basis: 100%;
  }
  .account-sessions-panel .session-row .button {
    margin-left: auto;
  }
  .account-nav-identity strong {
    font-size: 16px;
  }
  .account-nav-identity small {
    font-size: 12px;
  }
  .account-nav-group .account-section-icon {
    width: 31px;
    height: 31px;
    flex-basis: 31px;
  }
  .account-content .admin-user {
    grid-template-columns: 1fr;
  }
}
