.filter-input {
    width: 100%;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    color: #f1f5f9;
    font-size: 0.875rem;
}
.filter-input:focus {
    outline: none;
    border-color: #10b981;
}
html {
    height: 100%;
}
.dashboard-main {
    max-width: 100%;
    box-sizing: border-box;
}
.dashboard-content {
    overflow: hidden;
}
.dashboard-tables-area {
    min-height: 0;
}
.dashboard-table-panel:not(.hidden) {
    display: flex;
}
.table-scroll {
    flex: 1;
    min-height: 0;
    overflow-x: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}
.dashboard-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(30, 41, 59, 0.95);
    box-shadow: 0 1px 0 #334155;
}
.dashboard-table {
    min-width: 1320px;
}
.dashboard-table-ul {
    min-width: 1580px;
}
#ulFilterPanel .filter-input {
    padding: 0.35rem 0.5rem;
    font-size: 0.8125rem;
}
.ul-filter-row-1 .filter-input {
    min-width: 0;
}
.ul-filter-row-2 label {
    line-height: 1.2;
}
.dashboard-table th,
.dashboard-table td {
    white-space: nowrap;
}
.dashboard-table th.col-hidden,
.dashboard-table td.col-hidden {
    display: none !important;
    visibility: collapse !important;
    width: 0 !important;
    max-width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    font-size: 0 !important;
    line-height: 0 !important;
}

.col-picker-overlay {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(2px);
}
.col-picker-overlay.hidden {
    display: none !important;
}
.col-picker-dialog {
    width: 100%;
    max-width: 320px;
    max-height: min(80vh, 520px);
    display: flex;
    flex-direction: column;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 12px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    padding: 14px 16px 12px;
}
.col-picker-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}
.col-picker-close {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid #475569;
    background: #334155;
    color: #e2e8f0;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}
.col-picker-close:hover {
    background: #475569;
}
.col-picker-hint {
    margin-bottom: 8px;
}
.col-picker-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 4px 0;
    margin-bottom: 12px;
    border-top: 1px solid #334155;
    border-bottom: 1px solid #334155;
}
.col-picker-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 6px;
    font-size: 13px;
    color: #cbd5e1;
    cursor: pointer;
    border-radius: 6px;
}
.col-picker-item:hover {
    background: rgba(51, 65, 85, 0.45);
    color: #f8fafc;
}
.col-picker-item input {
    accent-color: #10b981;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.col-picker-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}
.col-picker-btn {
    font-size: 12px;
    padding: 7px 12px;
    border-radius: 6px;
    border: 1px solid #475569;
    cursor: pointer;
    transition: background-color 0.15s;
}
.col-picker-btn-ghost {
    background: #334155;
    color: #e2e8f0;
}
.col-picker-btn-ghost:hover {
    background: #475569;
}
.col-picker-btn-primary {
    background: #059669;
    border-color: #10b981;
    color: #fff;
}
.col-picker-btn-primary:hover {
    background: #047857;
}
.pct-up { color: #34d399; }
.pct-down { color: #f87171; }
.ajax-status {
    color: #34d399;
    font-weight: 600;
}
.ajax-status-updating {
    animation: ajax-status-blink 1.1s ease-in-out infinite;
}
@keyframes ajax-status-blink {
    0%, 100% { opacity: 1; color: #34d399; }
    50% { opacity: 0.3; color: #6ee7b7; }
}
.enrich-status-bar {
    font-size: 0.8125rem;
    padding: 0.625rem 0.875rem;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(52, 211, 153, 0.25);
    border-radius: 0.5rem;
    white-space: pre-wrap;
    word-break: break-word;
}
.ai-markdown {
    font-size: 0.875rem;
    line-height: 1.65;
}
.ai-markdown h3:first-child,
.ai-markdown h4:first-child {
    margin-top: 0;
}
.ai-markdown strong {
    font-weight: 600;
}
.ai-markdown em {
    font-style: italic;
    color: #cbd5e1;
}
.enrich-status-bar.text-red-400 {
    color: #f87171;
    font-weight: 600;
    border-color: rgba(248, 113, 113, 0.3);
}
.premium-cheap { color: #34d399; font-weight: 600; }
.premium-expensive { color: #f87171; font-weight: 600; }
.tv-link {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px 6px;
    border-radius: 4px;
    background: #1e3a5f;
    color: #93c5fd;
    font-size: 10px;
    text-decoration: none;
}
.tv-link:hover { background: #2563eb; color: white; }
.ai-pick { border-left: 3px solid #818cf8; padding-left: 8px; margin-bottom: 8px; }
.ai-action-buy { color: #34d399; }
.ai-action-watch { color: #fbbf24; }
.ai-action-avoid { color: #f87171; }
#drTableBody tr:hover { background: rgba(30, 41, 59, 0.5); }
.view-tab { border-bottom: 2px solid transparent; margin-bottom: -1px; }
.view-tab-active { color: #34d399; border-bottom-color: #34d399; }
.view-tab:hover { color: #e2e8f0; }
#ulTableBody tr:hover { background: rgba(30, 41, 59, 0.5); }
.sortable-th {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    transition: color 0.15s, background 0.15s;
}
.sortable-th:hover {
    color: #e2e8f0;
    background: rgba(51, 65, 85, 0.4);
}
.sortable-th.sort-asc::after,
.sortable-th.sort-desc::after {
    display: inline-block;
    margin-left: 4px;
    font-size: 10px;
    opacity: 0.9;
}
.sortable-th.sort-asc::after {
    content: '▲';
    color: #34d399;
}
.sortable-th.sort-desc::after {
    content: '▼';
    color: #34d399;
}
.row-highlight {
    background: rgba(234, 179, 8, 0.12) !important;
    box-shadow: inset 3px 0 0 #eab308;
}
.ul-row.cursor-pointer { cursor: pointer; }
#ulEditModal {
    position: fixed;
    inset: 0;
    z-index: 50;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    padding: 1rem;
}
#ulEditModal.hidden,
#ulEditModal[style*="display: none"] {
    display: none !important;
}
#ulEditModal:not(.hidden) {
    display: flex;
}
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    padding: 1rem;
}
.modal-backdrop.hidden { display: none !important; }
.modal-panel {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 0.75rem;
    padding: 1.25rem;
    width: 100%;
    max-width: 24rem;
}
.modal-panel-wide {
    max-width: 36rem;
}
