.wpac-root { margin: 1rem 0; }
.wpac-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 900px) { .wpac-grid { grid-template-columns: minmax(400px, 1.6fr) minmax(380px, 1.2fr); align-items: start; } }
.wpac-side { display: flex; flex-direction: column; gap: 1rem; }
.wpac-video, .wpac-controls, .wpac-legend { border: 1px solid #e5e7eb; border-radius: 10px; padding: 12px; background: #fff; }
.wpac-media { width: min(100%, 520px); aspect-ratio: 9 / 16; background: #111; border-radius: 10px; object-fit: cover; display: block; margin: 0 auto; }
.wpac-processing { margin-top: 8px; min-height: 38px; padding: 8px 10px; border-radius: 10px; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; font-weight: 600; text-align: center; display: none; align-items: center; justify-content: center; }
.wpac-processing.is-visible { display: flex; }
.wpac-subtitles { margin-top: 8px; min-height: 52px; padding: 8px 10px; border-radius: 10px; background: #0f172a; color: #e2e8f0; text-align: center; display: flex; align-items: center; justify-content: center; }
.wpac-subtitles-text { font-size: 15px; line-height: 1.35; }
.wpac-actions { margin-top: 10px; display:flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.wpac-status { font-weight: 600; }
.wpac-timer { font-weight: 600; padding: 4px 8px; border-radius: 999px; background: #f8fafc; border: 1px solid #e2e8f0; color: #334155; }
.wpac-timer.is-expiring { background: #fff7ed; border-color: #fed7aa; color: #9a3412; }
.wpac-controls-title { margin: 0 0 10px; font-size: 16px; }
.wpac-control-label { margin: 0 0 6px; font-weight: 600; }
.wpac-session-actions, .wpac-voice-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.wpac-text-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 10px; align-items: center; }
.wpac-text-input { width: 100%; min-width: 0; padding: 8px 0px; border-radius: 8px; border: 1px solid #cbd5e1; }
.wpac-capture { min-height: 22px; margin: 10px 0 0; padding: 6px 8px; border-radius: 8px; background: #f8fafc; border: 1px solid #e2e8f0; color: #334155; font-size: 13px; }
@media (max-width: 640px) {
	.wpac-session-actions .button,
	.wpac-voice-actions .button { width: 100%; }
	.wpac-text-actions { grid-template-columns: 1fr; }
	.wpac-text-send { width: 100%; }
}
.wpac-debug { margin-top: 10px; }
.wpac-debug-pre { max-height: 220px; overflow: auto; background: #0b1020; color: #d1e7ff; padding: 10px; border-radius: 10px; }
.wpac-lang-buttons { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.wpac-lang-btn { font-size: 24px; padding: 4px 8px; border-radius: 6px; border: 1px solid transparent; background: #f1f5f9; cursor: pointer; transition: all 0.2s; line-height: 1; }
.wpac-lang-btn:hover { background: #e2e8f0; transform: scale(1.1); }
.wpac-lang-btn.active { background: #cbd5e1; border-color: #94a3b8; transform: scale(1.05); }
.wpac-lang-btn:disabled { opacity: 0.5; cursor: default; transform: none; }
.wpac-rec.is-recording { background: #dc2626; border-color: #b91c1c; color: #fff; box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2); }
.wpac-legend-title { margin: 0 0 8px; font-size: 15px; }
.wpac-legend-list { margin: 0; padding-left: 1.2rem; }
.wpac-legend-step { margin-bottom: 6px; }
.wpac-legend-step:last-child { margin-bottom: 0; }
