* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif; color: #222; }
header { padding: 20px; border-bottom: 1px solid #eee; }
header h1 { margin: 0 0 8px; font-size: 22px; }
header p { margin: 0; color: #555; }

.controls { padding: 16px 20px; background: #fafafa; border-bottom: 1px solid #eee; }
.controls .row { display: flex; align-items: center; gap: 12px; margin: 8px 0; }
.controls button { padding: 10px 14px; border: 1px solid #ddd; border-radius: 10px; background: white; cursor: pointer; }
.controls button:disabled { opacity: .5; cursor: not-allowed; }
.controls select { padding: 8px 10px; border-radius: 8px; border: 1px solid #ddd; }
.hint { color: #777; font-size: 12px; margin-top: 6px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; padding: 20px; }
article h2 { margin: 0 0 8px; font-size: 16px; color: #333; }
.bubble { min-height: 84px; padding: 12px; border: 1px solid #eee; border-radius: 12px; background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.02); white-space: pre-wrap; }
.bubble.partial { color: #666; font-style: italic; background: #fcfcff; }
.bubble.final { border-color: #dce6ff; background: #f7faff; }

.tts-controls { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.tts-controls button { padding: 6px 10px; border: 1px solid #ddd; border-radius: 8px; background: #fff; cursor: pointer; }

footer { padding: 16px 20px; border-top: 1px solid #eee; color: #666; }
