
.settings-section {
  padding: 16px;
  border-bottom: var(--hair) solid var(--post-border-color);
  position: relative;
}

.settings-section h2 {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 8px;
}

.settings-section p {
  font-size: 12px;
  color: var(--text-color-muted);
  margin-bottom: 16px;
}

.settings-section p a {
  color: var(--text-link-color);
}

.settings-color-picker {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  flex-shrink: 0;
}

.settings-color-picker-reset {
  font-size: 12px;
  color: var(--text-color-muted);
  margin-top: 6px;
  cursor: pointer;
  border: none;
  background: none;
}

.settings-footer-links {
  padding-top: 12px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 8px;
}

.settings-footer-links a {
  font-size: 14px;
  color: var(--text-link-color);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.settings-footer-separator {
  color: var(--text-color-muted);
  font-size: 14px;
}

.muted-word-form {
  padding: 16px;
  border-bottom: var(--hair) solid var(--post-border-color);
}

.muted-word-form h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 8px;
}

.muted-word-form p {
  font-size: 13px;
  color: var(--text-color-muted);
  line-height: 1.4;
  margin-bottom: 16px;
}

.muted-word-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--text-input-border-radius);
  border: var(--hair) solid var(--post-border-color);
  background: var(--text-input-background-color);
  color: var(--text-color);
  font-size: 16px;
  box-sizing: border-box;
  margin-bottom: 12px;
}

.field-caption {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-color-muted);
  margin-bottom: 6px;
}

.pill-radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.pill-radio-group label {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 12px;
  border-radius: var(--card-border-radius);
  background: var(--post-hover-color);
  cursor: pointer;
  font-size: 14px;
  color: var(--text-color);
  transition: background-color 0.15s;
  font-weight: 500;
}

.pill-radio-group label:has(input:checked) {
  background: color-mix(in srgb, var(--highlight-color) 15%, transparent);
}

.pill-radio-group input[type="radio"] {
  accent-color: var(--highlight-color);
  background-color: transparent;
  margin: 0;
}

.muted-word-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 12px;
  border-radius: var(--card-border-radius);
  background: var(--post-hover-color);
  cursor: pointer;
  font-size: 14px;
  color: var(--text-color);
  margin-bottom: 12px;
  font-weight: 500;
}

.muted-word-checkbox-row:has(input:checked) {
  background: color-mix(in srgb, var(--highlight-color) 15%, transparent);
}

.muted-word-checkbox-row input[type="checkbox"] {
  accent-color: var(--highlight-color);
  background-color: transparent;
  margin: 0;
}

.settings-button {
  gap: 6px;
  width: 100%;
  padding: 10px;
  font-size: 15px;
}

.settings-button .plus-icon {
  width: 14px;
  height: 14px;
}

.settings-button .loading-spinner {
  border-color: color-mix(
    in srgb,
    var(--primary-button-text-color) 30%,
    transparent
  );
  border-top-color: var(--primary-button-text-color);
}

.muted-word-delete-button .loading-spinner {
  width: 14px;
  height: 14px;
  border-width: 2px;
}

.muted-word-error {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: var(--card-border-radius);
  background: var(--error-color, #ef4444);
  color: white;
  font-size: 13px;
  font-style: italic;
}

.muted-word-list-header {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-color);
  padding: 16px 16px 12px;
}

.muted-word-list {
  display: flex;
  flex-direction: column;
}

.muted-word-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
}

.muted-word-item:nth-child(odd) {
  background: var(--post-hover-color);
}

.muted-word-item-info {
  flex: 1;
  min-width: 0;
}

.muted-word-item-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-color);
  line-height: 1.4;
  overflow-wrap: break-word;
  word-break: break-word;
}

.muted-word-item-target {
  font-weight: 400;
  color: var(--text-color-muted);
}

.muted-word-item-meta {
  font-size: 12px;
  color: var(--text-color-muted);
  line-height: 1.4;
  margin-top: 2px;
}

.muted-word-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.muted-word-renew-button {
  padding: 4px 12px;
  border-radius: var(--pill-button-border-radius);
  border: var(--hair) solid var(--post-border-color);
  background: none;
  color: var(--text-link-color);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.muted-word-delete-button {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: var(--circular-button-border-radius);
  border: var(--hair) solid var(--post-border-color);
  background: none;
  color: var(--text-color-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.muted-word-delete-button .close-icon {
  width: 16px;
  height: 16px;
}

.muted-word-delete-button span {
  position: relative;
  top: -1px;
}

.muted-word-empty {
  padding: 12px 16px;
  margin: 0 16px 16px;
  border-radius: var(--card-border-radius);
  background: var(--post-hover-color);
  color: var(--text-color);
  font-style: italic;
  font-size: 14px;
}

.blocked-account-description,
.muted-account-description {
  padding: 16px 16px 16px;
  margin: 0;
  font-size: 14px;
  color: var(--text-color-secondary);
  border-bottom: var(--hair) solid var(--post-border-color);
}

.vertical-nav {
  display: flex;
  flex-direction: column;
}

.vertical-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  text-decoration: none;
  transition: background-color 0.2s;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font: inherit;
}

.vertical-nav-item:not(.danger-button) {
  color: inherit;
}

.vertical-nav hr {
  margin: 0;
}

.vertical-nav-item.active {
  pointer-events: none;
  cursor: default;
}

@media (hover: hover) {
  .vertical-nav-item:hover {
    background: var(--post-hover-color);
  }
}

.vertical-nav-icon {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vertical-nav-icon .icon {
  width: 26px;
  height: 26px;
}

.vertical-nav-icon .icon path {
  stroke: var(--text-color);
}

.vertical-nav-label {
  flex: 1;
}

.vertical-nav-arrow .icon {
  width: 20px;
  height: 20px;
}

.vertical-nav-arrow .icon path {
  stroke: var(--text-color-muted);
}

.settings-account-avatar-stack {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  flex-shrink: 0;
}

.settings-account-avatar-stack .avatar {
  width: 24px;
  height: 24px;
  margin-left: -8px;
}

.settings-account-avatar-stack .avatar:first-child {
  margin-left: 0;
}

.settings-account-avatar-stack .avatar .avatar-image-frame {
  width: 24px;
  height: 24px;
  border: 2px solid var(--background-color);
  border-radius: 50%;
  overflow: hidden;
}

.settings-account-avatar-stack .avatar .avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.settings-account-row .vertical-nav-icon .avatar {
  width: 26px;
  height: 26px;
}

.settings-account-row .vertical-nav-icon .avatar .avatar-image-frame {
  width: 26px;
  height: 26px;
  border: none;
}

/* Keep the inline context-menu host out of flex layout so it doesn't add a
   `gap` between the ellipsis trigger and the right edge of the row. */
.settings-account-row > context-menu {
  position: absolute;
}

.settings-account-ellipsis {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-color-muted);
  width: 20px;
  height: 20px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.settings-account-ellipsis .icon {
  width: 16px;
  height: 16px;
}

.account-spinner {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (min-width: 800px) {
  .account-switcher-dialog {
    max-width: 410px;
  }
}

