:root {
  color: #17332d;
  background: #f4f8f6;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button {
  border: 0;
  border-radius: 0.55rem;
  padding: 0.7rem 1rem;
  color: white;
  background: #24755f;
  cursor: pointer;
  font: inherit;
  font-weight: 650;
}

.app-shell {
  min-height: 100vh;
}

.app-header {
  padding: 3rem max(1.5rem, calc((100vw - 68rem) / 2));
  color: white;
  background: #174f43;
}

.app-header h1 {
  margin: 0.2rem 0 0.6rem;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.app-header p {
  max-width: 42rem;
  margin-bottom: 0;
}

.eyebrow {
  margin: 0;
  color: #a9dfd0;
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.app-content {
  width: min(68rem, calc(100% - 3rem));
  margin: 0 auto;
  padding: 2rem 0;
}

.tab-container {
  margin-top: 1.5rem;
}

.session-selector {
  margin: 1rem 0;
}

.session-table {
  margin-bottom: 1rem;
}

.session-detail {
  margin: 1rem 0;
  padding: 1rem;
  border-left: 0.3rem solid #24755f;
  background: #f4f8f6;
}

.session-detail h3 {
  margin-top: 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1rem;
}

.detail-grid div {
  display: grid;
  grid-template-columns: 7rem 1fr;
}

.detail-grid dt {
  font-weight: 700;
}

.detail-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.download-link {
  color: #17634f;
  font-weight: 700;
}

.panel {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  border: 1px solid #d7e4df;
  border-radius: 0.8rem;
  background: white;
  box-shadow: 0 0.6rem 1.8rem rgb(23 51 45 / 8%);
}

.status-card {
  max-width: 36rem;
}

.status-card h2 {
  margin-top: 0;
}

.api-url {
  overflow-wrap: anywhere;
  color: #577069;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.status-message {
  min-height: 1.5rem;
  margin-top: 1rem;
  color: #577069;
}

.status-ok {
  color: #16704f;
}

.status-error {
  color: #a33a3a;
}

.section-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.section-heading h2 {
  margin-top: 0.2rem;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.dark {
  color: #24755f;
}

.button-secondary {
  border: 1px solid #92b8ad;
  color: #174f43;
  background: white;
}

.button-danger {
  border: 1px solid #d8a0a0;
  color: #8c2929;
  background: #fff7f7;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.racket-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0.8rem;
}

.form-grid input,
.form-grid textarea,
.form-grid .Select-control {
  min-height: 2.55rem;
}

.form-grid > * {
  min-width: 0;
}

.form-grid input {
  width: 100%;
  border: 1px solid #cadbd5;
  border-radius: 0.45rem;
  padding: 0.6rem 0.7rem;
  font: inherit;
}

.form-grid textarea {
  width: 100%;
  min-height: 4rem;
  border: 1px solid #cadbd5;
  border-radius: 0.45rem;
  padding: 0.6rem 0.7rem;
  font: inherit;
  resize: vertical;
}

.upload-control {
  min-height: 2.55rem;
  border: 1px dashed #92b8ad;
  border-radius: 0.45rem;
  background: #f8fbfa;
  cursor: pointer;
}

.upload-label {
  padding: 0.65rem 0.7rem;
  color: #174f43;
  text-align: center;
}

.form-feedback {
  min-height: 1.5rem;
  margin-bottom: 0.8rem;
  color: #24755f;
}

.table-wrapper {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table th,
.data-table td {
  padding: 0.7rem;
  border-bottom: 1px solid #dce7e3;
  text-align: left;
  white-space: nowrap;
}

.data-table th {
  color: #365b51;
  background: #f3f8f6;
}

.empty-cell {
  color: #6b7e78;
  text-align: center !important;
}

@media (max-width: 850px) {
  .form-grid,
  .racket-form,
  .detail-grid {
    grid-template-columns: 1fr;
  }
}
