/* ==============================================
   Shared Components — normální CSS (bez @apply runtime)
   ============================================== */

.btn-mode {
    flex: 1;
    font-size: 0.875rem;
    font-family: var(--font-mono, ui-monospace, monospace);
    padding: 0.75rem;
    border: 1px solid;
    border-radius: 0.5rem;
    transition: color 0.15s, background-color 0.15s, border-color 0.15s;
}

.btn-mode--active,
.btn-mode-active {
    background: var(--t-btn-active-bg);
    border-color: var(--t-btn-active-border);
    color: var(--t-btn-active-text);
}

.btn-mode--inactive,
.btn-mode-inactive {
    background: var(--t-btn-inactive-bg);
    border-color: var(--t-btn-inactive-border);
    color: var(--t-btn-inactive-text);
    cursor: pointer;
}

.form-input {
    width: 100%;
    background: var(--t-input-bg);
    border: 1px solid var(--t-input-border);
    border-radius: 0.5rem;
    padding: 0.75rem;
    font-size: 1rem;
    color: var(--t-input-text);
    font-family: var(--font-mono, ui-monospace, monospace);
    outline: none;
}

.form-input::placeholder {
    color: var(--t-placeholder);
}

.form-input:focus {
    border-color: rgba(239, 68, 68, 0.5);
}

@media (min-width: 768px) {
    .form-input {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
}

.form-textarea {
    width: 100%;
    background: var(--t-input-bg);
    border: 1px solid var(--t-input-border);
    border-radius: 0.5rem;
    padding: 0.75rem;
    font-size: 1rem;
    color: var(--t-text);
    font-family: var(--font-mono, ui-monospace, monospace);
    outline: none;
    resize: vertical;
}

.form-textarea::placeholder {
    color: var(--t-placeholder);
}

.form-textarea:focus {
    border-color: rgba(239, 68, 68, 0.5);
}

@media (min-width: 768px) {
    .form-textarea {
        padding: 0.625rem 0.75rem;
        font-size: 0.875rem;
    }
}

.form-select {
    width: 100%;
    background: var(--t-input-bg);
    border: 1px solid var(--t-input-border);
    border-radius: 0.5rem;
    padding: 0.75rem;
    font-size: 1rem;
    color: var(--t-input-text);
    font-family: var(--font-mono, ui-monospace, monospace);
    outline: none;
}

.form-select:focus {
    border-color: rgba(239, 68, 68, 0.5);
}

@media (min-width: 768px) {
    .form-select {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
}

.glass-card {
    background: var(--t-glass-bg);
    border: 1px solid var(--t-glass-border);
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.section-label {
    font-family: var(--font-mono, ui-monospace, monospace);
    font-size: 10px;
    color: var(--t-accent);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.sidebar-label {
    font-size: 10px;
    font-family: var(--font-mono, ui-monospace, monospace);
    color: var(--t-text-muted);
    display: block;
    margin-bottom: 0.25rem;
}

.btn-submit {
    width: 100%;
    background: var(--t-submit-bg);
    border: 1px solid var(--t-submit-border);
    color: var(--t-submit-text);
    font-family: var(--font-mono, ui-monospace, monospace);
    font-size: 0.875rem;
    padding: 0.875rem;
    border-radius: 0.5rem;
    transition: background-color 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
}

.btn-submit:hover {
    background: var(--t-submit-hover);
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (min-width: 768px) {
    .btn-submit {
        padding: 0.625rem;
    }
}

.btn-small {
    font-size: 10px;
    font-family: var(--font-mono, ui-monospace, monospace);
    color: var(--t-text-muted);
    border: 1px solid var(--t-date-border);
    padding: 0.375rem 0.625rem;
    border-radius: 0.5rem;
    transition: color 0.15s, border-color 0.15s;
    cursor: pointer;
    background: none;
}

.btn-small:hover {
    color: var(--t-text);
    border-color: rgba(239, 68, 68, 0.3);
}

.btn-link {
    font-size: 10px;
    font-family: var(--font-mono, ui-monospace, monospace);
    color: var(--t-text-muted);
    transition: color 0.15s;
    cursor: pointer;
    background: none;
    border: none;
}

.btn-link:hover {
    color: var(--t-text);
}

.modal-action-btn {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: var(--t-close-bg);
    border: 1px solid var(--t-glass-border);
    color: var(--t-text-muted);
    transition: color 0.15s;
    cursor: pointer;
}

.modal-action-btn:hover {
    color: var(--t-accent);
}

.modal-action-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* ── Multi URL ── */
.multi-url-add-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    border-style: dashed;
}

.multi-url-remove {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.multi-url-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.multi-url-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.multi-mode-tabs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

/* ── Param grid (skills) ── */
.param-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}