* { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: #f5f5f7;
    color: #222;
    margin: 0;
    padding: 16px;
    line-height: 1.4;
}

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

h1 {
    font-size: 1.4rem;
    margin: 0 0 4px;
}
h2 {
    font-size: 1.15rem;
    margin: 24px 0 8px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 4px;
}
h3 {
    font-size: 1rem;
    margin: 16px 0 8px;
}

.subtitle {
    color: #666;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

a { color: #1a5fb4; }

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

.status-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.status-nominating { background: #fff3cd; color: #7a5b00; }
.status-voting      { background: #cfe2ff; color: #084298; }
.status-locked       { background: #d1e7dd; color: #0f5132; }

label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 8px 0 3px;
    color: #444;
}

input[type=text], input[type=url], select {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 6px;
    transition: background-color 0.2s, border-color 0.2s;
}

button, .btn {
    display: inline-block;
    background: #1a5fb4;
    color: #fff;
    border: none;
    padding: 11px 18px;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    margin-top: 8px;
}
button.secondary, .btn.secondary {
    background: #6c757d;
}
button.danger, .btn.danger {
    background: #c0392b;
}
button:active, .btn:active { opacity: 0.85; }

.save-status {
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    color: #2a7a3f;
    font-size: 0.8rem;
    margin-left: 6px;
}

.link-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
.link-row input { margin-bottom: 0; }
.link-open {
    white-space: nowrap;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.nom-slot {
    border: 1px solid #e5e5e7;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    background: #fafafa;
}
input.filled {
    background: #eaf7ec;
    border-color: #8fcf9c;
}

.song-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}
.song-row:last-child { border-bottom: none; }
.song-row select { width: 90px; margin-bottom: 0; }
.song-name { flex: 1; }
.song-name small { display: block; color: #777; }

.winner {
    background: #d1e7dd !important;
    font-weight: 700;
}

table.results {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.9rem;
}
table.results th, table.results td {
    border: 1px solid #ddd;
    padding: 6px 8px;
    text-align: center;
}
table.results th { background: #f0f0f2; }
table.results td:first-child, table.results th:first-child {
    text-align: left;
}

.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.session-picker {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.flash {
    background: #fff3cd;
    border: 1px solid #ffe69c;
    color: #7a5b00;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
}
.flash.error {
    background: #f8d7da;
    border-color: #f5c2c7;
    color: #842029;
}

.person-heading {
    display: flex;
    align-items: center;
    gap: 8px;
}

footer {
    text-align: center;
    color: #999;
    font-size: 0.8rem;
    margin: 30px 0 10px;
}
