/* ─── Agentursystem Workshop ───────────────────────────────────────────── */

#aw-workshop {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    max-width: 820px;
    margin: 0 auto;
    padding: 24px 16px;
    color: #1a1a2e;
}

/* Progress */
.aw-progress {
    background: #e8e8f0;
    border-radius: 8px;
    height: 6px;
    margin-bottom: 8px;
    overflow: hidden;
}
.aw-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    border-radius: 8px;
    width: 0%;
    transition: width 0.5s ease;
}
.aw-step-label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 28px;
    text-align: right;
}

/* Step */
.aw-step-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #1a1a2e;
}
.aw-step-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 20px;
}

/* Moderation Hint */
.aw-hint {
    background: #f0f0ff;
    border-left: 3px solid #4f46e5;
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 20px;
}
.aw-hint strong {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #4f46e5;
    margin-bottom: 8px;
}
.aw-hint ul {
    margin: 0;
    padding-left: 18px;
}
.aw-hint li {
    font-size: 13px;
    color: #374151;
    margin-bottom: 4px;
    font-style: italic;
}

/* Fields */
.aw-fields h4 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    margin: 24px 0 12px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 6px;
}
.aw-field {
    margin-bottom: 14px;
}
.aw-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 5px;
}
.aw-field input[type="text"],
.aw-field textarea,
.aw-field select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    color: #1a1a2e;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.15s;
}
.aw-field input[type="text"]:focus,
.aw-field textarea:focus,
.aw-field select:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}
.aw-field textarea {
    resize: vertical;
    min-height: 70px;
}

.aw-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}
.aw-field-row input {
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    box-sizing: border-box;
}
.aw-field-row input:focus {
    outline: none;
    border-color: #4f46e5;
}

/* Buttons */
.aw-nav {
    margin-top: 24px;
}
.aw-btn {
    display: inline-block;
    padding: 11px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.15s, transform 0.1s;
}
.aw-btn:active { transform: scale(0.98); }
.aw-btn-primary {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
}
.aw-btn-primary:hover { background: linear-gradient(135deg, #4338ca, #6d28d9); }
.aw-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    margin-left: 12px;
    border: 1px solid #e5e7eb;
}
.aw-btn-secondary:hover { background: #e5e7eb; }

/* Loading */
.aw-loading {
    padding: 20px;
    font-size: 14px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 10px;
}
.aw-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #e5e7eb;
    border-top-color: #4f46e5;
    border-radius: 50%;
    animation: aw-spin 0.7s linear infinite;
    display: inline-block;
}
@keyframes aw-spin { to { transform: rotate(360deg); } }

/* AI Response */
.aw-response {
    margin-top: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}
.aw-ai-label {
    background: #f8f9ff;
    padding: 10px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #4f46e5;
    border-bottom: 1px solid #e5e7eb;
}
.aw-ai-content {
    padding: 16px 20px;
    font-size: 14px;
    line-height: 1.7;
    color: #374151;
    max-height: 480px;
    overflow-y: auto;
}
.aw-ai-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 16px 0 6px;
}
.aw-ai-content ul {
    padding-left: 18px;
    margin: 6px 0;
}
.aw-ai-content li {
    margin-bottom: 3px;
}
.aw-ai-content strong { color: #1a1a2e; }
.aw-ai-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin: 10px 0;
}
.aw-ai-content tr { border-bottom: 1px solid #f3f4f6; }
.aw-ai-content td { padding: 6px 8px; }

/* Tier & Model badges */
.aw-tier-badge,
.aw-model-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 7px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    vertical-align: middle;
}
.aw-tier-fast     { background: #d1fae5; color: #065f46; }
.aw-tier-standard { background: #dbeafe; color: #1e40af; }
.aw-tier-complex  { background: #ede9fe; color: #5b21b6; }
.aw-model-badge   { background: #f3f4f6; color: #6b7280; text-transform: none; font-weight: 500; }

/* Error */
.aw-error {
    padding: 14px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #b91c1c;
    font-size: 13px;
}

/* Final Output */
#aw-output {
    padding: 24px;
    background: #f8f9ff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}
#aw-output h3 {
    margin: 0 0 8px;
    font-size: 20px;
    color: #1a1a2e;
}
#aw-output p {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 20px;
}
.aw-md-preview {
    margin-top: 24px;
    background: #1a1a2e;
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
}
.aw-md-preview pre {
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
    color: #a5b4fc;
    white-space: pre-wrap;
    font-family: 'Fira Code', 'Courier New', monospace;
}

/* Responsive */
@media (max-width: 600px) {
    .aw-field-row {
        grid-template-columns: 1fr;
    }
    .aw-btn-secondary {
        margin-left: 0;
        margin-top: 8px;
        display: block;
    }
}
