/* マイページコンテナ */
.rs-mypage-container {
    max-width: 1200px;
    margin: 30px auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333;
}

/* ヘッダー */
.rs-mypage-header {
    background: #15151e;
    color: #fff;
    padding: 20px 30px;
    border-radius: 8px 8px 0 0;
    margin-bottom: 20px;
}
.rs-mypage-header h2 { margin: 0; font-size: 1.8rem; }
.rs-mypage-header .highlight { color: #d4af37; /* ゴールド */ }

/* グリッドレイアウト（PCは2カラム、スマホは1カラム） */
.rs-mypage-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}
@media (max-width: 768px) {
    .rs-mypage-grid { grid-template-columns: 1fr; }
}

/* パネル共通 */
.rs-panel {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-top: 4px solid #e10600; /* F1レッド */
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.rs-panel h3 {
    margin-top: 0;
    font-size: 1.3rem;
    color: #15151e;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* 統計ボックス */
.rs-stats-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}
.rs-stat-box {
    background: #f8f8f9;
    padding: 20px 10px;
    border-radius: 6px;
    text-align: center;
    border: 1px solid #eee;
}
.rs-stat-label {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 5px;
}
.rs-stat-value {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #15151e;
}

/* 最近のレーステーブル */
.rs-recent-table {
    width: 100%;
    border-collapse: collapse;
}
.rs-recent-table th, .rs-recent-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}
.rs-recent-table th { background: #fdfdfd; color: #666; }

/* 順位バッジ */
.pos-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    background: #f0f0f0;
    color: #333;
}
.pos-1 { background: #d4af37; color: #fff; } /* 1位: ゴールド */
.pos-2 { background: #c0c0c0; color: #fff; } /* 2位: シルバー */
.pos-3 { background: #cd7f32; color: #fff; } /* 3位: ブロンズ */
.pos-badge.dnp { background: #ffebe9; color: #cc0000; }
.pos-badge.dns { background: #eee; color: #999; }

/* フォーム要素 */
.rs-note { font-size: 0.85rem; color: #666; margin-bottom: 20px; line-height: 1.5; }
.rs-form-group { margin-bottom: 20px; }
.rs-form-group label { display: block; font-weight: bold; margin-bottom: 8px; font-size: 0.9rem; }
.rs-form-group input { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 1rem; }
.rs-btn-save {
    background: #15151e; color: #fff; border: none; padding: 12px 20px;
    border-radius: 4px; font-weight: bold; cursor: pointer; width: 100%; transition: 0.2s;
}
.rs-btn-save:hover { background: #e10600; }
.rs-success { background: #e6ffed; color: #1a7f37; padding: 15px; border-radius: 4px; margin-bottom: 20px; border: 1px solid #a3e6b5; }