/*chatgpt-runtime.css*/
#chatgpt-app {
    border:1px solid #ccc;
    padding:10px;
    margin-top:0px;
    isolation: isolate;   /* ← MAGIC LINE */
}
.chatgpt-box textarea {
	width:75%;
	height:70px;
	vertical-align: top;
	background-color: #ccc;
}
#chatgpt-categories {
	background-color: #ccc;
	margin-right: 5px;
}
.chatgpt-box button {
	margin-top:0px;
}
#chatgpt-output {
	white-space: pre-wrap;
}
/*#chatgpt-categories,
#chatgpt-input {
    display: inline-block;
    margin-right: 10px;
    vertical-align: bottom;
}*/
@media print {
	#chatgpt-send,
	#chatgpt-print,
	#chatgpt-categories,
	#chatgpt-input {
		display: none;
	}
}
.chatgpt-instructions {
    margin-bottom: 12px;
    padding: 8px 10px;
    background: #09292C;
    border-left: 4px solid #F4D4A8;
    font-size: 0.95em;
    line-height: 1.4;
    color: #F4D4A8;
}
.chatgpt-emoji {
    background: white;
    border-radius: 4px;
    padding: 2px 4px;
}
#chatgpt-tts-button,
#chatgpt-voice,
#chatgpt-language,
#chatgpt-speed {
    margin-left: 5px;
}
.chatgpt-learning-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
	margin-bottom: 10px;
}
.chatgpt-tts-wrap {
    position: relative;
    z-index: 10;
	margin-top: 0px;
}
.chatgpt-input-area {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
#chatgpt-send {
    align-self: flex-start;
}
.chatgpt-message {
    margin-bottom: 0em;
    padding: 0.3em;
    border-bottom: 1px solid #eee;
    white-space: pre-wrap;
    display: flex;              /* ⭐ ADD */
    flex-direction: column;      /* ⭐ ADD (critical) */
}
.chatgpt-pronunciation-wrap {
    margin-top: 8px;
    display: flex;
    gap: 6px;
}
.chatgpt-pronunciation-wrap button {
    cursor: pointer;
}
.chatgpt-pronunciation-feedback {
    margin-top: 8px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 8px;
    font-size: 14px;
}
.chatgpt-transcript {
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.5;
}
.chatgpt-issue-row {
    margin-bottom: 6px;
    padding: 6px;
    background: #f5f5f5;
    border-radius: 6px;
}
.chatgpt-overall-feedback {
    margin-top: 10px;
    font-style: italic;
}
.pronunciation-issue {
    background: #ffeb3b;
    padding: 2px 5px;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.2s;
}
.pronunciation-issue:hover {
    background: #ffd600;
    transform: scale(1.05);
}
.accent-score-wrap {
    margin-bottom: 15px;
}
.accent-score-label {
    font-size: 14px;
    margin-bottom: 6px;
}
.accent-score-bar {
    height: 10px;
    background: #e0e0e0;
    border-radius: 20px;
    overflow: hidden;
}
.accent-score-fill {
    height: 100%;
    border-radius: 20px;
    transition: width 0.6s ease;
    /*background: linear-gradient(90deg, #4caf50, #8bc34a);*/
}
.accent-feedback {
    font-size: 14px;
    padding: 10px;
    border-radius: 10px;
    background: #f5f5f5;
    margin-bottom: 12px;
}
#chatgpt-accent-graph-wrap {
    margin-top: 20px;
    padding: 10px;
    background: rgba(0,0,0,0.04);
    border-radius: 12px;
}
.chatgpt-accent-title {
    font-size: 14px;
    margin-bottom: 8px;
    opacity: 0.7;
}
#chatgpt-accent-graph {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 80px;
}
.chatgpt-accent-bar {
    flex: 1;
    background: linear-gradient(to top, #4caf50, #81c784);
    border-radius: 6px;
    min-height: 5px;
    transition: height 0.4s ease;
}
.chatgpt-pronunciation-result {
    margin-top: 12px;
    padding: 10px;
    background: rgba(76, 175, 80, 0.08);
    border-radius: 10px;
    animation: fadeIn 0.3s ease;
}
.accent-score {
    font-size: 14px;
    opacity: 0.7;
}
.accent-level {
    font-size: 18px;
    font-weight: bold;
    margin-top: 4px;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}
.chatgpt-streak-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ff9800;
    color: white;
    font-weight: bold;
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 9999;
    animation: popupFade 0.5s ease;
}
@keyframes popupFade {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}
#poyo_prompt_helper {
	color: #222222
}
.accent-score {
    text-align: center;
    margin-bottom: 12px;
}
.accent-score-value {
    font-size: 28px;
    font-weight: bold;
}
.accent-score-label {
    font-size: 13px;
    opacity: 0.7;
}