/*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-input {
    background: #dddddd;
}
@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;
	height: 40px;
}
.chatgpt-pronunciation-wrap button {
    cursor: pointer;
}
.chatgpt-pronunciation-feedback {
    color: #222;
    font-size: 14px;
    line-height: 1.4;
}
.chatgpt-pronunciation-feedback .chatgpt-transcript {
    color: #000;
    background: #f9f9f9;
    padding: 6px 8px;
    border-radius: 4px;
    margin-top: 5px;
    display: inline-block;
}
.chatgpt-feedback-transcript {
    font-size: 13px;
    opacity: 0.6;
    font-style: italic;
}
.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);
}
.chatgpt-accent-title {
    font-size: 14px;
    margin-bottom: 8px;
    opacity: 0.7;
}
.accent-level {
    font-size: 18px;
    font-weight: bold;
    margin-top: 4px;
}
.accent-score-label {
    font-size: 14px;
	color: #cccccc;
    margin-bottom: 6px;
    opacity: 0.7;
}
.accent-score {
    text-align: center;
    margin-bottom: 12px;
    font-size: 14px;
	color: #cccccc;
    opacity: 0.7;
}
.accent-score-value {
    font-size: 28px;
    font-weight: bold;
	color: #cccccc;
}
.accent-score-wrap {
    margin-bottom: 15px;
}
.accent-score-bar {
    height: 5px;
    background: #e0e0e0;
    border-radius: 20px;
    overflow: hidden;
}
.chatgpt-accent-bar {
    flex: 1;
    background: linear-gradient(to top, #4caf50, #81c784);
    border-radius: 6px;
    min-height: 5px;
    transition: height 0.4s ease;
}
.accent-score-fill {
    height: 100%;
    border-radius: 20px;
    transition: width 0.6s ease;
	color: #cccccc;
    /*background: linear-gradient(90deg, #4caf50, #8bc34a);*/
}
.accent-feedback {
    font-size: 14px;
    padding: 10px;
    border-radius: 10px;
    background: #f5f5f5;
    margin-bottom: 12px;
}
 .accent-score-feedback {
	color: #cccccc;
 }
 .chatgpt-feedback-card {
    padding: 14px;
    border-radius: 14px;
    background: #dddddd;
    border: 1px solid #e5e7eb;
    animation: fadeIn 0.25s ease;
	margin-top: 8px;
}
.chatgpt-feedback-score {
    font-size: 26px;
    font-weight: bold;
    color: #111827;
}
.chatgpt-feedback-level {
    font-weight: bold;
    margin-bottom: 6px;
    color: #2f26c5;
}
.chatgpt-feedback-text, .chatgpt-feedback-tone {
    font-size: 14px;
    opacity: 0.85;
    margin-bottom: 8px;
	color: #000000;
}
#chatgpt-accent-graph-wrap {
    margin-top: 20px;
    padding: 10px;
    background: rgba(0,0,0,0.04);
    border-radius: 12px;
}
#chatgpt-accent-graph {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 80px;
}
.chatgpt-pronunciation-result {
    margin-top: 12px;
    padding: 10px;
    background: rgba(76, 175, 80, 0.08);
    border-radius: 10px;
    animation: fadeIn 0.3s ease;
}
.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 fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes popupFade {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}
#poyo_prompt_helper {
	color: #222222
}
.chatgpt-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    margin-bottom: 12px;
    border-radius: 12px;
    /*background: linear-gradient(135deg, #f5f7ff, #eef2ff);*/
	background: #dddddd;
    font-size: 14px;
}
.chatgpt-progress-level {
    font-weight: bold;
    color: #2f26c5;
}
.chatgpt-progress-points {
    opacity: 0.8;
    font-weight: bold;
    color: #2f26c5;
}
.chatgpt-feedback-score.good  { color: #059669; }
.chatgpt-feedback-score.ok    { color: #d97706; }
.chatgpt-feedback-score.bad   { color: #dc2626; }
