:root {
  --ink: #213b32;
  --muted: #6a786e;
  --green: #184c39;
  --lime: #d8edb3;
  --paper: #f6f7f3;
  --line: #e2e7df;
  --white: #fff;
  --radius: 19px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.35;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #80a64c;
  outline-offset: 4px;
}
a {
  color: inherit;
}
button {
  color: inherit;
}
button,
select,
input,
textarea {
  border-radius: 9px;
}
button {
  border: 0;
}
input,
select,
textarea {
  border: 1px solid #dce3d9;
  background: #fff;
  padding: 11px 12px;
  color: var(--ink);
  min-width: 0;
}
input[type="range"] {
  padding: 0;
  accent-color: var(--green);
  cursor: ew-resize;
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='m3 5 4 4 4-4' fill='none' stroke='%23334d40' stroke-width='1.5'/%3E%3C/svg%3E");
  background-position: right 12px center;
  background-repeat: no-repeat;
  padding-right: 36px;
}
textarea {
  resize: vertical;
}
label {
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
label input,
label textarea,
label select {
  font-weight: 400;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(2rem, 3.3vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -1.8px;
  margin-bottom: 12px;
  font-weight: 650;
}
h2 {
  font-size: 1.13rem;
  letter-spacing: -0.3px;
  font-weight: 650;
  margin-bottom: 7px;
}
h3 {
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.4;
}
.muted {
  color: var(--muted);
  line-height: 1.6;
}
.small {
  font-size: 0.875rem;
}
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 1.9px;
  font-weight: 650;
  color: #667a62;
  margin-bottom: 15px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 225px;
  background: #fbfcf9;
  border-right: 1px solid var(--line);
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  z-index: 3;
}
.brand {
  text-decoration: none;
  display: flex;
  gap: 11px;
  align-items: center;
  font-size: 1.4rem;
  font-weight: 750;
  letter-spacing: -1px;
  padding: 0 3px;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 1.4px;
  margin-top: 6px;
  font-weight: 650;
}
.brand-mark {
  width: 43px;
  height: 43px;
  border-radius: 12px;
  background: #244f3c;
  color: #e0efb8;
  font-size: 29px;
  letter-spacing: -4px;
  padding-left: 8px;
  position: relative;
}
.brand-mark span {
  font-size: 17px;
  position: absolute;
  top: 2px;
  right: 4px;
}
.sidebar nav {
  margin-top: 51px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  font-size: 0.875rem;
  font-weight: 550;
  background: transparent;
  color: #6a786d;
  border-radius: 10px;
}
.nav-item span {
  font-size: 22px;
  width: 21px;
  line-height: 1;
}
.nav-item.active {
  background: #e7efdf;
  color: #244b37;
}
.nav-item:hover {
  background: #edf2e7;
}
.sidebar-bottom {
  margin-top: auto;
}
.sidebar-bottom p {
  font-family: Georgia, serif;
  font-size: 1.7rem;
  font-style: italic;
  line-height: 1.4;
  letter-spacing: -0.6px;
  padding: 16px 15px;
  color: #93a28b;
}
.version {
  font-size: 9px;
  letter-spacing: 0.8px;
  display: block;
  padding: 18px 10px 0;
  color: #9aa596;
}
.workspace {
  margin-left: 225px;
}
.topbar {
  height: 82px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  font-weight: 650;
  background: #fbfcf9;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: normal;
  font-weight: 400;
}
.top-actions > span {
  font-size: 0.75rem;
  color: #7c887a;
  margin-right: 10px;
}
.icon-button {
  background: transparent;
  font-size: 22px;
  width: 34px;
  height: 34px;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  min-height: 43px;
  padding: 11px 17px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
  text-decoration: none;
}
.button.primary {
  background: var(--green);
  color: white;
}
.button.primary:hover,
.button.dark:hover {
  background: #2b6048;
}
.button.secondary {
  background: #fff;
  border-color: #dce3d8;
  color: #3c5142;
}
.button.secondary:hover {
  background: #f1f5ec;
}
.button.dark {
  background: #263f32;
  color: white;
}
.small-button {
  min-height: 34px;
  font-size: 0.8rem;
  padding: 7px 12px;
}
.text-button {
  border: 0;
  background: transparent;
  padding: 10px 0;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: #4b6955;
}
.message {
  margin: 20px 40px 0;
  padding: 14px 18px;
  border-radius: 12px;
  background: #f4e9d5;
  color: #674b20;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.875rem;
  line-height: 1.5;
}
.message button {
  background: transparent;
  font-size: 22px;
  align-self: flex-start;
}
.message[hidden],
.view[hidden],
[hidden] {
  display: none !important;
}
main {
  max-width: 1500px;
  margin: auto;
  padding: 37px 40px 30px;
}
.page-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  margin-bottom: 33px;
}
.page-intro .muted {
  margin: 0;
}
.class-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  margin-bottom: 20px;
}
.class-title-label {
  width: min(100%, 500px);
}
.class-title-label input {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.6px;
  border: 1px solid transparent;
  background: transparent;
  padding: 6px 0;
  width: 100%;
}
.class-title-label input:hover {
  border-color: var(--line);
  padding-left: 8px;
}
.length-control {
  flex-direction: row;
  align-items: center;
  color: #7b8677;
  font-weight: 400;
  white-space: nowrap;
}
.length-control select {
  font-weight: 650;
  color: #2c4735;
  min-width: 120px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 22px;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 23px;
}
.panel-heading p {
  margin: 0;
}
.pill {
  font-size: 0.75rem;
  border-radius: 30px;
  padding: 8px 11px;
  background: #edf5e6;
  color: #45613b;
  white-space: nowrap;
}
.pill.warn {
  background: #fbefdb;
  color: #8d6224;
}
.timeline {
  display: flex;
  position: relative;
  height: 85px;
  border-radius: 10px;
  overflow: hidden;
  gap: 3px;
  background: #fff;
  touch-action: pan-y;
}
.timeline-block {
  border-radius: 7px;
  min-width: 4px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 10px 12px;
  overflow: hidden;
  color: #243629;
  position: relative;
  text-align: left;
  transition: filter 0.15s;
}
.timeline-block:hover {
  filter: brightness(0.94);
}
.timeline-block.selected {
  box-shadow: inset 0 0 0 2px #344c36;
}
.timeline-block .time {
  font-size: 0.72rem;
  margin-bottom: 6px;
  opacity: 0.8;
}
.timeline-block strong {
  font-size: 0.75rem;
  line-height: 1.2;
  white-space: nowrap;
}
.timeline-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 12px;
  transform: translateX(-50%);
  cursor: ew-resize;
  touch-action: none;
  z-index: 2;
  background: transparent;
}
.timeline-handle::after {
  content: "";
  position: absolute;
  top: 25px;
  bottom: 25px;
  left: 3px;
  width: 6px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #526346;
  box-shadow: 0 1px 5px #0002;
}
.timeline-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: #8b9586;
  margin: 10px 0 22px;
}
.bookends {
  display: grid;
  grid-template-columns: 190px 1fr 190px;
  align-items: center;
  gap: 30px;
}
.bookends label {
  display: grid;
  grid-template-columns: 1fr auto;
  font-size: 0.8rem;
  font-weight: 400;
  color: #727e6b;
}
.bookends strong {
  font-weight: 600;
  color: #415637;
}
.bookends input {
  grid-column: 1/3;
  width: 100%;
  height: 4px;
  margin: 7px 0;
}
.timeline-key {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 0.7rem;
  color: #8b9683;
  white-space: nowrap;
}
.dot {
  height: 6px;
  width: 6px;
  display: inline-block;
  border-radius: 50%;
  flex: none;
}
.warm {
  background: #d6ba72;
}
.cool {
  background: #c5d789;
}
.key-line {
  height: 1px;
  background: #d4dccc;
  width: 15px;
}
.planner-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(270px, 1fr);
  gap: 22px;
}
.blocks-panel {
  padding: 24px 0;
  overflow: hidden;
}
.blocks-panel > .panel-heading,
.blocks-panel > .add-block {
  padding-left: 24px;
  padding-right: 24px;
}
.block-row {
  display: grid;
  grid-template-columns: 43px 1fr auto auto;
  align-items: center;
  gap: 13px;
  padding: 14px 24px;
  border-top: 1px solid #edf0e9;
  cursor: pointer;
  position: relative;
}
.block-row.selected {
  background: #f0f5ea;
}
.block-row.selected::before {
  position: absolute;
  content: "";
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #547a39;
}
.block-icon {
  height: 39px;
  width: 39px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 24px;
}
.block-name {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 5px;
}
.block-info {
  font-size: 0.72rem;
  color: #818d79;
  line-height: 1.4;
}
.block-time {
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
  font-weight: 550;
  white-space: nowrap;
}
.row-moves {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.row-moves button {
  width: 23px;
  height: 22px;
  background: transparent;
  color: #7b8f72;
  border-radius: 5px;
  font-size: 14px;
}
.row-moves button:hover {
  background: #dfe8d6;
}
.add-block {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid #edf0e9;
  padding-top: 18px;
  margin-top: 10px;
}
.add-block select {
  width: 100%;
  font-size: 0.8rem;
}
.detail-panel > p {
  margin-bottom: 20px;
}
.detail-label {
  font-size: 0.7rem;
  letter-spacing: 1.2px;
  color: #7c8b72;
  margin: 0 0 12px;
}
.detail-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.detail-title h2 {
  margin: 0;
}
.detail-panel label {
  margin-bottom: 16px;
}
.detail-panel input[type="number"] {
  width: 100%;
}
.detail-panel textarea {
  width: 100%;
  font-size: 0.875rem;
  line-height: 1.5;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.delete-block {
  color: #9c6755;
  font-size: 0.8rem;
  background: transparent;
  padding: 8px 0;
}
.music-callout {
  background: #e7eddc;
  border: 1px solid #dde6ce;
  border-radius: 19px;
  padding: 26px;
  position: relative;
  overflow: hidden;
}
.music-callout h3 {
  font-family: Georgia, serif;
  font-size: 1.85rem;
  line-height: 1.1;
  letter-spacing: -0.6px;
  font-weight: 400;
  color: #395534;
  margin-bottom: 15px;
}
.music-callout p {
  max-width: 260px;
  color: #76836c;
  margin-bottom: 20px;
}
.music-callout .eyebrow {
  font-size: 0.65rem;
}
.footer-tools {
  display: flex;
  align-items: center;
  gap: 23px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.footer-tools > span {
  font-size: 0.75rem;
  margin-left: auto;
}
.service-grid,
.connection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 22px;
}
.service-card {
  border: 1px solid var(--line);
  border-radius: 19px;
  background: white;
  display: flex;
  align-items: center;
  text-align: left;
  padding: 23px;
  gap: 16px;
}
.service-card.selected {
  border-color: #497b47;
  box-shadow: 0 0 0 1px #497b47;
  background: #f3f7ec;
}
.service-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.8rem;
}
.service-check {
  margin-left: auto;
  font-size: 24px;
  color: #64854e;
}
.service-icon {
  display: grid;
  place-items: center;
  border-radius: 13px;
  width: 44px;
  height: 44px;
  font-size: 31px;
  flex: none;
}
.service-icon.spotify {
  background: #c6e9ae;
  color: #16462f;
}
.service-icon.apple {
  background: #f6dce2;
  color: #a93e59;
}
.inline-form {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}
.inline-form input {
  flex: 1;
}
.count {
  font-size: 0.75rem;
  background: #edf3e6;
  border-radius: 20px;
  padding: 4px 8px;
  margin-left: 6px;
}
.song-row {
  display: grid;
  grid-template-columns: 32px minmax(140px, 1fr) 125px 55px 56px;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid #edf0e9;
}
.song-row > span:first-child {
  font-size: 0.75rem;
  color: #8e9a86;
}
.song-row strong {
  font-size: 0.9rem;
  display: block;
}
.song-row small {
  display: block;
  font-size: 0.75rem;
  color: #7e8d75;
  line-height: 1.6;
}
.song-row select {
  padding: 8px 30px 8px 10px;
  font-size: 0.8rem;
}
.song-actions {
  display: flex;
  gap: 2px;
}
.song-actions button {
  width: 25px;
  height: 28px;
  background: #f4f6ef;
  font-size: 15px;
}
.song-row.excluded {
  opacity: 0.5;
}
.song-title-button {
  background: transparent;
  padding: 0;
  text-align: left;
}
.empty-state {
  padding: 38px 20px 50px;
  text-align: center;
  max-width: 430px;
  margin: auto;
}
.empty-state > span {
  font-size: 48px;
  color: #92ac72;
}
.empty-state h3 {
  font-size: 1.3rem;
  margin: 15px 0 10px;
}
.empty-state p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}
.preview-toggle {
  flex-direction: row;
  align-items: center;
  font-weight: 400;
  color: var(--muted);
}
.preview-toggle input {
  accent-color: var(--green);
}
.ride-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
  gap: 22px;
}
.coach-card {
  background: #163e32;
  color: #ecf4dd;
  border-radius: 25px;
  padding: 35px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.coach-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  color: #b4c4a7;
}
.coach-card h2 {
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.7px;
  margin-top: 30px;
  margin-bottom: 0;
}
.coach-clock {
  font-size: clamp(80px, 10vw, 150px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -7px;
  font-variant-numeric: tabular-nums;
  color: #d9efb1;
  margin: 8px 0;
}
.coach-card > p {
  font-size: 1rem;
  line-height: 1.7;
  min-height: 55px;
  color: #cedcc2;
}
.coach-card progress {
  appearance: none;
  width: 100%;
  height: 5px;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 22px;
  background: #426450;
  accent-color: #d9efb1;
}
.coach-card progress::-webkit-progress-bar {
  background: #426450;
}
.coach-card progress::-webkit-progress-value {
  background: #d9efb1;
}
.coach-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #afc2a5;
  margin-top: 13px;
}
.ride-controls {
  display: flex;
  gap: 10px;
  margin-top: 30px;
}
.ride-controls .primary {
  background: #deefbb;
  color: #20432e;
  flex: 1;
}
.coach-secondary {
  background: #335b47;
  color: #e0edcf;
}
.ride-side .panel {
  margin-bottom: 22px;
}
.now-playing h3 {
  font-size: 1.2rem;
  margin: 17px 0 6px;
}
.record-icon {
  display: grid;
  place-items: center;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: repeating-radial-gradient(
    #253f31 0px,
    #253f31 3px,
    #425e47 4px,
    #253f31 5px
  );
  font-size: 27px;
  color: #cde7ae;
  margin-top: 25px;
}
.now-playing label {
  font-weight: 400;
  font-size: 0.75rem;
  color: #6f8064;
}
.now-playing select {
  width: 100%;
  font-size: 0.8rem;
  margin: 8px 0;
}
.ride-note {
  margin-top: 20px;
}
.connection-grid .panel {
  margin-bottom: 0;
}
.connection-grid .service-icon {
  margin-bottom: 20px;
}
.connection-grid .muted {
  font-size: 0.9rem;
}
.connection-status {
  font-size: 0.875rem;
  color: #6c7d60;
}
.connection-grid details {
  margin-top: 25px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.connection-grid summary {
  font-weight: 550;
  font-size: 0.875rem;
  cursor: pointer;
}
.connection-grid details p {
  margin-top: 17px;
}
.connection-grid code {
  display: block;
  font-size: 0.75rem;
  word-break: break-all;
  padding: 12px;
  background: #f0f4eb;
  border-radius: 10px;
  line-height: 1.5;
}
.connection-grid details label {
  margin-top: 15px;
}
.connection-grid details .button {
  margin-top: 12px;
}
dialog {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 23px;
  color: var(--ink);
  max-width: 520px;
  width: calc(100% - 32px);
  box-shadow: 0 20px 100px #14271f30;
}
dialog::backdrop {
  background: #183b2d70;
  backdrop-filter: blur(3px);
}
dialog label {
  margin-bottom: 17px;
}
dialog input,
dialog textarea {
  width: 100%;
}
dialog .panel-heading {
  margin-bottom: 17px;
}
dialog p {
  font-size: 0.9rem;
}
dialog .button {
  width: 100%;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 1500px) {
  main {
    padding-top: 48px;
  }
  .page-intro {
    margin-bottom: 42px;
  }
  .timeline {
    height: 100px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 185px;
    padding: 28px 14px;
  }
  .brand {
    font-size: 1.15rem;
  }
  .brand small {
    font-size: 7px;
  }
  .workspace {
    margin-left: 185px;
  }
  .topbar {
    padding: 0 25px;
  }
  .top-actions > span {
    display: none;
  }
  main {
    padding: 30px 25px;
  }
  .planner-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(250px, 1fr);
    gap: 18px;
  }
  .panel {
    padding: 21px;
  }
  .bookends {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .timeline-key {
    display: none;
  }
  .timeline-block {
    padding: 8px 7px;
  }
  .timeline-block strong {
    font-size: 0.65rem;
  }
  .block-row {
    padding: 13px 20px;
    gap: 9px;
    grid-template-columns: 36px 1fr auto auto;
  }
  .block-icon {
    width: 34px;
    height: 34px;
  }
  .block-info {
    font-size: 0.68rem;
  }
  .ride-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(230px, 1fr);
  }
  .coach-card {
    padding: 27px;
  }
  .ride-controls {
    flex-wrap: wrap;
  }
  .ride-controls .primary {
    flex-basis: 100%;
  }
  .song-row {
    gap: 12px;
    grid-template-columns: 24px minmax(100px, 1fr) 110px 42px 55px;
  }
}
@media (max-width: 850px) {
  .sidebar {
    width: 76px;
    padding: 23px 10px;
  }
  .brand {
    justify-content: center;
    padding: 0;
  }
  .brand > span:last-child,
  .nav-item:not(.active)::after,
  .sidebar-bottom p,
  .version {
    display: none;
  }
  .sidebar .nav-item {
    font-size: 0;
    justify-content: center;
    padding: 15px 10px;
  }
  .sidebar .nav-item span {
    font-size: 24px;
    width: auto;
  }
  .workspace {
    margin-left: 76px;
  }
  .planner-grid {
    grid-template-columns: 1fr 270px;
  }
  .topbar {
    height: 70px;
    padding: 0 20px;
  }
  .top-actions {
    gap: 5px;
  }
  .top-actions .button {
    padding: 9px 12px;
    font-size: 0.75rem;
  }
  .page-intro {
    gap: 15px;
  }
  .page-intro > .button {
    display: none;
  }
  .details-column .music-callout {
    padding: 22px;
  }
  .panel-heading {
    gap: 10px;
  }
  .block-row {
    padding: 13px 15px;
    grid-template-columns: 30px 1fr auto;
  }
  .block-icon {
    height: 29px;
    width: 29px;
    font-size: 20px;
  }
  .block-row .row-moves {
    display: none;
  }
  .blocks-panel > .panel-heading,
  .blocks-panel > .add-block {
    padding-left: 17px;
    padding-right: 17px;
  }
  .block-info {
    font-size: 0.66rem;
  }
  .song-row {
    grid-template-columns: 24px 1fr 105px 45px 55px;
  }
  .connection-grid {
    grid-template-columns: 1fr;
  }
  .service-card {
    padding: 20px;
  }
}
@media (max-width: 680px) {
  body {
    padding-bottom: 81px;
  }
  .sidebar {
    inset: auto 0 0;
    width: 100%;
    height: 75px;
    padding: 0;
    border: 0;
    border-top: 1px solid #dce4d5;
    background: #fbfcf9f7;
    backdrop-filter: blur(15px);
    display: block;
  }
  .sidebar .brand,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    margin: 0;
    display: flex;
    flex-direction: row;
    height: 100%;
    justify-content: space-around;
    gap: 3px;
  }
  .sidebar .nav-item {
    width: auto;
    flex: 1;
    font-size: 0.67rem;
    flex-direction: column;
    gap: 5px;
    border-radius: 0;
    padding: 10px 4px;
    color: #75856a;
  }
  .sidebar .nav-item.active {
    background: #e8efde;
    color: #2d5037;
  }
  .sidebar .nav-item span {
    font-size: 23px;
  }
  .workspace {
    margin: 0;
  }
  .topbar {
    height: 64px;
    padding: 0 18px;
  }
  .topbar > span {
    font-size: 0.61rem;
    letter-spacing: 1px;
  }
  .top-actions {
    gap: 2px;
  }
  .top-actions .icon-button {
    width: 28px;
  }
  .top-actions #export {
    display: none;
  }
  .top-actions .button {
    font-size: 0.72rem;
    padding: 8px 10px;
    min-height: 34px;
  }
  main {
    padding: 29px 18px 10px;
  }
  .page-intro {
    margin-bottom: 27px;
    display: block;
  }
  .page-intro h1 {
    font-size: 2.25rem;
  }
  .page-intro .muted {
    font-size: 0.875rem;
  }
  .eyebrow {
    font-size: 0.65rem;
    letter-spacing: 1.3px;
  }
  .class-heading {
    gap: 8px;
    align-items: flex-start;
  }
  .class-title-label {
    max-width: 65%;
  }
  .class-title-label input {
    font-size: 1.1rem;
  }
  .length-control {
    font-size: 0;
  }
  .length-control select {
    font-size: 0.8rem;
    min-width: 92px;
    padding: 8px 25px 8px 10px;
  }
  .panel {
    padding: 20px;
    border-radius: 17px;
    margin-bottom: 18px;
  }
  .panel-heading {
    margin-bottom: 20px;
  }
  .panel-heading h2 {
    font-size: 1rem;
  }
  .panel-heading .small {
    font-size: 0.75rem;
  }
  .timeline {
    height: 75px;
    gap: 2px;
  }
  .timeline-block {
    padding: 5px 4px;
    align-items: center;
  }
  .timeline-block .time {
    font-size: 0.52rem;
  }
  .timeline-block strong {
    font-size: 0;
  }
  .timeline-block strong::before {
    content: attr(data-symbol);
    font-size: 20px;
  }
  .timeline-ticks {
    font-size: 0.62rem;
    margin-bottom: 17px;
  }
  .timeline-panel .pill {
    font-size: 0.64rem;
    padding: 7px 9px;
  }
  .bookends {
    gap: 25px;
  }
  .bookends label {
    font-size: 0.75rem;
  }
  .planner-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .block-row {
    padding: 14px 20px;
    grid-template-columns: 36px 1fr auto auto;
  }
  .block-row .row-moves {
    display: flex;
  }
  .block-icon {
    width: 34px;
    height: 34px;
  }
  .block-name {
    font-size: 0.875rem;
  }
  .block-info {
    font-size: 0.7rem;
  }
  .details-column {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .music-callout {
    margin-bottom: 20px;
  }
  .music-callout h3 br {
    display: none;
  }
  .music-callout h3 {
    font-size: 1.65rem;
  }
  .music-callout p {
    max-width: none;
  }
  .footer-tools {
    gap: 15px;
  }
  .footer-tools > span {
    margin: 0;
  }
  .service-grid {
    gap: 10px;
  }
  .service-card {
    padding: 16px 12px;
    gap: 10px;
    border-radius: 15px;
  }
  .service-icon {
    width: 35px;
    height: 35px;
    font-size: 24px;
  }
  .service-card strong {
    font-size: 0.85rem;
  }
  .service-card small {
    font-size: 0.65rem;
    line-height: 1.4;
  }
  .service-check {
    font-size: 18px;
  }
  .inline-form {
    flex-direction: column;
    gap: 9px;
  }
  .song-row {
    grid-template-columns: 18px 1fr 90px 44px;
    gap: 7px;
  }
  .song-row .song-actions {
    grid-column: 2;
    grid-row: auto;
  }
  .song-row > div:nth-child(2) {
    min-width: 0;
  }
  .song-row strong {
    font-size: 0.8rem;
  }
  .song-row small {
    font-size: 0.7rem;
  }
  .song-row select {
    font-size: 0.7rem;
    padding: 7px 24px 7px 8px;
  }
  .song-row > span:nth-child(4) {
    font-size: 0.75rem;
  }
  .song-panel > .panel-heading {
    align-items: flex-start;
  }
  .song-panel .button {
    font-size: 0.75rem;
    padding: 7px 10px;
    min-height: 35px;
  }
  .ride-grid {
    display: block;
  }
  .coach-card {
    padding: 25px 22px;
    border-radius: 22px;
  }
  .coach-card h2 {
    font-size: 1.9rem;
    margin-top: 26px;
  }
  .coach-clock {
    font-size: 105px;
    letter-spacing: -5px;
  }
  .coach-top {
    font-size: 0.65rem;
    letter-spacing: 1px;
  }
  .coach-card > p {
    font-size: 0.95rem;
    min-height: 48px;
  }
  .ride-controls {
    flex-wrap: nowrap;
    gap: 7px;
    margin-top: 26px;
  }
  .ride-controls .primary {
    flex-basis: auto;
  }
  .ride-controls .button {
    font-size: 0.8rem;
    padding: 10px 12px;
  }
  .ride-side {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
  }
  .ride-side .panel {
    margin-bottom: 18px;
  }
  .now-playing .record-icon {
    display: none;
  }
  .preview-toggle {
    font-size: 0.8rem;
    margin-top: 18px;
  }
  .message {
    margin: 15px 18px 0;
    padding: 12px 15px;
  }
  .connection-grid {
    gap: 18px;
  }
  .connection-grid .button {
    font-size: 0.8rem;
  }
  .page-intro .button#arrange {
    display: block;
    margin-top: 20px;
  }
  .view#music-view .page-intro > .button {
    display: inline-flex;
    margin-top: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.mobile-settings {
  display: none;
}
.music-transport {
  display: flex;
  gap: 8px;
  margin: 18px 0;
}
.music-transport .button {
  font-size: 0.75rem;
  padding: 9px 10px;
  flex: 1;
}
@media (max-width: 680px) {
  .sidebar .mobile-settings {
    display: flex;
  }
}
.length-control input {
  width: 85px;
  font-weight: 650;
  color: #2c4735;
}
.length-control > span {
  font-size: 0.875rem;
  color: #7b8677;
}
@media (max-width: 680px) {
  .length-control {
    gap: 7px;
  }
  .length-control input {
    width: 63px;
    font-size: 0.9rem;
    padding: 8px;
  }
  .length-control > span {
    font-size: 0.75rem;
  }
}

/* Studio theme and the three-step class workflow. */
:root { --ink:#191c19; --muted:#74776f; --green:#20251e; --lime:#d3fa49; --paper:#f7f6f1; --line:#e2e3da; --white:#fffefa; --surface-soft:#efefe7; --radius:18px; color-scheme:light; }
:root[data-theme="night"] { --ink:#f0f2e8; --muted:#a3aa9c; --green:#d3fa49; --lime:#d3fa49; --paper:#141713; --line:#343a30; --white:#20251e; --surface-soft:#292f25; color-scheme:dark; }
[hidden] { display:none !important; }
body { background:var(--paper); color:var(--ink); padding-bottom:0; }
.app-header { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:20px 36px; background:#1b201a; color:#f5f6ed; border-bottom:1px solid #363c30; }
.brand { padding:0; min-width:210px; font-size:1.5rem; letter-spacing:-1px; }
.brand-mark { display:block; width:52px; height:52px; object-fit:contain; padding:0; background:transparent; border-radius:13px; }
.brand small { color:#afb6a6; font-size:8px; letter-spacing:1.9px; margin-top:5px; }
.workflow { display:flex; align-items:center; gap:12px; }
.workflow .nav-item { color:#adb3a5; padding:11px 17px; width:auto; font-size:0.88rem; gap:9px; border-radius:24px; white-space:nowrap; }
.workflow .nav-item span { font-size:10px; width:auto; letter-spacing:1px; opacity:.7; }
.workflow .nav-item.active { background:var(--lime); color:#1b2117; }
.workflow .nav-item:hover { background:#333b2b; color:#f5f6ed; }
.workflow .nav-item.active:hover { background:#e1ff79; color:#1b2117; }
.workflow-arrow { color:#737c68; }
.app-header > .text-button { color:#bbc2b1; }
.workspace { margin:0; }
.topbar { background:var(--paper); padding:15px 36px; min-height:70px; height:auto; gap:18px; flex-wrap:wrap; }
.topbar > span { color:var(--muted); font-size:10px; }
.top-actions { flex-wrap:wrap; gap:8px; }
.top-actions #save-state { display:none; }
.top-actions .button { font-size:12px; min-height:36px; padding:8px 12px; }
.top-actions #sign-out { font-size:11px; }
.theme-switch { display:inline-flex; gap:7px; align-items:center; justify-content:center; background:var(--surface-soft); border:1px solid var(--line); padding:9px 12px; min-height:36px; color:var(--ink); font-size:12px; }
.theme-switch svg { width:17px; height:17px; }
main { max-width:1440px; margin:auto; padding:40px 36px 48px; }
h1 { font-size:clamp(2.3rem,4.2vw,4rem); line-height:1.03; letter-spacing:-2.6px; font-weight:650; }
h1 em { font-family:Georgia,serif; font-weight:400; }
.eyebrow { color:var(--muted); letter-spacing:2px; font-size:10px; }
.panel { background:var(--white); border-color:var(--line); box-shadow:0 3px 16px #10181003; }
.button.primary { background:var(--lime); color:#1c2314; border-color:transparent; }
.button.primary:hover { background:#c0ec34; }
.button.dark { background:#242a20; color:#f6f7ee; }
.button.dark:hover { background:#3a4430; }
.button.secondary,.icon-button,.song-actions button { background:var(--white); color:var(--ink); border-color:var(--line); }
input,select,textarea { color:var(--ink); background-color:var(--white); border-color:var(--line); }
input[type="range"] { accent-color:#8dba24; min-height:26px; cursor:ew-resize; }
input[type="checkbox"] { accent-color:#8dba24; }
.text-button { color:var(--ink); }
.class-title-label input,.length-control input { color:var(--ink); }
.class-title-label input { background:transparent; }
.class-heading { margin-top:32px; }
.pill,.count { background:var(--surface-soft); color:var(--ink); }
.timeline { position:relative; overflow:hidden; }
.timeline-block { color:#252c20; }
.timeline-playhead { position:absolute; top:0; bottom:0; width:3px; background:#191d16; box-shadow:0 0 0 2px #fff9; pointer-events:none; z-index:2; }
.plan-scrubber { display:grid; grid-template-columns:1fr auto; align-items:center; gap:4px 12px; margin:16px 0; color:var(--muted); font-size:11px; letter-spacing:.4px; }
.plan-scrubber input { grid-column:1/-1; width:100%; }
.bookends { border-top:1px solid var(--line); padding-top:16px; }
.block-row { border-color:var(--line); }
.block-row:hover { background:var(--surface-soft); }
.block-row.active { background:var(--surface-soft); border-left-color:#a1bf42; }
.block-name,.block-time { color:var(--ink); }
.block-info,.timeline-key,.timeline-ticks { color:var(--muted); }
.music-callout { background:var(--surface-soft); border:1px solid var(--line); }
.music-callout h3 { color:var(--ink); font-family:Georgia,serif; font-weight:400; }
.service-card { background:var(--white); border-color:var(--line); color:var(--ink); }
.service-card.active { border-color:#96af42; background:var(--surface-soft); }
.service-card small,.song-row small,.song-row > span:first-child { color:var(--muted); }
.song-heading-actions { display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-end; }
.arrangement-panel { background:var(--surface-soft); padding:20px; border-radius:12px; margin-bottom:20px; }
.filter-heading { display:flex; gap:12px; justify-content:space-between; align-items:center; margin-bottom:18px; }
.filter-heading strong { font-size:13px; }
.arrangement-filters { display:grid; grid-template-columns:1fr 1.5fr; gap:36px; align-items:center; }
.checkbox-label { flex-direction:row; gap:8px; align-items:center; font-size:12px; }
.checkbox-label input { margin:0; width:16px; height:16px; }
.bpm-range { display:flex; gap:10px; align-items:center; margin-top:12px; }
.bpm-range label { font-size:10px; color:var(--muted); gap:4px; }
.bpm-range input { width:78px; font-weight:650; }
.bpm-range > strong { font-size:11px; margin-top:18px; }
.recency-control { display:grid; grid-template-columns:1fr auto; font-size:12px; }
.recency-control > strong { font-size:11px; color:var(--muted); }
.recency-control > input,.range-labels { grid-column:1/-1; width:100%; }
.range-labels { display:flex; justify-content:space-between; font-size:10px; font-weight:400; color:var(--muted); }
.arrangement-panel > p { font-size:11px; margin:16px 0 0; max-width:820px; }
.song-row { grid-template-columns:26px minmax(160px,1fr) 90px 115px 48px 56px; border-color:var(--line); gap:14px; }
.song-row.excluded { opacity:.65; }
.song-row .bpm-cell { gap:1px; }
.bpm-cell > span { display:none; }
.bpm-cell input { width:100%; padding:7px 6px; font-size:20px; font-weight:700; letter-spacing:-.5px; text-align:center; border-color:transparent; background:var(--surface-soft); }
.bpm-cell .tap-tempo { padding:3px 0; font-size:10px; }
.song-columns { display:grid; grid-template-columns:minmax(186px,1fr) 90px 115px 48px 56px; gap:14px; font-size:9px; letter-spacing:1px; color:var(--muted); padding:0 0 9px; }
.song-row strong { line-height:1.4; }
.song-row small { margin-top:5px; }
.coach-card { background:#22291d; color:#f2f5e9; }
.coach-clock { color:var(--lime); }
.coach-top,.coach-bottom { color:#b9c2ab; }
.coach-card #ride-progress { width:100%; accent-color:var(--lime); }
.coach-card .scrub-hint { font-size:11px; min-height:0; color:#b9c2ab; margin:4px 0 15px; }
.ride-controls .primary { flex:0 0 68px; width:68px; height:56px; border-radius:50px; padding:13px; }
.ride-controls .primary svg { width:27px; height:27px; }
.coach-secondary { background:#343e2d; color:#edf2e5; }
.music-transport .button { min-height:48px; flex:1; }
.music-transport svg { width:24px; height:24px; }
.playing-tempo { display:flex; align-items:baseline; gap:8px; margin:16px 0; }
.playing-tempo strong { font-size:44px; font-weight:650; letter-spacing:-2px; }
.playing-tempo > span { font-size:11px; color:var(--muted); letter-spacing:1px; }
.now-playing .record-icon { display:none; }
.record-icon,.connection-status { color:var(--ink); }
.message { background:var(--surface-soft); color:var(--ink); border-color:var(--line); }
dialog { color:var(--ink); background:var(--white); border:1px solid var(--line); max-width:min(600px,calc(100vw - 28px)); }
dialog::backdrop { background:#10160ec9; backdrop-filter:blur(5px); }
.share-qr { width:min(280px,100%); margin:22px auto; background:white; padding:8px; border-radius:16px; }
.share-qr svg { display:block; width:100%; height:auto; }
.share-status { font-size:13px; text-align:center; }
#share-link { width:100%; font-size:12px; }
.saved-class { display:flex; flex-direction:column; gap:8px; text-align:left; background:var(--surface-soft); padding:18px; width:100%; margin:10px 0; border:1px solid var(--line); }
.saved-class span { font-size:12px; color:var(--muted); }
.login-page { min-height:100vh; display:grid; align-items:center; }
.login-shell { max-width:1080px; display:grid; grid-template-columns:1fr 1fr; padding:40px; gap:70px; align-items:center; }
.login-art img { width:200px; height:200px; object-fit:contain; border-radius:32px; margin-bottom:35px; }
.login-art h1 { margin:15px 0 20px; }
.login-art > p:last-child { color:var(--muted); line-height:1.8; }
.login-card { padding:36px; background:var(--white); border:1px solid var(--line); border-radius:24px; }
.login-top { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:35px; }
.login-top .eyebrow { margin:0; font-size:9px; }
.login-card h2 { font-size:2rem; line-height:1.12; letter-spacing:-1px; margin-bottom:20px; }
.login-card form { display:flex; flex-direction:column; gap:15px; }
.login-card #code { letter-spacing:8px; font-size:24px; }
.login-status { font-size:13px; line-height:1.6; min-height:25px; margin-top:20px; }
[data-theme="night"] .detail-panel,[data-theme="night"] .connection-grid details,[data-theme="night"] .empty-state,[data-theme="night"] .footer-tools { color:var(--ink); }
@media(max-width:1000px) { .app-header { padding:18px 24px; gap:16px; } .brand { min-width:180px; } .workflow { gap:5px; } .workflow .nav-item { padding:10px; } .topbar { padding:12px 24px; } main { padding:30px 24px; } .topbar > span { display:none; } }
@media(max-width:680px) { body { padding-bottom:0; } .app-header { padding:16px 18px 0; flex-wrap:wrap; gap:14px; } .app-header .brand { flex:1; } .app-header > .text-button { font-size:11px; } .workflow { flex-basis:100%; order:3; justify-content:space-between; padding:12px 0; border-top:1px solid #363c30; } .workflow .nav-item { flex:0 1 auto; flex-direction:row; font-size:12px; border-radius:20px; padding:10px 12px; gap:6px; } .workflow .nav-item span { font-size:9px; } .workflow-arrow { font-size:12px; } .topbar { padding:10px 18px; } .top-actions { gap:6px; width:100%; } .top-actions #export { display:inline-flex; } .top-actions .button { font-size:10px; padding:7px 9px; min-height:32px; } .theme-switch { padding:7px 8px; font-size:10px; min-height:32px; } .theme-switch svg { width:14px; height:14px; } .top-actions .icon-button { width:22px; } main { padding:25px 18px; } h1,.page-intro h1 { font-size:2.8rem; letter-spacing:-1.7px; } .page-intro { display:block; } .page-intro .button { margin-top:15px; } .song-panel { padding:18px 14px; } .song-panel > .panel-heading { flex-direction:column; gap:15px; } .song-heading-actions { width:100%; justify-content:space-between; } .song-heading-actions .button { min-height:40px; } .arrangement-panel { padding:16px; } .filter-heading { align-items:flex-start; flex-direction:column; gap:7px; } .arrangement-filters { grid-template-columns:1fr; gap:22px; } .bpm-range input { width:85px; } .song-columns { display:none; } .song-row { grid-template-columns:18px minmax(0,1fr) 72px; gap:8px; padding:16px 0; } .song-row > div:nth-child(2) { grid-column:2; } .song-row .bpm-cell { grid-column:3; grid-row:auto; } .song-row .energy-cell { grid-column:2; grid-row:auto; } .song-row > span.small { grid-column:3; justify-self:center; font-size:11px; } .song-row .song-actions { grid-column:2; } .song-row select { width:130px; } .song-row strong { font-size:13px; } .song-row small { font-size:10px; } .playing-tempo strong { font-size:40px; } .login-shell { display:block; padding:24px; } .login-art { text-align:center; } .login-art img { width:120px; height:120px; margin-bottom:15px; } .login-art h1 { font-size:2.5rem; } .login-art > p:last-child { display:none; } .login-card { padding:26px; margin-top:25px; } .login-top { margin-bottom:25px; } }
.service-card.selected { border-color:#96af42; background:var(--surface-soft); }
.service-card strong { color:var(--ink); }
