:root {
  --green: #153f33;
  --green2: #235544;
  --lime: #d4e4b8;
  --cream: #f7f8f3;
  --paper: #fff;
  --ink: #243b32;
  --muted: #7b867e;
  --line: #e6e9e1;
  --red: #b55655;
  --amber: #a57c2e;
  --radius: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #a6bd76;
  outline-offset: 3px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #819f71;
  outline-offset: 1px;
}
a {
  color: inherit;
}
.loading {
  padding: 80px;
  text-align: center;
}
.icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 238px;
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--green);
  color: #c0d0c4;
  padding: 30px 20px 22px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 10px 43px;
  color: #faf8ef;
}
.brand img {
  width: 40px;
  height: 46px;
}
.brand strong {
  display: block;
  font-size: 17px;
  letter-spacing: 1.6px;
  line-height: 1.25;
}
.brand small {
  font-size: 9px;
  letter-spacing: 2.8px;
  color: #b3c6b7;
}
.navlabel {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: #8ca796;
  margin: 0 14px 12px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nav button {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 0;
  background: transparent;
  color: #baccbf;
  padding: 13px 15px;
  border-radius: 9px;
  text-align: left;
  font-size: 13px;
  font-weight: 500;
}
.nav button.active {
  background: #315746;
  color: #fff;
}
.nav button:hover {
  background: #284e3e;
}
.nav .count {
  margin-left: auto;
  background: #486450;
  color: #dceac9;
  font-size: 10px;
  min-width: 22px;
  text-align: center;
  border-radius: 5px;
  padding: 2px 5px;
}
.sidebar-bottom {
  margin-top: auto;
}
.club-note {
  padding: 18px 15px;
  border: 1px solid #456354;
  border-radius: 12px;
  margin-top: 36px;
  font-size: 12px;
  color: #b3c6b7;
}
.club-note strong {
  display: block;
  color: #e7ecd9;
  margin-bottom: 6px;
}
.demo-tag {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #d5dfbb;
  font-size: 11px;
  margin-top: 15px;
}
.dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  background: #a9c784;
  border-radius: 50%;
}
.user-block {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 7px 0;
  margin-top: 20px;
  border-top: 1px solid #365a47;
}
.avatar {
  width: 35px;
  height: 35px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #e7ebd8;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.avatar.rose {
  background: #f2e6e0;
  color: #9c6663;
}
.avatar.sage {
  background: #e3ece4;
  color: #42745c;
}
.user-block strong {
  display: block;
  color: #f2f4e9;
  font-size: 12px;
}
.user-block small {
  color: #adc1b2;
  font-size: 10px;
}
.logout {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #a8bcae;
  padding: 5px;
  display: flex;
}
.workspace {
  margin-left: 238px;
  width: calc(100% - 238px);
}
.topbar {
  height: 78px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.breadcrumb {
  font-size: 12px;
  color: #8b938c;
  display: flex;
  gap: 13px;
  align-items: center;
}
.breadcrumb strong {
  font-weight: 500;
  color: #3e5145;
}
.top-meta {
  display: flex;
  gap: 19px;
  align-items: center;
  font-size: 11px;
  color: #7b887e;
}
.sync {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sync .dot {
  background: #4d8f66;
}
.team-select {
  background: #f8f9f5;
  border: 1px solid var(--line);
  padding: 9px 12px;
  border-radius: 8px;
  color: #4d5b50;
  max-width: 210px;
  font-size: 12px;
}
.main {
  padding: 34px 42px 48px;
  max-width: 1550px;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.9px;
  font-size: 10px;
  color: #809077;
  font-weight: 650;
  margin-bottom: 7px;
}
h1 {
  font-size: 29px;
  letter-spacing: -0.9px;
  font-weight: 620;
  line-height: 1.25;
  margin: 0 0 8px;
}
h2 {
  font-size: 16px;
  letter-spacing: -0.3px;
  margin: 0;
  font-weight: 600;
}
h3 {
  font-size: 14px;
  margin: 0;
}
p {
  margin: 0;
}
.subtext {
  font-size: 12px;
  color: var(--muted);
}
.btn {
  border: 1px solid #dbe2d8;
  background: white;
  color: #3c5346;
  border-radius: 8px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 550;
  min-height: 40px;
  text-decoration: none;
}
.btn.primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.btn.light {
  background: #e1e9d4;
  border-color: #e1e9d4;
  color: #294a38;
}
.btn.danger {
  color: var(--red);
}
.btn.small {
  padding: 6px 10px;
  min-height: 31px;
  font-size: 11px;
}
.btn.icon-only {
  padding: 8px;
}
.button-row {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.match-banner {
  background: var(--green);
  color: #fff;
  border-radius: var(--radius);
  padding: 25px 29px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  overflow: hidden;
  margin-bottom: 23px;
}
.match-banner:after {
  content: "";
  position: absolute;
  right: 230px;
  top: -70px;
  width: 260px;
  height: 260px;
  border: 1px solid #54735b;
  opacity: 0.25;
  border-radius: 50%;
  box-shadow:
    0 0 0 45px #315642,
    0 0 0 46px #587558;
}
.match-banner > * {
  position: relative;
  z-index: 1;
}
.banner-label {
  font-size: 9px;
  color: #c7d7b4;
  letter-spacing: 1.7px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.banner-label span {
  background: #41654b;
  padding: 3px 7px;
  border-radius: 4px;
  color: #dbe7c7;
  letter-spacing: 0.5px;
}
.match-banner h2 {
  font-size: 23px;
  font-weight: 530;
  letter-spacing: -0.5px;
  margin-bottom: 11px;
}
.event-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 11px;
  color: #c4d4c5;
}
.event-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.event-meta .icon {
  width: 14px;
  height: 14px;
}
.banner-right {
  text-align: right;
  min-width: 180px;
}
.banner-right .btn {
  margin-bottom: 9px;
}
.banner-right p {
  color: #acbfae;
  font-size: 10px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 26px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
}
.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #6a776b;
  font-size: 11px;
  margin-bottom: 10px;
}
.stat-top .icon {
  width: 16px;
  height: 16px;
}
.stat.available .stat-top .icon {
  color: #5a8d68;
}
.stat.unavailable .stat-top .icon {
  color: #bb7972;
}
.stat.maybe .stat-top .icon {
  color: #b3924d;
}
.stat.pending .stat-top .icon {
  color: #919887;
}
.stat-number {
  font-size: 30px;
  font-weight: 580;
  letter-spacing: -1px;
  line-height: 1.1;
}
.stat-footer {
  font-size: 10px;
  color: #939b8d;
  margin-top: 9px;
}
.stat-footer strong {
  color: #6f8c58;
  font-weight: 500;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 282px;
  gap: 22px;
  align-items: start;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
}
.panel-header {
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pill {
  padding: 3px 7px;
  border-radius: 5px;
  background: #f0f3e9;
  color: #7e8d69;
  font-size: 10px;
}
.filters {
  padding: 0 22px 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.tabs {
  display: flex;
  gap: 3px;
  padding: 3px;
  background: #f4f6ef;
  border-radius: 7px;
}
.tabs button {
  border: 0;
  background: transparent;
  font-size: 10px;
  padding: 7px 10px;
  color: #8a9383;
  border-radius: 5px;
}
.tabs button.active {
  background: #fff;
  color: #3f5b43;
  box-shadow: 0 1px 3px #172d1410;
}
.search {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 7px 10px;
  max-width: 200px;
  color: #9aa18e;
}
.search .icon {
  width: 14px;
  height: 14px;
}
.search input {
  border: 0;
  outline: 0;
  font-size: 11px;
  width: 100%;
  min-width: 0;
  background: transparent;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  white-space: nowrap;
  font-size: 11px;
}
th {
  background: #fafbf7;
  text-align: left;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: #929a8b;
  font-weight: 500;
  padding: 12px 20px;
  border-block: 1px solid #edf0e7;
}
td {
  padding: 14px 20px;
  border-bottom: 1px solid #f0f2eb;
  color: #657466;
}
tr:last-child td {
  border-bottom: 0;
}
.player-cell {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #3f5143;
  min-width: 150px;
}
.player-cell .avatar {
  width: 31px;
  height: 31px;
  font-size: 9px;
}
.player-cell strong {
  display: block;
  font-size: 11px;
  font-weight: 550;
}
.player-cell small {
  font-size: 9px;
  color: #9a9f92;
}
.position {
  display: inline-block;
  padding: 3px 6px;
  border: 1px solid #e7ebdf;
  border-radius: 4px;
  background: #fafbf6;
  color: #748165;
  font-size: 9px;
  margin-right: 4px;
}
.position.secondary {
  background: transparent;
  border: 0;
  color: #939b8e;
  padding: 0;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 5px;
  padding: 4px 7px;
  font-size: 9px;
  background: #f2f3ec;
  color: #8a907f;
}
.status:before {
  content: "";
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
}
.status.available {
  background: #edf5ea;
  color: #67885b;
}
.status.unavailable {
  background: #fcf0ed;
  color: #b57d71;
}
.status.maybe {
  background: #faf5e7;
  color: #b39446;
}
.text-button {
  border: 0;
  background: none;
  color: #708662;
  padding: 5px;
  font-size: 10px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.panel-footer {
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: #99a08f;
  display: flex;
  justify-content: space-between;
}
.coverage {
  padding: 21px;
}
.coverage h2 {
  font-size: 14px;
  margin-bottom: 4px;
}
.coverage-sub {
  font-size: 10px;
  color: #939d88;
  margin-bottom: 18px;
}
.coverage-row {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 13px;
  font-size: 10px;
}
.coverage-row .label {
  width: 77px;
  color: #78856f;
}
.coverage-bar {
  flex: 1;
  height: 5px;
  background: #eef2e7;
  border-radius: 3px;
  overflow: hidden;
}
.coverage-bar span {
  display: block;
  height: 100%;
  background: #98b37b;
  border-radius: 3px;
}
.coverage-bar.short span {
  background: #cfa16e;
}
.coverage-row small {
  font-size: 9px;
  color: #7a8b69;
  width: 25px;
  text-align: right;
}
.coverage-alert {
  background: #faf5e9;
  border: 1px solid #eee6d2;
  border-radius: 8px;
  padding: 11px;
  margin-top: 20px;
  font-size: 10px;
  color: #9b835a;
}
.coverage-alert strong {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font-weight: 550;
}
.coverage-alert .icon {
  width: 14px;
  height: 14px;
}
.coverage .btn {
  width: 100%;
  margin-top: 17px;
}
.reminder-card {
  padding: 20px;
  margin-top: 18px;
  background: #eef2e7;
  border: 1px solid #e0e7d7;
  border-radius: 12px;
}
.reminder-card .icon {
  color: #6c8259;
  margin-bottom: 9px;
}
.reminder-card h3 {
  font-size: 12px;
  margin-bottom: 7px;
}
.reminder-card p {
  font-size: 10px;
  color: #8b977f;
  line-height: 1.7;
}
.reminder-setting {
  margin-top: 13px;
  padding-top: 10px;
  border-top: 1px solid #dce4d2;
  font-size: 9px;
  color: #788c65;
  display: flex;
  justify-content: space-between;
}
.view-tabs {
  margin-bottom: 21px;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 25px;
}
.view-tabs button {
  border: 0;
  background: none;
  padding: 0 0 12px;
  color: #8a9480;
  font-size: 12px;
}
.view-tabs button.active {
  color: #34593b;
  border-bottom: 2px solid #416c44;
}
.page-footer {
  margin-top: 25px;
  font-size: 9px;
  color: #9ca28f;
  display: flex;
  justify-content: space-between;
}
.mobile-brand,
.mobile-nav {
  display: none;
}
.roster-tools {
  display: flex;
  gap: 12px;
  align-items: center;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.event-card {
  padding: 24px;
  display: block;
  cursor: pointer;
  transition: box-shadow 0.15s;
}
.event-card:hover {
  box-shadow: 0 5px 20px #253a2710;
}
.event-card .eyebrow {
  font-size: 9px;
}
.event-card h2 {
  font-size: 19px;
  margin-bottom: 16px;
}
.event-card .event-meta {
  color: #7a8974;
  margin-bottom: 18px;
}
.event-card .button-row {
  justify-content: space-between;
}
.empty {
  padding: 50px 25px;
  color: #8a9581;
  text-align: center;
  font-size: 13px;
}
.outbox-item {
  padding: 22px;
  border-bottom: 1px solid var(--line);
}
.outbox-item:last-child {
  border: 0;
}
.outbox-item p {
  font-size: 12px;
  word-break: break-word;
  margin-top: 12px;
  padding: 13px;
  background: #f6f8f1;
  border-radius: 8px;
  color: #77846b;
}
.outbox-item .meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  color: #6b7b61;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px;
  border: 1px solid #dce3d4;
  background: #fff;
  border-radius: 7px;
  color: #344e35;
  min-height: 43px;
}
.field textarea {
  resize: vertical;
  min-height: 80px;
}
.field.full {
  grid-column: 1/-1;
}
.field small,
.help {
  font-size: 10px;
  color: #89977e;
}
.checkboxes {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
}
.check {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #66785a;
}
.check input {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 17px;
  width: min(650px, calc(100% - 30px));
  padding: 0;
  box-shadow: 0 20px 70px #153f332b;
  max-height: 90dvh;
  color: var(--ink);
}
dialog::backdrop {
  background: #102c2288;
  backdrop-filter: blur(3px);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 23px 25px 18px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 {
  font-size: 20px;
}
.modal-head button {
  border: 0;
  background: none;
  color: #79876c;
  padding: 5px;
  font-size: 24px;
  line-height: 1;
}
.modal-body {
  padding: 23px 25px;
  max-height: 65dvh;
  overflow: auto;
}
.modal-footer {
  padding: 17px 25px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.form-error {
  color: #ad5b50;
  font-size: 12px;
  padding-top: 12px;
  grid-column: 1/-1;
}
.notice {
  padding: 13px 15px;
  background: #eef3e7;
  border: 1px solid #dfe7d4;
  border-radius: 8px;
  color: #738762;
  font-size: 11px;
  margin-bottom: 20px;
}
.notice.warning {
  background: #faf4e6;
  color: #9d804d;
  border-color: #eae0c7;
}
.import-panel {
  padding: 25px;
}
.mapping {
  margin-top: 20px;
}
.import-preview {
  margin-top: 22px;
}
.file-drop {
  padding: 35px;
  border: 1px dashed #adbfa0;
  background: #f9fbf5;
  border-radius: 12px;
  text-align: center;
}
.file-drop input {
  max-width: 100%;
  margin-top: 18px;
  color: #667d55;
  font-size: 12px;
}
.file-drop h2 {
  font-size: 18px;
  margin-bottom: 8px;
}
.pitch-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}
.pitch {
  background: #466f4d;
  border-radius: 12px;
  min-height: 530px;
  position: relative;
  padding: 30px 22px;
  overflow: hidden;
  border: 7px solid #557d57;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.pitch:before {
  content: "";
  position: absolute;
  inset: 40px 14px;
  border: 1px solid #bbd3a770;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 85px,
    #9cbc8640 86px,
    #9cbc8640 87px
  );
}
.pitch-row {
  display: flex;
  justify-content: space-around;
  gap: 8px;
  position: relative;
}
.pitch-player {
  text-align: center;
  width: 70px;
  color: #eef6df;
  font-size: 9px;
  min-height: 56px;
}
.jersey {
  margin: 0 auto 5px;
  width: 27px;
  height: 30px;
  display: grid;
  place-items: center;
  background: #e3ebce;
  color: #2d5432;
  font-size: 11px;
  font-weight: 700;
  clip-path: polygon(
    20% 0,
    38% 9%,
    62% 9%,
    80% 0,
    100% 23%,
    80% 40%,
    80% 100%,
    20% 100%,
    20% 40%,
    0 23%
  );
}
.jersey.empty {
  background: #87a678;
  color: #eff5e7;
  padding: 0;
}
.pitch-player small {
  font-size: 8px;
  opacity: 0.7;
  display: block;
}
.lineup-list {
  padding: 10px 20px;
}
.lineup-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid #edf0e7;
}
.number {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  background: #f0f4e7;
  color: #6b8256;
  border-radius: 5px;
  font-size: 10px;
  flex-shrink: 0;
}
.lineup-row .slot-name {
  width: 100px;
  font-size: 10px;
  color: #7c8b70;
}
.lineup-row select {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px;
  min-width: 0;
  flex: 1;
  font-size: 10px;
  color: #556c48;
  background: #fff;
}
.lineup-note {
  font-size: 10px;
  color: #ae8558;
  margin: 0 20px 18px;
}
.login-page {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-brand {
  background: var(--green);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 15%;
  position: relative;
  overflow: hidden;
}
.login-brand:after {
  content: "";
  position: absolute;
  inset: 15% -70% 15% 50%;
  border: 1px solid #71876155;
  border-radius: 50%;
  box-shadow:
    0 0 0 55px #35583f30,
    0 0 0 56px #71876133;
}
.login-brand img {
  width: 70px;
  position: relative;
  z-index: 1;
  margin-bottom: 40px;
}
.login-brand h1 {
  font-size: 52px;
  line-height: 1.1;
  max-width: 380px;
  position: relative;
  z-index: 1;
  font-weight: 500;
}
.login-brand p {
  color: #b7c9b2;
  max-width: 310px;
  margin-top: 20px;
  font-size: 13px;
}
.login-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 45px;
}
.login-form {
  max-width: 360px;
  width: 100%;
}
.login-form h2 {
  font-size: 29px;
  margin-bottom: 8px;
}
.login-form .subtext {
  margin-bottom: 30px;
}
.login-form .field {
  margin-top: 18px;
}
.login-form .btn {
  width: 100%;
  margin-top: 24px;
}
.login-form .notice {
  margin-top: 28px;
  font-size: 10px;
}
.respond-wrap {
  min-height: 100dvh;
  background: var(--green);
  padding: 45px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.respond-wrap > .brand {
  margin-bottom: 30px;
}
.respond-card {
  width: 100%;
  max-width: 480px;
  background: var(--cream);
  border-radius: 18px;
  padding: 30px;
}
.respond-card h1 {
  font-size: 29px;
  margin: 12px 0;
}
.respond-card .event-meta {
  color: #7a896f;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin: 22px 0;
}
.response-buttons {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 25px 0 18px;
}
.response-buttons button {
  border: 1px solid #dbe3d1;
  border-radius: 10px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #5e7951;
  background: #fff;
  font-size: 14px;
  text-align: left;
}
.response-buttons button.selected {
  background: #dfead5;
  border-color: #829b6d;
}
.response-buttons button[data-status="unavailable"] {
  color: #a66c61;
}
.response-buttons button[data-status="maybe"] {
  color: #a18647;
}
.response-confirm {
  color: #4f7c47;
  font-size: 13px;
  text-align: center;
  min-height: 22px;
}
.respond-card .help {
  text-align: center;
  display: block;
}
.respond-notes {
  background: #eef2e6;
  padding: 14px;
  border-radius: 8px;
  color: #758768;
  font-size: 12px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%) translateY(150px);
  background: #183f32;
  color: #f0f6e7;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 12px;
  box-shadow: 0 6px 30px #11331d30;
  z-index: 100;
  transition: transform 0.2s;
  max-width: 90vw;
}
#toast.show {
  transform: translateX(-50%) translateY(0);
}
.error-panel {
  padding: 25px;
  color: #aa6254;
}
.muted {
  color: var(--muted);
}
@media (min-width: 1500px) {
  .main {
    padding-top: 42px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
  table {
    font-size: 12px;
  }
  .player-cell strong {
    font-size: 12px;
  }
  .position,
  .status {
    font-size: 10px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 210px;
    padding-inline: 14px;
  }
  .workspace {
    margin-left: 210px;
    width: calc(100% - 210px);
  }
  .main {
    padding: 28px 26px;
  }
  .topbar {
    padding-inline: 26px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 16px;
  }
  .filters {
    padding-inline: 15px;
    flex-wrap: wrap;
  }
  td,
  th {
    padding-inline: 14px;
  }
  .coverage {
    padding: 18px;
  }
  .coverage-row .label {
    width: 64px;
  }
  .top-meta > .sync {
    display: none;
  }
  .stat {
    padding: 16px;
  }
  .match-banner {
    padding: 23px;
  }
  .pitch-layout {
    grid-template-columns: 1fr;
  }
  .pitch {
    min-height: 440px;
  }
  .pitch-player {
    width: 90px;
  }
}
@media (max-width: 950px) {
  .sidebar {
    width: 180px;
  }
  .workspace {
    margin-left: 180px;
    width: calc(100% - 180px);
  }
  .brand {
    margin-inline: 3px;
  }
  .brand strong {
    font-size: 14px;
  }
  .brand small {
    font-size: 7px;
  }
  .brand img {
    width: 31px;
  }
  .nav button {
    padding-inline: 10px;
    font-size: 12px;
    gap: 9px;
  }
  .club-note {
    font-size: 10px;
    padding: 13px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .reminder-card {
    margin: 0;
  }
  .coverage {
    padding: 20px;
  }
  .page-heading {
    align-items: flex-start;
  }
  h1 {
    font-size: 25px;
  }
  .match-banner h2 {
    font-size: 20px;
  }
  .event-meta {
    gap: 12px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 13px;
  }
  .stat-top {
    font-size: 10px;
  }
  .stat-footer {
    font-size: 9px;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .topbar {
    height: 66px;
  }
  .top-meta {
    gap: 8px;
  }
  .breadcrumb {
    font-size: 10px;
  }
  .team-select {
    max-width: 180px;
  }
}
@media (max-width: 700px) {
  .sidebar {
    display: none;
  }
  .workspace {
    width: 100%;
    margin: 0;
  }
  .topbar {
    height: 70px;
    padding: 0 18px;
  }
  .breadcrumb {
    display: none;
  }
  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 9px;
  }
  .mobile-brand img {
    width: 29px;
    height: 35px;
  }
  .mobile-brand strong {
    font-size: 12px;
    letter-spacing: 1px;
  }
  .mobile-brand small {
    display: block;
    font-size: 8px;
    letter-spacing: 1px;
    color: #8b987d;
  }
  .top-meta {
    margin-left: auto;
  }
  .team-select {
    max-width: 155px;
    font-size: 10px;
    padding: 8px;
  }
  .main {
    padding: 25px 17px 100px;
  }
  .page-heading {
    gap: 12px;
    margin-bottom: 20px;
  }
  .page-heading h1 {
    font-size: 25px;
    max-width: 240px;
  }
  .page-heading .subtext {
    font-size: 11px;
  }
  .page-heading .btn {
    font-size: 10px;
    padding: 8px 10px;
    gap: 5px;
  }
  .page-heading .btn .icon {
    width: 14px;
  }
  .eyebrow {
    font-size: 8px;
  }
  .match-banner {
    padding: 21px;
    display: block;
    margin-bottom: 17px;
  }
  .match-banner h2 {
    font-size: 21px;
  }
  .banner-right {
    text-align: left;
    margin-top: 19px;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .banner-right .btn {
    margin: 0;
  }
  .banner-right p {
    font-size: 9px;
    max-width: 140px;
  }
  .event-meta {
    gap: 9px 15px;
    font-size: 10px;
  }
  .match-banner:after {
    right: -50px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
  }
  .stat {
    padding: 14px 16px;
  }
  .stat-top {
    font-size: 11px;
    margin-bottom: 9px;
  }
  .stat-number {
    font-size: 27px;
  }
  .stat-footer {
    font-size: 9px;
    margin-top: 6px;
  }
  .view-tabs {
    gap: 22px;
    margin-bottom: 18px;
  }
  .view-tabs button {
    font-size: 11px;
  }
  .panel-header {
    padding: 17px 15px;
  }
  .panel-title h2 {
    font-size: 14px;
  }
  .filters {
    padding: 0 15px 15px;
    gap: 12px;
  }
  .tabs button {
    font-size: 9px;
    padding: 7px;
  }
  .search {
    max-width: none;
    flex: 1;
    min-width: 100px;
  }
  .response-table .secondary,
  .response-table .response-time {
    display: none;
  }
  .response-table td,
  .response-table th {
    padding-inline: 12px;
  }
  .response-table .player-cell {
    min-width: 125px;
    gap: 7px;
  }
  .player-cell strong {
    font-size: 10px;
  }
  .player-cell .avatar {
    width: 27px;
    height: 27px;
    font-size: 8px;
  }
  .position {
    font-size: 8px;
  }
  .status {
    font-size: 8px;
  }
  .aside {
    grid-template-columns: 1fr;
  }
  .reminder-card {
    display: none;
  }
  .coverage-row .label {
    width: 110px;
  }
  .coverage-row {
    margin-bottom: 14px;
  }
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    height: calc(65px + env(safe-area-inset-bottom));
    padding: 5px 12px calc(5px + env(safe-area-inset-bottom));
    z-index: 30;
    justify-content: space-around;
    gap: 6px;
  }
  .mobile-nav button {
    border: 0;
    background: none;
    color: #9aa38e;
    font-size: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 48px;
    flex: 1;
  }
  .mobile-nav button.active {
    color: #28513b;
    background: #f0f4e8;
    border-radius: 8px;
  }
  .mobile-nav .icon {
    width: 21px;
    height: 21px;
  }
  .page-footer {
    display: block;
    line-height: 2;
  }
  .page-footer span {
    display: block;
  }
  .roster-tools {
    flex-wrap: wrap;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field.full {
    grid-column: auto;
  }
  .modal-head,
  .modal-body,
  .modal-footer {
    padding-inline: 20px;
  }
  .form-grid {
    gap: 15px;
  }
  .modal-body {
    max-height: 64dvh;
  }
  .pitch-layout {
    gap: 17px;
  }
  .pitch {
    min-height: 420px;
    padding-inline: 10px;
  }
  .pitch-player {
    width: 55px;
    font-size: 8px;
  }
  .pitch-player small {
    font-size: 7px;
  }
  .lineup-row .slot-name {
    width: 85px;
    font-size: 9px;
  }
  .lineup-list {
    padding-inline: 13px;
  }
  .lineup-row {
    gap: 8px;
  }
  .lineup-row select {
    font-size: 10px;
    padding: 8px 4px;
  }
  .login-page {
    grid-template-columns: 1fr;
  }
  .login-brand {
    padding: 27px 30px;
    min-height: 260px;
  }
  .login-brand img {
    width: 42px;
    margin-bottom: 18px;
  }
  .login-brand h1 {
    font-size: 35px;
    max-width: 330px;
  }
  .login-brand p {
    font-size: 11px;
    margin-top: 12px;
  }
  .login-main {
    padding: 30px 25px 50px;
  }
  .login-form h2 {
    font-size: 24px;
  }
  .respond-wrap {
    padding-top: 30px;
  }
  .respond-card {
    padding: 25px 22px;
  }
  .respond-card h1 {
    font-size: 26px;
  }
  #toast {
    bottom: 90px;
  }
  .import-panel {
    padding: 19px;
  }
  .file-drop {
    padding: 24px 15px;
  }
}

.account-button {
  border: 0;
  cursor: pointer;
}
/* Keep wide roster tables inside their own scroll area on small screens. */
.panel,
.main {
  min-width: 0;
}
@media (max-width: 950px) {
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 700px) {
  .main > .panel-header {
    padding: 0;
    display: block;
  }
  .main > .panel-header > .button-row {
    justify-content: space-between;
    margin-bottom: 18px;
  }
  .main > .panel-header > .view-tabs {
    margin-bottom: 14px;
  }
  .main > .panel-header .team-select {
    max-width: 250px;
    flex: 1;
  }
  .main > .panel-header .button-row {
    flex-wrap: nowrap;
  }
}
/* Mobile release: prevent Safari focus zoom and contain every flex/grid child. */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html,
body,
#app {
  width: 100%;
  min-width: 0;
}
.workspace,
.shell,
.login-main,
.login-form,
.panel-header > * {
  min-width: 0;
}
img,
svg {
  max-width: 100%;
}
input,
select,
textarea {
  max-width: 100%;
}
.message-preview {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 16px;
  background: #f0f4e9;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin: 15px 0;
  color: var(--ink);
  font-size: 14px;
}
.registration {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  background: #fbefe6;
  color: #986e4e;
  font-size: 11px;
}
.registration.active {
  background: #e7f3e4;
  color: #4c7d47;
}
@media (max-width: 700px) {
  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea,
  .field input,
  .field select,
  .field textarea,
  .search input,
  .team-select,
  .lineup-row select {
    font-size: 16px;
  }
  input:not([type="checkbox"]):not([type="radio"]),
  select,
  .btn {
    min-height: 44px;
  }
  body {
    font-size: 15px;
  }
  .login-page {
    display: block;
    min-height: 100dvh;
  }
  .login-brand {
    padding: 28px 24px;
    min-height: 0;
  }
  .login-brand h1 {
    font-size: 30px;
  }
  .login-brand img {
    width: 36px;
    margin-bottom: 12px;
  }
  .login-brand p {
    font-size: 13px;
  }
  .login-main {
    display: block;
    width: 100%;
    padding: 28px 22px 45px;
  }
  .login-form {
    width: 100%;
    max-width: 440px;
    margin: auto;
  }
  .login-form .field {
    font-size: 14px;
  }
  .login-form .subtext {
    font-size: 14px;
  }
  .login-form input {
    padding: 13px;
  }
  .login-form .btn {
    font-size: 16px;
  }
  .shell,
  .workspace,
  .main {
    max-width: 100%;
  }
  .main {
    width: 100%;
    padding: 22px 16px calc(95px + env(safe-area-inset-bottom));
  }
  .topbar {
    height: auto;
    min-height: 72px;
    gap: 8px;
    flex-wrap: wrap;
    padding: 12px 16px;
  }
  .top-meta {
    min-width: 0;
    max-width: 55%;
  }
  .top-meta .team-select {
    width: 100%;
    max-width: 100%;
    font-size: 16px;
  }
  .page-heading {
    display: block;
  }
  .page-heading h1 {
    font-size: 27px;
    max-width: none;
  }
  .page-heading .subtext {
    font-size: 14px;
  }
  .page-heading > .btn,
  .page-heading > .button-row {
    margin-top: 16px;
  }
  .page-heading .btn {
    font-size: 13px;
    padding: 10px 13px;
  }
  .match-banner {
    width: 100%;
    max-width: 100%;
    padding: 20px;
  }
  .match-banner h2 {
    font-size: 23px;
    overflow-wrap: anywhere;
  }
  .banner-label {
    flex-wrap: wrap;
    letter-spacing: 1px;
  }
  .banner-label span {
    max-width: 100%;
    white-space: normal;
  }
  .event-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 13px;
    gap: 10px;
  }
  .event-meta span {
    white-space: normal;
    overflow-wrap: anywhere;
    max-width: 100%;
  }
  .banner-right {
    display: block;
    min-width: 0;
  }
  .banner-right .btn {
    width: 100%;
    font-size: 14px;
  }
  .banner-right p {
    max-width: none;
    font-size: 12px;
    margin-top: 10px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat {
    min-width: 0;
    padding: 16px;
  }
  .stat-top {
    font-size: 13px;
  }
  .stat-footer {
    font-size: 11px;
    white-space: normal;
  }
  .stat-number {
    font-size: 31px;
  }
  .view-tabs {
    gap: 18px;
  }
  .view-tabs button {
    font-size: 14px;
    min-height: 44px;
  }
  .main > .panel-header > .button-row {
    flex-wrap: wrap;
  }
  .main > .panel-header .team-select {
    max-width: 100%;
    min-width: 0;
    width: 100%;
    flex: 1 1 190px;
  }
  .panel-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .filters {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .tabs {
    justify-content: space-between;
  }
  .tabs button {
    font-size: 12px;
    min-height: 40px;
  }
  .search {
    max-width: none;
    width: 100%;
    padding: 4px 10px;
  }
  .roster-tools {
    width: 100%;
  }
  .roster-tools .team-select {
    max-width: none;
    width: 100%;
  }
  .player-table,
  .player-table tbody,
  .player-table tr,
  .response-table,
  .response-table tbody,
  .response-table tr {
    display: block;
    width: 100%;
    white-space: normal;
  }
  .player-table thead,
  .response-table thead {
    display: none;
  }
  .player-table tbody tr,
  .response-table tbody tr {
    padding: 16px;
    border-bottom: 1px solid var(--line);
  }
  .player-table td,
  .response-table td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border: 0;
    font-size: 13px;
    overflow-wrap: anywhere;
  }
  .player-table td:before,
  .response-table td:before {
    content: attr(data-label);
    font-size: 11px;
    color: #929c88;
    flex: 0 0 80px;
  }
  .player-table td:first-child,
  .response-table td:first-child {
    display: block;
    padding-bottom: 12px;
  }
  .player-table td:first-child:before,
  .response-table td:first-child:before,
  .player-table td:last-child:before,
  .response-table td:last-child:before {
    display: none;
  }
  .player-cell strong,
  .response-table .player-cell strong {
    font-size: 16px;
  }
  .player-cell small {
    font-size: 11px;
  }
  .player-cell .avatar,
  .response-table .player-cell .avatar {
    width: 36px;
    height: 36px;
    font-size: 12px;
  }
  .position,
  .status {
    font-size: 12px;
  }
  .text-button {
    min-width: 44px;
    min-height: 44px;
  }
  .player-table td:last-child,
  .response-table td:last-child {
    justify-content: flex-end;
  }
  .response-table .response-time {
    display: none;
  }
  .panel-footer {
    display: block;
    font-size: 11px;
  }
  .panel-footer span {
    display: block;
  }
  .coverage h2 {
    font-size: 17px;
  }
  .coverage-sub,
  .coverage-row,
  .coverage-row small,
  .coverage-alert {
    font-size: 12px;
  }
  .coverage-row .label {
    width: 110px;
  }
  .mobile-nav button {
    font-size: 10px;
  }
  dialog {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);
  }
  .modal-head h2 {
    font-size: 19px;
  }
  .modal-body {
    max-height: calc(100dvh - 160px);
    padding: 20px;
  }
  .field {
    font-size: 13px;
  }
  .field small,
  .help,
  .notice {
    font-size: 12px;
  }
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .checkboxes {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .check {
    font-size: 14px;
    min-height: 30px;
  }
  .modal-footer {
    padding: 16px 0;
    flex-wrap: wrap;
  }
  .modal-footer .btn {
    font-size: 14px;
    flex: 1;
  }
  .import-panel {
    padding: 18px;
  }
  .outbox-item .meta {
    flex-wrap: wrap;
    font-size: 13px;
  }
  .outbox-item p {
    font-size: 14px;
  }
  .lineup-row {
    flex-wrap: wrap;
  }
  .lineup-row .slot-name {
    flex: 1;
    font-size: 12px;
  }
  .lineup-row select {
    flex: 1 1 100%;
    width: 100%;
    margin-bottom: 6px;
  }
  .respond-card {
    width: 100%;
    min-width: 0;
  }
  .respond-card .event-meta {
    font-size: 14px;
  }
}

/* Official club identity and team selection */
.brand img { width:72px; height:72px; object-fit:contain; background:#fff; border-radius:10px; flex-shrink:0; }
.brand { gap:9px; margin-inline:0; }
.brand strong { font-size:15px; }
.brand small { font-size:8px; }
.login-brand img { width:190px; height:190px; object-fit:contain; background:white; border-radius:18px; margin-bottom:28px; }
.mobile-brand img { width:52px; height:52px; object-fit:contain; background:#fff; border-radius:8px; }
.team-picks { border:1px solid var(--border,#dfe4da); border-radius:14px; padding:16px; min-width:0; }
.team-picks legend { padding:0 6px; font-weight:700; }
.team-picks .select-all { border-bottom:1px solid #dfe4da; padding-bottom:12px; margin-bottom:12px; }
.team-picks .check { min-height:44px; }
.team-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr)); gap:20px; }
.team-card { padding:24px; display:flex; flex-direction:column; justify-content:space-between; gap:16px; }
.team-card h2 { margin-top:14px; overflow-wrap:anywhere; }
@media(max-width:700px) { .login-brand img { width:110px; height:110px; } .brand img {width:64px;height:64px;} .team-card .button-row {flex-wrap:wrap;} }

.team-picks input[type="checkbox"] { width:18px; height:18px; min-height:18px; padding:0; flex:0 0 18px; }
