/* Shared by the application and design reference. Keep native form semantics. */
.status-chip.warning { color: #80591d; background: #faf1dd; }
.status-chip.negative { color: var(--negative, #a04438); background: var(--negative-bg, #f8eeea); }
.status-chip.active { color: #4f647f; background: #edf1f6; }
.status-chip.neutral { color: var(--muted, #6f6861); background: var(--accent-soft, #f0ebe6); }
.status-chip.review-state {
  margin-inline-start: 8px;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  vertical-align: middle;
}
.button.danger:hover:not(:disabled) {
  background: #f3dfd9;
  border-color: var(--negative, #a04438);
}
.review-dismiss {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line, #e9e3dd);
}
.review-dismiss [hidden] { display: none; }
.form-panel .review-dismiss-form {
  max-width: 600px;
  margin-top: 0;
  padding: 18px;
  border: 1px solid var(--line, #e9e3dd);
  border-radius: 10px;
  background: var(--canvas, #faf8f5);
}
.form-panel .review-dismiss-title { color: var(--ink, #302b27); }
.review-dismiss-form .field { margin: 16px 0 0; }
.review-dismiss-form .button-row { margin-top: 16px; }

select:not([multiple]):not([size]) {
  appearance: none;
  min-height: 44px;
  padding: 10px 42px 10px 14px;
  border-radius: 8px;
  background-image: url("../icons/chevron-down.9d482d056e3d.svg");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  cursor: pointer;
  transition: border-color 150ms, background-color 150ms;
}
select:not([multiple]):not([size]):hover:not(:disabled) {
  border-color: var(--accent, #7a6e65);
}
select:disabled {
  background-color: var(--canvas, #faf8f5);
  color: var(--muted, #6f6861);
  cursor: not-allowed;
  opacity: .65;
}
select[aria-invalid="true"] { border-color: var(--negative, #a04438); }

@supports (appearance: base-select) {
  select:not([multiple]):not([size]),
  select:not([multiple]):not([size])::picker(select) {
    appearance: base-select;
  }
  select:not([multiple]):not([size]) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-inline: 14px 17px;
    background-image: none;
  }
  select:not([multiple]):not([size])::picker-icon {
    content: '';
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    margin-block-start: -4px;
    border: solid var(--accent, #7a6e65);
    border-width: 0 1.75px 1.75px 0;
    rotate: 45deg;
    transition: rotate 150ms;
  }
  select:not([multiple]):not([size]):open {
    border-color: var(--accent, #7a6e65);
    background-color: var(--canvas, #faf8f5);
  }
  select:not([multiple]):not([size]):open::picker-icon {
    rotate: 225deg;
    margin-block-start: 4px;
  }
  select:not([multiple]):not([size])::picker(select) {
    margin-block: 6px;
    padding: 6px;
    min-inline-size: anchor-size(width);
    max-inline-size: calc(100vw - 32px);
    max-block-size: min(320px, 60vh);
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--line-strong, #d6ccc3);
    border-radius: 12px;
    background: var(--surface, #fff);
    color: var(--ink, #302b27);
    box-shadow: 0 6px 12px #302b2708, 0 16px 36px #302b2714;
    font: inherit;
  }
  select:not([multiple]):not([size]) option {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 40px;
    padding: 10px 12px;
    border-radius: 6px;
    color: inherit;
    background: transparent;
    white-space: normal;
    overflow-wrap: anywhere;
    cursor: pointer;
  }
  select:not([multiple]):not([size]) option:checked {
    color: var(--accent-dark, #60544b);
    background: var(--accent-soft, #f0ebe6);
    font-weight: 500;
  }
  select:not([multiple]):not([size]) option:hover:not(:disabled),
  select:not([multiple]):not([size]) option:focus-visible {
    background: var(--canvas, #faf8f5);
    outline: 1px solid var(--line-strong, #d6ccc3);
    outline-offset: -1px;
  }
  select:not([multiple]):not([size]) option:disabled {
    color: var(--muted, #6f6861);
    opacity: .55;
    cursor: not-allowed;
  }
  select:not([multiple]):not([size]) option::checkmark {
    content: '';
    order: 1;
    width: 6px;
    height: 10px;
    margin-inline-start: auto;
    margin-inline-end: 3px;
    border: solid currentColor;
    border-width: 0 1.75px 1.75px 0;
    rotate: 45deg;
  }
}

/* A result belongs below its explanation, with normal panel padding below it. */
.connection-result.notice {
  margin: 24px 0 0;
  padding: 16px 18px;
}
.connection-result.notice p {
  margin-top: 6px;
  color: inherit;
  font-size: 11px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

@media (prefers-reduced-motion: reduce) {
  select:not([multiple]):not([size]),
  select:not([multiple]):not([size])::picker-icon { transition: none; }
}
@media (forced-colors: active) {
  select:not([multiple]):not([size]) { appearance: auto; background-image: none; }
  select:not([multiple]):not([size])::picker(select) { appearance: auto; }
}
