* { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f5f6f8;
    color: #1c1c1e;
    margin: 0;
    padding: 16px;
}

.wrap { max-width: 480px; margin: 0 auto; }

h1 { font-size: 22px; margin-bottom: 12px; }

h2 {
    font-size: 16px;
    margin: 0 0 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

label { display: block; margin-bottom: 12px; font-size: 14px; color: #444; }

input[type=number], input[type=text] {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 4px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

.checkbox { display: flex; align-items: center; gap: 8px; }
.checkbox input { width: auto; }

button {
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    font-size: 15px;
    cursor: pointer;
}

.primary { background: #2d7ff9; color: #fff; width: 100%; }
.secondary { background: #eef2ff; color: #2d3a8c; width: 100%; }

.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-row button { flex: 1; background: #2d7ff9; color: #fff; min-width: 90px; }

.link-btn { background: none; border: none; color: #2d7ff9; text-decoration: underline; padding: 0; font-size: 13px; }

.switch { font-size: 13px; color: #666; }

.flash { background: #e6f9ee; color: #146c3a; padding: 10px; border-radius: 8px; margin-bottom: 12px; font-size: 14px; }

.streak { font-size: 13px; font-weight: normal; color: #e0862a; }

.team-total { font-size: 15px; }
.team-total-alltime { font-size: 13px; color: #666; margin-top: 2px; }

.encouragement { font-size: 13px; color: #2d7ff9; margin: 4px 0; }

.note-item { font-size: 13px; margin: 6px 0; color: #444; }
.see-all { font-size: 13px; margin-top: 10px; }
.see-all a { color: #2d7ff9; text-decoration: none; }

.date-heading { font-size: 12px; font-weight: 600; color: #888; margin: 20px 0 6px; text-transform: uppercase; letter-spacing: 0.03em; }
.note-card { margin-bottom: 8px; padding: 12px; }
.note-text { font-size: 14px; margin: 4px 0 0; color: #1c1c1e; }

table.leaderboard { width: 100%; border-collapse: collapse; margin-top: 8px; }
table.leaderboard th, table.leaderboard td {
    text-align: left;
    padding: 8px 4px;
    font-size: 13px;
    border-bottom: 1px solid #eee;
}
