/* ==================== Chat Monitor 固有スタイル ==================== */
/* 共通スタイルは /tools/shared/styles/common.css で定義 */

/* Auth Button（CM固有デザイン） */
.auth-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(45deg, #9146ff, #7c3aed);
    color: white;
    border: none;
    padding: 18px 36px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(145, 70, 255, 0.3);
}

.auth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(145, 70, 255, 0.5);
}

.auth-button svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Setting Group */
.setting-group {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 24px;
    margin: 20px 0;
    border: 1px solid rgba(145, 70, 255, 0.15);
}

.setting-group h4 {
    color: #00ff88;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.setting-row:last-child {
    border-bottom: none;
}

.setting-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 15px;
}

.setting-control {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 52px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 28px;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(45deg, #9146ff, #7c3aed);
    border-color: transparent;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* Result Box */
.result-box {
    background: rgba(0, 255, 136, 0.08);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 16px;
    padding: 28px;
    margin-top: 24px;
}

.result-url {
    background: rgba(0, 0, 0, 0.5);
    padding: 18px;
    border-radius: 10px;
    word-break: break-all;
    font-family: 'JetBrains Mono', monospace;
    color: #00ff88;
    margin: 16px 0;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

/* Status */
.status {
    margin-top: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.status.success {
    color: #00ff88;
}

.status.error {
    color: #ff6b9d;
}

/* ==================== Step 2: Customize 固有 ==================== */

/* セクションH3 */
h3.section-h3 {
    color: #00ff88;
    font-size: 18px;
    margin: 32px 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 255, 136, 0.3);
}

h3.section-h3:first-of-type {
    margin-top: 16px;
}

/* info-boxバリエーション */
.info-box-section {
    margin-bottom: 24px;
    padding: 20px;
}

/* セクションタイトル */
.info-box h4.section-title,
.info-box h3.section-title {
    margin-top: 0;
    color: #00ff88;
    font-size: 16px;
}

/* セクション説明文 */
.info-box .section-desc {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 20px;
}

.info-box .feature-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 8px;
    line-height: 1.5;
}

/* 通知ブロック */
.notification-block {
    padding: 16px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
}

.notification-block.mb-16 {
    margin-bottom: 16px;
}

/* チェックボックスラベル（disabled追加） */
.checkbox-label.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.checkbox-label.disabled .checkbox-input {
    cursor: not-allowed;
}

/* COMING SOON バッジ */
.badge-coming-soon {
    font-size: 10px;
    padding: 2px 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}

/* 通知オプション */
.notification-options {
    display: none;
    margin-top: 12px;
}

.notification-options.with-indent {
    margin-left: 28px;
}

/* クレジットテキスト */
.credit-text {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    margin-top: 8px;
}

/* オプショングループ（CM固有：2カラム） */
.option-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* オプションアイテム（CM固有デザイン） */
.option-item {
    padding: 14px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    border: 2px solid rgba(145, 70, 255, 0.3);
    background: rgba(145, 70, 255, 0.05);
    transition: background 0.2s, border-color 0.2s;
}

.option-item:hover {
    background: rgba(145, 70, 255, 0.1);
}

.option-item.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.option-item input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 2px 0 0 0;
    flex-shrink: 0;
}

.option-title {
    font-size: 13px;
    font-weight: 600;
}

.option-desc {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    margin: 4px 0 0 0;
}

/* テキストエリア */
.form-textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid rgba(145, 70, 255, 0.3);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
}

.form-textarea:focus {
    outline: none;
    border-color: #9146ff;
}

/* ヒントテキスト */
.hint-text {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    margin-top: 8px;
    margin-bottom: 0;
    line-height: 1.5;
}

/* ヒントテキスト行（変数 + テンプレートボタン） */
.hint-text-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 8px;
}

.hint-text-row .hint-text {
    flex: 1;
    min-width: 0;
    margin-top: 0;
}

.hint-text-row .char-counter {
    flex-shrink: 0;
    margin-top: 0;
    margin-left: auto;
    white-space: nowrap;
}

/* テンプレート挿入ボタン */
.template-btn {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    padding: 0 8px 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: auto;
    margin-right: 8px;
    flex-shrink: 0;
    white-space: nowrap;
}

.template-btn:hover {
    color: #9146ff;
    border-color: #9146ff;
    background: rgba(145, 70, 255, 0.1);
}

/* テキスト入力（disabled） */
.form-input-disabled {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 14px;
}

/* 隠し入力 */
.hidden-input {
    display: none;
}

/* ==================== Step 1: Auth 固有 ==================== */

/* 警告ボックス */
.warning-box {
    margin-top: 12px;
    padding: 10px;
    background: rgba(255, 0, 0, 0.35);
    border: 1px solid rgba(255, 0, 0, 0.5);
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

/* URL読み込みセクション（CM固有クラス名） */
.url-load-section {
    margin: 24px 0;
    padding: 24px;
    border: 2px dashed rgba(145, 70, 255, 0.4);
    border-radius: 16px;
    background: rgba(145, 70, 255, 0.03);
    backdrop-filter: blur(10px);
    text-align: center;
}

.url-load-title {
    margin-top: 0;
    color: #9146ff;
    font-size: 22px;
}

.url-load-note {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.url-load-input {
    margin: 16px 8px 16px 0;
    width: 100%;
    max-width: 500px;
}

.btn-load {
    background: linear-gradient(45deg, #17a2b8, #138496);
}

.url-load-result {
    margin-top: 16px;
}

/* OR区切り */
.divider-or {
    text-align: center;
    margin: 30px 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
    font-weight: 600;
}

/* 大きいボタン */
.btn-large {
    padding: 20px 40px;
    line-height: 1.6;
}

/* トークン表示 */
.token-display {
    margin-top: 30px;
}

/* 成功タイトル（緑） */
.success-title {
    margin-top: 0;
    color: #00ff88;
}

/* プライバシーセクション */
.privacy-block {
    margin-bottom: 16px;
}

.privacy-title {
    display: block;
    margin-bottom: 6px;
}

.privacy-list {
    margin-top: 0;
}

/* ==================== Step 3: Generate 固有 ==================== */

/* 結果タイトル */
.result-title {
    color: #00ff88;
    margin-bottom: 16px;
}

/* ステータスメッセージ */
.status-message {
    margin-bottom: 12px;
    font-weight: 600;
}

/* 結果ヒント */
.result-hint {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
}

/* ボタングループ中央 */
.btn-group-center {
    justify-content: center;
}

/* 使い方タイトル */
.how-to-use-title {
    margin-top: 0;
    color: #00ff88;
    font-size: 16px;
}

/* 使い方リスト */
.how-to-use-list {
    margin: 16px 0 0 0;
    padding-left: 20px;
    color: rgba(255, 255, 255, 0.8);
}

.how-to-use-item {
    margin-bottom: 8px;
}

.how-to-use-item:last-child {
    margin-bottom: 0;
}

/* ==================== レスポンシブ（CM固有調整） ==================== */
@media (max-width: 768px) {
    .option-group {
        grid-template-columns: 1fr;
    }
}

/* ==================== メッセージ管理ボタン ==================== */
.test-send-btn {
    padding: 8px 12px;
    background: rgba(0, 200, 100, 0.2);
    border: 1px solid rgba(0, 200, 100, 0.4);
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
}

.test-send-btn:hover {
    background: rgba(0, 200, 100, 0.3);
    border-color: rgba(0, 200, 100, 0.6);
}

/* イベントテストボタン（モックデータで変数展開） */
.event-test-btn {
    padding: 8px 12px;
    background: rgba(147, 112, 219, 0.2);
    border: 1px solid rgba(147, 112, 219, 0.4);
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
}

.event-test-btn:hover {
    background: rgba(147, 112, 219, 0.3);
    border-color: rgba(147, 112, 219, 0.6);
}

.message-delete-btn {
    padding: 8px 12px;
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid rgba(255, 0, 0, 0.4);
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
}

.message-delete-btn:hover {
    background: rgba(255, 0, 0, 0.3);
    border-color: rgba(255, 0, 0, 0.6);
}

.message-add-btn {
    padding: 6px 12px;
    background: rgba(145, 70, 255, 0.2);
    border: 1px solid rgba(145, 70, 255, 0.4);
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.message-add-btn:hover {
    background: rgba(145, 70, 255, 0.3);
    border-color: rgba(145, 70, 255, 0.6);
}

/* ==================== Messages (共通) ==================== */
.messages-container {
    margin-bottom: 12px;
}

.message-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.message-item .emote-input-wrapper {
    flex: 1;
    min-width: 0;
}

/* ==================== welcome-header-row ==================== */
.welcome-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.welcome-header-row .checkbox-label {
    flex: 1;
}

.welcome-test-all {
    display: none;
    align-items: center;
    gap: 6px;
}

.welcome-test-all.visible {
    display: flex;
}

.welcome-test-label {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
}

/* ==================== chatSenderSection ==================== */
#chatSenderSection {
    margin-top: 16px;
    padding: 16px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    display: none;
}

#chatSenderSection > label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
}

#chatSenderSection .sender-desc {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 16px;
}

#chatSenderSection .option-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 0;
}

#chatSenderSection .option-item {
    padding: 14px 14px 14px 48px;
    cursor: pointer;
}

#chatSenderSection .option-item input[type="radio"] {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
}

#chatSenderSection .option-title {
    font-size: 13px;
    font-weight: 600;
}

/* ==================== ヒントボックス ==================== */
.hint-box {
    margin-bottom: 20px;
    padding: 12px;
    background: rgba(0, 80, 50, 0.25);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 8px;
}

.hint-box-title {
    font-size: 12px;
    color: rgba(255,255,255,0.85);
    margin: 0 0 8px 0;
}

.hint-box-list {
    margin: 0;
    padding-left: 20px;
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
}

.hint-box-list .highlight {
    color: rgba(0, 255, 136, 0.9);
}

/* ==================== エモート入力 ==================== */
.message-input-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.message-input-row .emote-input-wrapper {
    flex: 1;
    min-width: 0;
}

.emote-input-wrapper {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    z-index: 100;
}

.input-container {
    flex: 1;
    min-width: 0;
}

.emote-input-editable {
    width: 100%;
    min-height: 44px;
    max-height: 9999px;
    overflow-y: auto;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 14px;
    line-height: 1.5;
    outline: none;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-all;
    white-space: pre-wrap;
}

.emote-input-editable:focus {
    border-color: rgba(145, 70, 255, 0.5);
    box-shadow: 0 0 8px rgba(145, 70, 255, 0.3);
}

.emote-input-editable:empty::before {
    content: attr(data-placeholder);
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

.emote-picker-btn {
    padding: 8px 12px;
    background: rgba(145, 70, 255, 0.2);
    border: 1px solid rgba(145, 70, 255, 0.4);
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
}

.emote-picker-btn:hover {
    background: rgba(145, 70, 255, 0.3);
    border-color: rgba(145, 70, 255, 0.6);
}

.emote-picker-btn.active {
    background: rgba(145, 70, 255, 0.4);
    border-color: #9146ff;
}

.emote-picker-dropdown {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 8px;
    width: 320px;
    max-height: 300px;
    background: rgba(20, 20, 30, 0.98);
    border: 1px solid rgba(145, 70, 255, 0.4);
    border-radius: 12px;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.emote-picker-dropdown.show {
    display: block;
}

.emote-picker-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.emote-picker-tab {
    flex: 1;
    padding: 10px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.emote-picker-tab:hover {
    background: rgba(145, 70, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.emote-picker-tab.active {
    background: rgba(145, 70, 255, 0.2);
    color: #9146ff;
    border-bottom: 2px solid #9146ff;
}

.emote-picker-content {
    max-height: 240px;
    overflow-y: auto;
    padding: 12px;
}

.emote-picker-empty {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
}

.emote-picker-loading {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.emote-picker-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.emote-picker-item {
    width: 40px;
    height: 40px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emote-picker-item:hover {
    background: rgba(145, 70, 255, 0.2);
    border-color: rgba(145, 70, 255, 0.4);
    transform: scale(1.1);
}

.emote-picker-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.emote-picker-sender-guide {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.emote-picker-sender-guide p {
    margin: 0 0 12px 0;
}

.emote-picker-guide-btn {
    background: linear-gradient(135deg, #9146FF 0%, #772CE8 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.emote-picker-guide-btn:hover {
    background: linear-gradient(135deg, #a366ff 0%, #8844f0 100%);
    transform: translateY(-1px);
}

.emote-input-editable img {
    display: inline-block;
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin: 0 2px;
    object-fit: contain;
}

.highlight-section {
    animation: highlightPulse 2s ease-out;
}

@keyframes highlightPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(145, 70, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(145, 70, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(145, 70, 255, 0);
    }
}

.flex-1 {
    flex: 1;
}

/* ==================== タブナビゲーション ==================== */
/* タブスタイルはcommon.cssで定義 */

/* ==================== 保存ボタン ==================== */
.save-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 16px;
}

.save-btn {
    padding: 12px 32px;
    background: #9146ff;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.save-btn:hover {
    background: #772ce8;
}

.save-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.save-status {
    font-size: 14px;
}

/* 通知ブロック重複定義を削除（前半で定義済み） */

/* ==================== サウンドオプション ==================== */
.sound-options-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sound-option {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    border: 2px solid transparent;
}

.sound-option.active {
    background: rgba(145, 70, 255, 0.25) !important;
    border-color: rgba(145, 70, 255, 0.6);
}

.sound-option input[type="radio"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.sound-preview-btn {
    padding: 2px 6px;
    background: rgba(145, 70, 255, 0.3);
    border: none;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    font-size: 10px;
    margin-left: 4px;
}

.sound-preview-btn:hover:not(:disabled) {
    background: rgba(145, 70, 255, 0.5);
}

.sound-preview-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* カスタム音源オプション */
.custom-sound-option {
    flex-wrap: wrap;
}

.custom-sound-filename {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-left: 4px;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sound-select-btn {
    padding: 2px 6px;
    background: rgba(0, 150, 255, 0.3);
    border: none;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    font-size: 10px;
    margin-left: 4px;
}

.sound-select-btn:hover {
    background: rgba(0, 150, 255, 0.5);
}

/* ==================== オプショングループ ==================== */
.option-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.option-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.option-item:hover {
    border-color: rgba(145, 70, 255, 0.3);
}

.option-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.option-title {
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.option-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    padding: 0;
}

.badge-coming-soon {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(255, 165, 0, 0.2);
    border: 1px solid rgba(255, 165, 0, 0.4);
    border-radius: 4px;
    font-size: 10px;
    color: #ffa500;
    margin-top: 8px;
}

/* ==================== チェックボックス ==================== */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-text {
    font-size: 14px;
    font-weight: 600;
}

.checkbox-text-sm {
    font-size: 13px;
}

/* ヒントテキスト重複定義を削除（前半で定義済み） */

/* セクションの重複定義を削除（前半で定義済み） */

.mb-20 {
    margin-bottom: 20px;
}

.mb-16 {
    margin-bottom: 16px;
}

.mb-12 {
    margin-bottom: 12px;
}

.mt-12 {
    margin-top: 12px;
}

.mt-8 {
    margin-top: 8px;
}

.mb-8 {
    margin-bottom: 8px;
}

/* ==================== フォーム要素共通 ==================== */
.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 13px;
    color: rgba(255,255,255,0.9);
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 14px;
    font-family: inherit;
}

.form-select {
    width: 100%;
    padding: 8px;
    border: 1px solid rgba(145, 70, 255, 0.3);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 14px;
    font-family: inherit;
}

.custom-command-role {
    width: auto;
    min-width: 120px;
    padding: 4px 8px;
    font-size: 12px;
    margin-left: 8px;
}

.input-narrow {
    width: 80px;
}

/* ==================== 文字カウンター ==================== */
.char-counter {
    font-size: 11px;
    text-align: right;
    margin-top: 4px;
    color: rgba(255,255,255,0.5);
}

/* ==================== Input Footer（char-counter + broadcaster-only） ==================== */
.input-footer {
    display: flex;
    align-items: flex-start;
    margin-top: 4px;
    flex-wrap: wrap;
    gap: 2px 0;
}

.input-footer .char-counter {
    margin-top: 0;
    flex-shrink: 0;
    white-space: nowrap;
    margin-left: auto;
}

.input-footer .hint-text {
    margin-top: 0;
    flex: 1;
    min-width: 0;
    margin-left: 8px;
}

.input-footer-spacer {
    flex: 1;
}

.sender-label {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    flex-shrink: 0;
    white-space: nowrap;
    margin-left: 12px;
}

.input-footer .sender-label:first-child {
    margin-left: 0;
}

.sender-select {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    padding: 1px 4px;
    cursor: pointer;
    flex-shrink: 0;
    width: auto;
    max-width: 100px;
    margin-left: 2px;
}

.sender-select:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
}

.broadcaster-only-label {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.broadcaster-only-label:hover {
    color: rgba(255,255,255,0.7);
}

.welcome-delay-input {
    width: 30px !important;
    height: 16px !important;
    min-width: 0 !important;
    max-width: 30px !important;
    min-height: 0 !important;
    max-height: 16px !important;
    box-sizing: border-box !important;
    font-size: 11px !important;
    line-height: 14px !important;
    text-align: center;
    color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 3px;
    padding: 0 !important;
    margin-left: 2px;
    flex: 0 0 30px;
    align-self: center;
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
    appearance: textfield;
}

.welcome-delay-label {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    margin-left: 12px;
    align-self: center;
    white-space: nowrap;
}

.welcome-delay-unit {
    font-size: 10px;
    color: rgba(255,255,255,0.5);
    margin-left: 2px;
    align-self: center;
    white-space: nowrap;
}

.welcome-delay-input::-webkit-outer-spin-button,
.welcome-delay-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.broadcaster-only-checkbox {
    width: 14px;
    height: 14px;
    cursor: pointer;
    margin: 0;
    padding: 0;
}

/* イベントアナウンス表示チェックボックス（broadcaster-only-labelと同デザイン） */
.event-announce-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    margin-top: 8px;
    margin-bottom: 0;
    padding-left: 33px;
}

.event-announce-label:hover {
    color: rgba(255,255,255,0.7);
}

.tooltip-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    font-size: 10px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: help;
    margin-left: 2px;
    flex-shrink: 0;
}

.input-footer > .tooltip-icon {
    align-self: center;
}

.tooltip-icon:hover {
    color: #fff;
    background: rgba(145, 70, 255, 0.3);
    border-color: #9146ff;
}

.tooltip-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    font-size: 12px;
    font-weight: normal;
    line-height: 1.5;
    text-align: left;
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    pointer-events: none;
    z-index: 1000;
    margin-bottom: 6px;
    white-space: normal;
}

.tooltip-icon:hover::after {
    opacity: 1;
    visibility: visible;
}

/* ==================== 区切り線 ==================== */
.section-divider {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(145, 70, 255, 0.3);
}

.section-divider-light {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.section-divider-white {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

/* ==================== サブセクション ==================== */
.subsection-title {
    margin-top: 0;
    margin-bottom: 12px;
    color: #00ff88;
    font-size: 14px;
}

.subsection-desc {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 16px;
}

/* ==================== エモート比率ラベル ==================== */
.emote-ratio-label {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    white-space: nowrap;
}

/* ==================== 通知音説明・ライセンス ==================== */
p.notification-sound-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin-top: 12px;
    margin-bottom: 8px;
    line-height: 1.5;
}

.notification-sound-desc a {
    color: #fff;
    text-decoration: underline;
    cursor: pointer;
}

.notification-sound-desc a:hover {
    color: rgba(255,255,255,0.8);
}

p.license-text {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    margin-top: 8px;
    margin-bottom: 0;
}

/* ==================== ローテーションオプション ==================== */
.rotation-options {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

label.rotation-label,
label.rotation-option {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    margin: 0;
    cursor: pointer;
}

/* ==================== chatSender選択時ハイライト ==================== */
#chatSenderSection label:has(input:checked) {
    background: rgba(0, 255, 136, 0.2) !important;
    outline: 2px solid #00ff88;
}

#chatSenderStatus {
    margin-top: 16px;
    margin-bottom: 0;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    display: none;
}

/* ==================== 共通設定ボックス ==================== */
.common-settings-box {
    margin-bottom: 24px;
    padding: 20px;
}

.common-settings-box > h3 {
    margin: 0;
    color: #00ff88;
    font-size: 16px;
}

/* ==================== excludeAccountsSection ==================== */
#excludeAccountsSection {
    margin-top: 16px;
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
}

#excludeAccountsSection label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
}

#excludeAccountsSection textarea {
    width: calc(100% - 16px);
    height: 50px;
    padding: 8px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    color: #fff;
    font-size: 12px;
    resize: vertical;
}

#excludeAccountsSection .hint {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
}

/* ==================== オフセットスライダー行 ==================== */
.offset-slider-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ==================== ロール関連 ==================== */
.role-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    margin: 0;
}

.role-label {
    font-size: 14px;
}

/* ==================== ランチャー固有スタイル ==================== */

/* ランチャーのタイトル中央寄せ */
.container > .page-title {
    text-align: center;
    margin-bottom: 16px;
}

/* チャンネル名（PIW auth-user-display風） */
.channel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    border: 1px solid rgba(145, 70, 255, 0.3);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 auto 20px;
    width: fit-content;
}

.channel-icon {
    width: 18px;
    height: 18px;
}

/* ランチャーボタンコンテナ */
.launcher-buttons {
    padding: 40px 50px;
    margin: 0 auto 30px;
}

/* 案内文 */
.launcher-guide {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    text-align: center;
    margin: 0 0 24px;
    line-height: 1.6;
}

/* セクション共通（基本ウィンドウ・レイアウトオプション・その他） */
.launcher-section {
    margin-bottom: 20px;
    border: 1px solid rgba(145, 70, 255, 0.3);
    border-radius: 10px;
    padding: 16px;
}

.launcher-section-label {
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 12px;
}

.launcher-section-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    margin: 0 0 12px;
    text-align: center;
}

.launcher-section-desc {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    margin: 0 0 12px;
}

.launcher-section-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.launcher-section-buttons .btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-transform: none;
    padding: 12px 8px;
    font-size: 12px;
}

.launcher-section-buttons .btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* 基本ウィンドウ（メインボタン大きめ） */
.launcher-section.main .launcher-section-buttons {
    gap: 20px;
}

.launcher-section.main .launcher-section-buttons .btn {
    gap: 8px;
    padding: 28px 12px;
    font-size: 15px;
}

.launcher-section.main .launcher-section-buttons .btn svg {
    width: 28px;
    height: 28px;
}

/* セカンダリボタン */
.btn.secondary {
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 2px solid var(--color-primary);
}

.btn.secondary:hover {
    background: linear-gradient(45deg, rgba(145, 70, 255, 0.3), rgba(145, 70, 255, 0.2));
}

/* ヒントボックス */
.hint {
    margin: 0 0 30px;
    padding: 16px;
    background: rgba(145, 70, 255, 0.1);
    border: 1px solid rgba(145, 70, 255, 0.3);
    border-radius: var(--border-radius-md);
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
}

/* フッター */
.footer {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
}

.footer a {
    color: var(--color-primary);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* ==================== 設定タブレイアウト（左カテゴリナビ + 右コンテンツ） ==================== */
.settings-layout {
    display: flex;
    gap: 24px;
    min-height: 500px;
}

/* 左カテゴリナビ */
.settings-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 140px;
    flex-shrink: 0;
}

.settings-nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.settings-nav-btn:hover {
    background: rgba(145, 70, 255, 0.15);
    border-color: rgba(145, 70, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
}

.settings-nav-btn.active {
    background: rgba(145, 70, 255, 0.25);
    border-color: #9146ff;
    color: #fff;
}

/* 右コンテンツエリア */
.settings-content {
    flex: 1;
    min-width: 0;
}

/* 設定パネル */
.settings-panel {
    display: none;
}

.settings-panel.active {
    display: block;
}

/* Coming soonテキスト */
.coming-soon {
    padding: 40px 20px;
    text-align: center;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.5);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .settings-layout {
        flex-direction: column;
        gap: 16px;
    }

    .settings-nav {
        flex-direction: row;
        flex-wrap: wrap;
        min-width: auto;
    }

    .settings-nav-btn {
        flex: 1;
        min-width: 100px;
        justify-content: center;
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* ==================== カスタムコマンド ==================== */
.custom-command-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
}

.custom-command-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.custom-command-enabled-label {
    flex-shrink: 0;
}

.custom-command-prefix {
    color: #9147ff;
    font-weight: bold;
    font-size: 16px;
}

.custom-command-name {
    flex: 1;
    max-width: 200px;
}

.custom-command-response {
    width: 100%;
    margin-bottom: 4px;
}

/* ==================== コマンドタイプ選択モーダル ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: #1a1a2e;
    border-radius: 16px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    border: 1px solid rgba(145, 70, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.modal-content h4 {
    color: #00ff88;
    margin: 0 0 20px 0;
    font-size: 18px;
    text-align: center;
}

.command-type-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.command-type-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(145, 70, 255, 0.2);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.command-type-btn:hover {
    background: rgba(145, 70, 255, 0.15);
    border-color: rgba(145, 70, 255, 0.5);
}

.command-type-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.command-type-icon {
    font-size: 24px;
}

.command-type-label {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
}

.command-type-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

.modal-close-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ==================== コマンドタイプバッジ ==================== */
.command-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 8px;
}

.command-type-badge.normal {
    background: rgba(0, 255, 136, 0.15);
    color: #00ff88;
}

.command-type-badge.shoutout {
    background: rgba(255, 165, 0, 0.15);
    color: #ffa500;
}

/* ==================== カスタムコマンド アコーデオン ==================== */
.custom-command-item {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(145, 70, 255, 0.2);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: visible;
}

.custom-command-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.custom-command-header:hover {
    background: rgba(145, 70, 255, 0.1);
}

.custom-command-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.custom-command-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
    flex-shrink: 0;
}

.custom-command-arrow {
    font-size: 12px;
    color: #888;
    width: 16px;
}

.custom-command-name-display {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    flex-shrink: 0;
}

.custom-command-preview {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
    margin-left: 12px;
}

.custom-command-preview.hidden {
    display: none;
}

.custom-command-content {
    padding: 16px;
    border-top: 1px solid rgba(145, 70, 255, 0.1);
    background: rgba(0, 0, 0, 0.1);
}

/* スケジュールテンプレートセクション */
.schedule-template-section {
    margin-top: 16px;
    padding: 12px;
    background: rgba(0, 200, 255, 0.05);
    border: 1px solid rgba(0, 200, 255, 0.2);
    border-radius: 8px;
}

.schedule-template-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #00c8ff;
    margin-bottom: 4px;
}

.schedule-template-hint {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
}

/* ==================== アコーデオン（汎用） ==================== */
.accordion-header {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.accordion-header:hover {
    opacity: 0.8;
}

.accordion-arrow {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.accordion-count {
    font-size: 14px;
    color: #888;
    font-weight: normal;
}

.accordion-content {
    margin-top: 12px;
}

/* ==================== ページャー ==================== */
.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.pager-btn {
    background: rgba(145, 70, 255, 0.2);
    border: 1px solid rgba(145, 70, 255, 0.3);
    color: #9146ff;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.pager-btn:hover:not(:disabled) {
    background: rgba(145, 70, 255, 0.4);
}

.pager-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

#commandsPageInfo {
    color: #aaa;
    font-size: 14px;
}

/* ==================== バリデーションモーダル ==================== */
.validation-modal h4 {
    color: #ff4444;
}

.validation-modal p {
    color: #ccc;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.modal-buttons-row {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.modal-btn-danger {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
    border: 1px solid rgba(255, 68, 68, 0.3);
}

.modal-btn-danger:hover {
    background: rgba(255, 68, 68, 0.4);
}

.modal-btn-primary {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.modal-btn-primary:hover {
    background: rgba(0, 255, 136, 0.4);
}

/* ==================== 音声設定ガイド ==================== */
.sleep-warning {
    margin: 12px 0 16px;
    padding: 12px 16px;
    background: rgba(255, 80, 80, 0.15);
    border: 1px solid rgba(255, 80, 80, 0.4);
    border-radius: var(--border-radius-md);
}

.sleep-warning-title {
    margin: 0 0 6px;
    font-weight: bold;
    color: #ff6b6b;
    font-size: 14px;
}

.sleep-warning-desc {
    margin: 0;
    font-size: 13px;
    color: #ccc;
    line-height: 1.5;
}

.audio-guide {
    margin-top: 20px;
}

.audio-guide details {
    background: rgba(255, 170, 0, 0.1);
    border: 1px solid rgba(255, 170, 0, 0.25);
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.audio-guide summary {
    padding: 12px 16px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 500;
    user-select: none;
}

.audio-guide summary:hover {
    background: rgba(255, 170, 0, 0.15);
}

.audio-guide-desc {
    margin: 0;
    padding: 0 16px 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.audio-guide-list {
    margin: 0;
    padding: 0 16px 16px 32px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.audio-guide-list li {
    margin-bottom: 4px;
}

.audio-guide-list strong {
    color: rgba(255, 170, 0, 0.9);
}

/* ==================== 絵文字ピッカー（Emojiタブ） ==================== */

.emoji-category {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.emoji-category:last-child {
    border-bottom: none;
}

.emoji-category-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    transition: background 0.15s;
    user-select: none;
}

.emoji-category-header:hover {
    background: rgba(255, 255, 255, 0.1);
}

.emoji-category-arrow {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    width: 12px;
}

.emoji-category-name {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.emoji-category-count {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.emoji-category-content {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
    padding: 6px;
    background: rgba(0, 0, 0, 0.2);
}

.emoji-item {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.1s;
}

.emoji-item img {
    width: 22px;
    height: 22px;
}

.emoji-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ==================== 更新情報 ==================== */

.bookmark-hint {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 250px);
    padding: 6px 0 4px;
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
    z-index: 10;
    background: rgba(145, 70, 255, 0.1);
    border: 1px solid rgba(145, 70, 255, 0.3);
    border-radius: var(--border-radius-md);
}

.update-area {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
}

.update-trigger {
    cursor: pointer;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.update-trigger:hover {
    color: rgba(255, 255, 255, 1);
}

.update-dot {
    color: #ff0000;
    font-size: 10px;
    animation: updateDotPulse 2s ease-in-out infinite;
}

.update-dot.hidden {
    display: none;
}

.update-dot.read {
    color: #9146ff;
    animation: none;
}

@keyframes updateDotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.update-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: #1a1a2e;
    border: 1px solid rgba(145, 70, 255, 0.3);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    max-height: 400px;
    width: 340px;
    overflow: hidden;
}

.update-dropdown.show {
    display: block;
}

.update-dropdown-entries {
    padding: 16px;
    overflow-y: auto;
    max-height: 380px;
}

.update-entry {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.update-entry:last-child {
    border-bottom: none;
}

.update-entry-date {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 4px;
}

.update-entry-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.update-entry-message {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.6;
}

.update-entry-message li + li {
    margin-top: 20px;
}

.update-modal-list li + li {
    margin-top: 38px;
}

.update-entry-message a {
    color: #9146ff;
    text-decoration: none;
}

.update-entry-message a:hover {
    text-decoration: underline;
}

/* ==================== スコープ再認証バナー ==================== */

.channel.has-reauth-banner {
    margin-bottom: 0;
}

.scope-reauth-banner {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.15), rgba(255, 87, 34, 0.1));
    border: 1px solid rgba(255, 152, 0, 0.4);
    border-radius: 12px;
    padding: 16px 20px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: scopeBannerSlideIn 0.3s ease;
}

@keyframes scopeBannerSlideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.scope-reauth-banner-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.scope-reauth-banner-text {
    flex: 1;
    color: #ffb84d;
    font-size: 14px;
    line-height: 1.5;
}

.scope-reauth-btn {
    background: linear-gradient(45deg, #9146ff, #7c3aed);
    color: #fff;
    border: none;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.scope-reauth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(145, 70, 255, 0.4);
}

.scope-reauth-close {
    background: none;
    border: none;
    color: #888;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    flex-shrink: 0;
}

.scope-reauth-close:hover {
    color: #fff;
}

.scope-reauth-banner-success {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), rgba(0, 200, 100, 0.1));
    border-color: rgba(0, 255, 136, 0.4);
}

.scope-reauth-banner-success .scope-reauth-banner-text {
    color: #00ff88;
}
