'''
+ for name in SORTED_SPK:
+ romaji = NAME_MAP.get(name, "Character")
+ html += f'''
+
+ '''
+ html += "
"
+ return html
+
+# --- 5. UI STYLE (BABY GREEN THEME) ---
+css = """
+:root {
+ --primary-600: #a8e6cf !important;
+ --accent-600: #a8e6cf !important;
+}
+.gradio-container, .gradio-container * {
+ --loader-color: #dcedc1 !important;
+}
+.ba-header-container {
+ border: 1.5px solid #e1f0e5;
+ border-radius: 12px;
+ margin-bottom: 12px;
+ background: white;
+ overflow: hidden;
+ line-height: 0;
+}
+.ba-header-container img {
+ width: 100%;
+ height: auto;
+}
+.status-container {
+ border: 1.5px solid #e1f0e5;
+ border-radius: 12px;
+ padding: 15px 22px;
+ margin-bottom: 20px;
+ background: white;
+}
+.status-title {
+ color: #88d498 !important;
+ font-weight: 800;
+ font-size: 16px;
+ margin-bottom: 8px;
+}
+.dot {
+ height: 8px;
+ width: 8px;
+ background-color: #88d498;
+ border-radius: 50%;
+ display: inline-block;
+ margin-right: 6px;
+ box-shadow: 0 0 0 0 rgba(136, 212, 152, 1);
+ animation: pulse-green 2s infinite;
+}
+@keyframes pulse-green {
+ 0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(136, 212, 152, 0.7); }
+ 70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(136, 212, 152, 0); }
+ 100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(136, 212, 152, 0); }
+}
+
+.text-green-bold { color: #88d498 !important; font-weight: 900 !important; }
+.text-blue-status { color: #88d498 !important; }
+.slim-card { max-width: 480px; margin: 0 auto; background: transparent; padding: 10px; }
+.char-img { border-radius: 15px; border: 1px solid #e1f0e5; margin-bottom: 15px; width: 100%; }
+.scroll-box { height: 220px; overflow-y: auto; border: 1px solid #f0f4f8; border-radius: 12px; padding: 10px; background: #fafbfc; margin-bottom: 10px; }
+.char-btn { background: white !important; border: 1px solid #e2e8f0 !important; border-left: 5px solid #a8e6cf !important; text-align: left !important; padding: 8px !important; font-size: 12px !important; margin-bottom: 4px !important; width: 100%; color: #4a5568 !important; }
+.warning-card { background: #fffcf0; border: 2px dashed #ffd3b6; border-radius: 10px; padding: 12px; margin-bottom: 15px; text-align: center; }
+
+.jp-btn {
+ background: #a8e6cf !important;
+ border: 1px solid #a8e6cf !important;
+ color: #ffffff !important;
+ font-weight: 700 !important;
+ border-radius: 10px !important;
+ margin-bottom: 10px;
+ font-size: 12px !important;
+ width: 100%;
+ cursor: pointer;
+}
+
+.gen-btn { background: #a8e6cf !important; color: #ffffff !important; font-weight: 700 !important; border-radius: 12px !important; height: 45px !important; width: 100%; border: none !important; cursor: pointer; }
+.info-header-custom { background: #dcedc1 !important; color: #4a5568 !important; border: none !important; border-radius: 8px 8px 0 0 !important; padding: 12px 15px !important; width: 100% !important; cursor: pointer; font-weight: 800 !important; margin-top: 5px; }
+.credit-footer { margin-top: 25px; padding: 15px; background: white; border-radius: 12px; text-align: center; border-bottom: 4px solid #a8e6cf; color: #94a3b8; font-weight: 700; font-size: 12px; letter-spacing: 2px; }
+
+.gif-container { display: flex; justify-content: center; margin-top: 15px; margin-bottom: 10px; width: 100%; }
+.gif-container img { border-radius: 12px; max-width: 100%; height: auto; border: 1.5px solid #e1f0e5; object-fit: contain; }
+
+label[for="input_text"] {
+ background: #a8e6cf !important;
+ color: #4a5568 !important;
+ padding: 6px 12px !important;
+ border-radius: 12px !important;
+ font-weight: 600 !important;
+ display: inline-block !important;
+ width: auto !important;
+ margin-bottom: 6px !important;
+}
+"""
+
+with gr.Blocks(css=css) as app:
+ with gr.Column(elem_classes="slim-card"):
+ gr.HTML("""
+
+