/* マイページ + ユーザーページ共通スタイル (Phase C-2) */
.me-view {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 24px 64px;
}
.me-loading { padding: 80px 0; text-align: center; color: var(--text-dim); }

.me-hero {
    display: grid;
    grid-template-columns: 96px 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 24px 0 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}
.me-hero-avatar {
    width: 96px; height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #ff5fa3);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent-fg);
    font-size: 40px; font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 6px 18px rgba(0,0,0,0.4);
    overflow: hidden;
    flex-shrink: 0;
}
.me-hero-avatar.has-img { background: transparent; }
.me-hero-avatar img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.me-hero-info { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.me-hero-eyebrow {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}
.me-hero-name {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    word-break: break-all;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
}
.me-hero-display {
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
}
.me-hero-handle {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dim);
    font-family: 'JetBrains Mono', monospace, sans-serif;
}
.me-hero-badge {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    background: rgba(255,137,59,0.12);
    border: 1px solid rgba(255,137,59,0.3);
    padding: 2px 8px;
    border-radius: 999px;
    font-family: 'JetBrains Mono', monospace, sans-serif;
    letter-spacing: 0.04em;
    align-self: center;
}
/* 古参表示: #1〜#99 はゴールド、#100〜#999 はシルバー */
.me-hero-badge.is-vintage {
    color: var(--accent-fg);
    background: linear-gradient(135deg, #ffd97d, #ffa340);
    border-color: #ffb84d;
    box-shadow: 0 1px 6px rgba(255,184,77,0.4);
}
.me-hero-badge.is-classic {
    color: #1f1f1f;
    background: linear-gradient(135deg, #e0e0e0, #b0b0b0);
    border-color: #b0b0b0;
}
.me-hero-bio {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.5;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.me-hero-bio:empty { display: none; }
.me-hero-bio-text {
    white-space: pre-wrap;
}
.me-hero-x-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-dim);
    text-decoration: none;
    padding: 2px 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    transition: color .12s, border-color .12s;
}
.me-hero-x-link:hover {
    color: var(--text);
    border-color: var(--text-dim);
}

/* ===== お気に入りボタン ===== */
.me-btn-bookmark {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.me-btn-bookmark .bookmark-icon {
    font-size: 16px;
    line-height: 1;
}
.me-btn-bookmark.is-active {
    background: rgba(255,137,59,0.15);
    border-color: var(--accent);
    color: var(--accent);
}
.me-btn-bookmark.is-active .bookmark-icon {
    color: var(--accent);
}

/* ===== お気に入り作者リスト ===== */
.me-bookmarks {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}
.me-bookmark-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface, rgba(255,255,255,0.02));
    text-decoration: none;
    color: inherit;
    transition: border-color .12s, background-color .12s;
    min-width: 0;
}
.me-bookmark-card:hover {
    border-color: var(--accent);
    background: rgba(255,137,59,0.05);
}
.me-bookmark-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.me-bookmark-avatar-letter {
    background: linear-gradient(135deg, var(--accent), #ff5fa3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-fg);
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
}
.me-bookmark-info { min-width: 0; flex: 1; }
.me-bookmark-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.me-bookmark-handle {
    font-size: 11px;
    color: var(--text-dim);
    font-family: 'JetBrains Mono', monospace, sans-serif;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.me-bookmark-num {
    color: var(--accent);
    margin-left: 4px;
}
.me-bookmark-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}
.me-hero-meta {
    display: flex; gap: 12px; flex-wrap: wrap;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-dim);
}
.me-hero-meta-item {
    font-family: 'JetBrains Mono', monospace;
}

.me-section { margin-bottom: 36px; }
.me-section-title {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.me-scores-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.me-score {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 14px;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.12s;
    align-items: center;
}
.me-score:hover {
    background: var(--surface3);
    border-color: var(--accent);
}
.me-score-thumb {
    aspect-ratio: 16 / 9;
    border-radius: 5px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--surface3), var(--surface2));
}
.me-score-thumb img { width: 100%; height: 100%; object-fit: cover; }
.me-score-thumb-fallback {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; color: var(--text-dim);
}
.me-score-info { min-width: 0; }
.me-score-name {
    font-size: 13px; font-weight: 600; color: var(--text);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    margin-bottom: 2px;
}
.me-score-sub {
    font-size: 11px; color: var(--text-dim);
}
.me-score-likes {
    font-size: 11px; color: var(--text);
    font-family: 'JetBrains Mono', monospace;
}
.me-score-side {
    display: flex;
    align-items: center;
    gap: 8px;
}
.me-score-delete {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.1s;
}
.me-score-delete:hover {
    background: rgba(239,68,68,0.12);
    border-color: #ef4444;
    color: #ef4444;
}

.me-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--surface3);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.12s;
}
.me-btn:hover {
    background: var(--surface2);
    border-color: var(--accent);
}
.me-btn-primary {
    background: var(--accent);
    color: var(--accent-fg);
    border-color: var(--accent);
    font-weight: 600;
}
.me-btn-primary:hover {
    background: #ff9d52;
    border-color: #ff9d52;
}

.me-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-dim);
}
.me-empty p { margin: 0 0 14px; font-size: 13px; }

@media (max-width: 720px) {
    .me-hero {
        grid-template-columns: 64px 1fr;
        gap: 12px;
    }
    .me-hero-avatar { width: 64px; height: 64px; font-size: 28px; }
    .me-hero-name { font-size: 20px; }
    .me-hero-actions { grid-column: 1 / -1; }
}

/* ========= ログインモーダル ========= */
.ll-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: ll-modal-fadein 0.18s ease;
}
@keyframes ll-modal-fadein {
    from { opacity: 0; }
    to { opacity: 1; }
}
.ll-modal {
    width: 92%;
    max-width: 380px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.6);
}
.ll-modal-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}
.ll-modal-desc {
    margin: 0 0 18px;
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.5;
}
.ll-modal-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    background: var(--surface3);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.1s;
    margin-bottom: 12px;
}
.ll-modal-input:focus { border-color: var(--accent); }
.ll-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}
.ll-modal-divider {
    margin: 16px 0;
    height: 1px;
    background: var(--border);
    position: relative;
}
.ll-modal-note {
    font-size: 11px;
    color: var(--text-muted);
    margin: 14px 0 0;
    line-height: 1.5;
}

/* ===== シェアモーダル (Phase C-10) ===== */
.ll-modal.share-modal {
    max-width: 460px;
    position: relative;
}
.ll-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    background: transparent;
    border: 0;
    border-radius: 50%;
    color: var(--text-dim);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.12s, color 0.12s;
}
.ll-modal-close:hover {
    background: var(--surface3);
    color: var(--text);
}
.share-icons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 8px 0 18px;
}
.share-icon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 0;
    padding: 8px 4px;
    border-radius: 10px;
    cursor: pointer;
    color: var(--text);
    transition: background 0.12s;
}
.share-icon-btn:hover {
    background: var(--surface3);
}
.share-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: transform 0.12s;
}
.share-icon-btn:hover .share-icon-circle {
    transform: translateY(-2px);
}
.share-icon-x        { background: #000000; }
.share-icon-line     { background: #06c755; }
.share-icon-facebook { background: #1877f2; }
.share-icon-native   { background: var(--surface3); color: var(--text); border: 1px solid var(--border); }
.share-icon-label {
    font-size: 11px;
    color: var(--text-dim);
}
.share-url-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface3);
    overflow: hidden;
}
.share-url-input {
    flex: 1;
    background: transparent;
    border: 0;
    padding: 10px 12px;
    color: var(--text);
    font-size: 12px;
    outline: none;
    font-family: inherit;
    min-width: 0;
}
.share-copy-btn {
    background: var(--surface);
    border: 0;
    border-left: 1px solid var(--border);
    color: var(--text);
    padding: 0 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
}
.share-copy-btn:hover {
    background: var(--accent);
    color: var(--accent-fg);
}
.share-copy-btn.is-copied {
    background: #06c755;
    color: #fff;
}

/* ===== ログインモーダル全体 ===== */
.ll-modal.shell-login-modal {
    max-width: 420px;
    position: relative;
    padding-top: 28px;
}
.shell-login-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    margin-bottom: 20px;
}
.shell-login-logo {
    display: block;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    margin-bottom: 4px;
}
.shell-login-title {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    /* レインボーロゴと統一感 */
    background: linear-gradient(90deg, #ff3b3b 0%, #ff8c1a 14%, #ffe33d 28%, #52ff5a 43%, #3ec8ff 57%, #8a55ff 72%, #ff4dc0 86%, #ff3b3b 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 4px rgba(255, 80, 200, 0.35));
    animation: lumina-rainbow-shift 12s linear infinite;
}
.shell-login-subtitle {
    margin: 0;
    font-size: 12px;
    color: var(--text-dim);
}
.shell-login-perks {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    display: grid;
    gap: 6px;
}
.shell-login-perks li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text);
}
.shell-login-perk-icon {
    flex-shrink: 0;
    color: #06c755; /* 緑 = チェック */
}
.shell-login-legal {
    margin: 14px 0 0;
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.5;
}
.shell-login-legal a {
    color: var(--text-dim);
    text-decoration: underline;
}
.shell-login-legal a:hover {
    color: var(--accent);
}

/* ===== OAuth ボタン (Google / X など) ===== */
.shell-login-oauth {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 4px;
}
.shell-oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 40px;
    padding: 0 16px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--surface, #fff);
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .12s, border-color .12s;
}
.shell-oauth-btn:hover {
    background: var(--surface-hover, rgba(0,0,0,0.04));
    border-color: var(--text-muted);
}
.shell-oauth-google {
    background: #fff;
    color: #1f1f1f;
    border-color: #dadce0;
}
.shell-oauth-google:hover {
    background: #f7f8f8;
}
.shell-oauth-x {
    background: #000;
    color: #fff;
    border-color: #000;
}
.shell-oauth-x:hover:not(:disabled) {
    background: #1a1a1a;
}
.shell-oauth-x:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    color: rgba(255,255,255,0.7);
}
.shell-oauth-x small {
    font-size: 10px;
    font-weight: 400;
    margin-left: 4px;
    color: rgba(255,255,255,0.5);
}
.shell-oauth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0;
    color: var(--text-muted);
    font-size: 11px;
}
.shell-oauth-divider::before,
.shell-oauth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ===== 通知 ベル + ドロップダウン ===== */
.shell-btn-notif {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 32px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--surface3);
    border-radius: 6px;
    color: var(--text-dim);
    cursor: pointer;
    transition: background-color .12s, color .12s, border-color .12s;
}
.shell-btn-notif:hover {
    background: var(--surface3);
    color: var(--text);
}
.shell-bell-icon { display: block; }
.shell-notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    box-sizing: border-box;
    background: var(--accent);
    color: var(--accent-fg);
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    border-radius: 999px;
    text-align: center;
    border: 2px solid var(--bg);
}
.shell-notif-dropdown {
    position: fixed;
    top: calc(var(--shell-header-h) + 6px);
    right: 16px;
    width: 360px;
    max-width: calc(100vw - 32px);
    max-height: 480px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow-modal, 0 12px 40px rgba(0,0,0,0.4));
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.shell-notif-dropdown-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.shell-notif-dropdown-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}
.shell-notif-mark-all {
    background: transparent;
    border: none;
    color: var(--accent);
    font-size: 11px;
    cursor: pointer;
    padding: 2px 4px;
}
.shell-notif-mark-all:hover { text-decoration: underline; }
.shell-notif-list {
    flex: 1;
    overflow-y: auto;
}
.shell-notif-empty {
    padding: 32px 14px;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
}
.shell-notif-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background-color .12s;
    position: relative;
}
.shell-notif-item:hover {
    background: var(--surface3);
}
.shell-notif-item.is-unread {
    background: rgba(255,137,59,0.04);
}
.shell-notif-item.is-unread:hover {
    background: rgba(255,137,59,0.08);
}
.shell-notif-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--surface2);
    color: var(--text-dim);
}
.shell-notif-icon-new_score { color: #ffd54a; }
.shell-notif-icon-comment { color: #5cdd7b; }
.shell-notif-icon-report_resolved { color: #5c9cff; }
.shell-notif-body { flex: 1; min-width: 0; }
.shell-notif-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.4;
}
.shell-notif-text {
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 2px;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.shell-notif-time {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 4px;
    font-family: 'JetBrains Mono', monospace;
}
.shell-notif-dot {
    position: absolute;
    top: 14px;
    right: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}
.shell-notif-dropdown-foot {
    padding: 8px 14px;
    border-top: 1px solid var(--border);
    text-align: center;
    flex-shrink: 0;
}
.shell-notif-see-all {
    color: var(--accent);
    text-decoration: none;
    font-size: 12px;
    cursor: pointer;
}
.shell-notif-see-all:hover { text-decoration: underline; }
.ll-modal-error {
    color: #ef4444;
    font-size: 12px;
    margin-bottom: 8px;
}

/* ========= ヘッダー: ログイン中表示 ========= */
.shell-btn-account.is-logged-in {
    background: var(--surface3);
    border: 1px solid var(--border);
    padding: 4px 8px 4px 4px;
    gap: 6px;
}
.shell-account-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #ff5fa3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-fg);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    flex-shrink: 0;
    overflow: hidden;
}
.shell-account-avatar-img {
    background: transparent;
    padding: 0;
}
.shell-account-avatar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.shell-account-handle {
    font-size: 12px;
    color: var(--text);
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ========= アカウントドロップダウン ========= */
.shell-account-dropdown {
    position: absolute;
    top: 56px;
    right: 24px;
    width: 220px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.5);
    z-index: 500;
    padding: 6px;
    display: none;
}
.shell-account-dropdown.is-open { display: block; }
.shell-account-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 6px;
    color: var(--text);
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.1s;
    background: none;
    border: 0;
    width: 100%;
    text-align: left;
    font-family: inherit;
}
.shell-account-item:hover { background: var(--surface3); }
.shell-account-item-icon {
    font-size: 14px;
    width: 18px;
    text-align: center;
}

/* ========= BLE 接続失敗ヘルプモーダル ========= */
.ble-help-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: ll-modal-fadein 0.2s ease;
    padding: 20px;
    overflow-y: auto;
}
.ble-help-card {
    width: 100%;
    max-width: 520px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.6);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}
.ble-help-icon {
    font-size: 40px;
    line-height: 1;
    margin-bottom: 12px;
}
.ble-help-title {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}
.ble-help-confidence {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.ble-help-confidence.high { background: rgba(239,68,68,0.15); color: #ef4444; }
.ble-help-confidence.medium { background: rgba(255,137,59,0.15); color: var(--accent); }
.ble-help-confidence.low { background: var(--surface3); color: var(--text-dim); }
.ble-help-confidence-past {
    color: var(--text-muted);
    font-weight: 400;
    text-transform: none;
    margin-left: 6px;
}
.ble-help-reason {
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 18px;
    white-space: pre-wrap;
}
.ble-help-section {
    background: var(--surface3);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 16px;
}
.ble-help-section-title {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-bottom: 8px;
}
.ble-help-steps {
    margin: 0;
    padding-left: 22px;
    color: var(--text);
    font-size: 13px;
    line-height: 1.7;
}
.ble-help-steps li { margin-bottom: 4px; }
.ble-help-steps strong { color: var(--accent); font-weight: 600; }
.ble-help-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.ble-help-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    background: var(--surface3);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.12s;
}
.ble-help-btn:hover {
    background: var(--surface2);
    border-color: var(--accent);
}
.ble-help-btn-primary {
    background: var(--accent);
    color: var(--accent-fg);
    border-color: var(--accent);
    font-weight: 600;
}
.ble-help-btn-primary:hover {
    background: #ff9d52;
    border-color: #ff9d52;
}
.ble-help-btn-icon { font-size: 14px; }
.ble-help-tech {
    margin-top: 8px;
    font-size: 11px;
    color: var(--text-muted);
}
.ble-help-tech summary {
    cursor: pointer;
    padding: 6px 0;
    user-select: none;
}
.ble-help-tech pre {
    margin: 6px 0 0;
    padding: 10px;
    background: rgba(0,0,0,0.3);
    border-radius: 6px;
    font-size: 11px;
    color: var(--text-dim);
    white-space: pre-wrap;
    word-break: break-word;
    font-family: 'JetBrains Mono', monospace;
    max-height: 200px;
    overflow-y: auto;
}

/* ========= 通報モーダル (Phase C-7) ========= */
.report-modal {
    max-width: 460px;
}
.report-field {
    margin-bottom: 14px;
}
.report-label {
    display: block;
    font-size: 11px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    margin-bottom: 4px;
}
.report-target-info {
    background: var(--surface3);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 12px;
}
.report-target-info strong {
    color: var(--text);
    font-weight: 600;
}

/* ========= 通報ボタン (コメント・演出・ユーザー共通) ========= */
.ll-report-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-size: 11px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.1s;
    font-family: inherit;
}
.ll-report-btn:hover {
    background: rgba(239,68,68,0.1);
    border-color: #ef4444;
    color: #ef4444;
}
.ll-report-btn.is-reported {
    background: rgba(239,68,68,0.15);
    color: #ef4444;
    cursor: default;
}
.ll-report-btn.is-reported:hover {
    background: rgba(239,68,68,0.15);
}

/* ========= 設定ページ ========= */
.settings-page { padding-bottom: 64px; }
.settings-page .me-hero {
    /* avatar 無しレイアウトに上書き (デフォは 96px 1fr auto グリッド) */
    display: block;
    padding: 24px 0;
}
.settings-page .me-hero-name {
    font-size: 28px;
    margin-bottom: 4px;
    /* タイトルはアクセント色グラデ */
    background: linear-gradient(135deg, var(--accent), #f0c060);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.settings-page .me-hero-handle {
    margin: 0;
    font-size: 13px;
    color: var(--text-dim);
}
.settings-section {
    margin-top: 32px;
}
.settings-section + .settings-section {
    border-top: 1px solid var(--border);
    padding-top: 24px;
}
.settings-form {
    max-width: 540px;
}
.settings-field {
    margin-bottom: 18px;
}
.settings-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dim);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}
.settings-required {
    color: var(--accent);
    margin-left: 2px;
}
.settings-input {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 11px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 7px;
    color: var(--text);
    font-size: 13px;
    font-family: inherit;
    transition: border-color 0.1s;
}
.settings-input:focus {
    outline: none;
    border-color: var(--accent);
}
.settings-input:disabled {
    background: var(--surface2);
    color: var(--text-muted);
    cursor: not-allowed;
}
textarea.settings-input { resize: vertical; }
.settings-help {
    margin: 4px 0 0;
    font-size: 11px;
    color: var(--text-muted);
}

/* ===== アカウント連携 ===== */
.settings-providers {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}
.settings-provider {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}
.settings-provider.is-connected {
    border-color: rgba(16,185,129,0.4);
    background: rgba(16,185,129,0.04);
}
.settings-provider-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface2);
    border-radius: 50%;
    color: var(--text-dim);
}
.settings-provider.is-connected .settings-provider-icon {
    background: var(--surface);
}
.settings-provider-info {
    flex: 1;
    min-width: 0;
}
.settings-provider-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}
.settings-provider-status {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}
.settings-provider-badge {
    flex-shrink: 0;
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--surface2);
}
.settings-provider-badge.is-connected {
    color: var(--success);
    background: rgba(16,185,129,0.12);
    border-color: rgba(16,185,129,0.4);
}

/* ===== アカウント削除 (危険ゾーン) ===== */
.settings-danger {
    border-top: 1px solid rgba(239,68,68,0.2);
    padding-top: 16px;
    margin-top: 16px;
}
.settings-danger .me-section-title {
    color: var(--danger, #ef4444);
}
.settings-delete-btn {
    background: rgba(239,68,68,0.10);
    color: var(--danger, #ef4444);
    border: 1px solid rgba(239,68,68,0.4);
    align-self: flex-start;
    margin-top: 14px;        /* 説明文との余白 */
}
.settings-delete-btn:hover {
    background: rgba(239,68,68,0.20);
}
.settings-delete-status {
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.4);
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--danger, #ef4444);
}
.settings-delete-status strong {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
}
.settings-actions {
    margin-top: 8px;
}
.settings-link { color: var(--accent); }
.settings-logout {
    border-color: var(--danger);
    color: var(--danger);
}
.settings-logout:hover {
    background: rgba(239,68,68,0.12);
}

/* ===== テーマカード ===== */
.settings-theme-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.settings-theme-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.12s;
    width: 140px;
}
.settings-theme-card:hover { border-color: var(--text-muted); }
.settings-theme-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.settings-theme-card:has(input:checked) {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255,137,59,0.18);
}
.settings-theme-preview {
    aspect-ratio: 16 / 10;
    border-radius: 6px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.settings-theme-dark { background: linear-gradient(135deg, #0b0d12 0%, #1b1f27 100%); }
.settings-theme-dark::before {
    content: '';
    position: absolute; inset: 8px 8px auto 8px; height: 6px;
    background: #ff893b; border-radius: 3px;
}
.settings-theme-light { background: linear-gradient(135deg, #ffffff 0%, #e3e6ec 100%); }
.settings-theme-light::before {
    content: '';
    position: absolute; inset: 8px 8px auto 8px; height: 6px;
    background: #ea7426; border-radius: 3px;
}
.settings-theme-system {
    background: linear-gradient(135deg, #0b0d12 0%, #0b0d12 50%, #ffffff 50%, #e3e6ec 100%);
}
.settings-theme-system::before {
    content: '';
    position: absolute; inset: 8px 8px auto 8px; height: 6px;
    background: linear-gradient(90deg, #ff893b 0%, #ff893b 50%, #ea7426 50%, #ea7426 100%);
    border-radius: 3px;
}
.settings-theme-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    text-align: center;
}
