.itp-tool {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.itp-title {
    font-size: 1.6rem;
    margin: 0 0 0.25rem 0;
    color: #0f172a;
}

.itp-subtitle {
    margin: 0 0 1rem 0;
    color: #475569;
    font-size: 0.95rem;
}

.itp-panel {
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    padding: 1rem;
    margin-top: 1rem;
    background-color: #f8fafc;
}

.itp-upload-panel {
    background-color: #f1f5f9;
}

.itp-settings-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    align-items: flex-end;
}

.itp-file-label {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    background-color: #0f766e;
    color: #ffffff;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
}

.itp-file-label input[type="file"] {
    display: none;
}

.itp-dropzone {
    margin-top: 0.75rem;
    padding: 0.9rem;
    border-radius: 6px;
    border: 2px dashed #cbd5f5;
    background-color: #e2e8f0;
    text-align: center;
    color: #475569;
    font-size: 0.9rem;
}

.itp-dropzone.itp-dropzone-dragover {
    border-color: #0f766e;
    background-color: #ccfbf1;
    color: #0f172a;
}

.itp-hint {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #64748b;
}

.itp-field-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.itp-field-group label {
    font-size: 0.9rem;
    color: #0f172a;
    font-weight: 500;
}

.itp-field-note {
    font-size: 0.8rem;
    color: #64748b;
}

.itp-field-group input[type="number"],
.itp-field-group select {
    padding: 0.4rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    font-size: 0.9rem;
}

.itp-field-group input[type="range"] {
    width: 100%;
}

.itp-range-value {
    font-size: 0.85rem;
    color: #0f172a;
}

.itp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    color: #0f172a;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
    margin-right: 0.4rem;
    margin-top: 0.3rem;
}

.itp-button:hover {
    background-color: #e2e8f0;
    border-color: #94a3b8;
}

.itp-button:active {
    transform: scale(0.97);
}

.itp-button-primary {
    background-color: #0f766e;
    border-color: #0f766e;
    color: #ffffff;
}

.itp-button-primary:hover {
    background-color: #115e59;
}

.itp-section-title {
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
    color: #0f172a;
}

.itp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.itp-table th,
.itp-table td {
    border: 1px solid #e2e8f0;
    padding: 0.4rem 0.5rem;
    text-align: left;
    vertical-align: middle;
}

.itp-table th {
    background-color: #e2e8f0;
    font-weight: 600;
    color: #0f172a;
}

.itp-preview {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
}

.itp-progress {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background-color: #e2e8f0;
    overflow: hidden;
}

.itp-progress-bar {
    height: 100%;
    width: 0;
    background-color: #0f766e;
    transition: width 0.15s linear;
}

.itp-progress-text {
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: #475569;
}

.itp-textarea {
    width: 100%;
    padding: 0.6rem;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    font-family: monospace;
    font-size: 0.9rem;
    resize: vertical;
}

.itp-actions-row {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

@media (max-width: 768px) {
    .itp-tool {
        padding: 1rem;
    }

    .itp-settings-panel {
        grid-template-columns: 1fr;
    }

    .itp-table th,
    .itp-table td {
        font-size: 0.8rem;
    }
}
