:root {
  --bg: #020206;
  --surface: #05060d;
  --panel: #0c0e18;
  --panel-soft: #141827;
  --ink: #f8fbff;
  --muted: #a9b4c8;
  --line: rgba(186, 225, 255, 0.16);
  --line-strong: rgba(255, 55, 178, 0.3);
  --green: #9bdcff;
  --green-dark: #bceaff;
  --blue: #8fd8ff;
  --amber: #f7c6ff;
  --pink: #ff37b2;
  --purple: #ff73d2;
  --red: #ff5f8f;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.58), 0 0 34px rgba(255, 55, 178, 0.12);
}

* { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(155, 220, 255, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 55, 178, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, rgba(255, 55, 178, 0.18), transparent 34%),
    linear-gradient(225deg, rgba(155, 220, 255, 0.14), transparent 32%),
    var(--surface);
  background-size: 32px 32px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--green);
  color: #03040a;
  cursor: pointer;
  font-weight: 750;
}

button:hover { filter: brightness(1.04); }

button:disabled,
.icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  filter: none;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(255, 55, 178, 0.28);
  outline-offset: 2px;
}

button.secondary,
.icon-button.secondary {
  background: var(--panel);
  color: var(--ink);
  border-color: var(--line);
}

button.danger,
.icon-button.danger {
  background: var(--panel);
  color: var(--red);
  border-color: rgba(161, 58, 51, 0.35);
}

button.primary { background: var(--green); }

button svg,
.icon-button svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.app-shell {
  width: min(1480px, calc(100% - 32px));
  margin: 24px auto 48px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px 0 20px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: 1.3rem; }

.top-actions,
.toolbar-actions,
.row-actions,
.panel-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.panel-heading { justify-content: space-between; }

.view-tabs {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 6, 13, 0.94);
  backdrop-filter: blur(12px);
}

.view-tabs button {
  background: transparent;
  color: var(--muted);
  border-color: transparent;
}

.view-tabs button.active {
  background: linear-gradient(90deg, var(--pink), var(--blue));
  color: #03040a;
}

.design-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.design-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.design-card {
  min-width: 0;
  background: rgba(12, 14, 24, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 16px;
}

.design-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.design-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.design-table-wrap { overflow-x: auto; }

.design-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  min-width: 650px;
}

.design-table th,
.design-table td {
  padding: 7px 6px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.design-table th {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-align: left;
  text-transform: uppercase;
}

.design-table th:nth-child(1) { width: 34%; }
.design-table th:nth-child(2),
.design-table th:nth-child(3),
.design-table th:nth-child(4) { width: 13%; }
.design-table th:nth-child(6) { width: 46px; }

.icon-button {
  width: 42px;
  height: 42px;
  padding: 0;
  flex: 0 0 auto;
}

.file-label {
  position: relative;
  overflow: hidden;
}

.file-label input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.layout { display: block; }

.app-view { display: none; }

.app-view.active { display: grid; }

.sidebar {
  display: grid;
  gap: 18px;
  max-width: 920px;
  margin: 0 auto;
}

.panel,
.workout-page {
  background: rgba(12, 14, 24, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel { padding: 16px; }

.panel-copy {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.9rem;
}

.quote-panel {
  background:
    linear-gradient(135deg, rgba(12, 14, 24, 0.96), rgba(2, 2, 6, 0.94)),
    linear-gradient(90deg, rgba(255, 55, 178, 0.14), rgba(155, 220, 255, 0.1));
}

.quote-text {
  margin: 16px 0 0;
  color: var(--ink);
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  font-weight: 850;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.quote-text::before {
  content: "“";
  color: var(--pink);
}

.quote-text::after {
  content: "”";
  color: var(--blue);
}

.quote-author {
  margin: 12px 0 0;
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lift-inputs {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.field input,
.field select,
.field textarea,
.table-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(2, 2, 6, 0.72);
  color: var(--ink);
  padding: 9px 10px;
}

.field textarea { resize: vertical; }

.lift-row {
  display: grid;
  grid-template-columns: minmax(95px, 1fr) 92px 84px;
  gap: 8px;
  align-items: end;
}

.lift-row strong {
  font-size: 0.92rem;
  line-height: 1.2;
}

.lift-row small {
  color: var(--muted);
  font-weight: 750;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 14px;
}

.segmented button {
  border-radius: 0;
  border: 0;
  background: var(--panel);
  color: var(--muted);
}

.segmented button.active {
  background: linear-gradient(90deg, var(--pink), var(--blue));
  color: #03040a;
}

.full {
  width: 100%;
  margin-top: 14px;
}

.sync-box {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.sync-box[hidden] {
  display: none;
}

.code-sync-box {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.code-sync-box[hidden] {
  display: none;
}

.code-sync-box input {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.sync-user {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.sync-message {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.cycle-actions {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.cycle-actions .full {
  margin-top: 0;
}

.progression-preview {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.progression-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: baseline;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: var(--panel-soft);
}

.progression-row strong {
  font-size: 0.9rem;
}

.progression-row span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.cycle-nav {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.week-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  overflow: hidden;
}

.week-block h3 {
  margin: 0;
  padding: 10px 12px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.day-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.day-button {
  justify-content: flex-start;
  min-height: 46px;
  padding: 9px 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 750;
}

.day-button:nth-child(odd) { border-right: 1px solid var(--line); }
.day-button:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

.day-button.active {
  background: linear-gradient(90deg, var(--pink), var(--blue));
  color: #03040a;
}

.day-button.complete::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.75;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 55, 178, 0.12);
  color: var(--green-dark);
  border: 1px solid rgba(255, 55, 178, 0.36);
  font-weight: 800;
  font-size: 0.82rem;
}

.workspace {
  min-width: 0;
  display: grid;
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
}

.print-workspace {
  display: grid;
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
}

.app-view:not(.active) {
  display: none;
}

.page-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  background: rgba(5, 6, 13, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
}

.workout-page { padding: 18px; }

.page-meta {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 180px 120px;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
}

.check-field {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 800;
  background: var(--panel-soft);
}

.check-field input {
  width: 18px;
  height: 18px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.workout-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

th,
td {
  padding: 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  background: linear-gradient(90deg, #05060d, #111422);
  color: #fff;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

.done-col {
  width: 54px;
  text-align: center;
}

.move-col {
  width: 98px;
  text-align: center;
}

.row-move-actions {
  display: inline-grid;
  grid-template-columns: repeat(2, 38px);
  gap: 6px;
}

.row-move-actions .icon-button {
  width: 38px;
  height: 38px;
}

.workout-table tbody tr {
  background: color-mix(in srgb, var(--group-color, var(--panel-soft)) 10%, transparent);
}

.workout-table tbody tr td:first-child {
  border-left: 5px solid var(--group-color, var(--blue));
}

.workout-table tbody td[data-label="Done"] {
  background: linear-gradient(90deg, rgba(155, 220, 255, 0.95), rgba(143, 216, 255, 0.78));
  color: #03040a;
  border-left-color: var(--blue);
}

.workout-table tbody td[data-label="Done"]::before {
  color: #03040a;
}

.workout-table tbody td[data-label="Done"]:has(.row-check:checked) {
  background: linear-gradient(90deg, rgba(255, 55, 178, 0.94), rgba(155, 220, 255, 0.84));
}

.row-check {
  accent-color: var(--pink);
}

.exercise-group-0 { --group-color: #9bdcff; }
.exercise-group-1 { --group-color: #ff37b2; }
.exercise-group-2 { --group-color: #c9ff4f; }
.exercise-group-3 { --group-color: #f7c6ff; }
.exercise-group-4 { --group-color: #74f4d0; }
.exercise-group-5 { --group-color: #ff8acc; }
.exercise-group-6 { --group-color: #79a8ff; }
.exercise-group-7 { --group-color: #ffd166; }

.row-joker {
  background: color-mix(in srgb, #c9ff4f 16%, transparent);
}

.row-joker td:first-child {
  border-left-color: #c9ff4f;
}

.exercise-cell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.exercise-cell .exercise-input:first-child {
  grid-column: 1 / -1;
}

.joker-badge {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(201, 255, 79, 0.55);
  border-radius: 8px;
  background: rgba(201, 255, 79, 0.13);
  box-shadow: 0 0 18px rgba(201, 255, 79, 0.18);
}

.joker-badge svg {
  width: 22px;
  height: 22px;
  fill: #c9ff4f;
  stroke: #061006;
  stroke-width: 0.8;
}

.table-input {
  min-height: 36px;
  padding: 7px 8px;
}

.narrow-input { max-width: 80px; }
.exercise-input { min-width: 150px; }
.notes-input { min-width: 180px; }

.row-actions {
  margin: 14px 0 16px;
}

.notes-field textarea {
  min-height: 120px;
  line-height: 1.45;
}

.share-panel {
  background: rgba(12, 14, 24, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.share-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 10px;
}

.share-hint {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.92rem;
}

.share-layout {
  display: grid;
  grid-template-columns: minmax(420px, 620px) minmax(320px, 1fr);
  gap: 14px;
  align-items: start;
}

.share-card {
  width: 100%;
  min-height: 620px;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 28px;
  display: grid;
  align-content: space-between;
  gap: 24px;
  background:
    linear-gradient(135deg, rgba(2, 2, 6, 0.98), rgba(12, 14, 24, 0.98)),
    radial-gradient(circle at top left, rgba(155, 220, 255, 0.2), transparent 36%),
    radial-gradient(circle at bottom right, rgba(255, 55, 178, 0.2), transparent 34%);
  overflow: hidden;
}

.share-card h3 {
  margin: 0;
  font-size: clamp(1.75rem, 3.4vw, 2.8rem);
  line-height: 0.98;
  text-transform: uppercase;
}

.share-card .share-meta {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.35;
}

.share-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.share-stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 12px;
  min-width: 0;
}

.share-stat strong {
  display: block;
  font-size: 1.5rem;
  line-height: 1;
}

.share-stat span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.share-estimate a {
  display: inline-block;
  margin-top: 8px;
  color: #c9ff4f;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
}

.share-estimate a:hover {
  text-decoration: underline;
}

.share-list {
  display: grid;
  gap: 8px;
}

.share-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.share-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.share-row strong {
  overflow-wrap: anywhere;
}

.share-row span {
  color: var(--muted);
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.share-footer {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.top-set-row {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.share-text {
  width: 100%;
  min-height: 620px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(2, 2, 6, 0.72);
  color: var(--ink);
  padding: 14px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
  line-height: 1.5;
}

.history-dialog {
  width: min(720px, calc(100% - 32px));
  max-height: min(720px, calc(100vh - 48px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.history-dialog::backdrop {
  background: rgba(2, 2, 6, 0.76);
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.history-list {
  display: grid;
  gap: 10px;
  padding: 16px;
  overflow: auto;
}

.history-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--panel-soft);
}

.history-item h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.history-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
  font-size: 0.92rem;
}

.history-item code {
  color: var(--green-dark);
  font-weight: 800;
}

.print-intro .panel-copy {
  margin-top: 0;
}

.full-cycle-print {
  display: grid;
  gap: 18px;
}

.cycle-print-week {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12, 14, 24, 0.94);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.cycle-print-week-head,
.cycle-print-page-head,
.print-page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.cycle-print-week-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 2, 6, 0.5);
}

.cycle-print-week-head h3,
.cycle-print-page-head h4 {
  margin: 0;
}

.cycle-print-week-head span,
.cycle-print-page-head span,
.cycle-print-page-head p,
.print-page-footer {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.cycle-print-page-head p {
  margin: 5px 0 0;
}

.cycle-print-days {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 14px;
}

.cycle-print-page {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 12px;
  break-inside: avoid;
}

.print-table {
  width: 100%;
  margin-top: 10px;
  border-collapse: collapse;
}

.print-table th,
.print-table td {
  padding: 7px;
  font-size: 0.84rem;
}

.print-page-footer {
  margin-top: 10px;
  align-items: flex-start;
}

@media print {
  body {
    background: #fff;
    color: #111;
  }

  .topbar,
  .view-tabs,
  .page-toolbar,
  .history-dialog,
  .row-actions,
  .share-panel,
  .done-col button,
  .done-col:last-child,
  .move-col,
  .print-intro {
    display: none !important;
  }

  .app-view {
    display: none !important;
  }

  .print-workspace,
  .print-workspace.active {
    display: block !important;
    max-width: none;
  }

  body[data-print-mode="workout"] .print-workspace {
    display: none !important;
  }

  body[data-print-mode="workout"] #workoutView {
    display: block !important;
    max-width: none;
  }

  body[data-print-mode="cycle"] #workoutView {
    display: none !important;
  }

  .app-shell {
    width: 100%;
    margin: 0;
  }

  .layout {
    display: block;
  }

  .workout-page {
    box-shadow: none;
    border: 0;
    padding: 0;
  }

  .cycle-print-week {
    border: 0;
    box-shadow: none;
    background: #fff;
    break-after: page;
  }

  .cycle-print-week:last-child {
    break-after: auto;
  }

  .cycle-print-week-head,
  .cycle-print-page,
  .cycle-print-page-head,
  .print-page-footer {
    color: #111;
    background: #fff;
    border-color: #bbb;
  }

  .cycle-print-days {
    grid-template-columns: 1fr;
    padding: 0;
  }

  th {
    background: #eee;
    color: #111;
  }

  .table-wrap {
    overflow: visible;
  }
}

@media (max-width: 980px) {
  .design-grid,
  .share-layout {
    grid-template-columns: 1fr;
  }

  .cycle-print-days {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .app-shell {
    width: min(100% - 20px, 1480px);
    margin-top: 12px;
  }

  .topbar,
  .page-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .view-tabs {
    grid-template-columns: 1fr;
    position: static;
  }

  .design-controls,
  .page-meta,
  .lift-row {
    grid-template-columns: 1fr;
  }

  .share-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .share-card {
    min-height: 440px;
    padding: 20px;
  }

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

  .share-stat {
    padding: 10px 8px;
  }

  .share-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .share-row span {
    text-align: left;
  }

  .table-wrap {
    overflow: visible;
    border: 0;
  }

  .workout-table,
  .workout-table thead,
  .workout-table tbody,
  .workout-table tr,
  .workout-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .workout-table {
    border-collapse: separate;
    border-spacing: 0 12px;
  }

  .workout-table thead {
    display: none;
  }

  .workout-table tr {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(2, 2, 6, 0.46);
    overflow: hidden;
  }

  .workout-table td {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    border-bottom: 1px solid var(--line);
  }

  .workout-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 850;
    text-transform: uppercase;
  }

  .workout-table td:last-child {
    border-bottom: 0;
  }

  .done-col,
  .move-col {
    width: auto;
    text-align: left;
  }

  .narrow-input,
  .exercise-input,
  .notes-input {
    max-width: none;
    min-width: 0;
  }

  .row-move-actions {
    justify-self: start;
  }
}
