/* efoilracingofficial.com */
:root {
  --bg: #f5f7fa; --card: #fff; --ink: #14202b; --muted: #5d6b78; --line: #dde3ea;
  --accent: #0b6fb8; --accent-ink: #fff; --puck: #127a3f; --phone: #a35f00; --danger: #b42318;
}
* { box-sizing: border-box; }
html { font-size: 16px; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.5; }
a { color: var(--accent); }
main { max-width: 1100px; margin: 0 auto; padding: 1.25rem 1rem 3rem; }
h1 { font-size: 1.7rem; margin: .5rem 0 .25rem; }
h2 { font-size: 1.2rem; margin: 2rem 0 .5rem; }
h1 small, h2 small { font-size: .8rem; font-weight: 400; color: var(--muted); margin-left: .4rem; }
.lead { color: var(--muted); margin-top: 0; }
.crumb { margin: 0; font-size: .9rem; }
.empty, .note { color: var(--muted); }

.top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
       padding: .75rem 1.25rem; background: #0e2233; color: #fff; }
.top .brand { color: #fff; text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.top .brand span { font-weight: 400; opacity: .75; font-size: .95rem; }
.top nav { display: flex; gap: 1rem; align-items: center; }
.top nav a { color: #cfe3f3; text-decoration: none; }
.top nav a.on, .top nav a:hover { color: #fff; text-decoration: underline; }
.foot { max-width: 1100px; margin: 0 auto; padding: 1rem; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); }

.map { height: 380px; border-radius: 8px; border: 1px solid var(--line); margin: 1rem 0; background: #e8eef4; }

table.list { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
table.list th, table.list td { padding: .5rem .65rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list th { background: #eef2f6; font-size: .85rem; color: var(--muted); font-weight: 600; }
table.list tr:last-child td { border-bottom: 0; }
table.list.small td, table.list.small th { padding: .3rem .55rem; font-size: .9rem; }
table.list.indicative td.time { color: var(--phone); }
td.time { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
tr.best td { background: #eaf6ee; }
tr.deleted td { opacity: .5; }
.table-wrap { overflow-x: auto; }

.src { font-size: .8rem; padding: .1rem .45rem; border-radius: 999px; white-space: nowrap; }
.src.puck { background: #e3f3e9; color: var(--puck); }
.src.phone { background: #fdf0dc; color: var(--phone); }
.flag { font-size: .75rem; background: #eef2f6; color: var(--muted); padding: .05rem .4rem; border-radius: 4px; }

details.session { background: var(--card); border: 1px solid var(--line); border-radius: 8px; margin: .5rem 0; padding: .5rem .75rem; }
details.session summary { cursor: pointer; }
details.session table { margin-top: .5rem; }

form.filter { display: flex; gap: .75rem; align-items: end; flex-wrap: wrap; margin: .5rem 0; }
input[type=text], input[type=date], input[type=password] { font: inherit; padding: .35rem .5rem; border: 1px solid var(--line); border-radius: 6px; }
button { font: inherit; padding: .35rem .8rem; border: 0; border-radius: 6px; background: var(--accent); color: var(--accent-ink); cursor: pointer; }
button.link { background: none; color: #cfe3f3; padding: 0; text-decoration: underline; }
form.inline { display: inline-flex; gap: .4rem; align-items: center; flex-wrap: wrap; margin: 0; }
form.danger button { background: var(--danger); }
label.confirm { font-size: .8rem; color: var(--muted); }
.box { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 1rem; max-width: 640px; display: grid; gap: .75rem; }
pre.box { white-space: pre-wrap; word-break: break-all; display: block; }
.msg { background: #e8f2fb; border: 1px solid #b9d6ee; padding: .5rem .75rem; border-radius: 6px; }
.msg.err { background: #fdecea; border-color: #f2b8b5; }
body.admin main { max-width: 1300px; }

@media (max-width: 640px) {
  table.list { display: block; overflow-x: auto; }
  .map { height: 280px; }
}

.course-label { background: #0e2233; color: #fff; border: 0; font-weight: 600; }
