/* ---- Queue ---- */
.queue-section {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.queue-item {
    padding: 0.45rem 0.7rem;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    transition: 0.15s;
}

.queue-item.loading {
    color: var(--c-green);
    border-color: var(--c-green);
    background: #e6f5f1;
    cursor: default;
}

.queue-item.done {
    color: var(--c-teal);
    cursor: pointer;
}
.queue-item.done:hover { background: var(--c-bg-sunken); }

.queue-item.greyed {
    color: #999;
    background: #f0f0f0;
    border-color: #ccc;
    cursor: default;
}

/* ---- Output (expandable results list) ---- */
.output-section {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.output-item {
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    background: white;
}
.output-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    color: var(--c-teal);
    font-weight: 600;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    background: transparent;
    text-align: left;
}

.output-body {
    margin-top: 10px;
    padding: 12px 16px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    background: var(--c-bg-sunken);
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
}

.output-body pre {
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
    font-size: 0.85rem;
    font-family: var(--font-mono);
}

/* ---- Drag and Drop ----- */
#drop-zone {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    min-height: 140px;
    padding: 1.25em;
    line-height: 1.4;
    border: 1.5px dashed var(--c-border);
    border-radius: var(--radius-sm);
    color: var(--c-text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    gap: 0.5em;
    overflow-y: auto;
    margin-bottom: 0.6rem;
    transition: 0.15s;
}

#drop-zone:hover {
    border-color: var(--c-green);
    background: var(--c-bg-sunken);
}

#drop-zone.disabled {
    display: none;
}

#file-selector {
    display: none;
}

#preview {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.3em;
    list-style: none;
    padding: 0;
    margin: 0;
}

#preview li {
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin: 0;
    width: 100%;
    height: auto;
    font-family: var(--font-mono);
    font-size: 0.82rem;
}

#preview img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

#input-area {
    display: flex;
    flex-direction: column;
    width: 100%;
}

#text-input-area {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25em;
    line-height: 1.4;
    width: 100%;
    min-height: 140px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    border: 1px dashed var(--c-border);
    border-radius: var(--radius-sm);
    color: var(--c-text);
    cursor: text;
    gap: 0.5em;
    resize: none;
    overflow-y: auto;
    text-align: left;
    margin-bottom: 0.6rem;
    transition: 0.15s;
}

#text-input-area:focus {
    border-color: var(--c-green);
}

#text-input-area::placeholder {
    color: var(--c-text-muted);
}


/* --- other --- */
#entryBox-component {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

#entryBox-component:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f0f0f0;
    color: #999;
    border-color: #ccc;
}

/* parameters (rendered by input.js into #parameters) */
#parameters .form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--c-text-muted);
    margin: 0.6rem 0 0.3rem;
}

#parameters .form-select,
#parameters .form-control {
    width: 100%;
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: 0.85rem;
    background: white;
}

#parameters .form-check,
#parameters-high .form-check {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
}

#parameters-high .form-label,
#parameters-high .form-select,
#parameters-high .form-control {
    font-size: 0.8rem;
}
#parameters-high .form-select,
#parameters-high .form-control {
    padding: 0.35rem 0.5rem;
}


/* ---- Model cards ---- */
.model-card.disabled {
    opacity: 0.45;
    filter: grayscale(1);
    cursor: not-allowed;
}

.model-card.disabled:hover {
    transform: none;
}
.model-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.model-card {
    display: block;
    width: 100%;
    text-align: left;
    background: white;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.7rem;
    cursor: pointer;
    transition: 0.15s;
}

.model-card:hover {
    border-color: var(--c-green);
    background: var(--c-bg-sunken);
}

.model-card.active {
    border-color: var(--c-teal);
    background: rgba(1, 92, 99, 0.06);
}

.model-card-name {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--c-text);
    word-break: break-word;
}

.model-card.active .model-card-name {
    color: var(--c-teal);
}

.model-card-descriptor {
    font-size: 0.78rem;
    color: var(--c-text-muted);
    margin-top: 0.15rem;
}

.model-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.4rem;
}

.model-badge {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    padding: 0.12rem 0.4rem;
    border-radius: 999px;
    background: var(--c-bg-sunken);
    border: 1px solid var(--c-border);
    color: var(--c-text-muted);
}

.model-badge.warn {
    background: #fdf3e6;
    border-color: #eecb9a;
    color: #8a5a1f;
}

[title] {
    cursor: help;
}

.param-options-hint {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--c-text-muted);
    margin: -0.2rem 0 0.6rem;
}

/* auto-download + view-toggle + test-toggle share the pill look */
#auto-download-toggle,
#view-toggle,
#test-toggle,
#more-settings-btn {
    width: 100%;
    display: block;
    margin-top: 0.5rem;
    text-align: left;
}

/* error / waiting popups */
.alert {
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

#error-popup {
    background: #fdecea;
    border: 1px solid #f3b4ac;
    color: #8a2c22;
}

#waiting-popup {
    background: white;
    border: 1px solid var(--c-border);
    color: var(--c-teal);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.d-none {
    display: none !important;
}