* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #0c1021; color: #e0e0e0; min-height: 100vh; }
a { color: #2ECC71; text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar { background: #10142B; border-bottom: 1px solid #1a1f3a; padding: 0 24px; display: flex; align-items: center; height: 56px; }
.topbar-brand { color: #2ECC71; font-weight: 700; font-size: 18px; margin-right: 32px; }
.topbar-nav a { color: #a0a0b0; margin-right: 24px; font-size: 14px; font-weight: 500; }
.topbar-nav a:hover, .topbar-nav a.active { color: #fff; text-decoration: none; }
.topbar-right { margin-left: auto; }
.topbar-right a { color: #a0a0b0; font-size: 14px; }

.container { padding: 32px 24px; }
h1 { font-size: 24px; font-weight: 600; margin-bottom: 24px; color: #fff; }
h2 { font-size: 18px; font-weight: 600; margin-bottom: 16px; color: #fff; }
/* console.js focuses the heading after a swap; it isn't interactive, so it shows no ring. */
h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus { outline: none; }

.card { background: #10142B; border: 1px solid #1a1f3a; border-radius: 8px; padding: 24px; margin-bottom: 20px; }
.card h3 { font-size: 14px; color: #888; font-weight: 500; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.card .stat { font-size: 36px; font-weight: 700; color: #2ECC71; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 32px; }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 12px 16px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: #888; border-bottom: 1px solid #1a1f3a; }
td { padding: 12px 16px; border-bottom: 1px solid #1a1f3a; font-size: 14px; }
tr:hover { background: #141833; }

.badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge-on { background: rgba(46,204,113,0.15); color: #2ECC71; }
.badge-off { background: rgba(231,76,60,0.15); color: #e74c3c; }
.badge-override { background: rgba(52,152,219,0.15); color: #3498db; }

.btn { display: inline-block; padding: 8px 16px; border-radius: 6px; font-size: 14px; font-weight: 500; border: none; cursor: pointer; text-decoration: none; }
.btn:hover { text-decoration: none; opacity: 0.9; }
.btn-primary { background: #2ECC71; color: #000; }
.btn-danger { background: #e74c3c; color: #fff; }
.btn-sm { padding: 4px 12px; font-size: 12px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; color: #888; margin-bottom: 6px; font-weight: 500; }
.form-group input, .form-group select { width: 100%; height: 40px; padding: 10px 12px; background: #0c1021; border: 1px solid #1a1f3a; border-radius: 6px; color: #e0e0e0; font-size: 14px; }
.form-group select { -webkit-appearance: none; appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23888' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.form-group input:focus, .form-group select:focus { outline: none; border-color: #2ECC71; }
.form-group textarea { width: 100%; min-height: 96px; padding: 10px 12px; background: #0c1021; border: 1px solid #1a1f3a; border-radius: 6px; color: #e0e0e0; font: inherit; font-size: 14px; resize: vertical; }
.form-group textarea:focus { outline: none; border-color: #2ECC71; }

.form-inline { display: flex; gap: 12px; align-items: flex-end; }
.form-inline .form-group { margin-bottom: 0; }
.form-inline.filters { flex-wrap: wrap; }
.form-inline.filters .form-group { flex: 1 1 140px; }

.action-group { display: flex; gap: 12px; flex-wrap: wrap; }

.alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 20px; font-size: 14px; }
.alert-error { background: rgba(231,76,60,0.15); color: #e74c3c; border: 1px solid rgba(231,76,60,0.3); }
.alert-success { background: rgba(46,204,113,0.15); color: #2ECC71; border: 1px solid rgba(46,204,113,0.3); }

.detail-grid { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; font-size: 14px; }
.detail-grid dt { color: #888; }
.detail-grid dd { color: #e0e0e0; }

.muted { color: #888; margin-bottom: 20px; }
form.inline { display: inline; }
.link-button { background: none; border: none; padding: 0; color: #a0a0b0; font-size: 14px; font-family: inherit; cursor: pointer; }
.link-button:hover { color: #fff; }
.empty { color: #666; font-style: italic; padding: 24px; text-align: center; }
.contacts { list-style: none; }

/* Centered single-card auth pages (login, MFA enroll/verify/recovery). Scoped
   under body.auth so the full-width .btn and red .alert don't collide with the
   inline-block .btn and base .alert used by the dashboard layout above. */
body.auth { display: flex; align-items: center; justify-content: center; padding: 24px; }
body.auth .box { background: #10142B; border: 1px solid #1a1f3a; border-radius: 12px; padding: 40px; width: 100%; max-width: 460px; }
body.auth .box.narrow { max-width: 400px; }
body.auth .box h1 { color: #2ECC71; font-size: 22px; text-align: center; margin-bottom: 8px; }
body.auth .box p { color: #888; text-align: center; font-size: 14px; margin-bottom: 24px; }
body.auth .qr { display: block; margin: 0 auto 20px; background: #fff; padding: 12px; border-radius: 8px; width: 232px; height: 232px; }
body.auth .secret { font-family: monospace; font-size: 14px; text-align: center; color: #e0e0e0; background: #0c1021; border: 1px solid #1a1f3a; border-radius: 6px; padding: 10px; margin-bottom: 24px; word-break: break-all; }
body.auth .codes { list-style: none; background: #0c1021; border: 1px solid #1a1f3a; border-radius: 8px; padding: 20px; margin-bottom: 24px; columns: 2; column-gap: 24px; }
body.auth .codes li { font-family: monospace; font-size: 16px; letter-spacing: 1px; color: #e0e0e0; padding: 6px 0; text-align: center; }
body.auth .warn { background: rgba(231,76,60,0.12); border: 1px solid rgba(231,76,60,0.3); color: #e74c3c; padding: 12px 16px; border-radius: 6px; font-size: 13px; margin-bottom: 24px; }
body.auth .btn { display: block; width: 100%; padding: 12px; border-radius: 6px; font-size: 14px; font-weight: 600; border: none; cursor: pointer; background: #2ECC71; color: #000; margin-top: 8px; text-align: center; text-decoration: none; }
body.auth .btn:hover { opacity: 0.9; text-decoration: none; }
body.auth .alert { background: rgba(231,76,60,0.15); color: #e74c3c; border: 1px solid rgba(231,76,60,0.3); }
body.auth .hint { color: #666; font-size: 12px; text-align: center; margin-top: 16px; }
body.auth .alert-success { background: rgba(46,204,113,0.15); color: #2ECC71; border: 1px solid rgba(46,204,113,0.3); }
body.auth .box.wide { max-width: 640px; }
body.auth .box h2 { color: #e0e0e0; font-size: 16px; margin: 8px 0 16px; }
body.auth .card p { text-align: left; margin-bottom: 12px; }
body.auth .card .reason { color: #e0e0e0; white-space: pre-wrap; }
/* Apple and Google sign-in. Apple's white button style, for dark backgrounds,
   with its left-aligned logo file; Google's light theme (fill #FFF, stroke
   #747775, text #1F1F1F, Roboto Medium 14px, 18px G). The two match in size,
   as Apple requires. */
@font-face { font-family: "Roboto"; font-weight: 500; font-style: normal; font-display: swap; src: url("roboto-latin-500-normal.woff2") format("woff2"); }
body.auth .sso { display: flex; flex-direction: column; gap: 12px; }
body.auth .sso form { margin: 0; }
.sso-button { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 44px; padding: 0 12px; border-radius: 6px; cursor: pointer; background: #fff; text-decoration: none; }
.sso-button:hover { text-decoration: none; }
.sso-button:focus-visible { outline: 2px solid #2ECC71; outline-offset: 2px; }
.sso-button img { flex: none; }
.sso-apple { gap: 0; border: 1px solid #fff; color: #000; font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif; font-size: 16px; font-weight: 500; }
.sso-apple img { width: 29px; height: 42px; }
.sso-apple:hover { background: #f2f2f2; }
.sso-google { border: 1px solid #747775; color: #1F1F1F; font-family: "Roboto", Arial, sans-serif; font-size: 14px; font-weight: 500; letter-spacing: 0.25px; }
.sso-google img { width: 18px; height: 18px; }
.sso-google:hover { background: #f4f5f6; }
body.auth .or-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0 20px; color: #666; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
body.auth .or-divider::before, body.auth .or-divider::after { content: ""; flex: 1; border-top: 1px solid #1a1f3a; }
body.auth .account-address { display: flex; flex-direction: column; align-items: center; gap: 2px; background: #0c1021; border: 1px solid #1a1f3a; border-radius: 6px; padding: 10px 12px; margin-bottom: 20px; }
body.auth .account-address .label { color: #888; font-size: 12px; font-weight: 500; }
body.auth .account-address .value { color: #e0e0e0; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; text-align: center; }
body.auth .box p.sso-hint { color: #666; font-size: 12px; margin: 12px 0 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
fieldset.form-group { border: none; padding: 0; }
fieldset.form-group legend { font-size: 13px; color: #888; margin-bottom: 6px; font-weight: 500; }
body.auth .box p.field-hint { text-align: left; font-size: 12px; color: #888; margin-bottom: 8px; }
.form-group label.check { display: flex; align-items: center; gap: 8px; color: #e0e0e0; font-size: 14px; margin-bottom: 8px; }
.form-group label.check input { width: auto; height: auto; }
.form-group label.check + .hint { margin: -4px 0 0 24px; }
.toggles .form-group { margin-bottom: 20px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* On desktop a table wider than its card scrolls sideways inside it; on mobile
   each row collapses into a labeled card (see the breakpoint below) instead. */
.table-wrap { width: 100%; overflow-x: auto; }

/* Hamburger button — hidden on desktop, shown by the mobile breakpoint below. */
.nav-toggle-btn { display: none; }

@media (max-width: 640px) {
  .topbar { flex-wrap: wrap; height: auto; min-height: 56px; padding: 0 16px; }
  .topbar-brand { margin-right: auto; }
  .nav-toggle-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 44px; min-height: 44px; font-size: 22px; color: #a0a0b0;
    cursor: pointer; user-select: none;
  }
  /* Collapsed by default; the checked checkbox reveals the nav and the user menu, stacked. */
  .topbar-nav, .topbar-right { display: none; flex-basis: 100%; }
  #nav-toggle:checked ~ .topbar-nav,
  #nav-toggle:checked ~ .topbar-right { display: flex; }
  .topbar-nav { flex-direction: column; padding-bottom: 8px; }
  .topbar-nav a, .topbar-right a {
    margin-right: 0; padding: 12px 0; min-height: 44px;
    display: flex; align-items: center; border-top: 1px solid #1a1f3a;
  }
  .topbar-right { margin-left: 0; padding-bottom: 12px; }

  .container { padding: 20px 16px; }
  .card { padding: 16px; }

  .detail-grid { grid-template-columns: 1fr; gap: 2px 0; }
  .detail-grid dt { margin-top: 8px; }

  .form-inline { flex-direction: column; align-items: stretch; gap: 16px; }
  .form-inline .form-group { margin-bottom: 0; }
  .form-inline.filters .form-group { flex: none; }
  .form-inline .btn { width: 100%; text-align: center; }

  .btn { min-height: 44px; padding: 10px 16px;
         display: inline-flex; align-items: center; justify-content: center; }
  .btn-sm { min-height: 36px; padding: 6px 12px; }

  /* Stacked table rows: each <tr> becomes a card, each <td> a labeled line.
     The label comes from the cell's data-label (its column header). This
     replaces horizontal scrolling entirely. */
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap td { display: block; width: 100%; }
  .table-wrap thead { display: none; }
  .table-wrap tr {
    background: #0c1021; border: 1px solid #1a1f3a; border-radius: 8px;
    padding: 4px 14px; margin-bottom: 12px;
  }
  .table-wrap tr:hover { background: #0c1021; }
  .table-wrap td {
    border-bottom: 1px solid #161a33; padding: 10px 0;
    display: flex; justify-content: space-between; align-items: baseline;
    gap: 16px; text-align: right; overflow-wrap: anywhere;
  }
  .table-wrap td:last-child { border-bottom: none; }
  .table-wrap td::before {
    content: attr(data-label); text-align: left; flex: 0 0 38%;
    color: #888; font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px;
  }
  /* Action cells have an empty header: drop the label and let the control
     span the row. */
  .table-wrap td[data-label=""]::before { content: none; }
  .table-wrap td[data-label=""] { justify-content: stretch; padding-top: 12px; }
  .table-wrap td[data-label=""] .btn { width: 100%; }

  body.auth { padding: 16px; }
  body.auth .box { padding: 24px; }
  body.auth .codes { columns: 1; }
}

@media (max-width: 380px) {
  body.auth .box { padding: 20px; }
  body.auth .codes { columns: 1; }
}

.hint { color: #666; font-size: 12px; margin-top: 6px; }
.swatch { display: inline-block; width: 40px; height: 40px; border-radius: 6px; border: 1px solid #1a1f3a; flex: none; }
.club-logo { display: block; max-width: 160px; max-height: 160px; border-radius: 8px; background: #fff; margin-bottom: 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.btn-secondary { background: #1a1f3a; color: #e0e0e0; }
.btn-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; }
@media (max-width: 640px) { .btn-icon { width: 36px; height: 36px; } }
.row-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.picker-select { margin: 12px 0; }
/* The team picker is one field: All teams | Select teams over the filters and
   the list, which All teams hides without JavaScript; console.js hides them
   where :has() isn't supported. */
.team-picker:has([data-picker-all]:checked) :is([data-picker-body], .picker-count) { display: none; }
.field-box > legend { float: left; width: 100%; }
.field-box > legend + * { clear: both; }
.field-box-head, .field-box-note, .field-box [data-picker-body] { background: #0c1021; border: 1px solid #1a1f3a; }
.field-box-head { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 6px 6px 0 0; }
.field-box-note { border-top: none; border-radius: 0 0 6px 6px; padding: 10px 12px; margin: 0; font-size: 13px; color: #a0a0b0; }
.field-box:not(:has([data-picker-all]:checked)) .field-box-note { display: none; }
.field-box [data-picker-body] { border-top: none; border-radius: 0 0 6px 6px; }
.field-box .filters { padding: 12px 12px 0; }
.field-box .filters .form-group label { font-size: 12px; margin-bottom: 4px; }
/* One step lighter than the box, so they still read as fields. */
.field-box .filters select { height: 34px; padding: 6px 30px 6px 10px; font-size: 13px; background-color: #141833; border-color: #262c52; }
.field-box .picker-select { margin: 12px 0 10px; padding: 0 12px; }
.field-box [data-picker-hidden], .field-box .picker-list .muted { padding: 0 12px; }
.field-box .picker-list { max-height: 216px; overflow-y: auto; border-top: 1px solid #1a1f3a; padding: 4px 0; }
.field-box .picker-list .muted { margin: 8px 0; }
.field-box .picker-list label.check { margin: 0; padding: 7px 12px; }
.field-box .picker-list label.check:hover { background: #141833; }
.field-box .picker-list label.check:has(input:checked) { background: rgba(46,204,113,0.08); }
.field-box [data-picker-hidden] { margin: 0 0 10px; }
.picker-count { color: #888; font-size: 12px; margin-left: auto; }
.segmented { display: inline-flex; background: #10142B; border: 1px solid #1a1f3a; border-radius: 6px; padding: 2px; }
.form-group .segmented label.segment { position: relative; display: block; margin: 0; padding: 5px 14px; border-radius: 4px; color: #a0a0b0; font-size: 13px; font-weight: 500; cursor: pointer; }
.form-group .segmented label.segment input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.form-group .segmented label.segment:has(input:checked) { background: rgba(46,204,113,0.15); color: #2ECC71; }
.form-group .segmented label.segment:has(input:focus-visible) { outline: 2px solid #2ECC71; outline-offset: 1px; }
@media (max-width: 640px) {
  .field-box-head { flex-wrap: wrap; }
  .segmented { width: 100%; }
  .form-group .segmented label.segment { flex: 1; text-align: center; }
}
select.compact { height: 30px; padding: 4px 28px 4px 8px; background: #0c1021; border: 1px solid #1a1f3a; border-radius: 6px; color: #e0e0e0; font-size: 12px; }
.announcement-body { white-space: pre-wrap; }
.detail-grid.reach { margin: 10px 0 16px; }
.detail-grid.reach + .muted { font-size: 14px; margin: -6px 0 16px; }
.card > .detail-grid + .announcement-body { margin: 16px 0 12px; }

.note { color: #888; font-size: 13px; margin-bottom: 16px; }
.card > .note:last-child { margin-bottom: 0; }
.hint.tight { margin: -8px 0 16px; }
.empty.bare { padding: 0; }
.pre-wrap { white-space: pre-wrap; }
.divided { margin-top: 24px; border-top: 1px solid #1a1f3a; padding-top: 16px; }
.form-group.grow { flex: 1; }
.form-group.grow-2 { flex: 2; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }

/* Master-detail: the page's heading, count and actions sit above both panes,
   the list stays on the left, the selected item on the right, and ?list=0
   hides the list. Below the breakpoint a list page shows only the list and a
   detail page only the detail, with a back link. */
.page-head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; margin-bottom: 20px; }
.page-head h1 { margin-bottom: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.page-head h1 .count { font-size: 14px; font-weight: 500; color: #888; }
.page-actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.page-intro { flex-basis: 100%; color: #888; font-size: 14px; margin-top: -4px; }
.md { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 24px; align-items: start; }
.md.list-hidden { grid-template-columns: minmax(0, 1fr); }
.md-master { position: sticky; top: 24px; }
.md-master .card { padding: 16px; margin-bottom: 0; }
.md-master .filters .form-group { margin-bottom: 10px; }
.md-master .filters .form-group label { font-size: 12px; margin-bottom: 4px; }
.md-master .filters input, .md-master .filters select { height: 34px; padding: 6px 10px; font-size: 13px; }
.md-master .hint { margin: 0 0 12px; }
.md-master .alert { margin: 12px 0 0; }
.md-list { list-style: none; margin: 12px -8px 0; border-top: 1px solid #1a1f3a; padding-top: 8px; max-height: calc(100vh - 340px); overflow-y: auto; }
.md-master .card > .md-list:first-child { margin-top: -8px; border-top: none; }
.md-list a { display: block; padding: 9px 12px; border-radius: 6px; color: #e0e0e0; font-size: 14px; }
.md-list a:hover { background: #141833; text-decoration: none; }
.md-list a[aria-current="page"] { background: rgba(46,204,113,0.12); box-shadow: inset 3px 0 0 #2ECC71; color: #fff; font-weight: 600; }
.md-list .meta { display: block; font-size: 12px; color: #888; font-weight: 400; margin-top: 2px; }
.md-list .badge { font-size: 11px; padding: 1px 8px; margin-left: 6px; vertical-align: 1px; }
.md-list .group { color: #666; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; padding: 10px 12px 4px; }
.md-list .empty { padding: 16px 12px; }
.md-list.empty a { display: inline; padding: 0; color: #2ECC71; font-size: inherit; }
.md-list.empty a:hover { background: none; text-decoration: underline; }
.md-empty { color: #666; padding: 64px 24px; text-align: center; }
.md-detail { position: relative; }
.md-back { display: none; margin-bottom: 12px; font-size: 14px; }
.md-toggle { position: absolute; top: 6px; right: 0; color: #a0a0b0; font-size: 13px; }
.detail-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; padding-right: 96px; }
.detail-head h2 { font-size: 24px; margin-bottom: 0; }
.detail-sub { color: #888; font-size: 14px; margin-bottom: 16px; }

/* Section nav: one server-rendered URL per tab. */
.section-nav { display: flex; gap: 2px; border-bottom: 1px solid #1a1f3a; margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.section-nav a { padding: 10px 14px; color: #a0a0b0; font-size: 14px; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.section-nav a:hover { color: #fff; text-decoration: none; }
.section-nav a[aria-current="page"] { color: #fff; border-bottom-color: #2ECC71; }
.section-nav .n { color: #666; font-size: 12px; }

.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head h2 { margin-bottom: 0; }
.card-head .muted { margin: 0; }
.card-head .btn { margin-left: auto; }
.card-head .row-actions { margin-left: auto; }
.card-head .row-actions .btn { margin-left: 0; }
.card-head form { margin-left: auto; }
.danger-zone { border-color: rgba(231,76,60,0.45); }
.danger-zone h2 { color: #e74c3c; }
.danger-zone .zone-row { display: flex; gap: 24px; align-items: center; justify-content: space-between; padding: 16px 0; border-top: 1px solid #1a1f3a; }
.danger-zone .zone-row:first-of-type { border-top: none; padding-top: 0; }
.danger-zone .zone-row p { color: #888; font-size: 14px; margin: 4px 0 0; }
.danger-zone .zone-row strong { color: #e0e0e0; font-size: 14px; }
.danger-zone .zone-row form { flex: none; }
.danger-zone .zone-row .btn { white-space: nowrap; }
.danger-zone .zone-row .badge { margin-left: 8px; vertical-align: 1px; }
.danger-zone .zone-row ul { margin: 6px 0 0 18px; color: #e0e0e0; font-size: 14px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.badge-past { background: rgba(243,156,18,0.15); color: #f39c12; }
.badge-draft { background: rgba(160,160,176,0.16); color: #c0c0cc; }
.badge-draft.creating { background: rgba(231,76,60,0.15); color: #e74c3c; }
.badge-program { background: rgba(155,89,182,0.16); color: #bb8fce; }
.compact-table th, .compact-table td { padding: 8px 12px; }
.compact-table tbody tr:last-child td { border-bottom: none; }
td .sub { display: block; color: #888; font-size: 12px; margin-top: 2px; }

/* Settings: a side nav of sections, each its own page; narrower screens get
   the same links as a menu above the content. */
.settings { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: start; }
.side-nav { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 2px; }
.side-nav h2 { font-size: 11px; color: #666; text-transform: uppercase; letter-spacing: 0.5px; padding: 0 12px; margin-bottom: 8px; }
.side-nav a { display: flex; align-items: center; padding: 9px 12px; border-radius: 6px; color: #a0a0b0; font-size: 14px; font-weight: 500; }
.side-nav a:hover { background: #141833; color: #fff; text-decoration: none; }
.side-nav a[aria-current="page"] { background: rgba(46,204,113,0.12); box-shadow: inset 3px 0 0 #2ECC71; color: #fff; }
.side-nav .n, .side-nav-menu .n { margin-left: auto; color: #666; font-size: 12px; }
.side-nav-menu { display: none; position: relative; }
.side-nav-menu > summary { list-style: none; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid #1a1f3a; border-radius: 6px; background: #10142B; font-size: 14px; cursor: pointer; }
.side-nav-menu > summary::-webkit-details-marker { display: none; }
.side-nav-menu > summary .label { color: #888; }
.side-nav-menu > summary strong { color: #fff; font-weight: 600; }
.side-nav-menu > summary::after { content: ""; margin-left: auto; width: 10px; height: 6px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23888' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat; }
.side-nav-menu[open] > summary { border-color: #2ECC71; }
.side-nav-menu .menu { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 5; background: #10142B; border: 1px solid #1a1f3a; border-radius: 8px; padding: 6px; box-shadow: 0 12px 32px rgba(0,0,0,0.5); }
.side-nav-menu .menu a { display: flex; padding: 11px 12px; border-radius: 6px; color: #e0e0e0; font-size: 14px; }
.side-nav-menu .menu a[aria-current="page"] { background: rgba(46,204,113,0.12); box-shadow: inset 3px 0 0 #2ECC71; font-weight: 600; }
.side-nav hr, .side-nav-menu .menu hr { border: none; border-top: 1px solid #1a1f3a; margin: 8px 12px; }
.side-nav-menu .menu hr { margin: 6px; }
.settings-body > h1 { margin-bottom: 24px; }
.settings-body form > .btn[type="submit"] { margin-top: 8px; }
.settings-body fieldset.form-group { margin-top: 12px; }
.logo-row { display: flex; gap: 24px; align-items: flex-start; }
.logo-row .club-logo, .logo-row .empty { margin-bottom: 0; flex: none; }
.logo-row form { flex: 1; }
@media (min-width: 901px) { .settings .md { grid-template-columns: 300px minmax(0, 1fr); } }
@media (max-width: 1100px) {
  .settings { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .side-nav { display: none; }
  .side-nav-menu { display: block; }
}
@media (max-width: 640px) { .logo-row { flex-direction: column; } }

/* Settings' lists and forms: programs head their age groups, and a season
   lists each program's cutoff. */
.md-list .group.program { color: #e0e0e0; font-size: 12px; font-weight: 600; letter-spacing: 0.4px; padding: 14px 12px 2px; border-top: 1px solid #1a1f3a; margin-top: 6px; display: flex; align-items: baseline; }
.md-list .group.program:first-child { border-top: none; margin-top: 0; padding-top: 6px; }
.md-list .group.program .cut { margin-left: auto; color: #888; font-size: 11px; font-weight: 400; text-transform: none; letter-spacing: 0; }
.detail-head .badge-program { margin-left: 4px; }
.form-inline.cutoff { gap: 8px; }

@media (max-width: 900px) {
  .md { grid-template-columns: minmax(0, 1fr); }
  .md-master { position: static; }
  .md-list { max-height: none; }
  .md.has-detail .md-master { display: none; }
  .md:not(.has-detail) .md-detail { display: none; }
  .md-back { display: block; }
  .md-toggle { display: none; }
  .detail-head { padding-right: 0; }
  .page-head.has-detail { margin: 0; }
  .page-head.has-detail h1 { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .page-head.has-detail .page-actions, .page-head.has-detail .page-intro { display: none; }
  .danger-zone .zone-row { flex-direction: column; align-items: stretch; }
}
@media (max-width: 640px) {
  .page-head { margin-bottom: 16px; }
  .page-actions { margin-left: 0; flex-basis: 100%; order: 2; }
  .page-actions .btn-primary { flex: 1 1 auto; }
  .page-intro { order: 1; margin-top: -8px; }
  .section-nav { margin: 0 -16px 16px; padding: 0 16px;
    mask-image: linear-gradient(to right, #000 85%, transparent); }
}
/* Season picker: a <details> in the club topbar whose menu is plain ?season= links. */
.season-picker { position: relative; margin-right: 28px; }
.season-picker > summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border: 1px solid #1a1f3a; border-radius: 6px; background: #0c1021; color: #e0e0e0; font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.season-picker > summary::-webkit-details-marker { display: none; }
.season-picker > summary::after { content: ""; width: 10px; height: 6px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23888' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat; }
.season-picker > summary:hover, .season-picker[open] > summary { border-color: #2ECC71; }
.season-picker .label { color: #888; font-weight: 400; }
.season-picker.not-current > summary { border-color: rgba(243,156,18,0.6); background: rgba(243,156,18,0.1); }
.season-picker.not-current > summary .label { color: #f39c12; }
.season-picker .menu { position: absolute; top: calc(100% + 8px); left: 0; z-index: 10; min-width: 340px; background: #10142B; border: 1px solid #1a1f3a; border-radius: 8px; padding: 8px; box-shadow: 0 12px 32px rgba(0,0,0,0.5); }
.season-picker .menu ul { list-style: none; margin: 0; padding: 0; }
.season-picker .menu a { display: flex; white-space: nowrap; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 6px; color: #e0e0e0; font-size: 14px; }
.season-picker .menu a:hover { background: #141833; text-decoration: none; }
.season-picker .menu a[aria-current="true"] { background: rgba(46,204,113,0.12); box-shadow: inset 3px 0 0 #2ECC71; font-weight: 600; }
.season-picker .menu .dates { margin-left: auto; color: #888; font-size: 12px; font-weight: 400; }
.season-picker .menu .badge { font-size: 11px; padding: 1px 8px; }
.season-picker .menu .manage { border-top: 1px solid #1a1f3a; margin-top: 6px; padding-top: 6px; }
.season-picker .menu .manage a { color: #2ECC71; font-size: 13px; }
/* Current comes first, then each program's seasons, a dot marking one running today. */
.season-picker .menu { min-width: 480px; max-height: calc(100vh - 90px); overflow-y: auto; }
.season-picker .menu li.group { color: #666; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; padding: 12px 10px 4px; border-top: 1px solid #1a1f3a; margin-top: 6px; }
.season-picker .menu a { align-items: flex-start; }
.season-picker .menu .what { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.season-picker .menu .programs { color: #888; font-size: 12px; font-weight: 400; white-space: normal; }
.season-picker .menu .dates { padding-top: 2px; }
.season-picker .menu a.current-view .name { font-weight: 600; }
.season-picker .menu a .running { flex: none; width: 7px; height: 7px; margin-top: 7px; border-radius: 50%; }
.season-picker .menu a .running.on { background: #2ECC71; }
@media (max-width: 640px) {
  .season-picker .menu { max-height: calc(100vh - 70px); min-width: 0; }
  .season-picker .menu a { flex-wrap: wrap; row-gap: 2px; }
  .season-picker .menu .dates { margin-left: 0; flex-basis: 100%; padding-top: 0; }
  .season-picker .menu a:not(.current-view) .dates { padding-left: 15px; }
}
/* A team row names its season, since Current can hold several. */
.season-tag { display: inline-block; padding: 0 6px; margin-right: 4px; border: 1px solid #2a3058; border-radius: 4px; color: #b8b8c8; font-size: 11px; line-height: 16px; }
.md-list a[aria-current="page"] .season-tag { border-color: rgba(46,204,113,0.4); }
[data-seasons-today] .next-up { margin-top: 14px; }
/* Carry over: a player sent to another season's team. */
.carry-table tr.row-moved { background: rgba(52,152,219,0.06); }
.carry-table .elsewhere { color: #5dade2; }
.summary-bar .stat.other strong { color: #5dade2; }

/* Under the topbar on every club page while ?season= isn't the current season. */
.season-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 24px; background: rgba(243,156,18,0.12); border-bottom: 1px solid rgba(243,156,18,0.35); color: #f5b041; font-size: 14px; }
.season-banner a { margin-left: auto; color: #f8c471; font-weight: 600; }
.alert-info { background: rgba(52,152,219,0.12); color: #5dade2; border: 1px solid rgba(52,152,219,0.3); }

/* Seven sections and the pickers fit a 1280px bar on one line. A long
   program or season name ends in an ellipsis, and above 1100px a bar
   still too narrow scrolls its sections rather than the page. */
@media (min-width: 1101px) { .topbar-nav { white-space: nowrap; min-width: 0; overflow-x: auto; scrollbar-width: thin; } }
@media (min-width: 641px) {
  .season-picker > summary .value { display: inline-block; max-width: 180px; overflow: hidden; text-overflow: ellipsis;
    white-space: nowrap; vertical-align: bottom; }
}

@media (max-width: 1100px) {
  .topbar-brand { white-space: nowrap; margin-right: 20px; }
  .topbar-nav a { margin-right: 14px; white-space: nowrap; }
  .topbar-right .link-button { white-space: nowrap; }
}

@media (max-width: 640px) {
  .topbar { position: relative; }
  .season-picker { position: static; margin-right: 4px; }
  .season-picker > summary { height: 36px; padding: 0 10px; font-size: 13px; }
  .season-picker .menu { left: 12px; right: 12px; top: 52px; min-width: 0; }
  .season-banner { padding: 10px 16px; font-size: 13px; }
  .season-banner a { margin-left: 0; }
}

/* The Program picker sits before the Season picker and shares its look;
   picking a program alone turns nothing amber. */
#console-picker { display: flex; align-items: center; gap: 8px; margin-right: 28px; }
#console-picker:empty { margin-right: 0; }
#console-picker .season-picker { margin-right: 0; }
@media (min-width: 1101px) and (max-width: 1360px) {
  .topbar-nav a { margin-right: 16px; }
}
@media (min-width: 641px) and (max-width: 1360px) {
  .season-picker > summary .label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
}
@media (max-width: 1360px) { #console-picker { margin-right: 20px; } }
.program-picker .menu { min-width: 400px; }
.season-picker .menu li.divider { border-top: 1px solid #1a1f3a; margin: 6px 0; }
#console-scope { display: contents; }
.scope-chip { display: none; }

/* A program's tabs. A season or age group opened in a tab replaces the tab's content. */
.tab-back { margin: -4px 0 12px; font-size: 13px; }
.sub-head { display: flex; align-items: center; gap: 10px; margin-bottom: 2px; }
.sub-head h3 { font-size: 17px; color: #fff; }
.tab-list { list-style: none; margin: 0; padding: 0; }
.tab-list a { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid #1a1f3a; border-radius: 6px; color: #e0e0e0; }
.tab-list a:hover { background: #141833; text-decoration: none; }
.tab-list .name { font-size: 15px; font-weight: 600; }
.tab-list .meta { margin-left: auto; color: #888; font-size: 12px; }
.tab-filters { margin-bottom: 12px; align-items: flex-end; gap: 12px; }
.tab-filters .form-group { margin-bottom: 0; flex: 0 0 200px; }
.compact-table tr.group-row th { padding-top: 14px; color: #888; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; text-align: left; }

@media (max-width: 640px) {
  /* The bar keeps a chip naming the view, which opens the panel; both pickers lead it, their menus opening in place. */
  .nav-toggle-btn { margin-left: auto; }
  #console-scope:not(:empty) + .nav-toggle-btn { margin-left: 0; }
  .scope-chip { display: inline-flex; align-items: center; margin-left: auto; height: 32px; padding: 0 10px; border: 1px solid #1a1f3a; border-radius: 6px; background: #0c1021; color: #e0e0e0; font-size: 13px; font-weight: 500; white-space: nowrap; cursor: pointer; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
  .scope-chip.not-current { border-color: rgba(243,156,18,0.6); background: rgba(243,156,18,0.1); color: #f5b041; }
  #console-picker { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 8px; margin: 0; padding: 12px 0; border-top: 1px solid #1a1f3a; }
  #nav-toggle:checked ~ #console-picker:not(:empty) { display: flex; }
  #console-picker .season-picker { position: relative; }
  #console-picker .season-picker > summary { display: flex; width: 100%; height: 44px; font-size: 14px; padding: 0 12px; }
  #console-picker .season-picker > summary .label { display: inline; min-width: 64px; }
  #console-picker .season-picker > summary::after { margin-left: auto; }
  #console-picker .season-picker .menu { position: static; margin-top: 6px; box-shadow: none; min-width: 0; max-height: none; }
  .program-picker .menu a { flex-wrap: wrap; row-gap: 2px; }
  .program-picker .menu a:not(.current-view) .dates { margin-left: 0; flex-basis: 100%; padding-left: 0; }
  .tab-list .meta { margin-left: 0; flex-basis: 100%; }
  .tab-filters { flex-direction: row; }
  .tab-filters .form-group { flex: 1 1 0; }
}

/* Club switcher and user menu: <details> dropdowns in the topbar, styled like
   the season picker. The switcher shows the club's name alone; crests show
   only in its list. */
.club-switcher, .user-menu { position: relative; }
.club-switcher { margin-right: 12px; }
.club-switcher > summary, .club-switcher.single, .user-menu > summary { list-style: none; display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border: 1px solid transparent; border-radius: 6px; color: #fff; font-size: 15px; font-weight: 600; white-space: nowrap; }
.club-switcher > summary, .user-menu > summary { cursor: pointer; }
.club-switcher > summary::-webkit-details-marker, .user-menu > summary::-webkit-details-marker { display: none; }
.club-switcher > summary::after, .user-menu > summary::after { content: ""; width: 10px; height: 6px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23888' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat; }
.club-switcher > summary:hover, .club-switcher[open] > summary, .user-menu > summary:hover, .user-menu[open] > summary { border-color: #1a1f3a; background: #0c1021; }
.club-switcher > summary:focus-visible, .user-menu > summary:focus-visible { outline: 2px solid #2ECC71; outline-offset: 2px; }
.club-switcher .name { overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.user-menu > summary { color: #e0e0e0; font-size: 14px; font-weight: 500; }
.user-menu > summary .name { min-width: 0; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }

.pp-mark { display: inline-flex; flex: none; margin-right: 14px; border-radius: 6px; }
.pp-mark img { display: block; width: 28px; height: 28px; border-radius: 6px; }
.pp-mark:focus-visible { outline: 2px solid #2ECC71; outline-offset: 2px; }
.topbar-divider { flex: none; width: 1px; height: 24px; background: #2a3158; margin-right: 10px; }

/* A club's logo, or its initial when it has none. */
.club-mark { width: 26px; height: 26px; flex: none; border-radius: 5px; background: #fff; object-fit: contain; }
.club-mark.initial { display: inline-flex; align-items: center; justify-content: center; background: #2a3158; color: #e0e0e0; font-size: 13px; font-weight: 700; }

.club-switcher .menu, .user-menu .menu { position: absolute; top: calc(100% + 8px); z-index: 10; background: #10142B; border: 1px solid #1a1f3a; border-radius: 8px; padding: 8px; box-shadow: 0 12px 32px rgba(0,0,0,0.5); }
.club-switcher .menu { left: 0; min-width: 320px; }
.club-switcher .menu h2 { font-size: 11px; color: #666; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; padding: 6px 10px 4px; margin: 0; }
.club-switcher .menu ul { list-style: none; margin: 0; padding: 0; }
.club-switcher .menu li a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; color: #e0e0e0; font-size: 14px; white-space: nowrap; }
.club-switcher .menu li a .club-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.club-switcher .menu li a:hover { background: #141833; text-decoration: none; }
.club-switcher .menu li a .badge { margin-left: auto; font-size: 11px; padding: 1px 8px; }
.club-switcher .menu li a .check { width: 14px; flex: none; }
.club-switcher .menu li a[aria-current="true"] { background: rgba(46,204,113,0.12); font-weight: 600; }
.club-switcher .menu li a[aria-current="true"] .check { height: 10px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'%3E%3Cpath d='M1 5l4 4 8-8' fill='none' stroke='%232ECC71' stroke-width='2'/%3E%3C/svg%3E") no-repeat; }
.club-switcher .menu .all { border-top: 1px solid #1a1f3a; margin-top: 6px; padding-top: 6px; }
.club-switcher .menu .all a { display: block; padding: 8px 10px; border-radius: 6px; color: #2ECC71; font-size: 13px; }
.club-switcher .menu .all a:hover { background: #141833; text-decoration: none; }

/* A role isn't a status, so its badge is neutral. */
.badge-role { background: rgba(160,160,176,0.14); color: #b8b8c8; }

.user-menu .menu { right: 0; min-width: 260px; padding: 0; }
.user-menu .who { padding: 14px 16px 12px; }
.user-menu .who strong, .user-menu .who .email { overflow-wrap: anywhere; }
.user-menu .who strong { display: block; color: #fff; font-size: 14px; font-weight: 600; }
.user-menu .who .email { display: block; color: #a0a0b0; font-size: 13px; margin-top: 2px; }
.user-menu .who .role { display: block; color: #888; font-size: 12px; margin-top: 8px; }
.user-menu .account-links { display: flex; flex-direction: column; border-top: 1px solid #1a1f3a; padding: 6px; }
.user-menu .account-links a { display: block; padding: 9px 10px; border-radius: 6px; color: #e0e0e0; font-size: 14px; }
.user-menu .account-links a:hover { background: #141833; color: #fff; text-decoration: none; }
.user-menu form { border-top: 1px solid #1a1f3a; padding: 6px; }
.user-menu form .link-button { display: block; width: 100%; text-align: left; padding: 9px 10px; border-radius: 6px; color: #e0e0e0; }
.user-menu form .link-button:hover { background: #141833; color: #fff; }

@media (max-width: 1100px) {
  .club-switcher .name { max-width: 160px; }
}

/* The switcher stays in the bar beside the season picker. The user menu stays
   in the panel the hamburger opens, and opens in place there. */
@media (max-width: 640px) {
  .pp-mark { margin-right: 8px; }
  .topbar-divider { margin-right: 4px; }
  .club-switcher { position: static; margin-right: 6px; min-width: 0; }
  .club-switcher > summary, .club-switcher.single { height: 40px; gap: 8px; padding: 0 8px; font-size: 14px; }
  .club-switcher .name { max-width: 118px; }
  .club-switcher .menu { left: 12px; right: 12px; top: 52px; min-width: 0; }
  /* The 1100px rule's link margin otherwise outlives the reset above. */
  .topbar-nav a { margin-right: 0; }
  .topbar-right { min-width: 0; }
  .topbar-right .user-menu { width: 100%; min-width: 0; }
  .user-menu > summary { display: flex; width: 100%; height: auto; min-height: 44px; padding: 12px 0; border: none; border-top: 1px solid #1a1f3a; border-radius: 0; }
  .user-menu > summary::after { margin-left: auto; }
  .user-menu > summary .name { max-width: none; }
  .user-menu > summary:hover, .user-menu[open] > summary { background: none; border-color: #1a1f3a; }
  .user-menu .menu { position: static; min-width: 0; box-shadow: none; margin-bottom: 4px; }
  .user-menu .account-links a { display: block; min-height: 0; border-top: none; }
}

/* The Settings gear, left of the user menu. In the hamburger panel its label
   shows, as a row above the account. */
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#console-gear { display: contents; }
/* Desktop only: a display here would outlive the rule that hides the group on mobile. */
@media (min-width: 641px) { .topbar-right { display: flex; align-items: center; gap: 6px; } }
.topbar-right a.settings-link { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid transparent; border-radius: 6px; color: #a0a0b0; }
.topbar-right a.settings-link:hover { color: #fff; border-color: #1a1f3a; background: #0c1021; text-decoration: none; }
.topbar-right a.settings-link:focus-visible { outline: 2px solid #2ECC71; outline-offset: 2px; }
.topbar-right a.settings-link[aria-current] { color: #2ECC71; background: rgba(46,204,113,0.12); }
.settings-link .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

@media (max-width: 640px) {
  #nav-toggle:checked ~ .topbar-right { flex-direction: column; align-items: stretch; }
  .topbar-right a.settings-link { width: auto; height: auto; justify-content: flex-start; gap: 10px; border: none; border-top: 1px solid #1a1f3a; border-radius: 0; }
  .topbar-right a.settings-link:hover, .topbar-right a.settings-link[aria-current] { background: none; }
  .settings-link .label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
}

/* The New season wizard: one server-rendered page per step; reached steps link back. */
.crumbs { color: #888; font-size: 13px; margin-bottom: 8px; }
.crumbs a { color: #a0a0b0; }
.sub { display: block; color: #888; font-size: 12px; font-weight: 400; margin-top: 2px; }
.nowrap { white-space: nowrap; }
.card .body { color: #a0a0b0; font-size: 14px; line-height: 1.5; margin-bottom: 16px; }
.steps { list-style: none; display: flex; margin: 16px 0 24px; }
.steps li { flex: 1; display: flex; align-items: center; gap: 10px; font-size: 14px; color: #666; position: relative; }
.steps li:not(:last-child)::after { content: ""; flex: 1; height: 2px; background: #1a1f3a; margin: 0 12px; }
.steps li.done:not(:last-child)::after { background: rgba(46,204,113,0.5); }
.steps a { display: flex; align-items: center; gap: 10px; color: #e0e0e0; }
.steps a:hover { text-decoration: none; color: #fff; }
.steps .num { flex: none; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; border: 1px solid #1a1f3a; background: #10142B; }
.steps .name { white-space: nowrap; }
.steps li.done .num { background: rgba(46,204,113,0.15); border-color: rgba(46,204,113,0.5); color: #2ECC71; }
.steps li.current { color: #fff; font-weight: 600; }
.steps li.current .num { background: #2ECC71; border-color: #2ECC71; color: #000; }
.steps-compact { display: none; }
.wizard .card-head > div:first-child { flex: 1 1 0; min-width: 0; }
.wizard-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 4px; }
.wizard-actions .draft-note { margin-left: auto; color: #666; font-size: 13px; }
.wizard-actions .draft-note .link-button { font-size: 13px; color: #e74c3c; }
.wizard-season { max-width: 640px; }
.wizard-season h3 { margin-top: 20px; }
/* The wizard's first step picks one program; a season's program is fixed, shown above its editable details. */
.program-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.program-option { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid #1a1f3a; border-radius: 8px; cursor: pointer; }
.program-option:has(input:checked) { border-color: rgba(46,204,113,0.5); background: rgba(46,204,113,0.06); }
.program-option input { width: 16px; height: 16px; margin-top: 2px; accent-color: #2ECC71; }
.program-option strong { display: block; color: #e0e0e0; font-size: 14px; }
.program-option .sub { display: block; margin-top: 2px; }
.wizard-season fieldset[data-wizard-program] legend { margin-bottom: 6px; }
.season-program { margin-bottom: 16px; }
@media (max-width: 640px) { .program-options { grid-template-columns: minmax(0, 1fr); } }
.wizard-program + .wizard-program { margin-top: 20px; }
/* Bulk ticks are submit buttons that save the draft with the change; they stay quieter than the table. */
.bulk { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.bulk .link-button { font-size: 12px; color: #888; }
.bulk .link-button:hover { color: #fff; text-decoration: underline; }
.bulk .sep { color: #444; font-size: 12px; }
.bulk .link-button:focus-visible, .wizard .link-button.reset:focus-visible { outline: 2px solid #2ECC71; outline-offset: 2px; border-radius: 3px; color: #fff; }
.program-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.program-head h3 { margin-bottom: 0; }
.program-head + .hint { margin-top: 0; }
.range-table.pick thead tr:first-child > * { border-bottom: none; padding-bottom: 2px; }
.range-table.pick .col-bulk td { padding-top: 0; padding-bottom: 8px; }
.wizard .link-button.reset { font-size: 13px; color: #a0a0b0; margin-right: 4px; }
.wizard .link-button.reset:hover { color: #fff; text-decoration: underline; }
.col-bulk-compact { display: none; }
.range-table th, .range-table td { padding: 8px 12px; }
.range-table tr:hover { background: none; }
.range-table.pick td { vertical-align: middle; }
/* Fixed widths line each program's columns up with the others'; the last column takes what's left.
   A division a program lacks keeps its slot, empty, so each division sits under itself in every program. */
.range-table.pick { table-layout: fixed; }
.range-table.pick col.age { width: 90px; }
.range-table.pick col.born { width: 240px; }
.range-table.pick col.division { width: 200px; }
.range-table.pick col.division:last-child { width: auto; }
/* Room for Age, Born and all three divisions; narrower cards scroll the table rather than squeeze its last column. */
@media (min-width: 641px) { .range-table.pick { min-width: 930px; } }
.check-cell { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #a0a0b0; cursor: pointer; }
.check-cell input { width: 16px; height: 16px; accent-color: #2ECC71; }
.check-cell .none { color: #555; }
.card-head .totals { margin-left: auto; color: #a0a0b0; font-size: 14px; font-weight: 500; }
.team-cols, .team-row { display: grid; grid-template-columns: minmax(150px, 0.8fr) minmax(130px, 0.55fr) minmax(0, 1.2fr) minmax(0, 1.2fr) 64px; gap: 16px; align-items: start; }
.team-cols { padding: 0 0 8px; font-size: 11px; color: #666; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid #1a1f3a; }
.team-group { border-bottom: 1px solid #1a1f3a; padding: 14px 0; }
.team-group:last-of-type { border-bottom: none; }
.team-group-head { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
.team-group-head h3 { font-size: 15px; color: #fff; font-weight: 600; text-transform: none; letter-spacing: 0; margin: 0; }
.team-group-head .stepper { margin-left: auto; }
.stepper { display: inline-flex; align-items: center; }
.stepper .btn { width: 34px; height: 34px; padding: 0; font-size: 18px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.stepper .btn:first-child { border-radius: 6px 0 0 6px; }
.stepper .btn:last-child { border-radius: 0 6px 6px 0; }
.stepper input { width: 52px; height: 34px; text-align: center; background: #0c1021; border: 1px solid #1a1f3a; border-left: none; border-right: none; color: #fff; font-size: 14px; font-weight: 600; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.team-rows { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.team-row input[type="text"] { width: 100%; height: 36px; padding: 6px 10px; background: #0c1021; border: 1px solid #1a1f3a; border-radius: 6px; color: #e0e0e0; font-size: 14px; }
.team-row input[type="text"]:focus { outline: none; border-color: #2ECC71; }
.team-row > div { min-width: 0; }
.team-row .from { font-size: 14px; color: #e0e0e0; padding-top: 8px; }
.team-row .pick input { width: 100%; height: 36px; padding: 6px 10px; background: #0c1021; border: 1px solid #1a1f3a; border-radius: 6px; color: #e0e0e0; font-size: 13px; text-overflow: ellipsis; }
.team-row .pick input::placeholder { color: #555; }
.team-row .pick input:focus { outline: none; border-color: #2ECC71; }
.team-row .pick .pick-email { margin-top: 6px; }
.team-row .pick-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.team-row .pick-note, .team-row .name-note { display: block; margin-top: 4px; font-size: 12px; color: #5dade2; }
.team-row .name-note { color: #888; }
.team-row .invite { padding-top: 9px; }
.team-row .invite label.check { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #e0e0e0; cursor: pointer; }
.team-row .invite input { width: 16px; height: 16px; accent-color: #2ECC71; }
.review-grid { grid-template-columns: 160px 1fr; gap: 14px 16px; }
.review-groups { list-style: none; margin-top: 10px; border: 1px solid #1a1f3a; border-radius: 8px; }
.review-groups li { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 7px 12px; border-top: 1px solid #161a33; font-size: 13px; color: #a0a0b0; }
.review-groups li:first-child { border-top: none; }
.review-groups li span:first-child { color: #e0e0e0; font-weight: 500; }
.review-teams li { grid-template-columns: 110px minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); }
.review-teams li.head { font-size: 11px; color: #666; text-transform: uppercase; letter-spacing: 0.5px; }
.review-teams li.head span:first-child { color: #666; font-weight: 400; }
.review-teams li span:first-child { color: #a0a0b0; font-weight: 400; }
.review-teams .team { color: #e0e0e0; font-weight: 500; }
.review-teams .none { color: #555; }
/* Settings › Seasons: the New season wizard's draft heads the list. */
.md-list li[data-season-draft] { border-bottom: 1px dashed #1a1f3a; padding-bottom: 6px; margin-bottom: 6px; }
[data-draft] .card-head > div:first-child, [data-draft-creating] .card-head > div:first-child { flex: 1 1 320px; }
.draft-steps { margin: 4px 0 20px; }
.draft-steps .num { width: 24px; height: 24px; font-size: 12px; }
.draft-steps li { font-size: 13px; }
.detail-grid dd.unset { color: #888; }
.create-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-size: 14px; color: #a0a0b0; }
.create-progress progress { flex: 1; max-width: 360px; height: 8px; appearance: none; border: none; border-radius: 4px; background: #1a1f3a; overflow: hidden; }
.create-progress progress::-webkit-progress-bar { background: #1a1f3a; border-radius: 4px; }
.create-progress progress::-webkit-progress-value { background: #2ECC71; border-radius: 4px; }
.create-progress progress::-moz-progress-bar { background: #2ECC71; border-radius: 4px; }
.unmade-head { font-size: 13px; color: #a0a0b0; font-weight: 600; margin-bottom: 8px; }
.unmade { list-style: none; margin: 0 0 16px; border-top: 1px solid #1a1f3a; }
.unmade li { display: flex; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px solid #1a1f3a; font-size: 14px; color: #e0e0e0; }
.unmade li .sub { margin-left: auto; margin-top: 0; }
.next-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; margin-top: 16px; }
.next-cards .card { margin-bottom: 0; }

@media (max-width: 1100px) {
  .next-cards { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .steps:not(.draft-steps) { display: none; }
  .draft-steps .name { display: none; }
  .steps-compact { display: block; color: #888; font-size: 13px; margin: 0 0 16px; }
  .steps-compact strong { color: #fff; }
  .wizard-actions .btn { flex: 1; }
  .wizard-actions .draft-note { margin-left: 0; flex-basis: 100%; text-align: center; }
  .card-head .totals { margin-left: 0; flex-basis: 100%; }
  .wizard .card-head > div:first-child { flex-basis: 100%; }
  .team-cols { display: none; }
  .team-group-head { flex-wrap: wrap; gap: 10px; }
  .team-group-head .stepper { margin-left: 0; }
  .team-row { grid-template-columns: minmax(0, 1fr); gap: 10px; background: #0c1021; border: 1px solid #1a1f3a; border-radius: 8px; padding: 12px; }
  .team-row .from { font-size: 13px; color: #a0a0b0; padding-top: 0; }
  .team-row .invite { padding-top: 0; }
  .team-row .pick-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; display: block; font-size: 12px; color: #888; margin-bottom: 4px; }
  .team-row .pick input { height: 40px; }
  /* The table's head is hidden here, so each division's All · None sits above it. */
  .col-bulk-compact { display: flex; flex-direction: column; list-style: none; margin: 10px 0 12px; border: 1px solid #1a1f3a; border-radius: 8px; padding: 2px 14px; }
  .col-bulk-compact li { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: #a0a0b0; border-top: 1px solid #161a33; }
  .col-bulk-compact li:first-child { border-top: none; }
  .col-bulk-compact .link-button, .bulk .link-button { font-size: 13px; min-height: 32px; }
  .range-table.pick td.slot { display: none; }
  .range-table.pick td:not(:has(~ td:not(.slot))) { border-bottom: none; }
  .review-teams li { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .review-teams li.head { display: none; }
  .review-grid { grid-template-columns: 1fr; }
}

/* Carry over players: grouped by the team each player goes to, a page of teams at a time. */
.badge-warn { background: rgba(243,156,18,0.15); color: #f39c12; }
.carry-source { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin: 16px 0; }
.carry-source .form-group { margin-bottom: 0; width: 240px; }
.carry-source .hint { flex-basis: 100%; margin-top: 0; }
.carry-done { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.carry-done .btn { margin-left: auto; }
.summary-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; background: #10142B; border: 1px solid #1a1f3a; border-radius: 8px; padding: 12px 16px; margin-bottom: 16px; box-shadow: 0 8px 20px rgba(0,0,0,0.35); }
.summary-bar .stat { font-size: 14px; color: #a0a0b0; }
.summary-bar .stat strong { color: #fff; font-size: 18px; margin-right: 4px; }
.summary-bar .stat.warn strong { color: #f39c12; }
.summary-bar .stat.muted-stat strong { color: #888; }
.summary-bar .spacer { flex: 1; }
/* A bar of counts with nothing to act on scrolls with the page. */
.summary-bar.in-flow { position: static; box-shadow: none; }
.carry-group { background: #10142B; border: 1px solid #1a1f3a; border-radius: 8px; margin-bottom: 16px; padding: 4px 0 0; }
.carry-group-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 12px 16px 8px; }
.carry-group-head h3 { font-size: 15px; color: #fff; font-weight: 600; text-transform: none; letter-spacing: 0; margin: 0; }
.carry-group-head .sub { display: inline; margin: 0; }
.carry-group-head .counts { margin-left: auto; font-size: 13px; color: #a0a0b0; }
.carry-group-head .warn { color: #f39c12; }
.carry-table { table-layout: fixed; }
.carry-table th, .carry-table td { padding: 8px 16px; }
.carry-table tbody tr:last-child td { border-bottom: none; }
.carry-table td .badge { margin-top: 4px; }
.carry-table select.compact { width: 100%; min-width: 0; }
.carry-table tr.row-flag td:nth-child(2) { color: #f5b041; }
.carry-table tr.row-skip td:not(:nth-child(5)):not(:last-child) { color: #666; text-decoration: line-through; text-decoration-color: #444; }
.carry-table tr.row-done td { color: #777; }
.done-fold > summary { cursor: pointer; padding: 6px 16px 14px; font-size: 13px; color: #888; }
.done-fold > summary::marker { color: #555; }
.pager { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 8px 0; }
.pager .sub { display: inline; margin: 0; font-size: 13px; }
.pager .pages { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.pager .page-num { min-width: 30px; height: 30px; padding: 0 8px; border-radius: 6px; border: 1px solid #1a1f3a; background: none; color: #a0a0b0; font: inherit; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.pager .page-num[aria-current="page"] { background: rgba(46,204,113,0.12); border-color: rgba(46,204,113,0.5); color: #fff; font-weight: 600; }
.card .table-wrap + .body { margin-top: 16px; }

@media (max-width: 640px) {
  .summary-bar .spacer { display: none; }
  .summary-bar .btn { flex: 1; }
  .carry-source .form-group { width: 100%; }
}

/* Players: each child once across the club's teams, each team on its own line under the name. */
.md-list .meta .team-line { display: block; margin-top: 3px; }
.dup-alert { display: flex; align-items: center; gap: 12px; text-align: left; margin-bottom: 24px; }
.dup-alert .btn { margin-left: auto; }
.row-link { color: #a0a0b0; font-size: 13px; white-space: nowrap; }
button.row-link { background: none; border: 0; padding: 0; font-family: inherit; cursor: pointer; }
button.row-link:hover { color: #fff; text-decoration: underline; }
td .sub.dup { color: #f39c12; }
.merge-candidate { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid #1a1f3a; }
.merge-candidate form { margin-left: auto; }

/* Possible duplicates: two records side by side. */
.pair-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.pair-head h3 { font-size: 17px; color: #fff; font-weight: 600; text-transform: none; letter-spacing: 0; margin: 0; }
.pair-head .why { display: flex; gap: 6px; flex-wrap: wrap; }
.pair-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pair-side { border: 1px solid #1a1f3a; border-radius: 8px; padding: 16px; }
.pair-side h4 { font-size: 15px; color: #fff; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.pair-side .detail-grid { grid-template-columns: 90px 1fr; }
.plain { list-style: none; }
.plain li + li { margin-top: 4px; }
.pair-actions { display: flex; align-items: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.pair-actions .hint { margin: 0 auto 0 0; }
.done-fold.card summary { cursor: pointer; color: #a0a0b0; }

@media (max-width: 640px) {
  .pair-grid { grid-template-columns: 1fr; }
  .pair-actions .btn { flex: 1; }
  /* A cell's second line drops under its value instead of squeezing beside it. */
  .player-page .table-wrap td { flex-wrap: wrap; row-gap: 2px; }
  .player-page .table-wrap td .badge { white-space: nowrap; }
  .player-page .table-wrap td .sub { flex-basis: 100%; }
  .player-page .table-wrap td[data-label=""] { justify-content: flex-end; }
}

/* Settings › Coaches: the club's coach list, a coach's page, and New team's coach and manager picker. */
.alert.seeded { display: flex; align-items: center; gap: 16px; }
.alert.seeded form { margin-left: auto; }
.alert.seeded .link-button { color: #5dade2; font-size: 13px; white-space: nowrap; }
.coach-filters { align-items: flex-end; }
.coach-filters .form-group.grow-2 { flex: 1 1 260px; }
.coach-table .coach-team { display: block; white-space: nowrap; }
.coach-table .coach-team .role, .coach-table .none { color: #888; }
.coach-table td .badge { white-space: nowrap; }
.coach-teams { display: inline-flex; flex-direction: column; }
.coach-empty { text-align: center; padding: 48px 24px; }
.coach-empty h2 { margin-bottom: 8px; }
.coach-empty p { color: #a0a0b0; font-size: 14px; max-width: 460px; margin: 0 auto 20px; line-height: 1.5; }
.coach-form fieldset .form-inline .form-group { margin-bottom: 8px; }
.past-teams { margin: 12px 0 0; }
.coach-add-team { margin-top: 16px; padding-top: 16px; border-top: 1px solid #1a1f3a; align-items: flex-end; }
.coach-add-team .form-group { margin-bottom: 0; }
.coach-add-team .btn { height: 42px; }
.team-new { max-width: 720px; }
.staff-pick legend { margin-bottom: 8px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; padding: 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 6px 5px 12px; border: 1px solid #1a1f3a; border-radius: 18px; background: #141833; font-size: 14px; color: #e0e0e0; }
.chip .sub { color: #888; font-size: 12px; }
.chip-x { width: 22px; height: 22px; border: none; border-radius: 50%; background: transparent; color: #a0a0b0; font-size: 16px; line-height: 1; cursor: pointer; }
.chip-x:hover { background: #1f2547; color: #fff; }
.pick-add { display: flex; gap: 8px; }
.pick-add input { flex: 1; height: 38px; padding: 8px 12px; background: #0c1021; border: 1px solid #1a1f3a; border-radius: 6px; color: #e0e0e0; font-size: 14px; }
.pick-add input::placeholder { color: #555; }
.none-yet { color: #888; font-size: 13px; margin-bottom: 10px; }
.new-coach { border: 1px dashed rgba(52,152,219,0.5); border-radius: 8px; padding: 14px 16px 10px; margin-bottom: 10px; background: rgba(52,152,219,0.05); }
.new-coach-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 4px; font-size: 14px; }
.new-coach-head .muted { font-size: 13px; }
.new-coach .form-group { margin-bottom: 10px; }
.new-coach .link-button { font-size: 13px; }

@media (max-width: 640px) {
  .coach-teams { align-items: flex-end; }
  .tab-filters.coach-filters .form-group { flex: 1 1 100%; }
}

/* Club dues (#1091). */
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
th.num { text-align: right; }
.dues-table tfoot th, .dues-table tfoot td { font-weight: 600; color: #fff; border-bottom: none; border-top: 1px solid #2a3058; }
.dues-table tr.selected { background: #141833; }
.dues-table tr.selected td:first-child { box-shadow: inset 2px 0 0 #2ECC71; }
.dues-table tr.discount-row td { color: #3498db; }
.dues-table tr.undone td { color: #888; }
.dues-table td .badge { white-space: normal; }
.schedule-table th, .schedule-table td { padding-left: 10px; padding-right: 10px; }
.dues-table .sub { display: block; color: #888; font-size: 12px; margin-top: 3px; font-weight: 400; }
.money-overdue { color: #e74c3c; }
.dues-table .grp-start { border-left: 1px solid #1a1f3a; }
.dues-table .grp-row th { border-bottom: none; padding-bottom: 0; color: #a0a0b0; }
@media (max-width: 640px) { .dues-table .grp-row { display: none; } .dues-table .grp-start { border-left: none; } }
.dues-tiles { margin-bottom: 20px; }
.dues-tiles .stat { color: #fff; font-size: 28px; }
.dues-tiles .stat a { color: inherit; }
.dues-tiles .stat-overdue { color: #e74c3c; }
.dues-tiles .stat-good { color: #2ECC71; }
.dues-tiles .tile-sub { color: #888; font-size: 13px; margin-top: 4px; }
.dues-tiles.six { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.dues-tiles.six .stat { font-size: 22px; }
.dues-tiles.six .card { padding: 16px; }
progress.dues-bar { appearance: none; width: 140px; height: 8px; border: none; border-radius: 4px; background: #1a1f3a; overflow: hidden; }
progress.dues-bar::-webkit-progress-bar { background: #1a1f3a; border-radius: 4px; }
progress.dues-bar::-webkit-progress-value { background: #2ECC71; border-radius: 4px; }
progress.dues-bar::-moz-progress-bar { background: #2ECC71; border-radius: 4px; }
.dues-payto .detail-grid { grid-template-columns: 160px 1fr; }
.fee-form { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.fee-form form.card { margin-bottom: 0; }
.fee-scope { border: 1px solid #1a1f3a; border-radius: 8px; padding: 16px 16px 8px; margin: 4px 0 20px; }
.fee-scope legend { padding: 0 6px; color: #fff; font-weight: 600; font-size: 15px; }
.group-label { display: block; font-size: 13px; color: #888; margin-bottom: 8px; font-weight: 500; }
.fee-scope .group-label { margin-top: 12px; }
.scope-choice { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 12px; }
.scope-choice label.check, .chip-checks label.check { margin-bottom: 0; }
.chip-checks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 16px; margin-bottom: 12px; }
.fee-scope > label.check, .discount-block > label.check { display: flex; align-items: center; gap: 8px; color: #e0e0e0; font-size: 14px; margin-bottom: 10px; }
.check-hint { margin: 2px 0 12px 24px; }
.fee-preview { position: sticky; top: 20px; }
.fee-preview .preview-total { display: flex; flex-direction: column; gap: 2px; margin-bottom: 16px; }
.fee-preview .stat { font-size: 30px; font-weight: 700; color: #2ECC71; }
.preview-list { list-style: none; border-top: 1px solid #1a1f3a; margin-bottom: 16px; }
.preview-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #1a1f3a; font-size: 14px; }
.form-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sched-table td { padding-top: 6px; padding-bottom: 6px; }
.sched-table input { height: 34px; padding: 6px 10px; background: #0c1021; border: 1px solid #1a1f3a; border-radius: 6px; color: #e0e0e0; font-size: 14px; }
.sched-table .amt-input { width: 120px; text-align: right; }
.sched-table tfoot th, .sched-table tfoot td { font-weight: 600; color: #fff; border-bottom: none; border-top: 1px solid #2a3058; }
.sched-table tfoot .num { padding-right: 27px; }
.hint.schedule-off { color: #f39c12; }
.reminder-row { align-items: center; gap: 12px; }
.reminder-row select { width: 140px; }
.discount-block { margin-top: 4px; }
.pay-option { margin: 0 0 12px 24px; padding-left: 12px; border-left: 2px solid #1a1f3a; }
.reminder-row label.check { margin-bottom: 0; }
.inline-label { color: #e0e0e0; font-size: 14px; }
.amount-choice { display: flex; flex-direction: column; gap: 8px; }
.amount-choice label.check { margin-bottom: 0; }
.amount-choice input[type="text"] { max-width: 160px; }
.fee-form label.check, .charge-grid label.check { display: flex; align-items: center; gap: 8px; color: #e0e0e0; font-size: 14px; margin-bottom: 8px; }
.fee-form label.check input, .charge-grid label.check input { width: auto; height: auto; }
label.check .muted { margin: 0; }
.reminder-row select { height: 36px; padding: 6px 10px; background: #0c1021; border: 1px solid #1a1f3a; border-radius: 6px; color: #e0e0e0; }
.pips { display: inline-flex; gap: 3px; vertical-align: middle; margin-right: 6px; }
.pip { width: 14px; height: 8px; border-radius: 2px; background: #1a1f3a; border: 1px solid #2a3058; }
.pip.paid { background: #2ECC71; border-color: #2ECC71; }
.pip.part { background: linear-gradient(90deg, #2ECC71 50%, #e74c3c 50%); border-color: #e74c3c; }
.pip.overdue { background: #e74c3c; border-color: #e74c3c; }
.pip.waived { background: #a0a0b0; border-color: #a0a0b0; }
.plan-text { color: #a0a0b0; font-size: 13px; white-space: nowrap; }
.charge-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.row-actions-cell .row-actions { justify-content: flex-end; flex-wrap: nowrap; }
.inline-form { display: inline; margin-left: 8px; }
.wide-dt { grid-template-columns: 280px 1fr; }
.narrow { max-width: 720px; }
@media (min-width: 641px) {
  .dues-table td.lead-cell { white-space: nowrap; }
}
@media (max-width: 1100px) {
  .charge-grid { grid-template-columns: minmax(0, 1fr); }
  .dues-tiles.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .fee-form { grid-template-columns: minmax(0, 1fr); }
  .fee-preview { position: static; }
}
@media (max-width: 640px) {
  .chip-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-row.three { grid-template-columns: 1fr; }
  .dues-tiles.six { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dues-tiles.six .stat { font-size: 20px; }
  .dues-table tfoot { display: none; }
  .schedule-table tfoot { display: block; }
  .schedule-table tfoot th { display: block; padding: 10px 0; }
  .dues-table td.lead-cell { display: block; font-weight: 600; text-align: left; }
  .dues-table td.lead-cell::before { content: none; }
  .row-actions-cell .row-actions { justify-content: stretch; }
  .row-actions-cell .row-actions .btn { flex: 1; text-align: center; }
  .sched-table input { width: 140px; }
  .wide-dt { grid-template-columns: 1fr; }
}

/* Registration. */
.icon.sm { width: 16px; height: 16px; }
.icon-text { display: inline-flex; align-items: center; gap: 6px; }
fieldset.plain { border: none; padding: 0; margin: 0; min-width: 0; }
.md-page > .section-nav { margin-bottom: 20px; }
.md-list .meta .flag, .sub.flag { color: #f5b041; }
.opt { color: #888; font-weight: 400; }
.timeline { list-style: none; font-size: 14px; }
.timeline li { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: baseline; padding: 6px 0; color: #a0a0b0; }
.timeline li .dot { width: 10px; height: 10px; border-radius: 50%; background: #2ECC71; justify-self: center; }
.timeline li .when { color: #888; font-size: 12px; }
.medical { background: rgba(243,156,18,0.08); border: 1px solid rgba(243,156,18,0.25); border-radius: 6px; padding: 10px 12px; color: #f5d6a0; font-size: 14px; white-space: pre-line; }
.link-box { display: flex; gap: 8px; align-items: center; }
.link-box input { flex: 1; min-width: 0; height: 40px; padding: 10px 12px; background: #0c1021; border: 1px solid #1a1f3a; border-radius: 6px; color: #e0e0e0; font-size: 14px; font-family: ui-monospace, Menlo, monospace; }
.link-box .btn { height: 40px; }
.self-reg { border-top: 1px solid #1a1f3a; padding-top: 16px; }
.self-reg .min-age { max-width: 260px; margin: 12px 0 0 24px; }
.consent-list { list-style: none; border-top: 1px solid #1a1f3a; }
/* Each row's actions keep fixed slots (an absent move leaves its slot
   empty), so the status, Edit and the move and remove buttons line up down
   the list. --slot follows .btn-icon's size. */
.consent-row { --slot: 32px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 12px 0; border-bottom: 1px solid #1a1f3a; font-size: 14px; }
.consent-row:has(> .consent-details[open]) { align-items: start; }
.consent-details > summary { display: grid; grid-template-columns: minmax(0, 1fr) 136px auto; gap: 8px 14px; align-items: center; cursor: pointer; list-style: none; }
.consent-details > summary::-webkit-details-marker { display: none; }
.consent-details .what { min-width: 0; }
.consent-details .what .sub { margin-top: 4px; }
.consent-details .status { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.consent-details[open] > summary .edit { visibility: hidden; }
.consent-details .locked { display: inline-flex; align-items: center; gap: 4px; color: #888; font-size: 12px; white-space: nowrap; }
.consent-edit { background: #0c1021; border-radius: 6px; padding: 14px 12px 4px; margin-top: 12px; }
.consent-edit .form-group { margin-bottom: 10px; }
.consent-edit textarea { min-height: 64px; }
.consent-row .row-actions { display: grid; grid-template-columns: repeat(3, var(--slot)); gap: 8px; }
.consent-new { margin-top: 16px; }
.consent-new > summary { list-style: none; }
.consent-new > summary::-webkit-details-marker { display: none; }
@media (max-width: 768px) {
  .link-box { flex-wrap: wrap; }
  .link-box input { flex-basis: 100%; }
  .consent-details { grid-area: 1 / 1 / 2 / -1; }
  .consent-details > summary { grid-template-columns: minmax(0, 1fr) auto calc(3 * var(--slot) + 16px); column-gap: 8px; }
  .consent-details .what { grid-column: 1 / -1; }
  .consent-row .row-actions { grid-area: 1 / 2; align-self: end; }
  .consent-row:has(> .consent-details[open]) .row-actions { grid-row: 2; }
}
@media (max-width: 640px) { .consent-row { --slot: 36px; } }

/* Tryouts: the tryout page, check-in and scoring phone pages, and the
   walk-up QR screen. */
.badge-teal { background: rgba(26,188,156,0.15); color: #48c9b0; }
.badge-gold { background: rgba(241,196,15,0.14); color: #f4d03f; }
.score-table td.num, .score-table th.num { text-align: right; }
.score-table tfoot td { font-weight: 600; color: #fff; border-bottom: none; }
.assign-table td:first-child, .assign-table th:first-child { width: 40px; padding-right: 0; }
.assign-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 12px; }
.assign-bar .sub { display: inline; margin: 0; }
.crit-list { list-style: none; }
.crit-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #1a1f3a; font-size: 14px; }
.crit-list li:last-child { border-bottom: none; }
.crit-list .icon { color: #666; }
.crit-list .what { flex: 1; }
.crit-list .what .sub { margin-top: 2px; }
.phone-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #10142B; border-bottom: 1px solid #1a1f3a; }
.phone-bar img { width: 24px; height: 24px; border-radius: 5px; }
.phone-bar .where { min-width: 0; }
.phone-bar .where strong { display: block; color: #fff; font-size: 15px; }
.phone-bar .where .sub { margin: 0; }
.phone-bar .back { color: #a0a0b0; display: inline-flex; }
.phone { padding: 16px; }
.phone .summary-bar { position: static; box-shadow: none; gap: 16px; padding: 10px 14px; }
.phone .summary-bar .stat strong { font-size: 16px; }
.phone-tabs { margin: 0 -16px 12px; padding: 0 16px; }
.phone-search { margin-bottom: 12px; }
.phone-search input { width: 100%; height: 44px; padding: 10px 12px; background: #0c1021; border: 1px solid #1a1f3a; border-radius: 6px; color: #e0e0e0; font-size: 15px; }
.checkin-list { list-style: none; }
.checkin-list li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #10142B; border: 1px solid #1a1f3a; border-radius: 8px; margin-bottom: 8px; }
.checkin-list .bib { flex: none; width: 36px; height: 36px; border-radius: 50%; background: #1a1f3a; color: #a0a0b0; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }
.checkin-list .who { flex: 1; min-width: 0; }
.checkin-list .who strong { display: block; color: #fff; font-size: 15px; font-weight: 600; }
.checkin-list .who .sub .flag { color: #f5b041; }
.checkin-list .btn { flex: none; min-width: 96px; }
.checkin-list li.in { border-color: rgba(46,204,113,0.35); }
.checkin-list li.in .bib { background: rgba(46,204,113,0.15); color: #2ECC71; }
.checkin-list .done { display: inline-flex; align-items: center; gap: 4px; color: #2ECC71; font-size: 13px; font-weight: 600; min-width: 96px; justify-content: flex-end; }
.checkin-list .group { color: #666; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; padding: 12px 2px 6px; background: none; border: none; margin: 0; }
.score-card { padding: 16px; }
.score-card .who-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.score-card .who-head .bib { width: 44px; height: 44px; border-radius: 50%; background: rgba(46,204,113,0.15); color: #2ECC71; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.score-card .who-head h2 { margin: 0; font-size: 20px; }
.score-card .who-head .sub { margin: 0; }
.crit { padding: 14px 0; border-top: 1px solid #1a1f3a; }
.crit:first-of-type { border-top: none; }
.crit legend { display: flex; justify-content: space-between; width: 100%; color: #e0e0e0; font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.crit legend .sub { display: inline; margin: 0; font-weight: 400; }
.crit fieldset { border: none; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.scale label { position: relative; }
.scale input { position: absolute; opacity: 0; }
.scale span { display: flex; align-items: center; justify-content: center; height: 48px; border: 1px solid #1a1f3a; border-radius: 8px; background: #0c1021; color: #c0c0cc; font-size: 17px; font-weight: 600; }
.scale input:checked + span { background: #2ECC71; border-color: #2ECC71; color: #000; }
.scale input:focus-visible + span { outline: 2px solid #f4d03f; outline-offset: 2px; }
.scale-ends { display: flex; justify-content: space-between; color: #666; font-size: 11px; margin-top: 4px; }
.score-card textarea { min-height: 80px; }
.score-nav { display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px; margin-top: 8px; }
.score-nav .btn { width: 100%; }
.private-note { display: flex; gap: 8px; align-items: flex-start; color: #888; font-size: 12px; line-height: 1.45; margin: 12px 0 0; }
.private-note .icon { margin-top: 1px; }
.progress-dots { display: flex; gap: 4px; margin: 10px 0 2px; }
.progress-dots span { flex: 1; height: 4px; border-radius: 2px; background: #1a1f3a; }
.progress-dots span.on { background: #2ECC71; }
.progress-dots span.now { background: #f4d03f; }
.alert .icon { vertical-align: -3px; margin-right: 4px; }
.walkup { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; margin-bottom: 12px; border: 1px dashed #2f3766; border-radius: 8px; background: #10142B; color: #e0e0e0; font-size: 14px; text-decoration: none; }
.walkup:hover { text-decoration: none; }
.walkup .icon { width: 28px; height: 28px; color: #2ECC71; }
.walkup strong { display: block; color: #fff; font-size: 15px; }
.walkup .sub { margin: 0; }
.walkup .go { margin-left: auto; color: #666; }
.mk { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; padding: 1px 7px; border-radius: 10px; font-size: 11px; font-weight: 600; vertical-align: 1px; }
.mk .icon { width: 11px; height: 11px; }
.mk.med { background: rgba(231,76,60,0.15); color: #f1948a; }
.mk.walk { background: rgba(52,152,219,0.15); color: #5dade2; }
.mk.noshow { background: rgba(160,160,176,0.16); color: #c0c0cc; }
.checkin-list .who .sub .wait { color: #5dade2; }
.checkin-list li.waiting { border-style: dashed; border-color: rgba(52,152,219,0.45); }
.checkin-list li.in .done .by { display: block; color: #888; font-weight: 400; font-size: 11px; text-align: right; }
.checkin-list .done { flex-direction: column; align-items: flex-end; gap: 0; }
.checkin-list .done .t { display: inline-flex; align-items: center; gap: 4px; }
.checkin-list li.noshow { opacity: 0.85; }
.checkin-list li.noshow .bib { background: none; border: 1px dashed #333a5c; }
.checkin-list li .row-link { font-size: 13px; }
.checkin-list li.result { flex-wrap: wrap; }
.checkin-list li.result .elsewhere { flex-basis: 100%; display: flex; align-items: center; gap: 8px; margin-top: 4px; padding-top: 10px; border-top: 1px solid #1a1f3a; color: #f5b041; font-size: 13px; }
.checkin-list li.result .elsewhere .btn { margin-left: auto; min-width: 0; }
.phone-search.active input { border-color: #2ECC71; }
.search-note { color: #888; font-size: 12px; margin: -4px 0 10px; }
.phone .alert { font-size: 13px; padding: 10px 12px; margin-bottom: 12px; }
.phone-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.phone-actions .btn { width: 100%; }
.tag-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.tag-head .num { width: 72px; height: 72px; border-radius: 50%; background: rgba(46,204,113,0.15); color: #2ECC71; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; flex: none; }
.tag-head h2 { margin: 0; font-size: 22px; }
.tag-head .sub { margin: 2px 0 0; font-size: 13px; }
.phone .card { padding: 16px; margin-bottom: 12px; }
.phone .card h3 { margin-bottom: 10px; }
.call-list { list-style: none; }
.call-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #1a1f3a; }
.call-list li:last-child { border-bottom: none; padding-bottom: 0; }
.call-list .who { flex: 1; font-size: 15px; color: #e0e0e0; }
.call-list .who .sub { margin: 0; }
.call-list .btn { display: inline-flex; align-items: center; gap: 6px; }
.closed-note { display: flex; align-items: center; gap: 8px; color: #a0a0b0; font-size: 13px; margin-bottom: 12px; }
body.qr-page { background: #ffffff; color: #111827; color-scheme: light; min-height: 100vh; display: flex; flex-direction: column; }
.qr-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid #e5e7eb; }
.qr-top .sub { color: #6b7280; margin: 0; font-size: 13px; }
.qr-top .btn-done { background: #111827; color: #fff; border-radius: 8px; padding: 8px 18px; font-size: 15px; font-weight: 600; }
.qr-body { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 28px 24px 24px; }
.qr-body .club-logo-lg { width: 64px; height: 64px; border-radius: 12px; border: 1px solid #e5e7eb; margin-bottom: 8px; }
.qr-body .club { font-size: 18px; font-weight: 600; color: #111827; }
.qr-body .what { color: #6b7280; font-size: 14px; margin-bottom: 20px; }
.qr-body h1 { color: #111827; font-size: 28px; line-height: 1.2; margin-bottom: 16px; }
.qr-body .qr { width: 300px; height: 300px; border: 1px solid #e5e7eb; border-radius: 12px; }
.qr-body .short { margin-top: 16px; color: #6b7280; font-size: 13px; }
.qr-body .short strong { display: block; color: #111827; font-size: 20px; font-weight: 600; letter-spacing: 0.3px; margin-top: 2px; }
.qr-body .steps-note { margin-top: 20px; padding: 14px 16px; background: #f3f4f6; border-radius: 10px; color: #374151; font-size: 14px; line-height: 1.5; text-align: left; }
.checkin-list li.result .elsewhere { flex-wrap: wrap; }
.checkin-list li.result .elsewhere .btn { flex-basis: 100%; margin: 6px 0 0; }
.day-row { display: grid; grid-template-columns: 110px 150px 110px 110px minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; padding: 10px 0; border-bottom: 1px solid #1a1f3a; }
.day-row .form-group { margin: 0; }
.day-row .day-label { align-self: center; color: #fff; font-size: 14px; font-weight: 600; padding-top: 18px; }
.day-row .day-label .sub { font-weight: 400; }
.day-row.callback .day-label { color: #48c9b0; }
.day-row .row-link { padding-bottom: 10px; }
.chip-checks label.check.disabled { color: #666; }
.chip-checks label.check .sub { display: inline; margin: 0 0 0 4px; }
.day-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
@media (max-width: 640px) {
  .day-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .day-row .day-label { grid-column: 1 / -1; padding-top: 0; }
  .day-cards { grid-template-columns: minmax(0, 1fr); }
}
.day-card { display: flex; flex-direction: column; gap: 2px; padding: 16px; margin: 0; }
.day-card .day-name { color: #888; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.day-card strong { color: #fff; font-size: 16px; }
.day-card .day-count { margin-top: 8px; color: #2ECC71; font-size: 14px; font-weight: 600; }
.day-card .day-count .sub { font-weight: 400; }
.day-card.callback-day { border-color: rgba(26,188,156,0.4); }
.day-card.callback-day .day-name, .day-card.callback-day .day-count { color: #48c9b0; }
.day-card .btn { align-self: flex-start; margin-top: 10px; }
.tryout-table .yes { color: #2ECC71; display: inline-flex; }
.tryout-table .no { color: #555b7a; }
.tryout-table .flag-text, .sub.flag-text { color: #f5b041; }
.muted-num { color: #666; font-weight: 400; }
.day-tag { color: #a0a0b0; font-size: 13px; margin: 6px 0 2px; padding: 8px 10px; background: #0c1021; border: 1px solid #1a1f3a; border-radius: 6px; }
.day-tag strong { color: #fff; }
.day-tally { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
.day-tally div { background: #10142B; border: 1px solid #1a1f3a; border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: 0.4px; }
.day-tally strong { color: #fff; font-size: 20px; letter-spacing: 0; }
.day-tally .sub { text-transform: none; letter-spacing: 0; margin: 0; }
.edit-email { border-top: 1px solid #1a1f3a; padding-top: 14px; }
.checkin-list li { flex-wrap: wrap; }
.checkin-list form.inline { margin-left: auto; }
.checkin-list .elsewhere { flex-basis: 100%; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; padding-top: 10px; border-top: 1px solid #1a1f3a; color: #f5b041; font-size: 13px; }
.checkin-list .who a { color: #fff; }
.sheet-card { margin-top: 16px; }
.sheet-card ul { margin: 8px 0 8px 18px; color: #a0a0b0; font-size: 14px; line-height: 1.5; }
.sheet-card li { margin-bottom: 6px; }
.crumbs { color: #888; font-size: 13px; margin-bottom: 8px; }
.crit-edit { flex: 1; }
.crit-edit > summary { display: flex; gap: 12px; align-items: center; cursor: pointer; list-style: none; }
.crit-edit > summary::-webkit-details-marker { display: none; }
.qr-body .club-initial-lg { width: 64px; height: 64px; border-radius: 12px; border: 1px solid #e5e7eb; margin-bottom: 8px; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 600; color: #4b5563; }
.yes .icon { color: #2ECC71; }

/* Placement board */
.js [data-js-hide] { display: none; }
.placement-bar { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding: 14px 20px; }
.placement-bar .placement-group select { min-width: 200px; }
.placement-stats { display: flex; gap: 22px; font-size: 15px; color: #a0a0b0; }
.placement-stats strong { color: #fff; font-size: 20px; margin-right: 4px; }
.placement-stats .undecided strong { color: #f39c12; }
.placement-stats .moved strong { color: #5dade2; }
.placement-season { margin-left: auto; font-size: 13px; }
.placement-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 16px; align-items: start; }
.placement-col { background: #121631; border: 1px solid #22284a; border-radius: 10px; padding: 14px; }
.placement-col.not_placed { border-style: dashed; }
.placement-col.drop { border-color: #2ECC71; box-shadow: 0 0 0 1px #2ECC71; }
.placement-col .col-head { display: flex; justify-content: space-between; align-items: baseline; }
.placement-col .col-head h2 { font-size: 15px; margin: 0; }
.placement-col .count { color: #a0a0b0; font-size: 13px; }
.placement-col .col-sub { color: #a0a0b0; font-size: 12px; margin: 2px 0 10px; }
.placement-card { display: grid; grid-template-columns: 16px 1fr auto; gap: 4px 10px; align-items: center; background: #171c3a; border: 1px solid #262d55; border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; }
.placement-card[draggable="true"] { cursor: grab; }
.placement-card.moved { border-color: #3b6fb6; background: #18244a; }
.placement-card.waiting { border-style: dashed; opacity: 0.85; }
.placement-card .grip { width: 8px; height: 14px; background-image: radial-gradient(#6b7090 1px, transparent 1.4px); background-size: 4px 4px; }
.placement-card .lock { color: #8a8fa8; }
.placement-card .who strong { font-size: 14px; }
.placement-card .who .sub { display: block; color: #a0a0b0; font-size: 12px; }
.placement-card .avg { font-weight: 600; font-size: 14px; }
.placement-card .move { grid-column: 2 / 4; display: flex; gap: 8px; align-items: center; }
.placement-card .move select { font-size: 12px; padding: 3px 6px; flex: 1; }
.badge-info { background: rgba(52,152,219,0.15); color: #5dade2; }
.publish-card fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.publish-card legend { color: #a0a0b0; font-size: 13px; margin-bottom: 6px; }
.publish-card .radio { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.publish-card .radio .sub { display: block; color: #a0a0b0; font-size: 13px; }
.publish-card .radio select { margin-left: 8px; font-size: 13px; padding: 2px 6px; }
.publish-counts { border: 1px solid #262d55; border-radius: 8px; margin: 0 0 16px; padding: 4px 16px; }
.publish-counts div { display: flex; gap: 16px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid #22284a; }
.publish-counts div:last-child { border-bottom: 0; }
.publish-counts dt { font-size: 20px; font-weight: 700; min-width: 48px; }
.publish-counts dd { margin: 0; }
.publish-card .checkbox { display: flex; gap: 8px; align-items: center; margin: 12px 0; font-weight: 600; }
.publish-card textarea { width: 100%; }
.publish-card .warn-line { color: #f39c12; font-size: 13px; }
.placement-bar select, .placement-card .move select, .publish-card .radio select { background: #141833; color: #e0e0e0; border: 1px solid #2a3158; border-radius: 6px; }
.placement-bar select { height: 36px; padding: 0 10px; font-size: 14px; }
