:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #24251f;
  background: #f8f9f5;
  font-synthesis: none;
  --accent: #34643d;
  --muted: #70766b;
  --line: #dde2d7;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 1px solid #ccd4c6;
  background: transparent;
  border-radius: 6px;
  min-height: 40px;
  padding: 8px 14px;
  color: #33482f;
  transition:
    background 0.15s,
    border-color 0.15s;
}
button:hover:not(:disabled) {
  background: #e7eddf;
  border-color: #a3b497;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid #6e9460;
  outline-offset: 4px;
}
.primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.primary:hover:not(:disabled) {
  background: #294f30;
  color: white;
}
.text-button {
  border-color: transparent;
  color: var(--muted);
}
input {
  border: 1px solid #ccd4c6;
  border-radius: 6px;
  background: #fff;
  padding: 12px;
  min-height: 44px;
  color: #24251f;
}
.app-header {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: auto;
  padding: 0 48px;
}
.brand {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -1.2px;
  text-decoration: none;
}
.brand span {
  font-weight: 400;
  color: var(--accent);
}
.workspace {
  max-width: 1280px;
  margin: 36px auto;
  padding: 0 48px 48px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 650;
  color: var(--muted);
  margin: 0 0 12px;
}
h1 {
  font-size: 48px;
  letter-spacing: -2px;
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
}
h2 {
  font-size: 18px;
  font-weight: 550;
  margin: 0;
}
h3 {
  font-size: 13px;
  font-weight: 550;
  color: var(--muted);
  margin: 0;
  padding: 22px 0 10px;
}
.worker-status {
  font-size: 13px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.status-dot.paused {
  background: #9b7c40;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.view-tabs {
  display: flex;
  gap: 24px;
}
.view-tabs button {
  padding: 14px 0;
  border: none;
  border-radius: 0;
  color: var(--muted);
  font-size: 14px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.view-tabs button.active {
  color: #273a23;
  border-bottom-color: var(--accent);
  font-weight: 600;
}
.view-tabs button:hover {
  background: transparent;
  color: var(--accent);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 30px 0 14px;
}
.muted {
  color: var(--muted);
  font-size: 13px;
}
.class-row,
.rule-row {
  display: grid;
  grid-template-columns: 115px 1fr 180px auto;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.rule-row {
  grid-template-columns: 115px 1fr auto;
}
.class-time {
  font-size: 14px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}
.class-time small,
.class-info span,
.class-info small,
.job-detail small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.45;
}
.class-info strong {
  font-size: 16px;
  font-weight: 550;
}
.class-info small {
  color: #6a735f;
}
.booking-status {
  font-size: 13px;
  color: var(--accent);
}
.row-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}
.row-actions button {
  font-size: 12px;
  white-space: nowrap;
}
.empty {
  padding: 56px 0;
  color: var(--muted);
  font-size: 14px;
}
.week-picker {
  display: flex;
  align-items: center;
  gap: 14px;
}
.week-picker button {
  font-size: 18px;
  padding: 4px 12px;
}
.search {
  font-size: 13px;
  width: 210px;
  min-height: 40px;
}
.jobs-heading {
  margin-top: 56px;
}
.job-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.job-detail small {
  max-width: 420px;
}
.activity {
  margin-top: 40px;
  font-size: 13px;
  color: var(--muted);
}
summary {
  cursor: pointer;
  padding: 12px 0;
  color: #3b4935;
}
.activity time {
  display: inline-block;
  min-width: 135px;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}
.sync-status {
  margin-top: 32px;
  font-size: 11px;
  color: var(--muted);
}
.alert {
  background: #f1eedf;
  border-left: 3px solid #a28b4e;
  padding: 14px 18px;
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 24px;
}
.alert a {
  font-weight: 600;
  margin-left: 6px;
}
.confirm {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  background: #f1eedf;
  padding: 16px;
  font-size: 13px;
}
.confirm span {
  margin-right: auto;
}
.login-layout {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px 24px;
}
.signin {
  width: min(100%, 360px);
  padding: 40px 0;
}
.signin .brand {
  display: inline-block;
  margin-bottom: 64px;
}
.signin h1 {
  font-size: 32px;
  letter-spacing: -1px;
}
.signin p {
  margin: 18px 0 30px;
}
.signin form {
  display: grid;
  gap: 10px;
}
.signin label {
  font-size: 13px;
  margin-top: 10px;
}
.signin button {
  margin-top: 18px;
  height: 46px;
}
#blazor-error-ui {
  display: none;
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #f1eedf;
  padding: 16px;
  z-index: 1000;
}
#blazor-error-ui .dismiss {
  float: right;
  min-height: 24px;
  padding: 0 8px;
}
.validation-message {
  color: #934e36;
}
@media (max-width: 800px) {
  .app-header {
    padding: 0 24px;
    height: 72px;
  }
  .workspace {
    margin: 28px auto;
    padding: 0 24px 32px;
  }
  h1 {
    font-size: 38px;
  }
  .page-heading {
    margin-bottom: 30px;
    align-items: flex-end;
  }
  .worker-status {
    font-size: 11px;
  }
  .view-tabs {
    gap: 20px;
  }
  .view-tabs button {
    font-size: 12px;
  }
  .class-row {
    grid-template-columns: 85px 1fr auto;
    gap: 12px;
  }
  .class-row .availability {
    grid-column: 2;
    font-size: 11px;
  }
  .class-row .row-actions {
    grid-column: 3;
    grid-row: 1 / span 2;
    flex-direction: column;
    align-items: flex-end;
  }
  .class-row:has(.row-actions) {
    align-items: start;
  }
  .class-row:has(.availability) {
    row-gap: 0;
  }
  .class-row > .booking-status {
    grid-column: 2;
    grid-row: 2;
  }
  .class-row > .text-button {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
  .rule-row {
    grid-template-columns: 85px 1fr;
    gap: 12px;
  }
  .rule-row .row-actions {
    grid-column: 2;
  }
  .job-row {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }
  .job-detail {
    grid-column: 1;
    grid-row: 2;
  }
  .job-row > button {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
  .class-info strong {
    font-size: 14px;
  }
  .class-time {
    font-size: 12px;
  }
  .wrap {
    flex-wrap: wrap;
  }
  .search {
    width: 100%;
  }
  .section-heading h2 {
    font-size: 16px;
  }
  .toolbar > .text-button {
    font-size: 11px;
    padding: 8px 2px;
  }
  .activity time {
    display: block;
  }
  .confirm {
    justify-content: flex-start;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
