:root {
  color-scheme: light;
  --bg: #f4f1eb;
  --surface: #fffdfa;
  --surface-strong: #ffffff;
  --ink: #18212f;
  --muted: #667085;
  --line: #d9d2c6;
  --primary: #0f766e;
  --primary-dark: #115e59;
  --accent: #c2410c;
  --blue: #2563eb;
  --green: #15803d;
  --danger: #b42318;
  --shadow: 0 18px 50px rgba(24, 33, 47, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), transparent 32%),
    linear-gradient(315deg, rgba(194, 65, 12, 0.1), transparent 38%),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.topbar,
.hero-panel,
.player-head,
.section-head,
.target-line,
.player-actions,
.data-actions,
.timer-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar {
  margin-bottom: 20px;
}

.topbar h1,
.session-summary h2,
.player-head h2,
.section-head h2 {
  margin: 0;
}

.topbar h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-pill,
.muscle-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  white-space: nowrap;
}

.hidden {
  display: none !important;
}

.session-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.72);
}

.overlay-card {
  display: grid;
  gap: 10px;
  width: min(100%, 390px);
  max-height: calc(100dvh - 32px);
  padding: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.3);
}

.overlay-card h2,
.overlay-card p {
  margin: 0;
}

.overlay-card > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.45;
}

.preview-card .exercise-visual {
  height: min(52dvh, 360px);
}

.preview-card .exercise-media-frame {
  width: 100%;
  height: 100%;
}

.exit-card button {
  width: 100%;
}

.icon-button,
.primary-button,
.ghost-button,
.danger-button,
.session-tab,
.import-button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 14px;
  font-weight: 800;
}

.icon-button {
  width: 42px;
  padding: 0;
  background: var(--surface-strong);
  color: var(--ink);
  border-color: var(--line);
}

.primary-button {
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.2);
}

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

.ghost-button,
.import-button {
  background: var(--surface-strong);
  border-color: var(--line);
  color: var(--ink);
}

.danger-button {
  background: #fff4f2;
  border-color: #f4c7c1;
  color: var(--danger);
}

.session-switch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 5px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.58);
}

.catalogue-panel {
  display: grid;
  gap: 16px;
  padding: 4px 0 24px;
}

.catalogue-session-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.catalogue-plan-status {
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 850;
}

.catalogue-plan-list {
  display: grid;
  gap: 6px;
}

.catalogue-plan-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 8px;
  border-bottom: 1px solid var(--line);
}

.catalogue-plan-row > span:nth-child(2) span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.catalogue-row-actions {
  display: flex;
  gap: 4px;
}

.catalogue-row-actions button {
  min-width: 34px;
  min-height: 34px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-weight: 850;
}

.catalogue-row-actions .remove-exercise-button {
  color: var(--danger);
}

.catalogue-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 0.35fr);
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.catalogue-tools input,
.catalogue-tools select {
  width: 100%;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
}

.catalogue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 8px;
}

.catalogue-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.catalogue-thumb {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  overflow: hidden;
  border-radius: 6px;
  background: #f8fafc;
}

.catalogue-thumb img,
.catalogue-thumb svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.catalogue-item-body {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
}

.catalogue-item-body > span {
  color: var(--muted);
  font-size: 0.74rem;
}

.catalogue-item-body button {
  min-height: 32px;
  margin-top: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ecfeff;
  color: var(--primary-dark);
  font-size: 0.76rem;
  font-weight: 900;
}

.session-tab {
  background: transparent;
  color: var(--muted);
}

.session-tab.active {
  background: var(--surface-strong);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(24, 33, 47, 0.08);
}

.hero-panel,
.player-panel,
.workout-card,
.timer-panel {
  border: 1px solid rgba(217, 210, 198, 0.92);
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.9);
  box-shadow: var(--shadow);
}

.hero-panel {
  min-height: 260px;
  padding: 24px;
  margin-bottom: 18px;
}

.session-summary {
  max-width: 670px;
}

.session-summary h2 {
  font-size: clamp(1.85rem, 3.5vw, 3rem);
}

.session-summary p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 560px;
  margin-top: 20px;
}

.summary-grid div {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.summary-grid strong {
  display: block;
  font-size: 1.35rem;
}

.summary-grid span {
  color: var(--muted);
  font-size: 0.82rem;
}

.current-card {
  display: grid;
  gap: 14px;
  min-width: 230px;
}

.player-panel {
  padding: 18px;
  margin-bottom: 18px;
}

.player-layout,
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
  gap: 16px;
}

.player-layout {
  margin-top: 16px;
}

.content-grid {
  align-items: start;
}

.workout-card {
  padding: 18px;
}

.exercise-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 280px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(15, 118, 110, 0.08), transparent),
    #f8fafc;
}

.exercise-visual.compact {
  min-height: 180px;
}

.exercise-visual svg {
  width: min(95%, 420px);
  height: auto;
  max-height: 270px;
}

.exercise-visual.compact svg {
  max-height: 170px;
}

.exercise-media {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
}

.exercise-media.compact {
  max-height: 210px;
}

.exercise-media-frame {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.machine-line {
  stroke: #475467;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.pad {
  fill: #202939;
}

.body {
  stroke: #111827;
  stroke-width: 9;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.joint {
  fill: #111827;
}

.muscle-highlight {
  fill: var(--accent);
  opacity: 0.9;
}

.muscle-highlight.secondary {
  fill: var(--primary);
  opacity: 0.82;
}

.arrow {
  stroke: var(--blue);
  stroke-width: 7;
  stroke-linecap: round;
  fill: none;
}

.muscle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.cue,
.previous-load,
.history-panel,
.source-link {
  color: var(--muted);
  line-height: 1.5;
}

.source-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--primary-dark);
  font-weight: 800;
  text-decoration: none;
}

.target-line {
  flex-wrap: wrap;
  color: var(--muted);
  font-weight: 800;
}

.set-progress {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(42px, 1fr));
  gap: 8px;
  margin: 18px 0;
}

.set-dot {
  display: grid;
  place-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  font-weight: 900;
}

.set-dot.done {
  background: #dcfce7;
  border-color: #86efac;
  color: var(--green);
}

.set-dot.current {
  background: #eff6ff;
  border-color: #93c5fd;
  color: var(--blue);
}

.set-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.set-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.set-form input,
.set-form select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 0 10px;
  font-size: 1rem;
}

.set-form .primary-button {
  grid-column: 1 / -1;
}

.touch-controls {
  display: none;
}

.player-actions {
  margin-top: 12px;
}

.timer-panel {
  position: sticky;
  z-index: 5;
  bottom: 14px;
  padding: 16px;
  margin-bottom: 18px;
  background: #111827;
  color: white;
}

.timer-panel .eyebrow,
.timer-panel span {
  color: #a7f3d0;
}

.timer-panel strong {
  display: block;
  font-size: clamp(2rem, 7vw, 4rem);
  line-height: 1;
}

.timer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.timer-panel .ghost-button {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: white;
}

.exercise-list {
  display: grid;
  gap: 10px;
}

.exercise-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.exercise-item strong,
.history-row strong {
  display: block;
}

.exercise-item span,
.history-row span {
  color: var(--muted);
  font-size: 0.88rem;
}

.machine-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #ecfeff;
  color: var(--primary-dark);
  font-weight: 900;
}

.exercise-meta {
  text-align: right;
}

.history-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.history-row {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.sync-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.sync-panel > div:first-child {
  display: grid;
  gap: 2px;
}

.sync-panel span {
  color: var(--muted);
  font-size: 0.78rem;
}

.sync-panel span[data-tone="success"] {
  color: var(--green);
}

.sync-panel span[data-tone="error"] {
  color: var(--danger);
}

.sync-controls {
  display: flex;
  gap: 6px;
}

.sync-controls input {
  width: min(230px, 42vw);
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.side-indicator {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  margin-left: 6px;
  border-radius: 999px;
  background: #ffedd5;
  color: #9a3412;
  font-size: 0.68rem;
  font-weight: 900;
  white-space: nowrap;
}

.import-button {
  position: relative;
  display: inline-grid;
  place-items: center;
}

.import-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

@media (max-width: 860px) {
  .app-shell {
    width: min(100% - 20px, 680px);
    padding-top: 14px;
  }

  .topbar,
  .hero-panel,
  .player-head,
  .timer-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-actions,
  .timer-actions {
    justify-content: space-between;
  }

  .hero-panel {
    min-height: auto;
    padding: 16px;
  }

  .summary-grid,
  .player-layout,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .current-card {
    min-width: 0;
  }
}

@keyframes focusIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pulseSet {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.24);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(37, 99, 235, 0);
  }
}

.set-dot.current {
  animation: pulseSet 1.4s ease-in-out infinite;
}

body.session-active {
  overflow: hidden;
  background: #0f172a;
}

body.session-active .player-panel {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100dvh;
  margin: 0;
  padding: max(8px, env(safe-area-inset-top)) 10px max(8px, env(safe-area-inset-bottom));
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(15, 118, 110, 0.22), transparent 30%),
    #f8fafc;
  box-shadow: none;
  overflow: hidden;
  animation: focusIn 180ms ease-out;
}

body.session-active .player-head {
  align-items: center;
  flex-direction: row;
  flex: 0 0 auto;
  padding: 0 2px 6px;
}

body.session-active .player-head h2 {
  max-width: min(68vw, 520px);
  overflow: hidden;
  font-size: clamp(1.28rem, 5.5vw, 2rem);
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.session-active .player-head .ghost-button {
  align-self: center;
  width: auto;
  min-width: 74px;
  min-height: 36px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.76);
}

.next-preview-button {
  max-width: min(65vw, 420px);
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 850;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.session-active .player-layout {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(310px, 0.8fr);
  gap: 8px;
  min-height: 0;
  margin-top: 0;
}

body.session-active .workout-card {
  min-height: 0;
  padding: 8px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

body.session-active .active-exercise {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
}

body.session-active .exercise-visual {
  min-height: 0;
  height: 100%;
  max-height: none;
  padding: 4px;
  background: white;
}

body.session-active .exercise-media-frame {
  width: min(100%, 260px);
  height: min(100%, 260px);
  margin: auto;
}

body.session-active .exercise-media {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
}

body.session-active .muscle-row {
  gap: 6px;
  margin: 0;
  overflow: hidden;
}

body.session-active .muscle-chip {
  min-height: 28px;
  padding: 4px 8px;
  font-size: 0.74rem;
}

body.session-active .cue {
  display: none;
}

body.session-active .source-link {
  display: none;
}

body.session-active .set-card {
  display: grid;
  grid-template-rows: auto auto auto auto auto;
  gap: 5px;
  overflow: hidden;
}

body.session-active .target-line {
  font-size: 0.82rem;
}

body.session-active .previous-load {
  display: none;
}

body.session-active .set-progress {
  grid-template-columns: repeat(auto-fit, minmax(28px, 1fr));
  gap: 4px;
  margin: 0;
  align-items: center;
}

body.session-active .set-dot {
  min-height: 0;
  height: 20px;
  max-height: 20px;
  padding: 0;
  border-radius: 6px;
  background: #f8fafc;
  font-size: 0.68rem;
  line-height: 1;
}

body.session-active .set-dot.done {
  background: #dcfce7;
}

body.session-active .set-dot.current {
  background: #dbeafe;
  border-color: #7dd3fc;
}

body.session-active .set-form {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

body.session-active .touch-controls {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: 5px;
  min-height: 0;
  overflow: hidden;
}

.touch-control {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.touch-control > span {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
}

.value-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  border-radius: 8px;
  background: #f1f5f9;
}

.value-display strong {
  font-size: clamp(1.25rem, 6vw, 1.95rem);
  line-height: 1;
}

.value-display small {
  color: var(--muted);
  font-weight: 900;
}

.step-grid,
.rpe-chips {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 3px;
}

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

.step-grid button,
.rpe-chips button {
  min-width: 0;
  min-height: 30px;
  padding: 0 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: clamp(0.68rem, 2.7vw, 0.82rem);
  font-weight: 950;
}

.rpe-control {
  grid-column: 1 / -1;
  padding: 0;
  border: 0;
  background: transparent;
}

.rpe-control > span {
  display: none;
}

.rpe-chips {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.rpe-chips button.active {
  background: #0f766e;
  border-color: #0f766e;
  color: white;
}

.big-action {
  grid-column: 1 / -1;
  min-height: 40px;
  font-size: 0.94rem;
}

body.session-active .player-actions {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr 0.85fr;
  gap: 6px;
  margin-top: 0;
}

body.session-active .player-actions button {
  min-width: 0;
  min-height: 36px;
  padding: 0 6px;
  font-size: 0.76rem;
}

body.session-active .busy-button {
  border-color: #fdba74;
  background: #fff7ed;
  color: #9a3412;
}

body.session-active .timer-panel {
  position: fixed;
  right: 10px;
  bottom: max(10px, env(safe-area-inset-bottom));
  left: 10px;
  z-index: 40;
  display: flex;
  min-height: 96px;
  margin: 0;
  padding: 12px;
  border: 0;
  background: rgba(17, 24, 39, 0.96);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.28);
}

body.session-active .timer-panel strong {
  font-size: clamp(2rem, 12vw, 3.5rem);
}

body.session-active .timer-actions > * {
  min-height: 44px;
}

@media (max-width: 760px) {
  body.session-active .player-layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(230px, 38dvh) minmax(0, 1fr);
    gap: 6px;
  }

  body.session-active .exercise-media-frame {
    width: min(100%, 320px);
    height: min(100%, 320px);
  }

  body.session-active .active-exercise {
    grid-template-rows: minmax(0, 1fr);
  }

  body.session-active .muscle-row {
    display: none;
  }

  body.session-active .cue {
    -webkit-line-clamp: 1;
  }

  body.session-active .set-card {
    grid-template-rows: auto auto auto auto auto;
  }
}

@media (max-height: 760px) {
  body.session-active .player-layout {
    grid-template-rows: minmax(205px, 35dvh) minmax(0, 1fr);
  }

  body.session-active .exercise-media-frame {
    width: min(100%, 300px);
    height: min(100%, 300px);
  }

  .value-display {
    min-height: 34px;
  }

  .step-grid button,
  .rpe-chips button {
    min-height: 28px;
  }

  .big-action {
    min-height: 38px;
  }
}

@media (max-width: 430px) {
  body.session-active .player-panel {
    padding-right: 8px;
    padding-left: 8px;
  }

  body.session-active .player-layout {
    gap: 8px;
  }

  body.session-active .workout-card {
    padding: 8px;
  }

  body.session-active .touch-controls {
    gap: 6px;
  }

  .touch-control {
    padding: 6px;
  }

  .step-grid button,
  .rpe-chips button {
    min-height: 28px;
    font-size: 0.7rem;
  }

  .big-action {
    min-height: 44px;
  }
}

@media (max-width: 520px) {
  .summary-grid,
  .set-form {
    grid-template-columns: 1fr;
  }

  .exercise-item {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .exercise-meta {
    grid-column: 1 / -1;
    text-align: left;
  }

  .timer-actions > * {
    flex: 1;
  }

  .sync-panel,
  .sync-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .sync-controls input {
    width: 100%;
  }

  .catalogue-tools {
    grid-template-columns: 1fr;
  }

  .catalogue-head {
    align-items: stretch;
    flex-direction: column;
  }

  .catalogue-plan-row {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .catalogue-row-actions {
    grid-column: 1 / -1;
  }
}
