/* Generated: 2026-04-15 */
/* Version: 0.7.7 */

:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #dbe3ee;
  --primary: #0f766e;
  --primary-dark: #115e59;
  --danger: #b91c1c;
  --success: #166534;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.4;
}

a {
  color: var(--primary-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 16px;
}

.page-title {
  font-size: 28px;
  margin: 0 0 8px 0;
}

.subtitle {
  color: var(--muted);
  margin: 0;
}

.topbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.topbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 15px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 16px;
}

.card h2,
.card h3 {
  margin-top: 0;
}

.flash {
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
  font-weight: 600;
}

.flash.success {
  background: #ecfdf5;
  color: var(--success);
  border: 1px solid #bbf7d0;
}

.flash.error {
  background: #fef2f2;
  color: var(--danger);
  border: 1px solid #fecaca;
}

.menu-list {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
  margin: 0;
}

.menu-list a {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
  font-weight: 700;
  color: var(--text);
}

.menu-list a:hover {
  text-decoration: none;
  border-color: #b9c9de;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

input[type="text"],
input[type="password"],
input[type="date"],
input[type="time"],
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 16px;
  background: #fff;
  color: var(--text);
}

.players-grid {
  display: grid;
  gap: 10px;
}

.checkbox-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
}

.checkbox-card input[type="checkbox"] {
  width: 20px;
  height: 20px;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: auto;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  border: 1px solid var(--border);
  padding: 8px 6px;
  text-align: center;
  vertical-align: middle;
  font-size: 13px;
  white-space: nowrap;
}

th {
  background: #f8fafc;
  font-weight: 700;
}

td.text-left,
th.text-left {
  text-align: left;
}

.compact-table th,
.compact-table td {
  padding: 7px 6px;
  font-size: 12px;
}

.compact-note {
  color: var(--muted);
  font-size: 14px;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-link {
  display: inline-block;
  padding: 8px 12px;
  background: #ecfeff;
  border: 1px solid #c7f9ff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

button,
.button-link {
  appearance: none;
  border: none;
  border-radius: 14px;
  min-height: 46px;
  padding: 12px 16px;
  background: var(--primary);
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

button:hover,
.button-link:hover {
  background: var(--primary-dark);
  text-decoration: none;
}

.button-secondary {
  background: #e5e7eb;
  color: var(--text);
}

.sticky-submit {
  position: sticky;
  bottom: 12px;
  background: rgba(245, 247, 251, 0.92);
  backdrop-filter: blur(8px);
  padding-top: 12px;
  margin-top: 16px;
}

.round-list {
  display: grid;
  gap: 12px;
}

.round-item {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 14px 16px;
  color: var(--text);
}

.round-item:hover {
  text-decoration: none;
  border-color: #b9c9de;
}

.round-meta {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

.kv {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px 12px;
}

.score-table {
  width: auto;
}

.score-table th,
.score-table td {
  padding: 6px 4px;
  font-size: 12px;
}

.score-table td:first-child,
.score-table td:nth-child(2),
.score-table th:first-child,
.score-table th:nth-child(2) {
  text-align: left;
  position: sticky;
  background: #fff;
  z-index: 1;
}

.score-table th:first-child {
  left: 0;
  min-width: 42px;
  width: 42px;
}

.score-table td:first-child {
  left: 0;
  min-width: 42px;
  width: 42px;
}

.score-table th:nth-child(2) {
  left: 42px;
  min-width: 54px;
  width: 54px;
}

.score-table td:nth-child(2) {
  left: 42px;
  min-width: 54px;
  width: 54px;
}

.score-table th {
  background: #f8fafc;
}

.score-table .score-select {
  width: 52px;
  min-width: 52px;
  padding: 6px 4px;
}

.score-table .club-select {
  width: 64px;
  min-width: 64px;
  padding: 6px 4px;
}

.mini-col {
  min-width: 42px;
}

.small-col {
  min-width: 56px;
}

.medium-col {
  min-width: 72px;
}

.name-col {
  min-width: 52px;
}

@media (min-width: 700px) {
  .container {
    padding: 24px;
  }

  .players-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
