:root {
  --ink: #1c2430;
  --muted: #596273;
  --line: #d9dee7;
  --surface: #ffffff;
  --surface-soft: #f4f6f8;
  --accent: #1e5f55;
  --accent-soft: #dff0eb;
  --page: #eef1f4;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--page);
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 92% 2%, rgb(30 95 85 / 10%), transparent 28rem),
    var(--page);
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 8px;
  left: 8px;
  padding: 9px 12px;
  color: #fff;
  background: var(--accent);
  border-radius: 6px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  color: #fff;
  background: #16201f;
  border-bottom: 3px solid var(--accent);
}

.site-header__inner,
.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding-block: 8px;
  gap: 24px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.account-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 14px;
}

.account-nav form {
  margin: 0;
}

.account-nav button {
  min-height: 44px;
  padding: 6px 9px;
  color: #dce5e3;
  background: transparent;
  border: 1px solid #52615f;
  border-radius: 6px;
  font: inherit;
  font-size: 0.76rem;
  cursor: pointer;
}

.account-nav button:hover {
  color: #fff;
  border-color: #91a19e;
}

.account-nav > a {
  color: #dce5e3;
  font-size: 0.84rem;
  font-weight: 750;
  text-decoration: none;
}

.account-nav > a:hover,
.account-nav > a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.signed-in {
  color: #bdc9c7;
  font-size: 0.85rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.65rem 1rem;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 7px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: #174d45;
}

.button--secondary {
  color: var(--ink);
  background: #e5e9ed;
}

.button--secondary:hover {
  background: #d9dee3;
}

.button[disabled] {
  cursor: not-allowed;
  opacity: 0.5;
}

.button--compact {
  min-height: 34px;
  padding: 0.42rem 0.7rem;
  font-size: 0.76rem;
}

.button-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.page-shell {
  padding-block: 34px 64px;
}

.breadcrumb {
  display: flex;
  gap: 9px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.season-code {
  margin: 9px 0 0;
  color: var(--muted);
}

.view-switcher {
  display: inline-flex;
  padding: 4px;
  background: #dde2e7;
  border-radius: 9px;
}

.view-switcher a {
  padding: 8px 13px;
  color: #46505d;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.view-switcher a[aria-current="page"] {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 1px 3px rgb(28 36 48 / 14%);
}

.line-plan-actions {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 0.7rem;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 30px 0 20px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.summary-strip > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px 20px;
}

.summary-strip > div + div {
  border-left: 1px solid var(--line);
}

.summary-strip__label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.table-frame {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgb(28 36 48 / 5%);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 15px 17px;
  border-bottom: 1px solid #e8ebef;
  text-align: left;
  white-space: nowrap;
}

thead th {
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

tbody th {
  font-size: 0.92rem;
}

tbody td {
  color: #4e5968;
  font-size: 0.87rem;
}

tbody tr:last-child > * {
  border-bottom: 0;
}

.style-number {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-weight: 720;
}

.stage-badge {
  display: inline-flex;
  padding: 5px 9px;
  color: #194d45;
  background: var(--accent-soft);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 750;
}

.style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.style-card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgb(28 36 48 / 4%);
}

.style-card__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.style-card h2 {
  min-height: 2.6em;
  margin: 22px 0;
  font-size: 1.2rem;
  line-height: 1.3;
}

.style-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.style-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid #e8ebef;
}

.style-card dt,
.style-card dd {
  margin: 0;
  font-size: 0.8rem;
}

.style-card dt {
  color: var(--muted);
}

.style-card dd {
  font-weight: 680;
  text-align: right;
}

.empty-state {
  padding: 72px 24px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed #bdc5cf;
  border-radius: 12px;
}

.empty-state--spaced {
  margin-top: 2rem;
}

.empty-state__mark {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 50%;
  place-items: center;
  font-weight: 800;
}

.empty-state h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 680px) {
  .site-header__inner,
  .page-shell {
    width: min(100% - 24px, 1180px);
  }

  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .account-nav {
    justify-content: flex-start;
    padding-bottom: 6px;
  }

  .signed-in {
    display: none;
  }

  .page-heading {
    align-items: start;
    flex-direction: column;
  }

  .line-plan-actions {
    align-items: stretch;
    width: 100%;
  }

  .summary-strip {
    grid-template-columns: 1fr;
  }

  .summary-strip > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

.record-filter {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) minmax(150px, 1fr) minmax(150px, 1fr) auto auto;
  align-items: end;
  gap: .85rem;
  margin-bottom: 1.25rem;
}

.record-filter > div {
  display: grid;
  gap: .35rem;
}

.record-filter label {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.record-filter input,
.record-filter select {
  width: 100%;
  min-height: 42px;
  padding: .55rem .65rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  font: inherit;
}

.record-browser {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.record-client__heading,
.record-season summary,
.record-style {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.record-client__heading h2 {
  margin-bottom: 0;
}

.record-season {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
}

.record-season summary {
  padding: 1rem 0;
  cursor: pointer;
}

.record-season summary > span:last-child {
  color: var(--muted);
  font-size: .82rem;
}

.record-season__actions {
  margin: -.25rem 0 .75rem;
  text-align: right;
}

.record-style-list {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.record-style {
  padding: .8rem;
  color: var(--ink);
  text-decoration: none;
}

.record-style + .record-style {
  border-top: 1px solid var(--line);
}

.record-style:hover {
  background: var(--surface);
}

.record-style > span {
  display: flex;
  align-items: center;
  gap: .65rem;
}

.record-style small {
  color: var(--muted);
}

.readiness-list {
  display: grid;
  gap: .65rem;
}

.readiness-gate {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.readiness-gate > span {
  display: grid;
  flex: 0 0 1.6rem;
  width: 1.6rem;
  height: 1.6rem;
  place-items: center;
  border-radius: 50%;
  font-weight: 800;
}

.readiness-gate--passed > span {
  color: #135c35;
  background: #dff5e8;
}

.readiness-gate--missing > span {
  color: #8b3e00;
  background: #fff0da;
}

.readiness-gate p {
  margin: .2rem 0 0;
  color: var(--muted);
}

.style-card__preview {
  display: block;
  width: 100%;
  height: 220px;
  margin-bottom: .9rem;
  object-fit: contain;
  background: #f7f7f4;
  border-radius: 7px;
}

.style-card__preview-link {
  display: block;
  text-decoration: none;
}

.style-card__preview--empty {
  display: grid;
  color: #78938d;
  background: linear-gradient(135deg, #edf5f3, #f8faf9);
  border: 1px dashed #b9c9c5;
  place-items: center;
  font-size: 2.4rem;
}

.readiness-burndown table {
  min-width: 1320px;
}

.readiness-burndown th:not(:first-child),
.readiness-burndown td:not(:first-child) {
  max-width: 130px;
  text-align: center;
  white-space: normal;
}

.readiness-burndown tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 190px;
  background: #fff;
}

.readiness-mark {
  display: inline-grid;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  place-items: center;
  font-weight: 850;
}

.readiness-mark--passed {
  color: #135c35;
  background: #dff5e8;
}

.readiness-mark--missing {
  color: #8b3e00;
  background: #fff0da;
}

.client-directory {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 1rem;
}

.client-directory-card h2 {
  margin: 0;
}

.client-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 1rem 0 0;
}

.client-metrics div {
  padding: 0.65rem;
  text-align: center;
  background: var(--surface-soft);
  border-radius: 8px;
}

.client-metrics dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
  text-transform: uppercase;
}

.client-metrics dd {
  margin: 0.25rem 0 0;
  font-size: 1.15rem;
  font-weight: 800;
}

.client-default-summary {
  margin: 1rem 0 0;
  line-height: 1.5;
}

.line-plan-thumb {
  width: 52px;
  height: 52px;
  margin-right: .55rem;
  object-fit: contain;
  vertical-align: middle;
}

.variant-add-toolbar {
  display: grid;
  gap: .65rem;
}

.variant-add-form {
  display: grid;
  grid-template-columns: minmax(170px, .6fr) minmax(0, 2fr);
  gap: .9rem;
  align-items: end;
  min-width: 0;
  padding: .8rem 1rem;
}

.variant-add-form__intro h3,
.variant-add-form__intro p {
  margin: 0;
}

.variant-add-form__intro p {
  margin-top: .2rem;
  font-size: .78rem;
}

.variant-add-form__controls {
  display: grid;
  gap: .5rem;
  align-items: end;
  min-width: 0;
}

.variant-add-form--color .variant-add-form__controls {
  grid-template-columns: repeat(3, minmax(100px, 1fr)) auto;
}

.variant-add-form--size .variant-add-form__controls {
  grid-template-columns: repeat(2, minmax(120px, 1fr)) auto;
}

.variant-add-form .form-field {
  min-width: 0;
  gap: .2rem;
}

.variant-add-form .form-field label {
  font-size: .75rem;
}

.variant-add-form .form-field input,
.variant-add-form .form-field select {
  min-width: 0;
  min-height: 36px;
  padding: .38rem .55rem;
  font-size: .84rem;
}

.variant-add-form .button {
  white-space: nowrap;
}

.compact-form {
  display: grid;
  grid-template-columns: minmax(180px, 1.3fr) repeat(3, minmax(120px, 1fr)) auto;
  gap: .75rem;
  align-items: end;
}

.compact-form h3,
.compact-form p {
  margin: 0;
}

.payment-schedule-table .compact-form {
  grid-template-columns: minmax(150px, 1fr);
  min-width: 190px;
}

.payment-schedule-table .compact-form label {
  font-size: .8rem;
  font-weight: 700;
}

.compact-toolbar {
  display: flex;
  gap: 1rem;
  align-items: end;
  justify-content: space-between;
}

.compact-toolbar .form-field {
  min-width: 220px;
}

@media (max-width: 760px) {
  .compact-form {
    grid-template-columns: 1fr;
  }

  .variant-add-form,
  .variant-add-form--color .variant-add-form__controls,
  .variant-add-form--size .variant-add-form__controls {
    grid-template-columns: 1fr;
  }

  .variant-add-form .button {
    width: 100%;
  }

  .compact-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .record-filter {
    grid-template-columns: 1fr;
  }

  .record-client__heading,
  .record-season summary,
  .record-style {
    align-items: flex-start;
    flex-direction: column;
  }

  .record-style > span:last-child {
    justify-content: space-between;
    width: 100%;
  }
}

@media (min-width: 761px) and (max-width: 1050px) {
  .variant-add-form {
    grid-template-columns: 1fr;
  }
}
