:root {
    --ink: #17212b;
    --muted: #687580;
    --line: #e1e6eb;
    --surface: rgba(255, 255, 255, .94);
    --page: #f4f6f8;
    --accent: #174b72;
    --accent-dark: #103b5b;
    --soft: #edf4f8;
    --danger: #9b2c2c;
}
* { box-sizing: border-box; }
body {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background-color: var(--page);
    background-image: linear-gradient(to bottom, #fff 0, #f7f9fa 28rem, var(--page) 58rem);
    background-repeat: no-repeat;
    font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
body::after {
    position: absolute;
    z-index: 0;
    top: 34rem;
    right: -230px;
    width: min(660px, 62vw);
    aspect-ratio: 1;
    background: url("../../assets/images/innebandyball.png") center / contain no-repeat;
    content: "";
    opacity: .035;
    pointer-events: none;
}
.page-shell { position: relative; z-index: 1; width: min(920px, calc(100% - 36px)); margin: 58px auto 42px; }
.page-header { margin: 0 auto 30px; max-width: 820px; padding: 0 8px; }
.eyebrow { margin: 0 0 9px; color: var(--accent); font-size: .78rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
h1 { margin: 0 0 12px; font-size: clamp(2.5rem, 6vw, 3.65rem); font-weight: 720; letter-spacing: -.045em; line-height: 1.02; }
.page-header > p:last-child, .page-header-description { max-width: 650px; margin: 0; color: var(--muted); font-size: 1.08rem; }
.public-decisions-link { display: inline-flex; margin-top: 14px; color: var(--accent); font-weight: 700; text-decoration: none; }
.public-decisions-link:hover { text-decoration: underline; }
.public-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.public-actions .button { min-height: 44px; }
.form-card { overflow: hidden; border: 1px solid rgba(210, 219, 225, .85); border-radius: 20px; background: var(--surface); box-shadow: 0 24px 70px rgba(28, 46, 60, .09), 0 2px 8px rgba(28, 46, 60, .035); backdrop-filter: blur(16px); }
.form-section { padding: 28px 32px; border-bottom: 1px solid rgba(220, 227, 232, .9); }
.form-section h2 { margin: 0 0 17px; font-size: 1.12rem; font-weight: 700; letter-spacing: -.015em; }
.form-section p { margin: 0; color: var(--muted); }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.choice-card { display: flex; align-items: flex-start; gap: 13px; min-height: 82px; padding: 18px; border: 1px solid #dbe2e7; border-radius: 13px; background: #fff; cursor: pointer; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease; }
.choice-card:hover { border-color: #b4c6d3; transform: translateY(-1px); }
.choice-card:focus-within { outline: 3px solid rgba(23, 75, 114, .14); }
.choice-card:has(input:checked) { border-color: #648ba5; background: linear-gradient(135deg, #f4f8fb, #eaf2f7); box-shadow: inset 0 0 0 1px rgba(23, 75, 114, .08); }
.choice-card input[type="radio"] { flex: 0 0 auto; width: 18px; height: 18px; margin: 3px 0 0; padding: 0; border: 0; accent-color: var(--accent); }
.choice-card strong, .choice-card small { display: block; }
.choice-card .choice-copy { min-width: 0; }
.choice-card strong { font-size: 1rem; letter-spacing: -.01em; }
.choice-card small { margin-top: 7px; color: var(--muted); font-size: .88rem; font-weight: 450; line-height: 1.45; }
.choice-card .choice-note { margin-top: 9px; padding-top: 8px; border-top: 1px solid rgba(202, 214, 222, .72); font-size: .83rem; }
.section-note { max-width: 780px; margin: -5px 0 18px !important; color: var(--muted); line-height: 1.55; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: block; color: #263640; font-size: .91rem; font-weight: 650; }
input:not([type="radio"]):not([type="checkbox"]), select, textarea { display: block; width: 100%; min-height: 48px; margin-top: 8px; border: 1px solid #cbd5dc; border-radius: 9px; background: #fff; color: var(--ink); font: inherit; padding: 11px 13px; transition: border-color .18s ease, box-shadow .18s ease; }
input:focus, select:focus, textarea:focus { border-color: #6f92a8; outline: 3px solid rgba(23, 75, 114, .13); }
select:disabled { color: #73808a; background: #f5f7f8; }
.full-label { max-width: 100%; }
textarea { resize: vertical; min-height: 138px; }
.section-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.section-heading-row h2 { margin: 0 0 4px; }
.section-heading-row p { font-size: .9rem; }
.player-row { display: grid; grid-template-columns: 1fr 180px auto; align-items: end; gap: 13px; padding: 16px; margin-top: 11px; border: 1px solid var(--line); border-radius: 12px; background: #fafcfd; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 19px; border: 0; border-radius: 9px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; transition: background .18s ease, box-shadow .18s ease, transform .18s ease; }
.button-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 10px rgba(23, 75, 114, .17); }
.button-primary:hover { background: var(--accent-dark); box-shadow: 0 6px 14px rgba(23, 75, 114, .2); transform: translateY(-1px); }
.button-secondary { border: 1px solid #c8d5de; background: #fff; color: var(--accent); }
.button-secondary:hover { background: var(--soft); }
.button-remove { min-height: 44px; padding: 8px 13px; border: 1px solid #e2b9b9; background: #fff; color: var(--danger); }
.text-button { min-height: 40px; padding: 8px 0; border: 0; background: transparent; color: var(--accent); font: inherit; font-size: .91rem; font-weight: 700; cursor: pointer; text-decoration: none; }
.text-button:hover:not(:disabled) { text-decoration: underline; }
.text-button:disabled { color: #98a4ad; cursor: not-allowed; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 24px 32px; }
.form-actions p { margin: 0; color: var(--muted); font-size: .88rem; }
.notice { margin: 0 0 18px; padding: 14px 16px; border-radius: 10px; }
.notice-success { border: 1px solid #aad4b6; background: #eef8f0; color: #205e32; }
.notice-error { border: 1px solid #e1b7b7; background: #fff2f2; color: #812424; }
.is-hidden, .honeypot { display: none !important; }
.page-footer { padding: 19px 8px; color: var(--muted); font-size: .86rem; }
.age-dialog { width: min(680px, calc(100% - 28px)); max-height: min(82vh, 760px); padding: 28px; overflow: auto; border: 1px solid rgba(210, 219, 225, .9); border-radius: 20px; color: var(--ink); background: #fff; box-shadow: 0 30px 90px rgba(10, 26, 39, .24); }
.age-dialog::backdrop { background: rgba(17, 31, 42, .42); backdrop-filter: blur(5px); }
.public-dialog { width: min(720px, calc(100% - 28px)); max-height: min(82vh, 760px); padding: 28px; overflow: auto; border: 1px solid rgba(210, 219, 225, .9); border-radius: 20px; color: var(--ink); background: #fff; box-shadow: 0 30px 90px rgba(10, 26, 39, .24); }
.public-dialog-wide { width: min(1000px, calc(100% - 28px)); }
.public-dialog::backdrop { background: rgba(17, 31, 42, .48); backdrop-filter: blur(5px); }
.meeting-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.meeting-list li { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 11px; background: #f7f9fa; }
.meeting-list time { flex: 0 0 auto; color: var(--accent); font-weight: 700; }
.ethical-public-note { margin: 0 0 16px; padding: 12px 14px; border: 1px solid #e5d6a9; border-radius: 10px; background: #fff9e9; color: #71591e; font-size: .91rem; }
.pending-table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.pending-table { width: 100%; min-width: 680px; border-collapse: collapse; text-align: left; }
.pending-table th, .pending-table td { padding: 13px 15px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pending-table th { background: #f3f6f8; color: #465763; font-size: .82rem; letter-spacing: .015em; }
.pending-table tr:last-child td { border-bottom: 0; }
.pending-table td:first-child { font-weight: 700; }
.dialog-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.dialog-heading h2 { margin: 0; font-size: clamp(1.55rem, 5vw, 2rem); letter-spacing: -.035em; }
.dialog-heading h2 span { color: var(--muted); font-size: .78em; font-weight: 550; }
.dialog-close { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #eef1f3; color: #25323b; font-size: 1.55rem; line-height: 1; cursor: pointer; }
.dialog-close:hover { background: #e1e7eb; }
.dialog-intro { margin: 16px 0 20px; color: var(--muted); }
.age-table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.age-table { width: 100%; border-collapse: collapse; text-align: left; }
.age-table th, .age-table td { padding: 12px 15px; border-bottom: 1px solid var(--line); }
.age-table th { background: #f7f9fa; font-size: .83rem; letter-spacing: .02em; }
.age-table td:last-child, .age-table th:last-child { color: var(--muted); }
.age-table tr:last-child td { border-bottom: 0; }
.publication-notice { background: #fbfcfd; }
.publication-notice p { max-width: 760px; font-size: .92rem; }
.public-type-list, .public-club-list { display: grid; gap: 12px; }
.public-type-panel, .public-club-panel { overflow: hidden; border: 1px solid rgba(210, 219, 225, .9); border-radius: 17px; background: rgba(255,255,255,.76); box-shadow: 0 10px 32px rgba(28,46,60,.045); }
.public-type-summary, .public-club-summary { display: grid; grid-template-columns: minmax(0, 1fr) auto 18px; align-items: center; gap: 13px; padding: 19px 22px; cursor: pointer; list-style: none; }
.public-type-summary::-webkit-details-marker, .public-club-summary::-webkit-details-marker { display: none; }
.public-type-summary::after, .public-club-summary::after { content: "+"; grid-column: 3; justify-self: end; color: var(--accent); font-size: 1.35rem; font-weight: 450; line-height: 1; }
.public-type-panel[open] > .public-type-summary::after, .public-club-panel[open] > .public-club-summary::after { content: "−"; }
.public-type-summary { font-size: 1.16rem; font-weight: 720; letter-spacing: -.02em; }
.public-club-panel { background: #f1f4f6; border-color: #dce3e8; box-shadow: none; }
.public-club-summary { padding: 15px 18px; font-weight: 680; }
.public-count { justify-self: end; padding: 4px 10px; border: 1px solid #e1e8ed; border-radius: 999px; background: #f2f6f8; color: #526572; font-size: .79rem; font-weight: 650; line-height: 1.35; white-space: nowrap; }
.public-type-content { padding: 0 18px 18px; }
.public-type-panel:not([open]) > .public-type-summary { background: rgba(255,255,255,.72); }
.public-club-panel:not([open]) > .public-club-summary { background: #f1f4f6; }
.public-decision-list { display: grid; gap: 0; }
.public-club-panel > .public-decision-list { padding: 2px 18px 10px; background: #f1f4f6; }
.public-decision-card { padding: 18px 14px; border-top: 1px solid #d7e0e5; }
.public-decision-card:first-child { border-top: 0; }
.empty-public { padding: 20px 22px; border: 1px solid rgba(210, 219, 225, .9); border-radius: 14px; background: rgba(255,255,255,.98); box-shadow: 0 7px 20px rgba(28,46,60,.045); }
.public-decision-type { margin: 0 0 7px; color: var(--accent); font-size: .77rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.public-decision-card h3 { margin: 0 0 13px; font-size: 1.08rem; letter-spacing: -.02em; }
.public-decision-card h3 span { color: var(--muted); font-weight: 550; }
.public-player-summary { margin: 0 0 14px; padding: 0 0 12px; color: #354853; font-size: .94rem; }
.public-player-label, .public-decision-label { flex: 0 0 auto; color: var(--muted); font-size: .74rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.public-decision-text { padding: 12px 14px; border-radius: 10px; background: #f7f9fa; color: #33434e; }
.public-player-label { margin: 0 0 5px; }
.public-decision-label { margin: 0 0 5px; }
.public-decision-copy { line-height: 1.65; }
.empty-public { color: var(--muted); }
@media (max-width: 640px) {
    .public-type-summary { padding: 17px; font-size: 1.04rem; }
    .public-type-content { padding: 0 11px 11px; }
    .public-club-summary { padding: 14px; }
    .public-club-panel > .public-decision-list { padding: 2px 10px 8px; background: #f1f4f6; }
    .public-decision-card { padding: 15px 8px; }
    .empty-public { padding: 17px; }
    .public-type-summary, .public-club-summary { grid-template-columns: minmax(0, 1fr) auto 15px; gap: 8px; }
    .public-count { padding: 4px 7px; font-size: .72rem; }
    .page-shell { width: min(100% - 20px, 920px); margin: 30px auto 22px; }
    .page-header { margin-bottom: 22px; padding: 0 4px; }
    .page-header > p:last-child { font-size: 1rem; }
    .form-card { border-radius: 16px; }
    .form-section { padding: 22px 17px; }
    .choice-row, .field-grid { grid-template-columns: 1fr; }
    .choice-card { min-height: 72px; }
    .player-row { grid-template-columns: 1fr 1fr; }
    .player-row .button-remove { grid-column: 1 / -1; }
    .section-heading-row, .form-actions { align-items: stretch; flex-direction: column; }
    .text-button { align-self: flex-start; }
    .form-actions { padding: 21px 17px; }
    .form-actions .button { width: 100%; }
    .age-dialog { padding: 21px 17px; border-radius: 17px; }
    .public-dialog { padding: 21px 17px; border-radius: 17px; }
    .public-actions { display: grid; grid-template-columns: 1fr; }
    .public-actions .button { width: 100%; }
    .age-table th, .age-table td { padding: 10px 11px; }
}
