/* Alt8Mail — modern, theme-aware native selects.
   Loaded after the page styles so every select shares the same affordance. */
:root { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { color-scheme: dark; }
}

select:not([multiple]) {
  appearance: none;
  -webkit-appearance: none;
  min-height: 34px;
  padding: 6px 32px 6px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%237a8797' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 11px 8px;
  color: var(--text);
  font: inherit;
  font-size: 0.75rem;
  line-height: 1.35;
  cursor: pointer;
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 42%, transparent);
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
select:not([multiple]):hover {
  border-color: color-mix(in srgb, var(--accent) 48%, var(--border-strong));
  background-color: var(--surface-2);
}
select:not([multiple]):focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus);
}
select:not([multiple]):disabled {
  opacity: .55;
  cursor: not-allowed;
}
select option {
  background: var(--surface);
  color: var(--text);
}
select option:disabled { color: var(--text-3); }

/* Compact selects keep their place in dense toolbars and version rows. */
.pref-select:not([multiple]),
.compose-editor-toolbar select:not([multiple]),
.office-compare-controls select:not([multiple]),
.office-review-select:not([multiple]),
.compose-option select:not([multiple]),
.pulse-year select:not([multiple]),
.year-review-year select:not([multiple]),
.collab-field select:not([multiple]),
.files-toolbar .pref-select:not([multiple]) {
  min-height: 28px;
  height: 28px;
  padding: 2px 27px 2px 8px;
  border-radius: 7px;
  font-size: 0.6875rem;
  background-position: right 8px center;
  background-size: 10px 7px;
}
.compose-attach-source .pref-select:not([multiple]) {
  min-height: 28px;
  height: 28px;
  padding: 2px 27px 2px 8px;
  border-radius: 7px;
}
.year-review-year select:not([multiple]) { color: #fff; background-color: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); }
.year-review-year select:not([multiple]) option { color: var(--text); background: var(--surface); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) select:not([multiple]) {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2394a3b8' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
  }
}
:root[data-theme="dark"] select:not([multiple]) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2394a3b8' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
}
