body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f6f9;
    color: #1b1f24;
}

.container {
    max-width: 760px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

h1 {
    margin: 0 0 8px;
    font-size: 26px;
}

p {
    margin: 0 0 20px;
    color: #4b5563;
}

.controls {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

button {
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    cursor: pointer;
}

#startBtn {
    background: #0f766e;
    color: #fff;
}

#stopBtn {
    background: #b91c1c;
    color: #fff;
}

.secondary-btn {
    background: #0f172a;
    color: #fff;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.status {
    margin-bottom: 16px;
    font-weight: 600;
}

.results {
    display: grid;
    gap: 10px;
}

.chunk {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
    line-height: 1.5;
}

.chunk-title {
    font-size: 13px;
    color: #475569;
    margin-bottom: 4px;
}

.report-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.chunk-text {
    white-space: pre-wrap;
    min-height: 120px;
}

.chunk-text.loading {
    color: #64748b;
    font-style: italic;
}

.full-loader {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #64748b;
    font-size: 14px;
}

.hidden {
    display: none !important;
}

.spinner {
    width: 14px;
    height: 14px;
    border: 2px solid #cbd5e1;
    border-top-color: #0f766e;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
