:root{font-family:system-ui,-apple-system,Segoe UI,sans-serif;color:#e8eef5;background:#0d1420}*{box-sizing:border-box}body{margin:0}header{background:#172235;border-bottom:1px solid #304057}a{color:inherit;text-decoration:none}.wrap{max-width:1100px;margin:auto;padding:20px}.nav{display:flex;align-items:center;justify-content:space-between;gap:12px}.brand{font-weight:800;color:#5de1b1;letter-spacing:.04em}.muted{color:#9aaac0}h1{font-size:clamp(1.5rem,4vw,2.2rem)}h2{font-size:1.15rem;margin-top:0}.panel{background:#172235;border:1px solid #304057;border-radius:13px;padding:20px;margin:18px 0}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.metrics .panel{margin:0;display:flex;flex-direction:column;gap:8px}.metrics b{font-size:1.7rem;color:#5de1b1}.metrics span{font-size:.85rem;color:#9aaac0}.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px}.tile:hover{border-color:#5de1b1}.link{color:#5de1b1}.formgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}label{display:block;font-size:.9rem;font-weight:600;margin:10px 0}input,select,textarea{width:100%;margin-top:6px;padding:11px 12px;border-radius:8px;border:1px solid #465770;background:#0e1725;color:white;font:inherit}button,.button{display:inline-block;background:#29b889;color:#071a13;border:0;border-radius:8px;padding:10px 15px;font:inherit;font-weight:700;cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}.secondary{background:#314258;color:#e8eef5}.danger{color:#ff9292}.tiny{padding:3px 8px}.inline{display:inline-block}.chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:15px}.chip{padding:7px 10px;border-radius:8px;background:#26364b}.round{border:1px solid #304057;border-radius:8px;margin:10px 0;padding:12px}.round>summary{cursor:pointer;font-weight:700;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.matchlist{margin-top:12px}.match{border-top:1px solid #304057;padding:13px 4px}.matchhead{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}.score{font-weight:800;color:#5de1b1}.scoreform{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.scoreform label{max-width:150px}.scoreform button{margin-bottom:10px}.tablewrap{overflow-x:auto}table{width:100%;border-collapse:collapse;white-space:nowrap}th,td{padding:12px 10px;border-bottom:1px solid #304057;text-align:left}th{color:#9aaac0;font-size:.85rem}tbody tr:hover{background:#23334a}.notice{padding:12px;border-radius:8px;background:#263e52;margin:12px 0}.notice.error{background:#55303a}.narrow{max-width:430px;margin:40px auto}footer{font-size:.85rem}@media(max-width:600px){.wrap{padding:14px}.metrics{grid-template-columns:repeat(2,1fr)}.panel{padding:14px}.nav .muted{display:none}}

.round.day-complete{border:2px solid #16a34a}.round.day-overdue{border:2px solid #f59e0b}.round.day-partial{border:2px solid #3b82f6}.day-badge{display:inline-block;margin-left:12px;padding:4px 9px;border-radius:7px;background:#26384d;color:#e9f3ff;font-size:12px}.day-complete .day-badge{background:#14532d;color:#bbf7d0}.day-overdue .day-badge{background:#78350f;color:#fef3c7}.day-partial .day-badge{background:#1e40af;color:#dbeafe}

.checkline{display:flex;align-items:center;gap:9px;margin:12px 0}.checkline input{width:auto}select{width:100%;padding:10px;background:#101b2c;color:#fff;border:1px solid #40516a;border-radius:7px}

.excel-import{margin:1rem 0;padding:1rem;border:1px dashed #49607c;border-radius:12px}.excel-import input[type=file]{display:block;max-width:100%;margin-top:.5rem}

.match-rule{font-size:.82rem;opacity:.8;display:block;margin:.25rem 0}.handicap-settings{padding:12px;border:1px dashed #64748b;border-radius:8px;margin:10px 0}.handicap-settings label{display:inline-block;margin-right:12px}

/* V13: riwayat pertandingan per pemain */
.player-history-link{color:#79ddff;text-decoration:underline;text-decoration-color:#426580;text-underline-offset:3px}.player-history-link:hover{color:#b9efff}.history-summary{display:flex;flex-wrap:wrap;gap:12px}.history-summary span{padding:10px 13px;border:1px solid #304057;border-radius:8px;background:#101b2c}.history-summary strong{color:#5de1b1}.voor-tag{display:inline-block;background:#554020;color:#ffdf91;padding:3px 7px;border-radius:5px;margin:2px;font-size:.8rem}.result-tag{display:inline-block;padding:4px 9px;border-radius:6px;font-weight:700;font-size:.8rem}.result-tag.win{background:#14532d;color:#bbf7d0}.result-tag.loss{background:#572b34;color:#ffc7ca}.result-tag.upcoming{background:#243957;color:#c6dcfb}
