/* Organiser console: built for a phone held in one hand on the committee boat.
   Same Bosham Sailing Club system as the viewer: white space, navy structure, red for emphasis only. */
body.admin { min-height: 100%; background: var(--white); padding-bottom: calc(40px + var(--sab)); }
.top { display: flex; align-items: center; gap: 10px; padding: calc(8px + var(--sat)) calc(14px + var(--sar)) 8px calc(14px + var(--sal)); background: var(--navy); color: var(--white); position: sticky; top: 0; z-index: 5; }
.top .club { display: flex; align-items: center; text-decoration: none; font-weight: 600; min-height: 32px; }
.top .grow { flex: 1; font-size: 14px; }
.admin .top button { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .6); min-height: 38px; }
#tabs { display: flex; position: sticky; top: calc(54px + var(--sat)); z-index: 4; background: var(--white); border-bottom: 1px solid var(--line); }
.admin #tabs button { flex: 1; min-height: 46px; background: none; border: 0; border-radius: 0; border-bottom: 3px solid transparent; font-weight: 600; color: var(--dim); }
.admin #tabs button[aria-pressed="true"] { border-bottom-color: var(--navy); color: var(--navy); }
#main { max-width: 760px; margin: 0 auto; padding: 14px calc(14px + var(--sar)) 14px calc(14px + var(--sal)); }
#msg { position: sticky; top: calc(103px + var(--sat)); z-index: 6; margin: 8px 14px 0; padding: 10px 14px; border-radius: 8px; background: var(--red); color: var(--white); font-size: 14px; font-weight: 600; }
#msg.ok { background: var(--navy); }
.admin h2 { font-size: 18px; margin: 18px 0 10px; }
.admin h3 { font-size: 13px; letter-spacing: .07em; text-transform: uppercase; color: var(--navy); margin: 22px 0 8px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.card.tap { display: block; width: 100%; text-align: left; border-left: 4px solid var(--navy); }
.admin button.card.tap { padding: 12px 14px; font-weight: 400; }
.card.tap:hover { background: var(--tint); }
.card .sub { color: var(--dim); font-size: 13px; margin-top: 2px; font-weight: 400; }
.card .head { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.admin label { display: block; font-size: 13px; color: var(--dim); margin: 10px 0 4px; }
.admin input, .admin select, .admin textarea { width: 100%; min-height: 46px; border-radius: 9px; border: 1px solid rgba(37, 62, 119, .45); background: var(--white); padding: 8px 10px; font-size: 16px; color: var(--ink); }
.admin textarea { min-height: 110px; font: 13px ui-monospace, Menlo, monospace; }
.admin button { min-height: 46px; border-radius: 9px; border: 1px solid var(--navy); background: var(--white); padding: 0 14px; font-weight: 600; }
.admin button:hover { background: var(--tint); }
.admin button.primary { background: var(--navy); color: var(--white); border-color: var(--navy); }
.admin button.primary:hover { background: #1c3160; }
.admin button.danger { color: var(--red); border-color: var(--red); }
.admin button.small { min-height: 38px; font-size: 13px; padding: 0 10px; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hint { font-size: 13px; color: var(--dim); margin: 6px 0 0; }
.hint.sug { color: var(--navy); font-weight: 600; }
.pill { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: var(--white); color: var(--navy); border: 1px solid var(--navy); white-space: nowrap; }
.pill.published { background: var(--navy); color: var(--white); }
.assign { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px dashed var(--line); margin-top: 8px; font-size: 14px; flex-wrap: wrap; }
.assign b { font-size: 15px; }
.log { font-size: 13px; color: var(--dim); padding-left: 18px; margin: 0; }
.log li { margin: 3px 0; }
.back { background: none !important; border: 0 !important; padding: 0 !important; color: var(--navy); text-decoration: underline; min-height: 40px !important; }
/* Sign-in: the primary logo on white, at a size where the descriptor is clear. */
.loginlogo { display: block; height: 140px; width: auto; margin: 22px auto 26px; }
@media (max-width: 420px) { .two { grid-template-columns: 1fr; } }
