select[data-article-select] { --article-select-ready: 1; }
.article-select { position: relative; min-width: 0; max-width: 100%; }
.article-select[hidden], .article-select__popup[hidden],
.article-select__error[hidden] { display: none !important; }
.article-select > select.article-select__native {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
min-height: 0;
margin: 0;
opacity: 0;
pointer-events: none;
}
.article-select__trigger {
position: relative;
display: grid;
grid-template-columns: 24px minmax(0, 1fr) 10px;
align-items: center;
gap: 0.6rem;
width: 100%;
max-width: 100%;
min-width: 0;
min-height: 44px;
padding: 0.55rem 0.7rem;
border: 1px solid var(--border, #263341);
border-radius: 8px;
background: var(--bg, #0a0e12);
color: var(--text, #d7e2ec);
font: 0.95rem/1.4 var(--font, monospace);
text-align: left;
cursor: pointer;
touch-action: manipulation;
}
.article-select__trigger:focus-visible,
.article-select__trigger[aria-expanded="true"] {
outline: none;
border-color: #00e0ff;
box-shadow: 0 0 8px rgba(0, 224, 255, 0.25);
}
.article-select__trigger:disabled { opacity: 0.5; cursor: default; box-shadow: none; }
.article-select__trigger[aria-invalid="true"] { border-color: var(--expense, #ff4fd8); }
.article-select__value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.article-select__chevron {
width: 7px;
height: 7px;
border-right: 1.5px solid var(--muted, #6b7d8f);
border-bottom: 1.5px solid var(--muted, #6b7d8f);
transform: rotate(45deg) translateY(-2px);
}
.article-select__icon-slot { display: flex; width: 24px; height: 24px; align-items: center; justify-content: center; }
.article-select__icon {
display: block;
width: 24px;
height: 24px;
object-fit: contain;
filter: drop-shadow(0 0 4px rgba(0, 224, 255, 0.48));
}
.article-select__popup {
position: fixed;
z-index: 10000;
box-sizing: border-box;
overflow-x: hidden;
overflow-y: auto;
overscroll-behavior: contain;
-webkit-overflow-scrolling: touch;
padding: 4px;
border: 1px solid rgba(0, 224, 255, 0.48);
border-radius: 10px;
background: var(--panel, #131a21);
color: var(--text, #d7e2ec);
box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 14px rgba(0, 224, 255, 0.12);
font: 0.95rem/1.4 var(--font, monospace);
color-scheme: dark;
}
.article-select__option {
display: grid;
grid-template-columns: 24px minmax(0, 1fr) 16px;
align-items: center;
gap: 0.6rem;
min-height: 44px;
padding: 7px 8px;
border: 1px solid transparent;
border-radius: 6px;
cursor: pointer;
}
.article-select__option-text { min-width: 0; overflow-wrap: anywhere; }
.article-select__option[aria-selected="true"] { color: #00e0ff; }
.article-select__option.is-active { border-color: rgba(0, 224, 255, 0.55); background: rgba(0, 224, 255, 0.08); }
.article-select__option[aria-disabled="true"] { opacity: 0.4; cursor: default; }
.article-select__check { visibility: hidden; color: #00e0ff; text-align: center; }
.article-select__option[aria-selected="true"] .article-select__check { visibility: visible; }
.article-select__empty { padding: 0.6rem; color: var(--muted, #6b7d8f); }
.article-select__error { color: var(--expense, #ff4fd8); font-size: 0.85rem; overflow-wrap: anywhere; }
@media (max-width: 600px) {
.article-select__trigger, .article-select__popup { font-size: 16px; }
}
@media (forced-colors: active) {
.article-select__trigger, .article-select__popup { border-color: ButtonText; }
.article-select__option.is-active { outline: 1px solid Highlight; }
.article-select__icon { filter: none; }
}