#settingsDialog {
  width: min(620px, calc(100vw - 24px));
  position: fixed;
  top: max(12px, calc((100dvh - 560px) / 2));
  bottom: auto;
  margin-block: 0;
  height: auto;
  max-height: min(560px, calc(100dvh - 24px));
  overflow: hidden;
}
#settingsDialog[open] {
  display: flex;
  flex-direction: column;
}
#settingsDialog > .menu-panel {
  flex: 1;
  min-height: 0;
  overflow: auto;
  scrollbar-gutter: stable;
}
#settingsDialog #callSettings {
  border: 0;
  margin: 0;
  padding: 0;
}
.sound-setting {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  border-bottom: 1px solid var(--ui-divider);
}
.sound-setting label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 1;
  min-width: 0;
  margin: 0;
  font-weight: 400;
}
#settings-sounds > .toggle-row {
  padding-inline-end: 48px;
}
.microphone-test {
  padding: 0 14px 10px;
  background: var(--theme-soft);
  border: 1px solid var(--ui-divider);
  border-radius: 10px;
}
.microphone-test .setting-row,
.microphone-test .toggle-row {
  border: 0;
}
#testMicrophone {
  width: 108px;
}
.microphone-meter {
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--ui-divider);
}
#microphoneLevel {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--theme-ok);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 80ms linear;
}
#microphoneTestFeedback {
  height: 32px;
  overflow: auto;
  margin: 0;
}
.about-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 12px;
}
.about-brand h3 {
  font-size: 22px;
  margin: 0 0 2px;
  color: var(--theme-ink);
}
.about-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--theme-accent);
  color: var(--theme-on-accent);
  font-size: 28px;
  font-weight: 700;
  flex-shrink: 0;
}
.about-intro {
  margin: 0 0 12px;
}
.about-facts {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px 24px;
  margin: 0;
  padding: 14px 0;
  border-block: 1px solid var(--ui-divider);
  font-size: 13px;
}
.about-facts dt {
  color: var(--theme-quiet);
}
.about-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
  text-align: right;
}
.about-links {
  margin-top: 16px;
}
#callHealthDialog {
  width: min(460px, calc(100vw - 24px));
  height: fit-content;
  overflow: auto;
}
#callHealthDialog[open] {
  display: flex;
  flex-direction: column;
}
.health-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 12px;
  flex-shrink: 0;
}
.health-transport {
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--theme-soft);
  color: var(--theme-quiet);
  font-size: 12px;
}
.health-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  flex-shrink: 0;
}
.health-metrics > div {
  background: var(--theme-soft);
  border: 1px solid var(--ui-divider);
  border-radius: 10px;
  padding: 12px;
}
.health-bandwidth {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 8px;
}
.health-metrics.health-bandwidth dd {
  font-size: 16px;
}
.health-metrics dt {
  font-size: 11px;
  color: var(--theme-quiet);
}
.health-metrics dd {
  font-size: 20px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  margin: 6px 0 0;
}
#callHealthDetail {
  flex: 0 1 48px;
  min-height: 36px;
  height: 48px;
  overflow: auto;
  margin: 12px 0 0;
}
@media (max-width: 700px), (pointer: coarse) {
  #settings-sounds > .toggle-row {
    padding-inline-end: 56px;
  }
}
@media (max-width: 700px) {
  #sidebar .sidebar-bottom .account-tools {
    flex-wrap: wrap;
    max-width: 88px;
  }
  #sidebar .sidebar-bottom .theme-launch {
    min-width: 44px;
    width: 44px;
    min-height: 44px;
    height: 44px;
  }
  .health-metrics > div {
    padding: 10px;
  }
  .health-metrics dd {
    font-size: 18px;
  }
}
@media (max-width: 360px) {
  .health-metrics {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  .health-metrics > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px;
  }
  .health-metrics dd {
    margin: 0;
  }
  #callHealthDetail {
    flex-basis: 60px;
    height: 60px;
  }
}
