:root {
  --navy: #1b2a5e; --navy-2: #24366f; --red: #d0202f; --red-dark: #a8172a;
  --bg: #f3f5f9; --card: #ffffff; --panel: #f6f8fb; --text: #1c2430;
  --muted: #5b6676; --border: #d7dde7; --ok: #1f7a3d; --warn: #9a5b00;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px 48px; }

/* Brand header */
.brand { background: #fff; border-bottom: 4px solid var(--red); box-shadow: 0 2px 0 var(--navy); margin-bottom: 0; }
.brand .inner { max-width: 960px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand img { height: 64px; width: auto; display: block; }
.brand .season { font-weight: 800; color: var(--navy); letter-spacing: .04em; text-transform: uppercase; font-size: 13px; border: 2px solid var(--navy); border-radius: 4px; padding: 4px 10px; }
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, transparent 0 22px, rgba(255,255,255,.04) 22px 44px); pointer-events: none; }
.hero .inner { max-width: 960px; margin: 0 auto; padding: 28px 16px 30px; position: relative; z-index: 1; }
.hero h1 { color: #fff; margin: 0 0 6px; font-size: clamp(24px, 4vw, 34px); font-weight: 900; text-transform: uppercase; letter-spacing: .01em; line-height: 1.1; }
.hero h1 span { color: #ff5a67; }
.hero p { margin: 0; opacity: .9; max-width: 640px; }

h1 { color: var(--navy); font-size: 24px; margin: 0 0 4px; }

/* Embedded in Breezio: the host page is already branded, so keep it compact. */
.embedded .brand { display: none; }
.embedded .hero .inner { padding: 18px 16px 20px; }
.embedded .hero h1 { font-size: clamp(20px, 3vw, 26px); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; margin-top: 20px; overflow: hidden; box-shadow: 0 1px 2px rgba(20,30,60,.05); }
.card > header { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.card > header h2 { margin: 0; font-size: 18px; color: var(--navy); text-transform: uppercase; letter-spacing: .02em; font-weight: 800; }
.card > header .num { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.card .body { padding: 16px 18px; }
.card.award > header { background: var(--navy); border: 0; }
.card.award > header h2 { color: #fff; }
.card.award > header .num { background: var(--red); }
.card.award.red > header { background: var(--red); }
.card.award.red > header .num { background: var(--navy); }
.card.award > header .tag { margin-left: auto; color: #fff; font-size: 12px; font-weight: 700; background: rgba(255,255,255,.16); padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.criteria { background: var(--panel); border-left: 4px solid var(--red); padding: 10px 12px; border-radius: 4px; font-size: 14px; margin-bottom: 14px; }
.card.red .criteria { border-left-color: var(--navy); }

.coach-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px 12px; align-items: start; }
.coach-grid .c1 { grid-column: span 1; } .coach-grid .c2 { grid-column: span 2; } .coach-grid .c3 { grid-column: span 3; }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
input, select { height: 40px; }
select { appearance: none; -webkit-appearance: none; padding-right: 28px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%235b6676'/%3E%3C/svg%3E") no-repeat right 10px center; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
input, select, textarea { width: 100%; padding: 9px 10px; border: 1px solid var(--border); border-radius: 6px; font: inherit; background: #fff; color: var(--text); }
textarea { resize: vertical; min-height: 110px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--navy); outline-offset: -1px; }
.invalid { border-color: var(--red) !important; background: #fff5f6 !important; }
.field-err { color: var(--red-dark); font-size: 12px; margin-top: 3px; }

.athlete { border: 1px solid var(--border); border-radius: 8px; padding: 12px; margin-bottom: 10px; background: #fff; position: relative; }
.athlete .cols { display: grid; gap: 10px; grid-template-columns: 1fr 1fr 110px 130px; }
.athlete.char .cols { grid-template-columns: 1fr 1fr 130px; }
.athlete .rm { position: absolute; top: 6px; right: 6px; }
.athlete .writeup { margin-top: 10px; }
.counter { font-size: 12px; color: var(--muted); text-align: right; }
.contact { margin: 12px 0 0; padding: 10px 12px; background: var(--panel); border-radius: 6px; font-size: 14px; }
.contact a, footer.site a { color: var(--red-dark); font-weight: 600; }
.test-banner { margin-top: 16px; padding: 10px 14px; border-radius: 8px; background: #fff4d6; border: 2px dashed #d9a400; color: #5c4300; font-size: 14px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.steps { margin: 0 0 12px; padding-left: 20px; }
.steps li { margin-bottom: 6px; }
.empty { color: var(--muted); font-size: 14px; padding: 8px 0 12px; }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); padding: 6px; border-bottom: 1px solid var(--border); }
td { padding: 6px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.btn { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 6px; padding: 10px 18px; font: inherit; font-weight: 700; cursor: pointer; background: var(--navy); color: #fff; text-decoration: none; }
.btn:hover { background: var(--navy-2); }
.btn.red { background: var(--red); } .btn.red:hover { background: var(--red-dark); }
.btn.big { padding: 13px 28px; font-size: 16px; text-transform: uppercase; letter-spacing: .03em; }
.btn.ghost { background: #fff; color: var(--navy); border: 1px solid var(--border); }
.btn.ghost:hover { border-color: var(--navy); }
.btn.small { padding: 5px 10px; font-size: 13px; font-weight: 600; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--text); font-size: 14px; }
.check input { width: auto; margin-top: 3px; }
.msg { padding: 12px 14px; border-radius: 6px; margin: 16px 0 0; }
.msg.err { background: #fde8eb; color: #8a0d20; border: 1px solid #f5b8c1; }
.msg.ok { background: #e6f4ea; color: var(--ok); border: 1px solid #b8dfc4; }
.hidden { display: none !important; }
.pill { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 99px; background: var(--panel); }
.muted { color: var(--muted); font-size: 13px; }
.linkbox { display: flex; gap: 8px; } .linkbox input { flex: 1; }
.submit-bar { margin-top: 20px; display: flex; justify-content: flex-end; text-align: right; }
.submit-bar .hint { max-width: 420px; margin-left: auto; }
footer.site { text-align: center; color: var(--muted); font-size: 12px; margin-top: 32px; }

@media (max-width: 700px) {
  .coach-grid { grid-template-columns: 1fr 1fr; }
  .coach-grid .c2, .coach-grid .c3 { grid-column: 1 / -1; }
  .coach-grid .c1 { grid-column: span 1; }
  .brand img { height: 46px; }
  .athlete .cols, .athlete.char .cols { grid-template-columns: 1fr 1fr; }
  .submit-bar > div { width: 100%; }
  .submit-bar .btn { width: 100%; justify-content: center; }
  .submit-bar .hint { text-align: center; max-width: none; }
}
