@font-face {
  font-family:'Figtree';
  src:url('fonts/Figtree-VariableFont_wght.woff2') format('woff2');
  font-weight:300 900; font-style:normal; font-display:swap;
}
:root {
  --paper:#f6f5ef;
  --ink:#252820;
  --muted:#646b59;
  --line:#e1e2d7;
  --lime:#d9f279;
  --white:#fff;
  --soft:#eeefe5;
  --lime-press:#c7e362;
  --olive:#a8c259;
  --deep-olive:#698127;
  --quiet:#848978;
  --font-sans:'Figtree','Avenir Next','Avenir','Segoe UI','Trebuchet MS',system-ui,sans-serif;
  --radius:18px;
  font-family:var(--font-sans);
  color:var(--ink);
  background:var(--paper);
  font-synthesis:none;
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
  font-size:14px;
  font-weight:400;
  line-height:1.6;
}
button,input,select {
  font:inherit;
}
button,a,input,select {
  -webkit-tap-highlight-color:transparent;
}
button {
  cursor:pointer;
  color:inherit;
}
button:disabled {
  opacity:.45;
  cursor:not-allowed;
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,section:focus-visible {
  outline:3px solid var(--deep-olive);
  outline-offset:4px;
}
a {
  color:inherit;
}
button {
  border:0;
  background:none;
}
input,select {
  min-width:0;
  color:var(--ink);
}
[hidden] {
  display:none!important;
}
h1,h2,h3,p {
  margin:0;
}
h3 {
  font-size:15px;
  font-weight:600;
  letter-spacing:-.01em;
}
small {
  font-size:12px;
  line-height:1.8;
  color:var(--muted);
}
button,input,select {
  min-height:44px;
}
.app-shell {
  display:grid;
  grid-template-columns:220px minmax(0,1fr);
  min-height:100svh;
}
.sidebar {
  display:flex;
  flex-direction:column;
  padding:37px 24px 24px;
  border-right:1px solid var(--line);
  position:sticky;
  top:0;
  height:100svh;
}
.brand {
  display:flex;
  align-items:center;
  gap:0;
  text-decoration:none;
  font-size:34px;
  font-weight:600;
  letter-spacing:-.03em;
}
.brand-dot {
  margin-left:0;
  color:var(--ink);
}
.brand img,.mobile-brand img {
  display:block;
  height:32px;
  width:auto;
}
.mobile-brand img {
  height:24px;
}
.mobile-brand {
  display:none;
}
.rest-icon {
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  flex-shrink:0;
  border-radius:10px;
  background:var(--lime);
}
.rest-icon svg { width:30px; height:30px; }
.rest-item .rest-icon { width:28px; height:28px; border-radius:8px; }
.rest-item .rest-icon svg { width:22px; height:22px; }
.rest-item .workout-item-title { flex:0 0 auto; }
.rest-item .workout-item-title h3 { font-size:14px; }
.rest-inline-timer { display:flex; align-items:center; gap:5px; color:var(--muted); font-size:12px; }
.rest-inline-timer input { width:56px; min-height:44px; padding:6px; border:1px solid var(--line); border-radius:6px; background:#fafbf6; font-size:16px; appearance:textfield; }
.rest-inline-timer input::-webkit-inner-spin-button { display:none; }
.rest-item .remove-item { margin-left:auto; min-width:44px; }
.rest-item .item-order { justify-content:flex-end; margin-top:2px; }
.add-rest-button { width:100%; margin-top:14px; }
.insert-rest-button { width:100%; min-height:44px; border:1px dashed #aab49b; background:transparent; color:var(--ink); }
.insert-rest-button:hover { background:#f6f8ef; }
.rest-block-note { color:var(--muted); font-size:12px; line-height:1.6; margin-top:10px; }
.rest-finish-mark { display:grid; place-items:center; color:var(--lime); }
.rest-emoji { font-size:100px; line-height:1; }
.sidebar-caption,.field-label,.subtle-label,.breadcrumb,.topbar-tag {
  text-transform:uppercase;
}
#video-export-dialog { width:min(500px,calc(100% - 32px)); }
#video-export-dialog select { width:100%; min-height:44px; margin-top:8px; padding:10px; font-size:16px; color:var(--ink); background:#fff; border:1px solid var(--line); border-radius:8px; }
.video-rep-duration { display:flex; align-items:center; gap:16px; margin:16px 0; }
.video-rep-duration span { flex:1; min-width:0; }
.video-rep-duration small { display:block; margin-top:5px; color:var(--muted); font-size:12px; line-height:1.5; }
.video-rep-duration input { width:80px; min-height:44px; font-size:16px; flex:none; }
#video-progress { width:100%; height:18px; accent-color:var(--lime); }
#video-preview { width:100%; max-height:260px; background:var(--ink); border-radius:8px; margin-bottom:16px; }
#video-download { text-decoration:none; display:inline-flex; justify-content:center; align-items:center; }
#video-export-status { font-size:14px; line-height:1.5; }
.sidebar-caption {
  font-size:12px;
  font-weight:700;
  letter-spacing:.04em;
  line-height:1.8;
  color:var(--muted);
  margin-top:27px;
}
.sidebar nav {
  display:grid;
  gap:7px;
  margin-top:44px;
}
.nav-item {
  display:flex;
  gap:12px;
  align-items:center;
  padding:0 13px;
  border-radius:10px;
  text-align:left;
  min-height:49px;
  font-size:13px;
  font-weight:600;
  white-space:nowrap;
}
.nav-item>span:first-child {
  font-size:22px;
  font-weight:400;
}
.nav-item.active {
  background:var(--lime);
}
.nav-count {
  margin-left:auto;
  font-size:12px;
  opacity:.6;
}
.sidebar-bottom {
  margin-top:auto;
  padding-top:40px;
}
.offline-indicator {
  display:flex;
  gap:8px;
  align-items:center;
  font-size:12px;
  line-height:1.5;
}
.offline-indicator i {
  width:7px;
  height:7px;
  border-radius:50%;
  background:#b7b7a8;
  flex-shrink:0;
}
.offline-indicator i.ready {
  background:#698b31;
}
.text-button {
  font-size:12px;
  text-align:left;
  padding:8px 0;
  min-height:36px;
  color:var(--muted);
}
.text-button:hover {
  color:var(--ink);
}
.sidebar-rule {
  height:1px;
  background:var(--line);
  margin:18px 0 12px;
}
.privacy-note {
  color:var(--muted);
  font-size:12px;
  line-height:1.8;
  margin-top:18px;
}
#main {
  padding:0 44px;
  max-width:1700px;
  width:100%;
  margin:auto;
}
.topbar {
  min-height:84px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
}
.breadcrumb,.topbar-tag {
  font-size:12px;
  font-weight:700;
  letter-spacing:.04em;
  color:var(--muted);
}
.topbar-tag {
  display:flex;
  align-items:center;
  gap:17px;
}
.topbar-tag span {
  font-size:22px;
  color:var(--ink);
}
.page-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:45px 0 40px;
}
.eyebrow {
  font-size:12px;
  letter-spacing:.04em;
  font-weight:700;
  margin-bottom:16px;
  color:var(--muted);
}
h1 {
  font-size:clamp(40px,4vw,58px);
  font-weight:600;
  letter-spacing:-.03em;
  line-height:1.08;
}
h1>span {
  color:var(--quiet);
}
.page-description {
  color:var(--muted);
  font-size:12px;
  line-height:1.8;
  margin-top:19px;
  max-width:440px;
}
.hero-mark {
  font-size:144px;
  line-height:1;
  color:var(--olive);
  transform:rotate(-13deg);
  padding:0 18px;
  margin-right:350px;
  font-family:Georgia,serif;
}
.workspace {
  display:grid;
  grid-template-columns:minmax(0,1fr) 320px;
  align-items:start;
  gap:32px;
}
.section-heading {
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  margin-bottom:18px;
}
h2 {
  font-size:18px;
  letter-spacing:-.6px;
  font-weight:600;
}
.section-heading h2>span {
  font-size:12px;
  background:#e8eadd;
  padding:4px 7px;
  border-radius:5px;
  margin-left:7px;
  vertical-align:middle;
  color:var(--muted);
}
.subtle-label {
  font-size:12px;
  font-weight:700;
  letter-spacing:.04em;
  color:var(--muted);
  white-space:nowrap;
}
.search-box {
  height:47px;
  display:flex;
  align-items:center;
  padding:0 14px;
  gap:12px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--white);
}
.search-box>span {
  font-size:25px;
  color:var(--muted);
}
.search-box input {
  background:none;
  border:0;
  outline:none;
  flex:1;
  font-size:12px;
  min-height:40px;
}
.search-box kbd {
  color:var(--muted);
  border:1px solid var(--line);
  font-size:12px;
  padding:2px 6px;
  border-radius:4px;
}
.tag-filters {
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  padding:16px 0 17px;
}
.filter-chip {
  min-height:34px;
  padding:7px 13px;
  border:1px solid var(--line);
  border-radius:7px;
  color:var(--muted);
  font-size:12px;
  text-transform:capitalize;
}
.filter-chip.active {
  background:var(--ink);
  color:var(--paper);
  border-color:var(--ink);
}
.filter-chip:hover:not(.active) {
  background:var(--soft);
}
.demo-notice {
  font-size:12px;
  line-height:1.6;
  color:var(--muted);
  margin:-2px 0 14px;
}
.clip-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:19px 16px;
}
.clip-card {
  border:1px solid var(--line);
  background:#fff;
  border-radius:13px;
  overflow:hidden;
  transition:border-color .2s,transform .2s;
}
.clip-card:hover {
  border-color:#a9b57c;
  transform:translateY(-2px);
}
.clip-media {
  position:relative;
  aspect-ratio:1.08;
  background:var(--soft);
  overflow:hidden;
}
.clip-media video {
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.clip-duration {
  position:absolute;
  top:10px;
  left:10px;
  color:#41453b;
  background:#ffffffc9;
  backdrop-filter:blur(6px);
  border-radius:5px;
  padding:4px 7px;
  font-size:12px;
  pointer-events:none;
}
.loop-mark {
  position:absolute;
  right:11px;
  top:10px;
  font-size:14px;
  color:#545d4d;
}
.clip-content {
  padding:13px 12px 9px;
}
.clip-name-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:5px;
}
.clip-card h3 {
  font-size:13px;
  letter-spacing:-.01em;
  line-height:1.5;
}
.add-clip {
  width:33px;
  height:33px;
  min-height:33px;
  flex-shrink:0;
  background:var(--lime);
  border-radius:50%;
  font-size:23px;
  line-height:1;
}
.add-clip:hover {
  background:var(--lime-press);
}
.clip-tags {
  display:flex;
  gap:4px;
  flex-wrap:wrap;
  margin-top:8px;
  min-height:18px;
}
.clip-tags span {
  font-size:12px;
  color:#6b715c;
  background:#f0f1e8;
  padding:3px 5px;
  border-radius:4px;
  text-transform:capitalize;
}
.clip-card-footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:4px;
  margin-top:9px;
  border-top:1px solid #f1f1eb;
  padding-top:4px;
}
.source-link {
  font-size:12px;
  text-decoration:none;
  color:var(--muted);
  display:inline-flex;
  align-items:center;
  min-height:30px;
  line-height:1.4;
}
.source-link:hover {
  text-decoration:underline;
}
.source-link span {
  margin-left:4px;
}
.edit-clip {
  min-height:32px;
  font-size:12px;
  color:var(--muted);
  padding:0 3px;
}
.media-error {
  position:absolute;
  inset:0;
  display:grid;
  place-content:center;
  text-align:center;
  padding:20px;
  background:#eef0e4d9;
  font-size:12px;
  line-height:1.6;
}
.builder {
  border:1px solid var(--line);
  border-radius:18px;
  background:#eeefe6;
  padding:24px 20px 18px;
  position:sticky;
  top:24px;
  scroll-margin-top:16px;
}
.builder-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.builder .eyebrow {
  font-size:12px;
  margin-bottom:9px;
}
.builder h2 {
  font-size:25px;
  letter-spacing:-1px;
}
.builder h2 span {
  color:#809341;
}
.builder-glyph {
  width:38px;
  height:38px;
  background:var(--lime);
  display:grid;
  place-content:center;
  border-radius:50%;
  font-size:25px;
}
.field-label {
  display:block;
  font-size:12px;
  font-weight:700;
  letter-spacing:.04em;
  color:var(--muted);
  margin:26px 0 8px;
}
.name-input {
  width:100%;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  padding:0 11px;
  font-size:12px;
}
.builder-meta {
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:center;
  margin:12px 0 16px;
  gap:5px;
  font-size:12px;
  color:var(--muted);
}
.builder-meta label {
  display:flex;
  align-items:center;
  gap:5px;
  white-space:nowrap;
}
.builder-meta input {
  width:45px;
  padding:5px;
  min-height:32px;
  border:1px solid var(--line);
  border-radius:5px;
  text-align:center;
  font-size:12px;
  background:#fafbf6;
}
.workout-items {
  display:grid;
  gap:9px;
  max-height:510px;
  overflow-y:auto;
  scrollbar-width:thin;
}
.workout-item {
  background:#fff;
  border:1px solid var(--line);
  border-radius:10px;
  padding:10px;
}
.workout-item-top {
  display:flex;
  gap:9px;
  align-items:center;
}
.workout-item-top img {
  width:38px;
  height:43px;
  object-fit:cover;
  border-radius:5px;
  background:var(--soft);
}
.workout-item-title {
  flex:1;
  min-width:0;
}
.workout-item-title small {
  font-size:12px;
  letter-spacing:.04em;
  color:var(--muted);
}
.workout-item-title h3 {
  font-size:12px;
  line-height:1.5;
  overflow-wrap:anywhere;
}
.remove-item {
  min-height:36px;
  min-width:28px;
  font-size:18px;
  color:var(--muted);
}
.item-settings {
  display:grid;
  grid-template-columns:1.3fr 1fr 1fr;
  gap:7px;
  margin:9px 0 2px;
}
.item-settings label {
  font-size:12px;
  letter-spacing:.04em;
  color:var(--muted);
}
.item-settings input,.item-settings select {
  width:100%;
  font-size:12px;
  border:1px solid var(--line);
  border-radius:5px;
  background:#fafbf6;
  min-height:35px;
  padding:4px 6px;
  margin-top:4px;
}
.item-order {
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:12px;
  color:var(--muted);
}
.item-order button {
  min-height:30px;
  min-width:32px;
  font-size:14px;
}
.builder-empty {
  text-align:center;
  padding:24px 0 32px;
}
.builder-empty>span {
  display:inline-grid;
  place-content:center;
  width:52px;
  height:52px;
  font-size:28px;
  border:1px dashed #bdc1af;
  border-radius:50%;
  color:var(--muted);
}
.builder-empty h3 {
  font-size:13px;
  margin-top:16px;
}
.builder-empty p {
  font-size:12px;
  line-height:1.8;
  color:var(--muted);
  margin-top:8px;
}
.builder-footer {
  display:grid;
  gap:9px;
  border-top:1px solid var(--line);
  padding-top:16px;
  margin-top:12px;
}
.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  min-height:46px;
  border-radius:9px;
  padding:10px 18px;
  font-size:12px;
  font-weight:600;
  transition:background .2s,transform .2s;
}
.button:active:not(:disabled) {
  transform:scale(.98);
}
.button.primary {
  background:var(--lime);
  color:var(--ink);
}
.button.primary:hover:not(:disabled) {
  background:#cce768;
}
.button.primary span {
  margin-left:auto;
  font-size:18px;
}
.button.secondary {
  background:#fff;
  border:1px solid var(--line);
}
.button.secondary:hover:not(:disabled) {
  background:#f6f7ef;
}
.builder-footer .text-button {
  text-align:center;
  font-size:12px;
  min-height:30px;
  padding:5px;
}
.builder-footer>p {
  text-align:center;
  font-size:12px;
  letter-spacing:.04em;
  color:var(--muted);
  margin-top:4px;
}
.main-footer {
  margin:42px 0 0;
  border-top:1px solid var(--line);
  padding:20px 0 26px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:12px;
  letter-spacing:.04em;
  color:var(--muted);
}
.main-footer>span:last-child {
  letter-spacing:.04em;
}
.main-footer>span:last-child span {
  font-size:19px;
  vertical-align:middle;
  margin-left:9px;
  color:#94aa5c;
}
.empty-state {
  padding:45px 20px;
  text-align:center;
}
.empty-state h3 {
  font-size:21px;
}
.empty-state p {
  font-size:13px;
  line-height:1.7;
  margin:12px 0 20px;
  color:var(--muted);
}
.saved-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px;
}
.saved-card {
  border:1px solid var(--line);
  background:white;
  border-radius:16px;
  padding:20px;
  overflow:hidden;
}
.saved-preview {
  display:flex;
  height:135px;
  gap:5px;
  margin:-20px -20px 20px;
  background:var(--soft);
}
.saved-preview img {
  min-width:0;
  object-fit:cover;
  flex:1;
}
.saved-card .eyebrow {
  margin-bottom:12px;
  font-size:12px;
}
.saved-card h2 {
  font-size:23px;
  overflow-wrap:anywhere;
}
.saved-card>p {
  font-size:12px;
  color:var(--muted);
  line-height:1.7;
  margin:12px 0 20px;
}
.saved-card>.button {
  width:100%;
}
.saved-actions {
  display:flex;
  justify-content:space-between;
  margin-top:9px;
}
.saved-actions button {
  font-size:12px;
  min-height:35px;
  color:var(--muted);
}
.saved-empty {
  grid-column:1/-1;
  border:1px dashed #c6cab8;
  border-radius:18px;
}
.mobile-nav {
  display:none;
}
dialog {
  color:var(--ink);
  border:1px solid var(--line);
  background:var(--paper);
  border-radius:20px;
  width:min(460px,calc(100% - 32px));
  padding:26px;
  max-height:85svh;
  overflow-y:auto;
}
dialog::backdrop {
  background:#25282080;
  backdrop-filter:blur(4px);
}
.dialog-heading {
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  margin-bottom:20px;
}
.dialog-heading h2 {
  font-size:24px;
}
.icon-button {
  font-size:27px;
  min-width:44px;
}
dialog label {
  display:grid;
  gap:8px;
  font-size:12px;
  margin:18px 0;
}
dialog input {
  width:100%;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
}
dialog p,dialog li {
  font-size:13px;
  line-height:1.8;
}
dialog h3 {
  font-size:15px;
  margin:20px 0 10px;
}
dialog ol {
  padding-left:20px;
}
dialog .button {
  margin-top:14px;
}
.muted {
  color:var(--muted);
  font-size:12px!important;
  margin:15px 0;
}
.help-actions {
  display:flex;
  gap:10px;
}
.help-actions .button {
  flex:1;
}
.toast {
  position:fixed;
  bottom:27px;
  left:50%;
  transform:translate(-50%,15px);
  background:var(--ink);
  color:#fff;
  z-index:20;
  border-radius:12px;
  padding:13px 20px;
  font-size:12px;
  box-shadow:0 8px 30px #25282030;
  opacity:0;
  pointer-events:none;
  transition:opacity .2s,transform .2s;
  max-width:calc(100% - 32px);
  line-height:1.6;
}
.toast.show {
  opacity:1;
  transform:translate(-50%,0);
}
.player {
  position:fixed;
  inset:0;
  z-index:30;
  background:#22261f;
  color:var(--paper);
  height:100dvh;
  overflow-y:auto;
  padding:max(20px,env(safe-area-inset-top)) max(24px,env(safe-area-inset-right)) max(22px,env(safe-area-inset-bottom));
  display:flex;
  flex-direction:column;
  align-items:center;
}
.player-top {
  width:100%;
  max-width:1000px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.player-top>div {
  font-size:12px;
  color:#b0b8a5;
}
.player-top h2 {
  font-size:16px;
  color:var(--paper);
  margin-bottom:4px;
}
.exit-player {
  font-size:12px;
  border:1px solid #555f4d;
  border-radius:9px;
  min-height:44px;
  padding:0 14px;
  color:var(--paper);
}
.player-progress {
  display:flex;
  gap:5px;
  width:100%;
  max-width:1000px;
  margin:20px 0;
  overflow:hidden;
}
.player-progress i {
  height:4px;
  flex:1;
  background:#495240;
  border-radius:10px;
  min-width:1px;
}
.player-progress i.done {
  background:var(--lime);
}
.player-body {
  width:100%;
  max-width:760px;
  display:flex;
  flex-direction:column;
  align-items:center;
  flex:1;
  justify-content:center;
  padding:8px 0 14px;
}
.player-media {
  position:relative;
  width:100%;
  max-width:420px;
  height:min(34dvh,330px);
  border-radius:18px;
  background:#394231;
  overflow:hidden;
}
.player-media video {
  width:100%;
  height:100%;
  object-fit:contain;
}
.player-media .media-error {
  color:var(--ink);
}
.player-eyebrow {
  color:var(--lime);
  font-size:12px;
  letter-spacing:.04em;
  margin:20px 0 9px;
  text-align:center;
}
.player h1 {
  font-size:clamp(26px,4vw,38px);
  letter-spacing:-1px;
  text-align:center;
  color:var(--paper);
}
.player-value {
  font-size:clamp(58px,10dvh,94px);
  font-variant-numeric:tabular-nums;
  letter-spacing:-4px;
  font-weight:500;
  line-height:1.12;
  margin-top:7px;
}
.player-value small {
  font-size:23px;
  letter-spacing:-.5px;
  color:#b0b8a5;
}
.player-note {
  font-size:12px;
  line-height:1.5;
  color:#b0b8a5;
  text-align:center;
  min-height:20px;
  margin-top:5px;
}
.player-source {
  font-size:12px;
  color:#b0b8a5;
  margin:5px 0;
  min-height:32px;
  display:grid;
  place-content:center;
}
.player-controls {
  width:100%;
  max-width:560px;
  display:flex;
  gap:12px;
  margin-top:10px;
}
.player-controls .button {
  flex:1;
  min-height:53px;
  color:var(--paper);
  border:1px solid #555f4d;
  background:none;
  font-size:13px;
}
.player-controls .primary {
  background:var(--lime);
  color:var(--ink);
  border:0;
  flex:1.5;
}
.reps-next {
  width:100%;
  max-width:560px;
  min-height:59px;
  margin:10px 0 0;
  font-size:16px;
}
.wake-status {
  color:#b0b8a5;
  font-size:12px;
  margin-top:14px;
  line-height:1.6;
  text-align:center;
}
.player-complete {
  margin:auto;
  text-align:center;
  max-width:500px;
}
.complete-mark {
  font-size:120px;
  color:var(--lime);
  line-height:1.2;
}
.player-complete h1 {
  font-size:50px;
}
.player-complete p {
  color:#b0b8a5;
  line-height:1.8;
  font-size:14px;
  margin:20px 0 32px;
}
.player-complete .button {
  width:100%;
}
@media(min-width:1500px) {
  .workspace {
    grid-template-columns:minmax(0,1fr) 350px;
    gap:45px;
  }
  .hero-mark {
    margin-right:420px;
  }
  .clip-grid {
    gap:24px;
  }
  .clip-card h3 {
    font-size:16px;
  }
  .clip-content {
    padding:16px;
  }
  .clip-tags span {
    font-size:12px;
  }
  .source-link,.edit-clip {
    font-size:12px;
  }
}
@media(max-width:1200px) {
  .app-shell {
    grid-template-columns:185px minmax(0,1fr);
  }
  .sidebar {
    padding:30px 17px 20px;
  }
  #main {
    padding:0 28px;
  }
  .workspace {
    grid-template-columns:minmax(0,1fr) 285px;
    gap:23px;
  }
  .clip-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .hero-mark {
    margin-right:300px;
    font-size:110px;
  }
  .subtle-label {
    display:none;
  }
  .saved-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:960px) {
  .app-shell {
    grid-template-columns:165px minmax(0,1fr);
  }
  .sidebar {
    padding:25px 12px;
  }
  .brand {
    font-size:30px;
  }
  .brand img {
    height:28px;
  }
  .nav-item {
    font-size:12px;
    padding:0 9px;
    gap:8px;
  }
  .workspace {
    grid-template-columns:minmax(0,1fr) 260px;
    gap:18px;
  }
  #main {
    padding:0 22px;
  }
  .builder {
    padding:20px 14px;
  }
  .hero-mark {
    margin-right:220px;
    font-size:95px;
  }
  .clip-grid {
    gap:12px;
  }
  .clip-content {
    padding:10px 9px 6px;
  }
  .clip-card h3 {
    font-size:12px;
  }
  .section-heading h2 {
    font-size:16px;
  }
}
@media(max-width:800px) {
  .app-shell {
    display:block;
  }
  .sidebar {
    display:none;
  }
  #main {
    padding:0 24px;
  }
  .topbar {
    min-height:63px;
  }
  .breadcrumb {
    font-size:12px;
    letter-spacing:.04em;
  }
  .topbar-tag {
    font-size:12px;
    letter-spacing:.04em;
  }
  .page-heading {
    padding:32px 0 29px;
  }
  h1 {
    font-size:44px;
  }
  .hero-mark {
    margin-right:15px;
    font-size:95px;
    padding:0;
  }
  .workspace {
    grid-template-columns:minmax(0,1fr) 290px;
    gap:22px;
  }
  .mobile-nav {
    position:fixed;
    bottom:0;
    left:0;
    right:0;
    z-index:10;
    display:flex;
    align-items:center;
    background:#f6f5eff5;
    backdrop-filter:blur(12px);
    border-top:1px solid var(--line);
    padding:7px 12px max(7px,env(safe-area-inset-bottom));
    justify-content:space-around;
  }
  .mobile-nav button {
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:3px;
    font-size:20px;
    min-width:60px;
    min-height:47px;
    border-radius:9px;
    padding:5px 10px;
  }
  .mobile-nav button>span {
    font-size:12px;
  }
  .mobile-nav button.active {
    background:var(--lime);
  }
  .main-footer {
    margin-bottom:80px;
  }
  .toast {
    bottom:90px;
  }
  .clip-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .add-clip {
    min-width:36px;
    min-height:36px;
  }
  .saved-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .player .toast {
    bottom:20px;
  }
}
@media(max-width:620px) {
  #main {
    padding:0 20px;
  }
  .topbar-tag {
    display:none;
  }
  .topbar {
    min-height:57px;
  }
  .mobile-brand {
    display:flex;
    align-items:center;
    gap:0;
    font-size:24px;
    letter-spacing:-.03em;
    font-weight:600;
    text-decoration:none;
  }
  .topbar {
    gap:12px;
  }
  .breadcrumb {
    text-align:right;
  }
  .breadcrumb {
    font-size:12px;
  }
  .page-heading {
    padding:30px 0 29px;
    gap:8px;
    align-items:flex-start;
  }
  .page-heading .eyebrow {
    font-size:12px;
    margin-bottom:12px;
  }
  h1 {
    font-size:40px;
    letter-spacing:-.03em;
  }
  .hero-mark {
    font-size:75px;
    margin:18px -6px 0 0;
  }
  .page-description {
    font-size:12px;
    margin-top:15px;
    max-width:290px;
  }
  .workspace {
    display:flex;
    flex-direction:column;
    gap:32px;
  }
  .library,.builder {
    width:100%;
  }
  .builder {
    position:relative;
    top:0;
    padding:24px 20px;
    scroll-margin-top:20px;
  }
  .section-heading h2 {
    font-size:17px;
  }
  .tag-filters {
    gap:6px;
    padding:14px 0;
  }
  .filter-chip {
    padding:7px 11px;
    font-size:12px;
    min-height:36px;
  }
  .clip-grid {
    gap:14px 12px;
  }
  .clip-card h3 {
    font-size:12px;
  }
  .clip-content {
    padding:11px 10px 5px;
  }
  .clip-tags span {
    font-size:12px;
  }
  .clip-card-footer .source-link {
    font-size:12px;
  }
  .clip-card-footer {
    margin-top:7px;
  }
  .clip-card-footer button {
    min-height:38px;
  }
  .clip-duration {
    font-size:12px;
    top:8px;
    left:8px;
  }
  .builder h2 {
    font-size:29px;
  }
  .builder .eyebrow {
    font-size:12px;
  }
  .name-input {
    font-size:14px;
    min-height:49px;
  }
  .field-label {
    font-size:12px;
  }
  .builder-meta {
    font-size:12px;
  }
  .builder-meta input {
    min-height:40px;
    font-size:14px;
    width:52px;
  }
  .workout-item-title h3 {
    font-size:14px;
  }
  .workout-item-title small {
    font-size:12px;
  }
  .workout-item-top img {
    width:48px;
    height:52px;
  }
  .remove-item {
    min-height:44px;
    min-width:40px;
  }
  .item-settings label {
    font-size:12px;
  }
  .item-settings select,.item-settings input {
    font-size:16px;
    min-height:44px;
  }
  .item-order {
    font-size:12px;
  }
  .item-order button {
    min-height:44px;
    min-width:44px;
  }
  .workout-items {
    max-height:none;
  }
  .builder-footer .button {
    min-height:51px;
    font-size:14px;
  }
  .builder-footer .text-button {
    font-size:12px;
    min-height:40px;
  }
  .main-footer {
    font-size:12px;
    margin-top:30px;
    gap:8px;
  }
  .saved-grid {
    grid-template-columns:1fr;
  }
  .saved-card h2 {
    font-size:26px;
  }
  #workouts-view .page-heading {
    display:block;
  }
  #create-workout {
    margin-top:20px;
  }
  .saved-preview {
    height:170px;
  }
  .saved-card>p {
    font-size:13px;
  }
  .saved-actions button {
    min-height:44px;
  }
  .player {
    padding-left:20px;
    padding-right:20px;
  }
  .player-media {
    height:min(32dvh,290px);
  }
  .player-progress {
    margin:16px 0;
  }
  .player-eyebrow {
    margin-top:15px;
  }
  .player-value {
    font-size:70px;
  }
  .player-controls {
    gap:8px;
  }
  .player-controls .button {
    padding:10px;
  }
  .player h1 {
    font-size:27px;
  }
  .player-top h2 {
    font-size:14px;
  }
  .player-top>div {
    font-size:12px;
  }
  .exit-player {
    font-size:12px;
  }
  .player-complete h1 {
    font-size:43px;
  }
  input[type=search],dialog input {
    font-size:16px;
  }
  .search-box input {
    font-size:16px;
  }
  .search-box kbd {
    display:none;
  }
  .privacy-note {
    font-size:12px;
  }
}
@media(max-height:700px) {
  .player-media {
    height:25dvh;
  }
  .player-value {
    font-size:56px;
  }
  .player-eyebrow {
    margin-top:10px;
  }
  .player-progress {
    margin:12px 0;
  }
  .player-controls .button {
    min-height:46px;
  }
  .wake-status {
    margin-top:8px;
  }
  .reps-next {
    min-height:48px;
  }
  .player-body {
    padding:0;
  }
  .player-note {
    font-size:12px;
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    scroll-behavior:auto!important;
    transition:none!important;
    animation:none!important;
  }
}
.clip-media {
  aspect-ratio:4/5;
  background:#e6e8de;
}
.clip-media video {
  object-fit:contain;
}
.clip-name-row {
  align-items:flex-start;
}
.clip-card h3 {
  min-height:39px;
}
.add-clip {
  margin-top:2px;
}
.clip-card .clip-media {
  display:block;
  padding:0;
  width:100%;
  text-align:left;
}
@media(max-width:620px) {
  .clip-card h3 { font-size:13px; }
  .clip-card-footer .source-link, .clip-card-footer button { min-height:44px; }
  .clip-card-footer button { font-size:12px; }
}
@media(max-width:800px) {
  .add-clip {
    width:44px;
    height:44px;
    min-height:44px;
    min-width:44px;
  }
  .filter-chip {
    min-height:44px;
  }
  .clip-tags {
    min-height:35px;
  }
}

/* Keep functional text readable on the phone, while metadata remains compact. */
input::placeholder { color:var(--muted); opacity:1; }
input { caret-color:var(--ink); }
::selection { color:var(--ink); background:var(--lime); }
.saved-card>p, .toast, dialog p, dialog li { font-size:14px; }
.clip-card h3 { font-size:15px; }
.button { font-size:14px; }
.main-footer { flex-wrap:wrap; gap:12px; }
@media(max-width:800px) {
  .mobile-nav button { flex:1; min-width:0; padding:5px 2px; }
  .mobile-nav button>span { font-size:12px; }
}
