:root { --accent:#c8171e; --muted:#68717d; --line:#e3e6e9; }
nav { display:flex; align-items:center; flex-wrap:wrap; gap:12px 18px; }
nav a { margin:0; }
nav form { margin:0; }
.profile-layout { display:grid; grid-template-columns:300px minmax(0,1fr); gap:24px; align-items:start; }
.profile-card { background:white; border:1px solid var(--line); border-radius:12px; padding:26px; }
.profile-sidebar { border-top:4px solid var(--accent); }
.profile-avatar { width:112px; height:112px; object-fit:cover; border-radius:24px; display:block; }
.avatar-fallback { display:flex; align-items:center; justify-content:center; background:#f9e8e9; color:var(--accent); font-weight:750; font-size:44px; }
.profile-name { font-size:27px; line-height:1.25; margin:20px 0 7px; overflow-wrap:anywhere; }
.profile-username,.muted { color:var(--muted); font-size:14px; overflow-wrap:anywhere; }
.profile-bio { line-height:1.8; overflow-wrap:anywhere; margin:20px 0; }
.profile-links { display:grid; gap:12px; margin:20px 0; }
.profile-links a { overflow-wrap:anywhere; }
.profile-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:22px; }
.button { display:inline-flex; justify-content:center; align-items:center; padding:10px 15px; min-height:42px; border:1px solid var(--line); border-radius:7px; background:#fff; color:#252a31; text-decoration:none; cursor:pointer; font-weight:600; }
.button.primary { background:var(--accent); color:white; border-color:var(--accent); }
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible { outline:3px solid #ea8890; outline-offset:3px; }
.profile-toolbar { display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; }
.profile-toolbar h1,.profile-toolbar h2 { margin:0; }
.profile-toolbar form { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.profile-toolbar select { max-width:100%; border:1px solid #ccd0d5; border-radius:6px; padding:9px; background:#fff; }
.stat { display:flex; align-items:baseline; gap:10px; margin:24px 0 0; }
.stat strong { font-size:32px; }
.table-scroll { overflow-x:auto; }
.profile-table { margin-top:24px; font-size:14px; }
.profile-table th { background:#f7f8f9; white-space:nowrap; }
.profile-table td { vertical-align:top; }
.profile-table .time { font-variant-numeric:tabular-nums; font-weight:700; white-space:nowrap; }
.cell-secondary { display:block; color:var(--muted); font-size:12px; margin-top:5px; }
.empty-state { padding:40px 16px; text-align:center; color:var(--muted); }
.empty-state strong { display:block; color:#333; font-size:18px; margin-bottom:10px; }
.badge { display:inline-block; border-radius:5px; padding:4px 8px; font-size:12px; background:#f0f1f3; color:#4b5563; white-space:nowrap; }
.badge.approved { background:#e7f5eb; color:#236139; }
.badge.pending { background:#fff3d8; color:#7b5300; }
.badge.rejected { background:#fbe9e9; color:#9a2a2a; }
.player-link { display:inline-flex; align-items:center; gap:8px; text-decoration:none; }
.player-avatar { width:28px; height:28px; border-radius:50%; object-fit:cover; flex-shrink:0; }
.player-avatar.avatar-fallback { font-size:13px; }
.settings-wrap { max-width:760px; margin:auto; }
.settings-tabs { display:flex; gap:12px; flex-wrap:wrap; padding-bottom:18px; margin-bottom:24px; border-bottom:1px solid var(--line); }
.settings-tabs a { text-decoration:none; padding:8px 12px; border-radius:6px; color:#555; }
.settings-tabs a.active { background:#f9e8e9; color:var(--accent); font-weight:700; }
.profile-form .field { margin-bottom:24px; }
.profile-form label { display:block; font-weight:650; margin-bottom:8px; }
.profile-form input:not([type=checkbox]),.profile-form textarea { width:100%; border:1px solid #cbd0d6; border-radius:7px; padding:11px 12px; background:#fff; }
.profile-form input[type=file] { padding:10px; }
.profile-form input[type=checkbox] { width:18px; height:18px; vertical-align:middle; }
.profile-form .helptext { color:var(--muted); font-size:13px; line-height:1.6; margin-top:7px; display:block; }
.errorlist { color:#ac1720; padding-left:20px; line-height:1.6; }
.notice { padding:14px 18px; border:1px solid #bee0c8; background:#eff9f1; border-radius:7px; margin-bottom:20px; }
.pagination { display:flex; justify-content:center; align-items:center; gap:18px; margin:24px 0 0; }
.profile-section { margin-top:22px; }
.profile-detail { display:grid; grid-template-columns:90px 1fr; gap:14px; }
.profile-detail dt { color:var(--muted); }
.profile-detail dd { margin:0; overflow-wrap:anywhere; }
@media(max-width:760px) { .profile-layout { grid-template-columns:1fr; } header { padding:16px; } .brand { font-size:20px; } main { margin:24px auto; padding:0 14px; } .profile-card { padding:20px; } .profile-table th,.profile-table td { padding:10px 8px; } }

.profile-form select { width:100%; padding:10px; border:1px solid #cbd0d6; border-radius:7px; background:#fff; }
.run-primary { font-size:30px; font-variant-numeric:tabular-nums; font-weight:700; }
.run-primary small { display:block; font-size:14px; color:var(--muted); font-weight:400; }
.run-detail { grid-template-columns:110px minmax(0,1fr); }
.run-event { border-top:1px solid var(--line); margin-top:18px; padding-top:18px; overflow-wrap:anywhere; }
.run-completer { display:flex; align-items:center; flex-wrap:wrap; gap:10px 16px; }
.profile-form .run-completer input { width:240px; max-width:100%; }

.profile-form .run-completer label { display:inline; margin:0; }
.run-game-name { display:block; color:var(--muted); font-size:13px; margin-bottom:7px; }
.run-project-links { font-size:16px; font-weight:700; line-height:1.55; overflow-wrap:anywhere; }
.run-project-links a { text-decoration:underline; text-underline-offset:3px; text-decoration-thickness:1px; }
.run-project-links a:hover { color:#8e1016; }
.run-project-divider { color:var(--muted); }
