*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #0f0f13;
  --surface: #1a1a22;
  --border:  #2e2e3a;
  --text:    #e8e8f0;
  --muted:   #8888a0;
  --accent:  #7c6af7;
  --green:   #3ecf7e;
  --red:     #f26b6b;
  --yellow:  #f5c542;
  --radius:  10px;
}

body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; }

/* ── Header ── */
header { border-bottom: 1px solid var(--border); padding: 0 2rem; height: 56px; display: flex; align-items: center; }
.header-inner { width: 100%; max-width: 1200px; margin: auto; display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 17px; font-weight: 600; letter-spacing: -0.3px; }
.header-right { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.streak-badge { color: var(--text); font-weight: 500; }
#timer { font-family: monospace; color: var(--accent); }

/* ── Nav buttons ── */
.btn-nav { font-size: 13px; color: var(--muted); text-decoration: none; border: 1px solid var(--border); padding: 5px 12px; border-radius: 6px; transition: color 0.15s, border-color 0.15s; white-space: nowrap; }
.btn-nav:hover { color: var(--accent); border-color: var(--accent); }
.btn-google { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 8px; background: #fff; color: #333; font-size: 13px; font-weight: 500; border: 1px solid #ddd; text-decoration: none; transition: box-shadow 0.15s; white-space: nowrap; }
.btn-google:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.user-info { display: flex; align-items: center; gap: 8px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.avatar-fallback { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.user-name { font-size: 13px; }
.btn-logout { font-size: 12px; color: var(--muted); text-decoration: none; border: 1px solid var(--border); padding: 3px 8px; border-radius: 6px; }
.btn-logout:hover { color: var(--red); border-color: var(--red); }

/* ── Main layout ── */
main { max-width: 1200px; margin: 2rem auto; padding: 0 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
@media (max-width: 768px) { main { grid-template-columns: 1fr; } }

/* ── Problem panel ── */
.problem-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; }
.problem-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 1rem; }
.day-badge { font-size: 11px; font-weight: 600; letter-spacing: 0.5px; background: var(--accent); color: #fff; padding: 3px 9px; border-radius: 20px; }
.diff { font-size: 11px; padding: 3px 9px; border-radius: 20px; font-weight: 500; }
.diff-easy   { background: #1a3a2a; color: var(--green); }
.diff-medium { background: #3a2e10; color: var(--yellow); }
.diff-hard   { background: #3a1515; color: var(--red); }
.tag { font-size: 11px; padding: 3px 9px; border-radius: 20px; border: 1px solid var(--border); color: var(--muted); }
.problem-title { font-size: 22px; font-weight: 600; margin-bottom: 0.75rem; line-height: 1.3; }
.problem-desc  { font-size: 14px; line-height: 1.8; color: var(--muted); white-space: pre-line; margin-bottom: 1.5rem; }
.examples-label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.5rem; }
.example-block  { background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 0.75rem 1rem; margin-bottom: 8px; }
.ex-row { display: flex; gap: 12px; align-items: baseline; font-size: 13px; }
.ex-row + .ex-row { margin-top: 4px; }
.ex-key { color: var(--muted); min-width: 36px; font-size: 12px; }
code { font-family: "JetBrains Mono","Fira Code",monospace; font-size: 12px; }
.stats-row { display: flex; gap: 1rem; margin-top: 1.5rem; }
.stat-item { flex: 1; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 0.75rem; text-align: center; }
.stat-val   { display: block; font-size: 20px; font-weight: 600; }
.stat-label { font-size: 11px; color: var(--muted); margin-top: 2px; display: block; }

/* ── History ── */
.history-panel { margin-top: 1rem; }
.history-item { display: flex; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 12px; }
.h-pid  { color: var(--text); font-weight: 500; flex: 1; }
.h-date { color: var(--muted); }
.h-lang { color: var(--accent); }

/* ── Editor panel ── */
.editor-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; }
.editor-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lang-group { display: flex; gap: 6px; }
.lang-group select { background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 6px; padding: 6px 10px; font-size: 13px; cursor: pointer; }
.autosave-indicator { font-size: 11px; color: var(--muted); margin-left: auto; }
.btn-hint { background: transparent; color: var(--muted); border: 1px solid var(--border); border-radius: 6px; padding: 6px 10px; font-size: 13px; cursor: pointer; transition: color 0.15s; }
.btn-hint:hover { color: var(--yellow); border-color: var(--yellow); }

/* ── 단축키 박스 ── */
.shortcuts-box { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 0.75rem 1rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.sc-row { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
kbd { background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 2px 6px; font-size: 11px; color: var(--text); font-family: monospace; }

/* ── 에디터 (줄번호) ── */
.editor-wrap { display: flex; background: #12121a; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.line-numbers { padding: 1rem 0.5rem 1rem 0.75rem; font-family: "JetBrains Mono","Fira Code",monospace; font-size: 13px; line-height: 1.7; color: #444460; text-align: right; user-select: none; min-width: 36px; background: #0e0e1a; border-right: 1px solid var(--border); overflow: hidden; }
#code-editor { flex: 1; padding: 1rem; background: transparent; color: #cdd6f4; border: none; font-size: 13px; font-family: "JetBrains Mono","Fira Code","Consolas",monospace; line-height: 1.7; resize: none; outline: none; min-height: 300px; tab-size: 4; }

/* ── 에디터 액션 ── */
.editor-actions { display: flex; gap: 8px; align-items: center; }
.btn-clear, .btn-copy { background: transparent; color: var(--muted); border: 1px solid var(--border); border-radius: 6px; padding: 8px 12px; font-size: 14px; cursor: pointer; transition: background 0.15s; }
.btn-clear:hover { color: var(--red); border-color: var(--red); }
.btn-copy:hover  { color: var(--green); border-color: var(--green); }
.btn-submit { flex: 1; padding: 10px; background: var(--accent); color: #fff; border: none; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; transition: opacity 0.15s, transform 0.1s; }
.btn-submit:hover:not(:disabled) { opacity: 0.88; transform: translateY(-1px); }
.btn-submit:disabled { background: var(--border); color: var(--muted); cursor: default; }

/* ── 결과/힌트 박스 ── */
.result-box, .hint-box { border-radius: 8px; padding: 1rem 1.25rem; font-size: 13px; line-height: 1.7; }
.result-box.pass { background: #0d2e1a; border: 1px solid #1f6b3a; color: var(--green); }
.result-box.fail { background: #2e0d0d; border: 1px solid #6b1f1f; color: #f8a0a0; }
.hint-box { background: #2a2510; border: 1px solid #5a4a10; color: var(--yellow); }
.tc-list { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.tc-row { padding: 6px 8px; border-radius: 6px; display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; align-items: center; }
.tc-row.ok { background: #0d2e1a; }
.tc-row.ng { background: #2e0d0d; }
.tc-row code { background: rgba(255,255,255,0.07); padding: 1px 5px; border-radius: 4px; }
.tc-row .err { color: var(--red); font-family: monospace; }
.hidden { display: none !important; }

/* ── 리더보드 ── */
.lb-page { max-width: 640px; margin: 2.5rem auto; padding: 0 1.5rem; }
.lb-title { font-size: 26px; font-weight: 600; margin-bottom: 1.5rem; text-align: center; }
.lb-tabs { display: flex; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 5px; margin-bottom: 1.25rem; }
.lb-tab { flex: 1; padding: 8px; background: transparent; color: var(--muted); border: none; border-radius: 6px; font-size: 13px; font-weight: 500; cursor: pointer; transition: background 0.15s, color 0.15s; }
.lb-tab.active { background: var(--accent); color: #fff; }
.lb-subtitle { font-size: 12px; color: var(--muted); margin-bottom: 1rem; text-align: center; }
.lb-list { display: flex; flex-direction: column; gap: 8px; }
.lb-row { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.85rem 1rem; transition: border-color 0.15s; }
.lb-row:hover { border-color: var(--accent); }
.lb-rank { font-size: 18px; min-width: 28px; text-align: center; }
.lb-name { flex: 1; font-size: 14px; font-weight: 500; }
.lb-tag  { font-size: 11px; padding: 2px 8px; border-radius: 20px; border: 1px solid var(--border); color: var(--muted); }
.lb-time { font-size: 13px; color: var(--accent); font-family: monospace; min-width: 50px; text-align: right; }
.lb-streak-small { font-size: 12px; color: var(--muted); }
.lb-streak-big   { font-size: 15px; font-weight: 600; color: var(--yellow); margin-left: auto; }
.lb-solved       { font-size: 13px; color: var(--green); margin-left: auto; font-weight: 500; }
.lb-loading, .lb-empty { text-align: center; color: var(--muted); font-size: 14px; padding: 2rem; }

/* ── 피드백 페이지 ── */
.fb-page { max-width: 600px; margin: 2.5rem auto; padding: 0 1.5rem; }
.fb-tabs { display: flex; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 5px; margin-bottom: 1.25rem; }
.fb-tab  { flex: 1; padding: 8px; background: transparent; color: var(--muted); border: none; border-radius: 6px; font-size: 13px; font-weight: 500; cursor: pointer; transition: background 0.15s; }
.fb-tab.active { background: var(--accent); color: #fff; }
.fb-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.fb-desc { font-size: 13px; color: var(--muted); line-height: 1.6; }
.fb-notice { font-size: 12px; color: var(--yellow); background: #2a2510; border: 1px solid #5a4a10; border-radius: 6px; padding: 8px 12px; }
.fb-textarea { width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 0.875rem; font-size: 14px; font-family: inherit; line-height: 1.6; resize: vertical; outline: none; transition: border-color 0.15s; }
.fb-textarea:focus { border-color: var(--accent); }
.fb-actions { display: flex; align-items: center; justify-content: space-between; }
.fb-char { font-size: 12px; color: var(--muted); }
.fb-result { border-radius: 8px; padding: 0.875rem 1rem; font-size: 13px; }
.fb-result.pass { background: #0d2e1a; border: 1px solid #1f6b3a; color: var(--green); }
.fb-result.fail { background: #2e0d0d; border: 1px solid #6b1f1f; color: #f8a0a0; }

/* ── 풀이 코드 모달 ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex; align-items: center; justify-content: center;
  z-index: 100; padding: 1rem;
}
.modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%; max-width: 700px;
  max-height: 85vh;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.modal-title { font-size: 15px; font-weight: 600; }
.modal-close {
  background: transparent; color: var(--muted);
  border: 1px solid var(--border); border-radius: 6px;
  width: 28px; height: 28px; cursor: pointer; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { color: var(--red); border-color: var(--red); }
.modal-meta {
  display: flex; gap: 10px; align-items: center;
  padding: 0.6rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.modal-editor-wrap {
  display: flex;
  overflow-y: auto;
  flex: 1;
  background: #12121a;
}
.modal-code {
  flex: 1; padding: 1rem;
  font-family: "JetBrains Mono","Fira Code","Consolas",monospace;
  font-size: 13px; line-height: 1.7;
  color: #cdd6f4; white-space: pre; overflow-x: auto;
  margin: 0;
}

/* ── 히스토리 아이템 호버 ── */
.history-item {
  display: flex; gap: 10px; align-items: center;
  padding: 8px 10px; border-radius: 6px;
  border-bottom: 1px solid var(--border); font-size: 12px;
  transition: background 0.15s;
}
.history-item:hover { background: var(--surface); }
.h-solved { font-size: 14px; }
.h-pid  { color: var(--text); font-weight: 500; flex: 1; }
.h-date { color: var(--muted); }
.h-lang { color: var(--accent); }
.h-arrow { color: var(--muted); margin-left: auto; font-size: 16px; }

/* ── 관리자 페이지 ── */
.admin-page { max-width: 1000px; margin: 2rem auto; padding: 0 1.5rem; }
.admin-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 0.5rem; }
@media(max-width:600px){ .admin-stats { grid-template-columns: repeat(2,1fr); } }
.admin-stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem; text-align: center;
}
.fb-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 10px;
}
.fb-unread { border-color: var(--accent); }
.fb-item-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 0.75rem; flex-wrap: wrap;
}
.fb-type-badge { font-size: 11px; padding: 2px 8px; border-radius: 20px; font-weight: 500; }
.badge-review  { background: #1a2a3a; color: #6ab0f5; }
.badge-inquiry { background: #2a1a3a; color: #b06af5; }
.fb-author { font-size: 13px; font-weight: 500; }
.fb-time   { font-size: 12px; color: var(--muted); margin-left: auto; }
.fb-done   { font-size: 12px; color: var(--green); }
.fb-item-body { font-size: 14px; line-height: 1.7; color: var(--muted); white-space: pre-wrap; }
.btn-mark-read {
  font-size: 12px; padding: 3px 10px;
  background: var(--accent); color: #fff;
  border: none; border-radius: 6px; cursor: pointer;
}
.admin-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.admin-table th {
  text-align: left; padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--muted); font-weight: 500;
}
.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.admin-table tr:hover td { background: var(--surface); }

/* ── 언어 토글 버튼 ── */
.btn-lang {
  font-size: 12px; padding: 4px 10px;
  border-radius: 6px; border: 1px solid var(--border);
  background: transparent; color: var(--muted);
  cursor: pointer; white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.btn-lang:hover { color: var(--accent); border-color: var(--accent); }

/* ── 문제 목록 아이템 ── */
.problem-list-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.75rem 1rem;
}
.problem-list-item.approved  { border-left: 3px solid var(--green); }
.problem-list-item.unapproved { border-left: 3px solid var(--red); }

/* ── 공유 박스 ── */
.share-box {
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-top: 10px;
}
.share-title {
  font-size: 15px; font-weight: 600;
  color: var(--text); margin-bottom: 0.75rem;
}
.share-preview {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.875rem;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  line-height: 1.7;
  color: var(--text);
  white-space: pre-wrap;
  margin-bottom: 0.875rem;
}
.share-btns {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.share-btn {
  padding: 8px 16px; border-radius: 6px;
  font-size: 13px; font-weight: 500;
  cursor: pointer; text-decoration: none;
  border: 1px solid var(--border);
  background: transparent; color: var(--text);
  transition: opacity 0.15s;
}
.share-btn:hover { opacity: 0.8; }
.twitter-btn { background: #000; color: #fff; border-color: #000; }
.kakao-btn   { background: #FEE500; color: #3A1D1D; border-color: #FEE500; }

/* ── 난이도 탭 ── */
.share-diff-tabs {
  display: flex; gap: 6px; margin-bottom: 0.875rem; flex-wrap: wrap;
}
.diff-tab {
  flex: 1; padding: 6px 10px; border-radius: 6px;
  font-size: 12px; font-weight: 500; cursor: pointer;
  border: 1px solid var(--border);
  background: transparent; color: var(--muted);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.diff-tab.active { background: var(--surface); color: var(--text); border-color: var(--accent); }
.diff-tab:hover  { color: var(--text); }
.linkedin-btn { background: #0A66C2; color: #fff; border-color: #0A66C2; }

/* ── 난이도 선택 탭 ── */
.diff-selector {
  display: flex; justify-content: center; gap: 10px;
  padding: 0.75rem 2rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.diff-sel-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 22px; border-radius: 20px;
  font-size: 14px; font-weight: 500;
  text-decoration: none; color: var(--muted);
  border: 1px solid var(--border);
  transition: all 0.15s;
}
.diff-sel-btn:hover { color: var(--text); border-color: var(--muted); }
.diff-sel-btn.active.easy   { background:#1a3a2a; color:var(--green);  border-color:var(--green); }
.diff-sel-btn.active.medium { background:#3a2e10; color:var(--yellow); border-color:var(--yellow); }
.diff-sel-btn.active.hard   { background:#3a1515; color:var(--red);    border-color:var(--red); }

/* ── 공개 프로필 ── */
.profile-page { max-width: 760px; margin: 2rem auto; padding: 0 1.5rem; }
.profile-hero {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  display: flex; align-items: center; gap: 1.5rem;
  flex-wrap: wrap; margin-bottom: 1.25rem;
}
.profile-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.profile-avatar-fallback {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 600;
}
.profile-info { flex: 1; }
.profile-name { font-size: 22px; font-weight: 600; margin-bottom: 0.75rem; }
.profile-stats { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.profile-stat { display: flex; flex-direction: column; }
.profile-stat-val   { font-size: 20px; font-weight: 600; }
.profile-stat-label { font-size: 12px; color: var(--muted); }
.profile-share { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.profile-section {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
  margin-bottom: 1.25rem;
}

/* ── 언어 바 ── */
.lang-bars { display: flex; flex-direction: column; gap: 8px; }
.lang-bar-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.lang-bar-name  { min-width: 80px; color: var(--text); }
.lang-bar-track { flex: 1; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.lang-bar-fill  { height: 100%; background: var(--accent); border-radius: 3px; transition: width 0.6s ease; }
.lang-bar-count { min-width: 24px; text-align: right; color: var(--muted); }

/* ── 배지 그리드 ── */
.badges-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.badge-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem;
  text-align: center; display: flex; flex-direction: column; gap: 4px;
}
.badge-card.earned { border-color: var(--accent); background: #1a1a2e; }
.badge-icon  { font-size: 28px; }
.badge-name  { font-size: 12px; font-weight: 500; color: var(--text); }
.badge-desc  { font-size: 11px; color: var(--muted); line-height: 1.4; }
.badge-date  { font-size: 11px; color: var(--accent); }
.badge-linkedin {
  display: inline-block; margin-top: 6px;
  font-size: 11px; padding: 3px 8px;
  background: #0A66C2; color: #fff;
  border-radius: 4px; text-decoration: none;
  pointer-events: all;
}

/* ── 업적 토스트 알림 ── */
.badge-toast {
  background: var(--surface); border: 1px solid var(--accent);
  border-radius: var(--radius); padding: 0.875rem 1rem;
  display: flex; align-items: center; gap: 12px;
  min-width: 260px; pointer-events: all;
  opacity: 0; transform: translateX(20px);
  transition: opacity 0.3s, transform 0.3s;
}
.badge-toast.show { opacity: 1; transform: translateX(0); }
.badge-toast-icon  { font-size: 28px; flex-shrink: 0; }
.badge-toast-title { font-size: 11px; color: var(--accent); font-weight: 500; margin-bottom: 2px; }
.badge-toast-name  { font-size: 14px; font-weight: 600; color: var(--text); }
.badge-toast-linkedin {
  display: inline-block; margin-top: 4px;
  font-size: 11px; padding: 2px 8px;
  background: #0A66C2; color: #fff;
  border-radius: 4px; text-decoration: none;
}

/* ── 공개/비공개 토글 ── */
.public-toggle {
  display: flex; align-items: center; gap: 4px;
  cursor: pointer; font-size: 16px;
  padding: 6px 8px; border-radius: 6px;
  border: 1px solid var(--border);
}
.public-toggle input { display: none; }

/* ── 풀이 목록 ── */
.solutions-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; margin-top: 0;
}
.solutions-header {
  padding: 0.75rem 1rem; font-size: 13px; font-weight: 500;
  border-bottom: 1px solid var(--border); color: var(--text);
}
.solution-item { border-bottom: 1px solid var(--border); }
.solution-item:last-child { border-bottom: none; }
.solution-meta {
  display: flex; align-items: center; gap: 8px;
  padding: 0.6rem 1rem; font-size: 12px;
}
.solution-rank  { color: var(--accent); font-weight: 600; min-width: 24px; }
.solution-user  { color: var(--text); text-decoration: none; font-weight: 500; flex: 1; }
.solution-user:hover { color: var(--accent); }
.solution-lang  { color: var(--accent); font-size: 11px; padding: 1px 6px; border: 1px solid var(--border); border-radius: 4px; }
.solution-time  { color: var(--green); font-family: monospace; }
.solution-code {
  margin: 0; padding: 0.75rem 1rem;
  background: #12121a; color: #cdd6f4;
  font-family: monospace; font-size: 12px;
  line-height: 1.6; overflow-x: auto;
  white-space: pre; max-height: 200px; overflow-y: auto;
  border-top: 1px solid var(--border);
}