.header .dialer-account-host.workspace-appbar {
  position: relative;
  top: auto;
  z-index: auto;
  display: block;
  width: auto;
  height: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: inherit;
}

.header .dialer-account-host .workspace-appbar-actions {
  display: block;
}

.header .dialer-account-host .account-menu-trigger {
  height: 36px;
  border-color: var(--border);
  color: var(--text);
}

.header .dialer-account-host .account-menu-trigger:hover,
.header .dialer-account-host .account-menu-trigger[aria-expanded="true"] {
  border-color: var(--border);
  background: var(--hover);
  color: var(--text);
}

.header .dialer-account-host .app-user b {
  color: var(--text);
}

.header .dialer-account-host .app-user span {
  color: var(--muted);
}

.call-as-select {
  width: calc(100% - 34px);
  border: 0;
  background: transparent;
  color: #001d35;
  font-size: 14px;
  line-height: 20px;
  padding: 0 22px 0 0;
  outline-offset: 2px;
}

.number-assignment-row {
  align-items: flex-start;
}

.number-assignment-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 14px;
  max-width: 620px;
}

.number-assignment-options label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 12px;
  white-space: nowrap;
}

.number-assignment-options input {
  accent-color: var(--green);
}

.number-assignment-actions {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 8px;
}

.webhook-url-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.webhook-url-row input {
  min-width: 0;
}

.webhook-url-row .outline-button {
  flex: 0 0 auto;
}

.webhook-verification {
  margin: 0 0 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.webhook-check-summary,
.webhook-check-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.webhook-check-summary {
  padding: 14px;
  background: var(--hover);
}

.webhook-check-summary > span:nth-child(2),
.webhook-check-row > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.webhook-check-summary .outline-button {
  flex: 0 0 auto;
  margin-left: auto;
}

.webhook-check-list {
  padding: 2px 14px;
}

.webhook-check-row {
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.webhook-check-list .webhook-check-row:first-child {
  border-top: 0;
}

.webhook-check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  color: #8a5a00;
}

.webhook-check-icon svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.webhook-check-icon.verified {
  color: var(--green);
}

.webhook-check-icon.blocked {
  color: var(--red);
}

.dark .webhook-check-icon.pending {
  color: #fdd663;
}

.webhook-check-summary strong,
.webhook-check-row strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}

.webhook-check-detail {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
}

.dark .call-as-select {
  color: #e8eaed;
}

.dialer-use-guide {
  display: grid;
  gap: 20px;
}

.dialer-use-guide section {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.dialer-use-guide section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.dialer-use-guide h3 {
  margin: 0 0 9px;
  font-size: 15px;
  font-weight: 600;
}

.dialer-use-guide ol,
.dialer-use-guide ul {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.dialer-use-guide li + li {
  margin-top: 6px;
}

.dialer-use-guide b {
  color: var(--text);
  font-weight: 600;
}

.dialer-use-guide code {
  overflow-wrap: anywhere;
  color: var(--text);
  font: 600 11px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.dialer-use-guide a {
  font-weight: 600;
}

.audio-device-dialog {
  margin-top: -4px;
}

.audio-device-group {
  padding: 0 0 24px;
  margin: 0 0 24px;
  border-bottom: 1px solid var(--border);
}

.audio-device-group:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.audio-device-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  margin-bottom: 10px;
}

.audio-device-heading label {
  font-size: 14px;
  font-weight: 500;
}

.audio-device-indicator,
.audio-device-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}

.audio-device-indicator > .icon,
.audio-device-actions > .icon {
  width: 21px;
  height: 21px;
}

.audio-device-actions .text-button {
  padding: 7px 2px;
}

.audio-device-select {
  width: 100%;
  height: 56px;
  padding: 0 42px 0 14px;
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
  background: var(--surface);
  border: 1px solid #9aa0a6;
  border-radius: 4px;
}

.audio-device-status {
  margin: 9px 0 0!important;
  font-size: 12px!important;
  line-height: 18px!important;
}

.audio-input-meter {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 18px;
}

.audio-input-meter span {
  width: 3px;
  height: 6px;
  background: #bdc1c6;
  border-radius: 2px;
}

.audio-input-meter span:nth-child(2),
.audio-input-meter span:nth-child(3) {
  height: 12px;
}

.audio-input-meter span.active {
  background: var(--blue);
}

/* Keep list-level controls in their own row instead of covering the first call. */
.list-heading.call-list-heading {
  position: static;
  top: auto;
  right: auto;
  width: auto;
  height: 65px;
  min-height: 65px;
  padding: 0 8px;
  border-bottom: 1px solid #c4c7c5;
  border-radius: 0;
  opacity: 1;
  transition: none;
}

.call-list-heading .icon-button,
.dark .call-list-heading .icon-button {
  background: transparent;
}

@media(max-width:640px) {
  .list-heading.call-list-heading {
    height: 70px;
    min-height: 70px;
    background: var(--surface);
  }

  .number-assignment-row {
    display: block;
  }

  .number-assignment-options {
    justify-content: flex-start;
    margin-top: 12px;
  }

  .webhook-url-row {
    align-items: stretch;
    flex-direction: column;
  }

  .webhook-check-summary {
    flex-wrap: wrap;
  }

  .webhook-check-summary .outline-button {
    width: 100%;
    margin-left: 34px;
  }
}
