*{box-sizing:border-box;margin:0;padding:0}
body{font-family:'Pretendard',-apple-system,sans-serif;background:#f5f5f5;color:#333}
nav{background:#2e7d32;padding:10px 20px;display:flex;gap:14px;align-items:center;flex-wrap:wrap}
nav a{color:white;text-decoration:none;font-size:14px}
nav a:hover{text-decoration:underline}
nav .user-info{margin-left:auto;color:#c8e6c9;font-size:13px}
.container{max-width:960px;margin:20px auto;padding:0 16px}
h1{margin-bottom:16px;color:#1b5e20}
h2{margin:18px 0 10px;color:#2e7d32}
h3{margin:10px 0 6px;color:#333}
table{width:100%;border-collapse:collapse;background:white;border-radius:8px;overflow:hidden;box-shadow:0 1px 3px rgba(0,0,0,.1);margin-bottom:16px}
th,td{padding:8px 10px;text-align:center;border-bottom:1px solid #e0e0e0;font-size:13px}
th{background:#e8f5e9;font-weight:600}
tr:hover{background:#f1f8e9}
td.left,th.left{text-align:left}
.btn{display:inline-block;padding:7px 14px;border:none;border-radius:6px;cursor:pointer;font-size:13px;text-decoration:none;color:white}
.btn-primary{background:#2e7d32}
.btn-danger{background:#c62828}
.btn-sm{padding:3px 8px;font-size:12px}
.btn-toggle{background:#558b2f;margin-bottom:4px}
form.inline{display:inline}
input,select,textarea{padding:7px 10px;border:1px solid #ccc;border-radius:6px;font-size:13px}
.form-group{margin-bottom:10px}
.form-group label{display:block;margin-bottom:3px;font-weight:600;font-size:13px}
.form-row{display:flex;gap:12px;flex-wrap:wrap}
.form-row .form-group{flex:1;min-width:150px}
.card{background:white;border-radius:8px;padding:16px;box-shadow:0 1px 3px rgba(0,0,0,.1);margin-bottom:14px}
.badge{display:inline-block;padding:2px 8px;border-radius:12px;font-size:11px;color:white}
.badge-pending{background:#9e9e9e}.badge-guest{background:#ff9800}.badge-member{background:#2196f3}
.badge-regular{background:#4caf50}.badge-staff{background:#7b1fa2}.badge-admin{background:#c62828}
.badge-sysadmin{background:#d50000}
.stat{text-align:center}
.stat .num{font-size:26px;font-weight:700;color:#2e7d32}
.stat .label{font-size:11px;color:#666}
.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:10px;margin-bottom:16px}
.pending-msg{background:#fff3e0;border:1px solid #ffcc02;padding:20px;border-radius:8px;text-align:center}
.linked{color:#2e7d32;font-weight:600}.unlinked{color:#9e9e9e}
.hidden{display:none}
.sortable{cursor:pointer;user-select:none}
.sortable:hover{background:#c8e6c9}
a.name-link{color:#1b5e20;text-decoration:none;font-weight:600}
a.name-link:hover{text-decoration:underline}
a.group-link{color:#1565c0;text-decoration:none;font-weight:600}
a.group-link:hover{text-decoration:underline}
.member-info{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:8px}
.member-info dt{font-weight:600;color:#666;font-size:12px}
.member-info dd{margin-bottom:8px;font-size:14px}
/* Scorecard */
.scorecard{overflow-x:auto}
.scorecard table{min-width:700px}
.sc-albatross{color:#e53935;font-weight:700}
.sc-eagle{color:#f57c00;font-weight:700}
.sc-birdie{color:#fdd835;font-weight:700}
.sc-par{color:#43a047}
.sc-bogey{color:#1e88e5}
.sc-double{color:#283593}
.sc-triple{color:#7b1fa2}
.sc-quad{color:#616161}
.sc-shape{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;font-size:12px;font-weight:700}
.sc-shape.shape-dcircle{border:1.5px solid currentColor;border-radius:50%;outline:1.5px solid currentColor;outline-offset:1px}
.sc-shape.shape-circle{border:1.5px solid currentColor;border-radius:50%}
.sc-shape.shape-square{border:1.5px solid currentColor}
.sc-shape.shape-dsquare{border:1.5px solid currentColor;outline:1.5px solid currentColor;outline-offset:1px}
.scorecard th,.scorecard td{width:36px;min-width:36px;max-width:36px;padding:4px 2px;box-sizing:border-box}
.scorecard th:first-child,.scorecard td:first-child{width:auto;min-width:56px;max-width:none;white-space:nowrap}
.scorecard .sc-out,.scorecard .sc-in,.scorecard .sc-total{width:40px;min-width:40px;max-width:40px}
.sc-header{background:#2e7d32;color:white;font-weight:700;font-size:12px}
.sc-header th{background:#2e7d32;color:white;font-weight:700;border-bottom:2px solid #1b5e20}
.sc-par-row{background:#e8f5e9}
.sc-out{background:#fff8e1;font-weight:700}
.sc-in{background:#e3f2fd;font-weight:700}
.sc-total{background:#fce4ec;font-weight:700}
/* Club cards */
.club-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px;margin-bottom:16px}
.club-card{background:white;border-radius:10px;padding:20px;box-shadow:0 2px 6px rgba(0,0,0,.08);text-align:center;transition:transform .15s}
.club-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(0,0,0,.12)}
.club-card .club-name{font-size:18px;font-weight:700;color:#1b5e20;margin-bottom:4px}
.club-card .club-desc{font-size:12px;color:#666;margin-bottom:10px}
.club-card .club-meta{font-size:11px;color:#999}
