:root {
  --shaysport-ui-blue: #0b4ea2;
  --shaysport-ui-blue-dark: #07366f;
  --shaysport-ui-blue-soft: #eaf2ff;
  --shaysport-ui-green: #177245;
  --shaysport-ui-red: #a32323;
  --shaysport-ui-amber: #8a5a00;
  --shaysport-ui-ink: #14233b;
  --shaysport-ui-muted: #56657a;
  --shaysport-ui-border: #cbd6e5;
  --shaysport-ui-surface: #ffffff;
  --shaysport-ui-light-button-text: #14233b;
  --shaysport-ui-background: #f3f7fc;
  --shaysport-ui-radius: 14px;
  --shaysport-ui-shadow: 0 10px 28px rgba(20, 35, 59, .10);
}

.shaysport-admin-page,
.shaysport-ui-surface {
  box-sizing: border-box;
  color: var(--shaysport-ui-ink);
  background: var(--shaysport-ui-background);
  padding: 24px;
  min-height: 100%;
}

.shaysport-admin-page *,
.shaysport-ui-surface * { box-sizing: border-box; }

.shaysport-panel,
.shaysport-card {
  background: var(--shaysport-ui-surface);
  border: 1px solid var(--shaysport-ui-border);
  border-radius: var(--shaysport-ui-radius);
  box-shadow: var(--shaysport-ui-shadow);
  padding: 20px;
}

.shaysport-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 17px;
  border: 1px solid var(--shaysport-ui-blue);
  border-radius: 999px;
  background: var(--shaysport-ui-surface);
  color: var(--shaysport-ui-blue);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.shaysport-btn:hover,
.shaysport-btn:focus-visible {
  background: var(--shaysport-ui-blue-soft);
  color: var(--shaysport-ui-blue-dark);
  box-shadow: 0 5px 16px rgba(11, 78, 162, .18);
  transform: translateY(-1px);
}

.shaysport-btn--primary {
  background: var(--shaysport-ui-blue);
  border-color: var(--shaysport-ui-blue);
  color: #fff;
}

.shaysport-btn--primary:hover,
.shaysport-btn--primary:focus-visible {
  background: var(--shaysport-ui-blue-dark);
  color: #fff;
}

.shaysport-btn--danger { border-color: var(--shaysport-ui-red); color: var(--shaysport-ui-red); }

/*
 * Accessibility invariant for the shared ShaySport button system:
 * every light or transparent button surface must use dark foreground content.
 * This prevents unreadable light-on-light combinations when plugins reuse the
 * shared button classes inside pale cards, hero panels, dialogs or disabled states.
 */
.shaysport-btn:not(.shaysport-btn--primary):not(.shaysport-btn--danger),
.shaysport-btn--secondary,
.shaysport-btn--light,
.shaysport-btn--ghost,
.shaysport-btn--outline,
.shaysport-btn.is-light,
.shaysport-btn[data-shaysport-tone="light"] {
  color: var(--shaysport-ui-light-button-text) !important;
}

.shaysport-btn:not(.shaysport-btn--primary):not(.shaysport-btn--danger) :where(svg, path, use),
.shaysport-btn--secondary :where(svg, path, use),
.shaysport-btn--light :where(svg, path, use),
.shaysport-btn--ghost :where(svg, path, use),
.shaysport-btn--outline :where(svg, path, use),
.shaysport-btn.is-light :where(svg, path, use),
.shaysport-btn[data-shaysport-tone="light"] :where(svg, path, use) {
  color: currentColor;
  fill: currentColor;
  stroke: currentColor;
}

.shaysport-btn[disabled],
.shaysport-btn[aria-disabled="true"] {
  background: var(--shaysport-ui-surface) !important;
  border-color: var(--shaysport-ui-border) !important;
  color: var(--shaysport-ui-light-button-text) !important;
  opacity: .72;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.shaysport-btn[disabled] :where(svg, path, use),
.shaysport-btn[aria-disabled="true"] :where(svg, path, use) {
  color: currentColor;
  fill: currentColor;
  stroke: currentColor;
}

.shaysport-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; border: 0; }
.shaysport-tab {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--shaysport-ui-border);
  border-radius: 999px;
  background: #fff;
  color: var(--shaysport-ui-blue);
  text-decoration: none;
  font-weight: 700;
}
.shaysport-tab.is-active, .shaysport-tab[aria-selected="true"] { background: var(--shaysport-ui-blue); color: #fff; border-color: var(--shaysport-ui-blue); }

.shaysport-notice {
  margin: 14px 0;
  padding: 13px 16px;
  border: 1px solid var(--shaysport-ui-border);
  border-inline-start: 5px solid var(--shaysport-ui-blue);
  border-radius: 10px;
  background: #fff;
}
.shaysport-notice--success { border-inline-start-color: var(--shaysport-ui-green); }
.shaysport-notice--error { border-inline-start-color: var(--shaysport-ui-red); }
.shaysport-notice--warning { border-inline-start-color: var(--shaysport-ui-amber); }

.shaysport-table { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; background: #fff; border: 1px solid var(--shaysport-ui-border); border-radius: 12px; }
.shaysport-table th, .shaysport-table td { padding: 12px 14px; border-bottom: 1px solid var(--shaysport-ui-border); text-align: start; vertical-align: top; }
.shaysport-table th { background: var(--shaysport-ui-blue-soft); color: var(--shaysport-ui-blue-dark); font-weight: 800; }
.shaysport-table tr:last-child td { border-bottom: 0; }

.shaysport-form-table { width: 100%; border-collapse: collapse; }
.shaysport-form-table th, .shaysport-form-table td { padding: 12px 10px; text-align: start; vertical-align: top; }
.shaysport-field,
.shaysport-admin-page :where(input[type="text"], input[type="email"], input[type="url"], input[type="number"], input[type="password"], input[type="date"], input[type="time"], select, textarea) {
  width: min(100%, 680px);
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--shaysport-ui-border);
  border-radius: 10px;
  background: #fff;
  color: var(--shaysport-ui-ink);
}
.shaysport-help { color: var(--shaysport-ui-muted); font-size: .94em; }
.shaysport-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.shaysport-spinner { width: 22px; height: 22px; border: 3px solid var(--shaysport-ui-border); border-top-color: var(--shaysport-ui-blue); border-radius: 50%; animation: shaysport-spin .8s linear infinite; }
.shaysport-sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
@keyframes shaysport-spin { to { transform: rotate(360deg); } }

@media (max-width: 782px) {
  .shaysport-admin-page, .shaysport-ui-surface { padding: 14px; }
  .shaysport-panel, .shaysport-card { padding: 15px; }
  .shaysport-btn { min-height: 46px; }
  .shaysport-table { display: block; overflow-x: auto; }
}

.shaysport-btn--secondary{background:#fff;color:var(--shaysport-ui-light-button-text,#14233b);border-color:var(--shaysport-ui-primary,#123f73)}
.shaysport-btn--link{background:transparent;color:var(--shaysport-ui-primary,#123f73);border-color:transparent;box-shadow:none;text-decoration:underline}
.shaysport-table--striped tbody tr:nth-child(odd){background:rgba(18,63,115,.035)}
.shaysport-panel-grid{display:grid;gap:18px}
.shaysport-field--large{min-height:140px;resize:vertical}
.shaysport-field--small{max-width:120px}
.shaysport-icon{display:inline-grid;place-items:center;width:1.2em;height:1.2em;font:inherit;line-height:1}
.shaysport-icon--trash::before{content:"x";font-weight:900}

.shaysport-visually-hidden,
.shaysport-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* 2.20.1 - force readable foregrounds on light ShaySport buttons, including WebKit text fill. */
html body .shaysport-btn:not(.shaysport-btn--primary):not(.shaysport-btn--danger),
html body .shaysport-btn--secondary,
html body .shaysport-btn--light,
html body .shaysport-btn--ghost,
html body .shaysport-btn--outline,
html body .shaysport-btn.is-light,
html body .shaysport-btn[data-shaysport-tone="light"] {
  color: var(--shaysport-ui-light-button-text, #14233b) !important;
  -webkit-text-fill-color: var(--shaysport-ui-light-button-text, #14233b) !important;
}
