* { box-sizing: border-box; }
body {
  font: 14px/1.5 -apple-system, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  margin: 0; color: #1a1a1a; background: #fafafa;
}
header {
  display: flex; align-items: center; gap: 16px; padding: 12px 20px;
  background: #fff; border-bottom: 1px solid #e8e8e8; position: sticky; top: 0; z-index: 10;
}
header strong { font-size: 16px; }
header nav { margin-left: auto; display: flex; gap: 14px; align-items: center; }
header nav a { color: #555; text-decoration: none; font-size: 13px; }
header nav a:hover { color: #000; }
header nav a.active { color: #000; font-weight: 600; }
header nav button { background: transparent; border: 1px solid #ddd; padding: 4px 10px; border-radius: 4px; font-size: 12px; cursor: pointer; }
main { max-width: 980px; margin: 24px auto; padding: 0 20px; }
h1 { font-size: 20px; margin: 0 0 16px; }
h2 { font-size: 16px; margin: 24px 0 8px; }
.card { background: #fff; border: 1px solid #e8e8e8; border-radius: 6px; padding: 16px; margin-bottom: 12px; }
.row { display: flex; gap: 12px; align-items: center; }
.btn { padding: 6px 12px; border: 1px solid #ccc; background: #fff; border-radius: 4px; cursor: pointer; font-size: 13px; }
.btn:hover { background: #f0f0f0; }
.btn-primary { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }
.btn-primary:hover { background: #333; }
.btn-danger { color: #c00; border-color: #c00; }
.btn-danger:hover { background: #fee; }
input, select, textarea { font: inherit; padding: 6px 10px; border: 1px solid #ccc; border-radius: 4px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 8px 10px; border-bottom: 1px solid #eee; text-align: left; }
th { font-weight: 600; color: #666; background: #fafafa; }
.sample-grid { display: flex; flex-direction: column; gap: 14px; max-width: 720px; margin: 0 auto; }
.sample-card-grid {
  background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; padding: 16px;
  box-shadow: 0 2px 4px rgba(0,0,0,.04); transition: opacity .2s, transform .2s;
}
.sample-card-grid.focused { border-color: #1a1a1a; box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.sample-card-grid .meta { font-size: 11px; color: #888; margin-bottom: 8px; display: flex; gap: 10px; align-items: center; }
.sample-card-grid .meta .link { margin-left: auto; color: #36c; text-decoration: none; font-size: 12px; }
.sample-card-grid .meta .link:hover { text-decoration: underline; }
.sample-card-grid .bucket { padding: 1px 6px; border-radius: 3px; font-weight: 600; }
.bucket.top { background: #fdd; color: #c33; }
.bucket.bottom { background: #ddf; color: #36c; }
.bucket.random { background: #efe; color: #3a3; }
.sample-card-grid img { max-width: 100%; max-height: 480px; display: block; margin: 8px 0; border-radius: 4px; background: #f7f7f7; }
.sample-card-grid video { max-width: 100%; max-height: 480px; display: block; margin: 8px 0; border-radius: 4px; }
.sample-card-grid .title { font-size: 16px; font-weight: 600; margin: 8px 0; }
.sample-card-grid .body { font-size: 13px; color: #444; white-space: pre-wrap; max-height: 120px; overflow: hidden; }
.judge-bar-mini { display: flex; gap: 8px; margin-top: 12px; align-items: center; }
.judge-bar-mini button { flex: 1; padding: 10px 0; font-size: 13px; font-weight: 600; }
.judge-bar-mini .ok { background: #2c7; color: #fff; border-color: #2c7; }
.judge-bar-mini .ng { background: #c33; color: #fff; border-color: #c33; }
.judge-bar-mini .skip { background: #999; color: #fff; border-color: #999; }
.judge-bar-mini .report {
  flex: 0 0 auto; padding: 6px 10px;
  background: #fff5e8; color: #b87000; border-color: #f0d5a0;
  font-weight: 500; font-size: 12px;
}
.judge-bar-mini .report:hover { background: #fde8c8; }
.sample-progress { position: sticky; top: 56px; background: #fafafa; padding: 8px 0; z-index: 5; display: flex; gap: 12px; align-items: center; font-size: 13px; }
.sample-progress .bar { flex: 1; background: #eee; height: 6px; border-radius: 3px; overflow: hidden; }
.sample-progress .bar > div { height: 100%; background: #1a1a1a; transition: width .3s; }
.kbd-hint { font-size: 11px; color: #aaa; }
.login-box { max-width: 360px; margin: 80px auto; }
.login-box input { width: 100%; padding: 10px; font-size: 14px; margin-bottom: 12px; }
.error { color: #c33; font-size: 12px; margin-top: 4px; }
.empty { color: #888; padding: 32px; text-align: center; font-size: 13px; }
