/* Shared look for the builder, admin and coach pages. */
:root { --ink: #1e1e46; --muted: #6b7280; --line: #e3e6ea; --green: #58cc02; --green-dark: #58a700; --blue: #1cb0f6; --blue-dark: #1899d6; --red: #ff4b4b; --gold: #ffc800; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { font: 15px/1.45 "Helvetica Neue", Helvetica, Arial, sans-serif; color: var(--ink); }
code, pre, textarea { font-family: ui-monospace, Menlo, Consolas, monospace; }
input, select { font: inherit; padding: 6px 10px; border: 2px solid var(--line); border-radius: 10px; background: #fff; color: inherit; }
.btn { font: inherit; font-weight: 700; border: 2px solid transparent; border-radius: 12px; padding: 8px 16px; cursor: pointer; background: var(--green); color: #fff; box-shadow: 0 3px 0 var(--green-dark); white-space: nowrap; text-decoration: none; display: inline-block; }
.btn:active:not(:disabled) { translate: 0 3px; box-shadow: none; }
.btn.small { padding: 5px 11px; font-size: 14px; }
.btn.blue { background: var(--blue); box-shadow: 0 3px 0 var(--blue-dark); }
.btn.gold { background: var(--gold); color: #5c4400; box-shadow: 0 3px 0 #e0a800; }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: 0 3px 0 var(--line); }
.btn:disabled { background: var(--line); color: #a3a3a3; box-shadow: none; cursor: default; }
.link { font: inherit; background: none; border: 0; padding: 0; color: var(--blue-dark); font-weight: 700; cursor: pointer; text-decoration: none; }
.link.danger { color: #cf222e; }
.grow { flex: 1; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hint { font-size: 13px; color: var(--muted); }
.top { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 14px; border-bottom: 1px solid var(--line); background: #fff; }
.logo { font-weight: 800; font-size: 17px; color: inherit; text-decoration: none; }
.group { display: flex; align-items: center; gap: 6px; }
.team { padding: 10px 12px; border: 2px solid var(--line); border-radius: 12px; }
.team code { font-weight: 800; letter-spacing: .1em; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.chip { padding: 2px 4px 2px 10px; border-radius: 999px; background: #eef1f4; font-size: 13px; font-weight: 600; }
table.grid { border-collapse: collapse; width: 100%; font-size: 14px; }
table.grid th, table.grid td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.grid th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
#toast { position: fixed; right: 16px; bottom: 16px; z-index: 200; max-width: 420px; padding: 12px 16px; border-radius: 14px; background: #1f2329; color: #fff; font-weight: 600; box-shadow: 0 6px 24px rgba(0, 0, 0, .25); cursor: pointer; }
#toast.good { background: #2f8f00; } #toast.bad { background: #d92b2b; }

/* full pages (admin, coach) */
body.page { background: #f6f7f9; min-height: 100vh; }
.page-body { max-width: 1200px; margin: 0 auto; padding: 24px 20px 60px; display: grid; gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.card h2 { margin: 0; font-size: 20px; }
